diff --git a/assets/AuthWrapper-D9ihPE42.js b/assets/AuthWrapper-BduVzxWA.js similarity index 82% rename from assets/AuthWrapper-D9ihPE42.js rename to assets/AuthWrapper-BduVzxWA.js index 1ca8de25..62b74201 100644 --- a/assets/AuthWrapper-D9ihPE42.js +++ b/assets/AuthWrapper-BduVzxWA.js @@ -1,4 +1,4 @@ -import{aw as e,q as r,j as s}from"./index-Bjk_45MO.js";var i=e();const o=r.div` +import{aw as e,q as r,j as s}from"./index-Cei2V9tG.js";var i=e();const o=r.div` height: 700px; display: flex; align-items: center; diff --git a/assets/CourseAgenda-DA7epH6Y.js b/assets/CourseAgenda-INcuA1iM.js similarity index 98% rename from assets/CourseAgenda-DA7epH6Y.js rename to assets/CourseAgenda-INcuA1iM.js index 6ae9eb95..f90f301d 100644 --- a/assets/CourseAgenda-DA7epH6Y.js +++ b/assets/CourseAgenda-INcuA1iM.js @@ -1,4 +1,4 @@ -import{q as le,f as ce,r as m,j as h,M as ye,s as ue,cc as be,d as b,cd as xe,ce as ge,a5 as Pe,a7 as Te,D as K,a3 as we,cf as Ee,a6 as Ce,v as de,cg as Me,S as Oe,an as re,ch as Se,b as fe,E as Ie,i as Ne,ao as Ae,h as De,n as se,ci as ke}from"./index-Bjk_45MO.js";import{A as x,_ as ze,P as Be,a as oe,I as Le,O as Fe,H as He}from"./index-BgAgt_Xs.js";import{U as $e}from"./Upload-DMNCn73R.js";const Re=le.div` +import{q as le,f as ce,r as m,j as h,M as ye,s as ue,cc as be,d as b,cd as xe,ce as ge,a5 as Pe,a7 as Te,D as K,a3 as we,cf as Ee,a6 as Ce,v as de,cg as Me,S as Oe,an as re,ch as Se,b as fe,E as Ie,i as Ne,ao as Ae,h as De,n as se,ci as ke}from"./index-Cei2V9tG.js";import{A as x,_ as ze,P as Be,a as oe,I as Le,O as Fe,H as He}from"./index-BdBaDIIz.js";import{U as $e}from"./Upload-DQPhAuc_.js";const Re=le.div` h1 { font-size: 2em; } diff --git a/assets/CourseCard-Cly8Zjem.js b/assets/CourseCard-CUpRcofn.js similarity index 84% rename from assets/CourseCard-Cly8Zjem.js rename to assets/CourseCard-CUpRcofn.js index 1d5f862d..c33b9ea3 100644 --- a/assets/CourseCard-Cly8Zjem.js +++ b/assets/CourseCard-CUpRcofn.js @@ -1,4 +1,4 @@ -import{q as x,r as a,j as t,w as n}from"./index-Bjk_45MO.js";import{S as e}from"./index-BMKx56cF.js";const o=x.div` +import{q as x,r as a,j as t,w as n}from"./index-Cei2V9tG.js";import{S as e}from"./index-D-BQVsc5.js";const o=x.div` max-width: 278px; min-height: 414px; diff --git a/assets/DailyMotion-BvaJps2g.js b/assets/DailyMotion-UzeA5oDV.js similarity index 95% rename from assets/DailyMotion-BvaJps2g.js rename to assets/DailyMotion-UzeA5oDV.js index 3a7811b4..a049ffd2 100644 --- a/assets/DailyMotion-BvaJps2g.js +++ b/assets/DailyMotion-UzeA5oDV.js @@ -1 +1 @@ -import{g as P,r as v}from"./index-Bjk_45MO.js";import{u as D,p as O}from"./index-BgAgt_Xs.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const g=u.player;this.player=new g(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:m=>a(m)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; +import{g as P,r as v}from"./index-Cei2V9tG.js";import{u as D,p as O}from"./index-BdBaDIIz.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const g=u.player;this.player=new g(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:m=>a(m)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; diff --git a/assets/Facebook-C6INHtnc.js b/assets/Facebook-BYIgHSV8.js similarity index 96% rename from assets/Facebook-C6INHtnc.js rename to assets/Facebook-BYIgHSV8.js index 747cce78..e451bd1f 100644 --- a/assets/Facebook-C6INHtnc.js +++ b/assets/Facebook-BYIgHSV8.js @@ -1 +1 @@ -import{g as _,r as g}from"./index-Bjk_45MO.js";import{u as P,p as m}from"./index-BgAgt_Xs.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; +import{g as _,r as g}from"./index-Cei2V9tG.js";import{u as P,p as m}from"./index-BdBaDIIz.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; diff --git a/assets/FilePlayer-DuNbIkyG.js b/assets/FilePlayer-5v0-nP75.js similarity index 98% rename from assets/FilePlayer-DuNbIkyG.js rename to assets/FilePlayer-5v0-nP75.js index 33d4f86d..177b1f4b 100644 --- a/assets/FilePlayer-DuNbIkyG.js +++ b/assets/FilePlayer-5v0-nP75.js @@ -1 +1 @@ -import{g as b,r as _}from"./index-Bjk_45MO.js";import{u as O,p as A}from"./index-BgAgt_Xs.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; +import{g as b,r as _}from"./index-Cei2V9tG.js";import{u as O,p as A}from"./index-BdBaDIIz.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; diff --git a/assets/Kaltura-BOlkhzMF.js b/assets/Kaltura-CKtqUZ_v.js similarity index 95% rename from assets/Kaltura-BOlkhzMF.js rename to assets/Kaltura-CKtqUZ_v.js index 3bafc7e1..35b552c5 100644 --- a/assets/Kaltura-BOlkhzMF.js +++ b/assets/Kaltura-CKtqUZ_v.js @@ -1 +1 @@ -import{g as y,r as f}from"./index-Bjk_45MO.js";import{u as _,p as m}from"./index-BgAgt_Xs.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; +import{g as y,r as f}from"./index-Cei2V9tG.js";import{u as _,p as m}from"./index-BdBaDIIz.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; diff --git a/assets/Mixcloud-DRebVUKW.js b/assets/Mixcloud-Ck8U2JlT.js similarity index 95% rename from assets/Mixcloud-DRebVUKW.js rename to assets/Mixcloud-Ck8U2JlT.js index 00e9e5a7..ebac8eaf 100644 --- a/assets/Mixcloud-DRebVUKW.js +++ b/assets/Mixcloud-Ck8U2JlT.js @@ -1 +1 @@ -import{g as _,r as f}from"./index-Bjk_45MO.js";import{u as m,p as g}from"./index-BgAgt_Xs.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; +import{g as _,r as f}from"./index-Cei2V9tG.js";import{u as m,p as g}from"./index-BdBaDIIz.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; diff --git a/assets/Mux-Cfbc_W0T.js b/assets/Mux-3Rgqhjp4.js similarity index 97% rename from assets/Mux-Cfbc_W0T.js rename to assets/Mux-3Rgqhjp4.js index c113d35c..76254016 100644 --- a/assets/Mux-Cfbc_W0T.js +++ b/assets/Mux-3Rgqhjp4.js @@ -4,4 +4,4 @@ function __vite__mapDeps(indexes) { } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{g as P,ck as E,r as g}from"./index-Bjk_45MO.js";import{p as _}from"./index-BgAgt_Xs.js";function b(r,e){for(var t=0;ti[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var L=Object.create,u=Object.defineProperty,I=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,O=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,M=(r,e,t)=>e in r?u(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,R=(r,e)=>{for(var t in e)u(r,t,{get:e[t],enumerable:!0})},f=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of k(e))!x.call(r,s)&&s!==t&&u(r,s,{get:()=>e[s],enumerable:!(i=I(e,s))||i.enumerable});return r},w=(r,e,t)=>(t=r!=null?L(O(r)):{},f(e||!r||!r.__esModule?u(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>f(u({},"__esModule",{value:!0}),r),n=(r,e,t)=>(M(r,typeof e!="symbol"?e+"":e,t),t),y={};R(y,{default:()=>l});var m=D(y),v=w(g),p=_;const j="https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";class l extends v.Component{constructor(){super(...arguments),n(this,"onReady",(...e)=>this.props.onReady(...e)),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),n(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onError",(...e)=>this.props.onError(...e)),n(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),n(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),n(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.player.muted=!0}),n(this,"unmute",()=>{this.player.muted=!1}),n(this,"ref",e=>{this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getPlaybackId(this.props.url);e&&(this.player.playbackId=e)}componentWillUnmount(){this.player.playbackId=null,this.removeListeners(this.player)}addListeners(e){const{playsinline:t}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),e.addEventListener("canplay",this.onReady),t&&e.setAttribute("playsinline","")}removeListeners(e){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("canplay",this.onReady)}async load(e){var t;const{onError:i,config:s}=this.props;if(!((t=globalThis.customElements)!=null&&t.get("mux-player")))try{const a=j.replace("VERSION",s.version);await E(()=>import(`${a}`),__vite__mapDeps([])),this.props.onLoaded()}catch(a){i(a)}const[,o]=e.match(p.MATCH_URL_MUX);this.player.playbackId=o}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.playbackId=null}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player&&this.player.requestPictureInPicture()}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player&&document.exitPictureInPicture()}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getPlaybackId(e){const[,t]=e.match(p.MATCH_URL_MUX);return t}render(){const{url:e,playing:t,loop:i,controls:s,muted:o,config:a,width:h,height:c}=this.props,d={width:h==="auto"?h:"100%",height:c==="auto"?c:"100%"};return s===!1&&(d["--controls"]="none"),v.default.createElement("mux-player",{ref:this.ref,"playback-id":this.getPlaybackId(e),style:d,preload:"auto",autoPlay:t||void 0,muted:o?"":void 0,loop:i?"":void 0,...a.attributes})}}n(l,"displayName","Mux");n(l,"canPlay",p.canPlay.mux);const C=P(m),T=b({__proto__:null,default:C},[m]);export{T as M}; +import{g as P,ck as E,r as g}from"./index-Cei2V9tG.js";import{p as _}from"./index-BdBaDIIz.js";function b(r,e){for(var t=0;ti[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var L=Object.create,u=Object.defineProperty,I=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,O=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,M=(r,e,t)=>e in r?u(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,R=(r,e)=>{for(var t in e)u(r,t,{get:e[t],enumerable:!0})},f=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of k(e))!x.call(r,s)&&s!==t&&u(r,s,{get:()=>e[s],enumerable:!(i=I(e,s))||i.enumerable});return r},w=(r,e,t)=>(t=r!=null?L(O(r)):{},f(e||!r||!r.__esModule?u(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>f(u({},"__esModule",{value:!0}),r),n=(r,e,t)=>(M(r,typeof e!="symbol"?e+"":e,t),t),y={};R(y,{default:()=>l});var m=D(y),v=w(g),p=_;const j="https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";class l extends v.Component{constructor(){super(...arguments),n(this,"onReady",(...e)=>this.props.onReady(...e)),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),n(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onError",(...e)=>this.props.onError(...e)),n(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),n(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),n(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.player.muted=!0}),n(this,"unmute",()=>{this.player.muted=!1}),n(this,"ref",e=>{this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getPlaybackId(this.props.url);e&&(this.player.playbackId=e)}componentWillUnmount(){this.player.playbackId=null,this.removeListeners(this.player)}addListeners(e){const{playsinline:t}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),e.addEventListener("canplay",this.onReady),t&&e.setAttribute("playsinline","")}removeListeners(e){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("canplay",this.onReady)}async load(e){var t;const{onError:i,config:s}=this.props;if(!((t=globalThis.customElements)!=null&&t.get("mux-player")))try{const a=j.replace("VERSION",s.version);await E(()=>import(`${a}`),__vite__mapDeps([])),this.props.onLoaded()}catch(a){i(a)}const[,o]=e.match(p.MATCH_URL_MUX);this.player.playbackId=o}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.playbackId=null}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player&&this.player.requestPictureInPicture()}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player&&document.exitPictureInPicture()}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getPlaybackId(e){const[,t]=e.match(p.MATCH_URL_MUX);return t}render(){const{url:e,playing:t,loop:i,controls:s,muted:o,config:a,width:h,height:c}=this.props,d={width:h==="auto"?h:"100%",height:c==="auto"?c:"100%"};return s===!1&&(d["--controls"]="none"),v.default.createElement("mux-player",{ref:this.ref,"playback-id":this.getPlaybackId(e),style:d,preload:"auto",autoPlay:t||void 0,muted:o?"":void 0,loop:i?"":void 0,...a.attributes})}}n(l,"displayName","Mux");n(l,"canPlay",p.canPlay.mux);const C=P(m),T=b({__proto__:null,default:C},[m]);export{T as M}; diff --git a/assets/Preview-BwwNeYiy.js b/assets/Preview-DVlUQOSF.js similarity index 97% rename from assets/Preview-BwwNeYiy.js rename to assets/Preview-DVlUQOSF.js index 011afa1b..3663323b 100644 --- a/assets/Preview-BwwNeYiy.js +++ b/assets/Preview-DVlUQOSF.js @@ -1 +1 @@ -import{g as y,r as v}from"./index-Bjk_45MO.js";function w(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,s=Object.defineProperty,O=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,I=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,E=(r,e,t)=>e in r?s(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,S=(r,e)=>{for(var t in e)s(r,t,{get:e[t],enumerable:!0})},_=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of x(e))!j.call(r,a)&&a!==t&&s(r,a,{get:()=>e[a],enumerable:!(n=O(e,a))||n.enumerable});return r},C=(r,e,t)=>(t=r!=null?P(I(r)):{},_(e||!r||!r.__esModule?s(t,"default",{value:r,enumerable:!0}):t,r)),N=r=>_(s({},"__esModule",{value:!0}),r),p=(r,e,t)=>(E(r,typeof e!="symbol"?e+"":e,t),t),g={};S(g,{default:()=>k});var m=N(g),i=C(v);const u="64px",d={};class k extends i.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!i.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a,previewAriaLabel:o}=this.props,{image:f}=this.state,l=i.default.isValidElement(e),h={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:f&&!l?`url(${f})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...h},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...h},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},b=i.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},i.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return i.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress,...o?{"aria-label":o}:{}},l?e:null,n||b)}}const D=y(m),A=w({__proto__:null,default:D},[m]);export{A as P}; +import{g as y,r as v}from"./index-Cei2V9tG.js";function w(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,s=Object.defineProperty,O=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,I=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,E=(r,e,t)=>e in r?s(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,S=(r,e)=>{for(var t in e)s(r,t,{get:e[t],enumerable:!0})},_=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of x(e))!j.call(r,a)&&a!==t&&s(r,a,{get:()=>e[a],enumerable:!(n=O(e,a))||n.enumerable});return r},C=(r,e,t)=>(t=r!=null?P(I(r)):{},_(e||!r||!r.__esModule?s(t,"default",{value:r,enumerable:!0}):t,r)),N=r=>_(s({},"__esModule",{value:!0}),r),p=(r,e,t)=>(E(r,typeof e!="symbol"?e+"":e,t),t),g={};S(g,{default:()=>k});var m=N(g),i=C(v);const u="64px",d={};class k extends i.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!i.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a,previewAriaLabel:o}=this.props,{image:f}=this.state,l=i.default.isValidElement(e),h={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:f&&!l?`url(${f})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...h},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...h},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},b=i.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},i.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return i.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress,...o?{"aria-label":o}:{}},l?e:null,n||b)}}const D=y(m),A=w({__proto__:null,default:D},[m]);export{A as P}; diff --git a/assets/PricingCard-4UWE4R3V.js b/assets/PricingCard-YjgD6nmP.js similarity index 98% rename from assets/PricingCard-4UWE4R3V.js rename to assets/PricingCard-YjgD6nmP.js index 7512bf18..b54b5d00 100644 --- a/assets/PricingCard-4UWE4R3V.js +++ b/assets/PricingCard-YjgD6nmP.js @@ -1,4 +1,4 @@ -import{d as i,a5 as P,a4 as w,a6 as C,j as D,g as M}from"./index-Bjk_45MO.js";var f={};(function(o){var d=i&&i.__makeTemplateObject||function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n},c=i&&i.__assign||function(){return c=Object.assign||function(n){for(var e,r=1,a=arguments.length;r .escolalms-image, & > .escolalms-image img { diff --git a/assets/SoundCloud-yA--mQzA.js b/assets/SoundCloud-tGeq501n.js similarity index 95% rename from assets/SoundCloud-yA--mQzA.js rename to assets/SoundCloud-tGeq501n.js index 3eb9509a..862f58ed 100644 --- a/assets/SoundCloud-yA--mQzA.js +++ b/assets/SoundCloud-tGeq501n.js @@ -1 +1 @@ -import{g as P,r as g}from"./index-Bjk_45MO.js";import{u as b,p as v}from"./index-BgAgt_Xs.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; +import{g as P,r as g}from"./index-Cei2V9tG.js";import{u as b,p as v}from"./index-BdBaDIIz.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; diff --git a/assets/Streamable-BWjbd7YI.js b/assets/Streamable-bgRbunc6.js similarity index 95% rename from assets/Streamable-BWjbd7YI.js rename to assets/Streamable-bgRbunc6.js index 38fa323f..761085dc 100644 --- a/assets/Streamable-BWjbd7YI.js +++ b/assets/Streamable-bgRbunc6.js @@ -1 +1 @@ -import{g as m,r as f}from"./index-Bjk_45MO.js";import{u as _,p as b}from"./index-BgAgt_Xs.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; +import{g as m,r as f}from"./index-Cei2V9tG.js";import{u as _,p as b}from"./index-BdBaDIIz.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; diff --git a/assets/Tabs-DeLQ6nIG.js b/assets/Tabs-DXnc7TjY.js similarity index 98% rename from assets/Tabs-DeLQ6nIG.js rename to assets/Tabs-DXnc7TjY.js index 76b3e0d8..a74834b0 100644 --- a/assets/Tabs-DeLQ6nIG.js +++ b/assets/Tabs-DXnc7TjY.js @@ -1,4 +1,4 @@ -import{d as o,r as R,a5 as B,aH as C,a6 as w,j as F}from"./index-Bjk_45MO.js";var D={};(function(c){var f=o&&o.__makeTemplateObject||function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},u=o&&o.__assign||function(){return u=Object.assign||function(e){for(var n,t=1,r=arguments.length;te.forEach(n=>fa(n,t))}function ft(...e){return f.useCallback(hi(...e),e)}const gi=f.forwardRef((e,t)=>{const{children:n,...r}=e,o=f.Children.toArray(n),i=o.find(da);if(i){const s=i.props.children,a=o.map(c=>c===i?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:c);return f.createElement(Kn,Z({},r,{ref:t}),f.isValidElement(s)?f.cloneElement(s,void 0,a):null)}return f.createElement(Kn,Z({},r,{ref:t}),n)});gi.displayName="Slot";const Kn=f.forwardRef((e,t)=>{const{children:n,...r}=e;return f.isValidElement(n)?f.cloneElement(n,{...pa(r,n.props),ref:t?hi(t,n.ref):n.ref}):f.Children.count(n)>1?f.Children.only(null):null});Kn.displayName="SlotClone";const mi=({children:e})=>f.createElement(f.Fragment,null,e);function da(e){return f.isValidElement(e)&&e.type===mi}function pa(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const ha=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ze=ha.reduce((e,t)=>{const n=f.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?gi:t;return f.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),f.createElement(a,Z({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ga(e,t){e&&mr.flushSync(()=>e.dispatchEvent(t))}const ma=f.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?fi.createPortal(f.createElement(Ze.div,Z({},o,{ref:t})),r):null}),ba=ma;var Wr=Object.prototype.hasOwnProperty;function kt(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&kt(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Wr.call(e,n)&&++r&&!Wr.call(t,n)||!(n in t)||!kt(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function It(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r0;)s[a]=arguments[a+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=o,this.target=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),$e=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};$e.prototype._applyRule=function(t,n){var r=this;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return r.chain.push(new yn(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};$e.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new va(n,t.simple,t.async)),this};$e.prototype._clone=function(){return new $e(this.chain.slice(),this.nextRuleModifiers.slice())};$e.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};$e.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new br(r,t,o))}}),n};$e.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new br(n,t,r)}})};$e.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){yi(t,n.chain.slice(),r,o)})};function yi(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){yi(e,t,n,r)},function(i){r(new br(o,e,i))})}else n(e)}var Hr=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function ya(e,t){return t===void 0&&(t=!1),{simple:function(n){return Hr(n,t)||e.check(n)===void 0},async:function(n){return Hr(n,t)||e.testAsync(n)}}}function ae(){return typeof Proxy<"u"?wi(new $e):Gn(new $e)}var Tt={};ae.extend=function(e){Object.assign(Tt,e)};ae.clearCustomRules=function(){Tt={}};function wi(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=wi(e._clone());if(r in rn)return o._applyModifier(rn[r],r);if(r in Tt)return o._applyRule(Tt[r],r);if(r in Yn)return o._applyRule(Yn[r],r)}})}function Gn(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=Gn(i._clone()),u=l._applyRule(o[s],s).apply(void 0,a);return u}}),i},n=t(Yn,e),r=t(Tt,n);return Object.keys(rn).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=Gn(r._clone());return i._applyModifier(rn[o],o)}})}),r}var rn={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return Yt(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(Yt(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&Yt(t).every(e)}},async:function(e){return function(t){return Promise.all(Yt(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return Vr(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(r){return Vr(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function Vr(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function Yt(e){return typeof e=="string"?e.split(""):e}var Yn={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||wa;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return nt("string")},boolean:function(){return nt("boolean")},undefined:function(){return nt("undefined")},null:function(){return nt("null")},array:function(){return nt("array")},object:function(){return nt("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return $a(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:ya};function nt(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function wa(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function $a(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var o=e[r];try{o.check((t||{})[r])}catch(i){i.target=r,n.push(i)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(o){var i=e[o];return i.testAsync((t||{})[o]).catch(function(s){s.target=o,n.push(s)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var W="colors",te="sizes",k="space",xa={gap:k,gridGap:k,columnGap:k,gridColumnGap:k,rowGap:k,gridRowGap:k,inset:k,insetBlock:k,insetBlockEnd:k,insetBlockStart:k,insetInline:k,insetInlineEnd:k,insetInlineStart:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,marginBlock:k,marginBlockEnd:k,marginBlockStart:k,marginInline:k,marginInlineEnd:k,marginInlineStart:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,paddingBlock:k,paddingBlockEnd:k,paddingBlockStart:k,paddingInline:k,paddingInlineEnd:k,paddingInlineStart:k,top:k,right:k,bottom:k,left:k,scrollMargin:k,scrollMarginTop:k,scrollMarginRight:k,scrollMarginBottom:k,scrollMarginLeft:k,scrollMarginX:k,scrollMarginY:k,scrollMarginBlock:k,scrollMarginBlockEnd:k,scrollMarginBlockStart:k,scrollMarginInline:k,scrollMarginInlineEnd:k,scrollMarginInlineStart:k,scrollPadding:k,scrollPaddingTop:k,scrollPaddingRight:k,scrollPaddingBottom:k,scrollPaddingLeft:k,scrollPaddingX:k,scrollPaddingY:k,scrollPaddingBlock:k,scrollPaddingBlockEnd:k,scrollPaddingBlockStart:k,scrollPaddingInline:k,scrollPaddingInlineEnd:k,scrollPaddingInlineStart:k,fontSize:"fontSizes",background:W,backgroundColor:W,backgroundImage:W,borderImage:W,border:W,borderBlock:W,borderBlockEnd:W,borderBlockStart:W,borderBottom:W,borderBottomColor:W,borderColor:W,borderInline:W,borderInlineEnd:W,borderInlineStart:W,borderLeft:W,borderLeftColor:W,borderRight:W,borderRightColor:W,borderTop:W,borderTopColor:W,caretColor:W,color:W,columnRuleColor:W,fill:W,outline:W,outlineColor:W,stroke:W,textDecorationColor:W,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:te,minBlockSize:te,maxBlockSize:te,inlineSize:te,minInlineSize:te,maxInlineSize:te,width:te,minWidth:te,maxWidth:te,height:te,minHeight:te,maxHeight:te,flexBasis:te,gridTemplateColumns:te,gridTemplateRows:te,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Ea=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,dt=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,Ea))(t);return o in e?e[o]:e[o]=n(t,...r)}},Ye=Symbol.for("sxs.internal"),vr=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Ur=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Ca}=Object.prototype,qn=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),_a=/\s+(?![^()]*\))/,rt=e=>t=>e(...typeof t=="string"?String(t).split(_a):[t]),Kr={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:rt((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:rt((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:rt((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:rt((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:rt((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:rt((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},jn=/([\d.]+)([^]*)/,Sa=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(o)?`:is(${r})`:r):r+" "+o)),n),[]):t,Oa=(e,t)=>e in Ra&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${qn(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${qn(e)}:${r}fit-content`)+i):String(t),Ra={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},ke=e=>e?e+"-":"",$i=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,o,i,s,a)=>s=="$"==!!i?r:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?ke(t)+(a.includes("$")?"":ke(n))+a.replace(/\$/g,"-"):a)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),ka=/\s*,\s*(?![^()]*\))/,Ta=Object.prototype.toString,it=(e,t,n,r,o)=>{let i,s,a;const c=(l,u,d)=>{let p,h;const m=b=>{for(p in b){const $=p.charCodeAt(0)===64,x=$&&Array.isArray(b[p])?b[p]:[b[p]];for(h of x){const w=/[A-Z]/.test(y=p)?y:y.replace(/-[^]/g,E=>E[1].toUpperCase()),C=typeof h=="object"&&h&&h.toString===Ta&&(!r.utils[w]||!u.length);if(w in r.utils&&!C){const E=r.utils[w];if(E!==s){s=E,m(E(h)),s=null;continue}}else if(w in Kr){const E=Kr[w];if(E!==a){a=E,m(E(h)),a=null;continue}}if($&&(v=p.slice(1)in r.media?"@media "+r.media[p.slice(1)]:p,p=v.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(E,_,S,M,T,P)=>{const R=jn.test(_),B=.0625*(R?-1:1),[j,I]=R?[M,_]:[_,M];return"("+(S[0]==="="?"":S[0]===">"===R?"max-":"min-")+j+":"+(S[0]!=="="&&S.length===1?I.replace(jn,(z,L,Y)=>Number(L)+B*(S===">"?1:-1)+Y):I)+(T?") and ("+(T[0]===">"?"min-":"max-")+j+":"+(T.length===1?P.replace(jn,(z,L,Y)=>Number(L)+B*(T===">"?-1:1)+Y):P):"")+")"})),C){const E=$?d.concat(p):[...d],_=$?[...u]:Sa(u,p.split(ka));i!==void 0&&o(Gr(...i)),i=void 0,c(h,_,E)}else i===void 0&&(i=[[],u,d]),p=$||p.charCodeAt(0)!==36?p:`--${ke(r.prefix)}${p.slice(1).replace(/\$/g,"-")}`,h=C?h:typeof h=="number"?h&&w in Pa?String(h)+"px":String(h):$i(Oa(w,h??""),r.prefix,r.themeMap[w]),i[0].push(`${$?`${p} `:`${qn(p)}:`}${h}`)}}var v,y};m(l),i!==void 0&&o(Gr(...i)),i=void 0};c(e,t,n)},Gr=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,Pa={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Yr=e=>String.fromCharCode(e+(e>25?39:97)),qe=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Yr(n%52)+r;return Yr(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),_t=["themed","global","styled","onevar","resonevar","allvar","inline"],Aa=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},Da=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:a}=i;let c="";if(a.startsWith("--sxs"))return"";if(o[s-1]&&(c=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const l in t.rules)if(t.rules[l].group===i)return`--sxs{--sxs:${[...t.rules[l].cache].join(" ")}}${a}`;return i.cssRules.length?`${c}${a}`:""}return a}).join("")},r=()=>{if(t){const{rules:a,sheet:c}=t;if(!c.deleteRule){for(;Object(Object(c.cssRules)[0]).type===3;)c.cssRules.splice(0,1);c.cssRules=[]}for(const l in a)delete a[l]}const o=Object(e).styleSheets||[];for(const a of o)if(Aa(a)){for(let c=0,l=a.cssRules;l[c];++c){const u=Object(l[c]);if(u.type!==1)continue;const d=Object(l[c+1]);if(d.type!==4)continue;++c;const{cssText:p}=u;if(!p.startsWith("--sxs"))continue;const h=p.slice(14,-3).trim().split(/\s+/),m=_t[h[0]];m&&(t||(t={sheet:a,reset:r,rules:{},toString:n}),t.rules[m]={group:d,index:c,cache:new Set(h)})}if(t)break}if(!t){const a=(c,l)=>({type:l,cssRules:[],insertRule(u,d){this.cssRules.splice(d,0,a(u,{import:3,undefined:1}[(u.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return c==="@media{}"?`@media{${[].map.call(this.cssRules,u=>u.cssText).join("")}}`:c}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:a("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:s}=t;for(let a=_t.length-1;a>=0;--a){const c=_t[a];if(!s[c]){const l=_t[a+1],u=s[l]?s[l].index:i.cssRules.length;i.insertRule("@media{}",u),i.insertRule(`--sxs{--sxs:${a}}`,u),s[c]={group:i.cssRules[u+1],index:u,cache:new Set([a])}}Ia(s[c])}};return r(),t},Ia=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},xt=Symbol(),Ma=dt(),qr=(e,t)=>Ma(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const o of n)if(o!=null)if(o[Ye]){r.type==null&&(r.type=o[Ye].type);for(const i of o[Ye].composers)r.composers.add(i)}else o.constructor!==Object||o.$$typeof?r.type==null&&(r.type=o):r.composers.add(ja(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),La(e,r,t)}),ja=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${ke(o.prefix)}c-${qe(r)}`,s=[],a=[],c=Object.create(null),l=[];for(const p in n)c[p]=String(n[p]);if(typeof e=="object"&&e)for(const p in e){u=c,d=p,Ca.call(u,d)||(c[p]="undefined");const h=e[p];for(const m in h){const b={[p]:String(m)};String(m)==="undefined"&&l.push(p);const v=h[m],y=[b,v,!Ur(v)];s.push(y)}}var u,d;if(typeof t=="object"&&t)for(const p of t){let{css:h,...m}=p;h=typeof h=="object"&&h||{};for(const v in m)m[v]=String(m[v]);const b=[m,h,!Ur(h)];a.push(b)}return[i,r,s,a,c,l]},La=(e,t,n)=>{const[r,o,i,s]=Na(t.composers),a=typeof t.type=="function"||t.type.$$typeof?(d=>{function p(){for(let h=0;hp.rules[h]={apply:m=>p[xt].push([h,m])}),p})(n):null,c=(a||n).rules,l=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,u=d=>{d=typeof d=="object"&&d||Ba;const{css:p,...h}=d,m={};for(const y in i)if(delete h[y],y in d){let $=d[y];typeof $=="object"&&$?m[y]={"@initial":i[y],...$}:($=String($),m[y]=$!=="undefined"||s.has(y)?$:i[y])}else m[y]=i[y];const b=new Set([...o]);for(const[y,$,x,w]of t.composers){n.rules.styled.cache.has(y)||(n.rules.styled.cache.add(y),it($,[`.${y}`],[],e,_=>{c.styled.apply(_)}));const C=Xr(x,m,e.media),E=Xr(w,m,e.media,!0);for(const _ of C)if(_!==void 0)for(const[S,M,T]of _){const P=`${y}-${qe(M)}-${S}`;b.add(P);const R=(T?n.rules.resonevar:n.rules.onevar).cache,B=T?c.resonevar:c.onevar;R.has(P)||(R.add(P),it(M,[`.${P}`],[],e,j=>{B.apply(j)}))}for(const _ of E)if(_!==void 0)for(const[S,M]of _){const T=`${y}-${qe(M)}-${S}`;b.add(T),n.rules.allvar.cache.has(T)||(n.rules.allvar.cache.add(T),it(M,[`.${T}`],[],e,P=>{c.allvar.apply(P)}))}}if(typeof p=="object"&&p){const y=`${r}-i${qe(p)}-css`;b.add(y),n.rules.inline.cache.has(y)||(n.rules.inline.cache.add(y),it(p,[`.${y}`],[],e,$=>{c.inline.apply($)}))}for(const y of String(d.className||"").trim().split(/\s+/))y&&b.add(y);const v=h.className=[...b].join(" ");return{type:t.type,className:v,selector:l,props:h,toString:()=>v,deferredInjector:a}};return vr(u,{className:r,selector:l,[Ye]:t,toString:()=>(n.rules.styled.cache.has(r)||u(),r)})},Na=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,s,a]of e){t===""&&(t=i),n.push(i),o.push(...a);for(const c in s){const l=s[c];(r[c]===void 0||l!=="undefined"||a.includes(l))&&(r[c]=l)}}return[t,n,r,new Set(o)]},Xr=(e,t,n,r)=>{const o=[];e:for(let[i,s,a]of e){if(a)continue;let c,l=0,u=!1;for(c in i){const d=i[c];let p=t[c];if(p!==d){if(typeof p!="object"||!p)continue e;{let h,m,b=0;for(const v in p){if(d===String(p[v])){if(v!=="@initial"){const y=v.slice(1);(m=m||[]).push(y in n?n[y]:v.replace(/^@media ?/,"")),u=!0}l+=b,h=!0}++b}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!h)continue e}}}(o[l]=o[l]||[]).push([r?"cv":`${c}-${i[c]}`,s,u])}return o},Ba={},za=dt(),Fa=(e,t)=>za(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=qe(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let a of[].concat(o["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,t.sheet.insertRule(`@import ${a};`,s++);delete o["@import"]}it(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return vr(r,{toString:r})}),Wa=dt(),Ha=(e,t)=>Wa(e,()=>n=>{const r=`${ke(e.prefix)}k-${qe(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];it(n,[],[],e,a=>i.push(a));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return vr(o,{get name(){return o()},toString:o})}),Va=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+ke(this.prefix)+ke(this.scale)+this.token}toString(){return this.computedValue}},Ua=dt(),Ka=(e,t)=>Ua(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${ke(e.prefix)}t-${qe(r)}`}`,i={},s=[];for(const c in r){i[c]={};for(const l in r[c]){const u=`--${ke(e.prefix)}${c}-${l}`,d=$i(String(r[c][l]),e.prefix,c);i[c][l]=new Va(l,d,c,e.prefix),s.push(`${u}:${d}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const c=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(c)}return n};return{...i,get className(){return a()},selector:o,toString:a}}),Ga=dt(),Ya=dt(),qa=e=>{const t=(n=>{let r=!1;const o=Ga(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",a=typeof i.media=="object"&&i.media||{},c=typeof i.root=="object"?i.root||null:globalThis.document||null,l=typeof i.theme=="object"&&i.theme||{},u={prefix:s,media:a,theme:l,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...xa},utils:typeof i.utils=="object"&&i.utils||{}},d=Da(c),p={css:qr(u,d),globalCss:Fa(u,d),keyframes:Ha(u,d),createTheme:Ka(u,d),reset(){d.reset(),p.theme.toString()},theme:{},sheet:d,config:u,prefix:s,getCssText:d.toString,toString:d.toString};return String(p.theme=p.createTheme(l)),p});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>Ya(n,()=>{const o=qr(n,r);return(...i)=>{const s=o(...i),a=s[Ye].type,c=g.forwardRef((l,u)=>{const d=l&&l.as||a,{props:p,deferredInjector:h}=s(l);return delete p.as,p.ref=u,h?g.createElement(g.Fragment,null,g.createElement(d,p),g.createElement(h,null)):g.createElement(d,p)});return c.className=s.className,c.displayName=`Styled.${a.displayName||a.name||a}`,c.selector=s.selector,c.toString=()=>s.selector,c[Ye]=s[Ye],c}}))(t),t};function Xa(e,t,n){return Math.max(t,Math.min(e,n))}const Q={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Jr(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Zr(e,t,n,r=.15){return r===0?Xa(e,t,n):en?+Jr(e-n,n-t,r)+n:e}function Ja(e,[t,n],[r,o]){const[[i,s],[a,c]]=e;return[Zr(t,i,s,r),Zr(n,a,c,o)]}function Za(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qa(e){var t=Za(e,"string");return typeof t=="symbol"?t:String(t)}function se(e,t,n){return t=Qa(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function ac(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Ci(e){return wn(e)?ac(e)[0]:e}function cc(e){return sc(e).map(t=>t.identifier)}function Ln(e){const t=Ci(e);return wn(e)?t.identifier:t.pointerId}function to(e){const t=Ci(e);return[t.clientX,t.clientY]}function lc(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function on(e,...t){return typeof e=="function"?e(...t):e}function uc(){}function fc(...e){return e.length===0?uc:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function no(e,t){return Object.assign({},t,e||{})}const dc=32;class pc{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?on(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,lc(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const E=n._delta.map(Math.abs);Q.addTo(n._distance,E)}this.axisIntent&&this.axisIntent(t);const[s,a]=n._movement,[c,l]=r.threshold,{_step:u,values:d}=n;if(r.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(s)>=c&&d[0]),u[1]===!1&&(u[1]=Math.abs(a)>=l&&d[1])):(u[0]===!1&&(u[0]=Math.abs(s)>=c&&Math.sign(s)*c),u[1]===!1&&(u[1]=Math.abs(a)>=l&&Math.sign(a)*l)),n.intentional=u[0]!==!1||u[1]!==!1,!n.intentional)return;const p=[0,0];if(r.hasCustomTransform){const[E,_]=d;p[0]=u[0]!==!1?E-u[0]:0,p[1]=u[1]!==!1?_-u[1]:0}else p[0]=u[0]!==!1?s-u[0]:0,p[1]=u[1]!==!1?a-u[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(p);const h=n.offset,m=n._active&&!n._blocked||n.active;m&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=on(r.bounds,n)),this.setup&&this.setup()),n.movement=p,this.computeOffset()));const[b,v]=n.offset,[[y,$],[x,w]]=n._bounds;n.overflow=[b$?1:0,vw?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const C=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=Ja(n._bounds,n.offset,C),n.delta=Q.sub(n.offset,h),this.computeMovement(),m&&(!n.last||i>dc)){n.delta=Q.sub(n.offset,h);const E=n.delta.map(Math.abs);Q.addTo(n.distance,E),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[E[0]/i,E[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(K(K(K({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function hc([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class gc extends pc{constructor(...t){super(...t),se(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Q.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Q.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[Ei(t)]:r.axisThreshold;n.axis=hc(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const mc=e=>e,ro=.15,_i={enabled(e=!0){return e},eventOptions(e,t,n){return K(K({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[ro,ro];case!1:return[0,0];default:return Q.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Q.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||mc},threshold(e){return Q.toVector(e,0)}},bc=0,Mt=K(K({},_i),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=bc){return e},bounds(e={}){if(typeof e=="function")return i=>Mt.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),oo={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class vc extends gc{constructor(...t){super(...t),se(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=Mt.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=Ln(t),r._pointerActive=!0,this.computeValues(to(t)),this.computeInitial(),n.preventScrollAxis&&Ei(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=Ln(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=to(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=Q.sub(i,n._values),this.computeValues(i)),Q.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=Ln(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,c]=n._delta,[l,u]=n._movement,[d,p]=r.swipe.velocity,[h,m]=r.swipe.distance,b=r.swipe.duration;if(n.elapsedTimed&&Math.abs(l)>h&&(n.swipe[0]=Math.sign(a)),y>p&&Math.abs(u)>m&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,yc(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=oo[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,Q.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in oo&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function yc(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const jt=typeof window<"u"&&window.document&&window.document.createElement;function Si(){return jt&&"ontouchstart"in window}function wc(){return Si()||jt&&window.navigator.maxTouchPoints>1}function $c(){return jt&&"onpointerdown"in window}function xc(){return jt&&"exitPointerLock"in window.document}function Ec(){try{return"constructor"in GestureEvent}catch{return!1}}const fe={isBrowser:jt,gesture:Ec(),touch:Si(),touchscreen:wc(),pointer:$c(),pointerLock:xc()},Cc=250,_c=180,Sc=.5,Oc=50,Rc=250,kc=10,io={mouse:0,touch:0,pen:8},Tc=K(K({},Mt),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&fe.pointerLock,fe.touch&&n?"touch":this.pointerLock?"mouse":fe.pointer&&!o?"pointer":fe.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Cc:void 0,!(!fe.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=Q.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=Sc,distance:t=Oc,duration:n=Rc}={}){return{velocity:this.transform(Q.toVector(e)),distance:this.transform(Q.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return _c;case!1:return 0;default:return e}},axisThreshold(e){return e?K(K({},io),e):io},keyboardDisplacement(e=kc){return e}});K(K({},_i),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!fe.touch&&fe.gesture)return"gesture";if(fe.touch&&r)return"touch";if(fe.touchscreen){if(fe.pointer)return"pointer";if(fe.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const a=no(on(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},i=s=>{const a=no(on(r,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",Q.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});K(K({},Mt),{},{mouseOnly:(e=!0)=>e});K(K({},Mt),{},{mouseOnly:(e=!0)=>e});const Oi=new Map,Xn=new Map;function Pc(e){Oi.set(e.key,e.engine),Xn.set(e.key,e.resolver)}const Ac={key:"drag",engine:vc,resolver:Tc};function Dc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function Ic(e,t){if(e==null)return{};var n=Dc(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const Mc={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=fe.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},jc=["target","eventOptions","window","enabled","transform"];function tn(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=tn(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function Lc(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:c}=r,l=Ic(r,jc);if(n.shared=tn({target:o,eventOptions:i,window:s,enabled:a,transform:c},Mc),t){const u=Xn.get(t);n[t]=tn(K({shared:n.shared},l),u)}else for(const u in l){const d=Xn.get(u);d&&(n[u]=tn(K({shared:n.shared},l[u]),d))}return n}class Ri{constructor(t,n){se(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,a=ic(n,r),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},l=K(K({},c),i);t.addEventListener(a,o,l);const u=()=>{t.removeEventListener(a,o,l),s.delete(u)};return s.add(u),u}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class Nc{constructor(){se(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class Bc{constructor(t){se(this,"gestures",new Set),se(this,"_targetEventStore",new Ri(this)),se(this,"gestureEventStores",{}),se(this,"gestureTimeoutStores",{}),se(this,"handlers",{}),se(this,"config",{}),se(this,"pointerIds",new Set),se(this,"touchIds",new Set),se(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),zc(this,t)}setEventIds(t){if(wn(t))return this.touchIds=new Set(cc(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=Lc(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const a=this.config[s],c=so(r,a.eventOptions,!!o);if(a.enabled){const l=Oi.get(s);new l(this,t,s).bind(c)}}const i=so(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",a=>this.nativeHandlers[s](K(K({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=fc(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:a,passive:c}=oc(i);this._targetEventStore.add(o,s,"",r[i],{capture:a,passive:c})}}}}function ot(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Ri(e,t),e.gestureTimeoutStores[t]=new Nc}function zc(e,t){t.drag&&ot(e,"drag"),t.wheel&&ot(e,"wheel"),t.scroll&&ot(e,"scroll"),t.move&&ot(e,"move"),t.pinch&&ot(e,"pinch"),t.hover&&ot(e,"hover")}const so=(e,t,n)=>(r,o,i,s={},a=!1)=>{var c,l;const u=(c=s.capture)!==null&&c!==void 0?c:t.capture,d=(l=s.passive)!==null&&l!==void 0?l:t.passive;let p=a?r:nc(r,o,u);n&&d&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function Fc(e,t={},n,r){const o=g.useMemo(()=>new Bc(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),g.useEffect(o.effect.bind(o)),g.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function Wc(e,t){return Pc(Ac),Fc({drag:e},t||{},"drag")}function Se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ki(e,t=[]){let n=[];function r(i,s){const a=f.createContext(s),c=n.length;n=[...n,s];function l(d){const{scope:p,children:h,...m}=d,b=(p==null?void 0:p[e][c])||a,v=f.useMemo(()=>m,Object.values(m));return f.createElement(b.Provider,{value:v},h)}function u(d,p){const h=(p==null?void 0:p[e][c])||a,m=f.useContext(h);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const o=()=>{const i=n.map(s=>f.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Hc(o,...t)]}function Hc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function pt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Vc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Jn="dismissableLayer.update",Uc="dismissableLayer.pointerDownOutside",Kc="dismissableLayer.focusOutside";let ao;const Gc=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yc=f.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=f.useContext(Gc),[d,p]=f.useState(null),h=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=f.useState({}),b=ft(t,S=>p(S)),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),$=v.indexOf(y),x=d?v.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=$,E=qc(S=>{const M=S.target,T=[...u.branches].some(P=>P.contains(M));!C||T||(i==null||i(S),a==null||a(S),S.defaultPrevented||c==null||c())},h),_=Xc(S=>{const M=S.target;[...u.branches].some(P=>P.contains(M))||(s==null||s(S),a==null||a(S),S.defaultPrevented||c==null||c())},h);return Vc(S=>{x===u.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&c&&(S.preventDefault(),c()))},h),f.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ao=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),co(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ao)}},[d,h,r,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),co())},[d,u]),f.useEffect(()=>{const S=()=>m({});return document.addEventListener(Jn,S),()=>document.removeEventListener(Jn,S)},[]),f.createElement(Ze.div,Z({},l,{ref:b,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,E.onPointerDownCapture)}))});function qc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Ti(Uc,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ti(Kc,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function co(){const e=new CustomEvent(Jn);document.dispatchEvent(e)}function Ti(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ga(o,i):o.dispatchEvent(i)}const ct=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Jc=ia.useId||(()=>{});let Zc=0;function Qc(e){const[t,n]=f.useState(Jc());return ct(()=>{e||n(r=>r??String(Zc++))},[e]),e||(t?`radix-${t}`:"")}const el=["top","right","bottom","left"],Ne=Math.min,le=Math.max,sn=Math.round,qt=Math.floor,Be=e=>({x:e,y:e}),tl={left:"right",right:"left",bottom:"top",top:"bottom"},nl={start:"end",end:"start"};function Zn(e,t,n){return le(e,Ne(t,n))}function Te(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function ht(e){return e.split("-")[1]}function yr(e){return e==="x"?"y":"x"}function wr(e){return e==="y"?"height":"width"}function gt(e){return["top","bottom"].includes(Pe(e))?"y":"x"}function $r(e){return yr(gt(e))}function rl(e,t,n){n===void 0&&(n=!1);const r=ht(e),o=$r(e),i=wr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=an(s)),[s,an(s)]}function ol(e){const t=an(e);return[Qn(e),t,Qn(t)]}function Qn(e){return e.replace(/start|end/g,t=>nl[t])}function il(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function sl(e,t,n,r){const o=ht(e);let i=il(Pe(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Qn)))),i}function an(e){return e.replace(/left|right|bottom|top/g,t=>tl[t])}function al(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pi(e){return typeof e!="number"?al(e):{top:e,right:e,bottom:e,left:e}}function cn(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function lo(e,t,n){let{reference:r,floating:o}=e;const i=gt(t),s=$r(t),a=wr(s),c=Pe(t),l=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let h;switch(c){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(ht(t)){case"start":h[s]-=p*(n&&l?-1:1);break;case"end":h[s]+=p*(n&&l?-1:1);break}return h}const cl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=lo(l,r,c),p=r,h={},m=0;for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Te(e,t)||{};if(l==null)return{};const d=Pi(u),p={x:n,y:r},h=$r(o),m=wr(h),b=await s.getDimensions(l),v=h==="y",y=v?"top":"left",$=v?"bottom":"right",x=v?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[h]-p[h]-i.floating[m],C=p[h]-i.reference[h],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let _=E?E[x]:0;(!_||!await(s.isElement==null?void 0:s.isElement(E)))&&(_=a.floating[x]||i.floating[m]);const S=w/2-C/2,M=_/2-b[m]/2-1,T=Ne(d[y],M),P=Ne(d[$],M),R=T,B=_-b[m]-P,j=_/2-b[m]/2+S,I=Zn(R,j,B),z=!c.arrow&&ht(o)!=null&&j!==I&&i.reference[m]/2-(jR<=0)){var M,T;const R=(((M=i.flip)==null?void 0:M.index)||0)+1,B=C[R];if(B)return{data:{index:R,overflows:S},reset:{placement:B}};let j=(T=S.filter(I=>I.overflows[0]<=0).sort((I,z)=>I.overflows[1]-z.overflows[1])[0])==null?void 0:T.placement;if(!j)switch(h){case"bestFit":{var P;const I=(P=S.map(z=>[z.placement,z.overflows.filter(L=>L>0).reduce((L,Y)=>L+Y,0)]).sort((z,L)=>z[1]-L[1])[0])==null?void 0:P[0];I&&(j=I);break}case"initialPlacement":j=a;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function uo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fo(e){return el.some(t=>e[t]>=0)}const fl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Te(e,t);switch(r){case"referenceHidden":{const i=await Pt(t,{...o,elementContext:"reference"}),s=uo(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:fo(s)}}}case"escaped":{const i=await Pt(t,{...o,altBoundary:!0}),s=uo(i,n.floating);return{data:{escapedOffsets:s,escaped:fo(s)}}}default:return{}}}}};async function dl(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Pe(n),a=ht(n),c=gt(n)==="y",l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=Te(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),c?{x:h*u,y:p*l}:{x:p*l,y:h*u}}const pl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await dl(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},hl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:$}=v;return{x:y,y:$}}},...c}=Te(e,t),l={x:n,y:r},u=await Pt(t,c),d=gt(Pe(o)),p=yr(d);let h=l[p],m=l[d];if(i){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",$=h+u[v],x=h-u[y];h=Zn($,h,x)}if(s){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",$=m+u[v],x=m-u[y];m=Zn($,m,x)}const b=a.fn({...t,[p]:h,[d]:m});return{...b,data:{x:b.x-n,y:b.y-r}}}}},gl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Te(e,t),u={x:n,y:r},d=gt(o),p=yr(d);let h=u[p],m=u[d];const b=Te(a,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const x=p==="y"?"height":"width",w=i.reference[p]-i.floating[x]+v.mainAxis,C=i.reference[p]+i.reference[x]-v.mainAxis;hC&&(h=C)}if(l){var y,$;const x=p==="y"?"width":"height",w=["top","left"].includes(Pe(o)),C=i.reference[d]-i.floating[x]+(w&&((y=s.offset)==null?void 0:y[d])||0)+(w?0:v.crossAxis),E=i.reference[d]+i.reference[x]+(w?0:(($=s.offset)==null?void 0:$[d])||0)-(w?v.crossAxis:0);mE&&(m=E)}return{[p]:h,[d]:m}}}},ml=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=Te(e,t),c=await Pt(t,a),l=Pe(n),u=ht(n),d=gt(n)==="y",{width:p,height:h}=r.floating;let m,b;l==="top"||l==="bottom"?(m=l,b=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(b=l,m=u==="end"?"top":"bottom");const v=h-c[m],y=p-c[b],$=!t.middlewareData.shift;let x=v,w=y;if(d){const E=p-c.left-c.right;w=u||$?Ne(y,E):E}else{const E=h-c.top-c.bottom;x=u||$?Ne(v,E):E}if($&&!u){const E=le(c.left,0),_=le(c.right,0),S=le(c.top,0),M=le(c.bottom,0);d?w=p-2*(E!==0||_!==0?E+_:le(c.left,c.right)):x=h-2*(S!==0||M!==0?S+M:le(c.top,c.bottom))}await s({...t,availableWidth:w,availableHeight:x});const C=await o.getDimensions(i.floating);return p!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}};function ze(e){return Ai(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function De(e){var t;return(t=(Ai(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ai(e){return e instanceof Node||e instanceof ue(e).Node}function Ae(e){return e instanceof Element||e instanceof ue(e).Element}function xe(e){return e instanceof HTMLElement||e instanceof ue(e).HTMLElement}function po(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function Lt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function bl(e){return["table","td","th"].includes(ze(e))}function xr(e){const t=Er(),n=pe(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function vl(e){let t=lt(e);for(;xe(t)&&!$n(t);){if(xr(t))return t;t=lt(t)}return null}function Er(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $n(e){return["html","body","#document"].includes(ze(e))}function pe(e){return ue(e).getComputedStyle(e)}function xn(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lt(e){if(ze(e)==="html")return e;const t=e.assignedSlot||e.parentNode||po(e)&&e.host||De(e);return po(t)?t.host:t}function Di(e){const t=lt(e);return $n(t)?e.ownerDocument?e.ownerDocument.body:e.body:xe(t)&&Lt(t)?t:Di(t)}function At(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Di(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ue(o);return i?t.concat(s,s.visualViewport||[],Lt(o)?o:[],s.frameElement&&n?At(s.frameElement):[]):t.concat(o,At(o,[],n))}function Ii(e){const t=pe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xe(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=sn(n)!==i||sn(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Cr(e){return Ae(e)?e:e.contextElement}function at(e){const t=Cr(e);if(!xe(t))return Be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ii(t);let s=(i?sn(n.width):n.width)/r,a=(i?sn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const yl=Be(0);function Mi(e){const t=ue(e);return!Er()||!t.visualViewport?yl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ue(e)?!1:t}function Xe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Cr(e);let s=Be(1);t&&(r?Ae(r)&&(s=at(r)):s=at(e));const a=wl(i,n,r)?Mi(i):Be(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const p=ue(i),h=r&&Ae(r)?ue(r):r;let m=p,b=m.frameElement;for(;b&&r&&h!==m;){const v=at(b),y=b.getBoundingClientRect(),$=pe(b),x=y.left+(b.clientLeft+parseFloat($.paddingLeft))*v.x,w=y.top+(b.clientTop+parseFloat($.paddingTop))*v.y;c*=v.x,l*=v.y,u*=v.x,d*=v.y,c+=x,l+=w,m=ue(b),b=m.frameElement}}return cn({width:u,height:d,x:c,y:l})}const $l=[":popover-open",":modal"];function ji(e){return $l.some(t=>{try{return e.matches(t)}catch{return!1}})}function xl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=De(r),a=t?ji(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Be(1);const u=Be(0),d=xe(r);if((d||!d&&!i)&&((ze(r)!=="body"||Lt(s))&&(c=xn(r)),xe(r))){const p=Xe(r);l=at(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function El(e){return Array.from(e.getClientRects())}function Li(e){return Xe(De(e)).left+xn(e).scrollLeft}function Cl(e){const t=De(e),n=xn(e),r=e.ownerDocument.body,o=le(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=le(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Li(e);const a=-n.scrollTop;return pe(r).direction==="rtl"&&(s+=le(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function _l(e,t){const n=ue(e),r=De(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const l=Er();(!l||l&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}function Sl(e,t){const n=Xe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=xe(e)?at(e):Be(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function ho(e,t,n){let r;if(t==="viewport")r=_l(e,n);else if(t==="document")r=Cl(De(e));else if(Ae(t))r=Sl(t,n);else{const o=Mi(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return cn(r)}function Ni(e,t){const n=lt(e);return n===t||!Ae(n)||$n(n)?!1:pe(n).position==="fixed"||Ni(n,t)}function Ol(e,t){const n=t.get(e);if(n)return n;let r=At(e,[],!1).filter(a=>Ae(a)&&ze(a)!=="body"),o=null;const i=pe(e).position==="fixed";let s=i?lt(e):e;for(;Ae(s)&&!$n(s);){const a=pe(s),c=xr(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Lt(s)&&!c&&Ni(e,s))?r=r.filter(u=>u!==s):o=a,s=lt(s)}return t.set(e,r),r}function Rl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ol(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,u)=>{const d=ho(t,u,o);return l.top=le(d.top,l.top),l.right=Ne(d.right,l.right),l.bottom=Ne(d.bottom,l.bottom),l.left=le(d.left,l.left),l},ho(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function kl(e){const{width:t,height:n}=Ii(e);return{width:t,height:n}}function Tl(e,t,n){const r=xe(t),o=De(t),i=n==="fixed",s=Xe(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Be(0);if(r||!r&&!i)if((ze(t)!=="body"||Lt(o))&&(a=xn(t)),r){const d=Xe(t,!0,i,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else o&&(c.x=Li(o));const l=s.left+a.scrollLeft-c.x,u=s.top+a.scrollTop-c.y;return{x:l,y:u,width:s.width,height:s.height}}function go(e,t){return!xe(e)||pe(e).position==="fixed"?null:t?t(e):e.offsetParent}function Bi(e,t){const n=ue(e);if(!xe(e)||ji(e))return n;let r=go(e,t);for(;r&&bl(r)&&pe(r).position==="static";)r=go(r,t);return r&&(ze(r)==="html"||ze(r)==="body"&&pe(r).position==="static"&&!xr(r))?n:r||vl(e)||n}const Pl=async function(e){const t=this.getOffsetParent||Bi,n=this.getDimensions;return{reference:Tl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function Al(e){return pe(e).direction==="rtl"}const Dl={convertOffsetParentRelativeRectToViewportRelativeRect:xl,getDocumentElement:De,getClippingRect:Rl,getOffsetParent:Bi,getElementRects:Pl,getClientRects:El,getDimensions:kl,getScale:at,isElement:Ae,isRTL:Al};function Il(e,t){let n=null,r;const o=De(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const h=qt(u),m=qt(o.clientWidth-(l+d)),b=qt(o.clientHeight-(u+p)),v=qt(l),$={rootMargin:-h+"px "+-m+"px "+-b+"px "+-v+"px",threshold:le(0,Ne(1,c))||1};let x=!0;function w(C){const E=C[0].intersectionRatio;if(E!==c){if(!x)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(w,{...$,root:o.ownerDocument})}catch{n=new IntersectionObserver(w,$)}n.observe(e)}return s(!0),i}function Ml(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Cr(e),u=o||i?[...l?At(l):[],...At(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=l&&a?Il(l,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(y=>{let[$]=y;$&&$.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),l&&!c&&h.observe(l),h.observe(t));let m,b=c?Xe(e):null;c&&v();function v(){const y=Xe(e);b&&(y.x!==b.x||y.y!==b.y||y.width!==b.width||y.height!==b.height)&&n(),b=y,m=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach($=>{o&&$.removeEventListener("scroll",n),i&&$.removeEventListener("resize",n)}),d==null||d(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const jl=hl,Ll=ul,Nl=ml,Bl=fl,mo=ll,zl=gl,Fl=(e,t,n)=>{const r=new Map,o={platform:Dl,...n},i={...o.platform,_c:r};return cl(e,t,{...o,platform:i})},Wl=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?mo({element:r.current,padding:o}).fn(n):{}:r?mo({element:r,padding:o}).fn(n):{}}}};var nn=typeof document<"u"?f.useLayoutEffect:f.useEffect;function ln(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ln(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ln(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function zi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bo(e,t){const n=zi(e);return Math.round(t*n)/n}function vo(e){const t=f.useRef(e);return nn(()=>{t.current=e}),t}function Hl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=f.useState(r);ln(p,r)||h(r);const[m,b]=f.useState(null),[v,y]=f.useState(null),$=f.useCallback(L=>{L!==E.current&&(E.current=L,b(L))},[]),x=f.useCallback(L=>{L!==_.current&&(_.current=L,y(L))},[]),w=i||m,C=s||v,E=f.useRef(null),_=f.useRef(null),S=f.useRef(u),M=c!=null,T=vo(c),P=vo(o),R=f.useCallback(()=>{if(!E.current||!_.current)return;const L={placement:t,strategy:n,middleware:p};P.current&&(L.platform=P.current),Fl(E.current,_.current,L).then(Y=>{const q={...Y,isPositioned:!0};B.current&&!ln(S.current,q)&&(S.current=q,mr.flushSync(()=>{d(q)}))})},[p,t,n,P]);nn(()=>{l===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,d(L=>({...L,isPositioned:!1})))},[l]);const B=f.useRef(!1);nn(()=>(B.current=!0,()=>{B.current=!1}),[]),nn(()=>{if(w&&(E.current=w),C&&(_.current=C),w&&C){if(T.current)return T.current(w,C,R);R()}},[w,C,R,T,M]);const j=f.useMemo(()=>({reference:E,floating:_,setReference:$,setFloating:x}),[$,x]),I=f.useMemo(()=>({reference:w,floating:C}),[w,C]),z=f.useMemo(()=>{const L={position:n,left:0,top:0};if(!I.floating)return L;const Y=bo(I.floating,u.x),q=bo(I.floating,u.y);return a?{...L,transform:"translate("+Y+"px, "+q+"px)",...zi(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:q}},[n,a,I.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:R,refs:j,elements:I,floatingStyles:z}),[u,R,j,I,z])}const Vl=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return f.createElement(Ze.svg,Z({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:f.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Ul=Vl;function Kl(e){const[t,n]=f.useState(void 0);return ct(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Fi="Popper",[Wi,Hi]=ki(Fi),[Gl,Vi]=Wi(Fi),Yl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return f.createElement(Gl,{scope:t,anchor:r,onAnchorChange:o},n)},ql="PopperAnchor",Xl=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Vi(ql,n),s=f.useRef(null),a=ft(t,s);return f.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:f.createElement(Ze.div,Z({},o,{ref:a}))}),Ui="PopperContent",[Jl,Zl]=Wi(Ui),Ql=f.forwardRef((e,t)=>{var n,r,o,i,s,a,c,l;const{__scopePopper:u,side:d="bottom",sideOffset:p=0,align:h="center",alignOffset:m=0,arrowPadding:b=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:$=0,sticky:x="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:E,..._}=e,S=Vi(Ui,u),[M,T]=f.useState(null),P=ft(t,ye=>T(ye)),[R,B]=f.useState(null),j=Kl(R),I=(n=j==null?void 0:j.width)!==null&&n!==void 0?n:0,z=(r=j==null?void 0:j.height)!==null&&r!==void 0?r:0,L=d+(h!=="center"?"-"+h:""),Y=typeof $=="number"?$:{top:0,right:0,bottom:0,left:0,...$},q=Array.isArray(y)?y:[y],Ee=q.length>0,oe={padding:Y,boundary:q.filter(ru),altBoundary:Ee},{refs:Ft,floatingStyles:yt,placement:Wt,isPositioned:We,middlewareData:me}=Hl({strategy:"fixed",placement:L,whileElementsMounted:(...ye)=>Ml(...ye,{animationFrame:C==="always"}),elements:{reference:S.anchor},middleware:[pl({mainAxis:p+z,alignmentAxis:m}),v&&jl({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?zl():void 0,...oe}),v&&Ll({...oe}),Nl({...oe,apply:({elements:ye,rects:Ue,availableWidth:Sn,availableHeight:On})=>{const{width:Rn,height:Kt}=Ue.reference,Ke=ye.floating.style;Ke.setProperty("--radix-popper-available-width",`${Sn}px`),Ke.setProperty("--radix-popper-available-height",`${On}px`),Ke.setProperty("--radix-popper-anchor-width",`${Rn}px`),Ke.setProperty("--radix-popper-anchor-height",`${Kt}px`)}}),R&&Wl({element:R,padding:b}),ou({arrowWidth:I,arrowHeight:z}),w&&Bl({strategy:"referenceHidden",...oe})]}),[He,Me]=Ki(Wt),Ve=pt(E);ct(()=>{We&&(Ve==null||Ve())},[We,Ve]);const Ht=(o=me.arrow)===null||o===void 0?void 0:o.x,Vt=(i=me.arrow)===null||i===void 0?void 0:i.y,Ut=((s=me.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[je,wt]=f.useState();return ct(()=>{M&&wt(window.getComputedStyle(M).zIndex)},[M]),f.createElement("div",{ref:Ft.setFloating,"data-radix-popper-content-wrapper":"",style:{...yt,transform:We?yt.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:je,"--radix-popper-transform-origin":[(a=me.transformOrigin)===null||a===void 0?void 0:a.x,(c=me.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},f.createElement(Jl,{scope:u,placedSide:He,onArrowChange:B,arrowX:Ht,arrowY:Vt,shouldHideArrow:Ut},f.createElement(Ze.div,Z({"data-side":He,"data-align":Me},_,{ref:P,style:{..._.style,animation:We?void 0:"none",opacity:(l=me.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),eu="PopperArrow",tu={top:"bottom",right:"left",bottom:"top",left:"right"},nu=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Zl(eu,r),s=tu[i.placedSide];return f.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},f.createElement(Ul,Z({},o,{ref:n,style:{...o.style,display:"block"}})))});function ru(e){return e!==null}const ou=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:c,middlewareData:l}=t,d=((n=l.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[m,b]=Ki(a),v={start:"0%",center:"50%",end:"100%"}[b],y=((r=(o=l.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,$=((i=(s=l.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+h/2;let x="",w="";return m==="bottom"?(x=d?v:`${y}px`,w=`${-h}px`):m==="top"?(x=d?v:`${y}px`,w=`${c.floating.height+h}px`):m==="right"?(x=`${-h}px`,w=d?v:`${$}px`):m==="left"&&(x=`${c.floating.width+h}px`,w=d?v:`${$}px`),{data:{x,y:w}}}});function Ki(e){const[t,n="center"]=e.split("-");return[t,n]}const iu=Yl,su=Xl,au=Ql,cu=nu;function lu(e,t){return f.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Gi=e=>{const{present:t,children:n}=e,r=uu(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=ft(r.ref,o.ref);return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};Gi.displayName="Presence";function uu(e){const[t,n]=f.useState(),r=f.useRef({}),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=lu(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Xt(r.current);i.current=a==="mounted"?l:"none"},[a]),ct(()=>{const l=r.current,u=o.current;if(u!==e){const p=i.current,h=Xt(l);e?c("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ct(()=>{if(t){const l=d=>{const h=Xt(r.current).includes(d.animationName);d.target===t&&h&&mr.flushSync(()=>c("ANIMATION_END"))},u=d=>{d.target===t&&(i.current=Xt(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Xt(e){return(e==null?void 0:e.animationName)||"none"}function fu({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=du({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=pt(n),c=f.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else o(l)},[i,e,o,a]);return[s,c]}function du({defaultProp:e,onChange:t}){const n=f.useState(e),[r]=n,o=f.useRef(r),i=pt(t);return f.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const pu=f.forwardRef((e,t)=>f.createElement(Ze.span,Z({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),hu=pu,[En,lm]=ki("Tooltip",[Hi]),Cn=Hi(),gu="TooltipProvider",er="tooltip.open",[um,_r]=En(gu),Sr="Tooltip",[mu,_n]=En(Sr),bu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=_r(Sr,e.__scopeTooltip),l=Cn(t),[u,d]=f.useState(null),p=Qc(),h=f.useRef(0),m=s??c.disableHoverableContent,b=a??c.delayDuration,v=f.useRef(!1),[y=!1,$]=fu({prop:r,defaultProp:o,onChange:_=>{_?(c.onOpen(),document.dispatchEvent(new CustomEvent(er))):c.onClose(),i==null||i(_)}}),x=f.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),w=f.useCallback(()=>{window.clearTimeout(h.current),v.current=!1,$(!0)},[$]),C=f.useCallback(()=>{window.clearTimeout(h.current),$(!1)},[$]),E=f.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,$(!0)},b)},[b,$]);return f.useEffect(()=>()=>window.clearTimeout(h.current),[]),f.createElement(iu,l,f.createElement(mu,{scope:t,contentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayed?E():w()},[c.isOpenDelayed,E,w]),onTriggerLeave:f.useCallback(()=>{m?C():window.clearTimeout(h.current)},[C,m]),onOpen:w,onClose:C,disableHoverableContent:m},n))},yo="TooltipTrigger",vu=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=_n(yo,n),i=_r(yo,n),s=Cn(n),a=f.useRef(null),c=ft(t,a,o.onTriggerChange),l=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.createElement(su,Z({asChild:!0},s),f.createElement(Ze.button,Z({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:c,onPointerMove:Se(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:Se(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:Se(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Se(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:Se(e.onBlur,o.onClose),onClick:Se(e.onClick,o.onClose)})))}),yu="TooltipPortal",[fm,wu]=En(yu,{forceMount:void 0}),Dt="TooltipContent",$u=f.forwardRef((e,t)=>{const n=wu(Dt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=_n(Dt,e.__scopeTooltip);return f.createElement(Gi,{present:r||s.open},s.disableHoverableContent?f.createElement(Yi,Z({side:o},i,{ref:t})):f.createElement(xu,Z({side:o},i,{ref:t})))}),xu=f.forwardRef((e,t)=>{const n=_n(Dt,e.__scopeTooltip),r=_r(Dt,e.__scopeTooltip),o=f.useRef(null),i=ft(t,o),[s,a]=f.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:d}=r,p=f.useCallback(()=>{a(null),d(!1)},[d]),h=f.useCallback((m,b)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},$=Ou(y,v.getBoundingClientRect()),x=Ru(y,$),w=ku(b.getBoundingClientRect()),C=Pu([...x,...w]);a(C),d(!0)},[d]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(c&&u){const m=v=>h(v,u),b=v=>h(v,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",b),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",b)}}},[c,u,h,p]),f.useEffect(()=>{if(s){const m=b=>{const v=b.target,y={x:b.clientX,y:b.clientY},$=(c==null?void 0:c.contains(v))||(u==null?void 0:u.contains(v)),x=!Tu(y,s);$?p():x&&(p(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,s,l,p]),f.createElement(Yi,Z({},e,{ref:i}))}),[Eu,Cu]=En(Sr,{isInside:!1}),Yi=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=_n(Dt,n),l=Cn(n),{onClose:u}=c;return f.useEffect(()=>(document.addEventListener(er,u),()=>document.removeEventListener(er,u)),[u]),f.useEffect(()=>{if(c.trigger){const d=p=>{const h=p.target;h!=null&&h.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),f.createElement(Yc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u},f.createElement(au,Z({"data-state":c.stateAttribute},l,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),f.createElement(mi,null,r),f.createElement(Eu,{scope:n,isInside:!0},f.createElement(hu,{id:c.contentId,role:"tooltip"},o||r))))}),_u="TooltipArrow",Su=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Cn(n);return Cu(_u,n).isInside?null:f.createElement(cu,Z({},o,r,{ref:t}))});function Ou(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ru(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ku(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Tu(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=u>r&&n<(l-a)*(r-c)/(u-c)+a&&(o=!o)}return o}function Pu(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),Au(t)}function Au(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const Du=bu,Iu=vu,Mu=$u,ju=Su;function Lu(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function F(e,t){if(e==null)return{};var n=Lu(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let U;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(U||(U={}));const Nu={[U.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[U.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[U.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[U.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[U.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[U.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[U.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[U.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[U.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[U.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[U.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function qi(e,t,...n){const[r,...o]=Nu[t](...n);console[e]("LEVA: "+r,...o)}const Oe=qi.bind(null,"warn"),Bu=qi.bind(null,"log"),zu=["value"],Fu=["schema"],Wu=["value"],Xi=[],Je={};function wo(e){let{value:t}=e,n=F(e,zu);for(let r of Xi){const o=r(t,n);if(o)return o}}function Ie(e,t){let{schema:n}=t,r=F(t,Fu);if(e in Je){Oe(U.ALREADY_REGISTERED_TYPE,e);return}Xi.push((o,i)=>n(o,i)&&e),Je[e]=r}function Nn(e,t,n,r){const{normalize:o}=Je[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=F(t,Wu);return{value:i,settings:s}}function Hu(e,t,n,r,o,i){const{sanitize:s}=Je[e];return s?s(t,n,r,o,i):t}function $o(e,t,n){const{format:r}=Je[e];return r?r(t,n):t}function Vu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=Le(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},Ku=Math.log(10);function Eo(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/Ku)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const un=(e,t,n)=>n===t?0:(Fe(e,t,n)-t)/(n-t),fn=(e,t,n)=>e*(n-t)+t,Gu=()=>"_"+Math.random().toString(36).substr(2,9),Co=/\(([0-9+\-*/^ .]+)\)/,_o=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,So=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Oo=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Ro=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,ko=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function Le(e){if(isNaN(Number(e)))if(Co.test(e)){const t=e.replace(Co,(n,r)=>String(Le(r)));return Le(t)}else if(_o.test(e)){const t=e.replace(_o,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return Le(t)}else if(So.test(e)){const t=e.replace(So,(n,r,o)=>String(Number(r)*Number(o)));return Le(t)}else if(Oo.test(e)){const t=e.replace(Oo,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return Le(t)}else if(Ro.test(e)){const t=e.replace(Ro,(n,r,o)=>String(Number(r)+Number(o)));return Le(t)}else if(ko.test(e)){const t=e.replace(ko,(n,r,o)=>String(Number(r)-Number(o)));return Le(t)}else return Number(e);return Number(e)}function Yu(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function qu(e,t){const n=A({},e);return t.forEach(r=>r in e&&delete n[r]),n}function Xu(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function Ji(e){return Object.prototype.toString.call(e)==="[object Object]"}const Ju=e=>Ji(e)&&Object.keys(e).length===0;let ce;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(ce||(ce={}));let he;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(he||(he={}));const Zu=["type","__customInput"],Qu=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],ef=["type"];function Zi(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:A({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:C,__customInput:E}=e,_=F(e,Zu);return Zi(E,t,_,C)}const{render:s,label:a,optional:c,order:l=0,disabled:u,hint:d,onChange:p,onEditStart:h,onEditEnd:m,transient:b}=e,v=F(e,Qu),y=A({render:s,key:t,label:a??t,hint:d,transient:b??!!p,onEditStart:h,onEditEnd:m,disabled:u,optional:c,order:l},n);let{type:$}=v,x=F(v,ef);if($=r??$,$ in ce)return{type:$,input:x,options:y};let w;return r&&Ji(x)&&"value"in x?w=x.value:w=Ju(x)?void 0:x,{type:$,input:w,options:A(A({},y),{},{onChange:p,optional:(o=y.optional)!==null&&o!==void 0?o:!1,disabled:(i=y.disabled)!==null&&i!==void 0?i:!1})}}function tf(e,t,n,r){const o=Zi(e,t),{type:i,input:s,options:a}=o;if(i)return i in ce?o:{type:i,input:Nn(i,s,n,r),options:a};let c=wo(s);return c?{type:c,input:Nn(c,s,n,r),options:a}:(c=wo({value:s}),c?{type:c,input:Nn(c,{value:s},n,r),options:a}:!1)}function To(e,t,n,r,o){const{value:i,type:s,settings:a}=e;e.value=Qi({type:s,value:i,settings:a},t,n,r),e.fromPanel=o}const nf=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function Qi({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let a;try{a=Hu(e,s,n,t,o,i)}catch(c){throw new nf(`The value \`${r}\` did not result in a correct value.`,t,c)}return kt(a,t)?t:a}const es=(e,t,n=!1)=>{let r=0;return function(){const o=arguments,i=n&&!r,s=()=>e.apply(this,o);window.clearTimeout(r),r=window.setTimeout(s,t),i&&s()}},ts=e=>e.shiftKey?5:e.altKey?1/5:1;function rf(e,t){const n=console.error;console.error=()=>{},fi.render(e,t),console.error=n}const of=["value"],sf=["min","max"],af=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},ns=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const o=parseFloat(e);if(e===""||isNaN(o))throw Error("Invalid number");const i=Fe(o,t,n);return r?i+r:i},cf=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},rs=e=>{let{value:t}=e,n=F(e,of);const{min:r=-1/0,max:o=1/0}=n,i=F(n,sf);let s=parseFloat(t);const a=typeof t=="string"?t.substring((""+s).length):void 0;s=Fe(s,r,o);let c=n.step;c||(Number.isFinite(r)?Number.isFinite(o)?c=+(Math.abs(o-r)/100).toPrecision(1):c=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(c=+(Math.abs(o-s)/100).toPrecision(1)));const l=c?Eo(c)*10:Eo(s);c=c||l/10;const u=Math.round(Fe(Math.log10(1/l),0,2));return{value:a?s+a:s,settings:A({initialValue:s,step:c,pad:u,min:r,max:o,suffix:a},i)}},os=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var is=Object.freeze({__proto__:null,schema:af,sanitize:ns,format:cf,normalize:rs,sanitizeStep:os});function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function Jt(e,t){const[n,r]=e.split(" "),o={};return n!=="none"&&(o.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(o.backgroundColor=r),o}const Et={$inputStyle:()=>e=>Jt(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>Jt(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>Jt(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>Jt(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:D,css:dm,createTheme:ff,globalCss:df,keyframes:pm}=qa({prefix:"leva",theme:cs(),utils:A(A({},Et),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":Et.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":Et.$focusStyle()(e)}),$hover:e=>({"&:hover":Et.$hoverStyle()(e)}),$active:e=>({"&:active":Et.$activeStyle()(e)})})}),pf=df({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function hf(e){const t=cs();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=ff(t);return{theme:t,className:n.className}}function Re(e,t){const{theme:n}=f.useContext(Or);if(!(e in n)||!(t in n[e]))return Oe(U.THEME_ERROR,e,t),"";let r=t;for(;;){let o=n[e][r];if(typeof o=="string"&&o.charAt(0)==="$")r=o.substr(1);else return o}}const ls=D("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),us=D("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${ls}`]:{paddingLeft:0}}),gf=D(us,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),mf=D("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),bf=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],vf=["onUpdate"];function kr(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:a,inputType:c="text",rows:l=0}=e,u=F(e,bf);const{id:d,emitOnEditStart:p,emitOnEditEnd:h,disabled:m}=ee(),b=a||d,v=f.useRef(null),y=l>0,$=y?"textarea":"input",x=f.useCallback(E=>_=>{const S=_.currentTarget.value;E(S)},[]);g.useEffect(()=>{const E=v.current,_=x(S=>{r(S),h()});return E==null||E.addEventListener("blur",_),()=>E==null?void 0:E.removeEventListener("blur",_)},[x,r,h]);const w=f.useCallback(E=>{E.key==="Enter"&&x(r)(E)},[x,r]),C=Object.assign({as:$},y?{rows:l}:{},u);return g.createElement(mf,{textArea:y},t&&typeof t=="string"?g.createElement(us,null,t):t,g.createElement(ls,G({levaType:s,ref:v,id:b,type:c,autoComplete:"off",spellCheck:"false",value:n,onChange:x(o),onFocus:()=>p(),onKeyPress:w,onKeyDown:i,disabled:m},C)))}function yf(e){let{onUpdate:t}=e,n=F(e,vf);const r=f.useCallback(i=>t(Uu(i)),[t]),o=f.useCallback(i=>{const s=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(s){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;t(c=>parseFloat(c)+s*a)}},[t]);return g.createElement(kr,G({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const dn=D("div",{}),tr=D("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),wf=D("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${tr}::after`]:{opacity:.6},[`${dn}:hover > & + ${tr}::after`]:{opacity:.6},[`${dn}:hover > & > svg`]:{opacity:1}}),fs=D("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${dn}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),ds=D("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${fs} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),ps=D(ds,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),$f=D("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),xf=D("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),nr=D("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),Ef=D("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${nr}`]:{pointerEvents:"auto"}}}}}),hs=D("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),Cf=D("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),_f=D(ju,{fill:"$toolTipBackground"});function Tr({children:e}){const{className:t}=f.useContext(Or);return g.createElement(ba,{className:t},e)}const Sf=["align"];function Of(){const{id:e,disable:t,disabled:n}=ee();return g.createElement(g.Fragment,null,g.createElement(xf,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),g.createElement("label",{htmlFor:e+"__disable"}))}function Rf(e){const{id:t,optional:n,hint:r}=ee(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return g.createElement(g.Fragment,null,n&&g.createElement(Of,null),r!==void 0?g.createElement(Du,null,g.createElement(Iu,{asChild:!0},g.createElement(nr,G({},o,e))),g.createElement(Mu,{side:"top",sideOffset:2},g.createElement(Cf,null,r,g.createElement(_f,null)))):g.createElement(nr,G({},o,i,e)))}function ve(e){let{align:t}=e,n=F(e,Sf);const{value:r,label:o,key:i,disabled:s}=ee(),{hideCopyButton:a}=lf(),c=!a&&i!==void 0,[l,u]=f.useState(!1),d=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),u(!0)}catch{Oe(U.CLIPBOARD_ERROR,{[i]:r})}};return g.createElement($f,{align:t,onPointerLeave:()=>u(!1)},g.createElement(Rf,n),c&&!s&&g.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},l?g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},g.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),g.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):g.createElement("svg",{onClick:d,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},g.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),g.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const kf=["toggled"],Tf=D("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Pr(e){let{toggled:t}=e,n=F(e,kf);return g.createElement(Tf,G({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),g.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const Pf=["input"];function ge(e){let{input:t}=e,n=F(e,Pf);return t?g.createElement(ps,n):g.createElement(ds,n)}function gs({value:e,type:t,settings:n,setValue:r}){const[o,i]=f.useState($o(t,e,n)),s=f.useRef(e),a=f.useRef(n);a.current=n;const c=f.useCallback(u=>i($o(t,u,a.current)),[t]),l=f.useCallback(u=>{try{r(u)}catch(d){const{type:p,previousValue:h}=d;if(p!=="LEVA_ERROR")throw d;c(h)}},[c,r]);return f.useEffect(()=>{kt(e,s.current)||c(e),s.current=e},[e,c]),{displayValue:o,onChange:i,onUpdate:l}}function Nt(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=ee();return Wc(o=>{o.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const i=e(o);return o.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),i},t)}function Af(e){const t=f.useRef(null),n=f.useRef(null),r=f.useRef(!1);return f.useEffect(()=>{const o=es(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",o),r.current||(o(),r.current=!0),()=>window.removeEventListener("resize",o)},[e]),f.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function ms(){const e=f.useRef(null),t=f.useRef({x:0,y:0}),n=f.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const Df=["__refCount"],Bn=(e,t)=>{if(!e[t])return null;const n=e[t];return F(n,Df)};function If(e){const t=Qe(),[n,r]=f.useState(Bn(t.getData(),e)),o=f.useCallback(l=>t.setValueAtPath(e,l,!0),[e,t]),i=f.useCallback(l=>t.setSettingsAtPath(e,l),[e,t]),s=f.useCallback(l=>t.disableInputAtPath(e,l),[e,t]),a=f.useCallback(()=>t.emitOnEditStart(e),[e,t]),c=f.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return f.useEffect(()=>{r(Bn(t.getData(),e));const l=t.useStore.subscribe(u=>Bn(u.data,e),r,{equalityFn:It});return()=>l()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const Mf=D("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),bs=D("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),rr=D("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),vs=D("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),ys=D("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function jf({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=f.useRef(null),a=f.useRef(null),c=f.useRef(0),l=Re("sizes","scrubberWidth"),u=Nt(({event:p,first:h,xy:[m],movement:[b],memo:v})=>{if(h){const{width:$,left:x}=s.current.getBoundingClientRect();c.current=$-parseFloat(l),v=(p==null?void 0:p.target)===a.current?e:fn((m-x)/$,t,n)}const y=v+fn(b/c.current,0,n-t);return r(os(y,{step:o,initialValue:i})),v}),d=un(e,t,n);return g.createElement(vs,G({ref:s},u()),g.createElement(bs,null,g.createElement(ys,{style:{left:0,right:`${(1-d)*100}%`}})),g.createElement(rr,{ref:a,style:{left:`calc(${d} * (100% - ${l}))`}}))}const Lf=g.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=f.useState(!1),s=Nt(({active:a,delta:[c],event:l,memo:u=0})=>(i(a),u+=c/2,Math.abs(u)>=1&&(t(d=>parseFloat(d)+Math.floor(u)*n*ts(l)),u=0),u));return g.createElement(gf,G({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function ws({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const a=s>0&&g.createElement(Lf,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return g.createElement(yf,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:a})}function Nf(){const e=ee(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:a}=o,c=a!==1/0&&s!==-1/0;return g.createElement(ge,{input:!0},g.createElement(ve,null,t),g.createElement(Mf,{hasRange:c},c&&g.createElement(jf,G({value:parseFloat(n),onDrag:r},o)),g.createElement(ws,G({},e,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:Bf}=is,zf=F(is,["sanitizeStep"]);var Ff=A({component:Nf},zf);const Wf=(e,t)=>ae().schema({options:ae().passesAnyOf(ae().object(),ae().array())}).test(t),Hf=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},Vf=(e,{values:t})=>t.indexOf(e),Uf=e=>{let{value:t,options:n}=e,r,o;return Array.isArray(n)?(o=n,r=n.map(i=>String(i))):(o=Object.values(n),r=Object.keys(n)),"value"in e?o.includes(t)||(r.unshift(String(t)),o.unshift(t)):t=o[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:o}}};var Kf=Object.freeze({__proto__:null,schema:Wf,sanitize:Hf,format:Vf,normalize:Uf});const Gf=D("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),or=D("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Yf=D("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${or}:focus + &`]:{$focusStyle:""},[`${or}:hover + &`]:{$hoverStyle:""}});function qf({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:a}=o,c=f.useRef();return t===a[e]&&(c.current=s[e]),g.createElement(Gf,null,g.createElement(or,{id:r,value:e,onChange:l=>n(a[Number(l.currentTarget.value)]),disabled:i},s.map((l,u)=>g.createElement("option",{key:l,value:u},l))),g.createElement(Yf,null,c.current),g.createElement(Pr,{toggled:!0}))}function Xf(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(qf,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var Jf=A({component:Xf},Kf);const Zf=e=>ae().string().test(e),Qf=e=>{if(typeof e!="string")throw Error("Invalid string");return e},ed=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var td=Object.freeze({__proto__:null,schema:Zf,sanitize:Qf,normalize:ed});const nd=["displayValue","onUpdate","onChange","editable"],rd=D("div",{whiteSpace:"pre-wrap"});function od(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=F(e,nd);return o?g.createElement(kr,G({value:t,onUpdate:n,onChange:r},i)):g.createElement(rd,null,t)}function id(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(od,G({displayValue:n,onUpdate:r,onChange:o},t)))}var sd=A({component:id},td);const ad=e=>ae().boolean().test(e),cd=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var ld=Object.freeze({__proto__:null,schema:ad,sanitize:cd});const ud=D("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function fd({value:e,onUpdate:t,id:n,disabled:r}){return g.createElement(ud,null,g.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),g.createElement("label",{htmlFor:n},g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function dd(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(fd,{value:t,onUpdate:n,id:o,disabled:r}))}var pd=A({component:dd},ld);const hd=["locked"];function gd({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=f.useRef(e[n]);s.current=e[n];const a=f.useCallback(l=>o({[n]:Qi({type:"NUMBER",value:s.current,settings:r},l)}),[o,r,n]),c=gs({type:"NUMBER",value:e[n],settings:r,setValue:a});return g.createElement(ws,{id:t,label:n,value:e[n],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:r,innerLabelTrim:i})}const md=D("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function bd(e){let{locked:t}=e,n=F(e,hd);return g.createElement("svg",G({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?g.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):g.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Ar({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=ee(),{lock:s,locked:a}=n;return g.createElement(md,{withLock:s},s&&g.createElement(bd,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(e).map((c,l)=>g.createElement(gd,{id:l===0?o:`${o}.${c}`,key:c,valueKey:c,value:e,settings:n[c],onUpdate:t,innerLabelTrim:r})))}const $s=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=rs(A({value:s},t[i])).settings,r=Math.max(r,n[i].step),o=Math.min(o,n[i].pad)});for(let i in n){const{step:s,min:a,max:c}=t[i]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(c))&&(n[i].step=r,n[i].pad=o)}return n},vd=["lock"],yd=["value"];function wd(e){const t=ae().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const o=Object.values(r);return o.length===e&&o.every(i=>isFinite(i))};return r=>t.test(r)||n(r)}function $d(e){return Array.isArray(e)?"array":"object"}function St(e,t,n){return $d(e)===t?e:t==="array"?Object.values(e):Xu(e,n)}const xd=(e,t,n)=>{const r=St(e,"object",t.keys);for(let s in r)r[s]=ns(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=St(n,"object",t.keys);if(o.length===1&&t.locked){const a=o[0],c=r[a],l=s[a],u=l!==0?c/l:1;for(let d in s)d===a?i[a]=c:i[d]=s[d]*u}else i=A(A({},s),r)}return St(i,t.format,t.keys)},Ed=(e,t)=>St(e,"object",t.keys),Cd=e=>!!e&&("step"in e||"min"in e||"max"in e);function _d(e,t,n=[]){const{lock:r=!1}=t,o=F(t,vd),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,a=St(e,"object",s),c=Cd(o)?s.reduce((u,d)=>Object.assign(u,{[d]:o}),{}):o,l=$s(a,c);return{value:i==="array"?e:a,settings:A(A({},l),{},{format:i,keys:s,lock:r,locked:!1})}}function xs(e){return{schema:wd(e.length),normalize:t=>{let{value:n}=t,r=F(t,yd);return _d(n,r,e)},format:(t,n)=>Ed(t,n),sanitize:(t,n,r)=>xd(t,n,r)}}var Sd={grad:.9,turn:360,rad:360/(2*Math.PI)},Ce=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},X=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},de=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Es=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Po=function(e){return{r:de(e.r,0,255),g:de(e.g,0,255),b:de(e.b,0,255),a:de(e.a)}},zn=function(e){return{r:X(e.r),g:X(e.g),b:X(e.b),a:X(e.a,3)}},Od=/^#([0-9a-f]{3,8})$/i,Zt=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Cs=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},_s=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:255*[r,a,s,s,c,r][l],g:255*[c,r,r,a,s,s][l],b:255*[s,s,c,r,r,a][l],a:o}},Ao=function(e){return{h:Es(e.h),s:de(e.s,0,100),l:de(e.l,0,100),a:de(e.a)}},Do=function(e){return{h:X(e.h),s:X(e.s),l:X(e.l),a:X(e.a,3)}},Io=function(e){return _s((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},Ot=function(e){return{h:(t=Cs(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},Rd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,kd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Td=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Pd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ir={string:[[function(e){var t=Od.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?X(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?X(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Td.exec(e)||Pd.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Po({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Rd.exec(e)||kd.exec(e);if(!t)return null;var n,r,o=Ao({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(Sd[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Io(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return Ce(t)&&Ce(n)&&Ce(r)?Po({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=o===void 0?1:o;if(!Ce(t)||!Ce(n)||!Ce(r))return null;var s=Ao({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Io(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!Ce(t)||!Ce(n)||!Ce(r))return null;var s=function(a){return{h:Es(a.h),s:de(a.s,0,100),v:de(a.v,0,100),a:de(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return _s(s)},"hsv"]]},Mo=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=zn(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?Zt(X(255*i)):"","#"+Zt(n)+Zt(r)+Zt(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return zn(this.rgba)},e.prototype.toRgbString=function(){return t=zn(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return Do(Ot(this.rgba))},e.prototype.toHslString=function(){return t=Do(Ot(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=Cs(this.rgba),{h:X(t.h),s:X(t.s),v:X(t.v),a:X(t.a,3)};var t},e.prototype.invert=function(){return ne({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),ne(Fn(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),ne(Fn(this.rgba,-t))},e.prototype.grayscale=function(){return ne(Fn(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),ne(jo(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),ne(jo(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?ne({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):X(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=Ot(this.rgba);return typeof t=="number"?ne({h:t,s:n.s,l:n.l,a:n.a}):X(n.h)},e.prototype.isEqual=function(t){return this.toHex()===ne(t).toHex()},e}(),ne=function(e){return e instanceof sr?e:new sr(e)},Lo=[],Dd=function(e){e.forEach(function(t){Lo.indexOf(t)<0&&(t(sr,ir),Lo.push(t))})};function Id(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,l=r[this.toHex()];if(l)return l;if(s!=null&&s.closest){var u=this.toRgb(),d=1/0,p="black";if(!i.length)for(var h in n)i[h]=new e(n[h]).toRgb();for(var m in n){var b=(a=u,c=i[m],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));b=0||(o[n]=e[n]);return o}function ar(e){var t=f.useRef(e),n=f.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var ut=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:v.buttons>0)&&o.current?i(No(o.current,v,a.current)):b(!1)},m=function(){return b(!1)};function b(v){var y=c.current,$=cr(o.current),x=v?$.addEventListener:$.removeEventListener;x(y?"touchmove":"mousemove",h),x(y?"touchend":"mouseup",m)}return[function(v){var y=v.nativeEvent,$=o.current;if($&&(Bo(y),!function(w,C){return C&&!Rt(w)}(y,c.current)&&$)){if(Rt(y)){c.current=!0;var x=y.changedTouches||[];x.length&&(a.current=x[0].identifier)}$.focus(),i(No($,y,a.current)),b(!0)}},function(v){var y=v.which||v.keyCode;y<37||y>40||(v.preventDefault(),s({left:y===39?.05:y===37?-.05:0,top:y===40?.05:y===38?-.05:0}))},b]},[s,i]),u=l[0],d=l[1],p=l[2];return f.useEffect(function(){return p},[p]),g.createElement("div",mt({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),Bt=function(e){return e.filter(Boolean).join(" ")},Mr=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Bt(["react-colorful__pointer",e.className]);return g.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},g.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},re=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Os=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:re(e.h),s:re(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:re(o/2),a:re(r,2)}},lr=function(e){var t=Os(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Hn=function(e){var t=Os(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Rs=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:re(255*[r,a,s,s,c,r][l]),g:re(255*[c,r,r,a,s,s][l]),b:re(255*[s,s,c,r,r,a][l]),a:re(o,2)}},ks=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:re(60*(a<0?a+6:a)),s:re(i?s/i*100:0),v:re(i/255*100),a:o}},Ts=g.memo(function(e){var t=e.hue,n=e.onChange,r=Bt(["react-colorful__hue",e.className]);return g.createElement("div",{className:r},g.createElement(Ir,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:ut(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":re(t),"aria-valuemax":"360","aria-valuemin":"0"},g.createElement(Mr,{className:"react-colorful__hue-pointer",left:t/360,color:lr({h:t,s:100,v:100,a:1})})))}),Ps=g.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:lr({h:t.h,s:100,v:100,a:1})};return g.createElement("div",{className:"react-colorful__saturation",style:r},g.createElement(Ir,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:ut(t.s+100*o.left,0,100),v:ut(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+re(t.s)+"%, Brightness "+re(t.v)+"%"},g.createElement(Mr,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:lr(t)})))}),jr=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function As(e,t,n){var r=ar(n),o=f.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],a=f.useRef({color:t,hsva:i});f.useEffect(function(){if(!e.equal(t,a.current.color)){var l=e.toHsva(t);a.current={hsva:l,color:t},s(l)}},[t,e]),f.useEffect(function(){var l;jr(i,a.current.hsva)||e.equal(l=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},r(l))},[i,e,r]);var c=f.useCallback(function(l){s(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var Md=typeof window<"u"?f.useLayoutEffect:f.useEffect,jd=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},zo=new Map,Ds=function(e){Md(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!zo.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,zo.set(t,n);var r=jd();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Ld=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Dr(e,["className","colorModel","color","onChange"]),a=f.useRef(null);Ds(a);var c=As(n,o,i),l=c[0],u=c[1],d=Bt(["react-colorful",t]);return g.createElement("div",mt({},s,{ref:a,className:d}),g.createElement(Ps,{hsva:l,onChange:u}),g.createElement(Ts,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},Nd=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Hn(Object.assign({},n,{a:0}))+", "+Hn(Object.assign({},n,{a:1}))+")"},i=Bt(["react-colorful__alpha",t]),s=re(100*n.a);return g.createElement("div",{className:i},g.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),g.createElement(Ir,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:ut(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},g.createElement(Mr,{className:"react-colorful__alpha-pointer",left:n.a,color:Hn(n)})))},Bd=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Dr(e,["className","colorModel","color","onChange"]),a=f.useRef(null);Ds(a);var c=As(n,o,i),l=c[0],u=c[1],d=Bt(["react-colorful",t]);return g.createElement("div",mt({},s,{ref:a,className:d}),g.createElement(Ps,{hsva:l,onChange:u}),g.createElement(Ts,{hue:l.h,onChange:u}),g.createElement(Nd,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},zd={defaultColor:{r:0,g:0,b:0,a:1},toHsva:ks,fromHsva:Rs,equal:jr},Fd=function(e){return g.createElement(Bd,mt({},e,{colorModel:zd}))},Wd={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return ks({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=Rs(e)).r,g:t.g,b:t.b};var t},equal:jr},Hd=function(e){return g.createElement(Ld,mt({},e,{colorModel:Wd}))};function bt(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function vt(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Ud(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Gd(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=Kd.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Yd=[".DS_Store","Thumbs.db"];function qd(e){return bt(this,void 0,void 0,function(){return vt(this,function(t){return pn(e)&&Xd(e)?[2,ep(e.dataTransfer,e.type)]:Jd(e)?[2,Zd(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Qd(e)]:[2,[]]})})}function Xd(e){return pn(e.dataTransfer)}function Jd(e){return pn(e)&&pn(e.target)}function pn(e){return typeof e=="object"&&e!==null}function Zd(e){return ur(e.target.files).map(function(t){return zt(t)})}function Qd(e){return bt(this,void 0,void 0,function(){var t;return vt(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return zt(r)})]}})})}function ep(e,t){return bt(this,void 0,void 0,function(){var n,r;return vt(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=ur(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(tp))]):[3,2];case 1:return r=o.sent(),[2,Fo(Is(r))];case 2:return[2,Fo(ur(e.files).map(function(i){return zt(i)}))]}})})}function Fo(e){return e.filter(function(t){return Yd.indexOf(t.name)===-1})}function ur(e){if(e===null)return[];for(var t=[],n=0;ne.forEach(n=>fa(n,t))}function ft(...e){return f.useCallback(hi(...e),e)}const gi=f.forwardRef((e,t)=>{const{children:n,...r}=e,o=f.Children.toArray(n),i=o.find(da);if(i){const s=i.props.children,a=o.map(c=>c===i?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:c);return f.createElement(Kn,Z({},r,{ref:t}),f.isValidElement(s)?f.cloneElement(s,void 0,a):null)}return f.createElement(Kn,Z({},r,{ref:t}),n)});gi.displayName="Slot";const Kn=f.forwardRef((e,t)=>{const{children:n,...r}=e;return f.isValidElement(n)?f.cloneElement(n,{...pa(r,n.props),ref:t?hi(t,n.ref):n.ref}):f.Children.count(n)>1?f.Children.only(null):null});Kn.displayName="SlotClone";const mi=({children:e})=>f.createElement(f.Fragment,null,e);function da(e){return f.isValidElement(e)&&e.type===mi}function pa(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const ha=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ze=ha.reduce((e,t)=>{const n=f.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?gi:t;return f.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),f.createElement(a,Z({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ga(e,t){e&&mr.flushSync(()=>e.dispatchEvent(t))}const ma=f.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?fi.createPortal(f.createElement(Ze.div,Z({},o,{ref:t})),r):null}),ba=ma;var Wr=Object.prototype.hasOwnProperty;function kt(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&kt(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Wr.call(e,n)&&++r&&!Wr.call(t,n)||!(n in t)||!kt(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function It(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r0;)s[a]=arguments[a+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=o,this.target=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),$e=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};$e.prototype._applyRule=function(t,n){var r=this;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return r.chain.push(new yn(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};$e.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new va(n,t.simple,t.async)),this};$e.prototype._clone=function(){return new $e(this.chain.slice(),this.nextRuleModifiers.slice())};$e.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};$e.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new br(r,t,o))}}),n};$e.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new br(n,t,r)}})};$e.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){yi(t,n.chain.slice(),r,o)})};function yi(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){yi(e,t,n,r)},function(i){r(new br(o,e,i))})}else n(e)}var Hr=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function ya(e,t){return t===void 0&&(t=!1),{simple:function(n){return Hr(n,t)||e.check(n)===void 0},async:function(n){return Hr(n,t)||e.testAsync(n)}}}function ae(){return typeof Proxy<"u"?wi(new $e):Gn(new $e)}var Tt={};ae.extend=function(e){Object.assign(Tt,e)};ae.clearCustomRules=function(){Tt={}};function wi(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=wi(e._clone());if(r in rn)return o._applyModifier(rn[r],r);if(r in Tt)return o._applyRule(Tt[r],r);if(r in Yn)return o._applyRule(Yn[r],r)}})}function Gn(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=Gn(i._clone()),u=l._applyRule(o[s],s).apply(void 0,a);return u}}),i},n=t(Yn,e),r=t(Tt,n);return Object.keys(rn).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=Gn(r._clone());return i._applyModifier(rn[o],o)}})}),r}var rn={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return Yt(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(Yt(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&Yt(t).every(e)}},async:function(e){return function(t){return Promise.all(Yt(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return Vr(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(r){return Vr(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function Vr(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function Yt(e){return typeof e=="string"?e.split(""):e}var Yn={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||wa;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return nt("string")},boolean:function(){return nt("boolean")},undefined:function(){return nt("undefined")},null:function(){return nt("null")},array:function(){return nt("array")},object:function(){return nt("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return $a(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:ya};function nt(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function wa(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function $a(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var o=e[r];try{o.check((t||{})[r])}catch(i){i.target=r,n.push(i)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(o){var i=e[o];return i.testAsync((t||{})[o]).catch(function(s){s.target=o,n.push(s)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var W="colors",te="sizes",k="space",xa={gap:k,gridGap:k,columnGap:k,gridColumnGap:k,rowGap:k,gridRowGap:k,inset:k,insetBlock:k,insetBlockEnd:k,insetBlockStart:k,insetInline:k,insetInlineEnd:k,insetInlineStart:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,marginBlock:k,marginBlockEnd:k,marginBlockStart:k,marginInline:k,marginInlineEnd:k,marginInlineStart:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,paddingBlock:k,paddingBlockEnd:k,paddingBlockStart:k,paddingInline:k,paddingInlineEnd:k,paddingInlineStart:k,top:k,right:k,bottom:k,left:k,scrollMargin:k,scrollMarginTop:k,scrollMarginRight:k,scrollMarginBottom:k,scrollMarginLeft:k,scrollMarginX:k,scrollMarginY:k,scrollMarginBlock:k,scrollMarginBlockEnd:k,scrollMarginBlockStart:k,scrollMarginInline:k,scrollMarginInlineEnd:k,scrollMarginInlineStart:k,scrollPadding:k,scrollPaddingTop:k,scrollPaddingRight:k,scrollPaddingBottom:k,scrollPaddingLeft:k,scrollPaddingX:k,scrollPaddingY:k,scrollPaddingBlock:k,scrollPaddingBlockEnd:k,scrollPaddingBlockStart:k,scrollPaddingInline:k,scrollPaddingInlineEnd:k,scrollPaddingInlineStart:k,fontSize:"fontSizes",background:W,backgroundColor:W,backgroundImage:W,borderImage:W,border:W,borderBlock:W,borderBlockEnd:W,borderBlockStart:W,borderBottom:W,borderBottomColor:W,borderColor:W,borderInline:W,borderInlineEnd:W,borderInlineStart:W,borderLeft:W,borderLeftColor:W,borderRight:W,borderRightColor:W,borderTop:W,borderTopColor:W,caretColor:W,color:W,columnRuleColor:W,fill:W,outline:W,outlineColor:W,stroke:W,textDecorationColor:W,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:te,minBlockSize:te,maxBlockSize:te,inlineSize:te,minInlineSize:te,maxInlineSize:te,width:te,minWidth:te,maxWidth:te,height:te,minHeight:te,maxHeight:te,flexBasis:te,gridTemplateColumns:te,gridTemplateRows:te,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Ea=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,dt=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,Ea))(t);return o in e?e[o]:e[o]=n(t,...r)}},Ye=Symbol.for("sxs.internal"),vr=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Ur=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Ca}=Object.prototype,qn=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),_a=/\s+(?![^()]*\))/,rt=e=>t=>e(...typeof t=="string"?String(t).split(_a):[t]),Kr={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:rt((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:rt((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:rt((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:rt((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:rt((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:rt((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},jn=/([\d.]+)([^]*)/,Sa=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(o)?`:is(${r})`:r):r+" "+o)),n),[]):t,Oa=(e,t)=>e in Ra&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${qn(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${qn(e)}:${r}fit-content`)+i):String(t),Ra={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},ke=e=>e?e+"-":"",$i=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,o,i,s,a)=>s=="$"==!!i?r:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?ke(t)+(a.includes("$")?"":ke(n))+a.replace(/\$/g,"-"):a)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),ka=/\s*,\s*(?![^()]*\))/,Ta=Object.prototype.toString,it=(e,t,n,r,o)=>{let i,s,a;const c=(l,u,d)=>{let p,h;const m=b=>{for(p in b){const $=p.charCodeAt(0)===64,x=$&&Array.isArray(b[p])?b[p]:[b[p]];for(h of x){const w=/[A-Z]/.test(y=p)?y:y.replace(/-[^]/g,E=>E[1].toUpperCase()),C=typeof h=="object"&&h&&h.toString===Ta&&(!r.utils[w]||!u.length);if(w in r.utils&&!C){const E=r.utils[w];if(E!==s){s=E,m(E(h)),s=null;continue}}else if(w in Kr){const E=Kr[w];if(E!==a){a=E,m(E(h)),a=null;continue}}if($&&(v=p.slice(1)in r.media?"@media "+r.media[p.slice(1)]:p,p=v.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(E,_,S,M,T,P)=>{const R=jn.test(_),B=.0625*(R?-1:1),[j,I]=R?[M,_]:[_,M];return"("+(S[0]==="="?"":S[0]===">"===R?"max-":"min-")+j+":"+(S[0]!=="="&&S.length===1?I.replace(jn,(z,L,Y)=>Number(L)+B*(S===">"?1:-1)+Y):I)+(T?") and ("+(T[0]===">"?"min-":"max-")+j+":"+(T.length===1?P.replace(jn,(z,L,Y)=>Number(L)+B*(T===">"?-1:1)+Y):P):"")+")"})),C){const E=$?d.concat(p):[...d],_=$?[...u]:Sa(u,p.split(ka));i!==void 0&&o(Gr(...i)),i=void 0,c(h,_,E)}else i===void 0&&(i=[[],u,d]),p=$||p.charCodeAt(0)!==36?p:`--${ke(r.prefix)}${p.slice(1).replace(/\$/g,"-")}`,h=C?h:typeof h=="number"?h&&w in Pa?String(h)+"px":String(h):$i(Oa(w,h??""),r.prefix,r.themeMap[w]),i[0].push(`${$?`${p} `:`${qn(p)}:`}${h}`)}}var v,y};m(l),i!==void 0&&o(Gr(...i)),i=void 0};c(e,t,n)},Gr=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,Pa={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Yr=e=>String.fromCharCode(e+(e>25?39:97)),qe=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Yr(n%52)+r;return Yr(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),_t=["themed","global","styled","onevar","resonevar","allvar","inline"],Aa=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},Da=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:a}=i;let c="";if(a.startsWith("--sxs"))return"";if(o[s-1]&&(c=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const l in t.rules)if(t.rules[l].group===i)return`--sxs{--sxs:${[...t.rules[l].cache].join(" ")}}${a}`;return i.cssRules.length?`${c}${a}`:""}return a}).join("")},r=()=>{if(t){const{rules:a,sheet:c}=t;if(!c.deleteRule){for(;Object(Object(c.cssRules)[0]).type===3;)c.cssRules.splice(0,1);c.cssRules=[]}for(const l in a)delete a[l]}const o=Object(e).styleSheets||[];for(const a of o)if(Aa(a)){for(let c=0,l=a.cssRules;l[c];++c){const u=Object(l[c]);if(u.type!==1)continue;const d=Object(l[c+1]);if(d.type!==4)continue;++c;const{cssText:p}=u;if(!p.startsWith("--sxs"))continue;const h=p.slice(14,-3).trim().split(/\s+/),m=_t[h[0]];m&&(t||(t={sheet:a,reset:r,rules:{},toString:n}),t.rules[m]={group:d,index:c,cache:new Set(h)})}if(t)break}if(!t){const a=(c,l)=>({type:l,cssRules:[],insertRule(u,d){this.cssRules.splice(d,0,a(u,{import:3,undefined:1}[(u.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return c==="@media{}"?`@media{${[].map.call(this.cssRules,u=>u.cssText).join("")}}`:c}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:a("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:s}=t;for(let a=_t.length-1;a>=0;--a){const c=_t[a];if(!s[c]){const l=_t[a+1],u=s[l]?s[l].index:i.cssRules.length;i.insertRule("@media{}",u),i.insertRule(`--sxs{--sxs:${a}}`,u),s[c]={group:i.cssRules[u+1],index:u,cache:new Set([a])}}Ia(s[c])}};return r(),t},Ia=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},xt=Symbol(),Ma=dt(),qr=(e,t)=>Ma(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const o of n)if(o!=null)if(o[Ye]){r.type==null&&(r.type=o[Ye].type);for(const i of o[Ye].composers)r.composers.add(i)}else o.constructor!==Object||o.$$typeof?r.type==null&&(r.type=o):r.composers.add(ja(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),La(e,r,t)}),ja=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${ke(o.prefix)}c-${qe(r)}`,s=[],a=[],c=Object.create(null),l=[];for(const p in n)c[p]=String(n[p]);if(typeof e=="object"&&e)for(const p in e){u=c,d=p,Ca.call(u,d)||(c[p]="undefined");const h=e[p];for(const m in h){const b={[p]:String(m)};String(m)==="undefined"&&l.push(p);const v=h[m],y=[b,v,!Ur(v)];s.push(y)}}var u,d;if(typeof t=="object"&&t)for(const p of t){let{css:h,...m}=p;h=typeof h=="object"&&h||{};for(const v in m)m[v]=String(m[v]);const b=[m,h,!Ur(h)];a.push(b)}return[i,r,s,a,c,l]},La=(e,t,n)=>{const[r,o,i,s]=Na(t.composers),a=typeof t.type=="function"||t.type.$$typeof?(d=>{function p(){for(let h=0;hp.rules[h]={apply:m=>p[xt].push([h,m])}),p})(n):null,c=(a||n).rules,l=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,u=d=>{d=typeof d=="object"&&d||Ba;const{css:p,...h}=d,m={};for(const y in i)if(delete h[y],y in d){let $=d[y];typeof $=="object"&&$?m[y]={"@initial":i[y],...$}:($=String($),m[y]=$!=="undefined"||s.has(y)?$:i[y])}else m[y]=i[y];const b=new Set([...o]);for(const[y,$,x,w]of t.composers){n.rules.styled.cache.has(y)||(n.rules.styled.cache.add(y),it($,[`.${y}`],[],e,_=>{c.styled.apply(_)}));const C=Xr(x,m,e.media),E=Xr(w,m,e.media,!0);for(const _ of C)if(_!==void 0)for(const[S,M,T]of _){const P=`${y}-${qe(M)}-${S}`;b.add(P);const R=(T?n.rules.resonevar:n.rules.onevar).cache,B=T?c.resonevar:c.onevar;R.has(P)||(R.add(P),it(M,[`.${P}`],[],e,j=>{B.apply(j)}))}for(const _ of E)if(_!==void 0)for(const[S,M]of _){const T=`${y}-${qe(M)}-${S}`;b.add(T),n.rules.allvar.cache.has(T)||(n.rules.allvar.cache.add(T),it(M,[`.${T}`],[],e,P=>{c.allvar.apply(P)}))}}if(typeof p=="object"&&p){const y=`${r}-i${qe(p)}-css`;b.add(y),n.rules.inline.cache.has(y)||(n.rules.inline.cache.add(y),it(p,[`.${y}`],[],e,$=>{c.inline.apply($)}))}for(const y of String(d.className||"").trim().split(/\s+/))y&&b.add(y);const v=h.className=[...b].join(" ");return{type:t.type,className:v,selector:l,props:h,toString:()=>v,deferredInjector:a}};return vr(u,{className:r,selector:l,[Ye]:t,toString:()=>(n.rules.styled.cache.has(r)||u(),r)})},Na=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,s,a]of e){t===""&&(t=i),n.push(i),o.push(...a);for(const c in s){const l=s[c];(r[c]===void 0||l!=="undefined"||a.includes(l))&&(r[c]=l)}}return[t,n,r,new Set(o)]},Xr=(e,t,n,r)=>{const o=[];e:for(let[i,s,a]of e){if(a)continue;let c,l=0,u=!1;for(c in i){const d=i[c];let p=t[c];if(p!==d){if(typeof p!="object"||!p)continue e;{let h,m,b=0;for(const v in p){if(d===String(p[v])){if(v!=="@initial"){const y=v.slice(1);(m=m||[]).push(y in n?n[y]:v.replace(/^@media ?/,"")),u=!0}l+=b,h=!0}++b}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!h)continue e}}}(o[l]=o[l]||[]).push([r?"cv":`${c}-${i[c]}`,s,u])}return o},Ba={},za=dt(),Fa=(e,t)=>za(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=qe(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let a of[].concat(o["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,t.sheet.insertRule(`@import ${a};`,s++);delete o["@import"]}it(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return vr(r,{toString:r})}),Wa=dt(),Ha=(e,t)=>Wa(e,()=>n=>{const r=`${ke(e.prefix)}k-${qe(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];it(n,[],[],e,a=>i.push(a));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return vr(o,{get name(){return o()},toString:o})}),Va=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+ke(this.prefix)+ke(this.scale)+this.token}toString(){return this.computedValue}},Ua=dt(),Ka=(e,t)=>Ua(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${ke(e.prefix)}t-${qe(r)}`}`,i={},s=[];for(const c in r){i[c]={};for(const l in r[c]){const u=`--${ke(e.prefix)}${c}-${l}`,d=$i(String(r[c][l]),e.prefix,c);i[c][l]=new Va(l,d,c,e.prefix),s.push(`${u}:${d}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const c=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(c)}return n};return{...i,get className(){return a()},selector:o,toString:a}}),Ga=dt(),Ya=dt(),qa=e=>{const t=(n=>{let r=!1;const o=Ga(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",a=typeof i.media=="object"&&i.media||{},c=typeof i.root=="object"?i.root||null:globalThis.document||null,l=typeof i.theme=="object"&&i.theme||{},u={prefix:s,media:a,theme:l,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...xa},utils:typeof i.utils=="object"&&i.utils||{}},d=Da(c),p={css:qr(u,d),globalCss:Fa(u,d),keyframes:Ha(u,d),createTheme:Ka(u,d),reset(){d.reset(),p.theme.toString()},theme:{},sheet:d,config:u,prefix:s,getCssText:d.toString,toString:d.toString};return String(p.theme=p.createTheme(l)),p});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>Ya(n,()=>{const o=qr(n,r);return(...i)=>{const s=o(...i),a=s[Ye].type,c=g.forwardRef((l,u)=>{const d=l&&l.as||a,{props:p,deferredInjector:h}=s(l);return delete p.as,p.ref=u,h?g.createElement(g.Fragment,null,g.createElement(d,p),g.createElement(h,null)):g.createElement(d,p)});return c.className=s.className,c.displayName=`Styled.${a.displayName||a.name||a}`,c.selector=s.selector,c.toString=()=>s.selector,c[Ye]=s[Ye],c}}))(t),t};function Xa(e,t,n){return Math.max(t,Math.min(e,n))}const Q={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Jr(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Zr(e,t,n,r=.15){return r===0?Xa(e,t,n):en?+Jr(e-n,n-t,r)+n:e}function Ja(e,[t,n],[r,o]){const[[i,s],[a,c]]=e;return[Zr(t,i,s,r),Zr(n,a,c,o)]}function Za(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qa(e){var t=Za(e,"string");return typeof t=="symbol"?t:String(t)}function se(e,t,n){return t=Qa(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function ac(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Ci(e){return wn(e)?ac(e)[0]:e}function cc(e){return sc(e).map(t=>t.identifier)}function Ln(e){const t=Ci(e);return wn(e)?t.identifier:t.pointerId}function to(e){const t=Ci(e);return[t.clientX,t.clientY]}function lc(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function on(e,...t){return typeof e=="function"?e(...t):e}function uc(){}function fc(...e){return e.length===0?uc:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function no(e,t){return Object.assign({},t,e||{})}const dc=32;class pc{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?on(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,lc(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const E=n._delta.map(Math.abs);Q.addTo(n._distance,E)}this.axisIntent&&this.axisIntent(t);const[s,a]=n._movement,[c,l]=r.threshold,{_step:u,values:d}=n;if(r.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(s)>=c&&d[0]),u[1]===!1&&(u[1]=Math.abs(a)>=l&&d[1])):(u[0]===!1&&(u[0]=Math.abs(s)>=c&&Math.sign(s)*c),u[1]===!1&&(u[1]=Math.abs(a)>=l&&Math.sign(a)*l)),n.intentional=u[0]!==!1||u[1]!==!1,!n.intentional)return;const p=[0,0];if(r.hasCustomTransform){const[E,_]=d;p[0]=u[0]!==!1?E-u[0]:0,p[1]=u[1]!==!1?_-u[1]:0}else p[0]=u[0]!==!1?s-u[0]:0,p[1]=u[1]!==!1?a-u[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(p);const h=n.offset,m=n._active&&!n._blocked||n.active;m&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=on(r.bounds,n)),this.setup&&this.setup()),n.movement=p,this.computeOffset()));const[b,v]=n.offset,[[y,$],[x,w]]=n._bounds;n.overflow=[b$?1:0,vw?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const C=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=Ja(n._bounds,n.offset,C),n.delta=Q.sub(n.offset,h),this.computeMovement(),m&&(!n.last||i>dc)){n.delta=Q.sub(n.offset,h);const E=n.delta.map(Math.abs);Q.addTo(n.distance,E),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[E[0]/i,E[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(K(K(K({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function hc([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class gc extends pc{constructor(...t){super(...t),se(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Q.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Q.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[Ei(t)]:r.axisThreshold;n.axis=hc(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const mc=e=>e,ro=.15,_i={enabled(e=!0){return e},eventOptions(e,t,n){return K(K({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[ro,ro];case!1:return[0,0];default:return Q.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Q.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||mc},threshold(e){return Q.toVector(e,0)}},bc=0,Mt=K(K({},_i),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=bc){return e},bounds(e={}){if(typeof e=="function")return i=>Mt.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),oo={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class vc extends gc{constructor(...t){super(...t),se(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=Mt.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=Ln(t),r._pointerActive=!0,this.computeValues(to(t)),this.computeInitial(),n.preventScrollAxis&&Ei(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=Ln(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=to(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=Q.sub(i,n._values),this.computeValues(i)),Q.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=Ln(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,c]=n._delta,[l,u]=n._movement,[d,p]=r.swipe.velocity,[h,m]=r.swipe.distance,b=r.swipe.duration;if(n.elapsedTimed&&Math.abs(l)>h&&(n.swipe[0]=Math.sign(a)),y>p&&Math.abs(u)>m&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,yc(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=oo[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,Q.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in oo&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function yc(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const jt=typeof window<"u"&&window.document&&window.document.createElement;function Si(){return jt&&"ontouchstart"in window}function wc(){return Si()||jt&&window.navigator.maxTouchPoints>1}function $c(){return jt&&"onpointerdown"in window}function xc(){return jt&&"exitPointerLock"in window.document}function Ec(){try{return"constructor"in GestureEvent}catch{return!1}}const fe={isBrowser:jt,gesture:Ec(),touch:Si(),touchscreen:wc(),pointer:$c(),pointerLock:xc()},Cc=250,_c=180,Sc=.5,Oc=50,Rc=250,kc=10,io={mouse:0,touch:0,pen:8},Tc=K(K({},Mt),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&fe.pointerLock,fe.touch&&n?"touch":this.pointerLock?"mouse":fe.pointer&&!o?"pointer":fe.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Cc:void 0,!(!fe.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=Q.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=Sc,distance:t=Oc,duration:n=Rc}={}){return{velocity:this.transform(Q.toVector(e)),distance:this.transform(Q.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return _c;case!1:return 0;default:return e}},axisThreshold(e){return e?K(K({},io),e):io},keyboardDisplacement(e=kc){return e}});K(K({},_i),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!fe.touch&&fe.gesture)return"gesture";if(fe.touch&&r)return"touch";if(fe.touchscreen){if(fe.pointer)return"pointer";if(fe.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const a=no(on(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},i=s=>{const a=no(on(r,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",Q.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});K(K({},Mt),{},{mouseOnly:(e=!0)=>e});K(K({},Mt),{},{mouseOnly:(e=!0)=>e});const Oi=new Map,Xn=new Map;function Pc(e){Oi.set(e.key,e.engine),Xn.set(e.key,e.resolver)}const Ac={key:"drag",engine:vc,resolver:Tc};function Dc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function Ic(e,t){if(e==null)return{};var n=Dc(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const Mc={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=fe.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},jc=["target","eventOptions","window","enabled","transform"];function tn(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=tn(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function Lc(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:c}=r,l=Ic(r,jc);if(n.shared=tn({target:o,eventOptions:i,window:s,enabled:a,transform:c},Mc),t){const u=Xn.get(t);n[t]=tn(K({shared:n.shared},l),u)}else for(const u in l){const d=Xn.get(u);d&&(n[u]=tn(K({shared:n.shared},l[u]),d))}return n}class Ri{constructor(t,n){se(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,a=ic(n,r),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},l=K(K({},c),i);t.addEventListener(a,o,l);const u=()=>{t.removeEventListener(a,o,l),s.delete(u)};return s.add(u),u}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class Nc{constructor(){se(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class Bc{constructor(t){se(this,"gestures",new Set),se(this,"_targetEventStore",new Ri(this)),se(this,"gestureEventStores",{}),se(this,"gestureTimeoutStores",{}),se(this,"handlers",{}),se(this,"config",{}),se(this,"pointerIds",new Set),se(this,"touchIds",new Set),se(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),zc(this,t)}setEventIds(t){if(wn(t))return this.touchIds=new Set(cc(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=Lc(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const a=this.config[s],c=so(r,a.eventOptions,!!o);if(a.enabled){const l=Oi.get(s);new l(this,t,s).bind(c)}}const i=so(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",a=>this.nativeHandlers[s](K(K({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=fc(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:a,passive:c}=oc(i);this._targetEventStore.add(o,s,"",r[i],{capture:a,passive:c})}}}}function ot(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Ri(e,t),e.gestureTimeoutStores[t]=new Nc}function zc(e,t){t.drag&&ot(e,"drag"),t.wheel&&ot(e,"wheel"),t.scroll&&ot(e,"scroll"),t.move&&ot(e,"move"),t.pinch&&ot(e,"pinch"),t.hover&&ot(e,"hover")}const so=(e,t,n)=>(r,o,i,s={},a=!1)=>{var c,l;const u=(c=s.capture)!==null&&c!==void 0?c:t.capture,d=(l=s.passive)!==null&&l!==void 0?l:t.passive;let p=a?r:nc(r,o,u);n&&d&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function Fc(e,t={},n,r){const o=g.useMemo(()=>new Bc(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),g.useEffect(o.effect.bind(o)),g.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function Wc(e,t){return Pc(Ac),Fc({drag:e},t||{},"drag")}function Se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ki(e,t=[]){let n=[];function r(i,s){const a=f.createContext(s),c=n.length;n=[...n,s];function l(d){const{scope:p,children:h,...m}=d,b=(p==null?void 0:p[e][c])||a,v=f.useMemo(()=>m,Object.values(m));return f.createElement(b.Provider,{value:v},h)}function u(d,p){const h=(p==null?void 0:p[e][c])||a,m=f.useContext(h);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const o=()=>{const i=n.map(s=>f.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Hc(o,...t)]}function Hc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function pt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Vc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Jn="dismissableLayer.update",Uc="dismissableLayer.pointerDownOutside",Kc="dismissableLayer.focusOutside";let ao;const Gc=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yc=f.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=f.useContext(Gc),[d,p]=f.useState(null),h=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=f.useState({}),b=ft(t,S=>p(S)),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),$=v.indexOf(y),x=d?v.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=$,E=qc(S=>{const M=S.target,T=[...u.branches].some(P=>P.contains(M));!C||T||(i==null||i(S),a==null||a(S),S.defaultPrevented||c==null||c())},h),_=Xc(S=>{const M=S.target;[...u.branches].some(P=>P.contains(M))||(s==null||s(S),a==null||a(S),S.defaultPrevented||c==null||c())},h);return Vc(S=>{x===u.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&c&&(S.preventDefault(),c()))},h),f.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ao=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),co(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ao)}},[d,h,r,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),co())},[d,u]),f.useEffect(()=>{const S=()=>m({});return document.addEventListener(Jn,S),()=>document.removeEventListener(Jn,S)},[]),f.createElement(Ze.div,Z({},l,{ref:b,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,E.onPointerDownCapture)}))});function qc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Ti(Uc,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ti(Kc,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function co(){const e=new CustomEvent(Jn);document.dispatchEvent(e)}function Ti(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ga(o,i):o.dispatchEvent(i)}const ct=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Jc=ia.useId||(()=>{});let Zc=0;function Qc(e){const[t,n]=f.useState(Jc());return ct(()=>{e||n(r=>r??String(Zc++))},[e]),e||(t?`radix-${t}`:"")}const el=["top","right","bottom","left"],Ne=Math.min,le=Math.max,sn=Math.round,qt=Math.floor,Be=e=>({x:e,y:e}),tl={left:"right",right:"left",bottom:"top",top:"bottom"},nl={start:"end",end:"start"};function Zn(e,t,n){return le(e,Ne(t,n))}function Te(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function ht(e){return e.split("-")[1]}function yr(e){return e==="x"?"y":"x"}function wr(e){return e==="y"?"height":"width"}function gt(e){return["top","bottom"].includes(Pe(e))?"y":"x"}function $r(e){return yr(gt(e))}function rl(e,t,n){n===void 0&&(n=!1);const r=ht(e),o=$r(e),i=wr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=an(s)),[s,an(s)]}function ol(e){const t=an(e);return[Qn(e),t,Qn(t)]}function Qn(e){return e.replace(/start|end/g,t=>nl[t])}function il(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function sl(e,t,n,r){const o=ht(e);let i=il(Pe(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Qn)))),i}function an(e){return e.replace(/left|right|bottom|top/g,t=>tl[t])}function al(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pi(e){return typeof e!="number"?al(e):{top:e,right:e,bottom:e,left:e}}function cn(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function lo(e,t,n){let{reference:r,floating:o}=e;const i=gt(t),s=$r(t),a=wr(s),c=Pe(t),l=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let h;switch(c){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(ht(t)){case"start":h[s]-=p*(n&&l?-1:1);break;case"end":h[s]+=p*(n&&l?-1:1);break}return h}const cl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=lo(l,r,c),p=r,h={},m=0;for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Te(e,t)||{};if(l==null)return{};const d=Pi(u),p={x:n,y:r},h=$r(o),m=wr(h),b=await s.getDimensions(l),v=h==="y",y=v?"top":"left",$=v?"bottom":"right",x=v?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[h]-p[h]-i.floating[m],C=p[h]-i.reference[h],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let _=E?E[x]:0;(!_||!await(s.isElement==null?void 0:s.isElement(E)))&&(_=a.floating[x]||i.floating[m]);const S=w/2-C/2,M=_/2-b[m]/2-1,T=Ne(d[y],M),P=Ne(d[$],M),R=T,B=_-b[m]-P,j=_/2-b[m]/2+S,I=Zn(R,j,B),z=!c.arrow&&ht(o)!=null&&j!==I&&i.reference[m]/2-(jR<=0)){var M,T;const R=(((M=i.flip)==null?void 0:M.index)||0)+1,B=C[R];if(B)return{data:{index:R,overflows:S},reset:{placement:B}};let j=(T=S.filter(I=>I.overflows[0]<=0).sort((I,z)=>I.overflows[1]-z.overflows[1])[0])==null?void 0:T.placement;if(!j)switch(h){case"bestFit":{var P;const I=(P=S.map(z=>[z.placement,z.overflows.filter(L=>L>0).reduce((L,Y)=>L+Y,0)]).sort((z,L)=>z[1]-L[1])[0])==null?void 0:P[0];I&&(j=I);break}case"initialPlacement":j=a;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function uo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fo(e){return el.some(t=>e[t]>=0)}const fl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Te(e,t);switch(r){case"referenceHidden":{const i=await Pt(t,{...o,elementContext:"reference"}),s=uo(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:fo(s)}}}case"escaped":{const i=await Pt(t,{...o,altBoundary:!0}),s=uo(i,n.floating);return{data:{escapedOffsets:s,escaped:fo(s)}}}default:return{}}}}};async function dl(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Pe(n),a=ht(n),c=gt(n)==="y",l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=Te(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),c?{x:h*u,y:p*l}:{x:p*l,y:h*u}}const pl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await dl(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},hl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:$}=v;return{x:y,y:$}}},...c}=Te(e,t),l={x:n,y:r},u=await Pt(t,c),d=gt(Pe(o)),p=yr(d);let h=l[p],m=l[d];if(i){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",$=h+u[v],x=h-u[y];h=Zn($,h,x)}if(s){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",$=m+u[v],x=m-u[y];m=Zn($,m,x)}const b=a.fn({...t,[p]:h,[d]:m});return{...b,data:{x:b.x-n,y:b.y-r}}}}},gl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Te(e,t),u={x:n,y:r},d=gt(o),p=yr(d);let h=u[p],m=u[d];const b=Te(a,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const x=p==="y"?"height":"width",w=i.reference[p]-i.floating[x]+v.mainAxis,C=i.reference[p]+i.reference[x]-v.mainAxis;hC&&(h=C)}if(l){var y,$;const x=p==="y"?"width":"height",w=["top","left"].includes(Pe(o)),C=i.reference[d]-i.floating[x]+(w&&((y=s.offset)==null?void 0:y[d])||0)+(w?0:v.crossAxis),E=i.reference[d]+i.reference[x]+(w?0:(($=s.offset)==null?void 0:$[d])||0)-(w?v.crossAxis:0);mE&&(m=E)}return{[p]:h,[d]:m}}}},ml=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=Te(e,t),c=await Pt(t,a),l=Pe(n),u=ht(n),d=gt(n)==="y",{width:p,height:h}=r.floating;let m,b;l==="top"||l==="bottom"?(m=l,b=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(b=l,m=u==="end"?"top":"bottom");const v=h-c[m],y=p-c[b],$=!t.middlewareData.shift;let x=v,w=y;if(d){const E=p-c.left-c.right;w=u||$?Ne(y,E):E}else{const E=h-c.top-c.bottom;x=u||$?Ne(v,E):E}if($&&!u){const E=le(c.left,0),_=le(c.right,0),S=le(c.top,0),M=le(c.bottom,0);d?w=p-2*(E!==0||_!==0?E+_:le(c.left,c.right)):x=h-2*(S!==0||M!==0?S+M:le(c.top,c.bottom))}await s({...t,availableWidth:w,availableHeight:x});const C=await o.getDimensions(i.floating);return p!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}};function ze(e){return Ai(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function De(e){var t;return(t=(Ai(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ai(e){return e instanceof Node||e instanceof ue(e).Node}function Ae(e){return e instanceof Element||e instanceof ue(e).Element}function xe(e){return e instanceof HTMLElement||e instanceof ue(e).HTMLElement}function po(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function Lt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function bl(e){return["table","td","th"].includes(ze(e))}function xr(e){const t=Er(),n=pe(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function vl(e){let t=lt(e);for(;xe(t)&&!$n(t);){if(xr(t))return t;t=lt(t)}return null}function Er(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $n(e){return["html","body","#document"].includes(ze(e))}function pe(e){return ue(e).getComputedStyle(e)}function xn(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lt(e){if(ze(e)==="html")return e;const t=e.assignedSlot||e.parentNode||po(e)&&e.host||De(e);return po(t)?t.host:t}function Di(e){const t=lt(e);return $n(t)?e.ownerDocument?e.ownerDocument.body:e.body:xe(t)&&Lt(t)?t:Di(t)}function At(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Di(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ue(o);return i?t.concat(s,s.visualViewport||[],Lt(o)?o:[],s.frameElement&&n?At(s.frameElement):[]):t.concat(o,At(o,[],n))}function Ii(e){const t=pe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xe(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=sn(n)!==i||sn(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Cr(e){return Ae(e)?e:e.contextElement}function at(e){const t=Cr(e);if(!xe(t))return Be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ii(t);let s=(i?sn(n.width):n.width)/r,a=(i?sn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const yl=Be(0);function Mi(e){const t=ue(e);return!Er()||!t.visualViewport?yl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ue(e)?!1:t}function Xe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Cr(e);let s=Be(1);t&&(r?Ae(r)&&(s=at(r)):s=at(e));const a=wl(i,n,r)?Mi(i):Be(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const p=ue(i),h=r&&Ae(r)?ue(r):r;let m=p,b=m.frameElement;for(;b&&r&&h!==m;){const v=at(b),y=b.getBoundingClientRect(),$=pe(b),x=y.left+(b.clientLeft+parseFloat($.paddingLeft))*v.x,w=y.top+(b.clientTop+parseFloat($.paddingTop))*v.y;c*=v.x,l*=v.y,u*=v.x,d*=v.y,c+=x,l+=w,m=ue(b),b=m.frameElement}}return cn({width:u,height:d,x:c,y:l})}const $l=[":popover-open",":modal"];function ji(e){return $l.some(t=>{try{return e.matches(t)}catch{return!1}})}function xl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=De(r),a=t?ji(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Be(1);const u=Be(0),d=xe(r);if((d||!d&&!i)&&((ze(r)!=="body"||Lt(s))&&(c=xn(r)),xe(r))){const p=Xe(r);l=at(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function El(e){return Array.from(e.getClientRects())}function Li(e){return Xe(De(e)).left+xn(e).scrollLeft}function Cl(e){const t=De(e),n=xn(e),r=e.ownerDocument.body,o=le(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=le(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Li(e);const a=-n.scrollTop;return pe(r).direction==="rtl"&&(s+=le(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function _l(e,t){const n=ue(e),r=De(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const l=Er();(!l||l&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}function Sl(e,t){const n=Xe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=xe(e)?at(e):Be(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function ho(e,t,n){let r;if(t==="viewport")r=_l(e,n);else if(t==="document")r=Cl(De(e));else if(Ae(t))r=Sl(t,n);else{const o=Mi(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return cn(r)}function Ni(e,t){const n=lt(e);return n===t||!Ae(n)||$n(n)?!1:pe(n).position==="fixed"||Ni(n,t)}function Ol(e,t){const n=t.get(e);if(n)return n;let r=At(e,[],!1).filter(a=>Ae(a)&&ze(a)!=="body"),o=null;const i=pe(e).position==="fixed";let s=i?lt(e):e;for(;Ae(s)&&!$n(s);){const a=pe(s),c=xr(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Lt(s)&&!c&&Ni(e,s))?r=r.filter(u=>u!==s):o=a,s=lt(s)}return t.set(e,r),r}function Rl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ol(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,u)=>{const d=ho(t,u,o);return l.top=le(d.top,l.top),l.right=Ne(d.right,l.right),l.bottom=Ne(d.bottom,l.bottom),l.left=le(d.left,l.left),l},ho(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function kl(e){const{width:t,height:n}=Ii(e);return{width:t,height:n}}function Tl(e,t,n){const r=xe(t),o=De(t),i=n==="fixed",s=Xe(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Be(0);if(r||!r&&!i)if((ze(t)!=="body"||Lt(o))&&(a=xn(t)),r){const d=Xe(t,!0,i,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else o&&(c.x=Li(o));const l=s.left+a.scrollLeft-c.x,u=s.top+a.scrollTop-c.y;return{x:l,y:u,width:s.width,height:s.height}}function go(e,t){return!xe(e)||pe(e).position==="fixed"?null:t?t(e):e.offsetParent}function Bi(e,t){const n=ue(e);if(!xe(e)||ji(e))return n;let r=go(e,t);for(;r&&bl(r)&&pe(r).position==="static";)r=go(r,t);return r&&(ze(r)==="html"||ze(r)==="body"&&pe(r).position==="static"&&!xr(r))?n:r||vl(e)||n}const Pl=async function(e){const t=this.getOffsetParent||Bi,n=this.getDimensions;return{reference:Tl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function Al(e){return pe(e).direction==="rtl"}const Dl={convertOffsetParentRelativeRectToViewportRelativeRect:xl,getDocumentElement:De,getClippingRect:Rl,getOffsetParent:Bi,getElementRects:Pl,getClientRects:El,getDimensions:kl,getScale:at,isElement:Ae,isRTL:Al};function Il(e,t){let n=null,r;const o=De(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const h=qt(u),m=qt(o.clientWidth-(l+d)),b=qt(o.clientHeight-(u+p)),v=qt(l),$={rootMargin:-h+"px "+-m+"px "+-b+"px "+-v+"px",threshold:le(0,Ne(1,c))||1};let x=!0;function w(C){const E=C[0].intersectionRatio;if(E!==c){if(!x)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(w,{...$,root:o.ownerDocument})}catch{n=new IntersectionObserver(w,$)}n.observe(e)}return s(!0),i}function Ml(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Cr(e),u=o||i?[...l?At(l):[],...At(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=l&&a?Il(l,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(y=>{let[$]=y;$&&$.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),l&&!c&&h.observe(l),h.observe(t));let m,b=c?Xe(e):null;c&&v();function v(){const y=Xe(e);b&&(y.x!==b.x||y.y!==b.y||y.width!==b.width||y.height!==b.height)&&n(),b=y,m=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach($=>{o&&$.removeEventListener("scroll",n),i&&$.removeEventListener("resize",n)}),d==null||d(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const jl=hl,Ll=ul,Nl=ml,Bl=fl,mo=ll,zl=gl,Fl=(e,t,n)=>{const r=new Map,o={platform:Dl,...n},i={...o.platform,_c:r};return cl(e,t,{...o,platform:i})},Wl=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?mo({element:r.current,padding:o}).fn(n):{}:r?mo({element:r,padding:o}).fn(n):{}}}};var nn=typeof document<"u"?f.useLayoutEffect:f.useEffect;function ln(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ln(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ln(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function zi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bo(e,t){const n=zi(e);return Math.round(t*n)/n}function vo(e){const t=f.useRef(e);return nn(()=>{t.current=e}),t}function Hl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=f.useState(r);ln(p,r)||h(r);const[m,b]=f.useState(null),[v,y]=f.useState(null),$=f.useCallback(L=>{L!==E.current&&(E.current=L,b(L))},[]),x=f.useCallback(L=>{L!==_.current&&(_.current=L,y(L))},[]),w=i||m,C=s||v,E=f.useRef(null),_=f.useRef(null),S=f.useRef(u),M=c!=null,T=vo(c),P=vo(o),R=f.useCallback(()=>{if(!E.current||!_.current)return;const L={placement:t,strategy:n,middleware:p};P.current&&(L.platform=P.current),Fl(E.current,_.current,L).then(Y=>{const q={...Y,isPositioned:!0};B.current&&!ln(S.current,q)&&(S.current=q,mr.flushSync(()=>{d(q)}))})},[p,t,n,P]);nn(()=>{l===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,d(L=>({...L,isPositioned:!1})))},[l]);const B=f.useRef(!1);nn(()=>(B.current=!0,()=>{B.current=!1}),[]),nn(()=>{if(w&&(E.current=w),C&&(_.current=C),w&&C){if(T.current)return T.current(w,C,R);R()}},[w,C,R,T,M]);const j=f.useMemo(()=>({reference:E,floating:_,setReference:$,setFloating:x}),[$,x]),I=f.useMemo(()=>({reference:w,floating:C}),[w,C]),z=f.useMemo(()=>{const L={position:n,left:0,top:0};if(!I.floating)return L;const Y=bo(I.floating,u.x),q=bo(I.floating,u.y);return a?{...L,transform:"translate("+Y+"px, "+q+"px)",...zi(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:q}},[n,a,I.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:R,refs:j,elements:I,floatingStyles:z}),[u,R,j,I,z])}const Vl=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return f.createElement(Ze.svg,Z({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:f.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Ul=Vl;function Kl(e){const[t,n]=f.useState(void 0);return ct(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Fi="Popper",[Wi,Hi]=ki(Fi),[Gl,Vi]=Wi(Fi),Yl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return f.createElement(Gl,{scope:t,anchor:r,onAnchorChange:o},n)},ql="PopperAnchor",Xl=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Vi(ql,n),s=f.useRef(null),a=ft(t,s);return f.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:f.createElement(Ze.div,Z({},o,{ref:a}))}),Ui="PopperContent",[Jl,Zl]=Wi(Ui),Ql=f.forwardRef((e,t)=>{var n,r,o,i,s,a,c,l;const{__scopePopper:u,side:d="bottom",sideOffset:p=0,align:h="center",alignOffset:m=0,arrowPadding:b=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:$=0,sticky:x="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:E,..._}=e,S=Vi(Ui,u),[M,T]=f.useState(null),P=ft(t,ye=>T(ye)),[R,B]=f.useState(null),j=Kl(R),I=(n=j==null?void 0:j.width)!==null&&n!==void 0?n:0,z=(r=j==null?void 0:j.height)!==null&&r!==void 0?r:0,L=d+(h!=="center"?"-"+h:""),Y=typeof $=="number"?$:{top:0,right:0,bottom:0,left:0,...$},q=Array.isArray(y)?y:[y],Ee=q.length>0,oe={padding:Y,boundary:q.filter(ru),altBoundary:Ee},{refs:Ft,floatingStyles:yt,placement:Wt,isPositioned:We,middlewareData:me}=Hl({strategy:"fixed",placement:L,whileElementsMounted:(...ye)=>Ml(...ye,{animationFrame:C==="always"}),elements:{reference:S.anchor},middleware:[pl({mainAxis:p+z,alignmentAxis:m}),v&&jl({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?zl():void 0,...oe}),v&&Ll({...oe}),Nl({...oe,apply:({elements:ye,rects:Ue,availableWidth:Sn,availableHeight:On})=>{const{width:Rn,height:Kt}=Ue.reference,Ke=ye.floating.style;Ke.setProperty("--radix-popper-available-width",`${Sn}px`),Ke.setProperty("--radix-popper-available-height",`${On}px`),Ke.setProperty("--radix-popper-anchor-width",`${Rn}px`),Ke.setProperty("--radix-popper-anchor-height",`${Kt}px`)}}),R&&Wl({element:R,padding:b}),ou({arrowWidth:I,arrowHeight:z}),w&&Bl({strategy:"referenceHidden",...oe})]}),[He,Me]=Ki(Wt),Ve=pt(E);ct(()=>{We&&(Ve==null||Ve())},[We,Ve]);const Ht=(o=me.arrow)===null||o===void 0?void 0:o.x,Vt=(i=me.arrow)===null||i===void 0?void 0:i.y,Ut=((s=me.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[je,wt]=f.useState();return ct(()=>{M&&wt(window.getComputedStyle(M).zIndex)},[M]),f.createElement("div",{ref:Ft.setFloating,"data-radix-popper-content-wrapper":"",style:{...yt,transform:We?yt.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:je,"--radix-popper-transform-origin":[(a=me.transformOrigin)===null||a===void 0?void 0:a.x,(c=me.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},f.createElement(Jl,{scope:u,placedSide:He,onArrowChange:B,arrowX:Ht,arrowY:Vt,shouldHideArrow:Ut},f.createElement(Ze.div,Z({"data-side":He,"data-align":Me},_,{ref:P,style:{..._.style,animation:We?void 0:"none",opacity:(l=me.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),eu="PopperArrow",tu={top:"bottom",right:"left",bottom:"top",left:"right"},nu=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Zl(eu,r),s=tu[i.placedSide];return f.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},f.createElement(Ul,Z({},o,{ref:n,style:{...o.style,display:"block"}})))});function ru(e){return e!==null}const ou=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:c,middlewareData:l}=t,d=((n=l.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[m,b]=Ki(a),v={start:"0%",center:"50%",end:"100%"}[b],y=((r=(o=l.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,$=((i=(s=l.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+h/2;let x="",w="";return m==="bottom"?(x=d?v:`${y}px`,w=`${-h}px`):m==="top"?(x=d?v:`${y}px`,w=`${c.floating.height+h}px`):m==="right"?(x=`${-h}px`,w=d?v:`${$}px`):m==="left"&&(x=`${c.floating.width+h}px`,w=d?v:`${$}px`),{data:{x,y:w}}}});function Ki(e){const[t,n="center"]=e.split("-");return[t,n]}const iu=Yl,su=Xl,au=Ql,cu=nu;function lu(e,t){return f.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Gi=e=>{const{present:t,children:n}=e,r=uu(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=ft(r.ref,o.ref);return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};Gi.displayName="Presence";function uu(e){const[t,n]=f.useState(),r=f.useRef({}),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=lu(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Xt(r.current);i.current=a==="mounted"?l:"none"},[a]),ct(()=>{const l=r.current,u=o.current;if(u!==e){const p=i.current,h=Xt(l);e?c("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ct(()=>{if(t){const l=d=>{const h=Xt(r.current).includes(d.animationName);d.target===t&&h&&mr.flushSync(()=>c("ANIMATION_END"))},u=d=>{d.target===t&&(i.current=Xt(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Xt(e){return(e==null?void 0:e.animationName)||"none"}function fu({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=du({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=pt(n),c=f.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else o(l)},[i,e,o,a]);return[s,c]}function du({defaultProp:e,onChange:t}){const n=f.useState(e),[r]=n,o=f.useRef(r),i=pt(t);return f.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const pu=f.forwardRef((e,t)=>f.createElement(Ze.span,Z({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),hu=pu,[En,lm]=ki("Tooltip",[Hi]),Cn=Hi(),gu="TooltipProvider",er="tooltip.open",[um,_r]=En(gu),Sr="Tooltip",[mu,_n]=En(Sr),bu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=_r(Sr,e.__scopeTooltip),l=Cn(t),[u,d]=f.useState(null),p=Qc(),h=f.useRef(0),m=s??c.disableHoverableContent,b=a??c.delayDuration,v=f.useRef(!1),[y=!1,$]=fu({prop:r,defaultProp:o,onChange:_=>{_?(c.onOpen(),document.dispatchEvent(new CustomEvent(er))):c.onClose(),i==null||i(_)}}),x=f.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),w=f.useCallback(()=>{window.clearTimeout(h.current),v.current=!1,$(!0)},[$]),C=f.useCallback(()=>{window.clearTimeout(h.current),$(!1)},[$]),E=f.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,$(!0)},b)},[b,$]);return f.useEffect(()=>()=>window.clearTimeout(h.current),[]),f.createElement(iu,l,f.createElement(mu,{scope:t,contentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayed?E():w()},[c.isOpenDelayed,E,w]),onTriggerLeave:f.useCallback(()=>{m?C():window.clearTimeout(h.current)},[C,m]),onOpen:w,onClose:C,disableHoverableContent:m},n))},yo="TooltipTrigger",vu=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=_n(yo,n),i=_r(yo,n),s=Cn(n),a=f.useRef(null),c=ft(t,a,o.onTriggerChange),l=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.createElement(su,Z({asChild:!0},s),f.createElement(Ze.button,Z({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:c,onPointerMove:Se(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:Se(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:Se(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Se(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:Se(e.onBlur,o.onClose),onClick:Se(e.onClick,o.onClose)})))}),yu="TooltipPortal",[fm,wu]=En(yu,{forceMount:void 0}),Dt="TooltipContent",$u=f.forwardRef((e,t)=>{const n=wu(Dt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=_n(Dt,e.__scopeTooltip);return f.createElement(Gi,{present:r||s.open},s.disableHoverableContent?f.createElement(Yi,Z({side:o},i,{ref:t})):f.createElement(xu,Z({side:o},i,{ref:t})))}),xu=f.forwardRef((e,t)=>{const n=_n(Dt,e.__scopeTooltip),r=_r(Dt,e.__scopeTooltip),o=f.useRef(null),i=ft(t,o),[s,a]=f.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:d}=r,p=f.useCallback(()=>{a(null),d(!1)},[d]),h=f.useCallback((m,b)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},$=Ou(y,v.getBoundingClientRect()),x=Ru(y,$),w=ku(b.getBoundingClientRect()),C=Pu([...x,...w]);a(C),d(!0)},[d]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(c&&u){const m=v=>h(v,u),b=v=>h(v,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",b),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",b)}}},[c,u,h,p]),f.useEffect(()=>{if(s){const m=b=>{const v=b.target,y={x:b.clientX,y:b.clientY},$=(c==null?void 0:c.contains(v))||(u==null?void 0:u.contains(v)),x=!Tu(y,s);$?p():x&&(p(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,s,l,p]),f.createElement(Yi,Z({},e,{ref:i}))}),[Eu,Cu]=En(Sr,{isInside:!1}),Yi=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=_n(Dt,n),l=Cn(n),{onClose:u}=c;return f.useEffect(()=>(document.addEventListener(er,u),()=>document.removeEventListener(er,u)),[u]),f.useEffect(()=>{if(c.trigger){const d=p=>{const h=p.target;h!=null&&h.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),f.createElement(Yc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u},f.createElement(au,Z({"data-state":c.stateAttribute},l,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),f.createElement(mi,null,r),f.createElement(Eu,{scope:n,isInside:!0},f.createElement(hu,{id:c.contentId,role:"tooltip"},o||r))))}),_u="TooltipArrow",Su=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Cn(n);return Cu(_u,n).isInside?null:f.createElement(cu,Z({},o,r,{ref:t}))});function Ou(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ru(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ku(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Tu(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=u>r&&n<(l-a)*(r-c)/(u-c)+a&&(o=!o)}return o}function Pu(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),Au(t)}function Au(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const Du=bu,Iu=vu,Mu=$u,ju=Su;function Lu(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function F(e,t){if(e==null)return{};var n=Lu(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let U;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(U||(U={}));const Nu={[U.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[U.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[U.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[U.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[U.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[U.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[U.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[U.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[U.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[U.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[U.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function qi(e,t,...n){const[r,...o]=Nu[t](...n);console[e]("LEVA: "+r,...o)}const Oe=qi.bind(null,"warn"),Bu=qi.bind(null,"log"),zu=["value"],Fu=["schema"],Wu=["value"],Xi=[],Je={};function wo(e){let{value:t}=e,n=F(e,zu);for(let r of Xi){const o=r(t,n);if(o)return o}}function Ie(e,t){let{schema:n}=t,r=F(t,Fu);if(e in Je){Oe(U.ALREADY_REGISTERED_TYPE,e);return}Xi.push((o,i)=>n(o,i)&&e),Je[e]=r}function Nn(e,t,n,r){const{normalize:o}=Je[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=F(t,Wu);return{value:i,settings:s}}function Hu(e,t,n,r,o,i){const{sanitize:s}=Je[e];return s?s(t,n,r,o,i):t}function $o(e,t,n){const{format:r}=Je[e];return r?r(t,n):t}function Vu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=Le(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},Ku=Math.log(10);function Eo(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/Ku)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const un=(e,t,n)=>n===t?0:(Fe(e,t,n)-t)/(n-t),fn=(e,t,n)=>e*(n-t)+t,Gu=()=>"_"+Math.random().toString(36).substr(2,9),Co=/\(([0-9+\-*/^ .]+)\)/,_o=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,So=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Oo=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Ro=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,ko=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function Le(e){if(isNaN(Number(e)))if(Co.test(e)){const t=e.replace(Co,(n,r)=>String(Le(r)));return Le(t)}else if(_o.test(e)){const t=e.replace(_o,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return Le(t)}else if(So.test(e)){const t=e.replace(So,(n,r,o)=>String(Number(r)*Number(o)));return Le(t)}else if(Oo.test(e)){const t=e.replace(Oo,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return Le(t)}else if(Ro.test(e)){const t=e.replace(Ro,(n,r,o)=>String(Number(r)+Number(o)));return Le(t)}else if(ko.test(e)){const t=e.replace(ko,(n,r,o)=>String(Number(r)-Number(o)));return Le(t)}else return Number(e);return Number(e)}function Yu(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function qu(e,t){const n=A({},e);return t.forEach(r=>r in e&&delete n[r]),n}function Xu(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function Ji(e){return Object.prototype.toString.call(e)==="[object Object]"}const Ju=e=>Ji(e)&&Object.keys(e).length===0;let ce;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(ce||(ce={}));let he;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(he||(he={}));const Zu=["type","__customInput"],Qu=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],ef=["type"];function Zi(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:A({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:C,__customInput:E}=e,_=F(e,Zu);return Zi(E,t,_,C)}const{render:s,label:a,optional:c,order:l=0,disabled:u,hint:d,onChange:p,onEditStart:h,onEditEnd:m,transient:b}=e,v=F(e,Qu),y=A({render:s,key:t,label:a??t,hint:d,transient:b??!!p,onEditStart:h,onEditEnd:m,disabled:u,optional:c,order:l},n);let{type:$}=v,x=F(v,ef);if($=r??$,$ in ce)return{type:$,input:x,options:y};let w;return r&&Ji(x)&&"value"in x?w=x.value:w=Ju(x)?void 0:x,{type:$,input:w,options:A(A({},y),{},{onChange:p,optional:(o=y.optional)!==null&&o!==void 0?o:!1,disabled:(i=y.disabled)!==null&&i!==void 0?i:!1})}}function tf(e,t,n,r){const o=Zi(e,t),{type:i,input:s,options:a}=o;if(i)return i in ce?o:{type:i,input:Nn(i,s,n,r),options:a};let c=wo(s);return c?{type:c,input:Nn(c,s,n,r),options:a}:(c=wo({value:s}),c?{type:c,input:Nn(c,{value:s},n,r),options:a}:!1)}function To(e,t,n,r,o){const{value:i,type:s,settings:a}=e;e.value=Qi({type:s,value:i,settings:a},t,n,r),e.fromPanel=o}const nf=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function Qi({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let a;try{a=Hu(e,s,n,t,o,i)}catch(c){throw new nf(`The value \`${r}\` did not result in a correct value.`,t,c)}return kt(a,t)?t:a}const es=(e,t,n=!1)=>{let r=0;return function(){const o=arguments,i=n&&!r,s=()=>e.apply(this,o);window.clearTimeout(r),r=window.setTimeout(s,t),i&&s()}},ts=e=>e.shiftKey?5:e.altKey?1/5:1;function rf(e,t){const n=console.error;console.error=()=>{},fi.render(e,t),console.error=n}const of=["value"],sf=["min","max"],af=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},ns=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const o=parseFloat(e);if(e===""||isNaN(o))throw Error("Invalid number");const i=Fe(o,t,n);return r?i+r:i},cf=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},rs=e=>{let{value:t}=e,n=F(e,of);const{min:r=-1/0,max:o=1/0}=n,i=F(n,sf);let s=parseFloat(t);const a=typeof t=="string"?t.substring((""+s).length):void 0;s=Fe(s,r,o);let c=n.step;c||(Number.isFinite(r)?Number.isFinite(o)?c=+(Math.abs(o-r)/100).toPrecision(1):c=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(c=+(Math.abs(o-s)/100).toPrecision(1)));const l=c?Eo(c)*10:Eo(s);c=c||l/10;const u=Math.round(Fe(Math.log10(1/l),0,2));return{value:a?s+a:s,settings:A({initialValue:s,step:c,pad:u,min:r,max:o,suffix:a},i)}},os=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var is=Object.freeze({__proto__:null,schema:af,sanitize:ns,format:cf,normalize:rs,sanitizeStep:os});function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function Jt(e,t){const[n,r]=e.split(" "),o={};return n!=="none"&&(o.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(o.backgroundColor=r),o}const Et={$inputStyle:()=>e=>Jt(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>Jt(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>Jt(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>Jt(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:D,css:dm,createTheme:ff,globalCss:df,keyframes:pm}=qa({prefix:"leva",theme:cs(),utils:A(A({},Et),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":Et.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":Et.$focusStyle()(e)}),$hover:e=>({"&:hover":Et.$hoverStyle()(e)}),$active:e=>({"&:active":Et.$activeStyle()(e)})})}),pf=df({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function hf(e){const t=cs();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=ff(t);return{theme:t,className:n.className}}function Re(e,t){const{theme:n}=f.useContext(Or);if(!(e in n)||!(t in n[e]))return Oe(U.THEME_ERROR,e,t),"";let r=t;for(;;){let o=n[e][r];if(typeof o=="string"&&o.charAt(0)==="$")r=o.substr(1);else return o}}const ls=D("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),us=D("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${ls}`]:{paddingLeft:0}}),gf=D(us,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),mf=D("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),bf=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],vf=["onUpdate"];function kr(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:a,inputType:c="text",rows:l=0}=e,u=F(e,bf);const{id:d,emitOnEditStart:p,emitOnEditEnd:h,disabled:m}=ee(),b=a||d,v=f.useRef(null),y=l>0,$=y?"textarea":"input",x=f.useCallback(E=>_=>{const S=_.currentTarget.value;E(S)},[]);g.useEffect(()=>{const E=v.current,_=x(S=>{r(S),h()});return E==null||E.addEventListener("blur",_),()=>E==null?void 0:E.removeEventListener("blur",_)},[x,r,h]);const w=f.useCallback(E=>{E.key==="Enter"&&x(r)(E)},[x,r]),C=Object.assign({as:$},y?{rows:l}:{},u);return g.createElement(mf,{textArea:y},t&&typeof t=="string"?g.createElement(us,null,t):t,g.createElement(ls,G({levaType:s,ref:v,id:b,type:c,autoComplete:"off",spellCheck:"false",value:n,onChange:x(o),onFocus:()=>p(),onKeyPress:w,onKeyDown:i,disabled:m},C)))}function yf(e){let{onUpdate:t}=e,n=F(e,vf);const r=f.useCallback(i=>t(Uu(i)),[t]),o=f.useCallback(i=>{const s=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(s){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;t(c=>parseFloat(c)+s*a)}},[t]);return g.createElement(kr,G({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const dn=D("div",{}),tr=D("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),wf=D("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${tr}::after`]:{opacity:.6},[`${dn}:hover > & + ${tr}::after`]:{opacity:.6},[`${dn}:hover > & > svg`]:{opacity:1}}),fs=D("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${dn}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),ds=D("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${fs} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),ps=D(ds,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),$f=D("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),xf=D("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),nr=D("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),Ef=D("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${nr}`]:{pointerEvents:"auto"}}}}}),hs=D("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),Cf=D("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),_f=D(ju,{fill:"$toolTipBackground"});function Tr({children:e}){const{className:t}=f.useContext(Or);return g.createElement(ba,{className:t},e)}const Sf=["align"];function Of(){const{id:e,disable:t,disabled:n}=ee();return g.createElement(g.Fragment,null,g.createElement(xf,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),g.createElement("label",{htmlFor:e+"__disable"}))}function Rf(e){const{id:t,optional:n,hint:r}=ee(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return g.createElement(g.Fragment,null,n&&g.createElement(Of,null),r!==void 0?g.createElement(Du,null,g.createElement(Iu,{asChild:!0},g.createElement(nr,G({},o,e))),g.createElement(Mu,{side:"top",sideOffset:2},g.createElement(Cf,null,r,g.createElement(_f,null)))):g.createElement(nr,G({},o,i,e)))}function ve(e){let{align:t}=e,n=F(e,Sf);const{value:r,label:o,key:i,disabled:s}=ee(),{hideCopyButton:a}=lf(),c=!a&&i!==void 0,[l,u]=f.useState(!1),d=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),u(!0)}catch{Oe(U.CLIPBOARD_ERROR,{[i]:r})}};return g.createElement($f,{align:t,onPointerLeave:()=>u(!1)},g.createElement(Rf,n),c&&!s&&g.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},l?g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},g.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),g.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):g.createElement("svg",{onClick:d,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},g.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),g.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const kf=["toggled"],Tf=D("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Pr(e){let{toggled:t}=e,n=F(e,kf);return g.createElement(Tf,G({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),g.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const Pf=["input"];function ge(e){let{input:t}=e,n=F(e,Pf);return t?g.createElement(ps,n):g.createElement(ds,n)}function gs({value:e,type:t,settings:n,setValue:r}){const[o,i]=f.useState($o(t,e,n)),s=f.useRef(e),a=f.useRef(n);a.current=n;const c=f.useCallback(u=>i($o(t,u,a.current)),[t]),l=f.useCallback(u=>{try{r(u)}catch(d){const{type:p,previousValue:h}=d;if(p!=="LEVA_ERROR")throw d;c(h)}},[c,r]);return f.useEffect(()=>{kt(e,s.current)||c(e),s.current=e},[e,c]),{displayValue:o,onChange:i,onUpdate:l}}function Nt(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=ee();return Wc(o=>{o.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const i=e(o);return o.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),i},t)}function Af(e){const t=f.useRef(null),n=f.useRef(null),r=f.useRef(!1);return f.useEffect(()=>{const o=es(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",o),r.current||(o(),r.current=!0),()=>window.removeEventListener("resize",o)},[e]),f.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function ms(){const e=f.useRef(null),t=f.useRef({x:0,y:0}),n=f.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const Df=["__refCount"],Bn=(e,t)=>{if(!e[t])return null;const n=e[t];return F(n,Df)};function If(e){const t=Qe(),[n,r]=f.useState(Bn(t.getData(),e)),o=f.useCallback(l=>t.setValueAtPath(e,l,!0),[e,t]),i=f.useCallback(l=>t.setSettingsAtPath(e,l),[e,t]),s=f.useCallback(l=>t.disableInputAtPath(e,l),[e,t]),a=f.useCallback(()=>t.emitOnEditStart(e),[e,t]),c=f.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return f.useEffect(()=>{r(Bn(t.getData(),e));const l=t.useStore.subscribe(u=>Bn(u.data,e),r,{equalityFn:It});return()=>l()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const Mf=D("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),bs=D("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),rr=D("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),vs=D("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),ys=D("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function jf({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=f.useRef(null),a=f.useRef(null),c=f.useRef(0),l=Re("sizes","scrubberWidth"),u=Nt(({event:p,first:h,xy:[m],movement:[b],memo:v})=>{if(h){const{width:$,left:x}=s.current.getBoundingClientRect();c.current=$-parseFloat(l),v=(p==null?void 0:p.target)===a.current?e:fn((m-x)/$,t,n)}const y=v+fn(b/c.current,0,n-t);return r(os(y,{step:o,initialValue:i})),v}),d=un(e,t,n);return g.createElement(vs,G({ref:s},u()),g.createElement(bs,null,g.createElement(ys,{style:{left:0,right:`${(1-d)*100}%`}})),g.createElement(rr,{ref:a,style:{left:`calc(${d} * (100% - ${l}))`}}))}const Lf=g.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=f.useState(!1),s=Nt(({active:a,delta:[c],event:l,memo:u=0})=>(i(a),u+=c/2,Math.abs(u)>=1&&(t(d=>parseFloat(d)+Math.floor(u)*n*ts(l)),u=0),u));return g.createElement(gf,G({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function ws({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const a=s>0&&g.createElement(Lf,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return g.createElement(yf,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:a})}function Nf(){const e=ee(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:a}=o,c=a!==1/0&&s!==-1/0;return g.createElement(ge,{input:!0},g.createElement(ve,null,t),g.createElement(Mf,{hasRange:c},c&&g.createElement(jf,G({value:parseFloat(n),onDrag:r},o)),g.createElement(ws,G({},e,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:Bf}=is,zf=F(is,["sanitizeStep"]);var Ff=A({component:Nf},zf);const Wf=(e,t)=>ae().schema({options:ae().passesAnyOf(ae().object(),ae().array())}).test(t),Hf=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},Vf=(e,{values:t})=>t.indexOf(e),Uf=e=>{let{value:t,options:n}=e,r,o;return Array.isArray(n)?(o=n,r=n.map(i=>String(i))):(o=Object.values(n),r=Object.keys(n)),"value"in e?o.includes(t)||(r.unshift(String(t)),o.unshift(t)):t=o[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:o}}};var Kf=Object.freeze({__proto__:null,schema:Wf,sanitize:Hf,format:Vf,normalize:Uf});const Gf=D("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),or=D("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Yf=D("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${or}:focus + &`]:{$focusStyle:""},[`${or}:hover + &`]:{$hoverStyle:""}});function qf({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:a}=o,c=f.useRef();return t===a[e]&&(c.current=s[e]),g.createElement(Gf,null,g.createElement(or,{id:r,value:e,onChange:l=>n(a[Number(l.currentTarget.value)]),disabled:i},s.map((l,u)=>g.createElement("option",{key:l,value:u},l))),g.createElement(Yf,null,c.current),g.createElement(Pr,{toggled:!0}))}function Xf(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(qf,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var Jf=A({component:Xf},Kf);const Zf=e=>ae().string().test(e),Qf=e=>{if(typeof e!="string")throw Error("Invalid string");return e},ed=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var td=Object.freeze({__proto__:null,schema:Zf,sanitize:Qf,normalize:ed});const nd=["displayValue","onUpdate","onChange","editable"],rd=D("div",{whiteSpace:"pre-wrap"});function od(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=F(e,nd);return o?g.createElement(kr,G({value:t,onUpdate:n,onChange:r},i)):g.createElement(rd,null,t)}function id(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(od,G({displayValue:n,onUpdate:r,onChange:o},t)))}var sd=A({component:id},td);const ad=e=>ae().boolean().test(e),cd=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var ld=Object.freeze({__proto__:null,schema:ad,sanitize:cd});const ud=D("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function fd({value:e,onUpdate:t,id:n,disabled:r}){return g.createElement(ud,null,g.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),g.createElement("label",{htmlFor:n},g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function dd(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(fd,{value:t,onUpdate:n,id:o,disabled:r}))}var pd=A({component:dd},ld);const hd=["locked"];function gd({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=f.useRef(e[n]);s.current=e[n];const a=f.useCallback(l=>o({[n]:Qi({type:"NUMBER",value:s.current,settings:r},l)}),[o,r,n]),c=gs({type:"NUMBER",value:e[n],settings:r,setValue:a});return g.createElement(ws,{id:t,label:n,value:e[n],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:r,innerLabelTrim:i})}const md=D("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function bd(e){let{locked:t}=e,n=F(e,hd);return g.createElement("svg",G({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?g.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):g.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Ar({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=ee(),{lock:s,locked:a}=n;return g.createElement(md,{withLock:s},s&&g.createElement(bd,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(e).map((c,l)=>g.createElement(gd,{id:l===0?o:`${o}.${c}`,key:c,valueKey:c,value:e,settings:n[c],onUpdate:t,innerLabelTrim:r})))}const $s=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=rs(A({value:s},t[i])).settings,r=Math.max(r,n[i].step),o=Math.min(o,n[i].pad)});for(let i in n){const{step:s,min:a,max:c}=t[i]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(c))&&(n[i].step=r,n[i].pad=o)}return n},vd=["lock"],yd=["value"];function wd(e){const t=ae().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const o=Object.values(r);return o.length===e&&o.every(i=>isFinite(i))};return r=>t.test(r)||n(r)}function $d(e){return Array.isArray(e)?"array":"object"}function St(e,t,n){return $d(e)===t?e:t==="array"?Object.values(e):Xu(e,n)}const xd=(e,t,n)=>{const r=St(e,"object",t.keys);for(let s in r)r[s]=ns(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=St(n,"object",t.keys);if(o.length===1&&t.locked){const a=o[0],c=r[a],l=s[a],u=l!==0?c/l:1;for(let d in s)d===a?i[a]=c:i[d]=s[d]*u}else i=A(A({},s),r)}return St(i,t.format,t.keys)},Ed=(e,t)=>St(e,"object",t.keys),Cd=e=>!!e&&("step"in e||"min"in e||"max"in e);function _d(e,t,n=[]){const{lock:r=!1}=t,o=F(t,vd),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,a=St(e,"object",s),c=Cd(o)?s.reduce((u,d)=>Object.assign(u,{[d]:o}),{}):o,l=$s(a,c);return{value:i==="array"?e:a,settings:A(A({},l),{},{format:i,keys:s,lock:r,locked:!1})}}function xs(e){return{schema:wd(e.length),normalize:t=>{let{value:n}=t,r=F(t,yd);return _d(n,r,e)},format:(t,n)=>Ed(t,n),sanitize:(t,n,r)=>xd(t,n,r)}}var Sd={grad:.9,turn:360,rad:360/(2*Math.PI)},Ce=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},X=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},de=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Es=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Po=function(e){return{r:de(e.r,0,255),g:de(e.g,0,255),b:de(e.b,0,255),a:de(e.a)}},zn=function(e){return{r:X(e.r),g:X(e.g),b:X(e.b),a:X(e.a,3)}},Od=/^#([0-9a-f]{3,8})$/i,Zt=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Cs=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},_s=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:255*[r,a,s,s,c,r][l],g:255*[c,r,r,a,s,s][l],b:255*[s,s,c,r,r,a][l],a:o}},Ao=function(e){return{h:Es(e.h),s:de(e.s,0,100),l:de(e.l,0,100),a:de(e.a)}},Do=function(e){return{h:X(e.h),s:X(e.s),l:X(e.l),a:X(e.a,3)}},Io=function(e){return _s((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},Ot=function(e){return{h:(t=Cs(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},Rd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,kd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Td=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Pd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ir={string:[[function(e){var t=Od.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?X(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?X(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Td.exec(e)||Pd.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Po({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Rd.exec(e)||kd.exec(e);if(!t)return null;var n,r,o=Ao({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(Sd[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Io(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return Ce(t)&&Ce(n)&&Ce(r)?Po({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=o===void 0?1:o;if(!Ce(t)||!Ce(n)||!Ce(r))return null;var s=Ao({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Io(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!Ce(t)||!Ce(n)||!Ce(r))return null;var s=function(a){return{h:Es(a.h),s:de(a.s,0,100),v:de(a.v,0,100),a:de(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return _s(s)},"hsv"]]},Mo=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=zn(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?Zt(X(255*i)):"","#"+Zt(n)+Zt(r)+Zt(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return zn(this.rgba)},e.prototype.toRgbString=function(){return t=zn(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return Do(Ot(this.rgba))},e.prototype.toHslString=function(){return t=Do(Ot(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=Cs(this.rgba),{h:X(t.h),s:X(t.s),v:X(t.v),a:X(t.a,3)};var t},e.prototype.invert=function(){return ne({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),ne(Fn(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),ne(Fn(this.rgba,-t))},e.prototype.grayscale=function(){return ne(Fn(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),ne(jo(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),ne(jo(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?ne({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):X(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=Ot(this.rgba);return typeof t=="number"?ne({h:t,s:n.s,l:n.l,a:n.a}):X(n.h)},e.prototype.isEqual=function(t){return this.toHex()===ne(t).toHex()},e}(),ne=function(e){return e instanceof sr?e:new sr(e)},Lo=[],Dd=function(e){e.forEach(function(t){Lo.indexOf(t)<0&&(t(sr,ir),Lo.push(t))})};function Id(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,l=r[this.toHex()];if(l)return l;if(s!=null&&s.closest){var u=this.toRgb(),d=1/0,p="black";if(!i.length)for(var h in n)i[h]=new e(n[h]).toRgb();for(var m in n){var b=(a=u,c=i[m],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));b=0||(o[n]=e[n]);return o}function ar(e){var t=f.useRef(e),n=f.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var ut=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:v.buttons>0)&&o.current?i(No(o.current,v,a.current)):b(!1)},m=function(){return b(!1)};function b(v){var y=c.current,$=cr(o.current),x=v?$.addEventListener:$.removeEventListener;x(y?"touchmove":"mousemove",h),x(y?"touchend":"mouseup",m)}return[function(v){var y=v.nativeEvent,$=o.current;if($&&(Bo(y),!function(w,C){return C&&!Rt(w)}(y,c.current)&&$)){if(Rt(y)){c.current=!0;var x=y.changedTouches||[];x.length&&(a.current=x[0].identifier)}$.focus(),i(No($,y,a.current)),b(!0)}},function(v){var y=v.which||v.keyCode;y<37||y>40||(v.preventDefault(),s({left:y===39?.05:y===37?-.05:0,top:y===40?.05:y===38?-.05:0}))},b]},[s,i]),u=l[0],d=l[1],p=l[2];return f.useEffect(function(){return p},[p]),g.createElement("div",mt({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),Bt=function(e){return e.filter(Boolean).join(" ")},Mr=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Bt(["react-colorful__pointer",e.className]);return g.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},g.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},re=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Os=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:re(e.h),s:re(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:re(o/2),a:re(r,2)}},lr=function(e){var t=Os(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Hn=function(e){var t=Os(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Rs=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:re(255*[r,a,s,s,c,r][l]),g:re(255*[c,r,r,a,s,s][l]),b:re(255*[s,s,c,r,r,a][l]),a:re(o,2)}},ks=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:re(60*(a<0?a+6:a)),s:re(i?s/i*100:0),v:re(i/255*100),a:o}},Ts=g.memo(function(e){var t=e.hue,n=e.onChange,r=Bt(["react-colorful__hue",e.className]);return g.createElement("div",{className:r},g.createElement(Ir,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:ut(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":re(t),"aria-valuemax":"360","aria-valuemin":"0"},g.createElement(Mr,{className:"react-colorful__hue-pointer",left:t/360,color:lr({h:t,s:100,v:100,a:1})})))}),Ps=g.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:lr({h:t.h,s:100,v:100,a:1})};return g.createElement("div",{className:"react-colorful__saturation",style:r},g.createElement(Ir,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:ut(t.s+100*o.left,0,100),v:ut(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+re(t.s)+"%, Brightness "+re(t.v)+"%"},g.createElement(Mr,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:lr(t)})))}),jr=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function As(e,t,n){var r=ar(n),o=f.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],a=f.useRef({color:t,hsva:i});f.useEffect(function(){if(!e.equal(t,a.current.color)){var l=e.toHsva(t);a.current={hsva:l,color:t},s(l)}},[t,e]),f.useEffect(function(){var l;jr(i,a.current.hsva)||e.equal(l=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},r(l))},[i,e,r]);var c=f.useCallback(function(l){s(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var Md=typeof window<"u"?f.useLayoutEffect:f.useEffect,jd=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},zo=new Map,Ds=function(e){Md(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!zo.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,zo.set(t,n);var r=jd();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Ld=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Dr(e,["className","colorModel","color","onChange"]),a=f.useRef(null);Ds(a);var c=As(n,o,i),l=c[0],u=c[1],d=Bt(["react-colorful",t]);return g.createElement("div",mt({},s,{ref:a,className:d}),g.createElement(Ps,{hsva:l,onChange:u}),g.createElement(Ts,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},Nd=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Hn(Object.assign({},n,{a:0}))+", "+Hn(Object.assign({},n,{a:1}))+")"},i=Bt(["react-colorful__alpha",t]),s=re(100*n.a);return g.createElement("div",{className:i},g.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),g.createElement(Ir,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:ut(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},g.createElement(Mr,{className:"react-colorful__alpha-pointer",left:n.a,color:Hn(n)})))},Bd=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Dr(e,["className","colorModel","color","onChange"]),a=f.useRef(null);Ds(a);var c=As(n,o,i),l=c[0],u=c[1],d=Bt(["react-colorful",t]);return g.createElement("div",mt({},s,{ref:a,className:d}),g.createElement(Ps,{hsva:l,onChange:u}),g.createElement(Ts,{hue:l.h,onChange:u}),g.createElement(Nd,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},zd={defaultColor:{r:0,g:0,b:0,a:1},toHsva:ks,fromHsva:Rs,equal:jr},Fd=function(e){return g.createElement(Bd,mt({},e,{colorModel:zd}))},Wd={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return ks({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=Rs(e)).r,g:t.g,b:t.b};var t},equal:jr},Hd=function(e){return g.createElement(Ld,mt({},e,{colorModel:Wd}))};function bt(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function vt(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Ud(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Gd(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=Kd.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Yd=[".DS_Store","Thumbs.db"];function qd(e){return bt(this,void 0,void 0,function(){return vt(this,function(t){return pn(e)&&Xd(e)?[2,ep(e.dataTransfer,e.type)]:Jd(e)?[2,Zd(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Qd(e)]:[2,[]]})})}function Xd(e){return pn(e.dataTransfer)}function Jd(e){return pn(e)&&pn(e.target)}function pn(e){return typeof e=="object"&&e!==null}function Zd(e){return ur(e.target.files).map(function(t){return zt(t)})}function Qd(e){return bt(this,void 0,void 0,function(){var t;return vt(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return zt(r)})]}})})}function ep(e,t){return bt(this,void 0,void 0,function(){var n,r;return vt(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=ur(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(tp))]):[3,2];case 1:return r=o.sent(),[2,Fo(Is(r))];case 2:return[2,Fo(ur(e.files).map(function(i){return zt(i)}))]}})})}function Fo(e){return e.filter(function(t){return Yd.indexOf(t.name)===-1})}function ur(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,Go(n)];if(e.sizen)return[!1,Go(n)]}return[!0,null]}function Ct(e){return e!=null}function gp(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(a){var c=Ls(a,n),l=Uo(c,1),u=l[0],d=Ns(a,r,o),p=Uo(d,1),h=p[0];return u&&h})}function hn(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Qt(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function qo(e){e.preventDefault()}function mp(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function bp(e){return e.indexOf("Edge/")!==-1}function vp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return mp(e)||bp(e)}function we(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ip(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Lr=f.forwardRef(function(e,t){var n=e.children,r=gn(e,Ep),o=Fs(r),i=o.open,s=gn(o,Cp);return f.useImperativeHandle(t,function(){return{open:i}},[i]),g.createElement(f.Fragment,null,n(V(V({},s),{},{open:i})))});Lr.displayName="Dropzone";var zs={disabled:!1,getFilesFromEvent:qd,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Lr.defaultProps=zs;Lr.propTypes={children:H.func,accept:H.oneOfType([H.string,H.arrayOf(H.string)]),multiple:H.bool,preventDropOnDocument:H.bool,noClick:H.bool,noKeyboard:H.bool,noDrag:H.bool,noDragEventsBubbling:H.bool,minSize:H.number,maxSize:H.number,maxFiles:H.number,disabled:H.bool,getFilesFromEvent:H.func,onFileDialogCancel:H.func,onFileDialogOpen:H.func,useFsAccessApi:H.bool,onDragEnter:H.func,onDragLeave:H.func,onDragOver:H.func,onDrop:H.func,onDropAccepted:H.func,onDropRejected:H.func,validator:H.func};var pr={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Fs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=V(V({},zs),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,c=t.maxFiles,l=t.onDragEnter,u=t.onDragLeave,d=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,b=t.onFileDialogCancel,v=t.onFileDialogOpen,y=t.useFsAccessApi,$=t.preventDropOnDocument,x=t.noClick,w=t.noKeyboard,C=t.noDrag,E=t.noDragEventsBubbling,_=t.validator,S=f.useMemo(function(){return typeof v=="function"?v:Jo},[v]),M=f.useMemo(function(){return typeof b=="function"?b:Jo},[b]),T=f.useRef(null),P=f.useRef(null),R=f.useReducer(Mp,pr),B=Vn(R,2),j=B[0],I=B[1],z=j.isFocused,L=j.isFileDialogActive,Y=j.draggedFiles,q=f.useRef(typeof window<"u"&&window.isSecureContext&&y&&yp()),Ee=function(){!q.current&&L&&setTimeout(function(){if(P.current){var N=P.current.files;N.length||(I({type:"closeDialog"}),M())}},300)};f.useEffect(function(){return window.addEventListener("focus",Ee,!1),function(){window.removeEventListener("focus",Ee,!1)}},[P,L,M,q]);var oe=f.useRef([]),Ft=function(N){T.current&&T.current.contains(N.target)||(N.preventDefault(),oe.current=[])};f.useEffect(function(){return $&&(document.addEventListener("dragover",qo,!1),document.addEventListener("drop",Ft,!1)),function(){$&&(document.removeEventListener("dragover",qo),document.removeEventListener("drop",Ft))}},[T,$]);var yt=f.useCallback(function(O){O.preventDefault(),O.persist(),Ue(O),oe.current=[].concat(Op(oe.current),[O.target]),Qt(O)&&Promise.resolve(o(O)).then(function(N){hn(O)&&!E||(I({draggedFiles:N,isDragActive:!0,type:"setDraggedFiles"}),l&&l(O))})},[o,l,E]),Wt=f.useCallback(function(O){O.preventDefault(),O.persist(),Ue(O);var N=Qt(O);if(N&&O.dataTransfer)try{O.dataTransfer.dropEffect="copy"}catch{}return N&&d&&d(O),!1},[d,E]),We=f.useCallback(function(O){O.preventDefault(),O.persist(),Ue(O);var N=oe.current.filter(function(ie){return T.current&&T.current.contains(ie)}),J=N.indexOf(O.target);J!==-1&&N.splice(J,1),oe.current=N,!(N.length>0)&&(I({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Qt(O)&&u&&u(O))},[T,u,E]),me=f.useCallback(function(O,N){var J=[],ie=[];O.forEach(function(be){var $t=Ls(be,n),et=Vn($t,2),kn=et[0],Tn=et[1],Pn=Ns(be,s,i),Gt=Vn(Pn,2),An=Gt[0],Dn=Gt[1],In=_?_(be):null;if(kn&&An&&!In)J.push(be);else{var Mn=[Tn,Dn];In&&(Mn=Mn.concat(In)),ie.push({file:be,errors:Mn.filter(function(oa){return oa})})}}),(!a&&J.length>1||a&&c>=1&&J.length>c)&&(J.forEach(function(be){ie.push({file:be,errors:[hp]})}),J.splice(0)),I({acceptedFiles:J,fileRejections:ie,type:"setFiles"}),p&&p(J,ie,N),ie.length>0&&m&&m(ie,N),J.length>0&&h&&h(J,N)},[I,a,n,s,i,c,p,h,m,_]),He=f.useCallback(function(O){O.preventDefault(),O.persist(),Ue(O),oe.current=[],Qt(O)&&Promise.resolve(o(O)).then(function(N){hn(O)&&!E||me(N,O)}),I({type:"reset"})},[o,me,E]),Me=f.useCallback(function(){if(q.current){I({type:"openDialog"}),S();var O={multiple:a,types:wp(n)};window.showOpenFilePicker(O).then(function(N){return o(N)}).then(function(N){me(N,null),I({type:"closeDialog"})}).catch(function(N){$p(N)?(M(N),I({type:"closeDialog"})):xp(N)&&(q.current=!1,P.current&&(P.current.value=null,P.current.click()))});return}P.current&&(I({type:"openDialog"}),S(),P.current.value=null,P.current.click())},[I,S,M,y,me,n,a]),Ve=f.useCallback(function(O){!T.current||!T.current.isEqualNode(O.target)||(O.key===" "||O.key==="Enter"||O.keyCode===32||O.keyCode===13)&&(O.preventDefault(),Me())},[T,Me]),Ht=f.useCallback(function(){I({type:"focus"})},[]),Vt=f.useCallback(function(){I({type:"blur"})},[]),Ut=f.useCallback(function(){x||(vp()?setTimeout(Me,0):Me())},[x,Me]),je=function(N){return r?null:N},wt=function(N){return w?null:je(N)},ye=function(N){return C?null:je(N)},Ue=function(N){E&&N.stopPropagation()},Sn=f.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=O.refKey,J=N===void 0?"ref":N,ie=O.role,be=O.onKeyDown,$t=O.onFocus,et=O.onBlur,kn=O.onClick,Tn=O.onDragEnter,Pn=O.onDragOver,Gt=O.onDragLeave,An=O.onDrop,Dn=gn(O,_p);return V(V(dr({onKeyDown:wt(we(be,Ve)),onFocus:wt(we($t,Ht)),onBlur:wt(we(et,Vt)),onClick:je(we(kn,Ut)),onDragEnter:ye(we(Tn,yt)),onDragOver:ye(we(Pn,Wt)),onDragLeave:ye(we(Gt,We)),onDrop:ye(we(An,He)),role:typeof ie=="string"&&ie!==""?ie:"button"},J,T),!r&&!w?{tabIndex:0}:{}),Dn)}},[T,Ve,Ht,Vt,Ut,yt,Wt,We,He,w,C,r]),On=f.useCallback(function(O){O.stopPropagation()},[]),Rn=f.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=O.refKey,J=N===void 0?"ref":N,ie=O.onChange,be=O.onClick,$t=gn(O,Sp),et=dr({accept:n,multiple:a,type:"file",style:{display:"none"},onChange:je(we(ie,He)),onClick:je(we(be,On)),tabIndex:-1},J,P);return V(V({},et),$t)}},[P,n,a,He,r]),Kt=Y.length,Ke=Kt>0&&gp({files:Y,accept:n,minSize:s,maxSize:i,multiple:a,maxFiles:c}),ra=Kt>0&&!Ke;return V(V({},j),{},{isDragAccept:Ke,isDragReject:ra,isFocused:z&&!r,getRootProps:Sn,getInputProps:Rn,rootRef:T,inputRef:P,open:je(Me)})}function Mp(e,t){switch(t.type){case"focus":return V(V({},e),{},{isFocused:!0});case"blur":return V(V({},e),{},{isFocused:!1});case"openDialog":return V(V({},pr),{},{isFileDialogActive:!0});case"closeDialog":return V(V({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return V(V({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return V(V({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return V({},pr);default:return e}}function Jo(){}function jp(e){let t;const n=new Set,r=(l,u)=>{const d=typeof l=="function"?l(t):l;if(d!==t){const p=t;t=u?d:Object.assign({},t,d),n.forEach(h=>h(t,p))}},o=()=>t,i=(l,u=o,d=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let p=u(t);function h(){const m=u(t);if(!d(p,m)){const b=p;l(p=m,b)}}return n.add(h),()=>n.delete(h)},c={setState:r,getState:o,subscribe:(l,u,d)=>u||d?i(l,u,d):(n.add(l),()=>n.delete(l)),destroy:()=>n.clear()};return t=e(r,o,c),c}const Lp=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Zo=Lp?f.useEffect:f.useLayoutEffect;function Np(e){const t=typeof e=="function"?jp(e):e,n=(r=t.getState,o=Object.is)=>{const[,i]=f.useReducer(v=>v+1,0),s=t.getState(),a=f.useRef(s),c=f.useRef(r),l=f.useRef(o),u=f.useRef(!1),d=f.useRef();d.current===void 0&&(d.current=r(s));let p,h=!1;(a.current!==s||c.current!==r||l.current!==o||u.current)&&(p=r(s),h=!o(d.current,p)),Zo(()=>{h&&(d.current=p),a.current=s,c.current=r,l.current=o,u.current=!1});const m=f.useRef(s);Zo(()=>{const v=()=>{try{const $=t.getState(),x=c.current($);l.current(d.current,x)||(a.current=$,d.current=x,i())}catch{u.current=!0,i()}},y=t.subscribe(v);return t.getState()!==m.current&&v(),y},[]);const b=h?p:d.current;return f.useDebugValue(b),b};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const o=r.length<=0;return{value:r.shift(),done:o}}}},n}const Bp=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(s,a,c)=>{let l=s;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let d=s(r.getState());l=p=>{const h=s(p);if(!u(d,h)){const m=d;a(d=h,m)}},c!=null&&c.fireImmediately&&a(d,d)}return o(l)},e(t,n,r)};/*! diff --git a/assets/Twitch-Cyqq1VNM.js b/assets/Twitch-DFcW1Puy.js similarity index 95% rename from assets/Twitch-Cyqq1VNM.js rename to assets/Twitch-DFcW1Puy.js index ba2bf31d..91cde6ca 100644 --- a/assets/Twitch-Cyqq1VNM.js +++ b/assets/Twitch-DFcW1Puy.js @@ -1 +1 @@ -import{g as w,r as D}from"./index-Bjk_45MO.js";import{u as C,p as N}from"./index-BgAgt_Xs.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{g as w,r as D}from"./index-Cei2V9tG.js";import{u as C,p as N}from"./index-BdBaDIIz.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/assets/Upload-DMNCn73R.js b/assets/Upload-DQPhAuc_.js similarity index 99% rename from assets/Upload-DMNCn73R.js rename to assets/Upload-DQPhAuc_.js index f88ef0c4..1b908122 100644 --- a/assets/Upload-DMNCn73R.js +++ b/assets/Upload-DQPhAuc_.js @@ -1,4 +1,4 @@ -import{d as i,a5 as $,a2 as L,a6 as U,j as R,r as X,a3 as Z}from"./index-Bjk_45MO.js";var F={};(function(s){var m=i&&i.__makeTemplateObject||function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n},l=i&&i.__assign||function(){return l=Object.assign||function(n){for(var e,r=1,t=arguments.length;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; +import{g,r as v}from"./index-Cei2V9tG.js";import{u as b,p as O}from"./index-BdBaDIIz.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; diff --git a/assets/Vimeo-D59it0rm.js b/assets/Vimeo-C0-Opy6v.js similarity index 96% rename from assets/Vimeo-D59it0rm.js rename to assets/Vimeo-C0-Opy6v.js index 49a13f22..15d987cb 100644 --- a/assets/Vimeo-D59it0rm.js +++ b/assets/Vimeo-C0-Opy6v.js @@ -1 +1 @@ -import{g as d,r as f}from"./index-Bjk_45MO.js";import{u as m,p as _}from"./index-BgAgt_Xs.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; +import{g as d,r as f}from"./index-Cei2V9tG.js";import{u as m,p as _}from"./index-BdBaDIIz.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; diff --git a/assets/Wistia-DI-Pvrso.js b/assets/Wistia-DjI_HIB4.js similarity index 96% rename from assets/Wistia-DI-Pvrso.js rename to assets/Wistia-DjI_HIB4.js index 1a95f63c..df3d4c33 100644 --- a/assets/Wistia-DI-Pvrso.js +++ b/assets/Wistia-DjI_HIB4.js @@ -1 +1 @@ -import{g as m,r as g}from"./index-Bjk_45MO.js";import{u as v,p as w}from"./index-BgAgt_Xs.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; +import{g as m,r as g}from"./index-Cei2V9tG.js";import{u as v,p as w}from"./index-BdBaDIIz.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; diff --git a/assets/YouTube-DcwNvjho.js b/assets/YouTube-Cu6iADDh.js similarity index 97% rename from assets/YouTube-DcwNvjho.js rename to assets/YouTube-Cu6iADDh.js index cd22eec9..4187a86f 100644 --- a/assets/YouTube-DcwNvjho.js +++ b/assets/YouTube-Cu6iADDh.js @@ -1 +1 @@ -import{g as U,r as I}from"./index-Bjk_45MO.js";import{u as L,p as Y}from"./index-BgAgt_Xs.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; +import{g as U,r as I}from"./index-Cei2V9tG.js";import{u as L,p as Y}from"./index-BdBaDIIz.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; diff --git a/assets/a11y-B_OcGQFt.js b/assets/a11y-B_OcGQFt.js new file mode 100644 index 00000000..756374ef --- /dev/null +++ b/assets/a11y-B_OcGQFt.js @@ -0,0 +1 @@ +import{e as U,c as P,m as o,b as j}from"./swiper-react-Dxth3Uzi.js";function G(g,e,m,c){return g.params.createElements&&Object.keys(c).forEach(d=>{if(!m[d]&&m.auto===!0){let f=U(g.el,`.${c[d]}`)[0];f||(f=P("div",c[d]),f.className=c[d],g.el.append(f)),m[d]=f,e[d]=f}}),m}function V(g){let{swiper:e,extendParams:m,on:c,emit:d}=g;m({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function f(n){let s;return n&&typeof n=="string"&&e.isElement&&(s=e.el.querySelector(n),s)?s:(n&&(typeof n=="string"&&(s=[...document.querySelectorAll(n)]),e.params.uniqueNavElements&&typeof n=="string"&&s.length>1&&e.el.querySelectorAll(n).length===1&&(s=e.el.querySelector(n))),n&&!s?n:s)}function b(n,s){const l=e.params.navigation;n=o(n),n.forEach(r=>{r&&(r.classList[s?"add":"remove"](...l.disabledClass.split(" ")),r.tagName==="BUTTON"&&(r.disabled=s),e.params.watchOverflow&&e.enabled&&r.classList[e.isLocked?"add":"remove"](l.lockClass))})}function u(){const{nextEl:n,prevEl:s}=e.navigation;if(e.params.loop){b(s,!1),b(n,!1);return}b(s,e.isBeginning&&!e.params.rewind),b(n,e.isEnd&&!e.params.rewind)}function w(n){n.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),d("navigationPrev"))}function h(n){n.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),d("navigationNext"))}function x(){const n=e.params.navigation;if(e.params.navigation=G(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(n.nextEl||n.prevEl))return;let s=f(n.nextEl),l=f(n.prevEl);Object.assign(e.navigation,{nextEl:s,prevEl:l}),s=o(s),l=o(l);const r=(p,E)=>{p&&p.addEventListener("click",E==="next"?h:w),!e.enabled&&p&&p.classList.add(...n.lockClass.split(" "))};s.forEach(p=>r(p,"next")),l.forEach(p=>r(p,"prev"))}function k(){let{nextEl:n,prevEl:s}=e.navigation;n=o(n),s=o(s);const l=(r,p)=>{r.removeEventListener("click",p==="next"?h:w),r.classList.remove(...e.params.navigation.disabledClass.split(" "))};n.forEach(r=>l(r,"next")),s.forEach(r=>l(r,"prev"))}c("init",()=>{e.params.navigation.enabled===!1?M():(x(),u())}),c("toEdge fromEdge lock unlock",()=>{u()}),c("destroy",()=>{k()}),c("enable disable",()=>{let{nextEl:n,prevEl:s}=e.navigation;if(n=o(n),s=o(s),e.enabled){u();return}[...n,...s].filter(l=>!!l).forEach(l=>l.classList.add(e.params.navigation.lockClass))}),c("click",(n,s)=>{let{nextEl:l,prevEl:r}=e.navigation;l=o(l),r=o(r);const p=s.target;if(e.params.navigation.hideOnClick&&!r.includes(p)&&!l.includes(p)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===p||e.pagination.el.contains(p)))return;let E;l.length?E=l[0].classList.contains(e.params.navigation.hiddenClass):r.length&&(E=r[0].classList.contains(e.params.navigation.hiddenClass)),d(E===!0?"navigationShow":"navigationHide"),[...l,...r].filter(y=>!!y).forEach(y=>y.classList.toggle(e.params.navigation.hiddenClass))}});const L=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),x(),u()},M=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),k()};Object.assign(e.navigation,{enable:L,disable:M,update:u,init:x,destroy:k})}function D(g){return g===void 0&&(g=""),`.${g.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function _(g){let{swiper:e,extendParams:m,on:c}=g;m({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let d=null;function f(i){const a=d;a.length!==0&&(a.innerHTML="",a.innerHTML=i)}function b(i){i===void 0&&(i=16);const a=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(i).replace(/x/g,a)}function u(i){i=o(i),i.forEach(a=>{a.setAttribute("tabIndex","0")})}function w(i){i=o(i),i.forEach(a=>{a.setAttribute("tabIndex","-1")})}function h(i,a){i=o(i),i.forEach(t=>{t.setAttribute("role",a)})}function x(i,a){i=o(i),i.forEach(t=>{t.setAttribute("aria-roledescription",a)})}function k(i,a){i=o(i),i.forEach(t=>{t.setAttribute("aria-controls",a)})}function L(i,a){i=o(i),i.forEach(t=>{t.setAttribute("aria-label",a)})}function M(i,a){i=o(i),i.forEach(t=>{t.setAttribute("id",a)})}function n(i,a){i=o(i),i.forEach(t=>{t.setAttribute("aria-live",a)})}function s(i){i=o(i),i.forEach(a=>{a.setAttribute("aria-disabled",!0)})}function l(i){i=o(i),i.forEach(a=>{a.setAttribute("aria-disabled",!1)})}function r(i){if(i.keyCode!==13&&i.keyCode!==32)return;const a=e.params.a11y,t=i.target;e.pagination&&e.pagination.el&&(t===e.pagination.el||e.pagination.el.contains(i.target))&&!i.target.matches(D(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&t===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?f(a.lastSlideMessage):f(a.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&t===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?f(a.firstSlideMessage):f(a.prevSlideMessage)),e.pagination&&t.matches(D(e.params.pagination.bulletClass))&&t.click())}function p(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:i,prevEl:a}=e.navigation;a&&(e.isBeginning?(s(a),w(a)):(l(a),u(a))),i&&(e.isEnd?(s(i),w(i)):(l(i),u(i)))}function E(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function y(){return E()&&e.params.pagination.clickable}function q(){const i=e.params.a11y;E()&&e.pagination.bullets.forEach(a=>{e.params.pagination.clickable&&(u(a),e.params.pagination.renderBullet||(h(a,"button"),L(a,i.paginationBulletMessage.replace(/\{\{index\}\}/,j(a)+1)))),a.matches(D(e.params.pagination.bulletActiveClass))?a.setAttribute("aria-current","true"):a.removeAttribute("aria-current")})}const R=(i,a,t)=>{u(i),i.tagName!=="BUTTON"&&(h(i,"button"),i.addEventListener("keydown",r)),L(i,t),k(i,a)},B=()=>{e.a11y.clicked=!0},I=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},T=i=>{if(e.a11y.clicked)return;const a=i.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!a||!e.slides.includes(a))return;const t=e.slides.indexOf(a)===e.activeIndex,v=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(a);t||v||i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(a),0))},O=()=>{const i=e.params.a11y;i.itemRoleDescriptionMessage&&x(e.slides,i.itemRoleDescriptionMessage),i.slideRole&&h(e.slides,i.slideRole);const a=e.slides.length;i.slideLabelMessage&&e.slides.forEach((t,v)=>{const N=e.params.loop?parseInt(t.getAttribute("data-swiper-slide-index"),10):v,C=i.slideLabelMessage.replace(/\{\{index\}\}/,N+1).replace(/\{\{slidesLength\}\}/,a);L(t,C)})},F=()=>{const i=e.params.a11y;e.el.append(d);const a=e.el;i.containerRoleDescriptionMessage&&x(a,i.containerRoleDescriptionMessage),i.containerMessage&&L(a,i.containerMessage);const t=e.wrapperEl,v=i.id||t.getAttribute("id")||`swiper-wrapper-${b(16)}`,N=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";M(t,v),n(t,N),O();let{nextEl:C,prevEl:A}=e.navigation?e.navigation:{};C=o(C),A=o(A),C&&C.forEach(S=>R(S,v,i.nextSlideMessage)),A&&A.forEach(S=>R(S,v,i.prevSlideMessage)),y()&&o(e.pagination.el).forEach($=>{$.addEventListener("keydown",r)}),e.el.addEventListener("focus",T,!0),e.el.addEventListener("pointerdown",B,!0),e.el.addEventListener("pointerup",I,!0)};function H(){d&&d.remove();let{nextEl:i,prevEl:a}=e.navigation?e.navigation:{};i=o(i),a=o(a),i&&i.forEach(t=>t.removeEventListener("keydown",r)),a&&a.forEach(t=>t.removeEventListener("keydown",r)),y()&&o(e.pagination.el).forEach(v=>{v.removeEventListener("keydown",r)}),e.el.removeEventListener("focus",T,!0),e.el.removeEventListener("pointerdown",B,!0),e.el.removeEventListener("pointerup",I,!0)}c("beforeInit",()=>{d=P("span",e.params.a11y.notificationClass),d.setAttribute("aria-live","assertive"),d.setAttribute("aria-atomic","true")}),c("afterInit",()=>{e.params.a11y.enabled&&F()}),c("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&O()}),c("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&p()}),c("paginationUpdate",()=>{e.params.a11y.enabled&&q()}),c("destroy",()=>{e.params.a11y.enabled&&H()})}export{_ as A,V as N,G as a,D as c}; diff --git a/assets/index-Be1jhuqX.js b/assets/index-3vq_xil8.js similarity index 94% rename from assets/index-Be1jhuqX.js rename to assets/index-3vq_xil8.js index 97982e96..64e09b66 100644 --- a/assets/index-Be1jhuqX.js +++ b/assets/index-3vq_xil8.js @@ -1,4 +1,4 @@ -import{b as E,E as M,r as n,h as y,j as e,q as b,w as c,L as m,aO as N,s as d,D as x,n as o,T as v,f as u,i as L,l as j,aK as C,J as w,ar as I,N as B,ax as R,ay as p,az as _,aA as $,aB as z,o as D,C as A}from"./index-Bjk_45MO.js";import{P as W}from"./index-DyNx7jEp.js";import{a as q}from"./PricingCard-4UWE4R3V.js";import{P as G}from"./index-D1KheDiE.js";import{D as O}from"./index-Bbp3FiD2.js";import{B as H}from"./index-DNvp70I6.js";import{a as U}from"./ResponsiveImage-wYxl3kWJ.js";import{C as F,T as J}from"./index-Cpuo6Yf1.js";const K=E.createContext({}),V=({children:a})=>{const{id:s}=M(),{fetchProduct:t}=n.useContext(y.EscolaLMSContext);return n.useEffect(()=>{s&&t(Number(s))},[t,s]),e.jsx(K.Provider,{value:{},children:a})};var i=(a=>(a.Consultation="App\\Models\\Consultation",a.StationaryEvent="App\\Models\\StationaryEvent",a.Course="App\\Models\\Course",a.Webinar="App\\Models\\Webinar",a))(i||{});const Q=a=>a.reduce((s,t)=>{const r=t.productable_type,l=s[r]??[];return{...s,[r]:[...l,t]}},{}),X=b(c.Col)` +import{b as E,E as M,r as n,h as y,j as e,q as b,w as c,L as m,aO as N,s as d,D as x,n as o,T as v,f as u,i as L,l as j,aK as C,J as w,ar as I,N as B,ax as R,ay as p,az as _,aA as $,aB as z,o as D,C as A}from"./index-Cei2V9tG.js";import{P as W}from"./index-C98yo6RU.js";import{a as q}from"./PricingCard-YjgD6nmP.js";import{P as G}from"./index-Cm0iCbGi.js";import{D as O}from"./index-B089I9zC.js";import{B as H}from"./index-rOJCcL2u.js";import{a as U}from"./ResponsiveImage-CUm6fM86.js";import{C as F,T as J}from"./index-D7izAFJ6.js";const K=E.createContext({}),V=({children:a})=>{const{id:s}=M(),{fetchProduct:t}=n.useContext(y.EscolaLMSContext);return n.useEffect(()=>{s&&t(Number(s))},[t,s]),e.jsx(K.Provider,{value:{},children:a})};var i=(a=>(a.Consultation="App\\Models\\Consultation",a.StationaryEvent="App\\Models\\StationaryEvent",a.Course="App\\Models\\Course",a.Webinar="App\\Models\\Webinar",a))(i||{});const Q=a=>a.reduce((s,t)=>{const r=t.productable_type,l=s[r]??[];return{...s,[r]:[...l,t]}},{}),X=b(c.Col)` border: 1px solid ${({theme:a})=>a.primaryColor}; margin: 4px auto; padding: 4px; diff --git a/assets/index-Bbp3FiD2.js b/assets/index-B089I9zC.js similarity index 78% rename from assets/index-Bbp3FiD2.js rename to assets/index-B089I9zC.js index e80fc343..5dd4cac9 100644 --- a/assets/index-Bbp3FiD2.js +++ b/assets/index-B089I9zC.js @@ -1,4 +1,4 @@ -import{q as s,n as t,j as e}from"./index-Bjk_45MO.js";const o=s.div` +import{q as s,n as t,j as e}from"./index-Cei2V9tG.js";const o=s.div` width: 100%; left: 0; position: ${t?"fixed":"sticky"}; diff --git a/assets/index-QTgNTY3Y.js b/assets/index-B0FJe2nf.js similarity index 92% rename from assets/index-QTgNTY3Y.js rename to assets/index-B0FJe2nf.js index ace47bb6..8a77d3a6 100644 --- a/assets/index-QTgNTY3Y.js +++ b/assets/index-B0FJe2nf.js @@ -1 +1 @@ -import{aP as C,f as I,r as s,D,j as t,J as r,aQ as h,aR as E,aS as M,aT as S,aU as b,aV as B}from"./index-Bjk_45MO.js";import{P as v}from"./index-CaBsIUEq.js";import"./index-waE41t0D.js";var w=C();const _=()=>{var u;const{t:o}=I(),[n,p]=s.useState(1),[l,f]=s.useState(2),y=n<=1,k=n>=l,[a,c]=s.useState({sort:"Ascending",createdBy:"Personal",done:!0}),{fetchTasks:x,fetchProgress:P,progress:i,fetchProgram:d,tasks:g}=s.useContext(D.EscolaLMSContext),j=[{id:1,content:t.jsx(r.IconText,{icon:a.done===!0?t.jsx(h,{}):t.jsx(E,{}),text:a.done===!0?o("MyProfilePage.HideDone"):o("MyProfilePage.ShowDone"),onClick:()=>c(e=>({...e,done:!e.done}))})}],m=[{id:0,content:t.jsx(r.IconText,{icon:t.jsx(M,{}),text:o("MyProfilePage.Ascending"),onClick:()=>c(e=>({...e,sort:"Ascending"}))})},{id:1,content:t.jsx(r.IconText,{icon:t.jsx(S,{}),text:o("MyProfilePage.Descending"),onClick:()=>c(e=>({...e,sort:"Descending"}))})}],T=[{id:0,content:t.jsx(r.IconText,{icon:t.jsx(b,{}),text:o("MyProfilePage.Personal"),onClick:()=>c(e=>({...e,createdBy:"Personal"}))})},{id:1,content:t.jsx(r.IconText,{icon:t.jsx(B,{}),text:o("MyProfilePage.Incoming"),onClick:()=>c(e=>({...e,createdBy:"Incoming"}))})}];return s.useEffect(()=>{var e;x({page:n,per_page:25}),f(Number((e=g.list)==null?void 0:e.meta.last_page)),P()},[P,x,n,(u=g.list)==null?void 0:u.meta.last_page]),s.useEffect(()=>{i.value&&i.value.forEach(e=>d(e.course.id))},[i,d]),t.jsx(v,{title:o("MyProfilePage.MyTasks"),children:t.jsx(w.TasksComponent,{taskShowAction:{options:j,showDone:a.done},sortOptions:{options:m,type:a.sort},createBy:{options:T,type:a.createdBy},tasksPagination:{previousDisabled:y,nextDisabled:k,currentPage:n,lastPage:l,setCurrentPage:p}})})};export{_ as default}; +import{aP as C,f as I,r as s,D,j as t,J as r,aQ as h,aR as E,aS as M,aT as S,aU as b,aV as B}from"./index-Cei2V9tG.js";import{P as v}from"./index-BstSZKJJ.js";import"./index-CAbbcEiW.js";var w=C();const _=()=>{var u;const{t:o}=I(),[n,p]=s.useState(1),[l,f]=s.useState(2),y=n<=1,k=n>=l,[a,c]=s.useState({sort:"Ascending",createdBy:"Personal",done:!0}),{fetchTasks:x,fetchProgress:P,progress:i,fetchProgram:d,tasks:g}=s.useContext(D.EscolaLMSContext),j=[{id:1,content:t.jsx(r.IconText,{icon:a.done===!0?t.jsx(h,{}):t.jsx(E,{}),text:a.done===!0?o("MyProfilePage.HideDone"):o("MyProfilePage.ShowDone"),onClick:()=>c(e=>({...e,done:!e.done}))})}],m=[{id:0,content:t.jsx(r.IconText,{icon:t.jsx(M,{}),text:o("MyProfilePage.Ascending"),onClick:()=>c(e=>({...e,sort:"Ascending"}))})},{id:1,content:t.jsx(r.IconText,{icon:t.jsx(S,{}),text:o("MyProfilePage.Descending"),onClick:()=>c(e=>({...e,sort:"Descending"}))})}],T=[{id:0,content:t.jsx(r.IconText,{icon:t.jsx(b,{}),text:o("MyProfilePage.Personal"),onClick:()=>c(e=>({...e,createdBy:"Personal"}))})},{id:1,content:t.jsx(r.IconText,{icon:t.jsx(B,{}),text:o("MyProfilePage.Incoming"),onClick:()=>c(e=>({...e,createdBy:"Incoming"}))})}];return s.useEffect(()=>{var e;x({page:n,per_page:25}),f(Number((e=g.list)==null?void 0:e.meta.last_page)),P()},[P,x,n,(u=g.list)==null?void 0:u.meta.last_page]),s.useEffect(()=>{i.value&&i.value.forEach(e=>d(e.course.id))},[i,d]),t.jsx(v,{title:o("MyProfilePage.MyTasks"),children:t.jsx(w.TasksComponent,{taskShowAction:{options:j,showDone:a.done},sortOptions:{options:m,type:a.sort},createBy:{options:T,type:a.createdBy},tasksPagination:{previousDisabled:y,nextDisabled:k,currentPage:n,lastPage:l,setCurrentPage:p}})})};export{_ as default}; diff --git a/assets/index-B4TguqFb.js b/assets/index-B4TguqFb.js new file mode 100644 index 00000000..32338d8c --- /dev/null +++ b/assets/index-B4TguqFb.js @@ -0,0 +1,196 @@ +import{d as H,r as F,q as Y,b as ke,f as ie,j as C,s as Ce,n as Me,cG as he,D as be,m as K,an as Te,i as Oe,l as ge,C as Se,w as De}from"./index-Cei2V9tG.js";import{m as X,d as Re,b as me,f as Ee,a as _e,S as Le}from"./swiper-react-Dxth3Uzi.js";import{c as Q,a as Ie,N as $e,A as je}from"./a11y-B_OcGQFt.js";import{a as xe}from"./ResponsiveImage-CUm6fM86.js";function Ae(n){let{swiper:t,extendParams:p,on:e,emit:a}=n;const s="swiper-pagination";p({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:r=>r,formatFractionTotal:r=>r,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),t.pagination={el:null,bullets:[]};let h,c=0;function u(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function w(r,i){const{bulletActiveClass:f}=t.params.pagination;r&&(r=r[`${i==="prev"?"previous":"next"}ElementSibling`],r&&(r.classList.add(`${f}-${i}`),r=r[`${i==="prev"?"previous":"next"}ElementSibling`],r&&r.classList.add(`${f}-${i}-${i}`)))}function b(r){const i=r.target.closest(Q(t.params.pagination.bulletClass));if(!i)return;r.preventDefault();const f=me(i)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===f)return;t.slideToLoop(f)}else t.slideTo(f)}function m(){const r=t.rtl,i=t.params.pagination;if(u())return;let f=t.pagination.el;f=X(f);let O,A;const L=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,I=t.params.loop?Math.ceil(L/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(A=t.previousRealIndex||0,O=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(O=t.snapIndex,A=t.previousSnapIndex):(A=t.previousIndex||0,O=t.activeIndex||0),i.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const R=t.pagination.bullets;let U,E,l;if(i.dynamicBullets&&(h=Re(R[0],t.isHorizontal()?"width":"height",!0),f.forEach(o=>{o.style[t.isHorizontal()?"width":"height"]=`${h*(i.dynamicMainBullets+4)}px`}),i.dynamicMainBullets>1&&A!==void 0&&(c+=O-(A||0),c>i.dynamicMainBullets-1?c=i.dynamicMainBullets-1:c<0&&(c=0)),U=Math.max(O-c,0),E=U+(Math.min(R.length,i.dynamicMainBullets)-1),l=(E+U)/2),R.forEach(o=>{const d=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(g=>`${i.bulletActiveClass}${g}`)].map(g=>typeof g=="string"&&g.includes(" ")?g.split(" "):g).flat();o.classList.remove(...d)}),f.length>1)R.forEach(o=>{const d=me(o);d===O?o.classList.add(...i.bulletActiveClass.split(" ")):t.isElement&&o.setAttribute("part","bullet"),i.dynamicBullets&&(d>=U&&d<=E&&o.classList.add(...`${i.bulletActiveClass}-main`.split(" ")),d===U&&w(o,"prev"),d===E&&w(o,"next"))});else{const o=R[O];if(o&&o.classList.add(...i.bulletActiveClass.split(" ")),t.isElement&&R.forEach((d,g)=>{d.setAttribute("part",g===O?"bullet-active":"bullet")}),i.dynamicBullets){const d=R[U],g=R[E];for(let x=U;x<=E;x+=1)R[x]&&R[x].classList.add(...`${i.bulletActiveClass}-main`.split(" "));w(d,"prev"),w(g,"next")}}if(i.dynamicBullets){const o=Math.min(R.length,i.dynamicMainBullets+4),d=(h*o-h)/2-l*h,g=r?"right":"left";R.forEach(x=>{x.style[t.isHorizontal()?g:"top"]=`${d}px`})}}f.forEach((R,U)=>{if(i.type==="fraction"&&(R.querySelectorAll(Q(i.currentClass)).forEach(E=>{E.textContent=i.formatFractionCurrent(O+1)}),R.querySelectorAll(Q(i.totalClass)).forEach(E=>{E.textContent=i.formatFractionTotal(I)})),i.type==="progressbar"){let E;i.progressbarOpposite?E=t.isHorizontal()?"vertical":"horizontal":E=t.isHorizontal()?"horizontal":"vertical";const l=(O+1)/I;let o=1,d=1;E==="horizontal"?o=l:d=l,R.querySelectorAll(Q(i.progressbarFillClass)).forEach(g=>{g.style.transform=`translate3d(0,0,0) scaleX(${o}) scaleY(${d})`,g.style.transitionDuration=`${t.params.speed}ms`})}i.type==="custom"&&i.renderCustom?(R.innerHTML=i.renderCustom(t,O+1,I),U===0&&a("paginationRender",R)):(U===0&&a("paginationRender",R),a("paginationUpdate",R)),t.params.watchOverflow&&t.enabled&&R.classList[t.isLocked?"add":"remove"](i.lockClass)})}function v(){const r=t.params.pagination;if(u())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let f=t.pagination.el;f=X(f);let O="";if(r.type==="bullets"){let A=t.params.loop?Math.ceil(i/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&A>i&&(A=i);for(let L=0;L`}r.type==="fraction"&&(r.renderFraction?O=r.renderFraction.call(t,r.currentClass,r.totalClass):O=` / `),r.type==="progressbar"&&(r.renderProgressbar?O=r.renderProgressbar.call(t,r.progressbarFillClass):O=``),t.pagination.bullets=[],f.forEach(A=>{r.type!=="custom"&&(A.innerHTML=O||""),r.type==="bullets"&&t.pagination.bullets.push(...A.querySelectorAll(Q(r.bulletClass)))}),r.type!=="custom"&&a("paginationRender",f[0])}function D(){t.params.pagination=Ie(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const r=t.params.pagination;if(!r.el)return;let i;typeof r.el=="string"&&t.isElement&&(i=t.el.querySelector(r.el)),!i&&typeof r.el=="string"&&(i=[...document.querySelectorAll(r.el)]),i||(i=r.el),!(!i||i.length===0)&&(t.params.uniqueNavElements&&typeof r.el=="string"&&Array.isArray(i)&&i.length>1&&(i=[...t.el.querySelectorAll(r.el)],i.length>1&&(i=i.filter(f=>Ee(f,".swiper")[0]===t.el)[0])),Array.isArray(i)&&i.length===1&&(i=i[0]),Object.assign(t.pagination,{el:i}),i=X(i),i.forEach(f=>{r.type==="bullets"&&r.clickable&&f.classList.add(...(r.clickableClass||"").split(" ")),f.classList.add(r.modifierClass+r.type),f.classList.add(t.isHorizontal()?r.horizontalClass:r.verticalClass),r.type==="bullets"&&r.dynamicBullets&&(f.classList.add(`${r.modifierClass}${r.type}-dynamic`),c=0,r.dynamicMainBullets<1&&(r.dynamicMainBullets=1)),r.type==="progressbar"&&r.progressbarOpposite&&f.classList.add(r.progressbarOppositeClass),r.clickable&&f.addEventListener("click",b),t.enabled||f.classList.add(r.lockClass)}))}function k(){const r=t.params.pagination;if(u())return;let i=t.pagination.el;i&&(i=X(i),i.forEach(f=>{f.classList.remove(r.hiddenClass),f.classList.remove(r.modifierClass+r.type),f.classList.remove(t.isHorizontal()?r.horizontalClass:r.verticalClass),r.clickable&&(f.classList.remove(...(r.clickableClass||"").split(" ")),f.removeEventListener("click",b))})),t.pagination.bullets&&t.pagination.bullets.forEach(f=>f.classList.remove(...r.bulletActiveClass.split(" ")))}e("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const r=t.params.pagination;let{el:i}=t.pagination;i=X(i),i.forEach(f=>{f.classList.remove(r.horizontalClass,r.verticalClass),f.classList.add(t.isHorizontal()?r.horizontalClass:r.verticalClass)})}),e("init",()=>{t.params.pagination.enabled===!1?z():(D(),v(),m())}),e("activeIndexChange",()=>{typeof t.snapIndex>"u"&&m()}),e("snapIndexChange",()=>{m()}),e("snapGridLengthChange",()=>{v(),m()}),e("destroy",()=>{k()}),e("enable disable",()=>{let{el:r}=t.pagination;r&&(r=X(r),r.forEach(i=>i.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),e("lock unlock",()=>{m()}),e("click",(r,i)=>{const f=i.target,O=X(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&O&&O.length>0&&!f.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&f===t.navigation.nextEl||t.navigation.prevEl&&f===t.navigation.prevEl))return;const A=O[0].classList.contains(t.params.pagination.hiddenClass);a(A===!0?"paginationShow":"paginationHide"),O.forEach(L=>L.classList.toggle(t.params.pagination.hiddenClass))}});const $=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:r}=t.pagination;r&&(r=X(r),r.forEach(i=>i.classList.remove(t.params.pagination.paginationDisabledClass))),D(),v(),m()},z=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:r}=t.pagination;r&&(r=X(r),r.forEach(i=>i.classList.add(t.params.pagination.paginationDisabledClass))),k()};Object.assign(t.pagination,{enable:$,disable:z,render:v,update:m,init:D,destroy:k})}var re={},se={},oe={},ae={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.Direction=void 0,function(t){t.Right="to right",t.Left="to left",t.Down="to bottom",t.Up="to top"}(n.Direction||(n.Direction={}))})(ae);(function(n){var t=H&&H.__spreadArray||function(l,o,d){if(d||arguments.length===2)for(var g=0,x=o.length,y;gl)return P;if(_&&_g)return g;if(l=d)throw new RangeError("min (".concat(o,") is equal/bigger than max (").concat(d,")"));if(ld)throw new RangeError("value (".concat(l,") is bigger than max (").concat(d,")"))}n.checkBoundaries=b;function m(l,o,d){return ld?d:l}n.checkValuesAgainstBoundaries=m;function v(l){if(!(l.length<2)&&!l.slice(1).every(function(o,d){return l[d]<=o}))throw new RangeError("values={[".concat(l,"]} needs to be sorted when allowOverlap={false}"))}n.checkInitialOverlap=v;function D(l){var o=window.getComputedStyle(l);return{top:parseInt(o["margin-top"],10),bottom:parseInt(o["margin-bottom"],10),left:parseInt(o["margin-left"],10),right:parseInt(o["margin-right"],10)}}n.getMargin=D;function k(l){var o=window.getComputedStyle(l);return{top:parseInt(o["padding-top"],10)+parseInt(o["border-top-width"],10),bottom:parseInt(o["padding-bottom"],10)+parseInt(o["border-bottom-width"],10),left:parseInt(o["padding-left"],10)+parseInt(o["border-left-width"],10),right:parseInt(o["padding-right"],10)+parseInt(o["border-right-width"],10)}}n.getPaddingAndBorder=k;function $(l,o,d){var g=d?-1:1;l.forEach(function(x,y){return r(x,g*o[y].x,o[y].y)})}n.translateThumbs=$;function z(l,o,d,g){for(var x=0,y=E(l[0],o,d,g),S=1;SS?P:S},l.getBoundingClientRect().width));return y},R=function(l,o,d,g,x,y,S){S===void 0&&(S=function(_){return _});var T=[],P=function(_){var q=I(d[_],g[_],x,y,S),N=o[_].x;o.forEach(function(V,B){var G=V.x,W=I(d[B],g[B],x,y,S);_!==B&&(N>=G&&N<=G+W||N+q>=G&&N+q<=G+W)&&(T.includes(B)||(T.push(_),T.push(B),T=t(t([],T,!0),[_,B],!1),P(B)))})};return P(l),Array.from(new Set(T.sort()))},U=function(l,o,d,g,x,y){g===void 0&&(g=.1),x===void 0&&(x=" - "),y===void 0&&(y=function(B){return B});var S=(0,n.getStepDecimals)(g),T=(0,p.useState)({}),P=T[0],_=T[1],q=(0,p.useState)(y(o[d].toFixed(S))),N=q[0],V=q[1];return(0,p.useEffect)(function(){if(l){var B=l.getThumbs();if(B.length<1)return;var G={},W=l.getOffsets(),ee=R(d,W,B,o,x,S,y),le=y(o[d].toFixed(S));if(ee.length){var te=ee.reduce(function(Z,de,pe,fe){return Z.length?t(t([],Z,!0),[W[fe[pe]].x],!1):[W[fe[pe]].x]},[]);if(Math.min.apply(Math,te)===W[d].x){var ce=[];ee.forEach(function(Z){ce.push(o[Z].toFixed(S))}),le=Array.from(new Set(ce.sort(function(Z,de){return parseFloat(Z)-parseFloat(de)}))).map(y).join(x);var ye=Math.min.apply(Math,te),ue=Math.max.apply(Math,te),we=B[ee[te.indexOf(ue)]].getBoundingClientRect().width;G.left="".concat(Math.abs(ye-(ue+we))/2,"px"),G.transform="translate(-50%, 0)"}else G.visibility="hidden"}V(le),_(G)}},[l,o]),[N,P]};n.useThumbOverlap=U;function E(l,o,d,g){var x=l.getBoundingClientRect(),y=x.left,S=x.top,T=x.width,P=x.height;return w(g)?Math.abs(d-(S+P/2)):Math.abs(o-(y+T/2))}})(oe);var Be=H&&H.__extends||function(){var n=function(t,p){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])},n(t,p)};return function(t,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");n(t,p);function e(){this.constructor=t}t.prototype=p===null?Object.create(p):(e.prototype=p.prototype,new e)}}(),ze=H&&H.__createBinding||(Object.create?function(n,t,p,e){e===void 0&&(e=p);var a=Object.getOwnPropertyDescriptor(t,p);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[p]}}),Object.defineProperty(n,e,a)}:function(n,t,p,e){e===void 0&&(e=p),n[e]=t[p]}),Pe=H&&H.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),Fe=H&&H.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var p in n)p!=="default"&&Object.prototype.hasOwnProperty.call(n,p)&&ze(t,n,p);return Pe(t,n),t},ve=H&&H.__spreadArray||function(n,t,p){if(p||arguments.length===2)for(var e=0,a=t.length,s;e1&&e.props.draggableTrack){if(e.thumbRefs.some(function(c){var u;return(u=c.current)===null||u===void 0?void 0:u.contains(a.target)}))return;e.setState({draggedTrackPos:[a.clientX,a.clientY]},function(){return e.onMove(a.clientX,a.clientY)})}else{var h=(0,M.getClosestThumbIndex)(e.thumbRefs.map(function(c){return c.current}),a.clientX,a.clientY,e.props.direction);(s=e.thumbRefs[h].current)===null||s===void 0||s.focus(),e.setState({draggedThumbIndex:h},function(){return e.onMove(a.clientX,a.clientY)})}},e.onResize=function(){(0,M.translateThumbs)(e.getThumbs(),e.getOffsets(),e.props.rtl),e.calculateMarkOffsets()},e.onTouchStartTrack=function(a){var s;if(a.persist(),e.addTouchEvents(a.nativeEvent),e.props.values.length>1&&e.props.draggableTrack){if(e.thumbRefs.some(function(c){var u;return(u=c.current)===null||u===void 0?void 0:u.contains(a.target)}))return;e.setState({draggedTrackPos:[a.touches[0].clientX,a.touches[0].clientY]},function(){return e.onMove(a.touches[0].clientX,a.touches[0].clientY)})}else{var h=(0,M.getClosestThumbIndex)(e.thumbRefs.map(function(c){return c.current}),a.touches[0].clientX,a.touches[0].clientY,e.props.direction);(s=e.thumbRefs[h].current)===null||s===void 0||s.focus(),e.setState({draggedThumbIndex:h},function(){return e.onMove(a.touches[0].clientX,a.touches[0].clientY)})}},e.onMouseOrTouchStart=function(a){if(!e.props.disabled){var s=(0,M.isTouchEvent)(a);if(!(!s&&a.button!==0)){var h=e.getTargetIndex(a);h!==-1&&(s?e.addTouchEvents(a):e.addMouseEvents(a),e.setState({draggedThumbIndex:h,thumbZIndexes:e.state.thumbZIndexes.map(function(c,u){return u===h?Math.max.apply(Math,e.state.thumbZIndexes):c<=e.state.thumbZIndexes[h]?c:c-1})}))}}},e.onMouseMove=function(a){a.preventDefault(),e.onMove(a.clientX,a.clientY)},e.onTouchMove=function(a){a.preventDefault(),e.onMove(a.touches[0].clientX,a.touches[0].clientY)},e.onKeyDown=function(a){var s=e.props,h=s.values,c=s.onChange,u=s.step,w=s.rtl,b=s.direction,m=e.state.isChanged,v=e.getTargetIndex(a.nativeEvent),D=w||b===j.Direction.Left||b===j.Direction.Down?-1:1;v!==-1&&(Ue.includes(a.key)?(a.preventDefault(),e.setState({draggedThumbIndex:v,isChanged:!0}),c((0,M.replaceAt)(h,v,e.normalizeValue(h[v]+D*(a.key==="PageUp"?u*10:u),v)))):Ne.includes(a.key)?(a.preventDefault(),e.setState({draggedThumbIndex:v,isChanged:!0}),c((0,M.replaceAt)(h,v,e.normalizeValue(h[v]-D*(a.key==="PageDown"?u*10:u),v)))):a.key==="Tab"?e.setState({draggedThumbIndex:-1},function(){m&&e.fireOnFinalChange()}):m&&e.fireOnFinalChange())},e.onKeyUp=function(a){var s=e.state.isChanged;e.setState({draggedThumbIndex:-1},function(){s&&e.fireOnFinalChange()})},e.onMove=function(a,s){var h=e.state,c=h.draggedThumbIndex,u=h.draggedTrackPos,w=e.props,b=w.direction,m=w.min,v=w.max,D=w.onChange,k=w.values,$=w.step,z=w.rtl;if(c===-1&&u[0]===-1&&u[1]===-1)return null;var r=e.trackRef.current;if(!r)return null;var i=r.getBoundingClientRect(),f=(0,M.isVertical)(b)?i.height:i.width;if(u[0]!==-1&&u[1]!==-1){var O=a-u[0],A=s-u[1],L=0;switch(b){case j.Direction.Right:case j.Direction.Left:L=O/f*(v-m);break;case j.Direction.Down:case j.Direction.Up:L=A/f*(v-m);break;default:(0,M.assertUnreachable)(b)}if(z&&(L*=-1),Math.abs(L)>=$/2){for(var I=0;Iv?L=v-k[I]:R=$/2&&D((0,M.replaceAt)(k,c,e.normalizeValue(E,c)))}},e.normalizeValue=function(a,s){var h=e.props,c=h.min,u=h.max,w=h.step,b=h.allowOverlap,m=h.values;return(0,M.normalizeValue)(a,s,c,u,w,b,m)},e.onEnd=function(a){if(a.preventDefault(),document.removeEventListener("mousemove",e.schdOnMouseMove),document.removeEventListener("touchmove",e.schdOnTouchMove),document.removeEventListener("mouseup",e.schdOnEnd),document.removeEventListener("touchend",e.schdOnEnd),document.removeEventListener("touchcancel",e.schdOnEnd),e.state.draggedThumbIndex===-1&&e.state.draggedTrackPos[0]===-1&&e.state.draggedTrackPos[1]===-1)return null;e.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){e.fireOnFinalChange()})},e.fireOnFinalChange=function(){e.setState({isChanged:!1});var a=e.props,s=a.onFinalChange,h=a.values;s&&s(h)},e.updateMarkRefs=function(a){if(!a.renderMark){e.numOfMarks=void 0,e.markRefs=void 0;return}e.numOfMarks=(a.max-a.min)/e.props.step,e.markRefs=[];for(var s=0;s-1?"grabbing":this.props.draggableTrack?(0,M.isVertical)(this.props.direction)?"ns-resize":"ew-resize":u.length===1&&!v?"pointer":"inherit"},onMouseDown:v?M.voidFn:this.onMouseDownTrack,onTouchStart:v?M.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:v,children:ve(ve([],z.map(function(r,i,f){return c({props:{style:p.props.direction===j.Direction.Left||p.props.direction===j.Direction.Right?{position:"absolute",left:"".concat(r[0],"px"),marginTop:"".concat(r[1],"px")}:{position:"absolute",top:"".concat(r[0],"px"),marginLeft:"".concat(r[1],"px")},key:"mark".concat(i),ref:p.markRefs[i]},index:i})}),!0),u.map(function(r,i){var f=p.state.draggedThumbIndex===i;return s({index:i,value:r,isDragged:f,props:{style:{position:"absolute",zIndex:$[i],cursor:v?"inherit":f?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:i,tabIndex:v?void 0:0,"aria-valuemax":m?b:u[i+1]||b,"aria-valuemin":m?w:u[i-1]||w,"aria-valuenow":r,draggable:!1,ref:p.thumbRefs[i],role:"slider",onKeyDown:v?M.voidFn:p.onKeyDown,onKeyUp:v?M.voidFn:p.onKeyUp}})}),!0)})},t.defaultProps={step:1,direction:j.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},t}(ne.Component);se.default=He;(function(n){var t=H&&H.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(n,"__esModule",{value:!0}),n.checkValuesAgainstBoundaries=n.relativeValue=n.useThumbOverlap=n.Direction=n.getTrackBackground=n.Range=void 0;var p=t(se);n.Range=p.default;var e=oe;Object.defineProperty(n,"getTrackBackground",{enumerable:!0,get:function(){return e.getTrackBackground}}),Object.defineProperty(n,"useThumbOverlap",{enumerable:!0,get:function(){return e.useThumbOverlap}}),Object.defineProperty(n,"relativeValue",{enumerable:!0,get:function(){return e.relativeValue}}),Object.defineProperty(n,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return e.checkValuesAgainstBoundaries}});var a=ae;Object.defineProperty(n,"Direction",{enumerable:!0,get:function(){return a.Direction}})})(re);const qe=1,Ve=1,Ge=Y.div` + display: flex; + align-items: "flex-start"; + padding: 24px 20px; + flex-direction: column; +`,Ye=Y.div` + margin-left: 30px; + display: flex; + right: -18px; + align-items: center; + justify-content: center; + + position: relative; + .line { + height: 1px; + width: 11px; + background-color: ${({theme:n})=>n.textColor}; + } + .content { + position: absolute; + left: 40px; + width: 300px; + } +`,Xe=Y.div` + flex-grow: 1; + width: 36px; + display: flex; + height: ${({$isMobile:n})=>n?"250px":"400px"}; + + .track { + position: relative; + width: 4px; + height: 100%; + border-radius: 36px; + background-color: ${({theme:n})=>n.primaryColor}; + align-self: center; + &::before, + &::after { + position: absolute; + top: -27px; + left: 0; + content: ""; + width: 4px; + height: 40px; + border-radius: 36px; + background-color: ${({theme:n})=>n.primaryColor}; + } + &::after { + top: inherit; + bottom: -27px; + } + } +`,Ke=Y.div` + height: 23px; + width: 42px; + border-radius: ${({theme:n})=>n.buttonRadius}px; + background-color: ${({theme:n})=>n.primaryColor}; + box-shadow: 0px 3px 6px #00000029; + position: relative; + &::after { + position: absolute; + right: -9px; + content: ""; + width: 0px; + height: 0px; + border-style: solid; + border-width: 11.5px 0px 12.5px 12px; + transform: rotate(0deg); + border-color: transparent transparent transparent + ${({theme:n})=>n.primaryColor}; + transform: rotate(0deg); + } +`,We=({options:n,onAnswer:t})=>{const[p,e]=ke.useState([1]),a=n.length,{i18n:s}=ie(),h=F.useCallback(c=>{var u;e(c),t(`${(u=n[c[0]-1])==null?void 0:u.value}`)},[t,n]);return F.useEffect(()=>{var c;t(`${(c=n[0])==null?void 0:c.value}`)},[]),C.jsx(Ge,{children:C.jsx(re.Range,{step:qe,min:Ve,max:a,direction:re.Direction.Down,values:p,onChange:c=>h(c),rtl:!1,renderMark:({props:c,index:u})=>C.jsxs(Ye,{...c,children:[C.jsx("div",{className:"line"}),C.jsx("div",{className:"content",children:C.jsx(Ce.Text,{size:"14",children:n[u].label[s.language]})})]}),renderTrack:({props:c,children:u})=>C.jsx(Xe,{$isMobile:Me,role:"button",tabIndex:0,onMouseDown:c.onMouseDown,onTouchStart:c.onTouchStart,style:{...c.style},children:C.jsx("div",{className:"track",ref:c.ref,children:u})}),renderThumb:({props:c})=>C.jsx(Ke,{...c,style:{...c.style}})})})},Ze=Y.div` + .step-image { + z-index: 0; + } + > h4 { + margin-top: 20px; + } + .options { + margin-top: 30px; + margin-bottom: 160px; + .option { + &:not(:last-child) { + margin-bottom: 26px; + @media (max-width: 768px) { + margin-bottom: 7px; + } + } + } + + &.buttons { + display: flex; + flex-direction: row; + flex-wrap: wrap; + gap: 7px; + } + } +`,Je=Y.button` + all: unset; + border-radius: 20px; + font-size: 14px; + font-family: ${({theme:n})=>n.font}; + color: ${({theme:n})=>n.textColor}; + border: 1px solid + ${({theme:n,$isActive:t})=>t?n.primaryColor:"#E0E0E0"}; + padding: 11px 17px; +`,Qe=Y.div` + position: relative; + border-radius: ${({theme:n})=>n.cardRadius}px; + background-color: ${({theme:n})=>he(n.mode,n.white,n.textColor)}; + margin-bottom: 35px; + padding: 11px 55px; + z-index: 10; + h4, + p { + color: ${({theme:n})=>he(n.mode,n.textColor,n.white)}; + } + &:before { + content: ""; + position: absolute; + width: 11vmin; + height: 6vmin; + box-shadow: rgb(51, 51, 51) 4vmin -0.5vmin; + border-radius: 50%; + top: -1vmin; + transform: translate(-140%, -3vmin) rotate(165deg); + left: 20vmin; + z-index: -1; + @media (max-width: 768px) { + left: 25vmin; + width: 12vmin; + height: 9vmin; + box-shadow: rgb(51, 51, 51) 5vmin 0.5vmin; + } + } +`,et=({step:n,onAnswer:t,answers:p})=>{const{settings:e}=F.useContext(be.EscolaLMSContext),{i18n:a}=ie(),s=F.useCallback(()=>n.image?e.value.onboarding[n.image]:null,[n,e.value.onboarding]),h=F.useCallback(c=>{switch(n.type){case J.radio:return C.jsx(K.Radio,{value:c.value,label:c.label[a.language],name:n.data,onChange:u=>t(u.target.value)});case J.options:return C.jsx(Je,{$isActive:p&&p[n.data]===c.value||!1,onClick:()=>t(c.value),children:c.label[a.language]});default:return C.jsx(K.Radio,{value:c.value,label:c.label[a.language],name:n.data,onChange:u=>t(u.target.value)})}},[a.language,n.type,n.data,t,p]);return C.jsxs(Ze,{children:[n.image&&s()&&C.jsx("div",{className:"step-image",children:C.jsx(xe,{path:s(),srcSizes:[500,750,1e3]})}),n.hint&&C.jsxs(Qe,{children:[C.jsx(K.Title,{level:4,children:n.hint.title[a.language]}),C.jsx(K.Text,{size:"13",children:n.hint.text[a.language]})]}),C.jsx(K.Title,{level:4,children:n.question[a.language]}),C.jsxs("div",{className:`options ${n.type===J.options?"buttons":""}`,children:[n.type===J.slide&&C.jsx(We,{options:n.options,onAnswer:t}),n.type!==J.slide&&n.options.map((c,u)=>C.jsx("div",{className:"option",children:h(c)},c.value+u))]})]})},tt=Y.div` + background-color: ${({theme:n})=>n.white}; + padding: 60px 0; + + @media (max-width: 991px) { + padding: 20px; + } + .onboarding__content { + width: 100%; + position: relative; + ${({$lastStep:n})=>n&&Te` + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + `} + + .swiper-pagination { + display: flex; + justify-content: center; + align-items: center; + gap: 20px; + .swiper-pagination-bullet { + width: 8px; + height: 8px; + &.swiper-pagination-bullet-active { + background-color: ${({theme:n})=>n.primaryColor} !important; + } + } + } + .next-step { + margin: 0 auto; + margin-top: ${({$lastStep:n})=>n?"70px":"0px"}; + position: ${({$lastStep:n})=>n?"relative":"absolute"}; + bottom: ${({$lastStep:n})=>n?"0":"60px"}; + left: 0; + right: 0; + max-width: 265px; + min-width: ${({$lastStep:n})=>n?"265px":"auto"}; + z-index: 10; + } + } +`,nt=Y.div` + text-align: center; + img { + max-height: 300px; + object-fit: contain; + } + h2 { + margin: 22px 0px; + } +`;var J=(n=>(n.radio="radio",n.options="options",n.slide="slide",n))(J||{});const at=()=>{var z;const{settings:n,fetchSettings:t,updateProfile:p,fetchProfile:e,user:a}=F.useContext(be.EscolaLMSContext),{t:s,i18n:h}=ie(),c=Oe(),[u,w]=F.useState({steps:[],currentStep:0,answers:{},isLastStep:!1}),b=F.useRef();(z=a.value)!=null&&z.isOnboardingCompleted&&c.push(ge.home);const m=F.useCallback(()=>{const r=Object.keys(n.value.onboarding).filter(i=>i.startsWith("step_")).map(i=>n.value.onboarding[i]).sort((i,f)=>i.order-f.order);w({steps:r,currentStep:0,isLastStep:!1})},[n]),v=F.useMemo(()=>{if(n.value.onboarding.last_step)return{...n.value.onboarding.last_step,image:n.value.onboarding.image_last_step}},[n]);F.useEffect(()=>{t(),m()},[t]),F.useEffect(()=>{b.current&&!u.isLastStep&&b.current.slideTo(u.currentStep)},[u]);const D=F.useCallback(async()=>{try{(await p({...u.answers,isOnboardingCompleted:!0})).success&&e()}catch(r){console.log("error",r)}c.push(ge.home)},[u.answers,c]),k=F.useMemo(()=>{const r=u.steps[u.currentStep];return r&&u.answers&&u.answers[r.data]?!1:u.currentStep===u.steps.length?(w(f=>({...f,isLastStep:!0})),!1):!0},[u.steps,u.answers,u.currentStep]),$=F.useCallback(()=>{u.currentStep===u.steps.length?D():w(r=>({...r,currentStep:r.currentStep+1}))},[u.currentStep,u.steps.length,D]);return C.jsx(tt,{className:"onboarding",$lastStep:u.isLastStep,children:C.jsx(Se,{children:C.jsx(De.Col,{offset:{lg:3},lg:6,children:C.jsxs("div",{className:"onboarding__content",children:[u.isLastStep?C.jsxs(nt,{children:[C.jsx(xe,{path:v.image,srcSizes:[500,750,1e3]}),C.jsx(K.Title,{level:2,children:v.title[h.language]}),C.jsx(K.Text,{children:v.text[h.language]})]}):C.jsx(_e,{className:"onboarding__swiper",modules:[$e,je,Ae],slidesPerView:1,allowTouchMove:!1,initialSlide:0,pagination:!0,autoHeight:!0,onBeforeInit:r=>{b.current=r},children:u.steps.map((r,i)=>C.jsx(Le,{children:C.jsx(et,{answers:u.answers,step:r,onAnswer:f=>w(O=>({...O,answers:{...O.answers,[r.data]:f}}))})},i))}),C.jsx(K.Button,{className:"next-step",disabled:k,onClick:$,children:s("Next")})]})})})})},rt=Y.div` + background-color: #f8f8f8; + height: 100%; + min-height: calc(100vh - 110px); + padding: 50px 150px; + @media (max-width: 991px) { + padding: 20px; + } +`,ct=()=>C.jsx(rt,{children:C.jsx(at,{})});export{ct as default}; diff --git a/assets/index-De30Ii5m.js b/assets/index-BCsXbvXd.js similarity index 80% rename from assets/index-De30Ii5m.js rename to assets/index-BCsXbvXd.js index 6768a345..0a40c82c 100644 --- a/assets/index-De30Ii5m.js +++ b/assets/index-BCsXbvXd.js @@ -1 +1 @@ -import{i as c,f as m,cE as d,j as a,G as x,n as u,L as i,ax as h,aK as j,aL as g,ar as p}from"./index-Bjk_45MO.js";import{a as f}from"./ResponsiveImage-wYxl3kWJ.js";import{C}from"./index-DdavEOvA.js";import{T}from"./index-D0XQwhQb.js";const H=({webinar:s,actions:n,footer:r})=>{const o=c(),{t}=m(),e=s.active_to&&s.deadline&&d(new Date(s.deadline),new Date(s.active_to))||null;return a.jsx(x,{id:s.id,mobile:u,image:a.jsx(i,{to:`/webinar/${s.id}`,"aria-label":s.name,children:s.image_path?a.jsx(f,{path:s.image_path,alt:s.name,srcSizes:[300,600,900]}):a.jsx(C,{})}),title:a.jsx(i,{to:`/webinar/${s.id}`,className:"title",children:a.jsx(h,{level:4,as:"h2",children:s.name})}),tags:a.jsx(T,{tags:s.tags,onTagClick:l=>o.push(`/webinars/?tags[]=${l}`)}),actions:n??a.jsx(a.Fragment,{children:a.jsx(j,{mode:"secondary",onClick:()=>o.push(`/webinar/${s.id}`),children:t("StartNow")})}),footer:r??a.jsx(a.Fragment,{children:!!e&&a.jsx(g,{icon:a.jsx(p,{}),text:`${e} ${t(e===1?"Hour":"Hours")}`})})})};export{H as W}; +import{i as c,f as m,cE as d,j as a,G as x,n as u,L as i,ax as h,aK as j,aL as g,ar as p}from"./index-Cei2V9tG.js";import{a as f}from"./ResponsiveImage-CUm6fM86.js";import{C}from"./index-CO3xj3k-.js";import{T}from"./index-BxtluS5u.js";const H=({webinar:s,actions:n,footer:r})=>{const o=c(),{t}=m(),e=s.active_to&&s.deadline&&d(new Date(s.deadline),new Date(s.active_to))||null;return a.jsx(x,{id:s.id,mobile:u,image:a.jsx(i,{to:`/webinar/${s.id}`,"aria-label":s.name,children:s.image_path?a.jsx(f,{path:s.image_path,alt:s.name,srcSizes:[300,600,900]}):a.jsx(C,{})}),title:a.jsx(i,{to:`/webinar/${s.id}`,className:"title",children:a.jsx(h,{level:4,as:"h2",children:s.name})}),tags:a.jsx(T,{tags:s.tags,onTagClick:l=>o.push(`/webinars/?tags[]=${l}`)}),actions:n??a.jsx(a.Fragment,{children:a.jsx(j,{mode:"secondary",onClick:()=>o.push(`/webinar/${s.id}`),children:t("StartNow")})}),footer:r??a.jsx(a.Fragment,{children:!!e&&a.jsx(g,{icon:a.jsx(p,{}),text:`${e} ${t(e===1?"Hour":"Hours")}`})})})};export{H as W}; diff --git a/assets/index-Csn_KHHs.js b/assets/index-BGMZM98o.js similarity index 95% rename from assets/index-Csn_KHHs.js rename to assets/index-BGMZM98o.js index 648cea7b..b7ad95e2 100644 --- a/assets/index-Csn_KHHs.js +++ b/assets/index-BGMZM98o.js @@ -1,4 +1,4 @@ -import{q as j,j as e,w as c,T as g,n as E,v as p,r as f,h as M,f as $,i as H,aq as k,Y as P,s as T,l as h,J as v,ar as N,as as z,at as F,au as q,av as A,E as L,o as D,Z as G,C as w,L as B,ak as V,M as J}from"./index-Bjk_45MO.js";import{P as Q}from"./index-DyNx7jEp.js";import{B as U}from"./index-DNvp70I6.js";import{R as Y}from"./ResponsiveImage-wYxl3kWJ.js";import{P as I}from"./PricingCard-4UWE4R3V.js";import{C as R}from"./index-Hx28RPSp.js";import"./warning-CKk5dc80.js";import"./index-DFxyMfM2.js";import"./index-DdavEOvA.js";const Z=j.div` +import{q as j,j as e,w as c,T as g,n as E,v as p,r as f,h as M,f as $,i as H,aq as k,Y as P,s as T,l as h,J as v,ar as N,as as z,at as F,au as q,av as A,E as L,o as D,Z as G,C as w,L as B,ak as V,M as J}from"./index-Cei2V9tG.js";import{P as Q}from"./index-C98yo6RU.js";import{B as U}from"./index-rOJCcL2u.js";import{R as Y}from"./ResponsiveImage-CUm6fM86.js";import{P as I}from"./PricingCard-YjgD6nmP.js";import{C as R}from"./index-pyJuzCdB.js";import"./warning-CGLqHpsF.js";import"./index-Csz5cVZF.js";import"./index-CO3xj3k-.js";const Z=j.div` display: flex; align-items: center; flex-wrap: wrap; diff --git a/assets/index-DXlxHsyP.js b/assets/index-BRB_S0a6.js similarity index 81% rename from assets/index-DXlxHsyP.js rename to assets/index-BRB_S0a6.js index 44f1604c..1e11a2f4 100644 --- a/assets/index-DXlxHsyP.js +++ b/assets/index-BRB_S0a6.js @@ -1,4 +1,4 @@ -import{q as b,E as $,f as w,r as g,h as y,X as I,i as N,j as s,o as P,C as R,L as a,l as C,s as l,w as i,I as E,T as u,M as k,G as B,n as L,v as S,J as v,U as M,K as z}from"./index-Bjk_45MO.js";import{P as F}from"./index-DyNx7jEp.js";import{R as q}from"./ResponsiveImage-wYxl3kWJ.js";import{C as G}from"./index-3y6ZJfCp.js";import{B as H}from"./index-DNvp70I6.js";import{C as U}from"./index-DdavEOvA.js";import{C as X}from"./index-ByR6k3wq.js";import{T as A}from"./index-D0XQwhQb.js";import{C as J}from"./index-BNTGN6Sw.js";import"./swiper-react-CO9r4Bsk.js";import"./index-D1KheDiE.js";import"./swiper-B3oKVkBy.js";const K=b.section` +import{q as b,E as $,f as w,r as g,h as y,X as I,i as N,j as s,o as P,C as R,L as a,l as C,s as l,w as i,I as E,T as u,M as k,G as B,n as L,v as S,J as v,U as M,K as z}from"./index-Cei2V9tG.js";import{P as F}from"./index-C98yo6RU.js";import{R as q}from"./ResponsiveImage-CUm6fM86.js";import{C as G}from"./index-CofAvDv9.js";import{B as H}from"./index-rOJCcL2u.js";import{C as U}from"./index-CO3xj3k-.js";import{C as X}from"./index-DOgv2ATl.js";import{T as A}from"./index-BxtluS5u.js";import{C as J}from"./index-KwSvHpAm.js";import"./swiper-react-Dxth3Uzi.js";import"./index-Cm0iCbGi.js";import"./swiper-B0_gRAjE.js";import"./a11y-B_OcGQFt.js";const K=b.section` .tutor-avatar { width: 100%; max-width: 100%; @@ -19,4 +19,4 @@ import{q as b,E as $,f as w,r as g,h as y,X as I,i as N,j as s,o as P,C as R,L a margin-top: 50px; } } -`,as=()=>{var x,h,m,j,p;const{id:n}=$(),{t:r}=w(),{tutor:t,fetchTutor:T,courses:o,fetchCourses:f}=g.useContext(y.EscolaLMSContext),_=I(),c=N();return g.useEffect(()=>{T(Number(n)),f({"authors[]":[Number(n)]})},[n]),s.jsxs(P,{children:[s.jsx(K,{children:s.jsxs(R,{children:[s.jsx(H,{items:[s.jsx(a,{to:C.home,children:r("Home")}),s.jsx(a,{to:C.tutors,children:r("Tutors")}),s.jsx(l.Text,{size:"12",children:`${((x=t.value)==null?void 0:x.first_name)||""} ${((h=t.value)==null?void 0:h.last_name)||""}`})]}),t.value&&s.jsx("div",{className:"profile-box",children:s.jsxs(i.Row,{align:"start",children:[s.jsx(i.Col,{lg:3,children:s.jsx("div",{className:"image",children:t.value.path_avatar?s.jsx(q.ResponsiveImage,{path:t.value.path_avatar,srcSizes:[355,355*2]}):s.jsx("img",{className:"tutor-avatar",src:E.tutorPlaceholderPath,alt:"Tutor avatar"})})}),s.jsx(i.Col,{lg:8,children:s.jsxs("div",{className:"content",children:[s.jsxs(u.Title,{level:3,children:[t.value.first_name," ",t.value.last_name]}),s.jsx(l.Text,{children:r("Tutor")}),s.jsx("div",{children:s.jsx(k.MarkdownRenderer,{children:t.value.bio||""})})]})})]})}),s.jsxs("div",{className:"tutor-courses",children:[s.jsx(u.Title,{style:{marginBottom:20},level:3,children:r("TutorPage.Courses")}),o.list&&((m=o.list.data)==null?void 0:m.length)===0?s.jsx(l.Text,{children:r("TutorCoursesEmpty")}):o.list&&((j=o.list.data)==null?void 0:j.length)>4?s.jsx(G,{courses:((p=o.list)==null?void 0:p.data)||[]}):s.jsx(i.Row,{children:o.list&&o.list.data.map(e=>s.jsx(i.Col,{md:6,lg:3,children:s.jsx(X,{children:s.jsx(B,{mobile:L,id:e.id,image:s.jsx(a,{to:`/courses/${e.id}`,children:e.image_url?s.jsx("img",{src:e.image_url,alt:e.title}):s.jsx(U,{})}),tags:s.jsx(A,{tags:e.tags,onTagClick:d=>c.push(`/courses/?tag=${d}`)}),subtitle:e.subtitle?s.jsx(l.Text,{size:"12",children:s.jsx(a,{style:{color:_.primaryColor},to:`/courses/${e.id}`,children:s.jsx("strong",{children:e.subtitle})})}):void 0,title:s.jsx(a,{to:`/courses/${e.id}`,className:"title",children:s.jsx(u.Title,{level:4,as:"h2",children:e.title})}),categories:s.jsx(J,{categories:e.categories,onCategoryClick:d=>{c.push(`/courses/?categories[]=${d}`)}}),actions:s.jsx(s.Fragment,{children:s.jsx(S.Button,{mode:"secondary",onClick:()=>c.push(`/courses/${e.id}`),children:r("StartNow")})}),footer:s.jsxs(s.Fragment,{children:[e.users_count&&e.users_count>0?s.jsx(v.IconText,{icon:s.jsx(M,{}),text:`${e.users_count} ${r("Students")}`}):""," ",e.lessons_count&&e.lessons_count>0?s.jsx(v.IconText,{icon:s.jsx(z,{}),text:`${e.lessons_count} ${r("Lessons")}`}):""]})})})},e.id))})]})]})}),t.loading&&s.jsx(F,{})]})};export{as as default}; +`,is=()=>{var x,h,m,j,p;const{id:n}=$(),{t:r}=w(),{tutor:t,fetchTutor:T,courses:o,fetchCourses:f}=g.useContext(y.EscolaLMSContext),_=I(),c=N();return g.useEffect(()=>{T(Number(n)),f({"authors[]":[Number(n)]})},[n]),s.jsxs(P,{children:[s.jsx(K,{children:s.jsxs(R,{children:[s.jsx(H,{items:[s.jsx(a,{to:C.home,children:r("Home")}),s.jsx(a,{to:C.tutors,children:r("Tutors")}),s.jsx(l.Text,{size:"12",children:`${((x=t.value)==null?void 0:x.first_name)||""} ${((h=t.value)==null?void 0:h.last_name)||""}`})]}),t.value&&s.jsx("div",{className:"profile-box",children:s.jsxs(i.Row,{align:"start",children:[s.jsx(i.Col,{lg:3,children:s.jsx("div",{className:"image",children:t.value.path_avatar?s.jsx(q.ResponsiveImage,{path:t.value.path_avatar,srcSizes:[355,355*2]}):s.jsx("img",{className:"tutor-avatar",src:E.tutorPlaceholderPath,alt:"Tutor avatar"})})}),s.jsx(i.Col,{lg:8,children:s.jsxs("div",{className:"content",children:[s.jsxs(u.Title,{level:3,children:[t.value.first_name," ",t.value.last_name]}),s.jsx(l.Text,{children:r("Tutor")}),s.jsx("div",{children:s.jsx(k.MarkdownRenderer,{children:t.value.bio||""})})]})})]})}),s.jsxs("div",{className:"tutor-courses",children:[s.jsx(u.Title,{style:{marginBottom:20},level:3,children:r("TutorPage.Courses")}),o.list&&((m=o.list.data)==null?void 0:m.length)===0?s.jsx(l.Text,{children:r("TutorCoursesEmpty")}):o.list&&((j=o.list.data)==null?void 0:j.length)>4?s.jsx(G,{courses:((p=o.list)==null?void 0:p.data)||[]}):s.jsx(i.Row,{children:o.list&&o.list.data.map(e=>s.jsx(i.Col,{md:6,lg:3,children:s.jsx(X,{children:s.jsx(B,{mobile:L,id:e.id,image:s.jsx(a,{to:`/courses/${e.id}`,children:e.image_url?s.jsx("img",{src:e.image_url,alt:e.title}):s.jsx(U,{})}),tags:s.jsx(A,{tags:e.tags,onTagClick:d=>c.push(`/courses/?tag=${d}`)}),subtitle:e.subtitle?s.jsx(l.Text,{size:"12",children:s.jsx(a,{style:{color:_.primaryColor},to:`/courses/${e.id}`,children:s.jsx("strong",{children:e.subtitle})})}):void 0,title:s.jsx(a,{to:`/courses/${e.id}`,className:"title",children:s.jsx(u.Title,{level:4,as:"h2",children:e.title})}),categories:s.jsx(J,{categories:e.categories,onCategoryClick:d=>{c.push(`/courses/?categories[]=${d}`)}}),actions:s.jsx(s.Fragment,{children:s.jsx(S.Button,{mode:"secondary",onClick:()=>c.push(`/courses/${e.id}`),children:r("StartNow")})}),footer:s.jsxs(s.Fragment,{children:[e.users_count&&e.users_count>0?s.jsx(v.IconText,{icon:s.jsx(M,{}),text:`${e.users_count} ${r("Students")}`}):""," ",e.lessons_count&&e.lessons_count>0?s.jsx(v.IconText,{icon:s.jsx(z,{}),text:`${e.lessons_count} ${r("Lessons")}`}):""]})})})},e.id))})]})]})}),t.loading&&s.jsx(F,{})]})};export{is as default}; diff --git a/assets/index-C9cUZQ5P.js b/assets/index-BT0lVMi3.js similarity index 71% rename from assets/index-C9cUZQ5P.js rename to assets/index-BT0lVMi3.js index 97ddcc2f..22ec0a72 100644 --- a/assets/index-C9cUZQ5P.js +++ b/assets/index-BT0lVMi3.js @@ -1,5 +1,5 @@ -import{P as d,b as l,cv as Fe,q as Y,r as k,j as n,cw as Me,X as je,f as le,aH as Ee,w as T,aa as Ue,i as we,h as ke,o as Pe,C as Ne,v as oe,l as V,n as ie,an as We,A as q,L as ze,s as ne,T as W,cx as De,aq as ae,y as qe,D as Ve}from"./index-Bjk_45MO.js";import{P as Ye}from"./index-DyNx7jEp.js";import{C as xe}from"./index-3y6ZJfCp.js";import{B as Ke}from"./index-DNvp70I6.js";import{P as He}from"./index-DdavEOvA.js";import"./ResponsiveImage-wYxl3kWJ.js";import"./index-BNTGN6Sw.js";import"./swiper-react-CO9r4Bsk.js";import"./index-D1KheDiE.js";import"./swiper-B3oKVkBy.js";function he(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,a)}return r}function ve(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,a=new Array(e);r provider."));return e},pe=l.createContext(null);pe.displayName="CartElementContext";var st=function(e,r){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an provider."));return e},Oe=function(e){var r=e.stripe,a=e.options,o=e.children,s=l.useMemo(function(){return nt(r)},[r]),u=l.useState(null),p=Z(u,2),i=p[0],c=p[1],S=l.useState(null),w=Z(S,2),j=w[0],R=w[1],_=l.useState(function(){return{stripe:s.tag==="sync"?s.stripe:null,elements:s.tag==="sync"?s.stripe.elements(a):null}}),h=Z(_,2),C=h[0],O=h[1];l.useEffect(function(){var y=!0,F=function(L){O(function(B){return B.stripe?B:{stripe:L,elements:L.elements(a)}})};return s.tag==="async"&&!C.stripe?s.stripePromise.then(function(N){N&&y&&F(N)}):s.tag==="sync"&&!C.stripe&&F(s.stripe),function(){y=!1}},[s,C,a]);var $=ce(r);l.useEffect(function(){$!==null&&$!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[$,r]);var A=ce(a);return l.useEffect(function(){if(C.elements){var y=Re(a,A,["clientSecret","fonts"]);y&&C.elements.update(y)}},[a,A,C.elements]),l.useEffect(function(){var y=C.stripe;!y||!y._registerWrapper||!y.registerAppInfo||(y._registerWrapper({name:"react-stripe-js",version:"1.16.5"}),y.registerAppInfo({name:"react-stripe-js",version:"1.16.5",url:"https://stripe.com/docs/stripe-js/react"}))},[C.stripe]),l.createElement(ue.Provider,{value:C},l.createElement(pe.Provider,{value:{cart:i,setCart:c,cartState:j,setCartState:R}},o))};Oe.propTypes={stripe:d.any,options:d.object};var ee=function(e){var r=l.useContext(ue);return at(r,e)},be=function(e){var r=l.useContext(pe);return st(r,e)},ot=function(){var e=ee("calls useElements()"),r=e.elements;return r},it=function(){var e=ee("calls useStripe()"),r=e.stripe;return r};d.func.isRequired;var b=function(e,r,a){var o=!!a,s=l.useRef(a);l.useEffect(function(){s.current=a},[a]),l.useEffect(function(){if(!o||!e)return function(){};var u=function(){s.current&&s.current.apply(s,arguments)};return e.on(r,u),function(){e.off(r,u)}},[o,r,e,s])},ct=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},m=function(e,r){var a="".concat(ct(e),"Element"),o=function(i){var c=i.id,S=i.className,w=i.options,j=w===void 0?{}:w,R=i.onBlur,_=i.onFocus,h=i.onReady,C=i.onChange,O=i.onEscape,$=i.onClick,A=i.onLoadError,y=i.onLoaderStart,F=i.onNetworksChange,N=i.onCheckout,L=i.onLineItemClick,B=i.onConfirm,K=i.onCancel,f=i.onShippingAddressChange,E=i.onShippingRateChange,I=ee("mounts <".concat(a,">")),M=I.elements,H=l.useState(null),D=Z(H,2),v=D[0],X=D[1],P=l.useRef(null),U=l.useRef(null),de=be("mounts <".concat(a,">")),te=de.setCart,re=de.setCartState;b(v,"blur",R),b(v,"focus",_),b(v,"escape",O),b(v,"click",$),b(v,"loaderror",A),b(v,"loaderstart",y),b(v,"networkschange",F),b(v,"lineitemclick",L),b(v,"confirm",B),b(v,"cancel",K),b(v,"shippingaddresschange",f),b(v,"shippingratechange",E);var G;e==="cart"?G=function(me){re(me),h&&h(me)}:h&&(e==="payButton"?G=h:G=function(){h(v)}),b(v,"ready",G);var Be=e==="cart"?function(g){re(g),C&&C(g)}:C;b(v,"change",Be);var Ie=e==="cart"?function(g){re(g),N&&N(g)}:N;b(v,"checkout",Ie),l.useLayoutEffect(function(){if(P.current===null&&M&&U.current!==null){var g=M.create(e,j);e==="cart"&&te&&te(g),P.current=g,X(g),g.mount(U.current)}},[M,j,te]);var fe=ce(j);return l.useEffect(function(){if(P.current){var g=Re(j,fe,["paymentRequest"]);g&&P.current.update(g)}},[j,fe]),l.useLayoutEffect(function(){return function(){P.current&&(P.current.destroy(),P.current=null)}},[]),l.createElement("div",{id:c,className:S,ref:U})},s=function(i){ee("mounts <".concat(a,">")),be("mounts <".concat(a,">"));var c=i.id,S=i.className;return l.createElement("div",{id:c,className:S})},u=r?s:o;return u.propTypes={id:d.string,className:d.string,onChange:d.func,onBlur:d.func,onFocus:d.func,onReady:d.func,onEscape:d.func,onClick:d.func,onLoadError:d.func,onLoaderStart:d.func,onNetworksChange:d.func,onCheckout:d.func,onLineItemClick:d.func,onConfirm:d.func,onCancel:d.func,onShippingAddressChange:d.func,onShippingRateChange:d.func,options:d.object},u.displayName=a,u.__elementType=e,u},x=typeof window>"u";m("auBankAccount",x);m("card",x);var Ae=m("cardNumber",x),lt=m("cardExpiry",x),ut=m("cardCvc",x);m("fpxBank",x);m("iban",x);m("idealBank",x);m("p24Bank",x);m("epsBank",x);m("payment",x);m("payButton",x);m("paymentRequestButton",x);m("linkAuthentication",x);m("address",x);m("shippingAddress",x);m("cart",x);m("paymentMethodMessaging",x);m("affirmMessage",x);m("afterpayClearpayMessage",x);var _e="https://js.stripe.com/v3",pt=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Se="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",dt=function(){for(var e=document.querySelectorAll('script[src^="'.concat(_e,'"]')),r=0;r element.");return o.appendChild(a),a},mt=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"1.54.2",startTime:r})},J=null,xt=function(e){return J!==null||(J=new Promise(function(r,a){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe&&e&&console.warn(Se),window.Stripe){r(window.Stripe);return}try{var o=dt();o&&e?console.warn(Se):o||(o=ft(e)),o.addEventListener("load",function(){window.Stripe?r(window.Stripe):a(new Error("Stripe.js not available"))}),o.addEventListener("error",function(){a(new Error("Failed to load Stripe.js"))})}catch(s){a(s);return}})),J},ht=function(e,r,a){if(e===null)return null;var o=e.apply(void 0,r);return mt(o,a),o},$e=Promise.resolve().then(function(){return xt(null)}),Le=!1;$e.catch(function(t){Le||console.warn(t)});var vt=function(){for(var e=arguments.length,r=new Array(e),a=0;at.length)&&(e=t.length);for(var r=0,a=new Array(e);r provider."));return e},pe=l.createContext(null);pe.displayName="CartElementContext";var ot=function(e,r){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an provider."));return e},Oe=function(e){var r=e.stripe,a=e.options,s=e.children,o=l.useMemo(function(){return nt(r)},[r]),u=l.useState(null),p=Z(u,2),i=p[0],c=p[1],S=l.useState(null),w=Z(S,2),j=w[0],R=w[1],_=l.useState(function(){return{stripe:o.tag==="sync"?o.stripe:null,elements:o.tag==="sync"?o.stripe.elements(a):null}}),h=Z(_,2),C=h[0],O=h[1];l.useEffect(function(){var y=!0,F=function(L){O(function(B){return B.stripe?B:{stripe:L,elements:L.elements(a)}})};return o.tag==="async"&&!C.stripe?o.stripePromise.then(function(N){N&&y&&F(N)}):o.tag==="sync"&&!C.stripe&&F(o.stripe),function(){y=!1}},[o,C,a]);var $=ce(r);l.useEffect(function(){$!==null&&$!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[$,r]);var A=ce(a);return l.useEffect(function(){if(C.elements){var y=Re(a,A,["clientSecret","fonts"]);y&&C.elements.update(y)}},[a,A,C.elements]),l.useEffect(function(){var y=C.stripe;!y||!y._registerWrapper||!y.registerAppInfo||(y._registerWrapper({name:"react-stripe-js",version:"1.16.5"}),y.registerAppInfo({name:"react-stripe-js",version:"1.16.5",url:"https://stripe.com/docs/stripe-js/react"}))},[C.stripe]),l.createElement(ue.Provider,{value:C},l.createElement(pe.Provider,{value:{cart:i,setCart:c,cartState:j,setCartState:R}},s))};Oe.propTypes={stripe:d.any,options:d.object};var ee=function(e){var r=l.useContext(ue);return at(r,e)},be=function(e){var r=l.useContext(pe);return ot(r,e)},st=function(){var e=ee("calls useElements()"),r=e.elements;return r},it=function(){var e=ee("calls useStripe()"),r=e.stripe;return r};d.func.isRequired;var b=function(e,r,a){var s=!!a,o=l.useRef(a);l.useEffect(function(){o.current=a},[a]),l.useEffect(function(){if(!s||!e)return function(){};var u=function(){o.current&&o.current.apply(o,arguments)};return e.on(r,u),function(){e.off(r,u)}},[s,r,e,o])},ct=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},m=function(e,r){var a="".concat(ct(e),"Element"),s=function(i){var c=i.id,S=i.className,w=i.options,j=w===void 0?{}:w,R=i.onBlur,_=i.onFocus,h=i.onReady,C=i.onChange,O=i.onEscape,$=i.onClick,A=i.onLoadError,y=i.onLoaderStart,F=i.onNetworksChange,N=i.onCheckout,L=i.onLineItemClick,B=i.onConfirm,K=i.onCancel,f=i.onShippingAddressChange,E=i.onShippingRateChange,I=ee("mounts <".concat(a,">")),M=I.elements,H=l.useState(null),D=Z(H,2),v=D[0],X=D[1],P=l.useRef(null),U=l.useRef(null),de=be("mounts <".concat(a,">")),te=de.setCart,re=de.setCartState;b(v,"blur",R),b(v,"focus",_),b(v,"escape",O),b(v,"click",$),b(v,"loaderror",A),b(v,"loaderstart",y),b(v,"networkschange",F),b(v,"lineitemclick",L),b(v,"confirm",B),b(v,"cancel",K),b(v,"shippingaddresschange",f),b(v,"shippingratechange",E);var G;e==="cart"?G=function(me){re(me),h&&h(me)}:h&&(e==="payButton"?G=h:G=function(){h(v)}),b(v,"ready",G);var Be=e==="cart"?function(g){re(g),C&&C(g)}:C;b(v,"change",Be);var Ie=e==="cart"?function(g){re(g),N&&N(g)}:N;b(v,"checkout",Ie),l.useLayoutEffect(function(){if(P.current===null&&M&&U.current!==null){var g=M.create(e,j);e==="cart"&&te&&te(g),P.current=g,X(g),g.mount(U.current)}},[M,j,te]);var fe=ce(j);return l.useEffect(function(){if(P.current){var g=Re(j,fe,["paymentRequest"]);g&&P.current.update(g)}},[j,fe]),l.useLayoutEffect(function(){return function(){P.current&&(P.current.destroy(),P.current=null)}},[]),l.createElement("div",{id:c,className:S,ref:U})},o=function(i){ee("mounts <".concat(a,">")),be("mounts <".concat(a,">"));var c=i.id,S=i.className;return l.createElement("div",{id:c,className:S})},u=r?o:s;return u.propTypes={id:d.string,className:d.string,onChange:d.func,onBlur:d.func,onFocus:d.func,onReady:d.func,onEscape:d.func,onClick:d.func,onLoadError:d.func,onLoaderStart:d.func,onNetworksChange:d.func,onCheckout:d.func,onLineItemClick:d.func,onConfirm:d.func,onCancel:d.func,onShippingAddressChange:d.func,onShippingRateChange:d.func,options:d.object},u.displayName=a,u.__elementType=e,u},x=typeof window>"u";m("auBankAccount",x);m("card",x);var Ae=m("cardNumber",x),lt=m("cardExpiry",x),ut=m("cardCvc",x);m("fpxBank",x);m("iban",x);m("idealBank",x);m("p24Bank",x);m("epsBank",x);m("payment",x);m("payButton",x);m("paymentRequestButton",x);m("linkAuthentication",x);m("address",x);m("shippingAddress",x);m("cart",x);m("paymentMethodMessaging",x);m("affirmMessage",x);m("afterpayClearpayMessage",x);var _e="https://js.stripe.com/v3",pt=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Se="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",dt=function(){for(var e=document.querySelectorAll('script[src^="'.concat(_e,'"]')),r=0;r element.");return s.appendChild(a),a},mt=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"1.54.2",startTime:r})},J=null,xt=function(e){return J!==null||(J=new Promise(function(r,a){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe&&e&&console.warn(Se),window.Stripe){r(window.Stripe);return}try{var s=dt();s&&e?console.warn(Se):s||(s=ft(e)),s.addEventListener("load",function(){window.Stripe?r(window.Stripe):a(new Error("Stripe.js not available"))}),s.addEventListener("error",function(){a(new Error("Failed to load Stripe.js"))})}catch(o){a(o);return}})),J},ht=function(e,r,a){if(e===null)return null;var s=e.apply(void 0,r);return mt(s,a),s},$e=Promise.resolve().then(function(){return xt(null)}),Le=!1;$e.catch(function(t){Le||console.warn(t)});var vt=function(){for(var e=arguments.length,r=new Array(e),a=0;at.mode==="dark"?t.gray1:t.gray5}; .collapse-title { @@ -13,7 +13,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho padding: 30px 0 0 0; } } -`,gt=({title:t,children:e,active:r})=>{const[a,o]=k.useState(r||!1);return n.jsxs(yt,{children:[n.jsx("div",{className:"collapse-title",children:n.jsx(Me,{name:t,label:n.jsx("strong",{children:t}),checked:r||a,onChange:()=>o(!a)})}),a&&n.jsx("div",{className:"collapse-content",children:e})]})},bt=Y.div` +`,gt=({title:t,children:e,active:r})=>{const[a,s]=k.useState(r||!1);return n.jsxs(yt,{children:[n.jsx("div",{className:"collapse-title",children:n.jsx(Me,{name:t,label:n.jsx("strong",{children:t}),checked:r||a,onChange:()=>s(!a)})}),a&&n.jsx("div",{className:"collapse-content",children:e})]})},bt=Y.div` .input-wrapper { background-color: ${({theme:t})=>t.mode==="dark"?"#333":t.cardBackgroundColor}; &--custom { @@ -42,7 +42,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } } -`,se=Y.label` +`,oe=Y.label` position: absolute; top: 0; left: 0; @@ -51,7 +51,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho font-size: 10px; padding: 0 2px; background-color: ${({theme:t})=>t.mode==="dark"?"#000":t.white}; -`,St=({billingDetails:t,setBillingDetails:e})=>{const r=je(),{t:a}=le(),s=Ee.getFontFromTheme(r).fontFamily.split(",")[0].replace(/['"]/g,""),u=k.useMemo(()=>({style:{base:{fontFamily:s,backgroundColor:"transparent",padding:"11px 12px 13px",border:"1px solid red",color:r.mode==="dark"?r.white:r.gray1,fontSize:"12px","::placeholder":{color:r.mode==="dark"?"#c3c3c3":r.gray1}},invalid:{color:"#ff0000"}}}),[]);return n.jsxs(bt,{children:[n.jsxs(T.Row,{children:[n.jsx(T.Col,{lg:6,children:n.jsx("div",{className:"input-wrapper--custom",children:n.jsx(Ue.Input,{label:a("Cart.FullName"),type:"text",onChange:p=>e({...t,name:p.currentTarget.value}),value:t.name})})}),n.jsx(T.Col,{lg:6,children:n.jsxs("div",{className:"input-wrapper",children:[n.jsx(Ae,{options:u,id:"cardNumber"}),n.jsx(se,{htmlFor:"cardNumber",children:a("Card number")})]})})]}),n.jsxs(T.Row,{children:[n.jsx(T.Col,{lg:6,children:n.jsxs("div",{className:"input-wrapper",children:[n.jsx(lt,{options:u,id:"cardExpiry"}),n.jsx(se,{htmlFor:"cardExpiry",children:a("Expiration date")})]})}),n.jsx(T.Col,{lg:6,children:n.jsxs("div",{className:"input-wrapper",children:[n.jsx(ut,{options:u,id:"cardCVC"}),n.jsx(se,{htmlFor:"cardCVC",children:"CVC"})]})})]})]})},jt=Y.section` +`,St=({billingDetails:t,setBillingDetails:e})=>{const r=je(),{t:a}=le(),o=Ee.getFontFromTheme(r).fontFamily.split(",")[0].replace(/['"]/g,""),u=k.useMemo(()=>({style:{base:{fontFamily:o,backgroundColor:"transparent",padding:"11px 12px 13px",border:"1px solid red",color:r.mode==="dark"?r.white:r.gray1,fontSize:"12px","::placeholder":{color:r.mode==="dark"?"#c3c3c3":r.gray1}},invalid:{color:"#ff0000"}}}),[]);return n.jsxs(bt,{children:[n.jsxs(T.Row,{children:[n.jsx(T.Col,{lg:6,children:n.jsx("div",{className:"input-wrapper--custom",children:n.jsx(Ue.Input,{label:a("Cart.FullName"),type:"text",onChange:p=>e({...t,name:p.currentTarget.value}),value:t.name})})}),n.jsx(T.Col,{lg:6,children:n.jsxs("div",{className:"input-wrapper",children:[n.jsx(Ae,{options:u,id:"cardNumber"}),n.jsx(oe,{htmlFor:"cardNumber",children:a("Card number")})]})})]}),n.jsxs(T.Row,{children:[n.jsx(T.Col,{lg:6,children:n.jsxs("div",{className:"input-wrapper",children:[n.jsx(lt,{options:u,id:"cardExpiry"}),n.jsx(oe,{htmlFor:"cardExpiry",children:a("Expiration date")})]})}),n.jsx(T.Col,{lg:6,children:n.jsxs("div",{className:"input-wrapper",children:[n.jsx(ut,{options:u,id:"cardCVC"}),n.jsx(oe,{htmlFor:"cardCVC",children:"CVC"})]})})]})]})},jt=Y.section` .cart-success-container { font-family: ${({theme:t})=>t.font}; background: #f8f8f8; @@ -81,7 +81,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin: 0.8em; } } -`,Et=()=>{const{t}=le(),{push:e}=we(),{fetchProgress:r}=k.useContext(ke.EscolaLMSContext);return k.useEffect(()=>{r()},[]),n.jsx(Pe,{metaTitle:t("Cart.Cart"),children:n.jsx(jt,{children:n.jsx(Ne,{children:n.jsxs("div",{className:"cart-success-container",children:[n.jsx("h2",{className:"cart-success-title",children:t("Cart.ThankYouTitle")}),n.jsx("p",{className:"cart-success-text",children:t("Cart.ThankYouText")}),n.jsxs("div",{className:"cart-success-buttons",children:[n.jsx(oe.Button,{mode:"primary",onClick:()=>e(V.myProfile),children:t("Menu.Profile")}),n.jsx(oe.Button,{mode:"primary",onClick:()=>e(V.courses),children:t("Menu.Courses")})]})]})})})})},wt=Y.section` +`,Et=()=>{const{t}=le(),{push:e}=we(),{fetchProgress:r}=k.useContext(ke.EscolaLMSContext);return k.useEffect(()=>{r()},[]),n.jsx(Pe,{metaTitle:t("Cart.Cart"),children:n.jsx(jt,{children:n.jsx(Ne,{children:n.jsxs("div",{className:"cart-success-container",children:[n.jsx("h2",{className:"cart-success-title",children:t("Cart.ThankYouTitle")}),n.jsx("p",{className:"cart-success-text",children:t("Cart.ThankYouText")}),n.jsxs("div",{className:"cart-success-buttons",children:[n.jsx(se.Button,{mode:"primary",onClick:()=>e(V.myProfile),children:t("Menu.Profile")}),n.jsx(se.Button,{mode:"primary",onClick:()=>e(V.courses),children:t("Menu.Courses")})]})]})})})})},wt=Y.section` .module-wrapper { margin-bottom: 55px; @media (max-width: 991px) { @@ -148,4 +148,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } } -`,kt=({stripeKey:t})=>{var L,B,K;const{user:e,cart:r,fetchCart:a,removeFromCart:o,payWithStripe:s,fetchCourses:u,courses:p,realizeVoucher:i}=k.useContext(ke.EscolaLMSContext),{t:c}=le(),{push:S,location:w}=we(),j=it(),R=ot(),[_,h]=k.useState(!1),[C,O]=k.useState({name:""}),[$,A]=k.useState(r.value.additional_discount>0?"granted":void 0),y=t.includes("_test_");k.useEffect(()=>{!e.loading&&!e.value?S(V.login):(u({per_page:6}),a())},[]);const F=k.useCallback(f=>{h(!0),s(f,"https://demo-stage.escolalms.com/#/user/my-profile").then(()=>{h(!1),S("/cart?status=success")}).catch(()=>{q.error(`${c("UnexpectedError")}`),h(!1)}).finally(()=>h(!1))},[]),N=()=>{if(!C.name){q.error(`${c("Cart.EmptyNameWarning")}`);return}if(!j||!R){q.error(`${c("UnexpectedError")}`);return}const f=R.getElement(Ae);f&&h(!0),f&&j.createPaymentMethod({type:"card",card:f,billing_details:C}).then(E=>{var I;E.error?(h(!1),q.error(E.error.message),console.log(E.error)):(F((I=E==null?void 0:E.paymentMethod)==null?void 0:I.id),setTimeout(()=>{h(!1)},3e3))}).catch(()=>{h(!1),q.error(`${c("UnexpectedError")}`)})};return w.search.includes("?status=success")?n.jsx(Et,{}):n.jsx(Pe,{metaTitle:c("Cart.Cart"),children:n.jsxs(wt,{children:[n.jsx(Ne,{children:((L=r.value)==null?void 0:L.items.length)!==0?n.jsxs(T.Row,{children:[n.jsxs(T.Col,{lg:9,children:[n.jsx(Ke,{items:[n.jsx(ze,{to:V.home,children:c("Home")}),n.jsx(ne.Text,{size:"12",children:c("Cart.YourCart")})]}),n.jsxs("div",{className:"module-wrapper",children:[n.jsx(W.Title,{level:4,children:c("Cart.YourCart")}),n.jsx("div",{className:"products-container",children:(B=r.value)==null?void 0:B.items.map(f=>{var E,I,M,H,D,v,X,P;return n.jsx(De.CheckoutCard,{mobile:ie,img:{src:((E=f.product)==null?void 0:E.poster_url)||He,alt:((I=f.product)==null?void 0:I.name)||""},title:(M=f.product)==null?void 0:M.name,price:`${ae((H=f.product)==null?void 0:H.price,(D=f.product)==null?void 0:D.tax_rate)} zł`,oldPrice:(v=f.product)!=null&&v.price_old?`${ae((X=f.product)==null?void 0:X.price_old,(P=f.product)==null?void 0:P.tax_rate)} zł`:void 0,handleDelete:()=>{var U;return o(Number((U=f.product)==null?void 0:U.id))}},f.id)})})]}),n.jsxs("div",{className:"module-wrapper",children:[n.jsx(W.Title,{level:4,children:c("Cart.ChoosePaymentMethod")}),n.jsxs("div",{className:"payments-form",children:[n.jsx("div",{className:"collapse-wrapper",children:n.jsx(gt,{active:!0,title:c("Cart.CreditCard"),children:n.jsx(St,{setBillingDetails:O,billingDetails:C})})}),y&&n.jsx("div",{className:"card-info",children:n.jsxs(ne.Text,{size:"14",children:[c("Cart.UseTestCard"),":"," ",n.jsx(qe.Link,{href:"https://docs.wellms.io/getting-started/demo.html",target:"_blank",rel:"noreferrer nofollow",children:c("Cart.LearnMore")})]})})]})]}),n.jsxs("section",{className:"slider-section",children:[n.jsx(W.Title,{level:4,children:c("Cart.Interest")}),p&&p.list&&n.jsx(xe,{courses:p.list.data})]})]}),n.jsxs(T.Col,{lg:3,children:[n.jsx(W.Title,{style:{marginBottom:20},level:4,as:"h3",children:c("Cart.Summary")}),n.jsx("div",{className:"summary-box-wrapper",children:n.jsx(Ct.CartCard,{mobile:ie,onBuyClick:()=>N(),id:1,title:`${ae(Number(((K=r.value)==null?void 0:K.total_with_tax)||0))} zł`,discount:{onDiscountClick:f=>i(f).then(E=>{E.success?(A("granted"),a()):A("error")}).catch(()=>{A("error")}),onDeleteDiscountClick:()=>console.log("clicked"),status:$}})})]})]}):n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"empty-cart",children:[n.jsx(W.Title,{level:3,children:c("Cart.EmptyCartTitle")}),n.jsx(ne.Text,{children:c("Cart.EmptyCartText")}),n.jsx(oe.Button,{mode:"secondary",onClick:()=>S(V.courses),children:c("Cart.EmptyCartBtnText")})]}),n.jsxs("section",{className:"slider-section",children:[n.jsx(W.Title,{level:4,children:c("Cart.Interest")}),p&&p.list&&n.jsx(xe,{courses:p.list.data})]})]})}),(r.loading||_)&&n.jsx(Ye,{})]})})},It=()=>{var u,p,i;const{config:t}=k.useContext(Ve.EscolaLMSContext),e=c=>vt(c),r=(p=(u=t==null?void 0:t.value)==null?void 0:u.escolalms_payments)==null?void 0:p.drivers,a=(i=r==null?void 0:r.stripe)==null?void 0:i.publishable_key,o=je(),s=Ee.getFontFromTheme(o);return n.jsx(Oe,{stripe:e(a),options:{fonts:[{cssSrc:s.links[0]}]},children:n.jsx(kt,{stripeKey:a})})};export{It as default}; +`,kt=({stripeKey:t})=>{var L,B,K;const{user:e,cart:r,fetchCart:a,removeFromCart:s,payWithStripe:o,fetchCourses:u,courses:p,realizeVoucher:i}=k.useContext(ke.EscolaLMSContext),{t:c}=le(),{push:S,location:w}=we(),j=it(),R=st(),[_,h]=k.useState(!1),[C,O]=k.useState({name:""}),[$,A]=k.useState(r.value.additional_discount>0?"granted":void 0),y=t.includes("_test_");k.useEffect(()=>{!e.loading&&!e.value?S(V.login):(u({per_page:6}),a())},[]);const F=k.useCallback(f=>{h(!0),o(f,"https://demo-stage.escolalms.com/#/user/my-profile").then(()=>{h(!1),S("/cart?status=success")}).catch(()=>{q.error(`${c("UnexpectedError")}`),h(!1)}).finally(()=>h(!1))},[]),N=()=>{if(!C.name){q.error(`${c("Cart.EmptyNameWarning")}`);return}if(!j||!R){q.error(`${c("UnexpectedError")}`);return}const f=R.getElement(Ae);f&&h(!0),f&&j.createPaymentMethod({type:"card",card:f,billing_details:C}).then(E=>{var I;E.error?(h(!1),q.error(E.error.message),console.log(E.error)):(F((I=E==null?void 0:E.paymentMethod)==null?void 0:I.id),setTimeout(()=>{h(!1)},3e3))}).catch(()=>{h(!1),q.error(`${c("UnexpectedError")}`)})};return w.search.includes("?status=success")?n.jsx(Et,{}):n.jsx(Pe,{metaTitle:c("Cart.Cart"),children:n.jsxs(wt,{children:[n.jsx(Ne,{children:((L=r.value)==null?void 0:L.items.length)!==0?n.jsxs(T.Row,{children:[n.jsxs(T.Col,{lg:9,children:[n.jsx(Ke,{items:[n.jsx(ze,{to:V.home,children:c("Home")}),n.jsx(ne.Text,{size:"12",children:c("Cart.YourCart")})]}),n.jsxs("div",{className:"module-wrapper",children:[n.jsx(W.Title,{level:4,children:c("Cart.YourCart")}),n.jsx("div",{className:"products-container",children:(B=r.value)==null?void 0:B.items.map(f=>{var E,I,M,H,D,v,X,P;return n.jsx(De.CheckoutCard,{mobile:ie,img:{src:((E=f.product)==null?void 0:E.poster_url)||He,alt:((I=f.product)==null?void 0:I.name)||""},title:(M=f.product)==null?void 0:M.name,price:`${ae((H=f.product)==null?void 0:H.price,(D=f.product)==null?void 0:D.tax_rate)} zł`,oldPrice:(v=f.product)!=null&&v.price_old?`${ae((X=f.product)==null?void 0:X.price_old,(P=f.product)==null?void 0:P.tax_rate)} zł`:void 0,handleDelete:()=>{var U;return s(Number((U=f.product)==null?void 0:U.id))}},f.id)})})]}),n.jsxs("div",{className:"module-wrapper",children:[n.jsx(W.Title,{level:4,children:c("Cart.ChoosePaymentMethod")}),n.jsxs("div",{className:"payments-form",children:[n.jsx("div",{className:"collapse-wrapper",children:n.jsx(gt,{active:!0,title:c("Cart.CreditCard"),children:n.jsx(St,{setBillingDetails:O,billingDetails:C})})}),y&&n.jsx("div",{className:"card-info",children:n.jsxs(ne.Text,{size:"14",children:[c("Cart.UseTestCard"),":"," ",n.jsx(qe.Link,{href:"https://docs.wellms.io/getting-started/demo.html",target:"_blank",rel:"noreferrer nofollow",children:c("Cart.LearnMore")})]})})]})]}),n.jsxs("section",{className:"slider-section",children:[n.jsx(W.Title,{level:4,children:c("Cart.Interest")}),p&&p.list&&n.jsx(xe,{courses:p.list.data})]})]}),n.jsxs(T.Col,{lg:3,children:[n.jsx(W.Title,{style:{marginBottom:20},level:4,as:"h3",children:c("Cart.Summary")}),n.jsx("div",{className:"summary-box-wrapper",children:n.jsx(Ct.CartCard,{mobile:ie,onBuyClick:()=>N(),id:1,title:`${ae(Number(((K=r.value)==null?void 0:K.total_with_tax)||0))} zł`,discount:{onDiscountClick:f=>i(f).then(E=>{E.success?(A("granted"),a()):A("error")}).catch(()=>{A("error")}),onDeleteDiscountClick:()=>console.log("clicked"),status:$}})})]})]}):n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"empty-cart",children:[n.jsx(W.Title,{level:3,children:c("Cart.EmptyCartTitle")}),n.jsx(ne.Text,{children:c("Cart.EmptyCartText")}),n.jsx(se.Button,{mode:"secondary",onClick:()=>S(V.courses),children:c("Cart.EmptyCartBtnText")})]}),n.jsxs("section",{className:"slider-section",children:[n.jsx(W.Title,{level:4,children:c("Cart.Interest")}),p&&p.list&&n.jsx(xe,{courses:p.list.data})]})]})}),(r.loading||_)&&n.jsx(Ye,{})]})})},Ft=()=>{var u,p,i;const{config:t}=k.useContext(Ve.EscolaLMSContext),e=c=>vt(c),r=(p=(u=t==null?void 0:t.value)==null?void 0:u.escolalms_payments)==null?void 0:p.drivers,a=(i=r==null?void 0:r.stripe)==null?void 0:i.publishable_key,s=je(),o=Ee.getFontFromTheme(s);return n.jsx(Oe,{stripe:e(a),options:{fonts:[{cssSrc:o.links[0]}]},children:n.jsx(kt,{stripeKey:a})})};export{Ft as default}; diff --git a/assets/index-Dww5sJHm.js b/assets/index-BVscCFY0.js similarity index 80% rename from assets/index-Dww5sJHm.js rename to assets/index-BVscCFY0.js index 31cd2a94..905e40b7 100644 --- a/assets/index-Dww5sJHm.js +++ b/assets/index-BVscCFY0.js @@ -1 +1 @@ -import{i as c,k as l,f as u,b as p,l as r,j as s,o as d,C as m,w as a,A as x,n as h}from"./index-Bjk_45MO.js";import{A as j,R}from"./AuthWrapper-D9ihPE42.js";const S=()=>{const{push:t}=c(),{search:e}=l(),n=e&&e.split("&")[0].split("=")[1],o=e&&e.split("&")[1].split("=")[1],{t:i}=u();return p.useEffect(()=>{!o&&t(r.home)},[]),s.jsx(d,{children:s.jsx(j,{children:s.jsx(m,{children:s.jsx(a.Row,{justify:"center",children:s.jsx(a.Col,{md:12,lg:12,children:s.jsx(R.ResetPasswordForm,{onSecondStepSuccess:()=>{t(r.login),x.success(i("LoginPage.ForgotSuccessStep2"))},secondStep:!0,mobile:h,return_url:"#/reset-password",token:o,email:n})})})})})})};export{S as default}; +import{i as c,k as l,f as u,b as p,l as r,j as s,o as d,C as m,w as a,A as x,n as h}from"./index-Cei2V9tG.js";import{A as j,R}from"./AuthWrapper-BduVzxWA.js";const S=()=>{const{push:t}=c(),{search:e}=l(),n=e&&e.split("&")[0].split("=")[1],o=e&&e.split("&")[1].split("=")[1],{t:i}=u();return p.useEffect(()=>{!o&&t(r.home)},[]),s.jsx(d,{children:s.jsx(j,{children:s.jsx(m,{children:s.jsx(a.Row,{justify:"center",children:s.jsx(a.Col,{md:12,lg:12,children:s.jsx(R.ResetPasswordForm,{onSecondStepSuccess:()=>{t(r.login),x.success(i("LoginPage.ForgotSuccessStep2"))},secondStep:!0,mobile:h,return_url:"#/reset-password",token:o,email:n})})})})})})};export{S as default}; diff --git a/assets/index-BYwjnrZ6.js b/assets/index-Bbq3XPwm.js similarity index 72% rename from assets/index-BYwjnrZ6.js rename to assets/index-Bbq3XPwm.js index a7d4e0b3..a0a51c2f 100644 --- a/assets/index-BYwjnrZ6.js +++ b/assets/index-Bbq3XPwm.js @@ -1,11 +1,11 @@ -import{r as a,D as L,f as k,i as _,j as s,x as Q,T as A,s as I,af as W,v,q as y,ah as G,A as K,aX as Z,Z as U,aY as X,aZ as Y,a_ as J,m as V,n as $,L as F,h as ee,k as se,l as te,w as N,o as oe,C as re}from"./index-Bjk_45MO.js";import{T as ae}from"./Tabs-DeLQ6nIG.js";import{C as ne}from"./index-DdavEOvA.js";import{R as ie}from"./ResponsiveImage-wYxl3kWJ.js";import{C as le}from"./index-ByR6k3wq.js";import{C as de}from"./index-BNTGN6Sw.js";import{R as ce}from"./index-Bz9IQ-KJ.js";import{b as me,Q as ue}from"./questionnaires-BlwwmS39.js";import{u as pe}from"./useDownloadCertificate-CojJpn-m.js";import{u as ge}from"./useRoles-DhUVqcxA.js";import{u as H}from"./useSearchParams-DawJFBcb.js";import{P as xe}from"./index-DXgEk6c6.js";import{S as he}from"./swiper-B3oKVkBy.js";import{S as B}from"./swiper-react-CO9r4Bsk.js";import{C as D}from"./CourseCard-Cly8Zjem.js";import"./base-C7euzKDi.js";import"./index-BMKx56cF.js";const fe=({courseData:e,visible:d,onClose:t})=>{const{sendProgress:c}=a.useContext(L.EscolaLMSContext),{t:o}=k(),{push:i}=_(),p=a.useCallback(async()=>{await c(e.course.id,e.progress.map(({topic_id:g})=>({topic_id:g,status:0}))),i(`/course/${e.course.id}`)},[e.course.id,e.progress,c,i]);return s.jsx(Q.Modal,{animation:"zoom",maskAnimation:"fade",destroyOnClose:!0,visible:d,onClose:t,children:s.jsxs(s.Fragment,{children:[s.jsx(A.Title,{level:4,children:o("ResetProgressModal.Continue")}),s.jsxs(I.Text,{children:[" ",o("ResetProgressModal.RestartCourse")]}),s.jsxs(W,{$gap:16,children:[s.jsx(v.Button,{mode:"primary",onClick:p,children:o("ResetProgressModal.WantContinue")}),s.jsx(v.Button,{mode:"primary",onClick:t,children:o("ResetProgressModal.Cancel")})]})]})})},Ce=y(G)` +import{r as a,D as L,f as k,i as _,j as s,x as Q,T as A,s as I,af as W,v,q as y,ah as G,A as K,aX as Z,Z as U,aY as X,aZ as Y,a_ as J,m as V,n as $,L as F,h as ee,k as se,l as te,w as N,o as oe,C as re}from"./index-Cei2V9tG.js";import{T as ae}from"./Tabs-DXnc7TjY.js";import{C as ne}from"./index-CO3xj3k-.js";import{R as ie}from"./ResponsiveImage-CUm6fM86.js";import{C as le}from"./index-DOgv2ATl.js";import{C as de}from"./index-KwSvHpAm.js";import{R as ce}from"./index-DhlBLuXk.js";import{b as me,Q as ue}from"./questionnaires-DuttoWDO.js";import{u as pe}from"./useDownloadCertificate-B4BL8h3F.js";import{u as ge}from"./useRoles-Fnr-v6hU.js";import{u as H}from"./useSearchParams-DExUgHRa.js";import{P as xe}from"./index-CULsm7V8.js";import{S as he}from"./swiper-B0_gRAjE.js";import{S as B}from"./swiper-react-Dxth3Uzi.js";import{C as D}from"./CourseCard-CUpRcofn.js";import"./base-C7euzKDi.js";import"./a11y-B_OcGQFt.js";import"./index-D-BQVsc5.js";const fe=({courseData:e,visible:d,onClose:t})=>{const{sendProgress:c}=a.useContext(L.EscolaLMSContext),{t:o}=k(),{push:i}=_(),g=a.useCallback(async()=>{await c(e.course.id,e.progress.map(({topic_id:p})=>({topic_id:p,status:0}))),i(`/course/${e.course.id}`)},[e.course.id,e.progress,c,i]);return s.jsx(Q.Modal,{animation:"zoom",maskAnimation:"fade",destroyOnClose:!0,visible:d,onClose:t,children:s.jsxs(s.Fragment,{children:[s.jsx(A.Title,{level:4,children:o("ResetProgressModal.Continue")}),s.jsxs(I.Text,{children:[" ",o("ResetProgressModal.RestartCourse")]}),s.jsxs(W,{$gap:16,children:[s.jsx(v.Button,{mode:"primary",onClick:g,children:o("ResetProgressModal.WantContinue")}),s.jsx(v.Button,{mode:"primary",onClick:t,children:o("ResetProgressModal.Cancel")})]})]})})},Ce=y(G)` gap: 6px; margin: 0; width: 100%; p { margin: 0; } -`,je=({courseId:e})=>{const{fetchCertificate:d}=a.useContext(L.EscolaLMSContext),{downloadCertificate:t,loadingId:c}=pe(),{t:o}=k(),i=a.useCallback(async()=>{var p;try{const g=await d(e);g.success&&t(e,(p=g.data)==null?void 0:p.title)}catch(g){K.error(`${o("UnexpectedError")}`),console.log(g)}},[e,t,d,o]);return s.jsxs(z,{onClick:i,children:[s.jsx(Z,{})," ",o("MyProfilePage.DownloadCertificate")," ",c>-1&&s.jsx(U,{width:"10px",height:"10px"})]})},z=y.button` +`,je=({courseId:e})=>{const{fetchCertificate:d}=a.useContext(L.EscolaLMSContext),{downloadCertificate:t,loadingId:c}=pe(),{t:o}=k(),i=a.useCallback(async()=>{var g;try{const p=await d(e);p.success&&t(p.data.id,(g=p.data)==null?void 0:g.title)}catch(p){K.error(`${o("UnexpectedError")}`),console.log(p)}},[e,t,d,o]);return s.jsxs(z,{onClick:i,children:[s.jsx(Z,{})," ",o("MyProfilePage.DownloadCertificate")," ",c>-1&&s.jsx(U,{width:"10px",height:"10px"})]})},z=y.button` all: unset; text-decoration: underline; font-size: 13px; @@ -16,7 +16,7 @@ import{r as a,D as L,f as k,i as _,j as s,x as Q,T as A,s as I,af as W,v,q as y, gap: 5px; `,Pe=y.div` margin-top: 5px; -`,ye=({courseData:e,courseProgress:d})=>{const[t,c]=a.useState(void 0),[o,i]=a.useState(!1),{fetchQuestionnaires:p,fetchQuestionnaire:g}=a.useContext(L.EscolaLMSContext),[m,h]=a.useState({show:!1,step:0,loading:!1}),{t:w}=k(),R={isDone:e.finish_date,isActive:e.start_date&&!e.finish_date,isNotStarted:!e.start_date&&!e.finish_date},x=a.useMemo(()=>e.deadline?new Date(e.deadline):null,[e.deadline]),M=x?x.getTime()x?X(x):null,[x]),[f,S]=a.useState([]),b=a.useCallback(()=>{if(c(void 0),h(u=>({...u,show:!1})),m.step({...C,step:C.step+1}));const u=setTimeout(()=>{h(C=>({...C,show:!0}))},500);return()=>clearTimeout(u)}},[f,m.step]);return a.useEffect(()=>{t&&me({courseId:t,fetchQuestionnaire:g,fetchQuestionnaires:p,onSucces:u=>{S(u)},onFinish:()=>h(u=>({...u,loading:!1}))})},[t]),s.jsxs(Ce,{children:[R.isDone&&s.jsx(je,{courseId:e.course.id}),d===100&&s.jsxs(s.Fragment,{children:[s.jsxs(z,{onClick:()=>{c(e.course.id),h(u=>({...u,show:!0,loading:!0}))},children:[s.jsx(Y,{})," ",w("MyProfilePage.RateCourse")," ",m.loading&&s.jsx(U,{width:"10px",height:"10px"})]}),s.jsx(Pe,{children:!M&&R.isDone&&s.jsx(v.Button,{mode:"secondary",onClick:()=>i(!0),children:w("MyProfilePage.ResetCourseProgress")})})]}),!!M&&l!==null&&l[0]<0&&s.jsxs(I.Text,{size:"12",children:[w("MyProfilePage.AccessCourseExpired")," ",J.format(l[0],l[1])]}),s.jsx(fe,{courseData:e,visible:o,onClose:()=>i(!1)}),m.show&&t&&!m.loading&&(f.length?s.jsx(s.Fragment,{children:s.jsx(ce,{course:ue.COURSE,courseId:t,visible:m.show,onClose:b,questionnaire:f[m.step],onFinish:()=>{}})}):s.jsx(Q.Modal,{onClose:b,visible:m.show,animation:"zoom",maskAnimation:"fade",destroyOnClose:!0,width:468,children:s.jsx(A.Title,{children:w("CourseProgram.CourseRated")})}))]})},O=({course:e})=>{const d=_();return s.jsx(le,{children:s.jsx(V.NewCourseCard,{mobile:$,id:e.id,image:s.jsx(F,{to:`/course/${e.id}`,children:e.image_path?s.jsx(ie.ResponsiveImage,{path:e.image_path,alt:e.title,srcSizes:[300,600,900]}):s.jsx(ne,{})}),title:s.jsx(F,{to:`/courses/${e.id}`,className:"title",children:s.jsx(A.Title,{level:4,as:"h2",children:e.title})}),categories:s.jsx(de,{categories:e.categories,onCategoryClick:t=>{d.push(`/courses/?categories[]=${t}`)}}),actions:e.courseData&&s.jsx(ye,{courseData:e.courseData,courseProgress:e.progress||0}),progress:e.progress&&e.progress!==100&&!isNaN(e.progress)?{currentProgress:e.progress,maxProgress:100}:void 0})})},we=y.div` +`,ye=({courseData:e,courseProgress:d})=>{const[t,c]=a.useState(void 0),[o,i]=a.useState(!1),{fetchQuestionnaires:g,fetchQuestionnaire:p}=a.useContext(L.EscolaLMSContext),[m,h]=a.useState({show:!1,step:0,loading:!1}),{t:w}=k(),R={isDone:e.finish_date,isActive:e.start_date&&!e.finish_date,isNotStarted:!e.start_date&&!e.finish_date},x=a.useMemo(()=>e.deadline?new Date(e.deadline):null,[e.deadline]),M=x?x.getTime()x?X(x):null,[x]),[f,S]=a.useState([]),b=a.useCallback(()=>{if(c(void 0),h(u=>({...u,show:!1})),m.step({...C,step:C.step+1}));const u=setTimeout(()=>{h(C=>({...C,show:!0}))},500);return()=>clearTimeout(u)}},[f,m.step]);return a.useEffect(()=>{t&&me({courseId:t,fetchQuestionnaire:p,fetchQuestionnaires:g,onSucces:u=>{S(u)},onFinish:()=>h(u=>({...u,loading:!1}))})},[t]),s.jsxs(Ce,{children:[R.isDone&&s.jsx(je,{courseId:e.course.id}),d===100&&s.jsxs(s.Fragment,{children:[s.jsxs(z,{onClick:()=>{c(e.course.id),h(u=>({...u,show:!0,loading:!0}))},children:[s.jsx(Y,{})," ",w("MyProfilePage.RateCourse")," ",m.loading&&s.jsx(U,{width:"10px",height:"10px"})]}),s.jsx(Pe,{children:!M&&R.isDone&&s.jsx(v.Button,{mode:"secondary",onClick:()=>i(!0),children:w("MyProfilePage.ResetCourseProgress")})})]}),!!M&&l!==null&&l[0]<0&&s.jsxs(I.Text,{size:"12",children:[w("MyProfilePage.AccessCourseExpired")," ",J.format(l[0],l[1])]}),s.jsx(fe,{courseData:e,visible:o,onClose:()=>i(!1)}),m.show&&t&&!m.loading&&(f.length?s.jsx(s.Fragment,{children:s.jsx(ce,{course:ue.COURSE,courseId:t,visible:m.show,onClose:b,questionnaire:f[m.step],onFinish:()=>{}})}):s.jsx(Q.Modal,{onClose:b,visible:m.show,animation:"zoom",maskAnimation:"fade",destroyOnClose:!0,width:468,children:s.jsx(A.Title,{children:w("CourseProgram.CourseRated")})}))]})},O=({course:e})=>{const d=_();return s.jsx(le,{children:s.jsx(V.NewCourseCard,{mobile:$,id:e.id,image:s.jsx(F,{to:`/course/${e.id}`,children:e.image_path?s.jsx(ie.ResponsiveImage,{path:e.image_path,alt:e.title,srcSizes:[300,600,900]}):s.jsx(ne,{})}),title:s.jsx(F,{to:`/courses/${e.id}`,className:"title",children:s.jsx(A.Title,{level:4,as:"h2",children:e.title})}),categories:s.jsx(de,{categories:e.categories,onCategoryClick:t=>{d.push(`/courses/?categories[]=${t}`)}}),actions:e.courseData&&s.jsx(ye,{courseData:e.courseData,courseProgress:e.progress||0}),progress:e.progress&&e.progress!==100&&!isNaN(e.progress)?{currentProgress:e.progress,maxProgress:100}:void 0})})},we=y.div` overflow: hidden; .course-wrapper { margin-bottom: 24px; @@ -43,7 +43,7 @@ import{r as a,D as L,f as k,i as _,j as s,x as Q,T as A,s as I,af as W,v,q as y, display: flex; justify-content: center; margin-top: 50px; -`,E=({filter:e=P.ALL})=>{var u,C;const{fetchMyAuthoredCourses:d,myAuthoredCourses:t,fetchPaginatedProgress:c,paginatedProgress:o}=a.useContext(ee.EscolaLMSContext),[i,p]=a.useState([]),g=_(),{t:m}=k(),{setQueryParam:h}=H(),{search:w}=se(),R=new URLSearchParams(w),x=R.get("page"),M=R.get("status"),l=a.useMemo(()=>{var r,n;return e===P.AUTHORED?(r=t.list)==null?void 0:r.meta:(n=o.list)==null?void 0:n.meta},[e,(u=t.list)==null?void 0:u.meta,(C=o.list)==null?void 0:C.meta]),f=a.useCallback(r=>{let n="";switch(r){case 1:case 5:break;case 2:n="started";break;case 4:n="finished";break}return n},[]);a.useEffect(()=>{c({page:x?parseInt(x):1,per_page:8,status:f(Number(M))}),(e===P.ALL||e===P.AUTHORED)&&d()},[c,e,d,x,M,f]);const S=a.useMemo(()=>{var r;return(((r=o.list)==null?void 0:r.data)||[]).reduce((n,j)=>({...n,[j.course.id?j.course.id:-1]:Math.round((j.progress||[]).reduce((T,q)=>q.status===1?T+1:T,0)/j.progress.length*100)}),{})},[o]),b=a.useCallback(r=>r.map(n=>({...n.course,courseData:n,progress:S[n.course.id?n.course.id:-1]})),[S]);return a.useEffect(()=>{var r,n,j,T;e!==P.AUTHORED?p(b(((r=o.list)==null?void 0:r.data)||[])):e===P.AUTHORED?p(((n=t.list)==null?void 0:n.data)||[]):p([...b(((j=o.list)==null?void 0:j.data)||[]),...((T=t.list)==null?void 0:T.data)||[]])},[e,o,t,b]),s.jsxs(we,{children:[i.length===0&&!o.loading&&!t.loading&&s.jsxs(be,{children:[s.jsx(A.Title,{level:3,children:m("MyProfilePage.EmptyCoursesTitle")}),s.jsx(I.Text,{className:"small-text",children:m("MyProfilePage.EmptyCoursesText")}),s.jsx(v.Button,{onClick:()=>g.push(te.courses),mode:"secondary",children:m("MyProfilePage.EmptyCoursesBtnText")})]}),$?s.jsxs(he,{children:[o.loading&&t.loading&&Array.from({length:8}).map((r,n)=>s.jsx(B,{className:"single-slide",children:s.jsx(D,{})},`skeleton-card-${n}`)),(!o.loading||!t.loading)&&i&&i.map(r=>s.jsx(B,{className:"single-slide",children:s.jsx(O,{course:r})},r.id))]}):s.jsxs(s.Fragment,{children:[s.jsx(N.Row,{children:o.loading||t.loading?Array.from({length:8}).map((r,n)=>s.jsx(N.Col,{md:3,children:s.jsx(D,{})},`skeleton-card-${n}`)):i.map(r=>s.jsx(N.Col,{md:3,children:s.jsx(O,{course:r})},r.id))}),s.jsx(Re,{children:s.jsx(xe,{total:(l==null?void 0:l.total)||0,perPage:Number((l==null?void 0:l.per_page)||0),currentPage:Number((l==null?void 0:l.current_page)||1),onPage:r=>{h("page",`${r}`),window==null||window.scrollTo(0,0)}})})]})]})};var P=(e=>(e.IN_PROGRESS="inProgress",e.PLANNED="planned",e.FINISHED="finished",e.AUTHORED="authored",e.ALL="all",e))(P||{});const Me=y.section` +`,E=({filter:e=P.ALL})=>{var u,C;const{fetchMyAuthoredCourses:d,myAuthoredCourses:t,fetchPaginatedProgress:c,paginatedProgress:o}=a.useContext(ee.EscolaLMSContext),[i,g]=a.useState([]),p=_(),{t:m}=k(),{setQueryParam:h}=H(),{search:w}=se(),R=new URLSearchParams(w),x=R.get("page"),M=R.get("status"),l=a.useMemo(()=>{var r,n;return e===P.AUTHORED?(r=t.list)==null?void 0:r.meta:(n=o.list)==null?void 0:n.meta},[e,(u=t.list)==null?void 0:u.meta,(C=o.list)==null?void 0:C.meta]),f=a.useCallback(r=>{let n="";switch(r){case 1:case 5:break;case 2:n="started";break;case 4:n="finished";break}return n},[]);a.useEffect(()=>{c({page:x?parseInt(x):1,per_page:8,status:f(Number(M))}),(e===P.ALL||e===P.AUTHORED)&&d()},[c,e,d,x,M,f]);const S=a.useMemo(()=>{var r;return(((r=o.list)==null?void 0:r.data)||[]).reduce((n,j)=>({...n,[j.course.id?j.course.id:-1]:Math.round((j.progress||[]).reduce((T,q)=>q.status===1?T+1:T,0)/j.progress.length*100)}),{})},[o]),b=a.useCallback(r=>r.map(n=>({...n.course,courseData:n,progress:S[n.course.id?n.course.id:-1]})),[S]);return a.useEffect(()=>{var r,n,j,T;e!==P.AUTHORED?g(b(((r=o.list)==null?void 0:r.data)||[])):e===P.AUTHORED?g(((n=t.list)==null?void 0:n.data)||[]):g([...b(((j=o.list)==null?void 0:j.data)||[]),...((T=t.list)==null?void 0:T.data)||[]])},[e,o,t,b]),s.jsxs(we,{children:[i.length===0&&!o.loading&&!t.loading&&s.jsxs(be,{children:[s.jsx(A.Title,{level:3,children:m("MyProfilePage.EmptyCoursesTitle")}),s.jsx(I.Text,{className:"small-text",children:m("MyProfilePage.EmptyCoursesText")}),s.jsx(v.Button,{onClick:()=>p.push(te.courses),mode:"secondary",children:m("MyProfilePage.EmptyCoursesBtnText")})]}),$?s.jsxs(he,{children:[o.loading&&t.loading&&Array.from({length:8}).map((r,n)=>s.jsx(B,{className:"single-slide",children:s.jsx(D,{})},`skeleton-card-${n}`)),(!o.loading||!t.loading)&&i&&i.map(r=>s.jsx(B,{className:"single-slide",children:s.jsx(O,{course:r})},r.id))]}):s.jsxs(s.Fragment,{children:[s.jsx(N.Row,{children:o.loading||t.loading?Array.from({length:8}).map((r,n)=>s.jsx(N.Col,{md:3,children:s.jsx(D,{})},`skeleton-card-${n}`)):i.map(r=>s.jsx(N.Col,{md:3,children:s.jsx(O,{course:r})},r.id))}),s.jsx(Re,{children:s.jsx(xe,{total:(l==null?void 0:l.total)||0,perPage:Number((l==null?void 0:l.per_page)||0),currentPage:Number((l==null?void 0:l.current_page)||1),onPage:r=>{h("page",`${r}`),window==null||window.scrollTo(0,0)}})})]})]})};var P=(e=>(e.IN_PROGRESS="inProgress",e.PLANNED="planned",e.FINISHED="finished",e.AUTHORED="authored",e.ALL="all",e))(P||{});const Me=y.section` background-color: ${({theme:e})=>e.gray4}; .courses-wrapper { padding-top: 100px; @@ -53,4 +53,4 @@ import{r as a,D as L,f as k,i as _,j as s,x as Q,T as A,s as I,af as W,v,q as y, margin-top: 0; } } -`,He=()=>{const{t:e}=k(),{isTutor:d}=ge(),{query:t,setQueryParam:c}=H(),o={tabs:[{label:e("MyProfilePage.ALlCourses"),key:1,component:s.jsx(E,{filter:"all"})},{label:e("MyProfilePage.InProgress"),key:2,component:s.jsx(E,{filter:"inProgress"})},{label:e("MyProfilePage.Finished"),key:4,component:s.jsx(E,{filter:"finished"})},{label:e("MyProfilePage.Authored"),key:5,component:s.jsx(E,{filter:"authored"}),hidden:!d}],defaultActiveKey:Number(t.get("status")||1)};return s.jsx(oe,{children:s.jsx(Me,{children:s.jsx(re,{children:s.jsx("div",{className:"courses-wrapper",children:s.jsx(ae.Tabs,{onClick:i=>{c("status",String(i)),c("page","1")},tabs:o.tabs,defaultActiveKey:o.defaultActiveKey})})})})})};export{P as CourseStatus,He as default}; +`,ze=()=>{const{t:e}=k(),{isTutor:d}=ge(),{query:t,setQueryParam:c}=H(),o={tabs:[{label:e("MyProfilePage.ALlCourses"),key:1,component:s.jsx(E,{filter:"all"})},{label:e("MyProfilePage.InProgress"),key:2,component:s.jsx(E,{filter:"inProgress"})},{label:e("MyProfilePage.Finished"),key:4,component:s.jsx(E,{filter:"finished"})},{label:e("MyProfilePage.Authored"),key:5,component:s.jsx(E,{filter:"authored"}),hidden:!d}],defaultActiveKey:Number(t.get("status")||1)};return s.jsx(oe,{children:s.jsx(Me,{children:s.jsx(re,{children:s.jsx("div",{className:"courses-wrapper",children:s.jsx(ae.Tabs,{onClick:i=>{c("status",String(i)),c("page","1")},tabs:o.tabs,defaultActiveKey:o.defaultActiveKey})})})})})};export{P as CourseStatus,ze as default}; diff --git a/assets/index-BgAgt_Xs.js b/assets/index-BdBaDIIz.js similarity index 99% rename from assets/index-BgAgt_Xs.js rename to assets/index-BdBaDIIz.js index 73535554..e1c77aee 100644 --- a/assets/index-BgAgt_Xs.js +++ b/assets/index-BdBaDIIz.js @@ -1,10 +1,10 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/YouTube-DcwNvjho.js","assets/index-Bjk_45MO.js","assets/index-CNcos34M.css","assets/SoundCloud-yA--mQzA.js","assets/Vimeo-D59it0rm.js","assets/Mux-Cfbc_W0T.js","assets/Facebook-C6INHtnc.js","assets/Streamable-BWjbd7YI.js","assets/Wistia-DI-Pvrso.js","assets/Twitch-Cyqq1VNM.js","assets/DailyMotion-BvaJps2g.js","assets/Mixcloud-DRebVUKW.js","assets/Vidyard-BTMDvoGf.js","assets/Kaltura-BOlkhzMF.js","assets/FilePlayer-DuNbIkyG.js","assets/Preview-BwwNeYiy.js"] + __vite__mapDeps.viteFileDeps = ["assets/YouTube-Cu6iADDh.js","assets/index-Cei2V9tG.js","assets/index-CNcos34M.css","assets/SoundCloud-tGeq501n.js","assets/Vimeo-C0-Opy6v.js","assets/Mux-3Rgqhjp4.js","assets/Facebook-BYIgHSV8.js","assets/Streamable-bgRbunc6.js","assets/Wistia-DjI_HIB4.js","assets/Twitch-DFcW1Puy.js","assets/DailyMotion-UzeA5oDV.js","assets/Mixcloud-Ck8U2JlT.js","assets/Vidyard-BHhXxuo2.js","assets/Kaltura-CKtqUZ_v.js","assets/FilePlayer-5v0-nP75.js","assets/Preview-DVlUQOSF.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -var Br=Object.defineProperty;var Ur=(e,i,a)=>i in e?Br(e,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[i]=a;var Ut=(e,i,a)=>(Ur(e,typeof i!="symbol"?i+"":i,a),a),An=(e,i,a)=>{if(!i.has(e))throw TypeError("Cannot "+a)};var j=(e,i,a)=>(An(e,i,"read from private field"),a?a.call(e):i.get(e)),De=(e,i,a)=>{if(i.has(e))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(e):i.set(e,a)},Qe=(e,i,a,o)=>(An(e,i,"write to private field"),o?o.call(e,a):i.set(e,a),a);var tn=(e,i,a,o)=>({set _(c){Qe(e,i,c,a)},get _(){return j(e,i,o)}}),Ne=(e,i,a)=>(An(e,i,"access private method"),a);import{d as commonjsGlobal,ca as api,D as react$1,cj as require$$5,r as reactExports,a5 as require$$6$1,a2 as requireLib,j as jsxRuntimeExports,ck as __vitePreload,c as getAugmentedNamespace,cl as propTypesExports,cm as require$$5$1,a as reactDomExports,a3 as require$$3,cn as require$$9,co as clsx,cp as tinyInvariant,a6 as utils$3,cq as require$$2$2,cr as requireContext,aH as provider,S as Spin,cd as require$$0$1,ce as utils$4,cs as require$$2$3,a4 as chromaExports,a9 as require$$1$1}from"./index-Bjk_45MO.js";import{a as warning_1$8}from"./warning-CKk5dc80.js";import{R as ResponsiveImage}from"./ResponsiveImage-wYxl3kWJ.js";var lib$3={},__createBinding$l=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,i,a,o){o===void 0&&(o=a);var c=Object.getOwnPropertyDescriptor(i,a);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(e,o,c)}:function(e,i,a,o){o===void 0&&(o=a),e[o]=i[a]}),__setModuleDefault$l=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$l=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var i={};if(e!=null)for(var a in e)a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)&&__createBinding$l(i,e,a);return __setModuleDefault$l(i,e),i};Object.defineProperty(lib$3,"__esModule",{value:!0});lib$3.react=API_1=lib$3.API=void 0;var API=__importStar$l(api),API_1=lib$3.API=API,react=__importStar$l(react$1);lib$3.react=react;var OEmbedPlayer={},lib$2={exports:{}},concatMap,hasRequiredConcatMap;function requireConcatMap(){if(hasRequiredConcatMap)return concatMap;hasRequiredConcatMap=1,concatMap=function(i,a){for(var o=[],c=0;c=0&&ge>0){if(o===c)return[he,ge];for(h=[],ee=d.length;te>=0&&!g;)te==he?(h.push(te),he=d.indexOf(o,te+1)):h.length==1?g=[h.pop(),ge]:(_=h.pop(),_=0?he:ge;h.length&&(g=[ee,f])}return g}return balancedMatch}var braceExpansion,hasRequiredBraceExpansion;function requireBraceExpansion(){if(hasRequiredBraceExpansion)return braceExpansion;hasRequiredBraceExpansion=1;var e=requireConcatMap(),i=requireBalancedMatch();braceExpansion=he;var a="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",c="\0CLOSE"+Math.random()+"\0",d="\0COMMA"+Math.random()+"\0",h="\0PERIOD"+Math.random()+"\0";function _(se){return parseInt(se,10)==se?parseInt(se,10):se.charCodeAt(0)}function ee(se){return se.split("\\\\").join(a).split("\\{").join(o).split("\\}").join(c).split("\\,").join(d).split("\\.").join(h)}function f(se){return se.split(a).join("\\").split(o).join("{").split(c).join("}").split(d).join(",").split(h).join(".")}function g(se){if(!se)return[""];var me=[],ue=i("{","}",se);if(!ue)return se.split(",");var ae=ue.pre,$=ue.body,ie=ue.post,we=ae.split(",");we[we.length-1]+="{"+$+"}";var de=g(ie);return ie.length&&(we[we.length-1]+=de.shift(),we.push.apply(we,de)),me.push.apply(me,we),me}function he(se){return se?(se.substr(0,2)==="{}"&&(se="\\{\\}"+se.substr(2)),q(ee(se),!0).map(f)):[]}function ge(se){return"{"+se+"}"}function te(se){return/^-?0\d/.test(se)}function re(se,me){return se<=me}function be(se,me){return se>=me}function q(se,me){var ue=[],ae=i("{","}",se);if(!ae||/\$$/.test(ae.pre))return[se];var $=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(ae.body),ie=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(ae.body),we=$||ie,de=ae.body.indexOf(",")>=0;if(!we&&!de)return ae.post.match(/,.*\}/)?(se=ae.pre+"{"+ae.body+c+ae.post,q(se)):[se];var m;if(we)m=ae.body.split(/\.\./);else if(m=g(ae.body),m.length===1&&(m=q(m[0],!1).map(ge),m.length===1)){var oe=ae.post.length?q(ae.post,!1):[""];return oe.map(function(ve){return ae.pre+m[0]+ve})}var _e=ae.pre,oe=ae.post.length?q(ae.post,!1):[""],Se;if(we){var Ee=_(m[0]),ye=_(m[1]),je=Math.max(m[0].length,m[1].length),Le=m.length==3?Math.abs(_(m[2])):1,xe=re,Te=ye0){var Pe=new Array(tt+1).join("0");Fe<0?Ke="-"+Pe+Ke.slice(1):Ke=Pe+Ke}}Se.push(Ke)}}else Se=e(m,function(le){return q(le,!1)});for(var ne=0;ne"u"?this.pattern:m,ue(m),_e.nobrace||!/\{(?:(?!\{).)*\}/.test(m)?[m]:a(m)}var me=1024*64,ue=function(m){if(typeof m!="string")throw new TypeError("invalid pattern");if(m.length>me)throw new TypeError("pattern is too long")};re.prototype.parse=$;var ae={};function $(m,_e){ue(m);var oe=this.options;if(m==="**")if(oe.noglobstar)m="*";else return i;if(m==="")return"";var Se="",Ee=!!oe.nocase,ye=!1,je=[],Le=[],xe,Te=!1,Re=-1,Fe=-1,Ke=m.charAt(0)==="."?"":oe.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",tt=this;function Pe(){if(xe){switch(xe){case"*":Se+=d,Ee=!0;break;case"?":Se+=c,Ee=!0;break;default:Se+="\\"+xe;break}tt.debug("clearStateChar %j %j",xe,Se),xe=!1}}for(var ne=0,fe=m.length,b;nei in e?Br(e,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[i]=a;var Ut=(e,i,a)=>(Ur(e,typeof i!="symbol"?i+"":i,a),a),An=(e,i,a)=>{if(!i.has(e))throw TypeError("Cannot "+a)};var j=(e,i,a)=>(An(e,i,"read from private field"),a?a.call(e):i.get(e)),De=(e,i,a)=>{if(i.has(e))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(e):i.set(e,a)},Qe=(e,i,a,o)=>(An(e,i,"write to private field"),o?o.call(e,a):i.set(e,a),a);var tn=(e,i,a,o)=>({set _(c){Qe(e,i,c,a)},get _(){return j(e,i,o)}}),Ne=(e,i,a)=>(An(e,i,"access private method"),a);import{d as commonjsGlobal,ca as api,D as react$1,cj as require$$5,r as reactExports,a5 as require$$6$1,a2 as requireLib,j as jsxRuntimeExports,ck as __vitePreload,c as getAugmentedNamespace,cl as propTypesExports,cm as require$$5$1,a as reactDomExports,a3 as require$$3,cn as require$$9,co as clsx,cp as tinyInvariant,a6 as utils$3,cq as require$$2$2,cr as requireContext,aH as provider,S as Spin,cd as require$$0$1,ce as utils$4,cs as require$$2$3,a4 as chromaExports,a9 as require$$1$1}from"./index-Cei2V9tG.js";import{a as warning_1$8}from"./warning-CGLqHpsF.js";import{R as ResponsiveImage}from"./ResponsiveImage-CUm6fM86.js";var lib$3={},__createBinding$l=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,i,a,o){o===void 0&&(o=a);var c=Object.getOwnPropertyDescriptor(i,a);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(e,o,c)}:function(e,i,a,o){o===void 0&&(o=a),e[o]=i[a]}),__setModuleDefault$l=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$l=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var i={};if(e!=null)for(var a in e)a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)&&__createBinding$l(i,e,a);return __setModuleDefault$l(i,e),i};Object.defineProperty(lib$3,"__esModule",{value:!0});lib$3.react=API_1=lib$3.API=void 0;var API=__importStar$l(api),API_1=lib$3.API=API,react=__importStar$l(react$1);lib$3.react=react;var OEmbedPlayer={},lib$2={exports:{}},concatMap,hasRequiredConcatMap;function requireConcatMap(){if(hasRequiredConcatMap)return concatMap;hasRequiredConcatMap=1,concatMap=function(i,a){for(var o=[],c=0;c=0&&ge>0){if(o===c)return[he,ge];for(h=[],ee=d.length;te>=0&&!g;)te==he?(h.push(te),he=d.indexOf(o,te+1)):h.length==1?g=[h.pop(),ge]:(_=h.pop(),_=0?he:ge;h.length&&(g=[ee,f])}return g}return balancedMatch}var braceExpansion,hasRequiredBraceExpansion;function requireBraceExpansion(){if(hasRequiredBraceExpansion)return braceExpansion;hasRequiredBraceExpansion=1;var e=requireConcatMap(),i=requireBalancedMatch();braceExpansion=he;var a="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",c="\0CLOSE"+Math.random()+"\0",d="\0COMMA"+Math.random()+"\0",h="\0PERIOD"+Math.random()+"\0";function _(se){return parseInt(se,10)==se?parseInt(se,10):se.charCodeAt(0)}function ee(se){return se.split("\\\\").join(a).split("\\{").join(o).split("\\}").join(c).split("\\,").join(d).split("\\.").join(h)}function f(se){return se.split(a).join("\\").split(o).join("{").split(c).join("}").split(d).join(",").split(h).join(".")}function g(se){if(!se)return[""];var me=[],ue=i("{","}",se);if(!ue)return se.split(",");var ae=ue.pre,$=ue.body,ie=ue.post,we=ae.split(",");we[we.length-1]+="{"+$+"}";var de=g(ie);return ie.length&&(we[we.length-1]+=de.shift(),we.push.apply(we,de)),me.push.apply(me,we),me}function he(se){return se?(se.substr(0,2)==="{}"&&(se="\\{\\}"+se.substr(2)),q(ee(se),!0).map(f)):[]}function ge(se){return"{"+se+"}"}function te(se){return/^-?0\d/.test(se)}function re(se,me){return se<=me}function be(se,me){return se>=me}function q(se,me){var ue=[],ae=i("{","}",se);if(!ae||/\$$/.test(ae.pre))return[se];var $=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(ae.body),ie=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(ae.body),we=$||ie,de=ae.body.indexOf(",")>=0;if(!we&&!de)return ae.post.match(/,.*\}/)?(se=ae.pre+"{"+ae.body+c+ae.post,q(se)):[se];var m;if(we)m=ae.body.split(/\.\./);else if(m=g(ae.body),m.length===1&&(m=q(m[0],!1).map(ge),m.length===1)){var oe=ae.post.length?q(ae.post,!1):[""];return oe.map(function(ve){return ae.pre+m[0]+ve})}var _e=ae.pre,oe=ae.post.length?q(ae.post,!1):[""],Se;if(we){var Ee=_(m[0]),ye=_(m[1]),je=Math.max(m[0].length,m[1].length),Le=m.length==3?Math.abs(_(m[2])):1,xe=re,Te=ye0){var Pe=new Array(tt+1).join("0");Fe<0?Ke="-"+Pe+Ke.slice(1):Ke=Pe+Ke}}Se.push(Ke)}}else Se=e(m,function(le){return q(le,!1)});for(var ne=0;ne"u"?this.pattern:m,ue(m),_e.nobrace||!/\{(?:(?!\{).)*\}/.test(m)?[m]:a(m)}var me=1024*64,ue=function(m){if(typeof m!="string")throw new TypeError("invalid pattern");if(m.length>me)throw new TypeError("pattern is too long")};re.prototype.parse=$;var ae={};function $(m,_e){ue(m);var oe=this.options;if(m==="**")if(oe.noglobstar)m="*";else return i;if(m==="")return"";var Se="",Ee=!!oe.nocase,ye=!1,je=[],Le=[],xe,Te=!1,Re=-1,Fe=-1,Ke=m.charAt(0)==="."?"":oe.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",tt=this;function Pe(){if(xe){switch(xe){case"*":Se+=d,Ee=!0;break;case"?":Se+=c,Ee=!0;break;default:Se+="\\"+xe;break}tt.debug("clearStateChar %j %j",xe,Se),xe=!1}}for(var ne=0,fe=m.length,b;ne-1;qe--){var Ue=Le[qe],Ze=Se.slice(0,Ue.reStart),it=Se.slice(Ue.reStart,Ue.reEnd-8),Je=Se.slice(Ue.reEnd-8,Ue.reEnd),nt=Se.slice(Ue.reEnd);Je+=nt;var ht=Ze.split("(").length-1,ot=nt;for(ne=0;ne"u"&&(oe=this.partial),this.debug("match",_e,this.pattern),this.comment)return!1;if(this.empty)return _e==="";if(_e==="/"&&oe)return!0;var Se=this.options;e.sep!=="/"&&(_e=_e.split(e.sep).join("/")),_e=_e.split(g),this.debug(this.pattern,"split",_e);var Ee=this.set;this.debug(this.pattern,"set",Ee);var ye,je;for(je=_e.length-1;je>=0&&(ye=_e[je],!ye);je--);for(je=0;je>> no match, partial?`,m,Re,_e,Fe),Re===je))}var tt;if(typeof xe=="string"?(tt=Te===xe,this.debug("string match",xe,Te,tt)):(tt=Te.match(xe),this.debug("pattern match",xe,Te,tt)),!tt)return!1}if(Ee===je&&ye===Le)return!0;if(Ee===je)return oe;if(ye===Le)return Ee===je-1&&m[Ee]==="";throw new Error("wtf?")};function we(m){return m.replace(/\\(.)/g,"$1")}function de(m){return m.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}return minimatch_1}var axios$1={exports:{}},bind,hasRequiredBind;function requireBind(){return hasRequiredBind||(hasRequiredBind=1,bind=function(i,a){return function(){for(var c=new Array(arguments.length),d=0;d"u"}function c(de){return de!==null&&!o(de)&&de.constructor!==null&&!o(de.constructor)&&typeof de.constructor.isBuffer=="function"&&de.constructor.isBuffer(de)}function d(de){return i.call(de)==="[object ArrayBuffer]"}function h(de){return typeof FormData<"u"&&de instanceof FormData}function _(de){var m;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?m=ArrayBuffer.isView(de):m=de&&de.buffer&&de.buffer instanceof ArrayBuffer,m}function ee(de){return typeof de=="string"}function f(de){return typeof de=="number"}function g(de){return de!==null&&typeof de=="object"}function he(de){if(i.call(de)!=="[object Object]")return!1;var m=Object.getPrototypeOf(de);return m===null||m===Object.prototype}function ge(de){return i.call(de)==="[object Date]"}function te(de){return i.call(de)==="[object File]"}function re(de){return i.call(de)==="[object Blob]"}function be(de){return i.call(de)==="[object Function]"}function q(de){return g(de)&&be(de.pipe)}function se(de){return typeof URLSearchParams<"u"&&de instanceof URLSearchParams}function me(de){return de.trim?de.trim():de.replace(/^\s+|\s+$/g,"")}function ue(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ae(de,m){if(!(de===null||typeof de>"u"))if(typeof de!="object"&&(de=[de]),a(de))for(var _e=0,oe=de.length;_e"u"||(e.isArray(g)?he=he+"[]":g=[g],e.forEach(g,function(te){e.isDate(te)?te=te.toISOString():e.isObject(te)&&(te=JSON.stringify(te)),_.push(i(he)+"="+i(te))}))}),h=_.join("&")}if(h){var ee=o.indexOf("#");ee!==-1&&(o=o.slice(0,ee)),o+=(o.indexOf("?")===-1?"?":"&")+h}return o},buildURL}var InterceptorManager_1,hasRequiredInterceptorManager;function requireInterceptorManager(){if(hasRequiredInterceptorManager)return InterceptorManager_1;hasRequiredInterceptorManager=1;var e=requireUtils();function i(){this.handlers=[]}return i.prototype.use=function(o,c,d){return this.handlers.push({fulfilled:o,rejected:c,synchronous:d?d.synchronous:!1,runWhen:d?d.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(o){this.handlers[o]&&(this.handlers[o]=null)},i.prototype.forEach=function(o){e.forEach(this.handlers,function(d){d!==null&&o(d)})},InterceptorManager_1=i,InterceptorManager_1}var normalizeHeaderName,hasRequiredNormalizeHeaderName;function requireNormalizeHeaderName(){if(hasRequiredNormalizeHeaderName)return normalizeHeaderName;hasRequiredNormalizeHeaderName=1;var e=requireUtils();return normalizeHeaderName=function(a,o){e.forEach(a,function(d,h){h!==o&&h.toUpperCase()===o.toUpperCase()&&(a[o]=d,delete a[h])})},normalizeHeaderName}var enhanceError,hasRequiredEnhanceError;function requireEnhanceError(){return hasRequiredEnhanceError||(hasRequiredEnhanceError=1,enhanceError=function(i,a,o,c,d){return i.config=a,o&&(i.code=o),i.request=c,i.response=d,i.isAxiosError=!0,i.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:this.config,code:this.code}},i}),enhanceError}var createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var e=requireEnhanceError();return createError=function(a,o,c,d,h){var _=new Error(a);return e(_,o,c,d,h)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var e=requireCreateError();return settle=function(a,o,c){var d=c.config.validateStatus;!c.status||!d||d(c.status)?a(c):o(e("Request failed with status code "+c.status,c.config,null,c.request,c))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var e=requireUtils();return cookies=e.isStandardBrowserEnv()?function(){return{write:function(o,c,d,h,_,ee){var f=[];f.push(o+"="+encodeURIComponent(c)),e.isNumber(d)&&f.push("expires="+new Date(d).toGMTString()),e.isString(h)&&f.push("path="+h),e.isString(_)&&f.push("domain="+_),ee===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(o){var c=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return c?decodeURIComponent(c[3]):null},remove:function(o){this.write(o,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(i){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(i)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(i,a){return a?i.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):i}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var e=requireIsAbsoluteURL(),i=requireCombineURLs();return buildFullPath=function(o,c){return o&&!e(c)?i(o,c):c},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var e=requireUtils(),i=["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"];return parseHeaders=function(o){var c={},d,h,_;return o&&e.forEach(o.split(` @@ -65,7 +65,7 @@ globstar while`,m,Re,_e,Fe,Ke),this.matchOne(m.slice(Re),_e.slice(Fe),oe))return display: block; height: 100%; } -`]))),te=function(q){var se=q.ratio,me=se===void 0?9/16:se,ue=q.className,ae=ue===void 0?"":ue;return(0,_.jsx)(ge,a({className:"wellms-component ".concat(ae)},{children:(0,_.jsx)(g.RatioBox,a({ratio:me},{children:(0,_.jsx)(ee.default,a({},q,{providers:he}))}))}))};e.OEmbedPlayer=te,e.default=(0,f.withTheme)((0,f.default)(e.OEmbedPlayer)(be||(be=i([""],[""]))));var re,be})(OEmbedPlayer);var AudioVideoPlayer={},loadScript=function(i,a,o){var c=document.head||document.getElementsByTagName("head")[0],d=document.createElement("script");typeof a=="function"&&(o=a,a={}),a=a||{},o=o||function(){},d.type=a.type||"text/javascript",d.charset=a.charset||"utf8",d.async="async"in a?!!a.async:!0,d.src=i,a.attrs&&setAttributes(d,a.attrs),a.text&&(d.text=""+a.text);var h="onload"in d?stdOnEnd:ieOnEnd;h(d,o),d.onload||stdOnEnd(d,o),c.appendChild(d)};function setAttributes(e,i){for(var a in i)e.setAttribute(a,i[a])}function stdOnEnd(e,i){e.onload=function(){this.onerror=this.onload=null,i(null,e)},e.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),e)}}function ieOnEnd(e,i){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,e))}}var isMergeableObject=function(i){return isNonNullObject(i)&&!isSpecial(i)};function isNonNullObject(e){return!!e&&typeof e=="object"}function isSpecial(e){var i=Object.prototype.toString.call(e);return i==="[object RegExp]"||i==="[object Date]"||isReactElement(e)}var canUseSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(e){return e.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(e){return Array.isArray(e)?[]:{}}function cloneUnlessOtherwiseSpecified(e,i){return i.clone!==!1&&i.isMergeableObject(e)?deepmerge(emptyTarget(e),e,i):e}function defaultArrayMerge(e,i,a){return e.concat(i).map(function(o){return cloneUnlessOtherwiseSpecified(o,a)})}function getMergeFunction(e,i){if(!i.customMerge)return deepmerge;var a=i.customMerge(e);return typeof a=="function"?a:deepmerge}function getEnumerableOwnPropertySymbols(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(i){return Object.propertyIsEnumerable.call(e,i)}):[]}function getKeys(e){return Object.keys(e).concat(getEnumerableOwnPropertySymbols(e))}function propertyIsOnObject(e,i){try{return i in e}catch{return!1}}function propertyIsUnsafe(e,i){return propertyIsOnObject(e,i)&&!(Object.hasOwnProperty.call(e,i)&&Object.propertyIsEnumerable.call(e,i))}function mergeObject(e,i,a){var o={};return a.isMergeableObject(e)&&getKeys(e).forEach(function(c){o[c]=cloneUnlessOtherwiseSpecified(e[c],a)}),getKeys(i).forEach(function(c){propertyIsUnsafe(e,c)||(propertyIsOnObject(e,c)&&a.isMergeableObject(i[c])?o[c]=getMergeFunction(c,a)(e[c],i[c],a):o[c]=cloneUnlessOtherwiseSpecified(i[c],a))}),o}function deepmerge(e,i,a){a=a||{},a.arrayMerge=a.arrayMerge||defaultArrayMerge,a.isMergeableObject=a.isMergeableObject||isMergeableObject,a.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var o=Array.isArray(i),c=Array.isArray(e),d=o===c;return d?o?a.arrayMerge(e,i,a):mergeObject(e,i,a):cloneUnlessOtherwiseSpecified(i,a)}deepmerge.all=function(i,a){if(!Array.isArray(i))throw new Error("first argument should be an array");return i.reduce(function(o,c){return deepmerge(o,c,a)},{})};var deepmerge_1=deepmerge,cjs$5=deepmerge_1,__create$4=Object.create,__defProp$6=Object.defineProperty,__getOwnPropDesc$6=Object.getOwnPropertyDescriptor,__getOwnPropNames$6=Object.getOwnPropertyNames,__getProtoOf$4=Object.getPrototypeOf,__hasOwnProp$6=Object.prototype.hasOwnProperty,__export$6=(e,i)=>{for(var a in i)__defProp$6(e,a,{get:i[a],enumerable:!0})},__copyProps$6=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$6(i))!__hasOwnProp$6.call(e,c)&&c!==a&&__defProp$6(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$6(i,c))||o.enumerable});return e},__toESM$4=(e,i,a)=>(a=e!=null?__create$4(__getProtoOf$4(e)):{},__copyProps$6(i||!e||!e.__esModule?__defProp$6(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$6=e=>__copyProps$6(__defProp$6({},"__esModule",{value:!0}),e),utils_exports={};__export$6(utils_exports,{callPlayer:()=>callPlayer,getConfig:()=>getConfig,getSDK:()=>getSDK,isBlobUrl:()=>isBlobUrl,isMediaStream:()=>isMediaStream,lazy:()=>lazy,omit:()=>omit,parseEndTime:()=>parseEndTime,parseStartTime:()=>parseStartTime,queryString:()=>queryString,randomString:()=>randomString,supportsWebKitPresentationMode:()=>supportsWebKitPresentationMode});var utils$1=__toCommonJS$6(utils_exports),import_react$2=__toESM$4(reactExports),import_load_script=__toESM$4(loadScript),import_deepmerge$1=__toESM$4(cjs$5);const lazy=e=>import_react$2.default.lazy(async()=>{const i=await e();return typeof i.default=="function"?i:i.default}),MATCH_START_QUERY=/[?&#](?:start|t)=([0-9hms]+)/,MATCH_END_QUERY=/[?&#]end=([0-9hms]+)/,MATCH_START_STAMP=/(\d+)(h|m|s)/g,MATCH_NUMERIC=/^\d+$/;function parseTimeParam(e,i){if(e instanceof Array)return;const a=e.match(i);if(a){const o=a[1];if(o.match(MATCH_START_STAMP))return parseTimeString(o);if(MATCH_NUMERIC.test(o))return parseInt(o)}}function parseTimeString(e){let i=0,a=MATCH_START_STAMP.exec(e);for(;a!==null;){const[,o,c]=a;c==="h"&&(i+=parseInt(o,10)*60*60),c==="m"&&(i+=parseInt(o,10)*60),c==="s"&&(i+=parseInt(o,10)),a=MATCH_START_STAMP.exec(e)}return i}function parseStartTime(e){return parseTimeParam(e,MATCH_START_QUERY)}function parseEndTime(e){return parseTimeParam(e,MATCH_END_QUERY)}function randomString(){return Math.random().toString(36).substr(2,5)}function queryString(e){return Object.keys(e).map(i=>`${i}=${e[i]}`).join("&")}function getGlobal(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const requests={},getSDK=function(i,a,o=null,c=()=>!0,d=import_load_script.default){const h=getGlobal(a);return h&&c(h)?Promise.resolve(h):new Promise((_,ee)=>{if(requests[i]){requests[i].push({resolve:_,reject:ee});return}requests[i]=[{resolve:_,reject:ee}];const f=g=>{requests[i].forEach(he=>he.resolve(g))};if(o){const g=window[o];window[o]=function(){g&&g(),f(getGlobal(a))}}d(i,g=>{g?(requests[i].forEach(he=>he.reject(g)),requests[i]=null):o||f(getGlobal(a))})})};function getConfig(e,i){return(0,import_deepmerge$1.default)(i.config,e.config)}function omit(e,...i){const a=[].concat(...i),o={},c=Object.keys(e);for(const d of c)a.indexOf(d)===-1&&(o[d]=e[d]);return o}function callPlayer(e,...i){if(!this.player||!this.player[e]){let a=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(a+="The method was not available"):a+="The player was not available",console.warn(a,"font-weight: bold",""),null}return this.player[e](...i)}function isMediaStream(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function isBlobUrl(e){return/^blob:/.test(e)}function supportsWebKitPresentationMode(e=document.createElement("video")){const i=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&i}function enableStubOn(e){return e}var __defProp$5=Object.defineProperty,__getOwnPropDesc$5=Object.getOwnPropertyDescriptor,__getOwnPropNames$5=Object.getOwnPropertyNames,__hasOwnProp$5=Object.prototype.hasOwnProperty,__export$5=(e,i)=>{for(var a in i)__defProp$5(e,a,{get:i[a],enumerable:!0})},__copyProps$5=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$5(i))!__hasOwnProp$5.call(e,c)&&c!==a&&__defProp$5(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$5(i,c))||o.enumerable});return e},__toCommonJS$5=e=>__copyProps$5(__defProp$5({},"__esModule",{value:!0}),e),patterns_exports={};__export$5(patterns_exports,{AUDIO_EXTENSIONS:()=>AUDIO_EXTENSIONS,DASH_EXTENSIONS:()=>DASH_EXTENSIONS,FLV_EXTENSIONS:()=>FLV_EXTENSIONS,HLS_EXTENSIONS:()=>HLS_EXTENSIONS,MATCH_URL_DAILYMOTION:()=>MATCH_URL_DAILYMOTION,MATCH_URL_FACEBOOK:()=>MATCH_URL_FACEBOOK,MATCH_URL_FACEBOOK_WATCH:()=>MATCH_URL_FACEBOOK_WATCH,MATCH_URL_KALTURA:()=>MATCH_URL_KALTURA,MATCH_URL_MIXCLOUD:()=>MATCH_URL_MIXCLOUD,MATCH_URL_MUX:()=>MATCH_URL_MUX,MATCH_URL_SOUNDCLOUD:()=>MATCH_URL_SOUNDCLOUD,MATCH_URL_STREAMABLE:()=>MATCH_URL_STREAMABLE,MATCH_URL_TWITCH_CHANNEL:()=>MATCH_URL_TWITCH_CHANNEL,MATCH_URL_TWITCH_VIDEO:()=>MATCH_URL_TWITCH_VIDEO,MATCH_URL_VIDYARD:()=>MATCH_URL_VIDYARD,MATCH_URL_VIMEO:()=>MATCH_URL_VIMEO,MATCH_URL_WISTIA:()=>MATCH_URL_WISTIA,MATCH_URL_YOUTUBE:()=>MATCH_URL_YOUTUBE,VIDEO_EXTENSIONS:()=>VIDEO_EXTENSIONS,canPlay:()=>canPlay});var patterns=__toCommonJS$5(patterns_exports),import_utils$3=utils$1;const MATCH_URL_YOUTUBE=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,MATCH_URL_SOUNDCLOUD=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,MATCH_URL_VIMEO=/vimeo\.com\/(?!progressive_redirect).+/,MATCH_URL_MUX=/stream\.mux\.com\/(\w+)/,MATCH_URL_FACEBOOK=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,MATCH_URL_FACEBOOK_WATCH=/^https?:\/\/fb\.watch\/.+$/,MATCH_URL_STREAMABLE=/streamable\.com\/([a-z0-9]+)$/,MATCH_URL_WISTIA=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,MATCH_URL_TWITCH_VIDEO=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,MATCH_URL_TWITCH_CHANNEL=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,MATCH_URL_DAILYMOTION=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,MATCH_URL_MIXCLOUD=/mixcloud\.com\/([^/]+\/[^/]+)/,MATCH_URL_VIDYARD=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,MATCH_URL_KALTURA=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,AUDIO_EXTENSIONS=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,VIDEO_EXTENSIONS=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,HLS_EXTENSIONS=/\.(m3u8)($|\?)/i,DASH_EXTENSIONS=/\.(mpd)($|\?)/i,FLV_EXTENSIONS=/\.(flv)($|\?)/i,canPlayFile=e=>{if(e instanceof Array){for(const i of e)if(typeof i=="string"&&canPlayFile(i)||canPlayFile(i.src))return!0;return!1}return(0,import_utils$3.isMediaStream)(e)||(0,import_utils$3.isBlobUrl)(e)?!0:AUDIO_EXTENSIONS.test(e)||VIDEO_EXTENSIONS.test(e)||HLS_EXTENSIONS.test(e)||DASH_EXTENSIONS.test(e)||FLV_EXTENSIONS.test(e)},canPlay={youtube:e=>e instanceof Array?e.every(i=>MATCH_URL_YOUTUBE.test(i)):MATCH_URL_YOUTUBE.test(e),soundcloud:e=>MATCH_URL_SOUNDCLOUD.test(e)&&!AUDIO_EXTENSIONS.test(e),vimeo:e=>MATCH_URL_VIMEO.test(e)&&!VIDEO_EXTENSIONS.test(e)&&!HLS_EXTENSIONS.test(e),mux:e=>MATCH_URL_MUX.test(e),facebook:e=>MATCH_URL_FACEBOOK.test(e)||MATCH_URL_FACEBOOK_WATCH.test(e),streamable:e=>MATCH_URL_STREAMABLE.test(e),wistia:e=>MATCH_URL_WISTIA.test(e),twitch:e=>MATCH_URL_TWITCH_VIDEO.test(e)||MATCH_URL_TWITCH_CHANNEL.test(e),dailymotion:e=>MATCH_URL_DAILYMOTION.test(e),mixcloud:e=>MATCH_URL_MIXCLOUD.test(e),vidyard:e=>MATCH_URL_VIDYARD.test(e),kaltura:e=>MATCH_URL_KALTURA.test(e),file:canPlayFile};var __defProp$4=Object.defineProperty,__getOwnPropDesc$4=Object.getOwnPropertyDescriptor,__getOwnPropNames$4=Object.getOwnPropertyNames,__hasOwnProp$4=Object.prototype.hasOwnProperty,__export$4=(e,i)=>{for(var a in i)__defProp$4(e,a,{get:i[a],enumerable:!0})},__copyProps$4=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$4(i))!__hasOwnProp$4.call(e,c)&&c!==a&&__defProp$4(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$4(i,c))||o.enumerable});return e},__toCommonJS$4=e=>__copyProps$4(__defProp$4({},"__esModule",{value:!0}),e),players_exports={};__export$4(players_exports,{default:()=>players_default});var players=__toCommonJS$4(players_exports),import_utils$2=utils$1,import_patterns=patterns,players_default=[{key:"youtube",name:"YouTube",canPlay:import_patterns.canPlay.youtube,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./YouTube-DcwNvjho.js").then(e=>e.Y),__vite__mapDeps([0,1,2])))},{key:"soundcloud",name:"SoundCloud",canPlay:import_patterns.canPlay.soundcloud,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./SoundCloud-yA--mQzA.js").then(e=>e.S),__vite__mapDeps([3,1,2])))},{key:"vimeo",name:"Vimeo",canPlay:import_patterns.canPlay.vimeo,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Vimeo-D59it0rm.js").then(e=>e.V),__vite__mapDeps([4,1,2])))},{key:"mux",name:"Mux",canPlay:import_patterns.canPlay.mux,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Mux-Cfbc_W0T.js").then(e=>e.M),__vite__mapDeps([5,1,2])))},{key:"facebook",name:"Facebook",canPlay:import_patterns.canPlay.facebook,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Facebook-C6INHtnc.js").then(e=>e.F),__vite__mapDeps([6,1,2])))},{key:"streamable",name:"Streamable",canPlay:import_patterns.canPlay.streamable,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Streamable-BWjbd7YI.js").then(e=>e.S),__vite__mapDeps([7,1,2])))},{key:"wistia",name:"Wistia",canPlay:import_patterns.canPlay.wistia,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Wistia-DI-Pvrso.js").then(e=>e.W),__vite__mapDeps([8,1,2])))},{key:"twitch",name:"Twitch",canPlay:import_patterns.canPlay.twitch,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Twitch-Cyqq1VNM.js").then(e=>e.T),__vite__mapDeps([9,1,2])))},{key:"dailymotion",name:"DailyMotion",canPlay:import_patterns.canPlay.dailymotion,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./DailyMotion-BvaJps2g.js").then(e=>e.D),__vite__mapDeps([10,1,2])))},{key:"mixcloud",name:"Mixcloud",canPlay:import_patterns.canPlay.mixcloud,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Mixcloud-DRebVUKW.js").then(e=>e.M),__vite__mapDeps([11,1,2])))},{key:"vidyard",name:"Vidyard",canPlay:import_patterns.canPlay.vidyard,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Vidyard-BTMDvoGf.js").then(e=>e.V),__vite__mapDeps([12,1,2])))},{key:"kaltura",name:"Kaltura",canPlay:import_patterns.canPlay.kaltura,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Kaltura-BOlkhzMF.js").then(e=>e.K),__vite__mapDeps([13,1,2])))},{key:"file",name:"FilePlayer",canPlay:import_patterns.canPlay.file,canEnablePIP:e=>import_patterns.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,import_utils$2.supportsWebKitPresentationMode)())&&!import_patterns.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./FilePlayer-DuNbIkyG.js").then(e=>e.F),__vite__mapDeps([14,1,2])))}],safeIsNaN=Number.isNaN||function(i){return typeof i=="number"&&i!==i};function isEqual(e,i){return!!(e===i||safeIsNaN(e)&&safeIsNaN(i))}function areInputsEqual(e,i){if(e.length!==i.length)return!1;for(var a=0;a{for(var a in i)__defProp$3(e,a,{get:i[a],enumerable:!0})},__copyProps$3=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$3(i))!__hasOwnProp$3.call(e,c)&&c!==a&&__defProp$3(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$3(i,c))||o.enumerable});return e},__toESM$3=(e,i,a)=>(a=e!=null?__create$3(__getProtoOf$3(e)):{},__copyProps$3(i||!e||!e.__esModule?__defProp$3(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$3=e=>__copyProps$3(__defProp$3({},"__esModule",{value:!0}),e),props_exports={};__export$3(props_exports,{defaultProps:()=>defaultProps,propTypes:()=>propTypes$1});var props=__toCommonJS$3(props_exports),import_prop_types=__toESM$3(propTypesExports);const{string,bool,number,array,oneOfType,shape,object,func,node}=import_prop_types.default,propTypes$1={url:oneOfType([string,array,object]),playing:bool,loop:bool,controls:bool,volume:number,muted:bool,playbackRate:number,width:oneOfType([string,number]),height:oneOfType([string,number]),style:object,progressInterval:number,playsinline:bool,pip:bool,stopOnUnmount:bool,light:oneOfType([bool,string,object]),playIcon:node,previewTabIndex:number,previewAriaLabel:string,fallback:node,oEmbedUrl:string,wrapper:oneOfType([string,func,shape({render:func.isRequired})]),config:shape({soundcloud:shape({options:object}),youtube:shape({playerVars:object,embedOptions:object,onUnstarted:func}),facebook:shape({appId:string,version:string,playerId:string,attributes:object}),dailymotion:shape({params:object}),vimeo:shape({playerOptions:object,title:string}),mux:shape({attributes:object,version:string}),file:shape({attributes:object,tracks:array,forceVideo:bool,forceAudio:bool,forceHLS:bool,forceSafariHLS:bool,forceDisableHls:bool,forceDASH:bool,forceFLV:bool,hlsOptions:object,hlsVersion:string,dashVersion:string,flvVersion:string}),wistia:shape({options:object,playerId:string,customControls:array}),mixcloud:shape({options:object}),twitch:shape({options:object,playerId:string}),vidyard:shape({options:object})}),onReady:func,onStart:func,onPlay:func,onPause:func,onBuffer:func,onBufferEnd:func,onEnded:func,onError:func,onDuration:func,onSeek:func,onPlaybackRateChange:func,onPlaybackQualityChange:func,onProgress:func,onClickPreview:func,onEnablePIP:func,onDisablePIP:func},noop=()=>{},defaultProps={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:noop},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:noop,onStart:noop,onPlay:noop,onPause:noop,onBuffer:noop,onBufferEnd:noop,onEnded:noop,onError:noop,onDuration:noop,onSeek:noop,onPlaybackRateChange:noop,onPlaybackQualityChange:noop,onProgress:noop,onClickPreview:noop,onEnablePIP:noop,onDisablePIP:noop};var __create$2=Object.create,__defProp$2=Object.defineProperty,__getOwnPropDesc$2=Object.getOwnPropertyDescriptor,__getOwnPropNames$2=Object.getOwnPropertyNames,__getProtoOf$2=Object.getPrototypeOf,__hasOwnProp$2=Object.prototype.hasOwnProperty,__defNormalProp$1=(e,i,a)=>i in e?__defProp$2(e,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[i]=a,__export$2=(e,i)=>{for(var a in i)__defProp$2(e,a,{get:i[a],enumerable:!0})},__copyProps$2=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$2(i))!__hasOwnProp$2.call(e,c)&&c!==a&&__defProp$2(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$2(i,c))||o.enumerable});return e},__toESM$2=(e,i,a)=>(a=e!=null?__create$2(__getProtoOf$2(e)):{},__copyProps$2(i||!e||!e.__esModule?__defProp$2(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$2=e=>__copyProps$2(__defProp$2({},"__esModule",{value:!0}),e),__publicField$1=(e,i,a)=>(__defNormalProp$1(e,typeof i!="symbol"?i+"":i,a),a),Player_exports={};__export$2(Player_exports,{default:()=>Player});var Player_1=__toCommonJS$2(Player_exports),import_react$1=__toESM$2(reactExports),import_react_fast_compare$1=__toESM$2(reactFastCompare),import_props$1=props,import_utils$1=utils$1;const SEEK_ON_PLAY_EXPIRY=5e3;class Player extends import_react$1.Component{constructor(){super(...arguments),__publicField$1(this,"mounted",!1),__publicField$1(this,"isReady",!1),__publicField$1(this,"isPlaying",!1),__publicField$1(this,"isLoading",!0),__publicField$1(this,"loadOnReady",null),__publicField$1(this,"startOnPlay",!0),__publicField$1(this,"seekOnPlay",null),__publicField$1(this,"onDurationCalled",!1),__publicField$1(this,"handlePlayerMount",i=>{if(this.player){this.progress();return}this.player=i,this.player.load(this.props.url),this.progress()}),__publicField$1(this,"getInternalPlayer",i=>this.player?this.player[i]:null),__publicField$1(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const i=this.getCurrentTime()||0,a=this.getSecondsLoaded(),o=this.getDuration();if(o){const c={playedSeconds:i,played:i/o};a!==null&&(c.loadedSeconds=a,c.loaded=a/o),(c.playedSeconds!==this.prevPlayed||c.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(c),this.prevPlayed=c.playedSeconds,this.prevLoaded=c.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),__publicField$1(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:i,playing:a,volume:o,muted:c}=this.props;i(),!c&&o!==null&&this.player.setVolume(o),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):a&&this.player.play(),this.handleDurationCheck()}),__publicField$1(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:i,onPlay:a,playbackRate:o}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&o!==1&&this.player.setPlaybackRate(o),i(),this.startOnPlay=!1),a(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),__publicField$1(this,"handlePause",i=>{this.isPlaying=!1,this.isLoading||this.props.onPause(i)}),__publicField$1(this,"handleEnded",()=>{const{activePlayer:i,loop:a,onEnded:o}=this.props;i.loopOnEnded&&a&&this.seekTo(0),a||(this.isPlaying=!1,o())}),__publicField$1(this,"handleError",(...i)=>{this.isLoading=!1,this.props.onError(...i)}),__publicField$1(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const i=this.getDuration();i?this.onDurationCalled||(this.props.onDuration(i),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),__publicField$1(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(i){if(!this.player)return;const{url:a,playing:o,volume:c,muted:d,playbackRate:h,pip:_,loop:ee,activePlayer:f,disableDeferredLoading:g}=this.props;if(!(0,import_react_fast_compare$1.default)(i.url,a)){if(this.isLoading&&!f.forceLoad&&!g&&!(0,import_utils$1.isMediaStream)(a)){console.warn(`ReactPlayer: the attempt to load ${a} is being deferred until the player has loaded`),this.loadOnReady=a;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(a,this.isReady)}!i.playing&&o&&!this.isPlaying&&this.player.play(),i.playing&&!o&&this.isPlaying&&this.player.pause(),!i.pip&&_&&this.player.enablePIP&&this.player.enablePIP(),i.pip&&!_&&this.player.disablePIP&&this.player.disablePIP(),i.volume!==c&&c!==null&&this.player.setVolume(c),i.muted!==d&&(d?this.player.mute():(this.player.unmute(),c!==null&&setTimeout(()=>this.player.setVolume(c)))),i.playbackRate!==h&&this.player.setPlaybackRate&&this.player.setPlaybackRate(h),i.loop!==ee&&this.player.setLoop&&this.player.setLoop(ee)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(i,a,o){if(!this.isReady){i!==0&&(this.seekOnPlay=i,setTimeout(()=>{this.seekOnPlay=null},SEEK_ON_PLAY_EXPIRY));return}if(a?a==="fraction":i>0&&i<1){const d=this.player.getDuration();if(!d){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(d*i,o);return}this.player.seekTo(i,o)}render(){const i=this.props.activePlayer;return i?import_react$1.default.createElement(i,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}__publicField$1(Player,"displayName","Player");__publicField$1(Player,"propTypes",import_props$1.propTypes);__publicField$1(Player,"defaultProps",import_props$1.defaultProps);var __create$1=Object.create,__defProp$1=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__getOwnPropNames$1=Object.getOwnPropertyNames,__getProtoOf$1=Object.getPrototypeOf,__hasOwnProp$1=Object.prototype.hasOwnProperty,__defNormalProp=(e,i,a)=>i in e?__defProp$1(e,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[i]=a,__export$1=(e,i)=>{for(var a in i)__defProp$1(e,a,{get:i[a],enumerable:!0})},__copyProps$1=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$1(i))!__hasOwnProp$1.call(e,c)&&c!==a&&__defProp$1(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$1(i,c))||o.enumerable});return e},__toESM$1=(e,i,a)=>(a=e!=null?__create$1(__getProtoOf$1(e)):{},__copyProps$1(i||!e||!e.__esModule?__defProp$1(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$1=e=>__copyProps$1(__defProp$1({},"__esModule",{value:!0}),e),__publicField=(e,i,a)=>(__defNormalProp(e,typeof i!="symbol"?i+"":i,a),a),ReactPlayer_exports={};__export$1(ReactPlayer_exports,{createReactPlayer:()=>createReactPlayer});var ReactPlayer=__toCommonJS$1(ReactPlayer_exports),import_react=__toESM$1(reactExports),import_deepmerge=__toESM$1(cjs$5),import_memoize_one=__toESM$1(require$$2$1),import_react_fast_compare=__toESM$1(reactFastCompare),import_props=props,import_utils=utils$1,import_Player=__toESM$1(Player_1);const Preview=(0,import_utils.lazy)(()=>__vitePreload(()=>import("./Preview-BwwNeYiy.js").then(e=>e.P),__vite__mapDeps([15,1,2]))),IS_BROWSER=typeof window<"u"&&window.document&&typeof document<"u",IS_GLOBAL=typeof commonjsGlobal<"u"&&commonjsGlobal.window&&commonjsGlobal.window.document,SUPPORTED_PROPS=Object.keys(import_props.propTypes),UniversalSuspense=IS_BROWSER||IS_GLOBAL?import_react.Suspense:()=>null,customPlayers=[],createReactPlayer=(e,i)=>{var a;return a=class extends import_react.Component{constructor(){super(...arguments),__publicField(this,"state",{showPreview:!!this.props.light}),__publicField(this,"references",{wrapper:o=>{this.wrapper=o},player:o=>{this.player=o}}),__publicField(this,"handleClickPreview",o=>{this.setState({showPreview:!1}),this.props.onClickPreview(o)}),__publicField(this,"showPreview",()=>{this.setState({showPreview:!0})}),__publicField(this,"getDuration",()=>this.player?this.player.getDuration():null),__publicField(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),__publicField(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),__publicField(this,"getInternalPlayer",(o="player")=>this.player?this.player.getInternalPlayer(o):null),__publicField(this,"seekTo",(o,c,d)=>{if(!this.player)return null;this.player.seekTo(o,c,d)}),__publicField(this,"handleReady",()=>{this.props.onReady(this)}),__publicField(this,"getActivePlayer",(0,import_memoize_one.default)(o=>{for(const c of[...customPlayers,...e])if(c.canPlay(o))return c;return i||null})),__publicField(this,"getConfig",(0,import_memoize_one.default)((o,c)=>{const{config:d}=this.props;return import_deepmerge.default.all([import_props.defaultProps.config,import_props.defaultProps.config[c]||{},d,d[c]||{}])})),__publicField(this,"getAttributes",(0,import_memoize_one.default)(o=>(0,import_utils.omit)(this.props,SUPPORTED_PROPS))),__publicField(this,"renderActivePlayer",o=>{if(!o)return null;const c=this.getActivePlayer(o);if(!c)return null;const d=this.getConfig(o,c.key);return import_react.default.createElement(import_Player.default,{...this.props,key:c.key,ref:this.references.player,config:d,activePlayer:c.lazyPlayer||c,onReady:this.handleReady})})}shouldComponentUpdate(o,c){return!(0,import_react_fast_compare.default)(this.props,o)||!(0,import_react_fast_compare.default)(this.state,c)}componentDidUpdate(o){const{light:c}=this.props;!o.light&&c&&this.setState({showPreview:!0}),o.light&&!c&&this.setState({showPreview:!1})}renderPreview(o){if(!o)return null;const{light:c,playIcon:d,previewTabIndex:h,oEmbedUrl:_,previewAriaLabel:ee}=this.props;return import_react.default.createElement(Preview,{url:o,light:c,playIcon:d,previewTabIndex:h,previewAriaLabel:ee,oEmbedUrl:_,onClick:this.handleClickPreview})}render(){const{url:o,style:c,width:d,height:h,fallback:_,wrapper:ee}=this.props,{showPreview:f}=this.state,g=this.getAttributes(o),he=typeof ee=="string"?this.references.wrapper:void 0;return import_react.default.createElement(ee,{ref:he,style:{...c,width:d,height:h},...g},import_react.default.createElement(UniversalSuspense,{fallback:_},f?this.renderPreview(o):this.renderActivePlayer(o)))}},__publicField(a,"displayName","ReactPlayer"),__publicField(a,"propTypes",import_props.propTypes),__publicField(a,"defaultProps",import_props.defaultProps),__publicField(a,"addCustomPlayer",o=>{customPlayers.push(o)}),__publicField(a,"removeCustomPlayers",()=>{customPlayers.length=0}),__publicField(a,"canPlay",o=>{for(const c of[...customPlayers,...e])if(c.canPlay(o))return!0;return!1}),__publicField(a,"canEnablePIP",o=>{for(const c of[...customPlayers,...e])if(c.canEnablePIP&&c.canEnablePIP(o))return!0;return!1}),a};var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,i)=>{for(var a in i)__defProp(e,a,{get:i[a],enumerable:!0})},__copyProps=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames(i))!__hasOwnProp.call(e,c)&&c!==a&&__defProp(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc(i,c))||o.enumerable});return e},__toESM=(e,i,a)=>(a=e!=null?__create(__getProtoOf(e)):{},__copyProps(i||!e||!e.__esModule?__defProp(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),src_exports={};__export(src_exports,{default:()=>src_default});var lib$1=__toCommonJS(src_exports),import_players=__toESM(players),import_ReactPlayer=ReactPlayer;const fallback=import_players.default[import_players.default.length-1];var src_default=(0,import_ReactPlayer.createReactPlayer)(import_players.default,fallback);const methodMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],nativeAPI=(()=>{const e=methodMap[0],i={};for(const a of methodMap)if((a==null?void 0:a[1])in document){for(const[c,d]of a.entries())i[e[c]]=d;return i}return!1})(),eventNameMap={change:nativeAPI.fullscreenchange,error:nativeAPI.fullscreenerror};let screenfull={request(e=document.documentElement,i){return new Promise((a,o)=>{const c=()=>{screenfull.off("change",c),a()};screenfull.on("change",c);const d=e[nativeAPI.requestFullscreen](i);d instanceof Promise&&d.then(c).catch(o)})},exit(){return new Promise((e,i)=>{if(!screenfull.isFullscreen){e();return}const a=()=>{screenfull.off("change",a),e()};screenfull.on("change",a);const o=document[nativeAPI.exitFullscreen]();o instanceof Promise&&o.then(a).catch(i)})},toggle(e,i){return screenfull.isFullscreen?screenfull.exit():screenfull.request(e,i)},onchange(e){screenfull.on("change",e)},onerror(e){screenfull.on("error",e)},on(e,i){const a=eventNameMap[e];a&&document.addEventListener(a,i,!1)},off(e,i){const a=eventNameMap[e];a&&document.removeEventListener(a,i,!1)},raw:nativeAPI};Object.defineProperties(screenfull,{isFullscreen:{get:()=>!!document[nativeAPI.fullscreenElement]},element:{enumerable:!0,get:()=>document[nativeAPI.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[nativeAPI.fullscreenEnabled]}});nativeAPI||(screenfull={isEnabled:!1});const screenfull$1=screenfull,screenfull$2=Object.freeze(Object.defineProperty({__proto__:null,default:screenfull$1},Symbol.toStringTag,{value:"Module"})),require$$6=getAugmentedNamespace(screenfull$2);(function(e){var i=commonjsGlobal&&commonjsGlobal.__makeTemplateObject||function(Re,Fe){return Object.defineProperty?Object.defineProperty(Re,"raw",{value:Fe}):Re.raw=Fe,Re},a=commonjsGlobal&&commonjsGlobal.__assign||function(){return a=Object.assign||function(Re){for(var Fe,Ke=1,tt=arguments.length;Ke{for(var a in i)__defProp$6(e,a,{get:i[a],enumerable:!0})},__copyProps$6=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$6(i))!__hasOwnProp$6.call(e,c)&&c!==a&&__defProp$6(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$6(i,c))||o.enumerable});return e},__toESM$4=(e,i,a)=>(a=e!=null?__create$4(__getProtoOf$4(e)):{},__copyProps$6(i||!e||!e.__esModule?__defProp$6(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$6=e=>__copyProps$6(__defProp$6({},"__esModule",{value:!0}),e),utils_exports={};__export$6(utils_exports,{callPlayer:()=>callPlayer,getConfig:()=>getConfig,getSDK:()=>getSDK,isBlobUrl:()=>isBlobUrl,isMediaStream:()=>isMediaStream,lazy:()=>lazy,omit:()=>omit,parseEndTime:()=>parseEndTime,parseStartTime:()=>parseStartTime,queryString:()=>queryString,randomString:()=>randomString,supportsWebKitPresentationMode:()=>supportsWebKitPresentationMode});var utils$1=__toCommonJS$6(utils_exports),import_react$2=__toESM$4(reactExports),import_load_script=__toESM$4(loadScript),import_deepmerge$1=__toESM$4(cjs$5);const lazy=e=>import_react$2.default.lazy(async()=>{const i=await e();return typeof i.default=="function"?i:i.default}),MATCH_START_QUERY=/[?&#](?:start|t)=([0-9hms]+)/,MATCH_END_QUERY=/[?&#]end=([0-9hms]+)/,MATCH_START_STAMP=/(\d+)(h|m|s)/g,MATCH_NUMERIC=/^\d+$/;function parseTimeParam(e,i){if(e instanceof Array)return;const a=e.match(i);if(a){const o=a[1];if(o.match(MATCH_START_STAMP))return parseTimeString(o);if(MATCH_NUMERIC.test(o))return parseInt(o)}}function parseTimeString(e){let i=0,a=MATCH_START_STAMP.exec(e);for(;a!==null;){const[,o,c]=a;c==="h"&&(i+=parseInt(o,10)*60*60),c==="m"&&(i+=parseInt(o,10)*60),c==="s"&&(i+=parseInt(o,10)),a=MATCH_START_STAMP.exec(e)}return i}function parseStartTime(e){return parseTimeParam(e,MATCH_START_QUERY)}function parseEndTime(e){return parseTimeParam(e,MATCH_END_QUERY)}function randomString(){return Math.random().toString(36).substr(2,5)}function queryString(e){return Object.keys(e).map(i=>`${i}=${e[i]}`).join("&")}function getGlobal(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const requests={},getSDK=function(i,a,o=null,c=()=>!0,d=import_load_script.default){const h=getGlobal(a);return h&&c(h)?Promise.resolve(h):new Promise((_,ee)=>{if(requests[i]){requests[i].push({resolve:_,reject:ee});return}requests[i]=[{resolve:_,reject:ee}];const f=g=>{requests[i].forEach(he=>he.resolve(g))};if(o){const g=window[o];window[o]=function(){g&&g(),f(getGlobal(a))}}d(i,g=>{g?(requests[i].forEach(he=>he.reject(g)),requests[i]=null):o||f(getGlobal(a))})})};function getConfig(e,i){return(0,import_deepmerge$1.default)(i.config,e.config)}function omit(e,...i){const a=[].concat(...i),o={},c=Object.keys(e);for(const d of c)a.indexOf(d)===-1&&(o[d]=e[d]);return o}function callPlayer(e,...i){if(!this.player||!this.player[e]){let a=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(a+="The method was not available"):a+="The player was not available",console.warn(a,"font-weight: bold",""),null}return this.player[e](...i)}function isMediaStream(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function isBlobUrl(e){return/^blob:/.test(e)}function supportsWebKitPresentationMode(e=document.createElement("video")){const i=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&i}function enableStubOn(e){return e}var __defProp$5=Object.defineProperty,__getOwnPropDesc$5=Object.getOwnPropertyDescriptor,__getOwnPropNames$5=Object.getOwnPropertyNames,__hasOwnProp$5=Object.prototype.hasOwnProperty,__export$5=(e,i)=>{for(var a in i)__defProp$5(e,a,{get:i[a],enumerable:!0})},__copyProps$5=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$5(i))!__hasOwnProp$5.call(e,c)&&c!==a&&__defProp$5(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$5(i,c))||o.enumerable});return e},__toCommonJS$5=e=>__copyProps$5(__defProp$5({},"__esModule",{value:!0}),e),patterns_exports={};__export$5(patterns_exports,{AUDIO_EXTENSIONS:()=>AUDIO_EXTENSIONS,DASH_EXTENSIONS:()=>DASH_EXTENSIONS,FLV_EXTENSIONS:()=>FLV_EXTENSIONS,HLS_EXTENSIONS:()=>HLS_EXTENSIONS,MATCH_URL_DAILYMOTION:()=>MATCH_URL_DAILYMOTION,MATCH_URL_FACEBOOK:()=>MATCH_URL_FACEBOOK,MATCH_URL_FACEBOOK_WATCH:()=>MATCH_URL_FACEBOOK_WATCH,MATCH_URL_KALTURA:()=>MATCH_URL_KALTURA,MATCH_URL_MIXCLOUD:()=>MATCH_URL_MIXCLOUD,MATCH_URL_MUX:()=>MATCH_URL_MUX,MATCH_URL_SOUNDCLOUD:()=>MATCH_URL_SOUNDCLOUD,MATCH_URL_STREAMABLE:()=>MATCH_URL_STREAMABLE,MATCH_URL_TWITCH_CHANNEL:()=>MATCH_URL_TWITCH_CHANNEL,MATCH_URL_TWITCH_VIDEO:()=>MATCH_URL_TWITCH_VIDEO,MATCH_URL_VIDYARD:()=>MATCH_URL_VIDYARD,MATCH_URL_VIMEO:()=>MATCH_URL_VIMEO,MATCH_URL_WISTIA:()=>MATCH_URL_WISTIA,MATCH_URL_YOUTUBE:()=>MATCH_URL_YOUTUBE,VIDEO_EXTENSIONS:()=>VIDEO_EXTENSIONS,canPlay:()=>canPlay});var patterns=__toCommonJS$5(patterns_exports),import_utils$3=utils$1;const MATCH_URL_YOUTUBE=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,MATCH_URL_SOUNDCLOUD=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,MATCH_URL_VIMEO=/vimeo\.com\/(?!progressive_redirect).+/,MATCH_URL_MUX=/stream\.mux\.com\/(\w+)/,MATCH_URL_FACEBOOK=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,MATCH_URL_FACEBOOK_WATCH=/^https?:\/\/fb\.watch\/.+$/,MATCH_URL_STREAMABLE=/streamable\.com\/([a-z0-9]+)$/,MATCH_URL_WISTIA=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,MATCH_URL_TWITCH_VIDEO=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,MATCH_URL_TWITCH_CHANNEL=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,MATCH_URL_DAILYMOTION=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,MATCH_URL_MIXCLOUD=/mixcloud\.com\/([^/]+\/[^/]+)/,MATCH_URL_VIDYARD=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,MATCH_URL_KALTURA=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,AUDIO_EXTENSIONS=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,VIDEO_EXTENSIONS=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,HLS_EXTENSIONS=/\.(m3u8)($|\?)/i,DASH_EXTENSIONS=/\.(mpd)($|\?)/i,FLV_EXTENSIONS=/\.(flv)($|\?)/i,canPlayFile=e=>{if(e instanceof Array){for(const i of e)if(typeof i=="string"&&canPlayFile(i)||canPlayFile(i.src))return!0;return!1}return(0,import_utils$3.isMediaStream)(e)||(0,import_utils$3.isBlobUrl)(e)?!0:AUDIO_EXTENSIONS.test(e)||VIDEO_EXTENSIONS.test(e)||HLS_EXTENSIONS.test(e)||DASH_EXTENSIONS.test(e)||FLV_EXTENSIONS.test(e)},canPlay={youtube:e=>e instanceof Array?e.every(i=>MATCH_URL_YOUTUBE.test(i)):MATCH_URL_YOUTUBE.test(e),soundcloud:e=>MATCH_URL_SOUNDCLOUD.test(e)&&!AUDIO_EXTENSIONS.test(e),vimeo:e=>MATCH_URL_VIMEO.test(e)&&!VIDEO_EXTENSIONS.test(e)&&!HLS_EXTENSIONS.test(e),mux:e=>MATCH_URL_MUX.test(e),facebook:e=>MATCH_URL_FACEBOOK.test(e)||MATCH_URL_FACEBOOK_WATCH.test(e),streamable:e=>MATCH_URL_STREAMABLE.test(e),wistia:e=>MATCH_URL_WISTIA.test(e),twitch:e=>MATCH_URL_TWITCH_VIDEO.test(e)||MATCH_URL_TWITCH_CHANNEL.test(e),dailymotion:e=>MATCH_URL_DAILYMOTION.test(e),mixcloud:e=>MATCH_URL_MIXCLOUD.test(e),vidyard:e=>MATCH_URL_VIDYARD.test(e),kaltura:e=>MATCH_URL_KALTURA.test(e),file:canPlayFile};var __defProp$4=Object.defineProperty,__getOwnPropDesc$4=Object.getOwnPropertyDescriptor,__getOwnPropNames$4=Object.getOwnPropertyNames,__hasOwnProp$4=Object.prototype.hasOwnProperty,__export$4=(e,i)=>{for(var a in i)__defProp$4(e,a,{get:i[a],enumerable:!0})},__copyProps$4=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$4(i))!__hasOwnProp$4.call(e,c)&&c!==a&&__defProp$4(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$4(i,c))||o.enumerable});return e},__toCommonJS$4=e=>__copyProps$4(__defProp$4({},"__esModule",{value:!0}),e),players_exports={};__export$4(players_exports,{default:()=>players_default});var players=__toCommonJS$4(players_exports),import_utils$2=utils$1,import_patterns=patterns,players_default=[{key:"youtube",name:"YouTube",canPlay:import_patterns.canPlay.youtube,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./YouTube-Cu6iADDh.js").then(e=>e.Y),__vite__mapDeps([0,1,2])))},{key:"soundcloud",name:"SoundCloud",canPlay:import_patterns.canPlay.soundcloud,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./SoundCloud-tGeq501n.js").then(e=>e.S),__vite__mapDeps([3,1,2])))},{key:"vimeo",name:"Vimeo",canPlay:import_patterns.canPlay.vimeo,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Vimeo-C0-Opy6v.js").then(e=>e.V),__vite__mapDeps([4,1,2])))},{key:"mux",name:"Mux",canPlay:import_patterns.canPlay.mux,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Mux-3Rgqhjp4.js").then(e=>e.M),__vite__mapDeps([5,1,2])))},{key:"facebook",name:"Facebook",canPlay:import_patterns.canPlay.facebook,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Facebook-BYIgHSV8.js").then(e=>e.F),__vite__mapDeps([6,1,2])))},{key:"streamable",name:"Streamable",canPlay:import_patterns.canPlay.streamable,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Streamable-bgRbunc6.js").then(e=>e.S),__vite__mapDeps([7,1,2])))},{key:"wistia",name:"Wistia",canPlay:import_patterns.canPlay.wistia,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Wistia-DjI_HIB4.js").then(e=>e.W),__vite__mapDeps([8,1,2])))},{key:"twitch",name:"Twitch",canPlay:import_patterns.canPlay.twitch,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Twitch-DFcW1Puy.js").then(e=>e.T),__vite__mapDeps([9,1,2])))},{key:"dailymotion",name:"DailyMotion",canPlay:import_patterns.canPlay.dailymotion,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./DailyMotion-UzeA5oDV.js").then(e=>e.D),__vite__mapDeps([10,1,2])))},{key:"mixcloud",name:"Mixcloud",canPlay:import_patterns.canPlay.mixcloud,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Mixcloud-Ck8U2JlT.js").then(e=>e.M),__vite__mapDeps([11,1,2])))},{key:"vidyard",name:"Vidyard",canPlay:import_patterns.canPlay.vidyard,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Vidyard-BHhXxuo2.js").then(e=>e.V),__vite__mapDeps([12,1,2])))},{key:"kaltura",name:"Kaltura",canPlay:import_patterns.canPlay.kaltura,lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./Kaltura-CKtqUZ_v.js").then(e=>e.K),__vite__mapDeps([13,1,2])))},{key:"file",name:"FilePlayer",canPlay:import_patterns.canPlay.file,canEnablePIP:e=>import_patterns.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,import_utils$2.supportsWebKitPresentationMode)())&&!import_patterns.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,import_utils$2.lazy)(()=>__vitePreload(()=>import("./FilePlayer-5v0-nP75.js").then(e=>e.F),__vite__mapDeps([14,1,2])))}],safeIsNaN=Number.isNaN||function(i){return typeof i=="number"&&i!==i};function isEqual(e,i){return!!(e===i||safeIsNaN(e)&&safeIsNaN(i))}function areInputsEqual(e,i){if(e.length!==i.length)return!1;for(var a=0;a{for(var a in i)__defProp$3(e,a,{get:i[a],enumerable:!0})},__copyProps$3=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$3(i))!__hasOwnProp$3.call(e,c)&&c!==a&&__defProp$3(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$3(i,c))||o.enumerable});return e},__toESM$3=(e,i,a)=>(a=e!=null?__create$3(__getProtoOf$3(e)):{},__copyProps$3(i||!e||!e.__esModule?__defProp$3(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$3=e=>__copyProps$3(__defProp$3({},"__esModule",{value:!0}),e),props_exports={};__export$3(props_exports,{defaultProps:()=>defaultProps,propTypes:()=>propTypes$1});var props=__toCommonJS$3(props_exports),import_prop_types=__toESM$3(propTypesExports);const{string,bool,number,array,oneOfType,shape,object,func,node}=import_prop_types.default,propTypes$1={url:oneOfType([string,array,object]),playing:bool,loop:bool,controls:bool,volume:number,muted:bool,playbackRate:number,width:oneOfType([string,number]),height:oneOfType([string,number]),style:object,progressInterval:number,playsinline:bool,pip:bool,stopOnUnmount:bool,light:oneOfType([bool,string,object]),playIcon:node,previewTabIndex:number,previewAriaLabel:string,fallback:node,oEmbedUrl:string,wrapper:oneOfType([string,func,shape({render:func.isRequired})]),config:shape({soundcloud:shape({options:object}),youtube:shape({playerVars:object,embedOptions:object,onUnstarted:func}),facebook:shape({appId:string,version:string,playerId:string,attributes:object}),dailymotion:shape({params:object}),vimeo:shape({playerOptions:object,title:string}),mux:shape({attributes:object,version:string}),file:shape({attributes:object,tracks:array,forceVideo:bool,forceAudio:bool,forceHLS:bool,forceSafariHLS:bool,forceDisableHls:bool,forceDASH:bool,forceFLV:bool,hlsOptions:object,hlsVersion:string,dashVersion:string,flvVersion:string}),wistia:shape({options:object,playerId:string,customControls:array}),mixcloud:shape({options:object}),twitch:shape({options:object,playerId:string}),vidyard:shape({options:object})}),onReady:func,onStart:func,onPlay:func,onPause:func,onBuffer:func,onBufferEnd:func,onEnded:func,onError:func,onDuration:func,onSeek:func,onPlaybackRateChange:func,onPlaybackQualityChange:func,onProgress:func,onClickPreview:func,onEnablePIP:func,onDisablePIP:func},noop=()=>{},defaultProps={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:noop},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:noop,onStart:noop,onPlay:noop,onPause:noop,onBuffer:noop,onBufferEnd:noop,onEnded:noop,onError:noop,onDuration:noop,onSeek:noop,onPlaybackRateChange:noop,onPlaybackQualityChange:noop,onProgress:noop,onClickPreview:noop,onEnablePIP:noop,onDisablePIP:noop};var __create$2=Object.create,__defProp$2=Object.defineProperty,__getOwnPropDesc$2=Object.getOwnPropertyDescriptor,__getOwnPropNames$2=Object.getOwnPropertyNames,__getProtoOf$2=Object.getPrototypeOf,__hasOwnProp$2=Object.prototype.hasOwnProperty,__defNormalProp$1=(e,i,a)=>i in e?__defProp$2(e,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[i]=a,__export$2=(e,i)=>{for(var a in i)__defProp$2(e,a,{get:i[a],enumerable:!0})},__copyProps$2=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$2(i))!__hasOwnProp$2.call(e,c)&&c!==a&&__defProp$2(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$2(i,c))||o.enumerable});return e},__toESM$2=(e,i,a)=>(a=e!=null?__create$2(__getProtoOf$2(e)):{},__copyProps$2(i||!e||!e.__esModule?__defProp$2(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$2=e=>__copyProps$2(__defProp$2({},"__esModule",{value:!0}),e),__publicField$1=(e,i,a)=>(__defNormalProp$1(e,typeof i!="symbol"?i+"":i,a),a),Player_exports={};__export$2(Player_exports,{default:()=>Player});var Player_1=__toCommonJS$2(Player_exports),import_react$1=__toESM$2(reactExports),import_react_fast_compare$1=__toESM$2(reactFastCompare),import_props$1=props,import_utils$1=utils$1;const SEEK_ON_PLAY_EXPIRY=5e3;class Player extends import_react$1.Component{constructor(){super(...arguments),__publicField$1(this,"mounted",!1),__publicField$1(this,"isReady",!1),__publicField$1(this,"isPlaying",!1),__publicField$1(this,"isLoading",!0),__publicField$1(this,"loadOnReady",null),__publicField$1(this,"startOnPlay",!0),__publicField$1(this,"seekOnPlay",null),__publicField$1(this,"onDurationCalled",!1),__publicField$1(this,"handlePlayerMount",i=>{if(this.player){this.progress();return}this.player=i,this.player.load(this.props.url),this.progress()}),__publicField$1(this,"getInternalPlayer",i=>this.player?this.player[i]:null),__publicField$1(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const i=this.getCurrentTime()||0,a=this.getSecondsLoaded(),o=this.getDuration();if(o){const c={playedSeconds:i,played:i/o};a!==null&&(c.loadedSeconds=a,c.loaded=a/o),(c.playedSeconds!==this.prevPlayed||c.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(c),this.prevPlayed=c.playedSeconds,this.prevLoaded=c.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),__publicField$1(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:i,playing:a,volume:o,muted:c}=this.props;i(),!c&&o!==null&&this.player.setVolume(o),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):a&&this.player.play(),this.handleDurationCheck()}),__publicField$1(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:i,onPlay:a,playbackRate:o}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&o!==1&&this.player.setPlaybackRate(o),i(),this.startOnPlay=!1),a(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),__publicField$1(this,"handlePause",i=>{this.isPlaying=!1,this.isLoading||this.props.onPause(i)}),__publicField$1(this,"handleEnded",()=>{const{activePlayer:i,loop:a,onEnded:o}=this.props;i.loopOnEnded&&a&&this.seekTo(0),a||(this.isPlaying=!1,o())}),__publicField$1(this,"handleError",(...i)=>{this.isLoading=!1,this.props.onError(...i)}),__publicField$1(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const i=this.getDuration();i?this.onDurationCalled||(this.props.onDuration(i),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),__publicField$1(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(i){if(!this.player)return;const{url:a,playing:o,volume:c,muted:d,playbackRate:h,pip:_,loop:ee,activePlayer:f,disableDeferredLoading:g}=this.props;if(!(0,import_react_fast_compare$1.default)(i.url,a)){if(this.isLoading&&!f.forceLoad&&!g&&!(0,import_utils$1.isMediaStream)(a)){console.warn(`ReactPlayer: the attempt to load ${a} is being deferred until the player has loaded`),this.loadOnReady=a;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(a,this.isReady)}!i.playing&&o&&!this.isPlaying&&this.player.play(),i.playing&&!o&&this.isPlaying&&this.player.pause(),!i.pip&&_&&this.player.enablePIP&&this.player.enablePIP(),i.pip&&!_&&this.player.disablePIP&&this.player.disablePIP(),i.volume!==c&&c!==null&&this.player.setVolume(c),i.muted!==d&&(d?this.player.mute():(this.player.unmute(),c!==null&&setTimeout(()=>this.player.setVolume(c)))),i.playbackRate!==h&&this.player.setPlaybackRate&&this.player.setPlaybackRate(h),i.loop!==ee&&this.player.setLoop&&this.player.setLoop(ee)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(i,a,o){if(!this.isReady){i!==0&&(this.seekOnPlay=i,setTimeout(()=>{this.seekOnPlay=null},SEEK_ON_PLAY_EXPIRY));return}if(a?a==="fraction":i>0&&i<1){const d=this.player.getDuration();if(!d){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(d*i,o);return}this.player.seekTo(i,o)}render(){const i=this.props.activePlayer;return i?import_react$1.default.createElement(i,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}__publicField$1(Player,"displayName","Player");__publicField$1(Player,"propTypes",import_props$1.propTypes);__publicField$1(Player,"defaultProps",import_props$1.defaultProps);var __create$1=Object.create,__defProp$1=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__getOwnPropNames$1=Object.getOwnPropertyNames,__getProtoOf$1=Object.getPrototypeOf,__hasOwnProp$1=Object.prototype.hasOwnProperty,__defNormalProp=(e,i,a)=>i in e?__defProp$1(e,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[i]=a,__export$1=(e,i)=>{for(var a in i)__defProp$1(e,a,{get:i[a],enumerable:!0})},__copyProps$1=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames$1(i))!__hasOwnProp$1.call(e,c)&&c!==a&&__defProp$1(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc$1(i,c))||o.enumerable});return e},__toESM$1=(e,i,a)=>(a=e!=null?__create$1(__getProtoOf$1(e)):{},__copyProps$1(i||!e||!e.__esModule?__defProp$1(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS$1=e=>__copyProps$1(__defProp$1({},"__esModule",{value:!0}),e),__publicField=(e,i,a)=>(__defNormalProp(e,typeof i!="symbol"?i+"":i,a),a),ReactPlayer_exports={};__export$1(ReactPlayer_exports,{createReactPlayer:()=>createReactPlayer});var ReactPlayer=__toCommonJS$1(ReactPlayer_exports),import_react=__toESM$1(reactExports),import_deepmerge=__toESM$1(cjs$5),import_memoize_one=__toESM$1(require$$2$1),import_react_fast_compare=__toESM$1(reactFastCompare),import_props=props,import_utils=utils$1,import_Player=__toESM$1(Player_1);const Preview=(0,import_utils.lazy)(()=>__vitePreload(()=>import("./Preview-DVlUQOSF.js").then(e=>e.P),__vite__mapDeps([15,1,2]))),IS_BROWSER=typeof window<"u"&&window.document&&typeof document<"u",IS_GLOBAL=typeof commonjsGlobal<"u"&&commonjsGlobal.window&&commonjsGlobal.window.document,SUPPORTED_PROPS=Object.keys(import_props.propTypes),UniversalSuspense=IS_BROWSER||IS_GLOBAL?import_react.Suspense:()=>null,customPlayers=[],createReactPlayer=(e,i)=>{var a;return a=class extends import_react.Component{constructor(){super(...arguments),__publicField(this,"state",{showPreview:!!this.props.light}),__publicField(this,"references",{wrapper:o=>{this.wrapper=o},player:o=>{this.player=o}}),__publicField(this,"handleClickPreview",o=>{this.setState({showPreview:!1}),this.props.onClickPreview(o)}),__publicField(this,"showPreview",()=>{this.setState({showPreview:!0})}),__publicField(this,"getDuration",()=>this.player?this.player.getDuration():null),__publicField(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),__publicField(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),__publicField(this,"getInternalPlayer",(o="player")=>this.player?this.player.getInternalPlayer(o):null),__publicField(this,"seekTo",(o,c,d)=>{if(!this.player)return null;this.player.seekTo(o,c,d)}),__publicField(this,"handleReady",()=>{this.props.onReady(this)}),__publicField(this,"getActivePlayer",(0,import_memoize_one.default)(o=>{for(const c of[...customPlayers,...e])if(c.canPlay(o))return c;return i||null})),__publicField(this,"getConfig",(0,import_memoize_one.default)((o,c)=>{const{config:d}=this.props;return import_deepmerge.default.all([import_props.defaultProps.config,import_props.defaultProps.config[c]||{},d,d[c]||{}])})),__publicField(this,"getAttributes",(0,import_memoize_one.default)(o=>(0,import_utils.omit)(this.props,SUPPORTED_PROPS))),__publicField(this,"renderActivePlayer",o=>{if(!o)return null;const c=this.getActivePlayer(o);if(!c)return null;const d=this.getConfig(o,c.key);return import_react.default.createElement(import_Player.default,{...this.props,key:c.key,ref:this.references.player,config:d,activePlayer:c.lazyPlayer||c,onReady:this.handleReady})})}shouldComponentUpdate(o,c){return!(0,import_react_fast_compare.default)(this.props,o)||!(0,import_react_fast_compare.default)(this.state,c)}componentDidUpdate(o){const{light:c}=this.props;!o.light&&c&&this.setState({showPreview:!0}),o.light&&!c&&this.setState({showPreview:!1})}renderPreview(o){if(!o)return null;const{light:c,playIcon:d,previewTabIndex:h,oEmbedUrl:_,previewAriaLabel:ee}=this.props;return import_react.default.createElement(Preview,{url:o,light:c,playIcon:d,previewTabIndex:h,previewAriaLabel:ee,oEmbedUrl:_,onClick:this.handleClickPreview})}render(){const{url:o,style:c,width:d,height:h,fallback:_,wrapper:ee}=this.props,{showPreview:f}=this.state,g=this.getAttributes(o),he=typeof ee=="string"?this.references.wrapper:void 0;return import_react.default.createElement(ee,{ref:he,style:{...c,width:d,height:h},...g},import_react.default.createElement(UniversalSuspense,{fallback:_},f?this.renderPreview(o):this.renderActivePlayer(o)))}},__publicField(a,"displayName","ReactPlayer"),__publicField(a,"propTypes",import_props.propTypes),__publicField(a,"defaultProps",import_props.defaultProps),__publicField(a,"addCustomPlayer",o=>{customPlayers.push(o)}),__publicField(a,"removeCustomPlayers",()=>{customPlayers.length=0}),__publicField(a,"canPlay",o=>{for(const c of[...customPlayers,...e])if(c.canPlay(o))return!0;return!1}),__publicField(a,"canEnablePIP",o=>{for(const c of[...customPlayers,...e])if(c.canEnablePIP&&c.canEnablePIP(o))return!0;return!1}),a};var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,i)=>{for(var a in i)__defProp(e,a,{get:i[a],enumerable:!0})},__copyProps=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of __getOwnPropNames(i))!__hasOwnProp.call(e,c)&&c!==a&&__defProp(e,c,{get:()=>i[c],enumerable:!(o=__getOwnPropDesc(i,c))||o.enumerable});return e},__toESM=(e,i,a)=>(a=e!=null?__create(__getProtoOf(e)):{},__copyProps(i||!e||!e.__esModule?__defProp(a,"default",{value:e,enumerable:!0}):a,e)),__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),src_exports={};__export(src_exports,{default:()=>src_default});var lib$1=__toCommonJS(src_exports),import_players=__toESM(players),import_ReactPlayer=ReactPlayer;const fallback=import_players.default[import_players.default.length-1];var src_default=(0,import_ReactPlayer.createReactPlayer)(import_players.default,fallback);const methodMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],nativeAPI=(()=>{const e=methodMap[0],i={};for(const a of methodMap)if((a==null?void 0:a[1])in document){for(const[c,d]of a.entries())i[e[c]]=d;return i}return!1})(),eventNameMap={change:nativeAPI.fullscreenchange,error:nativeAPI.fullscreenerror};let screenfull={request(e=document.documentElement,i){return new Promise((a,o)=>{const c=()=>{screenfull.off("change",c),a()};screenfull.on("change",c);const d=e[nativeAPI.requestFullscreen](i);d instanceof Promise&&d.then(c).catch(o)})},exit(){return new Promise((e,i)=>{if(!screenfull.isFullscreen){e();return}const a=()=>{screenfull.off("change",a),e()};screenfull.on("change",a);const o=document[nativeAPI.exitFullscreen]();o instanceof Promise&&o.then(a).catch(i)})},toggle(e,i){return screenfull.isFullscreen?screenfull.exit():screenfull.request(e,i)},onchange(e){screenfull.on("change",e)},onerror(e){screenfull.on("error",e)},on(e,i){const a=eventNameMap[e];a&&document.addEventListener(a,i,!1)},off(e,i){const a=eventNameMap[e];a&&document.removeEventListener(a,i,!1)},raw:nativeAPI};Object.defineProperties(screenfull,{isFullscreen:{get:()=>!!document[nativeAPI.fullscreenElement]},element:{enumerable:!0,get:()=>document[nativeAPI.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[nativeAPI.fullscreenEnabled]}});nativeAPI||(screenfull={isEnabled:!1});const screenfull$1=screenfull,screenfull$2=Object.freeze(Object.defineProperty({__proto__:null,default:screenfull$1},Symbol.toStringTag,{value:"Module"})),require$$6=getAugmentedNamespace(screenfull$2);(function(e){var i=commonjsGlobal&&commonjsGlobal.__makeTemplateObject||function(Re,Fe){return Object.defineProperty?Object.defineProperty(Re,"raw",{value:Fe}):Re.raw=Fe,Re},a=commonjsGlobal&&commonjsGlobal.__assign||function(){return a=Object.assign||function(Re){for(var Fe,Ke=1,tt=arguments.length;Ke{const{t:o}=p();return t?e.jsx(e.Fragment,{children:t&&F(t)!==""&&e.jsxs("section",{className:"with-border",children:[e.jsx(D.Title,{level:4,children:a??o("SectionDescriptionTitle")}),e.jsx(H,{children:t})]})}):null},ie=()=>{const{webinar:t}=l.useContext(j.EscolaLMSContext),{t:a}=p();return t.value?e.jsx(ee,{items:[e.jsx(k,{to:S.home,children:a("Home")}),e.jsx(k,{to:S.webinars,children:a("Menu.Webinars")}),e.jsx(C.Text,{size:"12",children:t.value.name})]}):null},ne=T.div` +import{f as p,j as e,ak as F,T as D,aE as H,r as l,D as j,L as k,l as S,s as C,q as T,w as m,ax as q,n as r,ay as u,az as A,aA as J,aB as G,ai as L,h as R,i as U,Y as w,v as h,J as $,aD as Y,N as K,C as Q,E as V,o as X,aJ as Z}from"./index-Cei2V9tG.js";import{C as b,T as O}from"./index-D7izAFJ6.js";import{B as ee}from"./index-rOJCcL2u.js";import{a as te}from"./ResponsiveImage-CUm6fM86.js";import{P as se}from"./PricingCard-YjgD6nmP.js";import{W as ae}from"./index-Dv2dilEh.js";import{P as oe}from"./index-Cm0iCbGi.js";const I=({description:t,title:a})=>{const{t:o}=p();return t?e.jsx(e.Fragment,{children:t&&F(t)!==""&&e.jsxs("section",{className:"with-border",children:[e.jsx(D.Title,{level:4,children:a??o("SectionDescriptionTitle")}),e.jsx(H,{children:t})]})}):null},ie=()=>{const{webinar:t}=l.useContext(j.EscolaLMSContext),{t:a}=p();return t.value?e.jsx(ee,{items:[e.jsx(k,{to:S.home,children:a("Home")}),e.jsx(k,{to:S.webinars,children:a("Menu.Webinars")}),e.jsx(C.Text,{size:"12",children:t.value.name})]}):null},ne=T.div` .webinar-main-info { .image-wrapper { @media (max-width: 991px) { diff --git a/assets/index-CaBsIUEq.js b/assets/index-BstSZKJJ.js similarity index 93% rename from assets/index-CaBsIUEq.js rename to assets/index-BstSZKJJ.js index a6c65527..074283c7 100644 --- a/assets/index-CaBsIUEq.js +++ b/assets/index-BstSZKJJ.js @@ -1,4 +1,4 @@ -import{q as x,j as e,T as u,r as o,D as m,i as y,f as g,l as s,o as h,C as P,w as l,n as d}from"./index-Bjk_45MO.js";import{P as j}from"./index-waE41t0D.js";const b=x.div` +import{q as x,j as e,T as u,r as o,D as m,i as y,f as g,l as s,o as h,C as P,w as l,n as d}from"./index-Cei2V9tG.js";import{P as j}from"./index-CAbbcEiW.js";const b=x.div` position: relative; z-index: 0; /* padding: ${t=>t.withTabs?"105px 40px 90px 40px":"165px 40px 30px 40px"}; */ diff --git a/assets/index-DXx2DfZ5.js b/assets/index-BuJ5dWx7.js similarity index 94% rename from assets/index-DXx2DfZ5.js rename to assets/index-BuJ5dWx7.js index 59b85021..d455f4ed 100644 --- a/assets/index-DXx2DfZ5.js +++ b/assets/index-BuJ5dWx7.js @@ -1 +1 @@ -import{i as y,k as g,f as h,X as j,r as o,D as S,l as E,j as t,o as v,S as V,s as C}from"./index-Bjk_45MO.js";const w=()=>{var f,u;const{push:n}=y(),{search:s}=g(),a=s&&((f=s==null?void 0:s.split("&")[0])==null?void 0:f.split("=")[1]),i=s&&((u=s==null?void 0:s.split("&")[1])==null?void 0:u.split("=")[1]),{t:m}=h(),x=j(),{emailVerify:l}=o.useContext(S.EscolaLMSContext),[c,r]=o.useState({loading:!1,state:"init",isVerified:!1,message:""}),d=o.useCallback(async()=>{r(e=>({...e,loading:!0}));try{const e=a&&i&&await l(String(a),String(i));e&&r(p=>({...p,state:"success",message:e.message,isVerified:!0}))}catch(e){console.error(e)}finally{r(e=>({...e,loading:!1}))}},[a,i,l]);return o.useEffect(()=>{i||n(E.home),a&&i&&d()},[a,i,d,n]),t.jsx(v,{children:t.jsx("div",{className:"profile-authentication-area",children:t.jsx("div",{className:"container",children:t.jsx("div",{className:"row ",children:t.jsx("div",{className:"col-lg-12 col-md-12",children:t.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},children:[c.loading&&t.jsx(V.Spin,{color:x.primaryColor})," ",c.isVerified&&t.jsx(C.Text,{size:"16",children:m("EmailWasVerified")})]})})})})})})};export{w as default}; +import{i as y,k as g,f as h,X as j,r as o,D as S,l as E,j as t,o as v,S as V,s as C}from"./index-Cei2V9tG.js";const w=()=>{var f,u;const{push:n}=y(),{search:s}=g(),a=s&&((f=s==null?void 0:s.split("&")[0])==null?void 0:f.split("=")[1]),i=s&&((u=s==null?void 0:s.split("&")[1])==null?void 0:u.split("=")[1]),{t:m}=h(),x=j(),{emailVerify:l}=o.useContext(S.EscolaLMSContext),[c,r]=o.useState({loading:!1,state:"init",isVerified:!1,message:""}),d=o.useCallback(async()=>{r(e=>({...e,loading:!0}));try{const e=a&&i&&await l(String(a),String(i));e&&r(p=>({...p,state:"success",message:e.message,isVerified:!0}))}catch(e){console.error(e)}finally{r(e=>({...e,loading:!1}))}},[a,i,l]);return o.useEffect(()=>{i||n(E.home),a&&i&&d()},[a,i,d,n]),t.jsx(v,{children:t.jsx("div",{className:"profile-authentication-area",children:t.jsx("div",{className:"container",children:t.jsx("div",{className:"row ",children:t.jsx("div",{className:"col-lg-12 col-md-12",children:t.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},children:[c.loading&&t.jsx(V.Spin,{color:x.primaryColor})," ",c.isVerified&&t.jsx(C.Text,{size:"16",children:m("EmailWasVerified")})]})})})})})})};export{w as default}; diff --git a/assets/index-D0XQwhQb.js b/assets/index-BxtluS5u.js similarity index 95% rename from assets/index-D0XQwhQb.js rename to assets/index-BxtluS5u.js index 39247a06..21a6e88f 100644 --- a/assets/index-D0XQwhQb.js +++ b/assets/index-BxtluS5u.js @@ -1,4 +1,4 @@ -import{q as h,X as j,r as g,j as e,cC as p}from"./index-Bjk_45MO.js";const y=h("div")` +import{q as h,X as j,r as g,j as e,cC as p}from"./index-Cei2V9tG.js";const y=h("div")` align-self: end; display: flex; gap: 10px; diff --git a/assets/index-D-wL3BMo.js b/assets/index-C3kP4aL8.js similarity index 94% rename from assets/index-D-wL3BMo.js rename to assets/index-C3kP4aL8.js index b9b0f31a..51b2fe95 100644 --- a/assets/index-D-wL3BMo.js +++ b/assets/index-C3kP4aL8.js @@ -1,4 +1,4 @@ -import{b as L,r as g,D as B,i as N,k as q,q as C,n as P,f as b,j as e,w as S,s as j,m as f,L as R,T as W,N as $,O as k,X as M,Q as H,V as X,o as G,C as O}from"./index-Bjk_45MO.js";import{P as Q}from"./index-DXgEk6c6.js";import{q as _}from"./base-C7euzKDi.js";import{R as U}from"./ResponsiveImage-wYxl3kWJ.js";import{C as V}from"./index-BNTGN6Sw.js";import{C as J}from"./index-DdavEOvA.js";import{P as K}from"./index-D1KheDiE.js";import{C as Y}from"./CourseCard-Cly8Zjem.js";import{u as Z}from"./useFetchCourses-CPsyyy8t.js";import"./index-BMKx56cF.js";const z=L.createContext({}),ee=()=>{const{courses:r,params:t,setParams:s,loading:x}=g.useContext(z),{fetchCategories:a,categoryTree:c}=g.useContext(B.EscolaLMSContext),[o,n]=g.useState([]),i=N(),h=q(),y=g.useCallback(l=>{s&&s({...t,order:l})},[t,s]),u=g.useCallback(l=>{s&&s({...t,page:l})},[t,s]),E=g.useCallback(l=>{const d=o.filter(p=>p.id!==l);n(d),s&&s({...t,page:1,"categories[]":d.map(p=>p.id)})},[t,o,s]),T=g.useCallback(l=>{const d=o.some(p=>p.id===l.id)?o.filter(p=>p.id!==l.id):[...o,l];n(d),s&&s({...t,page:1,"categories[]":d.map(p=>p.id)})},[t,o,s]),v=g.useCallback(()=>{n([]),s&&s({...t,page:1,order:void 0,"categories[]":void 0})},[t,s]),w=g.useCallback(l=>l.flatMap(d=>{const p=w(d.subcategories||[]);return[d,...p]}),[]);return g.useEffect(()=>{const d=_.parse(h.search)["categories[]"];if(d){const D=w(c.list||[]).filter(A=>d.includes(String(A.id)));n(D)}},[h.search,c,w]),g.useEffect(()=>{a()},[a]),g.useEffect(()=>{t&&i.push(`${h.pathname}?${_.stringify(t)}`)},[t,h.pathname,i]),{courses:r,loading:x,prevCategories:o,handleSortChange:y,handlePageChange:u,handleRemoveCategory:E,handleCategoryChange:T,onClearCategories:v,params:t,categoryTree:c}},F=C.section` +import{b as L,r as g,D as B,i as N,k as q,q as C,n as P,f as b,j as e,w as S,s as j,m as f,L as R,T as W,N as $,O as k,X as M,Q as H,V as X,o as G,C as O}from"./index-Cei2V9tG.js";import{P as Q}from"./index-CULsm7V8.js";import{q as _}from"./base-C7euzKDi.js";import{R as U}from"./ResponsiveImage-CUm6fM86.js";import{C as V}from"./index-KwSvHpAm.js";import{C as J}from"./index-CO3xj3k-.js";import{P as K}from"./index-Cm0iCbGi.js";import{C as Y}from"./CourseCard-CUpRcofn.js";import{u as Z}from"./useFetchCourses-Dd2e0Wna.js";import"./index-D-BQVsc5.js";const z=L.createContext({}),ee=()=>{const{courses:r,params:t,setParams:s,loading:x}=g.useContext(z),{fetchCategories:a,categoryTree:c}=g.useContext(B.EscolaLMSContext),[o,n]=g.useState([]),i=N(),h=q(),y=g.useCallback(l=>{s&&s({...t,order:l})},[t,s]),u=g.useCallback(l=>{s&&s({...t,page:l})},[t,s]),E=g.useCallback(l=>{const d=o.filter(p=>p.id!==l);n(d),s&&s({...t,page:1,"categories[]":d.map(p=>p.id)})},[t,o,s]),T=g.useCallback(l=>{const d=o.some(p=>p.id===l.id)?o.filter(p=>p.id!==l.id):[...o,l];n(d),s&&s({...t,page:1,"categories[]":d.map(p=>p.id)})},[t,o,s]),v=g.useCallback(()=>{n([]),s&&s({...t,page:1,order:void 0,"categories[]":void 0})},[t,s]),w=g.useCallback(l=>l.flatMap(d=>{const p=w(d.subcategories||[]);return[d,...p]}),[]);return g.useEffect(()=>{const d=_.parse(h.search)["categories[]"];if(d){const D=w(c.list||[]).filter(A=>d.includes(String(A.id)));n(D)}},[h.search,c,w]),g.useEffect(()=>{a()},[a]),g.useEffect(()=>{t&&i.push(`${h.pathname}?${_.stringify(t)}`)},[t,h.pathname,i]),{courses:r,loading:x,prevCategories:o,handleSortChange:y,handlePageChange:u,handleRemoveCategory:E,handleCategoryChange:T,onClearCategories:v,params:t,categoryTree:c}},F=C.section` margin-bottom: ${P?"50px":"75px"}; `,se=({courses:r,loading:t})=>{const s=N(),{t:x}=b();return r&&!t&&r.length===0?e.jsx(S.Row,{justify:"center",children:e.jsx(j.Text,{size:"18",children:x("NoCourses")})}):t?e.jsx(F,{children:e.jsx(S.Row,{style:{gap:"30px 0"},children:Array.from({length:12}).map((a,c)=>e.jsx(Y,{colProps:{xl:3,lg:4,md:6}},`index-${c}-skeleton`))})}):e.jsx(F,{children:e.jsx(S.Row,{style:{gap:"30px 0"},children:r==null?void 0:r.map(a=>{var c,o,n;return e.jsx(S.Col,{md:6,lg:4,xl:3,children:e.jsx(f.NewCourseCard,{mobile:P,id:a.id,image:e.jsx(R,{to:`/courses/${a.id}`,children:a.image_path?e.jsx(U.ResponsiveImage,{path:a.image_path,alt:a.title,srcSizes:[300,600,900]}):e.jsx(J,{})}),price:a.public?e.jsx("div",{className:"course-price",children:x("FREE")}):e.jsx(K,{price:(c=a.product)==null?void 0:c.price,oldPrice:(o=a.product)==null?void 0:o.price_old,taxRate:(n=a.product)==null?void 0:n.tax_rate}),title:e.jsx(R,{to:`/courses/${a.id}`,children:e.jsx(W.Title,{level:3,as:"h3",className:"title",children:a.title})}),categories:e.jsx(V,{categories:a.categories,onCategoryClick:i=>{s.push(`/courses/?categories[]=${i}`)}})})},a.id)})})})},re=C.div` display: flex; diff --git a/assets/index-DyNx7jEp.js b/assets/index-C98yo6RU.js similarity index 87% rename from assets/index-DyNx7jEp.js rename to assets/index-C98yo6RU.js index 372147e4..6a03f4f0 100644 --- a/assets/index-DyNx7jEp.js +++ b/assets/index-C98yo6RU.js @@ -1,4 +1,4 @@ -import{q as r,X as t,r as n,j as o,S as d}from"./index-Bjk_45MO.js";const s=r.div` +import{q as r,X as t,r as n,j as o,S as d}from"./index-Cei2V9tG.js";const s=r.div` position: fixed; top: 0; left: 0; diff --git a/assets/index-waE41t0D.js b/assets/index-CAbbcEiW.js similarity index 52% rename from assets/index-waE41t0D.js rename to assets/index-CAbbcEiW.js index 57293b3b..dc169a55 100644 --- a/assets/index-waE41t0D.js +++ b/assets/index-CAbbcEiW.js @@ -1,12 +1,12 @@ -import{q as c,j as s,n as r,r as a,D as x,f as j,i as f,T as v,U as y,cB as u,s as i,l as $}from"./index-Bjk_45MO.js";const k=c.div` +import{q as d,j as s,n as r,r as o,D as p,f as v,i as y,T as $,U as k,cB as g,s as c,l as T}from"./index-Cei2V9tG.js";const w=d.div` padding: 11px 6px; background: ${({theme:e})=>e.mode==="dark"?e.dm__cardBackgroundColor:e.white}; border-radius: ${({theme:e})=>e.cardRadius}px; -`,p=({children:e})=>s.jsx(k,{children:e}),T=c.div` +`,m=({children:e})=>s.jsx(w,{children:e}),C=d.div` h2 { margin-bottom: 10px; } -`,g=c("aside")` +`,h=d("aside")` background: ${({theme:e})=>e.mode==="dark"?e.dm__background:e.white}; border-radius: ${({theme:e})=>e.cardRadius}px; @@ -56,4 +56,4 @@ import{q as c,j as s,n as r,r as a,D as x,f as j,i as f,T as v,U as y,cB as u,s justify-content: ${r?"space-between":"flex-start"}; align-items: ${r?"center":"flex-start"}; } -`,C=({tabs:e,isProfile:t=!0})=>{const{settings:d}=a.useContext(x.EscolaLMSContext),[l]=a.useState(!1),{logout:m,fetchProgress:h}=a.useContext(x.EscolaLMSContext),{t:o}=j(),b=f();return a.useEffect(()=>{h()},[]),s.jsxs(T,{children:[t&&s.jsx(v.Title,{level:2,as:"h2",children:o("MyProfilePage.YourAccount")}),s.jsx(g,{opened:l,children:s.jsx("div",{className:"user-main-sidebar",children:s.jsx(p,{icon:s.jsx(y,{}),children:s.jsxs("nav",{className:"navigation",children:[e.map(n=>s.jsx(u,{activeClassName:"selected",to:n.url,children:s.jsx(i.Text,{size:"16",children:n.title})},n.key)),t&&d.value.config.termsPage&&s.jsx(u,{to:`/${d.value.config.termsPage}`,children:s.jsx(i.Text,{size:"16",children:o("Terms")})})]})})})}),t&&s.jsx(g,{opened:l,children:s.jsx("div",{className:"user-main-sidebar",children:s.jsx(p,{children:s.jsx("div",{className:"navigation",children:s.jsx("button",{onClick:()=>m().then(()=>b.push($.home)),children:s.jsx(i.Text,{children:o("MyProfilePage.Logout")})})})})})})]})};export{C as P}; +`,P=({tabs:e,isProfile:t=!0})=>{var x,u;const{settings:a}=o.useContext(p.EscolaLMSContext),[l]=o.useState(!1),{logout:b,fetchProgress:j}=o.useContext(p.EscolaLMSContext),{t:n}=v(),f=y();return o.useEffect(()=>{j()},[]),s.jsxs(C,{children:[t&&s.jsx($.Title,{level:2,as:"h2",children:n("MyProfilePage.YourAccount")}),s.jsx(h,{opened:l,children:s.jsx("div",{className:"user-main-sidebar",children:s.jsx(m,{icon:s.jsx(k,{}),children:s.jsxs("nav",{className:"navigation",children:[e.map(i=>s.jsx(g,{activeClassName:"selected",to:i.url,children:s.jsx(c.Text,{size:"16",children:i.title})},i.key)),t&&((u=(x=a==null?void 0:a.value)==null?void 0:x.config)==null?void 0:u.termsPage)&&s.jsx(g,{to:`/${a.value.config.termsPage}`,children:s.jsx(c.Text,{size:"16",children:n("Terms")})})]})})})}),t&&s.jsx(h,{opened:l,children:s.jsx("div",{className:"user-main-sidebar",children:s.jsx(m,{children:s.jsx("div",{className:"navigation",children:s.jsx("button",{onClick:()=>b().then(()=>f.push(T.home)),children:s.jsx(c.Text,{children:n("MyProfilePage.Logout")})})})})})})]})};export{P}; diff --git a/assets/index-l-JxvgyX.js b/assets/index-CC3onPjx.js similarity index 90% rename from assets/index-l-JxvgyX.js rename to assets/index-CC3onPjx.js index e536225f..1eabf694 100644 --- a/assets/index-l-JxvgyX.js +++ b/assets/index-CC3onPjx.js @@ -1,4 +1,4 @@ -import{r as o,j as e,q as y,n as u,E as P,h as S,f as b,F as B,l as p,o as E,C as k,L as R,s as C,w as l,M}from"./index-Bjk_45MO.js";import{B as T}from"./index-DNvp70I6.js";import{P as w}from"./index-waE41t0D.js";import{S as c}from"./index-BMKx56cF.js";function L(t){const n=o.useRef();return o.useEffect(()=>{n.current=t},[t]),n.current}const F=()=>e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{marginBottom:"27px"},children:e.jsx(c,{count:5,style:{marginBottom:"11px",height:"20px"}})}),e.jsx("div",{style:{marginBottom:"27px"},children:e.jsx(c,{count:12,style:{marginBottom:"11px",height:"20px"}})}),e.jsx("div",{style:{marginBottom:"27px"},children:e.jsx(c,{count:6,style:{marginBottom:"11px",height:"20px"}})})]}),$=y.section` +import{r as o,j as e,q as y,n as u,E as P,h as S,f as b,F as B,l as p,o as E,C as k,L as R,s as C,w as l,M}from"./index-Cei2V9tG.js";import{B as T}from"./index-rOJCcL2u.js";import{P as w}from"./index-CAbbcEiW.js";import{S as c}from"./index-D-BQVsc5.js";function L(t){const n=o.useRef();return o.useEffect(()=>{n.current=t},[t]),n.current}const F=()=>e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{marginBottom:"27px"},children:e.jsx(c,{count:5,style:{marginBottom:"11px",height:"20px"}})}),e.jsx("div",{style:{marginBottom:"27px"},children:e.jsx(c,{count:12,style:{marginBottom:"11px",height:"20px"}})}),e.jsx("div",{style:{marginBottom:"27px"},children:e.jsx(c,{count:6,style:{marginBottom:"11px",height:"20px"}})})]}),$=y.section` background-color: ${({theme:t})=>t.gray4}; min-height: calc(100vh - 400px); .user-main-sidebar { diff --git a/assets/index-DdavEOvA.js b/assets/index-CO3xj3k-.js similarity index 96% rename from assets/index-DdavEOvA.js rename to assets/index-CO3xj3k-.js index 4aa99e78..5f7f009d 100644 --- a/assets/index-DdavEOvA.js +++ b/assets/index-CO3xj3k-.js @@ -1,4 +1,4 @@ -import{q as o,j as r}from"./index-Bjk_45MO.js";const l="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.5%201H12.5C13.3284%201%2014%201.67157%2014%202.5V12.5C14%2013.3284%2013.3284%2014%2012.5%2014H2.5C1.67157%2014%201%2013.3284%201%2012.5V2.5C1%201.67157%201.67157%201%202.5%201ZM2.5%202C2.22386%202%202%202.22386%202%202.5V8.3636L3.6818%206.6818C3.76809%206.59551%203.88572%206.54797%204.00774%206.55007C4.12975%206.55216%204.24568%206.60372%204.32895%206.69293L7.87355%2010.4901L10.6818%207.6818C10.8575%207.50607%2011.1425%207.50607%2011.3182%207.6818L13%209.3636V2.5C13%202.22386%2012.7761%202%2012.5%202H2.5ZM2%2012.5V9.6364L3.98887%207.64753L7.5311%2011.4421L8.94113%2013H2.5C2.22386%2013%202%2012.7761%202%2012.5ZM12.5%2013H10.155L8.48336%2011.153L11%208.6364L13%2010.6364V12.5C13%2012.7761%2012.7761%2013%2012.5%2013ZM6.64922%205.5C6.64922%205.03013%207.03013%204.64922%207.5%204.64922C7.96987%204.64922%208.35078%205.03013%208.35078%205.5C8.35078%205.96987%207.96987%206.35078%207.5%206.35078C7.03013%206.35078%206.64922%205.96987%206.64922%205.5ZM7.5%203.74922C6.53307%203.74922%205.74922%204.53307%205.74922%205.5C5.74922%206.46693%206.53307%207.25078%207.5%207.25078C8.46693%207.25078%209.25078%206.46693%209.25078%205.5C9.25078%204.53307%208.46693%203.74922%207.5%203.74922Z'%20fill='currentColor'%20/%3e%3c/svg%3e",C=o.div` +import{q as o,j as r}from"./index-Cei2V9tG.js";const l="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.5%201H12.5C13.3284%201%2014%201.67157%2014%202.5V12.5C14%2013.3284%2013.3284%2014%2012.5%2014H2.5C1.67157%2014%201%2013.3284%201%2012.5V2.5C1%201.67157%201.67157%201%202.5%201ZM2.5%202C2.22386%202%202%202.22386%202%202.5V8.3636L3.6818%206.6818C3.76809%206.59551%203.88572%206.54797%204.00774%206.55007C4.12975%206.55216%204.24568%206.60372%204.32895%206.69293L7.87355%2010.4901L10.6818%207.6818C10.8575%207.50607%2011.1425%207.50607%2011.3182%207.6818L13%209.3636V2.5C13%202.22386%2012.7761%202%2012.5%202H2.5ZM2%2012.5V9.6364L3.98887%207.64753L7.5311%2011.4421L8.94113%2013H2.5C2.22386%2013%202%2012.7761%202%2012.5ZM12.5%2013H10.155L8.48336%2011.153L11%208.6364L13%2010.6364V12.5C13%2012.7761%2012.7761%2013%2012.5%2013ZM6.64922%205.5C6.64922%205.03013%207.03013%204.64922%207.5%204.64922C7.96987%204.64922%208.35078%205.03013%208.35078%205.5C8.35078%205.96987%207.96987%206.35078%207.5%206.35078C7.03013%206.35078%206.64922%205.96987%206.64922%205.5ZM7.5%203.74922C6.53307%203.74922%205.74922%204.53307%205.74922%205.5C5.74922%206.46693%206.53307%207.25078%207.5%207.25078C8.46693%207.25078%209.25078%206.46693%209.25078%205.5C9.25078%204.53307%208.46693%203.74922%207.5%203.74922Z'%20fill='currentColor'%20/%3e%3c/svg%3e",C=o.div` width: 100%; height: 100%; border: 1px solid diff --git a/assets/index-DoyjkzPP.js b/assets/index-COOhruPg.js similarity index 96% rename from assets/index-DoyjkzPP.js rename to assets/index-COOhruPg.js index 197d4097..79483841 100644 --- a/assets/index-DoyjkzPP.js +++ b/assets/index-COOhruPg.js @@ -1,4 +1,4 @@ -import{an as g,q as h,T as w,f as b,r as n,D as v,i as y,j as s,n as P,m as B,c5 as Q,Z as D,c6 as W,c7 as H,s as S,v as z,c8 as R,ax as q,aK as N,c9 as L,L as T,l as $,ca as O,cb as _,h as V,o as K}from"./index-Bjk_45MO.js";import{u as C,C as U,a as G,b as Y}from"./CourseAgenda-DA7epH6Y.js";import{R as Z}from"./index-Bz9IQ-KJ.js";import{b as J,Q as X}from"./questionnaires-BlwwmS39.js";import{u as ee}from"./useDownloadCertificate-CojJpn-m.js";import"./index-BgAgt_Xs.js";import"./warning-CKk5dc80.js";import"./ResponsiveImage-wYxl3kWJ.js";import"./Upload-DMNCn73R.js";const se={xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1536px"},m=(e,t)=>g` +import{an as g,q as h,T as w,f as b,r as n,D as v,i as y,j as s,n as P,m as B,c5 as Q,Z as D,c6 as W,c7 as H,s as S,v as z,c8 as R,ax as q,aK as N,c9 as L,L as T,l as $,ca as O,cb as _,h as V,o as K}from"./index-Cei2V9tG.js";import{u as C,C as U,a as G,b as Y}from"./CourseAgenda-INcuA1iM.js";import{R as Z}from"./index-DhlBLuXk.js";import{b as J,Q as X}from"./questionnaires-DuttoWDO.js";import{u as ee}from"./useDownloadCertificate-B4BL8h3F.js";import"./index-BdBaDIIz.js";import"./warning-CGLqHpsF.js";import"./ResponsiveImage-CUm6fM86.js";import"./Upload-DQPhAuc_.js";const se={xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1536px"},m=(e,t)=>g` @media (min-width: ${se[e]}) { ${t} } diff --git a/assets/index-BoTxagoe.js b/assets/index-COTH8V5i.js similarity index 95% rename from assets/index-BoTxagoe.js rename to assets/index-COTH8V5i.js index f59a602e..47725cc8 100644 --- a/assets/index-BoTxagoe.js +++ b/assets/index-COTH8V5i.js @@ -1,4 +1,4 @@ -import{r,D as T,E as q,i as U,al as J,am as A,q as K,n as D,an as Q,ao as X,j as e,b as I,v as B,ap as Y,W as Z,f as V,w as E,M as k,h as W,C as ss,L as es,l as ns,o as H}from"./index-Bjk_45MO.js";import{P as O}from"./index-DyNx7jEp.js";import{C as ts,a as rs}from"./CourseAgenda-DA7epH6Y.js";import{A as L}from"./index-BgAgt_Xs.js";import"./Upload-DMNCn73R.js";import"./warning-CKk5dc80.js";import"./ResponsiveImage-wYxl3kWJ.js";function z(s,n="/course/"){var b,M;const{sendProgress:t,getNextPrevTopic:a,progress:l,courseProgressDetails:d,fetchProgress:w}=r.useContext(T.EscolaLMSContext),[y,v]=r.useState(!1),{lessonID:m,topicID:j}=q(),{push:x}=U(),h=r.useMemo(()=>J((s==null?void 0:s.lessons)??[]),[s==null?void 0:s.lessons]),f=r.useMemo(()=>A((s==null?void 0:s.lessons)??[]),[s==null?void 0:s.lessons]),C=m?Number(m):(b=h==null?void 0:h[0])==null?void 0:b.id,c=j?Number(j):(M=f==null?void 0:f[0])==null?void 0:M.id;r.useEffect(()=>{c&&w()},[w,c]);const _=r.useMemo(()=>h.find(o=>o.id===C),[h,C]),u=r.useMemo(()=>f.find(o=>o.id===c),[f,c]),P=r.useMemo(()=>{var o;return((o=f.at(-1))==null?void 0:o.id)===(u==null?void 0:u.id)},[f,u==null?void 0:u.id]),$=r.useCallback(()=>{s.id&&t(s.id,[{topic_id:Number(c),status:1}]).then(()=>{const o=a(Number(c));o&&x(`${n}${s.id}/${o.lesson_id}/${o.id}`,null)})},[c,s,x,a,t,n]),i=r.useCallback(()=>{const o=a(Number(c),!1);if(s.id&&(u!=null&&u.can_skip)){t(s.id,[{topic_id:Number(c),status:1}]).then(()=>{o&&x(`${n}${s.id}/${o.lesson_id}/${o.id}`,null)});return}o&&x(`${n}${s.id}/${o.lesson_id}/${o.id}`,null)},[c,s,x,a,t,n,u]),p=r.useCallback((o=!0)=>{const g=a(Number(c),o);g&&x(`${n}${s.id}/${g==null?void 0:g.lesson_id}/${g==null?void 0:g.id}`)},[C,c,s,s.id,x,n]);return{topic:u,lesson:_,onNextTopic:$,onPrevTopic:i,getNextPrevTopic:a,isNextTopicButtonDisabled:y,disableNextTopicButton:v,onNextTopicPreview:p,sendProgress:t,progress:l,courseProgressDetails:d,isLastTopic:P}}const is=K.aside` +import{r,D as T,E as q,i as U,al as J,am as A,q as K,n as D,an as Q,ao as X,j as e,b as I,v as B,ap as Y,W as Z,f as V,w as E,M as k,h as W,C as ss,L as es,l as ns,o as H}from"./index-Cei2V9tG.js";import{P as O}from"./index-C98yo6RU.js";import{C as ts,a as rs}from"./CourseAgenda-INcuA1iM.js";import{A as L}from"./index-BdBaDIIz.js";import"./Upload-DQPhAuc_.js";import"./warning-CGLqHpsF.js";import"./ResponsiveImage-CUm6fM86.js";function z(s,n="/course/"){var b,M;const{sendProgress:t,getNextPrevTopic:a,progress:l,courseProgressDetails:d,fetchProgress:w}=r.useContext(T.EscolaLMSContext),[y,v]=r.useState(!1),{lessonID:m,topicID:j}=q(),{push:x}=U(),h=r.useMemo(()=>J((s==null?void 0:s.lessons)??[]),[s==null?void 0:s.lessons]),f=r.useMemo(()=>A((s==null?void 0:s.lessons)??[]),[s==null?void 0:s.lessons]),C=m?Number(m):(b=h==null?void 0:h[0])==null?void 0:b.id,c=j?Number(j):(M=f==null?void 0:f[0])==null?void 0:M.id;r.useEffect(()=>{c&&w()},[w,c]);const _=r.useMemo(()=>h.find(o=>o.id===C),[h,C]),u=r.useMemo(()=>f.find(o=>o.id===c),[f,c]),P=r.useMemo(()=>{var o;return((o=f.at(-1))==null?void 0:o.id)===(u==null?void 0:u.id)},[f,u==null?void 0:u.id]),$=r.useCallback(()=>{s.id&&t(s.id,[{topic_id:Number(c),status:1}]).then(()=>{const o=a(Number(c));o&&x(`${n}${s.id}/${o.lesson_id}/${o.id}`,null)})},[c,s,x,a,t,n]),i=r.useCallback(()=>{const o=a(Number(c),!1);if(s.id&&(u!=null&&u.can_skip)){t(s.id,[{topic_id:Number(c),status:1}]).then(()=>{o&&x(`${n}${s.id}/${o.lesson_id}/${o.id}`,null)});return}o&&x(`${n}${s.id}/${o.lesson_id}/${o.id}`,null)},[c,s,x,a,t,n,u]),p=r.useCallback((o=!0)=>{const g=a(Number(c),o);g&&x(`${n}${s.id}/${g==null?void 0:g.lesson_id}/${g==null?void 0:g.id}`)},[C,c,s,s.id,x,n]);return{topic:u,lesson:_,onNextTopic:$,onPrevTopic:i,getNextPrevTopic:a,isNextTopicButtonDisabled:y,disableNextTopicButton:v,onNextTopicPreview:p,sendProgress:t,progress:l,courseProgressDetails:d,isLastTopic:P}}const is=K.aside` padding-bottom: 100px; .show-agenda-btn { width: 100%; diff --git a/assets/index-DXgEk6c6.js b/assets/index-CULsm7V8.js similarity index 96% rename from assets/index-DXgEk6c6.js rename to assets/index-CULsm7V8.js index 982ddfac..ff2b2af1 100644 --- a/assets/index-DXgEk6c6.js +++ b/assets/index-CULsm7V8.js @@ -1,4 +1,4 @@ -import{q as k,j as o,L as v,s as w}from"./index-Bjk_45MO.js";const y=k.div` +import{q as k,j as o,L as v,s as w}from"./index-Cei2V9tG.js";const y=k.div` display: flex; justify-content: flex-start; align-items: center; diff --git a/assets/index-Mhmp8Axw.js b/assets/index-CVbWCv7W.js similarity index 87% rename from assets/index-Mhmp8Axw.js rename to assets/index-CVbWCv7W.js index 35a5e044..810227f7 100644 --- a/assets/index-Mhmp8Axw.js +++ b/assets/index-CVbWCv7W.js @@ -1 +1 @@ -import{z as h,k as L,r as u,h as f,f as j,i as R,j as s,o as w,C as E,w as l,l as p,n as g,A as x}from"./index-Bjk_45MO.js";import{A as F,R as k}from"./AuthWrapper-D9ihPE42.js";var S=h();const C=()=>{const{search:t,state:i}=L(),{user:n,socialAuthorize:d}=u.useContext(f.EscolaLMSContext),[m,a]=u.useState("login"),{t:r}=j(),e=R(),o=t.split("?token=")[1],c=i&&i.referrer||t.split("?referrer=")[1]||"/";return o&&(d(o),setTimeout(()=>{e.push(c)},1e3)),!n.loading&&!o&&n.value&&e.push(c),s.jsx(w,{metaTitle:r("LoginAndRegister"),children:s.jsx(F,{children:s.jsx(E,{children:s.jsx(l.Row,{justify:"center",children:s.jsx(l.Col,{md:12,children:m==="login"?s.jsx(S.LoginForm,{onResetPasswordLink:()=>a("forgotPassword"),onRegisterLink:()=>e.push(p.register),mobile:g}):s.jsx(k.ResetPasswordForm,{mobile:g,backToLogin:()=>a("login"),onRegisterLink:()=>e.push(p.register),return_url:"#/reset-password",onFirstStepSuccess:()=>x.success(r("LoginPage.ForgotSuccess")),onFirstStepError:()=>x.error(r("UnexpectedError"))})})})})})})};export{C as default}; +import{z as h,k as L,r as u,h as f,f as j,i as R,j as s,o as w,C as E,w as l,l as p,n as g,A as x}from"./index-Cei2V9tG.js";import{A as F,R as k}from"./AuthWrapper-BduVzxWA.js";var S=h();const C=()=>{const{search:t,state:i}=L(),{user:n,socialAuthorize:d}=u.useContext(f.EscolaLMSContext),[m,a]=u.useState("login"),{t:r}=j(),e=R(),o=t.split("?token=")[1],c=i&&i.referrer||t.split("?referrer=")[1]||"/";return o&&(d(o),setTimeout(()=>{e.push(c)},1e3)),!n.loading&&!o&&n.value&&e.push(c),s.jsx(w,{metaTitle:r("LoginAndRegister"),children:s.jsx(F,{children:s.jsx(E,{children:s.jsx(l.Row,{justify:"center",children:s.jsx(l.Col,{md:12,children:m==="login"?s.jsx(S.LoginForm,{onResetPasswordLink:()=>a("forgotPassword"),onRegisterLink:()=>e.push(p.register),mobile:g}):s.jsx(k.ResetPasswordForm,{mobile:g,backToLogin:()=>a("login"),onRegisterLink:()=>e.push(p.register),return_url:"#/reset-password",onFirstStepSuccess:()=>x.success(r("LoginPage.ForgotSuccess")),onFirstStepError:()=>x.error(r("UnexpectedError"))})})})})})})};export{C as default}; diff --git a/assets/index-DyOPSetP.js b/assets/index-CVin_T_c.js similarity index 98% rename from assets/index-DyOPSetP.js rename to assets/index-CVin_T_c.js index 706b46e0..f2a9b74a 100644 --- a/assets/index-DyOPSetP.js +++ b/assets/index-CVin_T_c.js @@ -1,4 +1,4 @@ -import{p as S,q as a,k as P,r as i,h as y,i as z,f as F,j as e,s as v,l as n,o as O,T as k,M as m,v as N,C,w as o,n as q,L as V,x as _,y as $}from"./index-Bjk_45MO.js";var B=S();const D=a.div` +import{p as S,q as a,k as P,r as i,h as y,i as z,f as F,j as e,s as v,l as n,o as O,T as k,M as m,v as N,C,w as o,n as q,L as V,x as _,y as $}from"./index-Cei2V9tG.js";var B=S();const D=a.div` padding-top: 100px; padding-bottom: 50px; height: 900px; diff --git a/assets/index-BuYk4f7o.js b/assets/index-CYw4wuOQ.js similarity index 99% rename from assets/index-BuYk4f7o.js rename to assets/index-CYw4wuOQ.js index 935d877f..719a026e 100644 --- a/assets/index-BuYk4f7o.js +++ b/assets/index-CYw4wuOQ.js @@ -1,4 +1,4 @@ -import{d as c,r as B,a5 as Z,a2 as nn,aG as en,aH as tn,a6 as rn,j as D,aI as on,a4 as an,a3 as ln,g as sn,D as cn,X as dn,f as un,n as pn,ax as gn}from"./index-Bjk_45MO.js";var R={};(function(b){var m=c&&c.__makeTemplateObject||function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n},l=c&&c.__assign||function(){return l=Object.assign||function(n){for(var e,r=1,o=arguments.length;r __vite__mapDeps.viteFileDeps[i]) } @@ -20,7 +20,7 @@ function Ee1(t,e){for(var a=0;a>>1,J=F[i1];if(0>>1;i1r(h1,R))a1r(M1,h1)?(F[i1]=M1,F[a1]=R,i1=a1):(F[i1]=h1,F[o1]=R,i1=o1);else if(a1r(M1,R))F[i1]=M1,F[a1]=R,i1=a1;else break t}}return t1}function r(F,t1){var R=F.sortIndex-t1.sortIndex;return R!==0?R:F.id-t1.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var h=[],s=[],u=1,v=null,f=3,d=!1,M=!1,g=!1,H=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function z(F){for(var t1=a(s);t1!==null;){if(t1.callback===null)n(s);else if(t1.startTime<=F)n(s),t1.sortIndex=t1.expirationTime,e(h,t1);else break;t1=a(s)}}function w(F){if(g=!1,z(F),!M)if(a(h)!==null)M=!0,W(x);else{var t1=a(s);t1!==null&&Y(w,t1.startTime-F)}}function x(F,t1){M=!1,g&&(g=!1,p(C),C=-1),d=!0;var R=f;try{for(z(t1),v=a(h);v!==null&&(!(v.expirationTime>t1)||F&&!S());){var i1=v.callback;if(typeof i1=="function"){v.callback=null,f=v.priorityLevel;var J=i1(v.expirationTime<=t1);t1=t.unstable_now(),typeof J=="function"?v.callback=J:v===a(h)&&n(h),z(t1)}else n(h);v=a(h)}if(v!==null)var A=!0;else{var o1=a(s);o1!==null&&Y(w,o1.startTime-t1),A=!1}return A}finally{v=null,f=R,d=!1}}var y=!1,V=null,C=-1,L=5,B=-1;function S(){return!(t.unstable_now()-BF||125i1?(F.sortIndex=R,e(s,F),a(h)===null&&F===a(s)&&(g?(p(C),C=-1):g=!0,Y(w,R-i1))):(F.sortIndex=J,e(h,F),M||d||(M=!0,W(x))),F},t.unstable_shouldYield=S,t.unstable_wrapCallback=function(F){var t1=f;return function(){var R=f;f=t1;try{return F.apply(this,arguments)}finally{f=R}}}})(OU);TU.exports=OU;var r41=TU.exports;/** + */(function(t){function e(F,X){var R=F.length;F.push(X);t:for(;0>>1,t1=F[i1];if(0>>1;i1r(h1,R))a1r(M1,h1)?(F[i1]=M1,F[a1]=R,i1=a1):(F[i1]=h1,F[o1]=R,i1=o1);else if(a1r(M1,R))F[i1]=M1,F[a1]=R,i1=a1;else break t}}return X}function r(F,X){var R=F.sortIndex-X.sortIndex;return R!==0?R:F.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var h=[],s=[],u=1,v=null,f=3,d=!1,M=!1,g=!1,H=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function z(F){for(var X=a(s);X!==null;){if(X.callback===null)n(s);else if(X.startTime<=F)n(s),X.sortIndex=X.expirationTime,e(h,X);else break;X=a(s)}}function w(F){if(g=!1,z(F),!M)if(a(h)!==null)M=!0,U(x);else{var X=a(s);X!==null&&Y(w,X.startTime-F)}}function x(F,X){M=!1,g&&(g=!1,p(C),C=-1),d=!0;var R=f;try{for(z(X),v=a(h);v!==null&&(!(v.expirationTime>X)||F&&!S());){var i1=v.callback;if(typeof i1=="function"){v.callback=null,f=v.priorityLevel;var t1=i1(v.expirationTime<=X);X=t.unstable_now(),typeof t1=="function"?v.callback=t1:v===a(h)&&n(h),z(X)}else n(h);v=a(h)}if(v!==null)var A=!0;else{var o1=a(s);o1!==null&&Y(w,o1.startTime-X),A=!1}return A}finally{v=null,f=R,d=!1}}var y=!1,V=null,C=-1,L=5,B=-1;function S(){return!(t.unstable_now()-BF||125i1?(F.sortIndex=R,e(s,F),a(h)===null&&F===a(s)&&(g?(p(C),C=-1):g=!0,Y(w,R-i1))):(F.sortIndex=t1,e(h,F),M||d||(M=!0,U(x))),F},t.unstable_shouldYield=S,t.unstable_wrapCallback=function(F){var X=f;return function(){var R=f;f=X;try{return F.apply(this,arguments)}finally{f=R}}}})(OU);TU.exports=OU;var r41=TU.exports;/** * @license React * react-dom.production.min.js * @@ -36,33 +36,33 @@ function Ee1(t,e){for(var a=0;a"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$V=Object.prototype.hasOwnProperty,i41=/^[: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]*$/,nA={},rA={};function o41(t){return $V.call(rA,t)?!0:$V.call(nA,t)?!1:i41.test(t)?rA[t]=!0:(nA[t]=!0,!1)}function l41(t,e,a,n){if(a!==null&&a.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:a!==null?!a.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function c41(t,e,a,n){if(e===null||typeof e>"u"||l41(t,e,a,n))return!0;if(n)return!1;if(a!==null)switch(a.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Ha(t,e,a,n,r,o,l){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=r,this.mustUseProperty=a,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=l}var A4={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){A4[t]=new Ha(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];A4[e]=new Ha(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){A4[t]=new Ha(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){A4[t]=new Ha(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){A4[t]=new Ha(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){A4[t]=new Ha(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){A4[t]=new Ha(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){A4[t]=new Ha(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){A4[t]=new Ha(t,5,!1,t.toLowerCase(),null,!1,!1)});var lB=/[\-:]([a-z])/g;function cB(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(lB,cB);A4[e]=new Ha(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(lB,cB);A4[e]=new Ha(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(lB,cB);A4[e]=new Ha(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){A4[t]=new Ha(t,1,!1,t.toLowerCase(),null,!1,!1)});A4.xlinkHref=new Ha("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){A4[t]=new Ha(t,1,!1,t.toLowerCase(),null,!0,!0)});function sB(t,e,a,n){var r=A4.hasOwnProperty(e)?A4[e]:null;(r!==null?r.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$V=Object.prototype.hasOwnProperty,i41=/^[: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]*$/,nA={},rA={};function o41(t){return $V.call(rA,t)?!0:$V.call(nA,t)?!1:i41.test(t)?rA[t]=!0:(nA[t]=!0,!1)}function l41(t,e,a,n){if(a!==null&&a.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:a!==null?!a.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function c41(t,e,a,n){if(e===null||typeof e>"u"||l41(t,e,a,n))return!0;if(n)return!1;if(a!==null)switch(a.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Ha(t,e,a,n,r,o,l){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=r,this.mustUseProperty=a,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=l}var A4={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){A4[t]=new Ha(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];A4[e]=new Ha(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){A4[t]=new Ha(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){A4[t]=new Ha(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){A4[t]=new Ha(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){A4[t]=new Ha(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){A4[t]=new Ha(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){A4[t]=new Ha(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){A4[t]=new Ha(t,5,!1,t.toLowerCase(),null,!1,!1)});var lB=/[\-:]([a-z])/g;function cB(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(lB,cB);A4[e]=new Ha(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(lB,cB);A4[e]=new Ha(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(lB,cB);A4[e]=new Ha(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){A4[t]=new Ha(t,1,!1,t.toLowerCase(),null,!1,!1)});A4.xlinkHref=new Ha("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){A4[t]=new Ha(t,1,!1,t.toLowerCase(),null,!0,!0)});function sB(t,e,a,n){var r=A4.hasOwnProperty(e)?A4[e]:null;(r!==null?r.type!==0:n||!(2c||r[l]!==o[c]){var h=` -`+r[l].replace(" at new "," at ");return t.displayName&&h.includes("")&&(h=h.replace("",t.displayName)),h}while(1<=l&&0<=c);break}}}finally{dw=!1,Error.prepareStackTrace=a}return(t=t?t.displayName||t.name:"")?z7(t):""}function s41(t){switch(t.tag){case 5:return z7(t.type);case 16:return z7("Lazy");case 13:return z7("Suspense");case 19:return z7("SuspenseList");case 0:case 2:case 15:return t=fw(t.type,!1),t;case 11:return t=fw(t.type.render,!1),t;case 1:return t=fw(t.type,!0),t;default:return""}}function GV(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case c6:return"Fragment";case l6:return"Portal";case UV:return"Profiler";case hB:return"StrictMode";case WV:return"Suspense";case qV:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case PU:return(t.displayName||"Context")+".Consumer";case EU:return(t._context.displayName||"Context")+".Provider";case uB:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case vB:return e=t.displayName||null,e!==null?e:GV(t.type)||"Memo";case y3:e=t._payload,t=t._init;try{return GV(t(e))}catch{}}return null}function h41(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return GV(e);case 8:return e===hB?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ro(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function DU(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function u41(t){var e=DU(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var r=a.get,o=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(l){n=""+l,o.call(this,l)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Vv(t){t._valueTracker||(t._valueTracker=u41(t))}function RU(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),n="";return t&&(n=DU(t)?t.checked?"true":"false":t.value),t=n,t!==a?(e.setValue(t),!0):!1}function Rf(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function KV(t,e){var a=e.checked;return He({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??t._wrapperState.initialChecked})}function oA(t,e){var a=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;a=ro(e.value!=null?e.value:a),t._wrapperState={initialChecked:n,initialValue:a,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function jU(t,e){e=e.checked,e!=null&&sB(t,"checked",e,!1)}function YV(t,e){jU(t,e);var a=ro(e.value),n=e.type;if(a!=null)n==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+a):t.value!==""+a&&(t.value=""+a);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?ZV(t,e.type,a):e.hasOwnProperty("defaultValue")&&ZV(t,e.type,ro(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function lA(t,e,a){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,a||e===t.value||(t.value=e),t.defaultValue=e}a=t.name,a!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,a!==""&&(t.name=a)}function ZV(t,e,a){(e!=="number"||Rf(t.ownerDocument)!==t)&&(a==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+a&&(t.defaultValue=""+a))}var M7=Array.isArray;function L6(t,e,a,n){if(t=t.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=Cv.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ms(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var S7={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},v41=["Webkit","ms","Moz","O"];Object.keys(S7).forEach(function(t){v41.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),S7[e]=S7[t]})});function UU(t,e,a){return e==null||typeof e=="boolean"||e===""?"":a||typeof e!="number"||e===0||S7.hasOwnProperty(t)&&S7[t]?(""+e).trim():e+"px"}function WU(t,e){t=t.style;for(var a in e)if(e.hasOwnProperty(a)){var n=a.indexOf("--")===0,r=UU(a,e[a],n);a==="float"&&(a="cssFloat"),n?t.setProperty(a,r):t[a]=r}}var d41=He({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function JV(t,e){if(e){if(d41[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(pt(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(pt(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(pt(61))}if(e.style!=null&&typeof e.style!="object")throw Error(pt(62))}}function tC(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var eC=null;function dB(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var aC=null,B6=null,_6=null;function hA(t){if(t=vh(t)){if(typeof aC!="function")throw Error(pt(280));var e=t.stateNode;e&&(e=Tp(e),aC(t.stateNode,t.type,e))}}function qU(t){B6?_6?_6.push(t):_6=[t]:B6=t}function GU(){if(B6){var t=B6,e=_6;if(_6=B6=null,hA(t),e)for(t=0;t>>=0,t===0?32:31-(V41(t)/C41|0)|0}var bv=64,Lv=4194304;function H7(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function $f(t,e){var a=t.pendingLanes;if(a===0)return 0;var n=0,r=t.suspendedLanes,o=t.pingedLanes,l=a&268435455;if(l!==0){var c=l&~r;c!==0?n=H7(c):(o&=l,o!==0&&(n=H7(o)))}else l=a&~r,l!==0?n=H7(l):o!==0&&(n=H7(o));if(n===0)return 0;if(e!==0&&e!==n&&!(e&r)&&(r=n&-n,o=e&-e,r>=o||r===16&&(o&4194240)!==0))return e;if(n&4&&(n|=a&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0a;a++)e.push(t);return e}function hh(t,e,a){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-br(e),t[e]=a}function _41(t,e){var a=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=O7),MA=" ",HA=!1;function dW(t,e){switch(t){case"keyup":return na1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fW(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var s6=!1;function ia1(t,e){switch(t){case"compositionend":return fW(e);case"keypress":return e.which!==32?null:(HA=!0,MA);case"textInput":return t=e.data,t===MA&&HA?null:t;default:return null}}function oa1(t,e){if(s6)return t==="compositionend"||!wB&&dW(t,e)?(t=uW(),ef=zB=P3=null,s6=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:a,offset:e-t};t=n}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=VA(a)}}function zW(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?zW(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function MW(){for(var t=window,e=Rf();e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=Rf(t.document)}return e}function yB(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function ga1(t){var e=MW(),a=t.focusedElem,n=t.selectionRange;if(e!==a&&a&&a.ownerDocument&&zW(a.ownerDocument.documentElement,a)){if(n!==null&&yB(a)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in a)a.selectionStart=e,a.selectionEnd=Math.min(t,a.value.length);else if(t=(e=a.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=a.textContent.length,o=Math.min(n.start,r);n=n.end===void 0?o:Math.min(n.end,r),!t.extend&&o>n&&(r=n,n=o,o=r),r=CA(a,o);var l=CA(a,n);r&&l&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==l.node||t.focusOffset!==l.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),o>n?(t.addRange(e),t.extend(l.node,l.offset)):(e.setEnd(l.node,l.offset),t.addRange(e)))}}for(e=[],t=a;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a=document.documentMode,h6=null,cC=null,k7=null,sC=!1;function bA(t,e,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;sC||h6==null||h6!==Rf(n)||(n=h6,"selectionStart"in n&&yB(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),k7&&xs(k7,n)||(k7=n,n=qf(cC,"onSelect"),0d6||(t.current=gC[d6],gC[d6]=null,d6--)}function W0(t,e){d6++,gC[d6]=t.current,t.current=e}var io={},X4=wo(io),Ra=wo(!1),D8=io;function U6(t,e){var a=t.type.contextTypes;if(!a)return io;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in a)r[o]=e[o];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function ja(t){return t=t.childContextTypes,t!=null}function Kf(){ee(Ra),ee(X4)}function AA(t,e,a){if(X4.current!==io)throw Error(pt(168));W0(X4,e),W0(Ra,a)}function BW(t,e,a){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return a;n=n.getChildContext();for(var r in n)if(!(r in e))throw Error(pt(108,h41(t)||"Unknown",r));return He({},a,n)}function Yf(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||io,D8=X4.current,W0(X4,t),W0(Ra,Ra.current),!0}function kA(t,e,a){var n=t.stateNode;if(!n)throw Error(pt(169));a?(t=BW(t,e,D8),n.__reactInternalMemoizedMergedChildContext=t,ee(Ra),ee(X4),W0(X4,t)):ee(Ra),W0(Ra,a)}var r5=null,Op=!1,Bw=!1;function _W(t){r5===null?r5=[t]:r5.push(t)}function La1(t){Op=!0,_W(t)}function yo(){if(!Bw&&r5!==null){Bw=!0;var t=0,e=M0;try{var a=r5;for(M0=1;t>=l,r-=l,l5=1<<32-br(e)+r|a<C?(L=V,V=null):L=V.sibling;var B=f(p,V,z[C],w);if(B===null){V===null&&(V=L);break}t&&V&&B.alternate===null&&e(p,V),m=o(B,m,C),y===null?x=B:y.sibling=B,y=B,V=L}if(C===z.length)return a(p,V),le&&l8(p,C),x;if(V===null){for(;CC?(L=V,V=null):L=V.sibling;var S=f(p,V,B.value,w);if(S===null){V===null&&(V=L);break}t&&V&&S.alternate===null&&e(p,V),m=o(S,m,C),y===null?x=S:y.sibling=S,y=S,V=L}if(B.done)return a(p,V),le&&l8(p,C),x;if(V===null){for(;!B.done;C++,B=z.next())B=v(p,B.value,w),B!==null&&(m=o(B,m,C),y===null?x=B:y.sibling=B,y=B);return le&&l8(p,C),x}for(V=n(p,V);!B.done;C++,B=z.next())B=d(V,p,C,B.value,w),B!==null&&(t&&B.alternate!==null&&V.delete(B.key===null?C:B.key),m=o(B,m,C),y===null?x=B:y.sibling=B,y=B);return t&&V.forEach(function(T){return e(p,T)}),le&&l8(p,C),x}function H(p,m,z,w){if(typeof z=="object"&&z!==null&&z.type===c6&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case xv:t:{for(var x=z.key,y=m;y!==null;){if(y.key===x){if(x=z.type,x===c6){if(y.tag===7){a(p,y.sibling),m=r(y,z.props.children),m.return=p,p=m;break t}}else if(y.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===y3&&IA(x)===y.type){a(p,y.sibling),m=r(y,z.props),m.ref=A9(p,y,z),m.return=p,p=m;break t}a(p,y);break}else e(p,y);y=y.sibling}z.type===c6?(m=S8(z.props.children,p.mode,w,z.key),m.return=p,p=m):(w=hf(z.type,z.key,z.props,null,p.mode,w),w.ref=A9(p,m,z),w.return=p,p=w)}return l(p);case l6:t:{for(y=z.key;m!==null;){if(m.key===y)if(m.tag===4&&m.stateNode.containerInfo===z.containerInfo&&m.stateNode.implementation===z.implementation){a(p,m.sibling),m=r(m,z.children||[]),m.return=p,p=m;break t}else{a(p,m);break}else e(p,m);m=m.sibling}m=Pw(z,p.mode,w),m.return=p,p=m}return l(p);case y3:return y=z._init,H(p,m,y(z._payload),w)}if(M7(z))return M(p,m,z,w);if(B9(z))return g(p,m,z,w);kv(p,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,m!==null&&m.tag===6?(a(p,m.sibling),m=r(m,z),m.return=p,p=m):(a(p,m),m=Ew(z,p.mode,w),m.return=p,p=m),l(p)):a(p,m)}return H}var q6=NW(!0),DW=NW(!1),dh={},Mi=wo(dh),Ls=wo(dh),Bs=wo(dh);function x8(t){if(t===dh)throw Error(pt(174));return t}function TB(t,e){switch(W0(Bs,e),W0(Ls,t),W0(Mi,dh),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:XV(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=XV(e,t)}ee(Mi),W0(Mi,e)}function G6(){ee(Mi),ee(Ls),ee(Bs)}function RW(t){x8(Bs.current);var e=x8(Mi.current),a=XV(e,t.type);e!==a&&(W0(Ls,t),W0(Mi,a))}function OB(t){Ls.current===t&&(ee(Mi),ee(Ls))}var pe=wo(0);function eg(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var _w=[];function AB(){for(var t=0;t<_w.length;t++)_w[t]._workInProgressVersionPrimary=null;_w.length=0}var rf=T5.ReactCurrentDispatcher,Sw=T5.ReactCurrentBatchConfig,j8=0,Me=null,r4=null,p4=null,ag=!1,E7=!1,_s=0,_a1=0;function I4(){throw Error(pt(321))}function kB(t,e){if(e===null)return!1;for(var a=0;aa?a:4,t(!0);var n=Sw.transition;Sw.transition={};try{t(!1),e()}finally{M0=a,Sw.transition=n}}function eq(){return Un().memoizedState}function Ta1(t,e,a){var n=Y3(t);if(a={lane:n,action:a,hasEagerState:!1,eagerState:null,next:null},aq(t))nq(e,a);else if(a=AW(t,e,a,n),a!==null){var r=fa();Lr(a,t,n,r),rq(a,e,n)}}function Oa1(t,e,a){var n=Y3(t),r={lane:n,action:a,hasEagerState:!1,eagerState:null,next:null};if(aq(t))nq(e,r);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var l=e.lastRenderedState,c=o(l,a);if(r.hasEagerState=!0,r.eagerState=c,Or(c,l)){var h=e.interleaved;h===null?(r.next=r,_B(e)):(r.next=h.next,h.next=r),e.interleaved=r;return}}catch{}finally{}a=AW(t,e,r,n),a!==null&&(r=fa(),Lr(a,t,n,r),rq(a,e,n))}}function aq(t){var e=t.alternate;return t===Me||e!==null&&e===Me}function nq(t,e){E7=ag=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function rq(t,e,a){if(a&4194240){var n=e.lanes;n&=t.pendingLanes,a|=n,e.lanes=a,gB(t,a)}}var ng={readContext:$n,useCallback:I4,useContext:I4,useEffect:I4,useImperativeHandle:I4,useInsertionEffect:I4,useLayoutEffect:I4,useMemo:I4,useReducer:I4,useRef:I4,useState:I4,useDebugValue:I4,useDeferredValue:I4,useTransition:I4,useMutableSource:I4,useSyncExternalStore:I4,useId:I4,unstable_isNewReconciler:!1},Aa1={readContext:$n,useCallback:function(t,e){return Qr().memoizedState=[t,e===void 0?null:e],t},useContext:$n,useEffect:$A,useImperativeHandle:function(t,e,a){return a=a!=null?a.concat([t]):null,of(4194308,4,ZW.bind(null,e,t),a)},useLayoutEffect:function(t,e){return of(4194308,4,t,e)},useInsertionEffect:function(t,e){return of(4,2,t,e)},useMemo:function(t,e){var a=Qr();return e=e===void 0?null:e,t=t(),a.memoizedState=[t,e],t},useReducer:function(t,e,a){var n=Qr();return e=a!==void 0?a(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=Ta1.bind(null,Me,t),[n.memoizedState,t]},useRef:function(t){var e=Qr();return t={current:t},e.memoizedState=t},useState:FA,useDebugValue:DB,useDeferredValue:function(t){return Qr().memoizedState=t},useTransition:function(){var t=FA(!1),e=t[0];return t=Sa1.bind(null,t[1]),Qr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,a){var n=Me,r=Qr();if(le){if(a===void 0)throw Error(pt(407));a=a()}else{if(a=e(),M4===null)throw Error(pt(349));j8&30||FW(n,e,a)}r.memoizedState=a;var o={value:a,getSnapshot:e};return r.queue=o,$A(UW.bind(null,n,o,t),[t]),n.flags|=2048,Ts(9,$W.bind(null,n,o,a,e),void 0,null),a},useId:function(){var t=Qr(),e=M4.identifierPrefix;if(le){var a=c5,n=l5;a=(n&~(1<<32-br(n)-1)).toString(32)+a,e=":"+e+"R"+a,a=_s++,0")&&(h=h.replace("",t.displayName)),h}while(1<=l&&0<=c);break}}}finally{dw=!1,Error.prepareStackTrace=a}return(t=t?t.displayName||t.name:"")?z7(t):""}function s41(t){switch(t.tag){case 5:return z7(t.type);case 16:return z7("Lazy");case 13:return z7("Suspense");case 19:return z7("SuspenseList");case 0:case 2:case 15:return t=fw(t.type,!1),t;case 11:return t=fw(t.type.render,!1),t;case 1:return t=fw(t.type,!0),t;default:return""}}function GV(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case c6:return"Fragment";case l6:return"Portal";case UV:return"Profiler";case hB:return"StrictMode";case WV:return"Suspense";case qV:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case PU:return(t.displayName||"Context")+".Consumer";case EU:return(t._context.displayName||"Context")+".Provider";case uB:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case vB:return e=t.displayName||null,e!==null?e:GV(t.type)||"Memo";case y3:e=t._payload,t=t._init;try{return GV(t(e))}catch{}}return null}function h41(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return GV(e);case 8:return e===hB?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ro(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function DU(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function u41(t){var e=DU(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var r=a.get,o=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(l){n=""+l,o.call(this,l)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Vv(t){t._valueTracker||(t._valueTracker=u41(t))}function RU(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),n="";return t&&(n=DU(t)?t.checked?"true":"false":t.value),t=n,t!==a?(e.setValue(t),!0):!1}function Rf(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function KV(t,e){var a=e.checked;return He({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??t._wrapperState.initialChecked})}function oA(t,e){var a=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;a=ro(e.value!=null?e.value:a),t._wrapperState={initialChecked:n,initialValue:a,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function jU(t,e){e=e.checked,e!=null&&sB(t,"checked",e,!1)}function YV(t,e){jU(t,e);var a=ro(e.value),n=e.type;if(a!=null)n==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+a):t.value!==""+a&&(t.value=""+a);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?ZV(t,e.type,a):e.hasOwnProperty("defaultValue")&&ZV(t,e.type,ro(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function lA(t,e,a){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,a||e===t.value||(t.value=e),t.defaultValue=e}a=t.name,a!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,a!==""&&(t.name=a)}function ZV(t,e,a){(e!=="number"||Rf(t.ownerDocument)!==t)&&(a==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+a&&(t.defaultValue=""+a))}var M7=Array.isArray;function L6(t,e,a,n){if(t=t.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=Cv.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ms(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var S7={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},v41=["Webkit","ms","Moz","O"];Object.keys(S7).forEach(function(t){v41.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),S7[e]=S7[t]})});function UU(t,e,a){return e==null||typeof e=="boolean"||e===""?"":a||typeof e!="number"||e===0||S7.hasOwnProperty(t)&&S7[t]?(""+e).trim():e+"px"}function WU(t,e){t=t.style;for(var a in e)if(e.hasOwnProperty(a)){var n=a.indexOf("--")===0,r=UU(a,e[a],n);a==="float"&&(a="cssFloat"),n?t.setProperty(a,r):t[a]=r}}var d41=He({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function JV(t,e){if(e){if(d41[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(pt(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(pt(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(pt(61))}if(e.style!=null&&typeof e.style!="object")throw Error(pt(62))}}function tC(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var eC=null;function dB(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var aC=null,B6=null,_6=null;function hA(t){if(t=vh(t)){if(typeof aC!="function")throw Error(pt(280));var e=t.stateNode;e&&(e=Tp(e),aC(t.stateNode,t.type,e))}}function qU(t){B6?_6?_6.push(t):_6=[t]:B6=t}function GU(){if(B6){var t=B6,e=_6;if(_6=B6=null,hA(t),e)for(t=0;t>>=0,t===0?32:31-(V41(t)/C41|0)|0}var bv=64,Lv=4194304;function H7(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function $f(t,e){var a=t.pendingLanes;if(a===0)return 0;var n=0,r=t.suspendedLanes,o=t.pingedLanes,l=a&268435455;if(l!==0){var c=l&~r;c!==0?n=H7(c):(o&=l,o!==0&&(n=H7(o)))}else l=a&~r,l!==0?n=H7(l):o!==0&&(n=H7(o));if(n===0)return 0;if(e!==0&&e!==n&&!(e&r)&&(r=n&-n,o=e&-e,r>=o||r===16&&(o&4194240)!==0))return e;if(n&4&&(n|=a&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0a;a++)e.push(t);return e}function hh(t,e,a){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-br(e),t[e]=a}function _41(t,e){var a=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=O7),MA=" ",HA=!1;function dW(t,e){switch(t){case"keyup":return na1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fW(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var s6=!1;function ia1(t,e){switch(t){case"compositionend":return fW(e);case"keypress":return e.which!==32?null:(HA=!0,MA);case"textInput":return t=e.data,t===MA&&HA?null:t;default:return null}}function oa1(t,e){if(s6)return t==="compositionend"||!wB&&dW(t,e)?(t=uW(),ef=zB=P3=null,s6=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:a,offset:e-t};t=n}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=VA(a)}}function zW(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?zW(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function MW(){for(var t=window,e=Rf();e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=Rf(t.document)}return e}function yB(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function ga1(t){var e=MW(),a=t.focusedElem,n=t.selectionRange;if(e!==a&&a&&a.ownerDocument&&zW(a.ownerDocument.documentElement,a)){if(n!==null&&yB(a)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in a)a.selectionStart=e,a.selectionEnd=Math.min(t,a.value.length);else if(t=(e=a.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=a.textContent.length,o=Math.min(n.start,r);n=n.end===void 0?o:Math.min(n.end,r),!t.extend&&o>n&&(r=n,n=o,o=r),r=CA(a,o);var l=CA(a,n);r&&l&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==l.node||t.focusOffset!==l.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),o>n?(t.addRange(e),t.extend(l.node,l.offset)):(e.setEnd(l.node,l.offset),t.addRange(e)))}}for(e=[],t=a;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a=document.documentMode,h6=null,cC=null,k7=null,sC=!1;function bA(t,e,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;sC||h6==null||h6!==Rf(n)||(n=h6,"selectionStart"in n&&yB(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),k7&&xs(k7,n)||(k7=n,n=qf(cC,"onSelect"),0d6||(t.current=gC[d6],gC[d6]=null,d6--)}function W0(t,e){d6++,gC[d6]=t.current,t.current=e}var io={},X4=wo(io),Ra=wo(!1),D8=io;function U6(t,e){var a=t.type.contextTypes;if(!a)return io;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in a)r[o]=e[o];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function ja(t){return t=t.childContextTypes,t!=null}function Kf(){ee(Ra),ee(X4)}function AA(t,e,a){if(X4.current!==io)throw Error(pt(168));W0(X4,e),W0(Ra,a)}function BW(t,e,a){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return a;n=n.getChildContext();for(var r in n)if(!(r in e))throw Error(pt(108,h41(t)||"Unknown",r));return He({},a,n)}function Yf(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||io,D8=X4.current,W0(X4,t),W0(Ra,Ra.current),!0}function kA(t,e,a){var n=t.stateNode;if(!n)throw Error(pt(169));a?(t=BW(t,e,D8),n.__reactInternalMemoizedMergedChildContext=t,ee(Ra),ee(X4),W0(X4,t)):ee(Ra),W0(Ra,a)}var r5=null,Op=!1,Bw=!1;function _W(t){r5===null?r5=[t]:r5.push(t)}function La1(t){Op=!0,_W(t)}function yo(){if(!Bw&&r5!==null){Bw=!0;var t=0,e=M0;try{var a=r5;for(M0=1;t>=l,r-=l,l5=1<<32-br(e)+r|a<C?(L=V,V=null):L=V.sibling;var B=f(p,V,z[C],w);if(B===null){V===null&&(V=L);break}t&&V&&B.alternate===null&&e(p,V),m=o(B,m,C),y===null?x=B:y.sibling=B,y=B,V=L}if(C===z.length)return a(p,V),le&&l8(p,C),x;if(V===null){for(;CC?(L=V,V=null):L=V.sibling;var S=f(p,V,B.value,w);if(S===null){V===null&&(V=L);break}t&&V&&S.alternate===null&&e(p,V),m=o(S,m,C),y===null?x=S:y.sibling=S,y=S,V=L}if(B.done)return a(p,V),le&&l8(p,C),x;if(V===null){for(;!B.done;C++,B=z.next())B=v(p,B.value,w),B!==null&&(m=o(B,m,C),y===null?x=B:y.sibling=B,y=B);return le&&l8(p,C),x}for(V=n(p,V);!B.done;C++,B=z.next())B=d(V,p,C,B.value,w),B!==null&&(t&&B.alternate!==null&&V.delete(B.key===null?C:B.key),m=o(B,m,C),y===null?x=B:y.sibling=B,y=B);return t&&V.forEach(function(T){return e(p,T)}),le&&l8(p,C),x}function H(p,m,z,w){if(typeof z=="object"&&z!==null&&z.type===c6&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case xv:t:{for(var x=z.key,y=m;y!==null;){if(y.key===x){if(x=z.type,x===c6){if(y.tag===7){a(p,y.sibling),m=r(y,z.props.children),m.return=p,p=m;break t}}else if(y.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===y3&&IA(x)===y.type){a(p,y.sibling),m=r(y,z.props),m.ref=A9(p,y,z),m.return=p,p=m;break t}a(p,y);break}else e(p,y);y=y.sibling}z.type===c6?(m=S8(z.props.children,p.mode,w,z.key),m.return=p,p=m):(w=hf(z.type,z.key,z.props,null,p.mode,w),w.ref=A9(p,m,z),w.return=p,p=w)}return l(p);case l6:t:{for(y=z.key;m!==null;){if(m.key===y)if(m.tag===4&&m.stateNode.containerInfo===z.containerInfo&&m.stateNode.implementation===z.implementation){a(p,m.sibling),m=r(m,z.children||[]),m.return=p,p=m;break t}else{a(p,m);break}else e(p,m);m=m.sibling}m=Pw(z,p.mode,w),m.return=p,p=m}return l(p);case y3:return y=z._init,H(p,m,y(z._payload),w)}if(M7(z))return M(p,m,z,w);if(B9(z))return g(p,m,z,w);kv(p,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,m!==null&&m.tag===6?(a(p,m.sibling),m=r(m,z),m.return=p,p=m):(a(p,m),m=Ew(z,p.mode,w),m.return=p,p=m),l(p)):a(p,m)}return H}var q6=NW(!0),DW=NW(!1),dh={},Mi=wo(dh),Ls=wo(dh),Bs=wo(dh);function x8(t){if(t===dh)throw Error(pt(174));return t}function TB(t,e){switch(W0(Bs,e),W0(Ls,t),W0(Mi,dh),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:XV(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=XV(e,t)}ee(Mi),W0(Mi,e)}function G6(){ee(Mi),ee(Ls),ee(Bs)}function RW(t){x8(Bs.current);var e=x8(Mi.current),a=XV(e,t.type);e!==a&&(W0(Ls,t),W0(Mi,a))}function OB(t){Ls.current===t&&(ee(Mi),ee(Ls))}var pe=wo(0);function eg(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var _w=[];function AB(){for(var t=0;t<_w.length;t++)_w[t]._workInProgressVersionPrimary=null;_w.length=0}var rf=T5.ReactCurrentDispatcher,Sw=T5.ReactCurrentBatchConfig,j8=0,Me=null,r4=null,p4=null,ag=!1,E7=!1,_s=0,_a1=0;function I4(){throw Error(pt(321))}function kB(t,e){if(e===null)return!1;for(var a=0;aa?a:4,t(!0);var n=Sw.transition;Sw.transition={};try{t(!1),e()}finally{M0=a,Sw.transition=n}}function eq(){return Un().memoizedState}function Ta1(t,e,a){var n=Y3(t);if(a={lane:n,action:a,hasEagerState:!1,eagerState:null,next:null},aq(t))nq(e,a);else if(a=AW(t,e,a,n),a!==null){var r=fa();Lr(a,t,n,r),rq(a,e,n)}}function Oa1(t,e,a){var n=Y3(t),r={lane:n,action:a,hasEagerState:!1,eagerState:null,next:null};if(aq(t))nq(e,r);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var l=e.lastRenderedState,c=o(l,a);if(r.hasEagerState=!0,r.eagerState=c,Or(c,l)){var h=e.interleaved;h===null?(r.next=r,_B(e)):(r.next=h.next,h.next=r),e.interleaved=r;return}}catch{}finally{}a=AW(t,e,r,n),a!==null&&(r=fa(),Lr(a,t,n,r),rq(a,e,n))}}function aq(t){var e=t.alternate;return t===Me||e!==null&&e===Me}function nq(t,e){E7=ag=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function rq(t,e,a){if(a&4194240){var n=e.lanes;n&=t.pendingLanes,a|=n,e.lanes=a,gB(t,a)}}var ng={readContext:$n,useCallback:I4,useContext:I4,useEffect:I4,useImperativeHandle:I4,useInsertionEffect:I4,useLayoutEffect:I4,useMemo:I4,useReducer:I4,useRef:I4,useState:I4,useDebugValue:I4,useDeferredValue:I4,useTransition:I4,useMutableSource:I4,useSyncExternalStore:I4,useId:I4,unstable_isNewReconciler:!1},Aa1={readContext:$n,useCallback:function(t,e){return Qr().memoizedState=[t,e===void 0?null:e],t},useContext:$n,useEffect:$A,useImperativeHandle:function(t,e,a){return a=a!=null?a.concat([t]):null,of(4194308,4,ZW.bind(null,e,t),a)},useLayoutEffect:function(t,e){return of(4194308,4,t,e)},useInsertionEffect:function(t,e){return of(4,2,t,e)},useMemo:function(t,e){var a=Qr();return e=e===void 0?null:e,t=t(),a.memoizedState=[t,e],t},useReducer:function(t,e,a){var n=Qr();return e=a!==void 0?a(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=Ta1.bind(null,Me,t),[n.memoizedState,t]},useRef:function(t){var e=Qr();return t={current:t},e.memoizedState=t},useState:FA,useDebugValue:DB,useDeferredValue:function(t){return Qr().memoizedState=t},useTransition:function(){var t=FA(!1),e=t[0];return t=Sa1.bind(null,t[1]),Qr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,a){var n=Me,r=Qr();if(le){if(a===void 0)throw Error(pt(407));a=a()}else{if(a=e(),M4===null)throw Error(pt(349));j8&30||FW(n,e,a)}r.memoizedState=a;var o={value:a,getSnapshot:e};return r.queue=o,$A(UW.bind(null,n,o,t),[t]),n.flags|=2048,Ts(9,$W.bind(null,n,o,a,e),void 0,null),a},useId:function(){var t=Qr(),e=M4.identifierPrefix;if(le){var a=c5,n=l5;a=(n&~(1<<32-br(n)-1)).toString(32)+a,e=":"+e+"R"+a,a=_s++,0<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=l.createElement(a,{is:n.is}):(t=l.createElement(a),a==="select"&&(l=t,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):t=l.createElementNS(t,a),t[ai]=e,t[bs]=n,dq(t,e,!1,!1),e.stateNode=t;t:{switch(l=tC(a,n),a){case"dialog":Z0("cancel",t),Z0("close",t),r=n;break;case"iframe":case"object":case"embed":Z0("load",t),r=n;break;case"video":case"audio":for(r=0;rY6&&(e.flags|=128,n=!0,k9(o,!1),e.lanes=4194304)}else{if(!n)if(t=eg(l),t!==null){if(e.flags|=128,n=!0,a=t.updateQueue,a!==null&&(e.updateQueue=a,e.flags|=4),k9(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!le)return F4(e),null}else 2*Ae()-o.renderingStartTime>Y6&&a!==1073741824&&(e.flags|=128,n=!0,k9(o,!1),e.lanes=4194304);o.isBackwards?(l.sibling=e.child,e.child=l):(a=o.last,a!==null?a.sibling=l:e.child=l,o.last=l)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ae(),e.sibling=null,a=pe.current,W0(pe,n?a&1|2:a&1),e):(F4(e),null);case 22:case 23:return UB(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?Qa&1073741824&&(F4(e),e.subtreeFlags&6&&(e.flags|=8192)):F4(e),null;case 24:return null;case 25:return null}throw Error(pt(156,e.tag))}function Ia1(t,e){switch(VB(e),e.tag){case 1:return ja(e.type)&&Kf(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return G6(),ee(Ra),ee(X4),AB(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return OB(e),null;case 13:if(ee(pe),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(pt(340));W6()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ee(pe),null;case 4:return G6(),null;case 10:return BB(e.type._context),null;case 22:case 23:return UB(),null;case 24:return null;default:return null}}var Pv=!1,W4=!1,Fa1=typeof WeakSet=="function"?WeakSet:Set,$t=null;function m6(t,e){var a=t.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(n){be(t,e,n)}else a.current=null}function LC(t,e,a){try{a()}catch(n){be(t,e,n)}}var XA=!1;function $a1(t,e){if(hC=Uf,t=MW(),yB(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var r=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break t}var l=0,c=-1,h=-1,s=0,u=0,v=t,f=null;e:for(;;){for(var d;v!==a||r!==0&&v.nodeType!==3||(c=l+r),v!==o||n!==0&&v.nodeType!==3||(h=l+n),v.nodeType===3&&(l+=v.nodeValue.length),(d=v.firstChild)!==null;)f=v,v=d;for(;;){if(v===t)break e;if(f===a&&++s===r&&(c=l),f===o&&++u===n&&(h=l),(d=v.nextSibling)!==null)break;v=f,f=v.parentNode}v=d}a=c===-1||h===-1?null:{start:c,end:h}}else a=null}a=a||{start:0,end:0}}else a=null;for(uC={focusedElem:t,selectionRange:a},Uf=!1,$t=e;$t!==null;)if(e=$t,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,$t=t;else for(;$t!==null;){e=$t;try{var M=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(M!==null){var g=M.memoizedProps,H=M.memoizedState,p=e.stateNode,m=p.getSnapshotBeforeUpdate(e.elementType===e.type?g:mr(e.type,g),H);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var z=e.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(pt(163))}}catch(w){be(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,$t=t;break}$t=e.return}return M=XA,XA=!1,M}function P7(t,e,a){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do{if((r.tag&t)===t){var o=r.destroy;r.destroy=void 0,o!==void 0&&LC(e,a,o)}r=r.next}while(r!==n)}}function Ep(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var a=e=e.next;do{if((a.tag&t)===t){var n=a.create;a.destroy=n()}a=a.next}while(a!==e)}}function BC(t){var e=t.ref;if(e!==null){var a=t.stateNode;switch(t.tag){case 5:t=a;break;default:t=a}typeof e=="function"?e(t):e.current=t}}function pq(t){var e=t.alternate;e!==null&&(t.alternate=null,pq(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[ai],delete e[bs],delete e[fC],delete e[Ca1],delete e[ba1])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function mq(t){return t.tag===5||t.tag===3||t.tag===4}function JA(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||mq(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function _C(t,e,a){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?a.nodeType===8?a.parentNode.insertBefore(t,e):a.insertBefore(t,e):(a.nodeType===8?(e=a.parentNode,e.insertBefore(t,a)):(e=a,e.appendChild(t)),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=Gf));else if(n!==4&&(t=t.child,t!==null))for(_C(t,e,a),t=t.sibling;t!==null;)_C(t,e,a),t=t.sibling}function SC(t,e,a){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(SC(t,e,a),t=t.sibling;t!==null;)SC(t,e,a),t=t.sibling}var L4=null,Mr=!1;function i3(t,e,a){for(a=a.child;a!==null;)zq(t,e,a),a=a.sibling}function zq(t,e,a){if(zi&&typeof zi.onCommitFiberUnmount=="function")try{zi.onCommitFiberUnmount(Lp,a)}catch{}switch(a.tag){case 5:W4||m6(a,e);case 6:var n=L4,r=Mr;L4=null,i3(t,e,a),L4=n,Mr=r,L4!==null&&(Mr?(t=L4,a=a.stateNode,t.nodeType===8?t.parentNode.removeChild(a):t.removeChild(a)):L4.removeChild(a.stateNode));break;case 18:L4!==null&&(Mr?(t=L4,a=a.stateNode,t.nodeType===8?Lw(t.parentNode,a):t.nodeType===1&&Lw(t,a),ws(t)):Lw(L4,a.stateNode));break;case 4:n=L4,r=Mr,L4=a.stateNode.containerInfo,Mr=!0,i3(t,e,a),L4=n,Mr=r;break;case 0:case 11:case 14:case 15:if(!W4&&(n=a.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){r=n=n.next;do{var o=r,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&LC(a,e,l),r=r.next}while(r!==n)}i3(t,e,a);break;case 1:if(!W4&&(m6(a,e),n=a.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=a.memoizedProps,n.state=a.memoizedState,n.componentWillUnmount()}catch(c){be(a,e,c)}i3(t,e,a);break;case 21:i3(t,e,a);break;case 22:a.mode&1?(W4=(n=W4)||a.memoizedState!==null,i3(t,e,a),W4=n):i3(t,e,a);break;default:i3(t,e,a)}}function tk(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var a=t.stateNode;a===null&&(a=t.stateNode=new Fa1),e.forEach(function(n){var r=Xa1.bind(null,t,n);a.has(n)||(a.add(n),n.then(r,r))})}}function sr(t,e){var a=e.deletions;if(a!==null)for(var n=0;nr&&(r=l),n&=~o}if(n=r,n=Ae()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Wa1(n/1960))-n,10t?16:t,N3===null)var n=!1;else{if(t=N3,N3=null,og=0,t0&6)throw Error(pt(331));var r=t0;for(t0|=4,$t=t.current;$t!==null;){var o=$t,l=o.child;if($t.flags&16){var c=o.deletions;if(c!==null){for(var h=0;hAe()-FB?_8(t,0):IB|=a),Ia(t,e)}function bq(t,e){e===0&&(t.mode&1?(e=Lv,Lv<<=1,!(Lv&130023424)&&(Lv=4194304)):e=1);var a=fa();t=z5(t,e),t!==null&&(hh(t,e,a),Ia(t,a))}function Qa1(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),bq(t,a)}function Xa1(t,e){var a=0;switch(t.tag){case 13:var n=t.stateNode,r=t.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(pt(314))}n!==null&&n.delete(e),bq(t,a)}var Lq;Lq=function(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps||Ra.current)Na=!0;else{if(!(t.lanes&a)&&!(e.flags&128))return Na=!1,Ra1(t,e,a);Na=!!(t.flags&131072)}else Na=!1,le&&e.flags&1048576&&SW(e,Qf,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;lf(t,e),t=e.pendingProps;var r=U6(e,X4.current);T6(e,a),r=EB(null,e,n,t,r,a);var o=PB();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ja(n)?(o=!0,Yf(e)):o=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,SB(e),r.updater=Ap,e.stateNode=r,r._reactInternals=e,HC(e,n,t,a),e=xC(null,e,n,!0,o,a)):(e.tag=0,le&&o&&xB(e),sa(null,e,r,a),e=e.child),e;case 16:n=e.elementType;t:{switch(lf(t,e),t=e.pendingProps,r=n._init,n=r(n._payload),e.type=n,r=e.tag=tn1(n),t=mr(n,t),r){case 0:e=yC(null,e,n,t,a);break t;case 1:e=YA(null,e,n,t,a);break t;case 11:e=GA(null,e,n,t,a);break t;case 14:e=KA(null,e,n,mr(n.type,t),a);break t}throw Error(pt(306,n,""))}return e;case 0:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:mr(n,r),yC(t,e,n,r,a);case 1:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:mr(n,r),YA(t,e,n,r,a);case 3:t:{if(hq(e),t===null)throw Error(pt(387));n=e.pendingProps,o=e.memoizedState,r=o.element,kW(t,e),tg(e,n,null,a);var l=e.memoizedState;if(n=l.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){r=K6(Error(pt(423)),e),e=ZA(t,e,n,a,r);break t}else if(n!==r){r=K6(Error(pt(424)),e),e=ZA(t,e,n,a,r);break t}else for(en=q3(e.stateNode.containerInfo.firstChild),on=e,le=!0,yr=null,a=DW(e,null,n,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(W6(),n===r){e=M5(t,e,a);break t}sa(t,e,n,a)}e=e.child}return e;case 5:return RW(e),t===null&&mC(e),n=e.type,r=e.pendingProps,o=t!==null?t.memoizedProps:null,l=r.children,vC(n,r)?l=null:o!==null&&vC(n,o)&&(e.flags|=32),sq(t,e),sa(t,e,l,a),e.child;case 6:return t===null&&mC(e),null;case 13:return uq(t,e,a);case 4:return TB(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=q6(e,null,n,a):sa(t,e,n,a),e.child;case 11:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:mr(n,r),GA(t,e,n,r,a);case 7:return sa(t,e,e.pendingProps,a),e.child;case 8:return sa(t,e,e.pendingProps.children,a),e.child;case 12:return sa(t,e,e.pendingProps.children,a),e.child;case 10:t:{if(n=e.type._context,r=e.pendingProps,o=e.memoizedProps,l=r.value,W0(Xf,n._currentValue),n._currentValue=l,o!==null)if(Or(o.value,l)){if(o.children===r.children&&!Ra.current){e=M5(t,e,a);break t}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){l=o.child;for(var h=c.firstContext;h!==null;){if(h.context===n){if(o.tag===1){h=h5(-1,a&-a),h.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var u=s.pending;u===null?h.next=h:(h.next=u.next,u.next=h),s.pending=h}}o.lanes|=a,h=o.alternate,h!==null&&(h.lanes|=a),zC(o.return,a,e),c.lanes|=a;break}h=h.next}}else if(o.tag===10)l=o.type===e.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(pt(341));l.lanes|=a,c=l.alternate,c!==null&&(c.lanes|=a),zC(l,a,e),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===e){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}sa(t,e,r.children,a),e=e.child}return e;case 9:return r=e.type,n=e.pendingProps.children,T6(e,a),r=$n(r),n=n(r),e.flags|=1,sa(t,e,n,a),e.child;case 14:return n=e.type,r=mr(n,e.pendingProps),r=mr(n.type,r),KA(t,e,n,r,a);case 15:return lq(t,e,e.type,e.pendingProps,a);case 17:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:mr(n,r),lf(t,e),e.tag=1,ja(n)?(t=!0,Yf(e)):t=!1,T6(e,a),PW(e,n,r),HC(e,n,r,a),xC(null,e,n,!0,t,a);case 19:return vq(t,e,a);case 22:return cq(t,e,a)}throw Error(pt(156,e.tag))};function Bq(t,e){return tW(t,e)}function Ja1(t,e,a,n){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(t,e,a,n){return new Ja1(t,e,a,n)}function qB(t){return t=t.prototype,!(!t||!t.isReactComponent)}function tn1(t){if(typeof t=="function")return qB(t)?1:0;if(t!=null){if(t=t.$$typeof,t===uB)return 11;if(t===vB)return 14}return 2}function Z3(t,e){var a=t.alternate;return a===null?(a=Nn(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&14680064,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a}function hf(t,e,a,n,r,o){var l=2;if(n=t,typeof t=="function")qB(t)&&(l=1);else if(typeof t=="string")l=5;else t:switch(t){case c6:return S8(a.children,r,o,e);case hB:l=8,r|=8;break;case UV:return t=Nn(12,a,e,r|2),t.elementType=UV,t.lanes=o,t;case WV:return t=Nn(13,a,e,r),t.elementType=WV,t.lanes=o,t;case qV:return t=Nn(19,a,e,r),t.elementType=qV,t.lanes=o,t;case NU:return Np(a,r,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case EU:l=10;break t;case PU:l=9;break t;case uB:l=11;break t;case vB:l=14;break t;case y3:l=16,n=null;break t}throw Error(pt(130,t==null?t:typeof t,""))}return e=Nn(l,a,e,r),e.elementType=t,e.type=n,e.lanes=o,e}function S8(t,e,a,n){return t=Nn(7,t,n,e),t.lanes=a,t}function Np(t,e,a,n){return t=Nn(22,t,n,e),t.elementType=NU,t.lanes=a,t.stateNode={isHidden:!1},t}function Ew(t,e,a){return t=Nn(6,t,null,e),t.lanes=a,t}function Pw(t,e,a){return e=Nn(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function en1(t,e,a,n,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pw(0),this.expirationTimes=pw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pw(0),this.identifierPrefix=n,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function GB(t,e,a,n,r,o,l,c,h){return t=new en1(t,e,a,c,h),e===1?(e=1,o===!0&&(e|=8)):e=0,o=Nn(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:n,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},SB(o),t}function an1(t,e,a){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Oq)}catch(t){console.error(t)}}Oq(),SU.exports=sn;var $8=SU.exports;const V8=R0($8);var ck=$8;FV.createRoot=ck.createRoot,FV.hydrateRoot=ck.hydrateRoot;var Nw={},Dw={},H0={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultConfig=t.defaultApiConfig=t.defaultReadConfig=t.questionSet=t.guessTheAnswer=t.attempted=t.completed=t.blackList=void 0,t.blackList=["http://adlnet.gov/expapi/verbs/attended","http://adlnet.gov/expapi/verbs/attempted","http://adlnet.gov/expapi/verbs/interacted","http://adlnet.gov/expapi/verbs/imported","http://adlnet.gov/expapi/verbs/created"],t.completed=["http://adlnet.gov/expapi/verbs/completed","http://adlnet.gov/expapi/verbs/answered","http://activitystrea.ms/schema/1.0/consume","http://adlnet.gov/expapi/verbs/passed","http://adlnet.gov/expapi/verbs/mastered"],t.attempted="http://adlnet.gov/expapi/verbs/attempted",t.guessTheAnswer="GuessTheAnswer",t.questionSet="QuestionSet",t.defaultReadConfig={apiUrl:"",getImagePrefix:function(){return""},getImageSvgPrefix:function(){return""},courses:{loading:!1},fetchCourses:function(){return Promise.reject()},userGroup:{loading:!1},fetchChallenges:function(){return Promise.reject()},challenges:{loading:!1},fetchUserGroup:function(){return Promise.reject()},userGroups:{loading:!1},fetchUserGroups:function(){return Promise.reject()},registerableGroups:{loading:!1},fetchRegisterableGroups:function(){return Promise.reject()},course:{loading:!1},fetchCourse:function(e){return Promise.reject()},program:{loading:!1},fetchProgram:function(e){return Promise.reject()},login:function(e){return Promise.reject()},logout:function(){return Promise.reject()},settings:{loading:!1,value:{}},fetchSettings:function(){return Promise.reject()},config:{loading:!1,value:{}},fetchConfig:function(){return Promise.reject()},uniqueTags:{loading:!1,list:[]},fetchTags:function(){return Promise.reject()},categoryTree:{loading:!1,list:[]},fetchCategories:function(){return Promise.reject()},user:{loading:!1},register:function(){return Promise.reject({success:!1,message:"register method not implemented"})},forgot:function(e){return Promise.reject()},reset:function(e){return Promise.reject()},emailVerify:function(e,a){return Promise.reject()},initAccountDelete:function(){return Promise.reject()},confirmAccountDelete:function(){return Promise.reject()},addToCart:function(e,a){return Promise.reject()},addMissingProducts:function(e){return Promise.reject()},removeFromCart:function(e){return Promise.reject(e)},fetchCart:function(){return Promise.reject()},resetCart:function(){return Promise.reject()},cart:{loading:!1,value:{total:0,subtotal:0,tax:0,items:[],coupon:null,total_with_tax:0}},payWithStripe:function(e,a){return Promise.reject(e)},payWithP24:function(e,a,n){return Promise.reject()},fetchProgress:function(){return Promise.reject()},fetchPaginatedProgress:function(){return Promise.reject()},paginatedProgress:{loading:!1},fetchMyAuthoredCourses:function(){return Promise.reject()},fetchCourseProgress:function(e){return Promise.reject()},courseProgressDetails:{loading:!1,byId:{}},progress:{loading:!1,value:[]},myAuthoredCourses:{loading:!1},sendProgress:function(e,a){return Promise.reject()},h5pProgress:function(e,a,n){return Promise.reject()},tutors:{loading:!1,list:[]},fetchTutors:function(){return Promise.reject()},tutor:{loading:!1},fetchTutor:function(e){return Promise.reject(e)},orders:{loading:!1},fetchOrders:function(e){return Promise.reject()},payments:{loading:!1},certificates:{loading:!1},fetchCertificates:function(e){return Promise.reject()},fetchCertificate:function(e){return Promise.reject(e)},generateCertificate:function(e){return Promise.reject(e)},getProductInfo:function(e){return Promise.reject(e)},pages:{loading:!1},mattermostChannels:{loading:!1,value:{server:"",teams:[]}},fetchMattermostChannels:function(){return Promise.reject()},fetchPages:function(){return Promise.reject()},page:{loading:!1},fetchPage:function(e){return Promise.reject()},fetchPayments:function(){return Promise.reject()},fetchProfile:function(){return Promise.reject()},updateProfile:function(e){return Promise.reject(e)},updateAvatar:function(e){return Promise.reject(e)},topicPing:function(e){return Promise.reject(e)},topicIsFinished:function(e){return!1},courseProgress:function(e){return 0},getNextPrevTopic:function(e,a){return null},socialAuthorize:function(e){return Promise.reject()},notifications:{loading:!1},fetchNotifications:function(e){return Promise.reject()},readAllNotifications:function(){return Promise.reject()},readNotify:function(e){return Promise.reject()},h5p:{loading:!1},fetchH5P:function(e){return Promise.reject()},getRefreshedToken:function(){return Promise.reject()},fetchConsultations:function(){return Promise.reject()},fetchConsultation:function(e){return Promise.reject()},fetchUserConsultations:function(){return Promise.reject()},consultation:{loading:!1},consultations:{loading:!1},userConsultations:{loading:!1},userWebinars:{loading:!1},fetchUserWebinars:function(){return Promise.reject()},fetchWebinar:function(e){return Promise.reject()},fetchProducts:function(e){return Promise.reject()},fetchProduct:function(e){return Promise.reject()},fields:{loading:!1,list:[]},fetchFields:function(e){return Promise.reject()},stationaryEvents:{loading:!1},stationaryEvent:{loading:!1},tutorConsultations:{loading:!1},fetchStationaryEvents:function(e){return Promise.reject()},fetchStationaryEvent:function(e){return Promise.reject()},bookConsultationTerm:function(e,a){return Promise.reject()},fetchWebinars:function(e){return Promise.reject()},fetchTutorConsultations:function(){return Promise.reject()},approveConsultationTerm:function(e){return Promise.reject()},rejectConsultationTerm:function(e){return Promise.reject()},generateConsultationJitsy:function(e){return Promise.reject(e)},generateWebinarJitsy:function(e){return Promise.reject(e)},webinars:{loading:!1},webinar:{loading:!1},events:{loading:!1},fetchEvents:function(e){return Promise.reject()},changePassword:function(){return Promise.reject()},realizeVoucher:function(){return Promise.reject()},removeVoucher:function(){return Promise.reject()},createTeamsChat:function(){return Promise.reject()},products:{loading:!1},product:{loading:!1},fetchQuestionnaires:function(e,a){return Promise.reject()},fetchQuestionnaire:function(e,a,n){return Promise.reject()},fetchQuestionnairesAnswers:function(e,a,n,r){return Promise.reject()},fetchQuestionnaireStars:function(e,a,n){return Promise.reject()},fetchQuestionnaireStarsByModel:function(e,a){return Promise.reject()},sendQuestionnaireAnswer:function(e,a,n,r){return Promise.reject()},fetchUserStationaryEvents:function(){return Promise.reject()},userStationaryEvents:{loading:!1},fetchOrderInvoice:function(e){return Promise.reject(e)},changeConsultationTerm:function(e,a){return Promise.reject()},tasks:{loading:!1},fetchTasks:function(e){return Promise.reject()},courseAccess:{loading:!1},myCourses:{loading:!1,value:[]},fetchMyCourses:function(){return Promise.reject()},fetchCourseAccess:function(e){return Promise.reject()},addCourseAccess:function(e){return Promise.reject()},deleteCourseAccess:function(e){return Promise.reject()},task:{loading:!1},challenge:{loading:!1},attendances:{loading:!1},consultationAccessEnquiry:{loading:!1},fetchConsultationAccessEnquiry:function(e){return Promise.reject()},consultationAccess:{loading:!1},fetchConsultationAccess:function(e){return Promise.reject()},addConsultationAccess:function(e){return Promise.reject()},deleteConsultationAccess:function(e){return Promise.reject()},updateConsultationAccess:function(e,a){return Promise.reject()},fetchTask:function(e){return Promise.reject()},fetchChallenge:function(e){return Promise.reject()},fetchAttendances:function(e){return Promise.reject()},deleteTask:function(e){return Promise.reject()},addTask:function(e){return Promise.reject()},updateTask:function(e,a){return Promise.reject()},updateTaskStatus:function(e,a){return Promise.reject(e)},createTaskNote:function(e,a){return Promise.reject(e)},updateTaskNote:function(e,a,n){return Promise.reject(e)},deleteTaskNote:function(e){return Promise.reject(e)},schedule:{loading:!1,list:[]},scheduleTutors:{loading:!1,list:[]},fetchSchedule:function(){return Promise.reject()},fetchScheduleTutors:function(){return Promise.reject()},bookmarkNotes:{loading:!1},fetchBookmarkNotes:function(e){return Promise.reject()},createBookmarkNote:function(e){return Promise.reject()},updateBookmarkNote:function(e,a){return Promise.reject(e)},deleteBookmarkNote:function(e){return Promise.reject(e)},subjects:{loading:!1},fetchExams:function(e){return Promise.reject()},exams:{loading:!1},fetchSubjects:function(e){return Promise.reject()},fetchSemesters:function(e){return Promise.reject()},semesters:{loading:!1,list:[]},academicYears:{loading:!1,list:[]},fetchAcademicYears:function(e){return Promise.reject()}},t.defaultApiConfig={apiUrl:"",myCourses:{loading:!1,value:[]},fetchMyCourses:function(){return Promise.reject()},getImagePrefix:function(){return""},getImageSvgPrefix:function(){return""},courses:{loading:!1},fetchCourses:function(){return Promise.reject()},userGroup:{loading:!1},fetchChallenges:function(){return Promise.reject()},challenges:{loading:!1},fetchUserGroup:function(){return Promise.reject()},userGroups:{loading:!1},fetchUserGroups:function(){return Promise.reject()},registerableGroups:{loading:!1},fetchRegisterableGroups:function(){return Promise.reject()},course:{loading:!1},fetchCourse:function(e){return Promise.reject()},program:{loading:!1},fetchProgram:function(e){return Promise.reject()},login:function(e){return Promise.reject()},logout:function(){return Promise.reject()},settings:{loading:!1,value:[]},fetchSettings:function(){return Promise.reject()},config:{loading:!1,value:{escola_auth:{additional_fields:[],additional_fields_required:[]}}},fetchConfig:function(){return Promise.reject()},uniqueTags:{loading:!1,list:[]},fetchTags:function(){return Promise.reject()},categoryTree:{loading:!1,list:[]},fetchCategories:function(){return Promise.reject()},user:{loading:!1},register:function(){return Promise.reject({success:!1,message:"register method not implemented"})},forgot:function(e){return Promise.reject()},reset:function(e){return Promise.reject()},emailVerify:function(e,a){return Promise.reject()},initAccountDelete:function(){return Promise.reject()},confirmAccountDelete:function(){return Promise.reject()},addToCart:function(e,a){return Promise.reject()},addMissingProducts:function(e){return Promise.reject()},removeFromCart:function(e){return Promise.reject(e)},fetchCart:function(){return Promise.reject()},resetCart:function(){return Promise.reject()},cart:{loading:!1,value:{total:0,subtotal:0,tax:0,items:[],coupon:null,total_with_tax:0}},payWithStripe:function(e,a){return Promise.reject(e)},payWithP24:function(e,a,n){return Promise.reject()},fetchProgress:function(){return Promise.reject()},fetchPaginatedProgress:function(){return Promise.reject()},paginatedProgress:{loading:!1},fetchMyAuthoredCourses:function(){return Promise.reject()},fetchCourseProgress:function(e){return Promise.reject()},courseProgressDetails:{loading:!1,byId:{}},progress:{loading:!1,value:[]},myAuthoredCourses:{loading:!1},sendProgress:function(e,a){return Promise.reject()},h5pProgress:function(e,a,n){return Promise.reject()},tutors:{loading:!1,list:[]},fetchTutors:function(){return Promise.reject()},tutor:{loading:!1},fetchTutor:function(e){return Promise.reject(e)},orders:{loading:!1},fetchOrders:function(e){return Promise.reject()},payments:{loading:!1},certificates:{loading:!1},fetchCertificates:function(e){return Promise.reject()},fetchCertificate:function(e){return Promise.reject(e)},generateCertificate:function(e){return Promise.reject(e)},getProductInfo:function(e){return Promise.reject(e)},pages:{loading:!1},mattermostChannels:{loading:!1,value:{server:"",teams:[]}},fetchMattermostChannels:function(){return Promise.reject()},fetchPages:function(){return Promise.reject()},page:{loading:!1},fetchPage:function(e){return Promise.reject()},fetchPayments:function(){return Promise.reject()},fetchProfile:function(){return Promise.reject()},updateProfile:function(e){return Promise.reject(e)},updateAvatar:function(e){return Promise.reject(e)},topicPing:function(e){return Promise.reject(e)},topicIsFinished:function(e){return!1},courseProgress:function(e){return 0},getNextPrevTopic:function(e,a){return null},getRefreshedToken:function(){return Promise.reject()},socialAuthorize:function(e){return Promise.reject()},notifications:{loading:!1},fetchNotifications:function(e){return Promise.reject()},readNotify:function(e){return Promise.reject()},readAllNotifications:function(){return Promise.reject()},h5p:{loading:!1},fetchH5P:function(e){return Promise.reject()},fetchConsultations:function(){return Promise.reject()},fetchConsultation:function(e){return Promise.reject()},fetchUserConsultations:function(){return Promise.reject()},consultation:{loading:!1},consultations:{loading:!1},fields:{loading:!1,list:[]},userConsultations:{loading:!1},tutorConsultations:{loading:!1},userWebinars:{loading:!1},fetchUserWebinars:function(){return Promise.reject()},fetchWebinar:function(e){return Promise.reject()},fetchProducts:function(e){return Promise.reject()},fetchProduct:function(e){return Promise.reject()},fetchFields:function(e){return Promise.reject()},stationaryEvents:{loading:!1},stationaryEvent:{loading:!1},fetchStationaryEvents:function(e){return Promise.reject()},fetchStationaryEvent:function(e){return Promise.reject()},bookConsultationTerm:function(e,a){return Promise.reject()},fetchWebinars:function(e){return Promise.reject()},webinars:{loading:!1},webinar:{loading:!1},fetchTutorConsultations:function(){return Promise.reject()},approveConsultationTerm:function(e){return Promise.reject()},rejectConsultationTerm:function(e){return Promise.reject()},generateConsultationJitsy:function(e){return Promise.reject(e)},generateWebinarJitsy:function(e){return Promise.reject(e)},events:{loading:!1},fetchEvents:function(e){return Promise.reject()},changePassword:function(){return Promise.reject()},realizeVoucher:function(){return Promise.reject()},removeVoucher:function(){return Promise.reject()},createTeamsChat:function(){return Promise.reject()},products:{loading:!1},product:{loading:!1},fetchQuestionnaires:function(e,a){return Promise.reject()},fetchQuestionnaire:function(e,a,n){return Promise.reject()},fetchQuestionnairesAnswers:function(e,a,n,r){return Promise.reject()},sendQuestionnaireAnswer:function(e,a,n,r){return Promise.reject()},fetchQuestionnaireStars:function(e,a,n){return Promise.reject()},fetchQuestionnaireStarsByModel:function(e,a){return Promise.reject()},fetchUserStationaryEvents:function(){return Promise.reject()},userStationaryEvents:{loading:!1},fetchOrderInvoice:function(e){return Promise.reject(e)},changeConsultationTerm:function(e,a){return Promise.reject()},tasks:{loading:!1},fetchTasks:function(e){return Promise.reject()},courseAccess:{loading:!1},fetchCourseAccess:function(e){return Promise.reject()},deleteCourseAccess:function(e){return Promise.reject()},addCourseAccess:function(e){return Promise.reject()},consultationAccessEnquiry:{loading:!1},fetchConsultationAccessEnquiry:function(e){return Promise.reject()},consultationAccess:{loading:!1},fetchConsultationAccess:function(e){return Promise.reject()},deleteConsultationAccess:function(e){return Promise.reject()},addConsultationAccess:function(e){return Promise.reject()},updateConsultationAccess:function(e,a){return Promise.reject()},task:{loading:!1},challenge:{loading:!1},attendances:{loading:!1},fetchTask:function(e){return Promise.reject(e)},fetchChallenge:function(e){return Promise.reject(e)},fetchAttendances:function(e){return Promise.reject(e)},deleteTask:function(e){return Promise.reject()},addTask:function(e){return Promise.reject()},updateTask:function(e,a){return Promise.reject(e)},updateTaskStatus:function(e,a){return Promise.reject(e)},createTaskNote:function(e,a){return Promise.reject(e)},updateTaskNote:function(e,a,n){return Promise.reject(e)},deleteTaskNote:function(e){return Promise.reject(e)},schedule:{loading:!1,list:[]},scheduleTutors:{loading:!1,list:[]},fetchSchedule:function(){return Promise.reject()},fetchScheduleTutors:function(){return Promise.reject()},bookmarkNotes:{loading:!1},fetchBookmarkNotes:function(e){return Promise.reject()},createBookmarkNote:function(e){return Promise.reject()},updateBookmarkNote:function(e,a){return Promise.reject(e)},deleteBookmarkNote:function(e){return Promise.reject(e)},subjects:{loading:!1},fetchSubjects:function(){return Promise.reject()},fetchExams:function(){return Promise.reject()},exams:{loading:!1},fetchSemesters:function(){return Promise.reject()},semesters:{loading:!1,list:[]},fetchAcademicYears:function(){return Promise.reject()},academicYears:{loading:!1,list:[]}},t.defaultConfig=Object.assign({},t.defaultReadConfig,t.defaultApiConfig)})(H0);var f0={},v0=b&&b.__assign||function(){return v0=Object.assign||function(t){for(var e,a=1,n=arguments.length;a0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"u"||!g4?q2:g4(Uint8Array),O8={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?q2:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?q2:ArrayBuffer,"%ArrayIteratorPrototype%":Il&&g4?g4([][Symbol.iterator]()):q2,"%AsyncFromSyncIteratorPrototype%":q2,"%AsyncFunction%":a6,"%AsyncGenerator%":a6,"%AsyncGeneratorFunction%":a6,"%AsyncIteratorPrototype%":a6,"%Atomics%":typeof Atomics>"u"?q2:Atomics,"%BigInt%":typeof BigInt>"u"?q2:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?q2:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?q2:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?q2:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":An1,"%eval%":eval,"%EvalError%":kn1,"%Float32Array%":typeof Float32Array>"u"?q2:Float32Array,"%Float64Array%":typeof Float64Array>"u"?q2:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?q2:FinalizationRegistry,"%Function%":kq,"%GeneratorFunction%":a6,"%Int8Array%":typeof Int8Array>"u"?q2:Int8Array,"%Int16Array%":typeof Int16Array>"u"?q2:Int16Array,"%Int32Array%":typeof Int32Array>"u"?q2:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Il&&g4?g4(g4([][Symbol.iterator]())):q2,"%JSON%":typeof JSON=="object"?JSON:q2,"%Map%":typeof Map>"u"?q2:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Il||!g4?q2:g4(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?q2:Promise,"%Proxy%":typeof Proxy>"u"?q2:Proxy,"%RangeError%":En1,"%ReferenceError%":Pn1,"%Reflect%":typeof Reflect>"u"?q2:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?q2:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Il||!g4?q2:g4(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?q2:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Il&&g4?g4(""[Symbol.iterator]()):q2,"%Symbol%":Il?Symbol:q2,"%SyntaxError%":Z6,"%ThrowTypeError%":Dn1,"%TypedArray%":jn1,"%TypeError%":A6,"%Uint8Array%":typeof Uint8Array>"u"?q2:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?q2:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?q2:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?q2:Uint32Array,"%URIError%":Nn1,"%WeakMap%":typeof WeakMap>"u"?q2:WeakMap,"%WeakRef%":typeof WeakRef>"u"?q2:WeakRef,"%WeakSet%":typeof WeakSet>"u"?q2:WeakSet};if(g4)try{null.error}catch(t){var In1=g4(g4(t));O8["%Error.prototype%"]=In1}var Fn1=function t(e){var a;if(e==="%AsyncFunction%")a=jw("async function () {}");else if(e==="%GeneratorFunction%")a=jw("function* () {}");else if(e==="%AsyncGeneratorFunction%")a=jw("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(a=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");r&&g4&&(a=g4(r.prototype))}return O8[e]=a,a},dk={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},gh=QB,sg=On1,$n1=gh.call(Function.call,Array.prototype.concat),Un1=gh.call(Function.apply,Array.prototype.splice),fk=gh.call(Function.call,String.prototype.replace),hg=gh.call(Function.call,String.prototype.slice),Wn1=gh.call(Function.call,RegExp.prototype.exec),qn1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gn1=/\\(\\)?/g,Kn1=function(e){var a=hg(e,0,1),n=hg(e,-1);if(a==="%"&&n!=="%")throw new Z6("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&a!=="%")throw new Z6("invalid intrinsic syntax, expected opening `%`");var r=[];return fk(e,qn1,function(o,l,c,h){r[r.length]=c?fk(h,Gn1,"$1"):l||o}),r},Yn1=function(e,a){var n=e,r;if(sg(dk,n)&&(r=dk[n],n="%"+r[0]+"%"),sg(O8,n)){var o=O8[n];if(o===a6&&(o=Fn1(n)),typeof o>"u"&&!a)throw new A6("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Z6("intrinsic "+e+" does not exist!")},Oc=function(e,a){if(typeof e!="string"||e.length===0)throw new A6("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new A6('"allowMissing" argument must be a boolean');if(Wn1(/^%?[^%]*%?$/,e)===null)throw new Z6("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Kn1(e),r=n.length>0?n[0]:"",o=Yn1("%"+r+"%",a),l=o.name,c=o.value,h=!1,s=o.alias;s&&(r=s[0],Un1(n,$n1([0,1],s)));for(var u=1,v=!0;u=n.length){var g=T8(c,f);v=!!g,v&&"get"in g&&!("originalValue"in g.get)?c=g.get:c=c[f]}else v=sg(c,f),c=c[f];v&&!h&&(O8[l]=c)}}return c},Eq={exports:{}},Fw,gk;function XB(){if(gk)return Fw;gk=1;var t=Oc,e=t("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Fw=e,Fw}var Zn1=Oc,uf=Zn1("%Object.getOwnPropertyDescriptor%",!0);if(uf)try{uf([],"length")}catch{uf=null}var Pq=uf,pk=XB(),Qn1=Aq,Fl=fh,mk=Pq,Xn1=function(e,a,n){if(!e||typeof e!="object"&&typeof e!="function")throw new Fl("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new Fl("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Fl("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Fl("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Fl("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Fl("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,h=!!mk&&mk(e,a);if(pk)pk(e,a,{configurable:l===null&&h?h.configurable:!l,enumerable:r===null&&h?h.enumerable:!r,value:n,writable:o===null&&h?h.writable:!o});else if(c||!r&&!o&&!l)e[a]=n;else throw new Qn1("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},EC=XB(),Nq=function(){return!!EC};Nq.hasArrayLengthDefineBug=function(){if(!EC)return null;try{return EC([],"length",{value:1}).length!==1}catch{return!0}};var Jn1=Nq,tr1=Oc,zk=Xn1,er1=Jn1(),Mk=Pq,Hk=fh,ar1=tr1("%Math.floor%"),nr1=function(e,a){if(typeof e!="function")throw new Hk("`fn` is not a function");if(typeof a!="number"||a<0||a>4294967295||ar1(a)!==a)throw new Hk("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,o=!0;if("length"in e&&Mk){var l=Mk(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(o=!1)}return(r||o||!n)&&(er1?zk(e,"length",a,!0,!0):zk(e,"length",a)),e};(function(t){var e=QB,a=Oc,n=nr1,r=fh,o=a("%Function.prototype.apply%"),l=a("%Function.prototype.call%"),c=a("%Reflect.apply%",!0)||e.call(l,o),h=XB(),s=a("%Math.max%");t.exports=function(f){if(typeof f!="function")throw new r("a function is required");var d=c(e,l,arguments);return n(d,1+s(0,f.length-(arguments.length-1)),!0)};var u=function(){return c(e,o,arguments)};h?h(t.exports,"apply",{value:u}):t.exports.apply=u})(Eq);var rr1=Eq.exports,Dq=Oc,Rq=rr1,ir1=Rq(Dq("String.prototype.indexOf")),or1=function(e,a){var n=Dq(e,!!a);return typeof n=="function"&&ir1(e,".prototype.")>-1?Rq(n):n};const lr1={},cr1=Object.freeze(Object.defineProperty({__proto__:null,default:lr1},Symbol.toStringTag,{value:"Module"})),sr1=se(cr1);var JB=typeof Map=="function"&&Map.prototype,$w=Object.getOwnPropertyDescriptor&&JB?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ug=JB&&$w&&typeof $w.get=="function"?$w.get:null,wk=JB&&Map.prototype.forEach,t_=typeof Set=="function"&&Set.prototype,Uw=Object.getOwnPropertyDescriptor&&t_?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,vg=t_&&Uw&&typeof Uw.get=="function"?Uw.get:null,yk=t_&&Set.prototype.forEach,hr1=typeof WeakMap=="function"&&WeakMap.prototype,R7=hr1?WeakMap.prototype.has:null,ur1=typeof WeakSet=="function"&&WeakSet.prototype,j7=ur1?WeakSet.prototype.has:null,vr1=typeof WeakRef=="function"&&WeakRef.prototype,xk=vr1?WeakRef.prototype.deref:null,dr1=Boolean.prototype.valueOf,fr1=Object.prototype.toString,gr1=Function.prototype.toString,pr1=String.prototype.match,e_=String.prototype.slice,D3=String.prototype.replace,mr1=String.prototype.toUpperCase,Vk=String.prototype.toLowerCase,jq=RegExp.prototype.test,Ck=Array.prototype.concat,ti=Array.prototype.join,zr1=Array.prototype.slice,bk=Math.floor,PC=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ww=Object.getOwnPropertySymbols,NC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Q6=typeof Symbol=="function"&&typeof Symbol.iterator=="object",J4=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Q6||!0)?Symbol.toStringTag:null,Iq=Object.prototype.propertyIsEnumerable,Lk=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Bk(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||jq.call(/e/,e))return e;var a=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-bk(-t):bk(t);if(n!==t){var r=String(n),o=e_.call(e,r.length+1);return D3.call(r,a,"$&_")+"."+D3.call(D3.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D3.call(e,a,"$&_")}var DC=sr1,_k=DC.custom,Sk=$q(_k)?_k:null,Mr1=function t(e,a,n,r){var o=a||{};if(V3(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V3(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=V3(o,"customInspect")?o.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V3(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V3(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Wq(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var h=String(e);return c?Bk(e,h):h}if(typeof e=="bigint"){var s=String(e)+"n";return c?Bk(e,s):s}var u=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof e=="object")return RC(e)?"[Array]":"[Object]";var v=Nr1(o,n);if(typeof r>"u")r=[];else if(Uq(r,e)>=0)return"[Circular]";function f(E,$,U){if($&&(r=zr1.call(r),r.push($)),U){var W={depth:o.depth};return V3(o,"quoteStyle")&&(W.quoteStyle=o.quoteStyle),t(E,W,n+1,r)}return t(E,o,n+1,r)}if(typeof e=="function"&&!Tk(e)){var d=Br1(e),M=Rv(e,f);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(M.length>0?" { "+ti.call(M,", ")+" }":"")}if($q(e)){var g=Q6?D3.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):NC.call(e);return typeof e=="object"&&!Q6?P9(g):g}if(kr1(e)){for(var H="<"+Vk.call(String(e.nodeName)),p=e.attributes||[],m=0;m",H}if(RC(e)){if(e.length===0)return"[]";var z=Rv(e,f);return v&&!Pr1(z)?"["+jC(z,v)+"]":"[ "+ti.call(z,", ")+" ]"}if(yr1(e)){var w=Rv(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!Iq.call(e,"cause")?"{ ["+String(e)+"] "+ti.call(Ck.call("[cause]: "+f(e.cause),w),", ")+" }":w.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ti.call(w,", ")+" }"}if(typeof e=="object"&&l){if(Sk&&typeof e[Sk]=="function"&&DC)return DC(e,{depth:u-n});if(l!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(_r1(e)){var x=[];return wk&&wk.call(e,function(E,$){x.push(f($,e,!0)+" => "+f(E,e))}),Ok("Map",ug.call(e),x,v)}if(Or1(e)){var y=[];return yk&&yk.call(e,function(E){y.push(f(E,e))}),Ok("Set",vg.call(e),y,v)}if(Sr1(e))return qw("WeakMap");if(Ar1(e))return qw("WeakSet");if(Tr1(e))return qw("WeakRef");if(Vr1(e))return P9(f(Number(e)));if(br1(e))return P9(f(PC.call(e)));if(Cr1(e))return P9(dr1.call(e));if(xr1(e))return P9(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===b)return"{ [object globalThis] }";if(!wr1(e)&&!Tk(e)){var V=Rv(e,f),C=Lk?Lk(e)===Object.prototype:e instanceof Object||e.constructor===Object,L=e instanceof Object?"":"null prototype",B=!C&&J4&&Object(e)===e&&J4 in e?e_.call(xo(e),8,-1):L?"Object":"",S=C||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",T=S+(B||L?"["+ti.call(Ck.call([],B||[],L||[]),": ")+"] ":"");return V.length===0?T+"{}":v?T+"{"+jC(V,v)+"}":T+"{ "+ti.call(V,", ")+" }"}return String(e)};function Fq(t,e,a){var n=(a.quoteStyle||e)==="double"?'"':"'";return n+t+n}function Hr1(t){return D3.call(String(t),/"/g,""")}function RC(t){return xo(t)==="[object Array]"&&(!J4||!(typeof t=="object"&&J4 in t))}function wr1(t){return xo(t)==="[object Date]"&&(!J4||!(typeof t=="object"&&J4 in t))}function Tk(t){return xo(t)==="[object RegExp]"&&(!J4||!(typeof t=="object"&&J4 in t))}function yr1(t){return xo(t)==="[object Error]"&&(!J4||!(typeof t=="object"&&J4 in t))}function xr1(t){return xo(t)==="[object String]"&&(!J4||!(typeof t=="object"&&J4 in t))}function Vr1(t){return xo(t)==="[object Number]"&&(!J4||!(typeof t=="object"&&J4 in t))}function Cr1(t){return xo(t)==="[object Boolean]"&&(!J4||!(typeof t=="object"&&J4 in t))}function $q(t){if(Q6)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!NC)return!1;try{return NC.call(t),!0}catch{}return!1}function br1(t){if(!t||typeof t!="object"||!PC)return!1;try{return PC.call(t),!0}catch{}return!1}var Lr1=Object.prototype.hasOwnProperty||function(t){return t in this};function V3(t,e){return Lr1.call(t,e)}function xo(t){return fr1.call(t)}function Br1(t){if(t.name)return t.name;var e=pr1.call(gr1.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Uq(t,e){if(t.indexOf)return t.indexOf(e);for(var a=0,n=t.length;ae.maxStringLength){var a=t.length-e.maxStringLength,n="... "+a+" more character"+(a>1?"s":"");return Wq(e_.call(t,0,e.maxStringLength),e)+n}var r=D3.call(D3.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Er1);return Fq(r,"single",e)}function Er1(t){var e=t.charCodeAt(0),a={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return a?"\\"+a:"\\x"+(e<16?"0":"")+mr1.call(e.toString(16))}function P9(t){return"Object("+t+")"}function qw(t){return t+" { ? }"}function Ok(t,e,a,n){var r=n?jC(a,n):ti.call(a,", ");return t+" ("+e+") {"+r+"}"}function Pr1(t){for(var e=0;e<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=l.createElement(a,{is:n.is}):(t=l.createElement(a),a==="select"&&(l=t,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):t=l.createElementNS(t,a),t[ai]=e,t[bs]=n,dq(t,e,!1,!1),e.stateNode=t;t:{switch(l=tC(a,n),a){case"dialog":Z0("cancel",t),Z0("close",t),r=n;break;case"iframe":case"object":case"embed":Z0("load",t),r=n;break;case"video":case"audio":for(r=0;rY6&&(e.flags|=128,n=!0,k9(o,!1),e.lanes=4194304)}else{if(!n)if(t=eg(l),t!==null){if(e.flags|=128,n=!0,a=t.updateQueue,a!==null&&(e.updateQueue=a,e.flags|=4),k9(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!le)return F4(e),null}else 2*Ae()-o.renderingStartTime>Y6&&a!==1073741824&&(e.flags|=128,n=!0,k9(o,!1),e.lanes=4194304);o.isBackwards?(l.sibling=e.child,e.child=l):(a=o.last,a!==null?a.sibling=l:e.child=l,o.last=l)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ae(),e.sibling=null,a=pe.current,W0(pe,n?a&1|2:a&1),e):(F4(e),null);case 22:case 23:return UB(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?Xa&1073741824&&(F4(e),e.subtreeFlags&6&&(e.flags|=8192)):F4(e),null;case 24:return null;case 25:return null}throw Error(pt(156,e.tag))}function Ia1(t,e){switch(VB(e),e.tag){case 1:return ja(e.type)&&Kf(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return G6(),ee(Ra),ee(X4),AB(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return OB(e),null;case 13:if(ee(pe),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(pt(340));W6()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ee(pe),null;case 4:return G6(),null;case 10:return BB(e.type._context),null;case 22:case 23:return UB(),null;case 24:return null;default:return null}}var Pv=!1,W4=!1,Fa1=typeof WeakSet=="function"?WeakSet:Set,$t=null;function m6(t,e){var a=t.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(n){be(t,e,n)}else a.current=null}function LC(t,e,a){try{a()}catch(n){be(t,e,n)}}var XA=!1;function $a1(t,e){if(hC=Uf,t=MW(),yB(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var r=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break t}var l=0,c=-1,h=-1,s=0,u=0,v=t,f=null;e:for(;;){for(var d;v!==a||r!==0&&v.nodeType!==3||(c=l+r),v!==o||n!==0&&v.nodeType!==3||(h=l+n),v.nodeType===3&&(l+=v.nodeValue.length),(d=v.firstChild)!==null;)f=v,v=d;for(;;){if(v===t)break e;if(f===a&&++s===r&&(c=l),f===o&&++u===n&&(h=l),(d=v.nextSibling)!==null)break;v=f,f=v.parentNode}v=d}a=c===-1||h===-1?null:{start:c,end:h}}else a=null}a=a||{start:0,end:0}}else a=null;for(uC={focusedElem:t,selectionRange:a},Uf=!1,$t=e;$t!==null;)if(e=$t,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,$t=t;else for(;$t!==null;){e=$t;try{var M=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(M!==null){var g=M.memoizedProps,H=M.memoizedState,p=e.stateNode,m=p.getSnapshotBeforeUpdate(e.elementType===e.type?g:mr(e.type,g),H);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var z=e.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(pt(163))}}catch(w){be(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,$t=t;break}$t=e.return}return M=XA,XA=!1,M}function P7(t,e,a){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do{if((r.tag&t)===t){var o=r.destroy;r.destroy=void 0,o!==void 0&&LC(e,a,o)}r=r.next}while(r!==n)}}function Ep(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var a=e=e.next;do{if((a.tag&t)===t){var n=a.create;a.destroy=n()}a=a.next}while(a!==e)}}function BC(t){var e=t.ref;if(e!==null){var a=t.stateNode;switch(t.tag){case 5:t=a;break;default:t=a}typeof e=="function"?e(t):e.current=t}}function pq(t){var e=t.alternate;e!==null&&(t.alternate=null,pq(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[ai],delete e[bs],delete e[fC],delete e[Ca1],delete e[ba1])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function mq(t){return t.tag===5||t.tag===3||t.tag===4}function JA(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||mq(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function _C(t,e,a){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?a.nodeType===8?a.parentNode.insertBefore(t,e):a.insertBefore(t,e):(a.nodeType===8?(e=a.parentNode,e.insertBefore(t,a)):(e=a,e.appendChild(t)),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=Gf));else if(n!==4&&(t=t.child,t!==null))for(_C(t,e,a),t=t.sibling;t!==null;)_C(t,e,a),t=t.sibling}function SC(t,e,a){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(SC(t,e,a),t=t.sibling;t!==null;)SC(t,e,a),t=t.sibling}var L4=null,Mr=!1;function i3(t,e,a){for(a=a.child;a!==null;)zq(t,e,a),a=a.sibling}function zq(t,e,a){if(zi&&typeof zi.onCommitFiberUnmount=="function")try{zi.onCommitFiberUnmount(Lp,a)}catch{}switch(a.tag){case 5:W4||m6(a,e);case 6:var n=L4,r=Mr;L4=null,i3(t,e,a),L4=n,Mr=r,L4!==null&&(Mr?(t=L4,a=a.stateNode,t.nodeType===8?t.parentNode.removeChild(a):t.removeChild(a)):L4.removeChild(a.stateNode));break;case 18:L4!==null&&(Mr?(t=L4,a=a.stateNode,t.nodeType===8?Lw(t.parentNode,a):t.nodeType===1&&Lw(t,a),ws(t)):Lw(L4,a.stateNode));break;case 4:n=L4,r=Mr,L4=a.stateNode.containerInfo,Mr=!0,i3(t,e,a),L4=n,Mr=r;break;case 0:case 11:case 14:case 15:if(!W4&&(n=a.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){r=n=n.next;do{var o=r,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&LC(a,e,l),r=r.next}while(r!==n)}i3(t,e,a);break;case 1:if(!W4&&(m6(a,e),n=a.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=a.memoizedProps,n.state=a.memoizedState,n.componentWillUnmount()}catch(c){be(a,e,c)}i3(t,e,a);break;case 21:i3(t,e,a);break;case 22:a.mode&1?(W4=(n=W4)||a.memoizedState!==null,i3(t,e,a),W4=n):i3(t,e,a);break;default:i3(t,e,a)}}function tk(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var a=t.stateNode;a===null&&(a=t.stateNode=new Fa1),e.forEach(function(n){var r=Xa1.bind(null,t,n);a.has(n)||(a.add(n),n.then(r,r))})}}function sr(t,e){var a=e.deletions;if(a!==null)for(var n=0;nr&&(r=l),n&=~o}if(n=r,n=Ae()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Wa1(n/1960))-n,10t?16:t,N3===null)var n=!1;else{if(t=N3,N3=null,og=0,a0&6)throw Error(pt(331));var r=a0;for(a0|=4,$t=t.current;$t!==null;){var o=$t,l=o.child;if($t.flags&16){var c=o.deletions;if(c!==null){for(var h=0;hAe()-FB?_8(t,0):IB|=a),Ia(t,e)}function bq(t,e){e===0&&(t.mode&1?(e=Lv,Lv<<=1,!(Lv&130023424)&&(Lv=4194304)):e=1);var a=fa();t=z5(t,e),t!==null&&(hh(t,e,a),Ia(t,a))}function Qa1(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),bq(t,a)}function Xa1(t,e){var a=0;switch(t.tag){case 13:var n=t.stateNode,r=t.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(pt(314))}n!==null&&n.delete(e),bq(t,a)}var Lq;Lq=function(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps||Ra.current)Na=!0;else{if(!(t.lanes&a)&&!(e.flags&128))return Na=!1,Ra1(t,e,a);Na=!!(t.flags&131072)}else Na=!1,le&&e.flags&1048576&&SW(e,Qf,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;lf(t,e),t=e.pendingProps;var r=U6(e,X4.current);T6(e,a),r=EB(null,e,n,t,r,a);var o=PB();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ja(n)?(o=!0,Yf(e)):o=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,SB(e),r.updater=Ap,e.stateNode=r,r._reactInternals=e,HC(e,n,t,a),e=xC(null,e,n,!0,o,a)):(e.tag=0,le&&o&&xB(e),sa(null,e,r,a),e=e.child),e;case 16:n=e.elementType;t:{switch(lf(t,e),t=e.pendingProps,r=n._init,n=r(n._payload),e.type=n,r=e.tag=tn1(n),t=mr(n,t),r){case 0:e=yC(null,e,n,t,a);break t;case 1:e=YA(null,e,n,t,a);break t;case 11:e=GA(null,e,n,t,a);break t;case 14:e=KA(null,e,n,mr(n.type,t),a);break t}throw Error(pt(306,n,""))}return e;case 0:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:mr(n,r),yC(t,e,n,r,a);case 1:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:mr(n,r),YA(t,e,n,r,a);case 3:t:{if(hq(e),t===null)throw Error(pt(387));n=e.pendingProps,o=e.memoizedState,r=o.element,kW(t,e),tg(e,n,null,a);var l=e.memoizedState;if(n=l.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){r=K6(Error(pt(423)),e),e=ZA(t,e,n,a,r);break t}else if(n!==r){r=K6(Error(pt(424)),e),e=ZA(t,e,n,a,r);break t}else for(an=q3(e.stateNode.containerInfo.firstChild),ln=e,le=!0,yr=null,a=DW(e,null,n,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(W6(),n===r){e=M5(t,e,a);break t}sa(t,e,n,a)}e=e.child}return e;case 5:return RW(e),t===null&&mC(e),n=e.type,r=e.pendingProps,o=t!==null?t.memoizedProps:null,l=r.children,vC(n,r)?l=null:o!==null&&vC(n,o)&&(e.flags|=32),sq(t,e),sa(t,e,l,a),e.child;case 6:return t===null&&mC(e),null;case 13:return uq(t,e,a);case 4:return TB(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=q6(e,null,n,a):sa(t,e,n,a),e.child;case 11:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:mr(n,r),GA(t,e,n,r,a);case 7:return sa(t,e,e.pendingProps,a),e.child;case 8:return sa(t,e,e.pendingProps.children,a),e.child;case 12:return sa(t,e,e.pendingProps.children,a),e.child;case 10:t:{if(n=e.type._context,r=e.pendingProps,o=e.memoizedProps,l=r.value,W0(Xf,n._currentValue),n._currentValue=l,o!==null)if(Or(o.value,l)){if(o.children===r.children&&!Ra.current){e=M5(t,e,a);break t}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){l=o.child;for(var h=c.firstContext;h!==null;){if(h.context===n){if(o.tag===1){h=h5(-1,a&-a),h.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var u=s.pending;u===null?h.next=h:(h.next=u.next,u.next=h),s.pending=h}}o.lanes|=a,h=o.alternate,h!==null&&(h.lanes|=a),zC(o.return,a,e),c.lanes|=a;break}h=h.next}}else if(o.tag===10)l=o.type===e.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(pt(341));l.lanes|=a,c=l.alternate,c!==null&&(c.lanes|=a),zC(l,a,e),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===e){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}sa(t,e,r.children,a),e=e.child}return e;case 9:return r=e.type,n=e.pendingProps.children,T6(e,a),r=$n(r),n=n(r),e.flags|=1,sa(t,e,n,a),e.child;case 14:return n=e.type,r=mr(n,e.pendingProps),r=mr(n.type,r),KA(t,e,n,r,a);case 15:return lq(t,e,e.type,e.pendingProps,a);case 17:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:mr(n,r),lf(t,e),e.tag=1,ja(n)?(t=!0,Yf(e)):t=!1,T6(e,a),PW(e,n,r),HC(e,n,r,a),xC(null,e,n,!0,t,a);case 19:return vq(t,e,a);case 22:return cq(t,e,a)}throw Error(pt(156,e.tag))};function Bq(t,e){return tW(t,e)}function Ja1(t,e,a,n){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(t,e,a,n){return new Ja1(t,e,a,n)}function qB(t){return t=t.prototype,!(!t||!t.isReactComponent)}function tn1(t){if(typeof t=="function")return qB(t)?1:0;if(t!=null){if(t=t.$$typeof,t===uB)return 11;if(t===vB)return 14}return 2}function Z3(t,e){var a=t.alternate;return a===null?(a=Nn(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&14680064,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a}function hf(t,e,a,n,r,o){var l=2;if(n=t,typeof t=="function")qB(t)&&(l=1);else if(typeof t=="string")l=5;else t:switch(t){case c6:return S8(a.children,r,o,e);case hB:l=8,r|=8;break;case UV:return t=Nn(12,a,e,r|2),t.elementType=UV,t.lanes=o,t;case WV:return t=Nn(13,a,e,r),t.elementType=WV,t.lanes=o,t;case qV:return t=Nn(19,a,e,r),t.elementType=qV,t.lanes=o,t;case NU:return Np(a,r,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case EU:l=10;break t;case PU:l=9;break t;case uB:l=11;break t;case vB:l=14;break t;case y3:l=16,n=null;break t}throw Error(pt(130,t==null?t:typeof t,""))}return e=Nn(l,a,e,r),e.elementType=t,e.type=n,e.lanes=o,e}function S8(t,e,a,n){return t=Nn(7,t,n,e),t.lanes=a,t}function Np(t,e,a,n){return t=Nn(22,t,n,e),t.elementType=NU,t.lanes=a,t.stateNode={isHidden:!1},t}function Ew(t,e,a){return t=Nn(6,t,null,e),t.lanes=a,t}function Pw(t,e,a){return e=Nn(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function en1(t,e,a,n,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pw(0),this.expirationTimes=pw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pw(0),this.identifierPrefix=n,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function GB(t,e,a,n,r,o,l,c,h){return t=new en1(t,e,a,c,h),e===1?(e=1,o===!0&&(e|=8)):e=0,o=Nn(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:n,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},SB(o),t}function an1(t,e,a){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Oq)}catch(t){console.error(t)}}Oq(),SU.exports=hn;var $8=SU.exports;const V8=R0($8);var ck=$8;FV.createRoot=ck.createRoot,FV.hydrateRoot=ck.hydrateRoot;var Nw={},Dw={},H0={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultConfig=t.defaultApiConfig=t.defaultReadConfig=t.questionSet=t.guessTheAnswer=t.attempted=t.completed=t.blackList=void 0,t.blackList=["http://adlnet.gov/expapi/verbs/attended","http://adlnet.gov/expapi/verbs/attempted","http://adlnet.gov/expapi/verbs/interacted","http://adlnet.gov/expapi/verbs/imported","http://adlnet.gov/expapi/verbs/created"],t.completed=["http://adlnet.gov/expapi/verbs/completed","http://adlnet.gov/expapi/verbs/answered","http://activitystrea.ms/schema/1.0/consume","http://adlnet.gov/expapi/verbs/passed","http://adlnet.gov/expapi/verbs/mastered"],t.attempted="http://adlnet.gov/expapi/verbs/attempted",t.guessTheAnswer="GuessTheAnswer",t.questionSet="QuestionSet",t.defaultReadConfig={apiUrl:"",getImagePrefix:function(){return""},getImageSvgPrefix:function(){return""},courses:{loading:!1},fetchCourses:function(){return Promise.reject()},userGroup:{loading:!1},fetchChallenges:function(){return Promise.reject()},challenges:{loading:!1},fetchUserGroup:function(){return Promise.reject()},userGroups:{loading:!1},fetchUserGroups:function(){return Promise.reject()},registerableGroups:{loading:!1},fetchRegisterableGroups:function(){return Promise.reject()},course:{loading:!1},fetchCourse:function(e){return Promise.reject()},program:{loading:!1},fetchProgram:function(e){return Promise.reject()},login:function(e){return Promise.reject()},logout:function(){return Promise.reject()},settings:{loading:!1,value:{}},fetchSettings:function(){return Promise.reject()},config:{loading:!1,value:{}},fetchConfig:function(){return Promise.reject()},uniqueTags:{loading:!1,list:[]},fetchTags:function(){return Promise.reject()},categoryTree:{loading:!1,list:[]},fetchCategories:function(){return Promise.reject()},user:{loading:!1},register:function(){return Promise.reject({success:!1,message:"register method not implemented"})},forgot:function(e){return Promise.reject()},reset:function(e){return Promise.reject()},emailVerify:function(e,a){return Promise.reject()},initAccountDelete:function(){return Promise.reject()},confirmAccountDelete:function(){return Promise.reject()},addToCart:function(e,a){return Promise.reject()},addMissingProducts:function(e){return Promise.reject()},removeFromCart:function(e){return Promise.reject(e)},fetchCart:function(){return Promise.reject()},resetCart:function(){return Promise.reject()},cart:{loading:!1,value:{total:0,subtotal:0,tax:0,items:[],coupon:null,total_with_tax:0}},payWithStripe:function(e,a){return Promise.reject(e)},payWithP24:function(e,a,n){return Promise.reject()},fetchProgress:function(){return Promise.reject()},fetchPaginatedProgress:function(){return Promise.reject()},paginatedProgress:{loading:!1},fetchMyAuthoredCourses:function(){return Promise.reject()},fetchCourseProgress:function(e){return Promise.reject()},courseProgressDetails:{loading:!1,byId:{}},progress:{loading:!1,value:[]},myAuthoredCourses:{loading:!1},sendProgress:function(e,a){return Promise.reject()},h5pProgress:function(e,a,n){return Promise.reject()},tutors:{loading:!1,list:[]},fetchTutors:function(){return Promise.reject()},tutor:{loading:!1},fetchTutor:function(e){return Promise.reject(e)},orders:{loading:!1},fetchOrders:function(e){return Promise.reject()},payments:{loading:!1},certificates:{loading:!1},fetchCertificates:function(e){return Promise.reject()},fetchCertificate:function(e){return Promise.reject(e)},generateCertificate:function(e){return Promise.reject(e)},getProductInfo:function(e){return Promise.reject(e)},pages:{loading:!1},mattermostChannels:{loading:!1,value:{server:"",teams:[]}},fetchMattermostChannels:function(){return Promise.reject()},fetchPages:function(){return Promise.reject()},page:{loading:!1},fetchPage:function(e){return Promise.reject()},fetchPayments:function(){return Promise.reject()},fetchProfile:function(){return Promise.reject()},updateProfile:function(e){return Promise.reject(e)},updateAvatar:function(e){return Promise.reject(e)},topicPing:function(e){return Promise.reject(e)},topicIsFinished:function(e){return!1},courseProgress:function(e){return 0},getNextPrevTopic:function(e,a){return null},socialAuthorize:function(e){return Promise.reject()},notifications:{loading:!1},fetchNotifications:function(e){return Promise.reject()},readAllNotifications:function(){return Promise.reject()},readNotify:function(e){return Promise.reject()},h5p:{loading:!1},fetchH5P:function(e){return Promise.reject()},getRefreshedToken:function(){return Promise.reject()},fetchConsultations:function(){return Promise.reject()},fetchConsultation:function(e){return Promise.reject()},fetchUserConsultations:function(){return Promise.reject()},consultation:{loading:!1},consultations:{loading:!1},userConsultations:{loading:!1},userWebinars:{loading:!1},fetchUserWebinars:function(){return Promise.reject()},fetchWebinar:function(e){return Promise.reject()},fetchProducts:function(e){return Promise.reject()},fetchProduct:function(e){return Promise.reject()},fields:{loading:!1,list:[]},fetchFields:function(e){return Promise.reject()},stationaryEvents:{loading:!1},stationaryEvent:{loading:!1},tutorConsultations:{loading:!1},fetchStationaryEvents:function(e){return Promise.reject()},fetchStationaryEvent:function(e){return Promise.reject()},bookConsultationTerm:function(e,a){return Promise.reject()},fetchWebinars:function(e){return Promise.reject()},fetchTutorConsultations:function(){return Promise.reject()},approveConsultationTerm:function(e){return Promise.reject()},rejectConsultationTerm:function(e){return Promise.reject()},generateConsultationJitsy:function(e){return Promise.reject(e)},generateWebinarJitsy:function(e){return Promise.reject(e)},webinars:{loading:!1},webinar:{loading:!1},events:{loading:!1},fetchEvents:function(e){return Promise.reject()},changePassword:function(){return Promise.reject()},realizeVoucher:function(){return Promise.reject()},removeVoucher:function(){return Promise.reject()},createTeamsChat:function(){return Promise.reject()},products:{loading:!1},product:{loading:!1},fetchQuestionnaires:function(e,a){return Promise.reject()},fetchQuestionnaire:function(e,a,n){return Promise.reject()},fetchQuestionnairesAnswers:function(e,a,n,r){return Promise.reject()},fetchQuestionnaireStars:function(e,a,n){return Promise.reject()},fetchQuestionnaireStarsByModel:function(e,a){return Promise.reject()},sendQuestionnaireAnswer:function(e,a,n,r){return Promise.reject()},fetchUserStationaryEvents:function(){return Promise.reject()},userStationaryEvents:{loading:!1},fetchOrderInvoice:function(e){return Promise.reject(e)},changeConsultationTerm:function(e,a){return Promise.reject()},tasks:{loading:!1},fetchTasks:function(e){return Promise.reject()},courseAccess:{loading:!1},myCourses:{loading:!1,value:[]},fetchMyCourses:function(){return Promise.reject()},fetchCourseAccess:function(e){return Promise.reject()},addCourseAccess:function(e){return Promise.reject()},deleteCourseAccess:function(e){return Promise.reject()},task:{loading:!1},challenge:{loading:!1},attendances:{loading:!1},consultationAccessEnquiry:{loading:!1},fetchConsultationAccessEnquiry:function(e){return Promise.reject()},consultationAccess:{loading:!1},fetchConsultationAccess:function(e){return Promise.reject()},addConsultationAccess:function(e){return Promise.reject()},deleteConsultationAccess:function(e){return Promise.reject()},updateConsultationAccess:function(e,a){return Promise.reject()},fetchTask:function(e){return Promise.reject()},fetchChallenge:function(e){return Promise.reject()},fetchAttendances:function(e){return Promise.reject()},deleteTask:function(e){return Promise.reject()},addTask:function(e){return Promise.reject()},updateTask:function(e,a){return Promise.reject()},updateTaskStatus:function(e,a){return Promise.reject(e)},createTaskNote:function(e,a){return Promise.reject(e)},updateTaskNote:function(e,a,n){return Promise.reject(e)},deleteTaskNote:function(e){return Promise.reject(e)},schedule:{loading:!1,list:[]},scheduleTutors:{loading:!1,list:[]},fetchSchedule:function(){return Promise.reject()},fetchScheduleTutors:function(){return Promise.reject()},bookmarkNotes:{loading:!1},fetchBookmarkNotes:function(e){return Promise.reject()},createBookmarkNote:function(e){return Promise.reject()},updateBookmarkNote:function(e,a){return Promise.reject(e)},deleteBookmarkNote:function(e){return Promise.reject(e)},subjects:{loading:!1},fetchExams:function(e){return Promise.reject()},exams:{loading:!1},fetchSubjects:function(e){return Promise.reject()},fetchSemesters:function(e){return Promise.reject()},semesters:{loading:!1,list:[]},academicYears:{loading:!1,list:[]},fetchAcademicYears:function(e){return Promise.reject()}},t.defaultApiConfig={apiUrl:"",myCourses:{loading:!1,value:[]},fetchMyCourses:function(){return Promise.reject()},getImagePrefix:function(){return""},getImageSvgPrefix:function(){return""},courses:{loading:!1},fetchCourses:function(){return Promise.reject()},userGroup:{loading:!1},fetchChallenges:function(){return Promise.reject()},challenges:{loading:!1},fetchUserGroup:function(){return Promise.reject()},userGroups:{loading:!1},fetchUserGroups:function(){return Promise.reject()},registerableGroups:{loading:!1},fetchRegisterableGroups:function(){return Promise.reject()},course:{loading:!1},fetchCourse:function(e){return Promise.reject()},program:{loading:!1},fetchProgram:function(e){return Promise.reject()},login:function(e){return Promise.reject()},logout:function(){return Promise.reject()},settings:{loading:!1,value:[]},fetchSettings:function(){return Promise.reject()},config:{loading:!1,value:{escola_auth:{additional_fields:[],additional_fields_required:[]}}},fetchConfig:function(){return Promise.reject()},uniqueTags:{loading:!1,list:[]},fetchTags:function(){return Promise.reject()},categoryTree:{loading:!1,list:[]},fetchCategories:function(){return Promise.reject()},user:{loading:!1},register:function(){return Promise.reject({success:!1,message:"register method not implemented"})},forgot:function(e){return Promise.reject()},reset:function(e){return Promise.reject()},emailVerify:function(e,a){return Promise.reject()},initAccountDelete:function(){return Promise.reject()},confirmAccountDelete:function(){return Promise.reject()},addToCart:function(e,a){return Promise.reject()},addMissingProducts:function(e){return Promise.reject()},removeFromCart:function(e){return Promise.reject(e)},fetchCart:function(){return Promise.reject()},resetCart:function(){return Promise.reject()},cart:{loading:!1,value:{total:0,subtotal:0,tax:0,items:[],coupon:null,total_with_tax:0}},payWithStripe:function(e,a){return Promise.reject(e)},payWithP24:function(e,a,n){return Promise.reject()},fetchProgress:function(){return Promise.reject()},fetchPaginatedProgress:function(){return Promise.reject()},paginatedProgress:{loading:!1},fetchMyAuthoredCourses:function(){return Promise.reject()},fetchCourseProgress:function(e){return Promise.reject()},courseProgressDetails:{loading:!1,byId:{}},progress:{loading:!1,value:[]},myAuthoredCourses:{loading:!1},sendProgress:function(e,a){return Promise.reject()},h5pProgress:function(e,a,n){return Promise.reject()},tutors:{loading:!1,list:[]},fetchTutors:function(){return Promise.reject()},tutor:{loading:!1},fetchTutor:function(e){return Promise.reject(e)},orders:{loading:!1},fetchOrders:function(e){return Promise.reject()},payments:{loading:!1},certificates:{loading:!1},fetchCertificates:function(e){return Promise.reject()},fetchCertificate:function(e){return Promise.reject(e)},generateCertificate:function(e){return Promise.reject(e)},getProductInfo:function(e){return Promise.reject(e)},pages:{loading:!1},mattermostChannels:{loading:!1,value:{server:"",teams:[]}},fetchMattermostChannels:function(){return Promise.reject()},fetchPages:function(){return Promise.reject()},page:{loading:!1},fetchPage:function(e){return Promise.reject()},fetchPayments:function(){return Promise.reject()},fetchProfile:function(){return Promise.reject()},updateProfile:function(e){return Promise.reject(e)},updateAvatar:function(e){return Promise.reject(e)},topicPing:function(e){return Promise.reject(e)},topicIsFinished:function(e){return!1},courseProgress:function(e){return 0},getNextPrevTopic:function(e,a){return null},getRefreshedToken:function(){return Promise.reject()},socialAuthorize:function(e){return Promise.reject()},notifications:{loading:!1},fetchNotifications:function(e){return Promise.reject()},readNotify:function(e){return Promise.reject()},readAllNotifications:function(){return Promise.reject()},h5p:{loading:!1},fetchH5P:function(e){return Promise.reject()},fetchConsultations:function(){return Promise.reject()},fetchConsultation:function(e){return Promise.reject()},fetchUserConsultations:function(){return Promise.reject()},consultation:{loading:!1},consultations:{loading:!1},fields:{loading:!1,list:[]},userConsultations:{loading:!1},tutorConsultations:{loading:!1},userWebinars:{loading:!1},fetchUserWebinars:function(){return Promise.reject()},fetchWebinar:function(e){return Promise.reject()},fetchProducts:function(e){return Promise.reject()},fetchProduct:function(e){return Promise.reject()},fetchFields:function(e){return Promise.reject()},stationaryEvents:{loading:!1},stationaryEvent:{loading:!1},fetchStationaryEvents:function(e){return Promise.reject()},fetchStationaryEvent:function(e){return Promise.reject()},bookConsultationTerm:function(e,a){return Promise.reject()},fetchWebinars:function(e){return Promise.reject()},webinars:{loading:!1},webinar:{loading:!1},fetchTutorConsultations:function(){return Promise.reject()},approveConsultationTerm:function(e){return Promise.reject()},rejectConsultationTerm:function(e){return Promise.reject()},generateConsultationJitsy:function(e){return Promise.reject(e)},generateWebinarJitsy:function(e){return Promise.reject(e)},events:{loading:!1},fetchEvents:function(e){return Promise.reject()},changePassword:function(){return Promise.reject()},realizeVoucher:function(){return Promise.reject()},removeVoucher:function(){return Promise.reject()},createTeamsChat:function(){return Promise.reject()},products:{loading:!1},product:{loading:!1},fetchQuestionnaires:function(e,a){return Promise.reject()},fetchQuestionnaire:function(e,a,n){return Promise.reject()},fetchQuestionnairesAnswers:function(e,a,n,r){return Promise.reject()},sendQuestionnaireAnswer:function(e,a,n,r){return Promise.reject()},fetchQuestionnaireStars:function(e,a,n){return Promise.reject()},fetchQuestionnaireStarsByModel:function(e,a){return Promise.reject()},fetchUserStationaryEvents:function(){return Promise.reject()},userStationaryEvents:{loading:!1},fetchOrderInvoice:function(e){return Promise.reject(e)},changeConsultationTerm:function(e,a){return Promise.reject()},tasks:{loading:!1},fetchTasks:function(e){return Promise.reject()},courseAccess:{loading:!1},fetchCourseAccess:function(e){return Promise.reject()},deleteCourseAccess:function(e){return Promise.reject()},addCourseAccess:function(e){return Promise.reject()},consultationAccessEnquiry:{loading:!1},fetchConsultationAccessEnquiry:function(e){return Promise.reject()},consultationAccess:{loading:!1},fetchConsultationAccess:function(e){return Promise.reject()},deleteConsultationAccess:function(e){return Promise.reject()},addConsultationAccess:function(e){return Promise.reject()},updateConsultationAccess:function(e,a){return Promise.reject()},task:{loading:!1},challenge:{loading:!1},attendances:{loading:!1},fetchTask:function(e){return Promise.reject(e)},fetchChallenge:function(e){return Promise.reject(e)},fetchAttendances:function(e){return Promise.reject(e)},deleteTask:function(e){return Promise.reject()},addTask:function(e){return Promise.reject()},updateTask:function(e,a){return Promise.reject(e)},updateTaskStatus:function(e,a){return Promise.reject(e)},createTaskNote:function(e,a){return Promise.reject(e)},updateTaskNote:function(e,a,n){return Promise.reject(e)},deleteTaskNote:function(e){return Promise.reject(e)},schedule:{loading:!1,list:[]},scheduleTutors:{loading:!1,list:[]},fetchSchedule:function(){return Promise.reject()},fetchScheduleTutors:function(){return Promise.reject()},bookmarkNotes:{loading:!1},fetchBookmarkNotes:function(e){return Promise.reject()},createBookmarkNote:function(e){return Promise.reject()},updateBookmarkNote:function(e,a){return Promise.reject(e)},deleteBookmarkNote:function(e){return Promise.reject(e)},subjects:{loading:!1},fetchSubjects:function(){return Promise.reject()},fetchExams:function(){return Promise.reject()},exams:{loading:!1},fetchSemesters:function(){return Promise.reject()},semesters:{loading:!1,list:[]},fetchAcademicYears:function(){return Promise.reject()},academicYears:{loading:!1,list:[]}},t.defaultConfig=Object.assign({},t.defaultReadConfig,t.defaultApiConfig)})(H0);var f0={},v0=b&&b.__assign||function(){return v0=Object.assign||function(t){for(var e,a=1,n=arguments.length;a0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"u"||!g4?q2:g4(Uint8Array),O8={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?q2:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?q2:ArrayBuffer,"%ArrayIteratorPrototype%":Il&&g4?g4([][Symbol.iterator]()):q2,"%AsyncFromSyncIteratorPrototype%":q2,"%AsyncFunction%":a6,"%AsyncGenerator%":a6,"%AsyncGeneratorFunction%":a6,"%AsyncIteratorPrototype%":a6,"%Atomics%":typeof Atomics>"u"?q2:Atomics,"%BigInt%":typeof BigInt>"u"?q2:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?q2:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?q2:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?q2:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":An1,"%eval%":eval,"%EvalError%":kn1,"%Float32Array%":typeof Float32Array>"u"?q2:Float32Array,"%Float64Array%":typeof Float64Array>"u"?q2:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?q2:FinalizationRegistry,"%Function%":kq,"%GeneratorFunction%":a6,"%Int8Array%":typeof Int8Array>"u"?q2:Int8Array,"%Int16Array%":typeof Int16Array>"u"?q2:Int16Array,"%Int32Array%":typeof Int32Array>"u"?q2:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Il&&g4?g4(g4([][Symbol.iterator]())):q2,"%JSON%":typeof JSON=="object"?JSON:q2,"%Map%":typeof Map>"u"?q2:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Il||!g4?q2:g4(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?q2:Promise,"%Proxy%":typeof Proxy>"u"?q2:Proxy,"%RangeError%":En1,"%ReferenceError%":Pn1,"%Reflect%":typeof Reflect>"u"?q2:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?q2:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Il||!g4?q2:g4(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?q2:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Il&&g4?g4(""[Symbol.iterator]()):q2,"%Symbol%":Il?Symbol:q2,"%SyntaxError%":Z6,"%ThrowTypeError%":Dn1,"%TypedArray%":jn1,"%TypeError%":A6,"%Uint8Array%":typeof Uint8Array>"u"?q2:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?q2:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?q2:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?q2:Uint32Array,"%URIError%":Nn1,"%WeakMap%":typeof WeakMap>"u"?q2:WeakMap,"%WeakRef%":typeof WeakRef>"u"?q2:WeakRef,"%WeakSet%":typeof WeakSet>"u"?q2:WeakSet};if(g4)try{null.error}catch(t){var In1=g4(g4(t));O8["%Error.prototype%"]=In1}var Fn1=function t(e){var a;if(e==="%AsyncFunction%")a=jw("async function () {}");else if(e==="%GeneratorFunction%")a=jw("function* () {}");else if(e==="%AsyncGeneratorFunction%")a=jw("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(a=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");r&&g4&&(a=g4(r.prototype))}return O8[e]=a,a},dk={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},gh=QB,sg=On1,$n1=gh.call(Function.call,Array.prototype.concat),Un1=gh.call(Function.apply,Array.prototype.splice),fk=gh.call(Function.call,String.prototype.replace),hg=gh.call(Function.call,String.prototype.slice),Wn1=gh.call(Function.call,RegExp.prototype.exec),qn1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gn1=/\\(\\)?/g,Kn1=function(e){var a=hg(e,0,1),n=hg(e,-1);if(a==="%"&&n!=="%")throw new Z6("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&a!=="%")throw new Z6("invalid intrinsic syntax, expected opening `%`");var r=[];return fk(e,qn1,function(o,l,c,h){r[r.length]=c?fk(h,Gn1,"$1"):l||o}),r},Yn1=function(e,a){var n=e,r;if(sg(dk,n)&&(r=dk[n],n="%"+r[0]+"%"),sg(O8,n)){var o=O8[n];if(o===a6&&(o=Fn1(n)),typeof o>"u"&&!a)throw new A6("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Z6("intrinsic "+e+" does not exist!")},Oc=function(e,a){if(typeof e!="string"||e.length===0)throw new A6("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new A6('"allowMissing" argument must be a boolean');if(Wn1(/^%?[^%]*%?$/,e)===null)throw new Z6("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Kn1(e),r=n.length>0?n[0]:"",o=Yn1("%"+r+"%",a),l=o.name,c=o.value,h=!1,s=o.alias;s&&(r=s[0],Un1(n,$n1([0,1],s)));for(var u=1,v=!0;u=n.length){var g=T8(c,f);v=!!g,v&&"get"in g&&!("originalValue"in g.get)?c=g.get:c=c[f]}else v=sg(c,f),c=c[f];v&&!h&&(O8[l]=c)}}return c},Eq={exports:{}},Fw,gk;function XB(){if(gk)return Fw;gk=1;var t=Oc,e=t("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Fw=e,Fw}var Zn1=Oc,uf=Zn1("%Object.getOwnPropertyDescriptor%",!0);if(uf)try{uf([],"length")}catch{uf=null}var Pq=uf,pk=XB(),Qn1=Aq,Fl=fh,mk=Pq,Xn1=function(e,a,n){if(!e||typeof e!="object"&&typeof e!="function")throw new Fl("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new Fl("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Fl("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Fl("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Fl("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Fl("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,h=!!mk&&mk(e,a);if(pk)pk(e,a,{configurable:l===null&&h?h.configurable:!l,enumerable:r===null&&h?h.enumerable:!r,value:n,writable:o===null&&h?h.writable:!o});else if(c||!r&&!o&&!l)e[a]=n;else throw new Qn1("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},EC=XB(),Nq=function(){return!!EC};Nq.hasArrayLengthDefineBug=function(){if(!EC)return null;try{return EC([],"length",{value:1}).length!==1}catch{return!0}};var Jn1=Nq,tr1=Oc,zk=Xn1,er1=Jn1(),Mk=Pq,Hk=fh,ar1=tr1("%Math.floor%"),nr1=function(e,a){if(typeof e!="function")throw new Hk("`fn` is not a function");if(typeof a!="number"||a<0||a>4294967295||ar1(a)!==a)throw new Hk("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,o=!0;if("length"in e&&Mk){var l=Mk(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(o=!1)}return(r||o||!n)&&(er1?zk(e,"length",a,!0,!0):zk(e,"length",a)),e};(function(t){var e=QB,a=Oc,n=nr1,r=fh,o=a("%Function.prototype.apply%"),l=a("%Function.prototype.call%"),c=a("%Reflect.apply%",!0)||e.call(l,o),h=XB(),s=a("%Math.max%");t.exports=function(f){if(typeof f!="function")throw new r("a function is required");var d=c(e,l,arguments);return n(d,1+s(0,f.length-(arguments.length-1)),!0)};var u=function(){return c(e,o,arguments)};h?h(t.exports,"apply",{value:u}):t.exports.apply=u})(Eq);var rr1=Eq.exports,Dq=Oc,Rq=rr1,ir1=Rq(Dq("String.prototype.indexOf")),or1=function(e,a){var n=Dq(e,!!a);return typeof n=="function"&&ir1(e,".prototype.")>-1?Rq(n):n};const lr1={},cr1=Object.freeze(Object.defineProperty({__proto__:null,default:lr1},Symbol.toStringTag,{value:"Module"})),sr1=se(cr1);var JB=typeof Map=="function"&&Map.prototype,$w=Object.getOwnPropertyDescriptor&&JB?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ug=JB&&$w&&typeof $w.get=="function"?$w.get:null,wk=JB&&Map.prototype.forEach,t_=typeof Set=="function"&&Set.prototype,Uw=Object.getOwnPropertyDescriptor&&t_?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,vg=t_&&Uw&&typeof Uw.get=="function"?Uw.get:null,yk=t_&&Set.prototype.forEach,hr1=typeof WeakMap=="function"&&WeakMap.prototype,R7=hr1?WeakMap.prototype.has:null,ur1=typeof WeakSet=="function"&&WeakSet.prototype,j7=ur1?WeakSet.prototype.has:null,vr1=typeof WeakRef=="function"&&WeakRef.prototype,xk=vr1?WeakRef.prototype.deref:null,dr1=Boolean.prototype.valueOf,fr1=Object.prototype.toString,gr1=Function.prototype.toString,pr1=String.prototype.match,e_=String.prototype.slice,D3=String.prototype.replace,mr1=String.prototype.toUpperCase,Vk=String.prototype.toLowerCase,jq=RegExp.prototype.test,Ck=Array.prototype.concat,ti=Array.prototype.join,zr1=Array.prototype.slice,bk=Math.floor,PC=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ww=Object.getOwnPropertySymbols,NC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Q6=typeof Symbol=="function"&&typeof Symbol.iterator=="object",J4=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Q6||!0)?Symbol.toStringTag:null,Iq=Object.prototype.propertyIsEnumerable,Lk=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Bk(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||jq.call(/e/,e))return e;var a=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-bk(-t):bk(t);if(n!==t){var r=String(n),o=e_.call(e,r.length+1);return D3.call(r,a,"$&_")+"."+D3.call(D3.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D3.call(e,a,"$&_")}var DC=sr1,_k=DC.custom,Sk=$q(_k)?_k:null,Mr1=function t(e,a,n,r){var o=a||{};if(V3(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V3(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=V3(o,"customInspect")?o.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V3(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V3(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Wq(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var h=String(e);return c?Bk(e,h):h}if(typeof e=="bigint"){var s=String(e)+"n";return c?Bk(e,s):s}var u=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof e=="object")return RC(e)?"[Array]":"[Object]";var v=Nr1(o,n);if(typeof r>"u")r=[];else if(Uq(r,e)>=0)return"[Circular]";function f(E,$,q){if($&&(r=zr1.call(r),r.push($)),q){var U={depth:o.depth};return V3(o,"quoteStyle")&&(U.quoteStyle=o.quoteStyle),t(E,U,n+1,r)}return t(E,o,n+1,r)}if(typeof e=="function"&&!Tk(e)){var d=Br1(e),M=Rv(e,f);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(M.length>0?" { "+ti.call(M,", ")+" }":"")}if($q(e)){var g=Q6?D3.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):NC.call(e);return typeof e=="object"&&!Q6?P9(g):g}if(kr1(e)){for(var H="<"+Vk.call(String(e.nodeName)),p=e.attributes||[],m=0;m",H}if(RC(e)){if(e.length===0)return"[]";var z=Rv(e,f);return v&&!Pr1(z)?"["+jC(z,v)+"]":"[ "+ti.call(z,", ")+" ]"}if(yr1(e)){var w=Rv(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!Iq.call(e,"cause")?"{ ["+String(e)+"] "+ti.call(Ck.call("[cause]: "+f(e.cause),w),", ")+" }":w.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ti.call(w,", ")+" }"}if(typeof e=="object"&&l){if(Sk&&typeof e[Sk]=="function"&&DC)return DC(e,{depth:u-n});if(l!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(_r1(e)){var x=[];return wk&&wk.call(e,function(E,$){x.push(f($,e,!0)+" => "+f(E,e))}),Ok("Map",ug.call(e),x,v)}if(Or1(e)){var y=[];return yk&&yk.call(e,function(E){y.push(f(E,e))}),Ok("Set",vg.call(e),y,v)}if(Sr1(e))return qw("WeakMap");if(Ar1(e))return qw("WeakSet");if(Tr1(e))return qw("WeakRef");if(Vr1(e))return P9(f(Number(e)));if(br1(e))return P9(f(PC.call(e)));if(Cr1(e))return P9(dr1.call(e));if(xr1(e))return P9(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===b)return"{ [object globalThis] }";if(!wr1(e)&&!Tk(e)){var V=Rv(e,f),C=Lk?Lk(e)===Object.prototype:e instanceof Object||e.constructor===Object,L=e instanceof Object?"":"null prototype",B=!C&&J4&&Object(e)===e&&J4 in e?e_.call(xo(e),8,-1):L?"Object":"",S=C||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",T=S+(B||L?"["+ti.call(Ck.call([],B||[],L||[]),": ")+"] ":"");return V.length===0?T+"{}":v?T+"{"+jC(V,v)+"}":T+"{ "+ti.call(V,", ")+" }"}return String(e)};function Fq(t,e,a){var n=(a.quoteStyle||e)==="double"?'"':"'";return n+t+n}function Hr1(t){return D3.call(String(t),/"/g,""")}function RC(t){return xo(t)==="[object Array]"&&(!J4||!(typeof t=="object"&&J4 in t))}function wr1(t){return xo(t)==="[object Date]"&&(!J4||!(typeof t=="object"&&J4 in t))}function Tk(t){return xo(t)==="[object RegExp]"&&(!J4||!(typeof t=="object"&&J4 in t))}function yr1(t){return xo(t)==="[object Error]"&&(!J4||!(typeof t=="object"&&J4 in t))}function xr1(t){return xo(t)==="[object String]"&&(!J4||!(typeof t=="object"&&J4 in t))}function Vr1(t){return xo(t)==="[object Number]"&&(!J4||!(typeof t=="object"&&J4 in t))}function Cr1(t){return xo(t)==="[object Boolean]"&&(!J4||!(typeof t=="object"&&J4 in t))}function $q(t){if(Q6)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!NC)return!1;try{return NC.call(t),!0}catch{}return!1}function br1(t){if(!t||typeof t!="object"||!PC)return!1;try{return PC.call(t),!0}catch{}return!1}var Lr1=Object.prototype.hasOwnProperty||function(t){return t in this};function V3(t,e){return Lr1.call(t,e)}function xo(t){return fr1.call(t)}function Br1(t){if(t.name)return t.name;var e=pr1.call(gr1.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Uq(t,e){if(t.indexOf)return t.indexOf(e);for(var a=0,n=t.length;ae.maxStringLength){var a=t.length-e.maxStringLength,n="... "+a+" more character"+(a>1?"s":"");return Wq(e_.call(t,0,e.maxStringLength),e)+n}var r=D3.call(D3.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Er1);return Fq(r,"single",e)}function Er1(t){var e=t.charCodeAt(0),a={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return a?"\\"+a:"\\x"+(e<16?"0":"")+mr1.call(e.toString(16))}function P9(t){return"Object("+t+")"}function qw(t){return t+" { ? }"}function Ok(t,e,a,n){var r=n?jC(a,n):ti.call(a,", ");return t+" ("+e+") {"+r+"}"}function Pr1(t){for(var e=0;e=0)return!1;return!0}function Nr1(t,e){var a;if(t.indent===" ")a=" ";else if(typeof t.indent=="number"&&t.indent>0)a=ti.call(Array(t.indent+1)," ");else return null;return{base:a,prev:ti.call(Array(e+1),a)}}function jC(t,e){if(t.length===0)return"";var a=` `+e.prev+e.base;return a+ti.call(t,","+a)+` -`+e.prev}function Rv(t,e){var a=RC(t),n=[];if(a){n.length=t.length;for(var r=0;r1;){var a=e.pop(),n=a.obj[a.prop];if(p8(n)){for(var r=[],o=0;o=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||o===Xr1.RFC1738&&(s===40||s===41)){c+=l.charAt(h);continue}if(s<128){c=c+Gr[s];continue}if(s<2048){c=c+(Gr[192|s>>6]+Gr[128|s&63]);continue}if(s<55296||s>=57344){c=c+(Gr[224|s>>12]+Gr[128|s>>6&63]+Gr[128|s&63]);continue}h+=1,s=65536+((s&1023)<<10|l.charCodeAt(h)&1023),c+=Gr[240|s>>18]+Gr[128|s>>12&63]+Gr[128|s>>6&63]+Gr[128|s&63]}return c},ri1=function(e){for(var a=[{obj:{o:e},prop:"o"}],n=[],r=0;r"u"&&(x=0)}if(typeof u=="function"?z=u(a,z):z instanceof Date?z=d(z):n==="comma"&&Jr(z)&&(z=vf.maybeMap(z,function(R){return R instanceof Date?d(R):R})),z===null){if(l)return s&&!H?s(a,a4.encoder,p,"key",M):a;z=""}if(vi1(z)||vf.isBuffer(z)){if(s){var C=H?a:s(a,a4.encoder,p,"key",M);return[g(C)+"="+g(s(z,a4.encoder,p,"value",M))]}return[g(a)+"="+g(String(z))]}var L=[];if(typeof z>"u")return L;var B;if(n==="comma"&&Jr(z))H&&s&&(z=vf.maybeMap(z,s)),B=[{value:z.length>0?z.join(",")||null:void 0}];else if(Jr(u))B=u;else{var S=Object.keys(z);B=v?S.sort(v):S}var T=h?a.replace(/\./g,"%2E"):a,E=r&&Jr(z)&&z.length===1?T+"[]":T;if(o&&Jr(z)&&z.length===0)return E+"[]";for(var $=0;$"u"?e.encodeDotInKeys===!0?!0:a4.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:a4.addQueryPrefix,allowDots:c,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:a4.allowEmptyArrays,arrayFormat:l,charset:a,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:a4.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?a4.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:a4.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:a4.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:a4.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:a4.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:a4.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:a4.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:a4.strictNullHandling}},gi1=function(t,e){var a=t,n=fi1(e),r,o;typeof n.filter=="function"?(o=n.filter,a=o("",a)):Jr(n.filter)&&(o=n.filter,r=o);var l=[];if(typeof a!="object"||a===null)return"";var c=Zq[n.arrayFormat],h=c==="comma"&&n.commaRoundTrip;r||(r=Object.keys(a)),n.sort&&r.sort(n.sort);for(var s=Yq(),u=0;u0?d+f:""},X6=Kq,IC=Object.prototype.hasOwnProperty,pi1=Array.isArray,Se={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:X6.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},mi1=function(t){return t.replace(/&#(\d+);/g,function(e,a){return String.fromCharCode(parseInt(a,10))})},Xq=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},zi1="utf8=%26%2310003%3B",Mi1="utf8=%E2%9C%93",Hi1=function(e,a){var n={__proto__:null},r=a.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=a.parameterLimit===1/0?void 0:a.parameterLimit,l=r.split(a.delimiter,o),c=-1,h,s=a.charset;if(a.charsetSentinel)for(h=0;h-1&&(M=pi1(M)?[M]:M);var g=IC.call(n,d);g&&a.duplicates==="combine"?n[d]=X6.combine(n[d],M):(!g||a.duplicates==="last")&&(n[d]=M)}return n},wi1=function(t,e,a,n){for(var r=n?e:Xq(e,a),o=t.length-1;o>=0;--o){var l,c=t[o];if(c==="[]"&&a.parseArrays)l=a.allowEmptyArrays&&r===""?[]:[].concat(r);else{l=a.plainObjects?Object.create(null):{};var h=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,s=a.decodeDotInKeys?h.replace(/%2E/g,"."):h,u=parseInt(s,10);!a.parseArrays&&s===""?l={0:r}:!isNaN(u)&&c!==s&&String(u)===s&&u>=0&&a.parseArrays&&u<=a.arrayLimit?(l=[],l[u]=r):s!=="__proto__"&&(l[s]=r)}r=l}return r},yi1=function(e,a,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/,c=/(\[[^[\]]*])/g,h=n.depth>0&&l.exec(o),s=h?o.slice(0,h.index):o,u=[];if(s){if(!n.plainObjects&&IC.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var v=0;n.depth>0&&(h=c.exec(o))!==null&&v"u"?Se.charset:e.charset,n=typeof e.duplicates>"u"?Se.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var r=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:Se.allowDots:!!e.allowDots;return{allowDots:r,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Se.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Se.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Se.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Se.arrayLimit,charset:a,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Se.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Se.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Se.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Se.decoder,delimiter:typeof e.delimiter=="string"||X6.isRegExp(e.delimiter)?e.delimiter:Se.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Se.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Se.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Se.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Se.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Se.strictNullHandling}},Vi1=function(t,e){var a=xi1(e);if(t===""||t===null||typeof t>"u")return a.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?Hi1(t,a):t,r=a.plainObjects?Object.create(null):{},o=Object.keys(n),l=0;l-1};function kc(t){if(typeof t!="string"&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||t==="")throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function r_(t){return typeof t!="string"&&(t=String(t)),t}function i_(t){var e={next:function(){var a=t.shift();return{done:a===void 0,value:a}}};return ca.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c4(t){this.map={},t instanceof c4?t.forEach(function(e,a){this.append(a,e)},this):Array.isArray(t)?t.forEach(function(e){if(e.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}c4.prototype.append=function(t,e){t=kc(t),e=r_(e);var a=this.map[t];this.map[t]=a?a+", "+e:e};c4.prototype.delete=function(t){delete this.map[kc(t)]};c4.prototype.get=function(t){return t=kc(t),this.has(t)?this.map[t]:null};c4.prototype.has=function(t){return this.map.hasOwnProperty(kc(t))};c4.prototype.set=function(t,e){this.map[kc(t)]=r_(e)};c4.prototype.forEach=function(t,e){for(var a in this.map)this.map.hasOwnProperty(a)&&t.call(e,this.map[a],a,this)};c4.prototype.keys=function(){var t=[];return this.forEach(function(e,a){t.push(a)}),i_(t)};c4.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),i_(t)};c4.prototype.entries=function(){var t=[];return this.forEach(function(e,a){t.push([a,e])}),i_(t)};ca.iterable&&(c4.prototype[Symbol.iterator]=c4.prototype.entries);function Zw(t){if(!t._noBody){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}}function tG(t){return new Promise(function(e,a){t.onload=function(){e(t.result)},t.onerror=function(){a(t.error)}})}function Ti1(t){var e=new FileReader,a=tG(e);return e.readAsArrayBuffer(t),a}function Oi1(t){var e=new FileReader,a=tG(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),r=n?n[1]:"utf-8";return e.readAsText(t,r),a}function Ai1(t){for(var e=new Uint8Array(t),a=new Array(e.length),n=0;n-1?e:t}function U8(t,e){if(!(this instanceof U8))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var a=e.body;if(t instanceof U8){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c4(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,!a&&t._bodyInit!=null&&(a=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new c4(e.headers)),this.method=Ei1(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in S4){var o=new AbortController;return o.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&a)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+new Date().getTime());else{var r=/\?/;this.url+=(r.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U8.prototype.clone=function(){return new U8(this,{body:this._bodyInit})};function Pi1(t){var e=new FormData;return t.trim().split("&").forEach(function(a){if(a){var n=a.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function Ni1(t){var e=new c4,a=t.replace(/\r?\n[\t ]+/g," ");return a.split("\r").map(function(n){return n.indexOf(` +`+e.prev}function Rv(t,e){var a=RC(t),n=[];if(a){n.length=t.length;for(var r=0;r1;){var a=e.pop(),n=a.obj[a.prop];if(p8(n)){for(var r=[],o=0;o=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||o===Xr1.RFC1738&&(s===40||s===41)){c+=l.charAt(h);continue}if(s<128){c=c+Gr[s];continue}if(s<2048){c=c+(Gr[192|s>>6]+Gr[128|s&63]);continue}if(s<55296||s>=57344){c=c+(Gr[224|s>>12]+Gr[128|s>>6&63]+Gr[128|s&63]);continue}h+=1,s=65536+((s&1023)<<10|l.charCodeAt(h)&1023),c+=Gr[240|s>>18]+Gr[128|s>>12&63]+Gr[128|s>>6&63]+Gr[128|s&63]}return c},ri1=function(e){for(var a=[{obj:{o:e},prop:"o"}],n=[],r=0;r"u"&&(x=0)}if(typeof u=="function"?z=u(a,z):z instanceof Date?z=d(z):n==="comma"&&Jr(z)&&(z=vf.maybeMap(z,function(R){return R instanceof Date?d(R):R})),z===null){if(l)return s&&!H?s(a,a4.encoder,p,"key",M):a;z=""}if(vi1(z)||vf.isBuffer(z)){if(s){var C=H?a:s(a,a4.encoder,p,"key",M);return[g(C)+"="+g(s(z,a4.encoder,p,"value",M))]}return[g(a)+"="+g(String(z))]}var L=[];if(typeof z>"u")return L;var B;if(n==="comma"&&Jr(z))H&&s&&(z=vf.maybeMap(z,s)),B=[{value:z.length>0?z.join(",")||null:void 0}];else if(Jr(u))B=u;else{var S=Object.keys(z);B=v?S.sort(v):S}var T=h?a.replace(/\./g,"%2E"):a,E=r&&Jr(z)&&z.length===1?T+"[]":T;if(o&&Jr(z)&&z.length===0)return E+"[]";for(var $=0;$"u"?e.encodeDotInKeys===!0?!0:a4.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:a4.addQueryPrefix,allowDots:c,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:a4.allowEmptyArrays,arrayFormat:l,charset:a,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:a4.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?a4.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:a4.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:a4.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:a4.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:a4.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:a4.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:a4.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:a4.strictNullHandling}},gi1=function(t,e){var a=t,n=fi1(e),r,o;typeof n.filter=="function"?(o=n.filter,a=o("",a)):Jr(n.filter)&&(o=n.filter,r=o);var l=[];if(typeof a!="object"||a===null)return"";var c=Zq[n.arrayFormat],h=c==="comma"&&n.commaRoundTrip;r||(r=Object.keys(a)),n.sort&&r.sort(n.sort);for(var s=Yq(),u=0;u0?d+f:""},X6=Kq,IC=Object.prototype.hasOwnProperty,pi1=Array.isArray,Se={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:X6.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},mi1=function(t){return t.replace(/&#(\d+);/g,function(e,a){return String.fromCharCode(parseInt(a,10))})},Xq=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},zi1="utf8=%26%2310003%3B",Mi1="utf8=%E2%9C%93",Hi1=function(e,a){var n={__proto__:null},r=a.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=a.parameterLimit===1/0?void 0:a.parameterLimit,l=r.split(a.delimiter,o),c=-1,h,s=a.charset;if(a.charsetSentinel)for(h=0;h-1&&(M=pi1(M)?[M]:M);var g=IC.call(n,d);g&&a.duplicates==="combine"?n[d]=X6.combine(n[d],M):(!g||a.duplicates==="last")&&(n[d]=M)}return n},wi1=function(t,e,a,n){for(var r=n?e:Xq(e,a),o=t.length-1;o>=0;--o){var l,c=t[o];if(c==="[]"&&a.parseArrays)l=a.allowEmptyArrays&&r===""?[]:[].concat(r);else{l=a.plainObjects?Object.create(null):{};var h=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,s=a.decodeDotInKeys?h.replace(/%2E/g,"."):h,u=parseInt(s,10);!a.parseArrays&&s===""?l={0:r}:!isNaN(u)&&c!==s&&String(u)===s&&u>=0&&a.parseArrays&&u<=a.arrayLimit?(l=[],l[u]=r):s!=="__proto__"&&(l[s]=r)}r=l}return r},yi1=function(e,a,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/,c=/(\[[^[\]]*])/g,h=n.depth>0&&l.exec(o),s=h?o.slice(0,h.index):o,u=[];if(s){if(!n.plainObjects&&IC.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var v=0;n.depth>0&&(h=c.exec(o))!==null&&v"u"?Se.charset:e.charset,n=typeof e.duplicates>"u"?Se.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var r=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:Se.allowDots:!!e.allowDots;return{allowDots:r,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Se.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Se.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Se.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Se.arrayLimit,charset:a,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Se.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Se.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Se.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Se.decoder,delimiter:typeof e.delimiter=="string"||X6.isRegExp(e.delimiter)?e.delimiter:Se.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Se.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Se.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Se.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Se.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Se.strictNullHandling}},Vi1=function(t,e){var a=xi1(e);if(t===""||t===null||typeof t>"u")return a.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?Hi1(t,a):t,r=a.plainObjects?Object.create(null):{},o=Object.keys(n),l=0;l-1};function kc(t){if(typeof t!="string"&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||t==="")throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function r_(t){return typeof t!="string"&&(t=String(t)),t}function i_(t){var e={next:function(){var a=t.shift();return{done:a===void 0,value:a}}};return ca.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c4(t){this.map={},t instanceof c4?t.forEach(function(e,a){this.append(a,e)},this):Array.isArray(t)?t.forEach(function(e){if(e.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}c4.prototype.append=function(t,e){t=kc(t),e=r_(e);var a=this.map[t];this.map[t]=a?a+", "+e:e};c4.prototype.delete=function(t){delete this.map[kc(t)]};c4.prototype.get=function(t){return t=kc(t),this.has(t)?this.map[t]:null};c4.prototype.has=function(t){return this.map.hasOwnProperty(kc(t))};c4.prototype.set=function(t,e){this.map[kc(t)]=r_(e)};c4.prototype.forEach=function(t,e){for(var a in this.map)this.map.hasOwnProperty(a)&&t.call(e,this.map[a],a,this)};c4.prototype.keys=function(){var t=[];return this.forEach(function(e,a){t.push(a)}),i_(t)};c4.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),i_(t)};c4.prototype.entries=function(){var t=[];return this.forEach(function(e,a){t.push([a,e])}),i_(t)};ca.iterable&&(c4.prototype[Symbol.iterator]=c4.prototype.entries);function Zw(t){if(!t._noBody){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}}function tG(t){return new Promise(function(e,a){t.onload=function(){e(t.result)},t.onerror=function(){a(t.error)}})}function Ti1(t){var e=new FileReader,a=tG(e);return e.readAsArrayBuffer(t),a}function Oi1(t){var e=new FileReader,a=tG(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),r=n?n[1]:"utf-8";return e.readAsText(t,r),a}function Ai1(t){for(var e=new Uint8Array(t),a=new Array(e.length),n=0;n-1?e:t}function U8(t,e){if(!(this instanceof U8))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var a=e.body;if(t instanceof U8){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c4(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,!a&&t._bodyInit!=null&&(a=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new c4(e.headers)),this.method=Ei1(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in S4){var o=new AbortController;return o.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&a)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+new Date().getTime());else{var r=/\?/;this.url+=(r.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U8.prototype.clone=function(){return new U8(this,{body:this._bodyInit})};function Pi1(t){var e=new FormData;return t.trim().split("&").forEach(function(a){if(a){var n=a.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function Ni1(t){var e=new c4,a=t.replace(/\r?\n[\t ]+/g," ");return a.split("\r").map(function(n){return n.indexOf(` `)===0?n.substr(1,n.length):n}).forEach(function(n){var r=n.split(":"),o=r.shift().trim();if(o){var l=r.join(":").trim();try{e.append(o,l)}catch(c){console.warn("Response "+c.message)}}}),e}eG.call(U8.prototype);function xi(t,e){if(!(this instanceof xi))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=e.status===void 0?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText===void 0?"":""+e.statusText,this.headers=new c4(e.headers),this.url=e.url||"",this._initBody(t)}eG.call(xi.prototype);xi.prototype.clone=function(){return new xi(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c4(this.headers),url:this.url})};xi.error=function(){var t=new xi(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var Di1=[301,302,303,307,308];xi.redirect=function(t,e){if(Di1.indexOf(e)===-1)throw new RangeError("Invalid status code");return new xi(null,{status:e,headers:{location:t}})};var m8=S4.DOMException;try{new m8}catch{m8=function(e,a){this.message=e,this.name=a;var n=Error(e);this.stack=n.stack},m8.prototype=Object.create(Error.prototype),m8.prototype.constructor=m8}function aG(t,e){return new Promise(function(a,n){var r=new U8(t,e);if(r.signal&&r.signal.aborted)return n(new m8("Aborted","AbortError"));var o=new XMLHttpRequest;function l(){o.abort()}o.onload=function(){var s={statusText:o.statusText,headers:Ni1(o.getAllResponseHeaders()||"")};r.url.indexOf("file://")===0&&(o.status<200||o.status>599)?s.status=200:s.status=o.status,s.url="responseURL"in o?o.responseURL:s.headers.get("X-Request-URL");var u="response"in o?o.response:o.responseText;setTimeout(function(){a(new xi(u,s))},0)},o.onerror=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){n(new TypeError("Network request timed out"))},0)},o.onabort=function(){setTimeout(function(){n(new m8("Aborted","AbortError"))},0)};function c(s){try{return s===""&&S4.location.href?S4.location.href:s}catch{return s}}if(o.open(r.method,c(r.url),!0),r.credentials==="include"?o.withCredentials=!0:r.credentials==="omit"&&(o.withCredentials=!1),"responseType"in o&&(ca.blob?o.responseType="blob":ca.arrayBuffer&&(o.responseType="arraybuffer")),e&&typeof e.headers=="object"&&!(e.headers instanceof c4||S4.Headers&&e.headers instanceof S4.Headers)){var h=[];Object.getOwnPropertyNames(e.headers).forEach(function(s){h.push(kc(s)),o.setRequestHeader(s,r_(e.headers[s]))}),r.headers.forEach(function(s,u){h.indexOf(u)===-1&&o.setRequestHeader(u,s)})}else r.headers.forEach(function(s,u){o.setRequestHeader(u,s)});r.signal&&(r.signal.addEventListener("abort",l),o.onreadystatechange=function(){o.readyState===4&&r.signal.removeEventListener("abort",l)}),o.send(typeof r._bodyInit>"u"?null:r._bodyInit)})}aG.polyfill=!0;S4.fetch||(S4.fetch=aG,S4.Headers=c4,S4.Request=U8,S4.Response=xi);self.fetch.bind(self);var nG={};function Ek(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function ka(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function df(t,e,a){return iG()?df=Reflect.construct:df=function(r,o,l){var c=[null];c.push.apply(c,o);var h=Function.bind.apply(r,c),s=new h;return l&&ks(s,l.prototype),s},df.apply(null,arguments)}function ji1(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function dg(t){var e=typeof Map=="function"?new Map:void 0;return dg=function(n){if(n===null||!ji1(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return df(n,arguments,As(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ks(r,n)},dg(t)}function Ii1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fi1(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ii1(t)}function oG(t){var e=iG();return function(){var n=As(t),r;if(e){var o=As(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Fi1(this,r)}}function ni(t){return $i1(t)||Ui1(t)||Wi1(t)||qi1()}function $i1(t){if(Array.isArray(t))return FC(t)}function Ui1(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Wi1(t,e){if(t){if(typeof t=="string")return FC(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Array.from(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return FC(t,e)}}function FC(t,e){(e==null||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},r=!1,o=!1,l=!1;if(typeof n=="number"?(process,r=!0,o=!1):Q3(n)==="object"&&n&&(o=n.global||!1,r=n.core||!1,l=n.defaultInstance||!1),o){t.globalMiddlewares.splice(t.globalMiddlewares.length-t.defaultGlobalMiddlewaresLength,0,a);return}if(r){t.coreMiddlewares.splice(t.coreMiddlewares.length-t.defaultCoreMiddlewaresLength,0,a);return}if(l){this.defaultMiddlewares.push(a);return}this.middlewares.push(a)}},{key:"execute",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=Gi1([].concat(ni(this.middlewares),ni(this.defaultMiddlewares),ni(t.globalMiddlewares),ni(t.coreMiddlewares)));return n(a)}}]),t}();Wn.globalMiddlewares=[];Wn.defaultGlobalMiddlewaresLength=0;Wn.coreMiddlewares=[];Wn.defaultCoreMiddlewaresLength=0;var Ki1=function(){function t(e){ph(this,t),this.cache=new Map,this.timer={},this.extendOptions(e)}return o_(t,[{key:"extendOptions",value:function(a){this.maxCache=a.maxCache||0}},{key:"get",value:function(a){return this.cache.get(JSON.stringify(a))}},{key:"set",value:function(a,n){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var l=ni(this.cache.keys())[0];this.cache.delete(l),this.timer[l]&&clearTimeout(this.timer[l])}var c=JSON.stringify(a);this.cache.set(c,n),o>0&&(this.timer[c]=setTimeout(function(){r.cache.delete(c),delete r.timer[c]},o))}},{key:"delete",value:function(a){var n=JSON.stringify(a);return delete this.timer[n],this.cache.delete(n)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),t}(),l_=function(t){rG(a,t);var e=oG(a);function a(n,r){var o,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return ph(this,a),o=e.call(this,n),o.name="RequestError",o.request=r,o.type=l,o}return a}(dg(Error)),M6=function(t){rG(a,t);var e=oG(a);function a(n,r,o,l){var c,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return ph(this,a),c=e.call(this,r||n.statusText),c.name="ResponseError",c.data=o,c.response=n,c.request=l,c.type=h,c}return a}(dg(Error));function Yi1(t){return new Promise(function(e,a){var n=new FileReader;n.onload=function(){e(n.result)},n.onerror=a,n.readAsText(t,"GBK")})}function Nk(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(t)}catch{if(e)throw new M6(a,"JSON.parse fail",t,n,"ParseError")}return t}function Zi1(t,e,a){return new Promise(function(n,r){setTimeout(function(){r(new l_(e||"timeout of ".concat(t,"ms exceeded"),a,"Timeout"))},t)})}function Dk(t){return new Promise(function(e,a){t.cancelToken&&t.cancelToken.promise.then(function(n){a(n)})})}var Qi1=Object.prototype.toString;function lG(){var t;return typeof process<"u"&&Qi1.call(process)==="[object process]"&&(t="NODE"),typeof XMLHttpRequest<"u"&&(t="BROWSER"),t}function $C(t){return Q3(t)==="object"&&Object.prototype.toString.call(t)==="[object Array]"}function cG(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function Xi1(t){return Q3(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Rk(t){return t!==null&&Q3(t)==="object"}function jk(t,e){if(t)if(Q3(t)!=="object"&&(t=[t]),$C(t))for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=a.prefix,r=a.suffix;return n&&(e="".concat(n).concat(e)),r&&(e="".concat(e).concat(r)),{url:e,options:a}};function t51(t,e){var a=e.method,n=a===void 0?"get":a;return n.toLowerCase()==="get"}function e51(t,e){if(!t)return e();var a=t.req;a=a===void 0?{}:a;var n=a.options,r=n===void 0?{}:n,o=a.url,l=o===void 0?"":o,c=t.cache,h=t.responseInterceptors,s=r.timeout,u=s===void 0?0:s,v=r.timeoutMessage,f=r.__umiRequestCoreType__,d=f===void 0?"normal":f,M=r.useCache,g=M===void 0?!1:M,H=r.method,p=H===void 0?"get":H,m=r.params,z=r.ttl,w=r.validateCache,x=w===void 0?t51:w;if(d!=="normal")return process,e();var y=fetch;if(!y)throw new Error("Global fetch not exist!");var V=lG()==="BROWSER",C=x(l,r)&&g&&V;if(C){var L=c.get({url:l,params:m,method:p});if(L)return L=L.clone(),L.useCache=!0,t.res=L,e()}var B;return u>0?B=Promise.race([Dk(r),y(l,r),Zi1(u,v,t.req)]):B=Promise.race([Dk(r),y(l,r)]),h.forEach(function(S){B=B.then(function(T){var E=typeof T.clone=="function"?T.clone():T;return S(E,r)})}),B.then(function(S){if(C&&S.status===200){var T=S.clone();T.useCache=!0,c.set({url:l,params:m,method:p},T,z)}return t.res=S,e()})}function a51(t,e){var a;return e().then(function(){if(t){var n=t.res,r=n===void 0?{}:n,o=t.req,l=o===void 0?{}:o,c=l||{},h=c.options;h=h===void 0?{}:h;var s=h.responseType,u=s===void 0?"json":s,v=h.charset,f=v===void 0?"utf8":v;h.getResponse;var d=h.throwErrIfParseFail,M=d===void 0?!1:d,g=h.parseResponse,H=g===void 0?!0:g;if(H&&!(!r||!r.clone)){if(a=lG()==="BROWSER"?r.clone():r,a.useCache=r.useCache||!1,f==="gbk")try{return r.blob().then(Yi1).then(function(p){return Nk(p,!1,a,l)})}catch(p){throw new M6(a,p.message,null,l,"ParseError")}else if(u==="json")return r.text().then(function(p){return Nk(p,M,a,l)});try{return r[u]()}catch{throw new M6(a,"responseType not support",null,l,"ParseError")}}}}).then(function(n){if(t){t.res;var r=t.req,o=r===void 0?{}:r,l=o||{},c=l.options;c=c===void 0?{}:c;var h=c.getResponse,s=h===void 0?!1:h;if(a){if(a.status>=200&&a.status<300){if(s){t.res={data:n,response:a};return}t.res=n;return}throw new M6(a,"http error",n,o,"HttpError")}}}).catch(function(n){if(n instanceof l_||n instanceof M6)throw n;var r=t.req,o=t.res;throw n.request=n.request||r,n.response=n.response||o,n.type=n.type||n.name,n.data=n.data||void 0,n})}function n51(t,e){if(!t)return e();var a=t.req;a=a===void 0?{}:a;var n=a.options,r=n===void 0?{}:n,o=r.method,l=o===void 0?"get":o;if(["post","put","patch","delete"].indexOf(l.toLowerCase())===-1)return e();var c=r.requestType,h=c===void 0?"json":c,s=r.data;if(s){var u=Object.prototype.toString.call(s);u==="[object Object]"||u==="[object Array]"?h==="json"?(r.headers=ka({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},r.headers),r.body=JSON.stringify(s)):h==="form"&&(r.headers=ka({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},r.headers),r.body=UC(s)):(r.headers=ka({Accept:"application/json"},r.headers),r.body=s)}return t.req.options=r,e()}function r51(t,e){var a,n;if(t)if(e)a=e(t);else if(cG(t))a=t.toString();else if($C(t))n=[],jk(t,function(o){o===null||typeof o>"u"?n.push(o):n.push(Rk(o)?JSON.stringify(o):o)}),a=UC(n);else{n={},jk(t,function(o,l){var c=o;o===null||typeof o>"u"?n[l]=o:Xi1(o)?c=o.toISOString():$C(o)?c=o:Rk(o)&&(c=JSON.stringify(o)),n[l]=c});var r=UC(n);a=r}return a}function i51(t,e){if(!t)return e();var a=t.req;a=a===void 0?{}:a;var n=a.options,r=n===void 0?{}:n,o=r.paramsSerializer,l=r.params,c=t.req;c=c===void 0?{}:c;var h=c.url,s=h===void 0?"":h;r.method=r.method?r.method.toUpperCase():"GET",r.credentials=r.credentials||"same-origin";var u=r51(l,o);if(t.req.originUrl=s,u){var v=s.indexOf("?")!==-1?"&":"?";t.req.url="".concat(s).concat(v).concat(u)}return t.req.options=r,e()}var hG=[n51,i51,a51],uG=[e51];Wn.globalMiddlewares=hG;Wn.defaultGlobalMiddlewaresLength=hG.length;Wn.coreMiddlewares=uG;Wn.defaultCoreMiddlewaresLength=uG.length;var F7=function(){function t(e){ph(this,t),this.onion=new Wn([]),this.fetchIndex=0,this.mapCache=new Ki1(e),this.initOptions=e,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return o_(t,[{key:"use",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(a,n),this}},{key:"extendOptions",value:function(a){this.initOptions=sG(this.initOptions,a),this.mapCache.extendOptions(a)}},{key:"dealRequestInterceptors",value:function(a){var n=function(l,c){return l.then(function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return a.req.url=h.url||a.req.url,a.req.options=h.options||a.req.options,c(a.req.url,a.req.options)})},r=[].concat(ni(t.requestInterceptors),ni(this.instanceRequestInterceptors));return r.reduce(n,Promise.resolve()).then(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return a.req.url=o.url||a.req.url,a.req.options=o.options||a.req.options,Promise.resolve()})}},{key:"request",value:function(a,n){var r=this,o=this.onion,l={req:{url:a,options:ka(ka({},n),{},{url:a})},res:null,cache:this.mapCache,responseInterceptors:[].concat(ni(t.responseInterceptors),ni(this.instanceResponseInterceptors))};if(typeof a!="string")throw new Error("url MUST be a string");return new Promise(function(c,h){r.dealRequestInterceptors(l).then(function(){return o.execute(l)}).then(function(){c(l.res)}).catch(function(s){var u=l.req.options.errorHandler;if(u)try{var v=u(s);c(v)}catch(f){h(f)}else h(s)})})}}],[{key:"requestUse",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof a!="function")throw new TypeError("Interceptor must be function!");n.global?t.requestInterceptors.push(a):this.instanceRequestInterceptors.push(a)}},{key:"responseUse",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof a!="function")throw new TypeError("Interceptor must be function!");n.global?t.responseInterceptors.push(a):this.instanceResponseInterceptors.push(a)}}]),t}();F7.requestInterceptors=[Ji1];F7.responseInterceptors=[];function $p(t){this.message=t}$p.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"};$p.prototype.__CANCEL__=!0;function fg(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(r){e=r});var a=this;t(function(r){a.reason||(a.reason=new $p(r),e(a.reason))})}fg.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};fg.source=function(){var e,a=new fg(function(r){e=r});return{token:a,cancel:e}};function o51(t){return!!(t&&t.__CANCEL__)}var c_=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new F7(e),n=function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=sG(a.initOptions,c);return a.request(l,h)};n.use=a.use.bind(a),n.fetchIndex=a.fetchIndex,n.interceptors={request:{use:F7.requestUse.bind(a)},response:{use:F7.responseUse.bind(a)}};var r=["get","post","delete","put","patch","head","options","rpc"];return r.forEach(function(o){n[o]=function(l,c){return n(l,ka(ka({},c),{},{method:o}))}}),n.Cancel=$p,n.CancelToken=fg,n.isCancel=o51,n.extendOptions=a.extendOptions.bind(a),n.middlewares={instance:a.onion.middlewares,defaultInstance:a.onion.defaultMiddlewares,global:Wn.globalMiddlewares,core:Wn.coreMiddlewares},n},l51=function(e){return c_(e)},c51=c_({parseResponse:!1}),s51=c_({});const h51=Object.freeze(Object.defineProperty({__proto__:null,Onion:Wn,RequestError:l_,ResponseError:M6,default:s51,extend:l51,fetch:c51},Symbol.toStringTag,{value:"Module"})),a0=se(h51);var Ne={};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.currentTimezone=void 0;var u51=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone};Ne.currentTimezone=u51;var WC=b&&b.__assign||function(){return WC=Object.assign||function(t){for(var e,a=1,n=arguments.length;a0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]60*60)return;var J=setTimeout(function(){return E()},i1);return function(){clearTimeout(J)}}},[W]);var t1=(0,n.useCallback)(function(){w(null),V(r.defaultConfig.user)},[]),R=(0,n.useCallback)(function(i1){return h.register.bind(null,g)(i1)},[]);return(0,a.jsx)(t.UserContext.Provider,e({value:{tokenExpireDate:W,token:z,user:y,socialAuthorize:U,changePassword:$,login:L,logout:C,forgot:h.forgot.bind(null,g),reset:h.reset.bind(null,g),fetchProfile:B,updateProfile:S,updateAvatar:T,getRefreshedToken:E,emailVerify:h.emailVerify.bind(null,g),register:R,initAccountDelete:Y,confirmAccountDelete:F}},{children:d}))};t.UserContextProvider=u}(Qw)),Qw}var $k;function N51(){return $k||($k=1,function(t){var e=b&&b.__assign||function(){return e=Object.assign||function(v){for(var f,d=1,M=arguments.length;d0&&C[C.length-1])&&(T[0]===6||T[0]===2)){x=0;continue}if(T[0]===3&&(!C||T[1]>C[0]&&T[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&d[d.length-1])&&(p[0]===6||p[0]===2)){u=0;continue}if(p[0]===3&&(!d||p[1]>d[0]&&p[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0;if(C.attempted===Nl&&a3&&a3[0].id.includes(C.guessTheAnswer)){var ji=(0,t.getCalcCourseProgress)(Number(k1),Pi,Ni);Uo(Number(k1),(ji==null?void 0:ji.map(function(b9){return b9.topic_id===E1?e(e({},b9),{status:V.CourseProgressItemElementStatus.COMPLETE}):b9}))||[{topic_id:E1,status:V.CourseProgressItemElementStatus.COMPLETE}])}if(C.blackList.includes(Nl))return null;if(C.completed.includes(Nl)&&(!ow&&a3&&!(!((zn=a3[0])===null||zn===void 0)&&zn.id.includes(C.questionSet))||a3&&(!((x9=a3[0])===null||x9===void 0)&&x9.id.includes(C.questionSet))&&Ri&&((V9=Ri==null?void 0:Ri.score)===null||V9===void 0?void 0:V9.max)===((C9=Ri==null?void 0:Ri.score)===null||C9===void 0?void 0:C9.raw))){var ji=(0,t.getCalcCourseProgress)(Number(k1),Pi,Ni);Uo(Number(k1),(ji==null?void 0:ji.map(function(Go){return Go.topic_id===E1?e(e({},Go),{status:V.CourseProgressItemElementStatus.COMPLETE}):Go}))||[{topic_id:E1,status:V.CourseProgressItemElementStatus.COMPLETE}])}return C1?f.h5pProgress.bind(null,X)(E1,Nl,ct,C1):null},[C1,Pi,Ni]),Mv=(0,h.useCallback)(function(k1){return C1?f.topicPing.bind(null,X)(k1,C1).catch(function(E1){return E1}):Promise.reject("noToken")},[C1]),Wr=(0,h.useMemo)(function(){var k1={coursesProcProgress:{},finishedTopics:[]};return Pi.value&&Pi.value.reduce(function(E1,ct){return E1.coursesProcProgress[typeof ct.course.id=="number"?ct.course.id:0]=ct.progress.reduce(function(It,A2){return It+A2.status},0)/ct.progress.length,E1.finishedTopics=E1.finishedTopics.concat(ct.progress.filter(function(It){return It.status===V.CourseProgressItemElementStatus.COMPLETE}).map(function(It){return It.topic_id})),E1},k1),k1},[Pi]),nw=(0,h.useCallback)(function(k1){return!!(Wr&&Wr.finishedTopics.includes(k1))},[Wr]),rw=(0,h.useCallback)(function(k1){return Wr&&Wr.coursesProcProgress[k1]?Wr.coursesProcProgress[k1]:0},[Wr]),iw=(0,h.useCallback)(function(k1,E1){if(E1===void 0&&(E1=!0),Fo.value===void 0)return null;var ct=(0,nt.getFlatTopics)(Fo.value.lessons),It=ct==null?void 0:ct.findIndex(function(A2){return A2.id===k1});if(It===void 0||It===-1)return null;if(E1){if(Array.isArray(ct)&&ct[It+1])return ct[It+1]||null}else if(Array.isArray(ct)&&ct[It-1])return ct[It-1]||null;return null},[Fo]),Ga=(0,h.useCallback)(function(k1){return C1?w.addVoucher.bind(null,X)(k1,C1).finally(function(){return _2()}):Promise.reject("noToken")},[C1]),t3=(0,h.useCallback)(function(){return C1?w.removeVoucher.bind(null,X)(C1).finally(function(){return _2()}):Promise.reject("noToken")},[C1]);return(0,c.jsx)(t.EscolaLMSContext.Provider,e({value:{confirmAccountDelete:T0,initAccountDelete:y2,token:C1,apiUrl:X,courses:S2,course:Pu,program:Fo,fetchCourses:H2,fetchCourse:WH,fetchProgram:QH,fetchSettings:j4,settings:mH,config:f9,fetchConfig:El,fetchTags:k4,uniqueTags:ve,fetchCategories:O0,categoryTree:N2,login:ht,logout:GH,forgot:Ht,reset:Ot,user:Vt,register:f2,fetchCart:_2,addToCart:ae,removeFromCart:wt,resetCart:Tt,cart:j0,payWithStripe:KH,fetchProgress:XH,fetchPaginatedProgress:JH,paginatedProgress:MH,fetchCourseProgress:ew,progress:Pi,courseProgressDetails:Ni,sendProgress:Uo,fetchTutors:E4,tutors:De,fetchTutor:H9,tutor:VH,fetchOrders:aw,orders:Wu,fetchPayments:w9,payments:wH,pages:C0,fetchPages:de,page:u4,fetchPage:D4,fetchProfile:a2,updateProfile:u2,updateAvatar:_t,topicPing:Mv,topicIsFinished:nw,courseProgress:rw,getNextPrevTopic:iw,h5pProgress:y9,userGroups:gH,fetchUserGroups:UH,userGroup:Tu,fetchUserGroup:FH,registerableGroups:ku,fetchRegisterableGroups:$H,socialAuthorize:Y1,notifications:GM,fetchNotifications:KM,readNotify:fu,readAllNotifications:YM,certificates:Gu,fetchCertificates:NH,fetchCertificate:M9,generateCertificate:X5,mattermostChannels:xH,fetchMattermostChannels:RH,h5p:xa,fetchH5P:N4,emailVerify:Rt,getRefreshedToken:At,tokenExpireDate:Xt,fetchConsultations:ne,consultations:c2,consultation:bu,fetchConsultation:J5,fields:bH,fetchFields:Pl,stationaryEvents:BH,fetchStationaryEvents:uv,fetchStationaryEvent:vv,fetchUserConsultations:pv,userConsultations:uH,bookConsultationTerm:mv,fetchWebinars:P4,fetchWebinar:aa,webinars:p0,payWithP24:YH,getProductInfo:IH,fetchTutorConsultations:z9,approveConsultationTerm:EH,generateConsultationJitsy:gv,rejectConsultationTerm:fv,tutorConsultations:dH,fetchEvents:zv,events:fH,changePassword:Ct,stationaryEvent:av,webinar:fn,userWebinars:Di,fetchUserWebinars:kH,generateWebinarJitsy:PH,realizeVoucher:Ga,removeVoucher:t3,products:Q5,product:OH,fetchQuestionnaires:ZM,fetchQuestionnaire:QM,fetchQuestionnairesAnswers:XM,fetchQuestionnaireStars:JM,fetchQuestionnaireStarsByModel:eH,sendQuestionnaireAnswer:tH,fetchUserStationaryEvents:dv,userStationaryEvents:iv,fetchOrderInvoice:ZH,addMissingProducts:mt,getImagePrefix:N1,getImageSvgPrefix:Z1,changeConsultationTerm:jH,fetchProducts:sv,fetchProduct:hv,courseAccess:L0,fetchCourseAccess:Ur,addCourseAccess:jo,deleteCourseAccess:Io,myCourses:qa,fetchMyCourses:RM,fetchMyAuthoredCourses:tw,myAuthoredCourses:Fu,challenges:s9,fetchChallenges:jM,challenge:h9,fetchChallenge:uu,consultationAccessEnquiry:FM,fetchConsultationAccessEnquiry:IM,consultationAccess:du,fetchConsultationAccess:$M,addConsultationAccess:UM,deleteConsultationAccess:WM,updateConsultationAccess:qM,tasks:V4,fetchTasks:gn,addTask:R4,deleteTask:U5,task:lr,fetchTask:Ir,updateTask:Fr,updateTaskStatus:Ai,createTaskNote:ki,updateTaskNote:W5,deleteTaskNote:q5,bookmarkNotes:Ro,createBookmarkNote:$r,updateBookmarkNote:Dt,deleteBookmarkNote:s2,fetchBookmarkNotes:k0,fetchSubjects:aH,subjects:pu,fetchSchedule:nH,schedule:rH,fetchScheduleTutors:Mu,scheduleTutors:iH,fetchAttendances:oH,attendances:lH,fetchExams:cH,exams:yu,createTeamsChat:DH,fetchSemesters:u9,semesters:xu,fetchAcademicYears:sH,academicYears:Vu}},{children:b1}))},B1=function(H1){var b1=H1.children,X=o(H1,["children"]),f1={defaults:X.defaults,apiUrl:X.apiUrl,ssrHydration:X.ssrHydration},e1=[i1.UserContextProvider,S.CoursesContextProvider,T.CategoriesContextProvider,E.TagsContextProvider,$.TutorsContextProvider,U.WebinarsContextProvider,W.WebinarContextProvider,Y.H5pContextProvider,R.ConsultationsContextProvider,F.PagesContextProvider,t1.PageContextProvider,h1.ConsultationAccessContextProvider,s.ConsultationAccessEnquiryContextProvider,a1.NotificationsContextProvider,o1.CourseAccessContextProvider,J.TasksContextProvider,A.TaskContextProvider,M1.BookmarkNotesContextProvider,s1.CartContextProvider,z1.QuestionnairesContextProvider,m1.SubjectsContextProvider,S1.ScheduleContextProvider,I1.ScheduleTutorsContextProvider,U1.AttendancesContextProvider,P1.ExamsContextProvider,rt.StudentDetailsContextProvider,X1.ChallengesContextProvider].reverse(),G=e1.reduce(function(r1,P,q){return h.default.createElement(P,f1,r1)},h.default.createElement(q1,X,b1));return G};t.EscolaLMSContextProvider=B1}(Nw)),Nw}var ic=w0();const el1="modulepreload",al1=function(t){return"/"+t},mE={},n0=function(e,a,n){let r=Promise.resolve();if(a&&a.length>0){const o=document.getElementsByTagName("link");r=Promise.all(a.map(l=>{if(l=al1(l),l in mE)return;mE[l]=!0;const c=l.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(!!n)for(let v=o.length-1;v>=0;v--){const f=o[v];if(f.href===l&&(!c||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${h}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":el1,c||(u.as="script",u.crossOrigin=""),u.href=l,document.head.appendChild(u),c)return new Promise((v,f)=>{u.addEventListener("load",v),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>e()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})};function yg(t,e){return yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},yg(t,e)}function pa(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,yg(t,e)}var SG={exports:{}},nl1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",rl1=nl1,il1=rl1;function TG(){}function OG(){}OG.resetWarningCache=TG;var ol1=function(){function t(n,r,o,l,c,h){if(h!==il1){var s=new 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}}t.isRequired=t;function e(){return t}var a={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:OG,resetWarningCache:TG};return a.PropTypes=a,a};SG.exports=ol1();var E5=SG.exports;const ut=R0(E5);function Zt(){return Zt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0;u--){var v=n[u];v==="."?Vy(n,u):v===".."?(Vy(n,u),s++):s&&(Vy(n,u),s--)}if(!l)for(;s--;s)n.unshift("..");l&&n[0]!==""&&(!n[0]||!Fv(n[0]))&&n.unshift("");var f=n.join("/");return c&&f.substr(-1)!=="/"&&(f+="/"),f}function zE(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}function ff(t,e){if(t===e)return!0;if(t==null||e==null)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(r,o){return ff(r,e[o])});if(typeof t=="object"||typeof e=="object"){var a=zE(t),n=zE(e);return a!==t||n!==e?ff(a,n):Object.keys(Object.assign({},t,e)).every(function(r){return ff(t[r],e[r])})}return!1}var cl1="Invariant failed";function P5(t,e){if(!t)throw new Error(cl1)}const se0=Object.freeze(Object.defineProperty({__proto__:null,default:P5},Symbol.toStringTag,{value:"Module"}));function $7(t){return t.charAt(0)==="/"?t:"/"+t}function ME(t){return t.charAt(0)==="/"?t.substr(1):t}function sl1(t,e){return t.toLowerCase().indexOf(e.toLowerCase())===0&&"/?#".indexOf(t.charAt(e.length))!==-1}function AG(t,e){return sl1(t,e)?t.substr(e.length):t}function kG(t){return t.charAt(t.length-1)==="/"?t.slice(0,-1):t}function hl1(t){var e=t||"/",a="",n="",r=e.indexOf("#");r!==-1&&(n=e.substr(r),e=e.substr(0,r));var o=e.indexOf("?");return o!==-1&&(a=e.substr(o),e=e.substr(0,o)),{pathname:e,search:a==="?"?"":a,hash:n==="#"?"":n}}function Oa(t){var e=t.pathname,a=t.search,n=t.hash,r=e||"/";return a&&a!=="?"&&(r+=a.charAt(0)==="?"?a:"?"+a),n&&n!=="#"&&(r+=n.charAt(0)==="#"?n:"#"+n),r}function va(t,e,a,n){var r;typeof t=="string"?(r=hl1(t),r.state=e):(r=Zt({},t),r.pathname===void 0&&(r.pathname=""),r.search?r.search.charAt(0)!=="?"&&(r.search="?"+r.search):r.search="",r.hash?r.hash.charAt(0)!=="#"&&(r.hash="#"+r.hash):r.hash="",e!==void 0&&r.state===void 0&&(r.state=e));try{r.pathname=decodeURI(r.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return a&&(r.key=a),n?r.pathname?r.pathname.charAt(0)!=="/"&&(r.pathname=ll1(r.pathname,n.pathname)):r.pathname=n.pathname:r.pathname||(r.pathname="/"),r}function ul1(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&ff(t.state,e.state)}function m_(){var t=null;function e(l){return t=l,function(){t===l&&(t=null)}}function a(l,c,h,s){if(t!=null){var u=typeof t=="function"?t(l,c):t;typeof u=="string"?typeof h=="function"?h(u,s):s(!0):s(u!==!1)}else s(!0)}var n=[];function r(l){var c=!0;function h(){c&&l.apply(void 0,arguments)}return n.push(h),function(){c=!1,n=n.filter(function(s){return s!==h})}}function o(){for(var l=arguments.length,c=new Array(l),h=0;h$?U.splice($,U.length-$,S):U.push(S),u({action:B,location:S,index:$,entries:U})}})}function H(C,L){var B="REPLACE",S=va(C,L,v(),V.location);s.confirmTransitionTo(S,B,a,function(T){T&&(V.entries[V.index]=S,u({action:B,location:S}))})}function p(C){var L=VE(V.index+C,0,V.entries.length-1),B="POP",S=V.entries[L];s.confirmTransitionTo(S,B,a,function(T){T?u({action:B,location:S,index:L}):u()})}function m(){p(-1)}function z(){p(1)}function w(C){var L=V.index+C;return L>=0&&L1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},r=!1,o=!1,l=!1;if(typeof n=="number"?(process,r=!0,o=!1):Q3(n)==="object"&&n&&(o=n.global||!1,r=n.core||!1,l=n.defaultInstance||!1),o){t.globalMiddlewares.splice(t.globalMiddlewares.length-t.defaultGlobalMiddlewaresLength,0,a);return}if(r){t.coreMiddlewares.splice(t.coreMiddlewares.length-t.defaultCoreMiddlewaresLength,0,a);return}if(l){this.defaultMiddlewares.push(a);return}this.middlewares.push(a)}},{key:"execute",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=Gi1([].concat(ni(this.middlewares),ni(this.defaultMiddlewares),ni(t.globalMiddlewares),ni(t.coreMiddlewares)));return n(a)}}]),t}();Wn.globalMiddlewares=[];Wn.defaultGlobalMiddlewaresLength=0;Wn.coreMiddlewares=[];Wn.defaultCoreMiddlewaresLength=0;var Ki1=function(){function t(e){ph(this,t),this.cache=new Map,this.timer={},this.extendOptions(e)}return o_(t,[{key:"extendOptions",value:function(a){this.maxCache=a.maxCache||0}},{key:"get",value:function(a){return this.cache.get(JSON.stringify(a))}},{key:"set",value:function(a,n){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var l=ni(this.cache.keys())[0];this.cache.delete(l),this.timer[l]&&clearTimeout(this.timer[l])}var c=JSON.stringify(a);this.cache.set(c,n),o>0&&(this.timer[c]=setTimeout(function(){r.cache.delete(c),delete r.timer[c]},o))}},{key:"delete",value:function(a){var n=JSON.stringify(a);return delete this.timer[n],this.cache.delete(n)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),t}(),l_=function(t){rG(a,t);var e=oG(a);function a(n,r){var o,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return ph(this,a),o=e.call(this,n),o.name="RequestError",o.request=r,o.type=l,o}return a}(dg(Error)),M6=function(t){rG(a,t);var e=oG(a);function a(n,r,o,l){var c,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return ph(this,a),c=e.call(this,r||n.statusText),c.name="ResponseError",c.data=o,c.response=n,c.request=l,c.type=h,c}return a}(dg(Error));function Yi1(t){return new Promise(function(e,a){var n=new FileReader;n.onload=function(){e(n.result)},n.onerror=a,n.readAsText(t,"GBK")})}function Nk(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(t)}catch{if(e)throw new M6(a,"JSON.parse fail",t,n,"ParseError")}return t}function Zi1(t,e,a){return new Promise(function(n,r){setTimeout(function(){r(new l_(e||"timeout of ".concat(t,"ms exceeded"),a,"Timeout"))},t)})}function Dk(t){return new Promise(function(e,a){t.cancelToken&&t.cancelToken.promise.then(function(n){a(n)})})}var Qi1=Object.prototype.toString;function lG(){var t;return typeof process<"u"&&Qi1.call(process)==="[object process]"&&(t="NODE"),typeof XMLHttpRequest<"u"&&(t="BROWSER"),t}function $C(t){return Q3(t)==="object"&&Object.prototype.toString.call(t)==="[object Array]"}function cG(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function Xi1(t){return Q3(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Rk(t){return t!==null&&Q3(t)==="object"}function jk(t,e){if(t)if(Q3(t)!=="object"&&(t=[t]),$C(t))for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=a.prefix,r=a.suffix;return n&&(e="".concat(n).concat(e)),r&&(e="".concat(e).concat(r)),{url:e,options:a}};function t51(t,e){var a=e.method,n=a===void 0?"get":a;return n.toLowerCase()==="get"}function e51(t,e){if(!t)return e();var a=t.req;a=a===void 0?{}:a;var n=a.options,r=n===void 0?{}:n,o=a.url,l=o===void 0?"":o,c=t.cache,h=t.responseInterceptors,s=r.timeout,u=s===void 0?0:s,v=r.timeoutMessage,f=r.__umiRequestCoreType__,d=f===void 0?"normal":f,M=r.useCache,g=M===void 0?!1:M,H=r.method,p=H===void 0?"get":H,m=r.params,z=r.ttl,w=r.validateCache,x=w===void 0?t51:w;if(d!=="normal")return process,e();var y=fetch;if(!y)throw new Error("Global fetch not exist!");var V=lG()==="BROWSER",C=x(l,r)&&g&&V;if(C){var L=c.get({url:l,params:m,method:p});if(L)return L=L.clone(),L.useCache=!0,t.res=L,e()}var B;return u>0?B=Promise.race([Dk(r),y(l,r),Zi1(u,v,t.req)]):B=Promise.race([Dk(r),y(l,r)]),h.forEach(function(S){B=B.then(function(T){var E=typeof T.clone=="function"?T.clone():T;return S(E,r)})}),B.then(function(S){if(C&&S.status===200){var T=S.clone();T.useCache=!0,c.set({url:l,params:m,method:p},T,z)}return t.res=S,e()})}function a51(t,e){var a;return e().then(function(){if(t){var n=t.res,r=n===void 0?{}:n,o=t.req,l=o===void 0?{}:o,c=l||{},h=c.options;h=h===void 0?{}:h;var s=h.responseType,u=s===void 0?"json":s,v=h.charset,f=v===void 0?"utf8":v;h.getResponse;var d=h.throwErrIfParseFail,M=d===void 0?!1:d,g=h.parseResponse,H=g===void 0?!0:g;if(H&&!(!r||!r.clone)){if(a=lG()==="BROWSER"?r.clone():r,a.useCache=r.useCache||!1,f==="gbk")try{return r.blob().then(Yi1).then(function(p){return Nk(p,!1,a,l)})}catch(p){throw new M6(a,p.message,null,l,"ParseError")}else if(u==="json")return r.text().then(function(p){return Nk(p,M,a,l)});try{return r[u]()}catch{throw new M6(a,"responseType not support",null,l,"ParseError")}}}}).then(function(n){if(t){t.res;var r=t.req,o=r===void 0?{}:r,l=o||{},c=l.options;c=c===void 0?{}:c;var h=c.getResponse,s=h===void 0?!1:h;if(a){if(a.status>=200&&a.status<300){if(s){t.res={data:n,response:a};return}t.res=n;return}throw new M6(a,"http error",n,o,"HttpError")}}}).catch(function(n){if(n instanceof l_||n instanceof M6)throw n;var r=t.req,o=t.res;throw n.request=n.request||r,n.response=n.response||o,n.type=n.type||n.name,n.data=n.data||void 0,n})}function n51(t,e){if(!t)return e();var a=t.req;a=a===void 0?{}:a;var n=a.options,r=n===void 0?{}:n,o=r.method,l=o===void 0?"get":o;if(["post","put","patch","delete"].indexOf(l.toLowerCase())===-1)return e();var c=r.requestType,h=c===void 0?"json":c,s=r.data;if(s){var u=Object.prototype.toString.call(s);u==="[object Object]"||u==="[object Array]"?h==="json"?(r.headers=ka({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},r.headers),r.body=JSON.stringify(s)):h==="form"&&(r.headers=ka({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},r.headers),r.body=UC(s)):(r.headers=ka({Accept:"application/json"},r.headers),r.body=s)}return t.req.options=r,e()}function r51(t,e){var a,n;if(t)if(e)a=e(t);else if(cG(t))a=t.toString();else if($C(t))n=[],jk(t,function(o){o===null||typeof o>"u"?n.push(o):n.push(Rk(o)?JSON.stringify(o):o)}),a=UC(n);else{n={},jk(t,function(o,l){var c=o;o===null||typeof o>"u"?n[l]=o:Xi1(o)?c=o.toISOString():$C(o)?c=o:Rk(o)&&(c=JSON.stringify(o)),n[l]=c});var r=UC(n);a=r}return a}function i51(t,e){if(!t)return e();var a=t.req;a=a===void 0?{}:a;var n=a.options,r=n===void 0?{}:n,o=r.paramsSerializer,l=r.params,c=t.req;c=c===void 0?{}:c;var h=c.url,s=h===void 0?"":h;r.method=r.method?r.method.toUpperCase():"GET",r.credentials=r.credentials||"same-origin";var u=r51(l,o);if(t.req.originUrl=s,u){var v=s.indexOf("?")!==-1?"&":"?";t.req.url="".concat(s).concat(v).concat(u)}return t.req.options=r,e()}var hG=[n51,i51,a51],uG=[e51];Wn.globalMiddlewares=hG;Wn.defaultGlobalMiddlewaresLength=hG.length;Wn.coreMiddlewares=uG;Wn.defaultCoreMiddlewaresLength=uG.length;var F7=function(){function t(e){ph(this,t),this.onion=new Wn([]),this.fetchIndex=0,this.mapCache=new Ki1(e),this.initOptions=e,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return o_(t,[{key:"use",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(a,n),this}},{key:"extendOptions",value:function(a){this.initOptions=sG(this.initOptions,a),this.mapCache.extendOptions(a)}},{key:"dealRequestInterceptors",value:function(a){var n=function(l,c){return l.then(function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return a.req.url=h.url||a.req.url,a.req.options=h.options||a.req.options,c(a.req.url,a.req.options)})},r=[].concat(ni(t.requestInterceptors),ni(this.instanceRequestInterceptors));return r.reduce(n,Promise.resolve()).then(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return a.req.url=o.url||a.req.url,a.req.options=o.options||a.req.options,Promise.resolve()})}},{key:"request",value:function(a,n){var r=this,o=this.onion,l={req:{url:a,options:ka(ka({},n),{},{url:a})},res:null,cache:this.mapCache,responseInterceptors:[].concat(ni(t.responseInterceptors),ni(this.instanceResponseInterceptors))};if(typeof a!="string")throw new Error("url MUST be a string");return new Promise(function(c,h){r.dealRequestInterceptors(l).then(function(){return o.execute(l)}).then(function(){c(l.res)}).catch(function(s){var u=l.req.options.errorHandler;if(u)try{var v=u(s);c(v)}catch(f){h(f)}else h(s)})})}}],[{key:"requestUse",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof a!="function")throw new TypeError("Interceptor must be function!");n.global?t.requestInterceptors.push(a):this.instanceRequestInterceptors.push(a)}},{key:"responseUse",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof a!="function")throw new TypeError("Interceptor must be function!");n.global?t.responseInterceptors.push(a):this.instanceResponseInterceptors.push(a)}}]),t}();F7.requestInterceptors=[Ji1];F7.responseInterceptors=[];function $p(t){this.message=t}$p.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"};$p.prototype.__CANCEL__=!0;function fg(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(r){e=r});var a=this;t(function(r){a.reason||(a.reason=new $p(r),e(a.reason))})}fg.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};fg.source=function(){var e,a=new fg(function(r){e=r});return{token:a,cancel:e}};function o51(t){return!!(t&&t.__CANCEL__)}var c_=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new F7(e),n=function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=sG(a.initOptions,c);return a.request(l,h)};n.use=a.use.bind(a),n.fetchIndex=a.fetchIndex,n.interceptors={request:{use:F7.requestUse.bind(a)},response:{use:F7.responseUse.bind(a)}};var r=["get","post","delete","put","patch","head","options","rpc"];return r.forEach(function(o){n[o]=function(l,c){return n(l,ka(ka({},c),{},{method:o}))}}),n.Cancel=$p,n.CancelToken=fg,n.isCancel=o51,n.extendOptions=a.extendOptions.bind(a),n.middlewares={instance:a.onion.middlewares,defaultInstance:a.onion.defaultMiddlewares,global:Wn.globalMiddlewares,core:Wn.coreMiddlewares},n},l51=function(e){return c_(e)},c51=c_({parseResponse:!1}),s51=c_({});const h51=Object.freeze(Object.defineProperty({__proto__:null,Onion:Wn,RequestError:l_,ResponseError:M6,default:s51,extend:l51,fetch:c51},Symbol.toStringTag,{value:"Module"})),r0=se(h51);var Ne={};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.currentTimezone=void 0;var u51=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone};Ne.currentTimezone=u51;var WC=b&&b.__assign||function(){return WC=Object.assign||function(t){for(var e,a=1,n=arguments.length;a0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]60*60)return;var t1=setTimeout(function(){return E()},i1);return function(){clearTimeout(t1)}}},[U]);var X=(0,n.useCallback)(function(){w(null),V(r.defaultConfig.user)},[]),R=(0,n.useCallback)(function(i1){return h.register.bind(null,g)(i1)},[]);return(0,a.jsx)(t.UserContext.Provider,e({value:{tokenExpireDate:U,token:z,user:y,socialAuthorize:q,changePassword:$,login:L,logout:C,forgot:h.forgot.bind(null,g),reset:h.reset.bind(null,g),fetchProfile:B,updateProfile:S,updateAvatar:T,getRefreshedToken:E,emailVerify:h.emailVerify.bind(null,g),register:R,initAccountDelete:Y,confirmAccountDelete:F}},{children:d}))};t.UserContextProvider=u}(Qw)),Qw}var $k;function N51(){return $k||($k=1,function(t){var e=b&&b.__assign||function(){return e=Object.assign||function(v){for(var f,d=1,M=arguments.length;d0&&C[C.length-1])&&(T[0]===6||T[0]===2)){x=0;continue}if(T[0]===3&&(!C||T[1]>C[0]&&T[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&d[d.length-1])&&(p[0]===6||p[0]===2)){u=0;continue}if(p[0]===3&&(!d||p[1]>d[0]&&p[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0;if(C.attempted===Nl&&a3&&a3[0].id.includes(C.guessTheAnswer)){var ji=(0,t.getCalcCourseProgress)(Number(k1),Pi,Ni);Uo(Number(k1),(ji==null?void 0:ji.map(function(b9){return b9.topic_id===E1?e(e({},b9),{status:V.CourseProgressItemElementStatus.COMPLETE}):b9}))||[{topic_id:E1,status:V.CourseProgressItemElementStatus.COMPLETE}])}if(C.blackList.includes(Nl))return null;if(C.completed.includes(Nl)&&(!ow&&a3&&!(!((Mn=a3[0])===null||Mn===void 0)&&Mn.id.includes(C.questionSet))||a3&&(!((x9=a3[0])===null||x9===void 0)&&x9.id.includes(C.questionSet))&&Ri&&((V9=Ri==null?void 0:Ri.score)===null||V9===void 0?void 0:V9.max)===((C9=Ri==null?void 0:Ri.score)===null||C9===void 0?void 0:C9.raw))){var ji=(0,t.getCalcCourseProgress)(Number(k1),Pi,Ni);Uo(Number(k1),(ji==null?void 0:ji.map(function(Go){return Go.topic_id===E1?e(e({},Go),{status:V.CourseProgressItemElementStatus.COMPLETE}):Go}))||[{topic_id:E1,status:V.CourseProgressItemElementStatus.COMPLETE}])}return C1?f.h5pProgress.bind(null,J)(E1,Nl,ct,C1):null},[C1,Pi,Ni]),Mv=(0,h.useCallback)(function(k1){return C1?f.topicPing.bind(null,J)(k1,C1).catch(function(E1){return E1}):Promise.reject("noToken")},[C1]),Wr=(0,h.useMemo)(function(){var k1={coursesProcProgress:{},finishedTopics:[]};return Pi.value&&Pi.value.reduce(function(E1,ct){return E1.coursesProcProgress[typeof ct.course.id=="number"?ct.course.id:0]=ct.progress.reduce(function(It,A2){return It+A2.status},0)/ct.progress.length,E1.finishedTopics=E1.finishedTopics.concat(ct.progress.filter(function(It){return It.status===V.CourseProgressItemElementStatus.COMPLETE}).map(function(It){return It.topic_id})),E1},k1),k1},[Pi]),nw=(0,h.useCallback)(function(k1){return!!(Wr&&Wr.finishedTopics.includes(k1))},[Wr]),rw=(0,h.useCallback)(function(k1){return Wr&&Wr.coursesProcProgress[k1]?Wr.coursesProcProgress[k1]:0},[Wr]),iw=(0,h.useCallback)(function(k1,E1){if(E1===void 0&&(E1=!0),Fo.value===void 0)return null;var ct=(0,nt.getFlatTopics)(Fo.value.lessons),It=ct==null?void 0:ct.findIndex(function(A2){return A2.id===k1});if(It===void 0||It===-1)return null;if(E1){if(Array.isArray(ct)&&ct[It+1])return ct[It+1]||null}else if(Array.isArray(ct)&&ct[It-1])return ct[It-1]||null;return null},[Fo]),Ga=(0,h.useCallback)(function(k1){return C1?w.addVoucher.bind(null,J)(k1,C1).finally(function(){return _2()}):Promise.reject("noToken")},[C1]),t3=(0,h.useCallback)(function(){return C1?w.removeVoucher.bind(null,J)(C1).finally(function(){return _2()}):Promise.reject("noToken")},[C1]);return(0,c.jsx)(t.EscolaLMSContext.Provider,e({value:{confirmAccountDelete:T0,initAccountDelete:y2,token:C1,apiUrl:J,courses:S2,course:Pu,program:Fo,fetchCourses:H2,fetchCourse:WH,fetchProgram:QH,fetchSettings:j4,settings:mH,config:f9,fetchConfig:El,fetchTags:k4,uniqueTags:ve,fetchCategories:O0,categoryTree:N2,login:ht,logout:GH,forgot:Ht,reset:Ot,user:Vt,register:f2,fetchCart:_2,addToCart:ae,removeFromCart:wt,resetCart:Tt,cart:j0,payWithStripe:KH,fetchProgress:XH,fetchPaginatedProgress:JH,paginatedProgress:MH,fetchCourseProgress:ew,progress:Pi,courseProgressDetails:Ni,sendProgress:Uo,fetchTutors:E4,tutors:De,fetchTutor:H9,tutor:VH,fetchOrders:aw,orders:Wu,fetchPayments:w9,payments:wH,pages:C0,fetchPages:de,page:u4,fetchPage:D4,fetchProfile:a2,updateProfile:u2,updateAvatar:_t,topicPing:Mv,topicIsFinished:nw,courseProgress:rw,getNextPrevTopic:iw,h5pProgress:y9,userGroups:gH,fetchUserGroups:UH,userGroup:Tu,fetchUserGroup:FH,registerableGroups:ku,fetchRegisterableGroups:$H,socialAuthorize:Y1,notifications:GM,fetchNotifications:KM,readNotify:fu,readAllNotifications:YM,certificates:Gu,fetchCertificates:NH,fetchCertificate:M9,generateCertificate:X5,mattermostChannels:xH,fetchMattermostChannels:RH,h5p:xa,fetchH5P:N4,emailVerify:Rt,getRefreshedToken:At,tokenExpireDate:Xt,fetchConsultations:ne,consultations:c2,consultation:bu,fetchConsultation:J5,fields:bH,fetchFields:Pl,stationaryEvents:BH,fetchStationaryEvents:uv,fetchStationaryEvent:vv,fetchUserConsultations:pv,userConsultations:uH,bookConsultationTerm:mv,fetchWebinars:P4,fetchWebinar:aa,webinars:p0,payWithP24:YH,getProductInfo:IH,fetchTutorConsultations:z9,approveConsultationTerm:EH,generateConsultationJitsy:gv,rejectConsultationTerm:fv,tutorConsultations:dH,fetchEvents:zv,events:fH,changePassword:Ct,stationaryEvent:av,webinar:gn,userWebinars:Di,fetchUserWebinars:kH,generateWebinarJitsy:PH,realizeVoucher:Ga,removeVoucher:t3,products:Q5,product:OH,fetchQuestionnaires:ZM,fetchQuestionnaire:QM,fetchQuestionnairesAnswers:XM,fetchQuestionnaireStars:JM,fetchQuestionnaireStarsByModel:eH,sendQuestionnaireAnswer:tH,fetchUserStationaryEvents:dv,userStationaryEvents:iv,fetchOrderInvoice:ZH,addMissingProducts:mt,getImagePrefix:N1,getImageSvgPrefix:Z1,changeConsultationTerm:jH,fetchProducts:sv,fetchProduct:hv,courseAccess:L0,fetchCourseAccess:Ur,addCourseAccess:jo,deleteCourseAccess:Io,myCourses:qa,fetchMyCourses:RM,fetchMyAuthoredCourses:tw,myAuthoredCourses:Fu,challenges:s9,fetchChallenges:jM,challenge:h9,fetchChallenge:uu,consultationAccessEnquiry:FM,fetchConsultationAccessEnquiry:IM,consultationAccess:du,fetchConsultationAccess:$M,addConsultationAccess:UM,deleteConsultationAccess:WM,updateConsultationAccess:qM,tasks:V4,fetchTasks:pn,addTask:R4,deleteTask:U5,task:lr,fetchTask:Ir,updateTask:Fr,updateTaskStatus:Ai,createTaskNote:ki,updateTaskNote:W5,deleteTaskNote:q5,bookmarkNotes:Ro,createBookmarkNote:$r,updateBookmarkNote:Dt,deleteBookmarkNote:s2,fetchBookmarkNotes:k0,fetchSubjects:aH,subjects:pu,fetchSchedule:nH,schedule:rH,fetchScheduleTutors:Mu,scheduleTutors:iH,fetchAttendances:oH,attendances:lH,fetchExams:cH,exams:yu,createTeamsChat:DH,fetchSemesters:u9,semesters:xu,fetchAcademicYears:sH,academicYears:Vu}},{children:b1}))},B1=function(H1){var b1=H1.children,J=o(H1,["children"]),f1={defaults:J.defaults,apiUrl:J.apiUrl,ssrHydration:J.ssrHydration},e1=[i1.UserContextProvider,S.CoursesContextProvider,T.CategoriesContextProvider,E.TagsContextProvider,$.TutorsContextProvider,q.WebinarsContextProvider,U.WebinarContextProvider,Y.H5pContextProvider,R.ConsultationsContextProvider,F.PagesContextProvider,X.PageContextProvider,h1.ConsultationAccessContextProvider,s.ConsultationAccessEnquiryContextProvider,a1.NotificationsContextProvider,o1.CourseAccessContextProvider,t1.TasksContextProvider,A.TaskContextProvider,M1.BookmarkNotesContextProvider,s1.CartContextProvider,z1.QuestionnairesContextProvider,m1.SubjectsContextProvider,S1.ScheduleContextProvider,I1.ScheduleTutorsContextProvider,U1.AttendancesContextProvider,P1.ExamsContextProvider,rt.StudentDetailsContextProvider,X1.ChallengesContextProvider].reverse(),G=e1.reduce(function(r1,P,W){return h.default.createElement(P,f1,r1)},h.default.createElement(q1,J,b1));return G};t.EscolaLMSContextProvider=B1}(Nw)),Nw}var ic=w0();const el1="modulepreload",al1=function(t){return"/"+t},mE={},J2=function(e,a,n){let r=Promise.resolve();if(a&&a.length>0){const o=document.getElementsByTagName("link");r=Promise.all(a.map(l=>{if(l=al1(l),l in mE)return;mE[l]=!0;const c=l.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(!!n)for(let v=o.length-1;v>=0;v--){const f=o[v];if(f.href===l&&(!c||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${h}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":el1,c||(u.as="script",u.crossOrigin=""),u.href=l,document.head.appendChild(u),c)return new Promise((v,f)=>{u.addEventListener("load",v),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>e()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})};function yg(t,e){return yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},yg(t,e)}function pa(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,yg(t,e)}var SG={exports:{}},nl1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",rl1=nl1,il1=rl1;function TG(){}function OG(){}OG.resetWarningCache=TG;var ol1=function(){function t(n,r,o,l,c,h){if(h!==il1){var s=new 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}}t.isRequired=t;function e(){return t}var a={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:OG,resetWarningCache:TG};return a.PropTypes=a,a};SG.exports=ol1();var E5=SG.exports;const ut=R0(E5);function Zt(){return Zt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0;u--){var v=n[u];v==="."?Vy(n,u):v===".."?(Vy(n,u),s++):s&&(Vy(n,u),s--)}if(!l)for(;s--;s)n.unshift("..");l&&n[0]!==""&&(!n[0]||!Fv(n[0]))&&n.unshift("");var f=n.join("/");return c&&f.substr(-1)!=="/"&&(f+="/"),f}function zE(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}function ff(t,e){if(t===e)return!0;if(t==null||e==null)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(r,o){return ff(r,e[o])});if(typeof t=="object"||typeof e=="object"){var a=zE(t),n=zE(e);return a!==t||n!==e?ff(a,n):Object.keys(Object.assign({},t,e)).every(function(r){return ff(t[r],e[r])})}return!1}var cl1="Invariant failed";function P5(t,e){if(!t)throw new Error(cl1)}const ue0=Object.freeze(Object.defineProperty({__proto__:null,default:P5},Symbol.toStringTag,{value:"Module"}));function $7(t){return t.charAt(0)==="/"?t:"/"+t}function ME(t){return t.charAt(0)==="/"?t.substr(1):t}function sl1(t,e){return t.toLowerCase().indexOf(e.toLowerCase())===0&&"/?#".indexOf(t.charAt(e.length))!==-1}function AG(t,e){return sl1(t,e)?t.substr(e.length):t}function kG(t){return t.charAt(t.length-1)==="/"?t.slice(0,-1):t}function hl1(t){var e=t||"/",a="",n="",r=e.indexOf("#");r!==-1&&(n=e.substr(r),e=e.substr(0,r));var o=e.indexOf("?");return o!==-1&&(a=e.substr(o),e=e.substr(0,o)),{pathname:e,search:a==="?"?"":a,hash:n==="#"?"":n}}function Oa(t){var e=t.pathname,a=t.search,n=t.hash,r=e||"/";return a&&a!=="?"&&(r+=a.charAt(0)==="?"?a:"?"+a),n&&n!=="#"&&(r+=n.charAt(0)==="#"?n:"#"+n),r}function va(t,e,a,n){var r;typeof t=="string"?(r=hl1(t),r.state=e):(r=Zt({},t),r.pathname===void 0&&(r.pathname=""),r.search?r.search.charAt(0)!=="?"&&(r.search="?"+r.search):r.search="",r.hash?r.hash.charAt(0)!=="#"&&(r.hash="#"+r.hash):r.hash="",e!==void 0&&r.state===void 0&&(r.state=e));try{r.pathname=decodeURI(r.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return a&&(r.key=a),n?r.pathname?r.pathname.charAt(0)!=="/"&&(r.pathname=ll1(r.pathname,n.pathname)):r.pathname=n.pathname:r.pathname||(r.pathname="/"),r}function ul1(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&ff(t.state,e.state)}function m_(){var t=null;function e(l){return t=l,function(){t===l&&(t=null)}}function a(l,c,h,s){if(t!=null){var u=typeof t=="function"?t(l,c):t;typeof u=="string"?typeof h=="function"?h(u,s):s(!0):s(u!==!1)}else s(!0)}var n=[];function r(l){var c=!0;function h(){c&&l.apply(void 0,arguments)}return n.push(h),function(){c=!1,n=n.filter(function(s){return s!==h})}}function o(){for(var l=arguments.length,c=new Array(l),h=0;h$?q.splice($,q.length-$,S):q.push(S),u({action:B,location:S,index:$,entries:q})}})}function H(C,L){var B="REPLACE",S=va(C,L,v(),V.location);s.confirmTransitionTo(S,B,a,function(T){T&&(V.entries[V.index]=S,u({action:B,location:S}))})}function p(C){var L=VE(V.index+C,0,V.entries.length-1),B="POP",S=V.entries[L];s.confirmTransitionTo(S,B,a,function(T){T?u({action:B,location:S,index:L}):u()})}function m(){p(-1)}function z(){p(1)}function w(C){var L=V.index+C;return L>=0&&L=0)&&(a[r]=t[r]);return a}var C_=V_,Pl1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Nl1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Dl1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},UG={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},b_={};b_[C_.ForwardRef]=Dl1;b_[C_.Memo]=UG;function CE(t){return C_.isMemo(t)?UG:b_[t.$$typeof]||Pl1}var Rl1=Object.defineProperty,jl1=Object.getOwnPropertyNames,bE=Object.getOwnPropertySymbols,Il1=Object.getOwnPropertyDescriptor,Fl1=Object.getPrototypeOf,LE=Object.prototype;function WG(t,e,a){if(typeof e!="string"){if(LE){var n=Fl1(e);n&&n!==LE&&WG(t,n,a)}var r=jl1(e);bE&&(r=r.concat(bE(e)));for(var o=CE(t),l=CE(e),c=0;c"u"&&(oc=T_);function c61(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var s61=oc(function(t,e){var a=t.innerRef,n=t.navigate,r=t.onClick,o=N5(t,["innerRef","navigate","onClick"]),l=o.target,c=Zt({},o,{onClick:function(s){try{r&&r(s)}catch(u){throw s.preventDefault(),u}!s.defaultPrevented&&s.button===0&&(!l||l==="_self")&&!c61(s)&&(s.preventDefault(),n())}});return T_!==oc?c.ref=e||a:c.ref=a,W1.createElement("a",c)}),pf=oc(function(t,e){var a=t.component,n=a===void 0?s61:a,r=t.replace,o=t.to,l=t.innerRef,c=N5(t,["component","replace","to","innerRef"]);return W1.createElement(w5.Consumer,null,function(h){h||P5(!1);var s=h.history,u=nb(ab(o,h.location),h.location),v=u?s.createHref(u):"",f=Zt({},c,{href:v,navigate:function(){var M=ab(o,h.location),g=Oa(h.location)===Oa(nb(M)),H=r||g?s.replace:s.push;H(M)}});return T_!==oc?f.ref=e||l:f.innerRef=l,W1.createElement(n,f)})}),YG=function(e){return e},Vg=W1.forwardRef;typeof Vg>"u"&&(Vg=YG);function h61(){for(var t=arguments.length,e=new Array(t),a=0;a{const{login:a}=l0,{user:n}=_.useContext(ic.EscolaLMSContext),r=e.location&&e.location.pathname||e.path;return I.jsx(zr,{...e,render:o=>n.value&&n.value.id?I.jsx(t,{...o}):I.jsx(L_,{to:{pathname:a,search:`?referrer=${r}`,state:{referrer:r}}})})},Hn=({component:t,...e})=>{var c,h;const{login:a}=l0,{user:n,fetchConfig:r,config:o}=_.useContext(ic.EscolaLMSContext);W1.useEffect(()=>{r()},[r]);const l=((h=(c=o==null?void 0:o.value)==null?void 0:c.escolalms_courses)==null?void 0:h.platform_visibility)==="public"||!1;return I.jsx(zr,{...e,render:s=>l||n.value&&n.value.id?I.jsx(t,{...s}):I.jsx(L_,{to:{pathname:a}})})},u61=({component:t,...e})=>{var h,s,u,v;const{login:a}=l0,{user:n,fetchConfig:r,config:o}=_.useContext(ic.EscolaLMSContext);W1.useEffect(()=>{r()},[r]);const l=((s=(h=o==null?void 0:o.value)==null?void 0:h.escolalms_courses)==null?void 0:s.platform_visibility)==="public"||!1,c=((v=(u=o==null?void 0:o.value)==null?void 0:u.escolalms_courses)==null?void 0:v.course_visibility)==="show_all"||!1;return I.jsx(zr,{...e,render:f=>l&&!(n.value&&n.value.id)||n.value&&n.value.id&&c?I.jsx(t,{...f}):I.jsx(L_,{to:{pathname:a}})})},v61=()=>"HashRouter";function d61(){const{pathname:t}=KG();return _.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[t]),null}var f61=function(e,a,n,r){var o=n?n.call(r,e,a):void 0;if(o!==void 0)return!!o;if(e===a)return!0;if(typeof e!="object"||!e||typeof a!="object"||!a)return!1;var l=Object.keys(e),c=Object.keys(a);if(l.length!==c.length)return!1;for(var h=Object.prototype.hasOwnProperty.bind(a),s=0;sS1)&&(et=(B1=B1.replace(" ",":")).length),0h1&&(h1=(A=A.trim()).charCodeAt(0)),h1){case 38:return A.replace(p,"$1"+J.trim());case 58:return J.trim()+A.replace(p,"$1"+J.trim());default:if(0<1*o1&&0s1.charCodeAt(8))break;case 115:a1=a1.replace(s1,"-webkit-"+s1)+";"+a1;break;case 207:case 102:a1=a1.replace(s1,"-webkit-"+(102o1.charCodeAt(0)&&(o1=o1.trim()),i1=o1,o1=[i1],01?e-1:0),n=1;n0?" Args: "+a.join(", "):""))}var x61=function(){function t(a){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=a}var e=t.prototype;return e.indexOfGroup=function(a){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,l=o;a>=l;)(l<<=1)<0&&Vr(16,""+a);this.groupSizes=new Uint32Array(l),this.groupSizes.set(r),this.length=l;for(var c=o;c=this.length||this.groupSizes[a]===0)return n;for(var r=this.groupSizes[a],o=this.indexOfGroup(a),l=o+r,c=o;c=0)&&(a[r]=t[r]);return a}var C_=V_,Pl1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Nl1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Dl1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},UG={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},b_={};b_[C_.ForwardRef]=Dl1;b_[C_.Memo]=UG;function CE(t){return C_.isMemo(t)?UG:b_[t.$$typeof]||Pl1}var Rl1=Object.defineProperty,jl1=Object.getOwnPropertyNames,bE=Object.getOwnPropertySymbols,Il1=Object.getOwnPropertyDescriptor,Fl1=Object.getPrototypeOf,LE=Object.prototype;function WG(t,e,a){if(typeof e!="string"){if(LE){var n=Fl1(e);n&&n!==LE&&WG(t,n,a)}var r=jl1(e);bE&&(r=r.concat(bE(e)));for(var o=CE(t),l=CE(e),c=0;c"u"&&(oc=T_);function c61(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var s61=oc(function(t,e){var a=t.innerRef,n=t.navigate,r=t.onClick,o=N5(t,["innerRef","navigate","onClick"]),l=o.target,c=Zt({},o,{onClick:function(s){try{r&&r(s)}catch(u){throw s.preventDefault(),u}!s.defaultPrevented&&s.button===0&&(!l||l==="_self")&&!c61(s)&&(s.preventDefault(),n())}});return T_!==oc?c.ref=e||a:c.ref=a,W1.createElement("a",c)}),pf=oc(function(t,e){var a=t.component,n=a===void 0?s61:a,r=t.replace,o=t.to,l=t.innerRef,c=N5(t,["component","replace","to","innerRef"]);return W1.createElement(w5.Consumer,null,function(h){h||P5(!1);var s=h.history,u=nb(ab(o,h.location),h.location),v=u?s.createHref(u):"",f=Zt({},c,{href:v,navigate:function(){var M=ab(o,h.location),g=Oa(h.location)===Oa(nb(M)),H=r||g?s.replace:s.push;H(M)}});return T_!==oc?f.ref=e||l:f.innerRef=l,W1.createElement(n,f)})}),YG=function(e){return e},Vg=W1.forwardRef;typeof Vg>"u"&&(Vg=YG);function h61(){for(var t=arguments.length,e=new Array(t),a=0;a{const{login:a}=e0,{user:n}=_.useContext(ic.EscolaLMSContext),r=e.location&&e.location.pathname||e.path;return I.jsx(zr,{...e,render:o=>n.value&&n.value.id?I.jsx(t,{...o}):I.jsx(L_,{to:{pathname:a,search:`?referrer=${r}`,state:{referrer:r}}})})},Hn=({component:t,...e})=>{var c,h;const{login:a}=e0,{user:n,fetchConfig:r,config:o}=_.useContext(ic.EscolaLMSContext);W1.useEffect(()=>{r()},[r]);const l=((h=(c=o==null?void 0:o.value)==null?void 0:c.escolalms_courses)==null?void 0:h.platform_visibility)==="public"||!1;return I.jsx(zr,{...e,render:s=>l||n.value&&n.value.id?I.jsx(t,{...s}):I.jsx(L_,{to:{pathname:a}})})},u61=({component:t,...e})=>{var h,s,u,v;const{login:a}=e0,{user:n,fetchConfig:r,config:o}=_.useContext(ic.EscolaLMSContext);W1.useEffect(()=>{r()},[r]);const l=((s=(h=o==null?void 0:o.value)==null?void 0:h.escolalms_courses)==null?void 0:s.platform_visibility)==="public"||!1,c=((v=(u=o==null?void 0:o.value)==null?void 0:u.escolalms_courses)==null?void 0:v.course_visibility)==="show_all"||!1;return I.jsx(zr,{...e,render:f=>l&&!(n.value&&n.value.id)||n.value&&n.value.id&&c?I.jsx(t,{...f}):I.jsx(L_,{to:{pathname:a}})})},v61=()=>"HashRouter";function d61(){const{pathname:t}=KG();return _.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[t]),null}var f61=function(e,a,n,r){var o=n?n.call(r,e,a):void 0;if(o!==void 0)return!!o;if(e===a)return!0;if(typeof e!="object"||!e||typeof a!="object"||!a)return!1;var l=Object.keys(e),c=Object.keys(a);if(l.length!==c.length)return!1;for(var h=Object.prototype.hasOwnProperty.bind(a),s=0;sS1)&&(et=(B1=B1.replace(" ",":")).length),0h1&&(h1=(A=A.trim()).charCodeAt(0)),h1){case 38:return A.replace(p,"$1"+t1.trim());case 58:return t1.trim()+A.replace(p,"$1"+t1.trim());default:if(0<1*o1&&0s1.charCodeAt(8))break;case 115:a1=a1.replace(s1,"-webkit-"+s1)+";"+a1;break;case 207:case 102:a1=a1.replace(s1,"-webkit-"+(102o1.charCodeAt(0)&&(o1=o1.trim()),i1=o1,o1=[i1],01?e-1:0),n=1;n0?" Args: "+a.join(", "):""))}var x61=function(){function t(a){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=a}var e=t.prototype;return e.indexOfGroup=function(a){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,l=o;a>=l;)(l<<=1)<0&&Vr(16,""+a);this.groupSizes=new Uint32Array(l),this.groupSizes.set(r),this.length=l;for(var c=o;c=this.length||this.groupSizes[a]===0)return n;for(var r=this.groupSizes[a],o=this.indexOfGroup(a),l=o+r,c=o;c=U7&&(U7=e+1),mf.set(t,e),bg.set(e,t)},b61="style["+co+'][data-styled-version="5.3.11"]',L61=new RegExp("^"+co+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),B61=function(t,e,a){for(var n,r=a.split(","),o=0,l=r.length;o=0;s--){var u=h[s];if(u&&u.nodeType===1&&u.hasAttribute(co))return u}}(a),o=r!==void 0?r.nextSibling:null;n.setAttribute(co,"active"),n.setAttribute("data-styled-version","5.3.11");var l=ob();return l&&n.setAttribute("nonce",l),a.insertBefore(n,o),n},S61=function(){function t(a){var n=this.element=ZG(a);n.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,l=0,c=o.length;l=0){var r=document.createTextNode(n),o=this.nodes[a];return this.element.insertBefore(r,o||null),this.length++,!0}return!1},e.deleteRule=function(a){this.element.removeChild(this.nodes[a]),this.length--},e.getRule=function(a){return a0&&(v+=f+",")}),o+=""+s+u+'{content:"'+v+`"}/*!sc*/ -`}}}return o}(this)},t}(),k61=/(a)(d)/gi,DE=function(t){return String.fromCharCode(t+(t>25?39:97))};function lb(t){var e,a="";for(e=Math.abs(t);e>52;e=e/52|0)a=DE(e%52)+a;return(DE(e%52)+a).replace(k61,"$1-$2")}var H6=function(t,e){for(var a=e.length;a;)t=33*t^e.charCodeAt(--a);return t},QG=function(t){return H6(5381,t)};function XG(t){for(var e=0;e>>0);if(!a.hasNameForId(r,c)){var h=n(l,"."+c,void 0,r);a.insertRules(r,c,h)}o.push(c),this.staticRulesId=c}else{for(var s=this.rules.length,u=H6(this.baseHash,n.hash),v="",f=0;f>>0);if(!a.hasNameForId(r,H)){var p=n(v,"."+H,void 0,r);a.insertRules(r,H,p)}o.push(H)}}return o.join(" ")},t}(),N61=/^\s*\/\/.*$/gm,D61=[":","[",".","#"];function JG(t){var e,a,n,r,o=t===void 0?to:t,l=o.options,c=l===void 0?to:l,h=o.plugins,s=h===void 0?Cg:h,u=new p61(c),v=[],f=function(g){function H(p){if(p)try{g(p+"}")}catch{}}return function(p,m,z,w,x,y,V,C,L,B){switch(p){case 1:if(L===0&&m.charCodeAt(0)===64)return g(m+";"),"";break;case 2:if(C===0)return m+"/*|*/";break;case 3:switch(C){case 102:case 112:return g(z[0]+m),"";default:return m+(B===0?"/*|*/":"")}case-2:m.split("/*|*/}").forEach(H)}}}(function(g){v.push(g)}),d=function(g,H,p){return H===0&&D61.indexOf(p[a.length])!==-1||p.match(r)?g:"."+e};function M(g,H,p,m){m===void 0&&(m="&");var z=g.replace(N61,""),w=H&&p?p+" "+H+" { "+z+" }":z;return e=m,a=H,n=new RegExp("\\"+a+"\\b","g"),r=new RegExp("(\\"+a+"\\b){2,}"),u(p||!H?"":H,w)}return u.use([].concat(s,[function(g,H,p){g===2&&p.length&&p[0].lastIndexOf(a)>0&&(p[0]=p[0].replace(n,d))},f,function(g){if(g===-2){var H=v;return v=[],H}}])),M.hash=s.length?s.reduce(function(g,H){return H.name||Vr(15),H6(g,H.name)},5381).toString():"",M}var Sm=W1.createContext(),R61=Sm.Consumer,A_=W1.createContext(),tK=(A_.Consumer,new cc),cb=JG();function k_(){return _.useContext(Sm)||tK}function eK(){return _.useContext(A_)||cb}function aK(t){var e=_.useState(t.stylisPlugins),a=e[0],n=e[1],r=k_(),o=_.useMemo(function(){var c=r;return t.sheet?c=t.sheet:t.target&&(c=c.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(c=c.reconstructWithOptions({useCSSOMInjection:!1})),c},[t.disableCSSOMInjection,t.sheet,t.target]),l=_.useMemo(function(){return JG({options:{prefix:!t.disableVendorPrefixes},plugins:a})},[t.disableVendorPrefixes,a]);return _.useEffect(function(){g61(a,t.stylisPlugins)||n(t.stylisPlugins)},[t.stylisPlugins]),W1.createElement(Sm.Provider,{value:o},W1.createElement(A_.Provider,{value:l},t.children))}var nK=function(){function t(e,a){var n=this;this.inject=function(r,o){o===void 0&&(o=cb);var l=n.name+o.hash;r.hasNameForId(n.id,l)||r.insertRules(n.id,l,o(n.rules,l,"@keyframes"))},this.toString=function(){return Vr(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=a}return t.prototype.getName=function(e){return e===void 0&&(e=cb),this.name+e.hash},t}(),j61=/([A-Z])/,I61=/([A-Z])/g,F61=/^ms-/,$61=function(t){return"-"+t.toLowerCase()};function RE(t){return j61.test(t)?t.replace(I61,$61).replace(F61,"-ms-"):t}var jE=function(t){return t==null||t===!1||t===""};function Z8(t,e,a,n){if(Array.isArray(t)){for(var r,o=[],l=0,c=t.length;l1?e-1:0),n=1;n?@[\\\]^`{|}~-]+/g,W61=/(^-|-$)/g;function _y(t){return t.replace(U61,"-").replace(W61,"")}var P_=function(t){return lb(QG(t)>>>0)};function Uv(t){return typeof t=="string"&&!0}var sb=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},q61=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function G61(t,e,a){var n=t[a];sb(e)&&sb(n)?rK(n,e):t[a]=e}function rK(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),n=1;n=0||(B[C]=y[C]);return B}(e,["componentId"]),x=z&&z+"-"+(Uv(m)?m:_y(ib(m)));return iK(m,an({},w,{attrs:f,componentId:x}),a)},Object.defineProperty(M,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(m){this._foldedDefaultProps=n?rK({},t.defaultProps,m):m}}),Object.defineProperty(M,"toString",{value:function(){return"."+M.styledComponentId}}),r&&Lh(M,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),M}var ma=function(t){return function e(a,n,r){if(r===void 0&&(r=to),!V_.isValidElementType(n))return Vr(1,String(n));var o=function(){return a(n,r,Tm.apply(void 0,arguments))};return o.withConfig=function(l){return e(a,n,an({},r,{},l))},o.attrs=function(l){return e(a,n,an({},r,{attrs:Array.prototype.concat(r.attrs,l).filter(Boolean)}))},o}(iK,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(t){ma[t]=ma(t)});var Z61=function(){function t(a,n){this.rules=a,this.componentId=n,this.isStatic=XG(a),cc.registerId(this.componentId+1)}var e=t.prototype;return e.createStyles=function(a,n,r,o){var l=o(Z8(this.rules,n,r,o).join(""),""),c=this.componentId+a;r.insertRules(c,c,l)},e.removeStyles=function(a,n){n.clearRules(this.componentId+a)},e.renderStyles=function(a,n,r,o){a>2&&cc.registerId(this.componentId+a),this.removeStyles(a,r),this.createStyles(a,n,r,o)},t}();function Om(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),n=1;n1?e-1:0),n=1;n"+n+""},this.getStyleTags=function(){return a.sealed?Vr(2):a._emitSheetCSS()},this.getStyleElement=function(){var n;if(a.sealed)return Vr(2);var r=((n={})[co]="",n["data-styled-version"]="5.3.11",n.dangerouslySetInnerHTML={__html:a.instance.toString()},n),o=ob();return o&&(r.nonce=o),[W1.createElement("style",an({},r,{key:"sc-0-0"}))]},this.seal=function(){a.sealed=!0},this.instance=new cc({isServer:!0}),this.sealed=!1}var e=t.prototype;return e.collectStyles=function(a){return this.sealed?Vr(2):W1.createElement(aK,{sheet:this.instance},a)},e.interleaveWithNodeStream=function(a){return Vr(3)},t}(),J61=function(t){var e=W1.forwardRef(function(a,n){var r=_.useContext(so),o=t.defaultProps,l=E_(a,r,o);return W1.createElement(t,an({},a,{theme:l,ref:n}))});return Lh(e,t),e.displayName="WithTheme("+ib(t)+")",e},N_=function(){return _.useContext(so)},tc1={StyleSheet:cc,masterSheet:tK};const ec1=Object.freeze(Object.defineProperty({__proto__:null,ServerStyleSheet:X61,StyleSheetConsumer:R61,StyleSheetContext:Sm,StyleSheetManager:aK,ThemeConsumer:K61,ThemeContext:so,ThemeProvider:Y61,__PRIVATE__:tc1,createGlobalStyle:Om,css:Tm,default:ma,isStyledComponent:_m,keyframes:Q61,useTheme:N_,version:H61,withTheme:J61},Symbol.toStringTag,{value:"Module"}));function ac1(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var oK=_,nc1=ac1(oK);function FE(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function rc1(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var ic1=!!(typeof window<"u"&&window.document&&window.document.createElement);function oc1(t,e,a){if(typeof t!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof a<"u"&&typeof a!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function n(r){return r.displayName||r.name||"Component"}return function(o){if(typeof o!="function")throw new Error("Expected WrappedComponent to be a React component.");var l=[],c;function h(){c=t(l.map(function(u){return u.props})),s.canUseDOM?e(c):a&&(c=a(c))}var s=function(u){rc1(v,u);function v(){return u.apply(this,arguments)||this}v.peek=function(){return c},v.rewind=function(){if(v.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var M=c;return c=void 0,l=[],M};var f=v.prototype;return f.UNSAFE_componentWillMount=function(){l.push(this),h()},f.componentDidUpdate=function(){h()},f.componentWillUnmount=function(){var M=l.indexOf(this);l.splice(M,1),h()},f.render=function(){return nc1.createElement(o,this.props)},v}(oK.PureComponent);return FE(s,"displayName","SideEffect("+n(o)+")"),FE(s,"canUseDOM",ic1),s}}var lc1=oc1;const cc1=R0(lc1);var sc1=typeof Element<"u",hc1=typeof Map=="function",uc1=typeof Set=="function",vc1=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function zf(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var a,n,r;if(Array.isArray(t)){if(a=t.length,a!=e.length)return!1;for(n=a;n--!==0;)if(!zf(t[n],e[n]))return!1;return!0}var o;if(hc1&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o=t.entries();!(n=o.next()).done;)if(!e.has(n.value[0]))return!1;for(o=t.entries();!(n=o.next()).done;)if(!zf(n.value[1],e.get(n.value[0])))return!1;return!0}if(uc1&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o=t.entries();!(n=o.next()).done;)if(!e.has(n.value[0]))return!1;return!0}if(vc1&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(a=t.length,a!=e.length)return!1;for(n=a;n--!==0;)if(t[n]!==e[n])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(r=Object.keys(t),a=r.length,a!==Object.keys(e).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[n]))return!1;if(sc1&&t instanceof Element)return!1;for(n=a;n--!==0;)if(!((r[n]==="_owner"||r[n]==="__v"||r[n]==="__o")&&t.$$typeof)&&!zf(t[r[n]],e[r[n]]))return!1;return!0}return t!==t&&e!==e}var dc1=function(e,a){try{return zf(e,a)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const fc1=R0(dc1);/* +`),n=[],r=0,o=a.length;r=0;s--){var u=h[s];if(u&&u.nodeType===1&&u.hasAttribute(co))return u}}(a),o=r!==void 0?r.nextSibling:null;n.setAttribute(co,"active"),n.setAttribute("data-styled-version","5.3.11");var l=ob();return l&&n.setAttribute("nonce",l),a.insertBefore(n,o),n},S61=function(){function t(a){var n=this.element=ZG(a);n.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,l=0,c=o.length;l=0){var r=document.createTextNode(n),o=this.nodes[a];return this.element.insertBefore(r,o||null),this.length++,!0}return!1},e.deleteRule=function(a){this.element.removeChild(this.nodes[a]),this.length--},e.getRule=function(a){return a0&&(v+=f+",")}),o+=""+s+u+'{content:"'+v+`"}/*!sc*/ +`}}}return o}(this)},t}(),k61=/(a)(d)/gi,DE=function(t){return String.fromCharCode(t+(t>25?39:97))};function lb(t){var e,a="";for(e=Math.abs(t);e>52;e=e/52|0)a=DE(e%52)+a;return(DE(e%52)+a).replace(k61,"$1-$2")}var H6=function(t,e){for(var a=e.length;a;)t=33*t^e.charCodeAt(--a);return t},QG=function(t){return H6(5381,t)};function XG(t){for(var e=0;e>>0);if(!a.hasNameForId(r,c)){var h=n(l,"."+c,void 0,r);a.insertRules(r,c,h)}o.push(c),this.staticRulesId=c}else{for(var s=this.rules.length,u=H6(this.baseHash,n.hash),v="",f=0;f>>0);if(!a.hasNameForId(r,H)){var p=n(v,"."+H,void 0,r);a.insertRules(r,H,p)}o.push(H)}}return o.join(" ")},t}(),N61=/^\s*\/\/.*$/gm,D61=[":","[",".","#"];function JG(t){var e,a,n,r,o=t===void 0?to:t,l=o.options,c=l===void 0?to:l,h=o.plugins,s=h===void 0?Cg:h,u=new p61(c),v=[],f=function(g){function H(p){if(p)try{g(p+"}")}catch{}}return function(p,m,z,w,x,y,V,C,L,B){switch(p){case 1:if(L===0&&m.charCodeAt(0)===64)return g(m+";"),"";break;case 2:if(C===0)return m+"/*|*/";break;case 3:switch(C){case 102:case 112:return g(z[0]+m),"";default:return m+(B===0?"/*|*/":"")}case-2:m.split("/*|*/}").forEach(H)}}}(function(g){v.push(g)}),d=function(g,H,p){return H===0&&D61.indexOf(p[a.length])!==-1||p.match(r)?g:"."+e};function M(g,H,p,m){m===void 0&&(m="&");var z=g.replace(N61,""),w=H&&p?p+" "+H+" { "+z+" }":z;return e=m,a=H,n=new RegExp("\\"+a+"\\b","g"),r=new RegExp("(\\"+a+"\\b){2,}"),u(p||!H?"":H,w)}return u.use([].concat(s,[function(g,H,p){g===2&&p.length&&p[0].lastIndexOf(a)>0&&(p[0]=p[0].replace(n,d))},f,function(g){if(g===-2){var H=v;return v=[],H}}])),M.hash=s.length?s.reduce(function(g,H){return H.name||Vr(15),H6(g,H.name)},5381).toString():"",M}var Sm=W1.createContext(),R61=Sm.Consumer,A_=W1.createContext(),tK=(A_.Consumer,new cc),cb=JG();function k_(){return _.useContext(Sm)||tK}function eK(){return _.useContext(A_)||cb}function aK(t){var e=_.useState(t.stylisPlugins),a=e[0],n=e[1],r=k_(),o=_.useMemo(function(){var c=r;return t.sheet?c=t.sheet:t.target&&(c=c.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(c=c.reconstructWithOptions({useCSSOMInjection:!1})),c},[t.disableCSSOMInjection,t.sheet,t.target]),l=_.useMemo(function(){return JG({options:{prefix:!t.disableVendorPrefixes},plugins:a})},[t.disableVendorPrefixes,a]);return _.useEffect(function(){g61(a,t.stylisPlugins)||n(t.stylisPlugins)},[t.stylisPlugins]),W1.createElement(Sm.Provider,{value:o},W1.createElement(A_.Provider,{value:l},t.children))}var nK=function(){function t(e,a){var n=this;this.inject=function(r,o){o===void 0&&(o=cb);var l=n.name+o.hash;r.hasNameForId(n.id,l)||r.insertRules(n.id,l,o(n.rules,l,"@keyframes"))},this.toString=function(){return Vr(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=a}return t.prototype.getName=function(e){return e===void 0&&(e=cb),this.name+e.hash},t}(),j61=/([A-Z])/,I61=/([A-Z])/g,F61=/^ms-/,$61=function(t){return"-"+t.toLowerCase()};function RE(t){return j61.test(t)?t.replace(I61,$61).replace(F61,"-ms-"):t}var jE=function(t){return t==null||t===!1||t===""};function Z8(t,e,a,n){if(Array.isArray(t)){for(var r,o=[],l=0,c=t.length;l1?e-1:0),n=1;n?@[\\\]^`{|}~-]+/g,W61=/(^-|-$)/g;function _y(t){return t.replace(U61,"-").replace(W61,"")}var P_=function(t){return lb(QG(t)>>>0)};function Uv(t){return typeof t=="string"&&!0}var sb=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},q61=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function G61(t,e,a){var n=t[a];sb(e)&&sb(n)?rK(n,e):t[a]=e}function rK(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),n=1;n=0||(B[C]=y[C]);return B}(e,["componentId"]),x=z&&z+"-"+(Uv(m)?m:_y(ib(m)));return iK(m,nn({},w,{attrs:f,componentId:x}),a)},Object.defineProperty(M,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(m){this._foldedDefaultProps=n?rK({},t.defaultProps,m):m}}),Object.defineProperty(M,"toString",{value:function(){return"."+M.styledComponentId}}),r&&Lh(M,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),M}var ma=function(t){return function e(a,n,r){if(r===void 0&&(r=to),!V_.isValidElementType(n))return Vr(1,String(n));var o=function(){return a(n,r,Tm.apply(void 0,arguments))};return o.withConfig=function(l){return e(a,n,nn({},r,{},l))},o.attrs=function(l){return e(a,n,nn({},r,{attrs:Array.prototype.concat(r.attrs,l).filter(Boolean)}))},o}(iK,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(t){ma[t]=ma(t)});var Z61=function(){function t(a,n){this.rules=a,this.componentId=n,this.isStatic=XG(a),cc.registerId(this.componentId+1)}var e=t.prototype;return e.createStyles=function(a,n,r,o){var l=o(Z8(this.rules,n,r,o).join(""),""),c=this.componentId+a;r.insertRules(c,c,l)},e.removeStyles=function(a,n){n.clearRules(this.componentId+a)},e.renderStyles=function(a,n,r,o){a>2&&cc.registerId(this.componentId+a),this.removeStyles(a,r),this.createStyles(a,n,r,o)},t}();function Om(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),n=1;n1?e-1:0),n=1;n"+n+""},this.getStyleTags=function(){return a.sealed?Vr(2):a._emitSheetCSS()},this.getStyleElement=function(){var n;if(a.sealed)return Vr(2);var r=((n={})[co]="",n["data-styled-version"]="5.3.11",n.dangerouslySetInnerHTML={__html:a.instance.toString()},n),o=ob();return o&&(r.nonce=o),[W1.createElement("style",nn({},r,{key:"sc-0-0"}))]},this.seal=function(){a.sealed=!0},this.instance=new cc({isServer:!0}),this.sealed=!1}var e=t.prototype;return e.collectStyles=function(a){return this.sealed?Vr(2):W1.createElement(aK,{sheet:this.instance},a)},e.interleaveWithNodeStream=function(a){return Vr(3)},t}(),J61=function(t){var e=W1.forwardRef(function(a,n){var r=_.useContext(so),o=t.defaultProps,l=E_(a,r,o);return W1.createElement(t,nn({},a,{theme:l,ref:n}))});return Lh(e,t),e.displayName="WithTheme("+ib(t)+")",e},N_=function(){return _.useContext(so)},tc1={StyleSheet:cc,masterSheet:tK};const ec1=Object.freeze(Object.defineProperty({__proto__:null,ServerStyleSheet:X61,StyleSheetConsumer:R61,StyleSheetContext:Sm,StyleSheetManager:aK,ThemeConsumer:K61,ThemeContext:so,ThemeProvider:Y61,__PRIVATE__:tc1,createGlobalStyle:Om,css:Tm,default:ma,isStyledComponent:_m,keyframes:Q61,useTheme:N_,version:H61,withTheme:J61},Symbol.toStringTag,{value:"Module"}));function ac1(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var oK=_,nc1=ac1(oK);function FE(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function rc1(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var ic1=!!(typeof window<"u"&&window.document&&window.document.createElement);function oc1(t,e,a){if(typeof t!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof a<"u"&&typeof a!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function n(r){return r.displayName||r.name||"Component"}return function(o){if(typeof o!="function")throw new Error("Expected WrappedComponent to be a React component.");var l=[],c;function h(){c=t(l.map(function(u){return u.props})),s.canUseDOM?e(c):a&&(c=a(c))}var s=function(u){rc1(v,u);function v(){return u.apply(this,arguments)||this}v.peek=function(){return c},v.rewind=function(){if(v.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var M=c;return c=void 0,l=[],M};var f=v.prototype;return f.UNSAFE_componentWillMount=function(){l.push(this),h()},f.componentDidUpdate=function(){h()},f.componentWillUnmount=function(){var M=l.indexOf(this);l.splice(M,1),h()},f.render=function(){return nc1.createElement(o,this.props)},v}(oK.PureComponent);return FE(s,"displayName","SideEffect("+n(o)+")"),FE(s,"canUseDOM",ic1),s}}var lc1=oc1;const cc1=R0(lc1);var sc1=typeof Element<"u",hc1=typeof Map=="function",uc1=typeof Set=="function",vc1=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function zf(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var a,n,r;if(Array.isArray(t)){if(a=t.length,a!=e.length)return!1;for(n=a;n--!==0;)if(!zf(t[n],e[n]))return!1;return!0}var o;if(hc1&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o=t.entries();!(n=o.next()).done;)if(!e.has(n.value[0]))return!1;for(o=t.entries();!(n=o.next()).done;)if(!zf(n.value[1],e.get(n.value[0])))return!1;return!0}if(uc1&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o=t.entries();!(n=o.next()).done;)if(!e.has(n.value[0]))return!1;return!0}if(vc1&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(a=t.length,a!=e.length)return!1;for(n=a;n--!==0;)if(t[n]!==e[n])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(r=Object.keys(t),a=r.length,a!==Object.keys(e).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[n]))return!1;if(sc1&&t instanceof Element)return!1;for(n=a;n--!==0;)if(!((r[n]==="_owner"||r[n]==="__v"||r[n]==="__o")&&t.$$typeof)&&!zf(t[r[n]],e[r[n]]))return!1;return!0}return t!==t&&e!==e}var dc1=function(e,a){try{return zf(e,a)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const fc1=R0(dc1);/* object-assign (c) Sindre Sorhus @license MIT -*/var $E=Object.getOwnPropertySymbols,gc1=Object.prototype.hasOwnProperty,pc1=Object.prototype.propertyIsEnumerable;function mc1(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function zc1(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},a=0;a<10;a++)e["_"+String.fromCharCode(a)]=a;var n=Object.getOwnPropertyNames(e).map(function(o){return e[o]});if(n.join("")!=="0123456789")return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(o){r[o]=o}),Object.keys(Object.assign({},r)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Mc1=zc1()?Object.assign:function(t,e){for(var a,n=mc1(t),r,o=1;o=0||Object.prototype.hasOwnProperty.call(t,n)&&(a[n]=t[n]);return a},Lc1=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},hb=function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},Bc1=function(e){var a=k6(e,V2.TITLE),n=k6(e,Ps.TITLE_TEMPLATE);if(n&&a)return n.replace(/%s/g,function(){return Array.isArray(a)?a.join(""):a});var r=k6(e,Ps.DEFAULT_TITLE);return a||r||void 0},_c1=function(e){return k6(e,Ps.ON_CHANGE_CLIENT_STATE)||function(){}},Ty=function(e,a){return a.filter(function(n){return typeof n[e]<"u"}).map(function(n){return n[e]}).reduce(function(n,r){return La({},n,r)},{})},Sc1=function(e,a){return a.filter(function(n){return typeof n[V2.BASE]<"u"}).map(function(n){return n[V2.BASE]}).reverse().reduce(function(n,r){if(!n.length)for(var o=Object.keys(r),l=0;l=0;n--){var r=e[n];if(r.hasOwnProperty(a))return r[a]}return null},Tc1=function(e){return{baseTag:Sc1([ie.HREF,ie.TARGET],e),bodyAttributes:Ty(A8.BODY,e),defer:k6(e,Ps.DEFER),encode:k6(e,Ps.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Ty(A8.HTML,e),linkTags:R9(V2.LINK,[ie.REL,ie.HREF],e),metaTags:R9(V2.META,[ie.NAME,ie.CHARSET,ie.HTTPEQUIV,ie.PROPERTY,ie.ITEM_PROP],e),noscriptTags:R9(V2.NOSCRIPT,[ie.INNER_HTML],e),onChangeClientState:_c1(e),scriptTags:R9(V2.SCRIPT,[ie.SRC,ie.INNER_HTML],e),styleTags:R9(V2.STYLE,[ie.CSS_TEXT],e),title:Bc1(e),titleAttributes:Ty(A8.TITLE,e)}},ub=function(){var t=Date.now();return function(e){var a=Date.now();a-t>16?(t=a,e(a)):setTimeout(function(){ub(e)},0)}}(),WE=function(e){return clearTimeout(e)},Oc1=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ub:global.requestAnimationFrame||ub,Ac1=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||WE:global.cancelAnimationFrame||WE,kc1=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},j9=null,Ec1=function(e){j9&&Ac1(j9),e.defer?j9=Oc1(function(){qE(e,function(){j9=null})}):(qE(e),j9=null)},qE=function(e,a){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,l=e.linkTags,c=e.metaTags,h=e.noscriptTags,s=e.onChangeClientState,u=e.scriptTags,v=e.styleTags,f=e.title,d=e.titleAttributes;vb(V2.BODY,r),vb(V2.HTML,o),Pc1(f,d);var M={baseTag:$l(V2.BASE,n),linkTags:$l(V2.LINK,l),metaTags:$l(V2.META,c),noscriptTags:$l(V2.NOSCRIPT,h),scriptTags:$l(V2.SCRIPT,u),styleTags:$l(V2.STYLE,v)},g={},H={};Object.keys(M).forEach(function(p){var m=M[p],z=m.newTags,w=m.oldTags;z.length&&(g[p]=z),w.length&&(H[p]=M[p].oldTags)}),a&&a(),s(e,g,H)},lK=function(e){return Array.isArray(e)?e.join(""):e},Pc1=function(e,a){typeof e<"u"&&document.title!==e&&(document.title=lK(e)),vb(V2.TITLE,a)},vb=function(e,a){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(Cr),o=r?r.split(","):[],l=[].concat(o),c=Object.keys(a),h=0;h=0;f--)n.removeAttribute(l[f]);o.length===l.length?n.removeAttribute(Cr):n.getAttribute(Cr)!==c.join(",")&&n.setAttribute(Cr,c.join(","))}},$l=function(e,a){var n=document.head||document.querySelector(V2.HEAD),r=n.querySelectorAll(e+"["+Cr+"]"),o=Array.prototype.slice.call(r),l=[],c=void 0;return a&&a.length&&a.forEach(function(h){var s=document.createElement(e);for(var u in h)if(h.hasOwnProperty(u))if(u===ie.INNER_HTML)s.innerHTML=h.innerHTML;else if(u===ie.CSS_TEXT)s.styleSheet?s.styleSheet.cssText=h.cssText:s.appendChild(document.createTextNode(h.cssText));else{var v=typeof h[u]>"u"?"":h[u];s.setAttribute(u,v)}s.setAttribute(Cr,"true"),o.some(function(f,d){return c=d,s.isEqualNode(f)})?o.splice(c,1):l.push(s)}),o.forEach(function(h){return h.parentNode.removeChild(h)}),l.forEach(function(h){return n.appendChild(h)}),{oldTags:o,newTags:l}},cK=function(e){return Object.keys(e).reduce(function(a,n){var r=typeof e[n]<"u"?n+'="'+e[n]+'"':""+n;return a?a+" "+r:r},"")},Nc1=function(e,a,n,r){var o=cK(n),l=lK(a);return o?"<"+e+" "+Cr+'="true" '+o+">"+hb(l,r)+"":"<"+e+" "+Cr+'="true">'+hb(l,r)+""},Dc1=function(e,a,n){return a.reduce(function(r,o){var l=Object.keys(o).filter(function(s){return!(s===ie.INNER_HTML||s===ie.CSS_TEXT)}).reduce(function(s,u){var v=typeof o[u]>"u"?u:u+'="'+hb(o[u],n)+'"';return s?s+" "+v:v},""),c=o.innerHTML||o.cssText||"",h=yc1.indexOf(e)===-1;return r+"<"+e+" "+Cr+'="true" '+l+(h?"/>":">"+c+"")},"")},sK=function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(n,r){return n[Lg[r]||r]=e[r],n},a)},Rc1=function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(n,r){return n[wc1[r]||r]=e[r],n},a)},jc1=function(e,a,n){var r,o=(r={key:a},r[Cr]=!0,r),l=sK(n,o);return[W1.createElement(V2.TITLE,l,a)]},Ic1=function(e,a){return a.map(function(n,r){var o,l=(o={key:r},o[Cr]=!0,o);return Object.keys(n).forEach(function(c){var h=Lg[c]||c;if(h===ie.INNER_HTML||h===ie.CSS_TEXT){var s=n.innerHTML||n.cssText;l.dangerouslySetInnerHTML={__html:s}}else l[h]=n[c]}),W1.createElement(e,l)})},$i=function(e,a,n){switch(e){case V2.TITLE:return{toComponent:function(){return jc1(e,a.title,a.titleAttributes)},toString:function(){return Nc1(e,a.title,a.titleAttributes,n)}};case A8.BODY:case A8.HTML:return{toComponent:function(){return sK(a)},toString:function(){return cK(a)}};default:return{toComponent:function(){return Ic1(e,a)},toString:function(){return Dc1(e,a,n)}}}},hK=function(e){var a=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,l=e.linkTags,c=e.metaTags,h=e.noscriptTags,s=e.scriptTags,u=e.styleTags,v=e.title,f=v===void 0?"":v,d=e.titleAttributes;return{base:$i(V2.BASE,a,r),bodyAttributes:$i(A8.BODY,n,r),htmlAttributes:$i(A8.HTML,o,r),link:$i(V2.LINK,l,r),meta:$i(V2.META,c,r),noscript:$i(V2.NOSCRIPT,h,r),script:$i(V2.SCRIPT,s,r),style:$i(V2.STYLE,u,r),title:$i(V2.TITLE,{title:f,titleAttributes:d},r)}},Fc1=function(e){var a,n;return n=a=function(r){bc1(o,r);function o(){return Vc1(this,o),Lc1(this,r.apply(this,arguments))}return o.prototype.shouldComponentUpdate=function(c){return!fc1(this.props,c)},o.prototype.mapNestedChildrenToProps=function(c,h){if(!h)return null;switch(c.type){case V2.SCRIPT:case V2.NOSCRIPT:return{innerHTML:h};case V2.STYLE:return{cssText:h}}throw new Error("<"+c.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},o.prototype.flattenArrayTypeChildren=function(c){var h,s=c.child,u=c.arrayTypeChildren,v=c.newChildProps,f=c.nestedChildren;return La({},u,(h={},h[s.type]=[].concat(u[s.type]||[],[La({},v,this.mapNestedChildrenToProps(s,f))]),h))},o.prototype.mapObjectTypeChildren=function(c){var h,s,u=c.child,v=c.newProps,f=c.newChildProps,d=c.nestedChildren;switch(u.type){case V2.TITLE:return La({},v,(h={},h[u.type]=d,h.titleAttributes=La({},f),h));case V2.BODY:return La({},v,{bodyAttributes:La({},f)});case V2.HTML:return La({},v,{htmlAttributes:La({},f)})}return La({},v,(s={},s[u.type]=La({},f),s))},o.prototype.mapArrayTypeChildrenToProps=function(c,h){var s=La({},h);return Object.keys(c).forEach(function(u){var v;s=La({},s,(v={},v[u]=c[u],v))}),s},o.prototype.warnOnInvalidChildren=function(c,h){return!0},o.prototype.mapChildrenToProps=function(c,h){var s=this,u={};return W1.Children.forEach(c,function(v){if(!(!v||!v.props)){var f=v.props,d=f.children,M=UE(f,["children"]),g=Rc1(M);switch(s.warnOnInvalidChildren(v,d),v.type){case V2.LINK:case V2.META:case V2.NOSCRIPT:case V2.SCRIPT:case V2.STYLE:u=s.flattenArrayTypeChildren({child:v,arrayTypeChildren:u,newChildProps:g,nestedChildren:d});break;default:h=s.mapObjectTypeChildren({child:v,newProps:h,newChildProps:g,nestedChildren:d});break}}}),h=this.mapArrayTypeChildrenToProps(u,h),h},o.prototype.render=function(){var c=this.props,h=c.children,s=UE(c,["children"]),u=La({},s);return h&&(u=this.mapChildrenToProps(h,u)),W1.createElement(e,u)},Cc1(o,null,[{key:"canUseDOM",set:function(c){e.canUseDOM=c}}]),o}(W1.Component),a.propTypes={base:ut.object,bodyAttributes:ut.object,children:ut.oneOfType([ut.arrayOf(ut.node),ut.node]),defaultTitle:ut.string,defer:ut.bool,encodeSpecialCharacters:ut.bool,htmlAttributes:ut.object,link:ut.arrayOf(ut.object),meta:ut.arrayOf(ut.object),noscript:ut.arrayOf(ut.object),onChangeClientState:ut.func,script:ut.arrayOf(ut.object),style:ut.arrayOf(ut.object),title:ut.string,titleAttributes:ut.object,titleTemplate:ut.string},a.defaultProps={defer:!0,encodeSpecialCharacters:!0},a.peek=e.peek,a.rewind=function(){var r=e.rewind();return r||(r=hK({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),r},n},$c1=function(){return null},Uc1=cc1(Tc1,Ec1,hK)($c1),db=Fc1(Uc1);db.renderStatic=db.rewind;function uK(t){var e,a,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;etypeof t=="number"&&!isNaN(t),k8=t=>typeof t=="string",nn=t=>typeof t=="function",Mf=t=>k8(t)||nn(t)?t:null,fb=t=>_.isValidElement(t)||k8(t)||nn(t)||Ns(t);function Wc1(t,e,a){a===void 0&&(a=300);const{scrollHeight:n,style:r}=t;requestAnimationFrame(()=>{r.minHeight="initial",r.height=n+"px",r.transition=`all ${a}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(e,a)})})}function Am(t){let{enter:e,exit:a,appendPosition:n=!1,collapse:r=!0,collapseDuration:o=300}=t;return function(l){let{children:c,position:h,preventExitTransition:s,done:u,nodeRef:v,isIn:f,playToast:d}=l;const M=n?`${e}--${h}`:e,g=n?`${a}--${h}`:a,H=_.useRef(0);return _.useLayoutEffect(()=>{const p=v.current,m=M.split(" "),z=w=>{w.target===v.current&&(d(),p.removeEventListener("animationend",z),p.removeEventListener("animationcancel",z),H.current===0&&w.type!=="animationcancel"&&p.classList.remove(...m))};p.classList.add(...m),p.addEventListener("animationend",z),p.addEventListener("animationcancel",z)},[]),_.useEffect(()=>{const p=v.current,m=()=>{p.removeEventListener("animationend",m),r?Wc1(p,u,o):u()};f||(s?m():(H.current=1,p.className+=` ${g}`,p.addEventListener("animationend",m)))},[f]),W1.createElement(W1.Fragment,null,c)}}function GE(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const ha=new Map;let Ds=[];const gb=new Set,qc1=t=>gb.forEach(e=>e(t)),vK=()=>ha.size>0;function dK(t,e){var a;if(e)return!((a=ha.get(e))==null||!a.isToastActive(t));let n=!1;return ha.forEach(r=>{r.isToastActive(t)&&(n=!0)}),n}function fK(t,e){fb(t)&&(vK()||Ds.push({content:t,options:e}),ha.forEach(a=>{a.buildToast(t,e)}))}function KE(t,e){ha.forEach(a=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===a.id&&a.toggle(t,e==null?void 0:e.id):a.toggle(t,e==null?void 0:e.id)})}function Gc1(t){const{subscribe:e,getSnapshot:a,setProps:n}=_.useRef(function(o){const l=o.containerId||1;return{subscribe(c){const h=function(u,v,f){let d=1,M=0,g=[],H=[],p=[],m=v;const z=new Map,w=new Set,x=()=>{p=Array.from(z.values()),w.forEach(C=>C())},y=C=>{H=C==null?[]:H.filter(L=>L!==C),x()},V=C=>{const{toastId:L,onOpen:B,updateId:S,children:T}=C.props,E=S==null;C.staleId&&z.delete(C.staleId),z.set(L,C),H=[...H,C.props.toastId].filter($=>$!==C.staleId),x(),f(GE(C,E?"added":"updated")),E&&nn(B)&&B(_.isValidElement(T)&&T.props)};return{id:u,props:m,observe:C=>(w.add(C),()=>w.delete(C)),toggle:(C,L)=>{z.forEach(B=>{L!=null&&L!==B.props.toastId||nn(B.toggle)&&B.toggle(C)})},removeToast:y,toasts:z,clearQueue:()=>{M-=g.length,g=[]},buildToast:(C,L)=>{if((J=>{let{containerId:A,toastId:o1,updateId:h1}=J;const a1=A?A!==u:u!==1,M1=z.has(o1)&&h1==null;return a1||M1})(L))return;const{toastId:B,updateId:S,data:T,staleId:E,delay:$}=L,U=()=>{y(B)},W=S==null;W&&M++;const Y={...m,style:m.toastStyle,key:d++,...Object.fromEntries(Object.entries(L).filter(J=>{let[A,o1]=J;return o1!=null})),toastId:B,updateId:S,data:T,closeToast:U,isIn:!1,className:Mf(L.className||m.toastClassName),bodyClassName:Mf(L.bodyClassName||m.bodyClassName),progressClassName:Mf(L.progressClassName||m.progressClassName),autoClose:!L.isLoading&&(F=L.autoClose,t1=m.autoClose,F===!1||Ns(F)&&F>0?F:t1),deleteToast(){const J=z.get(B),{onClose:A,children:o1}=J.props;nn(A)&&A(_.isValidElement(o1)&&o1.props),f(GE(J,"removed")),z.delete(B),M--,M<0&&(M=0),g.length>0?V(g.shift()):x()}};var F,t1;Y.closeButton=m.closeButton,L.closeButton===!1||fb(L.closeButton)?Y.closeButton=L.closeButton:L.closeButton===!0&&(Y.closeButton=!fb(m.closeButton)||m.closeButton);let R=C;_.isValidElement(C)&&!k8(C.type)?R=_.cloneElement(C,{closeToast:U,toastProps:Y,data:T}):nn(C)&&(R=C({closeToast:U,toastProps:Y,data:T}));const i1={content:R,props:Y,staleId:E};m.limit&&m.limit>0&&M>m.limit&&W?g.push(i1):Ns($)?setTimeout(()=>{V(i1)},$):V(i1)},setProps(C){m=C},setToggle:(C,L)=>{z.get(C).toggle=L},isToastActive:C=>H.some(L=>L===C),getSnapshot:()=>m.newestOnTop?p.reverse():p}}(l,o,qc1);ha.set(l,h);const s=h.observe(c);return Ds.forEach(u=>fK(u.content,u.options)),Ds=[],()=>{s(),ha.delete(l)}},setProps(c){var h;(h=ha.get(l))==null||h.setProps(c)},getSnapshot(){var c;return(c=ha.get(l))==null?void 0:c.getSnapshot()}}}(t)).current;n(t);const r=_.useSyncExternalStore(e,a,a);return{getToastToRender:function(o){if(!r)return[];const l=new Map;return r.forEach(c=>{const{position:h}=c.props;l.has(h)||l.set(h,[]),l.get(h).push(c)}),Array.from(l,c=>o(c[0],c[1]))},isToastActive:dK,count:r==null?void 0:r.length}}function Kc1(t){const[e,a]=_.useState(!1),[n,r]=_.useState(!1),o=_.useRef(null),l=_.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:h,closeToast:s,onClick:u,closeOnClick:v}=t;var f,d;function M(){a(!0)}function g(){a(!1)}function H(z){const w=o.current;l.canDrag&&w&&(l.didMove=!0,e&&g(),l.delta=t.draggableDirection==="x"?z.clientX-l.start:z.clientY-l.start,l.start!==z.clientX&&(l.canCloseOnClick=!1),w.style.transform=`translate3d(${t.draggableDirection==="x"?`${l.delta}px, var(--y)`:`0, calc(${l.delta}px + var(--y))`},0)`,w.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function p(){document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",p);const z=o.current;if(l.canDrag&&l.didMove&&z){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return r(!0),t.closeToast(),void t.collapseAll();z.style.transition="transform 0.2s, opacity 0.2s",z.style.removeProperty("transform"),z.style.removeProperty("opacity")}}(d=ha.get((f={id:t.toastId,containerId:t.containerId,fn:a}).containerId||1))==null||d.setToggle(f.id,f.fn),_.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",M),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",M),window.removeEventListener("blur",g)}},[t.pauseOnFocusLoss]);const m={onPointerDown:function(z){if(t.draggable===!0||t.draggable===z.pointerType){l.didMove=!1,document.addEventListener("pointermove",H),document.addEventListener("pointerup",p);const w=o.current;l.canCloseOnClick=!0,l.canDrag=!0,w.style.transition="none",t.draggableDirection==="x"?(l.start=z.clientX,l.removalDistance=w.offsetWidth*(t.draggablePercent/100)):(l.start=z.clientY,l.removalDistance=w.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(z){const{top:w,bottom:x,left:y,right:V}=o.current.getBoundingClientRect();z.nativeEvent.type!=="touchend"&&t.pauseOnHover&&z.clientX>=y&&z.clientX<=V&&z.clientY>=w&&z.clientY<=x?g():M()}};return c&&h&&(m.onMouseEnter=g,t.stacked||(m.onMouseLeave=M)),v&&(m.onClick=z=>{u&&u(z),l.canCloseOnClick&&s()}),{playToast:M,pauseToast:g,isRunning:e,preventExitTransition:n,toastRef:o,eventHandlers:m}}function Yc1(t){let{delay:e,isRunning:a,closeToast:n,type:r="default",hide:o,className:l,style:c,controlledProgress:h,progress:s,rtl:u,isIn:v,theme:f}=t;const d=o||h&&s===0,M={...c,animationDuration:`${e}ms`,animationPlayState:a?"running":"paused"};h&&(M.transform=`scaleX(${s})`);const g=fi("Toastify__progress-bar",h?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":u}),H=nn(l)?l({rtl:u,type:r,defaultClassName:g}):fi(g,l),p={[h&&s>=1?"onTransitionEnd":"onAnimationEnd"]:h&&s<1?null:()=>{v&&n()}};return W1.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":d},W1.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${r}`}),W1.createElement("div",{role:"progressbar","aria-hidden":d?"true":"false","aria-label":"notification timer",className:H,style:M,...p}))}let Zc1=1;const gK=()=>""+Zc1++;function Qc1(t){return t&&(k8(t.toastId)||Ns(t.toastId))?t.toastId:gK()}function W7(t,e){return fK(t,e),e.toastId}function Bg(t,e){return{...e,type:e&&e.type||t,toastId:Qc1(e)}}function Wv(t){return(e,a)=>W7(e,Bg(t,a))}function Q0(t,e){return W7(t,Bg("default",e))}Q0.loading=(t,e)=>W7(t,Bg("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Q0.promise=function(t,e,a){let n,{pending:r,error:o,success:l}=e;r&&(n=k8(r)?Q0.loading(r,a):Q0.loading(r.render,{...a,...r}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},h=(u,v,f)=>{if(v==null)return void Q0.dismiss(n);const d={type:u,...c,...a,data:f},M=k8(v)?{render:v}:v;return n?Q0.update(n,{...d,...M}):Q0(M.render,{...d,...M}),f},s=nn(t)?t():t;return s.then(u=>h("success",l,u)).catch(u=>h("error",o,u)),s},Q0.success=Wv("success"),Q0.info=Wv("info"),Q0.error=Wv("error"),Q0.warning=Wv("warning"),Q0.warn=Q0.warning,Q0.dark=(t,e)=>W7(t,Bg("default",{theme:"dark",...e})),Q0.dismiss=function(t){(function(e){var a;if(vK()){if(e==null||k8(a=e)||Ns(a))ha.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var n;(n=ha.get(e.containerId))!=null&&n.removeToast(e.id)||ha.forEach(r=>{r.removeToast(e.id)})}}else Ds=Ds.filter(r=>e!=null&&r.options.toastId!==e)})(t)},Q0.clearWaitingQueue=function(t){t===void 0&&(t={}),ha.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},Q0.isActive=dK,Q0.update=function(t,e){e===void 0&&(e={});const a=((n,r)=>{var o;let{containerId:l}=r;return(o=ha.get(l||1))==null?void 0:o.toasts.get(n)})(t,e);if(a){const{props:n,content:r}=a,o={delay:100,...n,...e,toastId:e.toastId||t,updateId:gK()};o.toastId!==t&&(o.staleId=t);const l=o.render||r;delete o.render,W7(l,o)}},Q0.done=t=>{Q0.update(t,{progress:1})},Q0.onChange=function(t){return gb.add(t),()=>{gb.delete(t)}},Q0.play=t=>KE(!0,t),Q0.pause=t=>KE(!1,t);const Xc1=typeof window<"u"?_.useLayoutEffect:_.useEffect,qv=t=>{let{theme:e,type:a,isLoading:n,...r}=t;return W1.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${a})`,...r})},Oy={info:function(t){return W1.createElement(qv,{...t},W1.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(t){return W1.createElement(qv,{...t},W1.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(t){return W1.createElement(qv,{...t},W1.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(t){return W1.createElement(qv,{...t},W1.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 W1.createElement("div",{className:"Toastify__spinner"})}},Jc1=t=>{const{isRunning:e,preventExitTransition:a,toastRef:n,eventHandlers:r,playToast:o}=Kc1(t),{closeButton:l,children:c,autoClose:h,onClick:s,type:u,hideProgressBar:v,closeToast:f,transition:d,position:M,className:g,style:H,bodyClassName:p,bodyStyle:m,progressClassName:z,progressStyle:w,updateId:x,role:y,progress:V,rtl:C,toastId:L,deleteToast:B,isIn:S,isLoading:T,closeOnClick:E,theme:$}=t,U=fi("Toastify__toast",`Toastify__toast-theme--${$}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":E}),W=nn(g)?g({rtl:C,position:M,type:u,defaultClassName:U}):fi(U,g),Y=function(i1){let{theme:J,type:A,isLoading:o1,icon:h1}=i1,a1=null;const M1={theme:J,type:A};return h1===!1||(nn(h1)?a1=h1({...M1,isLoading:o1}):_.isValidElement(h1)?a1=_.cloneElement(h1,M1):o1?a1=Oy.spinner():(s1=>s1 in Oy)(A)&&(a1=Oy[A](M1))),a1}(t),F=!!V||!h,t1={closeToast:f,type:u,theme:$};let R=null;return l===!1||(R=nn(l)?l(t1):_.isValidElement(l)?_.cloneElement(l,t1):function(i1){let{closeToast:J,theme:A,ariaLabel:o1="close"}=i1;return W1.createElement("button",{className:`Toastify__close-button Toastify__close-button--${A}`,type:"button",onClick:h1=>{h1.stopPropagation(),J(h1)},"aria-label":o1},W1.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},W1.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"})))}(t1)),W1.createElement(d,{isIn:S,done:B,position:M,preventExitTransition:a,nodeRef:n,playToast:o},W1.createElement("div",{id:L,onClick:s,"data-in":S,className:W,...r,style:H,ref:n},W1.createElement("div",{...S&&{role:y},className:nn(p)?p({type:u}):fi("Toastify__toast-body",p),style:m},Y!=null&&W1.createElement("div",{className:fi("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!T})},Y),W1.createElement("div",null,c)),R,W1.createElement(Yc1,{...x&&!F?{key:`pb-${x}`}:{},rtl:C,theme:$,delay:h,isRunning:e,isIn:S,closeToast:f,hide:v,type:u,style:w,className:z,controlledProgress:F,progress:V||0})))},km=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},t91=Am(km("bounce",!0));Am(km("slide",!0));Am(km("zoom"));Am(km("flip"));const e91={position:"top-right",transition:t91,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function a91(t){let e={...e91,...t};const a=t.stacked,[n,r]=_.useState(!0),o=_.useRef(null),{getToastToRender:l,isToastActive:c,count:h}=Gc1(e),{className:s,style:u,rtl:v,containerId:f}=e;function d(g){const H=fi("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":v});return nn(s)?s({position:g,rtl:v,defaultClassName:H}):fi(H,Mf(s))}function M(){a&&(r(!0),Q0.play())}return Xc1(()=>{if(a){var g;const H=o.current.querySelectorAll('[data-in="true"]'),p=12,m=(g=e.position)==null?void 0:g.includes("top");let z=0,w=0;Array.from(H).reverse().forEach((x,y)=>{const V=x;V.classList.add("Toastify__toast--stacked"),y>0&&(V.dataset.collapsed=`${n}`),V.dataset.pos||(V.dataset.pos=m?"top":"bot");const C=z*(n?.2:1)+(n?0:p*y);V.style.setProperty("--y",`${m?C:-1*C}px`),V.style.setProperty("--g",`${p}`),V.style.setProperty("--s",""+(1-(n?w:0))),z+=V.offsetHeight,w+=.025})}},[n,h,a]),W1.createElement("div",{ref:o,className:"Toastify",id:f,onMouseEnter:()=>{a&&(r(!1),Q0.pause())},onMouseLeave:M},l((g,H)=>{const p=H.length?{...u}:{...u,pointerEvents:"none"};return W1.createElement("div",{className:d(g),style:p,key:`container-${g}`},H.map(m=>{let{content:z,props:w}=m;return W1.createElement(Jc1,{...w,stacked:a,collapseAll:M,isIn:c(w.toastId,w.containerId),style:w.style,key:`toast-${w.key}`},z)}))}))}const YE="/assets/logo-orange-ZEopurkl.svg";var D_={};const St=se(ec1);var _g={};(function(t){var e=b&&b.__makeTemplateObject||function(d,M){return Object.defineProperty?Object.defineProperty(d,"raw",{value:M}):d.raw=M,d},a=b&&b.__assign||function(){return a=Object.assign||function(d){for(var M,g=1,H=arguments.length;g=0||Object.prototype.hasOwnProperty.call(t,n)&&(a[n]=t[n]);return a},Lc1=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},hb=function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},Bc1=function(e){var a=k6(e,V2.TITLE),n=k6(e,Ps.TITLE_TEMPLATE);if(n&&a)return n.replace(/%s/g,function(){return Array.isArray(a)?a.join(""):a});var r=k6(e,Ps.DEFAULT_TITLE);return a||r||void 0},_c1=function(e){return k6(e,Ps.ON_CHANGE_CLIENT_STATE)||function(){}},Ty=function(e,a){return a.filter(function(n){return typeof n[e]<"u"}).map(function(n){return n[e]}).reduce(function(n,r){return La({},n,r)},{})},Sc1=function(e,a){return a.filter(function(n){return typeof n[V2.BASE]<"u"}).map(function(n){return n[V2.BASE]}).reverse().reduce(function(n,r){if(!n.length)for(var o=Object.keys(r),l=0;l=0;n--){var r=e[n];if(r.hasOwnProperty(a))return r[a]}return null},Tc1=function(e){return{baseTag:Sc1([ie.HREF,ie.TARGET],e),bodyAttributes:Ty(A8.BODY,e),defer:k6(e,Ps.DEFER),encode:k6(e,Ps.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Ty(A8.HTML,e),linkTags:R9(V2.LINK,[ie.REL,ie.HREF],e),metaTags:R9(V2.META,[ie.NAME,ie.CHARSET,ie.HTTPEQUIV,ie.PROPERTY,ie.ITEM_PROP],e),noscriptTags:R9(V2.NOSCRIPT,[ie.INNER_HTML],e),onChangeClientState:_c1(e),scriptTags:R9(V2.SCRIPT,[ie.SRC,ie.INNER_HTML],e),styleTags:R9(V2.STYLE,[ie.CSS_TEXT],e),title:Bc1(e),titleAttributes:Ty(A8.TITLE,e)}},ub=function(){var t=Date.now();return function(e){var a=Date.now();a-t>16?(t=a,e(a)):setTimeout(function(){ub(e)},0)}}(),WE=function(e){return clearTimeout(e)},Oc1=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ub:global.requestAnimationFrame||ub,Ac1=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||WE:global.cancelAnimationFrame||WE,kc1=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},j9=null,Ec1=function(e){j9&&Ac1(j9),e.defer?j9=Oc1(function(){qE(e,function(){j9=null})}):(qE(e),j9=null)},qE=function(e,a){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,l=e.linkTags,c=e.metaTags,h=e.noscriptTags,s=e.onChangeClientState,u=e.scriptTags,v=e.styleTags,f=e.title,d=e.titleAttributes;vb(V2.BODY,r),vb(V2.HTML,o),Pc1(f,d);var M={baseTag:$l(V2.BASE,n),linkTags:$l(V2.LINK,l),metaTags:$l(V2.META,c),noscriptTags:$l(V2.NOSCRIPT,h),scriptTags:$l(V2.SCRIPT,u),styleTags:$l(V2.STYLE,v)},g={},H={};Object.keys(M).forEach(function(p){var m=M[p],z=m.newTags,w=m.oldTags;z.length&&(g[p]=z),w.length&&(H[p]=M[p].oldTags)}),a&&a(),s(e,g,H)},lK=function(e){return Array.isArray(e)?e.join(""):e},Pc1=function(e,a){typeof e<"u"&&document.title!==e&&(document.title=lK(e)),vb(V2.TITLE,a)},vb=function(e,a){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(Cr),o=r?r.split(","):[],l=[].concat(o),c=Object.keys(a),h=0;h=0;f--)n.removeAttribute(l[f]);o.length===l.length?n.removeAttribute(Cr):n.getAttribute(Cr)!==c.join(",")&&n.setAttribute(Cr,c.join(","))}},$l=function(e,a){var n=document.head||document.querySelector(V2.HEAD),r=n.querySelectorAll(e+"["+Cr+"]"),o=Array.prototype.slice.call(r),l=[],c=void 0;return a&&a.length&&a.forEach(function(h){var s=document.createElement(e);for(var u in h)if(h.hasOwnProperty(u))if(u===ie.INNER_HTML)s.innerHTML=h.innerHTML;else if(u===ie.CSS_TEXT)s.styleSheet?s.styleSheet.cssText=h.cssText:s.appendChild(document.createTextNode(h.cssText));else{var v=typeof h[u]>"u"?"":h[u];s.setAttribute(u,v)}s.setAttribute(Cr,"true"),o.some(function(f,d){return c=d,s.isEqualNode(f)})?o.splice(c,1):l.push(s)}),o.forEach(function(h){return h.parentNode.removeChild(h)}),l.forEach(function(h){return n.appendChild(h)}),{oldTags:o,newTags:l}},cK=function(e){return Object.keys(e).reduce(function(a,n){var r=typeof e[n]<"u"?n+'="'+e[n]+'"':""+n;return a?a+" "+r:r},"")},Nc1=function(e,a,n,r){var o=cK(n),l=lK(a);return o?"<"+e+" "+Cr+'="true" '+o+">"+hb(l,r)+"":"<"+e+" "+Cr+'="true">'+hb(l,r)+""},Dc1=function(e,a,n){return a.reduce(function(r,o){var l=Object.keys(o).filter(function(s){return!(s===ie.INNER_HTML||s===ie.CSS_TEXT)}).reduce(function(s,u){var v=typeof o[u]>"u"?u:u+'="'+hb(o[u],n)+'"';return s?s+" "+v:v},""),c=o.innerHTML||o.cssText||"",h=yc1.indexOf(e)===-1;return r+"<"+e+" "+Cr+'="true" '+l+(h?"/>":">"+c+"")},"")},sK=function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(n,r){return n[Lg[r]||r]=e[r],n},a)},Rc1=function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(n,r){return n[wc1[r]||r]=e[r],n},a)},jc1=function(e,a,n){var r,o=(r={key:a},r[Cr]=!0,r),l=sK(n,o);return[W1.createElement(V2.TITLE,l,a)]},Ic1=function(e,a){return a.map(function(n,r){var o,l=(o={key:r},o[Cr]=!0,o);return Object.keys(n).forEach(function(c){var h=Lg[c]||c;if(h===ie.INNER_HTML||h===ie.CSS_TEXT){var s=n.innerHTML||n.cssText;l.dangerouslySetInnerHTML={__html:s}}else l[h]=n[c]}),W1.createElement(e,l)})},$i=function(e,a,n){switch(e){case V2.TITLE:return{toComponent:function(){return jc1(e,a.title,a.titleAttributes)},toString:function(){return Nc1(e,a.title,a.titleAttributes,n)}};case A8.BODY:case A8.HTML:return{toComponent:function(){return sK(a)},toString:function(){return cK(a)}};default:return{toComponent:function(){return Ic1(e,a)},toString:function(){return Dc1(e,a,n)}}}},hK=function(e){var a=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,l=e.linkTags,c=e.metaTags,h=e.noscriptTags,s=e.scriptTags,u=e.styleTags,v=e.title,f=v===void 0?"":v,d=e.titleAttributes;return{base:$i(V2.BASE,a,r),bodyAttributes:$i(A8.BODY,n,r),htmlAttributes:$i(A8.HTML,o,r),link:$i(V2.LINK,l,r),meta:$i(V2.META,c,r),noscript:$i(V2.NOSCRIPT,h,r),script:$i(V2.SCRIPT,s,r),style:$i(V2.STYLE,u,r),title:$i(V2.TITLE,{title:f,titleAttributes:d},r)}},Fc1=function(e){var a,n;return n=a=function(r){bc1(o,r);function o(){return Vc1(this,o),Lc1(this,r.apply(this,arguments))}return o.prototype.shouldComponentUpdate=function(c){return!fc1(this.props,c)},o.prototype.mapNestedChildrenToProps=function(c,h){if(!h)return null;switch(c.type){case V2.SCRIPT:case V2.NOSCRIPT:return{innerHTML:h};case V2.STYLE:return{cssText:h}}throw new Error("<"+c.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},o.prototype.flattenArrayTypeChildren=function(c){var h,s=c.child,u=c.arrayTypeChildren,v=c.newChildProps,f=c.nestedChildren;return La({},u,(h={},h[s.type]=[].concat(u[s.type]||[],[La({},v,this.mapNestedChildrenToProps(s,f))]),h))},o.prototype.mapObjectTypeChildren=function(c){var h,s,u=c.child,v=c.newProps,f=c.newChildProps,d=c.nestedChildren;switch(u.type){case V2.TITLE:return La({},v,(h={},h[u.type]=d,h.titleAttributes=La({},f),h));case V2.BODY:return La({},v,{bodyAttributes:La({},f)});case V2.HTML:return La({},v,{htmlAttributes:La({},f)})}return La({},v,(s={},s[u.type]=La({},f),s))},o.prototype.mapArrayTypeChildrenToProps=function(c,h){var s=La({},h);return Object.keys(c).forEach(function(u){var v;s=La({},s,(v={},v[u]=c[u],v))}),s},o.prototype.warnOnInvalidChildren=function(c,h){return!0},o.prototype.mapChildrenToProps=function(c,h){var s=this,u={};return W1.Children.forEach(c,function(v){if(!(!v||!v.props)){var f=v.props,d=f.children,M=UE(f,["children"]),g=Rc1(M);switch(s.warnOnInvalidChildren(v,d),v.type){case V2.LINK:case V2.META:case V2.NOSCRIPT:case V2.SCRIPT:case V2.STYLE:u=s.flattenArrayTypeChildren({child:v,arrayTypeChildren:u,newChildProps:g,nestedChildren:d});break;default:h=s.mapObjectTypeChildren({child:v,newProps:h,newChildProps:g,nestedChildren:d});break}}}),h=this.mapArrayTypeChildrenToProps(u,h),h},o.prototype.render=function(){var c=this.props,h=c.children,s=UE(c,["children"]),u=La({},s);return h&&(u=this.mapChildrenToProps(h,u)),W1.createElement(e,u)},Cc1(o,null,[{key:"canUseDOM",set:function(c){e.canUseDOM=c}}]),o}(W1.Component),a.propTypes={base:ut.object,bodyAttributes:ut.object,children:ut.oneOfType([ut.arrayOf(ut.node),ut.node]),defaultTitle:ut.string,defer:ut.bool,encodeSpecialCharacters:ut.bool,htmlAttributes:ut.object,link:ut.arrayOf(ut.object),meta:ut.arrayOf(ut.object),noscript:ut.arrayOf(ut.object),onChangeClientState:ut.func,script:ut.arrayOf(ut.object),style:ut.arrayOf(ut.object),title:ut.string,titleAttributes:ut.object,titleTemplate:ut.string},a.defaultProps={defer:!0,encodeSpecialCharacters:!0},a.peek=e.peek,a.rewind=function(){var r=e.rewind();return r||(r=hK({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),r},n},$c1=function(){return null},Uc1=cc1(Tc1,Ec1,hK)($c1),db=Fc1(Uc1);db.renderStatic=db.rewind;function uK(t){var e,a,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;etypeof t=="number"&&!isNaN(t),k8=t=>typeof t=="string",rn=t=>typeof t=="function",Mf=t=>k8(t)||rn(t)?t:null,fb=t=>_.isValidElement(t)||k8(t)||rn(t)||Ns(t);function Wc1(t,e,a){a===void 0&&(a=300);const{scrollHeight:n,style:r}=t;requestAnimationFrame(()=>{r.minHeight="initial",r.height=n+"px",r.transition=`all ${a}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(e,a)})})}function Am(t){let{enter:e,exit:a,appendPosition:n=!1,collapse:r=!0,collapseDuration:o=300}=t;return function(l){let{children:c,position:h,preventExitTransition:s,done:u,nodeRef:v,isIn:f,playToast:d}=l;const M=n?`${e}--${h}`:e,g=n?`${a}--${h}`:a,H=_.useRef(0);return _.useLayoutEffect(()=>{const p=v.current,m=M.split(" "),z=w=>{w.target===v.current&&(d(),p.removeEventListener("animationend",z),p.removeEventListener("animationcancel",z),H.current===0&&w.type!=="animationcancel"&&p.classList.remove(...m))};p.classList.add(...m),p.addEventListener("animationend",z),p.addEventListener("animationcancel",z)},[]),_.useEffect(()=>{const p=v.current,m=()=>{p.removeEventListener("animationend",m),r?Wc1(p,u,o):u()};f||(s?m():(H.current=1,p.className+=` ${g}`,p.addEventListener("animationend",m)))},[f]),W1.createElement(W1.Fragment,null,c)}}function GE(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const ha=new Map;let Ds=[];const gb=new Set,qc1=t=>gb.forEach(e=>e(t)),vK=()=>ha.size>0;function dK(t,e){var a;if(e)return!((a=ha.get(e))==null||!a.isToastActive(t));let n=!1;return ha.forEach(r=>{r.isToastActive(t)&&(n=!0)}),n}function fK(t,e){fb(t)&&(vK()||Ds.push({content:t,options:e}),ha.forEach(a=>{a.buildToast(t,e)}))}function KE(t,e){ha.forEach(a=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===a.id&&a.toggle(t,e==null?void 0:e.id):a.toggle(t,e==null?void 0:e.id)})}function Gc1(t){const{subscribe:e,getSnapshot:a,setProps:n}=_.useRef(function(o){const l=o.containerId||1;return{subscribe(c){const h=function(u,v,f){let d=1,M=0,g=[],H=[],p=[],m=v;const z=new Map,w=new Set,x=()=>{p=Array.from(z.values()),w.forEach(C=>C())},y=C=>{H=C==null?[]:H.filter(L=>L!==C),x()},V=C=>{const{toastId:L,onOpen:B,updateId:S,children:T}=C.props,E=S==null;C.staleId&&z.delete(C.staleId),z.set(L,C),H=[...H,C.props.toastId].filter($=>$!==C.staleId),x(),f(GE(C,E?"added":"updated")),E&&rn(B)&&B(_.isValidElement(T)&&T.props)};return{id:u,props:m,observe:C=>(w.add(C),()=>w.delete(C)),toggle:(C,L)=>{z.forEach(B=>{L!=null&&L!==B.props.toastId||rn(B.toggle)&&B.toggle(C)})},removeToast:y,toasts:z,clearQueue:()=>{M-=g.length,g=[]},buildToast:(C,L)=>{if((t1=>{let{containerId:A,toastId:o1,updateId:h1}=t1;const a1=A?A!==u:u!==1,M1=z.has(o1)&&h1==null;return a1||M1})(L))return;const{toastId:B,updateId:S,data:T,staleId:E,delay:$}=L,q=()=>{y(B)},U=S==null;U&&M++;const Y={...m,style:m.toastStyle,key:d++,...Object.fromEntries(Object.entries(L).filter(t1=>{let[A,o1]=t1;return o1!=null})),toastId:B,updateId:S,data:T,closeToast:q,isIn:!1,className:Mf(L.className||m.toastClassName),bodyClassName:Mf(L.bodyClassName||m.bodyClassName),progressClassName:Mf(L.progressClassName||m.progressClassName),autoClose:!L.isLoading&&(F=L.autoClose,X=m.autoClose,F===!1||Ns(F)&&F>0?F:X),deleteToast(){const t1=z.get(B),{onClose:A,children:o1}=t1.props;rn(A)&&A(_.isValidElement(o1)&&o1.props),f(GE(t1,"removed")),z.delete(B),M--,M<0&&(M=0),g.length>0?V(g.shift()):x()}};var F,X;Y.closeButton=m.closeButton,L.closeButton===!1||fb(L.closeButton)?Y.closeButton=L.closeButton:L.closeButton===!0&&(Y.closeButton=!fb(m.closeButton)||m.closeButton);let R=C;_.isValidElement(C)&&!k8(C.type)?R=_.cloneElement(C,{closeToast:q,toastProps:Y,data:T}):rn(C)&&(R=C({closeToast:q,toastProps:Y,data:T}));const i1={content:R,props:Y,staleId:E};m.limit&&m.limit>0&&M>m.limit&&U?g.push(i1):Ns($)?setTimeout(()=>{V(i1)},$):V(i1)},setProps(C){m=C},setToggle:(C,L)=>{z.get(C).toggle=L},isToastActive:C=>H.some(L=>L===C),getSnapshot:()=>m.newestOnTop?p.reverse():p}}(l,o,qc1);ha.set(l,h);const s=h.observe(c);return Ds.forEach(u=>fK(u.content,u.options)),Ds=[],()=>{s(),ha.delete(l)}},setProps(c){var h;(h=ha.get(l))==null||h.setProps(c)},getSnapshot(){var c;return(c=ha.get(l))==null?void 0:c.getSnapshot()}}}(t)).current;n(t);const r=_.useSyncExternalStore(e,a,a);return{getToastToRender:function(o){if(!r)return[];const l=new Map;return r.forEach(c=>{const{position:h}=c.props;l.has(h)||l.set(h,[]),l.get(h).push(c)}),Array.from(l,c=>o(c[0],c[1]))},isToastActive:dK,count:r==null?void 0:r.length}}function Kc1(t){const[e,a]=_.useState(!1),[n,r]=_.useState(!1),o=_.useRef(null),l=_.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:h,closeToast:s,onClick:u,closeOnClick:v}=t;var f,d;function M(){a(!0)}function g(){a(!1)}function H(z){const w=o.current;l.canDrag&&w&&(l.didMove=!0,e&&g(),l.delta=t.draggableDirection==="x"?z.clientX-l.start:z.clientY-l.start,l.start!==z.clientX&&(l.canCloseOnClick=!1),w.style.transform=`translate3d(${t.draggableDirection==="x"?`${l.delta}px, var(--y)`:`0, calc(${l.delta}px + var(--y))`},0)`,w.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function p(){document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",p);const z=o.current;if(l.canDrag&&l.didMove&&z){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return r(!0),t.closeToast(),void t.collapseAll();z.style.transition="transform 0.2s, opacity 0.2s",z.style.removeProperty("transform"),z.style.removeProperty("opacity")}}(d=ha.get((f={id:t.toastId,containerId:t.containerId,fn:a}).containerId||1))==null||d.setToggle(f.id,f.fn),_.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",M),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",M),window.removeEventListener("blur",g)}},[t.pauseOnFocusLoss]);const m={onPointerDown:function(z){if(t.draggable===!0||t.draggable===z.pointerType){l.didMove=!1,document.addEventListener("pointermove",H),document.addEventListener("pointerup",p);const w=o.current;l.canCloseOnClick=!0,l.canDrag=!0,w.style.transition="none",t.draggableDirection==="x"?(l.start=z.clientX,l.removalDistance=w.offsetWidth*(t.draggablePercent/100)):(l.start=z.clientY,l.removalDistance=w.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(z){const{top:w,bottom:x,left:y,right:V}=o.current.getBoundingClientRect();z.nativeEvent.type!=="touchend"&&t.pauseOnHover&&z.clientX>=y&&z.clientX<=V&&z.clientY>=w&&z.clientY<=x?g():M()}};return c&&h&&(m.onMouseEnter=g,t.stacked||(m.onMouseLeave=M)),v&&(m.onClick=z=>{u&&u(z),l.canCloseOnClick&&s()}),{playToast:M,pauseToast:g,isRunning:e,preventExitTransition:n,toastRef:o,eventHandlers:m}}function Yc1(t){let{delay:e,isRunning:a,closeToast:n,type:r="default",hide:o,className:l,style:c,controlledProgress:h,progress:s,rtl:u,isIn:v,theme:f}=t;const d=o||h&&s===0,M={...c,animationDuration:`${e}ms`,animationPlayState:a?"running":"paused"};h&&(M.transform=`scaleX(${s})`);const g=fi("Toastify__progress-bar",h?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":u}),H=rn(l)?l({rtl:u,type:r,defaultClassName:g}):fi(g,l),p={[h&&s>=1?"onTransitionEnd":"onAnimationEnd"]:h&&s<1?null:()=>{v&&n()}};return W1.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":d},W1.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${r}`}),W1.createElement("div",{role:"progressbar","aria-hidden":d?"true":"false","aria-label":"notification timer",className:H,style:M,...p}))}let Zc1=1;const gK=()=>""+Zc1++;function Qc1(t){return t&&(k8(t.toastId)||Ns(t.toastId))?t.toastId:gK()}function W7(t,e){return fK(t,e),e.toastId}function Bg(t,e){return{...e,type:e&&e.type||t,toastId:Qc1(e)}}function Wv(t){return(e,a)=>W7(e,Bg(t,a))}function Q0(t,e){return W7(t,Bg("default",e))}Q0.loading=(t,e)=>W7(t,Bg("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Q0.promise=function(t,e,a){let n,{pending:r,error:o,success:l}=e;r&&(n=k8(r)?Q0.loading(r,a):Q0.loading(r.render,{...a,...r}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},h=(u,v,f)=>{if(v==null)return void Q0.dismiss(n);const d={type:u,...c,...a,data:f},M=k8(v)?{render:v}:v;return n?Q0.update(n,{...d,...M}):Q0(M.render,{...d,...M}),f},s=rn(t)?t():t;return s.then(u=>h("success",l,u)).catch(u=>h("error",o,u)),s},Q0.success=Wv("success"),Q0.info=Wv("info"),Q0.error=Wv("error"),Q0.warning=Wv("warning"),Q0.warn=Q0.warning,Q0.dark=(t,e)=>W7(t,Bg("default",{theme:"dark",...e})),Q0.dismiss=function(t){(function(e){var a;if(vK()){if(e==null||k8(a=e)||Ns(a))ha.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var n;(n=ha.get(e.containerId))!=null&&n.removeToast(e.id)||ha.forEach(r=>{r.removeToast(e.id)})}}else Ds=Ds.filter(r=>e!=null&&r.options.toastId!==e)})(t)},Q0.clearWaitingQueue=function(t){t===void 0&&(t={}),ha.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},Q0.isActive=dK,Q0.update=function(t,e){e===void 0&&(e={});const a=((n,r)=>{var o;let{containerId:l}=r;return(o=ha.get(l||1))==null?void 0:o.toasts.get(n)})(t,e);if(a){const{props:n,content:r}=a,o={delay:100,...n,...e,toastId:e.toastId||t,updateId:gK()};o.toastId!==t&&(o.staleId=t);const l=o.render||r;delete o.render,W7(l,o)}},Q0.done=t=>{Q0.update(t,{progress:1})},Q0.onChange=function(t){return gb.add(t),()=>{gb.delete(t)}},Q0.play=t=>KE(!0,t),Q0.pause=t=>KE(!1,t);const Xc1=typeof window<"u"?_.useLayoutEffect:_.useEffect,qv=t=>{let{theme:e,type:a,isLoading:n,...r}=t;return W1.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${a})`,...r})},Oy={info:function(t){return W1.createElement(qv,{...t},W1.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(t){return W1.createElement(qv,{...t},W1.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(t){return W1.createElement(qv,{...t},W1.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(t){return W1.createElement(qv,{...t},W1.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 W1.createElement("div",{className:"Toastify__spinner"})}},Jc1=t=>{const{isRunning:e,preventExitTransition:a,toastRef:n,eventHandlers:r,playToast:o}=Kc1(t),{closeButton:l,children:c,autoClose:h,onClick:s,type:u,hideProgressBar:v,closeToast:f,transition:d,position:M,className:g,style:H,bodyClassName:p,bodyStyle:m,progressClassName:z,progressStyle:w,updateId:x,role:y,progress:V,rtl:C,toastId:L,deleteToast:B,isIn:S,isLoading:T,closeOnClick:E,theme:$}=t,q=fi("Toastify__toast",`Toastify__toast-theme--${$}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":E}),U=rn(g)?g({rtl:C,position:M,type:u,defaultClassName:q}):fi(q,g),Y=function(i1){let{theme:t1,type:A,isLoading:o1,icon:h1}=i1,a1=null;const M1={theme:t1,type:A};return h1===!1||(rn(h1)?a1=h1({...M1,isLoading:o1}):_.isValidElement(h1)?a1=_.cloneElement(h1,M1):o1?a1=Oy.spinner():(s1=>s1 in Oy)(A)&&(a1=Oy[A](M1))),a1}(t),F=!!V||!h,X={closeToast:f,type:u,theme:$};let R=null;return l===!1||(R=rn(l)?l(X):_.isValidElement(l)?_.cloneElement(l,X):function(i1){let{closeToast:t1,theme:A,ariaLabel:o1="close"}=i1;return W1.createElement("button",{className:`Toastify__close-button Toastify__close-button--${A}`,type:"button",onClick:h1=>{h1.stopPropagation(),t1(h1)},"aria-label":o1},W1.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},W1.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"})))}(X)),W1.createElement(d,{isIn:S,done:B,position:M,preventExitTransition:a,nodeRef:n,playToast:o},W1.createElement("div",{id:L,onClick:s,"data-in":S,className:U,...r,style:H,ref:n},W1.createElement("div",{...S&&{role:y},className:rn(p)?p({type:u}):fi("Toastify__toast-body",p),style:m},Y!=null&&W1.createElement("div",{className:fi("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!T})},Y),W1.createElement("div",null,c)),R,W1.createElement(Yc1,{...x&&!F?{key:`pb-${x}`}:{},rtl:C,theme:$,delay:h,isRunning:e,isIn:S,closeToast:f,hide:v,type:u,style:w,className:z,controlledProgress:F,progress:V||0})))},km=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},t91=Am(km("bounce",!0));Am(km("slide",!0));Am(km("zoom"));Am(km("flip"));const e91={position:"top-right",transition:t91,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function a91(t){let e={...e91,...t};const a=t.stacked,[n,r]=_.useState(!0),o=_.useRef(null),{getToastToRender:l,isToastActive:c,count:h}=Gc1(e),{className:s,style:u,rtl:v,containerId:f}=e;function d(g){const H=fi("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":v});return rn(s)?s({position:g,rtl:v,defaultClassName:H}):fi(H,Mf(s))}function M(){a&&(r(!0),Q0.play())}return Xc1(()=>{if(a){var g;const H=o.current.querySelectorAll('[data-in="true"]'),p=12,m=(g=e.position)==null?void 0:g.includes("top");let z=0,w=0;Array.from(H).reverse().forEach((x,y)=>{const V=x;V.classList.add("Toastify__toast--stacked"),y>0&&(V.dataset.collapsed=`${n}`),V.dataset.pos||(V.dataset.pos=m?"top":"bot");const C=z*(n?.2:1)+(n?0:p*y);V.style.setProperty("--y",`${m?C:-1*C}px`),V.style.setProperty("--g",`${p}`),V.style.setProperty("--s",""+(1-(n?w:0))),z+=V.offsetHeight,w+=.025})}},[n,h,a]),W1.createElement("div",{ref:o,className:"Toastify",id:f,onMouseEnter:()=>{a&&(r(!1),Q0.pause())},onMouseLeave:M},l((g,H)=>{const p=H.length?{...u}:{...u,pointerEvents:"none"};return W1.createElement("div",{className:d(g),style:p,key:`container-${g}`},H.map(m=>{let{content:z,props:w}=m;return W1.createElement(Jc1,{...w,stacked:a,collapseAll:M,isIn:c(w.toastId,w.containerId),style:w.style,key:`toast-${w.key}`},z)}))}))}const YE="/assets/logo-orange-ZEopurkl.svg";var D_={};const St=se(ec1);var _g={};(function(t){var e=b&&b.__makeTemplateObject||function(d,M){return Object.defineProperty?Object.defineProperty(d,"raw",{value:M}):d.raw=M,d},a=b&&b.__assign||function(){return a=Object.assign||function(d){for(var M,g=1,H=arguments.length;g"u"?0:((t||Ay===void 0)&&(Ay=bK()),Ay.width)}function c91(t){return typeof document>"u"||!t||!(t instanceof Element)?{width:0,height:0}:bK(t)}function sc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!t)return{};var a=e.element,n=a===void 0?document.body:a,r={},o=Object.keys(t);return o.forEach(function(l){r[l]=n.style[l]}),o.forEach(function(l){n.style[l]=t[l]}),r}function s91(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var ky={};const eP=function(t){if(!(!s91()&&!t)){var e="ant-scrolling-effect",a=new RegExp("".concat(e),"g"),n=document.body.className;if(t){if(!a.test(n))return;sc(ky),ky={},document.body.className=n.replace(a,"").trim();return}var r=I_();if(r&&(ky=sc({position:"relative",width:"calc(100% - ".concat(r,"px)")}),!a.test(n))){var o="".concat(n," ").concat(e);document.body.className=o.trim()}}};function zb(t,e){(e==null||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a0||o.scrollHeight>o.clientHeight)&&getComputedStyle(o).overflow!=="hidden"&&(r=I_());var l=o.className;if(wn.filter(function(h){var s,u=h.options;return(u==null?void 0:u.container)===((s=a.options)===null||s===void 0?void 0:s.container)}).length===0&&Py.set(o,sc({width:r!==0?"calc(100% - ".concat(r,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:o})),!Ey.test(l)){var c="".concat(l," ").concat(BK);o.className=c.trim()}wn=[].concat(i0(wn),[{target:a.lockTarget,options:a.options}])}}),u1(this,"unLock",function(){var n,r=wn.find(function(c){var h=c.target;return h===a.lockTarget});if(wn=wn.filter(function(c){var h=c.target;return h!==a.lockTarget}),!(!r||wn.some(function(c){var h,s=c.options;return(s==null?void 0:s.container)===((h=r.options)===null||h===void 0?void 0:h.container)}))){var o=((n=a.options)===null||n===void 0?void 0:n.container)||document.body,l=o.className;Ey.test(l)&&(sc(Py.get(o),{element:o}),Py.delete(o),o.className=o.className.replace(Ey,"").trim())}}),this.lockTarget=v91++,this.options=e}),Ui=0,y7=Gn(),Gv={},Ul=function(e){if(!y7)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(C2(e)==="object"&&e instanceof window.HTMLElement)return e}return document.body},_K=function(t){M2(a,t);var e=B2(a);function a(n){var r;return Jt(this,a),r=e.call(this,n),u1(D1(r),"container",void 0),u1(D1(r),"componentRef",_.createRef()),u1(D1(r),"rafId",void 0),u1(D1(r),"scrollLocker",void 0),u1(D1(r),"renderComponent",void 0),u1(D1(r),"updateScrollLocker",function(o){var l=o||{},c=l.visible,h=r.props,s=h.getContainer,u=h.visible;u&&u!==c&&y7&&Ul(s)!==r.scrollLocker.getContainer()&&r.scrollLocker.reLock({container:Ul(s)})}),u1(D1(r),"updateOpenCount",function(o){var l=o||{},c=l.visible,h=l.getContainer,s=r.props,u=s.visible,v=s.getContainer;u!==c&&y7&&Ul(v)===document.body&&(u&&!c?Ui+=1:o&&(Ui-=1));var f=typeof v=="function"&&typeof h=="function";(f?v.toString()!==h.toString():v!==h)&&r.removeCurrentContainer()}),u1(D1(r),"attachToParent",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(o||r.container&&!r.container.parentNode){var l=Ul(r.props.getContainer);return l?(l.appendChild(r.container),!0):!1}return!0}),u1(D1(r),"getContainer",function(){return y7?(r.container||(r.container=document.createElement("div"),r.attachToParent(!0)),r.setWrapperClassName(),r.container):null}),u1(D1(r),"setWrapperClassName",function(){var o=r.props.wrapperClassName;r.container&&o&&o!==r.container.className&&(r.container.className=o)}),u1(D1(r),"removeCurrentContainer",function(){var o;(o=r.container)===null||o===void 0||(o=o.parentNode)===null||o===void 0||o.removeChild(r.container)}),u1(D1(r),"switchScrollingEffect",function(){Ui===1&&!Object.keys(Gv).length?(eP(),Gv=sc({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):Ui||(sc(Gv),Gv={},eP(!0))}),r.scrollLocker=new d91({container:Ul(n.getContainer)}),r}return t2(a,[{key:"componentDidMount",value:function(){var r=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=G4(function(){r.forceUpdate()}))}},{key:"componentDidUpdate",value:function(r){this.updateOpenCount(r),this.updateScrollLocker(r),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var r=this.props,o=r.visible,l=r.getContainer;y7&&Ul(l)===document.body&&(Ui=o&&Ui?Ui-1:Ui),this.removeCurrentContainer(),G4.cancel(this.rafId)}},{key:"render",value:function(){var r=this.props,o=r.children,l=r.forceRender,c=r.visible,h=null,s={getOpenCount:function(){return Ui},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(l||c||this.componentRef.current)&&(h=_.createElement(r91,{getContainer:this.getContainer,ref:this.componentRef},o(s))),h}}]),a}(_.Component),SK={exports:{}};/*! +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o0(t){return h91(t)||LK(t)||Pm(t)||u91()}var v91=0,wn=[],BK="ant-scrolling-effect",Ey=new RegExp("".concat(BK),"g"),Py=new Map,d91=t2(function t(e){var a=this;Jt(this,t),u1(this,"lockTarget",void 0),u1(this,"options",void 0),u1(this,"getContainer",function(){var n;return(n=a.options)===null||n===void 0?void 0:n.container}),u1(this,"reLock",function(n){var r=wn.find(function(o){var l=o.target;return l===a.lockTarget});r&&a.unLock(),a.options=n,r&&(r.options=n,a.lock())}),u1(this,"lock",function(){var n;if(!wn.some(function(h){var s=h.target;return s===a.lockTarget})){if(wn.some(function(h){var s,u=h.options;return(u==null?void 0:u.container)===((s=a.options)===null||s===void 0?void 0:s.container)})){wn=[].concat(o0(wn),[{target:a.lockTarget,options:a.options}]);return}var r=0,o=((n=a.options)===null||n===void 0?void 0:n.container)||document.body;(o===document.body&&window.innerWidth-document.documentElement.clientWidth>0||o.scrollHeight>o.clientHeight)&&getComputedStyle(o).overflow!=="hidden"&&(r=I_());var l=o.className;if(wn.filter(function(h){var s,u=h.options;return(u==null?void 0:u.container)===((s=a.options)===null||s===void 0?void 0:s.container)}).length===0&&Py.set(o,sc({width:r!==0?"calc(100% - ".concat(r,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:o})),!Ey.test(l)){var c="".concat(l," ").concat(BK);o.className=c.trim()}wn=[].concat(o0(wn),[{target:a.lockTarget,options:a.options}])}}),u1(this,"unLock",function(){var n,r=wn.find(function(c){var h=c.target;return h===a.lockTarget});if(wn=wn.filter(function(c){var h=c.target;return h!==a.lockTarget}),!(!r||wn.some(function(c){var h,s=c.options;return(s==null?void 0:s.container)===((h=r.options)===null||h===void 0?void 0:h.container)}))){var o=((n=a.options)===null||n===void 0?void 0:n.container)||document.body,l=o.className;Ey.test(l)&&(sc(Py.get(o),{element:o}),Py.delete(o),o.className=o.className.replace(Ey,"").trim())}}),this.lockTarget=v91++,this.options=e}),Ui=0,y7=Gn(),Gv={},Ul=function(e){if(!y7)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(C2(e)==="object"&&e instanceof window.HTMLElement)return e}return document.body},_K=function(t){M2(a,t);var e=B2(a);function a(n){var r;return Jt(this,a),r=e.call(this,n),u1(D1(r),"container",void 0),u1(D1(r),"componentRef",_.createRef()),u1(D1(r),"rafId",void 0),u1(D1(r),"scrollLocker",void 0),u1(D1(r),"renderComponent",void 0),u1(D1(r),"updateScrollLocker",function(o){var l=o||{},c=l.visible,h=r.props,s=h.getContainer,u=h.visible;u&&u!==c&&y7&&Ul(s)!==r.scrollLocker.getContainer()&&r.scrollLocker.reLock({container:Ul(s)})}),u1(D1(r),"updateOpenCount",function(o){var l=o||{},c=l.visible,h=l.getContainer,s=r.props,u=s.visible,v=s.getContainer;u!==c&&y7&&Ul(v)===document.body&&(u&&!c?Ui+=1:o&&(Ui-=1));var f=typeof v=="function"&&typeof h=="function";(f?v.toString()!==h.toString():v!==h)&&r.removeCurrentContainer()}),u1(D1(r),"attachToParent",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(o||r.container&&!r.container.parentNode){var l=Ul(r.props.getContainer);return l?(l.appendChild(r.container),!0):!1}return!0}),u1(D1(r),"getContainer",function(){return y7?(r.container||(r.container=document.createElement("div"),r.attachToParent(!0)),r.setWrapperClassName(),r.container):null}),u1(D1(r),"setWrapperClassName",function(){var o=r.props.wrapperClassName;r.container&&o&&o!==r.container.className&&(r.container.className=o)}),u1(D1(r),"removeCurrentContainer",function(){var o;(o=r.container)===null||o===void 0||(o=o.parentNode)===null||o===void 0||o.removeChild(r.container)}),u1(D1(r),"switchScrollingEffect",function(){Ui===1&&!Object.keys(Gv).length?(eP(),Gv=sc({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):Ui||(sc(Gv),Gv={},eP(!0))}),r.scrollLocker=new d91({container:Ul(n.getContainer)}),r}return t2(a,[{key:"componentDidMount",value:function(){var r=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=G4(function(){r.forceUpdate()}))}},{key:"componentDidUpdate",value:function(r){this.updateOpenCount(r),this.updateScrollLocker(r),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var r=this.props,o=r.visible,l=r.getContainer;y7&&Ul(l)===document.body&&(Ui=o&&Ui?Ui-1:Ui),this.removeCurrentContainer(),G4.cancel(this.rafId)}},{key:"render",value:function(){var r=this.props,o=r.children,l=r.forceRender,c=r.visible,h=null,s={getOpenCount:function(){return Ui},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(l||c||this.componentRef.current)&&(h=_.createElement(r91,{getContainer:this.getContainer,ref:this.componentRef},o(s))),h}}]),a}(_.Component),SK={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(t){(function(){var e={}.hasOwnProperty;function a(){for(var o="",l=0;l=it.F1&&a<=it.F12)return!1;switch(a){case it.ALT:case it.CAPS_LOCK:case it.CONTEXT_MENU:case it.CTRL:case it.DOWN:case it.END:case it.ESC:case it.HOME:case it.INSERT:case it.LEFT:case it.MAC_FF_META:case it.META:case it.NUMLOCK:case it.NUM_CENTER:case it.PAGE_DOWN:case it.PAGE_UP:case it.PAUSE:case it.PRINT_SCREEN:case it.RIGHT:case it.SHIFT:case it.UP:case it.WIN_KEY:case it.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=it.ZERO&&e<=it.NINE||e>=it.NUM_ZERO&&e<=it.NUM_MULTIPLY||e>=it.A&&e<=it.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case it.SPACE:case it.QUESTION_MARK:case it.NUM_PLUS:case it.NUM_MINUS:case it.NUM_PERIOD:case it.NUM_DIVISION:case it.SEMICOLON:case it.DASH:case it.EQUALS:case it.COMMA:case it.PERIOD:case it.SLASH:case it.APOSTROPHE:case it.SINGLE_QUOTE:case it.OPEN_SQUARE_BRACKET:case it.BACKSLASH:case it.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function F_(t,e){var a=Q1({},t);return Array.isArray(e)&&e.forEach(function(n){delete a[n]}),a}function f91(t){return Array.isArray(t)?t:[t]}var TK={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},OK=Object.keys(TK).filter(function(t){if(typeof document>"u")return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],aP=TK[OK];function nP(t,e,a,n){t.addEventListener?t.addEventListener(e,a,n):t.attachEvent&&t.attachEvent("on".concat(e),a)}function rP(t,e,a,n){t.removeEventListener?t.removeEventListener(e,a,n):t.attachEvent&&t.detachEvent("on".concat(e),a)}function g91(t,e){var a=typeof t=="function"?t(e):t;return Array.isArray(a)?a.length===2?a:[a[0],a[1]]:[a]}var iP=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Ny=!(typeof window<"u"&&window.document&&window.document.createElement),p91=function t(e,a,n,r){if(!a||a===document||a instanceof Document)return!1;if(a===e.parentNode)return!0;var o=Math.max(Math.abs(n),Math.abs(r))===Math.abs(r),l=Math.max(Math.abs(n),Math.abs(r))===Math.abs(n),c=a.scrollHeight-a.clientHeight,h=a.scrollWidth-a.clientWidth,s=document.defaultView.getComputedStyle(a),u=s.overflowY==="auto"||s.overflowY==="scroll",v=s.overflowX==="auto"||s.overflowX==="scroll",f=c&&u,d=h&&v;return o&&(!f||f&&(a.scrollTop>=c&&r<0||a.scrollTop<=0&&r>0))||l&&(!d||d&&(a.scrollLeft>=h&&n<0||a.scrollLeft<=0&&n>0))?t(e,a.parentNode,n,r):!1},m91=["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","scrollLocker","contentWrapperStyle"],I9={},oP=function(t){M2(a,t);var e=B2(a);function a(n){var r;return Jt(this,a),r=e.call(this,n),r.levelDom=void 0,r.dom=void 0,r.contentWrapper=void 0,r.contentDom=void 0,r.maskDom=void 0,r.handlerDom=void 0,r.drawerId=void 0,r.timeout=void 0,r.passive=void 0,r.startPos=void 0,r.domFocus=function(){r.dom&&r.dom.focus()},r.removeStartHandler=function(o){if(o.touches.length>1){r.startPos=null;return}r.startPos={x:o.touches[0].clientX,y:o.touches[0].clientY}},r.removeMoveHandler=function(o){if(!(o.changedTouches.length>1||!r.startPos)){var l=o.currentTarget,c=o.changedTouches[0].clientX-r.startPos.x,h=o.changedTouches[0].clientY-r.startPos.y;(l===r.maskDom||l===r.handlerDom||l===r.contentDom&&p91(l,o.target,c,h))&&o.cancelable&&o.preventDefault()}},r.transitionEnd=function(o){var l=o.target;rP(l,aP,r.transitionEnd),l.style.transition=""},r.onKeyDown=function(o){if(o.keyCode===it.ESC){var l=r.props.onClose;o.stopPropagation(),l&&l(o)}},r.onWrapperTransitionEnd=function(o){var l=r.props,c=l.open,h=l.afterVisibleChange;o.target===r.contentWrapper&&o.propertyName.match(/transform$/)&&(r.dom.style.transition="",!c&&r.getCurrentDrawerSome()&&(document.body.style.overflowX="",r.maskDom&&(r.maskDom.style.left="",r.maskDom.style.width="")),h&&h(!!c))},r.openLevelTransition=function(){var o=r.props,l=o.open,c=o.width,h=o.height,s=r.getHorizontalBoolAndPlacementName(),u=s.isHorizontal,v=s.placementName,f=r.contentDom?r.contentDom.getBoundingClientRect()[u?"width":"height"]:0,d=(u?c:h)||f;r.setLevelAndScrolling(l,v,d)},r.setLevelTransform=function(o,l,c,h){var s=r.props,u=s.placement,v=s.levelMove,f=s.duration,d=s.ease,M=s.showMask;r.levelDom.forEach(function(g){g.style.transition="transform ".concat(f," ").concat(d),nP(g,aP,r.transitionEnd);var H=o?c:0;if(v){var p=g91(v,{target:g,open:o});H=o?p[0]:p[1]||0}var m=typeof H=="number"?"".concat(H,"px"):H,z=u==="left"||u==="top"?m:"-".concat(m);z=M&&u==="right"&&h?"calc(".concat(z," + ").concat(h,"px)"):z,g.style.transform=H?"".concat(l,"(").concat(z,")"):""})},r.setLevelAndScrolling=function(o,l,c){var h=r.props.onChange;if(!Ny){var s=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?I_(!0):0;r.setLevelTransform(o,l,c,s),r.toggleScrollingToDrawerAndBody(s)}h&&h(o)},r.toggleScrollingToDrawerAndBody=function(o){var l=r.props,c=l.getContainer,h=l.showMask,s=l.open,u=c&&c();if(u&&u.parentNode===document.body&&h){var v=["touchstart"],f=[document.body,r.maskDom,r.handlerDom,r.contentDom];s&&document.body.style.overflow!=="hidden"?(o&&r.addScrollingEffect(o),document.body.style.touchAction="none",f.forEach(function(d,M){d&&nP(d,v[M]||"touchmove",M?r.removeMoveHandler:r.removeStartHandler,r.passive)})):r.getCurrentDrawerSome()&&(document.body.style.touchAction="",o&&r.remScrollingEffect(o),f.forEach(function(d,M){d&&rP(d,v[M]||"touchmove",M?r.removeMoveHandler:r.removeStartHandler,r.passive)}))}},r.addScrollingEffect=function(o){var l=r.props,c=l.placement,h=l.duration,s=l.ease,u="width ".concat(h," ").concat(s),v="transform ".concat(h," ").concat(s);switch(r.dom.style.transition="none",c){case"right":r.dom.style.transform="translateX(-".concat(o,"px)");break;case"top":case"bottom":r.dom.style.width="calc(100% - ".concat(o,"px)"),r.dom.style.transform="translateZ(0)";break}clearTimeout(r.timeout),r.timeout=setTimeout(function(){r.dom&&(r.dom.style.transition="".concat(v,",").concat(u),r.dom.style.width="",r.dom.style.transform="")})},r.remScrollingEffect=function(o){var l=r.props,c=l.placement,h=l.duration,s=l.ease;OK&&(document.body.style.overflowX="hidden"),r.dom.style.transition="none";var u,v="width ".concat(h," ").concat(s),f="transform ".concat(h," ").concat(s);switch(c){case"left":{r.dom.style.width="100%",v="width 0s ".concat(s," ").concat(h);break}case"right":{r.dom.style.transform="translateX(".concat(o,"px)"),r.dom.style.width="100%",v="width 0s ".concat(s," ").concat(h),r.maskDom&&(r.maskDom.style.left="-".concat(o,"px"),r.maskDom.style.width="calc(100% + ".concat(o,"px)"));break}case"top":case"bottom":{r.dom.style.width="calc(100% + ".concat(o,"px)"),r.dom.style.height="100%",r.dom.style.transform="translateZ(0)",u="height 0s ".concat(s," ").concat(h);break}}clearTimeout(r.timeout),r.timeout=setTimeout(function(){r.dom&&(r.dom.style.transition="".concat(f,",").concat(u?"".concat(u,","):"").concat(v),r.dom.style.transform="",r.dom.style.width="",r.dom.style.height="")})},r.getCurrentDrawerSome=function(){return!Object.keys(I9).some(function(o){return I9[o]})},r.getLevelDom=function(o){var l=o.level,c=o.getContainer;if(!Ny){var h=c&&c(),s=h?h.parentNode:null;if(r.levelDom=[],l==="all"){var u=s?Array.prototype.slice.call(s.children):[];u.forEach(function(v){v.nodeName!=="SCRIPT"&&v.nodeName!=="STYLE"&&v.nodeName!=="LINK"&&v!==h&&r.levelDom.push(v)})}else l&&f91(l).forEach(function(v){document.querySelectorAll(v).forEach(function(f){r.levelDom.push(f)})})}},r.getHorizontalBoolAndPlacementName=function(){var o=r.props.placement,l=o==="left"||o==="right",c="translate".concat(l?"X":"Y");return{isHorizontal:l,placementName:c}},r.state={_self:D1(r)},r}return t2(a,[{key:"componentDidMount",value:function(){var r=this;if(!Ny){var o=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return o=!0,null}}))}catch{}this.passive=o?{passive:!1}:!1}var l=this.props,c=l.open,h=l.getContainer,s=l.showMask,u=l.autoFocus,v=h&&h();if(this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),c&&(v&&v.parentNode===document.body&&(I9[this.drawerId]=c),this.openLevelTransition(),this.forceUpdate(function(){u&&r.domFocus()}),s)){var f;(f=this.props.scrollLocker)===null||f===void 0||f.lock()}}},{key:"componentDidUpdate",value:function(r){var o=this.props,l=o.open,c=o.getContainer,h=o.scrollLocker,s=o.showMask,u=o.autoFocus,v=c&&c();l!==r.open&&(v&&v.parentNode===document.body&&(I9[this.drawerId]=!!l),this.openLevelTransition(),l?(u&&this.domFocus(),s&&(h==null||h.lock())):h==null||h.unLock())}},{key:"componentWillUnmount",value:function(){var r=this.props,o=r.open,l=r.scrollLocker;delete I9[this.drawerId],o&&(this.setLevelTransform(!1),document.body.style.touchAction=""),l==null||l.unLock()}},{key:"render",value:function(){var r,o=this,l=this.props,c=l.className,h=l.children,s=l.style,u=l.width,v=l.height;l.defaultOpen;var f=l.open,d=l.prefixCls,M=l.placement;l.level,l.levelMove,l.ease,l.duration,l.getContainer;var g=l.handler;l.onChange,l.afterVisibleChange;var H=l.showMask,p=l.maskClosable,m=l.maskStyle,z=l.onClose,w=l.onHandleClick,x=l.keyboard;l.getOpenCount,l.scrollLocker;var y=l.contentWrapperStyle,V=d0(l,m91),C=this.dom?f:!1,L=E2(d,(r={},u1(r,"".concat(d,"-").concat(M),!0),u1(r,"".concat(d,"-open"),C),u1(r,c||"",!!c),u1(r,"no-mask",!H),r)),B=this.getHorizontalBoolAndPlacementName(),S=B.placementName,T=M==="left"||M==="top"?"-100%":"100%",E=C?"":"".concat(S,"(").concat(T,")"),$=g&&_.cloneElement(g,{onClick:function(W){g.props.onClick&&g.props.onClick(),w&&w(W)},ref:function(W){o.handlerDom=W}});return _.createElement("div",Zt({},F_(V,["switchScrollingEffect","autoFocus"]),{tabIndex:-1,className:L,style:s,ref:function(W){o.dom=W},onKeyDown:C&&x?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),H&&_.createElement("div",{className:"".concat(d,"-mask"),onClick:p?z:void 0,style:m,ref:function(W){o.maskDom=W}}),_.createElement("div",{className:"".concat(d,"-content-wrapper"),style:Q1({transform:E,msTransform:E,width:iP(u)?"".concat(u,"px"):u,height:iP(v)?"".concat(v,"px"):v},y),ref:function(W){o.contentWrapper=W}},_.createElement("div",{className:"".concat(d,"-content"),ref:function(W){o.contentDom=W}},h),$))}}],[{key:"getDerivedStateFromProps",value:function(r,o){var l=o.prevProps,c=o._self,h={prevProps:r};if(l!==void 0){var s=r.placement,u=r.level;s!==l.placement&&(c.contentDom=null),u!==l.level&&c.getLevelDom(r)}return h}}]),a}(_.Component),z91=["defaultOpen","getContainer","wrapperClassName","forceRender","handler"],M91=["visible","afterClose"],Nm=function(t){M2(a,t);var e=B2(a);function a(n){var r;Jt(this,a),r=e.call(this,n),r.dom=void 0,r.onHandleClick=function(l){var c=r.props,h=c.onHandleClick,s=c.open;if(h&&h(l),typeof s>"u"){var u=r.state.open;r.setState({open:!u})}},r.onClose=function(l){var c=r.props,h=c.onClose,s=c.open;h&&h(l),typeof s>"u"&&r.setState({open:!1})};var o=typeof n.open<"u"?n.open:!!n.defaultOpen;return r.state={open:o},"onMaskClick"in n&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),r}return t2(a,[{key:"render",value:function(){var r=this,o=this.props;o.defaultOpen;var l=o.getContainer,c=o.wrapperClassName,h=o.forceRender,s=o.handler,u=d0(o,z91),v=this.state.open;if(!l)return _.createElement("div",{className:c,ref:function(M){r.dom=M}},_.createElement(oP,Zt({},u,{open:v,handler:s,getContainer:function(){return r.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var f=!!s||h;return _.createElement(_K,{visible:v,forceRender:f,getContainer:l,wrapperClassName:c},function(d){var M=d.visible,g=d.afterClose,H=d0(d,M91);return _.createElement(oP,Zt({},u,H,{open:M!==void 0?M:v,afterVisibleChange:g!==void 0?g:u.afterVisibleChange,handler:s,onClose:r.onClose,onHandleClick:r.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(r,o){var l=o.prevProps,c={prevProps:r};return typeof l<"u"&&r.open!==l.open&&(c.open=r.open),c}}]),a}(_.Component);Nm.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:_.createElement("div",{className:"drawer-handle"},_.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1,autoFocus:!0};const H91=Object.freeze(Object.defineProperty({__proto__:null,default:Nm},Symbol.toStringTag,{value:"Module"})),w91=se(H91);var Vi={},Dm={},Rm={},ho={},kr={};Object.defineProperty(kr,"__esModule",{value:!0});kr.setConfiguration=kr.getConfiguration=void 0;let Mb={breakpoints:[576,768,992,1200,1600,1920],containerWidths:[540,750,960,1140,1540,1810],gutterWidth:30,gridColumns:12,defaultScreenClass:"xxl",maxScreenClass:"xxl"};const y91=()=>Mb;kr.getConfiguration=y91;const x91=t=>{Mb={...Mb,...t}};kr.setConfiguration=x91;var Ic={},jm={};Object.defineProperty(jm,"__esModule",{value:!0});jm.default=void 0;jm.default="div";var Im={};Object.defineProperty(Im,"__esModule",{value:!0});Im.default=void 0;Im.default="span";var Fm={};Object.defineProperty(Fm,"__esModule",{value:!0});Fm.default=void 0;Fm.default=typeof window<"u"?window:void 0;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Div",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"Span",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Window",{enumerable:!0,get:function(){return n.default}});var e=r(jm),a=r(Im),n=r(Fm);function r(o){return o&&o.__esModule?o:{default:o}}})(Ic);Object.defineProperty(ho,"__esModule",{value:!0});ho.useScreenClass=ho.screenClasses=void 0;var lP=_,V91=kr,q7=Ic;const C91=t=>t&&t.current&&t.current.clientWidth?t.current.clientWidth:typeof q7.Window<"u"&&q7.Window.innerWidth?q7.Window.innerWidth:null,Dy=ho.screenClasses=["xs","sm","md","lg","xl","xxl","xxxl"],b91=(t,e)=>{const a=()=>{const{breakpoints:o,defaultScreenClass:l,maxScreenClass:c}=(0,V91.getConfiguration)();let h=l;const s=C91(t);s?(h="xs",o[0]&&s>=o[0]&&(h="sm"),o[1]&&s>=o[1]&&(h="md"),o[2]&&s>=o[2]&&(h="lg"),o[3]&&s>=o[3]&&(h="xl"),o[4]&&s>=o[4]&&(h="xxl"),o[5]&&s>=o[5]&&(h="xxxl")):e&&(h=e);const u=Dy.indexOf(h),v=Dy.indexOf(c);return v>=0&&u>v&&(h=Dy[v]),h},[n,r]=(0,lP.useState)(()=>a());return(0,lP.useEffect)(()=>{const o=()=>r(a());return q7.Window.addEventListener("resize",o,!1),()=>{q7.Window.removeEventListener("resize",o,!1)}},[]),n};ho.useScreenClass=b91;Object.defineProperty(Rm,"__esModule",{value:!0});Rm.default=void 0;var cP=ho;const L91=t=>Object.keys(t).reduce((e,a)=>e||t[a],!1),Kv=(t,e)=>{if(typeof t!="number")return;const a=Math.max(0,Math.min(e,t));return`${100/e*a}%`};var B91=t=>{let{forceWidth:e=null,width:a={},offset:n={},pull:r={},push:o={},order:l={},debug:c,screenClass:h,gutterWidth:s,moreStyle:u,gridColumns:v}=t;const f={boxSizing:"border-box",minHeight:1,position:"relative",paddingLeft:s/2,paddingRight:s/2,width:"100%"};return c&&(f.outline="1px solid silver",f.background="rgba(0,0,0,.05)",f.lineHeight="32px"),f.flexBasis="100%",f.flexGrow=0,f.flexShrink=0,f.maxWidth="100%",f.marginLeft="0%",f.right="auto",f.left="auto",cP.screenClasses.forEach((d,M)=>{if(cP.screenClasses.indexOf(h)>=M){const g=Kv(a[d],v),H=a[d]==="content";f.flexBasis=H?"auto":g||f.flexBasis,f.width=f.flexBasis,f.maxWidth=g||f.maxWidth,f.marginLeft=Kv(n[d],v)||f.marginLeft,f.right=Kv(r[d],v)||f.right,f.left=Kv(o[d],v)||f.left,l[d]&&(f.order=l[d])}}),L91(a)||(f.flexBasis=0,f.flexGrow=1),e&&(f.flexBasis="unset",f.flexGrow="unset",f.flexShrink="unset",f.width=e),{...f,...u}};Rm.default=B91;var Q8={},$m={};Object.defineProperty($m,"__esModule",{value:!0});$m.default=void 0;var _91=t=>{let{gutterWidth:e,align:a,justify:n,debug:r,moreStyle:o,direction:l,wrap:c}=t,h=a;a==="start"&&(h="flex-start"),a==="end"&&(h="flex-end");let s=n;n==="start"&&(s="flex-start"),n==="end"&&(s="flex-end"),n==="between"&&(s="space-between"),n==="around"&&(s="space-around"),n==="center"&&(s="center"),n==="initial"&&(s="initial"),n==="inherit"&&(s="inherit");const u=["column","row","column-reverse","row-reverse"].includes(l)?l:void 0;let v=c;c==="nowrap"&&(v="nowrap"),c==="wrap"&&(v="wrap"),c==="reverse"&&(v="wrap-reverse");const f={marginLeft:-e/2,marginRight:-e/2,display:"flex",flexGrow:0,flexShrink:0,alignItems:h,justifyContent:s,flexDirection:u,flexWrap:v};return r&&(f.background="rgba(128,128,128,.05)"),{...f,...o}};$m.default=_91;Object.defineProperty(Q8,"__esModule",{value:!0});Q8.default=Q8.GutterWidthContext=void 0;var Hf=$_(_),Ka=$_(E5),S91=kr,T91=$_($m),O91=Ic;function $_(t){return t&&t.__esModule?t:{default:t}}const A91=Q8.GutterWidthContext=Hf.default.createContext(!1),U_=Hf.default.forwardRef((t,e)=>{let{children:a,style:n={},align:r="normal",justify:o="start",wrap:l="wrap",debug:c=!1,nogutter:h=!1,gutterWidth:s=null,component:u=O91.Div,direction:v="row",...f}=t,d=(0,S91.getConfiguration)().gutterWidth;h&&(d=0),typeof s=="number"&&(d=s);const M=(0,T91.default)({gutterWidth:d,align:r,justify:o,debug:c,moreStyle:n,direction:v,wrap:l});return Hf.default.createElement(u,{ref:e,style:M,...f},Hf.default.createElement(A91.Provider,{value:d},a))});U_.propTypes={children:Ka.default.node.isRequired,align:Ka.default.oneOf(["normal","start","center","end","stretch"]),justify:Ka.default.oneOf(["start","center","end","between","around","initial","inherit"]),direction:Ka.default.oneOf(["column","row","column-reverse","row-reverse"]),wrap:Ka.default.oneOf(["nowrap","wrap","reverse"]),nogutter:Ka.default.bool,gutterWidth:Ka.default.number,style:Ka.default.objectOf(Ka.default.oneOfType([Ka.default.number,Ka.default.string])),debug:Ka.default.bool,component:Ka.default.elementType};U_.displayName="Row";Q8.default=U_;var Lo={},u5={};Object.defineProperty(u5,"__esModule",{value:!0});u5.default=u5.ScreenClassContext=u5.NO_PROVIDER_FLAG=void 0;var M3=D91(_),Ry=N91(E5),k91=ho,E91=kr,P91=Ic;function N91(t){return t&&t.__esModule?t:{default:t}}function AK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,a=new WeakMap;return(AK=function(n){return n?a:e})(t)}function D91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var a=AK(e);if(a&&a.has(t))return a.get(t);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=t[o]}return n.default=t,a&&a.set(t,n),n}const R91=u5.NO_PROVIDER_FLAG="NO_PROVIDER_FLAG",j91=u5.ScreenClassContext=M3.default.createContext(R91),kK=t=>{let{useOwnWidth:e=!1,children:a,fallbackScreenClass:n=null}=t;const r=(0,M3.useRef)(),[o,l]=(0,M3.useState)(!1),c=(0,k91.useScreenClass)(r,n),{defaultScreenClass:h}=(0,E91.getConfiguration)(),s=o?c:n||h;return(0,M3.useEffect)(()=>l(!0),[]),M3.default.createElement(j91.Provider,{value:s},e?M3.default.createElement(P91.Div,{ref:e?r:null},a):M3.default.createElement(M3.default.Fragment,null,a))};kK.propTypes={children:Ry.default.node.isRequired,useOwnWidth:Ry.default.bool,fallbackScreenClass:Ry.default.oneOf([null,"xs","sm","md","lg","xl","xxl","xxxl"])};u5.default=kK;Object.defineProperty(Lo,"__esModule",{value:!0});Lo.default=void 0;var jy=PK(_),I91=PK(E5),Yv=F91(u5);function EK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,a=new WeakMap;return(EK=function(n){return n?a:e})(t)}function F91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var a=EK(e);if(a&&a.has(t))return a.get(t);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=t[o]}return n.default=t,a&&a.set(t,n),n}function PK(t){return t&&t.__esModule?t:{default:t}}const NK=t=>{let{children:e}=t;return jy.default.createElement(Yv.ScreenClassContext.Consumer,null,a=>a===Yv.NO_PROVIDER_FLAG?jy.default.createElement(Yv.default,null,jy.default.createElement(Yv.ScreenClassContext.Consumer,null,n=>e(n))):e(a))};NK.propTypes={children:I91.default.func.isRequired};Lo.default=NK;Object.defineProperty(Dm,"__esModule",{value:!0});Dm.default=void 0;var Zv=K91(_),Yt=W_(E5),$91=W_(Rm),U91=kr,W91=Q8,q91=W_(Lo),G91=Ic;function W_(t){return t&&t.__esModule?t:{default:t}}function DK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,a=new WeakMap;return(DK=function(n){return n?a:e})(t)}function K91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var a=DK(e);if(a&&a.has(t))return a.get(t);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=t[o]}return n.default=t,a&&a.set(t,n),n}const q_=Zv.default.forwardRef((t,e)=>{let{children:a=null,xs:n=null,sm:r=null,md:o=null,lg:l=null,xl:c=null,xxl:h=null,xxxl:s=null,offset:u={},pull:v={},push:f={},order:d={},debug:M=!1,style:g={},component:H=G91.Div,width:p=null,...m}=t;return Zv.default.createElement(q91.default,null,z=>Zv.default.createElement(W91.GutterWidthContext.Consumer,null,w=>{const x=(0,$91.default)({forceWidth:p,width:{xs:n,sm:r,md:o,lg:l,xl:c,xxl:h,xxxl:s},offset:u,pull:v,push:f,order:d,debug:M,screenClass:z,gutterWidth:w,gridColumns:(0,U91.getConfiguration)().gridColumns,moreStyle:g});return(0,Zv.createElement)(H,{ref:e,style:x,...m,children:a})}))});q_.propTypes={children:Yt.default.node,xs:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),sm:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),md:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),lg:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),xl:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),xxl:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),xxxl:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),width:Yt.default.oneOfType([Yt.default.number,Yt.default.string]),offset:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),push:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),pull:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),order:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),style:Yt.default.objectOf(Yt.default.oneOfType([Yt.default.number,Yt.default.string])),debug:Yt.default.bool,component:Yt.default.elementType};q_.displayName="Col";Dm.default=q_;var Um={},Wm={};Object.defineProperty(Wm,"__esModule",{value:!0});Wm.default=void 0;var Y91=t=>{let{fluid:e,xs:a,sm:n,md:r,lg:o,xl:l,xxl:c,xxxl:h,screenClass:s,containerWidths:u,gutterWidth:v,moreStyle:f}=t;const d={boxSizing:"border-box",position:"relative",marginLeft:"auto",marginRight:"auto",paddingLeft:v/2,paddingRight:v/2};return e&&!a&&!n&&!r&&!o&&!l?{...d,...f}:(s==="xs"&&u[0]&&!a&&(d.maxWidth=u[0]),s==="sm"&&u[0]&&!n&&(d.maxWidth=u[0]),s==="md"&&u[1]&&!r&&(d.maxWidth=u[1]),s==="lg"&&u[2]&&!o&&(d.maxWidth=u[2]),s==="xl"&&u[3]&&!l&&(d.maxWidth=u[3]),s==="xxl"&&u[4]&&!c&&(d.maxWidth=u[4]),s==="xxxl"&&u[5]&&!h&&(d.maxWidth=u[5]),{...d,...f})};Wm.default=Y91;Object.defineProperty(Um,"__esModule",{value:!0});Um.default=void 0;var Iy=J91(_),Ca=G_(E5),Z91=G_(Wm),sP=kr,Q91=G_(Lo),X91=Ic;function G_(t){return t&&t.__esModule?t:{default:t}}function RK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,a=new WeakMap;return(RK=function(n){return n?a:e})(t)}function J91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var a=RK(e);if(a&&a.has(t))return a.get(t);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=t[o]}return n.default=t,a&&a.set(t,n),n}const K_=Iy.default.forwardRef((t,e)=>{let{children:a,fluid:n=!1,xs:r=!1,sm:o=!1,md:l=!1,lg:c=!1,xl:h=!1,xxl:s=!1,xxxl:u=!1,style:v={},component:f=X91.Div,...d}=t;return Iy.default.createElement(Q91.default,null,M=>(0,Iy.createElement)(f,{ref:e,style:(0,Z91.default)({fluid:n,xs:r,sm:o,md:l,lg:c,xl:h,xxl:s,xxxl:u,screenClass:M,containerWidths:(0,sP.getConfiguration)().containerWidths,gutterWidth:(0,sP.getConfiguration)().gutterWidth,moreStyle:v}),...d},a))});K_.propTypes={children:Ca.default.node.isRequired,fluid:Ca.default.bool,xs:Ca.default.bool,sm:Ca.default.bool,md:Ca.default.bool,lg:Ca.default.bool,xl:Ca.default.bool,xxl:Ca.default.bool,xxxl:Ca.default.bool,style:Ca.default.objectOf(Ca.default.oneOfType([Ca.default.number,Ca.default.string])),component:Ca.default.elementType};K_.displayName="Container";Um.default=K_;var qm={},hc={};Object.defineProperty(hc,"__esModule",{value:!0});hc.hidden=hc.default=void 0;const jK=t=>{let{screenClass:e,xs:a,sm:n,md:r,lg:o,xl:l,xxl:c,xxxl:h}=t;return e==="xxl"?c:e==="xxxl"?h:e==="xl"?l:e==="lg"?o:e==="md"?r:e==="sm"?n:a};hc.hidden=jK;hc.default=jK;Object.defineProperty(qm,"__esModule",{value:!0});qm.default=void 0;var t71=Y_(_),o3=Y_(E5),e71=n71(hc),a71=Y_(Lo);function IK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,a=new WeakMap;return(IK=function(n){return n?a:e})(t)}function n71(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var a=IK(e);if(a&&a.has(t))return a.get(t);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=t[o]}return n.default=t,a&&a.set(t,n),n}function Y_(t){return t&&t.__esModule?t:{default:t}}const FK=t=>{let{children:e,xs:a=!1,sm:n=!1,md:r=!1,lg:o=!1,xl:l=!1,xxl:c=!1,xxxl:h=!1}=t;return t71.default.createElement(a71.default,null,s=>e71.hidden({screenClass:s,xs:a,sm:n,md:r,lg:o,xl:l,xxl:c,xxxl:h})?null:e)};FK.propTypes={children:o3.default.node.isRequired,xs:o3.default.bool,sm:o3.default.bool,md:o3.default.bool,lg:o3.default.bool,xl:o3.default.bool,xxl:o3.default.bool,xxxl:o3.default.bool};qm.default=FK;var Gm={},uc={};Object.defineProperty(uc,"__esModule",{value:!0});uc.visible=uc.default=void 0;const $K=t=>{let{screenClass:e,xs:a,sm:n,md:r,lg:o,xl:l,xxl:c,xxxl:h}=t;return e==="xxl"?c:e==="xxxl"?h:e==="xl"?l:e==="lg"?o:e==="md"?r:e==="sm"?n:a};uc.visible=$K;uc.default=$K;Object.defineProperty(Gm,"__esModule",{value:!0});Gm.default=void 0;var r71=Z_(_),l3=Z_(E5),i71=l71(uc),o71=Z_(Lo);function UK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,a=new WeakMap;return(UK=function(n){return n?a:e})(t)}function l71(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var a=UK(e);if(a&&a.has(t))return a.get(t);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=t[o]}return n.default=t,a&&a.set(t,n),n}function Z_(t){return t&&t.__esModule?t:{default:t}}const WK=t=>{let{children:e,xs:a=!1,sm:n=!1,md:r=!1,lg:o=!1,xl:l=!1,xxl:c=!1,xxxl:h=!1}=t;return r71.default.createElement(o71.default,null,s=>i71.visible({screenClass:s,xs:a,sm:n,md:r,lg:o,xl:l,xxl:c,xxxl:h})?e:null)};WK.propTypes={children:l3.default.node.isRequired,xs:l3.default.bool,sm:l3.default.bool,md:l3.default.bool,lg:l3.default.bool,xl:l3.default.bool,xxl:l3.default.bool,xxxl:l3.default.bool};Gm.default=WK;var Km={};Object.defineProperty(Km,"__esModule",{value:!0});Km.default=void 0;var c71=Q_(_),s71=Q_(E5),h71=Q_(Lo);function Q_(t){return t&&t.__esModule?t:{default:t}}const qK=t=>{let{render:e}=t;return c71.default.createElement(h71.default,null,a=>e(a))};qK.propTypes={render:s71.default.func.isRequired};Km.default=qK;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Col",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Hidden",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Row",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"ScreenClassContext",{enumerable:!0,get:function(){return c.ScreenClassContext}}),Object.defineProperty(t,"ScreenClassProvider",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"ScreenClassRender",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Visible",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"setConfiguration",{enumerable:!0,get:function(){return h.setConfiguration}}),Object.defineProperty(t,"useScreenClass",{enumerable:!0,get:function(){return s.useScreenClass}});var e=f(Dm),a=f(Um),n=f(Q8),r=f(qm),o=f(Gm),l=f(Km),c=v(u5),h=kr,s=ho;function u(d){if(typeof WeakMap!="function")return null;var M=new WeakMap,g=new WeakMap;return(u=function(H){return H?g:M})(d)}function v(d,M){if(!M&&d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var g=u(M);if(g&&g.has(d))return g.get(d);var H={__proto__:null},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in d)if(m!=="default"&&Object.prototype.hasOwnProperty.call(d,m)){var z=p?Object.getOwnPropertyDescriptor(d,m):null;z&&(z.get||z.set)?Object.defineProperty(H,m,z):H[m]=d[m]}return H.default=d,g&&g.set(d,H),H}function f(d){return d&&d.__esModule?d:{default:d}}})(Vi);var Fy={},Rs={},Ym={};Object.defineProperty(Ym,"__esModule",{value:!0});Ym.setAvatarBySize=void 0;var u71=function(t){switch(t){case"extraSmall":return"22px";case"superSmall":return"30px";case"small":return"40px";case"medium":return"50px";case"large":return"60px";case"extraLarge":return"112px";default:return"50px"}};Ym.setAvatarBySize=u71;(function(t){var e=b&&b.__makeTemplateObject||function(M,g){return Object.defineProperty?Object.defineProperty(M,"raw",{value:g}):M.raw=g,M},a=b&&b.__assign||function(){return a=Object.assign||function(M){for(var g,H=1,p=arguments.length;H=it.F1&&a<=it.F12)return!1;switch(a){case it.ALT:case it.CAPS_LOCK:case it.CONTEXT_MENU:case it.CTRL:case it.DOWN:case it.END:case it.ESC:case it.HOME:case it.INSERT:case it.LEFT:case it.MAC_FF_META:case it.META:case it.NUMLOCK:case it.NUM_CENTER:case it.PAGE_DOWN:case it.PAGE_UP:case it.PAUSE:case it.PRINT_SCREEN:case it.RIGHT:case it.SHIFT:case it.UP:case it.WIN_KEY:case it.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=it.ZERO&&e<=it.NINE||e>=it.NUM_ZERO&&e<=it.NUM_MULTIPLY||e>=it.A&&e<=it.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case it.SPACE:case it.QUESTION_MARK:case it.NUM_PLUS:case it.NUM_MINUS:case it.NUM_PERIOD:case it.NUM_DIVISION:case it.SEMICOLON:case it.DASH:case it.EQUALS:case it.COMMA:case it.PERIOD:case it.SLASH:case it.APOSTROPHE:case it.SINGLE_QUOTE:case it.OPEN_SQUARE_BRACKET:case it.BACKSLASH:case it.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function F_(t,e){var a=Q1({},t);return Array.isArray(e)&&e.forEach(function(n){delete a[n]}),a}function f91(t){return Array.isArray(t)?t:[t]}var TK={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},OK=Object.keys(TK).filter(function(t){if(typeof document>"u")return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],aP=TK[OK];function nP(t,e,a,n){t.addEventListener?t.addEventListener(e,a,n):t.attachEvent&&t.attachEvent("on".concat(e),a)}function rP(t,e,a,n){t.removeEventListener?t.removeEventListener(e,a,n):t.attachEvent&&t.detachEvent("on".concat(e),a)}function g91(t,e){var a=typeof t=="function"?t(e):t;return Array.isArray(a)?a.length===2?a:[a[0],a[1]]:[a]}var iP=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Ny=!(typeof window<"u"&&window.document&&window.document.createElement),p91=function t(e,a,n,r){if(!a||a===document||a instanceof Document)return!1;if(a===e.parentNode)return!0;var o=Math.max(Math.abs(n),Math.abs(r))===Math.abs(r),l=Math.max(Math.abs(n),Math.abs(r))===Math.abs(n),c=a.scrollHeight-a.clientHeight,h=a.scrollWidth-a.clientWidth,s=document.defaultView.getComputedStyle(a),u=s.overflowY==="auto"||s.overflowY==="scroll",v=s.overflowX==="auto"||s.overflowX==="scroll",f=c&&u,d=h&&v;return o&&(!f||f&&(a.scrollTop>=c&&r<0||a.scrollTop<=0&&r>0))||l&&(!d||d&&(a.scrollLeft>=h&&n<0||a.scrollLeft<=0&&n>0))?t(e,a.parentNode,n,r):!1},m91=["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","scrollLocker","contentWrapperStyle"],I9={},oP=function(t){M2(a,t);var e=B2(a);function a(n){var r;return Jt(this,a),r=e.call(this,n),r.levelDom=void 0,r.dom=void 0,r.contentWrapper=void 0,r.contentDom=void 0,r.maskDom=void 0,r.handlerDom=void 0,r.drawerId=void 0,r.timeout=void 0,r.passive=void 0,r.startPos=void 0,r.domFocus=function(){r.dom&&r.dom.focus()},r.removeStartHandler=function(o){if(o.touches.length>1){r.startPos=null;return}r.startPos={x:o.touches[0].clientX,y:o.touches[0].clientY}},r.removeMoveHandler=function(o){if(!(o.changedTouches.length>1||!r.startPos)){var l=o.currentTarget,c=o.changedTouches[0].clientX-r.startPos.x,h=o.changedTouches[0].clientY-r.startPos.y;(l===r.maskDom||l===r.handlerDom||l===r.contentDom&&p91(l,o.target,c,h))&&o.cancelable&&o.preventDefault()}},r.transitionEnd=function(o){var l=o.target;rP(l,aP,r.transitionEnd),l.style.transition=""},r.onKeyDown=function(o){if(o.keyCode===it.ESC){var l=r.props.onClose;o.stopPropagation(),l&&l(o)}},r.onWrapperTransitionEnd=function(o){var l=r.props,c=l.open,h=l.afterVisibleChange;o.target===r.contentWrapper&&o.propertyName.match(/transform$/)&&(r.dom.style.transition="",!c&&r.getCurrentDrawerSome()&&(document.body.style.overflowX="",r.maskDom&&(r.maskDom.style.left="",r.maskDom.style.width="")),h&&h(!!c))},r.openLevelTransition=function(){var o=r.props,l=o.open,c=o.width,h=o.height,s=r.getHorizontalBoolAndPlacementName(),u=s.isHorizontal,v=s.placementName,f=r.contentDom?r.contentDom.getBoundingClientRect()[u?"width":"height"]:0,d=(u?c:h)||f;r.setLevelAndScrolling(l,v,d)},r.setLevelTransform=function(o,l,c,h){var s=r.props,u=s.placement,v=s.levelMove,f=s.duration,d=s.ease,M=s.showMask;r.levelDom.forEach(function(g){g.style.transition="transform ".concat(f," ").concat(d),nP(g,aP,r.transitionEnd);var H=o?c:0;if(v){var p=g91(v,{target:g,open:o});H=o?p[0]:p[1]||0}var m=typeof H=="number"?"".concat(H,"px"):H,z=u==="left"||u==="top"?m:"-".concat(m);z=M&&u==="right"&&h?"calc(".concat(z," + ").concat(h,"px)"):z,g.style.transform=H?"".concat(l,"(").concat(z,")"):""})},r.setLevelAndScrolling=function(o,l,c){var h=r.props.onChange;if(!Ny){var s=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?I_(!0):0;r.setLevelTransform(o,l,c,s),r.toggleScrollingToDrawerAndBody(s)}h&&h(o)},r.toggleScrollingToDrawerAndBody=function(o){var l=r.props,c=l.getContainer,h=l.showMask,s=l.open,u=c&&c();if(u&&u.parentNode===document.body&&h){var v=["touchstart"],f=[document.body,r.maskDom,r.handlerDom,r.contentDom];s&&document.body.style.overflow!=="hidden"?(o&&r.addScrollingEffect(o),document.body.style.touchAction="none",f.forEach(function(d,M){d&&nP(d,v[M]||"touchmove",M?r.removeMoveHandler:r.removeStartHandler,r.passive)})):r.getCurrentDrawerSome()&&(document.body.style.touchAction="",o&&r.remScrollingEffect(o),f.forEach(function(d,M){d&&rP(d,v[M]||"touchmove",M?r.removeMoveHandler:r.removeStartHandler,r.passive)}))}},r.addScrollingEffect=function(o){var l=r.props,c=l.placement,h=l.duration,s=l.ease,u="width ".concat(h," ").concat(s),v="transform ".concat(h," ").concat(s);switch(r.dom.style.transition="none",c){case"right":r.dom.style.transform="translateX(-".concat(o,"px)");break;case"top":case"bottom":r.dom.style.width="calc(100% - ".concat(o,"px)"),r.dom.style.transform="translateZ(0)";break}clearTimeout(r.timeout),r.timeout=setTimeout(function(){r.dom&&(r.dom.style.transition="".concat(v,",").concat(u),r.dom.style.width="",r.dom.style.transform="")})},r.remScrollingEffect=function(o){var l=r.props,c=l.placement,h=l.duration,s=l.ease;OK&&(document.body.style.overflowX="hidden"),r.dom.style.transition="none";var u,v="width ".concat(h," ").concat(s),f="transform ".concat(h," ").concat(s);switch(c){case"left":{r.dom.style.width="100%",v="width 0s ".concat(s," ").concat(h);break}case"right":{r.dom.style.transform="translateX(".concat(o,"px)"),r.dom.style.width="100%",v="width 0s ".concat(s," ").concat(h),r.maskDom&&(r.maskDom.style.left="-".concat(o,"px"),r.maskDom.style.width="calc(100% + ".concat(o,"px)"));break}case"top":case"bottom":{r.dom.style.width="calc(100% + ".concat(o,"px)"),r.dom.style.height="100%",r.dom.style.transform="translateZ(0)",u="height 0s ".concat(s," ").concat(h);break}}clearTimeout(r.timeout),r.timeout=setTimeout(function(){r.dom&&(r.dom.style.transition="".concat(f,",").concat(u?"".concat(u,","):"").concat(v),r.dom.style.transform="",r.dom.style.width="",r.dom.style.height="")})},r.getCurrentDrawerSome=function(){return!Object.keys(I9).some(function(o){return I9[o]})},r.getLevelDom=function(o){var l=o.level,c=o.getContainer;if(!Ny){var h=c&&c(),s=h?h.parentNode:null;if(r.levelDom=[],l==="all"){var u=s?Array.prototype.slice.call(s.children):[];u.forEach(function(v){v.nodeName!=="SCRIPT"&&v.nodeName!=="STYLE"&&v.nodeName!=="LINK"&&v!==h&&r.levelDom.push(v)})}else l&&f91(l).forEach(function(v){document.querySelectorAll(v).forEach(function(f){r.levelDom.push(f)})})}},r.getHorizontalBoolAndPlacementName=function(){var o=r.props.placement,l=o==="left"||o==="right",c="translate".concat(l?"X":"Y");return{isHorizontal:l,placementName:c}},r.state={_self:D1(r)},r}return t2(a,[{key:"componentDidMount",value:function(){var r=this;if(!Ny){var o=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return o=!0,null}}))}catch{}this.passive=o?{passive:!1}:!1}var l=this.props,c=l.open,h=l.getContainer,s=l.showMask,u=l.autoFocus,v=h&&h();if(this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),c&&(v&&v.parentNode===document.body&&(I9[this.drawerId]=c),this.openLevelTransition(),this.forceUpdate(function(){u&&r.domFocus()}),s)){var f;(f=this.props.scrollLocker)===null||f===void 0||f.lock()}}},{key:"componentDidUpdate",value:function(r){var o=this.props,l=o.open,c=o.getContainer,h=o.scrollLocker,s=o.showMask,u=o.autoFocus,v=c&&c();l!==r.open&&(v&&v.parentNode===document.body&&(I9[this.drawerId]=!!l),this.openLevelTransition(),l?(u&&this.domFocus(),s&&(h==null||h.lock())):h==null||h.unLock())}},{key:"componentWillUnmount",value:function(){var r=this.props,o=r.open,l=r.scrollLocker;delete I9[this.drawerId],o&&(this.setLevelTransform(!1),document.body.style.touchAction=""),l==null||l.unLock()}},{key:"render",value:function(){var r,o=this,l=this.props,c=l.className,h=l.children,s=l.style,u=l.width,v=l.height;l.defaultOpen;var f=l.open,d=l.prefixCls,M=l.placement;l.level,l.levelMove,l.ease,l.duration,l.getContainer;var g=l.handler;l.onChange,l.afterVisibleChange;var H=l.showMask,p=l.maskClosable,m=l.maskStyle,z=l.onClose,w=l.onHandleClick,x=l.keyboard;l.getOpenCount,l.scrollLocker;var y=l.contentWrapperStyle,V=d0(l,m91),C=this.dom?f:!1,L=E2(d,(r={},u1(r,"".concat(d,"-").concat(M),!0),u1(r,"".concat(d,"-open"),C),u1(r,c||"",!!c),u1(r,"no-mask",!H),r)),B=this.getHorizontalBoolAndPlacementName(),S=B.placementName,T=M==="left"||M==="top"?"-100%":"100%",E=C?"":"".concat(S,"(").concat(T,")"),$=g&&_.cloneElement(g,{onClick:function(U){g.props.onClick&&g.props.onClick(),w&&w(U)},ref:function(U){o.handlerDom=U}});return _.createElement("div",Zt({},F_(V,["switchScrollingEffect","autoFocus"]),{tabIndex:-1,className:L,style:s,ref:function(U){o.dom=U},onKeyDown:C&&x?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),H&&_.createElement("div",{className:"".concat(d,"-mask"),onClick:p?z:void 0,style:m,ref:function(U){o.maskDom=U}}),_.createElement("div",{className:"".concat(d,"-content-wrapper"),style:Q1({transform:E,msTransform:E,width:iP(u)?"".concat(u,"px"):u,height:iP(v)?"".concat(v,"px"):v},y),ref:function(U){o.contentWrapper=U}},_.createElement("div",{className:"".concat(d,"-content"),ref:function(U){o.contentDom=U}},h),$))}}],[{key:"getDerivedStateFromProps",value:function(r,o){var l=o.prevProps,c=o._self,h={prevProps:r};if(l!==void 0){var s=r.placement,u=r.level;s!==l.placement&&(c.contentDom=null),u!==l.level&&c.getLevelDom(r)}return h}}]),a}(_.Component),z91=["defaultOpen","getContainer","wrapperClassName","forceRender","handler"],M91=["visible","afterClose"],Nm=function(t){M2(a,t);var e=B2(a);function a(n){var r;Jt(this,a),r=e.call(this,n),r.dom=void 0,r.onHandleClick=function(l){var c=r.props,h=c.onHandleClick,s=c.open;if(h&&h(l),typeof s>"u"){var u=r.state.open;r.setState({open:!u})}},r.onClose=function(l){var c=r.props,h=c.onClose,s=c.open;h&&h(l),typeof s>"u"&&r.setState({open:!1})};var o=typeof n.open<"u"?n.open:!!n.defaultOpen;return r.state={open:o},"onMaskClick"in n&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),r}return t2(a,[{key:"render",value:function(){var r=this,o=this.props;o.defaultOpen;var l=o.getContainer,c=o.wrapperClassName,h=o.forceRender,s=o.handler,u=d0(o,z91),v=this.state.open;if(!l)return _.createElement("div",{className:c,ref:function(M){r.dom=M}},_.createElement(oP,Zt({},u,{open:v,handler:s,getContainer:function(){return r.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var f=!!s||h;return _.createElement(_K,{visible:v,forceRender:f,getContainer:l,wrapperClassName:c},function(d){var M=d.visible,g=d.afterClose,H=d0(d,M91);return _.createElement(oP,Zt({},u,H,{open:M!==void 0?M:v,afterVisibleChange:g!==void 0?g:u.afterVisibleChange,handler:s,onClose:r.onClose,onHandleClick:r.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(r,o){var l=o.prevProps,c={prevProps:r};return typeof l<"u"&&r.open!==l.open&&(c.open=r.open),c}}]),a}(_.Component);Nm.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:_.createElement("div",{className:"drawer-handle"},_.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1,autoFocus:!0};const H91=Object.freeze(Object.defineProperty({__proto__:null,default:Nm},Symbol.toStringTag,{value:"Module"})),w91=se(H91);var Vi={},Dm={},Rm={},ho={},kr={};Object.defineProperty(kr,"__esModule",{value:!0});kr.setConfiguration=kr.getConfiguration=void 0;let Mb={breakpoints:[576,768,992,1200,1600,1920],containerWidths:[540,750,960,1140,1540,1810],gutterWidth:30,gridColumns:12,defaultScreenClass:"xxl",maxScreenClass:"xxl"};const y91=()=>Mb;kr.getConfiguration=y91;const x91=t=>{Mb={...Mb,...t}};kr.setConfiguration=x91;var Ic={},jm={};Object.defineProperty(jm,"__esModule",{value:!0});jm.default=void 0;jm.default="div";var Im={};Object.defineProperty(Im,"__esModule",{value:!0});Im.default=void 0;Im.default="span";var Fm={};Object.defineProperty(Fm,"__esModule",{value:!0});Fm.default=void 0;Fm.default=typeof window<"u"?window:void 0;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Div",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"Span",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Window",{enumerable:!0,get:function(){return n.default}});var e=r(jm),a=r(Im),n=r(Fm);function r(o){return o&&o.__esModule?o:{default:o}}})(Ic);Object.defineProperty(ho,"__esModule",{value:!0});ho.useScreenClass=ho.screenClasses=void 0;var lP=_,V91=kr,q7=Ic;const C91=t=>t&&t.current&&t.current.clientWidth?t.current.clientWidth:typeof q7.Window<"u"&&q7.Window.innerWidth?q7.Window.innerWidth:null,Dy=ho.screenClasses=["xs","sm","md","lg","xl","xxl","xxxl"],b91=(t,e)=>{const a=()=>{const{breakpoints:o,defaultScreenClass:l,maxScreenClass:c}=(0,V91.getConfiguration)();let h=l;const s=C91(t);s?(h="xs",o[0]&&s>=o[0]&&(h="sm"),o[1]&&s>=o[1]&&(h="md"),o[2]&&s>=o[2]&&(h="lg"),o[3]&&s>=o[3]&&(h="xl"),o[4]&&s>=o[4]&&(h="xxl"),o[5]&&s>=o[5]&&(h="xxxl")):e&&(h=e);const u=Dy.indexOf(h),v=Dy.indexOf(c);return v>=0&&u>v&&(h=Dy[v]),h},[n,r]=(0,lP.useState)(()=>a());return(0,lP.useEffect)(()=>{const o=()=>r(a());return q7.Window.addEventListener("resize",o,!1),()=>{q7.Window.removeEventListener("resize",o,!1)}},[]),n};ho.useScreenClass=b91;Object.defineProperty(Rm,"__esModule",{value:!0});Rm.default=void 0;var cP=ho;const L91=t=>Object.keys(t).reduce((e,a)=>e||t[a],!1),Kv=(t,e)=>{if(typeof t!="number")return;const a=Math.max(0,Math.min(e,t));return`${100/e*a}%`};var B91=t=>{let{forceWidth:e=null,width:a={},offset:n={},pull:r={},push:o={},order:l={},debug:c,screenClass:h,gutterWidth:s,moreStyle:u,gridColumns:v}=t;const f={boxSizing:"border-box",minHeight:1,position:"relative",paddingLeft:s/2,paddingRight:s/2,width:"100%"};return c&&(f.outline="1px solid silver",f.background="rgba(0,0,0,.05)",f.lineHeight="32px"),f.flexBasis="100%",f.flexGrow=0,f.flexShrink=0,f.maxWidth="100%",f.marginLeft="0%",f.right="auto",f.left="auto",cP.screenClasses.forEach((d,M)=>{if(cP.screenClasses.indexOf(h)>=M){const g=Kv(a[d],v),H=a[d]==="content";f.flexBasis=H?"auto":g||f.flexBasis,f.width=f.flexBasis,f.maxWidth=g||f.maxWidth,f.marginLeft=Kv(n[d],v)||f.marginLeft,f.right=Kv(r[d],v)||f.right,f.left=Kv(o[d],v)||f.left,l[d]&&(f.order=l[d])}}),L91(a)||(f.flexBasis=0,f.flexGrow=1),e&&(f.flexBasis="unset",f.flexGrow="unset",f.flexShrink="unset",f.width=e),{...f,...u}};Rm.default=B91;var Q8={},$m={};Object.defineProperty($m,"__esModule",{value:!0});$m.default=void 0;var _91=t=>{let{gutterWidth:e,align:a,justify:n,debug:r,moreStyle:o,direction:l,wrap:c}=t,h=a;a==="start"&&(h="flex-start"),a==="end"&&(h="flex-end");let s=n;n==="start"&&(s="flex-start"),n==="end"&&(s="flex-end"),n==="between"&&(s="space-between"),n==="around"&&(s="space-around"),n==="center"&&(s="center"),n==="initial"&&(s="initial"),n==="inherit"&&(s="inherit");const u=["column","row","column-reverse","row-reverse"].includes(l)?l:void 0;let v=c;c==="nowrap"&&(v="nowrap"),c==="wrap"&&(v="wrap"),c==="reverse"&&(v="wrap-reverse");const f={marginLeft:-e/2,marginRight:-e/2,display:"flex",flexGrow:0,flexShrink:0,alignItems:h,justifyContent:s,flexDirection:u,flexWrap:v};return r&&(f.background="rgba(128,128,128,.05)"),{...f,...o}};$m.default=_91;Object.defineProperty(Q8,"__esModule",{value:!0});Q8.default=Q8.GutterWidthContext=void 0;var Hf=$_(_),Ya=$_(E5),S91=kr,T91=$_($m),O91=Ic;function $_(t){return t&&t.__esModule?t:{default:t}}const A91=Q8.GutterWidthContext=Hf.default.createContext(!1),U_=Hf.default.forwardRef((t,e)=>{let{children:a,style:n={},align:r="normal",justify:o="start",wrap:l="wrap",debug:c=!1,nogutter:h=!1,gutterWidth:s=null,component:u=O91.Div,direction:v="row",...f}=t,d=(0,S91.getConfiguration)().gutterWidth;h&&(d=0),typeof s=="number"&&(d=s);const M=(0,T91.default)({gutterWidth:d,align:r,justify:o,debug:c,moreStyle:n,direction:v,wrap:l});return Hf.default.createElement(u,{ref:e,style:M,...f},Hf.default.createElement(A91.Provider,{value:d},a))});U_.propTypes={children:Ya.default.node.isRequired,align:Ya.default.oneOf(["normal","start","center","end","stretch"]),justify:Ya.default.oneOf(["start","center","end","between","around","initial","inherit"]),direction:Ya.default.oneOf(["column","row","column-reverse","row-reverse"]),wrap:Ya.default.oneOf(["nowrap","wrap","reverse"]),nogutter:Ya.default.bool,gutterWidth:Ya.default.number,style:Ya.default.objectOf(Ya.default.oneOfType([Ya.default.number,Ya.default.string])),debug:Ya.default.bool,component:Ya.default.elementType};U_.displayName="Row";Q8.default=U_;var Lo={},u5={};Object.defineProperty(u5,"__esModule",{value:!0});u5.default=u5.ScreenClassContext=u5.NO_PROVIDER_FLAG=void 0;var M3=D91(_),Ry=N91(E5),k91=ho,E91=kr,P91=Ic;function N91(t){return t&&t.__esModule?t:{default:t}}function AK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,a=new WeakMap;return(AK=function(n){return n?a:e})(t)}function D91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var a=AK(e);if(a&&a.has(t))return a.get(t);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=t[o]}return n.default=t,a&&a.set(t,n),n}const R91=u5.NO_PROVIDER_FLAG="NO_PROVIDER_FLAG",j91=u5.ScreenClassContext=M3.default.createContext(R91),kK=t=>{let{useOwnWidth:e=!1,children:a,fallbackScreenClass:n=null}=t;const r=(0,M3.useRef)(),[o,l]=(0,M3.useState)(!1),c=(0,k91.useScreenClass)(r,n),{defaultScreenClass:h}=(0,E91.getConfiguration)(),s=o?c:n||h;return(0,M3.useEffect)(()=>l(!0),[]),M3.default.createElement(j91.Provider,{value:s},e?M3.default.createElement(P91.Div,{ref:e?r:null},a):M3.default.createElement(M3.default.Fragment,null,a))};kK.propTypes={children:Ry.default.node.isRequired,useOwnWidth:Ry.default.bool,fallbackScreenClass:Ry.default.oneOf([null,"xs","sm","md","lg","xl","xxl","xxxl"])};u5.default=kK;Object.defineProperty(Lo,"__esModule",{value:!0});Lo.default=void 0;var jy=PK(_),I91=PK(E5),Yv=F91(u5);function EK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,a=new WeakMap;return(EK=function(n){return n?a:e})(t)}function F91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var a=EK(e);if(a&&a.has(t))return a.get(t);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=t[o]}return n.default=t,a&&a.set(t,n),n}function PK(t){return t&&t.__esModule?t:{default:t}}const NK=t=>{let{children:e}=t;return jy.default.createElement(Yv.ScreenClassContext.Consumer,null,a=>a===Yv.NO_PROVIDER_FLAG?jy.default.createElement(Yv.default,null,jy.default.createElement(Yv.ScreenClassContext.Consumer,null,n=>e(n))):e(a))};NK.propTypes={children:I91.default.func.isRequired};Lo.default=NK;Object.defineProperty(Dm,"__esModule",{value:!0});Dm.default=void 0;var Zv=K91(_),Yt=W_(E5),$91=W_(Rm),U91=kr,W91=Q8,q91=W_(Lo),G91=Ic;function W_(t){return t&&t.__esModule?t:{default:t}}function DK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,a=new WeakMap;return(DK=function(n){return n?a:e})(t)}function K91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var a=DK(e);if(a&&a.has(t))return a.get(t);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=t[o]}return n.default=t,a&&a.set(t,n),n}const q_=Zv.default.forwardRef((t,e)=>{let{children:a=null,xs:n=null,sm:r=null,md:o=null,lg:l=null,xl:c=null,xxl:h=null,xxxl:s=null,offset:u={},pull:v={},push:f={},order:d={},debug:M=!1,style:g={},component:H=G91.Div,width:p=null,...m}=t;return Zv.default.createElement(q91.default,null,z=>Zv.default.createElement(W91.GutterWidthContext.Consumer,null,w=>{const x=(0,$91.default)({forceWidth:p,width:{xs:n,sm:r,md:o,lg:l,xl:c,xxl:h,xxxl:s},offset:u,pull:v,push:f,order:d,debug:M,screenClass:z,gutterWidth:w,gridColumns:(0,U91.getConfiguration)().gridColumns,moreStyle:g});return(0,Zv.createElement)(H,{ref:e,style:x,...m,children:a})}))});q_.propTypes={children:Yt.default.node,xs:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),sm:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),md:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),lg:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),xl:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),xxl:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),xxxl:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),width:Yt.default.oneOfType([Yt.default.number,Yt.default.string]),offset:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),push:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),pull:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),order:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),style:Yt.default.objectOf(Yt.default.oneOfType([Yt.default.number,Yt.default.string])),debug:Yt.default.bool,component:Yt.default.elementType};q_.displayName="Col";Dm.default=q_;var Um={},Wm={};Object.defineProperty(Wm,"__esModule",{value:!0});Wm.default=void 0;var Y91=t=>{let{fluid:e,xs:a,sm:n,md:r,lg:o,xl:l,xxl:c,xxxl:h,screenClass:s,containerWidths:u,gutterWidth:v,moreStyle:f}=t;const d={boxSizing:"border-box",position:"relative",marginLeft:"auto",marginRight:"auto",paddingLeft:v/2,paddingRight:v/2};return e&&!a&&!n&&!r&&!o&&!l?{...d,...f}:(s==="xs"&&u[0]&&!a&&(d.maxWidth=u[0]),s==="sm"&&u[0]&&!n&&(d.maxWidth=u[0]),s==="md"&&u[1]&&!r&&(d.maxWidth=u[1]),s==="lg"&&u[2]&&!o&&(d.maxWidth=u[2]),s==="xl"&&u[3]&&!l&&(d.maxWidth=u[3]),s==="xxl"&&u[4]&&!c&&(d.maxWidth=u[4]),s==="xxxl"&&u[5]&&!h&&(d.maxWidth=u[5]),{...d,...f})};Wm.default=Y91;Object.defineProperty(Um,"__esModule",{value:!0});Um.default=void 0;var Iy=J91(_),Ca=G_(E5),Z91=G_(Wm),sP=kr,Q91=G_(Lo),X91=Ic;function G_(t){return t&&t.__esModule?t:{default:t}}function RK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,a=new WeakMap;return(RK=function(n){return n?a:e})(t)}function J91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var a=RK(e);if(a&&a.has(t))return a.get(t);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=t[o]}return n.default=t,a&&a.set(t,n),n}const K_=Iy.default.forwardRef((t,e)=>{let{children:a,fluid:n=!1,xs:r=!1,sm:o=!1,md:l=!1,lg:c=!1,xl:h=!1,xxl:s=!1,xxxl:u=!1,style:v={},component:f=X91.Div,...d}=t;return Iy.default.createElement(Q91.default,null,M=>(0,Iy.createElement)(f,{ref:e,style:(0,Z91.default)({fluid:n,xs:r,sm:o,md:l,lg:c,xl:h,xxl:s,xxxl:u,screenClass:M,containerWidths:(0,sP.getConfiguration)().containerWidths,gutterWidth:(0,sP.getConfiguration)().gutterWidth,moreStyle:v}),...d},a))});K_.propTypes={children:Ca.default.node.isRequired,fluid:Ca.default.bool,xs:Ca.default.bool,sm:Ca.default.bool,md:Ca.default.bool,lg:Ca.default.bool,xl:Ca.default.bool,xxl:Ca.default.bool,xxxl:Ca.default.bool,style:Ca.default.objectOf(Ca.default.oneOfType([Ca.default.number,Ca.default.string])),component:Ca.default.elementType};K_.displayName="Container";Um.default=K_;var qm={},hc={};Object.defineProperty(hc,"__esModule",{value:!0});hc.hidden=hc.default=void 0;const jK=t=>{let{screenClass:e,xs:a,sm:n,md:r,lg:o,xl:l,xxl:c,xxxl:h}=t;return e==="xxl"?c:e==="xxxl"?h:e==="xl"?l:e==="lg"?o:e==="md"?r:e==="sm"?n:a};hc.hidden=jK;hc.default=jK;Object.defineProperty(qm,"__esModule",{value:!0});qm.default=void 0;var t71=Y_(_),o3=Y_(E5),e71=n71(hc),a71=Y_(Lo);function IK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,a=new WeakMap;return(IK=function(n){return n?a:e})(t)}function n71(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var a=IK(e);if(a&&a.has(t))return a.get(t);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=t[o]}return n.default=t,a&&a.set(t,n),n}function Y_(t){return t&&t.__esModule?t:{default:t}}const FK=t=>{let{children:e,xs:a=!1,sm:n=!1,md:r=!1,lg:o=!1,xl:l=!1,xxl:c=!1,xxxl:h=!1}=t;return t71.default.createElement(a71.default,null,s=>e71.hidden({screenClass:s,xs:a,sm:n,md:r,lg:o,xl:l,xxl:c,xxxl:h})?null:e)};FK.propTypes={children:o3.default.node.isRequired,xs:o3.default.bool,sm:o3.default.bool,md:o3.default.bool,lg:o3.default.bool,xl:o3.default.bool,xxl:o3.default.bool,xxxl:o3.default.bool};qm.default=FK;var Gm={},uc={};Object.defineProperty(uc,"__esModule",{value:!0});uc.visible=uc.default=void 0;const $K=t=>{let{screenClass:e,xs:a,sm:n,md:r,lg:o,xl:l,xxl:c,xxxl:h}=t;return e==="xxl"?c:e==="xxxl"?h:e==="xl"?l:e==="lg"?o:e==="md"?r:e==="sm"?n:a};uc.visible=$K;uc.default=$K;Object.defineProperty(Gm,"__esModule",{value:!0});Gm.default=void 0;var r71=Z_(_),l3=Z_(E5),i71=l71(uc),o71=Z_(Lo);function UK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,a=new WeakMap;return(UK=function(n){return n?a:e})(t)}function l71(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var a=UK(e);if(a&&a.has(t))return a.get(t);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=t[o]}return n.default=t,a&&a.set(t,n),n}function Z_(t){return t&&t.__esModule?t:{default:t}}const WK=t=>{let{children:e,xs:a=!1,sm:n=!1,md:r=!1,lg:o=!1,xl:l=!1,xxl:c=!1,xxxl:h=!1}=t;return r71.default.createElement(o71.default,null,s=>i71.visible({screenClass:s,xs:a,sm:n,md:r,lg:o,xl:l,xxl:c,xxxl:h})?e:null)};WK.propTypes={children:l3.default.node.isRequired,xs:l3.default.bool,sm:l3.default.bool,md:l3.default.bool,lg:l3.default.bool,xl:l3.default.bool,xxl:l3.default.bool,xxxl:l3.default.bool};Gm.default=WK;var Km={};Object.defineProperty(Km,"__esModule",{value:!0});Km.default=void 0;var c71=Q_(_),s71=Q_(E5),h71=Q_(Lo);function Q_(t){return t&&t.__esModule?t:{default:t}}const qK=t=>{let{render:e}=t;return c71.default.createElement(h71.default,null,a=>e(a))};qK.propTypes={render:s71.default.func.isRequired};Km.default=qK;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Col",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Hidden",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Row",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"ScreenClassContext",{enumerable:!0,get:function(){return c.ScreenClassContext}}),Object.defineProperty(t,"ScreenClassProvider",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"ScreenClassRender",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Visible",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"setConfiguration",{enumerable:!0,get:function(){return h.setConfiguration}}),Object.defineProperty(t,"useScreenClass",{enumerable:!0,get:function(){return s.useScreenClass}});var e=f(Dm),a=f(Um),n=f(Q8),r=f(qm),o=f(Gm),l=f(Km),c=v(u5),h=kr,s=ho;function u(d){if(typeof WeakMap!="function")return null;var M=new WeakMap,g=new WeakMap;return(u=function(H){return H?g:M})(d)}function v(d,M){if(!M&&d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var g=u(M);if(g&&g.has(d))return g.get(d);var H={__proto__:null},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in d)if(m!=="default"&&Object.prototype.hasOwnProperty.call(d,m)){var z=p?Object.getOwnPropertyDescriptor(d,m):null;z&&(z.get||z.set)?Object.defineProperty(H,m,z):H[m]=d[m]}return H.default=d,g&&g.set(d,H),H}function f(d){return d&&d.__esModule?d:{default:d}}})(Vi);var Fy={},Rs={},Ym={};Object.defineProperty(Ym,"__esModule",{value:!0});Ym.setAvatarBySize=void 0;var u71=function(t){switch(t){case"extraSmall":return"22px";case"superSmall":return"30px";case"small":return"40px";case"medium":return"50px";case"large":return"60px";case"extraLarge":return"112px";default:return"50px"}};Ym.setAvatarBySize=u71;(function(t){var e=b&&b.__makeTemplateObject||function(M,g){return Object.defineProperty?Object.defineProperty(M,"raw",{value:g}):M.raw=g,M},a=b&&b.__assign||function(){return a=Object.assign||function(M){for(var g,H=1,p=arguments.length;HQ?Q:k},n=a,r=function(k){k._clipped=!1,k._unclipped=k.slice(0);for(var j=0;j<=3;j++)j<3?((k[j]<0||k[j]>255)&&(k._clipped=!0),k[j]=n(k[j],0,255)):j===3&&(k[j]=n(k[j],0,1));return k},o={},l=0,c=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];l=3?Array.prototype.slice.call(k):u(k[0])=="object"&&j?j.split("").filter(function(Q){return k[0][Q]!==void 0}).map(function(Q){return k[0][Q]}):k[0]},f=s,d=function(k){if(k.length<2)return null;var j=k.length-1;return f(k[j])=="string"?k[j].toLowerCase():null},M=Math.PI,g={clip_rgb:r,limit:a,type:s,unpack:v,last:d,PI:M,TWOPI:M*2,PITHIRD:M/3,DEG2RAD:M/180,RAD2DEG:180/M},H={format:{},autodetect:[]},p=g.last,m=g.clip_rgb,z=g.type,w=H,x=function(){for(var j=[],Q=arguments.length;Q--;)j[Q]=arguments[Q];var c1=this;if(z(j[0])==="object"&&j[0].constructor&&j[0].constructor===this.constructor)return j[0];var _1=p(j),T1=!1;if(!_1){T1=!0,w.sorted||(w.autodetect=w.autodetect.sort(function(st,kt){return kt.p-st.p}),w.sorted=!0);for(var y1=0,R1=w.autodetect;y14?k[4]:1;return T1===1?[0,0,0,y1]:[Q>=1?0:255*(1-Q)*(1-T1),c1>=1?0:255*(1-c1)*(1-T1),_1>=1?0:255*(1-_1)*(1-T1),y1]},U=$,W=C,Y=y,F=H,t1=g.unpack,R=g.type,i1=T;Y.prototype.cmyk=function(){return i1(this._rgb)},W.cmyk=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Y,[null].concat(k,["cmyk"])))},F.format.cmyk=U,F.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=t1(k,"cmyk"),R(k)==="array"&&k.length===4)return"cmyk"}});var J=g.unpack,A=g.last,o1=function(k){return Math.round(k*100)/100},h1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=J(k,"hsla"),c1=A(k)||"lsa";return Q[0]=o1(Q[0]||0),Q[1]=o1(Q[1]*100)+"%",Q[2]=o1(Q[2]*100)+"%",c1==="hsla"||Q.length>3&&Q[3]<1?(Q[3]=Q.length>3?Q[3]:1,c1="hsla"):Q.length=3,c1+"("+Q.join(",")+")"},a1=h1,M1=g.unpack,s1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=M1(k,"rgba");var Q=k[0],c1=k[1],_1=k[2];Q/=255,c1/=255,_1/=255;var T1=Math.min(Q,c1,_1),y1=Math.max(Q,c1,_1),R1=(y1+T1)/2,F1,J1;return y1===T1?(F1=0,J1=Number.NaN):F1=R1<.5?(y1-T1)/(y1+T1):(y1-T1)/(2-y1-T1),Q==y1?J1=(c1-_1)/(y1-T1):c1==y1?J1=2+(_1-Q)/(y1-T1):_1==y1&&(J1=4+(Q-c1)/(y1-T1)),J1*=60,J1<0&&(J1+=360),k.length>3&&k[3]!==void 0?[J1,F1,R1,k[3]]:[J1,F1,R1]},z1=s1,m1=g.unpack,S1=g.last,I1=a1,U1=z1,P1=Math.round,G1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=m1(k,"rgba"),c1=S1(k)||"rgb";return c1.substr(0,3)=="hsl"?I1(U1(Q),c1):(Q[0]=P1(Q[0]),Q[1]=P1(Q[1]),Q[2]=P1(Q[2]),(c1==="rgba"||Q.length>3&&Q[3]<1)&&(Q[3]=Q.length>3?Q[3]:1,c1="rgba"),c1+"("+Q.slice(0,c1==="rgb"?3:4).join(",")+")")},rt=G1,X1=g.unpack,nt=Math.round,tt=function(){for(var k,j=[],Q=arguments.length;Q--;)j[Q]=arguments[Q];j=X1(j,"hsl");var c1=j[0],_1=j[1],T1=j[2],y1,R1,F1;if(_1===0)y1=R1=F1=T1*255;else{var J1=[0,0,0],st=[0,0,0],kt=T1<.5?T1*(1+_1):T1+_1-T1*_1,ft=2*T1-kt,Wt=c1/360;J1[0]=Wt+1/3,J1[1]=Wt,J1[2]=Wt-1/3;for(var Ft=0;Ft<3;Ft++)J1[Ft]<0&&(J1[Ft]+=1),J1[Ft]>1&&(J1[Ft]-=1),6*J1[Ft]<1?st[Ft]=ft+(kt-ft)*6*J1[Ft]:2*J1[Ft]<1?st[Ft]=kt:3*J1[Ft]<2?st[Ft]=ft+(kt-ft)*(2/3-J1[Ft])*6:st[Ft]=ft;k=[nt(st[0]*255),nt(st[1]*255),nt(st[2]*255)],y1=k[0],R1=k[1],F1=k[2]}return j.length>3?[y1,R1,F1,j[3]]:[y1,R1,F1,1]},et=tt,vt=et,V1=H,q1=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,B1=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,H1=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,b1=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,X=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,f1=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,e1=Math.round,G=function(k){k=k.toLowerCase().trim();var j;if(V1.format.named)try{return V1.format.named(k)}catch{}if(j=k.match(q1)){for(var Q=j.slice(1,4),c1=0;c1<3;c1++)Q[c1]=+Q[c1];return Q[3]=1,Q}if(j=k.match(B1)){for(var _1=j.slice(1,5),T1=0;T1<4;T1++)_1[T1]=+_1[T1];return _1}if(j=k.match(H1)){for(var y1=j.slice(1,4),R1=0;R1<3;R1++)y1[R1]=e1(y1[R1]*2.55);return y1[3]=1,y1}if(j=k.match(b1)){for(var F1=j.slice(1,5),J1=0;J1<3;J1++)F1[J1]=e1(F1[J1]*2.55);return F1[3]=+F1[3],F1}if(j=k.match(X)){var st=j.slice(1,4);st[1]*=.01,st[2]*=.01;var kt=vt(st);return kt[3]=1,kt}if(j=k.match(f1)){var ft=j.slice(1,4);ft[1]*=.01,ft[2]*=.01;var Wt=vt(ft);return Wt[3]=+j[4],Wt}};G.test=function(k){return q1.test(k)||B1.test(k)||H1.test(k)||b1.test(k)||X.test(k)||f1.test(k)};var r1=G,P=C,q=y,Z=H,l1=g.type,v1=rt,x1=r1;q.prototype.css=function(k){return v1(this._rgb,k)},P.css=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(q,[null].concat(k,["css"])))},Z.format.css=x1,Z.autodetect.push({p:5,test:function(k){for(var j=[],Q=arguments.length-1;Q-- >0;)j[Q]=arguments[Q+1];if(!j.length&&l1(k)==="string"&&x1.test(k))return"css"}});var N1=y,Z1=C,j1=H,C1=g.unpack;j1.format.gl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=C1(k,"rgba");return Q[0]*=255,Q[1]*=255,Q[2]*=255,Q},Z1.gl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(N1,[null].concat(k,["gl"])))},N1.prototype.gl=function(){var k=this._rgb;return[k[0]/255,k[1]/255,k[2]/255,k[3]]};var Vt=g.unpack,Y1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Vt(k,"rgb"),c1=Q[0],_1=Q[1],T1=Q[2],y1=Math.min(c1,_1,T1),R1=Math.max(c1,_1,T1),F1=R1-y1,J1=F1*100/255,st=y1/(255-F1)*100,kt;return F1===0?kt=Number.NaN:(c1===R1&&(kt=(_1-T1)/F1),_1===R1&&(kt=2+(T1-c1)/F1),T1===R1&&(kt=4+(c1-_1)/F1),kt*=60,kt<0&&(kt+=360)),[kt,J1,st]},Ct=Y1,ht=g.unpack,Gt=Math.floor,Ht=function(){for(var k,j,Q,c1,_1,T1,y1=[],R1=arguments.length;R1--;)y1[R1]=arguments[R1];y1=ht(y1,"hcg");var F1=y1[0],J1=y1[1],st=y1[2],kt,ft,Wt;st=st*255;var Ft=J1*255;if(J1===0)kt=ft=Wt=st;else{F1===360&&(F1=0),F1>360&&(F1-=360),F1<0&&(F1+=360),F1/=60;var T2=Gt(F1),D2=F1-T2,Z2=st*(1-J1),o0=Z2+Ft*(1-D2),C4=Z2+Ft*D2,d4=Z2+Ft;switch(T2){case 0:k=[d4,C4,Z2],kt=k[0],ft=k[1],Wt=k[2];break;case 1:j=[o0,d4,Z2],kt=j[0],ft=j[1],Wt=j[2];break;case 2:Q=[Z2,d4,C4],kt=Q[0],ft=Q[1],Wt=Q[2];break;case 3:c1=[Z2,o0,d4],kt=c1[0],ft=c1[1],Wt=c1[2];break;case 4:_1=[C4,Z2,d4],kt=_1[0],ft=_1[1],Wt=_1[2];break;case 5:T1=[d4,Z2,o0],kt=T1[0],ft=T1[1],Wt=T1[2];break}}return[kt,ft,Wt,y1.length>3?y1[3]:1]},Ot=Ht,a2=g.unpack,u2=g.type,_t=C,At=y,Rt=H,Xt=Ct;At.prototype.hcg=function(){return Xt(this._rgb)},_t.hcg=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(At,[null].concat(k,["hcg"])))},Rt.format.hcg=Ot,Rt.autodetect.push({p:1,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=a2(k,"hcg"),u2(k)==="array"&&k.length===3)return"hcg"}});var f2=g.unpack,y2=g.last,T0=Math.round,r0=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=f2(k,"rgba"),c1=Q[0],_1=Q[1],T1=Q[2],y1=Q[3],R1=y2(k)||"auto";y1===void 0&&(y1=1),R1==="auto"&&(R1=y1<1?"rgba":"rgb"),c1=T0(c1),_1=T0(_1),T1=T0(T1);var F1=c1<<16|_1<<8|T1,J1="000000"+F1.toString(16);J1=J1.substr(J1.length-6);var st="0"+T0(y1*255).toString(16);switch(st=st.substr(st.length-2),R1.toLowerCase()){case"rgba":return"#"+J1+st;case"argb":return"#"+st+J1;default:return"#"+J1}},j0=r0,_2=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ae=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,wt=function(k){if(k.match(_2)){(k.length===4||k.length===7)&&(k=k.substr(1)),k.length===3&&(k=k.split(""),k=k[0]+k[0]+k[1]+k[1]+k[2]+k[2]);var j=parseInt(k,16),Q=j>>16,c1=j>>8&255,_1=j&255;return[Q,c1,_1,1]}if(k.match(ae)){(k.length===5||k.length===9)&&(k=k.substr(1)),k.length===4&&(k=k.split(""),k=k[0]+k[0]+k[1]+k[1]+k[2]+k[2]+k[3]+k[3]);var T1=parseInt(k,16),y1=T1>>24&255,R1=T1>>16&255,F1=T1>>8&255,J1=Math.round((T1&255)/255*100)/100;return[y1,R1,F1,J1]}throw new Error("unknown hex color: "+k)},mt=wt,Tt=C,Kt=y,S2=g.type,H2=H,m2=j0;Kt.prototype.hex=function(k){return m2(this._rgb,k)},Tt.hex=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Kt,[null].concat(k,["hex"])))},H2.format.hex=mt,H2.autodetect.push({p:4,test:function(k){for(var j=[],Q=arguments.length-1;Q-- >0;)j[Q]=arguments[Q+1];if(!j.length&&S2(k)==="string"&&[3,4,5,6,7,8,9].indexOf(k.length)>=0)return"hex"}});var N2=g.unpack,O0=g.TWOPI,ue=Math.min,ve=Math.sqrt,k4=Math.acos,Xe=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=N2(k,"rgb"),c1=Q[0],_1=Q[1],T1=Q[2];c1/=255,_1/=255,T1/=255;var y1,R1=ue(c1,_1,T1),F1=(c1+_1+T1)/3,J1=F1>0?1-R1/F1:0;return J1===0?y1=NaN:(y1=(c1-_1+(c1-T1))/2,y1/=ve((c1-_1)*(c1-_1)+(c1-T1)*(_1-T1)),y1=k4(y1),T1>_1&&(y1=O0-y1),y1/=O0),[y1*360,J1,F1]},De=Xe,E4=g.unpack,A0=g.limit,p0=g.TWOPI,P4=g.PITHIRD,h4=Math.cos,fn=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=E4(k,"hsi");var Q=k[0],c1=k[1],_1=k[2],T1,y1,R1;return isNaN(Q)&&(Q=0),isNaN(c1)&&(c1=0),Q>360&&(Q-=360),Q<0&&(Q+=360),Q/=360,Q<1/3?(R1=(1-c1)/3,T1=(1+c1*h4(p0*Q)/h4(P4-p0*Q))/3,y1=1-(R1+T1)):Q<2/3?(Q-=1/3,T1=(1-c1)/3,y1=(1+c1*h4(p0*Q)/h4(P4-p0*Q))/3,R1=1-(T1+y1)):(Q-=2/3,y1=(1-c1)/3,R1=(1+c1*h4(p0*Q)/h4(P4-p0*Q))/3,T1=1-(y1+R1)),T1=A0(_1*T1*3),y1=A0(_1*y1*3),R1=A0(_1*R1*3),[T1*255,y1*255,R1*255,k.length>3?k[3]:1]},aa=fn,or=g.unpack,xa=g.type,N4=C,g2=y,c2=H,ne=De;g2.prototype.hsi=function(){return ne(this._rgb)},N4.hsi=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(g2,[null].concat(k,["hsi"])))},c2.format.hsi=aa,c2.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=or(k,"hsi"),xa(k)==="array"&&k.length===3)return"hsi"}});var re=g.unpack,C0=g.type,de=C,Re=y,u4=H,D4=z1;Re.prototype.hsl=function(){return D4(this._rgb)},de.hsl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Re,[null].concat(k,["hsl"])))},u4.format.hsl=et,u4.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=re(k,"hsl"),C0(k)==="array"&&k.length===3)return"hsl"}});var x4=g.unpack,V4=Math.min,gn=Math.max,R4=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=x4(k,"rgb");var Q=k[0],c1=k[1],_1=k[2],T1=V4(Q,c1,_1),y1=gn(Q,c1,_1),R1=y1-T1,F1,J1,st;return st=y1/255,y1===0?(F1=Number.NaN,J1=0):(J1=R1/y1,Q===y1&&(F1=(c1-_1)/R1),c1===y1&&(F1=2+(_1-Q)/R1),_1===y1&&(F1=4+(Q-c1)/R1),F1*=60,F1<0&&(F1+=360)),[F1,J1,st]},U5=R4,Je=g.unpack,lr=Math.floor,Ir=function(){for(var k,j,Q,c1,_1,T1,y1=[],R1=arguments.length;R1--;)y1[R1]=arguments[R1];y1=Je(y1,"hsv");var F1=y1[0],J1=y1[1],st=y1[2],kt,ft,Wt;if(st*=255,J1===0)kt=ft=Wt=st;else{F1===360&&(F1=0),F1>360&&(F1-=360),F1<0&&(F1+=360),F1/=60;var Ft=lr(F1),T2=F1-Ft,D2=st*(1-J1),Z2=st*(1-J1*T2),o0=st*(1-J1*(1-T2));switch(Ft){case 0:k=[st,o0,D2],kt=k[0],ft=k[1],Wt=k[2];break;case 1:j=[Z2,st,D2],kt=j[0],ft=j[1],Wt=j[2];break;case 2:Q=[D2,st,o0],kt=Q[0],ft=Q[1],Wt=Q[2];break;case 3:c1=[D2,Z2,st],kt=c1[0],ft=c1[1],Wt=c1[2];break;case 4:_1=[o0,D2,st],kt=_1[0],ft=_1[1],Wt=_1[2];break;case 5:T1=[st,D2,Z2],kt=T1[0],ft=T1[1],Wt=T1[2];break}}return[kt,ft,Wt,y1.length>3?y1[3]:1]},Fr=Ir,Ai=g.unpack,ki=g.type,W5=C,q5=y,pn=H,Ro=U5;q5.prototype.hsv=function(){return Ro(this._rgb)},W5.hsv=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(q5,[null].concat(k,["hsv"])))},pn.format.hsv=Fr,pn.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=Ai(k,"hsv"),ki(k)==="array"&&k.length===3)return"hsv"}});var $r={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Dt=$r,s2=g.unpack,k0=Math.pow,b0=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=s2(k,"rgb"),c1=Q[0],_1=Q[1],T1=Q[2],y1=jo(c1,_1,T1),R1=y1[0],F1=y1[1],J1=y1[2],st=116*F1-16;return[st<0?0:st,500*(R1-F1),200*(F1-J1)]},L0=function(k){return(k/=255)<=.04045?k/12.92:k0((k+.055)/1.055,2.4)},Ur=function(k){return k>Dt.t3?k0(k,1/3):k/Dt.t2+Dt.t0},jo=function(k,j,Q){k=L0(k),j=L0(j),Q=L0(Q);var c1=Ur((.4124564*k+.3575761*j+.1804375*Q)/Dt.Xn),_1=Ur((.2126729*k+.7151522*j+.072175*Q)/Dt.Yn),T1=Ur((.0193339*k+.119192*j+.9503041*Q)/Dt.Zn);return[c1,_1,T1]},Io=b0,qa=$r,RM=g.unpack,Bl=Math.pow,jM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=RM(k,"lab");var Q=k[0],c1=k[1],_1=k[2],T1,y1,R1,F1,J1,st;return y1=(Q+16)/116,T1=isNaN(c1)?y1:y1+c1/500,R1=isNaN(_1)?y1:y1-_1/200,y1=qa.Yn*h9(y1),T1=qa.Xn*h9(T1),R1=qa.Zn*h9(R1),F1=s9(3.2404542*T1-1.5371385*y1-.4985314*R1),J1=s9(-.969266*T1+1.8760108*y1+.041556*R1),st=s9(.0556434*T1-.2040259*y1+1.0572252*R1),[F1,J1,st,k.length>3?k[3]:1]},s9=function(k){return 255*(k<=.00304?12.92*k:1.055*Bl(k,1/2.4)-.055)},h9=function(k){return k>qa.t1?k*k*k:qa.t2*(k-qa.t0)},uu=jM,vu=g.unpack,IM=g.type,FM=C,G5=y,du=H,$M=Io;G5.prototype.lab=function(){return $M(this._rgb)},FM.lab=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(G5,[null].concat(k,["lab"])))},du.format.lab=uu,du.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=vu(k,"lab"),IM(k)==="array"&&k.length===3)return"lab"}});var UM=g.unpack,WM=g.RAD2DEG,qM=Math.sqrt,_l=Math.atan2,GM=Math.round,KM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=UM(k,"lab"),c1=Q[0],_1=Q[1],T1=Q[2],y1=qM(_1*_1+T1*T1),R1=(_l(T1,_1)*WM+360)%360;return GM(y1*1e4)===0&&(R1=Number.NaN),[c1,y1,R1]},fu=KM,YM=g.unpack,K5=Io,ZM=fu,QM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=YM(k,"rgb"),c1=Q[0],_1=Q[1],T1=Q[2],y1=K5(c1,_1,T1),R1=y1[0],F1=y1[1],J1=y1[2];return ZM(R1,F1,J1)},XM=QM,JM=g.unpack,tH=g.DEG2RAD,eH=Math.sin,gu=Math.cos,aH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=JM(k,"lch"),c1=Q[0],_1=Q[1],T1=Q[2];return isNaN(T1)&&(T1=0),T1=T1*tH,[c1,gu(T1)*_1,eH(T1)*_1]},pu=aH,mu=g.unpack,nH=pu,rH=uu,zu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=mu(k,"lch");var Q=k[0],c1=k[1],_1=k[2],T1=nH(Q,c1,_1),y1=T1[0],R1=T1[1],F1=T1[2],J1=rH(y1,R1,F1),st=J1[0],kt=J1[1],ft=J1[2];return[st,kt,ft,k.length>3?k[3]:1]},Mu=zu,iH=g.unpack,Hu=Mu,oH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=iH(k,"hcl").reverse();return Hu.apply(void 0,Q)},lH=oH,wu=g.unpack,cH=g.type,yu=C,Ei=y,u9=H,xu=XM;Ei.prototype.lch=function(){return xu(this._rgb)},Ei.prototype.hcl=function(){return xu(this._rgb).reverse()},yu.lch=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Ei,[null].concat(k,["lch"])))},yu.hcl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Ei,[null].concat(k,["hcl"])))},u9.format.lch=Mu,u9.format.hcl=lH,["lch","hcl"].forEach(function(k){return u9.autodetect.push({p:2,test:function(){for(var j=[],Q=arguments.length;Q--;)j[Q]=arguments[Q];if(j=wu(j,k),cH(j)==="array"&&j.length===3)return k}})});var sH={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Vu=sH,Cu=y,bu=H,hH=g.type,Y5=Vu,uH=mt,vH=j0;Cu.prototype.name=function(){for(var k=vH(this._rgb,"rgb"),j=0,Q=Object.keys(Y5);j0;)j[Q]=arguments[Q+1];if(!j.length&&hH(k)==="string"&&Y5[k.toLowerCase()])return"named"}});var Lu=g.unpack,dH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Lu(k,"rgb"),c1=Q[0],_1=Q[1],T1=Q[2];return(c1<<16)+(_1<<8)+T1},v9=dH,Bu=g.type,fH=function(k){if(Bu(k)=="number"&&k>=0&&k<=16777215){var j=k>>16,Q=k>>8&255,c1=k&255;return[j,Q,c1,1]}throw new Error("unknown num color: "+k)},_u=fH,Su=C,Tu=y,Ou=H,Au=g.type,gH=v9;Tu.prototype.num=function(){return gH(this._rgb)},Su.num=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Tu,[null].concat(k,["num"])))},Ou.format.num=_u,Ou.autodetect.push({p:5,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k.length===1&&Au(k[0])==="number"&&k[0]>=0&&k[0]<=16777215)return"num"}});var pH=C,Sl=y,ku=H,Eu=g.unpack,d9=g.type,Pu=Math.round;Sl.prototype.rgb=function(k){return k===void 0&&(k=!0),k===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Pu)},Sl.prototype.rgba=function(k){return k===void 0&&(k=!0),this._rgb.slice(0,4).map(function(j,Q){return Q<3?k===!1?j:Pu(j):j})},pH.rgb=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Sl,[null].concat(k,["rgb"])))},ku.format.rgb=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Eu(k,"rgba");return Q[3]===void 0&&(Q[3]=1),Q},ku.autodetect.push({p:3,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=Eu(k,"rgba"),d9(k)==="array"&&(k.length===3||k.length===4&&d9(k[3])=="number"&&k[3]>=0&&k[3]<=1))return"rgb"}});var Z5=Math.log,Nu=function(k){var j=k/100,Q,c1,_1;return j<66?(Q=255,c1=j<6?0:-155.25485562709179-.44596950469579133*(c1=j-2)+104.49216199393888*Z5(c1),_1=j<20?0:-254.76935184120902+.8274096064007395*(_1=j-10)+115.67994401066147*Z5(_1)):(Q=351.97690566805693+.114206453784165*(Q=j-55)-40.25366309332127*Z5(Q),c1=325.4494125711974+.07943456536662342*(c1=j-50)-28.0852963507957*Z5(c1),_1=255),[Q,c1,_1,1]},Fo=Nu,$o=Fo,Du=g.unpack,mH=Math.round,zH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];for(var Q=Du(k,"rgb"),c1=Q[0],_1=Q[2],T1=1e3,y1=4e4,R1=.4,F1;y1-T1>R1;){F1=(y1+T1)*.5;var J1=$o(F1);J1[2]/J1[0]>=_1/c1?y1=F1:T1=F1}return mH(F1)},Ru=zH,f9=C,Tl=y,Ol=H,Pi=Ru;Tl.prototype.temp=Tl.prototype.kelvin=Tl.prototype.temperature=function(){return Pi(this._rgb)},f9.temp=f9.kelvin=f9.temperature=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Tl,[null].concat(k,["temp"])))},Ol.format.temp=Ol.format.kelvin=Ol.format.temperature=Fo;var ju=g.unpack,Al=Math.cbrt,MH=Math.pow,HH=Math.sign,Iu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=ju(k,"rgb"),c1=Q[0],_1=Q[1],T1=Q[2],y1=[g9(c1/255),g9(_1/255),g9(T1/255)],R1=y1[0],F1=y1[1],J1=y1[2],st=Al(.4122214708*R1+.5363325363*F1+.0514459929*J1),kt=Al(.2119034982*R1+.6806995451*F1+.1073969566*J1),ft=Al(.0883024619*R1+.2817188376*F1+.6299787005*J1);return[.2104542553*st+.793617785*kt-.0040720468*ft,1.9779984951*st-2.428592205*kt+.4505937099*ft,.0259040371*st+.7827717662*kt-.808675766*ft]},Fu=Iu;function g9(k){var j=Math.abs(k);return j<.04045?k/12.92:(HH(k)||1)*MH((j+.055)/1.055,2.4)}var $u=g.unpack,Ni=Math.pow,kl=Math.sign,Uu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=$u(k,"lab");var Q=k[0],c1=k[1],_1=k[2],T1=Ni(Q+.3963377774*c1+.2158037573*_1,3),y1=Ni(Q-.1055613458*c1-.0638541728*_1,3),R1=Ni(Q-.0894841775*c1-1.291485548*_1,3);return[255*p9(4.0767416621*T1-3.3077115913*y1+.2309699292*R1),255*p9(-1.2684380046*T1+2.6097574011*y1-.3413193965*R1),255*p9(-.0041960863*T1-.7034186147*y1+1.707614701*R1),k.length>3?k[3]:1]},Wu=Uu;function p9(k){var j=Math.abs(k);return j>.0031308?(kl(k)||1)*(1.055*Ni(j,1/2.4)-.055):k*12.92}var qu=g.unpack,wH=g.type,yH=C,m9=y,Gu=H,Ku=Fu;m9.prototype.oklab=function(){return Ku(this._rgb)},yH.oklab=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(m9,[null].concat(k,["oklab"])))},Gu.format.oklab=Wu,Gu.autodetect.push({p:3,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=qu(k,"oklab"),wH(k)==="array"&&k.length===3)return"oklab"}});var Yu=g.unpack,xH=Fu,Zu=fu,Qu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Yu(k,"rgb"),c1=Q[0],_1=Q[1],T1=Q[2],y1=xH(c1,_1,T1),R1=y1[0],F1=y1[1],J1=y1[2];return Zu(R1,F1,J1)},VH=Qu,CH=g.unpack,Xu=pu,bH=Wu,LH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=CH(k,"lch");var Q=k[0],c1=k[1],_1=k[2],T1=Xu(Q,c1,_1),y1=T1[0],R1=T1[1],F1=T1[2],J1=bH(y1,R1,F1),st=J1[0],kt=J1[1],ft=J1[2];return[st,kt,ft,k.length>3?k[3]:1]},Ju=LH,BH=g.unpack,tv=g.type,ev=C,av=y,nv=H,rv=VH;av.prototype.oklch=function(){return rv(this._rgb)},ev.oklch=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(av,[null].concat(k,["oklch"])))},nv.format.oklch=Ju,nv.autodetect.push({p:3,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=BH(k,"oklch"),tv(k)==="array"&&k.length===3)return"oklch"}});var iv=y,_H=g.type;iv.prototype.alpha=function(k,j){return j===void 0&&(j=!1),k!==void 0&&_H(k)==="number"?j?(this._rgb[3]=k,this):new iv([this._rgb[0],this._rgb[1],this._rgb[2],k],"rgb"):this._rgb[3]};var ov=y;ov.prototype.clipped=function(){return this._rgb._clipped||!1};var Di=y,SH=$r;Di.prototype.darken=function(k){k===void 0&&(k=1);var j=this,Q=j.lab();return Q[0]-=SH.Kn*k,new Di(Q,"lab").alpha(j.alpha(),!0)},Di.prototype.brighten=function(k){return k===void 0&&(k=1),this.darken(-k)},Di.prototype.darker=Di.prototype.darken,Di.prototype.brighter=Di.prototype.brighten;var lv=y;lv.prototype.get=function(k){var j=k.split("."),Q=j[0],c1=j[1],_1=this[Q]();if(c1){var T1=Q.indexOf(c1)-(Q.substr(0,2)==="ok"?2:0);if(T1>-1)return _1[T1];throw new Error("unknown channel "+c1+" in mode "+Q)}else return _1};var Q5=y,TH=g.type,cv=Math.pow,OH=1e-7,AH=20;Q5.prototype.luminance=function(k){if(k!==void 0&&TH(k)==="number"){if(k===0)return new Q5([0,0,0,this._rgb[3]],"rgb");if(k===1)return new Q5([255,255,255,this._rgb[3]],"rgb");var j=this.luminance(),Q="rgb",c1=AH,_1=function(y1,R1){var F1=y1.interpolate(R1,.5,Q),J1=F1.luminance();return Math.abs(k-J1)k?_1(y1,F1):_1(F1,R1)},T1=(j>k?_1(new Q5([0,0,0]),this):_1(this,new Q5([255,255,255]))).rgb();return new Q5(T1.concat([this._rgb[3]]))}return n2.apply(void 0,this._rgb.slice(0,3))};var n2=function(k,j,Q){return k=El(k),j=El(j),Q=El(Q),.2126*k+.7152*j+.0722*Q},El=function(k){return k/=255,k<=.03928?k/12.92:cv((k+.055)/1.055,2.4)},j4={},sv=y,hv=g.type,Pl=j4,uv=function(k,j,Q){Q===void 0&&(Q=.5);for(var c1=[],_1=arguments.length-3;_1-- >0;)c1[_1]=arguments[_1+3];var T1=c1[0]||"lrgb";if(!Pl[T1]&&!c1.length&&(T1=Object.keys(Pl)[0]),!Pl[T1])throw new Error("interpolation mode "+T1+" is not defined");return hv(k)!=="object"&&(k=new sv(k)),hv(j)!=="object"&&(j=new sv(j)),Pl[T1](k,j,Q).alpha(k.alpha()+Q*(j.alpha()-k.alpha()))},vv=y,kH=uv;vv.prototype.mix=vv.prototype.interpolate=function(k,j){j===void 0&&(j=.5);for(var Q=[],c1=arguments.length-2;c1-- >0;)Q[c1]=arguments[c1+2];return kH.apply(void 0,[this,k,j].concat(Q))};var dv=y;dv.prototype.premultiply=function(k){k===void 0&&(k=!1);var j=this._rgb,Q=j[3];return k?(this._rgb=[j[0]*Q,j[1]*Q,j[2]*Q,Q],this):new dv([j[0]*Q,j[1]*Q,j[2]*Q,Q],"rgb")};var z9=y,EH=$r;z9.prototype.saturate=function(k){k===void 0&&(k=1);var j=this,Q=j.lch();return Q[1]+=EH.Kn*k,Q[1]<0&&(Q[1]=0),new z9(Q,"lch").alpha(j.alpha(),!0)},z9.prototype.desaturate=function(k){return k===void 0&&(k=1),this.saturate(-k)};var fv=y,gv=g.type;fv.prototype.set=function(k,j,Q){Q===void 0&&(Q=!1);var c1=k.split("."),_1=c1[0],T1=c1[1],y1=this[_1]();if(T1){var R1=_1.indexOf(T1)-(_1.substr(0,2)==="ok"?2:0);if(R1>-1){if(gv(j)=="string")switch(j.charAt(0)){case"+":y1[R1]+=+j;break;case"-":y1[R1]+=+j;break;case"*":y1[R1]*=+j.substr(1);break;case"/":y1[R1]/=+j.substr(1);break;default:y1[R1]=+j}else if(gv(j)==="number")y1[R1]=j;else throw new Error("unsupported value for Color.set");var F1=new fv(y1,_1);return Q?(this._rgb=F1._rgb,this):F1}throw new Error("unknown channel "+T1+" in mode "+_1)}else return y1};var PH=y,NH=function(k,j,Q){var c1=k._rgb,_1=j._rgb;return new PH(c1[0]+Q*(_1[0]-c1[0]),c1[1]+Q*(_1[1]-c1[1]),c1[2]+Q*(_1[2]-c1[2]),"rgb")};j4.rgb=NH;var DH=y,M9=Math.sqrt,X5=Math.pow,RH=function(k,j,Q){var c1=k._rgb,_1=c1[0],T1=c1[1],y1=c1[2],R1=j._rgb,F1=R1[0],J1=R1[1],st=R1[2];return new DH(M9(X5(_1,2)*(1-Q)+X5(F1,2)*Q),M9(X5(T1,2)*(1-Q)+X5(J1,2)*Q),M9(X5(y1,2)*(1-Q)+X5(st,2)*Q),"rgb")};j4.lrgb=RH;var jH=y,pv=function(k,j,Q){var c1=k.lab(),_1=j.lab();return new jH(c1[0]+Q*(_1[0]-c1[0]),c1[1]+Q*(_1[1]-c1[1]),c1[2]+Q*(_1[2]-c1[2]),"lab")};j4.lab=pv;var mv=y,J5=function(k,j,Q,c1){var _1,T1,y1,R1;c1==="hsl"?(y1=k.hsl(),R1=j.hsl()):c1==="hsv"?(y1=k.hsv(),R1=j.hsv()):c1==="hcg"?(y1=k.hcg(),R1=j.hcg()):c1==="hsi"?(y1=k.hsi(),R1=j.hsi()):c1==="lch"||c1==="hcl"?(c1="hcl",y1=k.hcl(),R1=j.hcl()):c1==="oklch"&&(y1=k.oklch().reverse(),R1=j.oklch().reverse());var F1,J1,st,kt,ft,Wt;(c1.substr(0,1)==="h"||c1==="oklch")&&(_1=y1,F1=_1[0],st=_1[1],ft=_1[2],T1=R1,J1=T1[0],kt=T1[1],Wt=T1[2]);var Ft,T2,D2,Z2;return!isNaN(F1)&&!isNaN(J1)?(J1>F1&&J1-F1>180?Z2=J1-(F1+360):J1180?Z2=J1+360-F1:Z2=J1-F1,T2=F1+Q*Z2):isNaN(F1)?isNaN(J1)?T2=Number.NaN:(T2=J1,(ft==1||ft==0)&&c1!="hsv"&&(Ft=kt)):(T2=F1,(Wt==1||Wt==0)&&c1!="hsv"&&(Ft=st)),Ft===void 0&&(Ft=st+Q*(kt-st)),D2=ft+Q*(Wt-ft),c1==="oklch"?new mv([D2,Ft,T2],c1):new mv([T2,Ft,D2],c1)},IH=J5,zv=function(k,j,Q){return IH(k,j,Q,"lch")};j4.lch=zv,j4.hcl=zv;var FH=y,$H=function(k,j,Q){var c1=k.num(),_1=j.num();return new FH(c1+Q*(_1-c1),"num")};j4.num=$H;var UH=J5,WH=function(k,j,Q){return UH(k,j,Q,"hcg")};j4.hcg=WH;var qH=J5,GH=function(k,j,Q){return qH(k,j,Q,"hsi")};j4.hsi=GH;var KH=J5,YH=function(k,j,Q){return KH(k,j,Q,"hsl")};j4.hsl=YH;var ZH=J5,QH=function(k,j,Q){return ZH(k,j,Q,"hsv")};j4.hsv=QH;var XH=y,JH=function(k,j,Q){var c1=k.oklab(),_1=j.oklab();return new XH(c1[0]+Q*(_1[0]-c1[0]),c1[1]+Q*(_1[1]-c1[1]),c1[2]+Q*(_1[2]-c1[2]),"oklab")};j4.oklab=JH;var tw=J5,ew=function(k,j,Q){return tw(k,j,Q,"oklch")};j4.oklch=ew;var H9=y,aw=g.clip_rgb,w9=Math.pow,Uo=Math.sqrt,y9=Math.PI,Mv=Math.cos,Wr=Math.sin,nw=Math.atan2,rw=function(k,j,Q){j===void 0&&(j="lrgb"),Q===void 0&&(Q=null);var c1=k.length;Q||(Q=Array.from(new Array(c1)).map(function(){return 1}));var _1=c1/Q.reduce(function(T2,D2){return T2+D2});if(Q.forEach(function(T2,D2){Q[D2]*=_1}),k=k.map(function(T2){return new H9(T2)}),j==="lrgb")return iw(k,Q);for(var T1=k.shift(),y1=T1.get(j),R1=[],F1=0,J1=0,st=0;st=360;)Ft-=360;y1[Wt]=Ft}else y1[Wt]=y1[Wt]/R1[Wt];return ft/=c1,new H9(y1,j).alpha(ft>.99999?1:ft,!0)},iw=function(k,j){for(var Q=k.length,c1=[0,0,0,0],_1=0;_1.9999999&&(c1[3]=1),new H9(aw(c1))},Ga=C,t3=g.type,k1=Math.pow,E1=function(k){var j="rgb",Q=Ga("#ccc"),c1=0,_1=[0,1],T1=[],y1=[0,0],R1=!1,F1=[],J1=!1,st=0,kt=1,ft=!1,Wt={},Ft=!0,T2=1,D2=function(gt){if(gt=gt||["#fff","#000"],gt&&t3(gt)==="string"&&Ga.brewer&&Ga.brewer[gt.toLowerCase()]&&(gt=Ga.brewer[gt.toLowerCase()]),t3(gt)==="array"){gt.length===1&&(gt=[gt[0],gt[0]]),gt=gt.slice(0);for(var l2=0;l2=R1[k2];)k2++;return k2-1}return 0},o0=function(gt){return gt},C4=function(gt){return gt},d4=function(gt,l2){var k2,O2;if(l2==null&&(l2=!1),isNaN(gt)||gt===null)return Q;if(l2)O2=gt;else if(R1&&R1.length>2){var b4=Z2(gt);O2=b4/(R1.length-2)}else kt!==st?O2=(gt-st)/(kt-st):O2=1;O2=C4(O2),l2||(O2=o0(O2)),T2!==1&&(O2=k1(O2,T2)),O2=y1[0]+O2*(1-y1[0]-y1[1]),O2=Math.min(1,Math.max(0,O2));var I0=Math.floor(O2*1e4);if(Ft&&Wt[I0])k2=Wt[I0];else{if(t3(F1)==="array")for(var Q2=0;Q2=h0&&Q2===T1.length-1){k2=F1[Q2];break}if(O2>h0&&O22){var Q2=gt.map(function(u0,m0){return m0/(gt.length-1)}),h0=gt.map(function(u0){return(u0-st)/(kt-st)});h0.every(function(u0,m0){return Q2[m0]===u0})||(C4=function(u0){if(u0<=0||u0>=1)return u0;for(var m0=0;u0>=h0[m0+1];)m0++;var cr=(u0-h0[m0])/(h0[m0+1]-h0[m0]),n3=Q2[m0]+cr*(Q2[m0+1]-Q2[m0]);return n3})}}return _1=[st,kt],K2},K2.mode=function(gt){return arguments.length?(j=gt,Va(),K2):j},K2.range=function(gt,l2){return D2(gt),K2},K2.out=function(gt){return J1=gt,K2},K2.spread=function(gt){return arguments.length?(c1=gt,K2):c1},K2.correctLightness=function(gt){return gt==null&&(gt=!0),ft=gt,Va(),ft?o0=function(l2){for(var k2=d4(0,!0).lab()[0],O2=d4(1,!0).lab()[0],b4=k2>O2,I0=d4(l2,!0).lab()[0],Q2=k2+(O2-k2)*l2,h0=I0-Q2,u0=0,m0=1,cr=20;Math.abs(h0)>.01&&cr-- >0;)(function(){return b4&&(h0*=-1),h0<0?(u0=l2,l2+=(m0-l2)*.5):(m0=l2,l2+=(u0-l2)*.5),I0=d4(l2,!0).lab()[0],h0=I0-Q2})();return l2}:o0=function(l2){return l2},K2},K2.padding=function(gt){return gt!=null?(t3(gt)==="number"&&(gt=[gt,gt]),y1=gt,K2):y1},K2.colors=function(gt,l2){arguments.length<2&&(l2="hex");var k2=[];if(arguments.length===0)k2=F1.slice(0);else if(gt===1)k2=[K2(.5)];else if(gt>1){var O2=_1[0],b4=_1[1]-O2;k2=ct(0,gt,!1).map(function(m0){return K2(O2+m0/(gt-1)*b4)})}else{k=[];var I0=[];if(R1&&R1.length>2)for(var Q2=1,h0=R1.length,u0=1<=h0;u0?Q2h0;u0?Q2++:Q2--)I0.push((R1[Q2-1]+R1[Q2])*.5);else I0=_1;k2=I0.map(function(m0){return K2(m0)})}return Ga[l2]&&(k2=k2.map(function(m0){return m0[l2]()})),k2},K2.cache=function(gt){return gt!=null?(Ft=gt,K2):Ft},K2.gamma=function(gt){return gt!=null?(T2=gt,K2):T2},K2.nodata=function(gt){return gt!=null?(Q=Ga(gt),K2):Q},K2};function ct(k,j,Q){for(var c1=[],_1=kT1;_1?y1++:y1--)c1.push(y1);return c1}var It=y,A2=E1,je=function(k){for(var j=[1,1],Q=1;Q=5){var J1,st,kt;J1=k.map(function(ft){return ft.lab()}),kt=k.length-1,st=je(kt),_1=function(ft){var Wt=1-ft,Ft=[0,1,2].map(function(T2){return J1.reduce(function(D2,Z2,o0){return D2+st[o0]*Math.pow(Wt,kt-o0)*Math.pow(ft,o0)*Z2[T2]},0)});return new It(Ft,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return _1},Wo=function(k){var j=e3(k);return j.scale=function(){return A2(j)},j},qo=C,na=function(k,j,Q){if(!na[Q])throw new Error("unknown blend mode "+Q);return na[Q](k,j)},mn=function(k){return function(j,Q){var c1=qo(Q).rgb(),_1=qo(j).rgb();return qo.rgb(k(c1,_1))}},zn=function(k){return function(j,Q){var c1=[];return c1[0]=k(j[0],Q[0]),c1[1]=k(j[1],Q[1]),c1[2]=k(j[2],Q[2]),c1}},x9=function(k){return k},V9=function(k,j){return k*j/255},C9=function(k,j){return k>j?j:k},Nl=function(k,j){return k>j?k:j},a3=function(k,j){return 255*(1-(1-k/255)*(1-j/255))},Ri=function(k,j){return j<128?2*k*j/255:255*(1-2*(1-k/255)*(1-j/255))},ow=function(k,j){return 255*(1-(1-j/255)/(k/255))},ji=function(k,j){return k===255?255:(k=255*(j/255)/(1-k/255),k>255?255:k)};na.normal=mn(zn(x9)),na.multiply=mn(zn(V9)),na.screen=mn(zn(a3)),na.overlay=mn(zn(Ri)),na.darken=mn(zn(C9)),na.lighten=mn(zn(Nl)),na.dodge=mn(zn(ji)),na.burn=mn(zn(ow));for(var b9=na,Go=g.type,he1=g.clip_rgb,ue1=g.TWOPI,ve1=Math.pow,de1=Math.sin,fe1=Math.cos,DO=C,ge1=function(k,j,Q,c1,_1){k===void 0&&(k=300),j===void 0&&(j=-1.5),Q===void 0&&(Q=1),c1===void 0&&(c1=1),_1===void 0&&(_1=[0,1]);var T1=0,y1;Go(_1)==="array"?y1=_1[1]-_1[0]:(y1=0,_1=[_1,_1]);var R1=function(F1){var J1=ue1*((k+120)/360+j*F1),st=ve1(_1[0]+y1*F1,c1),kt=T1!==0?Q[0]+F1*T1:Q,ft=kt*st*(1-st)/2,Wt=fe1(J1),Ft=de1(J1),T2=st+ft*(-.14861*Wt+1.78277*Ft),D2=st+ft*(-.29227*Wt-.90649*Ft),Z2=st+ft*(1.97294*Wt);return DO(he1([T2*255,D2*255,Z2*255,1]))};return R1.start=function(F1){return F1==null?k:(k=F1,R1)},R1.rotations=function(F1){return F1==null?j:(j=F1,R1)},R1.gamma=function(F1){return F1==null?c1:(c1=F1,R1)},R1.hue=function(F1){return F1==null?Q:(Q=F1,Go(Q)==="array"?(T1=Q[1]-Q[0],T1===0&&(Q=Q[1])):T1=0,R1)},R1.lightness=function(F1){return F1==null?_1:(Go(F1)==="array"?(_1=F1,y1=F1[1]-F1[0]):(_1=[F1,F1],y1=0),R1)},R1.scale=function(){return DO.scale(R1)},R1.hue(Q),R1},pe1=y,me1="0123456789abcdef",ze1=Math.floor,Me1=Math.random,He1=function(){for(var k="#",j=0;j<6;j++)k+=me1.charAt(ze1(Me1()*16));return new pe1(k,"hex")},lw=s,RO=Math.log,we1=Math.pow,ye1=Math.floor,xe1=Math.abs,jO=function(k,j){j===void 0&&(j=null);var Q={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return lw(k)==="object"&&(k=Object.values(k)),k.forEach(function(c1){j&&lw(c1)==="object"&&(c1=c1[j]),c1!=null&&!isNaN(c1)&&(Q.values.push(c1),Q.sum+=c1,c1Q.max&&(Q.max=c1),Q.count+=1)}),Q.domain=[Q.min,Q.max],Q.limits=function(c1,_1){return IO(Q,c1,_1)},Q},IO=function(k,j,Q){j===void 0&&(j="equal"),Q===void 0&&(Q=7),lw(k)=="array"&&(k=jO(k));var c1=k.min,_1=k.max,T1=k.values.sort(function(sw,hw){return sw-hw});if(Q===1)return[c1,_1];var y1=[];if(j.substr(0,1)==="c"&&(y1.push(c1),y1.push(_1)),j.substr(0,1)==="e"){y1.push(c1);for(var R1=1;R1 0");var F1=Math.LOG10E*RO(c1),J1=Math.LOG10E*RO(_1);y1.push(c1);for(var st=1;st200&&(C4=!1)}for(var r3={},Dl=0;Dlc1?(Q+.05)/(c1+.05):(c1+.05)/(Q+.05)},UO=y,Ii=Math.sqrt,Ie=Math.pow,Ce1=Math.min,be1=Math.max,WO=Math.atan2,qO=Math.abs,Hv=Math.cos,GO=Math.sin,Le1=Math.exp,KO=Math.PI,Be1=function(k,j,Q,c1,_1){Q===void 0&&(Q=1),c1===void 0&&(c1=1),_1===void 0&&(_1=1);var T1=function(Yo){return 360*Yo/(2*KO)},y1=function(Yo){return 2*KO*Yo/360};k=new UO(k),j=new UO(j);var R1=Array.from(k.lab()),F1=R1[0],J1=R1[1],st=R1[2],kt=Array.from(j.lab()),ft=kt[0],Wt=kt[1],Ft=kt[2],T2=(F1+ft)/2,D2=Ii(Ie(J1,2)+Ie(st,2)),Z2=Ii(Ie(Wt,2)+Ie(Ft,2)),o0=(D2+Z2)/2,C4=.5*(1-Ii(Ie(o0,7)/(Ie(o0,7)+Ie(25,7)))),d4=J1*(1+C4),Va=Wt*(1+C4),K2=Ii(Ie(d4,2)+Ie(st,2)),gt=Ii(Ie(Va,2)+Ie(Ft,2)),l2=(K2+gt)/2,k2=T1(WO(st,d4)),O2=T1(WO(Ft,Va)),b4=k2>=0?k2:k2+360,I0=O2>=0?O2:O2+360,Q2=qO(b4-I0)>180?(b4+I0+360)/2:(b4+I0)/2,h0=1-.17*Hv(y1(Q2-30))+.24*Hv(y1(2*Q2))+.32*Hv(y1(3*Q2+6))-.2*Hv(y1(4*Q2-63)),u0=I0-b4;u0=qO(u0)<=180?u0:I0<=b4?u0+360:u0-360,u0=2*Ii(K2*gt)*GO(y1(u0)/2);var m0=ft-F1,cr=gt-K2,n3=1+.015*Ie(T2-50,2)/Ii(20+Ie(T2-50,2)),r3=1+.045*l2,Dl=1+.015*l2*h0,Rl=30*Le1(-Ie((Q2-275)/25,2)),Fi=2*Ii(Ie(l2,7)/(Ie(l2,7)+Ie(25,7))),Ko=-Fi*GO(2*y1(Rl)),L9=Ii(Ie(m0/(Q*n3),2)+Ie(cr/(c1*r3),2)+Ie(u0/(_1*Dl),2)+Ko*(cr/(c1*r3))*(u0/(_1*Dl)));return be1(0,Ce1(100,L9))},YO=y,_e1=function(k,j,Q){Q===void 0&&(Q="lab"),k=new YO(k),j=new YO(j);var c1=k.get(Q),_1=j.get(Q),T1=0;for(var y1 in c1){var R1=(c1[y1]||0)-(_1[y1]||0);T1+=R1*R1}return Math.sqrt(T1)},Se1=y,Te1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];try{return new(Function.prototype.bind.apply(Se1,[null].concat(k))),!0}catch{return!1}},ZO=C,QO=E1,Oe1={cool:function(){return QO([ZO.hsl(180,1,.9),ZO.hsl(250,.7,.4)])},hot:function(){return QO(["#000","#f00","#ff0","#fff"]).mode("rgb")}},wv={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},cw=0,XO=Object.keys(wv);cw=e?"100%":"".concat(Math.round(t/e*100),"%")};Pt.calcPercentage=y71;var x71=function(t,e){e||(e=100);for(var a=[],n=t.length,r=[],o=t.length,l=0,c=0,h=0,s,u,v;o--;)c+=a[o]=Math.round(t[o]);for(h=cv&&(l=s);a[l]+=h,c+=h}for(var f=0;fQ?Q:k},n=a,r=function(k){k._clipped=!1,k._unclipped=k.slice(0);for(var j=0;j<=3;j++)j<3?((k[j]<0||k[j]>255)&&(k._clipped=!0),k[j]=n(k[j],0,255)):j===3&&(k[j]=n(k[j],0,1));return k},o={},l=0,c=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];l=3?Array.prototype.slice.call(k):u(k[0])=="object"&&j?j.split("").filter(function(Q){return k[0][Q]!==void 0}).map(function(Q){return k[0][Q]}):k[0]},f=s,d=function(k){if(k.length<2)return null;var j=k.length-1;return f(k[j])=="string"?k[j].toLowerCase():null},M=Math.PI,g={clip_rgb:r,limit:a,type:s,unpack:v,last:d,PI:M,TWOPI:M*2,PITHIRD:M/3,DEG2RAD:M/180,RAD2DEG:180/M},H={format:{},autodetect:[]},p=g.last,m=g.clip_rgb,z=g.type,w=H,x=function(){for(var j=[],Q=arguments.length;Q--;)j[Q]=arguments[Q];var c1=this;if(z(j[0])==="object"&&j[0].constructor&&j[0].constructor===this.constructor)return j[0];var _1=p(j),T1=!1;if(!_1){T1=!0,w.sorted||(w.autodetect=w.autodetect.sort(function(st,kt){return kt.p-st.p}),w.sorted=!0);for(var y1=0,R1=w.autodetect;y14?k[4]:1;return T1===1?[0,0,0,y1]:[Q>=1?0:255*(1-Q)*(1-T1),c1>=1?0:255*(1-c1)*(1-T1),_1>=1?0:255*(1-_1)*(1-T1),y1]},q=$,U=C,Y=y,F=H,X=g.unpack,R=g.type,i1=T;Y.prototype.cmyk=function(){return i1(this._rgb)},U.cmyk=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Y,[null].concat(k,["cmyk"])))},F.format.cmyk=q,F.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=X(k,"cmyk"),R(k)==="array"&&k.length===4)return"cmyk"}});var t1=g.unpack,A=g.last,o1=function(k){return Math.round(k*100)/100},h1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=t1(k,"hsla"),c1=A(k)||"lsa";return Q[0]=o1(Q[0]||0),Q[1]=o1(Q[1]*100)+"%",Q[2]=o1(Q[2]*100)+"%",c1==="hsla"||Q.length>3&&Q[3]<1?(Q[3]=Q.length>3?Q[3]:1,c1="hsla"):Q.length=3,c1+"("+Q.join(",")+")"},a1=h1,M1=g.unpack,s1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=M1(k,"rgba");var Q=k[0],c1=k[1],_1=k[2];Q/=255,c1/=255,_1/=255;var T1=Math.min(Q,c1,_1),y1=Math.max(Q,c1,_1),R1=(y1+T1)/2,F1,J1;return y1===T1?(F1=0,J1=Number.NaN):F1=R1<.5?(y1-T1)/(y1+T1):(y1-T1)/(2-y1-T1),Q==y1?J1=(c1-_1)/(y1-T1):c1==y1?J1=2+(_1-Q)/(y1-T1):_1==y1&&(J1=4+(Q-c1)/(y1-T1)),J1*=60,J1<0&&(J1+=360),k.length>3&&k[3]!==void 0?[J1,F1,R1,k[3]]:[J1,F1,R1]},z1=s1,m1=g.unpack,S1=g.last,I1=a1,U1=z1,P1=Math.round,G1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=m1(k,"rgba"),c1=S1(k)||"rgb";return c1.substr(0,3)=="hsl"?I1(U1(Q),c1):(Q[0]=P1(Q[0]),Q[1]=P1(Q[1]),Q[2]=P1(Q[2]),(c1==="rgba"||Q.length>3&&Q[3]<1)&&(Q[3]=Q.length>3?Q[3]:1,c1="rgba"),c1+"("+Q.slice(0,c1==="rgb"?3:4).join(",")+")")},rt=G1,X1=g.unpack,nt=Math.round,tt=function(){for(var k,j=[],Q=arguments.length;Q--;)j[Q]=arguments[Q];j=X1(j,"hsl");var c1=j[0],_1=j[1],T1=j[2],y1,R1,F1;if(_1===0)y1=R1=F1=T1*255;else{var J1=[0,0,0],st=[0,0,0],kt=T1<.5?T1*(1+_1):T1+_1-T1*_1,ft=2*T1-kt,Wt=c1/360;J1[0]=Wt+1/3,J1[1]=Wt,J1[2]=Wt-1/3;for(var Ft=0;Ft<3;Ft++)J1[Ft]<0&&(J1[Ft]+=1),J1[Ft]>1&&(J1[Ft]-=1),6*J1[Ft]<1?st[Ft]=ft+(kt-ft)*6*J1[Ft]:2*J1[Ft]<1?st[Ft]=kt:3*J1[Ft]<2?st[Ft]=ft+(kt-ft)*(2/3-J1[Ft])*6:st[Ft]=ft;k=[nt(st[0]*255),nt(st[1]*255),nt(st[2]*255)],y1=k[0],R1=k[1],F1=k[2]}return j.length>3?[y1,R1,F1,j[3]]:[y1,R1,F1,1]},et=tt,vt=et,V1=H,q1=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,B1=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,H1=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,b1=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,J=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,f1=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,e1=Math.round,G=function(k){k=k.toLowerCase().trim();var j;if(V1.format.named)try{return V1.format.named(k)}catch{}if(j=k.match(q1)){for(var Q=j.slice(1,4),c1=0;c1<3;c1++)Q[c1]=+Q[c1];return Q[3]=1,Q}if(j=k.match(B1)){for(var _1=j.slice(1,5),T1=0;T1<4;T1++)_1[T1]=+_1[T1];return _1}if(j=k.match(H1)){for(var y1=j.slice(1,4),R1=0;R1<3;R1++)y1[R1]=e1(y1[R1]*2.55);return y1[3]=1,y1}if(j=k.match(b1)){for(var F1=j.slice(1,5),J1=0;J1<3;J1++)F1[J1]=e1(F1[J1]*2.55);return F1[3]=+F1[3],F1}if(j=k.match(J)){var st=j.slice(1,4);st[1]*=.01,st[2]*=.01;var kt=vt(st);return kt[3]=1,kt}if(j=k.match(f1)){var ft=j.slice(1,4);ft[1]*=.01,ft[2]*=.01;var Wt=vt(ft);return Wt[3]=+j[4],Wt}};G.test=function(k){return q1.test(k)||B1.test(k)||H1.test(k)||b1.test(k)||J.test(k)||f1.test(k)};var r1=G,P=C,W=y,Z=H,l1=g.type,v1=rt,x1=r1;W.prototype.css=function(k){return v1(this._rgb,k)},P.css=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(W,[null].concat(k,["css"])))},Z.format.css=x1,Z.autodetect.push({p:5,test:function(k){for(var j=[],Q=arguments.length-1;Q-- >0;)j[Q]=arguments[Q+1];if(!j.length&&l1(k)==="string"&&x1.test(k))return"css"}});var N1=y,Z1=C,j1=H,C1=g.unpack;j1.format.gl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=C1(k,"rgba");return Q[0]*=255,Q[1]*=255,Q[2]*=255,Q},Z1.gl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(N1,[null].concat(k,["gl"])))},N1.prototype.gl=function(){var k=this._rgb;return[k[0]/255,k[1]/255,k[2]/255,k[3]]};var Vt=g.unpack,Y1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Vt(k,"rgb"),c1=Q[0],_1=Q[1],T1=Q[2],y1=Math.min(c1,_1,T1),R1=Math.max(c1,_1,T1),F1=R1-y1,J1=F1*100/255,st=y1/(255-F1)*100,kt;return F1===0?kt=Number.NaN:(c1===R1&&(kt=(_1-T1)/F1),_1===R1&&(kt=2+(T1-c1)/F1),T1===R1&&(kt=4+(c1-_1)/F1),kt*=60,kt<0&&(kt+=360)),[kt,J1,st]},Ct=Y1,ht=g.unpack,Gt=Math.floor,Ht=function(){for(var k,j,Q,c1,_1,T1,y1=[],R1=arguments.length;R1--;)y1[R1]=arguments[R1];y1=ht(y1,"hcg");var F1=y1[0],J1=y1[1],st=y1[2],kt,ft,Wt;st=st*255;var Ft=J1*255;if(J1===0)kt=ft=Wt=st;else{F1===360&&(F1=0),F1>360&&(F1-=360),F1<0&&(F1+=360),F1/=60;var T2=Gt(F1),D2=F1-T2,Z2=st*(1-J1),l0=Z2+Ft*(1-D2),C4=Z2+Ft*D2,d4=Z2+Ft;switch(T2){case 0:k=[d4,C4,Z2],kt=k[0],ft=k[1],Wt=k[2];break;case 1:j=[l0,d4,Z2],kt=j[0],ft=j[1],Wt=j[2];break;case 2:Q=[Z2,d4,C4],kt=Q[0],ft=Q[1],Wt=Q[2];break;case 3:c1=[Z2,l0,d4],kt=c1[0],ft=c1[1],Wt=c1[2];break;case 4:_1=[C4,Z2,d4],kt=_1[0],ft=_1[1],Wt=_1[2];break;case 5:T1=[d4,Z2,l0],kt=T1[0],ft=T1[1],Wt=T1[2];break}}return[kt,ft,Wt,y1.length>3?y1[3]:1]},Ot=Ht,a2=g.unpack,u2=g.type,_t=C,At=y,Rt=H,Xt=Ct;At.prototype.hcg=function(){return Xt(this._rgb)},_t.hcg=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(At,[null].concat(k,["hcg"])))},Rt.format.hcg=Ot,Rt.autodetect.push({p:1,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=a2(k,"hcg"),u2(k)==="array"&&k.length===3)return"hcg"}});var f2=g.unpack,y2=g.last,T0=Math.round,i0=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=f2(k,"rgba"),c1=Q[0],_1=Q[1],T1=Q[2],y1=Q[3],R1=y2(k)||"auto";y1===void 0&&(y1=1),R1==="auto"&&(R1=y1<1?"rgba":"rgb"),c1=T0(c1),_1=T0(_1),T1=T0(T1);var F1=c1<<16|_1<<8|T1,J1="000000"+F1.toString(16);J1=J1.substr(J1.length-6);var st="0"+T0(y1*255).toString(16);switch(st=st.substr(st.length-2),R1.toLowerCase()){case"rgba":return"#"+J1+st;case"argb":return"#"+st+J1;default:return"#"+J1}},j0=i0,_2=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ae=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,wt=function(k){if(k.match(_2)){(k.length===4||k.length===7)&&(k=k.substr(1)),k.length===3&&(k=k.split(""),k=k[0]+k[0]+k[1]+k[1]+k[2]+k[2]);var j=parseInt(k,16),Q=j>>16,c1=j>>8&255,_1=j&255;return[Q,c1,_1,1]}if(k.match(ae)){(k.length===5||k.length===9)&&(k=k.substr(1)),k.length===4&&(k=k.split(""),k=k[0]+k[0]+k[1]+k[1]+k[2]+k[2]+k[3]+k[3]);var T1=parseInt(k,16),y1=T1>>24&255,R1=T1>>16&255,F1=T1>>8&255,J1=Math.round((T1&255)/255*100)/100;return[y1,R1,F1,J1]}throw new Error("unknown hex color: "+k)},mt=wt,Tt=C,Kt=y,S2=g.type,H2=H,m2=j0;Kt.prototype.hex=function(k){return m2(this._rgb,k)},Tt.hex=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Kt,[null].concat(k,["hex"])))},H2.format.hex=mt,H2.autodetect.push({p:4,test:function(k){for(var j=[],Q=arguments.length-1;Q-- >0;)j[Q]=arguments[Q+1];if(!j.length&&S2(k)==="string"&&[3,4,5,6,7,8,9].indexOf(k.length)>=0)return"hex"}});var N2=g.unpack,O0=g.TWOPI,ue=Math.min,ve=Math.sqrt,k4=Math.acos,Xe=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=N2(k,"rgb"),c1=Q[0],_1=Q[1],T1=Q[2];c1/=255,_1/=255,T1/=255;var y1,R1=ue(c1,_1,T1),F1=(c1+_1+T1)/3,J1=F1>0?1-R1/F1:0;return J1===0?y1=NaN:(y1=(c1-_1+(c1-T1))/2,y1/=ve((c1-_1)*(c1-_1)+(c1-T1)*(_1-T1)),y1=k4(y1),T1>_1&&(y1=O0-y1),y1/=O0),[y1*360,J1,F1]},De=Xe,E4=g.unpack,A0=g.limit,p0=g.TWOPI,P4=g.PITHIRD,h4=Math.cos,gn=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=E4(k,"hsi");var Q=k[0],c1=k[1],_1=k[2],T1,y1,R1;return isNaN(Q)&&(Q=0),isNaN(c1)&&(c1=0),Q>360&&(Q-=360),Q<0&&(Q+=360),Q/=360,Q<1/3?(R1=(1-c1)/3,T1=(1+c1*h4(p0*Q)/h4(P4-p0*Q))/3,y1=1-(R1+T1)):Q<2/3?(Q-=1/3,T1=(1-c1)/3,y1=(1+c1*h4(p0*Q)/h4(P4-p0*Q))/3,R1=1-(T1+y1)):(Q-=2/3,y1=(1-c1)/3,R1=(1+c1*h4(p0*Q)/h4(P4-p0*Q))/3,T1=1-(y1+R1)),T1=A0(_1*T1*3),y1=A0(_1*y1*3),R1=A0(_1*R1*3),[T1*255,y1*255,R1*255,k.length>3?k[3]:1]},aa=gn,or=g.unpack,xa=g.type,N4=C,g2=y,c2=H,ne=De;g2.prototype.hsi=function(){return ne(this._rgb)},N4.hsi=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(g2,[null].concat(k,["hsi"])))},c2.format.hsi=aa,c2.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=or(k,"hsi"),xa(k)==="array"&&k.length===3)return"hsi"}});var re=g.unpack,C0=g.type,de=C,Re=y,u4=H,D4=z1;Re.prototype.hsl=function(){return D4(this._rgb)},de.hsl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Re,[null].concat(k,["hsl"])))},u4.format.hsl=et,u4.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=re(k,"hsl"),C0(k)==="array"&&k.length===3)return"hsl"}});var x4=g.unpack,V4=Math.min,pn=Math.max,R4=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=x4(k,"rgb");var Q=k[0],c1=k[1],_1=k[2],T1=V4(Q,c1,_1),y1=pn(Q,c1,_1),R1=y1-T1,F1,J1,st;return st=y1/255,y1===0?(F1=Number.NaN,J1=0):(J1=R1/y1,Q===y1&&(F1=(c1-_1)/R1),c1===y1&&(F1=2+(_1-Q)/R1),_1===y1&&(F1=4+(Q-c1)/R1),F1*=60,F1<0&&(F1+=360)),[F1,J1,st]},U5=R4,Je=g.unpack,lr=Math.floor,Ir=function(){for(var k,j,Q,c1,_1,T1,y1=[],R1=arguments.length;R1--;)y1[R1]=arguments[R1];y1=Je(y1,"hsv");var F1=y1[0],J1=y1[1],st=y1[2],kt,ft,Wt;if(st*=255,J1===0)kt=ft=Wt=st;else{F1===360&&(F1=0),F1>360&&(F1-=360),F1<0&&(F1+=360),F1/=60;var Ft=lr(F1),T2=F1-Ft,D2=st*(1-J1),Z2=st*(1-J1*T2),l0=st*(1-J1*(1-T2));switch(Ft){case 0:k=[st,l0,D2],kt=k[0],ft=k[1],Wt=k[2];break;case 1:j=[Z2,st,D2],kt=j[0],ft=j[1],Wt=j[2];break;case 2:Q=[D2,st,l0],kt=Q[0],ft=Q[1],Wt=Q[2];break;case 3:c1=[D2,Z2,st],kt=c1[0],ft=c1[1],Wt=c1[2];break;case 4:_1=[l0,D2,st],kt=_1[0],ft=_1[1],Wt=_1[2];break;case 5:T1=[st,D2,Z2],kt=T1[0],ft=T1[1],Wt=T1[2];break}}return[kt,ft,Wt,y1.length>3?y1[3]:1]},Fr=Ir,Ai=g.unpack,ki=g.type,W5=C,q5=y,mn=H,Ro=U5;q5.prototype.hsv=function(){return Ro(this._rgb)},W5.hsv=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(q5,[null].concat(k,["hsv"])))},mn.format.hsv=Fr,mn.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=Ai(k,"hsv"),ki(k)==="array"&&k.length===3)return"hsv"}});var $r={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Dt=$r,s2=g.unpack,k0=Math.pow,b0=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=s2(k,"rgb"),c1=Q[0],_1=Q[1],T1=Q[2],y1=jo(c1,_1,T1),R1=y1[0],F1=y1[1],J1=y1[2],st=116*F1-16;return[st<0?0:st,500*(R1-F1),200*(F1-J1)]},L0=function(k){return(k/=255)<=.04045?k/12.92:k0((k+.055)/1.055,2.4)},Ur=function(k){return k>Dt.t3?k0(k,1/3):k/Dt.t2+Dt.t0},jo=function(k,j,Q){k=L0(k),j=L0(j),Q=L0(Q);var c1=Ur((.4124564*k+.3575761*j+.1804375*Q)/Dt.Xn),_1=Ur((.2126729*k+.7151522*j+.072175*Q)/Dt.Yn),T1=Ur((.0193339*k+.119192*j+.9503041*Q)/Dt.Zn);return[c1,_1,T1]},Io=b0,qa=$r,RM=g.unpack,Bl=Math.pow,jM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=RM(k,"lab");var Q=k[0],c1=k[1],_1=k[2],T1,y1,R1,F1,J1,st;return y1=(Q+16)/116,T1=isNaN(c1)?y1:y1+c1/500,R1=isNaN(_1)?y1:y1-_1/200,y1=qa.Yn*h9(y1),T1=qa.Xn*h9(T1),R1=qa.Zn*h9(R1),F1=s9(3.2404542*T1-1.5371385*y1-.4985314*R1),J1=s9(-.969266*T1+1.8760108*y1+.041556*R1),st=s9(.0556434*T1-.2040259*y1+1.0572252*R1),[F1,J1,st,k.length>3?k[3]:1]},s9=function(k){return 255*(k<=.00304?12.92*k:1.055*Bl(k,1/2.4)-.055)},h9=function(k){return k>qa.t1?k*k*k:qa.t2*(k-qa.t0)},uu=jM,vu=g.unpack,IM=g.type,FM=C,G5=y,du=H,$M=Io;G5.prototype.lab=function(){return $M(this._rgb)},FM.lab=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(G5,[null].concat(k,["lab"])))},du.format.lab=uu,du.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=vu(k,"lab"),IM(k)==="array"&&k.length===3)return"lab"}});var UM=g.unpack,WM=g.RAD2DEG,qM=Math.sqrt,_l=Math.atan2,GM=Math.round,KM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=UM(k,"lab"),c1=Q[0],_1=Q[1],T1=Q[2],y1=qM(_1*_1+T1*T1),R1=(_l(T1,_1)*WM+360)%360;return GM(y1*1e4)===0&&(R1=Number.NaN),[c1,y1,R1]},fu=KM,YM=g.unpack,K5=Io,ZM=fu,QM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=YM(k,"rgb"),c1=Q[0],_1=Q[1],T1=Q[2],y1=K5(c1,_1,T1),R1=y1[0],F1=y1[1],J1=y1[2];return ZM(R1,F1,J1)},XM=QM,JM=g.unpack,tH=g.DEG2RAD,eH=Math.sin,gu=Math.cos,aH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=JM(k,"lch"),c1=Q[0],_1=Q[1],T1=Q[2];return isNaN(T1)&&(T1=0),T1=T1*tH,[c1,gu(T1)*_1,eH(T1)*_1]},pu=aH,mu=g.unpack,nH=pu,rH=uu,zu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=mu(k,"lch");var Q=k[0],c1=k[1],_1=k[2],T1=nH(Q,c1,_1),y1=T1[0],R1=T1[1],F1=T1[2],J1=rH(y1,R1,F1),st=J1[0],kt=J1[1],ft=J1[2];return[st,kt,ft,k.length>3?k[3]:1]},Mu=zu,iH=g.unpack,Hu=Mu,oH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=iH(k,"hcl").reverse();return Hu.apply(void 0,Q)},lH=oH,wu=g.unpack,cH=g.type,yu=C,Ei=y,u9=H,xu=XM;Ei.prototype.lch=function(){return xu(this._rgb)},Ei.prototype.hcl=function(){return xu(this._rgb).reverse()},yu.lch=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Ei,[null].concat(k,["lch"])))},yu.hcl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Ei,[null].concat(k,["hcl"])))},u9.format.lch=Mu,u9.format.hcl=lH,["lch","hcl"].forEach(function(k){return u9.autodetect.push({p:2,test:function(){for(var j=[],Q=arguments.length;Q--;)j[Q]=arguments[Q];if(j=wu(j,k),cH(j)==="array"&&j.length===3)return k}})});var sH={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Vu=sH,Cu=y,bu=H,hH=g.type,Y5=Vu,uH=mt,vH=j0;Cu.prototype.name=function(){for(var k=vH(this._rgb,"rgb"),j=0,Q=Object.keys(Y5);j0;)j[Q]=arguments[Q+1];if(!j.length&&hH(k)==="string"&&Y5[k.toLowerCase()])return"named"}});var Lu=g.unpack,dH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Lu(k,"rgb"),c1=Q[0],_1=Q[1],T1=Q[2];return(c1<<16)+(_1<<8)+T1},v9=dH,Bu=g.type,fH=function(k){if(Bu(k)=="number"&&k>=0&&k<=16777215){var j=k>>16,Q=k>>8&255,c1=k&255;return[j,Q,c1,1]}throw new Error("unknown num color: "+k)},_u=fH,Su=C,Tu=y,Ou=H,Au=g.type,gH=v9;Tu.prototype.num=function(){return gH(this._rgb)},Su.num=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Tu,[null].concat(k,["num"])))},Ou.format.num=_u,Ou.autodetect.push({p:5,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k.length===1&&Au(k[0])==="number"&&k[0]>=0&&k[0]<=16777215)return"num"}});var pH=C,Sl=y,ku=H,Eu=g.unpack,d9=g.type,Pu=Math.round;Sl.prototype.rgb=function(k){return k===void 0&&(k=!0),k===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Pu)},Sl.prototype.rgba=function(k){return k===void 0&&(k=!0),this._rgb.slice(0,4).map(function(j,Q){return Q<3?k===!1?j:Pu(j):j})},pH.rgb=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Sl,[null].concat(k,["rgb"])))},ku.format.rgb=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Eu(k,"rgba");return Q[3]===void 0&&(Q[3]=1),Q},ku.autodetect.push({p:3,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=Eu(k,"rgba"),d9(k)==="array"&&(k.length===3||k.length===4&&d9(k[3])=="number"&&k[3]>=0&&k[3]<=1))return"rgb"}});var Z5=Math.log,Nu=function(k){var j=k/100,Q,c1,_1;return j<66?(Q=255,c1=j<6?0:-155.25485562709179-.44596950469579133*(c1=j-2)+104.49216199393888*Z5(c1),_1=j<20?0:-254.76935184120902+.8274096064007395*(_1=j-10)+115.67994401066147*Z5(_1)):(Q=351.97690566805693+.114206453784165*(Q=j-55)-40.25366309332127*Z5(Q),c1=325.4494125711974+.07943456536662342*(c1=j-50)-28.0852963507957*Z5(c1),_1=255),[Q,c1,_1,1]},Fo=Nu,$o=Fo,Du=g.unpack,mH=Math.round,zH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];for(var Q=Du(k,"rgb"),c1=Q[0],_1=Q[2],T1=1e3,y1=4e4,R1=.4,F1;y1-T1>R1;){F1=(y1+T1)*.5;var J1=$o(F1);J1[2]/J1[0]>=_1/c1?y1=F1:T1=F1}return mH(F1)},Ru=zH,f9=C,Tl=y,Ol=H,Pi=Ru;Tl.prototype.temp=Tl.prototype.kelvin=Tl.prototype.temperature=function(){return Pi(this._rgb)},f9.temp=f9.kelvin=f9.temperature=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Tl,[null].concat(k,["temp"])))},Ol.format.temp=Ol.format.kelvin=Ol.format.temperature=Fo;var ju=g.unpack,Al=Math.cbrt,MH=Math.pow,HH=Math.sign,Iu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=ju(k,"rgb"),c1=Q[0],_1=Q[1],T1=Q[2],y1=[g9(c1/255),g9(_1/255),g9(T1/255)],R1=y1[0],F1=y1[1],J1=y1[2],st=Al(.4122214708*R1+.5363325363*F1+.0514459929*J1),kt=Al(.2119034982*R1+.6806995451*F1+.1073969566*J1),ft=Al(.0883024619*R1+.2817188376*F1+.6299787005*J1);return[.2104542553*st+.793617785*kt-.0040720468*ft,1.9779984951*st-2.428592205*kt+.4505937099*ft,.0259040371*st+.7827717662*kt-.808675766*ft]},Fu=Iu;function g9(k){var j=Math.abs(k);return j<.04045?k/12.92:(HH(k)||1)*MH((j+.055)/1.055,2.4)}var $u=g.unpack,Ni=Math.pow,kl=Math.sign,Uu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=$u(k,"lab");var Q=k[0],c1=k[1],_1=k[2],T1=Ni(Q+.3963377774*c1+.2158037573*_1,3),y1=Ni(Q-.1055613458*c1-.0638541728*_1,3),R1=Ni(Q-.0894841775*c1-1.291485548*_1,3);return[255*p9(4.0767416621*T1-3.3077115913*y1+.2309699292*R1),255*p9(-1.2684380046*T1+2.6097574011*y1-.3413193965*R1),255*p9(-.0041960863*T1-.7034186147*y1+1.707614701*R1),k.length>3?k[3]:1]},Wu=Uu;function p9(k){var j=Math.abs(k);return j>.0031308?(kl(k)||1)*(1.055*Ni(j,1/2.4)-.055):k*12.92}var qu=g.unpack,wH=g.type,yH=C,m9=y,Gu=H,Ku=Fu;m9.prototype.oklab=function(){return Ku(this._rgb)},yH.oklab=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(m9,[null].concat(k,["oklab"])))},Gu.format.oklab=Wu,Gu.autodetect.push({p:3,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=qu(k,"oklab"),wH(k)==="array"&&k.length===3)return"oklab"}});var Yu=g.unpack,xH=Fu,Zu=fu,Qu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Yu(k,"rgb"),c1=Q[0],_1=Q[1],T1=Q[2],y1=xH(c1,_1,T1),R1=y1[0],F1=y1[1],J1=y1[2];return Zu(R1,F1,J1)},VH=Qu,CH=g.unpack,Xu=pu,bH=Wu,LH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=CH(k,"lch");var Q=k[0],c1=k[1],_1=k[2],T1=Xu(Q,c1,_1),y1=T1[0],R1=T1[1],F1=T1[2],J1=bH(y1,R1,F1),st=J1[0],kt=J1[1],ft=J1[2];return[st,kt,ft,k.length>3?k[3]:1]},Ju=LH,BH=g.unpack,tv=g.type,ev=C,av=y,nv=H,rv=VH;av.prototype.oklch=function(){return rv(this._rgb)},ev.oklch=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(av,[null].concat(k,["oklch"])))},nv.format.oklch=Ju,nv.autodetect.push({p:3,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=BH(k,"oklch"),tv(k)==="array"&&k.length===3)return"oklch"}});var iv=y,_H=g.type;iv.prototype.alpha=function(k,j){return j===void 0&&(j=!1),k!==void 0&&_H(k)==="number"?j?(this._rgb[3]=k,this):new iv([this._rgb[0],this._rgb[1],this._rgb[2],k],"rgb"):this._rgb[3]};var ov=y;ov.prototype.clipped=function(){return this._rgb._clipped||!1};var Di=y,SH=$r;Di.prototype.darken=function(k){k===void 0&&(k=1);var j=this,Q=j.lab();return Q[0]-=SH.Kn*k,new Di(Q,"lab").alpha(j.alpha(),!0)},Di.prototype.brighten=function(k){return k===void 0&&(k=1),this.darken(-k)},Di.prototype.darker=Di.prototype.darken,Di.prototype.brighter=Di.prototype.brighten;var lv=y;lv.prototype.get=function(k){var j=k.split("."),Q=j[0],c1=j[1],_1=this[Q]();if(c1){var T1=Q.indexOf(c1)-(Q.substr(0,2)==="ok"?2:0);if(T1>-1)return _1[T1];throw new Error("unknown channel "+c1+" in mode "+Q)}else return _1};var Q5=y,TH=g.type,cv=Math.pow,OH=1e-7,AH=20;Q5.prototype.luminance=function(k){if(k!==void 0&&TH(k)==="number"){if(k===0)return new Q5([0,0,0,this._rgb[3]],"rgb");if(k===1)return new Q5([255,255,255,this._rgb[3]],"rgb");var j=this.luminance(),Q="rgb",c1=AH,_1=function(y1,R1){var F1=y1.interpolate(R1,.5,Q),J1=F1.luminance();return Math.abs(k-J1)k?_1(y1,F1):_1(F1,R1)},T1=(j>k?_1(new Q5([0,0,0]),this):_1(this,new Q5([255,255,255]))).rgb();return new Q5(T1.concat([this._rgb[3]]))}return n2.apply(void 0,this._rgb.slice(0,3))};var n2=function(k,j,Q){return k=El(k),j=El(j),Q=El(Q),.2126*k+.7152*j+.0722*Q},El=function(k){return k/=255,k<=.03928?k/12.92:cv((k+.055)/1.055,2.4)},j4={},sv=y,hv=g.type,Pl=j4,uv=function(k,j,Q){Q===void 0&&(Q=.5);for(var c1=[],_1=arguments.length-3;_1-- >0;)c1[_1]=arguments[_1+3];var T1=c1[0]||"lrgb";if(!Pl[T1]&&!c1.length&&(T1=Object.keys(Pl)[0]),!Pl[T1])throw new Error("interpolation mode "+T1+" is not defined");return hv(k)!=="object"&&(k=new sv(k)),hv(j)!=="object"&&(j=new sv(j)),Pl[T1](k,j,Q).alpha(k.alpha()+Q*(j.alpha()-k.alpha()))},vv=y,kH=uv;vv.prototype.mix=vv.prototype.interpolate=function(k,j){j===void 0&&(j=.5);for(var Q=[],c1=arguments.length-2;c1-- >0;)Q[c1]=arguments[c1+2];return kH.apply(void 0,[this,k,j].concat(Q))};var dv=y;dv.prototype.premultiply=function(k){k===void 0&&(k=!1);var j=this._rgb,Q=j[3];return k?(this._rgb=[j[0]*Q,j[1]*Q,j[2]*Q,Q],this):new dv([j[0]*Q,j[1]*Q,j[2]*Q,Q],"rgb")};var z9=y,EH=$r;z9.prototype.saturate=function(k){k===void 0&&(k=1);var j=this,Q=j.lch();return Q[1]+=EH.Kn*k,Q[1]<0&&(Q[1]=0),new z9(Q,"lch").alpha(j.alpha(),!0)},z9.prototype.desaturate=function(k){return k===void 0&&(k=1),this.saturate(-k)};var fv=y,gv=g.type;fv.prototype.set=function(k,j,Q){Q===void 0&&(Q=!1);var c1=k.split("."),_1=c1[0],T1=c1[1],y1=this[_1]();if(T1){var R1=_1.indexOf(T1)-(_1.substr(0,2)==="ok"?2:0);if(R1>-1){if(gv(j)=="string")switch(j.charAt(0)){case"+":y1[R1]+=+j;break;case"-":y1[R1]+=+j;break;case"*":y1[R1]*=+j.substr(1);break;case"/":y1[R1]/=+j.substr(1);break;default:y1[R1]=+j}else if(gv(j)==="number")y1[R1]=j;else throw new Error("unsupported value for Color.set");var F1=new fv(y1,_1);return Q?(this._rgb=F1._rgb,this):F1}throw new Error("unknown channel "+T1+" in mode "+_1)}else return y1};var PH=y,NH=function(k,j,Q){var c1=k._rgb,_1=j._rgb;return new PH(c1[0]+Q*(_1[0]-c1[0]),c1[1]+Q*(_1[1]-c1[1]),c1[2]+Q*(_1[2]-c1[2]),"rgb")};j4.rgb=NH;var DH=y,M9=Math.sqrt,X5=Math.pow,RH=function(k,j,Q){var c1=k._rgb,_1=c1[0],T1=c1[1],y1=c1[2],R1=j._rgb,F1=R1[0],J1=R1[1],st=R1[2];return new DH(M9(X5(_1,2)*(1-Q)+X5(F1,2)*Q),M9(X5(T1,2)*(1-Q)+X5(J1,2)*Q),M9(X5(y1,2)*(1-Q)+X5(st,2)*Q),"rgb")};j4.lrgb=RH;var jH=y,pv=function(k,j,Q){var c1=k.lab(),_1=j.lab();return new jH(c1[0]+Q*(_1[0]-c1[0]),c1[1]+Q*(_1[1]-c1[1]),c1[2]+Q*(_1[2]-c1[2]),"lab")};j4.lab=pv;var mv=y,J5=function(k,j,Q,c1){var _1,T1,y1,R1;c1==="hsl"?(y1=k.hsl(),R1=j.hsl()):c1==="hsv"?(y1=k.hsv(),R1=j.hsv()):c1==="hcg"?(y1=k.hcg(),R1=j.hcg()):c1==="hsi"?(y1=k.hsi(),R1=j.hsi()):c1==="lch"||c1==="hcl"?(c1="hcl",y1=k.hcl(),R1=j.hcl()):c1==="oklch"&&(y1=k.oklch().reverse(),R1=j.oklch().reverse());var F1,J1,st,kt,ft,Wt;(c1.substr(0,1)==="h"||c1==="oklch")&&(_1=y1,F1=_1[0],st=_1[1],ft=_1[2],T1=R1,J1=T1[0],kt=T1[1],Wt=T1[2]);var Ft,T2,D2,Z2;return!isNaN(F1)&&!isNaN(J1)?(J1>F1&&J1-F1>180?Z2=J1-(F1+360):J1180?Z2=J1+360-F1:Z2=J1-F1,T2=F1+Q*Z2):isNaN(F1)?isNaN(J1)?T2=Number.NaN:(T2=J1,(ft==1||ft==0)&&c1!="hsv"&&(Ft=kt)):(T2=F1,(Wt==1||Wt==0)&&c1!="hsv"&&(Ft=st)),Ft===void 0&&(Ft=st+Q*(kt-st)),D2=ft+Q*(Wt-ft),c1==="oklch"?new mv([D2,Ft,T2],c1):new mv([T2,Ft,D2],c1)},IH=J5,zv=function(k,j,Q){return IH(k,j,Q,"lch")};j4.lch=zv,j4.hcl=zv;var FH=y,$H=function(k,j,Q){var c1=k.num(),_1=j.num();return new FH(c1+Q*(_1-c1),"num")};j4.num=$H;var UH=J5,WH=function(k,j,Q){return UH(k,j,Q,"hcg")};j4.hcg=WH;var qH=J5,GH=function(k,j,Q){return qH(k,j,Q,"hsi")};j4.hsi=GH;var KH=J5,YH=function(k,j,Q){return KH(k,j,Q,"hsl")};j4.hsl=YH;var ZH=J5,QH=function(k,j,Q){return ZH(k,j,Q,"hsv")};j4.hsv=QH;var XH=y,JH=function(k,j,Q){var c1=k.oklab(),_1=j.oklab();return new XH(c1[0]+Q*(_1[0]-c1[0]),c1[1]+Q*(_1[1]-c1[1]),c1[2]+Q*(_1[2]-c1[2]),"oklab")};j4.oklab=JH;var tw=J5,ew=function(k,j,Q){return tw(k,j,Q,"oklch")};j4.oklch=ew;var H9=y,aw=g.clip_rgb,w9=Math.pow,Uo=Math.sqrt,y9=Math.PI,Mv=Math.cos,Wr=Math.sin,nw=Math.atan2,rw=function(k,j,Q){j===void 0&&(j="lrgb"),Q===void 0&&(Q=null);var c1=k.length;Q||(Q=Array.from(new Array(c1)).map(function(){return 1}));var _1=c1/Q.reduce(function(T2,D2){return T2+D2});if(Q.forEach(function(T2,D2){Q[D2]*=_1}),k=k.map(function(T2){return new H9(T2)}),j==="lrgb")return iw(k,Q);for(var T1=k.shift(),y1=T1.get(j),R1=[],F1=0,J1=0,st=0;st=360;)Ft-=360;y1[Wt]=Ft}else y1[Wt]=y1[Wt]/R1[Wt];return ft/=c1,new H9(y1,j).alpha(ft>.99999?1:ft,!0)},iw=function(k,j){for(var Q=k.length,c1=[0,0,0,0],_1=0;_1.9999999&&(c1[3]=1),new H9(aw(c1))},Ga=C,t3=g.type,k1=Math.pow,E1=function(k){var j="rgb",Q=Ga("#ccc"),c1=0,_1=[0,1],T1=[],y1=[0,0],R1=!1,F1=[],J1=!1,st=0,kt=1,ft=!1,Wt={},Ft=!0,T2=1,D2=function(gt){if(gt=gt||["#fff","#000"],gt&&t3(gt)==="string"&&Ga.brewer&&Ga.brewer[gt.toLowerCase()]&&(gt=Ga.brewer[gt.toLowerCase()]),t3(gt)==="array"){gt.length===1&&(gt=[gt[0],gt[0]]),gt=gt.slice(0);for(var l2=0;l2=R1[k2];)k2++;return k2-1}return 0},l0=function(gt){return gt},C4=function(gt){return gt},d4=function(gt,l2){var k2,O2;if(l2==null&&(l2=!1),isNaN(gt)||gt===null)return Q;if(l2)O2=gt;else if(R1&&R1.length>2){var b4=Z2(gt);O2=b4/(R1.length-2)}else kt!==st?O2=(gt-st)/(kt-st):O2=1;O2=C4(O2),l2||(O2=l0(O2)),T2!==1&&(O2=k1(O2,T2)),O2=y1[0]+O2*(1-y1[0]-y1[1]),O2=Math.min(1,Math.max(0,O2));var I0=Math.floor(O2*1e4);if(Ft&&Wt[I0])k2=Wt[I0];else{if(t3(F1)==="array")for(var Q2=0;Q2=h0&&Q2===T1.length-1){k2=F1[Q2];break}if(O2>h0&&O22){var Q2=gt.map(function(u0,m0){return m0/(gt.length-1)}),h0=gt.map(function(u0){return(u0-st)/(kt-st)});h0.every(function(u0,m0){return Q2[m0]===u0})||(C4=function(u0){if(u0<=0||u0>=1)return u0;for(var m0=0;u0>=h0[m0+1];)m0++;var cr=(u0-h0[m0])/(h0[m0+1]-h0[m0]),n3=Q2[m0]+cr*(Q2[m0+1]-Q2[m0]);return n3})}}return _1=[st,kt],K2},K2.mode=function(gt){return arguments.length?(j=gt,Va(),K2):j},K2.range=function(gt,l2){return D2(gt),K2},K2.out=function(gt){return J1=gt,K2},K2.spread=function(gt){return arguments.length?(c1=gt,K2):c1},K2.correctLightness=function(gt){return gt==null&&(gt=!0),ft=gt,Va(),ft?l0=function(l2){for(var k2=d4(0,!0).lab()[0],O2=d4(1,!0).lab()[0],b4=k2>O2,I0=d4(l2,!0).lab()[0],Q2=k2+(O2-k2)*l2,h0=I0-Q2,u0=0,m0=1,cr=20;Math.abs(h0)>.01&&cr-- >0;)(function(){return b4&&(h0*=-1),h0<0?(u0=l2,l2+=(m0-l2)*.5):(m0=l2,l2+=(u0-l2)*.5),I0=d4(l2,!0).lab()[0],h0=I0-Q2})();return l2}:l0=function(l2){return l2},K2},K2.padding=function(gt){return gt!=null?(t3(gt)==="number"&&(gt=[gt,gt]),y1=gt,K2):y1},K2.colors=function(gt,l2){arguments.length<2&&(l2="hex");var k2=[];if(arguments.length===0)k2=F1.slice(0);else if(gt===1)k2=[K2(.5)];else if(gt>1){var O2=_1[0],b4=_1[1]-O2;k2=ct(0,gt,!1).map(function(m0){return K2(O2+m0/(gt-1)*b4)})}else{k=[];var I0=[];if(R1&&R1.length>2)for(var Q2=1,h0=R1.length,u0=1<=h0;u0?Q2h0;u0?Q2++:Q2--)I0.push((R1[Q2-1]+R1[Q2])*.5);else I0=_1;k2=I0.map(function(m0){return K2(m0)})}return Ga[l2]&&(k2=k2.map(function(m0){return m0[l2]()})),k2},K2.cache=function(gt){return gt!=null?(Ft=gt,K2):Ft},K2.gamma=function(gt){return gt!=null?(T2=gt,K2):T2},K2.nodata=function(gt){return gt!=null?(Q=Ga(gt),K2):Q},K2};function ct(k,j,Q){for(var c1=[],_1=kT1;_1?y1++:y1--)c1.push(y1);return c1}var It=y,A2=E1,je=function(k){for(var j=[1,1],Q=1;Q=5){var J1,st,kt;J1=k.map(function(ft){return ft.lab()}),kt=k.length-1,st=je(kt),_1=function(ft){var Wt=1-ft,Ft=[0,1,2].map(function(T2){return J1.reduce(function(D2,Z2,l0){return D2+st[l0]*Math.pow(Wt,kt-l0)*Math.pow(ft,l0)*Z2[T2]},0)});return new It(Ft,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return _1},Wo=function(k){var j=e3(k);return j.scale=function(){return A2(j)},j},qo=C,na=function(k,j,Q){if(!na[Q])throw new Error("unknown blend mode "+Q);return na[Q](k,j)},zn=function(k){return function(j,Q){var c1=qo(Q).rgb(),_1=qo(j).rgb();return qo.rgb(k(c1,_1))}},Mn=function(k){return function(j,Q){var c1=[];return c1[0]=k(j[0],Q[0]),c1[1]=k(j[1],Q[1]),c1[2]=k(j[2],Q[2]),c1}},x9=function(k){return k},V9=function(k,j){return k*j/255},C9=function(k,j){return k>j?j:k},Nl=function(k,j){return k>j?k:j},a3=function(k,j){return 255*(1-(1-k/255)*(1-j/255))},Ri=function(k,j){return j<128?2*k*j/255:255*(1-2*(1-k/255)*(1-j/255))},ow=function(k,j){return 255*(1-(1-j/255)/(k/255))},ji=function(k,j){return k===255?255:(k=255*(j/255)/(1-k/255),k>255?255:k)};na.normal=zn(Mn(x9)),na.multiply=zn(Mn(V9)),na.screen=zn(Mn(a3)),na.overlay=zn(Mn(Ri)),na.darken=zn(Mn(C9)),na.lighten=zn(Mn(Nl)),na.dodge=zn(Mn(ji)),na.burn=zn(Mn(ow));for(var b9=na,Go=g.type,he1=g.clip_rgb,ue1=g.TWOPI,ve1=Math.pow,de1=Math.sin,fe1=Math.cos,DO=C,ge1=function(k,j,Q,c1,_1){k===void 0&&(k=300),j===void 0&&(j=-1.5),Q===void 0&&(Q=1),c1===void 0&&(c1=1),_1===void 0&&(_1=[0,1]);var T1=0,y1;Go(_1)==="array"?y1=_1[1]-_1[0]:(y1=0,_1=[_1,_1]);var R1=function(F1){var J1=ue1*((k+120)/360+j*F1),st=ve1(_1[0]+y1*F1,c1),kt=T1!==0?Q[0]+F1*T1:Q,ft=kt*st*(1-st)/2,Wt=fe1(J1),Ft=de1(J1),T2=st+ft*(-.14861*Wt+1.78277*Ft),D2=st+ft*(-.29227*Wt-.90649*Ft),Z2=st+ft*(1.97294*Wt);return DO(he1([T2*255,D2*255,Z2*255,1]))};return R1.start=function(F1){return F1==null?k:(k=F1,R1)},R1.rotations=function(F1){return F1==null?j:(j=F1,R1)},R1.gamma=function(F1){return F1==null?c1:(c1=F1,R1)},R1.hue=function(F1){return F1==null?Q:(Q=F1,Go(Q)==="array"?(T1=Q[1]-Q[0],T1===0&&(Q=Q[1])):T1=0,R1)},R1.lightness=function(F1){return F1==null?_1:(Go(F1)==="array"?(_1=F1,y1=F1[1]-F1[0]):(_1=[F1,F1],y1=0),R1)},R1.scale=function(){return DO.scale(R1)},R1.hue(Q),R1},pe1=y,me1="0123456789abcdef",ze1=Math.floor,Me1=Math.random,He1=function(){for(var k="#",j=0;j<6;j++)k+=me1.charAt(ze1(Me1()*16));return new pe1(k,"hex")},lw=s,RO=Math.log,we1=Math.pow,ye1=Math.floor,xe1=Math.abs,jO=function(k,j){j===void 0&&(j=null);var Q={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return lw(k)==="object"&&(k=Object.values(k)),k.forEach(function(c1){j&&lw(c1)==="object"&&(c1=c1[j]),c1!=null&&!isNaN(c1)&&(Q.values.push(c1),Q.sum+=c1,c1Q.max&&(Q.max=c1),Q.count+=1)}),Q.domain=[Q.min,Q.max],Q.limits=function(c1,_1){return IO(Q,c1,_1)},Q},IO=function(k,j,Q){j===void 0&&(j="equal"),Q===void 0&&(Q=7),lw(k)=="array"&&(k=jO(k));var c1=k.min,_1=k.max,T1=k.values.sort(function(sw,hw){return sw-hw});if(Q===1)return[c1,_1];var y1=[];if(j.substr(0,1)==="c"&&(y1.push(c1),y1.push(_1)),j.substr(0,1)==="e"){y1.push(c1);for(var R1=1;R1 0");var F1=Math.LOG10E*RO(c1),J1=Math.LOG10E*RO(_1);y1.push(c1);for(var st=1;st200&&(C4=!1)}for(var r3={},Dl=0;Dlc1?(Q+.05)/(c1+.05):(c1+.05)/(Q+.05)},UO=y,Ii=Math.sqrt,Ie=Math.pow,Ce1=Math.min,be1=Math.max,WO=Math.atan2,qO=Math.abs,Hv=Math.cos,GO=Math.sin,Le1=Math.exp,KO=Math.PI,Be1=function(k,j,Q,c1,_1){Q===void 0&&(Q=1),c1===void 0&&(c1=1),_1===void 0&&(_1=1);var T1=function(Yo){return 360*Yo/(2*KO)},y1=function(Yo){return 2*KO*Yo/360};k=new UO(k),j=new UO(j);var R1=Array.from(k.lab()),F1=R1[0],J1=R1[1],st=R1[2],kt=Array.from(j.lab()),ft=kt[0],Wt=kt[1],Ft=kt[2],T2=(F1+ft)/2,D2=Ii(Ie(J1,2)+Ie(st,2)),Z2=Ii(Ie(Wt,2)+Ie(Ft,2)),l0=(D2+Z2)/2,C4=.5*(1-Ii(Ie(l0,7)/(Ie(l0,7)+Ie(25,7)))),d4=J1*(1+C4),Va=Wt*(1+C4),K2=Ii(Ie(d4,2)+Ie(st,2)),gt=Ii(Ie(Va,2)+Ie(Ft,2)),l2=(K2+gt)/2,k2=T1(WO(st,d4)),O2=T1(WO(Ft,Va)),b4=k2>=0?k2:k2+360,I0=O2>=0?O2:O2+360,Q2=qO(b4-I0)>180?(b4+I0+360)/2:(b4+I0)/2,h0=1-.17*Hv(y1(Q2-30))+.24*Hv(y1(2*Q2))+.32*Hv(y1(3*Q2+6))-.2*Hv(y1(4*Q2-63)),u0=I0-b4;u0=qO(u0)<=180?u0:I0<=b4?u0+360:u0-360,u0=2*Ii(K2*gt)*GO(y1(u0)/2);var m0=ft-F1,cr=gt-K2,n3=1+.015*Ie(T2-50,2)/Ii(20+Ie(T2-50,2)),r3=1+.045*l2,Dl=1+.015*l2*h0,Rl=30*Le1(-Ie((Q2-275)/25,2)),Fi=2*Ii(Ie(l2,7)/(Ie(l2,7)+Ie(25,7))),Ko=-Fi*GO(2*y1(Rl)),L9=Ii(Ie(m0/(Q*n3),2)+Ie(cr/(c1*r3),2)+Ie(u0/(_1*Dl),2)+Ko*(cr/(c1*r3))*(u0/(_1*Dl)));return be1(0,Ce1(100,L9))},YO=y,_e1=function(k,j,Q){Q===void 0&&(Q="lab"),k=new YO(k),j=new YO(j);var c1=k.get(Q),_1=j.get(Q),T1=0;for(var y1 in c1){var R1=(c1[y1]||0)-(_1[y1]||0);T1+=R1*R1}return Math.sqrt(T1)},Se1=y,Te1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];try{return new(Function.prototype.bind.apply(Se1,[null].concat(k))),!0}catch{return!1}},ZO=C,QO=E1,Oe1={cool:function(){return QO([ZO.hsl(180,1,.9),ZO.hsl(250,.7,.4)])},hot:function(){return QO(["#000","#f00","#ff0","#fff"]).mode("rgb")}},wv={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},cw=0,XO=Object.keys(wv);cw=e?"100%":"".concat(Math.round(t/e*100),"%")};Pt.calcPercentage=y71;var x71=function(t,e){e||(e=100);for(var a=[],n=t.length,r=[],o=t.length,l=0,c=0,h=0,s,u,v;o--;)c+=a[o]=Math.round(t[o]);for(h=cv&&(l=s);a[l]+=h,c+=h}for(var f=0;f"u"?r&&c?h=r:o&&!c&&(h=o):r?h=c?r:o??l:o?h=n==="light"?o:l:h=l,h}Pt.getStylesBasedOnTheme=V71;var Qv=Date.now(),$y=[],C71=function(t,e){e===void 0&&(e=!1);var a="".concat(Qv,"--").concat(t);return $y.filter(function(n){return n===a}).length>(e?1:0)?(Qv=Date.now(),$y.push("".concat(Qv,"--").concat(t)),"".concat(Qv,"--").concat(t)):($y.push(a),a)};Pt.getUniqueId=C71;Pt.DATE_FORMAT="YYYY-MM-DD";Pt.DATETIME_FORMAT="yyyy-MM-dd HH:mm";Pt.DAY_FORMAT="yyyy-MM-dd";var hP;(function(t){var e=b&&b.__makeTemplateObject||function(m,z){return Object.defineProperty?Object.defineProperty(m,"raw",{value:z}):m.raw=z,m},a=b&&b.__assign||function(){return a=Object.assign||function(m){for(var z,w=1,x=arguments.length;w"u"?r&&c?h=r:o&&!c&&(h=o):r?h=c?r:o??l:o?h=n==="light"?o:l:h=l,h}var C71=Pt.getStylesBasedOnTheme=V71,Qv=Date.now(),$y=[],b71=function(t,e){e===void 0&&(e=!1);var a="".concat(Qv,"--").concat(t);return $y.filter(function(n){return n===a}).length>(e?1:0)?(Qv=Date.now(),$y.push("".concat(Qv,"--").concat(t)),"".concat(Qv,"--").concat(t)):($y.push(a),a)};Pt.getUniqueId=b71;Pt.DATE_FORMAT="YYYY-MM-DD";Pt.DATETIME_FORMAT="yyyy-MM-dd HH:mm";Pt.DAY_FORMAT="yyyy-MM-dd";var hP;(function(t){var e=b&&b.__makeTemplateObject||function(m,z){return Object.defineProperty?Object.defineProperty(m,"raw",{value:z}):m.raw=z,m},a=b&&b.__assign||function(){return a=Object.assign||function(m){for(var z,w=1,x=arguments.length;w1?"s":"")+" required, but only "+e.length+" present")}function tY(t){return g1(1,arguments),t instanceof Date||C2(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function A1(t){g1(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||C2(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function y5(t){if(g1(1,arguments),!tY(t)&&typeof t!="number")return!1;var e=A1(t);return!isNaN(Number(e))}function Lt(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Th(t,e){g1(2,arguments);var a=A1(t).getTime(),n=Lt(e);return new Date(a+n)}function vc(t,e){g1(2,arguments);var a=Lt(e);return Th(t,-a)}var U71=864e5;function W71(t){g1(1,arguments);var e=A1(t),a=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime(),r=a-n;return Math.floor(r/U71)+1}function dc(t){g1(1,arguments);var e=1,a=A1(t),n=a.getUTCDay(),r=(n=r.getTime()?a+1:e.getTime()>=l.getTime()?a:a-1}function q71(t){g1(1,arguments);var e=eY(t),a=new Date(0);a.setUTCFullYear(e,0,4),a.setUTCHours(0,0,0,0);var n=dc(a);return n}var G71=6048e5;function aY(t){g1(1,arguments);var e=A1(t),a=dc(e).getTime()-q71(e).getTime();return Math.round(a/G71)+1}var nY={};function Ze(){return nY}function K71(t){nY=t}function x5(t,e){var a,n,r,o,l,c,h,s;g1(1,arguments);var u=Ze(),v=Lt((a=(n=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&n!==void 0?n:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=A1(t),d=f.getUTCDay(),M=(d=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=new Date(0);M.setUTCFullYear(v+1,0,d),M.setUTCHours(0,0,0,0);var g=x5(M,e),H=new Date(0);H.setUTCFullYear(v,0,d),H.setUTCHours(0,0,0,0);var p=x5(H,e);return u.getTime()>=g.getTime()?v+1:u.getTime()>=p.getTime()?v:v-1}function Y71(t,e){var a,n,r,o,l,c,h,s;g1(1,arguments);var u=Ze(),v=Lt((a=(n=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:u.firstWeekContainsDate)!==null&&n!==void 0?n:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:1),f=rS(t,e),d=new Date(0);d.setUTCFullYear(f,0,v),d.setUTCHours(0,0,0,0);var M=x5(d,e);return M}var Z71=6048e5;function rY(t,e){g1(1,arguments);var a=A1(t),n=x5(a,e).getTime()-Y71(a,e).getTime();return Math.round(n/Z71)+1}function e2(t,e){for(var a=t<0?"-":"",n=Math.abs(t).toString();n.length0?n:1-n;return e2(a==="yy"?r%100:r,a.length)},M:function(e,a){var n=e.getUTCMonth();return a==="M"?String(n+1):e2(n+1,2)},d:function(e,a){return e2(e.getUTCDate(),a.length)},a:function(e,a){var n=e.getUTCHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,a){return e2(e.getUTCHours()%12||12,a.length)},H:function(e,a){return e2(e.getUTCHours(),a.length)},m:function(e,a){return e2(e.getUTCMinutes(),a.length)},s:function(e,a){return e2(e.getUTCSeconds(),a.length)},S:function(e,a){var n=a.length,r=e.getUTCMilliseconds(),o=Math.floor(r*Math.pow(10,n-3));return e2(o,a.length)}};const t5=Q71;var Wl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},X71={G:function(e,a,n){var r=e.getUTCFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,a,n){if(a==="yo"){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return t5.y(e,a)},Y:function(e,a,n,r){var o=rS(e,r),l=o>0?o:1-o;if(a==="YY"){var c=l%100;return e2(c,2)}return a==="Yo"?n.ordinalNumber(l,{unit:"year"}):e2(l,a.length)},R:function(e,a){var n=eY(e);return e2(n,a.length)},u:function(e,a){var n=e.getUTCFullYear();return e2(n,a.length)},Q:function(e,a,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(a){case"Q":return String(r);case"QQ":return e2(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,a,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(a){case"q":return String(r);case"qq":return e2(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,a,n){var r=e.getUTCMonth();switch(a){case"M":case"MM":return t5.M(e,a);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,a,n){var r=e.getUTCMonth();switch(a){case"L":return String(r+1);case"LL":return e2(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,a,n,r){var o=rY(e,r);return a==="wo"?n.ordinalNumber(o,{unit:"week"}):e2(o,a.length)},I:function(e,a,n){var r=aY(e);return a==="Io"?n.ordinalNumber(r,{unit:"week"}):e2(r,a.length)},d:function(e,a,n){return a==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):t5.d(e,a)},D:function(e,a,n){var r=W71(e);return a==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):e2(r,a.length)},E:function(e,a,n){var r=e.getUTCDay();switch(a){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,a,n,r){var o=e.getUTCDay(),l=(o-r.weekStartsOn+8)%7||7;switch(a){case"e":return String(l);case"ee":return e2(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,a,n,r){var o=e.getUTCDay(),l=(o-r.weekStartsOn+8)%7||7;switch(a){case"c":return String(l);case"cc":return e2(l,a.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,a,n){var r=e.getUTCDay(),o=r===0?7:r;switch(a){case"i":return String(o);case"ii":return e2(o,a.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,a,n){var r=e.getUTCHours(),o=r/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,a,n){var r=e.getUTCHours(),o;switch(r===12?o=Wl.noon:r===0?o=Wl.midnight:o=r/12>=1?"pm":"am",a){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,a,n){var r=e.getUTCHours(),o;switch(r>=17?o=Wl.evening:r>=12?o=Wl.afternoon:r>=4?o=Wl.morning:o=Wl.night,a){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,a,n){if(a==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return t5.h(e,a)},H:function(e,a,n){return a==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):t5.H(e,a)},K:function(e,a,n){var r=e.getUTCHours()%12;return a==="Ko"?n.ordinalNumber(r,{unit:"hour"}):e2(r,a.length)},k:function(e,a,n){var r=e.getUTCHours();return r===0&&(r=24),a==="ko"?n.ordinalNumber(r,{unit:"hour"}):e2(r,a.length)},m:function(e,a,n){return a==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):t5.m(e,a)},s:function(e,a,n){return a==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):t5.s(e,a)},S:function(e,a){return t5.S(e,a)},X:function(e,a,n,r){var o=r._originalDate||e,l=o.getTimezoneOffset();if(l===0)return"Z";switch(a){case"X":return vP(l);case"XXXX":case"XX":return s8(l);case"XXXXX":case"XXX":default:return s8(l,":")}},x:function(e,a,n,r){var o=r._originalDate||e,l=o.getTimezoneOffset();switch(a){case"x":return vP(l);case"xxxx":case"xx":return s8(l);case"xxxxx":case"xxx":default:return s8(l,":")}},O:function(e,a,n,r){var o=r._originalDate||e,l=o.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+uP(l,":");case"OOOO":default:return"GMT"+s8(l,":")}},z:function(e,a,n,r){var o=r._originalDate||e,l=o.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+uP(l,":");case"zzzz":default:return"GMT"+s8(l,":")}},t:function(e,a,n,r){var o=r._originalDate||e,l=Math.floor(o.getTime()/1e3);return e2(l,a.length)},T:function(e,a,n,r){var o=r._originalDate||e,l=o.getTime();return e2(l,a.length)}};function uP(t,e){var a=t>0?"-":"+",n=Math.abs(t),r=Math.floor(n/60),o=n%60;if(o===0)return a+String(r);var l=e||"";return a+String(r)+l+e2(o,2)}function vP(t,e){if(t%60===0){var a=t>0?"-":"+";return a+e2(Math.abs(t)/60,2)}return s8(t,e)}function s8(t,e){var a=e||"",n=t>0?"-":"+",r=Math.abs(t),o=e2(Math.floor(r/60),2),l=e2(r%60,2);return n+o+a+l}var dP=function(e,a){switch(e){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},iY=function(e,a){switch(e){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},J71=function(e,a){var n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return dP(e,a);var l;switch(r){case"P":l=a.dateTime({width:"short"});break;case"PP":l=a.dateTime({width:"medium"});break;case"PPP":l=a.dateTime({width:"long"});break;case"PPPP":default:l=a.dateTime({width:"full"});break}return l.replace("{{date}}",dP(r,a)).replace("{{time}}",iY(o,a))},Hb={p:iY,P:J71};function za(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var ts1=["D","DD"],es1=["YY","YYYY"];function oY(t){return ts1.indexOf(t)!==-1}function lY(t){return es1.indexOf(t)!==-1}function Sg(t,e,a){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var as1={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ns1=function(e,a,n){var r,o=as1[e];return typeof o=="string"?r=o:a===1?r=o.one:r=o.other.replace("{{count}}",a.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const cY=ns1;function v5(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=e.width?String(e.width):t.defaultWidth,n=t.formats[a]||t.formats[t.defaultWidth];return n}}var rs1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},is1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},os1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ls1={date:v5({formats:rs1,defaultWidth:"full"}),time:v5({formats:is1,defaultWidth:"full"}),dateTime:v5({formats:os1,defaultWidth:"full"})};const cs1=ls1;var ss1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hs1=function(e,a,n,r){return ss1[e]};const sY=hs1;function ri(t){return function(e,a){var n=a!=null&&a.context?String(a.context):"standalone",r;if(n==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,l=a!=null&&a.width?String(a.width):o;r=t.formattingValues[l]||t.formattingValues[o]}else{var c=t.defaultWidth,h=a!=null&&a.width?String(a.width):t.defaultWidth;r=t.values[h]||t.values[c]}var s=t.argumentCallback?t.argumentCallback(e):e;return r[s]}}var us1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vs1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ds1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},fs1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},gs1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ps1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ms1=function(e,a){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},zs1={ordinalNumber:ms1,era:ri({values:us1,defaultWidth:"wide"}),quarter:ri({values:vs1,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ri({values:ds1,defaultWidth:"wide"}),day:ri({values:fs1,defaultWidth:"wide"}),dayPeriod:ri({values:gs1,defaultWidth:"wide",formattingValues:ps1,defaultFormattingWidth:"wide"})};const hY=zs1;function ii(t){return function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.width,r=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],o=e.match(r);if(!o)return null;var l=o[0],c=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],h=Array.isArray(c)?Hs1(c,function(v){return v.test(l)}):Ms1(c,function(v){return v.test(l)}),s;s=t.valueCallback?t.valueCallback(h):h,s=a.valueCallback?a.valueCallback(s):s;var u=e.slice(l.length);return{value:s,rest:u}}}function Ms1(t,e){for(var a in t)if(t.hasOwnProperty(a)&&e(t[a]))return a}function Hs1(t,e){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=e.match(t.matchPattern);if(!n)return null;var r=n[0],o=e.match(t.parsePattern);if(!o)return null;var l=t.valueCallback?t.valueCallback(o[0]):o[0];l=a.valueCallback?a.valueCallback(l):l;var c=e.slice(r.length);return{value:l,rest:c}}}var ws1=/^(\d+)(th|st|nd|rd)?/i,ys1=/\d+/i,xs1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Vs1={any:[/^b/i,/^(a|c)/i]},Cs1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bs1={any:[/1/i,/2/i,/3/i,/4/i]},Ls1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Bs1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_s1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ss1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ts1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Os1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},As1={ordinalNumber:uY({matchPattern:ws1,parsePattern:ys1,valueCallback:function(e){return parseInt(e,10)}}),era:ii({matchPatterns:xs1,defaultMatchWidth:"wide",parsePatterns:Vs1,defaultParseWidth:"any"}),quarter:ii({matchPatterns:Cs1,defaultMatchWidth:"wide",parsePatterns:bs1,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ii({matchPatterns:Ls1,defaultMatchWidth:"wide",parsePatterns:Bs1,defaultParseWidth:"any"}),day:ii({matchPatterns:_s1,defaultMatchWidth:"wide",parsePatterns:Ss1,defaultParseWidth:"any"}),dayPeriod:ii({matchPatterns:Ts1,defaultMatchWidth:"any",parsePatterns:Os1,defaultParseWidth:"any"})};const vY=As1;var ks1={code:"en-US",formatDistance:cY,formatLong:cs1,formatRelative:sY,localize:hY,match:vY,options:{weekStartsOn:0,firstWeekContainsDate:1}};const $c=ks1;var Es1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ps1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ns1=/^'([^]*?)'?$/,Ds1=/''/g,Rs1=/[a-zA-Z]/;function fc(t,e,a){var n,r,o,l,c,h,s,u,v,f,d,M,g,H,p,m,z,w;g1(2,arguments);var x=String(e),y=Ze(),V=(n=(r=a==null?void 0:a.locale)!==null&&r!==void 0?r:y.locale)!==null&&n!==void 0?n:$c,C=Lt((o=(l=(c=(h=a==null?void 0:a.firstWeekContainsDate)!==null&&h!==void 0?h:a==null||(s=a.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&c!==void 0?c:y.firstWeekContainsDate)!==null&&l!==void 0?l:(v=y.locale)===null||v===void 0||(f=v.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=Lt((d=(M=(g=(H=a==null?void 0:a.weekStartsOn)!==null&&H!==void 0?H:a==null||(p=a.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&g!==void 0?g:y.weekStartsOn)!==null&&M!==void 0?M:(z=y.locale)===null||z===void 0||(w=z.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&d!==void 0?d:0);if(!(L>=0&&L<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!V.localize)throw new RangeError("locale must contain localize property");if(!V.formatLong)throw new RangeError("locale must contain formatLong property");var B=A1(t);if(!y5(B))throw new RangeError("Invalid time value");var S=za(B),T=vc(B,S),E={firstWeekContainsDate:C,weekStartsOn:L,locale:V,_originalDate:B},$=x.match(Ps1).map(function(U){var W=U[0];if(W==="p"||W==="P"){var Y=Hb[W];return Y(U,V.formatLong)}return U}).join("").match(Es1).map(function(U){if(U==="''")return"'";var W=U[0];if(W==="'")return js1(U);var Y=X71[W];if(Y)return!(a!=null&&a.useAdditionalWeekYearTokens)&&lY(U)&&Sg(U,e,String(t)),!(a!=null&&a.useAdditionalDayOfYearTokens)&&oY(U)&&Sg(U,e,String(t)),Y(T,U,V.localize,E);if(W.match(Rs1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return U}).join("");return $}function js1(t){var e=t.match(Ns1);return e?e[1].replace(Ds1,"'"):t}const Is1=Object.freeze(Object.defineProperty({__proto__:null,default:fc},Symbol.toStringTag,{value:"Module"})),Fs1=se(Is1);function gc(t){g1(1,arguments);var e=A1(t);return e.setHours(0,0,0,0),e}function Oh(t,e){g1(2,arguments);var a=gc(t),n=gc(e);return a.getTime()===n.getTime()}function dY(t){return g1(1,arguments),Oh(t,Date.now())}const $s1=Object.freeze(Object.defineProperty({__proto__:null,default:dY},Symbol.toStringTag,{value:"Module"})),Us1=se($s1);var fP;function iS(){return fP||(fP=1,function(t){var e=b&&b.__makeTemplateObject||function(p,m){return Object.defineProperty?Object.defineProperty(p,"raw",{value:m}):p.raw=m,p},a=b&&b.__assign||function(){return a=Object.assign||function(p){for(var m,z=1,w=arguments.length;z1?"s":"")+" required, but only "+e.length+" present")}function tY(t){return g1(1,arguments),t instanceof Date||C2(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function A1(t){g1(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||C2(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function y5(t){if(g1(1,arguments),!tY(t)&&typeof t!="number")return!1;var e=A1(t);return!isNaN(Number(e))}function Lt(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Th(t,e){g1(2,arguments);var a=A1(t).getTime(),n=Lt(e);return new Date(a+n)}function vc(t,e){g1(2,arguments);var a=Lt(e);return Th(t,-a)}var W71=864e5;function q71(t){g1(1,arguments);var e=A1(t),a=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime(),r=a-n;return Math.floor(r/W71)+1}function dc(t){g1(1,arguments);var e=1,a=A1(t),n=a.getUTCDay(),r=(n=r.getTime()?a+1:e.getTime()>=l.getTime()?a:a-1}function G71(t){g1(1,arguments);var e=eY(t),a=new Date(0);a.setUTCFullYear(e,0,4),a.setUTCHours(0,0,0,0);var n=dc(a);return n}var K71=6048e5;function aY(t){g1(1,arguments);var e=A1(t),a=dc(e).getTime()-G71(e).getTime();return Math.round(a/K71)+1}var nY={};function Ze(){return nY}function Y71(t){nY=t}function x5(t,e){var a,n,r,o,l,c,h,s;g1(1,arguments);var u=Ze(),v=Lt((a=(n=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&n!==void 0?n:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=A1(t),d=f.getUTCDay(),M=(d=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=new Date(0);M.setUTCFullYear(v+1,0,d),M.setUTCHours(0,0,0,0);var g=x5(M,e),H=new Date(0);H.setUTCFullYear(v,0,d),H.setUTCHours(0,0,0,0);var p=x5(H,e);return u.getTime()>=g.getTime()?v+1:u.getTime()>=p.getTime()?v:v-1}function Z71(t,e){var a,n,r,o,l,c,h,s;g1(1,arguments);var u=Ze(),v=Lt((a=(n=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:u.firstWeekContainsDate)!==null&&n!==void 0?n:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:1),f=rS(t,e),d=new Date(0);d.setUTCFullYear(f,0,v),d.setUTCHours(0,0,0,0);var M=x5(d,e);return M}var Q71=6048e5;function rY(t,e){g1(1,arguments);var a=A1(t),n=x5(a,e).getTime()-Z71(a,e).getTime();return Math.round(n/Q71)+1}function e2(t,e){for(var a=t<0?"-":"",n=Math.abs(t).toString();n.length0?n:1-n;return e2(a==="yy"?r%100:r,a.length)},M:function(e,a){var n=e.getUTCMonth();return a==="M"?String(n+1):e2(n+1,2)},d:function(e,a){return e2(e.getUTCDate(),a.length)},a:function(e,a){var n=e.getUTCHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,a){return e2(e.getUTCHours()%12||12,a.length)},H:function(e,a){return e2(e.getUTCHours(),a.length)},m:function(e,a){return e2(e.getUTCMinutes(),a.length)},s:function(e,a){return e2(e.getUTCSeconds(),a.length)},S:function(e,a){var n=a.length,r=e.getUTCMilliseconds(),o=Math.floor(r*Math.pow(10,n-3));return e2(o,a.length)}};const t5=X71;var Wl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},J71={G:function(e,a,n){var r=e.getUTCFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,a,n){if(a==="yo"){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return t5.y(e,a)},Y:function(e,a,n,r){var o=rS(e,r),l=o>0?o:1-o;if(a==="YY"){var c=l%100;return e2(c,2)}return a==="Yo"?n.ordinalNumber(l,{unit:"year"}):e2(l,a.length)},R:function(e,a){var n=eY(e);return e2(n,a.length)},u:function(e,a){var n=e.getUTCFullYear();return e2(n,a.length)},Q:function(e,a,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(a){case"Q":return String(r);case"QQ":return e2(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,a,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(a){case"q":return String(r);case"qq":return e2(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,a,n){var r=e.getUTCMonth();switch(a){case"M":case"MM":return t5.M(e,a);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,a,n){var r=e.getUTCMonth();switch(a){case"L":return String(r+1);case"LL":return e2(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,a,n,r){var o=rY(e,r);return a==="wo"?n.ordinalNumber(o,{unit:"week"}):e2(o,a.length)},I:function(e,a,n){var r=aY(e);return a==="Io"?n.ordinalNumber(r,{unit:"week"}):e2(r,a.length)},d:function(e,a,n){return a==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):t5.d(e,a)},D:function(e,a,n){var r=q71(e);return a==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):e2(r,a.length)},E:function(e,a,n){var r=e.getUTCDay();switch(a){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,a,n,r){var o=e.getUTCDay(),l=(o-r.weekStartsOn+8)%7||7;switch(a){case"e":return String(l);case"ee":return e2(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,a,n,r){var o=e.getUTCDay(),l=(o-r.weekStartsOn+8)%7||7;switch(a){case"c":return String(l);case"cc":return e2(l,a.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,a,n){var r=e.getUTCDay(),o=r===0?7:r;switch(a){case"i":return String(o);case"ii":return e2(o,a.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,a,n){var r=e.getUTCHours(),o=r/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,a,n){var r=e.getUTCHours(),o;switch(r===12?o=Wl.noon:r===0?o=Wl.midnight:o=r/12>=1?"pm":"am",a){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,a,n){var r=e.getUTCHours(),o;switch(r>=17?o=Wl.evening:r>=12?o=Wl.afternoon:r>=4?o=Wl.morning:o=Wl.night,a){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,a,n){if(a==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return t5.h(e,a)},H:function(e,a,n){return a==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):t5.H(e,a)},K:function(e,a,n){var r=e.getUTCHours()%12;return a==="Ko"?n.ordinalNumber(r,{unit:"hour"}):e2(r,a.length)},k:function(e,a,n){var r=e.getUTCHours();return r===0&&(r=24),a==="ko"?n.ordinalNumber(r,{unit:"hour"}):e2(r,a.length)},m:function(e,a,n){return a==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):t5.m(e,a)},s:function(e,a,n){return a==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):t5.s(e,a)},S:function(e,a){return t5.S(e,a)},X:function(e,a,n,r){var o=r._originalDate||e,l=o.getTimezoneOffset();if(l===0)return"Z";switch(a){case"X":return vP(l);case"XXXX":case"XX":return s8(l);case"XXXXX":case"XXX":default:return s8(l,":")}},x:function(e,a,n,r){var o=r._originalDate||e,l=o.getTimezoneOffset();switch(a){case"x":return vP(l);case"xxxx":case"xx":return s8(l);case"xxxxx":case"xxx":default:return s8(l,":")}},O:function(e,a,n,r){var o=r._originalDate||e,l=o.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+uP(l,":");case"OOOO":default:return"GMT"+s8(l,":")}},z:function(e,a,n,r){var o=r._originalDate||e,l=o.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+uP(l,":");case"zzzz":default:return"GMT"+s8(l,":")}},t:function(e,a,n,r){var o=r._originalDate||e,l=Math.floor(o.getTime()/1e3);return e2(l,a.length)},T:function(e,a,n,r){var o=r._originalDate||e,l=o.getTime();return e2(l,a.length)}};function uP(t,e){var a=t>0?"-":"+",n=Math.abs(t),r=Math.floor(n/60),o=n%60;if(o===0)return a+String(r);var l=e||"";return a+String(r)+l+e2(o,2)}function vP(t,e){if(t%60===0){var a=t>0?"-":"+";return a+e2(Math.abs(t)/60,2)}return s8(t,e)}function s8(t,e){var a=e||"",n=t>0?"-":"+",r=Math.abs(t),o=e2(Math.floor(r/60),2),l=e2(r%60,2);return n+o+a+l}var dP=function(e,a){switch(e){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},iY=function(e,a){switch(e){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},ts1=function(e,a){var n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return dP(e,a);var l;switch(r){case"P":l=a.dateTime({width:"short"});break;case"PP":l=a.dateTime({width:"medium"});break;case"PPP":l=a.dateTime({width:"long"});break;case"PPPP":default:l=a.dateTime({width:"full"});break}return l.replace("{{date}}",dP(r,a)).replace("{{time}}",iY(o,a))},Hb={p:iY,P:ts1};function za(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var es1=["D","DD"],as1=["YY","YYYY"];function oY(t){return es1.indexOf(t)!==-1}function lY(t){return as1.indexOf(t)!==-1}function Sg(t,e,a){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var ns1={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},rs1=function(e,a,n){var r,o=ns1[e];return typeof o=="string"?r=o:a===1?r=o.one:r=o.other.replace("{{count}}",a.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const cY=rs1;function v5(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=e.width?String(e.width):t.defaultWidth,n=t.formats[a]||t.formats[t.defaultWidth];return n}}var is1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},os1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ls1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cs1={date:v5({formats:is1,defaultWidth:"full"}),time:v5({formats:os1,defaultWidth:"full"}),dateTime:v5({formats:ls1,defaultWidth:"full"})};const ss1=cs1;var hs1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},us1=function(e,a,n,r){return hs1[e]};const sY=us1;function ri(t){return function(e,a){var n=a!=null&&a.context?String(a.context):"standalone",r;if(n==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,l=a!=null&&a.width?String(a.width):o;r=t.formattingValues[l]||t.formattingValues[o]}else{var c=t.defaultWidth,h=a!=null&&a.width?String(a.width):t.defaultWidth;r=t.values[h]||t.values[c]}var s=t.argumentCallback?t.argumentCallback(e):e;return r[s]}}var vs1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ds1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},fs1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},gs1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ps1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ms1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},zs1=function(e,a){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ms1={ordinalNumber:zs1,era:ri({values:vs1,defaultWidth:"wide"}),quarter:ri({values:ds1,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ri({values:fs1,defaultWidth:"wide"}),day:ri({values:gs1,defaultWidth:"wide"}),dayPeriod:ri({values:ps1,defaultWidth:"wide",formattingValues:ms1,defaultFormattingWidth:"wide"})};const hY=Ms1;function ii(t){return function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.width,r=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],o=e.match(r);if(!o)return null;var l=o[0],c=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],h=Array.isArray(c)?ws1(c,function(v){return v.test(l)}):Hs1(c,function(v){return v.test(l)}),s;s=t.valueCallback?t.valueCallback(h):h,s=a.valueCallback?a.valueCallback(s):s;var u=e.slice(l.length);return{value:s,rest:u}}}function Hs1(t,e){for(var a in t)if(t.hasOwnProperty(a)&&e(t[a]))return a}function ws1(t,e){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=e.match(t.matchPattern);if(!n)return null;var r=n[0],o=e.match(t.parsePattern);if(!o)return null;var l=t.valueCallback?t.valueCallback(o[0]):o[0];l=a.valueCallback?a.valueCallback(l):l;var c=e.slice(r.length);return{value:l,rest:c}}}var ys1=/^(\d+)(th|st|nd|rd)?/i,xs1=/\d+/i,Vs1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Cs1={any:[/^b/i,/^(a|c)/i]},bs1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ls1={any:[/1/i,/2/i,/3/i,/4/i]},Bs1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},_s1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ss1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ts1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Os1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},As1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ks1={ordinalNumber:uY({matchPattern:ys1,parsePattern:xs1,valueCallback:function(e){return parseInt(e,10)}}),era:ii({matchPatterns:Vs1,defaultMatchWidth:"wide",parsePatterns:Cs1,defaultParseWidth:"any"}),quarter:ii({matchPatterns:bs1,defaultMatchWidth:"wide",parsePatterns:Ls1,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ii({matchPatterns:Bs1,defaultMatchWidth:"wide",parsePatterns:_s1,defaultParseWidth:"any"}),day:ii({matchPatterns:Ss1,defaultMatchWidth:"wide",parsePatterns:Ts1,defaultParseWidth:"any"}),dayPeriod:ii({matchPatterns:Os1,defaultMatchWidth:"any",parsePatterns:As1,defaultParseWidth:"any"})};const vY=ks1;var Es1={code:"en-US",formatDistance:cY,formatLong:ss1,formatRelative:sY,localize:hY,match:vY,options:{weekStartsOn:0,firstWeekContainsDate:1}};const $c=Es1;var Ps1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ns1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ds1=/^'([^]*?)'?$/,Rs1=/''/g,js1=/[a-zA-Z]/;function fc(t,e,a){var n,r,o,l,c,h,s,u,v,f,d,M,g,H,p,m,z,w;g1(2,arguments);var x=String(e),y=Ze(),V=(n=(r=a==null?void 0:a.locale)!==null&&r!==void 0?r:y.locale)!==null&&n!==void 0?n:$c,C=Lt((o=(l=(c=(h=a==null?void 0:a.firstWeekContainsDate)!==null&&h!==void 0?h:a==null||(s=a.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&c!==void 0?c:y.firstWeekContainsDate)!==null&&l!==void 0?l:(v=y.locale)===null||v===void 0||(f=v.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=Lt((d=(M=(g=(H=a==null?void 0:a.weekStartsOn)!==null&&H!==void 0?H:a==null||(p=a.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&g!==void 0?g:y.weekStartsOn)!==null&&M!==void 0?M:(z=y.locale)===null||z===void 0||(w=z.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&d!==void 0?d:0);if(!(L>=0&&L<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!V.localize)throw new RangeError("locale must contain localize property");if(!V.formatLong)throw new RangeError("locale must contain formatLong property");var B=A1(t);if(!y5(B))throw new RangeError("Invalid time value");var S=za(B),T=vc(B,S),E={firstWeekContainsDate:C,weekStartsOn:L,locale:V,_originalDate:B},$=x.match(Ns1).map(function(q){var U=q[0];if(U==="p"||U==="P"){var Y=Hb[U];return Y(q,V.formatLong)}return q}).join("").match(Ps1).map(function(q){if(q==="''")return"'";var U=q[0];if(U==="'")return Is1(q);var Y=J71[U];if(Y)return!(a!=null&&a.useAdditionalWeekYearTokens)&&lY(q)&&Sg(q,e,String(t)),!(a!=null&&a.useAdditionalDayOfYearTokens)&&oY(q)&&Sg(q,e,String(t)),Y(T,q,V.localize,E);if(U.match(js1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+U+"`");return q}).join("");return $}function Is1(t){var e=t.match(Ds1);return e?e[1].replace(Rs1,"'"):t}const Fs1=Object.freeze(Object.defineProperty({__proto__:null,default:fc},Symbol.toStringTag,{value:"Module"})),$s1=se(Fs1);function gc(t){g1(1,arguments);var e=A1(t);return e.setHours(0,0,0,0),e}function Oh(t,e){g1(2,arguments);var a=gc(t),n=gc(e);return a.getTime()===n.getTime()}function dY(t){return g1(1,arguments),Oh(t,Date.now())}const Us1=Object.freeze(Object.defineProperty({__proto__:null,default:dY},Symbol.toStringTag,{value:"Module"})),Ws1=se(Us1);var fP;function iS(){return fP||(fP=1,function(t){var e=b&&b.__makeTemplateObject||function(p,m){return Object.defineProperty?Object.defineProperty(p,"raw",{value:m}):p.raw=m,p},a=b&&b.__assign||function(){return a=Object.assign||function(p){for(var m,z=1,w=arguments.length;z<]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function gP(t){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},a=t.match(/<\/?([^\s]+?)[/\s>]/);if(a&&(e.name=a[1],(eh1[a[1]]||t.charAt(t.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var n=t.indexOf("-->");return{type:"comment",comment:n!==-1?t.slice(4,n):""}}for(var r=new RegExp(ah1),o=null;(o=r.exec(t))!==null;)if(o[0].trim())if(o[1]){var l=o[1].trim(),c=[l,""];l.indexOf("=")>-1&&(c=l.split("=")),e.attrs[c[0]]=c[1],r.lastIndex--}else o[2]&&(e.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return e}var nh1=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,rh1=/^\s*$/,ih1=Object.create(null);function fY(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?function(a){var n=[];for(var r in a)n.push(r+'="'+a[r]+'"');return n.length?" "+n.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(fY,"")+"";case"comment":return t+""}}var oh1={parse:function(t,e){e||(e={}),e.components||(e.components=ih1);var a,n=[],r=[],o=-1,l=!1;if(t.indexOf("<")!==0){var c=t.indexOf("<");n.push({type:"text",content:c===-1?t:t.substring(0,c)})}return t.replace(nh1,function(h,s){if(l){if(h!=="")return;l=!1}var u,v=h.charAt(1)!=="/",f=h.startsWith("");return{type:"comment",comment:n!==-1?t.slice(4,n):""}}for(var r=new RegExp(nh1),o=null;(o=r.exec(t))!==null;)if(o[0].trim())if(o[1]){var l=o[1].trim(),c=[l,""];l.indexOf("=")>-1&&(c=l.split("=")),e.attrs[c[0]]=c[1],r.lastIndex--}else o[2]&&(e.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return e}var rh1=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,ih1=/^\s*$/,oh1=Object.create(null);function fY(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?function(a){var n=[];for(var r in a)n.push(r+'="'+a[r]+'"');return n.length?" "+n.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(fY,"")+"";case"comment":return t+""}}var lh1={parse:function(t,e){e||(e={}),e.components||(e.components=oh1);var a,n=[],r=[],o=-1,l=!1;if(t.indexOf("<")!==0){var c=t.indexOf("<");n.push({type:"text",content:c===-1?t:t.substring(0,c)})}return t.replace(rh1,function(h,s){if(l){if(h!=="")return;l=!1}var u,v=h.charAt(1)!=="/",f=h.startsWith(" `}return` -`}const _y1=/\r?\n|\r/g;function Sy1(t,e){const a=[];let n=0,r=0,o;for(;o=_y1.exec(t);)l(t.slice(n,o.index)),a.push(o[0]),n=o.index+o[0].length,r++;return l(t.slice(n)),a.join("");function l(c){a.push(e(c,r,!c))}}function US(t){if(!t._compiled){const e=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((e?"("+e+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}function Ty1(t,e){return CR(t,e.inConstruct,!0)&&!CR(t,e.notInConstruct,!1)}function CR(t,e,a){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return a;let n=-1;for(;++n=s||u+10?" ":"")),r.shift(4),o+=r.move(Sy1(Ly1(t,a,r.current()),Wy1)),l(),o}function Wy1(t,e,a){return e===0?t:(a?"":" ")+t}function eX(t,e,a){const n=e.indexStack,r=t.children||[],o=[];let l=-1,c=a.before;n.push(-1);let h=e.createTracker(a);for(;++l0&&(c==="\r"||c===` -`)&&s.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),c=" ",h=e.createTracker(a),h.move(o.join(""))),o.push(h.move(e.handle(s,t,e,{...h.current(),before:c,after:u}))),c=o[o.length-1].slice(-1)}return n.pop(),o.join("")}const qy1=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];aX.peek=Qy1;const Gy1={canContainEols:["delete"],enter:{strikethrough:Yy1},exit:{strikethrough:Zy1}},Ky1={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:qy1}],handlers:{delete:aX}};function Yy1(t){this.enter({type:"delete",children:[]},t)}function Zy1(t){this.exit(t)}function aX(t,e,a,n){const r=Uh(n),o=a.enter("strikethrough");let l=r.move("~~");return l+=eX(t,a,{...r.current(),before:l,after:"~"}),l+=r.move("~~"),o(),l}function Qy1(){return"~"}nX.peek=Xy1;function nX(t,e,a){let n=t.value||"",r="`",o=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(n);)r+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++oh&&(h=t[s].length);++Hc[H])&&(c[H]=m)}M.push(p)}o[s]=M,l[s]=g}let u=-1;if(typeof a=="object"&&"length"in a)for(;++uc[u]&&(c[u]=p),f[u]=p),v[u]=m}o.splice(1,0,v),l.splice(1,0,f),s=-1;const d=[];for(;++sa==="none"?null:a),children:[]},t),this.setData("inTable",!0)}function rx1(t){this.exit(t),this.setData("inTable")}function ix1(t){this.enter({type:"tableRow",children:[]},t)}function Nx(t){this.exit(t)}function BR(t){this.enter({type:"tableCell",children:[]},t)}function ox1(t){let e=this.resume();this.getData("inTable")&&(e=e.replace(/\\([\\|])/g,lx1));const a=this.stack[this.stack.length-1];a.value=e,this.exit(t)}function lx1(t,e){return e==="|"?e:t}function cx1(t){const e=t||{},a=e.tableCellPadding,n=e.tablePipeAlign,r=e.stringLength,o=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`}const Sy1=/\r?\n|\r/g;function Ty1(t,e){const a=[];let n=0,r=0,o;for(;o=Sy1.exec(t);)l(t.slice(n,o.index)),a.push(o[0]),n=o.index+o[0].length,r++;return l(t.slice(n)),a.join("");function l(c){a.push(e(c,r,!c))}}function US(t){if(!t._compiled){const e=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((e?"("+e+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}function Oy1(t,e){return CR(t,e.inConstruct,!0)&&!CR(t,e.notInConstruct,!1)}function CR(t,e,a){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return a;let n=-1;for(;++n=s||u+10?" ":"")),r.shift(4),o+=r.move(Ty1(By1(t,a,r.current()),qy1)),l(),o}function qy1(t,e,a){return e===0?t:(a?"":" ")+t}function eX(t,e,a){const n=e.indexStack,r=t.children||[],o=[];let l=-1,c=a.before;n.push(-1);let h=e.createTracker(a);for(;++l0&&(c==="\r"||c===` +`)&&s.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),c=" ",h=e.createTracker(a),h.move(o.join(""))),o.push(h.move(e.handle(s,t,e,{...h.current(),before:c,after:u}))),c=o[o.length-1].slice(-1)}return n.pop(),o.join("")}const Gy1=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];aX.peek=Xy1;const Ky1={canContainEols:["delete"],enter:{strikethrough:Zy1},exit:{strikethrough:Qy1}},Yy1={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Gy1}],handlers:{delete:aX}};function Zy1(t){this.enter({type:"delete",children:[]},t)}function Qy1(t){this.exit(t)}function aX(t,e,a,n){const r=Uh(n),o=a.enter("strikethrough");let l=r.move("~~");return l+=eX(t,a,{...r.current(),before:l,after:"~"}),l+=r.move("~~"),o(),l}function Xy1(){return"~"}nX.peek=Jy1;function nX(t,e,a){let n=t.value||"",r="`",o=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(n);)r+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++oh&&(h=t[s].length);++Hc[H])&&(c[H]=m)}M.push(p)}o[s]=M,l[s]=g}let u=-1;if(typeof a=="object"&&"length"in a)for(;++uc[u]&&(c[u]=p),f[u]=p),v[u]=m}o.splice(1,0,v),l.splice(1,0,f),s=-1;const d=[];for(;++sa==="none"?null:a),children:[]},t),this.setData("inTable",!0)}function ix1(t){this.exit(t),this.setData("inTable")}function ox1(t){this.enter({type:"tableRow",children:[]},t)}function Nx(t){this.exit(t)}function BR(t){this.enter({type:"tableCell",children:[]},t)}function lx1(t){let e=this.resume();this.getData("inTable")&&(e=e.replace(/\\([\\|])/g,cx1));const a=this.stack[this.stack.length-1];a.value=e,this.exit(t)}function cx1(t,e){return e==="|"?e:t}function sx1(t){const e=t||{},a=e.tableCellPadding,n=e.tablePipeAlign,r=e.stringLength,o=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:l,tableRow:c,tableCell:h,inlineCode:f}};function l(d,M,g,H){return s(u(d,g,H),d.align)}function c(d,M,g,H){const p=v(d,g,H),m=s([p]);return m.slice(0,m.indexOf(` -`))}function h(d,M,g,H){const p=g.enter("tableCell"),m=g.enter("phrasing"),z=eX(d,g,{...H,before:o,after:o});return m(),p(),z}function s(d,M){return Jy1(d,{align:M,alignDelimiters:n,padding:a,stringLength:r})}function u(d,M,g){const H=d.children;let p=-1;const m=[],z=M.enter("table");for(;++p-1?e.start:1)+(a.options.incrementListMarker===!1?0:e.children.indexOf(t))+o);let l=o.length+1;(r==="tab"||r==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(l=Math.ceil(l/4)*4);const c=a.createTracker(n);c.move(o+" ".repeat(l-o.length)),c.shift(l);const h=a.enter("listItem"),s=a.indentLines(a.containerFlow(t,c.current()),u);return h(),s;function u(v,f,d){return f?(d?"":" ".repeat(l))+v:(d?o:o+" ".repeat(l-o.length))+v}}const vx1={exit:{taskListCheckValueChecked:_R,taskListCheckValueUnchecked:_R,paragraph:fx1}},dx1={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:gx1}};function _R(t){const e=this.stack[this.stack.length-2];e.checked=t.type==="taskListCheckValueChecked"}function fx1(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const a=this.stack[this.stack.length-1],n=a.children[0];if(n&&n.type==="text"){const r=e.children;let o=-1,l;for(;++o15?s="…"+c.slice(r-15,r):s=c.slice(0,r);var u;o+15":">","<":"<",'"':""","'":"'"},Ax1=/[&><"']/g;function kx1(t){return String(t).replace(Ax1,e=>Ox1[e])}var rX=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},Ex1=function(e){var a=rX(e);return a.type==="mathord"||a.type==="textord"||a.type==="atom"},Px1=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},Nx1=function(e){var a=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return a!=null?a[1]:"_relative"},d2={contains:Bx1,deflt:_x1,escape:kx1,hyphenate:Tx1,getBaseElem:rX,isCharacterBox:Ex1,protocolFromUrl:Nx1},_f={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand ",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function Dx1(t){if(t.default)return t.default;var e=t.type,a=Array.isArray(e)?e[0]:e;if(typeof a!="string")return a.enum[0];switch(a){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class qS{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var a in _f)if(_f.hasOwnProperty(a)){var n=_f[a];this[a]=e[a]!==void 0?n.processor?n.processor(e[a]):e[a]:Dx1(n)}}reportNonstrict(e,a,n){var r=this.strict;if(typeof r=="function"&&(r=r(e,a,n)),!(!r||r==="ignore")){if(r===!0||r==="error")throw new zt("LaTeX-incompatible input and strict mode is set to 'error': "+(a+" ["+e+"]"),n);r==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+a+" ["+e+"]"))}}useStrictBehavior(e,a,n){var r=this.strict;if(typeof r=="function")try{r=r(e,a,n)}catch{r="error"}return!r||r==="ignore"?!1:r===!0||r==="error"?!0:r==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+a+" ["+e+"]")),!1)}isTrusted(e){e.url&&!e.protocol&&(e.protocol=d2.protocolFromUrl(e.url));var a=typeof this.trust=="function"?this.trust(e):this.trust;return!!a}}class d3{constructor(e,a,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=a,this.cramped=n}sup(){return ei[Rx1[this.id]]}sub(){return ei[jx1[this.id]]}fracNum(){return ei[Ix1[this.id]]}fracDen(){return ei[Fx1[this.id]]}cramp(){return ei[$x1[this.id]]}text(){return ei[Ux1[this.id]]}isTight(){return this.size>=2}}var GS=0,Qg=1,D6=2,d5=3,Us=4,Rn=5,Mc=6,da=7,ei=[new d3(GS,0,!1),new d3(Qg,0,!0),new d3(D6,1,!1),new d3(d5,1,!0),new d3(Us,2,!1),new d3(Rn,2,!0),new d3(Mc,3,!1),new d3(da,3,!0)],Rx1=[Us,Rn,Us,Rn,Mc,da,Mc,da],jx1=[Rn,Rn,Rn,Rn,da,da,da,da],Ix1=[D6,d5,Us,Rn,Mc,da,Mc,da],Fx1=[d5,d5,Rn,Rn,da,da,da,da],$x1=[Qg,Qg,d5,d5,Rn,Rn,da,da],Ux1=[GS,Qg,D6,d5,D6,d5,D6,d5],o2={DISPLAY:ei[GS],TEXT:ei[D6],SCRIPT:ei[Us],SCRIPTSCRIPT:ei[Mc]},eL=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Wx1(t){for(var e=0;e=r[0]&&t<=r[1])return a.name}return null}var Sf=[];eL.forEach(t=>t.blocks.forEach(e=>Sf.push(...e)));function iX(t){for(var e=0;e=Sf[e]&&t<=Sf[e+1])return!0;return!1}var Yl=80,qx1=function(e,a){return"M95,"+(622+e+a)+` +`))}function h(d,M,g,H){const p=g.enter("tableCell"),m=g.enter("phrasing"),z=eX(d,g,{...H,before:o,after:o});return m(),p(),z}function s(d,M){return tx1(d,{align:M,alignDelimiters:n,padding:a,stringLength:r})}function u(d,M,g){const H=d.children;let p=-1;const m=[],z=M.enter("table");for(;++p-1?e.start:1)+(a.options.incrementListMarker===!1?0:e.children.indexOf(t))+o);let l=o.length+1;(r==="tab"||r==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(l=Math.ceil(l/4)*4);const c=a.createTracker(n);c.move(o+" ".repeat(l-o.length)),c.shift(l);const h=a.enter("listItem"),s=a.indentLines(a.containerFlow(t,c.current()),u);return h(),s;function u(v,f,d){return f?(d?"":" ".repeat(l))+v:(d?o:o+" ".repeat(l-o.length))+v}}const dx1={exit:{taskListCheckValueChecked:_R,taskListCheckValueUnchecked:_R,paragraph:gx1}},fx1={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:px1}};function _R(t){const e=this.stack[this.stack.length-2];e.checked=t.type==="taskListCheckValueChecked"}function gx1(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const a=this.stack[this.stack.length-1],n=a.children[0];if(n&&n.type==="text"){const r=e.children;let o=-1,l;for(;++o15?s="…"+c.slice(r-15,r):s=c.slice(0,r);var u;o+15":">","<":"<",'"':""","'":"'"},kx1=/[&><"']/g;function Ex1(t){return String(t).replace(kx1,e=>Ax1[e])}var rX=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},Px1=function(e){var a=rX(e);return a.type==="mathord"||a.type==="textord"||a.type==="atom"},Nx1=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},Dx1=function(e){var a=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return a!=null?a[1]:"_relative"},d2={contains:_x1,deflt:Sx1,escape:Ex1,hyphenate:Ox1,getBaseElem:rX,isCharacterBox:Px1,protocolFromUrl:Dx1},_f={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand ",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function Rx1(t){if(t.default)return t.default;var e=t.type,a=Array.isArray(e)?e[0]:e;if(typeof a!="string")return a.enum[0];switch(a){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class qS{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var a in _f)if(_f.hasOwnProperty(a)){var n=_f[a];this[a]=e[a]!==void 0?n.processor?n.processor(e[a]):e[a]:Rx1(n)}}reportNonstrict(e,a,n){var r=this.strict;if(typeof r=="function"&&(r=r(e,a,n)),!(!r||r==="ignore")){if(r===!0||r==="error")throw new zt("LaTeX-incompatible input and strict mode is set to 'error': "+(a+" ["+e+"]"),n);r==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+a+" ["+e+"]"))}}useStrictBehavior(e,a,n){var r=this.strict;if(typeof r=="function")try{r=r(e,a,n)}catch{r="error"}return!r||r==="ignore"?!1:r===!0||r==="error"?!0:r==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+a+" ["+e+"]")),!1)}isTrusted(e){e.url&&!e.protocol&&(e.protocol=d2.protocolFromUrl(e.url));var a=typeof this.trust=="function"?this.trust(e):this.trust;return!!a}}class d3{constructor(e,a,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=a,this.cramped=n}sup(){return ei[jx1[this.id]]}sub(){return ei[Ix1[this.id]]}fracNum(){return ei[Fx1[this.id]]}fracDen(){return ei[$x1[this.id]]}cramp(){return ei[Ux1[this.id]]}text(){return ei[Wx1[this.id]]}isTight(){return this.size>=2}}var GS=0,Qg=1,D6=2,d5=3,Us=4,Rn=5,Mc=6,da=7,ei=[new d3(GS,0,!1),new d3(Qg,0,!0),new d3(D6,1,!1),new d3(d5,1,!0),new d3(Us,2,!1),new d3(Rn,2,!0),new d3(Mc,3,!1),new d3(da,3,!0)],jx1=[Us,Rn,Us,Rn,Mc,da,Mc,da],Ix1=[Rn,Rn,Rn,Rn,da,da,da,da],Fx1=[D6,d5,Us,Rn,Mc,da,Mc,da],$x1=[d5,d5,Rn,Rn,da,da,da,da],Ux1=[Qg,Qg,d5,d5,Rn,Rn,da,da],Wx1=[GS,Qg,D6,d5,D6,d5,D6,d5],o2={DISPLAY:ei[GS],TEXT:ei[D6],SCRIPT:ei[Us],SCRIPTSCRIPT:ei[Mc]},eL=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function qx1(t){for(var e=0;e=r[0]&&t<=r[1])return a.name}return null}var Sf=[];eL.forEach(t=>t.blocks.forEach(e=>Sf.push(...e)));function iX(t){for(var e=0;e=Sf[e]&&t<=Sf[e+1])return!0;return!1}var Yl=80,Gx1=function(e,a){return"M95,"+(622+e+a)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 @@ -3755,7 +3755,7 @@ c5.3,-9.3,12,-14,20,-14 H400000v`+(40+e)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+e)+" "+a+"h400000v"+(40+e)+"h-400000z"},Gx1=function(e,a){return"M263,"+(601+e+a)+`c0.7,0,18,39.7,52,119 +M`+(834+e)+" "+a+"h400000v"+(40+e)+"h-400000z"},Kx1=function(e,a){return"M263,"+(601+e+a)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+e/2.084+" -"+e+` @@ -3765,7 +3765,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5, c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+e)+" "+a+"h400000v"+(40+e)+"h-400000z"},Kx1=function(e,a){return"M983 "+(10+e+a)+` +M`+(1001+e)+" "+a+"h400000v"+(40+e)+"h-400000z"},Yx1=function(e,a){return"M983 "+(10+e+a)+` l`+e/3.13+" -"+e+` c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 @@ -3774,7 +3774,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+e)+" "+a+"h400000v"+(40+e)+"h-400000z"},Yx1=function(e,a){return"M424,"+(2398+e+a)+` +M`+(1001+e)+" "+a+"h400000v"+(40+e)+"h-400000z"},Zx1=function(e,a){return"M424,"+(2398+e+a)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 @@ -3784,18 +3784,18 @@ v`+(40+e)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+a+` -h400000v`+(40+e)+"h-400000z"},Zx1=function(e,a){return"M473,"+(2713+e+a)+` +h400000v`+(40+e)+"h-400000z"},Qx1=function(e,a){return"M473,"+(2713+e+a)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+e)+" "+a+"h400000v"+(40+e)+"H1017.7z"},Qx1=function(e){var a=e/2;return"M400000 "+e+" H0 L"+a+" 0 l65 45 L145 "+(e-80)+" H400000z"},Xx1=function(e,a,n){var r=n-54-a-e;return"M702 "+(e+a)+"H400000"+(40+e)+` +606zM`+(1001+e)+" "+a+"h400000v"+(40+e)+"H1017.7z"},Xx1=function(e){var a=e/2;return"M400000 "+e+" H0 L"+a+" 0 l65 45 L145 "+(e-80)+" H400000z"},Jx1=function(e,a,n){var r=n-54-a-e;return"M702 "+(e+a)+"H400000"+(40+e)+` H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+a+"H400000v"+(40+e)+"H742z"},Jx1=function(e,a,n){a=1e3*a;var r="";switch(e){case"sqrtMain":r=qx1(a,Yl);break;case"sqrtSize1":r=Gx1(a,Yl);break;case"sqrtSize2":r=Kx1(a,Yl);break;case"sqrtSize3":r=Yx1(a,Yl);break;case"sqrtSize4":r=Zx1(a,Yl);break;case"sqrtTall":r=Xx1(a,Yl,n)}return r},tV1=function(e,a){switch(e){case"⎜":return"M291 0 H417 V"+a+" H291z M291 0 H417 V"+a+" H291z";case"∣":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z";case"∥":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z"+("M367 0 H410 V"+a+" H367z M367 0 H410 V"+a+" H367z");case"⎟":return"M457 0 H583 V"+a+" H457z M457 0 H583 V"+a+" H457z";case"⎢":return"M319 0 H403 V"+a+" H319z M319 0 H403 V"+a+" H319z";case"⎥":return"M263 0 H347 V"+a+" H263z M263 0 H347 V"+a+" H263z";case"⎪":return"M384 0 H504 V"+a+" H384z M384 0 H504 V"+a+" H384z";case"⏐":return"M312 0 H355 V"+a+" H312z M312 0 H355 V"+a+" H312z";case"‖":return"M257 0 H300 V"+a+" H257z M257 0 H300 V"+a+" H257z"+("M478 0 H521 V"+a+" H478z M478 0 H521 V"+a+" H478z");default:return""}},TR={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+a+"H400000v"+(40+e)+"H742z"},tV1=function(e,a,n){a=1e3*a;var r="";switch(e){case"sqrtMain":r=Gx1(a,Yl);break;case"sqrtSize1":r=Kx1(a,Yl);break;case"sqrtSize2":r=Yx1(a,Yl);break;case"sqrtSize3":r=Zx1(a,Yl);break;case"sqrtSize4":r=Qx1(a,Yl);break;case"sqrtTall":r=Jx1(a,Yl,n)}return r},eV1=function(e,a){switch(e){case"⎜":return"M291 0 H417 V"+a+" H291z M291 0 H417 V"+a+" H291z";case"∣":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z";case"∥":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z"+("M367 0 H410 V"+a+" H367z M367 0 H410 V"+a+" H367z");case"⎟":return"M457 0 H583 V"+a+" H457z M457 0 H583 V"+a+" H457z";case"⎢":return"M319 0 H403 V"+a+" H319z M319 0 H403 V"+a+" H319z";case"⎥":return"M263 0 H347 V"+a+" H263z M263 0 H347 V"+a+" H263z";case"⎪":return"M384 0 H504 V"+a+" H384z M384 0 H504 V"+a+" H384z";case"⏐":return"M312 0 H355 V"+a+" H312z M312 0 H355 V"+a+" H312z";case"‖":return"M257 0 H300 V"+a+" H257z M257 0 H300 V"+a+" H257z"+("M478 0 H521 V"+a+" H478z M478 0 H521 V"+a+" H478z");default:return""}},TR={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 @@ -3970,7 +3970,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z` c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},eV1=function(e,a){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v1759 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},aV1=function(e,a){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+a+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+a+" v1759 h84z";case"vert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -3998,25 +3998,25 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(a+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Wh{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return d2.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),a=0;aa.toText();return this.children.map(e).join("")}}var gi={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},yd={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},OR={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function aV1(t,e){gi[t]=e}function KS(t,e,a){if(!gi[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),r=gi[e][n];if(!r&&t[0]in OR&&(n=OR[t[0]].charCodeAt(0),r=gi[e][n]),!r&&a==="text"&&iX(n)&&(r=gi[e][77]),r)return{depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]}}var Dx={};function nV1(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!Dx[e]){var a=Dx[e]={cssEmPerMu:yd.quad[e]/18};for(var n in yd)yd.hasOwnProperty(n)&&(a[n]=yd[n][e])}return Dx[e]}var rV1=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],AR=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],kR=function(e,a){return a.size<2?e:rV1[e-1][a.size-1]};class i5{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||i5.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=AR[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var a={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in e)e.hasOwnProperty(n)&&(a[n]=e[n]);return new i5(a)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:kR(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:AR[e-1]})}havingBaseStyle(e){e=e||this.style.text();var a=kR(i5.BASESIZE,e);return this.size===a&&this.textSize===i5.BASESIZE&&this.style===e?this:this.extend({style:e,size:a})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==i5.BASESIZE?["sizing","reset-size"+this.size,"size"+i5.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=nV1(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}i5.BASESIZE=6;var aL={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},iV1={ex:!0,em:!0,mu:!0},oX=function(e){return typeof e!="string"&&(e=e.unit),e in aL||e in iV1||e==="ex"},me=function(e,a){var n;if(e.unit in aL)n=aL[e.unit]/a.fontMetrics().ptPerEm/a.sizeMultiplier;else if(e.unit==="mu")n=a.fontMetrics().cssEmPerMu;else{var r;if(a.style.isTight()?r=a.havingStyle(a.style.text()):r=a,e.unit==="ex")n=r.fontMetrics().xHeight;else if(e.unit==="em")n=r.fontMetrics().quad;else throw new zt("Invalid unit: '"+e.unit+"'");r!==a&&(n*=r.sizeMultiplier/a.sizeMultiplier)}return Math.min(e.number*n,a.maxSize)},bt=function(e){return+e.toFixed(4)+"em"},uo=function(e){return e.filter(a=>a).join(" ")},lX=function(e,a,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},a){a.style.isTight()&&this.classes.push("mtight");var r=a.getColor();r&&(this.style.color=r)}},cX=function(e){var a=document.createElement(e);a.className=uo(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(a.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&a.setAttribute(r,this.attributes[r]);for(var o=0;o",a};let qh=class{constructor(e,a,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,lX.call(this,e,n,r),this.children=a||[]}setAttribute(e,a){this.attributes[e]=a}hasClass(e){return d2.contains(this.classes,e)}toNode(){return cX.call(this,"span")}toMarkup(){return sX.call(this,"span")}};class YS{constructor(e,a,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,lX.call(this,a,r),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,a){this.attributes[e]=a}hasClass(e){return d2.contains(this.classes,e)}toNode(){return cX.call(this,"a")}toMarkup(){return sX.call(this,"a")}}class oV1{constructor(e,a,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=a,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return d2.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var a in this.style)this.style.hasOwnProperty(a)&&(e.style[a]=this.style[a]);return e}toMarkup(){var e=""+this.alt+"0&&(a=document.createElement("span"),a.style.marginRight=bt(this.italic)),this.classes.length>0&&(a=a||document.createElement("span"),a.className=uo(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(a=a||document.createElement("span"),a.style[n]=this.style[n]);return a?(a.appendChild(e),a):e}toMarkup(){var e=!1,a="0&&(n+="margin-right:"+this.italic+"em;");for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=d2.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,a+=' style="'+d2.escape(n)+'"');var o=d2.escape(this.text);return e?(a+=">",a+=o,a+="",a):o}}class C5{constructor(e,a){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=a||{}}toNode(){var e="http://www.w3.org/2000/svg",a=document.createElementNS(e,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&a.setAttribute(n,this.attributes[n]);for(var r=0;r":""}}class nL{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",a=document.createElementNS(e,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&a.setAttribute(n,this.attributes[n]);return a}toMarkup(){var e=" but got "+String(t)+".")}var sV1={bin:1,close:1,inner:1,open:1,punct:1,rel:1},hV1={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},q0={math:{},text:{}};function O(t,e,a,n,r,o){q0[t][r]={font:e,group:a,replace:n},o&&n&&(q0[t][n]=q0[t][r])}var N="math",lt="text",K="main",d1="ams",he="accent-token",jt="bin",ya="close",Xc="inner",i2="mathord",Qe="op-token",vn="open",Fz="punct",p1="rel",j5="spacing",O1="textord";O(N,K,p1,"≡","\\equiv",!0);O(N,K,p1,"≺","\\prec",!0);O(N,K,p1,"≻","\\succ",!0);O(N,K,p1,"∼","\\sim",!0);O(N,K,p1,"⊥","\\perp");O(N,K,p1,"⪯","\\preceq",!0);O(N,K,p1,"⪰","\\succeq",!0);O(N,K,p1,"≃","\\simeq",!0);O(N,K,p1,"∣","\\mid",!0);O(N,K,p1,"≪","\\ll",!0);O(N,K,p1,"≫","\\gg",!0);O(N,K,p1,"≍","\\asymp",!0);O(N,K,p1,"∥","\\parallel");O(N,K,p1,"⋈","\\bowtie",!0);O(N,K,p1,"⌣","\\smile",!0);O(N,K,p1,"⊑","\\sqsubseteq",!0);O(N,K,p1,"⊒","\\sqsupseteq",!0);O(N,K,p1,"≐","\\doteq",!0);O(N,K,p1,"⌢","\\frown",!0);O(N,K,p1,"∋","\\ni",!0);O(N,K,p1,"∝","\\propto",!0);O(N,K,p1,"⊢","\\vdash",!0);O(N,K,p1,"⊣","\\dashv",!0);O(N,K,p1,"∋","\\owns");O(N,K,Fz,".","\\ldotp");O(N,K,Fz,"⋅","\\cdotp");O(N,K,O1,"#","\\#");O(lt,K,O1,"#","\\#");O(N,K,O1,"&","\\&");O(lt,K,O1,"&","\\&");O(N,K,O1,"ℵ","\\aleph",!0);O(N,K,O1,"∀","\\forall",!0);O(N,K,O1,"ℏ","\\hbar",!0);O(N,K,O1,"∃","\\exists",!0);O(N,K,O1,"∇","\\nabla",!0);O(N,K,O1,"♭","\\flat",!0);O(N,K,O1,"ℓ","\\ell",!0);O(N,K,O1,"♮","\\natural",!0);O(N,K,O1,"♣","\\clubsuit",!0);O(N,K,O1,"℘","\\wp",!0);O(N,K,O1,"♯","\\sharp",!0);O(N,K,O1,"♢","\\diamondsuit",!0);O(N,K,O1,"ℜ","\\Re",!0);O(N,K,O1,"♡","\\heartsuit",!0);O(N,K,O1,"ℑ","\\Im",!0);O(N,K,O1,"♠","\\spadesuit",!0);O(N,K,O1,"§","\\S",!0);O(lt,K,O1,"§","\\S");O(N,K,O1,"¶","\\P",!0);O(lt,K,O1,"¶","\\P");O(N,K,O1,"†","\\dag");O(lt,K,O1,"†","\\dag");O(lt,K,O1,"†","\\textdagger");O(N,K,O1,"‡","\\ddag");O(lt,K,O1,"‡","\\ddag");O(lt,K,O1,"‡","\\textdaggerdbl");O(N,K,ya,"⎱","\\rmoustache",!0);O(N,K,vn,"⎰","\\lmoustache",!0);O(N,K,ya,"⟯","\\rgroup",!0);O(N,K,vn,"⟮","\\lgroup",!0);O(N,K,jt,"∓","\\mp",!0);O(N,K,jt,"⊖","\\ominus",!0);O(N,K,jt,"⊎","\\uplus",!0);O(N,K,jt,"⊓","\\sqcap",!0);O(N,K,jt,"∗","\\ast");O(N,K,jt,"⊔","\\sqcup",!0);O(N,K,jt,"◯","\\bigcirc",!0);O(N,K,jt,"∙","\\bullet",!0);O(N,K,jt,"‡","\\ddagger");O(N,K,jt,"≀","\\wr",!0);O(N,K,jt,"⨿","\\amalg");O(N,K,jt,"&","\\And");O(N,K,p1,"⟵","\\longleftarrow",!0);O(N,K,p1,"⇐","\\Leftarrow",!0);O(N,K,p1,"⟸","\\Longleftarrow",!0);O(N,K,p1,"⟶","\\longrightarrow",!0);O(N,K,p1,"⇒","\\Rightarrow",!0);O(N,K,p1,"⟹","\\Longrightarrow",!0);O(N,K,p1,"↔","\\leftrightarrow",!0);O(N,K,p1,"⟷","\\longleftrightarrow",!0);O(N,K,p1,"⇔","\\Leftrightarrow",!0);O(N,K,p1,"⟺","\\Longleftrightarrow",!0);O(N,K,p1,"↦","\\mapsto",!0);O(N,K,p1,"⟼","\\longmapsto",!0);O(N,K,p1,"↗","\\nearrow",!0);O(N,K,p1,"↩","\\hookleftarrow",!0);O(N,K,p1,"↪","\\hookrightarrow",!0);O(N,K,p1,"↘","\\searrow",!0);O(N,K,p1,"↼","\\leftharpoonup",!0);O(N,K,p1,"⇀","\\rightharpoonup",!0);O(N,K,p1,"↙","\\swarrow",!0);O(N,K,p1,"↽","\\leftharpoondown",!0);O(N,K,p1,"⇁","\\rightharpoondown",!0);O(N,K,p1,"↖","\\nwarrow",!0);O(N,K,p1,"⇌","\\rightleftharpoons",!0);O(N,d1,p1,"≮","\\nless",!0);O(N,d1,p1,"","\\@nleqslant");O(N,d1,p1,"","\\@nleqq");O(N,d1,p1,"⪇","\\lneq",!0);O(N,d1,p1,"≨","\\lneqq",!0);O(N,d1,p1,"","\\@lvertneqq");O(N,d1,p1,"⋦","\\lnsim",!0);O(N,d1,p1,"⪉","\\lnapprox",!0);O(N,d1,p1,"⊀","\\nprec",!0);O(N,d1,p1,"⋠","\\npreceq",!0);O(N,d1,p1,"⋨","\\precnsim",!0);O(N,d1,p1,"⪹","\\precnapprox",!0);O(N,d1,p1,"≁","\\nsim",!0);O(N,d1,p1,"","\\@nshortmid");O(N,d1,p1,"∤","\\nmid",!0);O(N,d1,p1,"⊬","\\nvdash",!0);O(N,d1,p1,"⊭","\\nvDash",!0);O(N,d1,p1,"⋪","\\ntriangleleft");O(N,d1,p1,"⋬","\\ntrianglelefteq",!0);O(N,d1,p1,"⊊","\\subsetneq",!0);O(N,d1,p1,"","\\@varsubsetneq");O(N,d1,p1,"⫋","\\subsetneqq",!0);O(N,d1,p1,"","\\@varsubsetneqq");O(N,d1,p1,"≯","\\ngtr",!0);O(N,d1,p1,"","\\@ngeqslant");O(N,d1,p1,"","\\@ngeqq");O(N,d1,p1,"⪈","\\gneq",!0);O(N,d1,p1,"≩","\\gneqq",!0);O(N,d1,p1,"","\\@gvertneqq");O(N,d1,p1,"⋧","\\gnsim",!0);O(N,d1,p1,"⪊","\\gnapprox",!0);O(N,d1,p1,"⊁","\\nsucc",!0);O(N,d1,p1,"⋡","\\nsucceq",!0);O(N,d1,p1,"⋩","\\succnsim",!0);O(N,d1,p1,"⪺","\\succnapprox",!0);O(N,d1,p1,"≆","\\ncong",!0);O(N,d1,p1,"","\\@nshortparallel");O(N,d1,p1,"∦","\\nparallel",!0);O(N,d1,p1,"⊯","\\nVDash",!0);O(N,d1,p1,"⋫","\\ntriangleright");O(N,d1,p1,"⋭","\\ntrianglerighteq",!0);O(N,d1,p1,"","\\@nsupseteqq");O(N,d1,p1,"⊋","\\supsetneq",!0);O(N,d1,p1,"","\\@varsupsetneq");O(N,d1,p1,"⫌","\\supsetneqq",!0);O(N,d1,p1,"","\\@varsupsetneqq");O(N,d1,p1,"⊮","\\nVdash",!0);O(N,d1,p1,"⪵","\\precneqq",!0);O(N,d1,p1,"⪶","\\succneqq",!0);O(N,d1,p1,"","\\@nsubseteqq");O(N,d1,jt,"⊴","\\unlhd");O(N,d1,jt,"⊵","\\unrhd");O(N,d1,p1,"↚","\\nleftarrow",!0);O(N,d1,p1,"↛","\\nrightarrow",!0);O(N,d1,p1,"⇍","\\nLeftarrow",!0);O(N,d1,p1,"⇏","\\nRightarrow",!0);O(N,d1,p1,"↮","\\nleftrightarrow",!0);O(N,d1,p1,"⇎","\\nLeftrightarrow",!0);O(N,d1,p1,"△","\\vartriangle");O(N,d1,O1,"ℏ","\\hslash");O(N,d1,O1,"▽","\\triangledown");O(N,d1,O1,"◊","\\lozenge");O(N,d1,O1,"Ⓢ","\\circledS");O(N,d1,O1,"®","\\circledR");O(lt,d1,O1,"®","\\circledR");O(N,d1,O1,"∡","\\measuredangle",!0);O(N,d1,O1,"∄","\\nexists");O(N,d1,O1,"℧","\\mho");O(N,d1,O1,"Ⅎ","\\Finv",!0);O(N,d1,O1,"⅁","\\Game",!0);O(N,d1,O1,"‵","\\backprime");O(N,d1,O1,"▲","\\blacktriangle");O(N,d1,O1,"▼","\\blacktriangledown");O(N,d1,O1,"■","\\blacksquare");O(N,d1,O1,"⧫","\\blacklozenge");O(N,d1,O1,"★","\\bigstar");O(N,d1,O1,"∢","\\sphericalangle",!0);O(N,d1,O1,"∁","\\complement",!0);O(N,d1,O1,"ð","\\eth",!0);O(lt,K,O1,"ð","ð");O(N,d1,O1,"╱","\\diagup");O(N,d1,O1,"╲","\\diagdown");O(N,d1,O1,"□","\\square");O(N,d1,O1,"□","\\Box");O(N,d1,O1,"◊","\\Diamond");O(N,d1,O1,"¥","\\yen",!0);O(lt,d1,O1,"¥","\\yen",!0);O(N,d1,O1,"✓","\\checkmark",!0);O(lt,d1,O1,"✓","\\checkmark");O(N,d1,O1,"ℶ","\\beth",!0);O(N,d1,O1,"ℸ","\\daleth",!0);O(N,d1,O1,"ℷ","\\gimel",!0);O(N,d1,O1,"ϝ","\\digamma",!0);O(N,d1,O1,"ϰ","\\varkappa");O(N,d1,vn,"┌","\\@ulcorner",!0);O(N,d1,ya,"┐","\\@urcorner",!0);O(N,d1,vn,"└","\\@llcorner",!0);O(N,d1,ya,"┘","\\@lrcorner",!0);O(N,d1,p1,"≦","\\leqq",!0);O(N,d1,p1,"⩽","\\leqslant",!0);O(N,d1,p1,"⪕","\\eqslantless",!0);O(N,d1,p1,"≲","\\lesssim",!0);O(N,d1,p1,"⪅","\\lessapprox",!0);O(N,d1,p1,"≊","\\approxeq",!0);O(N,d1,jt,"⋖","\\lessdot");O(N,d1,p1,"⋘","\\lll",!0);O(N,d1,p1,"≶","\\lessgtr",!0);O(N,d1,p1,"⋚","\\lesseqgtr",!0);O(N,d1,p1,"⪋","\\lesseqqgtr",!0);O(N,d1,p1,"≑","\\doteqdot");O(N,d1,p1,"≓","\\risingdotseq",!0);O(N,d1,p1,"≒","\\fallingdotseq",!0);O(N,d1,p1,"∽","\\backsim",!0);O(N,d1,p1,"⋍","\\backsimeq",!0);O(N,d1,p1,"⫅","\\subseteqq",!0);O(N,d1,p1,"⋐","\\Subset",!0);O(N,d1,p1,"⊏","\\sqsubset",!0);O(N,d1,p1,"≼","\\preccurlyeq",!0);O(N,d1,p1,"⋞","\\curlyeqprec",!0);O(N,d1,p1,"≾","\\precsim",!0);O(N,d1,p1,"⪷","\\precapprox",!0);O(N,d1,p1,"⊲","\\vartriangleleft");O(N,d1,p1,"⊴","\\trianglelefteq");O(N,d1,p1,"⊨","\\vDash",!0);O(N,d1,p1,"⊪","\\Vvdash",!0);O(N,d1,p1,"⌣","\\smallsmile");O(N,d1,p1,"⌢","\\smallfrown");O(N,d1,p1,"≏","\\bumpeq",!0);O(N,d1,p1,"≎","\\Bumpeq",!0);O(N,d1,p1,"≧","\\geqq",!0);O(N,d1,p1,"⩾","\\geqslant",!0);O(N,d1,p1,"⪖","\\eqslantgtr",!0);O(N,d1,p1,"≳","\\gtrsim",!0);O(N,d1,p1,"⪆","\\gtrapprox",!0);O(N,d1,jt,"⋗","\\gtrdot");O(N,d1,p1,"⋙","\\ggg",!0);O(N,d1,p1,"≷","\\gtrless",!0);O(N,d1,p1,"⋛","\\gtreqless",!0);O(N,d1,p1,"⪌","\\gtreqqless",!0);O(N,d1,p1,"≖","\\eqcirc",!0);O(N,d1,p1,"≗","\\circeq",!0);O(N,d1,p1,"≜","\\triangleq",!0);O(N,d1,p1,"∼","\\thicksim");O(N,d1,p1,"≈","\\thickapprox");O(N,d1,p1,"⫆","\\supseteqq",!0);O(N,d1,p1,"⋑","\\Supset",!0);O(N,d1,p1,"⊐","\\sqsupset",!0);O(N,d1,p1,"≽","\\succcurlyeq",!0);O(N,d1,p1,"⋟","\\curlyeqsucc",!0);O(N,d1,p1,"≿","\\succsim",!0);O(N,d1,p1,"⪸","\\succapprox",!0);O(N,d1,p1,"⊳","\\vartriangleright");O(N,d1,p1,"⊵","\\trianglerighteq");O(N,d1,p1,"⊩","\\Vdash",!0);O(N,d1,p1,"∣","\\shortmid");O(N,d1,p1,"∥","\\shortparallel");O(N,d1,p1,"≬","\\between",!0);O(N,d1,p1,"⋔","\\pitchfork",!0);O(N,d1,p1,"∝","\\varpropto");O(N,d1,p1,"◀","\\blacktriangleleft");O(N,d1,p1,"∴","\\therefore",!0);O(N,d1,p1,"∍","\\backepsilon");O(N,d1,p1,"▶","\\blacktriangleright");O(N,d1,p1,"∵","\\because",!0);O(N,d1,p1,"⋘","\\llless");O(N,d1,p1,"⋙","\\gggtr");O(N,d1,jt,"⊲","\\lhd");O(N,d1,jt,"⊳","\\rhd");O(N,d1,p1,"≂","\\eqsim",!0);O(N,K,p1,"⋈","\\Join");O(N,d1,p1,"≑","\\Doteq",!0);O(N,d1,jt,"∔","\\dotplus",!0);O(N,d1,jt,"∖","\\smallsetminus");O(N,d1,jt,"⋒","\\Cap",!0);O(N,d1,jt,"⋓","\\Cup",!0);O(N,d1,jt,"⩞","\\doublebarwedge",!0);O(N,d1,jt,"⊟","\\boxminus",!0);O(N,d1,jt,"⊞","\\boxplus",!0);O(N,d1,jt,"⋇","\\divideontimes",!0);O(N,d1,jt,"⋉","\\ltimes",!0);O(N,d1,jt,"⋊","\\rtimes",!0);O(N,d1,jt,"⋋","\\leftthreetimes",!0);O(N,d1,jt,"⋌","\\rightthreetimes",!0);O(N,d1,jt,"⋏","\\curlywedge",!0);O(N,d1,jt,"⋎","\\curlyvee",!0);O(N,d1,jt,"⊝","\\circleddash",!0);O(N,d1,jt,"⊛","\\circledast",!0);O(N,d1,jt,"⋅","\\centerdot");O(N,d1,jt,"⊺","\\intercal",!0);O(N,d1,jt,"⋒","\\doublecap");O(N,d1,jt,"⋓","\\doublecup");O(N,d1,jt,"⊠","\\boxtimes",!0);O(N,d1,p1,"⇢","\\dashrightarrow",!0);O(N,d1,p1,"⇠","\\dashleftarrow",!0);O(N,d1,p1,"⇇","\\leftleftarrows",!0);O(N,d1,p1,"⇆","\\leftrightarrows",!0);O(N,d1,p1,"⇚","\\Lleftarrow",!0);O(N,d1,p1,"↞","\\twoheadleftarrow",!0);O(N,d1,p1,"↢","\\leftarrowtail",!0);O(N,d1,p1,"↫","\\looparrowleft",!0);O(N,d1,p1,"⇋","\\leftrightharpoons",!0);O(N,d1,p1,"↶","\\curvearrowleft",!0);O(N,d1,p1,"↺","\\circlearrowleft",!0);O(N,d1,p1,"↰","\\Lsh",!0);O(N,d1,p1,"⇈","\\upuparrows",!0);O(N,d1,p1,"↿","\\upharpoonleft",!0);O(N,d1,p1,"⇃","\\downharpoonleft",!0);O(N,K,p1,"⊶","\\origof",!0);O(N,K,p1,"⊷","\\imageof",!0);O(N,d1,p1,"⊸","\\multimap",!0);O(N,d1,p1,"↭","\\leftrightsquigarrow",!0);O(N,d1,p1,"⇉","\\rightrightarrows",!0);O(N,d1,p1,"⇄","\\rightleftarrows",!0);O(N,d1,p1,"↠","\\twoheadrightarrow",!0);O(N,d1,p1,"↣","\\rightarrowtail",!0);O(N,d1,p1,"↬","\\looparrowright",!0);O(N,d1,p1,"↷","\\curvearrowright",!0);O(N,d1,p1,"↻","\\circlearrowright",!0);O(N,d1,p1,"↱","\\Rsh",!0);O(N,d1,p1,"⇊","\\downdownarrows",!0);O(N,d1,p1,"↾","\\upharpoonright",!0);O(N,d1,p1,"⇂","\\downharpoonright",!0);O(N,d1,p1,"⇝","\\rightsquigarrow",!0);O(N,d1,p1,"⇝","\\leadsto");O(N,d1,p1,"⇛","\\Rrightarrow",!0);O(N,d1,p1,"↾","\\restriction");O(N,K,O1,"‘","`");O(N,K,O1,"$","\\$");O(lt,K,O1,"$","\\$");O(lt,K,O1,"$","\\textdollar");O(N,K,O1,"%","\\%");O(lt,K,O1,"%","\\%");O(N,K,O1,"_","\\_");O(lt,K,O1,"_","\\_");O(lt,K,O1,"_","\\textunderscore");O(N,K,O1,"∠","\\angle",!0);O(N,K,O1,"∞","\\infty",!0);O(N,K,O1,"′","\\prime");O(N,K,O1,"△","\\triangle");O(N,K,O1,"Γ","\\Gamma",!0);O(N,K,O1,"Δ","\\Delta",!0);O(N,K,O1,"Θ","\\Theta",!0);O(N,K,O1,"Λ","\\Lambda",!0);O(N,K,O1,"Ξ","\\Xi",!0);O(N,K,O1,"Π","\\Pi",!0);O(N,K,O1,"Σ","\\Sigma",!0);O(N,K,O1,"Υ","\\Upsilon",!0);O(N,K,O1,"Φ","\\Phi",!0);O(N,K,O1,"Ψ","\\Psi",!0);O(N,K,O1,"Ω","\\Omega",!0);O(N,K,O1,"A","Α");O(N,K,O1,"B","Β");O(N,K,O1,"E","Ε");O(N,K,O1,"Z","Ζ");O(N,K,O1,"H","Η");O(N,K,O1,"I","Ι");O(N,K,O1,"K","Κ");O(N,K,O1,"M","Μ");O(N,K,O1,"N","Ν");O(N,K,O1,"O","Ο");O(N,K,O1,"P","Ρ");O(N,K,O1,"T","Τ");O(N,K,O1,"X","Χ");O(N,K,O1,"¬","\\neg",!0);O(N,K,O1,"¬","\\lnot");O(N,K,O1,"⊤","\\top");O(N,K,O1,"⊥","\\bot");O(N,K,O1,"∅","\\emptyset");O(N,d1,O1,"∅","\\varnothing");O(N,K,i2,"α","\\alpha",!0);O(N,K,i2,"β","\\beta",!0);O(N,K,i2,"γ","\\gamma",!0);O(N,K,i2,"δ","\\delta",!0);O(N,K,i2,"ϵ","\\epsilon",!0);O(N,K,i2,"ζ","\\zeta",!0);O(N,K,i2,"η","\\eta",!0);O(N,K,i2,"θ","\\theta",!0);O(N,K,i2,"ι","\\iota",!0);O(N,K,i2,"κ","\\kappa",!0);O(N,K,i2,"λ","\\lambda",!0);O(N,K,i2,"μ","\\mu",!0);O(N,K,i2,"ν","\\nu",!0);O(N,K,i2,"ξ","\\xi",!0);O(N,K,i2,"ο","\\omicron",!0);O(N,K,i2,"π","\\pi",!0);O(N,K,i2,"ρ","\\rho",!0);O(N,K,i2,"σ","\\sigma",!0);O(N,K,i2,"τ","\\tau",!0);O(N,K,i2,"υ","\\upsilon",!0);O(N,K,i2,"ϕ","\\phi",!0);O(N,K,i2,"χ","\\chi",!0);O(N,K,i2,"ψ","\\psi",!0);O(N,K,i2,"ω","\\omega",!0);O(N,K,i2,"ε","\\varepsilon",!0);O(N,K,i2,"ϑ","\\vartheta",!0);O(N,K,i2,"ϖ","\\varpi",!0);O(N,K,i2,"ϱ","\\varrho",!0);O(N,K,i2,"ς","\\varsigma",!0);O(N,K,i2,"φ","\\varphi",!0);O(N,K,jt,"∗","*",!0);O(N,K,jt,"+","+");O(N,K,jt,"−","-",!0);O(N,K,jt,"⋅","\\cdot",!0);O(N,K,jt,"∘","\\circ",!0);O(N,K,jt,"÷","\\div",!0);O(N,K,jt,"±","\\pm",!0);O(N,K,jt,"×","\\times",!0);O(N,K,jt,"∩","\\cap",!0);O(N,K,jt,"∪","\\cup",!0);O(N,K,jt,"∖","\\setminus",!0);O(N,K,jt,"∧","\\land");O(N,K,jt,"∨","\\lor");O(N,K,jt,"∧","\\wedge",!0);O(N,K,jt,"∨","\\vee",!0);O(N,K,O1,"√","\\surd");O(N,K,vn,"⟨","\\langle",!0);O(N,K,vn,"∣","\\lvert");O(N,K,vn,"∥","\\lVert");O(N,K,ya,"?","?");O(N,K,ya,"!","!");O(N,K,ya,"⟩","\\rangle",!0);O(N,K,ya,"∣","\\rvert");O(N,K,ya,"∥","\\rVert");O(N,K,p1,"=","=");O(N,K,p1,":",":");O(N,K,p1,"≈","\\approx",!0);O(N,K,p1,"≅","\\cong",!0);O(N,K,p1,"≥","\\ge");O(N,K,p1,"≥","\\geq",!0);O(N,K,p1,"←","\\gets");O(N,K,p1,">","\\gt",!0);O(N,K,p1,"∈","\\in",!0);O(N,K,p1,"","\\@not");O(N,K,p1,"⊂","\\subset",!0);O(N,K,p1,"⊃","\\supset",!0);O(N,K,p1,"⊆","\\subseteq",!0);O(N,K,p1,"⊇","\\supseteq",!0);O(N,d1,p1,"⊈","\\nsubseteq",!0);O(N,d1,p1,"⊉","\\nsupseteq",!0);O(N,K,p1,"⊨","\\models");O(N,K,p1,"←","\\leftarrow",!0);O(N,K,p1,"≤","\\le");O(N,K,p1,"≤","\\leq",!0);O(N,K,p1,"<","\\lt",!0);O(N,K,p1,"→","\\rightarrow",!0);O(N,K,p1,"→","\\to");O(N,d1,p1,"≱","\\ngeq",!0);O(N,d1,p1,"≰","\\nleq",!0);O(N,K,j5," ","\\ ");O(N,K,j5," ","\\space");O(N,K,j5," ","\\nobreakspace");O(lt,K,j5," ","\\ ");O(lt,K,j5," "," ");O(lt,K,j5," ","\\space");O(lt,K,j5," ","\\nobreakspace");O(N,K,j5,null,"\\nobreak");O(N,K,j5,null,"\\allowbreak");O(N,K,Fz,",",",");O(N,K,Fz,";",";");O(N,d1,jt,"⊼","\\barwedge",!0);O(N,d1,jt,"⊻","\\veebar",!0);O(N,K,jt,"⊙","\\odot",!0);O(N,K,jt,"⊕","\\oplus",!0);O(N,K,jt,"⊗","\\otimes",!0);O(N,K,O1,"∂","\\partial",!0);O(N,K,jt,"⊘","\\oslash",!0);O(N,d1,jt,"⊚","\\circledcirc",!0);O(N,d1,jt,"⊡","\\boxdot",!0);O(N,K,jt,"△","\\bigtriangleup");O(N,K,jt,"▽","\\bigtriangledown");O(N,K,jt,"†","\\dagger");O(N,K,jt,"⋄","\\diamond");O(N,K,jt,"⋆","\\star");O(N,K,jt,"◃","\\triangleleft");O(N,K,jt,"▹","\\triangleright");O(N,K,vn,"{","\\{");O(lt,K,O1,"{","\\{");O(lt,K,O1,"{","\\textbraceleft");O(N,K,ya,"}","\\}");O(lt,K,O1,"}","\\}");O(lt,K,O1,"}","\\textbraceright");O(N,K,vn,"{","\\lbrace");O(N,K,ya,"}","\\rbrace");O(N,K,vn,"[","\\lbrack",!0);O(lt,K,O1,"[","\\lbrack",!0);O(N,K,ya,"]","\\rbrack",!0);O(lt,K,O1,"]","\\rbrack",!0);O(N,K,vn,"(","\\lparen",!0);O(N,K,ya,")","\\rparen",!0);O(lt,K,O1,"<","\\textless",!0);O(lt,K,O1,">","\\textgreater",!0);O(N,K,vn,"⌊","\\lfloor",!0);O(N,K,ya,"⌋","\\rfloor",!0);O(N,K,vn,"⌈","\\lceil",!0);O(N,K,ya,"⌉","\\rceil",!0);O(N,K,O1,"\\","\\backslash");O(N,K,O1,"∣","|");O(N,K,O1,"∣","\\vert");O(lt,K,O1,"|","\\textbar",!0);O(N,K,O1,"∥","\\|");O(N,K,O1,"∥","\\Vert");O(lt,K,O1,"∥","\\textbardbl");O(lt,K,O1,"~","\\textasciitilde");O(lt,K,O1,"\\","\\textbackslash");O(lt,K,O1,"^","\\textasciicircum");O(N,K,p1,"↑","\\uparrow",!0);O(N,K,p1,"⇑","\\Uparrow",!0);O(N,K,p1,"↓","\\downarrow",!0);O(N,K,p1,"⇓","\\Downarrow",!0);O(N,K,p1,"↕","\\updownarrow",!0);O(N,K,p1,"⇕","\\Updownarrow",!0);O(N,K,Qe,"∐","\\coprod");O(N,K,Qe,"⋁","\\bigvee");O(N,K,Qe,"⋀","\\bigwedge");O(N,K,Qe,"⨄","\\biguplus");O(N,K,Qe,"⋂","\\bigcap");O(N,K,Qe,"⋃","\\bigcup");O(N,K,Qe,"∫","\\int");O(N,K,Qe,"∫","\\intop");O(N,K,Qe,"∬","\\iint");O(N,K,Qe,"∭","\\iiint");O(N,K,Qe,"∏","\\prod");O(N,K,Qe,"∑","\\sum");O(N,K,Qe,"⨂","\\bigotimes");O(N,K,Qe,"⨁","\\bigoplus");O(N,K,Qe,"⨀","\\bigodot");O(N,K,Qe,"∮","\\oint");O(N,K,Qe,"∯","\\oiint");O(N,K,Qe,"∰","\\oiiint");O(N,K,Qe,"⨆","\\bigsqcup");O(N,K,Qe,"∫","\\smallint");O(lt,K,Xc,"…","\\textellipsis");O(N,K,Xc,"…","\\mathellipsis");O(lt,K,Xc,"…","\\ldots",!0);O(N,K,Xc,"…","\\ldots",!0);O(N,K,Xc,"⋯","\\@cdots",!0);O(N,K,Xc,"⋱","\\ddots",!0);O(N,K,O1,"⋮","\\varvdots");O(N,K,he,"ˊ","\\acute");O(N,K,he,"ˋ","\\grave");O(N,K,he,"¨","\\ddot");O(N,K,he,"~","\\tilde");O(N,K,he,"ˉ","\\bar");O(N,K,he,"˘","\\breve");O(N,K,he,"ˇ","\\check");O(N,K,he,"^","\\hat");O(N,K,he,"⃗","\\vec");O(N,K,he,"˙","\\dot");O(N,K,he,"˚","\\mathring");O(N,K,i2,"","\\@imath");O(N,K,i2,"","\\@jmath");O(N,K,O1,"ı","ı");O(N,K,O1,"ȷ","ȷ");O(lt,K,O1,"ı","\\i",!0);O(lt,K,O1,"ȷ","\\j",!0);O(lt,K,O1,"ß","\\ss",!0);O(lt,K,O1,"æ","\\ae",!0);O(lt,K,O1,"œ","\\oe",!0);O(lt,K,O1,"ø","\\o",!0);O(lt,K,O1,"Æ","\\AE",!0);O(lt,K,O1,"Œ","\\OE",!0);O(lt,K,O1,"Ø","\\O",!0);O(lt,K,he,"ˊ","\\'");O(lt,K,he,"ˋ","\\`");O(lt,K,he,"ˆ","\\^");O(lt,K,he,"˜","\\~");O(lt,K,he,"ˉ","\\=");O(lt,K,he,"˘","\\u");O(lt,K,he,"˙","\\.");O(lt,K,he,"¸","\\c");O(lt,K,he,"˚","\\r");O(lt,K,he,"ˇ","\\v");O(lt,K,he,"¨",'\\"');O(lt,K,he,"˝","\\H");O(lt,K,he,"◯","\\textcircled");var hX={"--":!0,"---":!0,"``":!0,"''":!0};O(lt,K,O1,"–","--",!0);O(lt,K,O1,"–","\\textendash");O(lt,K,O1,"—","---",!0);O(lt,K,O1,"—","\\textemdash");O(lt,K,O1,"‘","`",!0);O(lt,K,O1,"‘","\\textquoteleft");O(lt,K,O1,"’","'",!0);O(lt,K,O1,"’","\\textquoteright");O(lt,K,O1,"“","``",!0);O(lt,K,O1,"“","\\textquotedblleft");O(lt,K,O1,"”","''",!0);O(lt,K,O1,"”","\\textquotedblright");O(N,K,O1,"°","\\degree",!0);O(lt,K,O1,"°","\\degree");O(lt,K,O1,"°","\\textdegree",!0);O(N,K,O1,"£","\\pounds");O(N,K,O1,"£","\\mathsterling",!0);O(lt,K,O1,"£","\\pounds");O(lt,K,O1,"£","\\textsterling",!0);O(N,d1,O1,"✠","\\maltese");O(lt,d1,O1,"✠","\\maltese");var PR='0123456789/@."';for(var Rx=0;Rx0)return wr(o,s,r,a,l.concat(u));if(h){var v,f;if(h==="boldsymbol"){var d=dV1(o,r,a,l,n);v=d.fontName,f=[d.fontClass]}else c?(v=dX[h].fontName,f=[h]):(v=bd(h,a.fontWeight,a.fontShape),f=[h,a.fontWeight,a.fontShape]);if($z(o,v,r).metrics)return wr(o,v,r,a,l.concat(f));if(hX.hasOwnProperty(o)&&v.slice(0,10)==="Typewriter"){for(var M=[],g=0;g{if(uo(t.classes)!==uo(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;if(t.classes.length===1){var a=t.classes[0];if(a==="mbin"||a==="mord")return!1}for(var n in t.style)if(t.style.hasOwnProperty(n)&&t.style[n]!==e.style[n])return!1;for(var r in e.style)if(e.style.hasOwnProperty(r)&&t.style[r]!==e.style[r])return!1;return!0},pV1=t=>{for(var e=0;ea&&(a=l.height),l.depth>n&&(n=l.depth),l.maxFontSize>r&&(r=l.maxFontSize)}e.height=a,e.depth=n,e.maxFontSize=r},Ta=function(e,a,n,r){var o=new qh(e,a,n,r);return ZS(o),o},uX=(t,e,a,n)=>new qh(t,e,a,n),mV1=function(e,a,n){var r=Ta([e],[],a);return r.height=Math.max(n||a.fontMetrics().defaultRuleThickness,a.minRuleThickness),r.style.borderBottomWidth=bt(r.height),r.maxFontSize=1,r},zV1=function(e,a,n,r){var o=new YS(e,a,n,r);return ZS(o),o},vX=function(e){var a=new Wh(e);return ZS(a),a},MV1=function(e,a){return e instanceof Wh?Ta([],[e],a):e},HV1=function(e){if(e.positionType==="individualShift"){for(var a=e.children,n=[a[0]],r=-a[0].shift-a[0].elem.depth,o=r,l=1;l{var a=Ta(["mspace"],[],e),n=me(t,e);return a.style.marginRight=bt(n),a},bd=function(e,a,n){var r="";switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}var o;return a==="textbf"&&n==="textit"?o="BoldItalic":a==="textbf"?o="Bold":a==="textit"?o="Italic":o="Regular",r+"-"+o},dX={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},fX={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},xV1=function(e,a){var[n,r,o]=fX[e],l=new vo(n),c=new C5([l],{width:bt(r),height:bt(o),style:"width:"+bt(r),viewBox:"0 0 "+1e3*r+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),h=uX(["overlay"],[c],a);return h.height=o,h.style.height=bt(o),h.style.width=bt(r),h},$1={fontMap:dX,makeSymbol:wr,mathsym:vV1,makeSpan:Ta,makeSvgSpan:uX,makeLineSpan:mV1,makeAnchor:zV1,makeFragment:vX,wrapFragment:MV1,makeVList:wV1,makeOrd:fV1,makeGlue:yV1,staticSvg:xV1,svgData:fX,tryCombineChars:pV1},ge={number:3,unit:"mu"},e8={number:4,unit:"mu"},Qi={number:5,unit:"mu"},VV1={mord:{mop:ge,mbin:e8,mrel:Qi,minner:ge},mop:{mord:ge,mop:ge,mrel:Qi,minner:ge},mbin:{mord:e8,mop:e8,mopen:e8,minner:e8},mrel:{mord:Qi,mop:Qi,mopen:Qi,minner:Qi},mopen:{},mclose:{mop:ge,mbin:e8,mrel:Qi,minner:ge},mpunct:{mord:ge,mop:ge,mrel:Qi,mopen:ge,mclose:ge,mpunct:ge,minner:ge},minner:{mord:ge,mop:ge,mbin:e8,mrel:Qi,mopen:ge,mpunct:ge,minner:ge}},CV1={mord:{mop:ge},mop:{mord:ge,mop:ge},mbin:{},mrel:{},mopen:{},mclose:{mop:ge},mpunct:{},minner:{mop:ge}},gX={},Jg={},tp={};function Nt(t){for(var{type:e,names:a,props:n,handler:r,htmlBuilder:o,mathmlBuilder:l}=t,c={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:r},h=0;h{var H=g.classes[0],p=M.classes[0];H==="mbin"&&d2.contains(LV1,p)?g.classes[0]="mord":p==="mbin"&&d2.contains(bV1,H)&&(M.classes[0]="mord")},{node:v},f,d),IR(o,(M,g)=>{var H=iL(g),p=iL(M),m=H&&p?M.hasClass("mtight")?CV1[H][p]:VV1[H][p]:null;if(m)return $1.makeGlue(m,s)},{node:v},f,d),o},IR=function t(e,a,n,r,o){r&&e.push(r);for(var l=0;lf=>{e.splice(v+1,0,f),l++})(l)}r&&e.pop()},pX=function(e){return e instanceof Wh||e instanceof YS||e instanceof qh&&e.hasClass("enclosing")?e:null},SV1=function t(e,a){var n=pX(e);if(n){var r=n.children;if(r.length){if(a==="right")return t(r[r.length-1],"right");if(a==="left")return t(r[0],"left")}}return e},iL=function(e,a){return e?(a&&(e=SV1(e,a)),_V1[e.classes[0]]||null):null},Ws=function(e,a){var n=["nulldelimiter"].concat(e.baseSizingClasses());return b5(a.concat(n))},e0=function(e,a,n){if(!e)return b5();if(Jg[e.type]){var r=Jg[e.type](e,a);if(n&&a.size!==n.size){r=b5(a.sizingClasses(n),[r],a);var o=a.sizeMultiplier/n.sizeMultiplier;r.height*=o,r.depth*=o}return r}else throw new zt("Got group of unknown type: '"+e.type+"'")};function Ld(t,e){var a=b5(["base"],t,e),n=b5(["strut"]);return n.style.height=bt(a.height+a.depth),a.depth&&(n.style.verticalAlign=bt(-a.depth)),a.children.unshift(n),a}function oL(t,e){var a=null;t.length===1&&t[0].type==="tag"&&(a=t[0].tag,t=t[0].body);var n=s4(t,e,"root"),r;n.length===2&&n[1].hasClass("tag")&&(r=n.pop());for(var o=[],l=[],c=0;c0&&(o.push(Ld(l,e)),l=[]),o.push(n[c]));l.length>0&&o.push(Ld(l,e));var s;a?(s=Ld(s4(a,e,!0)),s.classes=["tag"],o.push(s)):r&&o.push(r);var u=b5(["katex-html"],o);if(u.setAttribute("aria-hidden","true"),s){var v=s.children[0];v.style.height=bt(u.height+u.depth),u.depth&&(v.style.verticalAlign=bt(-u.depth))}return u}function mX(t){return new Wh(t)}class En{constructor(e,a,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=a||[],this.classes=n||[]}setAttribute(e,a){this.attributes[e]=a}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&e.setAttribute(a,this.attributes[a]);this.classes.length>0&&(e.className=uo(this.classes));for(var n=0;n0&&(e+=' class ="'+d2.escape(uo(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}}class ns{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return d2.escape(this.toText())}toText(){return this.text}}class TV1{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",bt(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var dt={MathNode:En,TextNode:ns,SpaceNode:TV1,newDocumentFragment:mX},Yn=function(e,a,n){return q0[a][e]&&q0[a][e].replace&&e.charCodeAt(0)!==55349&&!(hX.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=q0[a][e].replace),new dt.TextNode(e)},QS=function(e){return e.length===1?e[0]:new dt.MathNode("mrow",e)},XS=function(e,a){if(a.fontFamily==="texttt")return"monospace";if(a.fontFamily==="textsf")return a.fontShape==="textit"&&a.fontWeight==="textbf"?"sans-serif-bold-italic":a.fontShape==="textit"?"sans-serif-italic":a.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(a.fontShape==="textit"&&a.fontWeight==="textbf")return"bold-italic";if(a.fontShape==="textit")return"italic";if(a.fontWeight==="textbf")return"bold";var n=a.font;if(!n||n==="mathnormal")return null;var r=e.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var o=e.text;if(d2.contains(["\\imath","\\jmath"],o))return null;q0[r][o]&&q0[r][o].replace&&(o=q0[r][o].replace);var l=$1.fontMap[n].fontName;return KS(o,l,r)?$1.fontMap[n].variant:null},Wa=function(e,a,n){if(e.length===1){var r=D0(e[0],a);return n&&r instanceof En&&r.type==="mo"&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var o=[],l,c=0;c0&&(v.text=v.text.slice(0,1)+"̸"+v.text.slice(1),o.pop())}}}o.push(h),l=h}return o},fo=function(e,a,n){return QS(Wa(e,a,n))},D0=function(e,a){if(!e)return new dt.MathNode("mrow");if(tp[e.type]){var n=tp[e.type](e,a);return n}else throw new zt("Got group of unknown type: '"+e.type+"'")};function FR(t,e,a,n,r){var o=Wa(t,a),l;o.length===1&&o[0]instanceof En&&d2.contains(["mrow","mtable"],o[0].type)?l=o[0]:l=new dt.MathNode("mrow",o);var c=new dt.MathNode("annotation",[new dt.TextNode(e)]);c.setAttribute("encoding","application/x-tex");var h=new dt.MathNode("semantics",[l,c]),s=new dt.MathNode("math",[h]);s.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&s.setAttribute("display","block");var u=r?"katex":"katex-mathml";return $1.makeSpan([u],[s])}var zX=function(e){return new i5({style:e.displayMode?o2.DISPLAY:o2.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},MX=function(e,a){if(a.displayMode){var n=["katex-display"];a.leqno&&n.push("leqno"),a.fleqn&&n.push("fleqn"),e=$1.makeSpan(n,[e])}return e},OV1=function(e,a,n){var r=zX(n),o;if(n.output==="mathml")return FR(e,a,r,n.displayMode,!0);if(n.output==="html"){var l=oL(e,r);o=$1.makeSpan(["katex"],[l])}else{var c=FR(e,a,r,n.displayMode,!1),h=oL(e,r);o=$1.makeSpan(["katex"],[c,h])}return MX(o,n)},AV1=function(e,a,n){var r=zX(n),o=oL(e,r),l=$1.makeSpan(["katex"],[o]);return MX(l,n)},kV1={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},EV1=function(e){var a=new dt.MathNode("mo",[new dt.TextNode(kV1[e.replace(/^\\/,"")])]);return a.setAttribute("stretchy","true"),a},PV1={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},NV1=function(e){return e.type==="ordgroup"?e.body.length:1},DV1=function(e,a){function n(){var c=4e5,h=e.label.slice(1);if(d2.contains(["widehat","widecheck","widetilde","utilde"],h)){var s=e,u=NV1(s.base),v,f,d;if(u>5)h==="widehat"||h==="widecheck"?(v=420,c=2364,d=.42,f=h+"4"):(v=312,c=2340,d=.34,f="tilde4");else{var M=[1,1,2,2,3,3][u];h==="widehat"||h==="widecheck"?(c=[0,1062,2364,2364,2364][M],v=[0,239,300,360,420][M],d=[0,.24,.3,.3,.36,.42][M],f=h+M):(c=[0,600,1033,2339,2340][M],v=[0,260,286,306,312][M],d=[0,.26,.286,.3,.306,.34][M],f="tilde"+M)}var g=new vo(f),H=new C5([g],{width:"100%",height:bt(d),viewBox:"0 0 "+c+" "+v,preserveAspectRatio:"none"});return{span:$1.makeSvgSpan([],[H],a),minWidth:0,height:d}}else{var p=[],m=PV1[h],[z,w,x]=m,y=x/1e3,V=z.length,C,L;if(V===1){var B=m[3];C=["hide-tail"],L=[B]}else if(V===2)C=["halfarrow-left","halfarrow-right"],L=["xMinYMin","xMaxYMin"];else if(V===3)C=["brace-left","brace-center","brace-right"],L=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+V+" children.");for(var S=0;S0&&(r.style.minWidth=bt(o)),r},RV1=function(e,a,n,r,o){var l,c=e.height+e.depth+n+r;if(/fbox|color|angl/.test(a)){if(l=$1.makeSpan(["stretchy",a],[],o),a==="fbox"){var h=o.color&&o.getColor();h&&(l.style.borderColor=h)}}else{var s=[];/^[bx]cancel$/.test(a)&&s.push(new nL({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(a)&&s.push(new nL({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new C5(s,{width:"100%",height:bt(c)});l=$1.makeSvgSpan([],[u],o)}return l.height=c,l.style.height=bt(c),l},L5={encloseSpan:RV1,mathMLnode:EV1,svgSpan:DV1};function L2(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function JS(t){var e=Uz(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Uz(t){return t&&(t.type==="atom"||hV1.hasOwnProperty(t.type))?t:null}var tT=(t,e)=>{var a,n,r;t&&t.type==="supsub"?(n=L2(t.base,"accent"),a=n.base,t.base=a,r=cV1(e0(t,e)),t.base=n):(n=L2(t,"accent"),a=n.base);var o=e0(a,e.havingCrampedStyle()),l=n.isShifty&&d2.isCharacterBox(a),c=0;if(l){var h=d2.getBaseElem(a),s=e0(h,e.havingCrampedStyle());c=ER(s).skew}var u=n.label==="\\c",v=u?o.height+o.depth:Math.min(o.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=L5.svgSpan(n,e),f=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:c>0?{width:"calc(100% - "+bt(2*c)+")",marginLeft:bt(2*c)}:void 0}]},e);else{var d,M;n.label==="\\vec"?(d=$1.staticSvg("vec",e),M=$1.svgData.vec[1]):(d=$1.makeOrd({mode:n.mode,text:n.label},e,"textord"),d=ER(d),d.italic=0,M=d.width,u&&(v+=d.depth)),f=$1.makeSpan(["accent-body"],[d]);var g=n.label==="\\textcircled";g&&(f.classes.push("accent-full"),v=o.height);var H=c;g||(H-=M/2),f.style.left=bt(H),n.label==="\\textcircled"&&(f.style.top=".2em"),f=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-v},{type:"elem",elem:f}]},e)}var p=$1.makeSpan(["mord","accent"],[f],e);return r?(r.children[0]=p,r.height=Math.max(p.height,r.height),r.classes[0]="mord",r):p},HX=(t,e)=>{var a=t.isStretchy?L5.mathMLnode(t.label):new dt.MathNode("mo",[Yn(t.label,t.mode)]),n=new dt.MathNode("mover",[D0(t.base,e),a]);return n.setAttribute("accent","true"),n},jV1=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));Nt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(t,e)=>{var a=ep(e[0]),n=!jV1.test(t.funcName),r=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:r,base:a}},htmlBuilder:tT,mathmlBuilder:HX});Nt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var a=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:a}},htmlBuilder:tT,mathmlBuilder:HX});Nt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=e[0];return{type:"accentUnder",mode:a.mode,label:n,base:r}},htmlBuilder:(t,e)=>{var a=e0(t.base,e),n=L5.svgSpan(t,e),r=t.label==="\\utilde"?.12:0,o=$1.makeVList({positionType:"top",positionData:a.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:r},{type:"elem",elem:a}]},e);return $1.makeSpan(["mord","accentunder"],[o],e)},mathmlBuilder:(t,e)=>{var a=L5.mathMLnode(t.label),n=new dt.MathNode("munder",[D0(t.base,e),a]);return n.setAttribute("accentunder","true"),n}});var Bd=t=>{var e=new dt.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};Nt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,a){var{parser:n,funcName:r}=t;return{type:"xArrow",mode:n.mode,label:r,body:e[0],below:a[0]}},htmlBuilder(t,e){var a=e.style,n=e.havingStyle(a.sup()),r=$1.wrapFragment(e0(t.body,n,e),e),o=t.label.slice(0,2)==="\\x"?"x":"cd";r.classes.push(o+"-arrow-pad");var l;t.below&&(n=e.havingStyle(a.sub()),l=$1.wrapFragment(e0(t.below,n,e),e),l.classes.push(o+"-arrow-pad"));var c=L5.svgSpan(t,e),h=-e.fontMetrics().axisHeight+.5*c.height,s=-e.fontMetrics().axisHeight-.5*c.height-.111;(r.depth>.25||t.label==="\\xleftequilibrium")&&(s-=r.depth);var u;if(l){var v=-e.fontMetrics().axisHeight+l.height+.5*c.height+.111;u=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:s},{type:"elem",elem:c,shift:h},{type:"elem",elem:l,shift:v}]},e)}else u=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:s},{type:"elem",elem:c,shift:h}]},e);return u.children[0].children[0].children[1].classes.push("svg-align"),$1.makeSpan(["mrel","x-arrow"],[u],e)},mathmlBuilder(t,e){var a=L5.mathMLnode(t.label);a.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var r=Bd(D0(t.body,e));if(t.below){var o=Bd(D0(t.below,e));n=new dt.MathNode("munderover",[a,o,r])}else n=new dt.MathNode("mover",[a,r])}else if(t.below){var l=Bd(D0(t.below,e));n=new dt.MathNode("munder",[a,l])}else n=Bd(),n=new dt.MathNode("mover",[a,n]);return n}});var IV1=$1.makeSpan;function wX(t,e){var a=s4(t.body,e,!0);return IV1([t.mclass],a,e)}function yX(t,e){var a,n=Wa(t.body,e);return t.mclass==="minner"?a=new dt.MathNode("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(a=n[0],a.type="mi"):a=new dt.MathNode("mi",n):(t.isCharacterBox?(a=n[0],a.type="mo"):a=new dt.MathNode("mo",n),t.mclass==="mbin"?(a.attributes.lspace="0.22em",a.attributes.rspace="0.22em"):t.mclass==="mpunct"?(a.attributes.lspace="0em",a.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(a.attributes.lspace="0em",a.attributes.rspace="0em"):t.mclass==="minner"&&(a.attributes.lspace="0.0556em",a.attributes.width="+0.1111em")),a}Nt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:a,funcName:n}=t,r=e[0];return{type:"mclass",mode:a.mode,mclass:"m"+n.slice(5),body:ke(r),isCharacterBox:d2.isCharacterBox(r)}},htmlBuilder:wX,mathmlBuilder:yX});var Wz=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};Nt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:a}=t;return{type:"mclass",mode:a.mode,mclass:Wz(e[0]),body:ke(e[1]),isCharacterBox:d2.isCharacterBox(e[1])}}});Nt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:a,funcName:n}=t,r=e[1],o=e[0],l;n!=="\\stackrel"?l=Wz(r):l="mrel";var c={type:"op",mode:r.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:ke(r)},h={type:"supsub",mode:o.mode,base:c,sup:n==="\\underset"?null:o,sub:n==="\\underset"?o:null};return{type:"mclass",mode:a.mode,mclass:l,body:[h],isCharacterBox:d2.isCharacterBox(h)}},htmlBuilder:wX,mathmlBuilder:yX});Nt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:a}=t;return{type:"pmb",mode:a.mode,mclass:Wz(e[0]),body:ke(e[0])}},htmlBuilder(t,e){var a=s4(t.body,e,!0),n=$1.makeSpan([t.mclass],a,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var a=Wa(t.body,e),n=new dt.MathNode("mstyle",a);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var FV1={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},$R=()=>({type:"styling",body:[],mode:"math",style:"display"}),UR=t=>t.type==="textord"&&t.text==="@",$V1=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function UV1(t,e,a){var n=FV1[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return a.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var r=a.callFunction("\\\\cdleft",[e[0]],[]),o={type:"atom",text:n,mode:"math",family:"rel"},l=a.callFunction("\\Big",[o],[]),c=a.callFunction("\\\\cdright",[e[1]],[]),h={type:"ordgroup",mode:"math",body:[r,l,c]};return a.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return a.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var s={type:"textord",text:"\\Vert",mode:"math"};return a.callFunction("\\Big",[s],[])}default:return{type:"textord",text:" ",mode:"math"}}}function WV1(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var a=t.fetch().text;if(a==="&"||a==="\\\\")t.consume();else if(a==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new zt("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],r=[n],o=0;o-1))if("<>AV".indexOf(s)>-1)for(var v=0;v<2;v++){for(var f=!0,d=h+1;dAV=|." after @',l[h]);var M=UV1(s,u,t),g={type:"styling",body:[M],mode:"math",style:"display"};n.push(g),c=$R()}o%2===0?n.push(c):n.shift(),n=[],r.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var H=new Array(r[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:r,arraystretch:1,addJot:!0,rowGaps:[null],cols:H,colSeparationType:"CD",hLinesBeforeRow:new Array(r.length+1).fill([])}}Nt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:a,funcName:n}=t;return{type:"cdlabel",mode:a.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var a=e.havingStyle(e.style.sup()),n=$1.wrapFragment(e0(t.label,a,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=bt(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var a=new dt.MathNode("mrow",[D0(t.label,e)]);return a=new dt.MathNode("mpadded",[a]),a.setAttribute("width","0"),t.side==="left"&&a.setAttribute("lspace","-1width"),a.setAttribute("voffset","0.7em"),a=new dt.MathNode("mstyle",[a]),a.setAttribute("displaystyle","false"),a.setAttribute("scriptlevel","1"),a}});Nt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:a}=t;return{type:"cdlabelparent",mode:a.mode,fragment:e[0]}},htmlBuilder(t,e){var a=$1.wrapFragment(e0(t.fragment,e),e);return a.classes.push("cd-vert-arrow"),a},mathmlBuilder(t,e){return new dt.MathNode("mrow",[D0(t.fragment,e)])}});Nt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:a}=t,n=L2(e[0],"ordgroup"),r=n.body,o="",l=0;l=1114111)throw new zt("\\@char with invalid code point "+o);return h<=65535?s=String.fromCharCode(h):(h-=65536,s=String.fromCharCode((h>>10)+55296,(h&1023)+56320)),{type:"textord",mode:a.mode,text:s}}});var xX=(t,e)=>{var a=s4(t.body,e.withColor(t.color),!1);return $1.makeFragment(a)},VX=(t,e)=>{var a=Wa(t.body,e.withColor(t.color)),n=new dt.MathNode("mstyle",a);return n.setAttribute("mathcolor",t.color),n};Nt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:a}=t,n=L2(e[0],"color-token").color,r=e[1];return{type:"color",mode:a.mode,color:n,body:ke(r)}},htmlBuilder:xX,mathmlBuilder:VX});Nt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:a,breakOnTokenText:n}=t,r=L2(e[0],"color-token").color;a.gullet.macros.set("\\current@color",r);var o=a.parseExpression(!0,n);return{type:"color",mode:a.mode,color:r,body:o}},htmlBuilder:xX,mathmlBuilder:VX});Nt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,a){var{parser:n}=t,r=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,o=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:o,size:r&&L2(r,"size").value}},htmlBuilder(t,e){var a=$1.makeSpan(["mspace"],[],e);return t.newLine&&(a.classes.push("newline"),t.size&&(a.style.marginTop=bt(me(t.size,e)))),a},mathmlBuilder(t,e){var a=new dt.MathNode("mspace");return t.newLine&&(a.setAttribute("linebreak","newline"),t.size&&a.setAttribute("height",bt(me(t.size,e)))),a}});var lL={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},CX=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new zt("Expected a control sequence",t);return e},qV1=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},bX=(t,e,a,n)=>{var r=t.gullet.macros.get(a.text);r==null&&(a.noexpand=!0,r={tokens:[a],numArgs:0,unexpandable:!t.gullet.isExpandable(a.text)}),t.gullet.macros.set(e,r,n)};Nt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:a}=t;e.consumeSpaces();var n=e.fetch();if(lL[n.text])return(a==="\\global"||a==="\\\\globallong")&&(n.text=lL[n.text]),L2(e.parseFunction(),"internal");throw new zt("Invalid token after macro prefix",n)}});Nt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:a}=t,n=e.gullet.popToken(),r=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new zt("Expected a control sequence",n);for(var o=0,l,c=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){l=e.gullet.future(),c[o].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new zt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==o+1)throw new zt('Argument number "'+n.text+'" out of order');o++,c.push([])}else{if(n.text==="EOF")throw new zt("Expected a macro definition");c[o].push(n.text)}var{tokens:h}=e.gullet.consumeArg();return l&&h.unshift(l),(a==="\\edef"||a==="\\xdef")&&(h=e.gullet.expandTokens(h),h.reverse()),e.gullet.macros.set(r,{tokens:h,numArgs:o,delimiters:c},a===lL[a]),{type:"internal",mode:e.mode}}});Nt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:a}=t,n=CX(e.gullet.popToken());e.gullet.consumeSpaces();var r=qV1(e);return bX(e,n,r,a==="\\\\globallet"),{type:"internal",mode:e.mode}}});Nt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:a}=t,n=CX(e.gullet.popToken()),r=e.gullet.popToken(),o=e.gullet.popToken();return bX(e,n,o,a==="\\\\globalfuture"),e.gullet.pushToken(o),e.gullet.pushToken(r),{type:"internal",mode:e.mode}}});var b7=function(e,a,n){var r=q0.math[e]&&q0.math[e].replace,o=KS(r||e,a,n);if(!o)throw new Error("Unsupported symbol "+e+" and font size "+a+".");return o},eT=function(e,a,n,r){var o=n.havingBaseStyle(a),l=$1.makeSpan(r.concat(o.sizingClasses(n)),[e],n),c=o.sizeMultiplier/n.sizeMultiplier;return l.height*=c,l.depth*=c,l.maxFontSize=o.sizeMultiplier,l},LX=function(e,a,n){var r=a.havingBaseStyle(n),o=(1-a.sizeMultiplier/r.sizeMultiplier)*a.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=bt(o),e.height-=o,e.depth+=o},GV1=function(e,a,n,r,o,l){var c=$1.makeSymbol(e,"Main-Regular",o,r),h=eT(c,a,r,l);return n&&LX(h,r,a),h},KV1=function(e,a,n,r){return $1.makeSymbol(e,"Size"+a+"-Regular",n,r)},BX=function(e,a,n,r,o,l){var c=KV1(e,a,o,r),h=eT($1.makeSpan(["delimsizing","size"+a],[c],r),o2.TEXT,r,l);return n&&LX(h,r,o2.TEXT),h},$x=function(e,a,n){var r;a==="Size1-Regular"?r="delim-size1":r="delim-size4";var o=$1.makeSpan(["delimsizinginner",r],[$1.makeSpan([],[$1.makeSymbol(e,a,n)])]);return{type:"elem",elem:o}},Ux=function(e,a,n){var r=gi["Size4-Regular"][e.charCodeAt(0)]?gi["Size4-Regular"][e.charCodeAt(0)][4]:gi["Size1-Regular"][e.charCodeAt(0)][4],o=new vo("inner",tV1(e,Math.round(1e3*a))),l=new C5([o],{width:bt(r),height:bt(a),style:"width:"+bt(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*a),preserveAspectRatio:"xMinYMin"}),c=$1.makeSvgSpan([],[l],n);return c.height=a,c.style.height=bt(a),c.style.width=bt(r),{type:"elem",elem:c}},cL=.008,_d={type:"kern",size:-1*cL},YV1=["|","\\lvert","\\rvert","\\vert"],ZV1=["\\|","\\lVert","\\rVert","\\Vert"],_X=function(e,a,n,r,o,l){var c,h,s,u,v="",f=0;c=s=u=e,h=null;var d="Size1-Regular";e==="\\uparrow"?s=u="⏐":e==="\\Uparrow"?s=u="‖":e==="\\downarrow"?c=s="⏐":e==="\\Downarrow"?c=s="‖":e==="\\updownarrow"?(c="\\uparrow",s="⏐",u="\\downarrow"):e==="\\Updownarrow"?(c="\\Uparrow",s="‖",u="\\Downarrow"):d2.contains(YV1,e)?(s="∣",v="vert",f=333):d2.contains(ZV1,e)?(s="∥",v="doublevert",f=556):e==="["||e==="\\lbrack"?(c="⎡",s="⎢",u="⎣",d="Size4-Regular",v="lbrack",f=667):e==="]"||e==="\\rbrack"?(c="⎤",s="⎥",u="⎦",d="Size4-Regular",v="rbrack",f=667):e==="\\lfloor"||e==="⌊"?(s=c="⎢",u="⎣",d="Size4-Regular",v="lfloor",f=667):e==="\\lceil"||e==="⌈"?(c="⎡",s=u="⎢",d="Size4-Regular",v="lceil",f=667):e==="\\rfloor"||e==="⌋"?(s=c="⎥",u="⎦",d="Size4-Regular",v="rfloor",f=667):e==="\\rceil"||e==="⌉"?(c="⎤",s=u="⎥",d="Size4-Regular",v="rceil",f=667):e==="("||e==="\\lparen"?(c="⎛",s="⎜",u="⎝",d="Size4-Regular",v="lparen",f=875):e===")"||e==="\\rparen"?(c="⎞",s="⎟",u="⎠",d="Size4-Regular",v="rparen",f=875):e==="\\{"||e==="\\lbrace"?(c="⎧",h="⎨",u="⎩",s="⎪",d="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(c="⎫",h="⎬",u="⎭",s="⎪",d="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(c="⎧",u="⎩",s="⎪",d="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(c="⎫",u="⎭",s="⎪",d="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(c="⎧",u="⎭",s="⎪",d="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(c="⎫",u="⎩",s="⎪",d="Size4-Regular");var M=b7(c,d,o),g=M.height+M.depth,H=b7(s,d,o),p=H.height+H.depth,m=b7(u,d,o),z=m.height+m.depth,w=0,x=1;if(h!==null){var y=b7(h,d,o);w=y.height+y.depth,x=2}var V=g+z+w,C=Math.max(0,Math.ceil((a-V)/(x*p))),L=V+C*x*p,B=r.fontMetrics().axisHeight;n&&(B*=r.sizeMultiplier);var S=L/2-B,T=[];if(v.length>0){var E=L-g-z,$=Math.round(L*1e3),U=eV1(v,Math.round(E*1e3)),W=new vo(v,U),Y=(f/1e3).toFixed(3)+"em",F=($/1e3).toFixed(3)+"em",t1=new C5([W],{width:Y,height:F,viewBox:"0 0 "+f+" "+$}),R=$1.makeSvgSpan([],[t1],r);R.height=$/1e3,R.style.width=Y,R.style.height=F,T.push({type:"elem",elem:R})}else{if(T.push($x(u,d,o)),T.push(_d),h===null){var i1=L-g-z+2*cL;T.push(Ux(s,i1,r))}else{var J=(L-g-z-w)/2+2*cL;T.push(Ux(s,J,r)),T.push(_d),T.push($x(h,d,o)),T.push(_d),T.push(Ux(s,J,r))}T.push(_d),T.push($x(c,d,o))}var A=r.havingBaseStyle(o2.TEXT),o1=$1.makeVList({positionType:"bottom",positionData:S,children:T},A);return eT($1.makeSpan(["delimsizing","mult"],[o1],A),o2.TEXT,r,l)},Wx=80,qx=.08,Gx=function(e,a,n,r,o){var l=Jx1(e,r,n),c=new vo(e,l),h=new C5([c],{width:"400em",height:bt(a),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return $1.makeSvgSpan(["hide-tail"],[h],o)},QV1=function(e,a){var n=a.havingBaseSizing(),r=AX("\\surd",e*n.sizeMultiplier,OX,n),o=n.sizeMultiplier,l=Math.max(0,a.minRuleThickness-a.fontMetrics().sqrtRuleThickness),c,h=0,s=0,u=0,v;return r.type==="small"?(u=1e3+1e3*l+Wx,e<1?o=1:e<1.4&&(o=.7),h=(1+l+qx)/o,s=(1+l)/o,c=Gx("sqrtMain",h,u,l,a),c.style.minWidth="0.853em",v=.833/o):r.type==="large"?(u=(1e3+Wx)*rs[r.size],s=(rs[r.size]+l)/o,h=(rs[r.size]+l+qx)/o,c=Gx("sqrtSize"+r.size,h,u,l,a),c.style.minWidth="1.02em",v=1/o):(h=e+l+qx,s=e+l,u=Math.floor(1e3*e+l)+Wx,c=Gx("sqrtTall",h,u,l,a),c.style.minWidth="0.742em",v=1.056),c.height=s,c.style.height=bt(h),{span:c,advanceWidth:v,ruleWidth:(a.fontMetrics().sqrtRuleThickness+l)*o}},SX=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],XV1=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],TX=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],rs=[0,1.2,1.8,2.4,3],JV1=function(e,a,n,r,o){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),d2.contains(SX,e)||d2.contains(TX,e))return BX(e,a,!1,n,r,o);if(d2.contains(XV1,e))return _X(e,rs[a],!1,n,r,o);throw new zt("Illegal delimiter: '"+e+"'")},tC1=[{type:"small",style:o2.SCRIPTSCRIPT},{type:"small",style:o2.SCRIPT},{type:"small",style:o2.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],eC1=[{type:"small",style:o2.SCRIPTSCRIPT},{type:"small",style:o2.SCRIPT},{type:"small",style:o2.TEXT},{type:"stack"}],OX=[{type:"small",style:o2.SCRIPTSCRIPT},{type:"small",style:o2.SCRIPT},{type:"small",style:o2.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],aC1=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},AX=function(e,a,n,r){for(var o=Math.min(2,3-r.style.size),l=o;la)return n[l]}return n[n.length-1]},kX=function(e,a,n,r,o,l){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var c;d2.contains(TX,e)?c=tC1:d2.contains(SX,e)?c=OX:c=eC1;var h=AX(e,a,c,r);return h.type==="small"?GV1(e,h.style,n,r,o,l):h.type==="large"?BX(e,h.size,n,r,o,l):_X(e,a,n,r,o,l)},nC1=function(e,a,n,r,o,l){var c=r.fontMetrics().axisHeight*r.sizeMultiplier,h=901,s=5/r.fontMetrics().ptPerEm,u=Math.max(a-c,n+c),v=Math.max(u/500*h,2*u-s);return kX(e,v,!0,r,o,l)},f5={sqrtImage:QV1,sizedDelim:JV1,sizeToMaxHeight:rs,customSizedDelim:kX,leftRightDelim:nC1},WR={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},rC1=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function qz(t,e){var a=Uz(t);if(a&&d2.contains(rC1,a.text))return a;throw a?new zt("Invalid delimiter '"+a.text+"' after '"+e.funcName+"'",t):new zt("Invalid delimiter type '"+t.type+"'",t)}Nt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(t,e)=>{var a=qz(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:WR[t.funcName].size,mclass:WR[t.funcName].mclass,delim:a.text}},htmlBuilder:(t,e)=>t.delim==="."?$1.makeSpan([t.mclass]):f5.sizedDelim(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Yn(t.delim,t.mode));var a=new dt.MathNode("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?a.setAttribute("fence","true"):a.setAttribute("fence","false"),a.setAttribute("stretchy","true");var n=bt(f5.sizeToMaxHeight[t.size]);return a.setAttribute("minsize",n),a.setAttribute("maxsize",n),a}});function qR(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Nt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var a=t.parser.gullet.macros.get("\\current@color");if(a&&typeof a!="string")throw new zt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:qz(e[0],t).text,color:a}}});Nt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var a=qz(e[0],t),n=t.parser;++n.leftrightDepth;var r=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var o=L2(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:r,left:a.text,right:o.delim,rightColor:o.color}},htmlBuilder:(t,e)=>{qR(t);for(var a=s4(t.body,e,!0,["mopen","mclose"]),n=0,r=0,o=!1,l=0;l{qR(t);var a=Wa(t.body,e);if(t.left!=="."){var n=new dt.MathNode("mo",[Yn(t.left,t.mode)]);n.setAttribute("fence","true"),a.unshift(n)}if(t.right!=="."){var r=new dt.MathNode("mo",[Yn(t.right,t.mode)]);r.setAttribute("fence","true"),t.rightColor&&r.setAttribute("mathcolor",t.rightColor),a.push(r)}return QS(a)}});Nt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var a=qz(e[0],t);if(!t.parser.leftrightDepth)throw new zt("\\middle without preceding \\left",a);return{type:"middle",mode:t.parser.mode,delim:a.text}},htmlBuilder:(t,e)=>{var a;if(t.delim===".")a=Ws(e,[]);else{a=f5.sizedDelim(t.delim,1,e,t.mode,[]);var n={delim:t.delim,options:e};a.isMiddle=n}return a},mathmlBuilder:(t,e)=>{var a=t.delim==="\\vert"||t.delim==="|"?Yn("|","text"):Yn(t.delim,t.mode),n=new dt.MathNode("mo",[a]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var aT=(t,e)=>{var a=$1.wrapFragment(e0(t.body,e),e),n=t.label.slice(1),r=e.sizeMultiplier,o,l=0,c=d2.isCharacterBox(t.body);if(n==="sout")o=$1.makeSpan(["stretchy","sout"]),o.height=e.fontMetrics().defaultRuleThickness/r,l=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var h=me({number:.6,unit:"pt"},e),s=me({number:.35,unit:"ex"},e),u=e.havingBaseSizing();r=r/u.sizeMultiplier;var v=a.height+a.depth+h+s;a.style.paddingLeft=bt(v/2+h);var f=Math.floor(1e3*v*r),d=Qx1(f),M=new C5([new vo("phase",d)],{width:"400em",height:bt(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});o=$1.makeSvgSpan(["hide-tail"],[M],e),o.style.height=bt(v),l=a.depth+h+s}else{/cancel/.test(n)?c||a.classes.push("cancel-pad"):n==="angl"?a.classes.push("anglpad"):a.classes.push("boxpad");var g=0,H=0,p=0;/box/.test(n)?(p=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),g=e.fontMetrics().fboxsep+(n==="colorbox"?0:p),H=g):n==="angl"?(p=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),g=4*p,H=Math.max(0,.25-a.depth)):(g=c?.2:0,H=g),o=L5.encloseSpan(a,n,g,H,e),/fbox|boxed|fcolorbox/.test(n)?(o.style.borderStyle="solid",o.style.borderWidth=bt(p)):n==="angl"&&p!==.049&&(o.style.borderTopWidth=bt(p),o.style.borderRightWidth=bt(p)),l=a.depth+H,t.backgroundColor&&(o.style.backgroundColor=t.backgroundColor,t.borderColor&&(o.style.borderColor=t.borderColor))}var m;if(t.backgroundColor)m=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:l},{type:"elem",elem:a,shift:0}]},e);else{var z=/cancel|phase/.test(n)?["svg-align"]:[];m=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:o,shift:l,wrapperClasses:z}]},e)}return/cancel/.test(n)&&(m.height=a.height,m.depth=a.depth),/cancel/.test(n)&&!c?$1.makeSpan(["mord","cancel-lap"],[m],e):$1.makeSpan(["mord"],[m],e)},nT=(t,e)=>{var a=0,n=new dt.MathNode(t.label.indexOf("colorbox")>-1?"mpadded":"menclose",[D0(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(a=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*a+"pt"),n.setAttribute("height","+"+2*a+"pt"),n.setAttribute("lspace",a+"pt"),n.setAttribute("voffset",a+"pt"),t.label==="\\fcolorbox"){var r=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+r+"em solid "+String(t.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};Nt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,a){var{parser:n,funcName:r}=t,o=L2(e[0],"color-token").color,l=e[1];return{type:"enclose",mode:n.mode,label:r,backgroundColor:o,body:l}},htmlBuilder:aT,mathmlBuilder:nT});Nt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,a){var{parser:n,funcName:r}=t,o=L2(e[0],"color-token").color,l=L2(e[1],"color-token").color,c=e[2];return{type:"enclose",mode:n.mode,label:r,backgroundColor:l,borderColor:o,body:c}},htmlBuilder:aT,mathmlBuilder:nT});Nt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:a}=t;return{type:"enclose",mode:a.mode,label:"\\fbox",body:e[0]}}});Nt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:a,funcName:n}=t,r=e[0];return{type:"enclose",mode:a.mode,label:n,body:r}},htmlBuilder:aT,mathmlBuilder:nT});Nt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:a}=t;return{type:"enclose",mode:a.mode,label:"\\angl",body:e[0]}}});var EX={};function Bi(t){for(var{type:e,names:a,props:n,handler:r,htmlBuilder:o,mathmlBuilder:l}=t,c={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:r},h=0;h{var e=t.parser.settings;if(!e.displayMode)throw new zt("{"+t.envName+"} can be used only in display mode.")};function rT(t){if(t.indexOf("ed")===-1)return t.indexOf("*")===-1}function Oo(t,e,a){var{hskipBeforeAndAfter:n,addJot:r,cols:o,arraystretch:l,colSeparationType:c,autoTag:h,singleRow:s,emptySingleRow:u,maxNumCols:v,leqno:f}=e;if(t.gullet.beginGroup(),s||t.gullet.macros.set("\\cr","\\\\\\relax"),!l){var d=t.gullet.expandMacroAsText("\\arraystretch");if(d==null)l=1;else if(l=parseFloat(d),!l||l<0)throw new zt("Invalid \\arraystretch: "+d)}t.gullet.beginGroup();var M=[],g=[M],H=[],p=[],m=h!=null?[]:void 0;function z(){h&&t.gullet.macros.set("\\@eqnsw","1",!0)}function w(){m&&(t.gullet.macros.get("\\df@tag")?(m.push(t.subparse([new wi("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):m.push(!!h&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(z(),p.push(GR(t));;){var x=t.parseExpression(!1,s?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),x={type:"ordgroup",mode:t.mode,body:x},a&&(x={type:"styling",mode:t.mode,style:a,body:[x]}),M.push(x);var y=t.fetch().text;if(y==="&"){if(v&&M.length===v){if(s||c)throw new zt("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(y==="\\end"){w(),M.length===1&&x.type==="styling"&&x.body[0].body.length===0&&(g.length>1||!u)&&g.pop(),p.length0&&(z+=.25),s.push({pos:z,isDashed:nt[tt]})}for(w(l[0]),n=0;n0&&(S+=m,Vnt))for(n=0;n=c)){var M1=void 0;(r>0||e.hskipBeforeAndAfter)&&(M1=d2.deflt(J.pregap,f),M1!==0&&(U=$1.makeSpan(["arraycolsep"],[]),U.style.width=bt(M1),$.push(U)));var s1=[];for(n=0;n0){for(var I1=$1.makeLineSpan("hline",a,u),U1=$1.makeLineSpan("hdashline",a,u),P1=[{type:"elem",elem:h,shift:0}];s.length>0;){var G1=s.pop(),rt=G1.pos-T;G1.isDashed?P1.push({type:"elem",elem:U1,shift:rt}):P1.push({type:"elem",elem:I1,shift:rt})}h=$1.makeVList({positionType:"individualShift",children:P1},a)}if(Y.length===0)return $1.makeSpan(["mord"],[h],a);var X1=$1.makeVList({positionType:"individualShift",children:Y},a);return X1=$1.makeSpan(["tag"],[X1],a),$1.makeFragment([h,X1])},iC1={c:"center ",l:"left ",r:"right "},Si=function(e,a){for(var n=[],r=new dt.MathNode("mtd",[],["mtr-glue"]),o=new dt.MathNode("mtd",[],["mml-eqn-num"]),l=0;l0){var M=e.cols,g="",H=!1,p=0,m=M.length;M[0].type==="separator"&&(f+="top ",p=1),M[M.length-1].type==="separator"&&(f+="bottom ",m-=1);for(var z=p;z0?"left ":"",f+=C[C.length-1].length>0?"right ":"";for(var L=1;L-1?"alignat":"align",o=e.envName==="split",l=Oo(e.parser,{cols:n,addJot:!0,autoTag:o?void 0:rT(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),c,h=0,s={type:"ordgroup",mode:e.mode,body:[]};if(a[0]&&a[0].type==="ordgroup"){for(var u="",v=0;v0&&d&&(H=1),n[M]={type:"align",align:g,pregap:H,postgap:0}}return l.colSeparationType=d?"align":"alignat",l};Bi({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var a=Uz(e[0]),n=a?[e[0]]:L2(e[0],"ordgroup").body,r=n.map(function(l){var c=JS(l),h=c.text;if("lcr".indexOf(h)!==-1)return{type:"align",align:h};if(h==="|")return{type:"separator",separator:"|"};if(h===":")return{type:"separator",separator:":"};throw new zt("Unknown column alignment: "+h,l)}),o={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return Oo(t.parser,o,iT(t.envName))},htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],a="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:a}]};if(t.envName.charAt(t.envName.length-1)==="*"){var r=t.parser;if(r.consumeSpaces(),r.fetch().text==="["){if(r.consume(),r.consumeSpaces(),a=r.fetch().text,"lcr".indexOf(a)===-1)throw new zt("Expected l or c or r",r.nextToken);r.consume(),r.consumeSpaces(),r.expect("]"),r.consume(),n.cols=[{type:"align",align:a}]}}var o=Oo(t.parser,n,iT(t.envName)),l=Math.max(0,...o.body.map(c=>c.length));return o.cols=new Array(l).fill({type:"align",align:a}),e?{type:"leftright",mode:t.mode,body:[o],left:e[0],right:e[1],rightColor:void 0}:o},htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},a=Oo(t.parser,e,"script");return a.colSeparationType="small",a},htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var a=Uz(e[0]),n=a?[e[0]]:L2(e[0],"ordgroup").body,r=n.map(function(l){var c=JS(l),h=c.text;if("lc".indexOf(h)!==-1)return{type:"align",align:h};throw new zt("Unknown column alignment: "+h,l)});if(r.length>1)throw new zt("{subarray} can contain only one column");var o={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=Oo(t.parser,o,"script"),o.body.length>0&&o.body[0].length>1)throw new zt("{subarray} can contain only one column");return o},htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},a=Oo(t.parser,e,iT(t.envName));return{type:"leftright",mode:t.mode,body:[a],left:t.envName.indexOf("r")>-1?".":"\\{",right:t.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:NX,htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){d2.contains(["gather","gather*"],t.envName)&&Gz(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:rT(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return Oo(t.parser,e,"display")},htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:NX,htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){Gz(t);var e={autoTag:rT(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return Oo(t.parser,e,"display")},htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["CD"],props:{numArgs:0},handler(t){return Gz(t),WV1(t.parser)},htmlBuilder:_i,mathmlBuilder:Si});n1("\\nonumber","\\gdef\\@eqnsw{0}");n1("\\notag","\\nonumber");Nt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new zt(t.funcName+" valid only within array environment")}});var KR=EX;Nt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:a,funcName:n}=t,r=e[0];if(r.type!=="ordgroup")throw new zt("Invalid environment name",r);for(var o="",l=0;l{var a=t.font,n=e.withFont(a);return e0(t.body,n)},RX=(t,e)=>{var a=t.font,n=e.withFont(a);return D0(t.body,n)},YR={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Nt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=ep(e[0]),o=n;return o in YR&&(o=YR[o]),{type:"font",mode:a.mode,font:o.slice(1),body:r}},htmlBuilder:DX,mathmlBuilder:RX});Nt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:a}=t,n=e[0],r=d2.isCharacterBox(n);return{type:"mclass",mode:a.mode,mclass:Wz(n),body:[{type:"font",mode:a.mode,font:"boldsymbol",body:n}],isCharacterBox:r}}});Nt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:a,funcName:n,breakOnTokenText:r}=t,{mode:o}=a,l=a.parseExpression(!0,r),c="math"+n.slice(1);return{type:"font",mode:o,font:c,body:{type:"ordgroup",mode:a.mode,body:l}}},htmlBuilder:DX,mathmlBuilder:RX});var jX=(t,e)=>{var a=e;return t==="display"?a=a.id>=o2.SCRIPT.id?a.text():o2.DISPLAY:t==="text"&&a.size===o2.DISPLAY.size?a=o2.TEXT:t==="script"?a=o2.SCRIPT:t==="scriptscript"&&(a=o2.SCRIPTSCRIPT),a},oT=(t,e)=>{var a=jX(t.size,e.style),n=a.fracNum(),r=a.fracDen(),o;o=e.havingStyle(n);var l=e0(t.numer,o,e);if(t.continued){var c=8.5/e.fontMetrics().ptPerEm,h=3.5/e.fontMetrics().ptPerEm;l.height=l.height0?M=3*f:M=7*f,g=e.fontMetrics().denom1):(v>0?(d=e.fontMetrics().num2,M=f):(d=e.fontMetrics().num3,M=3*f),g=e.fontMetrics().denom2);var H;if(u){var m=e.fontMetrics().axisHeight;d-l.depth-(m+.5*v){var a=new dt.MathNode("mfrac",[D0(t.numer,e),D0(t.denom,e)]);if(!t.hasBarLine)a.setAttribute("linethickness","0px");else if(t.barSize){var n=me(t.barSize,e);a.setAttribute("linethickness",bt(n))}var r=jX(t.size,e.style);if(r.size!==e.style.size){a=new dt.MathNode("mstyle",[a]);var o=r.size===o2.DISPLAY.size?"true":"false";a.setAttribute("displaystyle",o),a.setAttribute("scriptlevel","0")}if(t.leftDelim!=null||t.rightDelim!=null){var l=[];if(t.leftDelim!=null){var c=new dt.MathNode("mo",[new dt.TextNode(t.leftDelim.replace("\\",""))]);c.setAttribute("fence","true"),l.push(c)}if(l.push(a),t.rightDelim!=null){var h=new dt.MathNode("mo",[new dt.TextNode(t.rightDelim.replace("\\",""))]);h.setAttribute("fence","true"),l.push(h)}return QS(l)}return a};Nt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=e[0],o=e[1],l,c=null,h=null,s="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":l=!0;break;case"\\\\atopfrac":l=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":l=!1,c="(",h=")";break;case"\\\\bracefrac":l=!1,c="\\{",h="\\}";break;case"\\\\brackfrac":l=!1,c="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":s="display";break;case"\\tfrac":case"\\tbinom":s="text";break}return{type:"genfrac",mode:a.mode,continued:!1,numer:r,denom:o,hasBarLine:l,leftDelim:c,rightDelim:h,size:s,barSize:null}},htmlBuilder:oT,mathmlBuilder:lT});Nt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=e[0],o=e[1];return{type:"genfrac",mode:a.mode,continued:!0,numer:r,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});Nt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:a,token:n}=t,r;switch(a){case"\\over":r="\\frac";break;case"\\choose":r="\\binom";break;case"\\atop":r="\\\\atopfrac";break;case"\\brace":r="\\\\bracefrac";break;case"\\brack":r="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:r,token:n}}});var ZR=["display","text","script","scriptscript"],QR=function(e){var a=null;return e.length>0&&(a=e,a=a==="."?null:a),a};Nt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:a}=t,n=e[4],r=e[5],o=ep(e[0]),l=o.type==="atom"&&o.family==="open"?QR(o.text):null,c=ep(e[1]),h=c.type==="atom"&&c.family==="close"?QR(c.text):null,s=L2(e[2],"size"),u,v=null;s.isBlank?u=!0:(v=s.value,u=v.number>0);var f="auto",d=e[3];if(d.type==="ordgroup"){if(d.body.length>0){var M=L2(d.body[0],"textord");f=ZR[Number(M.text)]}}else d=L2(d,"textord"),f=ZR[Number(d.text)];return{type:"genfrac",mode:a.mode,numer:n,denom:r,continued:!1,hasBarLine:u,barSize:v,leftDelim:l,rightDelim:h,size:f}},htmlBuilder:oT,mathmlBuilder:lT});Nt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:a,funcName:n,token:r}=t;return{type:"infix",mode:a.mode,replaceWith:"\\\\abovefrac",size:L2(e[0],"size").value,token:r}}});Nt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=e[0],o=Px1(L2(e[1],"infix").size),l=e[2],c=o.number>0;return{type:"genfrac",mode:a.mode,numer:r,denom:l,continued:!1,hasBarLine:c,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:oT,mathmlBuilder:lT});var IX=(t,e)=>{var a=e.style,n,r;t.type==="supsub"?(n=t.sup?e0(t.sup,e.havingStyle(a.sup()),e):e0(t.sub,e.havingStyle(a.sub()),e),r=L2(t.base,"horizBrace")):r=L2(t,"horizBrace");var o=e0(r.base,e.havingBaseStyle(o2.DISPLAY)),l=L5.svgSpan(r,e),c;if(r.isOver?(c=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:l}]},e),c.children[0].children[0].children[1].classes.push("svg-align")):(c=$1.makeVList({positionType:"bottom",positionData:o.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:o}]},e),c.children[0].children[0].children[0].classes.push("svg-align")),n){var h=$1.makeSpan(["mord",r.isOver?"mover":"munder"],[c],e);r.isOver?c=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:n}]},e):c=$1.makeVList({positionType:"bottom",positionData:h.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:h}]},e)}return $1.makeSpan(["mord",r.isOver?"mover":"munder"],[c],e)},oC1=(t,e)=>{var a=L5.mathMLnode(t.label);return new dt.MathNode(t.isOver?"mover":"munder",[D0(t.base,e),a])};Nt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:a,funcName:n}=t;return{type:"horizBrace",mode:a.mode,label:n,isOver:/^\\over/.test(n),base:e[0]}},htmlBuilder:IX,mathmlBuilder:oC1});Nt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:a}=t,n=e[1],r=L2(e[0],"url").url;return a.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:a.mode,href:r,body:ke(n)}:a.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var a=s4(t.body,e,!1);return $1.makeAnchor(t.href,[],a,e)},mathmlBuilder:(t,e)=>{var a=fo(t.body,e);return a instanceof En||(a=new En("mrow",[a])),a.setAttribute("href",t.href),a}});Nt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:a}=t,n=L2(e[0],"url").url;if(!a.settings.isTrusted({command:"\\url",url:n}))return a.formatUnsupportedCmd("\\url");for(var r=[],o=0;o{var{parser:a,funcName:n,token:r}=t,o=L2(e[0],"raw").string,l=e[1];a.settings.strict&&a.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var c,h={};switch(n){case"\\htmlClass":h.class=o,c={command:"\\htmlClass",class:o};break;case"\\htmlId":h.id=o,c={command:"\\htmlId",id:o};break;case"\\htmlStyle":h.style=o,c={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var s=o.split(","),u=0;u{var a=s4(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var r=$1.makeSpan(n,a,e);for(var o in t.attributes)o!=="class"&&t.attributes.hasOwnProperty(o)&&r.setAttribute(o,t.attributes[o]);return r},mathmlBuilder:(t,e)=>fo(t.body,e)});Nt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(t,e)=>{var{parser:a}=t;return{type:"htmlmathml",mode:a.mode,html:ke(e[0]),mathml:ke(e[1])}},htmlBuilder:(t,e)=>{var a=s4(t.html,e,!1);return $1.makeFragment(a)},mathmlBuilder:(t,e)=>fo(t.mathml,e)});var Kx=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!a)throw new zt("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(a[1]+a[2]),unit:a[3]};if(!oX(n))throw new zt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};Nt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,a)=>{var{parser:n}=t,r={number:0,unit:"em"},o={number:.9,unit:"em"},l={number:0,unit:"em"},c="";if(a[0])for(var h=L2(a[0],"raw").string,s=h.split(","),u=0;u{var a=me(t.height,e),n=0;t.totalheight.number>0&&(n=me(t.totalheight,e)-a);var r=0;t.width.number>0&&(r=me(t.width,e));var o={height:bt(a+n)};r>0&&(o.width=bt(r)),n>0&&(o.verticalAlign=bt(-n));var l=new oV1(t.src,t.alt,o);return l.height=a,l.depth=n,l},mathmlBuilder:(t,e)=>{var a=new dt.MathNode("mglyph",[]);a.setAttribute("alt",t.alt);var n=me(t.height,e),r=0;if(t.totalheight.number>0&&(r=me(t.totalheight,e)-n,a.setAttribute("valign",bt(-r))),a.setAttribute("height",bt(n+r)),t.width.number>0){var o=me(t.width,e);a.setAttribute("width",bt(o))}return a.setAttribute("src",t.src),a}});Nt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:a,funcName:n}=t,r=L2(e[0],"size");if(a.settings.strict){var o=n[1]==="m",l=r.value.unit==="mu";o?(l||a.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+r.value.unit+" units")),a.mode!=="math"&&a.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):l&&a.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:a.mode,dimension:r.value}},htmlBuilder(t,e){return $1.makeGlue(t.dimension,e)},mathmlBuilder(t,e){var a=me(t.dimension,e);return new dt.SpaceNode(a)}});Nt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=e[0];return{type:"lap",mode:a.mode,alignment:n.slice(5),body:r}},htmlBuilder:(t,e)=>{var a;t.alignment==="clap"?(a=$1.makeSpan([],[e0(t.body,e)]),a=$1.makeSpan(["inner"],[a],e)):a=$1.makeSpan(["inner"],[e0(t.body,e)]);var n=$1.makeSpan(["fix"],[]),r=$1.makeSpan([t.alignment],[a,n],e),o=$1.makeSpan(["strut"]);return o.style.height=bt(r.height+r.depth),r.depth&&(o.style.verticalAlign=bt(-r.depth)),r.children.unshift(o),r=$1.makeSpan(["thinbox"],[r],e),$1.makeSpan(["mord","vbox"],[r],e)},mathmlBuilder:(t,e)=>{var a=new dt.MathNode("mpadded",[D0(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";a.setAttribute("lspace",n+"width")}return a.setAttribute("width","0px"),a}});Nt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:a,parser:n}=t,r=n.mode;n.switchMode("math");var o=a==="\\("?"\\)":"$",l=n.parseExpression(!1,o);return n.expect(o),n.switchMode(r),{type:"styling",mode:n.mode,style:"text",body:l}}});Nt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new zt("Mismatched "+t.funcName)}});var XR=(t,e)=>{switch(e.style.size){case o2.DISPLAY.size:return t.display;case o2.TEXT.size:return t.text;case o2.SCRIPT.size:return t.script;case o2.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};Nt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:a}=t;return{type:"mathchoice",mode:a.mode,display:ke(e[0]),text:ke(e[1]),script:ke(e[2]),scriptscript:ke(e[3])}},htmlBuilder:(t,e)=>{var a=XR(t,e),n=s4(a,e,!1);return $1.makeFragment(n)},mathmlBuilder:(t,e)=>{var a=XR(t,e);return fo(a,e)}});var FX=(t,e,a,n,r,o,l)=>{t=$1.makeSpan([],[t]);var c=a&&d2.isCharacterBox(a),h,s;if(e){var u=e0(e,n.havingStyle(r.sup()),n);s={elem:u,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-u.depth)}}if(a){var v=e0(a,n.havingStyle(r.sub()),n);h={elem:v,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-v.height)}}var f;if(s&&h){var d=n.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+t.depth+l;f=$1.makeVList({positionType:"bottom",positionData:d,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:bt(-o)},{type:"kern",size:h.kern},{type:"elem",elem:t},{type:"kern",size:s.kern},{type:"elem",elem:s.elem,marginLeft:bt(o)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(h){var M=t.height-l;f=$1.makeVList({positionType:"top",positionData:M,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:bt(-o)},{type:"kern",size:h.kern},{type:"elem",elem:t}]},n)}else if(s){var g=t.depth+l;f=$1.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:t},{type:"kern",size:s.kern},{type:"elem",elem:s.elem,marginLeft:bt(o)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return t;var H=[f];if(h&&o!==0&&!c){var p=$1.makeSpan(["mspace"],[],n);p.style.marginRight=bt(o),H.unshift(p)}return $1.makeSpan(["mop","op-limits"],H,n)},$X=["\\smallint"],Jc=(t,e)=>{var a,n,r=!1,o;t.type==="supsub"?(a=t.sup,n=t.sub,o=L2(t.base,"op"),r=!0):o=L2(t,"op");var l=e.style,c=!1;l.size===o2.DISPLAY.size&&o.symbol&&!d2.contains($X,o.name)&&(c=!0);var h;if(o.symbol){var s=c?"Size2-Regular":"Size1-Regular",u="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(u=o.name.slice(1),o.name=u==="oiint"?"\\iint":"\\iiint"),h=$1.makeSymbol(o.name,s,"math",e,["mop","op-symbol",c?"large-op":"small-op"]),u.length>0){var v=h.italic,f=$1.staticSvg(u+"Size"+(c?"2":"1"),e);h=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:f,shift:c?.08:0}]},e),o.name="\\"+u,h.classes.unshift("mop"),h.italic=v}}else if(o.body){var d=s4(o.body,e,!0);d.length===1&&d[0]instanceof Kn?(h=d[0],h.classes[0]="mop"):h=$1.makeSpan(["mop"],d,e)}else{for(var M=[],g=1;g{var a;if(t.symbol)a=new En("mo",[Yn(t.name,t.mode)]),d2.contains($X,t.name)&&a.setAttribute("largeop","false");else if(t.body)a=new En("mo",Wa(t.body,e));else{a=new En("mi",[new ns(t.name.slice(1))]);var n=new En("mo",[Yn("⁡","text")]);t.parentIsSupSub?a=new En("mrow",[a,n]):a=mX([a,n])}return a},lC1={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Nt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=n;return r.length===1&&(r=lC1[r]),{type:"op",mode:a.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Jc,mathmlBuilder:Gh});Nt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:a}=t,n=e[0];return{type:"op",mode:a.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ke(n)}},htmlBuilder:Jc,mathmlBuilder:Gh});var cC1={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Nt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(t){var{parser:e,funcName:a}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:a}},htmlBuilder:Jc,mathmlBuilder:Gh});Nt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:a}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:a}},htmlBuilder:Jc,mathmlBuilder:Gh});Nt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(t){var{parser:e,funcName:a}=t,n=a;return n.length===1&&(n=cC1[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Jc,mathmlBuilder:Gh});var UX=(t,e)=>{var a,n,r=!1,o;t.type==="supsub"?(a=t.sup,n=t.sub,o=L2(t.base,"operatorname"),r=!0):o=L2(t,"operatorname");var l;if(o.body.length>0){for(var c=o.body.map(v=>{var f=v.text;return typeof f=="string"?{type:"textord",mode:v.mode,text:f}:v}),h=s4(c,e.withFont("mathrm"),!0),s=0;s{for(var a=Wa(t.body,e.withFont("mathrm")),n=!0,r=0;ru.toText()).join("");a=[new dt.TextNode(c)]}var h=new dt.MathNode("mi",a);h.setAttribute("mathvariant","normal");var s=new dt.MathNode("mo",[Yn("⁡","text")]);return t.parentIsSupSub?new dt.MathNode("mrow",[h,s]):dt.newDocumentFragment([h,s])};Nt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=e[0];return{type:"operatorname",mode:a.mode,body:ke(r),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:UX,mathmlBuilder:sC1});n1("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ml({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?$1.makeFragment(s4(t.body,e,!1)):$1.makeSpan(["mord"],s4(t.body,e,!0),e)},mathmlBuilder(t,e){return fo(t.body,e,!0)}});Nt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:a}=t,n=e[0];return{type:"overline",mode:a.mode,body:n}},htmlBuilder(t,e){var a=e0(t.body,e.havingCrampedStyle()),n=$1.makeLineSpan("overline-line",e),r=e.fontMetrics().defaultRuleThickness,o=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:3*r},{type:"elem",elem:n},{type:"kern",size:r}]},e);return $1.makeSpan(["mord","overline"],[o],e)},mathmlBuilder(t,e){var a=new dt.MathNode("mo",[new dt.TextNode("‾")]);a.setAttribute("stretchy","true");var n=new dt.MathNode("mover",[D0(t.body,e),a]);return n.setAttribute("accent","true"),n}});Nt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:a}=t,n=e[0];return{type:"phantom",mode:a.mode,body:ke(n)}},htmlBuilder:(t,e)=>{var a=s4(t.body,e.withPhantom(),!1);return $1.makeFragment(a)},mathmlBuilder:(t,e)=>{var a=Wa(t.body,e);return new dt.MathNode("mphantom",a)}});Nt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:a}=t,n=e[0];return{type:"hphantom",mode:a.mode,body:n}},htmlBuilder:(t,e)=>{var a=$1.makeSpan([],[e0(t.body,e.withPhantom())]);if(a.height=0,a.depth=0,a.children)for(var n=0;n{var a=Wa(ke(t.body),e),n=new dt.MathNode("mphantom",a),r=new dt.MathNode("mpadded",[n]);return r.setAttribute("height","0px"),r.setAttribute("depth","0px"),r}});Nt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:a}=t,n=e[0];return{type:"vphantom",mode:a.mode,body:n}},htmlBuilder:(t,e)=>{var a=$1.makeSpan(["inner"],[e0(t.body,e.withPhantom())]),n=$1.makeSpan(["fix"],[]);return $1.makeSpan(["mord","rlap"],[a,n],e)},mathmlBuilder:(t,e)=>{var a=Wa(ke(t.body),e),n=new dt.MathNode("mphantom",a),r=new dt.MathNode("mpadded",[n]);return r.setAttribute("width","0px"),r}});Nt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:a}=t,n=L2(e[0],"size").value,r=e[1];return{type:"raisebox",mode:a.mode,dy:n,body:r}},htmlBuilder(t,e){var a=e0(t.body,e),n=me(t.dy,e);return $1.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:a}]},e)},mathmlBuilder(t,e){var a=new dt.MathNode("mpadded",[D0(t.body,e)]),n=t.dy.number+t.dy.unit;return a.setAttribute("voffset",n),a}});Nt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});Nt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(t,e,a){var{parser:n}=t,r=a[0],o=L2(e[0],"size"),l=L2(e[1],"size");return{type:"rule",mode:n.mode,shift:r&&L2(r,"size").value,width:o.value,height:l.value}},htmlBuilder(t,e){var a=$1.makeSpan(["mord","rule"],[],e),n=me(t.width,e),r=me(t.height,e),o=t.shift?me(t.shift,e):0;return a.style.borderRightWidth=bt(n),a.style.borderTopWidth=bt(r),a.style.bottom=bt(o),a.width=n,a.height=r+o,a.depth=-o,a.maxFontSize=r*1.125*e.sizeMultiplier,a},mathmlBuilder(t,e){var a=me(t.width,e),n=me(t.height,e),r=t.shift?me(t.shift,e):0,o=e.color&&e.getColor()||"black",l=new dt.MathNode("mspace");l.setAttribute("mathbackground",o),l.setAttribute("width",bt(a)),l.setAttribute("height",bt(n));var c=new dt.MathNode("mpadded",[l]);return r>=0?c.setAttribute("height",bt(r)):(c.setAttribute("height",bt(r)),c.setAttribute("depth",bt(-r))),c.setAttribute("voffset",bt(r)),c}});function WX(t,e,a){for(var n=s4(t,e,!1),r=e.sizeMultiplier/a.sizeMultiplier,o=0;o{var a=e.havingSize(t.size);return WX(t.body,a,e)};Nt({type:"sizing",names:JR,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:a,funcName:n,parser:r}=t,o=r.parseExpression(!1,a);return{type:"sizing",mode:r.mode,size:JR.indexOf(n)+1,body:o}},htmlBuilder:hC1,mathmlBuilder:(t,e)=>{var a=e.havingSize(t.size),n=Wa(t.body,a),r=new dt.MathNode("mstyle",n);return r.setAttribute("mathsize",bt(a.sizeMultiplier)),r}});Nt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,a)=>{var{parser:n}=t,r=!1,o=!1,l=a[0]&&L2(a[0],"ordgroup");if(l)for(var c="",h=0;h{var a=$1.makeSpan([],[e0(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return a;if(t.smashHeight&&(a.height=0,a.children))for(var n=0;n{var a=new dt.MathNode("mpadded",[D0(t.body,e)]);return t.smashHeight&&a.setAttribute("height","0px"),t.smashDepth&&a.setAttribute("depth","0px"),a}});Nt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,a){var{parser:n}=t,r=a[0],o=e[0];return{type:"sqrt",mode:n.mode,body:o,index:r}},htmlBuilder(t,e){var a=e0(t.body,e.havingCrampedStyle());a.height===0&&(a.height=e.fontMetrics().xHeight),a=$1.wrapFragment(a,e);var n=e.fontMetrics(),r=n.defaultRuleThickness,o=r;e.style.ida.height+a.depth+l&&(l=(l+v-a.height-a.depth)/2);var f=h.height-a.height-l-s;a.style.paddingLeft=bt(u);var d=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:-(a.height+f)},{type:"elem",elem:h},{type:"kern",size:s}]},e);if(t.index){var M=e.havingStyle(o2.SCRIPTSCRIPT),g=e0(t.index,M,e),H=.6*(d.height-d.depth),p=$1.makeVList({positionType:"shift",positionData:-H,children:[{type:"elem",elem:g}]},e),m=$1.makeSpan(["root"],[p]);return $1.makeSpan(["mord","sqrt"],[m,d],e)}else return $1.makeSpan(["mord","sqrt"],[d],e)},mathmlBuilder(t,e){var{body:a,index:n}=t;return n?new dt.MathNode("mroot",[D0(a,e),D0(n,e)]):new dt.MathNode("msqrt",[D0(a,e)])}});var tj={display:o2.DISPLAY,text:o2.TEXT,script:o2.SCRIPT,scriptscript:o2.SCRIPTSCRIPT};Nt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:a,funcName:n,parser:r}=t,o=r.parseExpression(!0,a),l=n.slice(1,n.length-5);return{type:"styling",mode:r.mode,style:l,body:o}},htmlBuilder(t,e){var a=tj[t.style],n=e.havingStyle(a).withFont("");return WX(t.body,n,e)},mathmlBuilder(t,e){var a=tj[t.style],n=e.havingStyle(a),r=Wa(t.body,n),o=new dt.MathNode("mstyle",r),l={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},c=l[t.style];return o.setAttribute("scriptlevel",c[0]),o.setAttribute("displaystyle",c[1]),o}});var uC1=function(e,a){var n=e.base;if(n)if(n.type==="op"){var r=n.limits&&(a.style.size===o2.DISPLAY.size||n.alwaysHandleSupSub);return r?Jc:null}else if(n.type==="operatorname"){var o=n.alwaysHandleSupSub&&(a.style.size===o2.DISPLAY.size||n.limits);return o?UX:null}else{if(n.type==="accent")return d2.isCharacterBox(n.base)?tT:null;if(n.type==="horizBrace"){var l=!e.sub;return l===n.isOver?IX:null}else return null}else return null};ml({type:"supsub",htmlBuilder(t,e){var a=uC1(t,e);if(a)return a(t,e);var{base:n,sup:r,sub:o}=t,l=e0(n,e),c,h,s=e.fontMetrics(),u=0,v=0,f=n&&d2.isCharacterBox(n);if(r){var d=e.havingStyle(e.style.sup());c=e0(r,d,e),f||(u=l.height-d.fontMetrics().supDrop*d.sizeMultiplier/e.sizeMultiplier)}if(o){var M=e.havingStyle(e.style.sub());h=e0(o,M,e),f||(v=l.depth+M.fontMetrics().subDrop*M.sizeMultiplier/e.sizeMultiplier)}var g;e.style===o2.DISPLAY?g=s.sup1:e.style.cramped?g=s.sup3:g=s.sup2;var H=e.sizeMultiplier,p=bt(.5/s.ptPerEm/H),m=null;if(h){var z=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(l instanceof Kn||z)&&(m=bt(-l.italic))}var w;if(c&&h){u=Math.max(u,g,c.depth+.25*s.xHeight),v=Math.max(v,s.sub2);var x=s.defaultRuleThickness,y=4*x;if(u-c.depth-(h.height-v)0&&(u+=V,v-=V)}var C=[{type:"elem",elem:h,shift:v,marginRight:p,marginLeft:m},{type:"elem",elem:c,shift:-u,marginRight:p}];w=$1.makeVList({positionType:"individualShift",children:C},e)}else if(h){v=Math.max(v,s.sub1,h.height-.8*s.xHeight);var L=[{type:"elem",elem:h,marginLeft:m,marginRight:p}];w=$1.makeVList({positionType:"shift",positionData:v,children:L},e)}else if(c)u=Math.max(u,g,c.depth+.25*s.xHeight),w=$1.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:c,marginRight:p}]},e);else throw new Error("supsub must have either sup or sub.");var B=iL(l,"right")||"mord";return $1.makeSpan([B],[l,$1.makeSpan(["msupsub"],[w])],e)},mathmlBuilder(t,e){var a=!1,n,r;t.base&&t.base.type==="horizBrace"&&(r=!!t.sup,r===t.base.isOver&&(a=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var o=[D0(t.base,e)];t.sub&&o.push(D0(t.sub,e)),t.sup&&o.push(D0(t.sup,e));var l;if(a)l=n?"mover":"munder";else if(t.sub)if(t.sup){var s=t.base;s&&s.type==="op"&&s.limits&&e.style===o2.DISPLAY||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(e.style===o2.DISPLAY||s.limits)?l="munderover":l="msubsup"}else{var h=t.base;h&&h.type==="op"&&h.limits&&(e.style===o2.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||e.style===o2.DISPLAY)?l="munder":l="msub"}else{var c=t.base;c&&c.type==="op"&&c.limits&&(e.style===o2.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||e.style===o2.DISPLAY)?l="mover":l="msup"}return new dt.MathNode(l,o)}});ml({type:"atom",htmlBuilder(t,e){return $1.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var a=new dt.MathNode("mo",[Yn(t.text,t.mode)]);if(t.family==="bin"){var n=XS(t,e);n==="bold-italic"&&a.setAttribute("mathvariant",n)}else t.family==="punct"?a.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&a.setAttribute("stretchy","false");return a}});var qX={mi:"italic",mn:"normal",mtext:"normal"};ml({type:"mathord",htmlBuilder(t,e){return $1.makeOrd(t,e,"mathord")},mathmlBuilder(t,e){var a=new dt.MathNode("mi",[Yn(t.text,t.mode,e)]),n=XS(t,e)||"italic";return n!==qX[a.type]&&a.setAttribute("mathvariant",n),a}});ml({type:"textord",htmlBuilder(t,e){return $1.makeOrd(t,e,"textord")},mathmlBuilder(t,e){var a=Yn(t.text,t.mode,e),n=XS(t,e)||"normal",r;return t.mode==="text"?r=new dt.MathNode("mtext",[a]):/[0-9]/.test(t.text)?r=new dt.MathNode("mn",[a]):t.text==="\\prime"?r=new dt.MathNode("mo",[a]):r=new dt.MathNode("mi",[a]),n!==qX[r.type]&&r.setAttribute("mathvariant",n),r}});var Yx={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Zx={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ml({type:"spacing",htmlBuilder(t,e){if(Zx.hasOwnProperty(t.text)){var a=Zx[t.text].className||"";if(t.mode==="text"){var n=$1.makeOrd(t,e,"textord");return n.classes.push(a),n}else return $1.makeSpan(["mspace",a],[$1.mathsym(t.text,t.mode,e)],e)}else{if(Yx.hasOwnProperty(t.text))return $1.makeSpan(["mspace",Yx[t.text]],[],e);throw new zt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var a;if(Zx.hasOwnProperty(t.text))a=new dt.MathNode("mtext",[new dt.TextNode(" ")]);else{if(Yx.hasOwnProperty(t.text))return new dt.MathNode("mspace");throw new zt('Unknown type of space "'+t.text+'"')}return a}});var ej=()=>{var t=new dt.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};ml({type:"tag",mathmlBuilder(t,e){var a=new dt.MathNode("mtable",[new dt.MathNode("mtr",[ej(),new dt.MathNode("mtd",[fo(t.body,e)]),ej(),new dt.MathNode("mtd",[fo(t.tag,e)])])]);return a.setAttribute("width","100%"),a}});var aj={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},nj={"\\textbf":"textbf","\\textmd":"textmd"},vC1={"\\textit":"textit","\\textup":"textup"},rj=(t,e)=>{var a=t.font;return a?aj[a]?e.withTextFontFamily(aj[a]):nj[a]?e.withTextFontWeight(nj[a]):e.withTextFontShape(vC1[a]):e};Nt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:a,funcName:n}=t,r=e[0];return{type:"text",mode:a.mode,body:ke(r),font:n}},htmlBuilder(t,e){var a=rj(t,e),n=s4(t.body,a,!0);return $1.makeSpan(["mord","text"],n,a)},mathmlBuilder(t,e){var a=rj(t,e);return fo(t.body,a)}});Nt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:a}=t;return{type:"underline",mode:a.mode,body:e[0]}},htmlBuilder(t,e){var a=e0(t.body,e),n=$1.makeLineSpan("underline-line",e),r=e.fontMetrics().defaultRuleThickness,o=$1.makeVList({positionType:"top",positionData:a.height,children:[{type:"kern",size:r},{type:"elem",elem:n},{type:"kern",size:3*r},{type:"elem",elem:a}]},e);return $1.makeSpan(["mord","underline"],[o],e)},mathmlBuilder(t,e){var a=new dt.MathNode("mo",[new dt.TextNode("‾")]);a.setAttribute("stretchy","true");var n=new dt.MathNode("munder",[D0(t.body,e),a]);return n.setAttribute("accentunder","true"),n}});Nt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:a}=t;return{type:"vcenter",mode:a.mode,body:e[0]}},htmlBuilder(t,e){var a=e0(t.body,e),n=e.fontMetrics().axisHeight,r=.5*(a.height-n-(a.depth+n));return $1.makeVList({positionType:"shift",positionData:r,children:[{type:"elem",elem:a}]},e)},mathmlBuilder(t,e){return new dt.MathNode("mpadded",[D0(t.body,e)],["vcenter"])}});Nt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,a){throw new zt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var a=ij(t),n=[],r=e.havingStyle(e.style.text()),o=0;ot.body.replace(/ /g,t.star?"␣":" "),j3=gX,GX=`[ \r - ]`,dC1="\\\\[a-zA-Z@]+",fC1="\\\\[^\uD800-\uDFFF]",gC1="("+dC1+")"+GX+"*",pC1=`\\\\( +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Wh{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return d2.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),a=0;aa.toText();return this.children.map(e).join("")}}var gi={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},yd={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},OR={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function nV1(t,e){gi[t]=e}function KS(t,e,a){if(!gi[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),r=gi[e][n];if(!r&&t[0]in OR&&(n=OR[t[0]].charCodeAt(0),r=gi[e][n]),!r&&a==="text"&&iX(n)&&(r=gi[e][77]),r)return{depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]}}var Dx={};function rV1(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!Dx[e]){var a=Dx[e]={cssEmPerMu:yd.quad[e]/18};for(var n in yd)yd.hasOwnProperty(n)&&(a[n]=yd[n][e])}return Dx[e]}var iV1=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],AR=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],kR=function(e,a){return a.size<2?e:iV1[e-1][a.size-1]};class i5{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||i5.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=AR[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var a={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in e)e.hasOwnProperty(n)&&(a[n]=e[n]);return new i5(a)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:kR(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:AR[e-1]})}havingBaseStyle(e){e=e||this.style.text();var a=kR(i5.BASESIZE,e);return this.size===a&&this.textSize===i5.BASESIZE&&this.style===e?this:this.extend({style:e,size:a})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==i5.BASESIZE?["sizing","reset-size"+this.size,"size"+i5.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=rV1(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}i5.BASESIZE=6;var aL={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},oV1={ex:!0,em:!0,mu:!0},oX=function(e){return typeof e!="string"&&(e=e.unit),e in aL||e in oV1||e==="ex"},me=function(e,a){var n;if(e.unit in aL)n=aL[e.unit]/a.fontMetrics().ptPerEm/a.sizeMultiplier;else if(e.unit==="mu")n=a.fontMetrics().cssEmPerMu;else{var r;if(a.style.isTight()?r=a.havingStyle(a.style.text()):r=a,e.unit==="ex")n=r.fontMetrics().xHeight;else if(e.unit==="em")n=r.fontMetrics().quad;else throw new zt("Invalid unit: '"+e.unit+"'");r!==a&&(n*=r.sizeMultiplier/a.sizeMultiplier)}return Math.min(e.number*n,a.maxSize)},bt=function(e){return+e.toFixed(4)+"em"},uo=function(e){return e.filter(a=>a).join(" ")},lX=function(e,a,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},a){a.style.isTight()&&this.classes.push("mtight");var r=a.getColor();r&&(this.style.color=r)}},cX=function(e){var a=document.createElement(e);a.className=uo(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(a.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&a.setAttribute(r,this.attributes[r]);for(var o=0;o",a};let qh=class{constructor(e,a,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,lX.call(this,e,n,r),this.children=a||[]}setAttribute(e,a){this.attributes[e]=a}hasClass(e){return d2.contains(this.classes,e)}toNode(){return cX.call(this,"span")}toMarkup(){return sX.call(this,"span")}};class YS{constructor(e,a,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,lX.call(this,a,r),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,a){this.attributes[e]=a}hasClass(e){return d2.contains(this.classes,e)}toNode(){return cX.call(this,"a")}toMarkup(){return sX.call(this,"a")}}class lV1{constructor(e,a,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=a,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return d2.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var a in this.style)this.style.hasOwnProperty(a)&&(e.style[a]=this.style[a]);return e}toMarkup(){var e=""+this.alt+"0&&(a=document.createElement("span"),a.style.marginRight=bt(this.italic)),this.classes.length>0&&(a=a||document.createElement("span"),a.className=uo(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(a=a||document.createElement("span"),a.style[n]=this.style[n]);return a?(a.appendChild(e),a):e}toMarkup(){var e=!1,a="0&&(n+="margin-right:"+this.italic+"em;");for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=d2.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,a+=' style="'+d2.escape(n)+'"');var o=d2.escape(this.text);return e?(a+=">",a+=o,a+="",a):o}}class C5{constructor(e,a){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=a||{}}toNode(){var e="http://www.w3.org/2000/svg",a=document.createElementNS(e,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&a.setAttribute(n,this.attributes[n]);for(var r=0;r":""}}class nL{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",a=document.createElementNS(e,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&a.setAttribute(n,this.attributes[n]);return a}toMarkup(){var e=" but got "+String(t)+".")}var hV1={bin:1,close:1,inner:1,open:1,punct:1,rel:1},uV1={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},q0={math:{},text:{}};function O(t,e,a,n,r,o){q0[t][r]={font:e,group:a,replace:n},o&&n&&(q0[t][n]=q0[t][r])}var N="math",lt="text",K="main",d1="ams",he="accent-token",jt="bin",ya="close",Xc="inner",i2="mathord",Qe="op-token",dn="open",Fz="punct",p1="rel",j5="spacing",O1="textord";O(N,K,p1,"≡","\\equiv",!0);O(N,K,p1,"≺","\\prec",!0);O(N,K,p1,"≻","\\succ",!0);O(N,K,p1,"∼","\\sim",!0);O(N,K,p1,"⊥","\\perp");O(N,K,p1,"⪯","\\preceq",!0);O(N,K,p1,"⪰","\\succeq",!0);O(N,K,p1,"≃","\\simeq",!0);O(N,K,p1,"∣","\\mid",!0);O(N,K,p1,"≪","\\ll",!0);O(N,K,p1,"≫","\\gg",!0);O(N,K,p1,"≍","\\asymp",!0);O(N,K,p1,"∥","\\parallel");O(N,K,p1,"⋈","\\bowtie",!0);O(N,K,p1,"⌣","\\smile",!0);O(N,K,p1,"⊑","\\sqsubseteq",!0);O(N,K,p1,"⊒","\\sqsupseteq",!0);O(N,K,p1,"≐","\\doteq",!0);O(N,K,p1,"⌢","\\frown",!0);O(N,K,p1,"∋","\\ni",!0);O(N,K,p1,"∝","\\propto",!0);O(N,K,p1,"⊢","\\vdash",!0);O(N,K,p1,"⊣","\\dashv",!0);O(N,K,p1,"∋","\\owns");O(N,K,Fz,".","\\ldotp");O(N,K,Fz,"⋅","\\cdotp");O(N,K,O1,"#","\\#");O(lt,K,O1,"#","\\#");O(N,K,O1,"&","\\&");O(lt,K,O1,"&","\\&");O(N,K,O1,"ℵ","\\aleph",!0);O(N,K,O1,"∀","\\forall",!0);O(N,K,O1,"ℏ","\\hbar",!0);O(N,K,O1,"∃","\\exists",!0);O(N,K,O1,"∇","\\nabla",!0);O(N,K,O1,"♭","\\flat",!0);O(N,K,O1,"ℓ","\\ell",!0);O(N,K,O1,"♮","\\natural",!0);O(N,K,O1,"♣","\\clubsuit",!0);O(N,K,O1,"℘","\\wp",!0);O(N,K,O1,"♯","\\sharp",!0);O(N,K,O1,"♢","\\diamondsuit",!0);O(N,K,O1,"ℜ","\\Re",!0);O(N,K,O1,"♡","\\heartsuit",!0);O(N,K,O1,"ℑ","\\Im",!0);O(N,K,O1,"♠","\\spadesuit",!0);O(N,K,O1,"§","\\S",!0);O(lt,K,O1,"§","\\S");O(N,K,O1,"¶","\\P",!0);O(lt,K,O1,"¶","\\P");O(N,K,O1,"†","\\dag");O(lt,K,O1,"†","\\dag");O(lt,K,O1,"†","\\textdagger");O(N,K,O1,"‡","\\ddag");O(lt,K,O1,"‡","\\ddag");O(lt,K,O1,"‡","\\textdaggerdbl");O(N,K,ya,"⎱","\\rmoustache",!0);O(N,K,dn,"⎰","\\lmoustache",!0);O(N,K,ya,"⟯","\\rgroup",!0);O(N,K,dn,"⟮","\\lgroup",!0);O(N,K,jt,"∓","\\mp",!0);O(N,K,jt,"⊖","\\ominus",!0);O(N,K,jt,"⊎","\\uplus",!0);O(N,K,jt,"⊓","\\sqcap",!0);O(N,K,jt,"∗","\\ast");O(N,K,jt,"⊔","\\sqcup",!0);O(N,K,jt,"◯","\\bigcirc",!0);O(N,K,jt,"∙","\\bullet",!0);O(N,K,jt,"‡","\\ddagger");O(N,K,jt,"≀","\\wr",!0);O(N,K,jt,"⨿","\\amalg");O(N,K,jt,"&","\\And");O(N,K,p1,"⟵","\\longleftarrow",!0);O(N,K,p1,"⇐","\\Leftarrow",!0);O(N,K,p1,"⟸","\\Longleftarrow",!0);O(N,K,p1,"⟶","\\longrightarrow",!0);O(N,K,p1,"⇒","\\Rightarrow",!0);O(N,K,p1,"⟹","\\Longrightarrow",!0);O(N,K,p1,"↔","\\leftrightarrow",!0);O(N,K,p1,"⟷","\\longleftrightarrow",!0);O(N,K,p1,"⇔","\\Leftrightarrow",!0);O(N,K,p1,"⟺","\\Longleftrightarrow",!0);O(N,K,p1,"↦","\\mapsto",!0);O(N,K,p1,"⟼","\\longmapsto",!0);O(N,K,p1,"↗","\\nearrow",!0);O(N,K,p1,"↩","\\hookleftarrow",!0);O(N,K,p1,"↪","\\hookrightarrow",!0);O(N,K,p1,"↘","\\searrow",!0);O(N,K,p1,"↼","\\leftharpoonup",!0);O(N,K,p1,"⇀","\\rightharpoonup",!0);O(N,K,p1,"↙","\\swarrow",!0);O(N,K,p1,"↽","\\leftharpoondown",!0);O(N,K,p1,"⇁","\\rightharpoondown",!0);O(N,K,p1,"↖","\\nwarrow",!0);O(N,K,p1,"⇌","\\rightleftharpoons",!0);O(N,d1,p1,"≮","\\nless",!0);O(N,d1,p1,"","\\@nleqslant");O(N,d1,p1,"","\\@nleqq");O(N,d1,p1,"⪇","\\lneq",!0);O(N,d1,p1,"≨","\\lneqq",!0);O(N,d1,p1,"","\\@lvertneqq");O(N,d1,p1,"⋦","\\lnsim",!0);O(N,d1,p1,"⪉","\\lnapprox",!0);O(N,d1,p1,"⊀","\\nprec",!0);O(N,d1,p1,"⋠","\\npreceq",!0);O(N,d1,p1,"⋨","\\precnsim",!0);O(N,d1,p1,"⪹","\\precnapprox",!0);O(N,d1,p1,"≁","\\nsim",!0);O(N,d1,p1,"","\\@nshortmid");O(N,d1,p1,"∤","\\nmid",!0);O(N,d1,p1,"⊬","\\nvdash",!0);O(N,d1,p1,"⊭","\\nvDash",!0);O(N,d1,p1,"⋪","\\ntriangleleft");O(N,d1,p1,"⋬","\\ntrianglelefteq",!0);O(N,d1,p1,"⊊","\\subsetneq",!0);O(N,d1,p1,"","\\@varsubsetneq");O(N,d1,p1,"⫋","\\subsetneqq",!0);O(N,d1,p1,"","\\@varsubsetneqq");O(N,d1,p1,"≯","\\ngtr",!0);O(N,d1,p1,"","\\@ngeqslant");O(N,d1,p1,"","\\@ngeqq");O(N,d1,p1,"⪈","\\gneq",!0);O(N,d1,p1,"≩","\\gneqq",!0);O(N,d1,p1,"","\\@gvertneqq");O(N,d1,p1,"⋧","\\gnsim",!0);O(N,d1,p1,"⪊","\\gnapprox",!0);O(N,d1,p1,"⊁","\\nsucc",!0);O(N,d1,p1,"⋡","\\nsucceq",!0);O(N,d1,p1,"⋩","\\succnsim",!0);O(N,d1,p1,"⪺","\\succnapprox",!0);O(N,d1,p1,"≆","\\ncong",!0);O(N,d1,p1,"","\\@nshortparallel");O(N,d1,p1,"∦","\\nparallel",!0);O(N,d1,p1,"⊯","\\nVDash",!0);O(N,d1,p1,"⋫","\\ntriangleright");O(N,d1,p1,"⋭","\\ntrianglerighteq",!0);O(N,d1,p1,"","\\@nsupseteqq");O(N,d1,p1,"⊋","\\supsetneq",!0);O(N,d1,p1,"","\\@varsupsetneq");O(N,d1,p1,"⫌","\\supsetneqq",!0);O(N,d1,p1,"","\\@varsupsetneqq");O(N,d1,p1,"⊮","\\nVdash",!0);O(N,d1,p1,"⪵","\\precneqq",!0);O(N,d1,p1,"⪶","\\succneqq",!0);O(N,d1,p1,"","\\@nsubseteqq");O(N,d1,jt,"⊴","\\unlhd");O(N,d1,jt,"⊵","\\unrhd");O(N,d1,p1,"↚","\\nleftarrow",!0);O(N,d1,p1,"↛","\\nrightarrow",!0);O(N,d1,p1,"⇍","\\nLeftarrow",!0);O(N,d1,p1,"⇏","\\nRightarrow",!0);O(N,d1,p1,"↮","\\nleftrightarrow",!0);O(N,d1,p1,"⇎","\\nLeftrightarrow",!0);O(N,d1,p1,"△","\\vartriangle");O(N,d1,O1,"ℏ","\\hslash");O(N,d1,O1,"▽","\\triangledown");O(N,d1,O1,"◊","\\lozenge");O(N,d1,O1,"Ⓢ","\\circledS");O(N,d1,O1,"®","\\circledR");O(lt,d1,O1,"®","\\circledR");O(N,d1,O1,"∡","\\measuredangle",!0);O(N,d1,O1,"∄","\\nexists");O(N,d1,O1,"℧","\\mho");O(N,d1,O1,"Ⅎ","\\Finv",!0);O(N,d1,O1,"⅁","\\Game",!0);O(N,d1,O1,"‵","\\backprime");O(N,d1,O1,"▲","\\blacktriangle");O(N,d1,O1,"▼","\\blacktriangledown");O(N,d1,O1,"■","\\blacksquare");O(N,d1,O1,"⧫","\\blacklozenge");O(N,d1,O1,"★","\\bigstar");O(N,d1,O1,"∢","\\sphericalangle",!0);O(N,d1,O1,"∁","\\complement",!0);O(N,d1,O1,"ð","\\eth",!0);O(lt,K,O1,"ð","ð");O(N,d1,O1,"╱","\\diagup");O(N,d1,O1,"╲","\\diagdown");O(N,d1,O1,"□","\\square");O(N,d1,O1,"□","\\Box");O(N,d1,O1,"◊","\\Diamond");O(N,d1,O1,"¥","\\yen",!0);O(lt,d1,O1,"¥","\\yen",!0);O(N,d1,O1,"✓","\\checkmark",!0);O(lt,d1,O1,"✓","\\checkmark");O(N,d1,O1,"ℶ","\\beth",!0);O(N,d1,O1,"ℸ","\\daleth",!0);O(N,d1,O1,"ℷ","\\gimel",!0);O(N,d1,O1,"ϝ","\\digamma",!0);O(N,d1,O1,"ϰ","\\varkappa");O(N,d1,dn,"┌","\\@ulcorner",!0);O(N,d1,ya,"┐","\\@urcorner",!0);O(N,d1,dn,"└","\\@llcorner",!0);O(N,d1,ya,"┘","\\@lrcorner",!0);O(N,d1,p1,"≦","\\leqq",!0);O(N,d1,p1,"⩽","\\leqslant",!0);O(N,d1,p1,"⪕","\\eqslantless",!0);O(N,d1,p1,"≲","\\lesssim",!0);O(N,d1,p1,"⪅","\\lessapprox",!0);O(N,d1,p1,"≊","\\approxeq",!0);O(N,d1,jt,"⋖","\\lessdot");O(N,d1,p1,"⋘","\\lll",!0);O(N,d1,p1,"≶","\\lessgtr",!0);O(N,d1,p1,"⋚","\\lesseqgtr",!0);O(N,d1,p1,"⪋","\\lesseqqgtr",!0);O(N,d1,p1,"≑","\\doteqdot");O(N,d1,p1,"≓","\\risingdotseq",!0);O(N,d1,p1,"≒","\\fallingdotseq",!0);O(N,d1,p1,"∽","\\backsim",!0);O(N,d1,p1,"⋍","\\backsimeq",!0);O(N,d1,p1,"⫅","\\subseteqq",!0);O(N,d1,p1,"⋐","\\Subset",!0);O(N,d1,p1,"⊏","\\sqsubset",!0);O(N,d1,p1,"≼","\\preccurlyeq",!0);O(N,d1,p1,"⋞","\\curlyeqprec",!0);O(N,d1,p1,"≾","\\precsim",!0);O(N,d1,p1,"⪷","\\precapprox",!0);O(N,d1,p1,"⊲","\\vartriangleleft");O(N,d1,p1,"⊴","\\trianglelefteq");O(N,d1,p1,"⊨","\\vDash",!0);O(N,d1,p1,"⊪","\\Vvdash",!0);O(N,d1,p1,"⌣","\\smallsmile");O(N,d1,p1,"⌢","\\smallfrown");O(N,d1,p1,"≏","\\bumpeq",!0);O(N,d1,p1,"≎","\\Bumpeq",!0);O(N,d1,p1,"≧","\\geqq",!0);O(N,d1,p1,"⩾","\\geqslant",!0);O(N,d1,p1,"⪖","\\eqslantgtr",!0);O(N,d1,p1,"≳","\\gtrsim",!0);O(N,d1,p1,"⪆","\\gtrapprox",!0);O(N,d1,jt,"⋗","\\gtrdot");O(N,d1,p1,"⋙","\\ggg",!0);O(N,d1,p1,"≷","\\gtrless",!0);O(N,d1,p1,"⋛","\\gtreqless",!0);O(N,d1,p1,"⪌","\\gtreqqless",!0);O(N,d1,p1,"≖","\\eqcirc",!0);O(N,d1,p1,"≗","\\circeq",!0);O(N,d1,p1,"≜","\\triangleq",!0);O(N,d1,p1,"∼","\\thicksim");O(N,d1,p1,"≈","\\thickapprox");O(N,d1,p1,"⫆","\\supseteqq",!0);O(N,d1,p1,"⋑","\\Supset",!0);O(N,d1,p1,"⊐","\\sqsupset",!0);O(N,d1,p1,"≽","\\succcurlyeq",!0);O(N,d1,p1,"⋟","\\curlyeqsucc",!0);O(N,d1,p1,"≿","\\succsim",!0);O(N,d1,p1,"⪸","\\succapprox",!0);O(N,d1,p1,"⊳","\\vartriangleright");O(N,d1,p1,"⊵","\\trianglerighteq");O(N,d1,p1,"⊩","\\Vdash",!0);O(N,d1,p1,"∣","\\shortmid");O(N,d1,p1,"∥","\\shortparallel");O(N,d1,p1,"≬","\\between",!0);O(N,d1,p1,"⋔","\\pitchfork",!0);O(N,d1,p1,"∝","\\varpropto");O(N,d1,p1,"◀","\\blacktriangleleft");O(N,d1,p1,"∴","\\therefore",!0);O(N,d1,p1,"∍","\\backepsilon");O(N,d1,p1,"▶","\\blacktriangleright");O(N,d1,p1,"∵","\\because",!0);O(N,d1,p1,"⋘","\\llless");O(N,d1,p1,"⋙","\\gggtr");O(N,d1,jt,"⊲","\\lhd");O(N,d1,jt,"⊳","\\rhd");O(N,d1,p1,"≂","\\eqsim",!0);O(N,K,p1,"⋈","\\Join");O(N,d1,p1,"≑","\\Doteq",!0);O(N,d1,jt,"∔","\\dotplus",!0);O(N,d1,jt,"∖","\\smallsetminus");O(N,d1,jt,"⋒","\\Cap",!0);O(N,d1,jt,"⋓","\\Cup",!0);O(N,d1,jt,"⩞","\\doublebarwedge",!0);O(N,d1,jt,"⊟","\\boxminus",!0);O(N,d1,jt,"⊞","\\boxplus",!0);O(N,d1,jt,"⋇","\\divideontimes",!0);O(N,d1,jt,"⋉","\\ltimes",!0);O(N,d1,jt,"⋊","\\rtimes",!0);O(N,d1,jt,"⋋","\\leftthreetimes",!0);O(N,d1,jt,"⋌","\\rightthreetimes",!0);O(N,d1,jt,"⋏","\\curlywedge",!0);O(N,d1,jt,"⋎","\\curlyvee",!0);O(N,d1,jt,"⊝","\\circleddash",!0);O(N,d1,jt,"⊛","\\circledast",!0);O(N,d1,jt,"⋅","\\centerdot");O(N,d1,jt,"⊺","\\intercal",!0);O(N,d1,jt,"⋒","\\doublecap");O(N,d1,jt,"⋓","\\doublecup");O(N,d1,jt,"⊠","\\boxtimes",!0);O(N,d1,p1,"⇢","\\dashrightarrow",!0);O(N,d1,p1,"⇠","\\dashleftarrow",!0);O(N,d1,p1,"⇇","\\leftleftarrows",!0);O(N,d1,p1,"⇆","\\leftrightarrows",!0);O(N,d1,p1,"⇚","\\Lleftarrow",!0);O(N,d1,p1,"↞","\\twoheadleftarrow",!0);O(N,d1,p1,"↢","\\leftarrowtail",!0);O(N,d1,p1,"↫","\\looparrowleft",!0);O(N,d1,p1,"⇋","\\leftrightharpoons",!0);O(N,d1,p1,"↶","\\curvearrowleft",!0);O(N,d1,p1,"↺","\\circlearrowleft",!0);O(N,d1,p1,"↰","\\Lsh",!0);O(N,d1,p1,"⇈","\\upuparrows",!0);O(N,d1,p1,"↿","\\upharpoonleft",!0);O(N,d1,p1,"⇃","\\downharpoonleft",!0);O(N,K,p1,"⊶","\\origof",!0);O(N,K,p1,"⊷","\\imageof",!0);O(N,d1,p1,"⊸","\\multimap",!0);O(N,d1,p1,"↭","\\leftrightsquigarrow",!0);O(N,d1,p1,"⇉","\\rightrightarrows",!0);O(N,d1,p1,"⇄","\\rightleftarrows",!0);O(N,d1,p1,"↠","\\twoheadrightarrow",!0);O(N,d1,p1,"↣","\\rightarrowtail",!0);O(N,d1,p1,"↬","\\looparrowright",!0);O(N,d1,p1,"↷","\\curvearrowright",!0);O(N,d1,p1,"↻","\\circlearrowright",!0);O(N,d1,p1,"↱","\\Rsh",!0);O(N,d1,p1,"⇊","\\downdownarrows",!0);O(N,d1,p1,"↾","\\upharpoonright",!0);O(N,d1,p1,"⇂","\\downharpoonright",!0);O(N,d1,p1,"⇝","\\rightsquigarrow",!0);O(N,d1,p1,"⇝","\\leadsto");O(N,d1,p1,"⇛","\\Rrightarrow",!0);O(N,d1,p1,"↾","\\restriction");O(N,K,O1,"‘","`");O(N,K,O1,"$","\\$");O(lt,K,O1,"$","\\$");O(lt,K,O1,"$","\\textdollar");O(N,K,O1,"%","\\%");O(lt,K,O1,"%","\\%");O(N,K,O1,"_","\\_");O(lt,K,O1,"_","\\_");O(lt,K,O1,"_","\\textunderscore");O(N,K,O1,"∠","\\angle",!0);O(N,K,O1,"∞","\\infty",!0);O(N,K,O1,"′","\\prime");O(N,K,O1,"△","\\triangle");O(N,K,O1,"Γ","\\Gamma",!0);O(N,K,O1,"Δ","\\Delta",!0);O(N,K,O1,"Θ","\\Theta",!0);O(N,K,O1,"Λ","\\Lambda",!0);O(N,K,O1,"Ξ","\\Xi",!0);O(N,K,O1,"Π","\\Pi",!0);O(N,K,O1,"Σ","\\Sigma",!0);O(N,K,O1,"Υ","\\Upsilon",!0);O(N,K,O1,"Φ","\\Phi",!0);O(N,K,O1,"Ψ","\\Psi",!0);O(N,K,O1,"Ω","\\Omega",!0);O(N,K,O1,"A","Α");O(N,K,O1,"B","Β");O(N,K,O1,"E","Ε");O(N,K,O1,"Z","Ζ");O(N,K,O1,"H","Η");O(N,K,O1,"I","Ι");O(N,K,O1,"K","Κ");O(N,K,O1,"M","Μ");O(N,K,O1,"N","Ν");O(N,K,O1,"O","Ο");O(N,K,O1,"P","Ρ");O(N,K,O1,"T","Τ");O(N,K,O1,"X","Χ");O(N,K,O1,"¬","\\neg",!0);O(N,K,O1,"¬","\\lnot");O(N,K,O1,"⊤","\\top");O(N,K,O1,"⊥","\\bot");O(N,K,O1,"∅","\\emptyset");O(N,d1,O1,"∅","\\varnothing");O(N,K,i2,"α","\\alpha",!0);O(N,K,i2,"β","\\beta",!0);O(N,K,i2,"γ","\\gamma",!0);O(N,K,i2,"δ","\\delta",!0);O(N,K,i2,"ϵ","\\epsilon",!0);O(N,K,i2,"ζ","\\zeta",!0);O(N,K,i2,"η","\\eta",!0);O(N,K,i2,"θ","\\theta",!0);O(N,K,i2,"ι","\\iota",!0);O(N,K,i2,"κ","\\kappa",!0);O(N,K,i2,"λ","\\lambda",!0);O(N,K,i2,"μ","\\mu",!0);O(N,K,i2,"ν","\\nu",!0);O(N,K,i2,"ξ","\\xi",!0);O(N,K,i2,"ο","\\omicron",!0);O(N,K,i2,"π","\\pi",!0);O(N,K,i2,"ρ","\\rho",!0);O(N,K,i2,"σ","\\sigma",!0);O(N,K,i2,"τ","\\tau",!0);O(N,K,i2,"υ","\\upsilon",!0);O(N,K,i2,"ϕ","\\phi",!0);O(N,K,i2,"χ","\\chi",!0);O(N,K,i2,"ψ","\\psi",!0);O(N,K,i2,"ω","\\omega",!0);O(N,K,i2,"ε","\\varepsilon",!0);O(N,K,i2,"ϑ","\\vartheta",!0);O(N,K,i2,"ϖ","\\varpi",!0);O(N,K,i2,"ϱ","\\varrho",!0);O(N,K,i2,"ς","\\varsigma",!0);O(N,K,i2,"φ","\\varphi",!0);O(N,K,jt,"∗","*",!0);O(N,K,jt,"+","+");O(N,K,jt,"−","-",!0);O(N,K,jt,"⋅","\\cdot",!0);O(N,K,jt,"∘","\\circ",!0);O(N,K,jt,"÷","\\div",!0);O(N,K,jt,"±","\\pm",!0);O(N,K,jt,"×","\\times",!0);O(N,K,jt,"∩","\\cap",!0);O(N,K,jt,"∪","\\cup",!0);O(N,K,jt,"∖","\\setminus",!0);O(N,K,jt,"∧","\\land");O(N,K,jt,"∨","\\lor");O(N,K,jt,"∧","\\wedge",!0);O(N,K,jt,"∨","\\vee",!0);O(N,K,O1,"√","\\surd");O(N,K,dn,"⟨","\\langle",!0);O(N,K,dn,"∣","\\lvert");O(N,K,dn,"∥","\\lVert");O(N,K,ya,"?","?");O(N,K,ya,"!","!");O(N,K,ya,"⟩","\\rangle",!0);O(N,K,ya,"∣","\\rvert");O(N,K,ya,"∥","\\rVert");O(N,K,p1,"=","=");O(N,K,p1,":",":");O(N,K,p1,"≈","\\approx",!0);O(N,K,p1,"≅","\\cong",!0);O(N,K,p1,"≥","\\ge");O(N,K,p1,"≥","\\geq",!0);O(N,K,p1,"←","\\gets");O(N,K,p1,">","\\gt",!0);O(N,K,p1,"∈","\\in",!0);O(N,K,p1,"","\\@not");O(N,K,p1,"⊂","\\subset",!0);O(N,K,p1,"⊃","\\supset",!0);O(N,K,p1,"⊆","\\subseteq",!0);O(N,K,p1,"⊇","\\supseteq",!0);O(N,d1,p1,"⊈","\\nsubseteq",!0);O(N,d1,p1,"⊉","\\nsupseteq",!0);O(N,K,p1,"⊨","\\models");O(N,K,p1,"←","\\leftarrow",!0);O(N,K,p1,"≤","\\le");O(N,K,p1,"≤","\\leq",!0);O(N,K,p1,"<","\\lt",!0);O(N,K,p1,"→","\\rightarrow",!0);O(N,K,p1,"→","\\to");O(N,d1,p1,"≱","\\ngeq",!0);O(N,d1,p1,"≰","\\nleq",!0);O(N,K,j5," ","\\ ");O(N,K,j5," ","\\space");O(N,K,j5," ","\\nobreakspace");O(lt,K,j5," ","\\ ");O(lt,K,j5," "," ");O(lt,K,j5," ","\\space");O(lt,K,j5," ","\\nobreakspace");O(N,K,j5,null,"\\nobreak");O(N,K,j5,null,"\\allowbreak");O(N,K,Fz,",",",");O(N,K,Fz,";",";");O(N,d1,jt,"⊼","\\barwedge",!0);O(N,d1,jt,"⊻","\\veebar",!0);O(N,K,jt,"⊙","\\odot",!0);O(N,K,jt,"⊕","\\oplus",!0);O(N,K,jt,"⊗","\\otimes",!0);O(N,K,O1,"∂","\\partial",!0);O(N,K,jt,"⊘","\\oslash",!0);O(N,d1,jt,"⊚","\\circledcirc",!0);O(N,d1,jt,"⊡","\\boxdot",!0);O(N,K,jt,"△","\\bigtriangleup");O(N,K,jt,"▽","\\bigtriangledown");O(N,K,jt,"†","\\dagger");O(N,K,jt,"⋄","\\diamond");O(N,K,jt,"⋆","\\star");O(N,K,jt,"◃","\\triangleleft");O(N,K,jt,"▹","\\triangleright");O(N,K,dn,"{","\\{");O(lt,K,O1,"{","\\{");O(lt,K,O1,"{","\\textbraceleft");O(N,K,ya,"}","\\}");O(lt,K,O1,"}","\\}");O(lt,K,O1,"}","\\textbraceright");O(N,K,dn,"{","\\lbrace");O(N,K,ya,"}","\\rbrace");O(N,K,dn,"[","\\lbrack",!0);O(lt,K,O1,"[","\\lbrack",!0);O(N,K,ya,"]","\\rbrack",!0);O(lt,K,O1,"]","\\rbrack",!0);O(N,K,dn,"(","\\lparen",!0);O(N,K,ya,")","\\rparen",!0);O(lt,K,O1,"<","\\textless",!0);O(lt,K,O1,">","\\textgreater",!0);O(N,K,dn,"⌊","\\lfloor",!0);O(N,K,ya,"⌋","\\rfloor",!0);O(N,K,dn,"⌈","\\lceil",!0);O(N,K,ya,"⌉","\\rceil",!0);O(N,K,O1,"\\","\\backslash");O(N,K,O1,"∣","|");O(N,K,O1,"∣","\\vert");O(lt,K,O1,"|","\\textbar",!0);O(N,K,O1,"∥","\\|");O(N,K,O1,"∥","\\Vert");O(lt,K,O1,"∥","\\textbardbl");O(lt,K,O1,"~","\\textasciitilde");O(lt,K,O1,"\\","\\textbackslash");O(lt,K,O1,"^","\\textasciicircum");O(N,K,p1,"↑","\\uparrow",!0);O(N,K,p1,"⇑","\\Uparrow",!0);O(N,K,p1,"↓","\\downarrow",!0);O(N,K,p1,"⇓","\\Downarrow",!0);O(N,K,p1,"↕","\\updownarrow",!0);O(N,K,p1,"⇕","\\Updownarrow",!0);O(N,K,Qe,"∐","\\coprod");O(N,K,Qe,"⋁","\\bigvee");O(N,K,Qe,"⋀","\\bigwedge");O(N,K,Qe,"⨄","\\biguplus");O(N,K,Qe,"⋂","\\bigcap");O(N,K,Qe,"⋃","\\bigcup");O(N,K,Qe,"∫","\\int");O(N,K,Qe,"∫","\\intop");O(N,K,Qe,"∬","\\iint");O(N,K,Qe,"∭","\\iiint");O(N,K,Qe,"∏","\\prod");O(N,K,Qe,"∑","\\sum");O(N,K,Qe,"⨂","\\bigotimes");O(N,K,Qe,"⨁","\\bigoplus");O(N,K,Qe,"⨀","\\bigodot");O(N,K,Qe,"∮","\\oint");O(N,K,Qe,"∯","\\oiint");O(N,K,Qe,"∰","\\oiiint");O(N,K,Qe,"⨆","\\bigsqcup");O(N,K,Qe,"∫","\\smallint");O(lt,K,Xc,"…","\\textellipsis");O(N,K,Xc,"…","\\mathellipsis");O(lt,K,Xc,"…","\\ldots",!0);O(N,K,Xc,"…","\\ldots",!0);O(N,K,Xc,"⋯","\\@cdots",!0);O(N,K,Xc,"⋱","\\ddots",!0);O(N,K,O1,"⋮","\\varvdots");O(N,K,he,"ˊ","\\acute");O(N,K,he,"ˋ","\\grave");O(N,K,he,"¨","\\ddot");O(N,K,he,"~","\\tilde");O(N,K,he,"ˉ","\\bar");O(N,K,he,"˘","\\breve");O(N,K,he,"ˇ","\\check");O(N,K,he,"^","\\hat");O(N,K,he,"⃗","\\vec");O(N,K,he,"˙","\\dot");O(N,K,he,"˚","\\mathring");O(N,K,i2,"","\\@imath");O(N,K,i2,"","\\@jmath");O(N,K,O1,"ı","ı");O(N,K,O1,"ȷ","ȷ");O(lt,K,O1,"ı","\\i",!0);O(lt,K,O1,"ȷ","\\j",!0);O(lt,K,O1,"ß","\\ss",!0);O(lt,K,O1,"æ","\\ae",!0);O(lt,K,O1,"œ","\\oe",!0);O(lt,K,O1,"ø","\\o",!0);O(lt,K,O1,"Æ","\\AE",!0);O(lt,K,O1,"Œ","\\OE",!0);O(lt,K,O1,"Ø","\\O",!0);O(lt,K,he,"ˊ","\\'");O(lt,K,he,"ˋ","\\`");O(lt,K,he,"ˆ","\\^");O(lt,K,he,"˜","\\~");O(lt,K,he,"ˉ","\\=");O(lt,K,he,"˘","\\u");O(lt,K,he,"˙","\\.");O(lt,K,he,"¸","\\c");O(lt,K,he,"˚","\\r");O(lt,K,he,"ˇ","\\v");O(lt,K,he,"¨",'\\"');O(lt,K,he,"˝","\\H");O(lt,K,he,"◯","\\textcircled");var hX={"--":!0,"---":!0,"``":!0,"''":!0};O(lt,K,O1,"–","--",!0);O(lt,K,O1,"–","\\textendash");O(lt,K,O1,"—","---",!0);O(lt,K,O1,"—","\\textemdash");O(lt,K,O1,"‘","`",!0);O(lt,K,O1,"‘","\\textquoteleft");O(lt,K,O1,"’","'",!0);O(lt,K,O1,"’","\\textquoteright");O(lt,K,O1,"“","``",!0);O(lt,K,O1,"“","\\textquotedblleft");O(lt,K,O1,"”","''",!0);O(lt,K,O1,"”","\\textquotedblright");O(N,K,O1,"°","\\degree",!0);O(lt,K,O1,"°","\\degree");O(lt,K,O1,"°","\\textdegree",!0);O(N,K,O1,"£","\\pounds");O(N,K,O1,"£","\\mathsterling",!0);O(lt,K,O1,"£","\\pounds");O(lt,K,O1,"£","\\textsterling",!0);O(N,d1,O1,"✠","\\maltese");O(lt,d1,O1,"✠","\\maltese");var PR='0123456789/@."';for(var Rx=0;Rx0)return wr(o,s,r,a,l.concat(u));if(h){var v,f;if(h==="boldsymbol"){var d=fV1(o,r,a,l,n);v=d.fontName,f=[d.fontClass]}else c?(v=dX[h].fontName,f=[h]):(v=bd(h,a.fontWeight,a.fontShape),f=[h,a.fontWeight,a.fontShape]);if($z(o,v,r).metrics)return wr(o,v,r,a,l.concat(f));if(hX.hasOwnProperty(o)&&v.slice(0,10)==="Typewriter"){for(var M=[],g=0;g{if(uo(t.classes)!==uo(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;if(t.classes.length===1){var a=t.classes[0];if(a==="mbin"||a==="mord")return!1}for(var n in t.style)if(t.style.hasOwnProperty(n)&&t.style[n]!==e.style[n])return!1;for(var r in e.style)if(e.style.hasOwnProperty(r)&&t.style[r]!==e.style[r])return!1;return!0},mV1=t=>{for(var e=0;ea&&(a=l.height),l.depth>n&&(n=l.depth),l.maxFontSize>r&&(r=l.maxFontSize)}e.height=a,e.depth=n,e.maxFontSize=r},Ta=function(e,a,n,r){var o=new qh(e,a,n,r);return ZS(o),o},uX=(t,e,a,n)=>new qh(t,e,a,n),zV1=function(e,a,n){var r=Ta([e],[],a);return r.height=Math.max(n||a.fontMetrics().defaultRuleThickness,a.minRuleThickness),r.style.borderBottomWidth=bt(r.height),r.maxFontSize=1,r},MV1=function(e,a,n,r){var o=new YS(e,a,n,r);return ZS(o),o},vX=function(e){var a=new Wh(e);return ZS(a),a},HV1=function(e,a){return e instanceof Wh?Ta([],[e],a):e},wV1=function(e){if(e.positionType==="individualShift"){for(var a=e.children,n=[a[0]],r=-a[0].shift-a[0].elem.depth,o=r,l=1;l{var a=Ta(["mspace"],[],e),n=me(t,e);return a.style.marginRight=bt(n),a},bd=function(e,a,n){var r="";switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}var o;return a==="textbf"&&n==="textit"?o="BoldItalic":a==="textbf"?o="Bold":a==="textit"?o="Italic":o="Regular",r+"-"+o},dX={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},fX={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},VV1=function(e,a){var[n,r,o]=fX[e],l=new vo(n),c=new C5([l],{width:bt(r),height:bt(o),style:"width:"+bt(r),viewBox:"0 0 "+1e3*r+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),h=uX(["overlay"],[c],a);return h.height=o,h.style.height=bt(o),h.style.width=bt(r),h},$1={fontMap:dX,makeSymbol:wr,mathsym:dV1,makeSpan:Ta,makeSvgSpan:uX,makeLineSpan:zV1,makeAnchor:MV1,makeFragment:vX,wrapFragment:HV1,makeVList:yV1,makeOrd:gV1,makeGlue:xV1,staticSvg:VV1,svgData:fX,tryCombineChars:mV1},ge={number:3,unit:"mu"},e8={number:4,unit:"mu"},Qi={number:5,unit:"mu"},CV1={mord:{mop:ge,mbin:e8,mrel:Qi,minner:ge},mop:{mord:ge,mop:ge,mrel:Qi,minner:ge},mbin:{mord:e8,mop:e8,mopen:e8,minner:e8},mrel:{mord:Qi,mop:Qi,mopen:Qi,minner:Qi},mopen:{},mclose:{mop:ge,mbin:e8,mrel:Qi,minner:ge},mpunct:{mord:ge,mop:ge,mrel:Qi,mopen:ge,mclose:ge,mpunct:ge,minner:ge},minner:{mord:ge,mop:ge,mbin:e8,mrel:Qi,mopen:ge,mpunct:ge,minner:ge}},bV1={mord:{mop:ge},mop:{mord:ge,mop:ge},mbin:{},mrel:{},mopen:{},mclose:{mop:ge},mpunct:{},minner:{mop:ge}},gX={},Jg={},tp={};function Nt(t){for(var{type:e,names:a,props:n,handler:r,htmlBuilder:o,mathmlBuilder:l}=t,c={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:r},h=0;h{var H=g.classes[0],p=M.classes[0];H==="mbin"&&d2.contains(BV1,p)?g.classes[0]="mord":p==="mbin"&&d2.contains(LV1,H)&&(M.classes[0]="mord")},{node:v},f,d),IR(o,(M,g)=>{var H=iL(g),p=iL(M),m=H&&p?M.hasClass("mtight")?bV1[H][p]:CV1[H][p]:null;if(m)return $1.makeGlue(m,s)},{node:v},f,d),o},IR=function t(e,a,n,r,o){r&&e.push(r);for(var l=0;lf=>{e.splice(v+1,0,f),l++})(l)}r&&e.pop()},pX=function(e){return e instanceof Wh||e instanceof YS||e instanceof qh&&e.hasClass("enclosing")?e:null},TV1=function t(e,a){var n=pX(e);if(n){var r=n.children;if(r.length){if(a==="right")return t(r[r.length-1],"right");if(a==="left")return t(r[0],"left")}}return e},iL=function(e,a){return e?(a&&(e=TV1(e,a)),SV1[e.classes[0]]||null):null},Ws=function(e,a){var n=["nulldelimiter"].concat(e.baseSizingClasses());return b5(a.concat(n))},n0=function(e,a,n){if(!e)return b5();if(Jg[e.type]){var r=Jg[e.type](e,a);if(n&&a.size!==n.size){r=b5(a.sizingClasses(n),[r],a);var o=a.sizeMultiplier/n.sizeMultiplier;r.height*=o,r.depth*=o}return r}else throw new zt("Got group of unknown type: '"+e.type+"'")};function Ld(t,e){var a=b5(["base"],t,e),n=b5(["strut"]);return n.style.height=bt(a.height+a.depth),a.depth&&(n.style.verticalAlign=bt(-a.depth)),a.children.unshift(n),a}function oL(t,e){var a=null;t.length===1&&t[0].type==="tag"&&(a=t[0].tag,t=t[0].body);var n=s4(t,e,"root"),r;n.length===2&&n[1].hasClass("tag")&&(r=n.pop());for(var o=[],l=[],c=0;c0&&(o.push(Ld(l,e)),l=[]),o.push(n[c]));l.length>0&&o.push(Ld(l,e));var s;a?(s=Ld(s4(a,e,!0)),s.classes=["tag"],o.push(s)):r&&o.push(r);var u=b5(["katex-html"],o);if(u.setAttribute("aria-hidden","true"),s){var v=s.children[0];v.style.height=bt(u.height+u.depth),u.depth&&(v.style.verticalAlign=bt(-u.depth))}return u}function mX(t){return new Wh(t)}class En{constructor(e,a,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=a||[],this.classes=n||[]}setAttribute(e,a){this.attributes[e]=a}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&e.setAttribute(a,this.attributes[a]);this.classes.length>0&&(e.className=uo(this.classes));for(var n=0;n0&&(e+=' class ="'+d2.escape(uo(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}}class ns{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return d2.escape(this.toText())}toText(){return this.text}}class OV1{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",bt(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var dt={MathNode:En,TextNode:ns,SpaceNode:OV1,newDocumentFragment:mX},Yn=function(e,a,n){return q0[a][e]&&q0[a][e].replace&&e.charCodeAt(0)!==55349&&!(hX.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=q0[a][e].replace),new dt.TextNode(e)},QS=function(e){return e.length===1?e[0]:new dt.MathNode("mrow",e)},XS=function(e,a){if(a.fontFamily==="texttt")return"monospace";if(a.fontFamily==="textsf")return a.fontShape==="textit"&&a.fontWeight==="textbf"?"sans-serif-bold-italic":a.fontShape==="textit"?"sans-serif-italic":a.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(a.fontShape==="textit"&&a.fontWeight==="textbf")return"bold-italic";if(a.fontShape==="textit")return"italic";if(a.fontWeight==="textbf")return"bold";var n=a.font;if(!n||n==="mathnormal")return null;var r=e.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var o=e.text;if(d2.contains(["\\imath","\\jmath"],o))return null;q0[r][o]&&q0[r][o].replace&&(o=q0[r][o].replace);var l=$1.fontMap[n].fontName;return KS(o,l,r)?$1.fontMap[n].variant:null},Wa=function(e,a,n){if(e.length===1){var r=D0(e[0],a);return n&&r instanceof En&&r.type==="mo"&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var o=[],l,c=0;c0&&(v.text=v.text.slice(0,1)+"̸"+v.text.slice(1),o.pop())}}}o.push(h),l=h}return o},fo=function(e,a,n){return QS(Wa(e,a,n))},D0=function(e,a){if(!e)return new dt.MathNode("mrow");if(tp[e.type]){var n=tp[e.type](e,a);return n}else throw new zt("Got group of unknown type: '"+e.type+"'")};function FR(t,e,a,n,r){var o=Wa(t,a),l;o.length===1&&o[0]instanceof En&&d2.contains(["mrow","mtable"],o[0].type)?l=o[0]:l=new dt.MathNode("mrow",o);var c=new dt.MathNode("annotation",[new dt.TextNode(e)]);c.setAttribute("encoding","application/x-tex");var h=new dt.MathNode("semantics",[l,c]),s=new dt.MathNode("math",[h]);s.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&s.setAttribute("display","block");var u=r?"katex":"katex-mathml";return $1.makeSpan([u],[s])}var zX=function(e){return new i5({style:e.displayMode?o2.DISPLAY:o2.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},MX=function(e,a){if(a.displayMode){var n=["katex-display"];a.leqno&&n.push("leqno"),a.fleqn&&n.push("fleqn"),e=$1.makeSpan(n,[e])}return e},AV1=function(e,a,n){var r=zX(n),o;if(n.output==="mathml")return FR(e,a,r,n.displayMode,!0);if(n.output==="html"){var l=oL(e,r);o=$1.makeSpan(["katex"],[l])}else{var c=FR(e,a,r,n.displayMode,!1),h=oL(e,r);o=$1.makeSpan(["katex"],[c,h])}return MX(o,n)},kV1=function(e,a,n){var r=zX(n),o=oL(e,r),l=$1.makeSpan(["katex"],[o]);return MX(l,n)},EV1={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},PV1=function(e){var a=new dt.MathNode("mo",[new dt.TextNode(EV1[e.replace(/^\\/,"")])]);return a.setAttribute("stretchy","true"),a},NV1={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},DV1=function(e){return e.type==="ordgroup"?e.body.length:1},RV1=function(e,a){function n(){var c=4e5,h=e.label.slice(1);if(d2.contains(["widehat","widecheck","widetilde","utilde"],h)){var s=e,u=DV1(s.base),v,f,d;if(u>5)h==="widehat"||h==="widecheck"?(v=420,c=2364,d=.42,f=h+"4"):(v=312,c=2340,d=.34,f="tilde4");else{var M=[1,1,2,2,3,3][u];h==="widehat"||h==="widecheck"?(c=[0,1062,2364,2364,2364][M],v=[0,239,300,360,420][M],d=[0,.24,.3,.3,.36,.42][M],f=h+M):(c=[0,600,1033,2339,2340][M],v=[0,260,286,306,312][M],d=[0,.26,.286,.3,.306,.34][M],f="tilde"+M)}var g=new vo(f),H=new C5([g],{width:"100%",height:bt(d),viewBox:"0 0 "+c+" "+v,preserveAspectRatio:"none"});return{span:$1.makeSvgSpan([],[H],a),minWidth:0,height:d}}else{var p=[],m=NV1[h],[z,w,x]=m,y=x/1e3,V=z.length,C,L;if(V===1){var B=m[3];C=["hide-tail"],L=[B]}else if(V===2)C=["halfarrow-left","halfarrow-right"],L=["xMinYMin","xMaxYMin"];else if(V===3)C=["brace-left","brace-center","brace-right"],L=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+V+" children.");for(var S=0;S0&&(r.style.minWidth=bt(o)),r},jV1=function(e,a,n,r,o){var l,c=e.height+e.depth+n+r;if(/fbox|color|angl/.test(a)){if(l=$1.makeSpan(["stretchy",a],[],o),a==="fbox"){var h=o.color&&o.getColor();h&&(l.style.borderColor=h)}}else{var s=[];/^[bx]cancel$/.test(a)&&s.push(new nL({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(a)&&s.push(new nL({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new C5(s,{width:"100%",height:bt(c)});l=$1.makeSvgSpan([],[u],o)}return l.height=c,l.style.height=bt(c),l},L5={encloseSpan:jV1,mathMLnode:PV1,svgSpan:RV1};function L2(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function JS(t){var e=Uz(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Uz(t){return t&&(t.type==="atom"||uV1.hasOwnProperty(t.type))?t:null}var tT=(t,e)=>{var a,n,r;t&&t.type==="supsub"?(n=L2(t.base,"accent"),a=n.base,t.base=a,r=sV1(n0(t,e)),t.base=n):(n=L2(t,"accent"),a=n.base);var o=n0(a,e.havingCrampedStyle()),l=n.isShifty&&d2.isCharacterBox(a),c=0;if(l){var h=d2.getBaseElem(a),s=n0(h,e.havingCrampedStyle());c=ER(s).skew}var u=n.label==="\\c",v=u?o.height+o.depth:Math.min(o.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=L5.svgSpan(n,e),f=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:c>0?{width:"calc(100% - "+bt(2*c)+")",marginLeft:bt(2*c)}:void 0}]},e);else{var d,M;n.label==="\\vec"?(d=$1.staticSvg("vec",e),M=$1.svgData.vec[1]):(d=$1.makeOrd({mode:n.mode,text:n.label},e,"textord"),d=ER(d),d.italic=0,M=d.width,u&&(v+=d.depth)),f=$1.makeSpan(["accent-body"],[d]);var g=n.label==="\\textcircled";g&&(f.classes.push("accent-full"),v=o.height);var H=c;g||(H-=M/2),f.style.left=bt(H),n.label==="\\textcircled"&&(f.style.top=".2em"),f=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-v},{type:"elem",elem:f}]},e)}var p=$1.makeSpan(["mord","accent"],[f],e);return r?(r.children[0]=p,r.height=Math.max(p.height,r.height),r.classes[0]="mord",r):p},HX=(t,e)=>{var a=t.isStretchy?L5.mathMLnode(t.label):new dt.MathNode("mo",[Yn(t.label,t.mode)]),n=new dt.MathNode("mover",[D0(t.base,e),a]);return n.setAttribute("accent","true"),n},IV1=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));Nt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(t,e)=>{var a=ep(e[0]),n=!IV1.test(t.funcName),r=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:r,base:a}},htmlBuilder:tT,mathmlBuilder:HX});Nt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var a=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:a}},htmlBuilder:tT,mathmlBuilder:HX});Nt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=e[0];return{type:"accentUnder",mode:a.mode,label:n,base:r}},htmlBuilder:(t,e)=>{var a=n0(t.base,e),n=L5.svgSpan(t,e),r=t.label==="\\utilde"?.12:0,o=$1.makeVList({positionType:"top",positionData:a.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:r},{type:"elem",elem:a}]},e);return $1.makeSpan(["mord","accentunder"],[o],e)},mathmlBuilder:(t,e)=>{var a=L5.mathMLnode(t.label),n=new dt.MathNode("munder",[D0(t.base,e),a]);return n.setAttribute("accentunder","true"),n}});var Bd=t=>{var e=new dt.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};Nt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,a){var{parser:n,funcName:r}=t;return{type:"xArrow",mode:n.mode,label:r,body:e[0],below:a[0]}},htmlBuilder(t,e){var a=e.style,n=e.havingStyle(a.sup()),r=$1.wrapFragment(n0(t.body,n,e),e),o=t.label.slice(0,2)==="\\x"?"x":"cd";r.classes.push(o+"-arrow-pad");var l;t.below&&(n=e.havingStyle(a.sub()),l=$1.wrapFragment(n0(t.below,n,e),e),l.classes.push(o+"-arrow-pad"));var c=L5.svgSpan(t,e),h=-e.fontMetrics().axisHeight+.5*c.height,s=-e.fontMetrics().axisHeight-.5*c.height-.111;(r.depth>.25||t.label==="\\xleftequilibrium")&&(s-=r.depth);var u;if(l){var v=-e.fontMetrics().axisHeight+l.height+.5*c.height+.111;u=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:s},{type:"elem",elem:c,shift:h},{type:"elem",elem:l,shift:v}]},e)}else u=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:s},{type:"elem",elem:c,shift:h}]},e);return u.children[0].children[0].children[1].classes.push("svg-align"),$1.makeSpan(["mrel","x-arrow"],[u],e)},mathmlBuilder(t,e){var a=L5.mathMLnode(t.label);a.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var r=Bd(D0(t.body,e));if(t.below){var o=Bd(D0(t.below,e));n=new dt.MathNode("munderover",[a,o,r])}else n=new dt.MathNode("mover",[a,r])}else if(t.below){var l=Bd(D0(t.below,e));n=new dt.MathNode("munder",[a,l])}else n=Bd(),n=new dt.MathNode("mover",[a,n]);return n}});var FV1=$1.makeSpan;function wX(t,e){var a=s4(t.body,e,!0);return FV1([t.mclass],a,e)}function yX(t,e){var a,n=Wa(t.body,e);return t.mclass==="minner"?a=new dt.MathNode("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(a=n[0],a.type="mi"):a=new dt.MathNode("mi",n):(t.isCharacterBox?(a=n[0],a.type="mo"):a=new dt.MathNode("mo",n),t.mclass==="mbin"?(a.attributes.lspace="0.22em",a.attributes.rspace="0.22em"):t.mclass==="mpunct"?(a.attributes.lspace="0em",a.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(a.attributes.lspace="0em",a.attributes.rspace="0em"):t.mclass==="minner"&&(a.attributes.lspace="0.0556em",a.attributes.width="+0.1111em")),a}Nt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:a,funcName:n}=t,r=e[0];return{type:"mclass",mode:a.mode,mclass:"m"+n.slice(5),body:ke(r),isCharacterBox:d2.isCharacterBox(r)}},htmlBuilder:wX,mathmlBuilder:yX});var Wz=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};Nt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:a}=t;return{type:"mclass",mode:a.mode,mclass:Wz(e[0]),body:ke(e[1]),isCharacterBox:d2.isCharacterBox(e[1])}}});Nt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:a,funcName:n}=t,r=e[1],o=e[0],l;n!=="\\stackrel"?l=Wz(r):l="mrel";var c={type:"op",mode:r.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:ke(r)},h={type:"supsub",mode:o.mode,base:c,sup:n==="\\underset"?null:o,sub:n==="\\underset"?o:null};return{type:"mclass",mode:a.mode,mclass:l,body:[h],isCharacterBox:d2.isCharacterBox(h)}},htmlBuilder:wX,mathmlBuilder:yX});Nt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:a}=t;return{type:"pmb",mode:a.mode,mclass:Wz(e[0]),body:ke(e[0])}},htmlBuilder(t,e){var a=s4(t.body,e,!0),n=$1.makeSpan([t.mclass],a,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var a=Wa(t.body,e),n=new dt.MathNode("mstyle",a);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var $V1={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},$R=()=>({type:"styling",body:[],mode:"math",style:"display"}),UR=t=>t.type==="textord"&&t.text==="@",UV1=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function WV1(t,e,a){var n=$V1[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return a.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var r=a.callFunction("\\\\cdleft",[e[0]],[]),o={type:"atom",text:n,mode:"math",family:"rel"},l=a.callFunction("\\Big",[o],[]),c=a.callFunction("\\\\cdright",[e[1]],[]),h={type:"ordgroup",mode:"math",body:[r,l,c]};return a.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return a.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var s={type:"textord",text:"\\Vert",mode:"math"};return a.callFunction("\\Big",[s],[])}default:return{type:"textord",text:" ",mode:"math"}}}function qV1(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var a=t.fetch().text;if(a==="&"||a==="\\\\")t.consume();else if(a==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new zt("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],r=[n],o=0;o-1))if("<>AV".indexOf(s)>-1)for(var v=0;v<2;v++){for(var f=!0,d=h+1;dAV=|." after @',l[h]);var M=WV1(s,u,t),g={type:"styling",body:[M],mode:"math",style:"display"};n.push(g),c=$R()}o%2===0?n.push(c):n.shift(),n=[],r.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var H=new Array(r[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:r,arraystretch:1,addJot:!0,rowGaps:[null],cols:H,colSeparationType:"CD",hLinesBeforeRow:new Array(r.length+1).fill([])}}Nt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:a,funcName:n}=t;return{type:"cdlabel",mode:a.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var a=e.havingStyle(e.style.sup()),n=$1.wrapFragment(n0(t.label,a,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=bt(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var a=new dt.MathNode("mrow",[D0(t.label,e)]);return a=new dt.MathNode("mpadded",[a]),a.setAttribute("width","0"),t.side==="left"&&a.setAttribute("lspace","-1width"),a.setAttribute("voffset","0.7em"),a=new dt.MathNode("mstyle",[a]),a.setAttribute("displaystyle","false"),a.setAttribute("scriptlevel","1"),a}});Nt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:a}=t;return{type:"cdlabelparent",mode:a.mode,fragment:e[0]}},htmlBuilder(t,e){var a=$1.wrapFragment(n0(t.fragment,e),e);return a.classes.push("cd-vert-arrow"),a},mathmlBuilder(t,e){return new dt.MathNode("mrow",[D0(t.fragment,e)])}});Nt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:a}=t,n=L2(e[0],"ordgroup"),r=n.body,o="",l=0;l=1114111)throw new zt("\\@char with invalid code point "+o);return h<=65535?s=String.fromCharCode(h):(h-=65536,s=String.fromCharCode((h>>10)+55296,(h&1023)+56320)),{type:"textord",mode:a.mode,text:s}}});var xX=(t,e)=>{var a=s4(t.body,e.withColor(t.color),!1);return $1.makeFragment(a)},VX=(t,e)=>{var a=Wa(t.body,e.withColor(t.color)),n=new dt.MathNode("mstyle",a);return n.setAttribute("mathcolor",t.color),n};Nt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:a}=t,n=L2(e[0],"color-token").color,r=e[1];return{type:"color",mode:a.mode,color:n,body:ke(r)}},htmlBuilder:xX,mathmlBuilder:VX});Nt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:a,breakOnTokenText:n}=t,r=L2(e[0],"color-token").color;a.gullet.macros.set("\\current@color",r);var o=a.parseExpression(!0,n);return{type:"color",mode:a.mode,color:r,body:o}},htmlBuilder:xX,mathmlBuilder:VX});Nt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,a){var{parser:n}=t,r=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,o=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:o,size:r&&L2(r,"size").value}},htmlBuilder(t,e){var a=$1.makeSpan(["mspace"],[],e);return t.newLine&&(a.classes.push("newline"),t.size&&(a.style.marginTop=bt(me(t.size,e)))),a},mathmlBuilder(t,e){var a=new dt.MathNode("mspace");return t.newLine&&(a.setAttribute("linebreak","newline"),t.size&&a.setAttribute("height",bt(me(t.size,e)))),a}});var lL={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},CX=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new zt("Expected a control sequence",t);return e},GV1=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},bX=(t,e,a,n)=>{var r=t.gullet.macros.get(a.text);r==null&&(a.noexpand=!0,r={tokens:[a],numArgs:0,unexpandable:!t.gullet.isExpandable(a.text)}),t.gullet.macros.set(e,r,n)};Nt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:a}=t;e.consumeSpaces();var n=e.fetch();if(lL[n.text])return(a==="\\global"||a==="\\\\globallong")&&(n.text=lL[n.text]),L2(e.parseFunction(),"internal");throw new zt("Invalid token after macro prefix",n)}});Nt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:a}=t,n=e.gullet.popToken(),r=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new zt("Expected a control sequence",n);for(var o=0,l,c=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){l=e.gullet.future(),c[o].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new zt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==o+1)throw new zt('Argument number "'+n.text+'" out of order');o++,c.push([])}else{if(n.text==="EOF")throw new zt("Expected a macro definition");c[o].push(n.text)}var{tokens:h}=e.gullet.consumeArg();return l&&h.unshift(l),(a==="\\edef"||a==="\\xdef")&&(h=e.gullet.expandTokens(h),h.reverse()),e.gullet.macros.set(r,{tokens:h,numArgs:o,delimiters:c},a===lL[a]),{type:"internal",mode:e.mode}}});Nt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:a}=t,n=CX(e.gullet.popToken());e.gullet.consumeSpaces();var r=GV1(e);return bX(e,n,r,a==="\\\\globallet"),{type:"internal",mode:e.mode}}});Nt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:a}=t,n=CX(e.gullet.popToken()),r=e.gullet.popToken(),o=e.gullet.popToken();return bX(e,n,o,a==="\\\\globalfuture"),e.gullet.pushToken(o),e.gullet.pushToken(r),{type:"internal",mode:e.mode}}});var b7=function(e,a,n){var r=q0.math[e]&&q0.math[e].replace,o=KS(r||e,a,n);if(!o)throw new Error("Unsupported symbol "+e+" and font size "+a+".");return o},eT=function(e,a,n,r){var o=n.havingBaseStyle(a),l=$1.makeSpan(r.concat(o.sizingClasses(n)),[e],n),c=o.sizeMultiplier/n.sizeMultiplier;return l.height*=c,l.depth*=c,l.maxFontSize=o.sizeMultiplier,l},LX=function(e,a,n){var r=a.havingBaseStyle(n),o=(1-a.sizeMultiplier/r.sizeMultiplier)*a.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=bt(o),e.height-=o,e.depth+=o},KV1=function(e,a,n,r,o,l){var c=$1.makeSymbol(e,"Main-Regular",o,r),h=eT(c,a,r,l);return n&&LX(h,r,a),h},YV1=function(e,a,n,r){return $1.makeSymbol(e,"Size"+a+"-Regular",n,r)},BX=function(e,a,n,r,o,l){var c=YV1(e,a,o,r),h=eT($1.makeSpan(["delimsizing","size"+a],[c],r),o2.TEXT,r,l);return n&&LX(h,r,o2.TEXT),h},$x=function(e,a,n){var r;a==="Size1-Regular"?r="delim-size1":r="delim-size4";var o=$1.makeSpan(["delimsizinginner",r],[$1.makeSpan([],[$1.makeSymbol(e,a,n)])]);return{type:"elem",elem:o}},Ux=function(e,a,n){var r=gi["Size4-Regular"][e.charCodeAt(0)]?gi["Size4-Regular"][e.charCodeAt(0)][4]:gi["Size1-Regular"][e.charCodeAt(0)][4],o=new vo("inner",eV1(e,Math.round(1e3*a))),l=new C5([o],{width:bt(r),height:bt(a),style:"width:"+bt(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*a),preserveAspectRatio:"xMinYMin"}),c=$1.makeSvgSpan([],[l],n);return c.height=a,c.style.height=bt(a),c.style.width=bt(r),{type:"elem",elem:c}},cL=.008,_d={type:"kern",size:-1*cL},ZV1=["|","\\lvert","\\rvert","\\vert"],QV1=["\\|","\\lVert","\\rVert","\\Vert"],_X=function(e,a,n,r,o,l){var c,h,s,u,v="",f=0;c=s=u=e,h=null;var d="Size1-Regular";e==="\\uparrow"?s=u="⏐":e==="\\Uparrow"?s=u="‖":e==="\\downarrow"?c=s="⏐":e==="\\Downarrow"?c=s="‖":e==="\\updownarrow"?(c="\\uparrow",s="⏐",u="\\downarrow"):e==="\\Updownarrow"?(c="\\Uparrow",s="‖",u="\\Downarrow"):d2.contains(ZV1,e)?(s="∣",v="vert",f=333):d2.contains(QV1,e)?(s="∥",v="doublevert",f=556):e==="["||e==="\\lbrack"?(c="⎡",s="⎢",u="⎣",d="Size4-Regular",v="lbrack",f=667):e==="]"||e==="\\rbrack"?(c="⎤",s="⎥",u="⎦",d="Size4-Regular",v="rbrack",f=667):e==="\\lfloor"||e==="⌊"?(s=c="⎢",u="⎣",d="Size4-Regular",v="lfloor",f=667):e==="\\lceil"||e==="⌈"?(c="⎡",s=u="⎢",d="Size4-Regular",v="lceil",f=667):e==="\\rfloor"||e==="⌋"?(s=c="⎥",u="⎦",d="Size4-Regular",v="rfloor",f=667):e==="\\rceil"||e==="⌉"?(c="⎤",s=u="⎥",d="Size4-Regular",v="rceil",f=667):e==="("||e==="\\lparen"?(c="⎛",s="⎜",u="⎝",d="Size4-Regular",v="lparen",f=875):e===")"||e==="\\rparen"?(c="⎞",s="⎟",u="⎠",d="Size4-Regular",v="rparen",f=875):e==="\\{"||e==="\\lbrace"?(c="⎧",h="⎨",u="⎩",s="⎪",d="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(c="⎫",h="⎬",u="⎭",s="⎪",d="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(c="⎧",u="⎩",s="⎪",d="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(c="⎫",u="⎭",s="⎪",d="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(c="⎧",u="⎭",s="⎪",d="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(c="⎫",u="⎩",s="⎪",d="Size4-Regular");var M=b7(c,d,o),g=M.height+M.depth,H=b7(s,d,o),p=H.height+H.depth,m=b7(u,d,o),z=m.height+m.depth,w=0,x=1;if(h!==null){var y=b7(h,d,o);w=y.height+y.depth,x=2}var V=g+z+w,C=Math.max(0,Math.ceil((a-V)/(x*p))),L=V+C*x*p,B=r.fontMetrics().axisHeight;n&&(B*=r.sizeMultiplier);var S=L/2-B,T=[];if(v.length>0){var E=L-g-z,$=Math.round(L*1e3),q=aV1(v,Math.round(E*1e3)),U=new vo(v,q),Y=(f/1e3).toFixed(3)+"em",F=($/1e3).toFixed(3)+"em",X=new C5([U],{width:Y,height:F,viewBox:"0 0 "+f+" "+$}),R=$1.makeSvgSpan([],[X],r);R.height=$/1e3,R.style.width=Y,R.style.height=F,T.push({type:"elem",elem:R})}else{if(T.push($x(u,d,o)),T.push(_d),h===null){var i1=L-g-z+2*cL;T.push(Ux(s,i1,r))}else{var t1=(L-g-z-w)/2+2*cL;T.push(Ux(s,t1,r)),T.push(_d),T.push($x(h,d,o)),T.push(_d),T.push(Ux(s,t1,r))}T.push(_d),T.push($x(c,d,o))}var A=r.havingBaseStyle(o2.TEXT),o1=$1.makeVList({positionType:"bottom",positionData:S,children:T},A);return eT($1.makeSpan(["delimsizing","mult"],[o1],A),o2.TEXT,r,l)},Wx=80,qx=.08,Gx=function(e,a,n,r,o){var l=tV1(e,r,n),c=new vo(e,l),h=new C5([c],{width:"400em",height:bt(a),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return $1.makeSvgSpan(["hide-tail"],[h],o)},XV1=function(e,a){var n=a.havingBaseSizing(),r=AX("\\surd",e*n.sizeMultiplier,OX,n),o=n.sizeMultiplier,l=Math.max(0,a.minRuleThickness-a.fontMetrics().sqrtRuleThickness),c,h=0,s=0,u=0,v;return r.type==="small"?(u=1e3+1e3*l+Wx,e<1?o=1:e<1.4&&(o=.7),h=(1+l+qx)/o,s=(1+l)/o,c=Gx("sqrtMain",h,u,l,a),c.style.minWidth="0.853em",v=.833/o):r.type==="large"?(u=(1e3+Wx)*rs[r.size],s=(rs[r.size]+l)/o,h=(rs[r.size]+l+qx)/o,c=Gx("sqrtSize"+r.size,h,u,l,a),c.style.minWidth="1.02em",v=1/o):(h=e+l+qx,s=e+l,u=Math.floor(1e3*e+l)+Wx,c=Gx("sqrtTall",h,u,l,a),c.style.minWidth="0.742em",v=1.056),c.height=s,c.style.height=bt(h),{span:c,advanceWidth:v,ruleWidth:(a.fontMetrics().sqrtRuleThickness+l)*o}},SX=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],JV1=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],TX=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],rs=[0,1.2,1.8,2.4,3],tC1=function(e,a,n,r,o){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),d2.contains(SX,e)||d2.contains(TX,e))return BX(e,a,!1,n,r,o);if(d2.contains(JV1,e))return _X(e,rs[a],!1,n,r,o);throw new zt("Illegal delimiter: '"+e+"'")},eC1=[{type:"small",style:o2.SCRIPTSCRIPT},{type:"small",style:o2.SCRIPT},{type:"small",style:o2.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],aC1=[{type:"small",style:o2.SCRIPTSCRIPT},{type:"small",style:o2.SCRIPT},{type:"small",style:o2.TEXT},{type:"stack"}],OX=[{type:"small",style:o2.SCRIPTSCRIPT},{type:"small",style:o2.SCRIPT},{type:"small",style:o2.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],nC1=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},AX=function(e,a,n,r){for(var o=Math.min(2,3-r.style.size),l=o;la)return n[l]}return n[n.length-1]},kX=function(e,a,n,r,o,l){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var c;d2.contains(TX,e)?c=eC1:d2.contains(SX,e)?c=OX:c=aC1;var h=AX(e,a,c,r);return h.type==="small"?KV1(e,h.style,n,r,o,l):h.type==="large"?BX(e,h.size,n,r,o,l):_X(e,a,n,r,o,l)},rC1=function(e,a,n,r,o,l){var c=r.fontMetrics().axisHeight*r.sizeMultiplier,h=901,s=5/r.fontMetrics().ptPerEm,u=Math.max(a-c,n+c),v=Math.max(u/500*h,2*u-s);return kX(e,v,!0,r,o,l)},f5={sqrtImage:XV1,sizedDelim:tC1,sizeToMaxHeight:rs,customSizedDelim:kX,leftRightDelim:rC1},WR={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},iC1=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function qz(t,e){var a=Uz(t);if(a&&d2.contains(iC1,a.text))return a;throw a?new zt("Invalid delimiter '"+a.text+"' after '"+e.funcName+"'",t):new zt("Invalid delimiter type '"+t.type+"'",t)}Nt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(t,e)=>{var a=qz(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:WR[t.funcName].size,mclass:WR[t.funcName].mclass,delim:a.text}},htmlBuilder:(t,e)=>t.delim==="."?$1.makeSpan([t.mclass]):f5.sizedDelim(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Yn(t.delim,t.mode));var a=new dt.MathNode("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?a.setAttribute("fence","true"):a.setAttribute("fence","false"),a.setAttribute("stretchy","true");var n=bt(f5.sizeToMaxHeight[t.size]);return a.setAttribute("minsize",n),a.setAttribute("maxsize",n),a}});function qR(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Nt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var a=t.parser.gullet.macros.get("\\current@color");if(a&&typeof a!="string")throw new zt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:qz(e[0],t).text,color:a}}});Nt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var a=qz(e[0],t),n=t.parser;++n.leftrightDepth;var r=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var o=L2(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:r,left:a.text,right:o.delim,rightColor:o.color}},htmlBuilder:(t,e)=>{qR(t);for(var a=s4(t.body,e,!0,["mopen","mclose"]),n=0,r=0,o=!1,l=0;l{qR(t);var a=Wa(t.body,e);if(t.left!=="."){var n=new dt.MathNode("mo",[Yn(t.left,t.mode)]);n.setAttribute("fence","true"),a.unshift(n)}if(t.right!=="."){var r=new dt.MathNode("mo",[Yn(t.right,t.mode)]);r.setAttribute("fence","true"),t.rightColor&&r.setAttribute("mathcolor",t.rightColor),a.push(r)}return QS(a)}});Nt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var a=qz(e[0],t);if(!t.parser.leftrightDepth)throw new zt("\\middle without preceding \\left",a);return{type:"middle",mode:t.parser.mode,delim:a.text}},htmlBuilder:(t,e)=>{var a;if(t.delim===".")a=Ws(e,[]);else{a=f5.sizedDelim(t.delim,1,e,t.mode,[]);var n={delim:t.delim,options:e};a.isMiddle=n}return a},mathmlBuilder:(t,e)=>{var a=t.delim==="\\vert"||t.delim==="|"?Yn("|","text"):Yn(t.delim,t.mode),n=new dt.MathNode("mo",[a]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var aT=(t,e)=>{var a=$1.wrapFragment(n0(t.body,e),e),n=t.label.slice(1),r=e.sizeMultiplier,o,l=0,c=d2.isCharacterBox(t.body);if(n==="sout")o=$1.makeSpan(["stretchy","sout"]),o.height=e.fontMetrics().defaultRuleThickness/r,l=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var h=me({number:.6,unit:"pt"},e),s=me({number:.35,unit:"ex"},e),u=e.havingBaseSizing();r=r/u.sizeMultiplier;var v=a.height+a.depth+h+s;a.style.paddingLeft=bt(v/2+h);var f=Math.floor(1e3*v*r),d=Xx1(f),M=new C5([new vo("phase",d)],{width:"400em",height:bt(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});o=$1.makeSvgSpan(["hide-tail"],[M],e),o.style.height=bt(v),l=a.depth+h+s}else{/cancel/.test(n)?c||a.classes.push("cancel-pad"):n==="angl"?a.classes.push("anglpad"):a.classes.push("boxpad");var g=0,H=0,p=0;/box/.test(n)?(p=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),g=e.fontMetrics().fboxsep+(n==="colorbox"?0:p),H=g):n==="angl"?(p=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),g=4*p,H=Math.max(0,.25-a.depth)):(g=c?.2:0,H=g),o=L5.encloseSpan(a,n,g,H,e),/fbox|boxed|fcolorbox/.test(n)?(o.style.borderStyle="solid",o.style.borderWidth=bt(p)):n==="angl"&&p!==.049&&(o.style.borderTopWidth=bt(p),o.style.borderRightWidth=bt(p)),l=a.depth+H,t.backgroundColor&&(o.style.backgroundColor=t.backgroundColor,t.borderColor&&(o.style.borderColor=t.borderColor))}var m;if(t.backgroundColor)m=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:l},{type:"elem",elem:a,shift:0}]},e);else{var z=/cancel|phase/.test(n)?["svg-align"]:[];m=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:o,shift:l,wrapperClasses:z}]},e)}return/cancel/.test(n)&&(m.height=a.height,m.depth=a.depth),/cancel/.test(n)&&!c?$1.makeSpan(["mord","cancel-lap"],[m],e):$1.makeSpan(["mord"],[m],e)},nT=(t,e)=>{var a=0,n=new dt.MathNode(t.label.indexOf("colorbox")>-1?"mpadded":"menclose",[D0(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(a=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*a+"pt"),n.setAttribute("height","+"+2*a+"pt"),n.setAttribute("lspace",a+"pt"),n.setAttribute("voffset",a+"pt"),t.label==="\\fcolorbox"){var r=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+r+"em solid "+String(t.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};Nt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,a){var{parser:n,funcName:r}=t,o=L2(e[0],"color-token").color,l=e[1];return{type:"enclose",mode:n.mode,label:r,backgroundColor:o,body:l}},htmlBuilder:aT,mathmlBuilder:nT});Nt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,a){var{parser:n,funcName:r}=t,o=L2(e[0],"color-token").color,l=L2(e[1],"color-token").color,c=e[2];return{type:"enclose",mode:n.mode,label:r,backgroundColor:l,borderColor:o,body:c}},htmlBuilder:aT,mathmlBuilder:nT});Nt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:a}=t;return{type:"enclose",mode:a.mode,label:"\\fbox",body:e[0]}}});Nt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:a,funcName:n}=t,r=e[0];return{type:"enclose",mode:a.mode,label:n,body:r}},htmlBuilder:aT,mathmlBuilder:nT});Nt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:a}=t;return{type:"enclose",mode:a.mode,label:"\\angl",body:e[0]}}});var EX={};function Bi(t){for(var{type:e,names:a,props:n,handler:r,htmlBuilder:o,mathmlBuilder:l}=t,c={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:r},h=0;h{var e=t.parser.settings;if(!e.displayMode)throw new zt("{"+t.envName+"} can be used only in display mode.")};function rT(t){if(t.indexOf("ed")===-1)return t.indexOf("*")===-1}function Oo(t,e,a){var{hskipBeforeAndAfter:n,addJot:r,cols:o,arraystretch:l,colSeparationType:c,autoTag:h,singleRow:s,emptySingleRow:u,maxNumCols:v,leqno:f}=e;if(t.gullet.beginGroup(),s||t.gullet.macros.set("\\cr","\\\\\\relax"),!l){var d=t.gullet.expandMacroAsText("\\arraystretch");if(d==null)l=1;else if(l=parseFloat(d),!l||l<0)throw new zt("Invalid \\arraystretch: "+d)}t.gullet.beginGroup();var M=[],g=[M],H=[],p=[],m=h!=null?[]:void 0;function z(){h&&t.gullet.macros.set("\\@eqnsw","1",!0)}function w(){m&&(t.gullet.macros.get("\\df@tag")?(m.push(t.subparse([new wi("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):m.push(!!h&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(z(),p.push(GR(t));;){var x=t.parseExpression(!1,s?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),x={type:"ordgroup",mode:t.mode,body:x},a&&(x={type:"styling",mode:t.mode,style:a,body:[x]}),M.push(x);var y=t.fetch().text;if(y==="&"){if(v&&M.length===v){if(s||c)throw new zt("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(y==="\\end"){w(),M.length===1&&x.type==="styling"&&x.body[0].body.length===0&&(g.length>1||!u)&&g.pop(),p.length0&&(z+=.25),s.push({pos:z,isDashed:nt[tt]})}for(w(l[0]),n=0;n0&&(S+=m,Vnt))for(n=0;n=c)){var M1=void 0;(r>0||e.hskipBeforeAndAfter)&&(M1=d2.deflt(t1.pregap,f),M1!==0&&(q=$1.makeSpan(["arraycolsep"],[]),q.style.width=bt(M1),$.push(q)));var s1=[];for(n=0;n0){for(var I1=$1.makeLineSpan("hline",a,u),U1=$1.makeLineSpan("hdashline",a,u),P1=[{type:"elem",elem:h,shift:0}];s.length>0;){var G1=s.pop(),rt=G1.pos-T;G1.isDashed?P1.push({type:"elem",elem:U1,shift:rt}):P1.push({type:"elem",elem:I1,shift:rt})}h=$1.makeVList({positionType:"individualShift",children:P1},a)}if(Y.length===0)return $1.makeSpan(["mord"],[h],a);var X1=$1.makeVList({positionType:"individualShift",children:Y},a);return X1=$1.makeSpan(["tag"],[X1],a),$1.makeFragment([h,X1])},oC1={c:"center ",l:"left ",r:"right "},Si=function(e,a){for(var n=[],r=new dt.MathNode("mtd",[],["mtr-glue"]),o=new dt.MathNode("mtd",[],["mml-eqn-num"]),l=0;l0){var M=e.cols,g="",H=!1,p=0,m=M.length;M[0].type==="separator"&&(f+="top ",p=1),M[M.length-1].type==="separator"&&(f+="bottom ",m-=1);for(var z=p;z0?"left ":"",f+=C[C.length-1].length>0?"right ":"";for(var L=1;L-1?"alignat":"align",o=e.envName==="split",l=Oo(e.parser,{cols:n,addJot:!0,autoTag:o?void 0:rT(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),c,h=0,s={type:"ordgroup",mode:e.mode,body:[]};if(a[0]&&a[0].type==="ordgroup"){for(var u="",v=0;v0&&d&&(H=1),n[M]={type:"align",align:g,pregap:H,postgap:0}}return l.colSeparationType=d?"align":"alignat",l};Bi({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var a=Uz(e[0]),n=a?[e[0]]:L2(e[0],"ordgroup").body,r=n.map(function(l){var c=JS(l),h=c.text;if("lcr".indexOf(h)!==-1)return{type:"align",align:h};if(h==="|")return{type:"separator",separator:"|"};if(h===":")return{type:"separator",separator:":"};throw new zt("Unknown column alignment: "+h,l)}),o={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return Oo(t.parser,o,iT(t.envName))},htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],a="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:a}]};if(t.envName.charAt(t.envName.length-1)==="*"){var r=t.parser;if(r.consumeSpaces(),r.fetch().text==="["){if(r.consume(),r.consumeSpaces(),a=r.fetch().text,"lcr".indexOf(a)===-1)throw new zt("Expected l or c or r",r.nextToken);r.consume(),r.consumeSpaces(),r.expect("]"),r.consume(),n.cols=[{type:"align",align:a}]}}var o=Oo(t.parser,n,iT(t.envName)),l=Math.max(0,...o.body.map(c=>c.length));return o.cols=new Array(l).fill({type:"align",align:a}),e?{type:"leftright",mode:t.mode,body:[o],left:e[0],right:e[1],rightColor:void 0}:o},htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},a=Oo(t.parser,e,"script");return a.colSeparationType="small",a},htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var a=Uz(e[0]),n=a?[e[0]]:L2(e[0],"ordgroup").body,r=n.map(function(l){var c=JS(l),h=c.text;if("lc".indexOf(h)!==-1)return{type:"align",align:h};throw new zt("Unknown column alignment: "+h,l)});if(r.length>1)throw new zt("{subarray} can contain only one column");var o={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=Oo(t.parser,o,"script"),o.body.length>0&&o.body[0].length>1)throw new zt("{subarray} can contain only one column");return o},htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},a=Oo(t.parser,e,iT(t.envName));return{type:"leftright",mode:t.mode,body:[a],left:t.envName.indexOf("r")>-1?".":"\\{",right:t.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:NX,htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){d2.contains(["gather","gather*"],t.envName)&&Gz(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:rT(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return Oo(t.parser,e,"display")},htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:NX,htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){Gz(t);var e={autoTag:rT(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return Oo(t.parser,e,"display")},htmlBuilder:_i,mathmlBuilder:Si});Bi({type:"array",names:["CD"],props:{numArgs:0},handler(t){return Gz(t),qV1(t.parser)},htmlBuilder:_i,mathmlBuilder:Si});n1("\\nonumber","\\gdef\\@eqnsw{0}");n1("\\notag","\\nonumber");Nt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new zt(t.funcName+" valid only within array environment")}});var KR=EX;Nt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:a,funcName:n}=t,r=e[0];if(r.type!=="ordgroup")throw new zt("Invalid environment name",r);for(var o="",l=0;l{var a=t.font,n=e.withFont(a);return n0(t.body,n)},RX=(t,e)=>{var a=t.font,n=e.withFont(a);return D0(t.body,n)},YR={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Nt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=ep(e[0]),o=n;return o in YR&&(o=YR[o]),{type:"font",mode:a.mode,font:o.slice(1),body:r}},htmlBuilder:DX,mathmlBuilder:RX});Nt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:a}=t,n=e[0],r=d2.isCharacterBox(n);return{type:"mclass",mode:a.mode,mclass:Wz(n),body:[{type:"font",mode:a.mode,font:"boldsymbol",body:n}],isCharacterBox:r}}});Nt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:a,funcName:n,breakOnTokenText:r}=t,{mode:o}=a,l=a.parseExpression(!0,r),c="math"+n.slice(1);return{type:"font",mode:o,font:c,body:{type:"ordgroup",mode:a.mode,body:l}}},htmlBuilder:DX,mathmlBuilder:RX});var jX=(t,e)=>{var a=e;return t==="display"?a=a.id>=o2.SCRIPT.id?a.text():o2.DISPLAY:t==="text"&&a.size===o2.DISPLAY.size?a=o2.TEXT:t==="script"?a=o2.SCRIPT:t==="scriptscript"&&(a=o2.SCRIPTSCRIPT),a},oT=(t,e)=>{var a=jX(t.size,e.style),n=a.fracNum(),r=a.fracDen(),o;o=e.havingStyle(n);var l=n0(t.numer,o,e);if(t.continued){var c=8.5/e.fontMetrics().ptPerEm,h=3.5/e.fontMetrics().ptPerEm;l.height=l.height0?M=3*f:M=7*f,g=e.fontMetrics().denom1):(v>0?(d=e.fontMetrics().num2,M=f):(d=e.fontMetrics().num3,M=3*f),g=e.fontMetrics().denom2);var H;if(u){var m=e.fontMetrics().axisHeight;d-l.depth-(m+.5*v){var a=new dt.MathNode("mfrac",[D0(t.numer,e),D0(t.denom,e)]);if(!t.hasBarLine)a.setAttribute("linethickness","0px");else if(t.barSize){var n=me(t.barSize,e);a.setAttribute("linethickness",bt(n))}var r=jX(t.size,e.style);if(r.size!==e.style.size){a=new dt.MathNode("mstyle",[a]);var o=r.size===o2.DISPLAY.size?"true":"false";a.setAttribute("displaystyle",o),a.setAttribute("scriptlevel","0")}if(t.leftDelim!=null||t.rightDelim!=null){var l=[];if(t.leftDelim!=null){var c=new dt.MathNode("mo",[new dt.TextNode(t.leftDelim.replace("\\",""))]);c.setAttribute("fence","true"),l.push(c)}if(l.push(a),t.rightDelim!=null){var h=new dt.MathNode("mo",[new dt.TextNode(t.rightDelim.replace("\\",""))]);h.setAttribute("fence","true"),l.push(h)}return QS(l)}return a};Nt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=e[0],o=e[1],l,c=null,h=null,s="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":l=!0;break;case"\\\\atopfrac":l=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":l=!1,c="(",h=")";break;case"\\\\bracefrac":l=!1,c="\\{",h="\\}";break;case"\\\\brackfrac":l=!1,c="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":s="display";break;case"\\tfrac":case"\\tbinom":s="text";break}return{type:"genfrac",mode:a.mode,continued:!1,numer:r,denom:o,hasBarLine:l,leftDelim:c,rightDelim:h,size:s,barSize:null}},htmlBuilder:oT,mathmlBuilder:lT});Nt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=e[0],o=e[1];return{type:"genfrac",mode:a.mode,continued:!0,numer:r,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});Nt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:a,token:n}=t,r;switch(a){case"\\over":r="\\frac";break;case"\\choose":r="\\binom";break;case"\\atop":r="\\\\atopfrac";break;case"\\brace":r="\\\\bracefrac";break;case"\\brack":r="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:r,token:n}}});var ZR=["display","text","script","scriptscript"],QR=function(e){var a=null;return e.length>0&&(a=e,a=a==="."?null:a),a};Nt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:a}=t,n=e[4],r=e[5],o=ep(e[0]),l=o.type==="atom"&&o.family==="open"?QR(o.text):null,c=ep(e[1]),h=c.type==="atom"&&c.family==="close"?QR(c.text):null,s=L2(e[2],"size"),u,v=null;s.isBlank?u=!0:(v=s.value,u=v.number>0);var f="auto",d=e[3];if(d.type==="ordgroup"){if(d.body.length>0){var M=L2(d.body[0],"textord");f=ZR[Number(M.text)]}}else d=L2(d,"textord"),f=ZR[Number(d.text)];return{type:"genfrac",mode:a.mode,numer:n,denom:r,continued:!1,hasBarLine:u,barSize:v,leftDelim:l,rightDelim:h,size:f}},htmlBuilder:oT,mathmlBuilder:lT});Nt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:a,funcName:n,token:r}=t;return{type:"infix",mode:a.mode,replaceWith:"\\\\abovefrac",size:L2(e[0],"size").value,token:r}}});Nt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=e[0],o=Nx1(L2(e[1],"infix").size),l=e[2],c=o.number>0;return{type:"genfrac",mode:a.mode,numer:r,denom:l,continued:!1,hasBarLine:c,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:oT,mathmlBuilder:lT});var IX=(t,e)=>{var a=e.style,n,r;t.type==="supsub"?(n=t.sup?n0(t.sup,e.havingStyle(a.sup()),e):n0(t.sub,e.havingStyle(a.sub()),e),r=L2(t.base,"horizBrace")):r=L2(t,"horizBrace");var o=n0(r.base,e.havingBaseStyle(o2.DISPLAY)),l=L5.svgSpan(r,e),c;if(r.isOver?(c=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:l}]},e),c.children[0].children[0].children[1].classes.push("svg-align")):(c=$1.makeVList({positionType:"bottom",positionData:o.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:o}]},e),c.children[0].children[0].children[0].classes.push("svg-align")),n){var h=$1.makeSpan(["mord",r.isOver?"mover":"munder"],[c],e);r.isOver?c=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:n}]},e):c=$1.makeVList({positionType:"bottom",positionData:h.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:h}]},e)}return $1.makeSpan(["mord",r.isOver?"mover":"munder"],[c],e)},lC1=(t,e)=>{var a=L5.mathMLnode(t.label);return new dt.MathNode(t.isOver?"mover":"munder",[D0(t.base,e),a])};Nt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:a,funcName:n}=t;return{type:"horizBrace",mode:a.mode,label:n,isOver:/^\\over/.test(n),base:e[0]}},htmlBuilder:IX,mathmlBuilder:lC1});Nt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:a}=t,n=e[1],r=L2(e[0],"url").url;return a.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:a.mode,href:r,body:ke(n)}:a.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var a=s4(t.body,e,!1);return $1.makeAnchor(t.href,[],a,e)},mathmlBuilder:(t,e)=>{var a=fo(t.body,e);return a instanceof En||(a=new En("mrow",[a])),a.setAttribute("href",t.href),a}});Nt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:a}=t,n=L2(e[0],"url").url;if(!a.settings.isTrusted({command:"\\url",url:n}))return a.formatUnsupportedCmd("\\url");for(var r=[],o=0;o{var{parser:a,funcName:n,token:r}=t,o=L2(e[0],"raw").string,l=e[1];a.settings.strict&&a.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var c,h={};switch(n){case"\\htmlClass":h.class=o,c={command:"\\htmlClass",class:o};break;case"\\htmlId":h.id=o,c={command:"\\htmlId",id:o};break;case"\\htmlStyle":h.style=o,c={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var s=o.split(","),u=0;u{var a=s4(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var r=$1.makeSpan(n,a,e);for(var o in t.attributes)o!=="class"&&t.attributes.hasOwnProperty(o)&&r.setAttribute(o,t.attributes[o]);return r},mathmlBuilder:(t,e)=>fo(t.body,e)});Nt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(t,e)=>{var{parser:a}=t;return{type:"htmlmathml",mode:a.mode,html:ke(e[0]),mathml:ke(e[1])}},htmlBuilder:(t,e)=>{var a=s4(t.html,e,!1);return $1.makeFragment(a)},mathmlBuilder:(t,e)=>fo(t.mathml,e)});var Kx=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!a)throw new zt("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(a[1]+a[2]),unit:a[3]};if(!oX(n))throw new zt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};Nt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,a)=>{var{parser:n}=t,r={number:0,unit:"em"},o={number:.9,unit:"em"},l={number:0,unit:"em"},c="";if(a[0])for(var h=L2(a[0],"raw").string,s=h.split(","),u=0;u{var a=me(t.height,e),n=0;t.totalheight.number>0&&(n=me(t.totalheight,e)-a);var r=0;t.width.number>0&&(r=me(t.width,e));var o={height:bt(a+n)};r>0&&(o.width=bt(r)),n>0&&(o.verticalAlign=bt(-n));var l=new lV1(t.src,t.alt,o);return l.height=a,l.depth=n,l},mathmlBuilder:(t,e)=>{var a=new dt.MathNode("mglyph",[]);a.setAttribute("alt",t.alt);var n=me(t.height,e),r=0;if(t.totalheight.number>0&&(r=me(t.totalheight,e)-n,a.setAttribute("valign",bt(-r))),a.setAttribute("height",bt(n+r)),t.width.number>0){var o=me(t.width,e);a.setAttribute("width",bt(o))}return a.setAttribute("src",t.src),a}});Nt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:a,funcName:n}=t,r=L2(e[0],"size");if(a.settings.strict){var o=n[1]==="m",l=r.value.unit==="mu";o?(l||a.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+r.value.unit+" units")),a.mode!=="math"&&a.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):l&&a.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:a.mode,dimension:r.value}},htmlBuilder(t,e){return $1.makeGlue(t.dimension,e)},mathmlBuilder(t,e){var a=me(t.dimension,e);return new dt.SpaceNode(a)}});Nt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=e[0];return{type:"lap",mode:a.mode,alignment:n.slice(5),body:r}},htmlBuilder:(t,e)=>{var a;t.alignment==="clap"?(a=$1.makeSpan([],[n0(t.body,e)]),a=$1.makeSpan(["inner"],[a],e)):a=$1.makeSpan(["inner"],[n0(t.body,e)]);var n=$1.makeSpan(["fix"],[]),r=$1.makeSpan([t.alignment],[a,n],e),o=$1.makeSpan(["strut"]);return o.style.height=bt(r.height+r.depth),r.depth&&(o.style.verticalAlign=bt(-r.depth)),r.children.unshift(o),r=$1.makeSpan(["thinbox"],[r],e),$1.makeSpan(["mord","vbox"],[r],e)},mathmlBuilder:(t,e)=>{var a=new dt.MathNode("mpadded",[D0(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";a.setAttribute("lspace",n+"width")}return a.setAttribute("width","0px"),a}});Nt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:a,parser:n}=t,r=n.mode;n.switchMode("math");var o=a==="\\("?"\\)":"$",l=n.parseExpression(!1,o);return n.expect(o),n.switchMode(r),{type:"styling",mode:n.mode,style:"text",body:l}}});Nt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new zt("Mismatched "+t.funcName)}});var XR=(t,e)=>{switch(e.style.size){case o2.DISPLAY.size:return t.display;case o2.TEXT.size:return t.text;case o2.SCRIPT.size:return t.script;case o2.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};Nt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:a}=t;return{type:"mathchoice",mode:a.mode,display:ke(e[0]),text:ke(e[1]),script:ke(e[2]),scriptscript:ke(e[3])}},htmlBuilder:(t,e)=>{var a=XR(t,e),n=s4(a,e,!1);return $1.makeFragment(n)},mathmlBuilder:(t,e)=>{var a=XR(t,e);return fo(a,e)}});var FX=(t,e,a,n,r,o,l)=>{t=$1.makeSpan([],[t]);var c=a&&d2.isCharacterBox(a),h,s;if(e){var u=n0(e,n.havingStyle(r.sup()),n);s={elem:u,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-u.depth)}}if(a){var v=n0(a,n.havingStyle(r.sub()),n);h={elem:v,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-v.height)}}var f;if(s&&h){var d=n.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+t.depth+l;f=$1.makeVList({positionType:"bottom",positionData:d,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:bt(-o)},{type:"kern",size:h.kern},{type:"elem",elem:t},{type:"kern",size:s.kern},{type:"elem",elem:s.elem,marginLeft:bt(o)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(h){var M=t.height-l;f=$1.makeVList({positionType:"top",positionData:M,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:bt(-o)},{type:"kern",size:h.kern},{type:"elem",elem:t}]},n)}else if(s){var g=t.depth+l;f=$1.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:t},{type:"kern",size:s.kern},{type:"elem",elem:s.elem,marginLeft:bt(o)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return t;var H=[f];if(h&&o!==0&&!c){var p=$1.makeSpan(["mspace"],[],n);p.style.marginRight=bt(o),H.unshift(p)}return $1.makeSpan(["mop","op-limits"],H,n)},$X=["\\smallint"],Jc=(t,e)=>{var a,n,r=!1,o;t.type==="supsub"?(a=t.sup,n=t.sub,o=L2(t.base,"op"),r=!0):o=L2(t,"op");var l=e.style,c=!1;l.size===o2.DISPLAY.size&&o.symbol&&!d2.contains($X,o.name)&&(c=!0);var h;if(o.symbol){var s=c?"Size2-Regular":"Size1-Regular",u="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(u=o.name.slice(1),o.name=u==="oiint"?"\\iint":"\\iiint"),h=$1.makeSymbol(o.name,s,"math",e,["mop","op-symbol",c?"large-op":"small-op"]),u.length>0){var v=h.italic,f=$1.staticSvg(u+"Size"+(c?"2":"1"),e);h=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:f,shift:c?.08:0}]},e),o.name="\\"+u,h.classes.unshift("mop"),h.italic=v}}else if(o.body){var d=s4(o.body,e,!0);d.length===1&&d[0]instanceof Kn?(h=d[0],h.classes[0]="mop"):h=$1.makeSpan(["mop"],d,e)}else{for(var M=[],g=1;g{var a;if(t.symbol)a=new En("mo",[Yn(t.name,t.mode)]),d2.contains($X,t.name)&&a.setAttribute("largeop","false");else if(t.body)a=new En("mo",Wa(t.body,e));else{a=new En("mi",[new ns(t.name.slice(1))]);var n=new En("mo",[Yn("⁡","text")]);t.parentIsSupSub?a=new En("mrow",[a,n]):a=mX([a,n])}return a},cC1={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Nt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=n;return r.length===1&&(r=cC1[r]),{type:"op",mode:a.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Jc,mathmlBuilder:Gh});Nt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:a}=t,n=e[0];return{type:"op",mode:a.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ke(n)}},htmlBuilder:Jc,mathmlBuilder:Gh});var sC1={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Nt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(t){var{parser:e,funcName:a}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:a}},htmlBuilder:Jc,mathmlBuilder:Gh});Nt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:a}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:a}},htmlBuilder:Jc,mathmlBuilder:Gh});Nt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(t){var{parser:e,funcName:a}=t,n=a;return n.length===1&&(n=sC1[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Jc,mathmlBuilder:Gh});var UX=(t,e)=>{var a,n,r=!1,o;t.type==="supsub"?(a=t.sup,n=t.sub,o=L2(t.base,"operatorname"),r=!0):o=L2(t,"operatorname");var l;if(o.body.length>0){for(var c=o.body.map(v=>{var f=v.text;return typeof f=="string"?{type:"textord",mode:v.mode,text:f}:v}),h=s4(c,e.withFont("mathrm"),!0),s=0;s{for(var a=Wa(t.body,e.withFont("mathrm")),n=!0,r=0;ru.toText()).join("");a=[new dt.TextNode(c)]}var h=new dt.MathNode("mi",a);h.setAttribute("mathvariant","normal");var s=new dt.MathNode("mo",[Yn("⁡","text")]);return t.parentIsSupSub?new dt.MathNode("mrow",[h,s]):dt.newDocumentFragment([h,s])};Nt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:a,funcName:n}=t,r=e[0];return{type:"operatorname",mode:a.mode,body:ke(r),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:UX,mathmlBuilder:hC1});n1("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ml({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?$1.makeFragment(s4(t.body,e,!1)):$1.makeSpan(["mord"],s4(t.body,e,!0),e)},mathmlBuilder(t,e){return fo(t.body,e,!0)}});Nt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:a}=t,n=e[0];return{type:"overline",mode:a.mode,body:n}},htmlBuilder(t,e){var a=n0(t.body,e.havingCrampedStyle()),n=$1.makeLineSpan("overline-line",e),r=e.fontMetrics().defaultRuleThickness,o=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:3*r},{type:"elem",elem:n},{type:"kern",size:r}]},e);return $1.makeSpan(["mord","overline"],[o],e)},mathmlBuilder(t,e){var a=new dt.MathNode("mo",[new dt.TextNode("‾")]);a.setAttribute("stretchy","true");var n=new dt.MathNode("mover",[D0(t.body,e),a]);return n.setAttribute("accent","true"),n}});Nt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:a}=t,n=e[0];return{type:"phantom",mode:a.mode,body:ke(n)}},htmlBuilder:(t,e)=>{var a=s4(t.body,e.withPhantom(),!1);return $1.makeFragment(a)},mathmlBuilder:(t,e)=>{var a=Wa(t.body,e);return new dt.MathNode("mphantom",a)}});Nt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:a}=t,n=e[0];return{type:"hphantom",mode:a.mode,body:n}},htmlBuilder:(t,e)=>{var a=$1.makeSpan([],[n0(t.body,e.withPhantom())]);if(a.height=0,a.depth=0,a.children)for(var n=0;n{var a=Wa(ke(t.body),e),n=new dt.MathNode("mphantom",a),r=new dt.MathNode("mpadded",[n]);return r.setAttribute("height","0px"),r.setAttribute("depth","0px"),r}});Nt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:a}=t,n=e[0];return{type:"vphantom",mode:a.mode,body:n}},htmlBuilder:(t,e)=>{var a=$1.makeSpan(["inner"],[n0(t.body,e.withPhantom())]),n=$1.makeSpan(["fix"],[]);return $1.makeSpan(["mord","rlap"],[a,n],e)},mathmlBuilder:(t,e)=>{var a=Wa(ke(t.body),e),n=new dt.MathNode("mphantom",a),r=new dt.MathNode("mpadded",[n]);return r.setAttribute("width","0px"),r}});Nt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:a}=t,n=L2(e[0],"size").value,r=e[1];return{type:"raisebox",mode:a.mode,dy:n,body:r}},htmlBuilder(t,e){var a=n0(t.body,e),n=me(t.dy,e);return $1.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:a}]},e)},mathmlBuilder(t,e){var a=new dt.MathNode("mpadded",[D0(t.body,e)]),n=t.dy.number+t.dy.unit;return a.setAttribute("voffset",n),a}});Nt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});Nt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(t,e,a){var{parser:n}=t,r=a[0],o=L2(e[0],"size"),l=L2(e[1],"size");return{type:"rule",mode:n.mode,shift:r&&L2(r,"size").value,width:o.value,height:l.value}},htmlBuilder(t,e){var a=$1.makeSpan(["mord","rule"],[],e),n=me(t.width,e),r=me(t.height,e),o=t.shift?me(t.shift,e):0;return a.style.borderRightWidth=bt(n),a.style.borderTopWidth=bt(r),a.style.bottom=bt(o),a.width=n,a.height=r+o,a.depth=-o,a.maxFontSize=r*1.125*e.sizeMultiplier,a},mathmlBuilder(t,e){var a=me(t.width,e),n=me(t.height,e),r=t.shift?me(t.shift,e):0,o=e.color&&e.getColor()||"black",l=new dt.MathNode("mspace");l.setAttribute("mathbackground",o),l.setAttribute("width",bt(a)),l.setAttribute("height",bt(n));var c=new dt.MathNode("mpadded",[l]);return r>=0?c.setAttribute("height",bt(r)):(c.setAttribute("height",bt(r)),c.setAttribute("depth",bt(-r))),c.setAttribute("voffset",bt(r)),c}});function WX(t,e,a){for(var n=s4(t,e,!1),r=e.sizeMultiplier/a.sizeMultiplier,o=0;o{var a=e.havingSize(t.size);return WX(t.body,a,e)};Nt({type:"sizing",names:JR,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:a,funcName:n,parser:r}=t,o=r.parseExpression(!1,a);return{type:"sizing",mode:r.mode,size:JR.indexOf(n)+1,body:o}},htmlBuilder:uC1,mathmlBuilder:(t,e)=>{var a=e.havingSize(t.size),n=Wa(t.body,a),r=new dt.MathNode("mstyle",n);return r.setAttribute("mathsize",bt(a.sizeMultiplier)),r}});Nt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,a)=>{var{parser:n}=t,r=!1,o=!1,l=a[0]&&L2(a[0],"ordgroup");if(l)for(var c="",h=0;h{var a=$1.makeSpan([],[n0(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return a;if(t.smashHeight&&(a.height=0,a.children))for(var n=0;n{var a=new dt.MathNode("mpadded",[D0(t.body,e)]);return t.smashHeight&&a.setAttribute("height","0px"),t.smashDepth&&a.setAttribute("depth","0px"),a}});Nt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,a){var{parser:n}=t,r=a[0],o=e[0];return{type:"sqrt",mode:n.mode,body:o,index:r}},htmlBuilder(t,e){var a=n0(t.body,e.havingCrampedStyle());a.height===0&&(a.height=e.fontMetrics().xHeight),a=$1.wrapFragment(a,e);var n=e.fontMetrics(),r=n.defaultRuleThickness,o=r;e.style.ida.height+a.depth+l&&(l=(l+v-a.height-a.depth)/2);var f=h.height-a.height-l-s;a.style.paddingLeft=bt(u);var d=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:-(a.height+f)},{type:"elem",elem:h},{type:"kern",size:s}]},e);if(t.index){var M=e.havingStyle(o2.SCRIPTSCRIPT),g=n0(t.index,M,e),H=.6*(d.height-d.depth),p=$1.makeVList({positionType:"shift",positionData:-H,children:[{type:"elem",elem:g}]},e),m=$1.makeSpan(["root"],[p]);return $1.makeSpan(["mord","sqrt"],[m,d],e)}else return $1.makeSpan(["mord","sqrt"],[d],e)},mathmlBuilder(t,e){var{body:a,index:n}=t;return n?new dt.MathNode("mroot",[D0(a,e),D0(n,e)]):new dt.MathNode("msqrt",[D0(a,e)])}});var tj={display:o2.DISPLAY,text:o2.TEXT,script:o2.SCRIPT,scriptscript:o2.SCRIPTSCRIPT};Nt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:a,funcName:n,parser:r}=t,o=r.parseExpression(!0,a),l=n.slice(1,n.length-5);return{type:"styling",mode:r.mode,style:l,body:o}},htmlBuilder(t,e){var a=tj[t.style],n=e.havingStyle(a).withFont("");return WX(t.body,n,e)},mathmlBuilder(t,e){var a=tj[t.style],n=e.havingStyle(a),r=Wa(t.body,n),o=new dt.MathNode("mstyle",r),l={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},c=l[t.style];return o.setAttribute("scriptlevel",c[0]),o.setAttribute("displaystyle",c[1]),o}});var vC1=function(e,a){var n=e.base;if(n)if(n.type==="op"){var r=n.limits&&(a.style.size===o2.DISPLAY.size||n.alwaysHandleSupSub);return r?Jc:null}else if(n.type==="operatorname"){var o=n.alwaysHandleSupSub&&(a.style.size===o2.DISPLAY.size||n.limits);return o?UX:null}else{if(n.type==="accent")return d2.isCharacterBox(n.base)?tT:null;if(n.type==="horizBrace"){var l=!e.sub;return l===n.isOver?IX:null}else return null}else return null};ml({type:"supsub",htmlBuilder(t,e){var a=vC1(t,e);if(a)return a(t,e);var{base:n,sup:r,sub:o}=t,l=n0(n,e),c,h,s=e.fontMetrics(),u=0,v=0,f=n&&d2.isCharacterBox(n);if(r){var d=e.havingStyle(e.style.sup());c=n0(r,d,e),f||(u=l.height-d.fontMetrics().supDrop*d.sizeMultiplier/e.sizeMultiplier)}if(o){var M=e.havingStyle(e.style.sub());h=n0(o,M,e),f||(v=l.depth+M.fontMetrics().subDrop*M.sizeMultiplier/e.sizeMultiplier)}var g;e.style===o2.DISPLAY?g=s.sup1:e.style.cramped?g=s.sup3:g=s.sup2;var H=e.sizeMultiplier,p=bt(.5/s.ptPerEm/H),m=null;if(h){var z=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(l instanceof Kn||z)&&(m=bt(-l.italic))}var w;if(c&&h){u=Math.max(u,g,c.depth+.25*s.xHeight),v=Math.max(v,s.sub2);var x=s.defaultRuleThickness,y=4*x;if(u-c.depth-(h.height-v)0&&(u+=V,v-=V)}var C=[{type:"elem",elem:h,shift:v,marginRight:p,marginLeft:m},{type:"elem",elem:c,shift:-u,marginRight:p}];w=$1.makeVList({positionType:"individualShift",children:C},e)}else if(h){v=Math.max(v,s.sub1,h.height-.8*s.xHeight);var L=[{type:"elem",elem:h,marginLeft:m,marginRight:p}];w=$1.makeVList({positionType:"shift",positionData:v,children:L},e)}else if(c)u=Math.max(u,g,c.depth+.25*s.xHeight),w=$1.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:c,marginRight:p}]},e);else throw new Error("supsub must have either sup or sub.");var B=iL(l,"right")||"mord";return $1.makeSpan([B],[l,$1.makeSpan(["msupsub"],[w])],e)},mathmlBuilder(t,e){var a=!1,n,r;t.base&&t.base.type==="horizBrace"&&(r=!!t.sup,r===t.base.isOver&&(a=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var o=[D0(t.base,e)];t.sub&&o.push(D0(t.sub,e)),t.sup&&o.push(D0(t.sup,e));var l;if(a)l=n?"mover":"munder";else if(t.sub)if(t.sup){var s=t.base;s&&s.type==="op"&&s.limits&&e.style===o2.DISPLAY||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(e.style===o2.DISPLAY||s.limits)?l="munderover":l="msubsup"}else{var h=t.base;h&&h.type==="op"&&h.limits&&(e.style===o2.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||e.style===o2.DISPLAY)?l="munder":l="msub"}else{var c=t.base;c&&c.type==="op"&&c.limits&&(e.style===o2.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||e.style===o2.DISPLAY)?l="mover":l="msup"}return new dt.MathNode(l,o)}});ml({type:"atom",htmlBuilder(t,e){return $1.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var a=new dt.MathNode("mo",[Yn(t.text,t.mode)]);if(t.family==="bin"){var n=XS(t,e);n==="bold-italic"&&a.setAttribute("mathvariant",n)}else t.family==="punct"?a.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&a.setAttribute("stretchy","false");return a}});var qX={mi:"italic",mn:"normal",mtext:"normal"};ml({type:"mathord",htmlBuilder(t,e){return $1.makeOrd(t,e,"mathord")},mathmlBuilder(t,e){var a=new dt.MathNode("mi",[Yn(t.text,t.mode,e)]),n=XS(t,e)||"italic";return n!==qX[a.type]&&a.setAttribute("mathvariant",n),a}});ml({type:"textord",htmlBuilder(t,e){return $1.makeOrd(t,e,"textord")},mathmlBuilder(t,e){var a=Yn(t.text,t.mode,e),n=XS(t,e)||"normal",r;return t.mode==="text"?r=new dt.MathNode("mtext",[a]):/[0-9]/.test(t.text)?r=new dt.MathNode("mn",[a]):t.text==="\\prime"?r=new dt.MathNode("mo",[a]):r=new dt.MathNode("mi",[a]),n!==qX[r.type]&&r.setAttribute("mathvariant",n),r}});var Yx={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Zx={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ml({type:"spacing",htmlBuilder(t,e){if(Zx.hasOwnProperty(t.text)){var a=Zx[t.text].className||"";if(t.mode==="text"){var n=$1.makeOrd(t,e,"textord");return n.classes.push(a),n}else return $1.makeSpan(["mspace",a],[$1.mathsym(t.text,t.mode,e)],e)}else{if(Yx.hasOwnProperty(t.text))return $1.makeSpan(["mspace",Yx[t.text]],[],e);throw new zt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var a;if(Zx.hasOwnProperty(t.text))a=new dt.MathNode("mtext",[new dt.TextNode(" ")]);else{if(Yx.hasOwnProperty(t.text))return new dt.MathNode("mspace");throw new zt('Unknown type of space "'+t.text+'"')}return a}});var ej=()=>{var t=new dt.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};ml({type:"tag",mathmlBuilder(t,e){var a=new dt.MathNode("mtable",[new dt.MathNode("mtr",[ej(),new dt.MathNode("mtd",[fo(t.body,e)]),ej(),new dt.MathNode("mtd",[fo(t.tag,e)])])]);return a.setAttribute("width","100%"),a}});var aj={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},nj={"\\textbf":"textbf","\\textmd":"textmd"},dC1={"\\textit":"textit","\\textup":"textup"},rj=(t,e)=>{var a=t.font;return a?aj[a]?e.withTextFontFamily(aj[a]):nj[a]?e.withTextFontWeight(nj[a]):e.withTextFontShape(dC1[a]):e};Nt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:a,funcName:n}=t,r=e[0];return{type:"text",mode:a.mode,body:ke(r),font:n}},htmlBuilder(t,e){var a=rj(t,e),n=s4(t.body,a,!0);return $1.makeSpan(["mord","text"],n,a)},mathmlBuilder(t,e){var a=rj(t,e);return fo(t.body,a)}});Nt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:a}=t;return{type:"underline",mode:a.mode,body:e[0]}},htmlBuilder(t,e){var a=n0(t.body,e),n=$1.makeLineSpan("underline-line",e),r=e.fontMetrics().defaultRuleThickness,o=$1.makeVList({positionType:"top",positionData:a.height,children:[{type:"kern",size:r},{type:"elem",elem:n},{type:"kern",size:3*r},{type:"elem",elem:a}]},e);return $1.makeSpan(["mord","underline"],[o],e)},mathmlBuilder(t,e){var a=new dt.MathNode("mo",[new dt.TextNode("‾")]);a.setAttribute("stretchy","true");var n=new dt.MathNode("munder",[D0(t.body,e),a]);return n.setAttribute("accentunder","true"),n}});Nt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:a}=t;return{type:"vcenter",mode:a.mode,body:e[0]}},htmlBuilder(t,e){var a=n0(t.body,e),n=e.fontMetrics().axisHeight,r=.5*(a.height-n-(a.depth+n));return $1.makeVList({positionType:"shift",positionData:r,children:[{type:"elem",elem:a}]},e)},mathmlBuilder(t,e){return new dt.MathNode("mpadded",[D0(t.body,e)],["vcenter"])}});Nt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,a){throw new zt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var a=ij(t),n=[],r=e.havingStyle(e.style.text()),o=0;ot.body.replace(/ /g,t.star?"␣":" "),j3=gX,GX=`[ \r + ]`,fC1="\\\\[a-zA-Z@]+",gC1="\\\\[^\uD800-\uDFFF]",pC1="("+fC1+")"+GX+"*",mC1=`\\\\( |[ \r ]+ -?)[ \r ]*`,sL="[̀-ͯ]",mC1=new RegExp(sL+"+$"),zC1="("+GX+"+)|"+(pC1+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(sL+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(sL+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+gC1)+("|"+fC1+")");class oj{constructor(e,a){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=a,this.tokenRegex=new RegExp(zC1,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,a){this.catcodes[e]=a}lex(){var e=this.input,a=this.tokenRegex.lastIndex;if(a===e.length)return new wi("EOF",new Xa(this,a,a));var n=this.tokenRegex.exec(e);if(n===null||n.index!==a)throw new zt("Unexpected character: '"+e[a]+"'",new wi(e[a],new Xa(this,a,a+1)));var r=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[r]===14){var o=e.indexOf(` -`,this.tokenRegex.lastIndex);return o===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new wi(r,new Xa(this,a,this.tokenRegex.lastIndex))}}class MC1{constructor(e,a){e===void 0&&(e={}),a===void 0&&(a={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=a,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new zt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var a in e)e.hasOwnProperty(a)&&(e[a]==null?delete this.current[a]:this.current[a]=e[a])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,a,n){if(n===void 0&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=a)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}a==null?delete this.current[e]:this.current[e]=a}}var HC1=PX;n1("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});n1("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});n1("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});n1("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});n1("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var a=t.future();return e[0].length===1&&e[0][0].text===a.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});n1("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");n1("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var lj={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};n1("\\char",function(t){var e=t.popToken(),a,n="";if(e.text==="'")a=8,e=t.popToken();else if(e.text==='"')a=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new zt("\\char` missing argument");n=e.text.charCodeAt(0)}else a=10;if(a){if(n=lj[e.text],n==null||n>=a)throw new zt("Invalid base-"+a+" digit "+e.text);for(var r;(r=lj[t.future().text])!=null&&r{var n=t.consumeArg().tokens;if(n.length!==1)throw new zt("\\newcommand's first argument must be a macro name");var r=n[0].text,o=t.isDefined(r);if(o&&!e)throw new zt("\\newcommand{"+r+"} attempting to redefine "+(r+"; use \\renewcommand"));if(!o&&!a)throw new zt("\\renewcommand{"+r+"} when command "+r+" does not yet exist; use \\newcommand");var l=0;if(n=t.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var c="",h=t.expandNextToken();h.text!=="]"&&h.text!=="EOF";)c+=h.text,h=t.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new zt("Invalid number of arguments: "+c);l=parseInt(c),n=t.consumeArg().tokens}return t.macros.set(r,{tokens:n,numArgs:l}),""};n1("\\newcommand",t=>cT(t,!1,!0));n1("\\renewcommand",t=>cT(t,!0,!1));n1("\\providecommand",t=>cT(t,!0,!0));n1("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(a=>a.text).join("")),""});n1("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(a=>a.text).join("")),""});n1("\\show",t=>{var e=t.popToken(),a=e.text;return console.log(e,t.macros.get(a),j3[a],q0.math[a],q0.text[a]),""});n1("\\bgroup","{");n1("\\egroup","}");n1("~","\\nobreakspace");n1("\\lq","`");n1("\\rq","'");n1("\\aa","\\r a");n1("\\AA","\\r A");n1("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");n1("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");n1("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");n1("ℬ","\\mathscr{B}");n1("ℰ","\\mathscr{E}");n1("ℱ","\\mathscr{F}");n1("ℋ","\\mathscr{H}");n1("ℐ","\\mathscr{I}");n1("ℒ","\\mathscr{L}");n1("ℳ","\\mathscr{M}");n1("ℛ","\\mathscr{R}");n1("ℭ","\\mathfrak{C}");n1("ℌ","\\mathfrak{H}");n1("ℨ","\\mathfrak{Z}");n1("\\Bbbk","\\Bbb{k}");n1("·","\\cdotp");n1("\\llap","\\mathllap{\\textrm{#1}}");n1("\\rlap","\\mathrlap{\\textrm{#1}}");n1("\\clap","\\mathclap{\\textrm{#1}}");n1("\\mathstrut","\\vphantom{(}");n1("\\underbar","\\underline{\\text{#1}}");n1("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');n1("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");n1("\\ne","\\neq");n1("≠","\\neq");n1("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");n1("∉","\\notin");n1("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");n1("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");n1("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");n1("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");n1("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");n1("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");n1("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");n1("⟂","\\perp");n1("‼","\\mathclose{!\\mkern-0.8mu!}");n1("∌","\\notni");n1("⌜","\\ulcorner");n1("⌝","\\urcorner");n1("⌞","\\llcorner");n1("⌟","\\lrcorner");n1("©","\\copyright");n1("®","\\textregistered");n1("️","\\textregistered");n1("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');n1("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');n1("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');n1("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');n1("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");n1("⋮","\\vdots");n1("\\varGamma","\\mathit{\\Gamma}");n1("\\varDelta","\\mathit{\\Delta}");n1("\\varTheta","\\mathit{\\Theta}");n1("\\varLambda","\\mathit{\\Lambda}");n1("\\varXi","\\mathit{\\Xi}");n1("\\varPi","\\mathit{\\Pi}");n1("\\varSigma","\\mathit{\\Sigma}");n1("\\varUpsilon","\\mathit{\\Upsilon}");n1("\\varPhi","\\mathit{\\Phi}");n1("\\varPsi","\\mathit{\\Psi}");n1("\\varOmega","\\mathit{\\Omega}");n1("\\substack","\\begin{subarray}{c}#1\\end{subarray}");n1("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");n1("\\boxed","\\fbox{$\\displaystyle{#1}$}");n1("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");n1("\\implies","\\DOTSB\\;\\Longrightarrow\\;");n1("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var cj={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};n1("\\dots",function(t){var e="\\dotso",a=t.expandAfterFuture().text;return a in cj?e=cj[a]:(a.slice(0,4)==="\\not"||a in q0.math&&d2.contains(["bin","rel"],q0.math[a].group))&&(e="\\dotsb"),e});var sT={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};n1("\\dotso",function(t){var e=t.future().text;return e in sT?"\\ldots\\,":"\\ldots"});n1("\\dotsc",function(t){var e=t.future().text;return e in sT&&e!==","?"\\ldots\\,":"\\ldots"});n1("\\cdots",function(t){var e=t.future().text;return e in sT?"\\@cdots\\,":"\\@cdots"});n1("\\dotsb","\\cdots");n1("\\dotsm","\\cdots");n1("\\dotsi","\\!\\cdots");n1("\\dotsx","\\ldots\\,");n1("\\DOTSI","\\relax");n1("\\DOTSB","\\relax");n1("\\DOTSX","\\relax");n1("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");n1("\\,","\\tmspace+{3mu}{.1667em}");n1("\\thinspace","\\,");n1("\\>","\\mskip{4mu}");n1("\\:","\\tmspace+{4mu}{.2222em}");n1("\\medspace","\\:");n1("\\;","\\tmspace+{5mu}{.2777em}");n1("\\thickspace","\\;");n1("\\!","\\tmspace-{3mu}{.1667em}");n1("\\negthinspace","\\!");n1("\\negmedspace","\\tmspace-{4mu}{.2222em}");n1("\\negthickspace","\\tmspace-{5mu}{.277em}");n1("\\enspace","\\kern.5em ");n1("\\enskip","\\hskip.5em\\relax");n1("\\quad","\\hskip1em\\relax");n1("\\qquad","\\hskip2em\\relax");n1("\\tag","\\@ifstar\\tag@literal\\tag@paren");n1("\\tag@paren","\\tag@literal{({#1})}");n1("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new zt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});n1("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");n1("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");n1("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");n1("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");n1("\\newline","\\\\\\relax");n1("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var KX=bt(gi["Main-Regular"][84][1]-.7*gi["Main-Regular"][65][1]);n1("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+KX+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");n1("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+KX+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");n1("\\hspace","\\@ifstar\\@hspacer\\@hspace");n1("\\@hspace","\\hskip #1\\relax");n1("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");n1("\\ordinarycolon",":");n1("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");n1("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');n1("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');n1("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');n1("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');n1("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');n1("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');n1("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');n1("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');n1("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');n1("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');n1("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');n1("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');n1("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');n1("∷","\\dblcolon");n1("∹","\\eqcolon");n1("≔","\\coloneqq");n1("≕","\\eqqcolon");n1("⩴","\\Coloneqq");n1("\\ratio","\\vcentcolon");n1("\\coloncolon","\\dblcolon");n1("\\colonequals","\\coloneqq");n1("\\coloncolonequals","\\Coloneqq");n1("\\equalscolon","\\eqqcolon");n1("\\equalscoloncolon","\\Eqqcolon");n1("\\colonminus","\\coloneq");n1("\\coloncolonminus","\\Coloneq");n1("\\minuscolon","\\eqcolon");n1("\\minuscoloncolon","\\Eqcolon");n1("\\coloncolonapprox","\\Colonapprox");n1("\\coloncolonsim","\\Colonsim");n1("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");n1("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");n1("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");n1("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");n1("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");n1("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");n1("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");n1("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");n1("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");n1("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");n1("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");n1("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");n1("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");n1("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");n1("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");n1("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");n1("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");n1("\\nleqq","\\html@mathml{\\@nleqq}{≰}");n1("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");n1("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");n1("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");n1("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");n1("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");n1("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");n1("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");n1("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");n1("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");n1("\\imath","\\html@mathml{\\@imath}{ı}");n1("\\jmath","\\html@mathml{\\@jmath}{ȷ}");n1("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");n1("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");n1("⟦","\\llbracket");n1("⟧","\\rrbracket");n1("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");n1("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");n1("⦃","\\lBrace");n1("⦄","\\rBrace");n1("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");n1("⦵","\\minuso");n1("\\darr","\\downarrow");n1("\\dArr","\\Downarrow");n1("\\Darr","\\Downarrow");n1("\\lang","\\langle");n1("\\rang","\\rangle");n1("\\uarr","\\uparrow");n1("\\uArr","\\Uparrow");n1("\\Uarr","\\Uparrow");n1("\\N","\\mathbb{N}");n1("\\R","\\mathbb{R}");n1("\\Z","\\mathbb{Z}");n1("\\alef","\\aleph");n1("\\alefsym","\\aleph");n1("\\Alpha","\\mathrm{A}");n1("\\Beta","\\mathrm{B}");n1("\\bull","\\bullet");n1("\\Chi","\\mathrm{X}");n1("\\clubs","\\clubsuit");n1("\\cnums","\\mathbb{C}");n1("\\Complex","\\mathbb{C}");n1("\\Dagger","\\ddagger");n1("\\diamonds","\\diamondsuit");n1("\\empty","\\emptyset");n1("\\Epsilon","\\mathrm{E}");n1("\\Eta","\\mathrm{H}");n1("\\exist","\\exists");n1("\\harr","\\leftrightarrow");n1("\\hArr","\\Leftrightarrow");n1("\\Harr","\\Leftrightarrow");n1("\\hearts","\\heartsuit");n1("\\image","\\Im");n1("\\infin","\\infty");n1("\\Iota","\\mathrm{I}");n1("\\isin","\\in");n1("\\Kappa","\\mathrm{K}");n1("\\larr","\\leftarrow");n1("\\lArr","\\Leftarrow");n1("\\Larr","\\Leftarrow");n1("\\lrarr","\\leftrightarrow");n1("\\lrArr","\\Leftrightarrow");n1("\\Lrarr","\\Leftrightarrow");n1("\\Mu","\\mathrm{M}");n1("\\natnums","\\mathbb{N}");n1("\\Nu","\\mathrm{N}");n1("\\Omicron","\\mathrm{O}");n1("\\plusmn","\\pm");n1("\\rarr","\\rightarrow");n1("\\rArr","\\Rightarrow");n1("\\Rarr","\\Rightarrow");n1("\\real","\\Re");n1("\\reals","\\mathbb{R}");n1("\\Reals","\\mathbb{R}");n1("\\Rho","\\mathrm{P}");n1("\\sdot","\\cdot");n1("\\sect","\\S");n1("\\spades","\\spadesuit");n1("\\sub","\\subset");n1("\\sube","\\subseteq");n1("\\supe","\\supseteq");n1("\\Tau","\\mathrm{T}");n1("\\thetasym","\\vartheta");n1("\\weierp","\\wp");n1("\\Zeta","\\mathrm{Z}");n1("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");n1("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");n1("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");n1("\\bra","\\mathinner{\\langle{#1}|}");n1("\\ket","\\mathinner{|{#1}\\rangle}");n1("\\braket","\\mathinner{\\langle{#1}\\rangle}");n1("\\Bra","\\left\\langle#1\\right|");n1("\\Ket","\\left|#1\\right\\rangle");var YX=t=>e=>{var a=e.consumeArg().tokens,n=e.consumeArg().tokens,r=e.consumeArg().tokens,o=e.consumeArg().tokens,l=e.macros.get("|"),c=e.macros.get("\\|");e.macros.beginGroup();var h=v=>f=>{t&&(f.macros.set("|",l),r.length&&f.macros.set("\\|",c));var d=v;if(!v&&r.length){var M=f.future();M.text==="|"&&(f.popToken(),d=!0)}return{tokens:d?r:n,numArgs:0}};e.macros.set("|",h(!1)),r.length&&e.macros.set("\\|",h(!0));var s=e.consumeArg().tokens,u=e.expandTokens([...o,...s,...a]);return e.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};n1("\\bra@ket",YX(!1));n1("\\bra@set",YX(!0));n1("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");n1("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");n1("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");n1("\\angln","{\\angl n}");n1("\\blue","\\textcolor{##6495ed}{#1}");n1("\\orange","\\textcolor{##ffa500}{#1}");n1("\\pink","\\textcolor{##ff00af}{#1}");n1("\\red","\\textcolor{##df0030}{#1}");n1("\\green","\\textcolor{##28ae7b}{#1}");n1("\\gray","\\textcolor{gray}{#1}");n1("\\purple","\\textcolor{##9d38bd}{#1}");n1("\\blueA","\\textcolor{##ccfaff}{#1}");n1("\\blueB","\\textcolor{##80f6ff}{#1}");n1("\\blueC","\\textcolor{##63d9ea}{#1}");n1("\\blueD","\\textcolor{##11accd}{#1}");n1("\\blueE","\\textcolor{##0c7f99}{#1}");n1("\\tealA","\\textcolor{##94fff5}{#1}");n1("\\tealB","\\textcolor{##26edd5}{#1}");n1("\\tealC","\\textcolor{##01d1c1}{#1}");n1("\\tealD","\\textcolor{##01a995}{#1}");n1("\\tealE","\\textcolor{##208170}{#1}");n1("\\greenA","\\textcolor{##b6ffb0}{#1}");n1("\\greenB","\\textcolor{##8af281}{#1}");n1("\\greenC","\\textcolor{##74cf70}{#1}");n1("\\greenD","\\textcolor{##1fab54}{#1}");n1("\\greenE","\\textcolor{##0d923f}{#1}");n1("\\goldA","\\textcolor{##ffd0a9}{#1}");n1("\\goldB","\\textcolor{##ffbb71}{#1}");n1("\\goldC","\\textcolor{##ff9c39}{#1}");n1("\\goldD","\\textcolor{##e07d10}{#1}");n1("\\goldE","\\textcolor{##a75a05}{#1}");n1("\\redA","\\textcolor{##fca9a9}{#1}");n1("\\redB","\\textcolor{##ff8482}{#1}");n1("\\redC","\\textcolor{##f9685d}{#1}");n1("\\redD","\\textcolor{##e84d39}{#1}");n1("\\redE","\\textcolor{##bc2612}{#1}");n1("\\maroonA","\\textcolor{##ffbde0}{#1}");n1("\\maroonB","\\textcolor{##ff92c6}{#1}");n1("\\maroonC","\\textcolor{##ed5fa6}{#1}");n1("\\maroonD","\\textcolor{##ca337c}{#1}");n1("\\maroonE","\\textcolor{##9e034e}{#1}");n1("\\purpleA","\\textcolor{##ddd7ff}{#1}");n1("\\purpleB","\\textcolor{##c6b9fc}{#1}");n1("\\purpleC","\\textcolor{##aa87ff}{#1}");n1("\\purpleD","\\textcolor{##7854ab}{#1}");n1("\\purpleE","\\textcolor{##543b78}{#1}");n1("\\mintA","\\textcolor{##f5f9e8}{#1}");n1("\\mintB","\\textcolor{##edf2df}{#1}");n1("\\mintC","\\textcolor{##e0e5cc}{#1}");n1("\\grayA","\\textcolor{##f6f7f7}{#1}");n1("\\grayB","\\textcolor{##f0f1f2}{#1}");n1("\\grayC","\\textcolor{##e3e5e6}{#1}");n1("\\grayD","\\textcolor{##d6d8da}{#1}");n1("\\grayE","\\textcolor{##babec2}{#1}");n1("\\grayF","\\textcolor{##888d93}{#1}");n1("\\grayG","\\textcolor{##626569}{#1}");n1("\\grayH","\\textcolor{##3b3e40}{#1}");n1("\\grayI","\\textcolor{##21242c}{#1}");n1("\\kaBlue","\\textcolor{##314453}{#1}");n1("\\kaGreen","\\textcolor{##71B307}{#1}");var ZX={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class wC1{constructor(e,a,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=a,this.expansionCount=0,this.feed(e),this.macros=new MC1(HC1,a.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new oj(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var a,n,r;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;a=this.popToken(),{tokens:r,end:n}=this.consumeArg(["]"])}else({tokens:r,start:a,end:n}=this.consumeArg());return this.pushToken(new wi("EOF",n.loc)),this.pushTokens(r),a.range(n,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var a=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),o,l=0,c=0;do{if(o=this.popToken(),a.push(o),o.text==="{")++l;else if(o.text==="}"){if(--l,l===-1)throw new zt("Extra }",o)}else if(o.text==="EOF")throw new zt("Unexpected end of input in a macro argument, expected '"+(e&&n?e[c]:"}")+"'",o);if(e&&n)if((l===0||l===1&&e[c]==="{")&&o.text===e[c]){if(++c,c===e.length){a.splice(-c,c);break}}else c=0}while(l!==0||n);return r.text==="{"&&a[a.length-1].text==="}"&&(a.pop(),a.shift()),a.reverse(),{tokens:a,start:r,end:o}}consumeArgs(e,a){if(a){if(a.length!==e+1)throw new zt("The length of delimiters doesn't match the number of args!");for(var n=a[0],r=0;rthis.settings.maxExpand)throw new zt("Too many expansions: infinite loop or need to increase maxExpand setting");var o=r.tokens,l=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){o=o.slice();for(var c=o.length-1;c>=0;--c){var h=o[c];if(h.text==="#"){if(c===0)throw new zt("Incomplete placeholder at end of macro body",h);if(h=o[--c],h.text==="#")o.splice(c+1,1);else if(/^[1-9]$/.test(h.text))o.splice(c,2,...l[+h.text-1]);else throw new zt("Not a valid argument number",h)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new wi(e)]):void 0}expandTokens(e){var a=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),a.push(r)}return a}expandMacroAsText(e){var a=this.expandMacro(e);return a&&a.map(n=>n.text).join("")}_getExpansion(e){var a=this.macros.get(e);if(a==null)return a;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof a=="function"?a(this):a;if(typeof r=="string"){var o=0;if(r.indexOf("#")!==-1)for(var l=r.replace(/##/g,"");l.indexOf("#"+(o+1))!==-1;)++o;for(var c=new oj(r,this.settings),h=[],s=c.lex();s.text!=="EOF";)h.push(s),s=c.lex();h.reverse();var u={tokens:h,numArgs:o};return u}return r}isDefined(e){return this.macros.has(e)||j3.hasOwnProperty(e)||q0.math.hasOwnProperty(e)||q0.text.hasOwnProperty(e)||ZX.hasOwnProperty(e)}isExpandable(e){var a=this.macros.get(e);return a!=null?typeof a=="string"||typeof a=="function"||!a.unexpandable:j3.hasOwnProperty(e)&&!j3[e].primitive}}var sj=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Sd=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Qx={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},hj={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let QX=class hL{constructor(e,a){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new wC1(e,a,this.mode),this.settings=a,this.leftrightDepth=0}expect(e,a){if(a===void 0&&(a=!0),this.fetch().text!==e)throw new zt("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());a&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var a=this.nextToken;this.consume(),this.gullet.pushToken(new wi("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=a,n}parseExpression(e,a){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var r=this.fetch();if(hL.endOfExpression.indexOf(r.text)!==-1||a&&r.text===a||e&&j3[r.text]&&j3[r.text].infix)break;var o=this.parseAtom(a);if(o){if(o.type==="internal")continue}else break;n.push(o)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var a=-1,n,r=0;r=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+a[0]+'" used in math mode',e);var c=q0[this.mode][a].group,h=Xa.range(e),s;if(sV1.hasOwnProperty(c)){var u=c;s={type:"atom",mode:this.mode,family:u,loc:h,text:a}}else s={type:c,mode:this.mode,loc:h,text:a};l=s}else if(a.charCodeAt(0)>=128)this.settings.strict&&(iX(a.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+a[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+a[0]+'"'+(" ("+a.charCodeAt(0)+")"),e)),l={type:"textord",mode:"text",loc:Xa.range(e),text:a};else return null;if(this.consume(),o)for(var v=0;vl&&(l=o):o=1,r=n+e.length,n=a.indexOf(e,r);return l}function bC1(){return{enter:{mathFlow:t,mathFlowFenceMeta:e,mathText:o},exit:{mathFlow:r,mathFlowFence:n,mathFlowFenceMeta:a,mathFlowValue:c,mathText:l,mathTextData:c}};function t(h){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},h)}function e(){this.buffer()}function a(){const h=this.resume(),s=this.stack[this.stack.length-1];s.meta=h}function n(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))}function r(h){const s=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u=this.exit(h);u.value=s,u.data.hChildren[0].value=s,this.setData("mathFlowInside")}function o(h){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},h),this.buffer()}function l(h){const s=this.resume(),u=this.exit(h);u.value=s,u.data.hChildren[0].value=s}function c(h){this.config.enter.data.call(this,h),this.config.exit.data.call(this,h)}}function LC1(t){let e=(t||{}).singleDollarTextMath;return e==null&&(e=!0),n.peek=r,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` -`,inConstruct:"mathFlowMeta"},{character:"$",after:e?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:a,inlineMath:n}};function a(o,l,c,h){const s=o.value||"",u=Uh(h),v="$".repeat(Math.max(CC1(s,"$")+1,2)),f=c.enter("mathFlow");let d=u.move(v);if(o.meta){const M=c.enter("mathFlowMeta");d+=u.move(WS(c,o.meta,{before:d,after:` +?)[ \r ]*`,sL="[̀-ͯ]",zC1=new RegExp(sL+"+$"),MC1="("+GX+"+)|"+(mC1+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(sL+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(sL+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+pC1)+("|"+gC1+")");class oj{constructor(e,a){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=a,this.tokenRegex=new RegExp(MC1,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,a){this.catcodes[e]=a}lex(){var e=this.input,a=this.tokenRegex.lastIndex;if(a===e.length)return new wi("EOF",new Ja(this,a,a));var n=this.tokenRegex.exec(e);if(n===null||n.index!==a)throw new zt("Unexpected character: '"+e[a]+"'",new wi(e[a],new Ja(this,a,a+1)));var r=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[r]===14){var o=e.indexOf(` +`,this.tokenRegex.lastIndex);return o===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new wi(r,new Ja(this,a,this.tokenRegex.lastIndex))}}class HC1{constructor(e,a){e===void 0&&(e={}),a===void 0&&(a={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=a,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new zt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var a in e)e.hasOwnProperty(a)&&(e[a]==null?delete this.current[a]:this.current[a]=e[a])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,a,n){if(n===void 0&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=a)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}a==null?delete this.current[e]:this.current[e]=a}}var wC1=PX;n1("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});n1("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});n1("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});n1("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});n1("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var a=t.future();return e[0].length===1&&e[0][0].text===a.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});n1("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");n1("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var lj={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};n1("\\char",function(t){var e=t.popToken(),a,n="";if(e.text==="'")a=8,e=t.popToken();else if(e.text==='"')a=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new zt("\\char` missing argument");n=e.text.charCodeAt(0)}else a=10;if(a){if(n=lj[e.text],n==null||n>=a)throw new zt("Invalid base-"+a+" digit "+e.text);for(var r;(r=lj[t.future().text])!=null&&r{var n=t.consumeArg().tokens;if(n.length!==1)throw new zt("\\newcommand's first argument must be a macro name");var r=n[0].text,o=t.isDefined(r);if(o&&!e)throw new zt("\\newcommand{"+r+"} attempting to redefine "+(r+"; use \\renewcommand"));if(!o&&!a)throw new zt("\\renewcommand{"+r+"} when command "+r+" does not yet exist; use \\newcommand");var l=0;if(n=t.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var c="",h=t.expandNextToken();h.text!=="]"&&h.text!=="EOF";)c+=h.text,h=t.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new zt("Invalid number of arguments: "+c);l=parseInt(c),n=t.consumeArg().tokens}return t.macros.set(r,{tokens:n,numArgs:l}),""};n1("\\newcommand",t=>cT(t,!1,!0));n1("\\renewcommand",t=>cT(t,!0,!1));n1("\\providecommand",t=>cT(t,!0,!0));n1("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(a=>a.text).join("")),""});n1("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(a=>a.text).join("")),""});n1("\\show",t=>{var e=t.popToken(),a=e.text;return console.log(e,t.macros.get(a),j3[a],q0.math[a],q0.text[a]),""});n1("\\bgroup","{");n1("\\egroup","}");n1("~","\\nobreakspace");n1("\\lq","`");n1("\\rq","'");n1("\\aa","\\r a");n1("\\AA","\\r A");n1("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");n1("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");n1("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");n1("ℬ","\\mathscr{B}");n1("ℰ","\\mathscr{E}");n1("ℱ","\\mathscr{F}");n1("ℋ","\\mathscr{H}");n1("ℐ","\\mathscr{I}");n1("ℒ","\\mathscr{L}");n1("ℳ","\\mathscr{M}");n1("ℛ","\\mathscr{R}");n1("ℭ","\\mathfrak{C}");n1("ℌ","\\mathfrak{H}");n1("ℨ","\\mathfrak{Z}");n1("\\Bbbk","\\Bbb{k}");n1("·","\\cdotp");n1("\\llap","\\mathllap{\\textrm{#1}}");n1("\\rlap","\\mathrlap{\\textrm{#1}}");n1("\\clap","\\mathclap{\\textrm{#1}}");n1("\\mathstrut","\\vphantom{(}");n1("\\underbar","\\underline{\\text{#1}}");n1("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');n1("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");n1("\\ne","\\neq");n1("≠","\\neq");n1("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");n1("∉","\\notin");n1("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");n1("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");n1("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");n1("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");n1("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");n1("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");n1("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");n1("⟂","\\perp");n1("‼","\\mathclose{!\\mkern-0.8mu!}");n1("∌","\\notni");n1("⌜","\\ulcorner");n1("⌝","\\urcorner");n1("⌞","\\llcorner");n1("⌟","\\lrcorner");n1("©","\\copyright");n1("®","\\textregistered");n1("️","\\textregistered");n1("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');n1("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');n1("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');n1("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');n1("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");n1("⋮","\\vdots");n1("\\varGamma","\\mathit{\\Gamma}");n1("\\varDelta","\\mathit{\\Delta}");n1("\\varTheta","\\mathit{\\Theta}");n1("\\varLambda","\\mathit{\\Lambda}");n1("\\varXi","\\mathit{\\Xi}");n1("\\varPi","\\mathit{\\Pi}");n1("\\varSigma","\\mathit{\\Sigma}");n1("\\varUpsilon","\\mathit{\\Upsilon}");n1("\\varPhi","\\mathit{\\Phi}");n1("\\varPsi","\\mathit{\\Psi}");n1("\\varOmega","\\mathit{\\Omega}");n1("\\substack","\\begin{subarray}{c}#1\\end{subarray}");n1("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");n1("\\boxed","\\fbox{$\\displaystyle{#1}$}");n1("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");n1("\\implies","\\DOTSB\\;\\Longrightarrow\\;");n1("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var cj={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};n1("\\dots",function(t){var e="\\dotso",a=t.expandAfterFuture().text;return a in cj?e=cj[a]:(a.slice(0,4)==="\\not"||a in q0.math&&d2.contains(["bin","rel"],q0.math[a].group))&&(e="\\dotsb"),e});var sT={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};n1("\\dotso",function(t){var e=t.future().text;return e in sT?"\\ldots\\,":"\\ldots"});n1("\\dotsc",function(t){var e=t.future().text;return e in sT&&e!==","?"\\ldots\\,":"\\ldots"});n1("\\cdots",function(t){var e=t.future().text;return e in sT?"\\@cdots\\,":"\\@cdots"});n1("\\dotsb","\\cdots");n1("\\dotsm","\\cdots");n1("\\dotsi","\\!\\cdots");n1("\\dotsx","\\ldots\\,");n1("\\DOTSI","\\relax");n1("\\DOTSB","\\relax");n1("\\DOTSX","\\relax");n1("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");n1("\\,","\\tmspace+{3mu}{.1667em}");n1("\\thinspace","\\,");n1("\\>","\\mskip{4mu}");n1("\\:","\\tmspace+{4mu}{.2222em}");n1("\\medspace","\\:");n1("\\;","\\tmspace+{5mu}{.2777em}");n1("\\thickspace","\\;");n1("\\!","\\tmspace-{3mu}{.1667em}");n1("\\negthinspace","\\!");n1("\\negmedspace","\\tmspace-{4mu}{.2222em}");n1("\\negthickspace","\\tmspace-{5mu}{.277em}");n1("\\enspace","\\kern.5em ");n1("\\enskip","\\hskip.5em\\relax");n1("\\quad","\\hskip1em\\relax");n1("\\qquad","\\hskip2em\\relax");n1("\\tag","\\@ifstar\\tag@literal\\tag@paren");n1("\\tag@paren","\\tag@literal{({#1})}");n1("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new zt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});n1("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");n1("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");n1("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");n1("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");n1("\\newline","\\\\\\relax");n1("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var KX=bt(gi["Main-Regular"][84][1]-.7*gi["Main-Regular"][65][1]);n1("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+KX+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");n1("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+KX+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");n1("\\hspace","\\@ifstar\\@hspacer\\@hspace");n1("\\@hspace","\\hskip #1\\relax");n1("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");n1("\\ordinarycolon",":");n1("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");n1("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');n1("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');n1("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');n1("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');n1("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');n1("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');n1("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');n1("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');n1("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');n1("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');n1("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');n1("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');n1("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');n1("∷","\\dblcolon");n1("∹","\\eqcolon");n1("≔","\\coloneqq");n1("≕","\\eqqcolon");n1("⩴","\\Coloneqq");n1("\\ratio","\\vcentcolon");n1("\\coloncolon","\\dblcolon");n1("\\colonequals","\\coloneqq");n1("\\coloncolonequals","\\Coloneqq");n1("\\equalscolon","\\eqqcolon");n1("\\equalscoloncolon","\\Eqqcolon");n1("\\colonminus","\\coloneq");n1("\\coloncolonminus","\\Coloneq");n1("\\minuscolon","\\eqcolon");n1("\\minuscoloncolon","\\Eqcolon");n1("\\coloncolonapprox","\\Colonapprox");n1("\\coloncolonsim","\\Colonsim");n1("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");n1("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");n1("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");n1("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");n1("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");n1("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");n1("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");n1("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");n1("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");n1("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");n1("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");n1("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");n1("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");n1("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");n1("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");n1("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");n1("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");n1("\\nleqq","\\html@mathml{\\@nleqq}{≰}");n1("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");n1("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");n1("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");n1("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");n1("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");n1("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");n1("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");n1("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");n1("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");n1("\\imath","\\html@mathml{\\@imath}{ı}");n1("\\jmath","\\html@mathml{\\@jmath}{ȷ}");n1("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");n1("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");n1("⟦","\\llbracket");n1("⟧","\\rrbracket");n1("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");n1("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");n1("⦃","\\lBrace");n1("⦄","\\rBrace");n1("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");n1("⦵","\\minuso");n1("\\darr","\\downarrow");n1("\\dArr","\\Downarrow");n1("\\Darr","\\Downarrow");n1("\\lang","\\langle");n1("\\rang","\\rangle");n1("\\uarr","\\uparrow");n1("\\uArr","\\Uparrow");n1("\\Uarr","\\Uparrow");n1("\\N","\\mathbb{N}");n1("\\R","\\mathbb{R}");n1("\\Z","\\mathbb{Z}");n1("\\alef","\\aleph");n1("\\alefsym","\\aleph");n1("\\Alpha","\\mathrm{A}");n1("\\Beta","\\mathrm{B}");n1("\\bull","\\bullet");n1("\\Chi","\\mathrm{X}");n1("\\clubs","\\clubsuit");n1("\\cnums","\\mathbb{C}");n1("\\Complex","\\mathbb{C}");n1("\\Dagger","\\ddagger");n1("\\diamonds","\\diamondsuit");n1("\\empty","\\emptyset");n1("\\Epsilon","\\mathrm{E}");n1("\\Eta","\\mathrm{H}");n1("\\exist","\\exists");n1("\\harr","\\leftrightarrow");n1("\\hArr","\\Leftrightarrow");n1("\\Harr","\\Leftrightarrow");n1("\\hearts","\\heartsuit");n1("\\image","\\Im");n1("\\infin","\\infty");n1("\\Iota","\\mathrm{I}");n1("\\isin","\\in");n1("\\Kappa","\\mathrm{K}");n1("\\larr","\\leftarrow");n1("\\lArr","\\Leftarrow");n1("\\Larr","\\Leftarrow");n1("\\lrarr","\\leftrightarrow");n1("\\lrArr","\\Leftrightarrow");n1("\\Lrarr","\\Leftrightarrow");n1("\\Mu","\\mathrm{M}");n1("\\natnums","\\mathbb{N}");n1("\\Nu","\\mathrm{N}");n1("\\Omicron","\\mathrm{O}");n1("\\plusmn","\\pm");n1("\\rarr","\\rightarrow");n1("\\rArr","\\Rightarrow");n1("\\Rarr","\\Rightarrow");n1("\\real","\\Re");n1("\\reals","\\mathbb{R}");n1("\\Reals","\\mathbb{R}");n1("\\Rho","\\mathrm{P}");n1("\\sdot","\\cdot");n1("\\sect","\\S");n1("\\spades","\\spadesuit");n1("\\sub","\\subset");n1("\\sube","\\subseteq");n1("\\supe","\\supseteq");n1("\\Tau","\\mathrm{T}");n1("\\thetasym","\\vartheta");n1("\\weierp","\\wp");n1("\\Zeta","\\mathrm{Z}");n1("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");n1("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");n1("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");n1("\\bra","\\mathinner{\\langle{#1}|}");n1("\\ket","\\mathinner{|{#1}\\rangle}");n1("\\braket","\\mathinner{\\langle{#1}\\rangle}");n1("\\Bra","\\left\\langle#1\\right|");n1("\\Ket","\\left|#1\\right\\rangle");var YX=t=>e=>{var a=e.consumeArg().tokens,n=e.consumeArg().tokens,r=e.consumeArg().tokens,o=e.consumeArg().tokens,l=e.macros.get("|"),c=e.macros.get("\\|");e.macros.beginGroup();var h=v=>f=>{t&&(f.macros.set("|",l),r.length&&f.macros.set("\\|",c));var d=v;if(!v&&r.length){var M=f.future();M.text==="|"&&(f.popToken(),d=!0)}return{tokens:d?r:n,numArgs:0}};e.macros.set("|",h(!1)),r.length&&e.macros.set("\\|",h(!0));var s=e.consumeArg().tokens,u=e.expandTokens([...o,...s,...a]);return e.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};n1("\\bra@ket",YX(!1));n1("\\bra@set",YX(!0));n1("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");n1("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");n1("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");n1("\\angln","{\\angl n}");n1("\\blue","\\textcolor{##6495ed}{#1}");n1("\\orange","\\textcolor{##ffa500}{#1}");n1("\\pink","\\textcolor{##ff00af}{#1}");n1("\\red","\\textcolor{##df0030}{#1}");n1("\\green","\\textcolor{##28ae7b}{#1}");n1("\\gray","\\textcolor{gray}{#1}");n1("\\purple","\\textcolor{##9d38bd}{#1}");n1("\\blueA","\\textcolor{##ccfaff}{#1}");n1("\\blueB","\\textcolor{##80f6ff}{#1}");n1("\\blueC","\\textcolor{##63d9ea}{#1}");n1("\\blueD","\\textcolor{##11accd}{#1}");n1("\\blueE","\\textcolor{##0c7f99}{#1}");n1("\\tealA","\\textcolor{##94fff5}{#1}");n1("\\tealB","\\textcolor{##26edd5}{#1}");n1("\\tealC","\\textcolor{##01d1c1}{#1}");n1("\\tealD","\\textcolor{##01a995}{#1}");n1("\\tealE","\\textcolor{##208170}{#1}");n1("\\greenA","\\textcolor{##b6ffb0}{#1}");n1("\\greenB","\\textcolor{##8af281}{#1}");n1("\\greenC","\\textcolor{##74cf70}{#1}");n1("\\greenD","\\textcolor{##1fab54}{#1}");n1("\\greenE","\\textcolor{##0d923f}{#1}");n1("\\goldA","\\textcolor{##ffd0a9}{#1}");n1("\\goldB","\\textcolor{##ffbb71}{#1}");n1("\\goldC","\\textcolor{##ff9c39}{#1}");n1("\\goldD","\\textcolor{##e07d10}{#1}");n1("\\goldE","\\textcolor{##a75a05}{#1}");n1("\\redA","\\textcolor{##fca9a9}{#1}");n1("\\redB","\\textcolor{##ff8482}{#1}");n1("\\redC","\\textcolor{##f9685d}{#1}");n1("\\redD","\\textcolor{##e84d39}{#1}");n1("\\redE","\\textcolor{##bc2612}{#1}");n1("\\maroonA","\\textcolor{##ffbde0}{#1}");n1("\\maroonB","\\textcolor{##ff92c6}{#1}");n1("\\maroonC","\\textcolor{##ed5fa6}{#1}");n1("\\maroonD","\\textcolor{##ca337c}{#1}");n1("\\maroonE","\\textcolor{##9e034e}{#1}");n1("\\purpleA","\\textcolor{##ddd7ff}{#1}");n1("\\purpleB","\\textcolor{##c6b9fc}{#1}");n1("\\purpleC","\\textcolor{##aa87ff}{#1}");n1("\\purpleD","\\textcolor{##7854ab}{#1}");n1("\\purpleE","\\textcolor{##543b78}{#1}");n1("\\mintA","\\textcolor{##f5f9e8}{#1}");n1("\\mintB","\\textcolor{##edf2df}{#1}");n1("\\mintC","\\textcolor{##e0e5cc}{#1}");n1("\\grayA","\\textcolor{##f6f7f7}{#1}");n1("\\grayB","\\textcolor{##f0f1f2}{#1}");n1("\\grayC","\\textcolor{##e3e5e6}{#1}");n1("\\grayD","\\textcolor{##d6d8da}{#1}");n1("\\grayE","\\textcolor{##babec2}{#1}");n1("\\grayF","\\textcolor{##888d93}{#1}");n1("\\grayG","\\textcolor{##626569}{#1}");n1("\\grayH","\\textcolor{##3b3e40}{#1}");n1("\\grayI","\\textcolor{##21242c}{#1}");n1("\\kaBlue","\\textcolor{##314453}{#1}");n1("\\kaGreen","\\textcolor{##71B307}{#1}");var ZX={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class yC1{constructor(e,a,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=a,this.expansionCount=0,this.feed(e),this.macros=new HC1(wC1,a.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new oj(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var a,n,r;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;a=this.popToken(),{tokens:r,end:n}=this.consumeArg(["]"])}else({tokens:r,start:a,end:n}=this.consumeArg());return this.pushToken(new wi("EOF",n.loc)),this.pushTokens(r),a.range(n,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var a=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),o,l=0,c=0;do{if(o=this.popToken(),a.push(o),o.text==="{")++l;else if(o.text==="}"){if(--l,l===-1)throw new zt("Extra }",o)}else if(o.text==="EOF")throw new zt("Unexpected end of input in a macro argument, expected '"+(e&&n?e[c]:"}")+"'",o);if(e&&n)if((l===0||l===1&&e[c]==="{")&&o.text===e[c]){if(++c,c===e.length){a.splice(-c,c);break}}else c=0}while(l!==0||n);return r.text==="{"&&a[a.length-1].text==="}"&&(a.pop(),a.shift()),a.reverse(),{tokens:a,start:r,end:o}}consumeArgs(e,a){if(a){if(a.length!==e+1)throw new zt("The length of delimiters doesn't match the number of args!");for(var n=a[0],r=0;rthis.settings.maxExpand)throw new zt("Too many expansions: infinite loop or need to increase maxExpand setting");var o=r.tokens,l=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){o=o.slice();for(var c=o.length-1;c>=0;--c){var h=o[c];if(h.text==="#"){if(c===0)throw new zt("Incomplete placeholder at end of macro body",h);if(h=o[--c],h.text==="#")o.splice(c+1,1);else if(/^[1-9]$/.test(h.text))o.splice(c,2,...l[+h.text-1]);else throw new zt("Not a valid argument number",h)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new wi(e)]):void 0}expandTokens(e){var a=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),a.push(r)}return a}expandMacroAsText(e){var a=this.expandMacro(e);return a&&a.map(n=>n.text).join("")}_getExpansion(e){var a=this.macros.get(e);if(a==null)return a;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof a=="function"?a(this):a;if(typeof r=="string"){var o=0;if(r.indexOf("#")!==-1)for(var l=r.replace(/##/g,"");l.indexOf("#"+(o+1))!==-1;)++o;for(var c=new oj(r,this.settings),h=[],s=c.lex();s.text!=="EOF";)h.push(s),s=c.lex();h.reverse();var u={tokens:h,numArgs:o};return u}return r}isDefined(e){return this.macros.has(e)||j3.hasOwnProperty(e)||q0.math.hasOwnProperty(e)||q0.text.hasOwnProperty(e)||ZX.hasOwnProperty(e)}isExpandable(e){var a=this.macros.get(e);return a!=null?typeof a=="string"||typeof a=="function"||!a.unexpandable:j3.hasOwnProperty(e)&&!j3[e].primitive}}var sj=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Sd=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Qx={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},hj={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let QX=class hL{constructor(e,a){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new yC1(e,a,this.mode),this.settings=a,this.leftrightDepth=0}expect(e,a){if(a===void 0&&(a=!0),this.fetch().text!==e)throw new zt("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());a&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var a=this.nextToken;this.consume(),this.gullet.pushToken(new wi("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=a,n}parseExpression(e,a){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var r=this.fetch();if(hL.endOfExpression.indexOf(r.text)!==-1||a&&r.text===a||e&&j3[r.text]&&j3[r.text].infix)break;var o=this.parseAtom(a);if(o){if(o.type==="internal")continue}else break;n.push(o)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var a=-1,n,r=0;r=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+a[0]+'" used in math mode',e);var c=q0[this.mode][a].group,h=Ja.range(e),s;if(hV1.hasOwnProperty(c)){var u=c;s={type:"atom",mode:this.mode,family:u,loc:h,text:a}}else s={type:c,mode:this.mode,loc:h,text:a};l=s}else if(a.charCodeAt(0)>=128)this.settings.strict&&(iX(a.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+a[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+a[0]+'"'+(" ("+a.charCodeAt(0)+")"),e)),l={type:"textord",mode:"text",loc:Ja.range(e),text:a};else return null;if(this.consume(),o)for(var v=0;vl&&(l=o):o=1,r=n+e.length,n=a.indexOf(e,r);return l}function LC1(){return{enter:{mathFlow:t,mathFlowFenceMeta:e,mathText:o},exit:{mathFlow:r,mathFlowFence:n,mathFlowFenceMeta:a,mathFlowValue:c,mathText:l,mathTextData:c}};function t(h){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},h)}function e(){this.buffer()}function a(){const h=this.resume(),s=this.stack[this.stack.length-1];s.meta=h}function n(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))}function r(h){const s=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u=this.exit(h);u.value=s,u.data.hChildren[0].value=s,this.setData("mathFlowInside")}function o(h){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},h),this.buffer()}function l(h){const s=this.resume(),u=this.exit(h);u.value=s,u.data.hChildren[0].value=s}function c(h){this.config.enter.data.call(this,h),this.config.exit.data.call(this,h)}}function BC1(t){let e=(t||{}).singleDollarTextMath;return e==null&&(e=!0),n.peek=r,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` +`,inConstruct:"mathFlowMeta"},{character:"$",after:e?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:a,inlineMath:n}};function a(o,l,c,h){const s=o.value||"",u=Uh(h),v="$".repeat(Math.max(bC1(s,"$")+1,2)),f=c.enter("mathFlow");let d=u.move(v);if(o.meta){const M=c.enter("mathFlowMeta");d+=u.move(WS(c,o.meta,{before:d,after:` `,encode:["$"],...u.current()})),M()}return d+=u.move(` `),s&&(d+=u.move(s+` -`)),d+=u.move(v),f(),d}function n(o,l,c){let h=o.value||"",s=1;for(e||s++;new RegExp("(^|[^$])"+"\\$".repeat(s)+"([^$]|$)").test(h);)s++;const u="$".repeat(s);/[^ \r\n]/.test(h)&&(/^[ \r\n]/.test(h)&&/[ \r\n]$/.test(h)||/^\$|\$$/.test(h))&&(h=" "+h+" ");let v=-1;for(;++vh&&(h=s):s&&(h!==void 0&&h>-1&&c.push(` -`.repeat(h)||" "),h=-1,c.push(s))}return c.join("")}function aJ(t,e,a){return t.type==="element"?PC1(t,e,a):t.type==="text"?a.whitespace==="normal"?nJ(t,a):NC1(t):[]}function PC1(t,e,a){const n=rJ(t,a),r=t.children||[];let o=-1,l=[];if(kC1(t))return l;let c,h;for(uL(t)||pj(t)&&vj(e,t,pj)?h=` -`:AC1(t)?(c=2,h=2):eJ(t)&&(c=1,h=1);++o{jh(n,"element",o=>{const l=o.properties&&Array.isArray(o.properties.className)?o.properties.className:[],c=l.includes("math-inline"),h=l.includes("math-display");if(!c&&!h)return;const s=EC1(o,{whitespace:"pre"});let u;try{u=uj.renderToString(s,zj({},e,{displayMode:h,throwOnError:!0}))}catch(f){const d=f,M=a?"fail":"message",g=[ZC1,d.name.toLowerCase()].join(":");if(r[M](d.message,o.position,g),d.name!=="ParseError"){o.children=[{type:"element",tagName:"span",properties:{className:["katex-error"],title:String(d),style:"color:"+(e.errorColor||"#cc0000")},children:[{type:"text",value:s}]}];return}u=uj.renderToString(s,zj({},e,{displayMode:h,throwOnError:!1,strict:"ignore"}))}const v=KC1(u,{fragment:!0});o.children=v.children})}}const XC1=Object.freeze(Object.defineProperty({__proto__:null,default:QC1},Symbol.toStringTag,{value:"Module"})),JC1=se(XC1);/*! +`)),d+=u.move(v),f(),d}function n(o,l,c){let h=o.value||"",s=1;for(e||s++;new RegExp("(^|[^$])"+"\\$".repeat(s)+"([^$]|$)").test(h);)s++;const u="$".repeat(s);/[^ \r\n]/.test(h)&&(/^[ \r\n]/.test(h)&&/[ \r\n]$/.test(h)||/^\$|\$$/.test(h))&&(h=" "+h+" ");let v=-1;for(;++vh&&(h=s):s&&(h!==void 0&&h>-1&&c.push(` +`.repeat(h)||" "),h=-1,c.push(s))}return c.join("")}function aJ(t,e,a){return t.type==="element"?NC1(t,e,a):t.type==="text"?a.whitespace==="normal"?nJ(t,a):DC1(t):[]}function NC1(t,e,a){const n=rJ(t,a),r=t.children||[];let o=-1,l=[];if(EC1(t))return l;let c,h;for(uL(t)||pj(t)&&vj(e,t,pj)?h=` +`:kC1(t)?(c=2,h=2):eJ(t)&&(c=1,h=1);++o{jh(n,"element",o=>{const l=o.properties&&Array.isArray(o.properties.className)?o.properties.className:[],c=l.includes("math-inline"),h=l.includes("math-display");if(!c&&!h)return;const s=PC1(o,{whitespace:"pre"});let u;try{u=uj.renderToString(s,zj({},e,{displayMode:h,throwOnError:!0}))}catch(f){const d=f,M=a?"fail":"message",g=[QC1,d.name.toLowerCase()].join(":");if(r[M](d.message,o.position,g),d.name!=="ParseError"){o.children=[{type:"element",tagName:"span",properties:{className:["katex-error"],title:String(d),style:"color:"+(e.errorColor||"#cc0000")},children:[{type:"text",value:s}]}];return}u=uj.renderToString(s,zj({},e,{displayMode:h,throwOnError:!1,strict:"ignore"}))}const v=YC1(u,{fragment:!0});o.children=v.children})}}const JC1=Object.freeze(Object.defineProperty({__proto__:null,default:XC1},Symbol.toStringTag,{value:"Module"})),tb1=se(JC1);/*! * PhotoSwipe 5.4.3 - https://photoswipe.com * (c) 2023 Dmytro Semenov - */function rn(t,e,a){const n=document.createElement(e);return t&&(n.className=t),a&&a.appendChild(n),n}function $e(t,e){return t.x=e.x,t.y=e.y,e.id!==void 0&&(t.id=e.id),t}function lJ(t){t.x=Math.round(t.x),t.y=Math.round(t.y)}function vL(t,e){const a=Math.abs(t.x-e.x),n=Math.abs(t.y-e.y);return Math.sqrt(a*a+n*n)}function is(t,e){return t.x===e.x&&t.y===e.y}function Kh(t,e,a){return Math.min(Math.max(t,e),a)}function qs(t,e,a){let n=`translate3d(${t}px,${e||0}px,0)`;return a!==void 0&&(n+=` scale3d(${a},${a},1)`),n}function b8(t,e,a,n){t.style.transform=qs(e,a,n)}const tb1="cubic-bezier(.4,0,.22,1)";function cJ(t,e,a,n){t.style.transition=e?`${e} ${a}ms ${n||tb1}`:"none"}function dL(t,e,a){t.style.width=typeof e=="number"?`${e}px`:e,t.style.height=typeof a=="number"?`${a}px`:a}function eb1(t){cJ(t)}function ab1(t){return"decode"in t?t.decode().catch(()=>{}):t.complete?Promise.resolve(t):new Promise((e,a)=>{t.onload=()=>e(t),t.onerror=a})}const xn={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function nb1(t){return"button"in t&&t.button===1||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function rb1(t,e,a=document){let n=[];if(t instanceof Element)n=[t];else if(t instanceof NodeList||Array.isArray(t))n=Array.from(t);else{const r=typeof t=="string"?t:e;r&&(n=Array.from(a.querySelectorAll(r)))}return n}function Mj(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}let sJ=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{sJ=!0}}))}catch{}class ib1{constructor(){this._pool=[]}add(e,a,n,r){this._toggleListener(e,a,n,r)}remove(e,a,n,r){this._toggleListener(e,a,n,r,!0)}removeAll(){this._pool.forEach(e=>{this._toggleListener(e.target,e.type,e.listener,e.passive,!0,!0)}),this._pool=[]}_toggleListener(e,a,n,r,o,l){if(!e)return;const c=o?"removeEventListener":"addEventListener";a.split(" ").forEach(s=>{if(s){l||(o?this._pool=this._pool.filter(v=>v.type!==s||v.listener!==n||v.target!==e):this._pool.push({target:e,type:s,listener:n,passive:r}));const u=sJ?{passive:r||!1}:!1;e[c](s,n,u)}})}}function hJ(t,e){if(t.getViewportSizeFn){const a=t.getViewportSizeFn(t,e);if(a)return a}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function L7(t,e,a,n,r){let o=0;if(e.paddingFn)o=e.paddingFn(a,n,r)[t];else if(e.padding)o=e.padding[t];else{const l="padding"+t[0].toUpperCase()+t.slice(1);e[l]&&(o=e[l])}return Number(o)||0}function uJ(t,e,a,n){return{x:e.x-L7("left",t,e,a,n)-L7("right",t,e,a,n),y:e.y-L7("top",t,e,a,n)-L7("bottom",t,e,a,n)}}class ob1{constructor(e){this.slide=e,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}update(e){this.currZoomLevel=e,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(e){const{pswp:a}=this.slide,n=this.slide[e==="x"?"width":"height"]*this.currZoomLevel,o=L7(e==="x"?"left":"top",a.options,a.viewportSize,this.slide.data,this.slide.index),l=this.slide.panAreaSize[e];this.center[e]=Math.round((l-n)/2)+o,this.max[e]=n>l?Math.round(l-n)+o:this.center[e],this.min[e]=n>l?o:this.center[e]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(e,a){return Kh(a,this.max[e],this.min[e])}}const Hj=4e3;class vJ{constructor(e,a,n,r){this.pswp=r,this.options=e,this.itemData=a,this.index=n,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,a,n){const r={x:e,y:a};this.elementSize=r,this.panAreaSize=n;const o=n.x/r.x,l=n.y/r.y;this.fit=Math.min(1,ol?o:l),this.vFill=Math.min(1,l),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const a=e+"ZoomLevel",n=this.options[a];if(n)return typeof n=="function"?n(this):n==="fill"?this.fill:n==="fit"?this.fit:Number(n)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,this.fit*3),this.elementSize&&e*this.elementSize.x>Hj&&(e=Hj/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}}class lb1{constructor(e,a,n){this.data=e,this.index=a,this.pswp=n,this.isActive=a===n.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!n.opener.isOpen,this.zoomLevels=new vJ(n.options,e,a,n),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:a}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=rn("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new ob1(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(e){e&&!this.isActive?this.activate():!e&&this.isActive&&this.deactivate()}append(e){this.holderElement=e,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}load(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){const{pswp:e}=this;this.heavyAppended||!e.opener.isOpen||e.mainScroll.isShifted()||!this.isActive&&!!0||this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this}))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel===this.zoomLevels.initial||!this.isActive?(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize()):(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y))}updateContentSize(e){const a=this.currentResolution||this.zoomLevels.initial;if(!a)return;const n=Math.round(this.width*a)||this.pswp.viewportSize.x,r=Math.round(this.height*a)||this.pswp.viewportSize.y;!this.sizeChanged(n,r)&&!e||this.content.setDisplayedSize(n,r)}sizeChanged(e,a){return e!==this.prevDisplayedWidth||a!==this.prevDisplayedHeight?(this.prevDisplayedWidth=e,this.prevDisplayedHeight=a,!0):!1}getPlaceholderElement(){var e;return(e=this.content.placeholder)===null||e===void 0?void 0:e.element}zoomTo(e,a,n,r){const{pswp:o}=this;if(!this.isZoomable()||o.mainScroll.isShifted())return;o.dispatch("beforeZoomTo",{destZoomLevel:e,centerPoint:a,transitionDuration:n}),o.animations.stopAllPan();const l=this.currZoomLevel;r||(e=Kh(e,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(e),this.pan.x=this.calculateZoomToPanOffset("x",a,l),this.pan.y=this.calculateZoomToPanOffset("y",a,l),lJ(this.pan);const c=()=>{this._setResolution(e),this.applyCurrentZoomPan()};n?o.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:c,duration:n,easing:o.options.easing}):c()}toggleZoom(e){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,e,this.pswp.options.zoomAnimationDuration)}setZoomLevel(e){this.currZoomLevel=e,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(e,a,n){if(this.bounds.max[e]-this.bounds.min[e]===0)return this.bounds.center[e];a||(a=this.pswp.getViewportCenterPoint()),n||(n=this.zoomLevels.initial);const o=this.currZoomLevel/n;return this.bounds.correctPan(e,(this.pan[e]-a[e])*o+a[e])}panTo(e,a){this.pan.x=this.bounds.correctPan("x",e),this.pan.y=this.bounds.correctPan("y",a),this.applyCurrentZoomPan()}isPannable(){return!!this.width&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return!!this.width&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),$e(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(e,a,n){n/=this.currentResolution||this.zoomLevels.initial,b8(this.container,e,a,n)}calculateSize(){const{pswp:e}=this;$e(this.panAreaSize,uJ(e.options,e.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),e.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){const e=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return qs(this.pan.x,this.pan.y,e)}_setResolution(e){e!==this.currentResolution&&(this.currentResolution=e,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}const cb1=.35,sb1=.6,wj=.4,yj=.5;function hb1(t,e){return t*e/(1-e)}class ub1{constructor(e){this.gestures=e,this.pswp=e.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&$e(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:e,prevP1:a,dragAxis:n}=this.gestures,{currSlide:r}=this.pswp;if(n==="y"&&this.pswp.options.closeOnVerticalDrag&&r&&r.currZoomLevel<=r.zoomLevels.fit&&!this.gestures.isMultitouch){const o=r.pan.y+(e.y-a.y);if(!this.pswp.dispatch("verticalDrag",{panY:o}).defaultPrevented){this._setPanWithFriction("y",o,sb1);const l=1-Math.abs(this._getVerticalDragRatio(r.pan.y));this.pswp.applyBgOpacity(l),r.applyCurrentZoomPan()}}else this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),r&&(lJ(r.pan),r.applyCurrentZoomPan()))}end(){const{velocity:e}=this.gestures,{mainScroll:a,currSlide:n}=this.pswp;let r=0;if(this.pswp.animations.stopAll(),a.isShifted()){const l=(a.x-a.getCurrSlideX())/this.pswp.viewportSize.x;e.x<-yj&&l<0||e.x<.1&&l<-.5?(r=1,e.x=Math.min(e.x,0)):(e.x>yj&&l>0||e.x>-.1&&l>.5)&&(r=-1,e.x=Math.max(e.x,0)),a.moveIndexBy(r,!0,e.x)}n&&n.currZoomLevel>n.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(e){const{velocity:a}=this.gestures,{currSlide:n}=this.pswp;if(!n)return;const{pan:r,bounds:o}=n,l=r[e],c=this.pswp.bgOpacity<1&&e==="y",s=l+hb1(a[e],.995);if(c){const M=this._getVerticalDragRatio(l),g=this._getVerticalDragRatio(s);if(M<0&&g<-wj||M>0&&g>wj){this.pswp.close();return}}const u=o.correctPan(e,s);if(l===u)return;const v=u===s?1:.82,f=this.pswp.bgOpacity,d=u-l;this.pswp.animations.startSpring({name:"panGesture"+e,isPan:!0,start:l,end:u,velocity:a[e],dampingRatio:v,onUpdate:M=>{if(c&&this.pswp.bgOpacity<1){const g=1-(u-M)/d;this.pswp.applyBgOpacity(Kh(f+(1-f)*g,0,1))}r[e]=Math.floor(M),n.applyCurrentZoomPan()}})}_panOrMoveMainScroll(e){const{p1:a,dragAxis:n,prevP1:r,isMultitouch:o}=this.gestures,{currSlide:l,mainScroll:c}=this.pswp,h=a[e]-r[e],s=c.x+h;if(!h||!l)return!1;if(e==="x"&&!l.isPannable()&&!o)return c.moveTo(s,!0),!0;const{bounds:u}=l,v=l.pan[e]+h;if(this.pswp.options.allowPanToNext&&n==="x"&&e==="x"&&!o){const f=c.getCurrSlideX(),d=c.x-f,M=h>0,g=!M;if(v>u.min[e]&&M){if(u.min[e]<=this.startPan[e])return c.moveTo(s,!0),!0;this._setPanWithFriction(e,v)}else if(v0)return c.moveTo(Math.max(s,f),!0),!0;if(d<0)return c.moveTo(Math.min(s,f),!0),!0}else this._setPanWithFriction(e,v)}else e==="y"?!c.isShifted()&&u.min.y!==u.max.y&&this._setPanWithFriction(e,v):this._setPanWithFriction(e,v);return!1}_getVerticalDragRatio(e){var a,n;return(e-((a=(n=this.pswp.currSlide)===null||n===void 0?void 0:n.bounds.center.y)!==null&&a!==void 0?a:0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(e,a,n){const{currSlide:r}=this.pswp;if(!r)return;const{pan:o,bounds:l}=r;if(l.correctPan(e,a)!==a||n){const h=Math.round(a-o[e]);o[e]+=h*(n||cb1)}else o[e]=a}}const vb1=.05,db1=.15;function xj(t,e,a){return t.x=(e.x+a.x)/2,t.y=(e.y+a.y)/2,t}class fb1{constructor(e){this.gestures=e,this._startPan={x:0,y:0},this._startZoomPoint={x:0,y:0},this._zoomPoint={x:0,y:0},this._wasOverFitZoomLevel=!1,this._startZoomLevel=1}start(){const{currSlide:e}=this.gestures.pswp;e&&(this._startZoomLevel=e.currZoomLevel,$e(this._startPan,e.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:e,startP1:a,p2:n,startP2:r,pswp:o}=this.gestures,{currSlide:l}=o;if(!l)return;const c=l.zoomLevels.min,h=l.zoomLevels.max;if(!l.isZoomable()||o.mainScroll.isShifted())return;xj(this._startZoomPoint,a,r),xj(this._zoomPoint,e,n);let s=1/vL(a,r)*vL(e,n)*this._startZoomLevel;if(s>l.zoomLevels.initial+l.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),sh&&(s=h+(s-h)*vb1);l.pan.x=this._calculatePanForZoomLevel("x",s),l.pan.y=this._calculatePanForZoomLevel("y",s),l.setZoomLevel(s),l.applyCurrentZoomPan()}end(){const{pswp:e}=this.gestures,{currSlide:a}=e;(!a||a.currZoomLeveln.zoomLevels.max?o=n.zoomLevels.max:(l=!1,o=r);const c=a.bgOpacity,h=a.bgOpacity<1,s=$e({x:0,y:0},n.pan);let u=$e({x:0,y:0},s);e&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=r,$e(this._startPan,s)),l&&(u={x:this._calculatePanForZoomLevel("x",o),y:this._calculatePanForZoomLevel("y",o)}),n.setZoomLevel(o),u={x:n.bounds.correctPan("x",u.x),y:n.bounds.correctPan("y",u.y)},n.setZoomLevel(r);const v=!is(u,s);if(!v&&!l&&!h){n._setResolution(o),n.applyCurrentZoomPan();return}a.animations.stopAllPan(),a.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:f=>{if(f/=1e3,v||l){if(v&&(n.pan.x=s.x+(u.x-s.x)*f,n.pan.y=s.y+(u.y-s.y)*f),l){const d=r+(o-r)*f;n.setZoomLevel(d)}n.applyCurrentZoomPan()}h&&a.bgOpacity<1&&a.applyBgOpacity(Kh(c+(1-c)*f,0,1))},onComplete:()=>{n._setResolution(o),n.applyCurrentZoomPan()}})}}function Vj(t){return!!t.target.closest(".pswp__container")}class gb1{constructor(e){this.gestures=e}click(e,a){const n=a.target.classList,r=n.contains("pswp__img"),o=n.contains("pswp__item")||n.contains("pswp__zoom-wrap");r?this._doClickOrTapAction("imageClick",e,a):o&&this._doClickOrTapAction("bgClick",e,a)}tap(e,a){Vj(a)&&this._doClickOrTapAction("tap",e,a)}doubleTap(e,a){Vj(a)&&this._doClickOrTapAction("doubleTap",e,a)}_doClickOrTapAction(e,a,n){var r;const{pswp:o}=this.gestures,{currSlide:l}=o,c=e+"Action",h=o.options[c];if(!o.dispatch(c,{point:a,originalEvent:n}).defaultPrevented){if(typeof h=="function"){h.call(o,a,n);return}switch(h){case"close":case"next":o[h]();break;case"zoom":l==null||l.toggleZoom(a);break;case"zoom-or-close":l!=null&&l.isZoomable()&&l.zoomLevels.secondary!==l.zoomLevels.initial?l.toggleZoom(a):o.options.clickToCloseNonZoomable&&o.close();break;case"toggle-controls":(r=this.gestures.pswp.element)===null||r===void 0||r.classList.toggle("pswp--ui-visible");break}}}}const pb1=10,mb1=300,zb1=25;class Mb1{constructor(e){this.pswp=e,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this._lastStartP1={x:0,y:0},this._intervalP1={x:0,y:0},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this._numActivePoints=0,this._intervalTime=0,this._velocityCalculated=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this._tapTimer=null,this.supportsTouch||(e.options.allowPanToNext=!1),this.drag=new ub1(this),this.zoomLevels=new fb1(this),this.tapHandler=new gb1(this),e.on("bindEvents",()=>{e.events.add(e.scrollWrap,"click",this._onClick.bind(this)),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),e.scrollWrap&&(e.scrollWrap.ontouchmove=()=>{},e.scrollWrap.ontouchend=()=>{})):this._bindEvents("mouse","down","up")})}_bindEvents(e,a,n,r){const{pswp:o}=this,{events:l}=o,c=r?e+r:"";l.add(o.scrollWrap,e+a,this.onPointerDown.bind(this)),l.add(window,e+"move",this.onPointerMove.bind(this)),l.add(window,e+n,this.onPointerUp.bind(this)),c&&l.add(o.scrollWrap,c,this.onPointerUp.bind(this))}onPointerDown(e){const a=e.type==="mousedown"||e.pointerType==="mouse";if(a&&e.button>0)return;const{pswp:n}=this;if(!n.opener.isOpen){e.preventDefault();return}n.dispatch("pointerDown",{originalEvent:e}).defaultPrevented||(a&&(n.mouseDetected(),this._preventPointerEventBehaviour(e,"down")),n.animations.stopAll(),this._updatePoints(e,"down"),this._numActivePoints===1&&(this.dragAxis=null,$e(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1)}onPointerMove(e){this._preventPointerEventBehaviour(e,"move"),this._numActivePoints&&(this._updatePoints(e,"move"),!this.pswp.dispatch("pointerMove",{originalEvent:e}).defaultPrevented&&(this._numActivePoints===1&&!this.isDragging?(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,$e(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop())):this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop())))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(e){this._numActivePoints&&(this._updatePoints(e,"up"),!this.pswp.dispatch("pointerUp",{originalEvent:e}).defaultPrevented&&(this._numActivePoints===0&&(this._rafStopLoop(),this.isDragging?this._finishDrag():!this.isZooming&&!this.isMultitouch&&this._finishTap(e)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),this._numActivePoints===1&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?is(this.p1,this.prevP1)||this.drag.change():(!is(this.p1,this.prevP1)||!is(this.p2,this.prevP2))&&this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(e){const a=Date.now(),n=a-this._intervalTime;n<50&&!e||(this.velocity.x=this._getVelocity("x",n),this.velocity.y=this._getVelocity("y",n),this._intervalTime=a,$e(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(e){const{mainScroll:a}=this.pswp;if(a.isShifted()){a.moveIndexBy(0,!0);return}if(e.type.indexOf("cancel")>0)return;if(e.type==="mouseup"||e.pointerType==="mouse"){this.tapHandler.click(this.startP1,e);return}const n=this.pswp.options.doubleTapAction?mb1:0;this._tapTimer?(this._clearTapTimer(),vL(this._lastStartP1,this.startP1){this.tapHandler.tap(this.startP1,e),this._clearTapTimer()},n))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(e,a){const n=this.p1[e]-this._intervalP1[e];return Math.abs(n)>1&&a>5?n/a:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(e,a){this.pswp.applyFilters("preventPointerEvent",!0,e,a)&&e.preventDefault()}_updatePoints(e,a){if(this._pointerEventEnabled){const n=e,r=this._ongoingPointers.findIndex(o=>o.id===n.pointerId);a==="up"&&r>-1?this._ongoingPointers.splice(r,1):a==="down"&&r===-1?this._ongoingPointers.push(this._convertEventPosToPoint(n,{x:0,y:0})):r>-1&&this._convertEventPosToPoint(n,this._ongoingPointers[r]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&$e(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&$e(this.p2,this._ongoingPointers[1])}else{const n=e;this._numActivePoints=0,n.type.indexOf("touch")>-1?n.touches&&n.touches.length>0&&(this._convertEventPosToPoint(n.touches[0],this.p1),this._numActivePoints++,n.touches.length>1&&(this._convertEventPosToPoint(n.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(e,this.p1),a==="up"?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){$e(this.prevP1,this.p1),$e(this.prevP2,this.p2)}_updateStartPoints(){$e(this.startP1,this.p1),$e(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{const e=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(e!==0){const a=e>0?"x":"y";Math.abs(this.p1[a]-this.startP1[a])>=pb1&&(this.dragAxis=a)}}}_convertEventPosToPoint(e,a){return a.x=e.pageX-this.pswp.offset.x,a.y=e.pageY-this.pswp.offset.y,"pointerId"in e?a.id=e.pointerId:e.identifier!==void 0&&(a.id=e.identifier),a}_onClick(e){this.pswp.mainScroll.isShifted()&&(e.preventDefault(),e.stopPropagation())}}const Hb1=.35;class wb1{constructor(e){this.pswp=e,this.x=0,this.slideWidth=0,this._currPositionIndex=0,this._prevPositionIndex=0,this._containerShiftIndex=-1,this.itemHolders=[]}resize(e){const{pswp:a}=this,n=Math.round(a.viewportSize.x+a.viewportSize.x*a.options.spacing),r=n!==this.slideWidth;r&&(this.slideWidth=n,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach((o,l)=>{r&&b8(o.el,(l+this._containerShiftIndex)*this.slideWidth),e&&o.slide&&o.slide.resize()})}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[];for(let e=0;e<3;e++){const a=rn("pswp__item","div",this.pswp.container);a.setAttribute("role","group"),a.setAttribute("aria-roledescription","slide"),a.setAttribute("aria-hidden","true"),a.style.display=e===1?"block":"none",this.itemHolders.push({el:a})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(e,a,n){const{pswp:r}=this;let o=r.potentialIndex+e;const l=r.getNumItems();if(r.canLoop()){o=r.getLoopedIndex(o);const h=(e+l)%l;h<=l/2?e=h:e=h-l}else o<0?o=0:o>=l&&(o=l-1),e=o-r.potentialIndex;r.potentialIndex=o,this._currPositionIndex-=e,r.animations.stopMainScroll();const c=this.getCurrSlideX();if(!a)this.moveTo(c),this.updateCurrItem();else{r.animations.startSpring({isMainScroll:!0,start:this.x,end:c,velocity:n||0,naturalFrequency:30,dampingRatio:1,onUpdate:s=>{this.moveTo(s)},onComplete:()=>{this.updateCurrItem(),r.appendHeavy()}});let h=r.potentialIndex-r.currIndex;if(r.canLoop()){const s=(h+l)%l;s<=l/2?h=s:h=s-l}Math.abs(h)>1&&this.updateCurrItem()}return!!e}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){var e;const{pswp:a}=this,n=this._prevPositionIndex-this._currPositionIndex;if(!n)return;this._prevPositionIndex=this._currPositionIndex,a.currIndex=a.potentialIndex;let r=Math.abs(n),o;r>=3&&(this._containerShiftIndex+=n+(n>0?-3:3),r=3);for(let l=0;l0?(o=this.itemHolders.shift(),o&&(this.itemHolders[2]=o,this._containerShiftIndex++,b8(o.el,(this._containerShiftIndex+2)*this.slideWidth),a.setContent(o,a.currIndex-r+l+2))):(o=this.itemHolders.pop(),o&&(this.itemHolders.unshift(o),this._containerShiftIndex--,b8(o.el,this._containerShiftIndex*this.slideWidth),a.setContent(o,a.currIndex+r-l-2)));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),a.animations.stopAllPan(),this.itemHolders.forEach((l,c)=>{l.slide&&l.slide.setIsActive(c===1)}),a.currSlide=(e=this.itemHolders[1])===null||e===void 0?void 0:e.slide,a.contentLoader.updateLazy(n),a.currSlide&&a.currSlide.applyCurrentZoomPan(),a.dispatch("change")}moveTo(e,a){if(!this.pswp.canLoop()&&a){let n=(this.slideWidth*this._currPositionIndex-e)/this.slideWidth;n+=this.pswp.currIndex;const r=Math.round(e-this.x);(n<0&&r>0||n>=this.pswp.getNumItems()-1&&r<0)&&(e=this.x+r*Hb1)}this.x=e,this.pswp.container&&b8(this.pswp.container,e),this.pswp.dispatch("moveMainScroll",{x:e,dragging:a??!1})}}const yb1={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},a8=(t,e)=>e?t:yb1[t];class xb1{constructor(e){this.pswp=e,this._wasFocused=!1,e.on("bindEvents",()=>{e.options.trapFocus&&(e.options.initialPointerPos||this._focusRoot(),e.events.add(document,"focusin",this._onFocusIn.bind(this))),e.events.add(document,"keydown",this._onKeyDown.bind(this))});const a=document.activeElement;e.on("destroy",()=>{e.options.returnFocus&&a&&this._wasFocused&&a.focus()})}_focusRoot(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(e){const{pswp:a}=this;if(a.dispatch("keydown",{originalEvent:e}).defaultPrevented||nb1(e))return;let n,r,o=!1;const l="key"in e;switch(l?e.key:e.keyCode){case a8("Escape",l):a.options.escKey&&(n="close");break;case a8("z",l):n="toggleZoom";break;case a8("ArrowLeft",l):r="x";break;case a8("ArrowUp",l):r="y";break;case a8("ArrowRight",l):r="x",o=!0;break;case a8("ArrowDown",l):o=!0,r="y";break;case a8("Tab",l):this._focusRoot();break}if(r){e.preventDefault();const{currSlide:c}=a;a.options.arrowKeys&&r==="x"&&a.getNumItems()>1?n=o?"next":"prev":c&&c.currZoomLevel>c.zoomLevels.fit&&(c.pan[r]+=o?-80:80,c.panTo(c.pan.x,c.pan.y))}n&&(e.preventDefault(),a[n]())}_onFocusIn(e){const{template:a}=this.pswp;a&&document!==e.target&&a!==e.target&&!a.contains(e.target)&&a.focus()}}const Vb1="cubic-bezier(.4,0,.22,1)";class Cb1{constructor(e){var a;this.props=e;const{target:n,onComplete:r,transform:o,onFinish:l=()=>{},duration:c=333,easing:h=Vb1}=e;this.onFinish=l;const s=o?"transform":"opacity",u=(a=e[s])!==null&&a!==void 0?a:"";this._target=n,this._onComplete=r,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{cJ(n,s,c,h),this._helperTimeout=setTimeout(()=>{n.addEventListener("transitionend",this._onTransitionEnd,!1),n.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},c+500),n.style[s]=u},30)},0)}_onTransitionEnd(e){e.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._helperTimeout&&clearTimeout(this._helperTimeout),eb1(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}const bb1=12,Lb1=.75;class Bb1{constructor(e,a,n){this.velocity=e*1e3,this._dampingRatio=a||Lb1,this._naturalFrequency=n||bb1,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(e,a){let n=0,r;a/=1e3;const o=Math.E**(-this._dampingRatio*this._naturalFrequency*a);if(this._dampingRatio===1)r=this.velocity+this._naturalFrequency*e,n=(e+r*a)*o,this.velocity=n*-this._naturalFrequency+r*o;else if(this._dampingRatio<1){r=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*e+this.velocity);const l=Math.cos(this._dampedFrequency*a),c=Math.sin(this._dampedFrequency*a);n=o*(e*l+r*c),this.velocity=n*-this._naturalFrequency*this._dampingRatio+o*(-this._dampedFrequency*e*c+this._dampedFrequency*r*l)}return n}}class _b1{constructor(e){this.props=e,this._raf=0;const{start:a,end:n,velocity:r,onUpdate:o,onComplete:l,onFinish:c=()=>{},dampingRatio:h,naturalFrequency:s}=e;this.onFinish=c;const u=new Bb1(r,h,s);let v=Date.now(),f=a-n;const d=()=>{this._raf&&(f=u.easeFrame(f,Date.now()-v),Math.abs(f)<1&&Math.abs(u.velocity)<50?(o(n),l&&l(),this.onFinish()):(v=Date.now(),o(f+n),this._raf=requestAnimationFrame(d)))};this._raf=requestAnimationFrame(d)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}}class Sb1{constructor(){this.activeAnimations=[]}startSpring(e){this._start(e,!0)}startTransition(e){this._start(e)}_start(e,a){const n=a?new _b1(e):new Cb1(e);return this.activeAnimations.push(n),n.onFinish=()=>this.stop(n),n}stop(e){e.destroy();const a=this.activeAnimations.indexOf(e);a>-1&&this.activeAnimations.splice(a,1)}stopAll(){this.activeAnimations.forEach(e=>{e.destroy()}),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter(e=>e.props.isPan?(e.destroy(),!1):!0)}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter(e=>e.props.isMainScroll?(e.destroy(),!1):!0)}isPanRunning(){return this.activeAnimations.some(e=>e.props.isPan)}}class Tb1{constructor(e){this.pswp=e,e.events.add(e.element,"wheel",this._onWheel.bind(this))}_onWheel(e){e.preventDefault();const{currSlide:a}=this.pswp;let{deltaX:n,deltaY:r}=e;if(a&&!this.pswp.dispatch("wheel",{originalEvent:e}).defaultPrevented)if(e.ctrlKey||this.pswp.options.wheelToZoom){if(a.isZoomable()){let o=-r;e.deltaMode===1?o*=.05:o*=e.deltaMode?1:.002,o=2**o;const l=a.currZoomLevel*o;a.zoomTo(l,{x:e.clientX,y:e.clientY})}}else a.isPannable()&&(e.deltaMode===1&&(n*=18,r*=18),a.panTo(a.pan.x-n,a.pan.y-r))}}function Ob1(t){if(typeof t=="string")return t;if(!t||!t.isCustomSVG)return"";const e=t;let a='",a}class Ab1{constructor(e,a){var n;const r=a.name||a.className;let o=a.html;if(e.options[r]===!1)return;typeof e.options[r+"SVG"]=="string"&&(o=e.options[r+"SVG"]),e.dispatch("uiElementCreate",{data:a});let l="";a.isButton?(l+="pswp__button ",l+=a.className||`pswp__button--${a.name}`):l+=a.className||`pswp__${a.name}`;let c=a.isButton?a.tagName||"button":a.tagName||"div";c=c.toLowerCase();const h=rn(l,c);if(a.isButton){c==="button"&&(h.type="button");let{title:v}=a;const{ariaLabel:f}=a;typeof e.options[r+"Title"]=="string"&&(v=e.options[r+"Title"]),v&&(h.title=v);const d=f||v;d&&h.setAttribute("aria-label",d)}h.innerHTML=Ob1(o),a.onInit&&a.onInit(h,e),a.onClick&&(h.onclick=v=>{typeof a.onClick=="string"?e[a.onClick]():typeof a.onClick=="function"&&a.onClick(v,h,e)});const s=a.appendTo||"bar";let u=e.element;s==="bar"?(e.topBar||(e.topBar=rn("pswp__top-bar pswp__hide-on-close","div",e.scrollWrap)),u=e.topBar):(h.classList.add("pswp__hide-on-close"),s==="wrapper"&&(u=e.scrollWrap)),(n=u)===null||n===void 0||n.appendChild(e.applyFilters("uiElement",h,a))}}function dJ(t,e,a){t.classList.add("pswp__button--arrow"),t.setAttribute("aria-controls","pswp__items"),e.on("change",()=>{e.options.loop||(a?t.disabled=!(e.currIndex0))})}const kb1={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:dJ},Eb1={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(t,e)=>{dJ(t,e,!0)}},Pb1={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-close"},onClick:"close"},Nb1={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},Db1={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-loading"},onInit:(t,e)=>{let a,n=null;const r=(c,h)=>{t.classList.toggle("pswp__preloader--"+c,h)},o=c=>{a!==c&&(a=c,r("active",c))},l=()=>{var c;if(!((c=e.currSlide)!==null&&c!==void 0&&c.content.isLoading())){o(!1),n&&(clearTimeout(n),n=null);return}n||(n=setTimeout(()=>{var h;o(!!(!((h=e.currSlide)===null||h===void 0)&&h.content.isLoading())),n=null},e.options.preloaderDelay))};e.on("change",l),e.on("loadComplete",c=>{e.currSlide===c.slide&&l()}),e.ui&&(e.ui.updatePreloaderVisibility=l)}},Rb1={name:"counter",order:5,onInit:(t,e)=>{e.on("change",()=>{t.innerText=e.currIndex+1+e.options.indexIndicatorSep+e.getNumItems()})}};function Cj(t,e){t.classList.toggle("pswp--zoomed-in",e)}class jb1{constructor(e){this.pswp=e,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=()=>{},this._lastUpdatedZoomLevel=void 0}init(){const{pswp:e}=this;this.isRegistered=!1,this.uiElementsData=[Pb1,kb1,Eb1,Nb1,Db1,Rb1],e.dispatch("uiRegister"),this.uiElementsData.sort((a,n)=>(a.order||0)-(n.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(a=>{this.registerElement(a)}),e.on("change",()=>{var a;(a=e.element)===null||a===void 0||a.classList.toggle("pswp--one-slide",e.getNumItems()===1)}),e.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(e){this.isRegistered?this.items.push(new Ab1(this.pswp,e)):this.uiElementsData.push(e)}_onZoomPanUpdate(){const{template:e,currSlide:a,options:n}=this.pswp;if(this.pswp.opener.isClosing||!e||!a)return;let{currZoomLevel:r}=a;if(this.pswp.opener.isOpen||(r=a.zoomLevels.initial),r===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=r;const o=a.zoomLevels.initial-a.zoomLevels.secondary;if(Math.abs(o)<.01||!a.isZoomable()){Cj(e,!1),e.classList.remove("pswp--zoom-allowed");return}e.classList.add("pswp--zoom-allowed");const l=r===a.zoomLevels.initial?a.zoomLevels.secondary:a.zoomLevels.initial;Cj(e,l<=r),(n.imageClickAction==="zoom"||n.imageClickAction==="zoom-or-close")&&e.classList.add("pswp--click-to-zoom")}}function Ib1(t){const e=t.getBoundingClientRect();return{x:e.left,y:e.top,w:e.width}}function Fb1(t,e,a){const n=t.getBoundingClientRect(),r=n.width/e,o=n.height/a,l=r>o?r:o,c=(n.width-e*l)/2,h=(n.height-a*l)/2,s={x:n.left+c,y:n.top+h,w:e*l};return s.innerRect={w:n.width,h:n.height,x:c,y:h},s}function $b1(t,e,a){const n=a.dispatch("thumbBounds",{index:t,itemData:e,instance:a});if(n.thumbBounds)return n.thumbBounds;const{element:r}=e;let o,l;if(r&&a.options.thumbSelector!==!1){const c=a.options.thumbSelector||"img";l=r.matches(c)?r:r.querySelector(c)}return l=a.applyFilters("thumbEl",l,e,t),l&&(e.thumbCropped?o=Fb1(l,e.width||e.w||0,e.height||e.h||0):o=Ib1(l)),a.applyFilters("thumbBounds",o,e,t)}class Ub1{constructor(e,a){this.type=e,this.defaultPrevented=!1,a&&Object.assign(this,a)}preventDefault(){this.defaultPrevented=!0}}class Wb1{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,a,n=100){var r,o,l;this._filters[e]||(this._filters[e]=[]),(r=this._filters[e])===null||r===void 0||r.push({fn:a,priority:n}),(o=this._filters[e])===null||o===void 0||o.sort((c,h)=>c.priority-h.priority),(l=this.pswp)===null||l===void 0||l.addFilter(e,a,n)}removeFilter(e,a){this._filters[e]&&(this._filters[e]=this._filters[e].filter(n=>n.fn!==a)),this.pswp&&this.pswp.removeFilter(e,a)}applyFilters(e,...a){var n;return(n=this._filters[e])===null||n===void 0||n.forEach(r=>{a[0]=r.fn.apply(this,a)}),a[0]}on(e,a){var n,r;this._listeners[e]||(this._listeners[e]=[]),(n=this._listeners[e])===null||n===void 0||n.push(a),(r=this.pswp)===null||r===void 0||r.on(e,a)}off(e,a){var n;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(r=>a!==r)),(n=this.pswp)===null||n===void 0||n.off(e,a)}dispatch(e,a){var n;if(this.pswp)return this.pswp.dispatch(e,a);const r=new Ub1(e,a);return(n=this._listeners[e])===null||n===void 0||n.forEach(o=>{o.call(this,r)}),r}}class qb1{constructor(e,a){if(this.element=rn("pswp__img pswp__img--placeholder",e?"img":"div",a),e){const n=this.element;n.decoding="async",n.alt="",n.src=e,n.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,a){this.element&&(this.element.tagName==="IMG"?(dL(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=qs(0,0,e/250)):dL(this.element,e,a))}destroy(){var e;(e=this.element)!==null&&e!==void 0&&e.parentNode&&this.element.remove(),this.element=null}}class Gb1{constructor(e,a,n){this.instance=a,this.data=e,this.index=n,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=xn.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(e,a){if(this.slide&&this.usePlaceholder())if(this.placeholder){const n=this.placeholder.element;n&&!n.parentElement&&this.slide.container.prepend(n)}else{const n=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new qb1(n,this.slide.container)}this.element&&!a||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=rn("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=rn("pswp__content","div"),this.element.innerHTML=this.data.html||""),a&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var a,n;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;const r=this.element;this.updateSrcsetSizes(),this.data.srcset&&(r.srcset=this.data.srcset),r.src=(a=this.data.src)!==null&&a!==void 0?a:"",r.alt=(n=this.data.alt)!==null&&n!==void 0?n:"",this.state=xn.LOADING,r.complete?this.onLoaded():(r.onload=()=>{this.onLoaded()},r.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=xn.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===xn.LOADED||this.state===xn.ERROR)&&this.removePlaceholder())}onError(){this.state=xn.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===xn.LOADING,this)}isError(){return this.state===xn.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(e,a){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,a),!this.instance.dispatch("contentResize",{content:this,width:e,height:a}).defaultPrevented&&(dL(this.element,e,a),this.isImageContent()&&!this.isError()))){const n=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=a,n?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:a,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==xn.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const e=this.element,a=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||a>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=a+"px",e.dataset.largestUsedSize=String(a))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,a;let n=rn("pswp__error-msg","div");n.innerText=(e=(a=this.instance.options)===null||a===void 0?void 0:a.errorMsg)!==null&&e!==void 0?e:"",n=this.instance.applyFilters("contentErrorElement",n,this),this.element=rn("pswp__content pswp__error-msg-container","div"),this.element.appendChild(n),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===xn.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||Mj())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!Mj()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===xn.LOADED||this.state===xn.ERROR)&&this.removePlaceholder()))}}const Kb1=5;function fJ(t,e,a){const n=e.createContentFromData(t,a);let r;const{options:o}=e;if(o){r=new vJ(o,t,-1);let l;e.pswp?l=e.pswp.viewportSize:l=hJ(o,e);const c=uJ(o,l,t,a);r.update(n.width,n.height,c)}return n.lazyLoad(),r&&n.setDisplayedSize(Math.ceil(n.width*r.initial),Math.ceil(n.height*r.initial)),n}function Yb1(t,e){const a=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:a}).defaultPrevented)return fJ(a,e,t)}let Zb1=class{constructor(e){this.pswp=e,this.limit=Math.max(e.options.preload[0]+e.options.preload[1]+1,Kb1),this._cachedItems=[]}updateLazy(e){const{pswp:a}=this;if(a.dispatch("lazyLoad").defaultPrevented)return;const{preload:n}=a.options,r=e===void 0?!0:e>=0;let o;for(o=0;o<=n[1];o++)this.loadSlideByIndex(a.currIndex+(r?o:-o));for(o=1;o<=n[0];o++)this.loadSlideByIndex(a.currIndex+(r?-o:o))}loadSlideByIndex(e){const a=this.pswp.getLoopedIndex(e);let n=this.getContentByIndex(a);n||(n=Yb1(a,this.pswp),n&&this.addToCache(n))}getContentBySlide(e){let a=this.getContentByIndex(e.index);return a||(a=this.pswp.createContentFromData(e.data,e.index),this.addToCache(a)),a.setSlide(e),a}addToCache(e){if(this.removeByIndex(e.index),this._cachedItems.push(e),this._cachedItems.length>this.limit){const a=this._cachedItems.findIndex(n=>!n.isAttached&&!n.hasSlide);a!==-1&&this._cachedItems.splice(a,1)[0].destroy()}}removeByIndex(e){const a=this._cachedItems.findIndex(n=>n.index===e);a!==-1&&this._cachedItems.splice(a,1)}getContentByIndex(e){return this._cachedItems.find(a=>a.index===e)}destroy(){this._cachedItems.forEach(e=>e.destroy()),this._cachedItems=[]}};class Qb1 extends Wb1{getNumItems(){var e;let a=0;const n=(e=this.options)===null||e===void 0?void 0:e.dataSource;n&&"length"in n?a=n.length:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),n.items&&(a=n.items.length));const r=this.dispatch("numItems",{dataSource:n,numItems:a});return this.applyFilters("numItems",r.numItems,n)}createContentFromData(e,a){return new Gb1(e,this,a)}getItemData(e){var a;const n=(a=this.options)===null||a===void 0?void 0:a.dataSource;let r={};Array.isArray(n)?r=n[e]:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),r=n.items[e]);let o=r;o instanceof Element&&(o=this._domElementToItemData(o));const l=this.dispatch("itemData",{itemData:o||{},index:e});return this.applyFilters("itemData",l.itemData,e)}_getGalleryDOMElements(e){var a,n;return(a=this.options)!==null&&a!==void 0&&a.children||(n=this.options)!==null&&n!==void 0&&n.childSelector?rb1(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const a={element:e},n=e.tagName==="A"?e:e.querySelector("a");if(n){a.src=n.dataset.pswpSrc||n.href,n.dataset.pswpSrcset&&(a.srcset=n.dataset.pswpSrcset),a.width=n.dataset.pswpWidth?parseInt(n.dataset.pswpWidth,10):0,a.height=n.dataset.pswpHeight?parseInt(n.dataset.pswpHeight,10):0,a.w=a.width,a.h=a.height,n.dataset.pswpType&&(a.type=n.dataset.pswpType);const o=e.querySelector("img");if(o){var r;a.msrc=o.currentSrc||o.src,a.alt=(r=o.getAttribute("alt"))!==null&&r!==void 0?r:""}(n.dataset.pswpCropped||n.dataset.cropped)&&(a.thumbCropped=!0)}return this.applyFilters("domItemData",a,e,n)}lazyLoadData(e,a){return fJ(e,this,a)}}const X9=.003;class Xb1{constructor(e){this.pswp=e,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this._duration=void 0,this._useAnimation=!1,this._croppedZoom=!1,this._animateRootOpacity=!1,this._animateBgOpacity=!1,this._placeholder=void 0,this._opacityElement=void 0,this._cropContainer1=void 0,this._cropContainer2=void 0,this._thumbBounds=void 0,this._prepareOpen=this._prepareOpen.bind(this),e.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return;const e=this.pswp.currSlide;this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,e&&e.currZoomLevel*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout(()=>{this._start()},this._croppedZoom?30:0)}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){const e=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,e&&e.zoomLevels.initial*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){const{pswp:e}=this,a=this.pswp.currSlide,{options:n}=e;if(n.showHideAnimationType==="fade"?(n.showHideOpacity=!0,this._thumbBounds=void 0):n.showHideAnimationType==="none"?(n.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&e._initialThumbBounds?this._thumbBounds=e._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=a==null?void 0:a.getPlaceholderElement(),e.animations.stopAll(),this._useAnimation=!!(this._duration&&this._duration>50),this._animateZoom=!!this._thumbBounds&&(a==null?void 0:a.content.usePlaceholder())&&(!this.isClosing||!e.mainScroll.isShifted()),!this._animateZoom)this._animateRootOpacity=!0,this.isOpening&&a&&(a.zoomAndPanToInitial(),a.applyCurrentZoomPan());else{var r;this._animateRootOpacity=(r=n.showHideOpacity)!==null&&r!==void 0?r:!1}if(this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>X9,this._opacityElement=this._animateRootOpacity?e.element:e.bg,!this._useAnimation){this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,this.isOpening&&(e.element&&(e.element.style.opacity=String(X9)),e.applyBgOpacity(1));return}if(this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect){var o;this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=(o=this.pswp.currSlide)===null||o===void 0?void 0:o.holderElement,e.container&&(e.container.style.overflow="hidden",e.container.style.width=e.viewportSize.x+"px")}else this._croppedZoom=!1;this.isOpening?(this._animateRootOpacity?(e.element&&(e.element.style.opacity=String(X9)),e.applyBgOpacity(1)):(this._animateBgOpacity&&e.bg&&(e.bg.style.opacity=String(X9)),e.element&&(e.element.style.opacity="1")),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(X9)))):this.isClosing&&(e.mainScroll.itemHolders[0]&&(e.mainScroll.itemHolders[0].el.style.display="none"),e.mainScroll.itemHolders[2]&&(e.mainScroll.itemHolders[2].el.style.display="none"),this._croppedZoom&&e.mainScroll.x!==0&&(e.mainScroll.resetPosition(),e.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&this._placeholder.tagName==="IMG"?new Promise(e=>{let a=!1,n=!0;ab1(this._placeholder).finally(()=>{a=!0,n||e(!0)}),setTimeout(()=>{n=!1,a&&e(!0)},50),setTimeout(e,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){var e,a;(e=this.pswp.element)===null||e===void 0||e.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),(a=this.pswp.element)===null||a===void 0||a.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){const{pswp:e}=this;if(this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,e.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),e.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed)e.destroy();else if(this.isOpen){var a;this._animateZoom&&e.container&&(e.container.style.overflow="visible",e.container.style.width="100%"),(a=e.currSlide)===null||a===void 0||a.applyCurrentZoomPan()}}_animateToOpenState(){const{pswp:e}=this;this._animateZoom&&(this._croppedZoom&&this._cropContainer1&&this._cropContainer2&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,0,0)"),this._animateTo(this._cropContainer2,"transform","none")),e.currSlide&&(e.currSlide.zoomAndPanToInitial(),this._animateTo(e.currSlide.container,"transform",e.currSlide.getCurrentTransform()))),this._animateBgOpacity&&e.bg&&this._animateTo(e.bg,"opacity",String(e.options.bgOpacity)),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","1")}_animateToClosedState(){const{pswp:e}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&e.bgOpacity>.01&&e.bg&&this._animateTo(e.bg,"opacity","0"),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","0")}_setClosedStateZoomPan(e){if(!this._thumbBounds)return;const{pswp:a}=this,{innerRect:n}=this._thumbBounds,{currSlide:r,viewportSize:o}=a;if(this._croppedZoom&&n&&this._cropContainer1&&this._cropContainer2){const l=-o.x+(this._thumbBounds.x-n.x)+n.w,c=-o.y+(this._thumbBounds.y-n.y)+n.h,h=o.x-n.w,s=o.y-n.h;e?(this._animateTo(this._cropContainer1,"transform",qs(l,c)),this._animateTo(this._cropContainer2,"transform",qs(h,s))):(b8(this._cropContainer1,l,c),b8(this._cropContainer2,h,s))}r&&($e(r.pan,n||this._thumbBounds),r.currZoomLevel=this._thumbBounds.w/r.width,e?this._animateTo(r.container,"transform",r.getCurrentTransform()):r.applyCurrentZoomPan())}_animateTo(e,a,n){if(!this._duration){e.style[a]=n;return}const{animations:r}=this.pswp,o={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{r.activeAnimations.length||this._onAnimationComplete()},target:e};o[a]=n,r.startTransition(o)}}const Jb1={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"};class tL1 extends Qb1{constructor(e){super(),this.options=this._prepareOptions(e||{}),this.offset={x:0,y:0},this._prevViewportSize={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this._initialItemData={},this._initialThumbBounds=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new ib1,this.animations=new Sb1,this.mainScroll=new wb1(this),this.gestures=new Mb1(this),this.opener=new Xb1(this),this.keyboard=new xb1(this),this.contentLoader=new Zb1(this)}init(){if(this.isOpen||this.isDestroying)return!1;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();let e="pswp--open";return this.gestures.supportsTouch&&(e+=" pswp--touch"),this.options.mainClass&&(e+=" "+this.options.mainClass),this.element&&(this.element.className+=" "+e),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new Tb1(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",()=>{const{itemHolders:a}=this.mainScroll;a[0]&&(a[0].el.style.display="block",this.setContent(a[0],this.currIndex-1)),a[2]&&(a[2].el.style.display="block",this.setContent(a[2],this.currIndex+1)),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")}),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(e){const a=this.getNumItems();return this.options.loop&&(e>a-1&&(e-=a),e<0&&(e+=a)),Kh(e,0,a-1)}appendHeavy(){this.mainScroll.itemHolders.forEach(e=>{var a;(a=e.slide)===null||a===void 0||a.appendHeavy()})}goTo(e){this.mainScroll.moveIndexBy(this.getLoopedIndex(e)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...e){var a;(a=this.currSlide)===null||a===void 0||a.zoomTo(...e)}toggleZoom(){var e;(e=this.currSlide)===null||e===void 0||e.toggleZoom()}close(){!this.opener.isOpen||this.isDestroying||(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){var e;if(!this.isDestroying){this.options.showHideAnimationType="none",this.close();return}this.dispatch("destroy"),this._listeners={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),(e=this.element)===null||e===void 0||e.remove(),this.mainScroll.itemHolders.forEach(a=>{var n;(n=a.slide)===null||n===void 0||n.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(e){this.contentLoader.removeByIndex(e),this.mainScroll.itemHolders.forEach((a,n)=>{var r,o;let l=((r=(o=this.currSlide)===null||o===void 0?void 0:o.index)!==null&&r!==void 0?r:0)-1+n;if(this.canLoop()&&(l=this.getLoopedIndex(l)),l===e&&(this.setContent(a,e,!0),n===1)){var c;this.currSlide=a.slide,(c=a.slide)===null||c===void 0||c.setIsActive(!0)}}),this.dispatch("change")}setContent(e,a,n){if(this.canLoop()&&(a=this.getLoopedIndex(a)),e.slide){if(e.slide.index===a&&!n)return;e.slide.destroy(),e.slide=void 0}if(!this.canLoop()&&(a<0||a>=this.getNumItems()))return;const r=this.getItemData(a);e.slide=new lb1(r,a,this),a===this.currIndex&&(this.currSlide=e.slide),e.slide.append(e.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(e){if(this.isDestroying)return;const a=hJ(this.options,this);!e&&is(a,this._prevViewportSize)||($e(this._prevViewportSize,a),this.dispatch("beforeResize"),$e(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(e){this.bgOpacity=Math.max(e,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){if(!this.hasMouse){var e;this.hasMouse=!0,(e=this.element)===null||e===void 0||e.classList.add("pswp--has_mouse")}}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout(()=>{this.updateSize()},500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(e,a){this.offset.x=e,this.offset.y=a,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=rn("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=rn("pswp__bg","div",this.element),this.scrollWrap=rn("pswp__scroll-wrap","section",this.element),this.container=rn("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new jb1(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return $b1(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(e){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(e.showHideAnimationType="none",e.zoomAnimationDuration=0),{...Jb1,...e}}}class eL1 extends Error{constructor(){super(...arguments),this.message="No valid `ref` provided.\nYou should use `ref` from render prop of Item component.\nExample:\n{({ ref }) =>
}
\n"}}function aL1(t,e){if(!(t instanceof Element)||!(e instanceof Element))throw new eL1;return t===e?0:t.compareDocumentPosition(e)&2?1:-1}function gJ(t){return Object.entries(t).map(([e,a])=>a?`${e}=${a}`:e).join("&")}function dT(t){return t.split("&").reduce((e,a)=>{const[n,r]=a.split("=");return n&&(e[n]=r),e},{})}function bj(t){const e=dT(t);return delete e.gid,delete e.pid,gJ(e)}function J9(){return window.location.hash.substring(1)}function Lj(){return`${window.location.pathname}${window.location.search}`}const Bj=t=>{const e=dT(t);return!!e.gid&&!!e.pid};function nL1(t,e){return t!==null?t:e?parseInt(e,10)-1:0}const fT=W1.createContext({remove:()=>{},set:()=>{},handleClick:()=>{},open:()=>{}});class rL1{constructor(e){this.pswp=e,this.on=e.on.bind(e),this.off=e.off.bind(e),this.dispatch=e.dispatch.bind(e)}}var iL1=function(t,e){var a={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(a[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(t);r{const[s,u]=_.useState(null),v=_.useRef(new Map),f=_.useRef(null),d=_.useCallback((z,w,x,y)=>{if(g3)return;let V=x||null;const C=[],L=Array.from(v.current),B=(U,W)=>{const[Y,F]=U,{width:t1,height:R,original:i1,originalSrcset:J,thumbnail:A,cropped:o1,content:h1,id:a1}=F,M1=iL1(F,["width","height","original","originalSrcset","thumbnail","cropped","content","id"]);(z===Y||a1!==void 0&&String(a1)===w)&&(V=W),C.push(Object.assign(Object.assign(Object.assign({w:Number(t1),h:Number(R),src:i1,srcset:J,msrc:A,element:Y.current,thumbCropped:o1,content:h1},h1!==void 0?{type:"html"}:{}),a1!==void 0?{pid:a1}:{}),M1))};v.current.size>1?L.sort(([{current:U}],[{current:W}])=>aL1(U,W)).forEach(B):L.forEach(B);const S=y&&y.clientX!==void 0&&y.clientY!==void 0?{x:y.clientX,y:y.clientY}:null,T=new tL1(Object.assign({dataSource:C,index:nL1(V,w),initialPointerPos:S},e||{}));g3=T,T.on("contentActivate",({content:U})=>{U.data.content?u($8.createPortal(U.data.content,U.element)):u(null)}),T.on("close",()=>{u(null)}),h&&T.on("uiRegister",()=>{var U;(U=T.ui)===null||U===void 0||U.registerElement({name:"download-button",ariaLabel:"Download",order:8,isButton:!0,tagName:"a",appendTo:"bar",html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-download"},onInit:(W,Y)=>{W.setAttribute("download",""),W.setAttribute("target","_blank"),W.setAttribute("rel","noopener"),T.on("change",()=>{var F;if(!(!((F=Y.currSlide)===null||F===void 0)&&F.data.src))return;const t1=W;t1.href=Y.currSlide.data.src})}})}),c&&T.on("uiRegister",()=>{var U;(U=T.ui)===null||U===void 0||U.registerElement({name:"default-caption",order:9,isButton:!1,appendTo:"root",onInit:(W,Y)=>{W.style.position="absolute",W.style.bottom="15px",W.style.left="0",W.style.right="0",W.style.padding="0 20px",W.style.color="var(--pswp-icon-color)",W.style.textAlign="center",W.style.fontSize="14px",W.style.lineHeight="1.5",W.style.textShadow="1px 1px 3px var(--pswp-icon-color-secondary)",T.on("change",()=>{if(!Y.currSlide)return;const{caption:F,alt:t1}=Y.currSlide.data;W.innerHTML=F||t1||""})}})}),Array.isArray(n)&&n.forEach(U=>{T.on("uiRegister",()=>{var W;(W=T.ui)===null||W===void 0||W.registerElement(U)})}),typeof a=="function"&&a(new rL1(T)),typeof o=="function"&&o(T);const E=()=>({gallery:{galleryUID:r}});T.on("beforeOpen",()=>{var U;if(r===void 0)return;if(!Bj(J9())){window.history.pushState(E(),document.title);return}if(!!(!((U=window.history.state)===null||U===void 0)&&U.gallery))return;const F=Lj(),t1=J9(),R=bj(t1),i1=`${F}${R?`#${R}`:""}`,J=`${F}#${t1}`;window.history.replaceState(window.history.state,document.title,i1),window.history.pushState(E(),document.title,J)}),T.on("change",()=>{var U;if(r===void 0)return;const W=((U=T.currSlide)===null||U===void 0?void 0:U.data.pid)||T.currIndex+1,Y=Lj(),F=bj(J9()),t1=gJ({gid:r,pid:W}),R=`${Y}#${F}&${t1}`;window.history.replaceState(E(),document.title,R)});const $=()=>{r!==void 0&&g3!==null&&g3.close()};window.addEventListener("popstate",$),T.on("destroy",()=>{r!==void 0&&(window.removeEventListener("popstate",$),Bj(J9())&&window.history.back()),g3=null}),T.init(),typeof l=="function"&&l(T)},[e,a,n,r,o,l,c,h]);_.useEffect(()=>()=>{g3&&g3.close()},[]);const M=_.useCallback(()=>{if(r===void 0||g3!==null)return;const z=J9();if(z.length<5)return;const w=dT(z),{pid:x,gid:y}=w;if(!(!x||!y)){if(v.current.size===0){f.current=x;return}x&&y===String(r)&&d(null,x)}},[d,r]);_.useEffect(()=>(M(),window.addEventListener("popstate",M),()=>{window.removeEventListener("popstate",M)}),[M]);const g=_.useCallback(z=>{v.current.delete(z)},[]),H=_.useCallback((z,w)=>{const{id:x}=w;if(v.current.set(z,w),f.current!==null){if(x===f.current){d(z),f.current=null;return}if(!x){const y=parseInt(f.current,10)-1,V=Array.from(v.current.keys())[y];V&&(d(V),f.current=null)}}},[d]),p=_.useCallback(z=>{d(null,null,z)},[d]),m=_.useMemo(()=>({remove:g,set:H,handleClick:d,open:p}),[g,H,d,p]);return W1.createElement(fT.Provider,{value:m},t,s)};pJ.propTypes={children:ut.any,options:ut.object,plugins:ut.func,uiElements:ut.array,id:ut.oneOfType([ut.string,ut.number]),onBeforeOpen:ut.func,onOpen:ut.func,withCaption:ut.bool,withDownloadButton:ut.bool};var oL1=function(t,e){var a={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(a[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(t);r{var{children:e}=t,a=oL1(t,["children"]);const n=_.useRef(),{remove:r,set:o,handleClick:l}=_.useContext(fT),c=_.useCallback(h=>l(n,null,null,h),[]);return _.useLayoutEffect(()=>(o(n,a),()=>r(n)),Object.values(a)),e({ref:n,open:c})};mJ.propTypes={children:ut.func.isRequired,original:ut.string,originalSrcset:ut.string,thumbnail:ut.string,width:ut.oneOfType([ut.number,ut.string]),height:ut.oneOfType([ut.number,ut.string]),alt:ut.string,caption:ut.string,content:ut.element,html:ut.string,id:ut.oneOfType([ut.number,ut.string]),cropped:ut.bool};const lL1=()=>{const{open:t}=W1.useContext(fT);return{open:t}},cL1=Object.freeze(Object.defineProperty({__proto__:null,Gallery:pJ,Item:mJ,useGallery:lL1},Symbol.toStringTag,{value:"Module"})),sL1=se(cL1);var Kz={},hL1="Expected a function",uL1=9007199254740991,vL1="[object Arguments]",dL1="[object Function]",fL1="[object GeneratorFunction]",gL1=typeof b=="object"&&b&&b.Object===Object&&b,pL1=typeof self=="object"&&self&&self.Object===Object&&self,mL1=gL1||pL1||Function("return this")();function zL1(t,e,a){switch(a.length){case 0:return t.call(e);case 1:return t.call(e,a[0]);case 2:return t.call(e,a[0],a[1]);case 3:return t.call(e,a[0],a[1],a[2])}return t.apply(e,a)}function ML1(t,e){for(var a=-1,n=e.length,r=t.length;++a0&&a(c)?e>1?MJ(c,e-1,a,n,r):ML1(r,c):n||(r[r.length]=c)}return r}function yL1(t,e){return e=Tj(e===void 0?t.length-1:e,0),function(){for(var a=arguments,n=-1,r=Tj(a.length-e,0),o=Array(r);++n-1&&t%1==0&&t<=uL1}function TL1(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function OL1(t){return!!t&&typeof t=="object"}var AL1=xL1(),kL1=AL1,EL1=b&&b.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Kz,"__esModule",{value:!0});var PL1=Kz.fixContentForMarkdown=void 0,NL1=EL1(kL1),DL1=function(t){return t===void 0&&(t=""),t.replaceAll(/(\\\r\n|\\r\n|\\\n|\\n)/g,` + */function on(t,e,a){const n=document.createElement(e);return t&&(n.className=t),a&&a.appendChild(n),n}function $e(t,e){return t.x=e.x,t.y=e.y,e.id!==void 0&&(t.id=e.id),t}function lJ(t){t.x=Math.round(t.x),t.y=Math.round(t.y)}function vL(t,e){const a=Math.abs(t.x-e.x),n=Math.abs(t.y-e.y);return Math.sqrt(a*a+n*n)}function is(t,e){return t.x===e.x&&t.y===e.y}function Kh(t,e,a){return Math.min(Math.max(t,e),a)}function qs(t,e,a){let n=`translate3d(${t}px,${e||0}px,0)`;return a!==void 0&&(n+=` scale3d(${a},${a},1)`),n}function b8(t,e,a,n){t.style.transform=qs(e,a,n)}const eb1="cubic-bezier(.4,0,.22,1)";function cJ(t,e,a,n){t.style.transition=e?`${e} ${a}ms ${n||eb1}`:"none"}function dL(t,e,a){t.style.width=typeof e=="number"?`${e}px`:e,t.style.height=typeof a=="number"?`${a}px`:a}function ab1(t){cJ(t)}function nb1(t){return"decode"in t?t.decode().catch(()=>{}):t.complete?Promise.resolve(t):new Promise((e,a)=>{t.onload=()=>e(t),t.onerror=a})}const xn={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function rb1(t){return"button"in t&&t.button===1||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function ib1(t,e,a=document){let n=[];if(t instanceof Element)n=[t];else if(t instanceof NodeList||Array.isArray(t))n=Array.from(t);else{const r=typeof t=="string"?t:e;r&&(n=Array.from(a.querySelectorAll(r)))}return n}function Mj(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}let sJ=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{sJ=!0}}))}catch{}class ob1{constructor(){this._pool=[]}add(e,a,n,r){this._toggleListener(e,a,n,r)}remove(e,a,n,r){this._toggleListener(e,a,n,r,!0)}removeAll(){this._pool.forEach(e=>{this._toggleListener(e.target,e.type,e.listener,e.passive,!0,!0)}),this._pool=[]}_toggleListener(e,a,n,r,o,l){if(!e)return;const c=o?"removeEventListener":"addEventListener";a.split(" ").forEach(s=>{if(s){l||(o?this._pool=this._pool.filter(v=>v.type!==s||v.listener!==n||v.target!==e):this._pool.push({target:e,type:s,listener:n,passive:r}));const u=sJ?{passive:r||!1}:!1;e[c](s,n,u)}})}}function hJ(t,e){if(t.getViewportSizeFn){const a=t.getViewportSizeFn(t,e);if(a)return a}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function L7(t,e,a,n,r){let o=0;if(e.paddingFn)o=e.paddingFn(a,n,r)[t];else if(e.padding)o=e.padding[t];else{const l="padding"+t[0].toUpperCase()+t.slice(1);e[l]&&(o=e[l])}return Number(o)||0}function uJ(t,e,a,n){return{x:e.x-L7("left",t,e,a,n)-L7("right",t,e,a,n),y:e.y-L7("top",t,e,a,n)-L7("bottom",t,e,a,n)}}class lb1{constructor(e){this.slide=e,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}update(e){this.currZoomLevel=e,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(e){const{pswp:a}=this.slide,n=this.slide[e==="x"?"width":"height"]*this.currZoomLevel,o=L7(e==="x"?"left":"top",a.options,a.viewportSize,this.slide.data,this.slide.index),l=this.slide.panAreaSize[e];this.center[e]=Math.round((l-n)/2)+o,this.max[e]=n>l?Math.round(l-n)+o:this.center[e],this.min[e]=n>l?o:this.center[e]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(e,a){return Kh(a,this.max[e],this.min[e])}}const Hj=4e3;class vJ{constructor(e,a,n,r){this.pswp=r,this.options=e,this.itemData=a,this.index=n,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,a,n){const r={x:e,y:a};this.elementSize=r,this.panAreaSize=n;const o=n.x/r.x,l=n.y/r.y;this.fit=Math.min(1,ol?o:l),this.vFill=Math.min(1,l),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const a=e+"ZoomLevel",n=this.options[a];if(n)return typeof n=="function"?n(this):n==="fill"?this.fill:n==="fit"?this.fit:Number(n)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,this.fit*3),this.elementSize&&e*this.elementSize.x>Hj&&(e=Hj/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}}class cb1{constructor(e,a,n){this.data=e,this.index=a,this.pswp=n,this.isActive=a===n.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!n.opener.isOpen,this.zoomLevels=new vJ(n.options,e,a,n),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:a}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=on("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new lb1(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(e){e&&!this.isActive?this.activate():!e&&this.isActive&&this.deactivate()}append(e){this.holderElement=e,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}load(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){const{pswp:e}=this;this.heavyAppended||!e.opener.isOpen||e.mainScroll.isShifted()||!this.isActive&&!!0||this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this}))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel===this.zoomLevels.initial||!this.isActive?(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize()):(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y))}updateContentSize(e){const a=this.currentResolution||this.zoomLevels.initial;if(!a)return;const n=Math.round(this.width*a)||this.pswp.viewportSize.x,r=Math.round(this.height*a)||this.pswp.viewportSize.y;!this.sizeChanged(n,r)&&!e||this.content.setDisplayedSize(n,r)}sizeChanged(e,a){return e!==this.prevDisplayedWidth||a!==this.prevDisplayedHeight?(this.prevDisplayedWidth=e,this.prevDisplayedHeight=a,!0):!1}getPlaceholderElement(){var e;return(e=this.content.placeholder)===null||e===void 0?void 0:e.element}zoomTo(e,a,n,r){const{pswp:o}=this;if(!this.isZoomable()||o.mainScroll.isShifted())return;o.dispatch("beforeZoomTo",{destZoomLevel:e,centerPoint:a,transitionDuration:n}),o.animations.stopAllPan();const l=this.currZoomLevel;r||(e=Kh(e,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(e),this.pan.x=this.calculateZoomToPanOffset("x",a,l),this.pan.y=this.calculateZoomToPanOffset("y",a,l),lJ(this.pan);const c=()=>{this._setResolution(e),this.applyCurrentZoomPan()};n?o.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:c,duration:n,easing:o.options.easing}):c()}toggleZoom(e){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,e,this.pswp.options.zoomAnimationDuration)}setZoomLevel(e){this.currZoomLevel=e,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(e,a,n){if(this.bounds.max[e]-this.bounds.min[e]===0)return this.bounds.center[e];a||(a=this.pswp.getViewportCenterPoint()),n||(n=this.zoomLevels.initial);const o=this.currZoomLevel/n;return this.bounds.correctPan(e,(this.pan[e]-a[e])*o+a[e])}panTo(e,a){this.pan.x=this.bounds.correctPan("x",e),this.pan.y=this.bounds.correctPan("y",a),this.applyCurrentZoomPan()}isPannable(){return!!this.width&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return!!this.width&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),$e(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(e,a,n){n/=this.currentResolution||this.zoomLevels.initial,b8(this.container,e,a,n)}calculateSize(){const{pswp:e}=this;$e(this.panAreaSize,uJ(e.options,e.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),e.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){const e=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return qs(this.pan.x,this.pan.y,e)}_setResolution(e){e!==this.currentResolution&&(this.currentResolution=e,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}const sb1=.35,hb1=.6,wj=.4,yj=.5;function ub1(t,e){return t*e/(1-e)}class vb1{constructor(e){this.gestures=e,this.pswp=e.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&$e(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:e,prevP1:a,dragAxis:n}=this.gestures,{currSlide:r}=this.pswp;if(n==="y"&&this.pswp.options.closeOnVerticalDrag&&r&&r.currZoomLevel<=r.zoomLevels.fit&&!this.gestures.isMultitouch){const o=r.pan.y+(e.y-a.y);if(!this.pswp.dispatch("verticalDrag",{panY:o}).defaultPrevented){this._setPanWithFriction("y",o,hb1);const l=1-Math.abs(this._getVerticalDragRatio(r.pan.y));this.pswp.applyBgOpacity(l),r.applyCurrentZoomPan()}}else this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),r&&(lJ(r.pan),r.applyCurrentZoomPan()))}end(){const{velocity:e}=this.gestures,{mainScroll:a,currSlide:n}=this.pswp;let r=0;if(this.pswp.animations.stopAll(),a.isShifted()){const l=(a.x-a.getCurrSlideX())/this.pswp.viewportSize.x;e.x<-yj&&l<0||e.x<.1&&l<-.5?(r=1,e.x=Math.min(e.x,0)):(e.x>yj&&l>0||e.x>-.1&&l>.5)&&(r=-1,e.x=Math.max(e.x,0)),a.moveIndexBy(r,!0,e.x)}n&&n.currZoomLevel>n.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(e){const{velocity:a}=this.gestures,{currSlide:n}=this.pswp;if(!n)return;const{pan:r,bounds:o}=n,l=r[e],c=this.pswp.bgOpacity<1&&e==="y",s=l+ub1(a[e],.995);if(c){const M=this._getVerticalDragRatio(l),g=this._getVerticalDragRatio(s);if(M<0&&g<-wj||M>0&&g>wj){this.pswp.close();return}}const u=o.correctPan(e,s);if(l===u)return;const v=u===s?1:.82,f=this.pswp.bgOpacity,d=u-l;this.pswp.animations.startSpring({name:"panGesture"+e,isPan:!0,start:l,end:u,velocity:a[e],dampingRatio:v,onUpdate:M=>{if(c&&this.pswp.bgOpacity<1){const g=1-(u-M)/d;this.pswp.applyBgOpacity(Kh(f+(1-f)*g,0,1))}r[e]=Math.floor(M),n.applyCurrentZoomPan()}})}_panOrMoveMainScroll(e){const{p1:a,dragAxis:n,prevP1:r,isMultitouch:o}=this.gestures,{currSlide:l,mainScroll:c}=this.pswp,h=a[e]-r[e],s=c.x+h;if(!h||!l)return!1;if(e==="x"&&!l.isPannable()&&!o)return c.moveTo(s,!0),!0;const{bounds:u}=l,v=l.pan[e]+h;if(this.pswp.options.allowPanToNext&&n==="x"&&e==="x"&&!o){const f=c.getCurrSlideX(),d=c.x-f,M=h>0,g=!M;if(v>u.min[e]&&M){if(u.min[e]<=this.startPan[e])return c.moveTo(s,!0),!0;this._setPanWithFriction(e,v)}else if(v0)return c.moveTo(Math.max(s,f),!0),!0;if(d<0)return c.moveTo(Math.min(s,f),!0),!0}else this._setPanWithFriction(e,v)}else e==="y"?!c.isShifted()&&u.min.y!==u.max.y&&this._setPanWithFriction(e,v):this._setPanWithFriction(e,v);return!1}_getVerticalDragRatio(e){var a,n;return(e-((a=(n=this.pswp.currSlide)===null||n===void 0?void 0:n.bounds.center.y)!==null&&a!==void 0?a:0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(e,a,n){const{currSlide:r}=this.pswp;if(!r)return;const{pan:o,bounds:l}=r;if(l.correctPan(e,a)!==a||n){const h=Math.round(a-o[e]);o[e]+=h*(n||sb1)}else o[e]=a}}const db1=.05,fb1=.15;function xj(t,e,a){return t.x=(e.x+a.x)/2,t.y=(e.y+a.y)/2,t}class gb1{constructor(e){this.gestures=e,this._startPan={x:0,y:0},this._startZoomPoint={x:0,y:0},this._zoomPoint={x:0,y:0},this._wasOverFitZoomLevel=!1,this._startZoomLevel=1}start(){const{currSlide:e}=this.gestures.pswp;e&&(this._startZoomLevel=e.currZoomLevel,$e(this._startPan,e.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:e,startP1:a,p2:n,startP2:r,pswp:o}=this.gestures,{currSlide:l}=o;if(!l)return;const c=l.zoomLevels.min,h=l.zoomLevels.max;if(!l.isZoomable()||o.mainScroll.isShifted())return;xj(this._startZoomPoint,a,r),xj(this._zoomPoint,e,n);let s=1/vL(a,r)*vL(e,n)*this._startZoomLevel;if(s>l.zoomLevels.initial+l.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),sh&&(s=h+(s-h)*db1);l.pan.x=this._calculatePanForZoomLevel("x",s),l.pan.y=this._calculatePanForZoomLevel("y",s),l.setZoomLevel(s),l.applyCurrentZoomPan()}end(){const{pswp:e}=this.gestures,{currSlide:a}=e;(!a||a.currZoomLeveln.zoomLevels.max?o=n.zoomLevels.max:(l=!1,o=r);const c=a.bgOpacity,h=a.bgOpacity<1,s=$e({x:0,y:0},n.pan);let u=$e({x:0,y:0},s);e&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=r,$e(this._startPan,s)),l&&(u={x:this._calculatePanForZoomLevel("x",o),y:this._calculatePanForZoomLevel("y",o)}),n.setZoomLevel(o),u={x:n.bounds.correctPan("x",u.x),y:n.bounds.correctPan("y",u.y)},n.setZoomLevel(r);const v=!is(u,s);if(!v&&!l&&!h){n._setResolution(o),n.applyCurrentZoomPan();return}a.animations.stopAllPan(),a.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:f=>{if(f/=1e3,v||l){if(v&&(n.pan.x=s.x+(u.x-s.x)*f,n.pan.y=s.y+(u.y-s.y)*f),l){const d=r+(o-r)*f;n.setZoomLevel(d)}n.applyCurrentZoomPan()}h&&a.bgOpacity<1&&a.applyBgOpacity(Kh(c+(1-c)*f,0,1))},onComplete:()=>{n._setResolution(o),n.applyCurrentZoomPan()}})}}function Vj(t){return!!t.target.closest(".pswp__container")}class pb1{constructor(e){this.gestures=e}click(e,a){const n=a.target.classList,r=n.contains("pswp__img"),o=n.contains("pswp__item")||n.contains("pswp__zoom-wrap");r?this._doClickOrTapAction("imageClick",e,a):o&&this._doClickOrTapAction("bgClick",e,a)}tap(e,a){Vj(a)&&this._doClickOrTapAction("tap",e,a)}doubleTap(e,a){Vj(a)&&this._doClickOrTapAction("doubleTap",e,a)}_doClickOrTapAction(e,a,n){var r;const{pswp:o}=this.gestures,{currSlide:l}=o,c=e+"Action",h=o.options[c];if(!o.dispatch(c,{point:a,originalEvent:n}).defaultPrevented){if(typeof h=="function"){h.call(o,a,n);return}switch(h){case"close":case"next":o[h]();break;case"zoom":l==null||l.toggleZoom(a);break;case"zoom-or-close":l!=null&&l.isZoomable()&&l.zoomLevels.secondary!==l.zoomLevels.initial?l.toggleZoom(a):o.options.clickToCloseNonZoomable&&o.close();break;case"toggle-controls":(r=this.gestures.pswp.element)===null||r===void 0||r.classList.toggle("pswp--ui-visible");break}}}}const mb1=10,zb1=300,Mb1=25;class Hb1{constructor(e){this.pswp=e,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this._lastStartP1={x:0,y:0},this._intervalP1={x:0,y:0},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this._numActivePoints=0,this._intervalTime=0,this._velocityCalculated=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this._tapTimer=null,this.supportsTouch||(e.options.allowPanToNext=!1),this.drag=new vb1(this),this.zoomLevels=new gb1(this),this.tapHandler=new pb1(this),e.on("bindEvents",()=>{e.events.add(e.scrollWrap,"click",this._onClick.bind(this)),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),e.scrollWrap&&(e.scrollWrap.ontouchmove=()=>{},e.scrollWrap.ontouchend=()=>{})):this._bindEvents("mouse","down","up")})}_bindEvents(e,a,n,r){const{pswp:o}=this,{events:l}=o,c=r?e+r:"";l.add(o.scrollWrap,e+a,this.onPointerDown.bind(this)),l.add(window,e+"move",this.onPointerMove.bind(this)),l.add(window,e+n,this.onPointerUp.bind(this)),c&&l.add(o.scrollWrap,c,this.onPointerUp.bind(this))}onPointerDown(e){const a=e.type==="mousedown"||e.pointerType==="mouse";if(a&&e.button>0)return;const{pswp:n}=this;if(!n.opener.isOpen){e.preventDefault();return}n.dispatch("pointerDown",{originalEvent:e}).defaultPrevented||(a&&(n.mouseDetected(),this._preventPointerEventBehaviour(e,"down")),n.animations.stopAll(),this._updatePoints(e,"down"),this._numActivePoints===1&&(this.dragAxis=null,$e(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1)}onPointerMove(e){this._preventPointerEventBehaviour(e,"move"),this._numActivePoints&&(this._updatePoints(e,"move"),!this.pswp.dispatch("pointerMove",{originalEvent:e}).defaultPrevented&&(this._numActivePoints===1&&!this.isDragging?(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,$e(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop())):this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop())))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(e){this._numActivePoints&&(this._updatePoints(e,"up"),!this.pswp.dispatch("pointerUp",{originalEvent:e}).defaultPrevented&&(this._numActivePoints===0&&(this._rafStopLoop(),this.isDragging?this._finishDrag():!this.isZooming&&!this.isMultitouch&&this._finishTap(e)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),this._numActivePoints===1&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?is(this.p1,this.prevP1)||this.drag.change():(!is(this.p1,this.prevP1)||!is(this.p2,this.prevP2))&&this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(e){const a=Date.now(),n=a-this._intervalTime;n<50&&!e||(this.velocity.x=this._getVelocity("x",n),this.velocity.y=this._getVelocity("y",n),this._intervalTime=a,$e(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(e){const{mainScroll:a}=this.pswp;if(a.isShifted()){a.moveIndexBy(0,!0);return}if(e.type.indexOf("cancel")>0)return;if(e.type==="mouseup"||e.pointerType==="mouse"){this.tapHandler.click(this.startP1,e);return}const n=this.pswp.options.doubleTapAction?zb1:0;this._tapTimer?(this._clearTapTimer(),vL(this._lastStartP1,this.startP1){this.tapHandler.tap(this.startP1,e),this._clearTapTimer()},n))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(e,a){const n=this.p1[e]-this._intervalP1[e];return Math.abs(n)>1&&a>5?n/a:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(e,a){this.pswp.applyFilters("preventPointerEvent",!0,e,a)&&e.preventDefault()}_updatePoints(e,a){if(this._pointerEventEnabled){const n=e,r=this._ongoingPointers.findIndex(o=>o.id===n.pointerId);a==="up"&&r>-1?this._ongoingPointers.splice(r,1):a==="down"&&r===-1?this._ongoingPointers.push(this._convertEventPosToPoint(n,{x:0,y:0})):r>-1&&this._convertEventPosToPoint(n,this._ongoingPointers[r]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&$e(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&$e(this.p2,this._ongoingPointers[1])}else{const n=e;this._numActivePoints=0,n.type.indexOf("touch")>-1?n.touches&&n.touches.length>0&&(this._convertEventPosToPoint(n.touches[0],this.p1),this._numActivePoints++,n.touches.length>1&&(this._convertEventPosToPoint(n.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(e,this.p1),a==="up"?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){$e(this.prevP1,this.p1),$e(this.prevP2,this.p2)}_updateStartPoints(){$e(this.startP1,this.p1),$e(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{const e=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(e!==0){const a=e>0?"x":"y";Math.abs(this.p1[a]-this.startP1[a])>=mb1&&(this.dragAxis=a)}}}_convertEventPosToPoint(e,a){return a.x=e.pageX-this.pswp.offset.x,a.y=e.pageY-this.pswp.offset.y,"pointerId"in e?a.id=e.pointerId:e.identifier!==void 0&&(a.id=e.identifier),a}_onClick(e){this.pswp.mainScroll.isShifted()&&(e.preventDefault(),e.stopPropagation())}}const wb1=.35;class yb1{constructor(e){this.pswp=e,this.x=0,this.slideWidth=0,this._currPositionIndex=0,this._prevPositionIndex=0,this._containerShiftIndex=-1,this.itemHolders=[]}resize(e){const{pswp:a}=this,n=Math.round(a.viewportSize.x+a.viewportSize.x*a.options.spacing),r=n!==this.slideWidth;r&&(this.slideWidth=n,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach((o,l)=>{r&&b8(o.el,(l+this._containerShiftIndex)*this.slideWidth),e&&o.slide&&o.slide.resize()})}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[];for(let e=0;e<3;e++){const a=on("pswp__item","div",this.pswp.container);a.setAttribute("role","group"),a.setAttribute("aria-roledescription","slide"),a.setAttribute("aria-hidden","true"),a.style.display=e===1?"block":"none",this.itemHolders.push({el:a})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(e,a,n){const{pswp:r}=this;let o=r.potentialIndex+e;const l=r.getNumItems();if(r.canLoop()){o=r.getLoopedIndex(o);const h=(e+l)%l;h<=l/2?e=h:e=h-l}else o<0?o=0:o>=l&&(o=l-1),e=o-r.potentialIndex;r.potentialIndex=o,this._currPositionIndex-=e,r.animations.stopMainScroll();const c=this.getCurrSlideX();if(!a)this.moveTo(c),this.updateCurrItem();else{r.animations.startSpring({isMainScroll:!0,start:this.x,end:c,velocity:n||0,naturalFrequency:30,dampingRatio:1,onUpdate:s=>{this.moveTo(s)},onComplete:()=>{this.updateCurrItem(),r.appendHeavy()}});let h=r.potentialIndex-r.currIndex;if(r.canLoop()){const s=(h+l)%l;s<=l/2?h=s:h=s-l}Math.abs(h)>1&&this.updateCurrItem()}return!!e}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){var e;const{pswp:a}=this,n=this._prevPositionIndex-this._currPositionIndex;if(!n)return;this._prevPositionIndex=this._currPositionIndex,a.currIndex=a.potentialIndex;let r=Math.abs(n),o;r>=3&&(this._containerShiftIndex+=n+(n>0?-3:3),r=3);for(let l=0;l0?(o=this.itemHolders.shift(),o&&(this.itemHolders[2]=o,this._containerShiftIndex++,b8(o.el,(this._containerShiftIndex+2)*this.slideWidth),a.setContent(o,a.currIndex-r+l+2))):(o=this.itemHolders.pop(),o&&(this.itemHolders.unshift(o),this._containerShiftIndex--,b8(o.el,this._containerShiftIndex*this.slideWidth),a.setContent(o,a.currIndex+r-l-2)));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),a.animations.stopAllPan(),this.itemHolders.forEach((l,c)=>{l.slide&&l.slide.setIsActive(c===1)}),a.currSlide=(e=this.itemHolders[1])===null||e===void 0?void 0:e.slide,a.contentLoader.updateLazy(n),a.currSlide&&a.currSlide.applyCurrentZoomPan(),a.dispatch("change")}moveTo(e,a){if(!this.pswp.canLoop()&&a){let n=(this.slideWidth*this._currPositionIndex-e)/this.slideWidth;n+=this.pswp.currIndex;const r=Math.round(e-this.x);(n<0&&r>0||n>=this.pswp.getNumItems()-1&&r<0)&&(e=this.x+r*wb1)}this.x=e,this.pswp.container&&b8(this.pswp.container,e),this.pswp.dispatch("moveMainScroll",{x:e,dragging:a??!1})}}const xb1={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},a8=(t,e)=>e?t:xb1[t];class Vb1{constructor(e){this.pswp=e,this._wasFocused=!1,e.on("bindEvents",()=>{e.options.trapFocus&&(e.options.initialPointerPos||this._focusRoot(),e.events.add(document,"focusin",this._onFocusIn.bind(this))),e.events.add(document,"keydown",this._onKeyDown.bind(this))});const a=document.activeElement;e.on("destroy",()=>{e.options.returnFocus&&a&&this._wasFocused&&a.focus()})}_focusRoot(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(e){const{pswp:a}=this;if(a.dispatch("keydown",{originalEvent:e}).defaultPrevented||rb1(e))return;let n,r,o=!1;const l="key"in e;switch(l?e.key:e.keyCode){case a8("Escape",l):a.options.escKey&&(n="close");break;case a8("z",l):n="toggleZoom";break;case a8("ArrowLeft",l):r="x";break;case a8("ArrowUp",l):r="y";break;case a8("ArrowRight",l):r="x",o=!0;break;case a8("ArrowDown",l):o=!0,r="y";break;case a8("Tab",l):this._focusRoot();break}if(r){e.preventDefault();const{currSlide:c}=a;a.options.arrowKeys&&r==="x"&&a.getNumItems()>1?n=o?"next":"prev":c&&c.currZoomLevel>c.zoomLevels.fit&&(c.pan[r]+=o?-80:80,c.panTo(c.pan.x,c.pan.y))}n&&(e.preventDefault(),a[n]())}_onFocusIn(e){const{template:a}=this.pswp;a&&document!==e.target&&a!==e.target&&!a.contains(e.target)&&a.focus()}}const Cb1="cubic-bezier(.4,0,.22,1)";class bb1{constructor(e){var a;this.props=e;const{target:n,onComplete:r,transform:o,onFinish:l=()=>{},duration:c=333,easing:h=Cb1}=e;this.onFinish=l;const s=o?"transform":"opacity",u=(a=e[s])!==null&&a!==void 0?a:"";this._target=n,this._onComplete=r,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{cJ(n,s,c,h),this._helperTimeout=setTimeout(()=>{n.addEventListener("transitionend",this._onTransitionEnd,!1),n.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},c+500),n.style[s]=u},30)},0)}_onTransitionEnd(e){e.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._helperTimeout&&clearTimeout(this._helperTimeout),ab1(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}const Lb1=12,Bb1=.75;class _b1{constructor(e,a,n){this.velocity=e*1e3,this._dampingRatio=a||Bb1,this._naturalFrequency=n||Lb1,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(e,a){let n=0,r;a/=1e3;const o=Math.E**(-this._dampingRatio*this._naturalFrequency*a);if(this._dampingRatio===1)r=this.velocity+this._naturalFrequency*e,n=(e+r*a)*o,this.velocity=n*-this._naturalFrequency+r*o;else if(this._dampingRatio<1){r=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*e+this.velocity);const l=Math.cos(this._dampedFrequency*a),c=Math.sin(this._dampedFrequency*a);n=o*(e*l+r*c),this.velocity=n*-this._naturalFrequency*this._dampingRatio+o*(-this._dampedFrequency*e*c+this._dampedFrequency*r*l)}return n}}class Sb1{constructor(e){this.props=e,this._raf=0;const{start:a,end:n,velocity:r,onUpdate:o,onComplete:l,onFinish:c=()=>{},dampingRatio:h,naturalFrequency:s}=e;this.onFinish=c;const u=new _b1(r,h,s);let v=Date.now(),f=a-n;const d=()=>{this._raf&&(f=u.easeFrame(f,Date.now()-v),Math.abs(f)<1&&Math.abs(u.velocity)<50?(o(n),l&&l(),this.onFinish()):(v=Date.now(),o(f+n),this._raf=requestAnimationFrame(d)))};this._raf=requestAnimationFrame(d)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}}class Tb1{constructor(){this.activeAnimations=[]}startSpring(e){this._start(e,!0)}startTransition(e){this._start(e)}_start(e,a){const n=a?new Sb1(e):new bb1(e);return this.activeAnimations.push(n),n.onFinish=()=>this.stop(n),n}stop(e){e.destroy();const a=this.activeAnimations.indexOf(e);a>-1&&this.activeAnimations.splice(a,1)}stopAll(){this.activeAnimations.forEach(e=>{e.destroy()}),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter(e=>e.props.isPan?(e.destroy(),!1):!0)}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter(e=>e.props.isMainScroll?(e.destroy(),!1):!0)}isPanRunning(){return this.activeAnimations.some(e=>e.props.isPan)}}class Ob1{constructor(e){this.pswp=e,e.events.add(e.element,"wheel",this._onWheel.bind(this))}_onWheel(e){e.preventDefault();const{currSlide:a}=this.pswp;let{deltaX:n,deltaY:r}=e;if(a&&!this.pswp.dispatch("wheel",{originalEvent:e}).defaultPrevented)if(e.ctrlKey||this.pswp.options.wheelToZoom){if(a.isZoomable()){let o=-r;e.deltaMode===1?o*=.05:o*=e.deltaMode?1:.002,o=2**o;const l=a.currZoomLevel*o;a.zoomTo(l,{x:e.clientX,y:e.clientY})}}else a.isPannable()&&(e.deltaMode===1&&(n*=18,r*=18),a.panTo(a.pan.x-n,a.pan.y-r))}}function Ab1(t){if(typeof t=="string")return t;if(!t||!t.isCustomSVG)return"";const e=t;let a='",a}class kb1{constructor(e,a){var n;const r=a.name||a.className;let o=a.html;if(e.options[r]===!1)return;typeof e.options[r+"SVG"]=="string"&&(o=e.options[r+"SVG"]),e.dispatch("uiElementCreate",{data:a});let l="";a.isButton?(l+="pswp__button ",l+=a.className||`pswp__button--${a.name}`):l+=a.className||`pswp__${a.name}`;let c=a.isButton?a.tagName||"button":a.tagName||"div";c=c.toLowerCase();const h=on(l,c);if(a.isButton){c==="button"&&(h.type="button");let{title:v}=a;const{ariaLabel:f}=a;typeof e.options[r+"Title"]=="string"&&(v=e.options[r+"Title"]),v&&(h.title=v);const d=f||v;d&&h.setAttribute("aria-label",d)}h.innerHTML=Ab1(o),a.onInit&&a.onInit(h,e),a.onClick&&(h.onclick=v=>{typeof a.onClick=="string"?e[a.onClick]():typeof a.onClick=="function"&&a.onClick(v,h,e)});const s=a.appendTo||"bar";let u=e.element;s==="bar"?(e.topBar||(e.topBar=on("pswp__top-bar pswp__hide-on-close","div",e.scrollWrap)),u=e.topBar):(h.classList.add("pswp__hide-on-close"),s==="wrapper"&&(u=e.scrollWrap)),(n=u)===null||n===void 0||n.appendChild(e.applyFilters("uiElement",h,a))}}function dJ(t,e,a){t.classList.add("pswp__button--arrow"),t.setAttribute("aria-controls","pswp__items"),e.on("change",()=>{e.options.loop||(a?t.disabled=!(e.currIndex0))})}const Eb1={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:dJ},Pb1={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(t,e)=>{dJ(t,e,!0)}},Nb1={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-close"},onClick:"close"},Db1={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},Rb1={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-loading"},onInit:(t,e)=>{let a,n=null;const r=(c,h)=>{t.classList.toggle("pswp__preloader--"+c,h)},o=c=>{a!==c&&(a=c,r("active",c))},l=()=>{var c;if(!((c=e.currSlide)!==null&&c!==void 0&&c.content.isLoading())){o(!1),n&&(clearTimeout(n),n=null);return}n||(n=setTimeout(()=>{var h;o(!!(!((h=e.currSlide)===null||h===void 0)&&h.content.isLoading())),n=null},e.options.preloaderDelay))};e.on("change",l),e.on("loadComplete",c=>{e.currSlide===c.slide&&l()}),e.ui&&(e.ui.updatePreloaderVisibility=l)}},jb1={name:"counter",order:5,onInit:(t,e)=>{e.on("change",()=>{t.innerText=e.currIndex+1+e.options.indexIndicatorSep+e.getNumItems()})}};function Cj(t,e){t.classList.toggle("pswp--zoomed-in",e)}class Ib1{constructor(e){this.pswp=e,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=()=>{},this._lastUpdatedZoomLevel=void 0}init(){const{pswp:e}=this;this.isRegistered=!1,this.uiElementsData=[Nb1,Eb1,Pb1,Db1,Rb1,jb1],e.dispatch("uiRegister"),this.uiElementsData.sort((a,n)=>(a.order||0)-(n.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(a=>{this.registerElement(a)}),e.on("change",()=>{var a;(a=e.element)===null||a===void 0||a.classList.toggle("pswp--one-slide",e.getNumItems()===1)}),e.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(e){this.isRegistered?this.items.push(new kb1(this.pswp,e)):this.uiElementsData.push(e)}_onZoomPanUpdate(){const{template:e,currSlide:a,options:n}=this.pswp;if(this.pswp.opener.isClosing||!e||!a)return;let{currZoomLevel:r}=a;if(this.pswp.opener.isOpen||(r=a.zoomLevels.initial),r===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=r;const o=a.zoomLevels.initial-a.zoomLevels.secondary;if(Math.abs(o)<.01||!a.isZoomable()){Cj(e,!1),e.classList.remove("pswp--zoom-allowed");return}e.classList.add("pswp--zoom-allowed");const l=r===a.zoomLevels.initial?a.zoomLevels.secondary:a.zoomLevels.initial;Cj(e,l<=r),(n.imageClickAction==="zoom"||n.imageClickAction==="zoom-or-close")&&e.classList.add("pswp--click-to-zoom")}}function Fb1(t){const e=t.getBoundingClientRect();return{x:e.left,y:e.top,w:e.width}}function $b1(t,e,a){const n=t.getBoundingClientRect(),r=n.width/e,o=n.height/a,l=r>o?r:o,c=(n.width-e*l)/2,h=(n.height-a*l)/2,s={x:n.left+c,y:n.top+h,w:e*l};return s.innerRect={w:n.width,h:n.height,x:c,y:h},s}function Ub1(t,e,a){const n=a.dispatch("thumbBounds",{index:t,itemData:e,instance:a});if(n.thumbBounds)return n.thumbBounds;const{element:r}=e;let o,l;if(r&&a.options.thumbSelector!==!1){const c=a.options.thumbSelector||"img";l=r.matches(c)?r:r.querySelector(c)}return l=a.applyFilters("thumbEl",l,e,t),l&&(e.thumbCropped?o=$b1(l,e.width||e.w||0,e.height||e.h||0):o=Fb1(l)),a.applyFilters("thumbBounds",o,e,t)}class Wb1{constructor(e,a){this.type=e,this.defaultPrevented=!1,a&&Object.assign(this,a)}preventDefault(){this.defaultPrevented=!0}}class qb1{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,a,n=100){var r,o,l;this._filters[e]||(this._filters[e]=[]),(r=this._filters[e])===null||r===void 0||r.push({fn:a,priority:n}),(o=this._filters[e])===null||o===void 0||o.sort((c,h)=>c.priority-h.priority),(l=this.pswp)===null||l===void 0||l.addFilter(e,a,n)}removeFilter(e,a){this._filters[e]&&(this._filters[e]=this._filters[e].filter(n=>n.fn!==a)),this.pswp&&this.pswp.removeFilter(e,a)}applyFilters(e,...a){var n;return(n=this._filters[e])===null||n===void 0||n.forEach(r=>{a[0]=r.fn.apply(this,a)}),a[0]}on(e,a){var n,r;this._listeners[e]||(this._listeners[e]=[]),(n=this._listeners[e])===null||n===void 0||n.push(a),(r=this.pswp)===null||r===void 0||r.on(e,a)}off(e,a){var n;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(r=>a!==r)),(n=this.pswp)===null||n===void 0||n.off(e,a)}dispatch(e,a){var n;if(this.pswp)return this.pswp.dispatch(e,a);const r=new Wb1(e,a);return(n=this._listeners[e])===null||n===void 0||n.forEach(o=>{o.call(this,r)}),r}}class Gb1{constructor(e,a){if(this.element=on("pswp__img pswp__img--placeholder",e?"img":"div",a),e){const n=this.element;n.decoding="async",n.alt="",n.src=e,n.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,a){this.element&&(this.element.tagName==="IMG"?(dL(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=qs(0,0,e/250)):dL(this.element,e,a))}destroy(){var e;(e=this.element)!==null&&e!==void 0&&e.parentNode&&this.element.remove(),this.element=null}}class Kb1{constructor(e,a,n){this.instance=a,this.data=e,this.index=n,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=xn.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(e,a){if(this.slide&&this.usePlaceholder())if(this.placeholder){const n=this.placeholder.element;n&&!n.parentElement&&this.slide.container.prepend(n)}else{const n=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new Gb1(n,this.slide.container)}this.element&&!a||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=on("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=on("pswp__content","div"),this.element.innerHTML=this.data.html||""),a&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var a,n;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;const r=this.element;this.updateSrcsetSizes(),this.data.srcset&&(r.srcset=this.data.srcset),r.src=(a=this.data.src)!==null&&a!==void 0?a:"",r.alt=(n=this.data.alt)!==null&&n!==void 0?n:"",this.state=xn.LOADING,r.complete?this.onLoaded():(r.onload=()=>{this.onLoaded()},r.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=xn.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===xn.LOADED||this.state===xn.ERROR)&&this.removePlaceholder())}onError(){this.state=xn.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===xn.LOADING,this)}isError(){return this.state===xn.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(e,a){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,a),!this.instance.dispatch("contentResize",{content:this,width:e,height:a}).defaultPrevented&&(dL(this.element,e,a),this.isImageContent()&&!this.isError()))){const n=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=a,n?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:a,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==xn.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const e=this.element,a=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||a>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=a+"px",e.dataset.largestUsedSize=String(a))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,a;let n=on("pswp__error-msg","div");n.innerText=(e=(a=this.instance.options)===null||a===void 0?void 0:a.errorMsg)!==null&&e!==void 0?e:"",n=this.instance.applyFilters("contentErrorElement",n,this),this.element=on("pswp__content pswp__error-msg-container","div"),this.element.appendChild(n),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===xn.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||Mj())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!Mj()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===xn.LOADED||this.state===xn.ERROR)&&this.removePlaceholder()))}}const Yb1=5;function fJ(t,e,a){const n=e.createContentFromData(t,a);let r;const{options:o}=e;if(o){r=new vJ(o,t,-1);let l;e.pswp?l=e.pswp.viewportSize:l=hJ(o,e);const c=uJ(o,l,t,a);r.update(n.width,n.height,c)}return n.lazyLoad(),r&&n.setDisplayedSize(Math.ceil(n.width*r.initial),Math.ceil(n.height*r.initial)),n}function Zb1(t,e){const a=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:a}).defaultPrevented)return fJ(a,e,t)}let Qb1=class{constructor(e){this.pswp=e,this.limit=Math.max(e.options.preload[0]+e.options.preload[1]+1,Yb1),this._cachedItems=[]}updateLazy(e){const{pswp:a}=this;if(a.dispatch("lazyLoad").defaultPrevented)return;const{preload:n}=a.options,r=e===void 0?!0:e>=0;let o;for(o=0;o<=n[1];o++)this.loadSlideByIndex(a.currIndex+(r?o:-o));for(o=1;o<=n[0];o++)this.loadSlideByIndex(a.currIndex+(r?-o:o))}loadSlideByIndex(e){const a=this.pswp.getLoopedIndex(e);let n=this.getContentByIndex(a);n||(n=Zb1(a,this.pswp),n&&this.addToCache(n))}getContentBySlide(e){let a=this.getContentByIndex(e.index);return a||(a=this.pswp.createContentFromData(e.data,e.index),this.addToCache(a)),a.setSlide(e),a}addToCache(e){if(this.removeByIndex(e.index),this._cachedItems.push(e),this._cachedItems.length>this.limit){const a=this._cachedItems.findIndex(n=>!n.isAttached&&!n.hasSlide);a!==-1&&this._cachedItems.splice(a,1)[0].destroy()}}removeByIndex(e){const a=this._cachedItems.findIndex(n=>n.index===e);a!==-1&&this._cachedItems.splice(a,1)}getContentByIndex(e){return this._cachedItems.find(a=>a.index===e)}destroy(){this._cachedItems.forEach(e=>e.destroy()),this._cachedItems=[]}};class Xb1 extends qb1{getNumItems(){var e;let a=0;const n=(e=this.options)===null||e===void 0?void 0:e.dataSource;n&&"length"in n?a=n.length:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),n.items&&(a=n.items.length));const r=this.dispatch("numItems",{dataSource:n,numItems:a});return this.applyFilters("numItems",r.numItems,n)}createContentFromData(e,a){return new Kb1(e,this,a)}getItemData(e){var a;const n=(a=this.options)===null||a===void 0?void 0:a.dataSource;let r={};Array.isArray(n)?r=n[e]:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),r=n.items[e]);let o=r;o instanceof Element&&(o=this._domElementToItemData(o));const l=this.dispatch("itemData",{itemData:o||{},index:e});return this.applyFilters("itemData",l.itemData,e)}_getGalleryDOMElements(e){var a,n;return(a=this.options)!==null&&a!==void 0&&a.children||(n=this.options)!==null&&n!==void 0&&n.childSelector?ib1(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const a={element:e},n=e.tagName==="A"?e:e.querySelector("a");if(n){a.src=n.dataset.pswpSrc||n.href,n.dataset.pswpSrcset&&(a.srcset=n.dataset.pswpSrcset),a.width=n.dataset.pswpWidth?parseInt(n.dataset.pswpWidth,10):0,a.height=n.dataset.pswpHeight?parseInt(n.dataset.pswpHeight,10):0,a.w=a.width,a.h=a.height,n.dataset.pswpType&&(a.type=n.dataset.pswpType);const o=e.querySelector("img");if(o){var r;a.msrc=o.currentSrc||o.src,a.alt=(r=o.getAttribute("alt"))!==null&&r!==void 0?r:""}(n.dataset.pswpCropped||n.dataset.cropped)&&(a.thumbCropped=!0)}return this.applyFilters("domItemData",a,e,n)}lazyLoadData(e,a){return fJ(e,this,a)}}const X9=.003;class Jb1{constructor(e){this.pswp=e,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this._duration=void 0,this._useAnimation=!1,this._croppedZoom=!1,this._animateRootOpacity=!1,this._animateBgOpacity=!1,this._placeholder=void 0,this._opacityElement=void 0,this._cropContainer1=void 0,this._cropContainer2=void 0,this._thumbBounds=void 0,this._prepareOpen=this._prepareOpen.bind(this),e.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return;const e=this.pswp.currSlide;this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,e&&e.currZoomLevel*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout(()=>{this._start()},this._croppedZoom?30:0)}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){const e=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,e&&e.zoomLevels.initial*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){const{pswp:e}=this,a=this.pswp.currSlide,{options:n}=e;if(n.showHideAnimationType==="fade"?(n.showHideOpacity=!0,this._thumbBounds=void 0):n.showHideAnimationType==="none"?(n.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&e._initialThumbBounds?this._thumbBounds=e._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=a==null?void 0:a.getPlaceholderElement(),e.animations.stopAll(),this._useAnimation=!!(this._duration&&this._duration>50),this._animateZoom=!!this._thumbBounds&&(a==null?void 0:a.content.usePlaceholder())&&(!this.isClosing||!e.mainScroll.isShifted()),!this._animateZoom)this._animateRootOpacity=!0,this.isOpening&&a&&(a.zoomAndPanToInitial(),a.applyCurrentZoomPan());else{var r;this._animateRootOpacity=(r=n.showHideOpacity)!==null&&r!==void 0?r:!1}if(this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>X9,this._opacityElement=this._animateRootOpacity?e.element:e.bg,!this._useAnimation){this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,this.isOpening&&(e.element&&(e.element.style.opacity=String(X9)),e.applyBgOpacity(1));return}if(this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect){var o;this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=(o=this.pswp.currSlide)===null||o===void 0?void 0:o.holderElement,e.container&&(e.container.style.overflow="hidden",e.container.style.width=e.viewportSize.x+"px")}else this._croppedZoom=!1;this.isOpening?(this._animateRootOpacity?(e.element&&(e.element.style.opacity=String(X9)),e.applyBgOpacity(1)):(this._animateBgOpacity&&e.bg&&(e.bg.style.opacity=String(X9)),e.element&&(e.element.style.opacity="1")),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(X9)))):this.isClosing&&(e.mainScroll.itemHolders[0]&&(e.mainScroll.itemHolders[0].el.style.display="none"),e.mainScroll.itemHolders[2]&&(e.mainScroll.itemHolders[2].el.style.display="none"),this._croppedZoom&&e.mainScroll.x!==0&&(e.mainScroll.resetPosition(),e.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&this._placeholder.tagName==="IMG"?new Promise(e=>{let a=!1,n=!0;nb1(this._placeholder).finally(()=>{a=!0,n||e(!0)}),setTimeout(()=>{n=!1,a&&e(!0)},50),setTimeout(e,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){var e,a;(e=this.pswp.element)===null||e===void 0||e.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),(a=this.pswp.element)===null||a===void 0||a.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){const{pswp:e}=this;if(this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,e.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),e.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed)e.destroy();else if(this.isOpen){var a;this._animateZoom&&e.container&&(e.container.style.overflow="visible",e.container.style.width="100%"),(a=e.currSlide)===null||a===void 0||a.applyCurrentZoomPan()}}_animateToOpenState(){const{pswp:e}=this;this._animateZoom&&(this._croppedZoom&&this._cropContainer1&&this._cropContainer2&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,0,0)"),this._animateTo(this._cropContainer2,"transform","none")),e.currSlide&&(e.currSlide.zoomAndPanToInitial(),this._animateTo(e.currSlide.container,"transform",e.currSlide.getCurrentTransform()))),this._animateBgOpacity&&e.bg&&this._animateTo(e.bg,"opacity",String(e.options.bgOpacity)),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","1")}_animateToClosedState(){const{pswp:e}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&e.bgOpacity>.01&&e.bg&&this._animateTo(e.bg,"opacity","0"),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","0")}_setClosedStateZoomPan(e){if(!this._thumbBounds)return;const{pswp:a}=this,{innerRect:n}=this._thumbBounds,{currSlide:r,viewportSize:o}=a;if(this._croppedZoom&&n&&this._cropContainer1&&this._cropContainer2){const l=-o.x+(this._thumbBounds.x-n.x)+n.w,c=-o.y+(this._thumbBounds.y-n.y)+n.h,h=o.x-n.w,s=o.y-n.h;e?(this._animateTo(this._cropContainer1,"transform",qs(l,c)),this._animateTo(this._cropContainer2,"transform",qs(h,s))):(b8(this._cropContainer1,l,c),b8(this._cropContainer2,h,s))}r&&($e(r.pan,n||this._thumbBounds),r.currZoomLevel=this._thumbBounds.w/r.width,e?this._animateTo(r.container,"transform",r.getCurrentTransform()):r.applyCurrentZoomPan())}_animateTo(e,a,n){if(!this._duration){e.style[a]=n;return}const{animations:r}=this.pswp,o={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{r.activeAnimations.length||this._onAnimationComplete()},target:e};o[a]=n,r.startTransition(o)}}const tL1={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"};class eL1 extends Xb1{constructor(e){super(),this.options=this._prepareOptions(e||{}),this.offset={x:0,y:0},this._prevViewportSize={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this._initialItemData={},this._initialThumbBounds=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new ob1,this.animations=new Tb1,this.mainScroll=new yb1(this),this.gestures=new Hb1(this),this.opener=new Jb1(this),this.keyboard=new Vb1(this),this.contentLoader=new Qb1(this)}init(){if(this.isOpen||this.isDestroying)return!1;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();let e="pswp--open";return this.gestures.supportsTouch&&(e+=" pswp--touch"),this.options.mainClass&&(e+=" "+this.options.mainClass),this.element&&(this.element.className+=" "+e),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new Ob1(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",()=>{const{itemHolders:a}=this.mainScroll;a[0]&&(a[0].el.style.display="block",this.setContent(a[0],this.currIndex-1)),a[2]&&(a[2].el.style.display="block",this.setContent(a[2],this.currIndex+1)),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")}),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(e){const a=this.getNumItems();return this.options.loop&&(e>a-1&&(e-=a),e<0&&(e+=a)),Kh(e,0,a-1)}appendHeavy(){this.mainScroll.itemHolders.forEach(e=>{var a;(a=e.slide)===null||a===void 0||a.appendHeavy()})}goTo(e){this.mainScroll.moveIndexBy(this.getLoopedIndex(e)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...e){var a;(a=this.currSlide)===null||a===void 0||a.zoomTo(...e)}toggleZoom(){var e;(e=this.currSlide)===null||e===void 0||e.toggleZoom()}close(){!this.opener.isOpen||this.isDestroying||(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){var e;if(!this.isDestroying){this.options.showHideAnimationType="none",this.close();return}this.dispatch("destroy"),this._listeners={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),(e=this.element)===null||e===void 0||e.remove(),this.mainScroll.itemHolders.forEach(a=>{var n;(n=a.slide)===null||n===void 0||n.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(e){this.contentLoader.removeByIndex(e),this.mainScroll.itemHolders.forEach((a,n)=>{var r,o;let l=((r=(o=this.currSlide)===null||o===void 0?void 0:o.index)!==null&&r!==void 0?r:0)-1+n;if(this.canLoop()&&(l=this.getLoopedIndex(l)),l===e&&(this.setContent(a,e,!0),n===1)){var c;this.currSlide=a.slide,(c=a.slide)===null||c===void 0||c.setIsActive(!0)}}),this.dispatch("change")}setContent(e,a,n){if(this.canLoop()&&(a=this.getLoopedIndex(a)),e.slide){if(e.slide.index===a&&!n)return;e.slide.destroy(),e.slide=void 0}if(!this.canLoop()&&(a<0||a>=this.getNumItems()))return;const r=this.getItemData(a);e.slide=new cb1(r,a,this),a===this.currIndex&&(this.currSlide=e.slide),e.slide.append(e.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(e){if(this.isDestroying)return;const a=hJ(this.options,this);!e&&is(a,this._prevViewportSize)||($e(this._prevViewportSize,a),this.dispatch("beforeResize"),$e(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(e){this.bgOpacity=Math.max(e,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){if(!this.hasMouse){var e;this.hasMouse=!0,(e=this.element)===null||e===void 0||e.classList.add("pswp--has_mouse")}}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout(()=>{this.updateSize()},500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(e,a){this.offset.x=e,this.offset.y=a,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=on("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=on("pswp__bg","div",this.element),this.scrollWrap=on("pswp__scroll-wrap","section",this.element),this.container=on("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new Ib1(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return Ub1(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(e){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(e.showHideAnimationType="none",e.zoomAnimationDuration=0),{...tL1,...e}}}class aL1 extends Error{constructor(){super(...arguments),this.message="No valid `ref` provided.\nYou should use `ref` from render prop of Item component.\nExample:\n{({ ref }) =>
}
\n"}}function nL1(t,e){if(!(t instanceof Element)||!(e instanceof Element))throw new aL1;return t===e?0:t.compareDocumentPosition(e)&2?1:-1}function gJ(t){return Object.entries(t).map(([e,a])=>a?`${e}=${a}`:e).join("&")}function dT(t){return t.split("&").reduce((e,a)=>{const[n,r]=a.split("=");return n&&(e[n]=r),e},{})}function bj(t){const e=dT(t);return delete e.gid,delete e.pid,gJ(e)}function J9(){return window.location.hash.substring(1)}function Lj(){return`${window.location.pathname}${window.location.search}`}const Bj=t=>{const e=dT(t);return!!e.gid&&!!e.pid};function rL1(t,e){return t!==null?t:e?parseInt(e,10)-1:0}const fT=W1.createContext({remove:()=>{},set:()=>{},handleClick:()=>{},open:()=>{}});class iL1{constructor(e){this.pswp=e,this.on=e.on.bind(e),this.off=e.off.bind(e),this.dispatch=e.dispatch.bind(e)}}var oL1=function(t,e){var a={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(a[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(t);r{const[s,u]=_.useState(null),v=_.useRef(new Map),f=_.useRef(null),d=_.useCallback((z,w,x,y)=>{if(g3)return;let V=x||null;const C=[],L=Array.from(v.current),B=(q,U)=>{const[Y,F]=q,{width:X,height:R,original:i1,originalSrcset:t1,thumbnail:A,cropped:o1,content:h1,id:a1}=F,M1=oL1(F,["width","height","original","originalSrcset","thumbnail","cropped","content","id"]);(z===Y||a1!==void 0&&String(a1)===w)&&(V=U),C.push(Object.assign(Object.assign(Object.assign({w:Number(X),h:Number(R),src:i1,srcset:t1,msrc:A,element:Y.current,thumbCropped:o1,content:h1},h1!==void 0?{type:"html"}:{}),a1!==void 0?{pid:a1}:{}),M1))};v.current.size>1?L.sort(([{current:q}],[{current:U}])=>nL1(q,U)).forEach(B):L.forEach(B);const S=y&&y.clientX!==void 0&&y.clientY!==void 0?{x:y.clientX,y:y.clientY}:null,T=new eL1(Object.assign({dataSource:C,index:rL1(V,w),initialPointerPos:S},e||{}));g3=T,T.on("contentActivate",({content:q})=>{q.data.content?u($8.createPortal(q.data.content,q.element)):u(null)}),T.on("close",()=>{u(null)}),h&&T.on("uiRegister",()=>{var q;(q=T.ui)===null||q===void 0||q.registerElement({name:"download-button",ariaLabel:"Download",order:8,isButton:!0,tagName:"a",appendTo:"bar",html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-download"},onInit:(U,Y)=>{U.setAttribute("download",""),U.setAttribute("target","_blank"),U.setAttribute("rel","noopener"),T.on("change",()=>{var F;if(!(!((F=Y.currSlide)===null||F===void 0)&&F.data.src))return;const X=U;X.href=Y.currSlide.data.src})}})}),c&&T.on("uiRegister",()=>{var q;(q=T.ui)===null||q===void 0||q.registerElement({name:"default-caption",order:9,isButton:!1,appendTo:"root",onInit:(U,Y)=>{U.style.position="absolute",U.style.bottom="15px",U.style.left="0",U.style.right="0",U.style.padding="0 20px",U.style.color="var(--pswp-icon-color)",U.style.textAlign="center",U.style.fontSize="14px",U.style.lineHeight="1.5",U.style.textShadow="1px 1px 3px var(--pswp-icon-color-secondary)",T.on("change",()=>{if(!Y.currSlide)return;const{caption:F,alt:X}=Y.currSlide.data;U.innerHTML=F||X||""})}})}),Array.isArray(n)&&n.forEach(q=>{T.on("uiRegister",()=>{var U;(U=T.ui)===null||U===void 0||U.registerElement(q)})}),typeof a=="function"&&a(new iL1(T)),typeof o=="function"&&o(T);const E=()=>({gallery:{galleryUID:r}});T.on("beforeOpen",()=>{var q;if(r===void 0)return;if(!Bj(J9())){window.history.pushState(E(),document.title);return}if(!!(!((q=window.history.state)===null||q===void 0)&&q.gallery))return;const F=Lj(),X=J9(),R=bj(X),i1=`${F}${R?`#${R}`:""}`,t1=`${F}#${X}`;window.history.replaceState(window.history.state,document.title,i1),window.history.pushState(E(),document.title,t1)}),T.on("change",()=>{var q;if(r===void 0)return;const U=((q=T.currSlide)===null||q===void 0?void 0:q.data.pid)||T.currIndex+1,Y=Lj(),F=bj(J9()),X=gJ({gid:r,pid:U}),R=`${Y}#${F}&${X}`;window.history.replaceState(E(),document.title,R)});const $=()=>{r!==void 0&&g3!==null&&g3.close()};window.addEventListener("popstate",$),T.on("destroy",()=>{r!==void 0&&(window.removeEventListener("popstate",$),Bj(J9())&&window.history.back()),g3=null}),T.init(),typeof l=="function"&&l(T)},[e,a,n,r,o,l,c,h]);_.useEffect(()=>()=>{g3&&g3.close()},[]);const M=_.useCallback(()=>{if(r===void 0||g3!==null)return;const z=J9();if(z.length<5)return;const w=dT(z),{pid:x,gid:y}=w;if(!(!x||!y)){if(v.current.size===0){f.current=x;return}x&&y===String(r)&&d(null,x)}},[d,r]);_.useEffect(()=>(M(),window.addEventListener("popstate",M),()=>{window.removeEventListener("popstate",M)}),[M]);const g=_.useCallback(z=>{v.current.delete(z)},[]),H=_.useCallback((z,w)=>{const{id:x}=w;if(v.current.set(z,w),f.current!==null){if(x===f.current){d(z),f.current=null;return}if(!x){const y=parseInt(f.current,10)-1,V=Array.from(v.current.keys())[y];V&&(d(V),f.current=null)}}},[d]),p=_.useCallback(z=>{d(null,null,z)},[d]),m=_.useMemo(()=>({remove:g,set:H,handleClick:d,open:p}),[g,H,d,p]);return W1.createElement(fT.Provider,{value:m},t,s)};pJ.propTypes={children:ut.any,options:ut.object,plugins:ut.func,uiElements:ut.array,id:ut.oneOfType([ut.string,ut.number]),onBeforeOpen:ut.func,onOpen:ut.func,withCaption:ut.bool,withDownloadButton:ut.bool};var lL1=function(t,e){var a={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(a[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(t);r{var{children:e}=t,a=lL1(t,["children"]);const n=_.useRef(),{remove:r,set:o,handleClick:l}=_.useContext(fT),c=_.useCallback(h=>l(n,null,null,h),[]);return _.useLayoutEffect(()=>(o(n,a),()=>r(n)),Object.values(a)),e({ref:n,open:c})};mJ.propTypes={children:ut.func.isRequired,original:ut.string,originalSrcset:ut.string,thumbnail:ut.string,width:ut.oneOfType([ut.number,ut.string]),height:ut.oneOfType([ut.number,ut.string]),alt:ut.string,caption:ut.string,content:ut.element,html:ut.string,id:ut.oneOfType([ut.number,ut.string]),cropped:ut.bool};const cL1=()=>{const{open:t}=W1.useContext(fT);return{open:t}},sL1=Object.freeze(Object.defineProperty({__proto__:null,Gallery:pJ,Item:mJ,useGallery:cL1},Symbol.toStringTag,{value:"Module"})),hL1=se(sL1);var Kz={},uL1="Expected a function",vL1=9007199254740991,dL1="[object Arguments]",fL1="[object Function]",gL1="[object GeneratorFunction]",pL1=typeof b=="object"&&b&&b.Object===Object&&b,mL1=typeof self=="object"&&self&&self.Object===Object&&self,zL1=pL1||mL1||Function("return this")();function ML1(t,e,a){switch(a.length){case 0:return t.call(e);case 1:return t.call(e,a[0]);case 2:return t.call(e,a[0],a[1]);case 3:return t.call(e,a[0],a[1],a[2])}return t.apply(e,a)}function HL1(t,e){for(var a=-1,n=e.length,r=t.length;++a0&&a(c)?e>1?MJ(c,e-1,a,n,r):HL1(r,c):n||(r[r.length]=c)}return r}function xL1(t,e){return e=Tj(e===void 0?t.length-1:e,0),function(){for(var a=arguments,n=-1,r=Tj(a.length-e,0),o=Array(r);++n-1&&t%1==0&&t<=vL1}function OL1(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function AL1(t){return!!t&&typeof t=="object"}var kL1=VL1(),EL1=kL1,PL1=b&&b.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Kz,"__esModule",{value:!0});var NL1=Kz.fixContentForMarkdown=void 0,DL1=PL1(EL1),RL1=function(t){return t===void 0&&(t=""),t.replaceAll(/(\\\r\n|\\r\n|\\\n|\\n)/g,` `).split(` `).map(function(e){if(!e.trim().length)return e;var a=e.replace(/\\+/g,"");return a.trim().length?e:a}).join(` -`)},RL1=function(t){return t===void 0&&(t=""),t.includes("style=”")?t.split("style=”").map(function(e){return e.replace("”",'"')}).join('style="'):t},jL1=function(t){var e=/==([^=\r\n]+)==/g,a=t.match(e);if(!a)return t;for(var n=t,r=0,o=a;r".concat(l.replace(/==/g,""),"");n=n.replace(l,c)}return n},IL1=function(t){return t===void 0&&(t=""),typeof t!="string"||t==="null"?"":(0,NL1.default)([DL1,RL1,jL1])(t)};PL1=Kz.fixContentForMarkdown=IL1;var Oj;function HJ(){return Oj||(Oj=1,function(t){var e=b&&b.__makeTemplateObject||function(W,Y){return Object.defineProperty?Object.defineProperty(W,"raw",{value:Y}):W.raw=Y,W},a=b&&b.__assign||function(){return a=Object.assign||function(W){for(var Y,F=1,t1=arguments.length;F".concat(l.replace(/==/g,""),"");n=n.replace(l,c)}return n},FL1=function(t){return t===void 0&&(t=""),typeof t!="string"||t==="null"?"":(0,DL1.default)([RL1,jL1,IL1])(t)};NL1=Kz.fixContentForMarkdown=FL1;var Oj;function HJ(){return Oj||(Oj=1,function(t){var e=b&&b.__makeTemplateObject||function(U,Y){return Object.defineProperty?Object.defineProperty(U,"raw",{value:Y}):U.raw=Y,U},a=b&&b.__assign||function(){return a=Object.assign||function(U){for(var Y,F=1,X=arguments.length;F1&&arguments[1]!==void 0?arguments[1]:{};Jt(this,t),this.init(e,a)}return t2(t,[{key:"init",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=a||$L1,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(a){this.debug=a}},{key:"log",value:function(){for(var a=arguments.length,n=new Array(a),r=0;r1?n-1:0),o=1;o-1?c.replace(/###/g,"."):c}function r(){return!t||typeof t=="string"}for(var o=typeof e!="string"?[].concat(e):e.split(".");o.length>1;){if(r())return{};var l=n(o.shift());!t[l]&&a&&(t[l]=new a),Object.prototype.hasOwnProperty.call(t,l)?t=t[l]:t={}}return r()?{}:{obj:t,k:n(o.shift())}}function Nj(t,e,a){var n=pT(t,e,Object),r=n.obj,o=n.k;r[o]=a}function qL1(t,e,a,n){var r=pT(t,e,Object),o=r.obj,l=r.k;o[l]=o[l]||[],n&&(o[l]=o[l].concat(a)),n||o[l].push(a)}function ap(t,e){var a=pT(t,e),n=a.obj,r=a.k;if(n)return n[r]}function Dj(t,e,a){var n=ap(t,a);return n!==void 0?n:ap(e,a)}function bJ(t,e,a){for(var n in e)n!=="__proto__"&&n!=="constructor"&&(n in t?typeof t[n]=="string"||t[n]instanceof String||typeof e[n]=="string"||e[n]instanceof String?a&&(t[n]=e[n]):bJ(t[n],e[n],a):t[n]=e[n]);return t}function Zl(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var GL1={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function KL1(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return GL1[e]}):t}var Yz=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,YL1=[" ",",","?","!",";"];function ZL1(t,e,a){e=e||"",a=a||"";var n=YL1.filter(function(c){return e.indexOf(c)<0&&a.indexOf(c)<0});if(n.length===0)return!0;var r=new RegExp("(".concat(n.map(function(c){return c==="?"?"\\?":c}).join("|"),")")),o=!r.test(t);if(!o){var l=t.indexOf(a);l>0&&!r.test(t.substring(0,l))&&(o=!0)}return o}function Rj(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function Td(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function LJ(t,e){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var n=e.split(a),r=t,o=0;oo+l;)l++,c=n.slice(o,o+l).join(a),h=r[c];if(h===void 0)return;if(h===null)return null;if(e.endsWith(c)){if(typeof h=="string")return h;if(c&&typeof h[c]=="string")return h[c]}var s=n.slice(o+l).join(a);return s?LJ(h,s,a):void 0}r=r[n[o]]}return r}}var JL1=function(t){M2(a,t);var e=QL1(a);function a(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Jt(this,a),r=e.call(this),Yz&&go.call(D1(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return t2(a,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var o=this.options.ns.indexOf(r);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(r,o,l){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,s=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[r,o];l&&typeof l!="string"&&(u=u.concat(l)),l&&typeof l=="string"&&(u=u.concat(h?l.split(h):l)),r.indexOf(".")>-1&&(u=r.split("."));var v=ap(this.data,u);return v||!s||typeof l!="string"?v:LJ(this.data&&this.data[r]&&this.data[r][o],l,h)}},{key:"addResource",value:function(r,o,l,c){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=this.options.keySeparator;s===void 0&&(s=".");var u=[r,o];l&&(u=u.concat(s?l.split(s):l)),r.indexOf(".")>-1&&(u=r.split("."),c=o,o=u[1]),this.addNamespaces(o),Nj(this.data,u,c),h.silent||this.emit("added",r,o,l,c)}},{key:"addResources",value:function(r,o,l){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var h in l)(typeof l[h]=="string"||Object.prototype.toString.apply(l[h])==="[object Array]")&&this.addResource(r,o,h,l[h],{silent:!0});c.silent||this.emit("added",r,o,l)}},{key:"addResourceBundle",value:function(r,o,l,c,h){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[r,o];r.indexOf(".")>-1&&(u=r.split("."),c=l,l=o,o=u[1]),this.addNamespaces(o);var v=ap(this.data,u)||{};c?bJ(v,l,h):v=Td(Td({},v),l),Nj(this.data,u,v),s.silent||this.emit("added",r,o,l)}},{key:"removeResourceBundle",value:function(r,o){this.hasResourceBundle(r,o)&&delete this.data[r][o],this.removeNamespaces(o),this.emit("removed",r,o)}},{key:"hasResourceBundle",value:function(r,o){return this.getResource(r,o)!==void 0}},{key:"getResourceBundle",value:function(r,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Td(Td({},{}),this.getResource(r,o)):this.getResource(r,o)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"hasLanguageSomeTranslations",value:function(r){var o=this.getDataByLanguage(r),l=o&&Object.keys(o)||[];return!!l.find(function(c){return o[c]&&Object.keys(o[c]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),a}(go),BJ={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,a,n,r,o){var l=this;return e.forEach(function(c){l.processors[c]&&(a=l.processors[c].process(a,n,r,o))}),a}};function jj(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function oa(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Ij={},Fj=function(t){M2(a,t);var e=tB1(a);function a(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Jt(this,a),r=e.call(this),Yz&&go.call(D1(r)),WL1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,D1(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=pi.create("translator"),r}return t2(a,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var l=this.resolve(r,o);return l&&l.res!==void 0}},{key:"extractFromKey",value:function(r,o){var l=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");var c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,h=o.ns||this.options.defaultNS||[],s=l&&r.indexOf(l)>-1,u=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!ZL1(r,l,c);if(s&&!u){var v=r.match(this.interpolator.nestingRegexp);if(v&&v.length>0)return{key:r,namespaces:h};var f=r.split(l);(l!==c||l===c&&this.options.ns.indexOf(f[0])>-1)&&(h=f.shift()),r=f.join(c)}return typeof h=="string"&&(h=[h]),{key:r,namespaces:h}}},{key:"translate",value:function(r,o,l){var c=this;if(C2(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var h=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=this.extractFromKey(r[r.length-1],o),v=u.key,f=u.namespaces,d=f[f.length-1],M=o.lng||this.language,g=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(M&&M.toLowerCase()==="cimode"){if(g){var H=o.nsSeparator||this.options.nsSeparator;return h?(p.res="".concat(d).concat(H).concat(v),p):"".concat(d).concat(H).concat(v)}return h?(p.res=v,p):v}var p=this.resolve(r,o),m=p&&p.res,z=p&&p.usedKey||v,w=p&&p.exactUsedKey||v,x=Object.prototype.toString.apply(m),y=["[object Number]","[object Function]","[object RegExp]"],V=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,L=typeof m!="string"&&typeof m!="boolean"&&typeof m!="number";if(C&&m&&L&&y.indexOf(x)<0&&!(typeof V=="string"&&x==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var B=this.options.returnedObjectHandler?this.options.returnedObjectHandler(z,m,oa(oa({},o),{},{ns:f})):"key '".concat(v," (").concat(this.language,")' returned an object instead of string.");return h?(p.res=B,p):B}if(s){var S=x==="[object Array]",T=S?[]:{},E=S?w:z;for(var $ in m)if(Object.prototype.hasOwnProperty.call(m,$)){var U="".concat(E).concat(s).concat($);T[$]=this.translate(U,oa(oa({},o),{joinArrays:!1,ns:f})),T[$]===U&&(T[$]=m[$])}m=T}}else if(C&&typeof V=="string"&&x==="[object Array]")m=m.join(V),m&&(m=this.extendTranslation(m,r,o,l));else{var W=!1,Y=!1,F=o.count!==void 0&&typeof o.count!="string",t1=a.hasDefaultValue(o),R=F?this.pluralResolver.getSuffix(M,o.count,o):"",i1=o["defaultValue".concat(R)]||o.defaultValue;!this.isValidLookup(m)&&t1&&(W=!0,m=i1),this.isValidLookup(m)||(Y=!0,m=v);var J=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,A=J&&Y?void 0:m,o1=t1&&i1!==m&&this.options.updateMissing;if(Y||W||o1){if(this.logger.log(o1?"updateKey":"missingKey",M,d,v,o1?i1:m),s){var h1=this.resolve(v,oa(oa({},o),{},{keySeparator:!1}));h1&&h1.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var a1=[],M1=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&M1&&M1[0])for(var s1=0;s11&&arguments[1]!==void 0?arguments[1]:{},c,h,s,u,v;return typeof r=="string"&&(r=[r]),r.forEach(function(f){if(!o.isValidLookup(c)){var d=o.extractFromKey(f,l),M=d.key;h=M;var g=d.namespaces;o.options.fallbackNS&&(g=g.concat(o.options.fallbackNS));var H=l.count!==void 0&&typeof l.count!="string",p=H&&!l.ordinal&&l.count===0&&o.pluralResolver.shouldUseIntlApi(),m=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",z=l.lngs?l.lngs:o.languageUtils.toResolveHierarchy(l.lng||o.language,l.fallbackLng);g.forEach(function(w){o.isValidLookup(c)||(v=w,!Ij["".concat(z[0],"-").concat(w)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(v)&&(Ij["".concat(z[0],"-").concat(w)]=!0,o.logger.warn('key "'.concat(h,'" for languages "').concat(z.join(", "),`" won't get resolved as namespace "`).concat(v,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),z.forEach(function(x){if(!o.isValidLookup(c)){u=x;var y=[M];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(y,M,x,w,l);else{var V;H&&(V=o.pluralResolver.getSuffix(x,l.count,l));var C="".concat(o.options.pluralSeparator,"zero");if(H&&(y.push(M+V),p&&y.push(M+C)),m){var L="".concat(M).concat(o.options.contextSeparator).concat(l.context);y.push(L),H&&(y.push(L+V),p&&y.push(L+C))}}for(var B;B=y.pop();)o.isValidLookup(c)||(s=B,c=o.getResource(x,w,B,l))}}))})}}),{res:c,usedKey:h,exactUsedKey:s,usedLng:u,usedNS:v}}},{key:"isValidLookup",value:function(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,o,l){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,o,l,c):this.resourceStore.getResource(r,o,l,c)}}],[{key:"hasDefaultValue",value:function(r){var o="defaultValue";for(var l in r)if(Object.prototype.hasOwnProperty.call(r,l)&&o===l.substring(0,o.length)&&r[l]!==void 0)return!0;return!1}}]),a}(go);function Xx(t){return t.charAt(0).toUpperCase()+t.slice(1)}var aB1=function(){function t(e){Jt(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=pi.create("languageUtils")}return t2(t,[{key:"getScriptPartFromCode",value:function(a){if(!a||a.indexOf("-")<0)return null;var n=a.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(a){if(!a||a.indexOf("-")<0)return a;var n=a.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(a){if(typeof a=="string"&&a.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=a.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Xx(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Xx(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Xx(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}},{key:"isSupportedCode",value:function(a){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}},{key:"getBestMatchFromCodes",value:function(a){var n=this;if(!a)return null;var r;return a.forEach(function(o){if(!r){var l=n.formatLanguageCode(o);(!n.options.supportedLngs||n.isSupportedCode(l))&&(r=l)}}),!r&&this.options.supportedLngs&&a.forEach(function(o){if(!r){var l=n.getLanguagePartFromCode(o);if(n.isSupportedCode(l))return r=l;r=n.options.supportedLngs.find(function(c){if(c.indexOf(l)===0)return c})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}},{key:"getFallbackCodes",value:function(a,n){if(!a)return[];if(typeof a=="function"&&(a=a(n)),typeof a=="string"&&(a=[a]),Object.prototype.toString.apply(a)==="[object Array]")return a;if(!n)return a.default||[];var r=a[n];return r||(r=a[this.getScriptPartFromCode(n)]),r||(r=a[this.formatLanguageCode(n)]),r||(r=a[this.getLanguagePartFromCode(n)]),r||(r=a.default),r||[]}},{key:"toResolveHierarchy",value:function(a,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],a),l=[],c=function(s){s&&(r.isSupportedCode(s)?l.push(s):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(s)))};return typeof a=="string"&&a.indexOf("-")>-1?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(a)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(a)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(a))):typeof a=="string"&&c(this.formatLanguageCode(a)),o.forEach(function(h){l.indexOf(h)<0&&c(r.formatLanguageCode(h))}),l}}]),t}(),nB1=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],rB1={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},iB1=["v1","v2","v3"],$j={zero:0,one:1,two:2,few:3,many:4,other:5};function oB1(){var t={};return nB1.forEach(function(e){e.lngs.forEach(function(a){t[a]={numbers:e.nr,plurals:rB1[e.fc]}})}),t}var lB1=function(){function t(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Jt(this,t),this.languageUtils=e,this.options=a,this.logger=pi.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=oB1()}return t2(t,[{key:"addRule",value:function(a,n){this.rules[a]=n}},{key:"getRule",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(a,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[a]||this.rules[this.languageUtils.getLanguagePartFromCode(a)]}},{key:"needsPlural",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(a,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(a,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(a,r).map(function(o){return"".concat(n).concat(o)})}},{key:"getSuffixes",value:function(a){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(a,r);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(l,c){return $j[l]-$j[c]}).map(function(l){return"".concat(n.options.prepend).concat(l)}):o.numbers.map(function(l){return n.getSuffix(a,l,r)}):[]}},{key:"getSuffix",value:function(a,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(a,r);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(a)),"")}},{key:"getSuffixRetroCompatible",value:function(a,n){var r=this,o=a.noAbs?a.plurals(n):a.plurals(Math.abs(n)),l=a.numbers[o];this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1&&(l===2?l="plural":l===1&&(l=""));var c=function(){return r.options.prepend&&l.toString()?r.options.prepend+l.toString():l.toString()};return this.options.compatibilityJSON==="v1"?l===1?"":typeof l=="number"?"_plural_".concat(l.toString()):c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1?c():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!iB1.includes(this.options.compatibilityJSON)}}]),t}();function Uj(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function ur(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};Jt(this,t),this.logger=pi.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(a){return a},this.init(e)}return t2(t,[{key:"init",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};a.interpolation||(a.interpolation={escapeValue:!0});var n=a.interpolation;this.escape=n.escape!==void 0?n.escape:KL1,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Zl(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Zl(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Zl(n.nestingPrefix):n.nestingPrefixEscaped||Zl("$t("),this.nestingSuffix=n.nestingSuffix?Zl(n.nestingSuffix):n.nestingSuffixEscaped||Zl(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var a="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(a,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(a,n,r,o){var l=this,c,h,s,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function v(H){return H.replace(/\$/g,"$$$$")}var f=function(p){if(p.indexOf(l.formatSeparator)<0){var m=Dj(n,u,p);return l.alwaysFormat?l.format(m,void 0,r,ur(ur(ur({},o),n),{},{interpolationkey:p})):m}var z=p.split(l.formatSeparator),w=z.shift().trim(),x=z.join(l.formatSeparator).trim();return l.format(Dj(n,u,w),x,r,ur(ur(ur({},o),n),{},{interpolationkey:w}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,M=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(p){return v(p)}},{regex:this.regexp,safeValue:function(p){return l.escapeValue?v(l.escape(p)):v(p)}}];return g.forEach(function(H){for(s=0;c=H.regex.exec(a);){var p=c[1].trim();if(h=f(p),h===void 0)if(typeof d=="function"){var m=d(a,c,o);h=typeof m=="string"?m:""}else if(o&&o.hasOwnProperty(p))h="";else if(M){h=c[0];continue}else l.logger.warn("missed to pass in variable ".concat(p," for interpolating ").concat(a)),h="";else typeof h!="string"&&!l.useRawValueToEscape&&(h=Pj(h));var z=H.safeValue(h);if(a=a.replace(c[0],z),M?(H.regex.lastIndex+=h.length,H.regex.lastIndex-=c[0].length):H.regex.lastIndex=0,s++,s>=l.maxReplaces)break}}),a}},{key:"nest",value:function(a,n){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,c,h=ur({},o);h.applyPostProcessor=!1,delete h.defaultValue;function s(d,M){var g=this.nestingOptionsSeparator;if(d.indexOf(g)<0)return d;var H=d.split(new RegExp("".concat(g,"[ ]*{"))),p="{".concat(H[1]);d=H[0],p=this.interpolate(p,h);var m=p.match(/'/g),z=p.match(/"/g);(m&&m.length%2===0&&!z||z.length%2!==0)&&(p=p.replace(/'/g,'"'));try{h=JSON.parse(p),M&&(h=ur(ur({},M),h))}catch(w){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),w),"".concat(d).concat(g).concat(p)}return delete h.defaultValue,d}for(;l=this.nestingRegexp.exec(a);){var u=[],v=!1;if(l[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(l[1])){var f=l[1].split(this.formatSeparator).map(function(d){return d.trim()});l[1]=f.shift(),u=f,v=!0}if(c=n(s.call(this,l[1].trim(),h),h),c&&l[0]===a&&typeof c!="string")return c;typeof c!="string"&&(c=Pj(c)),c||(this.logger.warn("missed to resolve ".concat(l[1]," for nesting ").concat(a)),c=""),v&&(c=u.reduce(function(d,M){return r.format(d,M,o.lng,ur(ur({},o),{},{interpolationkey:l[1].trim()}))},c.trim())),a=a.replace(l[0],c),this.regexp.lastIndex=0}return a}}]),t}();function Wj(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function p3(t){for(var e=1;e-1){var n=t.split("(");e=n[0].toLowerCase().trim();var r=n[1].substring(0,n[1].length-1);if(e==="currency"&&r.indexOf(":")<0)a.currency||(a.currency=r.trim());else if(e==="relativetime"&&r.indexOf(":")<0)a.range||(a.range=r.trim());else{var o=r.split(";");o.forEach(function(l){if(l){var c=l.split(":"),h=CJ(c),s=h[0],u=h.slice(1),v=u.join(":").trim().replace(/^'+|'+$/g,"");a[s.trim()]||(a[s.trim()]=v),v==="false"&&(a[s.trim()]=!1),v==="true"&&(a[s.trim()]=!0),isNaN(v)||(a[s.trim()]=parseInt(v,10))}})}}return{formatName:e,formatOptions:a}}function Ql(t){var e={};return function(n,r,o){var l=r+JSON.stringify(o),c=e[l];return c||(c=t(r,o),e[l]=c),c(n)}}var hB1=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Jt(this,t),this.logger=pi.create("formatter"),this.options=e,this.formats={number:Ql(function(a,n){var r=new Intl.NumberFormat(a,n);return function(o){return r.format(o)}}),currency:Ql(function(a,n){var r=new Intl.NumberFormat(a,p3(p3({},n),{},{style:"currency"}));return function(o){return r.format(o)}}),datetime:Ql(function(a,n){var r=new Intl.DateTimeFormat(a,p3({},n));return function(o){return r.format(o)}}),relativetime:Ql(function(a,n){var r=new Intl.RelativeTimeFormat(a,p3({},n));return function(o){return r.format(o,n.range||"day")}}),list:Ql(function(a,n){var r=new Intl.ListFormat(a,p3({},n));return function(o){return r.format(o)}})},this.init(e)}return t2(t,[{key:"init",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},r=n.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}},{key:"add",value:function(a,n){this.formats[a.toLowerCase().trim()]=n}},{key:"addCached",value:function(a,n){this.formats[a.toLowerCase().trim()]=Ql(n)}},{key:"format",value:function(a,n,r,o){var l=this,c=n.split(this.formatSeparator),h=c.reduce(function(s,u){var v=sB1(u),f=v.formatName,d=v.formatOptions;if(l.formats[f]){var M=s;try{var g=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},H=g.locale||g.lng||o.locale||o.lng||r;M=l.formats[f](s,H,p3(p3(p3({},d),o),g))}catch(p){l.logger.warn(p)}return M}else l.logger.warn("there was no format function for ".concat(f));return s},a);return h}}]),t}();function qj(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function Gj(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dB1(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var fB1=function(t){M2(a,t);var e=uB1(a);function a(n,r,o){var l,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Jt(this,a),l=e.call(this),Yz&&go.call(D1(l)),l.backend=n,l.store=r,l.services=o,l.languageUtils=o.languageUtils,l.options=c,l.logger=pi.create("backendConnector"),l.waitingReads=[],l.maxParallelReads=c.maxParallelReads||10,l.readingCalls=0,l.maxRetries=c.maxRetries>=0?c.maxRetries:5,l.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,l.state={},l.queue=[],l.backend&&l.backend.init&&l.backend.init(o,c.backend,c),l}return t2(a,[{key:"queueLoad",value:function(r,o,l,c){var h=this,s={},u={},v={},f={};return r.forEach(function(d){var M=!0;o.forEach(function(g){var H="".concat(d,"|").concat(g);!l.reload&&h.store.hasResourceBundle(d,g)?h.state[H]=2:h.state[H]<0||(h.state[H]===1?u[H]===void 0&&(u[H]=!0):(h.state[H]=1,M=!1,u[H]===void 0&&(u[H]=!0),s[H]===void 0&&(s[H]=!0),f[g]===void 0&&(f[g]=!0)))}),M||(v[d]=!0)}),(Object.keys(s).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(s),pending:Object.keys(u),toLoadLanguages:Object.keys(v),toLoadNamespaces:Object.keys(f)}}},{key:"loaded",value:function(r,o,l){var c=r.split("|"),h=c[0],s=c[1];o&&this.emit("failedLoading",h,s,o),l&&this.store.addResourceBundle(h,s,l),this.state[r]=o?-1:2;var u={};this.queue.forEach(function(v){qL1(v.loaded,[h],s),dB1(v,r),o&&v.errors.push(o),v.pendingCount===0&&!v.done&&(Object.keys(v.loaded).forEach(function(f){u[f]||(u[f]={});var d=v.loaded[f];d.length&&d.forEach(function(M){u[f][M]===void 0&&(u[f][M]=!0)})}),v.done=!0,v.errors.length?v.callback(v.errors):v.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(v){return!v.done})}},{key:"read",value:function(r,o,l){var c=this,h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,u=arguments.length>5?arguments[5]:void 0;if(!r.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:o,fcName:l,tried:h,wait:s,callback:u});return}return this.readingCalls++,this.backend[l](r,o,function(v,f){if(c.readingCalls--,c.waitingReads.length>0){var d=c.waitingReads.shift();c.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(v&&f&&h2&&arguments[2]!==void 0?arguments[2]:{},h=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),h&&h();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof o=="string"&&(o=[o]);var s=this.queueLoad(r,o,c,h);if(!s.toLoad.length)return s.pending.length||h(),null;s.toLoad.forEach(function(u){l.loadOne(u)})}},{key:"load",value:function(r,o,l){this.prepareLoading(r,o,{},l)}},{key:"reload",value:function(r,o,l){this.prepareLoading(r,o,{reload:!0},l)}},{key:"loadOne",value:function(r){var o=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",c=r.split("|"),h=c[0],s=c[1];this.read(h,s,"read",void 0,void 0,function(u,v){u&&o.logger.warn("".concat(l,"loading namespace ").concat(s," for language ").concat(h," failed"),u),!u&&v&&o.logger.log("".concat(l,"loaded namespace ").concat(s," for language ").concat(h),v),o.loaded(r,u,v)})}},{key:"saveMissing",value:function(r,o,l,c,h){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(l,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}l==null||l===""||(this.backend&&this.backend.create&&this.backend.create(r,o,l,c,null,Gj(Gj({},s),{},{isUpdate:h})),!(!r||!r[0])&&this.store.addResource(r[0],o,l,c))}}]),a}(go);function gB1(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var a={};if(C2(e[1])==="object"&&(a=e[1]),typeof e[1]=="string"&&(a.defaultValue=e[1]),typeof e[2]=="string"&&(a.tDescription=e[2]),C2(e[2])==="object"||C2(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach(function(r){a[r]=n[r]})}return a},interpolation:{escapeValue:!0,format:function(e,a,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Kj(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Yj(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function Zr(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Od(){}function zB1(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(a){typeof t[a]=="function"&&(t[a]=t[a].bind(t))})}var np=function(t){M2(a,t);var e=pB1(a);function a(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Jt(this,a),n=e.call(this),Yz&&go.call(D1(n)),n.options=Kj(r),n.services={},n.logger=pi,n.modules={external:[]},zB1(D1(n)),o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),Rc(n,D1(n));setTimeout(function(){n.init(r,o)},0)}return n}return t2(a,[{key:"init",value:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(l=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var c=gB1();this.options=Zr(Zr(Zr({},c),this.options),Kj(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Zr(Zr({},c.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function h(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?pi.init(h(this.modules.logger),this.options):pi.init(null,this.options);var s;this.modules.formatter?s=this.modules.formatter:typeof Intl<"u"&&(s=hB1);var u=new aB1(this.options);this.store=new JL1(this.options.resources,this.options);var v=this.services;v.logger=pi,v.resourceStore=this.store,v.languageUtils=u,v.pluralResolver=new lB1(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(v.formatter=h(s),v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new cB1(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new fB1(h(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",function(p){for(var m=arguments.length,z=new Array(m>1?m-1:0),w=1;w1?m-1:0),w=1;w0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var d=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];d.forEach(function(p){r[p]=function(){var m;return(m=r.store)[p].apply(m,arguments)}});var M=["addResource","addResources","addResourceBundle","removeResourceBundle"];M.forEach(function(p){r[p]=function(){var m;return(m=r.store)[p].apply(m,arguments),r}});var g=t7(),H=function(){var m=function(w,x){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),g.resolve(x),l(w,x)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return m(null,r.t.bind(r));r.changeLanguage(r.options.lng,m)};return this.options.resources||!this.options.initImmediate?H():setTimeout(H,0),g}},{key:"loadResources",value:function(r){var o=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Od,c=l,h=typeof r=="string"?r:this.language;if(typeof r=="function"&&(c=r),!this.options.resources||this.options.partialBundledLanguages){if(h&&h.toLowerCase()==="cimode")return c();var s=[],u=function(d){if(d){var M=o.services.languageUtils.toResolveHierarchy(d);M.forEach(function(g){s.indexOf(g)<0&&s.push(g)})}};if(h)u(h);else{var v=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);v.forEach(function(f){return u(f)})}this.options.preload&&this.options.preload.forEach(function(f){return u(f)}),this.services.backendConnector.load(s,this.options.ns,function(f){!f&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),c(f)})}else c(null)}},{key:"reloadResources",value:function(r,o,l){var c=t7();return r||(r=this.languages),o||(o=this.options.ns),l||(l=Od),this.services.backendConnector.reload(r,o,function(h){c.resolve(),l(h)}),c}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&BJ.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"setResolvedLanguage",value:function(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1))for(var o=0;o-1)&&this.store.hasLanguageSomeTranslations(l)){this.resolvedLanguage=l;break}}}},{key:"changeLanguage",value:function(r,o){var l=this;this.isLanguageChangingTo=r;var c=t7();this.emit("languageChanging",r);var h=function(f){l.language=f,l.languages=l.services.languageUtils.toResolveHierarchy(f),l.resolvedLanguage=void 0,l.setResolvedLanguage(f)},s=function(f,d){d?(h(d),l.translator.changeLanguage(d),l.isLanguageChangingTo=void 0,l.emit("languageChanged",d),l.logger.log("languageChanged",d)):l.isLanguageChangingTo=void 0,c.resolve(function(){return l.t.apply(l,arguments)}),o&&o(f,function(){return l.t.apply(l,arguments)})},u=function(f){!r&&!f&&l.services.languageDetector&&(f=[]);var d=typeof f=="string"?f:l.services.languageUtils.getBestMatchFromCodes(f);d&&(l.language||h(d),l.translator.language||l.translator.changeLanguage(d),l.services.languageDetector&&l.services.languageDetector.cacheUserLanguage(d)),l.loadResources(d,function(M){s(M,d)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(u):u(r),c}},{key:"getFixedT",value:function(r,o,l){var c=this,h=function s(u,v){var f;if(C2(v)!=="object"){for(var d=arguments.length,M=new Array(d>2?d-2:0),g=2;g1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var c=this.resolvedLanguage||this.languages[0],h=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;var u=function(d,M){var g=o.services.backendConnector.state["".concat(d,"|").concat(M)];return g===-1||g===2};if(l.precheck){var v=l.precheck(this,u);if(v!==void 0)return v}return!!(this.hasResourceBundle(c,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(c,r)&&(!h||u(s,r)))}},{key:"loadNamespaces",value:function(r,o){var l=this,c=t7();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(h){l.options.ns.indexOf(h)<0&&l.options.ns.push(h)}),this.loadResources(function(h){c.resolve(),o&&o(h)}),c):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(r,o){var l=t7();typeof r=="string"&&(r=[r]);var c=this.options.preload||[],h=r.filter(function(s){return c.indexOf(s)<0});return h.length?(this.options.preload=c.concat(h),this.loadResources(function(s){l.resolve(),o&&o(s)}),l):(o&&o(),Promise.resolve())}},{key:"dir",value:function(r){if(r||(r=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!r)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return o.indexOf(this.services.languageUtils.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Od,c=Zr(Zr(Zr({},this.options),o),{isClone:!0}),h=new a(c);(o.debug!==void 0||o.prefix!==void 0)&&(h.logger=h.logger.clone(o));var s=["store","services","language"];return s.forEach(function(u){h[u]=r[u]}),h.services=Zr({},this.services),h.services.utils={hasLoadedNamespace:h.hasLoadedNamespace.bind(h)},h.translator=new Fj(h.services,h.options),h.translator.on("*",function(u){for(var v=arguments.length,f=new Array(v>1?v-1:0),d=1;d0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new np(t,e)});var ta=np.createInstance();ta.createInstance=np.createInstance;var MB1=ta.createInstance,HB1=ta.init,wB1=ta.loadResources,yB1=ta.reloadResources,xB1=ta.use,VB1=ta.changeLanguage,CB1=ta.getFixedT,bB1=ta.t,LB1=ta.exists,BB1=ta.setDefaultNamespace,_B1=ta.hasLoadedNamespace,SB1=ta.loadNamespaces,TB1=ta.loadLanguages;const OB1=Object.freeze(Object.defineProperty({__proto__:null,changeLanguage:VB1,createInstance:MB1,default:ta,exists:LB1,getFixedT:CB1,hasLoadedNamespace:_B1,init:HB1,loadLanguages:TB1,loadNamespaces:SB1,loadResources:wB1,reloadResources:yB1,setDefaultNamespace:BB1,t:bB1,use:xB1},Symbol.toStringTag,{value:"Module"})),t9=se(OB1);(function(t){var e=b&&b.__makeTemplateObject||function(V,C){return Object.defineProperty?Object.defineProperty(V,"raw",{value:C}):V.raw=C,V},a=b&&b.__assign||function(){return a=Object.assign||function(V){for(var C,L=1,B=arguments.length;L1&&arguments[1]!==void 0?arguments[1]:{};Jt(this,t),this.init(e,a)}return t2(t,[{key:"init",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=a||UL1,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(a){this.debug=a}},{key:"log",value:function(){for(var a=arguments.length,n=new Array(a),r=0;r1?n-1:0),o=1;o-1?c.replace(/###/g,"."):c}function r(){return!t||typeof t=="string"}for(var o=typeof e!="string"?[].concat(e):e.split(".");o.length>1;){if(r())return{};var l=n(o.shift());!t[l]&&a&&(t[l]=new a),Object.prototype.hasOwnProperty.call(t,l)?t=t[l]:t={}}return r()?{}:{obj:t,k:n(o.shift())}}function Nj(t,e,a){var n=pT(t,e,Object),r=n.obj,o=n.k;r[o]=a}function GL1(t,e,a,n){var r=pT(t,e,Object),o=r.obj,l=r.k;o[l]=o[l]||[],n&&(o[l]=o[l].concat(a)),n||o[l].push(a)}function ap(t,e){var a=pT(t,e),n=a.obj,r=a.k;if(n)return n[r]}function Dj(t,e,a){var n=ap(t,a);return n!==void 0?n:ap(e,a)}function bJ(t,e,a){for(var n in e)n!=="__proto__"&&n!=="constructor"&&(n in t?typeof t[n]=="string"||t[n]instanceof String||typeof e[n]=="string"||e[n]instanceof String?a&&(t[n]=e[n]):bJ(t[n],e[n],a):t[n]=e[n]);return t}function Zl(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var KL1={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function YL1(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return KL1[e]}):t}var Yz=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,ZL1=[" ",",","?","!",";"];function QL1(t,e,a){e=e||"",a=a||"";var n=ZL1.filter(function(c){return e.indexOf(c)<0&&a.indexOf(c)<0});if(n.length===0)return!0;var r=new RegExp("(".concat(n.map(function(c){return c==="?"?"\\?":c}).join("|"),")")),o=!r.test(t);if(!o){var l=t.indexOf(a);l>0&&!r.test(t.substring(0,l))&&(o=!0)}return o}function Rj(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function Td(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function LJ(t,e){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var n=e.split(a),r=t,o=0;oo+l;)l++,c=n.slice(o,o+l).join(a),h=r[c];if(h===void 0)return;if(h===null)return null;if(e.endsWith(c)){if(typeof h=="string")return h;if(c&&typeof h[c]=="string")return h[c]}var s=n.slice(o+l).join(a);return s?LJ(h,s,a):void 0}r=r[n[o]]}return r}}var tB1=function(t){M2(a,t);var e=XL1(a);function a(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Jt(this,a),r=e.call(this),Yz&&go.call(D1(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return t2(a,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var o=this.options.ns.indexOf(r);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(r,o,l){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,s=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[r,o];l&&typeof l!="string"&&(u=u.concat(l)),l&&typeof l=="string"&&(u=u.concat(h?l.split(h):l)),r.indexOf(".")>-1&&(u=r.split("."));var v=ap(this.data,u);return v||!s||typeof l!="string"?v:LJ(this.data&&this.data[r]&&this.data[r][o],l,h)}},{key:"addResource",value:function(r,o,l,c){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=this.options.keySeparator;s===void 0&&(s=".");var u=[r,o];l&&(u=u.concat(s?l.split(s):l)),r.indexOf(".")>-1&&(u=r.split("."),c=o,o=u[1]),this.addNamespaces(o),Nj(this.data,u,c),h.silent||this.emit("added",r,o,l,c)}},{key:"addResources",value:function(r,o,l){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var h in l)(typeof l[h]=="string"||Object.prototype.toString.apply(l[h])==="[object Array]")&&this.addResource(r,o,h,l[h],{silent:!0});c.silent||this.emit("added",r,o,l)}},{key:"addResourceBundle",value:function(r,o,l,c,h){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[r,o];r.indexOf(".")>-1&&(u=r.split("."),c=l,l=o,o=u[1]),this.addNamespaces(o);var v=ap(this.data,u)||{};c?bJ(v,l,h):v=Td(Td({},v),l),Nj(this.data,u,v),s.silent||this.emit("added",r,o,l)}},{key:"removeResourceBundle",value:function(r,o){this.hasResourceBundle(r,o)&&delete this.data[r][o],this.removeNamespaces(o),this.emit("removed",r,o)}},{key:"hasResourceBundle",value:function(r,o){return this.getResource(r,o)!==void 0}},{key:"getResourceBundle",value:function(r,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Td(Td({},{}),this.getResource(r,o)):this.getResource(r,o)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"hasLanguageSomeTranslations",value:function(r){var o=this.getDataByLanguage(r),l=o&&Object.keys(o)||[];return!!l.find(function(c){return o[c]&&Object.keys(o[c]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),a}(go),BJ={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,a,n,r,o){var l=this;return e.forEach(function(c){l.processors[c]&&(a=l.processors[c].process(a,n,r,o))}),a}};function jj(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function oa(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Ij={},Fj=function(t){M2(a,t);var e=eB1(a);function a(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Jt(this,a),r=e.call(this),Yz&&go.call(D1(r)),qL1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,D1(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=pi.create("translator"),r}return t2(a,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var l=this.resolve(r,o);return l&&l.res!==void 0}},{key:"extractFromKey",value:function(r,o){var l=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");var c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,h=o.ns||this.options.defaultNS||[],s=l&&r.indexOf(l)>-1,u=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!QL1(r,l,c);if(s&&!u){var v=r.match(this.interpolator.nestingRegexp);if(v&&v.length>0)return{key:r,namespaces:h};var f=r.split(l);(l!==c||l===c&&this.options.ns.indexOf(f[0])>-1)&&(h=f.shift()),r=f.join(c)}return typeof h=="string"&&(h=[h]),{key:r,namespaces:h}}},{key:"translate",value:function(r,o,l){var c=this;if(C2(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var h=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=this.extractFromKey(r[r.length-1],o),v=u.key,f=u.namespaces,d=f[f.length-1],M=o.lng||this.language,g=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(M&&M.toLowerCase()==="cimode"){if(g){var H=o.nsSeparator||this.options.nsSeparator;return h?(p.res="".concat(d).concat(H).concat(v),p):"".concat(d).concat(H).concat(v)}return h?(p.res=v,p):v}var p=this.resolve(r,o),m=p&&p.res,z=p&&p.usedKey||v,w=p&&p.exactUsedKey||v,x=Object.prototype.toString.apply(m),y=["[object Number]","[object Function]","[object RegExp]"],V=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,L=typeof m!="string"&&typeof m!="boolean"&&typeof m!="number";if(C&&m&&L&&y.indexOf(x)<0&&!(typeof V=="string"&&x==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var B=this.options.returnedObjectHandler?this.options.returnedObjectHandler(z,m,oa(oa({},o),{},{ns:f})):"key '".concat(v," (").concat(this.language,")' returned an object instead of string.");return h?(p.res=B,p):B}if(s){var S=x==="[object Array]",T=S?[]:{},E=S?w:z;for(var $ in m)if(Object.prototype.hasOwnProperty.call(m,$)){var q="".concat(E).concat(s).concat($);T[$]=this.translate(q,oa(oa({},o),{joinArrays:!1,ns:f})),T[$]===q&&(T[$]=m[$])}m=T}}else if(C&&typeof V=="string"&&x==="[object Array]")m=m.join(V),m&&(m=this.extendTranslation(m,r,o,l));else{var U=!1,Y=!1,F=o.count!==void 0&&typeof o.count!="string",X=a.hasDefaultValue(o),R=F?this.pluralResolver.getSuffix(M,o.count,o):"",i1=o["defaultValue".concat(R)]||o.defaultValue;!this.isValidLookup(m)&&X&&(U=!0,m=i1),this.isValidLookup(m)||(Y=!0,m=v);var t1=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,A=t1&&Y?void 0:m,o1=X&&i1!==m&&this.options.updateMissing;if(Y||U||o1){if(this.logger.log(o1?"updateKey":"missingKey",M,d,v,o1?i1:m),s){var h1=this.resolve(v,oa(oa({},o),{},{keySeparator:!1}));h1&&h1.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var a1=[],M1=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&M1&&M1[0])for(var s1=0;s11&&arguments[1]!==void 0?arguments[1]:{},c,h,s,u,v;return typeof r=="string"&&(r=[r]),r.forEach(function(f){if(!o.isValidLookup(c)){var d=o.extractFromKey(f,l),M=d.key;h=M;var g=d.namespaces;o.options.fallbackNS&&(g=g.concat(o.options.fallbackNS));var H=l.count!==void 0&&typeof l.count!="string",p=H&&!l.ordinal&&l.count===0&&o.pluralResolver.shouldUseIntlApi(),m=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",z=l.lngs?l.lngs:o.languageUtils.toResolveHierarchy(l.lng||o.language,l.fallbackLng);g.forEach(function(w){o.isValidLookup(c)||(v=w,!Ij["".concat(z[0],"-").concat(w)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(v)&&(Ij["".concat(z[0],"-").concat(w)]=!0,o.logger.warn('key "'.concat(h,'" for languages "').concat(z.join(", "),`" won't get resolved as namespace "`).concat(v,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),z.forEach(function(x){if(!o.isValidLookup(c)){u=x;var y=[M];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(y,M,x,w,l);else{var V;H&&(V=o.pluralResolver.getSuffix(x,l.count,l));var C="".concat(o.options.pluralSeparator,"zero");if(H&&(y.push(M+V),p&&y.push(M+C)),m){var L="".concat(M).concat(o.options.contextSeparator).concat(l.context);y.push(L),H&&(y.push(L+V),p&&y.push(L+C))}}for(var B;B=y.pop();)o.isValidLookup(c)||(s=B,c=o.getResource(x,w,B,l))}}))})}}),{res:c,usedKey:h,exactUsedKey:s,usedLng:u,usedNS:v}}},{key:"isValidLookup",value:function(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,o,l){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,o,l,c):this.resourceStore.getResource(r,o,l,c)}}],[{key:"hasDefaultValue",value:function(r){var o="defaultValue";for(var l in r)if(Object.prototype.hasOwnProperty.call(r,l)&&o===l.substring(0,o.length)&&r[l]!==void 0)return!0;return!1}}]),a}(go);function Xx(t){return t.charAt(0).toUpperCase()+t.slice(1)}var nB1=function(){function t(e){Jt(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=pi.create("languageUtils")}return t2(t,[{key:"getScriptPartFromCode",value:function(a){if(!a||a.indexOf("-")<0)return null;var n=a.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(a){if(!a||a.indexOf("-")<0)return a;var n=a.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(a){if(typeof a=="string"&&a.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=a.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Xx(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Xx(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Xx(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}},{key:"isSupportedCode",value:function(a){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}},{key:"getBestMatchFromCodes",value:function(a){var n=this;if(!a)return null;var r;return a.forEach(function(o){if(!r){var l=n.formatLanguageCode(o);(!n.options.supportedLngs||n.isSupportedCode(l))&&(r=l)}}),!r&&this.options.supportedLngs&&a.forEach(function(o){if(!r){var l=n.getLanguagePartFromCode(o);if(n.isSupportedCode(l))return r=l;r=n.options.supportedLngs.find(function(c){if(c.indexOf(l)===0)return c})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}},{key:"getFallbackCodes",value:function(a,n){if(!a)return[];if(typeof a=="function"&&(a=a(n)),typeof a=="string"&&(a=[a]),Object.prototype.toString.apply(a)==="[object Array]")return a;if(!n)return a.default||[];var r=a[n];return r||(r=a[this.getScriptPartFromCode(n)]),r||(r=a[this.formatLanguageCode(n)]),r||(r=a[this.getLanguagePartFromCode(n)]),r||(r=a.default),r||[]}},{key:"toResolveHierarchy",value:function(a,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],a),l=[],c=function(s){s&&(r.isSupportedCode(s)?l.push(s):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(s)))};return typeof a=="string"&&a.indexOf("-")>-1?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(a)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(a)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(a))):typeof a=="string"&&c(this.formatLanguageCode(a)),o.forEach(function(h){l.indexOf(h)<0&&c(r.formatLanguageCode(h))}),l}}]),t}(),rB1=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],iB1={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},oB1=["v1","v2","v3"],$j={zero:0,one:1,two:2,few:3,many:4,other:5};function lB1(){var t={};return rB1.forEach(function(e){e.lngs.forEach(function(a){t[a]={numbers:e.nr,plurals:iB1[e.fc]}})}),t}var cB1=function(){function t(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Jt(this,t),this.languageUtils=e,this.options=a,this.logger=pi.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=lB1()}return t2(t,[{key:"addRule",value:function(a,n){this.rules[a]=n}},{key:"getRule",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(a,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[a]||this.rules[this.languageUtils.getLanguagePartFromCode(a)]}},{key:"needsPlural",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(a,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(a,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(a,r).map(function(o){return"".concat(n).concat(o)})}},{key:"getSuffixes",value:function(a){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(a,r);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(l,c){return $j[l]-$j[c]}).map(function(l){return"".concat(n.options.prepend).concat(l)}):o.numbers.map(function(l){return n.getSuffix(a,l,r)}):[]}},{key:"getSuffix",value:function(a,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(a,r);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(a)),"")}},{key:"getSuffixRetroCompatible",value:function(a,n){var r=this,o=a.noAbs?a.plurals(n):a.plurals(Math.abs(n)),l=a.numbers[o];this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1&&(l===2?l="plural":l===1&&(l=""));var c=function(){return r.options.prepend&&l.toString()?r.options.prepend+l.toString():l.toString()};return this.options.compatibilityJSON==="v1"?l===1?"":typeof l=="number"?"_plural_".concat(l.toString()):c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1?c():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!oB1.includes(this.options.compatibilityJSON)}}]),t}();function Uj(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function ur(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};Jt(this,t),this.logger=pi.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(a){return a},this.init(e)}return t2(t,[{key:"init",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};a.interpolation||(a.interpolation={escapeValue:!0});var n=a.interpolation;this.escape=n.escape!==void 0?n.escape:YL1,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Zl(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Zl(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Zl(n.nestingPrefix):n.nestingPrefixEscaped||Zl("$t("),this.nestingSuffix=n.nestingSuffix?Zl(n.nestingSuffix):n.nestingSuffixEscaped||Zl(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var a="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(a,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(a,n,r,o){var l=this,c,h,s,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function v(H){return H.replace(/\$/g,"$$$$")}var f=function(p){if(p.indexOf(l.formatSeparator)<0){var m=Dj(n,u,p);return l.alwaysFormat?l.format(m,void 0,r,ur(ur(ur({},o),n),{},{interpolationkey:p})):m}var z=p.split(l.formatSeparator),w=z.shift().trim(),x=z.join(l.formatSeparator).trim();return l.format(Dj(n,u,w),x,r,ur(ur(ur({},o),n),{},{interpolationkey:w}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,M=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(p){return v(p)}},{regex:this.regexp,safeValue:function(p){return l.escapeValue?v(l.escape(p)):v(p)}}];return g.forEach(function(H){for(s=0;c=H.regex.exec(a);){var p=c[1].trim();if(h=f(p),h===void 0)if(typeof d=="function"){var m=d(a,c,o);h=typeof m=="string"?m:""}else if(o&&o.hasOwnProperty(p))h="";else if(M){h=c[0];continue}else l.logger.warn("missed to pass in variable ".concat(p," for interpolating ").concat(a)),h="";else typeof h!="string"&&!l.useRawValueToEscape&&(h=Pj(h));var z=H.safeValue(h);if(a=a.replace(c[0],z),M?(H.regex.lastIndex+=h.length,H.regex.lastIndex-=c[0].length):H.regex.lastIndex=0,s++,s>=l.maxReplaces)break}}),a}},{key:"nest",value:function(a,n){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,c,h=ur({},o);h.applyPostProcessor=!1,delete h.defaultValue;function s(d,M){var g=this.nestingOptionsSeparator;if(d.indexOf(g)<0)return d;var H=d.split(new RegExp("".concat(g,"[ ]*{"))),p="{".concat(H[1]);d=H[0],p=this.interpolate(p,h);var m=p.match(/'/g),z=p.match(/"/g);(m&&m.length%2===0&&!z||z.length%2!==0)&&(p=p.replace(/'/g,'"'));try{h=JSON.parse(p),M&&(h=ur(ur({},M),h))}catch(w){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),w),"".concat(d).concat(g).concat(p)}return delete h.defaultValue,d}for(;l=this.nestingRegexp.exec(a);){var u=[],v=!1;if(l[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(l[1])){var f=l[1].split(this.formatSeparator).map(function(d){return d.trim()});l[1]=f.shift(),u=f,v=!0}if(c=n(s.call(this,l[1].trim(),h),h),c&&l[0]===a&&typeof c!="string")return c;typeof c!="string"&&(c=Pj(c)),c||(this.logger.warn("missed to resolve ".concat(l[1]," for nesting ").concat(a)),c=""),v&&(c=u.reduce(function(d,M){return r.format(d,M,o.lng,ur(ur({},o),{},{interpolationkey:l[1].trim()}))},c.trim())),a=a.replace(l[0],c),this.regexp.lastIndex=0}return a}}]),t}();function Wj(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function p3(t){for(var e=1;e-1){var n=t.split("(");e=n[0].toLowerCase().trim();var r=n[1].substring(0,n[1].length-1);if(e==="currency"&&r.indexOf(":")<0)a.currency||(a.currency=r.trim());else if(e==="relativetime"&&r.indexOf(":")<0)a.range||(a.range=r.trim());else{var o=r.split(";");o.forEach(function(l){if(l){var c=l.split(":"),h=CJ(c),s=h[0],u=h.slice(1),v=u.join(":").trim().replace(/^'+|'+$/g,"");a[s.trim()]||(a[s.trim()]=v),v==="false"&&(a[s.trim()]=!1),v==="true"&&(a[s.trim()]=!0),isNaN(v)||(a[s.trim()]=parseInt(v,10))}})}}return{formatName:e,formatOptions:a}}function Ql(t){var e={};return function(n,r,o){var l=r+JSON.stringify(o),c=e[l];return c||(c=t(r,o),e[l]=c),c(n)}}var uB1=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Jt(this,t),this.logger=pi.create("formatter"),this.options=e,this.formats={number:Ql(function(a,n){var r=new Intl.NumberFormat(a,n);return function(o){return r.format(o)}}),currency:Ql(function(a,n){var r=new Intl.NumberFormat(a,p3(p3({},n),{},{style:"currency"}));return function(o){return r.format(o)}}),datetime:Ql(function(a,n){var r=new Intl.DateTimeFormat(a,p3({},n));return function(o){return r.format(o)}}),relativetime:Ql(function(a,n){var r=new Intl.RelativeTimeFormat(a,p3({},n));return function(o){return r.format(o,n.range||"day")}}),list:Ql(function(a,n){var r=new Intl.ListFormat(a,p3({},n));return function(o){return r.format(o)}})},this.init(e)}return t2(t,[{key:"init",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},r=n.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}},{key:"add",value:function(a,n){this.formats[a.toLowerCase().trim()]=n}},{key:"addCached",value:function(a,n){this.formats[a.toLowerCase().trim()]=Ql(n)}},{key:"format",value:function(a,n,r,o){var l=this,c=n.split(this.formatSeparator),h=c.reduce(function(s,u){var v=hB1(u),f=v.formatName,d=v.formatOptions;if(l.formats[f]){var M=s;try{var g=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},H=g.locale||g.lng||o.locale||o.lng||r;M=l.formats[f](s,H,p3(p3(p3({},d),o),g))}catch(p){l.logger.warn(p)}return M}else l.logger.warn("there was no format function for ".concat(f));return s},a);return h}}]),t}();function qj(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function Gj(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fB1(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var gB1=function(t){M2(a,t);var e=vB1(a);function a(n,r,o){var l,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Jt(this,a),l=e.call(this),Yz&&go.call(D1(l)),l.backend=n,l.store=r,l.services=o,l.languageUtils=o.languageUtils,l.options=c,l.logger=pi.create("backendConnector"),l.waitingReads=[],l.maxParallelReads=c.maxParallelReads||10,l.readingCalls=0,l.maxRetries=c.maxRetries>=0?c.maxRetries:5,l.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,l.state={},l.queue=[],l.backend&&l.backend.init&&l.backend.init(o,c.backend,c),l}return t2(a,[{key:"queueLoad",value:function(r,o,l,c){var h=this,s={},u={},v={},f={};return r.forEach(function(d){var M=!0;o.forEach(function(g){var H="".concat(d,"|").concat(g);!l.reload&&h.store.hasResourceBundle(d,g)?h.state[H]=2:h.state[H]<0||(h.state[H]===1?u[H]===void 0&&(u[H]=!0):(h.state[H]=1,M=!1,u[H]===void 0&&(u[H]=!0),s[H]===void 0&&(s[H]=!0),f[g]===void 0&&(f[g]=!0)))}),M||(v[d]=!0)}),(Object.keys(s).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(s),pending:Object.keys(u),toLoadLanguages:Object.keys(v),toLoadNamespaces:Object.keys(f)}}},{key:"loaded",value:function(r,o,l){var c=r.split("|"),h=c[0],s=c[1];o&&this.emit("failedLoading",h,s,o),l&&this.store.addResourceBundle(h,s,l),this.state[r]=o?-1:2;var u={};this.queue.forEach(function(v){GL1(v.loaded,[h],s),fB1(v,r),o&&v.errors.push(o),v.pendingCount===0&&!v.done&&(Object.keys(v.loaded).forEach(function(f){u[f]||(u[f]={});var d=v.loaded[f];d.length&&d.forEach(function(M){u[f][M]===void 0&&(u[f][M]=!0)})}),v.done=!0,v.errors.length?v.callback(v.errors):v.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(v){return!v.done})}},{key:"read",value:function(r,o,l){var c=this,h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,u=arguments.length>5?arguments[5]:void 0;if(!r.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:o,fcName:l,tried:h,wait:s,callback:u});return}return this.readingCalls++,this.backend[l](r,o,function(v,f){if(c.readingCalls--,c.waitingReads.length>0){var d=c.waitingReads.shift();c.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(v&&f&&h2&&arguments[2]!==void 0?arguments[2]:{},h=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),h&&h();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof o=="string"&&(o=[o]);var s=this.queueLoad(r,o,c,h);if(!s.toLoad.length)return s.pending.length||h(),null;s.toLoad.forEach(function(u){l.loadOne(u)})}},{key:"load",value:function(r,o,l){this.prepareLoading(r,o,{},l)}},{key:"reload",value:function(r,o,l){this.prepareLoading(r,o,{reload:!0},l)}},{key:"loadOne",value:function(r){var o=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",c=r.split("|"),h=c[0],s=c[1];this.read(h,s,"read",void 0,void 0,function(u,v){u&&o.logger.warn("".concat(l,"loading namespace ").concat(s," for language ").concat(h," failed"),u),!u&&v&&o.logger.log("".concat(l,"loaded namespace ").concat(s," for language ").concat(h),v),o.loaded(r,u,v)})}},{key:"saveMissing",value:function(r,o,l,c,h){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(l,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}l==null||l===""||(this.backend&&this.backend.create&&this.backend.create(r,o,l,c,null,Gj(Gj({},s),{},{isUpdate:h})),!(!r||!r[0])&&this.store.addResource(r[0],o,l,c))}}]),a}(go);function pB1(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var a={};if(C2(e[1])==="object"&&(a=e[1]),typeof e[1]=="string"&&(a.defaultValue=e[1]),typeof e[2]=="string"&&(a.tDescription=e[2]),C2(e[2])==="object"||C2(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach(function(r){a[r]=n[r]})}return a},interpolation:{escapeValue:!0,format:function(e,a,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Kj(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Yj(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function Zr(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Od(){}function MB1(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(a){typeof t[a]=="function"&&(t[a]=t[a].bind(t))})}var np=function(t){M2(a,t);var e=mB1(a);function a(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Jt(this,a),n=e.call(this),Yz&&go.call(D1(n)),n.options=Kj(r),n.services={},n.logger=pi,n.modules={external:[]},MB1(D1(n)),o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),Rc(n,D1(n));setTimeout(function(){n.init(r,o)},0)}return n}return t2(a,[{key:"init",value:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(l=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var c=pB1();this.options=Zr(Zr(Zr({},c),this.options),Kj(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Zr(Zr({},c.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function h(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?pi.init(h(this.modules.logger),this.options):pi.init(null,this.options);var s;this.modules.formatter?s=this.modules.formatter:typeof Intl<"u"&&(s=uB1);var u=new nB1(this.options);this.store=new tB1(this.options.resources,this.options);var v=this.services;v.logger=pi,v.resourceStore=this.store,v.languageUtils=u,v.pluralResolver=new cB1(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(v.formatter=h(s),v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new sB1(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new gB1(h(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",function(p){for(var m=arguments.length,z=new Array(m>1?m-1:0),w=1;w1?m-1:0),w=1;w0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var d=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];d.forEach(function(p){r[p]=function(){var m;return(m=r.store)[p].apply(m,arguments)}});var M=["addResource","addResources","addResourceBundle","removeResourceBundle"];M.forEach(function(p){r[p]=function(){var m;return(m=r.store)[p].apply(m,arguments),r}});var g=t7(),H=function(){var m=function(w,x){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),g.resolve(x),l(w,x)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return m(null,r.t.bind(r));r.changeLanguage(r.options.lng,m)};return this.options.resources||!this.options.initImmediate?H():setTimeout(H,0),g}},{key:"loadResources",value:function(r){var o=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Od,c=l,h=typeof r=="string"?r:this.language;if(typeof r=="function"&&(c=r),!this.options.resources||this.options.partialBundledLanguages){if(h&&h.toLowerCase()==="cimode")return c();var s=[],u=function(d){if(d){var M=o.services.languageUtils.toResolveHierarchy(d);M.forEach(function(g){s.indexOf(g)<0&&s.push(g)})}};if(h)u(h);else{var v=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);v.forEach(function(f){return u(f)})}this.options.preload&&this.options.preload.forEach(function(f){return u(f)}),this.services.backendConnector.load(s,this.options.ns,function(f){!f&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),c(f)})}else c(null)}},{key:"reloadResources",value:function(r,o,l){var c=t7();return r||(r=this.languages),o||(o=this.options.ns),l||(l=Od),this.services.backendConnector.reload(r,o,function(h){c.resolve(),l(h)}),c}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&BJ.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"setResolvedLanguage",value:function(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1))for(var o=0;o-1)&&this.store.hasLanguageSomeTranslations(l)){this.resolvedLanguage=l;break}}}},{key:"changeLanguage",value:function(r,o){var l=this;this.isLanguageChangingTo=r;var c=t7();this.emit("languageChanging",r);var h=function(f){l.language=f,l.languages=l.services.languageUtils.toResolveHierarchy(f),l.resolvedLanguage=void 0,l.setResolvedLanguage(f)},s=function(f,d){d?(h(d),l.translator.changeLanguage(d),l.isLanguageChangingTo=void 0,l.emit("languageChanged",d),l.logger.log("languageChanged",d)):l.isLanguageChangingTo=void 0,c.resolve(function(){return l.t.apply(l,arguments)}),o&&o(f,function(){return l.t.apply(l,arguments)})},u=function(f){!r&&!f&&l.services.languageDetector&&(f=[]);var d=typeof f=="string"?f:l.services.languageUtils.getBestMatchFromCodes(f);d&&(l.language||h(d),l.translator.language||l.translator.changeLanguage(d),l.services.languageDetector&&l.services.languageDetector.cacheUserLanguage(d)),l.loadResources(d,function(M){s(M,d)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(u):u(r),c}},{key:"getFixedT",value:function(r,o,l){var c=this,h=function s(u,v){var f;if(C2(v)!=="object"){for(var d=arguments.length,M=new Array(d>2?d-2:0),g=2;g1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var c=this.resolvedLanguage||this.languages[0],h=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;var u=function(d,M){var g=o.services.backendConnector.state["".concat(d,"|").concat(M)];return g===-1||g===2};if(l.precheck){var v=l.precheck(this,u);if(v!==void 0)return v}return!!(this.hasResourceBundle(c,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(c,r)&&(!h||u(s,r)))}},{key:"loadNamespaces",value:function(r,o){var l=this,c=t7();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(h){l.options.ns.indexOf(h)<0&&l.options.ns.push(h)}),this.loadResources(function(h){c.resolve(),o&&o(h)}),c):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(r,o){var l=t7();typeof r=="string"&&(r=[r]);var c=this.options.preload||[],h=r.filter(function(s){return c.indexOf(s)<0});return h.length?(this.options.preload=c.concat(h),this.loadResources(function(s){l.resolve(),o&&o(s)}),l):(o&&o(),Promise.resolve())}},{key:"dir",value:function(r){if(r||(r=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!r)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return o.indexOf(this.services.languageUtils.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Od,c=Zr(Zr(Zr({},this.options),o),{isClone:!0}),h=new a(c);(o.debug!==void 0||o.prefix!==void 0)&&(h.logger=h.logger.clone(o));var s=["store","services","language"];return s.forEach(function(u){h[u]=r[u]}),h.services=Zr({},this.services),h.services.utils={hasLoadedNamespace:h.hasLoadedNamespace.bind(h)},h.translator=new Fj(h.services,h.options),h.translator.on("*",function(u){for(var v=arguments.length,f=new Array(v>1?v-1:0),d=1;d0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new np(t,e)});var ta=np.createInstance();ta.createInstance=np.createInstance;var HB1=ta.createInstance,wB1=ta.init,yB1=ta.loadResources,xB1=ta.reloadResources,VB1=ta.use,CB1=ta.changeLanguage,bB1=ta.getFixedT,LB1=ta.t,BB1=ta.exists,_B1=ta.setDefaultNamespace,SB1=ta.hasLoadedNamespace,TB1=ta.loadNamespaces,OB1=ta.loadLanguages;const AB1=Object.freeze(Object.defineProperty({__proto__:null,changeLanguage:CB1,createInstance:HB1,default:ta,exists:BB1,getFixedT:bB1,hasLoadedNamespace:SB1,init:wB1,loadLanguages:OB1,loadNamespaces:TB1,loadResources:yB1,reloadResources:xB1,setDefaultNamespace:_B1,t:LB1,use:VB1},Symbol.toStringTag,{value:"Module"})),t9=se(AB1);(function(t){var e=b&&b.__makeTemplateObject||function(V,C){return Object.defineProperty?Object.defineProperty(V,"raw",{value:C}):V.raw=C,V},a=b&&b.__assign||function(){return a=Object.assign||function(V){for(var C,L=1,B=arguments.length;L"u"?z:C.placeholder,value:""},isOpen:!1},L.dropdownRef=(0,e.createRef)(),L.mounted=!0,L.handleDocumentClick=L.handleDocumentClick.bind(H(L)),L.fireChangeEvent=L.fireChangeEvent.bind(H(L)),L}return d(V,[{key:"componentDidUpdate",value:function(L){if(this.props.value!==L.value)if(this.props.value){var B=this.parseValue(this.props.value,this.props.options);B!==this.state.selected&&this.setState({selected:B})}else this.setState({selected:{label:typeof this.props.placeholder>"u"?z:this.props.placeholder,value:""}})}},{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,!1)}},{key:"componentWillUnmount",value:function(){this.mounted=!1,document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,!1)}},{key:"handleMouseDown",value:function(L){this.props.onFocus&&typeof this.props.onFocus=="function"&&this.props.onFocus(this.state.isOpen),!(L.type==="mousedown"&&L.button!==0)&&(L.stopPropagation(),L.preventDefault(),this.props.disabled||this.setState({isOpen:!this.state.isOpen}))}},{key:"parseValue",value:function(L,B){var S;if(typeof L=="string")for(var T=0,E=B.length;T"u"&&(S=L.label||L);var T=L.label||L.value||L,E=S===this.state.selected.value||S===this.state.selected,$=(B={},u(B,"".concat(this.props.baseClassName,"-option"),!0),u(B,L.className,!!L.className),u(B,"is-selected",E),B),U=(0,a.default)($),W=Object.keys(L.data||{}).reduce(function(Y,F){return s({},Y,u({},"data-".concat(F),L.data[F]))},{});return e.default.createElement("div",c({key:S,className:U,onMouseDown:this.setValue.bind(this,S,T),onClick:this.setValue.bind(this,S,T),role:"option","aria-selected":E?"true":"false"},W),T)}},{key:"buildMenu",value:function(){var L=this,B=this.props,S=B.options,T=B.baseClassName,E=S.map(function($){if($.type==="group"){var U=e.default.createElement("div",{className:"".concat(T,"-title")},$.name),W=$.items.map(function(Y){return L.renderOption(Y)});return e.default.createElement("div",{className:"".concat(T,"-group"),key:$.name,role:"listbox",tabIndex:"-1"},U,W)}else return L.renderOption($)});return E.length?E:e.default.createElement("div",{className:"".concat(T,"-noresults")},"No options found")}},{key:"handleDocumentClick",value:function(L){this.mounted&&(this.dropdownRef.current.contains(L.target)||this.state.isOpen&&this.setState({isOpen:!1}))}},{key:"isValueSelected",value:function(){return typeof this.state.selected=="string"||this.state.selected.value!==""}},{key:"render",value:function(){var L,B,S,T,E,$=this.props,U=$.baseClassName,W=$.controlClassName,Y=$.placeholderClassName,F=$.menuClassName,t1=$.arrowClassName,R=$.arrowClosed,i1=$.arrowOpen,J=$.className,A=this.props.disabled?"Dropdown-disabled":"",o1=typeof this.state.selected=="string"?this.state.selected:this.state.selected.label,h1=(0,a.default)((L={},u(L,"".concat(U,"-root"),!0),u(L,J,!!J),u(L,"is-open",this.state.isOpen),L)),a1=(0,a.default)((B={},u(B,"".concat(U,"-control"),!0),u(B,W,!!W),u(B,A,!!A),B)),M1=(0,a.default)((S={},u(S,"".concat(U,"-placeholder"),!0),u(S,Y,!!Y),u(S,"is-selected",this.isValueSelected()),S)),s1=(0,a.default)((T={},u(T,"".concat(U,"-menu"),!0),u(T,F,!!F),T)),z1=(0,a.default)((E={},u(E,"".concat(U,"-arrow"),!0),u(E,t1,!!t1),E)),m1=e.default.createElement("div",{className:M1},o1),S1=this.state.isOpen?e.default.createElement("div",{className:s1,"aria-expanded":"true"},this.buildMenu()):null;return e.default.createElement("div",{ref:this.dropdownRef,className:h1},e.default.createElement("div",{className:a1,onMouseDown:this.handleMouseDown.bind(this),onTouchEnd:this.handleMouseDown.bind(this),"aria-haspopup":"listbox"},m1,e.default.createElement("div",{className:"".concat(U,"-arrow-wrapper")},i1&&R?this.state.isOpen?i1:R:e.default.createElement("span",{className:z1}))),S1)}}]),V}(e.Component);w.defaultProps={baseClassName:"Dropdown"};var x=w;t.default=x})(OJ);var e_1=b&&b.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},C6=b&&b.__assign||function(){return C6=Object.assign||function(t){for(var e,a=1,n=arguments.length;a"u"?z:C.placeholder,value:""},isOpen:!1},L.dropdownRef=(0,e.createRef)(),L.mounted=!0,L.handleDocumentClick=L.handleDocumentClick.bind(H(L)),L.fireChangeEvent=L.fireChangeEvent.bind(H(L)),L}return d(V,[{key:"componentDidUpdate",value:function(L){if(this.props.value!==L.value)if(this.props.value){var B=this.parseValue(this.props.value,this.props.options);B!==this.state.selected&&this.setState({selected:B})}else this.setState({selected:{label:typeof this.props.placeholder>"u"?z:this.props.placeholder,value:""}})}},{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,!1)}},{key:"componentWillUnmount",value:function(){this.mounted=!1,document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,!1)}},{key:"handleMouseDown",value:function(L){this.props.onFocus&&typeof this.props.onFocus=="function"&&this.props.onFocus(this.state.isOpen),!(L.type==="mousedown"&&L.button!==0)&&(L.stopPropagation(),L.preventDefault(),this.props.disabled||this.setState({isOpen:!this.state.isOpen}))}},{key:"parseValue",value:function(L,B){var S;if(typeof L=="string")for(var T=0,E=B.length;T"u"&&(S=L.label||L);var T=L.label||L.value||L,E=S===this.state.selected.value||S===this.state.selected,$=(B={},u(B,"".concat(this.props.baseClassName,"-option"),!0),u(B,L.className,!!L.className),u(B,"is-selected",E),B),q=(0,a.default)($),U=Object.keys(L.data||{}).reduce(function(Y,F){return s({},Y,u({},"data-".concat(F),L.data[F]))},{});return e.default.createElement("div",c({key:S,className:q,onMouseDown:this.setValue.bind(this,S,T),onClick:this.setValue.bind(this,S,T),role:"option","aria-selected":E?"true":"false"},U),T)}},{key:"buildMenu",value:function(){var L=this,B=this.props,S=B.options,T=B.baseClassName,E=S.map(function($){if($.type==="group"){var q=e.default.createElement("div",{className:"".concat(T,"-title")},$.name),U=$.items.map(function(Y){return L.renderOption(Y)});return e.default.createElement("div",{className:"".concat(T,"-group"),key:$.name,role:"listbox",tabIndex:"-1"},q,U)}else return L.renderOption($)});return E.length?E:e.default.createElement("div",{className:"".concat(T,"-noresults")},"No options found")}},{key:"handleDocumentClick",value:function(L){this.mounted&&(this.dropdownRef.current.contains(L.target)||this.state.isOpen&&this.setState({isOpen:!1}))}},{key:"isValueSelected",value:function(){return typeof this.state.selected=="string"||this.state.selected.value!==""}},{key:"render",value:function(){var L,B,S,T,E,$=this.props,q=$.baseClassName,U=$.controlClassName,Y=$.placeholderClassName,F=$.menuClassName,X=$.arrowClassName,R=$.arrowClosed,i1=$.arrowOpen,t1=$.className,A=this.props.disabled?"Dropdown-disabled":"",o1=typeof this.state.selected=="string"?this.state.selected:this.state.selected.label,h1=(0,a.default)((L={},u(L,"".concat(q,"-root"),!0),u(L,t1,!!t1),u(L,"is-open",this.state.isOpen),L)),a1=(0,a.default)((B={},u(B,"".concat(q,"-control"),!0),u(B,U,!!U),u(B,A,!!A),B)),M1=(0,a.default)((S={},u(S,"".concat(q,"-placeholder"),!0),u(S,Y,!!Y),u(S,"is-selected",this.isValueSelected()),S)),s1=(0,a.default)((T={},u(T,"".concat(q,"-menu"),!0),u(T,F,!!F),T)),z1=(0,a.default)((E={},u(E,"".concat(q,"-arrow"),!0),u(E,X,!!X),E)),m1=e.default.createElement("div",{className:M1},o1),S1=this.state.isOpen?e.default.createElement("div",{className:s1,"aria-expanded":"true"},this.buildMenu()):null;return e.default.createElement("div",{ref:this.dropdownRef,className:h1},e.default.createElement("div",{className:a1,onMouseDown:this.handleMouseDown.bind(this),onTouchEnd:this.handleMouseDown.bind(this),"aria-haspopup":"listbox"},m1,e.default.createElement("div",{className:"".concat(q,"-arrow-wrapper")},i1&&R?this.state.isOpen?i1:R:e.default.createElement("span",{className:z1}))),S1)}}]),V}(e.Component);w.defaultProps={baseClassName:"Dropdown"};var x=w;t.default=x})(OJ);var a_1=b&&b.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},C6=b&&b.__assign||function(){return C6=Object.assign||function(t){for(var e,a=1,n=arguments.length;a=1.85},[h]);return(0,Xl.jsx)(c_1,C6({placement:n,style:r,className:"wellms-component ".concat(l),lightContrast:s,backgroundColor:h},{children:(0,Xl.jsx)(i_1.default,C6({},t,{menuClassName:"menu",controlClassName:"control",arrowOpen:(0,Xl.jsx)("svg",C6({className:"arrows",width:"14",height:"8",viewBox:"0 0 14 8",xmlns:"http://www.w3.org/2000/svg"},{children:(0,Xl.jsx)("path",{d:"M6.29289 0.292893C6.68342 -0.0976311 7.31658 -0.0976311 7.70711 0.292893L13.7071 6.29289C14.0976 6.68342 14.0976 7.31658 13.7071 7.70711C13.3166 8.09763 12.6834 8.09763 12.2929 7.70711L7 2.41421L1.70711 7.70711C1.31658 8.09763 0.683417 8.09763 0.292893 7.70711C-0.0976311 7.31658 -0.0976311 6.68342 0.292893 6.29289L6.29289 0.292893Z",fill:"currentColor"})})),arrowClosed:(0,Xl.jsx)("svg",C6({className:"arrows",width:"14",height:"8",viewBox:"0 0 14 8",xmlns:"http://www.w3.org/2000/svg"},{children:(0,Xl.jsx)("path",{d:"M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L7 5.58579L12.2929 0.292893C12.6834 -0.0976311 13.3166 -0.0976311 13.7071 0.292893C14.0976 0.683418 14.0976 1.31658 13.7071 1.70711L7.70711 7.70711C7.31658 8.09763 6.68342 8.09763 6.29289 7.70711L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683418 0.292893 0.292893Z",fill:"currentColor"})}))}))}))};Jz.Dropdown=s_1;var nI,eV={},rI;function h_1(){return rI||(rI=1,function(t){var e=b&&b.__makeTemplateObject||function(g,H){return Object.defineProperty?Object.defineProperty(g,"raw",{value:H}):g.raw=H,g},a=b&&b.__assign||function(){return a=Object.assign||function(g){for(var H,p=1,m=arguments.length;p=1.85},[h]);return(0,Xl.jsx)(s_1,C6({placement:n,style:r,className:"wellms-component ".concat(l),lightContrast:s,backgroundColor:h},{children:(0,Xl.jsx)(o_1.default,C6({},t,{menuClassName:"menu",controlClassName:"control",arrowOpen:(0,Xl.jsx)("svg",C6({className:"arrows",width:"14",height:"8",viewBox:"0 0 14 8",xmlns:"http://www.w3.org/2000/svg"},{children:(0,Xl.jsx)("path",{d:"M6.29289 0.292893C6.68342 -0.0976311 7.31658 -0.0976311 7.70711 0.292893L13.7071 6.29289C14.0976 6.68342 14.0976 7.31658 13.7071 7.70711C13.3166 8.09763 12.6834 8.09763 12.2929 7.70711L7 2.41421L1.70711 7.70711C1.31658 8.09763 0.683417 8.09763 0.292893 7.70711C-0.0976311 7.31658 -0.0976311 6.68342 0.292893 6.29289L6.29289 0.292893Z",fill:"currentColor"})})),arrowClosed:(0,Xl.jsx)("svg",C6({className:"arrows",width:"14",height:"8",viewBox:"0 0 14 8",xmlns:"http://www.w3.org/2000/svg"},{children:(0,Xl.jsx)("path",{d:"M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L7 5.58579L12.2929 0.292893C12.6834 -0.0976311 13.3166 -0.0976311 13.7071 0.292893C14.0976 0.683418 14.0976 1.31658 13.7071 1.70711L7.70711 7.70711C7.31658 8.09763 6.68342 8.09763 6.29289 7.70711L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683418 0.292893 0.292893Z",fill:"currentColor"})}))}))}))};Jz.Dropdown=h_1;var nI,eV={},rI;function u_1(){return rI||(rI=1,function(t){var e=b&&b.__makeTemplateObject||function(g,H){return Object.defineProperty?Object.defineProperty(g,"raw",{value:H}):g.raw=H,g},a=b&&b.__assign||function(){return a=Object.assign||function(g){for(var H,p=1,m=arguments.length;p0&&(0,c.jsx)("i",{children:R})]})),Y&&(0,c.jsx)(m,a({className:"wellms-component"},{children:(0,c.jsxs)("div",{children:[(0,c.jsxs)(z,a({className:"wellms-component"},{children:[(0,c.jsx)(d.Title,a({level:4,noMargin:!0},{children:J("Notifications.Notifications")})),T&&(0,c.jsxs)(d.Link,a({href:T},{children:[J("Notifications.ShowAll"),(0,c.jsx)("svg",a({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.57261 9.77578C5.3383 10.0101 5.3383 10.39 5.57261 10.6243C5.80692 10.8586 6.18682 10.8586 6.42114 10.6243L10.6211 6.42431C10.8555 6.19 10.8555 5.8101 10.6211 5.57579L6.42114 1.37579C6.18682 1.14147 5.80693 1.14147 5.57261 1.37579C5.3383 1.6101 5.3383 1.99 5.57261 2.22431L8.74834 5.40005L1.79688 5.40005C1.46551 5.40005 1.19688 5.66867 1.19688 6.00004C1.19688 6.33142 1.46551 6.60004 1.79688 6.60004L8.74835 6.60005L5.57261 9.77578Z",fill:"black"})}))]}))]})),S.length?(0,c.jsx)("ul",{children:S.map(function(o1){return(0,c.jsx)("li",{children:(0,c.jsx)(v.default,{notification:o1,onClick:function(){return A()},maxLengthDesc:120,modularView:!0})},o1.id)})}):(0,c.jsxs)(d.Text,{children:[" ",J("Notifications.Empty")]})]})}))]}))};t.Notifications=w,t.default=(0,u.withTheme)((0,u.default)(t.Notifications)(L||(L=e([""],[""]))));var x,y,V,C,L}(nV)),nV}var PJ={};(function(t){var e=b&&b.__makeTemplateObject||function(x,y){return Object.defineProperty?Object.defineProperty(x,"raw",{value:y}):x.raw=y,x},a=b&&b.__assign||function(){return a=Object.assign||function(x){for(var y,V=1,C=arguments.length;V0&&(0,c.jsx)("i",{children:R})]})),Y&&(0,c.jsx)(m,a({className:"wellms-component"},{children:(0,c.jsxs)("div",{children:[(0,c.jsxs)(z,a({className:"wellms-component"},{children:[(0,c.jsx)(d.Title,a({level:4,noMargin:!0},{children:t1("Notifications.Notifications")})),T&&(0,c.jsxs)(d.Link,a({href:T},{children:[t1("Notifications.ShowAll"),(0,c.jsx)("svg",a({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.57261 9.77578C5.3383 10.0101 5.3383 10.39 5.57261 10.6243C5.80692 10.8586 6.18682 10.8586 6.42114 10.6243L10.6211 6.42431C10.8555 6.19 10.8555 5.8101 10.6211 5.57579L6.42114 1.37579C6.18682 1.14147 5.80693 1.14147 5.57261 1.37579C5.3383 1.6101 5.3383 1.99 5.57261 2.22431L8.74834 5.40005L1.79688 5.40005C1.46551 5.40005 1.19688 5.66867 1.19688 6.00004C1.19688 6.33142 1.46551 6.60004 1.79688 6.60004L8.74835 6.60005L5.57261 9.77578Z",fill:"black"})}))]}))]})),S.length?(0,c.jsx)("ul",{children:S.map(function(o1){return(0,c.jsx)("li",{children:(0,c.jsx)(v.default,{notification:o1,onClick:function(){return A()},maxLengthDesc:120,modularView:!0})},o1.id)})}):(0,c.jsxs)(d.Text,{children:[" ",t1("Notifications.Empty")]})]})}))]}))};t.Notifications=w,t.default=(0,u.withTheme)((0,u.default)(t.Notifications)(L||(L=e([""],[""]))));var x,y,V,C,L}(nV)),nV}var PJ={};(function(t){var e=b&&b.__makeTemplateObject||function(x,y){return Object.defineProperty?Object.defineProperty(x,"raw",{value:y}):x.raw=y,x},a=b&&b.__assign||function(){return a=Object.assign||function(x){for(var y,V=1,C=arguments.length;V=1.85},[W.primaryColor]);return(0,l.jsx)(g,a({className:"wellms-component ".concat(U),mobile:E,lightContrast:Y},{children:(0,l.jsxs)(s.Row,a({align:"center"},{children:[(0,l.jsxs)(s.Col,a({xs:12,md:E?12:7,style:{display:"flex",alignItems:E?"center":"flex-start",marginBottom:E?"22px":"0"}},{children:[(0,l.jsx)("div",a({className:"quiz-cta-icon"},{children:(0,l.jsx)(H,{})})),(0,l.jsxs)("div",{children:[(0,l.jsx)(u.Title,a({as:"h3",level:E?4:3,style:{marginBottom:E?"0":"18px"}},{children:y})),(0,l.jsx)("div",a({className:"quiz-cta-children"},{children:V&&!E&&(0,l.jsx)(c.Fragment,{children:V})}))]})]})),(0,l.jsxs)(s.Col,a({xs:12,md:E?12:5},{children:[(0,l.jsx)("div",a({className:"quiz-cta-children"},{children:V&&E&&(0,l.jsx)(c.Fragment,{children:V})})),(0,l.jsxs)("div",a({className:"quiz-cta-btn-group"},{children:[(0,l.jsx)(f.Button,a({mode:"white",onClick:L},{children:C})),B&&S&&(0,l.jsx)(v.Link,a({href:"http://onet.pl",target:"_blank",underline:!0,onClick:S},{children:B}))]}))]}))]}))}))};t.QuizCta=p;var m=(0,h.default)(t.QuizCta)(w||(w=e([""],[""])));t.default=(0,h.withTheme)(m);var z,w})(PJ);var aM={},S_1=b&&b.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},_3=b&&b.__assign||function(){return _3=Object.assign||function(t){for(var e,a=1,n=arguments.length;a=1.85},[U.primaryColor]);return(0,l.jsx)(g,a({className:"wellms-component ".concat(q),mobile:E,lightContrast:Y},{children:(0,l.jsxs)(s.Row,a({align:"center"},{children:[(0,l.jsxs)(s.Col,a({xs:12,md:E?12:7,style:{display:"flex",alignItems:E?"center":"flex-start",marginBottom:E?"22px":"0"}},{children:[(0,l.jsx)("div",a({className:"quiz-cta-icon"},{children:(0,l.jsx)(H,{})})),(0,l.jsxs)("div",{children:[(0,l.jsx)(u.Title,a({as:"h3",level:E?4:3,style:{marginBottom:E?"0":"18px"}},{children:y})),(0,l.jsx)("div",a({className:"quiz-cta-children"},{children:V&&!E&&(0,l.jsx)(c.Fragment,{children:V})}))]})]})),(0,l.jsxs)(s.Col,a({xs:12,md:E?12:5},{children:[(0,l.jsx)("div",a({className:"quiz-cta-children"},{children:V&&E&&(0,l.jsx)(c.Fragment,{children:V})})),(0,l.jsxs)("div",a({className:"quiz-cta-btn-group"},{children:[(0,l.jsx)(f.Button,a({mode:"white",onClick:L},{children:C})),B&&S&&(0,l.jsx)(v.Link,a({href:"http://onet.pl",target:"_blank",underline:!0,onClick:S},{children:B}))]}))]}))]}))}))};t.QuizCta=p;var m=(0,h.default)(t.QuizCta)(w||(w=e([""],[""])));t.default=(0,h.withTheme)(m);var z,w})(PJ);var aM={},T_1=b&&b.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},_3=b&&b.__assign||function(){return _3=Object.assign||function(t){for(var e,a=1,n=arguments.length;a0&&(0,l.jsx)("div",a({className:"subcategories"},{children:(0,l.jsx)(p,{checkedCategories:B,categories:E.subcategories,onChange:S})}))]},E.id)})})},m=function(C){var L=C.child,B=C.categories,S=C.checkedCategories,T=C.isInitiallyOpen,E=C.onClick,$=C.onChange,U=C.onClear,W=C.forMobile,Y=(0,c.useRef)(null),F=(0,c.useState)(T),t1=F[0],R=F[1],i1=function(){return R(!1)};(0,u.useOnClickOutside)(Y,function(){return i1()});var J=(0,c.useCallback)(function(o1){$==null||$(o1)},[$]),A=function(){U==null||U(),i1()};return(0,l.jsxs)(d,a({onClick:E,$forMobile:W},{children:[!!L&&(0,c.cloneElement)(L,{onClick:function(){return R(function(o1){return!o1})},$isMenuOpen:t1}),(0,l.jsx)(h.CSSTransition,a({in:t1,timeout:300,nodeRef:Y,classNames:"fade",unmountOnExit:!0},{children:(0,l.jsxs)(M,a({ref:Y,$forMobile:W},{children:[(0,l.jsxs)(H,{children:[(0,l.jsx)(f.Text,a({size:"16"},{children:"Wybierz"})),(0,l.jsx)("button",a({onClick:A},{children:(0,l.jsx)(f.Text,a({size:"13"},{children:"Wyczyść"}))}))]}),(0,l.jsx)(p,{checkedCategories:S,categories:B,onChange:J})]}))}))]}))};t.DropdownCategories=m,t.default=(0,s.withTheme)((0,s.default)(t.DropdownCategories)(V||(V=e([""],[""]))));var z,w,x,y,V}(cV)),cV}var n7={},yI;function OS1(){if(yI)return n7;yI=1;var t=b&&b.__makeTemplateObject||function(w,x){return Object.defineProperty?Object.defineProperty(w,"raw",{value:x}):w.raw=x,w},e=b&&b.__assign||function(){return e=Object.assign||function(w){for(var x,y=1,V=arguments.length;y0&&(0,l.jsx)("div",a({className:"subcategories"},{children:(0,l.jsx)(p,{checkedCategories:B,categories:E.subcategories,onChange:S})}))]},E.id)})})},m=function(C){var L=C.child,B=C.categories,S=C.checkedCategories,T=C.isInitiallyOpen,E=C.onClick,$=C.onChange,q=C.onClear,U=C.forMobile,Y=(0,c.useRef)(null),F=(0,c.useState)(T),X=F[0],R=F[1],i1=function(){return R(!1)};(0,u.useOnClickOutside)(Y,function(){return i1()});var t1=(0,c.useCallback)(function(o1){$==null||$(o1)},[$]),A=function(){q==null||q(),i1()};return(0,l.jsxs)(d,a({onClick:E,$forMobile:U},{children:[!!L&&(0,c.cloneElement)(L,{onClick:function(){return R(function(o1){return!o1})},$isMenuOpen:X}),(0,l.jsx)(h.CSSTransition,a({in:X,timeout:300,nodeRef:Y,classNames:"fade",unmountOnExit:!0},{children:(0,l.jsxs)(M,a({ref:Y,$forMobile:U},{children:[(0,l.jsxs)(H,{children:[(0,l.jsx)(f.Text,a({size:"16"},{children:"Wybierz"})),(0,l.jsx)("button",a({onClick:A},{children:(0,l.jsx)(f.Text,a({size:"13"},{children:"Wyczyść"}))}))]}),(0,l.jsx)(p,{checkedCategories:S,categories:B,onChange:t1})]}))}))]}))};t.DropdownCategories=m,t.default=(0,s.withTheme)((0,s.default)(t.DropdownCategories)(V||(V=e([""],[""]))));var z,w,x,y,V}(cV)),cV}var n7={},yI;function AS1(){if(yI)return n7;yI=1;var t=b&&b.__makeTemplateObject||function(w,x){return Object.defineProperty?Object.defineProperty(w,"raw",{value:x}):w.raw=x,w},e=b&&b.__assign||function(){return e=Object.assign||function(w){for(var x,y=1,V=arguments.length;y=l?o:(a.setFullYear(o.getFullYear(),o.getMonth(),r),a)}function M8(t,e){if(g1(2,arguments),!e||C2(e)!=="object")return new Date(NaN);var a=e.years?Lt(e.years):0,n=e.months?Lt(e.months):0,r=e.weeks?Lt(e.weeks):0,o=e.days?Lt(e.days):0,l=e.hours?Lt(e.hours):0,c=e.minutes?Lt(e.minutes):0,h=e.seconds?Lt(e.seconds):0,s=A1(t),u=n||a?Yh(s,n+a*12):s,v=o||r?Ci(u,o+r*7):u,f=c+l*60,d=h+f*60,M=d*1e3,g=new Date(v.getTime()+M);return g}function R6(t){g1(1,arguments);var e=A1(t),a=e.getDay();return a===0||a===6}function bT(t){return g1(1,arguments),A1(t).getDay()===0}function QJ(t){return g1(1,arguments),A1(t).getDay()===6}function XJ(t,e){g1(2,arguments);var a=A1(t),n=R6(a),r=Lt(e);if(isNaN(r))return new Date(NaN);var o=a.getHours(),l=r<0?-1:1,c=Lt(r/5);a.setDate(a.getDate()+c*7);for(var h=Math.abs(r%5);h>0;)a.setDate(a.getDate()+l),R6(a)||(h-=1);return n&&R6(a)&&r!==0&&(QJ(a)&&a.setDate(a.getDate()+(l<0?2:-1)),bT(a)&&a.setDate(a.getDate()+(l<0?1:-2))),a.setHours(o),a}var ZS1=36e5;function LT(t,e){g1(2,arguments);var a=Lt(e);return Th(t,a*ZS1)}function Zn(t,e){var a,n,r,o,l,c,h,s;g1(1,arguments);var u=Ze(),v=Lt((a=(n=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&n!==void 0?n:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=A1(t),d=f.getDay(),M=(d=r.getTime()?a+1:e.getTime()>=l.getTime()?a:a-1}function po(t){g1(1,arguments);var e=tl(t),a=new Date(0);a.setFullYear(e,0,4),a.setHours(0,0,0,0);var n=_5(a);return n}var QS1=864e5;function yi(t,e){g1(2,arguments);var a=gc(t),n=gc(e),r=a.getTime()-za(a),o=n.getTime()-za(n);return Math.round((r-o)/QS1)}function JJ(t,e){g1(2,arguments);var a=A1(t),n=Lt(e),r=yi(a,po(a)),o=new Date(0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),a=po(o),a.setDate(a.getDate()+r),a}function t11(t,e){g1(2,arguments);var a=Lt(e);return JJ(t,tl(t)+a)}var XS1=6e4;function BT(t,e){g1(2,arguments);var a=Lt(e);return Th(t,a*XS1)}function _T(t,e){g1(2,arguments);var a=Lt(e),n=a*3;return Yh(t,n)}function e11(t,e){g1(2,arguments);var a=Lt(e);return Th(t,a*1e3)}function oM(t,e){g1(2,arguments);var a=Lt(e),n=a*7;return Ci(t,n)}function a11(t,e){g1(2,arguments);var a=Lt(e);return Yh(t,a*12)}function JS1(t,e,a){g1(2,arguments);var n=A1(t==null?void 0:t.start).getTime(),r=A1(t==null?void 0:t.end).getTime(),o=A1(e==null?void 0:e.start).getTime(),l=A1(e==null?void 0:e.end).getTime();if(!(n<=r&&o<=l))throw new RangeError("Invalid interval");return a!=null&&a.inclusive?n<=l&&o<=r:nr||isNaN(r.getDate()))&&(a=r)}),a||new Date(NaN)}function tT1(t,e){var a=e.start,n=e.end;return g1(2,arguments),r11([n11([t,a]),n])}function eT1(t,e){g1(2,arguments);var a=A1(t);if(isNaN(Number(a)))return NaN;var n=a.getTime(),r;e==null?r=[]:typeof e.forEach=="function"?r=e:r=Array.prototype.slice.call(e);var o,l;return r.forEach(function(c,h){var s=A1(c);if(isNaN(Number(s))){o=NaN,l=NaN;return}var u=Math.abs(n-s.getTime());(o==null||u0?1:r}function nT1(t,e){g1(2,arguments);var a=A1(t),n=A1(e),r=a.getTime()-n.getTime();return r>0?-1:r<0?1:r}var ST=7,i11=365.2425,o11=Math.pow(10,8)*24*60*60*1e3,Hl=6e4,wl=36e5,lM=1e3,rT1=-o11,TT=60,OT=3,AT=12,kT=4,Zh=3600,cM=60,sM=Zh*24,l11=sM*7,ET=sM*i11,PT=ET/12,c11=PT*3;function iT1(t){g1(1,arguments);var e=t/ST;return Math.floor(e)}function oT1(t,e){g1(2,arguments);var a=A1(t),n=A1(e);if(!y5(a)||!y5(n))return NaN;var r=yi(a,n),o=r<0?-1:1,l=Lt(r/7),c=l*5;for(n=Ci(n,l*7);!Oh(a,n);)c+=R6(n)?0:o,n=Ci(n,o);return c===0?0:c}function s11(t,e){return g1(2,arguments),tl(t)-tl(e)}var lT1=6048e5;function cT1(t,e){g1(2,arguments);var a=_5(t),n=_5(e),r=a.getTime()-za(a),o=n.getTime()-za(n);return Math.round((r-o)/lT1)}function lp(t,e){g1(2,arguments);var a=A1(t),n=A1(e),r=a.getFullYear()-n.getFullYear(),o=a.getMonth()-n.getMonth();return r*12+o}function mL(t){g1(1,arguments);var e=A1(t),a=Math.floor(e.getMonth()/3)+1;return a}function Of(t,e){g1(2,arguments);var a=A1(t),n=A1(e),r=a.getFullYear()-n.getFullYear(),o=mL(a)-mL(n);return r*4+o}var sT1=6048e5;function cp(t,e,a){g1(2,arguments);var n=Zn(t,a),r=Zn(e,a),o=n.getTime()-za(n),l=r.getTime()-za(r);return Math.round((o-l)/sT1)}function cs(t,e){g1(2,arguments);var a=A1(t),n=A1(e);return a.getFullYear()-n.getFullYear()}function xI(t,e){var a=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return a<0?-1:a>0?1:a}function hM(t,e){g1(2,arguments);var a=A1(t),n=A1(e),r=xI(a,n),o=Math.abs(yi(a,n));a.setDate(a.getDate()-r*o);var l=+(xI(a,n)===-r),c=r*(o-l);return c===0?0:c}function uM(t,e){return g1(2,arguments),A1(t).getTime()-A1(e).getTime()}var VI={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},hT1="trunc";function e9(t){return t?VI[t]:VI[hT1]}function Zs(t,e,a){g1(2,arguments);var n=uM(t,e)/wl;return e9(a==null?void 0:a.roundingMethod)(n)}function h11(t,e){g1(2,arguments);var a=Lt(e);return t11(t,-a)}function uT1(t,e){g1(2,arguments);var a=A1(t),n=A1(e),r=_r(a,n),o=Math.abs(s11(a,n));a=h11(a,r*o);var l=+(_r(a,n)===-r),c=r*(o-l);return c===0?0:c}function Qs(t,e,a){g1(2,arguments);var n=uM(t,e)/Hl;return e9(a==null?void 0:a.roundingMethod)(n)}function NT(t){g1(1,arguments);var e=A1(t);return e.setHours(23,59,59,999),e}function DT(t){g1(1,arguments);var e=A1(t),a=e.getMonth();return e.setFullYear(e.getFullYear(),a+1,0),e.setHours(23,59,59,999),e}function u11(t){g1(1,arguments);var e=A1(t);return NT(e).getTime()===DT(e).getTime()}function vM(t,e){g1(2,arguments);var a=A1(t),n=A1(e),r=_r(a,n),o=Math.abs(lp(a,n)),l;if(o<1)l=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-r*o);var c=_r(a,n)===-r;u11(A1(t))&&o===1&&_r(t,n)===1&&(c=!1),l=r*(o-Number(c))}return l===0?0:l}function vT1(t,e,a){g1(2,arguments);var n=vM(t,e)/3;return e9(a==null?void 0:a.roundingMethod)(n)}function j6(t,e,a){g1(2,arguments);var n=uM(t,e)/1e3;return e9(a==null?void 0:a.roundingMethod)(n)}function dT1(t,e,a){g1(2,arguments);var n=hM(t,e)/7;return e9(a==null?void 0:a.roundingMethod)(n)}function v11(t,e){g1(2,arguments);var a=A1(t),n=A1(e),r=_r(a,n),o=Math.abs(cs(a,n));a.setFullYear(1584),n.setFullYear(1584);var l=_r(a,n)===-r,c=r*(o-Number(l));return c===0?0:c}function d11(t,e){var a;g1(1,arguments);var n=t||{},r=A1(n.start),o=A1(n.end),l=o.getTime();if(!(r.getTime()<=l))throw new RangeError("Invalid interval");var c=[],h=r;h.setHours(0,0,0,0);var s=Number((a=e==null?void 0:e.step)!==null&&a!==void 0?a:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number greater than 1");for(;h.getTime()<=l;)c.push(A1(h)),h.setDate(h.getDate()+s),h.setHours(0,0,0,0);return c}function fT1(t,e){var a;g1(1,arguments);var n=t||{},r=A1(n.start),o=A1(n.end),l=r.getTime(),c=o.getTime();if(!(l<=c))throw new RangeError("Invalid interval");var h=[],s=r;s.setMinutes(0,0,0);var u=Number((a=e==null?void 0:e.step)!==null&&a!==void 0?a:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=c;)h.push(A1(s)),s=LT(s,u);return h}function sp(t){g1(1,arguments);var e=A1(t);return e.setSeconds(0,0),e}function gT1(t,e){var a;g1(1,arguments);var n=sp(A1(t.start)),r=A1(t.end),o=n.getTime(),l=r.getTime();if(o>=l)throw new RangeError("Invalid interval");var c=[],h=n,s=Number((a=e==null?void 0:e.step)!==null&&a!==void 0?a:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number equal to or greater than 1");for(;h.getTime()<=l;)c.push(A1(h)),h=BT(h,s);return c}function pT1(t){g1(1,arguments);var e=t||{},a=A1(e.start),n=A1(e.end),r=n.getTime(),o=[];if(!(a.getTime()<=r))throw new RangeError("Invalid interval");var l=a;for(l.setHours(0,0,0,0),l.setDate(1);l.getTime()<=r;)o.push(A1(l)),l.setMonth(l.getMonth()+1);return o}function Xs(t){g1(1,arguments);var e=A1(t),a=e.getMonth(),n=a-a%3;return e.setMonth(n,1),e.setHours(0,0,0,0),e}function mT1(t){g1(1,arguments);var e=t||{},a=A1(e.start),n=A1(e.end),r=n.getTime();if(!(a.getTime()<=r))throw new RangeError("Invalid interval");var o=Xs(a),l=Xs(n);r=l.getTime();for(var c=[],h=o;h.getTime()<=r;)c.push(A1(h)),h=_T(h,1);return c}function zT1(t,e){g1(1,arguments);var a=t||{},n=A1(a.start),r=A1(a.end),o=r.getTime();if(!(n.getTime()<=o))throw new RangeError("Invalid interval");var l=Zn(n,e),c=Zn(r,e);l.setHours(15),c.setHours(15),o=c.getTime();for(var h=[],s=l;s.getTime()<=o;)s.setHours(0),h.push(A1(s)),s=oM(s,1),s.setHours(15);return h}function RT(t){g1(1,arguments);for(var e=d11(t),a=[],n=0;n=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=A1(t),d=f.getDay(),M=(d0?(s=A1(e),u=A1(t)):(s=A1(t),u=A1(e));var v=j6(u,s),f=(za(u)-za(s))/1e3,d=Math.round((v-f)/60),M;if(d<2)return a!=null&&a.includeSeconds?v<5?l.formatDistance("lessThanXSeconds",5,h):v<10?l.formatDistance("lessThanXSeconds",10,h):v<20?l.formatDistance("lessThanXSeconds",20,h):v<40?l.formatDistance("halfAMinute",0,h):v<60?l.formatDistance("lessThanXMinutes",1,h):l.formatDistance("xMinutes",1,h):d===0?l.formatDistance("lessThanXMinutes",1,h):l.formatDistance("xMinutes",d,h);if(d<45)return l.formatDistance("xMinutes",d,h);if(d<90)return l.formatDistance("aboutXHours",1,h);if(d0?(u=A1(e),v=A1(t)):(u=A1(t),v=A1(e));var f=String((o=a==null?void 0:a.roundingMethod)!==null&&o!==void 0?o:"round"),d;if(f==="floor")d=Math.floor;else if(f==="ceil")d=Math.ceil;else if(f==="round")d=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var M=v.getTime()-u.getTime(),g=M/bI,H=za(v)-za(u),p=(M-H)/bI,m=a==null?void 0:a.unit,z;if(m?z=String(m):g<1?z="second":g<60?z="minute":g=0&&r<=3))throw new RangeError("fractionDigits must be between 0 and 3 inclusively");var o=e2(n.getDate(),2),l=e2(n.getMonth()+1,2),c=n.getFullYear(),h=e2(n.getHours(),2),s=e2(n.getMinutes(),2),u=e2(n.getSeconds(),2),v="";if(r>0){var f=n.getMilliseconds(),d=Math.floor(f*Math.pow(10,r-3));v="."+e2(d,r)}var M="",g=n.getTimezoneOffset();if(g!==0){var H=Math.abs(g),p=e2(Lt(H/60),2),m=e2(H%60,2),z=g<0?"+":"-";M="".concat(z).concat(p,":").concat(m)}else M="Z";return"".concat(c,"-").concat(l,"-").concat(o,"T").concat(h,":").concat(s,":").concat(u).concat(v).concat(M)}var FT1=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],$T1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function UT1(t){if(arguments.length<1)throw new TypeError("1 arguments required, but only ".concat(arguments.length," present"));var e=A1(t);if(!y5(e))throw new RangeError("Invalid time value");var a=FT1[e.getUTCDay()],n=e2(e.getUTCDate(),2),r=$T1[e.getUTCMonth()],o=e.getUTCFullYear(),l=e2(e.getUTCHours(),2),c=e2(e.getUTCMinutes(),2),h=e2(e.getUTCSeconds(),2);return"".concat(a,", ").concat(n," ").concat(r," ").concat(o," ").concat(l,":").concat(c,":").concat(h," GMT")}function WT1(t,e,a){var n,r,o,l,c,h,s,u,v,f;g1(2,arguments);var d=A1(t),M=A1(e),g=Ze(),H=(n=(r=a==null?void 0:a.locale)!==null&&r!==void 0?r:g.locale)!==null&&n!==void 0?n:$c,p=Lt((o=(l=(c=(h=a==null?void 0:a.weekStartsOn)!==null&&h!==void 0?h:a==null||(s=a.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&c!==void 0?c:g.weekStartsOn)!==null&&l!==void 0?l:(v=g.locale)===null||v===void 0||(f=v.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&o!==void 0?o:0);if(!H.localize)throw new RangeError("locale must contain localize property");if(!H.formatLong)throw new RangeError("locale must contain formatLong property");if(!H.formatRelative)throw new RangeError("locale must contain formatRelative property");var m=yi(d,M);if(isNaN(m))throw new RangeError("Invalid time value");var z;m<-6?z="other":m<-1?z="lastWeek":m<0?z="yesterday":m<1?z="today":m<2?z="tomorrow":m<7?z="nextWeek":z="other";var w=vc(d,za(d)),x=vc(M,za(M)),y=H.formatRelative(z,w,x,{locale:H,weekStartsOn:p});return fc(d,y,{locale:H,weekStartsOn:p})}function qT1(t){g1(1,arguments);var e=Lt(t);return A1(e*1e3)}function M11(t){g1(1,arguments);var e=A1(t),a=e.getDate();return a}function fM(t){g1(1,arguments);var e=A1(t),a=e.getDay();return a}function GT1(t){g1(1,arguments);var e=A1(t),a=yi(e,jT(e)),n=a+1;return n}function H11(t){g1(1,arguments);var e=A1(t),a=e.getFullYear(),n=e.getMonth(),r=new Date(0);return r.setFullYear(a,n+1,0),r.setHours(0,0,0,0),r.getDate()}function w11(t){g1(1,arguments);var e=A1(t),a=e.getFullYear();return a%400===0||a%4===0&&a%100!==0}function KT1(t){g1(1,arguments);var e=A1(t);return String(new Date(e))==="Invalid Date"?NaN:w11(e)?366:365}function YT1(t){g1(1,arguments);var e=A1(t),a=e.getFullYear(),n=Math.floor(a/10)*10;return n}function ZT1(){return Qh({},Ze())}function QT1(t){g1(1,arguments);var e=A1(t),a=e.getHours();return a}function y11(t){g1(1,arguments);var e=A1(t),a=e.getDay();return a===0&&(a=7),a}var XT1=6048e5;function x11(t){g1(1,arguments);var e=A1(t),a=_5(e).getTime()-po(e).getTime();return Math.round(a/XT1)+1}var JT1=6048e5;function tO1(t){g1(1,arguments);var e=po(t),a=po(oM(e,60)),n=a.valueOf()-e.valueOf();return Math.round(n/JT1)}function eO1(t){g1(1,arguments);var e=A1(t),a=e.getMilliseconds();return a}function aO1(t){g1(1,arguments);var e=A1(t),a=e.getMinutes();return a}function nO1(t){g1(1,arguments);var e=A1(t),a=e.getMonth();return a}var rO1=24*60*60*1e3;function iO1(t,e){g1(2,arguments);var a=t||{},n=e||{},r=A1(a.start).getTime(),o=A1(a.end).getTime(),l=A1(n.start).getTime(),c=A1(n.end).getTime();if(!(r<=o&&l<=c))throw new RangeError("Invalid interval");var h=ro?o:c,v=u-s;return Math.ceil(v/rO1)}function oO1(t){g1(1,arguments);var e=A1(t),a=e.getSeconds();return a}function V11(t){g1(1,arguments);var e=A1(t),a=e.getTime();return a}function lO1(t){return g1(1,arguments),Math.floor(V11(t)/1e3)}function C11(t,e){var a,n,r,o,l,c,h,s;g1(1,arguments);var u=A1(t),v=u.getFullYear(),f=Ze(),d=Lt((a=(n=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:f.firstWeekContainsDate)!==null&&n!==void 0?n:(h=f.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=new Date(0);M.setFullYear(v+1,0,d),M.setHours(0,0,0,0);var g=Zn(M,e),H=new Date(0);H.setFullYear(v,0,d),H.setHours(0,0,0,0);var p=Zn(H,e);return u.getTime()>=g.getTime()?v+1:u.getTime()>=p.getTime()?v:v-1}function up(t,e){var a,n,r,o,l,c,h,s;g1(1,arguments);var u=Ze(),v=Lt((a=(n=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:u.firstWeekContainsDate)!==null&&n!==void 0?n:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:1),f=C11(t,e),d=new Date(0);d.setFullYear(f,0,v),d.setHours(0,0,0,0);var M=Zn(d,e);return M}var cO1=6048e5;function b11(t,e){g1(1,arguments);var a=A1(t),n=Zn(a,e).getTime()-up(a,e).getTime();return Math.round(n/cO1)+1}function sO1(t,e){var a,n,r,o,l,c,h,s;g1(1,arguments);var u=Ze(),v=Lt((a=(n=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&n!==void 0?n:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=M11(t);if(isNaN(f))return NaN;var d=fM(dM(t)),M=v-d;M<=0&&(M+=7);var g=f-M;return Math.ceil(g/7)+1}function L11(t){g1(1,arguments);var e=A1(t),a=e.getMonth();return e.setFullYear(e.getFullYear(),a+1,0),e.setHours(0,0,0,0),e}function hO1(t,e){return g1(1,arguments),cp(L11(t),dM(t),e)+1}function uO1(t){return g1(1,arguments),A1(t).getFullYear()}function vO1(t){return g1(1,arguments),Math.floor(t*wl)}function dO1(t){return g1(1,arguments),Math.floor(t*TT)}function fO1(t){return g1(1,arguments),Math.floor(t*Zh)}function gO1(t){g1(1,arguments);var e=A1(t.start),a=A1(t.end);if(isNaN(e.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(a.getTime()))throw new RangeError("End Date is invalid");var n={};n.years=Math.abs(v11(a,e));var r=_r(a,e),o=M8(e,{years:r*n.years});n.months=Math.abs(vM(a,o));var l=M8(o,{months:r*n.months});n.days=Math.abs(hM(a,l));var c=M8(l,{days:r*n.days});n.hours=Math.abs(Zs(a,c));var h=M8(c,{hours:r*n.hours});n.minutes=Math.abs(Qs(a,h));var s=M8(h,{minutes:r*n.minutes});return n.seconds=Math.abs(j6(a,s)),n}function pO1(t,e,a){var n;g1(1,arguments);var r;return mO1(e)?r=e:a=e,new Intl.DateTimeFormat((n=a)===null||n===void 0?void 0:n.locale,r).format(t)}function mO1(t){return t!==void 0&&!("locale"in t)}function zO1(t,e,a){g1(2,arguments);var n=0,r,o=A1(t),l=A1(e);if(a!=null&&a.unit)r=a==null?void 0:a.unit,r==="second"?n=j6(o,l):r==="minute"?n=Qs(o,l):r==="hour"?n=Zs(o,l):r==="day"?n=yi(o,l):r==="week"?n=cp(o,l):r==="month"?n=lp(o,l):r==="quarter"?n=Of(o,l):r==="year"&&(n=cs(o,l));else{var c=j6(o,l);Math.abs(c)n.getTime()}function MO1(t,e){g1(2,arguments);var a=A1(t),n=A1(e);return a.getTime()Date.now()}function _I(t,e){var a=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=Pm(t))||e&&t&&typeof t.length=="number"){a&&(t=a);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(s){throw s},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,l=!1,c;return{s:function(){a=a.call(t)},n:function(){var s=a.next();return o=s.done,s},e:function(s){l=!0,c=s},f:function(){try{!o&&a.return!=null&&a.return()}finally{if(l)throw c}}}}var CO1=10,_11=function(){function t(){Jt(this,t),u1(this,"priority",void 0),u1(this,"subPriority",0)}return t2(t,[{key:"validate",value:function(a,n){return!0}}]),t}(),bO1=function(t){M2(a,t);var e=B2(a);function a(n,r,o,l,c){var h;return Jt(this,a),h=e.call(this),h.value=n,h.validateValue=r,h.setValue=o,h.priority=l,c&&(h.subPriority=c),h}return t2(a,[{key:"validate",value:function(r,o){return this.validateValue(r,this.value,o)}},{key:"set",value:function(r,o,l){return this.setValue(r,o,this.value,l)}}]),a}(_11),LO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l0,n=a?e:1-e,r;if(n<=50)r=t||100;else{var o=n+50,l=Math.floor(o/100)*100,c=t>=o%100;r=t+l-(c?100:0)}return a?r:1-r}function O11(t){return t%400===0||t%4===0&&t%100!==0}var _O1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l0}},{key:"set",value:function(r,o,l){var c=r.getUTCFullYear();if(l.isTwoDigitYear){var h=T11(l.year,c);return r.setUTCFullYear(h,0,1),r.setUTCHours(0,0,0,0),r}var s=!("era"in o)||o.era===1?l.year:1-l.year;return r.setUTCFullYear(s,0,1),r.setUTCHours(0,0,0,0),r}}]),a}(s0),SO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l0}},{key:"set",value:function(r,o,l,c){var h=rS(r,c);if(l.isTwoDigitYear){var s=T11(l.year,h);return r.setUTCFullYear(s,0,c.firstWeekContainsDate),r.setUTCHours(0,0,0,0),x5(r,c)}var u=!("era"in o)||o.era===1?l.year:1-l.year;return r.setUTCFullYear(u,0,c.firstWeekContainsDate),r.setUTCHours(0,0,0,0),x5(r,c)}}]),a}(s0),TO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=4}},{key:"set",value:function(r,o,l){return r.setUTCMonth((l-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),a}(s0),kO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=4}},{key:"set",value:function(r,o,l){return r.setUTCMonth((l-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),a}(s0),EO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=11}},{key:"set",value:function(r,o,l){return r.setUTCMonth(l,1),r.setUTCHours(0,0,0,0),r}}]),a}(s0),PO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=11}},{key:"set",value:function(r,o,l){return r.setUTCMonth(l,1),r.setUTCHours(0,0,0,0),r}}]),a}(s0);function NO1(t,e,a){g1(2,arguments);var n=A1(t),r=Lt(e),o=rY(n,a)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}var DO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=53}},{key:"set",value:function(r,o,l,c){return x5(NO1(r,l,c),c)}}]),a}(s0);function RO1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e),r=aY(a)-n;return a.setUTCDate(a.getUTCDate()-r*7),a}var jO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=53}},{key:"set",value:function(r,o,l){return dc(RO1(r,l))}}]),a}(s0),IO1=[31,28,31,30,31,30,31,31,30,31,30,31],FO1=[31,29,31,30,31,30,31,31,30,31,30,31],$O1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=FO1[h]:o>=1&&o<=IO1[h]}},{key:"set",value:function(r,o,l){return r.setUTCDate(l),r.setUTCHours(0,0,0,0),r}}]),a}(s0),UO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(r,o,l){return r.setUTCMonth(0,l),r.setUTCHours(0,0,0,0),r}}]),a}(s0);function FT(t,e,a){var n,r,o,l,c,h,s,u;g1(2,arguments);var v=Ze(),f=Lt((n=(r=(o=(l=a==null?void 0:a.weekStartsOn)!==null&&l!==void 0?l:a==null||(c=a.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&o!==void 0?o:v.weekStartsOn)!==null&&r!==void 0?r:(s=v.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=A1(t),M=Lt(e),g=d.getUTCDay(),H=M%7,p=(H+7)%7,m=(p=0&&o<=6}},{key:"set",value:function(r,o,l,c){return r=FT(r,l,c),r.setUTCHours(0,0,0,0),r}}]),a}(s0),qO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=6}},{key:"set",value:function(r,o,l,c){return r=FT(r,l,c),r.setUTCHours(0,0,0,0),r}}]),a}(s0),GO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=6}},{key:"set",value:function(r,o,l,c){return r=FT(r,l,c),r.setUTCHours(0,0,0,0),r}}]),a}(s0);function KO1(t,e){g1(2,arguments);var a=Lt(e);a%7===0&&(a=a-7);var n=1,r=A1(t),o=r.getUTCDay(),l=a%7,c=(l+7)%7,h=(c=1&&o<=7}},{key:"set",value:function(r,o,l){return r=KO1(r,l),r.setUTCHours(0,0,0,0),r}}]),a}(s0),ZO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=12}},{key:"set",value:function(r,o,l){var c=r.getUTCHours()>=12;return c&&l<12?r.setUTCHours(l+12,0,0,0):!c&&l===12?r.setUTCHours(0,0,0,0):r.setUTCHours(l,0,0,0),r}}]),a}(s0),tA1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=23}},{key:"set",value:function(r,o,l){return r.setUTCHours(l,0,0,0),r}}]),a}(s0),eA1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=11}},{key:"set",value:function(r,o,l){var c=r.getUTCHours()>=12;return c&&l<12?r.setUTCHours(l+12,0,0,0):r.setUTCHours(l,0,0,0),r}}]),a}(s0),aA1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=24}},{key:"set",value:function(r,o,l){var c=l<=24?l%24:l;return r.setUTCHours(c,0,0,0),r}}]),a}(s0),nA1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=59}},{key:"set",value:function(r,o,l){return r.setUTCMinutes(l,0,0),r}}]),a}(s0),rA1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=59}},{key:"set",value:function(r,o,l){return r.setUTCSeconds(l,0),r}}]),a}(s0),iA1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=Lt((M=(g=(H=(p=n==null?void 0:n.weekStartsOn)!==null&&p!==void 0?p:n==null||(m=n.locale)===null||m===void 0||(z=m.options)===null||z===void 0?void 0:z.weekStartsOn)!==null&&H!==void 0?H:C.weekStartsOn)!==null&&g!==void 0?g:(w=C.locale)===null||w===void 0||(x=w.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&M!==void 0?M:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(V==="")return y===""?A1(a):new Date(NaN);var T={firstWeekContainsDate:B,weekStartsOn:S,locale:L},E=[new LO1],$=V.match(vA1).map(function(s1){var z1=s1[0];if(z1 in Hb){var m1=Hb[z1];return m1(s1,L.formatLong)}return s1}).join("").match(uA1),U=[],W=_I($),Y;try{var F=function(){var z1=Y.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&lY(z1)&&Sg(z1,V,t),!(n!=null&&n.useAdditionalDayOfYearTokens)&&oY(z1)&&Sg(z1,V,t);var m1=z1[0],S1=hA1[m1];if(S1){var I1=S1.incompatibleTokens;if(Array.isArray(I1)){var U1=U.find(function(G1){return I1.includes(G1.token)||G1.token===m1});if(U1)throw new RangeError("The format string mustn't contain `".concat(U1.fullToken,"` and `").concat(z1,"` at the same time"))}else if(S1.incompatibleTokens==="*"&&U.length>0)throw new RangeError("The format string mustn't contain `".concat(z1,"` and any other token at the same time"));U.push({token:m1,fullToken:z1});var P1=S1.run(y,z1,L.match,T);if(!P1)return{v:new Date(NaN)};E.push(P1.setter),y=P1.rest}else{if(m1.match(pA1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m1+"`");if(z1==="''"?z1="'":m1==="'"&&(z1=mA1(z1)),y.indexOf(z1)===0)y=y.slice(z1.length);else return{v:new Date(NaN)}}};for(W.s();!(Y=W.n()).done;){var t1=F();if(C2(t1)==="object")return t1.v}}catch(s1){W.e(s1)}finally{W.f()}if(y.length>0&&gA1.test(y))return new Date(NaN);var R=E.map(function(s1){return s1.priority}).sort(function(s1,z1){return z1-s1}).filter(function(s1,z1,m1){return m1.indexOf(s1)===z1}).map(function(s1){return E.filter(function(z1){return z1.priority===s1}).sort(function(z1,m1){return m1.subPriority-z1.subPriority})}).map(function(s1){return s1[0]}),i1=A1(a);if(isNaN(i1.getTime()))return new Date(NaN);var J=vc(i1,za(i1)),A={},o1=_I(R),h1;try{for(o1.s();!(h1=o1.n()).done;){var a1=h1.value;if(!a1.validate(J,T))return new Date(NaN);var M1=a1.set(J,A,T);Array.isArray(M1)?(J=M1[0],Qh(A,M1[1])):J=M1}}catch(s1){o1.e(s1)}finally{o1.f()}return J}function mA1(t){return t.match(dA1)[1].replace(fA1,"'")}function zA1(t,e,a){return g1(2,arguments),y5(A11(t,e,new Date,a))}function MA1(t){return g1(1,arguments),A1(t).getDay()===1}function HA1(t){return g1(1,arguments),A1(t).getTime()=n&&a<=r}function gM(t,e){g1(2,arguments);var a=Lt(e);return Ci(t,-a)}function EA1(t){return g1(1,arguments),Oh(t,gM(Date.now(),1))}function PA1(t){g1(1,arguments);var e=A1(t),a=e.getFullYear(),n=9+Math.floor(a/10)*10;return e.setFullYear(n+1,0,0),e.setHours(0,0,0,0),e}function I11(t,e){var a,n,r,o,l,c,h,s;g1(1,arguments);var u=Ze(),v=Lt((a=(n=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&n!==void 0?n:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var f=A1(t),d=f.getDay(),M=(d2)return e;if(/:/.test(a[0])?n=a[0]:(e.date=a[0],n=a[1],Dd.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Dd.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){var r=Dd.timezone.exec(n);r?(e.time=n.replace(r[1],""),e.timezone=r[1]):e.time=n}return e}function fk1(t,e){var a=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(a);if(!n)return{year:NaN,restDateString:""};var r=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?r:o*100,restDateString:t.slice((n[1]||n[2]).length)}}function gk1(t,e){if(e===null)return new Date(NaN);var a=t.match(hk1);if(!a)return new Date(NaN);var n=!!a[4],r=i7(a[1]),o=i7(a[2])-1,l=i7(a[3]),c=i7(a[4]),h=i7(a[5])-1;if(n)return yk1(e,c,h)?zk1(e,c,h):new Date(NaN);var s=new Date(0);return!Hk1(e,o,l)||!wk1(e,r)?new Date(NaN):(s.setUTCFullYear(e,o,Math.max(r,l)),s)}function i7(t){return t?parseInt(t):1}function pk1(t){var e=t.match(uk1);if(!e)return NaN;var a=gV(e[1]),n=gV(e[2]),r=gV(e[3]);return xk1(a,n,r)?a*wl+n*Hl+r*1e3:NaN}function gV(t){return t&&parseFloat(t.replace(",","."))||0}function mk1(t){if(t==="Z")return 0;var e=t.match(vk1);if(!e)return 0;var a=e[1]==="+"?-1:1,n=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return Vk1(n,r)?a*(n*wl+r*Hl):NaN}function zk1(t,e,a){var n=new Date(0);n.setUTCFullYear(t,0,4);var r=n.getUTCDay()||7,o=(e-1)*7+a+1-r;return n.setUTCDate(n.getUTCDate()+o),n}var Mk1=[31,null,31,30,31,30,31,31,30,31,30,31];function F11(t){return t%400===0||t%4===0&&t%100!==0}function Hk1(t,e,a){return e>=0&&e<=11&&a>=1&&a<=(Mk1[e]||(F11(t)?29:28))}function wk1(t,e){return e>=1&&e<=(F11(t)?366:365)}function yk1(t,e,a){return e>=1&&e<=53&&a>=0&&a<=6}function xk1(t,e,a){return t===24?e===0&&a===0:a>=0&&a<60&&e>=0&&e<60&&t>=0&&t<25}function Vk1(t,e){return e>=0&&e<=59}function Ck1(t){if(g1(1,arguments),typeof t=="string"){var e=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return e?new Date(Date.UTC(+e[1],+e[2]-1,+e[3],+e[4]-(+e[9]||0)*(e[8]=="-"?-1:1),+e[5]-(+e[10]||0)*(e[8]=="-"?-1:1),+e[6],+((e[7]||"0")+"00").substring(0,3))):new Date(NaN)}return A1(t)}function ko(t,e){g1(2,arguments);var a=fM(t)-e;return a<=0&&(a+=7),gM(t,a)}function bk1(t){return g1(1,arguments),ko(t,5)}function Lk1(t){return g1(1,arguments),ko(t,1)}function Bk1(t){return g1(1,arguments),ko(t,6)}function _k1(t){return g1(1,arguments),ko(t,0)}function Sk1(t){return g1(1,arguments),ko(t,4)}function Tk1(t){return g1(1,arguments),ko(t,2)}function Ok1(t){return g1(1,arguments),ko(t,3)}function Ak1(t){return g1(1,arguments),Math.floor(t*OT)}function kk1(t){g1(1,arguments);var e=t/kT;return Math.floor(e)}function Ek1(t,e){var a;if(arguments.length<1)throw new TypeError("1 argument required, but only none provided present");var n=Lt((a=e==null?void 0:e.nearestTo)!==null&&a!==void 0?a:1);if(n<1||n>30)throw new RangeError("`options.nearestTo` must be between 1 and 30");var r=A1(t),o=r.getSeconds(),l=r.getMinutes()+o/60,c=e9(e==null?void 0:e.roundingMethod),h=c(l/n)*n,s=l%n,u=Math.round(s/n)*n;return new Date(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),h+u)}function Pk1(t){g1(1,arguments);var e=t/Zh;return Math.floor(e)}function Nk1(t){return g1(1,arguments),t*lM}function Dk1(t){g1(1,arguments);var e=t/cM;return Math.floor(e)}function UT(t,e){g1(2,arguments);var a=A1(t),n=Lt(e),r=a.getFullYear(),o=a.getDate(),l=new Date(0);l.setFullYear(r,n,15),l.setHours(0,0,0,0);var c=H11(l);return a.setMonth(n,Math.min(o,c)),a}function Rk1(t,e){if(g1(2,arguments),C2(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var a=A1(t);return isNaN(a.getTime())?new Date(NaN):(e.year!=null&&a.setFullYear(e.year),e.month!=null&&(a=UT(a,e.month)),e.date!=null&&a.setDate(Lt(e.date)),e.hours!=null&&a.setHours(Lt(e.hours)),e.minutes!=null&&a.setMinutes(Lt(e.minutes)),e.seconds!=null&&a.setSeconds(Lt(e.seconds)),e.milliseconds!=null&&a.setMilliseconds(Lt(e.milliseconds)),a)}function jk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e);return a.setDate(n),a}function Ik1(t,e,a){var n,r,o,l,c,h,s,u;g1(2,arguments);var v=Ze(),f=Lt((n=(r=(o=(l=a==null?void 0:a.weekStartsOn)!==null&&l!==void 0?l:a==null||(c=a.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&o!==void 0?o:v.weekStartsOn)!==null&&r!==void 0?r:(s=v.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=A1(t),M=Lt(e),g=d.getDay(),H=M%7,p=(H+7)%7,m=7-f,z=M<0||M>6?M-(g+m)%7:(p+m)%7-(g+m)%7;return Ci(d,z)}function Fk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e);return a.setMonth(0),a.setDate(n),a}function HL(t){g1(1,arguments);var e={},a=Ze();for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]===void 0?delete e[r]:e[r]=t[r]);K71(e)}function $k1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e);return a.setHours(n),a}function Uk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e),r=y11(a),o=n-r;return Ci(a,o)}function Wk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e),r=x11(a)-n;return a.setDate(a.getDate()-r*7),a}function qk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e);return a.setMilliseconds(n),a}function Gk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e);return a.setMinutes(n),a}function Kk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e),r=Math.floor(a.getMonth()/3)+1,o=n-r;return UT(a,a.getMonth()+o*3)}function Yk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e);return a.setSeconds(n),a}function Zk1(t,e,a){g1(2,arguments);var n=A1(t),r=Lt(e),o=b11(n,a)-r;return n.setDate(n.getDate()-o*7),n}function Qk1(t,e,a){var n,r,o,l,c,h,s,u;g1(2,arguments);var v=Ze(),f=Lt((n=(r=(o=(l=a==null?void 0:a.firstWeekContainsDate)!==null&&l!==void 0?l:a==null||(c=a.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:v.firstWeekContainsDate)!==null&&r!==void 0?r:(s=v.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),d=A1(t),M=Lt(e),g=yi(d,up(d,a)),H=new Date(0);return H.setFullYear(M,0,f),H.setHours(0,0,0,0),d=up(H,a),d.setDate(d.getDate()+g),d}function Xk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e);return isNaN(a.getTime())?new Date(NaN):(a.setFullYear(n),a)}function Jk1(t){g1(1,arguments);var e=A1(t),a=e.getFullYear(),n=Math.floor(a/10)*10;return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}function tE1(){return gc(Date.now())}function eE1(){var t=new Date,e=t.getFullYear(),a=t.getMonth(),n=t.getDate(),r=new Date(0);return r.setFullYear(e,a,n+1),r.setHours(0,0,0,0),r}function aE1(){var t=new Date,e=t.getFullYear(),a=t.getMonth(),n=t.getDate(),r=new Date(0);return r.setFullYear(e,a,n-1),r.setHours(0,0,0,0),r}function $11(t,e){g1(2,arguments);var a=Lt(e);return Yh(t,-a)}function nE1(t,e){if(g1(2,arguments),!e||C2(e)!=="object")return new Date(NaN);var a=e.years?Lt(e.years):0,n=e.months?Lt(e.months):0,r=e.weeks?Lt(e.weeks):0,o=e.days?Lt(e.days):0,l=e.hours?Lt(e.hours):0,c=e.minutes?Lt(e.minutes):0,h=e.seconds?Lt(e.seconds):0,s=$11(t,n+a*12),u=gM(s,o+r*7),v=c+l*60,f=h+v*60,d=f*1e3,M=new Date(u.getTime()-d);return M}function rE1(t,e){g1(2,arguments);var a=Lt(e);return XJ(t,-a)}function iE1(t,e){g1(2,arguments);var a=Lt(e);return LT(t,-a)}function oE1(t,e){g1(2,arguments);var a=Lt(e);return BT(t,-a)}function lE1(t,e){g1(2,arguments);var a=Lt(e);return _T(t,-a)}function cE1(t,e){g1(2,arguments);var a=Lt(e);return e11(t,-a)}function sE1(t,e){g1(2,arguments);var a=Lt(e);return oM(t,-a)}function hE1(t,e){g1(2,arguments);var a=Lt(e);return a11(t,-a)}function uE1(t){return g1(1,arguments),Math.floor(t*ST)}function vE1(t){return g1(1,arguments),Math.floor(t*AT)}function dE1(t){return g1(1,arguments),Math.floor(t*kT)}const fE1=Object.freeze(Object.defineProperty({__proto__:null,add:M8,addBusinessDays:XJ,addDays:Ci,addHours:LT,addISOWeekYears:t11,addMilliseconds:Th,addMinutes:BT,addMonths:Yh,addQuarters:_T,addSeconds:e11,addWeeks:oM,addYears:a11,areIntervalsOverlapping:JS1,clamp:tT1,closestIndexTo:eT1,closestTo:aT1,compareAsc:_r,compareDesc:nT1,daysInWeek:ST,daysInYear:i11,daysToWeeks:iT1,differenceInBusinessDays:oT1,differenceInCalendarDays:yi,differenceInCalendarISOWeekYears:s11,differenceInCalendarISOWeeks:cT1,differenceInCalendarMonths:lp,differenceInCalendarQuarters:Of,differenceInCalendarWeeks:cp,differenceInCalendarYears:cs,differenceInDays:hM,differenceInHours:Zs,differenceInISOWeekYears:uT1,differenceInMilliseconds:uM,differenceInMinutes:Qs,differenceInMonths:vM,differenceInQuarters:vT1,differenceInSeconds:j6,differenceInWeeks:dT1,differenceInYears:v11,eachDayOfInterval:d11,eachHourOfInterval:fT1,eachMinuteOfInterval:gT1,eachMonthOfInterval:pT1,eachQuarterOfInterval:mT1,eachWeekOfInterval:zT1,eachWeekendOfInterval:RT,eachWeekendOfMonth:MT1,eachWeekendOfYear:HT1,eachYearOfInterval:wT1,endOfDay:NT,endOfDecade:yT1,endOfHour:xT1,endOfISOWeek:VT1,endOfISOWeekYear:CT1,endOfMinute:bT1,endOfMonth:DT,endOfQuarter:LT1,endOfSecond:BT1,endOfToday:_T1,endOfTomorrow:ST1,endOfWeek:g11,endOfYear:f11,endOfYesterday:TT1,format:fc,formatDistance:m11,formatDistanceStrict:z11,formatDistanceToNow:kT1,formatDistanceToNowStrict:ET1,formatDuration:NT1,formatISO:DT1,formatISO9075:RT1,formatISODuration:jT1,formatRFC3339:IT1,formatRFC7231:UT1,formatRelative:WT1,fromUnixTime:qT1,getDate:M11,getDay:fM,getDayOfYear:GT1,getDaysInMonth:H11,getDaysInYear:KT1,getDecade:YT1,getDefaultOptions:ZT1,getHours:QT1,getISODay:y11,getISOWeek:x11,getISOWeekYear:tl,getISOWeeksInYear:tO1,getMilliseconds:eO1,getMinutes:aO1,getMonth:nO1,getOverlappingDaysInIntervals:iO1,getQuarter:mL,getSeconds:oO1,getTime:V11,getUnixTime:lO1,getWeek:b11,getWeekOfMonth:sO1,getWeekYear:C11,getWeeksInMonth:hO1,getYear:uO1,hoursToMilliseconds:vO1,hoursToMinutes:dO1,hoursToSeconds:fO1,intervalToDuration:gO1,intlFormat:pO1,intlFormatDistance:zO1,isAfter:B11,isBefore:MO1,isDate:tY,isEqual:HO1,isExists:wO1,isFirstDayOfMonth:yO1,isFriday:xO1,isFuture:VO1,isLastDayOfMonth:u11,isLeapYear:w11,isMatch:zA1,isMonday:MA1,isPast:HA1,isSameDay:Oh,isSameHour:k11,isSameISOWeek:E11,isSameISOWeekYear:wA1,isSameMinute:P11,isSameMonth:N11,isSameQuarter:D11,isSameSecond:R11,isSameWeek:$T,isSameYear:j11,isSaturday:QJ,isSunday:bT,isThisHour:yA1,isThisISOWeek:xA1,isThisMinute:VA1,isThisMonth:CA1,isThisQuarter:bA1,isThisSecond:LA1,isThisWeek:BA1,isThisYear:_A1,isThursday:SA1,isToday:dY,isTomorrow:TA1,isTuesday:OA1,isValid:y5,isWednesday:AA1,isWeekend:R6,isWithinInterval:kA1,isYesterday:EA1,lastDayOfDecade:PA1,lastDayOfISOWeek:NA1,lastDayOfISOWeekYear:DA1,lastDayOfMonth:L11,lastDayOfQuarter:RA1,lastDayOfWeek:I11,lastDayOfYear:jA1,lightFormat:WA1,max:n11,maxTime:o11,milliseconds:GA1,millisecondsInHour:wl,millisecondsInMinute:Hl,millisecondsInSecond:lM,millisecondsToHours:KA1,millisecondsToMinutes:YA1,millisecondsToSeconds:ZA1,min:r11,minTime:rT1,minutesInHour:TT,minutesToHours:QA1,minutesToMilliseconds:XA1,minutesToSeconds:JA1,monthsInQuarter:OT,monthsInYear:AT,monthsToQuarters:tk1,monthsToYears:ek1,nextDay:Ao,nextFriday:ak1,nextMonday:nk1,nextSaturday:rk1,nextSunday:ik1,nextThursday:ok1,nextTuesday:lk1,nextWednesday:ck1,parse:A11,parseISO:sk1,parseJSON:Ck1,previousDay:ko,previousFriday:bk1,previousMonday:Lk1,previousSaturday:Bk1,previousSunday:_k1,previousThursday:Sk1,previousTuesday:Tk1,previousWednesday:Ok1,quartersInYear:kT,quartersToMonths:Ak1,quartersToYears:kk1,roundToNearestMinutes:Ek1,secondsInDay:sM,secondsInHour:Zh,secondsInMinute:cM,secondsInMonth:PT,secondsInQuarter:c11,secondsInWeek:l11,secondsInYear:ET,secondsToHours:Pk1,secondsToMilliseconds:Nk1,secondsToMinutes:Dk1,set:Rk1,setDate:jk1,setDay:Ik1,setDayOfYear:Fk1,setDefaultOptions:HL,setHours:$k1,setISODay:Uk1,setISOWeek:Wk1,setISOWeekYear:JJ,setMilliseconds:qk1,setMinutes:Gk1,setMonth:UT,setQuarter:Kk1,setSeconds:Yk1,setWeek:Zk1,setWeekYear:Qk1,setYear:Xk1,startOfDay:gc,startOfDecade:Jk1,startOfHour:zL,startOfISOWeek:_5,startOfISOWeekYear:po,startOfMinute:sp,startOfMonth:dM,startOfQuarter:Xs,startOfSecond:ML,startOfToday:tE1,startOfTomorrow:eE1,startOfWeek:Zn,startOfWeekYear:up,startOfYear:jT,startOfYesterday:aE1,sub:nE1,subBusinessDays:rE1,subDays:gM,subHours:iE1,subISOWeekYears:h11,subMilliseconds:vc,subMinutes:oE1,subMonths:$11,subQuarters:lE1,subSeconds:cE1,subWeeks:sE1,subYears:hE1,toDate:A1,weeksToDays:uE1,yearsToMonths:vE1,yearsToQuarters:dE1},Symbol.toStringTag,{value:"Module"})),Xh=se(fE1);var TI;function gE1(){if(TI)return r7;TI=1;var t=b&&b.__assign||function(){return t=Object.assign||function(c){for(var h,s=1,u=arguments.length;s=l?o:(a.setFullYear(o.getFullYear(),o.getMonth(),r),a)}function M8(t,e){if(g1(2,arguments),!e||C2(e)!=="object")return new Date(NaN);var a=e.years?Lt(e.years):0,n=e.months?Lt(e.months):0,r=e.weeks?Lt(e.weeks):0,o=e.days?Lt(e.days):0,l=e.hours?Lt(e.hours):0,c=e.minutes?Lt(e.minutes):0,h=e.seconds?Lt(e.seconds):0,s=A1(t),u=n||a?Yh(s,n+a*12):s,v=o||r?Ci(u,o+r*7):u,f=c+l*60,d=h+f*60,M=d*1e3,g=new Date(v.getTime()+M);return g}function R6(t){g1(1,arguments);var e=A1(t),a=e.getDay();return a===0||a===6}function bT(t){return g1(1,arguments),A1(t).getDay()===0}function QJ(t){return g1(1,arguments),A1(t).getDay()===6}function XJ(t,e){g1(2,arguments);var a=A1(t),n=R6(a),r=Lt(e);if(isNaN(r))return new Date(NaN);var o=a.getHours(),l=r<0?-1:1,c=Lt(r/5);a.setDate(a.getDate()+c*7);for(var h=Math.abs(r%5);h>0;)a.setDate(a.getDate()+l),R6(a)||(h-=1);return n&&R6(a)&&r!==0&&(QJ(a)&&a.setDate(a.getDate()+(l<0?2:-1)),bT(a)&&a.setDate(a.getDate()+(l<0?1:-2))),a.setHours(o),a}var QS1=36e5;function LT(t,e){g1(2,arguments);var a=Lt(e);return Th(t,a*QS1)}function Zn(t,e){var a,n,r,o,l,c,h,s;g1(1,arguments);var u=Ze(),v=Lt((a=(n=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&n!==void 0?n:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=A1(t),d=f.getDay(),M=(d=r.getTime()?a+1:e.getTime()>=l.getTime()?a:a-1}function po(t){g1(1,arguments);var e=tl(t),a=new Date(0);a.setFullYear(e,0,4),a.setHours(0,0,0,0);var n=_5(a);return n}var XS1=864e5;function yi(t,e){g1(2,arguments);var a=gc(t),n=gc(e),r=a.getTime()-za(a),o=n.getTime()-za(n);return Math.round((r-o)/XS1)}function JJ(t,e){g1(2,arguments);var a=A1(t),n=Lt(e),r=yi(a,po(a)),o=new Date(0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),a=po(o),a.setDate(a.getDate()+r),a}function t11(t,e){g1(2,arguments);var a=Lt(e);return JJ(t,tl(t)+a)}var JS1=6e4;function BT(t,e){g1(2,arguments);var a=Lt(e);return Th(t,a*JS1)}function _T(t,e){g1(2,arguments);var a=Lt(e),n=a*3;return Yh(t,n)}function e11(t,e){g1(2,arguments);var a=Lt(e);return Th(t,a*1e3)}function oM(t,e){g1(2,arguments);var a=Lt(e),n=a*7;return Ci(t,n)}function a11(t,e){g1(2,arguments);var a=Lt(e);return Yh(t,a*12)}function tT1(t,e,a){g1(2,arguments);var n=A1(t==null?void 0:t.start).getTime(),r=A1(t==null?void 0:t.end).getTime(),o=A1(e==null?void 0:e.start).getTime(),l=A1(e==null?void 0:e.end).getTime();if(!(n<=r&&o<=l))throw new RangeError("Invalid interval");return a!=null&&a.inclusive?n<=l&&o<=r:nr||isNaN(r.getDate()))&&(a=r)}),a||new Date(NaN)}function eT1(t,e){var a=e.start,n=e.end;return g1(2,arguments),r11([n11([t,a]),n])}function aT1(t,e){g1(2,arguments);var a=A1(t);if(isNaN(Number(a)))return NaN;var n=a.getTime(),r;e==null?r=[]:typeof e.forEach=="function"?r=e:r=Array.prototype.slice.call(e);var o,l;return r.forEach(function(c,h){var s=A1(c);if(isNaN(Number(s))){o=NaN,l=NaN;return}var u=Math.abs(n-s.getTime());(o==null||u0?1:r}function rT1(t,e){g1(2,arguments);var a=A1(t),n=A1(e),r=a.getTime()-n.getTime();return r>0?-1:r<0?1:r}var ST=7,i11=365.2425,o11=Math.pow(10,8)*24*60*60*1e3,Hl=6e4,wl=36e5,lM=1e3,iT1=-o11,TT=60,OT=3,AT=12,kT=4,Zh=3600,cM=60,sM=Zh*24,l11=sM*7,ET=sM*i11,PT=ET/12,c11=PT*3;function oT1(t){g1(1,arguments);var e=t/ST;return Math.floor(e)}function lT1(t,e){g1(2,arguments);var a=A1(t),n=A1(e);if(!y5(a)||!y5(n))return NaN;var r=yi(a,n),o=r<0?-1:1,l=Lt(r/7),c=l*5;for(n=Ci(n,l*7);!Oh(a,n);)c+=R6(n)?0:o,n=Ci(n,o);return c===0?0:c}function s11(t,e){return g1(2,arguments),tl(t)-tl(e)}var cT1=6048e5;function sT1(t,e){g1(2,arguments);var a=_5(t),n=_5(e),r=a.getTime()-za(a),o=n.getTime()-za(n);return Math.round((r-o)/cT1)}function lp(t,e){g1(2,arguments);var a=A1(t),n=A1(e),r=a.getFullYear()-n.getFullYear(),o=a.getMonth()-n.getMonth();return r*12+o}function mL(t){g1(1,arguments);var e=A1(t),a=Math.floor(e.getMonth()/3)+1;return a}function Of(t,e){g1(2,arguments);var a=A1(t),n=A1(e),r=a.getFullYear()-n.getFullYear(),o=mL(a)-mL(n);return r*4+o}var hT1=6048e5;function cp(t,e,a){g1(2,arguments);var n=Zn(t,a),r=Zn(e,a),o=n.getTime()-za(n),l=r.getTime()-za(r);return Math.round((o-l)/hT1)}function cs(t,e){g1(2,arguments);var a=A1(t),n=A1(e);return a.getFullYear()-n.getFullYear()}function xI(t,e){var a=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return a<0?-1:a>0?1:a}function hM(t,e){g1(2,arguments);var a=A1(t),n=A1(e),r=xI(a,n),o=Math.abs(yi(a,n));a.setDate(a.getDate()-r*o);var l=+(xI(a,n)===-r),c=r*(o-l);return c===0?0:c}function uM(t,e){return g1(2,arguments),A1(t).getTime()-A1(e).getTime()}var VI={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},uT1="trunc";function e9(t){return t?VI[t]:VI[uT1]}function Zs(t,e,a){g1(2,arguments);var n=uM(t,e)/wl;return e9(a==null?void 0:a.roundingMethod)(n)}function h11(t,e){g1(2,arguments);var a=Lt(e);return t11(t,-a)}function vT1(t,e){g1(2,arguments);var a=A1(t),n=A1(e),r=_r(a,n),o=Math.abs(s11(a,n));a=h11(a,r*o);var l=+(_r(a,n)===-r),c=r*(o-l);return c===0?0:c}function Qs(t,e,a){g1(2,arguments);var n=uM(t,e)/Hl;return e9(a==null?void 0:a.roundingMethod)(n)}function NT(t){g1(1,arguments);var e=A1(t);return e.setHours(23,59,59,999),e}function DT(t){g1(1,arguments);var e=A1(t),a=e.getMonth();return e.setFullYear(e.getFullYear(),a+1,0),e.setHours(23,59,59,999),e}function u11(t){g1(1,arguments);var e=A1(t);return NT(e).getTime()===DT(e).getTime()}function vM(t,e){g1(2,arguments);var a=A1(t),n=A1(e),r=_r(a,n),o=Math.abs(lp(a,n)),l;if(o<1)l=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-r*o);var c=_r(a,n)===-r;u11(A1(t))&&o===1&&_r(t,n)===1&&(c=!1),l=r*(o-Number(c))}return l===0?0:l}function dT1(t,e,a){g1(2,arguments);var n=vM(t,e)/3;return e9(a==null?void 0:a.roundingMethod)(n)}function j6(t,e,a){g1(2,arguments);var n=uM(t,e)/1e3;return e9(a==null?void 0:a.roundingMethod)(n)}function fT1(t,e,a){g1(2,arguments);var n=hM(t,e)/7;return e9(a==null?void 0:a.roundingMethod)(n)}function v11(t,e){g1(2,arguments);var a=A1(t),n=A1(e),r=_r(a,n),o=Math.abs(cs(a,n));a.setFullYear(1584),n.setFullYear(1584);var l=_r(a,n)===-r,c=r*(o-Number(l));return c===0?0:c}function d11(t,e){var a;g1(1,arguments);var n=t||{},r=A1(n.start),o=A1(n.end),l=o.getTime();if(!(r.getTime()<=l))throw new RangeError("Invalid interval");var c=[],h=r;h.setHours(0,0,0,0);var s=Number((a=e==null?void 0:e.step)!==null&&a!==void 0?a:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number greater than 1");for(;h.getTime()<=l;)c.push(A1(h)),h.setDate(h.getDate()+s),h.setHours(0,0,0,0);return c}function gT1(t,e){var a;g1(1,arguments);var n=t||{},r=A1(n.start),o=A1(n.end),l=r.getTime(),c=o.getTime();if(!(l<=c))throw new RangeError("Invalid interval");var h=[],s=r;s.setMinutes(0,0,0);var u=Number((a=e==null?void 0:e.step)!==null&&a!==void 0?a:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=c;)h.push(A1(s)),s=LT(s,u);return h}function sp(t){g1(1,arguments);var e=A1(t);return e.setSeconds(0,0),e}function pT1(t,e){var a;g1(1,arguments);var n=sp(A1(t.start)),r=A1(t.end),o=n.getTime(),l=r.getTime();if(o>=l)throw new RangeError("Invalid interval");var c=[],h=n,s=Number((a=e==null?void 0:e.step)!==null&&a!==void 0?a:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number equal to or greater than 1");for(;h.getTime()<=l;)c.push(A1(h)),h=BT(h,s);return c}function mT1(t){g1(1,arguments);var e=t||{},a=A1(e.start),n=A1(e.end),r=n.getTime(),o=[];if(!(a.getTime()<=r))throw new RangeError("Invalid interval");var l=a;for(l.setHours(0,0,0,0),l.setDate(1);l.getTime()<=r;)o.push(A1(l)),l.setMonth(l.getMonth()+1);return o}function Xs(t){g1(1,arguments);var e=A1(t),a=e.getMonth(),n=a-a%3;return e.setMonth(n,1),e.setHours(0,0,0,0),e}function zT1(t){g1(1,arguments);var e=t||{},a=A1(e.start),n=A1(e.end),r=n.getTime();if(!(a.getTime()<=r))throw new RangeError("Invalid interval");var o=Xs(a),l=Xs(n);r=l.getTime();for(var c=[],h=o;h.getTime()<=r;)c.push(A1(h)),h=_T(h,1);return c}function MT1(t,e){g1(1,arguments);var a=t||{},n=A1(a.start),r=A1(a.end),o=r.getTime();if(!(n.getTime()<=o))throw new RangeError("Invalid interval");var l=Zn(n,e),c=Zn(r,e);l.setHours(15),c.setHours(15),o=c.getTime();for(var h=[],s=l;s.getTime()<=o;)s.setHours(0),h.push(A1(s)),s=oM(s,1),s.setHours(15);return h}function RT(t){g1(1,arguments);for(var e=d11(t),a=[],n=0;n=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=A1(t),d=f.getDay(),M=(d0?(s=A1(e),u=A1(t)):(s=A1(t),u=A1(e));var v=j6(u,s),f=(za(u)-za(s))/1e3,d=Math.round((v-f)/60),M;if(d<2)return a!=null&&a.includeSeconds?v<5?l.formatDistance("lessThanXSeconds",5,h):v<10?l.formatDistance("lessThanXSeconds",10,h):v<20?l.formatDistance("lessThanXSeconds",20,h):v<40?l.formatDistance("halfAMinute",0,h):v<60?l.formatDistance("lessThanXMinutes",1,h):l.formatDistance("xMinutes",1,h):d===0?l.formatDistance("lessThanXMinutes",1,h):l.formatDistance("xMinutes",d,h);if(d<45)return l.formatDistance("xMinutes",d,h);if(d<90)return l.formatDistance("aboutXHours",1,h);if(d0?(u=A1(e),v=A1(t)):(u=A1(t),v=A1(e));var f=String((o=a==null?void 0:a.roundingMethod)!==null&&o!==void 0?o:"round"),d;if(f==="floor")d=Math.floor;else if(f==="ceil")d=Math.ceil;else if(f==="round")d=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var M=v.getTime()-u.getTime(),g=M/bI,H=za(v)-za(u),p=(M-H)/bI,m=a==null?void 0:a.unit,z;if(m?z=String(m):g<1?z="second":g<60?z="minute":g=0&&r<=3))throw new RangeError("fractionDigits must be between 0 and 3 inclusively");var o=e2(n.getDate(),2),l=e2(n.getMonth()+1,2),c=n.getFullYear(),h=e2(n.getHours(),2),s=e2(n.getMinutes(),2),u=e2(n.getSeconds(),2),v="";if(r>0){var f=n.getMilliseconds(),d=Math.floor(f*Math.pow(10,r-3));v="."+e2(d,r)}var M="",g=n.getTimezoneOffset();if(g!==0){var H=Math.abs(g),p=e2(Lt(H/60),2),m=e2(H%60,2),z=g<0?"+":"-";M="".concat(z).concat(p,":").concat(m)}else M="Z";return"".concat(c,"-").concat(l,"-").concat(o,"T").concat(h,":").concat(s,":").concat(u).concat(v).concat(M)}var $T1=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],UT1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function WT1(t){if(arguments.length<1)throw new TypeError("1 arguments required, but only ".concat(arguments.length," present"));var e=A1(t);if(!y5(e))throw new RangeError("Invalid time value");var a=$T1[e.getUTCDay()],n=e2(e.getUTCDate(),2),r=UT1[e.getUTCMonth()],o=e.getUTCFullYear(),l=e2(e.getUTCHours(),2),c=e2(e.getUTCMinutes(),2),h=e2(e.getUTCSeconds(),2);return"".concat(a,", ").concat(n," ").concat(r," ").concat(o," ").concat(l,":").concat(c,":").concat(h," GMT")}function qT1(t,e,a){var n,r,o,l,c,h,s,u,v,f;g1(2,arguments);var d=A1(t),M=A1(e),g=Ze(),H=(n=(r=a==null?void 0:a.locale)!==null&&r!==void 0?r:g.locale)!==null&&n!==void 0?n:$c,p=Lt((o=(l=(c=(h=a==null?void 0:a.weekStartsOn)!==null&&h!==void 0?h:a==null||(s=a.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&c!==void 0?c:g.weekStartsOn)!==null&&l!==void 0?l:(v=g.locale)===null||v===void 0||(f=v.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&o!==void 0?o:0);if(!H.localize)throw new RangeError("locale must contain localize property");if(!H.formatLong)throw new RangeError("locale must contain formatLong property");if(!H.formatRelative)throw new RangeError("locale must contain formatRelative property");var m=yi(d,M);if(isNaN(m))throw new RangeError("Invalid time value");var z;m<-6?z="other":m<-1?z="lastWeek":m<0?z="yesterday":m<1?z="today":m<2?z="tomorrow":m<7?z="nextWeek":z="other";var w=vc(d,za(d)),x=vc(M,za(M)),y=H.formatRelative(z,w,x,{locale:H,weekStartsOn:p});return fc(d,y,{locale:H,weekStartsOn:p})}function GT1(t){g1(1,arguments);var e=Lt(t);return A1(e*1e3)}function M11(t){g1(1,arguments);var e=A1(t),a=e.getDate();return a}function fM(t){g1(1,arguments);var e=A1(t),a=e.getDay();return a}function KT1(t){g1(1,arguments);var e=A1(t),a=yi(e,jT(e)),n=a+1;return n}function H11(t){g1(1,arguments);var e=A1(t),a=e.getFullYear(),n=e.getMonth(),r=new Date(0);return r.setFullYear(a,n+1,0),r.setHours(0,0,0,0),r.getDate()}function w11(t){g1(1,arguments);var e=A1(t),a=e.getFullYear();return a%400===0||a%4===0&&a%100!==0}function YT1(t){g1(1,arguments);var e=A1(t);return String(new Date(e))==="Invalid Date"?NaN:w11(e)?366:365}function ZT1(t){g1(1,arguments);var e=A1(t),a=e.getFullYear(),n=Math.floor(a/10)*10;return n}function QT1(){return Qh({},Ze())}function XT1(t){g1(1,arguments);var e=A1(t),a=e.getHours();return a}function y11(t){g1(1,arguments);var e=A1(t),a=e.getDay();return a===0&&(a=7),a}var JT1=6048e5;function x11(t){g1(1,arguments);var e=A1(t),a=_5(e).getTime()-po(e).getTime();return Math.round(a/JT1)+1}var tO1=6048e5;function eO1(t){g1(1,arguments);var e=po(t),a=po(oM(e,60)),n=a.valueOf()-e.valueOf();return Math.round(n/tO1)}function aO1(t){g1(1,arguments);var e=A1(t),a=e.getMilliseconds();return a}function nO1(t){g1(1,arguments);var e=A1(t),a=e.getMinutes();return a}function rO1(t){g1(1,arguments);var e=A1(t),a=e.getMonth();return a}var iO1=24*60*60*1e3;function oO1(t,e){g1(2,arguments);var a=t||{},n=e||{},r=A1(a.start).getTime(),o=A1(a.end).getTime(),l=A1(n.start).getTime(),c=A1(n.end).getTime();if(!(r<=o&&l<=c))throw new RangeError("Invalid interval");var h=ro?o:c,v=u-s;return Math.ceil(v/iO1)}function lO1(t){g1(1,arguments);var e=A1(t),a=e.getSeconds();return a}function V11(t){g1(1,arguments);var e=A1(t),a=e.getTime();return a}function cO1(t){return g1(1,arguments),Math.floor(V11(t)/1e3)}function C11(t,e){var a,n,r,o,l,c,h,s;g1(1,arguments);var u=A1(t),v=u.getFullYear(),f=Ze(),d=Lt((a=(n=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:f.firstWeekContainsDate)!==null&&n!==void 0?n:(h=f.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=new Date(0);M.setFullYear(v+1,0,d),M.setHours(0,0,0,0);var g=Zn(M,e),H=new Date(0);H.setFullYear(v,0,d),H.setHours(0,0,0,0);var p=Zn(H,e);return u.getTime()>=g.getTime()?v+1:u.getTime()>=p.getTime()?v:v-1}function up(t,e){var a,n,r,o,l,c,h,s;g1(1,arguments);var u=Ze(),v=Lt((a=(n=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:u.firstWeekContainsDate)!==null&&n!==void 0?n:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:1),f=C11(t,e),d=new Date(0);d.setFullYear(f,0,v),d.setHours(0,0,0,0);var M=Zn(d,e);return M}var sO1=6048e5;function b11(t,e){g1(1,arguments);var a=A1(t),n=Zn(a,e).getTime()-up(a,e).getTime();return Math.round(n/sO1)+1}function hO1(t,e){var a,n,r,o,l,c,h,s;g1(1,arguments);var u=Ze(),v=Lt((a=(n=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&n!==void 0?n:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=M11(t);if(isNaN(f))return NaN;var d=fM(dM(t)),M=v-d;M<=0&&(M+=7);var g=f-M;return Math.ceil(g/7)+1}function L11(t){g1(1,arguments);var e=A1(t),a=e.getMonth();return e.setFullYear(e.getFullYear(),a+1,0),e.setHours(0,0,0,0),e}function uO1(t,e){return g1(1,arguments),cp(L11(t),dM(t),e)+1}function vO1(t){return g1(1,arguments),A1(t).getFullYear()}function dO1(t){return g1(1,arguments),Math.floor(t*wl)}function fO1(t){return g1(1,arguments),Math.floor(t*TT)}function gO1(t){return g1(1,arguments),Math.floor(t*Zh)}function pO1(t){g1(1,arguments);var e=A1(t.start),a=A1(t.end);if(isNaN(e.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(a.getTime()))throw new RangeError("End Date is invalid");var n={};n.years=Math.abs(v11(a,e));var r=_r(a,e),o=M8(e,{years:r*n.years});n.months=Math.abs(vM(a,o));var l=M8(o,{months:r*n.months});n.days=Math.abs(hM(a,l));var c=M8(l,{days:r*n.days});n.hours=Math.abs(Zs(a,c));var h=M8(c,{hours:r*n.hours});n.minutes=Math.abs(Qs(a,h));var s=M8(h,{minutes:r*n.minutes});return n.seconds=Math.abs(j6(a,s)),n}function mO1(t,e,a){var n;g1(1,arguments);var r;return zO1(e)?r=e:a=e,new Intl.DateTimeFormat((n=a)===null||n===void 0?void 0:n.locale,r).format(t)}function zO1(t){return t!==void 0&&!("locale"in t)}function MO1(t,e,a){g1(2,arguments);var n=0,r,o=A1(t),l=A1(e);if(a!=null&&a.unit)r=a==null?void 0:a.unit,r==="second"?n=j6(o,l):r==="minute"?n=Qs(o,l):r==="hour"?n=Zs(o,l):r==="day"?n=yi(o,l):r==="week"?n=cp(o,l):r==="month"?n=lp(o,l):r==="quarter"?n=Of(o,l):r==="year"&&(n=cs(o,l));else{var c=j6(o,l);Math.abs(c)n.getTime()}function HO1(t,e){g1(2,arguments);var a=A1(t),n=A1(e);return a.getTime()Date.now()}function _I(t,e){var a=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=Pm(t))||e&&t&&typeof t.length=="number"){a&&(t=a);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(s){throw s},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,l=!1,c;return{s:function(){a=a.call(t)},n:function(){var s=a.next();return o=s.done,s},e:function(s){l=!0,c=s},f:function(){try{!o&&a.return!=null&&a.return()}finally{if(l)throw c}}}}var bO1=10,_11=function(){function t(){Jt(this,t),u1(this,"priority",void 0),u1(this,"subPriority",0)}return t2(t,[{key:"validate",value:function(a,n){return!0}}]),t}(),LO1=function(t){M2(a,t);var e=B2(a);function a(n,r,o,l,c){var h;return Jt(this,a),h=e.call(this),h.value=n,h.validateValue=r,h.setValue=o,h.priority=l,c&&(h.subPriority=c),h}return t2(a,[{key:"validate",value:function(r,o){return this.validateValue(r,this.value,o)}},{key:"set",value:function(r,o,l){return this.setValue(r,o,this.value,l)}}]),a}(_11),BO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l0,n=a?e:1-e,r;if(n<=50)r=t||100;else{var o=n+50,l=Math.floor(o/100)*100,c=t>=o%100;r=t+l-(c?100:0)}return a?r:1-r}function O11(t){return t%400===0||t%4===0&&t%100!==0}var SO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l0}},{key:"set",value:function(r,o,l){var c=r.getUTCFullYear();if(l.isTwoDigitYear){var h=T11(l.year,c);return r.setUTCFullYear(h,0,1),r.setUTCHours(0,0,0,0),r}var s=!("era"in o)||o.era===1?l.year:1-l.year;return r.setUTCFullYear(s,0,1),r.setUTCHours(0,0,0,0),r}}]),a}(s0),TO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l0}},{key:"set",value:function(r,o,l,c){var h=rS(r,c);if(l.isTwoDigitYear){var s=T11(l.year,h);return r.setUTCFullYear(s,0,c.firstWeekContainsDate),r.setUTCHours(0,0,0,0),x5(r,c)}var u=!("era"in o)||o.era===1?l.year:1-l.year;return r.setUTCFullYear(u,0,c.firstWeekContainsDate),r.setUTCHours(0,0,0,0),x5(r,c)}}]),a}(s0),OO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=4}},{key:"set",value:function(r,o,l){return r.setUTCMonth((l-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),a}(s0),EO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=4}},{key:"set",value:function(r,o,l){return r.setUTCMonth((l-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),a}(s0),PO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=11}},{key:"set",value:function(r,o,l){return r.setUTCMonth(l,1),r.setUTCHours(0,0,0,0),r}}]),a}(s0),NO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=11}},{key:"set",value:function(r,o,l){return r.setUTCMonth(l,1),r.setUTCHours(0,0,0,0),r}}]),a}(s0);function DO1(t,e,a){g1(2,arguments);var n=A1(t),r=Lt(e),o=rY(n,a)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}var RO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=53}},{key:"set",value:function(r,o,l,c){return x5(DO1(r,l,c),c)}}]),a}(s0);function jO1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e),r=aY(a)-n;return a.setUTCDate(a.getUTCDate()-r*7),a}var IO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=53}},{key:"set",value:function(r,o,l){return dc(jO1(r,l))}}]),a}(s0),FO1=[31,28,31,30,31,30,31,31,30,31,30,31],$O1=[31,29,31,30,31,30,31,31,30,31,30,31],UO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=$O1[h]:o>=1&&o<=FO1[h]}},{key:"set",value:function(r,o,l){return r.setUTCDate(l),r.setUTCHours(0,0,0,0),r}}]),a}(s0),WO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(r,o,l){return r.setUTCMonth(0,l),r.setUTCHours(0,0,0,0),r}}]),a}(s0);function FT(t,e,a){var n,r,o,l,c,h,s,u;g1(2,arguments);var v=Ze(),f=Lt((n=(r=(o=(l=a==null?void 0:a.weekStartsOn)!==null&&l!==void 0?l:a==null||(c=a.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&o!==void 0?o:v.weekStartsOn)!==null&&r!==void 0?r:(s=v.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=A1(t),M=Lt(e),g=d.getUTCDay(),H=M%7,p=(H+7)%7,m=(p=0&&o<=6}},{key:"set",value:function(r,o,l,c){return r=FT(r,l,c),r.setUTCHours(0,0,0,0),r}}]),a}(s0),GO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=6}},{key:"set",value:function(r,o,l,c){return r=FT(r,l,c),r.setUTCHours(0,0,0,0),r}}]),a}(s0),KO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=6}},{key:"set",value:function(r,o,l,c){return r=FT(r,l,c),r.setUTCHours(0,0,0,0),r}}]),a}(s0);function YO1(t,e){g1(2,arguments);var a=Lt(e);a%7===0&&(a=a-7);var n=1,r=A1(t),o=r.getUTCDay(),l=a%7,c=(l+7)%7,h=(c=1&&o<=7}},{key:"set",value:function(r,o,l){return r=YO1(r,l),r.setUTCHours(0,0,0,0),r}}]),a}(s0),QO1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=12}},{key:"set",value:function(r,o,l){var c=r.getUTCHours()>=12;return c&&l<12?r.setUTCHours(l+12,0,0,0):!c&&l===12?r.setUTCHours(0,0,0,0):r.setUTCHours(l,0,0,0),r}}]),a}(s0),eA1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=23}},{key:"set",value:function(r,o,l){return r.setUTCHours(l,0,0,0),r}}]),a}(s0),aA1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=11}},{key:"set",value:function(r,o,l){var c=r.getUTCHours()>=12;return c&&l<12?r.setUTCHours(l+12,0,0,0):r.setUTCHours(l,0,0,0),r}}]),a}(s0),nA1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&o<=24}},{key:"set",value:function(r,o,l){var c=l<=24?l%24:l;return r.setUTCHours(c,0,0,0),r}}]),a}(s0),rA1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=59}},{key:"set",value:function(r,o,l){return r.setUTCMinutes(l,0,0),r}}]),a}(s0),iA1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=0&&o<=59}},{key:"set",value:function(r,o,l){return r.setUTCSeconds(l,0),r}}]),a}(s0),oA1=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=Lt((M=(g=(H=(p=n==null?void 0:n.weekStartsOn)!==null&&p!==void 0?p:n==null||(m=n.locale)===null||m===void 0||(z=m.options)===null||z===void 0?void 0:z.weekStartsOn)!==null&&H!==void 0?H:C.weekStartsOn)!==null&&g!==void 0?g:(w=C.locale)===null||w===void 0||(x=w.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&M!==void 0?M:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(V==="")return y===""?A1(a):new Date(NaN);var T={firstWeekContainsDate:B,weekStartsOn:S,locale:L},E=[new BO1],$=V.match(dA1).map(function(s1){var z1=s1[0];if(z1 in Hb){var m1=Hb[z1];return m1(s1,L.formatLong)}return s1}).join("").match(vA1),q=[],U=_I($),Y;try{var F=function(){var z1=Y.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&lY(z1)&&Sg(z1,V,t),!(n!=null&&n.useAdditionalDayOfYearTokens)&&oY(z1)&&Sg(z1,V,t);var m1=z1[0],S1=uA1[m1];if(S1){var I1=S1.incompatibleTokens;if(Array.isArray(I1)){var U1=q.find(function(G1){return I1.includes(G1.token)||G1.token===m1});if(U1)throw new RangeError("The format string mustn't contain `".concat(U1.fullToken,"` and `").concat(z1,"` at the same time"))}else if(S1.incompatibleTokens==="*"&&q.length>0)throw new RangeError("The format string mustn't contain `".concat(z1,"` and any other token at the same time"));q.push({token:m1,fullToken:z1});var P1=S1.run(y,z1,L.match,T);if(!P1)return{v:new Date(NaN)};E.push(P1.setter),y=P1.rest}else{if(m1.match(mA1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m1+"`");if(z1==="''"?z1="'":m1==="'"&&(z1=zA1(z1)),y.indexOf(z1)===0)y=y.slice(z1.length);else return{v:new Date(NaN)}}};for(U.s();!(Y=U.n()).done;){var X=F();if(C2(X)==="object")return X.v}}catch(s1){U.e(s1)}finally{U.f()}if(y.length>0&&pA1.test(y))return new Date(NaN);var R=E.map(function(s1){return s1.priority}).sort(function(s1,z1){return z1-s1}).filter(function(s1,z1,m1){return m1.indexOf(s1)===z1}).map(function(s1){return E.filter(function(z1){return z1.priority===s1}).sort(function(z1,m1){return m1.subPriority-z1.subPriority})}).map(function(s1){return s1[0]}),i1=A1(a);if(isNaN(i1.getTime()))return new Date(NaN);var t1=vc(i1,za(i1)),A={},o1=_I(R),h1;try{for(o1.s();!(h1=o1.n()).done;){var a1=h1.value;if(!a1.validate(t1,T))return new Date(NaN);var M1=a1.set(t1,A,T);Array.isArray(M1)?(t1=M1[0],Qh(A,M1[1])):t1=M1}}catch(s1){o1.e(s1)}finally{o1.f()}return t1}function zA1(t){return t.match(fA1)[1].replace(gA1,"'")}function MA1(t,e,a){return g1(2,arguments),y5(A11(t,e,new Date,a))}function HA1(t){return g1(1,arguments),A1(t).getDay()===1}function wA1(t){return g1(1,arguments),A1(t).getTime()=n&&a<=r}function gM(t,e){g1(2,arguments);var a=Lt(e);return Ci(t,-a)}function PA1(t){return g1(1,arguments),Oh(t,gM(Date.now(),1))}function NA1(t){g1(1,arguments);var e=A1(t),a=e.getFullYear(),n=9+Math.floor(a/10)*10;return e.setFullYear(n+1,0,0),e.setHours(0,0,0,0),e}function I11(t,e){var a,n,r,o,l,c,h,s;g1(1,arguments);var u=Ze(),v=Lt((a=(n=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&n!==void 0?n:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var f=A1(t),d=f.getDay(),M=(d2)return e;if(/:/.test(a[0])?n=a[0]:(e.date=a[0],n=a[1],Dd.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Dd.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){var r=Dd.timezone.exec(n);r?(e.time=n.replace(r[1],""),e.timezone=r[1]):e.time=n}return e}function gk1(t,e){var a=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(a);if(!n)return{year:NaN,restDateString:""};var r=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?r:o*100,restDateString:t.slice((n[1]||n[2]).length)}}function pk1(t,e){if(e===null)return new Date(NaN);var a=t.match(uk1);if(!a)return new Date(NaN);var n=!!a[4],r=i7(a[1]),o=i7(a[2])-1,l=i7(a[3]),c=i7(a[4]),h=i7(a[5])-1;if(n)return xk1(e,c,h)?Mk1(e,c,h):new Date(NaN);var s=new Date(0);return!wk1(e,o,l)||!yk1(e,r)?new Date(NaN):(s.setUTCFullYear(e,o,Math.max(r,l)),s)}function i7(t){return t?parseInt(t):1}function mk1(t){var e=t.match(vk1);if(!e)return NaN;var a=gV(e[1]),n=gV(e[2]),r=gV(e[3]);return Vk1(a,n,r)?a*wl+n*Hl+r*1e3:NaN}function gV(t){return t&&parseFloat(t.replace(",","."))||0}function zk1(t){if(t==="Z")return 0;var e=t.match(dk1);if(!e)return 0;var a=e[1]==="+"?-1:1,n=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return Ck1(n,r)?a*(n*wl+r*Hl):NaN}function Mk1(t,e,a){var n=new Date(0);n.setUTCFullYear(t,0,4);var r=n.getUTCDay()||7,o=(e-1)*7+a+1-r;return n.setUTCDate(n.getUTCDate()+o),n}var Hk1=[31,null,31,30,31,30,31,31,30,31,30,31];function F11(t){return t%400===0||t%4===0&&t%100!==0}function wk1(t,e,a){return e>=0&&e<=11&&a>=1&&a<=(Hk1[e]||(F11(t)?29:28))}function yk1(t,e){return e>=1&&e<=(F11(t)?366:365)}function xk1(t,e,a){return e>=1&&e<=53&&a>=0&&a<=6}function Vk1(t,e,a){return t===24?e===0&&a===0:a>=0&&a<60&&e>=0&&e<60&&t>=0&&t<25}function Ck1(t,e){return e>=0&&e<=59}function bk1(t){if(g1(1,arguments),typeof t=="string"){var e=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return e?new Date(Date.UTC(+e[1],+e[2]-1,+e[3],+e[4]-(+e[9]||0)*(e[8]=="-"?-1:1),+e[5]-(+e[10]||0)*(e[8]=="-"?-1:1),+e[6],+((e[7]||"0")+"00").substring(0,3))):new Date(NaN)}return A1(t)}function ko(t,e){g1(2,arguments);var a=fM(t)-e;return a<=0&&(a+=7),gM(t,a)}function Lk1(t){return g1(1,arguments),ko(t,5)}function Bk1(t){return g1(1,arguments),ko(t,1)}function _k1(t){return g1(1,arguments),ko(t,6)}function Sk1(t){return g1(1,arguments),ko(t,0)}function Tk1(t){return g1(1,arguments),ko(t,4)}function Ok1(t){return g1(1,arguments),ko(t,2)}function Ak1(t){return g1(1,arguments),ko(t,3)}function kk1(t){return g1(1,arguments),Math.floor(t*OT)}function Ek1(t){g1(1,arguments);var e=t/kT;return Math.floor(e)}function Pk1(t,e){var a;if(arguments.length<1)throw new TypeError("1 argument required, but only none provided present");var n=Lt((a=e==null?void 0:e.nearestTo)!==null&&a!==void 0?a:1);if(n<1||n>30)throw new RangeError("`options.nearestTo` must be between 1 and 30");var r=A1(t),o=r.getSeconds(),l=r.getMinutes()+o/60,c=e9(e==null?void 0:e.roundingMethod),h=c(l/n)*n,s=l%n,u=Math.round(s/n)*n;return new Date(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),h+u)}function Nk1(t){g1(1,arguments);var e=t/Zh;return Math.floor(e)}function Dk1(t){return g1(1,arguments),t*lM}function Rk1(t){g1(1,arguments);var e=t/cM;return Math.floor(e)}function UT(t,e){g1(2,arguments);var a=A1(t),n=Lt(e),r=a.getFullYear(),o=a.getDate(),l=new Date(0);l.setFullYear(r,n,15),l.setHours(0,0,0,0);var c=H11(l);return a.setMonth(n,Math.min(o,c)),a}function jk1(t,e){if(g1(2,arguments),C2(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var a=A1(t);return isNaN(a.getTime())?new Date(NaN):(e.year!=null&&a.setFullYear(e.year),e.month!=null&&(a=UT(a,e.month)),e.date!=null&&a.setDate(Lt(e.date)),e.hours!=null&&a.setHours(Lt(e.hours)),e.minutes!=null&&a.setMinutes(Lt(e.minutes)),e.seconds!=null&&a.setSeconds(Lt(e.seconds)),e.milliseconds!=null&&a.setMilliseconds(Lt(e.milliseconds)),a)}function Ik1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e);return a.setDate(n),a}function Fk1(t,e,a){var n,r,o,l,c,h,s,u;g1(2,arguments);var v=Ze(),f=Lt((n=(r=(o=(l=a==null?void 0:a.weekStartsOn)!==null&&l!==void 0?l:a==null||(c=a.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&o!==void 0?o:v.weekStartsOn)!==null&&r!==void 0?r:(s=v.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=A1(t),M=Lt(e),g=d.getDay(),H=M%7,p=(H+7)%7,m=7-f,z=M<0||M>6?M-(g+m)%7:(p+m)%7-(g+m)%7;return Ci(d,z)}function $k1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e);return a.setMonth(0),a.setDate(n),a}function HL(t){g1(1,arguments);var e={},a=Ze();for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]===void 0?delete e[r]:e[r]=t[r]);Y71(e)}function Uk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e);return a.setHours(n),a}function Wk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e),r=y11(a),o=n-r;return Ci(a,o)}function qk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e),r=x11(a)-n;return a.setDate(a.getDate()-r*7),a}function Gk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e);return a.setMilliseconds(n),a}function Kk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e);return a.setMinutes(n),a}function Yk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e),r=Math.floor(a.getMonth()/3)+1,o=n-r;return UT(a,a.getMonth()+o*3)}function Zk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e);return a.setSeconds(n),a}function Qk1(t,e,a){g1(2,arguments);var n=A1(t),r=Lt(e),o=b11(n,a)-r;return n.setDate(n.getDate()-o*7),n}function Xk1(t,e,a){var n,r,o,l,c,h,s,u;g1(2,arguments);var v=Ze(),f=Lt((n=(r=(o=(l=a==null?void 0:a.firstWeekContainsDate)!==null&&l!==void 0?l:a==null||(c=a.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:v.firstWeekContainsDate)!==null&&r!==void 0?r:(s=v.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),d=A1(t),M=Lt(e),g=yi(d,up(d,a)),H=new Date(0);return H.setFullYear(M,0,f),H.setHours(0,0,0,0),d=up(H,a),d.setDate(d.getDate()+g),d}function Jk1(t,e){g1(2,arguments);var a=A1(t),n=Lt(e);return isNaN(a.getTime())?new Date(NaN):(a.setFullYear(n),a)}function tE1(t){g1(1,arguments);var e=A1(t),a=e.getFullYear(),n=Math.floor(a/10)*10;return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}function eE1(){return gc(Date.now())}function aE1(){var t=new Date,e=t.getFullYear(),a=t.getMonth(),n=t.getDate(),r=new Date(0);return r.setFullYear(e,a,n+1),r.setHours(0,0,0,0),r}function nE1(){var t=new Date,e=t.getFullYear(),a=t.getMonth(),n=t.getDate(),r=new Date(0);return r.setFullYear(e,a,n-1),r.setHours(0,0,0,0),r}function $11(t,e){g1(2,arguments);var a=Lt(e);return Yh(t,-a)}function rE1(t,e){if(g1(2,arguments),!e||C2(e)!=="object")return new Date(NaN);var a=e.years?Lt(e.years):0,n=e.months?Lt(e.months):0,r=e.weeks?Lt(e.weeks):0,o=e.days?Lt(e.days):0,l=e.hours?Lt(e.hours):0,c=e.minutes?Lt(e.minutes):0,h=e.seconds?Lt(e.seconds):0,s=$11(t,n+a*12),u=gM(s,o+r*7),v=c+l*60,f=h+v*60,d=f*1e3,M=new Date(u.getTime()-d);return M}function iE1(t,e){g1(2,arguments);var a=Lt(e);return XJ(t,-a)}function oE1(t,e){g1(2,arguments);var a=Lt(e);return LT(t,-a)}function lE1(t,e){g1(2,arguments);var a=Lt(e);return BT(t,-a)}function cE1(t,e){g1(2,arguments);var a=Lt(e);return _T(t,-a)}function sE1(t,e){g1(2,arguments);var a=Lt(e);return e11(t,-a)}function hE1(t,e){g1(2,arguments);var a=Lt(e);return oM(t,-a)}function uE1(t,e){g1(2,arguments);var a=Lt(e);return a11(t,-a)}function vE1(t){return g1(1,arguments),Math.floor(t*ST)}function dE1(t){return g1(1,arguments),Math.floor(t*AT)}function fE1(t){return g1(1,arguments),Math.floor(t*kT)}const gE1=Object.freeze(Object.defineProperty({__proto__:null,add:M8,addBusinessDays:XJ,addDays:Ci,addHours:LT,addISOWeekYears:t11,addMilliseconds:Th,addMinutes:BT,addMonths:Yh,addQuarters:_T,addSeconds:e11,addWeeks:oM,addYears:a11,areIntervalsOverlapping:tT1,clamp:eT1,closestIndexTo:aT1,closestTo:nT1,compareAsc:_r,compareDesc:rT1,daysInWeek:ST,daysInYear:i11,daysToWeeks:oT1,differenceInBusinessDays:lT1,differenceInCalendarDays:yi,differenceInCalendarISOWeekYears:s11,differenceInCalendarISOWeeks:sT1,differenceInCalendarMonths:lp,differenceInCalendarQuarters:Of,differenceInCalendarWeeks:cp,differenceInCalendarYears:cs,differenceInDays:hM,differenceInHours:Zs,differenceInISOWeekYears:vT1,differenceInMilliseconds:uM,differenceInMinutes:Qs,differenceInMonths:vM,differenceInQuarters:dT1,differenceInSeconds:j6,differenceInWeeks:fT1,differenceInYears:v11,eachDayOfInterval:d11,eachHourOfInterval:gT1,eachMinuteOfInterval:pT1,eachMonthOfInterval:mT1,eachQuarterOfInterval:zT1,eachWeekOfInterval:MT1,eachWeekendOfInterval:RT,eachWeekendOfMonth:HT1,eachWeekendOfYear:wT1,eachYearOfInterval:yT1,endOfDay:NT,endOfDecade:xT1,endOfHour:VT1,endOfISOWeek:CT1,endOfISOWeekYear:bT1,endOfMinute:LT1,endOfMonth:DT,endOfQuarter:BT1,endOfSecond:_T1,endOfToday:ST1,endOfTomorrow:TT1,endOfWeek:g11,endOfYear:f11,endOfYesterday:OT1,format:fc,formatDistance:m11,formatDistanceStrict:z11,formatDistanceToNow:ET1,formatDistanceToNowStrict:PT1,formatDuration:DT1,formatISO:RT1,formatISO9075:jT1,formatISODuration:IT1,formatRFC3339:FT1,formatRFC7231:WT1,formatRelative:qT1,fromUnixTime:GT1,getDate:M11,getDay:fM,getDayOfYear:KT1,getDaysInMonth:H11,getDaysInYear:YT1,getDecade:ZT1,getDefaultOptions:QT1,getHours:XT1,getISODay:y11,getISOWeek:x11,getISOWeekYear:tl,getISOWeeksInYear:eO1,getMilliseconds:aO1,getMinutes:nO1,getMonth:rO1,getOverlappingDaysInIntervals:oO1,getQuarter:mL,getSeconds:lO1,getTime:V11,getUnixTime:cO1,getWeek:b11,getWeekOfMonth:hO1,getWeekYear:C11,getWeeksInMonth:uO1,getYear:vO1,hoursToMilliseconds:dO1,hoursToMinutes:fO1,hoursToSeconds:gO1,intervalToDuration:pO1,intlFormat:mO1,intlFormatDistance:MO1,isAfter:B11,isBefore:HO1,isDate:tY,isEqual:wO1,isExists:yO1,isFirstDayOfMonth:xO1,isFriday:VO1,isFuture:CO1,isLastDayOfMonth:u11,isLeapYear:w11,isMatch:MA1,isMonday:HA1,isPast:wA1,isSameDay:Oh,isSameHour:k11,isSameISOWeek:E11,isSameISOWeekYear:yA1,isSameMinute:P11,isSameMonth:N11,isSameQuarter:D11,isSameSecond:R11,isSameWeek:$T,isSameYear:j11,isSaturday:QJ,isSunday:bT,isThisHour:xA1,isThisISOWeek:VA1,isThisMinute:CA1,isThisMonth:bA1,isThisQuarter:LA1,isThisSecond:BA1,isThisWeek:_A1,isThisYear:SA1,isThursday:TA1,isToday:dY,isTomorrow:OA1,isTuesday:AA1,isValid:y5,isWednesday:kA1,isWeekend:R6,isWithinInterval:EA1,isYesterday:PA1,lastDayOfDecade:NA1,lastDayOfISOWeek:DA1,lastDayOfISOWeekYear:RA1,lastDayOfMonth:L11,lastDayOfQuarter:jA1,lastDayOfWeek:I11,lastDayOfYear:IA1,lightFormat:qA1,max:n11,maxTime:o11,milliseconds:KA1,millisecondsInHour:wl,millisecondsInMinute:Hl,millisecondsInSecond:lM,millisecondsToHours:YA1,millisecondsToMinutes:ZA1,millisecondsToSeconds:QA1,min:r11,minTime:iT1,minutesInHour:TT,minutesToHours:XA1,minutesToMilliseconds:JA1,minutesToSeconds:tk1,monthsInQuarter:OT,monthsInYear:AT,monthsToQuarters:ek1,monthsToYears:ak1,nextDay:Ao,nextFriday:nk1,nextMonday:rk1,nextSaturday:ik1,nextSunday:ok1,nextThursday:lk1,nextTuesday:ck1,nextWednesday:sk1,parse:A11,parseISO:hk1,parseJSON:bk1,previousDay:ko,previousFriday:Lk1,previousMonday:Bk1,previousSaturday:_k1,previousSunday:Sk1,previousThursday:Tk1,previousTuesday:Ok1,previousWednesday:Ak1,quartersInYear:kT,quartersToMonths:kk1,quartersToYears:Ek1,roundToNearestMinutes:Pk1,secondsInDay:sM,secondsInHour:Zh,secondsInMinute:cM,secondsInMonth:PT,secondsInQuarter:c11,secondsInWeek:l11,secondsInYear:ET,secondsToHours:Nk1,secondsToMilliseconds:Dk1,secondsToMinutes:Rk1,set:jk1,setDate:Ik1,setDay:Fk1,setDayOfYear:$k1,setDefaultOptions:HL,setHours:Uk1,setISODay:Wk1,setISOWeek:qk1,setISOWeekYear:JJ,setMilliseconds:Gk1,setMinutes:Kk1,setMonth:UT,setQuarter:Yk1,setSeconds:Zk1,setWeek:Qk1,setWeekYear:Xk1,setYear:Jk1,startOfDay:gc,startOfDecade:tE1,startOfHour:zL,startOfISOWeek:_5,startOfISOWeekYear:po,startOfMinute:sp,startOfMonth:dM,startOfQuarter:Xs,startOfSecond:ML,startOfToday:eE1,startOfTomorrow:aE1,startOfWeek:Zn,startOfWeekYear:up,startOfYear:jT,startOfYesterday:nE1,sub:rE1,subBusinessDays:iE1,subDays:gM,subHours:oE1,subISOWeekYears:h11,subMilliseconds:vc,subMinutes:lE1,subMonths:$11,subQuarters:cE1,subSeconds:sE1,subWeeks:hE1,subYears:uE1,toDate:A1,weeksToDays:vE1,yearsToMonths:dE1,yearsToQuarters:fE1},Symbol.toStringTag,{value:"Module"})),Xh=se(gE1);var TI;function pE1(){if(TI)return r7;TI=1;var t=b&&b.__assign||function(){return t=Object.assign||function(c){for(var h,s=1,u=arguments.length;s0&&A.every(function(o1){return B==null?void 0:B.includes(o1.id)})&&!x},[B,w,x]),i1=(0,r.useMemo)(function(){return(T==null?void 0:T[0])===void 0?(S==null?void 0:S.id)===w.id:T[0]===w.id},[S==null?void 0:S.id,T,w.id]),J=(0,r.useMemo)(function(){return(T==null?void 0:T.includes(w.id))||(S==null?void 0:S.id)===w.id},[S==null?void 0:S.id,T,w.id]);return(0,n.jsxs)(s.StyledLessonItem,e({className:"lesson__item ".concat(U?"open":"closed"," ").concat(J&&!i1&&U?"full-border":""," ").concat(x?"":"bottom-border"," ").concat(E?"mobile":""),"aria-label":"".concat(y("Course.Lesson")," ").concat(z+1)},{children:[(0,n.jsx)(h.Header,{lesson:w,index:z,open:U,onClick:Y,onToggleClick:F,isSubLesson:x,isModuleFinished:R,isLessonActive:t1}),(0,n.jsx)("ul",e({className:"lesson__topics"},{children:((M=w==null?void 0:w.topics)!==null&&M!==void 0?M:[]).map(function(A,o1){return(0,n.jsx)(c.default,{clickable:C||!C&&U&&!L.includes(A.id),topic:A,index:o1+1},o1)})})),!!(!((g=w.lessons)===null||g===void 0)&&g.length)&&(0,n.jsx)("ul",e({className:"lesson__lessons"},{children:H}))]}))};t.CourseAgendaLesson=f,t.default=t.CourseAgendaLesson}(vV)),vV}var kI;function HE1(){return kI||(kI=1,function(t){var e=b&&b.__assign||function(){return e=Object.assign||function(l){for(var c,h=1,s=arguments.length;h0,index:M,lesson:d,isSubLesson:s>0},{children:(0,a.jsx)(t.RecursiveLessons,{lessons:(g=d.lessons)!==null&&g!==void 0?g:[],depth:s+1})}),d.id)})})};t.RecursiveLessons=o}(hV)),hV}var EI;function wE1(){return EI||(EI=1,function(t){var e=b&&b.__makeTemplateObject||function(p,m){return Object.defineProperty?Object.defineProperty(p,"raw",{value:m}):p.raw=m,p},a=b&&b.__assign||function(){return a=Object.assign||function(p){for(var m,z=1,w=arguments.length;z0&&A.every(function(o1){return B==null?void 0:B.includes(o1.id)})&&!x},[B,w,x]),i1=(0,r.useMemo)(function(){return(T==null?void 0:T[0])===void 0?(S==null?void 0:S.id)===w.id:T[0]===w.id},[S==null?void 0:S.id,T,w.id]),t1=(0,r.useMemo)(function(){return(T==null?void 0:T.includes(w.id))||(S==null?void 0:S.id)===w.id},[S==null?void 0:S.id,T,w.id]);return(0,n.jsxs)(s.StyledLessonItem,e({className:"lesson__item ".concat(q?"open":"closed"," ").concat(t1&&!i1&&q?"full-border":""," ").concat(x?"":"bottom-border"," ").concat(E?"mobile":""),"aria-label":"".concat(y("Course.Lesson")," ").concat(z+1)},{children:[(0,n.jsx)(h.Header,{lesson:w,index:z,open:q,onClick:Y,onToggleClick:F,isSubLesson:x,isModuleFinished:R,isLessonActive:X}),(0,n.jsx)("ul",e({className:"lesson__topics"},{children:((M=w==null?void 0:w.topics)!==null&&M!==void 0?M:[]).map(function(A,o1){return(0,n.jsx)(c.default,{clickable:C||!C&&q&&!L.includes(A.id),topic:A,index:o1+1},o1)})})),!!(!((g=w.lessons)===null||g===void 0)&&g.length)&&(0,n.jsx)("ul",e({className:"lesson__lessons"},{children:H}))]}))};t.CourseAgendaLesson=f,t.default=t.CourseAgendaLesson}(vV)),vV}var kI;function wE1(){return kI||(kI=1,function(t){var e=b&&b.__assign||function(){return e=Object.assign||function(l){for(var c,h=1,s=arguments.length;h0,index:M,lesson:d,isSubLesson:s>0},{children:(0,a.jsx)(t.RecursiveLessons,{lessons:(g=d.lessons)!==null&&g!==void 0?g:[],depth:s+1})}),d.id)})})};t.RecursiveLessons=o}(hV)),hV}var EI;function yE1(){return EI||(EI=1,function(t){var e=b&&b.__makeTemplateObject||function(p,m){return Object.defineProperty?Object.defineProperty(p,"raw",{value:m}):p.raw=m,p},a=b&&b.__assign||function(){return a=Object.assign||function(p){for(var m,z=1,w=arguments.length;z-1}function tP1(t,e){var a=this.__data__,n=mM(a,t);return n<0?(++this.size,a.push([t,e])):a[n][1]=e,this}function F5(t){var e=-1,a=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=tN1}var eN1="[object Arguments]",aN1="[object Array]",nN1="[object Boolean]",rN1="[object Date]",iN1="[object Error]",oN1="[object Function]",lN1="[object Map]",cN1="[object Number]",sN1="[object Object]",hN1="[object RegExp]",uN1="[object Set]",vN1="[object String]",dN1="[object WeakMap]",fN1="[object ArrayBuffer]",gN1="[object DataView]",pN1="[object Float32Array]",mN1="[object Float64Array]",zN1="[object Int8Array]",MN1="[object Int16Array]",HN1="[object Int32Array]",wN1="[object Uint8Array]",yN1="[object Uint8ClampedArray]",xN1="[object Uint16Array]",VN1="[object Uint32Array]",X0={};X0[pN1]=X0[mN1]=X0[zN1]=X0[MN1]=X0[HN1]=X0[wN1]=X0[yN1]=X0[xN1]=X0[VN1]=!0;X0[eN1]=X0[aN1]=X0[fN1]=X0[nN1]=X0[gN1]=X0[rN1]=X0[iN1]=X0[oN1]=X0[lN1]=X0[cN1]=X0[sN1]=X0[hN1]=X0[uN1]=X0[vN1]=X0[dN1]=!1;function CN1(t){return xl(t)&&et1(t.length)&&!!X0[yl(t)]}function qT(t){return function(e){return t(e)}}var at1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ss=at1&&typeof module=="object"&&module&&!module.nodeType&&module,bN1=ss&&ss.exports===at1,zV=bN1&&U11.process,wc=function(){try{var t=ss&&ss.require&&ss.require("util").types;return t||zV&&zV.binding&&zV.binding("util")}catch{}}(),WI=wc&&wc.isTypedArray,LN1=WI?qT(WI):CN1,BN1=Object.prototype,_N1=BN1.hasOwnProperty;function nt1(t,e){var a=tu(t),n=!a&&GP1(t),r=!a&&!n&&tt1(t),o=!a&&!n&&!r&&LN1(t),l=a||n||r||o,c=l?$P1(t.length,String):[],h=c.length;for(var s in t)(e||_N1.call(t,s))&&!(l&&(s=="length"||r&&(s=="offset"||s=="parent")||o&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||JP1(s,h)))&&c.push(s);return c}var SN1=Object.prototype;function GT(t){var e=t&&t.constructor,a=typeof e=="function"&&e.prototype||SN1;return t===a}var TN1=q11(Object.keys,Object),ON1=Object.prototype,AN1=ON1.hasOwnProperty;function kN1(t){if(!GT(t))return TN1(t);var e=[];for(var a in Object(t))AN1.call(t,a)&&a!="constructor"&&e.push(a);return e}function rt1(t){return t!=null&&et1(t.length)&&!Y11(t)}function KT(t){return rt1(t)?nt1(t):kN1(t)}function EN1(t,e){return t&&MM(e,KT(e),t)}function PN1(t){var e=[];if(t!=null)for(var a in Object(t))e.push(a);return e}var NN1=Object.prototype,DN1=NN1.hasOwnProperty;function RN1(t){if(!Jh(t))return PN1(t);var e=GT(t),a=[];for(var n in t)n=="constructor"&&(e||!DN1.call(t,n))||a.push(n);return a}function YT(t){return rt1(t)?nt1(t,!0):RN1(t)}function jN1(t,e){return t&&MM(e,YT(e),t)}var it1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qI=it1&&typeof module=="object"&&module&&!module.nodeType&&module,IN1=qI&&qI.exports===it1,GI=IN1?Ti.Buffer:void 0,KI=GI?GI.allocUnsafe:void 0;function FN1(t,e){if(e)return t.slice();var a=t.length,n=KI?KI(a):new t.constructor(a);return t.copy(n),n}function ot1(t,e){var a=-1,n=t.length;for(e||(e=Array(n));++a=0)&&(a[r]=t[r]);return a}function hF(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var eu=_.createContext(void 0);eu.displayName="FormikContext";var mt1=eu.Provider,zt1=eu.Consumer;function wM(){var t=_.useContext(eu);return t}var LL=function(e){return Array.isArray(e)&&e.length===0},Ue=function(e){return typeof e=="function"},S5=function(e){return e!==null&&typeof e=="object"},Mt1=function(e){return String(Math.floor(Number(e)))===e},Af=function(e){return Object.prototype.toString.call(e)==="[object String]"},LR1=function(e){return e!==e},yM=function(e){return _.Children.count(e)===0},kf=function(e){return S5(e)&&Ue(e.then)},BR1=function(e){return e&&S5(e)&&S5(e.target)};function _R1(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function $2(t,e,a,n){n===void 0&&(n=0);for(var r=pt1(e);t&&n=0?[]:{}}}return(o===0?t:r)[l[o]]===a?t:(a===void 0?delete r[l[o]]:r[l[o]]=a,o===0&&a===void 0&&delete n[l[o]],n)}function eO(t,e,a,n){a===void 0&&(a=new WeakMap),n===void 0&&(n={});for(var r=0,o=Object.keys(t);r0?q1.map(function(H1){return B(H1,$2(V1,H1))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(B1).then(function(H1){return H1.reduce(function(b1,X,f1){return X==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||X&&(b1=Sr(b1,q1[f1],X)),b1},{})})},[B]),T=_.useCallback(function(V1){return Promise.all([S(V1),f.validationSchema?L(V1):{},f.validate?C(V1):{}]).then(function(q1){var B1=q1[0],H1=q1[1],b1=q1[2],X=wL.all([B1,H1,b1],{arrayMerge:TR1});return X})},[f.validate,f.validationSchema,S,C,L]),E=Vn(function(V1){return V1===void 0&&(V1=y.values),V({type:"SET_ISVALIDATING",payload:!0}),T(V1).then(function(q1){return p.current&&(V({type:"SET_ISVALIDATING",payload:!1}),V({type:"SET_ERRORS",payload:q1})),q1})});_.useEffect(function(){l&&p.current===!0&&S3(d.current,f.initialValues)&&E(d.current)},[l,E]);var $=_.useCallback(function(V1){var q1=V1&&V1.values?V1.values:d.current,B1=V1&&V1.errors?V1.errors:M.current?M.current:f.initialErrors||{},H1=V1&&V1.touched?V1.touched:g.current?g.current:f.initialTouched||{},b1=V1&&V1.status?V1.status:H.current?H.current:f.initialStatus;d.current=q1,M.current=B1,g.current=H1,H.current=b1;var X=function(){V({type:"RESET_FORM",payload:{isSubmitting:!!V1&&!!V1.isSubmitting,errors:B1,touched:H1,status:b1,values:q1,isValidating:!!V1&&!!V1.isValidating,submitCount:V1&&V1.submitCount&&typeof V1.submitCount=="number"?V1.submitCount:0}})};if(f.onReset){var f1=f.onReset(y.values,U1);kf(f1)?f1.then(X):X()}else X()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);_.useEffect(function(){p.current===!0&&!S3(d.current,f.initialValues)&&s&&(d.current=f.initialValues,$(),l&&E(d.current))},[s,f.initialValues,$,l,E]),_.useEffect(function(){s&&p.current===!0&&!S3(M.current,f.initialErrors)&&(M.current=f.initialErrors||r8,V({type:"SET_ERRORS",payload:f.initialErrors||r8}))},[s,f.initialErrors]),_.useEffect(function(){s&&p.current===!0&&!S3(g.current,f.initialTouched)&&(g.current=f.initialTouched||Rd,V({type:"SET_TOUCHED",payload:f.initialTouched||Rd}))},[s,f.initialTouched]),_.useEffect(function(){s&&p.current===!0&&!S3(H.current,f.initialStatus)&&(H.current=f.initialStatus,V({type:"SET_STATUS",payload:f.initialStatus}))},[s,f.initialStatus,f.initialTouched]);var U=Vn(function(V1){if(m.current[V1]&&Ue(m.current[V1].validate)){var q1=$2(y.values,V1),B1=m.current[V1].validate(q1);return kf(B1)?(V({type:"SET_ISVALIDATING",payload:!0}),B1.then(function(H1){return H1}).then(function(H1){V({type:"SET_FIELD_ERROR",payload:{field:V1,value:H1}}),V({type:"SET_ISVALIDATING",payload:!1})})):(V({type:"SET_FIELD_ERROR",payload:{field:V1,value:B1}}),Promise.resolve(B1))}else if(f.validationSchema)return V({type:"SET_ISVALIDATING",payload:!0}),L(y.values,V1).then(function(H1){return H1}).then(function(H1){V({type:"SET_FIELD_ERROR",payload:{field:V1,value:$2(H1,V1)}}),V({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),W=_.useCallback(function(V1,q1){var B1=q1.validate;m.current[V1]={validate:B1}},[]),Y=_.useCallback(function(V1){delete m.current[V1]},[]),F=Vn(function(V1,q1){V({type:"SET_TOUCHED",payload:V1});var B1=q1===void 0?r:q1;return B1?E(y.values):Promise.resolve()}),t1=_.useCallback(function(V1){V({type:"SET_ERRORS",payload:V1})},[]),R=Vn(function(V1,q1){var B1=Ue(V1)?V1(y.values):V1;V({type:"SET_VALUES",payload:B1});var H1=q1===void 0?a:q1;return H1?E(B1):Promise.resolve()}),i1=_.useCallback(function(V1,q1){V({type:"SET_FIELD_ERROR",payload:{field:V1,value:q1}})},[]),J=Vn(function(V1,q1,B1){V({type:"SET_FIELD_VALUE",payload:{field:V1,value:q1}});var H1=B1===void 0?a:B1;return H1?E(Sr(y.values,V1,q1)):Promise.resolve()}),A=_.useCallback(function(V1,q1){var B1=q1,H1=V1,b1;if(!Af(V1)){V1.persist&&V1.persist();var X=V1.target?V1.target:V1.currentTarget,f1=X.type,e1=X.name,G=X.id,r1=X.value,P=X.checked,q=X.outerHTML,Z=X.options,l1=X.multiple;B1=q1||e1||G,H1=/number|range/.test(f1)?(b1=parseFloat(r1),isNaN(b1)?"":b1):/checkbox/.test(f1)?AR1($2(y.values,B1),P,r1):Z&&l1?OR1(Z):r1}B1&&J(B1,H1)},[J,y.values]),o1=Vn(function(V1){if(Af(V1))return function(q1){return A(q1,V1)};A(V1)}),h1=Vn(function(V1,q1,B1){q1===void 0&&(q1=!0),V({type:"SET_FIELD_TOUCHED",payload:{field:V1,value:q1}});var H1=B1===void 0?r:B1;return H1?E(y.values):Promise.resolve()}),a1=_.useCallback(function(V1,q1){V1.persist&&V1.persist();var B1=V1.target,H1=B1.name,b1=B1.id,X=B1.outerHTML,f1=q1||H1||b1;h1(f1,!0)},[h1]),M1=Vn(function(V1){if(Af(V1))return function(q1){return a1(q1,V1)};a1(V1)}),s1=_.useCallback(function(V1){Ue(V1)?V({type:"SET_FORMIK_STATE",payload:V1}):V({type:"SET_FORMIK_STATE",payload:function(){return V1}})},[]),z1=_.useCallback(function(V1){V({type:"SET_STATUS",payload:V1})},[]),m1=_.useCallback(function(V1){V({type:"SET_ISSUBMITTING",payload:V1})},[]),S1=Vn(function(){return V({type:"SUBMIT_ATTEMPT"}),E().then(function(V1){var q1=V1 instanceof Error,B1=!q1&&Object.keys(V1).length===0;if(B1){var H1;try{if(H1=P1(),H1===void 0)return}catch(b1){throw b1}return Promise.resolve(H1).then(function(b1){return p.current&&V({type:"SUBMIT_SUCCESS"}),b1}).catch(function(b1){if(p.current)throw V({type:"SUBMIT_FAILURE"}),b1})}else if(p.current&&(V({type:"SUBMIT_FAILURE"}),q1))throw V1})}),I1=Vn(function(V1){V1&&V1.preventDefault&&Ue(V1.preventDefault)&&V1.preventDefault(),V1&&V1.stopPropagation&&Ue(V1.stopPropagation)&&V1.stopPropagation(),S1().catch(function(q1){console.warn("Warning: An unhandled error was caught from submitForm()",q1)})}),U1={resetForm:$,validateForm:E,validateField:U,setErrors:t1,setFieldError:i1,setFieldTouched:h1,setFieldValue:J,setStatus:z1,setSubmitting:m1,setTouched:F,setValues:R,setFormikState:s1,submitForm:S1},P1=Vn(function(){return u(y.values,U1)}),G1=Vn(function(V1){V1&&V1.preventDefault&&Ue(V1.preventDefault)&&V1.preventDefault(),V1&&V1.stopPropagation&&Ue(V1.stopPropagation)&&V1.stopPropagation(),$()}),rt=_.useCallback(function(V1){return{value:$2(y.values,V1),error:$2(y.errors,V1),touched:!!$2(y.touched,V1),initialValue:$2(d.current,V1),initialTouched:!!$2(g.current,V1),initialError:$2(M.current,V1)}},[y.errors,y.touched,y.values]),X1=_.useCallback(function(V1){return{setValue:function(B1,H1){return J(V1,B1,H1)},setTouched:function(B1,H1){return h1(V1,B1,H1)},setError:function(B1){return i1(V1,B1)}}},[J,h1,i1]),nt=_.useCallback(function(V1){var q1=S5(V1),B1=q1?V1.name:V1,H1=$2(y.values,B1),b1={name:B1,value:H1,onChange:o1,onBlur:M1};if(q1){var X=V1.type,f1=V1.value,e1=V1.as,G=V1.multiple;X==="checkbox"?f1===void 0?b1.checked=!!H1:(b1.checked=!!(Array.isArray(H1)&&~H1.indexOf(f1)),b1.value=f1):X==="radio"?(b1.checked=H1===f1,b1.value=f1):e1==="select"&&G&&(b1.value=b1.value||[],b1.multiple=!0)}return b1},[M1,o1,y.values]),tt=_.useMemo(function(){return!S3(d.current,y.values)},[d.current,y.values]),et=_.useMemo(function(){return typeof c<"u"?tt?y.errors&&Object.keys(y.errors).length===0:c!==!1&&Ue(c)?c(f):c:y.errors&&Object.keys(y.errors).length===0},[c,tt,y.errors,f]),vt=F2({},y,{initialValues:d.current,initialErrors:M.current,initialTouched:g.current,initialStatus:H.current,handleBlur:M1,handleChange:o1,handleReset:G1,handleSubmit:I1,resetForm:$,setErrors:t1,setFormikState:s1,setFieldTouched:h1,setFieldValue:J,setFieldError:i1,setStatus:z1,setSubmitting:m1,setTouched:F,setValues:R,submitForm:S1,validateForm:E,validateField:U,isValid:et,dirty:tt,unregisterField:Y,registerField:W,getFieldProps:nt,getFieldMeta:rt,getFieldHelpers:X1,validateOnBlur:r,validateOnChange:a,validateOnMount:l});return vt}function wt1(t){var e=Ht1(t),a=t.component,n=t.children,r=t.render,o=t.innerRef;return _.useImperativeHandle(o,function(){return e}),_.createElement(mt1,{value:e},a?_.createElement(a,e):r?r(e):n?Ue(n)?n(e):yM(n)?null:_.Children.only(n):null)}function yt1(t){var e={};if(t.inner){if(t.inner.length===0)return Sr(e,t.path,t.message);for(var r=t.inner,a=Array.isArray(r),n=0,r=a?r:r[Symbol.iterator]();;){var o;if(a){if(n>=r.length)break;o=r[n++]}else{if(n=r.next(),n.done)break;o=n.value}var l=o;$2(e,l.path)||(e=Sr(e,l.path,l.message))}}return e}function xt1(t,e,a,n){a===void 0&&(a=!1);var r=fp(t);return e[a?"validateSync":"validate"](r,{abortEarly:!1,context:n||r})}function fp(t){var e=Array.isArray(t)?[]:{};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var n=String(a);Array.isArray(t[n])===!0?e[n]=t[n].map(function(r){return Array.isArray(r)===!0||NI(r)?fp(r):r!==""?r:void 0}):NI(t[n])?e[n]=fp(t[n]):e[n]=t[n]!==""?t[n]:void 0}return e}function TR1(t,e,a){var n=t.slice();return e.forEach(function(o,l){if(typeof n[l]>"u"){var c=a.clone!==!1,h=c&&a.isMergeableObject(o);n[l]=h?wL(Array.isArray(o)?[]:{},o,a):o}else a.isMergeableObject(o)?n[l]=wL(t[l],o,a):t.indexOf(o)===-1&&n.push(o)}),n}function OR1(t){return Array.from(t).filter(function(e){return e.selected}).map(function(e){return e.value})}function AR1(t,e,a){if(typeof t=="boolean")return!!e;var n=[],r=!1,o=-1;if(Array.isArray(t))n=t,o=t.indexOf(a),r=o>=0;else if(!a||a=="true"||a=="false")return!!e;return e&&a&&!r?n.concat(a):r?n.slice(0,o).concat(n.slice(o+1)):n}var kR1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?_.useLayoutEffect:_.useEffect;function Vn(t){var e=_.useRef(t);return kR1(function(){e.current=t}),_.useCallback(function(){for(var a=arguments.length,n=new Array(a),r=0;rn?r:n},0);return Array.from(F2({},e,{length:a+1}))}else return[]},uF=function(e,a){var n=typeof e=="function"?e:a;return function(r){if(Array.isArray(r)||S5(r)){var o=al(r);return n(o)}return r}},Bt1=function(t){HM(e,t);function e(n){var r;return r=t.call(this,n)||this,r.updateArrayField=function(o,l,c){var h=r.props,s=h.name,u=h.formik.setFormikState;u(function(v){var f=uF(c,o),d=uF(l,o),M=Sr(v.values,s,o($2(v.values,s))),g=c?f($2(v.errors,s)):void 0,H=l?d($2(v.touched,s)):void 0;return LL(g)&&(g=void 0),LL(H)&&(H=void 0),F2({},v,{values:M,errors:c?Sr(v.errors,s,g):v.errors,touched:l?Sr(v.touched,s,H):v.touched})})},r.push=function(o){return r.updateArrayField(function(l){return[].concat(al(l),[bR1(o)])},!1,!1)},r.handlePush=function(o){return function(){return r.push(o)}},r.swap=function(o,l){return r.updateArrayField(function(c){return bt1(c,o,l)},!0,!0)},r.handleSwap=function(o,l){return function(){return r.swap(o,l)}},r.move=function(o,l){return r.updateArrayField(function(c){return Ct1(c,o,l)},!0,!0)},r.handleMove=function(o,l){return function(){return r.move(o,l)}},r.insert=function(o,l){return r.updateArrayField(function(c){return Ef(c,o,l)},function(c){return Ef(c,o,null)},function(c){return Ef(c,o,null)})},r.handleInsert=function(o,l){return function(){return r.insert(o,l)}},r.replace=function(o,l){return r.updateArrayField(function(c){return Lt1(c,o,l)},!1,!1)},r.handleReplace=function(o,l){return function(){return r.replace(o,l)}},r.unshift=function(o){var l=-1;return r.updateArrayField(function(c){var h=c?[o].concat(c):[o];return l=h.length,h},function(c){return c?[null].concat(c):[null]},function(c){return c?[null].concat(c):[null]}),l},r.handleUnshift=function(o){return function(){return r.unshift(o)}},r.handleRemove=function(o){return function(){return r.remove(o)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(hF(r)),r.pop=r.pop.bind(hF(r)),r}var a=e.prototype;return a.componentDidUpdate=function(r){this.props.validateOnChange&&this.props.formik.validateOnChange&&!S3($2(r.formik.values,r.name),$2(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},a.remove=function(r){var o;return this.updateArrayField(function(l){var c=l?al(l):[];return o||(o=c[r]),Ue(c.splice)&&c.splice(r,1),Ue(c.every)&&c.every(function(h){return h===void 0})?[]:c},!0,!0),o},a.pop=function(){var r;return this.updateArrayField(function(o){var l=o.slice();return r||(r=l&&l.pop&&l.pop()),l},!0,!0),r},a.render=function(){var r={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},o=this.props,l=o.component,c=o.render,h=o.children,s=o.name,u=o.formik,v=Da(u,["validate","validationSchema"]),f=F2({},r,{form:v,name:s});return l?_.createElement(l,f):c?c(f):h?typeof h=="function"?h(f):yM(h)?null:_.Children.only(h):null},e}(_.Component);Bt1.defaultProps={validateOnChange:!0};var DR1=xM(Bt1),RR1=function(t){HM(e,t);function e(){return t.apply(this,arguments)||this}var a=e.prototype;return a.shouldComponentUpdate=function(r){return $2(this.props.formik.errors,this.props.name)!==$2(r.formik.errors,this.props.name)||$2(this.props.formik.touched,this.props.name)!==$2(r.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(r).length},a.render=function(){var r=this.props,o=r.component,l=r.formik,c=r.render,h=r.children,s=r.name,u=Da(r,["component","formik","render","children","name"]),v=$2(l.touched,s),f=$2(l.errors,s);return v&&f?c?Ue(c)?c(f):null:h?Ue(h)?h(f):null:o?_.createElement(o,u,f):f:null},e}(_.Component),jR1=xM(RR1),IR1=function(t){HM(e,t);function e(n){var r;r=t.call(this,n)||this;var o=n.render,l=n.children;return n.component,n.as,n.name,o&&l&&!yM(l)&&void 0,r}var a=e.prototype;return a.shouldComponentUpdate=function(r){return this.props.shouldUpdate?this.props.shouldUpdate(r,this.props):r.name!==this.props.name||$2(r.formik.values,this.props.name)!==$2(this.props.formik.values,this.props.name)||$2(r.formik.errors,this.props.name)!==$2(this.props.formik.errors,this.props.name)||$2(r.formik.touched,this.props.name)!==$2(this.props.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(r).length||r.formik.isSubmitting!==this.props.formik.isSubmitting},a.componentDidMount=function(){this.props.formik.registerField(this.props.name,{validate:this.props.validate})},a.componentDidUpdate=function(r){this.props.name!==r.name&&(this.props.formik.unregisterField(r.name),this.props.formik.registerField(this.props.name,{validate:this.props.validate})),this.props.validate!==r.validate&&this.props.formik.registerField(this.props.name,{validate:this.props.validate})},a.componentWillUnmount=function(){this.props.formik.unregisterField(this.props.name)},a.render=function(){var r=this.props,o=r.name,l=r.render,c=r.as,h=r.children,s=r.component,u=r.formik,v=Da(r,["validate","name","render","as","children","component","shouldUpdate","formik"]),f=Da(u,["validate","validationSchema"]),d=u.getFieldProps(F2({name:o},v)),M={value:$2(u.values,o),error:$2(u.errors,o),touched:!!$2(u.touched,o),initialValue:$2(u.initialValues,o),initialTouched:!!$2(u.initialTouched,o),initialError:$2(u.initialErrors,o)},g={field:d,meta:M,form:f};if(l)return l(g);if(Ue(h))return h(g);if(s){if(typeof s=="string"){var H=v.innerRef,p=Da(v,["innerRef"]);return _.createElement(s,F2({ref:H},d,p),h)}return _.createElement(s,F2({field:d,form:u},v),h)}var m=c||"input";if(typeof m=="string"){var z=v.innerRef,w=Da(v,["innerRef"]);return _.createElement(m,F2({ref:z},d,w),h)}return _.createElement(m,F2({},d,v),h)},e}(_.Component),FR1=xM(IR1);const $R1=Object.freeze(Object.defineProperty({__proto__:null,ErrorMessage:jR1,FastField:FR1,Field:PR1,FieldArray:DR1,Form:Vt1,Formik:wt1,FormikConsumer:zt1,FormikContext:eu,FormikProvider:mt1,connect:xM,getActiveElement:_R1,getIn:$2,insert:Ef,isEmptyArray:LL,isEmptyChildren:yM,isFunction:Ue,isInputEvent:BR1,isInteger:Mt1,isNaN:LR1,isObject:S5,isPromise:kf,isString:Af,move:Ct1,prepareDataForValidation:fp,replace:Lt1,setIn:Sr,setNestedObjectValues:eO,swap:bt1,useField:ER1,useFormik:Ht1,useFormikContext:wM,validateYupSchema:xt1,withFormik:NR1,yupToFormErrors:yt1},Symbol.toStringTag,{value:"Module"})),bl=se($R1);var y4={},aO={},yc={},_t1={exports:{}};(function(t,e){(function(a,n){t.exports=n()})(b,function(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="ARRAYBUFFER not supported by this environment",r="UINT8ARRAY not supported by this environment";function o(e1,G,r1,P){var q,Z,l1,v1=G||[0],x1=(r1=r1||0)>>>3,N1=P===-1?3:0;for(q=0;q>>2,v1.length<=Z&&v1.push(0),v1[Z]|=e1[q]<<8*(N1+P*(l1%4));return{value:v1,binLen:8*e1.length+r1}}function l(e1,G,r1){switch(G){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e1){case"HEX":return function(P,q,Z){return function(l1,v1,x1,N1){var Z1,j1,C1,Vt;if(l1.length%2!=0)throw new Error("String of HEX type must be in byte increments");var Y1=v1||[0],Ct=(x1=x1||0)>>>3,ht=N1===-1?3:0;for(Z1=0;Z1>>1)+Ct)>>>2;Y1.length<=C1;)Y1.push(0);Y1[C1]|=j1<<8*(ht+N1*(Vt%4))}return{value:Y1,binLen:4*l1.length+x1}}(P,q,Z,r1)};case"TEXT":return function(P,q,Z){return function(l1,v1,x1,N1,Z1){var j1,C1,Vt,Y1,Ct,ht,Gt,Ht,Ot=0,a2=x1||[0],u2=(N1=N1||0)>>>3;if(v1==="UTF8")for(Gt=Z1===-1?3:0,Vt=0;Vt(j1=l1.charCodeAt(Vt))?C1.push(j1):2048>j1?(C1.push(192|j1>>>6),C1.push(128|63&j1)):55296>j1||57344<=j1?C1.push(224|j1>>>12,128|j1>>>6&63,128|63&j1):(Vt+=1,j1=65536+((1023&j1)<<10|1023&l1.charCodeAt(Vt)),C1.push(240|j1>>>18,128|j1>>>12&63,128|j1>>>6&63,128|63&j1)),Y1=0;Y1>>2;a2.length<=Ct;)a2.push(0);a2[Ct]|=C1[Y1]<<8*(Gt+Z1*(ht%4)),Ot+=1}else for(Gt=Z1===-1?2:0,Ht=v1==="UTF16LE"&&Z1!==1||v1!=="UTF16LE"&&Z1===1,Vt=0;Vt>>8),Ct=(ht=Ot+u2)>>>2;a2.length<=Ct;)a2.push(0);a2[Ct]|=j1<<8*(Gt+Z1*(ht%4)),Ot+=2}return{value:a2,binLen:8*Ot+N1}}(P,G,q,Z,r1)};case"B64":return function(P,q,Z){return function(l1,v1,x1,N1){var Z1,j1,C1,Vt,Y1,Ct,ht=0,Gt=v1||[0],Ht=(x1=x1||0)>>>3,Ot=N1===-1?3:0,a2=l1.indexOf("=");if(l1.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(l1=l1.replace(/=/g,""),a2!==-1&&a2=0)&&(a[r]=t[r]);return a}function hF(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var eu=_.createContext(void 0);eu.displayName="FormikContext";var mt1=eu.Provider,zt1=eu.Consumer;function wM(){var t=_.useContext(eu);return t}var LL=function(e){return Array.isArray(e)&&e.length===0},Ue=function(e){return typeof e=="function"},S5=function(e){return e!==null&&typeof e=="object"},Mt1=function(e){return String(Math.floor(Number(e)))===e},Af=function(e){return Object.prototype.toString.call(e)==="[object String]"},BR1=function(e){return e!==e},yM=function(e){return _.Children.count(e)===0},kf=function(e){return S5(e)&&Ue(e.then)},_R1=function(e){return e&&S5(e)&&S5(e.target)};function SR1(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function $2(t,e,a,n){n===void 0&&(n=0);for(var r=pt1(e);t&&n=0?[]:{}}}return(o===0?t:r)[l[o]]===a?t:(a===void 0?delete r[l[o]]:r[l[o]]=a,o===0&&a===void 0&&delete n[l[o]],n)}function eO(t,e,a,n){a===void 0&&(a=new WeakMap),n===void 0&&(n={});for(var r=0,o=Object.keys(t);r0?q1.map(function(H1){return B(H1,$2(V1,H1))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(B1).then(function(H1){return H1.reduce(function(b1,J,f1){return J==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||J&&(b1=Sr(b1,q1[f1],J)),b1},{})})},[B]),T=_.useCallback(function(V1){return Promise.all([S(V1),f.validationSchema?L(V1):{},f.validate?C(V1):{}]).then(function(q1){var B1=q1[0],H1=q1[1],b1=q1[2],J=wL.all([B1,H1,b1],{arrayMerge:OR1});return J})},[f.validate,f.validationSchema,S,C,L]),E=Vn(function(V1){return V1===void 0&&(V1=y.values),V({type:"SET_ISVALIDATING",payload:!0}),T(V1).then(function(q1){return p.current&&(V({type:"SET_ISVALIDATING",payload:!1}),V({type:"SET_ERRORS",payload:q1})),q1})});_.useEffect(function(){l&&p.current===!0&&S3(d.current,f.initialValues)&&E(d.current)},[l,E]);var $=_.useCallback(function(V1){var q1=V1&&V1.values?V1.values:d.current,B1=V1&&V1.errors?V1.errors:M.current?M.current:f.initialErrors||{},H1=V1&&V1.touched?V1.touched:g.current?g.current:f.initialTouched||{},b1=V1&&V1.status?V1.status:H.current?H.current:f.initialStatus;d.current=q1,M.current=B1,g.current=H1,H.current=b1;var J=function(){V({type:"RESET_FORM",payload:{isSubmitting:!!V1&&!!V1.isSubmitting,errors:B1,touched:H1,status:b1,values:q1,isValidating:!!V1&&!!V1.isValidating,submitCount:V1&&V1.submitCount&&typeof V1.submitCount=="number"?V1.submitCount:0}})};if(f.onReset){var f1=f.onReset(y.values,U1);kf(f1)?f1.then(J):J()}else J()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);_.useEffect(function(){p.current===!0&&!S3(d.current,f.initialValues)&&s&&(d.current=f.initialValues,$(),l&&E(d.current))},[s,f.initialValues,$,l,E]),_.useEffect(function(){s&&p.current===!0&&!S3(M.current,f.initialErrors)&&(M.current=f.initialErrors||r8,V({type:"SET_ERRORS",payload:f.initialErrors||r8}))},[s,f.initialErrors]),_.useEffect(function(){s&&p.current===!0&&!S3(g.current,f.initialTouched)&&(g.current=f.initialTouched||Rd,V({type:"SET_TOUCHED",payload:f.initialTouched||Rd}))},[s,f.initialTouched]),_.useEffect(function(){s&&p.current===!0&&!S3(H.current,f.initialStatus)&&(H.current=f.initialStatus,V({type:"SET_STATUS",payload:f.initialStatus}))},[s,f.initialStatus,f.initialTouched]);var q=Vn(function(V1){if(m.current[V1]&&Ue(m.current[V1].validate)){var q1=$2(y.values,V1),B1=m.current[V1].validate(q1);return kf(B1)?(V({type:"SET_ISVALIDATING",payload:!0}),B1.then(function(H1){return H1}).then(function(H1){V({type:"SET_FIELD_ERROR",payload:{field:V1,value:H1}}),V({type:"SET_ISVALIDATING",payload:!1})})):(V({type:"SET_FIELD_ERROR",payload:{field:V1,value:B1}}),Promise.resolve(B1))}else if(f.validationSchema)return V({type:"SET_ISVALIDATING",payload:!0}),L(y.values,V1).then(function(H1){return H1}).then(function(H1){V({type:"SET_FIELD_ERROR",payload:{field:V1,value:$2(H1,V1)}}),V({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),U=_.useCallback(function(V1,q1){var B1=q1.validate;m.current[V1]={validate:B1}},[]),Y=_.useCallback(function(V1){delete m.current[V1]},[]),F=Vn(function(V1,q1){V({type:"SET_TOUCHED",payload:V1});var B1=q1===void 0?r:q1;return B1?E(y.values):Promise.resolve()}),X=_.useCallback(function(V1){V({type:"SET_ERRORS",payload:V1})},[]),R=Vn(function(V1,q1){var B1=Ue(V1)?V1(y.values):V1;V({type:"SET_VALUES",payload:B1});var H1=q1===void 0?a:q1;return H1?E(B1):Promise.resolve()}),i1=_.useCallback(function(V1,q1){V({type:"SET_FIELD_ERROR",payload:{field:V1,value:q1}})},[]),t1=Vn(function(V1,q1,B1){V({type:"SET_FIELD_VALUE",payload:{field:V1,value:q1}});var H1=B1===void 0?a:B1;return H1?E(Sr(y.values,V1,q1)):Promise.resolve()}),A=_.useCallback(function(V1,q1){var B1=q1,H1=V1,b1;if(!Af(V1)){V1.persist&&V1.persist();var J=V1.target?V1.target:V1.currentTarget,f1=J.type,e1=J.name,G=J.id,r1=J.value,P=J.checked,W=J.outerHTML,Z=J.options,l1=J.multiple;B1=q1||e1||G,H1=/number|range/.test(f1)?(b1=parseFloat(r1),isNaN(b1)?"":b1):/checkbox/.test(f1)?kR1($2(y.values,B1),P,r1):Z&&l1?AR1(Z):r1}B1&&t1(B1,H1)},[t1,y.values]),o1=Vn(function(V1){if(Af(V1))return function(q1){return A(q1,V1)};A(V1)}),h1=Vn(function(V1,q1,B1){q1===void 0&&(q1=!0),V({type:"SET_FIELD_TOUCHED",payload:{field:V1,value:q1}});var H1=B1===void 0?r:B1;return H1?E(y.values):Promise.resolve()}),a1=_.useCallback(function(V1,q1){V1.persist&&V1.persist();var B1=V1.target,H1=B1.name,b1=B1.id,J=B1.outerHTML,f1=q1||H1||b1;h1(f1,!0)},[h1]),M1=Vn(function(V1){if(Af(V1))return function(q1){return a1(q1,V1)};a1(V1)}),s1=_.useCallback(function(V1){Ue(V1)?V({type:"SET_FORMIK_STATE",payload:V1}):V({type:"SET_FORMIK_STATE",payload:function(){return V1}})},[]),z1=_.useCallback(function(V1){V({type:"SET_STATUS",payload:V1})},[]),m1=_.useCallback(function(V1){V({type:"SET_ISSUBMITTING",payload:V1})},[]),S1=Vn(function(){return V({type:"SUBMIT_ATTEMPT"}),E().then(function(V1){var q1=V1 instanceof Error,B1=!q1&&Object.keys(V1).length===0;if(B1){var H1;try{if(H1=P1(),H1===void 0)return}catch(b1){throw b1}return Promise.resolve(H1).then(function(b1){return p.current&&V({type:"SUBMIT_SUCCESS"}),b1}).catch(function(b1){if(p.current)throw V({type:"SUBMIT_FAILURE"}),b1})}else if(p.current&&(V({type:"SUBMIT_FAILURE"}),q1))throw V1})}),I1=Vn(function(V1){V1&&V1.preventDefault&&Ue(V1.preventDefault)&&V1.preventDefault(),V1&&V1.stopPropagation&&Ue(V1.stopPropagation)&&V1.stopPropagation(),S1().catch(function(q1){console.warn("Warning: An unhandled error was caught from submitForm()",q1)})}),U1={resetForm:$,validateForm:E,validateField:q,setErrors:X,setFieldError:i1,setFieldTouched:h1,setFieldValue:t1,setStatus:z1,setSubmitting:m1,setTouched:F,setValues:R,setFormikState:s1,submitForm:S1},P1=Vn(function(){return u(y.values,U1)}),G1=Vn(function(V1){V1&&V1.preventDefault&&Ue(V1.preventDefault)&&V1.preventDefault(),V1&&V1.stopPropagation&&Ue(V1.stopPropagation)&&V1.stopPropagation(),$()}),rt=_.useCallback(function(V1){return{value:$2(y.values,V1),error:$2(y.errors,V1),touched:!!$2(y.touched,V1),initialValue:$2(d.current,V1),initialTouched:!!$2(g.current,V1),initialError:$2(M.current,V1)}},[y.errors,y.touched,y.values]),X1=_.useCallback(function(V1){return{setValue:function(B1,H1){return t1(V1,B1,H1)},setTouched:function(B1,H1){return h1(V1,B1,H1)},setError:function(B1){return i1(V1,B1)}}},[t1,h1,i1]),nt=_.useCallback(function(V1){var q1=S5(V1),B1=q1?V1.name:V1,H1=$2(y.values,B1),b1={name:B1,value:H1,onChange:o1,onBlur:M1};if(q1){var J=V1.type,f1=V1.value,e1=V1.as,G=V1.multiple;J==="checkbox"?f1===void 0?b1.checked=!!H1:(b1.checked=!!(Array.isArray(H1)&&~H1.indexOf(f1)),b1.value=f1):J==="radio"?(b1.checked=H1===f1,b1.value=f1):e1==="select"&&G&&(b1.value=b1.value||[],b1.multiple=!0)}return b1},[M1,o1,y.values]),tt=_.useMemo(function(){return!S3(d.current,y.values)},[d.current,y.values]),et=_.useMemo(function(){return typeof c<"u"?tt?y.errors&&Object.keys(y.errors).length===0:c!==!1&&Ue(c)?c(f):c:y.errors&&Object.keys(y.errors).length===0},[c,tt,y.errors,f]),vt=F2({},y,{initialValues:d.current,initialErrors:M.current,initialTouched:g.current,initialStatus:H.current,handleBlur:M1,handleChange:o1,handleReset:G1,handleSubmit:I1,resetForm:$,setErrors:X,setFormikState:s1,setFieldTouched:h1,setFieldValue:t1,setFieldError:i1,setStatus:z1,setSubmitting:m1,setTouched:F,setValues:R,submitForm:S1,validateForm:E,validateField:q,isValid:et,dirty:tt,unregisterField:Y,registerField:U,getFieldProps:nt,getFieldMeta:rt,getFieldHelpers:X1,validateOnBlur:r,validateOnChange:a,validateOnMount:l});return vt}function wt1(t){var e=Ht1(t),a=t.component,n=t.children,r=t.render,o=t.innerRef;return _.useImperativeHandle(o,function(){return e}),_.createElement(mt1,{value:e},a?_.createElement(a,e):r?r(e):n?Ue(n)?n(e):yM(n)?null:_.Children.only(n):null)}function yt1(t){var e={};if(t.inner){if(t.inner.length===0)return Sr(e,t.path,t.message);for(var r=t.inner,a=Array.isArray(r),n=0,r=a?r:r[Symbol.iterator]();;){var o;if(a){if(n>=r.length)break;o=r[n++]}else{if(n=r.next(),n.done)break;o=n.value}var l=o;$2(e,l.path)||(e=Sr(e,l.path,l.message))}}return e}function xt1(t,e,a,n){a===void 0&&(a=!1);var r=fp(t);return e[a?"validateSync":"validate"](r,{abortEarly:!1,context:n||r})}function fp(t){var e=Array.isArray(t)?[]:{};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var n=String(a);Array.isArray(t[n])===!0?e[n]=t[n].map(function(r){return Array.isArray(r)===!0||NI(r)?fp(r):r!==""?r:void 0}):NI(t[n])?e[n]=fp(t[n]):e[n]=t[n]!==""?t[n]:void 0}return e}function OR1(t,e,a){var n=t.slice();return e.forEach(function(o,l){if(typeof n[l]>"u"){var c=a.clone!==!1,h=c&&a.isMergeableObject(o);n[l]=h?wL(Array.isArray(o)?[]:{},o,a):o}else a.isMergeableObject(o)?n[l]=wL(t[l],o,a):t.indexOf(o)===-1&&n.push(o)}),n}function AR1(t){return Array.from(t).filter(function(e){return e.selected}).map(function(e){return e.value})}function kR1(t,e,a){if(typeof t=="boolean")return!!e;var n=[],r=!1,o=-1;if(Array.isArray(t))n=t,o=t.indexOf(a),r=o>=0;else if(!a||a=="true"||a=="false")return!!e;return e&&a&&!r?n.concat(a):r?n.slice(0,o).concat(n.slice(o+1)):n}var ER1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?_.useLayoutEffect:_.useEffect;function Vn(t){var e=_.useRef(t);return ER1(function(){e.current=t}),_.useCallback(function(){for(var a=arguments.length,n=new Array(a),r=0;rn?r:n},0);return Array.from(F2({},e,{length:a+1}))}else return[]},uF=function(e,a){var n=typeof e=="function"?e:a;return function(r){if(Array.isArray(r)||S5(r)){var o=al(r);return n(o)}return r}},Bt1=function(t){HM(e,t);function e(n){var r;return r=t.call(this,n)||this,r.updateArrayField=function(o,l,c){var h=r.props,s=h.name,u=h.formik.setFormikState;u(function(v){var f=uF(c,o),d=uF(l,o),M=Sr(v.values,s,o($2(v.values,s))),g=c?f($2(v.errors,s)):void 0,H=l?d($2(v.touched,s)):void 0;return LL(g)&&(g=void 0),LL(H)&&(H=void 0),F2({},v,{values:M,errors:c?Sr(v.errors,s,g):v.errors,touched:l?Sr(v.touched,s,H):v.touched})})},r.push=function(o){return r.updateArrayField(function(l){return[].concat(al(l),[LR1(o)])},!1,!1)},r.handlePush=function(o){return function(){return r.push(o)}},r.swap=function(o,l){return r.updateArrayField(function(c){return bt1(c,o,l)},!0,!0)},r.handleSwap=function(o,l){return function(){return r.swap(o,l)}},r.move=function(o,l){return r.updateArrayField(function(c){return Ct1(c,o,l)},!0,!0)},r.handleMove=function(o,l){return function(){return r.move(o,l)}},r.insert=function(o,l){return r.updateArrayField(function(c){return Ef(c,o,l)},function(c){return Ef(c,o,null)},function(c){return Ef(c,o,null)})},r.handleInsert=function(o,l){return function(){return r.insert(o,l)}},r.replace=function(o,l){return r.updateArrayField(function(c){return Lt1(c,o,l)},!1,!1)},r.handleReplace=function(o,l){return function(){return r.replace(o,l)}},r.unshift=function(o){var l=-1;return r.updateArrayField(function(c){var h=c?[o].concat(c):[o];return l=h.length,h},function(c){return c?[null].concat(c):[null]},function(c){return c?[null].concat(c):[null]}),l},r.handleUnshift=function(o){return function(){return r.unshift(o)}},r.handleRemove=function(o){return function(){return r.remove(o)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(hF(r)),r.pop=r.pop.bind(hF(r)),r}var a=e.prototype;return a.componentDidUpdate=function(r){this.props.validateOnChange&&this.props.formik.validateOnChange&&!S3($2(r.formik.values,r.name),$2(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},a.remove=function(r){var o;return this.updateArrayField(function(l){var c=l?al(l):[];return o||(o=c[r]),Ue(c.splice)&&c.splice(r,1),Ue(c.every)&&c.every(function(h){return h===void 0})?[]:c},!0,!0),o},a.pop=function(){var r;return this.updateArrayField(function(o){var l=o.slice();return r||(r=l&&l.pop&&l.pop()),l},!0,!0),r},a.render=function(){var r={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},o=this.props,l=o.component,c=o.render,h=o.children,s=o.name,u=o.formik,v=Da(u,["validate","validationSchema"]),f=F2({},r,{form:v,name:s});return l?_.createElement(l,f):c?c(f):h?typeof h=="function"?h(f):yM(h)?null:_.Children.only(h):null},e}(_.Component);Bt1.defaultProps={validateOnChange:!0};var RR1=xM(Bt1),jR1=function(t){HM(e,t);function e(){return t.apply(this,arguments)||this}var a=e.prototype;return a.shouldComponentUpdate=function(r){return $2(this.props.formik.errors,this.props.name)!==$2(r.formik.errors,this.props.name)||$2(this.props.formik.touched,this.props.name)!==$2(r.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(r).length},a.render=function(){var r=this.props,o=r.component,l=r.formik,c=r.render,h=r.children,s=r.name,u=Da(r,["component","formik","render","children","name"]),v=$2(l.touched,s),f=$2(l.errors,s);return v&&f?c?Ue(c)?c(f):null:h?Ue(h)?h(f):null:o?_.createElement(o,u,f):f:null},e}(_.Component),IR1=xM(jR1),FR1=function(t){HM(e,t);function e(n){var r;r=t.call(this,n)||this;var o=n.render,l=n.children;return n.component,n.as,n.name,o&&l&&!yM(l)&&void 0,r}var a=e.prototype;return a.shouldComponentUpdate=function(r){return this.props.shouldUpdate?this.props.shouldUpdate(r,this.props):r.name!==this.props.name||$2(r.formik.values,this.props.name)!==$2(this.props.formik.values,this.props.name)||$2(r.formik.errors,this.props.name)!==$2(this.props.formik.errors,this.props.name)||$2(r.formik.touched,this.props.name)!==$2(this.props.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(r).length||r.formik.isSubmitting!==this.props.formik.isSubmitting},a.componentDidMount=function(){this.props.formik.registerField(this.props.name,{validate:this.props.validate})},a.componentDidUpdate=function(r){this.props.name!==r.name&&(this.props.formik.unregisterField(r.name),this.props.formik.registerField(this.props.name,{validate:this.props.validate})),this.props.validate!==r.validate&&this.props.formik.registerField(this.props.name,{validate:this.props.validate})},a.componentWillUnmount=function(){this.props.formik.unregisterField(this.props.name)},a.render=function(){var r=this.props,o=r.name,l=r.render,c=r.as,h=r.children,s=r.component,u=r.formik,v=Da(r,["validate","name","render","as","children","component","shouldUpdate","formik"]),f=Da(u,["validate","validationSchema"]),d=u.getFieldProps(F2({name:o},v)),M={value:$2(u.values,o),error:$2(u.errors,o),touched:!!$2(u.touched,o),initialValue:$2(u.initialValues,o),initialTouched:!!$2(u.initialTouched,o),initialError:$2(u.initialErrors,o)},g={field:d,meta:M,form:f};if(l)return l(g);if(Ue(h))return h(g);if(s){if(typeof s=="string"){var H=v.innerRef,p=Da(v,["innerRef"]);return _.createElement(s,F2({ref:H},d,p),h)}return _.createElement(s,F2({field:d,form:u},v),h)}var m=c||"input";if(typeof m=="string"){var z=v.innerRef,w=Da(v,["innerRef"]);return _.createElement(m,F2({ref:z},d,w),h)}return _.createElement(m,F2({},d,v),h)},e}(_.Component),$R1=xM(FR1);const UR1=Object.freeze(Object.defineProperty({__proto__:null,ErrorMessage:IR1,FastField:$R1,Field:NR1,FieldArray:RR1,Form:Vt1,Formik:wt1,FormikConsumer:zt1,FormikContext:eu,FormikProvider:mt1,connect:xM,getActiveElement:SR1,getIn:$2,insert:Ef,isEmptyArray:LL,isEmptyChildren:yM,isFunction:Ue,isInputEvent:_R1,isInteger:Mt1,isNaN:BR1,isObject:S5,isPromise:kf,isString:Af,move:Ct1,prepareDataForValidation:fp,replace:Lt1,setIn:Sr,setNestedObjectValues:eO,swap:bt1,useField:PR1,useFormik:Ht1,useFormikContext:wM,validateYupSchema:xt1,withFormik:DR1,yupToFormErrors:yt1},Symbol.toStringTag,{value:"Module"})),bl=se(UR1);var y4={},aO={},yc={},_t1={exports:{}};(function(t,e){(function(a,n){t.exports=n()})(b,function(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="ARRAYBUFFER not supported by this environment",r="UINT8ARRAY not supported by this environment";function o(e1,G,r1,P){var W,Z,l1,v1=G||[0],x1=(r1=r1||0)>>>3,N1=P===-1?3:0;for(W=0;W>>2,v1.length<=Z&&v1.push(0),v1[Z]|=e1[W]<<8*(N1+P*(l1%4));return{value:v1,binLen:8*e1.length+r1}}function l(e1,G,r1){switch(G){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e1){case"HEX":return function(P,W,Z){return function(l1,v1,x1,N1){var Z1,j1,C1,Vt;if(l1.length%2!=0)throw new Error("String of HEX type must be in byte increments");var Y1=v1||[0],Ct=(x1=x1||0)>>>3,ht=N1===-1?3:0;for(Z1=0;Z1>>1)+Ct)>>>2;Y1.length<=C1;)Y1.push(0);Y1[C1]|=j1<<8*(ht+N1*(Vt%4))}return{value:Y1,binLen:4*l1.length+x1}}(P,W,Z,r1)};case"TEXT":return function(P,W,Z){return function(l1,v1,x1,N1,Z1){var j1,C1,Vt,Y1,Ct,ht,Gt,Ht,Ot=0,a2=x1||[0],u2=(N1=N1||0)>>>3;if(v1==="UTF8")for(Gt=Z1===-1?3:0,Vt=0;Vt(j1=l1.charCodeAt(Vt))?C1.push(j1):2048>j1?(C1.push(192|j1>>>6),C1.push(128|63&j1)):55296>j1||57344<=j1?C1.push(224|j1>>>12,128|j1>>>6&63,128|63&j1):(Vt+=1,j1=65536+((1023&j1)<<10|1023&l1.charCodeAt(Vt)),C1.push(240|j1>>>18,128|j1>>>12&63,128|j1>>>6&63,128|63&j1)),Y1=0;Y1>>2;a2.length<=Ct;)a2.push(0);a2[Ct]|=C1[Y1]<<8*(Gt+Z1*(ht%4)),Ot+=1}else for(Gt=Z1===-1?2:0,Ht=v1==="UTF16LE"&&Z1!==1||v1!=="UTF16LE"&&Z1===1,Vt=0;Vt>>8),Ct=(ht=Ot+u2)>>>2;a2.length<=Ct;)a2.push(0);a2[Ct]|=j1<<8*(Gt+Z1*(ht%4)),Ot+=2}return{value:a2,binLen:8*Ot+N1}}(P,G,W,Z,r1)};case"B64":return function(P,W,Z){return function(l1,v1,x1,N1){var Z1,j1,C1,Vt,Y1,Ct,ht=0,Gt=v1||[0],Ht=(x1=x1||0)>>>3,Ot=N1===-1?3:0,a2=l1.indexOf("=");if(l1.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(l1=l1.replace(/=/g,""),a2!==-1&&a21&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(f,d){for(var M=l21(v?v.pos:"0",d),g=ru(f[o],M),H,p=0;p1&&arguments[1]!==void 0?arguments[1]:{},a=e.initWrapper,n=e.processEntity,r=e.onProcessFinished,o=e.externalGetKey,l=e.childrenPropName,c=e.fieldNames,h=arguments.length>2?arguments[2]:void 0,s=o||h,u={},v={},f={posEntities:u,keyEntities:v};return a&&(f=a(f)||f),TA2(t,function(d){var M=d.node,g=d.index,H=d.pos,p=d.key,m=d.parentPos,z=d.level,w=d.nodes,x={node:M,nodes:w,index:g,key:p,pos:H,level:z},y=ru(p,H);u[H]=x,v[y]=x,x.parent=u[m],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),n&&n(x,f)},{externalGetKey:s,childrenPropName:l,fieldNames:c}),r&&r(f),f}function vs(t,e){var a=e.expandedKeys,n=e.selectedKeys,r=e.loadedKeys,o=e.loadingKeys,l=e.checkedKeys,c=e.halfCheckedKeys,h=e.dragOverNodeKey,s=e.dropPosition,u=e.keyEntities,v=Ja(u,t),f={eventKey:t,expanded:a.indexOf(t)!==-1,selected:n.indexOf(t)!==-1,loaded:r.indexOf(t)!==-1,loading:o.indexOf(t)!==-1,checked:l.indexOf(t)!==-1,halfChecked:c.indexOf(t)!==-1,pos:String(v?v.pos:""),dragOver:h===t&&s===0,dragOverGapTop:h===t&&s===-1,dragOverGapBottom:h===t&&s===1};return f}function We(t){var e=t.data,a=t.expanded,n=t.selected,r=t.checked,o=t.loaded,l=t.loading,c=t.halfChecked,h=t.dragOver,s=t.dragOverGapTop,u=t.dragOverGapBottom,v=t.pos,f=t.active,d=t.eventKey,M=Q1(Q1({},e),{},{expanded:a,selected:n,checked:r,loaded:o,loading:l,halfChecked:c,dragOver:h,dragOverGapTop:s,dragOverGapBottom:u,pos:v,active:f,key:d});return"props"in M||Object.defineProperty(M,"props",{get:function(){return Y4(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),t}}),M}function OA2(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}function AA2(t){var e=t||{},a=e.label,n=e.value,r=e.children,o=n||"value";return{_title:a?[a]:["title","label"],value:o,key:o,children:r||"children"}}function EL(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1}function kA2(t,e){var a=[];function n(r){r.forEach(function(o){var l=o[e.children];l&&(a.push(o[e.value]),n(l))})}return n(t),a}function UF(t){return t==null}const EA2=function(t,e){return _.useMemo(function(){var a=c21(t,{fieldNames:e,initWrapper:function(r){return Q1(Q1({},r),{},{valueEntities:new Map})},processEntity:function(r,o){var l=r.node[e.value];o.valueEntities.set(l,r)}});return a},[t,e])};var lO=function(){return null},PA2=["children","value"];function s21(t){return Vc(t).map(function(e){if(!_.isValidElement(e)||!e.type)return null;var a=e,n=a.key,r=a.props,o=r.children,l=r.value,c=d0(r,PA2),h=Q1({key:n,value:l},c),s=s21(o);return s.length&&(h.children=s),h}).filter(function(e){return e})}function PL(t){if(!t)return t;var e=Q1({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return Y4(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),e}}),e}function NA2(t,e,a,n,r,o){var l=null,c=null;function h(){function s(u){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map(function(d,M){var g="".concat(v,"-").concat(M),H=d[o.value],p=a.includes(H),m=s(d[o.children]||[],g,p),z=_.createElement(lO,d,m.map(function(x){return x.node}));if(e===H&&(l=z),p){var w={pos:g,node:z,children:m};return f||c.push(w),w}return null}).filter(function(d){return d})}c||(c=[],s(n),c.sort(function(u,v){var f=u.node.props.value,d=v.node.props.value,M=a.indexOf(f),g=a.indexOf(d);return M-g}))}Object.defineProperty(t,"triggerNode",{get:function(){return Y4(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),h(),l}}),Object.defineProperty(t,"allCheckedNodes",{get:function(){return Y4(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),h(),r?c:c.map(function(u){var v=u.node;return v})}})}const DA2=function(t,e,a){var n=a.treeNodeFilterProp,r=a.filterTreeNode,o=a.fieldNames,l=o.children;return _.useMemo(function(){if(!e||r===!1)return t;var c;if(typeof r=="function")c=r;else{var h=e.toUpperCase();c=function(v,f){var d=f[n];return String(d).toUpperCase().includes(h)}}function s(u){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return u.reduce(function(f,d){var M=d[l],g=v||c(e,PL(d)),H=s(M||[],g);return(g||H.length)&&f.push(Q1(Q1({},d),{},u1({isLeaf:void 0},l,H))),f},[])}return s(t)},[t,e,l,n,r])};function WF(t){var e=_.useRef();e.current=t;var a=_.useCallback(function(){return e.current.apply(e,arguments)},[]);return a}function RA2(t,e){var a=e.id,n=e.pId,r=e.rootPId,o={},l=[],c=t.map(function(h){var s=Q1({},h),u=s[a];return o[u]=s,s.key=s.key||u,s});return c.forEach(function(h){var s=h[n],u=o[s];u&&(u.children=u.children||[],u.children.push(h)),(s===r||!u&&r===null)&&l.push(h)}),l}function jA2(t,e,a){return _.useMemo(function(){return t?a?RA2(t,Q1({id:"id",pId:"pId",rootPId:null},a!==!0?a:{})):t:s21(e)},[e,a,t])}var h21=_.createContext(null),cO=_.createContext(null);function IA2(t){var e=t.dropPosition,a=t.dropLevelOffset,n=t.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(e){case-1:r.top=0,r.left=-a*n;break;case 1:r.bottom=0,r.left=-a*n;break;case 0:r.bottom=0,r.left=n;break}return _.createElement("div",{style:r})}function u21(t){if(t==null)throw new TypeError("Cannot destructure "+t)}var FA2=function(e){for(var a=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,l="".concat(a,"-indent-unit"),c=[],h=0;h0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=t.length,n=e.length;if(Math.abs(a-n)!==1)return{add:!1,key:null};function r(o,l){var c=new Map;o.forEach(function(s){c.set(s,!0)});var h=l.filter(function(s){return!c.has(s)});return h.length===1?h[0]:null}return a ").concat(e);return e}var f21=_.forwardRef(function(t,e){var a=t.prefixCls,n=t.data;t.selectable,t.checkable;var r=t.expandedKeys,o=t.selectedKeys,l=t.checkedKeys,c=t.loadedKeys,h=t.loadingKeys,s=t.halfCheckedKeys,u=t.keyEntities,v=t.disabled,f=t.dragging,d=t.dragOverNodeKey,M=t.dropPosition,g=t.motion,H=t.height,p=t.itemHeight,m=t.virtual,z=t.focusable,w=t.activeItem,x=t.focused,y=t.tabIndex,V=t.onKeyDown,C=t.onFocus,L=t.onBlur,B=t.onActiveChange,S=t.onListChangeStart,T=t.onListChangeEnd,E=d0(t,QA2),$=_.useRef(null),U=_.useRef(null);_.useImperativeHandle(e,function(){return{scrollTo:function(vt){$.current.scrollTo(vt)},getIndentWidth:function(){return U.current.offsetWidth}}});var W=_.useState(r),Y=ot(W,2),F=Y[0],t1=Y[1],R=_.useState(n),i1=ot(R,2),J=i1[0],A=i1[1],o1=_.useState(n),h1=ot(o1,2),a1=h1[0],M1=h1[1],s1=_.useState([]),z1=ot(s1,2),m1=z1[0],S1=z1[1],I1=_.useState(null),U1=ot(I1,2),P1=U1[0],G1=U1[1],rt=_.useRef(n);rt.current=n;function X1(){var et=rt.current;A(et),M1(et),S1([]),G1(null),T()}te(function(){t1(r);var et=ZA2(F,r);if(et.key!==null)if(et.add){var vt=J.findIndex(function(X){var f1=X.key;return f1===et.key}),V1=QF(KF(J,n,et.key),m,H,p),q1=J.slice();q1.splice(vt+1,0,ZF),M1(q1),S1(V1),G1("show")}else{var B1=n.findIndex(function(X){var f1=X.key;return f1===et.key}),H1=QF(KF(n,J,et.key),m,H,p),b1=n.slice();b1.splice(B1+1,0,ZF),M1(b1),S1(H1),G1("hide")}else J!==n&&(A(n),M1(n))},[r,n]),_.useEffect(function(){f||X1()},[f]);var nt=g?a1:n,tt={expandedKeys:r,selectedKeys:o,loadedKeys:c,loadingKeys:h,checkedKeys:l,halfCheckedKeys:s,dragOverNodeKey:d,dropPosition:M,keyEntities:u};return _.createElement(_.Fragment,null,x&&w&&_.createElement("span",{style:YF,"aria-live":"assertive"},JA2(w)),_.createElement("div",null,_.createElement("input",{style:YF,disabled:z===!1||v,tabIndex:z!==!1?y:null,onKeyDown:V,onFocus:C,onBlur:L,value:"",onChange:XA2,"aria-label":"for screen reader"})),_.createElement("div",{className:"".concat(a,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},_.createElement("div",{className:"".concat(a,"-indent")},_.createElement("div",{ref:U,className:"".concat(a,"-indent-unit")}))),_.createElement(oO,Zt({},E,{data:nt,itemKey:XF,height:H,fullHeight:!1,virtual:m,itemHeight:p,prefixCls:"".concat(a,"-list"),ref:$,onVisibleChange:function(vt,V1){var q1=new Set(vt),B1=V1.filter(function(H1){return!q1.has(H1)});B1.some(function(H1){return XF(H1)===nl})&&X1()}}),function(et){var vt=et.pos,V1=Object.assign({},(u21(et.data),et.data)),q1=et.title,B1=et.key,H1=et.isStart,b1=et.isEnd,X=ru(B1,vt);delete V1.key,delete V1.children;var f1=vs(X,tt);return _.createElement(YA2,Zt({},V1,f1,{title:q1,active:!!w&&B1===w.key,pos:vt,data:et.data,isStart:H1,isEnd:b1,motion:g,motionNodes:B1===nl?m1:null,motionType:P1,onMotionStart:S,onMotionEnd:X1,treeNodeRequiredProps:tt,onMouseMove:function(){B(null)}}))}))});f21.displayName="NodeList";function Ji(t,e){if(!t)return[];var a=t.slice(),n=a.indexOf(e);return n>=0&&a.splice(n,1),a}function z3(t,e){var a=(t||[]).slice();return a.indexOf(e)===-1&&a.push(e),a}function sO(t){return t.split("-")}function tk2(t,e){var a=[],n=Ja(e,t);function r(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(l){var c=l.key,h=l.children;a.push(c),r(h)})}return r(n.children),a}function ek2(t){if(t.parent){var e=sO(t.pos);return Number(e[e.length-1])===t.parent.children.length-1}return!1}function ak2(t){var e=sO(t.pos);return Number(e[e.length-1])===0}function JF(t,e,a,n,r,o,l,c,h,s){var u,v=t.clientX,f=t.clientY,d=t.target.getBoundingClientRect(),M=d.top,g=d.height,H=(s==="rtl"?-1:1)*(((r==null?void 0:r.x)||0)-v),p=(H-12)/n,m=h.filter(function(W){var Y;return(Y=c[W])===null||Y===void 0||(Y=Y.children)===null||Y===void 0?void 0:Y.length}),z=Ja(c,a.props.eventKey);if(f-1.5?o({dragNode:E,dropNode:$,dropPosition:1})?B=1:U=!1:o({dragNode:E,dropNode:$,dropPosition:0})?B=0:o({dragNode:E,dropNode:$,dropPosition:1})?B=1:U=!1:o({dragNode:E,dropNode:$,dropPosition:1})?B=1:U=!1,{dropPosition:B,dropLevelOffset:S,dropTargetKey:z.key,dropTargetPos:z.pos,dragOverNodeKey:L,dropContainerKey:B===0?null:((u=z.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:U}}function t$(t,e){if(t){var a=e.multiple;return a?t.slice():t.length?[t[0]]:t}}function CV(t){if(!t)return null;var e;if(Array.isArray(t))e={checkedKeys:t,halfCheckedKeys:void 0};else if(C2(t)==="object")e={checkedKeys:t.checked||void 0,halfCheckedKeys:t.halfChecked||void 0};else return Y4(!1,"`checkedKeys` is not an array or an object"),null;return e}function e$(t,e){var a=new Set;function n(r){if(!a.has(r)){var o=Ja(e,r);if(o){a.add(r);var l=o.parent,c=o.node;c.disabled||l&&n(l.key)}}}return(t||[]).forEach(function(r){n(r)}),i0(a)}var nk2=10,hO=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l2&&arguments[2]!==void 0?arguments[2]:!1,v=n.state,f=v.dragChildrenKeys,d=v.dropPosition,M=v.dropTargetKey,g=v.dropTargetPos,H=v.dropAllowed;if(H){var p=n.props.onDrop;if(n.setState({dragOverNodeKey:null}),n.cleanDragState(),M!==null){var m=Q1(Q1({},vs(M,n.getTreeNodeRequiredProps())),{},{active:((s=n.getActiveItem())===null||s===void 0?void 0:s.key)===M,data:Ja(n.state.keyEntities,M).node}),z=f.indexOf(M)!==-1;Y4(!z,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=sO(g),x={event:c,node:We(m),dragNode:n.dragNode?We(n.dragNode.props):null,dragNodesKeys:[n.dragNode.props.eventKey].concat(f),dropToGap:d!==0,dropPosition:d+Number(w[w.length-1])};u||p==null||p(x),n.dragNode=null}}}),u1(D1(n),"cleanDragState",function(){var c=n.state.draggingNodeKey;c!==null&&n.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),n.dragStartMousePosition=null,n.currentMouseOverDroppableNodeKey=null}),u1(D1(n),"triggerExpandActionExpand",function(c,h){var s=n.state,u=s.expandedKeys,v=s.flattenNodes,f=h.expanded,d=h.key,M=h.isLeaf;if(!(M||c.shiftKey||c.metaKey||c.ctrlKey)){var g=v.filter(function(p){return p.key===d})[0],H=We(Q1(Q1({},vs(d,n.getTreeNodeRequiredProps())),{},{data:g.data}));n.setExpandedKeys(f?Ji(u,d):z3(u,d)),n.onNodeExpand(c,H)}}),u1(D1(n),"onNodeClick",function(c,h){var s=n.props,u=s.onClick,v=s.expandAction;v==="click"&&n.triggerExpandActionExpand(c,h),u==null||u(c,h)}),u1(D1(n),"onNodeDoubleClick",function(c,h){var s=n.props,u=s.onDoubleClick,v=s.expandAction;v==="doubleClick"&&n.triggerExpandActionExpand(c,h),u==null||u(c,h)}),u1(D1(n),"onNodeSelect",function(c,h){var s=n.state.selectedKeys,u=n.state,v=u.keyEntities,f=u.fieldNames,d=n.props,M=d.onSelect,g=d.multiple,H=h.selected,p=h[f.key],m=!H;m?g?s=z3(s,p):s=[p]:s=Ji(s,p);var z=s.map(function(w){var x=Ja(v,w);return x?x.node:null}).filter(function(w){return w});n.setUncontrolledState({selectedKeys:s}),M==null||M(s,{event:"select",selected:m,node:h,selectedNodes:z,nativeEvent:c.nativeEvent})}),u1(D1(n),"onNodeCheck",function(c,h,s){var u=n.state,v=u.keyEntities,f=u.checkedKeys,d=u.halfCheckedKeys,M=n.props,g=M.checkStrictly,H=M.onCheck,p=h.key,m,z={event:"check",node:h,checked:s,nativeEvent:c.nativeEvent};if(g){var w=s?z3(f,p):Ji(f,p),x=Ji(d,p);m={checked:w,halfChecked:x},z.checkedNodes=w.map(function(S){return Ja(v,S)}).filter(function(S){return S}).map(function(S){return S.node}),n.setUncontrolledState({checkedKeys:w})}else{var y=I6([].concat(i0(f),[p]),!0,v),V=y.checkedKeys,C=y.halfCheckedKeys;if(!s){var L=new Set(V);L.delete(p);var B=I6(Array.from(L),{checked:!1,halfCheckedKeys:C},v);V=B.checkedKeys,C=B.halfCheckedKeys}m=V,z.checkedNodes=[],z.checkedNodesPositions=[],z.halfCheckedKeys=C,V.forEach(function(S){var T=Ja(v,S);if(T){var E=T.node,$=T.pos;z.checkedNodes.push(E),z.checkedNodesPositions.push({node:E,pos:$})}}),n.setUncontrolledState({checkedKeys:V},!1,{halfCheckedKeys:C})}H==null||H(m,z)}),u1(D1(n),"onNodeLoad",function(c){var h=c.key,s=new Promise(function(u,v){n.setState(function(f){var d=f.loadedKeys,M=d===void 0?[]:d,g=f.loadingKeys,H=g===void 0?[]:g,p=n.props,m=p.loadData,z=p.onLoad;if(!m||M.indexOf(h)!==-1||H.indexOf(h)!==-1)return null;var w=m(c);return w.then(function(){var x=n.state.loadedKeys,y=z3(x,h);z==null||z(y,{event:"load",node:c}),n.setUncontrolledState({loadedKeys:y}),n.setState(function(V){return{loadingKeys:Ji(V.loadingKeys,h)}}),u()}).catch(function(x){if(n.setState(function(V){return{loadingKeys:Ji(V.loadingKeys,h)}}),n.loadingRetryTimes[h]=(n.loadingRetryTimes[h]||0)+1,n.loadingRetryTimes[h]>=nk2){var y=n.state.loadedKeys;Y4(!1,"Retry for `loadData` many times but still failed. No more retry."),n.setUncontrolledState({loadedKeys:z3(y,h)}),u()}v(x)}),{loadingKeys:z3(H,h)}})});return s.catch(function(){}),s}),u1(D1(n),"onNodeMouseEnter",function(c,h){var s=n.props.onMouseEnter;s==null||s({event:c,node:h})}),u1(D1(n),"onNodeMouseLeave",function(c,h){var s=n.props.onMouseLeave;s==null||s({event:c,node:h})}),u1(D1(n),"onNodeContextMenu",function(c,h){var s=n.props.onRightClick;s&&(c.preventDefault(),s({event:c,node:h}))}),u1(D1(n),"onFocus",function(){var c=n.props.onFocus;n.setState({focused:!0});for(var h=arguments.length,s=new Array(h),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!n.destroyed){var u=!1,v=!0,f={};Object.keys(c).forEach(function(d){if(d in n.props){v=!1;return}u=!0,f[d]=c[d]}),u&&(!h||v)&&n.setState(Q1(Q1({},f),s))}}),u1(D1(n),"scrollTo",function(c){n.listRef.current.scrollTo(c)}),n}return t2(a,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var r=this.props,o=r.activeKey,l=r.itemScrollOffset,c=l===void 0?0:l;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:c}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var r=this.state,o=r.focused,l=r.flattenNodes,c=r.keyEntities,h=r.draggingNodeKey,s=r.activeKey,u=r.dropLevelOffset,v=r.dropContainerKey,f=r.dropTargetKey,d=r.dropPosition,M=r.dragOverNodeKey,g=r.indent,H=this.props,p=H.prefixCls,m=H.className,z=H.style,w=H.showLine,x=H.focusable,y=H.tabIndex,V=y===void 0?0:y,C=H.selectable,L=H.showIcon,B=H.icon,S=H.switcherIcon,T=H.draggable,E=H.checkable,$=H.checkStrictly,U=H.disabled,W=H.motion,Y=H.loadData,F=H.filterTreeNode,t1=H.height,R=H.itemHeight,i1=H.virtual,J=H.titleRender,A=H.dropIndicatorRender,o1=H.onContextMenu,h1=H.onScroll,a1=H.direction,M1=H.rootClassName,s1=H.rootStyle,z1=X8(this.props,{aria:!0,data:!0}),m1;return T&&(C2(T)==="object"?m1=T:typeof T=="function"?m1={nodeDraggable:T}:m1={}),_.createElement(cO.Provider,{value:{prefixCls:p,selectable:C,showIcon:L,icon:B,switcherIcon:S,draggable:m1,draggingNodeKey:h,checkable:E,checkStrictly:$,disabled:U,keyEntities:c,dropLevelOffset:u,dropContainerKey:v,dropTargetKey:f,dropPosition:d,dragOverNodeKey:M,indent:g,direction:a1,dropIndicatorRender:A,loadData:Y,filterTreeNode:F,titleRender:J,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},_.createElement("div",{role:"tree",className:E2(p,m,M1,u1(u1(u1({},"".concat(p,"-show-line"),w),"".concat(p,"-focused"),o),"".concat(p,"-active-focused"),s!==null)),style:s1},_.createElement(f21,Zt({ref:this.listRef,prefixCls:p,style:z,data:l,disabled:U,selectable:C,checkable:!!E,motion:W,dragging:h!==null,height:t1,itemHeight:R,virtual:i1,focusable:x,focused:o,tabIndex:V,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:o1,onScroll:h1},this.getTreeNodeRequiredProps(),z1))))}}],[{key:"getDerivedStateFromProps",value:function(r,o){var l=o.prevProps,c={prevProps:r};function h(y){return!l&&y in r||l&&l[y]!==r[y]}var s,u=o.fieldNames;if(h("fieldNames")&&(u=pp(r.fieldNames),c.fieldNames=u),h("treeData")?s=r.treeData:h("children")&&(Y4(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),s=SA2(r.children)),s){c.treeData=s;var v=c21(s,{fieldNames:u});c.keyEntities=Q1(u1({},nl,d21),v.keyEntities)}var f=c.keyEntities||o.keyEntities;if(h("expandedKeys")||l&&h("autoExpandParent"))c.expandedKeys=r.autoExpandParent||!l&&r.defaultExpandParent?e$(r.expandedKeys,f):r.expandedKeys;else if(!l&&r.defaultExpandAll){var d=Q1({},f);delete d[nl],c.expandedKeys=Object.keys(d).map(function(y){return d[y].key})}else!l&&r.defaultExpandedKeys&&(c.expandedKeys=r.autoExpandParent||r.defaultExpandParent?e$(r.defaultExpandedKeys,f):r.defaultExpandedKeys);if(c.expandedKeys||delete c.expandedKeys,s||c.expandedKeys){var M=VV(s||o.treeData,c.expandedKeys||o.expandedKeys,u);c.flattenNodes=M}if(r.selectable&&(h("selectedKeys")?c.selectedKeys=t$(r.selectedKeys,r):!l&&r.defaultSelectedKeys&&(c.selectedKeys=t$(r.defaultSelectedKeys,r))),r.checkable){var g;if(h("checkedKeys")?g=CV(r.checkedKeys)||{}:!l&&r.defaultCheckedKeys?g=CV(r.defaultCheckedKeys)||{}:s&&(g=CV(r.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),g){var H=g,p=H.checkedKeys,m=p===void 0?[]:p,z=H.halfCheckedKeys,w=z===void 0?[]:z;if(!r.checkStrictly){var x=I6(m,!0,f);m=x.checkedKeys,w=x.halfCheckedKeys}c.checkedKeys=m,c.halfCheckedKeys=w}}return h("loadedKeys")&&(c.loadedKeys=r.loadedKeys),c}}]),a}(_.Component);u1(hO,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:IA2,allowDrop:function(){return!0},expandAction:!1});u1(hO,"TreeNode",rh);var g21=_.createContext(null),rk2={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ik2=function(e,a){var n=Rt1(),r=n.prefixCls,o=n.multiple,l=n.searchValue,c=n.toggleOpen,h=n.open,s=n.notFoundContent,u=_.useContext(g21),v=u.virtual,f=u.listHeight,d=u.listItemHeight,M=u.listItemScrollOffset,g=u.treeData,H=u.fieldNames,p=u.onSelect,m=u.dropdownMatchSelectWidth,z=u.treeExpandAction,w=u.treeTitleRender,x=_.useContext(h21),y=x.checkable,V=x.checkedKeys,C=x.halfCheckedKeys,L=x.treeExpandedKeys,B=x.treeDefaultExpandAll,S=x.treeDefaultExpandedKeys,T=x.onTreeExpand,E=x.treeIcon,$=x.showTreeIcon,U=x.switcherIcon,W=x.treeLine,Y=x.treeNodeFilterProp,F=x.loadData,t1=x.treeLoadedKeys,R=x.treeMotion,i1=x.onTreeLoad,J=x.keyEntities,A=_.useRef(),o1=MS(function(){return g},[h,g],function(b1,X){return X[0]&&b1[1]!==X[1]}),h1=_.useState(null),a1=ot(h1,2),M1=a1[0],s1=a1[1],z1=J[M1],m1=_.useMemo(function(){return y?{checked:V,halfChecked:C}:null},[y,V,C]);_.useEffect(function(){if(h&&!o&&V.length){var b1;(b1=A.current)===null||b1===void 0||b1.scrollTo({key:V[0]}),s1(V[0])}},[h]);var S1=String(l).toLowerCase(),I1=function(X){return S1?String(X[Y]).toLowerCase().includes(S1):!1},U1=_.useState(S),P1=ot(U1,2),G1=P1[0],rt=P1[1],X1=_.useState(null),nt=ot(X1,2),tt=nt[0],et=nt[1],vt=_.useMemo(function(){return L?i0(L):l?tt:G1},[G1,tt,L,l]);_.useEffect(function(){l&&et(kA2(g,H))},[l]);var V1=function(X){rt(X),et(X),T&&T(X)},q1=function(X){X.preventDefault()},B1=function(X,f1){var e1=f1.node;y&&EL(e1)||(p(e1.key,{selected:!V.includes(e1.key)}),o||c(!1))};if(_.useImperativeHandle(a,function(){var b1;return{scrollTo:(b1=A.current)===null||b1===void 0?void 0:b1.scrollTo,onKeyDown:function(f1){var e1,G=f1.which;switch(G){case it.UP:case it.DOWN:case it.LEFT:case it.RIGHT:(e1=A.current)===null||e1===void 0||e1.onKeyDown(f1);break;case it.ENTER:{if(z1){var r1=(z1==null?void 0:z1.node)||{},P=r1.selectable,q=r1.value;P!==!1&&B1(null,{node:{key:M1},selected:!V.includes(q)})}break}case it.ESC:c(!1)}},onKeyUp:function(){}}}),o1.length===0)return _.createElement("div",{role:"listbox",className:"".concat(r,"-empty"),onMouseDown:q1},s);var H1={fieldNames:H};return t1&&(H1.loadedKeys=t1),vt&&(H1.expandedKeys=vt),_.createElement("div",{onMouseDown:q1},z1&&h&&_.createElement("span",{style:rk2,"aria-live":"assertive"},z1.node.value),_.createElement(hO,Zt({ref:A,focusable:!1,prefixCls:"".concat(r,"-tree"),treeData:o1,height:f,itemHeight:d,itemScrollOffset:M,virtual:v!==!1&&m!==!1,multiple:o,icon:E,showIcon:$,switcherIcon:U,showLine:W,loadData:l?null:F,motion:R,activeKey:M1,checkable:y,checkStrictly:!0,checkedKeys:m1,selectedKeys:y?[]:V,defaultExpandAll:B,titleRender:w},H1,{onActiveChange:s1,onSelect:B1,onCheck:B1,onExpand:V1,onLoad:i1,filterTreeNode:I1,expandAction:z})))},ok2=_.forwardRef(ik2),uO="SHOW_ALL",vO="SHOW_PARENT",bM="SHOW_CHILD";function a$(t,e,a,n){var r=new Set(t);return e===bM?t.filter(function(o){var l=a[o];return!(l&&l.children&&l.children.some(function(c){var h=c.node;return r.has(h[n.value])})&&l.children.every(function(c){var h=c.node;return EL(h)||r.has(h[n.value])}))}):e===vO?t.filter(function(o){var l=a[o],c=l?l.parent:null;return!(c&&!EL(c.node)&&r.has(c.key))}):t}var lk2=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender"];function ck2(t){return!t||C2(t)!=="object"}var sk2=_.forwardRef(function(t,e){var a=t.id,n=t.prefixCls,r=n===void 0?"rc-tree-select":n,o=t.value,l=t.defaultValue,c=t.onChange,h=t.onSelect,s=t.onDeselect,u=t.searchValue,v=t.inputValue,f=t.onSearch,d=t.autoClearSearchValue,M=d===void 0?!0:d,g=t.filterTreeNode,H=t.treeNodeFilterProp,p=H===void 0?"value":H,m=t.showCheckedStrategy,z=t.treeNodeLabelProp,w=t.multiple,x=t.treeCheckable,y=t.treeCheckStrictly,V=t.labelInValue,C=t.fieldNames,L=t.treeDataSimpleMode,B=t.treeData,S=t.children,T=t.loadData,E=t.treeLoadedKeys,$=t.onTreeLoad,U=t.treeDefaultExpandAll,W=t.treeExpandedKeys,Y=t.treeDefaultExpandedKeys,F=t.onTreeExpand,t1=t.treeExpandAction,R=t.virtual,i1=t.listHeight,J=i1===void 0?200:i1,A=t.listItemHeight,o1=A===void 0?20:A,h1=t.listItemScrollOffset,a1=h1===void 0?0:h1,M1=t.onDropdownVisibleChange,s1=t.dropdownMatchSelectWidth,z1=s1===void 0?!0:s1,m1=t.treeLine,S1=t.treeIcon,I1=t.showTreeIcon,U1=t.switcherIcon,P1=t.treeMotion,G1=t.treeTitleRender,rt=d0(t,lk2),X1=n21(a),nt=x&&!y,tt=x||y,et=y||V,vt=tt||w,V1=ah(l,{value:o}),q1=ot(V1,2),B1=q1[0],H1=q1[1],b1=_.useMemo(function(){return x?m||bM:uO},[m,x]),X=_.useMemo(function(){return AA2(C)},[JSON.stringify(C)]),f1=ah("",{value:u!==void 0?u:v,postState:function(mt){return mt||""}}),e1=ot(f1,2),G=e1[0],r1=e1[1],P=function(mt){r1(mt),f==null||f(mt)},q=jA2(B,S,L),Z=EA2(q,X),l1=Z.keyEntities,v1=Z.valueEntities,x1=_.useCallback(function(wt){var mt=[],Tt=[];return wt.forEach(function(Kt){v1.has(Kt)?Tt.push(Kt):mt.push(Kt)}),{missingRawValues:mt,existRawValues:Tt}},[v1]),N1=DA2(q,G,{fieldNames:X,treeNodeFilterProp:p,filterTreeNode:g}),Z1=_.useCallback(function(wt){if(wt){if(z)return wt[z];for(var mt=X._title,Tt=0;Tt=Xt)){var C0=!0,de=c2;L==null||L(null);var Re=FO2(c2,q,OL(Xt)?Xt-f2.size:void 0),u4=re?null:Re;return H!=="combobox"&&u4&&(de="",$==null||$(u4),_t(!1),C0=!1),E&&v1!==de&&E(de,{source:ne?"typing":"effect"}),C0}},T0=function(c2){!c2||!c2.trim()||E(c2,{source:"submit"})};_.useEffect(function(){!Ot&&!nt&&H!=="combobox"&&y2("",!1,!1)},[Ot]),_.useEffect(function(){Gt&&p&&Ht(!1),p&&!G.current&&Z(!1)},[p]);var i0=jt1(),j0=ot(i0,2),_2=j0[0],ae=j0[1],wt=function(c2){var ne=_2(),re=c2.which;if(re===it.ENTER&&(H!=="combobox"&&c2.preventDefault(),Ot||_t(!0)),ae(!!v1),re===it.BACKSPACE&&!ne&&nt&&!v1&&u.length){for(var C0=o0(u),de=null,Re=C0.length-1;Re>=0;Re-=1){var u4=C0[Re];if(!u4.disabled){C0.splice(Re,1),de=u4;break}}de&&v(C0,{type:"remove",values:[de]})}for(var D4=arguments.length,x4=new Array(D4>1?D4-1:0),V4=1;V41?ne-1:0),C0=1;C01?Re-1:0),D4=1;D40&&arguments[0]!==void 0?arguments[0]:!1;u();var M=function(){c.current.forEach(function(H,p){if(H&&H.offsetParent){var m=K7(H),z=m.offsetHeight;h.current.get(p)!==z&&h.current.set(p,m.offsetHeight)}}),l(function(H){return H+1})};d?M():s.current=G4(M)}function f(d,M){var g=t(d),H=c.current.get(g);M?(c.current.set(g,M),v()):c.current.delete(g),!H!=!M&&(M?e==null||e(d):a==null||a(d))}return _.useEffect(function(){return u},[]),[f,v,h.current,o]}var YO2=10;function ZO2(t,e,a,n,r,o,l,c){var h=_.useRef(),s=_.useState(null),u=ot(s,2),v=u[0],f=u[1];return te(function(){if(v&&v.times=0;$-=1){var q=r(e[$]),U=a.get(q);if(U===void 0){m=!0;break}if(E-=U,E<=0)break}switch(x){case"top":w=V-H;break;case"bottom":w=C-p+H;break;default:{var Y=t.current.scrollTop,F=Y+p;VF&&(z="bottom")}}w!==null&&l(w),w!==v.lastTop&&(m=!0)}m&&f(Q1(Q1({},v),{},{times:v.times+1,targetAlign:z,lastTop:w}))}},[v,t.current]),function(d){if(d==null){c();return}if(G4.cancel(h.current),typeof d=="number")l(d);else if(d&&C2(d)==="object"){var M,g=d.align;"index"in d?M=d.index:M=e.findIndex(function(m){return r(m)===d.key});var H=d.offset,p=H===void 0?0:H;f({times:0,index:M,offset:p,originAlign:g})}}}function QO2(t,e,a){var n=t.length,r=e.length,o,l;if(n===0&&r===0)return null;n"u"?"undefined":C2(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const a21=function(t,e){var a=_.useRef(!1),n=_.useRef(null);function r(){clearTimeout(n.current),a.current=!0,n.current=setTimeout(function(){a.current=!1},50)}var o=_.useRef({top:t,bottom:e});return o.current.top=t,o.current.bottom=e,function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=l<0&&o.current.top||l>0&&o.current.bottom;return c&&h?(clearTimeout(n.current),a.current=!1):(!h||a.current)&&r(),!a.current&&h}};function JO2(t,e,a,n,r){var o=_.useRef(0),l=_.useRef(null),c=_.useRef(null),h=_.useRef(!1),s=a21(e,a);function u(H,p){G4.cancel(l.current),o.current+=p,c.current=p,!s(p)&&(RF||H.preventDefault(),l.current=G4(function(){var m=h.current?10:1;r(o.current*m),o.current=0}))}function v(H,p){r(p,!0),RF||H.preventDefault()}var f=_.useRef(null),d=_.useRef(null);function M(H){if(t){G4.cancel(d.current),d.current=G4(function(){f.current=null},2);var p=H.deltaX,m=H.deltaY,z=H.shiftKey,w=p,x=m;(f.current==="sx"||!f.current&&z&&m&&!p)&&(w=m,x=0,f.current="sx");var y=Math.abs(w),V=Math.abs(x);f.current===null&&(f.current=n&&y>V?"x":"y"),f.current==="y"?u(H,x):v(H,w)}}function g(H){t&&(h.current=H.detail===c.current)}return[M,g]}var tA2=14/15;function eA2(t,e,a){var n=_.useRef(!1),r=_.useRef(0),o=_.useRef(null),l=_.useRef(null),c,h=function(f){if(n.current){var d=Math.ceil(f.touches[0].pageY),M=r.current-d;r.current=d,a(M)&&f.preventDefault(),clearInterval(l.current),l.current=setInterval(function(){M*=tA2,(!a(M,!0)||Math.abs(M)<=.1)&&clearInterval(l.current)},16)}},s=function(){n.current=!1,c()},u=function(f){c(),f.touches.length===1&&!n.current&&(n.current=!0,r.current=Math.ceil(f.touches[0].pageY),o.current=f.target,o.current.addEventListener("touchmove",h),o.current.addEventListener("touchend",s))};c=function(){o.current&&(o.current.removeEventListener("touchmove",h),o.current.removeEventListener("touchend",s))},te(function(){return t&&e.current.addEventListener("touchstart",u),function(){var v;(v=e.current)===null||v===void 0||v.removeEventListener("touchstart",u),c(),clearInterval(l.current)}},[t])}var aA2=20;function jF(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=t/e*t;return isNaN(a)&&(a=0),a=Math.max(a,aA2),Math.floor(a)}function nA2(t,e,a,n){var r=_.useMemo(function(){return[new Map,[]]},[t,a.id,n]),o=ot(r,2),l=o[0],c=o[1],h=function(u){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,f=l.get(u),d=l.get(v);if(f===void 0||d===void 0)for(var M=t.length,g=c.length;go||!!g),S=M==="rtl",T=E2(n,u1({},"".concat(n,"-rtl"),S),r),E=u||iA2,$=_.useRef(),q=_.useRef(),U=_.useState(0),Y=ot(U,2),F=Y[0],X=Y[1],R=_.useState(0),i1=ot(R,2),t1=i1[0],A=i1[1],o1=_.useState(!1),h1=ot(o1,2),a1=h1[0],M1=h1[1],s1=function(){M1(!0)},z1=function(){M1(!1)},m1=_.useCallback(function(wt){return typeof f=="function"?f(wt):wt==null?void 0:wt[f]},[f]),S1={getKey:m1};function I1(wt){X(function(mt){var Tt;typeof wt=="function"?Tt=wt(mt):Tt=wt;var Kt=j1(Tt);return $.current.scrollTop=Kt,Kt})}var U1=_.useRef({start:0,end:E.length}),P1=_.useRef(),G1=XO2(E,m1),rt=ot(G1,1),X1=rt[0];P1.current=X1;var nt=KO2(m1,null,null),tt=ot(nt,4),et=tt[0],vt=tt[1],V1=tt[2],q1=tt[3],B1=_.useMemo(function(){if(!L)return{scrollHeight:void 0,start:0,end:E.length-1,offset:void 0};if(!B){var wt;return{scrollHeight:((wt=q.current)===null||wt===void 0?void 0:wt.offsetHeight)||0,start:0,end:E.length-1,offset:void 0}}for(var mt=0,Tt,Kt,S2,H2=E.length,m2=0;m2=F&&Tt===void 0&&(Tt=m2,Kt=mt),ve>F+o&&S2===void 0&&(S2=m2),mt=ve}return Tt===void 0&&(Tt=0,Kt=0,S2=Math.ceil(o/l)),S2===void 0&&(S2=E.length-1),S2=Math.min(S2+1,E.length-1),{scrollHeight:mt,start:Tt,end:S2,offset:Kt}},[B,L,F,E,q1,o]),H1=B1.scrollHeight,b1=B1.start,J=B1.end,f1=B1.offset;U1.current.start=b1,U1.current.end=J;var e1=_.useState({width:0,height:o}),G=ot(e1,2),r1=G[0],P=G[1],W=function(mt){P({width:mt.width||mt.offsetWidth,height:mt.height||mt.offsetHeight})},Z=_.useRef(),l1=_.useRef(),v1=_.useMemo(function(){return jF(r1.width,g)},[r1.width,g]),x1=_.useMemo(function(){return jF(r1.height,H1)},[r1.height,H1]),N1=H1-o,Z1=_.useRef(N1);Z1.current=N1;function j1(wt){var mt=wt;return Number.isNaN(Z1.current)||(mt=Math.min(mt,Z1.current)),mt=Math.max(mt,0),mt}var C1=F<=0,Vt=F>=N1,Y1=a21(C1,Vt),Ct=function(){return{x:S?-t1:t1,y:F}},ht=_.useRef(Ct()),Gt=Tn(function(){if(z){var wt=Ct();(ht.current.x!==wt.x||ht.current.y!==wt.y)&&(z(wt),ht.current=wt)}});function Ht(wt,mt){var Tt=wt;mt?($8.flushSync(function(){A(Tt)}),Gt()):I1(Tt)}function Ot(wt){var mt=wt.currentTarget.scrollTop;mt!==F&&I1(mt),m==null||m(wt),Gt()}var a2=function(mt){var Tt=mt,Kt=g-r1.width;return Tt=Math.max(Tt,0),Tt=Math.min(Tt,Kt),Tt},u2=Tn(function(wt,mt){mt?($8.flushSync(function(){A(function(Tt){var Kt=Tt+(S?-wt:wt);return a2(Kt)})}),Gt()):I1(function(Tt){var Kt=Tt+wt;return Kt})}),_t=JO2(L,C1,Vt,!!g,u2),At=ot(_t,2),Rt=At[0],Xt=At[1];eA2(L,$,function(wt,mt){return Y1(wt,mt)?!1:(Rt({preventDefault:function(){},deltaY:wt}),!0)}),te(function(){function wt(Tt){L&&Tt.preventDefault()}var mt=$.current;return mt.addEventListener("wheel",Rt),mt.addEventListener("DOMMouseScroll",Xt),mt.addEventListener("MozMousePixelScroll",wt),function(){mt.removeEventListener("wheel",Rt),mt.removeEventListener("DOMMouseScroll",Xt),mt.removeEventListener("MozMousePixelScroll",wt)}},[L]),te(function(){g&&A(function(wt){return a2(wt)})},[r1.width,g]);var f2=function(){var mt,Tt;(mt=Z.current)===null||mt===void 0||mt.delayHidden(),(Tt=l1.current)===null||Tt===void 0||Tt.delayHidden()},y2=ZO2($,E,V1,l,m1,function(){return vt(!0)},I1,f2);_.useImperativeHandle(e,function(){return{getScrollInfo:Ct,scrollTo:function(mt){function Tt(Kt){return Kt&&C2(Kt)==="object"&&("left"in Kt||"top"in Kt)}Tt(mt)?(mt.left!==void 0&&A(a2(mt.left)),y2(mt.top)):y2(mt)}}}),te(function(){if(w){var wt=E.slice(b1,J+1);w(wt,E)}},[b1,J,E]);var T0=nA2(E,m1,V1,l),i0=y==null?void 0:y({start:b1,end:J,virtual:B,offsetX:t1,offsetY:f1,rtl:S,getSize:T0}),j0=qO2(E,b1,J,g,et,v,S1),_2=null;o&&(_2=Q1(u1({},h?"height":"maxHeight",o),oA2),L&&(_2.overflowY="hidden",g&&(_2.overflowX="hidden"),a1&&(_2.pointerEvents="none")));var ae={};return S&&(ae.dir="rtl"),_.createElement("div",Zt({style:Q1(Q1({},s),{},{position:"relative"}),className:T},ae,C),_.createElement(Ll,{onResize:W},_.createElement(p,{className:"".concat(n,"-holder"),style:_2,ref:$,onScroll:Ot,onMouseEnter:f2},_.createElement(e21,{prefixCls:n,height:H1,offsetX:t1,offsetY:f1,scrollWidth:g,onInnerResize:vt,ref:q,innerProps:x,rtl:S,extra:i0},j0))),B&&H1>o&&_.createElement(DF,{ref:Z,prefixCls:n,scrollOffset:F,scrollRange:H1,rtl:S,onScroll:Ht,onStartMove:s1,onStopMove:z1,spinSize:x1,containerSize:r1.height,style:V==null?void 0:V.verticalScrollBar,thumbStyle:V==null?void 0:V.verticalScrollBarThumb}),B&&g>r1.width&&_.createElement(DF,{ref:l1,prefixCls:n,scrollOffset:t1,scrollRange:g,rtl:S,onScroll:Ht,onStartMove:s1,onStopMove:z1,spinSize:v1,containerSize:r1.width,horizontal:!0,style:V==null?void 0:V.horizontalScrollBar,thumbStyle:V==null?void 0:V.horizontalScrollBarThumb}))}var oO=_.forwardRef(lA2);oO.displayName="List";function cA2(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var sA2=["disabled","title","children","style","className"];function IF(t){return typeof t=="string"||typeof t=="number"}var hA2=function(e,a){var n=Rt1(),r=n.prefixCls,o=n.id,l=n.open,c=n.multiple,h=n.mode,s=n.searchValue,u=n.toggleOpen,v=n.notFoundContent,f=n.onPopupScroll,d=_.useContext(iO),M=d.maxCount,g=d.flattenOptions,H=d.onActiveValue,p=d.defaultActiveFirstOption,m=d.onSelect,z=d.menuItemSelectedIcon,w=d.rawValues,x=d.fieldNames,y=d.virtual,V=d.direction,C=d.listHeight,L=d.listItemHeight,B=d.optionRender,S="".concat(r,"-item"),T=MS(function(){return g},[l,g],function(m1,S1){return S1[0]&&m1[1]!==S1[1]}),E=_.useRef(null),$=_.useMemo(function(){return c&&OL(M)&&(w==null?void 0:w.size)>=M},[c,M,w==null?void 0:w.size]),q=function(S1){S1.preventDefault()},U=function(S1){var I1;(I1=E.current)===null||I1===void 0||I1.scrollTo(typeof S1=="number"?{index:S1}:S1)},Y=function(S1){for(var I1=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U1=T.length,P1=0;P11&&arguments[1]!==void 0?arguments[1]:!1;i1(S1);var U1={source:I1?"keyboard":"mouse"},P1=T[S1];if(!P1){H(null,-1,U1);return}H(P1.value,S1,U1)};_.useEffect(function(){t1(p!==!1?Y(0):-1)},[T.length,s]);var A=_.useCallback(function(m1){return w.has(m1)&&h!=="combobox"},[h,o0(w).toString(),w.size]);_.useEffect(function(){var m1=setTimeout(function(){if(!c&&l&&w.size===1){var I1=Array.from(w)[0],U1=T.findIndex(function(P1){var G1=P1.data;return G1.value===I1});U1!==-1&&(t1(U1),U(U1))}});if(l){var S1;(S1=E.current)===null||S1===void 0||S1.scrollTo(void 0)}return function(){return clearTimeout(m1)}},[l,s]);var o1=function(S1){S1!==void 0&&m(S1,{selected:!w.has(S1)}),c||u(!1)};if(_.useImperativeHandle(a,function(){return{onKeyDown:function(S1){var I1=S1.which,U1=S1.ctrlKey;switch(I1){case it.N:case it.P:case it.UP:case it.DOWN:{var P1=0;if(I1===it.UP?P1=-1:I1===it.DOWN?P1=1:cA2()&&U1&&(I1===it.N?P1=1:I1===it.P&&(P1=-1)),P1!==0){var G1=Y(R+P1,P1);U(G1),t1(G1,!0)}break}case it.ENTER:{var rt,X1=T[R];X1&&!(X1!=null&&(rt=X1.data)!==null&&rt!==void 0&&rt.disabled)&&!$?o1(X1.value):o1(void 0),l&&S1.preventDefault();break}case it.ESC:u(!1),l&&S1.stopPropagation()}},onKeyUp:function(){},scrollTo:function(S1){U(S1)}}}),T.length===0)return _.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(S,"-empty"),onMouseDown:q},v);var h1=Object.keys(x).map(function(m1){return x[m1]}),a1=function(S1){return S1.label};function M1(m1,S1){var I1=m1.group;return{role:I1?"presentation":"option",id:"".concat(o,"_list_").concat(S1)}}var s1=function(S1){var I1=T[S1];if(!I1)return null;var U1=I1.data||{},P1=U1.value,G1=I1.group,rt=X8(U1,!0),X1=a1(I1);return I1?_.createElement("div",Zt({"aria-label":typeof X1=="string"&&!G1?X1:null},rt,{key:S1},M1(I1,S1),{"aria-selected":A(P1)}),P1):null},z1={role:"listbox",id:"".concat(o,"_list")};return _.createElement(_.Fragment,null,y&&_.createElement("div",Zt({},z1,{style:{height:0,width:0,overflow:"hidden"}}),s1(R-1),s1(R),s1(R+1)),_.createElement(oO,{itemKey:"key",ref:E,data:T,height:C,itemHeight:L,fullHeight:!1,onMouseDown:q,onScroll:f,virtual:y,direction:V,innerProps:y?null:z1},function(m1,S1){var I1=m1.group,U1=m1.groupOption,P1=m1.data,G1=m1.label,rt=m1.value,X1=P1.key;if(I1){var nt,tt=(nt=P1.title)!==null&&nt!==void 0?nt:IF(G1)?G1.toString():void 0;return _.createElement("div",{className:E2(S,"".concat(S,"-group"),P1.className),title:tt},G1!==void 0?G1:X1)}var et=P1.disabled,vt=P1.title;P1.children;var V1=P1.style,q1=P1.className,B1=d0(P1,sA2),H1=F_(B1,h1),b1=A(rt),J=et||!b1&&$,f1="".concat(S,"-option"),e1=E2(S,f1,q1,u1(u1(u1(u1({},"".concat(f1,"-grouped"),U1),"".concat(f1,"-active"),R===S1&&!J),"".concat(f1,"-disabled"),J),"".concat(f1,"-selected"),b1)),G=a1(m1),r1=!z||typeof z=="function"||b1,P=typeof G=="number"?G:G||rt,W=IF(P)?P.toString():void 0;return vt!==void 0&&(W=vt),_.createElement("div",Zt({},X8(H1),y?{}:M1(m1,S1),{"aria-selected":b1,className:e1,title:W,onMouseMove:function(){R===S1||J||t1(S1)},onClick:function(){J||o1(rt)},style:V1}),_.createElement("div",{className:"".concat(f1,"-content")},typeof B=="function"?B(m1,{index:S1}):P),_.isValidElement(z)||b1,r1&&_.createElement(CM,{className:"".concat(S,"-option-state"),customizeIcon:z,customizeIconProps:{value:rt,disabled:J,isSelected:b1}},b1?"✓":null))}))},uA2=_.forwardRef(hA2);const vA2=function(t,e){var a=_.useRef({values:new Map,options:new Map}),n=_.useMemo(function(){var o=a.current,l=o.values,c=o.options,h=t.map(function(v){if(v.label===void 0){var f;return Q1(Q1({},v),{},{label:(f=l.get(v.value))===null||f===void 0?void 0:f.label})}return v}),s=new Map,u=new Map;return h.forEach(function(v){s.set(v.value,v),u.set(v.value,e.get(v.value)||c.get(v.value))}),a.current.values=s,a.current.options=u,h},[t,e]),r=_.useCallback(function(o){return e.get(o)||a.current.options.get(o)},[e]);return[n,r]};function xV(t,e){return qt1(t).join("").toUpperCase().includes(e)}const dA2=function(t,e,a,n,r){return _.useMemo(function(){if(!a||n===!1)return t;var o=e.options,l=e.label,c=e.value,h=[],s=typeof n=="function",u=a.toUpperCase(),v=s?n:function(d,M){return r?xV(M[r],u):M[o]?xV(M[l!=="children"?l:"label"],u):xV(M[c],u)},f=s?function(d){return AL(d)}:function(d){return d};return t.forEach(function(d){if(d[o]){var M=v(a,f(d));if(M)h.push(d);else{var g=d[o].filter(function(H){return v(a,f(H))});g.length&&h.push(Q1(Q1({},d),{},u1({},o,g)))}return}v(a,f(d))&&h.push(d)}),h},[t,n,r,a,e])};var FF=0,fA2=Gn();function gA2(){var t;return fA2?(t=FF,FF+=1):t="TEST_OR_SSR",t}function n21(t){var e=_.useState(),a=ot(e,2),n=a[0],r=a[1];return _.useEffect(function(){r("rc_select_".concat(gA2()))},[]),t||n}var pA2=["children","value"],mA2=["children"];function zA2(t){var e=t,a=e.key,n=e.props,r=n.children,o=n.value,l=d0(n,pA2);return Q1({key:a,value:o!==void 0?o:a,children:r},l)}function r21(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Vc(t).map(function(a,n){if(!_.isValidElement(a)||!a.type)return null;var r=a,o=r.type.isSelectOptGroup,l=r.key,c=r.props,h=c.children,s=d0(c,mA2);return e||!o?zA2(a):Q1(Q1({key:"__RC_SELECT_GRP__".concat(l===null?n:l,"__"),label:l},s),{},{options:r21(h)})}).filter(function(a){return a})}var MA2=function(e,a,n,r,o){return _.useMemo(function(){var l=e,c=!e;c&&(l=r21(a));var h=new Map,s=new Map,u=function(d,M,g){g&&typeof g=="string"&&d.set(M[g],M)},v=function f(d){for(var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g2&&arguments[2]!==void 0?arguments[2]:{},Xt=Rt.source,f2=Xt===void 0?"keyboard":Xt;Vt(At),l&&n==="combobox"&&_t!==null&&f2==="keyboard"&&N1(String(_t))},[l,n]),ht=function(At,Rt,Xt){var f2=function(){var Kt,S2=H1(At);return[X?{label:S2==null?void 0:S2[M1.label],value:At,key:(Kt=S2==null?void 0:S2.key)!==null&&Kt!==void 0?Kt:At}:At,AL(S2)]};if(Rt&&d){var y2=f2(),T0=ot(y2,2),i0=T0[0],j0=T0[1];d(i0,j0)}else if(!Rt&&M&&Xt!=="clear"){var _2=f2(),ae=ot(_2,2),wt=ae[0],mt=ae[1];M(wt,mt)}},Gt=$F(function(_t,At){var Rt,Xt=o1?At.selected:!0;Xt?Rt=o1?[].concat(o0(B1),[_t]):[_t]:Rt=B1.filter(function(f2){return f2.value!==_t}),Z(Rt),ht(_t,Xt),n==="combobox"?N1(""):(!kL||f)&&(S1(""),N1(""))}),Ht=function(At,Rt){Z(At);var Xt=Rt.type,f2=Rt.values;(Xt==="remove"||Xt==="clear")&&f2.forEach(function(y2){ht(y2.value,!1,Xt)})},Ot=function(At,Rt){if(S1(At),N1(null),Rt.source==="submit"){var Xt=(At||"").trim();if(Xt){var f2=Array.from(new Set([].concat(o0(J),[Xt])));Z(f2),ht(Xt,!0),S1("")}return}Rt.source!=="blur"&&(n==="combobox"&&Z(At),u==null||u(At))},a2=function(At){var Rt=At;n!=="tags"&&(Rt=At.map(function(f2){var y2=P1.get(f2);return y2==null?void 0:y2.value}).filter(function(f2){return f2!==void 0}));var Xt=Array.from(new Set([].concat(o0(J),o0(Rt))));Z(Xt),Xt.forEach(function(f2){ht(f2,!0)})},u2=_.useMemo(function(){var _t=B!==!1&&H!==!1;return Q1(Q1({},I1),{},{flattenOptions:W,onActiveValue:Ct,defaultActiveFirstOption:Y1,onSelect:Gt,menuItemSelectedIcon:L,rawValues:J,fieldNames:M1,virtual:_t,direction:S,listHeight:E,listItemHeight:q,childrenAsData:h1,maxCount:i1,optionRender:y})},[i1,I1,W,Ct,Y1,Gt,L,J,M1,B,H,S,E,q,h1,y]);return _.createElement(iO.Provider,{value:u2},_.createElement(Xt1,Zt({},t1,{id:A,prefixCls:o,ref:e,omitDomProps:wA2,mode:n,displayValues:b1,onDisplayValuesChange:Ht,direction:S,searchValue:m1,onSearch:Ot,autoClearSearchValue:f,onSearchSplit:a2,dropdownMatchSelectWidth:H,OptionList:uA2,emptyOptions:!W.length,activeValue:x1,activeDescendantId:"".concat(A,"_list_").concat(C1)})))}),i21=xA2;i21.Option=t21;i21.OptGroup=Jt1;function tn(t,e){return t[e]}function o21(t,e){var a=new Set;return t.forEach(function(n){e.has(n)||a.add(n)}),a}function VA2(t){var e=t||{},a=e.disabled,n=e.disableCheckbox,r=e.checkable;return!!(a||n)||r===!1}function CA2(t,e,a,n){for(var r=new Set(t),o=new Set,l=0;l<=a;l+=1){var c=e.get(l)||new Set;c.forEach(function(v){var f=v.key,d=v.node,M=v.children,g=M===void 0?[]:M;r.has(f)&&!n(d)&&g.filter(function(H){return!n(H.node)}).forEach(function(H){r.add(H.key)})})}for(var h=new Set,s=a;s>=0;s-=1){var u=e.get(s)||new Set;u.forEach(function(v){var f=v.parent,d=v.node;if(!(n(d)||!v.parent||h.has(v.parent.key))){if(n(v.parent.node)){h.add(f.key);return}var M=!0,g=!1;(f.children||[]).filter(function(H){return!n(H.node)}).forEach(function(H){var p=H.key,m=r.has(p);M&&!m&&(M=!1),!g&&(m||o.has(p))&&(g=!0)}),M&&r.add(f.key),g&&o.add(f.key),h.add(f.key)}})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(o21(o,r))}}function bA2(t,e,a,n,r){for(var o=new Set(t),l=new Set(e),c=0;c<=n;c+=1){var h=a.get(c)||new Set;h.forEach(function(f){var d=f.key,M=f.node,g=f.children,H=g===void 0?[]:g;!o.has(d)&&!l.has(d)&&!r(M)&&H.filter(function(p){return!r(p.node)}).forEach(function(p){o.delete(p.key)})})}l=new Set;for(var s=new Set,u=n;u>=0;u-=1){var v=a.get(u)||new Set;v.forEach(function(f){var d=f.parent,M=f.node;if(!(r(M)||!f.parent||s.has(f.parent.key))){if(r(f.parent.node)){s.add(d.key);return}var g=!0,H=!1;(d.children||[]).filter(function(p){return!r(p.node)}).forEach(function(p){var m=p.key,z=o.has(m);g&&!z&&(g=!1),!H&&(z||l.has(m))&&(H=!0)}),g||o.delete(d.key),H&&l.add(d.key),s.add(d.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(o21(l,o))}}function I6(t,e,a,n){var r=[],o;n?o=n:o=VA2;var l=new Set(t.filter(function(u){var v=!!tn(a,u);return v||r.push(u),v})),c=new Map,h=0;Object.keys(a).forEach(function(u){var v=a[u],f=v.level,d=c.get(f);d||(d=new Set,c.set(f,d)),d.add(v),h=Math.max(h,f)}),Y4(!r.length,"Tree missing follow keys: ".concat(r.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var s;return e===!0?s=CA2(l,c,h,o):s=bA2(l,e.halfCheckedKeys,c,h,o),s}const LA2=function(t){var e=_.useRef({valueLabels:new Map});return _.useMemo(function(){var a=e.current.valueLabels,n=new Map,r=t.map(function(o){var l,c=o.value,h=(l=o.label)!==null&&l!==void 0?l:a.get(c);return n.set(c,h),Q1(Q1({},o),{},{label:h})});return e.current.valueLabels=n,[r]},[t])},BA2=function(t,e,a,n){return _.useMemo(function(){var r=t.map(function(h){var s=h.value;return s}),o=e.map(function(h){var s=h.value;return s}),l=r.filter(function(h){return!n[h]});if(a){var c=I6(r,!0,n);r=c.checkedKeys,o=c.halfCheckedKeys}return[Array.from(new Set([].concat(o0(l),o0(r)))),o]},[t,e,a,n])};var _A2=["children"];function l21(t,e){return"".concat(t,"-").concat(e)}function SA2(t){return t&&t.type&&t.type.isTreeNode}function ru(t,e){return t??e}function pp(t){var e=t||{},a=e.title,n=e._title,r=e.key,o=e.children,l=a||"title";return{title:l,_title:n||[l],key:r||"key",children:o||"children"}}function TA2(t){function e(a){var n=Vc(a);return n.map(function(r){if(!SA2(r))return Y4(!r,"Tree/TreeNode can only accept TreeNode as children."),null;var o=r.key,l=r.props,c=l.children,h=d0(l,_A2),s=Q1({key:o},h),u=e(c);return u.length&&(s.children=u),s}).filter(function(r){return r})}return e(t)}function VV(t,e,a){var n=pp(a),r=n._title,o=n.key,l=n.children,c=new Set(e===!0?[]:e),h=[];function s(u){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(f,d){for(var M=l21(v?v.pos:"0",d),g=ru(f[o],M),H,p=0;p1&&arguments[1]!==void 0?arguments[1]:{},a=e.initWrapper,n=e.processEntity,r=e.onProcessFinished,o=e.externalGetKey,l=e.childrenPropName,c=e.fieldNames,h=arguments.length>2?arguments[2]:void 0,s=o||h,u={},v={},f={posEntities:u,keyEntities:v};return a&&(f=a(f)||f),OA2(t,function(d){var M=d.node,g=d.index,H=d.pos,p=d.key,m=d.parentPos,z=d.level,w=d.nodes,x={node:M,nodes:w,index:g,key:p,pos:H,level:z},y=ru(p,H);u[H]=x,v[y]=x,x.parent=u[m],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),n&&n(x,f)},{externalGetKey:s,childrenPropName:l,fieldNames:c}),r&&r(f),f}function vs(t,e){var a=e.expandedKeys,n=e.selectedKeys,r=e.loadedKeys,o=e.loadingKeys,l=e.checkedKeys,c=e.halfCheckedKeys,h=e.dragOverNodeKey,s=e.dropPosition,u=e.keyEntities,v=tn(u,t),f={eventKey:t,expanded:a.indexOf(t)!==-1,selected:n.indexOf(t)!==-1,loaded:r.indexOf(t)!==-1,loading:o.indexOf(t)!==-1,checked:l.indexOf(t)!==-1,halfChecked:c.indexOf(t)!==-1,pos:String(v?v.pos:""),dragOver:h===t&&s===0,dragOverGapTop:h===t&&s===-1,dragOverGapBottom:h===t&&s===1};return f}function We(t){var e=t.data,a=t.expanded,n=t.selected,r=t.checked,o=t.loaded,l=t.loading,c=t.halfChecked,h=t.dragOver,s=t.dragOverGapTop,u=t.dragOverGapBottom,v=t.pos,f=t.active,d=t.eventKey,M=Q1(Q1({},e),{},{expanded:a,selected:n,checked:r,loaded:o,loading:l,halfChecked:c,dragOver:h,dragOverGapTop:s,dragOverGapBottom:u,pos:v,active:f,key:d});return"props"in M||Object.defineProperty(M,"props",{get:function(){return Y4(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),t}}),M}function AA2(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}function kA2(t){var e=t||{},a=e.label,n=e.value,r=e.children,o=n||"value";return{_title:a?[a]:["title","label"],value:o,key:o,children:r||"children"}}function EL(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1}function EA2(t,e){var a=[];function n(r){r.forEach(function(o){var l=o[e.children];l&&(a.push(o[e.value]),n(l))})}return n(t),a}function UF(t){return t==null}const PA2=function(t,e){return _.useMemo(function(){var a=c21(t,{fieldNames:e,initWrapper:function(r){return Q1(Q1({},r),{},{valueEntities:new Map})},processEntity:function(r,o){var l=r.node[e.value];o.valueEntities.set(l,r)}});return a},[t,e])};var lO=function(){return null},NA2=["children","value"];function s21(t){return Vc(t).map(function(e){if(!_.isValidElement(e)||!e.type)return null;var a=e,n=a.key,r=a.props,o=r.children,l=r.value,c=d0(r,NA2),h=Q1({key:n,value:l},c),s=s21(o);return s.length&&(h.children=s),h}).filter(function(e){return e})}function PL(t){if(!t)return t;var e=Q1({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return Y4(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),e}}),e}function DA2(t,e,a,n,r,o){var l=null,c=null;function h(){function s(u){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map(function(d,M){var g="".concat(v,"-").concat(M),H=d[o.value],p=a.includes(H),m=s(d[o.children]||[],g,p),z=_.createElement(lO,d,m.map(function(x){return x.node}));if(e===H&&(l=z),p){var w={pos:g,node:z,children:m};return f||c.push(w),w}return null}).filter(function(d){return d})}c||(c=[],s(n),c.sort(function(u,v){var f=u.node.props.value,d=v.node.props.value,M=a.indexOf(f),g=a.indexOf(d);return M-g}))}Object.defineProperty(t,"triggerNode",{get:function(){return Y4(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),h(),l}}),Object.defineProperty(t,"allCheckedNodes",{get:function(){return Y4(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),h(),r?c:c.map(function(u){var v=u.node;return v})}})}const RA2=function(t,e,a){var n=a.treeNodeFilterProp,r=a.filterTreeNode,o=a.fieldNames,l=o.children;return _.useMemo(function(){if(!e||r===!1)return t;var c;if(typeof r=="function")c=r;else{var h=e.toUpperCase();c=function(v,f){var d=f[n];return String(d).toUpperCase().includes(h)}}function s(u){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return u.reduce(function(f,d){var M=d[l],g=v||c(e,PL(d)),H=s(M||[],g);return(g||H.length)&&f.push(Q1(Q1({},d),{},u1({isLeaf:void 0},l,H))),f},[])}return s(t)},[t,e,l,n,r])};function WF(t){var e=_.useRef();e.current=t;var a=_.useCallback(function(){return e.current.apply(e,arguments)},[]);return a}function jA2(t,e){var a=e.id,n=e.pId,r=e.rootPId,o={},l=[],c=t.map(function(h){var s=Q1({},h),u=s[a];return o[u]=s,s.key=s.key||u,s});return c.forEach(function(h){var s=h[n],u=o[s];u&&(u.children=u.children||[],u.children.push(h)),(s===r||!u&&r===null)&&l.push(h)}),l}function IA2(t,e,a){return _.useMemo(function(){return t?a?jA2(t,Q1({id:"id",pId:"pId",rootPId:null},a!==!0?a:{})):t:s21(e)},[e,a,t])}var h21=_.createContext(null),cO=_.createContext(null);function FA2(t){var e=t.dropPosition,a=t.dropLevelOffset,n=t.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(e){case-1:r.top=0,r.left=-a*n;break;case 1:r.bottom=0,r.left=-a*n;break;case 0:r.bottom=0,r.left=n;break}return _.createElement("div",{style:r})}function u21(t){if(t==null)throw new TypeError("Cannot destructure "+t)}var $A2=function(e){for(var a=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,l="".concat(a,"-indent-unit"),c=[],h=0;h0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=t.length,n=e.length;if(Math.abs(a-n)!==1)return{add:!1,key:null};function r(o,l){var c=new Map;o.forEach(function(s){c.set(s,!0)});var h=l.filter(function(s){return!c.has(s)});return h.length===1?h[0]:null}return a ").concat(e);return e}var f21=_.forwardRef(function(t,e){var a=t.prefixCls,n=t.data;t.selectable,t.checkable;var r=t.expandedKeys,o=t.selectedKeys,l=t.checkedKeys,c=t.loadedKeys,h=t.loadingKeys,s=t.halfCheckedKeys,u=t.keyEntities,v=t.disabled,f=t.dragging,d=t.dragOverNodeKey,M=t.dropPosition,g=t.motion,H=t.height,p=t.itemHeight,m=t.virtual,z=t.focusable,w=t.activeItem,x=t.focused,y=t.tabIndex,V=t.onKeyDown,C=t.onFocus,L=t.onBlur,B=t.onActiveChange,S=t.onListChangeStart,T=t.onListChangeEnd,E=d0(t,XA2),$=_.useRef(null),q=_.useRef(null);_.useImperativeHandle(e,function(){return{scrollTo:function(vt){$.current.scrollTo(vt)},getIndentWidth:function(){return q.current.offsetWidth}}});var U=_.useState(r),Y=ot(U,2),F=Y[0],X=Y[1],R=_.useState(n),i1=ot(R,2),t1=i1[0],A=i1[1],o1=_.useState(n),h1=ot(o1,2),a1=h1[0],M1=h1[1],s1=_.useState([]),z1=ot(s1,2),m1=z1[0],S1=z1[1],I1=_.useState(null),U1=ot(I1,2),P1=U1[0],G1=U1[1],rt=_.useRef(n);rt.current=n;function X1(){var et=rt.current;A(et),M1(et),S1([]),G1(null),T()}te(function(){X(r);var et=QA2(F,r);if(et.key!==null)if(et.add){var vt=t1.findIndex(function(J){var f1=J.key;return f1===et.key}),V1=QF(KF(t1,n,et.key),m,H,p),q1=t1.slice();q1.splice(vt+1,0,ZF),M1(q1),S1(V1),G1("show")}else{var B1=n.findIndex(function(J){var f1=J.key;return f1===et.key}),H1=QF(KF(n,t1,et.key),m,H,p),b1=n.slice();b1.splice(B1+1,0,ZF),M1(b1),S1(H1),G1("hide")}else t1!==n&&(A(n),M1(n))},[r,n]),_.useEffect(function(){f||X1()},[f]);var nt=g?a1:n,tt={expandedKeys:r,selectedKeys:o,loadedKeys:c,loadingKeys:h,checkedKeys:l,halfCheckedKeys:s,dragOverNodeKey:d,dropPosition:M,keyEntities:u};return _.createElement(_.Fragment,null,x&&w&&_.createElement("span",{style:YF,"aria-live":"assertive"},tk2(w)),_.createElement("div",null,_.createElement("input",{style:YF,disabled:z===!1||v,tabIndex:z!==!1?y:null,onKeyDown:V,onFocus:C,onBlur:L,value:"",onChange:JA2,"aria-label":"for screen reader"})),_.createElement("div",{className:"".concat(a,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},_.createElement("div",{className:"".concat(a,"-indent")},_.createElement("div",{ref:q,className:"".concat(a,"-indent-unit")}))),_.createElement(oO,Zt({},E,{data:nt,itemKey:XF,height:H,fullHeight:!1,virtual:m,itemHeight:p,prefixCls:"".concat(a,"-list"),ref:$,onVisibleChange:function(vt,V1){var q1=new Set(vt),B1=V1.filter(function(H1){return!q1.has(H1)});B1.some(function(H1){return XF(H1)===nl})&&X1()}}),function(et){var vt=et.pos,V1=Object.assign({},(u21(et.data),et.data)),q1=et.title,B1=et.key,H1=et.isStart,b1=et.isEnd,J=ru(B1,vt);delete V1.key,delete V1.children;var f1=vs(J,tt);return _.createElement(ZA2,Zt({},V1,f1,{title:q1,active:!!w&&B1===w.key,pos:vt,data:et.data,isStart:H1,isEnd:b1,motion:g,motionNodes:B1===nl?m1:null,motionType:P1,onMotionStart:S,onMotionEnd:X1,treeNodeRequiredProps:tt,onMouseMove:function(){B(null)}}))}))});f21.displayName="NodeList";function Ji(t,e){if(!t)return[];var a=t.slice(),n=a.indexOf(e);return n>=0&&a.splice(n,1),a}function z3(t,e){var a=(t||[]).slice();return a.indexOf(e)===-1&&a.push(e),a}function sO(t){return t.split("-")}function ek2(t,e){var a=[],n=tn(e,t);function r(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(l){var c=l.key,h=l.children;a.push(c),r(h)})}return r(n.children),a}function ak2(t){if(t.parent){var e=sO(t.pos);return Number(e[e.length-1])===t.parent.children.length-1}return!1}function nk2(t){var e=sO(t.pos);return Number(e[e.length-1])===0}function JF(t,e,a,n,r,o,l,c,h,s){var u,v=t.clientX,f=t.clientY,d=t.target.getBoundingClientRect(),M=d.top,g=d.height,H=(s==="rtl"?-1:1)*(((r==null?void 0:r.x)||0)-v),p=(H-12)/n,m=h.filter(function(U){var Y;return(Y=c[U])===null||Y===void 0||(Y=Y.children)===null||Y===void 0?void 0:Y.length}),z=tn(c,a.props.eventKey);if(f-1.5?o({dragNode:E,dropNode:$,dropPosition:1})?B=1:q=!1:o({dragNode:E,dropNode:$,dropPosition:0})?B=0:o({dragNode:E,dropNode:$,dropPosition:1})?B=1:q=!1:o({dragNode:E,dropNode:$,dropPosition:1})?B=1:q=!1,{dropPosition:B,dropLevelOffset:S,dropTargetKey:z.key,dropTargetPos:z.pos,dragOverNodeKey:L,dropContainerKey:B===0?null:((u=z.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:q}}function t$(t,e){if(t){var a=e.multiple;return a?t.slice():t.length?[t[0]]:t}}function CV(t){if(!t)return null;var e;if(Array.isArray(t))e={checkedKeys:t,halfCheckedKeys:void 0};else if(C2(t)==="object")e={checkedKeys:t.checked||void 0,halfCheckedKeys:t.halfChecked||void 0};else return Y4(!1,"`checkedKeys` is not an array or an object"),null;return e}function e$(t,e){var a=new Set;function n(r){if(!a.has(r)){var o=tn(e,r);if(o){a.add(r);var l=o.parent,c=o.node;c.disabled||l&&n(l.key)}}}return(t||[]).forEach(function(r){n(r)}),o0(a)}var rk2=10,hO=function(t){M2(a,t);var e=B2(a);function a(){var n;Jt(this,a);for(var r=arguments.length,o=new Array(r),l=0;l2&&arguments[2]!==void 0?arguments[2]:!1,v=n.state,f=v.dragChildrenKeys,d=v.dropPosition,M=v.dropTargetKey,g=v.dropTargetPos,H=v.dropAllowed;if(H){var p=n.props.onDrop;if(n.setState({dragOverNodeKey:null}),n.cleanDragState(),M!==null){var m=Q1(Q1({},vs(M,n.getTreeNodeRequiredProps())),{},{active:((s=n.getActiveItem())===null||s===void 0?void 0:s.key)===M,data:tn(n.state.keyEntities,M).node}),z=f.indexOf(M)!==-1;Y4(!z,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=sO(g),x={event:c,node:We(m),dragNode:n.dragNode?We(n.dragNode.props):null,dragNodesKeys:[n.dragNode.props.eventKey].concat(f),dropToGap:d!==0,dropPosition:d+Number(w[w.length-1])};u||p==null||p(x),n.dragNode=null}}}),u1(D1(n),"cleanDragState",function(){var c=n.state.draggingNodeKey;c!==null&&n.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),n.dragStartMousePosition=null,n.currentMouseOverDroppableNodeKey=null}),u1(D1(n),"triggerExpandActionExpand",function(c,h){var s=n.state,u=s.expandedKeys,v=s.flattenNodes,f=h.expanded,d=h.key,M=h.isLeaf;if(!(M||c.shiftKey||c.metaKey||c.ctrlKey)){var g=v.filter(function(p){return p.key===d})[0],H=We(Q1(Q1({},vs(d,n.getTreeNodeRequiredProps())),{},{data:g.data}));n.setExpandedKeys(f?Ji(u,d):z3(u,d)),n.onNodeExpand(c,H)}}),u1(D1(n),"onNodeClick",function(c,h){var s=n.props,u=s.onClick,v=s.expandAction;v==="click"&&n.triggerExpandActionExpand(c,h),u==null||u(c,h)}),u1(D1(n),"onNodeDoubleClick",function(c,h){var s=n.props,u=s.onDoubleClick,v=s.expandAction;v==="doubleClick"&&n.triggerExpandActionExpand(c,h),u==null||u(c,h)}),u1(D1(n),"onNodeSelect",function(c,h){var s=n.state.selectedKeys,u=n.state,v=u.keyEntities,f=u.fieldNames,d=n.props,M=d.onSelect,g=d.multiple,H=h.selected,p=h[f.key],m=!H;m?g?s=z3(s,p):s=[p]:s=Ji(s,p);var z=s.map(function(w){var x=tn(v,w);return x?x.node:null}).filter(function(w){return w});n.setUncontrolledState({selectedKeys:s}),M==null||M(s,{event:"select",selected:m,node:h,selectedNodes:z,nativeEvent:c.nativeEvent})}),u1(D1(n),"onNodeCheck",function(c,h,s){var u=n.state,v=u.keyEntities,f=u.checkedKeys,d=u.halfCheckedKeys,M=n.props,g=M.checkStrictly,H=M.onCheck,p=h.key,m,z={event:"check",node:h,checked:s,nativeEvent:c.nativeEvent};if(g){var w=s?z3(f,p):Ji(f,p),x=Ji(d,p);m={checked:w,halfChecked:x},z.checkedNodes=w.map(function(S){return tn(v,S)}).filter(function(S){return S}).map(function(S){return S.node}),n.setUncontrolledState({checkedKeys:w})}else{var y=I6([].concat(o0(f),[p]),!0,v),V=y.checkedKeys,C=y.halfCheckedKeys;if(!s){var L=new Set(V);L.delete(p);var B=I6(Array.from(L),{checked:!1,halfCheckedKeys:C},v);V=B.checkedKeys,C=B.halfCheckedKeys}m=V,z.checkedNodes=[],z.checkedNodesPositions=[],z.halfCheckedKeys=C,V.forEach(function(S){var T=tn(v,S);if(T){var E=T.node,$=T.pos;z.checkedNodes.push(E),z.checkedNodesPositions.push({node:E,pos:$})}}),n.setUncontrolledState({checkedKeys:V},!1,{halfCheckedKeys:C})}H==null||H(m,z)}),u1(D1(n),"onNodeLoad",function(c){var h=c.key,s=new Promise(function(u,v){n.setState(function(f){var d=f.loadedKeys,M=d===void 0?[]:d,g=f.loadingKeys,H=g===void 0?[]:g,p=n.props,m=p.loadData,z=p.onLoad;if(!m||M.indexOf(h)!==-1||H.indexOf(h)!==-1)return null;var w=m(c);return w.then(function(){var x=n.state.loadedKeys,y=z3(x,h);z==null||z(y,{event:"load",node:c}),n.setUncontrolledState({loadedKeys:y}),n.setState(function(V){return{loadingKeys:Ji(V.loadingKeys,h)}}),u()}).catch(function(x){if(n.setState(function(V){return{loadingKeys:Ji(V.loadingKeys,h)}}),n.loadingRetryTimes[h]=(n.loadingRetryTimes[h]||0)+1,n.loadingRetryTimes[h]>=rk2){var y=n.state.loadedKeys;Y4(!1,"Retry for `loadData` many times but still failed. No more retry."),n.setUncontrolledState({loadedKeys:z3(y,h)}),u()}v(x)}),{loadingKeys:z3(H,h)}})});return s.catch(function(){}),s}),u1(D1(n),"onNodeMouseEnter",function(c,h){var s=n.props.onMouseEnter;s==null||s({event:c,node:h})}),u1(D1(n),"onNodeMouseLeave",function(c,h){var s=n.props.onMouseLeave;s==null||s({event:c,node:h})}),u1(D1(n),"onNodeContextMenu",function(c,h){var s=n.props.onRightClick;s&&(c.preventDefault(),s({event:c,node:h}))}),u1(D1(n),"onFocus",function(){var c=n.props.onFocus;n.setState({focused:!0});for(var h=arguments.length,s=new Array(h),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!n.destroyed){var u=!1,v=!0,f={};Object.keys(c).forEach(function(d){if(d in n.props){v=!1;return}u=!0,f[d]=c[d]}),u&&(!h||v)&&n.setState(Q1(Q1({},f),s))}}),u1(D1(n),"scrollTo",function(c){n.listRef.current.scrollTo(c)}),n}return t2(a,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var r=this.props,o=r.activeKey,l=r.itemScrollOffset,c=l===void 0?0:l;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:c}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var r=this.state,o=r.focused,l=r.flattenNodes,c=r.keyEntities,h=r.draggingNodeKey,s=r.activeKey,u=r.dropLevelOffset,v=r.dropContainerKey,f=r.dropTargetKey,d=r.dropPosition,M=r.dragOverNodeKey,g=r.indent,H=this.props,p=H.prefixCls,m=H.className,z=H.style,w=H.showLine,x=H.focusable,y=H.tabIndex,V=y===void 0?0:y,C=H.selectable,L=H.showIcon,B=H.icon,S=H.switcherIcon,T=H.draggable,E=H.checkable,$=H.checkStrictly,q=H.disabled,U=H.motion,Y=H.loadData,F=H.filterTreeNode,X=H.height,R=H.itemHeight,i1=H.virtual,t1=H.titleRender,A=H.dropIndicatorRender,o1=H.onContextMenu,h1=H.onScroll,a1=H.direction,M1=H.rootClassName,s1=H.rootStyle,z1=X8(this.props,{aria:!0,data:!0}),m1;return T&&(C2(T)==="object"?m1=T:typeof T=="function"?m1={nodeDraggable:T}:m1={}),_.createElement(cO.Provider,{value:{prefixCls:p,selectable:C,showIcon:L,icon:B,switcherIcon:S,draggable:m1,draggingNodeKey:h,checkable:E,checkStrictly:$,disabled:q,keyEntities:c,dropLevelOffset:u,dropContainerKey:v,dropTargetKey:f,dropPosition:d,dragOverNodeKey:M,indent:g,direction:a1,dropIndicatorRender:A,loadData:Y,filterTreeNode:F,titleRender:t1,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},_.createElement("div",{role:"tree",className:E2(p,m,M1,u1(u1(u1({},"".concat(p,"-show-line"),w),"".concat(p,"-focused"),o),"".concat(p,"-active-focused"),s!==null)),style:s1},_.createElement(f21,Zt({ref:this.listRef,prefixCls:p,style:z,data:l,disabled:q,selectable:C,checkable:!!E,motion:U,dragging:h!==null,height:X,itemHeight:R,virtual:i1,focusable:x,focused:o,tabIndex:V,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:o1,onScroll:h1},this.getTreeNodeRequiredProps(),z1))))}}],[{key:"getDerivedStateFromProps",value:function(r,o){var l=o.prevProps,c={prevProps:r};function h(y){return!l&&y in r||l&&l[y]!==r[y]}var s,u=o.fieldNames;if(h("fieldNames")&&(u=pp(r.fieldNames),c.fieldNames=u),h("treeData")?s=r.treeData:h("children")&&(Y4(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),s=TA2(r.children)),s){c.treeData=s;var v=c21(s,{fieldNames:u});c.keyEntities=Q1(u1({},nl,d21),v.keyEntities)}var f=c.keyEntities||o.keyEntities;if(h("expandedKeys")||l&&h("autoExpandParent"))c.expandedKeys=r.autoExpandParent||!l&&r.defaultExpandParent?e$(r.expandedKeys,f):r.expandedKeys;else if(!l&&r.defaultExpandAll){var d=Q1({},f);delete d[nl],c.expandedKeys=Object.keys(d).map(function(y){return d[y].key})}else!l&&r.defaultExpandedKeys&&(c.expandedKeys=r.autoExpandParent||r.defaultExpandParent?e$(r.defaultExpandedKeys,f):r.defaultExpandedKeys);if(c.expandedKeys||delete c.expandedKeys,s||c.expandedKeys){var M=VV(s||o.treeData,c.expandedKeys||o.expandedKeys,u);c.flattenNodes=M}if(r.selectable&&(h("selectedKeys")?c.selectedKeys=t$(r.selectedKeys,r):!l&&r.defaultSelectedKeys&&(c.selectedKeys=t$(r.defaultSelectedKeys,r))),r.checkable){var g;if(h("checkedKeys")?g=CV(r.checkedKeys)||{}:!l&&r.defaultCheckedKeys?g=CV(r.defaultCheckedKeys)||{}:s&&(g=CV(r.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),g){var H=g,p=H.checkedKeys,m=p===void 0?[]:p,z=H.halfCheckedKeys,w=z===void 0?[]:z;if(!r.checkStrictly){var x=I6(m,!0,f);m=x.checkedKeys,w=x.halfCheckedKeys}c.checkedKeys=m,c.halfCheckedKeys=w}}return h("loadedKeys")&&(c.loadedKeys=r.loadedKeys),c}}]),a}(_.Component);u1(hO,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:FA2,allowDrop:function(){return!0},expandAction:!1});u1(hO,"TreeNode",rh);var g21=_.createContext(null),ik2={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ok2=function(e,a){var n=Rt1(),r=n.prefixCls,o=n.multiple,l=n.searchValue,c=n.toggleOpen,h=n.open,s=n.notFoundContent,u=_.useContext(g21),v=u.virtual,f=u.listHeight,d=u.listItemHeight,M=u.listItemScrollOffset,g=u.treeData,H=u.fieldNames,p=u.onSelect,m=u.dropdownMatchSelectWidth,z=u.treeExpandAction,w=u.treeTitleRender,x=_.useContext(h21),y=x.checkable,V=x.checkedKeys,C=x.halfCheckedKeys,L=x.treeExpandedKeys,B=x.treeDefaultExpandAll,S=x.treeDefaultExpandedKeys,T=x.onTreeExpand,E=x.treeIcon,$=x.showTreeIcon,q=x.switcherIcon,U=x.treeLine,Y=x.treeNodeFilterProp,F=x.loadData,X=x.treeLoadedKeys,R=x.treeMotion,i1=x.onTreeLoad,t1=x.keyEntities,A=_.useRef(),o1=MS(function(){return g},[h,g],function(b1,J){return J[0]&&b1[1]!==J[1]}),h1=_.useState(null),a1=ot(h1,2),M1=a1[0],s1=a1[1],z1=t1[M1],m1=_.useMemo(function(){return y?{checked:V,halfChecked:C}:null},[y,V,C]);_.useEffect(function(){if(h&&!o&&V.length){var b1;(b1=A.current)===null||b1===void 0||b1.scrollTo({key:V[0]}),s1(V[0])}},[h]);var S1=String(l).toLowerCase(),I1=function(J){return S1?String(J[Y]).toLowerCase().includes(S1):!1},U1=_.useState(S),P1=ot(U1,2),G1=P1[0],rt=P1[1],X1=_.useState(null),nt=ot(X1,2),tt=nt[0],et=nt[1],vt=_.useMemo(function(){return L?o0(L):l?tt:G1},[G1,tt,L,l]);_.useEffect(function(){l&&et(EA2(g,H))},[l]);var V1=function(J){rt(J),et(J),T&&T(J)},q1=function(J){J.preventDefault()},B1=function(J,f1){var e1=f1.node;y&&EL(e1)||(p(e1.key,{selected:!V.includes(e1.key)}),o||c(!1))};if(_.useImperativeHandle(a,function(){var b1;return{scrollTo:(b1=A.current)===null||b1===void 0?void 0:b1.scrollTo,onKeyDown:function(f1){var e1,G=f1.which;switch(G){case it.UP:case it.DOWN:case it.LEFT:case it.RIGHT:(e1=A.current)===null||e1===void 0||e1.onKeyDown(f1);break;case it.ENTER:{if(z1){var r1=(z1==null?void 0:z1.node)||{},P=r1.selectable,W=r1.value;P!==!1&&B1(null,{node:{key:M1},selected:!V.includes(W)})}break}case it.ESC:c(!1)}},onKeyUp:function(){}}}),o1.length===0)return _.createElement("div",{role:"listbox",className:"".concat(r,"-empty"),onMouseDown:q1},s);var H1={fieldNames:H};return X&&(H1.loadedKeys=X),vt&&(H1.expandedKeys=vt),_.createElement("div",{onMouseDown:q1},z1&&h&&_.createElement("span",{style:ik2,"aria-live":"assertive"},z1.node.value),_.createElement(hO,Zt({ref:A,focusable:!1,prefixCls:"".concat(r,"-tree"),treeData:o1,height:f,itemHeight:d,itemScrollOffset:M,virtual:v!==!1&&m!==!1,multiple:o,icon:E,showIcon:$,switcherIcon:q,showLine:U,loadData:l?null:F,motion:R,activeKey:M1,checkable:y,checkStrictly:!0,checkedKeys:m1,selectedKeys:y?[]:V,defaultExpandAll:B,titleRender:w},H1,{onActiveChange:s1,onSelect:B1,onCheck:B1,onExpand:V1,onLoad:i1,filterTreeNode:I1,expandAction:z})))},lk2=_.forwardRef(ok2),uO="SHOW_ALL",vO="SHOW_PARENT",bM="SHOW_CHILD";function a$(t,e,a,n){var r=new Set(t);return e===bM?t.filter(function(o){var l=a[o];return!(l&&l.children&&l.children.some(function(c){var h=c.node;return r.has(h[n.value])})&&l.children.every(function(c){var h=c.node;return EL(h)||r.has(h[n.value])}))}):e===vO?t.filter(function(o){var l=a[o],c=l?l.parent:null;return!(c&&!EL(c.node)&&r.has(c.key))}):t}var ck2=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender"];function sk2(t){return!t||C2(t)!=="object"}var hk2=_.forwardRef(function(t,e){var a=t.id,n=t.prefixCls,r=n===void 0?"rc-tree-select":n,o=t.value,l=t.defaultValue,c=t.onChange,h=t.onSelect,s=t.onDeselect,u=t.searchValue,v=t.inputValue,f=t.onSearch,d=t.autoClearSearchValue,M=d===void 0?!0:d,g=t.filterTreeNode,H=t.treeNodeFilterProp,p=H===void 0?"value":H,m=t.showCheckedStrategy,z=t.treeNodeLabelProp,w=t.multiple,x=t.treeCheckable,y=t.treeCheckStrictly,V=t.labelInValue,C=t.fieldNames,L=t.treeDataSimpleMode,B=t.treeData,S=t.children,T=t.loadData,E=t.treeLoadedKeys,$=t.onTreeLoad,q=t.treeDefaultExpandAll,U=t.treeExpandedKeys,Y=t.treeDefaultExpandedKeys,F=t.onTreeExpand,X=t.treeExpandAction,R=t.virtual,i1=t.listHeight,t1=i1===void 0?200:i1,A=t.listItemHeight,o1=A===void 0?20:A,h1=t.listItemScrollOffset,a1=h1===void 0?0:h1,M1=t.onDropdownVisibleChange,s1=t.dropdownMatchSelectWidth,z1=s1===void 0?!0:s1,m1=t.treeLine,S1=t.treeIcon,I1=t.showTreeIcon,U1=t.switcherIcon,P1=t.treeMotion,G1=t.treeTitleRender,rt=d0(t,ck2),X1=n21(a),nt=x&&!y,tt=x||y,et=y||V,vt=tt||w,V1=ah(l,{value:o}),q1=ot(V1,2),B1=q1[0],H1=q1[1],b1=_.useMemo(function(){return x?m||bM:uO},[m,x]),J=_.useMemo(function(){return kA2(C)},[JSON.stringify(C)]),f1=ah("",{value:u!==void 0?u:v,postState:function(mt){return mt||""}}),e1=ot(f1,2),G=e1[0],r1=e1[1],P=function(mt){r1(mt),f==null||f(mt)},W=IA2(B,S,L),Z=PA2(W,J),l1=Z.keyEntities,v1=Z.valueEntities,x1=_.useCallback(function(wt){var mt=[],Tt=[];return wt.forEach(function(Kt){v1.has(Kt)?Tt.push(Kt):mt.push(Kt)}),{missingRawValues:mt,existRawValues:Tt}},[v1]),N1=RA2(W,G,{fieldNames:J,treeNodeFilterProp:p,filterTreeNode:g}),Z1=_.useCallback(function(wt){if(wt){if(z)return wt[z];for(var mt=J._title,Tt=0;Tt0?o1.value.notes.map(function(G1){return(0,r.jsx)(g.Note,{children:(0,r.jsx)(v.EditTaskNote,{note:G1,onEdit:function(){return A(V.id)},onDelete:function(){return A(V.id)}})},G1.id)}):(0,r.jsx)(d.Text,{children:F("Tasks.NoNotes")})})]}),(0,r.jsx)(v.AddTaskNote,{taskId:V.id,onSuccess:function(){return A(V.id)}})]})]})),(0,r.jsxs)(p,e({$justifyContent:"flex-end",$gap:12},{children:[(0,r.jsx)(d.Button,e({mode:"secondary",type:"button",onClick:C},{children:F("Tasks.Cancel")})),(0,r.jsx)(d.Button,e({mode:"secondary",type:"submit"},{children:F("Tasks.Save")}))]}))]}),(0,r.jsx)(g.RightCol,{children:(0,r.jsx)(d.Input,{type:"date",error:z1.due_date&&m1.due_date?(0,r.jsx)("p",{children:m1.due_date}):void 0,label:F("Tasks.DueDate"),placeholder:F("Tasks.DueDate"),name:"due_date",id:"due_date",onChange:S1,onBlur:I1,value:(0,s.format)(s1.due_date?new Date(s1.due_date):new Date,"yyyy-MM-dd")})})]}))}}))};h7.PersonalContent=m;var z,w;return h7}var f7={},o$;function nY2(){if(o$)return f7;o$=1;var t=b&&b.__makeTemplateObject||function(x,y){return Object.defineProperty?Object.defineProperty(x,"raw",{value:y}):x.raw=y,x},e=b&&b.__assign||function(){return e=Object.assign||function(x){for(var y,V=1,C=arguments.length;V0?o1.value.notes.map(function(G1){return(0,r.jsx)(g.Note,{children:(0,r.jsx)(v.EditTaskNote,{note:G1,onEdit:function(){return A(V.id)},onDelete:function(){return A(V.id)}})},G1.id)}):(0,r.jsx)(d.Text,{children:F("Tasks.NoNotes")})})]}),(0,r.jsx)(v.AddTaskNote,{taskId:V.id,onSuccess:function(){return A(V.id)}})]})]})),(0,r.jsxs)(p,e({$justifyContent:"flex-end",$gap:12},{children:[(0,r.jsx)(d.Button,e({mode:"secondary",type:"button",onClick:C},{children:F("Tasks.Cancel")})),(0,r.jsx)(d.Button,e({mode:"secondary",type:"submit"},{children:F("Tasks.Save")}))]}))]}),(0,r.jsx)(g.RightCol,{children:(0,r.jsx)(d.Input,{type:"date",error:z1.due_date&&m1.due_date?(0,r.jsx)("p",{children:m1.due_date}):void 0,label:F("Tasks.DueDate"),placeholder:F("Tasks.DueDate"),name:"due_date",id:"due_date",onChange:S1,onBlur:I1,value:(0,s.format)(s1.due_date?new Date(s1.due_date):new Date,"yyyy-MM-dd")})})]}))}}))};h7.PersonalContent=m;var z,w;return h7}var f7={},o$;function rY2(){if(o$)return f7;o$=1;var t=b&&b.__makeTemplateObject||function(x,y){return Object.defineProperty?Object.defineProperty(x,"raw",{value:y}):x.raw=y,x},e=b&&b.__assign||function(){return e=Object.assign||function(x){for(var y,V=1,C=arguments.length;V0?T.value.notes.map(function($){return(0,n.jsx)(f.Note,{children:(0,n.jsx)(s.Text,{children:$.note})},$.id)}):(0,n.jsx)(s.Text,{children:E("Tasks.NoNotes")})}))]})]})}),(0,n.jsxs)(f.RightCol,{children:[(0,n.jsx)(s.Text,e({noMargin:!0},{children:E("TaskDetails.Due",{defaultValue:"Due"})})),(0,n.jsxs)(g,{children:[(0,n.jsx)(v.HiOutlineCalendar,{}),(0,n.jsx)(s.Input,{type:"date",disabled:!0,label:E("Tasks.DueDate"),placeholder:E("Tasks.DueDate"),name:"due_date",id:"due_date",value:(0,c.format)(new Date(V.due_date),"yyyy-MM-dd")})]})]})]})};f7.IncomingContent=p;var m,z,w;return f7}var l$;function rY2(){if(l$)return s7;l$=1;var t=b&&b.__makeTemplateObject||function(f,d){return Object.defineProperty?Object.defineProperty(f,"raw",{value:d}):f.raw=d,f},e=b&&b.__assign||function(){return e=Object.assign||function(f){for(var d,M=1,g=arguments.length;M0?T.value.notes.map(function($){return(0,n.jsx)(f.Note,{children:(0,n.jsx)(s.Text,{children:$.note})},$.id)}):(0,n.jsx)(s.Text,{children:E("Tasks.NoNotes")})}))]})]})}),(0,n.jsxs)(f.RightCol,{children:[(0,n.jsx)(s.Text,e({noMargin:!0},{children:E("TaskDetails.Due",{defaultValue:"Due"})})),(0,n.jsxs)(g,{children:[(0,n.jsx)(v.HiOutlineCalendar,{}),(0,n.jsx)(s.Input,{type:"date",disabled:!0,label:E("Tasks.DueDate"),placeholder:E("Tasks.DueDate"),name:"due_date",id:"due_date",value:(0,c.format)(new Date(V.due_date),"yyyy-MM-dd")})]})]})]})};f7.IncomingContent=p;var m,z,w;return f7}var l$;function iY2(){if(l$)return s7;l$=1;var t=b&&b.__makeTemplateObject||function(f,d){return Object.defineProperty?Object.defineProperty(f,"raw",{value:d}):f.raw=d,f},e=b&&b.__assign||function(){return e=Object.assign||function(f){for(var d,M=1,g=arguments.length;M0&&$[$.length-1])&&(F[0]===6||F[0]===2)){S=0;continue}if(F[0]===3&&(!$||F[1]>$[0]&&F[1]<$[3])){S.label=F[1];break}if(F[0]===6&&S.label<$[1]){S.label=$[1],$=F;break}if($&&S.label<$[2]){S.label=$[2],S.ops.push(F);break}$[2]&&S.ops.pop(),S.trys.pop();continue}F=B.call(L,S)}catch(t1){F=[6,t1],E=0}finally{T=$=0}if(F[0]&5)throw F[1];return{value:F[0]?F[1]:void 0,done:!0}}},h=b&&b.__rest||function(L,B){var S={};for(var T in L)Object.prototype.hasOwnProperty.call(L,T)&&B.indexOf(T)<0&&(S[T]=L[T]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,T=Object.getOwnPropertySymbols(L);E0&&$[$.length-1])&&(F[0]===6||F[0]===2)){S=0;continue}if(F[0]===3&&(!$||F[1]>$[0]&&F[1]<$[3])){S.label=F[1];break}if(F[0]===6&&S.label<$[1]){S.label=$[1],$=F;break}if($&&S.label<$[2]){S.label=$[2],S.ops.push(F);break}$[2]&&S.ops.pop(),S.trys.pop();continue}F=B.call(L,S)}catch(X){F=[6,X],E=0}finally{T=$=0}if(F[0]&5)throw F[1];return{value:F[0]?F[1]:void 0,done:!0}}},h=b&&b.__rest||function(L,B){var S={};for(var T in L)Object.prototype.hasOwnProperty.call(L,T)&&B.indexOf(T)<0&&(S[T]=L[T]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,T=Object.getOwnPropertySymbols(L);E=E,Y=(0,s.useState)(0),F=Y[0],t1=Y[1],R=(0,s.useContext)(h.EscolaLMSContext),i1=R.bookmarkNotes,J=R.fetchBookmarkNotes,A=R.deleteBookmarkNote,o1=(0,s.useMemo)(function(){var z1;return(z1=i1.list)===null||z1===void 0?void 0:z1.data.filter(function(m1){return m1.value===null})},[(H=i1.list)===null||H===void 0?void 0:H.data]),h1=(0,s.useMemo)(function(){var z1;return(z1=i1.list)===null||z1===void 0?void 0:z1.data.filter(function(m1){return m1.value})},[(p=i1.list)===null||p===void 0?void 0:p.data]),a1=[{id:0,icon:(0,l.jsx)(c.Icon,{name:"editAll"}),text:(0,u.t)("Bookmarks.All"),numberOfItems:((m=i1.list)===null||m===void 0?void 0:m.data.length)||0},{id:1,icon:(0,l.jsx)(c.Icon,{name:"editAlt"}),text:(0,u.t)("Bookmarks.Notes"),numberOfItems:!((z=i1.list)===null||z===void 0)&&z.data.length?Number(h1==null?void 0:h1.length):0},{id:2,icon:(0,l.jsx)(c.Icon,{name:"edit"}),text:(0,u.t)("Bookmarks.Bookmarks"),numberOfItems:!((w=i1.list)===null||w===void 0)&&w.data.length?Number(o1==null?void 0:o1.length):0}],M1=function(){var z1;switch(F){case 0:return(z1=i1.list)===null||z1===void 0?void 0:z1.data;case 1:return h1;case 2:return o1}},s1=function(z1){return A(z1).then(function(){J(),C&&C()})};return(0,s.useEffect)(function(){var z1;J({page:B,per_page:25}),$(Number((z1=i1.list)===null||z1===void 0?void 0:z1.meta.last_page))},[J,B]),(0,l.jsxs)(v.BookmarkNotesContainer,{children:[(0,l.jsx)(v.BookmarkNotesHeader,{children:(0,l.jsx)(c.Title,a({level:4},{children:(0,u.t)("Bookmarks.Title")}))}),(0,l.jsxs)(v.BookmarkNotesBody,{children:[(0,l.jsx)(v.BookmarkNotesMenu,{children:(0,l.jsx)(c.List,{listItems:a1,selectedListItem:F,setSelectedListItem:t1})}),(0,l.jsxs)(v.BookmarkNotesContent,{children:[(0,l.jsx)(v.BookmarkNotesList,{children:(x=M1())===null||x===void 0?void 0:x.map(function(z1){var m1=z1.id,S1=z1.bookmarkable_type,I1=z1.value,U1=S1.split(":"),P1=S1.split("/").map(function(G1){return parseInt(G1)});return(0,l.jsxs)(v.BookmarkNotesItem,{children:[(0,l.jsxs)(c.Stack,{children:[(0,l.jsx)(v.StyledTitle,a({size:"lg",weight:"medium",onClick:function(){return V(P1[0],P1[1],P1[2])}},{children:"".concat(U1[1]," : ").concat(U1[2])})),I1&&(0,l.jsx)(v.NoteText,{children:I1})]}),(0,l.jsx)(c.Button,a({mode:"outline",onClick:function(){return s1(m1)}},{children:(0,u.t)("Bookmarks.Delete")}))]},m1)})}),((y=i1.list)===null||y===void 0?void 0:y.data.length)===0&&(0,l.jsx)(c.Text,a({weight:"light"},{children:(0,u.t)("Bookmarks.NoBookmarks")}))]})]}),(0,l.jsxs)(v.BookmarksPage,{children:[(0,l.jsx)(c.Button,a({type:"button",mode:"outline",disabled:U,onClick:function(){return S(B-1)}},{children:(0,u.t)("Bookmarks.Prev")})),(0,l.jsx)(c.Title,{children:"".concat((0,u.t)("Bookmarks.Page")," ").concat(B," / ").concat(E||1)}),(0,l.jsx)(c.Button,a({type:"button",mode:"outline",disabled:W,onClick:function(){return S(B+1)}},{children:(0,u.t)("Bookmarks.Next")}))]})]})};t.BookmarkNotes=d,t.default=(0,f.withTheme)((0,f.default)(t.BookmarkNotes)(M||(M=e([""],[""]))));var M}(BV)),BV}var Fd={},v$;function sY2(){if(v$)return Fd;v$=1;var t=b&&b.__makeTemplateObject||function(w,x){return Object.defineProperty?Object.defineProperty(w,"raw",{value:x}):w.raw=x,w},e=b&&b.__assign||function(){return e=Object.assign||function(w){for(var x,y=1,V=arguments.length;y=E,Y=(0,s.useState)(0),F=Y[0],X=Y[1],R=(0,s.useContext)(h.EscolaLMSContext),i1=R.bookmarkNotes,t1=R.fetchBookmarkNotes,A=R.deleteBookmarkNote,o1=(0,s.useMemo)(function(){var z1;return(z1=i1.list)===null||z1===void 0?void 0:z1.data.filter(function(m1){return m1.value===null})},[(H=i1.list)===null||H===void 0?void 0:H.data]),h1=(0,s.useMemo)(function(){var z1;return(z1=i1.list)===null||z1===void 0?void 0:z1.data.filter(function(m1){return m1.value})},[(p=i1.list)===null||p===void 0?void 0:p.data]),a1=[{id:0,icon:(0,l.jsx)(c.Icon,{name:"editAll"}),text:(0,u.t)("Bookmarks.All"),numberOfItems:((m=i1.list)===null||m===void 0?void 0:m.data.length)||0},{id:1,icon:(0,l.jsx)(c.Icon,{name:"editAlt"}),text:(0,u.t)("Bookmarks.Notes"),numberOfItems:!((z=i1.list)===null||z===void 0)&&z.data.length?Number(h1==null?void 0:h1.length):0},{id:2,icon:(0,l.jsx)(c.Icon,{name:"edit"}),text:(0,u.t)("Bookmarks.Bookmarks"),numberOfItems:!((w=i1.list)===null||w===void 0)&&w.data.length?Number(o1==null?void 0:o1.length):0}],M1=function(){var z1;switch(F){case 0:return(z1=i1.list)===null||z1===void 0?void 0:z1.data;case 1:return h1;case 2:return o1}},s1=function(z1){return A(z1).then(function(){t1(),C&&C()})};return(0,s.useEffect)(function(){var z1;t1({page:B,per_page:25}),$(Number((z1=i1.list)===null||z1===void 0?void 0:z1.meta.last_page))},[t1,B]),(0,l.jsxs)(v.BookmarkNotesContainer,{children:[(0,l.jsx)(v.BookmarkNotesHeader,{children:(0,l.jsx)(c.Title,a({level:4},{children:(0,u.t)("Bookmarks.Title")}))}),(0,l.jsxs)(v.BookmarkNotesBody,{children:[(0,l.jsx)(v.BookmarkNotesMenu,{children:(0,l.jsx)(c.List,{listItems:a1,selectedListItem:F,setSelectedListItem:X})}),(0,l.jsxs)(v.BookmarkNotesContent,{children:[(0,l.jsx)(v.BookmarkNotesList,{children:(x=M1())===null||x===void 0?void 0:x.map(function(z1){var m1=z1.id,S1=z1.bookmarkable_type,I1=z1.value,U1=S1.split(":"),P1=S1.split("/").map(function(G1){return parseInt(G1)});return(0,l.jsxs)(v.BookmarkNotesItem,{children:[(0,l.jsxs)(c.Stack,{children:[(0,l.jsx)(v.StyledTitle,a({size:"lg",weight:"medium",onClick:function(){return V(P1[0],P1[1],P1[2])}},{children:"".concat(U1[1]," : ").concat(U1[2])})),I1&&(0,l.jsx)(v.NoteText,{children:I1})]}),(0,l.jsx)(c.Button,a({mode:"outline",onClick:function(){return s1(m1)}},{children:(0,u.t)("Bookmarks.Delete")}))]},m1)})}),((y=i1.list)===null||y===void 0?void 0:y.data.length)===0&&(0,l.jsx)(c.Text,a({weight:"light"},{children:(0,u.t)("Bookmarks.NoBookmarks")}))]})]}),(0,l.jsxs)(v.BookmarksPage,{children:[(0,l.jsx)(c.Button,a({type:"button",mode:"outline",disabled:q,onClick:function(){return S(B-1)}},{children:(0,u.t)("Bookmarks.Prev")})),(0,l.jsx)(c.Title,{children:"".concat((0,u.t)("Bookmarks.Page")," ").concat(B," / ").concat(E||1)}),(0,l.jsx)(c.Button,a({type:"button",mode:"outline",disabled:U,onClick:function(){return S(B+1)}},{children:(0,u.t)("Bookmarks.Next")}))]})]})};t.BookmarkNotes=d,t.default=(0,f.withTheme)((0,f.default)(t.BookmarkNotes)(M||(M=e([""],[""]))));var M}(BV)),BV}var Fd={},v$;function hY2(){if(v$)return Fd;v$=1;var t=b&&b.__makeTemplateObject||function(w,x){return Object.defineProperty?Object.defineProperty(w,"raw",{value:x}):w.raw=x,w},e=b&&b.__assign||function(){return e=Object.assign||function(w){for(var x,y=1,V=arguments.length;y0&&(0,p2.jsx)("li",{children:(0,p2.jsx)("div",P0({role:x.children?"button":void 0,className:"drawer-menu-item",onClick:function(){return x.children?p(x,w):void 0},onKeyUp:function(){return x.children?p(x,w):void 0}},{children:x.children?(0,p2.jsxs)(p2.Fragment,{children:[x.title,(0,p2.jsx)("span",P0({className:"drawer-menu-item__icon"},{children:(0,p2.jsx)(zY2,{})}))]}):(0,p2.jsx)("div",P0({className:"drawer-menu-item__wrapper",onClick:H,onKeyUp:H,tabIndex:0,role:"link"},{children:x.title}))}),x.key)},y)})}))})};return(0,p2.jsx)(p2.Fragment,{children:e?(0,p2.jsxs)(wY2,P0({className:"wellms-component ".concat(l)},{children:[(0,p2.jsx)(HY2,{}),(0,p2.jsxs)("div",P0({className:"header"},{children:[(0,p2.jsx)(f$.Logo,P0({},a)),(0,p2.jsxs)(g$,{children:[(0,p2.jsxs)(g$,{children:[t.cart,t.notification,t.profile]}),(0,p2.jsxs)("span",P0({className:"menu-button",onClick:function(){return s(!0)},onKeyUp:function(){return s(!0)},role:"button","aria-label":(0,pY2.t)("Navigation.ShowHideMenu"),tabIndex:0},{children:[(0,p2.jsx)("span",{className:"menu-bar"}),(0,p2.jsx)("span",{className:"menu-bar"}),(0,p2.jsx)("span",{className:"menu-bar"})]}))]})]})),(0,p2.jsxs)(fY2.default,P0({open:h,className:"drawer drawer-header-wrapper",classNames:{wrapper:"drawer-content-wrapper custom-drawer-wrapper",content:"drawer-content"}},{children:[(0,p2.jsx)("div",P0({className:"drawer-header"},{children:Object.keys(v).length>0?(0,p2.jsx)("div",P0({className:"drawer-nested-submenu-header-container",onClick:function(){return m()},onKeyUp:function(){return m()},role:"button",tabIndex:0},{children:(0,p2.jsxs)(SV.Row,P0({align:"center"},{children:[(0,p2.jsx)(SV.Col,P0({xs:2},{children:(0,p2.jsx)("div",P0({className:"menu-drawer-prev"},{children:(0,p2.jsx)(mY2,{})}))})),(0,p2.jsx)(SV.Col,P0({xs:8,className:"drawer-nested-submenu-header"},{children:(0,p2.jsx)(gY2.Text,P0({size:"14",bold:!0},{children:v[Object.keys(v).length-1].title}))}))]}))})):(0,p2.jsxs)(p2.Fragment,{children:[(0,p2.jsx)(f$.Logo,P0({},a)),(0,p2.jsx)("span",P0({className:"menu-drawer-close",onClick:function(){return s(!h)},onKeyUp:function(){return s(!h)},role:"button",tabIndex:0},{children:(0,p2.jsx)(MY2,{})}))]})})),r&&(0,p2.jsx)("div",P0({className:"drawer-search"},{children:(0,p2.jsx)(dY2.Fragment,{children:r})})),(0,p2.jsx)("div",{children:z(M)})]}))]})):(0,p2.jsx)(p2.Fragment,{})})};z21=D_.Navigation=yY2;var p$,m$,z$,DL={};(function(t){var e=b&&b.__makeTemplateObject||function(p,m){return Object.defineProperty?Object.defineProperty(p,"raw",{value:m}):p.raw=m,p},a=b&&b.__assign||function(){return a=Object.assign||function(p){for(var m,z=1,w=arguments.length;z0&&(0,p2.jsx)("li",{children:(0,p2.jsx)("div",P0({role:x.children?"button":void 0,className:"drawer-menu-item",onClick:function(){return x.children?p(x,w):void 0},onKeyUp:function(){return x.children?p(x,w):void 0}},{children:x.children?(0,p2.jsxs)(p2.Fragment,{children:[x.title,(0,p2.jsx)("span",P0({className:"drawer-menu-item__icon"},{children:(0,p2.jsx)(MY2,{})}))]}):(0,p2.jsx)("div",P0({className:"drawer-menu-item__wrapper",onClick:H,onKeyUp:H,tabIndex:0,role:"link"},{children:x.title}))}),x.key)},y)})}))})};return(0,p2.jsx)(p2.Fragment,{children:e?(0,p2.jsxs)(yY2,P0({className:"wellms-component ".concat(l)},{children:[(0,p2.jsx)(wY2,{}),(0,p2.jsxs)("div",P0({className:"header"},{children:[(0,p2.jsx)(f$.Logo,P0({},a)),(0,p2.jsxs)(g$,{children:[(0,p2.jsxs)(g$,{children:[t.cart,t.notification,t.profile]}),(0,p2.jsxs)("span",P0({className:"menu-button",onClick:function(){return s(!0)},onKeyUp:function(){return s(!0)},role:"button","aria-label":(0,mY2.t)("Navigation.ShowHideMenu"),tabIndex:0},{children:[(0,p2.jsx)("span",{className:"menu-bar"}),(0,p2.jsx)("span",{className:"menu-bar"}),(0,p2.jsx)("span",{className:"menu-bar"})]}))]})]})),(0,p2.jsxs)(gY2.default,P0({open:h,className:"drawer drawer-header-wrapper",classNames:{wrapper:"drawer-content-wrapper custom-drawer-wrapper",content:"drawer-content"}},{children:[(0,p2.jsx)("div",P0({className:"drawer-header"},{children:Object.keys(v).length>0?(0,p2.jsx)("div",P0({className:"drawer-nested-submenu-header-container",onClick:function(){return m()},onKeyUp:function(){return m()},role:"button",tabIndex:0},{children:(0,p2.jsxs)(SV.Row,P0({align:"center"},{children:[(0,p2.jsx)(SV.Col,P0({xs:2},{children:(0,p2.jsx)("div",P0({className:"menu-drawer-prev"},{children:(0,p2.jsx)(zY2,{})}))})),(0,p2.jsx)(SV.Col,P0({xs:8,className:"drawer-nested-submenu-header"},{children:(0,p2.jsx)(pY2.Text,P0({size:"14",bold:!0},{children:v[Object.keys(v).length-1].title}))}))]}))})):(0,p2.jsxs)(p2.Fragment,{children:[(0,p2.jsx)(f$.Logo,P0({},a)),(0,p2.jsx)("span",P0({className:"menu-drawer-close",onClick:function(){return s(!h)},onKeyUp:function(){return s(!h)},role:"button",tabIndex:0},{children:(0,p2.jsx)(HY2,{})}))]})})),r&&(0,p2.jsx)("div",P0({className:"drawer-search"},{children:(0,p2.jsx)(fY2.Fragment,{children:r})})),(0,p2.jsx)("div",{children:z(M)})]}))]})):(0,p2.jsx)(p2.Fragment,{})})};z21=D_.Navigation=xY2;var p$,m$,z$,DL={};(function(t){var e=b&&b.__makeTemplateObject||function(p,m){return Object.defineProperty?Object.defineProperty(p,"raw",{value:m}):p.raw=m,p},a=b&&b.__assign||function(){return a=Object.assign||function(p){for(var m,z=1,w=arguments.length;z0?r1.length===2?typeof r1[1]==c?this[r1[0]]=r1[1].call(this,q):this[r1[0]]=r1[1]:r1.length===3?typeof r1[1]===c&&!(r1[1].exec&&r1[1].test)?this[r1[0]]=q?r1[1].call(this,q,r1[2]):n:this[r1[0]]=q?q.replace(r1[1],r1[2]):n:r1.length===4&&(this[r1[0]]=q?r1[3].call(this,q.replace(r1[1],r1[2])):n):this[r1]=q||n;X+=2}},nt=function(H1,b1){for(var X in b1)if(typeof b1[X]===s&&b1[X].length>0){for(var f1=0;f12&&(P[f]="iPad",P[M]=w),P},this.getEngine=function(){var P={};return P[d]=n,P[H]=n,X1.call(P,f1,G.engine),P},this.getOS=function(){var P={};return P[d]=n,P[H]=n,X1.call(P,f1,G.os),r1&&!P[d]&&e1&&e1.platform!="Unknown"&&(P[d]=e1.platform.replace(/chrome os/i,z1).replace(/macos/i,m1)),P},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return f1},this.setUA=function(P){return f1=typeof P===u&&P.length>C?rt(P,C):P,this},this.setUA(f1),this};V1.VERSION=r,V1.BROWSER=I1([d,H,v]),V1.CPU=I1([p]),V1.DEVICE=I1([f,g,M,m,z,x,w,y,V]),V1.ENGINE=V1.OS=I1([d,H]),t.exports&&(e=t.exports=V1),e.UAParser=V1;var q1=typeof a!==h&&(a.jQuery||a.Zepto);if(q1&&!q1.ua){var B1=new V1;q1.ua=B1.getResult(),q1.ua.get=function(){return B1.getUA()},q1.ua.set=function(H1){B1.setUA(H1);var b1=B1.getResult();for(var X in b1)q1.ua[X]=b1[X]}}})(typeof window=="object"?window:b)})(RL,RL.exports);var xY2=RL.exports;Object.defineProperty(Ut,"__esModule",{value:!0});function VY2(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var Q4=_,G0=VY2(Q4),M21=xY2,Po=new M21,ea=Po.getBrowser(),CY2=Po.getCPU(),dn=Po.getDevice(),gO=Po.getEngine(),No=Po.getOS(),ou=Po.getUA(),H21=function(e){return Po.setUA(e)},lu=function(e){if(!e){console.error("No userAgent string was provided");return}var a=new M21(e);return{UA:a,browser:a.getBrowser(),cpu:a.getCPU(),device:a.getDevice(),engine:a.getEngine(),os:a.getOS(),ua:a.getUA(),setUserAgent:function(r){return a.setUA(r)}}},w21=Object.freeze({ClientUAInstance:Po,browser:ea,cpu:CY2,device:dn,engine:gO,os:No,ua:ou,setUa:H21,parseUserAgent:lu});function M$(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function bY2(t){for(var e=1;e=0)&&(a[r]=t[r]);return a}function ir(t,e){if(t==null)return{};var a=TY2(t,e),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function Nf(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function OY2(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nf(t)}function AY2(t,e){return kY2(t)||EY2(t,e)||PY2(t,e)||NY2()}function kY2(t){if(Array.isArray(t))return t}function EY2(t,e){var a=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a!=null){var n=[],r=!0,o=!1,l,c;try{for(a=a.call(t);!(r=(l=a.next()).done)&&(n.push(l.value),!(e&&n.length===e));r=!0);}catch(h){o=!0,c=h}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw c}}return n}}function PY2(t,e){if(t){if(typeof t=="string")return w$(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Array.from(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return w$(t,e)}}function w$(t,e){(e==null||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a1&&arguments[1]!==void 0?arguments[1]:"none";return e||a},pO=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},mO=function(e){var a=pO();return a&&a.platform&&(a.platform.indexOf(e)!==-1||a.platform==="MacIntel"&&a.maxTouchPoints>1&&!window.MSStream)},IY2=function(e,a,n,r,o){return{isBrowser:e,browserMajorVersion:z2(a.major),browserFullVersion:z2(a.version),browserName:z2(a.name),engineName:z2(n.name),engineVersion:z2(n.version),osName:z2(r.name),osVersion:z2(r.version),userAgent:z2(o)}},y$=function(e,a,n,r){return bY2({},e,{vendor:z2(a.vendor),model:z2(a.model),os:z2(n.name),osVersion:z2(n.version),ua:z2(r)})},FY2=function(e,a,n,r){return{isSmartTV:e,engineName:z2(a.name),engineVersion:z2(a.version),osName:z2(n.name),osVersion:z2(n.version),userAgent:z2(r)}},$Y2=function(e,a,n,r){return{isConsole:e,engineName:z2(a.name),engineVersion:z2(a.version),osName:z2(n.name),osVersion:z2(n.version),userAgent:z2(r)}},UY2=function(e,a,n,r){return{isWearable:e,engineName:z2(a.name),engineVersion:z2(a.version),osName:z2(n.name),osVersion:z2(n.version),userAgent:z2(r)}},WY2=function(e,a,n,r,o){return{isEmbedded:e,vendor:z2(a.vendor),model:z2(a.model),engineName:z2(n.name),engineVersion:z2(n.version),osName:z2(r.name),osVersion:z2(r.version),userAgent:z2(o)}};function qY2(t){var e=t?lu(t):w21,a=e.device,n=e.browser,r=e.engine,o=e.os,l=e.ua,c=RY2(a.type),h=c.isBrowser,s=c.isMobile,u=c.isTablet,v=c.isSmartTV,f=c.isConsole,d=c.isWearable,M=c.isEmbedded;if(h)return IY2(h,n,r,o,l);if(v)return FY2(v,r,o,l);if(f)return $Y2(f,r,o,l);if(s||u)return y$(c,a,o,l);if(d)return UY2(d,r,o,l);if(M)return WY2(M,a,r,o,l)}var y21=function(e){var a=e.type;return a===U4.Mobile},x21=function(e){var a=e.type;return a===U4.Tablet},V21=function(e){var a=e.type;return a===U4.Mobile||a===U4.Tablet},C21=function(e){var a=e.type;return a===U4.SmartTv},zp=function(e){var a=e.type;return a===U4.Browser},b21=function(e){var a=e.type;return a===U4.Wearable},L21=function(e){var a=e.type;return a===U4.Console},B21=function(e){var a=e.type;return a===U4.Embedded},_21=function(e){var a=e.vendor;return z2(a)},S21=function(e){var a=e.model;return z2(a)},T21=function(e){var a=e.type;return z2(a,"browser")},O21=function(e){var a=e.name;return a===n9.Android},A21=function(e){var a=e.name;return a===n9.Windows},k21=function(e){var a=e.name;return a===n9.MAC_OS},E21=function(e){var a=e.name;return a===n9.WindowsPhone},P21=function(e){var a=e.name;return a===n9.IOS},N21=function(e){var a=e.version;return z2(a)},D21=function(e){var a=e.name;return z2(a)},R21=function(e){var a=e.name;return a===Fa.Chrome},j21=function(e){var a=e.name;return a===Fa.Firefox},I21=function(e){var a=e.name;return a===Fa.Chromium},Mp=function(e){var a=e.name;return a===Fa.Edge},F21=function(e){var a=e.name;return a===Fa.Yandex},$21=function(e){var a=e.name;return a===Fa.Safari||a===Fa.MobileSafari},U21=function(e){var a=e.name;return a===Fa.MobileSafari},W21=function(e){var a=e.name;return a===Fa.Opera},q21=function(e){var a=e.name;return a===Fa.InternetExplorer||a===Fa.Ie},G21=function(e){var a=e.name;return a===Fa.MIUI},K21=function(e){var a=e.name;return a===Fa.SamsungBrowser},Y21=function(e){var a=e.version;return z2(a)},Z21=function(e){var a=e.major;return z2(a)},Q21=function(e){var a=e.name;return z2(a)},X21=function(e){var a=e.name;return z2(a)},J21=function(e){var a=e.version;return z2(a)},t01=function(){var e=pO(),a=e&&e.userAgent&&e.userAgent.toLowerCase();return typeof a=="string"?/electron/.test(a):!1},F6=function(e){return typeof e=="string"&&e.indexOf("Edg/")!==-1},e01=function(){var e=pO();return e&&(/iPad|iPhone|iPod/.test(e.platform)||e.platform==="MacIntel"&&e.maxTouchPoints>1)&&!window.MSStream},hi=function(){return mO("iPad")},a01=function(){return mO("iPhone")},n01=function(){return mO("iPod")},r01=function(e){return z2(e)};function i01(t){var e=t||w21,a=e.device,n=e.browser,r=e.os,o=e.engine,l=e.ua;return{isSmartTV:C21(a),isConsole:L21(a),isWearable:b21(a),isEmbedded:B21(a),isMobileSafari:U21(n)||hi(),isChromium:I21(n),isMobile:V21(a)||hi(),isMobileOnly:y21(a),isTablet:x21(a)||hi(),isBrowser:zp(a),isDesktop:zp(a),isAndroid:O21(r),isWinPhone:E21(r),isIOS:P21(r)||hi(),isChrome:R21(n),isFirefox:j21(n),isSafari:$21(n),isOpera:W21(n),isIE:q21(n),osVersion:N21(r),osName:D21(r),fullBrowserVersion:Y21(n),browserVersion:Z21(n),browserName:Q21(n),mobileVendor:_21(a),mobileModel:S21(a),engineName:X21(o),engineVersion:J21(o),getUA:r01(l),isEdge:Mp(n)||F6(l),isYandex:F21(n),deviceType:T21(a),isIOS13:e01(),isIPad13:hi(),isIPhone13:a01(),isIPod13:n01(),isElectron:t01(),isEdgeChromium:F6(l),isLegacyEdge:Mp(n)&&!F6(l),isWindows:A21(r),isMacOs:k21(r),isMIUI:G21(n),isSamsungBrowser:K21(n)}}var o01=C21(dn),l01=L21(dn),c01=b21(dn),GY2=B21(dn),KY2=U21(ea)||hi(),YY2=I21(ea),BM=V21(dn)||hi(),s01=y21(dn),h01=x21(dn)||hi(),u01=zp(dn),ZY2=zp(dn),v01=O21(No),d01=E21(No),f01=P21(No)||hi(),QY2=R21(ea),XY2=j21(ea),JY2=$21(ea),tZ2=W21(ea),g01=q21(ea),eZ2=N21(No),aZ2=D21(No),nZ2=Y21(ea),rZ2=Z21(ea),iZ2=Q21(ea),oZ2=_21(dn),lZ2=S21(dn),cZ2=X21(gO),sZ2=J21(gO),hZ2=r01(ou),uZ2=Mp(ea)||F6(ou),vZ2=F21(ea),dZ2=T21(dn),fZ2=e01(),gZ2=hi(),pZ2=a01(),mZ2=n01(),zZ2=t01(),MZ2=F6(ou),HZ2=Mp(ea)&&!F6(ou),wZ2=A21(No),yZ2=k21(No),xZ2=G21(ea),VZ2=K21(ea),CZ2=function(e){if(!e||typeof e!="string"){console.error("No valid user agent string was provided");return}var a=lu(e),n=a.device,r=a.browser,o=a.os,l=a.engine,c=a.ua;return i01({device:n,browser:r,os:o,engine:l,ua:c})},bZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return v01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},LZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return u01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},BZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return g01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},_Z2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return f01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},SZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return BM?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},TZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return h01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},OZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return d01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},AZ2=function(e){var a=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var r=ir(e,["renderWithFragment","children","viewClassName","style"]);return s01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},kZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return o01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},EZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return l01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},PZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return c01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},NZ2=function(e){var a=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var r=e.condition,o=ir(e,["renderWithFragment","children","viewClassName","style","condition"]);return r?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",o,n):null};function DZ2(t){return function(e){SY2(a,e);function a(n){var r;return LY2(this,a),r=OY2(this,IL(a).call(this,n)),r.isEventListenerAdded=!1,r.handleOrientationChange=r.handleOrientationChange.bind(Nf(r)),r.onOrientationChange=r.onOrientationChange.bind(Nf(r)),r.onPageLoad=r.onPageLoad.bind(Nf(r)),r.state={isLandscape:!1,isPortrait:!1},r}return BY2(a,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var r=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:r===0,isLandscape:r===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":ds(window))!==void 0&&BM&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return G0.createElement(t,jL({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),a}(G0.Component)}function RZ2(){var t=Q4.useState(function(){var o=window.innerWidth>window.innerHeight?90:0;return{isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"}}),e=AY2(t,2),a=e[0],n=e[1],r=Q4.useCallback(function(){var o=window.innerWidth>window.innerHeight?90:0,l={isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"};a.orientation!==l.orientation&&n(l)},[a.orientation]);return Q4.useEffect(function(){return(typeof window>"u"?"undefined":ds(window))!==void 0&&BM&&(r(),window.addEventListener("load",r,!1),window.addEventListener("resize",r,!1)),function(){window.removeEventListener("resize",r,!1),window.removeEventListener("load",r,!1)}},[r]),a}function p01(t){var e=t||window.navigator.userAgent;return lu(e)}function jZ2(t){var e=t||window.navigator.userAgent,a=p01(e),n=i01(a);return[n,a]}Ut.AndroidView=bZ2;Ut.BrowserTypes=Fa;Ut.BrowserView=LZ2;Ut.ConsoleView=EZ2;Ut.CustomView=NZ2;Ut.IEView=BZ2;Ut.IOSView=_Z2;Ut.MobileOnlyView=AZ2;Ut.MobileView=SZ2;Ut.OsTypes=n9;Ut.SmartTVView=kZ2;Ut.TabletView=TZ2;Ut.WearableView=PZ2;Ut.WinPhoneView=OZ2;Ut.browserName=iZ2;Ut.browserVersion=rZ2;Ut.deviceDetect=qY2;Ut.deviceType=dZ2;Ut.engineName=cZ2;Ut.engineVersion=sZ2;Ut.fullBrowserVersion=nZ2;Ut.getSelectorsByUserAgent=CZ2;Ut.getUA=hZ2;Ut.isAndroid=v01;Ut.isBrowser=u01;Ut.isChrome=QY2;Ut.isChromium=YY2;Ut.isConsole=l01;Ut.isDesktop=ZY2;Ut.isEdge=uZ2;Ut.isEdgeChromium=MZ2;Ut.isElectron=zZ2;Ut.isEmbedded=GY2;Ut.isFirefox=XY2;Ut.isIE=g01;Ut.isIOS=f01;Ut.isIOS13=fZ2;Ut.isIPad13=gZ2;Ut.isIPhone13=pZ2;Ut.isIPod13=mZ2;Ut.isLegacyEdge=HZ2;Ut.isMIUI=xZ2;Ut.isMacOs=yZ2;var On=Ut.isMobile=BM;Ut.isMobileOnly=s01;Ut.isMobileSafari=KY2;Ut.isOpera=tZ2;Ut.isSafari=JY2;Ut.isSamsungBrowser=VZ2;Ut.isSmartTV=o01;Ut.isTablet=h01;Ut.isWearable=c01;Ut.isWinPhone=d01;Ut.isWindows=wZ2;Ut.isYandex=vZ2;Ut.mobileModel=lZ2;Ut.mobileVendor=oZ2;Ut.osName=aZ2;Ut.osVersion=eZ2;Ut.parseUserAgent=lu;Ut.setUserAgent=jY2;Ut.useDeviceData=p01;Ut.useDeviceSelectors=jZ2;Ut.useMobileOrientation=RZ2;Ut.withOrientationChange=DZ2;const ke0=()=>I.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M17.1286 1.09126C17.0605 0.986549 16.9674 0.900492 16.8576 0.840899C16.7479 0.781307 16.625 0.750066 16.5001 0.750011H12.0001C11.8607 0.749946 11.7241 0.788719 11.6055 0.861978C11.487 0.935238 11.3911 1.04009 11.3288 1.16476L9.00009 5.82301L6.67509 1.16476C6.61251 1.03951 6.51612 0.934287 6.39683 0.860988C6.27753 0.78769 6.14011 0.749247 6.00009 0.750011H1.5001C1.37514 0.749995 1.25216 0.781201 1.14233 0.840792C1.0325 0.900384 0.939293 0.986473 0.871188 1.09124C0.803083 1.196 0.762233 1.31613 0.75235 1.44069C0.742467 1.56526 0.763863 1.69032 0.814595 1.80451L4.30435 9.66676C3.94042 10.3907 3.75063 11.1897 3.7501 12C3.7501 13.3924 4.30322 14.7278 5.28778 15.7123C6.27235 16.6969 7.60771 17.25 9.00009 17.25C10.3925 17.25 11.7278 16.6969 12.7124 15.7123C13.697 14.7278 14.2501 13.3924 14.2501 12C14.2496 11.1897 14.0598 10.3907 13.6958 9.66676L17.1856 1.80451C17.2363 1.69029 17.2576 1.56521 17.2476 1.44065C17.2377 1.31609 17.1968 1.19599 17.1286 1.09126ZM2.6536 2.25001H5.53659L7.85184 6.88051C6.89733 7.09573 6.02208 7.57376 5.3251 8.26051L2.6536 2.25001ZM9.00009 15.75C8.25841 15.75 7.53339 15.5301 6.91671 15.118C6.30002 14.706 5.81938 14.1203 5.53555 13.4351C5.25172 12.7499 5.17746 11.9959 5.32215 11.2684C5.46685 10.541 5.824 9.87281 6.34844 9.34836C6.87289 8.82391 7.54108 8.46676 8.26851 8.32207C8.99593 8.17737 9.74993 8.25163 10.4352 8.53546C11.1204 8.81929 11.7061 9.29994 12.1181 9.91662C12.5302 10.5333 12.7501 11.2583 12.7501 12C12.7489 12.9942 12.3534 13.9473 11.6504 14.6503C10.9474 15.3534 9.99429 15.7488 9.00009 15.75ZM12.6788 8.26051C11.9808 7.57315 11.1042 7.09508 10.1483 6.88051L12.4636 2.25001H15.3466L12.6788 8.26051ZM11.2501 11.469L9.99984 12.5003L10.3906 14.25L9.00009 13.2503L7.60959 14.25L8.00034 12.5003L6.75009 11.469L8.25009 11.25L9.00009 9.75001L9.75009 11.25L11.2501 11.469Z",fill:"#4A4A4A"})}),Ee0=()=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14.002",height:"13.36",viewBox:"0 0 14.002 13.36",children:I.jsx("path",{id:"Subtraction_13","data-name":"Subtraction 13",d:"M-15945,11984.361h0V11974a3,3,0,0,1,3-3h8a3,3,0,0,1,3,3v5a3.005,3.005,0,0,1-3,3h-7.659l-3.338,2.356Zm8.669-12.064h0l-.5.3a.557.557,0,0,0-.089.063.277.277,0,0,0-.056.093.3.3,0,0,0-.012.12.481.481,0,0,0,.056.164,7.513,7.513,0,0,1,.645,1.681,7.785,7.785,0,0,1,.22,1.824,7.8,7.8,0,0,1-.22,1.825,7.6,7.6,0,0,1-.645,1.681.42.42,0,0,0-.056.16.314.314,0,0,0,.012.124.394.394,0,0,0,.056.088.276.276,0,0,0,.089.063l.5.3a8.633,8.633,0,0,0,.563-1.032,7.839,7.839,0,0,0,.385-1.045,6.825,6.825,0,0,0,.216-1.064,9.77,9.77,0,0,0,.068-1.1,9.6,9.6,0,0,0-.068-1.1,7.294,7.294,0,0,0-.216-1.068,7.419,7.419,0,0,0-.385-1.04,7.552,7.552,0,0,0-.563-1.028Zm-2.669,5.066a1,1,0,0,0-1,1,1,1,0,0,0,1,1,1,1,0,0,0,1-1A1,1,0,0,0-15939,11977.363Zm0-3a1,1,0,0,0-1,1,1,1,0,0,0,1,1,1,1,0,0,0,1-1A1,1,0,0,0-15939,11974.362Z",transform:"translate(15945.001 -11971.001)",fill:"#ee312f"})}),Pe0=()=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14.002",height:"13.998",viewBox:"0 0 14.002 13.998",children:I.jsx("path",{id:"Subtraction_16","data-name":"Subtraction 16",d:"M-15938,11985a6.966,6.966,0,0,1-4.953-2.05A6.946,6.946,0,0,1-15945,11978a6.952,6.952,0,0,1,2.049-4.952A6.965,6.965,0,0,1-15938,11971a6.964,6.964,0,0,1,4.951,2.049A6.952,6.952,0,0,1-15931,11978a6.946,6.946,0,0,1-2.049,4.947A6.961,6.961,0,0,1-15938,11985Zm-2.74-7.707h0l-1,.895,2.58,2.669a.714.714,0,0,0,.5.209.066.066,0,0,0,.02,0h.021a.682.682,0,0,0,.51-.267l3.848-5.09-1.109-.771-3.094,4.1-.262.344-2.012-2.084Z",transform:"translate(15945 -11971.002)",fill:"#2cbe69"})}),Ne0=()=>I.jsx("svg",{width:"23",height:"21",viewBox:"0 0 23 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M1.08268 20.9168H18.4202C19.1581 20.9215 19.8744 20.668 20.4451 20.2003C21.0158 19.7325 21.405 19.0798 21.5452 18.3554L22.9046 11.0637C22.9876 10.6175 22.9712 10.1584 22.8565 9.71928C22.7419 9.28013 22.5317 8.87169 22.241 8.52308C21.9404 8.16249 21.5639 7.87265 21.1385 7.67423C20.713 7.47582 20.249 7.3737 19.7796 7.37516H14.8098V3.2085C14.8098 1.06162 12.6087 0.0834961 10.5639 0.0834961C10.2877 0.0834961 10.0227 0.193243 9.82736 0.388593C9.63201 0.583944 9.52227 0.848896 9.52227 1.12516C9.52227 3.11162 9.1681 5.19808 8.7681 5.58766L5.86706 8.41683H1.08268C0.806415 8.41683 0.541463 8.52658 0.346113 8.72193C0.150762 8.91728 0.0410156 9.18223 0.0410156 9.4585V19.8752C0.0410156 20.1514 0.150762 20.4164 0.346113 20.6117C0.541463 20.8071 0.806415 20.9168 1.08268 20.9168ZM7.33268 9.89704L10.2223 7.08454C11.191 6.13975 11.4848 3.84287 11.5764 2.30954C12.141 2.44391 12.7316 2.70537 12.7316 3.2137V8.42204C12.7316 8.6983 12.8414 8.96326 13.0367 9.15861C13.2321 9.35396 13.497 9.4637 13.7733 9.4637H19.7848C19.9481 9.46255 20.1098 9.49741 20.2581 9.56583C20.4065 9.63425 20.5379 9.73453 20.6431 9.85954C20.7395 9.97328 20.8092 10.1072 20.847 10.2514C20.8849 10.3956 20.89 10.5464 20.8619 10.6929L19.5077 17.9845C19.454 18.2307 19.3159 18.4504 19.1173 18.6055C18.9187 18.7606 18.6721 18.8412 18.4202 18.8335H7.33268V9.89704ZM2.12435 10.5002H5.24935V18.8335H2.12435V10.5002Z",fill:"currentColor"})}),De0=()=>I.jsx("svg",{width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M22.7891 0.515478C22.6945 0.370044 22.5652 0.25052 22.4127 0.167753C22.2603 0.0849855 22.0896 0.0415951 21.9161 0.0415194H15.6661C15.4726 0.0414292 15.2828 0.0952797 15.1181 0.197029C14.9535 0.298779 14.8204 0.444402 14.7339 0.617561L11.4995 7.08735L8.27031 0.617561C8.18339 0.443607 8.04951 0.297458 7.88383 0.195654C7.71815 0.0938506 7.52727 0.0404579 7.33281 0.0415194H1.08281C0.909264 0.0414974 0.738458 0.0848381 0.585914 0.167604C0.43337 0.25037 0.303923 0.369938 0.209332 0.515446C0.114742 0.660954 0.058006 0.82779 0.0442792 1.0008C0.0305525 1.1738 0.0602698 1.3475 0.130731 1.5061L4.97761 12.4259C4.47216 13.4314 4.20856 14.5411 4.20781 15.6665C4.20781 17.6004 4.97604 19.4551 6.34349 20.8225C7.71095 22.19 9.56561 22.9582 11.4995 22.9582C13.4334 22.9582 15.288 22.19 16.6555 20.8225C18.0229 19.4551 18.7911 17.6004 18.7911 15.6665C18.7904 14.5411 18.5268 13.4314 18.0214 12.4259L22.8682 1.5061C22.9386 1.34746 22.9682 1.17374 22.9544 1.00074C22.9406 0.827739 22.8837 0.660933 22.7891 0.515478ZM2.6849 2.12485H6.68906L9.90469 8.5561C8.57897 8.85502 7.36335 9.51894 6.39531 10.4728L2.6849 2.12485ZM11.4995 20.8749C10.4694 20.8749 9.46239 20.5694 8.60589 19.9971C7.74938 19.4248 7.08182 18.6114 6.68761 17.6597C6.2934 16.708 6.19026 15.6607 6.39122 14.6504C6.59219 13.6401 7.08823 12.7121 7.81663 11.9837C8.54503 11.2553 9.47307 10.7592 10.4834 10.5583C11.4937 10.3573 12.5409 10.4604 13.4926 10.8546C14.4443 11.2489 15.2578 11.9164 15.8301 12.7729C16.4024 13.6294 16.7078 14.6364 16.7078 15.6665C16.7062 17.0473 16.1569 18.3711 15.1805 19.3475C14.2041 20.3239 12.8803 20.8732 11.4995 20.8749ZM16.6089 10.4728C15.6394 9.5181 14.4218 8.85412 13.0943 8.5561L16.3099 2.12485H20.3141L16.6089 10.4728ZM14.6245 14.929L12.888 16.3613L13.4307 18.7915L11.4995 17.403L9.56823 18.7915L10.1109 16.3613L8.37448 14.929L10.4578 14.6249L11.4995 12.5415L12.5411 14.6249L14.6245 14.929Z",fill:"currentColor"})}),Re0=()=>I.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M10.5007 0.604004C10.8952 0.604004 11.2559 0.826923 11.4324 1.17982L14.1187 6.55254L20.0256 7.41173C20.4179 7.46879 20.7439 7.74361 20.8664 8.12066C20.9889 8.49771 20.8867 8.91162 20.6029 9.18838L16.3038 13.38L17.2709 19.29C17.3348 19.6805 17.1718 20.0736 16.8503 20.3044C16.5288 20.5352 16.1042 20.5638 15.7546 20.3783L10.5007 17.5905L5.24674 20.3783C4.89713 20.5638 4.47259 20.5352 4.15106 20.3044C3.82954 20.0736 3.66659 19.6805 3.7305 19.29L4.69758 13.38L0.398494 9.18838C0.114634 8.91162 0.0124875 8.49771 0.134994 8.12066C0.257501 7.74361 0.58342 7.46879 0.975744 7.41173L6.88263 6.55254L9.56898 1.17982C9.74544 0.826923 10.1061 0.604004 10.5007 0.604004ZM10.5007 3.97491L8.50269 7.97089C8.35024 8.27579 8.05826 8.4868 7.72093 8.53586L3.36358 9.16966L6.54037 12.267C6.78379 12.5044 6.89608 12.8456 6.84118 13.1811L6.12569 17.5535L10.0124 15.4911C10.3178 15.3291 10.6836 15.3291 10.9889 15.4911L14.8757 17.5535L14.1602 13.1811C14.1053 12.8456 14.2176 12.5044 14.461 12.267L17.6378 9.16966L13.2804 8.53586C12.9431 8.4868 12.6511 8.27579 12.4987 7.97089L10.5007 3.97491Z",fill:"#FF9549"})}),je0=()=>I.jsx("svg",{width:"20",height:"15",viewBox:"0 0 20 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M19.5 1.64492C19.2 1.44492 18.8 1.44492 18.5 1.64492L14.1 4.64492V2.54492C14.1 1.44492 13.2 0.544922 12.1 0.544922H2C0.9 0.544922 0 1.44492 0 2.54492V12.5449C0 13.6449 0.9 14.5449 2 14.5449H12C13.1 14.5449 14 13.6449 14 12.5449V10.4449L18.4 13.4449C18.6 13.5449 18.8 13.6449 19 13.6449C19.2 13.6449 19.3 13.6449 19.5 13.5449C19.8 13.3449 20 13.0449 20 12.6449V2.54492C20 2.14492 19.8 1.84492 19.5 1.64492ZM12 12.5449H2V2.54492H12V6.54492V8.54492V12.5449ZM18 10.6449L14 7.94492V7.04492L18 4.34492V10.6449Z",fill:"#4A4A4A"})}),Ie0=()=>I.jsx("svg",{width:"22",height:"23",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M21 2.01196H18V1.01196C18 0.746746 17.8946 0.492392 17.7071 0.304856C17.5196 0.11732 17.2652 0.0119629 17 0.0119629H5C4.73478 0.0119629 4.48043 0.11732 4.29289 0.304856C4.10536 0.492392 4 0.746746 4 1.01196V2.01196H1C0.734784 2.01196 0.48043 2.11732 0.292893 2.30486C0.105357 2.49239 0 2.74675 0 3.01196V5.01196C0.00362544 6.20945 0.437419 7.36577 1.22231 8.27016C2.00721 9.17455 3.09095 9.7668 4.276 9.93896C4.64939 11.2333 5.38786 12.3926 6.40301 13.2781C7.41816 14.1636 8.66698 14.7378 10 14.932V17.012H6C5.79004 17.0119 5.58538 17.078 5.41505 17.2007C5.24472 17.3235 5.11735 17.4968 5.051 17.696L4.051 20.696C4.00093 20.8463 3.9873 21.0064 4.01123 21.163C4.03517 21.3196 4.09598 21.4683 4.18866 21.5969C4.28134 21.7254 4.40323 21.83 4.54429 21.9022C4.68536 21.9744 4.84155 22.012 5 22.012H17C17.1584 22.0118 17.3144 21.9741 17.4554 21.9019C17.5963 21.8296 17.7181 21.725 17.8106 21.5965C17.9032 21.468 17.9639 21.3193 17.9878 21.1628C18.0117 21.0062 17.998 20.8462 17.948 20.696L16.948 17.696C16.8817 17.4969 16.7545 17.3238 16.5844 17.201C16.4142 17.0783 16.2098 17.0121 16 17.012H12V14.932C13.333 14.7378 14.5818 14.1636 15.597 13.2781C16.6121 12.3926 17.3506 11.2333 17.724 9.93896C18.9091 9.7668 19.9928 9.17455 20.7777 8.27016C21.5626 7.36577 21.9964 6.20945 22 5.01196V3.01196C22 2.74675 21.8946 2.49239 21.7071 2.30486C21.5196 2.11732 21.2652 2.01196 21 2.01196ZM4 7.84096C3.41549 7.63338 2.90951 7.25006 2.55144 6.74358C2.19338 6.23709 2.00076 5.63224 2 5.01196V4.01196H4V7.84096ZM15.279 19.012L15.612 20.012H6.387L6.721 19.012H15.279ZM16 8.01196C16 9.33805 15.4732 10.6098 14.5355 11.5475C13.5979 12.4852 12.3261 13.012 11 13.012C9.67392 13.012 8.40215 12.4852 7.46447 11.5475C6.52678 10.6098 6 9.33805 6 8.01196V2.01196H16V8.01196ZM20 5.01196C19.9992 5.63224 19.8066 6.23709 19.4486 6.74358C19.0905 7.25006 18.5845 7.63338 18 7.84096V4.01196H20V5.01196ZM9.667 7.67896L8 6.30396L10 6.01196L11 4.01196L12 6.01196L14 6.30396L12.333 7.67896L12.854 10.012L11 8.67896L9.146 10.012L9.667 7.67896Z",fill:"#4A4A4A"})}),Fe0=()=>I.jsx("svg",{className:"icon-squares",width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M0 2.54492C0 1.44035 0.89543 0.544922 2 0.544922H6C7.10457 0.544922 8 1.44035 8 2.54492V6.54492C8 7.64949 7.10457 8.54492 6 8.54492H2C0.895431 8.54492 0 7.64949 0 6.54492V2.54492ZM6 2.54492H2V6.54492H6V2.54492ZM10 2.54492C10 1.44035 10.8954 0.544922 12 0.544922H16C17.1046 0.544922 18 1.44035 18 2.54492V6.54492C18 7.64949 17.1046 8.54492 16 8.54492H12C10.8954 8.54492 10 7.64949 10 6.54492V2.54492ZM16 2.54492H12V6.54492H16V2.54492ZM0 12.5449C0 11.4404 0.89543 10.5449 2 10.5449H6C7.10457 10.5449 8 11.4404 8 12.5449V16.5449C8 17.6495 7.10457 18.5449 6 18.5449H2C0.895431 18.5449 0 17.6495 0 16.5449V12.5449ZM6 12.5449H2V16.5449H6V12.5449ZM10 12.5449C10 11.4404 10.8954 10.5449 12 10.5449H16C17.1046 10.5449 18 11.4404 18 12.5449V16.5449C18 17.6495 17.1046 18.5449 16 18.5449H12C10.8954 18.5449 10 17.6495 10 16.5449V12.5449ZM16 12.5449H12V16.5449H16V12.5449Z",fill:"#4A4A4A"})}),$e0=()=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10.918",height:"6.159",viewBox:"0 0 10.918 6.159",children:I.jsx("g",{id:"arw",transform:"translate(0.5 5.659) rotate(-90)",children:I.jsxs("g",{id:"Group_9","data-name":"Group 9",transform:"translate(-0.5 -0.5)",children:[I.jsx("path",{id:"Path_16","data-name":"Path 16",d:"M117.86,4.89,122.646.117a.4.4,0,1,1,.566.568l-4.5,4.489,4.5,4.488a.4.4,0,0,1-.567.568L117.86,5.458a.4.4,0,0,1,0-.568Z",transform:"translate(-117.457 0.285)",fill:"#333"}),I.jsx("path",{id:"Path_16_-_Outline","data-name":"Path 16 - Outline",d:"M122.715-.5a.682.682,0,0,1,.486.2.682.682,0,0,1,.2.486.682.682,0,0,1-.2.485l-4.3,4.286,4.3,4.286a.687.687,0,0,1-.97.972l-4.786-4.773a.69.69,0,0,1-.2-.486.682.682,0,0,1,.2-.486L122.23-.3A.682.682,0,0,1,122.715-.5Zm0,10.347a.116.116,0,0,0,.082-.2l-4.7-4.691L122.8.268A.116.116,0,0,0,122.633.1l-4.786,4.773a.115.115,0,0,0,0,.163l4.786,4.773A.115.115,0,0,0,122.715,9.847Z",transform:"translate(-117.242 0.5)",fill:"#333"})]})})}),Ue0=({width:t="20px",height:e="21px",color:a="#4A4A4A"})=>I.jsx("svg",{width:t,height:e,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M10 2.54492C5.58172 2.54492 2 6.12664 2 10.5449C2 14.9632 5.58172 18.5449 10 18.5449C14.4183 18.5449 18 14.9632 18 10.5449C18 6.12664 14.4183 2.54492 10 2.54492ZM0 10.5449C0 5.02207 4.47715 0.544922 10 0.544922C15.5228 0.544922 20 5.02207 20 10.5449C20 16.0678 15.5228 20.5449 10 20.5449C4.47715 20.5449 0 16.0678 0 10.5449ZM10 4.54492C10.5523 4.54492 11 4.99264 11 5.54492V10.1307L13.7071 12.8378C14.0976 13.2283 14.0976 13.8615 13.7071 14.252C13.3166 14.6426 12.6834 14.6426 12.2929 14.252L9.29289 11.252C9.10536 11.0645 9 10.8101 9 10.5449V5.54492C9 4.99264 9.44771 4.54492 10 4.54492Z",fill:a})}),We0=()=>I.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M11 0C8.82441 0 6.69767 0.645139 4.88873 1.85383C3.07979 3.06253 1.66989 4.78049 0.83733 6.79048C0.00476617 8.80047 -0.213071 11.0122 0.211367 13.146C0.635804 15.2798 1.68345 17.2398 3.22183 18.7782C4.76021 20.3166 6.72022 21.3642 8.85401 21.7886C10.9878 22.2131 13.1995 21.9952 15.2095 21.1627C17.2195 20.3301 18.9375 18.9202 20.1462 17.1113C21.3549 15.3023 22 13.1756 22 11C21.9966 8.08367 20.8365 5.28778 18.7744 3.22563C16.7122 1.16347 13.9163 0.00344047 11 0ZM11 20C9.13845 19.9567 7.32925 19.3753 5.791 18.326C6.44749 17.5947 7.2506 17.0098 8.14808 16.6095C9.04555 16.2091 10.0173 16.0021 11 16.0021C11.9827 16.0021 12.9545 16.2091 13.8519 16.6095C14.7494 17.0098 15.5525 17.5947 16.209 18.326C14.6836 19.4012 12.8663 19.9853 11 20ZM17.694 16.994C16.8517 16.052 15.8201 15.2985 14.6666 14.7825C13.513 14.2666 12.2636 13.9999 11 13.9999C9.73637 13.9999 8.48696 14.2666 7.33345 14.7825C6.17995 15.2985 5.14832 16.052 4.30601 16.994C3.14348 15.7004 2.38066 14.0977 2.10981 12.3798C1.83896 10.6618 2.07168 8.90213 2.77983 7.31364C3.48797 5.72514 4.64121 4.37585 6.10004 3.42896C7.55887 2.48208 9.26081 1.97816 11 1.97816C12.7392 1.97816 14.4411 2.48208 15.9 3.42896C17.3588 4.37585 18.512 5.72514 19.2202 7.31364C19.9283 8.90213 20.161 10.6618 19.8902 12.3798C19.6193 14.0977 18.8565 15.7004 17.694 16.994ZM11 5C10.2089 5 9.43552 5.2346 8.77772 5.67412C8.11993 6.11365 7.60724 6.73836 7.30449 7.46927C7.00174 8.20017 6.92252 9.00444 7.07686 9.78036C7.2312 10.5563 7.61217 11.269 8.17158 11.8284C8.73099 12.3878 9.44372 12.7688 10.2196 12.9231C10.9956 13.0775 11.7998 12.9983 12.5307 12.6955C13.2616 12.3928 13.8864 11.8801 14.3259 11.2223C14.7654 10.5645 15 9.79113 15 9C15 7.93913 14.5786 6.92172 13.8284 6.17157C13.0783 5.42143 12.0609 5 11 5ZM11 11C10.6044 11 10.2178 10.8827 9.88886 10.6629C9.55997 10.4432 9.30362 10.1308 9.15225 9.76537C9.00087 9.39991 8.96126 8.99778 9.03843 8.60982C9.1156 8.22186 9.30609 7.86549 9.58579 7.58579C9.8655 7.30608 10.2219 7.1156 10.6098 7.03843C10.9978 6.96126 11.3999 7.00087 11.7654 7.15224C12.1308 7.30362 12.4432 7.55996 12.6629 7.88886C12.8827 8.21776 13 8.60444 13 9C13 9.53043 12.7893 10.0391 12.4142 10.4142C12.0391 10.7893 11.5304 11 11 11Z",fill:"currentColor"})}),qe0=({color:t="#fff"})=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"5.921",height:"10.387",viewBox:"0 0 5.921 10.387",children:I.jsx("g",{id:"arrow",transform:"translate(-97.139 0)",children:I.jsx("path",{id:"Path_27","data-name":"Path 27",d:"M102.846,5.707,98.38,10.173a.727.727,0,0,1-1.029-1.029L101.3,5.193,97.352,1.241A.727.727,0,0,1,98.38.213l4.466,4.466a.727.727,0,0,1,0,1.028Z",transform:"translate(0 0)",fill:t})})}),x$=({mode:t})=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23.656",height:"23.634",viewBox:"0 0 23.656 23.634",children:I.jsxs("g",{id:"layer1",transform:"translate(33.999 -246.006)",children:[I.jsx("path",{id:"rect40272",d:"M-31.781,255.006a2.248,2.248,0,0,0-2.186,2.62l1.921,11.087a2.837,2.837,0,0,0,2.8,2.331H-15.1a2.852,2.852,0,0,0,2.794-2.32l0-.012,1.919-11.075v0a2.239,2.239,0,0,0-2.183-2.629Zm0,1.688h19.217a.517.517,0,0,1,.524.631l0,.012-1.921,11.08a1.146,1.146,0,0,1-1.134.938H-29.249a1.138,1.138,0,0,1-1.134-.93L-32.3,257.337a.52.52,0,0,1,.523-.643Z",transform:"translate(0 -1.403)",fill:t==="light"?"#333":"white",fillRule:"evenodd"}),I.jsx("path",{id:"path41727",d:"M-25.419,246.062a.844.844,0,0,0-.47.445l-3.376,7.6a.844.844,0,0,0,.429,1.114.844.844,0,0,0,1.114-.429l3.376-7.6a.844.844,0,0,0-.429-1.114.844.844,0,0,0-.645-.016Z",transform:"translate(-0.727 0)",fill:t==="light"?"#333":"white",fillRule:"evenodd"}),I.jsx("path",{id:"path41729",d:"M-15.491,246.062a.844.844,0,0,0-.645.016.844.844,0,0,0-.429,1.114l3.376,7.6a.844.844,0,0,0,1.113.429.844.844,0,0,0,.429-1.114l-3.376-7.6a.844.844,0,0,0-.468-.445Z",transform:"translate(-2.707 0)",fill:t==="light"?"#333":"white",fillRule:"evenodd"})]})}),IZ2=({mode:t})=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",children:I.jsxs("g",{id:"_103571_globe_icon","data-name":"103571_globe_icon",transform:"translate(0 0.068)",children:[I.jsx("g",{id:"background",transform:"translate(0 -0.068)",children:I.jsx("rect",{id:"Rectangle_4458","data-name":"Rectangle 4458",width:"14",height:"14",fill:"none"})}),I.jsx("g",{id:"earth",transform:"translate(0.223 0.155)",children:I.jsx("path",{id:"Path_32","data-name":"Path 32",d:"M6.776,0a6.777,6.777,0,1,0,6.777,6.776A6.778,6.778,0,0,0,6.776,0ZM.869,7.2H2.982a9.613,9.613,0,0,0,.3,2.117H1.429A5.908,5.908,0,0,1,.869,7.2ZM7.2,3.389V.937A6.128,6.128,0,0,1,9.078,3.39H7.2Zm2.189.847a8.731,8.731,0,0,1,.337,2.118H7.2V4.236ZM6.161,1.086c.074-.061.136-.109.192-.151V3.389H4.474A6.744,6.744,0,0,1,5.212,2.1,5.825,5.825,0,0,1,6.161,1.086Zm.192,3.15V6.354H3.829A8.629,8.629,0,0,1,4.17,4.236ZM2.982,6.354H.869a5.9,5.9,0,0,1,.559-2.118H3.287A9.624,9.624,0,0,0,2.982,6.354Zm.845.847H6.353V9.318H4.164A8.724,8.724,0,0,1,3.827,7.2Zm2.527,2.965v2.452a6.124,6.124,0,0,1-1.878-2.452Zm1.039,2.3c-.073.061-.136.109-.192.151V10.166H9.08a6.726,6.726,0,0,1-.738,1.284A5.819,5.819,0,0,1,7.392,12.468ZM7.2,9.318V7.2H9.724a8.65,8.65,0,0,1-.341,2.117ZM10.572,7.2h2.112a5.9,5.9,0,0,1-.559,2.117H10.267A9.664,9.664,0,0,0,10.572,7.2Zm0-.847a9.62,9.62,0,0,0-.305-2.118h1.859a5.894,5.894,0,0,1,.559,2.118Zm1.064-2.964H9.989a7.522,7.522,0,0,0-1.32-2.226A5.939,5.939,0,0,1,11.636,3.389ZM4.884,1.164A7.533,7.533,0,0,0,3.565,3.389H1.917A5.944,5.944,0,0,1,4.884,1.164Zm-2.965,9H3.565a7.521,7.521,0,0,0,1.318,2.224A5.939,5.939,0,0,1,1.919,10.166ZM8.67,12.389a7.53,7.53,0,0,0,1.319-2.224h1.646A5.938,5.938,0,0,1,8.67,12.389Z",fill:t==="light"?"#333":"white"})})]})}),V$=({mode:t})=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25.311",height:"26.784",viewBox:"0 0 25.311 26.784",children:I.jsx("g",{id:"_26._Notification","data-name":"26. Notification",transform:"matrix(0.978, 0.208, -0.208, 0.978, 3.787, -0.208)",children:I.jsx("path",{id:"Path_2","data-name":"Path 2",d:"M21.131,14.008a3.518,3.518,0,0,1-1.037-2.5V8.592a8.592,8.592,0,1,0-17.185,0V11.5a3.518,3.518,0,0,1-1.037,2.5A2.98,2.98,0,0,0,3.98,19.094H6.824a4.774,4.774,0,0,0,9.356,0h2.845a2.98,2.98,0,0,0,2.107-5.087ZM11.5,21a2.864,2.864,0,0,1-2.688-1.909H14.19A2.864,2.864,0,0,1,11.5,21Zm7.522-3.819H3.98a1.07,1.07,0,0,1-.757-1.827,5.415,5.415,0,0,0,1.6-3.853V8.592a6.683,6.683,0,1,1,13.366,0V11.5a5.415,5.415,0,0,0,1.6,3.853,1.07,1.07,0,0,1-.757,1.827Z",transform:"translate(0 0)",fill:t==="light"?"#333":"white"})})}),FZ2=()=>I.jsxs("svg",{id:"back-arw",xmlns:"http://www.w3.org/2000/svg",width:"19.407",height:"17",viewBox:"0 0 19.407 17",children:[I.jsx("g",{id:"Group_30","data-name":"Group 30",transform:"translate(9.675 0)",children:I.jsx("g",{id:"Group_29","data-name":"Group 29",transform:"translate(0 0)",children:I.jsx("path",{id:"Path_19","data-name":"Path 19",d:"M0,22.959l1.649-1.778,7.328,6.8a2.317,2.317,0,0,1-.007,3.429L1.659,38.181.01,36.4l7.246-6.713Z",transform:"translate(0 -21.181)",fill:"#ee312f"})})}),I.jsx("g",{id:"Group_32","data-name":"Group 32",transform:"translate(0 7.285)",children:I.jsx("g",{id:"Group_31","data-name":"Group 31",transform:"translate(0 0)",children:I.jsx("rect",{id:"Rectangle_4181","data-name":"Rectangle 4181",width:"16.977",height:"2.425",fill:"#ee312f"})})})]}),C$=({mode:t})=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"31.5",height:"31.5",viewBox:"0 0 31.5 31.5",className:"profileIcon",children:I.jsx("g",{id:"vuesax_linear_profile-circle","data-name":"vuesax/linear/profile-circle",transform:"translate(-492 -252)",children:I.jsxs("g",{id:"profile-circle",transform:"translate(492 252)",children:[I.jsx("path",{id:"Vector",d:"M4.462,9.6a1,1,0,0,1-.137-.009H4.31l-.038,0a1,1,0,0,1-.158.007A5.3,5.3,0,1,1,9.61,4.3s0,0,0,.006A5.292,5.292,0,0,1,4.5,9.6ZM4.3,1a3.3,3.3,0,0,0-.186,6.595,2.317,2.317,0,0,1,.375,0A3.3,3.3,0,0,0,4.3,1Z",transform:"translate(11.445 8.177)",fill:t==="light"?"#333":"white"}),I.jsx("path",{id:"Vector-2","data-name":"Vector",d:"M8.846,9.617a14.066,14.066,0,0,1-9.522-3.7,1,1,0,0,1-.319-.843A5.82,5.82,0,0,1,1.765.962l0,0A12.92,12.92,0,0,1,8.856-1,12.82,12.82,0,0,1,15.925.96a5.821,5.821,0,0,1,2.761,4.112,1,1,0,0,1-.319.843A14.066,14.066,0,0,1,8.846,9.617ZM1.092,4.8A12.067,12.067,0,0,0,8.846,7.617,12.067,12.067,0,0,0,16.6,4.8a4.234,4.234,0,0,0-1.79-2.184A10.811,10.811,0,0,0,8.856,1,10.913,10.913,0,0,0,2.879,2.623,4.233,4.233,0,0,0,1.092,4.8Z",transform:"translate(6.904 20.258)",fill:t==="light"?"#333":"white"}),I.jsx("path",{id:"Vector-3","data-name":"Vector",d:"M13.125-1a14.125,14.125,0,0,1,9.988,24.113A14.125,14.125,0,1,1,3.137,3.137,14.033,14.033,0,0,1,13.125-1Zm0,26.25A12.125,12.125,0,0,0,21.7,4.551,12.125,12.125,0,1,0,4.551,21.7,12.046,12.046,0,0,0,13.125,25.25Z",transform:"translate(2.625 2.625)",fill:t==="light"?"#333":"white"}),I.jsx("path",{id:"Vector-4","data-name":"Vector",d:"M0,0H31.5V31.5H0Z",transform:"translate(31.5 31.5) rotate(180)",fill:"none",opacity:"0"})]})})}),Ge0=({color:t="white"})=>I.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M0.699143 0.462083C1.08967 0.0715584 1.72283 0.0715584 2.11336 0.462083L7.40625 5.75498L12.6991 0.462083C13.0897 0.0715584 13.7228 0.0715584 14.1134 0.462083C14.5039 0.852607 14.5039 1.48577 14.1134 1.8763L8.82046 7.16919L14.1134 12.4621C14.5039 12.8526 14.5039 13.4858 14.1134 13.8763C13.7228 14.2668 13.0897 14.2668 12.6991 13.8763L7.40625 8.5834L2.11336 13.8763C1.72283 14.2668 1.08967 14.2668 0.699143 13.8763C0.308619 13.4858 0.308619 12.8526 0.699143 12.4621L5.99204 7.16919L0.699143 1.8763C0.308619 1.48577 0.308619 0.852607 0.699143 0.462083Z",fill:t||"white"})}),Ke0=()=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13.757",height:"17.157",viewBox:"0 0 13.757 17.157",children:I.jsx("path",{id:"Union_89","data-name":"Union 89",d:"M-469.691,8979.157a2.311,2.311,0,0,1-2.31-2.31V8964.31a2.313,2.313,0,0,1,2.31-2.31h7.2l4.243,4.743v10.1a2.309,2.309,0,0,1-2.308,2.31Zm-1.093-14.848v12.538a1.094,1.094,0,0,0,1.093,1.093h9.14a1.092,1.092,0,0,0,1.091-1.093v-9.262h-3.908v-4.369h-6.323A1.1,1.1,0,0,0-470.784,8964.31Zm8.633,2.06h1.938l-1.938-2.168Zm-.356,8.354V8969.6h2.639v1.039H-461.6v1.075h1.456v1.012H-461.6v2Zm-4.122,0V8969.6h1.568c1.217,0,2.062,1.053,2.062,2.578,0,1.5-.825,2.549-2.006,2.549Zm.908-1.039h.626c.717,0,1.138-.561,1.138-1.51,0-.971-.444-1.539-1.194-1.539h-.57Zm-4.43,1.039V8969.6h1.681c.845,0,1.411.688,1.411,1.713s-.566,1.71-1.411,1.71h-.773v1.7Zm.908-2.7h.57c.437,0,.656-.236.656-.712s-.219-.714-.656-.714h-.57Z",transform:"translate(472.001 -8962)",fill:"#ee312f"})}),Ye0=()=>I.jsx("svg",{viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M1.5013 19.1668H9.83464C10.0556 19.1668 10.2676 19.079 10.4239 18.9228C10.5802 18.7665 10.668 18.5545 10.668 18.3335V8.3335C10.668 8.11248 10.5802 7.90052 10.4239 7.74424C10.2676 7.58796 10.0556 7.50016 9.83464 7.50016H1.5013C1.28029 7.50016 1.06833 7.58796 0.912046 7.74424C0.755766 7.90052 0.667969 8.11248 0.667969 8.3335V18.3335C0.667969 18.5545 0.755766 18.7665 0.912046 18.9228C1.06833 19.079 1.28029 19.1668 1.5013 19.1668ZM2.33464 9.16683H9.0013V17.5002H2.33464V9.16683ZM12.3346 15.0002V5.8335H4.83464C4.61362 5.8335 4.40166 5.7457 4.24538 5.58942C4.0891 5.43314 4.0013 5.22118 4.0013 5.00016C4.0013 4.77915 4.0891 4.56719 4.24538 4.41091C4.40166 4.25463 4.61362 4.16683 4.83464 4.16683H13.168C13.389 4.16683 13.6009 4.25463 13.7572 4.41091C13.9135 4.56719 14.0013 4.77915 14.0013 5.00016V15.0002C14.0013 15.2212 13.9135 15.4331 13.7572 15.5894C13.6009 15.7457 13.389 15.8335 13.168 15.8335C12.947 15.8335 12.735 15.7457 12.5787 15.5894C12.4224 15.4331 12.3346 15.2212 12.3346 15.0002ZM17.3346 1.66683V12.5002C17.3346 12.7212 17.2468 12.9331 17.0906 13.0894C16.9343 13.2457 16.7223 13.3335 16.5013 13.3335C16.2803 13.3335 16.0683 13.2457 15.912 13.0894C15.7558 12.9331 15.668 12.7212 15.668 12.5002V2.50016H8.16797C7.94696 2.50016 7.73499 2.41237 7.57871 2.25609C7.42243 2.0998 7.33464 1.88784 7.33464 1.66683C7.33464 1.44582 7.42243 1.23385 7.57871 1.07757C7.73499 0.921293 7.94696 0.833496 8.16797 0.833496H16.5013C16.7223 0.833496 16.9343 0.921293 17.0906 1.07757C17.2468 1.23385 17.3346 1.44582 17.3346 1.66683Z"})}),Ze0=()=>I.jsxs("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",fill:"none",x:"0px",y:"0px",viewBox:"0 0 357.18 357.18",children:[I.jsx("g",{children:I.jsx("g",{children:I.jsx("path",{d:`M123.292,96.7c-0.128-0.196-0.112-0.408-0.284-0.58L65.456,38.564l31.268,0.048c7.396,0,13.82-6.42,13.816-13.812 +`])),function(p){var m=p.theme;return m.buttonRadius},function(p){var m=p.theme;return m.gray4},function(p){var m=p.theme;return m.textColor},function(p){var m=p.theme;return m.buttonRadius}),M=function(p){var m=p.onItemSelected,z=p.onInputSubmitted,w=(0,l.useRef)(),x=(0,l.useState)(!1),y=x[0],V=x[1],C=(0,l.useState)([]),L=C[0],B=C[1],S=(0,l.useContext)(s.EscolaLMSContext).apiUrl,T=(0,l.useCallback)(function(Y){B(function(F){return n(n([],F,!0),Y,!0).filter(function(X,R,i1){return i1.findIndex(function(t1){return t1.id===X.id})===R})})},[]),E=(0,l.useCallback)(function(Y){V(!0),w.current&&w.current.abort(),w.current=new AbortController,h.course.bind(null,S)({title:Y},{signal:w.current&&w.current.signal}).then(function(F){F&&F.success&&T(F.data)}).catch(function(){return V(!1)}).finally(function(){return V(!1)})},[]),$=(0,l.useCallback)(function(Y){E(Y)},[]),q=(0,l.useCallback)(function(Y){return z(Y)},[]),U=(0,c.useTranslation)().t;return(0,o.jsx)(f,{children:(0,o.jsx)(u.Search,a({loading:y,onSearch:$,onSubmit:q,placeholder:U("Search.Placeholder")},{children:L.map(function(Y){return(0,o.jsx)(d,a({block:!0,mode:"white",onClick:function(){m(Y)}},{children:Y.title}),Y.id)})}))})};t.SearchCourses=M,t.default=t.SearchCourses;var g,H})(DL);var Ut={},RL={exports:{}};(function(t,e){(function(a,n){var r="1.0.37",o="",l="?",c="function",h="undefined",s="object",u="string",v="major",f="model",d="name",M="type",g="vendor",H="version",p="architecture",m="console",z="mobile",w="tablet",x="smarttv",y="wearable",V="embedded",C=500,L="Amazon",B="Apple",S="ASUS",T="BlackBerry",E="Browser",$="Chrome",q="Edge",U="Firefox",Y="Google",F="Huawei",X="LG",R="Microsoft",i1="Motorola",t1="Opera",A="Samsung",o1="Sharp",h1="Sony",a1="Xiaomi",M1="Zebra",s1="Facebook",z1="Chromium OS",m1="Mac OS",S1=function(H1,b1){var J={};for(var f1 in H1)b1[f1]&&b1[f1].length%2===0?J[f1]=b1[f1].concat(H1[f1]):J[f1]=H1[f1];return J},I1=function(H1){for(var b1={},J=0;J0?r1.length===2?typeof r1[1]==c?this[r1[0]]=r1[1].call(this,W):this[r1[0]]=r1[1]:r1.length===3?typeof r1[1]===c&&!(r1[1].exec&&r1[1].test)?this[r1[0]]=W?r1[1].call(this,W,r1[2]):n:this[r1[0]]=W?W.replace(r1[1],r1[2]):n:r1.length===4&&(this[r1[0]]=W?r1[3].call(this,W.replace(r1[1],r1[2])):n):this[r1]=W||n;J+=2}},nt=function(H1,b1){for(var J in b1)if(typeof b1[J]===s&&b1[J].length>0){for(var f1=0;f12&&(P[f]="iPad",P[M]=w),P},this.getEngine=function(){var P={};return P[d]=n,P[H]=n,X1.call(P,f1,G.engine),P},this.getOS=function(){var P={};return P[d]=n,P[H]=n,X1.call(P,f1,G.os),r1&&!P[d]&&e1&&e1.platform!="Unknown"&&(P[d]=e1.platform.replace(/chrome os/i,z1).replace(/macos/i,m1)),P},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return f1},this.setUA=function(P){return f1=typeof P===u&&P.length>C?rt(P,C):P,this},this.setUA(f1),this};V1.VERSION=r,V1.BROWSER=I1([d,H,v]),V1.CPU=I1([p]),V1.DEVICE=I1([f,g,M,m,z,x,w,y,V]),V1.ENGINE=V1.OS=I1([d,H]),t.exports&&(e=t.exports=V1),e.UAParser=V1;var q1=typeof a!==h&&(a.jQuery||a.Zepto);if(q1&&!q1.ua){var B1=new V1;q1.ua=B1.getResult(),q1.ua.get=function(){return B1.getUA()},q1.ua.set=function(H1){B1.setUA(H1);var b1=B1.getResult();for(var J in b1)q1.ua[J]=b1[J]}}})(typeof window=="object"?window:b)})(RL,RL.exports);var VY2=RL.exports;Object.defineProperty(Ut,"__esModule",{value:!0});function CY2(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var Q4=_,G0=CY2(Q4),M21=VY2,Po=new M21,ea=Po.getBrowser(),bY2=Po.getCPU(),fn=Po.getDevice(),gO=Po.getEngine(),No=Po.getOS(),ou=Po.getUA(),H21=function(e){return Po.setUA(e)},lu=function(e){if(!e){console.error("No userAgent string was provided");return}var a=new M21(e);return{UA:a,browser:a.getBrowser(),cpu:a.getCPU(),device:a.getDevice(),engine:a.getEngine(),os:a.getOS(),ua:a.getUA(),setUserAgent:function(r){return a.setUA(r)}}},w21=Object.freeze({ClientUAInstance:Po,browser:ea,cpu:bY2,device:fn,engine:gO,os:No,ua:ou,setUa:H21,parseUserAgent:lu});function M$(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function LY2(t){for(var e=1;e=0)&&(a[r]=t[r]);return a}function ir(t,e){if(t==null)return{};var a=OY2(t,e),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function Nf(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function AY2(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nf(t)}function kY2(t,e){return EY2(t)||PY2(t,e)||NY2(t,e)||DY2()}function EY2(t){if(Array.isArray(t))return t}function PY2(t,e){var a=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a!=null){var n=[],r=!0,o=!1,l,c;try{for(a=a.call(t);!(r=(l=a.next()).done)&&(n.push(l.value),!(e&&n.length===e));r=!0);}catch(h){o=!0,c=h}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw c}}return n}}function NY2(t,e){if(t){if(typeof t=="string")return w$(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Array.from(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return w$(t,e)}}function w$(t,e){(e==null||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a1&&arguments[1]!==void 0?arguments[1]:"none";return e||a},pO=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},mO=function(e){var a=pO();return a&&a.platform&&(a.platform.indexOf(e)!==-1||a.platform==="MacIntel"&&a.maxTouchPoints>1&&!window.MSStream)},FY2=function(e,a,n,r,o){return{isBrowser:e,browserMajorVersion:z2(a.major),browserFullVersion:z2(a.version),browserName:z2(a.name),engineName:z2(n.name),engineVersion:z2(n.version),osName:z2(r.name),osVersion:z2(r.version),userAgent:z2(o)}},y$=function(e,a,n,r){return LY2({},e,{vendor:z2(a.vendor),model:z2(a.model),os:z2(n.name),osVersion:z2(n.version),ua:z2(r)})},$Y2=function(e,a,n,r){return{isSmartTV:e,engineName:z2(a.name),engineVersion:z2(a.version),osName:z2(n.name),osVersion:z2(n.version),userAgent:z2(r)}},UY2=function(e,a,n,r){return{isConsole:e,engineName:z2(a.name),engineVersion:z2(a.version),osName:z2(n.name),osVersion:z2(n.version),userAgent:z2(r)}},WY2=function(e,a,n,r){return{isWearable:e,engineName:z2(a.name),engineVersion:z2(a.version),osName:z2(n.name),osVersion:z2(n.version),userAgent:z2(r)}},qY2=function(e,a,n,r,o){return{isEmbedded:e,vendor:z2(a.vendor),model:z2(a.model),engineName:z2(n.name),engineVersion:z2(n.version),osName:z2(r.name),osVersion:z2(r.version),userAgent:z2(o)}};function GY2(t){var e=t?lu(t):w21,a=e.device,n=e.browser,r=e.engine,o=e.os,l=e.ua,c=jY2(a.type),h=c.isBrowser,s=c.isMobile,u=c.isTablet,v=c.isSmartTV,f=c.isConsole,d=c.isWearable,M=c.isEmbedded;if(h)return FY2(h,n,r,o,l);if(v)return $Y2(v,r,o,l);if(f)return UY2(f,r,o,l);if(s||u)return y$(c,a,o,l);if(d)return WY2(d,r,o,l);if(M)return qY2(M,a,r,o,l)}var y21=function(e){var a=e.type;return a===U4.Mobile},x21=function(e){var a=e.type;return a===U4.Tablet},V21=function(e){var a=e.type;return a===U4.Mobile||a===U4.Tablet},C21=function(e){var a=e.type;return a===U4.SmartTv},zp=function(e){var a=e.type;return a===U4.Browser},b21=function(e){var a=e.type;return a===U4.Wearable},L21=function(e){var a=e.type;return a===U4.Console},B21=function(e){var a=e.type;return a===U4.Embedded},_21=function(e){var a=e.vendor;return z2(a)},S21=function(e){var a=e.model;return z2(a)},T21=function(e){var a=e.type;return z2(a,"browser")},O21=function(e){var a=e.name;return a===n9.Android},A21=function(e){var a=e.name;return a===n9.Windows},k21=function(e){var a=e.name;return a===n9.MAC_OS},E21=function(e){var a=e.name;return a===n9.WindowsPhone},P21=function(e){var a=e.name;return a===n9.IOS},N21=function(e){var a=e.version;return z2(a)},D21=function(e){var a=e.name;return z2(a)},R21=function(e){var a=e.name;return a===Fa.Chrome},j21=function(e){var a=e.name;return a===Fa.Firefox},I21=function(e){var a=e.name;return a===Fa.Chromium},Mp=function(e){var a=e.name;return a===Fa.Edge},F21=function(e){var a=e.name;return a===Fa.Yandex},$21=function(e){var a=e.name;return a===Fa.Safari||a===Fa.MobileSafari},U21=function(e){var a=e.name;return a===Fa.MobileSafari},W21=function(e){var a=e.name;return a===Fa.Opera},q21=function(e){var a=e.name;return a===Fa.InternetExplorer||a===Fa.Ie},G21=function(e){var a=e.name;return a===Fa.MIUI},K21=function(e){var a=e.name;return a===Fa.SamsungBrowser},Y21=function(e){var a=e.version;return z2(a)},Z21=function(e){var a=e.major;return z2(a)},Q21=function(e){var a=e.name;return z2(a)},X21=function(e){var a=e.name;return z2(a)},J21=function(e){var a=e.version;return z2(a)},t01=function(){var e=pO(),a=e&&e.userAgent&&e.userAgent.toLowerCase();return typeof a=="string"?/electron/.test(a):!1},F6=function(e){return typeof e=="string"&&e.indexOf("Edg/")!==-1},e01=function(){var e=pO();return e&&(/iPad|iPhone|iPod/.test(e.platform)||e.platform==="MacIntel"&&e.maxTouchPoints>1)&&!window.MSStream},hi=function(){return mO("iPad")},a01=function(){return mO("iPhone")},n01=function(){return mO("iPod")},r01=function(e){return z2(e)};function i01(t){var e=t||w21,a=e.device,n=e.browser,r=e.os,o=e.engine,l=e.ua;return{isSmartTV:C21(a),isConsole:L21(a),isWearable:b21(a),isEmbedded:B21(a),isMobileSafari:U21(n)||hi(),isChromium:I21(n),isMobile:V21(a)||hi(),isMobileOnly:y21(a),isTablet:x21(a)||hi(),isBrowser:zp(a),isDesktop:zp(a),isAndroid:O21(r),isWinPhone:E21(r),isIOS:P21(r)||hi(),isChrome:R21(n),isFirefox:j21(n),isSafari:$21(n),isOpera:W21(n),isIE:q21(n),osVersion:N21(r),osName:D21(r),fullBrowserVersion:Y21(n),browserVersion:Z21(n),browserName:Q21(n),mobileVendor:_21(a),mobileModel:S21(a),engineName:X21(o),engineVersion:J21(o),getUA:r01(l),isEdge:Mp(n)||F6(l),isYandex:F21(n),deviceType:T21(a),isIOS13:e01(),isIPad13:hi(),isIPhone13:a01(),isIPod13:n01(),isElectron:t01(),isEdgeChromium:F6(l),isLegacyEdge:Mp(n)&&!F6(l),isWindows:A21(r),isMacOs:k21(r),isMIUI:G21(n),isSamsungBrowser:K21(n)}}var o01=C21(fn),l01=L21(fn),c01=b21(fn),KY2=B21(fn),YY2=U21(ea)||hi(),ZY2=I21(ea),BM=V21(fn)||hi(),s01=y21(fn),h01=x21(fn)||hi(),u01=zp(fn),QY2=zp(fn),v01=O21(No),d01=E21(No),f01=P21(No)||hi(),XY2=R21(ea),JY2=j21(ea),tZ2=$21(ea),eZ2=W21(ea),g01=q21(ea),aZ2=N21(No),nZ2=D21(No),rZ2=Y21(ea),iZ2=Z21(ea),oZ2=Q21(ea),lZ2=_21(fn),cZ2=S21(fn),sZ2=X21(gO),hZ2=J21(gO),uZ2=r01(ou),vZ2=Mp(ea)||F6(ou),dZ2=F21(ea),fZ2=T21(fn),gZ2=e01(),pZ2=hi(),mZ2=a01(),zZ2=n01(),MZ2=t01(),HZ2=F6(ou),wZ2=Mp(ea)&&!F6(ou),yZ2=A21(No),xZ2=k21(No),VZ2=G21(ea),CZ2=K21(ea),bZ2=function(e){if(!e||typeof e!="string"){console.error("No valid user agent string was provided");return}var a=lu(e),n=a.device,r=a.browser,o=a.os,l=a.engine,c=a.ua;return i01({device:n,browser:r,os:o,engine:l,ua:c})},LZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return v01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},BZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return u01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},_Z2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return g01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},SZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return f01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},TZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return BM?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},OZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return h01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},AZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return d01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},kZ2=function(e){var a=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var r=ir(e,["renderWithFragment","children","viewClassName","style"]);return s01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},EZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return o01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},PZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return l01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},NZ2=function(e){var a=e.renderWithFragment,n=e.children,r=ir(e,["renderWithFragment","children"]);return c01?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",r,n):null},DZ2=function(e){var a=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var r=e.condition,o=ir(e,["renderWithFragment","children","viewClassName","style","condition"]);return r?a?G0.createElement(Q4.Fragment,null,n):G0.createElement("div",o,n):null};function RZ2(t){return function(e){TY2(a,e);function a(n){var r;return BY2(this,a),r=AY2(this,IL(a).call(this,n)),r.isEventListenerAdded=!1,r.handleOrientationChange=r.handleOrientationChange.bind(Nf(r)),r.onOrientationChange=r.onOrientationChange.bind(Nf(r)),r.onPageLoad=r.onPageLoad.bind(Nf(r)),r.state={isLandscape:!1,isPortrait:!1},r}return _Y2(a,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var r=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:r===0,isLandscape:r===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":ds(window))!==void 0&&BM&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return G0.createElement(t,jL({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),a}(G0.Component)}function jZ2(){var t=Q4.useState(function(){var o=window.innerWidth>window.innerHeight?90:0;return{isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"}}),e=kY2(t,2),a=e[0],n=e[1],r=Q4.useCallback(function(){var o=window.innerWidth>window.innerHeight?90:0,l={isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"};a.orientation!==l.orientation&&n(l)},[a.orientation]);return Q4.useEffect(function(){return(typeof window>"u"?"undefined":ds(window))!==void 0&&BM&&(r(),window.addEventListener("load",r,!1),window.addEventListener("resize",r,!1)),function(){window.removeEventListener("resize",r,!1),window.removeEventListener("load",r,!1)}},[r]),a}function p01(t){var e=t||window.navigator.userAgent;return lu(e)}function IZ2(t){var e=t||window.navigator.userAgent,a=p01(e),n=i01(a);return[n,a]}Ut.AndroidView=LZ2;Ut.BrowserTypes=Fa;Ut.BrowserView=BZ2;Ut.ConsoleView=PZ2;Ut.CustomView=DZ2;Ut.IEView=_Z2;Ut.IOSView=SZ2;Ut.MobileOnlyView=kZ2;Ut.MobileView=TZ2;Ut.OsTypes=n9;Ut.SmartTVView=EZ2;Ut.TabletView=OZ2;Ut.WearableView=NZ2;Ut.WinPhoneView=AZ2;Ut.browserName=oZ2;Ut.browserVersion=iZ2;Ut.deviceDetect=GY2;Ut.deviceType=fZ2;Ut.engineName=sZ2;Ut.engineVersion=hZ2;Ut.fullBrowserVersion=rZ2;Ut.getSelectorsByUserAgent=bZ2;Ut.getUA=uZ2;Ut.isAndroid=v01;Ut.isBrowser=u01;Ut.isChrome=XY2;Ut.isChromium=ZY2;Ut.isConsole=l01;Ut.isDesktop=QY2;Ut.isEdge=vZ2;Ut.isEdgeChromium=HZ2;Ut.isElectron=MZ2;Ut.isEmbedded=KY2;Ut.isFirefox=JY2;Ut.isIE=g01;Ut.isIOS=f01;Ut.isIOS13=gZ2;Ut.isIPad13=pZ2;Ut.isIPhone13=mZ2;Ut.isIPod13=zZ2;Ut.isLegacyEdge=wZ2;Ut.isMIUI=VZ2;Ut.isMacOs=xZ2;var On=Ut.isMobile=BM;Ut.isMobileOnly=s01;Ut.isMobileSafari=YY2;Ut.isOpera=eZ2;Ut.isSafari=tZ2;Ut.isSamsungBrowser=CZ2;Ut.isSmartTV=o01;Ut.isTablet=h01;Ut.isWearable=c01;Ut.isWinPhone=d01;Ut.isWindows=yZ2;Ut.isYandex=dZ2;Ut.mobileModel=cZ2;Ut.mobileVendor=lZ2;Ut.osName=nZ2;Ut.osVersion=aZ2;Ut.parseUserAgent=lu;Ut.setUserAgent=IY2;Ut.useDeviceData=p01;Ut.useDeviceSelectors=IZ2;Ut.useMobileOrientation=jZ2;Ut.withOrientationChange=RZ2;const Pe0=()=>I.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M17.1286 1.09126C17.0605 0.986549 16.9674 0.900492 16.8576 0.840899C16.7479 0.781307 16.625 0.750066 16.5001 0.750011H12.0001C11.8607 0.749946 11.7241 0.788719 11.6055 0.861978C11.487 0.935238 11.3911 1.04009 11.3288 1.16476L9.00009 5.82301L6.67509 1.16476C6.61251 1.03951 6.51612 0.934287 6.39683 0.860988C6.27753 0.78769 6.14011 0.749247 6.00009 0.750011H1.5001C1.37514 0.749995 1.25216 0.781201 1.14233 0.840792C1.0325 0.900384 0.939293 0.986473 0.871188 1.09124C0.803083 1.196 0.762233 1.31613 0.75235 1.44069C0.742467 1.56526 0.763863 1.69032 0.814595 1.80451L4.30435 9.66676C3.94042 10.3907 3.75063 11.1897 3.7501 12C3.7501 13.3924 4.30322 14.7278 5.28778 15.7123C6.27235 16.6969 7.60771 17.25 9.00009 17.25C10.3925 17.25 11.7278 16.6969 12.7124 15.7123C13.697 14.7278 14.2501 13.3924 14.2501 12C14.2496 11.1897 14.0598 10.3907 13.6958 9.66676L17.1856 1.80451C17.2363 1.69029 17.2576 1.56521 17.2476 1.44065C17.2377 1.31609 17.1968 1.19599 17.1286 1.09126ZM2.6536 2.25001H5.53659L7.85184 6.88051C6.89733 7.09573 6.02208 7.57376 5.3251 8.26051L2.6536 2.25001ZM9.00009 15.75C8.25841 15.75 7.53339 15.5301 6.91671 15.118C6.30002 14.706 5.81938 14.1203 5.53555 13.4351C5.25172 12.7499 5.17746 11.9959 5.32215 11.2684C5.46685 10.541 5.824 9.87281 6.34844 9.34836C6.87289 8.82391 7.54108 8.46676 8.26851 8.32207C8.99593 8.17737 9.74993 8.25163 10.4352 8.53546C11.1204 8.81929 11.7061 9.29994 12.1181 9.91662C12.5302 10.5333 12.7501 11.2583 12.7501 12C12.7489 12.9942 12.3534 13.9473 11.6504 14.6503C10.9474 15.3534 9.99429 15.7488 9.00009 15.75ZM12.6788 8.26051C11.9808 7.57315 11.1042 7.09508 10.1483 6.88051L12.4636 2.25001H15.3466L12.6788 8.26051ZM11.2501 11.469L9.99984 12.5003L10.3906 14.25L9.00009 13.2503L7.60959 14.25L8.00034 12.5003L6.75009 11.469L8.25009 11.25L9.00009 9.75001L9.75009 11.25L11.2501 11.469Z",fill:"#4A4A4A"})}),Ne0=()=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14.002",height:"13.36",viewBox:"0 0 14.002 13.36",children:I.jsx("path",{id:"Subtraction_13","data-name":"Subtraction 13",d:"M-15945,11984.361h0V11974a3,3,0,0,1,3-3h8a3,3,0,0,1,3,3v5a3.005,3.005,0,0,1-3,3h-7.659l-3.338,2.356Zm8.669-12.064h0l-.5.3a.557.557,0,0,0-.089.063.277.277,0,0,0-.056.093.3.3,0,0,0-.012.12.481.481,0,0,0,.056.164,7.513,7.513,0,0,1,.645,1.681,7.785,7.785,0,0,1,.22,1.824,7.8,7.8,0,0,1-.22,1.825,7.6,7.6,0,0,1-.645,1.681.42.42,0,0,0-.056.16.314.314,0,0,0,.012.124.394.394,0,0,0,.056.088.276.276,0,0,0,.089.063l.5.3a8.633,8.633,0,0,0,.563-1.032,7.839,7.839,0,0,0,.385-1.045,6.825,6.825,0,0,0,.216-1.064,9.77,9.77,0,0,0,.068-1.1,9.6,9.6,0,0,0-.068-1.1,7.294,7.294,0,0,0-.216-1.068,7.419,7.419,0,0,0-.385-1.04,7.552,7.552,0,0,0-.563-1.028Zm-2.669,5.066a1,1,0,0,0-1,1,1,1,0,0,0,1,1,1,1,0,0,0,1-1A1,1,0,0,0-15939,11977.363Zm0-3a1,1,0,0,0-1,1,1,1,0,0,0,1,1,1,1,0,0,0,1-1A1,1,0,0,0-15939,11974.362Z",transform:"translate(15945.001 -11971.001)",fill:"#ee312f"})}),De0=()=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14.002",height:"13.998",viewBox:"0 0 14.002 13.998",children:I.jsx("path",{id:"Subtraction_16","data-name":"Subtraction 16",d:"M-15938,11985a6.966,6.966,0,0,1-4.953-2.05A6.946,6.946,0,0,1-15945,11978a6.952,6.952,0,0,1,2.049-4.952A6.965,6.965,0,0,1-15938,11971a6.964,6.964,0,0,1,4.951,2.049A6.952,6.952,0,0,1-15931,11978a6.946,6.946,0,0,1-2.049,4.947A6.961,6.961,0,0,1-15938,11985Zm-2.74-7.707h0l-1,.895,2.58,2.669a.714.714,0,0,0,.5.209.066.066,0,0,0,.02,0h.021a.682.682,0,0,0,.51-.267l3.848-5.09-1.109-.771-3.094,4.1-.262.344-2.012-2.084Z",transform:"translate(15945 -11971.002)",fill:"#2cbe69"})}),Re0=()=>I.jsx("svg",{width:"23",height:"21",viewBox:"0 0 23 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M1.08268 20.9168H18.4202C19.1581 20.9215 19.8744 20.668 20.4451 20.2003C21.0158 19.7325 21.405 19.0798 21.5452 18.3554L22.9046 11.0637C22.9876 10.6175 22.9712 10.1584 22.8565 9.71928C22.7419 9.28013 22.5317 8.87169 22.241 8.52308C21.9404 8.16249 21.5639 7.87265 21.1385 7.67423C20.713 7.47582 20.249 7.3737 19.7796 7.37516H14.8098V3.2085C14.8098 1.06162 12.6087 0.0834961 10.5639 0.0834961C10.2877 0.0834961 10.0227 0.193243 9.82736 0.388593C9.63201 0.583944 9.52227 0.848896 9.52227 1.12516C9.52227 3.11162 9.1681 5.19808 8.7681 5.58766L5.86706 8.41683H1.08268C0.806415 8.41683 0.541463 8.52658 0.346113 8.72193C0.150762 8.91728 0.0410156 9.18223 0.0410156 9.4585V19.8752C0.0410156 20.1514 0.150762 20.4164 0.346113 20.6117C0.541463 20.8071 0.806415 20.9168 1.08268 20.9168ZM7.33268 9.89704L10.2223 7.08454C11.191 6.13975 11.4848 3.84287 11.5764 2.30954C12.141 2.44391 12.7316 2.70537 12.7316 3.2137V8.42204C12.7316 8.6983 12.8414 8.96326 13.0367 9.15861C13.2321 9.35396 13.497 9.4637 13.7733 9.4637H19.7848C19.9481 9.46255 20.1098 9.49741 20.2581 9.56583C20.4065 9.63425 20.5379 9.73453 20.6431 9.85954C20.7395 9.97328 20.8092 10.1072 20.847 10.2514C20.8849 10.3956 20.89 10.5464 20.8619 10.6929L19.5077 17.9845C19.454 18.2307 19.3159 18.4504 19.1173 18.6055C18.9187 18.7606 18.6721 18.8412 18.4202 18.8335H7.33268V9.89704ZM2.12435 10.5002H5.24935V18.8335H2.12435V10.5002Z",fill:"currentColor"})}),je0=()=>I.jsx("svg",{width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M22.7891 0.515478C22.6945 0.370044 22.5652 0.25052 22.4127 0.167753C22.2603 0.0849855 22.0896 0.0415951 21.9161 0.0415194H15.6661C15.4726 0.0414292 15.2828 0.0952797 15.1181 0.197029C14.9535 0.298779 14.8204 0.444402 14.7339 0.617561L11.4995 7.08735L8.27031 0.617561C8.18339 0.443607 8.04951 0.297458 7.88383 0.195654C7.71815 0.0938506 7.52727 0.0404579 7.33281 0.0415194H1.08281C0.909264 0.0414974 0.738458 0.0848381 0.585914 0.167604C0.43337 0.25037 0.303923 0.369938 0.209332 0.515446C0.114742 0.660954 0.058006 0.82779 0.0442792 1.0008C0.0305525 1.1738 0.0602698 1.3475 0.130731 1.5061L4.97761 12.4259C4.47216 13.4314 4.20856 14.5411 4.20781 15.6665C4.20781 17.6004 4.97604 19.4551 6.34349 20.8225C7.71095 22.19 9.56561 22.9582 11.4995 22.9582C13.4334 22.9582 15.288 22.19 16.6555 20.8225C18.0229 19.4551 18.7911 17.6004 18.7911 15.6665C18.7904 14.5411 18.5268 13.4314 18.0214 12.4259L22.8682 1.5061C22.9386 1.34746 22.9682 1.17374 22.9544 1.00074C22.9406 0.827739 22.8837 0.660933 22.7891 0.515478ZM2.6849 2.12485H6.68906L9.90469 8.5561C8.57897 8.85502 7.36335 9.51894 6.39531 10.4728L2.6849 2.12485ZM11.4995 20.8749C10.4694 20.8749 9.46239 20.5694 8.60589 19.9971C7.74938 19.4248 7.08182 18.6114 6.68761 17.6597C6.2934 16.708 6.19026 15.6607 6.39122 14.6504C6.59219 13.6401 7.08823 12.7121 7.81663 11.9837C8.54503 11.2553 9.47307 10.7592 10.4834 10.5583C11.4937 10.3573 12.5409 10.4604 13.4926 10.8546C14.4443 11.2489 15.2578 11.9164 15.8301 12.7729C16.4024 13.6294 16.7078 14.6364 16.7078 15.6665C16.7062 17.0473 16.1569 18.3711 15.1805 19.3475C14.2041 20.3239 12.8803 20.8732 11.4995 20.8749ZM16.6089 10.4728C15.6394 9.5181 14.4218 8.85412 13.0943 8.5561L16.3099 2.12485H20.3141L16.6089 10.4728ZM14.6245 14.929L12.888 16.3613L13.4307 18.7915L11.4995 17.403L9.56823 18.7915L10.1109 16.3613L8.37448 14.929L10.4578 14.6249L11.4995 12.5415L12.5411 14.6249L14.6245 14.929Z",fill:"currentColor"})}),Ie0=()=>I.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M10.5007 0.604004C10.8952 0.604004 11.2559 0.826923 11.4324 1.17982L14.1187 6.55254L20.0256 7.41173C20.4179 7.46879 20.7439 7.74361 20.8664 8.12066C20.9889 8.49771 20.8867 8.91162 20.6029 9.18838L16.3038 13.38L17.2709 19.29C17.3348 19.6805 17.1718 20.0736 16.8503 20.3044C16.5288 20.5352 16.1042 20.5638 15.7546 20.3783L10.5007 17.5905L5.24674 20.3783C4.89713 20.5638 4.47259 20.5352 4.15106 20.3044C3.82954 20.0736 3.66659 19.6805 3.7305 19.29L4.69758 13.38L0.398494 9.18838C0.114634 8.91162 0.0124875 8.49771 0.134994 8.12066C0.257501 7.74361 0.58342 7.46879 0.975744 7.41173L6.88263 6.55254L9.56898 1.17982C9.74544 0.826923 10.1061 0.604004 10.5007 0.604004ZM10.5007 3.97491L8.50269 7.97089C8.35024 8.27579 8.05826 8.4868 7.72093 8.53586L3.36358 9.16966L6.54037 12.267C6.78379 12.5044 6.89608 12.8456 6.84118 13.1811L6.12569 17.5535L10.0124 15.4911C10.3178 15.3291 10.6836 15.3291 10.9889 15.4911L14.8757 17.5535L14.1602 13.1811C14.1053 12.8456 14.2176 12.5044 14.461 12.267L17.6378 9.16966L13.2804 8.53586C12.9431 8.4868 12.6511 8.27579 12.4987 7.97089L10.5007 3.97491Z",fill:"#FF9549"})}),Fe0=()=>I.jsx("svg",{width:"20",height:"15",viewBox:"0 0 20 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M19.5 1.64492C19.2 1.44492 18.8 1.44492 18.5 1.64492L14.1 4.64492V2.54492C14.1 1.44492 13.2 0.544922 12.1 0.544922H2C0.9 0.544922 0 1.44492 0 2.54492V12.5449C0 13.6449 0.9 14.5449 2 14.5449H12C13.1 14.5449 14 13.6449 14 12.5449V10.4449L18.4 13.4449C18.6 13.5449 18.8 13.6449 19 13.6449C19.2 13.6449 19.3 13.6449 19.5 13.5449C19.8 13.3449 20 13.0449 20 12.6449V2.54492C20 2.14492 19.8 1.84492 19.5 1.64492ZM12 12.5449H2V2.54492H12V6.54492V8.54492V12.5449ZM18 10.6449L14 7.94492V7.04492L18 4.34492V10.6449Z",fill:"#4A4A4A"})}),$e0=()=>I.jsx("svg",{width:"22",height:"23",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M21 2.01196H18V1.01196C18 0.746746 17.8946 0.492392 17.7071 0.304856C17.5196 0.11732 17.2652 0.0119629 17 0.0119629H5C4.73478 0.0119629 4.48043 0.11732 4.29289 0.304856C4.10536 0.492392 4 0.746746 4 1.01196V2.01196H1C0.734784 2.01196 0.48043 2.11732 0.292893 2.30486C0.105357 2.49239 0 2.74675 0 3.01196V5.01196C0.00362544 6.20945 0.437419 7.36577 1.22231 8.27016C2.00721 9.17455 3.09095 9.7668 4.276 9.93896C4.64939 11.2333 5.38786 12.3926 6.40301 13.2781C7.41816 14.1636 8.66698 14.7378 10 14.932V17.012H6C5.79004 17.0119 5.58538 17.078 5.41505 17.2007C5.24472 17.3235 5.11735 17.4968 5.051 17.696L4.051 20.696C4.00093 20.8463 3.9873 21.0064 4.01123 21.163C4.03517 21.3196 4.09598 21.4683 4.18866 21.5969C4.28134 21.7254 4.40323 21.83 4.54429 21.9022C4.68536 21.9744 4.84155 22.012 5 22.012H17C17.1584 22.0118 17.3144 21.9741 17.4554 21.9019C17.5963 21.8296 17.7181 21.725 17.8106 21.5965C17.9032 21.468 17.9639 21.3193 17.9878 21.1628C18.0117 21.0062 17.998 20.8462 17.948 20.696L16.948 17.696C16.8817 17.4969 16.7545 17.3238 16.5844 17.201C16.4142 17.0783 16.2098 17.0121 16 17.012H12V14.932C13.333 14.7378 14.5818 14.1636 15.597 13.2781C16.6121 12.3926 17.3506 11.2333 17.724 9.93896C18.9091 9.7668 19.9928 9.17455 20.7777 8.27016C21.5626 7.36577 21.9964 6.20945 22 5.01196V3.01196C22 2.74675 21.8946 2.49239 21.7071 2.30486C21.5196 2.11732 21.2652 2.01196 21 2.01196ZM4 7.84096C3.41549 7.63338 2.90951 7.25006 2.55144 6.74358C2.19338 6.23709 2.00076 5.63224 2 5.01196V4.01196H4V7.84096ZM15.279 19.012L15.612 20.012H6.387L6.721 19.012H15.279ZM16 8.01196C16 9.33805 15.4732 10.6098 14.5355 11.5475C13.5979 12.4852 12.3261 13.012 11 13.012C9.67392 13.012 8.40215 12.4852 7.46447 11.5475C6.52678 10.6098 6 9.33805 6 8.01196V2.01196H16V8.01196ZM20 5.01196C19.9992 5.63224 19.8066 6.23709 19.4486 6.74358C19.0905 7.25006 18.5845 7.63338 18 7.84096V4.01196H20V5.01196ZM9.667 7.67896L8 6.30396L10 6.01196L11 4.01196L12 6.01196L14 6.30396L12.333 7.67896L12.854 10.012L11 8.67896L9.146 10.012L9.667 7.67896Z",fill:"#4A4A4A"})}),Ue0=()=>I.jsx("svg",{className:"icon-squares",width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M0 2.54492C0 1.44035 0.89543 0.544922 2 0.544922H6C7.10457 0.544922 8 1.44035 8 2.54492V6.54492C8 7.64949 7.10457 8.54492 6 8.54492H2C0.895431 8.54492 0 7.64949 0 6.54492V2.54492ZM6 2.54492H2V6.54492H6V2.54492ZM10 2.54492C10 1.44035 10.8954 0.544922 12 0.544922H16C17.1046 0.544922 18 1.44035 18 2.54492V6.54492C18 7.64949 17.1046 8.54492 16 8.54492H12C10.8954 8.54492 10 7.64949 10 6.54492V2.54492ZM16 2.54492H12V6.54492H16V2.54492ZM0 12.5449C0 11.4404 0.89543 10.5449 2 10.5449H6C7.10457 10.5449 8 11.4404 8 12.5449V16.5449C8 17.6495 7.10457 18.5449 6 18.5449H2C0.895431 18.5449 0 17.6495 0 16.5449V12.5449ZM6 12.5449H2V16.5449H6V12.5449ZM10 12.5449C10 11.4404 10.8954 10.5449 12 10.5449H16C17.1046 10.5449 18 11.4404 18 12.5449V16.5449C18 17.6495 17.1046 18.5449 16 18.5449H12C10.8954 18.5449 10 17.6495 10 16.5449V12.5449ZM16 12.5449H12V16.5449H16V12.5449Z",fill:"#4A4A4A"})}),We0=()=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10.918",height:"6.159",viewBox:"0 0 10.918 6.159",children:I.jsx("g",{id:"arw",transform:"translate(0.5 5.659) rotate(-90)",children:I.jsxs("g",{id:"Group_9","data-name":"Group 9",transform:"translate(-0.5 -0.5)",children:[I.jsx("path",{id:"Path_16","data-name":"Path 16",d:"M117.86,4.89,122.646.117a.4.4,0,1,1,.566.568l-4.5,4.489,4.5,4.488a.4.4,0,0,1-.567.568L117.86,5.458a.4.4,0,0,1,0-.568Z",transform:"translate(-117.457 0.285)",fill:"#333"}),I.jsx("path",{id:"Path_16_-_Outline","data-name":"Path 16 - Outline",d:"M122.715-.5a.682.682,0,0,1,.486.2.682.682,0,0,1,.2.486.682.682,0,0,1-.2.485l-4.3,4.286,4.3,4.286a.687.687,0,0,1-.97.972l-4.786-4.773a.69.69,0,0,1-.2-.486.682.682,0,0,1,.2-.486L122.23-.3A.682.682,0,0,1,122.715-.5Zm0,10.347a.116.116,0,0,0,.082-.2l-4.7-4.691L122.8.268A.116.116,0,0,0,122.633.1l-4.786,4.773a.115.115,0,0,0,0,.163l4.786,4.773A.115.115,0,0,0,122.715,9.847Z",transform:"translate(-117.242 0.5)",fill:"#333"})]})})}),qe0=({width:t="20px",height:e="21px",color:a="#4A4A4A"})=>I.jsx("svg",{width:t,height:e,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M10 2.54492C5.58172 2.54492 2 6.12664 2 10.5449C2 14.9632 5.58172 18.5449 10 18.5449C14.4183 18.5449 18 14.9632 18 10.5449C18 6.12664 14.4183 2.54492 10 2.54492ZM0 10.5449C0 5.02207 4.47715 0.544922 10 0.544922C15.5228 0.544922 20 5.02207 20 10.5449C20 16.0678 15.5228 20.5449 10 20.5449C4.47715 20.5449 0 16.0678 0 10.5449ZM10 4.54492C10.5523 4.54492 11 4.99264 11 5.54492V10.1307L13.7071 12.8378C14.0976 13.2283 14.0976 13.8615 13.7071 14.252C13.3166 14.6426 12.6834 14.6426 12.2929 14.252L9.29289 11.252C9.10536 11.0645 9 10.8101 9 10.5449V5.54492C9 4.99264 9.44771 4.54492 10 4.54492Z",fill:a})}),Ge0=()=>I.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M11 0C8.82441 0 6.69767 0.645139 4.88873 1.85383C3.07979 3.06253 1.66989 4.78049 0.83733 6.79048C0.00476617 8.80047 -0.213071 11.0122 0.211367 13.146C0.635804 15.2798 1.68345 17.2398 3.22183 18.7782C4.76021 20.3166 6.72022 21.3642 8.85401 21.7886C10.9878 22.2131 13.1995 21.9952 15.2095 21.1627C17.2195 20.3301 18.9375 18.9202 20.1462 17.1113C21.3549 15.3023 22 13.1756 22 11C21.9966 8.08367 20.8365 5.28778 18.7744 3.22563C16.7122 1.16347 13.9163 0.00344047 11 0ZM11 20C9.13845 19.9567 7.32925 19.3753 5.791 18.326C6.44749 17.5947 7.2506 17.0098 8.14808 16.6095C9.04555 16.2091 10.0173 16.0021 11 16.0021C11.9827 16.0021 12.9545 16.2091 13.8519 16.6095C14.7494 17.0098 15.5525 17.5947 16.209 18.326C14.6836 19.4012 12.8663 19.9853 11 20ZM17.694 16.994C16.8517 16.052 15.8201 15.2985 14.6666 14.7825C13.513 14.2666 12.2636 13.9999 11 13.9999C9.73637 13.9999 8.48696 14.2666 7.33345 14.7825C6.17995 15.2985 5.14832 16.052 4.30601 16.994C3.14348 15.7004 2.38066 14.0977 2.10981 12.3798C1.83896 10.6618 2.07168 8.90213 2.77983 7.31364C3.48797 5.72514 4.64121 4.37585 6.10004 3.42896C7.55887 2.48208 9.26081 1.97816 11 1.97816C12.7392 1.97816 14.4411 2.48208 15.9 3.42896C17.3588 4.37585 18.512 5.72514 19.2202 7.31364C19.9283 8.90213 20.161 10.6618 19.8902 12.3798C19.6193 14.0977 18.8565 15.7004 17.694 16.994ZM11 5C10.2089 5 9.43552 5.2346 8.77772 5.67412C8.11993 6.11365 7.60724 6.73836 7.30449 7.46927C7.00174 8.20017 6.92252 9.00444 7.07686 9.78036C7.2312 10.5563 7.61217 11.269 8.17158 11.8284C8.73099 12.3878 9.44372 12.7688 10.2196 12.9231C10.9956 13.0775 11.7998 12.9983 12.5307 12.6955C13.2616 12.3928 13.8864 11.8801 14.3259 11.2223C14.7654 10.5645 15 9.79113 15 9C15 7.93913 14.5786 6.92172 13.8284 6.17157C13.0783 5.42143 12.0609 5 11 5ZM11 11C10.6044 11 10.2178 10.8827 9.88886 10.6629C9.55997 10.4432 9.30362 10.1308 9.15225 9.76537C9.00087 9.39991 8.96126 8.99778 9.03843 8.60982C9.1156 8.22186 9.30609 7.86549 9.58579 7.58579C9.8655 7.30608 10.2219 7.1156 10.6098 7.03843C10.9978 6.96126 11.3999 7.00087 11.7654 7.15224C12.1308 7.30362 12.4432 7.55996 12.6629 7.88886C12.8827 8.21776 13 8.60444 13 9C13 9.53043 12.7893 10.0391 12.4142 10.4142C12.0391 10.7893 11.5304 11 11 11Z",fill:"currentColor"})}),Ke0=({color:t="#fff"})=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"5.921",height:"10.387",viewBox:"0 0 5.921 10.387",children:I.jsx("g",{id:"arrow",transform:"translate(-97.139 0)",children:I.jsx("path",{id:"Path_27","data-name":"Path 27",d:"M102.846,5.707,98.38,10.173a.727.727,0,0,1-1.029-1.029L101.3,5.193,97.352,1.241A.727.727,0,0,1,98.38.213l4.466,4.466a.727.727,0,0,1,0,1.028Z",transform:"translate(0 0)",fill:t})})}),x$=({mode:t})=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23.656",height:"23.634",viewBox:"0 0 23.656 23.634",children:I.jsxs("g",{id:"layer1",transform:"translate(33.999 -246.006)",children:[I.jsx("path",{id:"rect40272",d:"M-31.781,255.006a2.248,2.248,0,0,0-2.186,2.62l1.921,11.087a2.837,2.837,0,0,0,2.8,2.331H-15.1a2.852,2.852,0,0,0,2.794-2.32l0-.012,1.919-11.075v0a2.239,2.239,0,0,0-2.183-2.629Zm0,1.688h19.217a.517.517,0,0,1,.524.631l0,.012-1.921,11.08a1.146,1.146,0,0,1-1.134.938H-29.249a1.138,1.138,0,0,1-1.134-.93L-32.3,257.337a.52.52,0,0,1,.523-.643Z",transform:"translate(0 -1.403)",fill:t==="light"?"#333":"white",fillRule:"evenodd"}),I.jsx("path",{id:"path41727",d:"M-25.419,246.062a.844.844,0,0,0-.47.445l-3.376,7.6a.844.844,0,0,0,.429,1.114.844.844,0,0,0,1.114-.429l3.376-7.6a.844.844,0,0,0-.429-1.114.844.844,0,0,0-.645-.016Z",transform:"translate(-0.727 0)",fill:t==="light"?"#333":"white",fillRule:"evenodd"}),I.jsx("path",{id:"path41729",d:"M-15.491,246.062a.844.844,0,0,0-.645.016.844.844,0,0,0-.429,1.114l3.376,7.6a.844.844,0,0,0,1.113.429.844.844,0,0,0,.429-1.114l-3.376-7.6a.844.844,0,0,0-.468-.445Z",transform:"translate(-2.707 0)",fill:t==="light"?"#333":"white",fillRule:"evenodd"})]})}),FZ2=({mode:t})=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",children:I.jsxs("g",{id:"_103571_globe_icon","data-name":"103571_globe_icon",transform:"translate(0 0.068)",children:[I.jsx("g",{id:"background",transform:"translate(0 -0.068)",children:I.jsx("rect",{id:"Rectangle_4458","data-name":"Rectangle 4458",width:"14",height:"14",fill:"none"})}),I.jsx("g",{id:"earth",transform:"translate(0.223 0.155)",children:I.jsx("path",{id:"Path_32","data-name":"Path 32",d:"M6.776,0a6.777,6.777,0,1,0,6.777,6.776A6.778,6.778,0,0,0,6.776,0ZM.869,7.2H2.982a9.613,9.613,0,0,0,.3,2.117H1.429A5.908,5.908,0,0,1,.869,7.2ZM7.2,3.389V.937A6.128,6.128,0,0,1,9.078,3.39H7.2Zm2.189.847a8.731,8.731,0,0,1,.337,2.118H7.2V4.236ZM6.161,1.086c.074-.061.136-.109.192-.151V3.389H4.474A6.744,6.744,0,0,1,5.212,2.1,5.825,5.825,0,0,1,6.161,1.086Zm.192,3.15V6.354H3.829A8.629,8.629,0,0,1,4.17,4.236ZM2.982,6.354H.869a5.9,5.9,0,0,1,.559-2.118H3.287A9.624,9.624,0,0,0,2.982,6.354Zm.845.847H6.353V9.318H4.164A8.724,8.724,0,0,1,3.827,7.2Zm2.527,2.965v2.452a6.124,6.124,0,0,1-1.878-2.452Zm1.039,2.3c-.073.061-.136.109-.192.151V10.166H9.08a6.726,6.726,0,0,1-.738,1.284A5.819,5.819,0,0,1,7.392,12.468ZM7.2,9.318V7.2H9.724a8.65,8.65,0,0,1-.341,2.117ZM10.572,7.2h2.112a5.9,5.9,0,0,1-.559,2.117H10.267A9.664,9.664,0,0,0,10.572,7.2Zm0-.847a9.62,9.62,0,0,0-.305-2.118h1.859a5.894,5.894,0,0,1,.559,2.118Zm1.064-2.964H9.989a7.522,7.522,0,0,0-1.32-2.226A5.939,5.939,0,0,1,11.636,3.389ZM4.884,1.164A7.533,7.533,0,0,0,3.565,3.389H1.917A5.944,5.944,0,0,1,4.884,1.164Zm-2.965,9H3.565a7.521,7.521,0,0,0,1.318,2.224A5.939,5.939,0,0,1,1.919,10.166ZM8.67,12.389a7.53,7.53,0,0,0,1.319-2.224h1.646A5.938,5.938,0,0,1,8.67,12.389Z",fill:t==="light"?"#333":"white"})})]})}),V$=({mode:t})=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25.311",height:"26.784",viewBox:"0 0 25.311 26.784",children:I.jsx("g",{id:"_26._Notification","data-name":"26. Notification",transform:"matrix(0.978, 0.208, -0.208, 0.978, 3.787, -0.208)",children:I.jsx("path",{id:"Path_2","data-name":"Path 2",d:"M21.131,14.008a3.518,3.518,0,0,1-1.037-2.5V8.592a8.592,8.592,0,1,0-17.185,0V11.5a3.518,3.518,0,0,1-1.037,2.5A2.98,2.98,0,0,0,3.98,19.094H6.824a4.774,4.774,0,0,0,9.356,0h2.845a2.98,2.98,0,0,0,2.107-5.087ZM11.5,21a2.864,2.864,0,0,1-2.688-1.909H14.19A2.864,2.864,0,0,1,11.5,21Zm7.522-3.819H3.98a1.07,1.07,0,0,1-.757-1.827,5.415,5.415,0,0,0,1.6-3.853V8.592a6.683,6.683,0,1,1,13.366,0V11.5a5.415,5.415,0,0,0,1.6,3.853,1.07,1.07,0,0,1-.757,1.827Z",transform:"translate(0 0)",fill:t==="light"?"#333":"white"})})}),$Z2=()=>I.jsxs("svg",{id:"back-arw",xmlns:"http://www.w3.org/2000/svg",width:"19.407",height:"17",viewBox:"0 0 19.407 17",children:[I.jsx("g",{id:"Group_30","data-name":"Group 30",transform:"translate(9.675 0)",children:I.jsx("g",{id:"Group_29","data-name":"Group 29",transform:"translate(0 0)",children:I.jsx("path",{id:"Path_19","data-name":"Path 19",d:"M0,22.959l1.649-1.778,7.328,6.8a2.317,2.317,0,0,1-.007,3.429L1.659,38.181.01,36.4l7.246-6.713Z",transform:"translate(0 -21.181)",fill:"#ee312f"})})}),I.jsx("g",{id:"Group_32","data-name":"Group 32",transform:"translate(0 7.285)",children:I.jsx("g",{id:"Group_31","data-name":"Group 31",transform:"translate(0 0)",children:I.jsx("rect",{id:"Rectangle_4181","data-name":"Rectangle 4181",width:"16.977",height:"2.425",fill:"#ee312f"})})})]}),C$=({mode:t})=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"31.5",height:"31.5",viewBox:"0 0 31.5 31.5",className:"profileIcon",children:I.jsx("g",{id:"vuesax_linear_profile-circle","data-name":"vuesax/linear/profile-circle",transform:"translate(-492 -252)",children:I.jsxs("g",{id:"profile-circle",transform:"translate(492 252)",children:[I.jsx("path",{id:"Vector",d:"M4.462,9.6a1,1,0,0,1-.137-.009H4.31l-.038,0a1,1,0,0,1-.158.007A5.3,5.3,0,1,1,9.61,4.3s0,0,0,.006A5.292,5.292,0,0,1,4.5,9.6ZM4.3,1a3.3,3.3,0,0,0-.186,6.595,2.317,2.317,0,0,1,.375,0A3.3,3.3,0,0,0,4.3,1Z",transform:"translate(11.445 8.177)",fill:t==="light"?"#333":"white"}),I.jsx("path",{id:"Vector-2","data-name":"Vector",d:"M8.846,9.617a14.066,14.066,0,0,1-9.522-3.7,1,1,0,0,1-.319-.843A5.82,5.82,0,0,1,1.765.962l0,0A12.92,12.92,0,0,1,8.856-1,12.82,12.82,0,0,1,15.925.96a5.821,5.821,0,0,1,2.761,4.112,1,1,0,0,1-.319.843A14.066,14.066,0,0,1,8.846,9.617ZM1.092,4.8A12.067,12.067,0,0,0,8.846,7.617,12.067,12.067,0,0,0,16.6,4.8a4.234,4.234,0,0,0-1.79-2.184A10.811,10.811,0,0,0,8.856,1,10.913,10.913,0,0,0,2.879,2.623,4.233,4.233,0,0,0,1.092,4.8Z",transform:"translate(6.904 20.258)",fill:t==="light"?"#333":"white"}),I.jsx("path",{id:"Vector-3","data-name":"Vector",d:"M13.125-1a14.125,14.125,0,0,1,9.988,24.113A14.125,14.125,0,1,1,3.137,3.137,14.033,14.033,0,0,1,13.125-1Zm0,26.25A12.125,12.125,0,0,0,21.7,4.551,12.125,12.125,0,1,0,4.551,21.7,12.046,12.046,0,0,0,13.125,25.25Z",transform:"translate(2.625 2.625)",fill:t==="light"?"#333":"white"}),I.jsx("path",{id:"Vector-4","data-name":"Vector",d:"M0,0H31.5V31.5H0Z",transform:"translate(31.5 31.5) rotate(180)",fill:"none",opacity:"0"})]})})}),Ye0=({color:t="white"})=>I.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M0.699143 0.462083C1.08967 0.0715584 1.72283 0.0715584 2.11336 0.462083L7.40625 5.75498L12.6991 0.462083C13.0897 0.0715584 13.7228 0.0715584 14.1134 0.462083C14.5039 0.852607 14.5039 1.48577 14.1134 1.8763L8.82046 7.16919L14.1134 12.4621C14.5039 12.8526 14.5039 13.4858 14.1134 13.8763C13.7228 14.2668 13.0897 14.2668 12.6991 13.8763L7.40625 8.5834L2.11336 13.8763C1.72283 14.2668 1.08967 14.2668 0.699143 13.8763C0.308619 13.4858 0.308619 12.8526 0.699143 12.4621L5.99204 7.16919L0.699143 1.8763C0.308619 1.48577 0.308619 0.852607 0.699143 0.462083Z",fill:t||"white"})}),Ze0=()=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13.757",height:"17.157",viewBox:"0 0 13.757 17.157",children:I.jsx("path",{id:"Union_89","data-name":"Union 89",d:"M-469.691,8979.157a2.311,2.311,0,0,1-2.31-2.31V8964.31a2.313,2.313,0,0,1,2.31-2.31h7.2l4.243,4.743v10.1a2.309,2.309,0,0,1-2.308,2.31Zm-1.093-14.848v12.538a1.094,1.094,0,0,0,1.093,1.093h9.14a1.092,1.092,0,0,0,1.091-1.093v-9.262h-3.908v-4.369h-6.323A1.1,1.1,0,0,0-470.784,8964.31Zm8.633,2.06h1.938l-1.938-2.168Zm-.356,8.354V8969.6h2.639v1.039H-461.6v1.075h1.456v1.012H-461.6v2Zm-4.122,0V8969.6h1.568c1.217,0,2.062,1.053,2.062,2.578,0,1.5-.825,2.549-2.006,2.549Zm.908-1.039h.626c.717,0,1.138-.561,1.138-1.51,0-.971-.444-1.539-1.194-1.539h-.57Zm-4.43,1.039V8969.6h1.681c.845,0,1.411.688,1.411,1.713s-.566,1.71-1.411,1.71h-.773v1.7Zm.908-2.7h.57c.437,0,.656-.236.656-.712s-.219-.714-.656-.714h-.57Z",transform:"translate(472.001 -8962)",fill:"#ee312f"})}),Qe0=()=>I.jsx("svg",{viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M1.5013 19.1668H9.83464C10.0556 19.1668 10.2676 19.079 10.4239 18.9228C10.5802 18.7665 10.668 18.5545 10.668 18.3335V8.3335C10.668 8.11248 10.5802 7.90052 10.4239 7.74424C10.2676 7.58796 10.0556 7.50016 9.83464 7.50016H1.5013C1.28029 7.50016 1.06833 7.58796 0.912046 7.74424C0.755766 7.90052 0.667969 8.11248 0.667969 8.3335V18.3335C0.667969 18.5545 0.755766 18.7665 0.912046 18.9228C1.06833 19.079 1.28029 19.1668 1.5013 19.1668ZM2.33464 9.16683H9.0013V17.5002H2.33464V9.16683ZM12.3346 15.0002V5.8335H4.83464C4.61362 5.8335 4.40166 5.7457 4.24538 5.58942C4.0891 5.43314 4.0013 5.22118 4.0013 5.00016C4.0013 4.77915 4.0891 4.56719 4.24538 4.41091C4.40166 4.25463 4.61362 4.16683 4.83464 4.16683H13.168C13.389 4.16683 13.6009 4.25463 13.7572 4.41091C13.9135 4.56719 14.0013 4.77915 14.0013 5.00016V15.0002C14.0013 15.2212 13.9135 15.4331 13.7572 15.5894C13.6009 15.7457 13.389 15.8335 13.168 15.8335C12.947 15.8335 12.735 15.7457 12.5787 15.5894C12.4224 15.4331 12.3346 15.2212 12.3346 15.0002ZM17.3346 1.66683V12.5002C17.3346 12.7212 17.2468 12.9331 17.0906 13.0894C16.9343 13.2457 16.7223 13.3335 16.5013 13.3335C16.2803 13.3335 16.0683 13.2457 15.912 13.0894C15.7558 12.9331 15.668 12.7212 15.668 12.5002V2.50016H8.16797C7.94696 2.50016 7.73499 2.41237 7.57871 2.25609C7.42243 2.0998 7.33464 1.88784 7.33464 1.66683C7.33464 1.44582 7.42243 1.23385 7.57871 1.07757C7.73499 0.921293 7.94696 0.833496 8.16797 0.833496H16.5013C16.7223 0.833496 16.9343 0.921293 17.0906 1.07757C17.2468 1.23385 17.3346 1.44582 17.3346 1.66683Z"})}),Xe0=()=>I.jsxs("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",fill:"none",x:"0px",y:"0px",viewBox:"0 0 357.18 357.18",children:[I.jsx("g",{children:I.jsx("g",{children:I.jsx("path",{d:`M123.292,96.7c-0.128-0.196-0.112-0.408-0.284-0.58L65.456,38.564l31.268,0.048c7.396,0,13.82-6.42,13.816-13.812 l0.004-10.524c0-7.648-6.22-13.868-13.864-13.868H15.04C11.264,0.408,7.7,2,5.072,4.68c-2.608,2.596-4.164,6.088-4.164,9.86V97.9 c-0.004,7.64,6.216,13.86,13.86,13.86l10.528,0.008c7.636,0,13.848-6.212,13.852-13.852l-0.02-31.32L89,116.472 c0.028,0.024,0.052,0.048,0.072,0.072l6.428,6.42c5.404,5.408,14.104,5.284,19.512-0.124l7.44-7.436 @@ -8983,7 +8983,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho c-4.592,5.444-4.436,13.704,0.68,18.82l7.452,7.452c5.4,5.4,14.412,5.276,19.82-0.132l6.42-6.42 c0.032-0.024,0.048-0.048,0.072-0.072l49.728-49.724l-0.032,31.296c0,3.692,1.416,7.14,4.04,9.756 c2.624,2.636,6.108,4.08,9.788,4.072l10.532,0.008c7.648,0,13.864-6.22,13.864-13.868L356.348,14.576z`})})}),I.jsx("g",{children:I.jsx("g",{children:I.jsx("path",{d:`M205.732,151.704c-15.004-14.992-39.396-14.992-54.392,0c-14.996,14.992-14.996,39.392,0.004,54.392 - c14.992,14.992,39.392,14.992,54.388,0C220.724,191.104,220.724,166.696,205.732,151.704z`})})})]}),Qe0=()=>I.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[I.jsx("path",{d:"M10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2ZM0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10Z",fill:"#4A4A4A"}),I.jsx("path",{d:"M10 12C9.44771 12 9 11.5523 9 11V10C9 9.44771 9.44772 9 10 9C10.5523 9 11 9.44771 11 10V11C11 11.5523 10.5523 12 10 12Z",fill:"#4A4A4A"}),I.jsx("path",{d:"M8.5 14.5C8.5 13.6716 9.17157 13 10 13C10.8284 13 11.5 13.6716 11.5 14.5C11.5 15.3284 10.8284 16 10 16C9.17157 16 8.5 15.3284 8.5 14.5Z",fill:"#4A4A4A"}),I.jsx("path",{d:"M10.3899 5.81137C9.4329 5.7658 8.63039 6.3004 8.48639 7.1644C8.3956 7.70917 7.88037 8.07719 7.3356 7.9864C6.79083 7.8956 6.42281 7.38037 6.51361 6.8356C6.86961 4.69961 8.8171 3.73421 10.4851 3.81363C11.3395 3.85432 12.2176 4.16099 12.8937 4.79278C13.5866 5.44027 14 6.36777 14 7.5C14 8.79131 13.4919 9.74892 12.6172 10.3321C11.8141 10.8675 10.8295 11 10 11C9.44772 11 9 10.5523 9 10C9 9.44771 9.44772 9 10 9C10.6705 9 11.1859 8.88252 11.5078 8.66795C11.7581 8.50109 12 8.2087 12 7.5C12 6.88224 11.7884 6.49723 11.5282 6.2541C11.2512 5.99526 10.848 5.83318 10.3899 5.81137Z",fill:"#4A4A4A"})]}),Xe0=()=>I.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M18.73 15.663C19.2249 15.0504 19.4964 14.2875 19.5 13.5C19.5 12.5717 19.1313 11.6815 18.4749 11.0251C17.8185 10.3687 16.9283 10 16 10C15.0717 10 14.1815 10.3687 13.5251 11.0251C12.8687 11.6815 12.5 12.5717 12.5 13.5C12.5036 14.2875 12.7751 15.0504 13.27 15.663C12.3527 16.1338 11.5713 16.8317 11 17.69C10.4287 16.8317 9.64727 16.1338 8.73 15.663C9.22488 15.0504 9.49645 14.2875 9.5 13.5C9.5 12.5717 9.13125 11.6815 8.47487 11.0251C7.8185 10.3687 6.92826 10 6 10C5.07174 10 4.1815 10.3687 3.52513 11.0251C2.86875 11.6815 2.5 12.5717 2.5 13.5C2.50355 14.2875 2.77512 15.0504 3.27 15.663C2.28657 16.1655 1.4609 16.9296 0.883935 17.8713C0.30697 18.813 0.00109519 19.8956 0 21C0 21.2652 0.105357 21.5196 0.292893 21.7071C0.48043 21.8946 0.734784 22 1 22H21C21.2652 22 21.5196 21.8946 21.7071 21.7071C21.8946 21.5196 22 21.2652 22 21C21.9989 19.8956 21.693 18.813 21.1161 17.8713C20.5391 16.9296 19.7134 16.1655 18.73 15.663ZM6 12C6.29667 12 6.58668 12.088 6.83336 12.2528C7.08003 12.4176 7.27229 12.6519 7.38582 12.926C7.49935 13.2001 7.52906 13.5017 7.47118 13.7926C7.4133 14.0836 7.27044 14.3509 7.06066 14.5607C6.85088 14.7704 6.58361 14.9133 6.29264 14.9712C6.00166 15.0291 5.70006 14.9994 5.42597 14.8858C5.15189 14.7723 4.91762 14.58 4.7528 14.3334C4.58797 14.0867 4.5 13.7967 4.5 13.5C4.5 13.1022 4.65804 12.7206 4.93934 12.4393C5.22064 12.158 5.60218 12 6 12ZM2.127 20C2.34868 19.1414 2.84942 18.3807 3.55048 17.8377C4.25155 17.2946 5.11321 16.9999 6 16.9999C6.88679 16.9999 7.74845 17.2946 8.44952 17.8377C9.15058 18.3807 9.65132 19.1414 9.873 20H2.127ZM16 12C16.2967 12 16.5867 12.088 16.8334 12.2528C17.08 12.4176 17.2723 12.6519 17.3858 12.926C17.4993 13.2001 17.5291 13.5017 17.4712 13.7926C17.4133 14.0836 17.2704 14.3509 17.0607 14.5607C16.8509 14.7704 16.5836 14.9133 16.2926 14.9712C16.0017 15.0291 15.7001 14.9994 15.426 14.8858C15.1519 14.7723 14.9176 14.58 14.7528 14.3334C14.588 14.0867 14.5 13.7967 14.5 13.5C14.5 13.1022 14.658 12.7206 14.9393 12.4393C15.2206 12.158 15.6022 12 16 12ZM12.127 20C12.3487 19.1414 12.8494 18.3807 13.5505 17.8377C14.2516 17.2946 15.1132 16.9999 16 16.9999C16.8868 16.9999 17.7484 17.2946 18.4495 17.8377C19.1506 18.3807 19.6513 19.1414 19.873 20H12.127ZM10 9V6H7C6.73478 6 6.48043 5.89464 6.29289 5.70711C6.10536 5.51957 6 5.26522 6 5C6 4.73478 6.10536 4.48043 6.29289 4.29289C6.48043 4.10536 6.73478 4 7 4H10V1C10 0.734784 10.1054 0.48043 10.2929 0.292893C10.4804 0.105357 10.7348 0 11 0C11.2652 0 11.5196 0.105357 11.7071 0.292893C11.8946 0.48043 12 0.734784 12 1V4H15C15.2652 4 15.5196 4.10536 15.7071 4.29289C15.8946 4.48043 16 4.73478 16 5C16 5.26522 15.8946 5.51957 15.7071 5.70711C15.5196 5.89464 15.2652 6 15 6H12V9C12 9.26522 11.8946 9.51957 11.7071 9.70711C11.5196 9.89464 11.2652 10 11 10C10.7348 10 10.4804 9.89464 10.2929 9.70711C10.1054 9.51957 10 9.26522 10 9Z",fill:"#4A4A4A"})}),Je0=()=>I.jsx("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M12.7852 2.24658C8.38516 2.24658 4.78516 5.84658 4.78516 10.2466C4.78516 15.6466 11.7852 21.7466 12.0852 22.0466C12.2852 22.1466 12.5852 22.2466 12.7852 22.2466C12.9852 22.2466 13.2852 22.1466 13.4852 22.0466C13.7852 21.7466 20.7852 15.6466 20.7852 10.2466C20.7852 5.84658 17.1852 2.24658 12.7852 2.24658ZM12.7852 19.9466C10.6852 17.9466 6.78516 13.6466 6.78516 10.2466C6.78516 6.94658 9.48516 4.24658 12.7852 4.24658C16.0852 4.24658 18.7852 6.94658 18.7852 10.2466C18.7852 13.5466 14.8852 17.9466 12.7852 19.9466ZM12.7852 6.24658C10.5852 6.24658 8.78516 8.04658 8.78516 10.2466C8.78516 12.4466 10.5852 14.2466 12.7852 14.2466C14.9852 14.2466 16.7852 12.4466 16.7852 10.2466C16.7852 8.04658 14.9852 6.24658 12.7852 6.24658ZM12.7852 12.2466C11.6852 12.2466 10.7852 11.3466 10.7852 10.2466C10.7852 9.14658 11.6852 8.24658 12.7852 8.24658C13.8852 8.24658 14.7852 9.14658 14.7852 10.2466C14.7852 11.3466 13.8852 12.2466 12.7852 12.2466Z",fill:"currentColor"})}),t40=()=>I.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M7.07805 0.539475C7.46857 0.148951 8.10174 0.148951 8.49226 0.539475L14.4923 6.53948C14.8828 6.93 14.8828 7.56317 14.4923 7.95369C14.1017 8.34421 13.4686 8.34421 13.078 7.95369L7.78516 2.6608L2.49226 7.95369C2.10174 8.34421 1.46857 8.34421 1.07805 7.95369C0.687525 7.56316 0.687525 6.93 1.07805 6.53947L7.07805 0.539475ZM7.78516 8.6608L2.49226 13.9537C2.10174 14.3442 1.46857 14.3442 1.07805 13.9537C0.687525 13.5632 0.687525 12.93 1.07805 12.5395L7.07805 6.53947C7.46857 6.14895 8.10174 6.14895 8.49226 6.53948L14.4923 12.5395C14.8828 12.93 14.8828 13.5632 14.4923 13.9537C14.1017 14.3442 13.4686 14.3442 13.078 13.9537L7.78516 8.6608Z",fill:"#4A4A4A"})}),e40=()=>I.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M1.07805 0.539475C1.46857 0.148951 2.10174 0.148951 2.49226 0.539475L7.78516 5.83237L13.0781 0.539477C13.4686 0.148953 14.1017 0.148953 14.4923 0.539477C14.8828 0.930002 14.8828 1.56317 14.4923 1.95369L8.49226 7.95369C8.10174 8.34421 7.46857 8.34421 7.07805 7.95369L1.07805 1.95369C0.687526 1.56316 0.687526 0.929999 1.07805 0.539475ZM1.07805 6.53947C1.46857 6.14895 2.10174 6.14895 2.49226 6.53947L7.78516 11.8324L13.078 6.53948C13.4686 6.14895 14.1017 6.14895 14.4923 6.53948C14.8828 6.93 14.8828 7.56317 14.4923 7.95369L8.49226 13.9537C8.10174 14.3442 7.46857 14.3442 7.07805 13.9537L1.07805 7.95369C0.687525 7.56316 0.687525 6.93 1.07805 6.53947Z",fill:"#4A4A4A"})}),a40=()=>I.jsx("svg",{width:"19",height:"21",viewBox:"0 0 19 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M9.78516 2.24658C7.57602 2.24658 5.78516 4.03744 5.78516 6.24658C5.78516 8.45572 7.57602 10.2466 9.78516 10.2466C11.9943 10.2466 13.7852 8.45572 13.7852 6.24658C13.7852 4.03744 11.9943 2.24658 9.78516 2.24658ZM3.78516 6.24658C3.78516 2.93287 6.47145 0.246582 9.78516 0.246582C13.0989 0.246582 15.7852 2.93287 15.7852 6.24658C15.7852 9.56029 13.0989 12.2466 9.78516 12.2466C6.47145 12.2466 3.78516 9.56029 3.78516 6.24658ZM5.78516 16.2466C4.1283 16.2466 2.78516 17.5897 2.78516 19.2466C2.78516 19.7989 2.33744 20.2466 1.78516 20.2466C1.23287 20.2466 0.785156 19.7989 0.785156 19.2466C0.785156 16.4852 3.02373 14.2466 5.78516 14.2466H13.7852C16.5466 14.2466 18.7852 16.4852 18.7852 19.2466C18.7852 19.7989 18.3374 20.2466 17.7852 20.2466C17.2329 20.2466 16.7852 19.7989 16.7852 19.2466C16.7852 17.5897 15.442 16.2466 13.7852 16.2466H5.78516Z",fill:"#4A4A4A"})}),n40=()=>I.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M8.78516 2.24658C6.57602 2.24658 4.78516 4.03744 4.78516 6.24658C4.78516 8.45572 6.57602 10.2466 8.78516 10.2466C10.9943 10.2466 12.7852 8.45572 12.7852 6.24658C12.7852 4.03744 10.9943 2.24658 8.78516 2.24658ZM2.78516 6.24658C2.78516 2.93287 5.47145 0.246582 8.78516 0.246582C12.0989 0.246582 14.7852 2.93287 14.7852 6.24658C14.7852 9.56029 12.0989 12.2466 8.78516 12.2466C5.47145 12.2466 2.78516 9.56029 2.78516 6.24658ZM15.6136 2.00394C16.0041 1.61342 16.6373 1.61342 17.0278 2.00394C19.3709 4.34709 19.3709 8.14608 17.0278 10.4892C16.6373 10.8797 16.0041 10.8797 15.6136 10.4892C15.2231 10.0987 15.2231 9.46553 15.6136 9.07501C17.1757 7.51291 17.1757 4.98025 15.6136 3.41815C15.2231 3.02763 15.2231 2.39447 15.6136 2.00394ZM16.315 15.004C16.449 14.4683 16.9919 14.1425 17.5277 14.2764C18.8556 14.6084 19.6962 15.4575 20.1796 16.4244C20.6474 17.3599 20.7852 18.4037 20.7852 19.2466C20.7852 19.7989 20.3374 20.2466 19.7852 20.2466C19.2329 20.2466 18.7852 19.7989 18.7852 19.2466C18.7852 18.5895 18.6729 17.8832 18.3907 17.3188C18.1242 16.7857 17.7147 16.3847 17.0426 16.2167C16.5068 16.0828 16.1811 15.5398 16.315 15.004ZM5.28516 16.2466C4.0257 16.2466 2.78516 17.4601 2.78516 19.2466C2.78516 19.7989 2.33744 20.2466 1.78516 20.2466C1.23287 20.2466 0.785156 19.7989 0.785156 19.2466C0.785156 16.6148 2.67862 14.2466 5.28516 14.2466H12.2852C14.8917 14.2466 16.7852 16.6148 16.7852 19.2466C16.7852 19.7989 16.3374 20.2466 15.7852 20.2466C15.2329 20.2466 14.7852 19.7989 14.7852 19.2466C14.7852 17.4601 13.5446 16.2466 12.2852 16.2466H5.28516Z",fill:"#4A4A4A"})}),r40=()=>I.jsxs("svg",{width:"21",height:"15",viewBox:"0 0 21 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[I.jsx("path",{d:"M13.7852 7.24658C13.7852 8.90344 12.442 10.2466 10.7852 10.2466C9.1283 10.2466 7.78516 8.90344 7.78516 7.24658C7.78516 5.58973 9.1283 4.24658 10.7852 4.24658C12.442 4.24658 13.7852 5.58973 13.7852 7.24658Z",fill:"#4A4A4A"}),I.jsx("path",{d:"M20.6796 6.79937C18.5214 2.48293 14.6883 0.246582 10.7852 0.246582C6.88203 0.246582 3.04895 2.48293 0.890729 6.79937C0.749965 7.0809 0.749965 7.41227 0.890729 7.6938C3.04895 12.0102 6.88203 14.2466 10.7852 14.2466C14.6883 14.2466 18.5214 12.0102 20.6796 7.6938C20.8203 7.41227 20.8203 7.0809 20.6796 6.79937ZM10.7852 12.2466C7.81637 12.2466 4.78321 10.6258 2.91481 7.24658C4.78321 3.86736 7.81637 2.24658 10.7852 2.24658C13.7539 2.24658 16.7871 3.86736 18.6555 7.24658C16.7871 10.6258 13.7539 12.2466 10.7852 12.2466Z",fill:"#4A4A4A"})]}),i40=()=>I.jsxs("svg",{width:"21",height:"19",viewBox:"0 0 21 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[I.jsx("path",{d:"M3.49226 0.539475C3.10174 0.148951 2.46857 0.148951 2.07805 0.539475C1.68753 0.93 1.68753 1.56316 2.07805 1.95369L4.50221 4.37785C3.07155 5.45396 1.82441 6.93201 0.890729 8.79937C0.749965 9.0809 0.749965 9.41227 0.890729 9.6938C3.04895 14.0102 6.88203 16.2466 10.7852 16.2466C12.3403 16.2466 13.8843 15.8916 15.3158 15.1914L18.0781 17.9537C18.4686 18.3442 19.1017 18.3442 19.4923 17.9537C19.8828 17.5632 19.8828 16.93 19.4923 16.5395L3.49226 0.539475ZM13.7989 13.6746C12.8194 14.0577 11.7985 14.2466 10.7852 14.2466C7.81637 14.2466 4.78321 12.6258 2.91481 9.24658C3.73237 7.76794 4.77293 6.62598 5.93354 5.80917L8.07753 7.95317C7.89011 8.34481 7.78516 8.78344 7.78516 9.24659C7.78516 10.9034 9.1283 12.2466 10.7852 12.2466C11.2483 12.2466 11.6869 12.1416 12.0786 11.9542L13.7989 13.6746Z",fill:"#4A4A4A"}),I.jsx("path",{d:"M17.3374 11.1421C17.8205 10.5867 18.2636 9.95534 18.6555 9.24658C16.7871 5.86736 13.7539 4.24658 10.7851 4.24658C10.6731 4.24658 10.561 4.24889 10.4489 4.25351L8.66455 2.46916C9.36257 2.32109 10.0727 2.24658 10.7851 2.24658C14.6882 2.24658 18.5213 4.48293 20.6795 8.79937C20.8203 9.0809 20.8203 9.41227 20.6795 9.6938C20.1356 10.7817 19.4852 11.7376 18.7541 12.5587L17.3374 11.1421Z",fill:"#4A4A4A"})]}),o40=({width:t="25px",height:e="25px",color:a="#4A4A4A"})=>I.jsx("svg",{width:t,height:e,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M12.7852 4.24658C8.36688 4.24658 4.78516 7.8283 4.78516 12.2466C4.78516 16.6649 8.36688 20.2466 12.7852 20.2466C17.2034 20.2466 20.7852 16.6649 20.7852 12.2466C20.7852 7.8283 17.2034 4.24658 12.7852 4.24658ZM2.78516 12.2466C2.78516 6.72373 7.26231 2.24658 12.7852 2.24658C18.308 2.24658 22.7852 6.72373 22.7852 12.2466C22.7852 17.7694 18.308 22.2466 12.7852 22.2466C7.26231 22.2466 2.78516 17.7694 2.78516 12.2466ZM17.4495 8.99917C17.8623 9.36609 17.8995 9.99816 17.5326 10.4109L12.1992 16.4109C12.0095 16.6244 11.7375 16.7466 11.4518 16.7466C11.1662 16.7466 10.8942 16.6244 10.7044 16.4109L8.03775 13.4109C7.67083 12.9982 7.70801 12.3661 8.12079 11.9992C8.53358 11.6323 9.16565 11.6694 9.53257 12.0822L11.4518 14.2414L16.0377 9.08222C16.4047 8.66944 17.0367 8.63225 17.4495 8.99917Z",fill:a})}),l40=({width:t="25px",height:e="25px",color:a="#4A4A4A"})=>I.jsx("svg",{width:t,height:e,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M9.78516 2.24658C10.3374 2.24658 10.7852 2.6943 10.7852 3.24658V4.24658H14.7852V3.24658C14.7852 2.6943 15.2329 2.24658 15.7852 2.24658C16.3374 2.24658 16.7852 2.6943 16.7852 3.24658V4.24658H19.7852C20.8897 4.24658 21.7852 5.14201 21.7852 6.24658V19.2466C21.7852 20.3512 20.8897 21.2466 19.7852 21.2466H5.78516C4.68059 21.2466 3.78516 20.3512 3.78516 19.2466V6.24658C3.78516 5.14201 4.68059 4.24658 5.78516 4.24658H8.78516V3.24658C8.78516 2.6943 9.23287 2.24658 9.78516 2.24658ZM8.78516 6.24658H5.78516V9.24658H19.7852V6.24658H16.7852V7.24658C16.7852 7.79887 16.3374 8.24658 15.7852 8.24658C15.2329 8.24658 14.7852 7.79887 14.7852 7.24658V6.24658H10.7852V7.24658C10.7852 7.79887 10.3374 8.24658 9.78516 8.24658C9.23287 8.24658 8.78516 7.79887 8.78516 7.24658V6.24658ZM19.7852 11.2466H5.78516V19.2466H19.7852V11.2466Z",fill:a})}),c40=({width:t="25px",height:e="25px",color:a="#4A4A4A"})=>I.jsx("svg",{width:t,height:e,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M12.7852 4.24658C8.36688 4.24658 4.78516 7.8283 4.78516 12.2466C4.78516 16.6649 8.36688 20.2466 12.7852 20.2466C17.2034 20.2466 20.7852 16.6649 20.7852 12.2466C20.7852 7.8283 17.2034 4.24658 12.7852 4.24658ZM2.78516 12.2466C2.78516 6.72373 7.26231 2.24658 12.7852 2.24658C18.308 2.24658 22.7852 6.72373 22.7852 12.2466C22.7852 17.7694 18.308 22.2466 12.7852 22.2466C7.26231 22.2466 2.78516 17.7694 2.78516 12.2466ZM8.57805 8.03948C8.96857 7.64895 9.60174 7.64895 9.99226 8.03948L12.7852 10.8324L15.578 8.03948C15.9686 7.64895 16.6017 7.64895 16.9923 8.03948C17.3828 8.43 17.3828 9.06316 16.9923 9.45369L14.1994 12.2466L16.9923 15.0395C17.3828 15.43 17.3828 16.0632 16.9923 16.4537C16.6017 16.8442 15.9686 16.8442 15.578 16.4537L12.7852 13.6608L9.99226 16.4537C9.60174 16.8442 8.96857 16.8442 8.57805 16.4537C8.18753 16.0632 8.18753 15.43 8.57805 15.0395L11.3709 12.2466L8.57805 9.45369C8.18753 9.06316 8.18753 8.43 8.57805 8.03948Z",fill:a})}),s40=({width:t="24px",height:e="25px",color:a="#4A4A4A"})=>I.jsx("svg",{width:t,height:e,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M10 4.63599C10 4.24042 10.1173 3.85374 10.3371 3.52485C10.5568 3.19595 10.8692 2.9396 11.2346 2.78823C11.6001 2.63685 12.0022 2.59725 12.3902 2.67442C12.7781 2.75159 13.1345 2.94207 13.4142 3.22177C13.6939 3.50148 13.8844 3.85784 13.9616 4.24581C14.0387 4.63377 13.9991 5.0359 13.8478 5.40135C13.6964 5.76681 13.44 6.07916 13.1111 6.29893C12.7822 6.51869 12.3956 6.63599 12 6.63599C11.4696 6.63599 10.9609 6.42527 10.5858 6.0502C10.2107 5.67513 10 5.16642 10 4.63599ZM12 14.636C12.3956 14.636 12.7822 14.5187 13.1111 14.2989C13.44 14.0792 13.6964 13.7668 13.8478 13.4014C13.9991 13.0359 14.0387 12.6338 13.9616 12.2458C13.8844 11.8578 13.6939 11.5015 13.4142 11.2218C13.1345 10.9421 12.7781 10.7516 12.3902 10.6744C12.0022 10.5972 11.6001 10.6369 11.2346 10.7882C10.8692 10.9396 10.5568 11.1959 10.3371 11.5248C10.1173 11.8537 10 12.2404 10 12.636C10 13.1664 10.2107 13.6751 10.5858 14.0502C10.9609 14.4253 11.4696 14.636 12 14.636ZM12 22.636C12.3956 22.636 12.7822 22.5187 13.1111 22.2989C13.44 22.0792 13.6964 21.7668 13.8478 21.4014C13.9991 21.0359 14.0387 20.6338 13.9616 20.2458C13.8844 19.8578 13.6939 19.5015 13.4142 19.2218C13.1345 18.9421 12.7781 18.7516 12.3902 18.6744C12.0022 18.5972 11.6001 18.6369 11.2346 18.7882C10.8692 18.9396 10.5568 19.1959 10.3371 19.5248C10.1173 19.8537 10 20.2404 10 20.636C10 21.1664 10.2107 21.6751 10.5858 22.0502C10.9609 22.4253 11.4696 22.636 12 22.636Z",fill:a})}),h40=({width:t="21.976",height:e="21.976",color:a="currentColor"})=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:e,viewBox:`0 0 ${t} ${e}`,children:I.jsx("g",{id:"iX",transform:"translate(0 0)",children:I.jsx("path",{id:"Path_29","data-name":"Path 29",d:"M18.761,3.215a10.993,10.993,0,1,0,0,15.547A11.006,11.006,0,0,0,18.761,3.215ZM15.323,15.323a.845.845,0,0,1-1.2,0l-3.139-3.139L7.7,15.472a.845.845,0,0,1-1.2-1.2l3.289-3.289L6.653,7.848a.845.845,0,0,1,1.2-1.2l3.139,3.139,2.99-2.99a.845.845,0,0,1,1.2,1.2l-2.99,2.99,3.139,3.139A.845.845,0,0,1,15.323,15.323Z",transform:"translate(0 0)",fill:a})})}),u40=({color:t="currentColor"})=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23.004",height:"18.002",viewBox:"0 0 23.004 18.002",children:I.jsx("path",{id:"Union_88","data-name":"Union 88",d:"M-16970,12535a2,2,0,0,1,2-2,2,2,0,0,1,2,2,2,2,0,0,1-2,2A2,2,0,0,1-16970,12535Zm7.063,1a1.06,1.06,0,0,1-1.061-1.061,1.059,1.059,0,0,1,1.061-1.056h14.881a1.06,1.06,0,0,1,1.061,1.056,1.062,1.062,0,0,1-1.061,1.061Zm-7.062-8a2,2,0,0,1,2-2,2,2,0,0,1,2,2,2,2,0,0,1-2,2A2,2,0,0,1-16970,12528Zm7.063,1.057A1.059,1.059,0,0,1-16964,12528a1.06,1.06,0,0,1,1.061-1.061h14.881A1.062,1.062,0,0,1-16947,12528a1.061,1.061,0,0,1-1.061,1.057ZM-16970,12521a2,2,0,0,1,2-2,2,2,0,0,1,2,2,2,2,0,0,1-2,2A2,2,0,0,1-16970,12521Zm7.063,1.116a1.059,1.059,0,0,1-1.061-1.057,1.063,1.063,0,0,1,1.061-1.06h14.881a1.064,1.064,0,0,1,1.061,1.06,1.061,1.061,0,0,1-1.061,1.057Z",transform:"translate(16970.002 -12518.999)",fill:t})}),v40=()=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"180.746",height:"121.89",viewBox:"0 0 180.746 121.89",children:I.jsxs("g",{id:"Group_83","data-name":"Group 83",transform:"translate(-543.627 -165.587)",children:[I.jsx("rect",{id:"Rectangle_4504","data-name":"Rectangle 4504",width:"172.049",height:"107.303",transform:"matrix(0.996, -0.087, 0.087, 0.996, 543.627, 180.582)",fill:"#f2f2f2"}),I.jsx("rect",{id:"Rectangle_4514","data-name":"Rectangle 4514",width:"55.409",height:"9.004",transform:"matrix(0.996, -0.087, 0.087, 0.996, 602.508, 194.582)",fill:"#e3e3e3"}),I.jsx("rect",{id:"Rectangle_4515","data-name":"Rectangle 4515",width:"41.742",height:"4.69",transform:"matrix(0.996, -0.087, 0.087, 0.996, 594.097, 220.347)",fill:"#e3e3e3"}),I.jsx("rect",{id:"Rectangle_4518","data-name":"Rectangle 4518",width:"33.252",height:"4.69",transform:"matrix(0.996, -0.087, 0.087, 0.996, 600.037, 230.87)",fill:"#e3e3e3"}),I.jsx("rect",{id:"Rectangle_4519","data-name":"Rectangle 4519",width:"14.255",height:"5.457",transform:"matrix(0.996, -0.087, 0.087, 0.996, 579.983, 267.682)",fill:"#e3e3e3"}),I.jsx("rect",{id:"Rectangle_4520","data-name":"Rectangle 4520",width:"20.006",height:"5.457",transform:"matrix(0.996, -0.087, 0.087, 0.996, 599.686, 265.958)",fill:"#e3e3e3"}),I.jsx("rect",{id:"Rectangle_4516","data-name":"Rectangle 4516",width:"27.924",height:"4.69",transform:"matrix(0.996, -0.087, 0.087, 0.996, 641.404, 216.208)",fill:"#e3e3e3"}),I.jsx("rect",{id:"Rectangle_4517","data-name":"Rectangle 4517",width:"24.233",height:"4.69",transform:"matrix(0.996, -0.087, 0.087, 0.996, 639.393, 227.426)",fill:"#e3e3e3"}),I.jsx("path",{id:"Path_271","data-name":"Path 271",d:"M-2455.582-1570.653l-7.1-88.487,151.9-12.225.027.35,4.089,53.587-.7.053-4.062-53.237-150.5,12.113,7.043,87.789Z",transform:"translate(3015 1846)",fill:"#d8d8d8"}),I.jsx("path",{id:"Polygon_4","data-name":"Polygon 4",d:"M17.259,1.9a3,3,0,0,1,4.373,1.417l.1.256a3,3,0,0,0,2.547,1.865l.26.02a3,3,0,0,1,2.685,3.686l-.09.378a3,3,0,0,0,.955,2.963l.287.248a3,3,0,0,1,0,4.537l-.287.248a3,3,0,0,0-.955,2.963l.09.378a3,3,0,0,1-2.685,3.686l-.26.02a3,3,0,0,0-2.547,1.865l-.1.256A3,3,0,0,1,17.259,28.1l-.166-.1a3,3,0,0,0-3.185,0l-.166.1a3,3,0,0,1-4.373-1.417l-.1-.256a3,3,0,0,0-2.547-1.865l-.26-.02a3,3,0,0,1-2.685-3.686l.09-.378a3,3,0,0,0-.955-2.963l-.287-.248a3,3,0,0,1,0-4.537l.287-.248a3,3,0,0,0,.955-2.963l-.09-.378A3,3,0,0,1,6.457,5.457l.26-.02A3,3,0,0,0,9.265,3.571l.1-.256A3,3,0,0,1,13.741,1.9l.166.1a3,3,0,0,0,3.185,0Z",transform:"translate(681.5 236.377)",fill:"#ee312f"}),I.jsx("circle",{id:"Ellipse_63","data-name":"Ellipse 63",cx:"6",cy:"6",r:"6",transform:"translate(691 245)",fill:"#d51a19"})]})}),d40=()=>I.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"336.699",height:"255.379",viewBox:"0 0 336.699 255.379",children:[I.jsxs("defs",{children:[I.jsx("clipPath",{id:"clip-path",children:I.jsx("path",{id:"Path_250","data-name":"Path 250",d:"M353.374,503.286l-7.5-10.382s.527-5.6,1.6-11.725-17.44-46.219-17.44-46.219-8.87-1.03-7.834,8.761,4.2,28.334,4.2,28.334l-50.946-46.221a4.768,4.768,0,0,0-6.011.815c-2.137,1.965-1.533,3.442-.11,6.8,0,0-6.981-9.835-10.65-7.724s-4.723,4.624-1.371,9.353c0,0-2.277-2.156-5.287,1.327s.308,8.006,2.937,12.222c0,0-2.373-2.34-6.282,1.709-5.27,5.46,11.484,43.632,55.32,65.62l17.552,14.6Z",transform:"translate(-247.751 -425.123)",fill:"#ea9a8d"})}),I.jsx("clipPath",{id:"clip-path-2",children:I.jsx("path",{id:"Path_258","data-name":"Path 258",d:"M310.337,540.669,306.3,528.514s2.185-5.186,5.049-10.7-2.759-49.323-2.759-49.323-8.153-3.646-10.1,6-4.5,28.29-4.5,28.29L259.272,443.4a4.767,4.767,0,0,0-5.978-1.027c-2.63,1.233-2.5,2.824-2.148,6.458,0,0-3.707-11.477-7.84-10.565s-5.893,2.993-4.115,8.51c0,0-1.525-2.74-5.442-.322s-2.11,7.729-.868,12.54c0,0-1.561-2.945-6.505-.255-6.666,3.625-2.145,45.066,33.068,79.2l12.358,19.2Z",transform:"translate(-223.777 -438.213)",fill:"#eeaca2"})})]}),I.jsxs("g",{id:"Group_82","data-name":"Group 82",transform:"translate(-436.315 -28.621)",children:[I.jsxs("g",{id:"Group_81","data-name":"Group 81",transform:"translate(336.223 -303.124)",children:[I.jsxs("g",{id:"Group_77","data-name":"Group 77",transform:"translate(245.937 425.123)",children:[I.jsx("path",{id:"Path_248","data-name":"Path 248",d:"M353.374,503.286l-7.5-10.382s.527-5.6,1.6-11.725-17.44-46.219-17.44-46.219-8.87-1.03-7.834,8.761,4.2,28.334,4.2,28.334l-50.946-46.221a4.768,4.768,0,0,0-6.011.815c-2.137,1.965-1.533,3.442-.11,6.8,0,0-6.981-9.835-10.65-7.724s-4.723,4.624-1.371,9.353c0,0-2.277-2.156-5.287,1.327s.308,8.006,2.937,12.222c0,0-2.373-2.34-6.282,1.709-5.27,5.46,11.484,43.632,55.32,65.62l17.552,14.6Z",transform:"translate(-247.751 -425.123)",fill:"#ea9a8d"}),I.jsx("g",{id:"Group_76","data-name":"Group 76","clip-path":"url(#clip-path)",children:I.jsx("path",{id:"Path_249","data-name":"Path 249",d:"M337.008,434.673s-3.6,2.132-2.683,4.5a33.317,33.317,0,0,0,2.788,5.185l3.556-1.381-3.115-7.72",transform:"translate(-254.291 -425.846)",fill:"#fff"})})]}),I.jsx("path",{id:"Path_251","data-name":"Path 251",d:"M358.76,498.36l-40.222,38.889,40.75,55.417h84.674Z",transform:"translate(-7.171 -5.542)",fill:"#73379b"}),I.jsxs("g",{id:"Group_80","data-name":"Group 80",transform:"translate(223.777 437.223)",children:[I.jsx("path",{id:"Path_252","data-name":"Path 252",d:"M310.337,540.669,306.3,528.514s2.185-5.186,5.049-10.7-2.759-49.323-2.759-49.323-8.153-3.646-10.1,6-4.5,28.29-4.5,28.29L259.272,443.4a4.767,4.767,0,0,0-5.978-1.027c-2.63,1.233-2.5,2.824-2.148,6.458,0,0-3.707-11.477-7.84-10.565s-5.893,2.993-4.115,8.51c0,0-1.525-2.74-5.442-.322s-2.11,7.729-.868,12.54c0,0-1.561-2.945-6.505-.255-6.666,3.625-2.145,45.066,33.068,79.2l12.358,19.2Z",transform:"translate(-223.777 -438.213)",fill:"#eeaca2"}),I.jsx("g",{id:"Group_79","data-name":"Group 79","clip-path":"url(#clip-path-2)",children:I.jsxs("g",{id:"Group_78","data-name":"Group 78",transform:"translate(2.279 2.146)",children:[I.jsx("path",{id:"Path_253","data-name":"Path 253",d:"M255.807,446.494l3.861-2s3.934,5.178,1.4,6.732S255.807,446.494,255.807,446.494Z",transform:"translate(-228.479 -440.834)",fill:"#fff"}),I.jsx("path",{id:"Path_254","data-name":"Path 254",d:"M315.694,470.624s-3.663.555-3.588,3.1a33.277,33.277,0,0,0,.894,5.819l3.813-.112-1.025-7.946",transform:"translate(-232.74 -442.812)",fill:"#fff"}),I.jsx("path",{id:"Path_255","data-name":"Path 255",d:"M242.624,442.539l3.86-2s3.935,5.178,1.4,6.731S242.624,442.539,242.624,442.539Z",transform:"translate(-227.482 -440.535)",fill:"#fff"}),I.jsx("path",{id:"Path_256","data-name":"Path 256",d:"M234.423,450.778l3.861-2s3.934,5.179,1.4,6.732S234.423,450.778,234.423,450.778Z",transform:"translate(-226.861 -441.158)",fill:"#fff"}),I.jsx("path",{id:"Path_257","data-name":"Path 257",d:"M226.242,464.725l3.86-2s3.935,5.179,1.4,6.732S226.242,464.725,226.242,464.725Z",transform:"translate(-226.242 -442.214)",fill:"#fff"}),I.jsx("line",{id:"Line_35","data-name":"Line 35",x2:"8.902",y2:"24.423",transform:"translate(4.469 13.57)",fill:"none",stroke:"#e27361","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5"}),I.jsx("line",{id:"Line_36","data-name":"Line 36",x2:"12.68",y2:"30.741",transform:"translate(10.915 0.862)",fill:"none",stroke:"#e27361","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5"}),I.jsx("line",{id:"Line_37","data-name":"Line 37",x2:"10.873",y2:"27.751",transform:"translate(23.995 4.843)",fill:"none",stroke:"#e27361","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5"})]})})]}),I.jsx("path",{id:"Path_259","data-name":"Path 259",d:"M318.619,539.5l-50.869,23.29,10.019,32.988h64.349Z",transform:"translate(-3.328 -8.656)",fill:"#8348aa"})]}),I.jsx("path",{id:"Path_260","data-name":"Path 260",d:"M-4821.695-1688.139a.251.251,0,0,1-.187-.084l-19.638-22.226a.25.25,0,0,1,.022-.353.25.25,0,0,1,.353.022l19.638,22.226a.25.25,0,0,1-.022.353A.249.249,0,0,1-4821.695-1688.139Z",transform:"translate(5445 1841)",fill:"#cc6c5d"}),I.jsx("path",{id:"Path_261","data-name":"Path 261",d:"M-4816.552-1680.317a.249.249,0,0,1-.193-.091l-24.782-30.048a.25.25,0,0,1,.034-.352.25.25,0,0,1,.352.034l24.782,30.048a.25.25,0,0,1-.034.352A.25.25,0,0,1-4816.552-1680.317Z",transform:"translate(5433 1843)",fill:"#cc6c5d"}),I.jsx("path",{id:"Path_260-2","data-name":"Path 260",d:"M-4858.177-1748.438a.5.5,0,0,1-.482-.371l-8.278-31.065a.5.5,0,0,1,.354-.612.5.5,0,0,1,.612.354l8.278,31.065a.5.5,0,0,1-.354.612A.5.5,0,0,1-4858.177-1748.438Z",transform:"translate(5442 1857.003)",fill:"#707070"}),I.jsx("path",{id:"Path_262","data-name":"Path 262",d:"M-4843.081-1759.914a.5.5,0,0,1-.321-.117l-23.374-19.588a.5.5,0,0,1-.062-.7.5.5,0,0,1,.7-.062l23.374,19.588a.5.5,0,0,1,.062.7A.5.5,0,0,1-4843.081-1759.914Z",transform:"translate(5570.224 1285.707) rotate(-7)",fill:"#707070"}),I.jsx("path",{id:"Path_263","data-name":"Path 263",d:"M-4842.83-1770.634a.5.5,0,0,1-.176-.032l-23.624-8.869a.5.5,0,0,1-.292-.644.5.5,0,0,1,.644-.292l23.624,8.869a.5.5,0,0,1,.292.644A.5.5,0,0,1-4842.83-1770.634Z",transform:"matrix(0.985, -0.174, 0.174, 0.985, 5614.763, 1065.711)",fill:"#707070"}),I.jsx("path",{id:"Path_261-2","data-name":"Path 261",d:"M-4876.026-1749.046a.5.5,0,0,1-.15-.023.5.5,0,0,1-.327-.627l9.572-30.456a.5.5,0,0,1,.627-.327.5.5,0,0,1,.327.627l-9.572,30.456A.5.5,0,0,1-4876.026-1749.046Z",transform:"translate(5498.278 1857.938)",fill:"#707070"}),I.jsx("path",{id:"Path_269","data-name":"Path 269",d:"M0,0H7L3.811,6.976,0,9Z",transform:"matrix(0.985, -0.174, 0.174, 0.985, 703.113, 109.28)",fill:"#6b8ff2"}),I.jsx("rect",{id:"Rectangle_4512","data-name":"Rectangle 4512",width:"3.042",height:"7.099",transform:"matrix(0.985, -0.174, 0.174, 0.985, 489.771, 74.111)",fill:"#60d098"}),I.jsx("rect",{id:"Rectangle_4513","data-name":"Rectangle 4513",width:"6.261",height:"9",transform:"translate(483.236 116.787) rotate(14)",fill:"#f2e26b"}),I.jsx("path",{id:"Path_266","data-name":"Path 266",d:"M0,0H7V9Z",transform:"matrix(0.985, -0.174, 0.174, 0.985, 436.315, 144.836)",fill:"#6b8ff2"}),I.jsx("path",{id:"Path_267","data-name":"Path 267",d:"M0,0H7L4.066,6.627,0,9Z",transform:"matrix(0.985, -0.174, 0.174, 0.985, 494, 178.836)",fill:"#d0390c"}),I.jsx("path",{id:"Path_265","data-name":"Path 265",d:"M0,0H7L5.7,7.039,0,9Z",transform:"translate(553.927 43.266) rotate(19)",fill:"#6b8ff2"}),I.jsx("path",{id:"Path_264","data-name":"Path 264",d:"M0,0H7V9L1.661,5.977Z",transform:"matrix(0.985, -0.174, 0.174, 0.985, 622.252, 29.836)",fill:"#f2e26b"}),I.jsx("path",{id:"Path_270","data-name":"Path 270",d:"M.862,4.11,7,0V9H0Z",transform:"matrix(0.985, -0.174, 0.174, 0.985, 707.342, 49.876)",fill:"#d0390c"}),I.jsx("path",{id:"Path_268","data-name":"Path 268",d:"M0,0H7V9Z",transform:"matrix(0.875, 0.485, -0.485, 0.875, 665.628, 71.367)",fill:"#60d098"}),I.jsx("path",{id:"Polygon_2","data-name":"Polygon 2",d:"M5.848,0,7.31,3.777l4.386.1L8.213,6.316l1.249,3.84L5.848,7.885,2.234,10.156l1.249-3.84L0,3.879l4.386-.1Z",transform:"translate(507.635 47.484) rotate(-11)",fill:"#f2c36b"}),I.jsx("path",{id:"Polygon_3","data-name":"Polygon 3",d:"M5.848,0,7.31,3.777l4.386.1L8.213,6.316l1.249,3.84L5.848,7.885,2.234,10.156l1.249-3.84L0,3.879l4.386-.1Z",transform:"translate(667.643 35.993) rotate(17)",fill:"#f2c36b"})]})]});var $Z2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,UZ2={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},WZ2=function(e){return UZ2[e]},qZ2=function(e){return e.replace($Z2,WZ2)};function b$(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function L$(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};$L=L$(L$({},$L),t)}function YZ2(){return $L}var ZZ2=function(){function t(){Jt(this,t),this.usedNamespaces={}}return t2(t,[{key:"addUsedNamespaces",value:function(a){var n=this;a.forEach(function(r){n.usedNamespaces[r]||(n.usedNamespaces[r]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function QZ2(t){m01=t}function XZ2(){return m01}var JZ2={type:"3rdParty",init:function(e){KZ2(e.options.react),QZ2(e)}};function tQ2(){if(console&&console.warn){for(var t,e=arguments.length,a=new Array(e),n=0;n2&&arguments[2]!==void 0?arguments[2]:{},n=e.languages[0],r=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(n.toLowerCase()==="cimode")return!0;var l=function(h,s){var u=e.services.backendConnector.state["".concat(h,"|").concat(s)];return u===-1||u===2};return a.bindI18n&&a.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!l(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(n,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||l(n,t)&&(!r||l(o,t)))}function aQ2(t,e){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return UL("i18n.languages were undefined or empty",e.languages),!0;var n=e.options.ignoreJSONStructure!==void 0;return n?e.hasLoadedNamespace(t,{precheck:function(o,l){if(a.bindI18n&&a.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!l(o.isLanguageChangingTo,t))return!1}}):eQ2(t,e,a)}function S$(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function TV(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},a=e.i18n,n=_.useContext(GZ2)||{},r=n.i18n,o=n.defaultNS,l=a||r||XZ2();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new ZZ2),!l){UL("You will need to pass in an i18next instance by using initReactI18next");var c=function(L){return Array.isArray(L)?L[L.length-1]:L},h=[c,{},!1];return h.t=c,h.i18n={},h.ready=!1,h}l.options.react&&l.options.react.wait!==void 0&&UL("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var s=TV(TV(TV({},YZ2()),l.options.react),e),u=s.useSuspense,v=s.keyPrefix,f=t||o||l.options&&l.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],l.reportNamespaces.addUsedNamespaces&&l.reportNamespaces.addUsedNamespaces(f);var d=(l.isInitialized||l.initializedStoreOnce)&&f.every(function(C){return aQ2(C,l,s)});function M(){return l.getFixedT(null,s.nsMode==="fallback"?f:f[0],v)}var g=_.useState(M),H=ot(g,2),p=H[0],m=H[1],z=f.join(),w=nQ2(z),x=_.useRef(!0);_.useEffect(function(){var C=s.bindI18n,L=s.bindI18nStore;x.current=!0,!d&&!u&&_$(l,f,function(){x.current&&m(M)}),d&&w&&w!==z&&x.current&&m(M);function B(){x.current&&m(M)}return C&&l&&l.on(C,B),L&&l&&l.store.on(L,B),function(){x.current=!1,C&&l&&C.split(" ").forEach(function(S){return l.off(S,B)}),L&&l&&L.split(" ").forEach(function(S){return l.store.off(S,B)})}},[l,z]);var y=_.useRef(!0);_.useEffect(function(){x.current&&!y.current&&m(M),y.current=!1},[l,v]);var V=[p,l,d];if(V.t=p,V.i18n=l,V.ready=d,d||!d&&!u)return V;throw new Promise(function(C){_$(l,f,function(){C()})})}const rQ2=ma.div` + c14.992,14.992,39.392,14.992,54.388,0C220.724,191.104,220.724,166.696,205.732,151.704z`})})})]}),Je0=()=>I.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[I.jsx("path",{d:"M10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2ZM0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10Z",fill:"#4A4A4A"}),I.jsx("path",{d:"M10 12C9.44771 12 9 11.5523 9 11V10C9 9.44771 9.44772 9 10 9C10.5523 9 11 9.44771 11 10V11C11 11.5523 10.5523 12 10 12Z",fill:"#4A4A4A"}),I.jsx("path",{d:"M8.5 14.5C8.5 13.6716 9.17157 13 10 13C10.8284 13 11.5 13.6716 11.5 14.5C11.5 15.3284 10.8284 16 10 16C9.17157 16 8.5 15.3284 8.5 14.5Z",fill:"#4A4A4A"}),I.jsx("path",{d:"M10.3899 5.81137C9.4329 5.7658 8.63039 6.3004 8.48639 7.1644C8.3956 7.70917 7.88037 8.07719 7.3356 7.9864C6.79083 7.8956 6.42281 7.38037 6.51361 6.8356C6.86961 4.69961 8.8171 3.73421 10.4851 3.81363C11.3395 3.85432 12.2176 4.16099 12.8937 4.79278C13.5866 5.44027 14 6.36777 14 7.5C14 8.79131 13.4919 9.74892 12.6172 10.3321C11.8141 10.8675 10.8295 11 10 11C9.44772 11 9 10.5523 9 10C9 9.44771 9.44772 9 10 9C10.6705 9 11.1859 8.88252 11.5078 8.66795C11.7581 8.50109 12 8.2087 12 7.5C12 6.88224 11.7884 6.49723 11.5282 6.2541C11.2512 5.99526 10.848 5.83318 10.3899 5.81137Z",fill:"#4A4A4A"})]}),t40=()=>I.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M18.73 15.663C19.2249 15.0504 19.4964 14.2875 19.5 13.5C19.5 12.5717 19.1313 11.6815 18.4749 11.0251C17.8185 10.3687 16.9283 10 16 10C15.0717 10 14.1815 10.3687 13.5251 11.0251C12.8687 11.6815 12.5 12.5717 12.5 13.5C12.5036 14.2875 12.7751 15.0504 13.27 15.663C12.3527 16.1338 11.5713 16.8317 11 17.69C10.4287 16.8317 9.64727 16.1338 8.73 15.663C9.22488 15.0504 9.49645 14.2875 9.5 13.5C9.5 12.5717 9.13125 11.6815 8.47487 11.0251C7.8185 10.3687 6.92826 10 6 10C5.07174 10 4.1815 10.3687 3.52513 11.0251C2.86875 11.6815 2.5 12.5717 2.5 13.5C2.50355 14.2875 2.77512 15.0504 3.27 15.663C2.28657 16.1655 1.4609 16.9296 0.883935 17.8713C0.30697 18.813 0.00109519 19.8956 0 21C0 21.2652 0.105357 21.5196 0.292893 21.7071C0.48043 21.8946 0.734784 22 1 22H21C21.2652 22 21.5196 21.8946 21.7071 21.7071C21.8946 21.5196 22 21.2652 22 21C21.9989 19.8956 21.693 18.813 21.1161 17.8713C20.5391 16.9296 19.7134 16.1655 18.73 15.663ZM6 12C6.29667 12 6.58668 12.088 6.83336 12.2528C7.08003 12.4176 7.27229 12.6519 7.38582 12.926C7.49935 13.2001 7.52906 13.5017 7.47118 13.7926C7.4133 14.0836 7.27044 14.3509 7.06066 14.5607C6.85088 14.7704 6.58361 14.9133 6.29264 14.9712C6.00166 15.0291 5.70006 14.9994 5.42597 14.8858C5.15189 14.7723 4.91762 14.58 4.7528 14.3334C4.58797 14.0867 4.5 13.7967 4.5 13.5C4.5 13.1022 4.65804 12.7206 4.93934 12.4393C5.22064 12.158 5.60218 12 6 12ZM2.127 20C2.34868 19.1414 2.84942 18.3807 3.55048 17.8377C4.25155 17.2946 5.11321 16.9999 6 16.9999C6.88679 16.9999 7.74845 17.2946 8.44952 17.8377C9.15058 18.3807 9.65132 19.1414 9.873 20H2.127ZM16 12C16.2967 12 16.5867 12.088 16.8334 12.2528C17.08 12.4176 17.2723 12.6519 17.3858 12.926C17.4993 13.2001 17.5291 13.5017 17.4712 13.7926C17.4133 14.0836 17.2704 14.3509 17.0607 14.5607C16.8509 14.7704 16.5836 14.9133 16.2926 14.9712C16.0017 15.0291 15.7001 14.9994 15.426 14.8858C15.1519 14.7723 14.9176 14.58 14.7528 14.3334C14.588 14.0867 14.5 13.7967 14.5 13.5C14.5 13.1022 14.658 12.7206 14.9393 12.4393C15.2206 12.158 15.6022 12 16 12ZM12.127 20C12.3487 19.1414 12.8494 18.3807 13.5505 17.8377C14.2516 17.2946 15.1132 16.9999 16 16.9999C16.8868 16.9999 17.7484 17.2946 18.4495 17.8377C19.1506 18.3807 19.6513 19.1414 19.873 20H12.127ZM10 9V6H7C6.73478 6 6.48043 5.89464 6.29289 5.70711C6.10536 5.51957 6 5.26522 6 5C6 4.73478 6.10536 4.48043 6.29289 4.29289C6.48043 4.10536 6.73478 4 7 4H10V1C10 0.734784 10.1054 0.48043 10.2929 0.292893C10.4804 0.105357 10.7348 0 11 0C11.2652 0 11.5196 0.105357 11.7071 0.292893C11.8946 0.48043 12 0.734784 12 1V4H15C15.2652 4 15.5196 4.10536 15.7071 4.29289C15.8946 4.48043 16 4.73478 16 5C16 5.26522 15.8946 5.51957 15.7071 5.70711C15.5196 5.89464 15.2652 6 15 6H12V9C12 9.26522 11.8946 9.51957 11.7071 9.70711C11.5196 9.89464 11.2652 10 11 10C10.7348 10 10.4804 9.89464 10.2929 9.70711C10.1054 9.51957 10 9.26522 10 9Z",fill:"#4A4A4A"})}),e40=()=>I.jsx("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M12.7852 2.24658C8.38516 2.24658 4.78516 5.84658 4.78516 10.2466C4.78516 15.6466 11.7852 21.7466 12.0852 22.0466C12.2852 22.1466 12.5852 22.2466 12.7852 22.2466C12.9852 22.2466 13.2852 22.1466 13.4852 22.0466C13.7852 21.7466 20.7852 15.6466 20.7852 10.2466C20.7852 5.84658 17.1852 2.24658 12.7852 2.24658ZM12.7852 19.9466C10.6852 17.9466 6.78516 13.6466 6.78516 10.2466C6.78516 6.94658 9.48516 4.24658 12.7852 4.24658C16.0852 4.24658 18.7852 6.94658 18.7852 10.2466C18.7852 13.5466 14.8852 17.9466 12.7852 19.9466ZM12.7852 6.24658C10.5852 6.24658 8.78516 8.04658 8.78516 10.2466C8.78516 12.4466 10.5852 14.2466 12.7852 14.2466C14.9852 14.2466 16.7852 12.4466 16.7852 10.2466C16.7852 8.04658 14.9852 6.24658 12.7852 6.24658ZM12.7852 12.2466C11.6852 12.2466 10.7852 11.3466 10.7852 10.2466C10.7852 9.14658 11.6852 8.24658 12.7852 8.24658C13.8852 8.24658 14.7852 9.14658 14.7852 10.2466C14.7852 11.3466 13.8852 12.2466 12.7852 12.2466Z",fill:"currentColor"})}),a40=()=>I.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M7.07805 0.539475C7.46857 0.148951 8.10174 0.148951 8.49226 0.539475L14.4923 6.53948C14.8828 6.93 14.8828 7.56317 14.4923 7.95369C14.1017 8.34421 13.4686 8.34421 13.078 7.95369L7.78516 2.6608L2.49226 7.95369C2.10174 8.34421 1.46857 8.34421 1.07805 7.95369C0.687525 7.56316 0.687525 6.93 1.07805 6.53947L7.07805 0.539475ZM7.78516 8.6608L2.49226 13.9537C2.10174 14.3442 1.46857 14.3442 1.07805 13.9537C0.687525 13.5632 0.687525 12.93 1.07805 12.5395L7.07805 6.53947C7.46857 6.14895 8.10174 6.14895 8.49226 6.53948L14.4923 12.5395C14.8828 12.93 14.8828 13.5632 14.4923 13.9537C14.1017 14.3442 13.4686 14.3442 13.078 13.9537L7.78516 8.6608Z",fill:"#4A4A4A"})}),n40=()=>I.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M1.07805 0.539475C1.46857 0.148951 2.10174 0.148951 2.49226 0.539475L7.78516 5.83237L13.0781 0.539477C13.4686 0.148953 14.1017 0.148953 14.4923 0.539477C14.8828 0.930002 14.8828 1.56317 14.4923 1.95369L8.49226 7.95369C8.10174 8.34421 7.46857 8.34421 7.07805 7.95369L1.07805 1.95369C0.687526 1.56316 0.687526 0.929999 1.07805 0.539475ZM1.07805 6.53947C1.46857 6.14895 2.10174 6.14895 2.49226 6.53947L7.78516 11.8324L13.078 6.53948C13.4686 6.14895 14.1017 6.14895 14.4923 6.53948C14.8828 6.93 14.8828 7.56317 14.4923 7.95369L8.49226 13.9537C8.10174 14.3442 7.46857 14.3442 7.07805 13.9537L1.07805 7.95369C0.687525 7.56316 0.687525 6.93 1.07805 6.53947Z",fill:"#4A4A4A"})}),r40=()=>I.jsx("svg",{width:"19",height:"21",viewBox:"0 0 19 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M9.78516 2.24658C7.57602 2.24658 5.78516 4.03744 5.78516 6.24658C5.78516 8.45572 7.57602 10.2466 9.78516 10.2466C11.9943 10.2466 13.7852 8.45572 13.7852 6.24658C13.7852 4.03744 11.9943 2.24658 9.78516 2.24658ZM3.78516 6.24658C3.78516 2.93287 6.47145 0.246582 9.78516 0.246582C13.0989 0.246582 15.7852 2.93287 15.7852 6.24658C15.7852 9.56029 13.0989 12.2466 9.78516 12.2466C6.47145 12.2466 3.78516 9.56029 3.78516 6.24658ZM5.78516 16.2466C4.1283 16.2466 2.78516 17.5897 2.78516 19.2466C2.78516 19.7989 2.33744 20.2466 1.78516 20.2466C1.23287 20.2466 0.785156 19.7989 0.785156 19.2466C0.785156 16.4852 3.02373 14.2466 5.78516 14.2466H13.7852C16.5466 14.2466 18.7852 16.4852 18.7852 19.2466C18.7852 19.7989 18.3374 20.2466 17.7852 20.2466C17.2329 20.2466 16.7852 19.7989 16.7852 19.2466C16.7852 17.5897 15.442 16.2466 13.7852 16.2466H5.78516Z",fill:"#4A4A4A"})}),i40=()=>I.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M8.78516 2.24658C6.57602 2.24658 4.78516 4.03744 4.78516 6.24658C4.78516 8.45572 6.57602 10.2466 8.78516 10.2466C10.9943 10.2466 12.7852 8.45572 12.7852 6.24658C12.7852 4.03744 10.9943 2.24658 8.78516 2.24658ZM2.78516 6.24658C2.78516 2.93287 5.47145 0.246582 8.78516 0.246582C12.0989 0.246582 14.7852 2.93287 14.7852 6.24658C14.7852 9.56029 12.0989 12.2466 8.78516 12.2466C5.47145 12.2466 2.78516 9.56029 2.78516 6.24658ZM15.6136 2.00394C16.0041 1.61342 16.6373 1.61342 17.0278 2.00394C19.3709 4.34709 19.3709 8.14608 17.0278 10.4892C16.6373 10.8797 16.0041 10.8797 15.6136 10.4892C15.2231 10.0987 15.2231 9.46553 15.6136 9.07501C17.1757 7.51291 17.1757 4.98025 15.6136 3.41815C15.2231 3.02763 15.2231 2.39447 15.6136 2.00394ZM16.315 15.004C16.449 14.4683 16.9919 14.1425 17.5277 14.2764C18.8556 14.6084 19.6962 15.4575 20.1796 16.4244C20.6474 17.3599 20.7852 18.4037 20.7852 19.2466C20.7852 19.7989 20.3374 20.2466 19.7852 20.2466C19.2329 20.2466 18.7852 19.7989 18.7852 19.2466C18.7852 18.5895 18.6729 17.8832 18.3907 17.3188C18.1242 16.7857 17.7147 16.3847 17.0426 16.2167C16.5068 16.0828 16.1811 15.5398 16.315 15.004ZM5.28516 16.2466C4.0257 16.2466 2.78516 17.4601 2.78516 19.2466C2.78516 19.7989 2.33744 20.2466 1.78516 20.2466C1.23287 20.2466 0.785156 19.7989 0.785156 19.2466C0.785156 16.6148 2.67862 14.2466 5.28516 14.2466H12.2852C14.8917 14.2466 16.7852 16.6148 16.7852 19.2466C16.7852 19.7989 16.3374 20.2466 15.7852 20.2466C15.2329 20.2466 14.7852 19.7989 14.7852 19.2466C14.7852 17.4601 13.5446 16.2466 12.2852 16.2466H5.28516Z",fill:"#4A4A4A"})}),o40=()=>I.jsxs("svg",{width:"21",height:"15",viewBox:"0 0 21 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[I.jsx("path",{d:"M13.7852 7.24658C13.7852 8.90344 12.442 10.2466 10.7852 10.2466C9.1283 10.2466 7.78516 8.90344 7.78516 7.24658C7.78516 5.58973 9.1283 4.24658 10.7852 4.24658C12.442 4.24658 13.7852 5.58973 13.7852 7.24658Z",fill:"#4A4A4A"}),I.jsx("path",{d:"M20.6796 6.79937C18.5214 2.48293 14.6883 0.246582 10.7852 0.246582C6.88203 0.246582 3.04895 2.48293 0.890729 6.79937C0.749965 7.0809 0.749965 7.41227 0.890729 7.6938C3.04895 12.0102 6.88203 14.2466 10.7852 14.2466C14.6883 14.2466 18.5214 12.0102 20.6796 7.6938C20.8203 7.41227 20.8203 7.0809 20.6796 6.79937ZM10.7852 12.2466C7.81637 12.2466 4.78321 10.6258 2.91481 7.24658C4.78321 3.86736 7.81637 2.24658 10.7852 2.24658C13.7539 2.24658 16.7871 3.86736 18.6555 7.24658C16.7871 10.6258 13.7539 12.2466 10.7852 12.2466Z",fill:"#4A4A4A"})]}),l40=()=>I.jsxs("svg",{width:"21",height:"19",viewBox:"0 0 21 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[I.jsx("path",{d:"M3.49226 0.539475C3.10174 0.148951 2.46857 0.148951 2.07805 0.539475C1.68753 0.93 1.68753 1.56316 2.07805 1.95369L4.50221 4.37785C3.07155 5.45396 1.82441 6.93201 0.890729 8.79937C0.749965 9.0809 0.749965 9.41227 0.890729 9.6938C3.04895 14.0102 6.88203 16.2466 10.7852 16.2466C12.3403 16.2466 13.8843 15.8916 15.3158 15.1914L18.0781 17.9537C18.4686 18.3442 19.1017 18.3442 19.4923 17.9537C19.8828 17.5632 19.8828 16.93 19.4923 16.5395L3.49226 0.539475ZM13.7989 13.6746C12.8194 14.0577 11.7985 14.2466 10.7852 14.2466C7.81637 14.2466 4.78321 12.6258 2.91481 9.24658C3.73237 7.76794 4.77293 6.62598 5.93354 5.80917L8.07753 7.95317C7.89011 8.34481 7.78516 8.78344 7.78516 9.24659C7.78516 10.9034 9.1283 12.2466 10.7852 12.2466C11.2483 12.2466 11.6869 12.1416 12.0786 11.9542L13.7989 13.6746Z",fill:"#4A4A4A"}),I.jsx("path",{d:"M17.3374 11.1421C17.8205 10.5867 18.2636 9.95534 18.6555 9.24658C16.7871 5.86736 13.7539 4.24658 10.7851 4.24658C10.6731 4.24658 10.561 4.24889 10.4489 4.25351L8.66455 2.46916C9.36257 2.32109 10.0727 2.24658 10.7851 2.24658C14.6882 2.24658 18.5213 4.48293 20.6795 8.79937C20.8203 9.0809 20.8203 9.41227 20.6795 9.6938C20.1356 10.7817 19.4852 11.7376 18.7541 12.5587L17.3374 11.1421Z",fill:"#4A4A4A"})]}),c40=({width:t="25px",height:e="25px",color:a="#4A4A4A"})=>I.jsx("svg",{width:t,height:e,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M12.7852 4.24658C8.36688 4.24658 4.78516 7.8283 4.78516 12.2466C4.78516 16.6649 8.36688 20.2466 12.7852 20.2466C17.2034 20.2466 20.7852 16.6649 20.7852 12.2466C20.7852 7.8283 17.2034 4.24658 12.7852 4.24658ZM2.78516 12.2466C2.78516 6.72373 7.26231 2.24658 12.7852 2.24658C18.308 2.24658 22.7852 6.72373 22.7852 12.2466C22.7852 17.7694 18.308 22.2466 12.7852 22.2466C7.26231 22.2466 2.78516 17.7694 2.78516 12.2466ZM17.4495 8.99917C17.8623 9.36609 17.8995 9.99816 17.5326 10.4109L12.1992 16.4109C12.0095 16.6244 11.7375 16.7466 11.4518 16.7466C11.1662 16.7466 10.8942 16.6244 10.7044 16.4109L8.03775 13.4109C7.67083 12.9982 7.70801 12.3661 8.12079 11.9992C8.53358 11.6323 9.16565 11.6694 9.53257 12.0822L11.4518 14.2414L16.0377 9.08222C16.4047 8.66944 17.0367 8.63225 17.4495 8.99917Z",fill:a})}),s40=({width:t="25px",height:e="25px",color:a="#4A4A4A"})=>I.jsx("svg",{width:t,height:e,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M9.78516 2.24658C10.3374 2.24658 10.7852 2.6943 10.7852 3.24658V4.24658H14.7852V3.24658C14.7852 2.6943 15.2329 2.24658 15.7852 2.24658C16.3374 2.24658 16.7852 2.6943 16.7852 3.24658V4.24658H19.7852C20.8897 4.24658 21.7852 5.14201 21.7852 6.24658V19.2466C21.7852 20.3512 20.8897 21.2466 19.7852 21.2466H5.78516C4.68059 21.2466 3.78516 20.3512 3.78516 19.2466V6.24658C3.78516 5.14201 4.68059 4.24658 5.78516 4.24658H8.78516V3.24658C8.78516 2.6943 9.23287 2.24658 9.78516 2.24658ZM8.78516 6.24658H5.78516V9.24658H19.7852V6.24658H16.7852V7.24658C16.7852 7.79887 16.3374 8.24658 15.7852 8.24658C15.2329 8.24658 14.7852 7.79887 14.7852 7.24658V6.24658H10.7852V7.24658C10.7852 7.79887 10.3374 8.24658 9.78516 8.24658C9.23287 8.24658 8.78516 7.79887 8.78516 7.24658V6.24658ZM19.7852 11.2466H5.78516V19.2466H19.7852V11.2466Z",fill:a})}),h40=({width:t="25px",height:e="25px",color:a="#4A4A4A"})=>I.jsx("svg",{width:t,height:e,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M12.7852 4.24658C8.36688 4.24658 4.78516 7.8283 4.78516 12.2466C4.78516 16.6649 8.36688 20.2466 12.7852 20.2466C17.2034 20.2466 20.7852 16.6649 20.7852 12.2466C20.7852 7.8283 17.2034 4.24658 12.7852 4.24658ZM2.78516 12.2466C2.78516 6.72373 7.26231 2.24658 12.7852 2.24658C18.308 2.24658 22.7852 6.72373 22.7852 12.2466C22.7852 17.7694 18.308 22.2466 12.7852 22.2466C7.26231 22.2466 2.78516 17.7694 2.78516 12.2466ZM8.57805 8.03948C8.96857 7.64895 9.60174 7.64895 9.99226 8.03948L12.7852 10.8324L15.578 8.03948C15.9686 7.64895 16.6017 7.64895 16.9923 8.03948C17.3828 8.43 17.3828 9.06316 16.9923 9.45369L14.1994 12.2466L16.9923 15.0395C17.3828 15.43 17.3828 16.0632 16.9923 16.4537C16.6017 16.8442 15.9686 16.8442 15.578 16.4537L12.7852 13.6608L9.99226 16.4537C9.60174 16.8442 8.96857 16.8442 8.57805 16.4537C8.18753 16.0632 8.18753 15.43 8.57805 15.0395L11.3709 12.2466L8.57805 9.45369C8.18753 9.06316 8.18753 8.43 8.57805 8.03948Z",fill:a})}),u40=({width:t="24px",height:e="25px",color:a="#4A4A4A"})=>I.jsx("svg",{width:t,height:e,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M10 4.63599C10 4.24042 10.1173 3.85374 10.3371 3.52485C10.5568 3.19595 10.8692 2.9396 11.2346 2.78823C11.6001 2.63685 12.0022 2.59725 12.3902 2.67442C12.7781 2.75159 13.1345 2.94207 13.4142 3.22177C13.6939 3.50148 13.8844 3.85784 13.9616 4.24581C14.0387 4.63377 13.9991 5.0359 13.8478 5.40135C13.6964 5.76681 13.44 6.07916 13.1111 6.29893C12.7822 6.51869 12.3956 6.63599 12 6.63599C11.4696 6.63599 10.9609 6.42527 10.5858 6.0502C10.2107 5.67513 10 5.16642 10 4.63599ZM12 14.636C12.3956 14.636 12.7822 14.5187 13.1111 14.2989C13.44 14.0792 13.6964 13.7668 13.8478 13.4014C13.9991 13.0359 14.0387 12.6338 13.9616 12.2458C13.8844 11.8578 13.6939 11.5015 13.4142 11.2218C13.1345 10.9421 12.7781 10.7516 12.3902 10.6744C12.0022 10.5972 11.6001 10.6369 11.2346 10.7882C10.8692 10.9396 10.5568 11.1959 10.3371 11.5248C10.1173 11.8537 10 12.2404 10 12.636C10 13.1664 10.2107 13.6751 10.5858 14.0502C10.9609 14.4253 11.4696 14.636 12 14.636ZM12 22.636C12.3956 22.636 12.7822 22.5187 13.1111 22.2989C13.44 22.0792 13.6964 21.7668 13.8478 21.4014C13.9991 21.0359 14.0387 20.6338 13.9616 20.2458C13.8844 19.8578 13.6939 19.5015 13.4142 19.2218C13.1345 18.9421 12.7781 18.7516 12.3902 18.6744C12.0022 18.5972 11.6001 18.6369 11.2346 18.7882C10.8692 18.9396 10.5568 19.1959 10.3371 19.5248C10.1173 19.8537 10 20.2404 10 20.636C10 21.1664 10.2107 21.6751 10.5858 22.0502C10.9609 22.4253 11.4696 22.636 12 22.636Z",fill:a})}),v40=({width:t="21.976",height:e="21.976",color:a="currentColor"})=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:e,viewBox:`0 0 ${t} ${e}`,children:I.jsx("g",{id:"iX",transform:"translate(0 0)",children:I.jsx("path",{id:"Path_29","data-name":"Path 29",d:"M18.761,3.215a10.993,10.993,0,1,0,0,15.547A11.006,11.006,0,0,0,18.761,3.215ZM15.323,15.323a.845.845,0,0,1-1.2,0l-3.139-3.139L7.7,15.472a.845.845,0,0,1-1.2-1.2l3.289-3.289L6.653,7.848a.845.845,0,0,1,1.2-1.2l3.139,3.139,2.99-2.99a.845.845,0,0,1,1.2,1.2l-2.99,2.99,3.139,3.139A.845.845,0,0,1,15.323,15.323Z",transform:"translate(0 0)",fill:a})})}),d40=({color:t="currentColor"})=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23.004",height:"18.002",viewBox:"0 0 23.004 18.002",children:I.jsx("path",{id:"Union_88","data-name":"Union 88",d:"M-16970,12535a2,2,0,0,1,2-2,2,2,0,0,1,2,2,2,2,0,0,1-2,2A2,2,0,0,1-16970,12535Zm7.063,1a1.06,1.06,0,0,1-1.061-1.061,1.059,1.059,0,0,1,1.061-1.056h14.881a1.06,1.06,0,0,1,1.061,1.056,1.062,1.062,0,0,1-1.061,1.061Zm-7.062-8a2,2,0,0,1,2-2,2,2,0,0,1,2,2,2,2,0,0,1-2,2A2,2,0,0,1-16970,12528Zm7.063,1.057A1.059,1.059,0,0,1-16964,12528a1.06,1.06,0,0,1,1.061-1.061h14.881A1.062,1.062,0,0,1-16947,12528a1.061,1.061,0,0,1-1.061,1.057ZM-16970,12521a2,2,0,0,1,2-2,2,2,0,0,1,2,2,2,2,0,0,1-2,2A2,2,0,0,1-16970,12521Zm7.063,1.116a1.059,1.059,0,0,1-1.061-1.057,1.063,1.063,0,0,1,1.061-1.06h14.881a1.064,1.064,0,0,1,1.061,1.06,1.061,1.061,0,0,1-1.061,1.057Z",transform:"translate(16970.002 -12518.999)",fill:t})}),f40=()=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"180.746",height:"121.89",viewBox:"0 0 180.746 121.89",children:I.jsxs("g",{id:"Group_83","data-name":"Group 83",transform:"translate(-543.627 -165.587)",children:[I.jsx("rect",{id:"Rectangle_4504","data-name":"Rectangle 4504",width:"172.049",height:"107.303",transform:"matrix(0.996, -0.087, 0.087, 0.996, 543.627, 180.582)",fill:"#f2f2f2"}),I.jsx("rect",{id:"Rectangle_4514","data-name":"Rectangle 4514",width:"55.409",height:"9.004",transform:"matrix(0.996, -0.087, 0.087, 0.996, 602.508, 194.582)",fill:"#e3e3e3"}),I.jsx("rect",{id:"Rectangle_4515","data-name":"Rectangle 4515",width:"41.742",height:"4.69",transform:"matrix(0.996, -0.087, 0.087, 0.996, 594.097, 220.347)",fill:"#e3e3e3"}),I.jsx("rect",{id:"Rectangle_4518","data-name":"Rectangle 4518",width:"33.252",height:"4.69",transform:"matrix(0.996, -0.087, 0.087, 0.996, 600.037, 230.87)",fill:"#e3e3e3"}),I.jsx("rect",{id:"Rectangle_4519","data-name":"Rectangle 4519",width:"14.255",height:"5.457",transform:"matrix(0.996, -0.087, 0.087, 0.996, 579.983, 267.682)",fill:"#e3e3e3"}),I.jsx("rect",{id:"Rectangle_4520","data-name":"Rectangle 4520",width:"20.006",height:"5.457",transform:"matrix(0.996, -0.087, 0.087, 0.996, 599.686, 265.958)",fill:"#e3e3e3"}),I.jsx("rect",{id:"Rectangle_4516","data-name":"Rectangle 4516",width:"27.924",height:"4.69",transform:"matrix(0.996, -0.087, 0.087, 0.996, 641.404, 216.208)",fill:"#e3e3e3"}),I.jsx("rect",{id:"Rectangle_4517","data-name":"Rectangle 4517",width:"24.233",height:"4.69",transform:"matrix(0.996, -0.087, 0.087, 0.996, 639.393, 227.426)",fill:"#e3e3e3"}),I.jsx("path",{id:"Path_271","data-name":"Path 271",d:"M-2455.582-1570.653l-7.1-88.487,151.9-12.225.027.35,4.089,53.587-.7.053-4.062-53.237-150.5,12.113,7.043,87.789Z",transform:"translate(3015 1846)",fill:"#d8d8d8"}),I.jsx("path",{id:"Polygon_4","data-name":"Polygon 4",d:"M17.259,1.9a3,3,0,0,1,4.373,1.417l.1.256a3,3,0,0,0,2.547,1.865l.26.02a3,3,0,0,1,2.685,3.686l-.09.378a3,3,0,0,0,.955,2.963l.287.248a3,3,0,0,1,0,4.537l-.287.248a3,3,0,0,0-.955,2.963l.09.378a3,3,0,0,1-2.685,3.686l-.26.02a3,3,0,0,0-2.547,1.865l-.1.256A3,3,0,0,1,17.259,28.1l-.166-.1a3,3,0,0,0-3.185,0l-.166.1a3,3,0,0,1-4.373-1.417l-.1-.256a3,3,0,0,0-2.547-1.865l-.26-.02a3,3,0,0,1-2.685-3.686l.09-.378a3,3,0,0,0-.955-2.963l-.287-.248a3,3,0,0,1,0-4.537l.287-.248a3,3,0,0,0,.955-2.963l-.09-.378A3,3,0,0,1,6.457,5.457l.26-.02A3,3,0,0,0,9.265,3.571l.1-.256A3,3,0,0,1,13.741,1.9l.166.1a3,3,0,0,0,3.185,0Z",transform:"translate(681.5 236.377)",fill:"#ee312f"}),I.jsx("circle",{id:"Ellipse_63","data-name":"Ellipse 63",cx:"6",cy:"6",r:"6",transform:"translate(691 245)",fill:"#d51a19"})]})}),g40=()=>I.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"336.699",height:"255.379",viewBox:"0 0 336.699 255.379",children:[I.jsxs("defs",{children:[I.jsx("clipPath",{id:"clip-path",children:I.jsx("path",{id:"Path_250","data-name":"Path 250",d:"M353.374,503.286l-7.5-10.382s.527-5.6,1.6-11.725-17.44-46.219-17.44-46.219-8.87-1.03-7.834,8.761,4.2,28.334,4.2,28.334l-50.946-46.221a4.768,4.768,0,0,0-6.011.815c-2.137,1.965-1.533,3.442-.11,6.8,0,0-6.981-9.835-10.65-7.724s-4.723,4.624-1.371,9.353c0,0-2.277-2.156-5.287,1.327s.308,8.006,2.937,12.222c0,0-2.373-2.34-6.282,1.709-5.27,5.46,11.484,43.632,55.32,65.62l17.552,14.6Z",transform:"translate(-247.751 -425.123)",fill:"#ea9a8d"})}),I.jsx("clipPath",{id:"clip-path-2",children:I.jsx("path",{id:"Path_258","data-name":"Path 258",d:"M310.337,540.669,306.3,528.514s2.185-5.186,5.049-10.7-2.759-49.323-2.759-49.323-8.153-3.646-10.1,6-4.5,28.29-4.5,28.29L259.272,443.4a4.767,4.767,0,0,0-5.978-1.027c-2.63,1.233-2.5,2.824-2.148,6.458,0,0-3.707-11.477-7.84-10.565s-5.893,2.993-4.115,8.51c0,0-1.525-2.74-5.442-.322s-2.11,7.729-.868,12.54c0,0-1.561-2.945-6.505-.255-6.666,3.625-2.145,45.066,33.068,79.2l12.358,19.2Z",transform:"translate(-223.777 -438.213)",fill:"#eeaca2"})})]}),I.jsxs("g",{id:"Group_82","data-name":"Group 82",transform:"translate(-436.315 -28.621)",children:[I.jsxs("g",{id:"Group_81","data-name":"Group 81",transform:"translate(336.223 -303.124)",children:[I.jsxs("g",{id:"Group_77","data-name":"Group 77",transform:"translate(245.937 425.123)",children:[I.jsx("path",{id:"Path_248","data-name":"Path 248",d:"M353.374,503.286l-7.5-10.382s.527-5.6,1.6-11.725-17.44-46.219-17.44-46.219-8.87-1.03-7.834,8.761,4.2,28.334,4.2,28.334l-50.946-46.221a4.768,4.768,0,0,0-6.011.815c-2.137,1.965-1.533,3.442-.11,6.8,0,0-6.981-9.835-10.65-7.724s-4.723,4.624-1.371,9.353c0,0-2.277-2.156-5.287,1.327s.308,8.006,2.937,12.222c0,0-2.373-2.34-6.282,1.709-5.27,5.46,11.484,43.632,55.32,65.62l17.552,14.6Z",transform:"translate(-247.751 -425.123)",fill:"#ea9a8d"}),I.jsx("g",{id:"Group_76","data-name":"Group 76","clip-path":"url(#clip-path)",children:I.jsx("path",{id:"Path_249","data-name":"Path 249",d:"M337.008,434.673s-3.6,2.132-2.683,4.5a33.317,33.317,0,0,0,2.788,5.185l3.556-1.381-3.115-7.72",transform:"translate(-254.291 -425.846)",fill:"#fff"})})]}),I.jsx("path",{id:"Path_251","data-name":"Path 251",d:"M358.76,498.36l-40.222,38.889,40.75,55.417h84.674Z",transform:"translate(-7.171 -5.542)",fill:"#73379b"}),I.jsxs("g",{id:"Group_80","data-name":"Group 80",transform:"translate(223.777 437.223)",children:[I.jsx("path",{id:"Path_252","data-name":"Path 252",d:"M310.337,540.669,306.3,528.514s2.185-5.186,5.049-10.7-2.759-49.323-2.759-49.323-8.153-3.646-10.1,6-4.5,28.29-4.5,28.29L259.272,443.4a4.767,4.767,0,0,0-5.978-1.027c-2.63,1.233-2.5,2.824-2.148,6.458,0,0-3.707-11.477-7.84-10.565s-5.893,2.993-4.115,8.51c0,0-1.525-2.74-5.442-.322s-2.11,7.729-.868,12.54c0,0-1.561-2.945-6.505-.255-6.666,3.625-2.145,45.066,33.068,79.2l12.358,19.2Z",transform:"translate(-223.777 -438.213)",fill:"#eeaca2"}),I.jsx("g",{id:"Group_79","data-name":"Group 79","clip-path":"url(#clip-path-2)",children:I.jsxs("g",{id:"Group_78","data-name":"Group 78",transform:"translate(2.279 2.146)",children:[I.jsx("path",{id:"Path_253","data-name":"Path 253",d:"M255.807,446.494l3.861-2s3.934,5.178,1.4,6.732S255.807,446.494,255.807,446.494Z",transform:"translate(-228.479 -440.834)",fill:"#fff"}),I.jsx("path",{id:"Path_254","data-name":"Path 254",d:"M315.694,470.624s-3.663.555-3.588,3.1a33.277,33.277,0,0,0,.894,5.819l3.813-.112-1.025-7.946",transform:"translate(-232.74 -442.812)",fill:"#fff"}),I.jsx("path",{id:"Path_255","data-name":"Path 255",d:"M242.624,442.539l3.86-2s3.935,5.178,1.4,6.731S242.624,442.539,242.624,442.539Z",transform:"translate(-227.482 -440.535)",fill:"#fff"}),I.jsx("path",{id:"Path_256","data-name":"Path 256",d:"M234.423,450.778l3.861-2s3.934,5.179,1.4,6.732S234.423,450.778,234.423,450.778Z",transform:"translate(-226.861 -441.158)",fill:"#fff"}),I.jsx("path",{id:"Path_257","data-name":"Path 257",d:"M226.242,464.725l3.86-2s3.935,5.179,1.4,6.732S226.242,464.725,226.242,464.725Z",transform:"translate(-226.242 -442.214)",fill:"#fff"}),I.jsx("line",{id:"Line_35","data-name":"Line 35",x2:"8.902",y2:"24.423",transform:"translate(4.469 13.57)",fill:"none",stroke:"#e27361","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5"}),I.jsx("line",{id:"Line_36","data-name":"Line 36",x2:"12.68",y2:"30.741",transform:"translate(10.915 0.862)",fill:"none",stroke:"#e27361","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5"}),I.jsx("line",{id:"Line_37","data-name":"Line 37",x2:"10.873",y2:"27.751",transform:"translate(23.995 4.843)",fill:"none",stroke:"#e27361","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5"})]})})]}),I.jsx("path",{id:"Path_259","data-name":"Path 259",d:"M318.619,539.5l-50.869,23.29,10.019,32.988h64.349Z",transform:"translate(-3.328 -8.656)",fill:"#8348aa"})]}),I.jsx("path",{id:"Path_260","data-name":"Path 260",d:"M-4821.695-1688.139a.251.251,0,0,1-.187-.084l-19.638-22.226a.25.25,0,0,1,.022-.353.25.25,0,0,1,.353.022l19.638,22.226a.25.25,0,0,1-.022.353A.249.249,0,0,1-4821.695-1688.139Z",transform:"translate(5445 1841)",fill:"#cc6c5d"}),I.jsx("path",{id:"Path_261","data-name":"Path 261",d:"M-4816.552-1680.317a.249.249,0,0,1-.193-.091l-24.782-30.048a.25.25,0,0,1,.034-.352.25.25,0,0,1,.352.034l24.782,30.048a.25.25,0,0,1-.034.352A.25.25,0,0,1-4816.552-1680.317Z",transform:"translate(5433 1843)",fill:"#cc6c5d"}),I.jsx("path",{id:"Path_260-2","data-name":"Path 260",d:"M-4858.177-1748.438a.5.5,0,0,1-.482-.371l-8.278-31.065a.5.5,0,0,1,.354-.612.5.5,0,0,1,.612.354l8.278,31.065a.5.5,0,0,1-.354.612A.5.5,0,0,1-4858.177-1748.438Z",transform:"translate(5442 1857.003)",fill:"#707070"}),I.jsx("path",{id:"Path_262","data-name":"Path 262",d:"M-4843.081-1759.914a.5.5,0,0,1-.321-.117l-23.374-19.588a.5.5,0,0,1-.062-.7.5.5,0,0,1,.7-.062l23.374,19.588a.5.5,0,0,1,.062.7A.5.5,0,0,1-4843.081-1759.914Z",transform:"translate(5570.224 1285.707) rotate(-7)",fill:"#707070"}),I.jsx("path",{id:"Path_263","data-name":"Path 263",d:"M-4842.83-1770.634a.5.5,0,0,1-.176-.032l-23.624-8.869a.5.5,0,0,1-.292-.644.5.5,0,0,1,.644-.292l23.624,8.869a.5.5,0,0,1,.292.644A.5.5,0,0,1-4842.83-1770.634Z",transform:"matrix(0.985, -0.174, 0.174, 0.985, 5614.763, 1065.711)",fill:"#707070"}),I.jsx("path",{id:"Path_261-2","data-name":"Path 261",d:"M-4876.026-1749.046a.5.5,0,0,1-.15-.023.5.5,0,0,1-.327-.627l9.572-30.456a.5.5,0,0,1,.627-.327.5.5,0,0,1,.327.627l-9.572,30.456A.5.5,0,0,1-4876.026-1749.046Z",transform:"translate(5498.278 1857.938)",fill:"#707070"}),I.jsx("path",{id:"Path_269","data-name":"Path 269",d:"M0,0H7L3.811,6.976,0,9Z",transform:"matrix(0.985, -0.174, 0.174, 0.985, 703.113, 109.28)",fill:"#6b8ff2"}),I.jsx("rect",{id:"Rectangle_4512","data-name":"Rectangle 4512",width:"3.042",height:"7.099",transform:"matrix(0.985, -0.174, 0.174, 0.985, 489.771, 74.111)",fill:"#60d098"}),I.jsx("rect",{id:"Rectangle_4513","data-name":"Rectangle 4513",width:"6.261",height:"9",transform:"translate(483.236 116.787) rotate(14)",fill:"#f2e26b"}),I.jsx("path",{id:"Path_266","data-name":"Path 266",d:"M0,0H7V9Z",transform:"matrix(0.985, -0.174, 0.174, 0.985, 436.315, 144.836)",fill:"#6b8ff2"}),I.jsx("path",{id:"Path_267","data-name":"Path 267",d:"M0,0H7L4.066,6.627,0,9Z",transform:"matrix(0.985, -0.174, 0.174, 0.985, 494, 178.836)",fill:"#d0390c"}),I.jsx("path",{id:"Path_265","data-name":"Path 265",d:"M0,0H7L5.7,7.039,0,9Z",transform:"translate(553.927 43.266) rotate(19)",fill:"#6b8ff2"}),I.jsx("path",{id:"Path_264","data-name":"Path 264",d:"M0,0H7V9L1.661,5.977Z",transform:"matrix(0.985, -0.174, 0.174, 0.985, 622.252, 29.836)",fill:"#f2e26b"}),I.jsx("path",{id:"Path_270","data-name":"Path 270",d:"M.862,4.11,7,0V9H0Z",transform:"matrix(0.985, -0.174, 0.174, 0.985, 707.342, 49.876)",fill:"#d0390c"}),I.jsx("path",{id:"Path_268","data-name":"Path 268",d:"M0,0H7V9Z",transform:"matrix(0.875, 0.485, -0.485, 0.875, 665.628, 71.367)",fill:"#60d098"}),I.jsx("path",{id:"Polygon_2","data-name":"Polygon 2",d:"M5.848,0,7.31,3.777l4.386.1L8.213,6.316l1.249,3.84L5.848,7.885,2.234,10.156l1.249-3.84L0,3.879l4.386-.1Z",transform:"translate(507.635 47.484) rotate(-11)",fill:"#f2c36b"}),I.jsx("path",{id:"Polygon_3","data-name":"Polygon 3",d:"M5.848,0,7.31,3.777l4.386.1L8.213,6.316l1.249,3.84L5.848,7.885,2.234,10.156l1.249-3.84L0,3.879l4.386-.1Z",transform:"translate(667.643 35.993) rotate(17)",fill:"#f2c36b"})]})]});var UZ2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,WZ2={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},qZ2=function(e){return WZ2[e]},GZ2=function(e){return e.replace(UZ2,qZ2)};function b$(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function L$(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};$L=L$(L$({},$L),t)}function ZZ2(){return $L}var QZ2=function(){function t(){Jt(this,t),this.usedNamespaces={}}return t2(t,[{key:"addUsedNamespaces",value:function(a){var n=this;a.forEach(function(r){n.usedNamespaces[r]||(n.usedNamespaces[r]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function XZ2(t){m01=t}function JZ2(){return m01}var tQ2={type:"3rdParty",init:function(e){YZ2(e.options.react),XZ2(e)}};function eQ2(){if(console&&console.warn){for(var t,e=arguments.length,a=new Array(e),n=0;n2&&arguments[2]!==void 0?arguments[2]:{},n=e.languages[0],r=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(n.toLowerCase()==="cimode")return!0;var l=function(h,s){var u=e.services.backendConnector.state["".concat(h,"|").concat(s)];return u===-1||u===2};return a.bindI18n&&a.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!l(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(n,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||l(n,t)&&(!r||l(o,t)))}function nQ2(t,e){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return UL("i18n.languages were undefined or empty",e.languages),!0;var n=e.options.ignoreJSONStructure!==void 0;return n?e.hasLoadedNamespace(t,{precheck:function(o,l){if(a.bindI18n&&a.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!l(o.isLanguageChangingTo,t))return!1}}):aQ2(t,e,a)}function S$(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function TV(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},a=e.i18n,n=_.useContext(KZ2)||{},r=n.i18n,o=n.defaultNS,l=a||r||JZ2();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new QZ2),!l){UL("You will need to pass in an i18next instance by using initReactI18next");var c=function(L){return Array.isArray(L)?L[L.length-1]:L},h=[c,{},!1];return h.t=c,h.i18n={},h.ready=!1,h}l.options.react&&l.options.react.wait!==void 0&&UL("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var s=TV(TV(TV({},ZZ2()),l.options.react),e),u=s.useSuspense,v=s.keyPrefix,f=t||o||l.options&&l.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],l.reportNamespaces.addUsedNamespaces&&l.reportNamespaces.addUsedNamespaces(f);var d=(l.isInitialized||l.initializedStoreOnce)&&f.every(function(C){return nQ2(C,l,s)});function M(){return l.getFixedT(null,s.nsMode==="fallback"?f:f[0],v)}var g=_.useState(M),H=ot(g,2),p=H[0],m=H[1],z=f.join(),w=rQ2(z),x=_.useRef(!0);_.useEffect(function(){var C=s.bindI18n,L=s.bindI18nStore;x.current=!0,!d&&!u&&_$(l,f,function(){x.current&&m(M)}),d&&w&&w!==z&&x.current&&m(M);function B(){x.current&&m(M)}return C&&l&&l.on(C,B),L&&l&&l.store.on(L,B),function(){x.current=!1,C&&l&&C.split(" ").forEach(function(S){return l.off(S,B)}),L&&l&&L.split(" ").forEach(function(S){return l.store.off(S,B)})}},[l,z]);var y=_.useRef(!0);_.useEffect(function(){x.current&&!y.current&&m(M),y.current=!1},[l,v]);var V=[p,l,d];if(V.t=p,V.i18n=l,V.ready=d,d||!d&&!u)return V;throw new Promise(function(C){_$(l,f,function(){C()})})}const iQ2=ma.div` box-sizing: border-box; position: relative; margin-inline: auto; @@ -9002,13 +9002,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho @media (min-width: 1200px) { max-width: 1140px; } -`,z01=t=>I.jsx(rQ2,{...t,children:t.children});var iQ2={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},oQ2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},lQ2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cQ2={date:v5({formats:iQ2,defaultWidth:"full"}),time:v5({formats:oQ2,defaultWidth:"full"}),dateTime:v5({formats:lQ2,defaultWidth:"full"})};const sQ2=cQ2;var hQ2={code:"en-GB",formatDistance:cY,formatLong:sQ2,formatRelative:sY,localize:hY,match:vY,options:{weekStartsOn:1,firstWeekContainsDate:4}};const T$=hQ2;var uQ2={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godziny",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"około tygodnia",twoFour:"około {{count}} tygodni",other:"około {{count}} tygodni"},xWeeks:{one:"tydzień",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function vQ2(t,e){if(e===1)return t.one;var a=e%100;if(a<=20&&a>10)return t.other;var n=a%10;return n>=2&&n<=4?t.twoFour:t.other}function OV(t,e,a){var n=vQ2(t,e),r=typeof n=="string"?n:n[a];return r.replace("{{count}}",String(e))}var dQ2=function(e,a,n){var r=uQ2[e];return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"za "+OV(r,a,"future"):OV(r,a,"past")+" temu":OV(r,a,"regular")};const fQ2=dQ2;var gQ2={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},pQ2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},mQ2={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},zQ2={date:v5({formats:gQ2,defaultWidth:"full"}),time:v5({formats:pQ2,defaultWidth:"full"}),dateTime:v5({formats:mQ2,defaultWidth:"full"})};const MQ2=zQ2;function HQ2(t,e,a){g1(2,arguments);var n=x5(t,a),r=x5(e,a);return n.getTime()===r.getTime()}var wQ2={masculine:"ostatni",feminine:"ostatnia"},yQ2={masculine:"ten",feminine:"ta"},xQ2={masculine:"następny",feminine:"następna"},VQ2={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function O$(t,e,a,n){var r;if(HQ2(e,a,n))r=yQ2;else if(t==="lastWeek")r=wQ2;else if(t==="nextWeek")r=xQ2;else throw new Error("Cannot determine adjectives for token ".concat(t));var o=e.getUTCDay(),l=VQ2[o],c=r[l];return"'".concat(c,"' eeee 'o' p")}var CQ2={lastWeek:O$,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:O$,other:"P"},bQ2=function(e,a,n,r){var o=CQ2[e];return typeof o=="function"?o(e,a,n,r):o};const LQ2=bQ2;var BQ2={narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszą erą","naszej ery"]},_Q2={narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwartał","II kwartał","III kwartał","IV kwartał"]},SQ2={narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},TQ2={narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]},OQ2={narrow:["N","P","W","Ś","C","P","S"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},AQ2={narrow:["n","p","w","ś","c","p","s"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},kQ2={narrow:{am:"a",pm:"p",midnight:"półn.",noon:"poł",morning:"rano",afternoon:"popoł.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"}},EQ2={narrow:{am:"a",pm:"p",midnight:"o półn.",noon:"w poł.",morning:"rano",afternoon:"po poł.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"}},PQ2=function(e,a){return String(e)},NQ2={ordinalNumber:PQ2,era:ri({values:BQ2,defaultWidth:"wide"}),quarter:ri({values:_Q2,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ri({values:SQ2,defaultWidth:"wide",formattingValues:TQ2,defaultFormattingWidth:"wide"}),day:ri({values:OQ2,defaultWidth:"wide",formattingValues:AQ2,defaultFormattingWidth:"wide"}),dayPeriod:ri({values:kQ2,defaultWidth:"wide",formattingValues:EQ2,defaultFormattingWidth:"wide"})};const DQ2=NQ2;var RQ2=/^(\d+)?/i,jQ2=/\d+/i,IQ2={narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},FQ2={any:[/^p/i,/^n/i]},$Q2={narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},UQ2={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},WQ2={narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},qQ2={narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},GQ2={narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},KQ2={narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},YQ2={narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},ZQ2={narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},QQ2={ordinalNumber:uY({matchPattern:RQ2,parsePattern:jQ2,valueCallback:function(e){return parseInt(e,10)}}),era:ii({matchPatterns:IQ2,defaultMatchWidth:"wide",parsePatterns:FQ2,defaultParseWidth:"any"}),quarter:ii({matchPatterns:$Q2,defaultMatchWidth:"wide",parsePatterns:UQ2,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ii({matchPatterns:WQ2,defaultMatchWidth:"wide",parsePatterns:qQ2,defaultParseWidth:"any"}),day:ii({matchPatterns:GQ2,defaultMatchWidth:"wide",parsePatterns:KQ2,defaultParseWidth:"any"}),dayPeriod:ii({matchPatterns:YQ2,defaultMatchWidth:"any",parsePatterns:ZQ2,defaultParseWidth:"any"})};const XQ2=QQ2;var JQ2={code:"pl",formatDistance:fQ2,formatLong:MQ2,formatRelative:LQ2,localize:DQ2,match:XQ2,options:{weekStartsOn:1,firstWeekContainsDate:4}};const A$=JQ2,k$=()=>{const t=localStorage.getItem("defaultLanguage");return t?JSON.parse(t):{label:"English",value:"en"}},tX2=()=>{const{i18n:t}=r9(),[e,a]=_.useState(k$());_.useEffect(()=>{const r=k$().value;t.changeLanguage(r),HL({locale:r==="pl"?A$:T$})},[]),_.useEffect(()=>{localStorage.setItem("defaultLanguage",JSON.stringify(e))},[e]);const n=_.useCallback(r=>{t.changeLanguage(r.value),a(r),HL({locale:r.value==="pl"?A$:T$})},[t]);return{languageObject:e,handleLanguageChange:n}},eX2=()=>{const[t,e]=_.useState({data:void 0,loaded:!1,loading:!1}),{user:a,fetchCart:n}=_.useContext(y4.EscolaLMSContext);return _.useEffect(()=>{a!=null&&a.value&&!a.loading&&!t.loading&&!t.loaded&&(e({...t,loading:!0}),n().then(r=>{const o=r;o.success&&e({data:o.data,loaded:!0,loading:!1})}).catch(()=>e({...t,loaded:!0,loading:!1})))},[a,t,n]),{cart:t}};var b6=X2(),aX2=iS();const WL={defaultDateFormat:"dd/MM/yyyy",defaultDateTimeFormat:"dd/MM/yyyy, HH:mm",tutorPlaceholderPath:"/images/tutorblind.png"},pr=(t,e=WL.defaultDateFormat)=>t?fc(new Date(t),e):"",f40=(t,e,a)=>!t||!e?!1:pr(t,a)===pr(e,a),g40=t=>{const e=[];return t.forEach(a=>{const n=fc(new Date(a),"MM/dd/yyyy"),r=e.find(o=>fc(new Date(o.date),"MM/dd/yyyy")===n);r?r.times.push(new Date(a)):e.push({date:n,times:[new Date(a)]})}),e},p40=t=>t.filter(e=>B11(e,new Date)),m40=t=>t.sort((e,a)=>e.getTime()-a.getTime()),z40=t=>{const e=/(\d+)\s+(day|hour|minute|second|week|year)s?/g,a=Array.from(t.matchAll(e)),n={};let r=!1;if(a.forEach(o=>{r=!0;const l=parseInt(o[1]),c=o[2];n[c]?n[c]+=l:n[c]=l}),!r){const o=/\d+/g;Array.from(t.matchAll(o)).forEach(c=>{const h=parseInt(c[0]);n.hour=h})}return n},M40=(t,e)=>M8(new Date(t),{years:e.year||0,months:e.month||0,weeks:e.week||0,days:e.day||0,hours:e.hour||0,minutes:e.minute||0,seconds:e.second||0}),$d=t=>{var e;return t?(e=t.items)==null?void 0:e.map(a=>a.name).join(", "):""},E$=t=>{var n,r,o,l,c,h,s,u,v,f,d,M,g,H,p,m,z,w,x,y,V,C,L,B,S,T,E,$,U,W,Y,F,t1,R,i1,J,A,o1,h1,a1,M1,s1,z1,m1,S1,I1,U1,P1,G1;const a=`Notifications.${t.event}`;switch(t.event){case x2.EventTypes.StationaryEventAuthorAssigned:return{translation:a,object:{name:((n=t.data.stationaryEvent)==null?void 0:n.name)||""}};case x2.EventTypes.StationaryEventAuthorUnassigned:return{translation:a,object:{name:((r=t.data.stationaryEvent)==null?void 0:r.name)||""}};case x2.EventTypes.StationaryEventAssigned:return{translation:a,object:{name:((o=t.data.stationaryEvent)==null?void 0:o.name)||""}};case x2.EventTypes.StationaryEventUnassigned:return{translation:a,object:{name:((l=t.data.stationaryEvent)==null?void 0:l.name)||""}};case x2.EventTypes.AbandonedCartEvent:return{translation:a};case x2.EventTypes.OrderCancelled:return{translation:a};case x2.EventTypes.OrderCreated:return{translation:a};case x2.EventTypes.OrderPaid:return{translation:a,object:{name:$d(t.data.order)||""}};case x2.EventTypes.ProductableAttached:return{translation:a,object:{name:((c=t.data.productable)==null?void 0:c.name)||""}};case x2.EventTypes.ProductableDetached:return{translation:a,object:{name:((h=t.data.productable)==null?void 0:h.name)||""}};case x2.EventTypes.ProductAddedToCart:return{translation:a,object:{name:((s=t.data.product)==null?void 0:s.name)||""}};case x2.EventTypes.ProductAttached:return{translation:a,object:{name:((u=t.data.product)==null?void 0:u.name)||""}};case x2.EventTypes.ProductBought:return{translation:a,object:{name:((v=t.data.product)==null?void 0:v.name)||""}};case x2.EventTypes.ProductDetached:return{translation:a,object:{name:((f=t.data.product)==null?void 0:f.name)||""}};case x2.EventTypes.ProductRemovedFromCart:return{translation:a,object:{name:((d=t.data.product)==null?void 0:d.name)||""}};case x2.EventTypes.PaymentCancelled:return{translation:a,object:{amount:((M=t.data.payment)==null?void 0:M.amount)||0,name:$d((g=t.data.payment)==null?void 0:g.payable)}};case x2.EventTypes.PaymentFailed:return{translation:a,object:{amount:((H=t.data.payment)==null?void 0:H.amount)||0,name:$d((p=t.data.payment)==null?void 0:p.payable)}};case x2.EventTypes.PaymentRegistered:return{translation:a,object:{amount:((m=t.data.payment)==null?void 0:m.amount)||0}};case x2.EventTypes.PaymentSuccess:return{translation:a,object:{amount:((z=t.data.payment)==null?void 0:z.amount)||0,name:$d((w=t.data.payment)==null?void 0:w.payable)}};case x2.EventTypes.CourseAccessFinished:return{translation:a,object:{name:((x=t.data.course)==null?void 0:x.title)||""}};case x2.EventTypes.CourseAccessStarted:return{translation:a,object:{name:((y=t.data.course)==null?void 0:y.title)||""}};case x2.EventTypes.CourseAssigned:return{translation:a,object:{name:((V=t.data.course)==null?void 0:V.title)||""}};case x2.EventTypes.CourseDeadlineSoon:return{translation:a,object:{name:((C=t.data.course)==null?void 0:C.title)||"",date:pr((L=t.data.course)==null?void 0:L.active_to,WL.defaultDateTimeFormat)}};case x2.EventTypes.CoursedPublished:return{translation:a,object:{name:((B=t.data.course)==null?void 0:B.title)||""}};case x2.EventTypes.CourseFinished:return{translation:a,object:{name:((S=t.data.course)==null?void 0:S.title)||""}};case x2.EventTypes.CourseStarted:return{translation:a,object:{name:((T=t.data.course)==null?void 0:T.title)||""}};case x2.EventTypes.CourseStatusChanged:return{translation:a,object:{name:((E=t.data.course)==null?void 0:E.title)||""}};case x2.EventTypes.CourseTutorAssigned:return{translation:a,object:{name:(($=t.data.course)==null?void 0:$.title)||""}};case x2.EventTypes.CourseTutorUnassigned:return{translation:a,object:{name:((U=t.data.course)==null?void 0:U.title)||""}};case x2.EventTypes.CourseUnassigned:return{translation:a,object:{name:((W=t.data.course)==null?void 0:W.title)||""}};case x2.EventTypes.TopicFinished:return{translation:a,object:{name:((Y=t.data.course)==null?void 0:Y.title)||""}};case x2.EventTypes.TopicTypeChanged:return{translation:a,object:{name:((F=t.data.topicContent)==null?void 0:F.value)||""}};case x2.EventTypes.ReportTerm:return{translation:a,object:{name:((t1=t.data.consultationTerm)==null?void 0:t1.consultation.name)||"",date:pr((R=t.data.consultationTerm)==null?void 0:R.executed_at,WL.defaultDateTimeFormat),user:`${(J=(i1=t.data.consultationTerm)==null?void 0:i1.user)==null?void 0:J.first_name} ${(o1=(A=t.data.consultationTerm)==null?void 0:A.user)==null?void 0:o1.last_name}`}};case x2.EventTypes.ApprovedTerm:return{translation:a,object:{date:pr((h1=t.data.consultationTerm)==null?void 0:h1.executed_at)||""}};case x2.EventTypes.ApprovedTermWithTrainer:return{translation:a,object:{date:pr((a1=t.data.consultationTerm)==null?void 0:a1.executed_at)||""}};case x2.EventTypes.ChangeTerm:return{translation:a,object:{date:pr((M1=t.data.consultationTerm)==null?void 0:M1.executed_at)||""}};case x2.EventTypes.RejectTerm:return{translation:a,object:{date:pr((s1=t.data.consultationTerm)==null?void 0:s1.executed_at)||""}};case x2.EventTypes.RejectTermWithTrainer:return{translation:a,object:{date:pr((z1=t.data.consultationTerm)==null?void 0:z1.executed_at)||""}};case x2.EventTypes.ReminderAboutTerm:return{translation:a,object:{date:pr((m1=t.data.consultationTerm)==null?void 0:m1.executed_at)||""}};case x2.EventTypes.ReminderTrainerAboutTerm:return{translation:a,object:{date:pr((S1=t.data.consultationTerm)==null?void 0:S1.executed_at)||""}};case x2.EventTypes.BulkNotification:return{translation:a,object:{name:((G1=(P1=(U1=(I1=t==null?void 0:t.data)==null?void 0:I1.notification)==null?void 0:U1.sections)==null?void 0:P1.find(rt=>rt.key==="title"))==null?void 0:G1.value)||""}};default:return{translation:a}}},P$=(t,e=2,a)=>{if(!t||typeof t!="number")return 0;const n=Math.round(t*Math.pow(10,e))/Math.pow(10,e);return a?n/a:n},H40=(t,e)=>t?(e?P$(t,2,100)*(1+e/100):P$(t,2,100)).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}):0,w40=(t,e)=>e.authors.findIndex(a=>a.id===t)!==-1,y40=t=>{const e=t?hM(t.getTime(),new Date().getTime()):null,a=t?Zs(t.getTime(),new Date().getTime()):null,n=t?Qs(t.getTime(),new Date().getTime()):null;return(e!==null&&e!==0?[e,"day"]:null)??(a!==null&&a!==0?[a,"hour"]:null)??(n!==null&&n!==0?[n,"minute"]:null)},x40=new Intl.RelativeTimeFormat("pl",{style:"short"}),nX2=ma.div` +`,z01=t=>I.jsx(iQ2,{...t,children:t.children});var oQ2={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},lQ2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},cQ2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},sQ2={date:v5({formats:oQ2,defaultWidth:"full"}),time:v5({formats:lQ2,defaultWidth:"full"}),dateTime:v5({formats:cQ2,defaultWidth:"full"})};const hQ2=sQ2;var uQ2={code:"en-GB",formatDistance:cY,formatLong:hQ2,formatRelative:sY,localize:hY,match:vY,options:{weekStartsOn:1,firstWeekContainsDate:4}};const T$=uQ2;var vQ2={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godziny",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"około tygodnia",twoFour:"około {{count}} tygodni",other:"około {{count}} tygodni"},xWeeks:{one:"tydzień",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function dQ2(t,e){if(e===1)return t.one;var a=e%100;if(a<=20&&a>10)return t.other;var n=a%10;return n>=2&&n<=4?t.twoFour:t.other}function OV(t,e,a){var n=dQ2(t,e),r=typeof n=="string"?n:n[a];return r.replace("{{count}}",String(e))}var fQ2=function(e,a,n){var r=vQ2[e];return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"za "+OV(r,a,"future"):OV(r,a,"past")+" temu":OV(r,a,"regular")};const gQ2=fQ2;var pQ2={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},mQ2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},zQ2={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},MQ2={date:v5({formats:pQ2,defaultWidth:"full"}),time:v5({formats:mQ2,defaultWidth:"full"}),dateTime:v5({formats:zQ2,defaultWidth:"full"})};const HQ2=MQ2;function wQ2(t,e,a){g1(2,arguments);var n=x5(t,a),r=x5(e,a);return n.getTime()===r.getTime()}var yQ2={masculine:"ostatni",feminine:"ostatnia"},xQ2={masculine:"ten",feminine:"ta"},VQ2={masculine:"następny",feminine:"następna"},CQ2={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function O$(t,e,a,n){var r;if(wQ2(e,a,n))r=xQ2;else if(t==="lastWeek")r=yQ2;else if(t==="nextWeek")r=VQ2;else throw new Error("Cannot determine adjectives for token ".concat(t));var o=e.getUTCDay(),l=CQ2[o],c=r[l];return"'".concat(c,"' eeee 'o' p")}var bQ2={lastWeek:O$,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:O$,other:"P"},LQ2=function(e,a,n,r){var o=bQ2[e];return typeof o=="function"?o(e,a,n,r):o};const BQ2=LQ2;var _Q2={narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszą erą","naszej ery"]},SQ2={narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwartał","II kwartał","III kwartał","IV kwartał"]},TQ2={narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},OQ2={narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]},AQ2={narrow:["N","P","W","Ś","C","P","S"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},kQ2={narrow:["n","p","w","ś","c","p","s"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},EQ2={narrow:{am:"a",pm:"p",midnight:"półn.",noon:"poł",morning:"rano",afternoon:"popoł.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"}},PQ2={narrow:{am:"a",pm:"p",midnight:"o półn.",noon:"w poł.",morning:"rano",afternoon:"po poł.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"}},NQ2=function(e,a){return String(e)},DQ2={ordinalNumber:NQ2,era:ri({values:_Q2,defaultWidth:"wide"}),quarter:ri({values:SQ2,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ri({values:TQ2,defaultWidth:"wide",formattingValues:OQ2,defaultFormattingWidth:"wide"}),day:ri({values:AQ2,defaultWidth:"wide",formattingValues:kQ2,defaultFormattingWidth:"wide"}),dayPeriod:ri({values:EQ2,defaultWidth:"wide",formattingValues:PQ2,defaultFormattingWidth:"wide"})};const RQ2=DQ2;var jQ2=/^(\d+)?/i,IQ2=/\d+/i,FQ2={narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},$Q2={any:[/^p/i,/^n/i]},UQ2={narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},WQ2={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},qQ2={narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},GQ2={narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},KQ2={narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},YQ2={narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},ZQ2={narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},QQ2={narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},XQ2={ordinalNumber:uY({matchPattern:jQ2,parsePattern:IQ2,valueCallback:function(e){return parseInt(e,10)}}),era:ii({matchPatterns:FQ2,defaultMatchWidth:"wide",parsePatterns:$Q2,defaultParseWidth:"any"}),quarter:ii({matchPatterns:UQ2,defaultMatchWidth:"wide",parsePatterns:WQ2,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ii({matchPatterns:qQ2,defaultMatchWidth:"wide",parsePatterns:GQ2,defaultParseWidth:"any"}),day:ii({matchPatterns:KQ2,defaultMatchWidth:"wide",parsePatterns:YQ2,defaultParseWidth:"any"}),dayPeriod:ii({matchPatterns:ZQ2,defaultMatchWidth:"any",parsePatterns:QQ2,defaultParseWidth:"any"})};const JQ2=XQ2;var tX2={code:"pl",formatDistance:gQ2,formatLong:HQ2,formatRelative:BQ2,localize:RQ2,match:JQ2,options:{weekStartsOn:1,firstWeekContainsDate:4}};const A$=tX2,k$=()=>{const t=localStorage.getItem("defaultLanguage");return t?JSON.parse(t):{label:"English",value:"en"}},eX2=()=>{const{i18n:t}=r9(),[e,a]=_.useState(k$());_.useEffect(()=>{const r=k$().value;t.changeLanguage(r),HL({locale:r==="pl"?A$:T$})},[]),_.useEffect(()=>{localStorage.setItem("defaultLanguage",JSON.stringify(e))},[e]);const n=_.useCallback(r=>{t.changeLanguage(r.value),a(r),HL({locale:r.value==="pl"?A$:T$})},[t]);return{languageObject:e,handleLanguageChange:n}},aX2=()=>{const[t,e]=_.useState({data:void 0,loaded:!1,loading:!1}),{user:a,fetchCart:n}=_.useContext(y4.EscolaLMSContext);return _.useEffect(()=>{a!=null&&a.value&&!a.loading&&!t.loading&&!t.loaded&&(e({...t,loading:!0}),n().then(r=>{const o=r;o.success&&e({data:o.data,loaded:!0,loading:!1})}).catch(()=>e({...t,loaded:!0,loading:!1})))},[a,t,n]),{cart:t}};var b6=X2(),nX2=iS();const WL={defaultDateFormat:"dd/MM/yyyy",defaultDateTimeFormat:"dd/MM/yyyy, HH:mm",tutorPlaceholderPath:"/images/tutorblind.png"},pr=(t,e=WL.defaultDateFormat)=>t?fc(new Date(t),e):"",p40=(t,e,a)=>!t||!e?!1:pr(t,a)===pr(e,a),m40=t=>{const e=[];return t.forEach(a=>{const n=fc(new Date(a),"MM/dd/yyyy"),r=e.find(o=>fc(new Date(o.date),"MM/dd/yyyy")===n);r?r.times.push(new Date(a)):e.push({date:n,times:[new Date(a)]})}),e},z40=t=>t.filter(e=>B11(e,new Date)),M40=t=>t.sort((e,a)=>e.getTime()-a.getTime()),H40=t=>{const e=/(\d+)\s+(day|hour|minute|second|week|year)s?/g,a=Array.from(t.matchAll(e)),n={};let r=!1;if(a.forEach(o=>{r=!0;const l=parseInt(o[1]),c=o[2];n[c]?n[c]+=l:n[c]=l}),!r){const o=/\d+/g;Array.from(t.matchAll(o)).forEach(c=>{const h=parseInt(c[0]);n.hour=h})}return n},w40=(t,e)=>M8(new Date(t),{years:e.year||0,months:e.month||0,weeks:e.week||0,days:e.day||0,hours:e.hour||0,minutes:e.minute||0,seconds:e.second||0}),$d=t=>{var e;return t?(e=t.items)==null?void 0:e.map(a=>a.name).join(", "):""},E$=t=>{var n,r,o,l,c,h,s,u,v,f,d,M,g,H,p,m,z,w,x,y,V,C,L,B,S,T,E,$,q,U,Y,F,X,R,i1,t1,A,o1,h1,a1,M1,s1,z1,m1,S1,I1,U1,P1,G1;const a=`Notifications.${t.event}`;switch(t.event){case x2.EventTypes.StationaryEventAuthorAssigned:return{translation:a,object:{name:((n=t.data.stationaryEvent)==null?void 0:n.name)||""}};case x2.EventTypes.StationaryEventAuthorUnassigned:return{translation:a,object:{name:((r=t.data.stationaryEvent)==null?void 0:r.name)||""}};case x2.EventTypes.StationaryEventAssigned:return{translation:a,object:{name:((o=t.data.stationaryEvent)==null?void 0:o.name)||""}};case x2.EventTypes.StationaryEventUnassigned:return{translation:a,object:{name:((l=t.data.stationaryEvent)==null?void 0:l.name)||""}};case x2.EventTypes.AbandonedCartEvent:return{translation:a};case x2.EventTypes.OrderCancelled:return{translation:a};case x2.EventTypes.OrderCreated:return{translation:a};case x2.EventTypes.OrderPaid:return{translation:a,object:{name:$d(t.data.order)||""}};case x2.EventTypes.ProductableAttached:return{translation:a,object:{name:((c=t.data.productable)==null?void 0:c.name)||""}};case x2.EventTypes.ProductableDetached:return{translation:a,object:{name:((h=t.data.productable)==null?void 0:h.name)||""}};case x2.EventTypes.ProductAddedToCart:return{translation:a,object:{name:((s=t.data.product)==null?void 0:s.name)||""}};case x2.EventTypes.ProductAttached:return{translation:a,object:{name:((u=t.data.product)==null?void 0:u.name)||""}};case x2.EventTypes.ProductBought:return{translation:a,object:{name:((v=t.data.product)==null?void 0:v.name)||""}};case x2.EventTypes.ProductDetached:return{translation:a,object:{name:((f=t.data.product)==null?void 0:f.name)||""}};case x2.EventTypes.ProductRemovedFromCart:return{translation:a,object:{name:((d=t.data.product)==null?void 0:d.name)||""}};case x2.EventTypes.PaymentCancelled:return{translation:a,object:{amount:((M=t.data.payment)==null?void 0:M.amount)||0,name:$d((g=t.data.payment)==null?void 0:g.payable)}};case x2.EventTypes.PaymentFailed:return{translation:a,object:{amount:((H=t.data.payment)==null?void 0:H.amount)||0,name:$d((p=t.data.payment)==null?void 0:p.payable)}};case x2.EventTypes.PaymentRegistered:return{translation:a,object:{amount:((m=t.data.payment)==null?void 0:m.amount)||0}};case x2.EventTypes.PaymentSuccess:return{translation:a,object:{amount:((z=t.data.payment)==null?void 0:z.amount)||0,name:$d((w=t.data.payment)==null?void 0:w.payable)}};case x2.EventTypes.CourseAccessFinished:return{translation:a,object:{name:((x=t.data.course)==null?void 0:x.title)||""}};case x2.EventTypes.CourseAccessStarted:return{translation:a,object:{name:((y=t.data.course)==null?void 0:y.title)||""}};case x2.EventTypes.CourseAssigned:return{translation:a,object:{name:((V=t.data.course)==null?void 0:V.title)||""}};case x2.EventTypes.CourseDeadlineSoon:return{translation:a,object:{name:((C=t.data.course)==null?void 0:C.title)||"",date:pr((L=t.data.course)==null?void 0:L.active_to,WL.defaultDateTimeFormat)}};case x2.EventTypes.CoursedPublished:return{translation:a,object:{name:((B=t.data.course)==null?void 0:B.title)||""}};case x2.EventTypes.CourseFinished:return{translation:a,object:{name:((S=t.data.course)==null?void 0:S.title)||""}};case x2.EventTypes.CourseStarted:return{translation:a,object:{name:((T=t.data.course)==null?void 0:T.title)||""}};case x2.EventTypes.CourseStatusChanged:return{translation:a,object:{name:((E=t.data.course)==null?void 0:E.title)||""}};case x2.EventTypes.CourseTutorAssigned:return{translation:a,object:{name:(($=t.data.course)==null?void 0:$.title)||""}};case x2.EventTypes.CourseTutorUnassigned:return{translation:a,object:{name:((q=t.data.course)==null?void 0:q.title)||""}};case x2.EventTypes.CourseUnassigned:return{translation:a,object:{name:((U=t.data.course)==null?void 0:U.title)||""}};case x2.EventTypes.TopicFinished:return{translation:a,object:{name:((Y=t.data.course)==null?void 0:Y.title)||""}};case x2.EventTypes.TopicTypeChanged:return{translation:a,object:{name:((F=t.data.topicContent)==null?void 0:F.value)||""}};case x2.EventTypes.ReportTerm:return{translation:a,object:{name:((X=t.data.consultationTerm)==null?void 0:X.consultation.name)||"",date:pr((R=t.data.consultationTerm)==null?void 0:R.executed_at,WL.defaultDateTimeFormat),user:`${(t1=(i1=t.data.consultationTerm)==null?void 0:i1.user)==null?void 0:t1.first_name} ${(o1=(A=t.data.consultationTerm)==null?void 0:A.user)==null?void 0:o1.last_name}`}};case x2.EventTypes.ApprovedTerm:return{translation:a,object:{date:pr((h1=t.data.consultationTerm)==null?void 0:h1.executed_at)||""}};case x2.EventTypes.ApprovedTermWithTrainer:return{translation:a,object:{date:pr((a1=t.data.consultationTerm)==null?void 0:a1.executed_at)||""}};case x2.EventTypes.ChangeTerm:return{translation:a,object:{date:pr((M1=t.data.consultationTerm)==null?void 0:M1.executed_at)||""}};case x2.EventTypes.RejectTerm:return{translation:a,object:{date:pr((s1=t.data.consultationTerm)==null?void 0:s1.executed_at)||""}};case x2.EventTypes.RejectTermWithTrainer:return{translation:a,object:{date:pr((z1=t.data.consultationTerm)==null?void 0:z1.executed_at)||""}};case x2.EventTypes.ReminderAboutTerm:return{translation:a,object:{date:pr((m1=t.data.consultationTerm)==null?void 0:m1.executed_at)||""}};case x2.EventTypes.ReminderTrainerAboutTerm:return{translation:a,object:{date:pr((S1=t.data.consultationTerm)==null?void 0:S1.executed_at)||""}};case x2.EventTypes.BulkNotification:return{translation:a,object:{name:((G1=(P1=(U1=(I1=t==null?void 0:t.data)==null?void 0:I1.notification)==null?void 0:U1.sections)==null?void 0:P1.find(rt=>rt.key==="title"))==null?void 0:G1.value)||""}};default:return{translation:a}}},P$=(t,e=2,a)=>{if(!t||typeof t!="number")return 0;const n=Math.round(t*Math.pow(10,e))/Math.pow(10,e);return a?n/a:n},y40=(t,e)=>t?(e?P$(t,2,100)*(1+e/100):P$(t,2,100)).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}):0,x40=(t,e)=>e.authors.findIndex(a=>a.id===t)!==-1,V40=t=>{const e=t?hM(t.getTime(),new Date().getTime()):null,a=t?Zs(t.getTime(),new Date().getTime()):null,n=t?Qs(t.getTime(),new Date().getTime()):null;return(e!==null&&e!==0?[e,"day"]:null)??(a!==null&&a!==0?[a,"hour"]:null)??(n!==null&&n!==0?[n,"minute"]:null)},C40=new Intl.RelativeTimeFormat("pl",{style:"short"}),rX2=ma.div` display: flex; justify-content: center; align-items: center; height: 100%; width: 100%; -`,rX2=({width:t,height:e})=>{const a=N_();return I.jsx(nX2,{style:{width:t||"100%",height:e||"100%"},children:I.jsx(_h.Spin,{color:a.primaryColor})})};function iX2(){var t=new Map;function e(a){var n=a.root,r=a.rootMargin,o=a.threshold,l=t.get(n);l||(l=new Map,t.set(n,l));var c=JSON.stringify({rootMargin:r,threshold:o}),h=l.get(c);if(!h){var s=new Map,u=new IntersectionObserver(function(v){v.forEach(function(f){var d=s.get(f.target);d==null||d(f)})},{root:n,rootMargin:r,threshold:o});h={observer:u,entryCallbacks:s},l.set(c,h)}return{observe:function(f,d){var M,g;(M=h)==null||M.entryCallbacks.set(f,d),(g=h)==null||g.observer.observe(f)},unobserve:function(f){var d,M;(d=h)==null||d.entryCallbacks.delete(f),(M=h)==null||M.observer.unobserve(f)}}}return{getObserver:e}}var oX2="0px",lX2=[0],cX2=iX2();function sX2(t){var e,a,n=(e=t==null?void 0:t.rootMargin)!=null?e:oX2,r=(a=t==null?void 0:t.threshold)!=null?a:lX2,o=_.useRef(null),l=_.useRef(null),c=_.useRef(null),h=_.useState(),s=h[0],u=h[1],v=_.useCallback(function(){var g=o.current;if(!g){u(void 0);return}var H=cX2.getObserver({root:l.current,rootMargin:n,threshold:r});H.observe(g,function(p){u(p)}),c.current=H},[n,r]),f=_.useCallback(function(){var g=c.current,H=o.current;H&&(g==null||g.unobserve(H)),c.current=null},[]),d=_.useCallback(function(g){f(),o.current=g,v()},[v,f]),M=_.useCallback(function(g){f(),l.current=g,v()},[v,f]);return[d,{entry:s,rootRef:M}]}function qL(){return qL=Object.assign||function(t){for(var e=1;e=e||V<0||v&&C>=o}function p(){var y=AV();if(H(y))return m(y);c=setTimeout(p,g(y))}function m(y){return c=void 0,f&&n?d(y):(n=r=void 0,l)}function z(){c!==void 0&&clearTimeout(c),s=0,n=h=r=c=void 0}function w(){return c===void 0?l:m(AV())}function x(){var y=AV(),V=H(y);if(n=arguments,r=this,h=y,V){if(c===void 0)return M(h);if(v)return clearTimeout(c),c=setTimeout(p,e),d(h)}return c===void 0&&(c=setTimeout(p,e)),l}return x.cancel=z,x.flush=w,x}var uJ2=hJ2;const vJ2=R0(uJ2),dJ2=()=>{var M,g,H,p;const[t,e]=_.useState([]),{fetchNotifications:a,notifications:n,readNotify:r,readAllNotifications:o}=_.useContext(y4.EscolaLMSContext),l=n.loading,c=((g=(M=n.list)==null?void 0:M.meta)==null?void 0:g.current_page)||1,h=((p=(H=n.list)==null?void 0:H.meta)==null?void 0:p.last_page)||1,s=c{a({page:1,per_page:30}).then(m=>{m.success&&e(m.data)})},[]);const u=vJ2(async()=>{const m=await a({page:c+1,per_page:10});m.success&&e([...t,...m.data])},300),v=_.useCallback(m=>{r(m),e(z=>z.filter(w=>w.id!==m))},[r]),f=_.useCallback(()=>{o(),e([])},[o]),[d]=vX2({loading:l,hasNextPage:s,onLoadMore:u,rootMargin:"0px 0px 400px 0px"});return{list:t,loading:l,handleReadNotify:v,hasNextPage:s,handleReadAllNotify:f,sentryRef:d}},fJ2=({onClose:t})=>{const{list:e,loading:a,handleReadNotify:n,handleReadAllNotify:r,hasNextPage:o,sentryRef:l}=dJ2(),{t:c}=r9();return I.jsxs(I.Fragment,{children:[I.jsxs("div",{className:"notifications-drawer__content__header",children:[I.jsx(b6.Title,{level:2,children:c("Notifications.notifications")}),I.jsx("button",{onClick:t,title:"closebutton",children:I.jsx(FZ2,{})})]}),I.jsxs("div",{className:"notifications-drawer__content--clear-all",children:[e.length>0&&!a&&I.jsx("button",{onClick:r,children:c("Notifications.readAll")}),e.length===0&&!a&&I.jsx("div",{children:I.jsxs(b6.Text,{children:[" ",c("Notifications.empty")]})})]}),I.jsxs("div",{className:"notifications-drawer__content--list",children:[e==null?void 0:e.map(h=>I.jsx("div",{ref:l,children:I.jsx(aX2.Notification,{notification:{id:h.id,unread:!0,title:c(E$(h).translation,E$(h).object),description:"",dateTime:new Date(h.created_at)},onClick:()=>{n(h.id)},maxLengthDesc:60})},h.id)),(a||o)&&I.jsx(rX2,{})]})]})},gJ2=Om` +`,iX2=({width:t,height:e})=>{const a=N_();return I.jsx(rX2,{style:{width:t||"100%",height:e||"100%"},children:I.jsx(_h.Spin,{color:a.primaryColor})})};function oX2(){var t=new Map;function e(a){var n=a.root,r=a.rootMargin,o=a.threshold,l=t.get(n);l||(l=new Map,t.set(n,l));var c=JSON.stringify({rootMargin:r,threshold:o}),h=l.get(c);if(!h){var s=new Map,u=new IntersectionObserver(function(v){v.forEach(function(f){var d=s.get(f.target);d==null||d(f)})},{root:n,rootMargin:r,threshold:o});h={observer:u,entryCallbacks:s},l.set(c,h)}return{observe:function(f,d){var M,g;(M=h)==null||M.entryCallbacks.set(f,d),(g=h)==null||g.observer.observe(f)},unobserve:function(f){var d,M;(d=h)==null||d.entryCallbacks.delete(f),(M=h)==null||M.observer.unobserve(f)}}}return{getObserver:e}}var lX2="0px",cX2=[0],sX2=oX2();function hX2(t){var e,a,n=(e=t==null?void 0:t.rootMargin)!=null?e:lX2,r=(a=t==null?void 0:t.threshold)!=null?a:cX2,o=_.useRef(null),l=_.useRef(null),c=_.useRef(null),h=_.useState(),s=h[0],u=h[1],v=_.useCallback(function(){var g=o.current;if(!g){u(void 0);return}var H=sX2.getObserver({root:l.current,rootMargin:n,threshold:r});H.observe(g,function(p){u(p)}),c.current=H},[n,r]),f=_.useCallback(function(){var g=c.current,H=o.current;H&&(g==null||g.unobserve(H)),c.current=null},[]),d=_.useCallback(function(g){f(),o.current=g,v()},[v,f]),M=_.useCallback(function(g){f(),l.current=g,v()},[v,f]);return[d,{entry:s,rootRef:M}]}function qL(){return qL=Object.assign||function(t){for(var e=1;e=e||V<0||v&&C>=o}function p(){var y=AV();if(H(y))return m(y);c=setTimeout(p,g(y))}function m(y){return c=void 0,f&&n?d(y):(n=r=void 0,l)}function z(){c!==void 0&&clearTimeout(c),s=0,n=h=r=c=void 0}function w(){return c===void 0?l:m(AV())}function x(){var y=AV(),V=H(y);if(n=arguments,r=this,h=y,V){if(c===void 0)return M(h);if(v)return clearTimeout(c),c=setTimeout(p,e),d(h)}return c===void 0&&(c=setTimeout(p,e)),l}return x.cancel=z,x.flush=w,x}var vJ2=uJ2;const dJ2=R0(vJ2),fJ2=()=>{var M,g,H,p;const[t,e]=_.useState([]),{fetchNotifications:a,notifications:n,readNotify:r,readAllNotifications:o}=_.useContext(y4.EscolaLMSContext),l=n.loading,c=((g=(M=n.list)==null?void 0:M.meta)==null?void 0:g.current_page)||1,h=((p=(H=n.list)==null?void 0:H.meta)==null?void 0:p.last_page)||1,s=c{a({page:1,per_page:30}).then(m=>{m.success&&e(m.data)})},[]);const u=dJ2(async()=>{const m=await a({page:c+1,per_page:10});m.success&&e([...t,...m.data])},300),v=_.useCallback(m=>{r(m),e(z=>z.filter(w=>w.id!==m))},[r]),f=_.useCallback(()=>{o(),e([])},[o]),[d]=dX2({loading:l,hasNextPage:s,onLoadMore:u,rootMargin:"0px 0px 400px 0px"});return{list:t,loading:l,handleReadNotify:v,hasNextPage:s,handleReadAllNotify:f,sentryRef:d}},gJ2=({onClose:t})=>{const{list:e,loading:a,handleReadNotify:n,handleReadAllNotify:r,hasNextPage:o,sentryRef:l}=fJ2(),{t:c}=r9();return I.jsxs(I.Fragment,{children:[I.jsxs("div",{className:"notifications-drawer__content__header",children:[I.jsx(b6.Title,{level:2,children:c("Notifications.notifications")}),I.jsx("button",{onClick:t,title:"closebutton",children:I.jsx($Z2,{})})]}),I.jsxs("div",{className:"notifications-drawer__content--clear-all",children:[e.length>0&&!a&&I.jsx("button",{onClick:r,children:c("Notifications.readAll")}),e.length===0&&!a&&I.jsx("div",{children:I.jsxs(b6.Text,{children:[" ",c("Notifications.empty")]})})]}),I.jsxs("div",{className:"notifications-drawer__content--list",children:[e==null?void 0:e.map(h=>I.jsx("div",{ref:l,children:I.jsx(nX2.Notification,{notification:{id:h.id,unread:!0,title:c(E$(h).translation,E$(h).object),description:"",dateTime:new Date(h.created_at)},onClick:()=>{n(h.id)},maxLengthDesc:60})},h.id)),(a||o)&&I.jsx(iX2,{})]})]})},pJ2=Om` .drawer-handle { display: none; } @@ -9058,12 +9058,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } -`,pJ2=({isOpen:t,onClose:e})=>{const{fetchNotifications:a}=_.useContext(y4.EscolaLMSContext),n=()=>{e(),a()};return I.jsxs(Nm,{open:t,onClose:n,width:On?"100%":"500px",placement:"right",className:"notifications-drawer",classNames:{wrapper:"notifications-drawer",content:"notifications-drawer__content"},children:[I.jsx(gJ2,{}),I.jsx(fJ2,{onClose:n})]})},mJ2=ma.div` +`,mJ2=({isOpen:t,onClose:e})=>{const{fetchNotifications:a}=_.useContext(y4.EscolaLMSContext),n=()=>{e(),a()};return I.jsxs(Nm,{open:t,onClose:n,width:On?"100%":"500px",placement:"right",className:"notifications-drawer",classNames:{wrapper:"notifications-drawer",content:"notifications-drawer__content"},children:[I.jsx(pJ2,{}),I.jsx(gJ2,{onClose:n})]})},zJ2=ma.div` .close { all: unset; cursor: pointer; } -`,zJ2=Om` +`,MJ2=Om` .drawer-handle { display: none; } @@ -9074,7 +9074,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho bottom: 0; border-radius: 10px 10px 0px 0px; } -`,MJ2=({children:t,isOpen:e,onClose:a,height:n})=>I.jsxs(mJ2,{children:[I.jsx(zJ2,{$height:n}),I.jsx(Nm,{open:e,classNames:{wrapper:"mobile-drawer-drawer-wrapper",content:"drawer-content"},onClose:a,placement:"bottom",children:t})]}),$$=ma.header` +`,HJ2=({children:t,isOpen:e,onClose:a,height:n})=>I.jsxs(zJ2,{children:[I.jsx(MJ2,{$height:n}),I.jsx(Nm,{open:e,classNames:{wrapper:"mobile-drawer-drawer-wrapper",content:"drawer-content"},onClose:a,placement:"bottom",children:t})]}),$$=ma.header` width: 100%; position: fixed; top: 0; @@ -9241,7 +9241,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } } -`,HJ2=ma.div` +`,wJ2=ma.div` span { font-size: 13px; font-family: ${({theme:t})=>t.font}; @@ -9251,13 +9251,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho display: block; margin-bottom: 8px; } -`,wJ2=ma.div` +`,yJ2=ma.div` padding: 0px 25px; margin-top: 18px; > div { width: auto; } -`,yJ2=ma.div` +`,xJ2=ma.div` padding-top: 35px; ul { li { @@ -9277,7 +9277,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } } -`,xJ2=()=>{var g,H,p,m,z,w,x,y,V,C,L,B,S,T,E,$;const{t}=r9(),{handleLanguageChange:e}=tX2(),{notifications:a}=_.useContext(ic.EscolaLMSContext),{user:n,settings:r,logout:o}=_.useContext(ic.EscolaLMSContext),l=n.value,c=i61(),h=N_(),{cart:s}=eX2(),[u,v]=_.useState(!1),[f,d]=_.useState(!1),M=[{title:I.jsx(pf,{to:l0.home,children:I.jsx(S0.Text,{noMargin:!0,bold:!0,children:t("Menu.HomePage")})}),key:"menu-1"},{title:I.jsx(pf,{to:l0.courses,children:I.jsx(S0.Text,{noMargin:!0,bold:!0,children:t("Menu.Courses")})}),key:"menu-2"},{title:l?null:I.jsxs(HJ2,{children:[I.jsx(Oe.Button,{mode:"primary",block:!0,onClick:()=>c.push(l0.login),children:t("Header.Login")}),I.jsx("span",{children:t("Login.NoAccount")}),I.jsx(Oe.Button,{mode:"outline",block:!0,onClick:()=>c.push(l0.register),children:t("Login.Signup")})]}),key:"menuItem3"}];return On?I.jsxs($$,{children:[I.jsx(z21,{mobile:!0,logo:{src:((H=(g=r==null?void 0:r.value)==null?void 0:g.global)==null?void 0:H.logo)||YE,width:150,height:50,onClick:()=>c.push(l0.home),alt:"Logo"},cart:l!=null&&l.id?I.jsx("div",{className:"icons-container",children:I.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>c.push(l0.cart),"data-tooltip":String((p=s.data)==null?void 0:p.items.length),"aria-label":t("CoursePage.GoToCheckout"),children:[I.jsx(x$,{mode:h.mode}),s.data&&((m=s.data.items)==null?void 0:m.length)>0?I.jsx("span",{children:s.data.items.length}):null]})}):null,notification:l!=null&&l.id?I.jsx("div",{className:"icons-container",children:I.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>c.push(l0.myNotifications),"data-tooltip":String((z=a.list)==null?void 0:z.meta.total),"aria-label":t("CoursePage.Notifications"),children:[I.jsx(V$,{mode:h.mode}),(w=a.list)!=null&&w.meta.total&&((x=a.list)==null?void 0:x.meta.total)>0?I.jsx("span",{children:(y=a.list)==null?void 0:y.meta.total}):null]})}):null,profile:l!=null&&l.id?I.jsx("div",{className:"icons-container",children:I.jsx("button",{type:"button",className:"cart-icon",onClick:()=>d(!0),"aria-label":t("CoursePage.GoToCheckout"),children:l!=null&&l.avatar?I.jsx(Rs.Avatar,{src:l.avatar,alt:l.first_name,size:"superSmall",className:"user-avatar"}):I.jsx(C$,{mode:h.mode})})}):null,menuItems:M}),I.jsx(wJ2,{children:I.jsx(DL.SearchCourses,{onItemSelected:U=>c.push(`/courses/${U.id}`),onInputSubmitted:U=>c.push(`/courses/?title=${U}`)})}),I.jsx(MJ2,{isOpen:f,onClose:()=>d(!1),height:"40vh",children:I.jsx(yJ2,{children:I.jsxs("ul",{children:[I.jsx("li",{children:I.jsx(D9,{to:l0.myProfile,children:t("Navbar.MyCourses")})}),I.jsx("li",{children:I.jsx(D9,{to:l0.myCertificates,children:t("Navbar.MyCertificates")})}),I.jsx("li",{children:I.jsx(D9,{to:l0.myOrders,children:t("Navbar.MyOrders")})}),I.jsx("li",{children:I.jsx(D9,{to:l0.myData,children:t("Navbar.EditProfile")})}),r.value.config.termsPage&&I.jsx("li",{children:I.jsx(D9,{to:`/${r.value.config.termsPage}`,children:t("Terms")})}),I.jsx("li",{children:I.jsx("button",{onClick:()=>o().then(()=>c.push(l0.home)),children:t("Navbar.Logout")})})]})})})]}):I.jsxs($$,{children:[I.jsxs(z01,{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},children:[I.jsx(pf,{to:"/","aria-label":t("Go to the main page"),children:I.jsx("img",{src:((C=(V=r==null?void 0:r.value)==null?void 0:V.global)==null?void 0:C.logo)||YE,alt:"Logo",className:"logo"})}),I.jsx("div",{className:"search-container",children:I.jsx(DL.SearchCourses,{onItemSelected:U=>c.push(`/courses/${U.id}`),onInputSubmitted:U=>c.push(`/courses/?title=${U}`)})}),I.jsxs("div",{className:"menu-container",children:[I.jsxs("nav",{className:"navigation",children:[I.jsx(b6.DropdownMenu,{menuItems:[{id:1,content:t("Menu.HomePage"),redirect:l0.home},{id:2,content:t("Menu.Courses"),redirect:l0.courses}],onChange:U=>{U.redirect&&U.redirect!==""&&c.push(U==null?void 0:U.redirect)},child:I.jsxs(Oe.Button,{mode:"icon",className:"dropdown",children:["Menu ",I.jsx(b6.Icon,{name:"hamburger"})]})}),I.jsx(b6.DropdownMenu,{menuItems:[{id:"pl",content:"Polski"},{id:"en",content:"English"}],onChange:U=>e({label:String(U.content),value:String(U.id)}),child:I.jsxs(Oe.Button,{mode:"icon",className:"dropdown",children:[t("Menu.Language")," ",I.jsx(IZ2,{mode:h.mode})]})}),l&&I.jsx("div",{className:"icons-container",children:I.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>c.push(l0.cart),"data-tooltip":String((L=s.data)==null?void 0:L.items.length),"aria-label":t("CoursePage.GoToCheckout"),children:[I.jsx(x$,{mode:h.mode}),s.data&&((B=s.data.items)==null?void 0:B.length)>0?I.jsx("span",{children:s.data.items.length}):null]})}),l&&I.jsx("div",{className:"icons-container",children:I.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>v(!u),"data-tooltip":String((S=a.list)==null?void 0:S.meta.total),"aria-label":t("CoursePage.GoToCheckout"),children:[I.jsx(V$,{mode:h.mode}),(T=a.list)!=null&&T.meta.total&&((E=a.list)==null?void 0:E.meta.total)>0?I.jsx("span",{children:($=a.list)==null?void 0:$.meta.total}):null]})}),(l==null?void 0:l.id)&&I.jsx(b6.DropdownMenu,{menuItems:[{id:1,content:t("Navbar.MyProfile"),redirect:l0.myOrders},{id:2,content:t("Navbar.MyCourses"),redirect:l0.myProfile},{id:10,content:t("Navbar.Logout"),redirect:l0.logout}],onChange:U=>U.redirect&&U.redirect!=="logout"?c.push(U.redirect):o().then(()=>c.push(l0.home)),child:I.jsx(Oe.Button,{mode:"icon",className:"dropdown",children:l!=null&&l.avatar?I.jsx(Rs.Avatar,{src:l.avatar,alt:l.first_name,size:"superSmall",className:"user-avatar"}):I.jsx(C$,{mode:h.mode})})})]}),!(l!=null&&l.id)&&I.jsxs("div",{className:"not-logged-container",children:[I.jsx(Oe.Button,{mode:"secondary",onClick:()=>c.push(l0.login),children:t("Header.Login")}),I.jsx(Oe.Button,{mode:"secondary outline",onClick:()=>c.push(l0.register),children:t("Header.Register")})]})]})," "]}),I.jsx(pJ2,{isOpen:u,onClose:()=>v(!1)})]})},VJ2=ma.footer` +`,VJ2=()=>{var g,H,p,m,z,w,x,y,V,C,L,B,S,T,E,$,q,U,Y,F;const{t}=r9(),{handleLanguageChange:e}=eX2(),{notifications:a}=_.useContext(ic.EscolaLMSContext),{user:n,settings:r,logout:o}=_.useContext(ic.EscolaLMSContext),l=n==null?void 0:n.value,c=i61(),h=N_(),{cart:s}=aX2(),[u,v]=_.useState(!1),[f,d]=_.useState(!1);_.useEffect(()=>{l&&l.id&&!l.isOnboardingCompleted&&setTimeout(()=>{c.push(e0.onboarding)},1e3)},[l,c]);const M=[{title:I.jsx(pf,{to:e0.home,children:I.jsx(S0.Text,{noMargin:!0,bold:!0,children:t("Menu.HomePage")})}),key:"menu-1"},{title:I.jsx(pf,{to:e0.courses,children:I.jsx(S0.Text,{noMargin:!0,bold:!0,children:t("Menu.Courses")})}),key:"menu-2"},{title:l?null:I.jsxs(wJ2,{children:[I.jsx(Oe.Button,{mode:"primary",block:!0,onClick:()=>c.push(e0.login),children:t("Header.Login")}),I.jsx("span",{children:t("Login.NoAccount")}),I.jsx(Oe.Button,{mode:"outline",block:!0,onClick:()=>c.push(e0.register),children:t("Login.Signup")})]}),key:"menuItem3"}];return On?I.jsxs($$,{children:[I.jsx(z21,{mobile:!0,logo:{src:((H=(g=r==null?void 0:r.value)==null?void 0:g.global)==null?void 0:H.logo)||YE,width:150,height:50,onClick:()=>c.push(e0.home),alt:"Logo"},cart:l!=null&&l.id?I.jsx("div",{className:"icons-container",children:I.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>c.push(e0.cart),"data-tooltip":String((p=s.data)==null?void 0:p.items.length),"aria-label":t("CoursePage.GoToCheckout"),children:[I.jsx(x$,{mode:h.mode}),s.data&&((m=s.data.items)==null?void 0:m.length)>0?I.jsx("span",{children:s.data.items.length}):null]})}):null,notification:l!=null&&l.id?I.jsx("div",{className:"icons-container",children:I.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>c.push(e0.myNotifications),"data-tooltip":String((z=a.list)==null?void 0:z.meta.total),"aria-label":t("CoursePage.Notifications"),children:[I.jsx(V$,{mode:h.mode}),(w=a.list)!=null&&w.meta.total&&((x=a.list)==null?void 0:x.meta.total)>0?I.jsx("span",{children:(y=a.list)==null?void 0:y.meta.total}):null]})}):null,profile:l!=null&&l.id?I.jsx("div",{className:"icons-container",children:I.jsx("button",{type:"button",className:"cart-icon",onClick:()=>d(!0),"aria-label":t("CoursePage.GoToCheckout"),children:l!=null&&l.avatar?I.jsx(Rs.Avatar,{src:l.avatar,alt:l.first_name,size:"superSmall",className:"user-avatar"}):I.jsx(C$,{mode:h.mode})})}):null,menuItems:M}),I.jsx(yJ2,{children:I.jsx(DL.SearchCourses,{onItemSelected:X=>c.push(`/courses/${X.id}`),onInputSubmitted:X=>c.push(`/courses/?title=${X}`)})}),I.jsx(HJ2,{isOpen:f,onClose:()=>d(!1),height:"40vh",children:I.jsx(xJ2,{children:I.jsxs("ul",{children:[I.jsx("li",{children:I.jsx(D9,{to:e0.myProfile,children:t("Navbar.MyCourses")})}),I.jsx("li",{children:I.jsx(D9,{to:e0.myCertificates,children:t("Navbar.MyCertificates")})}),I.jsx("li",{children:I.jsx(D9,{to:e0.myOrders,children:t("Navbar.MyOrders")})}),I.jsx("li",{children:I.jsx(D9,{to:e0.myData,children:t("Navbar.EditProfile")})}),((C=(V=r==null?void 0:r.value)==null?void 0:V.config)==null?void 0:C.termsPage)&&I.jsx("li",{children:I.jsx(D9,{to:`/${(B=(L=r==null?void 0:r.value)==null?void 0:L.config)==null?void 0:B.termsPage}`,children:t("Terms")})}),I.jsx("li",{children:I.jsx("button",{onClick:()=>o().then(()=>c.push(e0.home)),children:t("Navbar.Logout")})})]})})})]}):I.jsxs($$,{children:[I.jsxs(z01,{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},children:[I.jsx(pf,{to:"/","aria-label":t("Go to the main page"),children:I.jsx("img",{src:((T=(S=r==null?void 0:r.value)==null?void 0:S.global)==null?void 0:T.logo)||YE,alt:"Logo",className:"logo"})}),I.jsx("div",{className:"search-container",children:I.jsx(DL.SearchCourses,{onItemSelected:X=>c.push(`/courses/${X.id}`),onInputSubmitted:X=>c.push(`/courses/?title=${X}`)})}),I.jsxs("div",{className:"menu-container",children:[I.jsxs("nav",{className:"navigation",children:[I.jsx(b6.DropdownMenu,{menuItems:[{id:1,content:t("Menu.HomePage"),redirect:e0.home},{id:2,content:t("Menu.Courses"),redirect:e0.courses}],onChange:X=>{X.redirect&&X.redirect!==""&&c.push(X==null?void 0:X.redirect)},child:I.jsxs(Oe.Button,{mode:"icon",className:"dropdown",children:["Menu ",I.jsx(b6.Icon,{name:"hamburger"})]})}),I.jsx(b6.DropdownMenu,{menuItems:[{id:"pl",content:"Polski"},{id:"en",content:"English"}],onChange:X=>e({label:String(X.content),value:String(X.id)}),child:I.jsxs(Oe.Button,{mode:"icon",className:"dropdown",children:[t("Menu.Language")," ",I.jsx(FZ2,{mode:h.mode})]})}),l&&I.jsx("div",{className:"icons-container",children:I.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>c.push(e0.cart),"data-tooltip":String((E=s.data)==null?void 0:E.items.length),"aria-label":t("CoursePage.GoToCheckout"),children:[I.jsx(x$,{mode:h.mode}),s.data&&(($=s.data.items)==null?void 0:$.length)>0?I.jsx("span",{children:s.data.items.length}):null]})}),l&&I.jsx("div",{className:"icons-container",children:I.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>v(!u),"data-tooltip":String((q=a.list)==null?void 0:q.meta.total),"aria-label":t("CoursePage.GoToCheckout"),children:[I.jsx(V$,{mode:h.mode}),(U=a.list)!=null&&U.meta.total&&((Y=a.list)==null?void 0:Y.meta.total)>0?I.jsx("span",{children:(F=a.list)==null?void 0:F.meta.total}):null]})}),(l==null?void 0:l.id)&&I.jsx(b6.DropdownMenu,{menuItems:[{id:1,content:t("Navbar.MyProfile"),redirect:e0.myOrders},{id:2,content:t("Navbar.MyCourses"),redirect:e0.myProfile},{id:10,content:t("Navbar.Logout"),redirect:e0.logout}],onChange:X=>X.redirect&&X.redirect!=="logout"?c.push(X.redirect):o().then(()=>c.push(e0.home)),child:I.jsx(Oe.Button,{mode:"icon",className:"dropdown",children:l!=null&&l.avatar?I.jsx(Rs.Avatar,{src:l.avatar,alt:l.first_name,size:"superSmall",className:"user-avatar"}):I.jsx(C$,{mode:h.mode})})})]}),!(l!=null&&l.id)&&I.jsxs("div",{className:"not-logged-container",children:[I.jsx(Oe.Button,{mode:"secondary",onClick:()=>c.push(e0.login),children:t("Header.Login")}),I.jsx(Oe.Button,{mode:"secondary outline",onClick:()=>c.push(e0.register),children:t("Header.Register")})]})]})," "]}),I.jsx(mJ2,{isOpen:u,onClose:()=>v(!1)})]})},CJ2=ma.footer` padding: ${On?"50px 0 70px":"50px 0 50px"}; z-index: 50; position: relative; @@ -9331,7 +9331,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin-left: ${On?"10px":"27px"}; } } -`,CJ2=()=>{var h,s,u,v;const{settings:t,fetchPages:e,pages:a,user:n}=_.useContext(y4.EscolaLMSContext),{t:r,i18n:o}=r9();_.useEffect(()=>{e()},[]);const l=_.useMemo(()=>{var f,d;return(((d=(f=t==null?void 0:t.value)==null?void 0:f.footerMenu)==null?void 0:d.menu)??[]).filter(M=>n.value?M:!M.auth)},[(s=(h=t==null?void 0:t.value)==null?void 0:h.footerMenu)==null?void 0:s.menu,n.value]),c=(f,d)=>{if(!f)return[];const M=[];for(let g=0;g0?I.jsx(I.Fragment,{children:l.map(f=>!!f.link&&I.jsx(Aa.Link,{className:"single-link",href:f.link,children:typeof f.label=="object"&&I.jsx(S0.Text,{size:"14",children:f.label[o.language]})},f.link.toString()))}):I.jsxs(I.Fragment,{children:[I.jsx(Aa.Link,{className:"single-link",href:l0.home,children:I.jsx(S0.Text,{size:"14",children:r("Footer.HomePage")})}),I.jsx(Aa.Link,{className:"single-link",href:l0.courses,children:I.jsx(S0.Text,{size:"14",children:r("Footer.Courses")})}),n.value?I.jsx(Aa.Link,{className:"single-link",href:l0.myProfile,children:I.jsx(S0.Text,{size:"14",children:r("Footer.UserProfile")})}):I.jsxs(I.Fragment,{children:[I.jsx(Aa.Link,{className:"single-link",href:l0.login,children:I.jsx(S0.Text,{size:"14",children:r("Header.Login")})}),I.jsx(Aa.Link,{className:"single-link",href:l0.register,children:I.jsx(S0.Text,{size:"14",children:r("Header.Register")})})]}),I.jsx(Aa.Link,{className:"single-link",href:l0.cart,children:I.jsx(S0.Text,{size:"14",children:r("Footer.Cart")})})]})}),I.jsx("div",{className:"links-row pages",children:c(a.list,4).map(f=>I.jsx(Vi.Row,{children:f.map(d=>I.jsx(Vi.Col,{xs:12,sm:12,md:12,lg:3,children:I.jsx(Aa.Link,{className:"single-link",href:`/#/${d.slug}`,children:I.jsx(S0.Text,{size:"14",children:d.title})})},d.id))},f.toString()))}),I.jsxs("div",{className:"copyrights",children:[I.jsx(S0.Text,{size:"14",children:r("Footer.PoweredBy")}),I.jsx("img",{src:((v=(u=t==null?void 0:t.value)==null?void 0:u.global)==null?void 0:v.logo)||"",alt:""})]})]})})};var x01=HJ();const V40=R0(x01),bJ2=ma.aside` +`,bJ2=()=>{var h,s,u,v;const{settings:t,fetchPages:e,pages:a,user:n}=_.useContext(y4.EscolaLMSContext),{t:r,i18n:o}=r9();_.useEffect(()=>{e()},[]);const l=_.useMemo(()=>{var f,d;return(((d=(f=t==null?void 0:t.value)==null?void 0:f.footerMenu)==null?void 0:d.menu)??[]).filter(M=>n.value?M:!M.auth)},[(s=(h=t==null?void 0:t.value)==null?void 0:h.footerMenu)==null?void 0:s.menu,n.value]),c=(f,d)=>{if(!f)return[];const M=[];for(let g=0;g0?I.jsx(I.Fragment,{children:l.map(f=>!!f.link&&I.jsx(Aa.Link,{className:"single-link",href:f.link,children:typeof f.label=="object"&&I.jsx(S0.Text,{size:"14",children:f.label[o.language]})},f.link.toString()))}):I.jsxs(I.Fragment,{children:[I.jsx(Aa.Link,{className:"single-link",href:e0.home,children:I.jsx(S0.Text,{size:"14",children:r("Footer.HomePage")})}),I.jsx(Aa.Link,{className:"single-link",href:e0.courses,children:I.jsx(S0.Text,{size:"14",children:r("Footer.Courses")})}),n.value?I.jsx(Aa.Link,{className:"single-link",href:e0.myProfile,children:I.jsx(S0.Text,{size:"14",children:r("Footer.UserProfile")})}):I.jsxs(I.Fragment,{children:[I.jsx(Aa.Link,{className:"single-link",href:e0.login,children:I.jsx(S0.Text,{size:"14",children:r("Header.Login")})}),I.jsx(Aa.Link,{className:"single-link",href:e0.register,children:I.jsx(S0.Text,{size:"14",children:r("Header.Register")})})]}),I.jsx(Aa.Link,{className:"single-link",href:e0.cart,children:I.jsx(S0.Text,{size:"14",children:r("Footer.Cart")})})]})}),I.jsx("div",{className:"links-row pages",children:c(a.list,4).map(f=>I.jsx(Vi.Row,{children:f.map(d=>I.jsx(Vi.Col,{xs:12,sm:12,md:12,lg:3,children:I.jsx(Aa.Link,{className:"single-link",href:`/#/${d.slug}`,children:I.jsx(S0.Text,{size:"14",children:d.title})})},d.id))},f.toString()))}),I.jsxs("div",{className:"copyrights",children:[I.jsx(S0.Text,{size:"14",children:r("Footer.PoweredBy")}),I.jsx("img",{src:((v=(u=t==null?void 0:t.value)==null?void 0:u.global)==null?void 0:v.logo)||"",alt:""})]})]})})};var x01=HJ();const b40=R0(x01),LJ2=ma.aside` position: fixed; bottom: 0; left: 0; @@ -9350,14 +9350,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .time { margin: 0; } -`,LJ2=()=>{var l,c;const{settings:t}=_.useContext(y4.EscolaLMSContext),[e,a]=_.useState(!0),{t:n}=r9(),r=(c=(l=t==null?void 0:t.value)==null?void 0:l.config)==null?void 0:c.footerWarning,o=()=>{localStorage.setItem("hideWarning","true"),a(!1)};return!e||!r?I.jsx(W1.Fragment,{}):I.jsx(bJ2,{children:I.jsx(kJ,{time:I.jsx(Oe.Button,{mode:"outline",onClick:o,children:n("I'm aware")}),description:I.jsx(x01.MarkdownRenderer,{children:r})})})};window.ybug_settings=window.ybug_settings||{};const U$=window.VITE_APP_YBUG_ID||"01m1nn5zqystt1qq5n11";Vi.setConfiguration({maxScreenClass:"xl"});const BJ2=({children:t,metaTitle:e})=>{const{pathname:a}=KG();_.useEffect(()=>{(function(){if(window&&U$)try{window.ybug_settings={id:U$};const r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://widget.ybug.io/button/"+window.ybug_settings.id+".js";const o=document.getElementsByTagName("script")[0];o&&o.parentNode&&o.parentNode.insertBefore(r,o)}catch{}})()},[]);const n=a.includes("/course/");return I.jsxs(W1.Fragment,{children:[I.jsxs(db,{children:[I.jsx("title",{children:e?`${e} | Worlds first Headless LMS`:"Worlds first Headless LMS"}),I.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"}),I.jsx("meta",{name:"description",content:"Worlds first Headless LMS"}),I.jsx("meta",{name:"og:title",property:"og:title",content:"Worlds first Headless LMS"}),I.jsx("meta",{name:"twitter:card",content:"Worlds first Headless LMS"})]}),I.jsx(a91,{hideProgressBar:!0,position:"top-center",theme:"colored"}),I.jsxs("div",{className:"site-wrapper",children:[I.jsx(xJ2,{}),t,!n&&I.jsx(CJ2,{}),localStorage.getItem("hideWarning")!=="true"&&I.jsx(LJ2,{})]})]})},_J2=ma.div` +`,BJ2=()=>{var l,c;const{settings:t}=_.useContext(y4.EscolaLMSContext),[e,a]=_.useState(!0),{t:n}=r9(),r=(c=(l=t==null?void 0:t.value)==null?void 0:l.config)==null?void 0:c.footerWarning,o=()=>{localStorage.setItem("hideWarning","true"),a(!1)};return!e||!r?I.jsx(W1.Fragment,{}):I.jsx(LJ2,{children:I.jsx(kJ,{time:I.jsx(Oe.Button,{mode:"outline",onClick:o,children:n("I'm aware")}),description:I.jsx(x01.MarkdownRenderer,{children:r})})})};window.ybug_settings=window.ybug_settings||{};const U$=window.VITE_APP_YBUG_ID||"01m1nn5zqystt1qq5n11";Vi.setConfiguration({maxScreenClass:"xl"});const _J2=({children:t,metaTitle:e})=>{const{pathname:a}=KG();_.useEffect(()=>{(function(){if(window&&U$)try{window.ybug_settings={id:U$};const r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://widget.ybug.io/button/"+window.ybug_settings.id+".js";const o=document.getElementsByTagName("script")[0];o&&o.parentNode&&o.parentNode.insertBefore(r,o)}catch{}})()},[]);const n=a.includes("/course/");return I.jsxs(W1.Fragment,{children:[I.jsxs(db,{children:[I.jsx("title",{children:e?`${e} | Worlds first Headless LMS`:"Worlds first Headless LMS"}),I.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"}),I.jsx("meta",{name:"description",content:"Worlds first Headless LMS"}),I.jsx("meta",{name:"og:title",property:"og:title",content:"Worlds first Headless LMS"}),I.jsx("meta",{name:"twitter:card",content:"Worlds first Headless LMS"})]}),I.jsx(a91,{hideProgressBar:!0,position:"top-center",theme:"colored"}),I.jsxs("div",{className:"site-wrapper",children:[I.jsx(VJ2,{}),t,!n&&I.jsx(bJ2,{}),localStorage.getItem("hideWarning")!=="true"&&I.jsx(BJ2,{})]})]})},SJ2=ma.div` display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: center; align-content: center; -`,SJ2=()=>{const{t}=r9();return I.jsx(BJ2,{children:I.jsxs(_J2,{children:[I.jsxs($a.Title,{level:3,children:[" ",t("Loading")]}),I.jsx(_h.Spin,{})]})})},TJ2=_.lazy(()=>n0(()=>import("./index-Cp8cKdIj.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),OJ2=_.lazy(()=>n0(()=>import("./index-DyOPSetP.js"),__vite__mapDeps([]))),AJ2=_.lazy(()=>n0(()=>import("./index-Mhmp8Axw.js"),__vite__mapDeps([24,25]))),kJ2=_.lazy(()=>n0(()=>import("./index-DXx2DfZ5.js"),__vite__mapDeps([]))),EJ2=_.lazy(()=>n0(()=>import("./index-l-JxvgyX.js"),__vite__mapDeps([26,27,28,13]))),W$=_.lazy(()=>n0(()=>import("./index-mJ2TXSRS.js"),__vite__mapDeps([]))),PJ2=_.lazy(()=>n0(()=>import("./index-0H62AnVs.js"),__vite__mapDeps([29,27]))),NJ2=_.lazy(()=>n0(()=>import("./index-DXlxHsyP.js"),__vite__mapDeps([30,31,1,5,6,7,3,8,9,10,27,18,32]))),DJ2=_.lazy(()=>n0(()=>import("./index-D-wL3BMo.js"),__vite__mapDeps([33,23,15,1,7,6,8,12,13,11]))),RJ2=_.lazy(()=>n0(()=>import("./index-CkAtTtBd.js"),__vite__mapDeps([34,35,8,36,37,1,38,27,20,7,23,4,5,6,3,9,10,11,12,13]))),jJ2=_.lazy(()=>n0(()=>import("./index-BoTxagoe.js"),__vite__mapDeps([39,31,40,36,37,1,38,41]))),IJ2=_.lazy(()=>n0(()=>import("./index-Csn_KHHs.js"),__vite__mapDeps([42,31,27,1,35,43,37,44,6,45]))),FJ2=_.lazy(()=>n0(()=>import("./index-BB-Jd-Oh.js"),__vite__mapDeps([46,2,3,47,48,14,15,43,37,44,1,6,45,23]))),$J2=_.lazy(()=>n0(()=>import("./index-Dww5sJHm.js"),__vite__mapDeps([49,25]))),UJ2=_.lazy(()=>n0(()=>import("./index-CNWnSQtH.js"),__vite__mapDeps([50,15,2,3,47,48,51,1,6,32,7,23]))),WJ2=_.lazy(()=>n0(()=>import("./index-BpFjqcUG.js"),__vite__mapDeps([52,31,27,1,35,8,53,18,51,6,32,7]))),qJ2=_.lazy(()=>n0(()=>import("./index-tuhR67Y7.js"),__vite__mapDeps([54,15,2,3,48,55,1,6,32,23]))),GJ2=_.lazy(()=>n0(()=>import("./index-CA3rYnAO.js"),__vite__mapDeps([56,57,1,27,35,58,8]))),KJ2=_.lazy(()=>n0(()=>import("./index-Dh7cHvmN.js"),__vite__mapDeps([59,15,2,3,47,48,23,1,6,32,7]))),YJ2=_.lazy(()=>n0(()=>import("./index-Be1jhuqX.js"),__vite__mapDeps([60,31,35,8,53,27,1,57]))),ZJ2=_.lazy(()=>n0(()=>import("./index-QTgNTY3Y.js"),__vite__mapDeps([61,62,28]))),QJ2=_.lazy(()=>n0(()=>import("./index-CgA4H978.js"),__vite__mapDeps([63,62,28]))),XJ2=_.lazy(()=>n0(()=>import("./index-BYwjnrZ6.js"),__vite__mapDeps([16,17,6,1,18,7,19,20,21,22,14,15,23,9,3,10,12,13]))),JJ2=_.lazy(()=>n0(()=>import("./index-DChyWzfC.js"),__vite__mapDeps([64,17,51,1,6,32,7,62,28]))),t10=_.lazy(()=>n0(()=>import("./my-orders-DFwf7y5x.js"),__vite__mapDeps([65,62,28]))),e10=_.lazy(()=>n0(()=>import("./my-notifications-BXJtrJ4h.js"),__vite__mapDeps([]))),a10=_.lazy(()=>n0(()=>import("./my-consultations-CKCLPfxu.js"),__vite__mapDeps([66,62,28,17,1,6,44,43,37,45,22]))),n10=_.lazy(()=>n0(()=>import("./my-data-DAeT5ivX.js"),__vite__mapDeps([67,62,28,41]))),r10=_.lazy(()=>n0(()=>import("./index-DoyjkzPP.js"),__vite__mapDeps([68,40,36,37,1,38,41,19,20,21]))),i10=_.lazy(()=>n0(()=>import("./index-C9cUZQ5P.js"),__vite__mapDeps([69,31,5,6,1,7,3,8,9,10,27]))),o10=_.lazy(()=>n0(()=>import("./index-C8fi6qCu.js"),__vite__mapDeps([70,62,28,17,55,1,6,32,44,58]))),l10=_.lazy(()=>n0(()=>import("./my-certificates-G3MAEnYh.js"),__vite__mapDeps([71,62,28,21]))),c10=t=>v61()==="BrowserRouter"?I.jsx(o61,{...t}):I.jsx(l61,{...t}),s10=window.VITE_APP_BASENAME||"/",h10=()=>{const{home:t,page:e,myProfile:a,myConsultations:n,myOrders:r,tutors:o,tutor:l,courses:c,course:h,preview:s,courseProgram:u,consultation:v,consultations:f,cart:d,reset:M,notFound:g,myNotifications:H,myData:p,login:m,register:z,emailVerify:w,events:x,event:y,myStationaryEvents:V,myTasks:C,myBookmarks:L,webinars:B,webinar:S,myWebinars:T,packages:E,packageProduct:$,myCertificates:U}=l0;return I.jsxs(c10,{basename:s10,children:[I.jsx(d61,{}),I.jsx(_.Suspense,{fallback:I.jsx(SJ2,{}),children:I.jsxs(r61,{children:[I.jsx(zr,{exact:!0,path:t,component:TJ2}),I.jsx(zr,{exact:!0,path:z,component:OJ2}),I.jsx(zr,{exact:!0,path:m,component:AJ2}),I.jsx(zr,{exact:!0,path:M,component:$J2}),I.jsx(zr,{exact:!0,path:w,component:kJ2}),I.jsx(Hn,{exact:!0,path:o,component:PJ2}),I.jsx(Hn,{exact:!0,path:f,component:FJ2}),I.jsx(Hn,{exact:!0,path:v,component:IJ2}),I.jsx(Hn,{exact:!0,path:l,component:NJ2}),I.jsx(Hn,{exact:!0,path:h,component:RJ2}),I.jsx(Hn,{exact:!0,path:s,component:jJ2}),I.jsx(u61,{exact:!0,path:c,component:DJ2}),I.jsx(Hn,{exact:!0,path:x,component:UJ2}),I.jsx(Hn,{exact:!0,path:y,component:WJ2}),I.jsx(Hn,{exact:!0,path:B,component:qJ2}),I.jsx(Hn,{exact:!0,path:S,component:GJ2}),I.jsx(Hn,{exact:!0,path:E,component:KJ2}),I.jsx(Hn,{exact:!0,path:$,component:YJ2}),I.jsx(Mn,{exact:!0,path:a,component:XJ2}),I.jsx(Mn,{exact:!0,path:C,component:ZJ2}),I.jsx(Mn,{exact:!0,path:L,component:QJ2}),I.jsx(Mn,{exact:!0,path:T,component:o10}),I.jsx(Mn,{exact:!0,path:U,component:l10}),I.jsx(Mn,{exact:!0,path:V,component:JJ2}),I.jsx(Mn,{exact:!0,path:n,component:a10}),I.jsx(Mn,{exact:!0,path:r,component:t10}),I.jsx(Mn,{exact:!0,path:H,component:e10}),I.jsx(Mn,{exact:!0,path:p,component:n10}),I.jsx(Mn,{exact:!0,path:u,component:r10}),I.jsx(Mn,{exact:!0,path:d,component:i10}),I.jsx(zr,{exact:!0,path:g,component:W$}),I.jsx(zr,{exact:!0,path:e,component:EJ2}),I.jsx(zr,{exact:!0,component:W$})]})})]})};/*! ***************************************************************************** +`,TJ2=()=>{const{t}=r9();return I.jsx(_J2,{children:I.jsxs(SJ2,{children:[I.jsxs($a.Title,{level:3,children:[" ",t("Loading")]}),I.jsx(_h.Spin,{})]})})},OJ2=_.lazy(()=>J2(()=>import("./index-DbTI3C8a.js"),__vite__mapDeps([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]))),AJ2=_.lazy(()=>J2(()=>import("./index-CVin_T_c.js"),__vite__mapDeps([]))),kJ2=_.lazy(()=>J2(()=>import("./index-CVbWCv7W.js"),__vite__mapDeps([25,26]))),EJ2=_.lazy(()=>J2(()=>import("./index-BuJ5dWx7.js"),__vite__mapDeps([]))),PJ2=_.lazy(()=>J2(()=>import("./index-CC3onPjx.js"),__vite__mapDeps([27,28,29,14]))),W$=_.lazy(()=>J2(()=>import("./index-DIPzAhbE.js"),__vite__mapDeps([]))),NJ2=_.lazy(()=>J2(()=>import("./index-DQ73wqwR.js"),__vite__mapDeps([30,28]))),DJ2=_.lazy(()=>J2(()=>import("./index-BRB_S0a6.js"),__vite__mapDeps([31,32,1,5,6,7,3,8,9,10,11,28,19,33]))),RJ2=_.lazy(()=>J2(()=>import("./index-C3kP4aL8.js"),__vite__mapDeps([34,24,16,1,7,6,8,13,14,12]))),jJ2=_.lazy(()=>J2(()=>import("./index-DjTNgyp2.js"),__vite__mapDeps([35,36,8,37,38,1,39,28,21,7,24,4,5,6,3,9,10,11,12,13,14]))),IJ2=_.lazy(()=>J2(()=>import("./index-COTH8V5i.js"),__vite__mapDeps([40,32,41,37,38,1,39,42]))),FJ2=_.lazy(()=>J2(()=>import("./index-BGMZM98o.js"),__vite__mapDeps([43,32,28,1,36,44,38,45,6,46]))),$J2=_.lazy(()=>J2(()=>import("./index-W6XNRor1.js"),__vite__mapDeps([47,2,3,48,49,15,16,44,38,45,1,6,46,24]))),UJ2=_.lazy(()=>J2(()=>import("./index-BVscCFY0.js"),__vite__mapDeps([50,26]))),WJ2=_.lazy(()=>J2(()=>import("./index-ChYtYKq8.js"),__vite__mapDeps([51,16,2,3,48,49,52,1,6,33,7,24]))),qJ2=_.lazy(()=>J2(()=>import("./index-DHO1RnCU.js"),__vite__mapDeps([53,32,28,1,36,8,54,19,52,6,33,7]))),GJ2=_.lazy(()=>J2(()=>import("./index-DP6ETbJh.js"),__vite__mapDeps([55,16,2,3,49,56,1,6,33,24]))),KJ2=_.lazy(()=>J2(()=>import("./index-Bewh4_mq.js"),__vite__mapDeps([57,58,1,28,36,59,8]))),YJ2=_.lazy(()=>J2(()=>import("./index-cPdytHpT.js"),__vite__mapDeps([60,16,2,3,48,49,24,1,6,33,7]))),ZJ2=_.lazy(()=>J2(()=>import("./index-3vq_xil8.js"),__vite__mapDeps([61,32,36,8,54,28,1,58]))),QJ2=_.lazy(()=>J2(()=>import("./index-B0FJe2nf.js"),__vite__mapDeps([62,63,29]))),XJ2=_.lazy(()=>J2(()=>import("./index-DtW4WBMu.js"),__vite__mapDeps([64,63,29]))),JJ2=_.lazy(()=>J2(()=>import("./index-Bbq3XPwm.js"),__vite__mapDeps([17,18,6,1,19,7,20,21,22,23,15,16,24,9,3,10,11,13,14]))),t10=_.lazy(()=>J2(()=>import("./index-DA8lSG7O.js"),__vite__mapDeps([65,18,52,1,6,33,7,63,29]))),e10=_.lazy(()=>J2(()=>import("./my-orders-CaURcWNe.js"),__vite__mapDeps([66,63,29]))),a10=_.lazy(()=>J2(()=>import("./my-notifications-DlOgvF1_.js"),__vite__mapDeps([]))),n10=_.lazy(()=>J2(()=>import("./my-consultations-C2Igpe3s.js"),__vite__mapDeps([67,63,29,18,1,6,45,44,38,46,23]))),r10=_.lazy(()=>J2(()=>import("./my-data-ETrGensE.js"),__vite__mapDeps([68,63,29,42]))),i10=_.lazy(()=>J2(()=>import("./index-COOhruPg.js"),__vite__mapDeps([69,41,37,38,1,39,42,20,21,22]))),o10=_.lazy(()=>J2(()=>import("./index-BT0lVMi3.js"),__vite__mapDeps([70,32,5,6,1,7,3,8,9,10,11,28]))),l10=_.lazy(()=>J2(()=>import("./index-CcgT_jbC.js"),__vite__mapDeps([71,63,29,18,56,1,6,33,45,59]))),c10=_.lazy(()=>J2(()=>import("./my-certificates-C2kjqqxe.js"),__vite__mapDeps([72,63,29,22]))),s10=_.lazy(()=>J2(()=>import("./index-B4TguqFb.js"),__vite__mapDeps([73,3,10,1,74]))),h10=t=>v61()==="BrowserRouter"?I.jsx(o61,{...t}):I.jsx(l61,{...t}),u10=window.VITE_APP_BASENAME||"/",v10=()=>{const{home:t,page:e,myProfile:a,myConsultations:n,myOrders:r,tutors:o,tutor:l,courses:c,course:h,preview:s,courseProgram:u,consultation:v,consultations:f,cart:d,reset:M,notFound:g,myNotifications:H,myData:p,login:m,register:z,emailVerify:w,events:x,event:y,myStationaryEvents:V,myTasks:C,myBookmarks:L,webinars:B,webinar:S,myWebinars:T,packages:E,packageProduct:$,myCertificates:q,onboarding:U}=e0;return I.jsxs(h10,{basename:u10,children:[I.jsx(d61,{}),I.jsx(_.Suspense,{fallback:I.jsx(TJ2,{}),children:I.jsxs(r61,{children:[I.jsx(zr,{exact:!0,path:t,component:OJ2}),I.jsx(zr,{exact:!0,path:z,component:AJ2}),I.jsx(zr,{exact:!0,path:m,component:kJ2}),I.jsx(zr,{exact:!0,path:M,component:UJ2}),I.jsx(zr,{exact:!0,path:w,component:EJ2}),I.jsx(Hn,{exact:!0,path:o,component:NJ2}),I.jsx(Hn,{exact:!0,path:f,component:$J2}),I.jsx(Hn,{exact:!0,path:v,component:FJ2}),I.jsx(Hn,{exact:!0,path:l,component:DJ2}),I.jsx(Hn,{exact:!0,path:h,component:jJ2}),I.jsx(Hn,{exact:!0,path:s,component:IJ2}),I.jsx(u61,{exact:!0,path:c,component:RJ2}),I.jsx(Hn,{exact:!0,path:x,component:WJ2}),I.jsx(Hn,{exact:!0,path:y,component:qJ2}),I.jsx(Hn,{exact:!0,path:B,component:GJ2}),I.jsx(Hn,{exact:!0,path:S,component:KJ2}),I.jsx(Hn,{exact:!0,path:E,component:YJ2}),I.jsx(Hn,{exact:!0,path:$,component:ZJ2}),I.jsx(Ka,{exact:!0,path:U,component:s10}),I.jsx(Ka,{exact:!0,path:a,component:JJ2}),I.jsx(Ka,{exact:!0,path:C,component:QJ2}),I.jsx(Ka,{exact:!0,path:L,component:XJ2}),I.jsx(Ka,{exact:!0,path:T,component:l10}),I.jsx(Ka,{exact:!0,path:q,component:c10}),I.jsx(Ka,{exact:!0,path:V,component:t10}),I.jsx(Ka,{exact:!0,path:n,component:n10}),I.jsx(Ka,{exact:!0,path:r,component:e10}),I.jsx(Ka,{exact:!0,path:H,component:a10}),I.jsx(Ka,{exact:!0,path:p,component:r10}),I.jsx(Ka,{exact:!0,path:u,component:i10}),I.jsx(Ka,{exact:!0,path:d,component:o10}),I.jsx(zr,{exact:!0,path:g,component:W$}),I.jsx(zr,{exact:!0,path:e,component:PJ2}),I.jsx(zr,{exact:!0,component:W$})]})})]})};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -9370,18 +9370,18 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var GL=function(t,e){return GL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var r in n)n.hasOwnProperty(r)&&(a[r]=n[r])},GL(t,e)};function $5(t,e){GL(t,e);function a(){this.constructor=t}t.prototype=e===null?Object.create(e):(a.prototype=e.prototype,new a)}var K1=function(){return K1=Object.assign||function(e){for(var a,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ga(t,e){var a=typeof Symbol=="function"&&t[Symbol.iterator];if(!a)return t;var n=a.call(t),r,o=[],l;try{for(;(e===void 0||e-- >0)&&!(r=n.next()).done;)o.push(r.value)}catch(c){l={error:c}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(l)throw l.error}}return o}function Be(){for(var t=[],e=0;e ",s=h.length,u=void 0;a&&l++1&&c+o.length*s+u.length>=r));)o.push(u),c+=u.length,a=a.parentNode;return o.reverse().join(h)}catch{return""}}function H10(t,e){var a=t,n=[],r,o,l,c,h;if(!a||!a.tagName)return"";n.push(a.tagName.toLowerCase());var s=e&&e.length?e.filter(function(v){return a.getAttribute(v)}).map(function(v){return[v,a.getAttribute(v)]}):null;if(s&&s.length)s.forEach(function(v){n.push("["+v[0]+'="'+v[1]+'"]')});else if(a.id&&n.push("#"+a.id),r=a.className,r&&Cc(r))for(o=r.split(/\s+/),h=0;h"u"?!0:__SENTRY_DEBUG__,C10=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function b10(t){return t==="http"||t==="https"}function su(t,e){e===void 0&&(e=!1);var a=t.host,n=t.path,r=t.pass,o=t.port,l=t.projectId,c=t.protocol,h=t.publicKey;return c+"://"+h+(e&&r?":"+r:"")+("@"+a+(o?":"+o:"")+"/"+(n&&n+"/")+l)}function L10(t){var e=C10.exec(t);if(!e)throw new o4("Invalid Sentry Dsn: "+t);var a=ga(e.slice(1),6),n=a[0],r=a[1],o=a[2],l=o===void 0?"":o,c=a[3],h=a[4],s=h===void 0?"":h,u=a[5],v="",f=u,d=f.split("/");if(d.length>1&&(v=d.slice(0,-1).join("/"),f=d.pop()),f){var M=f.match(/^\d+/);M&&(f=M[0])}return L01({host:c,pass:l,path:v,projectId:f,port:s,protocol:n,publicKey:r})}function L01(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function B10(t){if(o9){var e=t.port,a=t.projectId,n=t.protocol,r=["protocol","publicKey","host","projectId"];if(r.forEach(function(o){if(!t[o])throw new o4("Invalid Sentry Dsn: "+o+" missing")}),!a.match(/^\d+$/))throw new o4("Invalid Sentry Dsn: Invalid projectId "+a);if(!b10(n))throw new o4("Invalid Sentry Dsn: Invalid protocol "+n);if(e&&isNaN(parseInt(e,10)))throw new o4("Invalid Sentry Dsn: Invalid port "+e);return!0}}function yO(t){var e=typeof t=="string"?L10(t):L01(t);return B10(e),e}var _10=["fatal","error","warning","log","info","debug","critical"],S10=g0(),T10="Sentry Logger ",Hp=["debug","info","warn","error","log","assert"];function B01(t){var e=g0();if(!("console"in e))return t();var a=e.console,n={};Hp.forEach(function(r){var o=a[r]&&a[r].__sentry_original__;r in e.console&&o&&(n[r]=a[r],a[r]=o)});try{return t()}finally{Object.keys(n).forEach(function(r){a[r]=n[r]})}}function G$(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return o9?Hp.forEach(function(a){e[a]=function(){for(var n=[],r=0;r"}}function Z$(t){var e={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}function A10(t,e){e===void 0&&(e=40);var a=Object.keys(S01(t));if(a.sort(),!a.length)return"[object has no keys]";if(a[0].length>=e)return fs(a[0],e);for(var n=a.length;n>0;n--){var r=a.slice(0,n).join(", ");if(!(r.length>e))return n===a.length?r:fs(r,e)}return""}function N8(t){var e,a;if(bc(t)){var n={};try{for(var r=zo(Object.keys(t)),o=r.next();!o.done;o=r.next()){var l=o.value;typeof t[l]<"u"&&(n[l]=N8(t[l]))}}catch(c){e={error:c}}finally{try{o&&!o.done&&(a=r.return)&&a.call(r)}finally{if(e)throw e.error}}return n}return Array.isArray(t)?t.map(N8):t}var k10=50;function E10(){for(var t=[],e=0;e=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ga(t,e){var a=typeof Symbol=="function"&&t[Symbol.iterator];if(!a)return t;var n=a.call(t),r,o=[],l;try{for(;(e===void 0||e-- >0)&&!(r=n.next()).done;)o.push(r.value)}catch(c){l={error:c}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(l)throw l.error}}return o}function Be(){for(var t=[],e=0;e ",s=h.length,u=void 0;a&&l++1&&c+o.length*s+u.length>=r));)o.push(u),c+=u.length,a=a.parentNode;return o.reverse().join(h)}catch{return""}}function y10(t,e){var a=t,n=[],r,o,l,c,h;if(!a||!a.tagName)return"";n.push(a.tagName.toLowerCase());var s=e&&e.length?e.filter(function(v){return a.getAttribute(v)}).map(function(v){return[v,a.getAttribute(v)]}):null;if(s&&s.length)s.forEach(function(v){n.push("["+v[0]+'="'+v[1]+'"]')});else if(a.id&&n.push("#"+a.id),r=a.className,r&&Cc(r))for(o=r.split(/\s+/),h=0;h"u"?!0:__SENTRY_DEBUG__,L10=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function B10(t){return t==="http"||t==="https"}function su(t,e){e===void 0&&(e=!1);var a=t.host,n=t.path,r=t.pass,o=t.port,l=t.projectId,c=t.protocol,h=t.publicKey;return c+"://"+h+(e&&r?":"+r:"")+("@"+a+(o?":"+o:"")+"/"+(n&&n+"/")+l)}function _10(t){var e=L10.exec(t);if(!e)throw new o4("Invalid Sentry Dsn: "+t);var a=ga(e.slice(1),6),n=a[0],r=a[1],o=a[2],l=o===void 0?"":o,c=a[3],h=a[4],s=h===void 0?"":h,u=a[5],v="",f=u,d=f.split("/");if(d.length>1&&(v=d.slice(0,-1).join("/"),f=d.pop()),f){var M=f.match(/^\d+/);M&&(f=M[0])}return L01({host:c,pass:l,path:v,projectId:f,port:s,protocol:n,publicKey:r})}function L01(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function S10(t){if(o9){var e=t.port,a=t.projectId,n=t.protocol,r=["protocol","publicKey","host","projectId"];if(r.forEach(function(o){if(!t[o])throw new o4("Invalid Sentry Dsn: "+o+" missing")}),!a.match(/^\d+$/))throw new o4("Invalid Sentry Dsn: Invalid projectId "+a);if(!B10(n))throw new o4("Invalid Sentry Dsn: Invalid protocol "+n);if(e&&isNaN(parseInt(e,10)))throw new o4("Invalid Sentry Dsn: Invalid port "+e);return!0}}function yO(t){var e=typeof t=="string"?_10(t):L01(t);return S10(e),e}var T10=["fatal","error","warning","log","info","debug","critical"],O10=g0(),A10="Sentry Logger ",Hp=["debug","info","warn","error","log","assert"];function B01(t){var e=g0();if(!("console"in e))return t();var a=e.console,n={};Hp.forEach(function(r){var o=a[r]&&a[r].__sentry_original__;r in e.console&&o&&(n[r]=a[r],a[r]=o)});try{return t()}finally{Object.keys(n).forEach(function(r){a[r]=n[r]})}}function G$(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return o9?Hp.forEach(function(a){e[a]=function(){for(var n=[],r=0;r"}}function Z$(t){var e={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}function E10(t,e){e===void 0&&(e=40);var a=Object.keys(S01(t));if(a.sort(),!a.length)return"[object has no keys]";if(a[0].length>=e)return fs(a[0],e);for(var n=a.length;n>0;n--){var r=a.slice(0,n).join(", ");if(!(r.length>e))return n===a.length?r:fs(r,e)}return""}function N8(t){var e,a;if(bc(t)){var n={};try{for(var r=zo(Object.keys(t)),o=r.next();!o.done;o=r.next()){var l=o.value;typeof t[l]<"u"&&(n[l]=N8(t[l]))}}catch(c){e={error:c}}finally{try{o&&!o.done&&(a=r.return)&&a.call(r)}finally{if(e)throw e.error}}return n}return Array.isArray(t)?t.map(N8):t}var P10=50;function N10(){for(var t=[],e=0;e2?n[2]:void 0;if(o){var l=Ud,c=String(o);Ud=c,Tr("history",{from:l,to:c})}return a.apply(this,n)}}Z4(ce.history,"pushState",e),Z4(ce.history,"replaceState",e)}var G10=1e3,Wd,qd;function K10(t,e){if(!t||t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch{}return!1}function Y10(t){if(t.type!=="keypress")return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)return!1}catch{}return!0}function X$(t,e){return e===void 0&&(e=!1),function(a){if(!(!a||qd===a)&&!Y10(a)){var n=a.type==="keypress"?"input":a.type;Wd===void 0?(t({event:a,name:n,global:e}),qd=a):K10(qd,a)&&(t({event:a,name:n,global:e}),qd=a),clearTimeout(Wd),Wd=ce.setTimeout(function(){Wd=void 0},G10)}}}function Z10(){if("document"in ce){var t=Tr.bind(null,"dom"),e=X$(t,!0);ce.document.addEventListener("click",e,!1),ce.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(function(a){var n=ce[a]&&ce[a].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Z4(n,"addEventListener",function(r){return function(o,l,c){if(o==="click"||o=="keypress")try{var h=this,s=h.__sentry_instrumentation_handlers__=h.__sentry_instrumentation_handlers__||{},u=s[o]=s[o]||{refCount:0};if(!u.handler){var v=X$(t);u.handler=v,r.call(this,o,v,c)}u.refCount+=1}catch{}return r.call(this,o,l,c)}}),Z4(n,"removeEventListener",function(r){return function(o,l,c){if(o==="click"||o=="keypress")try{var h=this,s=h.__sentry_instrumentation_handlers__||{},u=s[o];u&&(u.refCount-=1,u.refCount<=0&&(r.call(this,o,u.handler,c),u.handler=void 0,delete s[o]),Object.keys(s).length===0&&delete h.__sentry_instrumentation_handlers__)}catch{}return r.call(this,o,l,c)}}))})}}var EV=null;function Q10(){EV=ce.onerror,ce.onerror=function(t,e,a,n,r){return Tr("error",{column:n,error:r,line:a,msg:t,url:e}),EV?EV.apply(this,arguments):!1}}var PV=null;function X10(){PV=ce.onunhandledrejection,ce.onunhandledrejection=function(t){return Tr("unhandledrejection",t),PV?PV.apply(this,arguments):!0}}function J10(){var t=typeof WeakSet=="function",e=t?new WeakSet:[];function a(r){if(t)return e.has(r)?!0:(e.add(r),!1);for(var o=0;o":a||""}function YL(t,e,a){var n=t.exception=t.exception||{},r=n.values=n.values||[],o=r[0]=r[0]||{};o.value||(o.value=e||""),o.type||(o.type=a||"Error")}function lh(t,e){var a=T01(t);if(a){var n={type:"generic",handled:!0},r=a.mechanism;if(a.mechanism=K1(K1(K1({},n),r),e),e&&"data"in e){var o=K1(K1({},r&&r.data),e.data);a.mechanism.data=o}}}function J$(t){if(t&&t.__sentry_captured__)return!0;try{SM(t,"__sentry_captured__",!0)}catch{}return!1}function H8(t,e,a){e===void 0&&(e=1/0),a===void 0&&(a=1/0);try{return A01("",t,e,a)}catch(n){return{ERROR:"**non-serializable** ("+n+")"}}}function O01(t,e,a){e===void 0&&(e=3),a===void 0&&(a=100*1024);var n=H8(t,e);return at0(n)>a?O01(t,e-1,a):n}function A01(t,e,a,n,r){a===void 0&&(a=1/0),n===void 0&&(n=1/0),r===void 0&&(r=J10());var o=ga(r,2),l=o[0],c=o[1],h=e;if(h&&typeof h.toJSON=="function")try{return h.toJSON()}catch{}if(e===null||["number","boolean","string"].includes(typeof e)&&!b01(e))return e;var s=tt0(t,e);if(!s.startsWith("[object "))return s;if(a===0)return s.replace("object ","");if(l(e))return"[Circular ~]";var u=Array.isArray(e)?[]:{},v=0,f=MO(e)||_M(e)?S01(e):e;for(var d in f)if(Object.prototype.hasOwnProperty.call(f,d)){if(v>=n){u[d]="[MaxProperties ~]";break}var M=f[d];u[d]=A01(d,M,a-1,n,r),v+=1}return c(e),u}function tt0(t,e){try{return t==="domain"&&e&&typeof e=="object"&&e._events?"[Domain]":t==="domainEmitter"?"[DomainEmitter]":typeof global<"u"&&e===global?"[Global]":typeof window<"u"&&e===window?"[Window]":typeof document<"u"&&e===document?"[Document]":M10(e)?"[SyntheticEvent]":typeof e=="number"&&e!==e?"[NaN]":e===void 0?"[undefined]":typeof e=="function"?"[Function: "+Mo(e)+"]":typeof e=="symbol"?"["+String(e)+"]":typeof e=="bigint"?"[BigInt: "+String(e)+"]":"[object "+Object.getPrototypeOf(e).constructor.name+"]"}catch(a){return"**non-serializable** ("+a+")"}}function et0(t){return~-encodeURI(t).split(/%..|./).length}function at0(t){return et0(JSON.stringify(t))}function rl(t){return new Do(function(e){e(t)})}function ch(t){return new Do(function(e,a){a(t)})}var Do=function(){function t(e){var a=this;this._state=0,this._handlers=[],this._resolve=function(n){a._setResult(1,n)},this._reject=function(n){a._setResult(2,n)},this._setResult=function(n,r){if(a._state===0){if(wO(r)){r.then(a._resolve,a._reject);return}a._state=n,a._value=r,a._executeHandlers()}},this._executeHandlers=function(){if(a._state!==0){var n=a._handlers.slice();a._handlers=[],n.forEach(function(r){r[0]||(a._state===1&&r[1](a._value),a._state===2&&r[2](a._value),r[0]=!0)})}};try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}return t.prototype.then=function(e,a){var n=this;return new t(function(r,o){n._handlers.push([!1,function(l){if(!e)r(l);else try{r(e(l))}catch(c){o(c)}},function(l){if(!a)o(l);else try{r(a(l))}catch(c){o(c)}}]),n._executeHandlers()})},t.prototype.catch=function(e){return this.then(function(a){return a},e)},t.prototype.finally=function(e){var a=this;return new t(function(n,r){var o,l;return a.then(function(c){l=!1,o=c,e&&e()},function(c){l=!0,o=c,e&&e()}).then(function(){if(l){r(o);return}n(o)})})},t}();function k01(t){var e=[];function a(){return t===void 0||e.length0&&c(!1)},l);e.forEach(function(v){rl(v).then(function(){--s||(clearTimeout(u),c(!0))},h)})})}return{$:e,add:r,drain:o}}function nt0(t){return _10.indexOf(t)!==-1}function rt0(t){return t==="warn"?bi.Warning:nt0(t)?t:bi.Log}function E01(t){return t>=200&&t<300?"success":t===429?"rate_limit":t>=400&&t<500?"invalid":t>=500?"failed":"unknown"}var ZL={nowSeconds:function(){return Date.now()/1e3}};function it0(){var t=g0().performance;if(!(!t||!t.now)){var e=Date.now()-t.now();return{now:function(){return t.now()},timeOrigin:e}}}function ot0(){try{var t=F3(module,"perf_hooks");return t.performance}catch{return}}var DV=cu()?ot0():it0(),tU=DV===void 0?ZL:{nowSeconds:function(){return(DV.timeOrigin+DV.now())/1e3}},OM=ZL.nowSeconds.bind(ZL),QL=tU.nowSeconds.bind(tU),il=QL,p7=function(){var t=g0().performance;if(!(!t||!t.now)){var e=3600*1e3,a=t.now(),n=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+a-n):e,o=r2?n[2]:void 0;if(o){var l=Ud,c=String(o);Ud=c,Tr("history",{from:l,to:c})}return a.apply(this,n)}}Z4(ce.history,"pushState",e),Z4(ce.history,"replaceState",e)}var Y10=1e3,Wd,qd;function Z10(t,e){if(!t||t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch{}return!1}function Q10(t){if(t.type!=="keypress")return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)return!1}catch{}return!0}function X$(t,e){return e===void 0&&(e=!1),function(a){if(!(!a||qd===a)&&!Q10(a)){var n=a.type==="keypress"?"input":a.type;Wd===void 0?(t({event:a,name:n,global:e}),qd=a):Z10(qd,a)&&(t({event:a,name:n,global:e}),qd=a),clearTimeout(Wd),Wd=ce.setTimeout(function(){Wd=void 0},Y10)}}}function X10(){if("document"in ce){var t=Tr.bind(null,"dom"),e=X$(t,!0);ce.document.addEventListener("click",e,!1),ce.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(function(a){var n=ce[a]&&ce[a].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Z4(n,"addEventListener",function(r){return function(o,l,c){if(o==="click"||o=="keypress")try{var h=this,s=h.__sentry_instrumentation_handlers__=h.__sentry_instrumentation_handlers__||{},u=s[o]=s[o]||{refCount:0};if(!u.handler){var v=X$(t);u.handler=v,r.call(this,o,v,c)}u.refCount+=1}catch{}return r.call(this,o,l,c)}}),Z4(n,"removeEventListener",function(r){return function(o,l,c){if(o==="click"||o=="keypress")try{var h=this,s=h.__sentry_instrumentation_handlers__||{},u=s[o];u&&(u.refCount-=1,u.refCount<=0&&(r.call(this,o,u.handler,c),u.handler=void 0,delete s[o]),Object.keys(s).length===0&&delete h.__sentry_instrumentation_handlers__)}catch{}return r.call(this,o,l,c)}}))})}}var EV=null;function J10(){EV=ce.onerror,ce.onerror=function(t,e,a,n,r){return Tr("error",{column:n,error:r,line:a,msg:t,url:e}),EV?EV.apply(this,arguments):!1}}var PV=null;function tt0(){PV=ce.onunhandledrejection,ce.onunhandledrejection=function(t){return Tr("unhandledrejection",t),PV?PV.apply(this,arguments):!0}}function et0(){var t=typeof WeakSet=="function",e=t?new WeakSet:[];function a(r){if(t)return e.has(r)?!0:(e.add(r),!1);for(var o=0;o":a||""}function YL(t,e,a){var n=t.exception=t.exception||{},r=n.values=n.values||[],o=r[0]=r[0]||{};o.value||(o.value=e||""),o.type||(o.type=a||"Error")}function lh(t,e){var a=T01(t);if(a){var n={type:"generic",handled:!0},r=a.mechanism;if(a.mechanism=K1(K1(K1({},n),r),e),e&&"data"in e){var o=K1(K1({},r&&r.data),e.data);a.mechanism.data=o}}}function J$(t){if(t&&t.__sentry_captured__)return!0;try{SM(t,"__sentry_captured__",!0)}catch{}return!1}function H8(t,e,a){e===void 0&&(e=1/0),a===void 0&&(a=1/0);try{return A01("",t,e,a)}catch(n){return{ERROR:"**non-serializable** ("+n+")"}}}function O01(t,e,a){e===void 0&&(e=3),a===void 0&&(a=100*1024);var n=H8(t,e);return rt0(n)>a?O01(t,e-1,a):n}function A01(t,e,a,n,r){a===void 0&&(a=1/0),n===void 0&&(n=1/0),r===void 0&&(r=et0());var o=ga(r,2),l=o[0],c=o[1],h=e;if(h&&typeof h.toJSON=="function")try{return h.toJSON()}catch{}if(e===null||["number","boolean","string"].includes(typeof e)&&!b01(e))return e;var s=at0(t,e);if(!s.startsWith("[object "))return s;if(a===0)return s.replace("object ","");if(l(e))return"[Circular ~]";var u=Array.isArray(e)?[]:{},v=0,f=MO(e)||_M(e)?S01(e):e;for(var d in f)if(Object.prototype.hasOwnProperty.call(f,d)){if(v>=n){u[d]="[MaxProperties ~]";break}var M=f[d];u[d]=A01(d,M,a-1,n,r),v+=1}return c(e),u}function at0(t,e){try{return t==="domain"&&e&&typeof e=="object"&&e._events?"[Domain]":t==="domainEmitter"?"[DomainEmitter]":typeof global<"u"&&e===global?"[Global]":typeof window<"u"&&e===window?"[Window]":typeof document<"u"&&e===document?"[Document]":w10(e)?"[SyntheticEvent]":typeof e=="number"&&e!==e?"[NaN]":e===void 0?"[undefined]":typeof e=="function"?"[Function: "+Mo(e)+"]":typeof e=="symbol"?"["+String(e)+"]":typeof e=="bigint"?"[BigInt: "+String(e)+"]":"[object "+Object.getPrototypeOf(e).constructor.name+"]"}catch(a){return"**non-serializable** ("+a+")"}}function nt0(t){return~-encodeURI(t).split(/%..|./).length}function rt0(t){return nt0(JSON.stringify(t))}function rl(t){return new Do(function(e){e(t)})}function ch(t){return new Do(function(e,a){a(t)})}var Do=function(){function t(e){var a=this;this._state=0,this._handlers=[],this._resolve=function(n){a._setResult(1,n)},this._reject=function(n){a._setResult(2,n)},this._setResult=function(n,r){if(a._state===0){if(wO(r)){r.then(a._resolve,a._reject);return}a._state=n,a._value=r,a._executeHandlers()}},this._executeHandlers=function(){if(a._state!==0){var n=a._handlers.slice();a._handlers=[],n.forEach(function(r){r[0]||(a._state===1&&r[1](a._value),a._state===2&&r[2](a._value),r[0]=!0)})}};try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}return t.prototype.then=function(e,a){var n=this;return new t(function(r,o){n._handlers.push([!1,function(l){if(!e)r(l);else try{r(e(l))}catch(c){o(c)}},function(l){if(!a)o(l);else try{r(a(l))}catch(c){o(c)}}]),n._executeHandlers()})},t.prototype.catch=function(e){return this.then(function(a){return a},e)},t.prototype.finally=function(e){var a=this;return new t(function(n,r){var o,l;return a.then(function(c){l=!1,o=c,e&&e()},function(c){l=!0,o=c,e&&e()}).then(function(){if(l){r(o);return}n(o)})})},t}();function k01(t){var e=[];function a(){return t===void 0||e.length0&&c(!1)},l);e.forEach(function(v){rl(v).then(function(){--s||(clearTimeout(u),c(!0))},h)})})}return{$:e,add:r,drain:o}}function it0(t){return T10.indexOf(t)!==-1}function ot0(t){return t==="warn"?bi.Warning:it0(t)?t:bi.Log}function E01(t){return t>=200&&t<300?"success":t===429?"rate_limit":t>=400&&t<500?"invalid":t>=500?"failed":"unknown"}var ZL={nowSeconds:function(){return Date.now()/1e3}};function lt0(){var t=g0().performance;if(!(!t||!t.now)){var e=Date.now()-t.now();return{now:function(){return t.now()},timeOrigin:e}}}function ct0(){try{var t=F3(module,"perf_hooks");return t.performance}catch{return}}var DV=cu()?ct0():lt0(),tU=DV===void 0?ZL:{nowSeconds:function(){return(DV.timeOrigin+DV.now())/1e3}},OM=ZL.nowSeconds.bind(ZL),QL=tU.nowSeconds.bind(tU),il=QL,p7=function(){var t=g0().performance;if(!(!t||!t.now)){var e=3600*1e3,a=t.now(),n=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+a-n):e,o=ra}function N01(t,e,a){var n,r,o,l;a===void 0&&(a=Date.now());var c=K1({},t),h=e["x-sentry-rate-limits"],s=e["retry-after"];if(h)try{for(var u=zo(h.trim().split(",")),v=u.next();!v.done;v=u.next()){var f=v.value,d=f.split(":",2),M=parseInt(d[0],10),g=(isNaN(M)?60:M)*1e3;if(!d[1])c.all=a+g;else try{for(var H=(o=void 0,zo(d[1].split(";"))),p=H.next();!p.done;p=H.next()){var m=p.value;c[m]=a+g}}catch(z){o={error:z}}finally{try{p&&!p.done&&(l=H.return)&&l.call(H)}finally{if(o)throw o.error}}}}catch(z){n={error:z}}finally{try{v&&!v.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}else s&&(c.all=a+vt0(s,a));return c}var eU=100,wp=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return t.clone=function(e){var a=new t;return e&&(a._breadcrumbs=Be(e._breadcrumbs),a._tags=K1({},e._tags),a._extra=K1({},e._extra),a._contexts=K1({},e._contexts),a._user=e._user,a._level=e._level,a._span=e._span,a._session=e._session,a._transactionName=e._transactionName,a._fingerprint=e._fingerprint,a._eventProcessors=Be(e._eventProcessors),a._requestSession=e._requestSession),a},t.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},t.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},t.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(e){return this._requestSession=e,this},t.prototype.setTags=function(e){return this._tags=K1(K1({},this._tags),e),this._notifyScopeListeners(),this},t.prototype.setTag=function(e,a){var n;return this._tags=K1(K1({},this._tags),(n={},n[e]=a,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(e){return this._extra=K1(K1({},this._extra),e),this._notifyScopeListeners(),this},t.prototype.setExtra=function(e,a){var n;return this._extra=K1(K1({},this._extra),(n={},n[e]=a,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},t.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(e){return this.setTransactionName(e)},t.prototype.setContext=function(e,a){var n;return a===null?delete this._contexts[e]:this._contexts=K1(K1({},this._contexts),(n={},n[e]=a,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var e=this.getSpan();return e&&e.transaction},t.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if(typeof e=="function"){var a=e(this);return a instanceof t?a:this}return e instanceof t?(this._tags=K1(K1({},this._tags),e._tags),this._extra=K1(K1({},this._extra),e._extra),this._contexts=K1(K1({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):bc(e)&&(e=e,this._tags=K1(K1({},this._tags),e.tags),this._extra=K1(K1({},this._extra),e.extra),this._contexts=K1(K1({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){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._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(e,a){var n=typeof a=="number"?Math.min(a,eU):eU;if(n<=0)return this;var r=K1({timestamp:OM()},e);return this._breadcrumbs=Be(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(e,a){if(this._extra&&Object.keys(this._extra).length&&(e.extra=K1(K1({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=K1(K1({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=K1(K1({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=K1(K1({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=K1({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags=K1({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Be(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(Be(D01(),this._eventProcessors),e,a)},t.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=K1(K1({},this._sdkProcessingMetadata),e),this},t.prototype._notifyEventProcessors=function(e,a,n,r){var o=this;return r===void 0&&(r=0),new Do(function(l,c){var h=e[r];if(a===null||typeof h!="function")l(a);else{var s=h(K1({},a),n);wO(s)?s.then(function(u){return o._notifyEventProcessors(e,u,n,r+1).then(l)}).then(null,c):o._notifyEventProcessors(e,s,n,r+1).then(l).then(null,c)}})},t.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(a){a(e)}),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},t}();function D01(){return zO("globalEventProcessors",function(){return[]})}function CO(t){D01().push(t)}var dt0=function(){function t(e){this.errors=0,this.sid=no(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var a=QL();this.timestamp=a,this.started=a,e&&this.update(e)}return t.prototype.update=function(e){if(e===void 0&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),!this.did&&!e.did&&(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||QL(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=e.sid.length===32?e.sid:no()),e.init!==void 0&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),typeof e.started=="number"&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if(typeof e.duration=="number")this.duration=e.duration;else{var a=this.timestamp-this.started;this.duration=a>=0?a:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),typeof e.errors=="number"&&(this.errors=e.errors),e.status&&(this.status=e.status)},t.prototype.close=function(e){e?this.update({status:e}):this.status==="ok"?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return N8({sid:""+this.sid,init:this.init,started:new Date(this.started*1e3).toISOString(),timestamp:new Date(this.timestamp*1e3).toISOString(),status:this.status,errors:this.errors,did:typeof this.did=="number"||typeof this.did=="string"?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}(),aU=typeof __SENTRY_DEBUG__>"u"?!0:__SENTRY_DEBUG__,bO=4,ft0=100,EM=function(){function t(e,a,n){a===void 0&&(a=new wp),n===void 0&&(n=bO),this._version=n,this._stack=[{}],this.getStackTop().scope=a,e&&this.bindClient(e)}return t.prototype.isOlderThan=function(e){return this._version"u"?!0:__SENTRY_DEBUG__,rU=[];function iU(t){return t.reduce(function(e,a){return e.every(function(n){return a.name!==n.name})&&e.push(a),e},[])}function yt0(t){var e=t.defaultIntegrations&&Be(t.defaultIntegrations)||[],a=t.integrations,n=Be(iU(e));Array.isArray(a)?n=Be(n.filter(function(l){return a.every(function(c){return c.name!==l.name})}),iU(a)):typeof a=="function"&&(n=a(n),n=Array.isArray(n)?n:[n]);var r=n.map(function(l){return l.name}),o="Debug";return r.indexOf(o)!==-1&&n.push.apply(n,Be(n.splice(r.indexOf(o),1))),n}function xt0(t){rU.indexOf(t.name)===-1&&(t.setupOnce(CO,Ye),rU.push(t.name),qe&&Bt.log("Integration installed: "+t.name))}function Vt0(t){var e={};return yt0(t).forEach(function(a){e[a.name]=a,xt0(a)}),SM(e,"initialized",!0),e}var oU="Not capturing exception because it's already been captured.",Ct0=function(){function t(e,a){this._integrations={},this._numProcessing=0,this._backend=new e(a),this._options=a,a.dsn&&(this._dsn=yO(a.dsn))}return t.prototype.captureException=function(e,a,n){var r=this;if(J$(e)){qe&&Bt.log(oU);return}var o=a&&a.event_id;return this._process(this._getBackend().eventFromException(e,a).then(function(l){return r._captureEvent(l,a,n)}).then(function(l){o=l})),o},t.prototype.captureMessage=function(e,a,n,r){var o=this,l=n&&n.event_id,c=HO(e)?this._getBackend().eventFromMessage(String(e),a,n):this._getBackend().eventFromException(e,n);return this._process(c.then(function(h){return o._captureEvent(h,n,r)}).then(function(h){l=h})),l},t.prototype.captureEvent=function(e,a,n){if(a&&a.originalException&&J$(a.originalException)){qe&&Bt.log(oU);return}var r=a&&a.event_id;return this._process(this._captureEvent(e,a,n).then(function(o){r=o})),r},t.prototype.captureSession=function(e){if(!this._isEnabled()){qe&&Bt.warn("SDK not enabled, will not capture session.");return}typeof e.release!="string"?qe&&Bt.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1}))},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(e){var a=this;return this._isClientDoneProcessing(e).then(function(n){return a.getTransport().close(e).then(function(r){return n&&r})})},t.prototype.close=function(e){var a=this;return this.flush(e).then(function(n){return a.getOptions().enabled=!1,n})},t.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=Vt0(this._options))},t.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch{return qe&&Bt.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(e,a){var n,r,o=!1,l=!1,c=a.exception&&a.exception.values;if(c){l=!0;try{for(var h=zo(c),s=h.next();!s.done;s=h.next()){var u=s.value,v=u.mechanism;if(v&&v.handled===!1){o=!0;break}}}catch(M){n={error:M}}finally{try{s&&!s.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}var f=e.status==="ok",d=f&&e.errors===0||f&&o;d&&(e.update(K1(K1({},o&&{status:"crashed"}),{errors:e.errors||Number(l||o)})),this.captureSession(e))},t.prototype._sendSession=function(e){this._getBackend().sendSession(e)},t.prototype._isClientDoneProcessing=function(e){var a=this;return new Do(function(n){var r=0,o=1,l=setInterval(function(){a._numProcessing==0?(clearInterval(l),n(!0)):(r+=o,e&&r>=e&&(clearInterval(l),n(!1)))},o)})},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return this.getOptions().enabled!==!1&&this._dsn!==void 0},t.prototype._prepareEvent=function(e,a,n){var r=this,o=this.getOptions(),l=o.normalizeDepth,c=l===void 0?3:l,h=o.normalizeMaxBreadth,s=h===void 0?1e3:h,u=K1(K1({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:no()),timestamp:e.timestamp||OM()});this._applyClientOptions(u),this._applyIntegrationsMetadata(u);var v=a;n&&n.captureContext&&(v=wp.clone(v).update(n.captureContext));var f=rl(u);return v&&(f=v.applyToEvent(u,n)),f.then(function(d){return d&&(d.sdkProcessingMetadata=K1(K1({},d.sdkProcessingMetadata),{normalizeDepth:H8(c)+" ("+typeof c+")"})),typeof c=="number"&&c>0?r._normalizeEvent(d,c,s):d})},t.prototype._normalizeEvent=function(e,a,n){if(!e)return null;var r=K1(K1(K1(K1(K1({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(function(o){return K1(K1({},o),o.data&&{data:H8(o.data,a,n)})})}),e.user&&{user:H8(e.user,a,n)}),e.contexts&&{contexts:H8(e.contexts,a,n)}),e.extra&&{extra:H8(e.extra,a,n)});return e.contexts&&e.contexts.trace&&(r.contexts.trace=e.contexts.trace),r.sdkProcessingMetadata=K1(K1({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},t.prototype._applyClientOptions=function(e){var a=this.getOptions(),n=a.environment,r=a.release,o=a.dist,l=a.maxValueLength,c=l===void 0?250:l;"environment"in e||(e.environment="environment"in a?n:"production"),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=fs(e.message,c));var h=e.exception&&e.exception.values&&e.exception.values[0];h&&h.value&&(h.value=fs(h.value,c));var s=e.request;s&&s.url&&(s.url=fs(s.url,c))},t.prototype._applyIntegrationsMetadata=function(e){var a=Object.keys(this._integrations);a.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=Be(e.sdk.integrations||[],a))},t.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},t.prototype._captureEvent=function(e,a,n){return this._processEvent(e,a,n).then(function(r){return r.event_id},function(r){qe&&Bt.error(r)})},t.prototype._processEvent=function(e,a,n){var r=this,o=this.getOptions(),l=o.beforeSend,c=o.sampleRate,h=this.getTransport();function s(v,f){h.recordLostEvent&&h.recordLostEvent(v,f)}if(!this._isEnabled())return ch(new o4("SDK not enabled, will not capture event."));var u=e.type==="transaction";return!u&&typeof c=="number"&&Math.random()>c?(s("sample_rate","event"),ch(new o4("Discarding event because it's not included in the random sample (sampling rate = "+c+")"))):this._prepareEvent(e,n,a).then(function(v){if(v===null)throw s("event_processor",e.type||"event"),new o4("An event processor returned null, will not send event.");var f=a&&a.data&&a.data.__sentry__===!0;if(f||u||!l)return v;var d=l(v,a);return bt0(d)}).then(function(v){if(v===null)throw s("before_send",e.type||"event"),new o4("`beforeSend` returned `null`, will not send event.");var f=n&&n.getSession&&n.getSession();return!u&&f&&r._updateSessionFromEvent(f,v),r._sendEvent(v),v}).then(null,function(v){throw v instanceof o4?v:(r.captureException(v,{data:{__sentry__:!0},originalException:v}),new o4(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: `+v))})},t.prototype._process=function(e){var a=this;this._numProcessing+=1,e.then(function(n){return a._numProcessing-=1,n},function(n){return a._numProcessing-=1,n})},t}();function bt0(t){var e="`beforeSend` method has to return `null` or a valid event.";if(wO(t))return t.then(function(a){if(!(bc(a)||a===null))throw new o4(e);return a},function(a){throw new o4("beforeSend rejected with "+a)});if(!(bc(t)||t===null))throw new o4(e);return t}function BO(t){if(!(!t.metadata||!t.metadata.sdk)){var e=t.metadata.sdk,a=e.name,n=e.version;return{name:a,version:n}}}function W01(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=Be(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=Be(t.sdk.packages||[],e.packages||[])),t}function q01(t,e){var a=BO(e),n=K1(K1({sent_at:new Date().toISOString()},a&&{sdk:a}),!!e.tunnel&&{dsn:su(e.dsn)}),r="aggregates"in t?"sessions":"session",o=[{type:r},t],l=AM(n,[o]);return[l,r]}function Lt0(t,e){var a=ga(q01(t,e),2),n=a[0],r=a[1];return{body:kM(n),type:r,url:PM(e.dsn,e.tunnel)}}function Bt0(t,e){var a=BO(e),n=t.type||"event",r=(t.sdkProcessingMetadata||{}).transactionSampling,o=r||{},l=o.method,c=o.rate;W01(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;var h=K1(K1({event_id:t.event_id,sent_at:new Date().toISOString()},a&&{sdk:a}),!!e.tunnel&&{dsn:su(e.dsn)}),s=[{type:n,sample_rates:[{id:l,rate:c}]},t];return AM(h,[s])}function _t0(t,e){var a=BO(e),n=t.type||"event",r=n==="transaction"||!!e.tunnel,o=(t.sdkProcessingMetadata||{}).transactionSampling,l=o||{},c=l.method,h=l.rate;W01(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;var s;try{s=JSON.stringify(t)}catch(g){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=g;try{s=JSON.stringify(H8(t))}catch(H){var u=H;s=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:u.message,stack:u.stack}})}}var v={body:s,type:n,url:r?PM(e.dsn,e.tunnel):U01(e.dsn)};if(r){var f=K1(K1({event_id:t.event_id,sent_at:new Date().toISOString()},a&&{sdk:a}),!!e.tunnel&&{dsn:su(e.dsn)}),d=[{type:n,sample_rates:[{id:c,rate:h}]},v.body],M=AM(f,[d]);v.body=kM(M)}return v}var St0=function(){function t(){}return t.prototype.sendEvent=function(e){return rl({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(e){return rl(!0)},t}(),Tt0=function(){function t(e){this._options=e,this._options.dsn||qe&&Bt.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(e,a){throw new o4("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(e,a,n){throw new o4("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(e){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var a=yp(this._options.dsn,this._options._metadata,this._options.tunnel),n=Bt0(e,a);this._newTransport.send(n).then(null,function(r){qe&&Bt.error("Error while sending event:",r)})}else this._transport.sendEvent(e).then(null,function(r){qe&&Bt.error("Error while sending event:",r)})},t.prototype.sendSession=function(e){if(!this._transport.sendSession){qe&&Bt.warn("Dropping session because custom transport doesn't implement sendSession");return}if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var a=yp(this._options.dsn,this._options._metadata,this._options.tunnel),n=ga(q01(e,a),1),r=n[0];this._newTransport.send(r).then(null,function(o){qe&&Bt.error("Error while sending session:",o)})}else this._transport.sendSession(e).then(null,function(o){qe&&Bt.error("Error while sending session:",o)})},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new St0},t}();function Ot0(t,e){e.debug===!0&&(qe?Bt.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var a=Ye(),n=a.getScope();n&&n.update(e.initialScope);var r=new t(e);a.bindClient(r)}var At0=30;function G01(t,e,a){a===void 0&&(a=k01(t.bufferSize||At0));var n={},r=function(l){return a.drain(l)};function o(l){var c=st0(l),h=c==="event"?"error":c,s={category:h,body:kM(l)};if(P01(n,h))return ch({status:"rate_limit",reason:lU(n,h)});var u=function(){return e(s).then(function(v){var f=v.body,d=v.headers,M=v.reason,g=v.statusCode,H=E01(g);return d&&(n=N01(n,d)),H==="success"?rl({status:H,reason:M}):ch({status:H,reason:M||f||(H==="rate_limit"?lU(n,h):"Unknown transport error")})})};return a.add(u)}return{send:o,flush:r}}function lU(t,e){return"Too many "+e+" requests, backing off until: "+new Date(VO(t,e)).toISOString()}var xp="6.19.7",cU,kt0=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){cU=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],a=0;a=0;e--){var a=t[e];if(a&&a.filename!==""&&a.filename!=="[native code]")return a.filename||null}return null}function Vp(t){try{if(t.stacktrace)return sU(t.stacktrace.frames);var e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?sU(e):null}catch{return qe&&Bt.error("Cannot extract url for event "+B8(t)),null}}var c9="?",Ut0=10,Wt0=20,qt0=30,Gt0=40,Kt0=50;function hu(t,e,a,n){var r={filename:t,function:e,in_app:!0};return a!==void 0&&(r.lineno=a),n!==void 0&&(r.colno=n),r}var Yt0=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Zt0=/\((\S*)(?::(\d+))(?::(\d+))\)/,Qt0=function(t){var e=Yt0.exec(t);if(e){var a=e[2]&&e[2].indexOf("eval")===0;if(a){var n=Zt0.exec(e[2]);n&&(e[2]=n[1],e[3]=n[2],e[4]=n[3])}var r=ga(K01(e[1]||c9,e[2]),2),o=r[0],l=r[1];return hu(l,o,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},Xt0=[qt0,Qt0],Jt0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,t20=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,e20=function(t){var e,a=Jt0.exec(t);if(a){var n=a[3]&&a[3].indexOf(" > eval")>-1;if(n){var r=t20.exec(a[3]);r&&(a[1]=a[1]||"eval",a[3]=r[1],a[4]=r[2],a[5]="")}var o=a[3],l=a[1]||c9;return e=ga(K01(l,o),2),l=e[0],o=e[1],hu(o,l,a[4]?+a[4]:void 0,a[5]?+a[5]:void 0)}},a20=[Kt0,e20],n20=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,r20=function(t){var e=n20.exec(t);return e?hu(e[2],e[1]||c9,+e[3],e[4]?+e[4]:void 0):void 0},i20=[Gt0,r20],o20=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,l20=function(t){var e=o20.exec(t);return e?hu(e[2],e[3]||c9,+e[1]):void 0},c20=[Ut0,l20],s20=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,h20=function(t){var e=s20.exec(t);return e?hu(e[5],e[3]||e[4]||c9,+e[1],+e[2]):void 0},u20=[Wt0,h20],K01=function(t,e){var a=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return a||n?[t.indexOf("@")!==-1?t.split("@")[0]:c9,a?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function Y01(t){var e=_O(t),a={type:t&&t.name,value:g20(t)};return e.length&&(a.stacktrace={frames:e}),a.type===void 0&&a.value===""&&(a.value="Unrecoverable error caught"),a}function v20(t,e,a){var n={exception:{values:[{type:_M(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:"Non-Error "+(a?"promise rejection":"exception")+" captured with keys: "+A10(t)}]},extra:{__serialized__:O01(t)}};if(e){var r=_O(e);r.length&&(n.stacktrace={frames:r})}return n}function RV(t){return{exception:{values:[Y01(t)]}}}function _O(t){var e=t.stacktrace||t.stack||"",a=f20(t);try{return E10(c20,u20,Xt0,i20,a20)(e,a)}catch{}return[]}var d20=/Minified React error #\d+;/i;function f20(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(d20.test(t.message))return 1}return 0}function g20(t){var e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function p20(t,e,a){var n=e&&e.syntheticException||void 0,r=SO(t,n,a);return lh(r),r.level=bi.Error,e&&e.event_id&&(r.event_id=e.event_id),rl(r)}function m20(t,e,a,n){e===void 0&&(e=bi.Info);var r=a&&a.syntheticException||void 0,o=XL(t,r,n);return o.level=e,a&&a.event_id&&(o.event_id=a.event_id),rl(o)}function SO(t,e,a,n){var r;if(C01(t)&&t.error){var o=t;return RV(o.error)}if(q$(t)||p10(t)){var l=t;if("stack"in t)r=RV(t);else{var c=l.name||(q$(l)?"DOMError":"DOMException"),h=l.message?c+": "+l.message:c;r=XL(h,e,a),YL(r,h)}return"code"in l&&(r.tags=K1(K1({},r.tags),{"DOMException.code":""+l.code})),r}if(MO(t))return RV(t);if(bc(t)||_M(t)){var s=t;return r=v20(s,e,n),lh(r,{synthetic:!0}),r}return r=XL(t,e,a),YL(r,""+t,void 0),lh(r,{synthetic:!0}),r}function XL(t,e,a){var n={message:t};if(a&&e){var r=_O(e);r.length&&(n.stacktrace={frames:r})}return n}var Pn=typeof __SENTRY_DEBUG__>"u"?!0:__SENTRY_DEBUG__,xr=g0(),Gd;function TO(){if(Gd)return Gd;if(KL(xr.fetch))return Gd=xr.fetch.bind(xr);var t=xr.document,e=xr.fetch;if(t&&typeof t.createElement=="function")try{var a=t.createElement("iframe");a.hidden=!0,t.head.appendChild(a);var n=a.contentWindow;n&&n.fetch&&(e=n.fetch),t.head.removeChild(a)}catch(r){Pn&&Bt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return Gd=e.bind(xr)}function z20(t,e){var a=Object.prototype.toString.call(xr&&xr.navigator)==="[object Navigator]",n=a&&typeof xr.navigator.sendBeacon=="function";if(n){var r=xr.navigator.sendBeacon.bind(xr.navigator);return r(t,e)}if(TM()){var o=TO();return v10(o(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}))}}function jV(t){var e=t;return e==="event"?"error":e}var IV=g0(),Z01=function(){function t(e){var a=this;this.options=e,this._buffer=k01(30),this._rateLimits={},this._outcomes={},this._api=yp(e.dsn,e._metadata,e.tunnel),this.url=U01(this._api.dsn),this.options.sendClientReports&&IV.document&&IV.document.addEventListener("visibilitychange",function(){IV.document.visibilityState==="hidden"&&a._flushOutcomes()})}return t.prototype.sendEvent=function(e){return this._sendRequest(_t0(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(Lt0(e,this._api),e)},t.prototype.close=function(e){return this._buffer.drain(e)},t.prototype.recordLostEvent=function(e,a){var n;if(this.options.sendClientReports){var r=jV(a)+":"+e;Pn&&Bt.log("Adding outcome: "+r),this._outcomes[r]=(n=this._outcomes[r],(n??0)+1)}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},!Object.keys(e).length){Pn&&Bt.log("No outcomes to flush");return}Pn&&Bt.log(`Flushing outcomes: -`+JSON.stringify(e,null,2));var a=PM(this._api.dsn,this._api.tunnel),n=Object.keys(e).map(function(o){var l=ga(o.split(":"),2),c=l[0],h=l[1];return{reason:h,category:c,quantity:e[o]}}),r=ht0(n,this._api.tunnel&&su(this._api.dsn));try{z20(a,kM(r))}catch(o){Pn&&Bt.error(o)}}},t.prototype._handleResponse=function(e){var a=e.requestType,n=e.response,r=e.headers,o=e.resolve,l=e.reject,c=E01(n.status);if(this._rateLimits=N01(this._rateLimits,r),this._isRateLimited(a)&&Pn&&Bt.warn("Too many "+a+" requests, backing off until: "+this._disabledUntil(a)),c==="success"){o({status:c});return}l(n)},t.prototype._disabledUntil=function(e){var a=jV(e);return new Date(VO(this._rateLimits,a))},t.prototype._isRateLimited=function(e){var a=jV(e);return P01(this._rateLimits,a)},t}(),M20=function(t){$5(e,t);function e(a,n){n===void 0&&(n=TO());var r=t.call(this,a)||this;return r._fetch=n,r}return e.prototype._sendRequest=function(a,n){var r=this;if(this._isRateLimited(a.type))return this.recordLostEvent("ratelimit_backoff",a.type),Promise.reject({event:n,type:a.type,reason:"Transport for "+a.type+" requests locked till "+this._disabledUntil(a.type)+" due to too many requests.",status:429});var o={body:a.body,method:"POST",referrerPolicy:D10()?"origin":""};return this.options.fetchParameters!==void 0&&Object.assign(o,this.options.fetchParameters),this.options.headers!==void 0&&(o.headers=this.options.headers),this._buffer.add(function(){return new Do(function(l,c){r._fetch(a.url,o).then(function(h){var s={"x-sentry-rate-limits":h.headers.get("X-Sentry-Rate-Limits"),"retry-after":h.headers.get("Retry-After")};r._handleResponse({requestType:a.type,response:h,headers:s,resolve:l,reject:c})}).catch(c)})}).then(void 0,function(l){throw l instanceof o4?r.recordLostEvent("queue_overflow",a.type):r.recordLostEvent("network_error",a.type),l})},e}(Z01),H20=function(t){$5(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._sendRequest=function(a,n){var r=this;return this._isRateLimited(a.type)?(this.recordLostEvent("ratelimit_backoff",a.type),Promise.reject({event:n,type:a.type,reason:"Transport for "+a.type+" requests locked till "+this._disabledUntil(a.type)+" due to too many requests.",status:429})):this._buffer.add(function(){return new Do(function(o,l){var c=new XMLHttpRequest;c.onreadystatechange=function(){if(c.readyState===4){var s={"x-sentry-rate-limits":c.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":c.getResponseHeader("Retry-After")};r._handleResponse({requestType:a.type,response:c,headers:s,resolve:o,reject:l})}},c.open("POST",a.url);for(var h in r.options.headers)Object.prototype.hasOwnProperty.call(r.options.headers,h)&&c.setRequestHeader(h,r.options.headers[h]);c.send(a.body)})}).then(void 0,function(o){throw o instanceof o4?r.recordLostEvent("queue_overflow",a.type):r.recordLostEvent("network_error",a.type),o})},e}(Z01);function w20(t,e){e===void 0&&(e=TO());function a(n){var r=K1({body:n.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return e(t.url,r).then(function(o){return o.text().then(function(l){return{body:l,headers:{"x-sentry-rate-limits":o.headers.get("X-Sentry-Rate-Limits"),"retry-after":o.headers.get("Retry-After")},reason:o.statusText,statusCode:o.status}})})}return G01({bufferSize:t.bufferSize},a)}var y20=4;function x20(t){function e(a){return new Do(function(n,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){if(o.readyState===y20){var c={body:o.response,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")},reason:o.statusText,statusCode:o.status};n(c)}},o.open("POST",t.url);for(var l in t.headers)Object.prototype.hasOwnProperty.call(t.headers,l)&&o.setRequestHeader(l,t.headers[l]);o.send(a.body)})}return G01({bufferSize:t.bufferSize},e)}var V20=function(t){$5(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.eventFromException=function(a,n){return p20(a,n,this._options.attachStacktrace)},e.prototype.eventFromMessage=function(a,n,r){return n===void 0&&(n=bi.Info),m20(a,n,r,this._options.attachStacktrace)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var a=K1(K1({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),n=yp(a.dsn,a._metadata,a.tunnel),r=PM(n.dsn,n.tunnel);if(this._options.transport)return new this._options.transport(a);if(TM()){var o=K1({},a.fetchParameters);return this._newTransport=w20({requestOptions:o,url:r}),new M20(a)}return this._newTransport=x20({url:r,headers:a.headers}),new H20(a)},e}(Tt0),Kd=g0(),JL=0;function Q01(){return JL>0}function C20(){JL+=1,setTimeout(function(){JL-=1})}function Lc(t,e,a){if(e===void 0&&(e={}),typeof t!="function")return t;try{var n=t.__sentry_wrapped__;if(n)return n;if(xO(t))return t}catch{return t}var r=function(){var c=Array.prototype.slice.call(arguments);try{a&&typeof a=="function"&&a.apply(this,arguments);var h=c.map(function(s){return Lc(s,e)});return t.apply(this,h)}catch(s){throw C20(),mt0(function(u){u.addEventProcessor(function(v){return e.mechanism&&(YL(v,void 0,void 0),lh(v,e.mechanism)),v.extra=K1(K1({},v.extra),{arguments:c}),v}),pt0(s)}),s}};try{for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}catch{}_01(r,t),SM(t,"__sentry_wrapped__",r);try{var l=Object.getOwnPropertyDescriptor(r,"name");l.configurable&&Object.defineProperty(r,"name",{get:function(){return t.name}})}catch{}return r}function b20(t){if(t===void 0&&(t={}),!!Kd.document){if(!t.eventId){Pn&&Bt.error("Missing eventId option in showReportDialog call");return}if(!t.dsn){Pn&&Bt.error("Missing dsn option in showReportDialog call");return}var e=Kd.document.createElement("script");e.async=!0,e.src=wt0(t.dsn,t),t.onLoad&&(e.onload=t.onLoad);var a=Kd.document.head||Kd.document.body;a&&a.appendChild(e)}}var OO=function(){function t(e){this.name=t.id,this._installFunc={onerror:L20,onunhandledrejection:B20},this._options=K1({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50;var e=this._options;for(var a in e){var n=this._installFunc[a];n&&e[a]&&(T20(a),n(),this._installFunc[a]=void 0)}},t.id="GlobalHandlers",t}();function L20(){tn("error",function(t){var e=ga(te1(),2),a=e[0],n=e[1];if(a.getIntegration(OO)){var r=t.msg,o=t.url,l=t.line,c=t.column,h=t.error;if(!(Q01()||h&&h.__sentry_own_request__)){var s=h===void 0&&Cc(r)?S20(r,o,l,c):X01(SO(h||r,void 0,n,!1),o,l,c);s.level=bi.Error,J01(a,h,s,"onerror")}}})}function B20(){tn("unhandledrejection",function(t){var e=ga(te1(),2),a=e[0],n=e[1];if(a.getIntegration(OO)){var r=t;try{"reason"in t?r=t.reason:"detail"in t&&"reason"in t.detail&&(r=t.detail.reason)}catch{}if(Q01()||r&&r.__sentry_own_request__)return!0;var o=HO(r)?_20(r):SO(r,void 0,n,!0);o.level=bi.Error,J01(a,r,o,"onunhandledrejection")}})}function _20(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}}function S20(t,e,a,n){var r=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=C01(t)?t.message:t,l="Error",c=o.match(r);c&&(l=c[1],o=c[2]);var h={exception:{values:[{type:l,value:o}]}};return X01(h,e,a,n)}function X01(t,e,a,n){var r=t.exception=t.exception||{},o=r.values=r.values||[],l=o[0]=o[0]||{},c=l.stacktrace=l.stacktrace||{},h=c.frames=c.frames||[],s=isNaN(parseInt(n,10))?void 0:n,u=isNaN(parseInt(a,10))?void 0:a,v=Cc(e)&&e.length>0?e:w10();return h.length===0&&h.push({colno:s,filename:v,function:"?",in_app:!0,lineno:u}),t}function T20(t){Pn&&Bt.log("Global Handler attached: "+t)}function J01(t,e,a,n){lh(a,{handled:!1,type:n}),t.captureEvent(a,{originalException:e})}function te1(){var t=Ye(),e=t.getClient(),a=e&&e.getOptions().attachStacktrace;return[t,a]}var O20=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],A20=function(){function t(e){this.name=t.id,this._options=K1({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var e=g0();this._options.setTimeout&&Z4(e,"setTimeout",hU),this._options.setInterval&&Z4(e,"setInterval",hU),this._options.requestAnimationFrame&&Z4(e,"requestAnimationFrame",k20),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Z4(XMLHttpRequest.prototype,"send",E20);var a=this._options.eventTarget;if(a){var n=Array.isArray(a)?a:O20;n.forEach(P20)}},t.id="TryCatch",t}();function hU(t){return function(){for(var e=[],a=0;a"}n.length!==0&&Ye().addBreadcrumb({category:"ui."+a.name,message:n},{event:a.event,name:a.name,global:a.global})}return e}function D20(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:rt0(t.level),message:K$(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)e.message="Assertion failed: "+(K$(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1);else return;Ye().addBreadcrumb(e,{input:t.args,level:t.level})}function R20(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},a=e.method,n=e.url,r=e.status_code,o=e.body;Ye().addBreadcrumb({category:"xhr",data:{method:a,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:o});return}}function j20(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"||(t.error?Ye().addBreadcrumb({category:"fetch",data:t.fetchData,level:bi.Error,type:"http"},{data:t.error,input:t.args}):Ye().addBreadcrumb({category:"fetch",data:K1(K1({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))}function I20(t){var e=g0(),a=t.from,n=t.to,r=NV(e.location.href),o=NV(a),l=NV(n);o.path||(o=r),r.protocol===l.protocol&&r.host===l.host&&(n=l.relative),r.protocol===o.protocol&&r.host===o.host&&(a=o.relative),Ye().addBreadcrumb({category:"navigation",data:{from:a,to:n}})}var F20="cause",$20=5,U20=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._key=e.key||F20,this._limit=e.limit||$20}return t.prototype.setupOnce=function(){CO(function(e,a){var n=Ye().getIntegration(t);return n?W20(n._key,n._limit,e,a):e})},t.id="LinkedErrors",t}();function W20(t,e,a,n){if(!a.exception||!a.exception.values||!n||!Oi(n.originalException,Error))return a;var r=ae1(e,n.originalException,t);return a.exception.values=Be(r,a.exception.values),a}function ae1(t,e,a,n){if(n===void 0&&(n=[]),!Oi(e[a],Error)||n.length+1>=t)return n;var r=Y01(e[a]);return ae1(t,e[a],a,Be([r],n))}var o8=g0(),q20=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){CO(function(e){if(Ye().getIntegration(t)){if(!o8.navigator&&!o8.location&&!o8.document)return e;var a=e.request&&e.request.url||o8.location&&o8.location.href,n=(o8.document||{}).referrer,r=(o8.navigator||{}).userAgent,o=K1(K1(K1({},e.request&&e.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),l=K1(K1({},a&&{url:a}),{headers:o});return K1(K1({},e),{request:l})}return e})},t.id="UserAgent",t}(),G20=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,a){e(function(n){var r=a().getIntegration(t);if(r){try{if(K20(n,r._previousEvent))return Pn&&Bt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return r._previousEvent=n}return r._previousEvent=n}return n})},t.id="Dedupe",t}();function K20(t,e){return e?!!(Y20(t,e)||Z20(t,e)):!1}function Y20(t,e){var a=t.message,n=e.message;return!(!a&&!n||a&&!n||!a&&n||a!==n||!re1(t,e)||!ne1(t,e))}function Z20(t,e){var a=uU(e),n=uU(t);return!(!a||!n||a.type!==n.type||a.value!==n.value||!re1(t,e)||!ne1(t,e))}function ne1(t,e){var a=vU(t),n=vU(e);if(!a&&!n)return!0;if(a&&!n||!a&&n||(a=a,n=n,n.length!==a.length))return!1;for(var r=0;r"u"){Pn&&Bt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}var a=Ye();a.captureSession&&(dU(a),tn("history",function(n){var r=n.from,o=n.to;r===void 0||r===o||dU(Ye())}))}function e00(t){t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:xp}],version:xp},J20(t)}var a00="ui.react.render",n00="ui.react.update",fU="ui.react.mount",r00="unknown",i00={id:"Tracing"},mi=null,o00=function(){return mi||(mi=Ye().getIntegration(i00),mi)};function l00(t,e){return mi===null?null:mi.constructor.pushActivity(t,{description:"<"+t+">",op:e})}function c00(t){t===null||mi===null||mi.constructor.popActivity(t)}function s00(t){if(!(t===null||mi===null))return mi.constructor.getActivitySpan(t)}var h00=function(t){$5(e,t);function e(a){var n=t.call(this,a)||this;n._mountSpan=void 0,n._mountActivity=null;var r=n.props,o=r.name,l=r.disabled,c=l===void 0?!1:l;if(c)return n;if(o00())n._mountActivity=l00(o,fU);else{var h=v00();h&&(n._mountSpan=h.startChild({description:"<"+o+">",op:fU}))}return n}return e.prototype.componentDidMount=function(){this._mountSpan?this._mountSpan.finish():(this._mountSpan=s00(this._mountActivity),c00(this._mountActivity),this._mountActivity=null)},e.prototype.componentDidUpdate=function(a){var n=this,r=a.updateProps,o=a.includeUpdates,l=o===void 0?!0:o;if(l&&this._mountSpan&&r!==this.props.updateProps){var c=Object.keys(r).filter(function(s){return r[s]!==n.props.updateProps[s]});if(c.length>0){var h=il();this._mountSpan.startChild({data:{changedProps:c},description:"<"+this.props.name+">",endTimestamp:h,op:n00,startTimestamp:h})}}},e.prototype.componentWillUnmount=function(){var a=this.props,n=a.name,r=a.includeRender,o=r===void 0?!0:r;this._mountSpan&&o&&this._mountSpan.startChild({description:"<"+n+">",endTimestamp:il(),op:a00,startTimestamp:this._mountSpan.endTimestamp})},e.prototype.render=function(){return this.props.children},e.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0},e}(_.Component);function u00(t,e){var a=e&&e.name||t.displayName||t.name||r00,n=function(r){return _.createElement(h00,K1({},e,{name:a,updateProps:r}),_.createElement(t,K1({},r)))};return n.displayName="profiler("+a+")",Lh(n,t),n}function v00(t){if(t===void 0&&(t=Ye()),t){var e=t.getScope();if(e)return e.getTransaction()}}const d00=ma.div` +`+u},r)}function vt0(t,e,a){var n=[{type:"client_report"},{timestamp:a||OM(),discarded_events:t}];return AM(e?{dsn:e}:{},[n])}var dt0=60*1e3;function ft0(t,e){e===void 0&&(e=Date.now());var a=parseInt(""+t,10);if(!isNaN(a))return a*1e3;var n=Date.parse(""+t);return isNaN(n)?dt0:n-e}function VO(t,e){return t[e]||t.all||0}function P01(t,e,a){return a===void 0&&(a=Date.now()),VO(t,e)>a}function N01(t,e,a){var n,r,o,l;a===void 0&&(a=Date.now());var c=K1({},t),h=e["x-sentry-rate-limits"],s=e["retry-after"];if(h)try{for(var u=zo(h.trim().split(",")),v=u.next();!v.done;v=u.next()){var f=v.value,d=f.split(":",2),M=parseInt(d[0],10),g=(isNaN(M)?60:M)*1e3;if(!d[1])c.all=a+g;else try{for(var H=(o=void 0,zo(d[1].split(";"))),p=H.next();!p.done;p=H.next()){var m=p.value;c[m]=a+g}}catch(z){o={error:z}}finally{try{p&&!p.done&&(l=H.return)&&l.call(H)}finally{if(o)throw o.error}}}}catch(z){n={error:z}}finally{try{v&&!v.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}else s&&(c.all=a+ft0(s,a));return c}var eU=100,wp=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return t.clone=function(e){var a=new t;return e&&(a._breadcrumbs=Be(e._breadcrumbs),a._tags=K1({},e._tags),a._extra=K1({},e._extra),a._contexts=K1({},e._contexts),a._user=e._user,a._level=e._level,a._span=e._span,a._session=e._session,a._transactionName=e._transactionName,a._fingerprint=e._fingerprint,a._eventProcessors=Be(e._eventProcessors),a._requestSession=e._requestSession),a},t.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},t.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},t.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(e){return this._requestSession=e,this},t.prototype.setTags=function(e){return this._tags=K1(K1({},this._tags),e),this._notifyScopeListeners(),this},t.prototype.setTag=function(e,a){var n;return this._tags=K1(K1({},this._tags),(n={},n[e]=a,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(e){return this._extra=K1(K1({},this._extra),e),this._notifyScopeListeners(),this},t.prototype.setExtra=function(e,a){var n;return this._extra=K1(K1({},this._extra),(n={},n[e]=a,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},t.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(e){return this.setTransactionName(e)},t.prototype.setContext=function(e,a){var n;return a===null?delete this._contexts[e]:this._contexts=K1(K1({},this._contexts),(n={},n[e]=a,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var e=this.getSpan();return e&&e.transaction},t.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if(typeof e=="function"){var a=e(this);return a instanceof t?a:this}return e instanceof t?(this._tags=K1(K1({},this._tags),e._tags),this._extra=K1(K1({},this._extra),e._extra),this._contexts=K1(K1({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):bc(e)&&(e=e,this._tags=K1(K1({},this._tags),e.tags),this._extra=K1(K1({},this._extra),e.extra),this._contexts=K1(K1({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){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._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(e,a){var n=typeof a=="number"?Math.min(a,eU):eU;if(n<=0)return this;var r=K1({timestamp:OM()},e);return this._breadcrumbs=Be(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(e,a){if(this._extra&&Object.keys(this._extra).length&&(e.extra=K1(K1({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=K1(K1({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=K1(K1({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=K1(K1({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=K1({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags=K1({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Be(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(Be(D01(),this._eventProcessors),e,a)},t.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=K1(K1({},this._sdkProcessingMetadata),e),this},t.prototype._notifyEventProcessors=function(e,a,n,r){var o=this;return r===void 0&&(r=0),new Do(function(l,c){var h=e[r];if(a===null||typeof h!="function")l(a);else{var s=h(K1({},a),n);wO(s)?s.then(function(u){return o._notifyEventProcessors(e,u,n,r+1).then(l)}).then(null,c):o._notifyEventProcessors(e,s,n,r+1).then(l).then(null,c)}})},t.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(a){a(e)}),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},t}();function D01(){return zO("globalEventProcessors",function(){return[]})}function CO(t){D01().push(t)}var gt0=function(){function t(e){this.errors=0,this.sid=no(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var a=QL();this.timestamp=a,this.started=a,e&&this.update(e)}return t.prototype.update=function(e){if(e===void 0&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),!this.did&&!e.did&&(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||QL(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=e.sid.length===32?e.sid:no()),e.init!==void 0&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),typeof e.started=="number"&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if(typeof e.duration=="number")this.duration=e.duration;else{var a=this.timestamp-this.started;this.duration=a>=0?a:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),typeof e.errors=="number"&&(this.errors=e.errors),e.status&&(this.status=e.status)},t.prototype.close=function(e){e?this.update({status:e}):this.status==="ok"?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return N8({sid:""+this.sid,init:this.init,started:new Date(this.started*1e3).toISOString(),timestamp:new Date(this.timestamp*1e3).toISOString(),status:this.status,errors:this.errors,did:typeof this.did=="number"||typeof this.did=="string"?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}(),aU=typeof __SENTRY_DEBUG__>"u"?!0:__SENTRY_DEBUG__,bO=4,pt0=100,EM=function(){function t(e,a,n){a===void 0&&(a=new wp),n===void 0&&(n=bO),this._version=n,this._stack=[{}],this.getStackTop().scope=a,e&&this.bindClient(e)}return t.prototype.isOlderThan=function(e){return this._version"u"?!0:__SENTRY_DEBUG__,rU=[];function iU(t){return t.reduce(function(e,a){return e.every(function(n){return a.name!==n.name})&&e.push(a),e},[])}function Vt0(t){var e=t.defaultIntegrations&&Be(t.defaultIntegrations)||[],a=t.integrations,n=Be(iU(e));Array.isArray(a)?n=Be(n.filter(function(l){return a.every(function(c){return c.name!==l.name})}),iU(a)):typeof a=="function"&&(n=a(n),n=Array.isArray(n)?n:[n]);var r=n.map(function(l){return l.name}),o="Debug";return r.indexOf(o)!==-1&&n.push.apply(n,Be(n.splice(r.indexOf(o),1))),n}function Ct0(t){rU.indexOf(t.name)===-1&&(t.setupOnce(CO,Ye),rU.push(t.name),qe&&Bt.log("Integration installed: "+t.name))}function bt0(t){var e={};return Vt0(t).forEach(function(a){e[a.name]=a,Ct0(a)}),SM(e,"initialized",!0),e}var oU="Not capturing exception because it's already been captured.",Lt0=function(){function t(e,a){this._integrations={},this._numProcessing=0,this._backend=new e(a),this._options=a,a.dsn&&(this._dsn=yO(a.dsn))}return t.prototype.captureException=function(e,a,n){var r=this;if(J$(e)){qe&&Bt.log(oU);return}var o=a&&a.event_id;return this._process(this._getBackend().eventFromException(e,a).then(function(l){return r._captureEvent(l,a,n)}).then(function(l){o=l})),o},t.prototype.captureMessage=function(e,a,n,r){var o=this,l=n&&n.event_id,c=HO(e)?this._getBackend().eventFromMessage(String(e),a,n):this._getBackend().eventFromException(e,n);return this._process(c.then(function(h){return o._captureEvent(h,n,r)}).then(function(h){l=h})),l},t.prototype.captureEvent=function(e,a,n){if(a&&a.originalException&&J$(a.originalException)){qe&&Bt.log(oU);return}var r=a&&a.event_id;return this._process(this._captureEvent(e,a,n).then(function(o){r=o})),r},t.prototype.captureSession=function(e){if(!this._isEnabled()){qe&&Bt.warn("SDK not enabled, will not capture session.");return}typeof e.release!="string"?qe&&Bt.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1}))},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(e){var a=this;return this._isClientDoneProcessing(e).then(function(n){return a.getTransport().close(e).then(function(r){return n&&r})})},t.prototype.close=function(e){var a=this;return this.flush(e).then(function(n){return a.getOptions().enabled=!1,n})},t.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=bt0(this._options))},t.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch{return qe&&Bt.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(e,a){var n,r,o=!1,l=!1,c=a.exception&&a.exception.values;if(c){l=!0;try{for(var h=zo(c),s=h.next();!s.done;s=h.next()){var u=s.value,v=u.mechanism;if(v&&v.handled===!1){o=!0;break}}}catch(M){n={error:M}}finally{try{s&&!s.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}var f=e.status==="ok",d=f&&e.errors===0||f&&o;d&&(e.update(K1(K1({},o&&{status:"crashed"}),{errors:e.errors||Number(l||o)})),this.captureSession(e))},t.prototype._sendSession=function(e){this._getBackend().sendSession(e)},t.prototype._isClientDoneProcessing=function(e){var a=this;return new Do(function(n){var r=0,o=1,l=setInterval(function(){a._numProcessing==0?(clearInterval(l),n(!0)):(r+=o,e&&r>=e&&(clearInterval(l),n(!1)))},o)})},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return this.getOptions().enabled!==!1&&this._dsn!==void 0},t.prototype._prepareEvent=function(e,a,n){var r=this,o=this.getOptions(),l=o.normalizeDepth,c=l===void 0?3:l,h=o.normalizeMaxBreadth,s=h===void 0?1e3:h,u=K1(K1({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:no()),timestamp:e.timestamp||OM()});this._applyClientOptions(u),this._applyIntegrationsMetadata(u);var v=a;n&&n.captureContext&&(v=wp.clone(v).update(n.captureContext));var f=rl(u);return v&&(f=v.applyToEvent(u,n)),f.then(function(d){return d&&(d.sdkProcessingMetadata=K1(K1({},d.sdkProcessingMetadata),{normalizeDepth:H8(c)+" ("+typeof c+")"})),typeof c=="number"&&c>0?r._normalizeEvent(d,c,s):d})},t.prototype._normalizeEvent=function(e,a,n){if(!e)return null;var r=K1(K1(K1(K1(K1({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(function(o){return K1(K1({},o),o.data&&{data:H8(o.data,a,n)})})}),e.user&&{user:H8(e.user,a,n)}),e.contexts&&{contexts:H8(e.contexts,a,n)}),e.extra&&{extra:H8(e.extra,a,n)});return e.contexts&&e.contexts.trace&&(r.contexts.trace=e.contexts.trace),r.sdkProcessingMetadata=K1(K1({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},t.prototype._applyClientOptions=function(e){var a=this.getOptions(),n=a.environment,r=a.release,o=a.dist,l=a.maxValueLength,c=l===void 0?250:l;"environment"in e||(e.environment="environment"in a?n:"production"),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=fs(e.message,c));var h=e.exception&&e.exception.values&&e.exception.values[0];h&&h.value&&(h.value=fs(h.value,c));var s=e.request;s&&s.url&&(s.url=fs(s.url,c))},t.prototype._applyIntegrationsMetadata=function(e){var a=Object.keys(this._integrations);a.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=Be(e.sdk.integrations||[],a))},t.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},t.prototype._captureEvent=function(e,a,n){return this._processEvent(e,a,n).then(function(r){return r.event_id},function(r){qe&&Bt.error(r)})},t.prototype._processEvent=function(e,a,n){var r=this,o=this.getOptions(),l=o.beforeSend,c=o.sampleRate,h=this.getTransport();function s(v,f){h.recordLostEvent&&h.recordLostEvent(v,f)}if(!this._isEnabled())return ch(new o4("SDK not enabled, will not capture event."));var u=e.type==="transaction";return!u&&typeof c=="number"&&Math.random()>c?(s("sample_rate","event"),ch(new o4("Discarding event because it's not included in the random sample (sampling rate = "+c+")"))):this._prepareEvent(e,n,a).then(function(v){if(v===null)throw s("event_processor",e.type||"event"),new o4("An event processor returned null, will not send event.");var f=a&&a.data&&a.data.__sentry__===!0;if(f||u||!l)return v;var d=l(v,a);return Bt0(d)}).then(function(v){if(v===null)throw s("before_send",e.type||"event"),new o4("`beforeSend` returned `null`, will not send event.");var f=n&&n.getSession&&n.getSession();return!u&&f&&r._updateSessionFromEvent(f,v),r._sendEvent(v),v}).then(null,function(v){throw v instanceof o4?v:(r.captureException(v,{data:{__sentry__:!0},originalException:v}),new o4(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: `+v))})},t.prototype._process=function(e){var a=this;this._numProcessing+=1,e.then(function(n){return a._numProcessing-=1,n},function(n){return a._numProcessing-=1,n})},t}();function Bt0(t){var e="`beforeSend` method has to return `null` or a valid event.";if(wO(t))return t.then(function(a){if(!(bc(a)||a===null))throw new o4(e);return a},function(a){throw new o4("beforeSend rejected with "+a)});if(!(bc(t)||t===null))throw new o4(e);return t}function BO(t){if(!(!t.metadata||!t.metadata.sdk)){var e=t.metadata.sdk,a=e.name,n=e.version;return{name:a,version:n}}}function W01(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=Be(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=Be(t.sdk.packages||[],e.packages||[])),t}function q01(t,e){var a=BO(e),n=K1(K1({sent_at:new Date().toISOString()},a&&{sdk:a}),!!e.tunnel&&{dsn:su(e.dsn)}),r="aggregates"in t?"sessions":"session",o=[{type:r},t],l=AM(n,[o]);return[l,r]}function _t0(t,e){var a=ga(q01(t,e),2),n=a[0],r=a[1];return{body:kM(n),type:r,url:PM(e.dsn,e.tunnel)}}function St0(t,e){var a=BO(e),n=t.type||"event",r=(t.sdkProcessingMetadata||{}).transactionSampling,o=r||{},l=o.method,c=o.rate;W01(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;var h=K1(K1({event_id:t.event_id,sent_at:new Date().toISOString()},a&&{sdk:a}),!!e.tunnel&&{dsn:su(e.dsn)}),s=[{type:n,sample_rates:[{id:l,rate:c}]},t];return AM(h,[s])}function Tt0(t,e){var a=BO(e),n=t.type||"event",r=n==="transaction"||!!e.tunnel,o=(t.sdkProcessingMetadata||{}).transactionSampling,l=o||{},c=l.method,h=l.rate;W01(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;var s;try{s=JSON.stringify(t)}catch(g){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=g;try{s=JSON.stringify(H8(t))}catch(H){var u=H;s=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:u.message,stack:u.stack}})}}var v={body:s,type:n,url:r?PM(e.dsn,e.tunnel):U01(e.dsn)};if(r){var f=K1(K1({event_id:t.event_id,sent_at:new Date().toISOString()},a&&{sdk:a}),!!e.tunnel&&{dsn:su(e.dsn)}),d=[{type:n,sample_rates:[{id:c,rate:h}]},v.body],M=AM(f,[d]);v.body=kM(M)}return v}var Ot0=function(){function t(){}return t.prototype.sendEvent=function(e){return rl({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(e){return rl(!0)},t}(),At0=function(){function t(e){this._options=e,this._options.dsn||qe&&Bt.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(e,a){throw new o4("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(e,a,n){throw new o4("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(e){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var a=yp(this._options.dsn,this._options._metadata,this._options.tunnel),n=St0(e,a);this._newTransport.send(n).then(null,function(r){qe&&Bt.error("Error while sending event:",r)})}else this._transport.sendEvent(e).then(null,function(r){qe&&Bt.error("Error while sending event:",r)})},t.prototype.sendSession=function(e){if(!this._transport.sendSession){qe&&Bt.warn("Dropping session because custom transport doesn't implement sendSession");return}if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var a=yp(this._options.dsn,this._options._metadata,this._options.tunnel),n=ga(q01(e,a),1),r=n[0];this._newTransport.send(r).then(null,function(o){qe&&Bt.error("Error while sending session:",o)})}else this._transport.sendSession(e).then(null,function(o){qe&&Bt.error("Error while sending session:",o)})},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new Ot0},t}();function kt0(t,e){e.debug===!0&&(qe?Bt.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var a=Ye(),n=a.getScope();n&&n.update(e.initialScope);var r=new t(e);a.bindClient(r)}var Et0=30;function G01(t,e,a){a===void 0&&(a=k01(t.bufferSize||Et0));var n={},r=function(l){return a.drain(l)};function o(l){var c=ut0(l),h=c==="event"?"error":c,s={category:h,body:kM(l)};if(P01(n,h))return ch({status:"rate_limit",reason:lU(n,h)});var u=function(){return e(s).then(function(v){var f=v.body,d=v.headers,M=v.reason,g=v.statusCode,H=E01(g);return d&&(n=N01(n,d)),H==="success"?rl({status:H,reason:M}):ch({status:H,reason:M||f||(H==="rate_limit"?lU(n,h):"Unknown transport error")})})};return a.add(u)}return{send:o,flush:r}}function lU(t,e){return"Too many "+e+" requests, backing off until: "+new Date(VO(t,e)).toISOString()}var xp="6.19.7",cU,Pt0=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){cU=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],a=0;a=0;e--){var a=t[e];if(a&&a.filename!==""&&a.filename!=="[native code]")return a.filename||null}return null}function Vp(t){try{if(t.stacktrace)return sU(t.stacktrace.frames);var e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?sU(e):null}catch{return qe&&Bt.error("Cannot extract url for event "+B8(t)),null}}var c9="?",qt0=10,Gt0=20,Kt0=30,Yt0=40,Zt0=50;function hu(t,e,a,n){var r={filename:t,function:e,in_app:!0};return a!==void 0&&(r.lineno=a),n!==void 0&&(r.colno=n),r}var Qt0=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Xt0=/\((\S*)(?::(\d+))(?::(\d+))\)/,Jt0=function(t){var e=Qt0.exec(t);if(e){var a=e[2]&&e[2].indexOf("eval")===0;if(a){var n=Xt0.exec(e[2]);n&&(e[2]=n[1],e[3]=n[2],e[4]=n[3])}var r=ga(K01(e[1]||c9,e[2]),2),o=r[0],l=r[1];return hu(l,o,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},t20=[Kt0,Jt0],e20=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,a20=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,n20=function(t){var e,a=e20.exec(t);if(a){var n=a[3]&&a[3].indexOf(" > eval")>-1;if(n){var r=a20.exec(a[3]);r&&(a[1]=a[1]||"eval",a[3]=r[1],a[4]=r[2],a[5]="")}var o=a[3],l=a[1]||c9;return e=ga(K01(l,o),2),l=e[0],o=e[1],hu(o,l,a[4]?+a[4]:void 0,a[5]?+a[5]:void 0)}},r20=[Zt0,n20],i20=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,o20=function(t){var e=i20.exec(t);return e?hu(e[2],e[1]||c9,+e[3],e[4]?+e[4]:void 0):void 0},l20=[Yt0,o20],c20=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,s20=function(t){var e=c20.exec(t);return e?hu(e[2],e[3]||c9,+e[1]):void 0},h20=[qt0,s20],u20=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,v20=function(t){var e=u20.exec(t);return e?hu(e[5],e[3]||e[4]||c9,+e[1],+e[2]):void 0},d20=[Gt0,v20],K01=function(t,e){var a=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return a||n?[t.indexOf("@")!==-1?t.split("@")[0]:c9,a?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function Y01(t){var e=_O(t),a={type:t&&t.name,value:m20(t)};return e.length&&(a.stacktrace={frames:e}),a.type===void 0&&a.value===""&&(a.value="Unrecoverable error caught"),a}function f20(t,e,a){var n={exception:{values:[{type:_M(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:"Non-Error "+(a?"promise rejection":"exception")+" captured with keys: "+E10(t)}]},extra:{__serialized__:O01(t)}};if(e){var r=_O(e);r.length&&(n.stacktrace={frames:r})}return n}function RV(t){return{exception:{values:[Y01(t)]}}}function _O(t){var e=t.stacktrace||t.stack||"",a=p20(t);try{return N10(h20,d20,t20,l20,r20)(e,a)}catch{}return[]}var g20=/Minified React error #\d+;/i;function p20(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(g20.test(t.message))return 1}return 0}function m20(t){var e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function z20(t,e,a){var n=e&&e.syntheticException||void 0,r=SO(t,n,a);return lh(r),r.level=bi.Error,e&&e.event_id&&(r.event_id=e.event_id),rl(r)}function M20(t,e,a,n){e===void 0&&(e=bi.Info);var r=a&&a.syntheticException||void 0,o=XL(t,r,n);return o.level=e,a&&a.event_id&&(o.event_id=a.event_id),rl(o)}function SO(t,e,a,n){var r;if(C01(t)&&t.error){var o=t;return RV(o.error)}if(q$(t)||z10(t)){var l=t;if("stack"in t)r=RV(t);else{var c=l.name||(q$(l)?"DOMError":"DOMException"),h=l.message?c+": "+l.message:c;r=XL(h,e,a),YL(r,h)}return"code"in l&&(r.tags=K1(K1({},r.tags),{"DOMException.code":""+l.code})),r}if(MO(t))return RV(t);if(bc(t)||_M(t)){var s=t;return r=f20(s,e,n),lh(r,{synthetic:!0}),r}return r=XL(t,e,a),YL(r,""+t,void 0),lh(r,{synthetic:!0}),r}function XL(t,e,a){var n={message:t};if(a&&e){var r=_O(e);r.length&&(n.stacktrace={frames:r})}return n}var Pn=typeof __SENTRY_DEBUG__>"u"?!0:__SENTRY_DEBUG__,xr=g0(),Gd;function TO(){if(Gd)return Gd;if(KL(xr.fetch))return Gd=xr.fetch.bind(xr);var t=xr.document,e=xr.fetch;if(t&&typeof t.createElement=="function")try{var a=t.createElement("iframe");a.hidden=!0,t.head.appendChild(a);var n=a.contentWindow;n&&n.fetch&&(e=n.fetch),t.head.removeChild(a)}catch(r){Pn&&Bt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return Gd=e.bind(xr)}function H20(t,e){var a=Object.prototype.toString.call(xr&&xr.navigator)==="[object Navigator]",n=a&&typeof xr.navigator.sendBeacon=="function";if(n){var r=xr.navigator.sendBeacon.bind(xr.navigator);return r(t,e)}if(TM()){var o=TO();return f10(o(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}))}}function jV(t){var e=t;return e==="event"?"error":e}var IV=g0(),Z01=function(){function t(e){var a=this;this.options=e,this._buffer=k01(30),this._rateLimits={},this._outcomes={},this._api=yp(e.dsn,e._metadata,e.tunnel),this.url=U01(this._api.dsn),this.options.sendClientReports&&IV.document&&IV.document.addEventListener("visibilitychange",function(){IV.document.visibilityState==="hidden"&&a._flushOutcomes()})}return t.prototype.sendEvent=function(e){return this._sendRequest(Tt0(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(_t0(e,this._api),e)},t.prototype.close=function(e){return this._buffer.drain(e)},t.prototype.recordLostEvent=function(e,a){var n;if(this.options.sendClientReports){var r=jV(a)+":"+e;Pn&&Bt.log("Adding outcome: "+r),this._outcomes[r]=(n=this._outcomes[r],(n??0)+1)}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},!Object.keys(e).length){Pn&&Bt.log("No outcomes to flush");return}Pn&&Bt.log(`Flushing outcomes: +`+JSON.stringify(e,null,2));var a=PM(this._api.dsn,this._api.tunnel),n=Object.keys(e).map(function(o){var l=ga(o.split(":"),2),c=l[0],h=l[1];return{reason:h,category:c,quantity:e[o]}}),r=vt0(n,this._api.tunnel&&su(this._api.dsn));try{H20(a,kM(r))}catch(o){Pn&&Bt.error(o)}}},t.prototype._handleResponse=function(e){var a=e.requestType,n=e.response,r=e.headers,o=e.resolve,l=e.reject,c=E01(n.status);if(this._rateLimits=N01(this._rateLimits,r),this._isRateLimited(a)&&Pn&&Bt.warn("Too many "+a+" requests, backing off until: "+this._disabledUntil(a)),c==="success"){o({status:c});return}l(n)},t.prototype._disabledUntil=function(e){var a=jV(e);return new Date(VO(this._rateLimits,a))},t.prototype._isRateLimited=function(e){var a=jV(e);return P01(this._rateLimits,a)},t}(),w20=function(t){$5(e,t);function e(a,n){n===void 0&&(n=TO());var r=t.call(this,a)||this;return r._fetch=n,r}return e.prototype._sendRequest=function(a,n){var r=this;if(this._isRateLimited(a.type))return this.recordLostEvent("ratelimit_backoff",a.type),Promise.reject({event:n,type:a.type,reason:"Transport for "+a.type+" requests locked till "+this._disabledUntil(a.type)+" due to too many requests.",status:429});var o={body:a.body,method:"POST",referrerPolicy:j10()?"origin":""};return this.options.fetchParameters!==void 0&&Object.assign(o,this.options.fetchParameters),this.options.headers!==void 0&&(o.headers=this.options.headers),this._buffer.add(function(){return new Do(function(l,c){r._fetch(a.url,o).then(function(h){var s={"x-sentry-rate-limits":h.headers.get("X-Sentry-Rate-Limits"),"retry-after":h.headers.get("Retry-After")};r._handleResponse({requestType:a.type,response:h,headers:s,resolve:l,reject:c})}).catch(c)})}).then(void 0,function(l){throw l instanceof o4?r.recordLostEvent("queue_overflow",a.type):r.recordLostEvent("network_error",a.type),l})},e}(Z01),y20=function(t){$5(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._sendRequest=function(a,n){var r=this;return this._isRateLimited(a.type)?(this.recordLostEvent("ratelimit_backoff",a.type),Promise.reject({event:n,type:a.type,reason:"Transport for "+a.type+" requests locked till "+this._disabledUntil(a.type)+" due to too many requests.",status:429})):this._buffer.add(function(){return new Do(function(o,l){var c=new XMLHttpRequest;c.onreadystatechange=function(){if(c.readyState===4){var s={"x-sentry-rate-limits":c.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":c.getResponseHeader("Retry-After")};r._handleResponse({requestType:a.type,response:c,headers:s,resolve:o,reject:l})}},c.open("POST",a.url);for(var h in r.options.headers)Object.prototype.hasOwnProperty.call(r.options.headers,h)&&c.setRequestHeader(h,r.options.headers[h]);c.send(a.body)})}).then(void 0,function(o){throw o instanceof o4?r.recordLostEvent("queue_overflow",a.type):r.recordLostEvent("network_error",a.type),o})},e}(Z01);function x20(t,e){e===void 0&&(e=TO());function a(n){var r=K1({body:n.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return e(t.url,r).then(function(o){return o.text().then(function(l){return{body:l,headers:{"x-sentry-rate-limits":o.headers.get("X-Sentry-Rate-Limits"),"retry-after":o.headers.get("Retry-After")},reason:o.statusText,statusCode:o.status}})})}return G01({bufferSize:t.bufferSize},a)}var V20=4;function C20(t){function e(a){return new Do(function(n,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){if(o.readyState===V20){var c={body:o.response,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")},reason:o.statusText,statusCode:o.status};n(c)}},o.open("POST",t.url);for(var l in t.headers)Object.prototype.hasOwnProperty.call(t.headers,l)&&o.setRequestHeader(l,t.headers[l]);o.send(a.body)})}return G01({bufferSize:t.bufferSize},e)}var b20=function(t){$5(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.eventFromException=function(a,n){return z20(a,n,this._options.attachStacktrace)},e.prototype.eventFromMessage=function(a,n,r){return n===void 0&&(n=bi.Info),M20(a,n,r,this._options.attachStacktrace)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var a=K1(K1({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),n=yp(a.dsn,a._metadata,a.tunnel),r=PM(n.dsn,n.tunnel);if(this._options.transport)return new this._options.transport(a);if(TM()){var o=K1({},a.fetchParameters);return this._newTransport=x20({requestOptions:o,url:r}),new w20(a)}return this._newTransport=C20({url:r,headers:a.headers}),new y20(a)},e}(At0),Kd=g0(),JL=0;function Q01(){return JL>0}function L20(){JL+=1,setTimeout(function(){JL-=1})}function Lc(t,e,a){if(e===void 0&&(e={}),typeof t!="function")return t;try{var n=t.__sentry_wrapped__;if(n)return n;if(xO(t))return t}catch{return t}var r=function(){var c=Array.prototype.slice.call(arguments);try{a&&typeof a=="function"&&a.apply(this,arguments);var h=c.map(function(s){return Lc(s,e)});return t.apply(this,h)}catch(s){throw L20(),Mt0(function(u){u.addEventProcessor(function(v){return e.mechanism&&(YL(v,void 0,void 0),lh(v,e.mechanism)),v.extra=K1(K1({},v.extra),{arguments:c}),v}),zt0(s)}),s}};try{for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}catch{}_01(r,t),SM(t,"__sentry_wrapped__",r);try{var l=Object.getOwnPropertyDescriptor(r,"name");l.configurable&&Object.defineProperty(r,"name",{get:function(){return t.name}})}catch{}return r}function B20(t){if(t===void 0&&(t={}),!!Kd.document){if(!t.eventId){Pn&&Bt.error("Missing eventId option in showReportDialog call");return}if(!t.dsn){Pn&&Bt.error("Missing dsn option in showReportDialog call");return}var e=Kd.document.createElement("script");e.async=!0,e.src=xt0(t.dsn,t),t.onLoad&&(e.onload=t.onLoad);var a=Kd.document.head||Kd.document.body;a&&a.appendChild(e)}}var OO=function(){function t(e){this.name=t.id,this._installFunc={onerror:_20,onunhandledrejection:S20},this._options=K1({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50;var e=this._options;for(var a in e){var n=this._installFunc[a];n&&e[a]&&(A20(a),n(),this._installFunc[a]=void 0)}},t.id="GlobalHandlers",t}();function _20(){en("error",function(t){var e=ga(te1(),2),a=e[0],n=e[1];if(a.getIntegration(OO)){var r=t.msg,o=t.url,l=t.line,c=t.column,h=t.error;if(!(Q01()||h&&h.__sentry_own_request__)){var s=h===void 0&&Cc(r)?O20(r,o,l,c):X01(SO(h||r,void 0,n,!1),o,l,c);s.level=bi.Error,J01(a,h,s,"onerror")}}})}function S20(){en("unhandledrejection",function(t){var e=ga(te1(),2),a=e[0],n=e[1];if(a.getIntegration(OO)){var r=t;try{"reason"in t?r=t.reason:"detail"in t&&"reason"in t.detail&&(r=t.detail.reason)}catch{}if(Q01()||r&&r.__sentry_own_request__)return!0;var o=HO(r)?T20(r):SO(r,void 0,n,!0);o.level=bi.Error,J01(a,r,o,"onunhandledrejection")}})}function T20(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}}function O20(t,e,a,n){var r=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=C01(t)?t.message:t,l="Error",c=o.match(r);c&&(l=c[1],o=c[2]);var h={exception:{values:[{type:l,value:o}]}};return X01(h,e,a,n)}function X01(t,e,a,n){var r=t.exception=t.exception||{},o=r.values=r.values||[],l=o[0]=o[0]||{},c=l.stacktrace=l.stacktrace||{},h=c.frames=c.frames||[],s=isNaN(parseInt(n,10))?void 0:n,u=isNaN(parseInt(a,10))?void 0:a,v=Cc(e)&&e.length>0?e:x10();return h.length===0&&h.push({colno:s,filename:v,function:"?",in_app:!0,lineno:u}),t}function A20(t){Pn&&Bt.log("Global Handler attached: "+t)}function J01(t,e,a,n){lh(a,{handled:!1,type:n}),t.captureEvent(a,{originalException:e})}function te1(){var t=Ye(),e=t.getClient(),a=e&&e.getOptions().attachStacktrace;return[t,a]}var k20=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],E20=function(){function t(e){this.name=t.id,this._options=K1({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var e=g0();this._options.setTimeout&&Z4(e,"setTimeout",hU),this._options.setInterval&&Z4(e,"setInterval",hU),this._options.requestAnimationFrame&&Z4(e,"requestAnimationFrame",P20),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Z4(XMLHttpRequest.prototype,"send",N20);var a=this._options.eventTarget;if(a){var n=Array.isArray(a)?a:k20;n.forEach(D20)}},t.id="TryCatch",t}();function hU(t){return function(){for(var e=[],a=0;a"}n.length!==0&&Ye().addBreadcrumb({category:"ui."+a.name,message:n},{event:a.event,name:a.name,global:a.global})}return e}function j20(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:ot0(t.level),message:K$(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)e.message="Assertion failed: "+(K$(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1);else return;Ye().addBreadcrumb(e,{input:t.args,level:t.level})}function I20(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},a=e.method,n=e.url,r=e.status_code,o=e.body;Ye().addBreadcrumb({category:"xhr",data:{method:a,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:o});return}}function F20(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"||(t.error?Ye().addBreadcrumb({category:"fetch",data:t.fetchData,level:bi.Error,type:"http"},{data:t.error,input:t.args}):Ye().addBreadcrumb({category:"fetch",data:K1(K1({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))}function $20(t){var e=g0(),a=t.from,n=t.to,r=NV(e.location.href),o=NV(a),l=NV(n);o.path||(o=r),r.protocol===l.protocol&&r.host===l.host&&(n=l.relative),r.protocol===o.protocol&&r.host===o.host&&(a=o.relative),Ye().addBreadcrumb({category:"navigation",data:{from:a,to:n}})}var U20="cause",W20=5,q20=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._key=e.key||U20,this._limit=e.limit||W20}return t.prototype.setupOnce=function(){CO(function(e,a){var n=Ye().getIntegration(t);return n?G20(n._key,n._limit,e,a):e})},t.id="LinkedErrors",t}();function G20(t,e,a,n){if(!a.exception||!a.exception.values||!n||!Oi(n.originalException,Error))return a;var r=ae1(e,n.originalException,t);return a.exception.values=Be(r,a.exception.values),a}function ae1(t,e,a,n){if(n===void 0&&(n=[]),!Oi(e[a],Error)||n.length+1>=t)return n;var r=Y01(e[a]);return ae1(t,e[a],a,Be([r],n))}var o8=g0(),K20=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){CO(function(e){if(Ye().getIntegration(t)){if(!o8.navigator&&!o8.location&&!o8.document)return e;var a=e.request&&e.request.url||o8.location&&o8.location.href,n=(o8.document||{}).referrer,r=(o8.navigator||{}).userAgent,o=K1(K1(K1({},e.request&&e.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),l=K1(K1({},a&&{url:a}),{headers:o});return K1(K1({},e),{request:l})}return e})},t.id="UserAgent",t}(),Y20=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,a){e(function(n){var r=a().getIntegration(t);if(r){try{if(Z20(n,r._previousEvent))return Pn&&Bt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return r._previousEvent=n}return r._previousEvent=n}return n})},t.id="Dedupe",t}();function Z20(t,e){return e?!!(Q20(t,e)||X20(t,e)):!1}function Q20(t,e){var a=t.message,n=e.message;return!(!a&&!n||a&&!n||!a&&n||a!==n||!re1(t,e)||!ne1(t,e))}function X20(t,e){var a=uU(e),n=uU(t);return!(!a||!n||a.type!==n.type||a.value!==n.value||!re1(t,e)||!ne1(t,e))}function ne1(t,e){var a=vU(t),n=vU(e);if(!a&&!n)return!0;if(a&&!n||!a&&n||(a=a,n=n,n.length!==a.length))return!1;for(var r=0;r"u"){Pn&&Bt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}var a=Ye();a.captureSession&&(dU(a),en("history",function(n){var r=n.from,o=n.to;r===void 0||r===o||dU(Ye())}))}function n00(t){t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:xp}],version:xp},e00(t)}var r00="ui.react.render",i00="ui.react.update",fU="ui.react.mount",o00="unknown",l00={id:"Tracing"},mi=null,c00=function(){return mi||(mi=Ye().getIntegration(l00),mi)};function s00(t,e){return mi===null?null:mi.constructor.pushActivity(t,{description:"<"+t+">",op:e})}function h00(t){t===null||mi===null||mi.constructor.popActivity(t)}function u00(t){if(!(t===null||mi===null))return mi.constructor.getActivitySpan(t)}var v00=function(t){$5(e,t);function e(a){var n=t.call(this,a)||this;n._mountSpan=void 0,n._mountActivity=null;var r=n.props,o=r.name,l=r.disabled,c=l===void 0?!1:l;if(c)return n;if(c00())n._mountActivity=s00(o,fU);else{var h=f00();h&&(n._mountSpan=h.startChild({description:"<"+o+">",op:fU}))}return n}return e.prototype.componentDidMount=function(){this._mountSpan?this._mountSpan.finish():(this._mountSpan=u00(this._mountActivity),h00(this._mountActivity),this._mountActivity=null)},e.prototype.componentDidUpdate=function(a){var n=this,r=a.updateProps,o=a.includeUpdates,l=o===void 0?!0:o;if(l&&this._mountSpan&&r!==this.props.updateProps){var c=Object.keys(r).filter(function(s){return r[s]!==n.props.updateProps[s]});if(c.length>0){var h=il();this._mountSpan.startChild({data:{changedProps:c},description:"<"+this.props.name+">",endTimestamp:h,op:i00,startTimestamp:h})}}},e.prototype.componentWillUnmount=function(){var a=this.props,n=a.name,r=a.includeRender,o=r===void 0?!0:r;this._mountSpan&&o&&this._mountSpan.startChild({description:"<"+n+">",endTimestamp:il(),op:r00,startTimestamp:this._mountSpan.endTimestamp})},e.prototype.render=function(){return this.props.children},e.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0},e}(_.Component);function d00(t,e){var a=e&&e.name||t.displayName||t.name||o00,n=function(r){return _.createElement(v00,K1({},e,{name:a,updateProps:r}),_.createElement(t,K1({},r)))};return n.displayName="profiler("+a+")",Lh(n,t),n}function f00(t){if(t===void 0&&(t=Ye()),t){var e=t.getScope();if(e)return e.getTransaction()}}const g00=ma.div` display: flex; justify-content: center; align-items: center; @@ -9393,7 +9393,7 @@ Url: `+Vp(t)),!0)}function Rt0(t,e){return!e||!e.length?!1:Ft0(t).some(function( flex-direction: ${On?"column":"row"}; padding: 0 30px; text-align: ${On?"center":"left"}; -`,f00=({text:t})=>I.jsxs(d00,{children:[I.jsx("div",{children:I.jsx("img",{src:"/images/maintenance-bg.svg",alt:" "})}),I.jsx("div",{children:t?I.jsx(S0.Text,{children:t}):I.jsxs(S0.Text,{children:["Dostęp do platformy ograniczony z powodu trwających prac technicznych",I.jsx("br",{}),I.jsx("br",{}),"Przepraszamy za utrudnienia. Zapraszamy wkrótce"]})})]}),g00=_.lazy(()=>n0(()=>import("./ThemeCustomizer-BqRxdSn1.js"),__vite__mapDeps([]))),p00=Om` +`,p00=({text:t})=>I.jsxs(g00,{children:[I.jsx("div",{children:I.jsx("img",{src:"/images/maintenance-bg.svg",alt:" "})}),I.jsx("div",{children:t?I.jsx(S0.Text,{children:t}):I.jsxs(S0.Text,{children:["Dostęp do platformy ograniczony z powodu trwających prac technicznych",I.jsx("br",{}),I.jsx("br",{}),"Przepraszamy za utrudnienia. Zapraszamy wkrótce"]})})]}),m00=_.lazy(()=>J2(()=>import("./ThemeCustomizer-BHz4K8MY.js"),__vite__mapDeps([]))),z00=Om` html, body { margin: 0; padding: 0; @@ -9423,11 +9423,11 @@ Url: `+Vp(t)),!0)}function Rt0(t,e){return!e||!e.length?!1:Ft0(t).some(function( a { text-decoration: none; } -`,m00=ma.main` +`,M00=ma.main` height: fit-content; background-color: ${({theme:t})=>t.mode==="dark"?t.dm__background:t.background}; padding-top: ${({noPadding:t})=>t?"0px":On?"92px":"57px"}; -`,z00=t=>z71[t],M00=()=>{var n,r,o,l,c,h,s,u;const{fetchSettings:t,settings:e,fetchNotifications:a}=_.useContext(y4.EscolaLMSContext);return _.useEffect(()=>{t(),a()},[t,a]),I.jsxs(W1.Fragment,{children:[I.jsx(p00,{}),I.jsxs(m00,{noPadding:(r=(n=e==null?void 0:e.value)==null?void 0:n.global)==null?void 0:r.technicalMaintenance,children:[I.jsx(g00,{theme:z00((l=(o=e.value)==null?void 0:o.theme)==null?void 0:l.theme)}),(h=(c=e==null?void 0:e.value)==null?void 0:c.global)!=null&&h.technicalMaintenance?I.jsx(f00,{text:(u=(s=e==null?void 0:e.value)==null?void 0:s.global)==null?void 0:u.technicalMaintenanceText}):I.jsx(h10,{})]})]})};window.addEventListener("error",t=>{t.message.includes("Cannot read properties of undefined")&&(window.location.href.includes("noerrorrefresh")||(localStorage.removeItem("lms"),window.location.href=window.location.href+"#noerrorrefresh"))});const H00=u00(M00);var ie1={exports:{}};(function(t){(function(){function e(P,q,Z){return P.call.apply(P.bind,arguments)}function a(P,q,Z){if(!P)throw Error();if(2=q.f?Z1():P.fonts.load(x(q.a),q.h).then(function(C1){1<=C1.length?N1():setTimeout(j1,25)},function(){Z1()})}j1()}),v1=null,x1=new Promise(function(N1,Z1){v1=setTimeout(Z1,q.f)});Promise.race([x1,l1]).then(function(){v1&&(clearTimeout(v1),v1=null),q.g(q.a)},function(){q.j(q.a)})};function R(P,q,Z,l1,v1,x1,N1){this.v=P,this.B=q,this.c=Z,this.a=l1,this.s=N1||"BESbswy",this.f={},this.w=v1||3e3,this.u=x1||null,this.m=this.j=this.h=this.g=null,this.g=new W(this.c,this.s),this.h=new W(this.c,this.s),this.j=new W(this.c,this.s),this.m=new W(this.c,this.s),P=new w(this.a.c+",serif",V(this.a)),P=F(P),this.g.a.style.cssText=P,P=new w(this.a.c+",sans-serif",V(this.a)),P=F(P),this.h.a.style.cssText=P,P=new w("serif",V(this.a)),P=F(P),this.j.a.style.cssText=P,P=new w("sans-serif",V(this.a)),P=F(P),this.m.a.style.cssText=P,Y(this.g),Y(this.h),Y(this.j),Y(this.m)}var i1={D:"serif",C:"sans-serif"},J=null;function A(){if(J===null){var P=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);J=!!P&&(536>parseInt(P[1],10)||parseInt(P[1],10)===536&&11>=parseInt(P[2],10))}return J}R.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),h1(this)};function o1(P,q,Z){for(var l1 in i1)if(i1.hasOwnProperty(l1)&&q===P.f[i1[l1]]&&Z===P.f[i1[l1]])return!0;return!1}function h1(P){var q=P.g.a.offsetWidth,Z=P.h.a.offsetWidth,l1;(l1=q===P.f.serif&&Z===P.f["sans-serif"])||(l1=A()&&o1(P,q,Z)),l1?r()-P.A>=P.w?A()&&o1(P,q,Z)&&(P.u===null||P.u.hasOwnProperty(P.a.c))?M1(P,P.v):M1(P,P.B):a1(P):M1(P,P.v)}function a1(P){setTimeout(n(function(){h1(this)},P),50)}function M1(P,q){setTimeout(n(function(){s(this.g.a),s(this.h.a),s(this.j.a),s(this.m.a),q(this.a)},P),0)}function s1(P,q,Z){this.c=P,this.a=q,this.f=0,this.m=this.j=!1,this.s=Z}var z1=null;s1.prototype.g=function(P){var q=this.a;q.g&&u(q.f,[q.a.c("wf",P.c,V(P).toString(),"active")],[q.a.c("wf",P.c,V(P).toString(),"loading"),q.a.c("wf",P.c,V(P).toString(),"inactive")]),E(q,"fontactive",P),this.m=!0,m1(this)},s1.prototype.h=function(P){var q=this.a;if(q.g){var Z=v(q.f,q.a.c("wf",P.c,V(P).toString(),"active")),l1=[],v1=[q.a.c("wf",P.c,V(P).toString(),"loading")];Z||l1.push(q.a.c("wf",P.c,V(P).toString(),"inactive")),u(q.f,l1,v1)}E(q,"fontinactive",P),m1(this)};function m1(P){--P.f==0&&P.j&&(P.m?(P=P.a,P.g&&u(P.f,[P.a.c("wf","active")],[P.a.c("wf","loading"),P.a.c("wf","inactive")]),E(P,"active")):T(P.a))}function S1(P){this.j=P,this.a=new $,this.h=0,this.f=this.g=!0}S1.prototype.load=function(P){this.c=new o(this.j,P.context||this.j),this.g=P.events!==!1,this.f=P.classes!==!1,U1(this,new B(this.c,P),P)};function I1(P,q,Z,l1,v1){var x1=--P.h==0;(P.f||P.g)&&setTimeout(function(){var N1=v1||null,Z1=l1||null||{};if(Z.length===0&&x1)T(q.a);else{q.f+=Z.length,x1&&(q.j=x1);var j1,C1=[];for(j1=0;j1{{count}} course available for you",FoundCourses_other:"We found {{count}} courses available for you",FREE:"FREE",group_access:"Group access",H5P:"Interactive element",Home:"Home",hours_to_complete:"Hours to complete",Image:"Image",Language:"Language","Last Updated":"Last Updated",Lesson_one:"Lesson",Lesson_other:"Lessons",LessonSummary:"Lesson summary",Level:"Level",Lifetime:"Lifetime","Login to buy":"Login to buy","Meet your instructor":"Meet your instructor","next topic":"next topic","Next Topic":"Next topic",next:"Next",NoCourses:"No courses found",NoCoursesYet:"You have no courses yet. Find one on ",OEmbed:"Inserted Element",Pages:"Pages",Password:"Password",playVideo:"Play video","Popular Tags":"Popular Tags","prev topic":"prev topic",prev:"Prev","Preview course for free":"Preview course for free",Preview:"Preview","Price: high to low":"Price: high to low","Price: low to high":"Price: low to high",RecentCourses:"Recent courses",Register:"Register",RichText:"Text","Search for":"Search for",Send:"Send",SortBy:"Sort by",Students:"students",Student_one:"Student",Student_other:"Students",StudentsEnrolled:"Students Enrolled",Summary:"Summary",Tags:"Tags",Title:"Title",Topic_one:"Topic",Topic_other:"Topics",TopicSummary:"Topic summary",Tutor:"Tutor",Tutors:"Tutors",Video:"Video","Video Coursers":"Video Coursers","No Videos":"No Videos",Payment:"Payment","Card number":"Card number","Name on card":"Name on card","Expiration date":"Expiration date","with Stripe":"with Stripe","stripe testing card numbers":"stripe testing card numbers",Eg:"eg",Use:"Use",Close:"Close",Pay:"Pay",Download:"Download",CoursePreviewNavbar:"This is course preview. Back to app, or purchase this course.",CoursesLength:"{{count}} courses",CoursesLength_few:"{{count}} courses",CoursesLength_many:"{{count}} courses",CoursesLength_one:"{{count}} course",ShowCustomizer:"Show theme customizer",HideCustomizer:"Hide theme customizer",Time:"Time",Hour:"Hour",Hours:"Hours",SectionDescriptionTitle:"Description",Join:"Join",Next:"Next",DownloadCertificate:"Download certificate",BackToHomePage:"Back to home page",Terms:"Terms of use",AddNewPhoto:"Add new photo",CoursePage:{ErrorOccurred:"Error occurred",HeroBtnText:"See more",Level:"Level",StartDate:"Start date",CourseCategory:"Course category",Duration:"Duration",CompaniesTitle:"Companies that offer this course to their employees",CourseDescriptionTitle:"Course description",CourseRatingsTitle:"Course ratings",CourseRatingsEmpty:"This course has not been rated yet.",RelatedCoursesTitle:"Related courses",InterestTitle:"Maybe it will interest you",GoToCheckout:"Go to checkout",NotStarted:"Not started","30Days":"30 day money return guarantee",ContentToDownload:"Content to download",SmartphoneAccess:"Access on smartphone and tablet",Certificate:"Certificate of completion",Finished:"Finished",Of:"of",IsFinished:"The course is over",Lessons:"Lessons",FinishToGetCertificate:"Finish to get certificate",MyProgress:"My progress",ToSeeProgress:"to see your progress",UnavailableCourse:"This course is unavailable to buy",NoRatings:"No ratings",AvarageRating:"Average rating of Jan Kamiński's training courses",Satisfaction:"satisfaction or your money back *",Guarantee:"Guaranteed",Recommends:"recommend training of Jan Kamiński",SeeOtherCourses:"See other courses",BackToCourse:"Go back to the course",Language:"Language",Students:"Students",Teacher:"Teacher",Login:"Log in",SelectQuestionnaire:"Select a questionnaire...",SelectQuestion:"Select a question...",Resources:"Resources",CourseTitle:"Course title",CertificateDate:"Obtained at",CertificateDownload:"Download certificate"},Cart:{UseTestCard:"Use test cards for Stripe",LearnMore:"Learn more",Cart:"Cart",PayWithStripe:"Pay with stripe",ChoosePaymentMethod:"Choose payment method",FreeCheckout:"End for free",Interest:"May be of interest to you",CartIsEmpty:"Cart is empty",CartSummary:"Cart total",Summary:"Summary",FullName:"Full name",RememberCard:"Remember card",YourCart:"Your cart",CreditCard:"Credit card",EmptyCartTitle:"Your cart is empty",EmptyCartText:"Add courses to your cart and checkout",EmptyCartBtnText:"Browse courses",EmptyNameWarning:"Enter your full name",ThankYouTitle:"Thank you for your purchase",ThankYouText:"Go to profile to see purchased products or go to browse courses"},CourseProgram:{TopicAttachment:"Topic attachments",ShowAgenda:"Show agenda",NoProgram:"No program",NoTopic:"No topic",FinishTitle:"Congratulations! You have finished the course!",FinishSubtitle:"Rate a course, go to your profile or browse other courses.",FinishSubtitleNoRating:"You have already rated this course. Go to your profile or browse other courses.",CourseRated:"Dziękujemy! Oceniłeś już ten kurs."},ConsultationsPageMeta:"Consultations",ConsultationPage:{Book:"Book your consultation",SidebarHeader:"Online consultation with your expert",IsFinished:"The consultation is over",GoToCheckout:"Go to checkout",BuyConsultation:"Buy consultation",SidebarFeature1:"Meet one-on-one with your expert",SidebarFeature2:"Ask whatever you want",SidebarFeature3:"Another value from meeting",ByFields:"By fields",Alphabetically:"Alphabetically",Join:"Join",Finished:"Finished",ReportTermSuccess:"Term reported",ChangeTerm:"Change term",Show:"Show",WaitForTutorDecision:"Term {{date}} waiting for acceptation",TutorAcceptedTerm:"Tutor accepted term {{date}}",NoTermsAvailable:"No terms available",Choose:"Choose",SelectDateAndHour:"Select the date and time of the consultation",SelectedTermOfConsultation:"Selected term of consultation",Expert:"Expert",ConsultationTerm:"Consultation term",Understand:"Understand",successTermInfo:"The given consultation date has been sent to the trainer. You will receive a separate notification after the trainer accepts the date or the trainer will contact you to arrange a different date if the date you proposed does not suit him."},Warning:"Warning","I'm aware":"I'm aware",EmailActivation:{Title:"Please check your email to complete the registration process",Text:`We sent a message to the address **{{email}}** z +`,H00=t=>z71[t],w00=()=>{var n,r,o,l,c,h,s,u;const{fetchSettings:t,settings:e,fetchNotifications:a}=_.useContext(y4.EscolaLMSContext);return _.useEffect(()=>{t(),a()},[t,a]),I.jsxs(W1.Fragment,{children:[I.jsx(z00,{}),I.jsxs(M00,{noPadding:((r=(n=e==null?void 0:e.value)==null?void 0:n.global)==null?void 0:r.technicalMaintenance)||location.href.includes(e0.onboarding),children:[I.jsx(m00,{theme:H00((l=(o=e.value)==null?void 0:o.theme)==null?void 0:l.theme)}),(h=(c=e==null?void 0:e.value)==null?void 0:c.global)!=null&&h.technicalMaintenance?I.jsx(p00,{text:(u=(s=e==null?void 0:e.value)==null?void 0:s.global)==null?void 0:u.technicalMaintenanceText}):I.jsx(v10,{})]})]})};window.addEventListener("error",t=>{t.message.includes("Cannot read properties of undefined")&&(window.location.href.includes("noerrorrefresh")||(localStorage.removeItem("lms"),window.location.href=window.location.href+"#noerrorrefresh"))});const y00=d00(w00);var ie1={exports:{}};(function(t){(function(){function e(P,W,Z){return P.call.apply(P.bind,arguments)}function a(P,W,Z){if(!P)throw Error();if(2=W.f?Z1():P.fonts.load(x(W.a),W.h).then(function(C1){1<=C1.length?N1():setTimeout(j1,25)},function(){Z1()})}j1()}),v1=null,x1=new Promise(function(N1,Z1){v1=setTimeout(Z1,W.f)});Promise.race([x1,l1]).then(function(){v1&&(clearTimeout(v1),v1=null),W.g(W.a)},function(){W.j(W.a)})};function R(P,W,Z,l1,v1,x1,N1){this.v=P,this.B=W,this.c=Z,this.a=l1,this.s=N1||"BESbswy",this.f={},this.w=v1||3e3,this.u=x1||null,this.m=this.j=this.h=this.g=null,this.g=new U(this.c,this.s),this.h=new U(this.c,this.s),this.j=new U(this.c,this.s),this.m=new U(this.c,this.s),P=new w(this.a.c+",serif",V(this.a)),P=F(P),this.g.a.style.cssText=P,P=new w(this.a.c+",sans-serif",V(this.a)),P=F(P),this.h.a.style.cssText=P,P=new w("serif",V(this.a)),P=F(P),this.j.a.style.cssText=P,P=new w("sans-serif",V(this.a)),P=F(P),this.m.a.style.cssText=P,Y(this.g),Y(this.h),Y(this.j),Y(this.m)}var i1={D:"serif",C:"sans-serif"},t1=null;function A(){if(t1===null){var P=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);t1=!!P&&(536>parseInt(P[1],10)||parseInt(P[1],10)===536&&11>=parseInt(P[2],10))}return t1}R.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),h1(this)};function o1(P,W,Z){for(var l1 in i1)if(i1.hasOwnProperty(l1)&&W===P.f[i1[l1]]&&Z===P.f[i1[l1]])return!0;return!1}function h1(P){var W=P.g.a.offsetWidth,Z=P.h.a.offsetWidth,l1;(l1=W===P.f.serif&&Z===P.f["sans-serif"])||(l1=A()&&o1(P,W,Z)),l1?r()-P.A>=P.w?A()&&o1(P,W,Z)&&(P.u===null||P.u.hasOwnProperty(P.a.c))?M1(P,P.v):M1(P,P.B):a1(P):M1(P,P.v)}function a1(P){setTimeout(n(function(){h1(this)},P),50)}function M1(P,W){setTimeout(n(function(){s(this.g.a),s(this.h.a),s(this.j.a),s(this.m.a),W(this.a)},P),0)}function s1(P,W,Z){this.c=P,this.a=W,this.f=0,this.m=this.j=!1,this.s=Z}var z1=null;s1.prototype.g=function(P){var W=this.a;W.g&&u(W.f,[W.a.c("wf",P.c,V(P).toString(),"active")],[W.a.c("wf",P.c,V(P).toString(),"loading"),W.a.c("wf",P.c,V(P).toString(),"inactive")]),E(W,"fontactive",P),this.m=!0,m1(this)},s1.prototype.h=function(P){var W=this.a;if(W.g){var Z=v(W.f,W.a.c("wf",P.c,V(P).toString(),"active")),l1=[],v1=[W.a.c("wf",P.c,V(P).toString(),"loading")];Z||l1.push(W.a.c("wf",P.c,V(P).toString(),"inactive")),u(W.f,l1,v1)}E(W,"fontinactive",P),m1(this)};function m1(P){--P.f==0&&P.j&&(P.m?(P=P.a,P.g&&u(P.f,[P.a.c("wf","active")],[P.a.c("wf","loading"),P.a.c("wf","inactive")]),E(P,"active")):T(P.a))}function S1(P){this.j=P,this.a=new $,this.h=0,this.f=this.g=!0}S1.prototype.load=function(P){this.c=new o(this.j,P.context||this.j),this.g=P.events!==!1,this.f=P.classes!==!1,U1(this,new B(this.c,P),P)};function I1(P,W,Z,l1,v1){var x1=--P.h==0;(P.f||P.g)&&setTimeout(function(){var N1=v1||null,Z1=l1||null||{};if(Z.length===0&&x1)T(W.a);else{W.f+=Z.length,x1&&(W.j=x1);var j1,C1=[];for(j1=0;j1{{count}} course available for you",FoundCourses_other:"We found {{count}} courses available for you",FREE:"FREE",group_access:"Group access",H5P:"Interactive element",Home:"Home",hours_to_complete:"Hours to complete",Image:"Image",Language:"Language","Last Updated":"Last Updated",Lesson_one:"Lesson",Lesson_other:"Lessons",LessonSummary:"Lesson summary",Level:"Level",Lifetime:"Lifetime","Login to buy":"Login to buy","Meet your instructor":"Meet your instructor","next topic":"next topic","Next Topic":"Next topic",next:"Next",NoCourses:"No courses found",NoCoursesYet:"You have no courses yet. Find one on ",OEmbed:"Inserted Element",Pages:"Pages",Password:"Password",playVideo:"Play video","Popular Tags":"Popular Tags","prev topic":"prev topic",prev:"Prev","Preview course for free":"Preview course for free",Preview:"Preview","Price: high to low":"Price: high to low","Price: low to high":"Price: low to high",RecentCourses:"Recent courses",Register:"Register",RichText:"Text","Search for":"Search for",Send:"Send",SortBy:"Sort by",Students:"students",Student_one:"Student",Student_other:"Students",StudentsEnrolled:"Students Enrolled",Summary:"Summary",Tags:"Tags",Title:"Title",Topic_one:"Topic",Topic_other:"Topics",TopicSummary:"Topic summary",Tutor:"Tutor",Tutors:"Tutors",Video:"Video","Video Coursers":"Video Coursers","No Videos":"No Videos",Payment:"Payment","Card number":"Card number","Name on card":"Name on card","Expiration date":"Expiration date","with Stripe":"with Stripe","stripe testing card numbers":"stripe testing card numbers",Eg:"eg",Use:"Use",Close:"Close",Pay:"Pay",Download:"Download",CoursePreviewNavbar:"This is course preview. Back to app, or purchase this course.",CoursesLength:"{{count}} courses",CoursesLength_few:"{{count}} courses",CoursesLength_many:"{{count}} courses",CoursesLength_one:"{{count}} course",ShowCustomizer:"Show theme customizer",HideCustomizer:"Hide theme customizer",Time:"Time",Hour:"Hour",Hours:"Hours",SectionDescriptionTitle:"Description",Join:"Join",Next:"Next",DownloadCertificate:"Download certificate",BackToHomePage:"Back to home page",Terms:"Terms of use",AddNewPhoto:"Add new photo",CoursePage:{ErrorOccurred:"Error occurred",HeroBtnText:"See more",Level:"Level",StartDate:"Start date",CourseCategory:"Course category",Duration:"Duration",CompaniesTitle:"Companies that offer this course to their employees",CourseDescriptionTitle:"Course description",CourseRatingsTitle:"Course ratings",CourseRatingsEmpty:"This course has not been rated yet.",RelatedCoursesTitle:"Related courses",InterestTitle:"Maybe it will interest you",GoToCheckout:"Go to checkout",NotStarted:"Not started","30Days":"30 day money return guarantee",ContentToDownload:"Content to download",SmartphoneAccess:"Access on smartphone and tablet",Certificate:"Certificate of completion",Finished:"Finished",Of:"of",IsFinished:"The course is over",Lessons:"Lessons",FinishToGetCertificate:"Finish to get certificate",MyProgress:"My progress",ToSeeProgress:"to see your progress",UnavailableCourse:"This course is unavailable to buy",NoRatings:"No ratings",AvarageRating:"Average rating of Jan Kamiński's training courses",Satisfaction:"satisfaction or your money back *",Guarantee:"Guaranteed",Recommends:"recommend training of Jan Kamiński",SeeOtherCourses:"See other courses",BackToCourse:"Go back to the course",Language:"Language",Students:"Students",Teacher:"Teacher",Login:"Log in",SelectQuestionnaire:"Select a questionnaire...",SelectQuestion:"Select a question...",Resources:"Resources",CourseTitle:"Course title",CertificateDate:"Obtained at",CertificateDownload:"Download certificate"},Cart:{UseTestCard:"Use test cards for Stripe",LearnMore:"Learn more",Cart:"Cart",PayWithStripe:"Pay with stripe",ChoosePaymentMethod:"Choose payment method",FreeCheckout:"End for free",Interest:"May be of interest to you",CartIsEmpty:"Cart is empty",CartSummary:"Cart total",Summary:"Summary",FullName:"Full name",RememberCard:"Remember card",YourCart:"Your cart",CreditCard:"Credit card",EmptyCartTitle:"Your cart is empty",EmptyCartText:"Add courses to your cart and checkout",EmptyCartBtnText:"Browse courses",EmptyNameWarning:"Enter your full name",ThankYouTitle:"Thank you for your purchase",ThankYouText:"Go to profile to see purchased products or go to browse courses"},CourseProgram:{TopicAttachment:"Topic attachments",ShowAgenda:"Show agenda",NoProgram:"No program",NoTopic:"No topic",FinishTitle:"Congratulations! You have finished the course!",FinishSubtitle:"Rate a course, go to your profile or browse other courses.",FinishSubtitleNoRating:"You have already rated this course. Go to your profile or browse other courses.",CourseRated:"Dziękujemy! Oceniłeś już ten kurs."},ConsultationsPageMeta:"Consultations",ConsultationPage:{Book:"Book your consultation",SidebarHeader:"Online consultation with your expert",IsFinished:"The consultation is over",GoToCheckout:"Go to checkout",BuyConsultation:"Buy consultation",SidebarFeature1:"Meet one-on-one with your expert",SidebarFeature2:"Ask whatever you want",SidebarFeature3:"Another value from meeting",ByFields:"By fields",Alphabetically:"Alphabetically",Join:"Join",Finished:"Finished",ReportTermSuccess:"Term reported",ChangeTerm:"Change term",Show:"Show",WaitForTutorDecision:"Term {{date}} waiting for acceptation",TutorAcceptedTerm:"Tutor accepted term {{date}}",NoTermsAvailable:"No terms available",Choose:"Choose",SelectDateAndHour:"Select the date and time of the consultation",SelectedTermOfConsultation:"Selected term of consultation",Expert:"Expert",ConsultationTerm:"Consultation term",Understand:"Understand",successTermInfo:"The given consultation date has been sent to the trainer. You will receive a separate notification after the trainer accepts the date or the trainer will contact you to arrange a different date if the date you proposed does not suit him."},Warning:"Warning","I'm aware":"I'm aware",EmailActivation:{Title:"Please check your email to complete the registration process",Text:`We sent a message to the address **{{email}}** z link to activate your account. Go to e-mail and confirm your e-mail address.`,HelpText:`**You did not receive the e-mail?** - Check the SPAM folder @@ -9437,4 +9437,4 @@ Url: `+Vp(t)),!0)}function Rt0(t,e){return!e||!e.length?!1:Ft0(t).some(function( Przejdź do poczty i potwierdź swój adres e-mail.`,HelpText:`**Nie dostałeś maila?** - Sprawdź folder SPAM - Sprawdź czy poprawnie wpisałeś adres e-mail - - Nie możemy dostarczyć wiadomości na Twój adres (zazwyczaj przez firewalla lub filtry na poczcie)`,RegisterAgain:"Wpisz adres ponownie"},CoursePage:{ErrorOccurred:"Wystąpił błąd",HeroBtnText:"Zobacz więcej",Level:"Poziom trudności",StartDate:"Termin rozpoczęcia",CourseCategory:"Kategoria szkolenia",Duration:"Czas trwania",CompaniesTitle:"Firmy które oferują ten kurs swoim pracownikom",CourseDescriptionTitle:"Opis szkolenia",CourseRatingsTitle:"Opinie studentów",CourseRatingsEmpty:"Ten kurs nie został jeszcze oceniony.",RelatedCoursesTitle:"Powiązane szkolenia",InterestTitle:"Może Cię zainteresuje",GoToCheckout:"Do kasy",NotStarted:"Kurs się jeszcze nie rozpoczął","30Days":"Gwarantowane 30 dni na zwrot",ContentToDownload:"Materiały szkoleniowe do pobrania",SmartphoneAccess:"Dostęp na smartphone i tablet",Certificate:"Certyfikat ukończenia",Finished:"Ukończono",Of:"z",IsFinished:"Kurs się zakończył",Lessons:"Lekcji",FinishToGetCertificate:"Ukończ kurs aby zdobyć certyfikat",MyProgress:"Moje postępy",ToSeeProgress:"aby widzieć postępy",UnavailableCourse:"Kurs niemożliwy do kupienia",NoRatings:"Brak ocen",AvarageRating:"Średnia ocena szkoleń Jana Kamińskiego",Satisfaction:"zadowolenia lub zwrot pieniędzy*",Guarantee:"Gwarancja",Recommends:"Poleca szkolenia Jana Kaminskiego",SeeOtherCourses:"Zobacz inne kursy",BackToCourse:"Powrót do kursu",Language:"Język",Students:"Uczniów",Teacher:"Nauczyciel",Login:"Zaloguj się",SelectQuestionnaire:"Wybierz ankietę...",SelectQuestion:"Wybierz pytanie...",Resources:"Zasoby",Questionnaires:"Ankiety",CourseTitle:"Tytuł kursu",CertificateDate:"Uzyskany w dniu",DownloadCertificate:"Pobierz certyfikat"},Cart:{UseTestCard:"Użyj testowej karty Stripe",LearnMore:"Sprawdź karty",Cart:"Koszyk",PayWithStripe:"Płać za pomocą stripe Checkout",ChoosePaymentMethod:"Wybierz metodę płatności",FreeCheckout:"Zakończ bezpłatnie",Interest:"Może Cię zainteresować",CartIsEmpty:"Koszyk jest pusty",CartSummary:"Suma koszyka",Summary:"Podsumowanie",FullName:"Imię i nazwisko",RememberCard:"Zapamiętaj kartę",YourCart:"Twój koszyk",CreditCard:"Karta kredytowa",EmptyCartTitle:"Twój koszyk jest pusty",EmptyCartText:"Dodaj kursy do koszyka",EmptyCartBtnText:"Przeglądaj kursy",EmptyNameWarning:"Podaj imię i nazwisko",ThankYouTitle:"Dziękujemy za zakup",ThankYouText:"Przejdź do profilu, aby zobaczyć zakupione produkty lub przejdź do przeglądania kursów"},CourseProgram:{TopicAttachment:"Załączniki lekcji",ShowAgenda:"Pokaż agendę",NoProgram:"Lekcja nie istnieje",NoTopic:"Temat nie istnieje",FinishTitle:"Gratulacje! Ukończyłeś/aś kurs!",FinishSubtitle:"Oceń kurs, przejdź do swojego profilu albo przeglądaj pozostałe kursy.",FinishSubtitleNoRating:"Już oceniłeś ten kurs. Przejdź do swojego profilu albo przeglądaj pozostałe kursy.",CourseRated:"Dziękujemy! Oceniłeś już ten kurs."},CoursesPage:{Category:"Kategoria",Free:"Darmowe",All:"Wszystkie",Type:"Typ szkolenia",Courses:"Kursy",Search:"Szukaj kursów",showByCategory:"Pokaż wg kategorii",sort:"Sortuj",newOnes:"Najnowsze",oldOnes:"Najstarsze",clearAll:"Wyczyść wszystko"},EventsPage:{Events:"Wydarzenia stacjonarne"},ConsultationsPageMeta:"Konsultacje",ConsultationPage:{Book:"Umów spotkanie",SidebarHeader:"Konsultacja online z ekspertem",IsFinished:"Konsultacja się zakończyła",GoToCheckout:"Do kasy",BuyConsultation:"Kup konsultację",SidebarFeature1:"Spotkanie jeden na jeden",SidebarFeature2:"Zadaj pytania jakie chcesz",SidebarFeature3:"Kolejna wartość ze spotkania",ByFields:"Według dziedzin",Alphabetically:"Alfabetycznie",Join:"Dołącz",Finished:"Ukończono",ReportTermSuccess:"Termin zgłoszony",ChangeTerm:"Zmień termin",Show:"Zobacz",WaitForTutorDecision:"Termin {{date}} czeka na akceptację",TutorAcceptedTerm:"Trener zaakceptował termin {{date}}",NoTermsAvailable:"Brak dostępnych terminów",Choose:"Wybieram",SelectDateAndHour:"Wybierz datę i godzinę konsultacji",SelectedTermOfConsultation:"Wybrany termin konsultacji",Expert:"Ekspert",ConsultationTerm:"Termin spotkania",Understand:"Rozumiem",successTermInfo:"Podana data konsultacji została przesłana do trenera. Dostaniesz osobne powiadomienie po zaakceptowaniu terminu przez trenera lub trener skontaktuje się z Tobą w celu ustalenia innego terminu, jeśli zaproponowany przez Ciebie termin nie będzie mu odpowiadał."},TutorPage:{Courses:"Kursy instruktorów",TutorCoursesEmpty:"Ten autor nie ma jeszcze żadnych kursów"},Homepage:{HeroBtnText:"Sprawdź nasze szkolenia",HeroText:"Witaj w platformie elearningowej Orange. Pomożemy Ci znaleźć najlepsze szkolenia",CoursesSlider1Title:"Najlepsze szkolenia dla Ciebie",CoursesSlider2Title:"Ostatnio dodane",AwardedCoursesTitle:"Nauka podstaw miękkich",AwardedCoursesBtnText:"Zobacz więcej szkoleń",CategoriesTitle:"Zobacz kategorie szkoleń",CategoryBtnText:"Zobacz"},LoginPage:{RememberMe:"Zapamietaj mnie",Lost:"Zapomniałeś hasła?",RPlaeset:"Zresetuj swoje hasło",TempLogin:"W tym demo możesz użyć następujących danych uwierzytelniających",Username:"Nazwa użytkownika",TempEmail1:"To demo używa fałszywej usługi e-mail.",TempEmail2:"Użyj poniższych danych uwierzytelniających, aby sprawdzić, jakie e-maile są wysyłane",ForgotSuccess:"Wysłaliśmy wiadomość e-mail z prośbą o zresetowanie hasła",ForgotSuccessStep2:"Twoje hasło zostało zmienione"},Menu:{Browse:"Przeglądaj",HomePage:"Strona Główna",Courses:"Kursy",Tutors:"Trenerzy",Me:"Moje",Profile:"Profil",Notifications:"Notifikacje",LoginRegister:"Logowanie / Rejestracja",Language:"Język",Orders:"Zamównienia",Consultations:"Konsultacje",Events:"Wydarzenia stacjonarne",Webinars:"Webinary",Packages:"Pakiety"},Footer:{HomePage:"Strona Główna",Courses:"Kursy",Cart:"Koszyk",PoweredBy:"Powered by",UserProfile:"Twój profil"},MyProfilePage:{DownloadCertificate:"Pobierz certyfikat",InvoiceTitle:"Faktura za zamówienie nr",Invoice:"Pobierz",Archived:"Archiwalne",Upcoming:"Nadchodzące",OrdersEmpty:"Nie złożyłeś jeszcze żadnych zamówień",MyCourses:"Moje szkolenia",MyTasks:"Moje zadania",MyBookmarks:"Moje zakładki i notatki",Ascending:"Rosnąco",Descending:"Malejąco",Personal:"Osobiste",Incoming:"Zewnętrzne",ShowDone:"Pokaż skończone",HideDone:"Ukryj skończone",OrdersHistory:"Historia zakupów",Notifications:"Powiadomienia",Logout:"Wyloguj",FinishedCourses:"ukończonych kursów",TotalCertificates:"zdobytych certyfikatów",MyProgress:"Moje postępy",YourAccount:"Twoje konto",EmptyCoursesText:" Nie masz jeszcze żadnych kursów, ale dzięki naszej ofercie już dziś możesz zacząć naukę!",EmptyCoursesBtnText:" Wybierz kurs dla siebie",EmptyCoursesTitle:"Rozpocznij swój rozwój",EmptyCertificates:"Tu zobaczysz swoje certyfikaty po ukończonych kursach",RateCourse:"Oceń kurs",ResetCourseProgress:"Rozpocznij od nowa",AccessCourseExpired:"Dostęp do kursu wygasł",ShowMore:"Pokaż więcej",MyCertificates:"Moje certyfikaty",MyConsultations:"Moje konsultacje",ALlCourses:"Wszystkie kursy",InProgress:"W trakcie",Planned:"Zaplanowane",Finished:"Ukończone",Authored:"Autorskie",EditData:"Edytuj dane",MyStationaryEvents:"Moje wydarzenia stacjonarne",EmptyEventTitle:"Rozpocznij swój rozwój",EmptyEventText:"Nie masz jeszcze żadnych wydarzeń stacjonarnych, ale dzięki naszej ofercie już dziś możesz zacząć naukę!",EmptyEventsBtnText:" Wybierz wydarzenie stacjonarne dla siebie",BoughtUpcoming:"Kupione nadchodzące",BoughtArchived:"Kupione archiwalne",MyWebinars:"Moje webinaria",EmptyWebinarTitle:"Rozpocznij swój rozwój",EmptyWebinarText:"Nie masz jeszcze żadnych webinarów, ale dzięki naszej ofercie już dziś możesz zacząć naukę!",EmptyWebinarsBtnText:" Wybierz webinary dla siebie",WebinarIsStarted:"Webinar już się rozpoczął"},ResetProgressModal:{Continue:"Czy chcesz kontynuować?",WantContinue:"Chcę kontynuować",RestartCourse:"Rozpoczynając kurs od nowa stracisz dotychczasowy postęp",Cancel:"Anuluj"},Navbar:{MyProfile:"Mój profil",MyCourses:"Moje kursy",MyCertificates:"Moje certyfikaty",MyMattermostChannels:"Moje kanały mattermost",MyOrders:"Moje zamówienia",MyTasks:"Moje zadania",MyBookmarks:"Moje zakładki i notatki",MyPayments:"Płatności",EditProfile:"Edytuj dane",Logout:"Wyloguj",MyStationaryEvents:"Moje wydarzenia stacjonarne",MyConsultations:"Moje konsultacje",MyWebinars:"Moje webinaria"},Custom404Page:{NotFound:"Error 404 : Nie znaleziono strony",Info:"Strona której szukasz może być usunięta albo zmienione jej nazwę albo jest czasowo niedostępna"},Notifications:{EscolaLmsTopicFinishedTemplateEvent:"Temat zakończony",NoNotifications:"Nie masz notyfikacji",UserLogged:"Użytkownik zalogowany",list:"Lista",PermissionRoleRemoved:"Uprawnienia usunięte",PermissionRoleChanged:"Uprawnienia zmienione",CartOrderPaid:"Zamówienie w koszyku opłacone",CartOrderSuccess:"Zamówienie zakończone",PdfCreated:"PDF stworzony",SettingPackageConfigUpdated:"Zaktualizowano konfigurację pakietu",CourseTutorAssigned:"Instruktor przypisany",CourseStarted:"Kurs rozpoczęty","EscolaLms\\StationaryEvents\\Events\\StationaryEventAssigned":"Zostałeś przypisany do wydarzenia stacjonarnego {{name}}","EscolaLms\\StationaryEvents\\Events\\StationaryEventUnassigned":"Zostałeś wypisany z wydarzenia stacjonarnego {{name}}","EscolaLms\\StationaryEvents\\Events\\StationaryEventAuthorAssigned":"Zostałeś przypisany do wydarzenia stacjonarnego {{name}} jako autor","EscolaLms\\StationaryEvents\\Events\\StationaryEventAuthorUnassigned":"Zostałeś wypisany z wydarzenia stacjonarnego {{name}} jako autor","EscolaLms\\Cart\\Events\\AbandonedCartEvent":"Wyczyszczono koszyk","EscolaLms\\Cart\\Events\\OrderCancelled":"Zamówienie anulowane","EscolaLms\\Cart\\Events\\OrderCreated":"Zamówienie stworzone","EscolaLms\\Cart\\Events\\OrderPaid":"Zamówienie {{name}} zapłacone","EscolaLms\\Cart\\Events\\ProductableAttached":"Productable {{name}} attached","EscolaLms\\Cart\\Events\\ProductableDetached":"Productable {{name}} detached","EscolaLms\\Cart\\Events\\ProductAddedToCart":"Produkt {{name}} dodany do koszyka","EscolaLms\\Cart\\Events\\ProductAttached":"Produkt {{name}} dołączony","EscolaLms\\Cart\\Events\\ProductBought":"Produkt {{name}} zakupiony","EscolaLms\\Cart\\Events\\ProductDetached":"Produkt {{name}} odłączony","EscolaLms\\Cart\\Events\\ProductRemovedFromCart":"Produkt {{name}} usunięty z koszyka","EscolaLms\\Payments\\Events\\PaymentCancelled":"Płatność za produkty {{name}} na kwotę {{amount}} zł anulowana","EscolaLms\\Payments\\Events\\PaymentFailed":"Błąd płatności za produkty {{name}} na kwotę {{amount}} zł","EscolaLms\\Payments\\Events\\PaymentRegistered":"Płatność na kwotę {{amount}} zł zarejestrowana","EscolaLms\\Payments\\Events\\PaymentSuccess":"Płatność za produkty {{name}} na kwotę {{amount}} zł udana","EscolaLms\\Courses\\Events\\CourseAccessFinished":"Nie masz dostępu do kursu {{name}}","EscolaLms\\Courses\\Events\\CourseAccessStarted":"Masz dostęp do kursu {{name}}","EscolaLms\\Courses\\Events\\CourseAssigned":"Kurs {{name}} został przypisany do Ciebie","EscolaLms\\Courses\\Events\\CourseDeadlineSoon":"Kurs {{name}} zakończy się {{date}}","EscolaLms\\Courses\\Events\\CoursedPublished":"Kurs {{name}} opublikowany","EscolaLms\\Courses\\Events\\CourseFinished":"Kurs {{name}} zakończony","EscolaLms\\Courses\\Events\\CourseStarted":"Kurs {{name}} wystartował","EscolaLms\\Courses\\Events\\CourseStatusChanged":"Status kursu {{name}} zmieniony","EscolaLms\\Courses\\Events\\CourseTutorAssigned":"Zostałeś przypisany jako trener do kursu {{name}}","EscolaLms\\Courses\\Events\\CourseTutorUnassigned":"Zostałeś wypisany jako trener do kursu {{name}}","EscolaLms\\Courses\\Events\\CourseUnassigned":"Zostałeś przypisany {{name}}","EscolaLms\\Courses\\Events\\TopicFinished":"Temat kursu {{name}} zakończony","EscolaLms\\TopicTypes\\Events\\TopicTypeChanged":"Temat {{name}} zmianiony","EscolaLms\\Consultations\\Events\\ApprovedTerm":"Termin zatwierdzony {{date}}","EscolaLms\\Consultations\\Events\\ApprovedTermWithTrainer":"Termin z trenerem zatwierdzony {{date}}","EscolaLms\\Consultations\\Events\\ChangeTerm":"Termin zmieniony na {{date}}","EscolaLms\\Consultations\\Events\\RejectTerm":"Termin {{date}} odrzucony","EscolaLms\\Consultations\\Events\\RejectTermWithTrainer":"Termin z trenerem {{date}} odrzucony","EscolaLms\\Consultations\\Events\\ReminderAboutTerm":"Przypomnienie! Termin o {{date}}","EscolaLms\\Consultations\\Events\\ReminderTrainerAboutTerm":"Przypomnienie! Termin o {{date}}","EscolaLms\\Consultations\\Events\\ReportTerm":"Uytkownik {{user}} zgłosił nowy termin {{date}} na konsultacje {{name}}","EscolaLms\\Webinar\\Events\\ReminderAboutTerm":"Przypomnienie! Webinar startuje {{date}}","EscolaLms\\Webinar\\Events\\WebinarTrainerAssigned":"Trener został przypisany do webinaru","EscolaLms\\Webinar\\Events\\WebinarTrainerUnassigned":"Trener został wypisany z webinaru",ProcessVideoStarted:"Wideo zostało włączone",ProcessVideoFailed:"Błąd podczas włączania wideo","EscolaLms\\CsvUsers\\Events\\EscolaLmsImportedNewUserTemplateEvent":"Zaimportowano nowy szablon użytkownika",AssignToProduct:"Niezalogowany użytkownik został przypisany do produktu",AssignToProductable:"Niezalogowany użytkownik",FileDeleted:"Plik usunięty",FileStored:"Plik przechowywany","EscolaLms\\Settings\\Events\\SettingPackageConfigUpdated":"Pakiet ustawień został zaktualizowany","EscolaLms\\Auth\\Events\\AccountBlocked":"Konto zablokowane","EscolaLms\\Auth\\Events\\AccountConfirmed":"Konto potwierdzone","EscolaLms\\Auth\\Events\\AccountDeleted":"Konto usuniete","EscolaLms\\Auth\\Events\\AccountMustBeEnableByAdmin":"Konto musi został aktywowane przez administratora","EscolaLms\\Auth\\Events\\AccountRegistered":"Konto zarejestrowane","EscolaLms\\Auth\\Events\\ForgotPassword":"Zapomniano hasła","EscolaLms\\Auth\\Events\\Login":"Poprawnie zalogowano","EscolaLms\\Auth\\Events\\Logout":"Wylogowano","EscolaLms\\Auth\\Events\\PasswordChanged":"Hasło zmienione","EscolaLms\\Auth\\Events\\ResetPassword":"Hasło zresetowane","EscolaLms\\Auth\\Events\\UserAddedToGroup":"Zostałeś dodany do grupy","EscolaLms\\Auth\\Events\\UserRemovedFromGroup":"Zostałeś usunięty z grupy","EscolaLms\\BulkNotifications\\Events\\NotificationSent":"{{name}}",AccountConfirmed:"Konto potwierdzone",ProductAddedToCart:"Produkt dodany do koszyka",ProductRemovedFromCart:"Produkt usunięty z koszyka",ProductableAttached:"Produkt dołączony???",ProductBought:"Produkt kupiony",ProductAttached:"Produkt dołączony",OrderCreated:"Zamówienie utworzone",CreateBookmark:"Stworzono zakładkę",DeleteBookmark:"Usunięto zakładkę",Deleted:"Usunięto pomyślnie",notifications:"Powiadomienia",readAll:"Oznacz wszystkie jako przeczytane",empty:"Brak powiadomień"},Header:{Register:"Zarejestruj",Login:"Logowanie"},AcceptCheckbox:"Zaznaczając to pole, akceptujesz",PrivacyPolicy:"Politykę prywatności",TermsOfService:"Warunki usługi",EmailWasVerified:"Email został potwierdzony.",RateCourse:{Title:"Podziel się opinią o kursie",WriteComment:"Napisz komentarz",RateScale:"Oceń w skali 1 - 5",ThankYou:"Dziękujemy za wystawienie oceny",ThankYouMessage:"Twoja ocena została zapisana",OptionalComment:"Tutaj możesz napisać komentarz lub zostawić opinię (nieobowiązkowe)",SendAnswer:"Wyślij",NoAnswer:"Anuluj"},Filters:{Category:"Kategoria",Search:"Szukaj"},EventPage:{IsFinished:"Wydarzenie zakończyło się",GoToCheckout:"Do kasy",NotStarted:"Wydarzenie jeszcze się nie rozpoczęło",UnavailableEvent:"Wydarzenie niemożliwe do kupienia","30Days":"Gwarantowane 30 dni na zwrot"},CourseAccess:{RequestAccess:"Poproś o dostęp",Pending:"Wysłano prośbę"},WebinarsPage:{Webinars:"Webinary"},WebinarPage:{Webinar:"Webinar",StartDate:"Termin rozpoczęcia",EndDate:"Termin zakończenia",WebinarTags:"Tagi webinaru",CompaniesTitle:"Firmy które oferują ten webinar swoim pracownikom",ErrorWhileGeneratingUrl:"Błąd podczas generowania webinaria"},ConsultationStatus:{Unconfirmed:"Niepotwierdzona",Bought:"Kupiona",Canceled:"Odrzucona",Appointment:"Umówiona",Ended:"Zakończona",UnconfirmedInfo:"Potwierdź zaproponowany termin spotkania przez klienta lub skontaktuj się w celu ustalenie innego terminu.",AppointmentInfo:"Link do spotkania pojawi się w {{date}}"},PackagesPage:{Packages:"Pakiety"},PackagePage:{PackageIncludes:"Pakiet zawiera:",CompaniesSectionTitle:"Firmy które oferują ten pakiet swoim pracownikom",TutorsSectionTitle:"Autorzy",ProductOwned:"Przejdź do swojego profilu, aby zobaczyć elementy zakupionego pakietu.",DescriptionTitle:"Opis pakietu"},CoursePanel:{Course:"Kurs",Leave:"Wyjdź",ScheduleTitle:"Harmonogram kursu",MenuButtonAria:"Przełącz menu",FinishPage:{Congrats:"Gratulacje!",Subtitle:"Ukończyłeś właśnie kurs",Text:"Zdobyłeś certyfikat, który umożliwia Ci pracę w najlepszych firmach z całego świata",YourCertificate:"Twój certyfikat",CertificateText:"Znajdziesz go także w swoim profilu"}}}}};ta.use(JZ2).init({resources:x00,fallbackLng:"pl",interpolation:{escapeValue:!1},react:{transKeepBasicHtmlNodesFor:["br","strong","i"]}});var w2=typeof __SENTRY_DEBUG__>"u"?!0:__SENTRY_DEBUG__;function AO(t){var e=Ye().getClient(),a=t||e&&e.getOptions();return!!a&&("tracesSampleRate"in a||"tracesSampler"in a)}function NM(t){var e=t||Ye(),a=e.getScope();return a&&a.getTransaction()}function f4(t){return t/1e3}function V00(t){return t*1e3}function C00(){tn("error",gU),tn("unhandledrejection",gU)}function gU(){var t=NM();if(t){var e="internal_error";w2&&Bt.log("[Tracing] Transaction: "+e+" -> Global error occured"),t.setStatus(e)}}var eB="finishReason",aB=["heartbeatFailed","idleTimeout","documentHidden"],oe1=function(){function t(e){e===void 0&&(e=1e3),this.spans=[],this._maxlen=e}return t.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},t}(),b00=function(){function t(e){if(this.traceId=no(),this.spanId=no().substring(16),this.startTimestamp=il(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return t.prototype.child=function(e){return this.startChild(e)},t.prototype.startChild=function(e){var a=new t(K1(K1({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return a.spanRecorder=this.spanRecorder,a.spanRecorder&&a.spanRecorder.add(a),a.transaction=this.transaction,a},t.prototype.setTag=function(e,a){var n;return this.tags=K1(K1({},this.tags),(n={},n[e]=a,n)),this},t.prototype.setData=function(e,a){var n;return this.data=K1(K1({},this.data),(n={},n[e]=a,n)),this},t.prototype.setStatus=function(e){return this.status=e,this},t.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var a=L00(e);return a!=="unknown_error"&&this.setStatus(a),this},t.prototype.isSuccess=function(){return this.status==="ok"},t.prototype.finish=function(e){this.endTimestamp=typeof e=="number"?e:il()},t.prototype.toTraceparent=function(){var e="";return this.sampled!==void 0&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},t.prototype.toContext=function(){return N8({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},t.prototype.updateWithContext=function(e){var a,n,r,o,l;return this.data=(a=e.data,a??{}),this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=(n=e.spanId,n??this.spanId),this.startTimestamp=(r=e.startTimestamp,r??this.startTimestamp),this.status=e.status,this.tags=(o=e.tags,o??{}),this.traceId=(l=e.traceId,l??this.traceId),this},t.prototype.getTraceContext=function(){return N8({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},t.prototype.toJSON=function(){return N8({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},t}();function L00(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}var le1=function(t){$5(e,t);function e(a,n){var r=t.call(this,a)||this;return r._measurements={},r._hub=Ye(),Oi(n,EM)&&(r._hub=n),r.name=a.name||"",r.metadata=a.metadata||{},r._trimEnd=a.trimEnd,r.transaction=r,r}return e.prototype.setName=function(a){this.name=a},e.prototype.initSpanRecorder=function(a){a===void 0&&(a=1e3),this.spanRecorder||(this.spanRecorder=new oe1(a)),this.spanRecorder.add(this)},e.prototype.setMeasurements=function(a){this._measurements=K1({},a)},e.prototype.setMetadata=function(a){this.metadata=K1(K1({},this.metadata),a)},e.prototype.finish=function(a){var n=this;if(this.endTimestamp===void 0){if(this.name||(w2&&Bt.warn("Transaction has no name, falling back to ``."),this.name=""),t.prototype.finish.call(this,a),this.sampled!==!0){w2&&Bt.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var r=this._hub.getClient(),o=r&&r.getTransport&&r.getTransport();o&&o.recordLostEvent&&o.recordLostEvent("sample_rate","transaction");return}var l=this.spanRecorder?this.spanRecorder.spans.filter(function(s){return s!==n&&s.endTimestamp}):[];this._trimEnd&&l.length>0&&(this.endTimestamp=l.reduce(function(s,u){return s.endTimestamp&&u.endTimestamp?s.endTimestamp>u.endTimestamp?s:u:s}).endTimestamp);var c={contexts:{trace:this.getTraceContext()},spans:l,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata},h=Object.keys(this._measurements).length>0;return h&&(w2&&Bt.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),w2&&Bt.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(c)}},e.prototype.toContext=function(){var a=t.prototype.toContext.call(this);return N8(K1(K1({},a),{name:this.name,trimEnd:this._trimEnd}))},e.prototype.updateWithContext=function(a){var n;return t.prototype.updateWithContext.call(this,a),this.name=(n=a.name,n??""),this._trimEnd=a.trimEnd,this},e}(b00),ce1=1e3,B00=5e3,_00=function(t){$5(e,t);function e(a,n,r,o){r===void 0&&(r="");var l=t.call(this,o)||this;return l._pushActivity=a,l._popActivity=n,l.transactionSpanId=r,l}return e.prototype.add=function(a){var n=this;a.spanId!==this.transactionSpanId&&(a.finish=function(r){a.endTimestamp=typeof r=="number"?r:il(),n._popActivity(a.spanId)},a.endTimestamp===void 0&&this._pushActivity(a.spanId)),t.prototype.add.call(this,a)},e}(oe1),S00=function(t){$5(e,t);function e(a,n,r,o){r===void 0&&(r=ce1),o===void 0&&(o=!1);var l=t.call(this,a,n)||this;return l._idleHub=n,l._idleTimeout=r,l._onScope=o,l.activities={},l._heartbeatCounter=0,l._finished=!1,l._beforeFinishCallbacks=[],n&&o&&(pU(n),w2&&Bt.log("Setting idle transaction on scope. Span ID: "+l.spanId),n.configureScope(function(c){return c.setSpan(l)})),l._initTimeout=setTimeout(function(){l._finished||l.finish()},l._idleTimeout),l}return e.prototype.finish=function(a){var n,r,o=this;if(a===void 0&&(a=il()),this._finished=!0,this.activities={},this.spanRecorder){w2&&Bt.log("[Tracing] finishing IdleTransaction",new Date(a*1e3).toISOString(),this.op);try{for(var l=zo(this._beforeFinishCallbacks),c=l.next();!c.done;c=l.next()){var h=c.value;h(this,a)}}catch(s){n={error:s}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter(function(s){if(s.spanId===o.spanId)return!0;s.endTimestamp||(s.endTimestamp=a,s.setStatus("cancelled"),w2&&Bt.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(s,void 0,2)));var u=s.startTimestamp=3?(w2&&Bt.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.setTag(eB,aB[0]),this.finish()):this._pingHeartbeat()}},e.prototype._pingHeartbeat=function(){var a=this;w2&&Bt.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout(function(){a._beat()},B00)},e}(le1);function pU(t){if(t){var e=t.getScope();if(e){var a=e.getTransaction();a&&e.setSpan(void 0)}}}function T00(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function se1(t,e,a){if(!AO(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setMetadata({transactionSampling:{method:"explicitly_set"}}),t;var n;return typeof e.tracesSampler=="function"?(n=e.tracesSampler(a),t.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(n)}})):a.parentSampled!==void 0?(n=a.parentSampled,t.setMetadata({transactionSampling:{method:"inheritance"}})):(n=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:"client_rate",rate:Number(n)}})),O00(n)?n?(t.sampled=Math.random()1?(w2&&Bt.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+t+"."),!1):!0}function A00(t,e){var a=this.getClient(),n=a&&a.getOptions()||{},r=new le1(t,this);return r=se1(r,n,K1({parentSampled:t.parentSampled,transactionContext:t},e)),r.sampled&&r.initSpanRecorder(n._experiments&&n._experiments.maxSpans),r}function k00(t,e,a,n,r){var o=t.getClient(),l=o&&o.getOptions()||{},c=new S00(e,t,a,n);return c=se1(c,l,K1({parentSampled:e.parentSampled,transactionContext:e},r)),c.sampled&&c.initSpanRecorder(l._experiments&&l._experiments.maxSpans),c}function E00(){var t=l9();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=A00),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=T00))}function P00(){var t=l9();if(t.__SENTRY__){var e={mongodb:function(){var n=F3(module,"./integrations/node/mongo");return new n.Mongo},mongoose:function(){var n=F3(module,"./integrations/node/mongo");return new n.Mongo({mongoose:!0})},mysql:function(){var n=F3(module,"./integrations/node/mysql");return new n.Mysql},pg:function(){var n=F3(module,"./integrations/node/postgres");return new n.Postgres}},a=Object.keys(e).filter(function(n){return!!f10(n)}).map(function(n){try{return e[n]()}catch{return}}).filter(function(n){return n});a.length>0&&(t.__SENTRY__.integrations=Be(t.__SENTRY__.integrations||[],a))}}function N00(){E00(),cu()&&P00(),C00()}var Yd=g0();function D00(){Yd&&Yd.document?Yd.document.addEventListener("visibilitychange",function(){var t=NM();if(Yd.document.hidden&&t){var e="cancelled";w2&&Bt.log("[Tracing] Transaction: "+e+" -> since tab moved to the background, op: "+t.op),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.setTag(eB,aB[2]),t.finish()}}):w2&&Bt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var kO=function(t,e,a){var n;return function(r){e.value>=0&&(r||a)&&(e.delta=e.value-(n||0),(e.delta||n===void 0)&&(n=e.value,t(e)))}},R00=function(){return"v2-"+Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12)},EO=function(t,e){return{name:t,value:e??-1,delta:0,entries:[],id:R00()}},PO=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if(t==="first-input"&&!("PerformanceEventTiming"in self))return;var a=new PerformanceObserver(function(n){return n.getEntries().map(e)});return a.observe({type:t,buffered:!0}),a}}catch{}},DM=function(t,e){var a=function(n){(n.type==="pagehide"||g0().document.visibilityState==="hidden")&&(t(n),e&&(removeEventListener("visibilitychange",a,!0),removeEventListener("pagehide",a,!0)))};addEventListener("visibilitychange",a,!0),addEventListener("pagehide",a,!0)},j00=function(t,e){var a=EO("CLS",0),n,r=0,o=[],l=function(h){if(h&&!h.hadRecentInput){var s=o[0],u=o[o.length-1];r&&o.length!==0&&h.startTime-u.startTime<1e3&&h.startTime-s.startTime<5e3?(r+=h.value,o.push(h)):(r=h.value,o=[h]),r>a.value&&(a.value=r,a.entries=o,n&&n())}},c=PO("layout-shift",l);c&&(n=kO(t,a,e),DM(function(){c.takeRecords().map(l),n(!0)}))},Df=-1,I00=function(){return g0().document.visibilityState==="hidden"?0:1/0},F00=function(){DM(function(t){var e=t.timeStamp;Df=e},!0)},NO=function(){return Df<0&&(Df=I00(),F00()),{get firstHiddenTime(){return Df}}},$00=function(t,e){var a=NO(),n=EO("FID"),r,o=function(c){r&&c.startTime=e.startTimestamp)){var h=a._measurements[c].value,s=l+f4(h),u=Math.abs((s-e.startTimestamp)*1e3),v=u-h;w2&&Bt.log("[Measurements] Normalized "+c+" from "+h+" to "+u+" ("+v+")"),a._measurements[c].value=u}}),this._measurements["mark.fid"]&&this._measurements.fid&&Bc(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+f4(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,e.setMeasurements(this._measurements),Z00(e,this._lcpEntry,this._clsEntry),e.setTag("sentry_reportAllChanges",this._reportAllChanges)}}},t.prototype._trackNavigator=function(e){var a=dr.navigator;if(a){var n=a.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Qd(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),Qd(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),Qd(a.deviceMemory)&&e.setTag("deviceMemory",String(a.deviceMemory)),Qd(a.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(a.hardwareConcurrency))}},t.prototype._trackCLS=function(){var e=this;j00(function(a){var n=a.entries.pop();n&&(w2&&Bt.log("[Measurements] Adding CLS"),e._measurements.cls={value:a.value},e._clsEntry=n)})},t.prototype._trackLCP=function(){var e=this;U00(function(a){var n=a.entries.pop();if(n){var r=f4(p7),o=f4(n.startTime);w2&&Bt.log("[Measurements] Adding LCP"),e._measurements.lcp={value:a.value},e._measurements["mark.lcp"]={value:r+o},e._lcpEntry=n}},this._reportAllChanges)},t.prototype._trackFID=function(){var e=this;$00(function(a){var n=a.entries.pop();if(n){var r=f4(p7),o=f4(n.startTime);w2&&Bt.log("[Measurements] Adding FID"),e._measurements.fid={value:a.value},e._measurements["mark.fid"]={value:r+o}}})},t}();function q00(t,e,a){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(function(n){Zd(t,e,n,a)}),Zd(t,e,"secureConnection",a,"TLS/SSL","connectEnd"),Zd(t,e,"fetch",a,"cache","domainLookupStart"),Zd(t,e,"domainLookup",a,"DNS"),Y00(t,e,a)}function G00(t,e,a,n,r){var o=r+a,l=o+n;return Bc(t,{description:e.name,endTimestamp:l,op:e.entryType,startTimestamp:o}),o}function K00(t,e,a,n,r,o){if(!(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")){var l={};"transferSize"in e&&(l["Transfer Size"]=e.transferSize),"encodedBodySize"in e&&(l["Encoded Body Size"]=e.encodedBodySize),"decodedBodySize"in e&&(l["Decoded Body Size"]=e.decodedBodySize);var c=o+n,h=c+r;Bc(t,{description:a,endTimestamp:h,op:e.initiatorType?"resource."+e.initiatorType:"resource",startTimestamp:c,data:l})}}function Zd(t,e,a,n,r,o){var l=o?e[o]:e[a+"End"],c=e[a+"Start"];!c||!l||Bc(t,{op:"browser",description:r??a,startTimestamp:n+f4(c),endTimestamp:n+f4(l)})}function Y00(t,e,a){Bc(t,{op:"browser",description:"request",startTimestamp:a+f4(e.requestStart),endTimestamp:a+f4(e.responseEnd)}),Bc(t,{op:"browser",description:"response",startTimestamp:a+f4(e.responseStart),endTimestamp:a+f4(e.responseEnd)})}function Bc(t,e){var a=e.startTimestamp,n=u10(e,["startTimestamp"]);return a&&t.startTimestamp>a&&(t.startTimestamp=a),t.startChild(K1({startTimestamp:a},n))}function Qd(t){return typeof t=="number"&&isFinite(t)}function Z00(t,e,a){e&&(w2&&Bt.log("[Measurements] Adding LCP Data"),e.element&&t.setTag("lcp.element",ih(e.element)),e.id&&t.setTag("lcp.id",e.id),e.url&&t.setTag("lcp.url",e.url.trim().slice(0,200)),t.setTag("lcp.size",e.size)),a&&a.sources&&(w2&&Bt.log("[Measurements] Adding CLS Data"),a.sources.forEach(function(n,r){return t.setTag("cls.source."+(r+1),ih(n.node))}))}var Q00=["localhost",/^\//],Cp={traceFetch:!0,traceXHR:!0,tracingOrigins:Q00};function X00(t){var e=K1(K1({},Cp),t),a=e.traceFetch,n=e.traceXHR,r=e.tracingOrigins,o=e.shouldCreateSpanForRequest,l={},c=function(u){if(l[u])return l[u];var v=r;return l[u]=v.some(function(f){return oh(u,f)})&&!oh(u,"sentry_key"),l[u]},h=c;typeof o=="function"&&(h=function(u){return c(u)&&o(u)});var s={};a&&tn("fetch",function(u){J00(u,h,s)}),n&&tn("xhr",function(u){te0(u,h,s)})}function J00(t,e,a){if(!(!AO()||!(t.fetchData&&e(t.fetchData.url)))){if(t.endTimestamp){var n=t.fetchData.__span;if(!n)return;var r=a[n];r&&(t.response?r.setHttpStatus(t.response.status):t.error&&r.setStatus("internal_error"),r.finish(),delete a[n]);return}var o=NM();if(o){var r=o.startChild({data:K1(K1({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http.client"});t.fetchData.__span=r.spanId,a[r.spanId]=r;var l=t.args[0]=t.args[0],c=t.args[1]=t.args[1]||{},h=c.headers;Oi(l,Request)&&(h=l.headers),h?typeof h.append=="function"?h.append("sentry-trace",r.toTraceparent()):Array.isArray(h)?h=Be(h,[["sentry-trace",r.toTraceparent()]]):h=K1(K1({},h),{"sentry-trace":r.toTraceparent()}):h={"sentry-trace":r.toTraceparent()},c.headers=h}}}function te0(t,e,a){if(!(!AO()||t.xhr&&t.xhr.__sentry_own_request__||!(t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)))){var n=t.xhr.__sentry_xhr__;if(t.endTimestamp){var r=t.xhr.__sentry_xhr_span_id__;if(!r)return;var o=a[r];o&&(o.setHttpStatus(n.status_code),o.finish(),delete a[r]);return}var l=NM();if(l){var o=l.startChild({data:K1(K1({},n.data),{type:"xhr",method:n.method,url:n.url}),description:n.method+" "+n.url,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=o.spanId,a[t.xhr.__sentry_xhr_span_id__]=o,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",o.toTraceparent())}catch{}}}}var m7=g0();function ee0(t,e,a){if(e===void 0&&(e=!0),a===void 0&&(a=!0),!m7||!m7.location){w2&&Bt.warn("Could not initialize routing instrumentation due to invalid location");return}var n=m7.location.href,r;e&&(r=t({name:m7.location.pathname,op:"pageload"})),a&&tn("history",function(o){var l=o.to,c=o.from;if(c===void 0&&n&&n.indexOf(l)!==-1){n=void 0;return}c!==l&&(n=void 0,r&&(w2&&Bt.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=t({name:m7.location.pathname,op:"navigation"}))})}var ae0=600,ne0=K1({idleTimeout:ce1,markBackgroundTransactions:!0,maxTransactionDuration:ae0,routingInstrumentation:ee0,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},Cp),re0=function(){function t(e){this.name=t.id,this._configuredIdleTimeout=void 0;var a=Cp.tracingOrigins;e&&(this._configuredIdleTimeout=e.idleTimeout,e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&e.tracingOrigins.length!==0?a=e.tracingOrigins:w2&&(this._emitOptionsWarning=!0)),this.options=K1(K1(K1({},ne0),e),{tracingOrigins:a});var n=this.options._metricOptions;this._metrics=new W00(n&&n._reportAllChanges)}return t.prototype.setupOnce=function(e,a){var n=this;this._getCurrentHub=a,this._emitOptionsWarning&&(w2&&Bt.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),w2&&Bt.warn("[Tracing] We added a reasonable default for you: "+Cp.tracingOrigins));var r=this.options,o=r.routingInstrumentation,l=r.startTransactionOnLocationChange,c=r.startTransactionOnPageLoad,h=r.markBackgroundTransactions,s=r.traceFetch,u=r.traceXHR,v=r.tracingOrigins,f=r.shouldCreateSpanForRequest;o(function(d){return n._createRouteTransaction(d)},c,l),h&&D00(),X00({traceFetch:s,traceXHR:u,tracingOrigins:v,shouldCreateSpanForRequest:f})},t.prototype._createRouteTransaction=function(e){var a=this;if(!this._getCurrentHub){w2&&Bt.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.");return}var n=this.options,r=n.beforeNavigate,o=n.idleTimeout,l=n.maxTransactionDuration,c=e.op==="pageload"?ie0():void 0,h=K1(K1(K1({},e),c),{trimEnd:!0}),s=typeof r=="function"?r(h):h,u=s===void 0?K1(K1({},h),{sampled:!1}):s;u.sampled===!1&&w2&&Bt.log("[Tracing] Will not send "+u.op+" transaction because of beforeNavigate."),w2&&Bt.log("[Tracing] Starting "+u.op+" transaction on scope");var v=this._getCurrentHub(),f=g0().location,d=k00(v,u,o,!0,{location:f});return d.registerBeforeFinishCallback(function(M,g){a._metrics.addPerformanceEntries(M),le0(V00(l),M,g)}),d.setTag("idleTimeout",this._configuredIdleTimeout),d},t.id="BrowserTracing",t}();function ie0(){var t=oe0("sentry-trace");if(t)return ct0(t)}function oe0(t){var e=g0().document.querySelector("meta[name="+t+"]");return e?e.getAttribute("content"):null}function le0(t,e,a){var n=a-e.startTimestamp,r=a&&(n>t||n<0);r&&(e.setStatus("deadline_exceeded"),e.setTag("maxTransactionDurationExceeded","true"))}N00();const zU=window.VITE_APP_SENTRYDSN||"https://1abed5b3f95e41be8e1c39c33af12506@sentry.etd24.pl/96";function ce0(){return zU&&window.location.hostname.indexOf("localhost")===-1&&e00({dsn:zU,integrations:[new re0],tracesSampleRate:1}),null}ce0();const MU=window.VITE_APP_API_URL||"https://api-stage.escolalms.com";y00.load({google:{families:["Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700;1,800"]}});FV.createRoot(document.getElementById("root")).render(I.jsx(W1.StrictMode,{children:MU?I.jsx(ic.EscolaLMSContextProvider,{apiUrl:MU,initialFetch:!1,children:I.jsx(we.GlobalThemeProvider,{children:I.jsx(H00,{})})}):I.jsx("pre",{children:"error `process.env.VITE_APP_PUBLIC_API_URL || window.VITE_APP_API_URL` not set"})}));export{Qe1 as $,Q0 as A,HZ as B,z01 as C,y4 as D,he0 as E,L_ as F,jB1 as G,Ae0 as H,WL as I,Qm as J,Ye0 as K,pf as L,x01 as M,Fe0 as N,$e0 as O,ut as P,Ge0 as Q,V8 as R,_h as S,$a as T,We0 as U,MJ2 as V,w40 as W,N_ as X,HA1 as Y,rX2 as Z,Zt as _,$8 as a,fJ2 as a$,JK as a0,Ie0 as a1,X2 as a2,ye as a3,wa as a4,St as a5,Pt as a6,HJ as a7,zh as a8,bl as a9,De0 as aA,Re0 as aB,Je0 as aC,je0 as aD,V40 as aE,kJ as aF,w91 as aG,we as aH,Ml as aI,SJ2 as aJ,de0 as aK,fe0 as aL,vS1 as aM,wJ as aN,rZ as aO,iY2 as aP,i40 as aQ,r40 as aR,e40 as aS,t40 as aT,a40 as aU,n40 as aV,cY2 as aW,Pe0 as aX,y40 as aY,Ee0 as aZ,x40 as a_,js as aa,Ph as ab,Om as ac,rS1 as ad,MU as ae,md1 as af,Rs as ag,wd1 as ah,pr as ai,qe0 as aj,PL1 as ak,kS1 as al,AS1 as am,Tm as an,B11 as ao,bB1 as ap,H40 as aq,Ue0 as ar,Xe0 as as,Qe0 as at,ke0 as au,_Y as av,oj1 as aw,pe0 as ax,Oe0 as ay,Ne0 as az,W1 as b,T$ as b$,M40 as b0,z40 as b1,SS1 as b2,o40 as b3,c40 as b4,s40 as b5,uO1 as b6,E2 as b7,Yh as b8,V11 as b9,sE1 as bA,gM as bB,sk1 as bC,A1 as bD,fc as bE,$k1 as bF,Gk1 as bG,Yk1 as bH,Zn as bI,dM as bJ,jT as bK,Xs as bL,j11 as bM,N11 as bN,D11 as bO,Oh as bP,HO1 as bQ,kA1 as bR,DT as bS,f11 as bT,yi as bU,lp as bV,cs as bW,r11 as bX,n11 as bY,LT as bZ,A$ as b_,MO1 as ba,fM as bb,nO1 as bc,M11 as bd,x11 as be,Ci as bf,UT as bg,Kk1 as bh,mL as bi,oM as bj,$11 as bk,lE1 as bl,_T as bm,QT1 as bn,aO1 as bo,gc as bp,BT as bq,Xk1 as br,hE1 as bs,a11 as bt,y5 as bu,NT as bv,tY as bw,A11 as bx,Rk1 as by,oO1 as bz,se as c,me0 as c0,m40 as c1,p40 as c2,g40 as c3,f40 as c4,u40 as c5,t_1 as c6,d40 as c7,v40 as c8,ge0 as c9,aO as cA,D9 as cB,X_ as cC,l40 as cD,Zs as cE,Ke0 as cF,x2 as ca,h40 as cb,aS as cc,a0 as cd,Ne as ce,Xh as cf,Qz as cg,Ze0 as ch,wE1 as ci,sr1 as cj,n0 as ck,E5 as cl,Fs1 as cm,t9 as cn,ue0 as co,se0 as cp,sL1 as cq,w0 as cr,qJ as cs,O_1 as ct,sd1 as cu,FL1 as cv,qs1 as cw,VJ as cx,OS1 as cy,XK as cz,b as d,ve0 as e,r9 as f,R0 as g,ic as h,i61 as i,I as j,KG as k,l0 as l,b6 as m,On as n,BJ2 as o,ij1 as p,ma as q,_ as r,S0 as s,tS as t,GK as u,Oe as v,Vi as w,pS as x,Aa as y,rj1 as z}; + - Nie możemy dostarczyć wiadomości na Twój adres (zazwyczaj przez firewalla lub filtry na poczcie)`,RegisterAgain:"Wpisz adres ponownie"},CoursePage:{ErrorOccurred:"Wystąpił błąd",HeroBtnText:"Zobacz więcej",Level:"Poziom trudności",StartDate:"Termin rozpoczęcia",CourseCategory:"Kategoria szkolenia",Duration:"Czas trwania",CompaniesTitle:"Firmy które oferują ten kurs swoim pracownikom",CourseDescriptionTitle:"Opis szkolenia",CourseRatingsTitle:"Opinie studentów",CourseRatingsEmpty:"Ten kurs nie został jeszcze oceniony.",RelatedCoursesTitle:"Powiązane szkolenia",InterestTitle:"Może Cię zainteresuje",GoToCheckout:"Do kasy",NotStarted:"Kurs się jeszcze nie rozpoczął","30Days":"Gwarantowane 30 dni na zwrot",ContentToDownload:"Materiały szkoleniowe do pobrania",SmartphoneAccess:"Dostęp na smartphone i tablet",Certificate:"Certyfikat ukończenia",Finished:"Ukończono",Of:"z",IsFinished:"Kurs się zakończył",Lessons:"Lekcji",FinishToGetCertificate:"Ukończ kurs aby zdobyć certyfikat",MyProgress:"Moje postępy",ToSeeProgress:"aby widzieć postępy",UnavailableCourse:"Kurs niemożliwy do kupienia",NoRatings:"Brak ocen",AvarageRating:"Średnia ocena szkoleń Jana Kamińskiego",Satisfaction:"zadowolenia lub zwrot pieniędzy*",Guarantee:"Gwarancja",Recommends:"Poleca szkolenia Jana Kaminskiego",SeeOtherCourses:"Zobacz inne kursy",BackToCourse:"Powrót do kursu",Language:"Język",Students:"Uczniów",Teacher:"Nauczyciel",Login:"Zaloguj się",SelectQuestionnaire:"Wybierz ankietę...",SelectQuestion:"Wybierz pytanie...",Resources:"Zasoby",Questionnaires:"Ankiety",CourseTitle:"Tytuł kursu",CertificateDate:"Uzyskany w dniu",DownloadCertificate:"Pobierz certyfikat"},Cart:{UseTestCard:"Użyj testowej karty Stripe",LearnMore:"Sprawdź karty",Cart:"Koszyk",PayWithStripe:"Płać za pomocą stripe Checkout",ChoosePaymentMethod:"Wybierz metodę płatności",FreeCheckout:"Zakończ bezpłatnie",Interest:"Może Cię zainteresować",CartIsEmpty:"Koszyk jest pusty",CartSummary:"Suma koszyka",Summary:"Podsumowanie",FullName:"Imię i nazwisko",RememberCard:"Zapamiętaj kartę",YourCart:"Twój koszyk",CreditCard:"Karta kredytowa",EmptyCartTitle:"Twój koszyk jest pusty",EmptyCartText:"Dodaj kursy do koszyka",EmptyCartBtnText:"Przeglądaj kursy",EmptyNameWarning:"Podaj imię i nazwisko",ThankYouTitle:"Dziękujemy za zakup",ThankYouText:"Przejdź do profilu, aby zobaczyć zakupione produkty lub przejdź do przeglądania kursów"},CourseProgram:{TopicAttachment:"Załączniki lekcji",ShowAgenda:"Pokaż agendę",NoProgram:"Lekcja nie istnieje",NoTopic:"Temat nie istnieje",FinishTitle:"Gratulacje! Ukończyłeś/aś kurs!",FinishSubtitle:"Oceń kurs, przejdź do swojego profilu albo przeglądaj pozostałe kursy.",FinishSubtitleNoRating:"Już oceniłeś ten kurs. Przejdź do swojego profilu albo przeglądaj pozostałe kursy.",CourseRated:"Dziękujemy! Oceniłeś już ten kurs."},CoursesPage:{Category:"Kategoria",Free:"Darmowe",All:"Wszystkie",Type:"Typ szkolenia",Courses:"Kursy",Search:"Szukaj kursów",showByCategory:"Pokaż wg kategorii",sort:"Sortuj",newOnes:"Najnowsze",oldOnes:"Najstarsze",clearAll:"Wyczyść wszystko"},EventsPage:{Events:"Wydarzenia stacjonarne"},ConsultationsPageMeta:"Konsultacje",ConsultationPage:{Book:"Umów spotkanie",SidebarHeader:"Konsultacja online z ekspertem",IsFinished:"Konsultacja się zakończyła",GoToCheckout:"Do kasy",BuyConsultation:"Kup konsultację",SidebarFeature1:"Spotkanie jeden na jeden",SidebarFeature2:"Zadaj pytania jakie chcesz",SidebarFeature3:"Kolejna wartość ze spotkania",ByFields:"Według dziedzin",Alphabetically:"Alfabetycznie",Join:"Dołącz",Finished:"Ukończono",ReportTermSuccess:"Termin zgłoszony",ChangeTerm:"Zmień termin",Show:"Zobacz",WaitForTutorDecision:"Termin {{date}} czeka na akceptację",TutorAcceptedTerm:"Trener zaakceptował termin {{date}}",NoTermsAvailable:"Brak dostępnych terminów",Choose:"Wybieram",SelectDateAndHour:"Wybierz datę i godzinę konsultacji",SelectedTermOfConsultation:"Wybrany termin konsultacji",Expert:"Ekspert",ConsultationTerm:"Termin spotkania",Understand:"Rozumiem",successTermInfo:"Podana data konsultacji została przesłana do trenera. Dostaniesz osobne powiadomienie po zaakceptowaniu terminu przez trenera lub trener skontaktuje się z Tobą w celu ustalenia innego terminu, jeśli zaproponowany przez Ciebie termin nie będzie mu odpowiadał."},TutorPage:{Courses:"Kursy instruktorów",TutorCoursesEmpty:"Ten autor nie ma jeszcze żadnych kursów"},Homepage:{HeroBtnText:"Sprawdź nasze szkolenia",HeroText:"Witaj w platformie elearningowej Orange. Pomożemy Ci znaleźć najlepsze szkolenia",CoursesSlider1Title:"Najlepsze szkolenia dla Ciebie",CoursesSlider2Title:"Ostatnio dodane",AwardedCoursesTitle:"Nauka podstaw miękkich",AwardedCoursesBtnText:"Zobacz więcej szkoleń",CategoriesTitle:"Zobacz kategorie szkoleń",CategoryBtnText:"Zobacz"},LoginPage:{RememberMe:"Zapamietaj mnie",Lost:"Zapomniałeś hasła?",RPlaeset:"Zresetuj swoje hasło",TempLogin:"W tym demo możesz użyć następujących danych uwierzytelniających",Username:"Nazwa użytkownika",TempEmail1:"To demo używa fałszywej usługi e-mail.",TempEmail2:"Użyj poniższych danych uwierzytelniających, aby sprawdzić, jakie e-maile są wysyłane",ForgotSuccess:"Wysłaliśmy wiadomość e-mail z prośbą o zresetowanie hasła",ForgotSuccessStep2:"Twoje hasło zostało zmienione"},Menu:{Browse:"Przeglądaj",HomePage:"Strona Główna",Courses:"Kursy",Tutors:"Trenerzy",Me:"Moje",Profile:"Profil",Notifications:"Notifikacje",LoginRegister:"Logowanie / Rejestracja",Language:"Język",Orders:"Zamównienia",Consultations:"Konsultacje",Events:"Wydarzenia stacjonarne",Webinars:"Webinary",Packages:"Pakiety"},Footer:{HomePage:"Strona Główna",Courses:"Kursy",Cart:"Koszyk",PoweredBy:"Powered by",UserProfile:"Twój profil"},MyProfilePage:{DownloadCertificate:"Pobierz certyfikat",InvoiceTitle:"Faktura za zamówienie nr",Invoice:"Pobierz",Archived:"Archiwalne",Upcoming:"Nadchodzące",OrdersEmpty:"Nie złożyłeś jeszcze żadnych zamówień",MyCourses:"Moje szkolenia",MyTasks:"Moje zadania",MyBookmarks:"Moje zakładki i notatki",Ascending:"Rosnąco",Descending:"Malejąco",Personal:"Osobiste",Incoming:"Zewnętrzne",ShowDone:"Pokaż skończone",HideDone:"Ukryj skończone",OrdersHistory:"Historia zakupów",Notifications:"Powiadomienia",Logout:"Wyloguj",FinishedCourses:"ukończonych kursów",TotalCertificates:"zdobytych certyfikatów",MyProgress:"Moje postępy",YourAccount:"Twoje konto",EmptyCoursesText:" Nie masz jeszcze żadnych kursów, ale dzięki naszej ofercie już dziś możesz zacząć naukę!",EmptyCoursesBtnText:" Wybierz kurs dla siebie",EmptyCoursesTitle:"Rozpocznij swój rozwój",EmptyCertificates:"Tu zobaczysz swoje certyfikaty po ukończonych kursach",RateCourse:"Oceń kurs",ResetCourseProgress:"Rozpocznij od nowa",AccessCourseExpired:"Dostęp do kursu wygasł",ShowMore:"Pokaż więcej",MyCertificates:"Moje certyfikaty",MyConsultations:"Moje konsultacje",ALlCourses:"Wszystkie kursy",InProgress:"W trakcie",Planned:"Zaplanowane",Finished:"Ukończone",Authored:"Autorskie",EditData:"Edytuj dane",MyStationaryEvents:"Moje wydarzenia stacjonarne",EmptyEventTitle:"Rozpocznij swój rozwój",EmptyEventText:"Nie masz jeszcze żadnych wydarzeń stacjonarnych, ale dzięki naszej ofercie już dziś możesz zacząć naukę!",EmptyEventsBtnText:" Wybierz wydarzenie stacjonarne dla siebie",BoughtUpcoming:"Kupione nadchodzące",BoughtArchived:"Kupione archiwalne",MyWebinars:"Moje webinaria",EmptyWebinarTitle:"Rozpocznij swój rozwój",EmptyWebinarText:"Nie masz jeszcze żadnych webinarów, ale dzięki naszej ofercie już dziś możesz zacząć naukę!",EmptyWebinarsBtnText:" Wybierz webinary dla siebie",WebinarIsStarted:"Webinar już się rozpoczął"},ResetProgressModal:{Continue:"Czy chcesz kontynuować?",WantContinue:"Chcę kontynuować",RestartCourse:"Rozpoczynając kurs od nowa stracisz dotychczasowy postęp",Cancel:"Anuluj"},Navbar:{MyProfile:"Mój profil",MyCourses:"Moje kursy",MyCertificates:"Moje certyfikaty",MyMattermostChannels:"Moje kanały mattermost",MyOrders:"Moje zamówienia",MyTasks:"Moje zadania",MyBookmarks:"Moje zakładki i notatki",MyPayments:"Płatności",EditProfile:"Edytuj dane",Logout:"Wyloguj",MyStationaryEvents:"Moje wydarzenia stacjonarne",MyConsultations:"Moje konsultacje",MyWebinars:"Moje webinaria"},Custom404Page:{NotFound:"Error 404 : Nie znaleziono strony",Info:"Strona której szukasz może być usunięta albo zmienione jej nazwę albo jest czasowo niedostępna"},Notifications:{EscolaLmsTopicFinishedTemplateEvent:"Temat zakończony",NoNotifications:"Nie masz notyfikacji",UserLogged:"Użytkownik zalogowany",list:"Lista",PermissionRoleRemoved:"Uprawnienia usunięte",PermissionRoleChanged:"Uprawnienia zmienione",CartOrderPaid:"Zamówienie w koszyku opłacone",CartOrderSuccess:"Zamówienie zakończone",PdfCreated:"PDF stworzony",SettingPackageConfigUpdated:"Zaktualizowano konfigurację pakietu",CourseTutorAssigned:"Instruktor przypisany",CourseStarted:"Kurs rozpoczęty","EscolaLms\\StationaryEvents\\Events\\StationaryEventAssigned":"Zostałeś przypisany do wydarzenia stacjonarnego {{name}}","EscolaLms\\StationaryEvents\\Events\\StationaryEventUnassigned":"Zostałeś wypisany z wydarzenia stacjonarnego {{name}}","EscolaLms\\StationaryEvents\\Events\\StationaryEventAuthorAssigned":"Zostałeś przypisany do wydarzenia stacjonarnego {{name}} jako autor","EscolaLms\\StationaryEvents\\Events\\StationaryEventAuthorUnassigned":"Zostałeś wypisany z wydarzenia stacjonarnego {{name}} jako autor","EscolaLms\\Cart\\Events\\AbandonedCartEvent":"Wyczyszczono koszyk","EscolaLms\\Cart\\Events\\OrderCancelled":"Zamówienie anulowane","EscolaLms\\Cart\\Events\\OrderCreated":"Zamówienie stworzone","EscolaLms\\Cart\\Events\\OrderPaid":"Zamówienie {{name}} zapłacone","EscolaLms\\Cart\\Events\\ProductableAttached":"Productable {{name}} attached","EscolaLms\\Cart\\Events\\ProductableDetached":"Productable {{name}} detached","EscolaLms\\Cart\\Events\\ProductAddedToCart":"Produkt {{name}} dodany do koszyka","EscolaLms\\Cart\\Events\\ProductAttached":"Produkt {{name}} dołączony","EscolaLms\\Cart\\Events\\ProductBought":"Produkt {{name}} zakupiony","EscolaLms\\Cart\\Events\\ProductDetached":"Produkt {{name}} odłączony","EscolaLms\\Cart\\Events\\ProductRemovedFromCart":"Produkt {{name}} usunięty z koszyka","EscolaLms\\Payments\\Events\\PaymentCancelled":"Płatność za produkty {{name}} na kwotę {{amount}} zł anulowana","EscolaLms\\Payments\\Events\\PaymentFailed":"Błąd płatności za produkty {{name}} na kwotę {{amount}} zł","EscolaLms\\Payments\\Events\\PaymentRegistered":"Płatność na kwotę {{amount}} zł zarejestrowana","EscolaLms\\Payments\\Events\\PaymentSuccess":"Płatność za produkty {{name}} na kwotę {{amount}} zł udana","EscolaLms\\Courses\\Events\\CourseAccessFinished":"Nie masz dostępu do kursu {{name}}","EscolaLms\\Courses\\Events\\CourseAccessStarted":"Masz dostęp do kursu {{name}}","EscolaLms\\Courses\\Events\\CourseAssigned":"Kurs {{name}} został przypisany do Ciebie","EscolaLms\\Courses\\Events\\CourseDeadlineSoon":"Kurs {{name}} zakończy się {{date}}","EscolaLms\\Courses\\Events\\CoursedPublished":"Kurs {{name}} opublikowany","EscolaLms\\Courses\\Events\\CourseFinished":"Kurs {{name}} zakończony","EscolaLms\\Courses\\Events\\CourseStarted":"Kurs {{name}} wystartował","EscolaLms\\Courses\\Events\\CourseStatusChanged":"Status kursu {{name}} zmieniony","EscolaLms\\Courses\\Events\\CourseTutorAssigned":"Zostałeś przypisany jako trener do kursu {{name}}","EscolaLms\\Courses\\Events\\CourseTutorUnassigned":"Zostałeś wypisany jako trener do kursu {{name}}","EscolaLms\\Courses\\Events\\CourseUnassigned":"Zostałeś przypisany {{name}}","EscolaLms\\Courses\\Events\\TopicFinished":"Temat kursu {{name}} zakończony","EscolaLms\\TopicTypes\\Events\\TopicTypeChanged":"Temat {{name}} zmianiony","EscolaLms\\Consultations\\Events\\ApprovedTerm":"Termin zatwierdzony {{date}}","EscolaLms\\Consultations\\Events\\ApprovedTermWithTrainer":"Termin z trenerem zatwierdzony {{date}}","EscolaLms\\Consultations\\Events\\ChangeTerm":"Termin zmieniony na {{date}}","EscolaLms\\Consultations\\Events\\RejectTerm":"Termin {{date}} odrzucony","EscolaLms\\Consultations\\Events\\RejectTermWithTrainer":"Termin z trenerem {{date}} odrzucony","EscolaLms\\Consultations\\Events\\ReminderAboutTerm":"Przypomnienie! Termin o {{date}}","EscolaLms\\Consultations\\Events\\ReminderTrainerAboutTerm":"Przypomnienie! Termin o {{date}}","EscolaLms\\Consultations\\Events\\ReportTerm":"Uytkownik {{user}} zgłosił nowy termin {{date}} na konsultacje {{name}}","EscolaLms\\Webinar\\Events\\ReminderAboutTerm":"Przypomnienie! Webinar startuje {{date}}","EscolaLms\\Webinar\\Events\\WebinarTrainerAssigned":"Trener został przypisany do webinaru","EscolaLms\\Webinar\\Events\\WebinarTrainerUnassigned":"Trener został wypisany z webinaru",ProcessVideoStarted:"Wideo zostało włączone",ProcessVideoFailed:"Błąd podczas włączania wideo","EscolaLms\\CsvUsers\\Events\\EscolaLmsImportedNewUserTemplateEvent":"Zaimportowano nowy szablon użytkownika",AssignToProduct:"Niezalogowany użytkownik został przypisany do produktu",AssignToProductable:"Niezalogowany użytkownik",FileDeleted:"Plik usunięty",FileStored:"Plik przechowywany","EscolaLms\\Settings\\Events\\SettingPackageConfigUpdated":"Pakiet ustawień został zaktualizowany","EscolaLms\\Auth\\Events\\AccountBlocked":"Konto zablokowane","EscolaLms\\Auth\\Events\\AccountConfirmed":"Konto potwierdzone","EscolaLms\\Auth\\Events\\AccountDeleted":"Konto usuniete","EscolaLms\\Auth\\Events\\AccountMustBeEnableByAdmin":"Konto musi został aktywowane przez administratora","EscolaLms\\Auth\\Events\\AccountRegistered":"Konto zarejestrowane","EscolaLms\\Auth\\Events\\ForgotPassword":"Zapomniano hasła","EscolaLms\\Auth\\Events\\Login":"Poprawnie zalogowano","EscolaLms\\Auth\\Events\\Logout":"Wylogowano","EscolaLms\\Auth\\Events\\PasswordChanged":"Hasło zmienione","EscolaLms\\Auth\\Events\\ResetPassword":"Hasło zresetowane","EscolaLms\\Auth\\Events\\UserAddedToGroup":"Zostałeś dodany do grupy","EscolaLms\\Auth\\Events\\UserRemovedFromGroup":"Zostałeś usunięty z grupy","EscolaLms\\BulkNotifications\\Events\\NotificationSent":"{{name}}",AccountConfirmed:"Konto potwierdzone",ProductAddedToCart:"Produkt dodany do koszyka",ProductRemovedFromCart:"Produkt usunięty z koszyka",ProductableAttached:"Produkt dołączony???",ProductBought:"Produkt kupiony",ProductAttached:"Produkt dołączony",OrderCreated:"Zamówienie utworzone",CreateBookmark:"Stworzono zakładkę",DeleteBookmark:"Usunięto zakładkę",Deleted:"Usunięto pomyślnie",notifications:"Powiadomienia",readAll:"Oznacz wszystkie jako przeczytane",empty:"Brak powiadomień"},Header:{Register:"Zarejestruj",Login:"Logowanie"},AcceptCheckbox:"Zaznaczając to pole, akceptujesz",PrivacyPolicy:"Politykę prywatności",TermsOfService:"Warunki usługi",EmailWasVerified:"Email został potwierdzony.",RateCourse:{Title:"Podziel się opinią o kursie",WriteComment:"Napisz komentarz",RateScale:"Oceń w skali 1 - 5",ThankYou:"Dziękujemy za wystawienie oceny",ThankYouMessage:"Twoja ocena została zapisana",OptionalComment:"Tutaj możesz napisać komentarz lub zostawić opinię (nieobowiązkowe)",SendAnswer:"Wyślij",NoAnswer:"Anuluj"},Filters:{Category:"Kategoria",Search:"Szukaj"},EventPage:{IsFinished:"Wydarzenie zakończyło się",GoToCheckout:"Do kasy",NotStarted:"Wydarzenie jeszcze się nie rozpoczęło",UnavailableEvent:"Wydarzenie niemożliwe do kupienia","30Days":"Gwarantowane 30 dni na zwrot"},CourseAccess:{RequestAccess:"Poproś o dostęp",Pending:"Wysłano prośbę"},WebinarsPage:{Webinars:"Webinary"},WebinarPage:{Webinar:"Webinar",StartDate:"Termin rozpoczęcia",EndDate:"Termin zakończenia",WebinarTags:"Tagi webinaru",CompaniesTitle:"Firmy które oferują ten webinar swoim pracownikom",ErrorWhileGeneratingUrl:"Błąd podczas generowania webinaria"},ConsultationStatus:{Unconfirmed:"Niepotwierdzona",Bought:"Kupiona",Canceled:"Odrzucona",Appointment:"Umówiona",Ended:"Zakończona",UnconfirmedInfo:"Potwierdź zaproponowany termin spotkania przez klienta lub skontaktuj się w celu ustalenie innego terminu.",AppointmentInfo:"Link do spotkania pojawi się w {{date}}"},PackagesPage:{Packages:"Pakiety"},PackagePage:{PackageIncludes:"Pakiet zawiera:",CompaniesSectionTitle:"Firmy które oferują ten pakiet swoim pracownikom",TutorsSectionTitle:"Autorzy",ProductOwned:"Przejdź do swojego profilu, aby zobaczyć elementy zakupionego pakietu.",DescriptionTitle:"Opis pakietu"},CoursePanel:{Course:"Kurs",Leave:"Wyjdź",ScheduleTitle:"Harmonogram kursu",MenuButtonAria:"Przełącz menu",FinishPage:{Congrats:"Gratulacje!",Subtitle:"Ukończyłeś właśnie kurs",Text:"Zdobyłeś certyfikat, który umożliwia Ci pracę w najlepszych firmach z całego świata",YourCertificate:"Twój certyfikat",CertificateText:"Znajdziesz go także w swoim profilu"}}}}};ta.use(tQ2).init({resources:C00,fallbackLng:"pl",interpolation:{escapeValue:!1},react:{transKeepBasicHtmlNodesFor:["br","strong","i"]}});var w2=typeof __SENTRY_DEBUG__>"u"?!0:__SENTRY_DEBUG__;function AO(t){var e=Ye().getClient(),a=t||e&&e.getOptions();return!!a&&("tracesSampleRate"in a||"tracesSampler"in a)}function NM(t){var e=t||Ye(),a=e.getScope();return a&&a.getTransaction()}function f4(t){return t/1e3}function b00(t){return t*1e3}function L00(){en("error",gU),en("unhandledrejection",gU)}function gU(){var t=NM();if(t){var e="internal_error";w2&&Bt.log("[Tracing] Transaction: "+e+" -> Global error occured"),t.setStatus(e)}}var eB="finishReason",aB=["heartbeatFailed","idleTimeout","documentHidden"],oe1=function(){function t(e){e===void 0&&(e=1e3),this.spans=[],this._maxlen=e}return t.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},t}(),B00=function(){function t(e){if(this.traceId=no(),this.spanId=no().substring(16),this.startTimestamp=il(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return t.prototype.child=function(e){return this.startChild(e)},t.prototype.startChild=function(e){var a=new t(K1(K1({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return a.spanRecorder=this.spanRecorder,a.spanRecorder&&a.spanRecorder.add(a),a.transaction=this.transaction,a},t.prototype.setTag=function(e,a){var n;return this.tags=K1(K1({},this.tags),(n={},n[e]=a,n)),this},t.prototype.setData=function(e,a){var n;return this.data=K1(K1({},this.data),(n={},n[e]=a,n)),this},t.prototype.setStatus=function(e){return this.status=e,this},t.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var a=_00(e);return a!=="unknown_error"&&this.setStatus(a),this},t.prototype.isSuccess=function(){return this.status==="ok"},t.prototype.finish=function(e){this.endTimestamp=typeof e=="number"?e:il()},t.prototype.toTraceparent=function(){var e="";return this.sampled!==void 0&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},t.prototype.toContext=function(){return N8({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},t.prototype.updateWithContext=function(e){var a,n,r,o,l;return this.data=(a=e.data,a??{}),this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=(n=e.spanId,n??this.spanId),this.startTimestamp=(r=e.startTimestamp,r??this.startTimestamp),this.status=e.status,this.tags=(o=e.tags,o??{}),this.traceId=(l=e.traceId,l??this.traceId),this},t.prototype.getTraceContext=function(){return N8({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},t.prototype.toJSON=function(){return N8({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},t}();function _00(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}var le1=function(t){$5(e,t);function e(a,n){var r=t.call(this,a)||this;return r._measurements={},r._hub=Ye(),Oi(n,EM)&&(r._hub=n),r.name=a.name||"",r.metadata=a.metadata||{},r._trimEnd=a.trimEnd,r.transaction=r,r}return e.prototype.setName=function(a){this.name=a},e.prototype.initSpanRecorder=function(a){a===void 0&&(a=1e3),this.spanRecorder||(this.spanRecorder=new oe1(a)),this.spanRecorder.add(this)},e.prototype.setMeasurements=function(a){this._measurements=K1({},a)},e.prototype.setMetadata=function(a){this.metadata=K1(K1({},this.metadata),a)},e.prototype.finish=function(a){var n=this;if(this.endTimestamp===void 0){if(this.name||(w2&&Bt.warn("Transaction has no name, falling back to ``."),this.name=""),t.prototype.finish.call(this,a),this.sampled!==!0){w2&&Bt.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var r=this._hub.getClient(),o=r&&r.getTransport&&r.getTransport();o&&o.recordLostEvent&&o.recordLostEvent("sample_rate","transaction");return}var l=this.spanRecorder?this.spanRecorder.spans.filter(function(s){return s!==n&&s.endTimestamp}):[];this._trimEnd&&l.length>0&&(this.endTimestamp=l.reduce(function(s,u){return s.endTimestamp&&u.endTimestamp?s.endTimestamp>u.endTimestamp?s:u:s}).endTimestamp);var c={contexts:{trace:this.getTraceContext()},spans:l,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata},h=Object.keys(this._measurements).length>0;return h&&(w2&&Bt.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),w2&&Bt.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(c)}},e.prototype.toContext=function(){var a=t.prototype.toContext.call(this);return N8(K1(K1({},a),{name:this.name,trimEnd:this._trimEnd}))},e.prototype.updateWithContext=function(a){var n;return t.prototype.updateWithContext.call(this,a),this.name=(n=a.name,n??""),this._trimEnd=a.trimEnd,this},e}(B00),ce1=1e3,S00=5e3,T00=function(t){$5(e,t);function e(a,n,r,o){r===void 0&&(r="");var l=t.call(this,o)||this;return l._pushActivity=a,l._popActivity=n,l.transactionSpanId=r,l}return e.prototype.add=function(a){var n=this;a.spanId!==this.transactionSpanId&&(a.finish=function(r){a.endTimestamp=typeof r=="number"?r:il(),n._popActivity(a.spanId)},a.endTimestamp===void 0&&this._pushActivity(a.spanId)),t.prototype.add.call(this,a)},e}(oe1),O00=function(t){$5(e,t);function e(a,n,r,o){r===void 0&&(r=ce1),o===void 0&&(o=!1);var l=t.call(this,a,n)||this;return l._idleHub=n,l._idleTimeout=r,l._onScope=o,l.activities={},l._heartbeatCounter=0,l._finished=!1,l._beforeFinishCallbacks=[],n&&o&&(pU(n),w2&&Bt.log("Setting idle transaction on scope. Span ID: "+l.spanId),n.configureScope(function(c){return c.setSpan(l)})),l._initTimeout=setTimeout(function(){l._finished||l.finish()},l._idleTimeout),l}return e.prototype.finish=function(a){var n,r,o=this;if(a===void 0&&(a=il()),this._finished=!0,this.activities={},this.spanRecorder){w2&&Bt.log("[Tracing] finishing IdleTransaction",new Date(a*1e3).toISOString(),this.op);try{for(var l=zo(this._beforeFinishCallbacks),c=l.next();!c.done;c=l.next()){var h=c.value;h(this,a)}}catch(s){n={error:s}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter(function(s){if(s.spanId===o.spanId)return!0;s.endTimestamp||(s.endTimestamp=a,s.setStatus("cancelled"),w2&&Bt.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(s,void 0,2)));var u=s.startTimestamp=3?(w2&&Bt.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.setTag(eB,aB[0]),this.finish()):this._pingHeartbeat()}},e.prototype._pingHeartbeat=function(){var a=this;w2&&Bt.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout(function(){a._beat()},S00)},e}(le1);function pU(t){if(t){var e=t.getScope();if(e){var a=e.getTransaction();a&&e.setSpan(void 0)}}}function A00(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function se1(t,e,a){if(!AO(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setMetadata({transactionSampling:{method:"explicitly_set"}}),t;var n;return typeof e.tracesSampler=="function"?(n=e.tracesSampler(a),t.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(n)}})):a.parentSampled!==void 0?(n=a.parentSampled,t.setMetadata({transactionSampling:{method:"inheritance"}})):(n=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:"client_rate",rate:Number(n)}})),k00(n)?n?(t.sampled=Math.random()1?(w2&&Bt.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+t+"."),!1):!0}function E00(t,e){var a=this.getClient(),n=a&&a.getOptions()||{},r=new le1(t,this);return r=se1(r,n,K1({parentSampled:t.parentSampled,transactionContext:t},e)),r.sampled&&r.initSpanRecorder(n._experiments&&n._experiments.maxSpans),r}function P00(t,e,a,n,r){var o=t.getClient(),l=o&&o.getOptions()||{},c=new O00(e,t,a,n);return c=se1(c,l,K1({parentSampled:e.parentSampled,transactionContext:e},r)),c.sampled&&c.initSpanRecorder(l._experiments&&l._experiments.maxSpans),c}function N00(){var t=l9();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=E00),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=A00))}function D00(){var t=l9();if(t.__SENTRY__){var e={mongodb:function(){var n=F3(module,"./integrations/node/mongo");return new n.Mongo},mongoose:function(){var n=F3(module,"./integrations/node/mongo");return new n.Mongo({mongoose:!0})},mysql:function(){var n=F3(module,"./integrations/node/mysql");return new n.Mysql},pg:function(){var n=F3(module,"./integrations/node/postgres");return new n.Postgres}},a=Object.keys(e).filter(function(n){return!!p10(n)}).map(function(n){try{return e[n]()}catch{return}}).filter(function(n){return n});a.length>0&&(t.__SENTRY__.integrations=Be(t.__SENTRY__.integrations||[],a))}}function R00(){N00(),cu()&&D00(),L00()}var Yd=g0();function j00(){Yd&&Yd.document?Yd.document.addEventListener("visibilitychange",function(){var t=NM();if(Yd.document.hidden&&t){var e="cancelled";w2&&Bt.log("[Tracing] Transaction: "+e+" -> since tab moved to the background, op: "+t.op),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.setTag(eB,aB[2]),t.finish()}}):w2&&Bt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var kO=function(t,e,a){var n;return function(r){e.value>=0&&(r||a)&&(e.delta=e.value-(n||0),(e.delta||n===void 0)&&(n=e.value,t(e)))}},I00=function(){return"v2-"+Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12)},EO=function(t,e){return{name:t,value:e??-1,delta:0,entries:[],id:I00()}},PO=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if(t==="first-input"&&!("PerformanceEventTiming"in self))return;var a=new PerformanceObserver(function(n){return n.getEntries().map(e)});return a.observe({type:t,buffered:!0}),a}}catch{}},DM=function(t,e){var a=function(n){(n.type==="pagehide"||g0().document.visibilityState==="hidden")&&(t(n),e&&(removeEventListener("visibilitychange",a,!0),removeEventListener("pagehide",a,!0)))};addEventListener("visibilitychange",a,!0),addEventListener("pagehide",a,!0)},F00=function(t,e){var a=EO("CLS",0),n,r=0,o=[],l=function(h){if(h&&!h.hadRecentInput){var s=o[0],u=o[o.length-1];r&&o.length!==0&&h.startTime-u.startTime<1e3&&h.startTime-s.startTime<5e3?(r+=h.value,o.push(h)):(r=h.value,o=[h]),r>a.value&&(a.value=r,a.entries=o,n&&n())}},c=PO("layout-shift",l);c&&(n=kO(t,a,e),DM(function(){c.takeRecords().map(l),n(!0)}))},Df=-1,$00=function(){return g0().document.visibilityState==="hidden"?0:1/0},U00=function(){DM(function(t){var e=t.timeStamp;Df=e},!0)},NO=function(){return Df<0&&(Df=$00(),U00()),{get firstHiddenTime(){return Df}}},W00=function(t,e){var a=NO(),n=EO("FID"),r,o=function(c){r&&c.startTime=e.startTimestamp)){var h=a._measurements[c].value,s=l+f4(h),u=Math.abs((s-e.startTimestamp)*1e3),v=u-h;w2&&Bt.log("[Measurements] Normalized "+c+" from "+h+" to "+u+" ("+v+")"),a._measurements[c].value=u}}),this._measurements["mark.fid"]&&this._measurements.fid&&Bc(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+f4(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,e.setMeasurements(this._measurements),X00(e,this._lcpEntry,this._clsEntry),e.setTag("sentry_reportAllChanges",this._reportAllChanges)}}},t.prototype._trackNavigator=function(e){var a=dr.navigator;if(a){var n=a.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Qd(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),Qd(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),Qd(a.deviceMemory)&&e.setTag("deviceMemory",String(a.deviceMemory)),Qd(a.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(a.hardwareConcurrency))}},t.prototype._trackCLS=function(){var e=this;F00(function(a){var n=a.entries.pop();n&&(w2&&Bt.log("[Measurements] Adding CLS"),e._measurements.cls={value:a.value},e._clsEntry=n)})},t.prototype._trackLCP=function(){var e=this;q00(function(a){var n=a.entries.pop();if(n){var r=f4(p7),o=f4(n.startTime);w2&&Bt.log("[Measurements] Adding LCP"),e._measurements.lcp={value:a.value},e._measurements["mark.lcp"]={value:r+o},e._lcpEntry=n}},this._reportAllChanges)},t.prototype._trackFID=function(){var e=this;W00(function(a){var n=a.entries.pop();if(n){var r=f4(p7),o=f4(n.startTime);w2&&Bt.log("[Measurements] Adding FID"),e._measurements.fid={value:a.value},e._measurements["mark.fid"]={value:r+o}}})},t}();function K00(t,e,a){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(function(n){Zd(t,e,n,a)}),Zd(t,e,"secureConnection",a,"TLS/SSL","connectEnd"),Zd(t,e,"fetch",a,"cache","domainLookupStart"),Zd(t,e,"domainLookup",a,"DNS"),Q00(t,e,a)}function Y00(t,e,a,n,r){var o=r+a,l=o+n;return Bc(t,{description:e.name,endTimestamp:l,op:e.entryType,startTimestamp:o}),o}function Z00(t,e,a,n,r,o){if(!(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")){var l={};"transferSize"in e&&(l["Transfer Size"]=e.transferSize),"encodedBodySize"in e&&(l["Encoded Body Size"]=e.encodedBodySize),"decodedBodySize"in e&&(l["Decoded Body Size"]=e.decodedBodySize);var c=o+n,h=c+r;Bc(t,{description:a,endTimestamp:h,op:e.initiatorType?"resource."+e.initiatorType:"resource",startTimestamp:c,data:l})}}function Zd(t,e,a,n,r,o){var l=o?e[o]:e[a+"End"],c=e[a+"Start"];!c||!l||Bc(t,{op:"browser",description:r??a,startTimestamp:n+f4(c),endTimestamp:n+f4(l)})}function Q00(t,e,a){Bc(t,{op:"browser",description:"request",startTimestamp:a+f4(e.requestStart),endTimestamp:a+f4(e.responseEnd)}),Bc(t,{op:"browser",description:"response",startTimestamp:a+f4(e.responseStart),endTimestamp:a+f4(e.responseEnd)})}function Bc(t,e){var a=e.startTimestamp,n=d10(e,["startTimestamp"]);return a&&t.startTimestamp>a&&(t.startTimestamp=a),t.startChild(K1({startTimestamp:a},n))}function Qd(t){return typeof t=="number"&&isFinite(t)}function X00(t,e,a){e&&(w2&&Bt.log("[Measurements] Adding LCP Data"),e.element&&t.setTag("lcp.element",ih(e.element)),e.id&&t.setTag("lcp.id",e.id),e.url&&t.setTag("lcp.url",e.url.trim().slice(0,200)),t.setTag("lcp.size",e.size)),a&&a.sources&&(w2&&Bt.log("[Measurements] Adding CLS Data"),a.sources.forEach(function(n,r){return t.setTag("cls.source."+(r+1),ih(n.node))}))}var J00=["localhost",/^\//],Cp={traceFetch:!0,traceXHR:!0,tracingOrigins:J00};function te0(t){var e=K1(K1({},Cp),t),a=e.traceFetch,n=e.traceXHR,r=e.tracingOrigins,o=e.shouldCreateSpanForRequest,l={},c=function(u){if(l[u])return l[u];var v=r;return l[u]=v.some(function(f){return oh(u,f)})&&!oh(u,"sentry_key"),l[u]},h=c;typeof o=="function"&&(h=function(u){return c(u)&&o(u)});var s={};a&&en("fetch",function(u){ee0(u,h,s)}),n&&en("xhr",function(u){ae0(u,h,s)})}function ee0(t,e,a){if(!(!AO()||!(t.fetchData&&e(t.fetchData.url)))){if(t.endTimestamp){var n=t.fetchData.__span;if(!n)return;var r=a[n];r&&(t.response?r.setHttpStatus(t.response.status):t.error&&r.setStatus("internal_error"),r.finish(),delete a[n]);return}var o=NM();if(o){var r=o.startChild({data:K1(K1({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http.client"});t.fetchData.__span=r.spanId,a[r.spanId]=r;var l=t.args[0]=t.args[0],c=t.args[1]=t.args[1]||{},h=c.headers;Oi(l,Request)&&(h=l.headers),h?typeof h.append=="function"?h.append("sentry-trace",r.toTraceparent()):Array.isArray(h)?h=Be(h,[["sentry-trace",r.toTraceparent()]]):h=K1(K1({},h),{"sentry-trace":r.toTraceparent()}):h={"sentry-trace":r.toTraceparent()},c.headers=h}}}function ae0(t,e,a){if(!(!AO()||t.xhr&&t.xhr.__sentry_own_request__||!(t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)))){var n=t.xhr.__sentry_xhr__;if(t.endTimestamp){var r=t.xhr.__sentry_xhr_span_id__;if(!r)return;var o=a[r];o&&(o.setHttpStatus(n.status_code),o.finish(),delete a[r]);return}var l=NM();if(l){var o=l.startChild({data:K1(K1({},n.data),{type:"xhr",method:n.method,url:n.url}),description:n.method+" "+n.url,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=o.spanId,a[t.xhr.__sentry_xhr_span_id__]=o,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",o.toTraceparent())}catch{}}}}var m7=g0();function ne0(t,e,a){if(e===void 0&&(e=!0),a===void 0&&(a=!0),!m7||!m7.location){w2&&Bt.warn("Could not initialize routing instrumentation due to invalid location");return}var n=m7.location.href,r;e&&(r=t({name:m7.location.pathname,op:"pageload"})),a&&en("history",function(o){var l=o.to,c=o.from;if(c===void 0&&n&&n.indexOf(l)!==-1){n=void 0;return}c!==l&&(n=void 0,r&&(w2&&Bt.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=t({name:m7.location.pathname,op:"navigation"}))})}var re0=600,ie0=K1({idleTimeout:ce1,markBackgroundTransactions:!0,maxTransactionDuration:re0,routingInstrumentation:ne0,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},Cp),oe0=function(){function t(e){this.name=t.id,this._configuredIdleTimeout=void 0;var a=Cp.tracingOrigins;e&&(this._configuredIdleTimeout=e.idleTimeout,e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&e.tracingOrigins.length!==0?a=e.tracingOrigins:w2&&(this._emitOptionsWarning=!0)),this.options=K1(K1(K1({},ie0),e),{tracingOrigins:a});var n=this.options._metricOptions;this._metrics=new G00(n&&n._reportAllChanges)}return t.prototype.setupOnce=function(e,a){var n=this;this._getCurrentHub=a,this._emitOptionsWarning&&(w2&&Bt.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),w2&&Bt.warn("[Tracing] We added a reasonable default for you: "+Cp.tracingOrigins));var r=this.options,o=r.routingInstrumentation,l=r.startTransactionOnLocationChange,c=r.startTransactionOnPageLoad,h=r.markBackgroundTransactions,s=r.traceFetch,u=r.traceXHR,v=r.tracingOrigins,f=r.shouldCreateSpanForRequest;o(function(d){return n._createRouteTransaction(d)},c,l),h&&j00(),te0({traceFetch:s,traceXHR:u,tracingOrigins:v,shouldCreateSpanForRequest:f})},t.prototype._createRouteTransaction=function(e){var a=this;if(!this._getCurrentHub){w2&&Bt.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.");return}var n=this.options,r=n.beforeNavigate,o=n.idleTimeout,l=n.maxTransactionDuration,c=e.op==="pageload"?le0():void 0,h=K1(K1(K1({},e),c),{trimEnd:!0}),s=typeof r=="function"?r(h):h,u=s===void 0?K1(K1({},h),{sampled:!1}):s;u.sampled===!1&&w2&&Bt.log("[Tracing] Will not send "+u.op+" transaction because of beforeNavigate."),w2&&Bt.log("[Tracing] Starting "+u.op+" transaction on scope");var v=this._getCurrentHub(),f=g0().location,d=P00(v,u,o,!0,{location:f});return d.registerBeforeFinishCallback(function(M,g){a._metrics.addPerformanceEntries(M),se0(b00(l),M,g)}),d.setTag("idleTimeout",this._configuredIdleTimeout),d},t.id="BrowserTracing",t}();function le0(){var t=ce0("sentry-trace");if(t)return ht0(t)}function ce0(t){var e=g0().document.querySelector("meta[name="+t+"]");return e?e.getAttribute("content"):null}function se0(t,e,a){var n=a-e.startTimestamp,r=a&&(n>t||n<0);r&&(e.setStatus("deadline_exceeded"),e.setTag("maxTransactionDurationExceeded","true"))}R00();const zU=window.VITE_APP_SENTRYDSN||"https://1abed5b3f95e41be8e1c39c33af12506@sentry.etd24.pl/96";function he0(){return zU&&window.location.hostname.indexOf("localhost")===-1&&n00({dsn:zU,integrations:[new oe0],tracesSampleRate:1}),null}he0();const MU=window.VITE_APP_API_URL||"https://api-stage.escolalms.com";V00.load({google:{families:["Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700;1,800"]}});FV.createRoot(document.getElementById("root")).render(I.jsx(W1.StrictMode,{children:MU?I.jsx(ic.EscolaLMSContextProvider,{apiUrl:MU,initialFetch:!1,children:I.jsx(we.GlobalThemeProvider,{children:I.jsx(y00,{})})}):I.jsx("pre",{children:"error `process.env.VITE_APP_PUBLIC_API_URL || window.VITE_APP_API_URL` not set"})}));export{Qe1 as $,Q0 as A,HZ as B,z01 as C,y4 as D,ve0 as E,L_ as F,IB1 as G,Ee0 as H,WL as I,Qm as J,Qe0 as K,pf as L,x01 as M,Ue0 as N,We0 as O,ut as P,Ye0 as Q,V8 as R,_h as S,$a as T,Ge0 as U,HJ2 as V,x40 as W,N_ as X,wA1 as Y,iX2 as Z,Zt as _,$8 as a,gJ2 as a$,JK as a0,$e0 as a1,X2 as a2,ye as a3,wa as a4,St as a5,Pt as a6,HJ as a7,zh as a8,bl as a9,je0 as aA,Ie0 as aB,e40 as aC,Fe0 as aD,b40 as aE,kJ as aF,w91 as aG,we as aH,Ml as aI,TJ2 as aJ,ge0 as aK,pe0 as aL,dS1 as aM,wJ as aN,rZ as aO,oY2 as aP,l40 as aQ,o40 as aR,n40 as aS,a40 as aT,r40 as aU,i40 as aV,sY2 as aW,De0 as aX,V40 as aY,Ne0 as aZ,C40 as a_,js as aa,Ph as ab,Om as ac,iS1 as ad,MU as ae,zd1 as af,Rs as ag,yd1 as ah,pr as ai,Ke0 as aj,NL1 as ak,ES1 as al,kS1 as am,Tm as an,B11 as ao,LB1 as ap,y40 as aq,qe0 as ar,t40 as as,Je0 as at,Pe0 as au,_Y as av,lj1 as aw,ze0 as ax,ke0 as ay,Re0 as az,W1 as b,T$ as b$,w40 as b0,H40 as b1,TS1 as b2,c40 as b3,h40 as b4,u40 as b5,vO1 as b6,E2 as b7,Yh as b8,V11 as b9,hE1 as bA,gM as bB,hk1 as bC,A1 as bD,fc as bE,Uk1 as bF,Kk1 as bG,Zk1 as bH,Zn as bI,dM as bJ,jT as bK,Xs as bL,j11 as bM,N11 as bN,D11 as bO,Oh as bP,wO1 as bQ,EA1 as bR,DT as bS,f11 as bT,yi as bU,lp as bV,cs as bW,r11 as bX,n11 as bY,LT as bZ,A$ as b_,HO1 as ba,fM as bb,rO1 as bc,M11 as bd,x11 as be,Ci as bf,UT as bg,Yk1 as bh,mL as bi,oM as bj,$11 as bk,cE1 as bl,_T as bm,XT1 as bn,nO1 as bo,gc as bp,BT as bq,Jk1 as br,uE1 as bs,a11 as bt,y5 as bu,NT as bv,tY as bw,A11 as bx,jk1 as by,lO1 as bz,se as c,Me0 as c0,M40 as c1,z40 as c2,m40 as c3,p40 as c4,d40 as c5,e_1 as c6,g40 as c7,f40 as c8,me0 as c9,aO as cA,D9 as cB,X_ as cC,s40 as cD,Zs as cE,Ze0 as cF,C71 as cG,x2 as ca,v40 as cb,aS as cc,r0 as cd,Ne as ce,Xh as cf,Qz as cg,Xe0 as ch,yE1 as ci,sr1 as cj,J2 as ck,E5 as cl,$s1 as cm,t9 as cn,de0 as co,ue0 as cp,hL1 as cq,w0 as cr,qJ as cs,A_1 as ct,hd1 as cu,$L1 as cv,Gs1 as cw,VJ as cx,AS1 as cy,XK as cz,b as d,fe0 as e,r9 as f,R0 as g,ic as h,i61 as i,I as j,KG as k,e0 as l,b6 as m,On as n,_J2 as o,oj1 as p,ma as q,_ as r,S0 as s,tS as t,GK as u,Oe as v,Vi as w,pS as x,Aa as y,ij1 as z}; diff --git a/assets/index-CNWnSQtH.js b/assets/index-ChYtYKq8.js similarity index 89% rename from assets/index-CNWnSQtH.js rename to assets/index-ChYtYKq8.js index cc91f6b5..8114efb1 100644 --- a/assets/index-CNWnSQtH.js +++ b/assets/index-ChYtYKq8.js @@ -1,4 +1,4 @@ -import{b,r as i,h as w,k as v,i as S,j as e,q as C,n as u,f as E,T as P,X as F,S as N,w as j,D as T,o as $,C as k}from"./index-Bjk_45MO.js";import{q as f}from"./base-C7euzKDi.js";import{C as _}from"./index-ByFOh-xS.js";import{C as H}from"./index-BuYk4f7o.js";import{F as L,S as M}from"./index-CTPFDqdg.js";import{E as q}from"./index-CP1FcWBB.js";import{P as R}from"./index-DXgEk6c6.js";import"./swiper-react-CO9r4Bsk.js";import"./ResponsiveImage-wYxl3kWJ.js";import"./index-DdavEOvA.js";import"./index-D0XQwhQb.js";import"./index-BNTGN6Sw.js";const g=b.createContext({}),y=(a={})=>f.stringify(a),I=({children:a})=>{const{fetchStationaryEvents:r,stationaryEvents:s,fetchCategories:t}=i.useContext(w.EscolaLMSContext),n=v(),{push:c}=S();i.useEffect(()=>{t()},[]);const[o,p]=i.useState(),m=(l={})=>({page:1,per_page:8,...l});return i.useEffect(()=>{c(`${n.pathname}?${y(o)}`)},[o,n.pathname]),i.useEffect(()=>{if(n.search&&n.search.split("?")[1]!==y(o)){const l=f.parse(n.search);p(l),r(l||{})}else r(m(o))},[n.search]),e.jsx(g.Provider,{value:{params:o,setParams:p,events:s},children:a})},O=({children:a})=>{const r=C("div")` +import{b,r as i,h as w,k as v,i as S,j as e,q as C,n as u,f as E,T as P,X as F,S as N,w as j,D as T,o as $,C as k}from"./index-Cei2V9tG.js";import{q as f}from"./base-C7euzKDi.js";import{C as _}from"./index-DOGb0VTY.js";import{C as H}from"./index-CYw4wuOQ.js";import{F as L,S as M}from"./index-Cxw7wvGU.js";import{E as q}from"./index-DH8pK4Ov.js";import{P as R}from"./index-CULsm7V8.js";import"./swiper-react-Dxth3Uzi.js";import"./ResponsiveImage-CUm6fM86.js";import"./index-CO3xj3k-.js";import"./index-BxtluS5u.js";import"./index-KwSvHpAm.js";const g=b.createContext({}),y=(a={})=>f.stringify(a),I=({children:a})=>{const{fetchStationaryEvents:r,stationaryEvents:s,fetchCategories:t}=i.useContext(w.EscolaLMSContext),n=v(),{push:c}=S();i.useEffect(()=>{t()},[]);const[o,p]=i.useState(),m=(l={})=>({page:1,per_page:8,...l});return i.useEffect(()=>{c(`${n.pathname}?${y(o)}`)},[o,n.pathname]),i.useEffect(()=>{if(n.search&&n.search.split("?")[1]!==y(o)){const l=f.parse(n.search);p(l),r(l||{})}else r(m(o))},[n.search]),e.jsx(g.Provider,{value:{params:o,setParams:p,events:s},children:a})},O=({children:a})=>{const r=C("div")` background: ${({theme:t})=>t.primaryColor}; padding: ${u?"60px 20px 20px 20px":"140px 40px 30px"}; margin-bottom: ${u?"100px":"40px"}; diff --git a/assets/index-D1KheDiE.js b/assets/index-Cm0iCbGi.js similarity index 91% rename from assets/index-D1KheDiE.js rename to assets/index-Cm0iCbGi.js index 3affd5b7..62537db6 100644 --- a/assets/index-D1KheDiE.js +++ b/assets/index-Cm0iCbGi.js @@ -1,4 +1,4 @@ -import{q as a,n as j,j as r,s as d,aq as l}from"./index-Bjk_45MO.js";const o=a.div` +import{q as a,n as j,j as r,s as d,aq as l}from"./index-Cei2V9tG.js";const o=a.div` display: flex; flex-direction: column; diff --git a/assets/index-3y6ZJfCp.js b/assets/index-CofAvDv9.js similarity index 84% rename from assets/index-3y6ZJfCp.js rename to assets/index-CofAvDv9.js index d0ab0f35..bfb05043 100644 --- a/assets/index-3y6ZJfCp.js +++ b/assets/index-CofAvDv9.js @@ -1,4 +1,4 @@ -import{cy as R,q as S,i as _,f,j as r,n as l,L as t,T as d,w as x}from"./index-Bjk_45MO.js";import{C as n}from"./index-DdavEOvA.js";import{R as g}from"./ResponsiveImage-wYxl3kWJ.js";import{C as h}from"./index-BNTGN6Sw.js";import{S as v}from"./swiper-react-CO9r4Bsk.js";import{P as j}from"./index-D1KheDiE.js";import{S as N}from"./swiper-B3oKVkBy.js";var u=R();const b=S.div` +import{cy as R,q as S,i as _,f,j as r,n as l,L as t,T as d,w as x}from"./index-Cei2V9tG.js";import{C as n}from"./index-CO3xj3k-.js";import{R as g}from"./ResponsiveImage-CUm6fM86.js";import{C as h}from"./index-KwSvHpAm.js";import{S as v}from"./swiper-react-Dxth3Uzi.js";import{P as j}from"./index-Cm0iCbGi.js";import{S as N}from"./swiper-B0_gRAjE.js";var u=R();const b=S.div` .swiper { padding: 7px 10px; margin: 0px -15px; diff --git a/assets/index-DFxyMfM2.js b/assets/index-Csz5cVZF.js similarity index 96% rename from assets/index-DFxyMfM2.js rename to assets/index-Csz5cVZF.js index 869f3cc9..1d8a9b5b 100644 --- a/assets/index-DFxyMfM2.js +++ b/assets/index-Csz5cVZF.js @@ -1,4 +1,4 @@ -import{q as t,X as l,r as n,j as e,cD as d,s as c,ai as m,I as x}from"./index-Bjk_45MO.js";const f=t.div` +import{q as t,X as l,r as n,j as e,cD as d,s as c,ai as m,I as x}from"./index-Cei2V9tG.js";const f=t.div` display: flex; flex-direction: column; diff --git a/assets/index-CTPFDqdg.js b/assets/index-Cxw7wvGU.js similarity index 97% rename from assets/index-CTPFDqdg.js rename to assets/index-Cxw7wvGU.js index bdb33750..89ec0880 100644 --- a/assets/index-CTPFDqdg.js +++ b/assets/index-Cxw7wvGU.js @@ -1,4 +1,4 @@ -import{aM as b,g as l,f as h,j as e,q as m,n,an as u,r as x,D as y,s as k,Q as j}from"./index-Bjk_45MO.js";var w=b();const C=l(w),v=({onSubmit:a})=>{const{t}=h();return e.jsx(C,{placeholder:t("Filters.Search"),onSubmit:a})},S=m("div")` +import{aM as b,g as l,f as h,j as e,q as m,n,an as u,r as x,D as y,s as k,Q as j}from"./index-Cei2V9tG.js";var w=b();const C=l(w),v=({onSubmit:a})=>{const{t}=h();return e.jsx(C,{placeholder:t("Filters.Search"),onSubmit:a})},S=m("div")` display: flex; .tags-list { diff --git a/assets/index-BMKx56cF.js b/assets/index-D-BQVsc5.js similarity index 95% rename from assets/index-BMKx56cF.js rename to assets/index-D-BQVsc5.js index 521b7e1d..0df895b9 100644 --- a/assets/index-BMKx56cF.js +++ b/assets/index-D-BQVsc5.js @@ -1 +1 @@ -import{b as o}from"./index-Bjk_45MO.js";const C=o.createContext({}),x=!0;function N({baseColor:i,highlightColor:l,width:s,height:a,borderRadius:r,circle:y,direction:m,duration:c,enableAnimation:f=x}){const e={};return m==="rtl"&&(e["--animation-direction"]="reverse"),typeof c=="number"&&(e["--animation-duration"]=`${c}s`),f||(e["--pseudo-element-display"]="none"),(typeof s=="string"||typeof s=="number")&&(e.width=s),(typeof a=="string"||typeof a=="number")&&(e.height=a),(typeof r=="string"||typeof r=="number")&&(e.borderRadius=r),y&&(e.borderRadius="50%"),typeof i<"u"&&(e["--base-color"]=i),typeof l<"u"&&(e["--highlight-color"]=l),e}function A({count:i=1,wrapper:l,className:s,containerClassName:a,containerTestId:r,circle:y=!1,style:m,...c}){var f,e,u;const O=o.useContext(C),v={...c};for(const[t,n]of Object.entries(c))typeof n>"u"&&delete v[t];const d={...O,...v,circle:y},$={...m,...N(d)};let h="react-loading-skeleton";s&&(h+=` ${s}`);const g=(f=d.inline)!==null&&f!==void 0?f:!1,p=[],b=Math.ceil(i);for(let t=0;ti&&t===b-1){const k=(e=n.width)!==null&&e!==void 0?e:"100%",S=i%1,w=typeof k=="number"?k*S:`calc(${k} * ${S})`;n={...n,width:w}}const E=o.createElement("span",{className:h,style:n,key:t},"‌");g?p.push(E):p.push(o.createElement(o.Fragment,{key:t},E,o.createElement("br",null)))}return o.createElement("span",{className:a,"data-testid":r,"aria-live":"polite","aria-busy":(u=d.enableAnimation)!==null&&u!==void 0?u:x},l?p.map((t,n)=>o.createElement(l,{key:n},t)):p)}export{A as S}; +import{b as o}from"./index-Cei2V9tG.js";const C=o.createContext({}),x=!0;function N({baseColor:i,highlightColor:l,width:s,height:a,borderRadius:r,circle:y,direction:m,duration:c,enableAnimation:f=x}){const e={};return m==="rtl"&&(e["--animation-direction"]="reverse"),typeof c=="number"&&(e["--animation-duration"]=`${c}s`),f||(e["--pseudo-element-display"]="none"),(typeof s=="string"||typeof s=="number")&&(e.width=s),(typeof a=="string"||typeof a=="number")&&(e.height=a),(typeof r=="string"||typeof r=="number")&&(e.borderRadius=r),y&&(e.borderRadius="50%"),typeof i<"u"&&(e["--base-color"]=i),typeof l<"u"&&(e["--highlight-color"]=l),e}function A({count:i=1,wrapper:l,className:s,containerClassName:a,containerTestId:r,circle:y=!1,style:m,...c}){var f,e,u;const O=o.useContext(C),v={...c};for(const[t,n]of Object.entries(c))typeof n>"u"&&delete v[t];const d={...O,...v,circle:y},$={...m,...N(d)};let h="react-loading-skeleton";s&&(h+=` ${s}`);const g=(f=d.inline)!==null&&f!==void 0?f:!1,p=[],b=Math.ceil(i);for(let t=0;ti&&t===b-1){const k=(e=n.width)!==null&&e!==void 0?e:"100%",S=i%1,w=typeof k=="number"?k*S:`calc(${k} * ${S})`;n={...n,width:w}}const E=o.createElement("span",{className:h,style:n,key:t},"‌");g?p.push(E):p.push(o.createElement(o.Fragment,{key:t},E,o.createElement("br",null)))}return o.createElement("span",{className:a,"data-testid":r,"aria-live":"polite","aria-busy":(u=d.enableAnimation)!==null&&u!==void 0?u:x},l?p.map((t,n)=>o.createElement(l,{key:n},t)):p)}export{A as S}; diff --git a/assets/index-Cpuo6Yf1.js b/assets/index-D7izAFJ6.js similarity index 94% rename from assets/index-Cpuo6Yf1.js rename to assets/index-D7izAFJ6.js index 61a6e106..8caaf7dc 100644 --- a/assets/index-Cpuo6Yf1.js +++ b/assets/index-D7izAFJ6.js @@ -1,4 +1,4 @@ -import{q as i,r as l,D as c,j as t,s as r,ad as m,T as x,n as p,ae as d,L as g}from"./index-Bjk_45MO.js";import{a as h}from"./ResponsiveImage-wYxl3kWJ.js";const j=i.div` +import{q as i,r as l,D as c,j as t,s as r,ad as m,T as x,n as p,ae as d,L as g}from"./index-Cei2V9tG.js";import{a as h}from"./ResponsiveImage-CUm6fM86.js";const j=i.div` .section-companies { display: flex; justify-content: flex-start; diff --git a/assets/index-DChyWzfC.js b/assets/index-DA8lSG7O.js similarity index 90% rename from assets/index-DChyWzfC.js rename to assets/index-DA8lSG7O.js index 8c210f2a..a73372fc 100644 --- a/assets/index-DChyWzfC.js +++ b/assets/index-DA8lSG7O.js @@ -1,4 +1,4 @@ -import{q as j,n as m,f as x,i as E,j as e,T as P,s as v,v as f,l as b,w as c,r as a,D as M,Z as w,h as S}from"./index-Bjk_45MO.js";import{T as k}from"./Tabs-DeLQ6nIG.js";import{E as p}from"./index-CP1FcWBB.js";import{P as C}from"./index-CaBsIUEq.js";import"./ResponsiveImage-wYxl3kWJ.js";import"./index-DdavEOvA.js";import"./index-D0XQwhQb.js";import"./index-BNTGN6Sw.js";import"./index-waE41t0D.js";const T=j.div` +import{q as j,n as m,f as x,i as E,j as e,T as P,s as v,v as f,l as b,w as c,r as a,D as M,Z as w,h as S}from"./index-Cei2V9tG.js";import{T as k}from"./Tabs-DXnc7TjY.js";import{E as p}from"./index-DH8pK4Ov.js";import{P as C}from"./index-BstSZKJJ.js";import"./ResponsiveImage-CUm6fM86.js";import"./index-CO3xj3k-.js";import"./index-BxtluS5u.js";import"./index-KwSvHpAm.js";import"./index-CAbbcEiW.js";const T=j.div` display: flex; justify-content: center; align-items: center; diff --git a/assets/index-CP1FcWBB.js b/assets/index-DH8pK4Ov.js similarity index 78% rename from assets/index-CP1FcWBB.js rename to assets/index-DH8pK4Ov.js index 9231edf4..cd127ce6 100644 --- a/assets/index-CP1FcWBB.js +++ b/assets/index-DH8pK4Ov.js @@ -1 +1 @@ -import{i as m,f as l,j as s,G as x,n as g,L as e,ax as u,aK as d,aL as c,U as j,aC as p}from"./index-Bjk_45MO.js";import{a as h}from"./ResponsiveImage-wYxl3kWJ.js";import{C}from"./index-DdavEOvA.js";import{T as $}from"./index-D0XQwhQb.js";import{C as f}from"./index-BNTGN6Sw.js";const y=({event:a,actions:n})=>{var i;const o=m(),{t:r}=l();return s.jsx(x,{id:a.id,mobile:g,image:s.jsx(e,{to:`/event/${a.id}`,"aria-label":a.name,children:a.image_path?s.jsx(h,{path:a.image_path,alt:a.name,srcSizes:[300,600,900]}):s.jsx(C,{})}),title:s.jsx(e,{to:`/event/${a.id}`,className:"title",children:s.jsx(u,{level:4,as:"h2",children:a.name})}),categories:s.jsx(f,{categories:a.categories,onCategoryClick:t=>{o.push(`/events/?categories[]=${t}`)}}),tags:s.jsx($,{tags:((i=a.product)==null?void 0:i.tags)||[],onTagClick:t=>o.push(`/events/?tag=${t}`)}),actions:n??s.jsx(s.Fragment,{children:s.jsx(d,{mode:"secondary",onClick:()=>o.push(`/event/${a.id}`),children:r("StartNow")})}),footer:s.jsxs(s.Fragment,{children:[a.users_count&&a.users_count>0?s.jsx(c,{icon:s.jsx(j,{}),text:`${a.users_count} ${r("Students")}`}):""," ",!!a.place&&s.jsx(c,{icon:s.jsx(p,{}),text:`${a.place}`})]})})};export{y as E}; +import{i as m,f as l,j as s,G as x,n as g,L as e,ax as u,aK as d,aL as c,U as j,aC as p}from"./index-Cei2V9tG.js";import{a as h}from"./ResponsiveImage-CUm6fM86.js";import{C}from"./index-CO3xj3k-.js";import{T as $}from"./index-BxtluS5u.js";import{C as f}from"./index-KwSvHpAm.js";const y=({event:a,actions:n})=>{var i;const o=m(),{t:r}=l();return s.jsx(x,{id:a.id,mobile:g,image:s.jsx(e,{to:`/event/${a.id}`,"aria-label":a.name,children:a.image_path?s.jsx(h,{path:a.image_path,alt:a.name,srcSizes:[300,600,900]}):s.jsx(C,{})}),title:s.jsx(e,{to:`/event/${a.id}`,className:"title",children:s.jsx(u,{level:4,as:"h2",children:a.name})}),categories:s.jsx(f,{categories:a.categories,onCategoryClick:t=>{o.push(`/events/?categories[]=${t}`)}}),tags:s.jsx($,{tags:((i=a.product)==null?void 0:i.tags)||[],onTagClick:t=>o.push(`/events/?tag=${t}`)}),actions:n??s.jsx(s.Fragment,{children:s.jsx(d,{mode:"secondary",onClick:()=>o.push(`/event/${a.id}`),children:r("StartNow")})}),footer:s.jsxs(s.Fragment,{children:[a.users_count&&a.users_count>0?s.jsx(c,{icon:s.jsx(j,{}),text:`${a.users_count} ${r("Students")}`}):""," ",!!a.place&&s.jsx(c,{icon:s.jsx(p,{}),text:`${a.place}`})]})})};export{y as E}; diff --git a/assets/index-BpFjqcUG.js b/assets/index-DHO1RnCU.js similarity index 96% rename from assets/index-BpFjqcUG.js rename to assets/index-DHO1RnCU.js index d2eb2db0..58cc1f26 100644 --- a/assets/index-BpFjqcUG.js +++ b/assets/index-DHO1RnCU.js @@ -1,4 +1,4 @@ -import{b as Y,E as K,r as o,h as L,j as e,D as m,f as h,L as A,l as v,s as p,q as E,w as x,ax as S,n as C,ay as b,az as Q,aA as Z,aB as ee,ai as te,i as se,Y as q,T as u,v as j,J as N,aC as ie,aD as ae,N as re,aq as z,ad as ne,ae as oe,ak as le,aE as de,X as ce,aF as xe,av as me,o as pe,C as ue}from"./index-Bjk_45MO.js";import{P as he}from"./index-DyNx7jEp.js";import{B as ge}from"./index-DNvp70I6.js";import{a as W}from"./ResponsiveImage-wYxl3kWJ.js";import{P as X}from"./PricingCard-4UWE4R3V.js";import{P as je}from"./index-D1KheDiE.js";import{D as Ee}from"./index-Bbp3FiD2.js";import{C as _}from"./index-ByR6k3wq.js";import{E as w}from"./index-CP1FcWBB.js";import"./index-DdavEOvA.js";import"./index-D0XQwhQb.js";import"./index-BNTGN6Sw.js";const ve=Y.createContext({}),Ce=({children:t})=>{const{id:s}=K(),{fetchStationaryEvent:i}=o.useContext(L.EscolaLMSContext);return o.useEffect(()=>{s&&i(Number(s))},[i,s]),e.jsx(ve.Provider,{value:{},children:t})},fe=()=>{const{stationaryEvent:t}=o.useContext(m.EscolaLMSContext),{t:s}=h();return t.value?e.jsx(ge,{items:[e.jsx(A,{to:v.home,children:s("Home")}),e.jsx(A,{to:v.events,children:s("Menu.Events")}),e.jsx(p.Text,{size:"12",children:t.value.name})]}):null},be=E.div` +import{b as Y,E as K,r as o,h as L,j as e,D as m,f as h,L as A,l as v,s as p,q as E,w as x,ax as S,n as C,ay as b,az as Q,aA as Z,aB as ee,ai as te,i as se,Y as q,T as u,v as j,J as N,aC as ie,aD as ae,N as re,aq as z,ad as ne,ae as oe,ak as le,aE as de,X as ce,aF as xe,av as me,o as pe,C as ue}from"./index-Cei2V9tG.js";import{P as he}from"./index-C98yo6RU.js";import{B as ge}from"./index-rOJCcL2u.js";import{a as W}from"./ResponsiveImage-CUm6fM86.js";import{P as X}from"./PricingCard-YjgD6nmP.js";import{P as je}from"./index-Cm0iCbGi.js";import{D as Ee}from"./index-B089I9zC.js";import{C as _}from"./index-DOgv2ATl.js";import{E as w}from"./index-DH8pK4Ov.js";import"./index-CO3xj3k-.js";import"./index-BxtluS5u.js";import"./index-KwSvHpAm.js";const ve=Y.createContext({}),Ce=({children:t})=>{const{id:s}=K(),{fetchStationaryEvent:i}=o.useContext(L.EscolaLMSContext);return o.useEffect(()=>{s&&i(Number(s))},[i,s]),e.jsx(ve.Provider,{value:{},children:t})},fe=()=>{const{stationaryEvent:t}=o.useContext(m.EscolaLMSContext),{t:s}=h();return t.value?e.jsx(ge,{items:[e.jsx(A,{to:v.home,children:s("Home")}),e.jsx(A,{to:v.events,children:s("Menu.Events")}),e.jsx(p.Text,{size:"12",children:t.value.name})]}):null},be=E.div` .event-main-info { .image-wrapper { @media (max-width: 991px) { diff --git a/assets/index-mJ2TXSRS.js b/assets/index-DIPzAhbE.js similarity index 92% rename from assets/index-mJ2TXSRS.js rename to assets/index-DIPzAhbE.js index c74df28d..8b01e79a 100644 --- a/assets/index-mJ2TXSRS.js +++ b/assets/index-DIPzAhbE.js @@ -1,4 +1,4 @@ -import{q as n,f as o,i,j as t,o as a,C as l,T as c,s as r,v as u,l as x}from"./index-Bjk_45MO.js";const h=n.div` +import{q as n,f as o,i,j as t,o as a,C as l,T as c,s as r,v as u,l as x}from"./index-Cei2V9tG.js";const h=n.div` height: calc(100vh - 520px); .content { diff --git a/assets/index-DMjVsepR.css b/assets/index-DMjVsepR.css new file mode 100644 index 00000000..4b353bf3 --- /dev/null +++ b/assets/index-DMjVsepR.css @@ -0,0 +1 @@ +@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none} diff --git a/assets/index-ByFOh-xS.js b/assets/index-DOGb0VTY.js similarity index 94% rename from assets/index-ByFOh-xS.js rename to assets/index-DOGb0VTY.js index d19c6f2a..dc881a88 100644 --- a/assets/index-ByFOh-xS.js +++ b/assets/index-DOGb0VTY.js @@ -1,4 +1,4 @@ -import{q as c,f as l,i as x,j as e,C as g,T as p,n as m,aN as o,J as n,N as r}from"./index-Bjk_45MO.js";import{a as u,S as h}from"./swiper-react-CO9r4Bsk.js";const j=c.section` +import{q as c,f as l,i as x,j as e,C as g,T as p,n as m,aN as o,J as n,N as r}from"./index-Cei2V9tG.js";import{a as u,S as h}from"./swiper-react-Dxth3Uzi.js";const j=c.section` overflow: hidden; @media (max-width: 768px) { diff --git a/assets/index-ByR6k3wq.js b/assets/index-DOgv2ATl.js similarity index 69% rename from assets/index-ByR6k3wq.js rename to assets/index-DOgv2ATl.js index 1a588f22..8f832da0 100644 --- a/assets/index-ByR6k3wq.js +++ b/assets/index-DOgv2ATl.js @@ -1,4 +1,4 @@ -import{q as r,j as t}from"./index-Bjk_45MO.js";const s=r.div` +import{q as r,j as t}from"./index-Cei2V9tG.js";const s=r.div` display: flex; justify-content: space-between; width: 100%; diff --git a/assets/index-tuhR67Y7.js b/assets/index-DP6ETbJh.js similarity index 97% rename from assets/index-tuhR67Y7.js rename to assets/index-DP6ETbJh.js index 3929bea2..7fcd1e24 100644 --- a/assets/index-tuhR67Y7.js +++ b/assets/index-DP6ETbJh.js @@ -1,4 +1,4 @@ -import{b as cn,r as b,h as dn,k as G,i as un,j as r,q as X,n as N,d as h,a5 as pn,a2 as gn,aG as xn,aH as fn,a6 as hn,aI as mn,a4 as bn,a3 as vn,D as J,f as A,X as K,T as wn,S as jn,w as H,o as yn,C as Cn}from"./index-Bjk_45MO.js";import{q as M}from"./base-C7euzKDi.js";import{C as _n}from"./index-ByFOh-xS.js";import{F as kn,S as Tn}from"./index-CTPFDqdg.js";import{W as On}from"./index-De30Ii5m.js";import{P as Pn}from"./index-DXgEk6c6.js";import"./swiper-react-CO9r4Bsk.js";import"./ResponsiveImage-wYxl3kWJ.js";import"./index-DdavEOvA.js";import"./index-D0XQwhQb.js";const D=cn.createContext({}),I=(i={})=>M.stringify(i),Sn=({children:i})=>{const{fetchWebinars:l,webinars:t,fetchTags:a}=b.useContext(dn.EscolaLMSContext),p=G(),{push:m}=un(),[u,C]=b.useState(),o=(g={})=>({page:1,per_page:8,...g});return b.useEffect(()=>{a()},[a]),b.useEffect(()=>{m(`${p.pathname}?${I(u)}`)},[u,p.pathname]),b.useEffect(()=>{if(p.search&&p.search.split("?")[1]!==I(u)){const g=M.parse(p.search);C(g),l(g||{})}else l(o(u))},[p.search]),r.jsx(D.Provider,{value:{params:u,setParams:C,webinars:t},children:i})},Fn=({children:i})=>{const l=X("div")` +import{b as cn,r as b,h as dn,k as G,i as un,j as r,q as X,n as N,d as h,a5 as pn,a2 as gn,aG as xn,aH as fn,a6 as hn,aI as mn,a4 as bn,a3 as vn,D as J,f as A,X as K,T as wn,S as jn,w as H,o as yn,C as Cn}from"./index-Cei2V9tG.js";import{q as M}from"./base-C7euzKDi.js";import{C as _n}from"./index-DOGb0VTY.js";import{F as kn,S as Tn}from"./index-Cxw7wvGU.js";import{W as On}from"./index-BCsXbvXd.js";import{P as Pn}from"./index-CULsm7V8.js";import"./swiper-react-Dxth3Uzi.js";import"./ResponsiveImage-CUm6fM86.js";import"./index-CO3xj3k-.js";import"./index-BxtluS5u.js";const D=cn.createContext({}),I=(i={})=>M.stringify(i),Sn=({children:i})=>{const{fetchWebinars:l,webinars:t,fetchTags:a}=b.useContext(dn.EscolaLMSContext),p=G(),{push:m}=un(),[u,C]=b.useState(),o=(g={})=>({page:1,per_page:8,...g});return b.useEffect(()=>{a()},[a]),b.useEffect(()=>{m(`${p.pathname}?${I(u)}`)},[u,p.pathname]),b.useEffect(()=>{if(p.search&&p.search.split("?")[1]!==I(u)){const g=M.parse(p.search);C(g),l(g||{})}else l(o(u))},[p.search]),r.jsx(D.Provider,{value:{params:u,setParams:C,webinars:t},children:i})},Fn=({children:i})=>{const l=X("div")` background: ${({theme:a})=>a.primaryColor}; padding: ${N?"60px 20px 20px 20px":"140px 40px 30px"}; margin-bottom: ${N?"100px":"40px"}; diff --git a/assets/index-0H62AnVs.js b/assets/index-DQ73wqwR.js similarity index 95% rename from assets/index-0H62AnVs.js rename to assets/index-DQ73wqwR.js index ec2f2daf..80ea2f00 100644 --- a/assets/index-0H62AnVs.js +++ b/assets/index-DQ73wqwR.js @@ -1,3 +1,3 @@ -import{q as d,r as i,h as x,f as m,X as h,j as s,o as j,C as p,L as r,l as u,s as l,T as f,w as o,S as T,G as g,H as C,I as _}from"./index-Bjk_45MO.js";import{B as v}from"./index-DNvp70I6.js";const y=d.div` +import{q as d,r as i,h as x,f as m,X as h,j as s,o as j,C as p,L as r,l as u,s as l,T as f,w as o,S as T,G as g,H as C,I as _}from"./index-Cei2V9tG.js";import{B as v}from"./index-rOJCcL2u.js";const y=d.div` margin-bottom: 10px; `,E=()=>{const{tutors:a,fetchTutors:n}=i.useContext(x.EscolaLMSContext),{t}=m(),c=h();return i.useEffect(()=>{n()},[]),s.jsx(j,{children:s.jsx("div",{className:"advisor-area",children:s.jsxs(p,{children:[s.jsx(v,{items:[s.jsx(r,{to:u.home,children:t("Home")}),s.jsx(l.Text,{size:"12",children:t("Tutors")})]}),s.jsx(y,{children:s.jsxs(f.Title,{level:1,children:[" ",t("Tutors")]})}),s.jsxs(o.Row,{children:[a.loading&&s.jsx("div",{style:{display:"flex",justifyContent:"center",width:"100%",minHeight:"500px",flexDirection:"column",alignItems:"center"},className:"loader-wrapper",children:s.jsx(T.Spin,{color:c.primaryColor})}),!a.loading&&(a.list||[]).map(e=>s.jsx(o.Col,{sm:6,md:6,lg:4,children:s.jsx(g,{id:Number(e.id),title:e.name,image:s.jsx(r,{to:`/tutors/${e.id}`,children:e.path_avatar?s.jsx(C,{path:e.path_avatar,srcSizes:[380,380*2]}):s.jsx("img",{className:"tutor-card__avatar",src:_.tutorPlaceholderPath,alt:"tutor_avatar"})}),subtitle:s.jsx(r,{to:`/tutors/${e.id}`,children:s.jsx(l.Text,{size:"16",children:s.jsxs("strong",{children:[e.first_name," ",e.last_name]})})})})},e.id))]})]})})})};export{E as default}; diff --git a/assets/index-Cp8cKdIj.js b/assets/index-DbTI3C8a.js similarity index 59% rename from assets/index-Cp8cKdIj.js rename to assets/index-DbTI3C8a.js index 5204ee0f..3b6649cb 100644 --- a/assets/index-Cp8cKdIj.js +++ b/assets/index-DbTI3C8a.js @@ -1,4 +1,4 @@ -import{r as p,h as _,i as M,k as $,l as A,q as E,j as e,T as B,m as O,n as N,L as H,f as z,o as q,C as I,B as W,M as Q}from"./index-Bjk_45MO.js";import{R as D}from"./ResponsiveImage-wYxl3kWJ.js";import{C as F}from"./index-ByFOh-xS.js";import{D as y}from"./index-Ml3LGY9S.js";import{S as P}from"./swiper-react-CO9r4Bsk.js";import{S as L}from"./swiper-B3oKVkBy.js";import{C as G}from"./CourseCard-Cly8Zjem.js";import{u as J}from"./useSearchParams-DawJFBcb.js";import{CourseStatus as u}from"./index-BYwjnrZ6.js";import{C as K}from"./index-DdavEOvA.js";import{C as X}from"./index-BNTGN6Sw.js";import"./index-3y6ZJfCp.js";import"./index-D1KheDiE.js";import"./useFetchCourses-CPsyyy8t.js";import"./index-BMKx56cF.js";import"./base-C7euzKDi.js";import"./Tabs-DeLQ6nIG.js";import"./index-ByR6k3wq.js";import"./index-Bz9IQ-KJ.js";import"./questionnaires-BlwwmS39.js";import"./useDownloadCertificate-CojJpn-m.js";import"./useRoles-DhUVqcxA.js";import"./index-DXgEk6c6.js";const Y=(o=u.ALL)=>{var R,k;const{fetchMyAuthoredCourses:a,myAuthoredCourses:i,fetchPaginatedProgress:m,paginatedProgress:n}=p.useContext(_.EscolaLMSContext),[s,c]=p.useState([]),w=M(),{setQueryParam:f}=J(),{search:b}=$(),h=new URLSearchParams(b),d=h.get("page"),x=h.get("status"),S=p.useMemo(()=>{var t,r;return o===u.AUTHORED?(t=i.list)==null?void 0:t.meta:(r=n.list)==null?void 0:r.meta},[o,(R=i.list)==null?void 0:R.meta,(k=n.list)==null?void 0:k.meta]),g=p.useCallback(t=>{let r="";switch(t){case 1:case 5:break;case 2:r="started";break;case 3:r="planned";break;case 4:r="finished";break}return r},[]);p.useEffect(()=>{m({page:d?parseInt(d):1,per_page:18,status:g(Number(x))}),(o===u.ALL||o===u.AUTHORED)&&a()},[m,o,a,d,x,g]);const j=p.useMemo(()=>{var t;return(((t=n.list)==null?void 0:t.data)||[]).reduce((r,l)=>({...r,[l.course.id?l.course.id:-1]:Math.round((l.progress||[]).reduce((T,U)=>U.status===1?T+1:T,0)/l.progress.length*100)}),{})},[n]),C=p.useCallback(t=>t.map(r=>({...r.course,courseData:r,progress:j[r.course.id?r.course.id:-1]})),[j]);return p.useEffect(()=>{var t,r,l,T;o!==u.AUTHORED?c(C(((t=n.list)==null?void 0:t.data)||[])):o===u.AUTHORED?c(((r=i.list)==null?void 0:r.data)||[]):c([...C(((l=n.list)==null?void 0:l.data)||[]),...((T=i.list)==null?void 0:T.data)||[]])},[o,n,i,C]),{coursesToMap:s,paginationMeta:S,loading:n.loading||i.loading,handlePagination:t=>{f("page",`${t}`),window==null||window.scrollTo(0,0)},redirectToCourses:()=>w.push(A.courses)}},Z=E.div` +import{r as p,h as _,i as M,k as $,l as A,q as E,j as e,T as B,m as O,n as N,L as H,f as z,o as q,C as I,B as W,M as Q}from"./index-Cei2V9tG.js";import{R as D}from"./ResponsiveImage-CUm6fM86.js";import{C as F}from"./index-DOGb0VTY.js";import{D as y}from"./index-Z1ike-VV.js";import{S as P}from"./swiper-react-Dxth3Uzi.js";import{S as L}from"./swiper-B0_gRAjE.js";import{C as G}from"./CourseCard-CUpRcofn.js";import{u as J}from"./useSearchParams-DExUgHRa.js";import{CourseStatus as u}from"./index-Bbq3XPwm.js";import{C as K}from"./index-CO3xj3k-.js";import{C as X}from"./index-KwSvHpAm.js";import"./index-CofAvDv9.js";import"./index-Cm0iCbGi.js";import"./useFetchCourses-Dd2e0Wna.js";import"./a11y-B_OcGQFt.js";import"./index-D-BQVsc5.js";import"./base-C7euzKDi.js";import"./Tabs-DXnc7TjY.js";import"./index-DOgv2ATl.js";import"./index-DhlBLuXk.js";import"./questionnaires-DuttoWDO.js";import"./useDownloadCertificate-B4BL8h3F.js";import"./useRoles-Fnr-v6hU.js";import"./index-CULsm7V8.js";const Y=(o=u.ALL)=>{var R,k;const{fetchMyAuthoredCourses:a,myAuthoredCourses:i,fetchPaginatedProgress:m,paginatedProgress:n}=p.useContext(_.EscolaLMSContext),[s,c]=p.useState([]),w=M(),{setQueryParam:f}=J(),{search:b}=$(),h=new URLSearchParams(b),d=h.get("page"),x=h.get("status"),S=p.useMemo(()=>{var t,r;return o===u.AUTHORED?(t=i.list)==null?void 0:t.meta:(r=n.list)==null?void 0:r.meta},[o,(R=i.list)==null?void 0:R.meta,(k=n.list)==null?void 0:k.meta]),g=p.useCallback(t=>{let r="";switch(t){case 1:case 5:break;case 2:r="started";break;case 3:r="planned";break;case 4:r="finished";break}return r},[]);p.useEffect(()=>{m({page:d?parseInt(d):1,per_page:18,status:g(Number(x))}),(o===u.ALL||o===u.AUTHORED)&&a()},[m,o,a,d,x,g]);const j=p.useMemo(()=>{var t;return(((t=n.list)==null?void 0:t.data)||[]).reduce((r,l)=>({...r,[l.course.id?l.course.id:-1]:Math.round((l.progress||[]).reduce((T,U)=>U.status===1?T+1:T,0)/l.progress.length*100)}),{})},[n]),C=p.useCallback(t=>t.map(r=>({...r.course,courseData:r,progress:j[r.course.id?r.course.id:-1]})),[j]);return p.useEffect(()=>{var t,r,l,T;o!==u.AUTHORED?c(C(((t=n.list)==null?void 0:t.data)||[])):o===u.AUTHORED?c(((r=i.list)==null?void 0:r.data)||[]):c([...C(((l=n.list)==null?void 0:l.data)||[]),...((T=i.list)==null?void 0:T.data)||[]])},[o,n,i,C]),{coursesToMap:s,paginationMeta:S,loading:n.loading||i.loading,handlePagination:t=>{f("page",`${t}`),window==null||window.scrollTo(0,0)},redirectToCourses:()=>w.push(A.courses)}},Z=E.div` position: relative; `,V=({titleText:o,slidesPerView:a=4})=>{const{coursesToMap:i,loading:m}=Y(),n=M();return i.length===0?null:e.jsxs(Z,{children:[e.jsx("div",{className:"header-wrapper",children:e.jsx(B.Title,{className:"slider-title",level:1,as:"h2",children:e.jsx("strong",{children:o})})}),m&&e.jsx(L,{slidesPerView:a,children:Array.from({length:6}).map((s,c)=>e.jsx(P,{children:e.jsx(G,{})},c))}),!m&&i&&e.jsx(L,{slidesPerView:a,children:i.map(s=>e.jsx(P,{children:e.jsx(O.NewCourseCard,{mobile:N,id:s.id,image:e.jsx(H,{to:`/courses/${s.id}`,children:s.image_path?e.jsx(D.ResponsiveImage,{path:s.image_path,alt:s.title,srcSizes:[300,600,900]}):e.jsx(K,{})}),title:e.jsx(H,{to:`/courses/${s.id}`,children:e.jsx(B.Title,{level:3,as:"h3",className:"title",children:s.title})}),categories:e.jsx(X,{categories:s.categories,onCategoryClick:c=>{n.push(`/courses/?categories[]=${c}`)}}),progress:s.progress&&s.progress!==100&&!isNaN(s.progress)?{currentProgress:s.progress,maxProgress:100}:void 0})},s.id))})]})},ee=E.div` @media (max-width: 1200px) { @@ -54,4 +54,4 @@ import{r as p,h as _,i as M,k as $,l as A,q as E,j as e,T as B,m as O,n as N,L a } } } -`,ve=()=>{var w,f,b,h,d,x,S,g,j;const{categoryTree:o,settings:a,fetchCategories:i,user:m}=p.useContext(_.EscolaLMSContext),n=M(),{t:s,i18n:c}=z();return p.useEffect(()=>{i()},[i]),e.jsx(q,{metaTitle:s("Home"),children:e.jsxs(ee,{children:[e.jsx("section",{className:"home-hero",children:((w=a.value)==null?void 0:w.homepage)&&((f=a.value.homepage)==null?void 0:f.heroBannerText)&&((b=a.value.homepage)==null?void 0:b.heroBannerImg)&&((h=a.value.homepage)==null?void 0:h.heroBannerImg)!==""&&e.jsx(I,{children:e.jsx(W.Banner,{mobile:N,title:e.jsx(Q.MarkdownRenderer,{children:`

${((d=a.value.homepage)==null?void 0:d.heroBannerText[c.language])||""}

`}),btnText:s("Homepage.HeroBtnText"),asset:e.jsx(D.ResponsiveImage,{path:((S=(x=a==null?void 0:a.value)==null?void 0:x.homepage)==null?void 0:S.heroBannerImg)||"",srcSizes:[500,750,1e3]}),handleBtn:()=>n.push(A.courses)})})}),((g=m.value)==null?void 0:g.id)&&e.jsx("section",{className:"home-newest-courses",children:e.jsx(v,{children:e.jsx(V,{titleText:s("Navbar.MyCourses")})})}),e.jsx("section",{className:"home-newest-courses",children:e.jsx(v,{children:e.jsx(y,{titleText:s("Homepage.CoursesSlider2Title"),params:{per_page:8,order_by:"created_at",order:"DESC"}})})}),e.jsx("section",{className:"home-best-courses",children:e.jsx(v,{children:e.jsx(y,{titleText:s("Homepage.CoursesSlider1Title"),params:{per_page:8}})})}),e.jsx("div",{className:"promoted-courses-wrapper",children:e.jsx(v,{children:e.jsx(y,{titleText:s("Homepage.AwardedCoursesTitle"),params:{per_page:8},isSlider:!!N,ctaButton:!0})})}),o&&e.jsx("div",{className:"categories-section-wrapper",children:e.jsx(F,{categories:((j=o.list)==null?void 0:j.filter(C=>!!C.icon))||[]})})]})})};export{ve as default}; +`,ye=()=>{var w,f,b,h,d,x,S,g,j;const{categoryTree:o,settings:a,fetchCategories:i,user:m}=p.useContext(_.EscolaLMSContext),n=M(),{t:s,i18n:c}=z();return p.useEffect(()=>{i()},[i]),e.jsx(q,{metaTitle:s("Home"),children:e.jsxs(ee,{children:[e.jsx("section",{className:"home-hero",children:((w=a.value)==null?void 0:w.homepage)&&((f=a.value.homepage)==null?void 0:f.heroBannerText)&&((b=a.value.homepage)==null?void 0:b.heroBannerImg)&&((h=a.value.homepage)==null?void 0:h.heroBannerImg)!==""&&e.jsx(I,{children:e.jsx(W.Banner,{mobile:N,title:e.jsx(Q.MarkdownRenderer,{children:`

${((d=a.value.homepage)==null?void 0:d.heroBannerText[c.language])||""}

`}),btnText:s("Homepage.HeroBtnText"),asset:e.jsx(D.ResponsiveImage,{path:((S=(x=a==null?void 0:a.value)==null?void 0:x.homepage)==null?void 0:S.heroBannerImg)||"",srcSizes:[500,750,1e3]}),handleBtn:()=>n.push(A.courses)})})}),((g=m.value)==null?void 0:g.id)&&e.jsx("section",{className:"home-newest-courses",children:e.jsx(v,{children:e.jsx(V,{titleText:s("Navbar.MyCourses")})})}),e.jsx("section",{className:"home-newest-courses",children:e.jsx(v,{children:e.jsx(y,{titleText:s("Homepage.CoursesSlider2Title"),params:{per_page:8,order_by:"created_at",order:"DESC"}})})}),e.jsx("section",{className:"home-best-courses",children:e.jsx(v,{children:e.jsx(y,{titleText:s("Homepage.CoursesSlider1Title"),params:{per_page:8}})})}),e.jsx("div",{className:"promoted-courses-wrapper",children:e.jsx(v,{children:e.jsx(y,{titleText:s("Homepage.AwardedCoursesTitle"),params:{per_page:8},isSlider:!!N,ctaButton:!0})})}),o&&e.jsx("div",{className:"categories-section-wrapper",children:e.jsx(F,{categories:((j=o.list)==null?void 0:j.filter(C=>!!C.icon))||[]})})]})})};export{ye as default}; diff --git a/assets/index-Bz9IQ-KJ.js b/assets/index-DhlBLuXk.js similarity index 96% rename from assets/index-Bz9IQ-KJ.js rename to assets/index-DhlBLuXk.js index 91729ad2..cc2e7224 100644 --- a/assets/index-Bz9IQ-KJ.js +++ b/assets/index-DhlBLuXk.js @@ -1,4 +1,4 @@ -import{q,f as R,r as p,j as t,T as f,ct as T,s as g,cu as j,ah as y,af as S,v as C,x as N,D as A,A as w}from"./index-Bjk_45MO.js";import{a as k}from"./questionnaires-BlwwmS39.js";const B=q.form` +import{q,f as R,r as p,j as t,T as f,ct as T,s as g,cu as j,ah as y,af as S,v as C,x as N,D as A,A as w}from"./index-Cei2V9tG.js";import{a as k}from"./questionnaires-DuttoWDO.js";const B=q.form` .question-box { &__title { font-size: 24px; diff --git a/assets/index-CkAtTtBd.js b/assets/index-DjTNgyp2.js similarity index 97% rename from assets/index-CkAtTtBd.js rename to assets/index-DjTNgyp2.js index 8bc047cf..d71e333e 100644 --- a/assets/index-CkAtTtBd.js +++ b/assets/index-DjTNgyp2.js @@ -1,4 +1,4 @@ -import{r as u,D as W,q as O,v as F,f as Q,i as de,W as e1,j as n,Y as Se,s as B,l as se,n as k,X as Me,h as ze,E as Oe,Z as we,J as ne,L as K,a0 as n1,a1 as t1,d as C,a2 as Ae,a3 as ue,a4 as r1,a5 as pe,a6 as s1,a7 as o1,a8 as Z,b as i1,a9 as a1,aa as l1,ab as c1,T as xe,ac as d1,w as L,ad as u1,ae as p1,I as Ze,m as Y,A as x1,af as De,ag as m1,ah as Fe,ai as g1,S as C1,C as Te,o as h1,aj as f1,ak as Le,M as He,x as Re}from"./index-Bjk_45MO.js";import{P as v1}from"./PricingCard-4UWE4R3V.js";import{P as Ge}from"./index-D1KheDiE.js";import{l as _1,A as j1,_ as b1,P as y1,I as w1,a as T1,O as P1,H as M1}from"./index-BgAgt_Xs.js";import{B as O1}from"./index-DNvp70I6.js";import{Q as qe,a as Ie,g as A1}from"./questionnaires-BlwwmS39.js";import{R as S1,a as L1}from"./ResponsiveImage-wYxl3kWJ.js";import{C as H1}from"./index-BNTGN6Sw.js";import{P as R1}from"./index-DXgEk6c6.js";import{D as I1}from"./index-Ml3LGY9S.js";import{S as N1}from"./swiper-B3oKVkBy.js";import{S as B1}from"./swiper-react-CO9r4Bsk.js";import{C as V1}from"./index-DdavEOvA.js";import{S as N}from"./index-BMKx56cF.js";import"./warning-CKk5dc80.js";import"./index-3y6ZJfCp.js";import"./useFetchCourses-CPsyyy8t.js";import"./CourseCard-Cly8Zjem.js";const k1=e=>{const[t,r]=u.useState({data:void 0,loaded:!1,loading:!1}),{user:i,fetchCourseProgress:a,courseProgressDetails:o}=u.useContext(W.EscolaLMSContext);return u.useEffect(()=>{o.byId&&o.byId[Number(e)]&&o.byId[Number(e)].value&&r({...t,data:o.byId[Number(e)].value,loaded:!0,loading:!1})},[e,o]),u.useEffect(()=>{i!=null&&i.value&&!i.loading&&!t.loading&&!t.loaded?(r({...t,loading:!0}),a(e).catch(()=>r({...t,loaded:!0,loading:!1}))):t.loaded||r({...t,loaded:!0})},[i,t,a,e]),{progress:t}},Ne=O(F.Button)` +import{r as u,D as W,q as O,v as F,f as Q,i as de,W as e1,j as n,Y as Se,s as B,l as se,n as k,X as Me,h as ze,E as Oe,Z as we,J as ne,L as K,a0 as n1,a1 as t1,d as C,a2 as Ae,a3 as ue,a4 as r1,a5 as pe,a6 as s1,a7 as o1,a8 as Z,b as i1,a9 as a1,aa as l1,ab as c1,T as xe,ac as d1,w as L,ad as u1,ae as p1,I as Ze,m as Y,A as x1,af as De,ag as m1,ah as Fe,ai as g1,S as C1,C as Te,o as h1,aj as f1,ak as Le,M as He,x as Re}from"./index-Cei2V9tG.js";import{P as v1}from"./PricingCard-YjgD6nmP.js";import{P as Ge}from"./index-Cm0iCbGi.js";import{l as _1,A as j1,_ as b1,P as y1,I as w1,a as T1,O as P1,H as M1}from"./index-BdBaDIIz.js";import{B as O1}from"./index-rOJCcL2u.js";import{Q as qe,a as Ie,g as A1}from"./questionnaires-DuttoWDO.js";import{R as S1,a as L1}from"./ResponsiveImage-CUm6fM86.js";import{C as H1}from"./index-KwSvHpAm.js";import{P as R1}from"./index-CULsm7V8.js";import{D as I1}from"./index-Z1ike-VV.js";import{S as N1}from"./swiper-B0_gRAjE.js";import{S as B1}from"./swiper-react-Dxth3Uzi.js";import{C as V1}from"./index-CO3xj3k-.js";import{S as N}from"./index-D-BQVsc5.js";import"./warning-CGLqHpsF.js";import"./index-CofAvDv9.js";import"./useFetchCourses-Dd2e0Wna.js";import"./CourseCard-CUpRcofn.js";import"./a11y-B_OcGQFt.js";const k1=e=>{const[t,r]=u.useState({data:void 0,loaded:!1,loading:!1}),{user:i,fetchCourseProgress:a,courseProgressDetails:o}=u.useContext(W.EscolaLMSContext);return u.useEffect(()=>{o.byId&&o.byId[Number(e)]&&o.byId[Number(e)].value&&r({...t,data:o.byId[Number(e)].value,loaded:!0,loading:!1})},[e,o]),u.useEffect(()=>{i!=null&&i.value&&!i.loading&&!t.loading&&!t.loaded?(r({...t,loading:!0}),a(e).catch(()=>r({...t,loaded:!0,loading:!1}))):t.loaded||r({...t,loaded:!0})},[i,t,a,e]),{progress:t}},Ne=O(F.Button)` display: block; margin-bottom: 10px; `,E1=({course:e,onRequestAccess:t})=>{var v,s;const{t:r}=Q(),{push:i}=de(),{courseAccess:a,cart:o,addToCart:l}=u.useContext(W.EscolaLMSContext),p=u.useMemo(()=>{var c,m;return(m=(c=a.list)==null?void 0:c.data)==null?void 0:m.find(x=>{var b;return((b=x==null?void 0:x.course)==null?void 0:b.id)===e.id})},[(v=a.list)==null?void 0:v.data,e.id]),g=u.useMemo(()=>n.jsx(F.Button,{loading:o.loading,mode:"secondary",onClick:()=>{var c;return l(Number((c=e.product)==null?void 0:c.id)).then(()=>i(se.cart))},children:r("Buy Course")}),[l,o.loading,(s=e.product)==null?void 0:s.id,i,r]);return p?p.status!=="approved"?n.jsxs(n.Fragment,{children:[n.jsx(Ne,{mode:"secondary",disabled:!0,children:r("CourseAccess.Pending")}),g]}):p.status==="approved"?n.jsx(F.Button,{onClick:()=>i(`/course/${e.id}`),mode:"secondary",children:r("Go to the course")}):g:n.jsxs(n.Fragment,{children:[n.jsx(Ne,{mode:"secondary",onClick:t,children:r("CourseAccess.RequestAccess")}),g]})},$1=({course:e,userOwnThisCourse:t,onRequestAccess:r})=>{var g,v;const{cart:i,user:a}=u.useContext(W.EscolaLMSContext),{t:o}=Q(),{push:l}=de(),p=u.useMemo(()=>{var s;return(s=i==null?void 0:i.value)==null?void 0:s.items.some(c=>{var m;return Number(c.product_id)===Number((m=e.product)==null?void 0:m.id)})},[(g=e.product)==null?void 0:g.id,i]);return e1(Number((v=a.value)==null?void 0:v.id),e)?n.jsx(F.Button,{onClick:()=>l(`/course/${e.id}`),mode:"secondary",children:o("Go to the course")}):Se(new Date(e.active_to||""))?n.jsx(B.Text,{children:o("CoursePage.IsFinished")}):p?n.jsx(F.Button,{mode:"secondary",onClick:()=>l(se.cart),children:o("CoursePage.GoToCheckout")}):t&&Se(new Date(e.active_from||""))?n.jsx(F.Button,{onClick:()=>l(`/course/${e.id}`),mode:"secondary",children:o("Go to the course")}):t?n.jsx(B.Text,{children:o("CoursePage.NotStarted")}):a.value&&e.product?n.jsx(E1,{course:e,onRequestAccess:r}):e.product?n.jsx(F.Button,{onClick:()=>l(`/login?referrer=/courses/${e.id}`),mode:"secondary",children:o("Buy Course")}):n.jsx(B.Text,{children:o("CoursePage.UnavailableCourse")})},z1=O.div` @@ -709,4 +709,4 @@ import{r as u,D as W,q as O,v as F,f as Q,i as de,W as e1,j as n,Y as Se,s as B, width: 10px; height: 17px; } -`,Xn=()=>{var w,y;const[e,t]=u.useState([]),[r,i]=u.useState(!1),[a,o]=u.useState(),{id:l}=Oe(),{t:p}=Q(),g=de(),v=Me(),{course:s,fetchCourse:c,fetchCourses:m,fetchCourseAccess:x,fetchQuestionnaires:b}=u.useContext(ze.EscolaLMSContext),d=u.useCallback(()=>i(!1),[]),h=u.useCallback(()=>i(!0),[]),_=u.useCallback(()=>x({course_id:Number(l),current_page:1,per_page:1}),[l,x]);return u.useEffect(()=>{m({per_page:6}),l&&(c(Number(l)),_(),b(qe.COURSE,Number(l)).then(M=>M.success&&t(M.data)))},[l]),s.error?n.jsx("pre",{children:s.error.message}):n.jsxs(h1,{metaTitle:((w=s==null?void 0:s.value)==null?void 0:w.title)||"Loading",children:[s.loading&&n.jsx(n.Fragment,{children:n.jsx(ke,{children:n.jsx(Te,{children:n.jsxs(L.Row,{children:[n.jsx(L.Col,{md:12,lg:8,children:n.jsx(Sn,{})}),n.jsx(L.Col,{md:12,lg:3,offset:{lg:1},children:n.jsx(On,{})})]})})})}),!s.loading&&s.value&&n.jsxs(n.Fragment,{children:[n.jsxs(ke,{children:[n.jsxs(Te,{children:[!k&&n.jsx(O1,{items:[n.jsx(K,{to:se.home,children:p("Home")}),n.jsx(K,{to:se.courses,children:p("Courses")}),n.jsx(B.Text,{size:"13",children:s.value.title})]}),n.jsxs(L.Row,{children:[n.jsxs(L.Col,{md:12,lg:8,children:[k&&n.jsx(Ln,{onClick:()=>g.push(se.courses),children:n.jsx(f1,{color:v.black})}),n.jsx(dn,{courseData:s.value}),k&&s.value&&n.jsx(Be,{course:s.value,onRequestAccess:h}),s.value.description&&Le(s.value.description)!==""&&n.jsx("section",{className:"course-description-short",children:n.jsx(He.MarkdownRenderer,{children:s.value.description})}),s.value.summary&&Le(s.value.summary)!==""&&n.jsx("section",{className:"course-description",children:n.jsx(He.MarkdownRenderer,{children:s.value.summary})}),n.jsxs("section",{className:"",children:[n.jsx(xe.Title,{as:"h3",level:4,className:"title",children:p("CoursePage.Teacher")}),n.jsx(L.Row,{children:s.value&&s.value.authors.map(M=>n.jsx(ln,{author:M}))})]}),s.value.lessons&&s.value.lessons.length>0&&n.jsx(Ue.CourseProgram,{lessons:s.value.lessons,onTopicClick:M=>o(M)}),n.jsx(wn,{questionnaires:e})]}),!k&&n.jsx(L.Col,{md:12,lg:3,offset:{lg:1},children:s.value&&n.jsx(Be,{course:s.value,onRequestAccess:h})})]})]}),n.jsx(Pn,{relatedProducts:(y=s.value.product)==null?void 0:y.related_products})]}),n.jsxs(Re.Modal,{onClose:()=>o(void 0),visible:!!a,animation:"zoom",maskAnimation:"fade",destroyOnClose:!0,width:600,bodyStyle:{maxHeight:"80vh",overflow:"auto"},children:[n.jsx(Ee,{}),a&&n.jsx(an,{topic:a})]}),n.jsxs(Re.Modal,{onClose:d,visible:r,animation:"zoom",maskAnimation:"fade",destroyOnClose:!0,width:600,children:[n.jsx(Ee,{}),n.jsx(Je.ModalCourseAccess,{course:s.value,onCancel:d,onSuccess:()=>{_(),d()}})]})]})]})};export{Xn as default}; +`,Jn=()=>{var w,y;const[e,t]=u.useState([]),[r,i]=u.useState(!1),[a,o]=u.useState(),{id:l}=Oe(),{t:p}=Q(),g=de(),v=Me(),{course:s,fetchCourse:c,fetchCourses:m,fetchCourseAccess:x,fetchQuestionnaires:b}=u.useContext(ze.EscolaLMSContext),d=u.useCallback(()=>i(!1),[]),h=u.useCallback(()=>i(!0),[]),_=u.useCallback(()=>x({course_id:Number(l),current_page:1,per_page:1}),[l,x]);return u.useEffect(()=>{m({per_page:6}),l&&(c(Number(l)),_(),b(qe.COURSE,Number(l)).then(M=>M.success&&t(M.data)))},[l]),s.error?n.jsx("pre",{children:s.error.message}):n.jsxs(h1,{metaTitle:((w=s==null?void 0:s.value)==null?void 0:w.title)||"Loading",children:[s.loading&&n.jsx(n.Fragment,{children:n.jsx(ke,{children:n.jsx(Te,{children:n.jsxs(L.Row,{children:[n.jsx(L.Col,{md:12,lg:8,children:n.jsx(Sn,{})}),n.jsx(L.Col,{md:12,lg:3,offset:{lg:1},children:n.jsx(On,{})})]})})})}),!s.loading&&s.value&&n.jsxs(n.Fragment,{children:[n.jsxs(ke,{children:[n.jsxs(Te,{children:[!k&&n.jsx(O1,{items:[n.jsx(K,{to:se.home,children:p("Home")}),n.jsx(K,{to:se.courses,children:p("Courses")}),n.jsx(B.Text,{size:"13",children:s.value.title})]}),n.jsxs(L.Row,{children:[n.jsxs(L.Col,{md:12,lg:8,children:[k&&n.jsx(Ln,{onClick:()=>g.push(se.courses),children:n.jsx(f1,{color:v.black})}),n.jsx(dn,{courseData:s.value}),k&&s.value&&n.jsx(Be,{course:s.value,onRequestAccess:h}),s.value.description&&Le(s.value.description)!==""&&n.jsx("section",{className:"course-description-short",children:n.jsx(He.MarkdownRenderer,{children:s.value.description})}),s.value.summary&&Le(s.value.summary)!==""&&n.jsx("section",{className:"course-description",children:n.jsx(He.MarkdownRenderer,{children:s.value.summary})}),n.jsxs("section",{className:"",children:[n.jsx(xe.Title,{as:"h3",level:4,className:"title",children:p("CoursePage.Teacher")}),n.jsx(L.Row,{children:s.value&&s.value.authors.map(M=>n.jsx(ln,{author:M}))})]}),s.value.lessons&&s.value.lessons.length>0&&n.jsx(Ue.CourseProgram,{lessons:s.value.lessons,onTopicClick:M=>o(M)}),n.jsx(wn,{questionnaires:e})]}),!k&&n.jsx(L.Col,{md:12,lg:3,offset:{lg:1},children:s.value&&n.jsx(Be,{course:s.value,onRequestAccess:h})})]})]}),n.jsx(Pn,{relatedProducts:(y=s.value.product)==null?void 0:y.related_products})]}),n.jsxs(Re.Modal,{onClose:()=>o(void 0),visible:!!a,animation:"zoom",maskAnimation:"fade",destroyOnClose:!0,width:600,bodyStyle:{maxHeight:"80vh",overflow:"auto"},children:[n.jsx(Ee,{}),a&&n.jsx(an,{topic:a})]}),n.jsxs(Re.Modal,{onClose:d,visible:r,animation:"zoom",maskAnimation:"fade",destroyOnClose:!0,width:600,children:[n.jsx(Ee,{}),n.jsx(Je.ModalCourseAccess,{course:s.value,onCancel:d,onSuccess:()=>{_(),d()}})]})]})]})};export{Jn as default}; diff --git a/assets/index-CgA4H978.js b/assets/index-DtW4WBMu.js similarity index 55% rename from assets/index-CgA4H978.js rename to assets/index-DtW4WBMu.js index 9ae8f945..f6cbea01 100644 --- a/assets/index-CgA4H978.js +++ b/assets/index-DtW4WBMu.js @@ -1 +1 @@ -import{aW as i,f as n,i as u,j as s,A as k}from"./index-Bjk_45MO.js";import{P as l}from"./index-CaBsIUEq.js";import"./index-waE41t0D.js";var m=i();const B=()=>{const{t:o}=n(),{push:e}=u();return typeof window<"u"?null:s.jsx(l,{title:o("MyProfilePage.MyBookmarks"),children:s.jsx(m.BookmarkNotes,{onClickBookmark:(r,t,a)=>e(`/course/${r}/${t}/${a}`,null),onDelete:()=>k.success(o("Notifications.Deleted"))})})};export{B as default}; +import{aW as i,f as n,i as u,j as s,A as k}from"./index-Cei2V9tG.js";import{P as l}from"./index-BstSZKJJ.js";import"./index-CAbbcEiW.js";var m=i();const B=()=>{const{t:o}=n(),{push:e}=u();return typeof window<"u"?null:s.jsx(l,{title:o("MyProfilePage.MyBookmarks"),children:s.jsx(m.BookmarkNotes,{onClickBookmark:(r,t,a)=>e(`/course/${r}/${t}/${a}`,null),onDelete:()=>k.success(o("Notifications.Deleted"))})})};export{B as default}; diff --git a/assets/index-CerUxjeI.js b/assets/index-Dv2dilEh.js similarity index 96% rename from assets/index-CerUxjeI.js rename to assets/index-Dv2dilEh.js index 7025fab1..deb75531 100644 --- a/assets/index-CerUxjeI.js +++ b/assets/index-Dv2dilEh.js @@ -1,4 +1,4 @@ -import{q as m,r as e,D as u,f,j as t,x,Z as M,A as g}from"./index-Bjk_45MO.js";const W=m.div` +import{q as m,r as e,D as u,f,j as t,x,Z as M,A as g}from"./index-Cei2V9tG.js";const W=m.div` iframe { width: 100% !important; height: calc(100vh - 76px); diff --git a/assets/index-BNTGN6Sw.js b/assets/index-KwSvHpAm.js similarity index 94% rename from assets/index-BNTGN6Sw.js rename to assets/index-KwSvHpAm.js index 2f6c7b60..c09cc76a 100644 --- a/assets/index-BNTGN6Sw.js +++ b/assets/index-KwSvHpAm.js @@ -1,4 +1,4 @@ -import{q as l,r as s,j as o,cz as p}from"./index-Bjk_45MO.js";const m=l("div")` +import{q as l,r as s,j as o,cz as p}from"./index-Cei2V9tG.js";const m=l("div")` .more-icon { border: 1px solid; border-radius: 50%; diff --git a/assets/index-BB-Jd-Oh.js b/assets/index-W6XNRor1.js similarity index 89% rename from assets/index-BB-Jd-Oh.js rename to assets/index-W6XNRor1.js index 35b6b0e6..be4fff09 100644 --- a/assets/index-BB-Jd-Oh.js +++ b/assets/index-W6XNRor1.js @@ -1,4 +1,4 @@ -import{q as j,r as m,j as e,n as f,f as C,T as b,b as N,X as P,S as w,w as h,D as v,h as S,o as F,C as T}from"./index-Bjk_45MO.js";import{C as E}from"./index-ByFOh-xS.js";import{C as M}from"./index-BuYk4f7o.js";import{F as Q,S as _}from"./index-CTPFDqdg.js";import{u}from"./useSearchParams-DawJFBcb.js";import{C as $}from"./index-Hx28RPSp.js";import{P as k}from"./index-DXgEk6c6.js";import"./swiper-react-CO9r4Bsk.js";import"./base-C7euzKDi.js";import"./warning-CKk5dc80.js";import"./index-DFxyMfM2.js";import"./ResponsiveImage-wYxl3kWJ.js";import"./index-DdavEOvA.js";const B=j("div")` +import{q as j,r as m,j as e,n as f,f as C,T as b,b as N,X as P,S as w,w as h,D as v,h as S,o as F,C as T}from"./index-Cei2V9tG.js";import{C as E}from"./index-DOGb0VTY.js";import{C as M}from"./index-CYw4wuOQ.js";import{F as Q,S as _}from"./index-Cxw7wvGU.js";import{u}from"./useSearchParams-DExUgHRa.js";import{C as $}from"./index-pyJuzCdB.js";import{P as k}from"./index-CULsm7V8.js";import"./swiper-react-Dxth3Uzi.js";import"./base-C7euzKDi.js";import"./warning-CGLqHpsF.js";import"./index-Csz5cVZF.js";import"./ResponsiveImage-CUm6fM86.js";import"./index-CO3xj3k-.js";const B=j("div")` display: flex; row-gap: 30px; flex-wrap: wrap; diff --git a/assets/index-Ml3LGY9S.js b/assets/index-Z1ike-VV.js similarity index 73% rename from assets/index-Ml3LGY9S.js rename to assets/index-Z1ike-VV.js index f20e6797..ec2944b8 100644 --- a/assets/index-Ml3LGY9S.js +++ b/assets/index-Z1ike-VV.js @@ -1,3 +1,3 @@ -import{q as d,i as m,f as p,j as s,T as h,v as x,l as j}from"./index-Bjk_45MO.js";import{C}from"./index-3y6ZJfCp.js";import{u as f}from"./useFetchCourses-CPsyyy8t.js";import{S}from"./swiper-react-CO9r4Bsk.js";import{S as v}from"./swiper-B3oKVkBy.js";import{C as T}from"./CourseCard-Cly8Zjem.js";const g=d.div` +import{q as d,i as m,f as p,j as s,T as h,v as x,l as j}from"./index-Cei2V9tG.js";import{C}from"./index-CofAvDv9.js";import{u as f}from"./useFetchCourses-Dd2e0Wna.js";import{S}from"./swiper-react-Dxth3Uzi.js";import{S as v}from"./swiper-B0_gRAjE.js";import{C as T}from"./CourseCard-CUpRcofn.js";const g=d.div` position: relative; `,H=({titleText:t,params:i,isSlider:a=!0,ctaButton:l,slidesPerView:r=4})=>{const{courses:e,loading:o}=f(i),n=m(),{t:u}=p();return s.jsxs(g,{children:[s.jsxs("div",{className:"header-wrapper",children:[s.jsx(h.Title,{className:"slider-title",level:1,as:"h2",children:s.jsx("strong",{children:t})}),l&&s.jsx(x.Button,{mode:"outline",onClick:()=>n.push(j.courses),children:u("Homepage.AwardedCoursesBtnText")})]}),o&&s.jsx(v,{slidesPerView:r,children:Array.from({length:6}).map((y,c)=>s.jsx(S,{children:s.jsx(T,{})},c))}),!o&&e&&s.jsx(C,{courses:e.data,isSlider:a,slidesPerView:r})]})};export{H as D}; diff --git a/assets/index-Dh7cHvmN.js b/assets/index-cPdytHpT.js similarity index 92% rename from assets/index-Dh7cHvmN.js rename to assets/index-cPdytHpT.js index 2916f616..9716e930 100644 --- a/assets/index-Dh7cHvmN.js +++ b/assets/index-cPdytHpT.js @@ -1,4 +1,4 @@ -import{b as S,r as i,h as w,k as P,i as k,j as e,q as v,n as d,f as u,T as $,G as _,L as C,ax as T,aK as N,aL as E,U as F,X as L,S as I,w as y,D as H,o as M,C as R}from"./index-Bjk_45MO.js";import{q as f}from"./base-C7euzKDi.js";import{C as q}from"./index-ByFOh-xS.js";import{C as B}from"./index-BuYk4f7o.js";import{F as D,S as O}from"./index-CTPFDqdg.js";import{P as U}from"./index-DXgEk6c6.js";import{a as X}from"./ResponsiveImage-wYxl3kWJ.js";import{C as z}from"./index-DdavEOvA.js";import{T as A}from"./index-D0XQwhQb.js";import{C as G}from"./index-BNTGN6Sw.js";import"./swiper-react-CO9r4Bsk.js";const h=S.createContext({}),b=(s={})=>f.stringify(s),K=({children:s})=>{const{fetchProducts:r,products:a,fetchCategories:t,fetchTags:n}=i.useContext(w.EscolaLMSContext),o=P(),{push:g}=k();i.useEffect(()=>{t(),n()},[]);const[c,x]=i.useState(),m=(l={})=>({page:1,per_page:8,type:"bundle",order_by:"created_at",order:"DESC",...l});return i.useEffect(()=>{g(`${o.pathname}?${b(c)}`)},[c,o.pathname]),i.useEffect(()=>{if(o.search&&o.search.split("?")[1]!==b(c)){const l=f.parse(o.search);x(l),r(l||{})}else r(m(c))},[o.search]),e.jsx(h.Provider,{value:{params:c,setParams:x,packages:a},children:s})},J=({children:s})=>{const r=v("div")` +import{b as S,r as i,h as w,k as P,i as k,j as e,q as v,n as d,f as u,T as $,G as _,L as C,ax as T,aK as N,aL as E,U as F,X as L,S as I,w as y,D as H,o as M,C as R}from"./index-Cei2V9tG.js";import{q as f}from"./base-C7euzKDi.js";import{C as q}from"./index-DOGb0VTY.js";import{C as B}from"./index-CYw4wuOQ.js";import{F as D,S as O}from"./index-Cxw7wvGU.js";import{P as U}from"./index-CULsm7V8.js";import{a as X}from"./ResponsiveImage-CUm6fM86.js";import{C as z}from"./index-CO3xj3k-.js";import{T as A}from"./index-BxtluS5u.js";import{C as G}from"./index-KwSvHpAm.js";import"./swiper-react-Dxth3Uzi.js";const h=S.createContext({}),b=(s={})=>f.stringify(s),K=({children:s})=>{const{fetchProducts:r,products:a,fetchCategories:t,fetchTags:n}=i.useContext(w.EscolaLMSContext),o=P(),{push:g}=k();i.useEffect(()=>{t(),n()},[]);const[c,x]=i.useState(),m=(l={})=>({page:1,per_page:8,type:"bundle",order_by:"created_at",order:"DESC",...l});return i.useEffect(()=>{g(`${o.pathname}?${b(c)}`)},[c,o.pathname]),i.useEffect(()=>{if(o.search&&o.search.split("?")[1]!==b(c)){const l=f.parse(o.search);x(l),r(l||{})}else r(m(c))},[o.search]),e.jsx(h.Provider,{value:{params:c,setParams:x,packages:a},children:s})},J=({children:s})=>{const r=v("div")` background: ${({theme:t})=>t.primaryColor}; padding: ${d?"60px 20px 20px 20px":"140px 40px 30px"}; margin-bottom: ${d?"100px":"40px"}; diff --git a/assets/index-Hx28RPSp.js b/assets/index-pyJuzCdB.js similarity index 99% rename from assets/index-Hx28RPSp.js rename to assets/index-pyJuzCdB.js index e4d05169..7084687e 100644 --- a/assets/index-Hx28RPSp.js +++ b/assets/index-pyJuzCdB.js @@ -1,4 +1,4 @@ -import{r as C,a as sn,g as Xn,b as h,b6 as E,b7 as B,ao as ve,b8 as ge,b9 as Ht,ba as de,bb as Gn,bc as H,bd as br,be as Jn,bf as Ct,bg as U,bh as Ne,bi as Te,bj as Kt,bk as Ye,bl as Zn,bm as ea,bn as re,bo as ne,bp as Re,bq as $t,br as ie,bs as qe,bt as ze,R as ta,bu as vt,bv as Qt,bw as er,bx as It,by as ra,bz as Dr,bA as kr,bB as na,bC as aa,bD as pn,bE as Sr,bF as ut,bG as dt,bH as oa,bI as sa,bJ as cn,bK as ln,bL as ia,bM as pa,bN as ca,bO as la,bP as ua,bQ as da,bR as Xe,bS as fa,bT as ha,bU as gt,bV as yt,bW as wt,bX as Cr,bY as _r,bZ as ma,q as ye,b_ as va,b$ as ga,f as ce,j as k,T as ya,s as Vt,ai as un,I as wa,ad as ba,n as Da,ae as ka,aK as dn,X as Sa,b3 as Ca,v as Ee,c0 as fn,D as hn,c1 as _a,c2 as xa,c3 as Ma,c4 as xr,aO as Ea,h as Pa,x as Oa,Z as Na,i as Ta,b0 as Ia,b1 as Ra,L as Ya,G as La}from"./index-Bjk_45MO.js";import{w as Aa}from"./warning-CKk5dc80.js";import{D as it,a as pt}from"./index-DFxyMfM2.js";import{a as Fa}from"./ResponsiveImage-wYxl3kWJ.js";import{C as ja}from"./index-DdavEOvA.js";function Ba(r,n){r.prototype=Object.create(n.prototype),r.prototype.constructor=r,Ut(r,n)}function Ut(r,n){return Ut=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ut(r,n)}function Wa(r,n){if(r==null)return{};var o={},t=Object.keys(r),e,s;for(s=0;s=0)&&(o[e]=r[e]);return o}function Mr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Ha(r,n,o){return r===n?!0:r.correspondingElement?r.correspondingElement.classList.contains(o):r.classList.contains(o)}function Ka(r,n,o){if(r===n)return!0;for(;r.parentNode||r.host;){if(r.parentNode&&Ha(r,n,o))return!0;r=r.parentNode||r.host}return r}function $a(r){return document.documentElement.clientWidth<=r.clientX||document.documentElement.clientHeight<=r.clientY}var Qa=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var n=!1,o=Object.defineProperty({},"passive",{get:function(){n=!0}}),t=function(){};return window.addEventListener("testPassiveEventSupport",t,o),window.removeEventListener("testPassiveEventSupport",t,o),n}};function Va(r){return r===void 0&&(r=0),function(){return++r}}var Ua=Va(),qt,ct={},Rt={},qa=["touchstart","touchmove"],za="ignore-react-onclickoutside";function Er(r,n){var o={},t=qa.indexOf(n)!==-1;return t&&qt&&(o.passive=!r.props.preventDefault),o}function _t(r,n){var o,t,e=r.displayName||r.name||"Component";return t=o=function(s){Ba(c,s);function c(i){var p;return p=s.call(this,i)||this,p.__outsideClickHandler=function(l){if(typeof p.__clickOutsideHandlerProp=="function"){p.__clickOutsideHandlerProp(l);return}var f=p.getInstance();if(typeof f.props.handleClickOutside=="function"){f.props.handleClickOutside(l);return}if(typeof f.handleClickOutside=="function"){f.handleClickOutside(l);return}throw new Error("WrappedComponent: "+e+" lacks a handleClickOutside(event) function for processing outside click events.")},p.__getComponentNode=function(){var l=p.getInstance();return n&&typeof n.setClickOutsideRef=="function"?n.setClickOutsideRef()(l):typeof l.setClickOutsideRef=="function"?l.setClickOutsideRef():sn.findDOMNode(l)},p.enableOnClickOutside=function(){if(!(typeof document>"u"||Rt[p._uid])){typeof qt>"u"&&(qt=Qa()),Rt[p._uid]=!0;var l=p.props.eventTypes;l.forEach||(l=[l]),ct[p._uid]=function(f){if(p.componentNode!==null&&(p.props.preventDefault&&f.preventDefault(),p.props.stopPropagation&&f.stopPropagation(),!(p.props.excludeScrollbar&&$a(f)))){var m=f.composed&&f.composedPath&&f.composedPath().shift()||f.target;Ka(m,p.componentNode,p.props.outsideClickIgnoreClass)===document&&p.__outsideClickHandler(f)}},l.forEach(function(f){document.addEventListener(f,ct[p._uid],Er(Mr(p),f))})}},p.disableOnClickOutside=function(){delete Rt[p._uid];var l=ct[p._uid];if(l&&typeof document<"u"){var f=p.props.eventTypes;f.forEach||(f=[f]),f.forEach(function(m){return document.removeEventListener(m,l,Er(Mr(p),m))}),delete ct[p._uid]}},p.getRef=function(l){return p.instanceRef=l},p._uid=Ua(),p}var a=c.prototype;return a.getInstance=function(){if(r.prototype&&!r.prototype.isReactComponent)return this;var p=this.instanceRef;return p.getInstance?p.getInstance():p},a.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var p=this.getInstance();if(n&&typeof n.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=n.handleClickOutside(p),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+e+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},a.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},a.componentWillUnmount=function(){this.disableOnClickOutside()},a.render=function(){var p=this.props;p.excludeScrollbar;var l=Wa(p,["excludeScrollbar"]);return r.prototype&&r.prototype.isReactComponent?l.ref=this.getRef:l.wrappedRef=this.getRef,l.disableOnClickOutside=this.disableOnClickOutside,l.enableOnClickOutside=this.enableOnClickOutside,C.createElement(r,l)},c}(C.Component),o.displayName="OnClickOutside("+e+")",o.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:n&&n.excludeScrollbar||!1,outsideClickIgnoreClass:za,preventDefault:!1,stopPropagation:!1},o.getClass=function(){return r.getClass?r.getClass():r},t}var mn=C.createContext(),vn=C.createContext();function Xa(r){var n=r.children,o=C.useState(null),t=o[0],e=o[1],s=C.useRef(!1);C.useEffect(function(){return function(){s.current=!0}},[]);var c=C.useCallback(function(a){s.current||e(a)},[]);return C.createElement(mn.Provider,{value:t},C.createElement(vn.Provider,{value:c},n))}var gn=function(n){return Array.isArray(n)?n[0]:n},yn=function(n){if(typeof n=="function"){for(var o=arguments.length,t=new Array(o>1?o-1:0),e=1;e"u")return!1;var n=q(r).ShadowRoot;return r instanceof n||r instanceof ShadowRoot}function co(r){var n=r.state;Object.keys(n.elements).forEach(function(o){var t=n.styles[o]||{},e=n.attributes[o]||{},s=n.elements[o];!z(s)||!se(s)||(Object.assign(s.style,t),Object.keys(e).forEach(function(c){var a=e[c];a===!1?s.removeAttribute(c):s.setAttribute(c,a===!0?"":a)}))})}function lo(r){var n=r.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow),function(){Object.keys(n.elements).forEach(function(t){var e=n.elements[t],s=n.attributes[t]||{},c=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:o[t]),a=c.reduce(function(i,p){return i[p]="",i},{});!z(e)||!se(e)||(Object.assign(e.style,a),Object.keys(s).forEach(function(i){e.removeAttribute(i)}))})}}const uo={name:"applyStyles",enabled:!0,phase:"write",fn:co,effect:lo,requires:["computeStyles"]};function ae(r){return r.split("-")[0]}var xe=Math.max,bt=Math.min,Ae=Math.round;function Xt(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function Dn(){return!/^((?!chrome|android).)*safari/i.test(Xt())}function Fe(r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var t=r.getBoundingClientRect(),e=1,s=1;n&&z(r)&&(e=r.offsetWidth>0&&Ae(t.width)/r.offsetWidth||1,s=r.offsetHeight>0&&Ae(t.height)/r.offsetHeight||1);var c=Pe(r)?q(r):window,a=c.visualViewport,i=!Dn()&&o,p=(t.left+(i&&a?a.offsetLeft:0))/e,l=(t.top+(i&&a?a.offsetTop:0))/s,f=t.width/e,m=t.height/s;return{width:f,height:m,top:l,right:p+f,bottom:l+m,left:p,x:p,y:l}}function nr(r){var n=Fe(r),o=r.offsetWidth,t=r.offsetHeight;return Math.abs(n.width-o)<=1&&(o=n.width),Math.abs(n.height-t)<=1&&(t=n.height),{x:r.offsetLeft,y:r.offsetTop,width:o,height:t}}function kn(r,n){var o=n.getRootNode&&n.getRootNode();if(r.contains(n))return!0;if(o&&rr(o)){var t=n;do{if(t&&r.isSameNode(t))return!0;t=t.parentNode||t.host}while(t)}return!1}function pe(r){return q(r).getComputedStyle(r)}function fo(r){return["table","td","th"].indexOf(se(r))>=0}function we(r){return((Pe(r)?r.ownerDocument:r.document)||window.document).documentElement}function xt(r){return se(r)==="html"?r:r.assignedSlot||r.parentNode||(rr(r)?r.host:null)||we(r)}function Tr(r){return!z(r)||pe(r).position==="fixed"?null:r.offsetParent}function ho(r){var n=/firefox/i.test(Xt()),o=/Trident/i.test(Xt());if(o&&z(r)){var t=pe(r);if(t.position==="fixed")return null}var e=xt(r);for(rr(e)&&(e=e.host);z(e)&&["html","body"].indexOf(se(e))<0;){var s=pe(e);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||n&&s.willChange==="filter"||n&&s.filter&&s.filter!=="none")return e;e=e.parentNode}return null}function tt(r){for(var n=q(r),o=Tr(r);o&&fo(o)&&pe(o).position==="static";)o=Tr(o);return o&&(se(o)==="html"||se(o)==="body"&&pe(o).position==="static")?n:o||ho(r)||n}function ar(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function Qe(r,n,o){return xe(r,bt(n,o))}function mo(r,n,o){var t=Qe(r,n,o);return t>o?o:t}function Sn(){return{top:0,right:0,bottom:0,left:0}}function Cn(r){return Object.assign({},Sn(),r)}function _n(r,n){return n.reduce(function(o,t){return o[t]=r,o},{})}var vo=function(n,o){return n=typeof n=="function"?n(Object.assign({},o.rects,{placement:o.placement})):n,Cn(typeof n!="number"?n:_n(n,et))};function go(r){var n,o=r.state,t=r.name,e=r.options,s=o.elements.arrow,c=o.modifiersData.popperOffsets,a=ae(o.placement),i=ar(a),p=[Q,G].indexOf(a)>=0,l=p?"height":"width";if(!(!s||!c)){var f=vo(e.padding,o),m=nr(s),v=i==="y"?$:Q,g=i==="y"?X:G,y=o.rects.reference[l]+o.rects.reference[i]-c[i]-o.rects.popper[l],w=c[i]-o.rects.reference[i],S=tt(s),_=S?i==="y"?S.clientHeight||0:S.clientWidth||0:0,b=y/2-w/2,D=f[v],x=_-m[l]-f[g],M=_/2-m[l]/2+b,P=Qe(D,M,x),O=i;o.modifiersData[t]=(n={},n[O]=P,n.centerOffset=P-M,n)}}function yo(r){var n=r.state,o=r.options,t=o.element,e=t===void 0?"[data-popper-arrow]":t;e!=null&&(typeof e=="string"&&(e=n.elements.popper.querySelector(e),!e)||kn(n.elements.popper,e)&&(n.elements.arrow=e))}const wo={name:"arrow",enabled:!0,phase:"main",fn:go,effect:yo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function je(r){return r.split("-")[1]}var bo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Do(r,n){var o=r.x,t=r.y,e=n.devicePixelRatio||1;return{x:Ae(o*e)/e||0,y:Ae(t*e)/e||0}}function Ir(r){var n,o=r.popper,t=r.popperRect,e=r.placement,s=r.variation,c=r.offsets,a=r.position,i=r.gpuAcceleration,p=r.adaptive,l=r.roundOffsets,f=r.isFixed,m=c.x,v=m===void 0?0:m,g=c.y,y=g===void 0?0:g,w=typeof l=="function"?l({x:v,y}):{x:v,y};v=w.x,y=w.y;var S=c.hasOwnProperty("x"),_=c.hasOwnProperty("y"),b=Q,D=$,x=window;if(p){var M=tt(o),P="clientHeight",O="clientWidth";if(M===q(o)&&(M=we(o),pe(M).position!=="static"&&a==="absolute"&&(P="scrollHeight",O="scrollWidth")),M=M,e===$||(e===Q||e===G)&&s===Ge){D=X;var Y=f&&M===x&&x.visualViewport?x.visualViewport.height:M[P];y-=Y-t.height,y*=i?1:-1}if(e===Q||(e===$||e===X)&&s===Ge){b=G;var R=f&&M===x&&x.visualViewport?x.visualViewport.width:M[O];v-=R-t.width,v*=i?1:-1}}var W=Object.assign({position:a},p&&bo),J=l===!0?Do({x:v,y},q(o)):{x:v,y};if(v=J.x,y=J.y,i){var K;return Object.assign({},W,(K={},K[D]=_?"0":"",K[b]=S?"0":"",K.transform=(x.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",K))}return Object.assign({},W,(n={},n[D]=_?y+"px":"",n[b]=S?v+"px":"",n.transform="",n))}function ko(r){var n=r.state,o=r.options,t=o.gpuAcceleration,e=t===void 0?!0:t,s=o.adaptive,c=s===void 0?!0:s,a=o.roundOffsets,i=a===void 0?!0:a,p={placement:ae(n.placement),variation:je(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:e,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,Ir(Object.assign({},p,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:c,roundOffsets:i})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,Ir(Object.assign({},p,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const So={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ko,data:{}};var lt={passive:!0};function Co(r){var n=r.state,o=r.instance,t=r.options,e=t.scroll,s=e===void 0?!0:e,c=t.resize,a=c===void 0?!0:c,i=q(n.elements.popper),p=[].concat(n.scrollParents.reference,n.scrollParents.popper);return s&&p.forEach(function(l){l.addEventListener("scroll",o.update,lt)}),a&&i.addEventListener("resize",o.update,lt),function(){s&&p.forEach(function(l){l.removeEventListener("scroll",o.update,lt)}),a&&i.removeEventListener("resize",o.update,lt)}}const _o={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Co,data:{}};var xo={left:"right",right:"left",bottom:"top",top:"bottom"};function ft(r){return r.replace(/left|right|bottom|top/g,function(n){return xo[n]})}var Mo={start:"end",end:"start"};function Rr(r){return r.replace(/start|end/g,function(n){return Mo[n]})}function or(r){var n=q(r),o=n.pageXOffset,t=n.pageYOffset;return{scrollLeft:o,scrollTop:t}}function sr(r){return Fe(we(r)).left+or(r).scrollLeft}function Eo(r,n){var o=q(r),t=we(r),e=o.visualViewport,s=t.clientWidth,c=t.clientHeight,a=0,i=0;if(e){s=e.width,c=e.height;var p=Dn();(p||!p&&n==="fixed")&&(a=e.offsetLeft,i=e.offsetTop)}return{width:s,height:c,x:a+sr(r),y:i}}function Po(r){var n,o=we(r),t=or(r),e=(n=r.ownerDocument)==null?void 0:n.body,s=xe(o.scrollWidth,o.clientWidth,e?e.scrollWidth:0,e?e.clientWidth:0),c=xe(o.scrollHeight,o.clientHeight,e?e.scrollHeight:0,e?e.clientHeight:0),a=-t.scrollLeft+sr(r),i=-t.scrollTop;return pe(e||o).direction==="rtl"&&(a+=xe(o.clientWidth,e?e.clientWidth:0)-s),{width:s,height:c,x:a,y:i}}function ir(r){var n=pe(r),o=n.overflow,t=n.overflowX,e=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+e+t)}function xn(r){return["html","body","#document"].indexOf(se(r))>=0?r.ownerDocument.body:z(r)&&ir(r)?r:xn(xt(r))}function Ve(r,n){var o;n===void 0&&(n=[]);var t=xn(r),e=t===((o=r.ownerDocument)==null?void 0:o.body),s=q(t),c=e?[s].concat(s.visualViewport||[],ir(t)?t:[]):t,a=n.concat(c);return e?a:a.concat(Ve(xt(c)))}function Gt(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function Oo(r,n){var o=Fe(r,!1,n==="fixed");return o.top=o.top+r.clientTop,o.left=o.left+r.clientLeft,o.bottom=o.top+r.clientHeight,o.right=o.left+r.clientWidth,o.width=r.clientWidth,o.height=r.clientHeight,o.x=o.left,o.y=o.top,o}function Yr(r,n,o){return n===wn?Gt(Eo(r,o)):Pe(n)?Oo(n,o):Gt(Po(we(r)))}function No(r){var n=Ve(xt(r)),o=["absolute","fixed"].indexOf(pe(r).position)>=0,t=o&&z(r)?tt(r):r;return Pe(t)?n.filter(function(e){return Pe(e)&&kn(e,t)&&se(e)!=="body"}):[]}function To(r,n,o,t){var e=n==="clippingParents"?No(r):[].concat(n),s=[].concat(e,[o]),c=s[0],a=s.reduce(function(i,p){var l=Yr(r,p,t);return i.top=xe(l.top,i.top),i.right=bt(l.right,i.right),i.bottom=bt(l.bottom,i.bottom),i.left=xe(l.left,i.left),i},Yr(r,c,t));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Mn(r){var n=r.reference,o=r.element,t=r.placement,e=t?ae(t):null,s=t?je(t):null,c=n.x+n.width/2-o.width/2,a=n.y+n.height/2-o.height/2,i;switch(e){case $:i={x:c,y:n.y-o.height};break;case X:i={x:c,y:n.y+n.height};break;case G:i={x:n.x+n.width,y:a};break;case Q:i={x:n.x-o.width,y:a};break;default:i={x:n.x,y:n.y}}var p=e?ar(e):null;if(p!=null){var l=p==="y"?"height":"width";switch(s){case Le:i[p]=i[p]-(n[l]/2-o[l]/2);break;case Ge:i[p]=i[p]+(n[l]/2-o[l]/2);break}}return i}function Je(r,n){n===void 0&&(n={});var o=n,t=o.placement,e=t===void 0?r.placement:t,s=o.strategy,c=s===void 0?r.strategy:s,a=o.boundary,i=a===void 0?Ga:a,p=o.rootBoundary,l=p===void 0?wn:p,f=o.elementContext,m=f===void 0?Ke:f,v=o.altBoundary,g=v===void 0?!1:v,y=o.padding,w=y===void 0?0:y,S=Cn(typeof w!="number"?w:_n(w,et)),_=m===Ke?Ja:Ke,b=r.rects.popper,D=r.elements[g?_:m],x=To(Pe(D)?D:D.contextElement||we(r.elements.popper),i,l,c),M=Fe(r.elements.reference),P=Mn({reference:M,element:b,strategy:"absolute",placement:e}),O=Gt(Object.assign({},b,P)),Y=m===Ke?O:M,R={top:x.top-Y.top+S.top,bottom:Y.bottom-x.bottom+S.bottom,left:x.left-Y.left+S.left,right:Y.right-x.right+S.right},W=r.modifiersData.offset;if(m===Ke&&W){var J=W[e];Object.keys(R).forEach(function(K){var be=[G,X].indexOf(K)>=0?1:-1,De=[$,X].indexOf(K)>=0?"y":"x";R[K]+=J[De]*be})}return R}function Io(r,n){n===void 0&&(n={});var o=n,t=o.placement,e=o.boundary,s=o.rootBoundary,c=o.padding,a=o.flipVariations,i=o.allowedAutoPlacements,p=i===void 0?bn:i,l=je(t),f=l?a?Nr:Nr.filter(function(g){return je(g)===l}):et,m=f.filter(function(g){return p.indexOf(g)>=0});m.length===0&&(m=f);var v=m.reduce(function(g,y){return g[y]=Je(r,{placement:y,boundary:e,rootBoundary:s,padding:c})[ae(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function Ro(r){if(ae(r)===tr)return[];var n=ft(r);return[Rr(r),n,Rr(n)]}function Yo(r){var n=r.state,o=r.options,t=r.name;if(!n.modifiersData[t]._skip){for(var e=o.mainAxis,s=e===void 0?!0:e,c=o.altAxis,a=c===void 0?!0:c,i=o.fallbackPlacements,p=o.padding,l=o.boundary,f=o.rootBoundary,m=o.altBoundary,v=o.flipVariations,g=v===void 0?!0:v,y=o.allowedAutoPlacements,w=n.options.placement,S=ae(w),_=S===w,b=i||(_||!g?[ft(w)]:Ro(w)),D=[w].concat(b).reduce(function(Oe,le){return Oe.concat(ae(le)===tr?Io(n,{placement:le,boundary:l,rootBoundary:f,padding:p,flipVariations:g,allowedAutoPlacements:y}):le)},[]),x=n.rects.reference,M=n.rects.popper,P=new Map,O=!0,Y=D[0],R=0;R=0,De=be?"width":"height",V=Je(n,{placement:W,boundary:l,rootBoundary:f,altBoundary:m,padding:p}),Z=be?K?G:Q:K?X:$;x[De]>M[De]&&(Z=ft(Z));var rt=ft(Z),ke=[];if(s&&ke.push(V[J]<=0),a&&ke.push(V[Z]<=0,V[rt]<=0),ke.every(function(Oe){return Oe})){Y=W,O=!1;break}P.set(W,ke)}if(O)for(var nt=g?3:1,Pt=function(le){var He=D.find(function(ot){var Se=P.get(ot);if(Se)return Se.slice(0,le).every(function(Ot){return Ot})});if(He)return Y=He,"break"},We=nt;We>0;We--){var at=Pt(We);if(at==="break")break}n.placement!==Y&&(n.modifiersData[t]._skip=!0,n.placement=Y,n.reset=!0)}}const Lo={name:"flip",enabled:!0,phase:"main",fn:Yo,requiresIfExists:["offset"],data:{_skip:!1}};function Lr(r,n,o){return o===void 0&&(o={x:0,y:0}),{top:r.top-n.height-o.y,right:r.right-n.width+o.x,bottom:r.bottom-n.height+o.y,left:r.left-n.width-o.x}}function Ar(r){return[$,G,X,Q].some(function(n){return r[n]>=0})}function Ao(r){var n=r.state,o=r.name,t=n.rects.reference,e=n.rects.popper,s=n.modifiersData.preventOverflow,c=Je(n,{elementContext:"reference"}),a=Je(n,{altBoundary:!0}),i=Lr(c,t),p=Lr(a,e,s),l=Ar(i),f=Ar(p);n.modifiersData[o]={referenceClippingOffsets:i,popperEscapeOffsets:p,isReferenceHidden:l,hasPopperEscaped:f},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}const Fo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ao};function jo(r,n,o){var t=ae(r),e=[Q,$].indexOf(t)>=0?-1:1,s=typeof o=="function"?o(Object.assign({},n,{placement:r})):o,c=s[0],a=s[1];return c=c||0,a=(a||0)*e,[Q,G].indexOf(t)>=0?{x:a,y:c}:{x:c,y:a}}function Bo(r){var n=r.state,o=r.options,t=r.name,e=o.offset,s=e===void 0?[0,0]:e,c=bn.reduce(function(l,f){return l[f]=jo(f,n.rects,s),l},{}),a=c[n.placement],i=a.x,p=a.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=i,n.modifiersData.popperOffsets.y+=p),n.modifiersData[t]=c}const Wo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Bo};function Ho(r){var n=r.state,o=r.name;n.modifiersData[o]=Mn({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const Ko={name:"popperOffsets",enabled:!0,phase:"read",fn:Ho,data:{}};function $o(r){return r==="x"?"y":"x"}function Qo(r){var n=r.state,o=r.options,t=r.name,e=o.mainAxis,s=e===void 0?!0:e,c=o.altAxis,a=c===void 0?!1:c,i=o.boundary,p=o.rootBoundary,l=o.altBoundary,f=o.padding,m=o.tether,v=m===void 0?!0:m,g=o.tetherOffset,y=g===void 0?0:g,w=Je(n,{boundary:i,rootBoundary:p,padding:f,altBoundary:l}),S=ae(n.placement),_=je(n.placement),b=!_,D=ar(S),x=$o(D),M=n.modifiersData.popperOffsets,P=n.rects.reference,O=n.rects.popper,Y=typeof y=="function"?y(Object.assign({},n.rects,{placement:n.placement})):y,R=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),W=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,J={x:0,y:0};if(M){if(s){var K,be=D==="y"?$:Q,De=D==="y"?X:G,V=D==="y"?"height":"width",Z=M[D],rt=Z+w[be],ke=Z-w[De],nt=v?-O[V]/2:0,Pt=_===Le?P[V]:O[V],We=_===Le?-O[V]:-P[V],at=n.elements.arrow,Oe=v&&at?nr(at):{width:0,height:0},le=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:Sn(),He=le[be],ot=le[De],Se=Qe(0,P[V],Oe[V]),Ot=b?P[V]/2-nt-Se-He-R.mainAxis:Pt-Se-He-R.mainAxis,$n=b?-P[V]/2+nt+Se+ot+R.mainAxis:We+Se+ot+R.mainAxis,Nt=n.elements.arrow&&tt(n.elements.arrow),Qn=Nt?D==="y"?Nt.clientTop||0:Nt.clientLeft||0:0,ur=(K=W==null?void 0:W[D])!=null?K:0,Vn=Z+Ot-ur-Qn,Un=Z+$n-ur,dr=Qe(v?bt(rt,Vn):rt,Z,v?xe(ke,Un):ke);M[D]=dr,J[D]=dr-Z}if(a){var fr,qn=D==="x"?$:Q,zn=D==="x"?X:G,Ce=M[x],st=x==="y"?"height":"width",hr=Ce+w[qn],mr=Ce-w[zn],Tt=[$,Q].indexOf(S)!==-1,vr=(fr=W==null?void 0:W[x])!=null?fr:0,gr=Tt?hr:Ce-P[st]-O[st]-vr+R.altAxis,yr=Tt?Ce+P[st]+O[st]-vr-R.altAxis:mr,wr=v&&Tt?mo(gr,Ce,yr):Qe(v?gr:hr,Ce,v?yr:mr);M[x]=wr,J[x]=wr-Ce}n.modifiersData[t]=J}}const Vo={name:"preventOverflow",enabled:!0,phase:"main",fn:Qo,requiresIfExists:["offset"]};function Uo(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function qo(r){return r===q(r)||!z(r)?or(r):Uo(r)}function zo(r){var n=r.getBoundingClientRect(),o=Ae(n.width)/r.offsetWidth||1,t=Ae(n.height)/r.offsetHeight||1;return o!==1||t!==1}function Xo(r,n,o){o===void 0&&(o=!1);var t=z(n),e=z(n)&&zo(n),s=we(n),c=Fe(r,e,o),a={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(t||!t&&!o)&&((se(n)!=="body"||ir(s))&&(a=qo(n)),z(n)?(i=Fe(n,!0),i.x+=n.clientLeft,i.y+=n.clientTop):s&&(i.x=sr(s))),{x:c.left+a.scrollLeft-i.x,y:c.top+a.scrollTop-i.y,width:c.width,height:c.height}}function Go(r){var n=new Map,o=new Set,t=[];r.forEach(function(s){n.set(s.name,s)});function e(s){o.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(a){if(!o.has(a)){var i=n.get(a);i&&e(i)}}),t.push(s)}return r.forEach(function(s){o.has(s.name)||e(s)}),t}function Jo(r){var n=Go(r);return po.reduce(function(o,t){return o.concat(n.filter(function(e){return e.phase===t}))},[])}function Zo(r){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(r())})})),n}}function es(r){var n=r.reduce(function(o,t){var e=o[t.name];return o[t.name]=e?Object.assign({},e,t,{options:Object.assign({},e.options,t.options),data:Object.assign({},e.data,t.data)}):t,o},{});return Object.keys(n).map(function(o){return n[o]})}var Fr={placement:"bottom",modifiers:[],strategy:"absolute"};function jr(){for(var r=arguments.length,n=new Array(r),o=0;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,t=kt(r);if(n){var e=kt(this).constructor;o=Reflect.construct(t,arguments,e)}else o=t.apply(this,arguments);return function(s,c){if(c&&(typeof c=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(s)}(this,o)}}function Ze(r){return function(n){if(Array.isArray(n))return Yt(n)}(r)||function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}(r)||function(n,o){if(n){if(typeof n=="string")return Yt(n,o);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Yt(n,o)}}(r)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +import{r as C,a as sn,g as Xn,b as h,b6 as E,b7 as B,ao as ve,b8 as ge,b9 as Ht,ba as de,bb as Gn,bc as H,bd as br,be as Jn,bf as Ct,bg as U,bh as Ne,bi as Te,bj as Kt,bk as Ye,bl as Zn,bm as ea,bn as re,bo as ne,bp as Re,bq as $t,br as ie,bs as qe,bt as ze,R as ta,bu as vt,bv as Qt,bw as er,bx as It,by as ra,bz as Dr,bA as kr,bB as na,bC as aa,bD as pn,bE as Sr,bF as ut,bG as dt,bH as oa,bI as sa,bJ as cn,bK as ln,bL as ia,bM as pa,bN as ca,bO as la,bP as ua,bQ as da,bR as Xe,bS as fa,bT as ha,bU as gt,bV as yt,bW as wt,bX as Cr,bY as _r,bZ as ma,q as ye,b_ as va,b$ as ga,f as ce,j as k,T as ya,s as Vt,ai as un,I as wa,ad as ba,n as Da,ae as ka,aK as dn,X as Sa,b3 as Ca,v as Ee,c0 as fn,D as hn,c1 as _a,c2 as xa,c3 as Ma,c4 as xr,aO as Ea,h as Pa,x as Oa,Z as Na,i as Ta,b0 as Ia,b1 as Ra,L as Ya,G as La}from"./index-Cei2V9tG.js";import{w as Aa}from"./warning-CGLqHpsF.js";import{D as it,a as pt}from"./index-Csz5cVZF.js";import{a as Fa}from"./ResponsiveImage-CUm6fM86.js";import{C as ja}from"./index-CO3xj3k-.js";function Ba(r,n){r.prototype=Object.create(n.prototype),r.prototype.constructor=r,Ut(r,n)}function Ut(r,n){return Ut=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ut(r,n)}function Wa(r,n){if(r==null)return{};var o={},t=Object.keys(r),e,s;for(s=0;s=0)&&(o[e]=r[e]);return o}function Mr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Ha(r,n,o){return r===n?!0:r.correspondingElement?r.correspondingElement.classList.contains(o):r.classList.contains(o)}function Ka(r,n,o){if(r===n)return!0;for(;r.parentNode||r.host;){if(r.parentNode&&Ha(r,n,o))return!0;r=r.parentNode||r.host}return r}function $a(r){return document.documentElement.clientWidth<=r.clientX||document.documentElement.clientHeight<=r.clientY}var Qa=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var n=!1,o=Object.defineProperty({},"passive",{get:function(){n=!0}}),t=function(){};return window.addEventListener("testPassiveEventSupport",t,o),window.removeEventListener("testPassiveEventSupport",t,o),n}};function Va(r){return r===void 0&&(r=0),function(){return++r}}var Ua=Va(),qt,ct={},Rt={},qa=["touchstart","touchmove"],za="ignore-react-onclickoutside";function Er(r,n){var o={},t=qa.indexOf(n)!==-1;return t&&qt&&(o.passive=!r.props.preventDefault),o}function _t(r,n){var o,t,e=r.displayName||r.name||"Component";return t=o=function(s){Ba(c,s);function c(i){var p;return p=s.call(this,i)||this,p.__outsideClickHandler=function(l){if(typeof p.__clickOutsideHandlerProp=="function"){p.__clickOutsideHandlerProp(l);return}var f=p.getInstance();if(typeof f.props.handleClickOutside=="function"){f.props.handleClickOutside(l);return}if(typeof f.handleClickOutside=="function"){f.handleClickOutside(l);return}throw new Error("WrappedComponent: "+e+" lacks a handleClickOutside(event) function for processing outside click events.")},p.__getComponentNode=function(){var l=p.getInstance();return n&&typeof n.setClickOutsideRef=="function"?n.setClickOutsideRef()(l):typeof l.setClickOutsideRef=="function"?l.setClickOutsideRef():sn.findDOMNode(l)},p.enableOnClickOutside=function(){if(!(typeof document>"u"||Rt[p._uid])){typeof qt>"u"&&(qt=Qa()),Rt[p._uid]=!0;var l=p.props.eventTypes;l.forEach||(l=[l]),ct[p._uid]=function(f){if(p.componentNode!==null&&(p.props.preventDefault&&f.preventDefault(),p.props.stopPropagation&&f.stopPropagation(),!(p.props.excludeScrollbar&&$a(f)))){var m=f.composed&&f.composedPath&&f.composedPath().shift()||f.target;Ka(m,p.componentNode,p.props.outsideClickIgnoreClass)===document&&p.__outsideClickHandler(f)}},l.forEach(function(f){document.addEventListener(f,ct[p._uid],Er(Mr(p),f))})}},p.disableOnClickOutside=function(){delete Rt[p._uid];var l=ct[p._uid];if(l&&typeof document<"u"){var f=p.props.eventTypes;f.forEach||(f=[f]),f.forEach(function(m){return document.removeEventListener(m,l,Er(Mr(p),m))}),delete ct[p._uid]}},p.getRef=function(l){return p.instanceRef=l},p._uid=Ua(),p}var a=c.prototype;return a.getInstance=function(){if(r.prototype&&!r.prototype.isReactComponent)return this;var p=this.instanceRef;return p.getInstance?p.getInstance():p},a.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var p=this.getInstance();if(n&&typeof n.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=n.handleClickOutside(p),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+e+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},a.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},a.componentWillUnmount=function(){this.disableOnClickOutside()},a.render=function(){var p=this.props;p.excludeScrollbar;var l=Wa(p,["excludeScrollbar"]);return r.prototype&&r.prototype.isReactComponent?l.ref=this.getRef:l.wrappedRef=this.getRef,l.disableOnClickOutside=this.disableOnClickOutside,l.enableOnClickOutside=this.enableOnClickOutside,C.createElement(r,l)},c}(C.Component),o.displayName="OnClickOutside("+e+")",o.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:n&&n.excludeScrollbar||!1,outsideClickIgnoreClass:za,preventDefault:!1,stopPropagation:!1},o.getClass=function(){return r.getClass?r.getClass():r},t}var mn=C.createContext(),vn=C.createContext();function Xa(r){var n=r.children,o=C.useState(null),t=o[0],e=o[1],s=C.useRef(!1);C.useEffect(function(){return function(){s.current=!0}},[]);var c=C.useCallback(function(a){s.current||e(a)},[]);return C.createElement(mn.Provider,{value:t},C.createElement(vn.Provider,{value:c},n))}var gn=function(n){return Array.isArray(n)?n[0]:n},yn=function(n){if(typeof n=="function"){for(var o=arguments.length,t=new Array(o>1?o-1:0),e=1;e"u")return!1;var n=q(r).ShadowRoot;return r instanceof n||r instanceof ShadowRoot}function co(r){var n=r.state;Object.keys(n.elements).forEach(function(o){var t=n.styles[o]||{},e=n.attributes[o]||{},s=n.elements[o];!z(s)||!se(s)||(Object.assign(s.style,t),Object.keys(e).forEach(function(c){var a=e[c];a===!1?s.removeAttribute(c):s.setAttribute(c,a===!0?"":a)}))})}function lo(r){var n=r.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow),function(){Object.keys(n.elements).forEach(function(t){var e=n.elements[t],s=n.attributes[t]||{},c=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:o[t]),a=c.reduce(function(i,p){return i[p]="",i},{});!z(e)||!se(e)||(Object.assign(e.style,a),Object.keys(s).forEach(function(i){e.removeAttribute(i)}))})}}const uo={name:"applyStyles",enabled:!0,phase:"write",fn:co,effect:lo,requires:["computeStyles"]};function ae(r){return r.split("-")[0]}var xe=Math.max,bt=Math.min,Ae=Math.round;function Xt(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function Dn(){return!/^((?!chrome|android).)*safari/i.test(Xt())}function Fe(r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var t=r.getBoundingClientRect(),e=1,s=1;n&&z(r)&&(e=r.offsetWidth>0&&Ae(t.width)/r.offsetWidth||1,s=r.offsetHeight>0&&Ae(t.height)/r.offsetHeight||1);var c=Pe(r)?q(r):window,a=c.visualViewport,i=!Dn()&&o,p=(t.left+(i&&a?a.offsetLeft:0))/e,l=(t.top+(i&&a?a.offsetTop:0))/s,f=t.width/e,m=t.height/s;return{width:f,height:m,top:l,right:p+f,bottom:l+m,left:p,x:p,y:l}}function nr(r){var n=Fe(r),o=r.offsetWidth,t=r.offsetHeight;return Math.abs(n.width-o)<=1&&(o=n.width),Math.abs(n.height-t)<=1&&(t=n.height),{x:r.offsetLeft,y:r.offsetTop,width:o,height:t}}function kn(r,n){var o=n.getRootNode&&n.getRootNode();if(r.contains(n))return!0;if(o&&rr(o)){var t=n;do{if(t&&r.isSameNode(t))return!0;t=t.parentNode||t.host}while(t)}return!1}function pe(r){return q(r).getComputedStyle(r)}function fo(r){return["table","td","th"].indexOf(se(r))>=0}function we(r){return((Pe(r)?r.ownerDocument:r.document)||window.document).documentElement}function xt(r){return se(r)==="html"?r:r.assignedSlot||r.parentNode||(rr(r)?r.host:null)||we(r)}function Tr(r){return!z(r)||pe(r).position==="fixed"?null:r.offsetParent}function ho(r){var n=/firefox/i.test(Xt()),o=/Trident/i.test(Xt());if(o&&z(r)){var t=pe(r);if(t.position==="fixed")return null}var e=xt(r);for(rr(e)&&(e=e.host);z(e)&&["html","body"].indexOf(se(e))<0;){var s=pe(e);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||n&&s.willChange==="filter"||n&&s.filter&&s.filter!=="none")return e;e=e.parentNode}return null}function tt(r){for(var n=q(r),o=Tr(r);o&&fo(o)&&pe(o).position==="static";)o=Tr(o);return o&&(se(o)==="html"||se(o)==="body"&&pe(o).position==="static")?n:o||ho(r)||n}function ar(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function Qe(r,n,o){return xe(r,bt(n,o))}function mo(r,n,o){var t=Qe(r,n,o);return t>o?o:t}function Sn(){return{top:0,right:0,bottom:0,left:0}}function Cn(r){return Object.assign({},Sn(),r)}function _n(r,n){return n.reduce(function(o,t){return o[t]=r,o},{})}var vo=function(n,o){return n=typeof n=="function"?n(Object.assign({},o.rects,{placement:o.placement})):n,Cn(typeof n!="number"?n:_n(n,et))};function go(r){var n,o=r.state,t=r.name,e=r.options,s=o.elements.arrow,c=o.modifiersData.popperOffsets,a=ae(o.placement),i=ar(a),p=[Q,G].indexOf(a)>=0,l=p?"height":"width";if(!(!s||!c)){var f=vo(e.padding,o),m=nr(s),v=i==="y"?$:Q,g=i==="y"?X:G,y=o.rects.reference[l]+o.rects.reference[i]-c[i]-o.rects.popper[l],w=c[i]-o.rects.reference[i],S=tt(s),_=S?i==="y"?S.clientHeight||0:S.clientWidth||0:0,b=y/2-w/2,D=f[v],x=_-m[l]-f[g],M=_/2-m[l]/2+b,P=Qe(D,M,x),O=i;o.modifiersData[t]=(n={},n[O]=P,n.centerOffset=P-M,n)}}function yo(r){var n=r.state,o=r.options,t=o.element,e=t===void 0?"[data-popper-arrow]":t;e!=null&&(typeof e=="string"&&(e=n.elements.popper.querySelector(e),!e)||kn(n.elements.popper,e)&&(n.elements.arrow=e))}const wo={name:"arrow",enabled:!0,phase:"main",fn:go,effect:yo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function je(r){return r.split("-")[1]}var bo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Do(r,n){var o=r.x,t=r.y,e=n.devicePixelRatio||1;return{x:Ae(o*e)/e||0,y:Ae(t*e)/e||0}}function Ir(r){var n,o=r.popper,t=r.popperRect,e=r.placement,s=r.variation,c=r.offsets,a=r.position,i=r.gpuAcceleration,p=r.adaptive,l=r.roundOffsets,f=r.isFixed,m=c.x,v=m===void 0?0:m,g=c.y,y=g===void 0?0:g,w=typeof l=="function"?l({x:v,y}):{x:v,y};v=w.x,y=w.y;var S=c.hasOwnProperty("x"),_=c.hasOwnProperty("y"),b=Q,D=$,x=window;if(p){var M=tt(o),P="clientHeight",O="clientWidth";if(M===q(o)&&(M=we(o),pe(M).position!=="static"&&a==="absolute"&&(P="scrollHeight",O="scrollWidth")),M=M,e===$||(e===Q||e===G)&&s===Ge){D=X;var Y=f&&M===x&&x.visualViewport?x.visualViewport.height:M[P];y-=Y-t.height,y*=i?1:-1}if(e===Q||(e===$||e===X)&&s===Ge){b=G;var R=f&&M===x&&x.visualViewport?x.visualViewport.width:M[O];v-=R-t.width,v*=i?1:-1}}var W=Object.assign({position:a},p&&bo),J=l===!0?Do({x:v,y},q(o)):{x:v,y};if(v=J.x,y=J.y,i){var K;return Object.assign({},W,(K={},K[D]=_?"0":"",K[b]=S?"0":"",K.transform=(x.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",K))}return Object.assign({},W,(n={},n[D]=_?y+"px":"",n[b]=S?v+"px":"",n.transform="",n))}function ko(r){var n=r.state,o=r.options,t=o.gpuAcceleration,e=t===void 0?!0:t,s=o.adaptive,c=s===void 0?!0:s,a=o.roundOffsets,i=a===void 0?!0:a,p={placement:ae(n.placement),variation:je(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:e,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,Ir(Object.assign({},p,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:c,roundOffsets:i})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,Ir(Object.assign({},p,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const So={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ko,data:{}};var lt={passive:!0};function Co(r){var n=r.state,o=r.instance,t=r.options,e=t.scroll,s=e===void 0?!0:e,c=t.resize,a=c===void 0?!0:c,i=q(n.elements.popper),p=[].concat(n.scrollParents.reference,n.scrollParents.popper);return s&&p.forEach(function(l){l.addEventListener("scroll",o.update,lt)}),a&&i.addEventListener("resize",o.update,lt),function(){s&&p.forEach(function(l){l.removeEventListener("scroll",o.update,lt)}),a&&i.removeEventListener("resize",o.update,lt)}}const _o={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Co,data:{}};var xo={left:"right",right:"left",bottom:"top",top:"bottom"};function ft(r){return r.replace(/left|right|bottom|top/g,function(n){return xo[n]})}var Mo={start:"end",end:"start"};function Rr(r){return r.replace(/start|end/g,function(n){return Mo[n]})}function or(r){var n=q(r),o=n.pageXOffset,t=n.pageYOffset;return{scrollLeft:o,scrollTop:t}}function sr(r){return Fe(we(r)).left+or(r).scrollLeft}function Eo(r,n){var o=q(r),t=we(r),e=o.visualViewport,s=t.clientWidth,c=t.clientHeight,a=0,i=0;if(e){s=e.width,c=e.height;var p=Dn();(p||!p&&n==="fixed")&&(a=e.offsetLeft,i=e.offsetTop)}return{width:s,height:c,x:a+sr(r),y:i}}function Po(r){var n,o=we(r),t=or(r),e=(n=r.ownerDocument)==null?void 0:n.body,s=xe(o.scrollWidth,o.clientWidth,e?e.scrollWidth:0,e?e.clientWidth:0),c=xe(o.scrollHeight,o.clientHeight,e?e.scrollHeight:0,e?e.clientHeight:0),a=-t.scrollLeft+sr(r),i=-t.scrollTop;return pe(e||o).direction==="rtl"&&(a+=xe(o.clientWidth,e?e.clientWidth:0)-s),{width:s,height:c,x:a,y:i}}function ir(r){var n=pe(r),o=n.overflow,t=n.overflowX,e=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+e+t)}function xn(r){return["html","body","#document"].indexOf(se(r))>=0?r.ownerDocument.body:z(r)&&ir(r)?r:xn(xt(r))}function Ve(r,n){var o;n===void 0&&(n=[]);var t=xn(r),e=t===((o=r.ownerDocument)==null?void 0:o.body),s=q(t),c=e?[s].concat(s.visualViewport||[],ir(t)?t:[]):t,a=n.concat(c);return e?a:a.concat(Ve(xt(c)))}function Gt(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function Oo(r,n){var o=Fe(r,!1,n==="fixed");return o.top=o.top+r.clientTop,o.left=o.left+r.clientLeft,o.bottom=o.top+r.clientHeight,o.right=o.left+r.clientWidth,o.width=r.clientWidth,o.height=r.clientHeight,o.x=o.left,o.y=o.top,o}function Yr(r,n,o){return n===wn?Gt(Eo(r,o)):Pe(n)?Oo(n,o):Gt(Po(we(r)))}function No(r){var n=Ve(xt(r)),o=["absolute","fixed"].indexOf(pe(r).position)>=0,t=o&&z(r)?tt(r):r;return Pe(t)?n.filter(function(e){return Pe(e)&&kn(e,t)&&se(e)!=="body"}):[]}function To(r,n,o,t){var e=n==="clippingParents"?No(r):[].concat(n),s=[].concat(e,[o]),c=s[0],a=s.reduce(function(i,p){var l=Yr(r,p,t);return i.top=xe(l.top,i.top),i.right=bt(l.right,i.right),i.bottom=bt(l.bottom,i.bottom),i.left=xe(l.left,i.left),i},Yr(r,c,t));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Mn(r){var n=r.reference,o=r.element,t=r.placement,e=t?ae(t):null,s=t?je(t):null,c=n.x+n.width/2-o.width/2,a=n.y+n.height/2-o.height/2,i;switch(e){case $:i={x:c,y:n.y-o.height};break;case X:i={x:c,y:n.y+n.height};break;case G:i={x:n.x+n.width,y:a};break;case Q:i={x:n.x-o.width,y:a};break;default:i={x:n.x,y:n.y}}var p=e?ar(e):null;if(p!=null){var l=p==="y"?"height":"width";switch(s){case Le:i[p]=i[p]-(n[l]/2-o[l]/2);break;case Ge:i[p]=i[p]+(n[l]/2-o[l]/2);break}}return i}function Je(r,n){n===void 0&&(n={});var o=n,t=o.placement,e=t===void 0?r.placement:t,s=o.strategy,c=s===void 0?r.strategy:s,a=o.boundary,i=a===void 0?Ga:a,p=o.rootBoundary,l=p===void 0?wn:p,f=o.elementContext,m=f===void 0?Ke:f,v=o.altBoundary,g=v===void 0?!1:v,y=o.padding,w=y===void 0?0:y,S=Cn(typeof w!="number"?w:_n(w,et)),_=m===Ke?Ja:Ke,b=r.rects.popper,D=r.elements[g?_:m],x=To(Pe(D)?D:D.contextElement||we(r.elements.popper),i,l,c),M=Fe(r.elements.reference),P=Mn({reference:M,element:b,strategy:"absolute",placement:e}),O=Gt(Object.assign({},b,P)),Y=m===Ke?O:M,R={top:x.top-Y.top+S.top,bottom:Y.bottom-x.bottom+S.bottom,left:x.left-Y.left+S.left,right:Y.right-x.right+S.right},W=r.modifiersData.offset;if(m===Ke&&W){var J=W[e];Object.keys(R).forEach(function(K){var be=[G,X].indexOf(K)>=0?1:-1,De=[$,X].indexOf(K)>=0?"y":"x";R[K]+=J[De]*be})}return R}function Io(r,n){n===void 0&&(n={});var o=n,t=o.placement,e=o.boundary,s=o.rootBoundary,c=o.padding,a=o.flipVariations,i=o.allowedAutoPlacements,p=i===void 0?bn:i,l=je(t),f=l?a?Nr:Nr.filter(function(g){return je(g)===l}):et,m=f.filter(function(g){return p.indexOf(g)>=0});m.length===0&&(m=f);var v=m.reduce(function(g,y){return g[y]=Je(r,{placement:y,boundary:e,rootBoundary:s,padding:c})[ae(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function Ro(r){if(ae(r)===tr)return[];var n=ft(r);return[Rr(r),n,Rr(n)]}function Yo(r){var n=r.state,o=r.options,t=r.name;if(!n.modifiersData[t]._skip){for(var e=o.mainAxis,s=e===void 0?!0:e,c=o.altAxis,a=c===void 0?!0:c,i=o.fallbackPlacements,p=o.padding,l=o.boundary,f=o.rootBoundary,m=o.altBoundary,v=o.flipVariations,g=v===void 0?!0:v,y=o.allowedAutoPlacements,w=n.options.placement,S=ae(w),_=S===w,b=i||(_||!g?[ft(w)]:Ro(w)),D=[w].concat(b).reduce(function(Oe,le){return Oe.concat(ae(le)===tr?Io(n,{placement:le,boundary:l,rootBoundary:f,padding:p,flipVariations:g,allowedAutoPlacements:y}):le)},[]),x=n.rects.reference,M=n.rects.popper,P=new Map,O=!0,Y=D[0],R=0;R=0,De=be?"width":"height",V=Je(n,{placement:W,boundary:l,rootBoundary:f,altBoundary:m,padding:p}),Z=be?K?G:Q:K?X:$;x[De]>M[De]&&(Z=ft(Z));var rt=ft(Z),ke=[];if(s&&ke.push(V[J]<=0),a&&ke.push(V[Z]<=0,V[rt]<=0),ke.every(function(Oe){return Oe})){Y=W,O=!1;break}P.set(W,ke)}if(O)for(var nt=g?3:1,Pt=function(le){var He=D.find(function(ot){var Se=P.get(ot);if(Se)return Se.slice(0,le).every(function(Ot){return Ot})});if(He)return Y=He,"break"},We=nt;We>0;We--){var at=Pt(We);if(at==="break")break}n.placement!==Y&&(n.modifiersData[t]._skip=!0,n.placement=Y,n.reset=!0)}}const Lo={name:"flip",enabled:!0,phase:"main",fn:Yo,requiresIfExists:["offset"],data:{_skip:!1}};function Lr(r,n,o){return o===void 0&&(o={x:0,y:0}),{top:r.top-n.height-o.y,right:r.right-n.width+o.x,bottom:r.bottom-n.height+o.y,left:r.left-n.width-o.x}}function Ar(r){return[$,G,X,Q].some(function(n){return r[n]>=0})}function Ao(r){var n=r.state,o=r.name,t=n.rects.reference,e=n.rects.popper,s=n.modifiersData.preventOverflow,c=Je(n,{elementContext:"reference"}),a=Je(n,{altBoundary:!0}),i=Lr(c,t),p=Lr(a,e,s),l=Ar(i),f=Ar(p);n.modifiersData[o]={referenceClippingOffsets:i,popperEscapeOffsets:p,isReferenceHidden:l,hasPopperEscaped:f},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}const Fo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ao};function jo(r,n,o){var t=ae(r),e=[Q,$].indexOf(t)>=0?-1:1,s=typeof o=="function"?o(Object.assign({},n,{placement:r})):o,c=s[0],a=s[1];return c=c||0,a=(a||0)*e,[Q,G].indexOf(t)>=0?{x:a,y:c}:{x:c,y:a}}function Bo(r){var n=r.state,o=r.options,t=r.name,e=o.offset,s=e===void 0?[0,0]:e,c=bn.reduce(function(l,f){return l[f]=jo(f,n.rects,s),l},{}),a=c[n.placement],i=a.x,p=a.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=i,n.modifiersData.popperOffsets.y+=p),n.modifiersData[t]=c}const Wo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Bo};function Ho(r){var n=r.state,o=r.name;n.modifiersData[o]=Mn({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const Ko={name:"popperOffsets",enabled:!0,phase:"read",fn:Ho,data:{}};function $o(r){return r==="x"?"y":"x"}function Qo(r){var n=r.state,o=r.options,t=r.name,e=o.mainAxis,s=e===void 0?!0:e,c=o.altAxis,a=c===void 0?!1:c,i=o.boundary,p=o.rootBoundary,l=o.altBoundary,f=o.padding,m=o.tether,v=m===void 0?!0:m,g=o.tetherOffset,y=g===void 0?0:g,w=Je(n,{boundary:i,rootBoundary:p,padding:f,altBoundary:l}),S=ae(n.placement),_=je(n.placement),b=!_,D=ar(S),x=$o(D),M=n.modifiersData.popperOffsets,P=n.rects.reference,O=n.rects.popper,Y=typeof y=="function"?y(Object.assign({},n.rects,{placement:n.placement})):y,R=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),W=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,J={x:0,y:0};if(M){if(s){var K,be=D==="y"?$:Q,De=D==="y"?X:G,V=D==="y"?"height":"width",Z=M[D],rt=Z+w[be],ke=Z-w[De],nt=v?-O[V]/2:0,Pt=_===Le?P[V]:O[V],We=_===Le?-O[V]:-P[V],at=n.elements.arrow,Oe=v&&at?nr(at):{width:0,height:0},le=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:Sn(),He=le[be],ot=le[De],Se=Qe(0,P[V],Oe[V]),Ot=b?P[V]/2-nt-Se-He-R.mainAxis:Pt-Se-He-R.mainAxis,$n=b?-P[V]/2+nt+Se+ot+R.mainAxis:We+Se+ot+R.mainAxis,Nt=n.elements.arrow&&tt(n.elements.arrow),Qn=Nt?D==="y"?Nt.clientTop||0:Nt.clientLeft||0:0,ur=(K=W==null?void 0:W[D])!=null?K:0,Vn=Z+Ot-ur-Qn,Un=Z+$n-ur,dr=Qe(v?bt(rt,Vn):rt,Z,v?xe(ke,Un):ke);M[D]=dr,J[D]=dr-Z}if(a){var fr,qn=D==="x"?$:Q,zn=D==="x"?X:G,Ce=M[x],st=x==="y"?"height":"width",hr=Ce+w[qn],mr=Ce-w[zn],Tt=[$,Q].indexOf(S)!==-1,vr=(fr=W==null?void 0:W[x])!=null?fr:0,gr=Tt?hr:Ce-P[st]-O[st]-vr+R.altAxis,yr=Tt?Ce+P[st]+O[st]-vr-R.altAxis:mr,wr=v&&Tt?mo(gr,Ce,yr):Qe(v?gr:hr,Ce,v?yr:mr);M[x]=wr,J[x]=wr-Ce}n.modifiersData[t]=J}}const Vo={name:"preventOverflow",enabled:!0,phase:"main",fn:Qo,requiresIfExists:["offset"]};function Uo(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function qo(r){return r===q(r)||!z(r)?or(r):Uo(r)}function zo(r){var n=r.getBoundingClientRect(),o=Ae(n.width)/r.offsetWidth||1,t=Ae(n.height)/r.offsetHeight||1;return o!==1||t!==1}function Xo(r,n,o){o===void 0&&(o=!1);var t=z(n),e=z(n)&&zo(n),s=we(n),c=Fe(r,e,o),a={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(t||!t&&!o)&&((se(n)!=="body"||ir(s))&&(a=qo(n)),z(n)?(i=Fe(n,!0),i.x+=n.clientLeft,i.y+=n.clientTop):s&&(i.x=sr(s))),{x:c.left+a.scrollLeft-i.x,y:c.top+a.scrollTop-i.y,width:c.width,height:c.height}}function Go(r){var n=new Map,o=new Set,t=[];r.forEach(function(s){n.set(s.name,s)});function e(s){o.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(a){if(!o.has(a)){var i=n.get(a);i&&e(i)}}),t.push(s)}return r.forEach(function(s){o.has(s.name)||e(s)}),t}function Jo(r){var n=Go(r);return po.reduce(function(o,t){return o.concat(n.filter(function(e){return e.phase===t}))},[])}function Zo(r){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(r())})})),n}}function es(r){var n=r.reduce(function(o,t){var e=o[t.name];return o[t.name]=e?Object.assign({},e,t,{options:Object.assign({},e.options,t.options),data:Object.assign({},e.data,t.data)}):t,o},{});return Object.keys(n).map(function(o){return n[o]})}var Fr={placement:"bottom",modifiers:[],strategy:"absolute"};function jr(){for(var r=arguments.length,n=new Array(r),o=0;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,t=kt(r);if(n){var e=kt(this).constructor;o=Reflect.construct(t,arguments,e)}else o=t.apply(this,arguments);return function(s,c){if(c&&(typeof c=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(s)}(this,o)}}function Ze(r){return function(n){if(Array.isArray(n))return Yt(n)}(r)||function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}(r)||function(n,o){if(n){if(typeof n=="string")return Yt(n,o);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Yt(n,o)}}(r)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Yt(r,n){(n==null||n>r.length)&&(n=r.length);for(var o=0,t=new Array(n);o1&&arguments[1]!==void 0?arguments[1]:{},o=n.minDate,t=n.maxDate,e=n.excludeDates,s=n.excludeDateIntervals,c=n.includeDates,a=n.includeDateIntervals,i=n.filterDate;return Et(r,{minDate:o,maxDate:t})||e&&e.some(function(p){return T(r,p)})||s&&s.some(function(p){var l=p.start,f=p.end;return Xe(r,{start:l,end:f})})||c&&!c.some(function(p){return T(r,p)})||a&&!a.some(function(p){var l=p.start,f=p.end;return Xe(r,{start:l,end:f})})||i&&!i(N(r))||!1}function cr(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.excludeDates,t=n.excludeDateIntervals;return t&&t.length>0?t.some(function(e){var s=e.start,c=e.end;return Xe(r,{start:s,end:c})}):o&&o.some(function(e){return T(r,e)})||!1}function Nn(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.minDate,t=n.maxDate,e=n.excludeDates,s=n.includeDates,c=n.filterDate;return Et(r,{minDate:cn(o),maxDate:fa(t)})||e&&e.some(function(a){return ee(r,a)})||s&&!s.some(function(a){return ee(r,a)})||c&&!c(N(r))||!1}function Lt(r,n,o,t){var e=E(r),s=H(r),c=E(n),a=H(n),i=E(t);return e===c&&e===i?s<=o&&o<=a:e=o||ie:void 0}function ws(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.minDate,t=n.maxDate,e=n.excludeDates,s=n.includeDates,c=n.filterDate;return Et(r,{minDate:o,maxDate:t})||e&&e.some(function(a){return St(r,a)})||s&&!s.some(function(a){return St(r,a)})||c&&!c(N(r))||!1}function At(r,n,o){if(!vt(n)||!vt(o))return!1;var t=E(n),e=E(o);return t<=r&&e>=r}function Tn(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.minDate,t=n.maxDate,e=n.excludeDates,s=n.includeDates,c=n.filterDate,a=new Date(r,0,1);return Et(a,{minDate:ln(o),maxDate:ha(t)})||e&&e.some(function(i){return fe(a,i)})||s&&!s.some(function(i){return fe(a,i)})||c&&!c(N(a))||!1}function Ft(r,n,o,t){var e=E(r),s=Te(r),c=E(n),a=Te(n),i=E(t);return e===c&&e===i?s<=o&&o<=a:e=o||ie:void 0}function Et(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.minDate,t=n.maxDate;return o&>(r,o)<0||t&>(r,t)>0}function Ur(r,n){return n.some(function(o){return re(o)===re(r)&&ne(o)===ne(r)})}function qr(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.excludeTimes,t=n.includeTimes,e=n.filterTime;return o&&Ur(r,o)||t&&!Ur(r,t)||e&&!e(r)||!1}function zr(r,n){var o=n.minTime,t=n.maxTime;if(!o||!t)throw new Error("Both minTime and maxTime props required");var e,s=N(),c=ut(dt(s,ne(r)),re(r)),a=ut(dt(s,ne(o)),re(o)),i=ut(dt(s,ne(t)),re(t));try{e=!Xe(c,{start:a,end:i})}catch{e=!1}return e}function Xr(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.minDate,t=n.includeDates,e=Ye(r,1);return o&&yt(o,e)>0||t&&t.every(function(s){return yt(s,e)>0})||!1}function Gr(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.maxDate,t=n.includeDates,e=ge(r,1);return o&&yt(e,o)>0||t&&t.every(function(s){return yt(e,s)>0})||!1}function Jr(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.minDate,t=n.includeDates,e=qe(r,1);return o&&wt(o,e)>0||t&&t.every(function(s){return wt(s,e)>0})||!1}function Zr(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.maxDate,t=n.includeDates,e=ze(r,1);return o&&wt(e,o)>0||t&&t.every(function(s){return wt(e,s)>0})||!1}function In(r){var n=r.minDate,o=r.includeDates;if(o&&n){var t=o.filter(function(e){return gt(e,n)>=0});return Cr(t)}return o?Cr(o):n}function Rn(r){var n=r.maxDate,o=r.includeDates;if(o&&n){var t=o.filter(function(e){return gt(e,n)<=0});return _r(t)}return o?_r(o):n}function en(){for(var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",o=new Map,t=0,e=r.length;t0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",o=new Map;return r.forEach(function(t){var e=t.date,s=t.holidayName;if(er(e)){var c=I(e,"MM.dd.yyyy"),a=o.get(c)||{};if(!("className"in a)||a.className!==n||(i=a.holidayNames,p=[s],i.length!==p.length||!i.every(function(f,m){return f===p[m]}))){var i,p;a.className=n;var l=a.holidayNames;a.holidayNames=l?[].concat(Ze(l),[s]):[s],o.set(c,a)}}}),o}function Ds(r,n,o,t,e){for(var s=e.length,c=[],a=0;a1&&arguments[1]!==void 0?arguments[1]:Ue,o=Math.ceil(E(r)/n)*n;return{startPeriod:o-(n-1),endPeriod:o}}function rn(r){var n=r.getSeconds(),o=r.getMilliseconds();return pn(r.getTime()-1e3*n-o)}function ks(r,n,o,t){for(var e=[],s=0;s<2*n+1;s++){var c=r+n-s,a=!0;o&&(a=E(o)<=c),t&&a&&(a=E(t)>=c),a&&e.push(c)}return e}var Ss=_t(function(r){F(o,h.Component);var n=j(o);function o(t){var e;L(this,o),u(d(e=n.call(this,t)),"renderOptions",function(){var i=e.props.year,p=e.state.yearsList.map(function(m){return h.createElement("div",{className:i===m?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:m,onClick:e.onChange.bind(d(e),m),"aria-selected":i===m?"true":void 0},i===m?h.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",m)}),l=e.props.minDate?E(e.props.minDate):null,f=e.props.maxDate?E(e.props.maxDate):null;return f&&e.state.yearsList.find(function(m){return m===f})||p.unshift(h.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:e.incrementYears},h.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),l&&e.state.yearsList.find(function(m){return m===l})||p.push(h.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:e.decrementYears},h.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),p}),u(d(e),"onChange",function(i){e.props.onChange(i)}),u(d(e),"handleClickOutside",function(){e.props.onCancel()}),u(d(e),"shiftYears",function(i){var p=e.state.yearsList.map(function(l){return l+i});e.setState({yearsList:p})}),u(d(e),"incrementYears",function(){return e.shiftYears(1)}),u(d(e),"decrementYears",function(){return e.shiftYears(-1)});var s=t.yearDropdownItemNumber,c=t.scrollableYearDropdown,a=s||(c?10:5);return e.state={yearsList:ks(e.props.year,a,e.props.minDate,e.props.maxDate)},e.dropdownRef=C.createRef(),e}return A(o,[{key:"componentDidMount",value:function(){var t=this.dropdownRef.current;if(t){var e=t.children?Array.from(t.children):null,s=e?e.find(function(c){return c.ariaSelected}):null;t.scrollTop=s?s.offsetTop+(s.clientHeight-t.clientHeight)/2:(t.scrollHeight-t.clientHeight)/2}}},{key:"render",value:function(){var t=B({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return h.createElement("div",{className:t,ref:this.dropdownRef},this.renderOptions())}}]),o}()),Cs=function(r){F(o,h.Component);var n=j(o);function o(){var t;L(this,o);for(var e=arguments.length,s=new Array(e),c=0;c0?l.get(f).holidayNames.join(", "):""}),u(d(t),"getTabIndex",function(a,i){var p=a||t.props.selected,l=i||t.props.preSelection;return(!t.props.showWeekPicker||!t.props.showWeekNumber&&t.isStartOfWeek())&&(t.isKeyboardSelected()||t.isSameDay(p)&&T(l,p))?0:-1}),u(d(t),"handleFocusDay",function(){var a,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=!1;t.getTabIndex()===0&&!i.isInputFocused&&t.isSameDay(t.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(p=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(p=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(p=!0),t.props.monthShowsDuplicateDaysEnd&&t.isAfterMonth()&&(p=!1),t.props.monthShowsDuplicateDaysStart&&t.isBeforeMonth()&&(p=!1)),p&&((a=t.dayEl.current)===null||a===void 0||a.focus({preventScroll:!0}))}),u(d(t),"renderDayContents",function(){return t.props.monthShowsDuplicateDaysEnd&&t.isAfterMonth()||t.props.monthShowsDuplicateDaysStart&&t.isBeforeMonth()?null:t.props.renderDayContents?t.props.renderDayContents(br(t.props.day),t.props.day):br(t.props.day)}),u(d(t),"render",function(){return h.createElement("div",{ref:t.dayEl,className:t.getClassNames(t.props.day),onKeyDown:t.handleOnKeyDown,onClick:t.handleClick,onMouseEnter:t.handleMouseEnter,tabIndex:t.getTabIndex(),"aria-label":t.getAriaLabel(),role:"option",title:t.getTitle(),"aria-disabled":t.isDisabled(),"aria-current":t.isCurrentDay()?"date":void 0,"aria-selected":t.isSelected()||t.isInRange()},t.renderDayContents(),t.getTitle()!==""&&h.createElement("span",{className:"holiday-overlay"},t.getTitle()))}),t}return A(o,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(t){this.handleFocusDay(t)}}]),o}(),Ns=function(r){F(o,h.Component);var n=j(o);function o(){var t;L(this,o);for(var e=arguments.length,s=new Array(e),c=0;c0&&arguments[0]!==void 0?arguments[0]:{},i=!1;t.getTabIndex()===0&&!a.isInputFocused&&T(t.props.date,t.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(i=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(i=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(i=!0)),i&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})}),t}return A(o,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(t){this.handleFocusWeekNumber(t)}},{key:"render",value:function(){var t=this.props,e=t.weekNumber,s=t.ariaLabelPrefix,c=s===void 0?"week ":s,a={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!t.onClick,"react-datepicker__week-number--selected":T(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return h.createElement("div",{ref:this.weekNumberEl,className:B(a),"aria-label":"".concat(c," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},e)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),o}(),Ts=function(r){F(o,h.Component);var n=j(o);function o(){var t;L(this,o);for(var e=arguments.length,s=new Array(e),c=0;c=6,v=!i&&!t.isWeekInMonth(f);if(m||v){if(!t.props.peekNextMonth)break;l=!0}}return a}),u(d(t),"onMonthClick",function(a,i){t.handleDayClick(he(U(t.props.day,i)),a)}),u(d(t),"onMonthMouseEnter",function(a){t.handleDayMouseEnter(he(U(t.props.day,a)))}),u(d(t),"handleMonthNavigation",function(a,i){t.isDisabled(i)||t.isExcluded(i)||(t.props.setPreSelection(i),t.MONTH_REFS[a].current&&t.MONTH_REFS[a].current.focus())}),u(d(t),"onMonthKeyDown",function(a,i){var p=t.props,l=p.selected,f=p.preSelection,m=p.disabledKeyboardNavigation,v=p.showTwoColumnMonthYearPicker,g=p.showFourColumnMonthYearPicker,y=p.setPreSelection,w=a.key;if(w!=="Tab"&&a.preventDefault(),!m){var S=nn(g,v),_=jt[S].verticalNavigationOffset,b=jt[S].grid;switch(w){case"Enter":t.onMonthClick(a,i),y(l);break;case"ArrowRight":t.handleMonthNavigation(i===11?0:i+1,ge(f,1));break;case"ArrowLeft":t.handleMonthNavigation(i===0?11:i-1,Ye(f,1));break;case"ArrowUp":t.handleMonthNavigation(b[0].includes(i)?i+12-_:i-_,Ye(f,_));break;case"ArrowDown":t.handleMonthNavigation(b[b.length-1].includes(i)?i-12+_:i+_,ge(f,_))}}}),u(d(t),"onQuarterClick",function(a,i){t.handleDayClick(Qr(Ne(t.props.day,i)),a)}),u(d(t),"onQuarterMouseEnter",function(a){t.handleDayMouseEnter(Qr(Ne(t.props.day,a)))}),u(d(t),"handleQuarterNavigation",function(a,i){t.isDisabled(i)||t.isExcluded(i)||(t.props.setPreSelection(i),t.QUARTER_REFS[a-1].current&&t.QUARTER_REFS[a-1].current.focus())}),u(d(t),"onQuarterKeyDown",function(a,i){var p=a.key;if(!t.props.disabledKeyboardNavigation)switch(p){case"Enter":t.onQuarterClick(a,i),t.props.setPreSelection(t.props.selected);break;case"ArrowRight":t.handleQuarterNavigation(i===4?1:i+1,ea(t.props.preSelection,1));break;case"ArrowLeft":t.handleQuarterNavigation(i===1?4:i-1,Zn(t.props.preSelection,1))}}),u(d(t),"getMonthClassNames",function(a){var i=t.props,p=i.day,l=i.startDate,f=i.endDate,m=i.selected,v=i.minDate,g=i.maxDate,y=i.preSelection,w=i.monthClassName,S=i.excludeDates,_=i.includeDates,b=w?w(U(p,a)):void 0,D=U(p,a);return B("react-datepicker__month-text","react-datepicker__month-".concat(a),b,{"react-datepicker__month-text--disabled":(v||g||S||_)&&Nn(D,t.props),"react-datepicker__month-text--selected":t.isSelectedMonth(p,a,m),"react-datepicker__month-text--keyboard-selected":!t.props.disabledKeyboardNavigation&&H(y)===a,"react-datepicker__month-text--in-selecting-range":t.isInSelectingRangeMonth(a),"react-datepicker__month-text--in-range":Lt(l,f,a,p),"react-datepicker__month-text--range-start":t.isRangeStartMonth(a),"react-datepicker__month-text--range-end":t.isRangeEndMonth(a),"react-datepicker__month-text--selecting-range-start":t.isSelectingMonthRangeStart(a),"react-datepicker__month-text--selecting-range-end":t.isSelectingMonthRangeEnd(a),"react-datepicker__month-text--today":t.isCurrentMonth(p,a)})}),u(d(t),"getTabIndex",function(a){var i=H(t.props.preSelection);return t.props.disabledKeyboardNavigation||a!==i?"-1":"0"}),u(d(t),"getQuarterTabIndex",function(a){var i=Te(t.props.preSelection);return t.props.disabledKeyboardNavigation||a!==i?"-1":"0"}),u(d(t),"getAriaLabel",function(a){var i=t.props,p=i.chooseDayAriaLabelPrefix,l=p===void 0?"Choose":p,f=i.disabledDayAriaLabelPrefix,m=f===void 0?"Not available":f,v=i.day,g=U(v,a),y=t.isDisabled(g)||t.isExcluded(g)?m:l;return"".concat(y," ").concat(I(g,"MMMM yyyy"))}),u(d(t),"getQuarterClassNames",function(a){var i=t.props,p=i.day,l=i.startDate,f=i.endDate,m=i.selected,v=i.minDate,g=i.maxDate,y=i.preSelection,w=i.disabledKeyboardNavigation;return B("react-datepicker__quarter-text","react-datepicker__quarter-".concat(a),{"react-datepicker__quarter-text--disabled":(v||g)&&ws(Ne(p,a),t.props),"react-datepicker__quarter-text--selected":t.isSelectedQuarter(p,a,m),"react-datepicker__quarter-text--keyboard-selected":!w&&Te(y)===a,"react-datepicker__quarter-text--in-selecting-range":t.isInSelectingRangeQuarter(a),"react-datepicker__quarter-text--in-range":Ft(l,f,a,p),"react-datepicker__quarter-text--range-start":t.isRangeStartQuarter(a),"react-datepicker__quarter-text--range-end":t.isRangeEndQuarter(a)})}),u(d(t),"getMonthContent",function(a){var i=t.props,p=i.showFullMonthYearPicker,l=i.renderMonthContent,f=i.locale,m=i.day,v=On(a,f),g=pr(a,f);return l?l(a,v,g,m):p?g:v}),u(d(t),"getQuarterContent",function(a){var i=t.props,p=i.renderQuarterContent,l=function(f,m){return I(Ne(N(),f),"QQQ",m)}(a,i.locale);return p?p(a,l):l}),u(d(t),"renderMonths",function(){var a=t.props,i=a.showTwoColumnMonthYearPicker,p=a.showFourColumnMonthYearPicker,l=a.day,f=a.selected;return jt[nn(p,i)].grid.map(function(m,v){return h.createElement("div",{className:"react-datepicker__month-wrapper",key:v},m.map(function(g,y){return h.createElement("div",{ref:t.MONTH_REFS[g],key:y,onClick:function(w){t.onMonthClick(w,g)},onKeyDown:function(w){t.onMonthKeyDown(w,g)},onMouseEnter:function(){return t.onMonthMouseEnter(g)},tabIndex:t.getTabIndex(g),className:t.getMonthClassNames(g),role:"option","aria-label":t.getAriaLabel(g),"aria-current":t.isCurrentMonth(l,g)?"date":void 0,"aria-selected":t.isSelectedMonth(l,g,f)},t.getMonthContent(g))}))})}),u(d(t),"renderQuarters",function(){var a=t.props,i=a.day,p=a.selected;return h.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(l,f){return h.createElement("div",{key:f,ref:t.QUARTER_REFS[f],role:"option",onClick:function(m){t.onQuarterClick(m,l)},onKeyDown:function(m){t.onQuarterKeyDown(m,l)},onMouseEnter:function(){return t.onQuarterMouseEnter(l)},className:t.getQuarterClassNames(l),"aria-selected":t.isSelectedQuarter(i,l,p),tabIndex:t.getQuarterTabIndex(l),"aria-current":t.isCurrentQuarter(i,l)?"date":void 0},t.getQuarterContent(l))}))}),u(d(t),"getClassNames",function(){var a=t.props,i=a.selectingDate,p=a.selectsStart,l=a.selectsEnd,f=a.showMonthYearPicker,m=a.showQuarterYearPicker,v=a.showWeekPicker;return B("react-datepicker__month",{"react-datepicker__month--selecting-range":i&&(p||l)},{"react-datepicker__monthPicker":f},{"react-datepicker__quarterPicker":m},{"react-datepicker__weekPicker":v})}),t}return A(o,[{key:"render",value:function(){var t=this.props,e=t.showMonthYearPicker,s=t.showQuarterYearPicker,c=t.day,a=t.ariaLabelPrefix,i=a===void 0?"month ":a;return h.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(i," ").concat(I(c,"yyyy-MM")),role:"listbox"},e?this.renderMonths():s?this.renderQuarters():this.renderWeeks())}}]),o}(),Fn=function(r){F(o,h.Component);var n=j(o);function o(){var t;L(this,o);for(var e=arguments.length,s=new Array(e),c=0;c0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return As.some(function(a){return c.indexOf(a)>=0})})(s.target)&&e.props.onDropdownFocus()}),u(d(e),"getDateInView",function(){var s=e.props,c=s.preSelection,a=s.selected,i=s.openToDate,p=In(e.props),l=Rn(e.props),f=N(),m=i||a||c;return m||(p&&de(f,p)?p:l&&ve(f,l)?l:f)}),u(d(e),"increaseMonth",function(){e.setState(function(s){var c=s.date;return{date:ge(c,1)}},function(){return e.handleMonthChange(e.state.date)})}),u(d(e),"decreaseMonth",function(){e.setState(function(s){var c=s.date;return{date:Ye(c,1)}},function(){return e.handleMonthChange(e.state.date)})}),u(d(e),"handleDayClick",function(s,c,a){e.props.onSelect(s,c,a),e.props.setPreSelection&&e.props.setPreSelection(s)}),u(d(e),"handleDayMouseEnter",function(s){e.setState({selectingDate:s}),e.props.onDayMouseEnter&&e.props.onDayMouseEnter(s)}),u(d(e),"handleMonthMouseLeave",function(){e.setState({selectingDate:null}),e.props.onMonthMouseLeave&&e.props.onMonthMouseLeave()}),u(d(e),"handleYearMouseEnter",function(s,c){e.setState({selectingDate:ie(N(),c)}),e.props.onYearMouseEnter&&e.props.onYearMouseEnter(s,c)}),u(d(e),"handleYearMouseLeave",function(s,c){e.props.onYearMouseLeave&&e.props.onYearMouseLeave(s,c)}),u(d(e),"handleYearChange",function(s){e.props.onYearChange&&(e.props.onYearChange(s),e.setState({isRenderAriaLiveMessage:!0})),e.props.adjustDateOnChange&&(e.props.onSelect&&e.props.onSelect(s),e.props.setOpen&&e.props.setOpen(!0)),e.props.setPreSelection&&e.props.setPreSelection(s)}),u(d(e),"handleMonthChange",function(s){e.handleCustomMonthChange(s),e.props.adjustDateOnChange&&(e.props.onSelect&&e.props.onSelect(s),e.props.setOpen&&e.props.setOpen(!0)),e.props.setPreSelection&&e.props.setPreSelection(s)}),u(d(e),"handleCustomMonthChange",function(s){e.props.onMonthChange&&(e.props.onMonthChange(s),e.setState({isRenderAriaLiveMessage:!0}))}),u(d(e),"handleMonthYearChange",function(s){e.handleYearChange(s),e.handleMonthChange(s)}),u(d(e),"changeYear",function(s){e.setState(function(c){var a=c.date;return{date:ie(a,s)}},function(){return e.handleYearChange(e.state.date)})}),u(d(e),"changeMonth",function(s){e.setState(function(c){var a=c.date;return{date:U(a,s)}},function(){return e.handleMonthChange(e.state.date)})}),u(d(e),"changeMonthYear",function(s){e.setState(function(c){var a=c.date;return{date:ie(U(a,H(s)),E(s))}},function(){return e.handleMonthYearChange(e.state.date)})}),u(d(e),"header",function(){var s=oe(arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.state.date,e.props.locale,e.props.calendarStartDay),c=[];return e.props.showWeekNumbers&&c.push(h.createElement("div",{key:"W",className:"react-datepicker__day-name"},e.props.weekLabel||"#")),c.concat([0,1,2,3,4,5,6].map(function(a){var i=Ct(s,a),p=e.formatWeekday(i,e.props.locale),l=e.props.weekDayClassName?e.props.weekDayClassName(i):void 0;return h.createElement("div",{key:a,className:B("react-datepicker__day-name",l)},p)}))}),u(d(e),"formatWeekday",function(s,c){return e.props.formatWeekDay?function(a,i,p){return i(I(a,"EEEE",p))}(s,e.props.formatWeekDay,c):e.props.useWeekdaysShort?function(a,i){return I(a,"EEE",i)}(s,c):function(a,i){return I(a,"EEEEEE",i)}(s,c)}),u(d(e),"decreaseYear",function(){e.setState(function(s){var c=s.date;return{date:qe(c,e.props.showYearPicker?e.props.yearItemNumber:1)}},function(){return e.handleYearChange(e.state.date)})}),u(d(e),"clearSelectingDate",function(){e.setState({selectingDate:null})}),u(d(e),"renderPreviousButton",function(){if(!e.props.renderCustomHeader){var s;switch(!0){case e.props.showMonthYearPicker:s=Jr(e.state.date,e.props);break;case e.props.showYearPicker:s=function(S){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=_.minDate,D=_.yearItemNumber,x=D===void 0?Ue:D,M=Ie($e(qe(S,x)),x).endPeriod,P=b&&E(b);return P&&P>M||!1}(e.state.date,e.props);break;default:s=Xr(e.state.date,e.props)}if((e.props.forceShowMonthNavigation||e.props.showDisabledMonthNavigation||!s)&&!e.props.showTimeSelectOnly){var c=["react-datepicker__navigation","react-datepicker__navigation--previous"],a=e.decreaseMonth;(e.props.showMonthYearPicker||e.props.showQuarterYearPicker||e.props.showYearPicker)&&(a=e.decreaseYear),s&&e.props.showDisabledMonthNavigation&&(c.push("react-datepicker__navigation--previous--disabled"),a=null);var i=e.props.showMonthYearPicker||e.props.showQuarterYearPicker||e.props.showYearPicker,p=e.props,l=p.previousMonthButtonLabel,f=p.previousYearButtonLabel,m=e.props,v=m.previousMonthAriaLabel,g=v===void 0?typeof l=="string"?l:"Previous Month":v,y=m.previousYearAriaLabel,w=y===void 0?typeof f=="string"?f:"Previous Year":y;return h.createElement("button",{type:"button",className:c.join(" "),onClick:a,onKeyDown:e.props.handleOnKeyDown,"aria-label":i?w:g},h.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},i?e.props.previousYearButtonLabel:e.props.previousMonthButtonLabel))}}}),u(d(e),"increaseYear",function(){e.setState(function(s){var c=s.date;return{date:ze(c,e.props.showYearPicker?e.props.yearItemNumber:1)}},function(){return e.handleYearChange(e.state.date)})}),u(d(e),"renderNextButton",function(){if(!e.props.renderCustomHeader){var s;switch(!0){case e.props.showMonthYearPicker:s=Zr(e.state.date,e.props);break;case e.props.showYearPicker:s=function(S){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=_.maxDate,D=_.yearItemNumber,x=D===void 0?Ue:D,M=Ie(ze(S,x),x).startPeriod,P=b&&E(b);return P&&P0&&arguments[0]!==void 0?arguments[0]:e.state.date,c=["react-datepicker__current-month"];return e.props.showYearDropdown&&c.push("react-datepicker__current-month--hasYearDropdown"),e.props.showMonthDropdown&&c.push("react-datepicker__current-month--hasMonthDropdown"),e.props.showMonthYearDropdown&&c.push("react-datepicker__current-month--hasMonthYearDropdown"),h.createElement("div",{className:c.join(" ")},I(s,e.props.dateFormat,e.props.locale))}),u(d(e),"renderYearDropdown",function(){var s=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(e.props.showYearDropdown&&!s)return h.createElement(Cs,{adjustDateOnChange:e.props.adjustDateOnChange,date:e.state.date,onSelect:e.props.onSelect,setOpen:e.props.setOpen,dropdownMode:e.props.dropdownMode,onChange:e.changeYear,minDate:e.props.minDate,maxDate:e.props.maxDate,year:E(e.state.date),scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})}),u(d(e),"renderMonthDropdown",function(){var s=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(e.props.showMonthDropdown&&!s)return h.createElement(xs,{dropdownMode:e.props.dropdownMode,locale:e.props.locale,onChange:e.changeMonth,month:H(e.state.date),useShortMonthInDropdown:e.props.useShortMonthInDropdown})}),u(d(e),"renderMonthYearDropdown",function(){var s=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(e.props.showMonthYearDropdown&&!s)return h.createElement(Ps,{dropdownMode:e.props.dropdownMode,locale:e.props.locale,dateFormat:e.props.dateFormat,onChange:e.changeMonthYear,minDate:e.props.minDate,maxDate:e.props.maxDate,date:e.state.date,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown})}),u(d(e),"handleTodayButtonClick",function(s){e.props.onSelect(Vr(),s),e.props.setPreSelection&&e.props.setPreSelection(Vr())}),u(d(e),"renderTodayButton",function(){if(e.props.todayButton&&!e.props.showTimeSelectOnly)return h.createElement("div",{className:"react-datepicker__today-button",onClick:function(s){return e.handleTodayButtonClick(s)}},e.props.todayButton)}),u(d(e),"renderDefaultHeader",function(s){var c=s.monthDate,a=s.i;return h.createElement("div",{className:"react-datepicker__header ".concat(e.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},e.renderCurrentMonth(c),h.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(e.props.dropdownMode),onFocus:e.handleDropdownFocus},e.renderMonthDropdown(a!==0),e.renderMonthYearDropdown(a!==0),e.renderYearDropdown(a!==0)),h.createElement("div",{className:"react-datepicker__day-names"},e.header(c)))}),u(d(e),"renderCustomHeader",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=s.monthDate,a=s.i;if(e.props.showTimeSelect&&!e.state.monthContainer||e.props.showTimeSelectOnly)return null;var i=Xr(e.state.date,e.props),p=Gr(e.state.date,e.props),l=Jr(e.state.date,e.props),f=Zr(e.state.date,e.props),m=!e.props.showMonthYearPicker&&!e.props.showQuarterYearPicker&&!e.props.showYearPicker;return h.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:e.props.onDropdownFocus},e.props.renderCustomHeader(Dt(Dt({},e.state),{},{customHeaderCount:a,monthDate:c,changeMonth:e.changeMonth,changeYear:e.changeYear,decreaseMonth:e.decreaseMonth,increaseMonth:e.increaseMonth,decreaseYear:e.decreaseYear,increaseYear:e.increaseYear,prevMonthButtonDisabled:i,nextMonthButtonDisabled:p,prevYearButtonDisabled:l,nextYearButtonDisabled:f})),m&&h.createElement("div",{className:"react-datepicker__day-names"},e.header(c)))}),u(d(e),"renderYearHeader",function(){var s=e.state.date,c=e.props,a=c.showYearPicker,i=Ie(s,c.yearItemNumber),p=i.startPeriod,l=i.endPeriod;return h.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(p," - ").concat(l):E(s))}),u(d(e),"renderHeader",function(s){switch(!0){case e.props.renderCustomHeader!==void 0:return e.renderCustomHeader(s);case(e.props.showMonthYearPicker||e.props.showQuarterYearPicker||e.props.showYearPicker):return e.renderYearHeader(s);default:return e.renderDefaultHeader(s)}}),u(d(e),"renderMonths",function(){var s;if(!e.props.showTimeSelectOnly&&!e.props.showYearPicker){for(var c=[],a=e.props.showPreviousMonths?e.props.monthsShown-1:0,i=Ye(e.state.date,a),p=(s=e.props.monthSelectedIn)!==null&&s!==void 0?s:a,l=0;l0;c.push(h.createElement("div",{key:m,ref:function(y){e.monthContainer=y},className:"react-datepicker__month-container"},e.renderHeader({monthDate:f,i:l}),h.createElement(Is,{chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:e.props.weekAriaLabelPrefix,ariaLabelPrefix:e.props.monthAriaLabelPrefix,onChange:e.changeMonthYear,day:f,dayClassName:e.props.dayClassName,calendarStartDay:e.props.calendarStartDay,monthClassName:e.props.monthClassName,onDayClick:e.handleDayClick,handleOnKeyDown:e.props.handleOnDayKeyDown,onDayMouseEnter:e.handleDayMouseEnter,onMouseLeave:e.handleMonthMouseLeave,onWeekSelect:e.props.onWeekSelect,orderInDisplay:l,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,highlightDates:e.props.highlightDates,holidays:e.props.holidays,selectingDate:e.state.selectingDate,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,fixedHeight:e.props.fixedHeight,filterDate:e.props.filterDate,preSelection:e.props.preSelection,setPreSelection:e.props.setPreSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,showWeekNumbers:e.props.showWeekNumbers,startDate:e.props.startDate,endDate:e.props.endDate,peekNextMonth:e.props.peekNextMonth,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,renderDayContents:e.props.renderDayContents,renderMonthContent:e.props.renderMonthContent,renderQuarterContent:e.props.renderQuarterContent,renderYearContent:e.props.renderYearContent,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,showMonthYearPicker:e.props.showMonthYearPicker,showFullMonthYearPicker:e.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:e.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:e.props.showFourColumnMonthYearPicker,showYearPicker:e.props.showYearPicker,showQuarterYearPicker:e.props.showQuarterYearPicker,showWeekPicker:e.props.showWeekPicker,isInputFocused:e.props.isInputFocused,containerRef:e.containerRef,monthShowsDuplicateDaysEnd:v,monthShowsDuplicateDaysStart:g})))}return c}}),u(d(e),"renderYears",function(){if(!e.props.showTimeSelectOnly)return e.props.showYearPicker?h.createElement("div",{className:"react-datepicker__year--container"},e.renderHeader(),h.createElement(Rs,Be({onDayClick:e.handleDayClick,selectingDate:e.state.selectingDate,clearSelectingDate:e.clearSelectingDate,date:e.state.date},e.props,{onYearMouseEnter:e.handleYearMouseEnter,onYearMouseLeave:e.handleYearMouseLeave}))):void 0}),u(d(e),"renderTimeSection",function(){if(e.props.showTimeSelect&&(e.state.monthContainer||e.props.showTimeSelectOnly))return h.createElement(Fn,{selected:e.props.selected,openToDate:e.props.openToDate,onChange:e.props.onTimeChange,timeClassName:e.props.timeClassName,format:e.props.timeFormat,includeTimes:e.props.includeTimes,intervals:e.props.timeIntervals,minTime:e.props.minTime,maxTime:e.props.maxTime,excludeTimes:e.props.excludeTimes,filterTime:e.props.filterTime,timeCaption:e.props.timeCaption,todayButton:e.props.todayButton,showMonthDropdown:e.props.showMonthDropdown,showMonthYearDropdown:e.props.showMonthYearDropdown,showYearDropdown:e.props.showYearDropdown,withPortal:e.props.withPortal,monthRef:e.state.monthContainer,injectTimes:e.props.injectTimes,locale:e.props.locale,handleOnKeyDown:e.props.handleOnKeyDown,showTimeSelectOnly:e.props.showTimeSelectOnly})}),u(d(e),"renderInputTimeSection",function(){var s=new Date(e.props.selected),c=ue(s)&&e.props.selected?"".concat(tn(s.getHours()),":").concat(tn(s.getMinutes())):"";if(e.props.showTimeInput)return h.createElement(Ys,{date:s,timeString:c,timeInputLabel:e.props.timeInputLabel,onChange:e.props.onTimeChange,customTimeInput:e.props.customTimeInput})}),u(d(e),"renderAriaLiveRegion",function(){var s,c=Ie(e.state.date,e.props.yearItemNumber),a=c.startPeriod,i=c.endPeriod;return s=e.props.showYearPicker?"".concat(a," - ").concat(i):e.props.showMonthYearPicker||e.props.showQuarterYearPicker?E(e.state.date):"".concat(pr(H(e.state.date),e.props.locale)," ").concat(E(e.state.date)),h.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e.state.isRenderAriaLiveMessage&&s)}),u(d(e),"renderChildren",function(){if(e.props.children)return h.createElement("div",{className:"react-datepicker__children-container"},e.props.children)}),e.containerRef=h.createRef(),e.state={date:e.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},e}return A(o,[{key:"componentDidMount",value:function(){var t=this;this.props.showTimeSelect&&(this.assignMonthContainer=void t.setState({monthContainer:t.monthContainer}))}},{key:"componentDidUpdate",value:function(t){var e=this;if(!this.props.preSelection||T(this.props.preSelection,t.preSelection)&&this.props.monthSelectedIn===t.monthSelectedIn)this.props.openToDate&&!T(this.props.openToDate,t.openToDate)&&this.setState({date:this.props.openToDate});else{var s=!ee(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return s&&e.handleCustomMonthChange(e.state.date)})}}},{key:"render",value:function(){var t=this.props.container||Ls;return h.createElement("div",{style:{display:"contents"},ref:this.containerRef},h.createElement(t,{className:B("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:Ue}}}]),o}(),js=function(r){var n=r.icon,o=r.className,t=o===void 0?"":o,e=r.onClick,s="react-datepicker__calendar-icon";return h.isValidElement(n)?h.cloneElement(n,{className:"".concat(n.props.className||""," ").concat(s," ").concat(t),onClick:function(c){typeof n.props.onClick=="function"&&n.props.onClick(c),typeof e=="function"&&e(c)}}):typeof n=="string"?h.createElement("i",{className:"".concat(s," ").concat(n," ").concat(t),"aria-hidden":"true",onClick:e}):h.createElement("svg",{className:"".concat(s," ").concat(t),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:e},h.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},jn=function(r){F(o,h.Component);var n=j(o);function o(t){var e;return L(this,o),(e=n.call(this,t)).el=document.createElement("div"),e}return A(o,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return ta.createPortal(this.props.children,this.el)}}]),o}(),Bs=function(r){return!r.disabled&&r.tabIndex!==-1},Bn=function(r){F(o,h.Component);var n=j(o);function o(t){var e;return L(this,o),u(d(e=n.call(this,t)),"getTabChildren",function(){return Array.prototype.slice.call(e.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(Bs)}),u(d(e),"handleFocusStart",function(){var s=e.getTabChildren();s&&s.length>1&&s[s.length-1].focus()}),u(d(e),"handleFocusEnd",function(){var s=e.getTabChildren();s&&s.length>1&&s[0].focus()}),e.tabLoopRef=h.createRef(),e}return A(o,[{key:"render",value:function(){return this.props.enableTabLoop?h.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},h.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,h.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),o}(),Ws=function(r){F(o,h.Component);var n=j(o);function o(){return L(this,o),n.apply(this,arguments)}return A(o,[{key:"render",value:function(){var t,e=this.props,s=e.className,c=e.wrapperClassName,a=e.hidePopper,i=e.popperComponent,p=e.popperModifiers,l=e.popperPlacement,f=e.popperProps,m=e.targetComponent,v=e.enableTabLoop,g=e.popperOnKeyDown,y=e.portalId,w=e.portalHost;if(!a){var S=B("react-datepicker-popper",s);t=h.createElement(ms,Be({modifiers:p,placement:l},f),function(b){var D=b.ref,x=b.style,M=b.placement,P=b.arrowProps;return h.createElement(Bn,{enableTabLoop:v},h.createElement("div",{ref:D,style:x,className:S,"data-placement":M,onKeyDown:g},h.cloneElement(i,{arrowProps:P})))})}this.props.popperContainer&&(t=h.createElement(this.props.popperContainer,{},t)),y&&!a&&(t=h.createElement(jn,{portalId:y,portalHost:w},t));var _=B("react-datepicker-wrapper",c);return h.createElement(Xa,{className:"react-datepicker-manager"},h.createElement(vs,null,function(b){var D=b.ref;return h.createElement("div",{ref:D,className:_},m)}),t)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),o}(),an="react-datepicker-ignore-onclickoutside",Hs=_t(Fs),Bt="Date input not valid.",Ks=function(r){F(o,h.Component);var n=j(o);function o(t){var e;return L(this,o),u(d(e=n.call(this,t)),"getPreSelection",function(){return e.props.openToDate?e.props.openToDate:e.props.selectsEnd&&e.props.startDate?e.props.startDate:e.props.selectsStart&&e.props.endDate?e.props.endDate:N()}),u(d(e),"modifyHolidays",function(){var s;return(s=e.props.holidays)===null||s===void 0?void 0:s.reduce(function(c,a){var i=new Date(a.date);return vt(i)?[].concat(Ze(c),[Dt(Dt({},a),{},{date:i})]):c},[])}),u(d(e),"calcInitialState",function(){var s,c=e.getPreSelection(),a=In(e.props),i=Rn(e.props),p=a&&de(c,Re(a))?a:i&&ve(c,Qt(i))?i:c;return{open:e.props.startOpen||!1,preventFocus:!1,preSelection:(s=e.props.selectsRange?e.props.startDate:e.props.selected)!==null&&s!==void 0?s:p,highlightDates:en(e.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),u(d(e),"clearPreventFocusTimeout",function(){e.preventFocusTimeout&&clearTimeout(e.preventFocusTimeout)}),u(d(e),"setFocus",function(){e.input&&e.input.focus&&e.input.focus({preventScroll:!0})}),u(d(e),"setBlur",function(){e.input&&e.input.blur&&e.input.blur(),e.cancelFocusInput()}),u(d(e),"setOpen",function(s){var c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];e.setState({open:s,preSelection:s&&e.state.open?e.state.preSelection:e.calcInitialState().preSelection,lastPreSelectChange:Wt},function(){s||e.setState(function(a){return{focused:!!c&&a.focused}},function(){!c&&e.setBlur(),e.setState({inputValue:null})})})}),u(d(e),"inputOk",function(){return er(e.state.preSelection)}),u(d(e),"isCalendarOpen",function(){return e.props.open===void 0?e.state.open&&!e.props.disabled&&!e.props.readOnly:e.props.open}),u(d(e),"handleFocus",function(s){e.state.preventFocus||(e.props.onFocus(s),e.props.preventOpenOnFocus||e.props.readOnly||e.setOpen(!0)),e.setState({focused:!0})}),u(d(e),"sendFocusBackToInput",function(){e.preventFocusTimeout&&e.clearPreventFocusTimeout(),e.setState({preventFocus:!0},function(){e.preventFocusTimeout=setTimeout(function(){e.setFocus(),e.setState({preventFocus:!1})})})}),u(d(e),"cancelFocusInput",function(){clearTimeout(e.inputFocusTimeout),e.inputFocusTimeout=null}),u(d(e),"deferFocusInput",function(){e.cancelFocusInput(),e.inputFocusTimeout=setTimeout(function(){return e.setFocus()},1)}),u(d(e),"handleDropdownFocus",function(){e.cancelFocusInput()}),u(d(e),"handleBlur",function(s){(!e.state.open||e.props.withPortal||e.props.showTimeInput)&&e.props.onBlur(s),e.setState({focused:!1})}),u(d(e),"handleCalendarClickOutside",function(s){e.props.inline||e.setOpen(!1),e.props.onClickOutside(s),e.props.withPortal&&s.preventDefault()}),u(d(e),"handleChange",function(){for(var s=arguments.length,c=new Array(s),a=0;a0&&(g=It(p,l.slice(0,p.length),new Date)),ue(g)||(g=new Date(p))),ue(g)&&w?g:null));e.props.showTimeSelectOnly&&e.props.selected&&S&&!T(S,e.props.selected)&&(S=ra(e.props.selected,{hours:re(S),minutes:ne(S),seconds:Dr(S)})),!S&&i.target.value||(e.props.showWeekPicker&&(S=oe(S,e.props.locale,e.props.calendarStartDay)),e.setSelected(S,i,!0))}}),u(d(e),"handleSelect",function(s,c,a){if(e.props.shouldCloseOnSelect&&!e.props.showTimeSelect&&e.sendFocusBackToInput(),e.props.onChangeRaw&&e.props.onChangeRaw(c),e.props.showWeekPicker&&(s=oe(s,e.props.locale,e.props.calendarStartDay)),e.setSelected(s,c,!1,a),e.props.showDateSelect&&e.setState({isRenderAriaLiveMessage:!0}),!e.props.shouldCloseOnSelect||e.props.showTimeSelect)e.setPreSelection(s);else if(!e.props.inline){e.props.selectsRange||e.setOpen(!1);var i=e.props,p=i.startDate,l=i.endDate;!p||l||de(s,p)||e.setOpen(!1)}}),u(d(e),"setSelected",function(s,c,a,i){var p=s;if(e.props.showYearPicker){if(p!==null&&Tn(E(p),e.props))return}else if(e.props.showMonthYearPicker){if(p!==null&&Nn(p,e.props))return}else if(p!==null&&Mt(p,e.props))return;var l=e.props,f=l.onChange,m=l.selectsRange,v=l.startDate,g=l.endDate;if(!_e(e.props.selected,p)||e.props.allowSameDay||m)if(p!==null&&(!e.props.selected||a&&(e.props.showTimeSelect||e.props.showTimeSelectOnly||e.props.showTimeInput)||(p=$r(p,{hour:re(e.props.selected),minute:ne(e.props.selected),second:Dr(e.props.selected)})),e.props.inline||e.setState({preSelection:p}),e.props.focusSelectedMonth||e.setState({monthSelectedIn:i})),m){var y=v&&!g,w=v&&g;!v&&!g?f([p,null],c):y&&(de(p,v)?f([p,null],c):f([v,p],c)),w&&f([p,null],c)}else f(p,c);a||(e.props.onSelect(p,c),e.setState({inputValue:null}))}),u(d(e),"setPreSelection",function(s){var c=e.props.minDate!==void 0,a=e.props.maxDate!==void 0,i=!0;if(s){e.props.showWeekPicker&&(s=oe(s,e.props.locale,e.props.calendarStartDay));var p=Re(s);if(c&&a)i=mt(s,e.props.minDate,e.props.maxDate);else if(c){var l=Re(e.props.minDate);i=ve(s,l)||_e(p,l)}else if(a){var f=Qt(e.props.maxDate);i=de(s,f)||_e(p,f)}}i&&e.setState({preSelection:s})}),u(d(e),"toggleCalendar",function(){e.setOpen(!e.state.open)}),u(d(e),"handleTimeChange",function(s){var c=e.props.selected?e.props.selected:e.getPreSelection(),a=e.props.selected?s:$r(c,{hour:re(s),minute:ne(s)});e.setState({preSelection:a}),e.props.onChange(a),e.props.shouldCloseOnSelect&&(e.sendFocusBackToInput(),e.setOpen(!1)),e.props.showTimeInput&&e.setOpen(!0),(e.props.showTimeSelectOnly||e.props.showTimeSelect)&&e.setState({isRenderAriaLiveMessage:!0}),e.setState({inputValue:null})}),u(d(e),"onInputClick",function(){e.props.disabled||e.props.readOnly||e.setOpen(!0),e.props.onInputClick()}),u(d(e),"onInputKeyDown",function(s){e.props.onKeyDown(s);var c=s.key;if(e.state.open||e.props.inline||e.props.preventOpenOnFocus){if(e.state.open){if(c==="ArrowDown"||c==="ArrowUp"){s.preventDefault();var a=e.props.showWeekPicker&&e.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',i=e.calendar.componentNode&&e.calendar.componentNode.querySelector(a);return void(i&&i.focus({preventScroll:!0}))}var p=N(e.state.preSelection);c==="Enter"?(s.preventDefault(),e.inputOk()&&e.state.lastPreSelectChange===Wt?(e.handleSelect(p,s),!e.props.shouldCloseOnSelect&&e.setPreSelection(p)):e.setOpen(!1)):c==="Escape"?(s.preventDefault(),e.sendFocusBackToInput(),e.setOpen(!1)):c==="Tab"&&e.setOpen(!1),e.inputOk()||e.props.onInputError({code:1,msg:Bt})}}else c!=="ArrowDown"&&c!=="ArrowUp"&&c!=="Enter"||e.onInputClick()}),u(d(e),"onPortalKeyDown",function(s){s.key==="Escape"&&(s.preventDefault(),e.setState({preventFocus:!0},function(){e.setOpen(!1),setTimeout(function(){e.setFocus(),e.setState({preventFocus:!1})})}))}),u(d(e),"onDayKeyDown",function(s){e.props.onKeyDown(s);var c=s.key,a=N(e.state.preSelection);if(c==="Enter")s.preventDefault(),e.handleSelect(a,s),!e.props.shouldCloseOnSelect&&e.setPreSelection(a);else if(c==="Escape")s.preventDefault(),e.setOpen(!1),e.inputOk()||e.props.onInputError({code:1,msg:Bt});else if(!e.props.disabledKeyboardNavigation){var i;switch(c){case"ArrowLeft":i=e.props.showWeekPicker?kr(a,1):na(a,1);break;case"ArrowRight":i=e.props.showWeekPicker?Kt(a,1):Ct(a,1);break;case"ArrowUp":i=kr(a,1);break;case"ArrowDown":i=Kt(a,1);break;case"PageUp":i=Ye(a,1);break;case"PageDown":i=ge(a,1);break;case"Home":i=qe(a,1);break;case"End":i=ze(a,1);break;default:i=null}if(!i)return void(e.props.onInputError&&e.props.onInputError({code:1,msg:Bt}));if(s.preventDefault(),e.setState({lastPreSelectChange:Wt}),e.props.adjustDateOnChange&&e.setSelected(i),e.setPreSelection(i),e.props.inline){var p=H(a),l=H(i),f=E(a),m=E(i);p!==l||f!==m?e.setState({shouldFocusDayInline:!0}):e.setState({shouldFocusDayInline:!1})}}}),u(d(e),"onPopperKeyDown",function(s){s.key==="Escape"&&(s.preventDefault(),e.sendFocusBackToInput())}),u(d(e),"onClearClick",function(s){s&&s.preventDefault&&s.preventDefault(),e.sendFocusBackToInput(),e.props.selectsRange?e.props.onChange([null,null],s):e.props.onChange(null,s),e.setState({inputValue:null})}),u(d(e),"clear",function(){e.onClearClick()}),u(d(e),"onScroll",function(s){typeof e.props.closeOnScroll=="boolean"&&e.props.closeOnScroll?s.target!==document&&s.target!==document.documentElement&&s.target!==document.body||e.setOpen(!1):typeof e.props.closeOnScroll=="function"&&e.props.closeOnScroll(s)&&e.setOpen(!1)}),u(d(e),"renderCalendar",function(){return e.props.inline||e.isCalendarOpen()?h.createElement(Hs,{ref:function(s){e.calendar=s},locale:e.props.locale,calendarStartDay:e.props.calendarStartDay,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:e.props.weekAriaLabelPrefix,monthAriaLabelPrefix:e.props.monthAriaLabelPrefix,adjustDateOnChange:e.props.adjustDateOnChange,setOpen:e.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,dateFormat:e.props.dateFormatCalendar,useWeekdaysShort:e.props.useWeekdaysShort,formatWeekDay:e.props.formatWeekDay,dropdownMode:e.props.dropdownMode,selected:e.props.selected,preSelection:e.state.preSelection,onSelect:e.handleSelect,onWeekSelect:e.props.onWeekSelect,openToDate:e.props.openToDate,minDate:e.props.minDate,maxDate:e.props.maxDate,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,startDate:e.props.startDate,endDate:e.props.endDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,filterDate:e.props.filterDate,onClickOutside:e.handleCalendarClickOutside,formatWeekNumber:e.props.formatWeekNumber,highlightDates:e.state.highlightDates,holidays:bs(e.modifyHolidays()),includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,includeTimes:e.props.includeTimes,injectTimes:e.props.injectTimes,inline:e.props.inline,shouldFocusDayInline:e.state.shouldFocusDayInline,peekNextMonth:e.props.peekNextMonth,showMonthDropdown:e.props.showMonthDropdown,showPreviousMonths:e.props.showPreviousMonths,useShortMonthInDropdown:e.props.useShortMonthInDropdown,showMonthYearDropdown:e.props.showMonthYearDropdown,showWeekNumbers:e.props.showWeekNumbers,showYearDropdown:e.props.showYearDropdown,withPortal:e.props.withPortal,forceShowMonthNavigation:e.props.forceShowMonthNavigation,showDisabledMonthNavigation:e.props.showDisabledMonthNavigation,scrollableYearDropdown:e.props.scrollableYearDropdown,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown,todayButton:e.props.todayButton,weekLabel:e.props.weekLabel,outsideClickIgnoreClass:an,fixedHeight:e.props.fixedHeight,monthsShown:e.props.monthsShown,monthSelectedIn:e.state.monthSelectedIn,onDropdownFocus:e.handleDropdownFocus,onMonthChange:e.props.onMonthChange,onYearChange:e.props.onYearChange,dayClassName:e.props.dayClassName,weekDayClassName:e.props.weekDayClassName,monthClassName:e.props.monthClassName,timeClassName:e.props.timeClassName,showDateSelect:e.props.showDateSelect,showTimeSelect:e.props.showTimeSelect,showTimeSelectOnly:e.props.showTimeSelectOnly,onTimeChange:e.handleTimeChange,timeFormat:e.props.timeFormat,timeIntervals:e.props.timeIntervals,minTime:e.props.minTime,maxTime:e.props.maxTime,excludeTimes:e.props.excludeTimes,filterTime:e.props.filterTime,timeCaption:e.props.timeCaption,className:e.props.calendarClassName,container:e.props.calendarContainer,yearItemNumber:e.props.yearItemNumber,yearDropdownItemNumber:e.props.yearDropdownItemNumber,previousMonthAriaLabel:e.props.previousMonthAriaLabel,previousMonthButtonLabel:e.props.previousMonthButtonLabel,nextMonthAriaLabel:e.props.nextMonthAriaLabel,nextMonthButtonLabel:e.props.nextMonthButtonLabel,previousYearAriaLabel:e.props.previousYearAriaLabel,previousYearButtonLabel:e.props.previousYearButtonLabel,nextYearAriaLabel:e.props.nextYearAriaLabel,nextYearButtonLabel:e.props.nextYearButtonLabel,timeInputLabel:e.props.timeInputLabel,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderCustomHeader:e.props.renderCustomHeader,popperProps:e.props.popperProps,renderDayContents:e.props.renderDayContents,renderMonthContent:e.props.renderMonthContent,renderQuarterContent:e.props.renderQuarterContent,renderYearContent:e.props.renderYearContent,onDayMouseEnter:e.props.onDayMouseEnter,onMonthMouseLeave:e.props.onMonthMouseLeave,onYearMouseEnter:e.props.onYearMouseEnter,onYearMouseLeave:e.props.onYearMouseLeave,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,showTimeInput:e.props.showTimeInput,showMonthYearPicker:e.props.showMonthYearPicker,showFullMonthYearPicker:e.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:e.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:e.props.showFourColumnMonthYearPicker,showYearPicker:e.props.showYearPicker,showQuarterYearPicker:e.props.showQuarterYearPicker,showWeekPicker:e.props.showWeekPicker,showPopperArrow:e.props.showPopperArrow,excludeScrollbar:e.props.excludeScrollbar,handleOnKeyDown:e.props.onKeyDown,handleOnDayKeyDown:e.onDayKeyDown,isInputFocused:e.state.focused,customTimeInput:e.props.customTimeInput,setPreSelection:e.setPreSelection},e.props.children):null}),u(d(e),"renderAriaLiveRegion",function(){var s,c=e.props,a=c.dateFormat,i=c.locale,p=e.props.showTimeInput||e.props.showTimeSelect?"PPPPp":"PPPP";return s=e.props.selectsRange?"Selected start date: ".concat(te(e.props.startDate,{dateFormat:p,locale:i}),". ").concat(e.props.endDate?"End date: "+te(e.props.endDate,{dateFormat:p,locale:i}):""):e.props.showTimeSelectOnly?"Selected time: ".concat(te(e.props.selected,{dateFormat:a,locale:i})):e.props.showYearPicker?"Selected year: ".concat(te(e.props.selected,{dateFormat:"yyyy",locale:i})):e.props.showMonthYearPicker?"Selected month: ".concat(te(e.props.selected,{dateFormat:"MMMM yyyy",locale:i})):e.props.showQuarterYearPicker?"Selected quarter: ".concat(te(e.props.selected,{dateFormat:"yyyy, QQQ",locale:i})):"Selected date: ".concat(te(e.props.selected,{dateFormat:p,locale:i})),h.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},s)}),u(d(e),"renderDateInput",function(){var s,c=B(e.props.className,u({},an,e.state.open)),a=e.props.customInput||h.createElement("input",{type:"text"}),i=e.props.customInputRef||"ref",p=typeof e.props.value=="string"?e.props.value:typeof e.state.inputValue=="string"?e.state.inputValue:e.props.selectsRange?function(l,f,m){if(!l)return"";var v=te(l,m),g=f?te(f,m):"";return"".concat(v," - ").concat(g)}(e.props.startDate,e.props.endDate,e.props):te(e.props.selected,e.props);return h.cloneElement(a,(u(u(u(u(u(u(u(u(u(u(s={},i,function(l){e.input=l}),"value",p),"onBlur",e.handleBlur),"onChange",e.handleChange),"onClick",e.onInputClick),"onFocus",e.handleFocus),"onKeyDown",e.onInputKeyDown),"id",e.props.id),"name",e.props.name),"form",e.props.form),u(u(u(u(u(u(u(u(u(u(s,"autoFocus",e.props.autoFocus),"placeholder",e.props.placeholderText),"disabled",e.props.disabled),"autoComplete",e.props.autoComplete),"className",B(a.props.className,c)),"title",e.props.title),"readOnly",e.props.readOnly),"required",e.props.required),"tabIndex",e.props.tabIndex),"aria-describedby",e.props.ariaDescribedBy),u(u(u(s,"aria-invalid",e.props.ariaInvalid),"aria-labelledby",e.props.ariaLabelledBy),"aria-required",e.props.ariaRequired)))}),u(d(e),"renderClearButton",function(){var s=e.props,c=s.isClearable,a=s.disabled,i=s.selected,p=s.startDate,l=s.endDate,f=s.clearButtonTitle,m=s.clearButtonClassName,v=m===void 0?"":m,g=s.ariaLabelClose,y=g===void 0?"Close":g;return!c||i==null&&p==null&&l==null?null:h.createElement("button",{type:"button",className:B("react-datepicker__close-icon",v,{"react-datepicker__close-icon--disabled":a}),disabled:a,"aria-label":y,onClick:e.onClearClick,title:f,tabIndex:-1})}),e.state=e.calcInitialState(),e.preventFocusTimeout=null,e}return A(o,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(t,e){var s,c;t.inline&&(s=t.selected,c=this.props.selected,s&&c?H(s)!==H(c)||E(s)!==E(c):s!==c)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&t.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),t.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:en(this.props.highlightDates)}),e.focused||_e(t.selected,this.props.selected)||this.setState({inputValue:null}),e.open!==this.state.open&&(e.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),e.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var t=this.props,e=t.showIcon,s=t.icon,c=t.calendarIconClassname,a=t.toggleCalendarOnIconClick,i=this.state.open;return h.createElement("div",{className:"react-datepicker__input-container".concat(e?" react-datepicker__view-calendar-icon":"")},e&&h.createElement(js,Be({icon:s,className:"".concat(c," ").concat(i&&"react-datepicker-ignore-onclickoutside")},a?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var t=this.renderCalendar();if(this.props.inline)return t;if(this.props.withPortal){var e=this.state.open?h.createElement(Bn,{enableTabLoop:this.props.enableTabLoop},h.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},t)):null;return this.state.open&&this.props.portalId&&(e=h.createElement(jn,{portalId:this.props.portalId,portalHost:this.props.portalHost},e)),h.createElement("div",null,this.renderInputContainer(),e)}return h.createElement(Ws,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:t,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Ue,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),o}(),$s="input",Wt="navigate";const Qs=ye.div` .react-datepicker { font-family: ${({theme:r})=>r.font}; diff --git a/assets/index-DNvp70I6.js b/assets/index-rOJCcL2u.js similarity index 82% rename from assets/index-DNvp70I6.js rename to assets/index-rOJCcL2u.js index b9f3a059..53392d78 100644 --- a/assets/index-DNvp70I6.js +++ b/assets/index-rOJCcL2u.js @@ -1,4 +1,4 @@ -import{q as o,j as a,cz as s}from"./index-Bjk_45MO.js";const t=o.div` +import{q as o,j as a,cz as s}from"./index-Cei2V9tG.js";const t=o.div` margin-bottom: 36px; p { color: ${({theme:r})=>r.mode==="dark"?r.gray5:r.gray2}!important; diff --git a/assets/my-certificates-G3MAEnYh.js b/assets/my-certificates-C2kjqqxe.js similarity index 91% rename from assets/my-certificates-G3MAEnYh.js rename to assets/my-certificates-C2kjqqxe.js index 1bcd495e..73a57f31 100644 --- a/assets/my-certificates-G3MAEnYh.js +++ b/assets/my-certificates-C2kjqqxe.js @@ -1,4 +1,4 @@ -import{q as f,r as x,D as C,f as m,j as t,s,w as p,m as j,T as h,Z as y,cF as P}from"./index-Bjk_45MO.js";import{P as b}from"./index-CaBsIUEq.js";import{u as T}from"./useDownloadCertificate-CojJpn-m.js";import"./index-waE41t0D.js";const w=f.section` +import{q as f,r as x,D as C,f as m,j as t,s,w as p,m as j,T as h,Z as y,cF as P}from"./index-Cei2V9tG.js";import{P as b}from"./index-BstSZKJJ.js";import{u as T}from"./useDownloadCertificate-B4BL8h3F.js";import"./index-CAbbcEiW.js";const w=f.section` .empty-certificates-message { background: ${({theme:e})=>e.mode==="dark"?e.gray1:e.gray5}; } diff --git a/assets/my-consultations-CKCLPfxu.js b/assets/my-consultations-C2Igpe3s.js similarity index 94% rename from assets/my-consultations-CKCLPfxu.js rename to assets/my-consultations-C2Igpe3s.js index a327d10b..362cc82d 100644 --- a/assets/my-consultations-CKCLPfxu.js +++ b/assets/my-consultations-C2Igpe3s.js @@ -1,4 +1,4 @@ -import{r as i,h as P,f as x,j as e,Z as _,s as m,n as b,w as h,q as c,L as I,b0 as y,b1 as E,ai as A,ar as v,X as M,b2 as N,g as L,D as w,aL as T,b3 as S,b4 as U,v as R,b5 as k,G as B}from"./index-Bjk_45MO.js";import{P as F}from"./index-CaBsIUEq.js";import{T as $}from"./Tabs-DeLQ6nIG.js";import{a as G}from"./ResponsiveImage-wYxl3kWJ.js";import{C as O}from"./index-DdavEOvA.js";import{D as p,a as C}from"./index-DFxyMfM2.js";import{P as W,C as q,a as K}from"./index-Hx28RPSp.js";import{u as z}from"./useRoles-DhUVqcxA.js";import"./index-waE41t0D.js";import"./warning-CKk5dc80.js";const H=({type:t})=>{var d;const{userConsultations:s,fetchUserConsultations:o}=i.useContext(P.EscolaLMSContext),{t:n}=x(),r=i.useMemo(()=>{var a;return((a=s.list)==null?void 0:a.data.filter(l=>t===j.STARTED||t===j.UPCOMING?l.in_coming||l.is_started:l.is_ended))||[]},[t,(d=s.list)==null?void 0:d.data]);return i.useEffect(()=>{o()},[t,o]),e.jsx(W,{children:s.loading?e.jsx(_,{}):r.length===0?e.jsx(m.Text,{style:{paddingLeft:b?20:40},children:n("MyProfilePage.OrdersEmpty")}):e.jsx(h.Row,{style:{gap:"30px 0"},children:r.map(a=>e.jsx(h.Col,{xs:12,md:6,lg:4,children:e.jsx(q,{consultation:a})},a.id))})})},g=i.memo(H),X=c.div` +import{r as i,h as P,f as x,j as e,Z as _,s as m,n as b,w as h,q as c,L as I,b0 as y,b1 as E,ai as A,ar as v,X as M,b2 as N,g as L,D as w,aL as T,b3 as S,b4 as U,v as R,b5 as k,G as B}from"./index-Cei2V9tG.js";import{P as F}from"./index-BstSZKJJ.js";import{T as $}from"./Tabs-DXnc7TjY.js";import{a as G}from"./ResponsiveImage-CUm6fM86.js";import{C as O}from"./index-CO3xj3k-.js";import{D as p,a as C}from"./index-Csz5cVZF.js";import{P as W,C as q,a as K}from"./index-pyJuzCdB.js";import{u as z}from"./useRoles-Fnr-v6hU.js";import"./index-CAbbcEiW.js";import"./warning-CGLqHpsF.js";const H=({type:t})=>{var d;const{userConsultations:s,fetchUserConsultations:o}=i.useContext(P.EscolaLMSContext),{t:n}=x(),r=i.useMemo(()=>{var a;return((a=s.list)==null?void 0:a.data.filter(l=>t===j.STARTED||t===j.UPCOMING?l.in_coming||l.is_started:l.is_ended))||[]},[t,(d=s.list)==null?void 0:d.data]);return i.useEffect(()=>{o()},[t,o]),e.jsx(W,{children:s.loading?e.jsx(_,{}):r.length===0?e.jsx(m.Text,{style:{paddingLeft:b?20:40},children:n("MyProfilePage.OrdersEmpty")}):e.jsx(h.Row,{style:{gap:"30px 0"},children:r.map(a=>e.jsx(h.Col,{xs:12,md:6,lg:4,children:e.jsx(q,{consultation:a})},a.id))})})},g=i.memo(H),X=c.div` .course-section { margin-top: 0px; } diff --git a/assets/my-data-DAeT5ivX.js b/assets/my-data-ETrGensE.js similarity index 97% rename from assets/my-data-DAeT5ivX.js rename to assets/my-data-ETrGensE.js index 4b895a0a..91d17aa1 100644 --- a/assets/my-data-DAeT5ivX.js +++ b/assets/my-data-ETrGensE.js @@ -1,4 +1,4 @@ -import{d as x,a5 as X,a2 as Y,j as O,a9 as nn,r as en,a3 as tn,D as rn,q as an,f as on}from"./index-Bjk_45MO.js";import{P as ln}from"./index-CaBsIUEq.js";import{U as sn}from"./Upload-DMNCn73R.js";import"./index-waE41t0D.js";var $={};(function(v){var q=x&&x.__makeTemplateObject||function(e,a){return Object.defineProperty?Object.defineProperty(e,"raw",{value:a}):e.raw=a,e},s=x&&x.__assign||function(){return s=Object.assign||function(e){for(var a,l=1,p=arguments.length;lt.gray4}; `,s=o.div` padding-top: 70px; diff --git a/assets/my-orders-DFwf7y5x.js b/assets/my-orders-CaURcWNe.js similarity index 98% rename from assets/my-orders-DFwf7y5x.js rename to assets/my-orders-CaURcWNe.js index db690a65..15dfb291 100644 --- a/assets/my-orders-DFwf7y5x.js +++ b/assets/my-orders-CaURcWNe.js @@ -1,4 +1,4 @@ -import{d as u,r as x,a5 as L,a6 as $,j as d,a3 as z,s as O,q as D,h as I,f as A,A as q,ai as R,v as U,n as F,Z as G}from"./index-Bjk_45MO.js";import{P as H}from"./index-CaBsIUEq.js";import"./index-waE41t0D.js";var B={};(function(l){var g=u&&u.__makeTemplateObject||function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n},t=u&&u.__assign||function(){return t=Object.assign||function(n){for(var e,i=1,s=arguments.length;i(t.COURSE="course",t.WEBINAR="webinar",t))(p||{}),C=(t=>(t.RATE="rate",t.TEXT="text",t.REVIEW="review",t))(C||{});const U=async({courseId:t,questionnaireId:o,fetchQuestionnaire:n})=>{try{const s=t&&await n(p.COURSE,t,o);if(s&&s.success)return s.data.questions}catch(s){f.error(w("UnexpectedError")),console.log(s)}},v=async({courseId:t,fetchQuestionnaires:o,fetchQuestionnaire:n,onSucces:s,onFinish:a})=>{try{const r=t&&await o(p.COURSE,t);if(r&&r.success){const E=await Promise.all(r.data.map(async i=>{const d=await U({courseId:t,questionnaireId:i.id,fetchQuestionnaire:n}),R=i.questions.reduce((c,u)=>{const e=d==null?void 0:d.find(b=>b.id===u.id),l={...u,rate:e==null?void 0:e.rate,note:e==null?void 0:e.note};return l.rate===null&&l.note===null&&c.push(l),c},[]);return{...i,questions:R.sort((c,u)=>c.position-u.position)}}));s(E.filter(i=>!!i.questions.length))}}catch(r){f.error(w("UnexpectedError")),console.log(r)}finally{a()}},x=({questionnaires:t,questionnaireId:o,questionType:n})=>{var s,a;return(a=(s=t==null?void 0:t.find(r=>r.id===o))==null?void 0:s.questions.filter(r=>r.public_answers).find(r=>r.type===n))==null?void 0:a.id};export{p as Q,C as a,v as b,x as g}; +import{A as f,ap as w}from"./index-Cei2V9tG.js";var p=(t=>(t.COURSE="course",t.WEBINAR="webinar",t))(p||{}),C=(t=>(t.RATE="rate",t.TEXT="text",t.REVIEW="review",t))(C||{});const U=async({courseId:t,questionnaireId:o,fetchQuestionnaire:n})=>{try{const s=t&&await n(p.COURSE,t,o);if(s&&s.success)return s.data.questions}catch(s){f.error(w("UnexpectedError")),console.log(s)}},v=async({courseId:t,fetchQuestionnaires:o,fetchQuestionnaire:n,onSucces:s,onFinish:a})=>{try{const r=t&&await o(p.COURSE,t);if(r&&r.success){const E=await Promise.all(r.data.map(async i=>{const d=await U({courseId:t,questionnaireId:i.id,fetchQuestionnaire:n}),R=i.questions.reduce((c,u)=>{const e=d==null?void 0:d.find(b=>b.id===u.id),l={...u,rate:e==null?void 0:e.rate,note:e==null?void 0:e.note};return l.rate===null&&l.note===null&&c.push(l),c},[]);return{...i,questions:R.sort((c,u)=>c.position-u.position)}}));s(E.filter(i=>!!i.questions.length))}}catch(r){f.error(w("UnexpectedError")),console.log(r)}finally{a()}},x=({questionnaires:t,questionnaireId:o,questionType:n})=>{var s,a;return(a=(s=t==null?void 0:t.find(r=>r.id===o))==null?void 0:s.questions.filter(r=>r.public_answers).find(r=>r.type===n))==null?void 0:a.id};export{p as Q,C as a,v as b,x as g}; diff --git a/assets/swiper-B0_gRAjE.js b/assets/swiper-B0_gRAjE.js new file mode 100644 index 00000000..448a2ac4 --- /dev/null +++ b/assets/swiper-B0_gRAjE.js @@ -0,0 +1,28 @@ +import{q as n,r as a,j as r,aj as s}from"./index-Cei2V9tG.js";import{a as l}from"./swiper-react-Dxth3Uzi.js";import{N as p,A as d}from"./a11y-B_OcGQFt.js";const c=n.div` + position: absolute; + top: 10px; + right: 10px; + display: flex; + @media (max-width: 768px) { + display: none; + } + button { + all: unset; + width: 24px; + height: 24px; + border-radius: 3px; + background-color: ${({theme:t})=>t.primaryColor}; + margin-left: 3px; + cursor: pointer; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + :first-of-type { + background-color: ${({theme:t})=>t.gray3}; + svg { + transform: rotate(180deg); + } + } + } +`,m=({children:t,slidesPerView:o})=>{const i=a.useRef();return r.jsxs("div",{children:[r.jsx(l,{modules:[p,d],spaceBetween:18,slidesOffsetAfter:18,breakpoints:{0:{slidesPerView:1.3},576:{slidesPerView:2},768:{slidesPerView:3},1201:{slidesPerView:o}},onBeforeInit:e=>{i.current=e},children:t}),r.jsxs(c,{children:[r.jsx("button",{onClick:()=>{var e;return(e=i.current)==null?void 0:e.slidePrev()},title:"pev",children:r.jsx(s,{})}),r.jsx("button",{onClick:()=>{var e;return(e=i.current)==null?void 0:e.slideNext()},title:"next",children:r.jsx(s,{})})]})]})};export{m as S}; diff --git a/assets/swiper-B3oKVkBy.js b/assets/swiper-B3oKVkBy.js deleted file mode 100644 index 483c09cf..00000000 --- a/assets/swiper-B3oKVkBy.js +++ /dev/null @@ -1,28 +0,0 @@ -import{q as V,r as G,j as b,aj as T}from"./index-Bjk_45MO.js";import{e as K,c as q,m as l,b as _,a as J}from"./swiper-react-CO9r4Bsk.js";function Q(p,e,u,o){return p.params.createElements&&Object.keys(o).forEach(c=>{if(!u[c]&&u.auto===!0){let g=K(p.el,`.${o[c]}`)[0];g||(g=q("div",o[c]),g.className=o[c],p.el.append(g)),u[c]=g,e[c]=g}}),u}function W(p){let{swiper:e,extendParams:u,on:o,emit:c}=p;u({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function g(t){let s;return t&&typeof t=="string"&&e.isElement&&(s=e.el.querySelector(t),s)?s:(t&&(typeof t=="string"&&(s=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&typeof t=="string"&&s.length>1&&e.el.querySelectorAll(t).length===1&&(s=e.el.querySelector(t))),t&&!s?t:s)}function h(t,s){const d=e.params.navigation;t=l(t),t.forEach(r=>{r&&(r.classList[s?"add":"remove"](...d.disabledClass.split(" ")),r.tagName==="BUTTON"&&(r.disabled=s),e.params.watchOverflow&&e.enabled&&r.classList[e.isLocked?"add":"remove"](d.lockClass))})}function v(){const{nextEl:t,prevEl:s}=e.navigation;if(e.params.loop){h(s,!1),h(t,!1);return}h(s,e.isBeginning&&!e.params.rewind),h(t,e.isEnd&&!e.params.rewind)}function k(t){t.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),c("navigationPrev"))}function x(t){t.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),c("navigationNext"))}function y(){const t=e.params.navigation;if(e.params.navigation=Q(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(t.nextEl||t.prevEl))return;let s=g(t.nextEl),d=g(t.prevEl);Object.assign(e.navigation,{nextEl:s,prevEl:d}),s=l(s),d=l(d);const r=(f,E)=>{f&&f.addEventListener("click",E==="next"?x:k),!e.enabled&&f&&f.classList.add(...t.lockClass.split(" "))};s.forEach(f=>r(f,"next")),d.forEach(f=>r(f,"prev"))}function M(){let{nextEl:t,prevEl:s}=e.navigation;t=l(t),s=l(s);const d=(r,f)=>{r.removeEventListener("click",f==="next"?x:k),r.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(r=>d(r,"next")),s.forEach(r=>d(r,"prev"))}o("init",()=>{e.params.navigation.enabled===!1?S():(y(),v())}),o("toEdge fromEdge lock unlock",()=>{v()}),o("destroy",()=>{M()}),o("enable disable",()=>{let{nextEl:t,prevEl:s}=e.navigation;if(t=l(t),s=l(s),e.enabled){v();return}[...t,...s].filter(d=>!!d).forEach(d=>d.classList.add(e.params.navigation.lockClass))}),o("click",(t,s)=>{let{nextEl:d,prevEl:r}=e.navigation;d=l(d),r=l(r);const f=s.target;if(e.params.navigation.hideOnClick&&!r.includes(f)&&!d.includes(f)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===f||e.pagination.el.contains(f)))return;let E;d.length?E=d[0].classList.contains(e.params.navigation.hiddenClass):r.length&&(E=r[0].classList.contains(e.params.navigation.hiddenClass)),c(E===!0?"navigationShow":"navigationHide"),[...d,...r].filter(L=>!!L).forEach(L=>L.classList.toggle(e.params.navigation.hiddenClass))}});const w=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),y(),v()},S=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),M()};Object.assign(e.navigation,{enable:w,disable:S,update:v,init:y,destroy:M})}function B(p){return p===void 0&&(p=""),`.${p.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function X(p){let{swiper:e,extendParams:u,on:o}=p;u({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let c=null;function g(i){const a=c;a.length!==0&&(a.innerHTML="",a.innerHTML=i)}function h(i){i===void 0&&(i=16);const a=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(i).replace(/x/g,a)}function v(i){i=l(i),i.forEach(a=>{a.setAttribute("tabIndex","0")})}function k(i){i=l(i),i.forEach(a=>{a.setAttribute("tabIndex","-1")})}function x(i,a){i=l(i),i.forEach(n=>{n.setAttribute("role",a)})}function y(i,a){i=l(i),i.forEach(n=>{n.setAttribute("aria-roledescription",a)})}function M(i,a){i=l(i),i.forEach(n=>{n.setAttribute("aria-controls",a)})}function w(i,a){i=l(i),i.forEach(n=>{n.setAttribute("aria-label",a)})}function S(i,a){i=l(i),i.forEach(n=>{n.setAttribute("id",a)})}function t(i,a){i=l(i),i.forEach(n=>{n.setAttribute("aria-live",a)})}function s(i){i=l(i),i.forEach(a=>{a.setAttribute("aria-disabled",!0)})}function d(i){i=l(i),i.forEach(a=>{a.setAttribute("aria-disabled",!1)})}function r(i){if(i.keyCode!==13&&i.keyCode!==32)return;const a=e.params.a11y,n=i.target;e.pagination&&e.pagination.el&&(n===e.pagination.el||e.pagination.el.contains(i.target))&&!i.target.matches(B(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&n===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?g(a.lastSlideMessage):g(a.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&n===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?g(a.firstSlideMessage):g(a.prevSlideMessage)),e.pagination&&n.matches(B(e.params.pagination.bulletClass))&&n.click())}function f(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:i,prevEl:a}=e.navigation;a&&(e.isBeginning?(s(a),k(a)):(d(a),v(a))),i&&(e.isEnd?(s(i),k(i)):(d(i),v(i)))}function E(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function L(){return E()&&e.params.pagination.clickable}function $(){const i=e.params.a11y;E()&&e.pagination.bullets.forEach(a=>{e.params.pagination.clickable&&(v(a),e.params.pagination.renderBullet||(x(a,"button"),w(a,i.paginationBulletMessage.replace(/\{\{index\}\}/,_(a)+1)))),a.matches(B(e.params.pagination.bulletActiveClass))?a.setAttribute("aria-current","true"):a.removeAttribute("aria-current")})}const P=(i,a,n)=>{v(i),i.tagName!=="BUTTON"&&(x(i,"button"),i.addEventListener("keydown",r)),w(i,n),M(i,a)},j=()=>{e.a11y.clicked=!0},D=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},I=i=>{if(e.a11y.clicked)return;const a=i.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!a||!e.slides.includes(a))return;const n=e.slides.indexOf(a)===e.activeIndex,m=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(a);n||m||i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(a),0))},O=()=>{const i=e.params.a11y;i.itemRoleDescriptionMessage&&y(e.slides,i.itemRoleDescriptionMessage),i.slideRole&&x(e.slides,i.slideRole);const a=e.slides.length;i.slideLabelMessage&&e.slides.forEach((n,m)=>{const R=e.params.loop?parseInt(n.getAttribute("data-swiper-slide-index"),10):m,C=i.slideLabelMessage.replace(/\{\{index\}\}/,R+1).replace(/\{\{slidesLength\}\}/,a);w(n,C)})},F=()=>{const i=e.params.a11y;e.el.append(c);const a=e.el;i.containerRoleDescriptionMessage&&y(a,i.containerRoleDescriptionMessage),i.containerMessage&&w(a,i.containerMessage);const n=e.wrapperEl,m=i.id||n.getAttribute("id")||`swiper-wrapper-${h(16)}`,R=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(n,m),t(n,R),O();let{nextEl:C,prevEl:A}=e.navigation?e.navigation:{};C=l(C),A=l(A),C&&C.forEach(N=>P(N,m,i.nextSlideMessage)),A&&A.forEach(N=>P(N,m,i.prevSlideMessage)),L()&&l(e.pagination.el).forEach(U=>{U.addEventListener("keydown",r)}),e.el.addEventListener("focus",I,!0),e.el.addEventListener("pointerdown",j,!0),e.el.addEventListener("pointerup",D,!0)};function H(){c&&c.remove();let{nextEl:i,prevEl:a}=e.navigation?e.navigation:{};i=l(i),a=l(a),i&&i.forEach(n=>n.removeEventListener("keydown",r)),a&&a.forEach(n=>n.removeEventListener("keydown",r)),L()&&l(e.pagination.el).forEach(m=>{m.removeEventListener("keydown",r)}),e.el.removeEventListener("focus",I,!0),e.el.removeEventListener("pointerdown",j,!0),e.el.removeEventListener("pointerup",D,!0)}o("beforeInit",()=>{c=q("span",e.params.a11y.notificationClass),c.setAttribute("aria-live","assertive"),c.setAttribute("aria-atomic","true")}),o("afterInit",()=>{e.params.a11y.enabled&&F()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&O()}),o("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&f()}),o("paginationUpdate",()=>{e.params.a11y.enabled&&$()}),o("destroy",()=>{e.params.a11y.enabled&&H()})}const Y=V.div` - position: absolute; - top: 10px; - right: 10px; - display: flex; - @media (max-width: 768px) { - display: none; - } - button { - all: unset; - width: 24px; - height: 24px; - border-radius: 3px; - background-color: ${({theme:p})=>p.primaryColor}; - margin-left: 3px; - cursor: pointer; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - :first-of-type { - background-color: ${({theme:p})=>p.gray3}; - svg { - transform: rotate(180deg); - } - } - } -`,ee=({children:p,slidesPerView:e})=>{const u=G.useRef();return b.jsxs("div",{children:[b.jsx(J,{modules:[W,X],spaceBetween:18,slidesOffsetAfter:18,breakpoints:{0:{slidesPerView:1.3},576:{slidesPerView:2},768:{slidesPerView:3},1201:{slidesPerView:e}},onBeforeInit:o=>{u.current=o},children:p}),b.jsxs(Y,{children:[b.jsx("button",{onClick:()=>{var o;return(o=u.current)==null?void 0:o.slidePrev()},title:"pev",children:b.jsx(T,{})}),b.jsx("button",{onClick:()=>{var o;return(o=u.current)==null?void 0:o.slideNext()},title:"next",children:b.jsx(T,{})})]})]})};export{ee as S}; diff --git a/assets/swiper-react-CO9r4Bsk.js b/assets/swiper-react-Dxth3Uzi.js similarity index 99% rename from assets/swiper-react-CO9r4Bsk.js rename to assets/swiper-react-Dxth3Uzi.js index 18df9747..4ba5fe20 100644 --- a/assets/swiper-react-CO9r4Bsk.js +++ b/assets/swiper-react-Dxth3Uzi.js @@ -1 +1 @@ -import{r as O,b as z}from"./index-Bjk_45MO.js";function ue(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function ce(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:ue(e[i])&&ue(t[i])&&Object.keys(e[i]).length>0&&ce(t[i],e[i])})}const Se={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function W(){const t=typeof document<"u"?document:{};return ce(t,Se),t}const Ge={document:Se,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function V(){const t=typeof window<"u"?window:{};return ce(t,Ge),t}function De(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Ve(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function le(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function U(){return Date.now()}function Ne(t){const e=V();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Be(t,e){e===void 0&&(e="x");const i=V();let s,n,r;const o=Ne(t);return i.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(a=>a.replace(",",".")).join(", ")),r=new i.WebKitCSSMatrix(n==="none"?"":n)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?n=r.m41:s.length===16?n=parseFloat(s[12]):n=parseFloat(s[4])),e==="y"&&(i.WebKitCSSMatrix?n=r.m42:s.length===16?n=parseFloat(s[13]):n=parseFloat(s[5])),n||0}function q(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Re(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function D(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;ie.indexOf(r)<0);for(let r=0,o=n.length;rr?"next":"prev",d=(p,u)=>c==="next"&&p>=u||c==="prev"&&p<=u,f=()=>{a=new Date().getTime(),o===null&&(o=a);const p=Math.max(Math.min((a-o)/l,1),0),u=.5-Math.cos(p*Math.PI)/2;let m=r+u*(i-r);if(d(m,i)&&(m=i),e.wrapperEl.scrollTo({[s]:m}),d(m,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:m})}),n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(f)};f()}function F(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Z(t){try{console.warn(t);return}catch{}}function ae(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:De(e)),i}function Fe(t,e){const i=[];for(;t.previousElementSibling;){const s=t.previousElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function $e(t,e){const i=[];for(;t.nextElementSibling;){const s=t.nextElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function $(t,e){return V().getComputedStyle(t,null).getPropertyValue(e)}function pe(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function He(t,e){const i=[];let s=t.parentElement;for(;s;)e?s.matches(e)&&i.push(s):i.push(s),s=s.parentElement;return i}function he(t,e,i){const s=V();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function fi(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let ee;function ke(){const t=V(),e=W();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function xe(){return ee||(ee=ke()),ee}let te;function We(t){let{userAgent:e}=t===void 0?{}:t;const i=xe(),s=V(),n=s.navigator.platform,r=e||s.navigator.userAgent,o={ios:!1,android:!1},a=s.screen.width,l=s.screen.height,c=r.match(/(Android);?[\s\/]+([\d.]+)?/);let d=r.match(/(iPad).*OS\s([\d_]+)/);const f=r.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),u=n==="Win32";let m=n==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&m&&i.touch&&g.indexOf(`${a}x${l}`)>=0&&(d=r.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),c&&!u&&(o.os="android",o.android=!0),(d||p||f)&&(o.os="ios",o.ios=!0),o}function be(t){return t===void 0&&(t={}),te||(te=We(t)),te}let ie;function je(){const t=V(),e=be();let i=!1;function s(){const a=t.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(s()){const a=String(t.navigator.userAgent);if(a.includes("Version/")){const[l,c]=a.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=l<16||l===16&&c<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),r=s(),o=r||n&&e.ios;return{isSafari:i||r,needPerspectiveFix:i,need3dFix:o,isWebView:n}}function Ye(){return ie||(ie=je()),ie}function qe(t){let{swiper:e,on:i,emit:s}=t;const n=V();let r=null,o=null;const a=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(f=>{o=n.requestAnimationFrame(()=>{const{width:p,height:u}=e;let m=p,g=u;f.forEach(x=>{let{contentBoxSize:h,contentRect:b,target:v}=x;v&&v!==e.el||(m=b?b.width:(h[0]||h).inlineSize,g=b?b.height:(h[0]||h).blockSize)}),(m!==p||g!==u)&&a()})}),r.observe(e.el))},c=()=>{o&&n.cancelAnimationFrame(o),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},d=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver<"u"){l();return}n.addEventListener("resize",a),n.addEventListener("orientationchange",d)}),i("destroy",()=>{c(),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",d)})}function Xe(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r=[],o=V(),a=function(d,f){f===void 0&&(f={});const p=o.MutationObserver||o.WebkitMutationObserver,u=new p(m=>{if(e.__preventObserver__)return;if(m.length===1){n("observerUpdate",m[0]);return}const g=function(){n("observerUpdate",m[0])};o.requestAnimationFrame?o.requestAnimationFrame(g):o.setTimeout(g,0)});u.observe(d,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),r.push(u)},l=()=>{if(e.params.observer){if(e.params.observeParents){const d=He(e.hostEl);for(let f=0;f{r.forEach(d=>{d.disconnect()}),r.splice(0,r.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",l),s("destroy",c)}var Ke={on(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const n=i?"unshift":"push";return t.split(" ").forEach(r=>{s.eventsListeners[r]||(s.eventsListeners[r]=[]),s.eventsListeners[r][n](e)}),s},once(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function n(){s.off(t,n),n.__emitterProxy&&delete n.__emitterProxy;for(var r=arguments.length,o=new Array(r),a=0;a=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(s=>{typeof e>"u"?i.eventsListeners[s]=[]:i.eventsListeners[s]&&i.eventsListeners[s].forEach((n,r)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&i.eventsListeners[s].splice(r,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,s;for(var n=arguments.length,r=new Array(n),o=0;o{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(s,[l,...i])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(c=>{c.apply(s,i)})}),t}};function Ue(){const t=this;let e,i;const s=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=s.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=s.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt($(s,"padding-left")||0,10)-parseInt($(s,"padding-right")||0,10),i=i-parseInt($(s,"padding-top")||0,10)-parseInt($(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Ze(){const t=this;function e(w,E){return parseFloat(w.getPropertyValue(t.getDirectionLabel(E))||0)}const i=t.params,{wrapperEl:s,slidesEl:n,size:r,rtlTranslate:o,wrongRTL:a}=t,l=t.virtual&&i.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,d=F(n,`.${t.params.slideClass}, swiper-slide`),f=l?t.virtual.slides.length:d.length;let p=[];const u=[],m=[];let g=i.slidesOffsetBefore;typeof g=="function"&&(g=i.slidesOffsetBefore.call(t));let x=i.slidesOffsetAfter;typeof x=="function"&&(x=i.slidesOffsetAfter.call(t));const h=t.snapGrid.length,b=t.slidesGrid.length;let v=i.spaceBetween,S=-g,T=0,M=0;if(typeof r>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*r:typeof v=="string"&&(v=parseFloat(v)),t.virtualSize=-v,d.forEach(w=>{o?w.style.marginLeft="":w.style.marginRight="",w.style.marginBottom="",w.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(X(s,"--swiper-centered-offset-before",""),X(s,"--swiper-centered-offset-after",""));const G=i.grid&&i.grid.rows>1&&t.grid;G?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let I;const P=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(w=>typeof i.breakpoints[w].slidesPerView<"u").length>0;for(let w=0;w1&&p.push(t.virtualSize-r)}if(l&&i.loop){const w=m[0]+v;if(i.slidesPerGroup>1){const E=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=w*i.slidesPerGroup;for(let y=0;y!i.cssMode||i.loop?!0:C!==d.length-1).forEach(E=>{E.style[w]=`${v}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let w=0;m.forEach(C=>{w+=C+(v||0)}),w-=v;const E=w-r;p=p.map(C=>C<=0?-g:C>E?E+x:C)}if(i.centerInsufficientSlides){let w=0;if(m.forEach(E=>{w+=E+(v||0)}),w-=v,w{p[y]=C-E}),u.forEach((C,y)=>{u[y]=C+E})}}if(Object.assign(t,{slides:d,snapGrid:p,slidesGrid:u,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){X(s,"--swiper-centered-offset-before",`${-p[0]}px`),X(s,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const w=-t.snapGrid[0],E=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+w),t.slidesGrid=t.slidesGrid.map(C=>C+E)}if(f!==c&&t.emit("slidesLengthChange"),p.length!==h&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),u.length!==b&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!l&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const w=`${i.containerModifierClass}backface-hidden`,E=t.el.classList.contains(w);f<=i.maxBackfaceHiddenSlides?E||t.el.classList.add(w):E&&t.el.classList.remove(w)}}function Je(t){const e=this,i=[],s=e.virtual&&e.params.virtual.enabled;let n=0,r;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=a=>s?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{i.push(a)});else for(r=0;re.slides.length&&!s)break;i.push(o(a))}else i.push(o(e.activeIndex));for(r=0;rn?a:n}(n||n===0)&&(e.wrapperEl.style.height=`${n}px`)}function Qe(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s"u"&&e.updateSlidesOffset();let o=-t;n&&(o=t),s.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=i.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l=0&&u<=e.size-e.slidesSizesGrid[l];(u>=0&&u1&&m<=e.size||u<=0&&m>=e.size)&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(l),s[l].classList.add(i.slideVisibleClass)),g&&s[l].classList.add(i.slideFullyVisibleClass),c.progress=n?-f:f,c.originalProgress=n?-p:p}}function tt(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:r,isEnd:o,progressLoop:a}=e;const l=r,c=o;if(s===0)n=0,r=!0,o=!0;else{n=(t-e.minTranslate())/s;const d=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;r=d||n<=0,o=f||n>=1,d&&(n=0),f&&(n=1)}if(i.loop){const d=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),p=e.slidesGrid[d],u=e.slidesGrid[f],m=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(t);g>=p?a=(g-p)/m:a=(g+m-u)/m,a>1&&(a-=1)}Object.assign(e,{progress:n,progressLoop:a,isBeginning:r,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),r&&!l&&e.emit("reachBeginning toEdge"),o&&!c&&e.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&e.emit("fromEdge"),e.emit("progress",n)}function it(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:n}=t,r=t.virtual&&i.virtual.enabled,o=t.grid&&i.grid&&i.grid.rows>1,a=f=>F(s,`.${i.slideClass}${f}, swiper-slide${f}`)[0];e.forEach(f=>{f.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let l,c,d;if(r)if(i.loop){let f=n-t.virtual.slidesBefore;f<0&&(f=t.virtual.slides.length+f),f>=t.virtual.slides.length&&(f-=t.virtual.slides.length),l=a(`[data-swiper-slide-index="${f}"]`)}else l=a(`[data-swiper-slide-index="${n}"]`);else o?(l=e.filter(f=>f.column===n)[0],d=e.filter(f=>f.column===n+1)[0],c=e.filter(f=>f.column===n-1)[0]):l=e[n];l&&(l.classList.add(i.slideActiveClass),o?(d&&d.classList.add(i.slideNextClass),c&&c.classList.add(i.slidePrevClass)):(d=$e(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),d&&d.classList.add(i.slideNextClass),c=Fe(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]),c&&c.classList.add(i.slidePrevClass))),t.emitSlidesClasses()}const K=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,s=e.closest(i());if(s){let n=s.querySelector(`.${t.params.lazyPreloaderClass}`);!n&&t.isElement&&(s.shadowRoot?n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),n&&n.remove())})),n&&n.remove()}},se=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},oe=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const s=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),n=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=n,a=[o-e];a.push(...Array.from({length:e}).map((l,c)=>o+s+c)),t.slides.forEach((l,c)=>{a.includes(l.column)&&se(t,c)});return}const r=n+s-1;if(t.params.rewind||t.params.loop)for(let o=n-e;o<=r+e;o+=1){const a=(o%i+i)%i;(ar)&&se(t,a)}else for(let o=Math.max(n-e,0);o<=Math.min(r+e,i-1);o+=1)o!==n&&(o>r||o=e[r]&&s=e[r]&&s=e[r]&&(n=r);return i.normalizeSlideIndex&&(n<0||typeof n>"u")&&(n=0),n}function rt(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:n,activeIndex:r,realIndex:o,snapIndex:a}=e;let l=t,c;const d=u=>{let m=u-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof l>"u"&&(l=st(e)),s.indexOf(i)>=0)c=s.indexOf(i);else{const u=Math.min(n.slidesPerGroupSkip,l);c=u+Math.floor((l-u)/n.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),l===r&&!e.params.loop){c!==a&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(l===r&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(l);return}const f=e.grid&&n.grid&&n.grid.rows>1;let p;if(e.virtual&&n.virtual.enabled&&n.loop)p=d(l);else if(f){const u=e.slides.filter(g=>g.column===l)[0];let m=parseInt(u.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(e.slides.indexOf(u),0)),p=Math.floor(m/n.grid.rows)}else if(e.slides[l]){const u=e.slides[l].getAttribute("data-swiper-slide-index");u?p=parseInt(u,10):p=l}else p=l;Object.assign(e,{previousSnapIndex:a,snapIndex:c,previousRealIndex:o,realIndex:p,previousIndex:r,activeIndex:l}),e.initialized&&oe(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(o!==p&&e.emit("realIndexChange"),e.emit("slideChange"))}function nt(t,e){const i=this,s=i.params;let n=t.closest(`.${s.slideClass}, swiper-slide`);!n&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(a=>{!n&&a.matches&&a.matches(`.${s.slideClass}, swiper-slide`)&&(n=a)});let r=!1,o;if(n){for(let a=0;al?d=l:s&&to?a="next":r=l.length&&(x=l.length-1);const h=-l[x];if(a.normalizeSlideIndex)for(let v=0;v=T&&S=T&&S=T&&(o=v)}if(r.initialized&&o!==f&&(!r.allowSlideNext&&(p?h>r.translate&&h>r.minTranslate():hr.translate&&h>r.maxTranslate()&&(f||0)!==o))return!1;o!==(d||0)&&i&&r.emit("beforeSlideChangeStart"),r.updateProgress(h);let b;if(o>f?b="next":o0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{u[v?"scrollLeft":"scrollTop"]=S})):u[v?"scrollLeft":"scrollTop"]=S,T&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})}else{if(!r.support.smoothScroll)return Te({swiper:r,targetPosition:S,side:v?"left":"top"}),!0;u.scrollTo({[v?"left":"top"]:S,behavior:"smooth"})}return!0}return r.setTransition(e),r.setTranslate(h),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,s),r.transitionStart(i,b),e===0?r.transitionEnd(i,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(S){!r||r.destroyed||S.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function wt(t,e,i,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const n=this;if(n.destroyed)return;const r=n.grid&&n.params.grid&&n.params.grid.rows>1;let o=t;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)o=o+n.virtual.slidesBefore;else{let a;if(r){const p=o*n.params.grid.rows;a=n.slides.filter(u=>u.getAttribute("data-swiper-slide-index")*1===p)[0].column}else a=n.getSlideIndexByData(o);const l=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:c}=n.params;let d=n.params.slidesPerView;d==="auto"?d=n.slidesPerViewDynamic():(d=Math.ceil(parseFloat(n.params.slidesPerView,10)),c&&d%2===0&&(d=d+1));let f=l-au.getAttribute("data-swiper-slide-index")*1===p)[0].column}else o=n.getSlideIndexByData(o)}return requestAnimationFrame(()=>{n.slideTo(o,e,i,s)}),n}function St(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{enabled:n,params:r,animating:o}=s;if(!n||s.destroyed)return s;let a=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(a=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex{s.slideTo(s.activeIndex+l,t,e,i)}),!0}return r.rewind&&s.isEnd?s.slideTo(0,t,e,i):s.slideTo(s.activeIndex+l,t,e,i)}function Tt(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{params:n,snapGrid:r,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=s;if(!l||s.destroyed)return s;const d=s.virtual&&n.virtual.enabled;if(n.loop){if(c&&!d&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const f=a?s.translate:-s.translate;function p(h){return h<0?-Math.floor(Math.abs(h)):Math.floor(h)}const u=p(f),m=r.map(h=>p(h));let g=r[m.indexOf(u)-1];if(typeof g>"u"&&n.cssMode){let h;r.forEach((b,v)=>{u>=b&&(h=v)}),typeof h<"u"&&(g=r[h>0?h-1:h])}let x=0;if(typeof g<"u"&&(x=o.indexOf(g),x<0&&(x=s.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(x=x-s.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),n.rewind&&s.isBeginning){const h=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(h,t,e,i)}else if(n.loop&&s.activeIndex===0&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(x,t,e,i)}),!0;return s.slideTo(x,t,e,i)}function xt(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this;if(!s.destroyed)return s.slideTo(s.activeIndex,t,e,i)}function bt(t,e,i,s){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),s===void 0&&(s=.5);const n=this;if(n.destroyed)return;let r=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const c=n.snapGrid[a],d=n.snapGrid[a+1];l-c>(d-c)*s&&(r+=n.params.slidesPerGroup)}else{const c=n.snapGrid[a-1],d=n.snapGrid[a];l-c<=(d-c)*s&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,t,e,i)}function Et(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,s=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let n=t.clickedIndex,r;const o=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;r=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?nt.slides.length-t.loopedSlides+s/2?(t.loopFix(),n=t.getSlideIndex(F(i,`${o}[data-swiper-slide-index="${r}"]`)[0]),le(()=>{t.slideTo(n)})):t.slideTo(n):n>t.slides.length-s?(t.loopFix(),n=t.getSlideIndex(F(i,`${o}[data-swiper-slide-index="${r}"]`)[0]),le(()=>{t.slideTo(n)})):t.slideTo(n)}else t.slideTo(n)}var yt={slideTo:vt,slideToLoop:wt,slideNext:St,slidePrev:Tt,slideReset:xt,slideToClosest:bt,slideToClickedSlide:Et};function Pt(t){const e=this,{params:i,slidesEl:s}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const n=()=>{F(s,`.${i.slideClass}, swiper-slide`).forEach((f,p)=>{f.setAttribute("data-swiper-slide-index",p)})},r=e.grid&&i.grid&&i.grid.rows>1,o=i.slidesPerGroup*(r?i.grid.rows:1),a=e.slides.length%o!==0,l=r&&e.slides.length%i.grid.rows!==0,c=d=>{for(let f=0;f1;c.length"u"?r=l.getSlideIndex(c.filter(y=>y.classList.contains(u.slideActiveClass))[0]):T=r;const M=s==="next"||!s,G=s==="prev"||!s;let I=0,P=0;const w=b?Math.ceil(c.length/u.grid.rows):c.length,C=(b?c[r].column:r)+(m&&typeof n>"u"?-g/2+.5:0);if(C=0;B-=1)c[B].column===A&&v.push(B)}else v.push(w-L-1)}}else if(C+g>w-h){P=Math.max(C-(w-h*2),x);for(let y=0;y{A.column===L&&S.push(B)}):S.push(L)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),G&&v.forEach(y=>{c[y].swiperLoopMoveDOM=!0,p.prepend(c[y]),c[y].swiperLoopMoveDOM=!1}),M&&S.forEach(y=>{c[y].swiperLoopMoveDOM=!0,p.append(c[y]),c[y].swiperLoopMoveDOM=!1}),l.recalcSlides(),u.slidesPerView==="auto"?l.updateSlides():b&&(v.length>0&&G||S.length>0&&M)&&l.slides.forEach((y,L)=>{l.grid.updateSlide(L,y,l.slides)}),u.watchSlidesProgress&&l.updateSlidesOffset(),i){if(v.length>0&&G){if(typeof e>"u"){const y=l.slidesGrid[T],A=l.slidesGrid[T+I]-y;a?l.setTranslate(l.translate-A):(l.slideTo(T+Math.ceil(I),0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-A,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-A))}else if(n){const y=b?v.length/u.grid.rows:v.length;l.slideTo(l.activeIndex+y,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(S.length>0&&M)if(typeof e>"u"){const y=l.slidesGrid[T],A=l.slidesGrid[T-P]-y;a?l.setTranslate(l.translate-A):(l.slideTo(T-P,0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-A,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-A))}else{const y=b?S.length/u.grid.rows:S.length;l.slideTo(l.activeIndex-y,0,!1,!0)}}if(l.allowSlidePrev=d,l.allowSlideNext=f,l.controller&&l.controller.control&&!o){const y={slideRealIndex:e,direction:s,setTranslate:n,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(L=>{!L.destroyed&&L.params.loop&&L.loopFix({...y,slideTo:L.params.slidesPerView===u.slidesPerView?i:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...y,slideTo:l.controller.control.params.slidesPerView===u.slidesPerView?i:!1})}l.emit("loopFix")}function Mt(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(n=>{const r=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;s[r]=n}),t.slides.forEach(n=>{n.removeAttribute("data-swiper-slide-index")}),s.forEach(n=>{i.append(n)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var It={loopCreate:Pt,loopFix:Ct,loopDestroy:Mt};function Ot(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function Lt(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var zt={setGrabCursor:Ot,unsetGrabCursor:Lt};function At(t,e){e===void 0&&(e=this);function i(s){if(!s||s===W()||s===V())return null;s.assignedSlot&&(s=s.assignedSlot);const n=s.closest(t);return!n&&!s.getRootNode?null:n||i(s.getRootNode().host)}return i(e)}function me(t,e,i){const s=V(),{params:n}=t,r=n.edgeSwipeDetection,o=n.edgeSwipeThreshold;return r&&(i<=o||i>=s.innerWidth-o)?r==="prevent"?(e.preventDefault(),!0):!1:!0}function _t(t){const e=this,i=W();let s=t;s.originalEvent&&(s=s.originalEvent);const n=e.touchEventsData;if(s.type==="pointerdown"){if(n.pointerId!==null&&n.pointerId!==s.pointerId)return;n.pointerId=s.pointerId}else s.type==="touchstart"&&s.targetTouches.length===1&&(n.touchId=s.targetTouches[0].identifier);if(s.type==="touchstart"){me(e,s,s.targetTouches[0].pageX);return}const{params:r,touches:o,enabled:a}=e;if(!a||!r.simulateTouch&&s.pointerType==="mouse"||e.animating&&r.preventInteractionOnTransition)return;!e.animating&&r.cssMode&&r.loop&&e.loopFix();let l=s.target;if(r.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(l)||"which"in s&&s.which===3||"button"in s&&s.button>0||n.isTouched&&n.isMoved)return;const c=!!r.noSwipingClass&&r.noSwipingClass!=="",d=s.composedPath?s.composedPath():s.path;c&&s.target&&s.target.shadowRoot&&d&&(l=d[0]);const f=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,p=!!(s.target&&s.target.shadowRoot);if(r.noSwiping&&(p?At(f,l):l.closest(f))){e.allowClick=!0;return}if(r.swipeHandler&&!l.closest(r.swipeHandler))return;o.currentX=s.pageX,o.currentY=s.pageY;const u=o.currentX,m=o.currentY;if(!me(e,s,u))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=u,o.startY=m,n.touchStartTime=U(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let g=!0;l.matches(n.focusableElements)&&(g=!1,l.nodeName==="SELECT"&&(n.isTouched=!1)),i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==l&&i.activeElement.blur();const x=g&&e.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||x)&&!l.isContentEditable&&s.preventDefault(),r.freeMode&&r.freeMode.enabled&&e.freeMode&&e.animating&&!r.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",s)}function Gt(t){const e=W(),i=this,s=i.touchEventsData,{params:n,touches:r,rtlTranslate:o,enabled:a}=i;if(!a||!n.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(s.touchId!==null||l.pointerId!==s.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].filter(M=>M.identifier===s.touchId)[0],!c||c.identifier!==s.touchId)return}else c=l;if(!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",l);return}const d=c.pageX,f=c.pageY;if(l.preventedByNestedSwiper){r.startX=d,r.startY=f;return}if(!i.allowTouchMove){l.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(r,{startX:d,startY:f,currentX:d,currentY:f}),s.touchStartTime=U());return}if(n.touchReleaseOnEdges&&!n.loop){if(i.isVertical()){if(fr.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(dr.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&l.target===e.activeElement&&l.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}s.allowTouchCallbacks&&i.emit("touchMove",l),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=d,r.currentY=f;const p=r.currentX-r.startX,u=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(p**2+u**2)"u"){let M;i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX?s.isScrolling=!1:p*p+u*u>=25&&(M=Math.atan2(Math.abs(u),Math.abs(p))*180/Math.PI,s.isScrolling=i.isHorizontal()?M>n.touchAngle:90-M>n.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",l),typeof s.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(s.startMoving=!0),s.isScrolling){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&l.cancelable&&l.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&l.stopPropagation();let m=i.isHorizontal()?p:u,g=i.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),g=Math.abs(g)*(o?1:-1)),r.diff=m,m*=n.touchRatio,o&&(m=-m,g=-g);const x=i.touchesDirection;i.swipeDirection=m>0?"prev":"next",i.touchesDirection=g>0?"prev":"next";const h=i.params.loop&&!n.cssMode,b=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!s.isMoved){if(h&&b&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const M=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(M)}s.allowMomentumBounce=!1,n.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",l)}let v;if(new Date().getTime(),s.isMoved&&s.allowThresholdMove&&x!==i.touchesDirection&&h&&b&&Math.abs(m)>=1){Object.assign(r,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,s.startTranslate=s.currentTranslate;return}i.emit("sliderMove",l),s.isMoved=!0,s.currentTranslate=m+s.startTranslate;let S=!0,T=n.resistanceRatio;if(n.touchReleaseOnEdges&&(T=0),m>0?(h&&b&&!v&&s.allowThresholdMove&&s.currentTranslate>(n.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(S=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+m)**T))):m<0&&(h&&b&&!v&&s.allowThresholdMove&&s.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(n.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(s.currentTranslate=s.startTranslate),n.threshold>0)if(Math.abs(m)>n.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,s.currentTranslate=s.startTranslate,r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{s.currentTranslate=s.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function Dt(t){const e=this,i=e.touchEventsData;let s=t;s.originalEvent&&(s=s.originalEvent);let n;if(s.type==="touchend"||s.type==="touchcancel"){if(n=[...s.changedTouches].filter(T=>T.identifier===i.touchId)[0],!n||n.identifier!==i.touchId)return}else{if(i.touchId!==null||s.pointerId!==i.pointerId)return;n=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&!(["pointercancel","contextmenu"].includes(s.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:o,touches:a,rtlTranslate:l,slidesGrid:c,enabled:d}=e;if(!d||!o.simulateTouch&&s.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",s),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&o.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}o.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const f=U(),p=f-i.touchStartTime;if(e.allowClick){const T=s.path||s.composedPath&&s.composedPath();e.updateClickedSlide(T&&T[0]||s.target,T),e.emit("tap click",s),p<300&&f-i.lastClickTime<300&&e.emit("doubleTap doubleClick",s)}if(i.lastClickTime=U(),le(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||a.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let u;if(o.followFinger?u=l?e.translate:-e.translate:u=-i.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:u});return}const m=u>=-e.maxTranslate()&&!e.params.loop;let g=0,x=e.slidesSizesGrid[0];for(let T=0;T=c[T]&&u=c[T])&&(g=T,x=c[c.length-1]-c[c.length-2])}let h=null,b=null;o.rewind&&(e.isBeginning?b=o.virtual&&o.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(h=0));const v=(u-c[g])/x,S=go.longSwipesMs){if(!o.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(v>=o.longSwipesRatio?e.slideTo(o.rewind&&e.isEnd?h:g+S):e.slideTo(g)),e.swipeDirection==="prev"&&(v>1-o.longSwipesRatio?e.slideTo(g+S):b!==null&&v<0&&Math.abs(v)>o.longSwipesRatio?e.slideTo(b):e.slideTo(g))}else{if(!o.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(s.target===e.navigation.nextEl||s.target===e.navigation.prevEl)?s.target===e.navigation.nextEl?e.slideTo(g+S):e.slideTo(g):(e.swipeDirection==="next"&&e.slideTo(h!==null?h:g+S),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:g))}}function ge(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:r}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const a=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=n,t.allowSlideNext=s,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}function Vt(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Nt(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:s}=t;if(!s)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let n;const r=t.maxTranslate()-t.minTranslate();r===0?n=0:n=(t.translate-t.minTranslate())/r,n!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Bt(t){const e=this;K(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Rt(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const ye=(t,e)=>{const i=W(),{params:s,el:n,wrapperEl:r,device:o}=t,a=!!s.nested,l=e==="on"?"addEventListener":"removeEventListener",c=e;i[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:a}),n[l]("touchstart",t.onTouchStart,{passive:!1}),n[l]("pointerdown",t.onTouchStart,{passive:!1}),i[l]("touchmove",t.onTouchMove,{passive:!1,capture:a}),i[l]("pointermove",t.onTouchMove,{passive:!1,capture:a}),i[l]("touchend",t.onTouchEnd,{passive:!0}),i[l]("pointerup",t.onTouchEnd,{passive:!0}),i[l]("pointercancel",t.onTouchEnd,{passive:!0}),i[l]("touchcancel",t.onTouchEnd,{passive:!0}),i[l]("pointerout",t.onTouchEnd,{passive:!0}),i[l]("pointerleave",t.onTouchEnd,{passive:!0}),i[l]("contextmenu",t.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&n[l]("click",t.onClick,!0),s.cssMode&&r[l]("scroll",t.onScroll),s.updateOnWindowResize?t[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",ge,!0):t[c]("observerUpdate",ge,!0),n[l]("load",t.onLoad,{capture:!0})};function Ft(){const t=this,{params:e}=t;t.onTouchStart=_t.bind(t),t.onTouchMove=Gt.bind(t),t.onTouchEnd=Dt.bind(t),t.onDocumentTouchStart=Rt.bind(t),e.cssMode&&(t.onScroll=Nt.bind(t)),t.onClick=Vt.bind(t),t.onLoad=Bt.bind(t),ye(t,"on")}function $t(){ye(this,"off")}var Ht={attachEvents:Ft,detachEvents:$t};const ve=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function kt(){const t=this,{realIndex:e,initialized:i,params:s,el:n}=t,r=s.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const o=t.getBreakpoint(r,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const l=(o in r?r[o]:void 0)||t.originalParams,c=ve(t,s),d=ve(t,l),f=s.enabled;c&&!d?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&d&&(n.classList.add(`${s.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&s.grid.fill==="column")&&n.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof l[h]>"u")return;const b=s[h]&&s[h].enabled,v=l[h]&&l[h].enabled;b&&!v&&t[h].disable(),!b&&v&&t[h].enable()});const p=l.direction&&l.direction!==s.direction,u=s.loop&&(l.slidesPerView!==s.slidesPerView||p),m=s.loop;p&&i&&t.changeDirection(),D(t.params,l);const g=t.params.enabled,x=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!g?t.disable():!f&&g&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",l),i&&(u?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!m&&x?(t.loopCreate(e),t.updateSlides()):m&&!x&&t.loopDestroy()),t.emit("breakpoint",l)}function Wt(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let s=!1;const n=V(),r=e==="window"?n.innerHeight:i.clientHeight,o=Object.keys(t).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:r*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a{typeof s=="object"?Object.keys(s).forEach(n=>{s[n]&&i.push(e+n)}):typeof s=="string"&&i.push(e+s)}),i}function qt(){const t=this,{classNames:e,params:i,rtl:s,el:n,device:r}=t,o=Yt(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...o),n.classList.add(...e),t.emitContainerClasses()}function Xt(){const t=this,{el:e,classNames:i}=t;e.classList.remove(...i),t.emitContainerClasses()}var Kt={addClasses:qt,removeClasses:Xt};function Ut(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:s}=i;if(s){const n=t.slides.length-1,r=t.slidesGrid[n]+t.slidesSizesGrid[n]+s*2;t.isLocked=t.size>r}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Zt={checkOverflow:Ut},de={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Jt(t,e){return function(s){s===void 0&&(s={});const n=Object.keys(s)[0],r=s[n];if(typeof r!="object"||r===null){D(e,s);return}if(t[n]===!0&&(t[n]={enabled:!0}),n==="navigation"&&t[n]&&t[n].enabled&&!t[n].prevEl&&!t[n].nextEl&&(t[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&t[n]&&t[n].enabled&&!t[n].el&&(t[n].auto=!0),!(n in t&&"enabled"in r)){D(e,s);return}typeof t[n]=="object"&&!("enabled"in t[n])&&(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),D(e,s)}}const re={eventsEmitter:Ke,update:lt,translate:ut,transition:gt,slide:yt,loop:It,grabCursor:zt,events:Ht,breakpoints:jt,checkOverflow:Zt,classes:Kt},ne={};let fe=class R{constructor(){let e,i;for(var s=arguments.length,n=new Array(s),r=0;r1){const d=[];return o.querySelectorAll(i.el).forEach(f=>{const p=D({},i,{el:f});d.push(new R(p))}),d}const a=this;a.__swiper__=!0,a.support=xe(),a.device=be({userAgent:i.userAgent}),a.browser=Ye(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],i.modules&&Array.isArray(i.modules)&&a.modules.push(...i.modules);const l={};a.modules.forEach(d=>{d({params:i,swiper:a,extendParams:Jt(i,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const c=D({},de,l);return a.params=D({},c,ne,i),a.originalParams=D({},a.params),a.passedParams=D({},i),a.params&&a.params.on&&Object.keys(a.params.on).forEach(d=>{a.on(d,a.params.on[d])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:s}=this,n=F(i,`.${s.slideClass}, swiper-slide`),r=pe(n[0]);return pe(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:s}=e;e.slides=F(i,`.${s.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const s=this;e=Math.min(Math.max(e,0),1);const n=s.minTranslate(),o=(s.maxTranslate()-n)*e+n;s.translateTo(o,typeof i>"u"?0:i),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(s=>{const n=e.getSlideClasses(s);i.push({slideEl:s,classNames:n}),e.emit("_slideClass",s,n)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const s=this,{params:n,slides:r,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:c}=s;let d=1;if(typeof n.slidesPerView=="number")return n.slidesPerView;if(n.centeredSlides){let f=r[c]?Math.ceil(r[c].swiperSlideSize):0,p;for(let u=c+1;ul&&(p=!0));for(let u=c-1;u>=0;u-=1)r[u]&&!p&&(f+=r[u].swiperSlideSize,d+=1,f>l&&(p=!0))}else if(e==="current")for(let f=c+1;f=0;f-=1)o[c]-o[f]{o.complete&&K(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function n(){const o=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)n(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const o=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(o.length-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||n()}s.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const s=this,n=s.params.direction;return e||(e=n==="horizontal"?"vertical":"horizontal"),e===n||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${n}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(r=>{e==="vertical"?r.style.width="":r.style.height=""}),s.emit("changeDirection"),i&&s.update()),s}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let s=e||i.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=i,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const n=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(n()):F(s,n())[0];return!o&&i.params.createElements&&(o=ae("div",i.params.wrapperClass),s.append(o),F(s,`.${i.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(i,{el:s,wrapperEl:o,slidesEl:i.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:o,hostEl:i.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||$(s,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||$(s,"direction")==="rtl"),wrongRTL:$(o,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const n=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(r=>{r.complete?K(i,r):r.addEventListener("load",o=>{K(i,o.target)})}),oe(i),i.initialized=!0,oe(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const s=this,{params:n,el:r,wrapperEl:o,slides:a}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),n.loop&&s.loopDestroy(),i&&(s.removeClasses(),r.removeAttribute("style"),o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(l=>{s.off(l)}),e!==!1&&(s.el.swiper=null,Ve(s)),s.destroyed=!0),null}static extendDefaults(e){D(ne,e)}static get extendedDefaults(){return ne}static get defaults(){return de}static installModule(e){R.prototype.__modules__||(R.prototype.__modules__=[]);const i=R.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>R.installModule(i)),R):(R.installModule(e),R)}};Object.keys(re).forEach(t=>{Object.keys(re[t]).forEach(e=>{fe.prototype[e]=re[t][e]})});fe.use([qe,Xe]);const Pe=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function H(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function k(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(s=>i.indexOf(s)<0).forEach(s=>{typeof t[s]>"u"?t[s]=e[s]:H(e[s])&&H(t[s])&&Object.keys(e[s]).length>0?e[s].__swiper__?t[s]=e[s]:k(t[s],e[s]):t[s]=e[s]})}function Ce(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Me(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Ie(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Oe(t){t===void 0&&(t="");const e=t.split(" ").map(s=>s.trim()).filter(s=>!!s),i=[];return e.forEach(s=>{i.indexOf(s)<0&&i.push(s)}),i.join(" ")}function Qt(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function ei(t){let{swiper:e,slides:i,passedParams:s,changedParams:n,nextEl:r,prevEl:o,scrollbarEl:a,paginationEl:l}=t;const c=n.filter(P=>P!=="children"&&P!=="direction"&&P!=="wrapperClass"),{params:d,pagination:f,navigation:p,scrollbar:u,virtual:m,thumbs:g}=e;let x,h,b,v,S,T,M,G;n.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(x=!0),n.includes("controller")&&s.controller&&s.controller.control&&d.controller&&!d.controller.control&&(h=!0),n.includes("pagination")&&s.pagination&&(s.pagination.el||l)&&(d.pagination||d.pagination===!1)&&f&&!f.el&&(b=!0),n.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||a)&&(d.scrollbar||d.scrollbar===!1)&&u&&!u.el&&(v=!0),n.includes("navigation")&&s.navigation&&(s.navigation.prevEl||o)&&(s.navigation.nextEl||r)&&(d.navigation||d.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(S=!0);const I=P=>{e[P]&&(e[P].destroy(),P==="navigation"?(e.isElement&&(e[P].prevEl.remove(),e[P].nextEl.remove()),d[P].prevEl=void 0,d[P].nextEl=void 0,e[P].prevEl=void 0,e[P].nextEl=void 0):(e.isElement&&e[P].el.remove(),d[P].el=void 0,e[P].el=void 0))};n.includes("loop")&&e.isElement&&(d.loop&&!s.loop?T=!0:!d.loop&&s.loop?M=!0:G=!0),c.forEach(P=>{if(H(d[P])&&H(s[P]))Object.assign(d[P],s[P]),(P==="navigation"||P==="pagination"||P==="scrollbar")&&"enabled"in s[P]&&!s[P].enabled&&I(P);else{const w=s[P];(w===!0||w===!1)&&(P==="navigation"||P==="pagination"||P==="scrollbar")?w===!1&&I(P):d[P]=s[P]}}),c.includes("controller")&&!h&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),n.includes("children")&&i&&m&&d.virtual.enabled?(m.slides=i,m.update(!0)):n.includes("virtual")&&m&&d.virtual.enabled&&(i&&(m.slides=i),m.update(!0)),n.includes("children")&&i&&d.loop&&(G=!0),x&&g.init()&&g.update(!0),h&&(e.controller.control=d.controller.control),b&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(d.pagination.el=l),f.init(),f.render(),f.update()),v&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(d.scrollbar.el=a),u.init(),u.updateSize(),u.setTranslate()),S&&(e.isElement&&((!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-next"),r.innerHTML=e.hostEl.constructor.nextButtonSvg,r.part.add("button-next"),e.el.appendChild(r)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),o.innerHTML=e.hostEl.constructor.prevButtonSvg,o.part.add("button-prev"),e.el.appendChild(o))),r&&(d.navigation.nextEl=r),o&&(d.navigation.prevEl=o),p.init(),p.update()),n.includes("allowSlideNext")&&(e.allowSlideNext=s.allowSlideNext),n.includes("allowSlidePrev")&&(e.allowSlidePrev=s.allowSlidePrev),n.includes("direction")&&e.changeDirection(s.direction,!1),(T||G)&&e.loopDestroy(),(M||G)&&e.loopCreate(),e.update()}function ti(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},s={},n={};k(i,de),i._emitClasses=!0,i.init=!1;const r={},o=Pe.map(l=>l.replace(/_/,"")),a=Object.assign({},t);return Object.keys(a).forEach(l=>{typeof t[l]>"u"||(o.indexOf(l)>=0?H(t[l])?(i[l]={},n[l]={},k(i[l],t[l]),k(n[l],t[l])):(i[l]=t[l],n[l]=t[l]):l.search(/on[A-Z]/)===0&&typeof t[l]=="function"?e?s[`${l[2].toLowerCase()}${l.substr(3)}`]=t[l]:i.on[`${l[2].toLowerCase()}${l.substr(3)}`]=t[l]:r[l]=t[l])}),["navigation","pagination","scrollbar"].forEach(l=>{i[l]===!0&&(i[l]={}),i[l]===!1&&delete i[l]}),{params:i,passedParams:n,rest:r,events:s}}function ii(t,e){let{el:i,nextEl:s,prevEl:n,paginationEl:r,scrollbarEl:o,swiper:a}=t;Ce(e)&&s&&n&&(a.params.navigation.nextEl=s,a.originalParams.navigation.nextEl=s,a.params.navigation.prevEl=n,a.originalParams.navigation.prevEl=n),Me(e)&&r&&(a.params.pagination.el=r,a.originalParams.pagination.el=r),Ie(e)&&o&&(a.params.scrollbar.el=o,a.originalParams.scrollbar.el=o),a.init(i)}function si(t,e,i,s,n){const r=[];if(!e)return r;const o=l=>{r.indexOf(l)<0&&r.push(l)};if(i&&s){const l=s.map(n),c=i.map(n);l.join("")!==c.join("")&&o("children"),s.length!==i.length&&o("children")}return Pe.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in t&&l in e)if(H(t[l])&&H(e[l])){const c=Object.keys(t[l]),d=Object.keys(e[l]);c.length!==d.length?o(l):(c.forEach(f=>{t[l][f]!==e[l][f]&&o(l)}),d.forEach(f=>{t[l][f]!==e[l][f]&&o(l)}))}else t[l]!==e[l]&&o(l)}),r}const ri=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function J(){return J=Object.assign?Object.assign.bind():function(t){for(var e=1;e{Le(i)?e.push(i):i.props&&i.props.children&&ze(i.props.children).forEach(s=>e.push(s))}),e}function ni(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return z.Children.toArray(t).forEach(s=>{if(Le(s))e.push(s);else if(s.props&&s.props.slot&&i[s.props.slot])i[s.props.slot].push(s);else if(s.props&&s.props.children){const n=ze(s.props.children);n.length>0?n.forEach(r=>e.push(r)):i["container-end"].push(s)}else i["container-end"].push(s)}),{slides:e,slots:i}}function li(t,e,i){if(!i)return null;const s=d=>{let f=d;return d<0?f=e.length+d:f>=e.length&&(f=f-e.length),f},n=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:r,to:o}=i,a=t.params.loop?-e.length:0,l=t.params.loop?e.length*2:e.length,c=[];for(let d=a;d=r&&d<=o&&c.push(e[s(d)]);return c.map((d,f)=>z.cloneElement(d,{swiper:t,style:n,key:d.props.virtualIndex||d.key||`slide-${f}`}))}function j(t,e){return typeof window>"u"?O.useEffect(t,e):O.useLayoutEffect(t,e)}const we=O.createContext(null),ai=O.createContext(null),oi=O.forwardRef(function(t,e){let{className:i,tag:s="div",wrapperTag:n="div",children:r,onSwiper:o,...a}=t===void 0?{}:t,l=!1;const[c,d]=O.useState("swiper"),[f,p]=O.useState(null),[u,m]=O.useState(!1),g=O.useRef(!1),x=O.useRef(null),h=O.useRef(null),b=O.useRef(null),v=O.useRef(null),S=O.useRef(null),T=O.useRef(null),M=O.useRef(null),G=O.useRef(null),{params:I,passedParams:P,rest:w,events:E}=ti(a),{slides:C,slots:y}=ni(r),L=()=>{m(!u)};Object.assign(I.on,{_containerClasses(_,N){d(N)}});const A=()=>{Object.assign(I.on,E),l=!0;const _={...I};if(delete _.wrapperClass,h.current=new fe(_),h.current.virtual&&h.current.params.virtual.enabled){h.current.virtual.slides=C;const N={cache:!1,slides:C,renderExternal:p,renderExternalUpdate:!1};k(h.current.params.virtual,N),k(h.current.originalParams.virtual,N)}};x.current||A(),h.current&&h.current.on("_beforeBreakpoint",L);const B=()=>{l||!E||!h.current||Object.keys(E).forEach(_=>{h.current.on(_,E[_])})},Q=()=>{!E||!h.current||Object.keys(E).forEach(_=>{h.current.off(_,E[_])})};O.useEffect(()=>()=>{h.current&&h.current.off("_beforeBreakpoint",L)}),O.useEffect(()=>{!g.current&&h.current&&(h.current.emitSlidesClasses(),g.current=!0)}),j(()=>{if(e&&(e.current=x.current),!!x.current)return h.current.destroyed&&A(),ii({el:x.current,nextEl:S.current,prevEl:T.current,paginationEl:M.current,scrollbarEl:G.current,swiper:h.current},I),o&&!h.current.destroyed&&o(h.current),()=>{h.current&&!h.current.destroyed&&h.current.destroy(!0,!1)}},[]),j(()=>{B();const _=si(P,b.current,C,v.current,N=>N.key);return b.current=P,v.current=C,_.length&&h.current&&!h.current.destroyed&&ei({swiper:h.current,slides:C,passedParams:P,changedParams:_,nextEl:S.current,prevEl:T.current,scrollbarEl:G.current,paginationEl:M.current}),()=>{Q()}}),j(()=>{ri(h.current)},[f]);function Y(){return I.virtual?li(h.current,C,f):C.map((_,N)=>z.cloneElement(_,{swiper:h.current,swiperSlideIndex:N}))}return z.createElement(s,J({ref:x,className:Oe(`${c}${i?` ${i}`:""}`)},w),z.createElement(ai.Provider,{value:h.current},y["container-start"],z.createElement(n,{className:Qt(I.wrapperClass)},y["wrapper-start"],Y(),y["wrapper-end"]),Ce(I)&&z.createElement(z.Fragment,null,z.createElement("div",{ref:T,className:"swiper-button-prev"}),z.createElement("div",{ref:S,className:"swiper-button-next"})),Ie(I)&&z.createElement("div",{ref:G,className:"swiper-scrollbar"}),Me(I)&&z.createElement("div",{ref:M,className:"swiper-pagination"}),y["container-end"]))});oi.displayName="Swiper";const di=O.forwardRef(function(t,e){let{tag:i="div",children:s,className:n="",swiper:r,zoom:o,lazy:a,virtualIndex:l,swiperSlideIndex:c,...d}=t===void 0?{}:t;const f=O.useRef(null),[p,u]=O.useState("swiper-slide"),[m,g]=O.useState(!1);function x(S,T,M){T===f.current&&u(M)}j(()=>{if(typeof c<"u"&&(f.current.swiperSlideIndex=c),e&&(e.current=f.current),!(!f.current||!r)){if(r.destroyed){p!=="swiper-slide"&&u("swiper-slide");return}return r.on("_slideClass",x),()=>{r&&r.off("_slideClass",x)}}}),j(()=>{r&&f.current&&!r.destroyed&&u(r.getSlideClasses(f.current))},[r]);const h={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},b=()=>typeof s=="function"?s(h):s,v=()=>{g(!0)};return z.createElement(i,J({ref:f,className:Oe(`${p}${n?` ${n}`:""}`),"data-swiper-slide-index":l,onLoad:v},d),o&&z.createElement(we.Provider,{value:h},z.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},b(),a&&!m&&z.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&z.createElement(we.Provider,{value:h},b(),a&&!m&&z.createElement("div",{className:"swiper-lazy-preloader"})))});di.displayName="SwiperSlide";export{di as S,oi as a,pe as b,ae as c,F as e,fi as m}; +import{r as O,b as z}from"./index-Cei2V9tG.js";function ue(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function ce(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:ue(e[i])&&ue(t[i])&&Object.keys(e[i]).length>0&&ce(t[i],e[i])})}const Se={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function W(){const t=typeof document<"u"?document:{};return ce(t,Se),t}const Ge={document:Se,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function V(){const t=typeof window<"u"?window:{};return ce(t,Ge),t}function De(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Ve(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function le(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function U(){return Date.now()}function Ne(t){const e=V();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Be(t,e){e===void 0&&(e="x");const i=V();let s,n,r;const o=Ne(t);return i.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(a=>a.replace(",",".")).join(", ")),r=new i.WebKitCSSMatrix(n==="none"?"":n)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?n=r.m41:s.length===16?n=parseFloat(s[12]):n=parseFloat(s[4])),e==="y"&&(i.WebKitCSSMatrix?n=r.m42:s.length===16?n=parseFloat(s[13]):n=parseFloat(s[5])),n||0}function q(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Re(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function D(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;ie.indexOf(r)<0);for(let r=0,o=n.length;rr?"next":"prev",d=(p,u)=>c==="next"&&p>=u||c==="prev"&&p<=u,f=()=>{a=new Date().getTime(),o===null&&(o=a);const p=Math.max(Math.min((a-o)/l,1),0),u=.5-Math.cos(p*Math.PI)/2;let m=r+u*(i-r);if(d(m,i)&&(m=i),e.wrapperEl.scrollTo({[s]:m}),d(m,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:m})}),n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(f)};f()}function F(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Z(t){try{console.warn(t);return}catch{}}function ae(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:De(e)),i}function Fe(t,e){const i=[];for(;t.previousElementSibling;){const s=t.previousElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function $e(t,e){const i=[];for(;t.nextElementSibling;){const s=t.nextElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function $(t,e){return V().getComputedStyle(t,null).getPropertyValue(e)}function pe(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function He(t,e){const i=[];let s=t.parentElement;for(;s;)e?s.matches(e)&&i.push(s):i.push(s),s=s.parentElement;return i}function he(t,e,i){const s=V();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function fi(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let ee;function ke(){const t=V(),e=W();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function xe(){return ee||(ee=ke()),ee}let te;function We(t){let{userAgent:e}=t===void 0?{}:t;const i=xe(),s=V(),n=s.navigator.platform,r=e||s.navigator.userAgent,o={ios:!1,android:!1},a=s.screen.width,l=s.screen.height,c=r.match(/(Android);?[\s\/]+([\d.]+)?/);let d=r.match(/(iPad).*OS\s([\d_]+)/);const f=r.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),u=n==="Win32";let m=n==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&m&&i.touch&&g.indexOf(`${a}x${l}`)>=0&&(d=r.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),c&&!u&&(o.os="android",o.android=!0),(d||p||f)&&(o.os="ios",o.ios=!0),o}function be(t){return t===void 0&&(t={}),te||(te=We(t)),te}let ie;function je(){const t=V(),e=be();let i=!1;function s(){const a=t.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(s()){const a=String(t.navigator.userAgent);if(a.includes("Version/")){const[l,c]=a.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=l<16||l===16&&c<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),r=s(),o=r||n&&e.ios;return{isSafari:i||r,needPerspectiveFix:i,need3dFix:o,isWebView:n}}function Ye(){return ie||(ie=je()),ie}function qe(t){let{swiper:e,on:i,emit:s}=t;const n=V();let r=null,o=null;const a=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(f=>{o=n.requestAnimationFrame(()=>{const{width:p,height:u}=e;let m=p,g=u;f.forEach(x=>{let{contentBoxSize:h,contentRect:b,target:v}=x;v&&v!==e.el||(m=b?b.width:(h[0]||h).inlineSize,g=b?b.height:(h[0]||h).blockSize)}),(m!==p||g!==u)&&a()})}),r.observe(e.el))},c=()=>{o&&n.cancelAnimationFrame(o),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},d=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver<"u"){l();return}n.addEventListener("resize",a),n.addEventListener("orientationchange",d)}),i("destroy",()=>{c(),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",d)})}function Xe(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r=[],o=V(),a=function(d,f){f===void 0&&(f={});const p=o.MutationObserver||o.WebkitMutationObserver,u=new p(m=>{if(e.__preventObserver__)return;if(m.length===1){n("observerUpdate",m[0]);return}const g=function(){n("observerUpdate",m[0])};o.requestAnimationFrame?o.requestAnimationFrame(g):o.setTimeout(g,0)});u.observe(d,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),r.push(u)},l=()=>{if(e.params.observer){if(e.params.observeParents){const d=He(e.hostEl);for(let f=0;f{r.forEach(d=>{d.disconnect()}),r.splice(0,r.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",l),s("destroy",c)}var Ke={on(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const n=i?"unshift":"push";return t.split(" ").forEach(r=>{s.eventsListeners[r]||(s.eventsListeners[r]=[]),s.eventsListeners[r][n](e)}),s},once(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function n(){s.off(t,n),n.__emitterProxy&&delete n.__emitterProxy;for(var r=arguments.length,o=new Array(r),a=0;a=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(s=>{typeof e>"u"?i.eventsListeners[s]=[]:i.eventsListeners[s]&&i.eventsListeners[s].forEach((n,r)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&i.eventsListeners[s].splice(r,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,s;for(var n=arguments.length,r=new Array(n),o=0;o{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(s,[l,...i])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(c=>{c.apply(s,i)})}),t}};function Ue(){const t=this;let e,i;const s=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=s.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=s.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt($(s,"padding-left")||0,10)-parseInt($(s,"padding-right")||0,10),i=i-parseInt($(s,"padding-top")||0,10)-parseInt($(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Ze(){const t=this;function e(w,E){return parseFloat(w.getPropertyValue(t.getDirectionLabel(E))||0)}const i=t.params,{wrapperEl:s,slidesEl:n,size:r,rtlTranslate:o,wrongRTL:a}=t,l=t.virtual&&i.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,d=F(n,`.${t.params.slideClass}, swiper-slide`),f=l?t.virtual.slides.length:d.length;let p=[];const u=[],m=[];let g=i.slidesOffsetBefore;typeof g=="function"&&(g=i.slidesOffsetBefore.call(t));let x=i.slidesOffsetAfter;typeof x=="function"&&(x=i.slidesOffsetAfter.call(t));const h=t.snapGrid.length,b=t.slidesGrid.length;let v=i.spaceBetween,S=-g,T=0,M=0;if(typeof r>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*r:typeof v=="string"&&(v=parseFloat(v)),t.virtualSize=-v,d.forEach(w=>{o?w.style.marginLeft="":w.style.marginRight="",w.style.marginBottom="",w.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(X(s,"--swiper-centered-offset-before",""),X(s,"--swiper-centered-offset-after",""));const G=i.grid&&i.grid.rows>1&&t.grid;G?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let I;const P=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(w=>typeof i.breakpoints[w].slidesPerView<"u").length>0;for(let w=0;w1&&p.push(t.virtualSize-r)}if(l&&i.loop){const w=m[0]+v;if(i.slidesPerGroup>1){const E=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=w*i.slidesPerGroup;for(let y=0;y!i.cssMode||i.loop?!0:C!==d.length-1).forEach(E=>{E.style[w]=`${v}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let w=0;m.forEach(C=>{w+=C+(v||0)}),w-=v;const E=w-r;p=p.map(C=>C<=0?-g:C>E?E+x:C)}if(i.centerInsufficientSlides){let w=0;if(m.forEach(E=>{w+=E+(v||0)}),w-=v,w{p[y]=C-E}),u.forEach((C,y)=>{u[y]=C+E})}}if(Object.assign(t,{slides:d,snapGrid:p,slidesGrid:u,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){X(s,"--swiper-centered-offset-before",`${-p[0]}px`),X(s,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const w=-t.snapGrid[0],E=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+w),t.slidesGrid=t.slidesGrid.map(C=>C+E)}if(f!==c&&t.emit("slidesLengthChange"),p.length!==h&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),u.length!==b&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!l&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const w=`${i.containerModifierClass}backface-hidden`,E=t.el.classList.contains(w);f<=i.maxBackfaceHiddenSlides?E||t.el.classList.add(w):E&&t.el.classList.remove(w)}}function Je(t){const e=this,i=[],s=e.virtual&&e.params.virtual.enabled;let n=0,r;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=a=>s?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{i.push(a)});else for(r=0;re.slides.length&&!s)break;i.push(o(a))}else i.push(o(e.activeIndex));for(r=0;rn?a:n}(n||n===0)&&(e.wrapperEl.style.height=`${n}px`)}function Qe(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s"u"&&e.updateSlidesOffset();let o=-t;n&&(o=t),s.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=i.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l=0&&u<=e.size-e.slidesSizesGrid[l];(u>=0&&u1&&m<=e.size||u<=0&&m>=e.size)&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(l),s[l].classList.add(i.slideVisibleClass)),g&&s[l].classList.add(i.slideFullyVisibleClass),c.progress=n?-f:f,c.originalProgress=n?-p:p}}function tt(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:r,isEnd:o,progressLoop:a}=e;const l=r,c=o;if(s===0)n=0,r=!0,o=!0;else{n=(t-e.minTranslate())/s;const d=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;r=d||n<=0,o=f||n>=1,d&&(n=0),f&&(n=1)}if(i.loop){const d=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),p=e.slidesGrid[d],u=e.slidesGrid[f],m=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(t);g>=p?a=(g-p)/m:a=(g+m-u)/m,a>1&&(a-=1)}Object.assign(e,{progress:n,progressLoop:a,isBeginning:r,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),r&&!l&&e.emit("reachBeginning toEdge"),o&&!c&&e.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&e.emit("fromEdge"),e.emit("progress",n)}function it(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:n}=t,r=t.virtual&&i.virtual.enabled,o=t.grid&&i.grid&&i.grid.rows>1,a=f=>F(s,`.${i.slideClass}${f}, swiper-slide${f}`)[0];e.forEach(f=>{f.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let l,c,d;if(r)if(i.loop){let f=n-t.virtual.slidesBefore;f<0&&(f=t.virtual.slides.length+f),f>=t.virtual.slides.length&&(f-=t.virtual.slides.length),l=a(`[data-swiper-slide-index="${f}"]`)}else l=a(`[data-swiper-slide-index="${n}"]`);else o?(l=e.filter(f=>f.column===n)[0],d=e.filter(f=>f.column===n+1)[0],c=e.filter(f=>f.column===n-1)[0]):l=e[n];l&&(l.classList.add(i.slideActiveClass),o?(d&&d.classList.add(i.slideNextClass),c&&c.classList.add(i.slidePrevClass)):(d=$e(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),d&&d.classList.add(i.slideNextClass),c=Fe(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]),c&&c.classList.add(i.slidePrevClass))),t.emitSlidesClasses()}const K=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,s=e.closest(i());if(s){let n=s.querySelector(`.${t.params.lazyPreloaderClass}`);!n&&t.isElement&&(s.shadowRoot?n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),n&&n.remove())})),n&&n.remove()}},se=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},oe=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const s=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),n=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=n,a=[o-e];a.push(...Array.from({length:e}).map((l,c)=>o+s+c)),t.slides.forEach((l,c)=>{a.includes(l.column)&&se(t,c)});return}const r=n+s-1;if(t.params.rewind||t.params.loop)for(let o=n-e;o<=r+e;o+=1){const a=(o%i+i)%i;(ar)&&se(t,a)}else for(let o=Math.max(n-e,0);o<=Math.min(r+e,i-1);o+=1)o!==n&&(o>r||o=e[r]&&s=e[r]&&s=e[r]&&(n=r);return i.normalizeSlideIndex&&(n<0||typeof n>"u")&&(n=0),n}function rt(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:n,activeIndex:r,realIndex:o,snapIndex:a}=e;let l=t,c;const d=u=>{let m=u-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof l>"u"&&(l=st(e)),s.indexOf(i)>=0)c=s.indexOf(i);else{const u=Math.min(n.slidesPerGroupSkip,l);c=u+Math.floor((l-u)/n.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),l===r&&!e.params.loop){c!==a&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(l===r&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(l);return}const f=e.grid&&n.grid&&n.grid.rows>1;let p;if(e.virtual&&n.virtual.enabled&&n.loop)p=d(l);else if(f){const u=e.slides.filter(g=>g.column===l)[0];let m=parseInt(u.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(e.slides.indexOf(u),0)),p=Math.floor(m/n.grid.rows)}else if(e.slides[l]){const u=e.slides[l].getAttribute("data-swiper-slide-index");u?p=parseInt(u,10):p=l}else p=l;Object.assign(e,{previousSnapIndex:a,snapIndex:c,previousRealIndex:o,realIndex:p,previousIndex:r,activeIndex:l}),e.initialized&&oe(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(o!==p&&e.emit("realIndexChange"),e.emit("slideChange"))}function nt(t,e){const i=this,s=i.params;let n=t.closest(`.${s.slideClass}, swiper-slide`);!n&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(a=>{!n&&a.matches&&a.matches(`.${s.slideClass}, swiper-slide`)&&(n=a)});let r=!1,o;if(n){for(let a=0;al?d=l:s&&to?a="next":r=l.length&&(x=l.length-1);const h=-l[x];if(a.normalizeSlideIndex)for(let v=0;v=T&&S=T&&S=T&&(o=v)}if(r.initialized&&o!==f&&(!r.allowSlideNext&&(p?h>r.translate&&h>r.minTranslate():hr.translate&&h>r.maxTranslate()&&(f||0)!==o))return!1;o!==(d||0)&&i&&r.emit("beforeSlideChangeStart"),r.updateProgress(h);let b;if(o>f?b="next":o0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{u[v?"scrollLeft":"scrollTop"]=S})):u[v?"scrollLeft":"scrollTop"]=S,T&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})}else{if(!r.support.smoothScroll)return Te({swiper:r,targetPosition:S,side:v?"left":"top"}),!0;u.scrollTo({[v?"left":"top"]:S,behavior:"smooth"})}return!0}return r.setTransition(e),r.setTranslate(h),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,s),r.transitionStart(i,b),e===0?r.transitionEnd(i,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(S){!r||r.destroyed||S.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function wt(t,e,i,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const n=this;if(n.destroyed)return;const r=n.grid&&n.params.grid&&n.params.grid.rows>1;let o=t;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)o=o+n.virtual.slidesBefore;else{let a;if(r){const p=o*n.params.grid.rows;a=n.slides.filter(u=>u.getAttribute("data-swiper-slide-index")*1===p)[0].column}else a=n.getSlideIndexByData(o);const l=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:c}=n.params;let d=n.params.slidesPerView;d==="auto"?d=n.slidesPerViewDynamic():(d=Math.ceil(parseFloat(n.params.slidesPerView,10)),c&&d%2===0&&(d=d+1));let f=l-au.getAttribute("data-swiper-slide-index")*1===p)[0].column}else o=n.getSlideIndexByData(o)}return requestAnimationFrame(()=>{n.slideTo(o,e,i,s)}),n}function St(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{enabled:n,params:r,animating:o}=s;if(!n||s.destroyed)return s;let a=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(a=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex{s.slideTo(s.activeIndex+l,t,e,i)}),!0}return r.rewind&&s.isEnd?s.slideTo(0,t,e,i):s.slideTo(s.activeIndex+l,t,e,i)}function Tt(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{params:n,snapGrid:r,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=s;if(!l||s.destroyed)return s;const d=s.virtual&&n.virtual.enabled;if(n.loop){if(c&&!d&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const f=a?s.translate:-s.translate;function p(h){return h<0?-Math.floor(Math.abs(h)):Math.floor(h)}const u=p(f),m=r.map(h=>p(h));let g=r[m.indexOf(u)-1];if(typeof g>"u"&&n.cssMode){let h;r.forEach((b,v)=>{u>=b&&(h=v)}),typeof h<"u"&&(g=r[h>0?h-1:h])}let x=0;if(typeof g<"u"&&(x=o.indexOf(g),x<0&&(x=s.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(x=x-s.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),n.rewind&&s.isBeginning){const h=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(h,t,e,i)}else if(n.loop&&s.activeIndex===0&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(x,t,e,i)}),!0;return s.slideTo(x,t,e,i)}function xt(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this;if(!s.destroyed)return s.slideTo(s.activeIndex,t,e,i)}function bt(t,e,i,s){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),s===void 0&&(s=.5);const n=this;if(n.destroyed)return;let r=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const c=n.snapGrid[a],d=n.snapGrid[a+1];l-c>(d-c)*s&&(r+=n.params.slidesPerGroup)}else{const c=n.snapGrid[a-1],d=n.snapGrid[a];l-c<=(d-c)*s&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,t,e,i)}function Et(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,s=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let n=t.clickedIndex,r;const o=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;r=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?nt.slides.length-t.loopedSlides+s/2?(t.loopFix(),n=t.getSlideIndex(F(i,`${o}[data-swiper-slide-index="${r}"]`)[0]),le(()=>{t.slideTo(n)})):t.slideTo(n):n>t.slides.length-s?(t.loopFix(),n=t.getSlideIndex(F(i,`${o}[data-swiper-slide-index="${r}"]`)[0]),le(()=>{t.slideTo(n)})):t.slideTo(n)}else t.slideTo(n)}var yt={slideTo:vt,slideToLoop:wt,slideNext:St,slidePrev:Tt,slideReset:xt,slideToClosest:bt,slideToClickedSlide:Et};function Pt(t){const e=this,{params:i,slidesEl:s}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const n=()=>{F(s,`.${i.slideClass}, swiper-slide`).forEach((f,p)=>{f.setAttribute("data-swiper-slide-index",p)})},r=e.grid&&i.grid&&i.grid.rows>1,o=i.slidesPerGroup*(r?i.grid.rows:1),a=e.slides.length%o!==0,l=r&&e.slides.length%i.grid.rows!==0,c=d=>{for(let f=0;f1;c.length"u"?r=l.getSlideIndex(c.filter(y=>y.classList.contains(u.slideActiveClass))[0]):T=r;const M=s==="next"||!s,G=s==="prev"||!s;let I=0,P=0;const w=b?Math.ceil(c.length/u.grid.rows):c.length,C=(b?c[r].column:r)+(m&&typeof n>"u"?-g/2+.5:0);if(C=0;B-=1)c[B].column===A&&v.push(B)}else v.push(w-L-1)}}else if(C+g>w-h){P=Math.max(C-(w-h*2),x);for(let y=0;y{A.column===L&&S.push(B)}):S.push(L)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),G&&v.forEach(y=>{c[y].swiperLoopMoveDOM=!0,p.prepend(c[y]),c[y].swiperLoopMoveDOM=!1}),M&&S.forEach(y=>{c[y].swiperLoopMoveDOM=!0,p.append(c[y]),c[y].swiperLoopMoveDOM=!1}),l.recalcSlides(),u.slidesPerView==="auto"?l.updateSlides():b&&(v.length>0&&G||S.length>0&&M)&&l.slides.forEach((y,L)=>{l.grid.updateSlide(L,y,l.slides)}),u.watchSlidesProgress&&l.updateSlidesOffset(),i){if(v.length>0&&G){if(typeof e>"u"){const y=l.slidesGrid[T],A=l.slidesGrid[T+I]-y;a?l.setTranslate(l.translate-A):(l.slideTo(T+Math.ceil(I),0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-A,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-A))}else if(n){const y=b?v.length/u.grid.rows:v.length;l.slideTo(l.activeIndex+y,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(S.length>0&&M)if(typeof e>"u"){const y=l.slidesGrid[T],A=l.slidesGrid[T-P]-y;a?l.setTranslate(l.translate-A):(l.slideTo(T-P,0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-A,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-A))}else{const y=b?S.length/u.grid.rows:S.length;l.slideTo(l.activeIndex-y,0,!1,!0)}}if(l.allowSlidePrev=d,l.allowSlideNext=f,l.controller&&l.controller.control&&!o){const y={slideRealIndex:e,direction:s,setTranslate:n,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(L=>{!L.destroyed&&L.params.loop&&L.loopFix({...y,slideTo:L.params.slidesPerView===u.slidesPerView?i:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...y,slideTo:l.controller.control.params.slidesPerView===u.slidesPerView?i:!1})}l.emit("loopFix")}function Mt(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(n=>{const r=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;s[r]=n}),t.slides.forEach(n=>{n.removeAttribute("data-swiper-slide-index")}),s.forEach(n=>{i.append(n)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var It={loopCreate:Pt,loopFix:Ct,loopDestroy:Mt};function Ot(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function Lt(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var zt={setGrabCursor:Ot,unsetGrabCursor:Lt};function At(t,e){e===void 0&&(e=this);function i(s){if(!s||s===W()||s===V())return null;s.assignedSlot&&(s=s.assignedSlot);const n=s.closest(t);return!n&&!s.getRootNode?null:n||i(s.getRootNode().host)}return i(e)}function me(t,e,i){const s=V(),{params:n}=t,r=n.edgeSwipeDetection,o=n.edgeSwipeThreshold;return r&&(i<=o||i>=s.innerWidth-o)?r==="prevent"?(e.preventDefault(),!0):!1:!0}function _t(t){const e=this,i=W();let s=t;s.originalEvent&&(s=s.originalEvent);const n=e.touchEventsData;if(s.type==="pointerdown"){if(n.pointerId!==null&&n.pointerId!==s.pointerId)return;n.pointerId=s.pointerId}else s.type==="touchstart"&&s.targetTouches.length===1&&(n.touchId=s.targetTouches[0].identifier);if(s.type==="touchstart"){me(e,s,s.targetTouches[0].pageX);return}const{params:r,touches:o,enabled:a}=e;if(!a||!r.simulateTouch&&s.pointerType==="mouse"||e.animating&&r.preventInteractionOnTransition)return;!e.animating&&r.cssMode&&r.loop&&e.loopFix();let l=s.target;if(r.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(l)||"which"in s&&s.which===3||"button"in s&&s.button>0||n.isTouched&&n.isMoved)return;const c=!!r.noSwipingClass&&r.noSwipingClass!=="",d=s.composedPath?s.composedPath():s.path;c&&s.target&&s.target.shadowRoot&&d&&(l=d[0]);const f=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,p=!!(s.target&&s.target.shadowRoot);if(r.noSwiping&&(p?At(f,l):l.closest(f))){e.allowClick=!0;return}if(r.swipeHandler&&!l.closest(r.swipeHandler))return;o.currentX=s.pageX,o.currentY=s.pageY;const u=o.currentX,m=o.currentY;if(!me(e,s,u))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=u,o.startY=m,n.touchStartTime=U(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let g=!0;l.matches(n.focusableElements)&&(g=!1,l.nodeName==="SELECT"&&(n.isTouched=!1)),i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==l&&i.activeElement.blur();const x=g&&e.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||x)&&!l.isContentEditable&&s.preventDefault(),r.freeMode&&r.freeMode.enabled&&e.freeMode&&e.animating&&!r.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",s)}function Gt(t){const e=W(),i=this,s=i.touchEventsData,{params:n,touches:r,rtlTranslate:o,enabled:a}=i;if(!a||!n.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(s.touchId!==null||l.pointerId!==s.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].filter(M=>M.identifier===s.touchId)[0],!c||c.identifier!==s.touchId)return}else c=l;if(!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",l);return}const d=c.pageX,f=c.pageY;if(l.preventedByNestedSwiper){r.startX=d,r.startY=f;return}if(!i.allowTouchMove){l.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(r,{startX:d,startY:f,currentX:d,currentY:f}),s.touchStartTime=U());return}if(n.touchReleaseOnEdges&&!n.loop){if(i.isVertical()){if(fr.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(dr.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&l.target===e.activeElement&&l.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}s.allowTouchCallbacks&&i.emit("touchMove",l),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=d,r.currentY=f;const p=r.currentX-r.startX,u=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(p**2+u**2)"u"){let M;i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX?s.isScrolling=!1:p*p+u*u>=25&&(M=Math.atan2(Math.abs(u),Math.abs(p))*180/Math.PI,s.isScrolling=i.isHorizontal()?M>n.touchAngle:90-M>n.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",l),typeof s.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(s.startMoving=!0),s.isScrolling){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&l.cancelable&&l.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&l.stopPropagation();let m=i.isHorizontal()?p:u,g=i.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),g=Math.abs(g)*(o?1:-1)),r.diff=m,m*=n.touchRatio,o&&(m=-m,g=-g);const x=i.touchesDirection;i.swipeDirection=m>0?"prev":"next",i.touchesDirection=g>0?"prev":"next";const h=i.params.loop&&!n.cssMode,b=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!s.isMoved){if(h&&b&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const M=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(M)}s.allowMomentumBounce=!1,n.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",l)}let v;if(new Date().getTime(),s.isMoved&&s.allowThresholdMove&&x!==i.touchesDirection&&h&&b&&Math.abs(m)>=1){Object.assign(r,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,s.startTranslate=s.currentTranslate;return}i.emit("sliderMove",l),s.isMoved=!0,s.currentTranslate=m+s.startTranslate;let S=!0,T=n.resistanceRatio;if(n.touchReleaseOnEdges&&(T=0),m>0?(h&&b&&!v&&s.allowThresholdMove&&s.currentTranslate>(n.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(S=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+m)**T))):m<0&&(h&&b&&!v&&s.allowThresholdMove&&s.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(n.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(s.currentTranslate=s.startTranslate),n.threshold>0)if(Math.abs(m)>n.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,s.currentTranslate=s.startTranslate,r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{s.currentTranslate=s.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function Dt(t){const e=this,i=e.touchEventsData;let s=t;s.originalEvent&&(s=s.originalEvent);let n;if(s.type==="touchend"||s.type==="touchcancel"){if(n=[...s.changedTouches].filter(T=>T.identifier===i.touchId)[0],!n||n.identifier!==i.touchId)return}else{if(i.touchId!==null||s.pointerId!==i.pointerId)return;n=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&!(["pointercancel","contextmenu"].includes(s.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:o,touches:a,rtlTranslate:l,slidesGrid:c,enabled:d}=e;if(!d||!o.simulateTouch&&s.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",s),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&o.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}o.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const f=U(),p=f-i.touchStartTime;if(e.allowClick){const T=s.path||s.composedPath&&s.composedPath();e.updateClickedSlide(T&&T[0]||s.target,T),e.emit("tap click",s),p<300&&f-i.lastClickTime<300&&e.emit("doubleTap doubleClick",s)}if(i.lastClickTime=U(),le(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||a.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let u;if(o.followFinger?u=l?e.translate:-e.translate:u=-i.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:u});return}const m=u>=-e.maxTranslate()&&!e.params.loop;let g=0,x=e.slidesSizesGrid[0];for(let T=0;T=c[T]&&u=c[T])&&(g=T,x=c[c.length-1]-c[c.length-2])}let h=null,b=null;o.rewind&&(e.isBeginning?b=o.virtual&&o.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(h=0));const v=(u-c[g])/x,S=go.longSwipesMs){if(!o.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(v>=o.longSwipesRatio?e.slideTo(o.rewind&&e.isEnd?h:g+S):e.slideTo(g)),e.swipeDirection==="prev"&&(v>1-o.longSwipesRatio?e.slideTo(g+S):b!==null&&v<0&&Math.abs(v)>o.longSwipesRatio?e.slideTo(b):e.slideTo(g))}else{if(!o.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(s.target===e.navigation.nextEl||s.target===e.navigation.prevEl)?s.target===e.navigation.nextEl?e.slideTo(g+S):e.slideTo(g):(e.swipeDirection==="next"&&e.slideTo(h!==null?h:g+S),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:g))}}function ge(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:r}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const a=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=n,t.allowSlideNext=s,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}function Vt(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Nt(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:s}=t;if(!s)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let n;const r=t.maxTranslate()-t.minTranslate();r===0?n=0:n=(t.translate-t.minTranslate())/r,n!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Bt(t){const e=this;K(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Rt(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const ye=(t,e)=>{const i=W(),{params:s,el:n,wrapperEl:r,device:o}=t,a=!!s.nested,l=e==="on"?"addEventListener":"removeEventListener",c=e;i[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:a}),n[l]("touchstart",t.onTouchStart,{passive:!1}),n[l]("pointerdown",t.onTouchStart,{passive:!1}),i[l]("touchmove",t.onTouchMove,{passive:!1,capture:a}),i[l]("pointermove",t.onTouchMove,{passive:!1,capture:a}),i[l]("touchend",t.onTouchEnd,{passive:!0}),i[l]("pointerup",t.onTouchEnd,{passive:!0}),i[l]("pointercancel",t.onTouchEnd,{passive:!0}),i[l]("touchcancel",t.onTouchEnd,{passive:!0}),i[l]("pointerout",t.onTouchEnd,{passive:!0}),i[l]("pointerleave",t.onTouchEnd,{passive:!0}),i[l]("contextmenu",t.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&n[l]("click",t.onClick,!0),s.cssMode&&r[l]("scroll",t.onScroll),s.updateOnWindowResize?t[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",ge,!0):t[c]("observerUpdate",ge,!0),n[l]("load",t.onLoad,{capture:!0})};function Ft(){const t=this,{params:e}=t;t.onTouchStart=_t.bind(t),t.onTouchMove=Gt.bind(t),t.onTouchEnd=Dt.bind(t),t.onDocumentTouchStart=Rt.bind(t),e.cssMode&&(t.onScroll=Nt.bind(t)),t.onClick=Vt.bind(t),t.onLoad=Bt.bind(t),ye(t,"on")}function $t(){ye(this,"off")}var Ht={attachEvents:Ft,detachEvents:$t};const ve=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function kt(){const t=this,{realIndex:e,initialized:i,params:s,el:n}=t,r=s.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const o=t.getBreakpoint(r,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const l=(o in r?r[o]:void 0)||t.originalParams,c=ve(t,s),d=ve(t,l),f=s.enabled;c&&!d?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&d&&(n.classList.add(`${s.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&s.grid.fill==="column")&&n.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof l[h]>"u")return;const b=s[h]&&s[h].enabled,v=l[h]&&l[h].enabled;b&&!v&&t[h].disable(),!b&&v&&t[h].enable()});const p=l.direction&&l.direction!==s.direction,u=s.loop&&(l.slidesPerView!==s.slidesPerView||p),m=s.loop;p&&i&&t.changeDirection(),D(t.params,l);const g=t.params.enabled,x=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!g?t.disable():!f&&g&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",l),i&&(u?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!m&&x?(t.loopCreate(e),t.updateSlides()):m&&!x&&t.loopDestroy()),t.emit("breakpoint",l)}function Wt(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let s=!1;const n=V(),r=e==="window"?n.innerHeight:i.clientHeight,o=Object.keys(t).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:r*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a{typeof s=="object"?Object.keys(s).forEach(n=>{s[n]&&i.push(e+n)}):typeof s=="string"&&i.push(e+s)}),i}function qt(){const t=this,{classNames:e,params:i,rtl:s,el:n,device:r}=t,o=Yt(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...o),n.classList.add(...e),t.emitContainerClasses()}function Xt(){const t=this,{el:e,classNames:i}=t;e.classList.remove(...i),t.emitContainerClasses()}var Kt={addClasses:qt,removeClasses:Xt};function Ut(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:s}=i;if(s){const n=t.slides.length-1,r=t.slidesGrid[n]+t.slidesSizesGrid[n]+s*2;t.isLocked=t.size>r}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Zt={checkOverflow:Ut},de={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Jt(t,e){return function(s){s===void 0&&(s={});const n=Object.keys(s)[0],r=s[n];if(typeof r!="object"||r===null){D(e,s);return}if(t[n]===!0&&(t[n]={enabled:!0}),n==="navigation"&&t[n]&&t[n].enabled&&!t[n].prevEl&&!t[n].nextEl&&(t[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&t[n]&&t[n].enabled&&!t[n].el&&(t[n].auto=!0),!(n in t&&"enabled"in r)){D(e,s);return}typeof t[n]=="object"&&!("enabled"in t[n])&&(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),D(e,s)}}const re={eventsEmitter:Ke,update:lt,translate:ut,transition:gt,slide:yt,loop:It,grabCursor:zt,events:Ht,breakpoints:jt,checkOverflow:Zt,classes:Kt},ne={};let fe=class R{constructor(){let e,i;for(var s=arguments.length,n=new Array(s),r=0;r1){const d=[];return o.querySelectorAll(i.el).forEach(f=>{const p=D({},i,{el:f});d.push(new R(p))}),d}const a=this;a.__swiper__=!0,a.support=xe(),a.device=be({userAgent:i.userAgent}),a.browser=Ye(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],i.modules&&Array.isArray(i.modules)&&a.modules.push(...i.modules);const l={};a.modules.forEach(d=>{d({params:i,swiper:a,extendParams:Jt(i,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const c=D({},de,l);return a.params=D({},c,ne,i),a.originalParams=D({},a.params),a.passedParams=D({},i),a.params&&a.params.on&&Object.keys(a.params.on).forEach(d=>{a.on(d,a.params.on[d])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:s}=this,n=F(i,`.${s.slideClass}, swiper-slide`),r=pe(n[0]);return pe(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:s}=e;e.slides=F(i,`.${s.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const s=this;e=Math.min(Math.max(e,0),1);const n=s.minTranslate(),o=(s.maxTranslate()-n)*e+n;s.translateTo(o,typeof i>"u"?0:i),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(s=>{const n=e.getSlideClasses(s);i.push({slideEl:s,classNames:n}),e.emit("_slideClass",s,n)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const s=this,{params:n,slides:r,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:c}=s;let d=1;if(typeof n.slidesPerView=="number")return n.slidesPerView;if(n.centeredSlides){let f=r[c]?Math.ceil(r[c].swiperSlideSize):0,p;for(let u=c+1;ul&&(p=!0));for(let u=c-1;u>=0;u-=1)r[u]&&!p&&(f+=r[u].swiperSlideSize,d+=1,f>l&&(p=!0))}else if(e==="current")for(let f=c+1;f=0;f-=1)o[c]-o[f]{o.complete&&K(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function n(){const o=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)n(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const o=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(o.length-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||n()}s.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const s=this,n=s.params.direction;return e||(e=n==="horizontal"?"vertical":"horizontal"),e===n||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${n}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(r=>{e==="vertical"?r.style.width="":r.style.height=""}),s.emit("changeDirection"),i&&s.update()),s}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let s=e||i.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=i,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const n=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(n()):F(s,n())[0];return!o&&i.params.createElements&&(o=ae("div",i.params.wrapperClass),s.append(o),F(s,`.${i.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(i,{el:s,wrapperEl:o,slidesEl:i.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:o,hostEl:i.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||$(s,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||$(s,"direction")==="rtl"),wrongRTL:$(o,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const n=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(r=>{r.complete?K(i,r):r.addEventListener("load",o=>{K(i,o.target)})}),oe(i),i.initialized=!0,oe(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const s=this,{params:n,el:r,wrapperEl:o,slides:a}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),n.loop&&s.loopDestroy(),i&&(s.removeClasses(),r.removeAttribute("style"),o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(l=>{s.off(l)}),e!==!1&&(s.el.swiper=null,Ve(s)),s.destroyed=!0),null}static extendDefaults(e){D(ne,e)}static get extendedDefaults(){return ne}static get defaults(){return de}static installModule(e){R.prototype.__modules__||(R.prototype.__modules__=[]);const i=R.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>R.installModule(i)),R):(R.installModule(e),R)}};Object.keys(re).forEach(t=>{Object.keys(re[t]).forEach(e=>{fe.prototype[e]=re[t][e]})});fe.use([qe,Xe]);const Pe=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function H(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function k(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(s=>i.indexOf(s)<0).forEach(s=>{typeof t[s]>"u"?t[s]=e[s]:H(e[s])&&H(t[s])&&Object.keys(e[s]).length>0?e[s].__swiper__?t[s]=e[s]:k(t[s],e[s]):t[s]=e[s]})}function Ce(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Me(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Ie(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Oe(t){t===void 0&&(t="");const e=t.split(" ").map(s=>s.trim()).filter(s=>!!s),i=[];return e.forEach(s=>{i.indexOf(s)<0&&i.push(s)}),i.join(" ")}function Qt(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function ei(t){let{swiper:e,slides:i,passedParams:s,changedParams:n,nextEl:r,prevEl:o,scrollbarEl:a,paginationEl:l}=t;const c=n.filter(P=>P!=="children"&&P!=="direction"&&P!=="wrapperClass"),{params:d,pagination:f,navigation:p,scrollbar:u,virtual:m,thumbs:g}=e;let x,h,b,v,S,T,M,G;n.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(x=!0),n.includes("controller")&&s.controller&&s.controller.control&&d.controller&&!d.controller.control&&(h=!0),n.includes("pagination")&&s.pagination&&(s.pagination.el||l)&&(d.pagination||d.pagination===!1)&&f&&!f.el&&(b=!0),n.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||a)&&(d.scrollbar||d.scrollbar===!1)&&u&&!u.el&&(v=!0),n.includes("navigation")&&s.navigation&&(s.navigation.prevEl||o)&&(s.navigation.nextEl||r)&&(d.navigation||d.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(S=!0);const I=P=>{e[P]&&(e[P].destroy(),P==="navigation"?(e.isElement&&(e[P].prevEl.remove(),e[P].nextEl.remove()),d[P].prevEl=void 0,d[P].nextEl=void 0,e[P].prevEl=void 0,e[P].nextEl=void 0):(e.isElement&&e[P].el.remove(),d[P].el=void 0,e[P].el=void 0))};n.includes("loop")&&e.isElement&&(d.loop&&!s.loop?T=!0:!d.loop&&s.loop?M=!0:G=!0),c.forEach(P=>{if(H(d[P])&&H(s[P]))Object.assign(d[P],s[P]),(P==="navigation"||P==="pagination"||P==="scrollbar")&&"enabled"in s[P]&&!s[P].enabled&&I(P);else{const w=s[P];(w===!0||w===!1)&&(P==="navigation"||P==="pagination"||P==="scrollbar")?w===!1&&I(P):d[P]=s[P]}}),c.includes("controller")&&!h&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),n.includes("children")&&i&&m&&d.virtual.enabled?(m.slides=i,m.update(!0)):n.includes("virtual")&&m&&d.virtual.enabled&&(i&&(m.slides=i),m.update(!0)),n.includes("children")&&i&&d.loop&&(G=!0),x&&g.init()&&g.update(!0),h&&(e.controller.control=d.controller.control),b&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(d.pagination.el=l),f.init(),f.render(),f.update()),v&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(d.scrollbar.el=a),u.init(),u.updateSize(),u.setTranslate()),S&&(e.isElement&&((!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-next"),r.innerHTML=e.hostEl.constructor.nextButtonSvg,r.part.add("button-next"),e.el.appendChild(r)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),o.innerHTML=e.hostEl.constructor.prevButtonSvg,o.part.add("button-prev"),e.el.appendChild(o))),r&&(d.navigation.nextEl=r),o&&(d.navigation.prevEl=o),p.init(),p.update()),n.includes("allowSlideNext")&&(e.allowSlideNext=s.allowSlideNext),n.includes("allowSlidePrev")&&(e.allowSlidePrev=s.allowSlidePrev),n.includes("direction")&&e.changeDirection(s.direction,!1),(T||G)&&e.loopDestroy(),(M||G)&&e.loopCreate(),e.update()}function ti(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},s={},n={};k(i,de),i._emitClasses=!0,i.init=!1;const r={},o=Pe.map(l=>l.replace(/_/,"")),a=Object.assign({},t);return Object.keys(a).forEach(l=>{typeof t[l]>"u"||(o.indexOf(l)>=0?H(t[l])?(i[l]={},n[l]={},k(i[l],t[l]),k(n[l],t[l])):(i[l]=t[l],n[l]=t[l]):l.search(/on[A-Z]/)===0&&typeof t[l]=="function"?e?s[`${l[2].toLowerCase()}${l.substr(3)}`]=t[l]:i.on[`${l[2].toLowerCase()}${l.substr(3)}`]=t[l]:r[l]=t[l])}),["navigation","pagination","scrollbar"].forEach(l=>{i[l]===!0&&(i[l]={}),i[l]===!1&&delete i[l]}),{params:i,passedParams:n,rest:r,events:s}}function ii(t,e){let{el:i,nextEl:s,prevEl:n,paginationEl:r,scrollbarEl:o,swiper:a}=t;Ce(e)&&s&&n&&(a.params.navigation.nextEl=s,a.originalParams.navigation.nextEl=s,a.params.navigation.prevEl=n,a.originalParams.navigation.prevEl=n),Me(e)&&r&&(a.params.pagination.el=r,a.originalParams.pagination.el=r),Ie(e)&&o&&(a.params.scrollbar.el=o,a.originalParams.scrollbar.el=o),a.init(i)}function si(t,e,i,s,n){const r=[];if(!e)return r;const o=l=>{r.indexOf(l)<0&&r.push(l)};if(i&&s){const l=s.map(n),c=i.map(n);l.join("")!==c.join("")&&o("children"),s.length!==i.length&&o("children")}return Pe.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in t&&l in e)if(H(t[l])&&H(e[l])){const c=Object.keys(t[l]),d=Object.keys(e[l]);c.length!==d.length?o(l):(c.forEach(f=>{t[l][f]!==e[l][f]&&o(l)}),d.forEach(f=>{t[l][f]!==e[l][f]&&o(l)}))}else t[l]!==e[l]&&o(l)}),r}const ri=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function J(){return J=Object.assign?Object.assign.bind():function(t){for(var e=1;e{Le(i)?e.push(i):i.props&&i.props.children&&ze(i.props.children).forEach(s=>e.push(s))}),e}function ni(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return z.Children.toArray(t).forEach(s=>{if(Le(s))e.push(s);else if(s.props&&s.props.slot&&i[s.props.slot])i[s.props.slot].push(s);else if(s.props&&s.props.children){const n=ze(s.props.children);n.length>0?n.forEach(r=>e.push(r)):i["container-end"].push(s)}else i["container-end"].push(s)}),{slides:e,slots:i}}function li(t,e,i){if(!i)return null;const s=d=>{let f=d;return d<0?f=e.length+d:f>=e.length&&(f=f-e.length),f},n=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:r,to:o}=i,a=t.params.loop?-e.length:0,l=t.params.loop?e.length*2:e.length,c=[];for(let d=a;d=r&&d<=o&&c.push(e[s(d)]);return c.map((d,f)=>z.cloneElement(d,{swiper:t,style:n,key:d.props.virtualIndex||d.key||`slide-${f}`}))}function j(t,e){return typeof window>"u"?O.useEffect(t,e):O.useLayoutEffect(t,e)}const we=O.createContext(null),ai=O.createContext(null),oi=O.forwardRef(function(t,e){let{className:i,tag:s="div",wrapperTag:n="div",children:r,onSwiper:o,...a}=t===void 0?{}:t,l=!1;const[c,d]=O.useState("swiper"),[f,p]=O.useState(null),[u,m]=O.useState(!1),g=O.useRef(!1),x=O.useRef(null),h=O.useRef(null),b=O.useRef(null),v=O.useRef(null),S=O.useRef(null),T=O.useRef(null),M=O.useRef(null),G=O.useRef(null),{params:I,passedParams:P,rest:w,events:E}=ti(a),{slides:C,slots:y}=ni(r),L=()=>{m(!u)};Object.assign(I.on,{_containerClasses(_,N){d(N)}});const A=()=>{Object.assign(I.on,E),l=!0;const _={...I};if(delete _.wrapperClass,h.current=new fe(_),h.current.virtual&&h.current.params.virtual.enabled){h.current.virtual.slides=C;const N={cache:!1,slides:C,renderExternal:p,renderExternalUpdate:!1};k(h.current.params.virtual,N),k(h.current.originalParams.virtual,N)}};x.current||A(),h.current&&h.current.on("_beforeBreakpoint",L);const B=()=>{l||!E||!h.current||Object.keys(E).forEach(_=>{h.current.on(_,E[_])})},Q=()=>{!E||!h.current||Object.keys(E).forEach(_=>{h.current.off(_,E[_])})};O.useEffect(()=>()=>{h.current&&h.current.off("_beforeBreakpoint",L)}),O.useEffect(()=>{!g.current&&h.current&&(h.current.emitSlidesClasses(),g.current=!0)}),j(()=>{if(e&&(e.current=x.current),!!x.current)return h.current.destroyed&&A(),ii({el:x.current,nextEl:S.current,prevEl:T.current,paginationEl:M.current,scrollbarEl:G.current,swiper:h.current},I),o&&!h.current.destroyed&&o(h.current),()=>{h.current&&!h.current.destroyed&&h.current.destroy(!0,!1)}},[]),j(()=>{B();const _=si(P,b.current,C,v.current,N=>N.key);return b.current=P,v.current=C,_.length&&h.current&&!h.current.destroyed&&ei({swiper:h.current,slides:C,passedParams:P,changedParams:_,nextEl:S.current,prevEl:T.current,scrollbarEl:G.current,paginationEl:M.current}),()=>{Q()}}),j(()=>{ri(h.current)},[f]);function Y(){return I.virtual?li(h.current,C,f):C.map((_,N)=>z.cloneElement(_,{swiper:h.current,swiperSlideIndex:N}))}return z.createElement(s,J({ref:x,className:Oe(`${c}${i?` ${i}`:""}`)},w),z.createElement(ai.Provider,{value:h.current},y["container-start"],z.createElement(n,{className:Qt(I.wrapperClass)},y["wrapper-start"],Y(),y["wrapper-end"]),Ce(I)&&z.createElement(z.Fragment,null,z.createElement("div",{ref:T,className:"swiper-button-prev"}),z.createElement("div",{ref:S,className:"swiper-button-next"})),Ie(I)&&z.createElement("div",{ref:G,className:"swiper-scrollbar"}),Me(I)&&z.createElement("div",{ref:M,className:"swiper-pagination"}),y["container-end"]))});oi.displayName="Swiper";const di=O.forwardRef(function(t,e){let{tag:i="div",children:s,className:n="",swiper:r,zoom:o,lazy:a,virtualIndex:l,swiperSlideIndex:c,...d}=t===void 0?{}:t;const f=O.useRef(null),[p,u]=O.useState("swiper-slide"),[m,g]=O.useState(!1);function x(S,T,M){T===f.current&&u(M)}j(()=>{if(typeof c<"u"&&(f.current.swiperSlideIndex=c),e&&(e.current=f.current),!(!f.current||!r)){if(r.destroyed){p!=="swiper-slide"&&u("swiper-slide");return}return r.on("_slideClass",x),()=>{r&&r.off("_slideClass",x)}}}),j(()=>{r&&f.current&&!r.destroyed&&u(r.getSlideClasses(f.current))},[r]);const h={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},b=()=>typeof s=="function"?s(h):s,v=()=>{g(!0)};return z.createElement(i,J({ref:f,className:Oe(`${p}${n?` ${n}`:""}`),"data-swiper-slide-index":l,onLoad:v},d),o&&z.createElement(we.Provider,{value:h},z.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},b(),a&&!m&&z.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&z.createElement(we.Provider,{value:h},b(),a&&!m&&z.createElement("div",{className:"swiper-lazy-preloader"})))});di.displayName="SwiperSlide";export{di as S,oi as a,pe as b,ae as c,he as d,F as e,He as f,fi as m}; diff --git a/assets/useDownloadCertificate-CojJpn-m.js b/assets/useDownloadCertificate-B4BL8h3F.js similarity index 87% rename from assets/useDownloadCertificate-CojJpn-m.js rename to assets/useDownloadCertificate-B4BL8h3F.js index 75bff6b4..e5ea164b 100644 --- a/assets/useDownloadCertificate-CojJpn-m.js +++ b/assets/useDownloadCertificate-B4BL8h3F.js @@ -1 +1 @@ -import{r as n,D as i}from"./index-Bjk_45MO.js";const f=()=>{const[c,o]=n.useState(-1),{generateCertificate:r}=n.useContext(i.EscolaLMSContext);return{loadingId:c,downloadCertificate:async(a,s)=>{o(a);try{const t=await r(a);if(t){const e=document.createElement("a");document.body.appendChild(e),e.setAttribute("href",URL.createObjectURL(new Blob([t]))),e.setAttribute("download",`${s||"Certificate"}.pdf`),e.style.display="",e.click(),document.body.removeChild(e)}}catch(t){console.log(t)}finally{o(-1)}}}};export{f as u}; +import{r as n,D as i}from"./index-Cei2V9tG.js";const f=()=>{const[c,o]=n.useState(-1),{generateCertificate:r}=n.useContext(i.EscolaLMSContext);return{loadingId:c,downloadCertificate:async(a,s)=>{o(a);try{const t=await r(a);if(t){const e=document.createElement("a");document.body.appendChild(e),e.setAttribute("href",URL.createObjectURL(new Blob([t]))),e.setAttribute("download",`${s||"Certificate"}.pdf`),e.style.display="",e.click(),document.body.removeChild(e)}}catch(t){console.log(t)}finally{o(-1)}}}};export{f as u}; diff --git a/assets/useFetchCourses-CPsyyy8t.js b/assets/useFetchCourses-Dd2e0Wna.js similarity index 81% rename from assets/useFetchCourses-CPsyyy8t.js rename to assets/useFetchCourses-Dd2e0Wna.js index e271204e..312827c2 100644 --- a/assets/useFetchCourses-CPsyyy8t.js +++ b/assets/useFetchCourses-Dd2e0Wna.js @@ -1 +1 @@ -import{r as e,D as i}from"./index-Bjk_45MO.js";const C=s=>{const[u,o]=e.useState(),[n,r]=e.useState(!0),{fetchCourses:c}=e.useContext(i.EscolaLMSContext),a=async f=>{r(!0);try{const t=await c(f);t&&o(t)}catch(t){console.error(t),o(void 0)}finally{r(!1)}};return e.useEffect(()=>{s&&a(s)},[c]),{courses:u,loading:n,fetchCoursesData:a}};export{C as u}; +import{r as e,D as i}from"./index-Cei2V9tG.js";const C=s=>{const[u,o]=e.useState(),[n,r]=e.useState(!0),{fetchCourses:c}=e.useContext(i.EscolaLMSContext),a=async f=>{r(!0);try{const t=await c(f);t&&o(t)}catch(t){console.error(t),o(void 0)}finally{r(!1)}};return e.useEffect(()=>{s&&a(s)},[c]),{courses:u,loading:n,fetchCoursesData:a}};export{C as u}; diff --git a/assets/useRoles-DhUVqcxA.js b/assets/useRoles-Fnr-v6hU.js similarity index 82% rename from assets/useRoles-DhUVqcxA.js rename to assets/useRoles-Fnr-v6hU.js index 91317a62..255cb041 100644 --- a/assets/useRoles-DhUVqcxA.js +++ b/assets/useRoles-Fnr-v6hU.js @@ -1 +1 @@ -import{r as o,h as n}from"./index-Bjk_45MO.js";const l=()=>{const{user:e}=o.useContext(n.EscolaLMSContext),u=o.useMemo(()=>{var s,t;return!!((t=(s=e.value)==null?void 0:s.roles)!=null&&t.includes("tutor"))},[e]),r=o.useMemo(()=>{var s,t;return!!((t=(s=e.value)==null?void 0:s.roles)!=null&&t.includes("student"))},[e]);return{isTutor:u,isStudent:r}};export{l as u}; +import{r as o,h as n}from"./index-Cei2V9tG.js";const l=()=>{const{user:e}=o.useContext(n.EscolaLMSContext),u=o.useMemo(()=>{var s,t;return!!((t=(s=e.value)==null?void 0:s.roles)!=null&&t.includes("tutor"))},[e]),r=o.useMemo(()=>{var s,t;return!!((t=(s=e.value)==null?void 0:s.roles)!=null&&t.includes("student"))},[e]);return{isTutor:u,isStudent:r}};export{l as u}; diff --git a/assets/useSearchParams-DawJFBcb.js b/assets/useSearchParams-DExUgHRa.js similarity index 93% rename from assets/useSearchParams-DawJFBcb.js rename to assets/useSearchParams-DExUgHRa.js index 62457188..fb9f620d 100644 --- a/assets/useSearchParams-DawJFBcb.js +++ b/assets/useSearchParams-DExUgHRa.js @@ -1 +1 @@ -import{q as S}from"./base-C7euzKDi.js";import{k as g,i as f,r as t}from"./index-Bjk_45MO.js";const A=()=>{const{search:s,pathname:c}=g(),o=f(),a=t.useMemo(()=>new URLSearchParams(s),[s]),m=t.useCallback(e=>new URLSearchParams(s).get(e),[s]),l=t.useCallback(e=>new URLSearchParams(s).getAll(e),[s]),i=t.useCallback((e,r)=>{!r||r===""?a.delete(e):a.set(e,r),o.push({pathname:c,search:a.toString()})},[o,c,a]),u=t.useCallback(e=>{const r=new URLSearchParams;return Object.entries(e).forEach(([n,h])=>{Array.isArray(h)?h.forEach(b=>{r.append(`${n}`,b)}):r.append(n,h)}),r.toString()},[]),p=t.useCallback(e=>{o.push({pathname:c,search:e?u(e):void 0})},[o,u,c]),y=t.useCallback((e,r)=>{a.delete(e),r.forEach(n=>{a.append(e,`${n}`)}),o.push({pathname:c,search:a.toString()})},[o,c,a]),P=t.useMemo(()=>S.parse(s),[s]);return{query:a,getQueryValueByName:m,getAllQueryValueByName:l,setQueryParam:i,setPathname:p,setQueryArrayParam:y,paramsToObject:P,objectToParam:u}};export{A as u}; +import{q as S}from"./base-C7euzKDi.js";import{k as g,i as f,r as t}from"./index-Cei2V9tG.js";const A=()=>{const{search:s,pathname:c}=g(),o=f(),a=t.useMemo(()=>new URLSearchParams(s),[s]),m=t.useCallback(e=>new URLSearchParams(s).get(e),[s]),l=t.useCallback(e=>new URLSearchParams(s).getAll(e),[s]),i=t.useCallback((e,r)=>{!r||r===""?a.delete(e):a.set(e,r),o.push({pathname:c,search:a.toString()})},[o,c,a]),u=t.useCallback(e=>{const r=new URLSearchParams;return Object.entries(e).forEach(([n,h])=>{Array.isArray(h)?h.forEach(b=>{r.append(`${n}`,b)}):r.append(n,h)}),r.toString()},[]),p=t.useCallback(e=>{o.push({pathname:c,search:e?u(e):void 0})},[o,u,c]),y=t.useCallback((e,r)=>{a.delete(e),r.forEach(n=>{a.append(e,`${n}`)}),o.push({pathname:c,search:a.toString()})},[o,c,a]),P=t.useMemo(()=>S.parse(s),[s]);return{query:a,getQueryValueByName:m,getAllQueryValueByName:l,setQueryParam:i,setPathname:p,setQueryArrayParam:y,paramsToObject:P,objectToParam:u}};export{A as u}; diff --git a/assets/warning-CGLqHpsF.js b/assets/warning-CGLqHpsF.js new file mode 100644 index 00000000..b3a7e19f --- /dev/null +++ b/assets/warning-CGLqHpsF.js @@ -0,0 +1 @@ +import{g as a}from"./index-Cei2V9tG.js";var r=function(){},n=r;const t=a(n);export{n as a,t as w}; diff --git a/assets/warning-CKk5dc80.js b/assets/warning-CKk5dc80.js deleted file mode 100644 index 3aa5ac20..00000000 --- a/assets/warning-CKk5dc80.js +++ /dev/null @@ -1 +0,0 @@ -import{g as a}from"./index-Bjk_45MO.js";var r=function(){},n=r;const t=a(n);export{n as a,t as w}; diff --git a/index.html b/index.html index 2b409599..5cd896b5 100644 --- a/index.html +++ b/index.html @@ -36,7 +36,7 @@ window.VITE_APP_BASENAME = null; window.VITE_APP_ROUTING_TYPE = null; - +