From 3885b9508b390969d0b8d82a9dba2d11f1655beb Mon Sep 17 00:00:00 2001 From: myslaf Date: Tue, 5 Mar 2024 19:17:36 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20EscolaLM?= =?UTF-8?q?S/Front@b46bb6572cbb56763955621e2894ec3fa3e01560=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...er-B36vgc2t.js => AuthWrapper-CP2GyysX.js} | 2 +- ...a-DsB19i2S.js => CourseAgenda-Ci1dXwvI.js} | 2 +- ...ard-C30JGy12.js => CourseCard-BNp2HqRG.js} | 2 +- ...on-BuncoHEL.js => DailyMotion-DQb-64NC.js} | 2 +- ...ebook-C52ndVPR.js => Facebook-DtPT0Pgc.js} | 2 +- ...yer-NGmHRjOA.js => FilePlayer-D83qyYrd.js} | 2 +- ...altura-CGbNoQ3H.js => Kaltura-U4f4AZ0N.js} | 2 +- ...cloud-Cpxh2Poz.js => Mixcloud-lMNzRUld.js} | 2 +- assets/{Mux-CCV5gvgQ.js => Mux-7Bo4h8hs.js} | 2 +- ...review-yfpQdPDm.js => Preview-QsKo6-Jg.js} | 2 +- ...rd-qZg96Hng.js => PricingCard-CM9lIEOY.js} | 2 +- ...fAhZdZG.js => ResponsiveImage-Dhino3nz.js} | 2 +- ...oud-Bk9d78Is.js => SoundCloud-pK4FvVb9.js} | 2 +- ...ble-YpUu_npr.js => Streamable-BRHX0ps1.js} | 2 +- assets/{Tabs-B1M6WKle.js => Tabs-BuuIL9KV.js} | 2 +- ...V7r4sQX.js => ThemeCustomizer-VqfIYrWQ.js} | 2 +- ...{Twitch-DdWfK-2l.js => Twitch-BcDVxa-Z.js} | 2 +- ...{Upload-BclhsyIC.js => Upload-qBOEpjz2.js} | 2 +- ...idyard-CDRBPfL_.js => Vidyard-CEqj5JL5.js} | 2 +- .../{Vimeo-D1vZESbT.js => Vimeo-xPodnM-d.js} | 2 +- ...{Wistia-BRsTPOHa.js => Wistia-xdIwfHkI.js} | 2 +- ...ouTube-CFGVlW_i.js => YouTube-CX0nXAb9.js} | 2 +- .../{index-DbbQmc-j.js => index-0vXELQop.js} | 2 +- .../{index-Bm51j3_8.js => index-B0Xc5A9M.js} | 2 +- .../{index-DUejgRFA.js => index-B1dAa_iB.js} | 2 +- .../{index-BFtnUeGh.js => index-B3BUBFzI.js} | 24 +- .../{index-DcvLU2H2.js => index-B3yN8KNK.js} | 2 +- .../{index-Cnd3jTz7.js => index-B4kDx8X4.js} | 2 +- .../{index-C2umk5G4.js => index-BDGj3bcL.js} | 2 +- .../{index-BBmfJa4y.js => index-BDwMO7p2.js} | 2 +- .../{index-3h6lsqCl.js => index-BFu5eoou.js} | 2 +- .../{index-D0XhAO3h.js => index-BGsfKgJX.js} | 2 +- .../{index-guW92oBe.js => index-BMYeo1-N.js} | 2 +- .../{index-BWDnE6v4.js => index-BOsswcW5.js} | 2 +- .../{index-DUw7vyQu.js => index-BP44goY3.js} | 2 +- .../{index-BQRg9DEl.js => index-Bbkbpsot.js} | 2 +- .../{index-DNAhof5Q.js => index-BfkvnQOt.js} | 2 +- .../{index-DLg9NA9K.js => index-BgIKVYBh.js} | 2 +- .../{index-BeRNFxkO.js => index-Bj_4LO6E.js} | 2 +- .../{index-DZWvGNdp.js => index-Bo6dQlfK.js} | 2 +- .../{index-CHrUvAxK.js => index-C2hKWo6C.js} | 2 +- .../{index--KFmeQDg.js => index-CAMTSXf7.js} | 2 +- .../{index-ByT3HD2c.js => index-CDFY0ONX.js} | 4 +- .../{index-DRe4zRdE.js => index-CEADi1Aj.js} | 2 +- .../{index-CntMwbrZ.js => index-CQyhdORL.js} | 2 +- .../{index-BUicP6Ke.js => index-CRRGeHuq.js} | 2 +- .../{index-DAvBbJIi.js => index-CUV7LPfP.js} | 2 +- .../{index-D2EEDxQl.js => index-CZ78E_Aa.js} | 2 +- .../{index-z9-oPlrc.js => index-Caq5vuVn.js} | 2 +- .../{index-fDwvoi0a.js => index-Cd6wdOLZ.js} | 2 +- assets/index-CdiRyItl.js | 1 - .../{index-BmZ8nj8k.js => index-CkOeZPQt.js} | 2 +- .../{index-Cm8jcXmV.js => index-Cp_G8hVF.js} | 2 +- .../{index-C-knIOix.js => index-Cx5QnA0M.js} | 10 +- .../{index-cRvfodQO.js => index-D28dnp4A.js} | 2 +- .../{index-CE-twewT.js => index-D74bjbr6.js} | 2 +- .../{index-tZXKSMhE.js => index-DEYhe5OT.js} | 2 +- .../{index-CPrZPupU.js => index-DGvaplHr.js} | 14 +- .../{index-BqFg9Sk8.js => index-DM96QUK_.js} | 2 +- .../{index-D8adTAOi.js => index-DQ0XFVc0.js} | 2 +- .../{index-qSnNTHpy.js => index-DVtPk8fp.js} | 2 +- .../{index-uJPnOlkq.js => index-DVuKhhZz.js} | 2 +- assets/index-Dioo_SYN.js | 1 + .../{index-BPUdkZ-s.js => index-DlW1qbvR.js} | 2 +- .../{index-DgkCRAhC.js => index-DnBgoLUe.js} | 2 +- .../{index-DjqgBh2n.js => index-Dr2GJwWy.js} | 2 +- .../{index-CxOgFS2u.js => index-OVpVpRd0.js} | 2 +- .../{index-bOIEcY8h.js => index-_3yHz1uc.js} | 2 +- .../{index-fnJvflA6.js => index-cEFokj_N.js} | 2 +- .../{index-2DzzTf_1.js => index-jvuyDq2a.js} | 2 +- .../{index-CA9fETjN.js => index-oSidytsD.js} | 2 +- .../{index-C0520CdO.js => index-pHJfFXgf.js} | 2 +- .../{index-BwDDCa5l.js => index-rgMY50iO.js} | 464 ++++++++++-------- .../{index-fAJu7lSC.js => index-rz9bDXuD.js} | 2 +- .../{index-8-K2S57r.js => index-tPRLCCZ4.js} | 2 +- .../{index-C-t40R0k.js => index-w9LHPXnG.js} | 2 +- assets/my-certificates-4r3nUmSb.js | 65 --- assets/my-certificates-Ctxd4pRk.js | 29 ++ ...pxamxh.js => my-consultations-Dtpsattf.js} | 2 +- assets/my-data-4W-0jZl7.js | 110 ----- assets/my-data-DMINpbKK.js | 124 +++++ ...ALnEXy.js => my-notifications-C5d7x6gs.js} | 2 +- ...ders-BHnTRDWy.js => my-orders-BGaC8hnI.js} | 2 +- ...B0SMBGXj.js => questionnaires-bnQhZjbO.js} | 2 +- ...{swiper-BWFF_Qco.js => swiper-CPGP--u2.js} | 2 +- ...t-CNMkIwij.js => swiper-react-Blj9s0vN.js} | 2 +- ....js => useDownloadCertificate-DzTKNXCG.js} | 2 +- ...Tf6HwPl.js => useFetchCourses-C8QrBKge.js} | 2 +- ...Roles-CZ3Pbmi4.js => useRoles-DVMYcivV.js} | 2 +- ...MraK1kM.js => useSearchParams-CmF5uHDk.js} | 2 +- assets/warning-BmYsiiaZ.js | 1 - assets/warning-KJqa50Ry.js | 1 + index.html | 2 +- 93 files changed, 511 insertions(+), 497 deletions(-) rename assets/{AuthWrapper-B36vgc2t.js => AuthWrapper-CP2GyysX.js} (82%) rename assets/{CourseAgenda-DsB19i2S.js => CourseAgenda-Ci1dXwvI.js} (98%) rename assets/{CourseCard-C30JGy12.js => CourseCard-BNp2HqRG.js} (84%) rename assets/{DailyMotion-BuncoHEL.js => DailyMotion-DQb-64NC.js} (95%) rename assets/{Facebook-C52ndVPR.js => Facebook-DtPT0Pgc.js} (96%) rename assets/{FilePlayer-NGmHRjOA.js => FilePlayer-D83qyYrd.js} (98%) rename assets/{Kaltura-CGbNoQ3H.js => Kaltura-U4f4AZ0N.js} (95%) rename assets/{Mixcloud-Cpxh2Poz.js => Mixcloud-lMNzRUld.js} (95%) rename assets/{Mux-CCV5gvgQ.js => Mux-7Bo4h8hs.js} (97%) rename assets/{Preview-yfpQdPDm.js => Preview-QsKo6-Jg.js} (97%) rename assets/{PricingCard-qZg96Hng.js => PricingCard-CM9lIEOY.js} (98%) rename assets/{ResponsiveImage-BfAhZdZG.js => ResponsiveImage-Dhino3nz.js} (96%) rename assets/{SoundCloud-Bk9d78Is.js => SoundCloud-pK4FvVb9.js} (95%) rename assets/{Streamable-YpUu_npr.js => Streamable-BRHX0ps1.js} (95%) rename assets/{Tabs-B1M6WKle.js => Tabs-BuuIL9KV.js} (98%) rename assets/{ThemeCustomizer-PV7r4sQX.js => ThemeCustomizer-VqfIYrWQ.js} (99%) rename assets/{Twitch-DdWfK-2l.js => Twitch-BcDVxa-Z.js} (95%) rename assets/{Upload-BclhsyIC.js => Upload-qBOEpjz2.js} (99%) rename assets/{Vidyard-CDRBPfL_.js => Vidyard-CEqj5JL5.js} (95%) rename assets/{Vimeo-D1vZESbT.js => Vimeo-xPodnM-d.js} (96%) rename assets/{Wistia-BRsTPOHa.js => Wistia-xdIwfHkI.js} (96%) rename assets/{YouTube-CFGVlW_i.js => YouTube-CX0nXAb9.js} (97%) rename assets/{index-DbbQmc-j.js => index-0vXELQop.js} (92%) rename assets/{index-Bm51j3_8.js => index-B0Xc5A9M.js} (92%) rename assets/{index-DUejgRFA.js => index-B1dAa_iB.js} (94%) rename assets/{index-BFtnUeGh.js => index-B3BUBFzI.js} (99%) rename assets/{index-DcvLU2H2.js => index-B3yN8KNK.js} (97%) rename assets/{index-Cnd3jTz7.js => index-B4kDx8X4.js} (91%) rename assets/{index-C2umk5G4.js => index-BDGj3bcL.js} (98%) rename assets/{index-BBmfJa4y.js => index-BDwMO7p2.js} (94%) rename assets/{index-3h6lsqCl.js => index-BFu5eoou.js} (92%) rename assets/{index-D0XhAO3h.js => index-BGsfKgJX.js} (97%) rename assets/{index-guW92oBe.js => index-BMYeo1-N.js} (90%) rename assets/{index-BWDnE6v4.js => index-BOsswcW5.js} (86%) rename assets/{index-DUw7vyQu.js => index-BP44goY3.js} (85%) rename assets/{index-BQRg9DEl.js => index-Bbkbpsot.js} (73%) rename assets/{index-DNAhof5Q.js => index-BfkvnQOt.js} (87%) rename assets/{index-DLg9NA9K.js => index-BgIKVYBh.js} (78%) rename assets/{index-BeRNFxkO.js => index-Bj_4LO6E.js} (96%) rename assets/{index-DZWvGNdp.js => index-Bo6dQlfK.js} (98%) rename assets/{index-CHrUvAxK.js => index-C2hKWo6C.js} (94%) rename assets/{index--KFmeQDg.js => index-CAMTSXf7.js} (80%) rename assets/{index-ByT3HD2c.js => index-CDFY0ONX.js} (50%) rename assets/{index-DRe4zRdE.js => index-CEADi1Aj.js} (90%) rename assets/{index-CntMwbrZ.js => index-CQyhdORL.js} (93%) rename assets/{index-BUicP6Ke.js => index-CRRGeHuq.js} (95%) rename assets/{index-DAvBbJIi.js => index-CUV7LPfP.js} (99%) rename assets/{index-D2EEDxQl.js => index-CZ78E_Aa.js} (91%) rename assets/{index-z9-oPlrc.js => index-Caq5vuVn.js} (96%) rename assets/{index-fDwvoi0a.js => index-Cd6wdOLZ.js} (87%) delete mode 100644 assets/index-CdiRyItl.js rename assets/{index-BmZ8nj8k.js => index-CkOeZPQt.js} (99%) rename assets/{index-Cm8jcXmV.js => index-Cp_G8hVF.js} (95%) rename assets/{index-C-knIOix.js => index-Cx5QnA0M.js} (91%) rename assets/{index-cRvfodQO.js => index-D28dnp4A.js} (88%) rename assets/{index-CE-twewT.js => index-D74bjbr6.js} (80%) rename assets/{index-tZXKSMhE.js => index-DEYhe5OT.js} (96%) rename assets/{index-CPrZPupU.js => index-DGvaplHr.js} (95%) rename assets/{index-BqFg9Sk8.js => index-DM96QUK_.js} (78%) rename assets/{index-D8adTAOi.js => index-DQ0XFVc0.js} (96%) rename assets/{index-qSnNTHpy.js => index-DVtPk8fp.js} (95%) rename assets/{index-uJPnOlkq.js => index-DVuKhhZz.js} (95%) create mode 100644 assets/index-Dioo_SYN.js rename assets/{index-BPUdkZ-s.js => index-DlW1qbvR.js} (94%) rename assets/{index-DgkCRAhC.js => index-DnBgoLUe.js} (95%) rename assets/{index-DjqgBh2n.js => index-Dr2GJwWy.js} (95%) rename assets/{index-CxOgFS2u.js => index-OVpVpRd0.js} (89%) rename assets/{index-bOIEcY8h.js => index-_3yHz1uc.js} (55%) rename assets/{index-fnJvflA6.js => index-cEFokj_N.js} (82%) rename assets/{index-2DzzTf_1.js => index-jvuyDq2a.js} (96%) rename assets/{index-CA9fETjN.js => index-oSidytsD.js} (69%) rename assets/{index-C0520CdO.js => index-pHJfFXgf.js} (95%) rename assets/{index-BwDDCa5l.js => index-rgMY50iO.js} (80%) rename assets/{index-fAJu7lSC.js => index-rz9bDXuD.js} (94%) rename assets/{index-8-K2S57r.js => index-tPRLCCZ4.js} (94%) rename assets/{index-C-t40R0k.js => index-w9LHPXnG.js} (89%) delete mode 100644 assets/my-certificates-4r3nUmSb.js create mode 100644 assets/my-certificates-Ctxd4pRk.js rename assets/{my-consultations-DKpxamxh.js => my-consultations-Dtpsattf.js} (94%) delete mode 100644 assets/my-data-4W-0jZl7.js create mode 100644 assets/my-data-DMINpbKK.js rename assets/{my-notifications-BYALnEXy.js => my-notifications-C5d7x6gs.js} (92%) rename assets/{my-orders-BHnTRDWy.js => my-orders-BGaC8hnI.js} (98%) rename assets/{questionnaires-B0SMBGXj.js => questionnaires-bnQhZjbO.js} (94%) rename assets/{swiper-BWFF_Qco.js => swiper-CPGP--u2.js} (98%) rename assets/{swiper-react-CNMkIwij.js => swiper-react-Blj9s0vN.js} (99%) rename assets/{useDownloadCertificate-S0p9VWMq.js => useDownloadCertificate-DzTKNXCG.js} (87%) rename assets/{useFetchCourses-CTf6HwPl.js => useFetchCourses-C8QrBKge.js} (81%) rename assets/{useRoles-CZ3Pbmi4.js => useRoles-DVMYcivV.js} (82%) rename assets/{useSearchParams-CMraK1kM.js => useSearchParams-CmF5uHDk.js} (93%) delete mode 100644 assets/warning-BmYsiiaZ.js create mode 100644 assets/warning-KJqa50Ry.js diff --git a/assets/AuthWrapper-B36vgc2t.js b/assets/AuthWrapper-CP2GyysX.js similarity index 82% rename from assets/AuthWrapper-B36vgc2t.js rename to assets/AuthWrapper-CP2GyysX.js index f2446b55..6f1d82d6 100644 --- a/assets/AuthWrapper-B36vgc2t.js +++ b/assets/AuthWrapper-CP2GyysX.js @@ -1,4 +1,4 @@ -import{aw as e,q as r,j as s}from"./index-BwDDCa5l.js";var i=e();const o=r.div` +import{aw as e,q as r,j as s}from"./index-rgMY50iO.js";var i=e();const o=r.div` height: 700px; display: flex; align-items: center; diff --git a/assets/CourseAgenda-DsB19i2S.js b/assets/CourseAgenda-Ci1dXwvI.js similarity index 98% rename from assets/CourseAgenda-DsB19i2S.js rename to assets/CourseAgenda-Ci1dXwvI.js index 27c27880..808f2b6b 100644 --- a/assets/CourseAgenda-DsB19i2S.js +++ b/assets/CourseAgenda-Ci1dXwvI.js @@ -1,4 +1,4 @@ -import{q as le,f as ce,r as p,j as h,M as ye,s as ue,c8 as be,d as b,c9 as xe,ca as ge,a5 as Te,a7 as Pe,D as K,a3 as we,cb as Ee,a6 as Ce,v as de,cc as Me,S as Oe,an as re,cd as Se,b as fe,E as Ie,i as Ne,ao as Ae,h as De,n as oe,ce as ke}from"./index-BwDDCa5l.js";import{A as x,_ as ze,P as Be,a as se,I as Le,O as Fe,H as He}from"./index-BFtnUeGh.js";import{U as $e}from"./Upload-BclhsyIC.js";const Re=le.div` +import{q as le,f as ce,r as p,j as h,M as ye,s as ue,c8 as be,d as b,c9 as xe,ca as ge,a5 as Te,a7 as Pe,D as K,a3 as we,cb as Ee,a6 as Ce,v as de,cc as Me,S as Oe,an as re,cd as Se,b as fe,E as Ie,i as Ne,ao as Ae,h as De,n as oe,ce as ke}from"./index-rgMY50iO.js";import{A as x,_ as ze,P as Be,a as se,I as Le,O as Fe,H as He}from"./index-B3BUBFzI.js";import{U as $e}from"./Upload-qBOEpjz2.js";const Re=le.div` h1 { font-size: 2em; } diff --git a/assets/CourseCard-C30JGy12.js b/assets/CourseCard-BNp2HqRG.js similarity index 84% rename from assets/CourseCard-C30JGy12.js rename to assets/CourseCard-BNp2HqRG.js index d6b2a9ff..ad9c7586 100644 --- a/assets/CourseCard-C30JGy12.js +++ b/assets/CourseCard-BNp2HqRG.js @@ -1,4 +1,4 @@ -import{q as x,r as a,j as t,w as n}from"./index-BwDDCa5l.js";import{S as e}from"./index-DgkCRAhC.js";const o=x.div` +import{q as x,r as a,j as t,w as n}from"./index-rgMY50iO.js";import{S as e}from"./index-DnBgoLUe.js";const o=x.div` max-width: 278px; min-height: 414px; diff --git a/assets/DailyMotion-BuncoHEL.js b/assets/DailyMotion-DQb-64NC.js similarity index 95% rename from assets/DailyMotion-BuncoHEL.js rename to assets/DailyMotion-DQb-64NC.js index 7b3eb4d5..748ba4b5 100644 --- a/assets/DailyMotion-BuncoHEL.js +++ b/assets/DailyMotion-DQb-64NC.js @@ -1 +1 @@ -import{g as P,r as v}from"./index-BwDDCa5l.js";import{u as D,p as O}from"./index-BFtnUeGh.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-rgMY50iO.js";import{u as D,p as O}from"./index-B3BUBFzI.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-C52ndVPR.js b/assets/Facebook-DtPT0Pgc.js similarity index 96% rename from assets/Facebook-C52ndVPR.js rename to assets/Facebook-DtPT0Pgc.js index f65ae75b..acdcdc28 100644 --- a/assets/Facebook-C52ndVPR.js +++ b/assets/Facebook-DtPT0Pgc.js @@ -1 +1 @@ -import{g as _,r as g}from"./index-BwDDCa5l.js";import{u as P,p as m}from"./index-BFtnUeGh.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-rgMY50iO.js";import{u as P,p as m}from"./index-B3BUBFzI.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-NGmHRjOA.js b/assets/FilePlayer-D83qyYrd.js similarity index 98% rename from assets/FilePlayer-NGmHRjOA.js rename to assets/FilePlayer-D83qyYrd.js index ef6d0630..aadd4753 100644 --- a/assets/FilePlayer-NGmHRjOA.js +++ b/assets/FilePlayer-D83qyYrd.js @@ -1 +1 @@ -import{g as b,r as _}from"./index-BwDDCa5l.js";import{u as O,p as A}from"./index-BFtnUeGh.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-rgMY50iO.js";import{u as O,p as A}from"./index-B3BUBFzI.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-CGbNoQ3H.js b/assets/Kaltura-U4f4AZ0N.js similarity index 95% rename from assets/Kaltura-CGbNoQ3H.js rename to assets/Kaltura-U4f4AZ0N.js index 6f1147d0..377d1f49 100644 --- a/assets/Kaltura-CGbNoQ3H.js +++ b/assets/Kaltura-U4f4AZ0N.js @@ -1 +1 @@ -import{g as y,r as f}from"./index-BwDDCa5l.js";import{u as _,p as m}from"./index-BFtnUeGh.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-rgMY50iO.js";import{u as _,p as m}from"./index-B3BUBFzI.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-Cpxh2Poz.js b/assets/Mixcloud-lMNzRUld.js similarity index 95% rename from assets/Mixcloud-Cpxh2Poz.js rename to assets/Mixcloud-lMNzRUld.js index dd14d3bc..249857b9 100644 --- a/assets/Mixcloud-Cpxh2Poz.js +++ b/assets/Mixcloud-lMNzRUld.js @@ -1 +1 @@ -import{g as _,r as f}from"./index-BwDDCa5l.js";import{u as m,p as g}from"./index-BFtnUeGh.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-rgMY50iO.js";import{u as m,p as g}from"./index-B3BUBFzI.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-CCV5gvgQ.js b/assets/Mux-7Bo4h8hs.js similarity index 97% rename from assets/Mux-CCV5gvgQ.js rename to assets/Mux-7Bo4h8hs.js index e2b251ff..9bc4dfee 100644 --- a/assets/Mux-CCV5gvgQ.js +++ b/assets/Mux-7Bo4h8hs.js @@ -4,4 +4,4 @@ function __vite__mapDeps(indexes) { } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{g as P,ch as E,r as g}from"./index-BwDDCa5l.js";import{p as _}from"./index-BFtnUeGh.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,ch as E,r as g}from"./index-rgMY50iO.js";import{p as _}from"./index-B3BUBFzI.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-yfpQdPDm.js b/assets/Preview-QsKo6-Jg.js similarity index 97% rename from assets/Preview-yfpQdPDm.js rename to assets/Preview-QsKo6-Jg.js index 5b7559d3..b980f60c 100644 --- a/assets/Preview-yfpQdPDm.js +++ b/assets/Preview-QsKo6-Jg.js @@ -1 +1 @@ -import{g as y,r as v}from"./index-BwDDCa5l.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-rgMY50iO.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-qZg96Hng.js b/assets/PricingCard-CM9lIEOY.js similarity index 98% rename from assets/PricingCard-qZg96Hng.js rename to assets/PricingCard-CM9lIEOY.js index 7936efdd..5ff08709 100644 --- a/assets/PricingCard-qZg96Hng.js +++ b/assets/PricingCard-CM9lIEOY.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-BwDDCa5l.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-Bk9d78Is.js b/assets/SoundCloud-pK4FvVb9.js similarity index 95% rename from assets/SoundCloud-Bk9d78Is.js rename to assets/SoundCloud-pK4FvVb9.js index e86f79bd..08bf115d 100644 --- a/assets/SoundCloud-Bk9d78Is.js +++ b/assets/SoundCloud-pK4FvVb9.js @@ -1 +1 @@ -import{g as P,r as g}from"./index-BwDDCa5l.js";import{u as b,p as v}from"./index-BFtnUeGh.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-rgMY50iO.js";import{u as b,p as v}from"./index-B3BUBFzI.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-YpUu_npr.js b/assets/Streamable-BRHX0ps1.js similarity index 95% rename from assets/Streamable-YpUu_npr.js rename to assets/Streamable-BRHX0ps1.js index 7eb8ac69..a9d3759f 100644 --- a/assets/Streamable-YpUu_npr.js +++ b/assets/Streamable-BRHX0ps1.js @@ -1 +1 @@ -import{g as m,r as f}from"./index-BwDDCa5l.js";import{u as _,p as b}from"./index-BFtnUeGh.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-rgMY50iO.js";import{u as _,p as b}from"./index-B3BUBFzI.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-B1M6WKle.js b/assets/Tabs-BuuIL9KV.js similarity index 98% rename from assets/Tabs-B1M6WKle.js rename to assets/Tabs-BuuIL9KV.js index 5a86f197..a2fce59c 100644 --- a/assets/Tabs-B1M6WKle.js +++ b/assets/Tabs-BuuIL9KV.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-BwDDCa5l.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-DdWfK-2l.js b/assets/Twitch-BcDVxa-Z.js similarity index 95% rename from assets/Twitch-DdWfK-2l.js rename to assets/Twitch-BcDVxa-Z.js index 01ecea7e..9c1118b0 100644 --- a/assets/Twitch-DdWfK-2l.js +++ b/assets/Twitch-BcDVxa-Z.js @@ -1 +1 @@ -import{g as w,r as D}from"./index-BwDDCa5l.js";import{u as C,p as N}from"./index-BFtnUeGh.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-rgMY50iO.js";import{u as C,p as N}from"./index-B3BUBFzI.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-BclhsyIC.js b/assets/Upload-qBOEpjz2.js similarity index 99% rename from assets/Upload-BclhsyIC.js rename to assets/Upload-qBOEpjz2.js index 4e0d2818..c817a2b8 100644 --- a/assets/Upload-BclhsyIC.js +++ b/assets/Upload-qBOEpjz2.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-BwDDCa5l.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-rgMY50iO.js";import{u as b,p as O}from"./index-B3BUBFzI.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-D1vZESbT.js b/assets/Vimeo-xPodnM-d.js similarity index 96% rename from assets/Vimeo-D1vZESbT.js rename to assets/Vimeo-xPodnM-d.js index bdd184d6..1d7d3a0f 100644 --- a/assets/Vimeo-D1vZESbT.js +++ b/assets/Vimeo-xPodnM-d.js @@ -1 +1 @@ -import{g as d,r as f}from"./index-BwDDCa5l.js";import{u as m,p as _}from"./index-BFtnUeGh.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-rgMY50iO.js";import{u as m,p as _}from"./index-B3BUBFzI.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-BRsTPOHa.js b/assets/Wistia-xdIwfHkI.js similarity index 96% rename from assets/Wistia-BRsTPOHa.js rename to assets/Wistia-xdIwfHkI.js index 356fcd67..6c9b9dc0 100644 --- a/assets/Wistia-BRsTPOHa.js +++ b/assets/Wistia-xdIwfHkI.js @@ -1 +1 @@ -import{g as m,r as g}from"./index-BwDDCa5l.js";import{u as v,p as w}from"./index-BFtnUeGh.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-rgMY50iO.js";import{u as v,p as w}from"./index-B3BUBFzI.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-CFGVlW_i.js b/assets/YouTube-CX0nXAb9.js similarity index 97% rename from assets/YouTube-CFGVlW_i.js rename to assets/YouTube-CX0nXAb9.js index 22801680..049860d9 100644 --- a/assets/YouTube-CFGVlW_i.js +++ b/assets/YouTube-CX0nXAb9.js @@ -1 +1 @@ -import{g as U,r as I}from"./index-BwDDCa5l.js";import{u as L,p as Y}from"./index-BFtnUeGh.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-rgMY50iO.js";import{u as L,p as Y}from"./index-B3BUBFzI.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/index-DbbQmc-j.js b/assets/index-0vXELQop.js similarity index 92% rename from assets/index-DbbQmc-j.js rename to assets/index-0vXELQop.js index 63bcb78a..533ccedb 100644 --- a/assets/index-DbbQmc-j.js +++ b/assets/index-0vXELQop.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-BwDDCa5l.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-rgMY50iO.js";const h=n.div` height: calc(100vh - 520px); .content { diff --git a/assets/index-Bm51j3_8.js b/assets/index-B0Xc5A9M.js similarity index 92% rename from assets/index-Bm51j3_8.js rename to assets/index-B0Xc5A9M.js index 80420760..f06431b8 100644 --- a/assets/index-Bm51j3_8.js +++ b/assets/index-B0Xc5A9M.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-BwDDCa5l.js";import{P as v}from"./index-CntMwbrZ.js";import"./index-C-knIOix.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-rgMY50iO.js";import{P as v}from"./index-CQyhdORL.js";import"./index-Cx5QnA0M.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-DUejgRFA.js b/assets/index-B1dAa_iB.js similarity index 94% rename from assets/index-DUejgRFA.js rename to assets/index-B1dAa_iB.js index f075d60d..3fa353c8 100644 --- a/assets/index-DUejgRFA.js +++ b/assets/index-B1dAa_iB.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-BwDDCa5l.js";import{P as Q}from"./index-BeRNFxkO.js";import{q as _}from"./base-C7euzKDi.js";import{R as U}from"./ResponsiveImage-BfAhZdZG.js";import{C as V}from"./index-CHrUvAxK.js";import{C as J}from"./index-tZXKSMhE.js";import{P as K}from"./index-Cnd3jTz7.js";import{C as Y}from"./CourseCard-C30JGy12.js";import{u as Z}from"./useFetchCourses-CTf6HwPl.js";import"./index-DgkCRAhC.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-rgMY50iO.js";import{P as Q}from"./index-Bj_4LO6E.js";import{q as _}from"./base-C7euzKDi.js";import{R as U}from"./ResponsiveImage-Dhino3nz.js";import{C as V}from"./index-C2hKWo6C.js";import{C as J}from"./index-DEYhe5OT.js";import{P as K}from"./index-B4kDx8X4.js";import{C as Y}from"./CourseCard-BNp2HqRG.js";import{u as Z}from"./useFetchCourses-C8QrBKge.js";import"./index-DnBgoLUe.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-BFtnUeGh.js b/assets/index-B3BUBFzI.js similarity index 99% rename from assets/index-BFtnUeGh.js rename to assets/index-B3BUBFzI.js index ed83ef0e..c1da496b 100644 --- a/assets/index-BFtnUeGh.js +++ b/assets/index-B3BUBFzI.js @@ -1,10 +1,10 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/YouTube-CFGVlW_i.js","assets/index-BwDDCa5l.js","assets/index-CNcos34M.css","assets/SoundCloud-Bk9d78Is.js","assets/Vimeo-D1vZESbT.js","assets/Mux-CCV5gvgQ.js","assets/Facebook-C52ndVPR.js","assets/Streamable-YpUu_npr.js","assets/Wistia-BRsTPOHa.js","assets/Twitch-DdWfK-2l.js","assets/DailyMotion-BuncoHEL.js","assets/Mixcloud-Cpxh2Poz.js","assets/Vidyard-CDRBPfL_.js","assets/Kaltura-CGbNoQ3H.js","assets/FilePlayer-NGmHRjOA.js","assets/Preview-yfpQdPDm.js"] + __vite__mapDeps.viteFileDeps = ["assets/YouTube-CX0nXAb9.js","assets/index-rgMY50iO.js","assets/index-CNcos34M.css","assets/SoundCloud-pK4FvVb9.js","assets/Vimeo-xPodnM-d.js","assets/Mux-7Bo4h8hs.js","assets/Facebook-DtPT0Pgc.js","assets/Streamable-BRHX0ps1.js","assets/Wistia-xdIwfHkI.js","assets/Twitch-BcDVxa-Z.js","assets/DailyMotion-DQb-64NC.js","assets/Mixcloud-lMNzRUld.js","assets/Vidyard-CEqj5JL5.js","assets/Kaltura-U4f4AZ0N.js","assets/FilePlayer-D83qyYrd.js","assets/Preview-QsKo6-Jg.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,cf as api,D as react$1,cg as require$$5,r as reactExports,a5 as require$$1$1,a2 as requireLib,j as jsxRuntimeExports,ch as __vitePreload,c as getAugmentedNamespace,ci as propTypesExports,cj as require$$5$1,a as reactDomExports,a3 as require$$3,ck as require$$9,cl as clsx,cm as tinyInvariant,a6 as utils$3,cn as require$$2$2,co as requireContext,aH as provider,S as Spin,c9 as require$$0$1,ca as utils$4,cp as require$$2$3,a4 as chromaExports,a9 as require$$1$2}from"./index-BwDDCa5l.js";import{a as warning_1$8}from"./warning-BmYsiiaZ.js";import{R as ResponsiveImage}from"./ResponsiveImage-BfAhZdZG.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,cf as api,D as react$1,cg as require$$5,r as reactExports,a5 as require$$6$1,a2 as requireLib,j as jsxRuntimeExports,ch as __vitePreload,c as getAugmentedNamespace,ci as propTypesExports,cj as require$$5$1,a as reactDomExports,a3 as require$$3,ck as require$$9,cl as clsx,cm as tinyInvariant,a6 as utils$3,cn as require$$2$2,co as requireContext,aH as provider,S as Spin,c9 as require$$0$1,ca as utils$4,cp as require$$2$3,a4 as chromaExports,a9 as require$$1$1}from"./index-rgMY50iO.js";import{a as warning_1$8}from"./warning-KJqa50Ry.js";import{R as ResponsiveImage}from"./ResponsiveImage-Dhino3nz.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(` @@ -31,7 +31,7 @@ globstar while`,m,Re,_e,Fe,Ke),this.matchOne(m.slice(Re),_e.slice(Fe),oe))return width: 100%; display: flex; flex-direction: column; -}`))},a.defaultProviders=te,a.getEndpoint=be,a.requestEmbed=re,a.useScript=q,Object.defineProperty(a,"__esModule",{value:!0})})})(lib$2,lib$2.exports);var libExports=lib$2.exports;(function(e){var i=commonjsGlobal&&commonjsGlobal.__makeTemplateObject||function(q,se){return Object.defineProperty?Object.defineProperty(q,"raw",{value:se}):q.raw=se,q},a=commonjsGlobal&&commonjsGlobal.__assign||function(){return a=Object.assign||function(q){for(var se,me=1,ue=arguments.length;me{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-CFGVlW_i.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-Bk9d78Is.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-D1vZESbT.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-CCV5gvgQ.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-C52ndVPR.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-YpUu_npr.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-BRsTPOHa.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-DdWfK-2l.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-BuncoHEL.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-Cpxh2Poz.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-CDRBPfL_.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-CGbNoQ3H.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-NGmHRjOA.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-yfpQdPDm.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-CX0nXAb9.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-pK4FvVb9.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-xPodnM-d.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-7Bo4h8hs.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-DtPT0Pgc.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-BRHX0ps1.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-xdIwfHkI.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-BcDVxa-Z.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-DQb-64NC.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-lMNzRUld.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-CEqj5JL5.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-U4f4AZ0N.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-D83qyYrd.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-QsKo6-Jg.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{this.editorDiv.style.fontSize=`calc(${Ke}px * var(--scale-factor))`,this.translate(0,-(Ke-j(this,be))*this.parentScale),Qe(this,be,Ke),Ne(this,we,on).call(this)},Fe=j(this,be);this.addCommands({cmd:()=>{Re(Te)},undo:()=>{Re(Fe)},mustExec:!0,type:o.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},ue=new WeakSet,br=function(Te){const Re=j(this,ge);this.addCommands({cmd:()=>{Qe(this,ge,this.editorDiv.style.color=Te)},undo:()=>{Qe(this,ge,this.editorDiv.style.color=Re)},mustExec:!0,type:o.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},$=new WeakSet,vr=function(){const Te=this.editorDiv.getElementsByTagName("div");if(Te.length===0)return this.editorDiv.innerText;const Re=[];for(const Fe of Te)Re.push(Fe.innerText.replace(/\r\n?|\n/,""));return Re.join(` `)},we=new WeakSet,on=function(){const[Te,Re]=this.parentDimensions;let Fe;if(this.isAttachedToDOM)Fe=this.div.getBoundingClientRect();else{const{currentLayer:Ke,div:tt}=this,Pe=tt.style.display;tt.style.display="hidden",Ke.div.append(this.div),Fe=tt.getBoundingClientRect(),tt.remove(),tt.style.display=Pe}this.rotation%180===this.parentRotation%180?(this.width=Fe.width/Te,this.height=Fe.height/Re):(this.width=Fe.height/Te,this.height=Fe.width/Re),this.fixAndSetPosition()},m=new WeakSet,zn=function(){if(this.editorDiv.replaceChildren(),!!j(this,te))for(const Te of j(this,te).split(` `)){const Re=document.createElement("div");Re.append(Te?document.createTextNode(Te):document.createElement("br")),this.editorDiv.append(Re)}},oe=new WeakSet,yr=function(Te){const{value:Re,fontSize:Fe,color:Ke,rect:tt,pageIndex:Pe}=j(this,q);return Te.value!==Re||Te.fontSize!==Fe||Te.rect.some((ne,fe)=>Math.abs(ne-tt[fe])>=1)||Te.color.some((ne,fe)=>ne!==Ke[fe])||Te.pageIndex!==Pe},Ee=new WeakSet,Vn=function(Te=!1){if(!this.annotationElementId)return;if(Ne(this,we,on).call(this),!Te&&(this.width===0||this.height===0)){setTimeout(()=>Ne(this,Ee,Vn).call(this,!0),0);return}const Re=je._internalPadding*this.parentScale;j(this,q).rect=this.getRect(Re,Re)},Ut(je,"_freeTextDefaultContent",""),Ut(je,"_internalPadding",0),Ut(je,"_defaultColor",null),Ut(je,"_defaultFontSize",10),Ut(je,"_type","freetext");let _=je;i.FreeTextEditor=_},(e,i,a)=>{var fe,le,Yt,Ae,Sr,Oe,Ge,qe,Ue,Ze,it,Je,nt,ht,ot,mt,st,Ve,We,He,at,ft,Pt,wr,Et,gn,Ct,Wn,Rt,Xn,Ye,Be,ct,dt,Bt,Nt,Xe,Yn,wt,_t,xt,At,xr,ut,Kn;Object.defineProperty(i,"__esModule",{value:!0}),i.StampAnnotationElement=i.InkAnnotationElement=i.FreeTextAnnotationElement=i.AnnotationLayer=void 0;var o=a(1),c=a(6),d=a(3),h=a(30),_=a(31),ee=a(32);const f=1e3,g=9,he=new WeakSet;function ge(St){return{width:St[2]-St[0],height:St[3]-St[1]}}class te{static create(ke){switch(ke.data.annotationType){case o.AnnotationType.LINK:return new be(ke);case o.AnnotationType.TEXT:return new q(ke);case o.AnnotationType.WIDGET:switch(ke.data.fieldType){case"Tx":return new me(ke);case"Btn":return ke.data.radioButton?new $(ke):ke.data.checkBox?new ae(ke):new ie(ke);case"Ch":return new we(ke);case"Sig":return new ue(ke)}return new se(ke);case o.AnnotationType.POPUP:return new de(ke);case o.AnnotationType.FREETEXT:return new _e(ke);case o.AnnotationType.LINE:return new oe(ke);case o.AnnotationType.SQUARE:return new Se(ke);case o.AnnotationType.CIRCLE:return new Ee(ke);case o.AnnotationType.POLYLINE:return new ye(ke);case o.AnnotationType.CARET:return new Le(ke);case o.AnnotationType.INK:return new xe(ke);case o.AnnotationType.POLYGON:return new je(ke);case o.AnnotationType.HIGHLIGHT:return new Te(ke);case o.AnnotationType.UNDERLINE:return new Re(ke);case o.AnnotationType.SQUIGGLY:return new Fe(ke);case o.AnnotationType.STRIKEOUT:return new Ke(ke);case o.AnnotationType.STAMP:return new tt(ke);case o.AnnotationType.FILEATTACHMENT:return new Pe(ke);default:return new re(ke)}}}const b=class b{constructor(ke,{isRenderable:ce=!1,ignoreBorder:$e=!1,createQuadrilaterals:Me=!1}={}){De(this,fe,!1);this.isRenderable=ce,this.data=ke.data,this.layer=ke.layer,this.linkService=ke.linkService,this.downloadManager=ke.downloadManager,this.imageResourcesPath=ke.imageResourcesPath,this.renderForms=ke.renderForms,this.svgFactory=ke.svgFactory,this.annotationStorage=ke.annotationStorage,this.enableScripting=ke.enableScripting,this.hasJSActions=ke.hasJSActions,this._fieldObjects=ke.fieldObjects,this.parent=ke.parent,ce&&(this.container=this._createContainer($e)),Me&&this._createQuadrilaterals()}static _hasPopupData({titleObj:ke,contentsObj:ce,richText:$e}){return!!(ke!=null&&ke.str||ce!=null&&ce.str||$e!=null&&$e.str)}get hasPopupData(){return b._hasPopupData(this.data)}_createContainer(ke){const{data:ce,parent:{page:$e,viewport:Me}}=this,Ie=document.createElement("section");Ie.setAttribute("data-annotation-id",ce.id),this instanceof se||(Ie.tabIndex=f),Ie.style.zIndex=this.parent.zIndex++,this.data.popupRef&&Ie.setAttribute("aria-haspopup","dialog"),ce.noRotate&&Ie.classList.add("norotate");const{pageWidth:ze,pageHeight:et,pageX:lt,pageY:bt}=Me.rawDims;if(!ce.rect||this instanceof de){const{rotation:Ot}=ce;return!ce.hasOwnCanvas&&Ot!==0&&this.setRotation(Ot,Ie),Ie}const{width:gt,height:kt}=ge(ce.rect),vt=o.Util.normalizeRect([ce.rect[0],$e.view[3]-ce.rect[1]+$e.view[1],ce.rect[2],$e.view[3]-ce.rect[3]+$e.view[1]]);if(!ke&&ce.borderStyle.width>0){Ie.style.borderWidth=`${ce.borderStyle.width}px`;const Ot=ce.borderStyle.horizontalCornerRadius,Mt=ce.borderStyle.verticalCornerRadius;if(Ot>0||Mt>0){const It=`calc(${Ot}px * var(--scale-factor)) / calc(${Mt}px * var(--scale-factor))`;Ie.style.borderRadius=It}else if(this instanceof $){const It=`calc(${gt}px * var(--scale-factor)) / calc(${kt}px * var(--scale-factor))`;Ie.style.borderRadius=It}switch(ce.borderStyle.style){case o.AnnotationBorderStyleType.SOLID:Ie.style.borderStyle="solid";break;case o.AnnotationBorderStyleType.DASHED:Ie.style.borderStyle="dashed";break;case o.AnnotationBorderStyleType.BEVELED:(0,o.warn)("Unimplemented border style: beveled");break;case o.AnnotationBorderStyleType.INSET:(0,o.warn)("Unimplemented border style: inset");break;case o.AnnotationBorderStyleType.UNDERLINE:Ie.style.borderBottomStyle="solid";break}const Ft=ce.borderColor||null;Ft?(Qe(this,fe,!0),Ie.style.borderColor=o.Util.makeHexColor(Ft[0]|0,Ft[1]|0,Ft[2]|0)):Ie.style.borderWidth=0}Ie.style.left=`${100*(vt[0]-lt)/ze}%`,Ie.style.top=`${100*(vt[1]-bt)/et}%`;const{rotation:yt}=ce;return ce.hasOwnCanvas||yt===0?(Ie.style.width=`${100*gt/ze}%`,Ie.style.height=`${100*kt/et}%`):this.setRotation(yt,Ie),Ie}setRotation(ke,ce=this.container){if(!this.data.rect)return;const{pageWidth:$e,pageHeight:Me}=this.parent.viewport.rawDims,{width:Ie,height:ze}=ge(this.data.rect);let et,lt;ke%180===0?(et=100*Ie/$e,lt=100*ze/Me):(et=100*ze/$e,lt=100*Ie/Me),ce.style.width=`${et}%`,ce.style.height=`${lt}%`,ce.setAttribute("data-main-rotation",(360-ke)%360)}get _commonActions(){const ke=(ce,$e,Me)=>{const Ie=Me.detail[ce],ze=Ie[0],et=Ie.slice(1);Me.target.style[$e]=h.ColorConverters[`${ze}_HTML`](et),this.annotationStorage.setValue(this.data.id,{[$e]:h.ColorConverters[`${ze}_rgb`](et)})};return(0,o.shadow)(this,"_commonActions",{display:ce=>{const{display:$e}=ce.detail,Me=$e%2===1;this.container.style.visibility=Me?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:Me,noPrint:$e===1||$e===2})},print:ce=>{this.annotationStorage.setValue(this.data.id,{noPrint:!ce.detail.print})},hidden:ce=>{const{hidden:$e}=ce.detail;this.container.style.visibility=$e?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:$e,noView:$e})},focus:ce=>{setTimeout(()=>ce.target.focus({preventScroll:!1}),0)},userName:ce=>{ce.target.title=ce.detail.userName},readonly:ce=>{ce.target.disabled=ce.detail.readonly},required:ce=>{this._setRequired(ce.target,ce.detail.required)},bgColor:ce=>{ke("bgColor","backgroundColor",ce)},fillColor:ce=>{ke("fillColor","backgroundColor",ce)},fgColor:ce=>{ke("fgColor","color",ce)},textColor:ce=>{ke("textColor","color",ce)},borderColor:ce=>{ke("borderColor","borderColor",ce)},strokeColor:ce=>{ke("strokeColor","borderColor",ce)},rotation:ce=>{const $e=ce.detail.rotation;this.setRotation($e),this.annotationStorage.setValue(this.data.id,{rotation:$e})}})}_dispatchEventFromSandbox(ke,ce){const $e=this._commonActions;for(const Me of Object.keys(ce.detail)){const Ie=ke[Me]||$e[Me];Ie==null||Ie(ce)}}_setDefaultPropertiesFromJS(ke){if(!this.enableScripting)return;const ce=this.annotationStorage.getRawValue(this.data.id);if(!ce)return;const $e=this._commonActions;for(const[Me,Ie]of Object.entries(ce)){const ze=$e[Me];if(ze){const et={detail:{[Me]:Ie},target:ke};ze(et),delete ce[Me]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:ke}=this.data;if(!ke)return;const[ce,$e,Me,Ie]=this.data.rect;if(ke.length===1){const[,{x:Mt,y:Ft},{x:It,y:qt}]=ke[0];if(Me===Mt&&Ie===Ft&&ce===It&&$e===qt)return}const{style:ze}=this.container;let et;if(j(this,fe)){const{borderColor:Mt,borderWidth:Ft}=ze;ze.borderWidth=0,et=["url('data:image/svg+xml;utf8,",'',``],this.container.classList.add("hasBorder")}const lt=Me-ce,bt=Ie-$e,{svgFactory:gt}=this,kt=gt.createElement("svg");kt.classList.add("quadrilateralsContainer"),kt.setAttribute("width",0),kt.setAttribute("height",0);const vt=gt.createElement("defs");kt.append(vt);const yt=gt.createElement("clipPath"),Ot=`clippath_${this.data.id}`;yt.setAttribute("id",Ot),yt.setAttribute("clipPathUnits","objectBoundingBox"),vt.append(yt);for(const[,{x:Mt,y:Ft},{x:It,y:qt}]of ke){const Gt=gt.createElement("rect"),Ht=(It-ce)/lt,Wt=(Ie-Ft)/bt,Xt=(Mt-It)/lt,sr=(Ft-qt)/bt;Gt.setAttribute("x",Ht),Gt.setAttribute("y",Wt),Gt.setAttribute("width",Xt),Gt.setAttribute("height",sr),yt.append(Gt),et==null||et.push(``)}j(this,fe)&&(et.push("')"),ze.backgroundImage=et.join("")),this.container.append(kt),this.container.style.clipPath=`url(#${Ot})`}_createPopup(){const{container:ke,data:ce}=this;ke.setAttribute("aria-haspopup","dialog");const $e=new de({data:{color:ce.color,titleObj:ce.titleObj,modificationDate:ce.modificationDate,contentsObj:ce.contentsObj,richText:ce.richText,parentRect:ce.rect,borderStyle:0,id:`popup_${ce.id}`,rotation:ce.rotation},parent:this.parent,elements:[this]});this.parent.div.append($e.render())}render(){(0,o.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(ke,ce=null){const $e=[];if(this._fieldObjects){const Me=this._fieldObjects[ke];if(Me)for(const{page:Ie,id:ze,exportValues:et}of Me){if(Ie===-1||ze===ce)continue;const lt=typeof et=="string"?et:null,bt=document.querySelector(`[data-element-id="${ze}"]`);if(bt&&!he.has(bt)){(0,o.warn)(`_getElementsByName - element not allowed: ${ze}`);continue}$e.push({id:ze,exportValue:lt,domElement:bt})}return $e}for(const Me of document.getElementsByName(ke)){const{exportValue:Ie}=Me,ze=Me.getAttribute("data-element-id");ze!==ce&&he.has(Me)&&$e.push({id:ze,exportValue:Ie,domElement:Me})}return $e}show(){var ke;this.container&&(this.container.hidden=!1),(ke=this.popup)==null||ke.maybeShow()}hide(){var ke;this.container&&(this.container.hidden=!0),(ke=this.popup)==null||ke.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const ke=this.getElementsToTriggerPopup();if(Array.isArray(ke))for(const ce of ke)ce.classList.add("highlightArea");else ke.classList.add("highlightArea")}_editOnDoubleClick(){const{annotationEditorType:ke,data:{id:ce}}=this;this.container.addEventListener("dblclick",()=>{var $e;($e=this.linkService.eventBus)==null||$e.dispatch("switchannotationeditormode",{source:this,mode:ke,editId:ce})})}};fe=new WeakMap;let re=b;class be extends re{constructor(ce,$e=null){super(ce,{isRenderable:!0,ignoreBorder:!!($e!=null&&$e.ignoreBorder),createQuadrilaterals:!0});De(this,le);De(this,Ae);this.isTooltipOnly=ce.data.isTooltipOnly}render(){const{data:ce,linkService:$e}=this,Me=document.createElement("a");Me.setAttribute("data-element-id",ce.id);let Ie=!1;return ce.url?($e.addLinkAttributes(Me,ce.url,ce.newWindow),Ie=!0):ce.action?(this._bindNamedAction(Me,ce.action),Ie=!0):ce.attachment?(this._bindAttachment(Me,ce.attachment),Ie=!0):ce.setOCGState?(Ne(this,Ae,Sr).call(this,Me,ce.setOCGState),Ie=!0):ce.dest?(this._bindLink(Me,ce.dest),Ie=!0):(ce.actions&&(ce.actions.Action||ce.actions["Mouse Up"]||ce.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(Me,ce),Ie=!0),ce.resetForm?(this._bindResetFormAction(Me,ce.resetForm),Ie=!0):this.isTooltipOnly&&!Ie&&(this._bindLink(Me,""),Ie=!0)),this.container.classList.add("linkAnnotation"),Ie&&this.container.append(Me),this.container}_bindLink(ce,$e){ce.href=this.linkService.getDestinationHash($e),ce.onclick=()=>($e&&this.linkService.goToDestination($e),!1),($e||$e==="")&&Ne(this,le,Yt).call(this)}_bindNamedAction(ce,$e){ce.href=this.linkService.getAnchorUrl(""),ce.onclick=()=>(this.linkService.executeNamedAction($e),!1),Ne(this,le,Yt).call(this)}_bindAttachment(ce,$e){ce.href=this.linkService.getAnchorUrl(""),ce.onclick=()=>{var Me;return(Me=this.downloadManager)==null||Me.openOrDownloadData(this.container,$e.content,$e.filename),!1},Ne(this,le,Yt).call(this)}_bindJSAction(ce,$e){ce.href=this.linkService.getAnchorUrl("");const Me=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const Ie of Object.keys($e.actions)){const ze=Me.get(Ie);ze&&(ce[ze]=()=>{var et;return(et=this.linkService.eventBus)==null||et.dispatch("dispatcheventinsandbox",{source:this,detail:{id:$e.id,name:Ie}}),!1})}ce.onclick||(ce.onclick=()=>!1),Ne(this,le,Yt).call(this)}_bindResetFormAction(ce,$e){const Me=ce.onclick;if(Me||(ce.href=this.linkService.getAnchorUrl("")),Ne(this,le,Yt).call(this),!this._fieldObjects){(0,o.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),Me||(ce.onclick=()=>!1);return}ce.onclick=()=>{var kt;Me==null||Me();const{fields:Ie,refs:ze,include:et}=$e,lt=[];if(Ie.length!==0||ze.length!==0){const vt=new Set(ze);for(const yt of Ie){const Ot=this._fieldObjects[yt]||[];for(const{id:Mt}of Ot)vt.add(Mt)}for(const yt of Object.values(this._fieldObjects))for(const Ot of yt)vt.has(Ot.id)===et&<.push(Ot)}else for(const vt of Object.values(this._fieldObjects))lt.push(...vt);const bt=this.annotationStorage,gt=[];for(const vt of lt){const{id:yt}=vt;switch(gt.push(yt),vt.type){case"text":{const Mt=vt.defaultValue||"";bt.setValue(yt,{value:Mt});break}case"checkbox":case"radiobutton":{const Mt=vt.defaultValue===vt.exportValues;bt.setValue(yt,{value:Mt});break}case"combobox":case"listbox":{const Mt=vt.defaultValue||"";bt.setValue(yt,{value:Mt});break}default:continue}const Ot=document.querySelector(`[data-element-id="${yt}"]`);if(Ot){if(!he.has(Ot)){(0,o.warn)(`_bindResetFormAction - element not allowed: ${yt}`);continue}}else continue;Ot.dispatchEvent(new Event("resetform"))}return this.enableScripting&&((kt=this.linkService.eventBus)==null||kt.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:gt,name:"ResetForm"}})),!1}}}le=new WeakSet,Yt=function(){this.container.setAttribute("data-internal-link","")},Ae=new WeakSet,Sr=function(ce,$e){ce.href=this.linkService.getAnchorUrl(""),ce.onclick=()=>(this.linkService.executeSetOCGState($e),!1),Ne(this,le,Yt).call(this)};class q extends re{constructor(ke){super(ke,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const ke=document.createElement("img");return ke.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",ke.alt="[{{type}} Annotation]",ke.dataset.l10nId="text_annotation_type",ke.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(ke),this.container}}class se extends re{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(ke){var ce;this.data.hasOwnCanvas&&(((ce=ke.previousSibling)==null?void 0:ce.nodeName)==="CANVAS"&&(ke.previousSibling.hidden=!0),ke.hidden=!1)}_getKeyModifier(ke){const{isWin:ce,isMac:$e}=o.FeatureTest.platform;return ce&&ke.ctrlKey||$e&&ke.metaKey}_setEventListener(ke,ce,$e,Me,Ie){$e.includes("mouse")?ke.addEventListener($e,ze=>{var et;(et=this.linkService.eventBus)==null||et.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:Me,value:Ie(ze),shift:ze.shiftKey,modifier:this._getKeyModifier(ze)}})}):ke.addEventListener($e,ze=>{var et;if($e==="blur"){if(!ce.focused||!ze.relatedTarget)return;ce.focused=!1}else if($e==="focus"){if(ce.focused)return;ce.focused=!0}Ie&&((et=this.linkService.eventBus)==null||et.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:Me,value:Ie(ze)}}))})}_setEventListeners(ke,ce,$e,Me){var Ie,ze,et;for(const[lt,bt]of $e)(bt==="Action"||(Ie=this.data.actions)!=null&&Ie[bt])&&((bt==="Focus"||bt==="Blur")&&(ce||(ce={focused:!1})),this._setEventListener(ke,ce,lt,bt,Me),bt==="Focus"&&!((ze=this.data.actions)!=null&&ze.Blur)?this._setEventListener(ke,ce,"blur","Blur",null):bt==="Blur"&&!((et=this.data.actions)!=null&&et.Focus)&&this._setEventListener(ke,ce,"focus","Focus",null))}_setBackgroundColor(ke){const ce=this.data.backgroundColor||null;ke.style.backgroundColor=ce===null?"transparent":o.Util.makeHexColor(ce[0],ce[1],ce[2])}_setTextStyle(ke){const ce=["left","center","right"],{fontColor:$e}=this.data.defaultAppearanceData,Me=this.data.defaultAppearanceData.fontSize||g,Ie=ke.style;let ze;const et=2,lt=bt=>Math.round(10*bt)/10;if(this.data.multiLine){const bt=Math.abs(this.data.rect[3]-this.data.rect[1]-et),gt=Math.round(bt/(o.LINE_FACTOR*Me))||1,kt=bt/gt;ze=Math.min(Me,lt(kt/o.LINE_FACTOR))}else{const bt=Math.abs(this.data.rect[3]-this.data.rect[1]-et);ze=Math.min(Me,lt(bt/o.LINE_FACTOR))}Ie.fontSize=`calc(${ze}px * var(--scale-factor))`,Ie.color=o.Util.makeHexColor($e[0],$e[1],$e[2]),this.data.textAlignment!==null&&(Ie.textAlign=ce[this.data.textAlignment])}_setRequired(ke,ce){ce?ke.setAttribute("required",!0):ke.removeAttribute("required"),ke.setAttribute("aria-required",ce)}}class me extends se{constructor(ke){const ce=ke.renderForms||!ke.data.hasAppearance&&!!ke.data.fieldValue;super(ke,{isRenderable:ce})}setPropertyOnSiblings(ke,ce,$e,Me){const Ie=this.annotationStorage;for(const ze of this._getElementsByName(ke.name,ke.id))ze.domElement&&(ze.domElement[ce]=$e),Ie.setValue(ze.id,{[Me]:$e})}render(){var Me,Ie;const ke=this.annotationStorage,ce=this.data.id;this.container.classList.add("textWidgetAnnotation");let $e=null;if(this.renderForms){const ze=ke.getValue(ce,{value:this.data.fieldValue});let et=ze.value||"";const lt=ke.getValue(ce,{charLimit:this.data.maxLen}).charLimit;lt&&et.length>lt&&(et=et.slice(0,lt));let bt=ze.formattedValue||((Me=this.data.textContent)==null?void 0:Me.join(` -`))||null;bt&&this.data.comb&&(bt=bt.replaceAll(/\s+/g,""));const gt={userValue:et,formattedValue:bt,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?($e=document.createElement("textarea"),$e.textContent=bt??et,this.data.doNotScroll&&($e.style.overflowY="hidden")):($e=document.createElement("input"),$e.type="text",$e.setAttribute("value",bt??et),this.data.doNotScroll&&($e.style.overflowX="hidden")),this.data.hasOwnCanvas&&($e.hidden=!0),he.add($e),$e.setAttribute("data-element-id",ce),$e.disabled=this.data.readOnly,$e.name=this.data.fieldName,$e.tabIndex=f,this._setRequired($e,this.data.required),lt&&($e.maxLength=lt),$e.addEventListener("input",vt=>{ke.setValue(ce,{value:vt.target.value}),this.setPropertyOnSiblings($e,"value",vt.target.value,"value"),gt.formattedValue=null}),$e.addEventListener("resetform",vt=>{const yt=this.data.defaultFieldValue??"";$e.value=gt.userValue=yt,gt.formattedValue=null});let kt=vt=>{const{formattedValue:yt}=gt;yt!=null&&(vt.target.value=yt),vt.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){$e.addEventListener("focus",yt=>{if(gt.focused)return;const{target:Ot}=yt;gt.userValue&&(Ot.value=gt.userValue),gt.lastCommittedValue=Ot.value,gt.commitKey=1,gt.focused=!0}),$e.addEventListener("updatefromsandbox",yt=>{this.showElementAndHideCanvas(yt.target);const Ot={value(Mt){gt.userValue=Mt.detail.value??"",ke.setValue(ce,{value:gt.userValue.toString()}),Mt.target.value=gt.userValue},formattedValue(Mt){const{formattedValue:Ft}=Mt.detail;gt.formattedValue=Ft,Ft!=null&&Mt.target!==document.activeElement&&(Mt.target.value=Ft),ke.setValue(ce,{formattedValue:Ft})},selRange(Mt){Mt.target.setSelectionRange(...Mt.detail.selRange)},charLimit:Mt=>{var Gt;const{charLimit:Ft}=Mt.detail,{target:It}=Mt;if(Ft===0){It.removeAttribute("maxLength");return}It.setAttribute("maxLength",Ft);let qt=gt.userValue;!qt||qt.length<=Ft||(qt=qt.slice(0,Ft),It.value=gt.userValue=qt,ke.setValue(ce,{value:qt}),(Gt=this.linkService.eventBus)==null||Gt.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ce,name:"Keystroke",value:qt,willCommit:!0,commitKey:1,selStart:It.selectionStart,selEnd:It.selectionEnd}}))}};this._dispatchEventFromSandbox(Ot,yt)}),$e.addEventListener("keydown",yt=>{var Ft;gt.commitKey=1;let Ot=-1;if(yt.key==="Escape"?Ot=0:yt.key==="Enter"&&!this.data.multiLine?Ot=2:yt.key==="Tab"&&(gt.commitKey=3),Ot===-1)return;const{value:Mt}=yt.target;gt.lastCommittedValue!==Mt&&(gt.lastCommittedValue=Mt,gt.userValue=Mt,(Ft=this.linkService.eventBus)==null||Ft.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ce,name:"Keystroke",value:Mt,willCommit:!0,commitKey:Ot,selStart:yt.target.selectionStart,selEnd:yt.target.selectionEnd}}))});const vt=kt;kt=null,$e.addEventListener("blur",yt=>{var Mt;if(!gt.focused||!yt.relatedTarget)return;gt.focused=!1;const{value:Ot}=yt.target;gt.userValue=Ot,gt.lastCommittedValue!==Ot&&((Mt=this.linkService.eventBus)==null||Mt.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ce,name:"Keystroke",value:Ot,willCommit:!0,commitKey:gt.commitKey,selStart:yt.target.selectionStart,selEnd:yt.target.selectionEnd}})),vt(yt)}),(Ie=this.data.actions)!=null&&Ie.Keystroke&&$e.addEventListener("beforeinput",yt=>{var Wt;gt.lastCommittedValue=null;const{data:Ot,target:Mt}=yt,{value:Ft,selectionStart:It,selectionEnd:qt}=Mt;let Gt=It,Ht=qt;switch(yt.inputType){case"deleteWordBackward":{const Xt=Ft.substring(0,It).match(/\w*[^\w]*$/);Xt&&(Gt-=Xt[0].length);break}case"deleteWordForward":{const Xt=Ft.substring(It).match(/^[^\w]*\w*/);Xt&&(Ht+=Xt[0].length);break}case"deleteContentBackward":It===qt&&(Gt-=1);break;case"deleteContentForward":It===qt&&(Ht+=1);break}yt.preventDefault(),(Wt=this.linkService.eventBus)==null||Wt.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ce,name:"Keystroke",value:Ft,change:Ot||"",willCommit:!1,selStart:Gt,selEnd:Ht}})}),this._setEventListeners($e,gt,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],yt=>yt.target.value)}if(kt&&$e.addEventListener("blur",kt),this.data.comb){const yt=(this.data.rect[2]-this.data.rect[0])/lt;$e.classList.add("comb"),$e.style.letterSpacing=`calc(${yt}px * var(--scale-factor) - 1ch)`}}else $e=document.createElement("div"),$e.textContent=this.data.fieldValue,$e.style.verticalAlign="middle",$e.style.display="table-cell";return this._setTextStyle($e),this._setBackgroundColor($e),this._setDefaultPropertiesFromJS($e),this.container.append($e),this.container}}class ue extends se{constructor(ke){super(ke,{isRenderable:!!ke.data.hasOwnCanvas})}}class ae extends se{constructor(ke){super(ke,{isRenderable:ke.renderForms})}render(){const ke=this.annotationStorage,ce=this.data,$e=ce.id;let Me=ke.getValue($e,{value:ce.exportValue===ce.fieldValue}).value;typeof Me=="string"&&(Me=Me!=="Off",ke.setValue($e,{value:Me})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const Ie=document.createElement("input");return he.add(Ie),Ie.setAttribute("data-element-id",$e),Ie.disabled=ce.readOnly,this._setRequired(Ie,this.data.required),Ie.type="checkbox",Ie.name=ce.fieldName,Me&&Ie.setAttribute("checked",!0),Ie.setAttribute("exportValue",ce.exportValue),Ie.tabIndex=f,Ie.addEventListener("change",ze=>{const{name:et,checked:lt}=ze.target;for(const bt of this._getElementsByName(et,$e)){const gt=lt&&bt.exportValue===ce.exportValue;bt.domElement&&(bt.domElement.checked=gt),ke.setValue(bt.id,{value:gt})}ke.setValue($e,{value:lt})}),Ie.addEventListener("resetform",ze=>{const et=ce.defaultFieldValue||"Off";ze.target.checked=et===ce.exportValue}),this.enableScripting&&this.hasJSActions&&(Ie.addEventListener("updatefromsandbox",ze=>{const et={value(lt){lt.target.checked=lt.detail.value!=="Off",ke.setValue($e,{value:lt.target.checked})}};this._dispatchEventFromSandbox(et,ze)}),this._setEventListeners(Ie,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],ze=>ze.target.checked)),this._setBackgroundColor(Ie),this._setDefaultPropertiesFromJS(Ie),this.container.append(Ie),this.container}}class $ extends se{constructor(ke){super(ke,{isRenderable:ke.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const ke=this.annotationStorage,ce=this.data,$e=ce.id;let Me=ke.getValue($e,{value:ce.fieldValue===ce.buttonValue}).value;typeof Me=="string"&&(Me=Me!==ce.buttonValue,ke.setValue($e,{value:Me}));const Ie=document.createElement("input");if(he.add(Ie),Ie.setAttribute("data-element-id",$e),Ie.disabled=ce.readOnly,this._setRequired(Ie,this.data.required),Ie.type="radio",Ie.name=ce.fieldName,Me&&Ie.setAttribute("checked",!0),Ie.tabIndex=f,Ie.addEventListener("change",ze=>{const{name:et,checked:lt}=ze.target;for(const bt of this._getElementsByName(et,$e))ke.setValue(bt.id,{value:!1});ke.setValue($e,{value:lt})}),Ie.addEventListener("resetform",ze=>{const et=ce.defaultFieldValue;ze.target.checked=et!=null&&et===ce.buttonValue}),this.enableScripting&&this.hasJSActions){const ze=ce.buttonValue;Ie.addEventListener("updatefromsandbox",et=>{const lt={value:bt=>{const gt=ze===bt.detail.value;for(const kt of this._getElementsByName(bt.target.name)){const vt=gt&&kt.id===$e;kt.domElement&&(kt.domElement.checked=vt),ke.setValue(kt.id,{value:vt})}}};this._dispatchEventFromSandbox(lt,et)}),this._setEventListeners(Ie,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],et=>et.target.checked)}return this._setBackgroundColor(Ie),this._setDefaultPropertiesFromJS(Ie),this.container.append(Ie),this.container}}class ie extends be{constructor(ke){super(ke,{ignoreBorder:ke.data.hasAppearance})}render(){const ke=super.render();ke.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(ke.title=this.data.alternativeText);const ce=ke.lastChild;return this.enableScripting&&this.hasJSActions&&ce&&(this._setDefaultPropertiesFromJS(ce),ce.addEventListener("updatefromsandbox",$e=>{this._dispatchEventFromSandbox({},$e)})),ke}}class we extends se{constructor(ke){super(ke,{isRenderable:ke.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const ke=this.annotationStorage,ce=this.data.id,$e=ke.getValue(ce,{value:this.data.fieldValue}),Me=document.createElement("select");he.add(Me),Me.setAttribute("data-element-id",ce),Me.disabled=this.data.readOnly,this._setRequired(Me,this.data.required),Me.name=this.data.fieldName,Me.tabIndex=f;let Ie=this.data.combo&&this.data.options.length>0;this.data.combo||(Me.size=this.data.options.length,this.data.multiSelect&&(Me.multiple=!0)),Me.addEventListener("resetform",gt=>{const kt=this.data.defaultFieldValue;for(const vt of Me.options)vt.selected=vt.value===kt});for(const gt of this.data.options){const kt=document.createElement("option");kt.textContent=gt.displayValue,kt.value=gt.exportValue,$e.value.includes(gt.exportValue)&&(kt.setAttribute("selected",!0),Ie=!1),Me.append(kt)}let ze=null;if(Ie){const gt=document.createElement("option");gt.value=" ",gt.setAttribute("hidden",!0),gt.setAttribute("selected",!0),Me.prepend(gt),ze=()=>{gt.remove(),Me.removeEventListener("input",ze),ze=null},Me.addEventListener("input",ze)}const et=gt=>{const kt=gt?"value":"textContent",{options:vt,multiple:yt}=Me;return yt?Array.prototype.filter.call(vt,Ot=>Ot.selected).map(Ot=>Ot[kt]):vt.selectedIndex===-1?null:vt[vt.selectedIndex][kt]};let lt=et(!1);const bt=gt=>{const kt=gt.target.options;return Array.prototype.map.call(kt,vt=>({displayValue:vt.textContent,exportValue:vt.value}))};return this.enableScripting&&this.hasJSActions?(Me.addEventListener("updatefromsandbox",gt=>{const kt={value(vt){ze==null||ze();const yt=vt.detail.value,Ot=new Set(Array.isArray(yt)?yt:[yt]);for(const Mt of Me.options)Mt.selected=Ot.has(Mt.value);ke.setValue(ce,{value:et(!0)}),lt=et(!1)},multipleSelection(vt){Me.multiple=!0},remove(vt){const yt=Me.options,Ot=vt.detail.remove;yt[Ot].selected=!1,Me.remove(Ot),yt.length>0&&Array.prototype.findIndex.call(yt,Ft=>Ft.selected)===-1&&(yt[0].selected=!0),ke.setValue(ce,{value:et(!0),items:bt(vt)}),lt=et(!1)},clear(vt){for(;Me.length!==0;)Me.remove(0);ke.setValue(ce,{value:null,items:[]}),lt=et(!1)},insert(vt){const{index:yt,displayValue:Ot,exportValue:Mt}=vt.detail.insert,Ft=Me.children[yt],It=document.createElement("option");It.textContent=Ot,It.value=Mt,Ft?Ft.before(It):Me.append(It),ke.setValue(ce,{value:et(!0),items:bt(vt)}),lt=et(!1)},items(vt){const{items:yt}=vt.detail;for(;Me.length!==0;)Me.remove(0);for(const Ot of yt){const{displayValue:Mt,exportValue:Ft}=Ot,It=document.createElement("option");It.textContent=Mt,It.value=Ft,Me.append(It)}Me.options.length>0&&(Me.options[0].selected=!0),ke.setValue(ce,{value:et(!0),items:bt(vt)}),lt=et(!1)},indices(vt){const yt=new Set(vt.detail.indices);for(const Ot of vt.target.options)Ot.selected=yt.has(Ot.index);ke.setValue(ce,{value:et(!0)}),lt=et(!1)},editable(vt){vt.target.disabled=!vt.detail.editable}};this._dispatchEventFromSandbox(kt,gt)}),Me.addEventListener("input",gt=>{var vt;const kt=et(!0);ke.setValue(ce,{value:kt}),gt.preventDefault(),(vt=this.linkService.eventBus)==null||vt.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ce,name:"Keystroke",value:lt,changeEx:kt,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(Me,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],gt=>gt.target.value)):Me.addEventListener("input",function(gt){ke.setValue(ce,{value:et(!0)})}),this.data.combo&&this._setTextStyle(Me),this._setBackgroundColor(Me),this._setDefaultPropertiesFromJS(Me),this.container.append(Me),this.container}}class de extends re{constructor(ke){const{data:ce,elements:$e}=ke;super(ke,{isRenderable:re._hasPopupData(ce)}),this.elements=$e}render(){this.container.classList.add("popupAnnotation");const ke=new m({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),ce=[];for(const $e of this.elements)$e.popup=ke,ce.push($e.data.id),$e.addHighlightArea();return this.container.setAttribute("aria-controls",ce.map($e=>`${o.AnnotationPrefix}${$e}`).join(",")),this.container}}class m{constructor({container:ke,color:ce,elements:$e,titleObj:Me,modificationDate:Ie,contentsObj:ze,richText:et,parent:lt,rect:bt,parentRect:gt,open:kt}){De(this,Pt);De(this,Et);De(this,Ct);De(this,Rt);De(this,Oe,null);De(this,Ge,Ne(this,Pt,wr).bind(this));De(this,qe,Ne(this,Rt,Xn).bind(this));De(this,Ue,Ne(this,Ct,Wn).bind(this));De(this,Ze,Ne(this,Et,gn).bind(this));De(this,it,null);De(this,Je,null);De(this,nt,null);De(this,ht,null);De(this,ot,null);De(this,mt,null);De(this,st,!1);De(this,Ve,null);De(this,We,null);De(this,He,null);De(this,at,null);De(this,ft,!1);var yt;Qe(this,Je,ke),Qe(this,at,Me),Qe(this,nt,ze),Qe(this,He,et),Qe(this,ot,lt),Qe(this,it,ce),Qe(this,We,bt),Qe(this,mt,gt),Qe(this,ht,$e);const vt=c.PDFDateString.toDateObject(Ie);vt&&Qe(this,Oe,lt.l10n.get("annotation_date_string",{date:vt.toLocaleDateString(),time:vt.toLocaleTimeString()})),this.trigger=$e.flatMap(Ot=>Ot.getElementsToTriggerPopup());for(const Ot of this.trigger)Ot.addEventListener("click",j(this,Ze)),Ot.addEventListener("mouseenter",j(this,Ue)),Ot.addEventListener("mouseleave",j(this,qe)),Ot.classList.add("popupTriggerArea");for(const Ot of $e)(yt=Ot.container)==null||yt.addEventListener("keydown",j(this,Ge));j(this,Je).hidden=!0,kt&&Ne(this,Et,gn).call(this)}render(){if(j(this,Ve))return;const{page:{view:ke},viewport:{rawDims:{pageWidth:ce,pageHeight:$e,pageX:Me,pageY:Ie}}}=j(this,ot),ze=Qe(this,Ve,document.createElement("div"));if(ze.className="popup",j(this,it)){const Gt=ze.style.outlineColor=o.Util.makeHexColor(...j(this,it));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?ze.style.backgroundColor=`color-mix(in srgb, ${Gt} 30%, white)`:ze.style.backgroundColor=o.Util.makeHexColor(...j(this,it).map(Wt=>Math.floor(.7*(255-Wt)+Wt)))}const et=document.createElement("span");et.className="header";const lt=document.createElement("h1");if(et.append(lt),{dir:lt.dir,str:lt.textContent}=j(this,at),ze.append(et),j(this,Oe)){const Gt=document.createElement("span");Gt.classList.add("popupDate"),j(this,Oe).then(Ht=>{Gt.textContent=Ht}),et.append(Gt)}const bt=j(this,nt),gt=j(this,He);if(gt!=null&>.str&&(!(bt!=null&&bt.str)||bt.str===gt.str))ee.XfaLayer.render({xfaHtml:gt.html,intent:"richText",div:ze}),ze.lastChild.classList.add("richText","popupContent");else{const Gt=this._formatContents(bt);ze.append(Gt)}let kt=!!j(this,mt),vt=kt?j(this,mt):j(this,We);for(const Gt of j(this,ht))if(!vt||o.Util.intersect(Gt.data.rect,vt)!==null){vt=Gt.data.rect,kt=!0;break}const yt=o.Util.normalizeRect([vt[0],ke[3]-vt[1]+ke[1],vt[2],ke[3]-vt[3]+ke[1]]),Mt=kt?vt[2]-vt[0]+5:0,Ft=yt[0]+Mt,It=yt[1],{style:qt}=j(this,Je);qt.left=`${100*(Ft-Me)/ce}%`,qt.top=`${100*(It-Ie)/$e}%`,j(this,Je).append(ze)}_formatContents({str:ke,dir:ce}){const $e=document.createElement("p");$e.classList.add("popupContent"),$e.dir=ce;const Me=ke.split(/(?:\r\n?|\n)/);for(let Ie=0,ze=Me.length;Ie{ze.key==="Enter"&&(Ie?ze.metaKey:ze.ctrlKey)&&Ne(this,Xe,Yn).call(this)}),!$e.popupRef&&this.hasPopupData?this._createPopup():Me.classList.add("popupTriggerArea"),ce.append(Me),ce}getElementsToTriggerPopup(){return j(this,Nt)}addHighlightArea(){this.container.classList.add("highlightArea")}}Nt=new WeakMap,Xe=new WeakSet,Yn=function(){var ce;(ce=this.downloadManager)==null||ce.openOrDownloadData(this.container,this.content,this.filename)};class ne{constructor({div:ke,accessibilityManager:ce,annotationCanvasMap:$e,l10n:Me,page:Ie,viewport:ze}){De(this,At);De(this,ut);De(this,wt,null);De(this,_t,null);De(this,xt,new Map);this.div=ke,Qe(this,wt,ce),Qe(this,_t,$e),this.l10n=Me,this.page=Ie,this.viewport=ze,this.zIndex=0,this.l10n||(this.l10n=_.NullL10n)}async render(ke){const{annotations:ce}=ke,$e=this.div;(0,c.setLayerDimensions)($e,this.viewport);const Me=new Map,Ie={data:null,layer:$e,linkService:ke.linkService,downloadManager:ke.downloadManager,imageResourcesPath:ke.imageResourcesPath||"",renderForms:ke.renderForms!==!1,svgFactory:new c.DOMSVGFactory,annotationStorage:ke.annotationStorage||new d.AnnotationStorage,enableScripting:ke.enableScripting===!0,hasJSActions:ke.hasJSActions,fieldObjects:ke.fieldObjects,parent:this,elements:null};for(const ze of ce){if(ze.noHTML)continue;const et=ze.annotationType===o.AnnotationType.POPUP;if(et){const gt=Me.get(ze.id);if(!gt)continue;Ie.elements=gt}else{const{width:gt,height:kt}=ge(ze.rect);if(gt<=0||kt<=0)continue}Ie.data=ze;const lt=te.create(Ie);if(!lt.isRenderable)continue;if(!et&&ze.popupRef){const gt=Me.get(ze.popupRef);gt?gt.push(lt):Me.set(ze.popupRef,[lt])}lt.annotationEditorType>0&&j(this,xt).set(lt.data.id,lt);const bt=lt.render();ze.hidden&&(bt.style.visibility="hidden"),Ne(this,At,xr).call(this,bt,ze.id)}Ne(this,ut,Kn).call(this),await this.l10n.translate($e)}update({viewport:ke}){const ce=this.div;this.viewport=ke,(0,c.setLayerDimensions)(ce,{rotation:ke.rotation}),Ne(this,ut,Kn).call(this),ce.hidden=!1}getEditableAnnotations(){return Array.from(j(this,xt).values())}getEditableAnnotation(ke){return j(this,xt).get(ke)}}wt=new WeakMap,_t=new WeakMap,xt=new WeakMap,At=new WeakSet,xr=function(ke,ce){var Me;const $e=ke.firstChild||ke;$e.id=`${o.AnnotationPrefix}${ce}`,this.div.append(ke),(Me=j(this,wt))==null||Me.moveElementInDOM(this.div,ke,$e,!1)},ut=new WeakSet,Kn=function(){if(!j(this,_t))return;const ke=this.div;for(const[ce,$e]of j(this,_t)){const Me=ke.querySelector(`[data-annotation-id="${ce}"]`);if(!Me)continue;const{firstChild:Ie}=Me;Ie?Ie.nodeName==="CANVAS"?Ie.replaceWith($e):Ie.before($e):Me.append($e)}j(this,_t).clear()},i.AnnotationLayer=ne},(e,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ColorConverters=void 0;function a(d){return Math.floor(Math.max(0,Math.min(1,d))*255).toString(16).padStart(2,"0")}function o(d){return Math.max(0,Math.min(255,255*d))}class c{static CMYK_G([h,_,ee,f]){return["G",1-Math.min(1,.3*h+.59*ee+.11*_+f)]}static G_CMYK([h]){return["CMYK",0,0,0,1-h]}static G_RGB([h]){return["RGB",h,h,h]}static G_rgb([h]){return h=o(h),[h,h,h]}static G_HTML([h]){const _=a(h);return`#${_}${_}${_}`}static RGB_G([h,_,ee]){return["G",.3*h+.59*_+.11*ee]}static RGB_rgb(h){return h.map(o)}static RGB_HTML(h){return`#${h.map(a).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([h,_,ee,f]){return["RGB",1-Math.min(1,h+f),1-Math.min(1,ee+f),1-Math.min(1,_+f)]}static CMYK_rgb([h,_,ee,f]){return[o(1-Math.min(1,h+f)),o(1-Math.min(1,ee+f)),o(1-Math.min(1,_+f))]}static CMYK_HTML(h){const _=this.CMYK_RGB(h).slice(1);return this.RGB_HTML(_)}static RGB_CMYK([h,_,ee]){const f=1-h,g=1-_,he=1-ee,ge=Math.min(f,g,he);return["CMYK",f,g,he,ge]}}i.ColorConverters=c},(e,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.NullL10n=void 0,i.getL10nFallback=o;const a={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"};a.print_progress_percent="{{progress}}%";function o(h,_){switch(h){case"find_match_count":h=`find_match_count[${_.total===1?"one":"other"}]`;break;case"find_match_count_limit":h=`find_match_count_limit[${_.limit===1?"one":"other"}]`;break}return a[h]||""}function c(h,_){return _?h.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,(ee,f)=>f in _?_[f]:"{{"+f+"}}"):h}const d={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(h,_=null,ee=o(h,_)){return c(ee,_)},async translate(h){}};i.NullL10n=d},(e,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.XfaLayer=void 0;var o=a(25);class c{static setupStorage(h,_,ee,f,g){const he=f.getValue(_,{value:null});switch(ee.name){case"textarea":if(he.value!==null&&(h.textContent=he.value),g==="print")break;h.addEventListener("input",ge=>{f.setValue(_,{value:ge.target.value})});break;case"input":if(ee.attributes.type==="radio"||ee.attributes.type==="checkbox"){if(he.value===ee.attributes.xfaOn?h.setAttribute("checked",!0):he.value===ee.attributes.xfaOff&&h.removeAttribute("checked"),g==="print")break;h.addEventListener("change",ge=>{f.setValue(_,{value:ge.target.checked?ge.target.getAttribute("xfaOn"):ge.target.getAttribute("xfaOff")})})}else{if(he.value!==null&&h.setAttribute("value",he.value),g==="print")break;h.addEventListener("input",ge=>{f.setValue(_,{value:ge.target.value})})}break;case"select":if(he.value!==null){h.setAttribute("value",he.value);for(const ge of ee.children)ge.attributes.value===he.value?ge.attributes.selected=!0:ge.attributes.hasOwnProperty("selected")&&delete ge.attributes.selected}h.addEventListener("input",ge=>{const te=ge.target.options,re=te.selectedIndex===-1?"":te[te.selectedIndex].value;f.setValue(_,{value:re})});break}}static setAttributes({html:h,element:_,storage:ee=null,intent:f,linkService:g}){const{attributes:he}=_,ge=h instanceof HTMLAnchorElement;he.type==="radio"&&(he.name=`${he.name}-${f}`);for(const[te,re]of Object.entries(he))if(re!=null)switch(te){case"class":re.length&&h.setAttribute(te,re.join(" "));break;case"dataId":break;case"id":h.setAttribute("data-element-id",re);break;case"style":Object.assign(h.style,re);break;case"textContent":h.textContent=re;break;default:(!ge||te!=="href"&&te!=="newWindow")&&h.setAttribute(te,re)}ge&&g.addLinkAttributes(h,he.href,he.newWindow),ee&&he.dataId&&this.setupStorage(h,he.dataId,_,ee)}static render(h){var be;const _=h.annotationStorage,ee=h.linkService,f=h.xfaHtml,g=h.intent||"display",he=document.createElement(f.name);f.attributes&&this.setAttributes({html:he,element:f,intent:g,linkService:ee});const ge=[[f,-1,he]],te=h.div;if(te.append(he),h.viewport){const q=`matrix(${h.viewport.transform.join(",")})`;te.style.transform=q}g!=="richText"&&te.setAttribute("class","xfaLayer xfaFont");const re=[];for(;ge.length>0;){const[q,se,me]=ge.at(-1);if(se+1===q.children.length){ge.pop();continue}const ue=q.children[++ge.at(-1)[1]];if(ue===null)continue;const{name:ae}=ue;if(ae==="#text"){const ie=document.createTextNode(ue.value);re.push(ie),me.append(ie);continue}const $=(be=ue==null?void 0:ue.attributes)!=null&&be.xmlns?document.createElementNS(ue.attributes.xmlns,ae):document.createElement(ae);if(me.append($),ue.attributes&&this.setAttributes({html:$,element:ue,storage:_,intent:g,linkService:ee}),ue.children&&ue.children.length>0)ge.push([ue,-1,$]);else if(ue.value){const ie=document.createTextNode(ue.value);o.XfaText.shouldBuildText(ae)&&re.push(ie),$.append(ie)}}for(const q of te.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))q.setAttribute("readOnly",!0);return{textDivs:re}}static update(h){const _=`matrix(${h.viewport.transform.join(",")})`;h.div.style.transform=_,h.div.hidden=!1}}i.XfaLayer=c},(e,i,a)=>{var f,g,he,ge,te,re,be,q,se,me,ue,ae,$,ie,we,Ar,m,Er,oe,Pr,Ee,$r,je,Qn,xe,Cr,Re,Jn,Ke,Tr,Pe,Or,fe,jr,le,Rr,Ae,kr,Oe,Vt,qe,Zn,Ze,bn,Je,vn,ht,Zt,mt,er,Ve,yn,He,Mr,ft,tr,Tt,Dr,jt,Fr,$t,nr,rt,Sn,Be,en;Object.defineProperty(i,"__esModule",{value:!0}),i.InkEditor=void 0;var o=a(1),c=a(4),d=a(29),h=a(6),_=a(5);const dt=class dt extends c.AnnotationEditor{constructor(Xe){super({...Xe,name:"inkEditor"});De(this,we);De(this,m);De(this,oe);De(this,Ee);De(this,je);De(this,xe);De(this,Re);De(this,Ke);De(this,Pe);De(this,fe);De(this,le);De(this,Ae);De(this,Oe);De(this,qe);De(this,Ze);De(this,Je);De(this,ht);De(this,mt);De(this,Ve);De(this,jt);De(this,$t);De(this,rt);De(this,Be);De(this,f,0);De(this,g,0);De(this,he,this.canvasPointermove.bind(this));De(this,ge,this.canvasPointerleave.bind(this));De(this,te,this.canvasPointerup.bind(this));De(this,re,this.canvasPointerdown.bind(this));De(this,be,new Path2D);De(this,q,!1);De(this,se,!1);De(this,me,!1);De(this,ue,null);De(this,ae,0);De(this,$,0);De(this,ie,null);this.color=Xe.color||null,this.thickness=Xe.thickness||null,this.opacity=Xe.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(Xe){c.AnnotationEditor.initialize(Xe,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(Xe,pt){switch(Xe){case o.AnnotationEditorParamsType.INK_THICKNESS:dt._defaultThickness=pt;break;case o.AnnotationEditorParamsType.INK_COLOR:dt._defaultColor=pt;break;case o.AnnotationEditorParamsType.INK_OPACITY:dt._defaultOpacity=pt/100;break}}updateParams(Xe,pt){switch(Xe){case o.AnnotationEditorParamsType.INK_THICKNESS:Ne(this,we,Ar).call(this,pt);break;case o.AnnotationEditorParamsType.INK_COLOR:Ne(this,m,Er).call(this,pt);break;case o.AnnotationEditorParamsType.INK_OPACITY:Ne(this,oe,Pr).call(this,pt);break}}static get defaultPropertiesToUpdate(){return[[o.AnnotationEditorParamsType.INK_THICKNESS,dt._defaultThickness],[o.AnnotationEditorParamsType.INK_COLOR,dt._defaultColor||c.AnnotationEditor._defaultLineColor],[o.AnnotationEditorParamsType.INK_OPACITY,Math.round(dt._defaultOpacity*100)]]}get propertiesToUpdate(){return[[o.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||dt._defaultThickness],[o.AnnotationEditorParamsType.INK_COLOR,this.color||dt._defaultColor||c.AnnotationEditor._defaultLineColor],[o.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??dt._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.canvas||(Ne(this,Ze,bn).call(this),Ne(this,Je,vn).call(this)),this.isAttachedToDOM||(this.parent.add(this),Ne(this,ht,Zt).call(this)),Ne(this,Be,en).call(this)))}remove(){this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,j(this,ue).disconnect(),Qe(this,ue,null),super.remove())}setParent(Xe){!this.parent&&Xe?this._uiManager.removeShouldRescale(this):this.parent&&Xe===null&&this._uiManager.addShouldRescale(this),super.setParent(Xe)}onScaleChanging(){const[Xe,pt]=this.parentDimensions,wt=this.width*Xe,_t=this.height*pt;this.setDimensions(wt,_t)}enableEditMode(){j(this,q)||this.canvas===null||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",j(this,re)))}disableEditMode(){!this.isInEditMode()||this.canvas===null||(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",j(this,re)))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){j(this,q)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),Qe(this,q,!0),this.div.classList.add("disabled"),Ne(this,Be,en).call(this,!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(Xe){this._focusEventsAllowed&&(super.focusin(Xe),this.enableEditMode())}canvasPointerdown(Xe){Xe.button!==0||!this.isInEditMode()||j(this,q)||(this.setInForeground(),Xe.preventDefault(),Xe.type!=="mouse"&&this.div.focus(),Ne(this,xe,Cr).call(this,Xe.offsetX,Xe.offsetY))}canvasPointermove(Xe){Xe.preventDefault(),Ne(this,Re,Jn).call(this,Xe.offsetX,Xe.offsetY)}canvasPointerup(Xe){Xe.preventDefault(),Ne(this,qe,Zn).call(this,Xe)}canvasPointerleave(Xe){Ne(this,qe,Zn).call(this,Xe)}get isResizable(){return!this.isEmpty()&&j(this,q)}render(){if(this.div)return this.div;let Xe,pt;this.width&&(Xe=this.x,pt=this.y),super.render(),c.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then(Lt=>{var ut;return(ut=this.div)==null?void 0:ut.setAttribute("aria-label",Lt)});const[wt,_t,xt,At]=Ne(this,Ee,$r).call(this);if(this.setAt(wt,_t,0,0),this.setDims(xt,At),Ne(this,Ze,bn).call(this),this.width){const[Lt,ut]=this.parentDimensions;this.setAspectRatio(this.width*Lt,this.height*ut),this.setAt(Xe*Lt,pt*ut,this.width*Lt,this.height*ut),Qe(this,me,!0),Ne(this,ht,Zt).call(this),this.setDims(this.width*Lt,this.height*ut),Ne(this,Oe,Vt).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return Ne(this,Je,vn).call(this),this.div}setDimensions(Xe,pt){const wt=Math.round(Xe),_t=Math.round(pt);if(j(this,ae)===wt&&j(this,$)===_t)return;Qe(this,ae,wt),Qe(this,$,_t),this.canvas.style.visibility="hidden";const[xt,At]=this.parentDimensions;this.width=Xe/xt,this.height=pt/At,this.fixAndSetPosition(),j(this,q)&&Ne(this,mt,er).call(this,Xe,pt),Ne(this,ht,Zt).call(this),Ne(this,Oe,Vt).call(this),this.canvas.style.visibility="visible",this.fixDims()}static deserialize(Xe,pt,wt){var Ie,ze,et;if(Xe instanceof d.InkAnnotationElement)return null;const _t=super.deserialize(Xe,pt,wt);_t.thickness=Xe.thickness,_t.color=o.Util.makeHexColor(...Xe.color),_t.opacity=Xe.opacity;const[xt,At]=_t.pageDimensions,Lt=_t.width*xt,ut=_t.height*At,Dt=_t.parentScale,St=Xe.thickness/2;Qe(_t,q,!0),Qe(_t,ae,Math.round(Lt)),Qe(_t,$,Math.round(ut));const{paths:ke,rect:ce,rotation:$e}=Xe;for(let{bezier:lt}of ke){lt=Ne(Ie=dt,Tt,Dr).call(Ie,lt,ce,$e);const bt=[];_t.paths.push(bt);let gt=Dt*(lt[0]-St),kt=Dt*(lt[1]-St);for(let yt=2,Ot=lt.length;yt{this.thickness=Xe,Ne(this,Be,en).call(this)},undo:()=>{this.thickness=pt,Ne(this,Be,en).call(this)},mustExec:!0,type:o.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})},m=new WeakSet,Er=function(Xe){const pt=this.color;this.addCommands({cmd:()=>{this.color=Xe,Ne(this,Oe,Vt).call(this)},undo:()=>{this.color=pt,Ne(this,Oe,Vt).call(this)},mustExec:!0,type:o.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})},oe=new WeakSet,Pr=function(Xe){Xe/=100;const pt=this.opacity;this.addCommands({cmd:()=>{this.opacity=Xe,Ne(this,Oe,Vt).call(this)},undo:()=>{this.opacity=pt,Ne(this,Oe,Vt).call(this)},mustExec:!0,type:o.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})},Ee=new WeakSet,$r=function(){const{parentRotation:Xe,parentDimensions:[pt,wt]}=this;switch(Xe){case 90:return[0,wt,wt,pt];case 180:return[pt,wt,pt,wt];case 270:return[pt,0,wt,pt];default:return[0,0,pt,wt]}},je=new WeakSet,Qn=function(){const{ctx:Xe,color:pt,opacity:wt,thickness:_t,parentScale:xt,scaleFactor:At}=this;Xe.lineWidth=_t*xt/At,Xe.lineCap="round",Xe.lineJoin="round",Xe.miterLimit=10,Xe.strokeStyle=`${pt}${(0,_.opacityToHex)(wt)}`},xe=new WeakSet,Cr=function(Xe,pt){this.canvas.addEventListener("contextmenu",h.noContextMenu),this.canvas.addEventListener("pointerleave",j(this,ge)),this.canvas.addEventListener("pointermove",j(this,he)),this.canvas.addEventListener("pointerup",j(this,te)),this.canvas.removeEventListener("pointerdown",j(this,re)),this.isEditing=!0,j(this,me)||(Qe(this,me,!0),Ne(this,ht,Zt).call(this),this.thickness||(this.thickness=dt._defaultThickness),this.color||(this.color=dt._defaultColor||c.AnnotationEditor._defaultLineColor),this.opacity??(this.opacity=dt._defaultOpacity)),this.currentPath.push([Xe,pt]),Qe(this,se,!1),Ne(this,je,Qn).call(this),Qe(this,ie,()=>{Ne(this,fe,jr).call(this),j(this,ie)&&window.requestAnimationFrame(j(this,ie))}),window.requestAnimationFrame(j(this,ie))},Re=new WeakSet,Jn=function(Xe,pt){const[wt,_t]=this.currentPath.at(-1);if(this.currentPath.length>1&&Xe===wt&&pt===_t)return;const xt=this.currentPath;let At=j(this,be);if(xt.push([Xe,pt]),Qe(this,se,!0),xt.length<=2){At.moveTo(...xt[0]),At.lineTo(Xe,pt);return}xt.length===3&&(Qe(this,be,At=new Path2D),At.moveTo(...xt[0])),Ne(this,le,Rr).call(this,At,...xt.at(-3),...xt.at(-2),Xe,pt)},Ke=new WeakSet,Tr=function(){if(this.currentPath.length===0)return;const Xe=this.currentPath.at(-1);j(this,be).lineTo(...Xe)},Pe=new WeakSet,Or=function(Xe,pt){Qe(this,ie,null),Xe=Math.min(Math.max(Xe,0),this.canvas.width),pt=Math.min(Math.max(pt,0),this.canvas.height),Ne(this,Re,Jn).call(this,Xe,pt),Ne(this,Ke,Tr).call(this);let wt;if(this.currentPath.length!==1)wt=Ne(this,Ae,kr).call(this);else{const ut=[Xe,pt];wt=[[ut,ut.slice(),ut.slice(),ut]]}const _t=j(this,be),xt=this.currentPath;this.currentPath=[],Qe(this,be,new Path2D);const At=()=>{this.allRawPaths.push(xt),this.paths.push(wt),this.bezierPath2D.push(_t),this.rebuild()},Lt=()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(Ne(this,Ze,bn).call(this),Ne(this,Je,vn).call(this)),Ne(this,Be,en).call(this))};this.addCommands({cmd:At,undo:Lt,mustExec:!0})},fe=new WeakSet,jr=function(){if(!j(this,se))return;Qe(this,se,!1);const Xe=Math.ceil(this.thickness*this.parentScale),pt=this.currentPath.slice(-3),wt=pt.map(At=>At[0]),_t=pt.map(At=>At[1]);Math.min(...wt)-Xe,Math.max(...wt)+Xe,Math.min(..._t)-Xe,Math.max(..._t)+Xe;const{ctx:xt}=this;xt.save(),xt.clearRect(0,0,this.canvas.width,this.canvas.height);for(const At of this.bezierPath2D)xt.stroke(At);xt.stroke(j(this,be)),xt.restore()},le=new WeakSet,Rr=function(Xe,pt,wt,_t,xt,At,Lt){const ut=(pt+_t)/2,Dt=(wt+xt)/2,St=(_t+At)/2,ke=(xt+Lt)/2;Xe.bezierCurveTo(ut+2*(_t-ut)/3,Dt+2*(xt-Dt)/3,St+2*(_t-St)/3,ke+2*(xt-ke)/3,St,ke)},Ae=new WeakSet,kr=function(){const Xe=this.currentPath;if(Xe.length<=2)return[[Xe[0],Xe[0],Xe.at(-1),Xe.at(-1)]];const pt=[];let wt,[_t,xt]=Xe[0];for(wt=1;wt{this.canvas.removeEventListener("contextmenu",h.noContextMenu)},10),Ne(this,Pe,Or).call(this,Xe.offsetX,Xe.offsetY),this.addToAnnotationStorage(),this.setInBackground()},Ze=new WeakSet,bn=function(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",c.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then(Xe=>{var pt;return(pt=this.canvas)==null?void 0:pt.setAttribute("aria-label",Xe)}),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")},Je=new WeakSet,vn=function(){Qe(this,ue,new ResizeObserver(Xe=>{const pt=Xe[0].contentRect;pt.width&&pt.height&&this.setDimensions(pt.width,pt.height)})),j(this,ue).observe(this.div)},ht=new WeakSet,Zt=function(){if(!j(this,me))return;const[Xe,pt]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*Xe),this.canvas.height=Math.ceil(this.height*pt),Ne(this,Ve,yn).call(this)},mt=new WeakSet,er=function(Xe,pt){const wt=Ne(this,rt,Sn).call(this),_t=(Xe-wt)/j(this,g),xt=(pt-wt)/j(this,f);this.scaleFactor=Math.min(_t,xt)},Ve=new WeakSet,yn=function(){const Xe=Ne(this,rt,Sn).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+Xe,this.translationY*this.scaleFactor+Xe)},He=new WeakSet,Mr=function(Xe){const pt=new Path2D;for(let wt=0,_t=Xe.length;wt<_t;wt++){const[xt,At,Lt,ut]=Xe[wt];wt===0&&pt.moveTo(...xt),pt.bezierCurveTo(At[0],At[1],Lt[0],Lt[1],ut[0],ut[1])}return pt},ft=new WeakSet,tr=function(Xe,pt,wt){const[_t,xt,At,Lt]=pt;switch(wt){case 0:for(let ut=0,Dt=Xe.length;ut{var ee,f,g,he,ge,te,re,be,q,se,me,ln,ae,cn,ie,wn,de,rr,_e,Lr,Se,Ir,ye,ir,Le,xn,Te,Nr;Object.defineProperty(i,"__esModule",{value:!0}),i.StampEditor=void 0;var o=a(1),c=a(4),d=a(6),h=a(29);const Fe=class Fe extends c.AnnotationEditor{constructor(Pe){super({...Pe,name:"stampEditor"});De(this,me);De(this,ae);De(this,ie);De(this,de);De(this,_e);De(this,Se);De(this,ye);De(this,Le);De(this,Te);De(this,ee,null);De(this,f,null);De(this,g,null);De(this,he,null);De(this,ge,null);De(this,te,null);De(this,re,null);De(this,be,null);De(this,q,!1);De(this,se,!1);Qe(this,he,Pe.bitmapUrl),Qe(this,ge,Pe.bitmapFile)}static initialize(Pe){c.AnnotationEditor.initialize(Pe)}static get supportedTypes(){const Pe=["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"];return(0,o.shadow)(this,"supportedTypes",Pe.map(ne=>`image/${ne}`))}static get supportedTypesStr(){return(0,o.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(Pe){return this.supportedTypes.includes(Pe)}static paste(Pe,ne){ne.pasteEditor(o.AnnotationEditorType.STAMP,{bitmapFile:Pe.getAsFile()})}remove(){var Pe,ne;j(this,f)&&(Qe(this,ee,null),this._uiManager.imageManager.deleteId(j(this,f)),(Pe=j(this,te))==null||Pe.remove(),Qe(this,te,null),(ne=j(this,re))==null||ne.disconnect(),Qe(this,re,null)),super.remove()}rebuild(){if(!this.parent){j(this,f)&&Ne(this,ie,wn).call(this);return}super.rebuild(),this.div!==null&&(j(this,f)&&Ne(this,ie,wn).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(j(this,g)||j(this,ee)||j(this,he)||j(this,ge))}get isResizable(){return!0}render(){if(this.div)return this.div;let Pe,ne;if(this.width&&(Pe=this.x,ne=this.y),super.render(),this.div.hidden=!0,j(this,ee)?Ne(this,de,rr).call(this):Ne(this,ie,wn).call(this),this.width){const[fe,b]=this.parentDimensions;this.setAt(Pe*fe,ne*b,this.width*fe,this.height*b)}return this.div}static deserialize(Pe,ne,fe){if(Pe instanceof h.StampAnnotationElement)return null;const b=super.deserialize(Pe,ne,fe),{rect:le,bitmapUrl:ve,bitmapId:Ae,isSvg:Ce,accessibilityData:Oe}=Pe;Ae&&fe.imageManager.isValidId(Ae)?Qe(b,f,Ae):Qe(b,he,ve),Qe(b,q,Ce);const[Ge,qe]=b.pageDimensions;return b.width=(le[2]-le[0])/Ge,b.height=(le[3]-le[1])/qe,Oe&&(b.altTextData=Oe),b}serialize(Pe=!1,ne=null){if(this.isEmpty())return null;const fe={annotationType:o.AnnotationEditorType.STAMP,bitmapId:j(this,f),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:j(this,q),structTreeParentId:this._structTreeParentId};if(Pe)return fe.bitmapUrl=Ne(this,Le,xn).call(this,!0),fe.accessibilityData=this.altTextData,fe;const{decorative:b,altText:le}=this.altTextData;if(!b&&le&&(fe.accessibilityData={type:"Figure",alt:le}),ne===null)return fe;ne.stamps||(ne.stamps=new Map);const ve=j(this,q)?(fe.rect[2]-fe.rect[0])*(fe.rect[3]-fe.rect[1]):null;if(!ne.stamps.has(j(this,f)))ne.stamps.set(j(this,f),{area:ve,serialized:fe}),fe.bitmap=Ne(this,Le,xn).call(this,!1);else if(j(this,q)){const Ae=ne.stamps.get(j(this,f));ve>Ae.area&&(Ae.area=ve,Ae.serialized.bitmap.close(),Ae.serialized.bitmap=Ne(this,Le,xn).call(this,!1))}return fe}};ee=new WeakMap,f=new WeakMap,g=new WeakMap,he=new WeakMap,ge=new WeakMap,te=new WeakMap,re=new WeakMap,be=new WeakMap,q=new WeakMap,se=new WeakMap,me=new WeakSet,ln=function(Pe,ne=!1){if(!Pe){this.remove();return}Qe(this,ee,Pe.bitmap),ne||(Qe(this,f,Pe.id),Qe(this,q,Pe.isSvg)),Ne(this,de,rr).call(this)},ae=new WeakSet,cn=function(){Qe(this,g,null),this._uiManager.enableWaiting(!1),j(this,te)&&this.div.focus()},ie=new WeakSet,wn=function(){if(j(this,f)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(j(this,f)).then(ne=>Ne(this,me,ln).call(this,ne,!0)).finally(()=>Ne(this,ae,cn).call(this));return}if(j(this,he)){const ne=j(this,he);Qe(this,he,null),this._uiManager.enableWaiting(!0),Qe(this,g,this._uiManager.imageManager.getFromUrl(ne).then(fe=>Ne(this,me,ln).call(this,fe)).finally(()=>Ne(this,ae,cn).call(this)));return}if(j(this,ge)){const ne=j(this,ge);Qe(this,ge,null),this._uiManager.enableWaiting(!0),Qe(this,g,this._uiManager.imageManager.getFromFile(ne).then(fe=>Ne(this,me,ln).call(this,fe)).finally(()=>Ne(this,ae,cn).call(this)));return}const Pe=document.createElement("input");Pe.type="file",Pe.accept=Fe.supportedTypesStr,Qe(this,g,new Promise(ne=>{Pe.addEventListener("change",async()=>{if(!Pe.files||Pe.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const fe=await this._uiManager.imageManager.getFromFile(Pe.files[0]);Ne(this,me,ln).call(this,fe)}ne()}),Pe.addEventListener("cancel",()=>{this.remove(),ne()})}).finally(()=>Ne(this,ae,cn).call(this))),Pe.click()},de=new WeakSet,rr=function(){const{div:Pe}=this;let{width:ne,height:fe}=j(this,ee);const[b,le]=this.pageDimensions,ve=.75;if(this.width)ne=this.width*b,fe=this.height*le;else if(ne>ve*b||fe>ve*le){const Ge=Math.min(ve*b/ne,ve*le/fe);ne*=Ge,fe*=Ge}const[Ae,Ce]=this.parentDimensions;this.setDims(ne*Ae/b,fe*Ce/le),this._uiManager.enableWaiting(!1);const Oe=Qe(this,te,document.createElement("canvas"));Pe.append(Oe),Pe.hidden=!1,Ne(this,ye,ir).call(this,ne,fe),Ne(this,Te,Nr).call(this),j(this,se)||(this.parent.addUndoableEditor(this),Qe(this,se,!0)),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()},_e=new WeakSet,Lr=function(Pe,ne){var ve;const[fe,b]=this.parentDimensions;this.width=Pe/fe,this.height=ne/b,this.setDims(Pe,ne),(ve=this._initialOptions)!=null&&ve.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,j(this,be)!==null&&clearTimeout(j(this,be)),Qe(this,be,setTimeout(()=>{Qe(this,be,null),Ne(this,ye,ir).call(this,Pe,ne)},200))},Se=new WeakSet,Ir=function(Pe,ne){const{width:fe,height:b}=j(this,ee);let le=fe,ve=b,Ae=j(this,ee);for(;le>2*Pe||ve>2*ne;){const Ce=le,Oe=ve;le>2*Pe&&(le=le>=16384?Math.floor(le/2)-1:Math.ceil(le/2)),ve>2*ne&&(ve=ve>=16384?Math.floor(ve/2)-1:Math.ceil(ve/2));const Ge=new OffscreenCanvas(le,ve);Ge.getContext("2d").drawImage(Ae,0,0,Ce,Oe,0,0,le,ve),Ae=Ge.transferToImageBitmap()}return Ae},ye=new WeakSet,ir=function(Pe,ne){Pe=Math.ceil(Pe),ne=Math.ceil(ne);const fe=j(this,te);if(!fe||fe.width===Pe&&fe.height===ne)return;fe.width=Pe,fe.height=ne;const b=j(this,q)?j(this,ee):Ne(this,Se,Ir).call(this,Pe,ne),le=fe.getContext("2d");le.filter=this._uiManager.hcmFilter,le.drawImage(b,0,0,b.width,b.height,0,0,Pe,ne)},Le=new WeakSet,xn=function(Pe){if(Pe){if(j(this,q)){const b=this._uiManager.imageManager.getSvgUrl(j(this,f));if(b)return b}const ne=document.createElement("canvas");return{width:ne.width,height:ne.height}=j(this,ee),ne.getContext("2d").drawImage(j(this,ee),0,0),ne.toDataURL()}if(j(this,q)){const[ne,fe]=this.pageDimensions,b=Math.round(this.width*ne*d.PixelsPerInch.PDF_TO_CSS_UNITS),le=Math.round(this.height*fe*d.PixelsPerInch.PDF_TO_CSS_UNITS),ve=new OffscreenCanvas(b,le);return ve.getContext("2d").drawImage(j(this,ee),0,0,j(this,ee).width,j(this,ee).height,0,0,b,le),ve.transferToImageBitmap()}return structuredClone(j(this,ee))},Te=new WeakSet,Nr=function(){Qe(this,re,new ResizeObserver(Pe=>{const ne=Pe[0].contentRect;ne.width&&ne.height&&Ne(this,_e,Lr).call(this,ne.width,ne.height)})),j(this,re).observe(this.div)},Ut(Fe,"_type","stamp");let _=Fe;i.StampEditor=_}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var i=__webpack_module_cache__[e];if(i!==void 0)return i.exports;var a=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](a,a.exports,__w_pdfjs_require__),a.exports}var __webpack_exports__={};return(()=>{var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortException",{enumerable:!0,get:function(){return i.AbortException}}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return d.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return i.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return i.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return h.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return _.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return i.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return i.CMapCompressionType}}),Object.defineProperty(e,"DOMSVGFactory",{enumerable:!0,get:function(){return o.DOMSVGFactory}}),Object.defineProperty(e,"FeatureTest",{enumerable:!0,get:function(){return i.FeatureTest}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return ee.GlobalWorkerOptions}}),Object.defineProperty(e,"ImageKind",{enumerable:!0,get:function(){return i.ImageKind}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return i.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return i.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return i.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return a.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return o.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return a.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return i.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return i.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return o.PixelsPerInch}}),Object.defineProperty(e,"PromiseCapability",{enumerable:!0,get:function(){return i.PromiseCapability}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return o.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return a.SVGGraphics}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return i.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return i.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return i.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return f.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return a.build}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return i.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return a.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return o.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return o.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return o.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return o.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return o.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(e,"noContextMenu",{enumerable:!0,get:function(){return o.noContextMenu}}),Object.defineProperty(e,"normalizeUnicode",{enumerable:!0,get:function(){return i.normalizeUnicode}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return c.renderTextLayer}}),Object.defineProperty(e,"setLayerDimensions",{enumerable:!0,get:function(){return o.setLayerDimensions}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return i.shadow}}),Object.defineProperty(e,"updateTextLayer",{enumerable:!0,get:function(){return c.updateTextLayer}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return a.version}});var i=__w_pdfjs_require__(1),a=__w_pdfjs_require__(2),o=__w_pdfjs_require__(6),c=__w_pdfjs_require__(26),d=__w_pdfjs_require__(27),h=__w_pdfjs_require__(5),_=__w_pdfjs_require__(29),ee=__w_pdfjs_require__(14),f=__w_pdfjs_require__(32)})(),__webpack_exports__})())})(pdf);var pdfExports=pdf.exports,__createBinding$k=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$k=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$k=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$k(i,e,a);return __setModuleDefault$k(i,e),i};Object.defineProperty(pdfjs$1,"__esModule",{value:!0});const pdfjsModule=__importStar$k(pdfExports),pdfjs="default"in pdfjsModule?pdfjsModule.default:pdfjsModule;pdfjs$1.default=pdfjs;var Document$1={},cjs$3={};(function(e){var i=commonjsGlobal&&commonjsGlobal.__spreadArray||function(o,c,d){if(d||arguments.length===2)for(var h=0,_=c.length,ee;h<_;h++)(ee||!(h in c))&&(ee||(ee=Array.prototype.slice.call(c,0,h)),ee[h]=c[h]);return o.concat(ee||Array.prototype.slice.call(c))};Object.defineProperty(e,"__esModule",{value:!0}),e.allEvents=e.changeEvents=e.otherEvents=e.transitionEvents=e.animationEvents=e.wheelEvents=e.uiEvents=e.pointerEvents=e.touchEvents=e.selectionEvents=e.dragEvents=e.mouseEvents=e.mediaEvents=e.keyboardEvents=e.imageEvents=e.formEvents=e.focusEvents=e.compositionEvents=e.clipboardEvents=void 0,e.clipboardEvents=["onCopy","onCut","onPaste"],e.compositionEvents=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],e.focusEvents=["onFocus","onBlur"],e.formEvents=["onInput","onInvalid","onReset","onSubmit"],e.imageEvents=["onLoad","onError"],e.keyboardEvents=["onKeyDown","onKeyPress","onKeyUp"],e.mediaEvents=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],e.mouseEvents=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],e.dragEvents=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],e.selectionEvents=["onSelect"],e.touchEvents=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],e.pointerEvents=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],e.uiEvents=["onScroll"],e.wheelEvents=["onWheel"],e.animationEvents=["onAnimationStart","onAnimationEnd","onAnimationIteration"],e.transitionEvents=["onTransitionEnd"],e.otherEvents=["onToggle"],e.changeEvents=["onChange"],e.allEvents=i(i(i(i(i(i(i(i(i(i(i(i(i(i(i(i(i(i([],e.clipboardEvents,!0),e.compositionEvents,!0),e.focusEvents,!0),e.formEvents,!0),e.imageEvents,!0),e.keyboardEvents,!0),e.mediaEvents,!0),e.mouseEvents,!0),e.dragEvents,!0),e.selectionEvents,!0),e.touchEvents,!0),e.pointerEvents,!0),e.uiEvents,!0),e.wheelEvents,!0),e.animationEvents,!0),e.transitionEvents,!0),e.changeEvents,!0),e.otherEvents,!0);function a(o,c){var d={};return e.allEvents.forEach(function(h){var _=o[h];_&&(c?d[h]=function(ee){return _(ee,c(h))}:d[h]=_)}),d}e.default=a})(cjs$3);var cjs$2={};Object.defineProperty(cjs$2,"__esModule",{value:!0});function makeCancellablePromise(e){var i=!1,a=new Promise(function(o,c){e.then(function(d){return!i&&o(d)}).catch(function(d){return!i&&c(d)})});return{promise:a,cancel:function(){i=!0}}}cjs$2.default=makeCancellablePromise;const require$$1=getAugmentedNamespace(clsx),require$$2=getAugmentedNamespace(tinyInvariant);var dist={},has=Object.prototype.hasOwnProperty;function find(e,i,a){for(a of e.keys())if(dequal(a,i))return a}function dequal(e,i){var a,o,c;if(e===i)return!0;if(e&&i&&(a=e.constructor)===i.constructor){if(a===Date)return e.getTime()===i.getTime();if(a===RegExp)return e.toString()===i.toString();if(a===Array){if((o=e.length)===i.length)for(;o--&&dequal(e[o],i[o]););return o===-1}if(a===Set){if(e.size!==i.size)return!1;for(o of e)if(c=o,c&&typeof c=="object"&&(c=find(i,c),!c)||!i.has(c))return!1;return!0}if(a===Map){if(e.size!==i.size)return!1;for(o of e)if(c=o[0],c&&typeof c=="object"&&(c=find(i,c),!c)||!dequal(o[1],i.get(c)))return!1;return!0}if(a===ArrayBuffer)e=new Uint8Array(e),i=new Uint8Array(i);else if(a===DataView){if((o=e.byteLength)===i.byteLength)for(;o--&&e.getInt8(o)===i.getInt8(o););return o===-1}if(ArrayBuffer.isView(e)){if((o=e.byteLength)===i.byteLength)for(;o--&&e[o]===i[o];);return o===-1}if(!a||typeof e=="object"){o=0;for(a in e)if(has.call(e,a)&&++o&&!has.call(i,a)||!(a in i)||!dequal(e[a],i[a]))return!1;return Object.keys(i).length===o}}return e!==e&&i!==i}dist.dequal=dequal;var DocumentContext={};Object.defineProperty(DocumentContext,"__esModule",{value:!0});const react_1$n=reactExports;DocumentContext.default=(0,react_1$n.createContext)(null);var Message$1={},__importDefault$p=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Message$1,"__esModule",{value:!0});const react_1$m=__importDefault$p(reactExports);function Message({children:e,type:i}){return react_1$m.default.createElement("div",{className:`react-pdf__message react-pdf__message--${i}`},e)}Message$1.default=Message;var LinkService$1={},__importDefault$o=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(LinkService$1,"__esModule",{value:!0});const tiny_invariant_1$a=__importDefault$o(require$$2),DEFAULT_LINK_REL="noopener noreferrer nofollow";class LinkService{constructor(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}setDocument(i){this.pdfDocument=i}setViewer(i){this.pdfViewer=i}setExternalLinkRel(i){this.externalLinkRel=i}setExternalLinkTarget(i){this.externalLinkTarget=i}setHistory(){}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return(0,tiny_invariant_1$a.default)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber||0}set page(i){(0,tiny_invariant_1$a.default)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber=i}get rotation(){return 0}set rotation(i){}goToDestination(i){return new Promise(a=>{(0,tiny_invariant_1$a.default)(this.pdfDocument,"PDF document not loaded."),(0,tiny_invariant_1$a.default)(i,"Destination is not specified."),typeof i=="string"?this.pdfDocument.getDestination(i).then(a):Array.isArray(i)?a(i):i.then(a)}).then(a=>{(0,tiny_invariant_1$a.default)(Array.isArray(a),`"${a}" is not a valid destination array.`);const o=a[0];new Promise(c=>{(0,tiny_invariant_1$a.default)(this.pdfDocument,"PDF document not loaded."),o instanceof Object?this.pdfDocument.getPageIndex(o).then(d=>{c(d)}).catch(()=>{(0,tiny_invariant_1$a.default)(!1,`"${o}" is not a valid page reference.`)}):typeof o=="number"?c(o):(0,tiny_invariant_1$a.default)(!1,`"${o}" is not a valid destination reference.`)}).then(c=>{const d=c+1;(0,tiny_invariant_1$a.default)(this.pdfViewer,"PDF viewer is not initialized."),(0,tiny_invariant_1$a.default)(d>=1&&d<=this.pagesCount,`"${d}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({dest:a,pageIndex:c,pageNumber:d})})})}navigateTo(i){this.goToDestination(i)}goToPage(i){const a=i-1;(0,tiny_invariant_1$a.default)(this.pdfViewer,"PDF viewer is not initialized."),(0,tiny_invariant_1$a.default)(i>=1&&i<=this.pagesCount,`"${i}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({pageIndex:a,pageNumber:i})}addLinkAttributes(i,a,o){i.href=a,i.rel=this.externalLinkRel||DEFAULT_LINK_REL,i.target=o?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}LinkService$1.default=LinkService;var PasswordResponses$1={};Object.defineProperty(PasswordResponses$1,"__esModule",{value:!0});const PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};PasswordResponses$1.default=PasswordResponses;var utils={};(function(e){var i=commonjsGlobal&&commonjsGlobal.__importDefault||function(ue){return ue&&ue.__esModule?ue:{default:ue}};Object.defineProperty(e,"__esModule",{value:!0}),e.loadFromFile=e.isCancelException=e.makePageCallback=e.cancelRunningTask=e.displayWorkerWarning=e.displayCORSWarning=e.getDevicePixelRatio=e.dataURItoByteString=e.isDataURI=e.isBlob=e.isArrayBuffer=e.isString=e.isProvided=e.isDefined=e.isLocalFileSystem=e.isBrowser=void 0;const a=i(require$$2),o=i(warning_1$8);e.isBrowser=typeof document<"u",e.isLocalFileSystem=e.isBrowser&&window.location.protocol==="file:";function c(ue){return typeof ue<"u"}e.isDefined=c;function d(ue){return c(ue)&&ue!==null}e.isProvided=d;function h(ue){return typeof ue=="string"}e.isString=h;function _(ue){return ue instanceof ArrayBuffer}e.isArrayBuffer=_;function ee(ue){return(0,a.default)(e.isBrowser,"isBlob can only be used in a browser environment"),ue instanceof Blob}e.isBlob=ee;function f(ue){return h(ue)&&/^data:/.test(ue)}e.isDataURI=f;function g(ue){(0,a.default)(f(ue),"Invalid data URI.");const[ae="",$=""]=ue.split(",");return ae.split(";").indexOf("base64")!==-1?atob($):unescape($)}e.dataURItoByteString=g;function he(){return e.isBrowser&&window.devicePixelRatio||1}e.getDevicePixelRatio=he;const ge="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function te(){(0,o.default)(!e.isLocalFileSystem,`Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ${ge}`)}e.displayCORSWarning=te;function re(){(0,o.default)(!e.isLocalFileSystem,`Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ${ge}`)}e.displayWorkerWarning=re;function be(ue){ue&&ue.cancel&&ue.cancel()}e.cancelRunningTask=be;function q(ue,ae){return Object.defineProperty(ue,"width",{get(){return this.view[2]*ae},configurable:!0}),Object.defineProperty(ue,"height",{get(){return this.view[3]*ae},configurable:!0}),Object.defineProperty(ue,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(ue,"originalHeight",{get(){return this.view[3]},configurable:!0}),ue}e.makePageCallback=q;function se(ue){return ue.name==="RenderingCancelledException"}e.isCancelException=se;function me(ue){return new Promise((ae,$)=>{const ie=new FileReader;ie.onload=()=>{if(!ie.result)return $(new Error("Error while reading a file."));ae(ie.result)},ie.onerror=we=>{if(!we.target)return $(new Error("Error while reading a file."));const{error:de}=we.target;if(!de)return $(new Error("Error while reading a file."));switch(de.code){case de.NOT_FOUND_ERR:return $(new Error("Error while reading a file: File not found."));case de.SECURITY_ERR:return $(new Error("Error while reading a file: Security error."));case de.ABORT_ERR:return $(new Error("Error while reading a file: Aborted."));default:return $(new Error("Error while reading a file."))}},ie.readAsArrayBuffer(ue)})}e.loadFromFile=me})(utils);var useResolver$1={};Object.defineProperty(useResolver$1,"__esModule",{value:!0});const react_1$l=reactExports;function reducer(e,i){switch(i.type){case"RESOLVE":return{value:i.value,error:void 0};case"REJECT":return{value:!1,error:i.error};case"RESET":return{value:void 0,error:void 0};default:return e}}function useResolver(){return(0,react_1$l.useReducer)(reducer,{value:void 0,error:void 0})}useResolver$1.default=useResolver;var propTypes={},__importDefault$n=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(propTypes,"__esModule",{value:!0});propTypes.isRotate=propTypes.isRenderMode=propTypes.isRef=propTypes.isPdf=propTypes.isPageNumber=propTypes.isPageIndex=propTypes.isPage=propTypes.isLinkTarget=propTypes.isLinkService=propTypes.isFile=propTypes.isClassName=propTypes.eventProps=void 0;const prop_types_1$3=__importDefault$n(propTypesExports),make_event_props_1$3=cjs$3,pdfjs_js_1$6=__importDefault$n(pdfjs$1),utils_js_1$b=utils,LinkService_js_1$1=__importDefault$n(LinkService$1),{PDFDataRangeTransport:PDFDataRangeTransport$1}=pdfjs_js_1$6.default;propTypes.eventProps=(()=>{const e={};return make_event_props_1$3.allEvents.forEach(i=>{e[i]=prop_types_1$3.default.func}),e})();const isTypedArray=prop_types_1$3.default.oneOfType([prop_types_1$3.default.instanceOf(Int8Array),prop_types_1$3.default.instanceOf(Uint8Array),prop_types_1$3.default.instanceOf(Uint8ClampedArray),prop_types_1$3.default.instanceOf(Int16Array),prop_types_1$3.default.instanceOf(Uint16Array),prop_types_1$3.default.instanceOf(Int32Array),prop_types_1$3.default.instanceOf(Uint32Array),prop_types_1$3.default.instanceOf(Float32Array),prop_types_1$3.default.instanceOf(Float64Array)]),fileTypes=[prop_types_1$3.default.string,prop_types_1$3.default.instanceOf(ArrayBuffer),prop_types_1$3.default.shape({data:prop_types_1$3.default.oneOfType([prop_types_1$3.default.string,prop_types_1$3.default.instanceOf(ArrayBuffer),prop_types_1$3.default.arrayOf(prop_types_1$3.default.number.isRequired),isTypedArray]).isRequired}),prop_types_1$3.default.shape({range:prop_types_1$3.default.instanceOf(PDFDataRangeTransport$1).isRequired}),prop_types_1$3.default.shape({url:prop_types_1$3.default.string.isRequired})];typeof Blob<"u"&&fileTypes.push(prop_types_1$3.default.instanceOf(Blob));propTypes.isClassName=prop_types_1$3.default.oneOfType([prop_types_1$3.default.string,prop_types_1$3.default.arrayOf(prop_types_1$3.default.string)]);propTypes.isFile=prop_types_1$3.default.oneOfType(fileTypes);propTypes.isLinkService=prop_types_1$3.default.instanceOf(LinkService_js_1$1.default);propTypes.isLinkTarget=prop_types_1$3.default.oneOf(["_self","_blank","_parent","_top"]);propTypes.isPage=prop_types_1$3.default.shape({commonObjs:prop_types_1$3.default.shape({}).isRequired,getAnnotations:prop_types_1$3.default.func.isRequired,getTextContent:prop_types_1$3.default.func.isRequired,getViewport:prop_types_1$3.default.func.isRequired,render:prop_types_1$3.default.func.isRequired});const isPageIndex=function e(i,a,o){const{[a]:c,pageNumber:d,pdf:h}=i;if(!(0,utils_js_1$b.isDefined)(h))return null;if((0,utils_js_1$b.isDefined)(c)){if(typeof c!="number")return new Error(`\`${a}\` of type \`${typeof c}\` supplied to \`${o}\`, expected \`number\`.`);if(c<0)return new Error(`Expected \`${a}\` to be greater or equal to 0.`);const{numPages:_}=h;if(c+1>_)return new Error(`Expected \`${a}\` to be less or equal to ${_-1}.`)}else if(!(0,utils_js_1$b.isDefined)(d))return new Error(`\`${a}\` not supplied. Either pageIndex or pageNumber must be supplied to \`${o}\`.`);return null};propTypes.isPageIndex=isPageIndex;const isPageNumber=function e(i,a,o){const{[a]:c,pageIndex:d,pdf:h}=i;if(!(0,utils_js_1$b.isDefined)(h))return null;if((0,utils_js_1$b.isDefined)(c)){if(typeof c!="number")return new Error(`\`${a}\` of type \`${typeof c}\` supplied to \`${o}\`, expected \`number\`.`);if(c<1)return new Error(`Expected \`${a}\` to be greater or equal to 1.`);const{numPages:_}=h;if(c>_)return new Error(`Expected \`${a}\` to be less or equal to ${_}.`)}else if(!(0,utils_js_1$b.isDefined)(d))return new Error(`\`${a}\` not supplied. Either pageIndex or pageNumber must be supplied to \`${o}\`.`);return null};propTypes.isPageNumber=isPageNumber;propTypes.isPdf=prop_types_1$3.default.oneOfType([prop_types_1$3.default.any,prop_types_1$3.default.oneOf([!1])]);propTypes.isRef=prop_types_1$3.default.oneOfType([prop_types_1$3.default.func,prop_types_1$3.default.exact({current:prop_types_1$3.default.any})]);propTypes.isRenderMode=prop_types_1$3.default.oneOf(["canvas","custom","none","svg"]);propTypes.isRotate=prop_types_1$3.default.oneOf([0,90,180,270]);var __createBinding$j=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$j=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$j=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$j(i,e,a);return __setModuleDefault$j(i,e),i},__awaiter$2=commonjsGlobal&&commonjsGlobal.__awaiter||function(e,i,a,o){function c(d){return d instanceof a?d:new a(function(h){h(d)})}return new(a||(a=Promise))(function(d,h){function _(g){try{f(o.next(g))}catch(he){h(he)}}function ee(g){try{f(o.throw(g))}catch(he){h(he)}}function f(g){g.done?d(g.value):c(g.value).then(_,ee)}f((o=o.apply(e,i||[])).next())})},__rest$5=commonjsGlobal&&commonjsGlobal.__rest||function(e,i){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&i.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,o=Object.getOwnPropertySymbols(e);c{switch(i){case PasswordResponses_js_1$1.default.NEED_PASSWORD:{const a=prompt("Enter the password to open this PDF file.");e(a);break}case PasswordResponses_js_1$1.default.INCORRECT_PASSWORD:{const a=prompt("Invalid password. Please try again.");e(a);break}}};function isParameterObject(e){return typeof e=="object"&&e!==null&&("data"in e||"range"in e||"url"in e)}const Document=(0,react_1$k.forwardRef)(function e(i,a){var{children:o,className:c,error:d="Failed to load PDF file.",externalLinkRel:h,externalLinkTarget:_,file:ee,inputRef:f,imageResourcesPath:g,loading:he="Loading PDF…",noData:ge="No PDF file specified.",onItemClick:te,onLoadError:re,onLoadProgress:be,onLoadSuccess:q,onPassword:se=defaultOnPassword,onSourceError:me,onSourceSuccess:ue,options:ae,renderMode:$,rotate:ie}=i,we=__rest$5(i,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]);const[de,m]=(0,useResolver_js_1$6.default)(),{value:_e,error:oe}=de,[Se,Ee]=(0,useResolver_js_1$6.default)(),{value:ye,error:je}=Se,Le=(0,react_1$k.useRef)(new LinkService_js_1.default),xe=(0,react_1$k.useRef)([]),Te=(0,react_1$k.useRef)(),Re=(0,react_1$k.useRef)();(0,react_1$k.useEffect)(()=>{ee&&ee!==Te.current&&isParameterObject(ee)&&((0,warning_1$7.default)(!(0,dequal_1.dequal)(ee,Te.current),`File prop passed to changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.`),Te.current=ee)},[ee]),(0,react_1$k.useEffect)(()=>{ae&&ae!==Re.current&&((0,warning_1$7.default)(!(0,dequal_1.dequal)(ae,Re.current),`Options prop passed to changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.`),Re.current=ae)},[ae]);const Fe=(0,react_1$k.useRef)({scrollPageIntoView:it=>{const{dest:Je,pageNumber:nt,pageIndex:ht=nt-1}=it;if(te){te({dest:Je,pageIndex:ht,pageNumber:nt});return}const ot=xe.current[ht];if(ot){ot.scrollIntoView();return}(0,warning_1$7.default)(!1,`An internal link leading to page ${nt} was clicked, but neither was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to and handle navigating by yourself or ensure that all pages are rendered within .`)}});(0,react_1$k.useImperativeHandle)(a,()=>({linkService:Le,pages:xe,viewer:Fe}),[]);function Ke(){ue&&ue()}function tt(){oe&&((0,warning_1$7.default)(!1,oe.toString()),me&&me(oe))}function Pe(){m({type:"RESET"})}(0,react_1$k.useEffect)(Pe,[ee,m]);const ne=(0,react_1$k.useCallback)(()=>__awaiter$2(this,void 0,void 0,function*(){if(!ee)return null;if(typeof ee=="string")return(0,utils_js_1$a.isDataURI)(ee)?{data:(0,utils_js_1$a.dataURItoByteString)(ee)}:((0,utils_js_1$a.displayCORSWarning)(),{url:ee});if(ee instanceof PDFDataRangeTransport)return{range:ee};if((0,utils_js_1$a.isArrayBuffer)(ee))return{data:ee};if(utils_js_1$a.isBrowser&&(0,utils_js_1$a.isBlob)(ee))return{data:yield(0,utils_js_1$a.loadFromFile)(ee)};if((0,tiny_invariant_1$9.default)(typeof ee=="object","Invalid parameter in file, need either Uint8Array, string or a parameter object"),(0,tiny_invariant_1$9.default)(isParameterObject(ee),"Invalid parameter object: need either .data, .range or .url"),"url"in ee&&typeof ee.url=="string"){if((0,utils_js_1$a.isDataURI)(ee.url)){const{url:it}=ee,Je=__rest$5(ee,["url"]),nt=(0,utils_js_1$a.dataURItoByteString)(it);return Object.assign({data:nt},Je)}(0,utils_js_1$a.displayCORSWarning)()}return ee}),[ee]);(0,react_1$k.useEffect)(()=>{const it=(0,make_cancellable_promise_1$6.default)(ne());return it.promise.then(Je=>{m({type:"RESOLVE",value:Je})}).catch(Je=>{m({type:"REJECT",error:Je})}),()=>{(0,utils_js_1$a.cancelRunningTask)(it)}},[ne,m]),(0,react_1$k.useEffect)(()=>{if(!(typeof _e>"u")){if(_e===!1){tt();return}Ke()}},[_e]);function fe(){ye&&(q&&q(ye),xe.current=new Array(ye.numPages),Le.current.setDocument(ye))}function b(){je&&((0,warning_1$7.default)(!1,je.toString()),re&&re(je))}function le(){Ee({type:"RESET"})}(0,react_1$k.useEffect)(le,[Ee,_e]);function ve(){if(!_e)return;const it=ae?Object.assign(Object.assign({},_e),ae):_e,Je=pdfjs_js_1$5.default.getDocument(it);be&&(Je.onProgress=be),se&&(Je.onPassword=se);const nt=Je;return nt.promise.then(ht=>{Ee({type:"RESOLVE",value:ht})}).catch(ht=>{nt.destroyed||Ee({type:"REJECT",error:ht})}),()=>{nt.destroy()}}(0,react_1$k.useEffect)(ve,[ae,Ee,_e]),(0,react_1$k.useEffect)(()=>{if(!(typeof ye>"u")){if(ye===!1){b();return}fe()}},[ye]);function Ae(){Le.current.setViewer(Fe.current),Le.current.setExternalLinkRel(h),Le.current.setExternalLinkTarget(_)}(0,react_1$k.useEffect)(Ae,[h,_]);function Ce(it,Je){xe.current[it]=Je}function Oe(it){delete xe.current[it]}const Ge=(0,react_1$k.useMemo)(()=>({imageResourcesPath:g,linkService:Le.current,onItemClick:te,pdf:ye,registerPage:Ce,renderMode:$,rotate:ie,unregisterPage:Oe}),[g,te,ye,$,ie]),qe=(0,react_1$k.useMemo)(()=>(0,make_event_props_1$2.default)(we,()=>ye),[we,ye]);function Ue(){return react_1$k.default.createElement(DocumentContext_js_1$1.default.Provider,{value:Ge},o)}function Ze(){return ee?ye==null?react_1$k.default.createElement(Message_js_1$1.default,{type:"loading"},typeof he=="function"?he():he):ye===!1?react_1$k.default.createElement(Message_js_1$1.default,{type:"error"},typeof d=="function"?d():d):Ue():react_1$k.default.createElement(Message_js_1$1.default,{type:"no-data"},typeof ge=="function"?ge():ge)}return react_1$k.default.createElement("div",Object.assign({className:(0,clsx_1$5.default)("react-pdf__Document",c),ref:f,style:{"--scale-factor":"1"}},qe),Ze())}),isFunctionOrNode$1=prop_types_1$2.default.oneOfType([prop_types_1$2.default.func,prop_types_1$2.default.node]);Document.propTypes=Object.assign(Object.assign({},propTypes_js_1$2.eventProps),{children:prop_types_1$2.default.node,className:propTypes_js_1$2.isClassName,error:isFunctionOrNode$1,externalLinkRel:prop_types_1$2.default.string,externalLinkTarget:prop_types_1$2.default.oneOf(["_self","_blank","_parent","_top"]),file:propTypes_js_1$2.isFile,imageResourcesPath:prop_types_1$2.default.string,inputRef:propTypes_js_1$2.isRef,loading:isFunctionOrNode$1,noData:isFunctionOrNode$1,onItemClick:prop_types_1$2.default.func,onLoadError:prop_types_1$2.default.func,onLoadProgress:prop_types_1$2.default.func,onLoadSuccess:prop_types_1$2.default.func,onPassword:prop_types_1$2.default.func,onSourceError:prop_types_1$2.default.func,onSourceSuccess:prop_types_1$2.default.func,options:prop_types_1$2.default.shape({canvasFactory:prop_types_1$2.default.any,canvasMaxAreaInBytes:prop_types_1$2.default.number,cMapPacked:prop_types_1$2.default.bool,CMapReaderFactory:prop_types_1$2.default.any,cMapUrl:prop_types_1$2.default.string,disableAutoFetch:prop_types_1$2.default.bool,disableFontFace:prop_types_1$2.default.bool,disableRange:prop_types_1$2.default.bool,disableStream:prop_types_1$2.default.bool,docBaseUrl:prop_types_1$2.default.string,enableXfa:prop_types_1$2.default.bool,filterFactory:prop_types_1$2.default.any,fontExtraProperties:prop_types_1$2.default.bool,httpHeaders:prop_types_1$2.default.object,isEvalSupported:prop_types_1$2.default.bool,isOffscreenCanvasSupported:prop_types_1$2.default.bool,length:prop_types_1$2.default.number,maxImageSize:prop_types_1$2.default.number,ownerDocument:prop_types_1$2.default.any,password:prop_types_1$2.default.string,pdfBug:prop_types_1$2.default.bool,rangeChunkSize:prop_types_1$2.default.number,StandardFontDataFactory:prop_types_1$2.default.any,standardFontDataUrl:prop_types_1$2.default.string,stopAtErrors:prop_types_1$2.default.bool,useSystemFonts:prop_types_1$2.default.bool,useWorkerFetch:prop_types_1$2.default.bool,verbosity:prop_types_1$2.default.number,withCredentials:prop_types_1$2.default.bool,worker:prop_types_1$2.default.any}),rotate:prop_types_1$2.default.number});Document$1.default=Document;var Outline$1={},OutlineContext={};Object.defineProperty(OutlineContext,"__esModule",{value:!0});const react_1$j=reactExports;OutlineContext.default=(0,react_1$j.createContext)(null);var OutlineItem$1={},Ref$1={};Object.defineProperty(Ref$1,"__esModule",{value:!0});class Ref{constructor({num:i,gen:a}){this.num=i,this.gen=a}toString(){let i=`${this.num}R`;return this.gen!==0&&(i+=this.gen),i}}Ref$1.default=Ref;var useCachedValue$1={};Object.defineProperty(useCachedValue$1,"__esModule",{value:!0});const react_1$i=reactExports,utils_js_1$9=utils;function useCachedValue(e){const i=(0,react_1$i.useRef)(),a=i.current;return(0,utils_js_1$9.isDefined)(a)?()=>a:()=>{const o=e();return i.current=o,o}}useCachedValue$1.default=useCachedValue;var useDocumentContext$1={},__importDefault$l=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(useDocumentContext$1,"__esModule",{value:!0});const react_1$h=reactExports,DocumentContext_js_1=__importDefault$l(DocumentContext);function useDocumentContext(){return(0,react_1$h.useContext)(DocumentContext_js_1.default)}useDocumentContext$1.default=useDocumentContext;var useOutlineContext$1={},__importDefault$k=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(useOutlineContext$1,"__esModule",{value:!0});const react_1$g=reactExports,OutlineContext_js_1$1=__importDefault$k(OutlineContext);function useOutlineContext(){return(0,react_1$g.useContext)(OutlineContext_js_1$1.default)}useOutlineContext$1.default=useOutlineContext;var __awaiter$1=commonjsGlobal&&commonjsGlobal.__awaiter||function(e,i,a,o){function c(d){return d instanceof a?d:new a(function(h){h(d)})}return new(a||(a=Promise))(function(d,h){function _(g){try{f(o.next(g))}catch(he){h(he)}}function ee(g){try{f(o.throw(g))}catch(he){h(he)}}function f(g){g.done?d(g.value):c(g.value).then(_,ee)}f((o=o.apply(e,i||[])).next())})},__rest$4=commonjsGlobal&&commonjsGlobal.__rest||function(e,i){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&i.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,o=Object.getOwnPropertySymbols(e);c in a or pass explicit `pdf` prop.");const f=(0,useCachedValue_js_1.default)(()=>typeof c.dest=="string"?_.getDestination(c.dest):c.dest),g=(0,useCachedValue_js_1.default)(()=>__awaiter$1(this,void 0,void 0,function*(){const re=yield f();if(!re)throw new Error("Destination not found.");const[be]=re;return _.getPageIndex(new Ref_js_1.default(be))})),he=(0,useCachedValue_js_1.default)(()=>__awaiter$1(this,void 0,void 0,function*(){return(yield g())+1}));function ge(re){re.preventDefault(),(0,tiny_invariant_1$8.default)(h||d,"Either onItemClick callback or linkService must be defined in order to navigate to an outline item."),h?Promise.all([f(),g(),he()]).then(([be,q,se])=>{h({dest:be,pageIndex:q,pageNumber:se})}):d&&d.goToDestination(c.dest)}function te(){if(!c.items||!c.items.length)return null;const{items:re}=c;return react_1$f.default.createElement("ul",null,re.map((be,q)=>react_1$f.default.createElement(OutlineItem,Object.assign({key:typeof be.dest=="string"?be.dest:q,item:be,pdf:_},ee))))}return react_1$f.default.createElement("li",null,react_1$f.default.createElement("a",{href:"#",onClick:ge},c.title),te())}OutlineItem$1.default=OutlineItem;var __createBinding$i=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$i=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$i=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$i(i,e,a);return __setModuleDefault$i(i,e),i},__rest$3=commonjsGlobal&&commonjsGlobal.__rest||function(e,i){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&i.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,o=Object.getOwnPropertySymbols(e);c in a or pass explicit `pdf` prop.");const[he,ge]=(0,useResolver_js_1$5.default)(),{value:te,error:re}=he;function be(){typeof te>"u"||te===!1||ee&&ee(te)}function q(){re&&((0,warning_1$6.default)(!1,re.toString()),_&&_(re))}function se(){ge({type:"RESET"})}(0,react_1$e.useEffect)(se,[ge,f]);function me(){if(!f)return;const ie=(0,make_cancellable_promise_1$5.default)(f.getOutline()),we=ie;return ie.promise.then(de=>{ge({type:"RESOLVE",value:de})}).catch(de=>{ge({type:"REJECT",error:de})}),()=>(0,utils_js_1$8.cancelRunningTask)(we)}(0,react_1$e.useEffect)(me,[ge,f]),(0,react_1$e.useEffect)(()=>{if(te!==void 0){if(te===!1){q();return}be()}},[te]);const ue=(0,react_1$e.useMemo)(()=>({onItemClick:h}),[h]),ae=(0,react_1$e.useMemo)(()=>(0,make_event_props_1$1.default)(g,()=>te),[g,te]);if(!te)return null;function $(){return te?react_1$e.default.createElement("ul",null,te.map((ie,we)=>react_1$e.default.createElement(OutlineItem_js_1.default,{key:typeof ie.dest=="string"?ie.dest:we,item:ie,pdf:f}))):null}return react_1$e.default.createElement("div",Object.assign({className:(0,clsx_1$4.default)("react-pdf__Outline",c),ref:d},ae),react_1$e.default.createElement(OutlineContext_js_1.default.Provider,{value:ue},$()))};Outline.propTypes=Object.assign(Object.assign({},propTypes_js_1$1.eventProps),{className:propTypes_js_1$1.isClassName,inputRef:propTypes_js_1$1.isRef,onItemClick:prop_types_1$1.default.func,onLoadError:prop_types_1$1.default.func,onLoadSuccess:prop_types_1$1.default.func,pdf:propTypes_js_1$1.isPdf});Outline$1.default=Outline;var Page$1={},cjs$1={};Object.defineProperty(cjs$1,"__esModule",{value:!0});function mergeRefs(){for(var e=[],i=0;i(0,structTreeUtils_js_1.getAttributes)(i),[i]),o=(0,react_1$c.useMemo)(()=>!(0,structTreeUtils_js_1.isStructTreeNode)(i)||(0,structTreeUtils_js_1.isStructTreeNodeWithOnlyContentChild)(i)?null:i.children.map((c,d)=>react_1$c.default.createElement(StructTreeItem,{key:d,node:c})),[i]);return react_1$c.default.createElement("span",Object.assign({className:e},a),o)}StructTreeItem$1.default=StructTreeItem;var usePageContext$1={},__importDefault$h=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(usePageContext$1,"__esModule",{value:!0});const react_1$b=reactExports,PageContext_js_1$1=__importDefault$h(PageContext);function usePageContext(){return(0,react_1$b.useContext)(PageContext_js_1$1.default)}usePageContext$1.default=usePageContext;var __createBinding$g=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$g=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$g=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$g(i,e,a);return __setModuleDefault$g(i,e),i},__importDefault$g=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(StructTree$1,"__esModule",{value:!0});const react_1$a=__importStar$g(reactExports),make_cancellable_promise_1$4=__importDefault$g(cjs$2),tiny_invariant_1$6=__importDefault$g(require$$2),warning_1$5=__importDefault$g(warning_1$8),StructTreeItem_js_1=__importDefault$g(StructTreeItem$1),usePageContext_js_1$5=__importDefault$g(usePageContext$1),useResolver_js_1$4=__importDefault$g(useResolver$1),utils_js_1$7=utils;function StructTree(){const e=(0,usePageContext_js_1$5.default)();(0,tiny_invariant_1$6.default)(e,"Unable to find Page context.");const{onGetStructTreeError:i,onGetStructTreeSuccess:a}=e,[o,c]=(0,useResolver_js_1$4.default)(),{value:d,error:h}=o,{customTextRenderer:_,page:ee}=e;function f(){d&&a&&a(d)}function g(){h&&((0,warning_1$5.default)(!1,h.toString()),i&&i(h))}function he(){c({type:"RESET"})}(0,react_1$a.useEffect)(he,[c,ee]);function ge(){if(_||!ee)return;const te=(0,make_cancellable_promise_1$4.default)(ee.getStructTree()),re=te;return te.promise.then(be=>{c({type:"RESOLVE",value:be})}).catch(be=>{c({type:"REJECT",error:be})}),()=>(0,utils_js_1$7.cancelRunningTask)(re)}return(0,react_1$a.useEffect)(ge,[_,ee,c]),(0,react_1$a.useEffect)(()=>{if(d!==void 0){if(d===!1){g();return}f()}},[d]),d?react_1$a.default.createElement(StructTreeItem_js_1.default,{className:"react-pdf__Page__structTree structTree",node:d}):null}StructTree$1.default=StructTree;var __createBinding$f=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$f=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$f=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$f(i,e,a);return __setModuleDefault$f(i,e),i},__importDefault$f=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PageCanvas$1,"__esModule",{value:!0});const react_1$9=__importStar$f(reactExports),merge_refs_1$1=__importDefault$f(cjs$1),tiny_invariant_1$5=__importDefault$f(require$$2),warning_1$4=__importDefault$f(warning_1$8),pdfjs_js_1$4=__importDefault$f(pdfjs$1),StructTree_js_1=__importDefault$f(StructTree$1),usePageContext_js_1$4=__importDefault$f(usePageContext$1),utils_js_1$6=utils,ANNOTATION_MODE=pdfjs_js_1$4.default.AnnotationMode;function PageCanvas(e){const i=(0,usePageContext_js_1$4.default)();(0,tiny_invariant_1$5.default)(i,"Unable to find Page context.");const a=Object.assign(Object.assign({},i),e),{_className:o,canvasBackground:c,devicePixelRatio:d=(0,utils_js_1$6.getDevicePixelRatio)(),onRenderError:h,onRenderSuccess:_,page:ee,renderForms:f,renderTextLayer:g,rotate:he,scale:ge}=a,{canvasRef:te}=e;(0,tiny_invariant_1$5.default)(ee,"Attempted to render page canvas, but no page was specified.");const re=(0,react_1$9.useRef)(null);function be(){ee&&_&&_((0,utils_js_1$6.makePageCallback)(ee,ge))}function q($){(0,utils_js_1$6.isCancelException)($)||((0,warning_1$4.default)(!1,$.toString()),h&&h($))}const se=(0,react_1$9.useMemo)(()=>ee.getViewport({scale:ge*d,rotation:he}),[d,ee,he,ge]),me=(0,react_1$9.useMemo)(()=>ee.getViewport({scale:ge,rotation:he}),[ee,he,ge]);function ue(){if(!ee)return;ee.cleanup();const{current:$}=re;if(!$)return;$.width=se.width,$.height=se.height,$.style.width=`${Math.floor(me.width)}px`,$.style.height=`${Math.floor(me.height)}px`,$.style.visibility="hidden";const ie={annotationMode:f?ANNOTATION_MODE.ENABLE_FORMS:ANNOTATION_MODE.ENABLE,canvasContext:$.getContext("2d",{alpha:!1}),viewport:se};c&&(ie.background=c);const we=ee.render(ie),de=we;return we.promise.then(()=>{$.style.visibility="",be()}).catch(q),()=>(0,utils_js_1$6.cancelRunningTask)(de)}(0,react_1$9.useEffect)(ue,[c,re,d,ee,f,se,me]);const ae=(0,react_1$9.useCallback)(()=>{const{current:$}=re;$&&($.width=0,$.height=0)},[re]);return(0,react_1$9.useEffect)(()=>ae,[ae]),react_1$9.default.createElement("canvas",{className:`${o}__canvas`,dir:"ltr",ref:(0,merge_refs_1$1.default)(te,re),style:{display:"block",userSelect:"none"}},g?react_1$9.default.createElement(StructTree_js_1.default,null):null)}PageCanvas$1.default=PageCanvas;var PageSVG$1={},__createBinding$e=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$e=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$e=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$e(i,e,a);return __setModuleDefault$e(i,e),i},__importDefault$e=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PageSVG$1,"__esModule",{value:!0});const react_1$8=__importStar$e(reactExports),make_cancellable_promise_1$3=__importDefault$e(cjs$2),tiny_invariant_1$4=__importDefault$e(require$$2),warning_1$3=__importDefault$e(warning_1$8),pdfjs_js_1$3=__importDefault$e(pdfjs$1),usePageContext_js_1$3=__importDefault$e(usePageContext$1),useResolver_js_1$3=__importDefault$e(useResolver$1),utils_js_1$5=utils;function PageSVG(){const e=(0,usePageContext_js_1$3.default)();(0,tiny_invariant_1$4.default)(e,"Unable to find Page context.");const{_className:i,onRenderSuccess:a,onRenderError:o,page:c,rotate:d,scale:h}=e;(0,tiny_invariant_1$4.default)(c,"Attempted to render page SVG, but no page was specified.");const[_,ee]=(0,useResolver_js_1$3.default)(),{value:f,error:g}=_;function he(){c&&a&&a((0,utils_js_1$5.makePageCallback)(c,h))}function ge(){g&&((0,utils_js_1$5.isCancelException)(g)||((0,warning_1$3.default)(!1,g.toString()),o&&o(g)))}const te=(0,react_1$8.useMemo)(()=>c.getViewport({scale:h,rotation:d}),[c,d,h]);function re(){ee({type:"RESET"})}(0,react_1$8.useEffect)(re,[c,ee,te]);function be(){if(!c)return;const ue=(0,make_cancellable_promise_1$3.default)(c.getOperatorList());return ue.promise.then(ae=>{new pdfjs_js_1$3.default.SVGGraphics(c.commonObjs,c.objs).getSVG(ae,te).then(ie=>{if(!(ie instanceof SVGElement))throw new Error("getSVG returned unexpected result.");ee({type:"RESOLVE",value:ie})}).catch(ie=>{ee({type:"REJECT",error:ie})})}).catch(ae=>{ee({type:"REJECT",error:ae})}),()=>(0,utils_js_1$5.cancelRunningTask)(ue)}(0,react_1$8.useEffect)(be,[c,ee,te]),(0,react_1$8.useEffect)(()=>{if(f!==void 0){if(f===!1){ge();return}he()}},[f]);function q(ue){if(!ue||!f)return;ue.firstElementChild||ue.appendChild(f);const{width:ae,height:$}=te;f.setAttribute("width",`${ae}`),f.setAttribute("height",`${$}`)}const{width:se,height:me}=te;return react_1$8.default.createElement("div",{className:`${i}__svg`,ref:ue=>q(ue),style:{display:"block",backgroundColor:"white",overflow:"hidden",width:se,height:me,userSelect:"none"}})}PageSVG$1.default=PageSVG;var TextLayer$1={},__createBinding$d=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$d=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$d=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$d(i,e,a);return __setModuleDefault$d(i,e),i},__importDefault$d=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(TextLayer$1,"__esModule",{value:!0});const react_1$7=__importStar$d(reactExports),make_cancellable_promise_1$2=__importDefault$d(cjs$2),clsx_1$3=__importDefault$d(require$$1),tiny_invariant_1$3=__importDefault$d(require$$2),warning_1$2=__importDefault$d(warning_1$8),pdfjs_js_1$2=__importDefault$d(pdfjs$1),usePageContext_js_1$2=__importDefault$d(usePageContext$1),useResolver_js_1$2=__importDefault$d(useResolver$1),utils_js_1$4=utils;function isTextItem(e){return"str"in e}function TextLayer(){const e=(0,usePageContext_js_1$2.default)();(0,tiny_invariant_1$3.default)(e,"Unable to find Page context.");const{customTextRenderer:i,onGetTextError:a,onGetTextSuccess:o,onRenderTextLayerError:c,onRenderTextLayerSuccess:d,page:h,pageIndex:_,pageNumber:ee,rotate:f,scale:g}=e;(0,tiny_invariant_1$3.default)(h,"Attempted to load page text content, but no page was specified.");const[he,ge]=(0,useResolver_js_1$2.default)(),{value:te,error:re}=he,be=(0,react_1$7.useRef)(null),q=(0,react_1$7.useRef)();(0,warning_1$2.default)(parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10)===1,"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer");function se(){te&&o&&o(te)}function me(){re&&((0,warning_1$2.default)(!1,re.toString()),a&&a(re))}function ue(){ge({type:"RESET"})}(0,react_1$7.useEffect)(ue,[h,ge]);function ae(){if(!h)return;const oe=(0,make_cancellable_promise_1$2.default)(h.getTextContent()),Se=oe;return oe.promise.then(Ee=>{ge({type:"RESOLVE",value:Ee})}).catch(Ee=>{ge({type:"REJECT",error:Ee})}),()=>(0,utils_js_1$4.cancelRunningTask)(Se)}(0,react_1$7.useEffect)(ae,[h,ge]),(0,react_1$7.useEffect)(()=>{if(te!==void 0){if(te===!1){me();return}se()}},[te]);const $=(0,react_1$7.useCallback)(()=>{d&&d()},[d]),ie=(0,react_1$7.useCallback)(oe=>{(0,warning_1$2.default)(!1,oe.toString()),c&&c(oe)},[c]);function we(){const oe=q.current;oe&&oe.classList.add("active")}function de(){const oe=q.current;oe&&oe.classList.remove("active")}const m=(0,react_1$7.useMemo)(()=>h.getViewport({scale:g,rotation:f}),[h,f,g]);function _e(){if(!h||!te)return;const{current:oe}=be;if(!oe)return;oe.innerHTML="";const Se=h.streamTextContent({includeMarkedContent:!0}),Ee={container:oe,textContentSource:Se,viewport:m},ye=pdfjs_js_1$2.default.renderTextLayer(Ee),je=ye;return ye.promise.then(()=>{const Le=document.createElement("div");Le.className="endOfContent",oe.append(Le),q.current=Le;const xe=oe.querySelectorAll('[role="presentation"]');if(i){let Te=0;te.items.forEach((Re,Fe)=>{if(!isTextItem(Re))return;const Ke=xe[Te];if(!Ke)return;const tt=i(Object.assign({pageIndex:_,pageNumber:ee,itemIndex:Fe},Re));Ke.innerHTML=tt,Te+=Re.str&&Re.hasEOL?2:1})}$()}).catch(ie),()=>(0,utils_js_1$4.cancelRunningTask)(je)}return(0,react_1$7.useLayoutEffect)(_e,[i,ie,$,h,_,ee,te,m]),react_1$7.default.createElement("div",{className:(0,clsx_1$3.default)("react-pdf__Page__textContent","textLayer"),onMouseUp:de,onMouseDown:we,ref:be})}TextLayer$1.default=TextLayer;var AnnotationLayer$1={},__createBinding$c=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$c=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$c=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$c(i,e,a);return __setModuleDefault$c(i,e),i},__importDefault$c=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(AnnotationLayer$1,"__esModule",{value:!0});const react_1$6=__importStar$c(reactExports),make_cancellable_promise_1$1=__importDefault$c(cjs$2),clsx_1$2=__importDefault$c(require$$1),tiny_invariant_1$2=__importDefault$c(require$$2),warning_1$1=__importDefault$c(warning_1$8),pdfjs_js_1$1=__importDefault$c(pdfjs$1),useDocumentContext_js_1$3=__importDefault$c(useDocumentContext$1),usePageContext_js_1$1=__importDefault$c(usePageContext$1),useResolver_js_1$1=__importDefault$c(useResolver$1),utils_js_1$3=utils;function AnnotationLayer(){const e=(0,useDocumentContext_js_1$3.default)(),i=(0,usePageContext_js_1$1.default)();(0,tiny_invariant_1$2.default)(i,"Unable to find Page context.");const a=Object.assign(Object.assign({},e),i),{imageResourcesPath:o,linkService:c,onGetAnnotationsError:d,onGetAnnotationsSuccess:h,onRenderAnnotationLayerError:_,onRenderAnnotationLayerSuccess:ee,page:f,pdf:g,renderForms:he,rotate:ge,scale:te=1}=a;(0,tiny_invariant_1$2.default)(g,"Attempted to load page annotations, but no document was specified. Wrap in a or pass explicit `pdf` prop."),(0,tiny_invariant_1$2.default)(f,"Attempted to load page annotations, but no page was specified."),(0,tiny_invariant_1$2.default)(c,"Attempted to load page annotations, but no linkService was specified.");const[re,be]=(0,useResolver_js_1$1.default)(),{value:q,error:se}=re,me=(0,react_1$6.useRef)(null);(0,warning_1$1.default)(parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10)===1,"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations");function ue(){q&&h&&h(q)}function ae(){se&&((0,warning_1$1.default)(!1,se.toString()),d&&d(se))}function $(){be({type:"RESET"})}(0,react_1$6.useEffect)($,[be,f]);function ie(){if(!f)return;const oe=(0,make_cancellable_promise_1$1.default)(f.getAnnotations()),Se=oe;return oe.promise.then(Ee=>{be({type:"RESOLVE",value:Ee})}).catch(Ee=>{be({type:"REJECT",error:Ee})}),()=>{(0,utils_js_1$3.cancelRunningTask)(Se)}}(0,react_1$6.useEffect)(ie,[be,f,he]),(0,react_1$6.useEffect)(()=>{if(q!==void 0){if(q===!1){ae();return}ue()}},[q]);function we(){ee&&ee()}function de(oe){(0,warning_1$1.default)(!1,`${oe}`),_&&_(oe)}const m=(0,react_1$6.useMemo)(()=>f.getViewport({scale:te,rotation:ge}),[f,ge,te]);function _e(){if(!g||!f||!c||!q)return;const{current:oe}=me;if(!oe)return;const Se=m.clone({dontFlip:!0}),Ee={accessibilityManager:null,annotationCanvasMap:null,div:oe,l10n:null,page:f,viewport:Se},ye={annotations:q,annotationStorage:g.annotationStorage,div:oe,downloadManager:null,imageResourcesPath:o,linkService:c,page:f,renderForms:he,viewport:Se};oe.innerHTML="";try{new pdfjs_js_1$1.default.AnnotationLayer(Ee).render(ye),we()}catch(je){de(je)}return()=>{}}return(0,react_1$6.useEffect)(_e,[q,o,c,f,he,m]),react_1$6.default.createElement("div",{className:(0,clsx_1$2.default)("react-pdf__Page__annotations","annotationLayer"),ref:me})}AnnotationLayer$1.default=AnnotationLayer;var __createBinding$b=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$b=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$b=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$b(i,e,a);return __setModuleDefault$b(i,e),i},__rest$2=commonjsGlobal&&commonjsGlobal.__rest||function(e,i){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&i.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,o=Object.getOwnPropertySymbols(e);c in a or pass explicit `pdf` prop.");const Ue=(0,utils_js_1$2.isProvided)(xe)?xe-1:Le??null,Ze=xe??((0,utils_js_1$2.isProvided)(Le)?Le+1:null),it=ne??(Oe?Oe.rotate:null),Je=(0,react_1$5.useMemo)(()=>{if(!Oe)return null;let Ct=1;const $t=fe??defaultScale;if(le||re){const Rt=Oe.getViewport({scale:1,rotation:it});le?Ct=le/Rt.width:re&&(Ct=re/Rt.height)}return $t*Ct},[re,Oe,it,fe,le]);function nt(){return()=>{(0,utils_js_1$2.isProvided)(Ue)&&d&&b&&b(Ue)}}(0,react_1$5.useEffect)(nt,[d,Te,Ue,b]);function ht(){if(m){if(!Oe||!Je)return;m((0,utils_js_1$2.makePageCallback)(Oe,Je))}if(d&&Re){if(!(0,utils_js_1$2.isProvided)(Ue)||!qe.current)return;Re(Ue,qe.current)}}function ot(){Ge&&((0,warning_1.default)(!1,Ge.toString()),de&&de(Ge))}function mt(){Ce({type:"RESET"})}(0,react_1$5.useEffect)(mt,[Ce,Te,Ue]);function st(){if(!Te||!Ze)return;const Ct=(0,make_cancellable_promise_1.default)(Te.getPage(Ze)),$t=Ct;return Ct.promise.then(Rt=>{Ce({type:"RESOLVE",value:Rt})}).catch(Rt=>{Ce({type:"REJECT",error:Rt})}),()=>(0,utils_js_1$2.cancelRunningTask)($t)}(0,react_1$5.useEffect)(st,[Ce,Te,Ue,Ze,Re]),(0,react_1$5.useEffect)(()=>{if(Oe!==void 0){if(Oe===!1){ot();return}ht()}},[Oe,Je]);const Ve=(0,react_1$5.useMemo)(()=>Oe&&(0,utils_js_1$2.isProvided)(Ue)&&Ze&&(0,utils_js_1$2.isProvided)(it)&&(0,utils_js_1$2.isProvided)(Je)?{_className:c,canvasBackground:h,customTextRenderer:he,devicePixelRatio:ge,onGetAnnotationsError:me,onGetAnnotationsSuccess:ue,onGetStructTreeError:ae,onGetStructTreeSuccess:$,onGetTextError:ie,onGetTextSuccess:we,onRenderAnnotationLayerError:_e,onRenderAnnotationLayerSuccess:oe,onRenderError:Se,onRenderSuccess:Ee,onRenderTextLayerError:ye,onRenderTextLayerSuccess:je,page:Oe,pageIndex:Ue,pageNumber:Ze,renderForms:Ke,renderTextLayer:Pe,rotate:it,scale:Je}:null,[c,h,he,ge,me,ue,ae,$,ie,we,_e,oe,Se,Ee,ye,je,Oe,Ue,Ze,Ke,Pe,it,Je]),We=(0,react_1$5.useMemo)(()=>(0,make_event_props_1.default)(ve,()=>Oe&&(Je?(0,utils_js_1$2.makePageCallback)(Oe,Je):void 0)),[ve,Oe,Je]),He=`${Ue}@${Je}/${it}`,at=`${Ue}/${it}`;function ft(){switch(tt){case"custom":return(0,tiny_invariant_1$1.default)(g,'renderMode was set to "custom", but no customRenderer was passed.'),react_1$5.default.createElement(g,{key:`${He}_custom`});case"none":return null;case"svg":return react_1$5.default.createElement(PageSVG_js_1.default,{key:`${at}_svg`});case"canvas":default:return react_1$5.default.createElement(PageCanvas_js_1.default,{key:`${He}_canvas`,canvasRef:_})}}function Pt(){return Pe?react_1$5.default.createElement(TextLayer_js_1.default,{key:`${He}_text`}):null}function Tt(){return Fe?react_1$5.default.createElement(AnnotationLayer_js_1.default,{key:`${He}_annotations`}):null}function Et(){return react_1$5.default.createElement(PageContext_js_1.default.Provider,{value:Ve},ft(),Pt(),Tt(),ee)}function jt(){return Ze?Te===null||Oe===void 0||Oe===null?react_1$5.default.createElement(Message_js_1.default,{type:"loading"},typeof q=="function"?q():q):Te===!1||Oe===!1?react_1$5.default.createElement(Message_js_1.default,{type:"error"},typeof te=="function"?te():te):Et():react_1$5.default.createElement(Message_js_1.default,{type:"no-data"},typeof se=="function"?se():se)}return react_1$5.default.createElement("div",Object.assign({className:(0,clsx_1$1.default)(c,f),"data-page-number":Ze,ref:(0,merge_refs_1.default)(be,qe),style:{"--scale-factor":`${Je}`,backgroundColor:h||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},We),jt())},isFunctionOrNode=prop_types_1.default.oneOfType([prop_types_1.default.func,prop_types_1.default.node]);Page.propTypes=Object.assign(Object.assign({},propTypes_js_1.eventProps),{canvasBackground:prop_types_1.default.string,canvasRef:propTypes_js_1.isRef,children:prop_types_1.default.node,className:propTypes_js_1.isClassName,customRenderer:prop_types_1.default.func,customTextRenderer:prop_types_1.default.func,devicePixelRatio:prop_types_1.default.number,error:isFunctionOrNode,height:prop_types_1.default.number,imageResourcesPath:prop_types_1.default.string,inputRef:propTypes_js_1.isRef,loading:isFunctionOrNode,noData:isFunctionOrNode,onGetTextError:prop_types_1.default.func,onGetTextSuccess:prop_types_1.default.func,onLoadError:prop_types_1.default.func,onLoadSuccess:prop_types_1.default.func,onRenderError:prop_types_1.default.func,onRenderSuccess:prop_types_1.default.func,onRenderTextLayerError:prop_types_1.default.func,onRenderTextLayerSuccess:prop_types_1.default.func,pageIndex:propTypes_js_1.isPageIndex,pageNumber:propTypes_js_1.isPageNumber,pdf:propTypes_js_1.isPdf,renderAnnotationLayer:prop_types_1.default.bool,renderForms:prop_types_1.default.bool,renderMode:propTypes_js_1.isRenderMode,renderTextLayer:prop_types_1.default.bool,rotate:propTypes_js_1.isRotate,scale:prop_types_1.default.number,width:prop_types_1.default.number});Page$1.default=Page;var Thumbnail$1={},__rest$1=commonjsGlobal&&commonjsGlobal.__rest||function(e,i){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&i.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,o=Object.getOwnPropertySymbols(e);c in a or pass explicit `pdf` prop.");const g=(0,utils_js_1$1.isProvided)(ee)?ee-1:_??null,he=ee??((0,utils_js_1$1.isProvided)(_)?_+1:null);function ge(re){re.preventDefault(),!(!(0,utils_js_1$1.isProvided)(g)||!he)&&((0,tiny_invariant_1.default)(h||d,"Either onItemClick callback or linkService must be defined in order to navigate to an outline item."),h?h({pageIndex:g,pageNumber:he}):d&&d.goToPage(he))}const te=__rest$1(i,["className","onItemClick"]);return react_1$4.default.createElement("a",{className:(0,clsx_1.default)("react-pdf__Thumbnail",c),href:he?"#":void 0,onClick:ge},react_1$4.default.createElement(Page_js_1$1.default,Object.assign({},te,{_className:"react-pdf__Thumbnail__page",_enableRegisterUnregisterPage:!1,renderAnnotationLayer:!1,renderTextLayer:!1})))};Thumbnail$1.default=Thumbnail;var __importDefault$9=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cjs$4,"__esModule",{value:!0});cjs$4.PasswordResponses=cjs$4.usePageContext=cjs$4.useOutlineContext=cjs$4.useDocumentContext=cjs$4.Thumbnail=cjs$4.Page=cjs$4.Outline=cjs$4.Document=cjs$4.pdfjs=void 0;const pdfjs_js_1=__importDefault$9(pdfjs$1);cjs$4.pdfjs=pdfjs_js_1.default;const Document_js_1=__importDefault$9(Document$1);cjs$4.Document=Document_js_1.default;const Outline_js_1=__importDefault$9(Outline$1);cjs$4.Outline=Outline_js_1.default;const Page_js_1=__importDefault$9(Page$1);cjs$4.Page=Page_js_1.default;const Thumbnail_js_1=__importDefault$9(Thumbnail$1);cjs$4.Thumbnail=Thumbnail_js_1.default;const useDocumentContext_js_1=__importDefault$9(useDocumentContext$1);cjs$4.useDocumentContext=useDocumentContext_js_1.default;const useOutlineContext_js_1=__importDefault$9(useOutlineContext$1);cjs$4.useOutlineContext=useOutlineContext_js_1.default;const usePageContext_js_1=__importDefault$9(usePageContext$1);cjs$4.usePageContext=usePageContext_js_1.default;const PasswordResponses_js_1=__importDefault$9(PasswordResponses$1);cjs$4.PasswordResponses=PasswordResponses_js_1.default;const utils_js_1=utils;(0,utils_js_1.displayWorkerWarning)();pdfjs_js_1.default.GlobalWorkerOptions.workerSrc="pdf.worker.js";(function(e){var i=commonjsGlobal&&commonjsGlobal.__makeTemplateObject||function(q,se){return Object.defineProperty?Object.defineProperty(q,"raw",{value:se}):q.raw=se,q},a=commonjsGlobal&&commonjsGlobal.__assign||function(){return a=Object.assign||function(q){for(var se,me=1,ue=arguments.length;me{ke.setValue(ce,{value:vt.target.value}),this.setPropertyOnSiblings($e,"value",vt.target.value,"value"),gt.formattedValue=null}),$e.addEventListener("resetform",vt=>{const yt=this.data.defaultFieldValue??"";$e.value=gt.userValue=yt,gt.formattedValue=null});let kt=vt=>{const{formattedValue:yt}=gt;yt!=null&&(vt.target.value=yt),vt.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){$e.addEventListener("focus",yt=>{if(gt.focused)return;const{target:Ot}=yt;gt.userValue&&(Ot.value=gt.userValue),gt.lastCommittedValue=Ot.value,gt.commitKey=1,gt.focused=!0}),$e.addEventListener("updatefromsandbox",yt=>{this.showElementAndHideCanvas(yt.target);const Ot={value(Mt){gt.userValue=Mt.detail.value??"",ke.setValue(ce,{value:gt.userValue.toString()}),Mt.target.value=gt.userValue},formattedValue(Mt){const{formattedValue:Ft}=Mt.detail;gt.formattedValue=Ft,Ft!=null&&Mt.target!==document.activeElement&&(Mt.target.value=Ft),ke.setValue(ce,{formattedValue:Ft})},selRange(Mt){Mt.target.setSelectionRange(...Mt.detail.selRange)},charLimit:Mt=>{var Gt;const{charLimit:Ft}=Mt.detail,{target:It}=Mt;if(Ft===0){It.removeAttribute("maxLength");return}It.setAttribute("maxLength",Ft);let qt=gt.userValue;!qt||qt.length<=Ft||(qt=qt.slice(0,Ft),It.value=gt.userValue=qt,ke.setValue(ce,{value:qt}),(Gt=this.linkService.eventBus)==null||Gt.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ce,name:"Keystroke",value:qt,willCommit:!0,commitKey:1,selStart:It.selectionStart,selEnd:It.selectionEnd}}))}};this._dispatchEventFromSandbox(Ot,yt)}),$e.addEventListener("keydown",yt=>{var Ft;gt.commitKey=1;let Ot=-1;if(yt.key==="Escape"?Ot=0:yt.key==="Enter"&&!this.data.multiLine?Ot=2:yt.key==="Tab"&&(gt.commitKey=3),Ot===-1)return;const{value:Mt}=yt.target;gt.lastCommittedValue!==Mt&&(gt.lastCommittedValue=Mt,gt.userValue=Mt,(Ft=this.linkService.eventBus)==null||Ft.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ce,name:"Keystroke",value:Mt,willCommit:!0,commitKey:Ot,selStart:yt.target.selectionStart,selEnd:yt.target.selectionEnd}}))});const vt=kt;kt=null,$e.addEventListener("blur",yt=>{var Mt;if(!gt.focused||!yt.relatedTarget)return;gt.focused=!1;const{value:Ot}=yt.target;gt.userValue=Ot,gt.lastCommittedValue!==Ot&&((Mt=this.linkService.eventBus)==null||Mt.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ce,name:"Keystroke",value:Ot,willCommit:!0,commitKey:gt.commitKey,selStart:yt.target.selectionStart,selEnd:yt.target.selectionEnd}})),vt(yt)}),(Ie=this.data.actions)!=null&&Ie.Keystroke&&$e.addEventListener("beforeinput",yt=>{var Wt;gt.lastCommittedValue=null;const{data:Ot,target:Mt}=yt,{value:Ft,selectionStart:It,selectionEnd:qt}=Mt;let Gt=It,Ht=qt;switch(yt.inputType){case"deleteWordBackward":{const Xt=Ft.substring(0,It).match(/\w*[^\w]*$/);Xt&&(Gt-=Xt[0].length);break}case"deleteWordForward":{const Xt=Ft.substring(It).match(/^[^\w]*\w*/);Xt&&(Ht+=Xt[0].length);break}case"deleteContentBackward":It===qt&&(Gt-=1);break;case"deleteContentForward":It===qt&&(Ht+=1);break}yt.preventDefault(),(Wt=this.linkService.eventBus)==null||Wt.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ce,name:"Keystroke",value:Ft,change:Ot||"",willCommit:!1,selStart:Gt,selEnd:Ht}})}),this._setEventListeners($e,gt,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],yt=>yt.target.value)}if(kt&&$e.addEventListener("blur",kt),this.data.comb){const yt=(this.data.rect[2]-this.data.rect[0])/lt;$e.classList.add("comb"),$e.style.letterSpacing=`calc(${yt}px * var(--scale-factor) - 1ch)`}}else $e=document.createElement("div"),$e.textContent=this.data.fieldValue,$e.style.verticalAlign="middle",$e.style.display="table-cell";return this._setTextStyle($e),this._setBackgroundColor($e),this._setDefaultPropertiesFromJS($e),this.container.append($e),this.container}}class ue extends se{constructor(ke){super(ke,{isRenderable:!!ke.data.hasOwnCanvas})}}class ae extends se{constructor(ke){super(ke,{isRenderable:ke.renderForms})}render(){const ke=this.annotationStorage,ce=this.data,$e=ce.id;let Me=ke.getValue($e,{value:ce.exportValue===ce.fieldValue}).value;typeof Me=="string"&&(Me=Me!=="Off",ke.setValue($e,{value:Me})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const Ie=document.createElement("input");return he.add(Ie),Ie.setAttribute("data-element-id",$e),Ie.disabled=ce.readOnly,this._setRequired(Ie,this.data.required),Ie.type="checkbox",Ie.name=ce.fieldName,Me&&Ie.setAttribute("checked",!0),Ie.setAttribute("exportValue",ce.exportValue),Ie.tabIndex=f,Ie.addEventListener("change",ze=>{const{name:et,checked:lt}=ze.target;for(const bt of this._getElementsByName(et,$e)){const gt=lt&&bt.exportValue===ce.exportValue;bt.domElement&&(bt.domElement.checked=gt),ke.setValue(bt.id,{value:gt})}ke.setValue($e,{value:lt})}),Ie.addEventListener("resetform",ze=>{const et=ce.defaultFieldValue||"Off";ze.target.checked=et===ce.exportValue}),this.enableScripting&&this.hasJSActions&&(Ie.addEventListener("updatefromsandbox",ze=>{const et={value(lt){lt.target.checked=lt.detail.value!=="Off",ke.setValue($e,{value:lt.target.checked})}};this._dispatchEventFromSandbox(et,ze)}),this._setEventListeners(Ie,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],ze=>ze.target.checked)),this._setBackgroundColor(Ie),this._setDefaultPropertiesFromJS(Ie),this.container.append(Ie),this.container}}class $ extends se{constructor(ke){super(ke,{isRenderable:ke.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const ke=this.annotationStorage,ce=this.data,$e=ce.id;let Me=ke.getValue($e,{value:ce.fieldValue===ce.buttonValue}).value;typeof Me=="string"&&(Me=Me!==ce.buttonValue,ke.setValue($e,{value:Me}));const Ie=document.createElement("input");if(he.add(Ie),Ie.setAttribute("data-element-id",$e),Ie.disabled=ce.readOnly,this._setRequired(Ie,this.data.required),Ie.type="radio",Ie.name=ce.fieldName,Me&&Ie.setAttribute("checked",!0),Ie.tabIndex=f,Ie.addEventListener("change",ze=>{const{name:et,checked:lt}=ze.target;for(const bt of this._getElementsByName(et,$e))ke.setValue(bt.id,{value:!1});ke.setValue($e,{value:lt})}),Ie.addEventListener("resetform",ze=>{const et=ce.defaultFieldValue;ze.target.checked=et!=null&&et===ce.buttonValue}),this.enableScripting&&this.hasJSActions){const ze=ce.buttonValue;Ie.addEventListener("updatefromsandbox",et=>{const lt={value:bt=>{const gt=ze===bt.detail.value;for(const kt of this._getElementsByName(bt.target.name)){const vt=gt&&kt.id===$e;kt.domElement&&(kt.domElement.checked=vt),ke.setValue(kt.id,{value:vt})}}};this._dispatchEventFromSandbox(lt,et)}),this._setEventListeners(Ie,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],et=>et.target.checked)}return this._setBackgroundColor(Ie),this._setDefaultPropertiesFromJS(Ie),this.container.append(Ie),this.container}}class ie extends be{constructor(ke){super(ke,{ignoreBorder:ke.data.hasAppearance})}render(){const ke=super.render();ke.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(ke.title=this.data.alternativeText);const ce=ke.lastChild;return this.enableScripting&&this.hasJSActions&&ce&&(this._setDefaultPropertiesFromJS(ce),ce.addEventListener("updatefromsandbox",$e=>{this._dispatchEventFromSandbox({},$e)})),ke}}class we extends se{constructor(ke){super(ke,{isRenderable:ke.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const ke=this.annotationStorage,ce=this.data.id,$e=ke.getValue(ce,{value:this.data.fieldValue}),Me=document.createElement("select");he.add(Me),Me.setAttribute("data-element-id",ce),Me.disabled=this.data.readOnly,this._setRequired(Me,this.data.required),Me.name=this.data.fieldName,Me.tabIndex=f;let Ie=this.data.combo&&this.data.options.length>0;this.data.combo||(Me.size=this.data.options.length,this.data.multiSelect&&(Me.multiple=!0)),Me.addEventListener("resetform",gt=>{const kt=this.data.defaultFieldValue;for(const vt of Me.options)vt.selected=vt.value===kt});for(const gt of this.data.options){const kt=document.createElement("option");kt.textContent=gt.displayValue,kt.value=gt.exportValue,$e.value.includes(gt.exportValue)&&(kt.setAttribute("selected",!0),Ie=!1),Me.append(kt)}let ze=null;if(Ie){const gt=document.createElement("option");gt.value=" ",gt.setAttribute("hidden",!0),gt.setAttribute("selected",!0),Me.prepend(gt),ze=()=>{gt.remove(),Me.removeEventListener("input",ze),ze=null},Me.addEventListener("input",ze)}const et=gt=>{const kt=gt?"value":"textContent",{options:vt,multiple:yt}=Me;return yt?Array.prototype.filter.call(vt,Ot=>Ot.selected).map(Ot=>Ot[kt]):vt.selectedIndex===-1?null:vt[vt.selectedIndex][kt]};let lt=et(!1);const bt=gt=>{const kt=gt.target.options;return Array.prototype.map.call(kt,vt=>({displayValue:vt.textContent,exportValue:vt.value}))};return this.enableScripting&&this.hasJSActions?(Me.addEventListener("updatefromsandbox",gt=>{const kt={value(vt){ze==null||ze();const yt=vt.detail.value,Ot=new Set(Array.isArray(yt)?yt:[yt]);for(const Mt of Me.options)Mt.selected=Ot.has(Mt.value);ke.setValue(ce,{value:et(!0)}),lt=et(!1)},multipleSelection(vt){Me.multiple=!0},remove(vt){const yt=Me.options,Ot=vt.detail.remove;yt[Ot].selected=!1,Me.remove(Ot),yt.length>0&&Array.prototype.findIndex.call(yt,Ft=>Ft.selected)===-1&&(yt[0].selected=!0),ke.setValue(ce,{value:et(!0),items:bt(vt)}),lt=et(!1)},clear(vt){for(;Me.length!==0;)Me.remove(0);ke.setValue(ce,{value:null,items:[]}),lt=et(!1)},insert(vt){const{index:yt,displayValue:Ot,exportValue:Mt}=vt.detail.insert,Ft=Me.children[yt],It=document.createElement("option");It.textContent=Ot,It.value=Mt,Ft?Ft.before(It):Me.append(It),ke.setValue(ce,{value:et(!0),items:bt(vt)}),lt=et(!1)},items(vt){const{items:yt}=vt.detail;for(;Me.length!==0;)Me.remove(0);for(const Ot of yt){const{displayValue:Mt,exportValue:Ft}=Ot,It=document.createElement("option");It.textContent=Mt,It.value=Ft,Me.append(It)}Me.options.length>0&&(Me.options[0].selected=!0),ke.setValue(ce,{value:et(!0),items:bt(vt)}),lt=et(!1)},indices(vt){const yt=new Set(vt.detail.indices);for(const Ot of vt.target.options)Ot.selected=yt.has(Ot.index);ke.setValue(ce,{value:et(!0)}),lt=et(!1)},editable(vt){vt.target.disabled=!vt.detail.editable}};this._dispatchEventFromSandbox(kt,gt)}),Me.addEventListener("input",gt=>{var vt;const kt=et(!0);ke.setValue(ce,{value:kt}),gt.preventDefault(),(vt=this.linkService.eventBus)==null||vt.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ce,name:"Keystroke",value:lt,changeEx:kt,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(Me,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],gt=>gt.target.value)):Me.addEventListener("input",function(gt){ke.setValue(ce,{value:et(!0)})}),this.data.combo&&this._setTextStyle(Me),this._setBackgroundColor(Me),this._setDefaultPropertiesFromJS(Me),this.container.append(Me),this.container}}class de extends re{constructor(ke){const{data:ce,elements:$e}=ke;super(ke,{isRenderable:re._hasPopupData(ce)}),this.elements=$e}render(){this.container.classList.add("popupAnnotation");const ke=new m({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),ce=[];for(const $e of this.elements)$e.popup=ke,ce.push($e.data.id),$e.addHighlightArea();return this.container.setAttribute("aria-controls",ce.map($e=>`${o.AnnotationPrefix}${$e}`).join(",")),this.container}}class m{constructor({container:ke,color:ce,elements:$e,titleObj:Me,modificationDate:Ie,contentsObj:ze,richText:et,parent:lt,rect:bt,parentRect:gt,open:kt}){De(this,Pt);De(this,Et);De(this,Ct);De(this,Rt);De(this,Oe,null);De(this,Ge,Ne(this,Pt,wr).bind(this));De(this,qe,Ne(this,Rt,Xn).bind(this));De(this,Ue,Ne(this,Ct,Wn).bind(this));De(this,Ze,Ne(this,Et,gn).bind(this));De(this,it,null);De(this,Je,null);De(this,nt,null);De(this,ht,null);De(this,ot,null);De(this,mt,null);De(this,st,!1);De(this,Ve,null);De(this,We,null);De(this,He,null);De(this,at,null);De(this,ft,!1);var yt;Qe(this,Je,ke),Qe(this,at,Me),Qe(this,nt,ze),Qe(this,He,et),Qe(this,ot,lt),Qe(this,it,ce),Qe(this,We,bt),Qe(this,mt,gt),Qe(this,ht,$e);const vt=c.PDFDateString.toDateObject(Ie);vt&&Qe(this,Oe,lt.l10n.get("annotation_date_string",{date:vt.toLocaleDateString(),time:vt.toLocaleTimeString()})),this.trigger=$e.flatMap(Ot=>Ot.getElementsToTriggerPopup());for(const Ot of this.trigger)Ot.addEventListener("click",j(this,Ze)),Ot.addEventListener("mouseenter",j(this,Ue)),Ot.addEventListener("mouseleave",j(this,qe)),Ot.classList.add("popupTriggerArea");for(const Ot of $e)(yt=Ot.container)==null||yt.addEventListener("keydown",j(this,Ge));j(this,Je).hidden=!0,kt&&Ne(this,Et,gn).call(this)}render(){if(j(this,Ve))return;const{page:{view:ke},viewport:{rawDims:{pageWidth:ce,pageHeight:$e,pageX:Me,pageY:Ie}}}=j(this,ot),ze=Qe(this,Ve,document.createElement("div"));if(ze.className="popup",j(this,it)){const Gt=ze.style.outlineColor=o.Util.makeHexColor(...j(this,it));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?ze.style.backgroundColor=`color-mix(in srgb, ${Gt} 30%, white)`:ze.style.backgroundColor=o.Util.makeHexColor(...j(this,it).map(Wt=>Math.floor(.7*(255-Wt)+Wt)))}const et=document.createElement("span");et.className="header";const lt=document.createElement("h1");if(et.append(lt),{dir:lt.dir,str:lt.textContent}=j(this,at),ze.append(et),j(this,Oe)){const Gt=document.createElement("span");Gt.classList.add("popupDate"),j(this,Oe).then(Ht=>{Gt.textContent=Ht}),et.append(Gt)}const bt=j(this,nt),gt=j(this,He);if(gt!=null&>.str&&(!(bt!=null&&bt.str)||bt.str===gt.str))ee.XfaLayer.render({xfaHtml:gt.html,intent:"richText",div:ze}),ze.lastChild.classList.add("richText","popupContent");else{const Gt=this._formatContents(bt);ze.append(Gt)}let kt=!!j(this,mt),vt=kt?j(this,mt):j(this,We);for(const Gt of j(this,ht))if(!vt||o.Util.intersect(Gt.data.rect,vt)!==null){vt=Gt.data.rect,kt=!0;break}const yt=o.Util.normalizeRect([vt[0],ke[3]-vt[1]+ke[1],vt[2],ke[3]-vt[3]+ke[1]]),Mt=kt?vt[2]-vt[0]+5:0,Ft=yt[0]+Mt,It=yt[1],{style:qt}=j(this,Je);qt.left=`${100*(Ft-Me)/ce}%`,qt.top=`${100*(It-Ie)/$e}%`,j(this,Je).append(ze)}_formatContents({str:ke,dir:ce}){const $e=document.createElement("p");$e.classList.add("popupContent"),$e.dir=ce;const Me=ke.split(/(?:\r\n?|\n)/);for(let Ie=0,ze=Me.length;Ie{ze.key==="Enter"&&(Ie?ze.metaKey:ze.ctrlKey)&&Ne(this,Xe,Yn).call(this)}),!$e.popupRef&&this.hasPopupData?this._createPopup():Me.classList.add("popupTriggerArea"),ce.append(Me),ce}getElementsToTriggerPopup(){return j(this,Nt)}addHighlightArea(){this.container.classList.add("highlightArea")}}Nt=new WeakMap,Xe=new WeakSet,Yn=function(){var ce;(ce=this.downloadManager)==null||ce.openOrDownloadData(this.container,this.content,this.filename)};class ne{constructor({div:ke,accessibilityManager:ce,annotationCanvasMap:$e,l10n:Me,page:Ie,viewport:ze}){De(this,At);De(this,ut);De(this,wt,null);De(this,_t,null);De(this,xt,new Map);this.div=ke,Qe(this,wt,ce),Qe(this,_t,$e),this.l10n=Me,this.page=Ie,this.viewport=ze,this.zIndex=0,this.l10n||(this.l10n=_.NullL10n)}async render(ke){const{annotations:ce}=ke,$e=this.div;(0,c.setLayerDimensions)($e,this.viewport);const Me=new Map,Ie={data:null,layer:$e,linkService:ke.linkService,downloadManager:ke.downloadManager,imageResourcesPath:ke.imageResourcesPath||"",renderForms:ke.renderForms!==!1,svgFactory:new c.DOMSVGFactory,annotationStorage:ke.annotationStorage||new d.AnnotationStorage,enableScripting:ke.enableScripting===!0,hasJSActions:ke.hasJSActions,fieldObjects:ke.fieldObjects,parent:this,elements:null};for(const ze of ce){if(ze.noHTML)continue;const et=ze.annotationType===o.AnnotationType.POPUP;if(et){const gt=Me.get(ze.id);if(!gt)continue;Ie.elements=gt}else{const{width:gt,height:kt}=ge(ze.rect);if(gt<=0||kt<=0)continue}Ie.data=ze;const lt=te.create(Ie);if(!lt.isRenderable)continue;if(!et&&ze.popupRef){const gt=Me.get(ze.popupRef);gt?gt.push(lt):Me.set(ze.popupRef,[lt])}lt.annotationEditorType>0&&j(this,xt).set(lt.data.id,lt);const bt=lt.render();ze.hidden&&(bt.style.visibility="hidden"),Ne(this,At,xr).call(this,bt,ze.id)}Ne(this,ut,Kn).call(this),await this.l10n.translate($e)}update({viewport:ke}){const ce=this.div;this.viewport=ke,(0,c.setLayerDimensions)(ce,{rotation:ke.rotation}),Ne(this,ut,Kn).call(this),ce.hidden=!1}getEditableAnnotations(){return Array.from(j(this,xt).values())}getEditableAnnotation(ke){return j(this,xt).get(ke)}}wt=new WeakMap,_t=new WeakMap,xt=new WeakMap,At=new WeakSet,xr=function(ke,ce){var Me;const $e=ke.firstChild||ke;$e.id=`${o.AnnotationPrefix}${ce}`,this.div.append(ke),(Me=j(this,wt))==null||Me.moveElementInDOM(this.div,ke,$e,!1)},ut=new WeakSet,Kn=function(){if(!j(this,_t))return;const ke=this.div;for(const[ce,$e]of j(this,_t)){const Me=ke.querySelector(`[data-annotation-id="${ce}"]`);if(!Me)continue;const{firstChild:Ie}=Me;Ie?Ie.nodeName==="CANVAS"?Ie.replaceWith($e):Ie.before($e):Me.append($e)}j(this,_t).clear()},i.AnnotationLayer=ne},(e,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ColorConverters=void 0;function a(d){return Math.floor(Math.max(0,Math.min(1,d))*255).toString(16).padStart(2,"0")}function o(d){return Math.max(0,Math.min(255,255*d))}class c{static CMYK_G([h,_,ee,f]){return["G",1-Math.min(1,.3*h+.59*ee+.11*_+f)]}static G_CMYK([h]){return["CMYK",0,0,0,1-h]}static G_RGB([h]){return["RGB",h,h,h]}static G_rgb([h]){return h=o(h),[h,h,h]}static G_HTML([h]){const _=a(h);return`#${_}${_}${_}`}static RGB_G([h,_,ee]){return["G",.3*h+.59*_+.11*ee]}static RGB_rgb(h){return h.map(o)}static RGB_HTML(h){return`#${h.map(a).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([h,_,ee,f]){return["RGB",1-Math.min(1,h+f),1-Math.min(1,ee+f),1-Math.min(1,_+f)]}static CMYK_rgb([h,_,ee,f]){return[o(1-Math.min(1,h+f)),o(1-Math.min(1,ee+f)),o(1-Math.min(1,_+f))]}static CMYK_HTML(h){const _=this.CMYK_RGB(h).slice(1);return this.RGB_HTML(_)}static RGB_CMYK([h,_,ee]){const f=1-h,g=1-_,he=1-ee,ge=Math.min(f,g,he);return["CMYK",f,g,he,ge]}}i.ColorConverters=c},(e,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.NullL10n=void 0,i.getL10nFallback=o;const a={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"};a.print_progress_percent="{{progress}}%";function o(h,_){switch(h){case"find_match_count":h=`find_match_count[${_.total===1?"one":"other"}]`;break;case"find_match_count_limit":h=`find_match_count_limit[${_.limit===1?"one":"other"}]`;break}return a[h]||""}function c(h,_){return _?h.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,(ee,f)=>f in _?_[f]:"{{"+f+"}}"):h}const d={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(h,_=null,ee=o(h,_)){return c(ee,_)},async translate(h){}};i.NullL10n=d},(e,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.XfaLayer=void 0;var o=a(25);class c{static setupStorage(h,_,ee,f,g){const he=f.getValue(_,{value:null});switch(ee.name){case"textarea":if(he.value!==null&&(h.textContent=he.value),g==="print")break;h.addEventListener("input",ge=>{f.setValue(_,{value:ge.target.value})});break;case"input":if(ee.attributes.type==="radio"||ee.attributes.type==="checkbox"){if(he.value===ee.attributes.xfaOn?h.setAttribute("checked",!0):he.value===ee.attributes.xfaOff&&h.removeAttribute("checked"),g==="print")break;h.addEventListener("change",ge=>{f.setValue(_,{value:ge.target.checked?ge.target.getAttribute("xfaOn"):ge.target.getAttribute("xfaOff")})})}else{if(he.value!==null&&h.setAttribute("value",he.value),g==="print")break;h.addEventListener("input",ge=>{f.setValue(_,{value:ge.target.value})})}break;case"select":if(he.value!==null){h.setAttribute("value",he.value);for(const ge of ee.children)ge.attributes.value===he.value?ge.attributes.selected=!0:ge.attributes.hasOwnProperty("selected")&&delete ge.attributes.selected}h.addEventListener("input",ge=>{const te=ge.target.options,re=te.selectedIndex===-1?"":te[te.selectedIndex].value;f.setValue(_,{value:re})});break}}static setAttributes({html:h,element:_,storage:ee=null,intent:f,linkService:g}){const{attributes:he}=_,ge=h instanceof HTMLAnchorElement;he.type==="radio"&&(he.name=`${he.name}-${f}`);for(const[te,re]of Object.entries(he))if(re!=null)switch(te){case"class":re.length&&h.setAttribute(te,re.join(" "));break;case"dataId":break;case"id":h.setAttribute("data-element-id",re);break;case"style":Object.assign(h.style,re);break;case"textContent":h.textContent=re;break;default:(!ge||te!=="href"&&te!=="newWindow")&&h.setAttribute(te,re)}ge&&g.addLinkAttributes(h,he.href,he.newWindow),ee&&he.dataId&&this.setupStorage(h,he.dataId,_,ee)}static render(h){var be;const _=h.annotationStorage,ee=h.linkService,f=h.xfaHtml,g=h.intent||"display",he=document.createElement(f.name);f.attributes&&this.setAttributes({html:he,element:f,intent:g,linkService:ee});const ge=[[f,-1,he]],te=h.div;if(te.append(he),h.viewport){const q=`matrix(${h.viewport.transform.join(",")})`;te.style.transform=q}g!=="richText"&&te.setAttribute("class","xfaLayer xfaFont");const re=[];for(;ge.length>0;){const[q,se,me]=ge.at(-1);if(se+1===q.children.length){ge.pop();continue}const ue=q.children[++ge.at(-1)[1]];if(ue===null)continue;const{name:ae}=ue;if(ae==="#text"){const ie=document.createTextNode(ue.value);re.push(ie),me.append(ie);continue}const $=(be=ue==null?void 0:ue.attributes)!=null&&be.xmlns?document.createElementNS(ue.attributes.xmlns,ae):document.createElement(ae);if(me.append($),ue.attributes&&this.setAttributes({html:$,element:ue,storage:_,intent:g,linkService:ee}),ue.children&&ue.children.length>0)ge.push([ue,-1,$]);else if(ue.value){const ie=document.createTextNode(ue.value);o.XfaText.shouldBuildText(ae)&&re.push(ie),$.append(ie)}}for(const q of te.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))q.setAttribute("readOnly",!0);return{textDivs:re}}static update(h){const _=`matrix(${h.viewport.transform.join(",")})`;h.div.style.transform=_,h.div.hidden=!1}}i.XfaLayer=c},(e,i,a)=>{var f,g,he,ge,te,re,be,q,se,me,ue,ae,$,ie,we,Ar,m,Er,oe,Pr,Ee,$r,je,Qn,xe,Cr,Re,Jn,Ke,Tr,Pe,Or,fe,jr,le,Rr,Ae,kr,Oe,Vt,qe,Zn,Ze,bn,Je,vn,ht,Zt,mt,er,Ve,yn,He,Mr,ft,tr,Tt,Dr,jt,Fr,$t,nr,rt,Sn,Be,en;Object.defineProperty(i,"__esModule",{value:!0}),i.InkEditor=void 0;var o=a(1),c=a(4),d=a(29),h=a(6),_=a(5);const dt=class dt extends c.AnnotationEditor{constructor(Xe){super({...Xe,name:"inkEditor"});De(this,we);De(this,m);De(this,oe);De(this,Ee);De(this,je);De(this,xe);De(this,Re);De(this,Ke);De(this,Pe);De(this,fe);De(this,le);De(this,Ae);De(this,Oe);De(this,qe);De(this,Ze);De(this,Je);De(this,ht);De(this,mt);De(this,Ve);De(this,jt);De(this,$t);De(this,rt);De(this,Be);De(this,f,0);De(this,g,0);De(this,he,this.canvasPointermove.bind(this));De(this,ge,this.canvasPointerleave.bind(this));De(this,te,this.canvasPointerup.bind(this));De(this,re,this.canvasPointerdown.bind(this));De(this,be,new Path2D);De(this,q,!1);De(this,se,!1);De(this,me,!1);De(this,ue,null);De(this,ae,0);De(this,$,0);De(this,ie,null);this.color=Xe.color||null,this.thickness=Xe.thickness||null,this.opacity=Xe.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(Xe){c.AnnotationEditor.initialize(Xe,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(Xe,pt){switch(Xe){case o.AnnotationEditorParamsType.INK_THICKNESS:dt._defaultThickness=pt;break;case o.AnnotationEditorParamsType.INK_COLOR:dt._defaultColor=pt;break;case o.AnnotationEditorParamsType.INK_OPACITY:dt._defaultOpacity=pt/100;break}}updateParams(Xe,pt){switch(Xe){case o.AnnotationEditorParamsType.INK_THICKNESS:Ne(this,we,Ar).call(this,pt);break;case o.AnnotationEditorParamsType.INK_COLOR:Ne(this,m,Er).call(this,pt);break;case o.AnnotationEditorParamsType.INK_OPACITY:Ne(this,oe,Pr).call(this,pt);break}}static get defaultPropertiesToUpdate(){return[[o.AnnotationEditorParamsType.INK_THICKNESS,dt._defaultThickness],[o.AnnotationEditorParamsType.INK_COLOR,dt._defaultColor||c.AnnotationEditor._defaultLineColor],[o.AnnotationEditorParamsType.INK_OPACITY,Math.round(dt._defaultOpacity*100)]]}get propertiesToUpdate(){return[[o.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||dt._defaultThickness],[o.AnnotationEditorParamsType.INK_COLOR,this.color||dt._defaultColor||c.AnnotationEditor._defaultLineColor],[o.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??dt._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.canvas||(Ne(this,Ze,bn).call(this),Ne(this,Je,vn).call(this)),this.isAttachedToDOM||(this.parent.add(this),Ne(this,ht,Zt).call(this)),Ne(this,Be,en).call(this)))}remove(){this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,j(this,ue).disconnect(),Qe(this,ue,null),super.remove())}setParent(Xe){!this.parent&&Xe?this._uiManager.removeShouldRescale(this):this.parent&&Xe===null&&this._uiManager.addShouldRescale(this),super.setParent(Xe)}onScaleChanging(){const[Xe,pt]=this.parentDimensions,wt=this.width*Xe,_t=this.height*pt;this.setDimensions(wt,_t)}enableEditMode(){j(this,q)||this.canvas===null||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",j(this,re)))}disableEditMode(){!this.isInEditMode()||this.canvas===null||(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",j(this,re)))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){j(this,q)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),Qe(this,q,!0),this.div.classList.add("disabled"),Ne(this,Be,en).call(this,!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(Xe){this._focusEventsAllowed&&(super.focusin(Xe),this.enableEditMode())}canvasPointerdown(Xe){Xe.button!==0||!this.isInEditMode()||j(this,q)||(this.setInForeground(),Xe.preventDefault(),Xe.type!=="mouse"&&this.div.focus(),Ne(this,xe,Cr).call(this,Xe.offsetX,Xe.offsetY))}canvasPointermove(Xe){Xe.preventDefault(),Ne(this,Re,Jn).call(this,Xe.offsetX,Xe.offsetY)}canvasPointerup(Xe){Xe.preventDefault(),Ne(this,qe,Zn).call(this,Xe)}canvasPointerleave(Xe){Ne(this,qe,Zn).call(this,Xe)}get isResizable(){return!this.isEmpty()&&j(this,q)}render(){if(this.div)return this.div;let Xe,pt;this.width&&(Xe=this.x,pt=this.y),super.render(),c.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then(Lt=>{var ut;return(ut=this.div)==null?void 0:ut.setAttribute("aria-label",Lt)});const[wt,_t,xt,At]=Ne(this,Ee,$r).call(this);if(this.setAt(wt,_t,0,0),this.setDims(xt,At),Ne(this,Ze,bn).call(this),this.width){const[Lt,ut]=this.parentDimensions;this.setAspectRatio(this.width*Lt,this.height*ut),this.setAt(Xe*Lt,pt*ut,this.width*Lt,this.height*ut),Qe(this,me,!0),Ne(this,ht,Zt).call(this),this.setDims(this.width*Lt,this.height*ut),Ne(this,Oe,Vt).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return Ne(this,Je,vn).call(this),this.div}setDimensions(Xe,pt){const wt=Math.round(Xe),_t=Math.round(pt);if(j(this,ae)===wt&&j(this,$)===_t)return;Qe(this,ae,wt),Qe(this,$,_t),this.canvas.style.visibility="hidden";const[xt,At]=this.parentDimensions;this.width=Xe/xt,this.height=pt/At,this.fixAndSetPosition(),j(this,q)&&Ne(this,mt,er).call(this,Xe,pt),Ne(this,ht,Zt).call(this),Ne(this,Oe,Vt).call(this),this.canvas.style.visibility="visible",this.fixDims()}static deserialize(Xe,pt,wt){var Ie,ze,et;if(Xe instanceof d.InkAnnotationElement)return null;const _t=super.deserialize(Xe,pt,wt);_t.thickness=Xe.thickness,_t.color=o.Util.makeHexColor(...Xe.color),_t.opacity=Xe.opacity;const[xt,At]=_t.pageDimensions,Lt=_t.width*xt,ut=_t.height*At,Dt=_t.parentScale,St=Xe.thickness/2;Qe(_t,q,!0),Qe(_t,ae,Math.round(Lt)),Qe(_t,$,Math.round(ut));const{paths:ke,rect:ce,rotation:$e}=Xe;for(let{bezier:lt}of ke){lt=Ne(Ie=dt,Tt,Dr).call(Ie,lt,ce,$e);const bt=[];_t.paths.push(bt);let gt=Dt*(lt[0]-St),kt=Dt*(lt[1]-St);for(let yt=2,Ot=lt.length;yt{this.thickness=Xe,Ne(this,Be,en).call(this)},undo:()=>{this.thickness=pt,Ne(this,Be,en).call(this)},mustExec:!0,type:o.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})},m=new WeakSet,Er=function(Xe){const pt=this.color;this.addCommands({cmd:()=>{this.color=Xe,Ne(this,Oe,Vt).call(this)},undo:()=>{this.color=pt,Ne(this,Oe,Vt).call(this)},mustExec:!0,type:o.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})},oe=new WeakSet,Pr=function(Xe){Xe/=100;const pt=this.opacity;this.addCommands({cmd:()=>{this.opacity=Xe,Ne(this,Oe,Vt).call(this)},undo:()=>{this.opacity=pt,Ne(this,Oe,Vt).call(this)},mustExec:!0,type:o.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})},Ee=new WeakSet,$r=function(){const{parentRotation:Xe,parentDimensions:[pt,wt]}=this;switch(Xe){case 90:return[0,wt,wt,pt];case 180:return[pt,wt,pt,wt];case 270:return[pt,0,wt,pt];default:return[0,0,pt,wt]}},je=new WeakSet,Qn=function(){const{ctx:Xe,color:pt,opacity:wt,thickness:_t,parentScale:xt,scaleFactor:At}=this;Xe.lineWidth=_t*xt/At,Xe.lineCap="round",Xe.lineJoin="round",Xe.miterLimit=10,Xe.strokeStyle=`${pt}${(0,_.opacityToHex)(wt)}`},xe=new WeakSet,Cr=function(Xe,pt){this.canvas.addEventListener("contextmenu",h.noContextMenu),this.canvas.addEventListener("pointerleave",j(this,ge)),this.canvas.addEventListener("pointermove",j(this,he)),this.canvas.addEventListener("pointerup",j(this,te)),this.canvas.removeEventListener("pointerdown",j(this,re)),this.isEditing=!0,j(this,me)||(Qe(this,me,!0),Ne(this,ht,Zt).call(this),this.thickness||(this.thickness=dt._defaultThickness),this.color||(this.color=dt._defaultColor||c.AnnotationEditor._defaultLineColor),this.opacity??(this.opacity=dt._defaultOpacity)),this.currentPath.push([Xe,pt]),Qe(this,se,!1),Ne(this,je,Qn).call(this),Qe(this,ie,()=>{Ne(this,fe,jr).call(this),j(this,ie)&&window.requestAnimationFrame(j(this,ie))}),window.requestAnimationFrame(j(this,ie))},Re=new WeakSet,Jn=function(Xe,pt){const[wt,_t]=this.currentPath.at(-1);if(this.currentPath.length>1&&Xe===wt&&pt===_t)return;const xt=this.currentPath;let At=j(this,be);if(xt.push([Xe,pt]),Qe(this,se,!0),xt.length<=2){At.moveTo(...xt[0]),At.lineTo(Xe,pt);return}xt.length===3&&(Qe(this,be,At=new Path2D),At.moveTo(...xt[0])),Ne(this,le,Rr).call(this,At,...xt.at(-3),...xt.at(-2),Xe,pt)},Ke=new WeakSet,Tr=function(){if(this.currentPath.length===0)return;const Xe=this.currentPath.at(-1);j(this,be).lineTo(...Xe)},Pe=new WeakSet,Or=function(Xe,pt){Qe(this,ie,null),Xe=Math.min(Math.max(Xe,0),this.canvas.width),pt=Math.min(Math.max(pt,0),this.canvas.height),Ne(this,Re,Jn).call(this,Xe,pt),Ne(this,Ke,Tr).call(this);let wt;if(this.currentPath.length!==1)wt=Ne(this,Ae,kr).call(this);else{const ut=[Xe,pt];wt=[[ut,ut.slice(),ut.slice(),ut]]}const _t=j(this,be),xt=this.currentPath;this.currentPath=[],Qe(this,be,new Path2D);const At=()=>{this.allRawPaths.push(xt),this.paths.push(wt),this.bezierPath2D.push(_t),this.rebuild()},Lt=()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(Ne(this,Ze,bn).call(this),Ne(this,Je,vn).call(this)),Ne(this,Be,en).call(this))};this.addCommands({cmd:At,undo:Lt,mustExec:!0})},fe=new WeakSet,jr=function(){if(!j(this,se))return;Qe(this,se,!1);const Xe=Math.ceil(this.thickness*this.parentScale),pt=this.currentPath.slice(-3),wt=pt.map(At=>At[0]),_t=pt.map(At=>At[1]);Math.min(...wt)-Xe,Math.max(...wt)+Xe,Math.min(..._t)-Xe,Math.max(..._t)+Xe;const{ctx:xt}=this;xt.save(),xt.clearRect(0,0,this.canvas.width,this.canvas.height);for(const At of this.bezierPath2D)xt.stroke(At);xt.stroke(j(this,be)),xt.restore()},le=new WeakSet,Rr=function(Xe,pt,wt,_t,xt,At,Lt){const ut=(pt+_t)/2,Dt=(wt+xt)/2,St=(_t+At)/2,ke=(xt+Lt)/2;Xe.bezierCurveTo(ut+2*(_t-ut)/3,Dt+2*(xt-Dt)/3,St+2*(_t-St)/3,ke+2*(xt-ke)/3,St,ke)},Ae=new WeakSet,kr=function(){const Xe=this.currentPath;if(Xe.length<=2)return[[Xe[0],Xe[0],Xe.at(-1),Xe.at(-1)]];const pt=[];let wt,[_t,xt]=Xe[0];for(wt=1;wt{this.canvas.removeEventListener("contextmenu",h.noContextMenu)},10),Ne(this,Pe,Or).call(this,Xe.offsetX,Xe.offsetY),this.addToAnnotationStorage(),this.setInBackground()},Ze=new WeakSet,bn=function(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",c.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then(Xe=>{var pt;return(pt=this.canvas)==null?void 0:pt.setAttribute("aria-label",Xe)}),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")},Je=new WeakSet,vn=function(){Qe(this,ue,new ResizeObserver(Xe=>{const pt=Xe[0].contentRect;pt.width&&pt.height&&this.setDimensions(pt.width,pt.height)})),j(this,ue).observe(this.div)},ht=new WeakSet,Zt=function(){if(!j(this,me))return;const[Xe,pt]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*Xe),this.canvas.height=Math.ceil(this.height*pt),Ne(this,Ve,yn).call(this)},mt=new WeakSet,er=function(Xe,pt){const wt=Ne(this,rt,Sn).call(this),_t=(Xe-wt)/j(this,g),xt=(pt-wt)/j(this,f);this.scaleFactor=Math.min(_t,xt)},Ve=new WeakSet,yn=function(){const Xe=Ne(this,rt,Sn).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+Xe,this.translationY*this.scaleFactor+Xe)},He=new WeakSet,Mr=function(Xe){const pt=new Path2D;for(let wt=0,_t=Xe.length;wt<_t;wt++){const[xt,At,Lt,ut]=Xe[wt];wt===0&&pt.moveTo(...xt),pt.bezierCurveTo(At[0],At[1],Lt[0],Lt[1],ut[0],ut[1])}return pt},ft=new WeakSet,tr=function(Xe,pt,wt){const[_t,xt,At,Lt]=pt;switch(wt){case 0:for(let ut=0,Dt=Xe.length;ut{var ee,f,g,he,ge,te,re,be,q,se,me,ln,ae,cn,ie,wn,de,rr,_e,Lr,Se,Ir,ye,ir,Le,xn,Te,Nr;Object.defineProperty(i,"__esModule",{value:!0}),i.StampEditor=void 0;var o=a(1),c=a(4),d=a(6),h=a(29);const Fe=class Fe extends c.AnnotationEditor{constructor(Pe){super({...Pe,name:"stampEditor"});De(this,me);De(this,ae);De(this,ie);De(this,de);De(this,_e);De(this,Se);De(this,ye);De(this,Le);De(this,Te);De(this,ee,null);De(this,f,null);De(this,g,null);De(this,he,null);De(this,ge,null);De(this,te,null);De(this,re,null);De(this,be,null);De(this,q,!1);De(this,se,!1);Qe(this,he,Pe.bitmapUrl),Qe(this,ge,Pe.bitmapFile)}static initialize(Pe){c.AnnotationEditor.initialize(Pe)}static get supportedTypes(){const Pe=["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"];return(0,o.shadow)(this,"supportedTypes",Pe.map(ne=>`image/${ne}`))}static get supportedTypesStr(){return(0,o.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(Pe){return this.supportedTypes.includes(Pe)}static paste(Pe,ne){ne.pasteEditor(o.AnnotationEditorType.STAMP,{bitmapFile:Pe.getAsFile()})}remove(){var Pe,ne;j(this,f)&&(Qe(this,ee,null),this._uiManager.imageManager.deleteId(j(this,f)),(Pe=j(this,te))==null||Pe.remove(),Qe(this,te,null),(ne=j(this,re))==null||ne.disconnect(),Qe(this,re,null)),super.remove()}rebuild(){if(!this.parent){j(this,f)&&Ne(this,ie,wn).call(this);return}super.rebuild(),this.div!==null&&(j(this,f)&&Ne(this,ie,wn).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(j(this,g)||j(this,ee)||j(this,he)||j(this,ge))}get isResizable(){return!0}render(){if(this.div)return this.div;let Pe,ne;if(this.width&&(Pe=this.x,ne=this.y),super.render(),this.div.hidden=!0,j(this,ee)?Ne(this,de,rr).call(this):Ne(this,ie,wn).call(this),this.width){const[fe,b]=this.parentDimensions;this.setAt(Pe*fe,ne*b,this.width*fe,this.height*b)}return this.div}static deserialize(Pe,ne,fe){if(Pe instanceof h.StampAnnotationElement)return null;const b=super.deserialize(Pe,ne,fe),{rect:le,bitmapUrl:ve,bitmapId:Ae,isSvg:Ce,accessibilityData:Oe}=Pe;Ae&&fe.imageManager.isValidId(Ae)?Qe(b,f,Ae):Qe(b,he,ve),Qe(b,q,Ce);const[Ge,qe]=b.pageDimensions;return b.width=(le[2]-le[0])/Ge,b.height=(le[3]-le[1])/qe,Oe&&(b.altTextData=Oe),b}serialize(Pe=!1,ne=null){if(this.isEmpty())return null;const fe={annotationType:o.AnnotationEditorType.STAMP,bitmapId:j(this,f),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:j(this,q),structTreeParentId:this._structTreeParentId};if(Pe)return fe.bitmapUrl=Ne(this,Le,xn).call(this,!0),fe.accessibilityData=this.altTextData,fe;const{decorative:b,altText:le}=this.altTextData;if(!b&&le&&(fe.accessibilityData={type:"Figure",alt:le}),ne===null)return fe;ne.stamps||(ne.stamps=new Map);const ve=j(this,q)?(fe.rect[2]-fe.rect[0])*(fe.rect[3]-fe.rect[1]):null;if(!ne.stamps.has(j(this,f)))ne.stamps.set(j(this,f),{area:ve,serialized:fe}),fe.bitmap=Ne(this,Le,xn).call(this,!1);else if(j(this,q)){const Ae=ne.stamps.get(j(this,f));ve>Ae.area&&(Ae.area=ve,Ae.serialized.bitmap.close(),Ae.serialized.bitmap=Ne(this,Le,xn).call(this,!1))}return fe}};ee=new WeakMap,f=new WeakMap,g=new WeakMap,he=new WeakMap,ge=new WeakMap,te=new WeakMap,re=new WeakMap,be=new WeakMap,q=new WeakMap,se=new WeakMap,me=new WeakSet,ln=function(Pe,ne=!1){if(!Pe){this.remove();return}Qe(this,ee,Pe.bitmap),ne||(Qe(this,f,Pe.id),Qe(this,q,Pe.isSvg)),Ne(this,de,rr).call(this)},ae=new WeakSet,cn=function(){Qe(this,g,null),this._uiManager.enableWaiting(!1),j(this,te)&&this.div.focus()},ie=new WeakSet,wn=function(){if(j(this,f)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(j(this,f)).then(ne=>Ne(this,me,ln).call(this,ne,!0)).finally(()=>Ne(this,ae,cn).call(this));return}if(j(this,he)){const ne=j(this,he);Qe(this,he,null),this._uiManager.enableWaiting(!0),Qe(this,g,this._uiManager.imageManager.getFromUrl(ne).then(fe=>Ne(this,me,ln).call(this,fe)).finally(()=>Ne(this,ae,cn).call(this)));return}if(j(this,ge)){const ne=j(this,ge);Qe(this,ge,null),this._uiManager.enableWaiting(!0),Qe(this,g,this._uiManager.imageManager.getFromFile(ne).then(fe=>Ne(this,me,ln).call(this,fe)).finally(()=>Ne(this,ae,cn).call(this)));return}const Pe=document.createElement("input");Pe.type="file",Pe.accept=Fe.supportedTypesStr,Qe(this,g,new Promise(ne=>{Pe.addEventListener("change",async()=>{if(!Pe.files||Pe.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const fe=await this._uiManager.imageManager.getFromFile(Pe.files[0]);Ne(this,me,ln).call(this,fe)}ne()}),Pe.addEventListener("cancel",()=>{this.remove(),ne()})}).finally(()=>Ne(this,ae,cn).call(this))),Pe.click()},de=new WeakSet,rr=function(){const{div:Pe}=this;let{width:ne,height:fe}=j(this,ee);const[b,le]=this.pageDimensions,ve=.75;if(this.width)ne=this.width*b,fe=this.height*le;else if(ne>ve*b||fe>ve*le){const Ge=Math.min(ve*b/ne,ve*le/fe);ne*=Ge,fe*=Ge}const[Ae,Ce]=this.parentDimensions;this.setDims(ne*Ae/b,fe*Ce/le),this._uiManager.enableWaiting(!1);const Oe=Qe(this,te,document.createElement("canvas"));Pe.append(Oe),Pe.hidden=!1,Ne(this,ye,ir).call(this,ne,fe),Ne(this,Te,Nr).call(this),j(this,se)||(this.parent.addUndoableEditor(this),Qe(this,se,!0)),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()},_e=new WeakSet,Lr=function(Pe,ne){var ve;const[fe,b]=this.parentDimensions;this.width=Pe/fe,this.height=ne/b,this.setDims(Pe,ne),(ve=this._initialOptions)!=null&&ve.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,j(this,be)!==null&&clearTimeout(j(this,be)),Qe(this,be,setTimeout(()=>{Qe(this,be,null),Ne(this,ye,ir).call(this,Pe,ne)},200))},Se=new WeakSet,Ir=function(Pe,ne){const{width:fe,height:b}=j(this,ee);let le=fe,ve=b,Ae=j(this,ee);for(;le>2*Pe||ve>2*ne;){const Ce=le,Oe=ve;le>2*Pe&&(le=le>=16384?Math.floor(le/2)-1:Math.ceil(le/2)),ve>2*ne&&(ve=ve>=16384?Math.floor(ve/2)-1:Math.ceil(ve/2));const Ge=new OffscreenCanvas(le,ve);Ge.getContext("2d").drawImage(Ae,0,0,Ce,Oe,0,0,le,ve),Ae=Ge.transferToImageBitmap()}return Ae},ye=new WeakSet,ir=function(Pe,ne){Pe=Math.ceil(Pe),ne=Math.ceil(ne);const fe=j(this,te);if(!fe||fe.width===Pe&&fe.height===ne)return;fe.width=Pe,fe.height=ne;const b=j(this,q)?j(this,ee):Ne(this,Se,Ir).call(this,Pe,ne),le=fe.getContext("2d");le.filter=this._uiManager.hcmFilter,le.drawImage(b,0,0,b.width,b.height,0,0,Pe,ne)},Le=new WeakSet,xn=function(Pe){if(Pe){if(j(this,q)){const b=this._uiManager.imageManager.getSvgUrl(j(this,f));if(b)return b}const ne=document.createElement("canvas");return{width:ne.width,height:ne.height}=j(this,ee),ne.getContext("2d").drawImage(j(this,ee),0,0),ne.toDataURL()}if(j(this,q)){const[ne,fe]=this.pageDimensions,b=Math.round(this.width*ne*d.PixelsPerInch.PDF_TO_CSS_UNITS),le=Math.round(this.height*fe*d.PixelsPerInch.PDF_TO_CSS_UNITS),ve=new OffscreenCanvas(b,le);return ve.getContext("2d").drawImage(j(this,ee),0,0,j(this,ee).width,j(this,ee).height,0,0,b,le),ve.transferToImageBitmap()}return structuredClone(j(this,ee))},Te=new WeakSet,Nr=function(){Qe(this,re,new ResizeObserver(Pe=>{const ne=Pe[0].contentRect;ne.width&&ne.height&&Ne(this,_e,Lr).call(this,ne.width,ne.height)})),j(this,re).observe(this.div)},Ut(Fe,"_type","stamp");let _=Fe;i.StampEditor=_}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var i=__webpack_module_cache__[e];if(i!==void 0)return i.exports;var a=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](a,a.exports,__w_pdfjs_require__),a.exports}var __webpack_exports__={};return(()=>{var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortException",{enumerable:!0,get:function(){return i.AbortException}}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return d.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return i.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return i.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return h.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return _.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return i.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return i.CMapCompressionType}}),Object.defineProperty(e,"DOMSVGFactory",{enumerable:!0,get:function(){return o.DOMSVGFactory}}),Object.defineProperty(e,"FeatureTest",{enumerable:!0,get:function(){return i.FeatureTest}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return ee.GlobalWorkerOptions}}),Object.defineProperty(e,"ImageKind",{enumerable:!0,get:function(){return i.ImageKind}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return i.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return i.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return i.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return a.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return o.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return a.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return i.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return i.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return o.PixelsPerInch}}),Object.defineProperty(e,"PromiseCapability",{enumerable:!0,get:function(){return i.PromiseCapability}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return o.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return a.SVGGraphics}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return i.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return i.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return i.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return f.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return a.build}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return i.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return a.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return o.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return o.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return o.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return o.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return o.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(e,"noContextMenu",{enumerable:!0,get:function(){return o.noContextMenu}}),Object.defineProperty(e,"normalizeUnicode",{enumerable:!0,get:function(){return i.normalizeUnicode}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return c.renderTextLayer}}),Object.defineProperty(e,"setLayerDimensions",{enumerable:!0,get:function(){return o.setLayerDimensions}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return i.shadow}}),Object.defineProperty(e,"updateTextLayer",{enumerable:!0,get:function(){return c.updateTextLayer}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return a.version}});var i=__w_pdfjs_require__(1),a=__w_pdfjs_require__(2),o=__w_pdfjs_require__(6),c=__w_pdfjs_require__(26),d=__w_pdfjs_require__(27),h=__w_pdfjs_require__(5),_=__w_pdfjs_require__(29),ee=__w_pdfjs_require__(14),f=__w_pdfjs_require__(32)})(),__webpack_exports__})())})(pdf);var pdfExports=pdf.exports,__createBinding$k=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$k=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$k=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$k(i,e,a);return __setModuleDefault$k(i,e),i};Object.defineProperty(pdfjs$1,"__esModule",{value:!0});const pdfjsModule=__importStar$k(pdfExports),pdfjs="default"in pdfjsModule?pdfjsModule.default:pdfjsModule;pdfjs$1.default=pdfjs;var Document$1={},cjs$3={};(function(e){var i=commonjsGlobal&&commonjsGlobal.__spreadArray||function(o,c,d){if(d||arguments.length===2)for(var h=0,_=c.length,ee;h<_;h++)(ee||!(h in c))&&(ee||(ee=Array.prototype.slice.call(c,0,h)),ee[h]=c[h]);return o.concat(ee||Array.prototype.slice.call(c))};Object.defineProperty(e,"__esModule",{value:!0}),e.allEvents=e.changeEvents=e.otherEvents=e.transitionEvents=e.animationEvents=e.wheelEvents=e.uiEvents=e.pointerEvents=e.touchEvents=e.selectionEvents=e.dragEvents=e.mouseEvents=e.mediaEvents=e.keyboardEvents=e.imageEvents=e.formEvents=e.focusEvents=e.compositionEvents=e.clipboardEvents=void 0,e.clipboardEvents=["onCopy","onCut","onPaste"],e.compositionEvents=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],e.focusEvents=["onFocus","onBlur"],e.formEvents=["onInput","onInvalid","onReset","onSubmit"],e.imageEvents=["onLoad","onError"],e.keyboardEvents=["onKeyDown","onKeyPress","onKeyUp"],e.mediaEvents=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],e.mouseEvents=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],e.dragEvents=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],e.selectionEvents=["onSelect"],e.touchEvents=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],e.pointerEvents=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],e.uiEvents=["onScroll"],e.wheelEvents=["onWheel"],e.animationEvents=["onAnimationStart","onAnimationEnd","onAnimationIteration"],e.transitionEvents=["onTransitionEnd"],e.otherEvents=["onToggle"],e.changeEvents=["onChange"],e.allEvents=i(i(i(i(i(i(i(i(i(i(i(i(i(i(i(i(i(i([],e.clipboardEvents,!0),e.compositionEvents,!0),e.focusEvents,!0),e.formEvents,!0),e.imageEvents,!0),e.keyboardEvents,!0),e.mediaEvents,!0),e.mouseEvents,!0),e.dragEvents,!0),e.selectionEvents,!0),e.touchEvents,!0),e.pointerEvents,!0),e.uiEvents,!0),e.wheelEvents,!0),e.animationEvents,!0),e.transitionEvents,!0),e.changeEvents,!0),e.otherEvents,!0);function a(o,c){var d={};return e.allEvents.forEach(function(h){var _=o[h];_&&(c?d[h]=function(ee){return _(ee,c(h))}:d[h]=_)}),d}e.default=a})(cjs$3);var cjs$2={};Object.defineProperty(cjs$2,"__esModule",{value:!0});function makeCancellablePromise(e){var i=!1,a=new Promise(function(o,c){e.then(function(d){return!i&&o(d)}).catch(function(d){return!i&&c(d)})});return{promise:a,cancel:function(){i=!0}}}cjs$2.default=makeCancellablePromise;const require$$1=getAugmentedNamespace(clsx),require$$2=getAugmentedNamespace(tinyInvariant);var dist={},has=Object.prototype.hasOwnProperty;function find(e,i,a){for(a of e.keys())if(dequal(a,i))return a}function dequal(e,i){var a,o,c;if(e===i)return!0;if(e&&i&&(a=e.constructor)===i.constructor){if(a===Date)return e.getTime()===i.getTime();if(a===RegExp)return e.toString()===i.toString();if(a===Array){if((o=e.length)===i.length)for(;o--&&dequal(e[o],i[o]););return o===-1}if(a===Set){if(e.size!==i.size)return!1;for(o of e)if(c=o,c&&typeof c=="object"&&(c=find(i,c),!c)||!i.has(c))return!1;return!0}if(a===Map){if(e.size!==i.size)return!1;for(o of e)if(c=o[0],c&&typeof c=="object"&&(c=find(i,c),!c)||!dequal(o[1],i.get(c)))return!1;return!0}if(a===ArrayBuffer)e=new Uint8Array(e),i=new Uint8Array(i);else if(a===DataView){if((o=e.byteLength)===i.byteLength)for(;o--&&e.getInt8(o)===i.getInt8(o););return o===-1}if(ArrayBuffer.isView(e)){if((o=e.byteLength)===i.byteLength)for(;o--&&e[o]===i[o];);return o===-1}if(!a||typeof e=="object"){o=0;for(a in e)if(has.call(e,a)&&++o&&!has.call(i,a)||!(a in i)||!dequal(e[a],i[a]))return!1;return Object.keys(i).length===o}}return e!==e&&i!==i}dist.dequal=dequal;var DocumentContext={};Object.defineProperty(DocumentContext,"__esModule",{value:!0});const react_1$n=reactExports;DocumentContext.default=(0,react_1$n.createContext)(null);var Message$1={},__importDefault$p=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Message$1,"__esModule",{value:!0});const react_1$m=__importDefault$p(reactExports);function Message({children:e,type:i}){return react_1$m.default.createElement("div",{className:`react-pdf__message react-pdf__message--${i}`},e)}Message$1.default=Message;var LinkService$1={},__importDefault$o=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(LinkService$1,"__esModule",{value:!0});const tiny_invariant_1$a=__importDefault$o(require$$2),DEFAULT_LINK_REL="noopener noreferrer nofollow";class LinkService{constructor(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}setDocument(i){this.pdfDocument=i}setViewer(i){this.pdfViewer=i}setExternalLinkRel(i){this.externalLinkRel=i}setExternalLinkTarget(i){this.externalLinkTarget=i}setHistory(){}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return(0,tiny_invariant_1$a.default)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber||0}set page(i){(0,tiny_invariant_1$a.default)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber=i}get rotation(){return 0}set rotation(i){}goToDestination(i){return new Promise(a=>{(0,tiny_invariant_1$a.default)(this.pdfDocument,"PDF document not loaded."),(0,tiny_invariant_1$a.default)(i,"Destination is not specified."),typeof i=="string"?this.pdfDocument.getDestination(i).then(a):Array.isArray(i)?a(i):i.then(a)}).then(a=>{(0,tiny_invariant_1$a.default)(Array.isArray(a),`"${a}" is not a valid destination array.`);const o=a[0];new Promise(c=>{(0,tiny_invariant_1$a.default)(this.pdfDocument,"PDF document not loaded."),o instanceof Object?this.pdfDocument.getPageIndex(o).then(d=>{c(d)}).catch(()=>{(0,tiny_invariant_1$a.default)(!1,`"${o}" is not a valid page reference.`)}):typeof o=="number"?c(o):(0,tiny_invariant_1$a.default)(!1,`"${o}" is not a valid destination reference.`)}).then(c=>{const d=c+1;(0,tiny_invariant_1$a.default)(this.pdfViewer,"PDF viewer is not initialized."),(0,tiny_invariant_1$a.default)(d>=1&&d<=this.pagesCount,`"${d}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({dest:a,pageIndex:c,pageNumber:d})})})}navigateTo(i){this.goToDestination(i)}goToPage(i){const a=i-1;(0,tiny_invariant_1$a.default)(this.pdfViewer,"PDF viewer is not initialized."),(0,tiny_invariant_1$a.default)(i>=1&&i<=this.pagesCount,`"${i}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({pageIndex:a,pageNumber:i})}addLinkAttributes(i,a,o){i.href=a,i.rel=this.externalLinkRel||DEFAULT_LINK_REL,i.target=o?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}LinkService$1.default=LinkService;var PasswordResponses$1={};Object.defineProperty(PasswordResponses$1,"__esModule",{value:!0});const PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};PasswordResponses$1.default=PasswordResponses;var utils={};(function(e){var i=commonjsGlobal&&commonjsGlobal.__importDefault||function(ue){return ue&&ue.__esModule?ue:{default:ue}};Object.defineProperty(e,"__esModule",{value:!0}),e.loadFromFile=e.isCancelException=e.makePageCallback=e.cancelRunningTask=e.displayWorkerWarning=e.displayCORSWarning=e.getDevicePixelRatio=e.dataURItoByteString=e.isDataURI=e.isBlob=e.isArrayBuffer=e.isString=e.isProvided=e.isDefined=e.isLocalFileSystem=e.isBrowser=void 0;const a=i(require$$2),o=i(warning_1$8);e.isBrowser=typeof document<"u",e.isLocalFileSystem=e.isBrowser&&window.location.protocol==="file:";function c(ue){return typeof ue<"u"}e.isDefined=c;function d(ue){return c(ue)&&ue!==null}e.isProvided=d;function h(ue){return typeof ue=="string"}e.isString=h;function _(ue){return ue instanceof ArrayBuffer}e.isArrayBuffer=_;function ee(ue){return(0,a.default)(e.isBrowser,"isBlob can only be used in a browser environment"),ue instanceof Blob}e.isBlob=ee;function f(ue){return h(ue)&&/^data:/.test(ue)}e.isDataURI=f;function g(ue){(0,a.default)(f(ue),"Invalid data URI.");const[ae="",$=""]=ue.split(",");return ae.split(";").indexOf("base64")!==-1?atob($):unescape($)}e.dataURItoByteString=g;function he(){return e.isBrowser&&window.devicePixelRatio||1}e.getDevicePixelRatio=he;const ge="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function te(){(0,o.default)(!e.isLocalFileSystem,`Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ${ge}`)}e.displayCORSWarning=te;function re(){(0,o.default)(!e.isLocalFileSystem,`Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ${ge}`)}e.displayWorkerWarning=re;function be(ue){ue&&ue.cancel&&ue.cancel()}e.cancelRunningTask=be;function q(ue,ae){return Object.defineProperty(ue,"width",{get(){return this.view[2]*ae},configurable:!0}),Object.defineProperty(ue,"height",{get(){return this.view[3]*ae},configurable:!0}),Object.defineProperty(ue,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(ue,"originalHeight",{get(){return this.view[3]},configurable:!0}),ue}e.makePageCallback=q;function se(ue){return ue.name==="RenderingCancelledException"}e.isCancelException=se;function me(ue){return new Promise((ae,$)=>{const ie=new FileReader;ie.onload=()=>{if(!ie.result)return $(new Error("Error while reading a file."));ae(ie.result)},ie.onerror=we=>{if(!we.target)return $(new Error("Error while reading a file."));const{error:de}=we.target;if(!de)return $(new Error("Error while reading a file."));switch(de.code){case de.NOT_FOUND_ERR:return $(new Error("Error while reading a file: File not found."));case de.SECURITY_ERR:return $(new Error("Error while reading a file: Security error."));case de.ABORT_ERR:return $(new Error("Error while reading a file: Aborted."));default:return $(new Error("Error while reading a file."))}},ie.readAsArrayBuffer(ue)})}e.loadFromFile=me})(utils);var useResolver$1={};Object.defineProperty(useResolver$1,"__esModule",{value:!0});const react_1$l=reactExports;function reducer(e,i){switch(i.type){case"RESOLVE":return{value:i.value,error:void 0};case"REJECT":return{value:!1,error:i.error};case"RESET":return{value:void 0,error:void 0};default:return e}}function useResolver(){return(0,react_1$l.useReducer)(reducer,{value:void 0,error:void 0})}useResolver$1.default=useResolver;var propTypes={},__importDefault$n=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(propTypes,"__esModule",{value:!0});propTypes.isRotate=propTypes.isRenderMode=propTypes.isRef=propTypes.isPdf=propTypes.isPageNumber=propTypes.isPageIndex=propTypes.isPage=propTypes.isLinkTarget=propTypes.isLinkService=propTypes.isFile=propTypes.isClassName=propTypes.eventProps=void 0;const prop_types_1$3=__importDefault$n(propTypesExports),make_event_props_1$3=cjs$3,pdfjs_js_1$6=__importDefault$n(pdfjs$1),utils_js_1$b=utils,LinkService_js_1$1=__importDefault$n(LinkService$1),{PDFDataRangeTransport:PDFDataRangeTransport$1}=pdfjs_js_1$6.default;propTypes.eventProps=(()=>{const e={};return make_event_props_1$3.allEvents.forEach(i=>{e[i]=prop_types_1$3.default.func}),e})();const isTypedArray=prop_types_1$3.default.oneOfType([prop_types_1$3.default.instanceOf(Int8Array),prop_types_1$3.default.instanceOf(Uint8Array),prop_types_1$3.default.instanceOf(Uint8ClampedArray),prop_types_1$3.default.instanceOf(Int16Array),prop_types_1$3.default.instanceOf(Uint16Array),prop_types_1$3.default.instanceOf(Int32Array),prop_types_1$3.default.instanceOf(Uint32Array),prop_types_1$3.default.instanceOf(Float32Array),prop_types_1$3.default.instanceOf(Float64Array)]),fileTypes=[prop_types_1$3.default.string,prop_types_1$3.default.instanceOf(ArrayBuffer),prop_types_1$3.default.shape({data:prop_types_1$3.default.oneOfType([prop_types_1$3.default.string,prop_types_1$3.default.instanceOf(ArrayBuffer),prop_types_1$3.default.arrayOf(prop_types_1$3.default.number.isRequired),isTypedArray]).isRequired}),prop_types_1$3.default.shape({range:prop_types_1$3.default.instanceOf(PDFDataRangeTransport$1).isRequired}),prop_types_1$3.default.shape({url:prop_types_1$3.default.string.isRequired})];typeof Blob<"u"&&fileTypes.push(prop_types_1$3.default.instanceOf(Blob));propTypes.isClassName=prop_types_1$3.default.oneOfType([prop_types_1$3.default.string,prop_types_1$3.default.arrayOf(prop_types_1$3.default.string)]);propTypes.isFile=prop_types_1$3.default.oneOfType(fileTypes);propTypes.isLinkService=prop_types_1$3.default.instanceOf(LinkService_js_1$1.default);propTypes.isLinkTarget=prop_types_1$3.default.oneOf(["_self","_blank","_parent","_top"]);propTypes.isPage=prop_types_1$3.default.shape({commonObjs:prop_types_1$3.default.shape({}).isRequired,getAnnotations:prop_types_1$3.default.func.isRequired,getTextContent:prop_types_1$3.default.func.isRequired,getViewport:prop_types_1$3.default.func.isRequired,render:prop_types_1$3.default.func.isRequired});const isPageIndex=function e(i,a,o){const{[a]:c,pageNumber:d,pdf:h}=i;if(!(0,utils_js_1$b.isDefined)(h))return null;if((0,utils_js_1$b.isDefined)(c)){if(typeof c!="number")return new Error(`\`${a}\` of type \`${typeof c}\` supplied to \`${o}\`, expected \`number\`.`);if(c<0)return new Error(`Expected \`${a}\` to be greater or equal to 0.`);const{numPages:_}=h;if(c+1>_)return new Error(`Expected \`${a}\` to be less or equal to ${_-1}.`)}else if(!(0,utils_js_1$b.isDefined)(d))return new Error(`\`${a}\` not supplied. Either pageIndex or pageNumber must be supplied to \`${o}\`.`);return null};propTypes.isPageIndex=isPageIndex;const isPageNumber=function e(i,a,o){const{[a]:c,pageIndex:d,pdf:h}=i;if(!(0,utils_js_1$b.isDefined)(h))return null;if((0,utils_js_1$b.isDefined)(c)){if(typeof c!="number")return new Error(`\`${a}\` of type \`${typeof c}\` supplied to \`${o}\`, expected \`number\`.`);if(c<1)return new Error(`Expected \`${a}\` to be greater or equal to 1.`);const{numPages:_}=h;if(c>_)return new Error(`Expected \`${a}\` to be less or equal to ${_}.`)}else if(!(0,utils_js_1$b.isDefined)(d))return new Error(`\`${a}\` not supplied. Either pageIndex or pageNumber must be supplied to \`${o}\`.`);return null};propTypes.isPageNumber=isPageNumber;propTypes.isPdf=prop_types_1$3.default.oneOfType([prop_types_1$3.default.any,prop_types_1$3.default.oneOf([!1])]);propTypes.isRef=prop_types_1$3.default.oneOfType([prop_types_1$3.default.func,prop_types_1$3.default.exact({current:prop_types_1$3.default.any})]);propTypes.isRenderMode=prop_types_1$3.default.oneOf(["canvas","custom","none","svg"]);propTypes.isRotate=prop_types_1$3.default.oneOf([0,90,180,270]);var __createBinding$j=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$j=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$j=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$j(i,e,a);return __setModuleDefault$j(i,e),i},__awaiter$2=commonjsGlobal&&commonjsGlobal.__awaiter||function(e,i,a,o){function c(d){return d instanceof a?d:new a(function(h){h(d)})}return new(a||(a=Promise))(function(d,h){function _(g){try{f(o.next(g))}catch(he){h(he)}}function ee(g){try{f(o.throw(g))}catch(he){h(he)}}function f(g){g.done?d(g.value):c(g.value).then(_,ee)}f((o=o.apply(e,i||[])).next())})},__rest$5=commonjsGlobal&&commonjsGlobal.__rest||function(e,i){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&i.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,o=Object.getOwnPropertySymbols(e);c{switch(i){case PasswordResponses_js_1$1.default.NEED_PASSWORD:{const a=prompt("Enter the password to open this PDF file.");e(a);break}case PasswordResponses_js_1$1.default.INCORRECT_PASSWORD:{const a=prompt("Invalid password. Please try again.");e(a);break}}};function isParameterObject(e){return typeof e=="object"&&e!==null&&("data"in e||"range"in e||"url"in e)}const Document=(0,react_1$k.forwardRef)(function e(i,a){var{children:o,className:c,error:d="Failed to load PDF file.",externalLinkRel:h,externalLinkTarget:_,file:ee,inputRef:f,imageResourcesPath:g,loading:he="Loading PDF…",noData:ge="No PDF file specified.",onItemClick:te,onLoadError:re,onLoadProgress:be,onLoadSuccess:q,onPassword:se=defaultOnPassword,onSourceError:me,onSourceSuccess:ue,options:ae,renderMode:$,rotate:ie}=i,we=__rest$5(i,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]);const[de,m]=(0,useResolver_js_1$6.default)(),{value:_e,error:oe}=de,[Se,Ee]=(0,useResolver_js_1$6.default)(),{value:ye,error:je}=Se,Le=(0,react_1$k.useRef)(new LinkService_js_1.default),xe=(0,react_1$k.useRef)([]),Te=(0,react_1$k.useRef)(),Re=(0,react_1$k.useRef)();(0,react_1$k.useEffect)(()=>{ee&&ee!==Te.current&&isParameterObject(ee)&&((0,warning_1$7.default)(!(0,dequal_1.dequal)(ee,Te.current),`File prop passed to changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.`),Te.current=ee)},[ee]),(0,react_1$k.useEffect)(()=>{ae&&ae!==Re.current&&((0,warning_1$7.default)(!(0,dequal_1.dequal)(ae,Re.current),`Options prop passed to changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.`),Re.current=ae)},[ae]);const Fe=(0,react_1$k.useRef)({scrollPageIntoView:it=>{const{dest:Je,pageNumber:nt,pageIndex:ht=nt-1}=it;if(te){te({dest:Je,pageIndex:ht,pageNumber:nt});return}const ot=xe.current[ht];if(ot){ot.scrollIntoView();return}(0,warning_1$7.default)(!1,`An internal link leading to page ${nt} was clicked, but neither was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to and handle navigating by yourself or ensure that all pages are rendered within .`)}});(0,react_1$k.useImperativeHandle)(a,()=>({linkService:Le,pages:xe,viewer:Fe}),[]);function Ke(){ue&&ue()}function tt(){oe&&((0,warning_1$7.default)(!1,oe.toString()),me&&me(oe))}function Pe(){m({type:"RESET"})}(0,react_1$k.useEffect)(Pe,[ee,m]);const ne=(0,react_1$k.useCallback)(()=>__awaiter$2(this,void 0,void 0,function*(){if(!ee)return null;if(typeof ee=="string")return(0,utils_js_1$a.isDataURI)(ee)?{data:(0,utils_js_1$a.dataURItoByteString)(ee)}:((0,utils_js_1$a.displayCORSWarning)(),{url:ee});if(ee instanceof PDFDataRangeTransport)return{range:ee};if((0,utils_js_1$a.isArrayBuffer)(ee))return{data:ee};if(utils_js_1$a.isBrowser&&(0,utils_js_1$a.isBlob)(ee))return{data:yield(0,utils_js_1$a.loadFromFile)(ee)};if((0,tiny_invariant_1$9.default)(typeof ee=="object","Invalid parameter in file, need either Uint8Array, string or a parameter object"),(0,tiny_invariant_1$9.default)(isParameterObject(ee),"Invalid parameter object: need either .data, .range or .url"),"url"in ee&&typeof ee.url=="string"){if((0,utils_js_1$a.isDataURI)(ee.url)){const{url:it}=ee,Je=__rest$5(ee,["url"]),nt=(0,utils_js_1$a.dataURItoByteString)(it);return Object.assign({data:nt},Je)}(0,utils_js_1$a.displayCORSWarning)()}return ee}),[ee]);(0,react_1$k.useEffect)(()=>{const it=(0,make_cancellable_promise_1$6.default)(ne());return it.promise.then(Je=>{m({type:"RESOLVE",value:Je})}).catch(Je=>{m({type:"REJECT",error:Je})}),()=>{(0,utils_js_1$a.cancelRunningTask)(it)}},[ne,m]),(0,react_1$k.useEffect)(()=>{if(!(typeof _e>"u")){if(_e===!1){tt();return}Ke()}},[_e]);function fe(){ye&&(q&&q(ye),xe.current=new Array(ye.numPages),Le.current.setDocument(ye))}function b(){je&&((0,warning_1$7.default)(!1,je.toString()),re&&re(je))}function le(){Ee({type:"RESET"})}(0,react_1$k.useEffect)(le,[Ee,_e]);function ve(){if(!_e)return;const it=ae?Object.assign(Object.assign({},_e),ae):_e,Je=pdfjs_js_1$5.default.getDocument(it);be&&(Je.onProgress=be),se&&(Je.onPassword=se);const nt=Je;return nt.promise.then(ht=>{Ee({type:"RESOLVE",value:ht})}).catch(ht=>{nt.destroyed||Ee({type:"REJECT",error:ht})}),()=>{nt.destroy()}}(0,react_1$k.useEffect)(ve,[ae,Ee,_e]),(0,react_1$k.useEffect)(()=>{if(!(typeof ye>"u")){if(ye===!1){b();return}fe()}},[ye]);function Ae(){Le.current.setViewer(Fe.current),Le.current.setExternalLinkRel(h),Le.current.setExternalLinkTarget(_)}(0,react_1$k.useEffect)(Ae,[h,_]);function Ce(it,Je){xe.current[it]=Je}function Oe(it){delete xe.current[it]}const Ge=(0,react_1$k.useMemo)(()=>({imageResourcesPath:g,linkService:Le.current,onItemClick:te,pdf:ye,registerPage:Ce,renderMode:$,rotate:ie,unregisterPage:Oe}),[g,te,ye,$,ie]),qe=(0,react_1$k.useMemo)(()=>(0,make_event_props_1$2.default)(we,()=>ye),[we,ye]);function Ue(){return react_1$k.default.createElement(DocumentContext_js_1$1.default.Provider,{value:Ge},o)}function Ze(){return ee?ye==null?react_1$k.default.createElement(Message_js_1$1.default,{type:"loading"},typeof he=="function"?he():he):ye===!1?react_1$k.default.createElement(Message_js_1$1.default,{type:"error"},typeof d=="function"?d():d):Ue():react_1$k.default.createElement(Message_js_1$1.default,{type:"no-data"},typeof ge=="function"?ge():ge)}return react_1$k.default.createElement("div",Object.assign({className:(0,clsx_1$5.default)("react-pdf__Document",c),ref:f,style:{"--scale-factor":"1"}},qe),Ze())}),isFunctionOrNode$1=prop_types_1$2.default.oneOfType([prop_types_1$2.default.func,prop_types_1$2.default.node]);Document.propTypes=Object.assign(Object.assign({},propTypes_js_1$2.eventProps),{children:prop_types_1$2.default.node,className:propTypes_js_1$2.isClassName,error:isFunctionOrNode$1,externalLinkRel:prop_types_1$2.default.string,externalLinkTarget:prop_types_1$2.default.oneOf(["_self","_blank","_parent","_top"]),file:propTypes_js_1$2.isFile,imageResourcesPath:prop_types_1$2.default.string,inputRef:propTypes_js_1$2.isRef,loading:isFunctionOrNode$1,noData:isFunctionOrNode$1,onItemClick:prop_types_1$2.default.func,onLoadError:prop_types_1$2.default.func,onLoadProgress:prop_types_1$2.default.func,onLoadSuccess:prop_types_1$2.default.func,onPassword:prop_types_1$2.default.func,onSourceError:prop_types_1$2.default.func,onSourceSuccess:prop_types_1$2.default.func,options:prop_types_1$2.default.shape({canvasFactory:prop_types_1$2.default.any,canvasMaxAreaInBytes:prop_types_1$2.default.number,cMapPacked:prop_types_1$2.default.bool,CMapReaderFactory:prop_types_1$2.default.any,cMapUrl:prop_types_1$2.default.string,disableAutoFetch:prop_types_1$2.default.bool,disableFontFace:prop_types_1$2.default.bool,disableRange:prop_types_1$2.default.bool,disableStream:prop_types_1$2.default.bool,docBaseUrl:prop_types_1$2.default.string,enableXfa:prop_types_1$2.default.bool,filterFactory:prop_types_1$2.default.any,fontExtraProperties:prop_types_1$2.default.bool,httpHeaders:prop_types_1$2.default.object,isEvalSupported:prop_types_1$2.default.bool,isOffscreenCanvasSupported:prop_types_1$2.default.bool,length:prop_types_1$2.default.number,maxImageSize:prop_types_1$2.default.number,ownerDocument:prop_types_1$2.default.any,password:prop_types_1$2.default.string,pdfBug:prop_types_1$2.default.bool,rangeChunkSize:prop_types_1$2.default.number,StandardFontDataFactory:prop_types_1$2.default.any,standardFontDataUrl:prop_types_1$2.default.string,stopAtErrors:prop_types_1$2.default.bool,useSystemFonts:prop_types_1$2.default.bool,useWorkerFetch:prop_types_1$2.default.bool,verbosity:prop_types_1$2.default.number,withCredentials:prop_types_1$2.default.bool,worker:prop_types_1$2.default.any}),rotate:prop_types_1$2.default.number});Document$1.default=Document;var Outline$1={},OutlineContext={};Object.defineProperty(OutlineContext,"__esModule",{value:!0});const react_1$j=reactExports;OutlineContext.default=(0,react_1$j.createContext)(null);var OutlineItem$1={},Ref$1={};Object.defineProperty(Ref$1,"__esModule",{value:!0});class Ref{constructor({num:i,gen:a}){this.num=i,this.gen=a}toString(){let i=`${this.num}R`;return this.gen!==0&&(i+=this.gen),i}}Ref$1.default=Ref;var useCachedValue$1={};Object.defineProperty(useCachedValue$1,"__esModule",{value:!0});const react_1$i=reactExports,utils_js_1$9=utils;function useCachedValue(e){const i=(0,react_1$i.useRef)(),a=i.current;return(0,utils_js_1$9.isDefined)(a)?()=>a:()=>{const o=e();return i.current=o,o}}useCachedValue$1.default=useCachedValue;var useDocumentContext$1={},__importDefault$l=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(useDocumentContext$1,"__esModule",{value:!0});const react_1$h=reactExports,DocumentContext_js_1=__importDefault$l(DocumentContext);function useDocumentContext(){return(0,react_1$h.useContext)(DocumentContext_js_1.default)}useDocumentContext$1.default=useDocumentContext;var useOutlineContext$1={},__importDefault$k=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(useOutlineContext$1,"__esModule",{value:!0});const react_1$g=reactExports,OutlineContext_js_1$1=__importDefault$k(OutlineContext);function useOutlineContext(){return(0,react_1$g.useContext)(OutlineContext_js_1$1.default)}useOutlineContext$1.default=useOutlineContext;var __awaiter$1=commonjsGlobal&&commonjsGlobal.__awaiter||function(e,i,a,o){function c(d){return d instanceof a?d:new a(function(h){h(d)})}return new(a||(a=Promise))(function(d,h){function _(g){try{f(o.next(g))}catch(he){h(he)}}function ee(g){try{f(o.throw(g))}catch(he){h(he)}}function f(g){g.done?d(g.value):c(g.value).then(_,ee)}f((o=o.apply(e,i||[])).next())})},__rest$4=commonjsGlobal&&commonjsGlobal.__rest||function(e,i){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&i.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,o=Object.getOwnPropertySymbols(e);c in a or pass explicit `pdf` prop.");const f=(0,useCachedValue_js_1.default)(()=>typeof c.dest=="string"?_.getDestination(c.dest):c.dest),g=(0,useCachedValue_js_1.default)(()=>__awaiter$1(this,void 0,void 0,function*(){const re=yield f();if(!re)throw new Error("Destination not found.");const[be]=re;return _.getPageIndex(new Ref_js_1.default(be))})),he=(0,useCachedValue_js_1.default)(()=>__awaiter$1(this,void 0,void 0,function*(){return(yield g())+1}));function ge(re){re.preventDefault(),(0,tiny_invariant_1$8.default)(h||d,"Either onItemClick callback or linkService must be defined in order to navigate to an outline item."),h?Promise.all([f(),g(),he()]).then(([be,q,se])=>{h({dest:be,pageIndex:q,pageNumber:se})}):d&&d.goToDestination(c.dest)}function te(){if(!c.items||!c.items.length)return null;const{items:re}=c;return react_1$f.default.createElement("ul",null,re.map((be,q)=>react_1$f.default.createElement(OutlineItem,Object.assign({key:typeof be.dest=="string"?be.dest:q,item:be,pdf:_},ee))))}return react_1$f.default.createElement("li",null,react_1$f.default.createElement("a",{href:"#",onClick:ge},c.title),te())}OutlineItem$1.default=OutlineItem;var __createBinding$i=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$i=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$i=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$i(i,e,a);return __setModuleDefault$i(i,e),i},__rest$3=commonjsGlobal&&commonjsGlobal.__rest||function(e,i){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&i.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,o=Object.getOwnPropertySymbols(e);c in a or pass explicit `pdf` prop.");const[he,ge]=(0,useResolver_js_1$5.default)(),{value:te,error:re}=he;function be(){typeof te>"u"||te===!1||ee&&ee(te)}function q(){re&&((0,warning_1$6.default)(!1,re.toString()),_&&_(re))}function se(){ge({type:"RESET"})}(0,react_1$e.useEffect)(se,[ge,f]);function me(){if(!f)return;const ie=(0,make_cancellable_promise_1$5.default)(f.getOutline()),we=ie;return ie.promise.then(de=>{ge({type:"RESOLVE",value:de})}).catch(de=>{ge({type:"REJECT",error:de})}),()=>(0,utils_js_1$8.cancelRunningTask)(we)}(0,react_1$e.useEffect)(me,[ge,f]),(0,react_1$e.useEffect)(()=>{if(te!==void 0){if(te===!1){q();return}be()}},[te]);const ue=(0,react_1$e.useMemo)(()=>({onItemClick:h}),[h]),ae=(0,react_1$e.useMemo)(()=>(0,make_event_props_1$1.default)(g,()=>te),[g,te]);if(!te)return null;function $(){return te?react_1$e.default.createElement("ul",null,te.map((ie,we)=>react_1$e.default.createElement(OutlineItem_js_1.default,{key:typeof ie.dest=="string"?ie.dest:we,item:ie,pdf:f}))):null}return react_1$e.default.createElement("div",Object.assign({className:(0,clsx_1$4.default)("react-pdf__Outline",c),ref:d},ae),react_1$e.default.createElement(OutlineContext_js_1.default.Provider,{value:ue},$()))};Outline.propTypes=Object.assign(Object.assign({},propTypes_js_1$1.eventProps),{className:propTypes_js_1$1.isClassName,inputRef:propTypes_js_1$1.isRef,onItemClick:prop_types_1$1.default.func,onLoadError:prop_types_1$1.default.func,onLoadSuccess:prop_types_1$1.default.func,pdf:propTypes_js_1$1.isPdf});Outline$1.default=Outline;var Page$1={},cjs$1={};Object.defineProperty(cjs$1,"__esModule",{value:!0});function mergeRefs(){for(var e=[],i=0;i(0,structTreeUtils_js_1.getAttributes)(i),[i]),o=(0,react_1$c.useMemo)(()=>!(0,structTreeUtils_js_1.isStructTreeNode)(i)||(0,structTreeUtils_js_1.isStructTreeNodeWithOnlyContentChild)(i)?null:i.children.map((c,d)=>react_1$c.default.createElement(StructTreeItem,{key:d,node:c})),[i]);return react_1$c.default.createElement("span",Object.assign({className:e},a),o)}StructTreeItem$1.default=StructTreeItem;var usePageContext$1={},__importDefault$h=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(usePageContext$1,"__esModule",{value:!0});const react_1$b=reactExports,PageContext_js_1$1=__importDefault$h(PageContext);function usePageContext(){return(0,react_1$b.useContext)(PageContext_js_1$1.default)}usePageContext$1.default=usePageContext;var __createBinding$g=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$g=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$g=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$g(i,e,a);return __setModuleDefault$g(i,e),i},__importDefault$g=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(StructTree$1,"__esModule",{value:!0});const react_1$a=__importStar$g(reactExports),make_cancellable_promise_1$4=__importDefault$g(cjs$2),tiny_invariant_1$6=__importDefault$g(require$$2),warning_1$5=__importDefault$g(warning_1$8),StructTreeItem_js_1=__importDefault$g(StructTreeItem$1),usePageContext_js_1$5=__importDefault$g(usePageContext$1),useResolver_js_1$4=__importDefault$g(useResolver$1),utils_js_1$7=utils;function StructTree(){const e=(0,usePageContext_js_1$5.default)();(0,tiny_invariant_1$6.default)(e,"Unable to find Page context.");const{onGetStructTreeError:i,onGetStructTreeSuccess:a}=e,[o,c]=(0,useResolver_js_1$4.default)(),{value:d,error:h}=o,{customTextRenderer:_,page:ee}=e;function f(){d&&a&&a(d)}function g(){h&&((0,warning_1$5.default)(!1,h.toString()),i&&i(h))}function he(){c({type:"RESET"})}(0,react_1$a.useEffect)(he,[c,ee]);function ge(){if(_||!ee)return;const te=(0,make_cancellable_promise_1$4.default)(ee.getStructTree()),re=te;return te.promise.then(be=>{c({type:"RESOLVE",value:be})}).catch(be=>{c({type:"REJECT",error:be})}),()=>(0,utils_js_1$7.cancelRunningTask)(re)}return(0,react_1$a.useEffect)(ge,[_,ee,c]),(0,react_1$a.useEffect)(()=>{if(d!==void 0){if(d===!1){g();return}f()}},[d]),d?react_1$a.default.createElement(StructTreeItem_js_1.default,{className:"react-pdf__Page__structTree structTree",node:d}):null}StructTree$1.default=StructTree;var __createBinding$f=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$f=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$f=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$f(i,e,a);return __setModuleDefault$f(i,e),i},__importDefault$f=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PageCanvas$1,"__esModule",{value:!0});const react_1$9=__importStar$f(reactExports),merge_refs_1$1=__importDefault$f(cjs$1),tiny_invariant_1$5=__importDefault$f(require$$2),warning_1$4=__importDefault$f(warning_1$8),pdfjs_js_1$4=__importDefault$f(pdfjs$1),StructTree_js_1=__importDefault$f(StructTree$1),usePageContext_js_1$4=__importDefault$f(usePageContext$1),utils_js_1$6=utils,ANNOTATION_MODE=pdfjs_js_1$4.default.AnnotationMode;function PageCanvas(e){const i=(0,usePageContext_js_1$4.default)();(0,tiny_invariant_1$5.default)(i,"Unable to find Page context.");const a=Object.assign(Object.assign({},i),e),{_className:o,canvasBackground:c,devicePixelRatio:d=(0,utils_js_1$6.getDevicePixelRatio)(),onRenderError:h,onRenderSuccess:_,page:ee,renderForms:f,renderTextLayer:g,rotate:he,scale:ge}=a,{canvasRef:te}=e;(0,tiny_invariant_1$5.default)(ee,"Attempted to render page canvas, but no page was specified.");const re=(0,react_1$9.useRef)(null);function be(){ee&&_&&_((0,utils_js_1$6.makePageCallback)(ee,ge))}function q($){(0,utils_js_1$6.isCancelException)($)||((0,warning_1$4.default)(!1,$.toString()),h&&h($))}const se=(0,react_1$9.useMemo)(()=>ee.getViewport({scale:ge*d,rotation:he}),[d,ee,he,ge]),me=(0,react_1$9.useMemo)(()=>ee.getViewport({scale:ge,rotation:he}),[ee,he,ge]);function ue(){if(!ee)return;ee.cleanup();const{current:$}=re;if(!$)return;$.width=se.width,$.height=se.height,$.style.width=`${Math.floor(me.width)}px`,$.style.height=`${Math.floor(me.height)}px`,$.style.visibility="hidden";const ie={annotationMode:f?ANNOTATION_MODE.ENABLE_FORMS:ANNOTATION_MODE.ENABLE,canvasContext:$.getContext("2d",{alpha:!1}),viewport:se};c&&(ie.background=c);const we=ee.render(ie),de=we;return we.promise.then(()=>{$.style.visibility="",be()}).catch(q),()=>(0,utils_js_1$6.cancelRunningTask)(de)}(0,react_1$9.useEffect)(ue,[c,re,d,ee,f,se,me]);const ae=(0,react_1$9.useCallback)(()=>{const{current:$}=re;$&&($.width=0,$.height=0)},[re]);return(0,react_1$9.useEffect)(()=>ae,[ae]),react_1$9.default.createElement("canvas",{className:`${o}__canvas`,dir:"ltr",ref:(0,merge_refs_1$1.default)(te,re),style:{display:"block",userSelect:"none"}},g?react_1$9.default.createElement(StructTree_js_1.default,null):null)}PageCanvas$1.default=PageCanvas;var PageSVG$1={},__createBinding$e=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$e=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$e=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$e(i,e,a);return __setModuleDefault$e(i,e),i},__importDefault$e=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PageSVG$1,"__esModule",{value:!0});const react_1$8=__importStar$e(reactExports),make_cancellable_promise_1$3=__importDefault$e(cjs$2),tiny_invariant_1$4=__importDefault$e(require$$2),warning_1$3=__importDefault$e(warning_1$8),pdfjs_js_1$3=__importDefault$e(pdfjs$1),usePageContext_js_1$3=__importDefault$e(usePageContext$1),useResolver_js_1$3=__importDefault$e(useResolver$1),utils_js_1$5=utils;function PageSVG(){const e=(0,usePageContext_js_1$3.default)();(0,tiny_invariant_1$4.default)(e,"Unable to find Page context.");const{_className:i,onRenderSuccess:a,onRenderError:o,page:c,rotate:d,scale:h}=e;(0,tiny_invariant_1$4.default)(c,"Attempted to render page SVG, but no page was specified.");const[_,ee]=(0,useResolver_js_1$3.default)(),{value:f,error:g}=_;function he(){c&&a&&a((0,utils_js_1$5.makePageCallback)(c,h))}function ge(){g&&((0,utils_js_1$5.isCancelException)(g)||((0,warning_1$3.default)(!1,g.toString()),o&&o(g)))}const te=(0,react_1$8.useMemo)(()=>c.getViewport({scale:h,rotation:d}),[c,d,h]);function re(){ee({type:"RESET"})}(0,react_1$8.useEffect)(re,[c,ee,te]);function be(){if(!c)return;const ue=(0,make_cancellable_promise_1$3.default)(c.getOperatorList());return ue.promise.then(ae=>{new pdfjs_js_1$3.default.SVGGraphics(c.commonObjs,c.objs).getSVG(ae,te).then(ie=>{if(!(ie instanceof SVGElement))throw new Error("getSVG returned unexpected result.");ee({type:"RESOLVE",value:ie})}).catch(ie=>{ee({type:"REJECT",error:ie})})}).catch(ae=>{ee({type:"REJECT",error:ae})}),()=>(0,utils_js_1$5.cancelRunningTask)(ue)}(0,react_1$8.useEffect)(be,[c,ee,te]),(0,react_1$8.useEffect)(()=>{if(f!==void 0){if(f===!1){ge();return}he()}},[f]);function q(ue){if(!ue||!f)return;ue.firstElementChild||ue.appendChild(f);const{width:ae,height:$}=te;f.setAttribute("width",`${ae}`),f.setAttribute("height",`${$}`)}const{width:se,height:me}=te;return react_1$8.default.createElement("div",{className:`${i}__svg`,ref:ue=>q(ue),style:{display:"block",backgroundColor:"white",overflow:"hidden",width:se,height:me,userSelect:"none"}})}PageSVG$1.default=PageSVG;var TextLayer$1={},__createBinding$d=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$d=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$d=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$d(i,e,a);return __setModuleDefault$d(i,e),i},__importDefault$d=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(TextLayer$1,"__esModule",{value:!0});const react_1$7=__importStar$d(reactExports),make_cancellable_promise_1$2=__importDefault$d(cjs$2),clsx_1$3=__importDefault$d(require$$1),tiny_invariant_1$3=__importDefault$d(require$$2),warning_1$2=__importDefault$d(warning_1$8),pdfjs_js_1$2=__importDefault$d(pdfjs$1),usePageContext_js_1$2=__importDefault$d(usePageContext$1),useResolver_js_1$2=__importDefault$d(useResolver$1),utils_js_1$4=utils;function isTextItem(e){return"str"in e}function TextLayer(){const e=(0,usePageContext_js_1$2.default)();(0,tiny_invariant_1$3.default)(e,"Unable to find Page context.");const{customTextRenderer:i,onGetTextError:a,onGetTextSuccess:o,onRenderTextLayerError:c,onRenderTextLayerSuccess:d,page:h,pageIndex:_,pageNumber:ee,rotate:f,scale:g}=e;(0,tiny_invariant_1$3.default)(h,"Attempted to load page text content, but no page was specified.");const[he,ge]=(0,useResolver_js_1$2.default)(),{value:te,error:re}=he,be=(0,react_1$7.useRef)(null),q=(0,react_1$7.useRef)();(0,warning_1$2.default)(parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10)===1,"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer");function se(){te&&o&&o(te)}function me(){re&&((0,warning_1$2.default)(!1,re.toString()),a&&a(re))}function ue(){ge({type:"RESET"})}(0,react_1$7.useEffect)(ue,[h,ge]);function ae(){if(!h)return;const oe=(0,make_cancellable_promise_1$2.default)(h.getTextContent()),Se=oe;return oe.promise.then(Ee=>{ge({type:"RESOLVE",value:Ee})}).catch(Ee=>{ge({type:"REJECT",error:Ee})}),()=>(0,utils_js_1$4.cancelRunningTask)(Se)}(0,react_1$7.useEffect)(ae,[h,ge]),(0,react_1$7.useEffect)(()=>{if(te!==void 0){if(te===!1){me();return}se()}},[te]);const $=(0,react_1$7.useCallback)(()=>{d&&d()},[d]),ie=(0,react_1$7.useCallback)(oe=>{(0,warning_1$2.default)(!1,oe.toString()),c&&c(oe)},[c]);function we(){const oe=q.current;oe&&oe.classList.add("active")}function de(){const oe=q.current;oe&&oe.classList.remove("active")}const m=(0,react_1$7.useMemo)(()=>h.getViewport({scale:g,rotation:f}),[h,f,g]);function _e(){if(!h||!te)return;const{current:oe}=be;if(!oe)return;oe.innerHTML="";const Se=h.streamTextContent({includeMarkedContent:!0}),Ee={container:oe,textContentSource:Se,viewport:m},ye=pdfjs_js_1$2.default.renderTextLayer(Ee),je=ye;return ye.promise.then(()=>{const Le=document.createElement("div");Le.className="endOfContent",oe.append(Le),q.current=Le;const xe=oe.querySelectorAll('[role="presentation"]');if(i){let Te=0;te.items.forEach((Re,Fe)=>{if(!isTextItem(Re))return;const Ke=xe[Te];if(!Ke)return;const tt=i(Object.assign({pageIndex:_,pageNumber:ee,itemIndex:Fe},Re));Ke.innerHTML=tt,Te+=Re.str&&Re.hasEOL?2:1})}$()}).catch(ie),()=>(0,utils_js_1$4.cancelRunningTask)(je)}return(0,react_1$7.useLayoutEffect)(_e,[i,ie,$,h,_,ee,te,m]),react_1$7.default.createElement("div",{className:(0,clsx_1$3.default)("react-pdf__Page__textContent","textLayer"),onMouseUp:de,onMouseDown:we,ref:be})}TextLayer$1.default=TextLayer;var AnnotationLayer$1={},__createBinding$c=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$c=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$c=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$c(i,e,a);return __setModuleDefault$c(i,e),i},__importDefault$c=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(AnnotationLayer$1,"__esModule",{value:!0});const react_1$6=__importStar$c(reactExports),make_cancellable_promise_1$1=__importDefault$c(cjs$2),clsx_1$2=__importDefault$c(require$$1),tiny_invariant_1$2=__importDefault$c(require$$2),warning_1$1=__importDefault$c(warning_1$8),pdfjs_js_1$1=__importDefault$c(pdfjs$1),useDocumentContext_js_1$3=__importDefault$c(useDocumentContext$1),usePageContext_js_1$1=__importDefault$c(usePageContext$1),useResolver_js_1$1=__importDefault$c(useResolver$1),utils_js_1$3=utils;function AnnotationLayer(){const e=(0,useDocumentContext_js_1$3.default)(),i=(0,usePageContext_js_1$1.default)();(0,tiny_invariant_1$2.default)(i,"Unable to find Page context.");const a=Object.assign(Object.assign({},e),i),{imageResourcesPath:o,linkService:c,onGetAnnotationsError:d,onGetAnnotationsSuccess:h,onRenderAnnotationLayerError:_,onRenderAnnotationLayerSuccess:ee,page:f,pdf:g,renderForms:he,rotate:ge,scale:te=1}=a;(0,tiny_invariant_1$2.default)(g,"Attempted to load page annotations, but no document was specified. Wrap in a or pass explicit `pdf` prop."),(0,tiny_invariant_1$2.default)(f,"Attempted to load page annotations, but no page was specified."),(0,tiny_invariant_1$2.default)(c,"Attempted to load page annotations, but no linkService was specified.");const[re,be]=(0,useResolver_js_1$1.default)(),{value:q,error:se}=re,me=(0,react_1$6.useRef)(null);(0,warning_1$1.default)(parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10)===1,"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations");function ue(){q&&h&&h(q)}function ae(){se&&((0,warning_1$1.default)(!1,se.toString()),d&&d(se))}function $(){be({type:"RESET"})}(0,react_1$6.useEffect)($,[be,f]);function ie(){if(!f)return;const oe=(0,make_cancellable_promise_1$1.default)(f.getAnnotations()),Se=oe;return oe.promise.then(Ee=>{be({type:"RESOLVE",value:Ee})}).catch(Ee=>{be({type:"REJECT",error:Ee})}),()=>{(0,utils_js_1$3.cancelRunningTask)(Se)}}(0,react_1$6.useEffect)(ie,[be,f,he]),(0,react_1$6.useEffect)(()=>{if(q!==void 0){if(q===!1){ae();return}ue()}},[q]);function we(){ee&&ee()}function de(oe){(0,warning_1$1.default)(!1,`${oe}`),_&&_(oe)}const m=(0,react_1$6.useMemo)(()=>f.getViewport({scale:te,rotation:ge}),[f,ge,te]);function _e(){if(!g||!f||!c||!q)return;const{current:oe}=me;if(!oe)return;const Se=m.clone({dontFlip:!0}),Ee={accessibilityManager:null,annotationCanvasMap:null,div:oe,l10n:null,page:f,viewport:Se},ye={annotations:q,annotationStorage:g.annotationStorage,div:oe,downloadManager:null,imageResourcesPath:o,linkService:c,page:f,renderForms:he,viewport:Se};oe.innerHTML="";try{new pdfjs_js_1$1.default.AnnotationLayer(Ee).render(ye),we()}catch(je){de(je)}return()=>{}}return(0,react_1$6.useEffect)(_e,[q,o,c,f,he,m]),react_1$6.default.createElement("div",{className:(0,clsx_1$2.default)("react-pdf__Page__annotations","annotationLayer"),ref:me})}AnnotationLayer$1.default=AnnotationLayer;var __createBinding$b=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$b=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}:function(e,i){e.default=i}),__importStar$b=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$b(i,e,a);return __setModuleDefault$b(i,e),i},__rest$2=commonjsGlobal&&commonjsGlobal.__rest||function(e,i){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&i.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,o=Object.getOwnPropertySymbols(e);c in a or pass explicit `pdf` prop.");const Ue=(0,utils_js_1$2.isProvided)(xe)?xe-1:Le??null,Ze=xe??((0,utils_js_1$2.isProvided)(Le)?Le+1:null),it=ne??(Oe?Oe.rotate:null),Je=(0,react_1$5.useMemo)(()=>{if(!Oe)return null;let Ct=1;const $t=fe??defaultScale;if(le||re){const Rt=Oe.getViewport({scale:1,rotation:it});le?Ct=le/Rt.width:re&&(Ct=re/Rt.height)}return $t*Ct},[re,Oe,it,fe,le]);function nt(){return()=>{(0,utils_js_1$2.isProvided)(Ue)&&d&&b&&b(Ue)}}(0,react_1$5.useEffect)(nt,[d,Te,Ue,b]);function ht(){if(m){if(!Oe||!Je)return;m((0,utils_js_1$2.makePageCallback)(Oe,Je))}if(d&&Re){if(!(0,utils_js_1$2.isProvided)(Ue)||!qe.current)return;Re(Ue,qe.current)}}function ot(){Ge&&((0,warning_1.default)(!1,Ge.toString()),de&&de(Ge))}function mt(){Ce({type:"RESET"})}(0,react_1$5.useEffect)(mt,[Ce,Te,Ue]);function st(){if(!Te||!Ze)return;const Ct=(0,make_cancellable_promise_1.default)(Te.getPage(Ze)),$t=Ct;return Ct.promise.then(Rt=>{Ce({type:"RESOLVE",value:Rt})}).catch(Rt=>{Ce({type:"REJECT",error:Rt})}),()=>(0,utils_js_1$2.cancelRunningTask)($t)}(0,react_1$5.useEffect)(st,[Ce,Te,Ue,Ze,Re]),(0,react_1$5.useEffect)(()=>{if(Oe!==void 0){if(Oe===!1){ot();return}ht()}},[Oe,Je]);const Ve=(0,react_1$5.useMemo)(()=>Oe&&(0,utils_js_1$2.isProvided)(Ue)&&Ze&&(0,utils_js_1$2.isProvided)(it)&&(0,utils_js_1$2.isProvided)(Je)?{_className:c,canvasBackground:h,customTextRenderer:he,devicePixelRatio:ge,onGetAnnotationsError:me,onGetAnnotationsSuccess:ue,onGetStructTreeError:ae,onGetStructTreeSuccess:$,onGetTextError:ie,onGetTextSuccess:we,onRenderAnnotationLayerError:_e,onRenderAnnotationLayerSuccess:oe,onRenderError:Se,onRenderSuccess:Ee,onRenderTextLayerError:ye,onRenderTextLayerSuccess:je,page:Oe,pageIndex:Ue,pageNumber:Ze,renderForms:Ke,renderTextLayer:Pe,rotate:it,scale:Je}:null,[c,h,he,ge,me,ue,ae,$,ie,we,_e,oe,Se,Ee,ye,je,Oe,Ue,Ze,Ke,Pe,it,Je]),We=(0,react_1$5.useMemo)(()=>(0,make_event_props_1.default)(ve,()=>Oe&&(Je?(0,utils_js_1$2.makePageCallback)(Oe,Je):void 0)),[ve,Oe,Je]),He=`${Ue}@${Je}/${it}`,at=`${Ue}/${it}`;function ft(){switch(tt){case"custom":return(0,tiny_invariant_1$1.default)(g,'renderMode was set to "custom", but no customRenderer was passed.'),react_1$5.default.createElement(g,{key:`${He}_custom`});case"none":return null;case"svg":return react_1$5.default.createElement(PageSVG_js_1.default,{key:`${at}_svg`});case"canvas":default:return react_1$5.default.createElement(PageCanvas_js_1.default,{key:`${He}_canvas`,canvasRef:_})}}function Pt(){return Pe?react_1$5.default.createElement(TextLayer_js_1.default,{key:`${He}_text`}):null}function Tt(){return Fe?react_1$5.default.createElement(AnnotationLayer_js_1.default,{key:`${He}_annotations`}):null}function Et(){return react_1$5.default.createElement(PageContext_js_1.default.Provider,{value:Ve},ft(),Pt(),Tt(),ee)}function jt(){return Ze?Te===null||Oe===void 0||Oe===null?react_1$5.default.createElement(Message_js_1.default,{type:"loading"},typeof q=="function"?q():q):Te===!1||Oe===!1?react_1$5.default.createElement(Message_js_1.default,{type:"error"},typeof te=="function"?te():te):Et():react_1$5.default.createElement(Message_js_1.default,{type:"no-data"},typeof se=="function"?se():se)}return react_1$5.default.createElement("div",Object.assign({className:(0,clsx_1$1.default)(c,f),"data-page-number":Ze,ref:(0,merge_refs_1.default)(be,qe),style:{"--scale-factor":`${Je}`,backgroundColor:h||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},We),jt())},isFunctionOrNode=prop_types_1.default.oneOfType([prop_types_1.default.func,prop_types_1.default.node]);Page.propTypes=Object.assign(Object.assign({},propTypes_js_1.eventProps),{canvasBackground:prop_types_1.default.string,canvasRef:propTypes_js_1.isRef,children:prop_types_1.default.node,className:propTypes_js_1.isClassName,customRenderer:prop_types_1.default.func,customTextRenderer:prop_types_1.default.func,devicePixelRatio:prop_types_1.default.number,error:isFunctionOrNode,height:prop_types_1.default.number,imageResourcesPath:prop_types_1.default.string,inputRef:propTypes_js_1.isRef,loading:isFunctionOrNode,noData:isFunctionOrNode,onGetTextError:prop_types_1.default.func,onGetTextSuccess:prop_types_1.default.func,onLoadError:prop_types_1.default.func,onLoadSuccess:prop_types_1.default.func,onRenderError:prop_types_1.default.func,onRenderSuccess:prop_types_1.default.func,onRenderTextLayerError:prop_types_1.default.func,onRenderTextLayerSuccess:prop_types_1.default.func,pageIndex:propTypes_js_1.isPageIndex,pageNumber:propTypes_js_1.isPageNumber,pdf:propTypes_js_1.isPdf,renderAnnotationLayer:prop_types_1.default.bool,renderForms:prop_types_1.default.bool,renderMode:propTypes_js_1.isRenderMode,renderTextLayer:prop_types_1.default.bool,rotate:propTypes_js_1.isRotate,scale:prop_types_1.default.number,width:prop_types_1.default.number});Page$1.default=Page;var Thumbnail$1={},__rest$1=commonjsGlobal&&commonjsGlobal.__rest||function(e,i){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&i.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,o=Object.getOwnPropertySymbols(e);c in a or pass explicit `pdf` prop.");const g=(0,utils_js_1$1.isProvided)(ee)?ee-1:_??null,he=ee??((0,utils_js_1$1.isProvided)(_)?_+1:null);function ge(re){re.preventDefault(),!(!(0,utils_js_1$1.isProvided)(g)||!he)&&((0,tiny_invariant_1.default)(h||d,"Either onItemClick callback or linkService must be defined in order to navigate to an outline item."),h?h({pageIndex:g,pageNumber:he}):d&&d.goToPage(he))}const te=__rest$1(i,["className","onItemClick"]);return react_1$4.default.createElement("a",{className:(0,clsx_1.default)("react-pdf__Thumbnail",c),href:he?"#":void 0,onClick:ge},react_1$4.default.createElement(Page_js_1$1.default,Object.assign({},te,{_className:"react-pdf__Thumbnail__page",_enableRegisterUnregisterPage:!1,renderAnnotationLayer:!1,renderTextLayer:!1})))};Thumbnail$1.default=Thumbnail;var __importDefault$9=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cjs$4,"__esModule",{value:!0});cjs$4.PasswordResponses=cjs$4.usePageContext=cjs$4.useOutlineContext=cjs$4.useDocumentContext=cjs$4.Thumbnail=cjs$4.Page=cjs$4.Outline=cjs$4.Document=cjs$4.pdfjs=void 0;const pdfjs_js_1=__importDefault$9(pdfjs$1);cjs$4.pdfjs=pdfjs_js_1.default;const Document_js_1=__importDefault$9(Document$1);cjs$4.Document=Document_js_1.default;const Outline_js_1=__importDefault$9(Outline$1);cjs$4.Outline=Outline_js_1.default;const Page_js_1=__importDefault$9(Page$1);cjs$4.Page=Page_js_1.default;const Thumbnail_js_1=__importDefault$9(Thumbnail$1);cjs$4.Thumbnail=Thumbnail_js_1.default;const useDocumentContext_js_1=__importDefault$9(useDocumentContext$1);cjs$4.useDocumentContext=useDocumentContext_js_1.default;const useOutlineContext_js_1=__importDefault$9(useOutlineContext$1);cjs$4.useOutlineContext=useOutlineContext_js_1.default;const usePageContext_js_1=__importDefault$9(usePageContext$1);cjs$4.usePageContext=usePageContext_js_1.default;const PasswordResponses_js_1=__importDefault$9(PasswordResponses$1);cjs$4.PasswordResponses=PasswordResponses_js_1.default;const utils_js_1=utils;(0,utils_js_1.displayWorkerWarning)();pdfjs_js_1.default.GlobalWorkerOptions.workerSrc="pdf.worker.js";(function(e){var i=commonjsGlobal&&commonjsGlobal.__makeTemplateObject||function(q,se){return Object.defineProperty?Object.defineProperty(q,"raw",{value:se}):q.raw=se,q},a=commonjsGlobal&&commonjsGlobal.__assign||function(){return a=Object.assign||function(q){for(var se,me=1,ue=arguments.length;meye+1)&&(Ke(!0),ue()),je(ye+1)},ne=function(){je(ye-1),Fe&&Ke(!1)};return _.useEffect(function(){return f.pdfjs.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(f.pdfjs.version,"/pdf.worker.js"),Te(!0),function(){return Te(!1)}},[]),_.useEffect(function(){ye===oe&&me&&me()},[oe,ye]),se?(0,h.jsxs)(ge,a({className:"wellms-component ".concat(m)},{children:[xe&&se&&(0,h.jsx)(f.Document,a({loading:tt("Loading"),onLoadSuccess:function(fe){var b=fe.numPages;return Se(b)},file:se},$,{children:(0,h.jsx)(f.Page,a({pageNumber:ye,renderAnnotationLayer:!1},we))})),oe&&oe>1&&(0,h.jsxs)("div",a({className:"pagination-area"},{children:[(0,h.jsxs)(g.Text,{children:[(0,h.jsx)("strong",{children:ye})," ",tt("PdfPlayer.of")," ",(0,h.jsx)("strong",{children:oe})]}),(0,h.jsxs)("div",{children:[(0,h.jsx)(g.Button,a({mode:"secondary",disabled:!(ye>1),className:"nav-btn-modal",onClick:ne},{children:tt("Prev")})),(0,h.jsx)(g.Button,a({style:{marginLeft:"10px"},mode:"secondary",disabled:ue?Fe:!(oe>ye),className:"nav-btn-modal",onClick:Pe},{children:tt("Next")}))]})]}))]})):(0,h.jsx)("p",{children:tt("PdfPlayer.notFound")})};e.PdfPlayer=te,e.default=(0,ee.withTheme)((0,ee.default)(e.PdfPlayer)(be||(be=i([""],[""]))));var re,be})(PdfPlayer);var ImagePlayer={};(function(e){var i=commonjsGlobal&&commonjsGlobal.__makeTemplateObject||function(me,ue){return Object.defineProperty?Object.defineProperty(me,"raw",{value:ue}):me.raw=ue,me},a=commonjsGlobal&&commonjsGlobal.__assign||function(){return a=Object.assign||function(me){for(var ue,ae=1,$=arguments.length;ae<$;ae++){ue=arguments[ae];for(var ie in ue)Object.prototype.hasOwnProperty.call(ue,ie)&&(me[ie]=ue[ie])}return me},a.apply(this,arguments)},o=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(me,ue,ae,$){$===void 0&&($=ae);var ie=Object.getOwnPropertyDescriptor(ue,ae);(!ie||("get"in ie?!ue.__esModule:ie.writable||ie.configurable))&&(ie={enumerable:!0,get:function(){return ue[ae]}}),Object.defineProperty(me,$,ie)}:function(me,ue,ae,$){$===void 0&&($=ae),me[$]=ue[ae]}),c=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(me,ue){Object.defineProperty(me,"default",{enumerable:!0,value:ue})}:function(me,ue){me.default=ue}),d=commonjsGlobal&&commonjsGlobal.__importStar||function(me){if(me&&me.__esModule)return me;var ue={};if(me!=null)for(var ae in me)ae!=="default"&&Object.prototype.hasOwnProperty.call(me,ae)&&o(ue,me,ae);return c(ue,me),ue};Object.defineProperty(e,"__esModule",{value:!0}),e.ImagePlayer=void 0;var h=jsxRuntimeExports,_=reactExports,ee=require$$2$2,f=d(require$$1$1),g=utils$3,he=ResponsiveImage,ge=(0,f.default)("div")(be||(be=i([` +`]))),te=function(q){var se=q.url,me=q.onLoad,ue=q.onTopicEnd,ae=q.documentConfig,$=ae===void 0?{}:ae,ie=q.pageConfig,we=ie===void 0?{}:ie,de=q.className,m=de===void 0?"":de,_e=_.useState(null),oe=_e[0],Se=_e[1],Ee=_.useState(1),ye=Ee[0],je=Ee[1],Le=_.useState(!1),xe=Le[0],Te=Le[1],Re=_.useState(!1),Fe=Re[0],Ke=Re[1],tt=(0,he.useTranslation)().t,Pe=function(){ue&&oe&&!(oe>ye+1)&&(Ke(!0),ue()),je(ye+1)},ne=function(){je(ye-1),Fe&&Ke(!1)};return _.useEffect(function(){return f.pdfjs.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(f.pdfjs.version,"/pdf.worker.js"),Te(!0),function(){return Te(!1)}},[]),_.useEffect(function(){ye===oe&&me&&me()},[oe,ye]),se?(0,h.jsxs)(ge,a({className:"wellms-component ".concat(m)},{children:[xe&&se&&(0,h.jsx)(f.Document,a({loading:tt("Loading"),onLoadSuccess:function(fe){var b=fe.numPages;return Se(b)},file:se},$,{children:(0,h.jsx)(f.Page,a({pageNumber:ye,renderAnnotationLayer:!1},we))})),oe&&oe>1&&(0,h.jsxs)("div",a({className:"pagination-area"},{children:[(0,h.jsxs)(g.Text,{children:[(0,h.jsx)("strong",{children:ye})," ",tt("PdfPlayer.of")," ",(0,h.jsx)("strong",{children:oe})]}),(0,h.jsxs)("div",{children:[(0,h.jsx)(g.Button,a({mode:"secondary",disabled:!(ye>1),className:"nav-btn-modal",onClick:ne},{children:tt("Prev")})),(0,h.jsx)(g.Button,a({style:{marginLeft:"10px"},mode:"secondary",disabled:ue?Fe:!(oe>ye),className:"nav-btn-modal",onClick:Pe},{children:tt("Next")}))]})]}))]})):(0,h.jsx)("p",{children:tt("PdfPlayer.notFound")})};e.PdfPlayer=te,e.default=(0,ee.withTheme)((0,ee.default)(e.PdfPlayer)(be||(be=i([""],[""]))));var re,be})(PdfPlayer);var ImagePlayer={};(function(e){var i=commonjsGlobal&&commonjsGlobal.__makeTemplateObject||function(me,ue){return Object.defineProperty?Object.defineProperty(me,"raw",{value:ue}):me.raw=ue,me},a=commonjsGlobal&&commonjsGlobal.__assign||function(){return a=Object.assign||function(me){for(var ue,ae=1,$=arguments.length;ae<$;ae++){ue=arguments[ae];for(var ie in ue)Object.prototype.hasOwnProperty.call(ue,ie)&&(me[ie]=ue[ie])}return me},a.apply(this,arguments)},o=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(me,ue,ae,$){$===void 0&&($=ae);var ie=Object.getOwnPropertyDescriptor(ue,ae);(!ie||("get"in ie?!ue.__esModule:ie.writable||ie.configurable))&&(ie={enumerable:!0,get:function(){return ue[ae]}}),Object.defineProperty(me,$,ie)}:function(me,ue,ae,$){$===void 0&&($=ae),me[$]=ue[ae]}),c=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(me,ue){Object.defineProperty(me,"default",{enumerable:!0,value:ue})}:function(me,ue){me.default=ue}),d=commonjsGlobal&&commonjsGlobal.__importStar||function(me){if(me&&me.__esModule)return me;var ue={};if(me!=null)for(var ae in me)ae!=="default"&&Object.prototype.hasOwnProperty.call(me,ae)&&o(ue,me,ae);return c(ue,me),ue};Object.defineProperty(e,"__esModule",{value:!0}),e.ImagePlayer=void 0;var h=jsxRuntimeExports,_=reactExports,ee=require$$2$2,f=d(require$$6$1),g=utils$3,he=ResponsiveImage,ge=(0,f.default)("div")(be||(be=i([` > div { cursor: pointer; @@ -693,7 +693,7 @@ globstar while`,m,Re,_e,Fe,Ke),this.matchOne(m.slice(Re),_e.slice(Fe),oe))return } }); })(H5P.jQuery); - `)})]}))})]}));return window.URL.createObjectURL(new Blob([(0,_.unescape)(Ee).split("'").join("'")],{type:"text/html"}))},[re]);return(0,c.jsx)("div",i({className:"h5p-player",style:{display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",flexDirection:"row"}},{children:(0,c.jsx)("iframe",{ref:ae,title:"player",src:de,style:{display:"block",border:"none",flexGrow:1,flexShrink:1,height:me}})}))};e.Player=he,e.default=e.Player})(player);(function(e){var i=commonjsGlobal&&commonjsGlobal.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(e,"__esModule",{value:!0}),e.ContextlessPlayer=e.ContextlessEditor=e.Player=e.Editor=e.EditorContext=e.EditorContextProvider=void 0;var a=context;Object.defineProperty(e,"EditorContextProvider",{enumerable:!0,get:function(){return a.EditorContextProvider}}),Object.defineProperty(e,"EditorContext",{enumerable:!0,get:function(){return a.EditorContext}});var o=i(editor$1);e.Editor=o.default;var c=i(player$1);e.Player=c.default;var d=i(editor);e.ContextlessEditor=d.default;var h=i(player);e.ContextlessPlayer=h.default,e.default={EditorContextProvider:a.EditorContextProvider,EditorContext:a.EditorContext,Editor:o.default,Player:c.default,ContextlessEditor:d.default,ContextlessPlayer:h.default}})(lib);(function(e){var i=commonjsGlobal&&commonjsGlobal.__makeTemplateObject||function(me,ue){return Object.defineProperty?Object.defineProperty(me,"raw",{value:ue}):me.raw=ue,me},a=commonjsGlobal&&commonjsGlobal.__assign||function(){return a=Object.assign||function(me){for(var ue,ae=1,$=arguments.length;ae<$;ae++){ue=arguments[ae];for(var ie in ue)Object.prototype.hasOwnProperty.call(ue,ie)&&(me[ie]=ue[ie])}return me},a.apply(this,arguments)},o=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(me,ue,ae,$){$===void 0&&($=ae);var ie=Object.getOwnPropertyDescriptor(ue,ae);(!ie||("get"in ie?!ue.__esModule:ie.writable||ie.configurable))&&(ie={enumerable:!0,get:function(){return ue[ae]}}),Object.defineProperty(me,$,ie)}:function(me,ue,ae,$){$===void 0&&($=ae),me[$]=ue[ae]}),c=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(me,ue){Object.defineProperty(me,"default",{enumerable:!0,value:ue})}:function(me,ue){me.default=ue}),d=commonjsGlobal&&commonjsGlobal.__importStar||function(me){if(me&&me.__esModule)return me;var ue={};if(me!=null)for(var ae in me)ae!=="default"&&Object.prototype.hasOwnProperty.call(me,ae)&&o(ue,me,ae);return c(ue,me),ue};Object.defineProperty(e,"__esModule",{value:!0}),e.H5Player=void 0;var h=jsxRuntimeExports,_=reactExports,ee=d(require$$1$1),f=lib,g=requireContext(),he=provider,ge=Spin,te=utils$3,re=(0,ee.default)("div")(q||(q=i([` + `)})]}))})]}));return window.URL.createObjectURL(new Blob([(0,_.unescape)(Ee).split("'").join("'")],{type:"text/html"}))},[re]);return(0,c.jsx)("div",i({className:"h5p-player",style:{display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",flexDirection:"row"}},{children:(0,c.jsx)("iframe",{ref:ae,title:"player",src:de,style:{display:"block",border:"none",flexGrow:1,flexShrink:1,height:me}})}))};e.Player=he,e.default=e.Player})(player);(function(e){var i=commonjsGlobal&&commonjsGlobal.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(e,"__esModule",{value:!0}),e.ContextlessPlayer=e.ContextlessEditor=e.Player=e.Editor=e.EditorContext=e.EditorContextProvider=void 0;var a=context;Object.defineProperty(e,"EditorContextProvider",{enumerable:!0,get:function(){return a.EditorContextProvider}}),Object.defineProperty(e,"EditorContext",{enumerable:!0,get:function(){return a.EditorContext}});var o=i(editor$1);e.Editor=o.default;var c=i(player$1);e.Player=c.default;var d=i(editor);e.ContextlessEditor=d.default;var h=i(player);e.ContextlessPlayer=h.default,e.default={EditorContextProvider:a.EditorContextProvider,EditorContext:a.EditorContext,Editor:o.default,Player:c.default,ContextlessEditor:d.default,ContextlessPlayer:h.default}})(lib);(function(e){var i=commonjsGlobal&&commonjsGlobal.__makeTemplateObject||function(me,ue){return Object.defineProperty?Object.defineProperty(me,"raw",{value:ue}):me.raw=ue,me},a=commonjsGlobal&&commonjsGlobal.__assign||function(){return a=Object.assign||function(me){for(var ue,ae=1,$=arguments.length;ae<$;ae++){ue=arguments[ae];for(var ie in ue)Object.prototype.hasOwnProperty.call(ue,ie)&&(me[ie]=ue[ie])}return me},a.apply(this,arguments)},o=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(me,ue,ae,$){$===void 0&&($=ae);var ie=Object.getOwnPropertyDescriptor(ue,ae);(!ie||("get"in ie?!ue.__esModule:ie.writable||ie.configurable))&&(ie={enumerable:!0,get:function(){return ue[ae]}}),Object.defineProperty(me,$,ie)}:function(me,ue,ae,$){$===void 0&&($=ae),me[$]=ue[ae]}),c=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(me,ue){Object.defineProperty(me,"default",{enumerable:!0,value:ue})}:function(me,ue){me.default=ue}),d=commonjsGlobal&&commonjsGlobal.__importStar||function(me){if(me&&me.__esModule)return me;var ue={};if(me!=null)for(var ae in me)ae!=="default"&&Object.prototype.hasOwnProperty.call(me,ae)&&o(ue,me,ae);return c(ue,me),ue};Object.defineProperty(e,"__esModule",{value:!0}),e.H5Player=void 0;var h=jsxRuntimeExports,_=reactExports,ee=d(require$$6$1),f=lib,g=requireContext(),he=provider,ge=Spin,te=utils$3,re=(0,ee.default)("div")(q||(q=i([` border-radius: `,`px; position: relative; width: 100%; @@ -974,7 +974,7 @@ globstar while`,m,Re,_e,Fe,Ke),this.matchOne(m.slice(Re),_e.slice(Fe),oe))return .h5p-content ul.h5p-actions { display: `).concat(Ee?"none":"block",`; } - `);return"data:text/css;base64,".concat(btoa(Pe))},[xe,Ee]);return(0,h.jsxs)(re,a({className:"wellms-component ".concat(Se)},{children:[(Le&&Le.loading||_e)&&(0,h.jsx)("div",a({className:"h5p-loading"},{children:(0,h.jsx)(ge.Spin,{})})),(Le.value||de)&&(0,h.jsx)(f.ContextlessPlayer,{state:Le.value||de,onXAPI:function(Pe){var ne,fe;ae==null||ae(Pe),!((fe=(ne=Pe==null?void 0:Pe.statement)===null||ne===void 0?void 0:ne.result)===null||fe===void 0)&&fe.success&&($==null||$())},styles:["".concat(window.location.origin,"/").concat(we),tt]},tt)]}))};e.H5Player=be,e.default=(0,ee.withTheme)((0,ee.default)(e.H5Player)(se||(se=i([""],[""]))));var q,se})(H5Player);var quizzes={},gfit_quiz={},__assign$c=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$c=Object.assign||function(e){for(var i,a=1,o=arguments.length;a0&&d[d.length-1])&&(f[0]===6||f[0]===2)){a=0;continue}if(f[0]===3&&(!d||f[1]>d[0]&&f[1]0&&d[d.length-1])&&(f[0]===6||f[0]===2)){a=0;continue}if(f[0]===3&&(!d||f[1]>d[0]&&f[1]0)return"positive";if(e<0)return"negative"}else return"neutral";return"neutral"}var resultScoreSign={positive:"+",neutral:"",negative:"-"},DefaultQuestionLayout=function(e){var i=e.title,a=e.question,o=e.children,c=e.showScore,d=e.resultScore,h=__rest(e,["title","question","children","showScore","resultScore"]),_=determineResultScoreState(d),ee=(0,react_1$3.useRef)(null);return(0,jsx_runtime_1$b.jsxs)(__1$a.Stack,__assign$b({},h,{$gap:6},{children:[(0,jsx_runtime_1$b.jsxs)(__1$a.Stack,__assign$b({$gap:2},{children:[i&&(0,jsx_runtime_1$b.jsx)(__1$a.Title,__assign$b({level:"2"},{children:i})),(0,jsx_runtime_1$b.jsxs)(RelativeText,{children:[a,(0,jsx_runtime_1$b.jsx)(react_transition_group_1.CSSTransition,__assign$b({in:c,nodeRef:ee,timeout:200,classNames:"fade",unmountOnExit:!0},{children:(0,jsx_runtime_1$b.jsx)(ScoreIndicator,__assign$b({ref:ee,$scoreState:_},{children:"".concat(resultScoreSign[_]).concat(d??0)}))}))]})]})),(0,jsx_runtime_1$b.jsx)(LeftPaddingStack,__assign$b({$gap:4},{children:o}))]}))};DefaultQuestionLayout$1.default=(0,styled_components_1$a.withTheme)((0,styled_components_1$a.default)(DefaultQuestionLayout)(templateObject_4$1||(templateObject_4$1=__makeTemplateObject$a([""],[""]))));var templateObject_1$a,templateObject_2$3,templateObject_3$3,templateObject_4$1,__makeTemplateObject$9=commonjsGlobal&&commonjsGlobal.__makeTemplateObject||function(e,i){return Object.defineProperty?Object.defineProperty(e,"raw",{value:i}):e.raw=i,e},__assign$a=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$a=Object.assign||function(e){for(var i,a=1,o=arguments.length;a0)return"positive";if(e<0)return"negative"}else return"neutral";return"neutral"}var resultScoreSign={positive:"+",neutral:"",negative:"-"},DefaultQuestionLayout=function(e){var i=e.title,a=e.question,o=e.children,c=e.showScore,d=e.resultScore,h=__rest(e,["title","question","children","showScore","resultScore"]),_=determineResultScoreState(d),ee=(0,react_1$3.useRef)(null);return(0,jsx_runtime_1$b.jsxs)(__1$a.Stack,__assign$b({},h,{$gap:6},{children:[(0,jsx_runtime_1$b.jsxs)(__1$a.Stack,__assign$b({$gap:2},{children:[i&&(0,jsx_runtime_1$b.jsx)(__1$a.Title,__assign$b({level:"2"},{children:i})),(0,jsx_runtime_1$b.jsxs)(RelativeText,{children:[a,(0,jsx_runtime_1$b.jsx)(react_transition_group_1.CSSTransition,__assign$b({in:c,nodeRef:ee,timeout:200,classNames:"fade",unmountOnExit:!0},{children:(0,jsx_runtime_1$b.jsx)(ScoreIndicator,__assign$b({ref:ee,$scoreState:_},{children:"".concat(resultScoreSign[_]).concat(d??0)}))}))]})]})),(0,jsx_runtime_1$b.jsx)(LeftPaddingStack,__assign$b({$gap:4},{children:o}))]}))};DefaultQuestionLayout$1.default=(0,styled_components_1$a.withTheme)((0,styled_components_1$a.default)(DefaultQuestionLayout)(templateObject_4$1||(templateObject_4$1=__makeTemplateObject$a([""],[""]))));var templateObject_1$a,templateObject_2$3,templateObject_3$3,templateObject_4$1,__makeTemplateObject$9=commonjsGlobal&&commonjsGlobal.__makeTemplateObject||function(e,i){return Object.defineProperty?Object.defineProperty(e,"raw",{value:i}):e.raw=i,e},__assign$a=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$a=Object.assign||function(e){for(var i,a=1,o=arguments.length;a .spinner__overlay { min-height: 529px; } diff --git a/assets/index-DcvLU2H2.js b/assets/index-B3yN8KNK.js similarity index 97% rename from assets/index-DcvLU2H2.js rename to assets/index-B3yN8KNK.js index 2817d78e..3c14a81b 100644 --- a/assets/index-DcvLU2H2.js +++ b/assets/index-B3yN8KNK.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-BwDDCa5l.js";import{q as M}from"./base-C7euzKDi.js";import{C as _n}from"./index-fAJu7lSC.js";import{F as kn,S as Tn}from"./index-D0XhAO3h.js";import{W as On}from"./index--KFmeQDg.js";import{P as Pn}from"./index-BeRNFxkO.js";import"./swiper-react-CNMkIwij.js";import"./ResponsiveImage-BfAhZdZG.js";import"./index-tZXKSMhE.js";import"./index-BUicP6Ke.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-rgMY50iO.js";import{q as M}from"./base-C7euzKDi.js";import{C as _n}from"./index-rz9bDXuD.js";import{F as kn,S as Tn}from"./index-BGsfKgJX.js";import{W as On}from"./index-CAMTSXf7.js";import{P as Pn}from"./index-Bj_4LO6E.js";import"./swiper-react-Blj9s0vN.js";import"./ResponsiveImage-Dhino3nz.js";import"./index-DEYhe5OT.js";import"./index-CRRGeHuq.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-Cnd3jTz7.js b/assets/index-B4kDx8X4.js similarity index 91% rename from assets/index-Cnd3jTz7.js rename to assets/index-B4kDx8X4.js index fdfb16c9..2d6817f6 100644 --- a/assets/index-Cnd3jTz7.js +++ b/assets/index-B4kDx8X4.js @@ -1,4 +1,4 @@ -import{q as a,n as j,j as r,s as d,aq as l}from"./index-BwDDCa5l.js";const o=a.div` +import{q as a,n as j,j as r,s as d,aq as l}from"./index-rgMY50iO.js";const o=a.div` display: flex; flex-direction: column; diff --git a/assets/index-C2umk5G4.js b/assets/index-BDGj3bcL.js similarity index 98% rename from assets/index-C2umk5G4.js rename to assets/index-BDGj3bcL.js index c392f71e..3389fdaf 100644 --- a/assets/index-C2umk5G4.js +++ b/assets/index-BDGj3bcL.js @@ -1,4 +1,4 @@ -import{P as d,b as l,cs as Fe,q as Y,r as k,j as n,ct 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,cu as De,aq as ae,y as qe,D as Ve}from"./index-BwDDCa5l.js";import{P as Ye}from"./index-DNAhof5Q.js";import{C as xe}from"./index-ByT3HD2c.js";import{B as Ke}from"./index-fnJvflA6.js";import{P as He}from"./index-tZXKSMhE.js";import"./ResponsiveImage-BfAhZdZG.js";import"./index-CHrUvAxK.js";import"./swiper-react-CNMkIwij.js";import"./index-Cnd3jTz7.js";import"./swiper-BWFF_Qco.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);rt.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.mode==="dark"?t.gray1:t.gray5}; diff --git a/assets/index-BBmfJa4y.js b/assets/index-BDwMO7p2.js similarity index 94% rename from assets/index-BBmfJa4y.js rename to assets/index-BDwMO7p2.js index 7a8a5319..1c453f91 100644 --- a/assets/index-BBmfJa4y.js +++ b/assets/index-BDwMO7p2.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-BwDDCa5l.js";import{a as h}from"./ResponsiveImage-BfAhZdZG.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-rgMY50iO.js";import{a as h}from"./ResponsiveImage-Dhino3nz.js";const j=i.div` .section-companies { display: flex; justify-content: flex-start; diff --git a/assets/index-3h6lsqCl.js b/assets/index-BFu5eoou.js similarity index 92% rename from assets/index-3h6lsqCl.js rename to assets/index-BFu5eoou.js index 4e0a7464..98b82e87 100644 --- a/assets/index-3h6lsqCl.js +++ b/assets/index-BFu5eoou.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-BwDDCa5l.js";import{q as f}from"./base-C7euzKDi.js";import{C as q}from"./index-fAJu7lSC.js";import{C as B}from"./index-BmZ8nj8k.js";import{F as D,S as O}from"./index-D0XhAO3h.js";import{P as U}from"./index-BeRNFxkO.js";import{a as X}from"./ResponsiveImage-BfAhZdZG.js";import{C as z}from"./index-tZXKSMhE.js";import{T as A}from"./index-BUicP6Ke.js";import{C as G}from"./index-CHrUvAxK.js";import"./swiper-react-CNMkIwij.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-rgMY50iO.js";import{q as f}from"./base-C7euzKDi.js";import{C as q}from"./index-rz9bDXuD.js";import{C as B}from"./index-CkOeZPQt.js";import{F as D,S as O}from"./index-BGsfKgJX.js";import{P as U}from"./index-Bj_4LO6E.js";import{a as X}from"./ResponsiveImage-Dhino3nz.js";import{C as z}from"./index-DEYhe5OT.js";import{T as A}from"./index-CRRGeHuq.js";import{C as G}from"./index-C2hKWo6C.js";import"./swiper-react-Blj9s0vN.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-D0XhAO3h.js b/assets/index-BGsfKgJX.js similarity index 97% rename from assets/index-D0XhAO3h.js rename to assets/index-BGsfKgJX.js index 3763f03b..a0883719 100644 --- a/assets/index-D0XhAO3h.js +++ b/assets/index-BGsfKgJX.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-BwDDCa5l.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-rgMY50iO.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-guW92oBe.js b/assets/index-BMYeo1-N.js similarity index 90% rename from assets/index-guW92oBe.js rename to assets/index-BMYeo1-N.js index b03ea005..a5a4cd34 100644 --- a/assets/index-guW92oBe.js +++ b/assets/index-BMYeo1-N.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-BwDDCa5l.js";import{B as T}from"./index-fnJvflA6.js";import{P as w}from"./index-C-knIOix.js";import{S as c}from"./index-DgkCRAhC.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-rgMY50iO.js";import{B as T}from"./index-cEFokj_N.js";import{P as w}from"./index-Cx5QnA0M.js";import{S as c}from"./index-DnBgoLUe.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-BWDnE6v4.js b/assets/index-BOsswcW5.js similarity index 86% rename from assets/index-BWDnE6v4.js rename to assets/index-BOsswcW5.js index 8cbf9ab9..891d28c5 100644 --- a/assets/index-BWDnE6v4.js +++ b/assets/index-BOsswcW5.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-BwDDCa5l.js";import{R as D}from"./ResponsiveImage-BfAhZdZG.js";import{C as F}from"./index-fAJu7lSC.js";import{D as y}from"./index-BQRg9DEl.js";import{S as P}from"./swiper-react-CNMkIwij.js";import{S as L}from"./swiper-BWFF_Qco.js";import{C as G}from"./CourseCard-C30JGy12.js";import{u as J}from"./useSearchParams-CMraK1kM.js";import{CourseStatus as u}from"./index-D2EEDxQl.js";import{C as K}from"./index-tZXKSMhE.js";import{C as X}from"./index-CHrUvAxK.js";import"./index-ByT3HD2c.js";import"./index-Cnd3jTz7.js";import"./useFetchCourses-CTf6HwPl.js";import"./index-DgkCRAhC.js";import"./base-C7euzKDi.js";import"./Tabs-B1M6WKle.js";import"./index-CA9fETjN.js";import"./index-CdiRyItl.js";import"./questionnaires-B0SMBGXj.js";import"./useDownloadCertificate-S0p9VWMq.js";import"./useRoles-CZ3Pbmi4.js";import"./index-BeRNFxkO.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-rgMY50iO.js";import{R as D}from"./ResponsiveImage-Dhino3nz.js";import{C as F}from"./index-rz9bDXuD.js";import{D as y}from"./index-Bbkbpsot.js";import{S as P}from"./swiper-react-Blj9s0vN.js";import{S as L}from"./swiper-CPGP--u2.js";import{C as G}from"./CourseCard-BNp2HqRG.js";import{u as J}from"./useSearchParams-CmF5uHDk.js";import{CourseStatus as u}from"./index-CZ78E_Aa.js";import{C as K}from"./index-DEYhe5OT.js";import{C as X}from"./index-C2hKWo6C.js";import"./index-CDFY0ONX.js";import"./index-B4kDx8X4.js";import"./useFetchCourses-C8QrBKge.js";import"./index-DnBgoLUe.js";import"./base-C7euzKDi.js";import"./Tabs-BuuIL9KV.js";import"./index-oSidytsD.js";import"./index-Dioo_SYN.js";import"./questionnaires-bnQhZjbO.js";import"./useDownloadCertificate-DzTKNXCG.js";import"./useRoles-DVMYcivV.js";import"./index-Bj_4LO6E.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) { diff --git a/assets/index-DUw7vyQu.js b/assets/index-BP44goY3.js similarity index 85% rename from assets/index-DUw7vyQu.js rename to assets/index-BP44goY3.js index d4c0f825..9193141b 100644 --- a/assets/index-DUw7vyQu.js +++ b/assets/index-BP44goY3.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-BwDDCa5l.js";import{P as F}from"./index-DNAhof5Q.js";import{R as q}from"./ResponsiveImage-BfAhZdZG.js";import{C as G}from"./index-ByT3HD2c.js";import{B as H}from"./index-fnJvflA6.js";import{C as U}from"./index-tZXKSMhE.js";import{C as X}from"./index-CA9fETjN.js";import{T as A}from"./index-BUicP6Ke.js";import{C as J}from"./index-CHrUvAxK.js";import"./swiper-react-CNMkIwij.js";import"./index-Cnd3jTz7.js";import"./swiper-BWFF_Qco.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-rgMY50iO.js";import{P as F}from"./index-BfkvnQOt.js";import{R as q}from"./ResponsiveImage-Dhino3nz.js";import{C as G}from"./index-CDFY0ONX.js";import{B as H}from"./index-cEFokj_N.js";import{C as U}from"./index-DEYhe5OT.js";import{C as X}from"./index-oSidytsD.js";import{T as A}from"./index-CRRGeHuq.js";import{C as J}from"./index-C2hKWo6C.js";import"./swiper-react-Blj9s0vN.js";import"./index-B4kDx8X4.js";import"./swiper-CPGP--u2.js";const K=b.section` .tutor-avatar { width: 100%; max-width: 100%; diff --git a/assets/index-BQRg9DEl.js b/assets/index-Bbkbpsot.js similarity index 73% rename from assets/index-BQRg9DEl.js rename to assets/index-Bbkbpsot.js index 18a931b3..d19e374a 100644 --- a/assets/index-BQRg9DEl.js +++ b/assets/index-Bbkbpsot.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-BwDDCa5l.js";import{C}from"./index-ByT3HD2c.js";import{u as f}from"./useFetchCourses-CTf6HwPl.js";import{S}from"./swiper-react-CNMkIwij.js";import{S as v}from"./swiper-BWFF_Qco.js";import{C as T}from"./CourseCard-C30JGy12.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-rgMY50iO.js";import{C}from"./index-CDFY0ONX.js";import{u as f}from"./useFetchCourses-C8QrBKge.js";import{S}from"./swiper-react-Blj9s0vN.js";import{S as v}from"./swiper-CPGP--u2.js";import{C as T}from"./CourseCard-BNp2HqRG.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-DNAhof5Q.js b/assets/index-BfkvnQOt.js similarity index 87% rename from assets/index-DNAhof5Q.js rename to assets/index-BfkvnQOt.js index b1e546e1..0e1461ba 100644 --- a/assets/index-DNAhof5Q.js +++ b/assets/index-BfkvnQOt.js @@ -1,4 +1,4 @@ -import{q as r,X as t,r as n,j as o,S as d}from"./index-BwDDCa5l.js";const s=r.div` +import{q as r,X as t,r as n,j as o,S as d}from"./index-rgMY50iO.js";const s=r.div` position: fixed; top: 0; left: 0; diff --git a/assets/index-DLg9NA9K.js b/assets/index-BgIKVYBh.js similarity index 78% rename from assets/index-DLg9NA9K.js rename to assets/index-BgIKVYBh.js index 0cba703c..9d71a886 100644 --- a/assets/index-DLg9NA9K.js +++ b/assets/index-BgIKVYBh.js @@ -1,4 +1,4 @@ -import{q as s,n as t,j as e}from"./index-BwDDCa5l.js";const o=s.div` +import{q as s,n as t,j as e}from"./index-rgMY50iO.js";const o=s.div` width: 100%; left: 0; position: ${t?"fixed":"sticky"}; diff --git a/assets/index-BeRNFxkO.js b/assets/index-Bj_4LO6E.js similarity index 96% rename from assets/index-BeRNFxkO.js rename to assets/index-Bj_4LO6E.js index c6fa211e..8664d4ee 100644 --- a/assets/index-BeRNFxkO.js +++ b/assets/index-Bj_4LO6E.js @@ -1,4 +1,4 @@ -import{q as k,j as o,L as v,s as w}from"./index-BwDDCa5l.js";const y=k.div` +import{q as k,j as o,L as v,s as w}from"./index-rgMY50iO.js";const y=k.div` display: flex; justify-content: flex-start; align-items: center; diff --git a/assets/index-DZWvGNdp.js b/assets/index-Bo6dQlfK.js similarity index 98% rename from assets/index-DZWvGNdp.js rename to assets/index-Bo6dQlfK.js index f8cd1238..0db98ade 100644 --- a/assets/index-DZWvGNdp.js +++ b/assets/index-Bo6dQlfK.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-BwDDCa5l.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-rgMY50iO.js";var B=S();const D=a.div` padding-top: 100px; padding-bottom: 50px; height: 900px; diff --git a/assets/index-CHrUvAxK.js b/assets/index-C2hKWo6C.js similarity index 94% rename from assets/index-CHrUvAxK.js rename to assets/index-C2hKWo6C.js index 165bd360..d1f25d0e 100644 --- a/assets/index-CHrUvAxK.js +++ b/assets/index-C2hKWo6C.js @@ -1,4 +1,4 @@ -import{q as l,r as s,j as o,cw as p}from"./index-BwDDCa5l.js";const m=l("div")` +import{q as l,r as s,j as o,cw as p}from"./index-rgMY50iO.js";const m=l("div")` .more-icon { border: 1px solid; border-radius: 50%; diff --git a/assets/index--KFmeQDg.js b/assets/index-CAMTSXf7.js similarity index 80% rename from assets/index--KFmeQDg.js rename to assets/index-CAMTSXf7.js index 484814af..d7e6cb6a 100644 --- a/assets/index--KFmeQDg.js +++ b/assets/index-CAMTSXf7.js @@ -1 +1 @@ -import{i as c,f as m,cB 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-BwDDCa5l.js";import{a as f}from"./ResponsiveImage-BfAhZdZG.js";import{C}from"./index-tZXKSMhE.js";import{T}from"./index-BUicP6Ke.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,cB 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-rgMY50iO.js";import{a as f}from"./ResponsiveImage-Dhino3nz.js";import{C}from"./index-DEYhe5OT.js";import{T}from"./index-CRRGeHuq.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-ByT3HD2c.js b/assets/index-CDFY0ONX.js similarity index 50% rename from assets/index-ByT3HD2c.js rename to assets/index-CDFY0ONX.js index bb40b50d..63b4e17e 100644 --- a/assets/index-ByT3HD2c.js +++ b/assets/index-CDFY0ONX.js @@ -1,6 +1,6 @@ -import{cv as v,q as R,i as S,f as _,j as r,n as l,L as t,T as d,w as x}from"./index-BwDDCa5l.js";import{C as n}from"./index-tZXKSMhE.js";import{R as g}from"./ResponsiveImage-BfAhZdZG.js";import{C as h}from"./index-CHrUvAxK.js";import{S as f}from"./swiper-react-CNMkIwij.js";import{P as j}from"./index-Cnd3jTz7.js";import{S as N}from"./swiper-BWFF_Qco.js";var u=v();const b=R.div` +import{cv as v,q as R,i as S,f as _,j as r,n as l,L as t,T as d,w as x}from"./index-rgMY50iO.js";import{C as n}from"./index-DEYhe5OT.js";import{R as g}from"./ResponsiveImage-Dhino3nz.js";import{C as h}from"./index-C2hKWo6C.js";import{S as f}from"./swiper-react-Blj9s0vN.js";import{P as j}from"./index-B4kDx8X4.js";import{S as N}from"./swiper-CPGP--u2.js";var u=v();const b=R.div` .swiper { padding: 7px 10px; margin: 0px -15px; } -`,q=({courses:s,isSlider:C=!0,slidesPerView:m=4})=>{const p=S(),{t:w}=_();return r.jsx(b,{children:((s==null?void 0:s.length)>=5||l)&&C?r.jsx(N,{slidesPerView:m,children:s&&s.map(e=>{var a,i,o;return r.jsx(f,{children:r.jsx(u.NewCourseCard,{mobile:l,id:e.id,image:r.jsx(t,{to:`/courses/${e.id}`,children:e.image_path?r.jsx(g.ResponsiveImage,{path:e.image_path,alt:e.title,srcSizes:[300,600,900]}):r.jsx(n,{})}),title:r.jsx(t,{to:`/courses/${e.id}`,children:r.jsx(d.Title,{level:3,as:"h3",className:"title",children:e.title})}),price:e.public?r.jsx("div",{className:"course-price",children:w("FREE")}):r.jsx(j,{price:(a=e.product)==null?void 0:a.price,oldPrice:(i=e.product)==null?void 0:i.price_old,taxRate:(o=e.product)==null?void 0:o.tax_rate}),categories:r.jsx(h,{categories:e.categories,onCategoryClick:c=>{p.push(`/courses/?categories[]=${c}`)}})})},e.id)})}):r.jsx(x.Row,{style:{marginTop:"30px",rowGap:"20px"},children:s.map(e=>{var a,i,o;return r.jsx(x.Col,{md:4,lg:3,children:r.jsx(u.NewCourseCard,{mobile:l,id:e.id,image:r.jsx(t,{to:`/courses/${e.id}`,children:e.image_path?r.jsx(g.ResponsiveImage,{path:e.image_path,alt:e.title,srcSizes:[300,600,900]}):r.jsx(n,{})}),title:r.jsx(t,{to:`/courses/${e.id}`,children:r.jsx(d.Title,{level:3,as:"h3",className:"title",children:e.title})}),price:r.jsx(j,{price:(a=e.product)==null?void 0:a.price,oldPrice:(i=e.product)==null?void 0:i.price_old,taxRate:(o=e.product)==null?void 0:o.tax_rate}),categories:r.jsx(h,{categories:e.categories,onCategoryClick:c=>{p.push(`/courses/?categories[]=${c}`)}})},e.id)},e.id)})})})};export{q as C}; +`,q=({courses:s,isSlider:C=!0,slidesPerView:m=4})=>{const p=S(),{t:w}=_();return r.jsx(b,{children:((s==null?void 0:s.length)>=5||l)&&C?r.jsx(N,{slidesPerView:m,children:s&&s.map(e=>{var a,i,o;return r.jsx(f,{children:r.jsx(u.NewCourseCard,{mobile:l,id:e.id,image:r.jsx(t,{to:`/courses/${e.id}`,children:e.image_path?r.jsx(g.ResponsiveImage,{path:e.image_path,alt:e.title,srcSizes:[300,600,900]}):r.jsx(n,{})}),title:r.jsx(t,{to:`/courses/${e.id}`,children:r.jsx(d.Title,{level:3,as:"h3",className:"title",children:e.title})}),price:e.public?r.jsx("div",{className:"course-price",children:w("FREE")}):r.jsx(j,{price:(a=e.product)==null?void 0:a.price,oldPrice:(i=e.product)==null?void 0:i.price_old,taxRate:(o=e.product)==null?void 0:o.tax_rate}),categories:r.jsx(h,{categories:e.categories,onCategoryClick:c=>{p.push(`/courses/?categories[]=${c}`)}})})},e.id)})}):r.jsx(x.Row,{style:{marginTop:"30px",rowGap:"20px"},children:(s||[]).map(e=>{var a,i,o;return r.jsx(x.Col,{md:4,lg:3,children:r.jsx(u.NewCourseCard,{mobile:l,id:e.id,image:r.jsx(t,{to:`/courses/${e.id}`,children:e.image_path?r.jsx(g.ResponsiveImage,{path:e.image_path,alt:e.title,srcSizes:[300,600,900]}):r.jsx(n,{})}),title:r.jsx(t,{to:`/courses/${e.id}`,children:r.jsx(d.Title,{level:3,as:"h3",className:"title",children:e.title})}),price:r.jsx(j,{price:(a=e.product)==null?void 0:a.price,oldPrice:(i=e.product)==null?void 0:i.price_old,taxRate:(o=e.product)==null?void 0:o.tax_rate}),categories:r.jsx(h,{categories:e.categories,onCategoryClick:c=>{p.push(`/courses/?categories[]=${c}`)}})},e.id)},e.id)})})})};export{q as C}; diff --git a/assets/index-DRe4zRdE.js b/assets/index-CEADi1Aj.js similarity index 90% rename from assets/index-DRe4zRdE.js rename to assets/index-CEADi1Aj.js index 90ead46a..6206dfcd 100644 --- a/assets/index-DRe4zRdE.js +++ b/assets/index-CEADi1Aj.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-BwDDCa5l.js";import{T as k}from"./Tabs-B1M6WKle.js";import{E as p}from"./index-BqFg9Sk8.js";import{P as C}from"./index-CntMwbrZ.js";import"./ResponsiveImage-BfAhZdZG.js";import"./index-tZXKSMhE.js";import"./index-BUicP6Ke.js";import"./index-CHrUvAxK.js";import"./index-C-knIOix.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-rgMY50iO.js";import{T as k}from"./Tabs-BuuIL9KV.js";import{E as p}from"./index-DM96QUK_.js";import{P as C}from"./index-CQyhdORL.js";import"./ResponsiveImage-Dhino3nz.js";import"./index-DEYhe5OT.js";import"./index-CRRGeHuq.js";import"./index-C2hKWo6C.js";import"./index-Cx5QnA0M.js";const T=j.div` display: flex; justify-content: center; align-items: center; diff --git a/assets/index-CntMwbrZ.js b/assets/index-CQyhdORL.js similarity index 93% rename from assets/index-CntMwbrZ.js rename to assets/index-CQyhdORL.js index 6fcb9066..d14bcd09 100644 --- a/assets/index-CntMwbrZ.js +++ b/assets/index-CQyhdORL.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-BwDDCa5l.js";import{P as j}from"./index-C-knIOix.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-rgMY50iO.js";import{P as j}from"./index-Cx5QnA0M.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-BUicP6Ke.js b/assets/index-CRRGeHuq.js similarity index 95% rename from assets/index-BUicP6Ke.js rename to assets/index-CRRGeHuq.js index 223e3a6a..321d448b 100644 --- a/assets/index-BUicP6Ke.js +++ b/assets/index-CRRGeHuq.js @@ -1,4 +1,4 @@ -import{q as h,X as j,r as g,j as e,cz as p}from"./index-BwDDCa5l.js";const y=h("div")` +import{q as h,X as j,r as g,j as e,cz as p}from"./index-rgMY50iO.js";const y=h("div")` align-self: end; display: flex; gap: 10px; diff --git a/assets/index-DAvBbJIi.js b/assets/index-CUV7LPfP.js similarity index 99% rename from assets/index-DAvBbJIi.js rename to assets/index-CUV7LPfP.js index 060370c8..d0ef9614 100644 --- a/assets/index-DAvBbJIi.js +++ b/assets/index-CUV7LPfP.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-BwDDCa5l.js";import{w as Aa}from"./warning-BmYsiiaZ.js";import{D as it,a as pt}from"./index-2DzzTf_1.js";import{a as Fa}from"./ResponsiveImage-BfAhZdZG.js";import{C as ja}from"./index-tZXKSMhE.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-rgMY50iO.js";import{w as Aa}from"./warning-KJqa50Ry.js";import{D as it,a as pt}from"./index-jvuyDq2a.js";import{a as Fa}from"./ResponsiveImage-Dhino3nz.js";import{C as ja}from"./index-DEYhe5OT.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-D2EEDxQl.js b/assets/index-CZ78E_Aa.js similarity index 91% rename from assets/index-D2EEDxQl.js rename to assets/index-CZ78E_Aa.js index 02bf2b75..a3258b0b 100644 --- a/assets/index-D2EEDxQl.js +++ b/assets/index-CZ78E_Aa.js @@ -1,4 +1,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,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 B,h as ee,k as se,l as te,w as N,o as oe,C as re}from"./index-BwDDCa5l.js";import{T as ae}from"./Tabs-B1M6WKle.js";import{C as ne}from"./index-tZXKSMhE.js";import{R as ie}from"./ResponsiveImage-BfAhZdZG.js";import{C as le}from"./index-CA9fETjN.js";import{C as de}from"./index-CHrUvAxK.js";import{R as ce}from"./index-CdiRyItl.js";import{b as me,Q as ue}from"./questionnaires-B0SMBGXj.js";import{u as pe}from"./useDownloadCertificate-S0p9VWMq.js";import{u as ge}from"./useRoles-CZ3Pbmi4.js";import{u as H}from"./useSearchParams-CMraK1kM.js";import{P as xe}from"./index-BeRNFxkO.js";import{S as he}from"./swiper-BWFF_Qco.js";import{S as D}from"./swiper-react-CNMkIwij.js";import{C as F}from"./CourseCard-C30JGy12.js";import"./base-C7euzKDi.js";import"./index-DgkCRAhC.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 B,h as ee,k as se,l as te,w as N,o as oe,C as re}from"./index-rgMY50iO.js";import{T as ae}from"./Tabs-BuuIL9KV.js";import{C as ne}from"./index-DEYhe5OT.js";import{R as ie}from"./ResponsiveImage-Dhino3nz.js";import{C as le}from"./index-oSidytsD.js";import{C as de}from"./index-C2hKWo6C.js";import{R as ce}from"./index-Dioo_SYN.js";import{b as me,Q as ue}from"./questionnaires-bnQhZjbO.js";import{u as pe}from"./useDownloadCertificate-DzTKNXCG.js";import{u as ge}from"./useRoles-DVMYcivV.js";import{u as H}from"./useSearchParams-CmF5uHDk.js";import{P as xe}from"./index-Bj_4LO6E.js";import{S as he}from"./swiper-CPGP--u2.js";import{S as D}from"./swiper-react-Blj9s0vN.js";import{C as F}from"./CourseCard-BNp2HqRG.js";import"./base-C7euzKDi.js";import"./index-DnBgoLUe.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)` gap: 6px; margin: 0; width: 100%; diff --git a/assets/index-z9-oPlrc.js b/assets/index-Caq5vuVn.js similarity index 96% rename from assets/index-z9-oPlrc.js rename to assets/index-Caq5vuVn.js index 833df2b2..dfaee94d 100644 --- a/assets/index-z9-oPlrc.js +++ b/assets/index-Caq5vuVn.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-BwDDCa5l.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-rgMY50iO.js";const W=m.div` iframe { width: 100% !important; height: calc(100vh - 76px); diff --git a/assets/index-fDwvoi0a.js b/assets/index-Cd6wdOLZ.js similarity index 87% rename from assets/index-fDwvoi0a.js rename to assets/index-Cd6wdOLZ.js index 8c5b9a11..5e5e1b9f 100644 --- a/assets/index-fDwvoi0a.js +++ b/assets/index-Cd6wdOLZ.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-BwDDCa5l.js";import{A as F,R as k}from"./AuthWrapper-B36vgc2t.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-rgMY50iO.js";import{A as F,R as k}from"./AuthWrapper-CP2GyysX.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-CdiRyItl.js b/assets/index-CdiRyItl.js deleted file mode 100644 index 9cc891bb..00000000 --- a/assets/index-CdiRyItl.js +++ /dev/null @@ -1 +0,0 @@ -import{f as C,r as h,j as s,cq as w,cr as f,ah as R,T as S,s as T,v as y,D as b,A as j,x as A,b as k}from"./index-BwDDCa5l.js";import{a as _}from"./questionnaires-B0SMBGXj.js";const E=({data:i,textareaPlaceholder:c,withStarsRating:m,handleSubmit:t})=>{const{t:p}=C(),{title:g,description:l}=i,[e,n]=h.useState({rate:0,note:""}),x=()=>{t(e.rate,e.note),n({rate:0,note:""})};return s.jsx("form",{onSubmit:x,children:m?s.jsx(w,{onSubmit:r=>n(o=>({...o,rate:r})),header:i.title,children:s.jsx(f,{placeholder:c,style:{marginTop:"30px"},value:e.note,onChange:({target:{value:r}})=>n(o=>({...o,note:r}))})}):s.jsxs(R,{$gap:30,children:[s.jsx(S.Title,{children:g}),s.jsx(T.Text,{children:l}),s.jsx(f,{placeholder:c,value:e.note,onChange:({target:{value:r}})=>n(o=>({...o,note:r}))}),s.jsx(y.Button,{type:"submit",mode:"primary",style:{width:"fit-content",alignSelf:"center"},children:e.note.length?p("RateCourse.SendAnswer"):p("RateCourse.NoAnswer")})]})})},M=({course:i,courseId:c,visible:m,questionnaire:t,onClose:p})=>{var o;const{sendQuestionnaireAnswer:g}=h.useContext(b.EscolaLMSContext),{t:l}=C(),[e,n]=h.useState({loading:!1,step:0,showLastScreen:!1}),x=h.useCallback(async(d,u)=>{if(t.questions){n(a=>({...a,loading:!0}));try{(await g(i,c,t.id,{question_id:t.questions[e.step].id,rate:d,note:u,visible_on_front:t.questions[e.step].public_answers})).success&&j.success(`${l("RateCourse.ThankYouMessage")}`)}catch(a){j.error("Error"),console.error(a)}finally{n(a=>({...a,loading:!1,step:a.step+1,note:"",rating:null}))}}},[i,c,t.id,e]),r=h.useCallback((d,u)=>{x(d,u),t.questions&&e.step===t.questions.length-1&&n(a=>({...a,showLastScreen:!0}))},[t,e.step,x]);return s.jsx(A.Modal,{onClose:p,visible:m,animation:"zoom",maskAnimation:"fade",destroyOnClose:!0,width:468,children:e.showLastScreen?s.jsxs(k.Fragment,{children:[s.jsx(S.Title,{level:4,className:"modal-title",style:{paddingTop:"50px"},children:l("RateCourse.ThankYou")}),s.jsx(T.Text,{style:{paddingBottom:"50px",textAlign:"center"},children:l("RateCourse.ThankYouMessage")})]}):t.questions&&s.jsx(E,{textareaPlaceholder:l("RateCourse.OptionalComment"),data:t.questions[e.step],handleSubmit:(d,u)=>r(d,u),withStarsRating:((o=t.questions[e.step])==null?void 0:o.type)===_.REVIEW})})};export{M as R}; diff --git a/assets/index-BmZ8nj8k.js b/assets/index-CkOeZPQt.js similarity index 99% rename from assets/index-BmZ8nj8k.js rename to assets/index-CkOeZPQt.js index 8ce989d1..19166263 100644 --- a/assets/index-BmZ8nj8k.js +++ b/assets/index-CkOeZPQt.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-BwDDCa5l.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{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-C-knIOix.js b/assets/index-Cx5QnA0M.js similarity index 91% rename from assets/index-C-knIOix.js rename to assets/index-Cx5QnA0M.js index c29fb383..94294825 100644 --- a/assets/index-C-knIOix.js +++ b/assets/index-Cx5QnA0M.js @@ -1,8 +1,8 @@ -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,cy as u,s as i,l as $}from"./index-BwDDCa5l.js";const k=c.div` +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,cy as u,s as i,l as $}from"./index-rgMY50iO.js";const k=c.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}),w=c.div` +`,p=({children:e})=>s.jsx(k,{children:e}),T=c.div` h2 { margin-bottom: 10px; } @@ -21,7 +21,7 @@ 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,cy as u,s flex-direction: column; justify-content: flex-start; align-items: flex-start; - row-gap: 10px; + cursor: pointer; position: relative; button { @@ -35,7 +35,7 @@ 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,cy as u,s border-radius: ${({theme:e})=>e.cardRadius}px; transition: background-color 0.3s ease, color 0.3s ease; p { - padding: 10px 20px; + padding: 8px 10px; } &:hover { background-color: ${({theme:e})=>e.gray3}; @@ -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,cy 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(w,{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}; +`,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}; diff --git a/assets/index-cRvfodQO.js b/assets/index-D28dnp4A.js similarity index 88% rename from assets/index-cRvfodQO.js rename to assets/index-D28dnp4A.js index 42f1ec8f..0c95fd12 100644 --- a/assets/index-cRvfodQO.js +++ b/assets/index-D28dnp4A.js @@ -1,4 +1,4 @@ -import{q as f,n as j,j as e,T as P,s as b,L as y,v as T,f as d,b0 as W,b1 as h,aK as p,r,w as g,Z as v,l as M,h as _}from"./index-BwDDCa5l.js";import{P as E}from"./index-CntMwbrZ.js";import{T as D}from"./Tabs-B1M6WKle.js";import{W as C}from"./index--KFmeQDg.js";import{D as x,a as m}from"./index-2DzzTf_1.js";import{W as I}from"./index-z9-oPlrc.js";import"./index-C-knIOix.js";import"./ResponsiveImage-BfAhZdZG.js";import"./index-tZXKSMhE.js";import"./index-BUicP6Ke.js";const A=f.div` +import{q as f,n as j,j as e,T as P,s as b,L as y,v as T,f as d,b0 as W,b1 as h,aK as p,r,w as g,Z as v,l as M,h as _}from"./index-rgMY50iO.js";import{P as E}from"./index-CQyhdORL.js";import{T as D}from"./Tabs-BuuIL9KV.js";import{W as C}from"./index-CAMTSXf7.js";import{D as x,a as m}from"./index-jvuyDq2a.js";import{W as I}from"./index-Caq5vuVn.js";import"./index-Cx5QnA0M.js";import"./ResponsiveImage-Dhino3nz.js";import"./index-DEYhe5OT.js";import"./index-CRRGeHuq.js";const A=f.div` display: flex; justify-content: center; align-items: center; diff --git a/assets/index-CE-twewT.js b/assets/index-D74bjbr6.js similarity index 80% rename from assets/index-CE-twewT.js rename to assets/index-D74bjbr6.js index 1b04c2ca..bd3f6152 100644 --- a/assets/index-CE-twewT.js +++ b/assets/index-D74bjbr6.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-BwDDCa5l.js";import{A as j,R}from"./AuthWrapper-B36vgc2t.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-rgMY50iO.js";import{A as j,R}from"./AuthWrapper-CP2GyysX.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-tZXKSMhE.js b/assets/index-DEYhe5OT.js similarity index 96% rename from assets/index-tZXKSMhE.js rename to assets/index-DEYhe5OT.js index 5be81778..5cce234e 100644 --- a/assets/index-tZXKSMhE.js +++ b/assets/index-DEYhe5OT.js @@ -1,4 +1,4 @@ -import{q as o,j as r}from"./index-BwDDCa5l.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-rgMY50iO.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-CPrZPupU.js b/assets/index-DGvaplHr.js similarity index 95% rename from assets/index-CPrZPupU.js rename to assets/index-DGvaplHr.js index 3299fa74..66babf93 100644 --- a/assets/index-CPrZPupU.js +++ b/assets/index-DGvaplHr.js @@ -1,7 +1,7 @@ -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-BwDDCa5l.js";import{P as v1}from"./PricingCard-qZg96Hng.js";import{P as Ge}from"./index-Cnd3jTz7.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-BFtnUeGh.js";import{B as O1}from"./index-fnJvflA6.js";import{Q as qe,a as Ie,g as A1}from"./questionnaires-B0SMBGXj.js";import{R as S1,a as L1}from"./ResponsiveImage-BfAhZdZG.js";import{C as H1}from"./index-CHrUvAxK.js";import{P as R1}from"./index-BeRNFxkO.js";import{D as I1}from"./index-BQRg9DEl.js";import{S as N1}from"./swiper-BWFF_Qco.js";import{S as B1}from"./swiper-react-CNMkIwij.js";import{C as V1}from"./index-tZXKSMhE.js";import{S as N}from"./index-DgkCRAhC.js";import"./warning-BmYsiiaZ.js";import"./index-ByT3HD2c.js";import"./useFetchCourses-CTf6HwPl.js";import"./CourseCard-C30JGy12.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-rgMY50iO.js";import{P as v1}from"./PricingCard-CM9lIEOY.js";import{P as Ge}from"./index-B4kDx8X4.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-B3BUBFzI.js";import{B as O1}from"./index-cEFokj_N.js";import{Q as qe,a as Ie,g as A1}from"./questionnaires-bnQhZjbO.js";import{R as S1,a as L1}from"./ResponsiveImage-Dhino3nz.js";import{C as H1}from"./index-C2hKWo6C.js";import{P as R1}from"./index-Bj_4LO6E.js";import{D as I1}from"./index-Bbkbpsot.js";import{S as N1}from"./swiper-CPGP--u2.js";import{S as B1}from"./swiper-react-Blj9s0vN.js";import{C as V1}from"./index-DEYhe5OT.js";import{S as N}from"./index-DnBgoLUe.js";import"./warning-KJqa50Ry.js";import"./index-CDFY0ONX.js";import"./useFetchCourses-C8QrBKge.js";import"./CourseCard-BNp2HqRG.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; -`,$1=({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]})},E1=({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($1,{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` +`,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` width: 100%; left: 0; position: ${k?"static":"sticky"}; @@ -33,7 +33,7 @@ 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, font-weight: 400; } } -`,Be=({course:e,onRequestAccess:t})=>{var m,x,b,d,h;const r=Me(),{user:i,courseAccess:a}=u.useContext(ze.EscolaLMSContext),{t:o}=Q(),{id:l}=Oe(),{progress:p}=k1(Number(l)),g=u.useMemo(()=>{var _;return(_=e==null?void 0:e.product)==null?void 0:_.owned},[(m=e==null?void 0:e.product)==null?void 0:m.owned]),v=u.useMemo(()=>{var _,w;return!!((w=(_=a.list)==null?void 0:_.data)!=null&&w.find(y=>{var M;return((M=y==null?void 0:y.course)==null?void 0:M.id)===e.id&&y.status==="approved"}))},[e.id,(x=a.list)==null?void 0:x.data]),s=u.useMemo(()=>p.data||[],[p.data]),c=u.useMemo(()=>i.value&&(g||v)?((s==null?void 0:s.filter(w=>w.status===1))||[]).length:0,[s,i.value,v,g]);return n.jsx(z1,{children:n.jsxs(v1.PricingCard,{children:[n.jsxs("div",{className:"course-sidebar-header",children:[n.jsx(B.Text,{size:"13",children:"Cena za dostęp"}),n.jsx("div",{className:"price-wrapper",children:n.jsx(Ge,{price:(b=e.product)==null?void 0:b.price,taxRate:(d=e.product)==null?void 0:d.tax_rate,oldPrice:(h=e.product)==null?void 0:h.price_old,textSizes:{old:"18",new:"24"}})})]}),p.loaded?n.jsx(E1,{onRequestAccess:t,course:e,userOwnThisCourse:g}):n.jsx(we,{}),n.jsxs(B.Text,{size:"12",children:[" ",o("CoursePage.30Days")]}),n.jsxs("div",{className:"pricing-card-features",children:[e.duration&&n.jsx(ne.IconText,{text:n.jsxs(te,{children:[n.jsx("span",{children:o("CoursePage.Duration")}),n.jsx("span",{children:e.duration})]})}),e.lessons&&n.jsx(ne.IconText,{text:n.jsxs(te,{children:[n.jsx("span",{children:o("CoursePage.Lessons")}),n.jsx("span",{children:e.lessons.length})]})}),e.language&&n.jsx(ne.IconText,{text:n.jsxs(te,{children:[n.jsx("span",{children:o("CoursePage.Language")}),n.jsx("span",{children:e.language})]})}),e.level&&n.jsx(ne.IconText,{text:n.jsxs(te,{children:[n.jsx("span",{children:o("CoursePage.Level")}),n.jsx("span",{children:e.level})]})}),e.users_count?n.jsx(ne.IconText,{text:n.jsxs(te,{children:[n.jsx("span",{children:o("CoursePage.Students")}),n.jsx("span",{children:e.users_count})]})}):""]}),i.value?n.jsxs(n1.CourseProgress,{progress:s&&(s==null?void 0:s.length)>0?c/s.length:0,icon:p.loaded?n.jsx(t1,{}):n.jsx(we,{width:"22px",height:"22px"}),title:o("CoursePage.MyProgress"),children:[n.jsxs("strong",{style:{fontSize:14},children:[o("CoursePage.Finished")," ",c||0," ",o("CoursePage.Of")," ",s&&(s==null?void 0:s.length)>0?s.length:0," ",o("CoursePage.Lessons")]}),n.jsx("p",{style:{marginTop:9,marginBottom:0},children:o("CoursePage.FinishToGetCertificate")})]}):n.jsxs(B.Text,{size:"12",children:[n.jsx(K,{to:`/login?referrer=/courses/${e.id}`,style:{marginRight:"4px",color:r.primaryColor},children:o("CoursePage.Login")}),o("CoursePage.ToSeeProgress")]})]})})};var Ue={},We={},me={},ge={},Ce={},$=C&&C.__assign||function(){return $=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0,onTopicClick:v,mobile:s},{children:(0,r.jsx)(e.RecursiveLessons,{lessons:(x=c.lessons)!==null&&x!==void 0?x:[],depth:g+1,onTopicClick:v,mobile:s})}),c.id)})})};e.RecursiveLessons=a})(We);var he={},rn=C&&C.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Qe=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(he,"__esModule",{value:!0});he.StyledSection=void 0;var sn=Qe(r1),on=Qe(pe),q=s1;he.StyledSection=(0,on.default)("section")(Ve||(Ve=rn([` +`,Be=({course:e,onRequestAccess:t})=>{var m,x,b,d,h;const r=Me(),{user:i,courseAccess:a}=u.useContext(ze.EscolaLMSContext),{t:o}=Q(),{id:l}=Oe(),{progress:p}=k1(Number(l)),g=u.useMemo(()=>{var _;return(_=e==null?void 0:e.product)==null?void 0:_.owned},[(m=e==null?void 0:e.product)==null?void 0:m.owned]),v=u.useMemo(()=>{var _,w;return!!((w=(_=a.list)==null?void 0:_.data)!=null&&w.find(y=>{var M;return((M=y==null?void 0:y.course)==null?void 0:M.id)===e.id&&y.status==="approved"}))},[e.id,(x=a.list)==null?void 0:x.data]),s=u.useMemo(()=>p.data||[],[p.data]),c=u.useMemo(()=>i.value&&(g||v)?((s==null?void 0:s.filter(w=>w.status===1))||[]).length:0,[s,i.value,v,g]);return n.jsx(z1,{children:n.jsxs(v1.PricingCard,{children:[n.jsxs("div",{className:"course-sidebar-header",children:[n.jsx(B.Text,{size:"13",children:"Cena za dostęp"}),n.jsx("div",{className:"price-wrapper",children:n.jsx(Ge,{price:(b=e.product)==null?void 0:b.price,taxRate:(d=e.product)==null?void 0:d.tax_rate,oldPrice:(h=e.product)==null?void 0:h.price_old,textSizes:{old:"18",new:"24"}})})]}),p.loaded?n.jsx($1,{onRequestAccess:t,course:e,userOwnThisCourse:g}):n.jsx(we,{}),n.jsxs(B.Text,{size:"12",children:[" ",o("CoursePage.30Days")]}),n.jsxs("div",{className:"pricing-card-features",children:[e.duration&&n.jsx(ne.IconText,{text:n.jsxs(te,{children:[n.jsx("span",{children:o("CoursePage.Duration")}),n.jsx("span",{children:e.duration})]})}),e.lessons&&n.jsx(ne.IconText,{text:n.jsxs(te,{children:[n.jsx("span",{children:o("CoursePage.Lessons")}),n.jsx("span",{children:e.lessons.length})]})}),e.language&&n.jsx(ne.IconText,{text:n.jsxs(te,{children:[n.jsx("span",{children:o("CoursePage.Language")}),n.jsx("span",{children:e.language})]})}),e.level&&n.jsx(ne.IconText,{text:n.jsxs(te,{children:[n.jsx("span",{children:o("CoursePage.Level")}),n.jsx("span",{children:e.level})]})}),e.users_count?n.jsx(ne.IconText,{text:n.jsxs(te,{children:[n.jsx("span",{children:o("CoursePage.Students")}),n.jsx("span",{children:e.users_count})]})}):""]}),i.value?n.jsxs(n1.CourseProgress,{progress:s&&(s==null?void 0:s.length)>0?c/s.length:0,icon:p.loaded?n.jsx(t1,{}):n.jsx(we,{width:"22px",height:"22px"}),title:o("CoursePage.MyProgress"),children:[n.jsxs("strong",{style:{fontSize:14},children:[o("CoursePage.Finished")," ",c||0," ",o("CoursePage.Of")," ",s&&(s==null?void 0:s.length)>0?s.length:0," ",o("CoursePage.Lessons")]}),n.jsx("p",{style:{marginTop:9,marginBottom:0},children:o("CoursePage.FinishToGetCertificate")})]}):n.jsxs(B.Text,{size:"12",children:[n.jsx(K,{to:`/login?referrer=/courses/${e.id}`,style:{marginRight:"4px",color:r.primaryColor},children:o("CoursePage.Login")}),o("CoursePage.ToSeeProgress")]})]})})};var Ue={},We={},me={},ge={},Ce={},E=C&&C.__assign||function(){return E=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0,onTopicClick:v,mobile:s},{children:(0,r.jsx)(e.RecursiveLessons,{lessons:(x=c.lessons)!==null&&x!==void 0?x:[],depth:g+1,onTopicClick:v,mobile:s})}),c.id)})})};e.RecursiveLessons=a})(We);var he={},rn=C&&C.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Qe=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(he,"__esModule",{value:!0});he.StyledSection=void 0;var sn=Qe(r1),on=Qe(pe),q=s1;he.StyledSection=(0,on.default)("section")(Ve||(Ve=rn([` width: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; @@ -487,7 +487,7 @@ 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, gap: 12px; } } -`])),function(f){var j=f.theme;return j.errorColor}),w=function(f){var j=f.course,P=f.className,H=f.initialValues,R=H===void 0?{phone_number:"",contact_details:""}:H,Ye=f.onCancel,fe=f.onSuccess,ve=f.onError,ee=(0,g.useTranslation)().t,Ke=(0,p.useContext)(c.EscolaLMSContext).addCourseAccess;return(0,l.jsxs)(_,r({className:"wellms-component ".concat(P),"data-testid":"modal-course-access"},{children:[(0,l.jsxs)("header",{children:[(0,l.jsx)(d.Title,r({level:1},{children:j.title})),(0,l.jsx)(h.Text,r({size:"14",bold:!0},{children:ee("ModalCourseAccess.Title")}))]}),(0,l.jsx)(v.Formik,r({initialValues:R,onSubmit:function(E,X){var oe=X.setErrors,G=X.setSubmitting,ie=X.resetForm,ae={course_id:j.id,data:E};Ke(ae).then(function(){ie(),fe==null||fe()}).catch(function(z){var _e,je;oe(r({error:(_e=z==null?void 0:z.data)===null||_e===void 0?void 0:_e.message},(je=z==null?void 0:z.data)===null||je===void 0?void 0:je.errors)),ve==null||ve()}).finally(function(){G(!1)})}},{children:function(E){var X=E.values,oe=E.touched,G=E.errors,ie=E.handleChange,ae=E.handleBlur,z=E.handleSubmit;return(0,l.jsxs)("form",r({onSubmit:z},{children:[(0,l.jsxs)("div",r({className:"form-content"},{children:[G&&G.error&&(0,l.jsx)(h.Text,r({className:"error-msg",size:"12",bold:!0},{children:G.error})),(0,l.jsxs)("div",r({className:"input-group"},{children:[(0,l.jsx)(x.Input,{type:"text",label:ee("ModalCourseAccess.PhoneNumber"),error:oe.phone_number&&G.phone_number,id:"phone_number",name:"phone_number",onChange:ie,onBlur:ae,value:X.phone_number}),(0,l.jsx)(b.TextArea,{label:ee("ModalCourseAccess.ContactDetails"),error:oe.contact_details&&G.contact_details,id:"contact_details",name:"contact_details",onChange:ie,onBlur:ae,value:X.contact_details})]}))]})),(0,l.jsxs)("div",r({className:"button-group"},{children:[(0,l.jsx)(m.Button,r({type:"button",mode:"secondary",onClick:Ye},{children:ee("ModalCourseAccess.Cancel")})),(0,l.jsx)(m.Button,r({type:"submit",mode:"secondary"},{children:ee("ModalCourseAccess.Submit")}))]}))]}))}}))]}))};e.ModalCourseAccess=w,e.default=(0,s.withTheme)((0,s.default)(e.ModalCourseAccess)(M||(M=t([""],[""]))));var y,M})(Je);const ke=O.div` +`])),function(f){var j=f.theme;return j.errorColor}),w=function(f){var j=f.course,P=f.className,H=f.initialValues,R=H===void 0?{phone_number:"",contact_details:""}:H,Ye=f.onCancel,fe=f.onSuccess,ve=f.onError,ee=(0,g.useTranslation)().t,Ke=(0,p.useContext)(c.EscolaLMSContext).addCourseAccess;return(0,l.jsxs)(_,r({className:"wellms-component ".concat(P),"data-testid":"modal-course-access"},{children:[(0,l.jsxs)("header",{children:[(0,l.jsx)(d.Title,r({level:1},{children:j.title})),(0,l.jsx)(h.Text,r({size:"14",bold:!0},{children:ee("ModalCourseAccess.Title")}))]}),(0,l.jsx)(v.Formik,r({initialValues:R,onSubmit:function($,X){var oe=X.setErrors,G=X.setSubmitting,ie=X.resetForm,ae={course_id:j.id,data:$};Ke(ae).then(function(){ie(),fe==null||fe()}).catch(function(z){var _e,je;oe(r({error:(_e=z==null?void 0:z.data)===null||_e===void 0?void 0:_e.message},(je=z==null?void 0:z.data)===null||je===void 0?void 0:je.errors)),ve==null||ve()}).finally(function(){G(!1)})}},{children:function($){var X=$.values,oe=$.touched,G=$.errors,ie=$.handleChange,ae=$.handleBlur,z=$.handleSubmit;return(0,l.jsxs)("form",r({onSubmit:z},{children:[(0,l.jsxs)("div",r({className:"form-content"},{children:[G&&G.error&&(0,l.jsx)(h.Text,r({className:"error-msg",size:"12",bold:!0},{children:G.error})),(0,l.jsxs)("div",r({className:"input-group"},{children:[(0,l.jsx)(x.Input,{type:"text",label:ee("ModalCourseAccess.PhoneNumber"),error:oe.phone_number&&G.phone_number,id:"phone_number",name:"phone_number",onChange:ie,onBlur:ae,value:X.phone_number}),(0,l.jsx)(b.TextArea,{label:ee("ModalCourseAccess.ContactDetails"),error:oe.contact_details&&G.contact_details,id:"contact_details",name:"contact_details",onChange:ie,onBlur:ae,value:X.contact_details})]}))]})),(0,l.jsxs)("div",r({className:"button-group"},{children:[(0,l.jsx)(m.Button,r({type:"button",mode:"secondary",onClick:Ye},{children:ee("ModalCourseAccess.Cancel")})),(0,l.jsx)(m.Button,r({type:"submit",mode:"secondary"},{children:ee("ModalCourseAccess.Submit")}))]}))]}))}}))]}))};e.ModalCourseAccess=w,e.default=(0,s.withTheme)((0,s.default)(e.ModalCourseAccess)(M||(M=t([""],[""]))));var y,M})(Je);const ke=O.div` padding-top: 40px; section { margin-bottom: 40px; @@ -634,7 +634,7 @@ 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, .single-content { box-sizing: border-box; } -`,$e=d1` +`,Ee=d1` .ReactModal__Overlay { z-index: 1500 !important; } @@ -674,7 +674,7 @@ 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, margin-bottom: 16px; `,vn=O.div` margin: 0 auto; -`,_n=({courseId:e,questionId:t})=>{var p;const{answersMeta:r,loading:i,onPageChange:a,questionnaireAnswers:o}=un({questionId:t,courseId:e}),{t:l}=Q();return n.jsx(hn,{children:i?n.jsx(C1.Spin,{}):((p=o||[])==null?void 0:p.length)>0?n.jsxs(n.Fragment,{children:[n.jsx(fn,{level:4,children:l("CoursePage.CourseRatingsTitle")}),(o||[]).map(g=>n.jsx(Cn,{question:g})),r.total>r.per_page&&n.jsx(vn,{children:n.jsx(R1,{total:r.total,perPage:r.per_page,currentPage:r.current_page,onPage:a})})]}):null})},Ee=()=>console.warn("INITIAL STATE"),Pe=u.createContext({questionnaires:[],questionnaireId:null,setQuestionnaireId:Ee,questionId:null,setQuestionId:Ee,reviewId:void 0,courseId:void 0}),jn=({children:e,questionnaires:t})=>{var s;const[r,i]=u.useState(null),[a,o]=u.useState(null),{id:l}=Oe(),p=t==null?void 0:t.at(0),g=(s=p==null?void 0:p.questions)==null?void 0:s.find(({type:c})=>c===Ie.RATE),v=A1({questionnaires:t,questionnaireId:r,questionType:Ie.REVIEW});return u.useEffect(()=>{p!=null&&p.id&&!r&&i(p.id)},[p==null?void 0:p.id,r]),u.useEffect(()=>{g!=null&&g.id&&!a&&o(g.id)},[g==null?void 0:g.id,a]),n.jsx(Pe.Provider,{value:{questionnaires:t,questionnaireId:r,setQuestionnaireId:i,questionId:a,setQuestionId:o,reviewId:v,courseId:Number(l)},children:e})},bn=()=>{const e=u.useContext(Pe);if(!Pe)throw new Error("useCourseRatingContext must be used inside the CourseRatingProvider");return e},yn=u.memo(()=>{const{courseId:e,reviewId:t}=bn();return n.jsx(n.Fragment,{children:e&&t&&n.jsx(_n,{courseId:e,questionId:t})})}),wn=u.memo(({questionnaires:e})=>n.jsx(jn,{questionnaires:e,children:n.jsx("section",{className:"course-ratings",children:n.jsx(yn,{})})})),Tn=O.section` +`,_n=({courseId:e,questionId:t})=>{var p;const{answersMeta:r,loading:i,onPageChange:a,questionnaireAnswers:o}=un({questionId:t,courseId:e}),{t:l}=Q();return n.jsx(hn,{children:i?n.jsx(C1.Spin,{}):((p=o||[])==null?void 0:p.length)>0?n.jsxs(n.Fragment,{children:[n.jsx(fn,{level:4,children:l("CoursePage.CourseRatingsTitle")}),(o||[]).map(g=>n.jsx(Cn,{question:g})),r.total>r.per_page&&n.jsx(vn,{children:n.jsx(R1,{total:r.total,perPage:r.per_page,currentPage:r.current_page,onPage:a})})]}):null})},$e=()=>console.warn("INITIAL STATE"),Pe=u.createContext({questionnaires:[],questionnaireId:null,setQuestionnaireId:$e,questionId:null,setQuestionId:$e,reviewId:void 0,courseId:void 0}),jn=({children:e,questionnaires:t})=>{var s;const[r,i]=u.useState(null),[a,o]=u.useState(null),{id:l}=Oe(),p=t==null?void 0:t.at(0),g=(s=p==null?void 0:p.questions)==null?void 0:s.find(({type:c})=>c===Ie.RATE),v=A1({questionnaires:t,questionnaireId:r,questionType:Ie.REVIEW});return u.useEffect(()=>{p!=null&&p.id&&!r&&i(p.id)},[p==null?void 0:p.id,r]),u.useEffect(()=>{g!=null&&g.id&&!a&&o(g.id)},[g==null?void 0:g.id,a]),n.jsx(Pe.Provider,{value:{questionnaires:t,questionnaireId:r,setQuestionnaireId:i,questionId:a,setQuestionId:o,reviewId:v,courseId:Number(l)},children:e})},bn=()=>{const e=u.useContext(Pe);if(!Pe)throw new Error("useCourseRatingContext must be used inside the CourseRatingProvider");return e},yn=u.memo(()=>{const{courseId:e,reviewId:t}=bn();return n.jsx(n.Fragment,{children:e&&t&&n.jsx(_n,{courseId:e,questionId:t})})}),wn=u.memo(({questionnaires:e})=>n.jsx(jn,{questionnaires:e,children:n.jsx("section",{className:"course-ratings",children:n.jsx(yn,{})})})),Tn=O.section` position: relative; margin-top: 100px; @media (max-width: 991px) { @@ -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($e,{}),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($e,{}),n.jsx(Je.ModalCourseAccess,{course:s.value,onCancel:d,onSuccess:()=>{_(),d()}})]})]})]})};export{Xn as default}; +`,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}; diff --git a/assets/index-BqFg9Sk8.js b/assets/index-DM96QUK_.js similarity index 78% rename from assets/index-BqFg9Sk8.js rename to assets/index-DM96QUK_.js index 0b54bc94..02321a84 100644 --- a/assets/index-BqFg9Sk8.js +++ b/assets/index-DM96QUK_.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-BwDDCa5l.js";import{a as h}from"./ResponsiveImage-BfAhZdZG.js";import{C}from"./index-tZXKSMhE.js";import{T as $}from"./index-BUicP6Ke.js";import{C as f}from"./index-CHrUvAxK.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-rgMY50iO.js";import{a as h}from"./ResponsiveImage-Dhino3nz.js";import{C}from"./index-DEYhe5OT.js";import{T as $}from"./index-CRRGeHuq.js";import{C as f}from"./index-C2hKWo6C.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-D8adTAOi.js b/assets/index-DQ0XFVc0.js similarity index 96% rename from assets/index-D8adTAOi.js rename to assets/index-DQ0XFVc0.js index 3c7e036c..978caf2a 100644 --- a/assets/index-D8adTAOi.js +++ b/assets/index-DQ0XFVc0.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-BwDDCa5l.js";import{P as he}from"./index-DNAhof5Q.js";import{B as ge}from"./index-fnJvflA6.js";import{a as W}from"./ResponsiveImage-BfAhZdZG.js";import{P as X}from"./PricingCard-qZg96Hng.js";import{P as je}from"./index-Cnd3jTz7.js";import{D as Ee}from"./index-DLg9NA9K.js";import{C as _}from"./index-CA9fETjN.js";import{E as w}from"./index-BqFg9Sk8.js";import"./index-tZXKSMhE.js";import"./index-BUicP6Ke.js";import"./index-CHrUvAxK.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-rgMY50iO.js";import{P as he}from"./index-BfkvnQOt.js";import{B as ge}from"./index-cEFokj_N.js";import{a as W}from"./ResponsiveImage-Dhino3nz.js";import{P as X}from"./PricingCard-CM9lIEOY.js";import{P as je}from"./index-B4kDx8X4.js";import{D as Ee}from"./index-BgIKVYBh.js";import{C as _}from"./index-oSidytsD.js";import{E as w}from"./index-DM96QUK_.js";import"./index-DEYhe5OT.js";import"./index-CRRGeHuq.js";import"./index-C2hKWo6C.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-qSnNTHpy.js b/assets/index-DVtPk8fp.js similarity index 95% rename from assets/index-qSnNTHpy.js rename to assets/index-DVtPk8fp.js index c05e7cc0..f1fabc42 100644 --- a/assets/index-qSnNTHpy.js +++ b/assets/index-DVtPk8fp.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-BwDDCa5l.js";import{P as Q}from"./index-DNAhof5Q.js";import{B as U}from"./index-fnJvflA6.js";import{R as Y}from"./ResponsiveImage-BfAhZdZG.js";import{P as I}from"./PricingCard-qZg96Hng.js";import{C as R}from"./index-DAvBbJIi.js";import"./warning-BmYsiiaZ.js";import"./index-2DzzTf_1.js";import"./index-tZXKSMhE.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-rgMY50iO.js";import{P as Q}from"./index-BfkvnQOt.js";import{B as U}from"./index-cEFokj_N.js";import{R as Y}from"./ResponsiveImage-Dhino3nz.js";import{P as I}from"./PricingCard-CM9lIEOY.js";import{C as R}from"./index-CUV7LPfP.js";import"./warning-KJqa50Ry.js";import"./index-jvuyDq2a.js";import"./index-DEYhe5OT.js";const Z=j.div` display: flex; align-items: center; flex-wrap: wrap; diff --git a/assets/index-uJPnOlkq.js b/assets/index-DVuKhhZz.js similarity index 95% rename from assets/index-uJPnOlkq.js rename to assets/index-DVuKhhZz.js index 0608f1f7..918d4f9c 100644 --- a/assets/index-uJPnOlkq.js +++ b/assets/index-DVuKhhZz.js @@ -1,4 +1,4 @@ -import{q as a,r as p,D as b,j as s,S as I,an as x,T as w,f as C,i as y,n as v,m as F,c5 as N,Z as E,c6 as A,s as B,L as W,l as _,c7 as H,h as Q,o as q}from"./index-BwDDCa5l.js";import{u as g,C as z,a as D,b as R}from"./CourseAgenda-DsB19i2S.js";import{R as L}from"./index-CdiRyItl.js";import{b as O,Q as V}from"./questionnaires-B0SMBGXj.js";import"./index-BFtnUeGh.js";import"./warning-BmYsiiaZ.js";import"./ResponsiveImage-BfAhZdZG.js";import"./Upload-BclhsyIC.js";const U=a.div` +import{q as a,r as p,D as b,j as s,S as I,an as x,T as w,f as C,i as y,n as v,m as F,c5 as N,Z as E,c6 as A,s as B,L as W,l as _,c7 as H,h as Q,o as q}from"./index-rgMY50iO.js";import{u as g,C as z,a as D,b as R}from"./CourseAgenda-Ci1dXwvI.js";import{R as L}from"./index-Dioo_SYN.js";import{b as O,Q as V}from"./questionnaires-bnQhZjbO.js";import"./index-B3BUBFzI.js";import"./warning-KJqa50Ry.js";import"./ResponsiveImage-Dhino3nz.js";import"./Upload-qBOEpjz2.js";const U=a.div` .course-program-finish-modal { font-family: "Mulish", sans-serif; background: #f8f8f8; diff --git a/assets/index-Dioo_SYN.js b/assets/index-Dioo_SYN.js new file mode 100644 index 00000000..313b1c12 --- /dev/null +++ b/assets/index-Dioo_SYN.js @@ -0,0 +1 @@ +import{f as j,r as h,j as s,cq as w,cr as C,ah as R,T as S,s as T,v as y,D as b,A as f,x as A,b as k}from"./index-rgMY50iO.js";import{a as _}from"./questionnaires-bnQhZjbO.js";const E=({data:i,textareaPlaceholder:c,withStarsRating:m,handleSubmit:t})=>{const{t:p}=j(),{title:g,description:l}=i,[e,a]=h.useState({rate:0,note:""}),x=()=>{t(e.rate,e.note),a({rate:0,note:""})};return s.jsx("form",{onSubmit:x,children:m?s.jsx(w,{onSubmit:r=>a(o=>({...o,rate:r})),header:i.title,onCancel:()=>{},children:s.jsx(C,{placeholder:c,style:{marginTop:"30px"},value:e.note,onChange:({target:{value:r}})=>a(o=>({...o,note:r}))})}):s.jsxs(R,{$gap:30,children:[s.jsx(S.Title,{children:g}),s.jsx(T.Text,{children:l}),s.jsx(C,{placeholder:c,value:e.note,onChange:({target:{value:r}})=>a(o=>({...o,note:r}))}),s.jsx(y.Button,{type:"submit",mode:"primary",style:{width:"fit-content",alignSelf:"center"},children:e.note.length?p("RateCourse.SendAnswer"):p("RateCourse.NoAnswer")})]})})},M=({course:i,courseId:c,visible:m,questionnaire:t,onClose:p})=>{var o;const{sendQuestionnaireAnswer:g}=h.useContext(b.EscolaLMSContext),{t:l}=j(),[e,a]=h.useState({loading:!1,step:0,showLastScreen:!1}),x=h.useCallback(async(d,u)=>{if(t.questions){a(n=>({...n,loading:!0}));try{(await g(i,c,t.id,{question_id:t.questions[e.step].id,rate:d,note:u,visible_on_front:t.questions[e.step].public_answers})).success&&f.success(`${l("RateCourse.ThankYouMessage")}`)}catch(n){f.error("Error"),console.error(n)}finally{a(n=>({...n,loading:!1,step:n.step+1,note:"",rating:null}))}}},[i,c,t.id,e]),r=h.useCallback((d,u)=>{x(d,u),t.questions&&e.step===t.questions.length-1&&a(n=>({...n,showLastScreen:!0}))},[t,e.step,x]);return s.jsx(A.Modal,{onClose:p,visible:m,animation:"zoom",maskAnimation:"fade",destroyOnClose:!0,width:468,children:e.showLastScreen?s.jsxs(k.Fragment,{children:[s.jsx(S.Title,{level:4,className:"modal-title",style:{paddingTop:"50px"},children:l("RateCourse.ThankYou")}),s.jsx(T.Text,{style:{paddingBottom:"50px",textAlign:"center"},children:l("RateCourse.ThankYouMessage")})]}):t.questions&&s.jsx(E,{textareaPlaceholder:l("RateCourse.OptionalComment"),data:t.questions[e.step],handleSubmit:(d,u)=>r(d,u),withStarsRating:((o=t.questions[e.step])==null?void 0:o.type)===_.REVIEW})})};export{M as R}; diff --git a/assets/index-BPUdkZ-s.js b/assets/index-DlW1qbvR.js similarity index 94% rename from assets/index-BPUdkZ-s.js rename to assets/index-DlW1qbvR.js index 96dfc8a4..27818f07 100644 --- a/assets/index-BPUdkZ-s.js +++ b/assets/index-DlW1qbvR.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-BwDDCa5l.js";import{P as W}from"./index-DNAhof5Q.js";import{a as q}from"./PricingCard-qZg96Hng.js";import{P as G}from"./index-Cnd3jTz7.js";import{D as O}from"./index-DLg9NA9K.js";import{B as H}from"./index-fnJvflA6.js";import{a as U}from"./ResponsiveImage-BfAhZdZG.js";import{C as F,T as J}from"./index-BBmfJa4y.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-rgMY50iO.js";import{P as W}from"./index-BfkvnQOt.js";import{a as q}from"./PricingCard-CM9lIEOY.js";import{P as G}from"./index-B4kDx8X4.js";import{D as O}from"./index-BgIKVYBh.js";import{B as H}from"./index-cEFokj_N.js";import{a as U}from"./ResponsiveImage-Dhino3nz.js";import{C as F,T as J}from"./index-BDwMO7p2.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-DgkCRAhC.js b/assets/index-DnBgoLUe.js similarity index 95% rename from assets/index-DgkCRAhC.js rename to assets/index-DnBgoLUe.js index cad78218..4f6ddef3 100644 --- a/assets/index-DgkCRAhC.js +++ b/assets/index-DnBgoLUe.js @@ -1 +1 @@ -import{b as o}from"./index-BwDDCa5l.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-rgMY50iO.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-DjqgBh2n.js b/assets/index-Dr2GJwWy.js similarity index 95% rename from assets/index-DjqgBh2n.js rename to assets/index-Dr2GJwWy.js index 72030b1b..96c5b0fb 100644 --- a/assets/index-DjqgBh2n.js +++ b/assets/index-Dr2GJwWy.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-BwDDCa5l.js";import{P as O}from"./index-DNAhof5Q.js";import{C as ts,a as rs}from"./CourseAgenda-DsB19i2S.js";import{A as L}from"./index-BFtnUeGh.js";import"./Upload-BclhsyIC.js";import"./warning-BmYsiiaZ.js";import"./ResponsiveImage-BfAhZdZG.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-rgMY50iO.js";import{P as O}from"./index-BfkvnQOt.js";import{C as ts,a as rs}from"./CourseAgenda-Ci1dXwvI.js";import{A as L}from"./index-B3BUBFzI.js";import"./Upload-qBOEpjz2.js";import"./warning-KJqa50Ry.js";import"./ResponsiveImage-Dhino3nz.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-CxOgFS2u.js b/assets/index-OVpVpRd0.js similarity index 89% rename from assets/index-CxOgFS2u.js rename to assets/index-OVpVpRd0.js index 5fe7e098..e5181b8e 100644 --- a/assets/index-CxOgFS2u.js +++ b/assets/index-OVpVpRd0.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-BwDDCa5l.js";import{q as f}from"./base-C7euzKDi.js";import{C as _}from"./index-fAJu7lSC.js";import{C as H}from"./index-BmZ8nj8k.js";import{F as L,S as M}from"./index-D0XhAO3h.js";import{E as q}from"./index-BqFg9Sk8.js";import{P as R}from"./index-BeRNFxkO.js";import"./swiper-react-CNMkIwij.js";import"./ResponsiveImage-BfAhZdZG.js";import"./index-tZXKSMhE.js";import"./index-BUicP6Ke.js";import"./index-CHrUvAxK.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-rgMY50iO.js";import{q as f}from"./base-C7euzKDi.js";import{C as _}from"./index-rz9bDXuD.js";import{C as H}from"./index-CkOeZPQt.js";import{F as L,S as M}from"./index-BGsfKgJX.js";import{E as q}from"./index-DM96QUK_.js";import{P as R}from"./index-Bj_4LO6E.js";import"./swiper-react-Blj9s0vN.js";import"./ResponsiveImage-Dhino3nz.js";import"./index-DEYhe5OT.js";import"./index-CRRGeHuq.js";import"./index-C2hKWo6C.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-bOIEcY8h.js b/assets/index-_3yHz1uc.js similarity index 55% rename from assets/index-bOIEcY8h.js rename to assets/index-_3yHz1uc.js index 6d740016..7389252a 100644 --- a/assets/index-bOIEcY8h.js +++ b/assets/index-_3yHz1uc.js @@ -1 +1 @@ -import{aW as i,f as n,i as u,j as s,A as k}from"./index-BwDDCa5l.js";import{P as l}from"./index-CntMwbrZ.js";import"./index-C-knIOix.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-rgMY50iO.js";import{P as l}from"./index-CQyhdORL.js";import"./index-Cx5QnA0M.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-fnJvflA6.js b/assets/index-cEFokj_N.js similarity index 82% rename from assets/index-fnJvflA6.js rename to assets/index-cEFokj_N.js index 6c25a98c..e67a58a5 100644 --- a/assets/index-fnJvflA6.js +++ b/assets/index-cEFokj_N.js @@ -1,4 +1,4 @@ -import{q as o,j as a,cw as s}from"./index-BwDDCa5l.js";const t=o.div` +import{q as o,j as a,cw as s}from"./index-rgMY50iO.js";const t=o.div` margin-bottom: 36px; p { color: ${({theme:r})=>r.mode==="dark"?r.gray5:r.gray2}!important; diff --git a/assets/index-2DzzTf_1.js b/assets/index-jvuyDq2a.js similarity index 96% rename from assets/index-2DzzTf_1.js rename to assets/index-jvuyDq2a.js index 4a3a819c..6823aab7 100644 --- a/assets/index-2DzzTf_1.js +++ b/assets/index-jvuyDq2a.js @@ -1,4 +1,4 @@ -import{q as t,X as l,r as n,j as e,cA as d,s as c,ai as m,I as x}from"./index-BwDDCa5l.js";const f=t.div` +import{q as t,X as l,r as n,j as e,cA as d,s as c,ai as m,I as x}from"./index-rgMY50iO.js";const f=t.div` display: flex; flex-direction: column; diff --git a/assets/index-CA9fETjN.js b/assets/index-oSidytsD.js similarity index 69% rename from assets/index-CA9fETjN.js rename to assets/index-oSidytsD.js index d1291480..85e9126d 100644 --- a/assets/index-CA9fETjN.js +++ b/assets/index-oSidytsD.js @@ -1,4 +1,4 @@ -import{q as r,j as t}from"./index-BwDDCa5l.js";const s=r.div` +import{q as r,j as t}from"./index-rgMY50iO.js";const s=r.div` display: flex; justify-content: space-between; width: 100%; diff --git a/assets/index-C0520CdO.js b/assets/index-pHJfFXgf.js similarity index 95% rename from assets/index-C0520CdO.js rename to assets/index-pHJfFXgf.js index bacec467..e64568b3 100644 --- a/assets/index-C0520CdO.js +++ b/assets/index-pHJfFXgf.js @@ -1,4 +1,4 @@ -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-BwDDCa5l.js";import{C as b,T as O}from"./index-BBmfJa4y.js";import{B as ee}from"./index-fnJvflA6.js";import{a as te}from"./ResponsiveImage-BfAhZdZG.js";import{P as se}from"./PricingCard-qZg96Hng.js";import{W as ae}from"./index-z9-oPlrc.js";import{P as oe}from"./index-Cnd3jTz7.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` +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-rgMY50iO.js";import{C as b,T as O}from"./index-BDwMO7p2.js";import{B as ee}from"./index-cEFokj_N.js";import{a as te}from"./ResponsiveImage-Dhino3nz.js";import{P as se}from"./PricingCard-CM9lIEOY.js";import{W as ae}from"./index-Caq5vuVn.js";import{P as oe}from"./index-B4kDx8X4.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-BwDDCa5l.js b/assets/index-rgMY50iO.js similarity index 80% rename from assets/index-BwDDCa5l.js rename to assets/index-rgMY50iO.js index c827e40b..d526d7c9 100644 --- a/assets/index-BwDDCa5l.js +++ b/assets/index-rgMY50iO.js @@ -1,10 +1,10 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index-BWDnE6v4.js","assets/ResponsiveImage-BfAhZdZG.js","assets/index-fAJu7lSC.js","assets/swiper-react-CNMkIwij.js","assets/index-BQRg9DEl.js","assets/index-ByT3HD2c.js","assets/index-tZXKSMhE.js","assets/index-CHrUvAxK.js","assets/index-Cnd3jTz7.js","assets/swiper-BWFF_Qco.js","assets/swiper-DvoKZ2wl.css","assets/useFetchCourses-CTf6HwPl.js","assets/CourseCard-C30JGy12.js","assets/index-DgkCRAhC.js","assets/useSearchParams-CMraK1kM.js","assets/base-C7euzKDi.js","assets/index-D2EEDxQl.js","assets/Tabs-B1M6WKle.js","assets/index-CA9fETjN.js","assets/index-CdiRyItl.js","assets/questionnaires-B0SMBGXj.js","assets/useDownloadCertificate-S0p9VWMq.js","assets/useRoles-CZ3Pbmi4.js","assets/index-BeRNFxkO.js","assets/index-fDwvoi0a.js","assets/AuthWrapper-B36vgc2t.js","assets/index-guW92oBe.js","assets/index-fnJvflA6.js","assets/index-C-knIOix.js","assets/index-Cm8jcXmV.js","assets/index-DUw7vyQu.js","assets/index-DNAhof5Q.js","assets/index-BUicP6Ke.js","assets/index-DUejgRFA.js","assets/index-CPrZPupU.js","assets/PricingCard-qZg96Hng.js","assets/index-BFtnUeGh.js","assets/warning-BmYsiiaZ.js","assets/index-BEJM8AhD.css","assets/index-DjqgBh2n.js","assets/CourseAgenda-DsB19i2S.js","assets/Upload-BclhsyIC.js","assets/index-qSnNTHpy.js","assets/index-DAvBbJIi.js","assets/index-2DzzTf_1.js","assets/index-By7hXovs.css","assets/index-C-t40R0k.js","assets/index-BmZ8nj8k.js","assets/index-D0XhAO3h.js","assets/index-CE-twewT.js","assets/index-CxOgFS2u.js","assets/index-BqFg9Sk8.js","assets/index-D8adTAOi.js","assets/index-DLg9NA9K.js","assets/index-DcvLU2H2.js","assets/index--KFmeQDg.js","assets/index-C0520CdO.js","assets/index-BBmfJa4y.js","assets/index-z9-oPlrc.js","assets/index-3h6lsqCl.js","assets/index-BPUdkZ-s.js","assets/index-Bm51j3_8.js","assets/index-CntMwbrZ.js","assets/index-bOIEcY8h.js","assets/index-DRe4zRdE.js","assets/my-orders-BHnTRDWy.js","assets/my-consultations-DKpxamxh.js","assets/my-data-4W-0jZl7.js","assets/index-uJPnOlkq.js","assets/index-C2umk5G4.js","assets/index-cRvfodQO.js","assets/my-certificates-4r3nUmSb.js"] + __vite__mapDeps.viteFileDeps = ["assets/index-BOsswcW5.js","assets/ResponsiveImage-Dhino3nz.js","assets/index-rz9bDXuD.js","assets/swiper-react-Blj9s0vN.js","assets/index-Bbkbpsot.js","assets/index-CDFY0ONX.js","assets/index-DEYhe5OT.js","assets/index-C2hKWo6C.js","assets/index-B4kDx8X4.js","assets/swiper-CPGP--u2.js","assets/swiper-DvoKZ2wl.css","assets/useFetchCourses-C8QrBKge.js","assets/CourseCard-BNp2HqRG.js","assets/index-DnBgoLUe.js","assets/useSearchParams-CmF5uHDk.js","assets/base-C7euzKDi.js","assets/index-CZ78E_Aa.js","assets/Tabs-BuuIL9KV.js","assets/index-oSidytsD.js","assets/index-Dioo_SYN.js","assets/questionnaires-bnQhZjbO.js","assets/useDownloadCertificate-DzTKNXCG.js","assets/useRoles-DVMYcivV.js","assets/index-Bj_4LO6E.js","assets/index-Cd6wdOLZ.js","assets/AuthWrapper-CP2GyysX.js","assets/index-BMYeo1-N.js","assets/index-cEFokj_N.js","assets/index-Cx5QnA0M.js","assets/index-Cp_G8hVF.js","assets/index-BP44goY3.js","assets/index-BfkvnQOt.js","assets/index-CRRGeHuq.js","assets/index-B1dAa_iB.js","assets/index-DGvaplHr.js","assets/PricingCard-CM9lIEOY.js","assets/index-B3BUBFzI.js","assets/warning-KJqa50Ry.js","assets/index-BEJM8AhD.css","assets/index-Dr2GJwWy.js","assets/CourseAgenda-Ci1dXwvI.js","assets/Upload-qBOEpjz2.js","assets/index-DVtPk8fp.js","assets/index-CUV7LPfP.js","assets/index-jvuyDq2a.js","assets/index-By7hXovs.css","assets/index-w9LHPXnG.js","assets/index-CkOeZPQt.js","assets/index-BGsfKgJX.js","assets/index-D74bjbr6.js","assets/index-OVpVpRd0.js","assets/index-DM96QUK_.js","assets/index-DQ0XFVc0.js","assets/index-BgIKVYBh.js","assets/index-B3yN8KNK.js","assets/index-CAMTSXf7.js","assets/index-pHJfFXgf.js","assets/index-BDwMO7p2.js","assets/index-Caq5vuVn.js","assets/index-BFu5eoou.js","assets/index-DlW1qbvR.js","assets/index-B0Xc5A9M.js","assets/index-CQyhdORL.js","assets/index-_3yHz1uc.js","assets/index-CEADi1Aj.js","assets/my-orders-BGaC8hnI.js","assets/my-consultations-Dtpsattf.js","assets/my-data-DMINpbKK.js","assets/index-DVuKhhZz.js","assets/index-BDGj3bcL.js","assets/index-D28dnp4A.js","assets/my-certificates-Ctxd4pRk.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -function Oe1(t,e){for(var n=0;na[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();var b=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function G0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function se(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function a(){return this instanceof a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(a){var r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return t[a]}})}),n}var wU={exports:{}},bp={},yU={exports:{}},G2={};/** +function ke1(t,e){for(var n=0;na[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();var b=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function G0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function se(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function a(){return this instanceof a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(a){var r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return t[a]}})}),n}var yU={exports:{}},bp={},xU={exports:{}},G2={};/** * @license React * react.production.min.js * @@ -12,7 +12,7 @@ function Oe1(t,e){for(var n=0;n>>1,J=I[i1];if(0>>1;i1r(h1,R))n1r(M1,h1)?(I[i1]=M1,I[n1]=R,i1=n1):(I[i1]=h1,I[o1]=R,i1=o1);else if(n1r(M1,R))I[i1]=M1,I[n1]=R,i1=n1;else break t}}return t1}function r(I,t1){var R=I.sortIndex-t1.sortIndex;return R!==0?R:I.id-t1.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var c=Date,l=c.now();t.unstable_now=function(){return c.now()-l}}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(I){for(var t1=n(s);t1!==null;){if(t1.callback===null)a(s);else if(t1.startTime<=I)a(s),t1.sortIndex=t1.expirationTime,e(h,t1);else break;t1=n(s)}}function w(I){if(g=!1,z(I),!M)if(n(h)!==null)M=!0,U(x);else{var t1=n(s);t1!==null&&Z(w,t1.startTime-I)}}function x(I,t1){M=!1,g&&(g=!1,p(C),C=-1),d=!0;var R=f;try{for(z(t1),v=n(h);v!==null&&(!(v.expirationTime>t1)||I&&!_());){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===n(h)&&a(h),z(t1)}else a(h);v=n(h)}if(v!==null)var A=!0;else{var o1=n(s);o1!==null&&Z(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 _(){return!(t.unstable_now()-BI||125i1?(I.sortIndex=R,e(s,I),n(h)===null&&I===n(s)&&(g?(p(C),C=-1):g=!0,Z(w,R-i1))):(I.sortIndex=J,e(h,I),M||d||(M=!0,U(x))),I},t.unstable_shouldYield=_,t.unstable_wrapCallback=function(I){var t1=f;return function(){var R=f;f=t1;try{return I.apply(this,arguments)}finally{f=R}}}})(AU);OU.exports=AU;var e41=OU.exports;/** + */(function(t){function e(I,t1){var R=I.length;I.push(t1);t:for(;0>>1,J=I[i1];if(0>>1;i1r(h1,R))n1r(M1,h1)?(I[i1]=M1,I[n1]=R,i1=n1):(I[i1]=h1,I[o1]=R,i1=o1);else if(n1r(M1,R))I[i1]=M1,I[n1]=R,i1=n1;else break t}}return t1}function r(I,t1){var R=I.sortIndex-t1.sortIndex;return R!==0?R:I.id-t1.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var c=Date,l=c.now();t.unstable_now=function(){return c.now()-l}}var h=[],s=[],u=1,v=null,f=3,d=!1,z=!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 M(I){for(var t1=n(s);t1!==null;){if(t1.callback===null)a(s);else if(t1.startTime<=I)a(s),t1.sortIndex=t1.expirationTime,e(h,t1);else break;t1=n(s)}}function w(I){if(g=!1,M(I),!z)if(n(h)!==null)z=!0,U(x);else{var t1=n(s);t1!==null&&Z(w,t1.startTime-I)}}function x(I,t1){z=!1,g&&(g=!1,p(C),C=-1),d=!0;var R=f;try{for(M(t1),v=n(h);v!==null&&(!(v.expirationTime>t1)||I&&!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===n(h)&&a(h),M(t1)}else a(h);v=n(h)}if(v!==null)var A=!0;else{var o1=n(s);o1!==null&&Z(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()-BI||125i1?(I.sortIndex=R,e(s,I),n(h)===null&&I===n(s)&&(g?(p(C),C=-1):g=!0,Z(w,R-i1))):(I.sortIndex=J,e(h,I),z||d||(z=!0,U(x))),I},t.unstable_shouldYield=S,t.unstable_wrapCallback=function(I){var t1=f;return function(){var R=f;f=t1;try{return I.apply(this,arguments)}finally{f=R}}}})(kU);AU.exports=kU;var a41=AU.exports;/** * @license React * react-dom.production.min.js * @@ -36,44 +36,44 @@ function Oe1(t,e){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),UV=Object.prototype.hasOwnProperty,n41=/^[: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={},aA={};function a41(t){return UV.call(aA,t)?!0:UV.call(nA,t)?!1:n41.test(t)?aA[t]=!0:(nA[t]=!0,!1)}function r41(t,e,n,a){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return a?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function i41(t,e,n,a){if(e===null||typeof e>"u"||r41(t,e,n,a))return!0;if(a)return!1;if(n!==null)switch(n.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 wn(t,e,n,a,r,o,c){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=c}var A4={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){A4[t]=new wn(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 wn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){A4[t]=new wn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){A4[t]=new wn(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 wn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){A4[t]=new wn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){A4[t]=new wn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){A4[t]=new wn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){A4[t]=new wn(t,5,!1,t.toLowerCase(),null,!1,!1)});var cB=/[\-:]([a-z])/g;function lB(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(cB,lB);A4[e]=new wn(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(cB,lB);A4[e]=new wn(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(cB,lB);A4[e]=new wn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){A4[t]=new wn(t,1,!1,t.toLowerCase(),null,!1,!1)});A4.xlinkHref=new wn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){A4[t]=new wn(t,1,!1,t.toLowerCase(),null,!0,!0)});function sB(t,e,n,a){var r=A4.hasOwnProperty(e)?A4[e]:null;(r!==null?r.type!==0:a||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),UV=Object.prototype.hasOwnProperty,r41=/^[: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={},aA={};function i41(t){return UV.call(aA,t)?!0:UV.call(nA,t)?!1:r41.test(t)?aA[t]=!0:(nA[t]=!0,!1)}function o41(t,e,n,a){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return a?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function c41(t,e,n,a){if(e===null||typeof e>"u"||o41(t,e,n,a))return!0;if(a)return!1;if(n!==null)switch(n.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 wn(t,e,n,a,r,o,c){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=c}var A4={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){A4[t]=new wn(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 wn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){A4[t]=new wn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){A4[t]=new wn(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 wn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){A4[t]=new wn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){A4[t]=new wn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){A4[t]=new wn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){A4[t]=new wn(t,5,!1,t.toLowerCase(),null,!1,!1)});var cB=/[\-:]([a-z])/g;function lB(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(cB,lB);A4[e]=new wn(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(cB,lB);A4[e]=new wn(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(cB,lB);A4[e]=new wn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){A4[t]=new wn(t,1,!1,t.toLowerCase(),null,!1,!1)});A4.xlinkHref=new wn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){A4[t]=new wn(t,1,!1,t.toLowerCase(),null,!0,!0)});function sB(t,e,n,a){var r=A4.hasOwnProperty(e)?A4[e]:null;(r!==null?r.type!==0:a||!(2l||r[c]!==o[l]){var h=` -`+r[c].replace(" at new "," at ");return t.displayName&&h.includes("")&&(h=h.replace("",t.displayName)),h}while(1<=c&&0<=l);break}}}finally{fw=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?z7(t):""}function o41(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=gw(t.type,!1),t;case 11:return t=gw(t.type.render,!1),t;case 1:return t=gw(t.type,!0),t;default:return""}}function KV(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 lc:return"Fragment";case cc:return"Portal";case WV:return"Profiler";case hB:return"StrictMode";case qV:return"Suspense";case GV:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case NU:return(t.displayName||"Context")+".Consumer";case PU: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:KV(t.type)||"Memo";case x3:e=t._payload,t=t._init;try{return KV(t(e))}catch{}}return null}function c41(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 KV(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 ao(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function RU(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function l41(t){var e=RU(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),a=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(c){a=""+c,o.call(this,c)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Vv(t){t._valueTracker||(t._valueTracker=l41(t))}function jU(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=RU(t)?t.checked?"true":"false":t.value),t=a,t!==n?(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 YV(t,e){var n=e.checked;return He({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function iA(t,e){var n=e.defaultValue==null?"":e.defaultValue,a=e.checked!=null?e.checked:e.defaultChecked;n=ao(e.value!=null?e.value:n),t._wrapperState={initialChecked:a,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function IU(t,e){e=e.checked,e!=null&&sB(t,"checked",e,!1)}function ZV(t,e){IU(t,e);var n=ao(e.value),a=e.type;if(n!=null)a==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?QV(t,e.type,n):e.hasOwnProperty("defaultValue")&&QV(t,e.type,ao(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function oA(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var a=e.type;if(!(a!=="submit"&&a!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function QV(t,e,n){(e!=="number"||Rf(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var M7=Array.isArray;function Lc(t,e,n,a){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 n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var _7={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},s41=["Webkit","ms","Moz","O"];Object.keys(_7).forEach(function(t){s41.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),_7[e]=_7[t]})});function WU(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||_7.hasOwnProperty(t)&&_7[t]?(""+e).trim():e+"px"}function qU(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var a=n.indexOf("--")===0,r=WU(n,e[n],a);n==="float"&&(n="cssFloat"),a?t.setProperty(n,r):t[n]=r}}var h41=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 tC(t,e){if(e){if(h41[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 eC(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 nC=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,Bc=null,Sc=null;function sA(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 GU(t){Bc?Sc?Sc.push(t):Sc=[t]:Bc=t}function KU(){if(Bc){var t=Bc,e=Sc;if(Sc=Bc=null,sA(t),e)for(t=0;t>>=0,t===0?32:31-(w41(t)/y41|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 n=t.pendingLanes;if(n===0)return 0;var a=0,r=t.suspendedLanes,o=t.pingedLanes,c=n&268435455;if(c!==0){var l=c&~r;l!==0?a=H7(l):(o&=c,o!==0&&(a=H7(o)))}else c=n&~r,c!==0?a=H7(c):o!==0&&(a=H7(o));if(a===0)return 0;if(e!==0&&e!==a&&!(e&r)&&(r=a&-a,o=e&-e,r>=o||r===16&&(o&4194240)!==0))return e;if(a&4&&(a|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=a;0n;n++)e.push(t);return e}function hh(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-br(e),t[e]=n}function b41(t,e){var n=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 a=t.eventTimes;for(t=t.expirationTimes;0=O7),zA=" ",MA=!1;function fW(t,e){switch(t){case"keyup":return tn1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gW(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var sc=!1;function nn1(t,e){switch(t){case"compositionend":return gW(e);case"keypress":return e.which!==32?null:(MA=!0,zA);case"textInput":return t=e.data,t===zA&&MA?null:t;default:return null}}function an1(t,e){if(sc)return t==="compositionend"||!wB&&fW(t,e)?(t=vW(),ef=zB=P3=null,sc=!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:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=xA(n)}}function MW(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?MW(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function HW(){for(var t=window,e=Rf();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)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 vn1(t){var e=HW(),n=t.focusedElem,a=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&MW(n.ownerDocument.documentElement,n)){if(a!==null&&yB(n)){if(e=a.start,t=a.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=n.textContent.length,o=Math.min(a.start,r);a=a.end===void 0?o:Math.min(a.end,r),!t.extend&&o>a&&(r=a,a=o,o=r),r=VA(n,o);var c=VA(n,a);r&&c&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==c.node||t.focusOffset!==c.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),o>a?(t.addRange(e),t.extend(c.node,c.offset)):(e.setEnd(c.node,c.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,hc=null,sC=null,k7=null,hC=!1;function CA(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hC||hc==null||hc!==Rf(a)||(a=hc,"selectionStart"in a&&yB(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),k7&&xs(k7,a)||(k7=a,a=qf(sC,"onSelect"),0dc||(t.current=pC[dc],pC[dc]=null,dc--)}function U0(t,e){dc++,pC[dc]=t.current,t.current=e}var ro={},X4=Ho(ro),jn=Ho(!1),N8=ro;function Uc(t,e){var n=t.type.contextTypes;if(!n)return ro;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===e)return a.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=e[o];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function In(t){return t=t.childContextTypes,t!=null}function Kf(){ee(jn),ee(X4)}function OA(t,e,n){if(X4.current!==ro)throw Error(pt(168));U0(X4,e),U0(jn,n)}function SW(t,e,n){var a=t.stateNode;if(e=e.childContextTypes,typeof a.getChildContext!="function")return n;a=a.getChildContext();for(var r in a)if(!(r in e))throw Error(pt(108,c41(t)||"Unknown",r));return He({},n,a)}function Yf(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ro,N8=X4.current,U0(X4,t),U0(jn,jn.current),!0}function AA(t,e,n){var a=t.stateNode;if(!a)throw Error(pt(169));n?(t=SW(t,e,N8),a.__reactInternalMemoizedMergedChildContext=t,ee(jn),ee(X4),U0(X4,t)):ee(jn),U0(jn,n)}var ri=null,Op=!1,Sw=!1;function _W(t){ri===null?ri=[t]:ri.push(t)}function Vn1(t){Op=!0,_W(t)}function wo(){if(!Sw&&ri!==null){Sw=!0;var t=0,e=M0;try{var n=ri;for(M0=1;t>=c,r-=c,li=1<<32-br(e)+r|n<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 n(p,V),ce&&i8(p,C),x;if(V===null){for(;CC?(L=V,V=null):L=V.sibling;var _=f(p,V,B.value,w);if(_===null){V===null&&(V=L);break}t&&V&&_.alternate===null&&e(p,V),m=o(_,m,C),y===null?x=_:y.sibling=_,y=_,V=L}if(B.done)return n(p,V),ce&&i8(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 ce&&i8(p,C),x}for(V=a(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)}),ce&&i8(p,C),x}function H(p,m,z,w){if(typeof z=="object"&&z!==null&&z.type===lc&&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===lc){if(y.tag===7){n(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===x3&&jA(x)===y.type){n(p,y.sibling),m=r(y,z.props),m.ref=A9(p,y,z),m.return=p,p=m;break t}n(p,y);break}else e(p,y);y=y.sibling}z.type===lc?(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 c(p);case cc: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){n(p,m.sibling),m=r(m,z.children||[]),m.return=p,p=m;break t}else{n(p,m);break}else e(p,m);m=m.sibling}m=Nw(z,p.mode,w),m.return=p,p=m}return c(p);case x3: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?(n(p,m.sibling),m=r(m,z),m.return=p,p=m):(n(p,m),m=Pw(z,p.mode,w),m.return=p,p=m),c(p)):n(p,m)}return H}var qc=DW(!0),RW=DW(!1),dh={},M5=Ho(dh),Ls=Ho(dh),Bs=Ho(dh);function y8(t){if(t===dh)throw Error(pt(174));return t}function TB(t,e){switch(U0(Bs,e),U0(Ls,t),U0(M5,dh),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:JV(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=JV(e,t)}ee(M5),U0(M5,e)}function Gc(){ee(M5),ee(Ls),ee(Bs)}function jW(t){y8(Bs.current);var e=y8(M5.current),n=JV(e,t.type);e!==n&&(U0(Ls,t),U0(M5,n))}function OB(t){Ls.current===t&&(ee(M5),ee(Ls))}var pe=Ho(0);function eg(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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=Oi.ReactCurrentDispatcher,Tw=Oi.ReactCurrentBatchConfig,R8=0,Me=null,n4=null,g4=null,ng=!1,E7=!1,Ss=0,bn1=0;function I4(){throw Error(pt(321))}function kB(t,e){if(e===null)return!1;for(var n=0;nn?n:4,t(!0);var a=Tw.transition;Tw.transition={};try{t(!1),e()}finally{M0=n,Tw.transition=a}}function nq(){return Ua().memoizedState}function Bn1(t,e,n){var a=K3(t);if(n={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null},aq(t))rq(e,n);else if(n=kW(t,e,n,a),n!==null){var r=gn();Lr(n,t,a,r),iq(n,e,a)}}function Sn1(t,e,n){var a=K3(t),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(aq(t))rq(e,r);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var c=e.lastRenderedState,l=o(c,n);if(r.hasEagerState=!0,r.eagerState=l,Or(l,c)){var h=e.interleaved;h===null?(r.next=r,SB(e)):(r.next=h.next,h.next=r),e.interleaved=r;return}}catch{}finally{}n=kW(t,e,r,a),n!==null&&(r=gn(),Lr(n,t,a,r),iq(n,e,a))}}function aq(t){var e=t.alternate;return t===Me||e!==null&&e===Me}function rq(t,e){E7=ng=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function iq(t,e,n){if(n&4194240){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,gB(t,n)}}var ag={readContext:$a,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},_n1={readContext:$a,useCallback:function(t,e){return Qr().memoizedState=[t,e===void 0?null:e],t},useContext:$a,useEffect:FA,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,of(4194308,4,QW.bind(null,e,t),n)},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 n=Qr();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var a=Qr();return e=n!==void 0?n(e):e,a.memoizedState=a.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},a.queue=t,t=t.dispatch=Bn1.bind(null,Me,t),[a.memoizedState,t]},useRef:function(t){var e=Qr();return t={current:t},e.memoizedState=t},useState:IA,useDebugValue:DB,useDeferredValue:function(t){return Qr().memoizedState=t},useTransition:function(){var t=IA(!1),e=t[0];return t=Ln1.bind(null,t[1]),Qr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var a=Me,r=Qr();if(ce){if(n===void 0)throw Error(pt(407));n=n()}else{if(n=e(),M4===null)throw Error(pt(349));R8&30||$W(a,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,FA(WW.bind(null,a,o,t),[t]),a.flags|=2048,Ts(9,UW.bind(null,a,o,n,e),void 0,null),n},useId:function(){var t=Qr(),e=M4.identifierPrefix;if(ce){var n=si,a=li;n=(a&~(1<<32-br(a)-1)).toString(32)+n,e=":"+e+"R"+n,n=Ss++,0")&&(h=h.replace("",t.displayName)),h}while(1<=c&&0<=l);break}}}finally{fw=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?z7(t):""}function l41(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=gw(t.type,!1),t;case 11:return t=gw(t.type.render,!1),t;case 1:return t=gw(t.type,!0),t;default:return""}}function KV(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 ll:return"Fragment";case cl:return"Portal";case WV:return"Profiler";case hB:return"StrictMode";case qV:return"Suspense";case GV:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case DU:return(t.displayName||"Context")+".Consumer";case NU: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:KV(t.type)||"Memo";case y3:e=t._payload,t=t._init;try{return KV(t(e))}catch{}}return null}function s41(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 KV(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 jU(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function h41(t){var e=jU(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),a=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(c){a=""+c,o.call(this,c)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Vv(t){t._valueTracker||(t._valueTracker=h41(t))}function IU(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=jU(t)?t.checked?"true":"false":t.value),t=a,t!==n?(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 YV(t,e){var n=e.checked;return He({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function iA(t,e){var n=e.defaultValue==null?"":e.defaultValue,a=e.checked!=null?e.checked:e.defaultChecked;n=ro(e.value!=null?e.value:n),t._wrapperState={initialChecked:a,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function FU(t,e){e=e.checked,e!=null&&sB(t,"checked",e,!1)}function ZV(t,e){FU(t,e);var n=ro(e.value),a=e.type;if(n!=null)a==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?QV(t,e.type,n):e.hasOwnProperty("defaultValue")&&QV(t,e.type,ro(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function oA(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var a=e.type;if(!(a!=="submit"&&a!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function QV(t,e,n){(e!=="number"||Rf(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var M7=Array.isArray;function Ll(t,e,n,a){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 n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.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},u41=["Webkit","ms","Moz","O"];Object.keys(S7).forEach(function(t){u41.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),S7[e]=S7[t]})});function qU(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||S7.hasOwnProperty(t)&&S7[t]?(""+e).trim():e+"px"}function GU(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var a=n.indexOf("--")===0,r=qU(n,e[n],a);n==="float"&&(n="cssFloat"),a?t.setProperty(n,r):t[n]=r}}var v41=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 tC(t,e){if(e){if(v41[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 eC(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 nC=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,Bl=null,_l=null;function sA(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 KU(t){Bl?_l?_l.push(t):_l=[t]:Bl=t}function YU(){if(Bl){var t=Bl,e=_l;if(_l=Bl=null,sA(t),e)for(t=0;t>>=0,t===0?32:31-(x41(t)/V41|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 n=t.pendingLanes;if(n===0)return 0;var a=0,r=t.suspendedLanes,o=t.pingedLanes,c=n&268435455;if(c!==0){var l=c&~r;l!==0?a=H7(l):(o&=c,o!==0&&(a=H7(o)))}else c=n&~r,c!==0?a=H7(c):o!==0&&(a=H7(o));if(a===0)return 0;if(e!==0&&e!==a&&!(e&r)&&(r=a&-a,o=e&-e,r>=o||r===16&&(o&4194240)!==0))return e;if(a&4&&(a|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=a;0n;n++)e.push(t);return e}function hh(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-br(e),t[e]=n}function B41(t,e){var n=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 a=t.eventTimes;for(t=t.expirationTimes;0=O7),zA=" ",MA=!1;function gW(t,e){switch(t){case"keyup":return nn1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pW(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var sl=!1;function rn1(t,e){switch(t){case"compositionend":return pW(e);case"keypress":return e.which!==32?null:(MA=!0,zA);case"textInput":return t=e.data,t===zA&&MA?null:t;default:return null}}function in1(t,e){if(sl)return t==="compositionend"||!wB&&gW(t,e)?(t=dW(),ef=zB=P3=null,sl=!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:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=xA(n)}}function HW(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?HW(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function wW(){for(var t=window,e=Rf();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)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 fn1(t){var e=wW(),n=t.focusedElem,a=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&HW(n.ownerDocument.documentElement,n)){if(a!==null&&yB(n)){if(e=a.start,t=a.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=n.textContent.length,o=Math.min(a.start,r);a=a.end===void 0?o:Math.min(a.end,r),!t.extend&&o>a&&(r=a,a=o,o=r),r=VA(n,o);var c=VA(n,a);r&&c&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==c.node||t.focusOffset!==c.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),o>a?(t.addRange(e),t.extend(c.node,c.offset)):(e.setEnd(c.node,c.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,hl=null,sC=null,k7=null,hC=!1;function CA(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hC||hl==null||hl!==Rf(a)||(a=hl,"selectionStart"in a&&yB(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),k7&&xs(k7,a)||(k7=a,a=qf(sC,"onSelect"),0dl||(t.current=pC[dl],pC[dl]=null,dl--)}function U0(t,e){dl++,pC[dl]=t.current,t.current=e}var io={},X4=wo(io),jn=wo(!1),D8=io;function Ul(t,e){var n=t.type.contextTypes;if(!n)return io;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===e)return a.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=e[o];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function In(t){return t=t.childContextTypes,t!=null}function Kf(){ee(jn),ee(X4)}function OA(t,e,n){if(X4.current!==io)throw Error(pt(168));U0(X4,e),U0(jn,n)}function SW(t,e,n){var a=t.stateNode;if(e=e.childContextTypes,typeof a.getChildContext!="function")return n;a=a.getChildContext();for(var r in a)if(!(r in e))throw Error(pt(108,s41(t)||"Unknown",r));return He({},n,a)}function Yf(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||io,D8=X4.current,U0(X4,t),U0(jn,jn.current),!0}function AA(t,e,n){var a=t.stateNode;if(!a)throw Error(pt(169));n?(t=SW(t,e,D8),a.__reactInternalMemoizedMergedChildContext=t,ee(jn),ee(X4),U0(X4,t)):ee(jn),U0(jn,n)}var a5=null,Op=!1,_w=!1;function TW(t){a5===null?a5=[t]:a5.push(t)}function bn1(t){Op=!0,TW(t)}function yo(){if(!_w&&a5!==null){_w=!0;var t=0,e=M0;try{var n=a5;for(M0=1;t>=c,r-=c,c5=1<<32-br(e)+r|n<C?(L=V,V=null):L=V.sibling;var B=f(p,V,M[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===M.length)return n(p,V),ce&&c8(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 n(p,V),ce&&c8(p,C),x;if(V===null){for(;!B.done;C++,B=M.next())B=v(p,B.value,w),B!==null&&(m=o(B,m,C),y===null?x=B:y.sibling=B,y=B);return ce&&c8(p,C),x}for(V=a(p,V);!B.done;C++,B=M.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)}),ce&&c8(p,C),x}function H(p,m,M,w){if(typeof M=="object"&&M!==null&&M.type===ll&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case xv:t:{for(var x=M.key,y=m;y!==null;){if(y.key===x){if(x=M.type,x===ll){if(y.tag===7){n(p,y.sibling),m=r(y,M.props.children),m.return=p,p=m;break t}}else if(y.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===y3&&jA(x)===y.type){n(p,y.sibling),m=r(y,M.props),m.ref=A9(p,y,M),m.return=p,p=m;break t}n(p,y);break}else e(p,y);y=y.sibling}M.type===ll?(m=S8(M.props.children,p.mode,w,M.key),m.return=p,p=m):(w=hf(M.type,M.key,M.props,null,p.mode,w),w.ref=A9(p,m,M),w.return=p,p=w)}return c(p);case cl:t:{for(y=M.key;m!==null;){if(m.key===y)if(m.tag===4&&m.stateNode.containerInfo===M.containerInfo&&m.stateNode.implementation===M.implementation){n(p,m.sibling),m=r(m,M.children||[]),m.return=p,p=m;break t}else{n(p,m);break}else e(p,m);m=m.sibling}m=Nw(M,p.mode,w),m.return=p,p=m}return c(p);case y3:return y=M._init,H(p,m,y(M._payload),w)}if(M7(M))return z(p,m,M,w);if(B9(M))return g(p,m,M,w);kv(p,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,m!==null&&m.tag===6?(n(p,m.sibling),m=r(m,M),m.return=p,p=m):(n(p,m),m=Pw(M,p.mode,w),m.return=p,p=m),c(p)):n(p,m)}return H}var ql=RW(!0),jW=RW(!1),dh={},zi=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(U0(Bs,e),U0(Ls,t),U0(zi,dh),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:JV(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=JV(e,t)}ee(zi),U0(zi,e)}function Gl(){ee(zi),ee(Ls),ee(Bs)}function IW(t){x8(Bs.current);var e=x8(zi.current),n=JV(e,t.type);e!==n&&(U0(Ls,t),U0(zi,n))}function OB(t){Ls.current===t&&(ee(zi),ee(Ls))}var pe=wo(0);function eg(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 Sw=[];function AB(){for(var t=0;tn?n:4,t(!0);var a=Tw.transition;Tw.transition={};try{t(!1),e()}finally{M0=n,Tw.transition=a}}function aq(){return Ua().memoizedState}function Sn1(t,e,n){var a=Y3(t);if(n={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null},rq(t))iq(e,n);else if(n=EW(t,e,n,a),n!==null){var r=gn();Lr(n,t,a,r),oq(n,e,a)}}function Tn1(t,e,n){var a=Y3(t),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(rq(t))iq(e,r);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var c=e.lastRenderedState,l=o(c,n);if(r.hasEagerState=!0,r.eagerState=l,Or(l,c)){var h=e.interleaved;h===null?(r.next=r,_B(e)):(r.next=h.next,h.next=r),e.interleaved=r;return}}catch{}finally{}n=EW(t,e,r,a),n!==null&&(r=gn(),Lr(n,t,a,r),oq(n,e,a))}}function rq(t){var e=t.alternate;return t===Me||e!==null&&e===Me}function iq(t,e){E7=ng=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function oq(t,e,n){if(n&4194240){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,gB(t,n)}}var ag={readContext:$a,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},On1={readContext:$a,useCallback:function(t,e){return Qr().memoizedState=[t,e===void 0?null:e],t},useContext:$a,useEffect:FA,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,of(4194308,4,XW.bind(null,e,t),n)},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 n=Qr();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var a=Qr();return e=n!==void 0?n(e):e,a.memoizedState=a.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},a.queue=t,t=t.dispatch=Sn1.bind(null,Me,t),[a.memoizedState,t]},useRef:function(t){var e=Qr();return t={current:t},e.memoizedState=t},useState:IA,useDebugValue:DB,useDeferredValue:function(t){return Qr().memoizedState=t},useTransition:function(){var t=IA(!1),e=t[0];return t=_n1.bind(null,t[1]),Qr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var a=Me,r=Qr();if(ce){if(n===void 0)throw Error(pt(407));n=n()}else{if(n=e(),M4===null)throw Error(pt(349));j8&30||UW(a,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,FA(qW.bind(null,a,o,t),[t]),a.flags|=2048,Ts(9,WW.bind(null,a,o,n,e),void 0,null),n},useId:function(){var t=Qr(),e=M4.identifierPrefix;if(ce){var n=l5,a=c5;n=(a&~(1<<32-br(a)-1)).toString(32)+n,e=":"+e+"R"+n,n=_s++,0<\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=c.createElement(n,{is:a.is}):(t=c.createElement(n),n==="select"&&(c=t,a.multiple?c.multiple=!0:a.size&&(c.size=a.size))):t=c.createElementNS(t,n),t[n5]=e,t[bs]=a,fq(t,e,!1,!1),e.stateNode=t;t:{switch(c=eC(n,a),n){case"dialog":Z0("cancel",t),Z0("close",t),r=a;break;case"iframe":case"object":case"embed":Z0("load",t),r=a;break;case"video":case"audio":for(r=0;rYc&&(e.flags|=128,a=!0,k9(o,!1),e.lanes=4194304)}else{if(!a)if(t=eg(c),t!==null){if(e.flags|=128,a=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),k9(o,!0),o.tail===null&&o.tailMode==="hidden"&&!c.alternate&&!ce)return F4(e),null}else 2*Oe()-o.renderingStartTime>Yc&&n!==1073741824&&(e.flags|=128,a=!0,k9(o,!1),e.lanes=4194304);o.isBackwards?(c.sibling=e.child,e.child=c):(n=o.last,n!==null?n.sibling=c:e.child=c,o.last=c)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Oe(),e.sibling=null,n=pe.current,U0(pe,a?n&1|2:n&1),e):(F4(e),null);case 22:case 23:return UB(),a=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(e.flags|=8192),a&&e.mode&1?Xn&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 Dn1(t,e){switch(VB(e),e.tag){case 1:return In(e.type)&&Kf(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Gc(),ee(jn),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));Wc()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ee(pe),null;case 4:return Gc(),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,q4=!1,Rn1=typeof WeakSet=="function"?WeakSet:Set,$t=null;function mc(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(a){be(t,e,a)}else n.current=null}function BC(t,e,n){try{n()}catch(a){be(t,e,a)}}var QA=!1;function jn1(t,e){if(uC=Uf,t=HW(),yB(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var c=0,l=-1,h=-1,s=0,u=0,v=t,f=null;e:for(;;){for(var d;v!==n||r!==0&&v.nodeType!==3||(l=c+r),v!==o||a!==0&&v.nodeType!==3||(h=c+a),v.nodeType===3&&(c+=v.nodeValue.length),(d=v.firstChild)!==null;)f=v,v=d;for(;;){if(v===t)break e;if(f===n&&++s===r&&(l=c),f===o&&++u===a&&(h=c),(d=v.nextSibling)!==null)break;v=f,f=v.parentNode}v=d}n=l===-1||h===-1?null:{start:l,end:h}}else n=null}n=n||{start:0,end:0}}else n=null;for(vC={focusedElem:t,selectionRange:n},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=QA,QA=!1,M}function P7(t,e,n){var a=e.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var r=a=a.next;do{if((r.tag&t)===t){var o=r.destroy;r.destroy=void 0,o!==void 0&&BC(e,n,o)}r=r.next}while(r!==a)}}function Ep(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var a=n.create;n.destroy=a()}n=n.next}while(n!==e)}}function SC(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function mq(t){var e=t.alternate;e!==null&&(t.alternate=null,mq(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[n5],delete e[bs],delete e[gC],delete e[yn1],delete e[xn1])),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 zq(t){return t.tag===5||t.tag===3||t.tag===4}function XA(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||zq(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,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Gf));else if(a!==4&&(t=t.child,t!==null))for(_C(t,e,n),t=t.sibling;t!==null;)_C(t,e,n),t=t.sibling}function TC(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(TC(t,e,n),t=t.sibling;t!==null;)TC(t,e,n),t=t.sibling}var L4=null,Mr=!1;function o3(t,e,n){for(n=n.child;n!==null;)Mq(t,e,n),n=n.sibling}function Mq(t,e,n){if(z5&&typeof z5.onCommitFiberUnmount=="function")try{z5.onCommitFiberUnmount(Lp,n)}catch{}switch(n.tag){case 5:q4||mc(n,e);case 6:var a=L4,r=Mr;L4=null,o3(t,e,n),L4=a,Mr=r,L4!==null&&(Mr?(t=L4,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):L4.removeChild(n.stateNode));break;case 18:L4!==null&&(Mr?(t=L4,n=n.stateNode,t.nodeType===8?Bw(t.parentNode,n):t.nodeType===1&&Bw(t,n),ws(t)):Bw(L4,n.stateNode));break;case 4:a=L4,r=Mr,L4=n.stateNode.containerInfo,Mr=!0,o3(t,e,n),L4=a,Mr=r;break;case 0:case 11:case 14:case 15:if(!q4&&(a=n.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){r=a=a.next;do{var o=r,c=o.destroy;o=o.tag,c!==void 0&&(o&2||o&4)&&BC(n,e,c),r=r.next}while(r!==a)}o3(t,e,n);break;case 1:if(!q4&&(mc(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=n.memoizedProps,a.state=n.memoizedState,a.componentWillUnmount()}catch(l){be(n,e,l)}o3(t,e,n);break;case 21:o3(t,e,n);break;case 22:n.mode&1?(q4=(a=q4)||n.memoizedState!==null,o3(t,e,n),q4=a):o3(t,e,n);break;default:o3(t,e,n)}}function JA(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new Rn1),e.forEach(function(a){var r=Yn1.bind(null,t,a);n.has(a)||(n.add(a),a.then(r,r))})}}function sr(t,e){var n=e.deletions;if(n!==null)for(var a=0;ar&&(r=c),a&=~o}if(a=r,a=Oe()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Fn1(a/1960))-a,10t?16:t,N3===null)var a=!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,c=o.child;if($t.flags&16){var l=o.deletions;if(l!==null){for(var h=0;hOe()-FB?B8(t,0):IB|=n),Fn(t,e)}function Lq(t,e){e===0&&(t.mode&1?(e=Lv,Lv<<=1,!(Lv&130023424)&&(Lv=4194304)):e=1);var n=gn();t=Mi(t,e),t!==null&&(hh(t,e,n),Fn(t,n))}function Kn1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Lq(t,n)}function Yn1(t,e){var n=0;switch(t.tag){case 13:var a=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(pt(314))}a!==null&&a.delete(e),Lq(t,n)}var Bq;Bq=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||jn.current)Dn=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Dn=!1,Pn1(t,e,n);Dn=!!(t.flags&131072)}else Dn=!1,ce&&e.flags&1048576&&TW(e,Qf,e.index);switch(e.lanes=0,e.tag){case 2:var a=e.type;cf(t,e),t=e.pendingProps;var r=Uc(e,X4.current);Tc(e,n),r=EB(null,e,a,t,r,n);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,In(a)?(o=!0,Yf(e)):o=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,_B(e),r.updater=Ap,e.stateNode=r,r._reactInternals=e,wC(e,a,t,n),e=VC(null,e,a,!0,o,n)):(e.tag=0,ce&&o&&xB(e),hn(null,e,r,n),e=e.child),e;case 16:a=e.elementType;t:{switch(cf(t,e),t=e.pendingProps,r=a._init,a=r(a._payload),e.type=a,r=e.tag=Qn1(a),t=mr(a,t),r){case 0:e=xC(null,e,a,t,n);break t;case 1:e=KA(null,e,a,t,n);break t;case 11:e=qA(null,e,a,t,n);break t;case 14:e=GA(null,e,a,mr(a.type,t),n);break t}throw Error(pt(306,a,""))}return e;case 0:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:mr(a,r),xC(t,e,a,r,n);case 1:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:mr(a,r),KA(t,e,a,r,n);case 3:t:{if(uq(e),t===null)throw Error(pt(387));a=e.pendingProps,o=e.memoizedState,r=o.element,EW(t,e),tg(e,a,null,n);var c=e.memoizedState;if(a=c.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){r=Kc(Error(pt(423)),e),e=YA(t,e,a,n,r);break t}else if(a!==r){r=Kc(Error(pt(424)),e),e=YA(t,e,a,n,r);break t}else for(na=W3(e.stateNode.containerInfo.firstChild),oa=e,ce=!0,yr=null,n=RW(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wc(),a===r){e=Hi(t,e,n);break t}hn(t,e,a,n)}e=e.child}return e;case 5:return jW(e),t===null&&zC(e),a=e.type,r=e.pendingProps,o=t!==null?t.memoizedProps:null,c=r.children,dC(a,r)?c=null:o!==null&&dC(a,o)&&(e.flags|=32),hq(t,e),hn(t,e,c,n),e.child;case 6:return t===null&&zC(e),null;case 13:return vq(t,e,n);case 4:return TB(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=qc(e,null,a,n):hn(t,e,a,n),e.child;case 11:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:mr(a,r),qA(t,e,a,r,n);case 7:return hn(t,e,e.pendingProps,n),e.child;case 8:return hn(t,e,e.pendingProps.children,n),e.child;case 12:return hn(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(a=e.type._context,r=e.pendingProps,o=e.memoizedProps,c=r.value,U0(Xf,a._currentValue),a._currentValue=c,o!==null)if(Or(o.value,c)){if(o.children===r.children&&!jn.current){e=Hi(t,e,n);break t}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var l=o.dependencies;if(l!==null){c=o.child;for(var h=l.firstContext;h!==null;){if(h.context===a){if(o.tag===1){h=ui(-1,n&-n),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|=n,h=o.alternate,h!==null&&(h.lanes|=n),MC(o.return,n,e),l.lanes|=n;break}h=h.next}}else if(o.tag===10)c=o.type===e.type?null:o.child;else if(o.tag===18){if(c=o.return,c===null)throw Error(pt(341));c.lanes|=n,l=c.alternate,l!==null&&(l.lanes|=n),MC(c,n,e),c=o.sibling}else c=o.child;if(c!==null)c.return=o;else for(c=o;c!==null;){if(c===e){c=null;break}if(o=c.sibling,o!==null){o.return=c.return,c=o;break}c=c.return}o=c}hn(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,a=e.pendingProps.children,Tc(e,n),r=$a(r),a=a(r),e.flags|=1,hn(t,e,a,n),e.child;case 14:return a=e.type,r=mr(a,e.pendingProps),r=mr(a.type,r),GA(t,e,a,r,n);case 15:return lq(t,e,e.type,e.pendingProps,n);case 17:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:mr(a,r),cf(t,e),e.tag=1,In(a)?(t=!0,Yf(e)):t=!1,Tc(e,n),NW(e,a,r),wC(e,a,r,n),VC(null,e,a,!0,t,n);case 19:return dq(t,e,n);case 22:return sq(t,e,n)}throw Error(pt(156,e.tag))};function Sq(t,e){return eW(t,e)}function Zn1(t,e,n,a){this.tag=t,this.key=n,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Na(t,e,n,a){return new Zn1(t,e,n,a)}function qB(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Qn1(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 Y3(t,e){var n=t.alternate;return n===null?(n=Na(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function hf(t,e,n,a,r,o){var c=2;if(a=t,typeof t=="function")qB(t)&&(c=1);else if(typeof t=="string")c=5;else t:switch(t){case lc:return S8(n.children,r,o,e);case hB:c=8,r|=8;break;case WV:return t=Na(12,n,e,r|2),t.elementType=WV,t.lanes=o,t;case qV:return t=Na(13,n,e,r),t.elementType=qV,t.lanes=o,t;case GV:return t=Na(19,n,e,r),t.elementType=GV,t.lanes=o,t;case DU:return Np(n,r,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case PU:c=10;break t;case NU:c=9;break t;case uB:c=11;break t;case vB:c=14;break t;case x3:c=16,a=null;break t}throw Error(pt(130,t==null?t:typeof t,""))}return e=Na(c,n,e,r),e.elementType=t,e.type=a,e.lanes=o,e}function S8(t,e,n,a){return t=Na(7,t,a,e),t.lanes=n,t}function Np(t,e,n,a){return t=Na(22,t,a,e),t.elementType=DU,t.lanes=n,t.stateNode={isHidden:!1},t}function Pw(t,e,n){return t=Na(6,t,null,e),t.lanes=n,t}function Nw(t,e,n){return e=Na(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Xn1(t,e,n,a,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=mw(0),this.expirationTimes=mw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mw(0),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function GB(t,e,n,a,r,o,c,l,h){return t=new Xn1(t,e,n,l,h),e===1?(e=1,o===!0&&(e|=8)):e=0,o=Na(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_B(o),t}function Jn1(t,e,n){var a=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Aq)}catch(t){console.error(t)}}Aq(),TU.exports=sa;var F8=TU.exports;const x8=G0(F8);var ck=F8;$V.createRoot=ck.createRoot,$V.hydrateRoot=ck.hydrateRoot;var Dw={},Rw={},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,n){return Promise.reject()},initAccountDelete:function(){return Promise.reject()},confirmAccountDelete:function(){return Promise.reject()},addToCart:function(e,n){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,n){return Promise.reject(e)},payWithP24:function(e,n,a){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,n){return Promise.reject()},h5pProgress:function(e,n,a){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,n){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,n){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,n){return Promise.reject()},fetchQuestionnaire:function(e,n,a){return Promise.reject()},fetchQuestionnairesAnswers:function(e,n,a,r){return Promise.reject()},fetchQuestionnaireStars:function(e,n,a){return Promise.reject()},fetchQuestionnaireStarsByModel:function(e,n){return Promise.reject()},sendQuestionnaireAnswer:function(e,n,a,r){return Promise.reject()},fetchUserStationaryEvents:function(){return Promise.reject()},userStationaryEvents:{loading:!1},fetchOrderInvoice:function(e){return Promise.reject(e)},changeConsultationTerm:function(e,n){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,n){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,n){return Promise.reject()},updateTaskStatus:function(e,n){return Promise.reject(e)},createTaskNote:function(e,n){return Promise.reject(e)},updateTaskNote:function(e,n,a){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,n){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,n){return Promise.reject()},initAccountDelete:function(){return Promise.reject()},confirmAccountDelete:function(){return Promise.reject()},addToCart:function(e,n){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,n){return Promise.reject(e)},payWithP24:function(e,n,a){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,n){return Promise.reject()},h5pProgress:function(e,n,a){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,n){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,n){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,n){return Promise.reject()},fetchQuestionnaire:function(e,n,a){return Promise.reject()},fetchQuestionnairesAnswers:function(e,n,a,r){return Promise.reject()},sendQuestionnaireAnswer:function(e,n,a,r){return Promise.reject()},fetchQuestionnaireStars:function(e,n,a){return Promise.reject()},fetchQuestionnaireStarsByModel:function(e,n){return Promise.reject()},fetchUserStationaryEvents:function(){return Promise.reject()},userStationaryEvents:{loading:!1},fetchOrderInvoice:function(e){return Promise.reject(e)},changeConsultationTerm:function(e,n){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,n){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,n){return Promise.reject(e)},updateTaskStatus:function(e,n){return Promise.reject(e)},createTaskNote:function(e,n){return Promise.reject(e)},updateTaskNote:function(e,n,a){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,n){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,n=1,a=arguments.length;n0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"u"||!f4?q2:f4(Uint8Array),T8={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?q2:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?q2:ArrayBuffer,"%ArrayIteratorPrototype%":j6&&f4?f4([][Symbol.iterator]()):q2,"%AsyncFromSyncIteratorPrototype%":q2,"%AsyncFunction%":nc,"%AsyncGenerator%":nc,"%AsyncGeneratorFunction%":nc,"%AsyncIteratorPrototype%":nc,"%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%":_a1,"%eval%":eval,"%EvalError%":Ta1,"%Float32Array%":typeof Float32Array>"u"?q2:Float32Array,"%Float64Array%":typeof Float64Array>"u"?q2:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?q2:FinalizationRegistry,"%Function%":Eq,"%GeneratorFunction%":nc,"%Int8Array%":typeof Int8Array>"u"?q2:Int8Array,"%Int16Array%":typeof Int16Array>"u"?q2:Int16Array,"%Int32Array%":typeof Int32Array>"u"?q2:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j6&&f4?f4(f4([][Symbol.iterator]())):q2,"%JSON%":typeof JSON=="object"?JSON:q2,"%Map%":typeof Map>"u"?q2:Map,"%MapIteratorPrototype%":typeof Map>"u"||!j6||!f4?q2:f4(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%":Oa1,"%ReferenceError%":Aa1,"%Reflect%":typeof Reflect>"u"?q2:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?q2:Set,"%SetIteratorPrototype%":typeof Set>"u"||!j6||!f4?q2:f4(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?q2:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j6&&f4?f4(""[Symbol.iterator]()):q2,"%Symbol%":j6?Symbol:q2,"%SyntaxError%":Zc,"%ThrowTypeError%":Ea1,"%TypedArray%":Na1,"%TypeError%":Ac,"%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%":ka1,"%WeakMap%":typeof WeakMap>"u"?q2:WeakMap,"%WeakRef%":typeof WeakRef>"u"?q2:WeakRef,"%WeakSet%":typeof WeakSet>"u"?q2:WeakSet};if(f4)try{null.error}catch(t){var Da1=f4(f4(t));T8["%Error.prototype%"]=Da1}var Ra1=function t(e){var n;if(e==="%AsyncFunction%")n=Iw("async function () {}");else if(e==="%GeneratorFunction%")n=Iw("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=Iw("async function* () {}");else if(e==="%AsyncGenerator%"){var a=t("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if(e==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");r&&f4&&(n=f4(r.prototype))}return T8[e]=n,n},vk={__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=Sa1,ja1=gh.call(Function.call,Array.prototype.concat),Ia1=gh.call(Function.apply,Array.prototype.splice),dk=gh.call(Function.call,String.prototype.replace),hg=gh.call(Function.call,String.prototype.slice),Fa1=gh.call(Function.call,RegExp.prototype.exec),$a1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ua1=/\\(\\)?/g,Wa1=function(e){var n=hg(e,0,1),a=hg(e,-1);if(n==="%"&&a!=="%")throw new Zc("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&n!=="%")throw new Zc("invalid intrinsic syntax, expected opening `%`");var r=[];return dk(e,$a1,function(o,c,l,h){r[r.length]=l?dk(h,Ua1,"$1"):c||o}),r},qa1=function(e,n){var a=e,r;if(sg(vk,a)&&(r=vk[a],a="%"+r[0]+"%"),sg(T8,a)){var o=T8[a];if(o===nc&&(o=Ra1(a)),typeof o>"u"&&!n)throw new Ac("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:a,value:o}}throw new Zc("intrinsic "+e+" does not exist!")},Ol=function(e,n){if(typeof e!="string"||e.length===0)throw new Ac("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Ac('"allowMissing" argument must be a boolean');if(Fa1(/^%?[^%]*%?$/,e)===null)throw new Zc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Wa1(e),r=a.length>0?a[0]:"",o=qa1("%"+r+"%",n),c=o.name,l=o.value,h=!1,s=o.alias;s&&(r=s[0],Ia1(a,ja1([0,1],s)));for(var u=1,v=!0;u=a.length){var g=_8(l,f);v=!!g,v&&"get"in g&&!("originalValue"in g.get)?l=g.get:l=l[f]}else v=sg(l,f),l=l[f];v&&!h&&(T8[c]=l)}}return l},Pq={exports:{}},$w,fk;function XB(){if(fk)return $w;fk=1;var t=Ol,e=t("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return $w=e,$w}var Ga1=Ol,uf=Ga1("%Object.getOwnPropertyDescriptor%",!0);if(uf)try{uf([],"length")}catch{uf=null}var Nq=uf,gk=XB(),Ka1=kq,I6=fh,pk=Nq,Ya1=function(e,n,a){if(!e||typeof e!="object"&&typeof e!="function")throw new I6("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new I6("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new I6("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new I6("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new I6("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new I6("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,h=!!pk&&pk(e,n);if(gk)gk(e,n,{configurable:c===null&&h?h.configurable:!c,enumerable:r===null&&h?h.enumerable:!r,value:a,writable:o===null&&h?h.writable:!o});else if(l||!r&&!o&&!c)e[n]=a;else throw new Ka1("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},PC=XB(),Dq=function(){return!!PC};Dq.hasArrayLengthDefineBug=function(){if(!PC)return null;try{return PC([],"length",{value:1}).length!==1}catch{return!0}};var Za1=Dq,Qa1=Ol,mk=Ya1,Xa1=Za1(),zk=Nq,Mk=fh,Ja1=Qa1("%Math.floor%"),tr1=function(e,n){if(typeof e!="function")throw new Mk("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||Ja1(n)!==n)throw new Mk("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],r=!0,o=!0;if("length"in e&&zk){var c=zk(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(o=!1)}return(r||o||!a)&&(Xa1?mk(e,"length",n,!0,!0):mk(e,"length",n)),e};(function(t){var e=QB,n=Ol,a=tr1,r=fh,o=n("%Function.prototype.apply%"),c=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||e.call(c,o),h=XB(),s=n("%Math.max%");t.exports=function(f){if(typeof f!="function")throw new r("a function is required");var d=l(e,c,arguments);return a(d,1+s(0,f.length-(arguments.length-1)),!0)};var u=function(){return l(e,o,arguments)};h?h(t.exports,"apply",{value:u}):t.exports.apply=u})(Pq);var er1=Pq.exports,Rq=Ol,jq=er1,nr1=jq(Rq("String.prototype.indexOf")),ar1=function(e,n){var a=Rq(e,!!n);return typeof a=="function"&&nr1(e,".prototype.")>-1?jq(a):a};const rr1={},ir1=Object.freeze(Object.defineProperty({__proto__:null,default:rr1},Symbol.toStringTag,{value:"Module"})),or1=se(ir1);var JB=typeof Map=="function"&&Map.prototype,Uw=Object.getOwnPropertyDescriptor&&JB?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ug=JB&&Uw&&typeof Uw.get=="function"?Uw.get:null,Hk=JB&&Map.prototype.forEach,tS=typeof Set=="function"&&Set.prototype,Ww=Object.getOwnPropertyDescriptor&&tS?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,vg=tS&&Ww&&typeof Ww.get=="function"?Ww.get:null,wk=tS&&Set.prototype.forEach,cr1=typeof WeakMap=="function"&&WeakMap.prototype,R7=cr1?WeakMap.prototype.has:null,lr1=typeof WeakSet=="function"&&WeakSet.prototype,j7=lr1?WeakSet.prototype.has:null,sr1=typeof WeakRef=="function"&&WeakRef.prototype,yk=sr1?WeakRef.prototype.deref:null,hr1=Boolean.prototype.valueOf,ur1=Object.prototype.toString,vr1=Function.prototype.toString,dr1=String.prototype.match,eS=String.prototype.slice,D3=String.prototype.replace,fr1=String.prototype.toUpperCase,xk=String.prototype.toLowerCase,Iq=RegExp.prototype.test,Vk=Array.prototype.concat,Jr=Array.prototype.join,gr1=Array.prototype.slice,Ck=Math.floor,NC=typeof BigInt=="function"?BigInt.prototype.valueOf:null,qw=Object.getOwnPropertySymbols,DC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Qc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",J4=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Qc||!0)?Symbol.toStringTag:null,Fq=Object.prototype.propertyIsEnumerable,bk=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Lk(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Iq.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var a=t<0?-Ck(-t):Ck(t);if(a!==t){var r=String(a),o=eS.call(e,r.length+1);return D3.call(r,n,"$&_")+"."+D3.call(D3.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D3.call(e,n,"$&_")}var RC=or1,Bk=RC.custom,Sk=Uq(Bk)?Bk:null,pr1=function t(e,n,a,r){var o=n||{};if(C3(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(C3(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 c=C3(o,"customInspect")?o.customInspect:!0;if(typeof c!="boolean"&&c!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(C3(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(C3(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=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 qq(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var h=String(e);return l?Lk(e,h):h}if(typeof e=="bigint"){var s=String(e)+"n";return l?Lk(e,s):s}var u=typeof o.depth>"u"?5:o.depth;if(typeof a>"u"&&(a=0),a>=u&&u>0&&typeof e=="object")return jC(e)?"[Array]":"[Object]";var v=kr1(o,a);if(typeof r>"u")r=[];else if(Wq(r,e)>=0)return"[Circular]";function f(P,F,W){if(F&&(r=gr1.call(r),r.push(F)),W){var U={depth:o.depth};return C3(o,"quoteStyle")&&(U.quoteStyle=o.quoteStyle),t(P,U,a+1,r)}return t(P,o,a+1,r)}if(typeof e=="function"&&!_k(e)){var d=Cr1(e),M=Rv(e,f);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(M.length>0?" { "+Jr.call(M,", ")+" }":"")}if(Uq(e)){var g=Qc?D3.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):DC.call(e);return typeof e=="object"&&!Qc?P9(g):g}if(Tr1(e)){for(var H="<"+xk.call(String(e.nodeName)),p=e.attributes||[],m=0;m",H}if(jC(e)){if(e.length===0)return"[]";var z=Rv(e,f);return v&&!Ar1(z)?"["+IC(z,v)+"]":"[ "+Jr.call(z,", ")+" ]"}if(Mr1(e)){var w=Rv(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!Fq.call(e,"cause")?"{ ["+String(e)+"] "+Jr.call(Vk.call("[cause]: "+f(e.cause),w),", ")+" }":w.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Jr.call(w,", ")+" }"}if(typeof e=="object"&&c){if(Sk&&typeof e[Sk]=="function"&&RC)return RC(e,{depth:u-a});if(c!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(br1(e)){var x=[];return Hk&&Hk.call(e,function(P,F){x.push(f(F,e,!0)+" => "+f(P,e))}),Tk("Map",ug.call(e),x,v)}if(Sr1(e)){var y=[];return wk&&wk.call(e,function(P){y.push(f(P,e))}),Tk("Set",vg.call(e),y,v)}if(Lr1(e))return Gw("WeakMap");if(_r1(e))return Gw("WeakSet");if(Br1(e))return Gw("WeakRef");if(wr1(e))return P9(f(Number(e)));if(xr1(e))return P9(f(NC.call(e)));if(yr1(e))return P9(hr1.call(e));if(Hr1(e))return P9(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===b)return"{ [object globalThis] }";if(!zr1(e)&&!_k(e)){var V=Rv(e,f),C=bk?bk(e)===Object.prototype:e instanceof Object||e.constructor===Object,L=e instanceof Object?"":"null prototype",B=!C&&J4&&Object(e)===e&&J4 in e?eS.call(yo(e),8,-1):L?"Object":"",_=C||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",T=_+(B||L?"["+Jr.call(Vk.call([],B||[],L||[]),": ")+"] ":"");return V.length===0?T+"{}":v?T+"{"+IC(V,v)+"}":T+"{ "+Jr.call(V,", ")+" }"}return String(e)};function $q(t,e,n){var a=(n.quoteStyle||e)==="double"?'"':"'";return a+t+a}function mr1(t){return D3.call(String(t),/"/g,""")}function jC(t){return yo(t)==="[object Array]"&&(!J4||!(typeof t=="object"&&J4 in t))}function zr1(t){return yo(t)==="[object Date]"&&(!J4||!(typeof t=="object"&&J4 in t))}function _k(t){return yo(t)==="[object RegExp]"&&(!J4||!(typeof t=="object"&&J4 in t))}function Mr1(t){return yo(t)==="[object Error]"&&(!J4||!(typeof t=="object"&&J4 in t))}function Hr1(t){return yo(t)==="[object String]"&&(!J4||!(typeof t=="object"&&J4 in t))}function wr1(t){return yo(t)==="[object Number]"&&(!J4||!(typeof t=="object"&&J4 in t))}function yr1(t){return yo(t)==="[object Boolean]"&&(!J4||!(typeof t=="object"&&J4 in t))}function Uq(t){if(Qc)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!DC)return!1;try{return DC.call(t),!0}catch{}return!1}function xr1(t){if(!t||typeof t!="object"||!NC)return!1;try{return NC.call(t),!0}catch{}return!1}var Vr1=Object.prototype.hasOwnProperty||function(t){return t in this};function C3(t,e){return Vr1.call(t,e)}function yo(t){return ur1.call(t)}function Cr1(t){if(t.name)return t.name;var e=dr1.call(vr1.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Wq(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,a=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,a="... "+n+" more character"+(n>1?"s":"");return qq(eS.call(t,0,e.maxStringLength),e)+a}var r=D3.call(D3.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Or1);return $q(r,"single",e)}function Or1(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+fr1.call(e.toString(16))}function P9(t){return"Object("+t+")"}function Gw(t){return t+" { ? }"}function Tk(t,e,n,a){var r=a?IC(n,a):Jr.call(n,", ");return t+" ("+e+") {"+r+"}"}function Ar1(t){for(var e=0;e=0)return!1;return!0}function kr1(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=Jr.call(Array(t.indent+1)," ");else return null;return{base:n,prev:Jr.call(Array(e+1),n)}}function IC(t,e){if(t.length===0)return"";var n=` +`+o.stack}return{value:t,source:e,stack:r,digest:null}}function kw(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function yC(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var En1=typeof WeakMap=="function"?WeakMap:Map;function cq(t,e,n){n=h5(-1,n),n.tag=3,n.payload={element:null};var a=e.value;return n.callback=function(){ig||(ig=!0,OC=a),yC(t,e)},n}function lq(t,e,n){n=h5(-1,n),n.tag=3;var a=t.type.getDerivedStateFromError;if(typeof a=="function"){var r=e.value;n.payload=function(){return a(r)},n.callback=function(){yC(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){yC(t,e),typeof a!="function"&&(K3===null?K3=new Set([this]):K3.add(this));var c=e.stack;this.componentDidCatch(e.value,{componentStack:c!==null?c:""})}),n}function $A(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new En1;var r=new Set;a.set(e,r)}else r=a.get(e),r===void 0&&(r=new Set,a.set(e,r));r.has(n)||(r.add(n),t=Yn1.bind(null,t,e,n),e.then(t,t))}function UA(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function WA(t,e,n,a,r){return t.mode&1?(t.flags|=65536,t.lanes=r,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=h5(-1,1),e.tag=2,G3(n,e,1))),n.lanes|=1),t)}var Pn1=T5.ReactCurrentOwner,Dn=!1;function hn(t,e,n,a){e.child=t===null?jW(e,null,n,a):ql(e,t.child,n,a)}function qA(t,e,n,a,r){n=n.render;var o=e.ref;return Tl(e,r),a=EB(t,e,n,a,o,r),n=PB(),t!==null&&!Dn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,M5(t,e,r)):(ce&&n&&xB(e),e.flags|=1,hn(t,e,a,r),e.child)}function GA(t,e,n,a,r){if(t===null){var o=n.type;return typeof o=="function"&&!qB(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=o,sq(t,e,o,a,r)):(t=hf(n.type,null,a,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!(t.lanes&r)){var c=o.memoizedProps;if(n=n.compare,n=n!==null?n:xs,n(c,a)&&t.ref===e.ref)return M5(t,e,r)}return e.flags|=1,t=Z3(o,a),t.ref=e.ref,t.return=e,e.child=t}function sq(t,e,n,a,r){if(t!==null){var o=t.memoizedProps;if(xs(o,a)&&t.ref===e.ref)if(Dn=!1,e.pendingProps=a=o,(t.lanes&r)!==0)t.flags&131072&&(Dn=!0);else return e.lanes=t.lanes,M5(t,e,r)}return xC(t,e,n,a,r)}function hq(t,e,n){var a=e.pendingProps,r=a.children,o=t!==null?t.memoizedState:null;if(a.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},U0(zl,Xn),Xn|=n;else{if(!(n&1073741824))return t=o!==null?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,U0(zl,Xn),Xn|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=o!==null?o.baseLanes:n,U0(zl,Xn),Xn|=a}else o!==null?(a=o.baseLanes|n,e.memoizedState=null):a=n,U0(zl,Xn),Xn|=a;return hn(t,e,r,n),e.child}function uq(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function xC(t,e,n,a,r){var o=In(n)?D8:X4.current;return o=Ul(e,o),Tl(e,r),n=EB(t,e,n,a,o,r),a=PB(),t!==null&&!Dn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,M5(t,e,r)):(ce&&a&&xB(e),e.flags|=1,hn(t,e,n,r),e.child)}function KA(t,e,n,a,r){if(In(n)){var o=!0;Yf(e)}else o=!1;if(Tl(e,r),e.stateNode===null)cf(t,e),DW(e,n,a),wC(e,n,a,r),a=!0;else if(t===null){var c=e.stateNode,l=e.memoizedProps;c.props=l;var h=c.context,s=n.contextType;typeof s=="object"&&s!==null?s=$a(s):(s=In(n)?D8:X4.current,s=Ul(e,s));var u=n.getDerivedStateFromProps,v=typeof u=="function"||typeof c.getSnapshotBeforeUpdate=="function";v||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(l!==a||h!==s)&&RA(e,c,a,s),x3=!1;var f=e.memoizedState;c.state=f,tg(e,a,c,r),h=e.memoizedState,l!==a||f!==h||jn.current||x3?(typeof u=="function"&&(HC(e,n,u,a),h=e.memoizedState),(l=x3||DA(e,n,l,a,f,h,s))?(v||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=h),c.props=a,c.state=h,c.context=s,a=l):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{c=e.stateNode,PW(t,e),l=e.memoizedProps,s=e.type===e.elementType?l:mr(e.type,l),c.props=s,v=e.pendingProps,f=c.context,h=n.contextType,typeof h=="object"&&h!==null?h=$a(h):(h=In(n)?D8:X4.current,h=Ul(e,h));var d=n.getDerivedStateFromProps;(u=typeof d=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(l!==v||f!==h)&&RA(e,c,a,h),x3=!1,f=e.memoizedState,c.state=f,tg(e,a,c,r);var z=e.memoizedState;l!==v||f!==z||jn.current||x3?(typeof d=="function"&&(HC(e,n,d,a),z=e.memoizedState),(s=x3||DA(e,n,s,a,f,z,h)||!1)?(u||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,z,h),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,z,h)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=z),c.props=a,c.state=z,c.context=h,a=s):(typeof c.componentDidUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),a=!1)}return VC(t,e,n,a,o,r)}function VC(t,e,n,a,r,o){uq(t,e);var c=(e.flags&128)!==0;if(!a&&!c)return r&&AA(e,n,!1),M5(t,e,o);a=e.stateNode,Pn1.current=e;var l=c&&typeof n.getDerivedStateFromError!="function"?null:a.render();return e.flags|=1,t!==null&&c?(e.child=ql(e,t.child,null,o),e.child=ql(e,null,l,o)):hn(t,e,l,o),e.memoizedState=a.state,r&&AA(e,n,!0),e.child}function vq(t){var e=t.stateNode;e.pendingContext?OA(t,e.pendingContext,e.pendingContext!==e.context):e.context&&OA(t,e.context,!1),TB(t,e.containerInfo)}function YA(t,e,n,a,r){return Wl(),CB(r),e.flags|=256,hn(t,e,n,a),e.child}var CC={dehydrated:null,treeContext:null,retryLane:0};function bC(t){return{baseLanes:t,cachePool:null,transitions:null}}function dq(t,e,n){var a=e.pendingProps,r=pe.current,o=!1,c=(e.flags&128)!==0,l;if((l=c)||(l=t!==null&&t.memoizedState===null?!1:(r&2)!==0),l?(o=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(r|=1),U0(pe,r&1),t===null)return zC(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(c=a.children,t=a.fallback,o?(a=e.mode,o=e.child,c={mode:"hidden",children:c},!(a&1)&&o!==null?(o.childLanes=0,o.pendingProps=c):o=Np(c,a,0,null),t=S8(t,a,n,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=bC(n),e.memoizedState=CC,t):RB(e,c));if(r=t.memoizedState,r!==null&&(l=r.dehydrated,l!==null))return Nn1(t,e,c,a,l,r,n);if(o){o=a.fallback,c=e.mode,r=t.child,l=r.sibling;var h={mode:"hidden",children:a.children};return!(c&1)&&e.child!==r?(a=e.child,a.childLanes=0,a.pendingProps=h,e.deletions=null):(a=Z3(r,h),a.subtreeFlags=r.subtreeFlags&14680064),l!==null?o=Z3(l,o):(o=S8(o,c,n,null),o.flags|=2),o.return=e,a.return=e,a.sibling=o,e.child=a,a=o,o=e.child,c=t.child.memoizedState,c=c===null?bC(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},o.memoizedState=c,o.childLanes=t.childLanes&~n,e.memoizedState=CC,a}return o=t.child,t=o.sibling,a=Z3(o,{mode:"visible",children:a.children}),!(e.mode&1)&&(a.lanes=n),a.return=e,a.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=a,e.memoizedState=null,a}function RB(t,e){return e=Np({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Ev(t,e,n,a){return a!==null&&CB(a),ql(e,t.child,null,n),t=RB(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Nn1(t,e,n,a,r,o,c){if(n)return e.flags&256?(e.flags&=-257,a=kw(Error(pt(422))),Ev(t,e,c,a)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(o=a.fallback,r=e.mode,a=Np({mode:"visible",children:a.children},r,0,null),o=S8(o,r,c,null),o.flags|=2,a.return=e,o.return=e,a.sibling=o,e.child=a,e.mode&1&&ql(e,t.child,null,c),e.child.memoizedState=bC(c),e.memoizedState=CC,o);if(!(e.mode&1))return Ev(t,e,c,null);if(r.data==="$!"){if(a=r.nextSibling&&r.nextSibling.dataset,a)var l=a.dgst;return a=l,o=Error(pt(419)),a=kw(o,a,void 0),Ev(t,e,c,a)}if(l=(c&t.childLanes)!==0,Dn||l){if(a=M4,a!==null){switch(c&-c){case 4:r=2;break;case 16:r=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(a.suspendedLanes|c)?0:r,r!==0&&r!==o.retryLane&&(o.retryLane=r,z5(t,r),Lr(a,t,r,-1))}return WB(),a=kw(Error(pt(421))),Ev(t,e,c,a)}return r.data==="$?"?(e.flags|=128,e.child=t.child,e=Zn1.bind(null,t),r._reactRetry=e,null):(t=o.treeContext,na=q3(r.nextSibling),oa=e,ce=!0,yr=null,t!==null&&(La[Ba++]=c5,La[Ba++]=l5,La[Ba++]=R8,c5=t.id,l5=t.overflow,R8=e),e=RB(e,a.children),e.flags|=4096,e)}function ZA(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),MC(t.return,e,n)}function Ew(t,e,n,a,r){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=n,o.tailMode=r)}function fq(t,e,n){var a=e.pendingProps,r=a.revealOrder,o=a.tail;if(hn(t,e,a.children,n),a=pe.current,a&2)a=a&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ZA(t,n,e);else if(t.tag===19)ZA(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}if(U0(pe,a),!(e.mode&1))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&eg(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),Ew(e,!1,r,n,o);break;case"backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&eg(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}Ew(e,!0,n,null,o);break;case"together":Ew(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function cf(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function M5(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),I8|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(pt(153));if(e.child!==null){for(t=e.child,n=Z3(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Z3(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Dn1(t,e,n){switch(e.tag){case 3:vq(e),Wl();break;case 5:IW(e);break;case 1:In(e.type)&&Yf(e);break;case 4:TB(e,e.stateNode.containerInfo);break;case 10:var a=e.type._context,r=e.memoizedProps.value;U0(Xf,a._currentValue),a._currentValue=r;break;case 13:if(a=e.memoizedState,a!==null)return a.dehydrated!==null?(U0(pe,pe.current&1),e.flags|=128,null):n&e.child.childLanes?dq(t,e,n):(U0(pe,pe.current&1),t=M5(t,e,n),t!==null?t.sibling:null);U0(pe,pe.current&1);break;case 19:if(a=(n&e.childLanes)!==0,t.flags&128){if(a)return fq(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),U0(pe,pe.current),a)break;return null;case 22:case 23:return e.lanes=0,hq(t,e,n)}return M5(t,e,n)}var gq,LC,pq,mq;gq=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};LC=function(){};pq=function(t,e,n,a){var r=t.memoizedProps;if(r!==a){t=e.stateNode,x8(zi.current);var o=null;switch(n){case"input":r=YV(t,r),a=YV(t,a),o=[];break;case"select":r=He({},r,{value:void 0}),a=He({},a,{value:void 0}),o=[];break;case"textarea":r=XV(t,r),a=XV(t,a),o=[];break;default:typeof r.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=Gf)}tC(n,a);var c;n=null;for(s in r)if(!a.hasOwnProperty(s)&&r.hasOwnProperty(s)&&r[s]!=null)if(s==="style"){var l=r[s];for(c in l)l.hasOwnProperty(c)&&(n||(n={}),n[c]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ps.hasOwnProperty(s)?o||(o=[]):(o=o||[]).push(s,null));for(s in a){var h=a[s];if(l=r!=null?r[s]:void 0,a.hasOwnProperty(s)&&h!==l&&(h!=null||l!=null))if(s==="style")if(l){for(c in l)!l.hasOwnProperty(c)||h&&h.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in h)h.hasOwnProperty(c)&&l[c]!==h[c]&&(n||(n={}),n[c]=h[c])}else n||(o||(o=[]),o.push(s,n)),n=h;else s==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,l=l?l.__html:void 0,h!=null&&l!==h&&(o=o||[]).push(s,h)):s==="children"?typeof h!="string"&&typeof h!="number"||(o=o||[]).push(s,""+h):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(ps.hasOwnProperty(s)?(h!=null&&s==="onScroll"&&Z0("scroll",t),o||l===h||(o=[])):(o=o||[]).push(s,h))}n&&(o=o||[]).push("style",n);var s=o;(e.updateQueue=s)&&(e.flags|=4)}};mq=function(t,e,n,a){n!==a&&(e.flags|=4)};function k9(t,e){if(!ce)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function F4(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags&14680064,a|=r.flags&14680064,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function Rn1(t,e,n){var a=e.pendingProps;switch(VB(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return F4(e),null;case 1:return In(e.type)&&Kf(),F4(e),null;case 3:return a=e.stateNode,Gl(),ee(jn),ee(X4),AB(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Av(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,yr!==null&&(EC(yr),yr=null))),LC(t,e),F4(e),null;case 5:OB(e);var r=x8(Bs.current);if(n=e.type,t!==null&&e.stateNode!=null)pq(t,e,n,a,r),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!a){if(e.stateNode===null)throw Error(pt(166));return F4(e),null}if(t=x8(zi.current),Av(e)){a=e.stateNode,n=e.type;var o=e.memoizedProps;switch(a[ei]=e,a[bs]=o,t=(e.mode&1)!==0,n){case"dialog":Z0("cancel",a),Z0("close",a);break;case"iframe":case"object":case"embed":Z0("load",a);break;case"video":case"audio":for(r=0;r<\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=c.createElement(n,{is:a.is}):(t=c.createElement(n),n==="select"&&(c=t,a.multiple?c.multiple=!0:a.size&&(c.size=a.size))):t=c.createElementNS(t,n),t[ei]=e,t[bs]=a,gq(t,e,!1,!1),e.stateNode=t;t:{switch(c=eC(n,a),n){case"dialog":Z0("cancel",t),Z0("close",t),r=a;break;case"iframe":case"object":case"embed":Z0("load",t),r=a;break;case"video":case"audio":for(r=0;rYl&&(e.flags|=128,a=!0,k9(o,!1),e.lanes=4194304)}else{if(!a)if(t=eg(c),t!==null){if(e.flags|=128,a=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),k9(o,!0),o.tail===null&&o.tailMode==="hidden"&&!c.alternate&&!ce)return F4(e),null}else 2*Oe()-o.renderingStartTime>Yl&&n!==1073741824&&(e.flags|=128,a=!0,k9(o,!1),e.lanes=4194304);o.isBackwards?(c.sibling=e.child,e.child=c):(n=o.last,n!==null?n.sibling=c:e.child=c,o.last=c)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Oe(),e.sibling=null,n=pe.current,U0(pe,a?n&1|2:n&1),e):(F4(e),null);case 22:case 23:return UB(),a=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(e.flags|=8192),a&&e.mode&1?Xn&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 jn1(t,e){switch(VB(e),e.tag){case 1:return In(e.type)&&Kf(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Gl(),ee(jn),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));Wl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ee(pe),null;case 4:return Gl(),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,q4=!1,In1=typeof WeakSet=="function"?WeakSet:Set,$t=null;function ml(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(a){be(t,e,a)}else n.current=null}function BC(t,e,n){try{n()}catch(a){be(t,e,a)}}var QA=!1;function Fn1(t,e){if(uC=Uf,t=wW(),yB(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var c=0,l=-1,h=-1,s=0,u=0,v=t,f=null;e:for(;;){for(var d;v!==n||r!==0&&v.nodeType!==3||(l=c+r),v!==o||a!==0&&v.nodeType!==3||(h=c+a),v.nodeType===3&&(c+=v.nodeValue.length),(d=v.firstChild)!==null;)f=v,v=d;for(;;){if(v===t)break e;if(f===n&&++s===r&&(l=c),f===o&&++u===a&&(h=c),(d=v.nextSibling)!==null)break;v=f,f=v.parentNode}v=d}n=l===-1||h===-1?null:{start:l,end:h}}else n=null}n=n||{start:0,end:0}}else n=null;for(vC={focusedElem:t,selectionRange:n},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 z=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(z!==null){var g=z.memoizedProps,H=z.memoizedState,p=e.stateNode,m=p.getSnapshotBeforeUpdate(e.elementType===e.type?g:mr(e.type,g),H);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var M=e.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.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 z=QA,QA=!1,z}function P7(t,e,n){var a=e.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var r=a=a.next;do{if((r.tag&t)===t){var o=r.destroy;r.destroy=void 0,o!==void 0&&BC(e,n,o)}r=r.next}while(r!==a)}}function Ep(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var a=n.create;n.destroy=a()}n=n.next}while(n!==e)}}function _C(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function zq(t){var e=t.alternate;e!==null&&(t.alternate=null,zq(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[ei],delete e[bs],delete e[gC],delete e[Vn1],delete e[Cn1])),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 XA(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 SC(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Gf));else if(a!==4&&(t=t.child,t!==null))for(SC(t,e,n),t=t.sibling;t!==null;)SC(t,e,n),t=t.sibling}function TC(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(TC(t,e,n),t=t.sibling;t!==null;)TC(t,e,n),t=t.sibling}var L4=null,Mr=!1;function i3(t,e,n){for(n=n.child;n!==null;)Hq(t,e,n),n=n.sibling}function Hq(t,e,n){if(mi&&typeof mi.onCommitFiberUnmount=="function")try{mi.onCommitFiberUnmount(Lp,n)}catch{}switch(n.tag){case 5:q4||ml(n,e);case 6:var a=L4,r=Mr;L4=null,i3(t,e,n),L4=a,Mr=r,L4!==null&&(Mr?(t=L4,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):L4.removeChild(n.stateNode));break;case 18:L4!==null&&(Mr?(t=L4,n=n.stateNode,t.nodeType===8?Bw(t.parentNode,n):t.nodeType===1&&Bw(t,n),ws(t)):Bw(L4,n.stateNode));break;case 4:a=L4,r=Mr,L4=n.stateNode.containerInfo,Mr=!0,i3(t,e,n),L4=a,Mr=r;break;case 0:case 11:case 14:case 15:if(!q4&&(a=n.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){r=a=a.next;do{var o=r,c=o.destroy;o=o.tag,c!==void 0&&(o&2||o&4)&&BC(n,e,c),r=r.next}while(r!==a)}i3(t,e,n);break;case 1:if(!q4&&(ml(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=n.memoizedProps,a.state=n.memoizedState,a.componentWillUnmount()}catch(l){be(n,e,l)}i3(t,e,n);break;case 21:i3(t,e,n);break;case 22:n.mode&1?(q4=(a=q4)||n.memoizedState!==null,i3(t,e,n),q4=a):i3(t,e,n);break;default:i3(t,e,n)}}function JA(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new In1),e.forEach(function(a){var r=Qn1.bind(null,t,a);n.has(a)||(n.add(a),a.then(r,r))})}}function sr(t,e){var n=e.deletions;if(n!==null)for(var a=0;ar&&(r=c),a&=~o}if(a=r,a=Oe()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Un1(a/1960))-a,10t?16:t,N3===null)var a=!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,c=o.child;if($t.flags&16){var l=o.deletions;if(l!==null){for(var h=0;hOe()-FB?_8(t,0):IB|=n),Fn(t,e)}function Bq(t,e){e===0&&(t.mode&1?(e=Lv,Lv<<=1,!(Lv&130023424)&&(Lv=4194304)):e=1);var n=gn();t=z5(t,e),t!==null&&(hh(t,e,n),Fn(t,n))}function Zn1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Bq(t,n)}function Qn1(t,e){var n=0;switch(t.tag){case 13:var a=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(pt(314))}a!==null&&a.delete(e),Bq(t,n)}var _q;_q=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||jn.current)Dn=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Dn=!1,Dn1(t,e,n);Dn=!!(t.flags&131072)}else Dn=!1,ce&&e.flags&1048576&&OW(e,Qf,e.index);switch(e.lanes=0,e.tag){case 2:var a=e.type;cf(t,e),t=e.pendingProps;var r=Ul(e,X4.current);Tl(e,n),r=EB(null,e,a,t,r,n);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,In(a)?(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,wC(e,a,t,n),e=VC(null,e,a,!0,o,n)):(e.tag=0,ce&&o&&xB(e),hn(null,e,r,n),e=e.child),e;case 16:a=e.elementType;t:{switch(cf(t,e),t=e.pendingProps,r=a._init,a=r(a._payload),e.type=a,r=e.tag=Jn1(a),t=mr(a,t),r){case 0:e=xC(null,e,a,t,n);break t;case 1:e=KA(null,e,a,t,n);break t;case 11:e=qA(null,e,a,t,n);break t;case 14:e=GA(null,e,a,mr(a.type,t),n);break t}throw Error(pt(306,a,""))}return e;case 0:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:mr(a,r),xC(t,e,a,r,n);case 1:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:mr(a,r),KA(t,e,a,r,n);case 3:t:{if(vq(e),t===null)throw Error(pt(387));a=e.pendingProps,o=e.memoizedState,r=o.element,PW(t,e),tg(e,a,null,n);var c=e.memoizedState;if(a=c.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){r=Kl(Error(pt(423)),e),e=YA(t,e,a,n,r);break t}else if(a!==r){r=Kl(Error(pt(424)),e),e=YA(t,e,a,n,r);break t}else for(na=q3(e.stateNode.containerInfo.firstChild),oa=e,ce=!0,yr=null,n=jW(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wl(),a===r){e=M5(t,e,n);break t}hn(t,e,a,n)}e=e.child}return e;case 5:return IW(e),t===null&&zC(e),a=e.type,r=e.pendingProps,o=t!==null?t.memoizedProps:null,c=r.children,dC(a,r)?c=null:o!==null&&dC(a,o)&&(e.flags|=32),uq(t,e),hn(t,e,c,n),e.child;case 6:return t===null&&zC(e),null;case 13:return dq(t,e,n);case 4:return TB(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ql(e,null,a,n):hn(t,e,a,n),e.child;case 11:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:mr(a,r),qA(t,e,a,r,n);case 7:return hn(t,e,e.pendingProps,n),e.child;case 8:return hn(t,e,e.pendingProps.children,n),e.child;case 12:return hn(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(a=e.type._context,r=e.pendingProps,o=e.memoizedProps,c=r.value,U0(Xf,a._currentValue),a._currentValue=c,o!==null)if(Or(o.value,c)){if(o.children===r.children&&!jn.current){e=M5(t,e,n);break t}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var l=o.dependencies;if(l!==null){c=o.child;for(var h=l.firstContext;h!==null;){if(h.context===a){if(o.tag===1){h=h5(-1,n&-n),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|=n,h=o.alternate,h!==null&&(h.lanes|=n),MC(o.return,n,e),l.lanes|=n;break}h=h.next}}else if(o.tag===10)c=o.type===e.type?null:o.child;else if(o.tag===18){if(c=o.return,c===null)throw Error(pt(341));c.lanes|=n,l=c.alternate,l!==null&&(l.lanes|=n),MC(c,n,e),c=o.sibling}else c=o.child;if(c!==null)c.return=o;else for(c=o;c!==null;){if(c===e){c=null;break}if(o=c.sibling,o!==null){o.return=c.return,c=o;break}c=c.return}o=c}hn(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,a=e.pendingProps.children,Tl(e,n),r=$a(r),a=a(r),e.flags|=1,hn(t,e,a,n),e.child;case 14:return a=e.type,r=mr(a,e.pendingProps),r=mr(a.type,r),GA(t,e,a,r,n);case 15:return sq(t,e,e.type,e.pendingProps,n);case 17:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:mr(a,r),cf(t,e),e.tag=1,In(a)?(t=!0,Yf(e)):t=!1,Tl(e,n),DW(e,a,r),wC(e,a,r,n),VC(null,e,a,!0,t,n);case 19:return fq(t,e,n);case 22:return hq(t,e,n)}throw Error(pt(156,e.tag))};function Sq(t,e){return nW(t,e)}function Xn1(t,e,n,a){this.tag=t,this.key=n,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Na(t,e,n,a){return new Xn1(t,e,n,a)}function qB(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Jn1(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 n=t.alternate;return n===null?(n=Na(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function hf(t,e,n,a,r,o){var c=2;if(a=t,typeof t=="function")qB(t)&&(c=1);else if(typeof t=="string")c=5;else t:switch(t){case ll:return S8(n.children,r,o,e);case hB:c=8,r|=8;break;case WV:return t=Na(12,n,e,r|2),t.elementType=WV,t.lanes=o,t;case qV:return t=Na(13,n,e,r),t.elementType=qV,t.lanes=o,t;case GV:return t=Na(19,n,e,r),t.elementType=GV,t.lanes=o,t;case RU:return Np(n,r,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case NU:c=10;break t;case DU:c=9;break t;case uB:c=11;break t;case vB:c=14;break t;case y3:c=16,a=null;break t}throw Error(pt(130,t==null?t:typeof t,""))}return e=Na(c,n,e,r),e.elementType=t,e.type=a,e.lanes=o,e}function S8(t,e,n,a){return t=Na(7,t,a,e),t.lanes=n,t}function Np(t,e,n,a){return t=Na(22,t,a,e),t.elementType=RU,t.lanes=n,t.stateNode={isHidden:!1},t}function Pw(t,e,n){return t=Na(6,t,null,e),t.lanes=n,t}function Nw(t,e,n){return e=Na(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ta1(t,e,n,a,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=mw(0),this.expirationTimes=mw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mw(0),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function GB(t,e,n,a,r,o,c,l,h){return t=new ta1(t,e,n,l,h),e===1?(e=1,o===!0&&(e|=8)):e=0,o=Na(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},SB(o),t}function ea1(t,e,n){var a=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kq)}catch(t){console.error(t)}}kq(),OU.exports=sa;var $8=OU.exports;const V8=G0($8);var ck=$8;$V.createRoot=ck.createRoot,$V.hydrateRoot=ck.hydrateRoot;var Dw={},Rw={},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,n){return Promise.reject()},initAccountDelete:function(){return Promise.reject()},confirmAccountDelete:function(){return Promise.reject()},addToCart:function(e,n){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,n){return Promise.reject(e)},payWithP24:function(e,n,a){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,n){return Promise.reject()},h5pProgress:function(e,n,a){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,n){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,n){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,n){return Promise.reject()},fetchQuestionnaire:function(e,n,a){return Promise.reject()},fetchQuestionnairesAnswers:function(e,n,a,r){return Promise.reject()},fetchQuestionnaireStars:function(e,n,a){return Promise.reject()},fetchQuestionnaireStarsByModel:function(e,n){return Promise.reject()},sendQuestionnaireAnswer:function(e,n,a,r){return Promise.reject()},fetchUserStationaryEvents:function(){return Promise.reject()},userStationaryEvents:{loading:!1},fetchOrderInvoice:function(e){return Promise.reject(e)},changeConsultationTerm:function(e,n){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,n){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,n){return Promise.reject()},updateTaskStatus:function(e,n){return Promise.reject(e)},createTaskNote:function(e,n){return Promise.reject(e)},updateTaskNote:function(e,n,a){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,n){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,n){return Promise.reject()},initAccountDelete:function(){return Promise.reject()},confirmAccountDelete:function(){return Promise.reject()},addToCart:function(e,n){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,n){return Promise.reject(e)},payWithP24:function(e,n,a){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,n){return Promise.reject()},h5pProgress:function(e,n,a){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,n){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,n){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,n){return Promise.reject()},fetchQuestionnaire:function(e,n,a){return Promise.reject()},fetchQuestionnairesAnswers:function(e,n,a,r){return Promise.reject()},sendQuestionnaireAnswer:function(e,n,a,r){return Promise.reject()},fetchQuestionnaireStars:function(e,n,a){return Promise.reject()},fetchQuestionnaireStarsByModel:function(e,n){return Promise.reject()},fetchUserStationaryEvents:function(){return Promise.reject()},userStationaryEvents:{loading:!1},fetchOrderInvoice:function(e){return Promise.reject(e)},changeConsultationTerm:function(e,n){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,n){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,n){return Promise.reject(e)},updateTaskStatus:function(e,n){return Promise.reject(e)},createTaskNote:function(e,n){return Promise.reject(e)},updateTaskNote:function(e,n,a){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,n){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,n=1,a=arguments.length;n0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"u"||!f4?q2:f4(Uint8Array),O8={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?q2:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?q2:ArrayBuffer,"%ArrayIteratorPrototype%":Ic&&f4?f4([][Symbol.iterator]()):q2,"%AsyncFromSyncIteratorPrototype%":q2,"%AsyncFunction%":nl,"%AsyncGenerator%":nl,"%AsyncGeneratorFunction%":nl,"%AsyncIteratorPrototype%":nl,"%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%":Oa1,"%eval%":eval,"%EvalError%":Aa1,"%Float32Array%":typeof Float32Array>"u"?q2:Float32Array,"%Float64Array%":typeof Float64Array>"u"?q2:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?q2:FinalizationRegistry,"%Function%":Pq,"%GeneratorFunction%":nl,"%Int8Array%":typeof Int8Array>"u"?q2:Int8Array,"%Int16Array%":typeof Int16Array>"u"?q2:Int16Array,"%Int32Array%":typeof Int32Array>"u"?q2:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ic&&f4?f4(f4([][Symbol.iterator]())):q2,"%JSON%":typeof JSON=="object"?JSON:q2,"%Map%":typeof Map>"u"?q2:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ic||!f4?q2:f4(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%":ka1,"%ReferenceError%":Ea1,"%Reflect%":typeof Reflect>"u"?q2:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?q2:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ic||!f4?q2:f4(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?q2:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ic&&f4?f4(""[Symbol.iterator]()):q2,"%Symbol%":Ic?Symbol:q2,"%SyntaxError%":Zl,"%ThrowTypeError%":Na1,"%TypedArray%":Ra1,"%TypeError%":Al,"%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%":Pa1,"%WeakMap%":typeof WeakMap>"u"?q2:WeakMap,"%WeakRef%":typeof WeakRef>"u"?q2:WeakRef,"%WeakSet%":typeof WeakSet>"u"?q2:WeakSet};if(f4)try{null.error}catch(t){var ja1=f4(f4(t));O8["%Error.prototype%"]=ja1}var Ia1=function t(e){var n;if(e==="%AsyncFunction%")n=Iw("async function () {}");else if(e==="%GeneratorFunction%")n=Iw("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=Iw("async function* () {}");else if(e==="%AsyncGenerator%"){var a=t("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if(e==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");r&&f4&&(n=f4(r.prototype))}return O8[e]=n,n},vk={__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=Ta1,Fa1=gh.call(Function.call,Array.prototype.concat),$a1=gh.call(Function.apply,Array.prototype.splice),dk=gh.call(Function.call,String.prototype.replace),hg=gh.call(Function.call,String.prototype.slice),Ua1=gh.call(Function.call,RegExp.prototype.exec),Wa1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,qa1=/\\(\\)?/g,Ga1=function(e){var n=hg(e,0,1),a=hg(e,-1);if(n==="%"&&a!=="%")throw new Zl("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&n!=="%")throw new Zl("invalid intrinsic syntax, expected opening `%`");var r=[];return dk(e,Wa1,function(o,c,l,h){r[r.length]=l?dk(h,qa1,"$1"):c||o}),r},Ka1=function(e,n){var a=e,r;if(sg(vk,a)&&(r=vk[a],a="%"+r[0]+"%"),sg(O8,a)){var o=O8[a];if(o===nl&&(o=Ia1(a)),typeof o>"u"&&!n)throw new Al("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:a,value:o}}throw new Zl("intrinsic "+e+" does not exist!")},O6=function(e,n){if(typeof e!="string"||e.length===0)throw new Al("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Al('"allowMissing" argument must be a boolean');if(Ua1(/^%?[^%]*%?$/,e)===null)throw new Zl("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Ga1(e),r=a.length>0?a[0]:"",o=Ka1("%"+r+"%",n),c=o.name,l=o.value,h=!1,s=o.alias;s&&(r=s[0],$a1(a,Fa1([0,1],s)));for(var u=1,v=!0;u=a.length){var g=T8(l,f);v=!!g,v&&"get"in g&&!("originalValue"in g.get)?l=g.get:l=l[f]}else v=sg(l,f),l=l[f];v&&!h&&(O8[c]=l)}}return l},Nq={exports:{}},$w,fk;function XB(){if(fk)return $w;fk=1;var t=O6,e=t("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return $w=e,$w}var Ya1=O6,uf=Ya1("%Object.getOwnPropertyDescriptor%",!0);if(uf)try{uf([],"length")}catch{uf=null}var Dq=uf,gk=XB(),Za1=Eq,Fc=fh,pk=Dq,Qa1=function(e,n,a){if(!e||typeof e!="object"&&typeof e!="function")throw new Fc("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Fc("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Fc("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Fc("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Fc("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Fc("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,h=!!pk&&pk(e,n);if(gk)gk(e,n,{configurable:c===null&&h?h.configurable:!c,enumerable:r===null&&h?h.enumerable:!r,value:a,writable:o===null&&h?h.writable:!o});else if(l||!r&&!o&&!c)e[n]=a;else throw new Za1("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},PC=XB(),Rq=function(){return!!PC};Rq.hasArrayLengthDefineBug=function(){if(!PC)return null;try{return PC([],"length",{value:1}).length!==1}catch{return!0}};var Xa1=Rq,Ja1=O6,mk=Qa1,tr1=Xa1(),zk=Dq,Mk=fh,er1=Ja1("%Math.floor%"),nr1=function(e,n){if(typeof e!="function")throw new Mk("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||er1(n)!==n)throw new Mk("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],r=!0,o=!0;if("length"in e&&zk){var c=zk(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(o=!1)}return(r||o||!a)&&(tr1?mk(e,"length",n,!0,!0):mk(e,"length",n)),e};(function(t){var e=QB,n=O6,a=nr1,r=fh,o=n("%Function.prototype.apply%"),c=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||e.call(c,o),h=XB(),s=n("%Math.max%");t.exports=function(f){if(typeof f!="function")throw new r("a function is required");var d=l(e,c,arguments);return a(d,1+s(0,f.length-(arguments.length-1)),!0)};var u=function(){return l(e,o,arguments)};h?h(t.exports,"apply",{value:u}):t.exports.apply=u})(Nq);var ar1=Nq.exports,jq=O6,Iq=ar1,rr1=Iq(jq("String.prototype.indexOf")),ir1=function(e,n){var a=jq(e,!!n);return typeof a=="function"&&rr1(e,".prototype.")>-1?Iq(a):a};const or1={},cr1=Object.freeze(Object.defineProperty({__proto__:null,default:or1},Symbol.toStringTag,{value:"Module"})),lr1=se(cr1);var JB=typeof Map=="function"&&Map.prototype,Uw=Object.getOwnPropertyDescriptor&&JB?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ug=JB&&Uw&&typeof Uw.get=="function"?Uw.get:null,Hk=JB&&Map.prototype.forEach,t_=typeof Set=="function"&&Set.prototype,Ww=Object.getOwnPropertyDescriptor&&t_?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,vg=t_&&Ww&&typeof Ww.get=="function"?Ww.get:null,wk=t_&&Set.prototype.forEach,sr1=typeof WeakMap=="function"&&WeakMap.prototype,R7=sr1?WeakMap.prototype.has:null,hr1=typeof WeakSet=="function"&&WeakSet.prototype,j7=hr1?WeakSet.prototype.has:null,ur1=typeof WeakRef=="function"&&WeakRef.prototype,yk=ur1?WeakRef.prototype.deref:null,vr1=Boolean.prototype.valueOf,dr1=Object.prototype.toString,fr1=Function.prototype.toString,gr1=String.prototype.match,e_=String.prototype.slice,D3=String.prototype.replace,pr1=String.prototype.toUpperCase,xk=String.prototype.toLowerCase,Fq=RegExp.prototype.test,Vk=Array.prototype.concat,Jr=Array.prototype.join,mr1=Array.prototype.slice,Ck=Math.floor,NC=typeof BigInt=="function"?BigInt.prototype.valueOf:null,qw=Object.getOwnPropertySymbols,DC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ql=typeof Symbol=="function"&&typeof Symbol.iterator=="object",J4=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ql||!0)?Symbol.toStringTag:null,$q=Object.prototype.propertyIsEnumerable,bk=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Lk(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Fq.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var a=t<0?-Ck(-t):Ck(t);if(a!==t){var r=String(a),o=e_.call(e,r.length+1);return D3.call(r,n,"$&_")+"."+D3.call(D3.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D3.call(e,n,"$&_")}var RC=lr1,Bk=RC.custom,_k=Wq(Bk)?Bk:null,zr1=function t(e,n,a,r){var o=n||{};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 c=V3(o,"customInspect")?o.customInspect:!0;if(typeof c!="boolean"&&c!=="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 l=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 Gq(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var h=String(e);return l?Lk(e,h):h}if(typeof e=="bigint"){var s=String(e)+"n";return l?Lk(e,s):s}var u=typeof o.depth>"u"?5:o.depth;if(typeof a>"u"&&(a=0),a>=u&&u>0&&typeof e=="object")return jC(e)?"[Array]":"[Object]";var v=Pr1(o,a);if(typeof r>"u")r=[];else if(qq(r,e)>=0)return"[Circular]";function f(P,F,W){if(F&&(r=mr1.call(r),r.push(F)),W){var U={depth:o.depth};return V3(o,"quoteStyle")&&(U.quoteStyle=o.quoteStyle),t(P,U,a+1,r)}return t(P,o,a+1,r)}if(typeof e=="function"&&!Sk(e)){var d=Lr1(e),z=Rv(e,f);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(z.length>0?" { "+Jr.call(z,", ")+" }":"")}if(Wq(e)){var g=Ql?D3.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):DC.call(e);return typeof e=="object"&&!Ql?P9(g):g}if(Ar1(e)){for(var H="<"+xk.call(String(e.nodeName)),p=e.attributes||[],m=0;m",H}if(jC(e)){if(e.length===0)return"[]";var M=Rv(e,f);return v&&!Er1(M)?"["+IC(M,v)+"]":"[ "+Jr.call(M,", ")+" ]"}if(wr1(e)){var w=Rv(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!$q.call(e,"cause")?"{ ["+String(e)+"] "+Jr.call(Vk.call("[cause]: "+f(e.cause),w),", ")+" }":w.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Jr.call(w,", ")+" }"}if(typeof e=="object"&&c){if(_k&&typeof e[_k]=="function"&&RC)return RC(e,{depth:u-a});if(c!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Br1(e)){var x=[];return Hk&&Hk.call(e,function(P,F){x.push(f(F,e,!0)+" => "+f(P,e))}),Tk("Map",ug.call(e),x,v)}if(Tr1(e)){var y=[];return wk&&wk.call(e,function(P){y.push(f(P,e))}),Tk("Set",vg.call(e),y,v)}if(_r1(e))return Gw("WeakMap");if(Or1(e))return Gw("WeakSet");if(Sr1(e))return Gw("WeakRef");if(xr1(e))return P9(f(Number(e)));if(Cr1(e))return P9(f(NC.call(e)));if(Vr1(e))return P9(vr1.call(e));if(yr1(e))return P9(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===b)return"{ [object globalThis] }";if(!Hr1(e)&&!Sk(e)){var V=Rv(e,f),C=bk?bk(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?"["+Jr.call(Vk.call([],B||[],L||[]),": ")+"] ":"");return V.length===0?T+"{}":v?T+"{"+IC(V,v)+"}":T+"{ "+Jr.call(V,", ")+" }"}return String(e)};function Uq(t,e,n){var a=(n.quoteStyle||e)==="double"?'"':"'";return a+t+a}function Mr1(t){return D3.call(String(t),/"/g,""")}function jC(t){return xo(t)==="[object Array]"&&(!J4||!(typeof t=="object"&&J4 in t))}function Hr1(t){return xo(t)==="[object Date]"&&(!J4||!(typeof t=="object"&&J4 in t))}function Sk(t){return xo(t)==="[object RegExp]"&&(!J4||!(typeof t=="object"&&J4 in t))}function wr1(t){return xo(t)==="[object Error]"&&(!J4||!(typeof t=="object"&&J4 in t))}function yr1(t){return xo(t)==="[object String]"&&(!J4||!(typeof t=="object"&&J4 in t))}function xr1(t){return xo(t)==="[object Number]"&&(!J4||!(typeof t=="object"&&J4 in t))}function Vr1(t){return xo(t)==="[object Boolean]"&&(!J4||!(typeof t=="object"&&J4 in t))}function Wq(t){if(Ql)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!DC)return!1;try{return DC.call(t),!0}catch{}return!1}function Cr1(t){if(!t||typeof t!="object"||!NC)return!1;try{return NC.call(t),!0}catch{}return!1}var br1=Object.prototype.hasOwnProperty||function(t){return t in this};function V3(t,e){return br1.call(t,e)}function xo(t){return dr1.call(t)}function Lr1(t){if(t.name)return t.name;var e=gr1.call(fr1.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function qq(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,a=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,a="... "+n+" more character"+(n>1?"s":"");return Gq(e_.call(t,0,e.maxStringLength),e)+a}var r=D3.call(D3.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,kr1);return Uq(r,"single",e)}function kr1(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+pr1.call(e.toString(16))}function P9(t){return"Object("+t+")"}function Gw(t){return t+" { ? }"}function Tk(t,e,n,a){var r=a?IC(n,a):Jr.call(n,", ");return t+" ("+e+") {"+r+"}"}function Er1(t){for(var e=0;e=0)return!1;return!0}function Pr1(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=Jr.call(Array(t.indent+1)," ");else return null;return{base:n,prev:Jr.call(Array(e+1),n)}}function IC(t,e){if(t.length===0)return"";var n=` `+e.prev+e.base;return n+Jr.call(t,","+n)+` -`+e.prev}function Rv(t,e){var n=jC(t),a=[];if(n){a.length=t.length;for(var r=0;r1;){var n=e.pop(),a=n.obj[n.prop];if(f8(a)){for(var r=[],o=0;o=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||o===Yr1.RFC1738&&(s===40||s===41)){l+=c.charAt(h);continue}if(s<128){l=l+Gr[s];continue}if(s<2048){l=l+(Gr[192|s>>6]+Gr[128|s&63]);continue}if(s<55296||s>=57344){l=l+(Gr[224|s>>12]+Gr[128|s>>6&63]+Gr[128|s&63]);continue}h+=1,s=65536+((s&1023)<<10|c.charCodeAt(h)&1023),l+=Gr[240|s>>18]+Gr[128|s>>12&63]+Gr[128|s>>6&63]+Gr[128|s&63]}return l},e51=function(e){for(var n=[{obj:{o:e},prop:"o"}],a=[],r=0;r"u"&&(z=0)}if(typeof h=="function"?p=h(n,p):p instanceof Date?p=v(p):a==="comma"&&ii(p)&&(p=vf.maybeMap(p,function(U){return U instanceof Date?v(U):U})),p===null){if(o)return l&&!M?l(n,U4.encoder,g,"key",f):n;p=""}if(s51(p)||vf.isBuffer(p)){if(l){var y=M?n:l(n,U4.encoder,g,"key",f);return[d(y)+"="+d(l(p,U4.encoder,g,"value",f))]}return[d(n)+"="+d(String(p))]}var V=[];if(typeof p>"u")return V;var C;if(a==="comma"&&ii(p))M&&l&&(p=vf.maybeMap(p,l)),C=[{value:p.length>0?p.join(",")||null:void 0}];else if(ii(h))C=h;else{var L=Object.keys(p);C=s?L.sort(s):L}for(var B=r&&ii(p)&&p.length===1?n+"[]":n,_=0;_"u"?U4.allowDots:!!e.allowDots,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:U4.charsetSentinel,delimiter:typeof e.delimiter>"u"?U4.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:U4.encode,encoder:typeof e.encoder=="function"?e.encoder:U4.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:U4.encodeValuesOnly,filter:o,format:a,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:U4.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:U4.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:U4.strictNullHandling}},v51=function(t,e){var n=t,a=u51(e),r,o;typeof a.filter=="function"?(o=a.filter,n=o("",n)):ii(a.filter)&&(o=a.filter,r=o);var c=[];if(typeof n!="object"||n===null)return"";var l;e&&e.arrayFormat in Ok?l=e.arrayFormat:e&&"indices"in e?l=e.indices?"indices":"repeat":l="indices";var h=Ok[l];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=h==="comma"&&e&&e.commaRoundTrip;r||(r=Object.keys(n)),a.sort&&r.sort(a.sort);for(var u=Zq(),v=0;v0?M+d:""},Xc=Yq,FC=Object.prototype.hasOwnProperty,d51=Array.isArray,v4={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Xc.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},f51=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},Xq=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},g51="utf8=%26%2310003%3B",p51="utf8=%E2%9C%93",m51=function(e,n){var a={__proto__:null},r=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=n.parameterLimit===1/0?void 0:n.parameterLimit,c=r.split(n.delimiter,o),l=-1,h,s=n.charset;if(n.charsetSentinel)for(h=0;h-1&&(M=d51(M)?[M]:M),FC.call(a,d)?a[d]=Xc.combine(a[d],M):a[d]=M}return a},z51=function(t,e,n,a){for(var r=a?e:Xq(e,n),o=t.length-1;o>=0;--o){var c,l=t[o];if(l==="[]"&&n.parseArrays)c=[].concat(r);else{c=n.plainObjects?Object.create(null):{};var h=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,s=parseInt(h,10);!n.parseArrays&&h===""?c={0:r}:!isNaN(s)&&l!==h&&String(s)===h&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(c=[],c[s]=r):h!=="__proto__"&&(c[h]=r)}r=c}return r},M51=function(e,n,a,r){if(e){var o=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,c=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,h=a.depth>0&&c.exec(o),s=h?o.slice(0,h.index):o,u=[];if(s){if(!a.plainObjects&&FC.call(Object.prototype,s)&&!a.allowPrototypes)return;u.push(s)}for(var v=0;a.depth>0&&(h=l.exec(o))!==null&&v"u"?v4.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?v4.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:v4.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:v4.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:v4.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:v4.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:v4.comma,decoder:typeof e.decoder=="function"?e.decoder:v4.decoder,delimiter:typeof e.delimiter=="string"||Xc.isRegExp(e.delimiter)?e.delimiter:v4.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:v4.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:v4.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:v4.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:v4.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:v4.strictNullHandling}},w51=function(t,e){var n=H51(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var a=typeof t=="string"?m51(t,n):t,r=n.plainObjects?Object.create(null):{},o=Object.keys(a),c=0;c-1};function kl(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 rS(t){return typeof t!="string"&&(t=String(t)),t}function iS(t){var e={next:function(){var n=t.shift();return{done:n===void 0,value:n}}};return sn.iterable&&(e[Symbol.iterator]=function(){return e}),e}function o4(t){this.map={},t instanceof o4?t.forEach(function(e,n){this.append(n,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)}o4.prototype.append=function(t,e){t=kl(t),e=rS(e);var n=this.map[t];this.map[t]=n?n+", "+e:e};o4.prototype.delete=function(t){delete this.map[kl(t)]};o4.prototype.get=function(t){return t=kl(t),this.has(t)?this.map[t]:null};o4.prototype.has=function(t){return this.map.hasOwnProperty(kl(t))};o4.prototype.set=function(t,e){this.map[kl(t)]=rS(e)};o4.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)};o4.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),iS(t)};o4.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),iS(t)};o4.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),iS(t)};sn.iterable&&(o4.prototype[Symbol.iterator]=o4.prototype.entries);function Qw(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,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function B51(t){var e=new FileReader,n=tG(e);return e.readAsArrayBuffer(t),n}function S51(t){var e=new FileReader,n=tG(e),a=/charset=([A-Za-z0-9_-]+)/.exec(t.type),r=a?a[1]:"utf-8";return e.readAsText(t,r),n}function _51(t){for(var e=new Uint8Array(t),n=new Array(e.length),a=0;a-1?e:t}function $8(t,e){if(!(this instanceof $8))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var n=e.body;if(t instanceof $8){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new o4(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,!n&&t._bodyInit!=null&&(n=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 o4(e.headers)),this.method=O51(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in _4){var o=new AbortController;return o.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+new Date().getTime());else{var r=/\?/;this.url+=(r.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}$8.prototype.clone=function(){return new $8(this,{body:this._bodyInit})};function A51(t){var e=new FormData;return t.trim().split("&").forEach(function(n){if(n){var a=n.split("="),r=a.shift().replace(/\+/g," "),o=a.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function k51(t){var e=new o4,n=t.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(a){return a.indexOf(` -`)===0?a.substr(1,a.length):a}).forEach(function(a){var r=a.split(":"),o=r.shift().trim();if(o){var c=r.join(":").trim();try{e.append(o,c)}catch(l){console.warn("Response "+l.message)}}}),e}eG.call($8.prototype);function x5(t,e){if(!(this instanceof x5))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 o4(e.headers),this.url=e.url||"",this._initBody(t)}eG.call(x5.prototype);x5.prototype.clone=function(){return new x5(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o4(this.headers),url:this.url})};x5.error=function(){var t=new x5(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var E51=[301,302,303,307,308];x5.redirect=function(t,e){if(E51.indexOf(e)===-1)throw new RangeError("Invalid status code");return new x5(null,{status:e,headers:{location:t}})};var g8=_4.DOMException;try{new g8}catch{g8=function(e,n){this.message=e,this.name=n;var a=Error(e);this.stack=a.stack},g8.prototype=Object.create(Error.prototype),g8.prototype.constructor=g8}function nG(t,e){return new Promise(function(n,a){var r=new $8(t,e);if(r.signal&&r.signal.aborted)return a(new g8("Aborted","AbortError"));var o=new XMLHttpRequest;function c(){o.abort()}o.onload=function(){var s={statusText:o.statusText,headers:k51(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(){n(new x5(u,s))},0)},o.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},o.onabort=function(){setTimeout(function(){a(new g8("Aborted","AbortError"))},0)};function l(s){try{return s===""&&_4.location.href?_4.location.href:s}catch{return s}}if(o.open(r.method,l(r.url),!0),r.credentials==="include"?o.withCredentials=!0:r.credentials==="omit"&&(o.withCredentials=!1),"responseType"in o&&(sn.blob?o.responseType="blob":sn.arrayBuffer&&(o.responseType="arraybuffer")),e&&typeof e.headers=="object"&&!(e.headers instanceof o4||_4.Headers&&e.headers instanceof _4.Headers)){var h=[];Object.getOwnPropertyNames(e.headers).forEach(function(s){h.push(kl(s)),o.setRequestHeader(s,rS(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",c),o.onreadystatechange=function(){o.readyState===4&&r.signal.removeEventListener("abort",c)}),o.send(typeof r._bodyInit>"u"?null:r._bodyInit)})}nG.polyfill=!0;_4.fetch||(_4.fetch=nG,_4.Headers=o4,_4.Request=$8,_4.Response=x5);self.fetch.bind(self);var aG={};function Ek(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function En(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,n){return iG()?df=Reflect.construct:df=function(r,o,c){var l=[null];l.push.apply(l,o);var h=Function.bind.apply(r,l),s=new h;return c&&ks(s,c.prototype),s},df.apply(null,arguments)}function N51(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(a){if(a===null||!N51(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(a))return e.get(a);e.set(a,r)}function r(){return df(a,arguments,As(this).constructor)}return r.prototype=Object.create(a.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ks(r,a)},dg(t)}function D51(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function R51(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 D51(t)}function oG(t){var e=iG();return function(){var a=As(t),r;if(e){var o=As(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return R51(this,r)}}function a5(t){return j51(t)||I51(t)||F51(t)||$51()}function j51(t){if(Array.isArray(t))return $C(t)}function I51(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function F51(t,e){if(t){if(typeof t=="string")return $C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $C(t,e)}}function $C(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},r=!1,o=!1,c=!1;if(typeof a=="number"?(process,r=!0,o=!1):Z3(a)==="object"&&a&&(o=a.global||!1,r=a.core||!1,c=a.defaultInstance||!1),o){t.globalMiddlewares.splice(t.globalMiddlewares.length-t.defaultGlobalMiddlewaresLength,0,n);return}if(r){t.coreMiddlewares.splice(t.coreMiddlewares.length-t.defaultCoreMiddlewaresLength,0,n);return}if(c){this.defaultMiddlewares.push(n);return}this.middlewares.push(n)}},{key:"execute",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,a=U51([].concat(a5(this.middlewares),a5(this.defaultMiddlewares),a5(t.globalMiddlewares),a5(t.coreMiddlewares)));return a(n)}}]),t}();Wa.globalMiddlewares=[];Wa.defaultGlobalMiddlewaresLength=0;Wa.coreMiddlewares=[];Wa.defaultCoreMiddlewaresLength=0;var W51=function(){function t(e){ph(this,t),this.cache=new Map,this.timer={},this.extendOptions(e)}return oS(t,[{key:"extendOptions",value:function(n){this.maxCache=n.maxCache||0}},{key:"get",value:function(n){return this.cache.get(JSON.stringify(n))}},{key:"set",value:function(n,a){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var c=a5(this.cache.keys())[0];this.cache.delete(c),this.timer[c]&&clearTimeout(this.timer[c])}var l=JSON.stringify(n);this.cache.set(l,a),o>0&&(this.timer[l]=setTimeout(function(){r.cache.delete(l),delete r.timer[l]},o))}},{key:"delete",value:function(n){var a=JSON.stringify(n);return delete this.timer[a],this.cache.delete(a)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),t}(),cS=function(t){rG(n,t);var e=oG(n);function n(a,r){var o,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return ph(this,n),o=e.call(this,a),o.name="RequestError",o.request=r,o.type=c,o}return n}(dg(Error)),Mc=function(t){rG(n,t);var e=oG(n);function n(a,r,o,c){var l,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return ph(this,n),l=e.call(this,r||a.statusText),l.name="ResponseError",l.data=o,l.response=a,l.request=c,l.type=h,l}return n}(dg(Error));function q51(t){return new Promise(function(e,n){var a=new FileReader;a.onload=function(){e(a.result)},a.onerror=n,a.readAsText(t,"GBK")})}function Nk(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(t)}catch{if(e)throw new Mc(n,"JSON.parse fail",t,a,"ParseError")}return t}function G51(t,e,n){return new Promise(function(a,r){setTimeout(function(){r(new cS(e||"timeout of ".concat(t,"ms exceeded"),n,"Timeout"))},t)})}function Dk(t){return new Promise(function(e,n){t.cancelToken&&t.cancelToken.promise.then(function(a){n(a)})})}var K51=Object.prototype.toString;function cG(){var t;return typeof process<"u"&&K51.call(process)==="[object process]"&&(t="NODE"),typeof XMLHttpRequest<"u"&&(t="BROWSER"),t}function UC(t){return Z3(t)==="object"&&Object.prototype.toString.call(t)==="[object Array]"}function lG(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function Y51(t){return Z3(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Rk(t){return t!==null&&Z3(t)==="object"}function jk(t,e){if(t)if(Z3(t)!=="object"&&(t=[t]),UC(t))for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},a=n.prefix,r=n.suffix;return a&&(e="".concat(a).concat(e)),r&&(e="".concat(e).concat(r)),{url:e,options:n}};function Q51(t,e){var n=e.method,a=n===void 0?"get":n;return a.toLowerCase()==="get"}function X51(t,e){if(!t)return e();var n=t.req;n=n===void 0?{}:n;var a=n.options,r=a===void 0?{}:a,o=n.url,c=o===void 0?"":o,l=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?Q51:w;if(d!=="normal")return process,e();var y=fetch;if(!y)throw new Error("Global fetch not exist!");var V=cG()==="BROWSER",C=x(c,r)&&g&&V;if(C){var L=l.get({url:c,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(c,r),G51(u,v,t.req)]):B=Promise.race([Dk(r),y(c,r)]),h.forEach(function(_){B=B.then(function(T){var P=typeof T.clone=="function"?T.clone():T;return _(P,r)})}),B.then(function(_){if(C&&_.status===200){var T=_.clone();T.useCache=!0,l.set({url:c,params:m,method:p},T,z)}return t.res=_,e()})}function J51(t,e){var n;return e().then(function(){if(t){var a=t.res,r=a===void 0?{}:a,o=t.req,c=o===void 0?{}:o,l=c||{},h=l.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(n=cG()==="BROWSER"?r.clone():r,n.useCache=r.useCache||!1,f==="gbk")try{return r.blob().then(q51).then(function(p){return Nk(p,!1,n,c)})}catch(p){throw new Mc(n,p.message,null,c,"ParseError")}else if(u==="json")return r.text().then(function(p){return Nk(p,M,n,c)});try{return r[u]()}catch{throw new Mc(n,"responseType not support",null,c,"ParseError")}}}}).then(function(a){if(t){t.res;var r=t.req,o=r===void 0?{}:r,c=o||{},l=c.options;l=l===void 0?{}:l;var h=l.getResponse,s=h===void 0?!1:h;if(n){if(n.status>=200&&n.status<300){if(s){t.res={data:a,response:n};return}t.res=a;return}throw new Mc(n,"http error",a,o,"HttpError")}}}).catch(function(a){if(a instanceof cS||a instanceof Mc)throw a;var r=t.req,o=t.res;throw a.request=a.request||r,a.response=a.response||o,a.type=a.type||a.name,a.data=a.data||void 0,a})}function ti1(t,e){if(!t)return e();var n=t.req;n=n===void 0?{}:n;var a=n.options,r=a===void 0?{}:a,o=r.method,c=o===void 0?"get":o;if(["post","put","patch","delete"].indexOf(c.toLowerCase())===-1)return e();var l=r.requestType,h=l===void 0?"json":l,s=r.data;if(s){var u=Object.prototype.toString.call(s);u==="[object Object]"||u==="[object Array]"?h==="json"?(r.headers=En({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},r.headers),r.body=JSON.stringify(s)):h==="form"&&(r.headers=En({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},r.headers),r.body=WC(s)):(r.headers=En({Accept:"application/json"},r.headers),r.body=s)}return t.req.options=r,e()}function ei1(t,e){var n,a;if(t)if(e)n=e(t);else if(lG(t))n=t.toString();else if(UC(t))a=[],jk(t,function(o){o===null||typeof o>"u"?a.push(o):a.push(Rk(o)?JSON.stringify(o):o)}),n=WC(a);else{a={},jk(t,function(o,c){var l=o;o===null||typeof o>"u"?a[c]=o:Y51(o)?l=o.toISOString():UC(o)?l=o:Rk(o)&&(l=JSON.stringify(o)),a[c]=l});var r=WC(a);n=r}return n}function ni1(t,e){if(!t)return e();var n=t.req;n=n===void 0?{}:n;var a=n.options,r=a===void 0?{}:a,o=r.paramsSerializer,c=r.params,l=t.req;l=l===void 0?{}:l;var h=l.url,s=h===void 0?"":h;r.method=r.method?r.method.toUpperCase():"GET",r.credentials=r.credentials||"same-origin";var u=ei1(c,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=[ti1,ni1,J51],uG=[X51];Wa.globalMiddlewares=hG;Wa.defaultGlobalMiddlewaresLength=hG.length;Wa.coreMiddlewares=uG;Wa.defaultCoreMiddlewaresLength=uG.length;var F7=function(){function t(e){ph(this,t),this.onion=new Wa([]),this.fetchIndex=0,this.mapCache=new W51(e),this.initOptions=e,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return oS(t,[{key:"use",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(n,a),this}},{key:"extendOptions",value:function(n){this.initOptions=sG(this.initOptions,n),this.mapCache.extendOptions(n)}},{key:"dealRequestInterceptors",value:function(n){var a=function(c,l){return c.then(function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n.req.url=h.url||n.req.url,n.req.options=h.options||n.req.options,l(n.req.url,n.req.options)})},r=[].concat(a5(t.requestInterceptors),a5(this.instanceRequestInterceptors));return r.reduce(a,Promise.resolve()).then(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n.req.url=o.url||n.req.url,n.req.options=o.options||n.req.options,Promise.resolve()})}},{key:"request",value:function(n,a){var r=this,o=this.onion,c={req:{url:n,options:En(En({},a),{},{url:n})},res:null,cache:this.mapCache,responseInterceptors:[].concat(a5(t.responseInterceptors),a5(this.instanceResponseInterceptors))};if(typeof n!="string")throw new Error("url MUST be a string");return new Promise(function(l,h){r.dealRequestInterceptors(c).then(function(){return o.execute(c)}).then(function(){l(c.res)}).catch(function(s){var u=c.req.options.errorHandler;if(u)try{var v=u(s);l(v)}catch(f){h(f)}else h(s)})})}}],[{key:"requestUse",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof n!="function")throw new TypeError("Interceptor must be function!");a.global?t.requestInterceptors.push(n):this.instanceRequestInterceptors.push(n)}},{key:"responseUse",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof n!="function")throw new TypeError("Interceptor must be function!");a.global?t.responseInterceptors.push(n):this.instanceResponseInterceptors.push(n)}}]),t}();F7.requestInterceptors=[Z51];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 n=this;t(function(r){n.reason||(n.reason=new $p(r),e(n.reason))})}fg.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};fg.source=function(){var e,n=new fg(function(r){e=r});return{token:n,cancel:e}};function ai1(t){return!!(t&&t.__CANCEL__)}var lS=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=new F7(e),a=function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=sG(n.initOptions,l);return n.request(c,h)};a.use=n.use.bind(n),a.fetchIndex=n.fetchIndex,a.interceptors={request:{use:F7.requestUse.bind(n)},response:{use:F7.responseUse.bind(n)}};var r=["get","post","delete","put","patch","head","options","rpc"];return r.forEach(function(o){a[o]=function(c,l){return a(c,En(En({},l),{},{method:o}))}}),a.Cancel=$p,a.CancelToken=fg,a.isCancel=ai1,a.extendOptions=n.extendOptions.bind(n),a.middlewares={instance:n.onion.middlewares,defaultInstance:n.onion.defaultMiddlewares,global:Wa.globalMiddlewares,core:Wa.coreMiddlewares},a},ri1=function(e){return lS(e)},ii1=lS({parseResponse:!1}),oi1=lS({});const ci1=Object.freeze(Object.defineProperty({__proto__:null,Onion:Wa,RequestError:cS,ResponseError:Mc,default:oi1,extend:ri1,fetch:ii1},Symbol.toStringTag,{value:"Module"})),n0=se(ci1);var Pe={};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.currentTimezone=void 0;var li1=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone};Pe.currentTimezone=li1;var qC=b&&b.__assign||function(){return qC=Object.assign||function(t){for(var e,n=1,a=arguments.length;n0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]60*60)return;var J=setTimeout(function(){return P()},i1);return function(){clearTimeout(J)}}},[U]);var t1=(0,a.useCallback)(function(){w(null),V(r.defaultConfig.user)},[]),R=(0,a.useCallback)(function(i1){return h.register.bind(null,g)(i1)},[]);return(0,n.jsx)(t.UserContext.Provider,e({value:{tokenExpireDate:U,token:z,user:y,socialAuthorize:W,changePassword:F,login:L,logout:C,forgot:h.forgot.bind(null,g),reset:h.reset.bind(null,g),fetchProfile:B,updateProfile:_,updateAvatar:T,getRefreshedToken:P,emailVerify:h.emailVerify.bind(null,g),register:R,initAccountDelete:Z,confirmAccountDelete:I}},{children:d}))};t.UserContextProvider=u}(Xw)),Xw}var $k;function ki1(){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)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=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)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0;if(C.attempted===P6&&a3&&a3[0].id.includes(C.guessTheAnswer)){var j5=(0,t.getCalcCourseProgress)(Number(k1),P5,N5);$o(Number(k1),(j5==null?void 0:j5.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(P6))return null;if(C.completed.includes(P6)&&(!cw&&a3&&!(!((za=a3[0])===null||za===void 0)&&za.id.includes(C.questionSet))||a3&&(!((x9=a3[0])===null||x9===void 0)&&x9.id.includes(C.questionSet))&&R5&&((V9=R5==null?void 0:R5.score)===null||V9===void 0?void 0:V9.max)===((C9=R5==null?void 0:R5.score)===null||C9===void 0?void 0:C9.raw))){var j5=(0,t.getCalcCourseProgress)(Number(k1),P5,N5);$o(Number(k1),(j5==null?void 0:j5.map(function(qo){return qo.topic_id===E1?e(e({},qo),{status:V.CourseProgressItemElementStatus.COMPLETE}):qo}))||[{topic_id:E1,status:V.CourseProgressItemElementStatus.COMPLETE}])}return C1?f.h5pProgress.bind(null,X)(E1,P6,lt,C1):null},[C1,P5,N5]),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 P5.value&&P5.value.reduce(function(E1,lt){return E1.coursesProcProgress[typeof lt.course.id=="number"?lt.course.id:0]=lt.progress.reduce(function(It,A2){return It+A2.status},0)/lt.progress.length,E1.finishedTopics=E1.finishedTopics.concat(lt.progress.filter(function(It){return It.status===V.CourseProgressItemElementStatus.COMPLETE}).map(function(It){return It.topic_id})),E1},k1),k1},[P5]),rw=(0,h.useCallback)(function(k1){return!!(Wr&&Wr.finishedTopics.includes(k1))},[Wr]),iw=(0,h.useCallback)(function(k1){return Wr&&Wr.coursesProcProgress[k1]?Wr.coursesProcProgress[k1]:0},[Wr]),ow=(0,h.useCallback)(function(k1,E1){if(E1===void 0&&(E1=!0),Io.value===void 0)return null;var lt=(0,rt.getFlatTopics)(Io.value.lessons),It=lt==null?void 0:lt.findIndex(function(A2){return A2.id===k1});if(It===void 0||It===-1)return null;if(E1){if(Array.isArray(lt)&<[It+1])return lt[It+1]||null}else if(Array.isArray(lt)&<[It-1])return lt[It-1]||null;return null},[Io]),Kn=(0,h.useCallback)(function(k1){return C1?w.addVoucher.bind(null,X)(k1,C1).finally(function(){return S2()}):Promise.reject("noToken")},[C1]),e3=(0,h.useCallback)(function(){return C1?w.removeVoucher.bind(null,X)(C1).finally(function(){return S2()}):Promise.reject("noToken")},[C1]);return(0,l.jsx)(t.EscolaLMSContext.Provider,e({value:{confirmAccountDelete:_0,initAccountDelete:y2,token:C1,apiUrl:X,courses:_2,course:Pu,program:Io,fetchCourses:H2,fetchCourse:qH,fetchProgram:XH,fetchSettings:j4,settings:zH,config:f9,fetchConfig:k6,fetchTags:k4,uniqueTags:ve,fetchCategories:T0,categoryTree:N2,login:ht,logout:KH,forgot:Ht,reset:Ot,user:Vt,register:f2,fetchCart:S2,addToCart:ne,removeFromCart:wt,resetCart:Tt,cart:R0,payWithStripe:YH,fetchProgress:JH,fetchPaginatedProgress:tw,paginatedProgress:HH,fetchCourseProgress:nw,progress:P5,courseProgressDetails:N5,sendProgress:$o,fetchTutors:E4,tutors:Ne,fetchTutor:H9,tutor:CH,fetchOrders:aw,orders:Wu,fetchPayments:w9,payments:yH,pages:C0,fetchPages:de,page:s4,fetchPage:D4,fetchProfile:n2,updateProfile:u2,updateAvatar:St,topicPing:Mv,topicIsFinished:rw,courseProgress:iw,getNextPrevTopic:ow,h5pProgress:y9,userGroups:pH,fetchUserGroups:WH,userGroup:Tu,fetchUserGroup:$H,registerableGroups:ku,fetchRegisterableGroups:UH,socialAuthorize:Y1,notifications:KM,fetchNotifications:YM,readNotify:fu,readAllNotifications:ZM,certificates:Gu,fetchCertificates:DH,fetchCertificate:M9,generateCertificate:Ji,mattermostChannels:VH,fetchMattermostChannels:jH,h5p:Vn,fetchH5P:N4,emailVerify:Rt,getRefreshedToken:At,tokenExpireDate:Xt,fetchConsultations:ae,consultations:l2,consultation:bu,fetchConsultation:t3,fields:LH,fetchFields:E6,stationaryEvents:SH,fetchStationaryEvents:uv,fetchStationaryEvent:vv,fetchUserConsultations:pv,userConsultations:vH,bookConsultationTerm:mv,fetchWebinars:P4,fetchWebinar:nn,webinars:p0,payWithP24:ZH,getProductInfo:FH,fetchTutorConsultations:z9,approveConsultationTerm:PH,generateConsultationJitsy:gv,rejectConsultationTerm:fv,tutorConsultations:fH,fetchEvents:zv,events:gH,changePassword:Ct,stationaryEvent:nv,webinar:fa,userWebinars:D5,fetchUserWebinars:EH,generateWebinarJitsy:NH,realizeVoucher:Kn,removeVoucher:e3,products:Xi,product:AH,fetchQuestionnaires:QM,fetchQuestionnaire:XM,fetchQuestionnairesAnswers:JM,fetchQuestionnaireStars:tH,fetchQuestionnaireStarsByModel:nH,sendQuestionnaireAnswer:eH,fetchUserStationaryEvents:dv,userStationaryEvents:iv,fetchOrderInvoice:QH,addMissingProducts:mt,getImagePrefix:N1,getImageSvgPrefix:Z1,changeConsultationTerm:IH,fetchProducts:sv,fetchProduct:hv,courseAccess:L0,fetchCourseAccess:Ur,addCourseAccess:Ro,deleteCourseAccess:jo,myCourses:Gn,fetchMyCourses:jM,fetchMyAuthoredCourses:ew,myAuthoredCourses:Fu,challenges:s9,fetchChallenges:IM,challenge:h9,fetchChallenge:uu,consultationAccessEnquiry:$M,fetchConsultationAccessEnquiry:FM,consultationAccess:du,fetchConsultationAccess:UM,addConsultationAccess:WM,deleteConsultationAccess:qM,updateConsultationAccess:GM,tasks:V4,fetchTasks:ga,addTask:R4,deleteTask:Wi,task:cr,fetchTask:Ir,updateTask:Fr,updateTaskStatus:A5,createTaskNote:k5,updateTaskNote:qi,deleteTaskNote:Gi,bookmarkNotes:Do,createBookmarkNote:$r,updateBookmarkNote:Dt,deleteBookmarkNote:s2,fetchBookmarkNotes:A0,fetchSubjects:aH,subjects:pu,fetchSchedule:rH,schedule:iH,fetchScheduleTutors:Mu,scheduleTutors:oH,fetchAttendances:cH,attendances:lH,fetchExams:sH,exams:yu,createTeamsChat:RH,fetchSemesters:u9,semesters:xu,fetchAcademicYears:hH,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,_.CoursesContextProvider,T.CategoriesContextProvider,P.TagsContextProvider,F.TutorsContextProvider,W.WebinarsContextProvider,U.WebinarContextProvider,Z.H5pContextProvider,R.ConsultationsContextProvider,I.PagesContextProvider,t1.PageContextProvider,h1.ConsultationAccessContextProvider,s.ConsultationAccessEnquiryContextProvider,n1.NotificationsContextProvider,o1.CourseAccessContextProvider,J.TasksContextProvider,A.TaskContextProvider,M1.BookmarkNotesContextProvider,s1.CartContextProvider,z1.QuestionnairesContextProvider,m1.SubjectsContextProvider,_1.ScheduleContextProvider,I1.ScheduleTutorsContextProvider,U1.AttendancesContextProvider,P1.ExamsContextProvider,at.StudentDetailsContextProvider,X1.ChallengesContextProvider].reverse(),G=e1.reduce(function(r1,E,q){return h.default.createElement(E,f1,r1)},h.default.createElement(q1,X,b1));return G};t.EscolaLMSContextProvider=B1}(Dw)),Dw}var il=w0();const X81="modulepreload",J81=function(t){return"/"+t},mE={},a0=function(e,n,a){let r=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");r=Promise.all(n.map(c=>{if(c=J81(c),c in mE)return;mE[c]=!0;const l=c.endsWith(".css"),h=l?'[rel="stylesheet"]':"";if(!!a)for(let v=o.length-1;v>=0;v--){const f=o[v];if(f.href===c&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":X81,l||(u.as="script",u.crossOrigin=""),u.href=c,document.head.appendChild(u),l)return new Promise((v,f)=>{u.addEventListener("load",v),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${c}`)))})}))}return r.then(()=>e()).catch(o=>{const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=o,window.dispatchEvent(c),!c.defaultPrevented)throw o})};function yg(t,e){return yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,r){return a.__proto__=r,a},yg(t,e)}function mn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,yg(t,e)}var _G={exports:{}},t61="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",e61=t61,n61=e61;function TG(){}function OG(){}OG.resetWarningCache=TG;var a61=function(){function t(a,r,o,c,l,h){if(h!==n61){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 n={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 n.PropTypes=n,n};_G.exports=a61();var Pi=_G.exports;const ut=G0(Pi);function Zt(){return Zt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0;u--){var v=a[u];v==="."?Cy(a,u):v===".."?(Cy(a,u),s++):s&&(Cy(a,u),s--)}if(!c)for(;s--;s)a.unshift("..");c&&a[0]!==""&&(!a[0]||!Fv(a[0]))&&a.unshift("");var f=a.join("/");return l&&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 n=zE(t),a=zE(e);return n!==t||a!==e?ff(n,a):Object.keys(Object.assign({},t,e)).every(function(r){return ff(t[r],e[r])})}return!1}var i61="Invariant failed";function Ni(t,e){if(!t)throw new Error(i61)}const le0=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},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 o61(t,e){return t.toLowerCase().indexOf(e.toLowerCase())===0&&"/?#".indexOf(t.charAt(e.length))!==-1}function AG(t,e){return o61(t,e)?t.substr(e.length):t}function kG(t){return t.charAt(t.length-1)==="/"?t.slice(0,-1):t}function c61(t){var e=t||"/",n="",a="",r=e.indexOf("#");r!==-1&&(a=e.substr(r),e=e.substr(0,r));var o=e.indexOf("?");return o!==-1&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:n==="?"?"":n,hash:a==="#"?"":a}}function An(t){var e=t.pathname,n=t.search,a=t.hash,r=e||"/";return n&&n!=="?"&&(r+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(r+=a.charAt(0)==="#"?a:"#"+a),r}function dn(t,e,n,a){var r;typeof t=="string"?(r=c61(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 n&&(r.key=n),a?r.pathname?r.pathname.charAt(0)!=="/"&&(r.pathname=r61(r.pathname,a.pathname)):r.pathname=a.pathname:r.pathname||(r.pathname="/"),r}function l61(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 mS(){var t=null;function e(c){return t=c,function(){t===c&&(t=null)}}function n(c,l,h,s){if(t!=null){var u=typeof t=="function"?t(c,l):t;typeof u=="string"?typeof h=="function"?h(u,s):s(!0):s(u!==!1)}else s(!0)}var a=[];function r(c){var l=!0;function h(){l&&c.apply(void 0,arguments)}return a.push(h),function(){l=!1,a=a.filter(function(s){return s!==h})}}function o(){for(var c=arguments.length,l=new Array(c),h=0;hF?W.splice(F,W.length-F,_):W.push(_),u({action:B,location:_,index:F,entries:W})}})}function H(C,L){var B="REPLACE",_=dn(C,L,v(),V.location);s.confirmTransitionTo(_,B,n,function(T){T&&(V.entries[V.index]=_,u({action:B,location:_}))})}function p(C){var L=VE(V.index+C,0,V.entries.length-1),B="POP",_=V.entries[L];s.confirmTransitionTo(_,B,n,function(T){T?u({action:B,location:_,index:L}):u()})}function m(){p(-1)}function z(){p(1)}function w(C){var L=V.index+C;return L>=0&&L1;){var n=e.pop(),a=n.obj[n.prop];if(p8(a)){for(var r=[],o=0;o=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||o===Qr1.RFC1738&&(s===40||s===41)){l+=c.charAt(h);continue}if(s<128){l=l+Gr[s];continue}if(s<2048){l=l+(Gr[192|s>>6]+Gr[128|s&63]);continue}if(s<55296||s>=57344){l=l+(Gr[224|s>>12]+Gr[128|s>>6&63]+Gr[128|s&63]);continue}h+=1,s=65536+((s&1023)<<10|c.charCodeAt(h)&1023),l+=Gr[240|s>>18]+Gr[128|s>>12&63]+Gr[128|s>>6&63]+Gr[128|s&63]}return l},ai1=function(e){for(var n=[{obj:{o:e},prop:"o"}],a=[],r=0;r"u"&&(M=0)}if(typeof h=="function"?p=h(n,p):p instanceof Date?p=v(p):a==="comma"&&r5(p)&&(p=vf.maybeMap(p,function(U){return U instanceof Date?v(U):U})),p===null){if(o)return l&&!z?l(n,U4.encoder,g,"key",f):n;p=""}if(ui1(p)||vf.isBuffer(p)){if(l){var y=z?n:l(n,U4.encoder,g,"key",f);return[d(y)+"="+d(l(p,U4.encoder,g,"value",f))]}return[d(n)+"="+d(String(p))]}var V=[];if(typeof p>"u")return V;var C;if(a==="comma"&&r5(p))z&&l&&(p=vf.maybeMap(p,l)),C=[{value:p.length>0?p.join(",")||null:void 0}];else if(r5(h))C=h;else{var L=Object.keys(p);C=s?L.sort(s):L}for(var B=r&&r5(p)&&p.length===1?n+"[]":n,S=0;S"u"?U4.allowDots:!!e.allowDots,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:U4.charsetSentinel,delimiter:typeof e.delimiter>"u"?U4.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:U4.encode,encoder:typeof e.encoder=="function"?e.encoder:U4.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:U4.encodeValuesOnly,filter:o,format:a,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:U4.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:U4.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:U4.strictNullHandling}},fi1=function(t,e){var n=t,a=di1(e),r,o;typeof a.filter=="function"?(o=a.filter,n=o("",n)):r5(a.filter)&&(o=a.filter,r=o);var c=[];if(typeof n!="object"||n===null)return"";var l;e&&e.arrayFormat in Ok?l=e.arrayFormat:e&&"indices"in e?l=e.indices?"indices":"repeat":l="indices";var h=Ok[l];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=h==="comma"&&e&&e.commaRoundTrip;r||(r=Object.keys(n)),a.sort&&r.sort(a.sort);for(var u=Qq(),v=0;v0?z+d:""},Xl=Zq,FC=Object.prototype.hasOwnProperty,gi1=Array.isArray,v4={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Xl.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},pi1=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},Jq=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},mi1="utf8=%26%2310003%3B",zi1="utf8=%E2%9C%93",Mi1=function(e,n){var a={__proto__:null},r=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=n.parameterLimit===1/0?void 0:n.parameterLimit,c=r.split(n.delimiter,o),l=-1,h,s=n.charset;if(n.charsetSentinel)for(h=0;h-1&&(z=gi1(z)?[z]:z),FC.call(a,d)?a[d]=Xl.combine(a[d],z):a[d]=z}return a},Hi1=function(t,e,n,a){for(var r=a?e:Jq(e,n),o=t.length-1;o>=0;--o){var c,l=t[o];if(l==="[]"&&n.parseArrays)c=[].concat(r);else{c=n.plainObjects?Object.create(null):{};var h=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,s=parseInt(h,10);!n.parseArrays&&h===""?c={0:r}:!isNaN(s)&&l!==h&&String(s)===h&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(c=[],c[s]=r):h!=="__proto__"&&(c[h]=r)}r=c}return r},wi1=function(e,n,a,r){if(e){var o=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,c=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,h=a.depth>0&&c.exec(o),s=h?o.slice(0,h.index):o,u=[];if(s){if(!a.plainObjects&&FC.call(Object.prototype,s)&&!a.allowPrototypes)return;u.push(s)}for(var v=0;a.depth>0&&(h=l.exec(o))!==null&&v"u"?v4.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?v4.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:v4.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:v4.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:v4.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:v4.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:v4.comma,decoder:typeof e.decoder=="function"?e.decoder:v4.decoder,delimiter:typeof e.delimiter=="string"||Xl.isRegExp(e.delimiter)?e.delimiter:v4.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:v4.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:v4.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:v4.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:v4.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:v4.strictNullHandling}},xi1=function(t,e){var n=yi1(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var a=typeof t=="string"?Mi1(t,n):t,r=n.plainObjects?Object.create(null):{},o=Object.keys(a),c=0;c-1};function k6(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 n=t.shift();return{done:n===void 0,value:n}}};return sn.iterable&&(e[Symbol.iterator]=function(){return e}),e}function o4(t){this.map={},t instanceof o4?t.forEach(function(e,n){this.append(n,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)}o4.prototype.append=function(t,e){t=k6(t),e=r_(e);var n=this.map[t];this.map[t]=n?n+", "+e:e};o4.prototype.delete=function(t){delete this.map[k6(t)]};o4.prototype.get=function(t){return t=k6(t),this.has(t)?this.map[t]:null};o4.prototype.has=function(t){return this.map.hasOwnProperty(k6(t))};o4.prototype.set=function(t,e){this.map[k6(t)]=r_(e)};o4.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)};o4.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),i_(t)};o4.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),i_(t)};o4.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),i_(t)};sn.iterable&&(o4.prototype[Symbol.iterator]=o4.prototype.entries);function Qw(t){if(!t._noBody){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}}function eG(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function Si1(t){var e=new FileReader,n=eG(e);return e.readAsArrayBuffer(t),n}function Ti1(t){var e=new FileReader,n=eG(e),a=/charset=([A-Za-z0-9_-]+)/.exec(t.type),r=a?a[1]:"utf-8";return e.readAsText(t,r),n}function Oi1(t){for(var e=new Uint8Array(t),n=new Array(e.length),a=0;a-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 n=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 o4(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,!n&&t._bodyInit!=null&&(n=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 o4(e.headers)),this.method=ki1(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")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$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 Ei1(t){var e=new FormData;return t.trim().split("&").forEach(function(n){if(n){var a=n.split("="),r=a.shift().replace(/\+/g," "),o=a.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function Pi1(t){var e=new o4,n=t.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(a){return a.indexOf(` +`)===0?a.substr(1,a.length):a}).forEach(function(a){var r=a.split(":"),o=r.shift().trim();if(o){var c=r.join(":").trim();try{e.append(o,c)}catch(l){console.warn("Response "+l.message)}}}),e}nG.call(U8.prototype);function yi(t,e){if(!(this instanceof yi))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 o4(e.headers),this.url=e.url||"",this._initBody(t)}nG.call(yi.prototype);yi.prototype.clone=function(){return new yi(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o4(this.headers),url:this.url})};yi.error=function(){var t=new yi(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var Ni1=[301,302,303,307,308];yi.redirect=function(t,e){if(Ni1.indexOf(e)===-1)throw new RangeError("Invalid status code");return new yi(null,{status:e,headers:{location:t}})};var m8=S4.DOMException;try{new m8}catch{m8=function(e,n){this.message=e,this.name=n;var a=Error(e);this.stack=a.stack},m8.prototype=Object.create(Error.prototype),m8.prototype.constructor=m8}function aG(t,e){return new Promise(function(n,a){var r=new U8(t,e);if(r.signal&&r.signal.aborted)return a(new m8("Aborted","AbortError"));var o=new XMLHttpRequest;function c(){o.abort()}o.onload=function(){var s={statusText:o.statusText,headers:Pi1(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(){n(new yi(u,s))},0)},o.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},o.onabort=function(){setTimeout(function(){a(new m8("Aborted","AbortError"))},0)};function l(s){try{return s===""&&S4.location.href?S4.location.href:s}catch{return s}}if(o.open(r.method,l(r.url),!0),r.credentials==="include"?o.withCredentials=!0:r.credentials==="omit"&&(o.withCredentials=!1),"responseType"in o&&(sn.blob?o.responseType="blob":sn.arrayBuffer&&(o.responseType="arraybuffer")),e&&typeof e.headers=="object"&&!(e.headers instanceof o4||S4.Headers&&e.headers instanceof S4.Headers)){var h=[];Object.getOwnPropertyNames(e.headers).forEach(function(s){h.push(k6(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",c),o.onreadystatechange=function(){o.readyState===4&&r.signal.removeEventListener("abort",c)}),o.send(typeof r._bodyInit>"u"?null:r._bodyInit)})}aG.polyfill=!0;S4.fetch||(S4.fetch=aG,S4.Headers=o4,S4.Request=U8,S4.Response=yi);self.fetch.bind(self);var rG={};function Ek(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function En(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,n){return oG()?df=Reflect.construct:df=function(r,o,c){var l=[null];l.push.apply(l,o);var h=Function.bind.apply(r,l),s=new h;return c&&ks(s,c.prototype),s},df.apply(null,arguments)}function Ri1(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(a){if(a===null||!Ri1(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(a))return e.get(a);e.set(a,r)}function r(){return df(a,arguments,As(this).constructor)}return r.prototype=Object.create(a.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ks(r,a)},dg(t)}function ji1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ii1(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 ji1(t)}function cG(t){var e=oG();return function(){var a=As(t),r;if(e){var o=As(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return Ii1(this,r)}}function ni(t){return Fi1(t)||$i1(t)||Ui1(t)||Wi1()}function Fi1(t){if(Array.isArray(t))return $C(t)}function $i1(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ui1(t,e){if(t){if(typeof t=="string")return $C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $C(t,e)}}function $C(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},r=!1,o=!1,c=!1;if(typeof a=="number"?(process,r=!0,o=!1):Q3(a)==="object"&&a&&(o=a.global||!1,r=a.core||!1,c=a.defaultInstance||!1),o){t.globalMiddlewares.splice(t.globalMiddlewares.length-t.defaultGlobalMiddlewaresLength,0,n);return}if(r){t.coreMiddlewares.splice(t.coreMiddlewares.length-t.defaultCoreMiddlewaresLength,0,n);return}if(c){this.defaultMiddlewares.push(n);return}this.middlewares.push(n)}},{key:"execute",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,a=qi1([].concat(ni(this.middlewares),ni(this.defaultMiddlewares),ni(t.globalMiddlewares),ni(t.coreMiddlewares)));return a(n)}}]),t}();Wa.globalMiddlewares=[];Wa.defaultGlobalMiddlewaresLength=0;Wa.coreMiddlewares=[];Wa.defaultCoreMiddlewaresLength=0;var Gi1=function(){function t(e){ph(this,t),this.cache=new Map,this.timer={},this.extendOptions(e)}return o_(t,[{key:"extendOptions",value:function(n){this.maxCache=n.maxCache||0}},{key:"get",value:function(n){return this.cache.get(JSON.stringify(n))}},{key:"set",value:function(n,a){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var c=ni(this.cache.keys())[0];this.cache.delete(c),this.timer[c]&&clearTimeout(this.timer[c])}var l=JSON.stringify(n);this.cache.set(l,a),o>0&&(this.timer[l]=setTimeout(function(){r.cache.delete(l),delete r.timer[l]},o))}},{key:"delete",value:function(n){var a=JSON.stringify(n);return delete this.timer[a],this.cache.delete(a)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),t}(),c_=function(t){iG(n,t);var e=cG(n);function n(a,r){var o,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return ph(this,n),o=e.call(this,a),o.name="RequestError",o.request=r,o.type=c,o}return n}(dg(Error)),Ml=function(t){iG(n,t);var e=cG(n);function n(a,r,o,c){var l,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return ph(this,n),l=e.call(this,r||a.statusText),l.name="ResponseError",l.data=o,l.response=a,l.request=c,l.type=h,l}return n}(dg(Error));function Ki1(t){return new Promise(function(e,n){var a=new FileReader;a.onload=function(){e(a.result)},a.onerror=n,a.readAsText(t,"GBK")})}function Nk(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(t)}catch{if(e)throw new Ml(n,"JSON.parse fail",t,a,"ParseError")}return t}function Yi1(t,e,n){return new Promise(function(a,r){setTimeout(function(){r(new c_(e||"timeout of ".concat(t,"ms exceeded"),n,"Timeout"))},t)})}function Dk(t){return new Promise(function(e,n){t.cancelToken&&t.cancelToken.promise.then(function(a){n(a)})})}var Zi1=Object.prototype.toString;function lG(){var t;return typeof process<"u"&&Zi1.call(process)==="[object process]"&&(t="NODE"),typeof XMLHttpRequest<"u"&&(t="BROWSER"),t}function UC(t){return Q3(t)==="object"&&Object.prototype.toString.call(t)==="[object Array]"}function sG(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function Qi1(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]),UC(t))for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},a=n.prefix,r=n.suffix;return a&&(e="".concat(a).concat(e)),r&&(e="".concat(e).concat(r)),{url:e,options:n}};function Ji1(t,e){var n=e.method,a=n===void 0?"get":n;return a.toLowerCase()==="get"}function t51(t,e){if(!t)return e();var n=t.req;n=n===void 0?{}:n;var a=n.options,r=a===void 0?{}:a,o=n.url,c=o===void 0?"":o,l=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,z=r.useCache,g=z===void 0?!1:z,H=r.method,p=H===void 0?"get":H,m=r.params,M=r.ttl,w=r.validateCache,x=w===void 0?Ji1: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(c,r)&&g&&V;if(C){var L=l.get({url:c,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(c,r),Yi1(u,v,t.req)]):B=Promise.race([Dk(r),y(c,r)]),h.forEach(function(S){B=B.then(function(T){var P=typeof T.clone=="function"?T.clone():T;return S(P,r)})}),B.then(function(S){if(C&&S.status===200){var T=S.clone();T.useCache=!0,l.set({url:c,params:m,method:p},T,M)}return t.res=S,e()})}function e51(t,e){var n;return e().then(function(){if(t){var a=t.res,r=a===void 0?{}:a,o=t.req,c=o===void 0?{}:o,l=c||{},h=l.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,z=d===void 0?!1:d,g=h.parseResponse,H=g===void 0?!0:g;if(H&&!(!r||!r.clone)){if(n=lG()==="BROWSER"?r.clone():r,n.useCache=r.useCache||!1,f==="gbk")try{return r.blob().then(Ki1).then(function(p){return Nk(p,!1,n,c)})}catch(p){throw new Ml(n,p.message,null,c,"ParseError")}else if(u==="json")return r.text().then(function(p){return Nk(p,z,n,c)});try{return r[u]()}catch{throw new Ml(n,"responseType not support",null,c,"ParseError")}}}}).then(function(a){if(t){t.res;var r=t.req,o=r===void 0?{}:r,c=o||{},l=c.options;l=l===void 0?{}:l;var h=l.getResponse,s=h===void 0?!1:h;if(n){if(n.status>=200&&n.status<300){if(s){t.res={data:a,response:n};return}t.res=a;return}throw new Ml(n,"http error",a,o,"HttpError")}}}).catch(function(a){if(a instanceof c_||a instanceof Ml)throw a;var r=t.req,o=t.res;throw a.request=a.request||r,a.response=a.response||o,a.type=a.type||a.name,a.data=a.data||void 0,a})}function n51(t,e){if(!t)return e();var n=t.req;n=n===void 0?{}:n;var a=n.options,r=a===void 0?{}:a,o=r.method,c=o===void 0?"get":o;if(["post","put","patch","delete"].indexOf(c.toLowerCase())===-1)return e();var l=r.requestType,h=l===void 0?"json":l,s=r.data;if(s){var u=Object.prototype.toString.call(s);u==="[object Object]"||u==="[object Array]"?h==="json"?(r.headers=En({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},r.headers),r.body=JSON.stringify(s)):h==="form"&&(r.headers=En({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},r.headers),r.body=WC(s)):(r.headers=En({Accept:"application/json"},r.headers),r.body=s)}return t.req.options=r,e()}function a51(t,e){var n,a;if(t)if(e)n=e(t);else if(sG(t))n=t.toString();else if(UC(t))a=[],jk(t,function(o){o===null||typeof o>"u"?a.push(o):a.push(Rk(o)?JSON.stringify(o):o)}),n=WC(a);else{a={},jk(t,function(o,c){var l=o;o===null||typeof o>"u"?a[c]=o:Qi1(o)?l=o.toISOString():UC(o)?l=o:Rk(o)&&(l=JSON.stringify(o)),a[c]=l});var r=WC(a);n=r}return n}function r51(t,e){if(!t)return e();var n=t.req;n=n===void 0?{}:n;var a=n.options,r=a===void 0?{}:a,o=r.paramsSerializer,c=r.params,l=t.req;l=l===void 0?{}:l;var h=l.url,s=h===void 0?"":h;r.method=r.method?r.method.toUpperCase():"GET",r.credentials=r.credentials||"same-origin";var u=a51(c,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 uG=[n51,r51,e51],vG=[t51];Wa.globalMiddlewares=uG;Wa.defaultGlobalMiddlewaresLength=uG.length;Wa.coreMiddlewares=vG;Wa.defaultCoreMiddlewaresLength=vG.length;var F7=function(){function t(e){ph(this,t),this.onion=new Wa([]),this.fetchIndex=0,this.mapCache=new Gi1(e),this.initOptions=e,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return o_(t,[{key:"use",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(n,a),this}},{key:"extendOptions",value:function(n){this.initOptions=hG(this.initOptions,n),this.mapCache.extendOptions(n)}},{key:"dealRequestInterceptors",value:function(n){var a=function(c,l){return c.then(function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n.req.url=h.url||n.req.url,n.req.options=h.options||n.req.options,l(n.req.url,n.req.options)})},r=[].concat(ni(t.requestInterceptors),ni(this.instanceRequestInterceptors));return r.reduce(a,Promise.resolve()).then(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n.req.url=o.url||n.req.url,n.req.options=o.options||n.req.options,Promise.resolve()})}},{key:"request",value:function(n,a){var r=this,o=this.onion,c={req:{url:n,options:En(En({},a),{},{url:n})},res:null,cache:this.mapCache,responseInterceptors:[].concat(ni(t.responseInterceptors),ni(this.instanceResponseInterceptors))};if(typeof n!="string")throw new Error("url MUST be a string");return new Promise(function(l,h){r.dealRequestInterceptors(c).then(function(){return o.execute(c)}).then(function(){l(c.res)}).catch(function(s){var u=c.req.options.errorHandler;if(u)try{var v=u(s);l(v)}catch(f){h(f)}else h(s)})})}}],[{key:"requestUse",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof n!="function")throw new TypeError("Interceptor must be function!");a.global?t.requestInterceptors.push(n):this.instanceRequestInterceptors.push(n)}},{key:"responseUse",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof n!="function")throw new TypeError("Interceptor must be function!");a.global?t.responseInterceptors.push(n):this.instanceResponseInterceptors.push(n)}}]),t}();F7.requestInterceptors=[Xi1];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 n=this;t(function(r){n.reason||(n.reason=new $p(r),e(n.reason))})}fg.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};fg.source=function(){var e,n=new fg(function(r){e=r});return{token:n,cancel:e}};function i51(t){return!!(t&&t.__CANCEL__)}var l_=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=new F7(e),a=function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=hG(n.initOptions,l);return n.request(c,h)};a.use=n.use.bind(n),a.fetchIndex=n.fetchIndex,a.interceptors={request:{use:F7.requestUse.bind(n)},response:{use:F7.responseUse.bind(n)}};var r=["get","post","delete","put","patch","head","options","rpc"];return r.forEach(function(o){a[o]=function(c,l){return a(c,En(En({},l),{},{method:o}))}}),a.Cancel=$p,a.CancelToken=fg,a.isCancel=i51,a.extendOptions=n.extendOptions.bind(n),a.middlewares={instance:n.onion.middlewares,defaultInstance:n.onion.defaultMiddlewares,global:Wa.globalMiddlewares,core:Wa.coreMiddlewares},a},o51=function(e){return l_(e)},c51=l_({parseResponse:!1}),l51=l_({});const s51=Object.freeze(Object.defineProperty({__proto__:null,Onion:Wa,RequestError:c_,ResponseError:Ml,default:l51,extend:o51,fetch:c51},Symbol.toStringTag,{value:"Module"})),n0=se(s51);var Pe={};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.currentTimezone=void 0;var h51=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone};Pe.currentTimezone=h51;var qC=b&&b.__assign||function(){return qC=Object.assign||function(t){for(var e,n=1,a=arguments.length;n0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]60*60)return;var J=setTimeout(function(){return P()},i1);return function(){clearTimeout(J)}}},[U]);var t1=(0,a.useCallback)(function(){w(null),V(r.defaultConfig.user)},[]),R=(0,a.useCallback)(function(i1){return h.register.bind(null,g)(i1)},[]);return(0,n.jsx)(t.UserContext.Provider,e({value:{tokenExpireDate:U,token:M,user:y,socialAuthorize:W,changePassword:F,login:L,logout:C,forgot:h.forgot.bind(null,g),reset:h.reset.bind(null,g),fetchProfile:B,updateProfile:S,updateAvatar:T,getRefreshedToken:P,emailVerify:h.emailVerify.bind(null,g),register:R,initAccountDelete:Z,confirmAccountDelete:I}},{children:d}))};t.UserContextProvider=u}(Xw)),Xw}var $k;function P51(){return $k||($k=1,function(t){var e=b&&b.__assign||function(){return e=Object.assign||function(v){for(var f,d=1,z=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)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=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)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0;if(C.attempted===Nc&&n3&&n3[0].id.includes(C.guessTheAnswer)){var Ri=(0,t.getCalcCourseProgress)(Number(k1),Ei,Pi);Uo(Number(k1),(Ri==null?void 0:Ri.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(Nc))return null;if(C.completed.includes(Nc)&&(!cw&&n3&&!(!((za=n3[0])===null||za===void 0)&&za.id.includes(C.questionSet))||n3&&(!((x9=n3[0])===null||x9===void 0)&&x9.id.includes(C.questionSet))&&Di&&((V9=Di==null?void 0:Di.score)===null||V9===void 0?void 0:V9.max)===((C9=Di==null?void 0:Di.score)===null||C9===void 0?void 0:C9.raw))){var Ri=(0,t.getCalcCourseProgress)(Number(k1),Ei,Pi);Uo(Number(k1),(Ri==null?void 0:Ri.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,Nc,lt,C1):null},[C1,Ei,Pi]),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 Ei.value&&Ei.value.reduce(function(E1,lt){return E1.coursesProcProgress[typeof lt.course.id=="number"?lt.course.id:0]=lt.progress.reduce(function(It,A2){return It+A2.status},0)/lt.progress.length,E1.finishedTopics=E1.finishedTopics.concat(lt.progress.filter(function(It){return It.status===V.CourseProgressItemElementStatus.COMPLETE}).map(function(It){return It.topic_id})),E1},k1),k1},[Ei]),rw=(0,h.useCallback)(function(k1){return!!(Wr&&Wr.finishedTopics.includes(k1))},[Wr]),iw=(0,h.useCallback)(function(k1){return Wr&&Wr.coursesProcProgress[k1]?Wr.coursesProcProgress[k1]:0},[Wr]),ow=(0,h.useCallback)(function(k1,E1){if(E1===void 0&&(E1=!0),Fo.value===void 0)return null;var lt=(0,rt.getFlatTopics)(Fo.value.lessons),It=lt==null?void 0:lt.findIndex(function(A2){return A2.id===k1});if(It===void 0||It===-1)return null;if(E1){if(Array.isArray(lt)&<[It+1])return lt[It+1]||null}else if(Array.isArray(lt)&<[It-1])return lt[It-1]||null;return null},[Fo]),Kn=(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,l.jsx)(t.EscolaLMSContext.Provider,e({value:{confirmAccountDelete:S0,initAccountDelete:y2,token:C1,apiUrl:X,courses:S2,course:Pu,program:Fo,fetchCourses:H2,fetchCourse:qH,fetchProgram:XH,fetchSettings:j4,settings:zH,config:f9,fetchConfig:Ec,fetchTags:k4,uniqueTags:ve,fetchCategories:T0,categoryTree:N2,login:ht,logout:KH,forgot:Ht,reset:Ot,user:Vt,register:f2,fetchCart:_2,addToCart:ne,removeFromCart:wt,resetCart:Tt,cart:R0,payWithStripe:YH,fetchProgress:JH,fetchPaginatedProgress:tw,paginatedProgress:HH,fetchCourseProgress:nw,progress:Ei,courseProgressDetails:Pi,sendProgress:Uo,fetchTutors:E4,tutors:Ne,fetchTutor:H9,tutor:CH,fetchOrders:aw,orders:Wu,fetchPayments:w9,payments:yH,pages:C0,fetchPages:de,page:s4,fetchPage:D4,fetchProfile:n2,updateProfile:u2,updateAvatar:_t,topicPing:Mv,topicIsFinished:rw,courseProgress:iw,getNextPrevTopic:ow,h5pProgress:y9,userGroups:pH,fetchUserGroups:WH,userGroup:Tu,fetchUserGroup:$H,registerableGroups:ku,fetchRegisterableGroups:UH,socialAuthorize:Y1,notifications:KM,fetchNotifications:YM,readNotify:fu,readAllNotifications:ZM,certificates:Gu,fetchCertificates:DH,fetchCertificate:M9,generateCertificate:X5,mattermostChannels:VH,fetchMattermostChannels:jH,h5p:Vn,fetchH5P:N4,emailVerify:Rt,getRefreshedToken:At,tokenExpireDate:Xt,fetchConsultations:ae,consultations:l2,consultation:bu,fetchConsultation:J5,fields:LH,fetchFields:Pc,stationaryEvents:_H,fetchStationaryEvents:uv,fetchStationaryEvent:vv,fetchUserConsultations:pv,userConsultations:vH,bookConsultationTerm:mv,fetchWebinars:P4,fetchWebinar:nn,webinars:p0,payWithP24:ZH,getProductInfo:FH,fetchTutorConsultations:z9,approveConsultationTerm:PH,generateConsultationJitsy:gv,rejectConsultationTerm:fv,tutorConsultations:fH,fetchEvents:zv,events:gH,changePassword:Ct,stationaryEvent:nv,webinar:fa,userWebinars:Ni,fetchUserWebinars:EH,generateWebinarJitsy:NH,realizeVoucher:Kn,removeVoucher:t3,products:Q5,product:AH,fetchQuestionnaires:QM,fetchQuestionnaire:XM,fetchQuestionnairesAnswers:JM,fetchQuestionnaireStars:tH,fetchQuestionnaireStarsByModel:nH,sendQuestionnaireAnswer:eH,fetchUserStationaryEvents:dv,userStationaryEvents:iv,fetchOrderInvoice:QH,addMissingProducts:mt,getImagePrefix:N1,getImageSvgPrefix:Z1,changeConsultationTerm:IH,fetchProducts:sv,fetchProduct:hv,courseAccess:L0,fetchCourseAccess:Ur,addCourseAccess:jo,deleteCourseAccess:Io,myCourses:Gn,fetchMyCourses:jM,fetchMyAuthoredCourses:ew,myAuthoredCourses:Fu,challenges:s9,fetchChallenges:IM,challenge:h9,fetchChallenge:uu,consultationAccessEnquiry:$M,fetchConsultationAccessEnquiry:FM,consultationAccess:du,fetchConsultationAccess:UM,addConsultationAccess:WM,deleteConsultationAccess:qM,updateConsultationAccess:GM,tasks:V4,fetchTasks:ga,addTask:R4,deleteTask:U5,task:cr,fetchTask:Ir,updateTask:Fr,updateTaskStatus:Oi,createTaskNote:Ai,updateTaskNote:W5,deleteTaskNote:q5,bookmarkNotes:Ro,createBookmarkNote:$r,updateBookmarkNote:Dt,deleteBookmarkNote:s2,fetchBookmarkNotes:A0,fetchSubjects:aH,subjects:pu,fetchSchedule:rH,schedule:iH,fetchScheduleTutors:Mu,scheduleTutors:oH,fetchAttendances:cH,attendances:lH,fetchExams:sH,exams:yu,createTeamsChat:RH,fetchSemesters:u9,semesters:xu,fetchAcademicYears:hH,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,P.TagsContextProvider,F.TutorsContextProvider,W.WebinarsContextProvider,U.WebinarContextProvider,Z.H5pContextProvider,R.ConsultationsContextProvider,I.PagesContextProvider,t1.PageContextProvider,h1.ConsultationAccessContextProvider,s.ConsultationAccessEnquiryContextProvider,n1.NotificationsContextProvider,o1.CourseAccessContextProvider,J.TasksContextProvider,A.TaskContextProvider,M1.BookmarkNotesContextProvider,s1.CartContextProvider,z1.QuestionnairesContextProvider,m1.SubjectsContextProvider,S1.ScheduleContextProvider,I1.ScheduleTutorsContextProvider,U1.AttendancesContextProvider,P1.ExamsContextProvider,at.StudentDetailsContextProvider,X1.ChallengesContextProvider].reverse(),G=e1.reduce(function(r1,E,q){return h.default.createElement(E,f1,r1)},h.default.createElement(q1,X,b1));return G};t.EscolaLMSContextProvider=B1}(Dw)),Dw}var i6=w0();const tc1="modulepreload",ec1=function(t){return"/"+t},mE={},a0=function(e,n,a){let r=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");r=Promise.all(n.map(c=>{if(c=ec1(c),c in mE)return;mE[c]=!0;const l=c.endsWith(".css"),h=l?'[rel="stylesheet"]':"";if(!!a)for(let v=o.length-1;v>=0;v--){const f=o[v];if(f.href===c&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":tc1,l||(u.as="script",u.crossOrigin=""),u.href=c,document.head.appendChild(u),l)return new Promise((v,f)=>{u.addEventListener("load",v),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${c}`)))})}))}return r.then(()=>e()).catch(o=>{const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=o,window.dispatchEvent(c),!c.defaultPrevented)throw o})};function yg(t,e){return yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,r){return a.__proto__=r,a},yg(t,e)}function mn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,yg(t,e)}var TG={exports:{}},nc1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ac1=nc1,rc1=ac1;function OG(){}function AG(){}AG.resetWarningCache=OG;var ic1=function(){function t(a,r,o,c,l,h){if(h!==rc1){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 n={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:AG,resetWarningCache:OG};return n.PropTypes=n,n};TG.exports=ic1();var E5=TG.exports;const ut=G0(E5);function Zt(){return Zt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0;u--){var v=a[u];v==="."?Cy(a,u):v===".."?(Cy(a,u),s++):s&&(Cy(a,u),s--)}if(!c)for(;s--;s)a.unshift("..");c&&a[0]!==""&&(!a[0]||!Fv(a[0]))&&a.unshift("");var f=a.join("/");return l&&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 n=zE(t),a=zE(e);return n!==t||a!==e?ff(n,a):Object.keys(Object.assign({},t,e)).every(function(r){return ff(t[r],e[r])})}return!1}var cc1="Invariant failed";function P5(t,e){if(!t)throw new Error(cc1)}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 lc1(t,e){return t.toLowerCase().indexOf(e.toLowerCase())===0&&"/?#".indexOf(t.charAt(e.length))!==-1}function kG(t,e){return lc1(t,e)?t.substr(e.length):t}function EG(t){return t.charAt(t.length-1)==="/"?t.slice(0,-1):t}function sc1(t){var e=t||"/",n="",a="",r=e.indexOf("#");r!==-1&&(a=e.substr(r),e=e.substr(0,r));var o=e.indexOf("?");return o!==-1&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:n==="?"?"":n,hash:a==="#"?"":a}}function An(t){var e=t.pathname,n=t.search,a=t.hash,r=e||"/";return n&&n!=="?"&&(r+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(r+=a.charAt(0)==="#"?a:"#"+a),r}function dn(t,e,n,a){var r;typeof t=="string"?(r=sc1(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 n&&(r.key=n),a?r.pathname?r.pathname.charAt(0)!=="/"&&(r.pathname=oc1(r.pathname,a.pathname)):r.pathname=a.pathname:r.pathname||(r.pathname="/"),r}function hc1(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(c){return t=c,function(){t===c&&(t=null)}}function n(c,l,h,s){if(t!=null){var u=typeof t=="function"?t(c,l):t;typeof u=="string"?typeof h=="function"?h(u,s):s(!0):s(u!==!1)}else s(!0)}var a=[];function r(c){var l=!0;function h(){l&&c.apply(void 0,arguments)}return a.push(h),function(){l=!1,a=a.filter(function(s){return s!==h})}}function o(){for(var c=arguments.length,l=new Array(c),h=0;hF?W.splice(F,W.length-F,S):W.push(S),u({action:B,location:S,index:F,entries:W})}})}function H(C,L){var B="REPLACE",S=dn(C,L,v(),V.location);s.confirmTransitionTo(S,B,n,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,n,function(T){T?u({action:B,location:S,index:L}):u()})}function m(){p(-1)}function M(){p(1)}function w(C){var L=V.index+C;return L>=0&&L=0)&&(n[r]=t[r]);return n}var CS=VS,A61={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},k61={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},E61={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},UG={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bS={};bS[CS.ForwardRef]=E61;bS[CS.Memo]=UG;function CE(t){return CS.isMemo(t)?UG:bS[t.$$typeof]||A61}var P61=Object.defineProperty,N61=Object.getOwnPropertyNames,bE=Object.getOwnPropertySymbols,D61=Object.getOwnPropertyDescriptor,R61=Object.getPrototypeOf,LE=Object.prototype;function WG(t,e,n){if(typeof e!="string"){if(LE){var a=R61(e);a&&a!==LE&&WG(t,a,n)}var r=N61(e);bE&&(r=r.concat(bE(e)));for(var o=CE(t),c=CE(e),l=0;l"u"&&(ol=TS);function ic1(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var oc1=ol(function(t,e){var n=t.innerRef,a=t.navigate,r=t.onClick,o=Di(t,["innerRef","navigate","onClick"]),c=o.target,l=Zt({},o,{onClick:function(s){try{r&&r(s)}catch(u){throw s.preventDefault(),u}!s.defaultPrevented&&s.button===0&&(!c||c==="_self")&&!ic1(s)&&(s.preventDefault(),a())}});return TS!==ol?l.ref=e||n:l.ref=n,W1.createElement("a",l)}),pf=ol(function(t,e){var n=t.component,a=n===void 0?oc1:n,r=t.replace,o=t.to,c=t.innerRef,l=Di(t,["component","replace","to","innerRef"]);return W1.createElement(yi.Consumer,null,function(h){h||Ni(!1);var s=h.history,u=rb(ab(o,h.location),h.location),v=u?s.createHref(u):"",f=Zt({},l,{href:v,navigate:function(){var M=ab(o,h.location),g=An(h.location)===An(rb(M)),H=r||g?s.replace:s.push;H(M)}});return TS!==ol?f.ref=e||c:f.innerRef=c,W1.createElement(a,f)})}),YG=function(e){return e},Vg=W1.forwardRef;typeof Vg>"u"&&(Vg=YG);function cc1(){for(var t=arguments.length,e=new Array(t),n=0;n{const{login:n}=c0,{user:a}=S.useContext(il.EscolaLMSContext),r=e.location&&e.location.pathname||e.path;return $.jsx(zr,{...e,render:o=>a.value&&a.value.id?$.jsx(t,{...o}):$.jsx(LS,{to:{pathname:n,search:`?referrer=${r}`,state:{referrer:r}}})})},Ha=({component:t,...e})=>{var l,h;const{login:n}=c0,{user:a,fetchConfig:r,config:o}=S.useContext(il.EscolaLMSContext);W1.useEffect(()=>{r()},[r]);const c=((h=(l=o==null?void 0:o.value)==null?void 0:l.escolalms_courses)==null?void 0:h.platform_visibility)==="public"||!1;return $.jsx(zr,{...e,render:s=>c||a.value&&a.value.id?$.jsx(t,{...s}):$.jsx(LS,{to:{pathname:n}})})},lc1=({component:t,...e})=>{var h,s,u,v;const{login:n}=c0,{user:a,fetchConfig:r,config:o}=S.useContext(il.EscolaLMSContext);W1.useEffect(()=>{r()},[r]);const c=((s=(h=o==null?void 0:o.value)==null?void 0:h.escolalms_courses)==null?void 0:s.platform_visibility)==="public"||!1,l=((v=(u=o==null?void 0:o.value)==null?void 0:u.escolalms_courses)==null?void 0:v.course_visibility)==="show_all"||!1;return $.jsx(zr,{...e,render:f=>c&&!(a.value&&a.value.id)||a.value&&a.value.id&&l?$.jsx(t,{...f}):$.jsx(LS,{to:{pathname:n}})})},sc1=()=>"HashRouter";function hc1(){const{pathname:t}=KG();return S.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[t]),null}var uc1=function(e,n,a,r){var o=a?a.call(r,e,n):void 0;if(o!==void 0)return!!o;if(e===n)return!0;if(typeof e!="object"||!e||typeof n!="object"||!n)return!1;var c=Object.keys(e),l=Object.keys(n);if(c.length!==l.length)return!1;for(var h=Object.prototype.hasOwnProperty.bind(n),s=0;s_1)&&(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:n1=n1.replace(s1,"-webkit-"+s1)+";"+n1;break;case 207:case 102:n1=n1.replace(s1,"-webkit-"+(102o1.charCodeAt(0)&&(o1=o1.trim()),i1=o1,o1=[i1],01?e-1:0),a=1;a0?" Args: "+n.join(", "):""))}var Hc1=function(){function t(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var e=t.prototype;return e.indexOfGroup=function(n){for(var a=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,c=o;n>=c;)(c<<=1)<0&&Vr(16,""+n);this.groupSizes=new Uint32Array(c),this.groupSizes.set(r),this.length=c;for(var l=o;l=this.length||this.groupSizes[n]===0)return a;for(var r=this.groupSizes[n],o=this.indexOfGroup(n),c=o+r,l=o;l=U7&&(U7=e+1),mf.set(t,e),bg.set(e,t)},xc1="style["+co+'][data-styled-version="5.3.11"]',Vc1=new RegExp("^"+co+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Cc1=function(t,e,n){for(var a,r=n.split(","),o=0,c=r.length;o=0;s--){var u=h[s];if(u&&u.nodeType===1&&u.hasAttribute(co))return u}}(n),o=r!==void 0?r.nextSibling:null;a.setAttribute(co,"active"),a.setAttribute("data-styled-version","5.3.11");var c=cb();return c&&a.setAttribute("nonce",c),n.insertBefore(a,o),a},Lc1=function(){function t(n){var a=this.element=ZG(n);a.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,c=0,l=o.length;c=0){var r=document.createTextNode(a),o=this.nodes[n];return this.element.insertBefore(r,o||null),this.length++,!0}return!1},e.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},e.getRule=function(n){return n0&&(v+=f+",")}),o+=""+s+u+'{content:"'+v+`"}/*!sc*/ -`}}}return o}(this)},t}(),Tc1=/(a)(d)/gi,DE=function(t){return String.fromCharCode(t+(t>25?39:97))};function lb(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=DE(e%52)+n;return(DE(e%52)+n).replace(Tc1,"$1-$2")}var Hc=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},QG=function(t){return Hc(5381,t)};function XG(t){for(var e=0;e>>0);if(!n.hasNameForId(r,l)){var h=a(c,"."+l,void 0,r);n.insertRules(r,l,h)}o.push(l),this.staticRulesId=l}else{for(var s=this.rules.length,u=Hc(this.baseHash,a.hash),v="",f=0;f>>0);if(!n.hasNameForId(r,H)){var p=a(v,"."+H,void 0,r);n.insertRules(r,H,p)}o.push(H)}}return o.join(" ")},t}(),kc1=/^\s*\/\/.*$/gm,Ec1=[":","[",".","#"];function JG(t){var e,n,a,r,o=t===void 0?J3:t,c=o.options,l=c===void 0?J3:c,h=o.plugins,s=h===void 0?Cg:h,u=new dc1(l),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&&Ec1.indexOf(p[n.length])!==-1||p.match(r)?g:"."+e};function M(g,H,p,m){m===void 0&&(m="&");var z=g.replace(kc1,""),w=H&&p?p+" "+H+" { "+z+" }":z;return e=m,n=H,a=new RegExp("\\"+n+"\\b","g"),r=new RegExp("(\\"+n+"\\b){2,}"),u(p||!H?"":H,w)}return u.use([].concat(s,[function(g,H,p){g===2&&p.length&&p[0].lastIndexOf(n)>0&&(p[0]=p[0].replace(a,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),Hc(g,H.name)},5381).toString():"",M}var _m=W1.createContext(),Pc1=_m.Consumer,AS=W1.createContext(),tK=(AS.Consumer,new ll),sb=JG();function kS(){return S.useContext(_m)||tK}function eK(){return S.useContext(AS)||sb}function nK(t){var e=S.useState(t.stylisPlugins),n=e[0],a=e[1],r=kS(),o=S.useMemo(function(){var l=r;return t.sheet?l=t.sheet:t.target&&(l=l.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(l=l.reconstructWithOptions({useCSSOMInjection:!1})),l},[t.disableCSSOMInjection,t.sheet,t.target]),c=S.useMemo(function(){return JG({options:{prefix:!t.disableVendorPrefixes},plugins:n})},[t.disableVendorPrefixes,n]);return S.useEffect(function(){vc1(n,t.stylisPlugins)||a(t.stylisPlugins)},[t.stylisPlugins]),W1.createElement(_m.Provider,{value:o},W1.createElement(AS.Provider,{value:c},t.children))}var aK=function(){function t(e,n){var a=this;this.inject=function(r,o){o===void 0&&(o=sb);var c=a.name+o.hash;r.hasNameForId(a.id,c)||r.insertRules(a.id,c,o(a.rules,c,"@keyframes"))},this.toString=function(){return Vr(12,String(a.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=n}return t.prototype.getName=function(e){return e===void 0&&(e=sb),this.name+e.hash},t}(),Nc1=/([A-Z])/,Dc1=/([A-Z])/g,Rc1=/^ms-/,jc1=function(t){return"-"+t.toLowerCase()};function RE(t){return Nc1.test(t)?t.replace(Dc1,jc1).replace(Rc1,"-ms-"):t}var jE=function(t){return t==null||t===!1||t===""};function Y8(t,e,n,a){if(Array.isArray(t)){for(var r,o=[],c=0,l=t.length;c1?e-1:0),a=1;a?@[\\\]^`{|}~-]+/g,Fc1=/(^-|-$)/g;function _y(t){return t.replace(Ic1,"-").replace(Fc1,"")}var PS=function(t){return lb(QG(t)>>>0)};function Uv(t){return typeof t=="string"&&!0}var hb=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},$c1=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function Uc1(t,e,n){var a=t[n];hb(e)&&hb(a)?rK(a,e):t[n]=e}function rK(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a=0||(B[C]=y[C]);return B}(e,["componentId"]),x=z&&z+"-"+(Uv(m)?m:_y(ob(m)));return iK(m,aa({},w,{attrs:f,componentId:x}),n)},Object.defineProperty(M,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(m){this._foldedDefaultProps=a?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 zn=function(t){return function e(n,a,r){if(r===void 0&&(r=J3),!VS.isValidElementType(a))return Vr(1,String(a));var o=function(){return n(a,r,Tm.apply(void 0,arguments))};return o.withConfig=function(c){return e(n,a,aa({},r,{},c))},o.attrs=function(c){return e(n,a,aa({},r,{attrs:Array.prototype.concat(r.attrs,c).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){zn[t]=zn(t)});var Gc1=function(){function t(n,a){this.rules=n,this.componentId=a,this.isStatic=XG(n),ll.registerId(this.componentId+1)}var e=t.prototype;return e.createStyles=function(n,a,r,o){var c=o(Y8(this.rules,a,r,o).join(""),""),l=this.componentId+n;r.insertRules(l,l,c)},e.removeStyles=function(n,a){a.clearRules(this.componentId+n)},e.renderStyles=function(n,a,r,o){n>2&&ll.registerId(this.componentId+n),this.removeStyles(n,r),this.createStyles(n,a,r,o)},t}();function Om(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a1?e-1:0),a=1;a"+a+""},this.getStyleTags=function(){return n.sealed?Vr(2):n._emitSheetCSS()},this.getStyleElement=function(){var a;if(n.sealed)return Vr(2);var r=((a={})[co]="",a["data-styled-version"]="5.3.11",a.dangerouslySetInnerHTML={__html:n.instance.toString()},a),o=cb();return o&&(r.nonce=o),[W1.createElement("style",aa({},r,{key:"sc-0-0"}))]},this.seal=function(){n.sealed=!0},this.instance=new ll({isServer:!0}),this.sealed=!1}var e=t.prototype;return e.collectStyles=function(n){return this.sealed?Vr(2):W1.createElement(nK,{sheet:this.instance},n)},e.interleaveWithNodeStream=function(n){return Vr(3)},t}(),Zc1=function(t){var e=W1.forwardRef(function(n,a){var r=S.useContext(lo),o=t.defaultProps,c=ES(n,r,o);return W1.createElement(t,aa({},n,{theme:c,ref:a}))});return Lh(e,t),e.displayName="WithTheme("+ob(t)+")",e},NS=function(){return S.useContext(lo)},Qc1={StyleSheet:ll,masterSheet:tK};const Xc1=Object.freeze(Object.defineProperty({__proto__:null,ServerStyleSheet:Yc1,StyleSheetConsumer:Pc1,StyleSheetContext:_m,StyleSheetManager:nK,ThemeConsumer:Wc1,ThemeContext:lo,ThemeProvider:qc1,__PRIVATE__:Qc1,createGlobalStyle:Om,css:Tm,default:zn,isStyledComponent:Sm,keyframes:Kc1,useTheme:NS,version:mc1,withTheme:Zc1},Symbol.toStringTag,{value:"Module"}));function Jc1(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var oK=S,tl1=Jc1(oK);function FE(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function el1(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var nl1=!!(typeof window<"u"&&window.document&&window.document.createElement);function al1(t,e,n){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 n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function a(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 c=[],l;function h(){l=t(c.map(function(u){return u.props})),s.canUseDOM?e(l):n&&(l=n(l))}var s=function(u){el1(v,u);function v(){return u.apply(this,arguments)||this}v.peek=function(){return l},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=l;return l=void 0,c=[],M};var f=v.prototype;return f.UNSAFE_componentWillMount=function(){c.push(this),h()},f.componentDidUpdate=function(){h()},f.componentWillUnmount=function(){var M=c.indexOf(this);c.splice(M,1),h()},f.render=function(){return tl1.createElement(o,this.props)},v}(oK.PureComponent);return FE(s,"displayName","SideEffect("+a(o)+")"),FE(s,"canUseDOM",nl1),s}}var rl1=al1;const il1=G0(rl1);var ol1=typeof Element<"u",cl1=typeof Map=="function",ll1=typeof Set=="function",sl1=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 n,a,r;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(a=n;a--!==0;)if(!zf(t[a],e[a]))return!1;return!0}var o;if(cl1&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o=t.entries();!(a=o.next()).done;)if(!e.has(a.value[0]))return!1;for(o=t.entries();!(a=o.next()).done;)if(!zf(a.value[1],e.get(a.value[0])))return!1;return!0}if(ll1&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o=t.entries();!(a=o.next()).done;)if(!e.has(a.value[0]))return!1;return!0}if(sl1&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(a=n;a--!==0;)if(t[a]!==e[a])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),n=r.length,n!==Object.keys(e).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[a]))return!1;if(ol1&&t instanceof Element)return!1;for(a=n;a--!==0;)if(!((r[a]==="_owner"||r[a]==="__v"||r[a]==="__o")&&t.$$typeof)&&!zf(t[r[a]],e[r[a]]))return!1;return!0}return t!==t&&e!==e}var hl1=function(e,n){try{return zf(e,n)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}};const ul1=G0(hl1);/* + */var w4=typeof Symbol=="function"&&Symbol.for,w_=w4?Symbol.for("react.element"):60103,y_=w4?Symbol.for("react.portal"):60106,zm=w4?Symbol.for("react.fragment"):60107,Mm=w4?Symbol.for("react.strict_mode"):60108,Hm=w4?Symbol.for("react.profiler"):60114,wm=w4?Symbol.for("react.provider"):60109,ym=w4?Symbol.for("react.context"):60110,x_=w4?Symbol.for("react.async_mode"):60111,xm=w4?Symbol.for("react.concurrent_mode"):60111,Vm=w4?Symbol.for("react.forward_ref"):60112,Cm=w4?Symbol.for("react.suspense"):60113,Sc1=w4?Symbol.for("react.suspense_list"):60120,bm=w4?Symbol.for("react.memo"):60115,Lm=w4?Symbol.for("react.lazy"):60116,Tc1=w4?Symbol.for("react.block"):60121,Oc1=w4?Symbol.for("react.fundamental"):60117,Ac1=w4?Symbol.for("react.responder"):60118,kc1=w4?Symbol.for("react.scope"):60119;function ua(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case w_:switch(t=t.type,t){case x_:case xm:case zm:case Hm:case Mm:case Cm:return t;default:switch(t=t&&t.$$typeof,t){case ym:case Vm:case Lm:case bm:case wm:return t;default:return e}}case y_:return e}}}function UG(t){return ua(t)===xm}y0.AsyncMode=x_;y0.ConcurrentMode=xm;y0.ContextConsumer=ym;y0.ContextProvider=wm;y0.Element=w_;y0.ForwardRef=Vm;y0.Fragment=zm;y0.Lazy=Lm;y0.Memo=bm;y0.Portal=y_;y0.Profiler=Hm;y0.StrictMode=Mm;y0.Suspense=Cm;y0.isAsyncMode=function(t){return UG(t)||ua(t)===x_};y0.isConcurrentMode=UG;y0.isContextConsumer=function(t){return ua(t)===ym};y0.isContextProvider=function(t){return ua(t)===wm};y0.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===w_};y0.isForwardRef=function(t){return ua(t)===Vm};y0.isFragment=function(t){return ua(t)===zm};y0.isLazy=function(t){return ua(t)===Lm};y0.isMemo=function(t){return ua(t)===bm};y0.isPortal=function(t){return ua(t)===y_};y0.isProfiler=function(t){return ua(t)===Hm};y0.isStrictMode=function(t){return ua(t)===Mm};y0.isSuspense=function(t){return ua(t)===Cm};y0.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===zm||t===xm||t===Hm||t===Mm||t===Cm||t===Sc1||typeof t=="object"&&t!==null&&(t.$$typeof===Lm||t.$$typeof===bm||t.$$typeof===wm||t.$$typeof===ym||t.$$typeof===Vm||t.$$typeof===Oc1||t.$$typeof===Ac1||t.$$typeof===kc1||t.$$typeof===Tc1)};y0.typeOf=ua;$G.exports=y0;var V_=$G.exports;function N5(t,e){if(t==null)return{};var n={},a=Object.keys(t),r,o;for(o=0;o=0)&&(n[r]=t[r]);return n}var C_=V_,Ec1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Pc1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Nc1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},WG={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},b_={};b_[C_.ForwardRef]=Nc1;b_[C_.Memo]=WG;function CE(t){return C_.isMemo(t)?WG:b_[t.$$typeof]||Ec1}var Dc1=Object.defineProperty,Rc1=Object.getOwnPropertyNames,bE=Object.getOwnPropertySymbols,jc1=Object.getOwnPropertyDescriptor,Ic1=Object.getPrototypeOf,LE=Object.prototype;function qG(t,e,n){if(typeof e!="string"){if(LE){var a=Ic1(e);a&&a!==LE&&qG(t,a,n)}var r=Rc1(e);bE&&(r=r.concat(bE(e)));for(var o=CE(t),c=CE(e),l=0;l"u"&&(o6=T_);function cl1(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var ll1=o6(function(t,e){var n=t.innerRef,a=t.navigate,r=t.onClick,o=N5(t,["innerRef","navigate","onClick"]),c=o.target,l=Zt({},o,{onClick:function(s){try{r&&r(s)}catch(u){throw s.preventDefault(),u}!s.defaultPrevented&&s.button===0&&(!c||c==="_self")&&!cl1(s)&&(s.preventDefault(),a())}});return T_!==o6?l.ref=e||n:l.ref=n,W1.createElement("a",l)}),pf=o6(function(t,e){var n=t.component,a=n===void 0?ll1:n,r=t.replace,o=t.to,c=t.innerRef,l=N5(t,["component","replace","to","innerRef"]);return W1.createElement(w5.Consumer,null,function(h){h||P5(!1);var s=h.history,u=rb(ab(o,h.location),h.location),v=u?s.createHref(u):"",f=Zt({},l,{href:v,navigate:function(){var z=ab(o,h.location),g=An(h.location)===An(rb(z)),H=r||g?s.replace:s.push;H(z)}});return T_!==o6?f.ref=e||c:f.innerRef=c,W1.createElement(a,f)})}),ZG=function(e){return e},Vg=W1.forwardRef;typeof Vg>"u"&&(Vg=ZG);function sl1(){for(var t=arguments.length,e=new Array(t),n=0;n{const{login:n}=c0,{user:a}=_.useContext(i6.EscolaLMSContext),r=e.location&&e.location.pathname||e.path;return $.jsx(zr,{...e,render:o=>a.value&&a.value.id?$.jsx(t,{...o}):$.jsx(L_,{to:{pathname:n,search:`?referrer=${r}`,state:{referrer:r}}})})},Ha=({component:t,...e})=>{var l,h;const{login:n}=c0,{user:a,fetchConfig:r,config:o}=_.useContext(i6.EscolaLMSContext);W1.useEffect(()=>{r()},[r]);const c=((h=(l=o==null?void 0:o.value)==null?void 0:l.escolalms_courses)==null?void 0:h.platform_visibility)==="public"||!1;return $.jsx(zr,{...e,render:s=>c||a.value&&a.value.id?$.jsx(t,{...s}):$.jsx(L_,{to:{pathname:n}})})},hl1=({component:t,...e})=>{var h,s,u,v;const{login:n}=c0,{user:a,fetchConfig:r,config:o}=_.useContext(i6.EscolaLMSContext);W1.useEffect(()=>{r()},[r]);const c=((s=(h=o==null?void 0:o.value)==null?void 0:h.escolalms_courses)==null?void 0:s.platform_visibility)==="public"||!1,l=((v=(u=o==null?void 0:o.value)==null?void 0:u.escolalms_courses)==null?void 0:v.course_visibility)==="show_all"||!1;return $.jsx(zr,{...e,render:f=>c&&!(a.value&&a.value.id)||a.value&&a.value.id&&l?$.jsx(t,{...f}):$.jsx(L_,{to:{pathname:n}})})},ul1=()=>"HashRouter";function vl1(){const{pathname:t}=YG();return _.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[t]),null}var dl1=function(e,n,a,r){var o=a?a.call(r,e,n):void 0;if(o!==void 0)return!!o;if(e===n)return!0;if(typeof e!="object"||!e||typeof n!="object"||!n)return!1;var c=Object.keys(e),l=Object.keys(n);if(c.length!==l.length)return!1;for(var h=Object.prototype.hasOwnProperty.bind(n),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:n1=n1.replace(s1,"-webkit-"+s1)+";"+n1;break;case 207:case 102:n1=n1.replace(s1,"-webkit-"+(102o1.charCodeAt(0)&&(o1=o1.trim()),i1=o1,o1=[i1],01?e-1:0),a=1;a0?" Args: "+n.join(", "):""))}var yl1=function(){function t(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var e=t.prototype;return e.indexOfGroup=function(n){for(var a=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,c=o;n>=c;)(c<<=1)<0&&Vr(16,""+n);this.groupSizes=new Uint32Array(c),this.groupSizes.set(r),this.length=c;for(var l=o;l=this.length||this.groupSizes[n]===0)return a;for(var r=this.groupSizes[n],o=this.indexOfGroup(n),c=o+r,l=o;l=U7&&(U7=e+1),mf.set(t,e),bg.set(e,t)},Cl1="style["+lo+'][data-styled-version="5.3.11"]',bl1=new RegExp("^"+lo+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Ll1=function(t,e,n){for(var a,r=n.split(","),o=0,c=r.length;o=0;s--){var u=h[s];if(u&&u.nodeType===1&&u.hasAttribute(lo))return u}}(n),o=r!==void 0?r.nextSibling:null;a.setAttribute(lo,"active"),a.setAttribute("data-styled-version","5.3.11");var c=cb();return c&&a.setAttribute("nonce",c),n.insertBefore(a,o),a},_l1=function(){function t(n){var a=this.element=QG(n);a.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,c=0,l=o.length;c=0){var r=document.createTextNode(a),o=this.nodes[n];return this.element.insertBefore(r,o||null),this.length++,!0}return!1},e.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},e.getRule=function(n){return n0&&(v+=f+",")}),o+=""+s+u+'{content:"'+v+`"}/*!sc*/ +`}}}return o}(this)},t}(),Al1=/(a)(d)/gi,DE=function(t){return String.fromCharCode(t+(t>25?39:97))};function lb(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=DE(e%52)+n;return(DE(e%52)+n).replace(Al1,"$1-$2")}var Hl=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},XG=function(t){return Hl(5381,t)};function JG(t){for(var e=0;e>>0);if(!n.hasNameForId(r,l)){var h=a(c,"."+l,void 0,r);n.insertRules(r,l,h)}o.push(l),this.staticRulesId=l}else{for(var s=this.rules.length,u=Hl(this.baseHash,a.hash),v="",f=0;f>>0);if(!n.hasNameForId(r,H)){var p=a(v,"."+H,void 0,r);n.insertRules(r,H,p)}o.push(H)}}return o.join(" ")},t}(),Pl1=/^\s*\/\/.*$/gm,Nl1=[":","[",".","#"];function tK(t){var e,n,a,r,o=t===void 0?to:t,c=o.options,l=c===void 0?to:c,h=o.plugins,s=h===void 0?Cg:h,u=new gl1(l),v=[],f=function(g){function H(p){if(p)try{g(p+"}")}catch{}}return function(p,m,M,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(M[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&&Nl1.indexOf(p[n.length])!==-1||p.match(r)?g:"."+e};function z(g,H,p,m){m===void 0&&(m="&");var M=g.replace(Pl1,""),w=H&&p?p+" "+H+" { "+M+" }":M;return e=m,n=H,a=new RegExp("\\"+n+"\\b","g"),r=new RegExp("(\\"+n+"\\b){2,}"),u(p||!H?"":H,w)}return u.use([].concat(s,[function(g,H,p){g===2&&p.length&&p[0].lastIndexOf(n)>0&&(p[0]=p[0].replace(a,d))},f,function(g){if(g===-2){var H=v;return v=[],H}}])),z.hash=s.length?s.reduce(function(g,H){return H.name||Vr(15),Hl(g,H.name)},5381).toString():"",z}var Sm=W1.createContext(),Dl1=Sm.Consumer,A_=W1.createContext(),eK=(A_.Consumer,new l6),sb=tK();function k_(){return _.useContext(Sm)||eK}function nK(){return _.useContext(A_)||sb}function aK(t){var e=_.useState(t.stylisPlugins),n=e[0],a=e[1],r=k_(),o=_.useMemo(function(){var l=r;return t.sheet?l=t.sheet:t.target&&(l=l.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(l=l.reconstructWithOptions({useCSSOMInjection:!1})),l},[t.disableCSSOMInjection,t.sheet,t.target]),c=_.useMemo(function(){return tK({options:{prefix:!t.disableVendorPrefixes},plugins:n})},[t.disableVendorPrefixes,n]);return _.useEffect(function(){fl1(n,t.stylisPlugins)||a(t.stylisPlugins)},[t.stylisPlugins]),W1.createElement(Sm.Provider,{value:o},W1.createElement(A_.Provider,{value:c},t.children))}var rK=function(){function t(e,n){var a=this;this.inject=function(r,o){o===void 0&&(o=sb);var c=a.name+o.hash;r.hasNameForId(a.id,c)||r.insertRules(a.id,c,o(a.rules,c,"@keyframes"))},this.toString=function(){return Vr(12,String(a.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=n}return t.prototype.getName=function(e){return e===void 0&&(e=sb),this.name+e.hash},t}(),Rl1=/([A-Z])/,jl1=/([A-Z])/g,Il1=/^ms-/,Fl1=function(t){return"-"+t.toLowerCase()};function RE(t){return Rl1.test(t)?t.replace(jl1,Fl1).replace(Il1,"-ms-"):t}var jE=function(t){return t==null||t===!1||t===""};function Z8(t,e,n,a){if(Array.isArray(t)){for(var r,o=[],c=0,l=t.length;c1?e-1:0),a=1;a?@[\\\]^`{|}~-]+/g,Ul1=/(^-|-$)/g;function Sy(t){return t.replace($l1,"-").replace(Ul1,"")}var P_=function(t){return lb(XG(t)>>>0)};function Uv(t){return typeof t=="string"&&!0}var hb=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},Wl1=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function ql1(t,e,n){var a=t[n];hb(e)&&hb(a)?iK(a,e):t[n]=e}function iK(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a=0||(B[C]=y[C]);return B}(e,["componentId"]),x=M&&M+"-"+(Uv(m)?m:Sy(ob(m)));return oK(m,aa({},w,{attrs:f,componentId:x}),n)},Object.defineProperty(z,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(m){this._foldedDefaultProps=a?iK({},t.defaultProps,m):m}}),Object.defineProperty(z,"toString",{value:function(){return"."+z.styledComponentId}}),r&&Lh(z,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),z}var zn=function(t){return function e(n,a,r){if(r===void 0&&(r=to),!V_.isValidElementType(a))return Vr(1,String(a));var o=function(){return n(a,r,Tm.apply(void 0,arguments))};return o.withConfig=function(c){return e(n,a,aa({},r,{},c))},o.attrs=function(c){return e(n,a,aa({},r,{attrs:Array.prototype.concat(r.attrs,c).filter(Boolean)}))},o}(oK,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){zn[t]=zn(t)});var Yl1=function(){function t(n,a){this.rules=n,this.componentId=a,this.isStatic=JG(n),l6.registerId(this.componentId+1)}var e=t.prototype;return e.createStyles=function(n,a,r,o){var c=o(Z8(this.rules,a,r,o).join(""),""),l=this.componentId+n;r.insertRules(l,l,c)},e.removeStyles=function(n,a){a.clearRules(this.componentId+n)},e.renderStyles=function(n,a,r,o){n>2&&l6.registerId(this.componentId+n),this.removeStyles(n,r),this.createStyles(n,a,r,o)},t}();function Om(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a1?e-1:0),a=1;a"+a+""},this.getStyleTags=function(){return n.sealed?Vr(2):n._emitSheetCSS()},this.getStyleElement=function(){var a;if(n.sealed)return Vr(2);var r=((a={})[lo]="",a["data-styled-version"]="5.3.11",a.dangerouslySetInnerHTML={__html:n.instance.toString()},a),o=cb();return o&&(r.nonce=o),[W1.createElement("style",aa({},r,{key:"sc-0-0"}))]},this.seal=function(){n.sealed=!0},this.instance=new l6({isServer:!0}),this.sealed=!1}var e=t.prototype;return e.collectStyles=function(n){return this.sealed?Vr(2):W1.createElement(aK,{sheet:this.instance},n)},e.interleaveWithNodeStream=function(n){return Vr(3)},t}(),Xl1=function(t){var e=W1.forwardRef(function(n,a){var r=_.useContext(so),o=t.defaultProps,c=E_(n,r,o);return W1.createElement(t,aa({},n,{theme:c,ref:a}))});return Lh(e,t),e.displayName="WithTheme("+ob(t)+")",e},N_=function(){return _.useContext(so)},Jl1={StyleSheet:l6,masterSheet:eK};const t61=Object.freeze(Object.defineProperty({__proto__:null,ServerStyleSheet:Ql1,StyleSheetConsumer:Dl1,StyleSheetContext:Sm,StyleSheetManager:aK,ThemeConsumer:Gl1,ThemeContext:so,ThemeProvider:Kl1,__PRIVATE__:Jl1,createGlobalStyle:Om,css:Tm,default:zn,isStyledComponent:_m,keyframes:Zl1,useTheme:N_,version:Ml1,withTheme:Xl1},Symbol.toStringTag,{value:"Module"}));function e61(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var cK=_,n61=e61(cK);function FE(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a61(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r61=!!(typeof window<"u"&&window.document&&window.document.createElement);function i61(t,e,n){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 n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function a(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 c=[],l;function h(){l=t(c.map(function(u){return u.props})),s.canUseDOM?e(l):n&&(l=n(l))}var s=function(u){a61(v,u);function v(){return u.apply(this,arguments)||this}v.peek=function(){return l},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 z=l;return l=void 0,c=[],z};var f=v.prototype;return f.UNSAFE_componentWillMount=function(){c.push(this),h()},f.componentDidUpdate=function(){h()},f.componentWillUnmount=function(){var z=c.indexOf(this);c.splice(z,1),h()},f.render=function(){return n61.createElement(o,this.props)},v}(cK.PureComponent);return FE(s,"displayName","SideEffect("+a(o)+")"),FE(s,"canUseDOM",r61),s}}var o61=i61;const c61=G0(o61);var l61=typeof Element<"u",s61=typeof Map=="function",h61=typeof Set=="function",u61=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 n,a,r;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(a=n;a--!==0;)if(!zf(t[a],e[a]))return!1;return!0}var o;if(s61&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o=t.entries();!(a=o.next()).done;)if(!e.has(a.value[0]))return!1;for(o=t.entries();!(a=o.next()).done;)if(!zf(a.value[1],e.get(a.value[0])))return!1;return!0}if(h61&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o=t.entries();!(a=o.next()).done;)if(!e.has(a.value[0]))return!1;return!0}if(u61&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(a=n;a--!==0;)if(t[a]!==e[a])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),n=r.length,n!==Object.keys(e).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[a]))return!1;if(l61&&t instanceof Element)return!1;for(a=n;a--!==0;)if(!((r[a]==="_owner"||r[a]==="__v"||r[a]==="__o")&&t.$$typeof)&&!zf(t[r[a]],e[r[a]]))return!1;return!0}return t!==t&&e!==e}var v61=function(e,n){try{return zf(e,n)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}};const d61=G0(v61);/* object-assign (c) Sindre Sorhus @license MIT -*/var $E=Object.getOwnPropertySymbols,vl1=Object.prototype.hasOwnProperty,dl1=Object.prototype.propertyIsEnumerable;function fl1(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function gl1(){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={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var a=Object.getOwnPropertyNames(e).map(function(o){return e[o]});if(a.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 pl1=gl1()?Object.assign:function(t,e){for(var n,a=fl1(t),r,o=1;o=0||Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n},Vl1=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},ub=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},Cl1=function(e){var n=kc(e,V2.TITLE),a=kc(e,Ps.TITLE_TEMPLATE);if(a&&n)return a.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var r=kc(e,Ps.DEFAULT_TITLE);return n||r||void 0},bl1=function(e){return kc(e,Ps.ON_CHANGE_CLIENT_STATE)||function(){}},Oy=function(e,n){return n.filter(function(a){return typeof a[e]<"u"}).map(function(a){return a[e]}).reduce(function(a,r){return Bn({},a,r)},{})},Ll1=function(e,n){return n.filter(function(a){return typeof a[V2.BASE]<"u"}).map(function(a){return a[V2.BASE]}).reverse().reduce(function(a,r){if(!a.length)for(var o=Object.keys(r),c=0;c=0;a--){var r=e[a];if(r.hasOwnProperty(n))return r[n]}return null},Bl1=function(e){return{baseTag:Ll1([ie.HREF,ie.TARGET],e),bodyAttributes:Oy(O8.BODY,e),defer:kc(e,Ps.DEFER),encode:kc(e,Ps.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Oy(O8.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:bl1(e),scriptTags:R9(V2.SCRIPT,[ie.SRC,ie.INNER_HTML],e),styleTags:R9(V2.STYLE,[ie.CSS_TEXT],e),title:Cl1(e),titleAttributes:Oy(O8.TITLE,e)}},vb=function(){var t=Date.now();return function(e){var n=Date.now();n-t>16?(t=n,e(n)):setTimeout(function(){vb(e)},0)}}(),WE=function(e){return clearTimeout(e)},Sl1=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||vb:global.requestAnimationFrame||vb,_l1=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||WE:global.cancelAnimationFrame||WE,Tl1=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},j9=null,Ol1=function(e){j9&&_l1(j9),e.defer?j9=Sl1(function(){qE(e,function(){j9=null})}):(qE(e),j9=null)},qE=function(e,n){var a=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,c=e.linkTags,l=e.metaTags,h=e.noscriptTags,s=e.onChangeClientState,u=e.scriptTags,v=e.styleTags,f=e.title,d=e.titleAttributes;db(V2.BODY,r),db(V2.HTML,o),Al1(f,d);var M={baseTag:F6(V2.BASE,a),linkTags:F6(V2.LINK,c),metaTags:F6(V2.META,l),noscriptTags:F6(V2.NOSCRIPT,h),scriptTags:F6(V2.SCRIPT,u),styleTags:F6(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)}),n&&n(),s(e,g,H)},cK=function(e){return Array.isArray(e)?e.join(""):e},Al1=function(e,n){typeof e<"u"&&document.title!==e&&(document.title=cK(e)),db(V2.TITLE,n)},db=function(e,n){var a=document.getElementsByTagName(e)[0];if(a){for(var r=a.getAttribute(Cr),o=r?r.split(","):[],c=[].concat(o),l=Object.keys(n),h=0;h=0;f--)a.removeAttribute(c[f]);o.length===c.length?a.removeAttribute(Cr):a.getAttribute(Cr)!==l.join(",")&&a.setAttribute(Cr,l.join(","))}},F6=function(e,n){var a=document.head||document.querySelector(V2.HEAD),r=a.querySelectorAll(e+"["+Cr+"]"),o=Array.prototype.slice.call(r),c=[],l=void 0;return n&&n.length&&n.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 l=d,s.isEqualNode(f)})?o.splice(l,1):c.push(s)}),o.forEach(function(h){return h.parentNode.removeChild(h)}),c.forEach(function(h){return a.appendChild(h)}),{oldTags:o,newTags:c}},lK=function(e){return Object.keys(e).reduce(function(n,a){var r=typeof e[a]<"u"?a+'="'+e[a]+'"':""+a;return n?n+" "+r:r},"")},kl1=function(e,n,a,r){var o=lK(a),c=cK(n);return o?"<"+e+" "+Cr+'="true" '+o+">"+ub(c,r)+"":"<"+e+" "+Cr+'="true">'+ub(c,r)+""},El1=function(e,n,a){return n.reduce(function(r,o){var c=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+'="'+ub(o[u],a)+'"';return s?s+" "+v:v},""),l=o.innerHTML||o.cssText||"",h=Ml1.indexOf(e)===-1;return r+"<"+e+" "+Cr+'="true" '+c+(h?"/>":">"+l+"")},"")},sK=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(a,r){return a[Lg[r]||r]=e[r],a},n)},Pl1=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(a,r){return a[zl1[r]||r]=e[r],a},n)},Nl1=function(e,n,a){var r,o=(r={key:n},r[Cr]=!0,r),c=sK(a,o);return[W1.createElement(V2.TITLE,c,n)]},Dl1=function(e,n){return n.map(function(a,r){var o,c=(o={key:r},o[Cr]=!0,o);return Object.keys(a).forEach(function(l){var h=Lg[l]||l;if(h===ie.INNER_HTML||h===ie.CSS_TEXT){var s=a.innerHTML||a.cssText;c.dangerouslySetInnerHTML={__html:s}}else c[h]=a[l]}),W1.createElement(e,c)})},$5=function(e,n,a){switch(e){case V2.TITLE:return{toComponent:function(){return Nl1(e,n.title,n.titleAttributes)},toString:function(){return kl1(e,n.title,n.titleAttributes,a)}};case O8.BODY:case O8.HTML:return{toComponent:function(){return sK(n)},toString:function(){return lK(n)}};default:return{toComponent:function(){return Dl1(e,n)},toString:function(){return El1(e,n,a)}}}},hK=function(e){var n=e.baseTag,a=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,c=e.linkTags,l=e.metaTags,h=e.noscriptTags,s=e.scriptTags,u=e.styleTags,v=e.title,f=v===void 0?"":v,d=e.titleAttributes;return{base:$5(V2.BASE,n,r),bodyAttributes:$5(O8.BODY,a,r),htmlAttributes:$5(O8.HTML,o,r),link:$5(V2.LINK,c,r),meta:$5(V2.META,l,r),noscript:$5(V2.NOSCRIPT,h,r),script:$5(V2.SCRIPT,s,r),style:$5(V2.STYLE,u,r),title:$5(V2.TITLE,{title:f,titleAttributes:d},r)}},Rl1=function(e){var n,a;return a=n=function(r){xl1(o,r);function o(){return wl1(this,o),Vl1(this,r.apply(this,arguments))}return o.prototype.shouldComponentUpdate=function(l){return!ul1(this.props,l)},o.prototype.mapNestedChildrenToProps=function(l,h){if(!h)return null;switch(l.type){case V2.SCRIPT:case V2.NOSCRIPT:return{innerHTML:h};case V2.STYLE:return{cssText:h}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},o.prototype.flattenArrayTypeChildren=function(l){var h,s=l.child,u=l.arrayTypeChildren,v=l.newChildProps,f=l.nestedChildren;return Bn({},u,(h={},h[s.type]=[].concat(u[s.type]||[],[Bn({},v,this.mapNestedChildrenToProps(s,f))]),h))},o.prototype.mapObjectTypeChildren=function(l){var h,s,u=l.child,v=l.newProps,f=l.newChildProps,d=l.nestedChildren;switch(u.type){case V2.TITLE:return Bn({},v,(h={},h[u.type]=d,h.titleAttributes=Bn({},f),h));case V2.BODY:return Bn({},v,{bodyAttributes:Bn({},f)});case V2.HTML:return Bn({},v,{htmlAttributes:Bn({},f)})}return Bn({},v,(s={},s[u.type]=Bn({},f),s))},o.prototype.mapArrayTypeChildrenToProps=function(l,h){var s=Bn({},h);return Object.keys(l).forEach(function(u){var v;s=Bn({},s,(v={},v[u]=l[u],v))}),s},o.prototype.warnOnInvalidChildren=function(l,h){return!0},o.prototype.mapChildrenToProps=function(l,h){var s=this,u={};return W1.Children.forEach(l,function(v){if(!(!v||!v.props)){var f=v.props,d=f.children,M=UE(f,["children"]),g=Pl1(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 l=this.props,h=l.children,s=UE(l,["children"]),u=Bn({},s);return h&&(u=this.mapChildrenToProps(h,u)),W1.createElement(e,u)},yl1(o,null,[{key:"canUseDOM",set:function(l){e.canUseDOM=l}}]),o}(W1.Component),n.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},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=e.peek,n.rewind=function(){var r=e.rewind();return r||(r=hK({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),r},a},jl1=function(){return null},Il1=il1(Bl1,Ol1,hK)(jl1),fb=Rl1(Il1);fb.renderStatic=fb.rewind;function uK(t){var e,n,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;etypeof t=="number"&&!isNaN(t),A8=t=>typeof t=="string",ra=t=>typeof t=="function",Mf=t=>A8(t)||ra(t)?t:null,gb=t=>S.isValidElement(t)||A8(t)||ra(t)||Ns(t);function Fl1(t,e,n){n===void 0&&(n=300);const{scrollHeight:a,style:r}=t;requestAnimationFrame(()=>{r.minHeight="initial",r.height=a+"px",r.transition=`all ${n}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(e,n)})})}function Am(t){let{enter:e,exit:n,appendPosition:a=!1,collapse:r=!0,collapseDuration:o=300}=t;return function(c){let{children:l,position:h,preventExitTransition:s,done:u,nodeRef:v,isIn:f,playToast:d}=c;const M=a?`${e}--${h}`:e,g=a?`${n}--${h}`:n,H=S.useRef(0);return S.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)},[]),S.useEffect(()=>{const p=v.current,m=()=>{p.removeEventListener("animationend",m),r?Fl1(p,u,o):u()};f||(s?m():(H.current=1,p.className+=` ${g}`,p.addEventListener("animationend",m)))},[f]),W1.createElement(W1.Fragment,null,l)}}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 un=new Map;let Ds=[];const pb=new Set,$l1=t=>pb.forEach(e=>e(t)),vK=()=>un.size>0;function dK(t,e){var n;if(e)return!((n=un.get(e))==null||!n.isToastActive(t));let a=!1;return un.forEach(r=>{r.isToastActive(t)&&(a=!0)}),a}function fK(t,e){gb(t)&&(vK()||Ds.push({content:t,options:e}),un.forEach(n=>{n.buildToast(t,e)}))}function KE(t,e){un.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}function Ul1(t){const{subscribe:e,getSnapshot:n,setProps:a}=S.useRef(function(o){const c=o.containerId||1;return{subscribe(l){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:_,children:T}=C.props,P=_==null;C.staleId&&z.delete(C.staleId),z.set(L,C),H=[...H,C.props.toastId].filter(F=>F!==C.staleId),x(),f(GE(C,P?"added":"updated")),P&&ra(B)&&B(S.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||ra(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 n1=A?A!==u:u!==1,M1=z.has(o1)&&h1==null;return n1||M1})(L))return;const{toastId:B,updateId:_,data:T,staleId:P,delay:F}=L,W=()=>{y(B)},U=_==null;U&&M++;const Z={...m,style:m.toastStyle,key:d++,...Object.fromEntries(Object.entries(L).filter(J=>{let[A,o1]=J;return o1!=null})),toastId:B,updateId:_,data:T,closeToast:W,isIn:!1,className:Mf(L.className||m.toastClassName),bodyClassName:Mf(L.bodyClassName||m.bodyClassName),progressClassName:Mf(L.progressClassName||m.progressClassName),autoClose:!L.isLoading&&(I=L.autoClose,t1=m.autoClose,I===!1||Ns(I)&&I>0?I:t1),deleteToast(){const J=z.get(B),{onClose:A,children:o1}=J.props;ra(A)&&A(S.isValidElement(o1)&&o1.props),f(GE(J,"removed")),z.delete(B),M--,M<0&&(M=0),g.length>0?V(g.shift()):x()}};var I,t1;Z.closeButton=m.closeButton,L.closeButton===!1||gb(L.closeButton)?Z.closeButton=L.closeButton:L.closeButton===!0&&(Z.closeButton=!gb(m.closeButton)||m.closeButton);let R=C;S.isValidElement(C)&&!A8(C.type)?R=S.cloneElement(C,{closeToast:W,toastProps:Z,data:T}):ra(C)&&(R=C({closeToast:W,toastProps:Z,data:T}));const i1={content:R,props:Z,staleId:P};m.limit&&m.limit>0&&M>m.limit&&U?g.push(i1):Ns(F)?setTimeout(()=>{V(i1)},F):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}}(c,o,$l1);un.set(c,h);const s=h.observe(l);return Ds.forEach(u=>fK(u.content,u.options)),Ds=[],()=>{s(),un.delete(c)}},setProps(l){var h;(h=un.get(c))==null||h.setProps(l)},getSnapshot(){var l;return(l=un.get(c))==null?void 0:l.getSnapshot()}}}(t)).current;a(t);const r=S.useSyncExternalStore(e,n,n);return{getToastToRender:function(o){if(!r)return[];const c=new Map;return r.forEach(l=>{const{position:h}=l.props;c.has(h)||c.set(h,[]),c.get(h).push(l)}),Array.from(c,l=>o(l[0],l[1]))},isToastActive:dK,count:r==null?void 0:r.length}}function Wl1(t){const[e,n]=S.useState(!1),[a,r]=S.useState(!1),o=S.useRef(null),c=S.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:h,closeToast:s,onClick:u,closeOnClick:v}=t;var f,d;function M(){n(!0)}function g(){n(!1)}function H(z){const w=o.current;c.canDrag&&w&&(c.didMove=!0,e&&g(),c.delta=t.draggableDirection==="x"?z.clientX-c.start:z.clientY-c.start,c.start!==z.clientX&&(c.canCloseOnClick=!1),w.style.transform=`translate3d(${t.draggableDirection==="x"?`${c.delta}px, var(--y)`:`0, calc(${c.delta}px + var(--y))`},0)`,w.style.opacity=""+(1-Math.abs(c.delta/c.removalDistance)))}function p(){document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",p);const z=o.current;if(c.canDrag&&c.didMove&&z){if(c.canDrag=!1,Math.abs(c.delta)>c.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=un.get((f={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||d.setToggle(f.id,f.fn),S.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){c.didMove=!1,document.addEventListener("pointermove",H),document.addEventListener("pointerup",p);const w=o.current;c.canCloseOnClick=!0,c.canDrag=!0,w.style.transition="none",t.draggableDirection==="x"?(c.start=z.clientX,c.removalDistance=w.offsetWidth*(t.draggablePercent/100)):(c.start=z.clientY,c.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 l&&h&&(m.onMouseEnter=g,t.stacked||(m.onMouseLeave=M)),v&&(m.onClick=z=>{u&&u(z),c.canCloseOnClick&&s()}),{playToast:M,pauseToast:g,isRunning:e,preventExitTransition:a,toastRef:o,eventHandlers:m}}function ql1(t){let{delay:e,isRunning:n,closeToast:a,type:r="default",hide:o,className:c,style:l,controlledProgress:h,progress:s,rtl:u,isIn:v,theme:f}=t;const d=o||h&&s===0,M={...l,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};h&&(M.transform=`scaleX(${s})`);const g=f5("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=ra(c)?c({rtl:u,type:r,defaultClassName:g}):f5(g,c),p={[h&&s>=1?"onTransitionEnd":"onAnimationEnd"]:h&&s<1?null:()=>{v&&a()}};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 Gl1=1;const gK=()=>""+Gl1++;function Kl1(t){return t&&(A8(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:Kl1(e)}}function Wv(t){return(e,n)=>W7(e,Bg(t,n))}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,n){let a,{pending:r,error:o,success:c}=e;r&&(a=A8(r)?Q0.loading(r,n):Q0.loading(r.render,{...n,...r}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},h=(u,v,f)=>{if(v==null)return void Q0.dismiss(a);const d={type:u,...l,...n,data:f},M=A8(v)?{render:v}:v;return a?Q0.update(a,{...d,...M}):Q0(M.render,{...d,...M}),f},s=ra(t)?t():t;return s.then(u=>h("success",c,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 n;if(vK()){if(e==null||A8(n=e)||Ns(n))un.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var a;(a=un.get(e.containerId))!=null&&a.removeToast(e.id)||un.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={}),un.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 n=((a,r)=>{var o;let{containerId:c}=r;return(o=un.get(c||1))==null?void 0:o.toasts.get(a)})(t,e);if(n){const{props:a,content:r}=n,o={delay:100,...a,...e,toastId:e.toastId||t,updateId:gK()};o.toastId!==t&&(o.staleId=t);const c=o.render||r;delete o.render,W7(c,o)}},Q0.done=t=>{Q0.update(t,{progress:1})},Q0.onChange=function(t){return pb.add(t),()=>{pb.delete(t)}},Q0.play=t=>KE(!0,t),Q0.pause=t=>KE(!1,t);const Yl1=typeof window<"u"?S.useLayoutEffect:S.useEffect,qv=t=>{let{theme:e,type:n,isLoading:a,...r}=t;return W1.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},Ay={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"})}},Zl1=t=>{const{isRunning:e,preventExitTransition:n,toastRef:a,eventHandlers:r,playToast:o}=Wl1(t),{closeButton:c,children:l,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:_,isLoading:T,closeOnClick:P,theme:F}=t,W=f5("Toastify__toast",`Toastify__toast-theme--${F}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":P}),U=ra(g)?g({rtl:C,position:M,type:u,defaultClassName:W}):f5(W,g),Z=function(i1){let{theme:J,type:A,isLoading:o1,icon:h1}=i1,n1=null;const M1={theme:J,type:A};return h1===!1||(ra(h1)?n1=h1({...M1,isLoading:o1}):S.isValidElement(h1)?n1=S.cloneElement(h1,M1):o1?n1=Ay.spinner():(s1=>s1 in Ay)(A)&&(n1=Ay[A](M1))),n1}(t),I=!!V||!h,t1={closeToast:f,type:u,theme:F};let R=null;return c===!1||(R=ra(c)?c(t1):S.isValidElement(c)?S.cloneElement(c,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:_,done:B,position:M,preventExitTransition:n,nodeRef:a,playToast:o},W1.createElement("div",{id:L,onClick:s,"data-in":_,className:U,...r,style:H,ref:a},W1.createElement("div",{..._&&{role:y},className:ra(p)?p({type:u}):f5("Toastify__toast-body",p),style:m},Z!=null&&W1.createElement("div",{className:f5("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!T})},Z),W1.createElement("div",null,l)),R,W1.createElement(ql1,{...x&&!I?{key:`pb-${x}`}:{},rtl:C,theme:F,delay:h,isRunning:e,isIn:_,closeToast:f,hide:v,type:u,style:w,className:z,controlledProgress:I,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}},Ql1=Am(km("bounce",!0));Am(km("slide",!0));Am(km("zoom"));Am(km("flip"));const Xl1={position:"top-right",transition:Ql1,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Jl1(t){let e={...Xl1,...t};const n=t.stacked,[a,r]=S.useState(!0),o=S.useRef(null),{getToastToRender:c,isToastActive:l,count:h}=Ul1(e),{className:s,style:u,rtl:v,containerId:f}=e;function d(g){const H=f5("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":v});return ra(s)?s({position:g,rtl:v,defaultClassName:H}):f5(H,Mf(s))}function M(){n&&(r(!0),Q0.play())}return Yl1(()=>{if(n){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=`${a}`),V.dataset.pos||(V.dataset.pos=m?"top":"bot");const C=z*(a?.2:1)+(a?0:p*y);V.style.setProperty("--y",`${m?C:-1*C}px`),V.style.setProperty("--g",`${p}`),V.style.setProperty("--s",""+(1-(a?w:0))),z+=V.offsetHeight,w+=.025})}},[a,h,n]),W1.createElement("div",{ref:o,className:"Toastify",id:f,onMouseEnter:()=>{n&&(r(!1),Q0.pause())},onMouseLeave:M},c((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(Zl1,{...w,stacked:n,collapseAll:M,isIn:l(w.toastId,w.containerId),style:w.style,key:`toast-${w.key}`},z)}))}))}const YE="/assets/logo-orange-ZEopurkl.svg";var DS={};const _t=se(Xc1);var Sg={};(function(t){var e=b&&b.__makeTemplateObject||function(d,M){return Object.defineProperty?Object.defineProperty(d,"raw",{value:M}):d.raw=M,d},n=b&&b.__assign||function(){return n=Object.assign||function(d){for(var M,g=1,H=arguments.length;g=0||Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n},b61=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},ub=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},L61=function(e){var n=kl(e,V2.TITLE),a=kl(e,Ps.TITLE_TEMPLATE);if(a&&n)return a.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var r=kl(e,Ps.DEFAULT_TITLE);return n||r||void 0},B61=function(e){return kl(e,Ps.ON_CHANGE_CLIENT_STATE)||function(){}},Oy=function(e,n){return n.filter(function(a){return typeof a[e]<"u"}).map(function(a){return a[e]}).reduce(function(a,r){return Bn({},a,r)},{})},_61=function(e,n){return n.filter(function(a){return typeof a[V2.BASE]<"u"}).map(function(a){return a[V2.BASE]}).reverse().reduce(function(a,r){if(!a.length)for(var o=Object.keys(r),c=0;c=0;a--){var r=e[a];if(r.hasOwnProperty(n))return r[n]}return null},S61=function(e){return{baseTag:_61([ie.HREF,ie.TARGET],e),bodyAttributes:Oy(A8.BODY,e),defer:kl(e,Ps.DEFER),encode:kl(e,Ps.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Oy(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:B61(e),scriptTags:R9(V2.SCRIPT,[ie.SRC,ie.INNER_HTML],e),styleTags:R9(V2.STYLE,[ie.CSS_TEXT],e),title:L61(e),titleAttributes:Oy(A8.TITLE,e)}},vb=function(){var t=Date.now();return function(e){var n=Date.now();n-t>16?(t=n,e(n)):setTimeout(function(){vb(e)},0)}}(),WE=function(e){return clearTimeout(e)},T61=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||vb:global.requestAnimationFrame||vb,O61=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||WE:global.cancelAnimationFrame||WE,A61=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},j9=null,k61=function(e){j9&&O61(j9),e.defer?j9=T61(function(){qE(e,function(){j9=null})}):(qE(e),j9=null)},qE=function(e,n){var a=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,c=e.linkTags,l=e.metaTags,h=e.noscriptTags,s=e.onChangeClientState,u=e.scriptTags,v=e.styleTags,f=e.title,d=e.titleAttributes;db(V2.BODY,r),db(V2.HTML,o),E61(f,d);var z={baseTag:$c(V2.BASE,a),linkTags:$c(V2.LINK,c),metaTags:$c(V2.META,l),noscriptTags:$c(V2.NOSCRIPT,h),scriptTags:$c(V2.SCRIPT,u),styleTags:$c(V2.STYLE,v)},g={},H={};Object.keys(z).forEach(function(p){var m=z[p],M=m.newTags,w=m.oldTags;M.length&&(g[p]=M),w.length&&(H[p]=z[p].oldTags)}),n&&n(),s(e,g,H)},lK=function(e){return Array.isArray(e)?e.join(""):e},E61=function(e,n){typeof e<"u"&&document.title!==e&&(document.title=lK(e)),db(V2.TITLE,n)},db=function(e,n){var a=document.getElementsByTagName(e)[0];if(a){for(var r=a.getAttribute(Cr),o=r?r.split(","):[],c=[].concat(o),l=Object.keys(n),h=0;h=0;f--)a.removeAttribute(c[f]);o.length===c.length?a.removeAttribute(Cr):a.getAttribute(Cr)!==l.join(",")&&a.setAttribute(Cr,l.join(","))}},$c=function(e,n){var a=document.head||document.querySelector(V2.HEAD),r=a.querySelectorAll(e+"["+Cr+"]"),o=Array.prototype.slice.call(r),c=[],l=void 0;return n&&n.length&&n.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 l=d,s.isEqualNode(f)})?o.splice(l,1):c.push(s)}),o.forEach(function(h){return h.parentNode.removeChild(h)}),c.forEach(function(h){return a.appendChild(h)}),{oldTags:o,newTags:c}},sK=function(e){return Object.keys(e).reduce(function(n,a){var r=typeof e[a]<"u"?a+'="'+e[a]+'"':""+a;return n?n+" "+r:r},"")},P61=function(e,n,a,r){var o=sK(a),c=lK(n);return o?"<"+e+" "+Cr+'="true" '+o+">"+ub(c,r)+"":"<"+e+" "+Cr+'="true">'+ub(c,r)+""},N61=function(e,n,a){return n.reduce(function(r,o){var c=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+'="'+ub(o[u],a)+'"';return s?s+" "+v:v},""),l=o.innerHTML||o.cssText||"",h=w61.indexOf(e)===-1;return r+"<"+e+" "+Cr+'="true" '+c+(h?"/>":">"+l+"")},"")},hK=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(a,r){return a[Lg[r]||r]=e[r],a},n)},D61=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(a,r){return a[H61[r]||r]=e[r],a},n)},R61=function(e,n,a){var r,o=(r={key:n},r[Cr]=!0,r),c=hK(a,o);return[W1.createElement(V2.TITLE,c,n)]},j61=function(e,n){return n.map(function(a,r){var o,c=(o={key:r},o[Cr]=!0,o);return Object.keys(a).forEach(function(l){var h=Lg[l]||l;if(h===ie.INNER_HTML||h===ie.CSS_TEXT){var s=a.innerHTML||a.cssText;c.dangerouslySetInnerHTML={__html:s}}else c[h]=a[l]}),W1.createElement(e,c)})},Fi=function(e,n,a){switch(e){case V2.TITLE:return{toComponent:function(){return R61(e,n.title,n.titleAttributes)},toString:function(){return P61(e,n.title,n.titleAttributes,a)}};case A8.BODY:case A8.HTML:return{toComponent:function(){return hK(n)},toString:function(){return sK(n)}};default:return{toComponent:function(){return j61(e,n)},toString:function(){return N61(e,n,a)}}}},uK=function(e){var n=e.baseTag,a=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,c=e.linkTags,l=e.metaTags,h=e.noscriptTags,s=e.scriptTags,u=e.styleTags,v=e.title,f=v===void 0?"":v,d=e.titleAttributes;return{base:Fi(V2.BASE,n,r),bodyAttributes:Fi(A8.BODY,a,r),htmlAttributes:Fi(A8.HTML,o,r),link:Fi(V2.LINK,c,r),meta:Fi(V2.META,l,r),noscript:Fi(V2.NOSCRIPT,h,r),script:Fi(V2.SCRIPT,s,r),style:Fi(V2.STYLE,u,r),title:Fi(V2.TITLE,{title:f,titleAttributes:d},r)}},I61=function(e){var n,a;return a=n=function(r){C61(o,r);function o(){return x61(this,o),b61(this,r.apply(this,arguments))}return o.prototype.shouldComponentUpdate=function(l){return!d61(this.props,l)},o.prototype.mapNestedChildrenToProps=function(l,h){if(!h)return null;switch(l.type){case V2.SCRIPT:case V2.NOSCRIPT:return{innerHTML:h};case V2.STYLE:return{cssText:h}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},o.prototype.flattenArrayTypeChildren=function(l){var h,s=l.child,u=l.arrayTypeChildren,v=l.newChildProps,f=l.nestedChildren;return Bn({},u,(h={},h[s.type]=[].concat(u[s.type]||[],[Bn({},v,this.mapNestedChildrenToProps(s,f))]),h))},o.prototype.mapObjectTypeChildren=function(l){var h,s,u=l.child,v=l.newProps,f=l.newChildProps,d=l.nestedChildren;switch(u.type){case V2.TITLE:return Bn({},v,(h={},h[u.type]=d,h.titleAttributes=Bn({},f),h));case V2.BODY:return Bn({},v,{bodyAttributes:Bn({},f)});case V2.HTML:return Bn({},v,{htmlAttributes:Bn({},f)})}return Bn({},v,(s={},s[u.type]=Bn({},f),s))},o.prototype.mapArrayTypeChildrenToProps=function(l,h){var s=Bn({},h);return Object.keys(l).forEach(function(u){var v;s=Bn({},s,(v={},v[u]=l[u],v))}),s},o.prototype.warnOnInvalidChildren=function(l,h){return!0},o.prototype.mapChildrenToProps=function(l,h){var s=this,u={};return W1.Children.forEach(l,function(v){if(!(!v||!v.props)){var f=v.props,d=f.children,z=UE(f,["children"]),g=D61(z);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 l=this.props,h=l.children,s=UE(l,["children"]),u=Bn({},s);return h&&(u=this.mapChildrenToProps(h,u)),W1.createElement(e,u)},V61(o,null,[{key:"canUseDOM",set:function(l){e.canUseDOM=l}}]),o}(W1.Component),n.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},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=e.peek,n.rewind=function(){var r=e.rewind();return r||(r=uK({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),r},a},F61=function(){return null},$61=c61(S61,k61,uK)(F61),fb=I61($61);fb.renderStatic=fb.rewind;function vK(t){var e,n,a="";if(typeof t=="string"||typeof t=="number")a+=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",ra=t=>typeof t=="function",Mf=t=>k8(t)||ra(t)?t:null,gb=t=>_.isValidElement(t)||k8(t)||ra(t)||Ns(t);function U61(t,e,n){n===void 0&&(n=300);const{scrollHeight:a,style:r}=t;requestAnimationFrame(()=>{r.minHeight="initial",r.height=a+"px",r.transition=`all ${n}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(e,n)})})}function Am(t){let{enter:e,exit:n,appendPosition:a=!1,collapse:r=!0,collapseDuration:o=300}=t;return function(c){let{children:l,position:h,preventExitTransition:s,done:u,nodeRef:v,isIn:f,playToast:d}=c;const z=a?`${e}--${h}`:e,g=a?`${n}--${h}`:n,H=_.useRef(0);return _.useLayoutEffect(()=>{const p=v.current,m=z.split(" "),M=w=>{w.target===v.current&&(d(),p.removeEventListener("animationend",M),p.removeEventListener("animationcancel",M),H.current===0&&w.type!=="animationcancel"&&p.classList.remove(...m))};p.classList.add(...m),p.addEventListener("animationend",M),p.addEventListener("animationcancel",M)},[]),_.useEffect(()=>{const p=v.current,m=()=>{p.removeEventListener("animationend",m),r?U61(p,u,o):u()};f||(s?m():(H.current=1,p.className+=` ${g}`,p.addEventListener("animationend",m)))},[f]),W1.createElement(W1.Fragment,null,l)}}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 un=new Map;let Ds=[];const pb=new Set,W61=t=>pb.forEach(e=>e(t)),dK=()=>un.size>0;function fK(t,e){var n;if(e)return!((n=un.get(e))==null||!n.isToastActive(t));let a=!1;return un.forEach(r=>{r.isToastActive(t)&&(a=!0)}),a}function gK(t,e){gb(t)&&(dK()||Ds.push({content:t,options:e}),un.forEach(n=>{n.buildToast(t,e)}))}function KE(t,e){un.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}function q61(t){const{subscribe:e,getSnapshot:n,setProps:a}=_.useRef(function(o){const c=o.containerId||1;return{subscribe(l){const h=function(u,v,f){let d=1,z=0,g=[],H=[],p=[],m=v;const M=new Map,w=new Set,x=()=>{p=Array.from(M.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,P=S==null;C.staleId&&M.delete(C.staleId),M.set(L,C),H=[...H,C.props.toastId].filter(F=>F!==C.staleId),x(),f(GE(C,P?"added":"updated")),P&&ra(B)&&B(_.isValidElement(T)&&T.props)};return{id:u,props:m,observe:C=>(w.add(C),()=>w.delete(C)),toggle:(C,L)=>{M.forEach(B=>{L!=null&&L!==B.props.toastId||ra(B.toggle)&&B.toggle(C)})},removeToast:y,toasts:M,clearQueue:()=>{z-=g.length,g=[]},buildToast:(C,L)=>{if((J=>{let{containerId:A,toastId:o1,updateId:h1}=J;const n1=A?A!==u:u!==1,M1=M.has(o1)&&h1==null;return n1||M1})(L))return;const{toastId:B,updateId:S,data:T,staleId:P,delay:F}=L,W=()=>{y(B)},U=S==null;U&&z++;const Z={...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:W,isIn:!1,className:Mf(L.className||m.toastClassName),bodyClassName:Mf(L.bodyClassName||m.bodyClassName),progressClassName:Mf(L.progressClassName||m.progressClassName),autoClose:!L.isLoading&&(I=L.autoClose,t1=m.autoClose,I===!1||Ns(I)&&I>0?I:t1),deleteToast(){const J=M.get(B),{onClose:A,children:o1}=J.props;ra(A)&&A(_.isValidElement(o1)&&o1.props),f(GE(J,"removed")),M.delete(B),z--,z<0&&(z=0),g.length>0?V(g.shift()):x()}};var I,t1;Z.closeButton=m.closeButton,L.closeButton===!1||gb(L.closeButton)?Z.closeButton=L.closeButton:L.closeButton===!0&&(Z.closeButton=!gb(m.closeButton)||m.closeButton);let R=C;_.isValidElement(C)&&!k8(C.type)?R=_.cloneElement(C,{closeToast:W,toastProps:Z,data:T}):ra(C)&&(R=C({closeToast:W,toastProps:Z,data:T}));const i1={content:R,props:Z,staleId:P};m.limit&&m.limit>0&&z>m.limit&&U?g.push(i1):Ns(F)?setTimeout(()=>{V(i1)},F):V(i1)},setProps(C){m=C},setToggle:(C,L)=>{M.get(C).toggle=L},isToastActive:C=>H.some(L=>L===C),getSnapshot:()=>m.newestOnTop?p.reverse():p}}(c,o,W61);un.set(c,h);const s=h.observe(l);return Ds.forEach(u=>gK(u.content,u.options)),Ds=[],()=>{s(),un.delete(c)}},setProps(l){var h;(h=un.get(c))==null||h.setProps(l)},getSnapshot(){var l;return(l=un.get(c))==null?void 0:l.getSnapshot()}}}(t)).current;a(t);const r=_.useSyncExternalStore(e,n,n);return{getToastToRender:function(o){if(!r)return[];const c=new Map;return r.forEach(l=>{const{position:h}=l.props;c.has(h)||c.set(h,[]),c.get(h).push(l)}),Array.from(c,l=>o(l[0],l[1]))},isToastActive:fK,count:r==null?void 0:r.length}}function G61(t){const[e,n]=_.useState(!1),[a,r]=_.useState(!1),o=_.useRef(null),c=_.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:h,closeToast:s,onClick:u,closeOnClick:v}=t;var f,d;function z(){n(!0)}function g(){n(!1)}function H(M){const w=o.current;c.canDrag&&w&&(c.didMove=!0,e&&g(),c.delta=t.draggableDirection==="x"?M.clientX-c.start:M.clientY-c.start,c.start!==M.clientX&&(c.canCloseOnClick=!1),w.style.transform=`translate3d(${t.draggableDirection==="x"?`${c.delta}px, var(--y)`:`0, calc(${c.delta}px + var(--y))`},0)`,w.style.opacity=""+(1-Math.abs(c.delta/c.removalDistance)))}function p(){document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",p);const M=o.current;if(c.canDrag&&c.didMove&&M){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance)return r(!0),t.closeToast(),void t.collapseAll();M.style.transition="transform 0.2s, opacity 0.2s",M.style.removeProperty("transform"),M.style.removeProperty("opacity")}}(d=un.get((f={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||d.setToggle(f.id,f.fn),_.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",z),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",z),window.removeEventListener("blur",g)}},[t.pauseOnFocusLoss]);const m={onPointerDown:function(M){if(t.draggable===!0||t.draggable===M.pointerType){c.didMove=!1,document.addEventListener("pointermove",H),document.addEventListener("pointerup",p);const w=o.current;c.canCloseOnClick=!0,c.canDrag=!0,w.style.transition="none",t.draggableDirection==="x"?(c.start=M.clientX,c.removalDistance=w.offsetWidth*(t.draggablePercent/100)):(c.start=M.clientY,c.removalDistance=w.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(M){const{top:w,bottom:x,left:y,right:V}=o.current.getBoundingClientRect();M.nativeEvent.type!=="touchend"&&t.pauseOnHover&&M.clientX>=y&&M.clientX<=V&&M.clientY>=w&&M.clientY<=x?g():z()}};return l&&h&&(m.onMouseEnter=g,t.stacked||(m.onMouseLeave=z)),v&&(m.onClick=M=>{u&&u(M),c.canCloseOnClick&&s()}),{playToast:z,pauseToast:g,isRunning:e,preventExitTransition:a,toastRef:o,eventHandlers:m}}function K61(t){let{delay:e,isRunning:n,closeToast:a,type:r="default",hide:o,className:c,style:l,controlledProgress:h,progress:s,rtl:u,isIn:v,theme:f}=t;const d=o||h&&s===0,z={...l,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};h&&(z.transform=`scaleX(${s})`);const g=di("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=ra(c)?c({rtl:u,type:r,defaultClassName:g}):di(g,c),p={[h&&s>=1?"onTransitionEnd":"onAnimationEnd"]:h&&s<1?null:()=>{v&&a()}};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:z,...p}))}let Y61=1;const pK=()=>""+Y61++;function Z61(t){return t&&(k8(t.toastId)||Ns(t.toastId))?t.toastId:pK()}function W7(t,e){return gK(t,e),e.toastId}function Bg(t,e){return{...e,type:e&&e.type||t,toastId:Z61(e)}}function Wv(t){return(e,n)=>W7(e,Bg(t,n))}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,n){let a,{pending:r,error:o,success:c}=e;r&&(a=k8(r)?Q0.loading(r,n):Q0.loading(r.render,{...n,...r}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},h=(u,v,f)=>{if(v==null)return void Q0.dismiss(a);const d={type:u,...l,...n,data:f},z=k8(v)?{render:v}:v;return a?Q0.update(a,{...d,...z}):Q0(z.render,{...d,...z}),f},s=ra(t)?t():t;return s.then(u=>h("success",c,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 n;if(dK()){if(e==null||k8(n=e)||Ns(n))un.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var a;(a=un.get(e.containerId))!=null&&a.removeToast(e.id)||un.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={}),un.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},Q0.isActive=fK,Q0.update=function(t,e){e===void 0&&(e={});const n=((a,r)=>{var o;let{containerId:c}=r;return(o=un.get(c||1))==null?void 0:o.toasts.get(a)})(t,e);if(n){const{props:a,content:r}=n,o={delay:100,...a,...e,toastId:e.toastId||t,updateId:pK()};o.toastId!==t&&(o.staleId=t);const c=o.render||r;delete o.render,W7(c,o)}},Q0.done=t=>{Q0.update(t,{progress:1})},Q0.onChange=function(t){return pb.add(t),()=>{pb.delete(t)}},Q0.play=t=>KE(!0,t),Q0.pause=t=>KE(!1,t);const Q61=typeof window<"u"?_.useLayoutEffect:_.useEffect,qv=t=>{let{theme:e,type:n,isLoading:a,...r}=t;return W1.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},Ay={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"})}},X61=t=>{const{isRunning:e,preventExitTransition:n,toastRef:a,eventHandlers:r,playToast:o}=G61(t),{closeButton:c,children:l,autoClose:h,onClick:s,type:u,hideProgressBar:v,closeToast:f,transition:d,position:z,className:g,style:H,bodyClassName:p,bodyStyle:m,progressClassName:M,progressStyle:w,updateId:x,role:y,progress:V,rtl:C,toastId:L,deleteToast:B,isIn:S,isLoading:T,closeOnClick:P,theme:F}=t,W=di("Toastify__toast",`Toastify__toast-theme--${F}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":P}),U=ra(g)?g({rtl:C,position:z,type:u,defaultClassName:W}):di(W,g),Z=function(i1){let{theme:J,type:A,isLoading:o1,icon:h1}=i1,n1=null;const M1={theme:J,type:A};return h1===!1||(ra(h1)?n1=h1({...M1,isLoading:o1}):_.isValidElement(h1)?n1=_.cloneElement(h1,M1):o1?n1=Ay.spinner():(s1=>s1 in Ay)(A)&&(n1=Ay[A](M1))),n1}(t),I=!!V||!h,t1={closeToast:f,type:u,theme:F};let R=null;return c===!1||(R=ra(c)?c(t1):_.isValidElement(c)?_.cloneElement(c,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:z,preventExitTransition:n,nodeRef:a,playToast:o},W1.createElement("div",{id:L,onClick:s,"data-in":S,className:U,...r,style:H,ref:a},W1.createElement("div",{...S&&{role:y},className:ra(p)?p({type:u}):di("Toastify__toast-body",p),style:m},Z!=null&&W1.createElement("div",{className:di("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!T})},Z),W1.createElement("div",null,l)),R,W1.createElement(K61,{...x&&!I?{key:`pb-${x}`}:{},rtl:C,theme:F,delay:h,isRunning:e,isIn:S,closeToast:f,hide:v,type:u,style:w,className:M,controlledProgress:I,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}},J61=Am(km("bounce",!0));Am(km("slide",!0));Am(km("zoom"));Am(km("flip"));const t91={position:"top-right",transition:J61,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function e91(t){let e={...t91,...t};const n=t.stacked,[a,r]=_.useState(!0),o=_.useRef(null),{getToastToRender:c,isToastActive:l,count:h}=q61(e),{className:s,style:u,rtl:v,containerId:f}=e;function d(g){const H=di("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":v});return ra(s)?s({position:g,rtl:v,defaultClassName:H}):di(H,Mf(s))}function z(){n&&(r(!0),Q0.play())}return Q61(()=>{if(n){var g;const H=o.current.querySelectorAll('[data-in="true"]'),p=12,m=(g=e.position)==null?void 0:g.includes("top");let M=0,w=0;Array.from(H).reverse().forEach((x,y)=>{const V=x;V.classList.add("Toastify__toast--stacked"),y>0&&(V.dataset.collapsed=`${a}`),V.dataset.pos||(V.dataset.pos=m?"top":"bot");const C=M*(a?.2:1)+(a?0:p*y);V.style.setProperty("--y",`${m?C:-1*C}px`),V.style.setProperty("--g",`${p}`),V.style.setProperty("--s",""+(1-(a?w:0))),M+=V.offsetHeight,w+=.025})}},[a,h,n]),W1.createElement("div",{ref:o,className:"Toastify",id:f,onMouseEnter:()=>{n&&(r(!1),Q0.pause())},onMouseLeave:z},c((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:M,props:w}=m;return W1.createElement(X61,{...w,stacked:n,collapseAll:z,isIn:l(w.toastId,w.containerId),style:w.style,key:`toast-${w.key}`},M)}))}))}const YE="/assets/logo-orange-ZEopurkl.svg";var D_={};const St=se(t61);var _g={};(function(t){var e=b&&b.__makeTemplateObject||function(d,z){return Object.defineProperty?Object.defineProperty(d,"raw",{value:z}):d.raw=z,d},n=b&&b.__assign||function(){return n=Object.assign||function(d){for(var z,g=1,H=arguments.length;g=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function Jt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function C2(t){"@babel/helpers - typeof";return C2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C2(t)}function t91(t,e){if(C2(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e||"default");if(C2(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function pK(t){var e=t91(t,"string");return C2(e)=="symbol"?e:String(e)}function ZE(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:1;QE+=1;var a=QE;function r(o){if(o===0)HK(a),e();else{var c=zK(function(){r(o-1)});RS.set(a,c)}}return r(n),a};z4.cancel=function(t){var e=RS.get(t);return HK(t),MK(e)};function Ga(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var e91=S.forwardRef(function(t,e){var n=t.didUpdate,a=t.getContainer,r=t.children,o=S.useRef(),c=S.useRef();S.useImperativeHandle(e,function(){return{}});var l=S.useRef(!1);return!l.current&&Ga()&&(c.current=a(),o.current=c.current.parentNode,l.current=!0),S.useEffect(function(){n==null||n(t)}),S.useEffect(function(){return c.current.parentNode===null&&o.current!==null&&o.current.appendChild(c.current),function(){var h;(h=c.current)===null||h===void 0||(h=h.parentNode)===null||h===void 0||h.removeChild(c.current)}},[]),c.current?x8.createPortal(r,c.current):null}),ky;function Em(t){if(typeof document>"u")return 0;if(t||ky===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),a=n.style;a.position="absolute",a.top="0",a.left="0",a.pointerEvents="none",a.visibility="hidden",a.width="200px",a.height="150px",a.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var r=e.offsetWidth;n.style.overflow="scroll";var o=e.offsetWidth;r===o&&(o=n.clientWidth),document.body.removeChild(n),ky=r-o}return ky}function XE(t){var e=t.match(/^(.*)px$/),n=Number(e==null?void 0:e[1]);return Number.isNaN(n)?Em():n}function n91(t){if(typeof document>"u"||!t||!(t instanceof Element))return{width:0,height:0};var e=getComputedStyle(t,"::-webkit-scrollbar"),n=e.width,a=e.height;return{width:XE(n),height:XE(a)}}function sl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!t)return{};var n=e.element,a=n===void 0?document.body:n,r={},o=Object.keys(t);return o.forEach(function(c){r[c]=a.style[c]}),o.forEach(function(c){a.style[c]=t[c]}),r}function a91(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Ey={};const JE=function(t){if(!(!a91()&&!t)){var e="ant-scrolling-effect",n=new RegExp("".concat(e),"g"),a=document.body.className;if(t){if(!n.test(a))return;sl(Ey),Ey={},document.body.className=a.replace(n,"").trim();return}var r=Em();if(r&&(Ey=sl({position:"relative",width:"calc(100% - ".concat(r,"px)")}),!n.test(a))){var o="".concat(a," ").concat(e);document.body.className=o.trim()}}};function mb(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n0||o.scrollHeight>o.clientHeight)&&getComputedStyle(o).overflow!=="hidden"&&(r=Em());var c=o.className;if(wa.filter(function(h){var s,u=h.options;return(u==null?void 0:u.container)===((s=n.options)===null||s===void 0?void 0:s.container)}).length===0&&Ny.set(o,sl({width:r!==0?"calc(100% - ".concat(r,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:o})),!Py.test(c)){var l="".concat(c," ").concat(yK);o.className=l.trim()}wa=[].concat(i0(wa),[{target:n.lockTarget,options:n.options}])}}),u1(this,"unLock",function(){var a,r=wa.find(function(l){var h=l.target;return h===n.lockTarget});if(wa=wa.filter(function(l){var h=l.target;return h!==n.lockTarget}),!(!r||wa.some(function(l){var h,s=l.options;return(s==null?void 0:s.container)===((h=r.options)===null||h===void 0?void 0:h.container)}))){var o=((a=n.options)===null||a===void 0?void 0:a.container)||document.body,c=o.className;Py.test(c)&&(sl(Ny.get(o),{element:o}),Ny.delete(o),o.className=o.className.replace(Py,"").trim())}}),this.lockTarget=o91++,this.options=e}),U5=0,y7=Ga(),Gv={},$6=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},xK=function(t){M2(n,t);var e=B2(n);function n(a){var r;return Jt(this,n),r=e.call(this,a),u1(D1(r),"container",void 0),u1(D1(r),"componentRef",S.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 c=o||{},l=c.visible,h=r.props,s=h.getContainer,u=h.visible;u&&u!==l&&y7&&$6(s)!==r.scrollLocker.getContainer()&&r.scrollLocker.reLock({container:$6(s)})}),u1(D1(r),"updateOpenCount",function(o){var c=o||{},l=c.visible,h=c.getContainer,s=r.props,u=s.visible,v=s.getContainer;u!==l&&y7&&$6(v)===document.body&&(u&&!l?U5+=1:o&&(U5-=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 c=$6(r.props.getContainer);return c?(c.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(){U5===1&&!Object.keys(Gv).length?(JE(),Gv=sl({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):U5||(sl(Gv),Gv={},JE(!0))}),r.scrollLocker=new c91({container:$6(a.getContainer)}),r}return t2(n,[{key:"componentDidMount",value:function(){var r=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=z4(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,c=r.getContainer;y7&&$6(c)===document.body&&(U5=o&&U5?U5-1:U5),this.removeCurrentContainer(),z4.cancel(this.rafId)}},{key:"render",value:function(){var r=this.props,o=r.children,c=r.forceRender,l=r.visible,h=null,s={getOpenCount:function(){return U5},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(c||l||this.componentRef.current)&&(h=S.createElement(e91,{getContainer:this.getContainer,ref:this.componentRef},o(s))),h}}]),n}(S.Component);function tP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Q1(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function Jt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function C2(t){"@babel/helpers - typeof";return C2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C2(t)}function n91(t,e){if(C2(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e||"default");if(C2(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function mK(t){var e=n91(t,"string");return C2(e)=="symbol"?e:String(e)}function ZE(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:1;QE+=1;var a=QE;function r(o){if(o===0)wK(a),e();else{var c=MK(function(){r(o-1)});R_.set(a,c)}}return r(n),a};z4.cancel=function(t){var e=R_.get(t);return wK(t),HK(e)};function Ga(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var a91=_.forwardRef(function(t,e){var n=t.didUpdate,a=t.getContainer,r=t.children,o=_.useRef(),c=_.useRef();_.useImperativeHandle(e,function(){return{}});var l=_.useRef(!1);return!l.current&&Ga()&&(c.current=a(),o.current=c.current.parentNode,l.current=!0),_.useEffect(function(){n==null||n(t)}),_.useEffect(function(){return c.current.parentNode===null&&o.current!==null&&o.current.appendChild(c.current),function(){var h;(h=c.current)===null||h===void 0||(h=h.parentNode)===null||h===void 0||h.removeChild(c.current)}},[]),c.current?V8.createPortal(r,c.current):null}),ky;function Em(t){if(typeof document>"u")return 0;if(t||ky===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),a=n.style;a.position="absolute",a.top="0",a.left="0",a.pointerEvents="none",a.visibility="hidden",a.width="200px",a.height="150px",a.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var r=e.offsetWidth;n.style.overflow="scroll";var o=e.offsetWidth;r===o&&(o=n.clientWidth),document.body.removeChild(n),ky=r-o}return ky}function XE(t){var e=t.match(/^(.*)px$/),n=Number(e==null?void 0:e[1]);return Number.isNaN(n)?Em():n}function r91(t){if(typeof document>"u"||!t||!(t instanceof Element))return{width:0,height:0};var e=getComputedStyle(t,"::-webkit-scrollbar"),n=e.width,a=e.height;return{width:XE(n),height:XE(a)}}function s6(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!t)return{};var n=e.element,a=n===void 0?document.body:n,r={},o=Object.keys(t);return o.forEach(function(c){r[c]=a.style[c]}),o.forEach(function(c){a.style[c]=t[c]}),r}function i91(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Ey={};const JE=function(t){if(!(!i91()&&!t)){var e="ant-scrolling-effect",n=new RegExp("".concat(e),"g"),a=document.body.className;if(t){if(!n.test(a))return;s6(Ey),Ey={},document.body.className=a.replace(n,"").trim();return}var r=Em();if(r&&(Ey=s6({position:"relative",width:"calc(100% - ".concat(r,"px)")}),!n.test(a))){var o="".concat(a," ").concat(e);document.body.className=o.trim()}}};function mb(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n0||o.scrollHeight>o.clientHeight)&&getComputedStyle(o).overflow!=="hidden"&&(r=Em());var c=o.className;if(wa.filter(function(h){var s,u=h.options;return(u==null?void 0:u.container)===((s=n.options)===null||s===void 0?void 0:s.container)}).length===0&&Ny.set(o,s6({width:r!==0?"calc(100% - ".concat(r,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:o})),!Py.test(c)){var l="".concat(c," ").concat(xK);o.className=l.trim()}wa=[].concat(i0(wa),[{target:n.lockTarget,options:n.options}])}}),u1(this,"unLock",function(){var a,r=wa.find(function(l){var h=l.target;return h===n.lockTarget});if(wa=wa.filter(function(l){var h=l.target;return h!==n.lockTarget}),!(!r||wa.some(function(l){var h,s=l.options;return(s==null?void 0:s.container)===((h=r.options)===null||h===void 0?void 0:h.container)}))){var o=((a=n.options)===null||a===void 0?void 0:a.container)||document.body,c=o.className;Py.test(c)&&(s6(Ny.get(o),{element:o}),Ny.delete(o),o.className=o.className.replace(Py,"").trim())}}),this.lockTarget=l91++,this.options=e}),$i=0,y7=Ga(),Gv={},Uc=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},VK=function(t){M2(n,t);var e=B2(n);function n(a){var r;return Jt(this,n),r=e.call(this,a),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 c=o||{},l=c.visible,h=r.props,s=h.getContainer,u=h.visible;u&&u!==l&&y7&&Uc(s)!==r.scrollLocker.getContainer()&&r.scrollLocker.reLock({container:Uc(s)})}),u1(D1(r),"updateOpenCount",function(o){var c=o||{},l=c.visible,h=c.getContainer,s=r.props,u=s.visible,v=s.getContainer;u!==l&&y7&&Uc(v)===document.body&&(u&&!l?$i+=1:o&&($i-=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 c=Uc(r.props.getContainer);return c?(c.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(){$i===1&&!Object.keys(Gv).length?(JE(),Gv=s6({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):$i||(s6(Gv),Gv={},JE(!0))}),r.scrollLocker=new s91({container:Uc(a.getContainer)}),r}return t2(n,[{key:"componentDidMount",value:function(){var r=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=z4(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,c=r.getContainer;y7&&Uc(c)===document.body&&($i=o&&$i?$i-1:$i),this.removeCurrentContainer(),z4.cancel(this.rafId)}},{key:"render",value:function(){var r=this.props,o=r.children,c=r.forceRender,l=r.visible,h=null,s={getOpenCount:function(){return $i},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(c||l||this.componentRef.current)&&(h=_.createElement(a91,{getContainer:this.getContainer,ref:this.componentRef},o(s))),h}}]),n}(_.Component);function tP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Q1(t){for(var e=1;e=ot.F1&&n<=ot.F12)return!1;switch(n){case ot.ALT:case ot.CAPS_LOCK:case ot.CONTEXT_MENU:case ot.CTRL:case ot.DOWN:case ot.END:case ot.ESC:case ot.HOME:case ot.INSERT:case ot.LEFT:case ot.MAC_FF_META:case ot.META:case ot.NUMLOCK:case ot.NUM_CENTER:case ot.PAGE_DOWN:case ot.PAGE_UP:case ot.PAUSE:case ot.PRINT_SCREEN:case ot.RIGHT:case ot.SHIFT:case ot.UP:case ot.WIN_KEY:case ot.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ot.ZERO&&e<=ot.NINE||e>=ot.NUM_ZERO&&e<=ot.NUM_MULTIPLY||e>=ot.A&&e<=ot.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case ot.SPACE:case ot.QUESTION_MARK:case ot.NUM_PLUS:case ot.NUM_MINUS:case ot.NUM_PERIOD:case ot.NUM_DIVISION:case ot.SEMICOLON:case ot.DASH:case ot.EQUALS:case ot.COMMA:case ot.PERIOD:case ot.SLASH:case ot.APOSTROPHE:case ot.SINGLE_QUOTE:case ot.OPEN_SQUARE_BRACKET:case ot.BACKSLASH:case ot.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function jS(t,e){var n=Q1({},t);return Array.isArray(e)&&e.forEach(function(a){delete n[a]}),n}function l91(t){return Array.isArray(t)?t:[t]}var CK={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},bK=Object.keys(CK).filter(function(t){if(typeof document>"u")return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],eP=CK[bK];function nP(t,e,n,a){t.addEventListener?t.addEventListener(e,n,a):t.attachEvent&&t.attachEvent("on".concat(e),n)}function aP(t,e,n,a){t.removeEventListener?t.removeEventListener(e,n,a):t.attachEvent&&t.detachEvent("on".concat(e),n)}function s91(t,e){var n=typeof t=="function"?t(e):t;return Array.isArray(n)?n.length===2?n:[n[0],n[1]]:[n]}var rP=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Dy=!(typeof window<"u"&&window.document&&window.document.createElement),h91=function t(e,n,a,r){if(!n||n===document||n instanceof Document)return!1;if(n===e.parentNode)return!0;var o=Math.max(Math.abs(a),Math.abs(r))===Math.abs(r),c=Math.max(Math.abs(a),Math.abs(r))===Math.abs(a),l=n.scrollHeight-n.clientHeight,h=n.scrollWidth-n.clientWidth,s=document.defaultView.getComputedStyle(n),u=s.overflowY==="auto"||s.overflowY==="scroll",v=s.overflowX==="auto"||s.overflowX==="scroll",f=l&&u,d=h&&v;return o&&(!f||f&&(n.scrollTop>=l&&r<0||n.scrollTop<=0&&r>0))||c&&(!d||d&&(n.scrollLeft>=h&&a<0||n.scrollLeft<=0&&a>0))?t(e,n.parentNode,a,r):!1},u91=["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={},iP=function(t){M2(n,t);var e=B2(n);function n(a){var r;return Jt(this,n),r=e.call(this,a),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 c=o.currentTarget,l=o.changedTouches[0].clientX-r.startPos.x,h=o.changedTouches[0].clientY-r.startPos.y;(c===r.maskDom||c===r.handlerDom||c===r.contentDom&&h91(c,o.target,l,h))&&o.cancelable&&o.preventDefault()}},r.transitionEnd=function(o){var c=o.target;aP(c,eP,r.transitionEnd),c.style.transition=""},r.onKeyDown=function(o){if(o.keyCode===ot.ESC){var c=r.props.onClose;o.stopPropagation(),c&&c(o)}},r.onWrapperTransitionEnd=function(o){var c=r.props,l=c.open,h=c.afterVisibleChange;o.target===r.contentWrapper&&o.propertyName.match(/transform$/)&&(r.dom.style.transition="",!l&&r.getCurrentDrawerSome()&&(document.body.style.overflowX="",r.maskDom&&(r.maskDom.style.left="",r.maskDom.style.width="")),h&&h(!!l))},r.openLevelTransition=function(){var o=r.props,c=o.open,l=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?l:h)||f;r.setLevelAndScrolling(c,v,d)},r.setLevelTransform=function(o,c,l,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,eP,r.transitionEnd);var H=o?l:0;if(v){var p=s91(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(c,"(").concat(z,")"):""})},r.setLevelAndScrolling=function(o,c,l){var h=r.props.onChange;if(!Dy){var s=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Em(!0):0;r.setLevelTransform(o,c,l,s),r.toggleScrollingToDrawerAndBody(s)}h&&h(o)},r.toggleScrollingToDrawerAndBody=function(o){var c=r.props,l=c.getContainer,h=c.showMask,s=c.open,u=l&&l();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&&aP(d,v[M]||"touchmove",M?r.removeMoveHandler:r.removeStartHandler,r.passive)}))}},r.addScrollingEffect=function(o){var c=r.props,l=c.placement,h=c.duration,s=c.ease,u="width ".concat(h," ").concat(s),v="transform ".concat(h," ").concat(s);switch(r.dom.style.transition="none",l){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 c=r.props,l=c.placement,h=c.duration,s=c.ease;bK&&(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(l){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 c=o.level,l=o.getContainer;if(!Dy){var h=l&&l(),s=h?h.parentNode:null;if(r.levelDom=[],c==="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 c&&l91(c).forEach(function(v){document.querySelectorAll(v).forEach(function(f){r.levelDom.push(f)})})}},r.getHorizontalBoolAndPlacementName=function(){var o=r.props.placement,c=o==="left"||o==="right",l="translate".concat(c?"X":"Y");return{isHorizontal:c,placementName:l}},r.state={_self:D1(r)},r}return t2(n,[{key:"componentDidMount",value:function(){var r=this;if(!Dy){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 c=this.props,l=c.open,h=c.getContainer,s=c.showMask,u=c.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),l&&(v&&v.parentNode===document.body&&(I9[this.drawerId]=l),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,c=o.open,l=o.getContainer,h=o.scrollLocker,s=o.showMask,u=o.autoFocus,v=l&&l();c!==r.open&&(v&&v.parentNode===document.body&&(I9[this.drawerId]=!!c),this.openLevelTransition(),c?(u&&this.domFocus(),s&&(h==null||h.lock())):h==null||h.unLock())}},{key:"componentWillUnmount",value:function(){var r=this.props,o=r.open,c=r.scrollLocker;delete I9[this.drawerId],o&&(this.setLevelTransform(!1),document.body.style.touchAction=""),c==null||c.unLock()}},{key:"render",value:function(){var r,o=this,c=this.props,l=c.className,h=c.children,s=c.style,u=c.width,v=c.height;c.defaultOpen;var f=c.open,d=c.prefixCls,M=c.placement;c.level,c.levelMove,c.ease,c.duration,c.getContainer;var g=c.handler;c.onChange,c.afterVisibleChange;var H=c.showMask,p=c.maskClosable,m=c.maskStyle,z=c.onClose,w=c.onHandleClick,x=c.keyboard;c.getOpenCount,c.scrollLocker;var y=c.contentWrapperStyle,V=d0(c,u91),C=this.dom?f:!1,L=E2(d,(r={},u1(r,"".concat(d,"-").concat(M),!0),u1(r,"".concat(d,"-open"),C),u1(r,l||"",!!l),u1(r,"no-mask",!H),r)),B=this.getHorizontalBoolAndPlacementName(),_=B.placementName,T=M==="left"||M==="top"?"-100%":"100%",P=C?"":"".concat(_,"(").concat(T,")"),F=g&&S.cloneElement(g,{onClick:function(U){g.props.onClick&&g.props.onClick(),w&&w(U)},ref:function(U){o.handlerDom=U}});return S.createElement("div",Zt({},jS(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&&S.createElement("div",{className:"".concat(d,"-mask"),onClick:p?z:void 0,style:m,ref:function(U){o.maskDom=U}}),S.createElement("div",{className:"".concat(d,"-content-wrapper"),style:Q1({transform:P,msTransform:P,width:rP(u)?"".concat(u,"px"):u,height:rP(v)?"".concat(v,"px"):v},y),ref:function(U){o.contentWrapper=U}},S.createElement("div",{className:"".concat(d,"-content"),ref:function(U){o.contentDom=U}},h),F))}}],[{key:"getDerivedStateFromProps",value:function(r,o){var c=o.prevProps,l=o._self,h={prevProps:r};if(c!==void 0){var s=r.placement,u=r.level;s!==c.placement&&(l.contentDom=null),u!==c.level&&l.getLevelDom(r)}return h}}]),n}(S.Component),v91=["defaultOpen","getContainer","wrapperClassName","forceRender","handler"],d91=["visible","afterClose"],Nm=function(t){M2(n,t);var e=B2(n);function n(a){var r;Jt(this,n),r=e.call(this,a),r.dom=void 0,r.onHandleClick=function(c){var l=r.props,h=l.onHandleClick,s=l.open;if(h&&h(c),typeof s>"u"){var u=r.state.open;r.setState({open:!u})}},r.onClose=function(c){var l=r.props,h=l.onClose,s=l.open;h&&h(c),typeof s>"u"&&r.setState({open:!1})};var o=typeof a.open<"u"?a.open:!!a.defaultOpen;return r.state={open:o},"onMaskClick"in a&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),r}return t2(n,[{key:"render",value:function(){var r=this,o=this.props;o.defaultOpen;var c=o.getContainer,l=o.wrapperClassName,h=o.forceRender,s=o.handler,u=d0(o,v91),v=this.state.open;if(!c)return S.createElement("div",{className:l,ref:function(M){r.dom=M}},S.createElement(iP,Zt({},u,{open:v,handler:s,getContainer:function(){return r.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var f=!!s||h;return S.createElement(xK,{visible:v,forceRender:f,getContainer:c,wrapperClassName:l},function(d){var M=d.visible,g=d.afterClose,H=d0(d,d91);return S.createElement(iP,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 c=o.prevProps,l={prevProps:r};return typeof c<"u"&&r.open!==c.open&&(l.open=r.open),l}}]),n}(S.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:S.createElement("div",{className:"drawer-handle"},S.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1,autoFocus:!0};const f91=Object.freeze(Object.defineProperty({__proto__:null,default:Nm},Symbol.toStringTag,{value:"Module"})),g91=se(f91);var V5={},Dm={},Rm={},so={},kr={};Object.defineProperty(kr,"__esModule",{value:!0});kr.setConfiguration=kr.getConfiguration=void 0;let zb={breakpoints:[576,768,992,1200,1600,1920],containerWidths:[540,750,960,1140,1540,1810],gutterWidth:30,gridColumns:12,defaultScreenClass:"xxl",maxScreenClass:"xxl"};const p91=()=>zb;kr.getConfiguration=p91;const m91=t=>{zb={...zb,...t}};kr.setConfiguration=m91;var Il={},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 n.default}}),Object.defineProperty(t,"Window",{enumerable:!0,get:function(){return a.default}});var e=r(jm),n=r(Im),a=r(Fm);function r(o){return o&&o.__esModule?o:{default:o}}})(Il);Object.defineProperty(so,"__esModule",{value:!0});so.useScreenClass=so.screenClasses=void 0;var oP=S,z91=kr,q7=Il;const M91=t=>t&&t.current&&t.current.clientWidth?t.current.clientWidth:typeof q7.Window<"u"&&q7.Window.innerWidth?q7.Window.innerWidth:null,Ry=so.screenClasses=["xs","sm","md","lg","xl","xxl","xxxl"],H91=(t,e)=>{const n=()=>{const{breakpoints:o,defaultScreenClass:c,maxScreenClass:l}=(0,z91.getConfiguration)();let h=c;const s=M91(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=Ry.indexOf(h),v=Ry.indexOf(l);return v>=0&&u>v&&(h=Ry[v]),h},[a,r]=(0,oP.useState)(()=>n());return(0,oP.useEffect)(()=>{const o=()=>r(n());return q7.Window.addEventListener("resize",o,!1),()=>{q7.Window.removeEventListener("resize",o,!1)}},[]),a};so.useScreenClass=H91;Object.defineProperty(Rm,"__esModule",{value:!0});Rm.default=void 0;var cP=so;const w91=t=>Object.keys(t).reduce((e,n)=>e||t[n],!1),Kv=(t,e)=>{if(typeof t!="number")return;const n=Math.max(0,Math.min(e,t));return`${100/e*n}%`};var y91=t=>{let{forceWidth:e=null,width:n={},offset:a={},pull:r={},push:o={},order:c={},debug:l,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 l&&(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(n[d],v),H=n[d]==="content";f.flexBasis=H?"auto":g||f.flexBasis,f.width=f.flexBasis,f.maxWidth=g||f.maxWidth,f.marginLeft=Kv(a[d],v)||f.marginLeft,f.right=Kv(r[d],v)||f.right,f.left=Kv(o[d],v)||f.left,c[d]&&(f.order=c[d])}}),w91(n)||(f.flexBasis=0,f.flexGrow=1),e&&(f.flexBasis="unset",f.flexGrow="unset",f.flexShrink="unset",f.width=e),{...f,...u}};Rm.default=y91;var Z8={},$m={};Object.defineProperty($m,"__esModule",{value:!0});$m.default=void 0;var x91=t=>{let{gutterWidth:e,align:n,justify:a,debug:r,moreStyle:o,direction:c,wrap:l}=t,h=n;n==="start"&&(h="flex-start"),n==="end"&&(h="flex-end");let s=a;a==="start"&&(s="flex-start"),a==="end"&&(s="flex-end"),a==="between"&&(s="space-between"),a==="around"&&(s="space-around"),a==="center"&&(s="center"),a==="initial"&&(s="initial"),a==="inherit"&&(s="inherit");const u=["column","row","column-reverse","row-reverse"].includes(c)?c:void 0;let v=l;l==="nowrap"&&(v="nowrap"),l==="wrap"&&(v="wrap"),l==="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=x91;Object.defineProperty(Z8,"__esModule",{value:!0});Z8.default=Z8.GutterWidthContext=void 0;var Hf=IS(S),Yn=IS(Pi),V91=kr,C91=IS($m),b91=Il;function IS(t){return t&&t.__esModule?t:{default:t}}const L91=Z8.GutterWidthContext=Hf.default.createContext(!1),FS=Hf.default.forwardRef((t,e)=>{let{children:n,style:a={},align:r="normal",justify:o="start",wrap:c="wrap",debug:l=!1,nogutter:h=!1,gutterWidth:s=null,component:u=b91.Div,direction:v="row",...f}=t,d=(0,V91.getConfiguration)().gutterWidth;h&&(d=0),typeof s=="number"&&(d=s);const M=(0,C91.default)({gutterWidth:d,align:r,justify:o,debug:l,moreStyle:a,direction:v,wrap:c});return Hf.default.createElement(u,{ref:e,style:M,...f},Hf.default.createElement(L91.Provider,{value:d},n))});FS.propTypes={children:Yn.default.node.isRequired,align:Yn.default.oneOf(["normal","start","center","end","stretch"]),justify:Yn.default.oneOf(["start","center","end","between","around","initial","inherit"]),direction:Yn.default.oneOf(["column","row","column-reverse","row-reverse"]),wrap:Yn.default.oneOf(["nowrap","wrap","reverse"]),nogutter:Yn.default.bool,gutterWidth:Yn.default.number,style:Yn.default.objectOf(Yn.default.oneOfType([Yn.default.number,Yn.default.string])),debug:Yn.default.bool,component:Yn.default.elementType};FS.displayName="Row";Z8.default=FS;var bo={},vi={};Object.defineProperty(vi,"__esModule",{value:!0});vi.default=vi.ScreenClassContext=vi.NO_PROVIDER_FLAG=void 0;var H3=O91(S),jy=T91(Pi),B91=so,S91=kr,_91=Il;function T91(t){return t&&t.__esModule?t:{default:t}}function LK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(LK=function(a){return a?n:e})(t)}function O91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=LK(e);if(n&&n.has(t))return n.get(t);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=r?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(a,o,c):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}const A91=vi.NO_PROVIDER_FLAG="NO_PROVIDER_FLAG",k91=vi.ScreenClassContext=H3.default.createContext(A91),BK=t=>{let{useOwnWidth:e=!1,children:n,fallbackScreenClass:a=null}=t;const r=(0,H3.useRef)(),[o,c]=(0,H3.useState)(!1),l=(0,B91.useScreenClass)(r,a),{defaultScreenClass:h}=(0,S91.getConfiguration)(),s=o?l:a||h;return(0,H3.useEffect)(()=>c(!0),[]),H3.default.createElement(k91.Provider,{value:s},e?H3.default.createElement(_91.Div,{ref:e?r:null},n):H3.default.createElement(H3.default.Fragment,null,n))};BK.propTypes={children:jy.default.node.isRequired,useOwnWidth:jy.default.bool,fallbackScreenClass:jy.default.oneOf([null,"xs","sm","md","lg","xl","xxl","xxxl"])};vi.default=BK;Object.defineProperty(bo,"__esModule",{value:!0});bo.default=void 0;var Iy=_K(S),E91=_K(Pi),Yv=P91(vi);function SK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(SK=function(a){return a?n:e})(t)}function P91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=SK(e);if(n&&n.has(t))return n.get(t);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=r?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(a,o,c):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}function _K(t){return t&&t.__esModule?t:{default:t}}const TK=t=>{let{children:e}=t;return Iy.default.createElement(Yv.ScreenClassContext.Consumer,null,n=>n===Yv.NO_PROVIDER_FLAG?Iy.default.createElement(Yv.default,null,Iy.default.createElement(Yv.ScreenClassContext.Consumer,null,a=>e(a))):e(n))};TK.propTypes={children:E91.default.func.isRequired};bo.default=TK;Object.defineProperty(Dm,"__esModule",{value:!0});Dm.default=void 0;var Zv=F91(S),Yt=$S(Pi),N91=$S(Rm),D91=kr,R91=Z8,j91=$S(bo),I91=Il;function $S(t){return t&&t.__esModule?t:{default:t}}function OK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(OK=function(a){return a?n: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 n=OK(e);if(n&&n.has(t))return n.get(t);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=r?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(a,o,c):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}const US=Zv.default.forwardRef((t,e)=>{let{children:n=null,xs:a=null,sm:r=null,md:o=null,lg:c=null,xl:l=null,xxl:h=null,xxxl:s=null,offset:u={},pull:v={},push:f={},order:d={},debug:M=!1,style:g={},component:H=I91.Div,width:p=null,...m}=t;return Zv.default.createElement(j91.default,null,z=>Zv.default.createElement(R91.GutterWidthContext.Consumer,null,w=>{const x=(0,N91.default)({forceWidth:p,width:{xs:a,sm:r,md:o,lg:c,xl:l,xxl:h,xxxl:s},offset:u,pull:v,push:f,order:d,debug:M,screenClass:z,gutterWidth:w,gridColumns:(0,D91.getConfiguration)().gridColumns,moreStyle:g});return(0,Zv.createElement)(H,{ref:e,style:x,...m,children:n})}))});US.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};US.displayName="Col";Dm.default=US;var Um={},Wm={};Object.defineProperty(Wm,"__esModule",{value:!0});Wm.default=void 0;var $91=t=>{let{fluid:e,xs:n,sm:a,md:r,lg:o,xl:c,xxl:l,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&&!n&&!a&&!r&&!o&&!c?{...d,...f}:(s==="xs"&&u[0]&&!n&&(d.maxWidth=u[0]),s==="sm"&&u[0]&&!a&&(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]&&!c&&(d.maxWidth=u[3]),s==="xxl"&&u[4]&&!l&&(d.maxWidth=u[4]),s==="xxxl"&&u[5]&&!h&&(d.maxWidth=u[5]),{...d,...f})};Wm.default=$91;Object.defineProperty(Um,"__esModule",{value:!0});Um.default=void 0;var Fy=G91(S),bn=WS(Pi),U91=WS(Wm),lP=kr,W91=WS(bo),q91=Il;function WS(t){return t&&t.__esModule?t:{default:t}}function AK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(AK=function(a){return a?n:e})(t)}function G91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=AK(e);if(n&&n.has(t))return n.get(t);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=r?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(a,o,c):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}const qS=Fy.default.forwardRef((t,e)=>{let{children:n,fluid:a=!1,xs:r=!1,sm:o=!1,md:c=!1,lg:l=!1,xl:h=!1,xxl:s=!1,xxxl:u=!1,style:v={},component:f=q91.Div,...d}=t;return Fy.default.createElement(W91.default,null,M=>(0,Fy.createElement)(f,{ref:e,style:(0,U91.default)({fluid:a,xs:r,sm:o,md:c,lg:l,xl:h,xxl:s,xxxl:u,screenClass:M,containerWidths:(0,lP.getConfiguration)().containerWidths,gutterWidth:(0,lP.getConfiguration)().gutterWidth,moreStyle:v}),...d},n))});qS.propTypes={children:bn.default.node.isRequired,fluid:bn.default.bool,xs:bn.default.bool,sm:bn.default.bool,md:bn.default.bool,lg:bn.default.bool,xl:bn.default.bool,xxl:bn.default.bool,xxxl:bn.default.bool,style:bn.default.objectOf(bn.default.oneOfType([bn.default.number,bn.default.string])),component:bn.default.elementType};qS.displayName="Container";Um.default=qS;var qm={},hl={};Object.defineProperty(hl,"__esModule",{value:!0});hl.hidden=hl.default=void 0;const kK=t=>{let{screenClass:e,xs:n,sm:a,md:r,lg:o,xl:c,xxl:l,xxxl:h}=t;return e==="xxl"?l:e==="xxxl"?h:e==="xl"?c:e==="lg"?o:e==="md"?r:e==="sm"?a:n};hl.hidden=kK;hl.default=kK;Object.defineProperty(qm,"__esModule",{value:!0});qm.default=void 0;var K91=GS(S),c3=GS(Pi),Y91=Q91(hl),Z91=GS(bo);function EK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(EK=function(a){return a?n:e})(t)}function Q91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=EK(e);if(n&&n.has(t))return n.get(t);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=r?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(a,o,c):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}function GS(t){return t&&t.__esModule?t:{default:t}}const PK=t=>{let{children:e,xs:n=!1,sm:a=!1,md:r=!1,lg:o=!1,xl:c=!1,xxl:l=!1,xxxl:h=!1}=t;return K91.default.createElement(Z91.default,null,s=>Y91.hidden({screenClass:s,xs:n,sm:a,md:r,lg:o,xl:c,xxl:l,xxxl:h})?null:e)};PK.propTypes={children:c3.default.node.isRequired,xs:c3.default.bool,sm:c3.default.bool,md:c3.default.bool,lg:c3.default.bool,xl:c3.default.bool,xxl:c3.default.bool,xxxl:c3.default.bool};qm.default=PK;var Gm={},ul={};Object.defineProperty(ul,"__esModule",{value:!0});ul.visible=ul.default=void 0;const NK=t=>{let{screenClass:e,xs:n,sm:a,md:r,lg:o,xl:c,xxl:l,xxxl:h}=t;return e==="xxl"?l:e==="xxxl"?h:e==="xl"?c:e==="lg"?o:e==="md"?r:e==="sm"?a:n};ul.visible=NK;ul.default=NK;Object.defineProperty(Gm,"__esModule",{value:!0});Gm.default=void 0;var X91=KS(S),l3=KS(Pi),J91=e71(ul),t71=KS(bo);function DK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(DK=function(a){return a?n:e})(t)}function e71(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=DK(e);if(n&&n.has(t))return n.get(t);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=r?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(a,o,c):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}function KS(t){return t&&t.__esModule?t:{default:t}}const RK=t=>{let{children:e,xs:n=!1,sm:a=!1,md:r=!1,lg:o=!1,xl:c=!1,xxl:l=!1,xxxl:h=!1}=t;return X91.default.createElement(t71.default,null,s=>J91.visible({screenClass:s,xs:n,sm:a,md:r,lg:o,xl:c,xxl:l,xxxl:h})?e:null)};RK.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=RK;var Km={};Object.defineProperty(Km,"__esModule",{value:!0});Km.default=void 0;var n71=YS(S),a71=YS(Pi),r71=YS(bo);function YS(t){return t&&t.__esModule?t:{default:t}}const jK=t=>{let{render:e}=t;return n71.default.createElement(r71.default,null,n=>e(n))};jK.propTypes={render:a71.default.func.isRequired};Km.default=jK;(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 n.default}}),Object.defineProperty(t,"Hidden",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Row",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"ScreenClassContext",{enumerable:!0,get:function(){return l.ScreenClassContext}}),Object.defineProperty(t,"ScreenClassProvider",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"ScreenClassRender",{enumerable:!0,get:function(){return c.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),n=f(Um),a=f(Z8),r=f(qm),o=f(Gm),c=f(Km),l=v(vi),h=kr,s=so;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}}})(V5);var $y={},Rs={},Ym={};Object.defineProperty(Ym,"__esModule",{value:!0});Ym.setAvatarBySize=void 0;var i71=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=i71;(function(t){var e=b&&b.__makeTemplateObject||function(M,g){return Object.defineProperty?Object.defineProperty(M,"raw",{value:g}):M.raw=g,M},n=b&&b.__assign||function(){return n=Object.assign||function(M){for(var g,H=1,p=arguments.length;H=ot.F1&&n<=ot.F12)return!1;switch(n){case ot.ALT:case ot.CAPS_LOCK:case ot.CONTEXT_MENU:case ot.CTRL:case ot.DOWN:case ot.END:case ot.ESC:case ot.HOME:case ot.INSERT:case ot.LEFT:case ot.MAC_FF_META:case ot.META:case ot.NUMLOCK:case ot.NUM_CENTER:case ot.PAGE_DOWN:case ot.PAGE_UP:case ot.PAUSE:case ot.PRINT_SCREEN:case ot.RIGHT:case ot.SHIFT:case ot.UP:case ot.WIN_KEY:case ot.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ot.ZERO&&e<=ot.NINE||e>=ot.NUM_ZERO&&e<=ot.NUM_MULTIPLY||e>=ot.A&&e<=ot.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case ot.SPACE:case ot.QUESTION_MARK:case ot.NUM_PLUS:case ot.NUM_MINUS:case ot.NUM_PERIOD:case ot.NUM_DIVISION:case ot.SEMICOLON:case ot.DASH:case ot.EQUALS:case ot.COMMA:case ot.PERIOD:case ot.SLASH:case ot.APOSTROPHE:case ot.SINGLE_QUOTE:case ot.OPEN_SQUARE_BRACKET:case ot.BACKSLASH:case ot.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function j_(t,e){var n=Q1({},t);return Array.isArray(e)&&e.forEach(function(a){delete n[a]}),n}function h91(t){return Array.isArray(t)?t:[t]}var bK={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},LK=Object.keys(bK).filter(function(t){if(typeof document>"u")return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],eP=bK[LK];function nP(t,e,n,a){t.addEventListener?t.addEventListener(e,n,a):t.attachEvent&&t.attachEvent("on".concat(e),n)}function aP(t,e,n,a){t.removeEventListener?t.removeEventListener(e,n,a):t.attachEvent&&t.detachEvent("on".concat(e),n)}function u91(t,e){var n=typeof t=="function"?t(e):t;return Array.isArray(n)?n.length===2?n:[n[0],n[1]]:[n]}var rP=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Dy=!(typeof window<"u"&&window.document&&window.document.createElement),v91=function t(e,n,a,r){if(!n||n===document||n instanceof Document)return!1;if(n===e.parentNode)return!0;var o=Math.max(Math.abs(a),Math.abs(r))===Math.abs(r),c=Math.max(Math.abs(a),Math.abs(r))===Math.abs(a),l=n.scrollHeight-n.clientHeight,h=n.scrollWidth-n.clientWidth,s=document.defaultView.getComputedStyle(n),u=s.overflowY==="auto"||s.overflowY==="scroll",v=s.overflowX==="auto"||s.overflowX==="scroll",f=l&&u,d=h&&v;return o&&(!f||f&&(n.scrollTop>=l&&r<0||n.scrollTop<=0&&r>0))||c&&(!d||d&&(n.scrollLeft>=h&&a<0||n.scrollLeft<=0&&a>0))?t(e,n.parentNode,a,r):!1},d91=["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={},iP=function(t){M2(n,t);var e=B2(n);function n(a){var r;return Jt(this,n),r=e.call(this,a),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 c=o.currentTarget,l=o.changedTouches[0].clientX-r.startPos.x,h=o.changedTouches[0].clientY-r.startPos.y;(c===r.maskDom||c===r.handlerDom||c===r.contentDom&&v91(c,o.target,l,h))&&o.cancelable&&o.preventDefault()}},r.transitionEnd=function(o){var c=o.target;aP(c,eP,r.transitionEnd),c.style.transition=""},r.onKeyDown=function(o){if(o.keyCode===ot.ESC){var c=r.props.onClose;o.stopPropagation(),c&&c(o)}},r.onWrapperTransitionEnd=function(o){var c=r.props,l=c.open,h=c.afterVisibleChange;o.target===r.contentWrapper&&o.propertyName.match(/transform$/)&&(r.dom.style.transition="",!l&&r.getCurrentDrawerSome()&&(document.body.style.overflowX="",r.maskDom&&(r.maskDom.style.left="",r.maskDom.style.width="")),h&&h(!!l))},r.openLevelTransition=function(){var o=r.props,c=o.open,l=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?l:h)||f;r.setLevelAndScrolling(c,v,d)},r.setLevelTransform=function(o,c,l,h){var s=r.props,u=s.placement,v=s.levelMove,f=s.duration,d=s.ease,z=s.showMask;r.levelDom.forEach(function(g){g.style.transition="transform ".concat(f," ").concat(d),nP(g,eP,r.transitionEnd);var H=o?l:0;if(v){var p=u91(v,{target:g,open:o});H=o?p[0]:p[1]||0}var m=typeof H=="number"?"".concat(H,"px"):H,M=u==="left"||u==="top"?m:"-".concat(m);M=z&&u==="right"&&h?"calc(".concat(M," + ").concat(h,"px)"):M,g.style.transform=H?"".concat(c,"(").concat(M,")"):""})},r.setLevelAndScrolling=function(o,c,l){var h=r.props.onChange;if(!Dy){var s=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Em(!0):0;r.setLevelTransform(o,c,l,s),r.toggleScrollingToDrawerAndBody(s)}h&&h(o)},r.toggleScrollingToDrawerAndBody=function(o){var c=r.props,l=c.getContainer,h=c.showMask,s=c.open,u=l&&l();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,z){d&&nP(d,v[z]||"touchmove",z?r.removeMoveHandler:r.removeStartHandler,r.passive)})):r.getCurrentDrawerSome()&&(document.body.style.touchAction="",o&&r.remScrollingEffect(o),f.forEach(function(d,z){d&&aP(d,v[z]||"touchmove",z?r.removeMoveHandler:r.removeStartHandler,r.passive)}))}},r.addScrollingEffect=function(o){var c=r.props,l=c.placement,h=c.duration,s=c.ease,u="width ".concat(h," ").concat(s),v="transform ".concat(h," ").concat(s);switch(r.dom.style.transition="none",l){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 c=r.props,l=c.placement,h=c.duration,s=c.ease;LK&&(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(l){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 c=o.level,l=o.getContainer;if(!Dy){var h=l&&l(),s=h?h.parentNode:null;if(r.levelDom=[],c==="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 c&&h91(c).forEach(function(v){document.querySelectorAll(v).forEach(function(f){r.levelDom.push(f)})})}},r.getHorizontalBoolAndPlacementName=function(){var o=r.props.placement,c=o==="left"||o==="right",l="translate".concat(c?"X":"Y");return{isHorizontal:c,placementName:l}},r.state={_self:D1(r)},r}return t2(n,[{key:"componentDidMount",value:function(){var r=this;if(!Dy){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 c=this.props,l=c.open,h=c.getContainer,s=c.showMask,u=c.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),l&&(v&&v.parentNode===document.body&&(I9[this.drawerId]=l),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,c=o.open,l=o.getContainer,h=o.scrollLocker,s=o.showMask,u=o.autoFocus,v=l&&l();c!==r.open&&(v&&v.parentNode===document.body&&(I9[this.drawerId]=!!c),this.openLevelTransition(),c?(u&&this.domFocus(),s&&(h==null||h.lock())):h==null||h.unLock())}},{key:"componentWillUnmount",value:function(){var r=this.props,o=r.open,c=r.scrollLocker;delete I9[this.drawerId],o&&(this.setLevelTransform(!1),document.body.style.touchAction=""),c==null||c.unLock()}},{key:"render",value:function(){var r,o=this,c=this.props,l=c.className,h=c.children,s=c.style,u=c.width,v=c.height;c.defaultOpen;var f=c.open,d=c.prefixCls,z=c.placement;c.level,c.levelMove,c.ease,c.duration,c.getContainer;var g=c.handler;c.onChange,c.afterVisibleChange;var H=c.showMask,p=c.maskClosable,m=c.maskStyle,M=c.onClose,w=c.onHandleClick,x=c.keyboard;c.getOpenCount,c.scrollLocker;var y=c.contentWrapperStyle,V=d0(c,d91),C=this.dom?f:!1,L=E2(d,(r={},u1(r,"".concat(d,"-").concat(z),!0),u1(r,"".concat(d,"-open"),C),u1(r,l||"",!!l),u1(r,"no-mask",!H),r)),B=this.getHorizontalBoolAndPlacementName(),S=B.placementName,T=z==="left"||z==="top"?"-100%":"100%",P=C?"":"".concat(S,"(").concat(T,")"),F=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({},j_(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?M:void 0,style:m,ref:function(U){o.maskDom=U}}),_.createElement("div",{className:"".concat(d,"-content-wrapper"),style:Q1({transform:P,msTransform:P,width:rP(u)?"".concat(u,"px"):u,height:rP(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),F))}}],[{key:"getDerivedStateFromProps",value:function(r,o){var c=o.prevProps,l=o._self,h={prevProps:r};if(c!==void 0){var s=r.placement,u=r.level;s!==c.placement&&(l.contentDom=null),u!==c.level&&l.getLevelDom(r)}return h}}]),n}(_.Component),f91=["defaultOpen","getContainer","wrapperClassName","forceRender","handler"],g91=["visible","afterClose"],Nm=function(t){M2(n,t);var e=B2(n);function n(a){var r;Jt(this,n),r=e.call(this,a),r.dom=void 0,r.onHandleClick=function(c){var l=r.props,h=l.onHandleClick,s=l.open;if(h&&h(c),typeof s>"u"){var u=r.state.open;r.setState({open:!u})}},r.onClose=function(c){var l=r.props,h=l.onClose,s=l.open;h&&h(c),typeof s>"u"&&r.setState({open:!1})};var o=typeof a.open<"u"?a.open:!!a.defaultOpen;return r.state={open:o},"onMaskClick"in a&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),r}return t2(n,[{key:"render",value:function(){var r=this,o=this.props;o.defaultOpen;var c=o.getContainer,l=o.wrapperClassName,h=o.forceRender,s=o.handler,u=d0(o,f91),v=this.state.open;if(!c)return _.createElement("div",{className:l,ref:function(z){r.dom=z}},_.createElement(iP,Zt({},u,{open:v,handler:s,getContainer:function(){return r.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var f=!!s||h;return _.createElement(VK,{visible:v,forceRender:f,getContainer:c,wrapperClassName:l},function(d){var z=d.visible,g=d.afterClose,H=d0(d,g91);return _.createElement(iP,Zt({},u,H,{open:z!==void 0?z:v,afterVisibleChange:g!==void 0?g:u.afterVisibleChange,handler:s,onClose:r.onClose,onHandleClick:r.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(r,o){var c=o.prevProps,l={prevProps:r};return typeof c<"u"&&r.open!==c.open&&(l.open=r.open),l}}]),n}(_.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 p91=Object.freeze(Object.defineProperty({__proto__:null,default:Nm},Symbol.toStringTag,{value:"Module"})),m91=se(p91);var xi={},Dm={},Rm={},ho={},kr={};Object.defineProperty(kr,"__esModule",{value:!0});kr.setConfiguration=kr.getConfiguration=void 0;let zb={breakpoints:[576,768,992,1200,1600,1920],containerWidths:[540,750,960,1140,1540,1810],gutterWidth:30,gridColumns:12,defaultScreenClass:"xxl",maxScreenClass:"xxl"};const z91=()=>zb;kr.getConfiguration=z91;const M91=t=>{zb={...zb,...t}};kr.setConfiguration=M91;var I6={},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 n.default}}),Object.defineProperty(t,"Window",{enumerable:!0,get:function(){return a.default}});var e=r(jm),n=r(Im),a=r(Fm);function r(o){return o&&o.__esModule?o:{default:o}}})(I6);Object.defineProperty(ho,"__esModule",{value:!0});ho.useScreenClass=ho.screenClasses=void 0;var oP=_,H91=kr,q7=I6;const w91=t=>t&&t.current&&t.current.clientWidth?t.current.clientWidth:typeof q7.Window<"u"&&q7.Window.innerWidth?q7.Window.innerWidth:null,Ry=ho.screenClasses=["xs","sm","md","lg","xl","xxl","xxxl"],y91=(t,e)=>{const n=()=>{const{breakpoints:o,defaultScreenClass:c,maxScreenClass:l}=(0,H91.getConfiguration)();let h=c;const s=w91(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=Ry.indexOf(h),v=Ry.indexOf(l);return v>=0&&u>v&&(h=Ry[v]),h},[a,r]=(0,oP.useState)(()=>n());return(0,oP.useEffect)(()=>{const o=()=>r(n());return q7.Window.addEventListener("resize",o,!1),()=>{q7.Window.removeEventListener("resize",o,!1)}},[]),a};ho.useScreenClass=y91;Object.defineProperty(Rm,"__esModule",{value:!0});Rm.default=void 0;var cP=ho;const x91=t=>Object.keys(t).reduce((e,n)=>e||t[n],!1),Kv=(t,e)=>{if(typeof t!="number")return;const n=Math.max(0,Math.min(e,t));return`${100/e*n}%`};var V91=t=>{let{forceWidth:e=null,width:n={},offset:a={},pull:r={},push:o={},order:c={},debug:l,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 l&&(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,z)=>{if(cP.screenClasses.indexOf(h)>=z){const g=Kv(n[d],v),H=n[d]==="content";f.flexBasis=H?"auto":g||f.flexBasis,f.width=f.flexBasis,f.maxWidth=g||f.maxWidth,f.marginLeft=Kv(a[d],v)||f.marginLeft,f.right=Kv(r[d],v)||f.right,f.left=Kv(o[d],v)||f.left,c[d]&&(f.order=c[d])}}),x91(n)||(f.flexBasis=0,f.flexGrow=1),e&&(f.flexBasis="unset",f.flexGrow="unset",f.flexShrink="unset",f.width=e),{...f,...u}};Rm.default=V91;var Q8={},$m={};Object.defineProperty($m,"__esModule",{value:!0});$m.default=void 0;var C91=t=>{let{gutterWidth:e,align:n,justify:a,debug:r,moreStyle:o,direction:c,wrap:l}=t,h=n;n==="start"&&(h="flex-start"),n==="end"&&(h="flex-end");let s=a;a==="start"&&(s="flex-start"),a==="end"&&(s="flex-end"),a==="between"&&(s="space-between"),a==="around"&&(s="space-around"),a==="center"&&(s="center"),a==="initial"&&(s="initial"),a==="inherit"&&(s="inherit");const u=["column","row","column-reverse","row-reverse"].includes(c)?c:void 0;let v=l;l==="nowrap"&&(v="nowrap"),l==="wrap"&&(v="wrap"),l==="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=C91;Object.defineProperty(Q8,"__esModule",{value:!0});Q8.default=Q8.GutterWidthContext=void 0;var Hf=I_(_),Yn=I_(E5),b91=kr,L91=I_($m),B91=I6;function I_(t){return t&&t.__esModule?t:{default:t}}const _91=Q8.GutterWidthContext=Hf.default.createContext(!1),F_=Hf.default.forwardRef((t,e)=>{let{children:n,style:a={},align:r="normal",justify:o="start",wrap:c="wrap",debug:l=!1,nogutter:h=!1,gutterWidth:s=null,component:u=B91.Div,direction:v="row",...f}=t,d=(0,b91.getConfiguration)().gutterWidth;h&&(d=0),typeof s=="number"&&(d=s);const z=(0,L91.default)({gutterWidth:d,align:r,justify:o,debug:l,moreStyle:a,direction:v,wrap:c});return Hf.default.createElement(u,{ref:e,style:z,...f},Hf.default.createElement(_91.Provider,{value:d},n))});F_.propTypes={children:Yn.default.node.isRequired,align:Yn.default.oneOf(["normal","start","center","end","stretch"]),justify:Yn.default.oneOf(["start","center","end","between","around","initial","inherit"]),direction:Yn.default.oneOf(["column","row","column-reverse","row-reverse"]),wrap:Yn.default.oneOf(["nowrap","wrap","reverse"]),nogutter:Yn.default.bool,gutterWidth:Yn.default.number,style:Yn.default.objectOf(Yn.default.oneOfType([Yn.default.number,Yn.default.string])),debug:Yn.default.bool,component:Yn.default.elementType};F_.displayName="Row";Q8.default=F_;var Lo={},u5={};Object.defineProperty(u5,"__esModule",{value:!0});u5.default=u5.ScreenClassContext=u5.NO_PROVIDER_FLAG=void 0;var M3=k91(_),jy=A91(E5),S91=ho,T91=kr,O91=I6;function A91(t){return t&&t.__esModule?t:{default:t}}function BK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(BK=function(a){return a?n: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 n=BK(e);if(n&&n.has(t))return n.get(t);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=r?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(a,o,c):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}const E91=u5.NO_PROVIDER_FLAG="NO_PROVIDER_FLAG",P91=u5.ScreenClassContext=M3.default.createContext(E91),_K=t=>{let{useOwnWidth:e=!1,children:n,fallbackScreenClass:a=null}=t;const r=(0,M3.useRef)(),[o,c]=(0,M3.useState)(!1),l=(0,S91.useScreenClass)(r,a),{defaultScreenClass:h}=(0,T91.getConfiguration)(),s=o?l:a||h;return(0,M3.useEffect)(()=>c(!0),[]),M3.default.createElement(P91.Provider,{value:s},e?M3.default.createElement(O91.Div,{ref:e?r:null},n):M3.default.createElement(M3.default.Fragment,null,n))};_K.propTypes={children:jy.default.node.isRequired,useOwnWidth:jy.default.bool,fallbackScreenClass:jy.default.oneOf([null,"xs","sm","md","lg","xl","xxl","xxxl"])};u5.default=_K;Object.defineProperty(Lo,"__esModule",{value:!0});Lo.default=void 0;var Iy=TK(_),N91=TK(E5),Yv=D91(u5);function SK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(SK=function(a){return a?n: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 n=SK(e);if(n&&n.has(t))return n.get(t);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=r?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(a,o,c):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}function TK(t){return t&&t.__esModule?t:{default:t}}const OK=t=>{let{children:e}=t;return Iy.default.createElement(Yv.ScreenClassContext.Consumer,null,n=>n===Yv.NO_PROVIDER_FLAG?Iy.default.createElement(Yv.default,null,Iy.default.createElement(Yv.ScreenClassContext.Consumer,null,a=>e(a))):e(n))};OK.propTypes={children:N91.default.func.isRequired};Lo.default=OK;Object.defineProperty(Dm,"__esModule",{value:!0});Dm.default=void 0;var Zv=U91(_),Yt=$_(E5),R91=$_(Rm),j91=kr,I91=Q8,F91=$_(Lo),$91=I6;function $_(t){return t&&t.__esModule?t:{default:t}}function AK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(AK=function(a){return a?n:e})(t)}function U91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=AK(e);if(n&&n.has(t))return n.get(t);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=r?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(a,o,c):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}const U_=Zv.default.forwardRef((t,e)=>{let{children:n=null,xs:a=null,sm:r=null,md:o=null,lg:c=null,xl:l=null,xxl:h=null,xxxl:s=null,offset:u={},pull:v={},push:f={},order:d={},debug:z=!1,style:g={},component:H=$91.Div,width:p=null,...m}=t;return Zv.default.createElement(F91.default,null,M=>Zv.default.createElement(I91.GutterWidthContext.Consumer,null,w=>{const x=(0,R91.default)({forceWidth:p,width:{xs:a,sm:r,md:o,lg:c,xl:l,xxl:h,xxxl:s},offset:u,pull:v,push:f,order:d,debug:z,screenClass:M,gutterWidth:w,gridColumns:(0,j91.getConfiguration)().gridColumns,moreStyle:g});return(0,Zv.createElement)(H,{ref:e,style:x,...m,children:n})}))});U_.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};U_.displayName="Col";Dm.default=U_;var Um={},Wm={};Object.defineProperty(Wm,"__esModule",{value:!0});Wm.default=void 0;var W91=t=>{let{fluid:e,xs:n,sm:a,md:r,lg:o,xl:c,xxl:l,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&&!n&&!a&&!r&&!o&&!c?{...d,...f}:(s==="xs"&&u[0]&&!n&&(d.maxWidth=u[0]),s==="sm"&&u[0]&&!a&&(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]&&!c&&(d.maxWidth=u[3]),s==="xxl"&&u[4]&&!l&&(d.maxWidth=u[4]),s==="xxxl"&&u[5]&&!h&&(d.maxWidth=u[5]),{...d,...f})};Wm.default=W91;Object.defineProperty(Um,"__esModule",{value:!0});Um.default=void 0;var Fy=Y91(_),bn=W_(E5),q91=W_(Wm),lP=kr,G91=W_(Lo),K91=I6;function W_(t){return t&&t.__esModule?t:{default:t}}function kK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(kK=function(a){return a?n:e})(t)}function Y91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=kK(e);if(n&&n.has(t))return n.get(t);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=r?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(a,o,c):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}const q_=Fy.default.forwardRef((t,e)=>{let{children:n,fluid:a=!1,xs:r=!1,sm:o=!1,md:c=!1,lg:l=!1,xl:h=!1,xxl:s=!1,xxxl:u=!1,style:v={},component:f=K91.Div,...d}=t;return Fy.default.createElement(G91.default,null,z=>(0,Fy.createElement)(f,{ref:e,style:(0,q91.default)({fluid:a,xs:r,sm:o,md:c,lg:l,xl:h,xxl:s,xxxl:u,screenClass:z,containerWidths:(0,lP.getConfiguration)().containerWidths,gutterWidth:(0,lP.getConfiguration)().gutterWidth,moreStyle:v}),...d},n))});q_.propTypes={children:bn.default.node.isRequired,fluid:bn.default.bool,xs:bn.default.bool,sm:bn.default.bool,md:bn.default.bool,lg:bn.default.bool,xl:bn.default.bool,xxl:bn.default.bool,xxxl:bn.default.bool,style:bn.default.objectOf(bn.default.oneOfType([bn.default.number,bn.default.string])),component:bn.default.elementType};q_.displayName="Container";Um.default=q_;var qm={},h6={};Object.defineProperty(h6,"__esModule",{value:!0});h6.hidden=h6.default=void 0;const EK=t=>{let{screenClass:e,xs:n,sm:a,md:r,lg:o,xl:c,xxl:l,xxxl:h}=t;return e==="xxl"?l:e==="xxxl"?h:e==="xl"?c:e==="lg"?o:e==="md"?r:e==="sm"?a:n};h6.hidden=EK;h6.default=EK;Object.defineProperty(qm,"__esModule",{value:!0});qm.default=void 0;var Z91=G_(_),o3=G_(E5),Q91=J91(h6),X91=G_(Lo);function PK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(PK=function(a){return a?n: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 n=PK(e);if(n&&n.has(t))return n.get(t);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=r?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(a,o,c):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}function G_(t){return t&&t.__esModule?t:{default:t}}const NK=t=>{let{children:e,xs:n=!1,sm:a=!1,md:r=!1,lg:o=!1,xl:c=!1,xxl:l=!1,xxxl:h=!1}=t;return Z91.default.createElement(X91.default,null,s=>Q91.hidden({screenClass:s,xs:n,sm:a,md:r,lg:o,xl:c,xxl:l,xxxl:h})?null:e)};NK.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=NK;var Gm={},u6={};Object.defineProperty(u6,"__esModule",{value:!0});u6.visible=u6.default=void 0;const DK=t=>{let{screenClass:e,xs:n,sm:a,md:r,lg:o,xl:c,xxl:l,xxxl:h}=t;return e==="xxl"?l:e==="xxxl"?h:e==="xl"?c:e==="lg"?o:e==="md"?r:e==="sm"?a:n};u6.visible=DK;u6.default=DK;Object.defineProperty(Gm,"__esModule",{value:!0});Gm.default=void 0;var t71=K_(_),c3=K_(E5),e71=a71(u6),n71=K_(Lo);function RK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(RK=function(a){return a?n:e})(t)}function a71(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=RK(e);if(n&&n.has(t))return n.get(t);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=r?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(a,o,c):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}function K_(t){return t&&t.__esModule?t:{default:t}}const jK=t=>{let{children:e,xs:n=!1,sm:a=!1,md:r=!1,lg:o=!1,xl:c=!1,xxl:l=!1,xxxl:h=!1}=t;return t71.default.createElement(n71.default,null,s=>e71.visible({screenClass:s,xs:n,sm:a,md:r,lg:o,xl:c,xxl:l,xxxl:h})?e:null)};jK.propTypes={children:c3.default.node.isRequired,xs:c3.default.bool,sm:c3.default.bool,md:c3.default.bool,lg:c3.default.bool,xl:c3.default.bool,xxl:c3.default.bool,xxxl:c3.default.bool};Gm.default=jK;var Km={};Object.defineProperty(Km,"__esModule",{value:!0});Km.default=void 0;var r71=Y_(_),i71=Y_(E5),o71=Y_(Lo);function Y_(t){return t&&t.__esModule?t:{default:t}}const IK=t=>{let{render:e}=t;return r71.default.createElement(o71.default,null,n=>e(n))};IK.propTypes={render:i71.default.func.isRequired};Km.default=IK;(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 n.default}}),Object.defineProperty(t,"Hidden",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Row",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"ScreenClassContext",{enumerable:!0,get:function(){return l.ScreenClassContext}}),Object.defineProperty(t,"ScreenClassProvider",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"ScreenClassRender",{enumerable:!0,get:function(){return c.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),n=f(Um),a=f(Q8),r=f(qm),o=f(Gm),c=f(Km),l=v(u5),h=kr,s=ho;function u(d){if(typeof WeakMap!="function")return null;var z=new WeakMap,g=new WeakMap;return(u=function(H){return H?g:z})(d)}function v(d,z){if(!z&&d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var g=u(z);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 M=p?Object.getOwnPropertyDescriptor(d,m):null;M&&(M.get||M.set)?Object.defineProperty(H,m,M):H[m]=d[m]}return H.default=d,g&&g.set(d,H),H}function f(d){return d&&d.__esModule?d:{default:d}}})(xi);var $y={},Rs={},Ym={};Object.defineProperty(Ym,"__esModule",{value:!0});Ym.setAvatarBySize=void 0;var c71=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=c71;(function(t){var e=b&&b.__makeTemplateObject||function(z,g){return Object.defineProperty?Object.defineProperty(z,"raw",{value:g}):z.raw=g,z},n=b&&b.__assign||function(){return n=Object.assign||function(z){for(var g,H=1,p=arguments.length;HQ?Q:k},a=n,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]=a(k[j],0,255)):j===3&&(k[j]=a(k[j],0,1));return k},o={},c=0,l=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];c=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:n,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 l1=this;if(z(j[0])==="object"&&j[0].constructor&&j[0].constructor===this.constructor)return j[0];var S1=p(j),T1=!1;if(!S1){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),l1>=1?0:255*(1-l1)*(1-T1),S1>=1?0:255*(1-S1)*(1-T1),y1]},W=F,U=C,Z=y,I=H,t1=g.unpack,R=g.type,i1=T;Z.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(Z,[null].concat(k,["cmyk"])))},I.format.cmyk=W,I.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"),l1=A(k)||"lsa";return Q[0]=o1(Q[0]||0),Q[1]=o1(Q[1]*100)+"%",Q[2]=o1(Q[2]*100)+"%",l1==="hsla"||Q.length>3&&Q[3]<1?(Q[3]=Q.length>3?Q[3]:1,l1="hsla"):Q.length=3,l1+"("+Q.join(",")+")"},n1=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],l1=k[1],S1=k[2];Q/=255,l1/=255,S1/=255;var T1=Math.min(Q,l1,S1),y1=Math.max(Q,l1,S1),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=(l1-S1)/(y1-T1):l1==y1?J1=2+(S1-Q)/(y1-T1):S1==y1&&(J1=4+(Q-l1)/(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,_1=g.last,I1=n1,U1=z1,P1=Math.round,G1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=m1(k,"rgba"),l1=_1(k)||"rgb";return l1.substr(0,3)=="hsl"?I1(U1(Q),l1):(Q[0]=P1(Q[0]),Q[1]=P1(Q[1]),Q[2]=P1(Q[2]),(l1==="rgba"||Q.length>3&&Q[3]<1)&&(Q[3]=Q.length>3?Q[3]:1,l1="rgba"),l1+"("+Q.slice(0,l1==="rgb"?3:4).join(",")+")")},at=G1,X1=g.unpack,rt=Math.round,tt=function(){for(var k,j=[],Q=arguments.length;Q--;)j[Q]=arguments[Q];j=X1(j,"hsl");var l1=j[0],S1=j[1],T1=j[2],y1,R1,F1;if(S1===0)y1=R1=F1=T1*255;else{var J1=[0,0,0],st=[0,0,0],kt=T1<.5?T1*(1+S1):T1+S1-T1*S1,ft=2*T1-kt,Wt=l1/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=[rt(st[0]*255),rt(st[1]*255),rt(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),l1=0;l1<3;l1++)Q[l1]=+Q[l1];return Q[3]=1,Q}if(j=k.match(B1)){for(var S1=j.slice(1,5),T1=0;T1<4;T1++)S1[T1]=+S1[T1];return S1}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,E=C,q=y,Y=H,c1=g.type,v1=at,x1=r1;q.prototype.css=function(k){return v1(this._rgb,k)},E.css=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(q,[null].concat(k,["css"])))},Y.format.css=x1,Y.autodetect.push({p:5,test:function(k){for(var j=[],Q=arguments.length-1;Q-- >0;)j[Q]=arguments[Q+1];if(!j.length&&c1(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"),l1=Q[0],S1=Q[1],T1=Q[2],y1=Math.min(l1,S1,T1),R1=Math.max(l1,S1,T1),F1=R1-y1,J1=F1*100/255,st=y1/(255-F1)*100,kt;return F1===0?kt=Number.NaN:(l1===R1&&(kt=(S1-T1)/F1),S1===R1&&(kt=2+(T1-l1)/F1),T1===R1&&(kt=4+(l1-S1)/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,l1,S1,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,u4=Z2+Ft;switch(T2){case 0:k=[u4,C4,Z2],kt=k[0],ft=k[1],Wt=k[2];break;case 1:j=[o0,u4,Z2],kt=j[0],ft=j[1],Wt=j[2];break;case 2:Q=[Z2,u4,C4],kt=Q[0],ft=Q[1],Wt=Q[2];break;case 3:l1=[Z2,o0,u4],kt=l1[0],ft=l1[1],Wt=l1[2];break;case 4:S1=[C4,Z2,u4],kt=S1[0],ft=S1[1],Wt=S1[2];break;case 5:T1=[u4,Z2,o0],kt=T1[0],ft=T1[1],Wt=T1[2];break}}return[kt,ft,Wt,y1.length>3?y1[3]:1]},Ot=Ht,n2=g.unpack,u2=g.type,St=C,At=y,Rt=H,Xt=Ct;At.prototype.hcg=function(){return Xt(this._rgb)},St.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=n2(k,"hcg"),u2(k)==="array"&&k.length===3)return"hcg"}});var f2=g.unpack,y2=g.last,_0=Math.round,r0=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=f2(k,"rgba"),l1=Q[0],S1=Q[1],T1=Q[2],y1=Q[3],R1=y2(k)||"auto";y1===void 0&&(y1=1),R1==="auto"&&(R1=y1<1?"rgba":"rgb"),l1=_0(l1),S1=_0(S1),T1=_0(T1);var F1=l1<<16|S1<<8|T1,J1="000000"+F1.toString(16);J1=J1.substr(J1.length-6);var st="0"+_0(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}},R0=r0,S2=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ne=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,wt=function(k){if(k.match(S2)){(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,l1=j>>8&255,S1=j&255;return[Q,l1,S1,1]}if(k.match(ne)){(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,_2=g.type,H2=H,m2=R0;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&&_2(k)==="string"&&[3,4,5,6,7,8,9].indexOf(k.length)>=0)return"hex"}});var N2=g.unpack,T0=g.TWOPI,ue=Math.min,ve=Math.sqrt,k4=Math.acos,Qe=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=N2(k,"rgb"),l1=Q[0],S1=Q[1],T1=Q[2];l1/=255,S1/=255,T1/=255;var y1,R1=ue(l1,S1,T1),F1=(l1+S1+T1)/3,J1=F1>0?1-R1/F1:0;return J1===0?y1=NaN:(y1=(l1-S1+(l1-T1))/2,y1/=ve((l1-S1)*(l1-S1)+(l1-T1)*(S1-T1)),y1=k4(y1),T1>S1&&(y1=T0-y1),y1/=T0),[y1*360,J1,F1]},Ne=Qe,E4=g.unpack,O0=g.limit,p0=g.TWOPI,P4=g.PITHIRD,l4=Math.cos,fa=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=E4(k,"hsi");var Q=k[0],l1=k[1],S1=k[2],T1,y1,R1;return isNaN(Q)&&(Q=0),isNaN(l1)&&(l1=0),Q>360&&(Q-=360),Q<0&&(Q+=360),Q/=360,Q<1/3?(R1=(1-l1)/3,T1=(1+l1*l4(p0*Q)/l4(P4-p0*Q))/3,y1=1-(R1+T1)):Q<2/3?(Q-=1/3,T1=(1-l1)/3,y1=(1+l1*l4(p0*Q)/l4(P4-p0*Q))/3,R1=1-(T1+y1)):(Q-=2/3,y1=(1-l1)/3,R1=(1+l1*l4(p0*Q)/l4(P4-p0*Q))/3,T1=1-(y1+R1)),T1=O0(S1*T1*3),y1=O0(S1*y1*3),R1=O0(S1*R1*3),[T1*255,y1*255,R1*255,k.length>3?k[3]:1]},nn=fa,or=g.unpack,Vn=g.type,N4=C,g2=y,l2=H,ae=Ne;g2.prototype.hsi=function(){return ae(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"])))},l2.format.hsi=nn,l2.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=or(k,"hsi"),Vn(k)==="array"&&k.length===3)return"hsi"}});var re=g.unpack,C0=g.type,de=C,De=y,s4=H,D4=z1;De.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(De,[null].concat(k,["hsl"])))},s4.format.hsl=et,s4.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,ga=Math.max,R4=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=x4(k,"rgb");var Q=k[0],l1=k[1],S1=k[2],T1=V4(Q,l1,S1),y1=ga(Q,l1,S1),R1=y1-T1,F1,J1,st;return st=y1/255,y1===0?(F1=Number.NaN,J1=0):(J1=R1/y1,Q===y1&&(F1=(l1-S1)/R1),l1===y1&&(F1=2+(S1-Q)/R1),S1===y1&&(F1=4+(Q-l1)/R1),F1*=60,F1<0&&(F1+=360)),[F1,J1,st]},Wi=R4,Xe=g.unpack,cr=Math.floor,Ir=function(){for(var k,j,Q,l1,S1,T1,y1=[],R1=arguments.length;R1--;)y1[R1]=arguments[R1];y1=Xe(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=cr(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:l1=[D2,Z2,st],kt=l1[0],ft=l1[1],Wt=l1[2];break;case 4:S1=[o0,D2,st],kt=S1[0],ft=S1[1],Wt=S1[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,A5=g.unpack,k5=g.type,qi=C,Gi=y,pa=H,Do=Wi;Gi.prototype.hsv=function(){return Do(this._rgb)},qi.hsv=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Gi,[null].concat(k,["hsv"])))},pa.format.hsv=Fr,pa.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=A5(k,"hsv"),k5(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,A0=Math.pow,b0=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=s2(k,"rgb"),l1=Q[0],S1=Q[1],T1=Q[2],y1=Ro(l1,S1,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:A0((k+.055)/1.055,2.4)},Ur=function(k){return k>Dt.t3?A0(k,1/3):k/Dt.t2+Dt.t0},Ro=function(k,j,Q){k=L0(k),j=L0(j),Q=L0(Q);var l1=Ur((.4124564*k+.3575761*j+.1804375*Q)/Dt.Xn),S1=Ur((.2126729*k+.7151522*j+.072175*Q)/Dt.Yn),T1=Ur((.0193339*k+.119192*j+.9503041*Q)/Dt.Zn);return[l1,S1,T1]},jo=b0,Gn=$r,jM=g.unpack,L6=Math.pow,IM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=jM(k,"lab");var Q=k[0],l1=k[1],S1=k[2],T1,y1,R1,F1,J1,st;return y1=(Q+16)/116,T1=isNaN(l1)?y1:y1+l1/500,R1=isNaN(S1)?y1:y1-S1/200,y1=Gn.Yn*h9(y1),T1=Gn.Xn*h9(T1),R1=Gn.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*L6(k,1/2.4)-.055)},h9=function(k){return k>Gn.t1?k*k*k:Gn.t2*(k-Gn.t0)},uu=IM,vu=g.unpack,FM=g.type,$M=C,Ki=y,du=H,UM=jo;Ki.prototype.lab=function(){return UM(this._rgb)},$M.lab=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Ki,[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"),FM(k)==="array"&&k.length===3)return"lab"}});var WM=g.unpack,qM=g.RAD2DEG,GM=Math.sqrt,B6=Math.atan2,KM=Math.round,YM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=WM(k,"lab"),l1=Q[0],S1=Q[1],T1=Q[2],y1=GM(S1*S1+T1*T1),R1=(B6(T1,S1)*qM+360)%360;return KM(y1*1e4)===0&&(R1=Number.NaN),[l1,y1,R1]},fu=YM,ZM=g.unpack,Yi=jo,QM=fu,XM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=ZM(k,"rgb"),l1=Q[0],S1=Q[1],T1=Q[2],y1=Yi(l1,S1,T1),R1=y1[0],F1=y1[1],J1=y1[2];return QM(R1,F1,J1)},JM=XM,tH=g.unpack,eH=g.DEG2RAD,nH=Math.sin,gu=Math.cos,aH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=tH(k,"lch"),l1=Q[0],S1=Q[1],T1=Q[2];return isNaN(T1)&&(T1=0),T1=T1*eH,[l1,gu(T1)*S1,nH(T1)*S1]},pu=aH,mu=g.unpack,rH=pu,iH=uu,zu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=mu(k,"lch");var Q=k[0],l1=k[1],S1=k[2],T1=rH(Q,l1,S1),y1=T1[0],R1=T1[1],F1=T1[2],J1=iH(y1,R1,F1),st=J1[0],kt=J1[1],ft=J1[2];return[st,kt,ft,k.length>3?k[3]:1]},Mu=zu,oH=g.unpack,Hu=Mu,cH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=oH(k,"hcl").reverse();return Hu.apply(void 0,Q)},lH=cH,wu=g.unpack,sH=g.type,yu=C,E5=y,u9=H,xu=JM;E5.prototype.lch=function(){return xu(this._rgb)},E5.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(E5,[null].concat(k,["lch"])))},yu.hcl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(E5,[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),sH(j)==="array"&&j.length===3)return k}})});var hH={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=hH,Cu=y,bu=H,uH=g.type,Zi=Vu,vH=mt,dH=R0;Cu.prototype.name=function(){for(var k=dH(this._rgb,"rgb"),j=0,Q=Object.keys(Zi);j0;)j[Q]=arguments[Q+1];if(!j.length&&uH(k)==="string"&&Zi[k.toLowerCase()])return"named"}});var Lu=g.unpack,fH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Lu(k,"rgb"),l1=Q[0],S1=Q[1],T1=Q[2];return(l1<<16)+(S1<<8)+T1},v9=fH,Bu=g.type,gH=function(k){if(Bu(k)=="number"&&k>=0&&k<=16777215){var j=k>>16,Q=k>>8&255,l1=k&255;return[j,Q,l1,1]}throw new Error("unknown num color: "+k)},Su=gH,_u=C,Tu=y,Ou=H,Au=g.type,pH=v9;Tu.prototype.num=function(){return pH(this._rgb)},_u.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=Su,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 mH=C,S6=y,ku=H,Eu=g.unpack,d9=g.type,Pu=Math.round;S6.prototype.rgb=function(k){return k===void 0&&(k=!0),k===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Pu)},S6.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})},mH.rgb=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(S6,[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 Qi=Math.log,Nu=function(k){var j=k/100,Q,l1,S1;return j<66?(Q=255,l1=j<6?0:-155.25485562709179-.44596950469579133*(l1=j-2)+104.49216199393888*Qi(l1),S1=j<20?0:-254.76935184120902+.8274096064007395*(S1=j-10)+115.67994401066147*Qi(S1)):(Q=351.97690566805693+.114206453784165*(Q=j-55)-40.25366309332127*Qi(Q),l1=325.4494125711974+.07943456536662342*(l1=j-50)-28.0852963507957*Qi(l1),S1=255),[Q,l1,S1,1]},Io=Nu,Fo=Io,Du=g.unpack,zH=Math.round,MH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];for(var Q=Du(k,"rgb"),l1=Q[0],S1=Q[2],T1=1e3,y1=4e4,R1=.4,F1;y1-T1>R1;){F1=(y1+T1)*.5;var J1=Fo(F1);J1[2]/J1[0]>=S1/l1?y1=F1:T1=F1}return zH(F1)},Ru=MH,f9=C,_6=y,T6=H,P5=Ru;_6.prototype.temp=_6.prototype.kelvin=_6.prototype.temperature=function(){return P5(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(_6,[null].concat(k,["temp"])))},T6.format.temp=T6.format.kelvin=T6.format.temperature=Io;var ju=g.unpack,O6=Math.cbrt,HH=Math.pow,wH=Math.sign,Iu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=ju(k,"rgb"),l1=Q[0],S1=Q[1],T1=Q[2],y1=[g9(l1/255),g9(S1/255),g9(T1/255)],R1=y1[0],F1=y1[1],J1=y1[2],st=O6(.4122214708*R1+.5363325363*F1+.0514459929*J1),kt=O6(.2119034982*R1+.6806995451*F1+.1073969566*J1),ft=O6(.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:(wH(k)||1)*HH((j+.055)/1.055,2.4)}var $u=g.unpack,N5=Math.pow,A6=Math.sign,Uu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=$u(k,"lab");var Q=k[0],l1=k[1],S1=k[2],T1=N5(Q+.3963377774*l1+.2158037573*S1,3),y1=N5(Q-.1055613458*l1-.0638541728*S1,3),R1=N5(Q-.0894841775*l1-1.291485548*S1,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?(A6(k)||1)*(1.055*N5(j,1/2.4)-.055):k*12.92}var qu=g.unpack,yH=g.type,xH=C,m9=y,Gu=H,Ku=Fu;m9.prototype.oklab=function(){return Ku(this._rgb)},xH.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"),yH(k)==="array"&&k.length===3)return"oklab"}});var Yu=g.unpack,VH=Fu,Zu=fu,Qu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Yu(k,"rgb"),l1=Q[0],S1=Q[1],T1=Q[2],y1=VH(l1,S1,T1),R1=y1[0],F1=y1[1],J1=y1[2];return Zu(R1,F1,J1)},CH=Qu,bH=g.unpack,Xu=pu,LH=Wu,BH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=bH(k,"lch");var Q=k[0],l1=k[1],S1=k[2],T1=Xu(Q,l1,S1),y1=T1[0],R1=T1[1],F1=T1[2],J1=LH(y1,R1,F1),st=J1[0],kt=J1[1],ft=J1[2];return[st,kt,ft,k.length>3?k[3]:1]},Ju=BH,SH=g.unpack,tv=g.type,ev=C,nv=y,av=H,rv=CH;nv.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(nv,[null].concat(k,["oklch"])))},av.format.oklch=Ju,av.autodetect.push({p:3,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=SH(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 D5=y,TH=$r;D5.prototype.darken=function(k){k===void 0&&(k=1);var j=this,Q=j.lab();return Q[0]-=TH.Kn*k,new D5(Q,"lab").alpha(j.alpha(),!0)},D5.prototype.brighten=function(k){return k===void 0&&(k=1),this.darken(-k)},D5.prototype.darker=D5.prototype.darken,D5.prototype.brighter=D5.prototype.brighten;var cv=y;cv.prototype.get=function(k){var j=k.split("."),Q=j[0],l1=j[1],S1=this[Q]();if(l1){var T1=Q.indexOf(l1)-(Q.substr(0,2)==="ok"?2:0);if(T1>-1)return S1[T1];throw new Error("unknown channel "+l1+" in mode "+Q)}else return S1};var Xi=y,OH=g.type,lv=Math.pow,AH=1e-7,kH=20;Xi.prototype.luminance=function(k){if(k!==void 0&&OH(k)==="number"){if(k===0)return new Xi([0,0,0,this._rgb[3]],"rgb");if(k===1)return new Xi([255,255,255,this._rgb[3]],"rgb");var j=this.luminance(),Q="rgb",l1=kH,S1=function(y1,R1){var F1=y1.interpolate(R1,.5,Q),J1=F1.luminance();return Math.abs(k-J1)k?S1(y1,F1):S1(F1,R1)},T1=(j>k?S1(new Xi([0,0,0]),this):S1(this,new Xi([255,255,255]))).rgb();return new Xi(T1.concat([this._rgb[3]]))}return a2.apply(void 0,this._rgb.slice(0,3))};var a2=function(k,j,Q){return k=k6(k),j=k6(j),Q=k6(Q),.2126*k+.7152*j+.0722*Q},k6=function(k){return k/=255,k<=.03928?k/12.92:lv((k+.055)/1.055,2.4)},j4={},sv=y,hv=g.type,E6=j4,uv=function(k,j,Q){Q===void 0&&(Q=.5);for(var l1=[],S1=arguments.length-3;S1-- >0;)l1[S1]=arguments[S1+3];var T1=l1[0]||"lrgb";if(!E6[T1]&&!l1.length&&(T1=Object.keys(E6)[0]),!E6[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)),E6[T1](k,j,Q).alpha(k.alpha()+Q*(j.alpha()-k.alpha()))},vv=y,EH=uv;vv.prototype.mix=vv.prototype.interpolate=function(k,j){j===void 0&&(j=.5);for(var Q=[],l1=arguments.length-2;l1-- >0;)Q[l1]=arguments[l1+2];return EH.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,PH=$r;z9.prototype.saturate=function(k){k===void 0&&(k=1);var j=this,Q=j.lch();return Q[1]+=PH.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 l1=k.split("."),S1=l1[0],T1=l1[1],y1=this[S1]();if(T1){var R1=S1.indexOf(T1)-(S1.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,S1);return Q?(this._rgb=F1._rgb,this):F1}throw new Error("unknown channel "+T1+" in mode "+S1)}else return y1};var NH=y,DH=function(k,j,Q){var l1=k._rgb,S1=j._rgb;return new NH(l1[0]+Q*(S1[0]-l1[0]),l1[1]+Q*(S1[1]-l1[1]),l1[2]+Q*(S1[2]-l1[2]),"rgb")};j4.rgb=DH;var RH=y,M9=Math.sqrt,Ji=Math.pow,jH=function(k,j,Q){var l1=k._rgb,S1=l1[0],T1=l1[1],y1=l1[2],R1=j._rgb,F1=R1[0],J1=R1[1],st=R1[2];return new RH(M9(Ji(S1,2)*(1-Q)+Ji(F1,2)*Q),M9(Ji(T1,2)*(1-Q)+Ji(J1,2)*Q),M9(Ji(y1,2)*(1-Q)+Ji(st,2)*Q),"rgb")};j4.lrgb=jH;var IH=y,pv=function(k,j,Q){var l1=k.lab(),S1=j.lab();return new IH(l1[0]+Q*(S1[0]-l1[0]),l1[1]+Q*(S1[1]-l1[1]),l1[2]+Q*(S1[2]-l1[2]),"lab")};j4.lab=pv;var mv=y,t3=function(k,j,Q,l1){var S1,T1,y1,R1;l1==="hsl"?(y1=k.hsl(),R1=j.hsl()):l1==="hsv"?(y1=k.hsv(),R1=j.hsv()):l1==="hcg"?(y1=k.hcg(),R1=j.hcg()):l1==="hsi"?(y1=k.hsi(),R1=j.hsi()):l1==="lch"||l1==="hcl"?(l1="hcl",y1=k.hcl(),R1=j.hcl()):l1==="oklch"&&(y1=k.oklch().reverse(),R1=j.oklch().reverse());var F1,J1,st,kt,ft,Wt;(l1.substr(0,1)==="h"||l1==="oklch")&&(S1=y1,F1=S1[0],st=S1[1],ft=S1[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)&&l1!="hsv"&&(Ft=kt)):(T2=F1,(Wt==1||Wt==0)&&l1!="hsv"&&(Ft=st)),Ft===void 0&&(Ft=st+Q*(kt-st)),D2=ft+Q*(Wt-ft),l1==="oklch"?new mv([D2,Ft,T2],l1):new mv([T2,Ft,D2],l1)},FH=t3,zv=function(k,j,Q){return FH(k,j,Q,"lch")};j4.lch=zv,j4.hcl=zv;var $H=y,UH=function(k,j,Q){var l1=k.num(),S1=j.num();return new $H(l1+Q*(S1-l1),"num")};j4.num=UH;var WH=t3,qH=function(k,j,Q){return WH(k,j,Q,"hcg")};j4.hcg=qH;var GH=t3,KH=function(k,j,Q){return GH(k,j,Q,"hsi")};j4.hsi=KH;var YH=t3,ZH=function(k,j,Q){return YH(k,j,Q,"hsl")};j4.hsl=ZH;var QH=t3,XH=function(k,j,Q){return QH(k,j,Q,"hsv")};j4.hsv=XH;var JH=y,tw=function(k,j,Q){var l1=k.oklab(),S1=j.oklab();return new JH(l1[0]+Q*(S1[0]-l1[0]),l1[1]+Q*(S1[1]-l1[1]),l1[2]+Q*(S1[2]-l1[2]),"oklab")};j4.oklab=tw;var ew=t3,nw=function(k,j,Q){return ew(k,j,Q,"oklch")};j4.oklch=nw;var H9=y,aw=g.clip_rgb,w9=Math.pow,$o=Math.sqrt,y9=Math.PI,Mv=Math.cos,Wr=Math.sin,rw=Math.atan2,iw=function(k,j,Q){j===void 0&&(j="lrgb"),Q===void 0&&(Q=null);var l1=k.length;Q||(Q=Array.from(new Array(l1)).map(function(){return 1}));var S1=l1/Q.reduce(function(T2,D2){return T2+D2});if(Q.forEach(function(T2,D2){Q[D2]*=S1}),k=k.map(function(T2){return new H9(T2)}),j==="lrgb")return ow(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/=l1,new H9(y1,j).alpha(ft>.99999?1:ft,!0)},ow=function(k,j){for(var Q=k.length,l1=[0,0,0,0],S1=0;S1.9999999&&(l1[3]=1),new H9(aw(l1))},Kn=C,e3=g.type,k1=Math.pow,E1=function(k){var j="rgb",Q=Kn("#ccc"),l1=0,S1=[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&&e3(gt)==="string"&&Kn.brewer&&Kn.brewer[gt.toLowerCase()]&&(gt=Kn.brewer[gt.toLowerCase()]),e3(gt)==="array"){gt.length===1&&(gt=[gt[0],gt[0]]),gt=gt.slice(0);for(var c2=0;c2=R1[k2];)k2++;return k2-1}return 0},o0=function(gt){return gt},C4=function(gt){return gt},u4=function(gt,c2){var k2,O2;if(c2==null&&(c2=!1),isNaN(gt)||gt===null)return Q;if(c2)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),c2||(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 j0=Math.floor(O2*1e4);if(Ft&&Wt[j0])k2=Wt[j0];else{if(e3(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 lr=(u0-h0[m0])/(h0[m0+1]-h0[m0]),r3=Q2[m0]+lr*(Q2[m0+1]-Q2[m0]);return r3})}}return S1=[st,kt],K2},K2.mode=function(gt){return arguments.length?(j=gt,Cn(),K2):j},K2.range=function(gt,c2){return D2(gt),K2},K2.out=function(gt){return J1=gt,K2},K2.spread=function(gt){return arguments.length?(l1=gt,K2):l1},K2.correctLightness=function(gt){return gt==null&&(gt=!0),ft=gt,Cn(),ft?o0=function(c2){for(var k2=u4(0,!0).lab()[0],O2=u4(1,!0).lab()[0],b4=k2>O2,j0=u4(c2,!0).lab()[0],Q2=k2+(O2-k2)*c2,h0=j0-Q2,u0=0,m0=1,lr=20;Math.abs(h0)>.01&&lr-- >0;)(function(){return b4&&(h0*=-1),h0<0?(u0=c2,c2+=(m0-c2)*.5):(m0=c2,c2+=(u0-c2)*.5),j0=u4(c2,!0).lab()[0],h0=j0-Q2})();return c2}:o0=function(c2){return c2},K2},K2.padding=function(gt){return gt!=null?(e3(gt)==="number"&&(gt=[gt,gt]),y1=gt,K2):y1},K2.colors=function(gt,c2){arguments.length<2&&(c2="hex");var k2=[];if(arguments.length===0)k2=F1.slice(0);else if(gt===1)k2=[K2(.5)];else if(gt>1){var O2=S1[0],b4=S1[1]-O2;k2=lt(0,gt,!1).map(function(m0){return K2(O2+m0/(gt-1)*b4)})}else{k=[];var j0=[];if(R1&&R1.length>2)for(var Q2=1,h0=R1.length,u0=1<=h0;u0?Q2h0;u0?Q2++:Q2--)j0.push((R1[Q2-1]+R1[Q2])*.5);else j0=S1;k2=j0.map(function(m0){return K2(m0)})}return Kn[c2]&&(k2=k2.map(function(m0){return m0[c2]()})),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=Kn(gt),K2):Q},K2};function lt(k,j,Q){for(var l1=[],S1=kT1;S1?y1++:y1--)l1.push(y1);return l1}var It=y,A2=E1,Re=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=Re(kt),S1=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 S1},Uo=function(k){var j=n3(k);return j.scale=function(){return A2(j)},j},Wo=C,an=function(k,j,Q){if(!an[Q])throw new Error("unknown blend mode "+Q);return an[Q](k,j)},ma=function(k){return function(j,Q){var l1=Wo(Q).rgb(),S1=Wo(j).rgb();return Wo.rgb(k(l1,S1))}},za=function(k){return function(j,Q){var l1=[];return l1[0]=k(j[0],Q[0]),l1[1]=k(j[1],Q[1]),l1[2]=k(j[2],Q[2]),l1}},x9=function(k){return k},V9=function(k,j){return k*j/255},C9=function(k,j){return k>j?j:k},P6=function(k,j){return k>j?k:j},a3=function(k,j){return 255*(1-(1-k/255)*(1-j/255))},R5=function(k,j){return j<128?2*k*j/255:255*(1-2*(1-k/255)*(1-j/255))},cw=function(k,j){return 255*(1-(1-j/255)/(k/255))},j5=function(k,j){return k===255?255:(k=255*(j/255)/(1-k/255),k>255?255:k)};an.normal=ma(za(x9)),an.multiply=ma(za(V9)),an.screen=ma(za(a3)),an.overlay=ma(za(R5)),an.darken=ma(za(C9)),an.lighten=ma(za(P6)),an.dodge=ma(za(j5)),an.burn=ma(za(cw));for(var b9=an,qo=g.type,ce1=g.clip_rgb,le1=g.TWOPI,se1=Math.pow,he1=Math.sin,ue1=Math.cos,NO=C,ve1=function(k,j,Q,l1,S1){k===void 0&&(k=300),j===void 0&&(j=-1.5),Q===void 0&&(Q=1),l1===void 0&&(l1=1),S1===void 0&&(S1=[0,1]);var T1=0,y1;qo(S1)==="array"?y1=S1[1]-S1[0]:(y1=0,S1=[S1,S1]);var R1=function(F1){var J1=le1*((k+120)/360+j*F1),st=se1(S1[0]+y1*F1,l1),kt=T1!==0?Q[0]+F1*T1:Q,ft=kt*st*(1-st)/2,Wt=ue1(J1),Ft=he1(J1),T2=st+ft*(-.14861*Wt+1.78277*Ft),D2=st+ft*(-.29227*Wt-.90649*Ft),Z2=st+ft*(1.97294*Wt);return NO(ce1([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?l1:(l1=F1,R1)},R1.hue=function(F1){return F1==null?Q:(Q=F1,qo(Q)==="array"?(T1=Q[1]-Q[0],T1===0&&(Q=Q[1])):T1=0,R1)},R1.lightness=function(F1){return F1==null?S1:(qo(F1)==="array"?(S1=F1,y1=F1[1]-F1[0]):(S1=[F1,F1],y1=0),R1)},R1.scale=function(){return NO.scale(R1)},R1.hue(Q),R1},de1=y,fe1="0123456789abcdef",ge1=Math.floor,pe1=Math.random,me1=function(){for(var k="#",j=0;j<6;j++)k+=fe1.charAt(ge1(pe1()*16));return new de1(k,"hex")},lw=s,DO=Math.log,ze1=Math.pow,Me1=Math.floor,He1=Math.abs,RO=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(l1){j&&lw(l1)==="object"&&(l1=l1[j]),l1!=null&&!isNaN(l1)&&(Q.values.push(l1),Q.sum+=l1,l1Q.max&&(Q.max=l1),Q.count+=1)}),Q.domain=[Q.min,Q.max],Q.limits=function(l1,S1){return jO(Q,l1,S1)},Q},jO=function(k,j,Q){j===void 0&&(j="equal"),Q===void 0&&(Q=7),lw(k)=="array"&&(k=RO(k));var l1=k.min,S1=k.max,T1=k.values.sort(function(hw,uw){return hw-uw});if(Q===1)return[l1,S1];var y1=[];if(j.substr(0,1)==="c"&&(y1.push(l1),y1.push(S1)),j.substr(0,1)==="e"){y1.push(l1);for(var R1=1;R1 0");var F1=Math.LOG10E*DO(l1),J1=Math.LOG10E*DO(S1);y1.push(l1);for(var st=1;st200&&(C4=!1)}for(var i3={},N6=0;N6l1?(Q+.05)/(l1+.05):(l1+.05)/(Q+.05)},$O=y,I5=Math.sqrt,je=Math.pow,ye1=Math.min,xe1=Math.max,UO=Math.atan2,WO=Math.abs,Hv=Math.cos,qO=Math.sin,Ve1=Math.exp,GO=Math.PI,Ce1=function(k,j,Q,l1,S1){Q===void 0&&(Q=1),l1===void 0&&(l1=1),S1===void 0&&(S1=1);var T1=function(Ko){return 360*Ko/(2*GO)},y1=function(Ko){return 2*GO*Ko/360};k=new $O(k),j=new $O(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=I5(je(J1,2)+je(st,2)),Z2=I5(je(Wt,2)+je(Ft,2)),o0=(D2+Z2)/2,C4=.5*(1-I5(je(o0,7)/(je(o0,7)+je(25,7)))),u4=J1*(1+C4),Cn=Wt*(1+C4),K2=I5(je(u4,2)+je(st,2)),gt=I5(je(Cn,2)+je(Ft,2)),c2=(K2+gt)/2,k2=T1(UO(st,u4)),O2=T1(UO(Ft,Cn)),b4=k2>=0?k2:k2+360,j0=O2>=0?O2:O2+360,Q2=WO(b4-j0)>180?(b4+j0+360)/2:(b4+j0)/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=j0-b4;u0=WO(u0)<=180?u0:j0<=b4?u0+360:u0-360,u0=2*I5(K2*gt)*qO(y1(u0)/2);var m0=ft-F1,lr=gt-K2,r3=1+.015*je(T2-50,2)/I5(20+je(T2-50,2)),i3=1+.045*c2,N6=1+.015*c2*h0,D6=30*Ve1(-je((Q2-275)/25,2)),F5=2*I5(je(c2,7)/(je(c2,7)+je(25,7))),Go=-F5*qO(2*y1(D6)),L9=I5(je(m0/(Q*r3),2)+je(lr/(l1*i3),2)+je(u0/(S1*N6),2)+Go*(lr/(l1*i3))*(u0/(S1*N6)));return xe1(0,ye1(100,L9))},KO=y,be1=function(k,j,Q){Q===void 0&&(Q="lab"),k=new KO(k),j=new KO(j);var l1=k.get(Q),S1=j.get(Q),T1=0;for(var y1 in l1){var R1=(l1[y1]||0)-(S1[y1]||0);T1+=R1*R1}return Math.sqrt(T1)},Le1=y,Be1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];try{return new(Function.prototype.bind.apply(Le1,[null].concat(k))),!0}catch{return!1}},YO=C,ZO=E1,Se1={cool:function(){return ZO([YO.hsl(180,1,.9),YO.hsl(250,.7,.4)])},hot:function(){return ZO(["#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"]},sw=0,QO=Object.keys(wv);sw=e?"100%":"".concat(Math.round(t/e*100),"%")};Pt.calcPercentage=p71;var m71=function(t,e){e||(e=100);for(var n=[],a=t.length,r=[],o=t.length,c=0,l=0,h=0,s,u,v;o--;)l+=n[o]=Math.round(t[o]);for(h=lv&&(c=s);n[c]+=h,l+=h}for(var f=0;fQ?Q:k},a=n,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]=a(k[j],0,255)):j===3&&(k[j]=a(k[j],0,1));return k},o={},c=0,l=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];c=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},z=Math.PI,g={clip_rgb:r,limit:n,type:s,unpack:v,last:d,PI:z,TWOPI:z*2,PITHIRD:z/3,DEG2RAD:z/180,RAD2DEG:180/z},H={format:{},autodetect:[]},p=g.last,m=g.clip_rgb,M=g.type,w=H,x=function(){for(var j=[],Q=arguments.length;Q--;)j[Q]=arguments[Q];var l1=this;if(M(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),l1>=1?0:255*(1-l1)*(1-T1),_1>=1?0:255*(1-_1)*(1-T1),y1]},W=F,U=C,Z=y,I=H,t1=g.unpack,R=g.type,i1=T;Z.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(Z,[null].concat(k,["cmyk"])))},I.format.cmyk=W,I.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"),l1=A(k)||"lsa";return Q[0]=o1(Q[0]||0),Q[1]=o1(Q[1]*100)+"%",Q[2]=o1(Q[2]*100)+"%",l1==="hsla"||Q.length>3&&Q[3]<1?(Q[3]=Q.length>3?Q[3]:1,l1="hsla"):Q.length=3,l1+"("+Q.join(",")+")"},n1=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],l1=k[1],_1=k[2];Q/=255,l1/=255,_1/=255;var T1=Math.min(Q,l1,_1),y1=Math.max(Q,l1,_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=(l1-_1)/(y1-T1):l1==y1?J1=2+(_1-Q)/(y1-T1):_1==y1&&(J1=4+(Q-l1)/(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=n1,U1=z1,P1=Math.round,G1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=m1(k,"rgba"),l1=S1(k)||"rgb";return l1.substr(0,3)=="hsl"?I1(U1(Q),l1):(Q[0]=P1(Q[0]),Q[1]=P1(Q[1]),Q[2]=P1(Q[2]),(l1==="rgba"||Q.length>3&&Q[3]<1)&&(Q[3]=Q.length>3?Q[3]:1,l1="rgba"),l1+"("+Q.slice(0,l1==="rgb"?3:4).join(",")+")")},at=G1,X1=g.unpack,rt=Math.round,tt=function(){for(var k,j=[],Q=arguments.length;Q--;)j[Q]=arguments[Q];j=X1(j,"hsl");var l1=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=l1/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=[rt(st[0]*255),rt(st[1]*255),rt(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),l1=0;l1<3;l1++)Q[l1]=+Q[l1];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,E=C,q=y,Y=H,c1=g.type,v1=at,x1=r1;q.prototype.css=function(k){return v1(this._rgb,k)},E.css=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(q,[null].concat(k,["css"])))},Y.format.css=x1,Y.autodetect.push({p:5,test:function(k){for(var j=[],Q=arguments.length-1;Q-- >0;)j[Q]=arguments[Q+1];if(!j.length&&c1(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"),l1=Q[0],_1=Q[1],T1=Q[2],y1=Math.min(l1,_1,T1),R1=Math.max(l1,_1,T1),F1=R1-y1,J1=F1*100/255,st=y1/(255-F1)*100,kt;return F1===0?kt=Number.NaN:(l1===R1&&(kt=(_1-T1)/F1),_1===R1&&(kt=2+(T1-l1)/F1),T1===R1&&(kt=4+(l1-_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,l1,_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,u4=Z2+Ft;switch(T2){case 0:k=[u4,C4,Z2],kt=k[0],ft=k[1],Wt=k[2];break;case 1:j=[o0,u4,Z2],kt=j[0],ft=j[1],Wt=j[2];break;case 2:Q=[Z2,u4,C4],kt=Q[0],ft=Q[1],Wt=Q[2];break;case 3:l1=[Z2,o0,u4],kt=l1[0],ft=l1[1],Wt=l1[2];break;case 4:_1=[C4,Z2,u4],kt=_1[0],ft=_1[1],Wt=_1[2];break;case 5:T1=[u4,Z2,o0],kt=T1[0],ft=T1[1],Wt=T1[2];break}}return[kt,ft,Wt,y1.length>3?y1[3]:1]},Ot=Ht,n2=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=n2(k,"hcg"),u2(k)==="array"&&k.length===3)return"hcg"}});var f2=g.unpack,y2=g.last,S0=Math.round,r0=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=f2(k,"rgba"),l1=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"),l1=S0(l1),_1=S0(_1),T1=S0(T1);var F1=l1<<16|_1<<8|T1,J1="000000"+F1.toString(16);J1=J1.substr(J1.length-6);var st="0"+S0(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}},R0=r0,_2=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ne=/^#?([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,l1=j>>8&255,_1=j&255;return[Q,l1,_1,1]}if(k.match(ne)){(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=R0;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,T0=g.TWOPI,ue=Math.min,ve=Math.sqrt,k4=Math.acos,Qe=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=N2(k,"rgb"),l1=Q[0],_1=Q[1],T1=Q[2];l1/=255,_1/=255,T1/=255;var y1,R1=ue(l1,_1,T1),F1=(l1+_1+T1)/3,J1=F1>0?1-R1/F1:0;return J1===0?y1=NaN:(y1=(l1-_1+(l1-T1))/2,y1/=ve((l1-_1)*(l1-_1)+(l1-T1)*(_1-T1)),y1=k4(y1),T1>_1&&(y1=T0-y1),y1/=T0),[y1*360,J1,F1]},Ne=Qe,E4=g.unpack,O0=g.limit,p0=g.TWOPI,P4=g.PITHIRD,l4=Math.cos,fa=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=E4(k,"hsi");var Q=k[0],l1=k[1],_1=k[2],T1,y1,R1;return isNaN(Q)&&(Q=0),isNaN(l1)&&(l1=0),Q>360&&(Q-=360),Q<0&&(Q+=360),Q/=360,Q<1/3?(R1=(1-l1)/3,T1=(1+l1*l4(p0*Q)/l4(P4-p0*Q))/3,y1=1-(R1+T1)):Q<2/3?(Q-=1/3,T1=(1-l1)/3,y1=(1+l1*l4(p0*Q)/l4(P4-p0*Q))/3,R1=1-(T1+y1)):(Q-=2/3,y1=(1-l1)/3,R1=(1+l1*l4(p0*Q)/l4(P4-p0*Q))/3,T1=1-(y1+R1)),T1=O0(_1*T1*3),y1=O0(_1*y1*3),R1=O0(_1*R1*3),[T1*255,y1*255,R1*255,k.length>3?k[3]:1]},nn=fa,or=g.unpack,Vn=g.type,N4=C,g2=y,l2=H,ae=Ne;g2.prototype.hsi=function(){return ae(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"])))},l2.format.hsi=nn,l2.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=or(k,"hsi"),Vn(k)==="array"&&k.length===3)return"hsi"}});var re=g.unpack,C0=g.type,de=C,De=y,s4=H,D4=z1;De.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(De,[null].concat(k,["hsl"])))},s4.format.hsl=et,s4.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,ga=Math.max,R4=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=x4(k,"rgb");var Q=k[0],l1=k[1],_1=k[2],T1=V4(Q,l1,_1),y1=ga(Q,l1,_1),R1=y1-T1,F1,J1,st;return st=y1/255,y1===0?(F1=Number.NaN,J1=0):(J1=R1/y1,Q===y1&&(F1=(l1-_1)/R1),l1===y1&&(F1=2+(_1-Q)/R1),_1===y1&&(F1=4+(Q-l1)/R1),F1*=60,F1<0&&(F1+=360)),[F1,J1,st]},U5=R4,Xe=g.unpack,cr=Math.floor,Ir=function(){for(var k,j,Q,l1,_1,T1,y1=[],R1=arguments.length;R1--;)y1[R1]=arguments[R1];y1=Xe(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=cr(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:l1=[D2,Z2,st],kt=l1[0],ft=l1[1],Wt=l1[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,Oi=g.unpack,Ai=g.type,W5=C,q5=y,pa=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"])))},pa.format.hsv=Fr,pa.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=Oi(k,"hsv"),Ai(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,A0=Math.pow,b0=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=s2(k,"rgb"),l1=Q[0],_1=Q[1],T1=Q[2],y1=jo(l1,_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:A0((k+.055)/1.055,2.4)},Ur=function(k){return k>Dt.t3?A0(k,1/3):k/Dt.t2+Dt.t0},jo=function(k,j,Q){k=L0(k),j=L0(j),Q=L0(Q);var l1=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[l1,_1,T1]},Io=b0,Gn=$r,jM=g.unpack,Bc=Math.pow,IM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=jM(k,"lab");var Q=k[0],l1=k[1],_1=k[2],T1,y1,R1,F1,J1,st;return y1=(Q+16)/116,T1=isNaN(l1)?y1:y1+l1/500,R1=isNaN(_1)?y1:y1-_1/200,y1=Gn.Yn*h9(y1),T1=Gn.Xn*h9(T1),R1=Gn.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*Bc(k,1/2.4)-.055)},h9=function(k){return k>Gn.t1?k*k*k:Gn.t2*(k-Gn.t0)},uu=IM,vu=g.unpack,FM=g.type,$M=C,G5=y,du=H,UM=Io;G5.prototype.lab=function(){return UM(this._rgb)},$M.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"),FM(k)==="array"&&k.length===3)return"lab"}});var WM=g.unpack,qM=g.RAD2DEG,GM=Math.sqrt,_c=Math.atan2,KM=Math.round,YM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=WM(k,"lab"),l1=Q[0],_1=Q[1],T1=Q[2],y1=GM(_1*_1+T1*T1),R1=(_c(T1,_1)*qM+360)%360;return KM(y1*1e4)===0&&(R1=Number.NaN),[l1,y1,R1]},fu=YM,ZM=g.unpack,K5=Io,QM=fu,XM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=ZM(k,"rgb"),l1=Q[0],_1=Q[1],T1=Q[2],y1=K5(l1,_1,T1),R1=y1[0],F1=y1[1],J1=y1[2];return QM(R1,F1,J1)},JM=XM,tH=g.unpack,eH=g.DEG2RAD,nH=Math.sin,gu=Math.cos,aH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=tH(k,"lch"),l1=Q[0],_1=Q[1],T1=Q[2];return isNaN(T1)&&(T1=0),T1=T1*eH,[l1,gu(T1)*_1,nH(T1)*_1]},pu=aH,mu=g.unpack,rH=pu,iH=uu,zu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=mu(k,"lch");var Q=k[0],l1=k[1],_1=k[2],T1=rH(Q,l1,_1),y1=T1[0],R1=T1[1],F1=T1[2],J1=iH(y1,R1,F1),st=J1[0],kt=J1[1],ft=J1[2];return[st,kt,ft,k.length>3?k[3]:1]},Mu=zu,oH=g.unpack,Hu=Mu,cH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=oH(k,"hcl").reverse();return Hu.apply(void 0,Q)},lH=cH,wu=g.unpack,sH=g.type,yu=C,ki=y,u9=H,xu=JM;ki.prototype.lch=function(){return xu(this._rgb)},ki.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(ki,[null].concat(k,["lch"])))},yu.hcl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(ki,[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),sH(j)==="array"&&j.length===3)return k}})});var hH={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=hH,Cu=y,bu=H,uH=g.type,Y5=Vu,vH=mt,dH=R0;Cu.prototype.name=function(){for(var k=dH(this._rgb,"rgb"),j=0,Q=Object.keys(Y5);j0;)j[Q]=arguments[Q+1];if(!j.length&&uH(k)==="string"&&Y5[k.toLowerCase()])return"named"}});var Lu=g.unpack,fH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Lu(k,"rgb"),l1=Q[0],_1=Q[1],T1=Q[2];return(l1<<16)+(_1<<8)+T1},v9=fH,Bu=g.type,gH=function(k){if(Bu(k)=="number"&&k>=0&&k<=16777215){var j=k>>16,Q=k>>8&255,l1=k&255;return[j,Q,l1,1]}throw new Error("unknown num color: "+k)},_u=gH,Su=C,Tu=y,Ou=H,Au=g.type,pH=v9;Tu.prototype.num=function(){return pH(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 mH=C,Sc=y,ku=H,Eu=g.unpack,d9=g.type,Pu=Math.round;Sc.prototype.rgb=function(k){return k===void 0&&(k=!0),k===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Pu)},Sc.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})},mH.rgb=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Sc,[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,l1,_1;return j<66?(Q=255,l1=j<6?0:-155.25485562709179-.44596950469579133*(l1=j-2)+104.49216199393888*Z5(l1),_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),l1=325.4494125711974+.07943456536662342*(l1=j-50)-28.0852963507957*Z5(l1),_1=255),[Q,l1,_1,1]},Fo=Nu,$o=Fo,Du=g.unpack,zH=Math.round,MH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];for(var Q=Du(k,"rgb"),l1=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/l1?y1=F1:T1=F1}return zH(F1)},Ru=MH,f9=C,Tc=y,Oc=H,Ei=Ru;Tc.prototype.temp=Tc.prototype.kelvin=Tc.prototype.temperature=function(){return Ei(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(Tc,[null].concat(k,["temp"])))},Oc.format.temp=Oc.format.kelvin=Oc.format.temperature=Fo;var ju=g.unpack,Ac=Math.cbrt,HH=Math.pow,wH=Math.sign,Iu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=ju(k,"rgb"),l1=Q[0],_1=Q[1],T1=Q[2],y1=[g9(l1/255),g9(_1/255),g9(T1/255)],R1=y1[0],F1=y1[1],J1=y1[2],st=Ac(.4122214708*R1+.5363325363*F1+.0514459929*J1),kt=Ac(.2119034982*R1+.6806995451*F1+.1073969566*J1),ft=Ac(.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:(wH(k)||1)*HH((j+.055)/1.055,2.4)}var $u=g.unpack,Pi=Math.pow,kc=Math.sign,Uu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=$u(k,"lab");var Q=k[0],l1=k[1],_1=k[2],T1=Pi(Q+.3963377774*l1+.2158037573*_1,3),y1=Pi(Q-.1055613458*l1-.0638541728*_1,3),R1=Pi(Q-.0894841775*l1-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?(kc(k)||1)*(1.055*Pi(j,1/2.4)-.055):k*12.92}var qu=g.unpack,yH=g.type,xH=C,m9=y,Gu=H,Ku=Fu;m9.prototype.oklab=function(){return Ku(this._rgb)},xH.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"),yH(k)==="array"&&k.length===3)return"oklab"}});var Yu=g.unpack,VH=Fu,Zu=fu,Qu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Yu(k,"rgb"),l1=Q[0],_1=Q[1],T1=Q[2],y1=VH(l1,_1,T1),R1=y1[0],F1=y1[1],J1=y1[2];return Zu(R1,F1,J1)},CH=Qu,bH=g.unpack,Xu=pu,LH=Wu,BH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=bH(k,"lch");var Q=k[0],l1=k[1],_1=k[2],T1=Xu(Q,l1,_1),y1=T1[0],R1=T1[1],F1=T1[2],J1=LH(y1,R1,F1),st=J1[0],kt=J1[1],ft=J1[2];return[st,kt,ft,k.length>3?k[3]:1]},Ju=BH,_H=g.unpack,tv=g.type,ev=C,nv=y,av=H,rv=CH;nv.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(nv,[null].concat(k,["oklch"])))},av.format.oklch=Ju,av.autodetect.push({p:3,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=_H(k,"oklch"),tv(k)==="array"&&k.length===3)return"oklch"}});var iv=y,SH=g.type;iv.prototype.alpha=function(k,j){return j===void 0&&(j=!1),k!==void 0&&SH(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 Ni=y,TH=$r;Ni.prototype.darken=function(k){k===void 0&&(k=1);var j=this,Q=j.lab();return Q[0]-=TH.Kn*k,new Ni(Q,"lab").alpha(j.alpha(),!0)},Ni.prototype.brighten=function(k){return k===void 0&&(k=1),this.darken(-k)},Ni.prototype.darker=Ni.prototype.darken,Ni.prototype.brighter=Ni.prototype.brighten;var cv=y;cv.prototype.get=function(k){var j=k.split("."),Q=j[0],l1=j[1],_1=this[Q]();if(l1){var T1=Q.indexOf(l1)-(Q.substr(0,2)==="ok"?2:0);if(T1>-1)return _1[T1];throw new Error("unknown channel "+l1+" in mode "+Q)}else return _1};var Q5=y,OH=g.type,lv=Math.pow,AH=1e-7,kH=20;Q5.prototype.luminance=function(k){if(k!==void 0&&OH(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",l1=kH,_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 a2.apply(void 0,this._rgb.slice(0,3))};var a2=function(k,j,Q){return k=Ec(k),j=Ec(j),Q=Ec(Q),.2126*k+.7152*j+.0722*Q},Ec=function(k){return k/=255,k<=.03928?k/12.92:lv((k+.055)/1.055,2.4)},j4={},sv=y,hv=g.type,Pc=j4,uv=function(k,j,Q){Q===void 0&&(Q=.5);for(var l1=[],_1=arguments.length-3;_1-- >0;)l1[_1]=arguments[_1+3];var T1=l1[0]||"lrgb";if(!Pc[T1]&&!l1.length&&(T1=Object.keys(Pc)[0]),!Pc[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)),Pc[T1](k,j,Q).alpha(k.alpha()+Q*(j.alpha()-k.alpha()))},vv=y,EH=uv;vv.prototype.mix=vv.prototype.interpolate=function(k,j){j===void 0&&(j=.5);for(var Q=[],l1=arguments.length-2;l1-- >0;)Q[l1]=arguments[l1+2];return EH.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,PH=$r;z9.prototype.saturate=function(k){k===void 0&&(k=1);var j=this,Q=j.lch();return Q[1]+=PH.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 l1=k.split("."),_1=l1[0],T1=l1[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 NH=y,DH=function(k,j,Q){var l1=k._rgb,_1=j._rgb;return new NH(l1[0]+Q*(_1[0]-l1[0]),l1[1]+Q*(_1[1]-l1[1]),l1[2]+Q*(_1[2]-l1[2]),"rgb")};j4.rgb=DH;var RH=y,M9=Math.sqrt,X5=Math.pow,jH=function(k,j,Q){var l1=k._rgb,_1=l1[0],T1=l1[1],y1=l1[2],R1=j._rgb,F1=R1[0],J1=R1[1],st=R1[2];return new RH(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=jH;var IH=y,pv=function(k,j,Q){var l1=k.lab(),_1=j.lab();return new IH(l1[0]+Q*(_1[0]-l1[0]),l1[1]+Q*(_1[1]-l1[1]),l1[2]+Q*(_1[2]-l1[2]),"lab")};j4.lab=pv;var mv=y,J5=function(k,j,Q,l1){var _1,T1,y1,R1;l1==="hsl"?(y1=k.hsl(),R1=j.hsl()):l1==="hsv"?(y1=k.hsv(),R1=j.hsv()):l1==="hcg"?(y1=k.hcg(),R1=j.hcg()):l1==="hsi"?(y1=k.hsi(),R1=j.hsi()):l1==="lch"||l1==="hcl"?(l1="hcl",y1=k.hcl(),R1=j.hcl()):l1==="oklch"&&(y1=k.oklch().reverse(),R1=j.oklch().reverse());var F1,J1,st,kt,ft,Wt;(l1.substr(0,1)==="h"||l1==="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)&&l1!="hsv"&&(Ft=kt)):(T2=F1,(Wt==1||Wt==0)&&l1!="hsv"&&(Ft=st)),Ft===void 0&&(Ft=st+Q*(kt-st)),D2=ft+Q*(Wt-ft),l1==="oklch"?new mv([D2,Ft,T2],l1):new mv([T2,Ft,D2],l1)},FH=J5,zv=function(k,j,Q){return FH(k,j,Q,"lch")};j4.lch=zv,j4.hcl=zv;var $H=y,UH=function(k,j,Q){var l1=k.num(),_1=j.num();return new $H(l1+Q*(_1-l1),"num")};j4.num=UH;var WH=J5,qH=function(k,j,Q){return WH(k,j,Q,"hcg")};j4.hcg=qH;var GH=J5,KH=function(k,j,Q){return GH(k,j,Q,"hsi")};j4.hsi=KH;var YH=J5,ZH=function(k,j,Q){return YH(k,j,Q,"hsl")};j4.hsl=ZH;var QH=J5,XH=function(k,j,Q){return QH(k,j,Q,"hsv")};j4.hsv=XH;var JH=y,tw=function(k,j,Q){var l1=k.oklab(),_1=j.oklab();return new JH(l1[0]+Q*(_1[0]-l1[0]),l1[1]+Q*(_1[1]-l1[1]),l1[2]+Q*(_1[2]-l1[2]),"oklab")};j4.oklab=tw;var ew=J5,nw=function(k,j,Q){return ew(k,j,Q,"oklch")};j4.oklch=nw;var H9=y,aw=g.clip_rgb,w9=Math.pow,Uo=Math.sqrt,y9=Math.PI,Mv=Math.cos,Wr=Math.sin,rw=Math.atan2,iw=function(k,j,Q){j===void 0&&(j="lrgb"),Q===void 0&&(Q=null);var l1=k.length;Q||(Q=Array.from(new Array(l1)).map(function(){return 1}));var _1=l1/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 ow(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/=l1,new H9(y1,j).alpha(ft>.99999?1:ft,!0)},ow=function(k,j){for(var Q=k.length,l1=[0,0,0,0],_1=0;_1.9999999&&(l1[3]=1),new H9(aw(l1))},Kn=C,t3=g.type,k1=Math.pow,E1=function(k){var j="rgb",Q=Kn("#ccc"),l1=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"&&Kn.brewer&&Kn.brewer[gt.toLowerCase()]&&(gt=Kn.brewer[gt.toLowerCase()]),t3(gt)==="array"){gt.length===1&&(gt=[gt[0],gt[0]]),gt=gt.slice(0);for(var c2=0;c2=R1[k2];)k2++;return k2-1}return 0},o0=function(gt){return gt},C4=function(gt){return gt},u4=function(gt,c2){var k2,O2;if(c2==null&&(c2=!1),isNaN(gt)||gt===null)return Q;if(c2)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),c2||(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 j0=Math.floor(O2*1e4);if(Ft&&Wt[j0])k2=Wt[j0];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 lr=(u0-h0[m0])/(h0[m0+1]-h0[m0]),a3=Q2[m0]+lr*(Q2[m0+1]-Q2[m0]);return a3})}}return _1=[st,kt],K2},K2.mode=function(gt){return arguments.length?(j=gt,Cn(),K2):j},K2.range=function(gt,c2){return D2(gt),K2},K2.out=function(gt){return J1=gt,K2},K2.spread=function(gt){return arguments.length?(l1=gt,K2):l1},K2.correctLightness=function(gt){return gt==null&&(gt=!0),ft=gt,Cn(),ft?o0=function(c2){for(var k2=u4(0,!0).lab()[0],O2=u4(1,!0).lab()[0],b4=k2>O2,j0=u4(c2,!0).lab()[0],Q2=k2+(O2-k2)*c2,h0=j0-Q2,u0=0,m0=1,lr=20;Math.abs(h0)>.01&&lr-- >0;)(function(){return b4&&(h0*=-1),h0<0?(u0=c2,c2+=(m0-c2)*.5):(m0=c2,c2+=(u0-c2)*.5),j0=u4(c2,!0).lab()[0],h0=j0-Q2})();return c2}:o0=function(c2){return c2},K2},K2.padding=function(gt){return gt!=null?(t3(gt)==="number"&&(gt=[gt,gt]),y1=gt,K2):y1},K2.colors=function(gt,c2){arguments.length<2&&(c2="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=lt(0,gt,!1).map(function(m0){return K2(O2+m0/(gt-1)*b4)})}else{k=[];var j0=[];if(R1&&R1.length>2)for(var Q2=1,h0=R1.length,u0=1<=h0;u0?Q2h0;u0?Q2++:Q2--)j0.push((R1[Q2-1]+R1[Q2])*.5);else j0=_1;k2=j0.map(function(m0){return K2(m0)})}return Kn[c2]&&(k2=k2.map(function(m0){return m0[c2]()})),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=Kn(gt),K2):Q},K2};function lt(k,j,Q){for(var l1=[],_1=kT1;_1?y1++:y1--)l1.push(y1);return l1}var It=y,A2=E1,Re=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=Re(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,an=function(k,j,Q){if(!an[Q])throw new Error("unknown blend mode "+Q);return an[Q](k,j)},ma=function(k){return function(j,Q){var l1=qo(Q).rgb(),_1=qo(j).rgb();return qo.rgb(k(l1,_1))}},za=function(k){return function(j,Q){var l1=[];return l1[0]=k(j[0],Q[0]),l1[1]=k(j[1],Q[1]),l1[2]=k(j[2],Q[2]),l1}},x9=function(k){return k},V9=function(k,j){return k*j/255},C9=function(k,j){return k>j?j:k},Nc=function(k,j){return k>j?k:j},n3=function(k,j){return 255*(1-(1-k/255)*(1-j/255))},Di=function(k,j){return j<128?2*k*j/255:255*(1-2*(1-k/255)*(1-j/255))},cw=function(k,j){return 255*(1-(1-j/255)/(k/255))},Ri=function(k,j){return k===255?255:(k=255*(j/255)/(1-k/255),k>255?255:k)};an.normal=ma(za(x9)),an.multiply=ma(za(V9)),an.screen=ma(za(n3)),an.overlay=ma(za(Di)),an.darken=ma(za(C9)),an.lighten=ma(za(Nc)),an.dodge=ma(za(Ri)),an.burn=ma(za(cw));for(var b9=an,Go=g.type,se1=g.clip_rgb,he1=g.TWOPI,ue1=Math.pow,ve1=Math.sin,de1=Math.cos,NO=C,fe1=function(k,j,Q,l1,_1){k===void 0&&(k=300),j===void 0&&(j=-1.5),Q===void 0&&(Q=1),l1===void 0&&(l1=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=he1*((k+120)/360+j*F1),st=ue1(_1[0]+y1*F1,l1),kt=T1!==0?Q[0]+F1*T1:Q,ft=kt*st*(1-st)/2,Wt=de1(J1),Ft=ve1(J1),T2=st+ft*(-.14861*Wt+1.78277*Ft),D2=st+ft*(-.29227*Wt-.90649*Ft),Z2=st+ft*(1.97294*Wt);return NO(se1([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?l1:(l1=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 NO.scale(R1)},R1.hue(Q),R1},ge1=y,pe1="0123456789abcdef",me1=Math.floor,ze1=Math.random,Me1=function(){for(var k="#",j=0;j<6;j++)k+=pe1.charAt(me1(ze1()*16));return new ge1(k,"hex")},lw=s,DO=Math.log,He1=Math.pow,we1=Math.floor,ye1=Math.abs,RO=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(l1){j&&lw(l1)==="object"&&(l1=l1[j]),l1!=null&&!isNaN(l1)&&(Q.values.push(l1),Q.sum+=l1,l1Q.max&&(Q.max=l1),Q.count+=1)}),Q.domain=[Q.min,Q.max],Q.limits=function(l1,_1){return jO(Q,l1,_1)},Q},jO=function(k,j,Q){j===void 0&&(j="equal"),Q===void 0&&(Q=7),lw(k)=="array"&&(k=RO(k));var l1=k.min,_1=k.max,T1=k.values.sort(function(hw,uw){return hw-uw});if(Q===1)return[l1,_1];var y1=[];if(j.substr(0,1)==="c"&&(y1.push(l1),y1.push(_1)),j.substr(0,1)==="e"){y1.push(l1);for(var R1=1;R1 0");var F1=Math.LOG10E*DO(l1),J1=Math.LOG10E*DO(_1);y1.push(l1);for(var st=1;st200&&(C4=!1)}for(var r3={},Dc=0;Dcl1?(Q+.05)/(l1+.05):(l1+.05)/(Q+.05)},$O=y,ji=Math.sqrt,je=Math.pow,Ve1=Math.min,Ce1=Math.max,UO=Math.atan2,WO=Math.abs,Hv=Math.cos,qO=Math.sin,be1=Math.exp,GO=Math.PI,Le1=function(k,j,Q,l1,_1){Q===void 0&&(Q=1),l1===void 0&&(l1=1),_1===void 0&&(_1=1);var T1=function(Yo){return 360*Yo/(2*GO)},y1=function(Yo){return 2*GO*Yo/360};k=new $O(k),j=new $O(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=ji(je(J1,2)+je(st,2)),Z2=ji(je(Wt,2)+je(Ft,2)),o0=(D2+Z2)/2,C4=.5*(1-ji(je(o0,7)/(je(o0,7)+je(25,7)))),u4=J1*(1+C4),Cn=Wt*(1+C4),K2=ji(je(u4,2)+je(st,2)),gt=ji(je(Cn,2)+je(Ft,2)),c2=(K2+gt)/2,k2=T1(UO(st,u4)),O2=T1(UO(Ft,Cn)),b4=k2>=0?k2:k2+360,j0=O2>=0?O2:O2+360,Q2=WO(b4-j0)>180?(b4+j0+360)/2:(b4+j0)/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=j0-b4;u0=WO(u0)<=180?u0:j0<=b4?u0+360:u0-360,u0=2*ji(K2*gt)*qO(y1(u0)/2);var m0=ft-F1,lr=gt-K2,a3=1+.015*je(T2-50,2)/ji(20+je(T2-50,2)),r3=1+.045*c2,Dc=1+.015*c2*h0,Rc=30*be1(-je((Q2-275)/25,2)),Ii=2*ji(je(c2,7)/(je(c2,7)+je(25,7))),Ko=-Ii*qO(2*y1(Rc)),L9=ji(je(m0/(Q*a3),2)+je(lr/(l1*r3),2)+je(u0/(_1*Dc),2)+Ko*(lr/(l1*r3))*(u0/(_1*Dc)));return Ce1(0,Ve1(100,L9))},KO=y,Be1=function(k,j,Q){Q===void 0&&(Q="lab"),k=new KO(k),j=new KO(j);var l1=k.get(Q),_1=j.get(Q),T1=0;for(var y1 in l1){var R1=(l1[y1]||0)-(_1[y1]||0);T1+=R1*R1}return Math.sqrt(T1)},_e1=y,Se1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];try{return new(Function.prototype.bind.apply(_e1,[null].concat(k))),!0}catch{return!1}},YO=C,ZO=E1,Te1={cool:function(){return ZO([YO.hsl(180,1,.9),YO.hsl(250,.7,.4)])},hot:function(){return ZO(["#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"]},sw=0,QO=Object.keys(wv);sw=e?"100%":"".concat(Math.round(t/e*100),"%")};Pt.calcPercentage=z71;var M71=function(t,e){e||(e=100);for(var n=[],a=t.length,r=[],o=t.length,c=0,l=0,h=0,s,u,v;o--;)l+=n[o]=Math.round(t[o]);for(h=lv&&(c=s);n[c]+=h,l+=h}for(var f=0;f"u"?r&&l?h=r:o&&!l&&(h=o):r?h=l?r:o??c:o?h=a==="light"?o:c:h=c,h}Pt.getStylesBasedOnTheme=z71;var Qv=Date.now(),Uy=[],M71=function(t,e){e===void 0&&(e=!1);var n="".concat(Qv,"--").concat(t);return Uy.filter(function(a){return a===n}).length>(e?1:0)?(Qv=Date.now(),Uy.push("".concat(Qv,"--").concat(t)),"".concat(Qv,"--").concat(t)):(Uy.push(n),n)};Pt.getUniqueId=M71;Pt.DATE_FORMAT="YYYY-MM-DD";Pt.DATETIME_FORMAT="yyyy-MM-dd HH:mm";Pt.DAY_FORMAT="yyyy-MM-dd";var sP;(function(t){var e=b&&b.__makeTemplateObject||function(m,z){return Object.defineProperty?Object.defineProperty(m,"raw",{value:z}):m.raw=z,m},n=b&&b.__assign||function(){return n=Object.assign||function(m){for(var z,w=1,x=arguments.length;w"u"?r&&l?h=r:o&&!l&&(h=o):r?h=l?r:o??c:o?h=a==="light"?o:c:h=c,h}Pt.getStylesBasedOnTheme=H71;var Qv=Date.now(),Uy=[],w71=function(t,e){e===void 0&&(e=!1);var n="".concat(Qv,"--").concat(t);return Uy.filter(function(a){return a===n}).length>(e?1:0)?(Qv=Date.now(),Uy.push("".concat(Qv,"--").concat(t)),"".concat(Qv,"--").concat(t)):(Uy.push(n),n)};Pt.getUniqueId=w71;Pt.DATE_FORMAT="YYYY-MM-DD";Pt.DATETIME_FORMAT="yyyy-MM-dd HH:mm";Pt.DAY_FORMAT="yyyy-MM-dd";var sP;(function(t){var e=b&&b.__makeTemplateObject||function(m,M){return Object.defineProperty?Object.defineProperty(m,"raw",{value:M}):m.raw=M,m},n=b&&b.__assign||function(){return n=Object.assign||function(m){for(var M,w=1,x=arguments.length;w=2.5},[w||C.primaryColor]);return(0,l.jsx)(d,n({lightContrast:L,color:w},V,{className:"wellms-component ".concat(y)},{children:z}))};t.Badge=M;var g=(0,s.default)(t.Badge)(p||(p=e([""],[""])));t.default=(0,s.withTheme)(g);var H,p})(ZS);var qK={};(function(t){var e=b&&b.__makeTemplateObject||function(p,m){return Object.defineProperty?Object.defineProperty(p,"raw",{value:m}):p.raw=m,p},n=b&&b.__assign||function(){return n=Object.assign||function(p){for(var m,z=1,w=arguments.length;z=2.5},[w||C.primaryColor]);return(0,l.jsx)(d,n({lightContrast:L,color:w},V,{className:"wellms-component ".concat(y)},{children:M}))};t.Badge=z;var g=(0,s.default)(t.Badge)(p||(p=e([""],[""])));t.default=(0,s.withTheme)(g);var H,p})(Z_);var GK={};(function(t){var e=b&&b.__makeTemplateObject||function(p,m){return Object.defineProperty?Object.defineProperty(p,"raw",{value:m}):p.raw=m,p},n=b&&b.__assign||function(){return n=Object.assign||function(p){for(var m,M=1,w=arguments.length;M1?"s":"")+" required, but only "+e.length+" present")}function KK(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 xi(t){if(g1(1,arguments),!KK(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 n=A1(t).getTime(),a=Lt(e);return new Date(n+a)}function vl(t,e){g1(2,arguments);var n=Lt(e);return Th(t,-n)}var D71=864e5;function R71(t){g1(1,arguments);var e=A1(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),r=n-a;return Math.floor(r/D71)+1}function dl(t){g1(1,arguments);var e=1,n=A1(t),a=n.getUTCDay(),r=(a=r.getTime()?n+1:e.getTime()>=c.getTime()?n:n-1}function j71(t){g1(1,arguments);var e=YK(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var a=dl(n);return a}var I71=6048e5;function ZK(t){g1(1,arguments);var e=A1(t),n=dl(e).getTime()-j71(e).getTime();return Math.round(n/I71)+1}var QK={};function Ye(){return QK}function F71(t){QK=t}function Vi(t,e){var n,a,r,o,c,l,h,s;g1(1,arguments);var u=Ye(),v=Lt((n=(a=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(c=e.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&a!==void 0?a:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n: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=Vi(M,e),H=new Date(0);H.setUTCFullYear(v,0,d),H.setUTCHours(0,0,0,0);var p=Vi(H,e);return u.getTime()>=g.getTime()?v+1:u.getTime()>=p.getTime()?v:v-1}function $71(t,e){var n,a,r,o,c,l,h,s;g1(1,arguments);var u=Ye(),v=Lt((n=(a=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(c=e.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:u.firstWeekContainsDate)!==null&&a!==void 0?a:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=n_(t,e),d=new Date(0);d.setUTCFullYear(f,0,v),d.setUTCHours(0,0,0,0);var M=Vi(d,e);return M}var U71=6048e5;function XK(t,e){g1(1,arguments);var n=A1(t),a=Vi(n,e).getTime()-$71(n,e).getTime();return Math.round(a/U71)+1}function e2(t,e){for(var n=t<0?"-":"",a=Math.abs(t).toString();a.length0?a:1-a;return e2(n==="yy"?r%100:r,n.length)},M:function(e,n){var a=e.getUTCMonth();return n==="M"?String(a+1):e2(a+1,2)},d:function(e,n){return e2(e.getUTCDate(),n.length)},a:function(e,n){var a=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(e,n){return e2(e.getUTCHours()%12||12,n.length)},H:function(e,n){return e2(e.getUTCHours(),n.length)},m:function(e,n){return e2(e.getUTCMinutes(),n.length)},s:function(e,n){return e2(e.getUTCSeconds(),n.length)},S:function(e,n){var a=n.length,r=e.getUTCMilliseconds(),o=Math.floor(r*Math.pow(10,a-3));return e2(o,n.length)}};const ti=W71;var U6={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},q71={G:function(e,n,a){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return a.era(r,{width:"abbreviated"});case"GGGGG":return a.era(r,{width:"narrow"});case"GGGG":default:return a.era(r,{width:"wide"})}},y:function(e,n,a){if(n==="yo"){var r=e.getUTCFullYear(),o=r>0?r:1-r;return a.ordinalNumber(o,{unit:"year"})}return ti.y(e,n)},Y:function(e,n,a,r){var o=n_(e,r),c=o>0?o:1-o;if(n==="YY"){var l=c%100;return e2(l,2)}return n==="Yo"?a.ordinalNumber(c,{unit:"year"}):e2(c,n.length)},R:function(e,n){var a=YK(e);return e2(a,n.length)},u:function(e,n){var a=e.getUTCFullYear();return e2(a,n.length)},Q:function(e,n,a){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return e2(r,2);case"Qo":return a.ordinalNumber(r,{unit:"quarter"});case"QQQ":return a.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,a){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return e2(r,2);case"qo":return a.ordinalNumber(r,{unit:"quarter"});case"qqq":return a.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,a){var r=e.getUTCMonth();switch(n){case"M":case"MM":return ti.M(e,n);case"Mo":return a.ordinalNumber(r+1,{unit:"month"});case"MMM":return a.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,a){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return e2(r+1,2);case"Lo":return a.ordinalNumber(r+1,{unit:"month"});case"LLL":return a.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,a,r){var o=XK(e,r);return n==="wo"?a.ordinalNumber(o,{unit:"week"}):e2(o,n.length)},I:function(e,n,a){var r=ZK(e);return n==="Io"?a.ordinalNumber(r,{unit:"week"}):e2(r,n.length)},d:function(e,n,a){return n==="do"?a.ordinalNumber(e.getUTCDate(),{unit:"date"}):ti.d(e,n)},D:function(e,n,a){var r=R71(e);return n==="Do"?a.ordinalNumber(r,{unit:"dayOfYear"}):e2(r,n.length)},E:function(e,n,a){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return a.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(r,{width:"short",context:"formatting"});case"EEEE":default:return a.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,a,r){var o=e.getUTCDay(),c=(o-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(c);case"ee":return e2(c,2);case"eo":return a.ordinalNumber(c,{unit:"day"});case"eee":return a.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(o,{width:"short",context:"formatting"});case"eeee":default:return a.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,a,r){var o=e.getUTCDay(),c=(o-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(c);case"cc":return e2(c,n.length);case"co":return a.ordinalNumber(c,{unit:"day"});case"ccc":return a.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(o,{width:"narrow",context:"standalone"});case"cccccc":return a.day(o,{width:"short",context:"standalone"});case"cccc":default:return a.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,a){var r=e.getUTCDay(),o=r===0?7:r;switch(n){case"i":return String(o);case"ii":return e2(o,n.length);case"io":return a.ordinalNumber(o,{unit:"day"});case"iii":return a.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(r,{width:"short",context:"formatting"});case"iiii":default:return a.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,a){var r=e.getUTCHours(),o=r/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,n,a){var r=e.getUTCHours(),o;switch(r===12?o=U6.noon:r===0?o=U6.midnight:o=r/12>=1?"pm":"am",n){case"b":case"bb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,n,a){var r=e.getUTCHours(),o;switch(r>=17?o=U6.evening:r>=12?o=U6.afternoon:r>=4?o=U6.morning:o=U6.night,n){case"B":case"BB":case"BBB":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,n,a){if(n==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),a.ordinalNumber(r,{unit:"hour"})}return ti.h(e,n)},H:function(e,n,a){return n==="Ho"?a.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ti.H(e,n)},K:function(e,n,a){var r=e.getUTCHours()%12;return n==="Ko"?a.ordinalNumber(r,{unit:"hour"}):e2(r,n.length)},k:function(e,n,a){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?a.ordinalNumber(r,{unit:"hour"}):e2(r,n.length)},m:function(e,n,a){return n==="mo"?a.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ti.m(e,n)},s:function(e,n,a){return n==="so"?a.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ti.s(e,n)},S:function(e,n){return ti.S(e,n)},X:function(e,n,a,r){var o=r._originalDate||e,c=o.getTimezoneOffset();if(c===0)return"Z";switch(n){case"X":return uP(c);case"XXXX":case"XX":return c8(c);case"XXXXX":case"XXX":default:return c8(c,":")}},x:function(e,n,a,r){var o=r._originalDate||e,c=o.getTimezoneOffset();switch(n){case"x":return uP(c);case"xxxx":case"xx":return c8(c);case"xxxxx":case"xxx":default:return c8(c,":")}},O:function(e,n,a,r){var o=r._originalDate||e,c=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+hP(c,":");case"OOOO":default:return"GMT"+c8(c,":")}},z:function(e,n,a,r){var o=r._originalDate||e,c=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+hP(c,":");case"zzzz":default:return"GMT"+c8(c,":")}},t:function(e,n,a,r){var o=r._originalDate||e,c=Math.floor(o.getTime()/1e3);return e2(c,n.length)},T:function(e,n,a,r){var o=r._originalDate||e,c=o.getTime();return e2(c,n.length)}};function hP(t,e){var n=t>0?"-":"+",a=Math.abs(t),r=Math.floor(a/60),o=a%60;if(o===0)return n+String(r);var c=e||"";return n+String(r)+c+e2(o,2)}function uP(t,e){if(t%60===0){var n=t>0?"-":"+";return n+e2(Math.abs(t)/60,2)}return c8(t,e)}function c8(t,e){var n=e||"",a=t>0?"-":"+",r=Math.abs(t),o=e2(Math.floor(r/60),2),c=e2(r%60,2);return a+o+n+c}var vP=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},JK=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},G71=function(e,n){var a=e.match(/(P+)(p+)?/)||[],r=a[1],o=a[2];if(!o)return vP(e,n);var c;switch(r){case"P":c=n.dateTime({width:"short"});break;case"PP":c=n.dateTime({width:"medium"});break;case"PPP":c=n.dateTime({width:"long"});break;case"PPPP":default:c=n.dateTime({width:"full"});break}return c.replace("{{date}}",vP(r,n)).replace("{{time}}",JK(o,n))},Mb={p:JK,P:G71};function Mn(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 K71=["D","DD"],Y71=["YY","YYYY"];function tY(t){return K71.indexOf(t)!==-1}function eY(t){return Y71.indexOf(t)!==-1}function _g(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; 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(n,"`; 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(n,"`; 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(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Z71={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"}},Q71=function(e,n,a){var r,o=Z71[e];return typeof o=="string"?r=o:n===1?r=o.one:r=o.other.replace("{{count}}",n.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+r:r+" ago":r};const nY=Q71;function di(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,a=t.formats[n]||t.formats[t.defaultWidth];return a}}var X71={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},J71={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ts1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},es1={date:di({formats:X71,defaultWidth:"full"}),time:di({formats:J71,defaultWidth:"full"}),dateTime:di({formats:ts1,defaultWidth:"full"})};const ns1=es1;var as1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},rs1=function(e,n,a,r){return as1[e]};const aY=rs1;function r5(t){return function(e,n){var a=n!=null&&n.context?String(n.context):"standalone",r;if(a==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,c=n!=null&&n.width?String(n.width):o;r=t.formattingValues[c]||t.formattingValues[o]}else{var l=t.defaultWidth,h=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[h]||t.values[l]}var s=t.argumentCallback?t.argumentCallback(e):e;return r[s]}}var is1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},os1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},cs1={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"]},ls1={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"]},ss1={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"}},hs1={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"}},us1=function(e,n){var a=Number(e),r=a%100;if(r>20||r<10)switch(r%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},vs1={ordinalNumber:us1,era:r5({values:is1,defaultWidth:"wide"}),quarter:r5({values:os1,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:r5({values:cs1,defaultWidth:"wide"}),day:r5({values:ls1,defaultWidth:"wide"}),dayPeriod:r5({values:ss1,defaultWidth:"wide",formattingValues:hs1,defaultFormattingWidth:"wide"})};const rY=vs1;function i5(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.width,r=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],o=e.match(r);if(!o)return null;var c=o[0],l=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],h=Array.isArray(l)?fs1(l,function(v){return v.test(c)}):ds1(l,function(v){return v.test(c)}),s;s=t.valueCallback?t.valueCallback(h):h,s=n.valueCallback?n.valueCallback(s):s;var u=e.slice(c.length);return{value:s,rest:u}}}function ds1(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function fs1(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},a=e.match(t.matchPattern);if(!a)return null;var r=a[0],o=e.match(t.parsePattern);if(!o)return null;var c=t.valueCallback?t.valueCallback(o[0]):o[0];c=n.valueCallback?n.valueCallback(c):c;var l=e.slice(r.length);return{value:c,rest:l}}}var gs1=/^(\d+)(th|st|nd|rd)?/i,ps1=/\d+/i,ms1={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},zs1={any:[/^b/i,/^(a|c)/i]},Ms1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Hs1={any:[/1/i,/2/i,/3/i,/4/i]},ws1={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},ys1={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]},xs1={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},Vs1={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]},Cs1={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},bs1={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}},Ls1={ordinalNumber:iY({matchPattern:gs1,parsePattern:ps1,valueCallback:function(e){return parseInt(e,10)}}),era:i5({matchPatterns:ms1,defaultMatchWidth:"wide",parsePatterns:zs1,defaultParseWidth:"any"}),quarter:i5({matchPatterns:Ms1,defaultMatchWidth:"wide",parsePatterns:Hs1,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:i5({matchPatterns:ws1,defaultMatchWidth:"wide",parsePatterns:ys1,defaultParseWidth:"any"}),day:i5({matchPatterns:xs1,defaultMatchWidth:"wide",parsePatterns:Vs1,defaultParseWidth:"any"}),dayPeriod:i5({matchPatterns:Cs1,defaultMatchWidth:"any",parsePatterns:bs1,defaultParseWidth:"any"})};const oY=Ls1;var Bs1={code:"en-US",formatDistance:nY,formatLong:ns1,formatRelative:aY,localize:rY,match:oY,options:{weekStartsOn:0,firstWeekContainsDate:1}};const $l=Bs1;var Ss1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_s1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ts1=/^'([^]*?)'?$/,Os1=/''/g,As1=/[a-zA-Z]/;function fl(t,e,n){var a,r,o,c,l,h,s,u,v,f,d,M,g,H,p,m,z,w;g1(2,arguments);var x=String(e),y=Ye(),V=(a=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:y.locale)!==null&&a!==void 0?a:$l,C=Lt((o=(c=(l=(h=n==null?void 0:n.firstWeekContainsDate)!==null&&h!==void 0?h:n==null||(s=n.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&l!==void 0?l:y.firstWeekContainsDate)!==null&&c!==void 0?c:(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=n==null?void 0:n.weekStartsOn)!==null&&H!==void 0?H:n==null||(p=n.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(!xi(B))throw new RangeError("Invalid time value");var _=Mn(B),T=vl(B,_),P={firstWeekContainsDate:C,weekStartsOn:L,locale:V,_originalDate:B},F=x.match(_s1).map(function(W){var U=W[0];if(U==="p"||U==="P"){var Z=Mb[U];return Z(W,V.formatLong)}return W}).join("").match(Ss1).map(function(W){if(W==="''")return"'";var U=W[0];if(U==="'")return ks1(W);var Z=q71[U];if(Z)return!(n!=null&&n.useAdditionalWeekYearTokens)&&eY(W)&&_g(W,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&tY(W)&&_g(W,e,String(t)),Z(T,W,V.localize,P);if(U.match(As1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+U+"`");return W}).join("");return F}function ks1(t){var e=t.match(Ts1);return e?e[1].replace(Os1,"'"):t}const Es1=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),Ps1=se(Es1);function gl(t){g1(1,arguments);var e=A1(t);return e.setHours(0,0,0,0),e}function Oh(t,e){g1(2,arguments);var n=gl(t),a=gl(e);return n.getTime()===a.getTime()}function cY(t){return g1(1,arguments),Oh(t,Date.now())}const Ns1=Object.freeze(Object.defineProperty({__proto__:null,default:cY},Symbol.toStringTag,{value:"Module"})),Ds1=se(Ns1);var dP;function a_(){return dP||(dP=1,function(t){var e=b&&b.__makeTemplateObject||function(p,m){return Object.defineProperty?Object.defineProperty(p,"raw",{value:m}):p.raw=m,p},n=b&&b.__assign||function(){return n=Object.assign||function(p){for(var m,z=1,w=arguments.length;z1?"s":"")+" required, but only "+e.length+" present")}function YK(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),!YK(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 n=A1(t).getTime(),a=Lt(e);return new Date(n+a)}function v6(t,e){g1(2,arguments);var n=Lt(e);return Th(t,-n)}var j71=864e5;function I71(t){g1(1,arguments);var e=A1(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),r=n-a;return Math.floor(r/j71)+1}function d6(t){g1(1,arguments);var e=1,n=A1(t),a=n.getUTCDay(),r=(a=r.getTime()?n+1:e.getTime()>=c.getTime()?n:n-1}function F71(t){g1(1,arguments);var e=ZK(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var a=d6(n);return a}var $71=6048e5;function QK(t){g1(1,arguments);var e=A1(t),n=d6(e).getTime()-F71(e).getTime();return Math.round(n/$71)+1}var XK={};function Ye(){return XK}function U71(t){XK=t}function x5(t,e){var n,a,r,o,c,l,h,s;g1(1,arguments);var u=Ye(),v=Lt((n=(a=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(c=e.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&a!==void 0?a:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=A1(t),d=f.getUTCDay(),z=(d=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=new Date(0);z.setUTCFullYear(v+1,0,d),z.setUTCHours(0,0,0,0);var g=x5(z,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 W71(t,e){var n,a,r,o,c,l,h,s;g1(1,arguments);var u=Ye(),v=Lt((n=(a=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(c=e.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:u.firstWeekContainsDate)!==null&&a!==void 0?a:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=nS(t,e),d=new Date(0);d.setUTCFullYear(f,0,v),d.setUTCHours(0,0,0,0);var z=x5(d,e);return z}var q71=6048e5;function JK(t,e){g1(1,arguments);var n=A1(t),a=x5(n,e).getTime()-W71(n,e).getTime();return Math.round(a/q71)+1}function e2(t,e){for(var n=t<0?"-":"",a=Math.abs(t).toString();a.length0?a:1-a;return e2(n==="yy"?r%100:r,n.length)},M:function(e,n){var a=e.getUTCMonth();return n==="M"?String(a+1):e2(a+1,2)},d:function(e,n){return e2(e.getUTCDate(),n.length)},a:function(e,n){var a=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(e,n){return e2(e.getUTCHours()%12||12,n.length)},H:function(e,n){return e2(e.getUTCHours(),n.length)},m:function(e,n){return e2(e.getUTCMinutes(),n.length)},s:function(e,n){return e2(e.getUTCSeconds(),n.length)},S:function(e,n){var a=n.length,r=e.getUTCMilliseconds(),o=Math.floor(r*Math.pow(10,a-3));return e2(o,n.length)}};const Ji=G71;var Wc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},K71={G:function(e,n,a){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return a.era(r,{width:"abbreviated"});case"GGGGG":return a.era(r,{width:"narrow"});case"GGGG":default:return a.era(r,{width:"wide"})}},y:function(e,n,a){if(n==="yo"){var r=e.getUTCFullYear(),o=r>0?r:1-r;return a.ordinalNumber(o,{unit:"year"})}return Ji.y(e,n)},Y:function(e,n,a,r){var o=nS(e,r),c=o>0?o:1-o;if(n==="YY"){var l=c%100;return e2(l,2)}return n==="Yo"?a.ordinalNumber(c,{unit:"year"}):e2(c,n.length)},R:function(e,n){var a=ZK(e);return e2(a,n.length)},u:function(e,n){var a=e.getUTCFullYear();return e2(a,n.length)},Q:function(e,n,a){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return e2(r,2);case"Qo":return a.ordinalNumber(r,{unit:"quarter"});case"QQQ":return a.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,a){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return e2(r,2);case"qo":return a.ordinalNumber(r,{unit:"quarter"});case"qqq":return a.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,a){var r=e.getUTCMonth();switch(n){case"M":case"MM":return Ji.M(e,n);case"Mo":return a.ordinalNumber(r+1,{unit:"month"});case"MMM":return a.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,a){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return e2(r+1,2);case"Lo":return a.ordinalNumber(r+1,{unit:"month"});case"LLL":return a.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,a,r){var o=JK(e,r);return n==="wo"?a.ordinalNumber(o,{unit:"week"}):e2(o,n.length)},I:function(e,n,a){var r=QK(e);return n==="Io"?a.ordinalNumber(r,{unit:"week"}):e2(r,n.length)},d:function(e,n,a){return n==="do"?a.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ji.d(e,n)},D:function(e,n,a){var r=I71(e);return n==="Do"?a.ordinalNumber(r,{unit:"dayOfYear"}):e2(r,n.length)},E:function(e,n,a){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return a.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(r,{width:"short",context:"formatting"});case"EEEE":default:return a.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,a,r){var o=e.getUTCDay(),c=(o-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(c);case"ee":return e2(c,2);case"eo":return a.ordinalNumber(c,{unit:"day"});case"eee":return a.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(o,{width:"short",context:"formatting"});case"eeee":default:return a.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,a,r){var o=e.getUTCDay(),c=(o-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(c);case"cc":return e2(c,n.length);case"co":return a.ordinalNumber(c,{unit:"day"});case"ccc":return a.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(o,{width:"narrow",context:"standalone"});case"cccccc":return a.day(o,{width:"short",context:"standalone"});case"cccc":default:return a.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,a){var r=e.getUTCDay(),o=r===0?7:r;switch(n){case"i":return String(o);case"ii":return e2(o,n.length);case"io":return a.ordinalNumber(o,{unit:"day"});case"iii":return a.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(r,{width:"short",context:"formatting"});case"iiii":default:return a.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,a){var r=e.getUTCHours(),o=r/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,n,a){var r=e.getUTCHours(),o;switch(r===12?o=Wc.noon:r===0?o=Wc.midnight:o=r/12>=1?"pm":"am",n){case"b":case"bb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,n,a){var r=e.getUTCHours(),o;switch(r>=17?o=Wc.evening:r>=12?o=Wc.afternoon:r>=4?o=Wc.morning:o=Wc.night,n){case"B":case"BB":case"BBB":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,n,a){if(n==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),a.ordinalNumber(r,{unit:"hour"})}return Ji.h(e,n)},H:function(e,n,a){return n==="Ho"?a.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ji.H(e,n)},K:function(e,n,a){var r=e.getUTCHours()%12;return n==="Ko"?a.ordinalNumber(r,{unit:"hour"}):e2(r,n.length)},k:function(e,n,a){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?a.ordinalNumber(r,{unit:"hour"}):e2(r,n.length)},m:function(e,n,a){return n==="mo"?a.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ji.m(e,n)},s:function(e,n,a){return n==="so"?a.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ji.s(e,n)},S:function(e,n){return Ji.S(e,n)},X:function(e,n,a,r){var o=r._originalDate||e,c=o.getTimezoneOffset();if(c===0)return"Z";switch(n){case"X":return uP(c);case"XXXX":case"XX":return s8(c);case"XXXXX":case"XXX":default:return s8(c,":")}},x:function(e,n,a,r){var o=r._originalDate||e,c=o.getTimezoneOffset();switch(n){case"x":return uP(c);case"xxxx":case"xx":return s8(c);case"xxxxx":case"xxx":default:return s8(c,":")}},O:function(e,n,a,r){var o=r._originalDate||e,c=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+hP(c,":");case"OOOO":default:return"GMT"+s8(c,":")}},z:function(e,n,a,r){var o=r._originalDate||e,c=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+hP(c,":");case"zzzz":default:return"GMT"+s8(c,":")}},t:function(e,n,a,r){var o=r._originalDate||e,c=Math.floor(o.getTime()/1e3);return e2(c,n.length)},T:function(e,n,a,r){var o=r._originalDate||e,c=o.getTime();return e2(c,n.length)}};function hP(t,e){var n=t>0?"-":"+",a=Math.abs(t),r=Math.floor(a/60),o=a%60;if(o===0)return n+String(r);var c=e||"";return n+String(r)+c+e2(o,2)}function uP(t,e){if(t%60===0){var n=t>0?"-":"+";return n+e2(Math.abs(t)/60,2)}return s8(t,e)}function s8(t,e){var n=e||"",a=t>0?"-":"+",r=Math.abs(t),o=e2(Math.floor(r/60),2),c=e2(r%60,2);return a+o+n+c}var vP=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},tY=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Y71=function(e,n){var a=e.match(/(P+)(p+)?/)||[],r=a[1],o=a[2];if(!o)return vP(e,n);var c;switch(r){case"P":c=n.dateTime({width:"short"});break;case"PP":c=n.dateTime({width:"medium"});break;case"PPP":c=n.dateTime({width:"long"});break;case"PPPP":default:c=n.dateTime({width:"full"});break}return c.replace("{{date}}",vP(r,n)).replace("{{time}}",tY(o,n))},Mb={p:tY,P:Y71};function Mn(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 Z71=["D","DD"],Q71=["YY","YYYY"];function eY(t){return Z71.indexOf(t)!==-1}function nY(t){return Q71.indexOf(t)!==-1}function Sg(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; 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(n,"`; 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(n,"`; 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(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var X71={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"}},J71=function(e,n,a){var r,o=X71[e];return typeof o=="string"?r=o:n===1?r=o.one:r=o.other.replace("{{count}}",n.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+r:r+" ago":r};const aY=J71;function v5(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,a=t.formats[n]||t.formats[t.defaultWidth];return a}}var ts1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},es1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ns1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},as1={date:v5({formats:ts1,defaultWidth:"full"}),time:v5({formats:es1,defaultWidth:"full"}),dateTime:v5({formats:ns1,defaultWidth:"full"})};const rs1=as1;var is1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},os1=function(e,n,a,r){return is1[e]};const rY=os1;function ai(t){return function(e,n){var a=n!=null&&n.context?String(n.context):"standalone",r;if(a==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,c=n!=null&&n.width?String(n.width):o;r=t.formattingValues[c]||t.formattingValues[o]}else{var l=t.defaultWidth,h=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[h]||t.values[l]}var s=t.argumentCallback?t.argumentCallback(e):e;return r[s]}}var cs1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ls1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ss1={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"]},hs1={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"]},us1={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"}},vs1={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"}},ds1=function(e,n){var a=Number(e),r=a%100;if(r>20||r<10)switch(r%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},fs1={ordinalNumber:ds1,era:ai({values:cs1,defaultWidth:"wide"}),quarter:ai({values:ls1,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ai({values:ss1,defaultWidth:"wide"}),day:ai({values:hs1,defaultWidth:"wide"}),dayPeriod:ai({values:us1,defaultWidth:"wide",formattingValues:vs1,defaultFormattingWidth:"wide"})};const iY=fs1;function ri(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.width,r=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],o=e.match(r);if(!o)return null;var c=o[0],l=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],h=Array.isArray(l)?ps1(l,function(v){return v.test(c)}):gs1(l,function(v){return v.test(c)}),s;s=t.valueCallback?t.valueCallback(h):h,s=n.valueCallback?n.valueCallback(s):s;var u=e.slice(c.length);return{value:s,rest:u}}}function gs1(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function ps1(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},a=e.match(t.matchPattern);if(!a)return null;var r=a[0],o=e.match(t.parsePattern);if(!o)return null;var c=t.valueCallback?t.valueCallback(o[0]):o[0];c=n.valueCallback?n.valueCallback(c):c;var l=e.slice(r.length);return{value:c,rest:l}}}var ms1=/^(\d+)(th|st|nd|rd)?/i,zs1=/\d+/i,Ms1={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},Hs1={any:[/^b/i,/^(a|c)/i]},ws1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ys1={any:[/1/i,/2/i,/3/i,/4/i]},xs1={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},Vs1={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]},Cs1={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},bs1={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]},Ls1={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},Bs1={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}},_s1={ordinalNumber:oY({matchPattern:ms1,parsePattern:zs1,valueCallback:function(e){return parseInt(e,10)}}),era:ri({matchPatterns:Ms1,defaultMatchWidth:"wide",parsePatterns:Hs1,defaultParseWidth:"any"}),quarter:ri({matchPatterns:ws1,defaultMatchWidth:"wide",parsePatterns:ys1,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ri({matchPatterns:xs1,defaultMatchWidth:"wide",parsePatterns:Vs1,defaultParseWidth:"any"}),day:ri({matchPatterns:Cs1,defaultMatchWidth:"wide",parsePatterns:bs1,defaultParseWidth:"any"}),dayPeriod:ri({matchPatterns:Ls1,defaultMatchWidth:"any",parsePatterns:Bs1,defaultParseWidth:"any"})};const cY=_s1;var Ss1={code:"en-US",formatDistance:aY,formatLong:rs1,formatRelative:rY,localize:iY,match:cY,options:{weekStartsOn:0,firstWeekContainsDate:1}};const $6=Ss1;var Ts1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Os1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,As1=/^'([^]*?)'?$/,ks1=/''/g,Es1=/[a-zA-Z]/;function f6(t,e,n){var a,r,o,c,l,h,s,u,v,f,d,z,g,H,p,m,M,w;g1(2,arguments);var x=String(e),y=Ye(),V=(a=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:y.locale)!==null&&a!==void 0?a:$6,C=Lt((o=(c=(l=(h=n==null?void 0:n.firstWeekContainsDate)!==null&&h!==void 0?h:n==null||(s=n.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&l!==void 0?l:y.firstWeekContainsDate)!==null&&c!==void 0?c:(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=(z=(g=(H=n==null?void 0:n.weekStartsOn)!==null&&H!==void 0?H:n==null||(p=n.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&g!==void 0?g:y.weekStartsOn)!==null&&z!==void 0?z:(M=y.locale)===null||M===void 0||(w=M.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=Mn(B),T=v6(B,S),P={firstWeekContainsDate:C,weekStartsOn:L,locale:V,_originalDate:B},F=x.match(Os1).map(function(W){var U=W[0];if(U==="p"||U==="P"){var Z=Mb[U];return Z(W,V.formatLong)}return W}).join("").match(Ts1).map(function(W){if(W==="''")return"'";var U=W[0];if(U==="'")return Ps1(W);var Z=K71[U];if(Z)return!(n!=null&&n.useAdditionalWeekYearTokens)&&nY(W)&&Sg(W,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&eY(W)&&Sg(W,e,String(t)),Z(T,W,V.localize,P);if(U.match(Es1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+U+"`");return W}).join("");return F}function Ps1(t){var e=t.match(As1);return e?e[1].replace(ks1,"'"):t}const Ns1=Object.freeze(Object.defineProperty({__proto__:null,default:f6},Symbol.toStringTag,{value:"Module"})),Ds1=se(Ns1);function g6(t){g1(1,arguments);var e=A1(t);return e.setHours(0,0,0,0),e}function Oh(t,e){g1(2,arguments);var n=g6(t),a=g6(e);return n.getTime()===a.getTime()}function lY(t){return g1(1,arguments),Oh(t,Date.now())}const Rs1=Object.freeze(Object.defineProperty({__proto__:null,default:lY},Symbol.toStringTag,{value:"Module"})),js1=se(Rs1);var dP;function aS(){return dP||(dP=1,function(t){var e=b&&b.__makeTemplateObject||function(p,m){return Object.defineProperty?Object.defineProperty(p,"raw",{value:m}):p.raw=m,p},n=b&&b.__assign||function(){return n=Object.assign||function(p){for(var m,M=1,w=arguments.length;Mw?"".concat(_.substring(0,w),"..."):_}))]}))]}))};t.Notification=M,t.default=(0,h.withTheme)((0,h.default)(t.Notification)(H||(H=e([""],[""]))));var g,H}(Wy)),Wy}var Xm={};(function(t){var e=b&&b.__makeTemplateObject||function(g,H){return Object.defineProperty?Object.defineProperty(g,"raw",{value:H}):g.raw=H,g},n=b&&b.__assign||function(){return n=Object.assign||function(g){for(var H,p=1,m=arguments.length;pw?"".concat(S.substring(0,w),"..."):S}))]}))]}))};t.Notification=z,t.default=(0,h.withTheme)((0,h.default)(t.Notification)(H||(H=e([""],[""]))));var g,H}(Wy)),Wy}var Xm={};(function(t){var e=b&&b.__makeTemplateObject||function(g,H){return Object.defineProperty?Object.defineProperty(g,"raw",{value:H}):g.raw=H,g},n=b&&b.__assign||function(){return n=Object.assign||function(g){for(var H,p=1,m=arguments.length;p<]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function fP(t){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=t.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(e.name=n[1],(Ys1[n[1]]||t.charAt(t.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var a=t.indexOf("-->");return{type:"comment",comment:a!==-1?t.slice(4,a):""}}for(var r=new RegExp(Zs1),o=null;(o=r.exec(t))!==null;)if(o[0].trim())if(o[1]){var c=o[1].trim(),l=[c,""];c.indexOf("=")>-1&&(l=c.split("=")),e.attrs[l[0]]=l[1],r.lastIndex--}else o[2]&&(e.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return e}var Qs1=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Xs1=/^\s*$/,Js1=Object.create(null);function lY(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?function(n){var a=[];for(var r in n)a.push(r+'="'+n[r]+'"');return a.length?" "+a.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(lY,"")+"";case"comment":return t+""}}var th1={parse:function(t,e){e||(e={}),e.components||(e.components=Js1);var n,a=[],r=[],o=-1,c=!1;if(t.indexOf("<")!==0){var l=t.indexOf("<");a.push({type:"text",content:l===-1?t:t.substring(0,l)})}return t.replace(Qs1,function(h,s){if(c){if(h!=="")return;c=!1}var u,v=h.charAt(1)!=="/",f=h.startsWith("");return{type:"comment",comment:a!==-1?t.slice(4,a):""}}for(var r=new RegExp(Xs1),o=null;(o=r.exec(t))!==null;)if(o[0].trim())if(o[1]){var c=o[1].trim(),l=[c,""];c.indexOf("=")>-1&&(l=c.split("=")),e.attrs[l[0]]=l[1],r.lastIndex--}else o[2]&&(e.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return e}var Js1=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,th1=/^\s*$/,eh1=Object.create(null);function sY(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?function(n){var a=[];for(var r in n)a.push(r+'="'+n[r]+'"');return a.length?" "+a.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(sY,"")+"";case"comment":return t+""}}var nh1={parse:function(t,e){e||(e={}),e.components||(e.components=eh1);var n,a=[],r=[],o=-1,c=!1;if(t.indexOf("<")!==0){var l=t.indexOf("<");a.push({type:"text",content:l===-1?t:t.substring(0,l)})}return t.replace(Js1,function(h,s){if(c){if(h!=="")return;c=!1}var u,v=h.charAt(1)!=="/",f=h.startsWith(" `}return` -`}const xy1=/\r?\n|\r/g;function Vy1(t,e){const n=[];let a=0,r=0,o;for(;o=xy1.exec(t);)c(t.slice(a,o.index)),n.push(o[0]),a=o.index+o[0].length,r++;return c(t.slice(a)),n.join("");function c(l){n.push(e(l,r,!l))}}function F_(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 Cy1(t,e){return VR(t,e.inConstruct,!0)&&!VR(t,e.notInConstruct,!1)}function VR(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let a=-1;for(;++a=s||u+10?" ":"")),r.shift(4),o+=r.move(Vy1(wy1(t,n,r.current()),Ry1)),c(),o}function Ry1(t,e,n){return e===0?t:(n?"":" ")+t}function ZQ(t,e,n){const a=e.indexStack,r=t.children||[],o=[];let c=-1,l=n.before;a.push(-1);let h=e.createTracker(n);for(;++c0&&(l==="\r"||l===` -`)&&s.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),l=" ",h=e.createTracker(n),h.move(o.join(""))),o.push(h.move(e.handle(s,t,e,{...h.current(),before:l,after:u}))),l=o[o.length-1].slice(-1)}return a.pop(),o.join("")}const jy1=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];QQ.peek=Wy1;const Iy1={canContainEols:["delete"],enter:{strikethrough:$y1},exit:{strikethrough:Uy1}},Fy1={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:jy1}],handlers:{delete:QQ}};function $y1(t){this.enter({type:"delete",children:[]},t)}function Uy1(t){this.exit(t)}function QQ(t,e,n,a){const r=Uh(a),o=n.enter("strikethrough");let c=r.move("~~");return c+=ZQ(t,n,{...r.current(),before:c,after:"~"}),c+=r.move("~~"),o(),c}function Wy1(){return"~"}XQ.peek=qy1;function XQ(t,e,n){let a=t.value||"",r="`",o=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(a);)r+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++oh&&(h=t[s].length);++Hl[H])&&(l[H]=m)}M.push(p)}o[s]=M,c[s]=g}let u=-1;if(typeof n=="object"&&"length"in n)for(;++ul[u]&&(l[u]=p),f[u]=p),v[u]=m}o.splice(1,0,v),c.splice(1,0,f),s=-1;const d=[];for(;++sn==="none"?null:n),children:[]},t),this.setData("inTable",!0)}function Xy1(t){this.exit(t),this.setData("inTable")}function Jy1(t){this.enter({type:"tableRow",children:[]},t)}function Dx(t){this.exit(t)}function LR(t){this.enter({type:"tableCell",children:[]},t)}function tx1(t){let e=this.resume();this.getData("inTable")&&(e=e.replace(/\\([\\|])/g,ex1));const n=this.stack[this.stack.length-1];n.value=e,this.exit(t)}function ex1(t,e){return e==="|"?e:t}function nx1(t){const e=t||{},n=e.tableCellPadding,a=e.tablePipeAlign,r=e.stringLength,o=n?" ":"|";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:c,tableRow:l,tableCell:h,inlineCode:f}};function c(d,M,g,H){return s(u(d,g,H),d.align)}function l(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=ZQ(d,g,{...H,before:o,after:o});return m(),p(),z}function s(d,M){return Gy1(d,{align:M,alignDelimiters:a,padding:n,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)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+o);let c=o.length+1;(r==="tab"||r==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(c=Math.ceil(c/4)*4);const l=n.createTracker(a);l.move(o+" ".repeat(c-o.length)),l.shift(c);const h=n.enter("listItem"),s=n.indentLines(n.containerFlow(t,l.current()),u);return h(),s;function u(v,f,d){return f?(d?"":" ".repeat(c))+v:(d?o:o+" ".repeat(c-o.length))+v}}const ox1={exit:{taskListCheckValueChecked:BR,taskListCheckValueUnchecked:BR,paragraph:lx1}},cx1={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:sx1}};function BR(t){const e=this.stack[this.stack.length-2];e.checked=t.type==="taskListCheckValueChecked"}function lx1(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1],a=n.children[0];if(a&&a.type==="text"){const r=e.children;let o=-1,c;for(;++o15?s="…"+l.slice(r-15,r):s=l.slice(0,r);var u;o+15":">","<":"<",'"':""","'":"'"},Lx1=/[&><"']/g;function Bx1(t){return String(t).replace(Lx1,e=>bx1[e])}var JQ=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},Sx1=function(e){var n=JQ(e);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},_x1=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},Tx1=function(e){var n=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return n!=null?n[1]:"_relative"},d2={contains:yx1,deflt:xx1,escape:Bx1,hyphenate:Cx1,getBaseElem:JQ,isCharacterBox:Sx1,protocolFromUrl:Tx1},Sf={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 Ox1(t){if(t.default)return t.default;var e=t.type,n=Array.isArray(e)?e[0]:e;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class U_{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 n in Sf)if(Sf.hasOwnProperty(n)){var a=Sf[n];this[n]=e[n]!==void 0?a.processor?a.processor(e[n]):e[n]:Ox1(a)}}reportNonstrict(e,n,a){var r=this.strict;if(typeof r=="function"&&(r=r(e,n,a)),!(!r||r==="ignore")){if(r===!0||r==="error")throw new zt("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+e+"]"),a);r==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+n+" ["+e+"]"))}}useStrictBehavior(e,n,a){var r=this.strict;if(typeof r=="function")try{r=r(e,n,a)}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': "+(n+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+n+" ["+e+"]")),!1)}isTrusted(e){e.url&&!e.protocol&&(e.protocol=d2.protocolFromUrl(e.url));var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class f3{constructor(e,n,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=n,this.cramped=a}sup(){return e5[Ax1[this.id]]}sub(){return e5[kx1[this.id]]}fracNum(){return e5[Ex1[this.id]]}fracDen(){return e5[Px1[this.id]]}cramp(){return e5[Nx1[this.id]]}text(){return e5[Dx1[this.id]]}isTight(){return this.size>=2}}var W_=0,Qg=1,Dc=2,fi=3,Us=4,Ra=5,Ml=6,fn=7,e5=[new f3(W_,0,!1),new f3(Qg,0,!0),new f3(Dc,1,!1),new f3(fi,1,!0),new f3(Us,2,!1),new f3(Ra,2,!0),new f3(Ml,3,!1),new f3(fn,3,!0)],Ax1=[Us,Ra,Us,Ra,Ml,fn,Ml,fn],kx1=[Ra,Ra,Ra,Ra,fn,fn,fn,fn],Ex1=[Dc,fi,Us,Ra,Ml,fn,Ml,fn],Px1=[fi,fi,Ra,Ra,fn,fn,fn,fn],Nx1=[Qg,Qg,fi,fi,Ra,Ra,fn,fn],Dx1=[W_,Qg,Dc,fi,Dc,fi,Dc,fi],o2={DISPLAY:e5[W_],TEXT:e5[Dc],SCRIPT:e5[Us],SCRIPTSCRIPT:e5[Ml]},tL=[{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 Rx1(t){for(var e=0;e=r[0]&&t<=r[1])return n.name}return null}var _f=[];tL.forEach(t=>t.blocks.forEach(e=>_f.push(...e)));function tX(t){for(var e=0;e<_f.length;e+=2)if(t>=_f[e]&&t<=_f[e+1])return!0;return!1}var K6=80,jx1=function(e,n){return"M95,"+(622+e+n)+` +`}const Cy1=/\r?\n|\r/g;function by1(t,e){const n=[];let a=0,r=0,o;for(;o=Cy1.exec(t);)c(t.slice(a,o.index)),n.push(o[0]),a=o.index+o[0].length,r++;return c(t.slice(a)),n.join("");function c(l){n.push(e(l,r,!l))}}function FS(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 Ly1(t,e){return VR(t,e.inConstruct,!0)&&!VR(t,e.notInConstruct,!1)}function VR(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let a=-1;for(;++a=s||u+10?" ":"")),r.shift(4),o+=r.move(by1(xy1(t,n,r.current()),Iy1)),c(),o}function Iy1(t,e,n){return e===0?t:(n?"":" ")+t}function QQ(t,e,n){const a=e.indexStack,r=t.children||[],o=[];let c=-1,l=n.before;a.push(-1);let h=e.createTracker(n);for(;++c0&&(l==="\r"||l===` +`)&&s.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),l=" ",h=e.createTracker(n),h.move(o.join(""))),o.push(h.move(e.handle(s,t,e,{...h.current(),before:l,after:u}))),l=o[o.length-1].slice(-1)}return a.pop(),o.join("")}const Fy1=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];XQ.peek=Gy1;const $y1={canContainEols:["delete"],enter:{strikethrough:Wy1},exit:{strikethrough:qy1}},Uy1={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Fy1}],handlers:{delete:XQ}};function Wy1(t){this.enter({type:"delete",children:[]},t)}function qy1(t){this.exit(t)}function XQ(t,e,n,a){const r=Uh(a),o=n.enter("strikethrough");let c=r.move("~~");return c+=QQ(t,n,{...r.current(),before:c,after:"~"}),c+=r.move("~~"),o(),c}function Gy1(){return"~"}JQ.peek=Ky1;function JQ(t,e,n){let a=t.value||"",r="`",o=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(a);)r+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++oh&&(h=t[s].length);++Hl[H])&&(l[H]=m)}z.push(p)}o[s]=z,c[s]=g}let u=-1;if(typeof n=="object"&&"length"in n)for(;++ul[u]&&(l[u]=p),f[u]=p),v[u]=m}o.splice(1,0,v),c.splice(1,0,f),s=-1;const d=[];for(;++sn==="none"?null:n),children:[]},t),this.setData("inTable",!0)}function tx1(t){this.exit(t),this.setData("inTable")}function ex1(t){this.enter({type:"tableRow",children:[]},t)}function Dx(t){this.exit(t)}function LR(t){this.enter({type:"tableCell",children:[]},t)}function nx1(t){let e=this.resume();this.getData("inTable")&&(e=e.replace(/\\([\\|])/g,ax1));const n=this.stack[this.stack.length-1];n.value=e,this.exit(t)}function ax1(t,e){return e==="|"?e:t}function rx1(t){const e=t||{},n=e.tableCellPadding,a=e.tablePipeAlign,r=e.stringLength,o=n?" ":"|";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:c,tableRow:l,tableCell:h,inlineCode:f}};function c(d,z,g,H){return s(u(d,g,H),d.align)}function l(d,z,g,H){const p=v(d,g,H),m=s([p]);return m.slice(0,m.indexOf(` +`))}function h(d,z,g,H){const p=g.enter("tableCell"),m=g.enter("phrasing"),M=QQ(d,g,{...H,before:o,after:o});return m(),p(),M}function s(d,z){return Yy1(d,{align:z,alignDelimiters:a,padding:n,stringLength:r})}function u(d,z,g){const H=d.children;let p=-1;const m=[],M=z.enter("table");for(;++p-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+o);let c=o.length+1;(r==="tab"||r==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(c=Math.ceil(c/4)*4);const l=n.createTracker(a);l.move(o+" ".repeat(c-o.length)),l.shift(c);const h=n.enter("listItem"),s=n.indentLines(n.containerFlow(t,l.current()),u);return h(),s;function u(v,f,d){return f?(d?"":" ".repeat(c))+v:(d?o:o+" ".repeat(c-o.length))+v}}const lx1={exit:{taskListCheckValueChecked:BR,taskListCheckValueUnchecked:BR,paragraph:hx1}},sx1={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ux1}};function BR(t){const e=this.stack[this.stack.length-2];e.checked=t.type==="taskListCheckValueChecked"}function hx1(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1],a=n.children[0];if(a&&a.type==="text"){const r=e.children;let o=-1,c;for(;++o15?s="…"+l.slice(r-15,r):s=l.slice(0,r);var u;o+15":">","<":"<",'"':""","'":"'"},_x1=/[&><"']/g;function Sx1(t){return String(t).replace(_x1,e=>Bx1[e])}var tX=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},Tx1=function(e){var n=tX(e);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},Ox1=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},Ax1=function(e){var n=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return n!=null?n[1]:"_relative"},d2={contains:Vx1,deflt:Cx1,escape:Sx1,hyphenate:Lx1,getBaseElem:tX,isCharacterBox:Tx1,protocolFromUrl:Ax1},_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 kx1(t){if(t.default)return t.default;var e=t.type,n=Array.isArray(e)?e[0]:e;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class US{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 n in _f)if(_f.hasOwnProperty(n)){var a=_f[n];this[n]=e[n]!==void 0?a.processor?a.processor(e[n]):e[n]:kx1(a)}}reportNonstrict(e,n,a){var r=this.strict;if(typeof r=="function"&&(r=r(e,n,a)),!(!r||r==="ignore")){if(r===!0||r==="error")throw new zt("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+e+"]"),a);r==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+n+" ["+e+"]"))}}useStrictBehavior(e,n,a){var r=this.strict;if(typeof r=="function")try{r=r(e,n,a)}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': "+(n+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+n+" ["+e+"]")),!1)}isTrusted(e){e.url&&!e.protocol&&(e.protocol=d2.protocolFromUrl(e.url));var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class d3{constructor(e,n,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=n,this.cramped=a}sup(){return ti[Ex1[this.id]]}sub(){return ti[Px1[this.id]]}fracNum(){return ti[Nx1[this.id]]}fracDen(){return ti[Dx1[this.id]]}cramp(){return ti[Rx1[this.id]]}text(){return ti[jx1[this.id]]}isTight(){return this.size>=2}}var WS=0,Qg=1,Dl=2,d5=3,Us=4,Ra=5,M6=6,fn=7,ti=[new d3(WS,0,!1),new d3(Qg,0,!0),new d3(Dl,1,!1),new d3(d5,1,!0),new d3(Us,2,!1),new d3(Ra,2,!0),new d3(M6,3,!1),new d3(fn,3,!0)],Ex1=[Us,Ra,Us,Ra,M6,fn,M6,fn],Px1=[Ra,Ra,Ra,Ra,fn,fn,fn,fn],Nx1=[Dl,d5,Us,Ra,M6,fn,M6,fn],Dx1=[d5,d5,Ra,Ra,fn,fn,fn,fn],Rx1=[Qg,Qg,d5,d5,Ra,Ra,fn,fn],jx1=[WS,Qg,Dl,d5,Dl,d5,Dl,d5],o2={DISPLAY:ti[WS],TEXT:ti[Dl],SCRIPT:ti[Us],SCRIPTSCRIPT:ti[M6]},tL=[{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 Ix1(t){for(var e=0;e=r[0]&&t<=r[1])return n.name}return null}var Sf=[];tL.forEach(t=>t.blocks.forEach(e=>Sf.push(...e)));function eX(t){for(var e=0;e=Sf[e]&&t<=Sf[e+1])return!0;return!1}var Yc=80,Fx1=function(e,n){return"M95,"+(622+e+n)+` 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 @@ -3751,7 +3751,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)+" "+n+"h400000v"+(40+e)+"h-400000z"},Ix1=function(e,n){return"M263,"+(601+e+n)+`c0.7,0,18,39.7,52,119 +M`+(834+e)+" "+n+"h400000v"+(40+e)+"h-400000z"},$x1=function(e,n){return"M263,"+(601+e+n)+`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+` @@ -3761,7 +3761,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)+" "+n+"h400000v"+(40+e)+"h-400000z"},Fx1=function(e,n){return"M983 "+(10+e+n)+` +M`+(1001+e)+" "+n+"h400000v"+(40+e)+"h-400000z"},Ux1=function(e,n){return"M983 "+(10+e+n)+` 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 @@ -3770,7 +3770,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)+" "+n+"h400000v"+(40+e)+"h-400000z"},$x1=function(e,n){return"M424,"+(2398+e+n)+` +M`+(1001+e)+" "+n+"h400000v"+(40+e)+"h-400000z"},Wx1=function(e,n){return"M424,"+(2398+e+n)+` 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 @@ -3780,18 +3780,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)+" "+n+` -h400000v`+(40+e)+"h-400000z"},Ux1=function(e,n){return"M473,"+(2713+e+n)+` +h400000v`+(40+e)+"h-400000z"},qx1=function(e,n){return"M473,"+(2713+e+n)+` 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)+" "+n+"h400000v"+(40+e)+"H1017.7z"},Wx1=function(e){var n=e/2;return"M400000 "+e+" H0 L"+n+" 0 l65 45 L145 "+(e-80)+" H400000z"},qx1=function(e,n,a){var r=a-54-n-e;return"M702 "+(e+n)+"H400000"+(40+e)+` +606zM`+(1001+e)+" "+n+"h400000v"+(40+e)+"H1017.7z"},Gx1=function(e){var n=e/2;return"M400000 "+e+" H0 L"+n+" 0 l65 45 L145 "+(e-80)+" H400000z"},Kx1=function(e,n,a){var r=a-54-n-e;return"M702 "+(e+n)+"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 `+n+"H400000v"+(40+e)+"H742z"},Gx1=function(e,n,a){n=1e3*n;var r="";switch(e){case"sqrtMain":r=jx1(n,K6);break;case"sqrtSize1":r=Ix1(n,K6);break;case"sqrtSize2":r=Fx1(n,K6);break;case"sqrtSize3":r=$x1(n,K6);break;case"sqrtSize4":r=Ux1(n,K6);break;case"sqrtTall":r=qx1(n,K6,a)}return r},Kx1=function(e,n){switch(e){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},_R={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+n+"H400000v"+(40+e)+"H742z"},Yx1=function(e,n,a){n=1e3*n;var r="";switch(e){case"sqrtMain":r=Fx1(n,Yc);break;case"sqrtSize1":r=$x1(n,Yc);break;case"sqrtSize2":r=Ux1(n,Yc);break;case"sqrtSize3":r=Wx1(n,Yc);break;case"sqrtSize4":r=qx1(n,Yc);break;case"sqrtTall":r=Kx1(n,Yc,a)}return r},Zx1=function(e,n){switch(e){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},SR={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 @@ -3966,7 +3966,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`},Yx1=function(e,n){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Qx1=function(e,n){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -3994,25 +3994,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,-`+(n+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(),n=0;nn.toText();return this.children.map(e).join("")}}var g5={"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]},TR={Å:"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 Zx1(t,e){g5[t]=e}function q_(t,e,n){if(!g5[e])throw new Error("Font metrics not found for font: "+e+".");var a=t.charCodeAt(0),r=g5[e][a];if(!r&&t[0]in TR&&(a=TR[t[0]].charCodeAt(0),r=g5[e][a]),!r&&n==="text"&&tX(a)&&(r=g5[e][77]),r)return{depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]}}var Rx={};function Qx1(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!Rx[e]){var n=Rx[e]={cssEmPerMu:yd.quad[e]/18};for(var a in yd)yd.hasOwnProperty(a)&&(n[a]=yd[a][e])}return Rx[e]}var Xx1=[[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]],OR=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],AR=function(e,n){return n.size<2?e:Xx1[e-1][n.size-1]};class oi{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||oi.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=OR[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var n={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 a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);return new oi(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:AR(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:OR[e-1]})}havingBaseStyle(e){e=e||this.style.text();var n=AR(oi.BASESIZE,e);return this.size===n&&this.textSize===oi.BASESIZE&&this.style===e?this:this.extend({style:e,size:n})}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!==oi.BASESIZE?["sizing","reset-size"+this.size,"size"+oi.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Qx1(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}oi.BASESIZE=6;var eL={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},Jx1={ex:!0,em:!0,mu:!0},eX=function(e){return typeof e!="string"&&(e=e.unit),e in eL||e in Jx1||e==="ex"},me=function(e,n){var a;if(e.unit in eL)a=eL[e.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(e.unit==="mu")a=n.fontMetrics().cssEmPerMu;else{var r;if(n.style.isTight()?r=n.havingStyle(n.style.text()):r=n,e.unit==="ex")a=r.fontMetrics().xHeight;else if(e.unit==="em")a=r.fontMetrics().quad;else throw new zt("Invalid unit: '"+e.unit+"'");r!==n&&(a*=r.sizeMultiplier/n.sizeMultiplier)}return Math.min(e.number*a,n.maxSize)},bt=function(e){return+e.toFixed(4)+"em"},ho=function(e){return e.filter(n=>n).join(" ")},nX=function(e,n,a){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},n){n.style.isTight()&&this.classes.push("mtight");var r=n.getColor();r&&(this.style.color=r)}},aX=function(e){var n=document.createElement(e);n.className=ho(this.classes);for(var a in this.style)this.style.hasOwnProperty(a)&&(n.style[a]=this.style[a]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&n.setAttribute(r,this.attributes[r]);for(var o=0;o",n};let qh=class{constructor(e,n,a,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,nX.call(this,e,a,r),this.children=n||[]}setAttribute(e,n){this.attributes[e]=n}hasClass(e){return d2.contains(this.classes,e)}toNode(){return aX.call(this,"span")}toMarkup(){return rX.call(this,"span")}};class G_{constructor(e,n,a,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,nX.call(this,n,r),this.children=a||[],this.setAttribute("href",e)}setAttribute(e,n){this.attributes[e]=n}hasClass(e){return d2.contains(this.classes,e)}toNode(){return aX.call(this,"a")}toMarkup(){return rX.call(this,"a")}}class tV1{constructor(e,n,a){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=n,this.src=e,this.classes=["mord"],this.style=a}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 n in this.style)this.style.hasOwnProperty(n)&&(e.style[n]=this.style[n]);return e}toMarkup(){var e=""+this.alt+"0&&(n=document.createElement("span"),n.style.marginRight=bt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=ho(this.classes));for(var a in this.style)this.style.hasOwnProperty(a)&&(n=n||document.createElement("span"),n.style[a]=this.style[a]);return n?(n.appendChild(e),n):e}toMarkup(){var e=!1,n="0&&(a+="margin-right:"+this.italic+"em;");for(var r in this.style)this.style.hasOwnProperty(r)&&(a+=d2.hyphenate(r)+":"+this.style[r]+";");a&&(e=!0,n+=' style="'+d2.escape(a)+'"');var o=d2.escape(this.text);return e?(n+=">",n+=o,n+="",n):o}}class bi{constructor(e,n){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=n||{}}toNode(){var e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"svg");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&n.setAttribute(a,this.attributes[a]);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",n=document.createElementNS(e,"line");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&n.setAttribute(a,this.attributes[a]);return n}toMarkup(){var e=" but got "+String(t)+".")}var aV1={bin:1,close:1,inner:1,open:1,punct:1,rel:1},rV1={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},W0={math:{},text:{}};function O(t,e,n,a,r,o){W0[t][r]={font:e,group:n,replace:a},o&&a&&(W0[t][a]=W0[t][r])}var N="math",ct="text",K="main",d1="ams",he="accent-token",jt="bin",xn="close",Xl="inner",i2="mathord",Ze="op-token",va="open",Fz="punct",p1="rel",Ii="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(ct,K,O1,"#","\\#");O(N,K,O1,"&","\\&");O(ct,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(ct,K,O1,"§","\\S");O(N,K,O1,"¶","\\P",!0);O(ct,K,O1,"¶","\\P");O(N,K,O1,"†","\\dag");O(ct,K,O1,"†","\\dag");O(ct,K,O1,"†","\\textdagger");O(N,K,O1,"‡","\\ddag");O(ct,K,O1,"‡","\\ddag");O(ct,K,O1,"‡","\\textdaggerdbl");O(N,K,xn,"⎱","\\rmoustache",!0);O(N,K,va,"⎰","\\lmoustache",!0);O(N,K,xn,"⟯","\\rgroup",!0);O(N,K,va,"⟮","\\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(ct,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(ct,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(ct,d1,O1,"¥","\\yen",!0);O(N,d1,O1,"✓","\\checkmark",!0);O(ct,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,va,"┌","\\@ulcorner",!0);O(N,d1,xn,"┐","\\@urcorner",!0);O(N,d1,va,"└","\\@llcorner",!0);O(N,d1,xn,"┘","\\@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(ct,K,O1,"$","\\$");O(ct,K,O1,"$","\\textdollar");O(N,K,O1,"%","\\%");O(ct,K,O1,"%","\\%");O(N,K,O1,"_","\\_");O(ct,K,O1,"_","\\_");O(ct,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,va,"⟨","\\langle",!0);O(N,K,va,"∣","\\lvert");O(N,K,va,"∥","\\lVert");O(N,K,xn,"?","?");O(N,K,xn,"!","!");O(N,K,xn,"⟩","\\rangle",!0);O(N,K,xn,"∣","\\rvert");O(N,K,xn,"∥","\\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,Ii," ","\\ ");O(N,K,Ii," ","\\space");O(N,K,Ii," ","\\nobreakspace");O(ct,K,Ii," ","\\ ");O(ct,K,Ii," "," ");O(ct,K,Ii," ","\\space");O(ct,K,Ii," ","\\nobreakspace");O(N,K,Ii,null,"\\nobreak");O(N,K,Ii,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,va,"{","\\{");O(ct,K,O1,"{","\\{");O(ct,K,O1,"{","\\textbraceleft");O(N,K,xn,"}","\\}");O(ct,K,O1,"}","\\}");O(ct,K,O1,"}","\\textbraceright");O(N,K,va,"{","\\lbrace");O(N,K,xn,"}","\\rbrace");O(N,K,va,"[","\\lbrack",!0);O(ct,K,O1,"[","\\lbrack",!0);O(N,K,xn,"]","\\rbrack",!0);O(ct,K,O1,"]","\\rbrack",!0);O(N,K,va,"(","\\lparen",!0);O(N,K,xn,")","\\rparen",!0);O(ct,K,O1,"<","\\textless",!0);O(ct,K,O1,">","\\textgreater",!0);O(N,K,va,"⌊","\\lfloor",!0);O(N,K,xn,"⌋","\\rfloor",!0);O(N,K,va,"⌈","\\lceil",!0);O(N,K,xn,"⌉","\\rceil",!0);O(N,K,O1,"\\","\\backslash");O(N,K,O1,"∣","|");O(N,K,O1,"∣","\\vert");O(ct,K,O1,"|","\\textbar",!0);O(N,K,O1,"∥","\\|");O(N,K,O1,"∥","\\Vert");O(ct,K,O1,"∥","\\textbardbl");O(ct,K,O1,"~","\\textasciitilde");O(ct,K,O1,"\\","\\textbackslash");O(ct,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,Ze,"∐","\\coprod");O(N,K,Ze,"⋁","\\bigvee");O(N,K,Ze,"⋀","\\bigwedge");O(N,K,Ze,"⨄","\\biguplus");O(N,K,Ze,"⋂","\\bigcap");O(N,K,Ze,"⋃","\\bigcup");O(N,K,Ze,"∫","\\int");O(N,K,Ze,"∫","\\intop");O(N,K,Ze,"∬","\\iint");O(N,K,Ze,"∭","\\iiint");O(N,K,Ze,"∏","\\prod");O(N,K,Ze,"∑","\\sum");O(N,K,Ze,"⨂","\\bigotimes");O(N,K,Ze,"⨁","\\bigoplus");O(N,K,Ze,"⨀","\\bigodot");O(N,K,Ze,"∮","\\oint");O(N,K,Ze,"∯","\\oiint");O(N,K,Ze,"∰","\\oiiint");O(N,K,Ze,"⨆","\\bigsqcup");O(N,K,Ze,"∫","\\smallint");O(ct,K,Xl,"…","\\textellipsis");O(N,K,Xl,"…","\\mathellipsis");O(ct,K,Xl,"…","\\ldots",!0);O(N,K,Xl,"…","\\ldots",!0);O(N,K,Xl,"⋯","\\@cdots",!0);O(N,K,Xl,"⋱","\\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(ct,K,O1,"ı","\\i",!0);O(ct,K,O1,"ȷ","\\j",!0);O(ct,K,O1,"ß","\\ss",!0);O(ct,K,O1,"æ","\\ae",!0);O(ct,K,O1,"œ","\\oe",!0);O(ct,K,O1,"ø","\\o",!0);O(ct,K,O1,"Æ","\\AE",!0);O(ct,K,O1,"Œ","\\OE",!0);O(ct,K,O1,"Ø","\\O",!0);O(ct,K,he,"ˊ","\\'");O(ct,K,he,"ˋ","\\`");O(ct,K,he,"ˆ","\\^");O(ct,K,he,"˜","\\~");O(ct,K,he,"ˉ","\\=");O(ct,K,he,"˘","\\u");O(ct,K,he,"˙","\\.");O(ct,K,he,"¸","\\c");O(ct,K,he,"˚","\\r");O(ct,K,he,"ˇ","\\v");O(ct,K,he,"¨",'\\"');O(ct,K,he,"˝","\\H");O(ct,K,he,"◯","\\textcircled");var iX={"--":!0,"---":!0,"``":!0,"''":!0};O(ct,K,O1,"–","--",!0);O(ct,K,O1,"–","\\textendash");O(ct,K,O1,"—","---",!0);O(ct,K,O1,"—","\\textemdash");O(ct,K,O1,"‘","`",!0);O(ct,K,O1,"‘","\\textquoteleft");O(ct,K,O1,"’","'",!0);O(ct,K,O1,"’","\\textquoteright");O(ct,K,O1,"“","``",!0);O(ct,K,O1,"“","\\textquotedblleft");O(ct,K,O1,"”","''",!0);O(ct,K,O1,"”","\\textquotedblright");O(N,K,O1,"°","\\degree",!0);O(ct,K,O1,"°","\\degree");O(ct,K,O1,"°","\\textdegree",!0);O(N,K,O1,"£","\\pounds");O(N,K,O1,"£","\\mathsterling",!0);O(ct,K,O1,"£","\\pounds");O(ct,K,O1,"£","\\textsterling",!0);O(N,d1,O1,"✠","\\maltese");O(ct,d1,O1,"✠","\\maltese");var ER='0123456789/@."';for(var jx=0;jx0)return wr(o,s,r,n,c.concat(u));if(h){var v,f;if(h==="boldsymbol"){var d=cV1(o,r,n,c,a);v=d.fontName,f=[d.fontClass]}else l?(v=lX[h].fontName,f=[h]):(v=bd(h,n.fontWeight,n.fontShape),f=[h,n.fontWeight,n.fontShape]);if($z(o,v,r).metrics)return wr(o,v,r,n,c.concat(f));if(iX.hasOwnProperty(o)&&v.slice(0,10)==="Typewriter"){for(var M=[],g=0;g{if(ho(t.classes)!==ho(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;if(t.classes.length===1){var n=t.classes[0];if(n==="mbin"||n==="mord")return!1}for(var a in t.style)if(t.style.hasOwnProperty(a)&&t.style[a]!==e.style[a])return!1;for(var r in e.style)if(e.style.hasOwnProperty(r)&&t.style[r]!==e.style[r])return!1;return!0},hV1=t=>{for(var e=0;en&&(n=c.height),c.depth>a&&(a=c.depth),c.maxFontSize>r&&(r=c.maxFontSize)}e.height=n,e.depth=a,e.maxFontSize=r},On=function(e,n,a,r){var o=new qh(e,n,a,r);return K_(o),o},oX=(t,e,n,a)=>new qh(t,e,n,a),uV1=function(e,n,a){var r=On([e],[],n);return r.height=Math.max(a||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),r.style.borderBottomWidth=bt(r.height),r.maxFontSize=1,r},vV1=function(e,n,a,r){var o=new G_(e,n,a,r);return K_(o),o},cX=function(e){var n=new Wh(e);return K_(n),n},dV1=function(e,n){return e instanceof Wh?On([],[e],n):e},fV1=function(e){if(e.positionType==="individualShift"){for(var n=e.children,a=[n[0]],r=-n[0].shift-n[0].elem.depth,o=r,c=1;c{var n=On(["mspace"],[],e),a=me(t,e);return n.style.marginRight=bt(a),n},bd=function(e,n,a){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 n==="textbf"&&a==="textit"?o="BoldItalic":n==="textbf"?o="Bold":n==="textit"?o="Italic":o="Regular",r+"-"+o},lX={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"}},sX={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},mV1=function(e,n){var[a,r,o]=sX[e],c=new uo(a),l=new bi([c],{width:bt(r),height:bt(o),style:"width:"+bt(r),viewBox:"0 0 "+1e3*r+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),h=oX(["overlay"],[l],n);return h.height=o,h.style.height=bt(o),h.style.width=bt(r),h},$1={fontMap:lX,makeSymbol:wr,mathsym:oV1,makeSpan:On,makeSvgSpan:oX,makeLineSpan:uV1,makeAnchor:vV1,makeFragment:cX,wrapFragment:dV1,makeVList:gV1,makeOrd:lV1,makeGlue:pV1,staticSvg:mV1,svgData:sX,tryCombineChars:hV1},ge={number:3,unit:"mu"},t8={number:4,unit:"mu"},Q5={number:5,unit:"mu"},zV1={mord:{mop:ge,mbin:t8,mrel:Q5,minner:ge},mop:{mord:ge,mop:ge,mrel:Q5,minner:ge},mbin:{mord:t8,mop:t8,mopen:t8,minner:t8},mrel:{mord:Q5,mop:Q5,mopen:Q5,minner:Q5},mopen:{},mclose:{mop:ge,mbin:t8,mrel:Q5,minner:ge},mpunct:{mord:ge,mop:ge,mrel:Q5,mopen:ge,mclose:ge,mpunct:ge,minner:ge},minner:{mord:ge,mop:ge,mbin:t8,mrel:Q5,mopen:ge,mpunct:ge,minner:ge}},MV1={mord:{mop:ge},mop:{mord:ge,mop:ge},mbin:{},mrel:{},mopen:{},mclose:{mop:ge},mpunct:{},minner:{mop:ge}},hX={},Jg={},tp={};function Nt(t){for(var{type:e,names:n,props:a,handler:r,htmlBuilder:o,mathmlBuilder:c}=t,l={type:e,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:r},h=0;h{var H=g.classes[0],p=M.classes[0];H==="mbin"&&d2.contains(wV1,p)?g.classes[0]="mord":p==="mbin"&&d2.contains(HV1,H)&&(M.classes[0]="mord")},{node:v},f,d),jR(o,(M,g)=>{var H=rL(g),p=rL(M),m=H&&p?M.hasClass("mtight")?MV1[H][p]:zV1[H][p]:null;if(m)return $1.makeGlue(m,s)},{node:v},f,d),o},jR=function t(e,n,a,r,o){r&&e.push(r);for(var c=0;cf=>{e.splice(v+1,0,f),c++})(c)}r&&e.pop()},uX=function(e){return e instanceof Wh||e instanceof G_||e instanceof qh&&e.hasClass("enclosing")?e:null},VV1=function t(e,n){var a=uX(e);if(a){var r=a.children;if(r.length){if(n==="right")return t(r[r.length-1],"right");if(n==="left")return t(r[0],"left")}}return e},rL=function(e,n){return e?(n&&(e=VV1(e,n)),xV1[e.classes[0]]||null):null},Ws=function(e,n){var a=["nulldelimiter"].concat(e.baseSizingClasses());return Li(n.concat(a))},e0=function(e,n,a){if(!e)return Li();if(Jg[e.type]){var r=Jg[e.type](e,n);if(a&&n.size!==a.size){r=Li(n.sizingClasses(a),[r],n);var o=n.sizeMultiplier/a.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 n=Li(["base"],t,e),a=Li(["strut"]);return a.style.height=bt(n.height+n.depth),n.depth&&(a.style.verticalAlign=bt(-n.depth)),n.children.unshift(a),n}function iL(t,e){var n=null;t.length===1&&t[0].type==="tag"&&(n=t[0].tag,t=t[0].body);var a=c4(t,e,"root"),r;a.length===2&&a[1].hasClass("tag")&&(r=a.pop());for(var o=[],c=[],l=0;l0&&(o.push(Ld(c,e)),c=[]),o.push(a[l]));c.length>0&&o.push(Ld(c,e));var s;n?(s=Ld(c4(n,e,!0)),s.classes=["tag"],o.push(s)):r&&o.push(r);var u=Li(["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 vX(t){return new Wh(t)}class Ea{constructor(e,n,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=n||[],this.classes=a||[]}setAttribute(e,n){this.attributes[e]=n}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&e.setAttribute(n,this.attributes[n]);this.classes.length>0&&(e.className=ho(this.classes));for(var a=0;a0&&(e+=' class ="'+d2.escape(ho(this.classes))+'"'),e+=">";for(var a=0;a",e}toText(){return this.children.map(e=>e.toText()).join("")}}class as{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 CV1{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:Ea,TextNode:as,SpaceNode:CV1,newDocumentFragment:vX},Ya=function(e,n,a){return W0[n][e]&&W0[n][e].replace&&e.charCodeAt(0)!==55349&&!(iX.hasOwnProperty(e)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(e=W0[n][e].replace),new dt.TextNode(e)},Y_=function(e){return e.length===1?e[0]:new dt.MathNode("mrow",e)},Z_=function(e,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var a=n.font;if(!a||a==="mathnormal")return null;var r=e.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var o=e.text;if(d2.contains(["\\imath","\\jmath"],o))return null;W0[r][o]&&W0[r][o].replace&&(o=W0[r][o].replace);var c=$1.fontMap[a].fontName;return q_(o,c,r)?$1.fontMap[a].variant:null},qn=function(e,n,a){if(e.length===1){var r=D0(e[0],n);return a&&r instanceof Ea&&r.type==="mo"&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var o=[],c,l=0;l0&&(v.text=v.text.slice(0,1)+"̸"+v.text.slice(1),o.pop())}}}o.push(h),c=h}return o},vo=function(e,n,a){return Y_(qn(e,n,a))},D0=function(e,n){if(!e)return new dt.MathNode("mrow");if(tp[e.type]){var a=tp[e.type](e,n);return a}else throw new zt("Got group of unknown type: '"+e.type+"'")};function IR(t,e,n,a,r){var o=qn(t,n),c;o.length===1&&o[0]instanceof Ea&&d2.contains(["mrow","mtable"],o[0].type)?c=o[0]:c=new dt.MathNode("mrow",o);var l=new dt.MathNode("annotation",[new dt.TextNode(e)]);l.setAttribute("encoding","application/x-tex");var h=new dt.MathNode("semantics",[c,l]),s=new dt.MathNode("math",[h]);s.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&s.setAttribute("display","block");var u=r?"katex":"katex-mathml";return $1.makeSpan([u],[s])}var dX=function(e){return new oi({style:e.displayMode?o2.DISPLAY:o2.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},fX=function(e,n){if(n.displayMode){var a=["katex-display"];n.leqno&&a.push("leqno"),n.fleqn&&a.push("fleqn"),e=$1.makeSpan(a,[e])}return e},bV1=function(e,n,a){var r=dX(a),o;if(a.output==="mathml")return IR(e,n,r,a.displayMode,!0);if(a.output==="html"){var c=iL(e,r);o=$1.makeSpan(["katex"],[c])}else{var l=IR(e,n,r,a.displayMode,!1),h=iL(e,r);o=$1.makeSpan(["katex"],[l,h])}return fX(o,a)},LV1=function(e,n,a){var r=dX(a),o=iL(e,r),c=$1.makeSpan(["katex"],[o]);return fX(c,a)},BV1={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":"="},SV1=function(e){var n=new dt.MathNode("mo",[new dt.TextNode(BV1[e.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},_V1={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]},TV1=function(e){return e.type==="ordgroup"?e.body.length:1},OV1=function(e,n){function a(){var l=4e5,h=e.label.slice(1);if(d2.contains(["widehat","widecheck","widetilde","utilde"],h)){var s=e,u=TV1(s.base),v,f,d;if(u>5)h==="widehat"||h==="widecheck"?(v=420,l=2364,d=.42,f=h+"4"):(v=312,l=2340,d=.34,f="tilde4");else{var M=[1,1,2,2,3,3][u];h==="widehat"||h==="widecheck"?(l=[0,1062,2364,2364,2364][M],v=[0,239,300,360,420][M],d=[0,.24,.3,.3,.36,.42][M],f=h+M):(l=[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 uo(f),H=new bi([g],{width:"100%",height:bt(d),viewBox:"0 0 "+l+" "+v,preserveAspectRatio:"none"});return{span:$1.makeSvgSpan([],[H],n),minWidth:0,height:d}}else{var p=[],m=_V1[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 _=0;_0&&(r.style.minWidth=bt(o)),r},AV1=function(e,n,a,r,o){var c,l=e.height+e.depth+a+r;if(/fbox|color|angl/.test(n)){if(c=$1.makeSpan(["stretchy",n],[],o),n==="fbox"){var h=o.color&&o.getColor();h&&(c.style.borderColor=h)}}else{var s=[];/^[bx]cancel$/.test(n)&&s.push(new nL({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&s.push(new nL({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new bi(s,{width:"100%",height:bt(l)});c=$1.makeSvgSpan([],[u],o)}return c.height=l,c.style.height=bt(l),c},Bi={encloseSpan:AV1,mathMLnode:SV1,svgSpan:OV1};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 Q_(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"||rV1.hasOwnProperty(t.type))?t:null}var X_=(t,e)=>{var n,a,r;t&&t.type==="supsub"?(a=L2(t.base,"accent"),n=a.base,t.base=n,r=nV1(e0(t,e)),t.base=a):(a=L2(t,"accent"),n=a.base);var o=e0(n,e.havingCrampedStyle()),c=a.isShifty&&d2.isCharacterBox(n),l=0;if(c){var h=d2.getBaseElem(n),s=e0(h,e.havingCrampedStyle());l=kR(s).skew}var u=a.label==="\\c",v=u?o.height+o.depth:Math.min(o.height,e.fontMetrics().xHeight),f;if(a.isStretchy)f=Bi.svgSpan(a,e),f=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+bt(2*l)+")",marginLeft:bt(2*l)}:void 0}]},e);else{var d,M;a.label==="\\vec"?(d=$1.staticSvg("vec",e),M=$1.svgData.vec[1]):(d=$1.makeOrd({mode:a.mode,text:a.label},e,"textord"),d=kR(d),d.italic=0,M=d.width,u&&(v+=d.depth)),f=$1.makeSpan(["accent-body"],[d]);var g=a.label==="\\textcircled";g&&(f.classes.push("accent-full"),v=o.height);var H=l;g||(H-=M/2),f.style.left=bt(H),a.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},gX=(t,e)=>{var n=t.isStretchy?Bi.mathMLnode(t.label):new dt.MathNode("mo",[Ya(t.label,t.mode)]),a=new dt.MathNode("mover",[D0(t.base,e),n]);return a.setAttribute("accent","true"),a},kV1=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 n=ep(e[0]),a=!kV1.test(t.funcName),r=!a||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:a,isShifty:r,base:n}},htmlBuilder:X_,mathmlBuilder:gX});Nt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var n=e[0],a=t.parser.mode;return a==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:t.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:X_,mathmlBuilder:gX});Nt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:n,funcName:a}=t,r=e[0];return{type:"accentUnder",mode:n.mode,label:a,base:r}},htmlBuilder:(t,e)=>{var n=e0(t.base,e),a=Bi.svgSpan(t,e),r=t.label==="\\utilde"?.12:0,o=$1.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:r},{type:"elem",elem:n}]},e);return $1.makeSpan(["mord","accentunder"],[o],e)},mathmlBuilder:(t,e)=>{var n=Bi.mathMLnode(t.label),a=new dt.MathNode("munder",[D0(t.base,e),n]);return a.setAttribute("accentunder","true"),a}});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,n){var{parser:a,funcName:r}=t;return{type:"xArrow",mode:a.mode,label:r,body:e[0],below:n[0]}},htmlBuilder(t,e){var n=e.style,a=e.havingStyle(n.sup()),r=$1.wrapFragment(e0(t.body,a,e),e),o=t.label.slice(0,2)==="\\x"?"x":"cd";r.classes.push(o+"-arrow-pad");var c;t.below&&(a=e.havingStyle(n.sub()),c=$1.wrapFragment(e0(t.below,a,e),e),c.classes.push(o+"-arrow-pad"));var l=Bi.svgSpan(t,e),h=-e.fontMetrics().axisHeight+.5*l.height,s=-e.fontMetrics().axisHeight-.5*l.height-.111;(r.depth>.25||t.label==="\\xleftequilibrium")&&(s-=r.depth);var u;if(c){var v=-e.fontMetrics().axisHeight+c.height+.5*l.height+.111;u=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:s},{type:"elem",elem:l,shift:h},{type:"elem",elem:c,shift:v}]},e)}else u=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:s},{type:"elem",elem:l,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 n=Bi.mathMLnode(t.label);n.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(t.body){var r=Bd(D0(t.body,e));if(t.below){var o=Bd(D0(t.below,e));a=new dt.MathNode("munderover",[n,o,r])}else a=new dt.MathNode("mover",[n,r])}else if(t.below){var c=Bd(D0(t.below,e));a=new dt.MathNode("munder",[n,c])}else a=Bd(),a=new dt.MathNode("mover",[n,a]);return a}});var EV1=$1.makeSpan;function pX(t,e){var n=c4(t.body,e,!0);return EV1([t.mclass],n,e)}function mX(t,e){var n,a=qn(t.body,e);return t.mclass==="minner"?n=new dt.MathNode("mpadded",a):t.mclass==="mord"?t.isCharacterBox?(n=a[0],n.type="mi"):n=new dt.MathNode("mi",a):(t.isCharacterBox?(n=a[0],n.type="mo"):n=new dt.MathNode("mo",a),t.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):t.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):t.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Nt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:n,funcName:a}=t,r=e[0];return{type:"mclass",mode:n.mode,mclass:"m"+a.slice(5),body:Ae(r),isCharacterBox:d2.isCharacterBox(r)}},htmlBuilder:pX,mathmlBuilder:mX});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:n}=t;return{type:"mclass",mode:n.mode,mclass:Wz(e[0]),body:Ae(e[1]),isCharacterBox:d2.isCharacterBox(e[1])}}});Nt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:n,funcName:a}=t,r=e[1],o=e[0],c;a!=="\\stackrel"?c=Wz(r):c="mrel";var l={type:"op",mode:r.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:Ae(r)},h={type:"supsub",mode:o.mode,base:l,sup:a==="\\underset"?null:o,sub:a==="\\underset"?o:null};return{type:"mclass",mode:n.mode,mclass:c,body:[h],isCharacterBox:d2.isCharacterBox(h)}},htmlBuilder:pX,mathmlBuilder:mX});Nt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"pmb",mode:n.mode,mclass:Wz(e[0]),body:Ae(e[0])}},htmlBuilder(t,e){var n=c4(t.body,e,!0),a=$1.makeSpan([t.mclass],n,e);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(t,e){var n=qn(t.body,e),a=new dt.MathNode("mstyle",n);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var PV1={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},FR=()=>({type:"styling",body:[],mode:"math",style:"display"}),$R=t=>t.type==="textord"&&t.text==="@",NV1=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function DV1(t,e,n){var a=PV1[t];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(a,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var r=n.callFunction("\\\\cdleft",[e[0]],[]),o={type:"atom",text:a,mode:"math",family:"rel"},c=n.callFunction("\\Big",[o],[]),l=n.callFunction("\\\\cdright",[e[1]],[]),h={type:"ordgroup",mode:"math",body:[r,c,l]};return n.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var s={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[s],[])}default:return{type:"textord",text:" ",mode:"math"}}}function RV1(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 n=t.fetch().text;if(n==="&"||n==="\\\\")t.consume();else if(n==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new zt("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var a=[],r=[a],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 @',c[h]);var M=DV1(s,u,t),g={type:"styling",body:[M],mode:"math",style:"display"};a.push(g),l=FR()}o%2===0?a.push(l):a.shift(),a=[],r.push(a)}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:n,funcName:a}=t;return{type:"cdlabel",mode:n.mode,side:a.slice(4),label:e[0]}},htmlBuilder(t,e){var n=e.havingStyle(e.style.sup()),a=$1.wrapFragment(e0(t.label,n,e),e);return a.classes.push("cd-label-"+t.side),a.style.bottom=bt(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(t,e){var n=new dt.MathNode("mrow",[D0(t.label,e)]);return n=new dt.MathNode("mpadded",[n]),n.setAttribute("width","0"),t.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new dt.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});Nt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:n}=t;return{type:"cdlabelparent",mode:n.mode,fragment:e[0]}},htmlBuilder(t,e){var n=$1.wrapFragment(e0(t.fragment,e),e);return n.classes.push("cd-vert-arrow"),n},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:n}=t,a=L2(e[0],"ordgroup"),r=a.body,o="",c=0;c=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:n.mode,text:s}}});var zX=(t,e)=>{var n=c4(t.body,e.withColor(t.color),!1);return $1.makeFragment(n)},MX=(t,e)=>{var n=qn(t.body,e.withColor(t.color)),a=new dt.MathNode("mstyle",n);return a.setAttribute("mathcolor",t.color),a};Nt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:n}=t,a=L2(e[0],"color-token").color,r=e[1];return{type:"color",mode:n.mode,color:a,body:Ae(r)}},htmlBuilder:zX,mathmlBuilder:MX});Nt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:n,breakOnTokenText:a}=t,r=L2(e[0],"color-token").color;n.gullet.macros.set("\\current@color",r);var o=n.parseExpression(!0,a);return{type:"color",mode:n.mode,color:r,body:o}},htmlBuilder:zX,mathmlBuilder:MX});Nt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,n){var{parser:a}=t,r=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,o=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:o,size:r&&L2(r,"size").value}},htmlBuilder(t,e){var n=$1.makeSpan(["mspace"],[],e);return t.newLine&&(n.classes.push("newline"),t.size&&(n.style.marginTop=bt(me(t.size,e)))),n},mathmlBuilder(t,e){var n=new dt.MathNode("mspace");return t.newLine&&(n.setAttribute("linebreak","newline"),t.size&&n.setAttribute("height",bt(me(t.size,e)))),n}});var oL={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},HX=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new zt("Expected a control sequence",t);return e},jV1=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},wX=(t,e,n,a)=>{var r=t.gullet.macros.get(n.text);r==null&&(n.noexpand=!0,r={tokens:[n],numArgs:0,unexpandable:!t.gullet.isExpandable(n.text)}),t.gullet.macros.set(e,r,a)};Nt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:n}=t;e.consumeSpaces();var a=e.fetch();if(oL[a.text])return(n==="\\global"||n==="\\\\globallong")&&(a.text=oL[a.text]),L2(e.parseFunction(),"internal");throw new zt("Invalid token after macro prefix",a)}});Nt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,a=e.gullet.popToken(),r=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new zt("Expected a control sequence",a);for(var o=0,c,l=[[]];e.gullet.future().text!=="{";)if(a=e.gullet.popToken(),a.text==="#"){if(e.gullet.future().text==="{"){c=e.gullet.future(),l[o].push("{");break}if(a=e.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new zt('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==o+1)throw new zt('Argument number "'+a.text+'" out of order');o++,l.push([])}else{if(a.text==="EOF")throw new zt("Expected a macro definition");l[o].push(a.text)}var{tokens:h}=e.gullet.consumeArg();return c&&h.unshift(c),(n==="\\edef"||n==="\\xdef")&&(h=e.gullet.expandTokens(h),h.reverse()),e.gullet.macros.set(r,{tokens:h,numArgs:o,delimiters:l},n===oL[n]),{type:"internal",mode:e.mode}}});Nt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,a=HX(e.gullet.popToken());e.gullet.consumeSpaces();var r=jV1(e);return wX(e,a,r,n==="\\\\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:n}=t,a=HX(e.gullet.popToken()),r=e.gullet.popToken(),o=e.gullet.popToken();return wX(e,a,o,n==="\\\\globalfuture"),e.gullet.pushToken(o),e.gullet.pushToken(r),{type:"internal",mode:e.mode}}});var b7=function(e,n,a){var r=W0.math[e]&&W0.math[e].replace,o=q_(r||e,n,a);if(!o)throw new Error("Unsupported symbol "+e+" and font size "+n+".");return o},J_=function(e,n,a,r){var o=a.havingBaseStyle(n),c=$1.makeSpan(r.concat(o.sizingClasses(a)),[e],a),l=o.sizeMultiplier/a.sizeMultiplier;return c.height*=l,c.depth*=l,c.maxFontSize=o.sizeMultiplier,c},yX=function(e,n,a){var r=n.havingBaseStyle(a),o=(1-n.sizeMultiplier/r.sizeMultiplier)*n.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=bt(o),e.height-=o,e.depth+=o},IV1=function(e,n,a,r,o,c){var l=$1.makeSymbol(e,"Main-Regular",o,r),h=J_(l,n,r,c);return a&&yX(h,r,n),h},FV1=function(e,n,a,r){return $1.makeSymbol(e,"Size"+n+"-Regular",a,r)},xX=function(e,n,a,r,o,c){var l=FV1(e,n,o,r),h=J_($1.makeSpan(["delimsizing","size"+n],[l],r),o2.TEXT,r,c);return a&&yX(h,r,o2.TEXT),h},Ux=function(e,n,a){var r;n==="Size1-Regular"?r="delim-size1":r="delim-size4";var o=$1.makeSpan(["delimsizinginner",r],[$1.makeSpan([],[$1.makeSymbol(e,n,a)])]);return{type:"elem",elem:o}},Wx=function(e,n,a){var r=g5["Size4-Regular"][e.charCodeAt(0)]?g5["Size4-Regular"][e.charCodeAt(0)][4]:g5["Size1-Regular"][e.charCodeAt(0)][4],o=new uo("inner",Kx1(e,Math.round(1e3*n))),c=new bi([o],{width:bt(r),height:bt(n),style:"width:"+bt(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),l=$1.makeSvgSpan([],[c],a);return l.height=n,l.style.height=bt(n),l.style.width=bt(r),{type:"elem",elem:l}},cL=.008,Sd={type:"kern",size:-1*cL},$V1=["|","\\lvert","\\rvert","\\vert"],UV1=["\\|","\\lVert","\\rVert","\\Vert"],VX=function(e,n,a,r,o,c){var l,h,s,u,v="",f=0;l=s=u=e,h=null;var d="Size1-Regular";e==="\\uparrow"?s=u="⏐":e==="\\Uparrow"?s=u="‖":e==="\\downarrow"?l=s="⏐":e==="\\Downarrow"?l=s="‖":e==="\\updownarrow"?(l="\\uparrow",s="⏐",u="\\downarrow"):e==="\\Updownarrow"?(l="\\Uparrow",s="‖",u="\\Downarrow"):d2.contains($V1,e)?(s="∣",v="vert",f=333):d2.contains(UV1,e)?(s="∥",v="doublevert",f=556):e==="["||e==="\\lbrack"?(l="⎡",s="⎢",u="⎣",d="Size4-Regular",v="lbrack",f=667):e==="]"||e==="\\rbrack"?(l="⎤",s="⎥",u="⎦",d="Size4-Regular",v="rbrack",f=667):e==="\\lfloor"||e==="⌊"?(s=l="⎢",u="⎣",d="Size4-Regular",v="lfloor",f=667):e==="\\lceil"||e==="⌈"?(l="⎡",s=u="⎢",d="Size4-Regular",v="lceil",f=667):e==="\\rfloor"||e==="⌋"?(s=l="⎥",u="⎦",d="Size4-Regular",v="rfloor",f=667):e==="\\rceil"||e==="⌉"?(l="⎤",s=u="⎥",d="Size4-Regular",v="rceil",f=667):e==="("||e==="\\lparen"?(l="⎛",s="⎜",u="⎝",d="Size4-Regular",v="lparen",f=875):e===")"||e==="\\rparen"?(l="⎞",s="⎟",u="⎠",d="Size4-Regular",v="rparen",f=875):e==="\\{"||e==="\\lbrace"?(l="⎧",h="⎨",u="⎩",s="⎪",d="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(l="⎫",h="⎬",u="⎭",s="⎪",d="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(l="⎧",u="⎩",s="⎪",d="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(l="⎫",u="⎭",s="⎪",d="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(l="⎧",u="⎭",s="⎪",d="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(l="⎫",u="⎩",s="⎪",d="Size4-Regular");var M=b7(l,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((n-V)/(x*p))),L=V+C*x*p,B=r.fontMetrics().axisHeight;a&&(B*=r.sizeMultiplier);var _=L/2-B,T=[];if(v.length>0){var P=L-g-z,F=Math.round(L*1e3),W=Yx1(v,Math.round(P*1e3)),U=new uo(v,W),Z=(f/1e3).toFixed(3)+"em",I=(F/1e3).toFixed(3)+"em",t1=new bi([U],{width:Z,height:I,viewBox:"0 0 "+f+" "+F}),R=$1.makeSvgSpan([],[t1],r);R.height=F/1e3,R.style.width=Z,R.style.height=I,T.push({type:"elem",elem:R})}else{if(T.push(Ux(u,d,o)),T.push(Sd),h===null){var i1=L-g-z+2*cL;T.push(Wx(s,i1,r))}else{var J=(L-g-z-w)/2+2*cL;T.push(Wx(s,J,r)),T.push(Sd),T.push(Ux(h,d,o)),T.push(Sd),T.push(Wx(s,J,r))}T.push(Sd),T.push(Ux(l,d,o))}var A=r.havingBaseStyle(o2.TEXT),o1=$1.makeVList({positionType:"bottom",positionData:_,children:T},A);return J_($1.makeSpan(["delimsizing","mult"],[o1],A),o2.TEXT,r,c)},qx=80,Gx=.08,Kx=function(e,n,a,r,o){var c=Gx1(e,r,a),l=new uo(e,c),h=new bi([l],{width:"400em",height:bt(n),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return $1.makeSvgSpan(["hide-tail"],[h],o)},WV1=function(e,n){var a=n.havingBaseSizing(),r=BX("\\surd",e*a.sizeMultiplier,LX,a),o=a.sizeMultiplier,c=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),l,h=0,s=0,u=0,v;return r.type==="small"?(u=1e3+1e3*c+qx,e<1?o=1:e<1.4&&(o=.7),h=(1+c+Gx)/o,s=(1+c)/o,l=Kx("sqrtMain",h,u,c,n),l.style.minWidth="0.853em",v=.833/o):r.type==="large"?(u=(1e3+qx)*rs[r.size],s=(rs[r.size]+c)/o,h=(rs[r.size]+c+Gx)/o,l=Kx("sqrtSize"+r.size,h,u,c,n),l.style.minWidth="1.02em",v=1/o):(h=e+c+Gx,s=e+c,u=Math.floor(1e3*e+c)+qx,l=Kx("sqrtTall",h,u,c,n),l.style.minWidth="0.742em",v=1.056),l.height=s,l.style.height=bt(h),{span:l,advanceWidth:v,ruleWidth:(n.fontMetrics().sqrtRuleThickness+c)*o}},CX=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],qV1=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],bX=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],rs=[0,1.2,1.8,2.4,3],GV1=function(e,n,a,r,o){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),d2.contains(CX,e)||d2.contains(bX,e))return xX(e,n,!1,a,r,o);if(d2.contains(qV1,e))return VX(e,rs[n],!1,a,r,o);throw new zt("Illegal delimiter: '"+e+"'")},KV1=[{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}],YV1=[{type:"small",style:o2.SCRIPTSCRIPT},{type:"small",style:o2.SCRIPT},{type:"small",style:o2.TEXT},{type:"stack"}],LX=[{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"}],ZV1=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.")},BX=function(e,n,a,r){for(var o=Math.min(2,3-r.style.size),c=o;cn)return a[c]}return a[a.length-1]},SX=function(e,n,a,r,o,c){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var l;d2.contains(bX,e)?l=KV1:d2.contains(CX,e)?l=LX:l=YV1;var h=BX(e,n,l,r);return h.type==="small"?IV1(e,h.style,a,r,o,c):h.type==="large"?xX(e,h.size,a,r,o,c):VX(e,n,a,r,o,c)},QV1=function(e,n,a,r,o,c){var l=r.fontMetrics().axisHeight*r.sizeMultiplier,h=901,s=5/r.fontMetrics().ptPerEm,u=Math.max(n-l,a+l),v=Math.max(u/500*h,2*u-s);return SX(e,v,!0,r,o,c)},gi={sqrtImage:WV1,sizedDelim:GV1,sizeToMaxHeight:rs,customSizedDelim:SX,leftRightDelim:QV1},UR={"\\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}},XV1=["(","\\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 n=Uz(t);if(n&&d2.contains(XV1,n.text))return n;throw n?new zt("Invalid delimiter '"+n.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 n=qz(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:UR[t.funcName].size,mclass:UR[t.funcName].mclass,delim:n.text}},htmlBuilder:(t,e)=>t.delim==="."?$1.makeSpan([t.mclass]):gi.sizedDelim(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Ya(t.delim,t.mode));var n=new dt.MathNode("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var a=bt(gi.sizeToMaxHeight[t.size]);return n.setAttribute("minsize",a),n.setAttribute("maxsize",a),n}});function WR(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 n=t.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="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:n}}});Nt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=qz(e[0],t),a=t.parser;++a.leftrightDepth;var r=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var o=L2(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:r,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:(t,e)=>{WR(t);for(var n=c4(t.body,e,!0,["mopen","mclose"]),a=0,r=0,o=!1,c=0;c{WR(t);var n=qn(t.body,e);if(t.left!=="."){var a=new dt.MathNode("mo",[Ya(t.left,t.mode)]);a.setAttribute("fence","true"),n.unshift(a)}if(t.right!=="."){var r=new dt.MathNode("mo",[Ya(t.right,t.mode)]);r.setAttribute("fence","true"),t.rightColor&&r.setAttribute("mathcolor",t.rightColor),n.push(r)}return Y_(n)}});Nt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=qz(e[0],t);if(!t.parser.leftrightDepth)throw new zt("\\middle without preceding \\left",n);return{type:"middle",mode:t.parser.mode,delim:n.text}},htmlBuilder:(t,e)=>{var n;if(t.delim===".")n=Ws(e,[]);else{n=gi.sizedDelim(t.delim,1,e,t.mode,[]);var a={delim:t.delim,options:e};n.isMiddle=a}return n},mathmlBuilder:(t,e)=>{var n=t.delim==="\\vert"||t.delim==="|"?Ya("|","text"):Ya(t.delim,t.mode),a=new dt.MathNode("mo",[n]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var tT=(t,e)=>{var n=$1.wrapFragment(e0(t.body,e),e),a=t.label.slice(1),r=e.sizeMultiplier,o,c=0,l=d2.isCharacterBox(t.body);if(a==="sout")o=$1.makeSpan(["stretchy","sout"]),o.height=e.fontMetrics().defaultRuleThickness/r,c=-.5*e.fontMetrics().xHeight;else if(a==="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=n.height+n.depth+h+s;n.style.paddingLeft=bt(v/2+h);var f=Math.floor(1e3*v*r),d=Wx1(f),M=new bi([new uo("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),c=n.depth+h+s}else{/cancel/.test(a)?l||n.classes.push("cancel-pad"):a==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var g=0,H=0,p=0;/box/.test(a)?(p=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),g=e.fontMetrics().fboxsep+(a==="colorbox"?0:p),H=g):a==="angl"?(p=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),g=4*p,H=Math.max(0,.25-n.depth)):(g=l?.2:0,H=g),o=Bi.encloseSpan(n,a,g,H,e),/fbox|boxed|fcolorbox/.test(a)?(o.style.borderStyle="solid",o.style.borderWidth=bt(p)):a==="angl"&&p!==.049&&(o.style.borderTopWidth=bt(p),o.style.borderRightWidth=bt(p)),c=n.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:c},{type:"elem",elem:n,shift:0}]},e);else{var z=/cancel|phase/.test(a)?["svg-align"]:[];m=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:o,shift:c,wrapperClasses:z}]},e)}return/cancel/.test(a)&&(m.height=n.height,m.depth=n.depth),/cancel/.test(a)&&!l?$1.makeSpan(["mord","cancel-lap"],[m],e):$1.makeSpan(["mord"],[m],e)},eT=(t,e)=>{var n=0,a=new dt.MathNode(t.label.indexOf("colorbox")>-1?"mpadded":"menclose",[D0(t.body,e)]);switch(t.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*n+"pt"),a.setAttribute("height","+"+2*n+"pt"),a.setAttribute("lspace",n+"pt"),a.setAttribute("voffset",n+"pt"),t.label==="\\fcolorbox"){var r=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);a.setAttribute("style","border: "+r+"em solid "+String(t.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&a.setAttribute("mathbackground",t.backgroundColor),a};Nt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,n){var{parser:a,funcName:r}=t,o=L2(e[0],"color-token").color,c=e[1];return{type:"enclose",mode:a.mode,label:r,backgroundColor:o,body:c}},htmlBuilder:tT,mathmlBuilder:eT});Nt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,n){var{parser:a,funcName:r}=t,o=L2(e[0],"color-token").color,c=L2(e[1],"color-token").color,l=e[2];return{type:"enclose",mode:a.mode,label:r,backgroundColor:c,borderColor:o,body:l}},htmlBuilder:tT,mathmlBuilder:eT});Nt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"enclose",mode:n.mode,label:"\\fbox",body:e[0]}}});Nt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:a}=t,r=e[0];return{type:"enclose",mode:n.mode,label:a,body:r}},htmlBuilder:tT,mathmlBuilder:eT});Nt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:n}=t;return{type:"enclose",mode:n.mode,label:"\\angl",body:e[0]}}});var _X={};function B5(t){for(var{type:e,names:n,props:a,handler:r,htmlBuilder:o,mathmlBuilder:c}=t,l={type:e,numArgs:a.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 nT(t){if(t.indexOf("ed")===-1)return t.indexOf("*")===-1}function To(t,e,n){var{hskipBeforeAndAfter:a,addJot:r,cols:o,arraystretch:c,colSeparationType:l,autoTag:h,singleRow:s,emptySingleRow:u,maxNumCols:v,leqno:f}=e;if(t.gullet.beginGroup(),s||t.gullet.macros.set("\\cr","\\\\\\relax"),!c){var d=t.gullet.expandMacroAsText("\\arraystretch");if(d==null)c=1;else if(c=parseFloat(d),!c||c<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 w5("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):m.push(!!h&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(z(),p.push(qR(t));;){var x=t.parseExpression(!1,s?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),x={type:"ordgroup",mode:t.mode,body:x},n&&(x={type:"styling",mode:t.mode,style:n,body:[x]}),M.push(x);var y=t.fetch().text;if(y==="&"){if(v&&M.length===v){if(s||l)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:rt[tt]})}for(w(c[0]),a=0;a0&&(_+=m,V<_&&(V=_),_=0)),e.addJot&&(V+=g),C.height=y,C.depth=V,z+=y,C.pos=z,z+=V+_,h[a]=C,w(c[a+1])}var T=z/2+n.fontMetrics().axisHeight,P=e.cols||[],F=[],W,U,Z=[];if(e.tags&&e.tags.some(rt=>rt))for(a=0;a=l)){var M1=void 0;(r>0||e.hskipBeforeAndAfter)&&(M1=d2.deflt(J.pregap,f),M1!==0&&(W=$1.makeSpan(["arraycolsep"],[]),W.style.width=bt(M1),F.push(W)));var s1=[];for(a=0;a0){for(var I1=$1.makeLineSpan("hline",n,u),U1=$1.makeLineSpan("hdashline",n,u),P1=[{type:"elem",elem:h,shift:0}];s.length>0;){var G1=s.pop(),at=G1.pos-T;G1.isDashed?P1.push({type:"elem",elem:U1,shift:at}):P1.push({type:"elem",elem:I1,shift:at})}h=$1.makeVList({positionType:"individualShift",children:P1},n)}if(Z.length===0)return $1.makeSpan(["mord"],[h],n);var X1=$1.makeVList({positionType:"individualShift",children:Z},n);return X1=$1.makeSpan(["tag"],[X1],n),$1.makeFragment([h,X1])},JV1={c:"center ",l:"left ",r:"right "},_5=function(e,n){for(var a=[],r=new dt.MathNode("mtd",[],["mtr-glue"]),o=new dt.MathNode("mtd",[],["mml-eqn-num"]),c=0;c0){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",c=To(e.parser,{cols:a,addJot:!0,autoTag:o?void 0:nT(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),l,h=0,s={type:"ordgroup",mode:e.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var u="",v=0;v0&&d&&(H=1),a[M]={type:"align",align:g,pregap:H,postgap:0}}return c.colSeparationType=d?"align":"alignat",c};B5({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var n=Uz(e[0]),a=n?[e[0]]:L2(e[0],"ordgroup").body,r=a.map(function(c){var l=Q_(c),h=l.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,c)}),o={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return To(t.parser,o,aT(t.envName))},htmlBuilder:S5,mathmlBuilder:_5});B5({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("*","")],n="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(t.envName.charAt(t.envName.length-1)==="*"){var r=t.parser;if(r.consumeSpaces(),r.fetch().text==="["){if(r.consume(),r.consumeSpaces(),n=r.fetch().text,"lcr".indexOf(n)===-1)throw new zt("Expected l or c or r",r.nextToken);r.consume(),r.consumeSpaces(),r.expect("]"),r.consume(),a.cols=[{type:"align",align:n}]}}var o=To(t.parser,a,aT(t.envName)),c=Math.max(0,...o.body.map(l=>l.length));return o.cols=new Array(c).fill({type:"align",align:n}),e?{type:"leftright",mode:t.mode,body:[o],left:e[0],right:e[1],rightColor:void 0}:o},htmlBuilder:S5,mathmlBuilder:_5});B5({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},n=To(t.parser,e,"script");return n.colSeparationType="small",n},htmlBuilder:S5,mathmlBuilder:_5});B5({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var n=Uz(e[0]),a=n?[e[0]]:L2(e[0],"ordgroup").body,r=a.map(function(c){var l=Q_(c),h=l.text;if("lc".indexOf(h)!==-1)return{type:"align",align:h};throw new zt("Unknown column alignment: "+h,c)});if(r.length>1)throw new zt("{subarray} can contain only one column");var o={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=To(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:S5,mathmlBuilder:_5});B5({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}]},n=To(t.parser,e,aT(t.envName));return{type:"leftright",mode:t.mode,body:[n],left:t.envName.indexOf("r")>-1?".":"\\{",right:t.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:S5,mathmlBuilder:_5});B5({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:OX,htmlBuilder:S5,mathmlBuilder:_5});B5({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:nT(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return To(t.parser,e,"display")},htmlBuilder:S5,mathmlBuilder:_5});B5({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:OX,htmlBuilder:S5,mathmlBuilder:_5});B5({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){Gz(t);var e={autoTag:nT(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return To(t.parser,e,"display")},htmlBuilder:S5,mathmlBuilder:_5});B5({type:"array",names:["CD"],props:{numArgs:0},handler(t){return Gz(t),RV1(t.parser)},htmlBuilder:S5,mathmlBuilder:_5});a1("\\nonumber","\\gdef\\@eqnsw{0}");a1("\\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 GR=_X;Nt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:n,funcName:a}=t,r=e[0];if(r.type!=="ordgroup")throw new zt("Invalid environment name",r);for(var o="",c=0;c{var n=t.font,a=e.withFont(n);return e0(t.body,a)},kX=(t,e)=>{var n=t.font,a=e.withFont(n);return D0(t.body,a)},KR={"\\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:n,funcName:a}=t,r=ep(e[0]),o=a;return o in KR&&(o=KR[o]),{type:"font",mode:n.mode,font:o.slice(1),body:r}},htmlBuilder:AX,mathmlBuilder:kX});Nt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:n}=t,a=e[0],r=d2.isCharacterBox(a);return{type:"mclass",mode:n.mode,mclass:Wz(a),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:a}],isCharacterBox:r}}});Nt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:a,breakOnTokenText:r}=t,{mode:o}=n,c=n.parseExpression(!0,r),l="math"+a.slice(1);return{type:"font",mode:o,font:l,body:{type:"ordgroup",mode:n.mode,body:c}}},htmlBuilder:AX,mathmlBuilder:kX});var EX=(t,e)=>{var n=e;return t==="display"?n=n.id>=o2.SCRIPT.id?n.text():o2.DISPLAY:t==="text"&&n.size===o2.DISPLAY.size?n=o2.TEXT:t==="script"?n=o2.SCRIPT:t==="scriptscript"&&(n=o2.SCRIPTSCRIPT),n},rT=(t,e)=>{var n=EX(t.size,e.style),a=n.fracNum(),r=n.fracDen(),o;o=e.havingStyle(a);var c=e0(t.numer,o,e);if(t.continued){var l=8.5/e.fontMetrics().ptPerEm,h=3.5/e.fontMetrics().ptPerEm;c.height=c.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-c.depth-(m+.5*v){var n=new dt.MathNode("mfrac",[D0(t.numer,e),D0(t.denom,e)]);if(!t.hasBarLine)n.setAttribute("linethickness","0px");else if(t.barSize){var a=me(t.barSize,e);n.setAttribute("linethickness",bt(a))}var r=EX(t.size,e.style);if(r.size!==e.style.size){n=new dt.MathNode("mstyle",[n]);var o=r.size===o2.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",o),n.setAttribute("scriptlevel","0")}if(t.leftDelim!=null||t.rightDelim!=null){var c=[];if(t.leftDelim!=null){var l=new dt.MathNode("mo",[new dt.TextNode(t.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),c.push(l)}if(c.push(n),t.rightDelim!=null){var h=new dt.MathNode("mo",[new dt.TextNode(t.rightDelim.replace("\\",""))]);h.setAttribute("fence","true"),c.push(h)}return Y_(c)}return n};Nt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:n,funcName:a}=t,r=e[0],o=e[1],c,l=null,h=null,s="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":c=!0;break;case"\\\\atopfrac":c=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":c=!1,l="(",h=")";break;case"\\\\bracefrac":c=!1,l="\\{",h="\\}";break;case"\\\\brackfrac":c=!1,l="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":s="display";break;case"\\tfrac":case"\\tbinom":s="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:r,denom:o,hasBarLine:c,leftDelim:l,rightDelim:h,size:s,barSize:null}},htmlBuilder:rT,mathmlBuilder:iT});Nt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(t,e)=>{var{parser:n,funcName:a}=t,r=e[0],o=e[1];return{type:"genfrac",mode:n.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:n,token:a}=t,r;switch(n){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:a}}});var YR=["display","text","script","scriptscript"],ZR=function(e){var n=null;return e.length>0&&(n=e,n=n==="."?null:n),n};Nt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:n}=t,a=e[4],r=e[5],o=ep(e[0]),c=o.type==="atom"&&o.family==="open"?ZR(o.text):null,l=ep(e[1]),h=l.type==="atom"&&l.family==="close"?ZR(l.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=YR[Number(M.text)]}}else d=L2(d,"textord"),f=YR[Number(d.text)];return{type:"genfrac",mode:n.mode,numer:a,denom:r,continued:!1,hasBarLine:u,barSize:v,leftDelim:c,rightDelim:h,size:f}},htmlBuilder:rT,mathmlBuilder:iT});Nt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:n,funcName:a,token:r}=t;return{type:"infix",mode:n.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:n,funcName:a}=t,r=e[0],o=_x1(L2(e[1],"infix").size),c=e[2],l=o.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:c,continued:!1,hasBarLine:l,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:rT,mathmlBuilder:iT});var PX=(t,e)=>{var n=e.style,a,r;t.type==="supsub"?(a=t.sup?e0(t.sup,e.havingStyle(n.sup()),e):e0(t.sub,e.havingStyle(n.sub()),e),r=L2(t.base,"horizBrace")):r=L2(t,"horizBrace");var o=e0(r.base,e.havingBaseStyle(o2.DISPLAY)),c=Bi.svgSpan(r,e),l;if(r.isOver?(l=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:c}]},e),l.children[0].children[0].children[1].classes.push("svg-align")):(l=$1.makeVList({positionType:"bottom",positionData:o.depth+.1+c.height,children:[{type:"elem",elem:c},{type:"kern",size:.1},{type:"elem",elem:o}]},e),l.children[0].children[0].children[0].classes.push("svg-align")),a){var h=$1.makeSpan(["mord",r.isOver?"mover":"munder"],[l],e);r.isOver?l=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:a}]},e):l=$1.makeVList({positionType:"bottom",positionData:h.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:h}]},e)}return $1.makeSpan(["mord",r.isOver?"mover":"munder"],[l],e)},tC1=(t,e)=>{var n=Bi.mathMLnode(t.label);return new dt.MathNode(t.isOver?"mover":"munder",[D0(t.base,e),n])};Nt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:a}=t;return{type:"horizBrace",mode:n.mode,label:a,isOver:/^\\over/.test(a),base:e[0]}},htmlBuilder:PX,mathmlBuilder:tC1});Nt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,a=e[1],r=L2(e[0],"url").url;return n.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:n.mode,href:r,body:Ae(a)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var n=c4(t.body,e,!1);return $1.makeAnchor(t.href,[],n,e)},mathmlBuilder:(t,e)=>{var n=vo(t.body,e);return n instanceof Ea||(n=new Ea("mrow",[n])),n.setAttribute("href",t.href),n}});Nt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,a=L2(e[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:a}))return n.formatUnsupportedCmd("\\url");for(var r=[],o=0;o{var{parser:n,funcName:a,token:r}=t,o=L2(e[0],"raw").string,c=e[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,h={};switch(a){case"\\htmlClass":h.class=o,l={command:"\\htmlClass",class:o};break;case"\\htmlId":h.id=o,l={command:"\\htmlId",id:o};break;case"\\htmlStyle":h.style=o,l={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var s=o.split(","),u=0;u{var n=c4(t.body,e,!1),a=["enclosing"];t.attributes.class&&a.push(...t.attributes.class.trim().split(/\s+/));var r=$1.makeSpan(a,n,e);for(var o in t.attributes)o!=="class"&&t.attributes.hasOwnProperty(o)&&r.setAttribute(o,t.attributes[o]);return r},mathmlBuilder:(t,e)=>vo(t.body,e)});Nt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t;return{type:"htmlmathml",mode:n.mode,html:Ae(e[0]),mathml:Ae(e[1])}},htmlBuilder:(t,e)=>{var n=c4(t.html,e,!1);return $1.makeFragment(n)},mathmlBuilder:(t,e)=>vo(t.mathml,e)});var Yx=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!n)throw new zt("Invalid size: '"+e+"' in \\includegraphics");var a={number:+(n[1]+n[2]),unit:n[3]};if(!eX(a))throw new zt("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};Nt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,n)=>{var{parser:a}=t,r={number:0,unit:"em"},o={number:.9,unit:"em"},c={number:0,unit:"em"},l="";if(n[0])for(var h=L2(n[0],"raw").string,s=h.split(","),u=0;u{var n=me(t.height,e),a=0;t.totalheight.number>0&&(a=me(t.totalheight,e)-n);var r=0;t.width.number>0&&(r=me(t.width,e));var o={height:bt(n+a)};r>0&&(o.width=bt(r)),a>0&&(o.verticalAlign=bt(-a));var c=new tV1(t.src,t.alt,o);return c.height=n,c.depth=a,c},mathmlBuilder:(t,e)=>{var n=new dt.MathNode("mglyph",[]);n.setAttribute("alt",t.alt);var a=me(t.height,e),r=0;if(t.totalheight.number>0&&(r=me(t.totalheight,e)-a,n.setAttribute("valign",bt(-r))),n.setAttribute("height",bt(a+r)),t.width.number>0){var o=me(t.width,e);n.setAttribute("width",bt(o))}return n.setAttribute("src",t.src),n}});Nt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:n,funcName:a}=t,r=L2(e[0],"size");if(n.settings.strict){var o=a[1]==="m",c=r.value.unit==="mu";o?(c||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+r.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):c&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:r.value}},htmlBuilder(t,e){return $1.makeGlue(t.dimension,e)},mathmlBuilder(t,e){var n=me(t.dimension,e);return new dt.SpaceNode(n)}});Nt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:a}=t,r=e[0];return{type:"lap",mode:n.mode,alignment:a.slice(5),body:r}},htmlBuilder:(t,e)=>{var n;t.alignment==="clap"?(n=$1.makeSpan([],[e0(t.body,e)]),n=$1.makeSpan(["inner"],[n],e)):n=$1.makeSpan(["inner"],[e0(t.body,e)]);var a=$1.makeSpan(["fix"],[]),r=$1.makeSpan([t.alignment],[n,a],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 n=new dt.MathNode("mpadded",[D0(t.body,e)]);if(t.alignment!=="rlap"){var a=t.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",a+"width")}return n.setAttribute("width","0px"),n}});Nt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:n,parser:a}=t,r=a.mode;a.switchMode("math");var o=n==="\\("?"\\)":"$",c=a.parseExpression(!1,o);return a.expect(o),a.switchMode(r),{type:"styling",mode:a.mode,style:"text",body:c}}});Nt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new zt("Mismatched "+t.funcName)}});var QR=(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:n}=t;return{type:"mathchoice",mode:n.mode,display:Ae(e[0]),text:Ae(e[1]),script:Ae(e[2]),scriptscript:Ae(e[3])}},htmlBuilder:(t,e)=>{var n=QR(t,e),a=c4(n,e,!1);return $1.makeFragment(a)},mathmlBuilder:(t,e)=>{var n=QR(t,e);return vo(n,e)}});var NX=(t,e,n,a,r,o,c)=>{t=$1.makeSpan([],[t]);var l=n&&d2.isCharacterBox(n),h,s;if(e){var u=e0(e,a.havingStyle(r.sup()),a);s={elem:u,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var v=e0(n,a.havingStyle(r.sub()),a);h={elem:v,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-v.height)}}var f;if(s&&h){var d=a.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+t.depth+c;f=$1.makeVList({positionType:"bottom",positionData:d,children:[{type:"kern",size:a.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:a.fontMetrics().bigOpSpacing5}]},a)}else if(h){var M=t.height-c;f=$1.makeVList({positionType:"top",positionData:M,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:bt(-o)},{type:"kern",size:h.kern},{type:"elem",elem:t}]},a)}else if(s){var g=t.depth+c;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:a.fontMetrics().bigOpSpacing5}]},a)}else return t;var H=[f];if(h&&o!==0&&!l){var p=$1.makeSpan(["mspace"],[],a);p.style.marginRight=bt(o),H.unshift(p)}return $1.makeSpan(["mop","op-limits"],H,a)},DX=["\\smallint"],Jl=(t,e)=>{var n,a,r=!1,o;t.type==="supsub"?(n=t.sup,a=t.sub,o=L2(t.base,"op"),r=!0):o=L2(t,"op");var c=e.style,l=!1;c.size===o2.DISPLAY.size&&o.symbol&&!d2.contains(DX,o.name)&&(l=!0);var h;if(o.symbol){var s=l?"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",l?"large-op":"small-op"]),u.length>0){var v=h.italic,f=$1.staticSvg(u+"Size"+(l?"2":"1"),e);h=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:f,shift:l?.08:0}]},e),o.name="\\"+u,h.classes.unshift("mop"),h.italic=v}}else if(o.body){var d=c4(o.body,e,!0);d.length===1&&d[0]instanceof Ka?(h=d[0],h.classes[0]="mop"):h=$1.makeSpan(["mop"],d,e)}else{for(var M=[],g=1;g{var n;if(t.symbol)n=new Ea("mo",[Ya(t.name,t.mode)]),d2.contains(DX,t.name)&&n.setAttribute("largeop","false");else if(t.body)n=new Ea("mo",qn(t.body,e));else{n=new Ea("mi",[new as(t.name.slice(1))]);var a=new Ea("mo",[Ya("⁡","text")]);t.parentIsSupSub?n=new Ea("mrow",[n,a]):n=vX([n,a])}return n},eC1={"∏":"\\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:n,funcName:a}=t,r=a;return r.length===1&&(r=eC1[r]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Jl,mathmlBuilder:Gh});Nt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:n}=t,a=e[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ae(a)}},htmlBuilder:Jl,mathmlBuilder:Gh});var nC1={"∫":"\\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:n}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Jl,mathmlBuilder:Gh});Nt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Jl,mathmlBuilder:Gh});Nt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t,a=n;return a.length===1&&(a=nC1[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Jl,mathmlBuilder:Gh});var RX=(t,e)=>{var n,a,r=!1,o;t.type==="supsub"?(n=t.sup,a=t.sub,o=L2(t.base,"operatorname"),r=!0):o=L2(t,"operatorname");var c;if(o.body.length>0){for(var l=o.body.map(v=>{var f=v.text;return typeof f=="string"?{type:"textord",mode:v.mode,text:f}:v}),h=c4(l,e.withFont("mathrm"),!0),s=0;s{for(var n=qn(t.body,e.withFont("mathrm")),a=!0,r=0;ru.toText()).join("");n=[new dt.TextNode(l)]}var h=new dt.MathNode("mi",n);h.setAttribute("mathvariant","normal");var s=new dt.MathNode("mo",[Ya("⁡","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:n,funcName:a}=t,r=e[0];return{type:"operatorname",mode:n.mode,body:Ae(r),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:RX,mathmlBuilder:aC1});a1("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");p6({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?$1.makeFragment(c4(t.body,e,!1)):$1.makeSpan(["mord"],c4(t.body,e,!0),e)},mathmlBuilder(t,e){return vo(t.body,e,!0)}});Nt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:n}=t,a=e[0];return{type:"overline",mode:n.mode,body:a}},htmlBuilder(t,e){var n=e0(t.body,e.havingCrampedStyle()),a=$1.makeLineSpan("overline-line",e),r=e.fontMetrics().defaultRuleThickness,o=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*r},{type:"elem",elem:a},{type:"kern",size:r}]},e);return $1.makeSpan(["mord","overline"],[o],e)},mathmlBuilder(t,e){var n=new dt.MathNode("mo",[new dt.TextNode("‾")]);n.setAttribute("stretchy","true");var a=new dt.MathNode("mover",[D0(t.body,e),n]);return a.setAttribute("accent","true"),a}});Nt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,a=e[0];return{type:"phantom",mode:n.mode,body:Ae(a)}},htmlBuilder:(t,e)=>{var n=c4(t.body,e.withPhantom(),!1);return $1.makeFragment(n)},mathmlBuilder:(t,e)=>{var n=qn(t.body,e);return new dt.MathNode("mphantom",n)}});Nt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,a=e[0];return{type:"hphantom",mode:n.mode,body:a}},htmlBuilder:(t,e)=>{var n=$1.makeSpan([],[e0(t.body,e.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var a=0;a{var n=qn(Ae(t.body),e),a=new dt.MathNode("mphantom",n),r=new dt.MathNode("mpadded",[a]);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:n}=t,a=e[0];return{type:"vphantom",mode:n.mode,body:a}},htmlBuilder:(t,e)=>{var n=$1.makeSpan(["inner"],[e0(t.body,e.withPhantom())]),a=$1.makeSpan(["fix"],[]);return $1.makeSpan(["mord","rlap"],[n,a],e)},mathmlBuilder:(t,e)=>{var n=qn(Ae(t.body),e),a=new dt.MathNode("mphantom",n),r=new dt.MathNode("mpadded",[a]);return r.setAttribute("width","0px"),r}});Nt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:n}=t,a=L2(e[0],"size").value,r=e[1];return{type:"raisebox",mode:n.mode,dy:a,body:r}},htmlBuilder(t,e){var n=e0(t.body,e),a=me(t.dy,e);return $1.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:n}]},e)},mathmlBuilder(t,e){var n=new dt.MathNode("mpadded",[D0(t.body,e)]),a=t.dy.number+t.dy.unit;return n.setAttribute("voffset",a),n}});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,n){var{parser:a}=t,r=n[0],o=L2(e[0],"size"),c=L2(e[1],"size");return{type:"rule",mode:a.mode,shift:r&&L2(r,"size").value,width:o.value,height:c.value}},htmlBuilder(t,e){var n=$1.makeSpan(["mord","rule"],[],e),a=me(t.width,e),r=me(t.height,e),o=t.shift?me(t.shift,e):0;return n.style.borderRightWidth=bt(a),n.style.borderTopWidth=bt(r),n.style.bottom=bt(o),n.width=a,n.height=r+o,n.depth=-o,n.maxFontSize=r*1.125*e.sizeMultiplier,n},mathmlBuilder(t,e){var n=me(t.width,e),a=me(t.height,e),r=t.shift?me(t.shift,e):0,o=e.color&&e.getColor()||"black",c=new dt.MathNode("mspace");c.setAttribute("mathbackground",o),c.setAttribute("width",bt(n)),c.setAttribute("height",bt(a));var l=new dt.MathNode("mpadded",[c]);return r>=0?l.setAttribute("height",bt(r)):(l.setAttribute("height",bt(r)),l.setAttribute("depth",bt(-r))),l.setAttribute("voffset",bt(r)),l}});function jX(t,e,n){for(var a=c4(t,e,!1),r=e.sizeMultiplier/n.sizeMultiplier,o=0;o{var n=e.havingSize(t.size);return jX(t.body,n,e)};Nt({type:"sizing",names:XR,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:n,funcName:a,parser:r}=t,o=r.parseExpression(!1,n);return{type:"sizing",mode:r.mode,size:XR.indexOf(a)+1,body:o}},htmlBuilder:rC1,mathmlBuilder:(t,e)=>{var n=e.havingSize(t.size),a=qn(t.body,n),r=new dt.MathNode("mstyle",a);return r.setAttribute("mathsize",bt(n.sizeMultiplier)),r}});Nt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,n)=>{var{parser:a}=t,r=!1,o=!1,c=n[0]&&L2(n[0],"ordgroup");if(c)for(var l="",h=0;h{var n=$1.makeSpan([],[e0(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return n;if(t.smashHeight&&(n.height=0,n.children))for(var a=0;a{var n=new dt.MathNode("mpadded",[D0(t.body,e)]);return t.smashHeight&&n.setAttribute("height","0px"),t.smashDepth&&n.setAttribute("depth","0px"),n}});Nt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,n){var{parser:a}=t,r=n[0],o=e[0];return{type:"sqrt",mode:a.mode,body:o,index:r}},htmlBuilder(t,e){var n=e0(t.body,e.havingCrampedStyle());n.height===0&&(n.height=e.fontMetrics().xHeight),n=$1.wrapFragment(n,e);var a=e.fontMetrics(),r=a.defaultRuleThickness,o=r;e.style.idn.height+n.depth+c&&(c=(c+v-n.height-n.depth)/2);var f=h.height-n.height-c-s;n.style.paddingLeft=bt(u);var d=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.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:n,index:a}=t;return a?new dt.MathNode("mroot",[D0(n,e),D0(a,e)]):new dt.MathNode("msqrt",[D0(n,e)])}});var JR={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:n,funcName:a,parser:r}=t,o=r.parseExpression(!0,n),c=a.slice(1,a.length-5);return{type:"styling",mode:r.mode,style:c,body:o}},htmlBuilder(t,e){var n=JR[t.style],a=e.havingStyle(n).withFont("");return jX(t.body,a,e)},mathmlBuilder(t,e){var n=JR[t.style],a=e.havingStyle(n),r=qn(t.body,a),o=new dt.MathNode("mstyle",r),c={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=c[t.style];return o.setAttribute("scriptlevel",l[0]),o.setAttribute("displaystyle",l[1]),o}});var iC1=function(e,n){var a=e.base;if(a)if(a.type==="op"){var r=a.limits&&(n.style.size===o2.DISPLAY.size||a.alwaysHandleSupSub);return r?Jl:null}else if(a.type==="operatorname"){var o=a.alwaysHandleSupSub&&(n.style.size===o2.DISPLAY.size||a.limits);return o?RX:null}else{if(a.type==="accent")return d2.isCharacterBox(a.base)?X_:null;if(a.type==="horizBrace"){var c=!e.sub;return c===a.isOver?PX:null}else return null}else return null};p6({type:"supsub",htmlBuilder(t,e){var n=iC1(t,e);if(n)return n(t,e);var{base:a,sup:r,sub:o}=t,c=e0(a,e),l,h,s=e.fontMetrics(),u=0,v=0,f=a&&d2.isCharacterBox(a);if(r){var d=e.havingStyle(e.style.sup());l=e0(r,d,e),f||(u=c.height-d.fontMetrics().supDrop*d.sizeMultiplier/e.sizeMultiplier)}if(o){var M=e.havingStyle(e.style.sub());h=e0(o,M,e),f||(v=c.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");(c instanceof Ka||z)&&(m=bt(-c.italic))}var w;if(l&&h){u=Math.max(u,g,l.depth+.25*s.xHeight),v=Math.max(v,s.sub2);var x=s.defaultRuleThickness,y=4*x;if(u-l.depth-(h.height-v)0&&(u+=V,v-=V)}var C=[{type:"elem",elem:h,shift:v,marginRight:p,marginLeft:m},{type:"elem",elem:l,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(l)u=Math.max(u,g,l.depth+.25*s.xHeight),w=$1.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:l,marginRight:p}]},e);else throw new Error("supsub must have either sup or sub.");var B=rL(c,"right")||"mord";return $1.makeSpan([B],[c,$1.makeSpan(["msupsub"],[w])],e)},mathmlBuilder(t,e){var n=!1,a,r;t.base&&t.base.type==="horizBrace"&&(r=!!t.sup,r===t.base.isOver&&(n=!0,a=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 c;if(n)c=a?"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)?c="munderover":c="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)?c="munder":c="msub"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===o2.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===o2.DISPLAY)?c="mover":c="msup"}return new dt.MathNode(c,o)}});p6({type:"atom",htmlBuilder(t,e){return $1.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var n=new dt.MathNode("mo",[Ya(t.text,t.mode)]);if(t.family==="bin"){var a=Z_(t,e);a==="bold-italic"&&n.setAttribute("mathvariant",a)}else t.family==="punct"?n.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&n.setAttribute("stretchy","false");return n}});var IX={mi:"italic",mn:"normal",mtext:"normal"};p6({type:"mathord",htmlBuilder(t,e){return $1.makeOrd(t,e,"mathord")},mathmlBuilder(t,e){var n=new dt.MathNode("mi",[Ya(t.text,t.mode,e)]),a=Z_(t,e)||"italic";return a!==IX[n.type]&&n.setAttribute("mathvariant",a),n}});p6({type:"textord",htmlBuilder(t,e){return $1.makeOrd(t,e,"textord")},mathmlBuilder(t,e){var n=Ya(t.text,t.mode,e),a=Z_(t,e)||"normal",r;return t.mode==="text"?r=new dt.MathNode("mtext",[n]):/[0-9]/.test(t.text)?r=new dt.MathNode("mn",[n]):t.text==="\\prime"?r=new dt.MathNode("mo",[n]):r=new dt.MathNode("mi",[n]),a!==IX[r.type]&&r.setAttribute("mathvariant",a),r}});var Zx={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Qx={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};p6({type:"spacing",htmlBuilder(t,e){if(Qx.hasOwnProperty(t.text)){var n=Qx[t.text].className||"";if(t.mode==="text"){var a=$1.makeOrd(t,e,"textord");return a.classes.push(n),a}else return $1.makeSpan(["mspace",n],[$1.mathsym(t.text,t.mode,e)],e)}else{if(Zx.hasOwnProperty(t.text))return $1.makeSpan(["mspace",Zx[t.text]],[],e);throw new zt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var n;if(Qx.hasOwnProperty(t.text))n=new dt.MathNode("mtext",[new dt.TextNode(" ")]);else{if(Zx.hasOwnProperty(t.text))return new dt.MathNode("mspace");throw new zt('Unknown type of space "'+t.text+'"')}return n}});var tj=()=>{var t=new dt.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};p6({type:"tag",mathmlBuilder(t,e){var n=new dt.MathNode("mtable",[new dt.MathNode("mtr",[tj(),new dt.MathNode("mtd",[vo(t.body,e)]),tj(),new dt.MathNode("mtd",[vo(t.tag,e)])])]);return n.setAttribute("width","100%"),n}});var ej={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},nj={"\\textbf":"textbf","\\textmd":"textmd"},oC1={"\\textit":"textit","\\textup":"textup"},aj=(t,e)=>{var n=t.font;return n?ej[n]?e.withTextFontFamily(ej[n]):nj[n]?e.withTextFontWeight(nj[n]):e.withTextFontShape(oC1[n]):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:n,funcName:a}=t,r=e[0];return{type:"text",mode:n.mode,body:Ae(r),font:a}},htmlBuilder(t,e){var n=aj(t,e),a=c4(t.body,n,!0);return $1.makeSpan(["mord","text"],a,n)},mathmlBuilder(t,e){var n=aj(t,e);return vo(t.body,n)}});Nt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"underline",mode:n.mode,body:e[0]}},htmlBuilder(t,e){var n=e0(t.body,e),a=$1.makeLineSpan("underline-line",e),r=e.fontMetrics().defaultRuleThickness,o=$1.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:r},{type:"elem",elem:a},{type:"kern",size:3*r},{type:"elem",elem:n}]},e);return $1.makeSpan(["mord","underline"],[o],e)},mathmlBuilder(t,e){var n=new dt.MathNode("mo",[new dt.TextNode("‾")]);n.setAttribute("stretchy","true");var a=new dt.MathNode("munder",[D0(t.body,e),n]);return a.setAttribute("accentunder","true"),a}});Nt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:n}=t;return{type:"vcenter",mode:n.mode,body:e[0]}},htmlBuilder(t,e){var n=e0(t.body,e),a=e.fontMetrics().axisHeight,r=.5*(n.height-a-(n.depth+a));return $1.makeVList({positionType:"shift",positionData:r,children:[{type:"elem",elem:n}]},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,n){throw new zt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var n=rj(t),a=[],r=e.havingStyle(e.style.text()),o=0;ot.body.replace(/ /g,t.star?"␣":" "),R3=hX,FX=`[ \r - ]`,cC1="\\\\[a-zA-Z@]+",lC1="\\\\[^\uD800-\uDFFF]",sC1="("+cC1+")"+FX+"*",hC1=`\\\\( +-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(),n=0;nn.toText();return this.children.map(e).join("")}}var fi={"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]},TR={Å:"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 Xx1(t,e){fi[t]=e}function qS(t,e,n){if(!fi[e])throw new Error("Font metrics not found for font: "+e+".");var a=t.charCodeAt(0),r=fi[e][a];if(!r&&t[0]in TR&&(a=TR[t[0]].charCodeAt(0),r=fi[e][a]),!r&&n==="text"&&eX(a)&&(r=fi[e][77]),r)return{depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]}}var Rx={};function Jx1(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!Rx[e]){var n=Rx[e]={cssEmPerMu:yd.quad[e]/18};for(var a in yd)yd.hasOwnProperty(a)&&(n[a]=yd[a][e])}return Rx[e]}var tV1=[[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]],OR=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],AR=function(e,n){return n.size<2?e:tV1[e-1][n.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=OR[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var n={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 a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);return new i5(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:AR(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:OR[e-1]})}havingBaseStyle(e){e=e||this.style.text();var n=AR(i5.BASESIZE,e);return this.size===n&&this.textSize===i5.BASESIZE&&this.style===e?this:this.extend({style:e,size:n})}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=Jx1(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}i5.BASESIZE=6;var eL={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},eV1={ex:!0,em:!0,mu:!0},nX=function(e){return typeof e!="string"&&(e=e.unit),e in eL||e in eV1||e==="ex"},me=function(e,n){var a;if(e.unit in eL)a=eL[e.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(e.unit==="mu")a=n.fontMetrics().cssEmPerMu;else{var r;if(n.style.isTight()?r=n.havingStyle(n.style.text()):r=n,e.unit==="ex")a=r.fontMetrics().xHeight;else if(e.unit==="em")a=r.fontMetrics().quad;else throw new zt("Invalid unit: '"+e.unit+"'");r!==n&&(a*=r.sizeMultiplier/n.sizeMultiplier)}return Math.min(e.number*a,n.maxSize)},bt=function(e){return+e.toFixed(4)+"em"},uo=function(e){return e.filter(n=>n).join(" ")},aX=function(e,n,a){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},n){n.style.isTight()&&this.classes.push("mtight");var r=n.getColor();r&&(this.style.color=r)}},rX=function(e){var n=document.createElement(e);n.className=uo(this.classes);for(var a in this.style)this.style.hasOwnProperty(a)&&(n.style[a]=this.style[a]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&n.setAttribute(r,this.attributes[r]);for(var o=0;o",n};let qh=class{constructor(e,n,a,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,aX.call(this,e,a,r),this.children=n||[]}setAttribute(e,n){this.attributes[e]=n}hasClass(e){return d2.contains(this.classes,e)}toNode(){return rX.call(this,"span")}toMarkup(){return iX.call(this,"span")}};class GS{constructor(e,n,a,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,aX.call(this,n,r),this.children=a||[],this.setAttribute("href",e)}setAttribute(e,n){this.attributes[e]=n}hasClass(e){return d2.contains(this.classes,e)}toNode(){return rX.call(this,"a")}toMarkup(){return iX.call(this,"a")}}class nV1{constructor(e,n,a){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=n,this.src=e,this.classes=["mord"],this.style=a}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 n in this.style)this.style.hasOwnProperty(n)&&(e.style[n]=this.style[n]);return e}toMarkup(){var e=""+this.alt+"0&&(n=document.createElement("span"),n.style.marginRight=bt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=uo(this.classes));for(var a in this.style)this.style.hasOwnProperty(a)&&(n=n||document.createElement("span"),n.style[a]=this.style[a]);return n?(n.appendChild(e),n):e}toMarkup(){var e=!1,n="0&&(a+="margin-right:"+this.italic+"em;");for(var r in this.style)this.style.hasOwnProperty(r)&&(a+=d2.hyphenate(r)+":"+this.style[r]+";");a&&(e=!0,n+=' style="'+d2.escape(a)+'"');var o=d2.escape(this.text);return e?(n+=">",n+=o,n+="",n):o}}class C5{constructor(e,n){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=n||{}}toNode(){var e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"svg");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&n.setAttribute(a,this.attributes[a]);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",n=document.createElementNS(e,"line");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&n.setAttribute(a,this.attributes[a]);return n}toMarkup(){var e=" but got "+String(t)+".")}var iV1={bin:1,close:1,inner:1,open:1,punct:1,rel:1},oV1={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},W0={math:{},text:{}};function O(t,e,n,a,r,o){W0[t][r]={font:e,group:n,replace:a},o&&a&&(W0[t][a]=W0[t][r])}var N="math",ct="text",K="main",d1="ams",he="accent-token",jt="bin",xn="close",X6="inner",i2="mathord",Ze="op-token",va="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(ct,K,O1,"#","\\#");O(N,K,O1,"&","\\&");O(ct,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(ct,K,O1,"§","\\S");O(N,K,O1,"¶","\\P",!0);O(ct,K,O1,"¶","\\P");O(N,K,O1,"†","\\dag");O(ct,K,O1,"†","\\dag");O(ct,K,O1,"†","\\textdagger");O(N,K,O1,"‡","\\ddag");O(ct,K,O1,"‡","\\ddag");O(ct,K,O1,"‡","\\textdaggerdbl");O(N,K,xn,"⎱","\\rmoustache",!0);O(N,K,va,"⎰","\\lmoustache",!0);O(N,K,xn,"⟯","\\rgroup",!0);O(N,K,va,"⟮","\\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(ct,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(ct,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(ct,d1,O1,"¥","\\yen",!0);O(N,d1,O1,"✓","\\checkmark",!0);O(ct,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,va,"┌","\\@ulcorner",!0);O(N,d1,xn,"┐","\\@urcorner",!0);O(N,d1,va,"└","\\@llcorner",!0);O(N,d1,xn,"┘","\\@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(ct,K,O1,"$","\\$");O(ct,K,O1,"$","\\textdollar");O(N,K,O1,"%","\\%");O(ct,K,O1,"%","\\%");O(N,K,O1,"_","\\_");O(ct,K,O1,"_","\\_");O(ct,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,va,"⟨","\\langle",!0);O(N,K,va,"∣","\\lvert");O(N,K,va,"∥","\\lVert");O(N,K,xn,"?","?");O(N,K,xn,"!","!");O(N,K,xn,"⟩","\\rangle",!0);O(N,K,xn,"∣","\\rvert");O(N,K,xn,"∥","\\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(ct,K,j5," ","\\ ");O(ct,K,j5," "," ");O(ct,K,j5," ","\\space");O(ct,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,va,"{","\\{");O(ct,K,O1,"{","\\{");O(ct,K,O1,"{","\\textbraceleft");O(N,K,xn,"}","\\}");O(ct,K,O1,"}","\\}");O(ct,K,O1,"}","\\textbraceright");O(N,K,va,"{","\\lbrace");O(N,K,xn,"}","\\rbrace");O(N,K,va,"[","\\lbrack",!0);O(ct,K,O1,"[","\\lbrack",!0);O(N,K,xn,"]","\\rbrack",!0);O(ct,K,O1,"]","\\rbrack",!0);O(N,K,va,"(","\\lparen",!0);O(N,K,xn,")","\\rparen",!0);O(ct,K,O1,"<","\\textless",!0);O(ct,K,O1,">","\\textgreater",!0);O(N,K,va,"⌊","\\lfloor",!0);O(N,K,xn,"⌋","\\rfloor",!0);O(N,K,va,"⌈","\\lceil",!0);O(N,K,xn,"⌉","\\rceil",!0);O(N,K,O1,"\\","\\backslash");O(N,K,O1,"∣","|");O(N,K,O1,"∣","\\vert");O(ct,K,O1,"|","\\textbar",!0);O(N,K,O1,"∥","\\|");O(N,K,O1,"∥","\\Vert");O(ct,K,O1,"∥","\\textbardbl");O(ct,K,O1,"~","\\textasciitilde");O(ct,K,O1,"\\","\\textbackslash");O(ct,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,Ze,"∐","\\coprod");O(N,K,Ze,"⋁","\\bigvee");O(N,K,Ze,"⋀","\\bigwedge");O(N,K,Ze,"⨄","\\biguplus");O(N,K,Ze,"⋂","\\bigcap");O(N,K,Ze,"⋃","\\bigcup");O(N,K,Ze,"∫","\\int");O(N,K,Ze,"∫","\\intop");O(N,K,Ze,"∬","\\iint");O(N,K,Ze,"∭","\\iiint");O(N,K,Ze,"∏","\\prod");O(N,K,Ze,"∑","\\sum");O(N,K,Ze,"⨂","\\bigotimes");O(N,K,Ze,"⨁","\\bigoplus");O(N,K,Ze,"⨀","\\bigodot");O(N,K,Ze,"∮","\\oint");O(N,K,Ze,"∯","\\oiint");O(N,K,Ze,"∰","\\oiiint");O(N,K,Ze,"⨆","\\bigsqcup");O(N,K,Ze,"∫","\\smallint");O(ct,K,X6,"…","\\textellipsis");O(N,K,X6,"…","\\mathellipsis");O(ct,K,X6,"…","\\ldots",!0);O(N,K,X6,"…","\\ldots",!0);O(N,K,X6,"⋯","\\@cdots",!0);O(N,K,X6,"⋱","\\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(ct,K,O1,"ı","\\i",!0);O(ct,K,O1,"ȷ","\\j",!0);O(ct,K,O1,"ß","\\ss",!0);O(ct,K,O1,"æ","\\ae",!0);O(ct,K,O1,"œ","\\oe",!0);O(ct,K,O1,"ø","\\o",!0);O(ct,K,O1,"Æ","\\AE",!0);O(ct,K,O1,"Œ","\\OE",!0);O(ct,K,O1,"Ø","\\O",!0);O(ct,K,he,"ˊ","\\'");O(ct,K,he,"ˋ","\\`");O(ct,K,he,"ˆ","\\^");O(ct,K,he,"˜","\\~");O(ct,K,he,"ˉ","\\=");O(ct,K,he,"˘","\\u");O(ct,K,he,"˙","\\.");O(ct,K,he,"¸","\\c");O(ct,K,he,"˚","\\r");O(ct,K,he,"ˇ","\\v");O(ct,K,he,"¨",'\\"');O(ct,K,he,"˝","\\H");O(ct,K,he,"◯","\\textcircled");var oX={"--":!0,"---":!0,"``":!0,"''":!0};O(ct,K,O1,"–","--",!0);O(ct,K,O1,"–","\\textendash");O(ct,K,O1,"—","---",!0);O(ct,K,O1,"—","\\textemdash");O(ct,K,O1,"‘","`",!0);O(ct,K,O1,"‘","\\textquoteleft");O(ct,K,O1,"’","'",!0);O(ct,K,O1,"’","\\textquoteright");O(ct,K,O1,"“","``",!0);O(ct,K,O1,"“","\\textquotedblleft");O(ct,K,O1,"”","''",!0);O(ct,K,O1,"”","\\textquotedblright");O(N,K,O1,"°","\\degree",!0);O(ct,K,O1,"°","\\degree");O(ct,K,O1,"°","\\textdegree",!0);O(N,K,O1,"£","\\pounds");O(N,K,O1,"£","\\mathsterling",!0);O(ct,K,O1,"£","\\pounds");O(ct,K,O1,"£","\\textsterling",!0);O(N,d1,O1,"✠","\\maltese");O(ct,d1,O1,"✠","\\maltese");var ER='0123456789/@."';for(var jx=0;jx0)return wr(o,s,r,n,c.concat(u));if(h){var v,f;if(h==="boldsymbol"){var d=sV1(o,r,n,c,a);v=d.fontName,f=[d.fontClass]}else l?(v=sX[h].fontName,f=[h]):(v=bd(h,n.fontWeight,n.fontShape),f=[h,n.fontWeight,n.fontShape]);if($z(o,v,r).metrics)return wr(o,v,r,n,c.concat(f));if(oX.hasOwnProperty(o)&&v.slice(0,10)==="Typewriter"){for(var z=[],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 n=t.classes[0];if(n==="mbin"||n==="mord")return!1}for(var a in t.style)if(t.style.hasOwnProperty(a)&&t.style[a]!==e.style[a])return!1;for(var r in e.style)if(e.style.hasOwnProperty(r)&&t.style[r]!==e.style[r])return!1;return!0},vV1=t=>{for(var e=0;en&&(n=c.height),c.depth>a&&(a=c.depth),c.maxFontSize>r&&(r=c.maxFontSize)}e.height=n,e.depth=a,e.maxFontSize=r},On=function(e,n,a,r){var o=new qh(e,n,a,r);return KS(o),o},cX=(t,e,n,a)=>new qh(t,e,n,a),dV1=function(e,n,a){var r=On([e],[],n);return r.height=Math.max(a||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),r.style.borderBottomWidth=bt(r.height),r.maxFontSize=1,r},fV1=function(e,n,a,r){var o=new GS(e,n,a,r);return KS(o),o},lX=function(e){var n=new Wh(e);return KS(n),n},gV1=function(e,n){return e instanceof Wh?On([],[e],n):e},pV1=function(e){if(e.positionType==="individualShift"){for(var n=e.children,a=[n[0]],r=-n[0].shift-n[0].elem.depth,o=r,c=1;c{var n=On(["mspace"],[],e),a=me(t,e);return n.style.marginRight=bt(a),n},bd=function(e,n,a){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 n==="textbf"&&a==="textit"?o="BoldItalic":n==="textbf"?o="Bold":n==="textit"?o="Italic":o="Regular",r+"-"+o},sX={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"}},hX={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},MV1=function(e,n){var[a,r,o]=hX[e],c=new vo(a),l=new C5([c],{width:bt(r),height:bt(o),style:"width:"+bt(r),viewBox:"0 0 "+1e3*r+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),h=cX(["overlay"],[l],n);return h.height=o,h.style.height=bt(o),h.style.width=bt(r),h},$1={fontMap:sX,makeSymbol:wr,mathsym:lV1,makeSpan:On,makeSvgSpan:cX,makeLineSpan:dV1,makeAnchor:fV1,makeFragment:lX,wrapFragment:gV1,makeVList:mV1,makeOrd:hV1,makeGlue:zV1,staticSvg:MV1,svgData:hX,tryCombineChars:vV1},ge={number:3,unit:"mu"},e8={number:4,unit:"mu"},Zi={number:5,unit:"mu"},HV1={mord:{mop:ge,mbin:e8,mrel:Zi,minner:ge},mop:{mord:ge,mop:ge,mrel:Zi,minner:ge},mbin:{mord:e8,mop:e8,mopen:e8,minner:e8},mrel:{mord:Zi,mop:Zi,mopen:Zi,minner:Zi},mopen:{},mclose:{mop:ge,mbin:e8,mrel:Zi,minner:ge},mpunct:{mord:ge,mop:ge,mrel:Zi,mopen:ge,mclose:ge,mpunct:ge,minner:ge},minner:{mord:ge,mop:ge,mbin:e8,mrel:Zi,mopen:ge,mpunct:ge,minner:ge}},wV1={mord:{mop:ge},mop:{mord:ge,mop:ge},mbin:{},mrel:{},mopen:{},mclose:{mop:ge},mpunct:{},minner:{mop:ge}},uX={},Jg={},tp={};function Nt(t){for(var{type:e,names:n,props:a,handler:r,htmlBuilder:o,mathmlBuilder:c}=t,l={type:e,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:r},h=0;h{var H=g.classes[0],p=z.classes[0];H==="mbin"&&d2.contains(xV1,p)?g.classes[0]="mord":p==="mbin"&&d2.contains(yV1,H)&&(z.classes[0]="mord")},{node:v},f,d),jR(o,(z,g)=>{var H=rL(g),p=rL(z),m=H&&p?z.hasClass("mtight")?wV1[H][p]:HV1[H][p]:null;if(m)return $1.makeGlue(m,s)},{node:v},f,d),o},jR=function t(e,n,a,r,o){r&&e.push(r);for(var c=0;cf=>{e.splice(v+1,0,f),c++})(c)}r&&e.pop()},vX=function(e){return e instanceof Wh||e instanceof GS||e instanceof qh&&e.hasClass("enclosing")?e:null},bV1=function t(e,n){var a=vX(e);if(a){var r=a.children;if(r.length){if(n==="right")return t(r[r.length-1],"right");if(n==="left")return t(r[0],"left")}}return e},rL=function(e,n){return e?(n&&(e=bV1(e,n)),CV1[e.classes[0]]||null):null},Ws=function(e,n){var a=["nulldelimiter"].concat(e.baseSizingClasses());return b5(n.concat(a))},e0=function(e,n,a){if(!e)return b5();if(Jg[e.type]){var r=Jg[e.type](e,n);if(a&&n.size!==a.size){r=b5(n.sizingClasses(a),[r],n);var o=n.sizeMultiplier/a.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 n=b5(["base"],t,e),a=b5(["strut"]);return a.style.height=bt(n.height+n.depth),n.depth&&(a.style.verticalAlign=bt(-n.depth)),n.children.unshift(a),n}function iL(t,e){var n=null;t.length===1&&t[0].type==="tag"&&(n=t[0].tag,t=t[0].body);var a=c4(t,e,"root"),r;a.length===2&&a[1].hasClass("tag")&&(r=a.pop());for(var o=[],c=[],l=0;l0&&(o.push(Ld(c,e)),c=[]),o.push(a[l]));c.length>0&&o.push(Ld(c,e));var s;n?(s=Ld(c4(n,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 dX(t){return new Wh(t)}class Ea{constructor(e,n,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=n||[],this.classes=a||[]}setAttribute(e,n){this.attributes[e]=n}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&e.setAttribute(n,this.attributes[n]);this.classes.length>0&&(e.className=uo(this.classes));for(var a=0;a0&&(e+=' class ="'+d2.escape(uo(this.classes))+'"'),e+=">";for(var a=0;a",e}toText(){return this.children.map(e=>e.toText()).join("")}}class as{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 LV1{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:Ea,TextNode:as,SpaceNode:LV1,newDocumentFragment:dX},Ya=function(e,n,a){return W0[n][e]&&W0[n][e].replace&&e.charCodeAt(0)!==55349&&!(oX.hasOwnProperty(e)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(e=W0[n][e].replace),new dt.TextNode(e)},YS=function(e){return e.length===1?e[0]:new dt.MathNode("mrow",e)},ZS=function(e,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var a=n.font;if(!a||a==="mathnormal")return null;var r=e.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var o=e.text;if(d2.contains(["\\imath","\\jmath"],o))return null;W0[r][o]&&W0[r][o].replace&&(o=W0[r][o].replace);var c=$1.fontMap[a].fontName;return qS(o,c,r)?$1.fontMap[a].variant:null},qn=function(e,n,a){if(e.length===1){var r=D0(e[0],n);return a&&r instanceof Ea&&r.type==="mo"&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var o=[],c,l=0;l0&&(v.text=v.text.slice(0,1)+"̸"+v.text.slice(1),o.pop())}}}o.push(h),c=h}return o},fo=function(e,n,a){return YS(qn(e,n,a))},D0=function(e,n){if(!e)return new dt.MathNode("mrow");if(tp[e.type]){var a=tp[e.type](e,n);return a}else throw new zt("Got group of unknown type: '"+e.type+"'")};function IR(t,e,n,a,r){var o=qn(t,n),c;o.length===1&&o[0]instanceof Ea&&d2.contains(["mrow","mtable"],o[0].type)?c=o[0]:c=new dt.MathNode("mrow",o);var l=new dt.MathNode("annotation",[new dt.TextNode(e)]);l.setAttribute("encoding","application/x-tex");var h=new dt.MathNode("semantics",[c,l]),s=new dt.MathNode("math",[h]);s.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&s.setAttribute("display","block");var u=r?"katex":"katex-mathml";return $1.makeSpan([u],[s])}var fX=function(e){return new i5({style:e.displayMode?o2.DISPLAY:o2.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},gX=function(e,n){if(n.displayMode){var a=["katex-display"];n.leqno&&a.push("leqno"),n.fleqn&&a.push("fleqn"),e=$1.makeSpan(a,[e])}return e},BV1=function(e,n,a){var r=fX(a),o;if(a.output==="mathml")return IR(e,n,r,a.displayMode,!0);if(a.output==="html"){var c=iL(e,r);o=$1.makeSpan(["katex"],[c])}else{var l=IR(e,n,r,a.displayMode,!1),h=iL(e,r);o=$1.makeSpan(["katex"],[l,h])}return gX(o,a)},_V1=function(e,n,a){var r=fX(a),o=iL(e,r),c=$1.makeSpan(["katex"],[o]);return gX(c,a)},SV1={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":"="},TV1=function(e){var n=new dt.MathNode("mo",[new dt.TextNode(SV1[e.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},OV1={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]},AV1=function(e){return e.type==="ordgroup"?e.body.length:1},kV1=function(e,n){function a(){var l=4e5,h=e.label.slice(1);if(d2.contains(["widehat","widecheck","widetilde","utilde"],h)){var s=e,u=AV1(s.base),v,f,d;if(u>5)h==="widehat"||h==="widecheck"?(v=420,l=2364,d=.42,f=h+"4"):(v=312,l=2340,d=.34,f="tilde4");else{var z=[1,1,2,2,3,3][u];h==="widehat"||h==="widecheck"?(l=[0,1062,2364,2364,2364][z],v=[0,239,300,360,420][z],d=[0,.24,.3,.3,.36,.42][z],f=h+z):(l=[0,600,1033,2339,2340][z],v=[0,260,286,306,312][z],d=[0,.26,.286,.3,.306,.34][z],f="tilde"+z)}var g=new vo(f),H=new C5([g],{width:"100%",height:bt(d),viewBox:"0 0 "+l+" "+v,preserveAspectRatio:"none"});return{span:$1.makeSvgSpan([],[H],n),minWidth:0,height:d}}else{var p=[],m=OV1[h],[M,w,x]=m,y=x/1e3,V=M.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},EV1=function(e,n,a,r,o){var c,l=e.height+e.depth+a+r;if(/fbox|color|angl/.test(n)){if(c=$1.makeSpan(["stretchy",n],[],o),n==="fbox"){var h=o.color&&o.getColor();h&&(c.style.borderColor=h)}}else{var s=[];/^[bx]cancel$/.test(n)&&s.push(new nL({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&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(l)});c=$1.makeSvgSpan([],[u],o)}return c.height=l,c.style.height=bt(l),c},L5={encloseSpan:EV1,mathMLnode:TV1,svgSpan:kV1};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 QS(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"||oV1.hasOwnProperty(t.type))?t:null}var XS=(t,e)=>{var n,a,r;t&&t.type==="supsub"?(a=L2(t.base,"accent"),n=a.base,t.base=n,r=rV1(e0(t,e)),t.base=a):(a=L2(t,"accent"),n=a.base);var o=e0(n,e.havingCrampedStyle()),c=a.isShifty&&d2.isCharacterBox(n),l=0;if(c){var h=d2.getBaseElem(n),s=e0(h,e.havingCrampedStyle());l=kR(s).skew}var u=a.label==="\\c",v=u?o.height+o.depth:Math.min(o.height,e.fontMetrics().xHeight),f;if(a.isStretchy)f=L5.svgSpan(a,e),f=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+bt(2*l)+")",marginLeft:bt(2*l)}:void 0}]},e);else{var d,z;a.label==="\\vec"?(d=$1.staticSvg("vec",e),z=$1.svgData.vec[1]):(d=$1.makeOrd({mode:a.mode,text:a.label},e,"textord"),d=kR(d),d.italic=0,z=d.width,u&&(v+=d.depth)),f=$1.makeSpan(["accent-body"],[d]);var g=a.label==="\\textcircled";g&&(f.classes.push("accent-full"),v=o.height);var H=l;g||(H-=z/2),f.style.left=bt(H),a.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},pX=(t,e)=>{var n=t.isStretchy?L5.mathMLnode(t.label):new dt.MathNode("mo",[Ya(t.label,t.mode)]),a=new dt.MathNode("mover",[D0(t.base,e),n]);return a.setAttribute("accent","true"),a},PV1=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 n=ep(e[0]),a=!PV1.test(t.funcName),r=!a||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:a,isShifty:r,base:n}},htmlBuilder:XS,mathmlBuilder:pX});Nt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var n=e[0],a=t.parser.mode;return a==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:t.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:XS,mathmlBuilder:pX});Nt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:n,funcName:a}=t,r=e[0];return{type:"accentUnder",mode:n.mode,label:a,base:r}},htmlBuilder:(t,e)=>{var n=e0(t.base,e),a=L5.svgSpan(t,e),r=t.label==="\\utilde"?.12:0,o=$1.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:r},{type:"elem",elem:n}]},e);return $1.makeSpan(["mord","accentunder"],[o],e)},mathmlBuilder:(t,e)=>{var n=L5.mathMLnode(t.label),a=new dt.MathNode("munder",[D0(t.base,e),n]);return a.setAttribute("accentunder","true"),a}});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,n){var{parser:a,funcName:r}=t;return{type:"xArrow",mode:a.mode,label:r,body:e[0],below:n[0]}},htmlBuilder(t,e){var n=e.style,a=e.havingStyle(n.sup()),r=$1.wrapFragment(e0(t.body,a,e),e),o=t.label.slice(0,2)==="\\x"?"x":"cd";r.classes.push(o+"-arrow-pad");var c;t.below&&(a=e.havingStyle(n.sub()),c=$1.wrapFragment(e0(t.below,a,e),e),c.classes.push(o+"-arrow-pad"));var l=L5.svgSpan(t,e),h=-e.fontMetrics().axisHeight+.5*l.height,s=-e.fontMetrics().axisHeight-.5*l.height-.111;(r.depth>.25||t.label==="\\xleftequilibrium")&&(s-=r.depth);var u;if(c){var v=-e.fontMetrics().axisHeight+c.height+.5*l.height+.111;u=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:s},{type:"elem",elem:l,shift:h},{type:"elem",elem:c,shift:v}]},e)}else u=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:s},{type:"elem",elem:l,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 n=L5.mathMLnode(t.label);n.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(t.body){var r=Bd(D0(t.body,e));if(t.below){var o=Bd(D0(t.below,e));a=new dt.MathNode("munderover",[n,o,r])}else a=new dt.MathNode("mover",[n,r])}else if(t.below){var c=Bd(D0(t.below,e));a=new dt.MathNode("munder",[n,c])}else a=Bd(),a=new dt.MathNode("mover",[n,a]);return a}});var NV1=$1.makeSpan;function mX(t,e){var n=c4(t.body,e,!0);return NV1([t.mclass],n,e)}function zX(t,e){var n,a=qn(t.body,e);return t.mclass==="minner"?n=new dt.MathNode("mpadded",a):t.mclass==="mord"?t.isCharacterBox?(n=a[0],n.type="mi"):n=new dt.MathNode("mi",a):(t.isCharacterBox?(n=a[0],n.type="mo"):n=new dt.MathNode("mo",a),t.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):t.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):t.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Nt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:n,funcName:a}=t,r=e[0];return{type:"mclass",mode:n.mode,mclass:"m"+a.slice(5),body:Ae(r),isCharacterBox:d2.isCharacterBox(r)}},htmlBuilder:mX,mathmlBuilder:zX});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:n}=t;return{type:"mclass",mode:n.mode,mclass:Wz(e[0]),body:Ae(e[1]),isCharacterBox:d2.isCharacterBox(e[1])}}});Nt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:n,funcName:a}=t,r=e[1],o=e[0],c;a!=="\\stackrel"?c=Wz(r):c="mrel";var l={type:"op",mode:r.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:Ae(r)},h={type:"supsub",mode:o.mode,base:l,sup:a==="\\underset"?null:o,sub:a==="\\underset"?o:null};return{type:"mclass",mode:n.mode,mclass:c,body:[h],isCharacterBox:d2.isCharacterBox(h)}},htmlBuilder:mX,mathmlBuilder:zX});Nt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"pmb",mode:n.mode,mclass:Wz(e[0]),body:Ae(e[0])}},htmlBuilder(t,e){var n=c4(t.body,e,!0),a=$1.makeSpan([t.mclass],n,e);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(t,e){var n=qn(t.body,e),a=new dt.MathNode("mstyle",n);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var DV1={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},FR=()=>({type:"styling",body:[],mode:"math",style:"display"}),$R=t=>t.type==="textord"&&t.text==="@",RV1=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function jV1(t,e,n){var a=DV1[t];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(a,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var r=n.callFunction("\\\\cdleft",[e[0]],[]),o={type:"atom",text:a,mode:"math",family:"rel"},c=n.callFunction("\\Big",[o],[]),l=n.callFunction("\\\\cdright",[e[1]],[]),h={type:"ordgroup",mode:"math",body:[r,c,l]};return n.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var s={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[s],[])}default:return{type:"textord",text:" ",mode:"math"}}}function IV1(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 n=t.fetch().text;if(n==="&"||n==="\\\\")t.consume();else if(n==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new zt("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var a=[],r=[a],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 @',c[h]);var z=jV1(s,u,t),g={type:"styling",body:[z],mode:"math",style:"display"};a.push(g),l=FR()}o%2===0?a.push(l):a.shift(),a=[],r.push(a)}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:n,funcName:a}=t;return{type:"cdlabel",mode:n.mode,side:a.slice(4),label:e[0]}},htmlBuilder(t,e){var n=e.havingStyle(e.style.sup()),a=$1.wrapFragment(e0(t.label,n,e),e);return a.classes.push("cd-label-"+t.side),a.style.bottom=bt(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(t,e){var n=new dt.MathNode("mrow",[D0(t.label,e)]);return n=new dt.MathNode("mpadded",[n]),n.setAttribute("width","0"),t.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new dt.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});Nt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:n}=t;return{type:"cdlabelparent",mode:n.mode,fragment:e[0]}},htmlBuilder(t,e){var n=$1.wrapFragment(e0(t.fragment,e),e);return n.classes.push("cd-vert-arrow"),n},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:n}=t,a=L2(e[0],"ordgroup"),r=a.body,o="",c=0;c=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:n.mode,text:s}}});var MX=(t,e)=>{var n=c4(t.body,e.withColor(t.color),!1);return $1.makeFragment(n)},HX=(t,e)=>{var n=qn(t.body,e.withColor(t.color)),a=new dt.MathNode("mstyle",n);return a.setAttribute("mathcolor",t.color),a};Nt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:n}=t,a=L2(e[0],"color-token").color,r=e[1];return{type:"color",mode:n.mode,color:a,body:Ae(r)}},htmlBuilder:MX,mathmlBuilder:HX});Nt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:n,breakOnTokenText:a}=t,r=L2(e[0],"color-token").color;n.gullet.macros.set("\\current@color",r);var o=n.parseExpression(!0,a);return{type:"color",mode:n.mode,color:r,body:o}},htmlBuilder:MX,mathmlBuilder:HX});Nt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,n){var{parser:a}=t,r=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,o=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:o,size:r&&L2(r,"size").value}},htmlBuilder(t,e){var n=$1.makeSpan(["mspace"],[],e);return t.newLine&&(n.classes.push("newline"),t.size&&(n.style.marginTop=bt(me(t.size,e)))),n},mathmlBuilder(t,e){var n=new dt.MathNode("mspace");return t.newLine&&(n.setAttribute("linebreak","newline"),t.size&&n.setAttribute("height",bt(me(t.size,e)))),n}});var oL={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},wX=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new zt("Expected a control sequence",t);return e},FV1=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},yX=(t,e,n,a)=>{var r=t.gullet.macros.get(n.text);r==null&&(n.noexpand=!0,r={tokens:[n],numArgs:0,unexpandable:!t.gullet.isExpandable(n.text)}),t.gullet.macros.set(e,r,a)};Nt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:n}=t;e.consumeSpaces();var a=e.fetch();if(oL[a.text])return(n==="\\global"||n==="\\\\globallong")&&(a.text=oL[a.text]),L2(e.parseFunction(),"internal");throw new zt("Invalid token after macro prefix",a)}});Nt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,a=e.gullet.popToken(),r=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new zt("Expected a control sequence",a);for(var o=0,c,l=[[]];e.gullet.future().text!=="{";)if(a=e.gullet.popToken(),a.text==="#"){if(e.gullet.future().text==="{"){c=e.gullet.future(),l[o].push("{");break}if(a=e.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new zt('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==o+1)throw new zt('Argument number "'+a.text+'" out of order');o++,l.push([])}else{if(a.text==="EOF")throw new zt("Expected a macro definition");l[o].push(a.text)}var{tokens:h}=e.gullet.consumeArg();return c&&h.unshift(c),(n==="\\edef"||n==="\\xdef")&&(h=e.gullet.expandTokens(h),h.reverse()),e.gullet.macros.set(r,{tokens:h,numArgs:o,delimiters:l},n===oL[n]),{type:"internal",mode:e.mode}}});Nt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,a=wX(e.gullet.popToken());e.gullet.consumeSpaces();var r=FV1(e);return yX(e,a,r,n==="\\\\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:n}=t,a=wX(e.gullet.popToken()),r=e.gullet.popToken(),o=e.gullet.popToken();return yX(e,a,o,n==="\\\\globalfuture"),e.gullet.pushToken(o),e.gullet.pushToken(r),{type:"internal",mode:e.mode}}});var b7=function(e,n,a){var r=W0.math[e]&&W0.math[e].replace,o=qS(r||e,n,a);if(!o)throw new Error("Unsupported symbol "+e+" and font size "+n+".");return o},JS=function(e,n,a,r){var o=a.havingBaseStyle(n),c=$1.makeSpan(r.concat(o.sizingClasses(a)),[e],a),l=o.sizeMultiplier/a.sizeMultiplier;return c.height*=l,c.depth*=l,c.maxFontSize=o.sizeMultiplier,c},xX=function(e,n,a){var r=n.havingBaseStyle(a),o=(1-n.sizeMultiplier/r.sizeMultiplier)*n.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=bt(o),e.height-=o,e.depth+=o},$V1=function(e,n,a,r,o,c){var l=$1.makeSymbol(e,"Main-Regular",o,r),h=JS(l,n,r,c);return a&&xX(h,r,n),h},UV1=function(e,n,a,r){return $1.makeSymbol(e,"Size"+n+"-Regular",a,r)},VX=function(e,n,a,r,o,c){var l=UV1(e,n,o,r),h=JS($1.makeSpan(["delimsizing","size"+n],[l],r),o2.TEXT,r,c);return a&&xX(h,r,o2.TEXT),h},Ux=function(e,n,a){var r;n==="Size1-Regular"?r="delim-size1":r="delim-size4";var o=$1.makeSpan(["delimsizinginner",r],[$1.makeSpan([],[$1.makeSymbol(e,n,a)])]);return{type:"elem",elem:o}},Wx=function(e,n,a){var r=fi["Size4-Regular"][e.charCodeAt(0)]?fi["Size4-Regular"][e.charCodeAt(0)][4]:fi["Size1-Regular"][e.charCodeAt(0)][4],o=new vo("inner",Zx1(e,Math.round(1e3*n))),c=new C5([o],{width:bt(r),height:bt(n),style:"width:"+bt(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),l=$1.makeSvgSpan([],[c],a);return l.height=n,l.style.height=bt(n),l.style.width=bt(r),{type:"elem",elem:l}},cL=.008,_d={type:"kern",size:-1*cL},WV1=["|","\\lvert","\\rvert","\\vert"],qV1=["\\|","\\lVert","\\rVert","\\Vert"],CX=function(e,n,a,r,o,c){var l,h,s,u,v="",f=0;l=s=u=e,h=null;var d="Size1-Regular";e==="\\uparrow"?s=u="⏐":e==="\\Uparrow"?s=u="‖":e==="\\downarrow"?l=s="⏐":e==="\\Downarrow"?l=s="‖":e==="\\updownarrow"?(l="\\uparrow",s="⏐",u="\\downarrow"):e==="\\Updownarrow"?(l="\\Uparrow",s="‖",u="\\Downarrow"):d2.contains(WV1,e)?(s="∣",v="vert",f=333):d2.contains(qV1,e)?(s="∥",v="doublevert",f=556):e==="["||e==="\\lbrack"?(l="⎡",s="⎢",u="⎣",d="Size4-Regular",v="lbrack",f=667):e==="]"||e==="\\rbrack"?(l="⎤",s="⎥",u="⎦",d="Size4-Regular",v="rbrack",f=667):e==="\\lfloor"||e==="⌊"?(s=l="⎢",u="⎣",d="Size4-Regular",v="lfloor",f=667):e==="\\lceil"||e==="⌈"?(l="⎡",s=u="⎢",d="Size4-Regular",v="lceil",f=667):e==="\\rfloor"||e==="⌋"?(s=l="⎥",u="⎦",d="Size4-Regular",v="rfloor",f=667):e==="\\rceil"||e==="⌉"?(l="⎤",s=u="⎥",d="Size4-Regular",v="rceil",f=667):e==="("||e==="\\lparen"?(l="⎛",s="⎜",u="⎝",d="Size4-Regular",v="lparen",f=875):e===")"||e==="\\rparen"?(l="⎞",s="⎟",u="⎠",d="Size4-Regular",v="rparen",f=875):e==="\\{"||e==="\\lbrace"?(l="⎧",h="⎨",u="⎩",s="⎪",d="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(l="⎫",h="⎬",u="⎭",s="⎪",d="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(l="⎧",u="⎩",s="⎪",d="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(l="⎫",u="⎭",s="⎪",d="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(l="⎧",u="⎭",s="⎪",d="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(l="⎫",u="⎩",s="⎪",d="Size4-Regular");var z=b7(l,d,o),g=z.height+z.depth,H=b7(s,d,o),p=H.height+H.depth,m=b7(u,d,o),M=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+M+w,C=Math.max(0,Math.ceil((n-V)/(x*p))),L=V+C*x*p,B=r.fontMetrics().axisHeight;a&&(B*=r.sizeMultiplier);var S=L/2-B,T=[];if(v.length>0){var P=L-g-M,F=Math.round(L*1e3),W=Qx1(v,Math.round(P*1e3)),U=new vo(v,W),Z=(f/1e3).toFixed(3)+"em",I=(F/1e3).toFixed(3)+"em",t1=new C5([U],{width:Z,height:I,viewBox:"0 0 "+f+" "+F}),R=$1.makeSvgSpan([],[t1],r);R.height=F/1e3,R.style.width=Z,R.style.height=I,T.push({type:"elem",elem:R})}else{if(T.push(Ux(u,d,o)),T.push(_d),h===null){var i1=L-g-M+2*cL;T.push(Wx(s,i1,r))}else{var J=(L-g-M-w)/2+2*cL;T.push(Wx(s,J,r)),T.push(_d),T.push(Ux(h,d,o)),T.push(_d),T.push(Wx(s,J,r))}T.push(_d),T.push(Ux(l,d,o))}var A=r.havingBaseStyle(o2.TEXT),o1=$1.makeVList({positionType:"bottom",positionData:S,children:T},A);return JS($1.makeSpan(["delimsizing","mult"],[o1],A),o2.TEXT,r,c)},qx=80,Gx=.08,Kx=function(e,n,a,r,o){var c=Yx1(e,r,a),l=new vo(e,c),h=new C5([l],{width:"400em",height:bt(n),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return $1.makeSvgSpan(["hide-tail"],[h],o)},GV1=function(e,n){var a=n.havingBaseSizing(),r=_X("\\surd",e*a.sizeMultiplier,BX,a),o=a.sizeMultiplier,c=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),l,h=0,s=0,u=0,v;return r.type==="small"?(u=1e3+1e3*c+qx,e<1?o=1:e<1.4&&(o=.7),h=(1+c+Gx)/o,s=(1+c)/o,l=Kx("sqrtMain",h,u,c,n),l.style.minWidth="0.853em",v=.833/o):r.type==="large"?(u=(1e3+qx)*rs[r.size],s=(rs[r.size]+c)/o,h=(rs[r.size]+c+Gx)/o,l=Kx("sqrtSize"+r.size,h,u,c,n),l.style.minWidth="1.02em",v=1/o):(h=e+c+Gx,s=e+c,u=Math.floor(1e3*e+c)+qx,l=Kx("sqrtTall",h,u,c,n),l.style.minWidth="0.742em",v=1.056),l.height=s,l.style.height=bt(h),{span:l,advanceWidth:v,ruleWidth:(n.fontMetrics().sqrtRuleThickness+c)*o}},bX=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],KV1=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],LX=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],rs=[0,1.2,1.8,2.4,3],YV1=function(e,n,a,r,o){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),d2.contains(bX,e)||d2.contains(LX,e))return VX(e,n,!1,a,r,o);if(d2.contains(KV1,e))return CX(e,rs[n],!1,a,r,o);throw new zt("Illegal delimiter: '"+e+"'")},ZV1=[{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}],QV1=[{type:"small",style:o2.SCRIPTSCRIPT},{type:"small",style:o2.SCRIPT},{type:"small",style:o2.TEXT},{type:"stack"}],BX=[{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"}],XV1=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.")},_X=function(e,n,a,r){for(var o=Math.min(2,3-r.style.size),c=o;cn)return a[c]}return a[a.length-1]},SX=function(e,n,a,r,o,c){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var l;d2.contains(LX,e)?l=ZV1:d2.contains(bX,e)?l=BX:l=QV1;var h=_X(e,n,l,r);return h.type==="small"?$V1(e,h.style,a,r,o,c):h.type==="large"?VX(e,h.size,a,r,o,c):CX(e,n,a,r,o,c)},JV1=function(e,n,a,r,o,c){var l=r.fontMetrics().axisHeight*r.sizeMultiplier,h=901,s=5/r.fontMetrics().ptPerEm,u=Math.max(n-l,a+l),v=Math.max(u/500*h,2*u-s);return SX(e,v,!0,r,o,c)},f5={sqrtImage:GV1,sizedDelim:YV1,sizeToMaxHeight:rs,customSizedDelim:SX,leftRightDelim:JV1},UR={"\\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}},tC1=["(","\\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 n=Uz(t);if(n&&d2.contains(tC1,n.text))return n;throw n?new zt("Invalid delimiter '"+n.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 n=qz(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:UR[t.funcName].size,mclass:UR[t.funcName].mclass,delim:n.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(Ya(t.delim,t.mode));var n=new dt.MathNode("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var a=bt(f5.sizeToMaxHeight[t.size]);return n.setAttribute("minsize",a),n.setAttribute("maxsize",a),n}});function WR(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 n=t.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="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:n}}});Nt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=qz(e[0],t),a=t.parser;++a.leftrightDepth;var r=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var o=L2(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:r,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:(t,e)=>{WR(t);for(var n=c4(t.body,e,!0,["mopen","mclose"]),a=0,r=0,o=!1,c=0;c{WR(t);var n=qn(t.body,e);if(t.left!=="."){var a=new dt.MathNode("mo",[Ya(t.left,t.mode)]);a.setAttribute("fence","true"),n.unshift(a)}if(t.right!=="."){var r=new dt.MathNode("mo",[Ya(t.right,t.mode)]);r.setAttribute("fence","true"),t.rightColor&&r.setAttribute("mathcolor",t.rightColor),n.push(r)}return YS(n)}});Nt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=qz(e[0],t);if(!t.parser.leftrightDepth)throw new zt("\\middle without preceding \\left",n);return{type:"middle",mode:t.parser.mode,delim:n.text}},htmlBuilder:(t,e)=>{var n;if(t.delim===".")n=Ws(e,[]);else{n=f5.sizedDelim(t.delim,1,e,t.mode,[]);var a={delim:t.delim,options:e};n.isMiddle=a}return n},mathmlBuilder:(t,e)=>{var n=t.delim==="\\vert"||t.delim==="|"?Ya("|","text"):Ya(t.delim,t.mode),a=new dt.MathNode("mo",[n]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var tT=(t,e)=>{var n=$1.wrapFragment(e0(t.body,e),e),a=t.label.slice(1),r=e.sizeMultiplier,o,c=0,l=d2.isCharacterBox(t.body);if(a==="sout")o=$1.makeSpan(["stretchy","sout"]),o.height=e.fontMetrics().defaultRuleThickness/r,c=-.5*e.fontMetrics().xHeight;else if(a==="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=n.height+n.depth+h+s;n.style.paddingLeft=bt(v/2+h);var f=Math.floor(1e3*v*r),d=Gx1(f),z=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"],[z],e),o.style.height=bt(v),c=n.depth+h+s}else{/cancel/.test(a)?l||n.classes.push("cancel-pad"):a==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var g=0,H=0,p=0;/box/.test(a)?(p=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),g=e.fontMetrics().fboxsep+(a==="colorbox"?0:p),H=g):a==="angl"?(p=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),g=4*p,H=Math.max(0,.25-n.depth)):(g=l?.2:0,H=g),o=L5.encloseSpan(n,a,g,H,e),/fbox|boxed|fcolorbox/.test(a)?(o.style.borderStyle="solid",o.style.borderWidth=bt(p)):a==="angl"&&p!==.049&&(o.style.borderTopWidth=bt(p),o.style.borderRightWidth=bt(p)),c=n.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:c},{type:"elem",elem:n,shift:0}]},e);else{var M=/cancel|phase/.test(a)?["svg-align"]:[];m=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:o,shift:c,wrapperClasses:M}]},e)}return/cancel/.test(a)&&(m.height=n.height,m.depth=n.depth),/cancel/.test(a)&&!l?$1.makeSpan(["mord","cancel-lap"],[m],e):$1.makeSpan(["mord"],[m],e)},eT=(t,e)=>{var n=0,a=new dt.MathNode(t.label.indexOf("colorbox")>-1?"mpadded":"menclose",[D0(t.body,e)]);switch(t.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*n+"pt"),a.setAttribute("height","+"+2*n+"pt"),a.setAttribute("lspace",n+"pt"),a.setAttribute("voffset",n+"pt"),t.label==="\\fcolorbox"){var r=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);a.setAttribute("style","border: "+r+"em solid "+String(t.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&a.setAttribute("mathbackground",t.backgroundColor),a};Nt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,n){var{parser:a,funcName:r}=t,o=L2(e[0],"color-token").color,c=e[1];return{type:"enclose",mode:a.mode,label:r,backgroundColor:o,body:c}},htmlBuilder:tT,mathmlBuilder:eT});Nt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,n){var{parser:a,funcName:r}=t,o=L2(e[0],"color-token").color,c=L2(e[1],"color-token").color,l=e[2];return{type:"enclose",mode:a.mode,label:r,backgroundColor:c,borderColor:o,body:l}},htmlBuilder:tT,mathmlBuilder:eT});Nt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"enclose",mode:n.mode,label:"\\fbox",body:e[0]}}});Nt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:a}=t,r=e[0];return{type:"enclose",mode:n.mode,label:a,body:r}},htmlBuilder:tT,mathmlBuilder:eT});Nt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:n}=t;return{type:"enclose",mode:n.mode,label:"\\angl",body:e[0]}}});var TX={};function Li(t){for(var{type:e,names:n,props:a,handler:r,htmlBuilder:o,mathmlBuilder:c}=t,l={type:e,numArgs:a.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 nT(t){if(t.indexOf("ed")===-1)return t.indexOf("*")===-1}function Oo(t,e,n){var{hskipBeforeAndAfter:a,addJot:r,cols:o,arraystretch:c,colSeparationType:l,autoTag:h,singleRow:s,emptySingleRow:u,maxNumCols:v,leqno:f}=e;if(t.gullet.beginGroup(),s||t.gullet.macros.set("\\cr","\\\\\\relax"),!c){var d=t.gullet.expandMacroAsText("\\arraystretch");if(d==null)c=1;else if(c=parseFloat(d),!c||c<0)throw new zt("Invalid \\arraystretch: "+d)}t.gullet.beginGroup();var z=[],g=[z],H=[],p=[],m=h!=null?[]:void 0;function M(){h&&t.gullet.macros.set("\\@eqnsw","1",!0)}function w(){m&&(t.gullet.macros.get("\\df@tag")?(m.push(t.subparse([new Hi("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):m.push(!!h&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(M(),p.push(qR(t));;){var x=t.parseExpression(!1,s?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),x={type:"ordgroup",mode:t.mode,body:x},n&&(x={type:"styling",mode:t.mode,style:n,body:[x]}),z.push(x);var y=t.fetch().text;if(y==="&"){if(v&&z.length===v){if(s||l)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(),z.length===1&&x.type==="styling"&&x.body[0].body.length===0&&(g.length>1||!u)&&g.pop(),p.length0&&(M+=.25),s.push({pos:M,isDashed:rt[tt]})}for(w(c[0]),a=0;a0&&(S+=m,Vrt))for(a=0;a=l)){var M1=void 0;(r>0||e.hskipBeforeAndAfter)&&(M1=d2.deflt(J.pregap,f),M1!==0&&(W=$1.makeSpan(["arraycolsep"],[]),W.style.width=bt(M1),F.push(W)));var s1=[];for(a=0;a0){for(var I1=$1.makeLineSpan("hline",n,u),U1=$1.makeLineSpan("hdashline",n,u),P1=[{type:"elem",elem:h,shift:0}];s.length>0;){var G1=s.pop(),at=G1.pos-T;G1.isDashed?P1.push({type:"elem",elem:U1,shift:at}):P1.push({type:"elem",elem:I1,shift:at})}h=$1.makeVList({positionType:"individualShift",children:P1},n)}if(Z.length===0)return $1.makeSpan(["mord"],[h],n);var X1=$1.makeVList({positionType:"individualShift",children:Z},n);return X1=$1.makeSpan(["tag"],[X1],n),$1.makeFragment([h,X1])},eC1={c:"center ",l:"left ",r:"right "},_i=function(e,n){for(var a=[],r=new dt.MathNode("mtd",[],["mtr-glue"]),o=new dt.MathNode("mtd",[],["mml-eqn-num"]),c=0;c0){var z=e.cols,g="",H=!1,p=0,m=z.length;z[0].type==="separator"&&(f+="top ",p=1),z[z.length-1].type==="separator"&&(f+="bottom ",m-=1);for(var M=p;M0?"left ":"",f+=C[C.length-1].length>0?"right ":"";for(var L=1;L-1?"alignat":"align",o=e.envName==="split",c=Oo(e.parser,{cols:a,addJot:!0,autoTag:o?void 0:nT(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),l,h=0,s={type:"ordgroup",mode:e.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var u="",v=0;v0&&d&&(H=1),a[z]={type:"align",align:g,pregap:H,postgap:0}}return c.colSeparationType=d?"align":"alignat",c};Li({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var n=Uz(e[0]),a=n?[e[0]]:L2(e[0],"ordgroup").body,r=a.map(function(c){var l=QS(c),h=l.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,c)}),o={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return Oo(t.parser,o,aT(t.envName))},htmlBuilder:Bi,mathmlBuilder:_i});Li({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("*","")],n="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(t.envName.charAt(t.envName.length-1)==="*"){var r=t.parser;if(r.consumeSpaces(),r.fetch().text==="["){if(r.consume(),r.consumeSpaces(),n=r.fetch().text,"lcr".indexOf(n)===-1)throw new zt("Expected l or c or r",r.nextToken);r.consume(),r.consumeSpaces(),r.expect("]"),r.consume(),a.cols=[{type:"align",align:n}]}}var o=Oo(t.parser,a,aT(t.envName)),c=Math.max(0,...o.body.map(l=>l.length));return o.cols=new Array(c).fill({type:"align",align:n}),e?{type:"leftright",mode:t.mode,body:[o],left:e[0],right:e[1],rightColor:void 0}:o},htmlBuilder:Bi,mathmlBuilder:_i});Li({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},n=Oo(t.parser,e,"script");return n.colSeparationType="small",n},htmlBuilder:Bi,mathmlBuilder:_i});Li({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var n=Uz(e[0]),a=n?[e[0]]:L2(e[0],"ordgroup").body,r=a.map(function(c){var l=QS(c),h=l.text;if("lc".indexOf(h)!==-1)return{type:"align",align:h};throw new zt("Unknown column alignment: "+h,c)});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:Bi,mathmlBuilder:_i});Li({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}]},n=Oo(t.parser,e,aT(t.envName));return{type:"leftright",mode:t.mode,body:[n],left:t.envName.indexOf("r")>-1?".":"\\{",right:t.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Bi,mathmlBuilder:_i});Li({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:AX,htmlBuilder:Bi,mathmlBuilder:_i});Li({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:nT(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return Oo(t.parser,e,"display")},htmlBuilder:Bi,mathmlBuilder:_i});Li({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:AX,htmlBuilder:Bi,mathmlBuilder:_i});Li({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){Gz(t);var e={autoTag:nT(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return Oo(t.parser,e,"display")},htmlBuilder:Bi,mathmlBuilder:_i});Li({type:"array",names:["CD"],props:{numArgs:0},handler(t){return Gz(t),IV1(t.parser)},htmlBuilder:Bi,mathmlBuilder:_i});a1("\\nonumber","\\gdef\\@eqnsw{0}");a1("\\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 GR=TX;Nt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:n,funcName:a}=t,r=e[0];if(r.type!=="ordgroup")throw new zt("Invalid environment name",r);for(var o="",c=0;c{var n=t.font,a=e.withFont(n);return e0(t.body,a)},EX=(t,e)=>{var n=t.font,a=e.withFont(n);return D0(t.body,a)},KR={"\\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:n,funcName:a}=t,r=ep(e[0]),o=a;return o in KR&&(o=KR[o]),{type:"font",mode:n.mode,font:o.slice(1),body:r}},htmlBuilder:kX,mathmlBuilder:EX});Nt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:n}=t,a=e[0],r=d2.isCharacterBox(a);return{type:"mclass",mode:n.mode,mclass:Wz(a),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:a}],isCharacterBox:r}}});Nt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:a,breakOnTokenText:r}=t,{mode:o}=n,c=n.parseExpression(!0,r),l="math"+a.slice(1);return{type:"font",mode:o,font:l,body:{type:"ordgroup",mode:n.mode,body:c}}},htmlBuilder:kX,mathmlBuilder:EX});var PX=(t,e)=>{var n=e;return t==="display"?n=n.id>=o2.SCRIPT.id?n.text():o2.DISPLAY:t==="text"&&n.size===o2.DISPLAY.size?n=o2.TEXT:t==="script"?n=o2.SCRIPT:t==="scriptscript"&&(n=o2.SCRIPTSCRIPT),n},rT=(t,e)=>{var n=PX(t.size,e.style),a=n.fracNum(),r=n.fracDen(),o;o=e.havingStyle(a);var c=e0(t.numer,o,e);if(t.continued){var l=8.5/e.fontMetrics().ptPerEm,h=3.5/e.fontMetrics().ptPerEm;c.height=c.height0?z=3*f:z=7*f,g=e.fontMetrics().denom1):(v>0?(d=e.fontMetrics().num2,z=f):(d=e.fontMetrics().num3,z=3*f),g=e.fontMetrics().denom2);var H;if(u){var m=e.fontMetrics().axisHeight;d-c.depth-(m+.5*v){var n=new dt.MathNode("mfrac",[D0(t.numer,e),D0(t.denom,e)]);if(!t.hasBarLine)n.setAttribute("linethickness","0px");else if(t.barSize){var a=me(t.barSize,e);n.setAttribute("linethickness",bt(a))}var r=PX(t.size,e.style);if(r.size!==e.style.size){n=new dt.MathNode("mstyle",[n]);var o=r.size===o2.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",o),n.setAttribute("scriptlevel","0")}if(t.leftDelim!=null||t.rightDelim!=null){var c=[];if(t.leftDelim!=null){var l=new dt.MathNode("mo",[new dt.TextNode(t.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),c.push(l)}if(c.push(n),t.rightDelim!=null){var h=new dt.MathNode("mo",[new dt.TextNode(t.rightDelim.replace("\\",""))]);h.setAttribute("fence","true"),c.push(h)}return YS(c)}return n};Nt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:n,funcName:a}=t,r=e[0],o=e[1],c,l=null,h=null,s="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":c=!0;break;case"\\\\atopfrac":c=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":c=!1,l="(",h=")";break;case"\\\\bracefrac":c=!1,l="\\{",h="\\}";break;case"\\\\brackfrac":c=!1,l="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":s="display";break;case"\\tfrac":case"\\tbinom":s="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:r,denom:o,hasBarLine:c,leftDelim:l,rightDelim:h,size:s,barSize:null}},htmlBuilder:rT,mathmlBuilder:iT});Nt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(t,e)=>{var{parser:n,funcName:a}=t,r=e[0],o=e[1];return{type:"genfrac",mode:n.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:n,token:a}=t,r;switch(n){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:a}}});var YR=["display","text","script","scriptscript"],ZR=function(e){var n=null;return e.length>0&&(n=e,n=n==="."?null:n),n};Nt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:n}=t,a=e[4],r=e[5],o=ep(e[0]),c=o.type==="atom"&&o.family==="open"?ZR(o.text):null,l=ep(e[1]),h=l.type==="atom"&&l.family==="close"?ZR(l.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 z=L2(d.body[0],"textord");f=YR[Number(z.text)]}}else d=L2(d,"textord"),f=YR[Number(d.text)];return{type:"genfrac",mode:n.mode,numer:a,denom:r,continued:!1,hasBarLine:u,barSize:v,leftDelim:c,rightDelim:h,size:f}},htmlBuilder:rT,mathmlBuilder:iT});Nt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:n,funcName:a,token:r}=t;return{type:"infix",mode:n.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:n,funcName:a}=t,r=e[0],o=Ox1(L2(e[1],"infix").size),c=e[2],l=o.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:c,continued:!1,hasBarLine:l,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:rT,mathmlBuilder:iT});var NX=(t,e)=>{var n=e.style,a,r;t.type==="supsub"?(a=t.sup?e0(t.sup,e.havingStyle(n.sup()),e):e0(t.sub,e.havingStyle(n.sub()),e),r=L2(t.base,"horizBrace")):r=L2(t,"horizBrace");var o=e0(r.base,e.havingBaseStyle(o2.DISPLAY)),c=L5.svgSpan(r,e),l;if(r.isOver?(l=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:c}]},e),l.children[0].children[0].children[1].classes.push("svg-align")):(l=$1.makeVList({positionType:"bottom",positionData:o.depth+.1+c.height,children:[{type:"elem",elem:c},{type:"kern",size:.1},{type:"elem",elem:o}]},e),l.children[0].children[0].children[0].classes.push("svg-align")),a){var h=$1.makeSpan(["mord",r.isOver?"mover":"munder"],[l],e);r.isOver?l=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:a}]},e):l=$1.makeVList({positionType:"bottom",positionData:h.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:h}]},e)}return $1.makeSpan(["mord",r.isOver?"mover":"munder"],[l],e)},nC1=(t,e)=>{var n=L5.mathMLnode(t.label);return new dt.MathNode(t.isOver?"mover":"munder",[D0(t.base,e),n])};Nt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:a}=t;return{type:"horizBrace",mode:n.mode,label:a,isOver:/^\\over/.test(a),base:e[0]}},htmlBuilder:NX,mathmlBuilder:nC1});Nt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,a=e[1],r=L2(e[0],"url").url;return n.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:n.mode,href:r,body:Ae(a)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var n=c4(t.body,e,!1);return $1.makeAnchor(t.href,[],n,e)},mathmlBuilder:(t,e)=>{var n=fo(t.body,e);return n instanceof Ea||(n=new Ea("mrow",[n])),n.setAttribute("href",t.href),n}});Nt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,a=L2(e[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:a}))return n.formatUnsupportedCmd("\\url");for(var r=[],o=0;o{var{parser:n,funcName:a,token:r}=t,o=L2(e[0],"raw").string,c=e[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,h={};switch(a){case"\\htmlClass":h.class=o,l={command:"\\htmlClass",class:o};break;case"\\htmlId":h.id=o,l={command:"\\htmlId",id:o};break;case"\\htmlStyle":h.style=o,l={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var s=o.split(","),u=0;u{var n=c4(t.body,e,!1),a=["enclosing"];t.attributes.class&&a.push(...t.attributes.class.trim().split(/\s+/));var r=$1.makeSpan(a,n,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:n}=t;return{type:"htmlmathml",mode:n.mode,html:Ae(e[0]),mathml:Ae(e[1])}},htmlBuilder:(t,e)=>{var n=c4(t.html,e,!1);return $1.makeFragment(n)},mathmlBuilder:(t,e)=>fo(t.mathml,e)});var Yx=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!n)throw new zt("Invalid size: '"+e+"' in \\includegraphics");var a={number:+(n[1]+n[2]),unit:n[3]};if(!nX(a))throw new zt("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};Nt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,n)=>{var{parser:a}=t,r={number:0,unit:"em"},o={number:.9,unit:"em"},c={number:0,unit:"em"},l="";if(n[0])for(var h=L2(n[0],"raw").string,s=h.split(","),u=0;u{var n=me(t.height,e),a=0;t.totalheight.number>0&&(a=me(t.totalheight,e)-n);var r=0;t.width.number>0&&(r=me(t.width,e));var o={height:bt(n+a)};r>0&&(o.width=bt(r)),a>0&&(o.verticalAlign=bt(-a));var c=new nV1(t.src,t.alt,o);return c.height=n,c.depth=a,c},mathmlBuilder:(t,e)=>{var n=new dt.MathNode("mglyph",[]);n.setAttribute("alt",t.alt);var a=me(t.height,e),r=0;if(t.totalheight.number>0&&(r=me(t.totalheight,e)-a,n.setAttribute("valign",bt(-r))),n.setAttribute("height",bt(a+r)),t.width.number>0){var o=me(t.width,e);n.setAttribute("width",bt(o))}return n.setAttribute("src",t.src),n}});Nt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:n,funcName:a}=t,r=L2(e[0],"size");if(n.settings.strict){var o=a[1]==="m",c=r.value.unit==="mu";o?(c||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+r.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):c&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:r.value}},htmlBuilder(t,e){return $1.makeGlue(t.dimension,e)},mathmlBuilder(t,e){var n=me(t.dimension,e);return new dt.SpaceNode(n)}});Nt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:a}=t,r=e[0];return{type:"lap",mode:n.mode,alignment:a.slice(5),body:r}},htmlBuilder:(t,e)=>{var n;t.alignment==="clap"?(n=$1.makeSpan([],[e0(t.body,e)]),n=$1.makeSpan(["inner"],[n],e)):n=$1.makeSpan(["inner"],[e0(t.body,e)]);var a=$1.makeSpan(["fix"],[]),r=$1.makeSpan([t.alignment],[n,a],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 n=new dt.MathNode("mpadded",[D0(t.body,e)]);if(t.alignment!=="rlap"){var a=t.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",a+"width")}return n.setAttribute("width","0px"),n}});Nt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:n,parser:a}=t,r=a.mode;a.switchMode("math");var o=n==="\\("?"\\)":"$",c=a.parseExpression(!1,o);return a.expect(o),a.switchMode(r),{type:"styling",mode:a.mode,style:"text",body:c}}});Nt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new zt("Mismatched "+t.funcName)}});var QR=(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:n}=t;return{type:"mathchoice",mode:n.mode,display:Ae(e[0]),text:Ae(e[1]),script:Ae(e[2]),scriptscript:Ae(e[3])}},htmlBuilder:(t,e)=>{var n=QR(t,e),a=c4(n,e,!1);return $1.makeFragment(a)},mathmlBuilder:(t,e)=>{var n=QR(t,e);return fo(n,e)}});var DX=(t,e,n,a,r,o,c)=>{t=$1.makeSpan([],[t]);var l=n&&d2.isCharacterBox(n),h,s;if(e){var u=e0(e,a.havingStyle(r.sup()),a);s={elem:u,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var v=e0(n,a.havingStyle(r.sub()),a);h={elem:v,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-v.height)}}var f;if(s&&h){var d=a.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+t.depth+c;f=$1.makeVList({positionType:"bottom",positionData:d,children:[{type:"kern",size:a.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:a.fontMetrics().bigOpSpacing5}]},a)}else if(h){var z=t.height-c;f=$1.makeVList({positionType:"top",positionData:z,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:bt(-o)},{type:"kern",size:h.kern},{type:"elem",elem:t}]},a)}else if(s){var g=t.depth+c;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:a.fontMetrics().bigOpSpacing5}]},a)}else return t;var H=[f];if(h&&o!==0&&!l){var p=$1.makeSpan(["mspace"],[],a);p.style.marginRight=bt(o),H.unshift(p)}return $1.makeSpan(["mop","op-limits"],H,a)},RX=["\\smallint"],J6=(t,e)=>{var n,a,r=!1,o;t.type==="supsub"?(n=t.sup,a=t.sub,o=L2(t.base,"op"),r=!0):o=L2(t,"op");var c=e.style,l=!1;c.size===o2.DISPLAY.size&&o.symbol&&!d2.contains(RX,o.name)&&(l=!0);var h;if(o.symbol){var s=l?"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",l?"large-op":"small-op"]),u.length>0){var v=h.italic,f=$1.staticSvg(u+"Size"+(l?"2":"1"),e);h=$1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:f,shift:l?.08:0}]},e),o.name="\\"+u,h.classes.unshift("mop"),h.italic=v}}else if(o.body){var d=c4(o.body,e,!0);d.length===1&&d[0]instanceof Ka?(h=d[0],h.classes[0]="mop"):h=$1.makeSpan(["mop"],d,e)}else{for(var z=[],g=1;g{var n;if(t.symbol)n=new Ea("mo",[Ya(t.name,t.mode)]),d2.contains(RX,t.name)&&n.setAttribute("largeop","false");else if(t.body)n=new Ea("mo",qn(t.body,e));else{n=new Ea("mi",[new as(t.name.slice(1))]);var a=new Ea("mo",[Ya("⁡","text")]);t.parentIsSupSub?n=new Ea("mrow",[n,a]):n=dX([n,a])}return n},aC1={"∏":"\\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:n,funcName:a}=t,r=a;return r.length===1&&(r=aC1[r]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:J6,mathmlBuilder:Gh});Nt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:n}=t,a=e[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ae(a)}},htmlBuilder:J6,mathmlBuilder:Gh});var rC1={"∫":"\\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:n}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:J6,mathmlBuilder:Gh});Nt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:J6,mathmlBuilder:Gh});Nt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t,a=n;return a.length===1&&(a=rC1[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:J6,mathmlBuilder:Gh});var jX=(t,e)=>{var n,a,r=!1,o;t.type==="supsub"?(n=t.sup,a=t.sub,o=L2(t.base,"operatorname"),r=!0):o=L2(t,"operatorname");var c;if(o.body.length>0){for(var l=o.body.map(v=>{var f=v.text;return typeof f=="string"?{type:"textord",mode:v.mode,text:f}:v}),h=c4(l,e.withFont("mathrm"),!0),s=0;s{for(var n=qn(t.body,e.withFont("mathrm")),a=!0,r=0;ru.toText()).join("");n=[new dt.TextNode(l)]}var h=new dt.MathNode("mi",n);h.setAttribute("mathvariant","normal");var s=new dt.MathNode("mo",[Ya("⁡","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:n,funcName:a}=t,r=e[0];return{type:"operatorname",mode:n.mode,body:Ae(r),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:jX,mathmlBuilder:iC1});a1("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");mc({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?$1.makeFragment(c4(t.body,e,!1)):$1.makeSpan(["mord"],c4(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:n}=t,a=e[0];return{type:"overline",mode:n.mode,body:a}},htmlBuilder(t,e){var n=e0(t.body,e.havingCrampedStyle()),a=$1.makeLineSpan("overline-line",e),r=e.fontMetrics().defaultRuleThickness,o=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*r},{type:"elem",elem:a},{type:"kern",size:r}]},e);return $1.makeSpan(["mord","overline"],[o],e)},mathmlBuilder(t,e){var n=new dt.MathNode("mo",[new dt.TextNode("‾")]);n.setAttribute("stretchy","true");var a=new dt.MathNode("mover",[D0(t.body,e),n]);return a.setAttribute("accent","true"),a}});Nt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,a=e[0];return{type:"phantom",mode:n.mode,body:Ae(a)}},htmlBuilder:(t,e)=>{var n=c4(t.body,e.withPhantom(),!1);return $1.makeFragment(n)},mathmlBuilder:(t,e)=>{var n=qn(t.body,e);return new dt.MathNode("mphantom",n)}});Nt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,a=e[0];return{type:"hphantom",mode:n.mode,body:a}},htmlBuilder:(t,e)=>{var n=$1.makeSpan([],[e0(t.body,e.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var a=0;a{var n=qn(Ae(t.body),e),a=new dt.MathNode("mphantom",n),r=new dt.MathNode("mpadded",[a]);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:n}=t,a=e[0];return{type:"vphantom",mode:n.mode,body:a}},htmlBuilder:(t,e)=>{var n=$1.makeSpan(["inner"],[e0(t.body,e.withPhantom())]),a=$1.makeSpan(["fix"],[]);return $1.makeSpan(["mord","rlap"],[n,a],e)},mathmlBuilder:(t,e)=>{var n=qn(Ae(t.body),e),a=new dt.MathNode("mphantom",n),r=new dt.MathNode("mpadded",[a]);return r.setAttribute("width","0px"),r}});Nt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:n}=t,a=L2(e[0],"size").value,r=e[1];return{type:"raisebox",mode:n.mode,dy:a,body:r}},htmlBuilder(t,e){var n=e0(t.body,e),a=me(t.dy,e);return $1.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:n}]},e)},mathmlBuilder(t,e){var n=new dt.MathNode("mpadded",[D0(t.body,e)]),a=t.dy.number+t.dy.unit;return n.setAttribute("voffset",a),n}});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,n){var{parser:a}=t,r=n[0],o=L2(e[0],"size"),c=L2(e[1],"size");return{type:"rule",mode:a.mode,shift:r&&L2(r,"size").value,width:o.value,height:c.value}},htmlBuilder(t,e){var n=$1.makeSpan(["mord","rule"],[],e),a=me(t.width,e),r=me(t.height,e),o=t.shift?me(t.shift,e):0;return n.style.borderRightWidth=bt(a),n.style.borderTopWidth=bt(r),n.style.bottom=bt(o),n.width=a,n.height=r+o,n.depth=-o,n.maxFontSize=r*1.125*e.sizeMultiplier,n},mathmlBuilder(t,e){var n=me(t.width,e),a=me(t.height,e),r=t.shift?me(t.shift,e):0,o=e.color&&e.getColor()||"black",c=new dt.MathNode("mspace");c.setAttribute("mathbackground",o),c.setAttribute("width",bt(n)),c.setAttribute("height",bt(a));var l=new dt.MathNode("mpadded",[c]);return r>=0?l.setAttribute("height",bt(r)):(l.setAttribute("height",bt(r)),l.setAttribute("depth",bt(-r))),l.setAttribute("voffset",bt(r)),l}});function IX(t,e,n){for(var a=c4(t,e,!1),r=e.sizeMultiplier/n.sizeMultiplier,o=0;o{var n=e.havingSize(t.size);return IX(t.body,n,e)};Nt({type:"sizing",names:XR,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:n,funcName:a,parser:r}=t,o=r.parseExpression(!1,n);return{type:"sizing",mode:r.mode,size:XR.indexOf(a)+1,body:o}},htmlBuilder:oC1,mathmlBuilder:(t,e)=>{var n=e.havingSize(t.size),a=qn(t.body,n),r=new dt.MathNode("mstyle",a);return r.setAttribute("mathsize",bt(n.sizeMultiplier)),r}});Nt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,n)=>{var{parser:a}=t,r=!1,o=!1,c=n[0]&&L2(n[0],"ordgroup");if(c)for(var l="",h=0;h{var n=$1.makeSpan([],[e0(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return n;if(t.smashHeight&&(n.height=0,n.children))for(var a=0;a{var n=new dt.MathNode("mpadded",[D0(t.body,e)]);return t.smashHeight&&n.setAttribute("height","0px"),t.smashDepth&&n.setAttribute("depth","0px"),n}});Nt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,n){var{parser:a}=t,r=n[0],o=e[0];return{type:"sqrt",mode:a.mode,body:o,index:r}},htmlBuilder(t,e){var n=e0(t.body,e.havingCrampedStyle());n.height===0&&(n.height=e.fontMetrics().xHeight),n=$1.wrapFragment(n,e);var a=e.fontMetrics(),r=a.defaultRuleThickness,o=r;e.style.idn.height+n.depth+c&&(c=(c+v-n.height-n.depth)/2);var f=h.height-n.height-c-s;n.style.paddingLeft=bt(u);var d=$1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+f)},{type:"elem",elem:h},{type:"kern",size:s}]},e);if(t.index){var z=e.havingStyle(o2.SCRIPTSCRIPT),g=e0(t.index,z,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:n,index:a}=t;return a?new dt.MathNode("mroot",[D0(n,e),D0(a,e)]):new dt.MathNode("msqrt",[D0(n,e)])}});var JR={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:n,funcName:a,parser:r}=t,o=r.parseExpression(!0,n),c=a.slice(1,a.length-5);return{type:"styling",mode:r.mode,style:c,body:o}},htmlBuilder(t,e){var n=JR[t.style],a=e.havingStyle(n).withFont("");return IX(t.body,a,e)},mathmlBuilder(t,e){var n=JR[t.style],a=e.havingStyle(n),r=qn(t.body,a),o=new dt.MathNode("mstyle",r),c={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=c[t.style];return o.setAttribute("scriptlevel",l[0]),o.setAttribute("displaystyle",l[1]),o}});var cC1=function(e,n){var a=e.base;if(a)if(a.type==="op"){var r=a.limits&&(n.style.size===o2.DISPLAY.size||a.alwaysHandleSupSub);return r?J6:null}else if(a.type==="operatorname"){var o=a.alwaysHandleSupSub&&(n.style.size===o2.DISPLAY.size||a.limits);return o?jX:null}else{if(a.type==="accent")return d2.isCharacterBox(a.base)?XS:null;if(a.type==="horizBrace"){var c=!e.sub;return c===a.isOver?NX:null}else return null}else return null};mc({type:"supsub",htmlBuilder(t,e){var n=cC1(t,e);if(n)return n(t,e);var{base:a,sup:r,sub:o}=t,c=e0(a,e),l,h,s=e.fontMetrics(),u=0,v=0,f=a&&d2.isCharacterBox(a);if(r){var d=e.havingStyle(e.style.sup());l=e0(r,d,e),f||(u=c.height-d.fontMetrics().supDrop*d.sizeMultiplier/e.sizeMultiplier)}if(o){var z=e.havingStyle(e.style.sub());h=e0(o,z,e),f||(v=c.depth+z.fontMetrics().subDrop*z.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 M=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(c instanceof Ka||M)&&(m=bt(-c.italic))}var w;if(l&&h){u=Math.max(u,g,l.depth+.25*s.xHeight),v=Math.max(v,s.sub2);var x=s.defaultRuleThickness,y=4*x;if(u-l.depth-(h.height-v)0&&(u+=V,v-=V)}var C=[{type:"elem",elem:h,shift:v,marginRight:p,marginLeft:m},{type:"elem",elem:l,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(l)u=Math.max(u,g,l.depth+.25*s.xHeight),w=$1.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:l,marginRight:p}]},e);else throw new Error("supsub must have either sup or sub.");var B=rL(c,"right")||"mord";return $1.makeSpan([B],[c,$1.makeSpan(["msupsub"],[w])],e)},mathmlBuilder(t,e){var n=!1,a,r;t.base&&t.base.type==="horizBrace"&&(r=!!t.sup,r===t.base.isOver&&(n=!0,a=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 c;if(n)c=a?"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)?c="munderover":c="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)?c="munder":c="msub"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===o2.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===o2.DISPLAY)?c="mover":c="msup"}return new dt.MathNode(c,o)}});mc({type:"atom",htmlBuilder(t,e){return $1.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var n=new dt.MathNode("mo",[Ya(t.text,t.mode)]);if(t.family==="bin"){var a=ZS(t,e);a==="bold-italic"&&n.setAttribute("mathvariant",a)}else t.family==="punct"?n.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&n.setAttribute("stretchy","false");return n}});var FX={mi:"italic",mn:"normal",mtext:"normal"};mc({type:"mathord",htmlBuilder(t,e){return $1.makeOrd(t,e,"mathord")},mathmlBuilder(t,e){var n=new dt.MathNode("mi",[Ya(t.text,t.mode,e)]),a=ZS(t,e)||"italic";return a!==FX[n.type]&&n.setAttribute("mathvariant",a),n}});mc({type:"textord",htmlBuilder(t,e){return $1.makeOrd(t,e,"textord")},mathmlBuilder(t,e){var n=Ya(t.text,t.mode,e),a=ZS(t,e)||"normal",r;return t.mode==="text"?r=new dt.MathNode("mtext",[n]):/[0-9]/.test(t.text)?r=new dt.MathNode("mn",[n]):t.text==="\\prime"?r=new dt.MathNode("mo",[n]):r=new dt.MathNode("mi",[n]),a!==FX[r.type]&&r.setAttribute("mathvariant",a),r}});var Zx={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Qx={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};mc({type:"spacing",htmlBuilder(t,e){if(Qx.hasOwnProperty(t.text)){var n=Qx[t.text].className||"";if(t.mode==="text"){var a=$1.makeOrd(t,e,"textord");return a.classes.push(n),a}else return $1.makeSpan(["mspace",n],[$1.mathsym(t.text,t.mode,e)],e)}else{if(Zx.hasOwnProperty(t.text))return $1.makeSpan(["mspace",Zx[t.text]],[],e);throw new zt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var n;if(Qx.hasOwnProperty(t.text))n=new dt.MathNode("mtext",[new dt.TextNode(" ")]);else{if(Zx.hasOwnProperty(t.text))return new dt.MathNode("mspace");throw new zt('Unknown type of space "'+t.text+'"')}return n}});var tj=()=>{var t=new dt.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};mc({type:"tag",mathmlBuilder(t,e){var n=new dt.MathNode("mtable",[new dt.MathNode("mtr",[tj(),new dt.MathNode("mtd",[fo(t.body,e)]),tj(),new dt.MathNode("mtd",[fo(t.tag,e)])])]);return n.setAttribute("width","100%"),n}});var ej={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},nj={"\\textbf":"textbf","\\textmd":"textmd"},lC1={"\\textit":"textit","\\textup":"textup"},aj=(t,e)=>{var n=t.font;return n?ej[n]?e.withTextFontFamily(ej[n]):nj[n]?e.withTextFontWeight(nj[n]):e.withTextFontShape(lC1[n]):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:n,funcName:a}=t,r=e[0];return{type:"text",mode:n.mode,body:Ae(r),font:a}},htmlBuilder(t,e){var n=aj(t,e),a=c4(t.body,n,!0);return $1.makeSpan(["mord","text"],a,n)},mathmlBuilder(t,e){var n=aj(t,e);return fo(t.body,n)}});Nt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"underline",mode:n.mode,body:e[0]}},htmlBuilder(t,e){var n=e0(t.body,e),a=$1.makeLineSpan("underline-line",e),r=e.fontMetrics().defaultRuleThickness,o=$1.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:r},{type:"elem",elem:a},{type:"kern",size:3*r},{type:"elem",elem:n}]},e);return $1.makeSpan(["mord","underline"],[o],e)},mathmlBuilder(t,e){var n=new dt.MathNode("mo",[new dt.TextNode("‾")]);n.setAttribute("stretchy","true");var a=new dt.MathNode("munder",[D0(t.body,e),n]);return a.setAttribute("accentunder","true"),a}});Nt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:n}=t;return{type:"vcenter",mode:n.mode,body:e[0]}},htmlBuilder(t,e){var n=e0(t.body,e),a=e.fontMetrics().axisHeight,r=.5*(n.height-a-(n.depth+a));return $1.makeVList({positionType:"shift",positionData:r,children:[{type:"elem",elem:n}]},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,n){throw new zt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var n=rj(t),a=[],r=e.havingStyle(e.style.text()),o=0;ot.body.replace(/ /g,t.star?"␣":" "),j3=uX,$X=`[ \r + ]`,sC1="\\\\[a-zA-Z@]+",hC1="\\\\[^\uD800-\uDFFF]",uC1="("+sC1+")"+$X+"*",vC1=`\\\\( |[ \r ]+ -?)[ \r ]*`,lL="[̀-ͯ]",uC1=new RegExp(lL+"+$"),vC1="("+FX+"+)|"+(hC1+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(lL+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(lL+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+sC1)+("|"+lC1+")");class ij{constructor(e,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=n,this.tokenRegex=new RegExp(vC1,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,n){this.catcodes[e]=n}lex(){var e=this.input,n=this.tokenRegex.lastIndex;if(n===e.length)return new w5("EOF",new Jn(this,n,n));var a=this.tokenRegex.exec(e);if(a===null||a.index!==n)throw new zt("Unexpected character: '"+e[n]+"'",new w5(e[n],new Jn(this,n,n+1)));var r=a[6]||a[3]||(a[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 w5(r,new Jn(this,n,this.tokenRegex.lastIndex))}}class dC1{constructor(e,n){e===void 0&&(e={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,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 n in e)e.hasOwnProperty(n)&&(e[n]==null?delete this.current[n]:this.current[n]=e[n])}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,n,a){if(a===void 0&&(a=!1),a){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=n)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}n==null?delete this.current[e]:this.current[e]=n}}var fC1=TX;a1("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});a1("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});a1("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});a1("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});a1("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var n=t.future();return e[0].length===1&&e[0][0].text===n.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});a1("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");a1("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var oj={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};a1("\\char",function(t){var e=t.popToken(),n,a="";if(e.text==="'")n=8,e=t.popToken();else if(e.text==='"')n=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")a=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new zt("\\char` missing argument");a=e.text.charCodeAt(0)}else n=10;if(n){if(a=oj[e.text],a==null||a>=n)throw new zt("Invalid base-"+n+" digit "+e.text);for(var r;(r=oj[t.future().text])!=null&&r{var a=t.consumeArg().tokens;if(a.length!==1)throw new zt("\\newcommand's first argument must be a macro name");var r=a[0].text,o=t.isDefined(r);if(o&&!e)throw new zt("\\newcommand{"+r+"} attempting to redefine "+(r+"; use \\renewcommand"));if(!o&&!n)throw new zt("\\renewcommand{"+r+"} when command "+r+" does not yet exist; use \\newcommand");var c=0;if(a=t.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var l="",h=t.expandNextToken();h.text!=="]"&&h.text!=="EOF";)l+=h.text,h=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new zt("Invalid number of arguments: "+l);c=parseInt(l),a=t.consumeArg().tokens}return t.macros.set(r,{tokens:a,numArgs:c}),""};a1("\\newcommand",t=>oT(t,!1,!0));a1("\\renewcommand",t=>oT(t,!0,!1));a1("\\providecommand",t=>oT(t,!0,!0));a1("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(n=>n.text).join("")),""});a1("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(n=>n.text).join("")),""});a1("\\show",t=>{var e=t.popToken(),n=e.text;return console.log(e,t.macros.get(n),R3[n],W0.math[n],W0.text[n]),""});a1("\\bgroup","{");a1("\\egroup","}");a1("~","\\nobreakspace");a1("\\lq","`");a1("\\rq","'");a1("\\aa","\\r a");a1("\\AA","\\r A");a1("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");a1("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");a1("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");a1("ℬ","\\mathscr{B}");a1("ℰ","\\mathscr{E}");a1("ℱ","\\mathscr{F}");a1("ℋ","\\mathscr{H}");a1("ℐ","\\mathscr{I}");a1("ℒ","\\mathscr{L}");a1("ℳ","\\mathscr{M}");a1("ℛ","\\mathscr{R}");a1("ℭ","\\mathfrak{C}");a1("ℌ","\\mathfrak{H}");a1("ℨ","\\mathfrak{Z}");a1("\\Bbbk","\\Bbb{k}");a1("·","\\cdotp");a1("\\llap","\\mathllap{\\textrm{#1}}");a1("\\rlap","\\mathrlap{\\textrm{#1}}");a1("\\clap","\\mathclap{\\textrm{#1}}");a1("\\mathstrut","\\vphantom{(}");a1("\\underbar","\\underline{\\text{#1}}");a1("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');a1("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");a1("\\ne","\\neq");a1("≠","\\neq");a1("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");a1("∉","\\notin");a1("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");a1("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");a1("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");a1("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");a1("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");a1("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");a1("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");a1("⟂","\\perp");a1("‼","\\mathclose{!\\mkern-0.8mu!}");a1("∌","\\notni");a1("⌜","\\ulcorner");a1("⌝","\\urcorner");a1("⌞","\\llcorner");a1("⌟","\\lrcorner");a1("©","\\copyright");a1("®","\\textregistered");a1("️","\\textregistered");a1("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');a1("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');a1("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');a1("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');a1("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");a1("⋮","\\vdots");a1("\\varGamma","\\mathit{\\Gamma}");a1("\\varDelta","\\mathit{\\Delta}");a1("\\varTheta","\\mathit{\\Theta}");a1("\\varLambda","\\mathit{\\Lambda}");a1("\\varXi","\\mathit{\\Xi}");a1("\\varPi","\\mathit{\\Pi}");a1("\\varSigma","\\mathit{\\Sigma}");a1("\\varUpsilon","\\mathit{\\Upsilon}");a1("\\varPhi","\\mathit{\\Phi}");a1("\\varPsi","\\mathit{\\Psi}");a1("\\varOmega","\\mathit{\\Omega}");a1("\\substack","\\begin{subarray}{c}#1\\end{subarray}");a1("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");a1("\\boxed","\\fbox{$\\displaystyle{#1}$}");a1("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");a1("\\implies","\\DOTSB\\;\\Longrightarrow\\;");a1("\\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"};a1("\\dots",function(t){var e="\\dotso",n=t.expandAfterFuture().text;return n in cj?e=cj[n]:(n.slice(0,4)==="\\not"||n in W0.math&&d2.contains(["bin","rel"],W0.math[n].group))&&(e="\\dotsb"),e});var cT={")":!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};a1("\\dotso",function(t){var e=t.future().text;return e in cT?"\\ldots\\,":"\\ldots"});a1("\\dotsc",function(t){var e=t.future().text;return e in cT&&e!==","?"\\ldots\\,":"\\ldots"});a1("\\cdots",function(t){var e=t.future().text;return e in cT?"\\@cdots\\,":"\\@cdots"});a1("\\dotsb","\\cdots");a1("\\dotsm","\\cdots");a1("\\dotsi","\\!\\cdots");a1("\\dotsx","\\ldots\\,");a1("\\DOTSI","\\relax");a1("\\DOTSB","\\relax");a1("\\DOTSX","\\relax");a1("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");a1("\\,","\\tmspace+{3mu}{.1667em}");a1("\\thinspace","\\,");a1("\\>","\\mskip{4mu}");a1("\\:","\\tmspace+{4mu}{.2222em}");a1("\\medspace","\\:");a1("\\;","\\tmspace+{5mu}{.2777em}");a1("\\thickspace","\\;");a1("\\!","\\tmspace-{3mu}{.1667em}");a1("\\negthinspace","\\!");a1("\\negmedspace","\\tmspace-{4mu}{.2222em}");a1("\\negthickspace","\\tmspace-{5mu}{.277em}");a1("\\enspace","\\kern.5em ");a1("\\enskip","\\hskip.5em\\relax");a1("\\quad","\\hskip1em\\relax");a1("\\qquad","\\hskip2em\\relax");a1("\\tag","\\@ifstar\\tag@literal\\tag@paren");a1("\\tag@paren","\\tag@literal{({#1})}");a1("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new zt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});a1("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");a1("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");a1("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");a1("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");a1("\\newline","\\\\\\relax");a1("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var $X=bt(g5["Main-Regular"][84][1]-.7*g5["Main-Regular"][65][1]);a1("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+$X+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");a1("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+$X+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");a1("\\hspace","\\@ifstar\\@hspacer\\@hspace");a1("\\@hspace","\\hskip #1\\relax");a1("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");a1("\\ordinarycolon",":");a1("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");a1("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');a1("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');a1("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');a1("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');a1("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');a1("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');a1("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');a1("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');a1("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');a1("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');a1("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');a1("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');a1("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');a1("∷","\\dblcolon");a1("∹","\\eqcolon");a1("≔","\\coloneqq");a1("≕","\\eqqcolon");a1("⩴","\\Coloneqq");a1("\\ratio","\\vcentcolon");a1("\\coloncolon","\\dblcolon");a1("\\colonequals","\\coloneqq");a1("\\coloncolonequals","\\Coloneqq");a1("\\equalscolon","\\eqqcolon");a1("\\equalscoloncolon","\\Eqqcolon");a1("\\colonminus","\\coloneq");a1("\\coloncolonminus","\\Coloneq");a1("\\minuscolon","\\eqcolon");a1("\\minuscoloncolon","\\Eqcolon");a1("\\coloncolonapprox","\\Colonapprox");a1("\\coloncolonsim","\\Colonsim");a1("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");a1("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");a1("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");a1("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");a1("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");a1("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");a1("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");a1("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");a1("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");a1("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");a1("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");a1("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");a1("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");a1("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");a1("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");a1("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");a1("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");a1("\\nleqq","\\html@mathml{\\@nleqq}{≰}");a1("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");a1("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");a1("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");a1("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");a1("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");a1("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");a1("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");a1("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");a1("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");a1("\\imath","\\html@mathml{\\@imath}{ı}");a1("\\jmath","\\html@mathml{\\@jmath}{ȷ}");a1("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");a1("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");a1("⟦","\\llbracket");a1("⟧","\\rrbracket");a1("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");a1("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");a1("⦃","\\lBrace");a1("⦄","\\rBrace");a1("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");a1("⦵","\\minuso");a1("\\darr","\\downarrow");a1("\\dArr","\\Downarrow");a1("\\Darr","\\Downarrow");a1("\\lang","\\langle");a1("\\rang","\\rangle");a1("\\uarr","\\uparrow");a1("\\uArr","\\Uparrow");a1("\\Uarr","\\Uparrow");a1("\\N","\\mathbb{N}");a1("\\R","\\mathbb{R}");a1("\\Z","\\mathbb{Z}");a1("\\alef","\\aleph");a1("\\alefsym","\\aleph");a1("\\Alpha","\\mathrm{A}");a1("\\Beta","\\mathrm{B}");a1("\\bull","\\bullet");a1("\\Chi","\\mathrm{X}");a1("\\clubs","\\clubsuit");a1("\\cnums","\\mathbb{C}");a1("\\Complex","\\mathbb{C}");a1("\\Dagger","\\ddagger");a1("\\diamonds","\\diamondsuit");a1("\\empty","\\emptyset");a1("\\Epsilon","\\mathrm{E}");a1("\\Eta","\\mathrm{H}");a1("\\exist","\\exists");a1("\\harr","\\leftrightarrow");a1("\\hArr","\\Leftrightarrow");a1("\\Harr","\\Leftrightarrow");a1("\\hearts","\\heartsuit");a1("\\image","\\Im");a1("\\infin","\\infty");a1("\\Iota","\\mathrm{I}");a1("\\isin","\\in");a1("\\Kappa","\\mathrm{K}");a1("\\larr","\\leftarrow");a1("\\lArr","\\Leftarrow");a1("\\Larr","\\Leftarrow");a1("\\lrarr","\\leftrightarrow");a1("\\lrArr","\\Leftrightarrow");a1("\\Lrarr","\\Leftrightarrow");a1("\\Mu","\\mathrm{M}");a1("\\natnums","\\mathbb{N}");a1("\\Nu","\\mathrm{N}");a1("\\Omicron","\\mathrm{O}");a1("\\plusmn","\\pm");a1("\\rarr","\\rightarrow");a1("\\rArr","\\Rightarrow");a1("\\Rarr","\\Rightarrow");a1("\\real","\\Re");a1("\\reals","\\mathbb{R}");a1("\\Reals","\\mathbb{R}");a1("\\Rho","\\mathrm{P}");a1("\\sdot","\\cdot");a1("\\sect","\\S");a1("\\spades","\\spadesuit");a1("\\sub","\\subset");a1("\\sube","\\subseteq");a1("\\supe","\\supseteq");a1("\\Tau","\\mathrm{T}");a1("\\thetasym","\\vartheta");a1("\\weierp","\\wp");a1("\\Zeta","\\mathrm{Z}");a1("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");a1("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");a1("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");a1("\\bra","\\mathinner{\\langle{#1}|}");a1("\\ket","\\mathinner{|{#1}\\rangle}");a1("\\braket","\\mathinner{\\langle{#1}\\rangle}");a1("\\Bra","\\left\\langle#1\\right|");a1("\\Ket","\\left|#1\\right\\rangle");var UX=t=>e=>{var n=e.consumeArg().tokens,a=e.consumeArg().tokens,r=e.consumeArg().tokens,o=e.consumeArg().tokens,c=e.macros.get("|"),l=e.macros.get("\\|");e.macros.beginGroup();var h=v=>f=>{t&&(f.macros.set("|",c),r.length&&f.macros.set("\\|",l));var d=v;if(!v&&r.length){var M=f.future();M.text==="|"&&(f.popToken(),d=!0)}return{tokens:d?r:a,numArgs:0}};e.macros.set("|",h(!1)),r.length&&e.macros.set("\\|",h(!0));var s=e.consumeArg().tokens,u=e.expandTokens([...o,...s,...n]);return e.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};a1("\\bra@ket",UX(!1));a1("\\bra@set",UX(!0));a1("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");a1("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");a1("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");a1("\\angln","{\\angl n}");a1("\\blue","\\textcolor{##6495ed}{#1}");a1("\\orange","\\textcolor{##ffa500}{#1}");a1("\\pink","\\textcolor{##ff00af}{#1}");a1("\\red","\\textcolor{##df0030}{#1}");a1("\\green","\\textcolor{##28ae7b}{#1}");a1("\\gray","\\textcolor{gray}{#1}");a1("\\purple","\\textcolor{##9d38bd}{#1}");a1("\\blueA","\\textcolor{##ccfaff}{#1}");a1("\\blueB","\\textcolor{##80f6ff}{#1}");a1("\\blueC","\\textcolor{##63d9ea}{#1}");a1("\\blueD","\\textcolor{##11accd}{#1}");a1("\\blueE","\\textcolor{##0c7f99}{#1}");a1("\\tealA","\\textcolor{##94fff5}{#1}");a1("\\tealB","\\textcolor{##26edd5}{#1}");a1("\\tealC","\\textcolor{##01d1c1}{#1}");a1("\\tealD","\\textcolor{##01a995}{#1}");a1("\\tealE","\\textcolor{##208170}{#1}");a1("\\greenA","\\textcolor{##b6ffb0}{#1}");a1("\\greenB","\\textcolor{##8af281}{#1}");a1("\\greenC","\\textcolor{##74cf70}{#1}");a1("\\greenD","\\textcolor{##1fab54}{#1}");a1("\\greenE","\\textcolor{##0d923f}{#1}");a1("\\goldA","\\textcolor{##ffd0a9}{#1}");a1("\\goldB","\\textcolor{##ffbb71}{#1}");a1("\\goldC","\\textcolor{##ff9c39}{#1}");a1("\\goldD","\\textcolor{##e07d10}{#1}");a1("\\goldE","\\textcolor{##a75a05}{#1}");a1("\\redA","\\textcolor{##fca9a9}{#1}");a1("\\redB","\\textcolor{##ff8482}{#1}");a1("\\redC","\\textcolor{##f9685d}{#1}");a1("\\redD","\\textcolor{##e84d39}{#1}");a1("\\redE","\\textcolor{##bc2612}{#1}");a1("\\maroonA","\\textcolor{##ffbde0}{#1}");a1("\\maroonB","\\textcolor{##ff92c6}{#1}");a1("\\maroonC","\\textcolor{##ed5fa6}{#1}");a1("\\maroonD","\\textcolor{##ca337c}{#1}");a1("\\maroonE","\\textcolor{##9e034e}{#1}");a1("\\purpleA","\\textcolor{##ddd7ff}{#1}");a1("\\purpleB","\\textcolor{##c6b9fc}{#1}");a1("\\purpleC","\\textcolor{##aa87ff}{#1}");a1("\\purpleD","\\textcolor{##7854ab}{#1}");a1("\\purpleE","\\textcolor{##543b78}{#1}");a1("\\mintA","\\textcolor{##f5f9e8}{#1}");a1("\\mintB","\\textcolor{##edf2df}{#1}");a1("\\mintC","\\textcolor{##e0e5cc}{#1}");a1("\\grayA","\\textcolor{##f6f7f7}{#1}");a1("\\grayB","\\textcolor{##f0f1f2}{#1}");a1("\\grayC","\\textcolor{##e3e5e6}{#1}");a1("\\grayD","\\textcolor{##d6d8da}{#1}");a1("\\grayE","\\textcolor{##babec2}{#1}");a1("\\grayF","\\textcolor{##888d93}{#1}");a1("\\grayG","\\textcolor{##626569}{#1}");a1("\\grayH","\\textcolor{##3b3e40}{#1}");a1("\\grayI","\\textcolor{##21242c}{#1}");a1("\\kaBlue","\\textcolor{##314453}{#1}");a1("\\kaGreen","\\textcolor{##71B307}{#1}");var WX={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class gC1{constructor(e,n,a){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=n,this.expansionCount=0,this.feed(e),this.macros=new dC1(fC1,n.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new ij(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 n,a,r;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:r,end:a}=this.consumeArg(["]"])}else({tokens:r,start:n,end:a}=this.consumeArg());return this.pushToken(new w5("EOF",a.loc)),this.pushTokens(r),n.range(a,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var n=[],a=e&&e.length>0;a||this.consumeSpaces();var r=this.future(),o,c=0,l=0;do{if(o=this.popToken(),n.push(o),o.text==="{")++c;else if(o.text==="}"){if(--c,c===-1)throw new zt("Extra }",o)}else if(o.text==="EOF")throw new zt("Unexpected end of input in a macro argument, expected '"+(e&&a?e[l]:"}")+"'",o);if(e&&a)if((c===0||c===1&&e[l]==="{")&&o.text===e[l]){if(++l,l===e.length){n.splice(-l,l);break}}else l=0}while(c!==0||a);return r.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:r,end:o}}consumeArgs(e,n){if(n){if(n.length!==e+1)throw new zt("The length of delimiters doesn't match the number of args!");for(var a=n[0],r=0;rthis.settings.maxExpand)throw new zt("Too many expansions: infinite loop or need to increase maxExpand setting");var o=r.tokens,c=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){o=o.slice();for(var l=o.length-1;l>=0;--l){var h=o[l];if(h.text==="#"){if(l===0)throw new zt("Incomplete placeholder at end of macro body",h);if(h=o[--l],h.text==="#")o.splice(l+1,1);else if(/^[1-9]$/.test(h.text))o.splice(l,2,...c[+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 w5(e)]):void 0}expandTokens(e){var n=[],a=this.stack.length;for(this.pushTokens(e);this.stack.length>a;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),n.push(r)}return n}expandMacroAsText(e){var n=this.expandMacro(e);return n&&n.map(a=>a.text).join("")}_getExpansion(e){var n=this.macros.get(e);if(n==null)return n;if(e.length===1){var a=this.lexer.catcodes[e];if(a!=null&&a!==13)return}var r=typeof n=="function"?n(this):n;if(typeof r=="string"){var o=0;if(r.indexOf("#")!==-1)for(var c=r.replace(/##/g,"");c.indexOf("#"+(o+1))!==-1;)++o;for(var l=new ij(r,this.settings),h=[],s=l.lex();s.text!=="EOF";)h.push(s),s=l.lex();h.reverse();var u={tokens:h,numArgs:o};return u}return r}isDefined(e){return this.macros.has(e)||R3.hasOwnProperty(e)||W0.math.hasOwnProperty(e)||W0.text.hasOwnProperty(e)||WX.hasOwnProperty(e)}isExpandable(e){var n=this.macros.get(e);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:R3.hasOwnProperty(e)&&!R3[e].primitive}}var lj=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,_d=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Xx={"́":{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"}},sj={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let qX=class sL{constructor(e,n){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 gC1(e,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(e,n){if(n===void 0&&(n=!0),this.fetch().text!==e)throw new zt("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());n&&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 n=this.nextToken;this.consume(),this.gullet.pushToken(new w5("}")),this.gullet.pushTokens(e);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,a}parseExpression(e,n){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var r=this.fetch();if(sL.endOfExpression.indexOf(r.text)!==-1||n&&r.text===n||e&&R3[r.text]&&R3[r.text].infix)break;var o=this.parseAtom(n);if(o){if(o.type==="internal")continue}else break;a.push(o)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(e){for(var n=-1,a,r=0;r=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',e);var l=W0[this.mode][n].group,h=Jn.range(e),s;if(aV1.hasOwnProperty(l)){var u=l;s={type:"atom",mode:this.mode,family:u,loc:h,text:n}}else s={type:l,mode:this.mode,loc:h,text:n};c=s}else if(n.charCodeAt(0)>=128)this.settings.strict&&(tX(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),e)),c={type:"textord",mode:"text",loc:Jn.range(e),text:n};else return null;if(this.consume(),o)for(var v=0;vc&&(c=o):o=1,r=a+e.length,a=n.indexOf(e,r);return c}function HC1(){return{enter:{mathFlow:t,mathFlowFenceMeta:e,mathText:o},exit:{mathFlow:r,mathFlowFence:a,mathFlowFenceMeta:n,mathFlowValue:l,mathText:c,mathTextData:l}};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 n(){const h=this.resume(),s=this.stack[this.stack.length-1];s.meta=h}function a(){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 c(h){const s=this.resume(),u=this.exit(h);u.value=s,u.data.hChildren[0].value=s}function l(h){this.config.enter.data.call(this,h),this.config.exit.data.call(this,h)}}function wC1(t){let e=(t||{}).singleDollarTextMath;return e==null&&(e=!0),a.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:n,inlineMath:a}};function n(o,c,l,h){const s=o.value||"",u=Uh(h),v="$".repeat(Math.max(MC1(s,"$")+1,2)),f=l.enter("mathFlow");let d=u.move(v);if(o.meta){const M=l.enter("mathFlowMeta");d+=u.move($_(l,o.meta,{before:d,after:` -`,encode:["$"],...u.current()})),M()}return d+=u.move(` +?)[ \r ]*`,lL="[̀-ͯ]",dC1=new RegExp(lL+"+$"),fC1="("+$X+"+)|"+(vC1+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(lL+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(lL+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+uC1)+("|"+hC1+")");class ij{constructor(e,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=n,this.tokenRegex=new RegExp(fC1,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,n){this.catcodes[e]=n}lex(){var e=this.input,n=this.tokenRegex.lastIndex;if(n===e.length)return new Hi("EOF",new Jn(this,n,n));var a=this.tokenRegex.exec(e);if(a===null||a.index!==n)throw new zt("Unexpected character: '"+e[n]+"'",new Hi(e[n],new Jn(this,n,n+1)));var r=a[6]||a[3]||(a[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 Hi(r,new Jn(this,n,this.tokenRegex.lastIndex))}}class gC1{constructor(e,n){e===void 0&&(e={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,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 n in e)e.hasOwnProperty(n)&&(e[n]==null?delete this.current[n]:this.current[n]=e[n])}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,n,a){if(a===void 0&&(a=!1),a){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=n)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}n==null?delete this.current[e]:this.current[e]=n}}var pC1=OX;a1("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});a1("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});a1("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});a1("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});a1("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var n=t.future();return e[0].length===1&&e[0][0].text===n.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});a1("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");a1("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var oj={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};a1("\\char",function(t){var e=t.popToken(),n,a="";if(e.text==="'")n=8,e=t.popToken();else if(e.text==='"')n=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")a=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new zt("\\char` missing argument");a=e.text.charCodeAt(0)}else n=10;if(n){if(a=oj[e.text],a==null||a>=n)throw new zt("Invalid base-"+n+" digit "+e.text);for(var r;(r=oj[t.future().text])!=null&&r{var a=t.consumeArg().tokens;if(a.length!==1)throw new zt("\\newcommand's first argument must be a macro name");var r=a[0].text,o=t.isDefined(r);if(o&&!e)throw new zt("\\newcommand{"+r+"} attempting to redefine "+(r+"; use \\renewcommand"));if(!o&&!n)throw new zt("\\renewcommand{"+r+"} when command "+r+" does not yet exist; use \\newcommand");var c=0;if(a=t.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var l="",h=t.expandNextToken();h.text!=="]"&&h.text!=="EOF";)l+=h.text,h=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new zt("Invalid number of arguments: "+l);c=parseInt(l),a=t.consumeArg().tokens}return t.macros.set(r,{tokens:a,numArgs:c}),""};a1("\\newcommand",t=>oT(t,!1,!0));a1("\\renewcommand",t=>oT(t,!0,!1));a1("\\providecommand",t=>oT(t,!0,!0));a1("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(n=>n.text).join("")),""});a1("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(n=>n.text).join("")),""});a1("\\show",t=>{var e=t.popToken(),n=e.text;return console.log(e,t.macros.get(n),j3[n],W0.math[n],W0.text[n]),""});a1("\\bgroup","{");a1("\\egroup","}");a1("~","\\nobreakspace");a1("\\lq","`");a1("\\rq","'");a1("\\aa","\\r a");a1("\\AA","\\r A");a1("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");a1("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");a1("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");a1("ℬ","\\mathscr{B}");a1("ℰ","\\mathscr{E}");a1("ℱ","\\mathscr{F}");a1("ℋ","\\mathscr{H}");a1("ℐ","\\mathscr{I}");a1("ℒ","\\mathscr{L}");a1("ℳ","\\mathscr{M}");a1("ℛ","\\mathscr{R}");a1("ℭ","\\mathfrak{C}");a1("ℌ","\\mathfrak{H}");a1("ℨ","\\mathfrak{Z}");a1("\\Bbbk","\\Bbb{k}");a1("·","\\cdotp");a1("\\llap","\\mathllap{\\textrm{#1}}");a1("\\rlap","\\mathrlap{\\textrm{#1}}");a1("\\clap","\\mathclap{\\textrm{#1}}");a1("\\mathstrut","\\vphantom{(}");a1("\\underbar","\\underline{\\text{#1}}");a1("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');a1("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");a1("\\ne","\\neq");a1("≠","\\neq");a1("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");a1("∉","\\notin");a1("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");a1("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");a1("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");a1("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");a1("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");a1("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");a1("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");a1("⟂","\\perp");a1("‼","\\mathclose{!\\mkern-0.8mu!}");a1("∌","\\notni");a1("⌜","\\ulcorner");a1("⌝","\\urcorner");a1("⌞","\\llcorner");a1("⌟","\\lrcorner");a1("©","\\copyright");a1("®","\\textregistered");a1("️","\\textregistered");a1("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');a1("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');a1("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');a1("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');a1("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");a1("⋮","\\vdots");a1("\\varGamma","\\mathit{\\Gamma}");a1("\\varDelta","\\mathit{\\Delta}");a1("\\varTheta","\\mathit{\\Theta}");a1("\\varLambda","\\mathit{\\Lambda}");a1("\\varXi","\\mathit{\\Xi}");a1("\\varPi","\\mathit{\\Pi}");a1("\\varSigma","\\mathit{\\Sigma}");a1("\\varUpsilon","\\mathit{\\Upsilon}");a1("\\varPhi","\\mathit{\\Phi}");a1("\\varPsi","\\mathit{\\Psi}");a1("\\varOmega","\\mathit{\\Omega}");a1("\\substack","\\begin{subarray}{c}#1\\end{subarray}");a1("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");a1("\\boxed","\\fbox{$\\displaystyle{#1}$}");a1("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");a1("\\implies","\\DOTSB\\;\\Longrightarrow\\;");a1("\\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"};a1("\\dots",function(t){var e="\\dotso",n=t.expandAfterFuture().text;return n in cj?e=cj[n]:(n.slice(0,4)==="\\not"||n in W0.math&&d2.contains(["bin","rel"],W0.math[n].group))&&(e="\\dotsb"),e});var cT={")":!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};a1("\\dotso",function(t){var e=t.future().text;return e in cT?"\\ldots\\,":"\\ldots"});a1("\\dotsc",function(t){var e=t.future().text;return e in cT&&e!==","?"\\ldots\\,":"\\ldots"});a1("\\cdots",function(t){var e=t.future().text;return e in cT?"\\@cdots\\,":"\\@cdots"});a1("\\dotsb","\\cdots");a1("\\dotsm","\\cdots");a1("\\dotsi","\\!\\cdots");a1("\\dotsx","\\ldots\\,");a1("\\DOTSI","\\relax");a1("\\DOTSB","\\relax");a1("\\DOTSX","\\relax");a1("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");a1("\\,","\\tmspace+{3mu}{.1667em}");a1("\\thinspace","\\,");a1("\\>","\\mskip{4mu}");a1("\\:","\\tmspace+{4mu}{.2222em}");a1("\\medspace","\\:");a1("\\;","\\tmspace+{5mu}{.2777em}");a1("\\thickspace","\\;");a1("\\!","\\tmspace-{3mu}{.1667em}");a1("\\negthinspace","\\!");a1("\\negmedspace","\\tmspace-{4mu}{.2222em}");a1("\\negthickspace","\\tmspace-{5mu}{.277em}");a1("\\enspace","\\kern.5em ");a1("\\enskip","\\hskip.5em\\relax");a1("\\quad","\\hskip1em\\relax");a1("\\qquad","\\hskip2em\\relax");a1("\\tag","\\@ifstar\\tag@literal\\tag@paren");a1("\\tag@paren","\\tag@literal{({#1})}");a1("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new zt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});a1("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");a1("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");a1("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");a1("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");a1("\\newline","\\\\\\relax");a1("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var UX=bt(fi["Main-Regular"][84][1]-.7*fi["Main-Regular"][65][1]);a1("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+UX+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");a1("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+UX+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");a1("\\hspace","\\@ifstar\\@hspacer\\@hspace");a1("\\@hspace","\\hskip #1\\relax");a1("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");a1("\\ordinarycolon",":");a1("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");a1("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');a1("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');a1("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');a1("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');a1("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');a1("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');a1("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');a1("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');a1("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');a1("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');a1("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');a1("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');a1("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');a1("∷","\\dblcolon");a1("∹","\\eqcolon");a1("≔","\\coloneqq");a1("≕","\\eqqcolon");a1("⩴","\\Coloneqq");a1("\\ratio","\\vcentcolon");a1("\\coloncolon","\\dblcolon");a1("\\colonequals","\\coloneqq");a1("\\coloncolonequals","\\Coloneqq");a1("\\equalscolon","\\eqqcolon");a1("\\equalscoloncolon","\\Eqqcolon");a1("\\colonminus","\\coloneq");a1("\\coloncolonminus","\\Coloneq");a1("\\minuscolon","\\eqcolon");a1("\\minuscoloncolon","\\Eqcolon");a1("\\coloncolonapprox","\\Colonapprox");a1("\\coloncolonsim","\\Colonsim");a1("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");a1("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");a1("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");a1("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");a1("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");a1("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");a1("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");a1("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");a1("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");a1("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");a1("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");a1("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");a1("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");a1("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");a1("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");a1("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");a1("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");a1("\\nleqq","\\html@mathml{\\@nleqq}{≰}");a1("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");a1("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");a1("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");a1("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");a1("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");a1("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");a1("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");a1("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");a1("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");a1("\\imath","\\html@mathml{\\@imath}{ı}");a1("\\jmath","\\html@mathml{\\@jmath}{ȷ}");a1("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");a1("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");a1("⟦","\\llbracket");a1("⟧","\\rrbracket");a1("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");a1("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");a1("⦃","\\lBrace");a1("⦄","\\rBrace");a1("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");a1("⦵","\\minuso");a1("\\darr","\\downarrow");a1("\\dArr","\\Downarrow");a1("\\Darr","\\Downarrow");a1("\\lang","\\langle");a1("\\rang","\\rangle");a1("\\uarr","\\uparrow");a1("\\uArr","\\Uparrow");a1("\\Uarr","\\Uparrow");a1("\\N","\\mathbb{N}");a1("\\R","\\mathbb{R}");a1("\\Z","\\mathbb{Z}");a1("\\alef","\\aleph");a1("\\alefsym","\\aleph");a1("\\Alpha","\\mathrm{A}");a1("\\Beta","\\mathrm{B}");a1("\\bull","\\bullet");a1("\\Chi","\\mathrm{X}");a1("\\clubs","\\clubsuit");a1("\\cnums","\\mathbb{C}");a1("\\Complex","\\mathbb{C}");a1("\\Dagger","\\ddagger");a1("\\diamonds","\\diamondsuit");a1("\\empty","\\emptyset");a1("\\Epsilon","\\mathrm{E}");a1("\\Eta","\\mathrm{H}");a1("\\exist","\\exists");a1("\\harr","\\leftrightarrow");a1("\\hArr","\\Leftrightarrow");a1("\\Harr","\\Leftrightarrow");a1("\\hearts","\\heartsuit");a1("\\image","\\Im");a1("\\infin","\\infty");a1("\\Iota","\\mathrm{I}");a1("\\isin","\\in");a1("\\Kappa","\\mathrm{K}");a1("\\larr","\\leftarrow");a1("\\lArr","\\Leftarrow");a1("\\Larr","\\Leftarrow");a1("\\lrarr","\\leftrightarrow");a1("\\lrArr","\\Leftrightarrow");a1("\\Lrarr","\\Leftrightarrow");a1("\\Mu","\\mathrm{M}");a1("\\natnums","\\mathbb{N}");a1("\\Nu","\\mathrm{N}");a1("\\Omicron","\\mathrm{O}");a1("\\plusmn","\\pm");a1("\\rarr","\\rightarrow");a1("\\rArr","\\Rightarrow");a1("\\Rarr","\\Rightarrow");a1("\\real","\\Re");a1("\\reals","\\mathbb{R}");a1("\\Reals","\\mathbb{R}");a1("\\Rho","\\mathrm{P}");a1("\\sdot","\\cdot");a1("\\sect","\\S");a1("\\spades","\\spadesuit");a1("\\sub","\\subset");a1("\\sube","\\subseteq");a1("\\supe","\\supseteq");a1("\\Tau","\\mathrm{T}");a1("\\thetasym","\\vartheta");a1("\\weierp","\\wp");a1("\\Zeta","\\mathrm{Z}");a1("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");a1("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");a1("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");a1("\\bra","\\mathinner{\\langle{#1}|}");a1("\\ket","\\mathinner{|{#1}\\rangle}");a1("\\braket","\\mathinner{\\langle{#1}\\rangle}");a1("\\Bra","\\left\\langle#1\\right|");a1("\\Ket","\\left|#1\\right\\rangle");var WX=t=>e=>{var n=e.consumeArg().tokens,a=e.consumeArg().tokens,r=e.consumeArg().tokens,o=e.consumeArg().tokens,c=e.macros.get("|"),l=e.macros.get("\\|");e.macros.beginGroup();var h=v=>f=>{t&&(f.macros.set("|",c),r.length&&f.macros.set("\\|",l));var d=v;if(!v&&r.length){var z=f.future();z.text==="|"&&(f.popToken(),d=!0)}return{tokens:d?r:a,numArgs:0}};e.macros.set("|",h(!1)),r.length&&e.macros.set("\\|",h(!0));var s=e.consumeArg().tokens,u=e.expandTokens([...o,...s,...n]);return e.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};a1("\\bra@ket",WX(!1));a1("\\bra@set",WX(!0));a1("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");a1("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");a1("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");a1("\\angln","{\\angl n}");a1("\\blue","\\textcolor{##6495ed}{#1}");a1("\\orange","\\textcolor{##ffa500}{#1}");a1("\\pink","\\textcolor{##ff00af}{#1}");a1("\\red","\\textcolor{##df0030}{#1}");a1("\\green","\\textcolor{##28ae7b}{#1}");a1("\\gray","\\textcolor{gray}{#1}");a1("\\purple","\\textcolor{##9d38bd}{#1}");a1("\\blueA","\\textcolor{##ccfaff}{#1}");a1("\\blueB","\\textcolor{##80f6ff}{#1}");a1("\\blueC","\\textcolor{##63d9ea}{#1}");a1("\\blueD","\\textcolor{##11accd}{#1}");a1("\\blueE","\\textcolor{##0c7f99}{#1}");a1("\\tealA","\\textcolor{##94fff5}{#1}");a1("\\tealB","\\textcolor{##26edd5}{#1}");a1("\\tealC","\\textcolor{##01d1c1}{#1}");a1("\\tealD","\\textcolor{##01a995}{#1}");a1("\\tealE","\\textcolor{##208170}{#1}");a1("\\greenA","\\textcolor{##b6ffb0}{#1}");a1("\\greenB","\\textcolor{##8af281}{#1}");a1("\\greenC","\\textcolor{##74cf70}{#1}");a1("\\greenD","\\textcolor{##1fab54}{#1}");a1("\\greenE","\\textcolor{##0d923f}{#1}");a1("\\goldA","\\textcolor{##ffd0a9}{#1}");a1("\\goldB","\\textcolor{##ffbb71}{#1}");a1("\\goldC","\\textcolor{##ff9c39}{#1}");a1("\\goldD","\\textcolor{##e07d10}{#1}");a1("\\goldE","\\textcolor{##a75a05}{#1}");a1("\\redA","\\textcolor{##fca9a9}{#1}");a1("\\redB","\\textcolor{##ff8482}{#1}");a1("\\redC","\\textcolor{##f9685d}{#1}");a1("\\redD","\\textcolor{##e84d39}{#1}");a1("\\redE","\\textcolor{##bc2612}{#1}");a1("\\maroonA","\\textcolor{##ffbde0}{#1}");a1("\\maroonB","\\textcolor{##ff92c6}{#1}");a1("\\maroonC","\\textcolor{##ed5fa6}{#1}");a1("\\maroonD","\\textcolor{##ca337c}{#1}");a1("\\maroonE","\\textcolor{##9e034e}{#1}");a1("\\purpleA","\\textcolor{##ddd7ff}{#1}");a1("\\purpleB","\\textcolor{##c6b9fc}{#1}");a1("\\purpleC","\\textcolor{##aa87ff}{#1}");a1("\\purpleD","\\textcolor{##7854ab}{#1}");a1("\\purpleE","\\textcolor{##543b78}{#1}");a1("\\mintA","\\textcolor{##f5f9e8}{#1}");a1("\\mintB","\\textcolor{##edf2df}{#1}");a1("\\mintC","\\textcolor{##e0e5cc}{#1}");a1("\\grayA","\\textcolor{##f6f7f7}{#1}");a1("\\grayB","\\textcolor{##f0f1f2}{#1}");a1("\\grayC","\\textcolor{##e3e5e6}{#1}");a1("\\grayD","\\textcolor{##d6d8da}{#1}");a1("\\grayE","\\textcolor{##babec2}{#1}");a1("\\grayF","\\textcolor{##888d93}{#1}");a1("\\grayG","\\textcolor{##626569}{#1}");a1("\\grayH","\\textcolor{##3b3e40}{#1}");a1("\\grayI","\\textcolor{##21242c}{#1}");a1("\\kaBlue","\\textcolor{##314453}{#1}");a1("\\kaGreen","\\textcolor{##71B307}{#1}");var qX={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class mC1{constructor(e,n,a){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=n,this.expansionCount=0,this.feed(e),this.macros=new gC1(pC1,n.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new ij(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 n,a,r;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:r,end:a}=this.consumeArg(["]"])}else({tokens:r,start:n,end:a}=this.consumeArg());return this.pushToken(new Hi("EOF",a.loc)),this.pushTokens(r),n.range(a,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var n=[],a=e&&e.length>0;a||this.consumeSpaces();var r=this.future(),o,c=0,l=0;do{if(o=this.popToken(),n.push(o),o.text==="{")++c;else if(o.text==="}"){if(--c,c===-1)throw new zt("Extra }",o)}else if(o.text==="EOF")throw new zt("Unexpected end of input in a macro argument, expected '"+(e&&a?e[l]:"}")+"'",o);if(e&&a)if((c===0||c===1&&e[l]==="{")&&o.text===e[l]){if(++l,l===e.length){n.splice(-l,l);break}}else l=0}while(c!==0||a);return r.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:r,end:o}}consumeArgs(e,n){if(n){if(n.length!==e+1)throw new zt("The length of delimiters doesn't match the number of args!");for(var a=n[0],r=0;rthis.settings.maxExpand)throw new zt("Too many expansions: infinite loop or need to increase maxExpand setting");var o=r.tokens,c=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){o=o.slice();for(var l=o.length-1;l>=0;--l){var h=o[l];if(h.text==="#"){if(l===0)throw new zt("Incomplete placeholder at end of macro body",h);if(h=o[--l],h.text==="#")o.splice(l+1,1);else if(/^[1-9]$/.test(h.text))o.splice(l,2,...c[+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 Hi(e)]):void 0}expandTokens(e){var n=[],a=this.stack.length;for(this.pushTokens(e);this.stack.length>a;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),n.push(r)}return n}expandMacroAsText(e){var n=this.expandMacro(e);return n&&n.map(a=>a.text).join("")}_getExpansion(e){var n=this.macros.get(e);if(n==null)return n;if(e.length===1){var a=this.lexer.catcodes[e];if(a!=null&&a!==13)return}var r=typeof n=="function"?n(this):n;if(typeof r=="string"){var o=0;if(r.indexOf("#")!==-1)for(var c=r.replace(/##/g,"");c.indexOf("#"+(o+1))!==-1;)++o;for(var l=new ij(r,this.settings),h=[],s=l.lex();s.text!=="EOF";)h.push(s),s=l.lex();h.reverse();var u={tokens:h,numArgs:o};return u}return r}isDefined(e){return this.macros.has(e)||j3.hasOwnProperty(e)||W0.math.hasOwnProperty(e)||W0.text.hasOwnProperty(e)||qX.hasOwnProperty(e)}isExpandable(e){var n=this.macros.get(e);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:j3.hasOwnProperty(e)&&!j3[e].primitive}}var lj=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Xx={"́":{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"}},sj={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let GX=class sL{constructor(e,n){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 mC1(e,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(e,n){if(n===void 0&&(n=!0),this.fetch().text!==e)throw new zt("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());n&&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 n=this.nextToken;this.consume(),this.gullet.pushToken(new Hi("}")),this.gullet.pushTokens(e);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,a}parseExpression(e,n){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var r=this.fetch();if(sL.endOfExpression.indexOf(r.text)!==-1||n&&r.text===n||e&&j3[r.text]&&j3[r.text].infix)break;var o=this.parseAtom(n);if(o){if(o.type==="internal")continue}else break;a.push(o)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(e){for(var n=-1,a,r=0;r=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',e);var l=W0[this.mode][n].group,h=Jn.range(e),s;if(iV1.hasOwnProperty(l)){var u=l;s={type:"atom",mode:this.mode,family:u,loc:h,text:n}}else s={type:l,mode:this.mode,loc:h,text:n};c=s}else if(n.charCodeAt(0)>=128)this.settings.strict&&(eX(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),e)),c={type:"textord",mode:"text",loc:Jn.range(e),text:n};else return null;if(this.consume(),o)for(var v=0;vc&&(c=o):o=1,r=a+e.length,a=n.indexOf(e,r);return c}function yC1(){return{enter:{mathFlow:t,mathFlowFenceMeta:e,mathText:o},exit:{mathFlow:r,mathFlowFence:a,mathFlowFenceMeta:n,mathFlowValue:l,mathText:c,mathTextData:l}};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 n(){const h=this.resume(),s=this.stack[this.stack.length-1];s.meta=h}function a(){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 c(h){const s=this.resume(),u=this.exit(h);u.value=s,u.data.hChildren[0].value=s}function l(h){this.config.enter.data.call(this,h),this.config.exit.data.call(this,h)}}function xC1(t){let e=(t||{}).singleDollarTextMath;return e==null&&(e=!0),a.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:n,inlineMath:a}};function n(o,c,l,h){const s=o.value||"",u=Uh(h),v="$".repeat(Math.max(wC1(s,"$")+1,2)),f=l.enter("mathFlow");let d=u.move(v);if(o.meta){const z=l.enter("mathFlowMeta");d+=u.move($S(l,o.meta,{before:d,after:` +`,encode:["$"],...u.current()})),z()}return d+=u.move(` `),s&&(d+=u.move(s+` -`)),d+=u.move(v),f(),d}function a(o,c,l){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&&l.push(` -`.repeat(h)||" "),h=-1,l.push(s))}return l.join("")}function QX(t,e,n){return t.type==="element"?_C1(t,e,n):t.type==="text"?n.whitespace==="normal"?XX(t,n):TC1(t):[]}function _C1(t,e,n){const a=JX(t,n),r=t.children||[];let o=-1,c=[];if(BC1(t))return c;let l,h;for(hL(t)||gj(t)&&uj(e,t,gj)?h=` -`:LC1(t)?(l=2,h=2):ZX(t)&&(l=1,h=1);++o{jh(a,"element",o=>{const c=o.properties&&Array.isArray(o.properties.className)?o.properties.className:[],l=c.includes("math-inline"),h=c.includes("math-display");if(!l&&!h)return;const s=SC1(o,{whitespace:"pre"});let u;try{u=hj.renderToString(s,mj({},e,{displayMode:h,throwOnError:!0}))}catch(f){const d=f,M=n?"fail":"message",g=[UC1,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=hj.renderToString(s,mj({},e,{displayMode:h,throwOnError:!1,strict:"ignore"}))}const v=FC1(u,{fragment:!0});o.children=v.children})}}const qC1=Object.freeze(Object.defineProperty({__proto__:null,default:WC1},Symbol.toStringTag,{value:"Module"})),GC1=se(qC1);/*! +`)),d+=u.move(v),f(),d}function a(o,c,l){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&&l.push(` +`.repeat(h)||" "),h=-1,l.push(s))}return l.join("")}function XX(t,e,n){return t.type==="element"?OC1(t,e,n):t.type==="text"?n.whitespace==="normal"?JX(t,n):AC1(t):[]}function OC1(t,e,n){const a=tJ(t,n),r=t.children||[];let o=-1,c=[];if(SC1(t))return c;let l,h;for(hL(t)||gj(t)&&uj(e,t,gj)?h=` +`:_C1(t)?(l=2,h=2):QX(t)&&(l=1,h=1);++o{jh(a,"element",o=>{const c=o.properties&&Array.isArray(o.properties.className)?o.properties.className:[],l=c.includes("math-inline"),h=c.includes("math-display");if(!l&&!h)return;const s=TC1(o,{whitespace:"pre"});let u;try{u=hj.renderToString(s,mj({},e,{displayMode:h,throwOnError:!0}))}catch(f){const d=f,z=n?"fail":"message",g=[qC1,d.name.toLowerCase()].join(":");if(r[z](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=hj.renderToString(s,mj({},e,{displayMode:h,throwOnError:!1,strict:"ignore"}))}const v=UC1(u,{fragment:!0});o.children=v.children})}}const KC1=Object.freeze(Object.defineProperty({__proto__:null,default:GC1},Symbol.toStringTag,{value:"Module"})),YC1=se(KC1);/*! * PhotoSwipe 5.4.3 - https://photoswipe.com * (c) 2023 Dmytro Semenov - */function ia(t,e,n){const a=document.createElement(e);return t&&(a.className=t),n&&n.appendChild(a),a}function Fe(t,e){return t.x=e.x,t.y=e.y,e.id!==void 0&&(t.id=e.id),t}function nJ(t){t.x=Math.round(t.x),t.y=Math.round(t.y)}function uL(t,e){const n=Math.abs(t.x-e.x),a=Math.abs(t.y-e.y);return Math.sqrt(n*n+a*a)}function is(t,e){return t.x===e.x&&t.y===e.y}function Kh(t,e,n){return Math.min(Math.max(t,e),n)}function qs(t,e,n){let a=`translate3d(${t}px,${e||0}px,0)`;return n!==void 0&&(a+=` scale3d(${n},${n},1)`),a}function C8(t,e,n,a){t.style.transform=qs(e,n,a)}const KC1="cubic-bezier(.4,0,.22,1)";function aJ(t,e,n,a){t.style.transition=e?`${e} ${n}ms ${a||KC1}`:"none"}function vL(t,e,n){t.style.width=typeof e=="number"?`${e}px`:e,t.style.height=typeof n=="number"?`${n}px`:n}function YC1(t){aJ(t)}function ZC1(t){return"decode"in t?t.decode().catch(()=>{}):t.complete?Promise.resolve(t):new Promise((e,n)=>{t.onload=()=>e(t),t.onerror=n})}const xa={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function QC1(t){return"button"in t&&t.button===1||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function XC1(t,e,n=document){let a=[];if(t instanceof Element)a=[t];else if(t instanceof NodeList||Array.isArray(t))a=Array.from(t);else{const r=typeof t=="string"?t:e;r&&(a=Array.from(n.querySelectorAll(r)))}return a}function zj(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}let rJ=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{rJ=!0}}))}catch{}class JC1{constructor(){this._pool=[]}add(e,n,a,r){this._toggleListener(e,n,a,r)}remove(e,n,a,r){this._toggleListener(e,n,a,r,!0)}removeAll(){this._pool.forEach(e=>{this._toggleListener(e.target,e.type,e.listener,e.passive,!0,!0)}),this._pool=[]}_toggleListener(e,n,a,r,o,c){if(!e)return;const l=o?"removeEventListener":"addEventListener";n.split(" ").forEach(s=>{if(s){c||(o?this._pool=this._pool.filter(v=>v.type!==s||v.listener!==a||v.target!==e):this._pool.push({target:e,type:s,listener:a,passive:r}));const u=rJ?{passive:r||!1}:!1;e[l](s,a,u)}})}}function iJ(t,e){if(t.getViewportSizeFn){const n=t.getViewportSizeFn(t,e);if(n)return n}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function L7(t,e,n,a,r){let o=0;if(e.paddingFn)o=e.paddingFn(n,a,r)[t];else if(e.padding)o=e.padding[t];else{const c="padding"+t[0].toUpperCase()+t.slice(1);e[c]&&(o=e[c])}return Number(o)||0}function oJ(t,e,n,a){return{x:e.x-L7("left",t,e,n,a)-L7("right",t,e,n,a),y:e.y-L7("top",t,e,n,a)-L7("bottom",t,e,n,a)}}class tb1{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:n}=this.slide,a=this.slide[e==="x"?"width":"height"]*this.currZoomLevel,o=L7(e==="x"?"left":"top",n.options,n.viewportSize,this.slide.data,this.slide.index),c=this.slide.panAreaSize[e];this.center[e]=Math.round((c-a)/2)+o,this.max[e]=a>c?Math.round(c-a)+o:this.center[e],this.min[e]=a>c?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,n){return Kh(n,this.max[e],this.min[e])}}const Mj=4e3;class cJ{constructor(e,n,a,r){this.pswp=r,this.options=e,this.itemData=n,this.index=a,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,n,a){const r={x:e,y:n};this.elementSize=r,this.panAreaSize=a;const o=a.x/r.x,c=a.y/r.y;this.fit=Math.min(1,oc?o:c),this.vFill=Math.min(1,c),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 n=e+"ZoomLevel",a=this.options[n];if(a)return typeof a=="function"?a(this):a==="fill"?this.fill:a==="fit"?this.fit:Number(a)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,this.fit*3),this.elementSize&&e*this.elementSize.x>Mj&&(e=Mj/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}}class eb1{constructor(e,n,a){this.data=e,this.index=n,this.pswp=a,this.isActive=n===a.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!a.opener.isOpen,this.zoomLevels=new cJ(a.options,e,n,a),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:n}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=ia("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 tb1(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 n=this.currentResolution||this.zoomLevels.initial;if(!n)return;const a=Math.round(this.width*n)||this.pswp.viewportSize.x,r=Math.round(this.height*n)||this.pswp.viewportSize.y;!this.sizeChanged(a,r)&&!e||this.content.setDisplayedSize(a,r)}sizeChanged(e,n){return e!==this.prevDisplayedWidth||n!==this.prevDisplayedHeight?(this.prevDisplayedWidth=e,this.prevDisplayedHeight=n,!0):!1}getPlaceholderElement(){var e;return(e=this.content.placeholder)===null||e===void 0?void 0:e.element}zoomTo(e,n,a,r){const{pswp:o}=this;if(!this.isZoomable()||o.mainScroll.isShifted())return;o.dispatch("beforeZoomTo",{destZoomLevel:e,centerPoint:n,transitionDuration:a}),o.animations.stopAllPan();const c=this.currZoomLevel;r||(e=Kh(e,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(e),this.pan.x=this.calculateZoomToPanOffset("x",n,c),this.pan.y=this.calculateZoomToPanOffset("y",n,c),nJ(this.pan);const l=()=>{this._setResolution(e),this.applyCurrentZoomPan()};a?o.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:l,duration:a,easing:o.options.easing}):l()}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,n,a){if(this.bounds.max[e]-this.bounds.min[e]===0)return this.bounds.center[e];n||(n=this.pswp.getViewportCenterPoint()),a||(a=this.zoomLevels.initial);const o=this.currZoomLevel/a;return this.bounds.correctPan(e,(this.pan[e]-n[e])*o+n[e])}panTo(e,n){this.pan.x=this.bounds.correctPan("x",e),this.pan.y=this.bounds.correctPan("y",n),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),Fe(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(e,n,a){a/=this.currentResolution||this.zoomLevels.initial,C8(this.container,e,n,a)}calculateSize(){const{pswp:e}=this;Fe(this.panAreaSize,oJ(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 nb1=.35,ab1=.6,Hj=.4,wj=.5;function rb1(t,e){return t*e/(1-e)}class ib1{constructor(e){this.gestures=e,this.pswp=e.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&Fe(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:e,prevP1:n,dragAxis:a}=this.gestures,{currSlide:r}=this.pswp;if(a==="y"&&this.pswp.options.closeOnVerticalDrag&&r&&r.currZoomLevel<=r.zoomLevels.fit&&!this.gestures.isMultitouch){const o=r.pan.y+(e.y-n.y);if(!this.pswp.dispatch("verticalDrag",{panY:o}).defaultPrevented){this._setPanWithFriction("y",o,ab1);const c=1-Math.abs(this._getVerticalDragRatio(r.pan.y));this.pswp.applyBgOpacity(c),r.applyCurrentZoomPan()}}else this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),r&&(nJ(r.pan),r.applyCurrentZoomPan()))}end(){const{velocity:e}=this.gestures,{mainScroll:n,currSlide:a}=this.pswp;let r=0;if(this.pswp.animations.stopAll(),n.isShifted()){const c=(n.x-n.getCurrSlideX())/this.pswp.viewportSize.x;e.x<-wj&&c<0||e.x<.1&&c<-.5?(r=1,e.x=Math.min(e.x,0)):(e.x>wj&&c>0||e.x>-.1&&c>.5)&&(r=-1,e.x=Math.max(e.x,0)),n.moveIndexBy(r,!0,e.x)}a&&a.currZoomLevel>a.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(e){const{velocity:n}=this.gestures,{currSlide:a}=this.pswp;if(!a)return;const{pan:r,bounds:o}=a,c=r[e],l=this.pswp.bgOpacity<1&&e==="y",s=c+rb1(n[e],.995);if(l){const M=this._getVerticalDragRatio(c),g=this._getVerticalDragRatio(s);if(M<0&&g<-Hj||M>0&&g>Hj){this.pswp.close();return}}const u=o.correctPan(e,s);if(c===u)return;const v=u===s?1:.82,f=this.pswp.bgOpacity,d=u-c;this.pswp.animations.startSpring({name:"panGesture"+e,isPan:!0,start:c,end:u,velocity:n[e],dampingRatio:v,onUpdate:M=>{if(l&&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),a.applyCurrentZoomPan()}})}_panOrMoveMainScroll(e){const{p1:n,dragAxis:a,prevP1:r,isMultitouch:o}=this.gestures,{currSlide:c,mainScroll:l}=this.pswp,h=n[e]-r[e],s=l.x+h;if(!h||!c)return!1;if(e==="x"&&!c.isPannable()&&!o)return l.moveTo(s,!0),!0;const{bounds:u}=c,v=c.pan[e]+h;if(this.pswp.options.allowPanToNext&&a==="x"&&e==="x"&&!o){const f=l.getCurrSlideX(),d=l.x-f,M=h>0,g=!M;if(v>u.min[e]&&M){if(u.min[e]<=this.startPan[e])return l.moveTo(s,!0),!0;this._setPanWithFriction(e,v)}else if(v0)return l.moveTo(Math.max(s,f),!0),!0;if(d<0)return l.moveTo(Math.min(s,f),!0),!0}else this._setPanWithFriction(e,v)}else e==="y"?!l.isShifted()&&u.min.y!==u.max.y&&this._setPanWithFriction(e,v):this._setPanWithFriction(e,v);return!1}_getVerticalDragRatio(e){var n,a;return(e-((n=(a=this.pswp.currSlide)===null||a===void 0?void 0:a.bounds.center.y)!==null&&n!==void 0?n:0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(e,n,a){const{currSlide:r}=this.pswp;if(!r)return;const{pan:o,bounds:c}=r;if(c.correctPan(e,n)!==n||a){const h=Math.round(n-o[e]);o[e]+=h*(a||nb1)}else o[e]=n}}const ob1=.05,cb1=.15;function yj(t,e,n){return t.x=(e.x+n.x)/2,t.y=(e.y+n.y)/2,t}class lb1{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,Fe(this._startPan,e.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:e,startP1:n,p2:a,startP2:r,pswp:o}=this.gestures,{currSlide:c}=o;if(!c)return;const l=c.zoomLevels.min,h=c.zoomLevels.max;if(!c.isZoomable()||o.mainScroll.isShifted())return;yj(this._startZoomPoint,n,r),yj(this._zoomPoint,e,a);let s=1/uL(n,r)*uL(e,a)*this._startZoomLevel;if(s>c.zoomLevels.initial+c.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),sh&&(s=h+(s-h)*ob1);c.pan.x=this._calculatePanForZoomLevel("x",s),c.pan.y=this._calculatePanForZoomLevel("y",s),c.setZoomLevel(s),c.applyCurrentZoomPan()}end(){const{pswp:e}=this.gestures,{currSlide:n}=e;(!n||n.currZoomLevela.zoomLevels.max?o=a.zoomLevels.max:(c=!1,o=r);const l=n.bgOpacity,h=n.bgOpacity<1,s=Fe({x:0,y:0},a.pan);let u=Fe({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,Fe(this._startPan,s)),c&&(u={x:this._calculatePanForZoomLevel("x",o),y:this._calculatePanForZoomLevel("y",o)}),a.setZoomLevel(o),u={x:a.bounds.correctPan("x",u.x),y:a.bounds.correctPan("y",u.y)},a.setZoomLevel(r);const v=!is(u,s);if(!v&&!c&&!h){a._setResolution(o),a.applyCurrentZoomPan();return}n.animations.stopAllPan(),n.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:f=>{if(f/=1e3,v||c){if(v&&(a.pan.x=s.x+(u.x-s.x)*f,a.pan.y=s.y+(u.y-s.y)*f),c){const d=r+(o-r)*f;a.setZoomLevel(d)}a.applyCurrentZoomPan()}h&&n.bgOpacity<1&&n.applyBgOpacity(Kh(l+(1-l)*f,0,1))},onComplete:()=>{a._setResolution(o),a.applyCurrentZoomPan()}})}}function xj(t){return!!t.target.closest(".pswp__container")}class sb1{constructor(e){this.gestures=e}click(e,n){const a=n.target.classList,r=a.contains("pswp__img"),o=a.contains("pswp__item")||a.contains("pswp__zoom-wrap");r?this._doClickOrTapAction("imageClick",e,n):o&&this._doClickOrTapAction("bgClick",e,n)}tap(e,n){xj(n)&&this._doClickOrTapAction("tap",e,n)}doubleTap(e,n){xj(n)&&this._doClickOrTapAction("doubleTap",e,n)}_doClickOrTapAction(e,n,a){var r;const{pswp:o}=this.gestures,{currSlide:c}=o,l=e+"Action",h=o.options[l];if(!o.dispatch(l,{point:n,originalEvent:a}).defaultPrevented){if(typeof h=="function"){h.call(o,n,a);return}switch(h){case"close":case"next":o[h]();break;case"zoom":c==null||c.toggleZoom(n);break;case"zoom-or-close":c!=null&&c.isZoomable()&&c.zoomLevels.secondary!==c.zoomLevels.initial?c.toggleZoom(n):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 hb1=10,ub1=300,vb1=25;class db1{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 ib1(this),this.zoomLevels=new lb1(this),this.tapHandler=new sb1(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,n,a,r){const{pswp:o}=this,{events:c}=o,l=r?e+r:"";c.add(o.scrollWrap,e+n,this.onPointerDown.bind(this)),c.add(window,e+"move",this.onPointerMove.bind(this)),c.add(window,e+a,this.onPointerUp.bind(this)),l&&c.add(o.scrollWrap,l,this.onPointerUp.bind(this))}onPointerDown(e){const n=e.type==="mousedown"||e.pointerType==="mouse";if(n&&e.button>0)return;const{pswp:a}=this;if(!a.opener.isOpen){e.preventDefault();return}a.dispatch("pointerDown",{originalEvent:e}).defaultPrevented||(n&&(a.mouseDetected(),this._preventPointerEventBehaviour(e,"down")),a.animations.stopAll(),this._updatePoints(e,"down"),this._numActivePoints===1&&(this.dragAxis=null,Fe(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,Fe(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 n=Date.now(),a=n-this._intervalTime;a<50&&!e||(this.velocity.x=this._getVelocity("x",a),this.velocity.y=this._getVelocity("y",a),this._intervalTime=n,Fe(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(e){const{mainScroll:n}=this.pswp;if(n.isShifted()){n.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 a=this.pswp.options.doubleTapAction?ub1:0;this._tapTimer?(this._clearTapTimer(),uL(this._lastStartP1,this.startP1){this.tapHandler.tap(this.startP1,e),this._clearTapTimer()},a))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(e,n){const a=this.p1[e]-this._intervalP1[e];return Math.abs(a)>1&&n>5?a/n:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(e,n){this.pswp.applyFilters("preventPointerEvent",!0,e,n)&&e.preventDefault()}_updatePoints(e,n){if(this._pointerEventEnabled){const a=e,r=this._ongoingPointers.findIndex(o=>o.id===a.pointerId);n==="up"&&r>-1?this._ongoingPointers.splice(r,1):n==="down"&&r===-1?this._ongoingPointers.push(this._convertEventPosToPoint(a,{x:0,y:0})):r>-1&&this._convertEventPosToPoint(a,this._ongoingPointers[r]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&Fe(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&Fe(this.p2,this._ongoingPointers[1])}else{const a=e;this._numActivePoints=0,a.type.indexOf("touch")>-1?a.touches&&a.touches.length>0&&(this._convertEventPosToPoint(a.touches[0],this.p1),this._numActivePoints++,a.touches.length>1&&(this._convertEventPosToPoint(a.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(e,this.p1),n==="up"?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){Fe(this.prevP1,this.p1),Fe(this.prevP2,this.p2)}_updateStartPoints(){Fe(this.startP1,this.p1),Fe(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 n=e>0?"x":"y";Math.abs(this.p1[n]-this.startP1[n])>=hb1&&(this.dragAxis=n)}}}_convertEventPosToPoint(e,n){return n.x=e.pageX-this.pswp.offset.x,n.y=e.pageY-this.pswp.offset.y,"pointerId"in e?n.id=e.pointerId:e.identifier!==void 0&&(n.id=e.identifier),n}_onClick(e){this.pswp.mainScroll.isShifted()&&(e.preventDefault(),e.stopPropagation())}}const fb1=.35;class gb1{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:n}=this,a=Math.round(n.viewportSize.x+n.viewportSize.x*n.options.spacing),r=a!==this.slideWidth;r&&(this.slideWidth=a,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach((o,c)=>{r&&C8(o.el,(c+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 n=ia("pswp__item","div",this.pswp.container);n.setAttribute("role","group"),n.setAttribute("aria-roledescription","slide"),n.setAttribute("aria-hidden","true"),n.style.display=e===1?"block":"none",this.itemHolders.push({el:n})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(e,n,a){const{pswp:r}=this;let o=r.potentialIndex+e;const c=r.getNumItems();if(r.canLoop()){o=r.getLoopedIndex(o);const h=(e+c)%c;h<=c/2?e=h:e=h-c}else o<0?o=0:o>=c&&(o=c-1),e=o-r.potentialIndex;r.potentialIndex=o,this._currPositionIndex-=e,r.animations.stopMainScroll();const l=this.getCurrSlideX();if(!n)this.moveTo(l),this.updateCurrItem();else{r.animations.startSpring({isMainScroll:!0,start:this.x,end:l,velocity:a||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+c)%c;s<=c/2?h=s:h=s-c}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:n}=this,a=this._prevPositionIndex-this._currPositionIndex;if(!a)return;this._prevPositionIndex=this._currPositionIndex,n.currIndex=n.potentialIndex;let r=Math.abs(a),o;r>=3&&(this._containerShiftIndex+=a+(a>0?-3:3),r=3);for(let c=0;c0?(o=this.itemHolders.shift(),o&&(this.itemHolders[2]=o,this._containerShiftIndex++,C8(o.el,(this._containerShiftIndex+2)*this.slideWidth),n.setContent(o,n.currIndex-r+c+2))):(o=this.itemHolders.pop(),o&&(this.itemHolders.unshift(o),this._containerShiftIndex--,C8(o.el,this._containerShiftIndex*this.slideWidth),n.setContent(o,n.currIndex+r-c-2)));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),n.animations.stopAllPan(),this.itemHolders.forEach((c,l)=>{c.slide&&c.slide.setIsActive(l===1)}),n.currSlide=(e=this.itemHolders[1])===null||e===void 0?void 0:e.slide,n.contentLoader.updateLazy(a),n.currSlide&&n.currSlide.applyCurrentZoomPan(),n.dispatch("change")}moveTo(e,n){if(!this.pswp.canLoop()&&n){let a=(this.slideWidth*this._currPositionIndex-e)/this.slideWidth;a+=this.pswp.currIndex;const r=Math.round(e-this.x);(a<0&&r>0||a>=this.pswp.getNumItems()-1&&r<0)&&(e=this.x+r*fb1)}this.x=e,this.pswp.container&&C8(this.pswp.container,e),this.pswp.dispatch("moveMainScroll",{x:e,dragging:n??!1})}}const pb1={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},e8=(t,e)=>e?t:pb1[t];class mb1{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 n=document.activeElement;e.on("destroy",()=>{e.options.returnFocus&&n&&this._wasFocused&&n.focus()})}_focusRoot(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(e){const{pswp:n}=this;if(n.dispatch("keydown",{originalEvent:e}).defaultPrevented||QC1(e))return;let a,r,o=!1;const c="key"in e;switch(c?e.key:e.keyCode){case e8("Escape",c):n.options.escKey&&(a="close");break;case e8("z",c):a="toggleZoom";break;case e8("ArrowLeft",c):r="x";break;case e8("ArrowUp",c):r="y";break;case e8("ArrowRight",c):r="x",o=!0;break;case e8("ArrowDown",c):o=!0,r="y";break;case e8("Tab",c):this._focusRoot();break}if(r){e.preventDefault();const{currSlide:l}=n;n.options.arrowKeys&&r==="x"&&n.getNumItems()>1?a=o?"next":"prev":l&&l.currZoomLevel>l.zoomLevels.fit&&(l.pan[r]+=o?-80:80,l.panTo(l.pan.x,l.pan.y))}a&&(e.preventDefault(),n[a]())}_onFocusIn(e){const{template:n}=this.pswp;n&&document!==e.target&&n!==e.target&&!n.contains(e.target)&&n.focus()}}const zb1="cubic-bezier(.4,0,.22,1)";class Mb1{constructor(e){var n;this.props=e;const{target:a,onComplete:r,transform:o,onFinish:c=()=>{},duration:l=333,easing:h=zb1}=e;this.onFinish=c;const s=o?"transform":"opacity",u=(n=e[s])!==null&&n!==void 0?n:"";this._target=a,this._onComplete=r,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{aJ(a,s,l,h),this._helperTimeout=setTimeout(()=>{a.addEventListener("transitionend",this._onTransitionEnd,!1),a.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},l+500),a.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),YC1(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}const Hb1=12,wb1=.75;class yb1{constructor(e,n,a){this.velocity=e*1e3,this._dampingRatio=n||wb1,this._naturalFrequency=a||Hb1,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(e,n){let a=0,r;n/=1e3;const o=Math.E**(-this._dampingRatio*this._naturalFrequency*n);if(this._dampingRatio===1)r=this.velocity+this._naturalFrequency*e,a=(e+r*n)*o,this.velocity=a*-this._naturalFrequency+r*o;else if(this._dampingRatio<1){r=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*e+this.velocity);const c=Math.cos(this._dampedFrequency*n),l=Math.sin(this._dampedFrequency*n);a=o*(e*c+r*l),this.velocity=a*-this._naturalFrequency*this._dampingRatio+o*(-this._dampedFrequency*e*l+this._dampedFrequency*r*c)}return a}}class xb1{constructor(e){this.props=e,this._raf=0;const{start:n,end:a,velocity:r,onUpdate:o,onComplete:c,onFinish:l=()=>{},dampingRatio:h,naturalFrequency:s}=e;this.onFinish=l;const u=new yb1(r,h,s);let v=Date.now(),f=n-a;const d=()=>{this._raf&&(f=u.easeFrame(f,Date.now()-v),Math.abs(f)<1&&Math.abs(u.velocity)<50?(o(a),c&&c(),this.onFinish()):(v=Date.now(),o(f+a),this._raf=requestAnimationFrame(d)))};this._raf=requestAnimationFrame(d)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}}class Vb1{constructor(){this.activeAnimations=[]}startSpring(e){this._start(e,!0)}startTransition(e){this._start(e)}_start(e,n){const a=n?new xb1(e):new Mb1(e);return this.activeAnimations.push(a),a.onFinish=()=>this.stop(a),a}stop(e){e.destroy();const n=this.activeAnimations.indexOf(e);n>-1&&this.activeAnimations.splice(n,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 Cb1{constructor(e){this.pswp=e,e.events.add(e.element,"wheel",this._onWheel.bind(this))}_onWheel(e){e.preventDefault();const{currSlide:n}=this.pswp;let{deltaX:a,deltaY:r}=e;if(n&&!this.pswp.dispatch("wheel",{originalEvent:e}).defaultPrevented)if(e.ctrlKey||this.pswp.options.wheelToZoom){if(n.isZoomable()){let o=-r;e.deltaMode===1?o*=.05:o*=e.deltaMode?1:.002,o=2**o;const c=n.currZoomLevel*o;n.zoomTo(c,{x:e.clientX,y:e.clientY})}}else n.isPannable()&&(e.deltaMode===1&&(a*=18,r*=18),n.panTo(n.pan.x-a,n.pan.y-r))}}function bb1(t){if(typeof t=="string")return t;if(!t||!t.isCustomSVG)return"";const e=t;let n='",n}class Lb1{constructor(e,n){var a;const r=n.name||n.className;let o=n.html;if(e.options[r]===!1)return;typeof e.options[r+"SVG"]=="string"&&(o=e.options[r+"SVG"]),e.dispatch("uiElementCreate",{data:n});let c="";n.isButton?(c+="pswp__button ",c+=n.className||`pswp__button--${n.name}`):c+=n.className||`pswp__${n.name}`;let l=n.isButton?n.tagName||"button":n.tagName||"div";l=l.toLowerCase();const h=ia(c,l);if(n.isButton){l==="button"&&(h.type="button");let{title:v}=n;const{ariaLabel:f}=n;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=bb1(o),n.onInit&&n.onInit(h,e),n.onClick&&(h.onclick=v=>{typeof n.onClick=="string"?e[n.onClick]():typeof n.onClick=="function"&&n.onClick(v,h,e)});const s=n.appendTo||"bar";let u=e.element;s==="bar"?(e.topBar||(e.topBar=ia("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)),(a=u)===null||a===void 0||a.appendChild(e.applyFilters("uiElement",h,n))}}function lJ(t,e,n){t.classList.add("pswp__button--arrow"),t.setAttribute("aria-controls","pswp__items"),e.on("change",()=>{e.options.loop||(n?t.disabled=!(e.currIndex0))})}const Bb1={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:lJ},Sb1={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)=>{lJ(t,e,!0)}},_b1={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-close"},onClick:"close"},Tb1={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},Ob1={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-loading"},onInit:(t,e)=>{let n,a=null;const r=(l,h)=>{t.classList.toggle("pswp__preloader--"+l,h)},o=l=>{n!==l&&(n=l,r("active",l))},c=()=>{var l;if(!((l=e.currSlide)!==null&&l!==void 0&&l.content.isLoading())){o(!1),a&&(clearTimeout(a),a=null);return}a||(a=setTimeout(()=>{var h;o(!!(!((h=e.currSlide)===null||h===void 0)&&h.content.isLoading())),a=null},e.options.preloaderDelay))};e.on("change",c),e.on("loadComplete",l=>{e.currSlide===l.slide&&c()}),e.ui&&(e.ui.updatePreloaderVisibility=c)}},Ab1={name:"counter",order:5,onInit:(t,e)=>{e.on("change",()=>{t.innerText=e.currIndex+1+e.options.indexIndicatorSep+e.getNumItems()})}};function Vj(t,e){t.classList.toggle("pswp--zoomed-in",e)}class kb1{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=[_b1,Bb1,Sb1,Tb1,Ob1,Ab1],e.dispatch("uiRegister"),this.uiElementsData.sort((n,a)=>(n.order||0)-(a.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(n=>{this.registerElement(n)}),e.on("change",()=>{var n;(n=e.element)===null||n===void 0||n.classList.toggle("pswp--one-slide",e.getNumItems()===1)}),e.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(e){this.isRegistered?this.items.push(new Lb1(this.pswp,e)):this.uiElementsData.push(e)}_onZoomPanUpdate(){const{template:e,currSlide:n,options:a}=this.pswp;if(this.pswp.opener.isClosing||!e||!n)return;let{currZoomLevel:r}=n;if(this.pswp.opener.isOpen||(r=n.zoomLevels.initial),r===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=r;const o=n.zoomLevels.initial-n.zoomLevels.secondary;if(Math.abs(o)<.01||!n.isZoomable()){Vj(e,!1),e.classList.remove("pswp--zoom-allowed");return}e.classList.add("pswp--zoom-allowed");const c=r===n.zoomLevels.initial?n.zoomLevels.secondary:n.zoomLevels.initial;Vj(e,c<=r),(a.imageClickAction==="zoom"||a.imageClickAction==="zoom-or-close")&&e.classList.add("pswp--click-to-zoom")}}function Eb1(t){const e=t.getBoundingClientRect();return{x:e.left,y:e.top,w:e.width}}function Pb1(t,e,n){const a=t.getBoundingClientRect(),r=a.width/e,o=a.height/n,c=r>o?r:o,l=(a.width-e*c)/2,h=(a.height-n*c)/2,s={x:a.left+l,y:a.top+h,w:e*c};return s.innerRect={w:a.width,h:a.height,x:l,y:h},s}function Nb1(t,e,n){const a=n.dispatch("thumbBounds",{index:t,itemData:e,instance:n});if(a.thumbBounds)return a.thumbBounds;const{element:r}=e;let o,c;if(r&&n.options.thumbSelector!==!1){const l=n.options.thumbSelector||"img";c=r.matches(l)?r:r.querySelector(l)}return c=n.applyFilters("thumbEl",c,e,t),c&&(e.thumbCropped?o=Pb1(c,e.width||e.w||0,e.height||e.h||0):o=Eb1(c)),n.applyFilters("thumbBounds",o,e,t)}class Db1{constructor(e,n){this.type=e,this.defaultPrevented=!1,n&&Object.assign(this,n)}preventDefault(){this.defaultPrevented=!0}}class Rb1{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,n,a=100){var r,o,c;this._filters[e]||(this._filters[e]=[]),(r=this._filters[e])===null||r===void 0||r.push({fn:n,priority:a}),(o=this._filters[e])===null||o===void 0||o.sort((l,h)=>l.priority-h.priority),(c=this.pswp)===null||c===void 0||c.addFilter(e,n,a)}removeFilter(e,n){this._filters[e]&&(this._filters[e]=this._filters[e].filter(a=>a.fn!==n)),this.pswp&&this.pswp.removeFilter(e,n)}applyFilters(e,...n){var a;return(a=this._filters[e])===null||a===void 0||a.forEach(r=>{n[0]=r.fn.apply(this,n)}),n[0]}on(e,n){var a,r;this._listeners[e]||(this._listeners[e]=[]),(a=this._listeners[e])===null||a===void 0||a.push(n),(r=this.pswp)===null||r===void 0||r.on(e,n)}off(e,n){var a;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(r=>n!==r)),(a=this.pswp)===null||a===void 0||a.off(e,n)}dispatch(e,n){var a;if(this.pswp)return this.pswp.dispatch(e,n);const r=new Db1(e,n);return(a=this._listeners[e])===null||a===void 0||a.forEach(o=>{o.call(this,r)}),r}}class jb1{constructor(e,n){if(this.element=ia("pswp__img pswp__img--placeholder",e?"img":"div",n),e){const a=this.element;a.decoding="async",a.alt="",a.src=e,a.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,n){this.element&&(this.element.tagName==="IMG"?(vL(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=qs(0,0,e/250)):vL(this.element,e,n))}destroy(){var e;(e=this.element)!==null&&e!==void 0&&e.parentNode&&this.element.remove(),this.element=null}}class Ib1{constructor(e,n,a){this.instance=n,this.data=e,this.index=a,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=xa.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,n){if(this.slide&&this.usePlaceholder())if(this.placeholder){const a=this.placeholder.element;a&&!a.parentElement&&this.slide.container.prepend(a)}else{const a=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new jb1(a,this.slide.container)}this.element&&!n||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=ia("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=ia("pswp__content","div"),this.element.innerHTML=this.data.html||""),n&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var n,a;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=(n=this.data.src)!==null&&n!==void 0?n:"",r.alt=(a=this.data.alt)!==null&&a!==void 0?a:"",this.state=xa.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=xa.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===xa.LOADED||this.state===xa.ERROR)&&this.removePlaceholder())}onError(){this.state=xa.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===xa.LOADING,this)}isError(){return this.state===xa.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(e,n){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,n),!this.instance.dispatch("contentResize",{content:this,width:e,height:n}).defaultPrevented&&(vL(this.element,e,n),this.isImageContent()&&!this.isError()))){const a=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=n,a?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:n,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==xa.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const e=this.element,n=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||n>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=n+"px",e.dataset.largestUsedSize=String(n))}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,n;let a=ia("pswp__error-msg","div");a.innerText=(e=(n=this.instance.options)===null||n===void 0?void 0:n.errorMsg)!==null&&e!==void 0?e:"",a=this.instance.applyFilters("contentErrorElement",a,this),this.element=ia("pswp__content pswp__error-msg-container","div"),this.element.appendChild(a),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===xa.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||zj())?(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&&!zj()?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===xa.LOADED||this.state===xa.ERROR)&&this.removePlaceholder()))}}const Fb1=5;function sJ(t,e,n){const a=e.createContentFromData(t,n);let r;const{options:o}=e;if(o){r=new cJ(o,t,-1);let c;e.pswp?c=e.pswp.viewportSize:c=iJ(o,e);const l=oJ(o,c,t,n);r.update(a.width,a.height,l)}return a.lazyLoad(),r&&a.setDisplayedSize(Math.ceil(a.width*r.initial),Math.ceil(a.height*r.initial)),a}function $b1(t,e){const n=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:n}).defaultPrevented)return sJ(n,e,t)}let Ub1=class{constructor(e){this.pswp=e,this.limit=Math.max(e.options.preload[0]+e.options.preload[1]+1,Fb1),this._cachedItems=[]}updateLazy(e){const{pswp:n}=this;if(n.dispatch("lazyLoad").defaultPrevented)return;const{preload:a}=n.options,r=e===void 0?!0:e>=0;let o;for(o=0;o<=a[1];o++)this.loadSlideByIndex(n.currIndex+(r?o:-o));for(o=1;o<=a[0];o++)this.loadSlideByIndex(n.currIndex+(r?-o:o))}loadSlideByIndex(e){const n=this.pswp.getLoopedIndex(e);let a=this.getContentByIndex(n);a||(a=$b1(n,this.pswp),a&&this.addToCache(a))}getContentBySlide(e){let n=this.getContentByIndex(e.index);return n||(n=this.pswp.createContentFromData(e.data,e.index),this.addToCache(n)),n.setSlide(e),n}addToCache(e){if(this.removeByIndex(e.index),this._cachedItems.push(e),this._cachedItems.length>this.limit){const n=this._cachedItems.findIndex(a=>!a.isAttached&&!a.hasSlide);n!==-1&&this._cachedItems.splice(n,1)[0].destroy()}}removeByIndex(e){const n=this._cachedItems.findIndex(a=>a.index===e);n!==-1&&this._cachedItems.splice(n,1)}getContentByIndex(e){return this._cachedItems.find(n=>n.index===e)}destroy(){this._cachedItems.forEach(e=>e.destroy()),this._cachedItems=[]}};class Wb1 extends Rb1{getNumItems(){var e;let n=0;const a=(e=this.options)===null||e===void 0?void 0:e.dataSource;a&&"length"in a?n=a.length:a&&"gallery"in a&&(a.items||(a.items=this._getGalleryDOMElements(a.gallery)),a.items&&(n=a.items.length));const r=this.dispatch("numItems",{dataSource:a,numItems:n});return this.applyFilters("numItems",r.numItems,a)}createContentFromData(e,n){return new Ib1(e,this,n)}getItemData(e){var n;const a=(n=this.options)===null||n===void 0?void 0:n.dataSource;let r={};Array.isArray(a)?r=a[e]:a&&"gallery"in a&&(a.items||(a.items=this._getGalleryDOMElements(a.gallery)),r=a.items[e]);let o=r;o instanceof Element&&(o=this._domElementToItemData(o));const c=this.dispatch("itemData",{itemData:o||{},index:e});return this.applyFilters("itemData",c.itemData,e)}_getGalleryDOMElements(e){var n,a;return(n=this.options)!==null&&n!==void 0&&n.children||(a=this.options)!==null&&a!==void 0&&a.childSelector?XC1(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const n={element:e},a=e.tagName==="A"?e:e.querySelector("a");if(a){n.src=a.dataset.pswpSrc||a.href,a.dataset.pswpSrcset&&(n.srcset=a.dataset.pswpSrcset),n.width=a.dataset.pswpWidth?parseInt(a.dataset.pswpWidth,10):0,n.height=a.dataset.pswpHeight?parseInt(a.dataset.pswpHeight,10):0,n.w=n.width,n.h=n.height,a.dataset.pswpType&&(n.type=a.dataset.pswpType);const o=e.querySelector("img");if(o){var r;n.msrc=o.currentSrc||o.src,n.alt=(r=o.getAttribute("alt"))!==null&&r!==void 0?r:""}(a.dataset.pswpCropped||a.dataset.cropped)&&(n.thumbCropped=!0)}return this.applyFilters("domItemData",n,e,a)}lazyLoadData(e,n){return sJ(e,this,n)}}const X9=.003;class qb1{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,n=this.pswp.currSlide,{options:a}=e;if(a.showHideAnimationType==="fade"?(a.showHideOpacity=!0,this._thumbBounds=void 0):a.showHideAnimationType==="none"?(a.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&e._initialThumbBounds?this._thumbBounds=e._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=n==null?void 0:n.getPlaceholderElement(),e.animations.stopAll(),this._useAnimation=!!(this._duration&&this._duration>50),this._animateZoom=!!this._thumbBounds&&(n==null?void 0:n.content.usePlaceholder())&&(!this.isClosing||!e.mainScroll.isShifted()),!this._animateZoom)this._animateRootOpacity=!0,this.isOpening&&n&&(n.zoomAndPanToInitial(),n.applyCurrentZoomPan());else{var r;this._animateRootOpacity=(r=a.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 n=!1,a=!0;ZC1(this._placeholder).finally(()=>{n=!0,a||e(!0)}),setTimeout(()=>{a=!1,n&&e(!0)},50),setTimeout(e,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){var e,n;(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")),(n=this.pswp.element)===null||n===void 0||n.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 n;this._animateZoom&&e.container&&(e.container.style.overflow="visible",e.container.style.width="100%"),(n=e.currSlide)===null||n===void 0||n.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:n}=this,{innerRect:a}=this._thumbBounds,{currSlide:r,viewportSize:o}=n;if(this._croppedZoom&&a&&this._cropContainer1&&this._cropContainer2){const c=-o.x+(this._thumbBounds.x-a.x)+a.w,l=-o.y+(this._thumbBounds.y-a.y)+a.h,h=o.x-a.w,s=o.y-a.h;e?(this._animateTo(this._cropContainer1,"transform",qs(c,l)),this._animateTo(this._cropContainer2,"transform",qs(h,s))):(C8(this._cropContainer1,c,l),C8(this._cropContainer2,h,s))}r&&(Fe(r.pan,a||this._thumbBounds),r.currZoomLevel=this._thumbBounds.w/r.width,e?this._animateTo(r.container,"transform",r.getCurrentTransform()):r.applyCurrentZoomPan())}_animateTo(e,n,a){if(!this._duration){e.style[n]=a;return}const{animations:r}=this.pswp,o={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{r.activeAnimations.length||this._onAnimationComplete()},target:e};o[n]=a,r.startTransition(o)}}const Gb1={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 Kb1 extends Wb1{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 JC1,this.animations=new Vb1,this.mainScroll=new gb1(this),this.gestures=new db1(this),this.opener=new qb1(this),this.keyboard=new mb1(this),this.contentLoader=new Ub1(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 Cb1(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:n}=this.mainScroll;n[0]&&(n[0].el.style.display="block",this.setContent(n[0],this.currIndex-1)),n[2]&&(n[2].el.style.display="block",this.setContent(n[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 n=this.getNumItems();return this.options.loop&&(e>n-1&&(e-=n),e<0&&(e+=n)),Kh(e,0,n-1)}appendHeavy(){this.mainScroll.itemHolders.forEach(e=>{var n;(n=e.slide)===null||n===void 0||n.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 n;(n=this.currSlide)===null||n===void 0||n.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(n=>{var a;(a=n.slide)===null||a===void 0||a.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(e){this.contentLoader.removeByIndex(e),this.mainScroll.itemHolders.forEach((n,a)=>{var r,o;let c=((r=(o=this.currSlide)===null||o===void 0?void 0:o.index)!==null&&r!==void 0?r:0)-1+a;if(this.canLoop()&&(c=this.getLoopedIndex(c)),c===e&&(this.setContent(n,e,!0),a===1)){var l;this.currSlide=n.slide,(l=n.slide)===null||l===void 0||l.setIsActive(!0)}}),this.dispatch("change")}setContent(e,n,a){if(this.canLoop()&&(n=this.getLoopedIndex(n)),e.slide){if(e.slide.index===n&&!a)return;e.slide.destroy(),e.slide=void 0}if(!this.canLoop()&&(n<0||n>=this.getNumItems()))return;const r=this.getItemData(n);e.slide=new eb1(r,n,this),n===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 n=iJ(this.options,this);!e&&is(n,this._prevViewportSize)||(Fe(this._prevViewportSize,n),this.dispatch("beforeResize"),Fe(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,n){this.offset.x=e,this.offset.y=n,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=ia("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=ia("pswp__bg","div",this.element),this.scrollWrap=ia("pswp__scroll-wrap","section",this.element),this.container=ia("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 kb1(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return Nb1(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),{...Gb1,...e}}}class Yb1 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 Zb1(t,e){if(!(t instanceof Element)||!(e instanceof Element))throw new Yb1;return t===e?0:t.compareDocumentPosition(e)&2?1:-1}function hJ(t){return Object.entries(t).map(([e,n])=>n?`${e}=${n}`:e).join("&")}function uT(t){return t.split("&").reduce((e,n)=>{const[a,r]=n.split("=");return a&&(e[a]=r),e},{})}function Cj(t){const e=uT(t);return delete e.gid,delete e.pid,hJ(e)}function J9(){return window.location.hash.substring(1)}function bj(){return`${window.location.pathname}${window.location.search}`}const Lj=t=>{const e=uT(t);return!!e.gid&&!!e.pid};function Qb1(t,e){return t!==null?t:e?parseInt(e,10)-1:0}const vT=W1.createContext({remove:()=>{},set:()=>{},handleClick:()=>{},open:()=>{}});class Xb1{constructor(e){this.pswp=e,this.on=e.on.bind(e),this.off=e.off.bind(e),this.dispatch=e.dispatch.bind(e)}}var Jb1=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(t);r{const[s,u]=S.useState(null),v=S.useRef(new Map),f=S.useRef(null),d=S.useCallback((z,w,x,y)=>{if(p3)return;let V=x||null;const C=[],L=Array.from(v.current),B=(W,U)=>{const[Z,I]=W,{width:t1,height:R,original:i1,originalSrcset:J,thumbnail:A,cropped:o1,content:h1,id:n1}=I,M1=Jb1(I,["width","height","original","originalSrcset","thumbnail","cropped","content","id"]);(z===Z||n1!==void 0&&String(n1)===w)&&(V=U),C.push(Object.assign(Object.assign(Object.assign({w:Number(t1),h:Number(R),src:i1,srcset:J,msrc:A,element:Z.current,thumbCropped:o1,content:h1},h1!==void 0?{type:"html"}:{}),n1!==void 0?{pid:n1}:{}),M1))};v.current.size>1?L.sort(([{current:W}],[{current:U}])=>Zb1(W,U)).forEach(B):L.forEach(B);const _=y&&y.clientX!==void 0&&y.clientY!==void 0?{x:y.clientX,y:y.clientY}:null,T=new Kb1(Object.assign({dataSource:C,index:Qb1(V,w),initialPointerPos:_},e||{}));p3=T,T.on("contentActivate",({content:W})=>{W.data.content?u(F8.createPortal(W.data.content,W.element)):u(null)}),T.on("close",()=>{u(null)}),h&&T.on("uiRegister",()=>{var W;(W=T.ui)===null||W===void 0||W.registerElement({name:"download-button",ariaLabel:"Download",order:8,isButton:!0,tagName:"a",appendTo:"bar",html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-download"},onInit:(U,Z)=>{U.setAttribute("download",""),U.setAttribute("target","_blank"),U.setAttribute("rel","noopener"),T.on("change",()=>{var I;if(!(!((I=Z.currSlide)===null||I===void 0)&&I.data.src))return;const t1=U;t1.href=Z.currSlide.data.src})}})}),l&&T.on("uiRegister",()=>{var W;(W=T.ui)===null||W===void 0||W.registerElement({name:"default-caption",order:9,isButton:!1,appendTo:"root",onInit:(U,Z)=>{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(!Z.currSlide)return;const{caption:I,alt:t1}=Z.currSlide.data;U.innerHTML=I||t1||""})}})}),Array.isArray(a)&&a.forEach(W=>{T.on("uiRegister",()=>{var U;(U=T.ui)===null||U===void 0||U.registerElement(W)})}),typeof n=="function"&&n(new Xb1(T)),typeof o=="function"&&o(T);const P=()=>({gallery:{galleryUID:r}});T.on("beforeOpen",()=>{var W;if(r===void 0)return;if(!Lj(J9())){window.history.pushState(P(),document.title);return}if(!!(!((W=window.history.state)===null||W===void 0)&&W.gallery))return;const I=bj(),t1=J9(),R=Cj(t1),i1=`${I}${R?`#${R}`:""}`,J=`${I}#${t1}`;window.history.replaceState(window.history.state,document.title,i1),window.history.pushState(P(),document.title,J)}),T.on("change",()=>{var W;if(r===void 0)return;const U=((W=T.currSlide)===null||W===void 0?void 0:W.data.pid)||T.currIndex+1,Z=bj(),I=Cj(J9()),t1=hJ({gid:r,pid:U}),R=`${Z}#${I}&${t1}`;window.history.replaceState(P(),document.title,R)});const F=()=>{r!==void 0&&p3!==null&&p3.close()};window.addEventListener("popstate",F),T.on("destroy",()=>{r!==void 0&&(window.removeEventListener("popstate",F),Lj(J9())&&window.history.back()),p3=null}),T.init(),typeof c=="function"&&c(T)},[e,n,a,r,o,c,l,h]);S.useEffect(()=>()=>{p3&&p3.close()},[]);const M=S.useCallback(()=>{if(r===void 0||p3!==null)return;const z=J9();if(z.length<5)return;const w=uT(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]);S.useEffect(()=>(M(),window.addEventListener("popstate",M),()=>{window.removeEventListener("popstate",M)}),[M]);const g=S.useCallback(z=>{v.current.delete(z)},[]),H=S.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=S.useCallback(z=>{d(null,null,z)},[d]),m=S.useMemo(()=>({remove:g,set:H,handleClick:d,open:p}),[g,H,d,p]);return W1.createElement(vT.Provider,{value:m},t,s)};uJ.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 tL1=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(t);r{var{children:e}=t,n=tL1(t,["children"]);const a=S.useRef(),{remove:r,set:o,handleClick:c}=S.useContext(vT),l=S.useCallback(h=>c(a,null,null,h),[]);return S.useLayoutEffect(()=>(o(a,n),()=>r(a)),Object.values(n)),e({ref:a,open:l})};vJ.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 eL1=()=>{const{open:t}=W1.useContext(vT);return{open:t}},nL1=Object.freeze(Object.defineProperty({__proto__:null,Gallery:uJ,Item:vJ,useGallery:eL1},Symbol.toStringTag,{value:"Module"})),aL1=se(nL1);var Kz={},rL1="Expected a function",iL1=9007199254740991,oL1="[object Arguments]",cL1="[object Function]",lL1="[object GeneratorFunction]",sL1=typeof b=="object"&&b&&b.Object===Object&&b,hL1=typeof self=="object"&&self&&self.Object===Object&&self,uL1=sL1||hL1||Function("return this")();function vL1(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function dL1(t,e){for(var n=-1,a=e.length,r=t.length;++n0&&n(l)?e>1?fJ(l,e-1,n,a,r):dL1(r,l):a||(r[r.length]=l)}return r}function pL1(t,e){return e=_j(e===void 0?t.length-1:e,0),function(){for(var n=arguments,a=-1,r=_j(n.length-e,0),o=Array(r);++a-1&&t%1==0&&t<=iL1}function CL1(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function bL1(t){return!!t&&typeof t=="object"}var LL1=mL1(),BL1=LL1,SL1=b&&b.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Kz,"__esModule",{value:!0});var _L1=Kz.fixContentForMarkdown=void 0,TL1=SL1(BL1),OL1=function(t){return t===void 0&&(t=""),t.replaceAll(/(\\\r\n|\\r\n|\\\n|\\n)/g,` + */function ia(t,e,n){const a=document.createElement(e);return t&&(a.className=t),n&&n.appendChild(a),a}function Fe(t,e){return t.x=e.x,t.y=e.y,e.id!==void 0&&(t.id=e.id),t}function aJ(t){t.x=Math.round(t.x),t.y=Math.round(t.y)}function uL(t,e){const n=Math.abs(t.x-e.x),a=Math.abs(t.y-e.y);return Math.sqrt(n*n+a*a)}function is(t,e){return t.x===e.x&&t.y===e.y}function Kh(t,e,n){return Math.min(Math.max(t,e),n)}function qs(t,e,n){let a=`translate3d(${t}px,${e||0}px,0)`;return n!==void 0&&(a+=` scale3d(${n},${n},1)`),a}function b8(t,e,n,a){t.style.transform=qs(e,n,a)}const ZC1="cubic-bezier(.4,0,.22,1)";function rJ(t,e,n,a){t.style.transition=e?`${e} ${n}ms ${a||ZC1}`:"none"}function vL(t,e,n){t.style.width=typeof e=="number"?`${e}px`:e,t.style.height=typeof n=="number"?`${n}px`:n}function QC1(t){rJ(t)}function XC1(t){return"decode"in t?t.decode().catch(()=>{}):t.complete?Promise.resolve(t):new Promise((e,n)=>{t.onload=()=>e(t),t.onerror=n})}const xa={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function JC1(t){return"button"in t&&t.button===1||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function tb1(t,e,n=document){let a=[];if(t instanceof Element)a=[t];else if(t instanceof NodeList||Array.isArray(t))a=Array.from(t);else{const r=typeof t=="string"?t:e;r&&(a=Array.from(n.querySelectorAll(r)))}return a}function zj(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}let iJ=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{iJ=!0}}))}catch{}class eb1{constructor(){this._pool=[]}add(e,n,a,r){this._toggleListener(e,n,a,r)}remove(e,n,a,r){this._toggleListener(e,n,a,r,!0)}removeAll(){this._pool.forEach(e=>{this._toggleListener(e.target,e.type,e.listener,e.passive,!0,!0)}),this._pool=[]}_toggleListener(e,n,a,r,o,c){if(!e)return;const l=o?"removeEventListener":"addEventListener";n.split(" ").forEach(s=>{if(s){c||(o?this._pool=this._pool.filter(v=>v.type!==s||v.listener!==a||v.target!==e):this._pool.push({target:e,type:s,listener:a,passive:r}));const u=iJ?{passive:r||!1}:!1;e[l](s,a,u)}})}}function oJ(t,e){if(t.getViewportSizeFn){const n=t.getViewportSizeFn(t,e);if(n)return n}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function L7(t,e,n,a,r){let o=0;if(e.paddingFn)o=e.paddingFn(n,a,r)[t];else if(e.padding)o=e.padding[t];else{const c="padding"+t[0].toUpperCase()+t.slice(1);e[c]&&(o=e[c])}return Number(o)||0}function cJ(t,e,n,a){return{x:e.x-L7("left",t,e,n,a)-L7("right",t,e,n,a),y:e.y-L7("top",t,e,n,a)-L7("bottom",t,e,n,a)}}class nb1{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:n}=this.slide,a=this.slide[e==="x"?"width":"height"]*this.currZoomLevel,o=L7(e==="x"?"left":"top",n.options,n.viewportSize,this.slide.data,this.slide.index),c=this.slide.panAreaSize[e];this.center[e]=Math.round((c-a)/2)+o,this.max[e]=a>c?Math.round(c-a)+o:this.center[e],this.min[e]=a>c?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,n){return Kh(n,this.max[e],this.min[e])}}const Mj=4e3;class lJ{constructor(e,n,a,r){this.pswp=r,this.options=e,this.itemData=n,this.index=a,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,n,a){const r={x:e,y:n};this.elementSize=r,this.panAreaSize=a;const o=a.x/r.x,c=a.y/r.y;this.fit=Math.min(1,oc?o:c),this.vFill=Math.min(1,c),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 n=e+"ZoomLevel",a=this.options[n];if(a)return typeof a=="function"?a(this):a==="fill"?this.fill:a==="fit"?this.fit:Number(a)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,this.fit*3),this.elementSize&&e*this.elementSize.x>Mj&&(e=Mj/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}}class ab1{constructor(e,n,a){this.data=e,this.index=n,this.pswp=a,this.isActive=n===a.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!a.opener.isOpen,this.zoomLevels=new lJ(a.options,e,n,a),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:n}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=ia("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 nb1(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 n=this.currentResolution||this.zoomLevels.initial;if(!n)return;const a=Math.round(this.width*n)||this.pswp.viewportSize.x,r=Math.round(this.height*n)||this.pswp.viewportSize.y;!this.sizeChanged(a,r)&&!e||this.content.setDisplayedSize(a,r)}sizeChanged(e,n){return e!==this.prevDisplayedWidth||n!==this.prevDisplayedHeight?(this.prevDisplayedWidth=e,this.prevDisplayedHeight=n,!0):!1}getPlaceholderElement(){var e;return(e=this.content.placeholder)===null||e===void 0?void 0:e.element}zoomTo(e,n,a,r){const{pswp:o}=this;if(!this.isZoomable()||o.mainScroll.isShifted())return;o.dispatch("beforeZoomTo",{destZoomLevel:e,centerPoint:n,transitionDuration:a}),o.animations.stopAllPan();const c=this.currZoomLevel;r||(e=Kh(e,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(e),this.pan.x=this.calculateZoomToPanOffset("x",n,c),this.pan.y=this.calculateZoomToPanOffset("y",n,c),aJ(this.pan);const l=()=>{this._setResolution(e),this.applyCurrentZoomPan()};a?o.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:l,duration:a,easing:o.options.easing}):l()}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,n,a){if(this.bounds.max[e]-this.bounds.min[e]===0)return this.bounds.center[e];n||(n=this.pswp.getViewportCenterPoint()),a||(a=this.zoomLevels.initial);const o=this.currZoomLevel/a;return this.bounds.correctPan(e,(this.pan[e]-n[e])*o+n[e])}panTo(e,n){this.pan.x=this.bounds.correctPan("x",e),this.pan.y=this.bounds.correctPan("y",n),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),Fe(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(e,n,a){a/=this.currentResolution||this.zoomLevels.initial,b8(this.container,e,n,a)}calculateSize(){const{pswp:e}=this;Fe(this.panAreaSize,cJ(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 rb1=.35,ib1=.6,Hj=.4,wj=.5;function ob1(t,e){return t*e/(1-e)}class cb1{constructor(e){this.gestures=e,this.pswp=e.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&Fe(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:e,prevP1:n,dragAxis:a}=this.gestures,{currSlide:r}=this.pswp;if(a==="y"&&this.pswp.options.closeOnVerticalDrag&&r&&r.currZoomLevel<=r.zoomLevels.fit&&!this.gestures.isMultitouch){const o=r.pan.y+(e.y-n.y);if(!this.pswp.dispatch("verticalDrag",{panY:o}).defaultPrevented){this._setPanWithFriction("y",o,ib1);const c=1-Math.abs(this._getVerticalDragRatio(r.pan.y));this.pswp.applyBgOpacity(c),r.applyCurrentZoomPan()}}else this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),r&&(aJ(r.pan),r.applyCurrentZoomPan()))}end(){const{velocity:e}=this.gestures,{mainScroll:n,currSlide:a}=this.pswp;let r=0;if(this.pswp.animations.stopAll(),n.isShifted()){const c=(n.x-n.getCurrSlideX())/this.pswp.viewportSize.x;e.x<-wj&&c<0||e.x<.1&&c<-.5?(r=1,e.x=Math.min(e.x,0)):(e.x>wj&&c>0||e.x>-.1&&c>.5)&&(r=-1,e.x=Math.max(e.x,0)),n.moveIndexBy(r,!0,e.x)}a&&a.currZoomLevel>a.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(e){const{velocity:n}=this.gestures,{currSlide:a}=this.pswp;if(!a)return;const{pan:r,bounds:o}=a,c=r[e],l=this.pswp.bgOpacity<1&&e==="y",s=c+ob1(n[e],.995);if(l){const z=this._getVerticalDragRatio(c),g=this._getVerticalDragRatio(s);if(z<0&&g<-Hj||z>0&&g>Hj){this.pswp.close();return}}const u=o.correctPan(e,s);if(c===u)return;const v=u===s?1:.82,f=this.pswp.bgOpacity,d=u-c;this.pswp.animations.startSpring({name:"panGesture"+e,isPan:!0,start:c,end:u,velocity:n[e],dampingRatio:v,onUpdate:z=>{if(l&&this.pswp.bgOpacity<1){const g=1-(u-z)/d;this.pswp.applyBgOpacity(Kh(f+(1-f)*g,0,1))}r[e]=Math.floor(z),a.applyCurrentZoomPan()}})}_panOrMoveMainScroll(e){const{p1:n,dragAxis:a,prevP1:r,isMultitouch:o}=this.gestures,{currSlide:c,mainScroll:l}=this.pswp,h=n[e]-r[e],s=l.x+h;if(!h||!c)return!1;if(e==="x"&&!c.isPannable()&&!o)return l.moveTo(s,!0),!0;const{bounds:u}=c,v=c.pan[e]+h;if(this.pswp.options.allowPanToNext&&a==="x"&&e==="x"&&!o){const f=l.getCurrSlideX(),d=l.x-f,z=h>0,g=!z;if(v>u.min[e]&&z){if(u.min[e]<=this.startPan[e])return l.moveTo(s,!0),!0;this._setPanWithFriction(e,v)}else if(v0)return l.moveTo(Math.max(s,f),!0),!0;if(d<0)return l.moveTo(Math.min(s,f),!0),!0}else this._setPanWithFriction(e,v)}else e==="y"?!l.isShifted()&&u.min.y!==u.max.y&&this._setPanWithFriction(e,v):this._setPanWithFriction(e,v);return!1}_getVerticalDragRatio(e){var n,a;return(e-((n=(a=this.pswp.currSlide)===null||a===void 0?void 0:a.bounds.center.y)!==null&&n!==void 0?n:0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(e,n,a){const{currSlide:r}=this.pswp;if(!r)return;const{pan:o,bounds:c}=r;if(c.correctPan(e,n)!==n||a){const h=Math.round(n-o[e]);o[e]+=h*(a||rb1)}else o[e]=n}}const lb1=.05,sb1=.15;function yj(t,e,n){return t.x=(e.x+n.x)/2,t.y=(e.y+n.y)/2,t}class hb1{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,Fe(this._startPan,e.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:e,startP1:n,p2:a,startP2:r,pswp:o}=this.gestures,{currSlide:c}=o;if(!c)return;const l=c.zoomLevels.min,h=c.zoomLevels.max;if(!c.isZoomable()||o.mainScroll.isShifted())return;yj(this._startZoomPoint,n,r),yj(this._zoomPoint,e,a);let s=1/uL(n,r)*uL(e,a)*this._startZoomLevel;if(s>c.zoomLevels.initial+c.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),sh&&(s=h+(s-h)*lb1);c.pan.x=this._calculatePanForZoomLevel("x",s),c.pan.y=this._calculatePanForZoomLevel("y",s),c.setZoomLevel(s),c.applyCurrentZoomPan()}end(){const{pswp:e}=this.gestures,{currSlide:n}=e;(!n||n.currZoomLevela.zoomLevels.max?o=a.zoomLevels.max:(c=!1,o=r);const l=n.bgOpacity,h=n.bgOpacity<1,s=Fe({x:0,y:0},a.pan);let u=Fe({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,Fe(this._startPan,s)),c&&(u={x:this._calculatePanForZoomLevel("x",o),y:this._calculatePanForZoomLevel("y",o)}),a.setZoomLevel(o),u={x:a.bounds.correctPan("x",u.x),y:a.bounds.correctPan("y",u.y)},a.setZoomLevel(r);const v=!is(u,s);if(!v&&!c&&!h){a._setResolution(o),a.applyCurrentZoomPan();return}n.animations.stopAllPan(),n.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:f=>{if(f/=1e3,v||c){if(v&&(a.pan.x=s.x+(u.x-s.x)*f,a.pan.y=s.y+(u.y-s.y)*f),c){const d=r+(o-r)*f;a.setZoomLevel(d)}a.applyCurrentZoomPan()}h&&n.bgOpacity<1&&n.applyBgOpacity(Kh(l+(1-l)*f,0,1))},onComplete:()=>{a._setResolution(o),a.applyCurrentZoomPan()}})}}function xj(t){return!!t.target.closest(".pswp__container")}class ub1{constructor(e){this.gestures=e}click(e,n){const a=n.target.classList,r=a.contains("pswp__img"),o=a.contains("pswp__item")||a.contains("pswp__zoom-wrap");r?this._doClickOrTapAction("imageClick",e,n):o&&this._doClickOrTapAction("bgClick",e,n)}tap(e,n){xj(n)&&this._doClickOrTapAction("tap",e,n)}doubleTap(e,n){xj(n)&&this._doClickOrTapAction("doubleTap",e,n)}_doClickOrTapAction(e,n,a){var r;const{pswp:o}=this.gestures,{currSlide:c}=o,l=e+"Action",h=o.options[l];if(!o.dispatch(l,{point:n,originalEvent:a}).defaultPrevented){if(typeof h=="function"){h.call(o,n,a);return}switch(h){case"close":case"next":o[h]();break;case"zoom":c==null||c.toggleZoom(n);break;case"zoom-or-close":c!=null&&c.isZoomable()&&c.zoomLevels.secondary!==c.zoomLevels.initial?c.toggleZoom(n):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 vb1=10,db1=300,fb1=25;class gb1{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 cb1(this),this.zoomLevels=new hb1(this),this.tapHandler=new ub1(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,n,a,r){const{pswp:o}=this,{events:c}=o,l=r?e+r:"";c.add(o.scrollWrap,e+n,this.onPointerDown.bind(this)),c.add(window,e+"move",this.onPointerMove.bind(this)),c.add(window,e+a,this.onPointerUp.bind(this)),l&&c.add(o.scrollWrap,l,this.onPointerUp.bind(this))}onPointerDown(e){const n=e.type==="mousedown"||e.pointerType==="mouse";if(n&&e.button>0)return;const{pswp:a}=this;if(!a.opener.isOpen){e.preventDefault();return}a.dispatch("pointerDown",{originalEvent:e}).defaultPrevented||(n&&(a.mouseDetected(),this._preventPointerEventBehaviour(e,"down")),a.animations.stopAll(),this._updatePoints(e,"down"),this._numActivePoints===1&&(this.dragAxis=null,Fe(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,Fe(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 n=Date.now(),a=n-this._intervalTime;a<50&&!e||(this.velocity.x=this._getVelocity("x",a),this.velocity.y=this._getVelocity("y",a),this._intervalTime=n,Fe(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(e){const{mainScroll:n}=this.pswp;if(n.isShifted()){n.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 a=this.pswp.options.doubleTapAction?db1:0;this._tapTimer?(this._clearTapTimer(),uL(this._lastStartP1,this.startP1){this.tapHandler.tap(this.startP1,e),this._clearTapTimer()},a))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(e,n){const a=this.p1[e]-this._intervalP1[e];return Math.abs(a)>1&&n>5?a/n:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(e,n){this.pswp.applyFilters("preventPointerEvent",!0,e,n)&&e.preventDefault()}_updatePoints(e,n){if(this._pointerEventEnabled){const a=e,r=this._ongoingPointers.findIndex(o=>o.id===a.pointerId);n==="up"&&r>-1?this._ongoingPointers.splice(r,1):n==="down"&&r===-1?this._ongoingPointers.push(this._convertEventPosToPoint(a,{x:0,y:0})):r>-1&&this._convertEventPosToPoint(a,this._ongoingPointers[r]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&Fe(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&Fe(this.p2,this._ongoingPointers[1])}else{const a=e;this._numActivePoints=0,a.type.indexOf("touch")>-1?a.touches&&a.touches.length>0&&(this._convertEventPosToPoint(a.touches[0],this.p1),this._numActivePoints++,a.touches.length>1&&(this._convertEventPosToPoint(a.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(e,this.p1),n==="up"?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){Fe(this.prevP1,this.p1),Fe(this.prevP2,this.p2)}_updateStartPoints(){Fe(this.startP1,this.p1),Fe(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 n=e>0?"x":"y";Math.abs(this.p1[n]-this.startP1[n])>=vb1&&(this.dragAxis=n)}}}_convertEventPosToPoint(e,n){return n.x=e.pageX-this.pswp.offset.x,n.y=e.pageY-this.pswp.offset.y,"pointerId"in e?n.id=e.pointerId:e.identifier!==void 0&&(n.id=e.identifier),n}_onClick(e){this.pswp.mainScroll.isShifted()&&(e.preventDefault(),e.stopPropagation())}}const pb1=.35;class mb1{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:n}=this,a=Math.round(n.viewportSize.x+n.viewportSize.x*n.options.spacing),r=a!==this.slideWidth;r&&(this.slideWidth=a,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach((o,c)=>{r&&b8(o.el,(c+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 n=ia("pswp__item","div",this.pswp.container);n.setAttribute("role","group"),n.setAttribute("aria-roledescription","slide"),n.setAttribute("aria-hidden","true"),n.style.display=e===1?"block":"none",this.itemHolders.push({el:n})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(e,n,a){const{pswp:r}=this;let o=r.potentialIndex+e;const c=r.getNumItems();if(r.canLoop()){o=r.getLoopedIndex(o);const h=(e+c)%c;h<=c/2?e=h:e=h-c}else o<0?o=0:o>=c&&(o=c-1),e=o-r.potentialIndex;r.potentialIndex=o,this._currPositionIndex-=e,r.animations.stopMainScroll();const l=this.getCurrSlideX();if(!n)this.moveTo(l),this.updateCurrItem();else{r.animations.startSpring({isMainScroll:!0,start:this.x,end:l,velocity:a||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+c)%c;s<=c/2?h=s:h=s-c}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:n}=this,a=this._prevPositionIndex-this._currPositionIndex;if(!a)return;this._prevPositionIndex=this._currPositionIndex,n.currIndex=n.potentialIndex;let r=Math.abs(a),o;r>=3&&(this._containerShiftIndex+=a+(a>0?-3:3),r=3);for(let c=0;c0?(o=this.itemHolders.shift(),o&&(this.itemHolders[2]=o,this._containerShiftIndex++,b8(o.el,(this._containerShiftIndex+2)*this.slideWidth),n.setContent(o,n.currIndex-r+c+2))):(o=this.itemHolders.pop(),o&&(this.itemHolders.unshift(o),this._containerShiftIndex--,b8(o.el,this._containerShiftIndex*this.slideWidth),n.setContent(o,n.currIndex+r-c-2)));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),n.animations.stopAllPan(),this.itemHolders.forEach((c,l)=>{c.slide&&c.slide.setIsActive(l===1)}),n.currSlide=(e=this.itemHolders[1])===null||e===void 0?void 0:e.slide,n.contentLoader.updateLazy(a),n.currSlide&&n.currSlide.applyCurrentZoomPan(),n.dispatch("change")}moveTo(e,n){if(!this.pswp.canLoop()&&n){let a=(this.slideWidth*this._currPositionIndex-e)/this.slideWidth;a+=this.pswp.currIndex;const r=Math.round(e-this.x);(a<0&&r>0||a>=this.pswp.getNumItems()-1&&r<0)&&(e=this.x+r*pb1)}this.x=e,this.pswp.container&&b8(this.pswp.container,e),this.pswp.dispatch("moveMainScroll",{x:e,dragging:n??!1})}}const zb1={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},n8=(t,e)=>e?t:zb1[t];class Mb1{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 n=document.activeElement;e.on("destroy",()=>{e.options.returnFocus&&n&&this._wasFocused&&n.focus()})}_focusRoot(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(e){const{pswp:n}=this;if(n.dispatch("keydown",{originalEvent:e}).defaultPrevented||JC1(e))return;let a,r,o=!1;const c="key"in e;switch(c?e.key:e.keyCode){case n8("Escape",c):n.options.escKey&&(a="close");break;case n8("z",c):a="toggleZoom";break;case n8("ArrowLeft",c):r="x";break;case n8("ArrowUp",c):r="y";break;case n8("ArrowRight",c):r="x",o=!0;break;case n8("ArrowDown",c):o=!0,r="y";break;case n8("Tab",c):this._focusRoot();break}if(r){e.preventDefault();const{currSlide:l}=n;n.options.arrowKeys&&r==="x"&&n.getNumItems()>1?a=o?"next":"prev":l&&l.currZoomLevel>l.zoomLevels.fit&&(l.pan[r]+=o?-80:80,l.panTo(l.pan.x,l.pan.y))}a&&(e.preventDefault(),n[a]())}_onFocusIn(e){const{template:n}=this.pswp;n&&document!==e.target&&n!==e.target&&!n.contains(e.target)&&n.focus()}}const Hb1="cubic-bezier(.4,0,.22,1)";class wb1{constructor(e){var n;this.props=e;const{target:a,onComplete:r,transform:o,onFinish:c=()=>{},duration:l=333,easing:h=Hb1}=e;this.onFinish=c;const s=o?"transform":"opacity",u=(n=e[s])!==null&&n!==void 0?n:"";this._target=a,this._onComplete=r,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{rJ(a,s,l,h),this._helperTimeout=setTimeout(()=>{a.addEventListener("transitionend",this._onTransitionEnd,!1),a.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},l+500),a.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),QC1(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}const yb1=12,xb1=.75;class Vb1{constructor(e,n,a){this.velocity=e*1e3,this._dampingRatio=n||xb1,this._naturalFrequency=a||yb1,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(e,n){let a=0,r;n/=1e3;const o=Math.E**(-this._dampingRatio*this._naturalFrequency*n);if(this._dampingRatio===1)r=this.velocity+this._naturalFrequency*e,a=(e+r*n)*o,this.velocity=a*-this._naturalFrequency+r*o;else if(this._dampingRatio<1){r=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*e+this.velocity);const c=Math.cos(this._dampedFrequency*n),l=Math.sin(this._dampedFrequency*n);a=o*(e*c+r*l),this.velocity=a*-this._naturalFrequency*this._dampingRatio+o*(-this._dampedFrequency*e*l+this._dampedFrequency*r*c)}return a}}class Cb1{constructor(e){this.props=e,this._raf=0;const{start:n,end:a,velocity:r,onUpdate:o,onComplete:c,onFinish:l=()=>{},dampingRatio:h,naturalFrequency:s}=e;this.onFinish=l;const u=new Vb1(r,h,s);let v=Date.now(),f=n-a;const d=()=>{this._raf&&(f=u.easeFrame(f,Date.now()-v),Math.abs(f)<1&&Math.abs(u.velocity)<50?(o(a),c&&c(),this.onFinish()):(v=Date.now(),o(f+a),this._raf=requestAnimationFrame(d)))};this._raf=requestAnimationFrame(d)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}}class bb1{constructor(){this.activeAnimations=[]}startSpring(e){this._start(e,!0)}startTransition(e){this._start(e)}_start(e,n){const a=n?new Cb1(e):new wb1(e);return this.activeAnimations.push(a),a.onFinish=()=>this.stop(a),a}stop(e){e.destroy();const n=this.activeAnimations.indexOf(e);n>-1&&this.activeAnimations.splice(n,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 Lb1{constructor(e){this.pswp=e,e.events.add(e.element,"wheel",this._onWheel.bind(this))}_onWheel(e){e.preventDefault();const{currSlide:n}=this.pswp;let{deltaX:a,deltaY:r}=e;if(n&&!this.pswp.dispatch("wheel",{originalEvent:e}).defaultPrevented)if(e.ctrlKey||this.pswp.options.wheelToZoom){if(n.isZoomable()){let o=-r;e.deltaMode===1?o*=.05:o*=e.deltaMode?1:.002,o=2**o;const c=n.currZoomLevel*o;n.zoomTo(c,{x:e.clientX,y:e.clientY})}}else n.isPannable()&&(e.deltaMode===1&&(a*=18,r*=18),n.panTo(n.pan.x-a,n.pan.y-r))}}function Bb1(t){if(typeof t=="string")return t;if(!t||!t.isCustomSVG)return"";const e=t;let n='",n}class _b1{constructor(e,n){var a;const r=n.name||n.className;let o=n.html;if(e.options[r]===!1)return;typeof e.options[r+"SVG"]=="string"&&(o=e.options[r+"SVG"]),e.dispatch("uiElementCreate",{data:n});let c="";n.isButton?(c+="pswp__button ",c+=n.className||`pswp__button--${n.name}`):c+=n.className||`pswp__${n.name}`;let l=n.isButton?n.tagName||"button":n.tagName||"div";l=l.toLowerCase();const h=ia(c,l);if(n.isButton){l==="button"&&(h.type="button");let{title:v}=n;const{ariaLabel:f}=n;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=Bb1(o),n.onInit&&n.onInit(h,e),n.onClick&&(h.onclick=v=>{typeof n.onClick=="string"?e[n.onClick]():typeof n.onClick=="function"&&n.onClick(v,h,e)});const s=n.appendTo||"bar";let u=e.element;s==="bar"?(e.topBar||(e.topBar=ia("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)),(a=u)===null||a===void 0||a.appendChild(e.applyFilters("uiElement",h,n))}}function sJ(t,e,n){t.classList.add("pswp__button--arrow"),t.setAttribute("aria-controls","pswp__items"),e.on("change",()=>{e.options.loop||(n?t.disabled=!(e.currIndex0))})}const Sb1={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:sJ},Tb1={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)=>{sJ(t,e,!0)}},Ob1={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-close"},onClick:"close"},Ab1={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},kb1={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-loading"},onInit:(t,e)=>{let n,a=null;const r=(l,h)=>{t.classList.toggle("pswp__preloader--"+l,h)},o=l=>{n!==l&&(n=l,r("active",l))},c=()=>{var l;if(!((l=e.currSlide)!==null&&l!==void 0&&l.content.isLoading())){o(!1),a&&(clearTimeout(a),a=null);return}a||(a=setTimeout(()=>{var h;o(!!(!((h=e.currSlide)===null||h===void 0)&&h.content.isLoading())),a=null},e.options.preloaderDelay))};e.on("change",c),e.on("loadComplete",l=>{e.currSlide===l.slide&&c()}),e.ui&&(e.ui.updatePreloaderVisibility=c)}},Eb1={name:"counter",order:5,onInit:(t,e)=>{e.on("change",()=>{t.innerText=e.currIndex+1+e.options.indexIndicatorSep+e.getNumItems()})}};function Vj(t,e){t.classList.toggle("pswp--zoomed-in",e)}class Pb1{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=[Ob1,Sb1,Tb1,Ab1,kb1,Eb1],e.dispatch("uiRegister"),this.uiElementsData.sort((n,a)=>(n.order||0)-(a.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(n=>{this.registerElement(n)}),e.on("change",()=>{var n;(n=e.element)===null||n===void 0||n.classList.toggle("pswp--one-slide",e.getNumItems()===1)}),e.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(e){this.isRegistered?this.items.push(new _b1(this.pswp,e)):this.uiElementsData.push(e)}_onZoomPanUpdate(){const{template:e,currSlide:n,options:a}=this.pswp;if(this.pswp.opener.isClosing||!e||!n)return;let{currZoomLevel:r}=n;if(this.pswp.opener.isOpen||(r=n.zoomLevels.initial),r===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=r;const o=n.zoomLevels.initial-n.zoomLevels.secondary;if(Math.abs(o)<.01||!n.isZoomable()){Vj(e,!1),e.classList.remove("pswp--zoom-allowed");return}e.classList.add("pswp--zoom-allowed");const c=r===n.zoomLevels.initial?n.zoomLevels.secondary:n.zoomLevels.initial;Vj(e,c<=r),(a.imageClickAction==="zoom"||a.imageClickAction==="zoom-or-close")&&e.classList.add("pswp--click-to-zoom")}}function Nb1(t){const e=t.getBoundingClientRect();return{x:e.left,y:e.top,w:e.width}}function Db1(t,e,n){const a=t.getBoundingClientRect(),r=a.width/e,o=a.height/n,c=r>o?r:o,l=(a.width-e*c)/2,h=(a.height-n*c)/2,s={x:a.left+l,y:a.top+h,w:e*c};return s.innerRect={w:a.width,h:a.height,x:l,y:h},s}function Rb1(t,e,n){const a=n.dispatch("thumbBounds",{index:t,itemData:e,instance:n});if(a.thumbBounds)return a.thumbBounds;const{element:r}=e;let o,c;if(r&&n.options.thumbSelector!==!1){const l=n.options.thumbSelector||"img";c=r.matches(l)?r:r.querySelector(l)}return c=n.applyFilters("thumbEl",c,e,t),c&&(e.thumbCropped?o=Db1(c,e.width||e.w||0,e.height||e.h||0):o=Nb1(c)),n.applyFilters("thumbBounds",o,e,t)}class jb1{constructor(e,n){this.type=e,this.defaultPrevented=!1,n&&Object.assign(this,n)}preventDefault(){this.defaultPrevented=!0}}class Ib1{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,n,a=100){var r,o,c;this._filters[e]||(this._filters[e]=[]),(r=this._filters[e])===null||r===void 0||r.push({fn:n,priority:a}),(o=this._filters[e])===null||o===void 0||o.sort((l,h)=>l.priority-h.priority),(c=this.pswp)===null||c===void 0||c.addFilter(e,n,a)}removeFilter(e,n){this._filters[e]&&(this._filters[e]=this._filters[e].filter(a=>a.fn!==n)),this.pswp&&this.pswp.removeFilter(e,n)}applyFilters(e,...n){var a;return(a=this._filters[e])===null||a===void 0||a.forEach(r=>{n[0]=r.fn.apply(this,n)}),n[0]}on(e,n){var a,r;this._listeners[e]||(this._listeners[e]=[]),(a=this._listeners[e])===null||a===void 0||a.push(n),(r=this.pswp)===null||r===void 0||r.on(e,n)}off(e,n){var a;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(r=>n!==r)),(a=this.pswp)===null||a===void 0||a.off(e,n)}dispatch(e,n){var a;if(this.pswp)return this.pswp.dispatch(e,n);const r=new jb1(e,n);return(a=this._listeners[e])===null||a===void 0||a.forEach(o=>{o.call(this,r)}),r}}class Fb1{constructor(e,n){if(this.element=ia("pswp__img pswp__img--placeholder",e?"img":"div",n),e){const a=this.element;a.decoding="async",a.alt="",a.src=e,a.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,n){this.element&&(this.element.tagName==="IMG"?(vL(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=qs(0,0,e/250)):vL(this.element,e,n))}destroy(){var e;(e=this.element)!==null&&e!==void 0&&e.parentNode&&this.element.remove(),this.element=null}}class $b1{constructor(e,n,a){this.instance=n,this.data=e,this.index=a,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=xa.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,n){if(this.slide&&this.usePlaceholder())if(this.placeholder){const a=this.placeholder.element;a&&!a.parentElement&&this.slide.container.prepend(a)}else{const a=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new Fb1(a,this.slide.container)}this.element&&!n||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=ia("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=ia("pswp__content","div"),this.element.innerHTML=this.data.html||""),n&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var n,a;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=(n=this.data.src)!==null&&n!==void 0?n:"",r.alt=(a=this.data.alt)!==null&&a!==void 0?a:"",this.state=xa.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=xa.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===xa.LOADED||this.state===xa.ERROR)&&this.removePlaceholder())}onError(){this.state=xa.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===xa.LOADING,this)}isError(){return this.state===xa.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(e,n){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,n),!this.instance.dispatch("contentResize",{content:this,width:e,height:n}).defaultPrevented&&(vL(this.element,e,n),this.isImageContent()&&!this.isError()))){const a=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=n,a?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:n,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==xa.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const e=this.element,n=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||n>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=n+"px",e.dataset.largestUsedSize=String(n))}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,n;let a=ia("pswp__error-msg","div");a.innerText=(e=(n=this.instance.options)===null||n===void 0?void 0:n.errorMsg)!==null&&e!==void 0?e:"",a=this.instance.applyFilters("contentErrorElement",a,this),this.element=ia("pswp__content pswp__error-msg-container","div"),this.element.appendChild(a),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===xa.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||zj())?(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&&!zj()?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===xa.LOADED||this.state===xa.ERROR)&&this.removePlaceholder()))}}const Ub1=5;function hJ(t,e,n){const a=e.createContentFromData(t,n);let r;const{options:o}=e;if(o){r=new lJ(o,t,-1);let c;e.pswp?c=e.pswp.viewportSize:c=oJ(o,e);const l=cJ(o,c,t,n);r.update(a.width,a.height,l)}return a.lazyLoad(),r&&a.setDisplayedSize(Math.ceil(a.width*r.initial),Math.ceil(a.height*r.initial)),a}function Wb1(t,e){const n=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:n}).defaultPrevented)return hJ(n,e,t)}let qb1=class{constructor(e){this.pswp=e,this.limit=Math.max(e.options.preload[0]+e.options.preload[1]+1,Ub1),this._cachedItems=[]}updateLazy(e){const{pswp:n}=this;if(n.dispatch("lazyLoad").defaultPrevented)return;const{preload:a}=n.options,r=e===void 0?!0:e>=0;let o;for(o=0;o<=a[1];o++)this.loadSlideByIndex(n.currIndex+(r?o:-o));for(o=1;o<=a[0];o++)this.loadSlideByIndex(n.currIndex+(r?-o:o))}loadSlideByIndex(e){const n=this.pswp.getLoopedIndex(e);let a=this.getContentByIndex(n);a||(a=Wb1(n,this.pswp),a&&this.addToCache(a))}getContentBySlide(e){let n=this.getContentByIndex(e.index);return n||(n=this.pswp.createContentFromData(e.data,e.index),this.addToCache(n)),n.setSlide(e),n}addToCache(e){if(this.removeByIndex(e.index),this._cachedItems.push(e),this._cachedItems.length>this.limit){const n=this._cachedItems.findIndex(a=>!a.isAttached&&!a.hasSlide);n!==-1&&this._cachedItems.splice(n,1)[0].destroy()}}removeByIndex(e){const n=this._cachedItems.findIndex(a=>a.index===e);n!==-1&&this._cachedItems.splice(n,1)}getContentByIndex(e){return this._cachedItems.find(n=>n.index===e)}destroy(){this._cachedItems.forEach(e=>e.destroy()),this._cachedItems=[]}};class Gb1 extends Ib1{getNumItems(){var e;let n=0;const a=(e=this.options)===null||e===void 0?void 0:e.dataSource;a&&"length"in a?n=a.length:a&&"gallery"in a&&(a.items||(a.items=this._getGalleryDOMElements(a.gallery)),a.items&&(n=a.items.length));const r=this.dispatch("numItems",{dataSource:a,numItems:n});return this.applyFilters("numItems",r.numItems,a)}createContentFromData(e,n){return new $b1(e,this,n)}getItemData(e){var n;const a=(n=this.options)===null||n===void 0?void 0:n.dataSource;let r={};Array.isArray(a)?r=a[e]:a&&"gallery"in a&&(a.items||(a.items=this._getGalleryDOMElements(a.gallery)),r=a.items[e]);let o=r;o instanceof Element&&(o=this._domElementToItemData(o));const c=this.dispatch("itemData",{itemData:o||{},index:e});return this.applyFilters("itemData",c.itemData,e)}_getGalleryDOMElements(e){var n,a;return(n=this.options)!==null&&n!==void 0&&n.children||(a=this.options)!==null&&a!==void 0&&a.childSelector?tb1(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const n={element:e},a=e.tagName==="A"?e:e.querySelector("a");if(a){n.src=a.dataset.pswpSrc||a.href,a.dataset.pswpSrcset&&(n.srcset=a.dataset.pswpSrcset),n.width=a.dataset.pswpWidth?parseInt(a.dataset.pswpWidth,10):0,n.height=a.dataset.pswpHeight?parseInt(a.dataset.pswpHeight,10):0,n.w=n.width,n.h=n.height,a.dataset.pswpType&&(n.type=a.dataset.pswpType);const o=e.querySelector("img");if(o){var r;n.msrc=o.currentSrc||o.src,n.alt=(r=o.getAttribute("alt"))!==null&&r!==void 0?r:""}(a.dataset.pswpCropped||a.dataset.cropped)&&(n.thumbCropped=!0)}return this.applyFilters("domItemData",n,e,a)}lazyLoadData(e,n){return hJ(e,this,n)}}const X9=.003;class Kb1{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,n=this.pswp.currSlide,{options:a}=e;if(a.showHideAnimationType==="fade"?(a.showHideOpacity=!0,this._thumbBounds=void 0):a.showHideAnimationType==="none"?(a.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&e._initialThumbBounds?this._thumbBounds=e._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=n==null?void 0:n.getPlaceholderElement(),e.animations.stopAll(),this._useAnimation=!!(this._duration&&this._duration>50),this._animateZoom=!!this._thumbBounds&&(n==null?void 0:n.content.usePlaceholder())&&(!this.isClosing||!e.mainScroll.isShifted()),!this._animateZoom)this._animateRootOpacity=!0,this.isOpening&&n&&(n.zoomAndPanToInitial(),n.applyCurrentZoomPan());else{var r;this._animateRootOpacity=(r=a.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 n=!1,a=!0;XC1(this._placeholder).finally(()=>{n=!0,a||e(!0)}),setTimeout(()=>{a=!1,n&&e(!0)},50),setTimeout(e,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){var e,n;(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")),(n=this.pswp.element)===null||n===void 0||n.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 n;this._animateZoom&&e.container&&(e.container.style.overflow="visible",e.container.style.width="100%"),(n=e.currSlide)===null||n===void 0||n.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:n}=this,{innerRect:a}=this._thumbBounds,{currSlide:r,viewportSize:o}=n;if(this._croppedZoom&&a&&this._cropContainer1&&this._cropContainer2){const c=-o.x+(this._thumbBounds.x-a.x)+a.w,l=-o.y+(this._thumbBounds.y-a.y)+a.h,h=o.x-a.w,s=o.y-a.h;e?(this._animateTo(this._cropContainer1,"transform",qs(c,l)),this._animateTo(this._cropContainer2,"transform",qs(h,s))):(b8(this._cropContainer1,c,l),b8(this._cropContainer2,h,s))}r&&(Fe(r.pan,a||this._thumbBounds),r.currZoomLevel=this._thumbBounds.w/r.width,e?this._animateTo(r.container,"transform",r.getCurrentTransform()):r.applyCurrentZoomPan())}_animateTo(e,n,a){if(!this._duration){e.style[n]=a;return}const{animations:r}=this.pswp,o={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{r.activeAnimations.length||this._onAnimationComplete()},target:e};o[n]=a,r.startTransition(o)}}const Yb1={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 Zb1 extends Gb1{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 eb1,this.animations=new bb1,this.mainScroll=new mb1(this),this.gestures=new gb1(this),this.opener=new Kb1(this),this.keyboard=new Mb1(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 Lb1(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:n}=this.mainScroll;n[0]&&(n[0].el.style.display="block",this.setContent(n[0],this.currIndex-1)),n[2]&&(n[2].el.style.display="block",this.setContent(n[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 n=this.getNumItems();return this.options.loop&&(e>n-1&&(e-=n),e<0&&(e+=n)),Kh(e,0,n-1)}appendHeavy(){this.mainScroll.itemHolders.forEach(e=>{var n;(n=e.slide)===null||n===void 0||n.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 n;(n=this.currSlide)===null||n===void 0||n.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(n=>{var a;(a=n.slide)===null||a===void 0||a.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(e){this.contentLoader.removeByIndex(e),this.mainScroll.itemHolders.forEach((n,a)=>{var r,o;let c=((r=(o=this.currSlide)===null||o===void 0?void 0:o.index)!==null&&r!==void 0?r:0)-1+a;if(this.canLoop()&&(c=this.getLoopedIndex(c)),c===e&&(this.setContent(n,e,!0),a===1)){var l;this.currSlide=n.slide,(l=n.slide)===null||l===void 0||l.setIsActive(!0)}}),this.dispatch("change")}setContent(e,n,a){if(this.canLoop()&&(n=this.getLoopedIndex(n)),e.slide){if(e.slide.index===n&&!a)return;e.slide.destroy(),e.slide=void 0}if(!this.canLoop()&&(n<0||n>=this.getNumItems()))return;const r=this.getItemData(n);e.slide=new ab1(r,n,this),n===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 n=oJ(this.options,this);!e&&is(n,this._prevViewportSize)||(Fe(this._prevViewportSize,n),this.dispatch("beforeResize"),Fe(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,n){this.offset.x=e,this.offset.y=n,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=ia("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=ia("pswp__bg","div",this.element),this.scrollWrap=ia("pswp__scroll-wrap","section",this.element),this.container=ia("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 Pb1(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return Rb1(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),{...Yb1,...e}}}class Qb1 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 Xb1(t,e){if(!(t instanceof Element)||!(e instanceof Element))throw new Qb1;return t===e?0:t.compareDocumentPosition(e)&2?1:-1}function uJ(t){return Object.entries(t).map(([e,n])=>n?`${e}=${n}`:e).join("&")}function uT(t){return t.split("&").reduce((e,n)=>{const[a,r]=n.split("=");return a&&(e[a]=r),e},{})}function Cj(t){const e=uT(t);return delete e.gid,delete e.pid,uJ(e)}function J9(){return window.location.hash.substring(1)}function bj(){return`${window.location.pathname}${window.location.search}`}const Lj=t=>{const e=uT(t);return!!e.gid&&!!e.pid};function Jb1(t,e){return t!==null?t:e?parseInt(e,10)-1:0}const vT=W1.createContext({remove:()=>{},set:()=>{},handleClick:()=>{},open:()=>{}});class tL1{constructor(e){this.pswp=e,this.on=e.on.bind(e),this.off=e.off.bind(e),this.dispatch=e.dispatch.bind(e)}}var eL1=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(t);r{const[s,u]=_.useState(null),v=_.useRef(new Map),f=_.useRef(null),d=_.useCallback((M,w,x,y)=>{if(g3)return;let V=x||null;const C=[],L=Array.from(v.current),B=(W,U)=>{const[Z,I]=W,{width:t1,height:R,original:i1,originalSrcset:J,thumbnail:A,cropped:o1,content:h1,id:n1}=I,M1=eL1(I,["width","height","original","originalSrcset","thumbnail","cropped","content","id"]);(M===Z||n1!==void 0&&String(n1)===w)&&(V=U),C.push(Object.assign(Object.assign(Object.assign({w:Number(t1),h:Number(R),src:i1,srcset:J,msrc:A,element:Z.current,thumbCropped:o1,content:h1},h1!==void 0?{type:"html"}:{}),n1!==void 0?{pid:n1}:{}),M1))};v.current.size>1?L.sort(([{current:W}],[{current:U}])=>Xb1(W,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 Zb1(Object.assign({dataSource:C,index:Jb1(V,w),initialPointerPos:S},e||{}));g3=T,T.on("contentActivate",({content:W})=>{W.data.content?u($8.createPortal(W.data.content,W.element)):u(null)}),T.on("close",()=>{u(null)}),h&&T.on("uiRegister",()=>{var W;(W=T.ui)===null||W===void 0||W.registerElement({name:"download-button",ariaLabel:"Download",order:8,isButton:!0,tagName:"a",appendTo:"bar",html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-download"},onInit:(U,Z)=>{U.setAttribute("download",""),U.setAttribute("target","_blank"),U.setAttribute("rel","noopener"),T.on("change",()=>{var I;if(!(!((I=Z.currSlide)===null||I===void 0)&&I.data.src))return;const t1=U;t1.href=Z.currSlide.data.src})}})}),l&&T.on("uiRegister",()=>{var W;(W=T.ui)===null||W===void 0||W.registerElement({name:"default-caption",order:9,isButton:!1,appendTo:"root",onInit:(U,Z)=>{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(!Z.currSlide)return;const{caption:I,alt:t1}=Z.currSlide.data;U.innerHTML=I||t1||""})}})}),Array.isArray(a)&&a.forEach(W=>{T.on("uiRegister",()=>{var U;(U=T.ui)===null||U===void 0||U.registerElement(W)})}),typeof n=="function"&&n(new tL1(T)),typeof o=="function"&&o(T);const P=()=>({gallery:{galleryUID:r}});T.on("beforeOpen",()=>{var W;if(r===void 0)return;if(!Lj(J9())){window.history.pushState(P(),document.title);return}if(!!(!((W=window.history.state)===null||W===void 0)&&W.gallery))return;const I=bj(),t1=J9(),R=Cj(t1),i1=`${I}${R?`#${R}`:""}`,J=`${I}#${t1}`;window.history.replaceState(window.history.state,document.title,i1),window.history.pushState(P(),document.title,J)}),T.on("change",()=>{var W;if(r===void 0)return;const U=((W=T.currSlide)===null||W===void 0?void 0:W.data.pid)||T.currIndex+1,Z=bj(),I=Cj(J9()),t1=uJ({gid:r,pid:U}),R=`${Z}#${I}&${t1}`;window.history.replaceState(P(),document.title,R)});const F=()=>{r!==void 0&&g3!==null&&g3.close()};window.addEventListener("popstate",F),T.on("destroy",()=>{r!==void 0&&(window.removeEventListener("popstate",F),Lj(J9())&&window.history.back()),g3=null}),T.init(),typeof c=="function"&&c(T)},[e,n,a,r,o,c,l,h]);_.useEffect(()=>()=>{g3&&g3.close()},[]);const z=_.useCallback(()=>{if(r===void 0||g3!==null)return;const M=J9();if(M.length<5)return;const w=uT(M),{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(()=>(z(),window.addEventListener("popstate",z),()=>{window.removeEventListener("popstate",z)}),[z]);const g=_.useCallback(M=>{v.current.delete(M)},[]),H=_.useCallback((M,w)=>{const{id:x}=w;if(v.current.set(M,w),f.current!==null){if(x===f.current){d(M),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(M=>{d(null,null,M)},[d]),m=_.useMemo(()=>({remove:g,set:H,handleClick:d,open:p}),[g,H,d,p]);return W1.createElement(vT.Provider,{value:m},t,s)};vJ.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 nL1=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(t);r{var{children:e}=t,n=nL1(t,["children"]);const a=_.useRef(),{remove:r,set:o,handleClick:c}=_.useContext(vT),l=_.useCallback(h=>c(a,null,null,h),[]);return _.useLayoutEffect(()=>(o(a,n),()=>r(a)),Object.values(n)),e({ref:a,open:l})};dJ.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 aL1=()=>{const{open:t}=W1.useContext(vT);return{open:t}},rL1=Object.freeze(Object.defineProperty({__proto__:null,Gallery:vJ,Item:dJ,useGallery:aL1},Symbol.toStringTag,{value:"Module"})),iL1=se(rL1);var Kz={},oL1="Expected a function",cL1=9007199254740991,lL1="[object Arguments]",sL1="[object Function]",hL1="[object GeneratorFunction]",uL1=typeof b=="object"&&b&&b.Object===Object&&b,vL1=typeof self=="object"&&self&&self.Object===Object&&self,dL1=uL1||vL1||Function("return this")();function fL1(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function gL1(t,e){for(var n=-1,a=e.length,r=t.length;++n0&&n(l)?e>1?gJ(l,e-1,n,a,r):gL1(r,l):a||(r[r.length]=l)}return r}function zL1(t,e){return e=Sj(e===void 0?t.length-1:e,0),function(){for(var n=arguments,a=-1,r=Sj(n.length-e,0),o=Array(r);++a-1&&t%1==0&&t<=cL1}function LL1(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function BL1(t){return!!t&&typeof t=="object"}var _L1=ML1(),SL1=_L1,TL1=b&&b.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Kz,"__esModule",{value:!0});var OL1=Kz.fixContentForMarkdown=void 0,AL1=TL1(SL1),kL1=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 n=e.replace(/\\+/g,"");return n.trim().length?e:n}).join(` -`)},AL1=function(t){return t===void 0&&(t=""),t.includes("style=”")?t.split("style=”").map(function(e){return e.replace("”",'"')}).join('style="'):t},kL1=function(t){var e=/==([^=\r\n]+)==/g,n=t.match(e);if(!n)return t;for(var a=t,r=0,o=n;r".concat(c.replace(/==/g,""),"");a=a.replace(c,l)}return a},EL1=function(t){return t===void 0&&(t=""),typeof t!="string"||t==="null"?"":(0,TL1.default)([OL1,AL1,kL1])(t)};_L1=Kz.fixContentForMarkdown=EL1;var Tj;function gJ(){return Tj||(Tj=1,function(t){var e=b&&b.__makeTemplateObject||function(U,Z){return Object.defineProperty?Object.defineProperty(U,"raw",{value:Z}):U.raw=Z,U},n=b&&b.__assign||function(){return n=Object.assign||function(U){for(var Z,I=1,t1=arguments.length;I".concat(c.replace(/==/g,""),"");a=a.replace(c,l)}return a},NL1=function(t){return t===void 0&&(t=""),typeof t!="string"||t==="null"?"":(0,AL1.default)([kL1,EL1,PL1])(t)};OL1=Kz.fixContentForMarkdown=NL1;var Tj;function pJ(){return Tj||(Tj=1,function(t){var e=b&&b.__makeTemplateObject||function(U,Z){return Object.defineProperty?Object.defineProperty(U,"raw",{value:Z}):U.raw=Z,U},n=b&&b.__assign||function(){return n=Object.assign||function(U){for(var Z,I=1,t1=arguments.length;I1&&arguments[1]!==void 0?arguments[1]:{};Jt(this,t),this.init(e,n)}return t2(t,[{key:"init",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=n||NL1,this.options=a,this.debug=a.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,a=new Array(n),r=0;r1?a-1:0),o=1;o-1?l.replace(/###/g,"."):l}function r(){return!t||typeof t=="string"}for(var o=typeof e!="string"?[].concat(e):e.split(".");o.length>1;){if(r())return{};var c=a(o.shift());!t[c]&&n&&(t[c]=new n),Object.prototype.hasOwnProperty.call(t,c)?t=t[c]:t={}}return r()?{}:{obj:t,k:a(o.shift())}}function Pj(t,e,n){var a=fT(t,e,Object),r=a.obj,o=a.k;r[o]=n}function jL1(t,e,n,a){var r=fT(t,e,Object),o=r.obj,c=r.k;o[c]=o[c]||[],a&&(o[c]=o[c].concat(n)),a||o[c].push(n)}function np(t,e){var n=fT(t,e),a=n.obj,r=n.k;if(a)return a[r]}function Nj(t,e,n){var a=np(t,n);return a!==void 0?a:np(e,n)}function HJ(t,e,n){for(var a in e)a!=="__proto__"&&a!=="constructor"&&(a in t?typeof t[a]=="string"||t[a]instanceof String||typeof e[a]=="string"||e[a]instanceof String?n&&(t[a]=e[a]):HJ(t[a],e[a],n):t[a]=e[a]);return t}function Y6(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var IL1={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function FL1(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return IL1[e]}):t}var Yz=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,$L1=[" ",",","?","!",";"];function UL1(t,e,n){e=e||"",n=n||"";var a=$L1.filter(function(l){return e.indexOf(l)<0&&n.indexOf(l)<0});if(a.length===0)return!0;var r=new RegExp("(".concat(a.map(function(l){return l==="?"?"\\?":l}).join("|"),")")),o=!r.test(t);if(!o){var c=t.indexOf(n);c>0&&!r.test(t.substring(0,c))&&(o=!0)}return o}function Dj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}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 wJ(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var a=e.split(n),r=t,o=0;oo+c;)c++,l=a.slice(o,o+c).join(n),h=r[l];if(h===void 0)return;if(h===null)return null;if(e.endsWith(l)){if(typeof h=="string")return h;if(l&&typeof h[l]=="string")return h[l]}var s=a.slice(o+c).join(n);return s?wJ(h,s,n):void 0}r=r[a[o]]}return r}}var GL1=function(t){M2(n,t);var e=WL1(n);function n(a){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Jt(this,n),r=e.call(this),Yz&&fo.call(D1(r)),r.data=a||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return t2(n,[{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,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,s=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[r,o];c&&typeof c!="string"&&(u=u.concat(c)),c&&typeof c=="string"&&(u=u.concat(h?c.split(h):c)),r.indexOf(".")>-1&&(u=r.split("."));var v=np(this.data,u);return v||!s||typeof c!="string"?v:wJ(this.data&&this.data[r]&&this.data[r][o],c,h)}},{key:"addResource",value:function(r,o,c,l){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];c&&(u=u.concat(s?c.split(s):c)),r.indexOf(".")>-1&&(u=r.split("."),l=o,o=u[1]),this.addNamespaces(o),Pj(this.data,u,l),h.silent||this.emit("added",r,o,c,l)}},{key:"addResources",value:function(r,o,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var h in c)(typeof c[h]=="string"||Object.prototype.toString.apply(c[h])==="[object Array]")&&this.addResource(r,o,h,c[h],{silent:!0});l.silent||this.emit("added",r,o,c)}},{key:"addResourceBundle",value:function(r,o,c,l,h){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[r,o];r.indexOf(".")>-1&&(u=r.split("."),l=c,c=o,o=u[1]),this.addNamespaces(o);var v=np(this.data,u)||{};l?HJ(v,c,h):v=Td(Td({},v),c),Pj(this.data,u,v),s.silent||this.emit("added",r,o,c)}},{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),c=o&&Object.keys(o)||[];return!!c.find(function(l){return o[l]&&Object.keys(o[l]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(fo),yJ={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,a,r,o){var c=this;return e.forEach(function(l){c.processors[l]&&(n=c.processors[l].process(n,a,r,o))}),n}};function Rj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function cn(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 jj={},Ij=function(t){M2(n,t);var e=KL1(n);function n(a){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Jt(this,n),r=e.call(this),Yz&&fo.call(D1(r)),RL1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,D1(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=p5.create("translator"),r}return t2(n,[{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 c=this.resolve(r,o);return c&&c.res!==void 0}},{key:"extractFromKey",value:function(r,o){var c=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");var l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,h=o.ns||this.options.defaultNS||[],s=c&&r.indexOf(c)>-1,u=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!UL1(r,c,l);if(s&&!u){var v=r.match(this.interpolator.nestingRegexp);if(v&&v.length>0)return{key:r,namespaces:h};var f=r.split(c);(c!==l||c===l&&this.options.ns.indexOf(f[0])>-1)&&(h=f.shift()),r=f.join(l)}return typeof h=="string"&&(h=[h]),{key:r,namespaces:h}}},{key:"translate",value:function(r,o,c){var l=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,cn(cn({},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 _=x==="[object Array]",T=_?[]:{},P=_?w:z;for(var F in m)if(Object.prototype.hasOwnProperty.call(m,F)){var W="".concat(P).concat(s).concat(F);T[F]=this.translate(W,cn(cn({},o),{joinArrays:!1,ns:f})),T[F]===W&&(T[F]=m[F])}m=T}}else if(C&&typeof V=="string"&&x==="[object Array]")m=m.join(V),m&&(m=this.extendTranslation(m,r,o,c));else{var U=!1,Z=!1,I=o.count!==void 0&&typeof o.count!="string",t1=n.hasDefaultValue(o),R=I?this.pluralResolver.getSuffix(M,o.count,o):"",i1=o["defaultValue".concat(R)]||o.defaultValue;!this.isValidLookup(m)&&t1&&(U=!0,m=i1),this.isValidLookup(m)||(Z=!0,m=v);var J=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,A=J&&Z?void 0:m,o1=t1&&i1!==m&&this.options.updateMissing;if(Z||U||o1){if(this.logger.log(o1?"updateKey":"missingKey",M,d,v,o1?i1:m),s){var h1=this.resolve(v,cn(cn({},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 n1=[],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]:{},l,h,s,u,v;return typeof r=="string"&&(r=[r]),r.forEach(function(f){if(!o.isValidLookup(l)){var d=o.extractFromKey(f,c),M=d.key;h=M;var g=d.namespaces;o.options.fallbackNS&&(g=g.concat(o.options.fallbackNS));var H=c.count!==void 0&&typeof c.count!="string",p=H&&!c.ordinal&&c.count===0&&o.pluralResolver.shouldUseIntlApi(),m=c.context!==void 0&&(typeof c.context=="string"||typeof c.context=="number")&&c.context!=="",z=c.lngs?c.lngs:o.languageUtils.toResolveHierarchy(c.lng||o.language,c.fallbackLng);g.forEach(function(w){o.isValidLookup(l)||(v=w,!jj["".concat(z[0],"-").concat(w)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(v)&&(jj["".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(l)){u=x;var y=[M];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(y,M,x,w,c);else{var V;H&&(V=o.pluralResolver.getSuffix(x,c.count,c));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(c.context);y.push(L),H&&(y.push(L+V),p&&y.push(L+C))}}for(var B;B=y.pop();)o.isValidLookup(l)||(s=B,l=o.getResource(x,w,B,c))}}))})}}),{res:l,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,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,o,c,l):this.resourceStore.getResource(r,o,c,l)}}],[{key:"hasDefaultValue",value:function(r){var o="defaultValue";for(var c in r)if(Object.prototype.hasOwnProperty.call(r,c)&&o===c.substring(0,o.length)&&r[c]!==void 0)return!0;return!1}}]),n}(fo);function Jx(t){return t.charAt(0).toUpperCase()+t.slice(1)}var ZL1=function(){function t(e){Jt(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=p5.create("languageUtils")}return t2(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var a=n.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var a=n.split("-");return this.formatLanguageCode(a[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var a=["hans","hant","latn","cyrl","cans","mong","arab"],r=n.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(),a.indexOf(r[1].toLowerCase())>-1&&(r[1]=Jx(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()),a.indexOf(r[1].toLowerCase())>-1&&(r[1]=Jx(r[1].toLowerCase())),a.indexOf(r[2].toLowerCase())>-1&&(r[2]=Jx(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var a=this;if(!n)return null;var r;return n.forEach(function(o){if(!r){var c=a.formatLanguageCode(o);(!a.options.supportedLngs||a.isSupportedCode(c))&&(r=c)}}),!r&&this.options.supportedLngs&&n.forEach(function(o){if(!r){var c=a.getLanguagePartFromCode(o);if(a.isSupportedCode(c))return r=c;r=a.options.supportedLngs.find(function(l){if(l.indexOf(c)===0)return l})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}},{key:"getFallbackCodes",value:function(n,a){if(!n)return[];if(typeof n=="function"&&(n=n(a)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!a)return n.default||[];var r=n[a];return r||(r=n[this.getScriptPartFromCode(a)]),r||(r=n[this.formatLanguageCode(a)]),r||(r=n[this.getLanguagePartFromCode(a)]),r||(r=n.default),r||[]}},{key:"toResolveHierarchy",value:function(n,a){var r=this,o=this.getFallbackCodes(a||this.options.fallbackLng||[],n),c=[],l=function(s){s&&(r.isSupportedCode(s)?c.push(s):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(s)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(n))):typeof n=="string"&&l(this.formatLanguageCode(n)),o.forEach(function(h){c.indexOf(h)<0&&l(r.formatLanguageCode(h))}),c}}]),t}(),QL1=[{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}],XL1={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}},JL1=["v1","v2","v3"],Fj={zero:0,one:1,two:2,few:3,many:4,other:5};function tB1(){var t={};return QL1.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:XL1[e.fc]}})}),t}var eB1=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Jt(this,t),this.languageUtils=e,this.options=n,this.logger=p5.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=tB1()}return t2(t,[{key:"addRule",value:function(n,a){this.rules[n]=a}},{key:"getRule",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:a.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(n,a);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,r).map(function(o){return"".concat(a).concat(o)})}},{key:"getSuffixes",value:function(n){var a=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,r);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(c,l){return Fj[c]-Fj[l]}).map(function(c){return"".concat(a.options.prepend).concat(c)}):o.numbers.map(function(c){return a.getSuffix(n,c,r)}):[]}},{key:"getSuffix",value:function(n,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,r);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(a)):this.getSuffixRetroCompatible(o,a):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,a){var r=this,o=n.noAbs?n.plurals(a):n.plurals(Math.abs(a)),c=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(c===2?c="plural":c===1&&(c=""));var l=function(){return r.options.prepend&&c.toString()?r.options.prepend+c.toString():c.toString()};return this.options.compatibilityJSON==="v1"?c===1?"":typeof c=="number"?"_plural_".concat(c.toString()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?l():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!JL1.includes(this.options.compatibilityJSON)}}]),t}();function $j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function ur(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};Jt(this,t),this.logger=p5.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return t2(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var a=n.interpolation;this.escape=a.escape!==void 0?a.escape:FL1,this.escapeValue=a.escapeValue!==void 0?a.escapeValue:!0,this.useRawValueToEscape=a.useRawValueToEscape!==void 0?a.useRawValueToEscape:!1,this.prefix=a.prefix?Y6(a.prefix):a.prefixEscaped||"{{",this.suffix=a.suffix?Y6(a.suffix):a.suffixEscaped||"}}",this.formatSeparator=a.formatSeparator?a.formatSeparator:a.formatSeparator||",",this.unescapePrefix=a.unescapeSuffix?"":a.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":a.unescapeSuffix||"",this.nestingPrefix=a.nestingPrefix?Y6(a.nestingPrefix):a.nestingPrefixEscaped||Y6("$t("),this.nestingSuffix=a.nestingSuffix?Y6(a.nestingSuffix):a.nestingSuffixEscaped||Y6(")"),this.nestingOptionsSeparator=a.nestingOptionsSeparator?a.nestingOptionsSeparator:a.nestingOptionsSeparator||",",this.maxReplaces=a.maxReplaces?a.maxReplaces:1e3,this.alwaysFormat=a.alwaysFormat!==void 0?a.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var a="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(a,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(n,a,r,o){var c=this,l,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(c.formatSeparator)<0){var m=Nj(a,u,p);return c.alwaysFormat?c.format(m,void 0,r,ur(ur(ur({},o),a),{},{interpolationkey:p})):m}var z=p.split(c.formatSeparator),w=z.shift().trim(),x=z.join(c.formatSeparator).trim();return c.format(Nj(a,u,w),x,r,ur(ur(ur({},o),a),{},{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 c.escapeValue?v(c.escape(p)):v(p)}}];return g.forEach(function(H){for(s=0;l=H.regex.exec(n);){var p=l[1].trim();if(h=f(p),h===void 0)if(typeof d=="function"){var m=d(n,l,o);h=typeof m=="string"?m:""}else if(o&&o.hasOwnProperty(p))h="";else if(M){h=l[0];continue}else c.logger.warn("missed to pass in variable ".concat(p," for interpolating ").concat(n)),h="";else typeof h!="string"&&!c.useRawValueToEscape&&(h=Ej(h));var z=H.safeValue(h);if(n=n.replace(l[0],z),M?(H.regex.lastIndex+=h.length,H.regex.lastIndex-=l[0].length):H.regex.lastIndex=0,s++,s>=c.maxReplaces)break}}),n}},{key:"nest",value:function(n,a){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c,l,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(;c=this.nestingRegexp.exec(n);){var u=[],v=!1;if(c[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(c[1])){var f=c[1].split(this.formatSeparator).map(function(d){return d.trim()});c[1]=f.shift(),u=f,v=!0}if(l=a(s.call(this,c[1].trim(),h),h),l&&c[0]===n&&typeof l!="string")return l;typeof l!="string"&&(l=Ej(l)),l||(this.logger.warn("missed to resolve ".concat(c[1]," for nesting ").concat(n)),l=""),v&&(l=u.reduce(function(d,M){return r.format(d,M,o.lng,ur(ur({},o),{},{interpolationkey:c[1].trim()}))},l.trim())),n=n.replace(c[0],l),this.regexp.lastIndex=0}return n}}]),t}();function Uj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function m3(t){for(var e=1;e-1){var a=t.split("(");e=a[0].toLowerCase().trim();var r=a[1].substring(0,a[1].length-1);if(e==="currency"&&r.indexOf(":")<0)n.currency||(n.currency=r.trim());else if(e==="relativetime"&&r.indexOf(":")<0)n.range||(n.range=r.trim());else{var o=r.split(";");o.forEach(function(c){if(c){var l=c.split(":"),h=MJ(l),s=h[0],u=h.slice(1),v=u.join(":").trim().replace(/^'+|'+$/g,"");n[s.trim()]||(n[s.trim()]=v),v==="false"&&(n[s.trim()]=!1),v==="true"&&(n[s.trim()]=!0),isNaN(v)||(n[s.trim()]=parseInt(v,10))}})}}return{formatName:e,formatOptions:n}}function Z6(t){var e={};return function(a,r,o){var c=r+JSON.stringify(o),l=e[c];return l||(l=t(r,o),e[c]=l),l(a)}}var rB1=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Jt(this,t),this.logger=p5.create("formatter"),this.options=e,this.formats={number:Z6(function(n,a){var r=new Intl.NumberFormat(n,a);return function(o){return r.format(o)}}),currency:Z6(function(n,a){var r=new Intl.NumberFormat(n,m3(m3({},a),{},{style:"currency"}));return function(o){return r.format(o)}}),datetime:Z6(function(n,a){var r=new Intl.DateTimeFormat(n,m3({},a));return function(o){return r.format(o)}}),relativetime:Z6(function(n,a){var r=new Intl.RelativeTimeFormat(n,m3({},a));return function(o){return r.format(o,a.range||"day")}}),list:Z6(function(n,a){var r=new Intl.ListFormat(n,m3({},a));return function(o){return r.format(o)}})},this.init(e)}return t2(t,[{key:"init",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},r=a.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}},{key:"add",value:function(n,a){this.formats[n.toLowerCase().trim()]=a}},{key:"addCached",value:function(n,a){this.formats[n.toLowerCase().trim()]=Z6(a)}},{key:"format",value:function(n,a,r,o){var c=this,l=a.split(this.formatSeparator),h=l.reduce(function(s,u){var v=aB1(u),f=v.formatName,d=v.formatOptions;if(c.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=c.formats[f](s,H,m3(m3(m3({},d),o),g))}catch(p){c.logger.warn(p)}return M}else c.logger.warn("there was no format function for ".concat(f));return s},n);return h}}]),t}();function Wj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function qj(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 cB1(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var lB1=function(t){M2(n,t);var e=iB1(n);function n(a,r,o){var c,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Jt(this,n),c=e.call(this),Yz&&fo.call(D1(c)),c.backend=a,c.store=r,c.services=o,c.languageUtils=o.languageUtils,c.options=l,c.logger=p5.create("backendConnector"),c.waitingReads=[],c.maxParallelReads=l.maxParallelReads||10,c.readingCalls=0,c.maxRetries=l.maxRetries>=0?l.maxRetries:5,c.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,c.state={},c.queue=[],c.backend&&c.backend.init&&c.backend.init(o,l.backend,l),c}return t2(n,[{key:"queueLoad",value:function(r,o,c,l){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);!c.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:l}),{toLoad:Object.keys(s),pending:Object.keys(u),toLoadLanguages:Object.keys(v),toLoadNamespaces:Object.keys(f)}}},{key:"loaded",value:function(r,o,c){var l=r.split("|"),h=l[0],s=l[1];o&&this.emit("failedLoading",h,s,o),c&&this.store.addResourceBundle(h,s,c),this.state[r]=o?-1:2;var u={};this.queue.forEach(function(v){jL1(v.loaded,[h],s),cB1(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,c){var l=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:c,tried:h,wait:s,callback:u});return}return this.readingCalls++,this.backend[c](r,o,function(v,f){if(l.readingCalls--,l.waitingReads.length>0){var d=l.waitingReads.shift();l.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,l,h);if(!s.toLoad.length)return s.pending.length||h(),null;s.toLoad.forEach(function(u){c.loadOne(u)})}},{key:"load",value:function(r,o,c){this.prepareLoading(r,o,{},c)}},{key:"reload",value:function(r,o,c){this.prepareLoading(r,o,{reload:!0},c)}},{key:"loadOne",value:function(r){var o=this,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=r.split("|"),h=l[0],s=l[1];this.read(h,s,"read",void 0,void 0,function(u,v){u&&o.logger.warn("".concat(c,"loading namespace ").concat(s," for language ").concat(h," failed"),u),!u&&v&&o.logger.log("".concat(c,"loaded namespace ").concat(s," for language ").concat(h),v),o.loaded(r,u,v)})}},{key:"saveMissing",value:function(r,o,c,l,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(c,'" 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}c==null||c===""||(this.backend&&this.backend.create&&this.backend.create(r,o,c,l,null,qj(qj({},s),{},{isUpdate:h})),!(!r||!r[0])&&this.store.addResource(r[0],o,c,l))}}]),n}(fo);function sB1(){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 n={};if(C2(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),C2(e[2])==="object"||C2(e[3])==="object"){var a=e[3]||e[2];Object.keys(a).forEach(function(r){n[r]=a[r]})}return n},interpolation:{escapeValue:!0,format:function(e,n,a,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Gj(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 Kj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}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 vB1(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var ap=function(t){M2(n,t);var e=hB1(n);function n(){var a,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Jt(this,n),a=e.call(this),Yz&&fo.call(D1(a)),a.options=Gj(r),a.services={},a.logger=p5,a.modules={external:[]},vB1(D1(a)),o&&!a.isInitialized&&!r.isClone){if(!a.options.initImmediate)return a.init(r,o),Rl(a,D1(a));setTimeout(function(){a.init(r,o)},0)}return a}return t2(n,[{key:"init",value:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(c=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 l=sB1();this.options=Zr(Zr(Zr({},l),this.options),Gj(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Zr(Zr({},l.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?p5.init(h(this.modules.logger),this.options):p5.init(null,this.options);var s;this.modules.formatter?s=this.modules.formatter:typeof Intl<"u"&&(s=rB1);var u=new ZL1(this.options);this.store=new GL1(this.options.resources,this.options);var v=this.services;v.logger=p5,v.resourceStore=this.store,v.languageUtils=u,v.pluralResolver=new eB1(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s&&(!this.options.interpolation.format||this.options.interpolation.format===l.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 nB1(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new lB1(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),c(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,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Od,l=c,h=typeof r=="string"?r:this.language;if(typeof r=="function"&&(l=r),!this.options.resources||this.options.partialBundledLanguages){if(h&&h.toLowerCase()==="cimode")return l();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),l(f)})}else l(null)}},{key:"reloadResources",value:function(r,o,c){var l=t7();return r||(r=this.languages),o||(o=this.options.ns),c||(c=Od),this.services.backendConnector.reload(r,o,function(h){l.resolve(),c(h)}),l}},{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"&&yJ.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(c)){this.resolvedLanguage=c;break}}}},{key:"changeLanguage",value:function(r,o){var c=this;this.isLanguageChangingTo=r;var l=t7();this.emit("languageChanging",r);var h=function(f){c.language=f,c.languages=c.services.languageUtils.toResolveHierarchy(f),c.resolvedLanguage=void 0,c.setResolvedLanguage(f)},s=function(f,d){d?(h(d),c.translator.changeLanguage(d),c.isLanguageChangingTo=void 0,c.emit("languageChanged",d),c.logger.log("languageChanged",d)):c.isLanguageChangingTo=void 0,l.resolve(function(){return c.t.apply(c,arguments)}),o&&o(f,function(){return c.t.apply(c,arguments)})},u=function(f){!r&&!f&&c.services.languageDetector&&(f=[]);var d=typeof f=="string"?f:c.services.languageUtils.getBestMatchFromCodes(f);d&&(c.language||h(d),c.translator.language||c.translator.changeLanguage(d),c.services.languageDetector&&c.services.languageDetector.cacheUserLanguage(d)),c.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),l}},{key:"getFixedT",value:function(r,o,c){var l=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 l=this.resolvedLanguage||this.languages[0],h=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(l.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(c.precheck){var v=c.precheck(this,u);if(v!==void 0)return v}return!!(this.hasResourceBundle(l,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(l,r)&&(!h||u(s,r)))}},{key:"loadNamespaces",value:function(r,o){var c=this,l=t7();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(h){c.options.ns.indexOf(h)<0&&c.options.ns.push(h)}),this.loadResources(function(h){l.resolve(),o&&o(h)}),l):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(r,o){var c=t7();typeof r=="string"&&(r=[r]);var l=this.options.preload||[],h=r.filter(function(s){return l.indexOf(s)<0});return h.length?(this.options.preload=l.concat(h),this.loadResources(function(s){c.resolve(),o&&o(s)}),c):(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]:{},c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Od,l=Zr(Zr(Zr({},this.options),o),{isClone:!0}),h=new n(l);(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 Ij(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 ap(t,e)});var tn=ap.createInstance();tn.createInstance=ap.createInstance;var dB1=tn.createInstance,fB1=tn.init,gB1=tn.loadResources,pB1=tn.reloadResources,mB1=tn.use,zB1=tn.changeLanguage,MB1=tn.getFixedT,HB1=tn.t,wB1=tn.exists,yB1=tn.setDefaultNamespace,xB1=tn.hasLoadedNamespace,VB1=tn.loadNamespaces,CB1=tn.loadLanguages;const bB1=Object.freeze(Object.defineProperty({__proto__:null,changeLanguage:zB1,createInstance:dB1,default:tn,exists:wB1,getFixedT:MB1,hasLoadedNamespace:xB1,init:fB1,loadLanguages:CB1,loadNamespaces:VB1,loadResources:gB1,reloadResources:pB1,setDefaultNamespace:yB1,t:HB1,use:mB1},Symbol.toStringTag,{value:"Module"})),t9=se(bB1);(function(t){var e=b&&b.__makeTemplateObject||function(V,C){return Object.defineProperty?Object.defineProperty(V,"raw",{value:C}):V.raw=C,V},n=b&&b.__assign||function(){return n=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,n)}return t2(t,[{key:"init",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=n||RL1,this.options=a,this.debug=a.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,a=new Array(n),r=0;r1?a-1:0),o=1;o-1?l.replace(/###/g,"."):l}function r(){return!t||typeof t=="string"}for(var o=typeof e!="string"?[].concat(e):e.split(".");o.length>1;){if(r())return{};var c=a(o.shift());!t[c]&&n&&(t[c]=new n),Object.prototype.hasOwnProperty.call(t,c)?t=t[c]:t={}}return r()?{}:{obj:t,k:a(o.shift())}}function Pj(t,e,n){var a=fT(t,e,Object),r=a.obj,o=a.k;r[o]=n}function FL1(t,e,n,a){var r=fT(t,e,Object),o=r.obj,c=r.k;o[c]=o[c]||[],a&&(o[c]=o[c].concat(n)),a||o[c].push(n)}function np(t,e){var n=fT(t,e),a=n.obj,r=n.k;if(a)return a[r]}function Nj(t,e,n){var a=np(t,n);return a!==void 0?a:np(e,n)}function yJ(t,e,n){for(var a in e)a!=="__proto__"&&a!=="constructor"&&(a in t?typeof t[a]=="string"||t[a]instanceof String||typeof e[a]=="string"||e[a]instanceof String?n&&(t[a]=e[a]):yJ(t[a],e[a],n):t[a]=e[a]);return t}function Zc(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var $L1={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function UL1(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return $L1[e]}):t}var Yz=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,WL1=[" ",",","?","!",";"];function qL1(t,e,n){e=e||"",n=n||"";var a=WL1.filter(function(l){return e.indexOf(l)<0&&n.indexOf(l)<0});if(a.length===0)return!0;var r=new RegExp("(".concat(a.map(function(l){return l==="?"?"\\?":l}).join("|"),")")),o=!r.test(t);if(!o){var c=t.indexOf(n);c>0&&!r.test(t.substring(0,c))&&(o=!0)}return o}function Dj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}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 xJ(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var a=e.split(n),r=t,o=0;oo+c;)c++,l=a.slice(o,o+c).join(n),h=r[l];if(h===void 0)return;if(h===null)return null;if(e.endsWith(l)){if(typeof h=="string")return h;if(l&&typeof h[l]=="string")return h[l]}var s=a.slice(o+c).join(n);return s?xJ(h,s,n):void 0}r=r[a[o]]}return r}}var YL1=function(t){M2(n,t);var e=GL1(n);function n(a){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Jt(this,n),r=e.call(this),Yz&&go.call(D1(r)),r.data=a||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return t2(n,[{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,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,s=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[r,o];c&&typeof c!="string"&&(u=u.concat(c)),c&&typeof c=="string"&&(u=u.concat(h?c.split(h):c)),r.indexOf(".")>-1&&(u=r.split("."));var v=np(this.data,u);return v||!s||typeof c!="string"?v:xJ(this.data&&this.data[r]&&this.data[r][o],c,h)}},{key:"addResource",value:function(r,o,c,l){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];c&&(u=u.concat(s?c.split(s):c)),r.indexOf(".")>-1&&(u=r.split("."),l=o,o=u[1]),this.addNamespaces(o),Pj(this.data,u,l),h.silent||this.emit("added",r,o,c,l)}},{key:"addResources",value:function(r,o,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var h in c)(typeof c[h]=="string"||Object.prototype.toString.apply(c[h])==="[object Array]")&&this.addResource(r,o,h,c[h],{silent:!0});l.silent||this.emit("added",r,o,c)}},{key:"addResourceBundle",value:function(r,o,c,l,h){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[r,o];r.indexOf(".")>-1&&(u=r.split("."),l=c,c=o,o=u[1]),this.addNamespaces(o);var v=np(this.data,u)||{};l?yJ(v,c,h):v=Td(Td({},v),c),Pj(this.data,u,v),s.silent||this.emit("added",r,o,c)}},{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),c=o&&Object.keys(o)||[];return!!c.find(function(l){return o[l]&&Object.keys(o[l]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(go),VJ={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,a,r,o){var c=this;return e.forEach(function(l){c.processors[l]&&(n=c.processors[l].process(n,a,r,o))}),n}};function Rj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function cn(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 jj={},Ij=function(t){M2(n,t);var e=ZL1(n);function n(a){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Jt(this,n),r=e.call(this),Yz&&go.call(D1(r)),IL1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,D1(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=gi.create("translator"),r}return t2(n,[{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 c=this.resolve(r,o);return c&&c.res!==void 0}},{key:"extractFromKey",value:function(r,o){var c=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");var l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,h=o.ns||this.options.defaultNS||[],s=c&&r.indexOf(c)>-1,u=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!qL1(r,c,l);if(s&&!u){var v=r.match(this.interpolator.nestingRegexp);if(v&&v.length>0)return{key:r,namespaces:h};var f=r.split(c);(c!==l||c===l&&this.options.ns.indexOf(f[0])>-1)&&(h=f.shift()),r=f.join(l)}return typeof h=="string"&&(h=[h]),{key:r,namespaces:h}}},{key:"translate",value:function(r,o,c){var l=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],z=o.lng||this.language,g=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(z&&z.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,M=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(M,m,cn(cn({},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?[]:{},P=S?w:M;for(var F in m)if(Object.prototype.hasOwnProperty.call(m,F)){var W="".concat(P).concat(s).concat(F);T[F]=this.translate(W,cn(cn({},o),{joinArrays:!1,ns:f})),T[F]===W&&(T[F]=m[F])}m=T}}else if(C&&typeof V=="string"&&x==="[object Array]")m=m.join(V),m&&(m=this.extendTranslation(m,r,o,c));else{var U=!1,Z=!1,I=o.count!==void 0&&typeof o.count!="string",t1=n.hasDefaultValue(o),R=I?this.pluralResolver.getSuffix(z,o.count,o):"",i1=o["defaultValue".concat(R)]||o.defaultValue;!this.isValidLookup(m)&&t1&&(U=!0,m=i1),this.isValidLookup(m)||(Z=!0,m=v);var J=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,A=J&&Z?void 0:m,o1=t1&&i1!==m&&this.options.updateMissing;if(Z||U||o1){if(this.logger.log(o1?"updateKey":"missingKey",z,d,v,o1?i1:m),s){var h1=this.resolve(v,cn(cn({},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 n1=[],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]:{},l,h,s,u,v;return typeof r=="string"&&(r=[r]),r.forEach(function(f){if(!o.isValidLookup(l)){var d=o.extractFromKey(f,c),z=d.key;h=z;var g=d.namespaces;o.options.fallbackNS&&(g=g.concat(o.options.fallbackNS));var H=c.count!==void 0&&typeof c.count!="string",p=H&&!c.ordinal&&c.count===0&&o.pluralResolver.shouldUseIntlApi(),m=c.context!==void 0&&(typeof c.context=="string"||typeof c.context=="number")&&c.context!=="",M=c.lngs?c.lngs:o.languageUtils.toResolveHierarchy(c.lng||o.language,c.fallbackLng);g.forEach(function(w){o.isValidLookup(l)||(v=w,!jj["".concat(M[0],"-").concat(w)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(v)&&(jj["".concat(M[0],"-").concat(w)]=!0,o.logger.warn('key "'.concat(h,'" for languages "').concat(M.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!!!")),M.forEach(function(x){if(!o.isValidLookup(l)){u=x;var y=[z];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(y,z,x,w,c);else{var V;H&&(V=o.pluralResolver.getSuffix(x,c.count,c));var C="".concat(o.options.pluralSeparator,"zero");if(H&&(y.push(z+V),p&&y.push(z+C)),m){var L="".concat(z).concat(o.options.contextSeparator).concat(c.context);y.push(L),H&&(y.push(L+V),p&&y.push(L+C))}}for(var B;B=y.pop();)o.isValidLookup(l)||(s=B,l=o.getResource(x,w,B,c))}}))})}}),{res:l,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,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,o,c,l):this.resourceStore.getResource(r,o,c,l)}}],[{key:"hasDefaultValue",value:function(r){var o="defaultValue";for(var c in r)if(Object.prototype.hasOwnProperty.call(r,c)&&o===c.substring(0,o.length)&&r[c]!==void 0)return!0;return!1}}]),n}(go);function Jx(t){return t.charAt(0).toUpperCase()+t.slice(1)}var XL1=function(){function t(e){Jt(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=gi.create("languageUtils")}return t2(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var a=n.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var a=n.split("-");return this.formatLanguageCode(a[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var a=["hans","hant","latn","cyrl","cans","mong","arab"],r=n.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(),a.indexOf(r[1].toLowerCase())>-1&&(r[1]=Jx(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()),a.indexOf(r[1].toLowerCase())>-1&&(r[1]=Jx(r[1].toLowerCase())),a.indexOf(r[2].toLowerCase())>-1&&(r[2]=Jx(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var a=this;if(!n)return null;var r;return n.forEach(function(o){if(!r){var c=a.formatLanguageCode(o);(!a.options.supportedLngs||a.isSupportedCode(c))&&(r=c)}}),!r&&this.options.supportedLngs&&n.forEach(function(o){if(!r){var c=a.getLanguagePartFromCode(o);if(a.isSupportedCode(c))return r=c;r=a.options.supportedLngs.find(function(l){if(l.indexOf(c)===0)return l})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}},{key:"getFallbackCodes",value:function(n,a){if(!n)return[];if(typeof n=="function"&&(n=n(a)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!a)return n.default||[];var r=n[a];return r||(r=n[this.getScriptPartFromCode(a)]),r||(r=n[this.formatLanguageCode(a)]),r||(r=n[this.getLanguagePartFromCode(a)]),r||(r=n.default),r||[]}},{key:"toResolveHierarchy",value:function(n,a){var r=this,o=this.getFallbackCodes(a||this.options.fallbackLng||[],n),c=[],l=function(s){s&&(r.isSupportedCode(s)?c.push(s):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(s)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(n))):typeof n=="string"&&l(this.formatLanguageCode(n)),o.forEach(function(h){c.indexOf(h)<0&&l(r.formatLanguageCode(h))}),c}}]),t}(),JL1=[{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}],tB1={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}},eB1=["v1","v2","v3"],Fj={zero:0,one:1,two:2,few:3,many:4,other:5};function nB1(){var t={};return JL1.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:tB1[e.fc]}})}),t}var aB1=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Jt(this,t),this.languageUtils=e,this.options=n,this.logger=gi.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=nB1()}return t2(t,[{key:"addRule",value:function(n,a){this.rules[n]=a}},{key:"getRule",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:a.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(n,a);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,r).map(function(o){return"".concat(a).concat(o)})}},{key:"getSuffixes",value:function(n){var a=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,r);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(c,l){return Fj[c]-Fj[l]}).map(function(c){return"".concat(a.options.prepend).concat(c)}):o.numbers.map(function(c){return a.getSuffix(n,c,r)}):[]}},{key:"getSuffix",value:function(n,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,r);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(a)):this.getSuffixRetroCompatible(o,a):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,a){var r=this,o=n.noAbs?n.plurals(a):n.plurals(Math.abs(a)),c=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(c===2?c="plural":c===1&&(c=""));var l=function(){return r.options.prepend&&c.toString()?r.options.prepend+c.toString():c.toString()};return this.options.compatibilityJSON==="v1"?c===1?"":typeof c=="number"?"_plural_".concat(c.toString()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?l():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!eB1.includes(this.options.compatibilityJSON)}}]),t}();function $j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function ur(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};Jt(this,t),this.logger=gi.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return t2(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var a=n.interpolation;this.escape=a.escape!==void 0?a.escape:UL1,this.escapeValue=a.escapeValue!==void 0?a.escapeValue:!0,this.useRawValueToEscape=a.useRawValueToEscape!==void 0?a.useRawValueToEscape:!1,this.prefix=a.prefix?Zc(a.prefix):a.prefixEscaped||"{{",this.suffix=a.suffix?Zc(a.suffix):a.suffixEscaped||"}}",this.formatSeparator=a.formatSeparator?a.formatSeparator:a.formatSeparator||",",this.unescapePrefix=a.unescapeSuffix?"":a.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":a.unescapeSuffix||"",this.nestingPrefix=a.nestingPrefix?Zc(a.nestingPrefix):a.nestingPrefixEscaped||Zc("$t("),this.nestingSuffix=a.nestingSuffix?Zc(a.nestingSuffix):a.nestingSuffixEscaped||Zc(")"),this.nestingOptionsSeparator=a.nestingOptionsSeparator?a.nestingOptionsSeparator:a.nestingOptionsSeparator||",",this.maxReplaces=a.maxReplaces?a.maxReplaces:1e3,this.alwaysFormat=a.alwaysFormat!==void 0?a.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var a="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(a,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(n,a,r,o){var c=this,l,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(c.formatSeparator)<0){var m=Nj(a,u,p);return c.alwaysFormat?c.format(m,void 0,r,ur(ur(ur({},o),a),{},{interpolationkey:p})):m}var M=p.split(c.formatSeparator),w=M.shift().trim(),x=M.join(c.formatSeparator).trim();return c.format(Nj(a,u,w),x,r,ur(ur(ur({},o),a),{},{interpolationkey:w}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,z=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 c.escapeValue?v(c.escape(p)):v(p)}}];return g.forEach(function(H){for(s=0;l=H.regex.exec(n);){var p=l[1].trim();if(h=f(p),h===void 0)if(typeof d=="function"){var m=d(n,l,o);h=typeof m=="string"?m:""}else if(o&&o.hasOwnProperty(p))h="";else if(z){h=l[0];continue}else c.logger.warn("missed to pass in variable ".concat(p," for interpolating ").concat(n)),h="";else typeof h!="string"&&!c.useRawValueToEscape&&(h=Ej(h));var M=H.safeValue(h);if(n=n.replace(l[0],M),z?(H.regex.lastIndex+=h.length,H.regex.lastIndex-=l[0].length):H.regex.lastIndex=0,s++,s>=c.maxReplaces)break}}),n}},{key:"nest",value:function(n,a){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c,l,h=ur({},o);h.applyPostProcessor=!1,delete h.defaultValue;function s(d,z){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),M=p.match(/"/g);(m&&m.length%2===0&&!M||M.length%2!==0)&&(p=p.replace(/'/g,'"'));try{h=JSON.parse(p),z&&(h=ur(ur({},z),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(;c=this.nestingRegexp.exec(n);){var u=[],v=!1;if(c[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(c[1])){var f=c[1].split(this.formatSeparator).map(function(d){return d.trim()});c[1]=f.shift(),u=f,v=!0}if(l=a(s.call(this,c[1].trim(),h),h),l&&c[0]===n&&typeof l!="string")return l;typeof l!="string"&&(l=Ej(l)),l||(this.logger.warn("missed to resolve ".concat(c[1]," for nesting ").concat(n)),l=""),v&&(l=u.reduce(function(d,z){return r.format(d,z,o.lng,ur(ur({},o),{},{interpolationkey:c[1].trim()}))},l.trim())),n=n.replace(c[0],l),this.regexp.lastIndex=0}return n}}]),t}();function Uj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function p3(t){for(var e=1;e-1){var a=t.split("(");e=a[0].toLowerCase().trim();var r=a[1].substring(0,a[1].length-1);if(e==="currency"&&r.indexOf(":")<0)n.currency||(n.currency=r.trim());else if(e==="relativetime"&&r.indexOf(":")<0)n.range||(n.range=r.trim());else{var o=r.split(";");o.forEach(function(c){if(c){var l=c.split(":"),h=wJ(l),s=h[0],u=h.slice(1),v=u.join(":").trim().replace(/^'+|'+$/g,"");n[s.trim()]||(n[s.trim()]=v),v==="false"&&(n[s.trim()]=!1),v==="true"&&(n[s.trim()]=!0),isNaN(v)||(n[s.trim()]=parseInt(v,10))}})}}return{formatName:e,formatOptions:n}}function Qc(t){var e={};return function(a,r,o){var c=r+JSON.stringify(o),l=e[c];return l||(l=t(r,o),e[c]=l),l(a)}}var oB1=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Jt(this,t),this.logger=gi.create("formatter"),this.options=e,this.formats={number:Qc(function(n,a){var r=new Intl.NumberFormat(n,a);return function(o){return r.format(o)}}),currency:Qc(function(n,a){var r=new Intl.NumberFormat(n,p3(p3({},a),{},{style:"currency"}));return function(o){return r.format(o)}}),datetime:Qc(function(n,a){var r=new Intl.DateTimeFormat(n,p3({},a));return function(o){return r.format(o)}}),relativetime:Qc(function(n,a){var r=new Intl.RelativeTimeFormat(n,p3({},a));return function(o){return r.format(o,a.range||"day")}}),list:Qc(function(n,a){var r=new Intl.ListFormat(n,p3({},a));return function(o){return r.format(o)}})},this.init(e)}return t2(t,[{key:"init",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},r=a.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}},{key:"add",value:function(n,a){this.formats[n.toLowerCase().trim()]=a}},{key:"addCached",value:function(n,a){this.formats[n.toLowerCase().trim()]=Qc(a)}},{key:"format",value:function(n,a,r,o){var c=this,l=a.split(this.formatSeparator),h=l.reduce(function(s,u){var v=iB1(u),f=v.formatName,d=v.formatOptions;if(c.formats[f]){var z=s;try{var g=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},H=g.locale||g.lng||o.locale||o.lng||r;z=c.formats[f](s,H,p3(p3(p3({},d),o),g))}catch(p){c.logger.warn(p)}return z}else c.logger.warn("there was no format function for ".concat(f));return s},n);return h}}]),t}();function Wj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function qj(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 sB1(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var hB1=function(t){M2(n,t);var e=cB1(n);function n(a,r,o){var c,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Jt(this,n),c=e.call(this),Yz&&go.call(D1(c)),c.backend=a,c.store=r,c.services=o,c.languageUtils=o.languageUtils,c.options=l,c.logger=gi.create("backendConnector"),c.waitingReads=[],c.maxParallelReads=l.maxParallelReads||10,c.readingCalls=0,c.maxRetries=l.maxRetries>=0?l.maxRetries:5,c.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,c.state={},c.queue=[],c.backend&&c.backend.init&&c.backend.init(o,l.backend,l),c}return t2(n,[{key:"queueLoad",value:function(r,o,c,l){var h=this,s={},u={},v={},f={};return r.forEach(function(d){var z=!0;o.forEach(function(g){var H="".concat(d,"|").concat(g);!c.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,z=!1,u[H]===void 0&&(u[H]=!0),s[H]===void 0&&(s[H]=!0),f[g]===void 0&&(f[g]=!0)))}),z||(v[d]=!0)}),(Object.keys(s).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(s),pending:Object.keys(u),toLoadLanguages:Object.keys(v),toLoadNamespaces:Object.keys(f)}}},{key:"loaded",value:function(r,o,c){var l=r.split("|"),h=l[0],s=l[1];o&&this.emit("failedLoading",h,s,o),c&&this.store.addResourceBundle(h,s,c),this.state[r]=o?-1:2;var u={};this.queue.forEach(function(v){FL1(v.loaded,[h],s),sB1(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(z){u[f][z]===void 0&&(u[f][z]=!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,c){var l=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:c,tried:h,wait:s,callback:u});return}return this.readingCalls++,this.backend[c](r,o,function(v,f){if(l.readingCalls--,l.waitingReads.length>0){var d=l.waitingReads.shift();l.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,l,h);if(!s.toLoad.length)return s.pending.length||h(),null;s.toLoad.forEach(function(u){c.loadOne(u)})}},{key:"load",value:function(r,o,c){this.prepareLoading(r,o,{},c)}},{key:"reload",value:function(r,o,c){this.prepareLoading(r,o,{reload:!0},c)}},{key:"loadOne",value:function(r){var o=this,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=r.split("|"),h=l[0],s=l[1];this.read(h,s,"read",void 0,void 0,function(u,v){u&&o.logger.warn("".concat(c,"loading namespace ").concat(s," for language ").concat(h," failed"),u),!u&&v&&o.logger.log("".concat(c,"loaded namespace ").concat(s," for language ").concat(h),v),o.loaded(r,u,v)})}},{key:"saveMissing",value:function(r,o,c,l,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(c,'" 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}c==null||c===""||(this.backend&&this.backend.create&&this.backend.create(r,o,c,l,null,qj(qj({},s),{},{isUpdate:h})),!(!r||!r[0])&&this.store.addResource(r[0],o,c,l))}}]),n}(go);function uB1(){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 n={};if(C2(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),C2(e[2])==="object"||C2(e[3])==="object"){var a=e[3]||e[2];Object.keys(a).forEach(function(r){n[r]=a[r]})}return n},interpolation:{escapeValue:!0,format:function(e,n,a,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Gj(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 Kj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}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 fB1(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var ap=function(t){M2(n,t);var e=vB1(n);function n(){var a,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Jt(this,n),a=e.call(this),Yz&&go.call(D1(a)),a.options=Gj(r),a.services={},a.logger=gi,a.modules={external:[]},fB1(D1(a)),o&&!a.isInitialized&&!r.isClone){if(!a.options.initImmediate)return a.init(r,o),R6(a,D1(a));setTimeout(function(){a.init(r,o)},0)}return a}return t2(n,[{key:"init",value:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(c=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 l=uB1();this.options=Zr(Zr(Zr({},l),this.options),Gj(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Zr(Zr({},l.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?gi.init(h(this.modules.logger),this.options):gi.init(null,this.options);var s;this.modules.formatter?s=this.modules.formatter:typeof Intl<"u"&&(s=oB1);var u=new XL1(this.options);this.store=new YL1(this.options.resources,this.options);var v=this.services;v.logger=gi,v.resourceStore=this.store,v.languageUtils=u,v.pluralResolver=new aB1(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s&&(!this.options.interpolation.format||this.options.interpolation.format===l.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 rB1(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new hB1(h(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",function(p){for(var m=arguments.length,M=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 z=["addResource","addResources","addResourceBundle","removeResourceBundle"];z.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),c(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,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Od,l=c,h=typeof r=="string"?r:this.language;if(typeof r=="function"&&(l=r),!this.options.resources||this.options.partialBundledLanguages){if(h&&h.toLowerCase()==="cimode")return l();var s=[],u=function(d){if(d){var z=o.services.languageUtils.toResolveHierarchy(d);z.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),l(f)})}else l(null)}},{key:"reloadResources",value:function(r,o,c){var l=t7();return r||(r=this.languages),o||(o=this.options.ns),c||(c=Od),this.services.backendConnector.reload(r,o,function(h){l.resolve(),c(h)}),l}},{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"&&VJ.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(c)){this.resolvedLanguage=c;break}}}},{key:"changeLanguage",value:function(r,o){var c=this;this.isLanguageChangingTo=r;var l=t7();this.emit("languageChanging",r);var h=function(f){c.language=f,c.languages=c.services.languageUtils.toResolveHierarchy(f),c.resolvedLanguage=void 0,c.setResolvedLanguage(f)},s=function(f,d){d?(h(d),c.translator.changeLanguage(d),c.isLanguageChangingTo=void 0,c.emit("languageChanged",d),c.logger.log("languageChanged",d)):c.isLanguageChangingTo=void 0,l.resolve(function(){return c.t.apply(c,arguments)}),o&&o(f,function(){return c.t.apply(c,arguments)})},u=function(f){!r&&!f&&c.services.languageDetector&&(f=[]);var d=typeof f=="string"?f:c.services.languageUtils.getBestMatchFromCodes(f);d&&(c.language||h(d),c.translator.language||c.translator.changeLanguage(d),c.services.languageDetector&&c.services.languageDetector.cacheUserLanguage(d)),c.loadResources(d,function(z){s(z,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),l}},{key:"getFixedT",value:function(r,o,c){var l=this,h=function s(u,v){var f;if(C2(v)!=="object"){for(var d=arguments.length,z=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 l=this.resolvedLanguage||this.languages[0],h=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;var u=function(d,z){var g=o.services.backendConnector.state["".concat(d,"|").concat(z)];return g===-1||g===2};if(c.precheck){var v=c.precheck(this,u);if(v!==void 0)return v}return!!(this.hasResourceBundle(l,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(l,r)&&(!h||u(s,r)))}},{key:"loadNamespaces",value:function(r,o){var c=this,l=t7();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(h){c.options.ns.indexOf(h)<0&&c.options.ns.push(h)}),this.loadResources(function(h){l.resolve(),o&&o(h)}),l):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(r,o){var c=t7();typeof r=="string"&&(r=[r]);var l=this.options.preload||[],h=r.filter(function(s){return l.indexOf(s)<0});return h.length?(this.options.preload=l.concat(h),this.loadResources(function(s){c.resolve(),o&&o(s)}),c):(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]:{},c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Od,l=Zr(Zr(Zr({},this.options),o),{isClone:!0}),h=new n(l);(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 Ij(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 ap(t,e)});var tn=ap.createInstance();tn.createInstance=ap.createInstance;var gB1=tn.createInstance,pB1=tn.init,mB1=tn.loadResources,zB1=tn.reloadResources,MB1=tn.use,HB1=tn.changeLanguage,wB1=tn.getFixedT,yB1=tn.t,xB1=tn.exists,VB1=tn.setDefaultNamespace,CB1=tn.hasLoadedNamespace,bB1=tn.loadNamespaces,LB1=tn.loadLanguages;const BB1=Object.freeze(Object.defineProperty({__proto__:null,changeLanguage:HB1,createInstance:gB1,default:tn,exists:xB1,getFixedT:wB1,hasLoadedNamespace:CB1,init:pB1,loadLanguages:LB1,loadNamespaces:bB1,loadResources:mB1,reloadResources:zB1,setDefaultNamespace:VB1,t:yB1,use:MB1},Symbol.toStringTag,{value:"Module"})),t9=se(BB1);(function(t){var e=b&&b.__makeTemplateObject||function(V,C){return Object.defineProperty?Object.defineProperty(V,"raw",{value:C}):V.raw=C,V},n=b&&b.__assign||function(){return n=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 _;if(typeof L=="string")for(var T=0,P=B.length;T"u"&&(_=L.label||L);var T=L.label||L.value||L,P=_===this.state.selected.value||_===this.state.selected,F=(B={},u(B,"".concat(this.props.baseClassName,"-option"),!0),u(B,L.className,!!L.className),u(B,"is-selected",P),B),W=(0,n.default)(F),U=Object.keys(L.data||{}).reduce(function(Z,I){return s({},Z,u({},"data-".concat(I),L.data[I]))},{});return e.default.createElement("div",l({key:_,className:W,onMouseDown:this.setValue.bind(this,_,T),onClick:this.setValue.bind(this,_,T),role:"option","aria-selected":P?"true":"false"},U),T)}},{key:"buildMenu",value:function(){var L=this,B=this.props,_=B.options,T=B.baseClassName,P=_.map(function(F){if(F.type==="group"){var W=e.default.createElement("div",{className:"".concat(T,"-title")},F.name),U=F.items.map(function(Z){return L.renderOption(Z)});return e.default.createElement("div",{className:"".concat(T,"-group"),key:F.name,role:"listbox",tabIndex:"-1"},W,U)}else return L.renderOption(F)});return P.length?P: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,_,T,P,F=this.props,W=F.baseClassName,U=F.controlClassName,Z=F.placeholderClassName,I=F.menuClassName,t1=F.arrowClassName,R=F.arrowClosed,i1=F.arrowOpen,J=F.className,A=this.props.disabled?"Dropdown-disabled":"",o1=typeof this.state.selected=="string"?this.state.selected:this.state.selected.label,h1=(0,n.default)((L={},u(L,"".concat(W,"-root"),!0),u(L,J,!!J),u(L,"is-open",this.state.isOpen),L)),n1=(0,n.default)((B={},u(B,"".concat(W,"-control"),!0),u(B,U,!!U),u(B,A,!!A),B)),M1=(0,n.default)((_={},u(_,"".concat(W,"-placeholder"),!0),u(_,Z,!!Z),u(_,"is-selected",this.isValueSelected()),_)),s1=(0,n.default)((T={},u(T,"".concat(W,"-menu"),!0),u(T,I,!!I),T)),z1=(0,n.default)((P={},u(P,"".concat(W,"-arrow"),!0),u(P,t1,!!t1),P)),m1=e.default.createElement("div",{className:M1},o1),_1=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:n1,onMouseDown:this.handleMouseDown.bind(this),onTouchEnd:this.handleMouseDown.bind(this),"aria-haspopup":"listbox"},m1,e.default.createElement("div",{className:"".concat(W,"-arrow-wrapper")},i1&&R?this.state.isOpen?i1:R:e.default.createElement("span",{className:z1}))),_1)}}]),V}(e.Component);w.defaultProps={baseClassName:"Dropdown"};var x=w;t.default=x})(bJ);var YB1=b&&b.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},Cc=b&&b.__assign||function(){return Cc=Object.assign||function(t){for(var e,n=1,a=arguments.length;n"u"?M: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"?M: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,P=B.length;T"u"&&(S=L.label||L);var T=L.label||L.value||L,P=S===this.state.selected.value||S===this.state.selected,F=(B={},u(B,"".concat(this.props.baseClassName,"-option"),!0),u(B,L.className,!!L.className),u(B,"is-selected",P),B),W=(0,n.default)(F),U=Object.keys(L.data||{}).reduce(function(Z,I){return s({},Z,u({},"data-".concat(I),L.data[I]))},{});return e.default.createElement("div",l({key:S,className:W,onMouseDown:this.setValue.bind(this,S,T),onClick:this.setValue.bind(this,S,T),role:"option","aria-selected":P?"true":"false"},U),T)}},{key:"buildMenu",value:function(){var L=this,B=this.props,S=B.options,T=B.baseClassName,P=S.map(function(F){if(F.type==="group"){var W=e.default.createElement("div",{className:"".concat(T,"-title")},F.name),U=F.items.map(function(Z){return L.renderOption(Z)});return e.default.createElement("div",{className:"".concat(T,"-group"),key:F.name,role:"listbox",tabIndex:"-1"},W,U)}else return L.renderOption(F)});return P.length?P: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,P,F=this.props,W=F.baseClassName,U=F.controlClassName,Z=F.placeholderClassName,I=F.menuClassName,t1=F.arrowClassName,R=F.arrowClosed,i1=F.arrowOpen,J=F.className,A=this.props.disabled?"Dropdown-disabled":"",o1=typeof this.state.selected=="string"?this.state.selected:this.state.selected.label,h1=(0,n.default)((L={},u(L,"".concat(W,"-root"),!0),u(L,J,!!J),u(L,"is-open",this.state.isOpen),L)),n1=(0,n.default)((B={},u(B,"".concat(W,"-control"),!0),u(B,U,!!U),u(B,A,!!A),B)),M1=(0,n.default)((S={},u(S,"".concat(W,"-placeholder"),!0),u(S,Z,!!Z),u(S,"is-selected",this.isValueSelected()),S)),s1=(0,n.default)((T={},u(T,"".concat(W,"-menu"),!0),u(T,I,!!I),T)),z1=(0,n.default)((P={},u(P,"".concat(W,"-arrow"),!0),u(P,t1,!!t1),P)),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:n1,onMouseDown:this.handleMouseDown.bind(this),onTouchEnd:this.handleMouseDown.bind(this),"aria-haspopup":"listbox"},m1,e.default.createElement("div",{className:"".concat(W,"-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})(BJ);var QB1=b&&b.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},Cl=b&&b.__assign||function(){return Cl=Object.assign||function(t){for(var e,n=1,a=arguments.length;n=1.85},[h]);return(0,Q6.jsx)(nS1,Cc({placement:a,style:r,className:"wellms-component ".concat(c),lightContrast:s,backgroundColor:h},{children:(0,Q6.jsx)(JB1.default,Cc({},t,{menuClassName:"menu",controlClassName:"control",arrowOpen:(0,Q6.jsx)("svg",Cc({className:"arrows",width:"14",height:"8",viewBox:"0 0 14 8",xmlns:"http://www.w3.org/2000/svg"},{children:(0,Q6.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,Q6.jsx)("svg",Cc({className:"arrows",width:"14",height:"8",viewBox:"0 0 14 8",xmlns:"http://www.w3.org/2000/svg"},{children:(0,Q6.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=aS1;var nI,nV={},aI;function rS1(){return aI||(aI=1,function(t){var e=b&&b.__makeTemplateObject||function(g,H){return Object.defineProperty?Object.defineProperty(g,"raw",{value:H}):g.raw=H,g},n=b&&b.__assign||function(){return n=Object.assign||function(g){for(var H,p=1,m=arguments.length;p=1.85},[h]);return(0,Xc.jsx)(r_1,Cl({placement:a,style:r,className:"wellms-component ".concat(c),lightContrast:s,backgroundColor:h},{children:(0,Xc.jsx)(e_1.default,Cl({},t,{menuClassName:"menu",controlClassName:"control",arrowOpen:(0,Xc.jsx)("svg",Cl({className:"arrows",width:"14",height:"8",viewBox:"0 0 14 8",xmlns:"http://www.w3.org/2000/svg"},{children:(0,Xc.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,Xc.jsx)("svg",Cl({className:"arrows",width:"14",height:"8",viewBox:"0 0 14 8",xmlns:"http://www.w3.org/2000/svg"},{children:(0,Xc.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=i_1;var nI,nV={},aI;function o_1(){return aI||(aI=1,function(t){var e=b&&b.__makeTemplateObject||function(g,H){return Object.defineProperty?Object.defineProperty(g,"raw",{value:H}):g.raw=H,g},n=b&&b.__assign||function(){return n=Object.assign||function(g){for(var H,p=1,m=arguments.length;p0&&(0,l.jsx)("i",{children:R})]})),Z&&(0,l.jsx)(m,n({className:"wellms-component"},{children:(0,l.jsxs)("div",{children:[(0,l.jsxs)(z,n({className:"wellms-component"},{children:[(0,l.jsx)(d.Title,n({level:4,noMargin:!0},{children:J("Notifications.Notifications")})),T&&(0,l.jsxs)(d.Link,n({href:T},{children:[J("Notifications.ShowAll"),(0,l.jsx)("svg",n({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,l.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"})}))]}))]})),_.length?(0,l.jsx)("ul",{children:_.map(function(o1){return(0,l.jsx)("li",{children:(0,l.jsx)(v.default,{notification:o1,onClick:function(){return A()},maxLengthDesc:120,modularView:!0})},o1.id)})}):(0,l.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}(rV)),rV}var _J={};(function(t){var e=b&&b.__makeTemplateObject||function(x,y){return Object.defineProperty?Object.defineProperty(x,"raw",{value:y}):x.raw=y,x},n=b&&b.__assign||function(){return n=Object.assign||function(x){for(var y,V=1,C=arguments.length;V0&&(0,l.jsx)("i",{children:R})]})),Z&&(0,l.jsx)(m,n({className:"wellms-component"},{children:(0,l.jsxs)("div",{children:[(0,l.jsxs)(M,n({className:"wellms-component"},{children:[(0,l.jsx)(d.Title,n({level:4,noMargin:!0},{children:J("Notifications.Notifications")})),T&&(0,l.jsxs)(d.Link,n({href:T},{children:[J("Notifications.ShowAll"),(0,l.jsx)("svg",n({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,l.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,l.jsx)("ul",{children:S.map(function(o1){return(0,l.jsx)("li",{children:(0,l.jsx)(v.default,{notification:o1,onClick:function(){return A()},maxLengthDesc:120,modularView:!0})},o1.id)})}):(0,l.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}(rV)),rV}var OJ={};(function(t){var e=b&&b.__makeTemplateObject||function(x,y){return Object.defineProperty?Object.defineProperty(x,"raw",{value:y}):x.raw=y,x},n=b&&b.__assign||function(){return n=Object.assign||function(x){for(var y,V=1,C=arguments.length;V=1.85},[U.primaryColor]);return(0,c.jsx)(g,n({className:"wellms-component ".concat(W),mobile:P,lightContrast:Z},{children:(0,c.jsxs)(s.Row,n({align:"center"},{children:[(0,c.jsxs)(s.Col,n({xs:12,md:P?12:7,style:{display:"flex",alignItems:P?"center":"flex-start",marginBottom:P?"22px":"0"}},{children:[(0,c.jsx)("div",n({className:"quiz-cta-icon"},{children:(0,c.jsx)(H,{})})),(0,c.jsxs)("div",{children:[(0,c.jsx)(u.Title,n({as:"h3",level:P?4:3,style:{marginBottom:P?"0":"18px"}},{children:y})),(0,c.jsx)("div",n({className:"quiz-cta-children"},{children:V&&!P&&(0,c.jsx)(l.Fragment,{children:V})}))]})]})),(0,c.jsxs)(s.Col,n({xs:12,md:P?12:5},{children:[(0,c.jsx)("div",n({className:"quiz-cta-children"},{children:V&&P&&(0,c.jsx)(l.Fragment,{children:V})})),(0,c.jsxs)("div",n({className:"quiz-cta-btn-group"},{children:[(0,c.jsx)(f.Button,n({mode:"white",onClick:L},{children:C})),B&&_&&(0,c.jsx)(v.Link,n({href:"http://onet.pl",target:"_blank",underline:!0,onClick:_},{children:B}))]}))]}))]}))}))};t.QuizCta=p;var m=(0,h.default)(t.QuizCta)(w||(w=e([""],[""])));t.default=(0,h.withTheme)(m);var z,w})(_J);var nM={},VS1=b&&b.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},m8=b&&b.__assign||function(){return m8=Object.assign||function(t){for(var e,n=1,a=arguments.length;n=1.85},[U.primaryColor]);return(0,c.jsx)(g,n({className:"wellms-component ".concat(W),mobile:P,lightContrast:Z},{children:(0,c.jsxs)(s.Row,n({align:"center"},{children:[(0,c.jsxs)(s.Col,n({xs:12,md:P?12:7,style:{display:"flex",alignItems:P?"center":"flex-start",marginBottom:P?"22px":"0"}},{children:[(0,c.jsx)("div",n({className:"quiz-cta-icon"},{children:(0,c.jsx)(H,{})})),(0,c.jsxs)("div",{children:[(0,c.jsx)(u.Title,n({as:"h3",level:P?4:3,style:{marginBottom:P?"0":"18px"}},{children:y})),(0,c.jsx)("div",n({className:"quiz-cta-children"},{children:V&&!P&&(0,c.jsx)(l.Fragment,{children:V})}))]})]})),(0,c.jsxs)(s.Col,n({xs:12,md:P?12:5},{children:[(0,c.jsx)("div",n({className:"quiz-cta-children"},{children:V&&P&&(0,c.jsx)(l.Fragment,{children:V})})),(0,c.jsxs)("div",n({className:"quiz-cta-btn-group"},{children:[(0,c.jsx)(f.Button,n({mode:"white",onClick:L},{children:C})),B&&S&&(0,c.jsx)(v.Link,n({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 M,w})(OJ);var nM={},b_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,n=1,a=arguments.length;n span { font-weight: `,`; `,` @@ -6354,7 +6390,7 @@ l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, fill: `,`; } } -`])),function(y){var V=y.$isActive;return V?"bold":"normal"},u,function(y){var V=y.theme,C=y.$isActive;return C?V.white:(0,s.getStylesBasedOnTheme)(V.mode,V.dm__outlineButtonColor,V.outlineButtonColor,V.primaryColor)}),g=function(y){var V=y.listItems,C=y.selectedListItem,L=y.setSelectedListItem,B=o(y,["listItems","selectedListItem","setSelectedListItem"]);return(0,c.jsx)(v,e({"data-testid":"list"},B,{children:V.map(function(_){var T=_.id,P=_.icon,F=_.text,W=_.numberOfItems;return(0,c.jsxs)(f,e({$isActive:C===T,"data-testid":F,onClick:function(){return L(T)}},{children:[(0,c.jsx)(M,{icon:P,text:F,noMargin:!0,$isActive:C===T}),(0,c.jsx)(d,e({$isActive:C===T},{children:W}))]}),T)})}))};Ad.default=(0,l.withTheme)((0,l.default)(g)(x||(x=t([""],[""]))));var H,p,m,z,w,x;return Ad}var kd={};function s_1(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function h_1(t,e){t.classList?t.classList.add(e):s_1(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function mI(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function u_1(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=mI(t.className,e):t.setAttribute("class",mI(t.className&&t.className.baseVal||"",e))}const fL={disabled:!1},Ks=W1.createContext(null);var PJ=function(e){return e.scrollTop},S7="unmounted",u8="exited",_a="entering",c5="entered",Ys="exiting",Fi=function(t){mn(e,t);function e(a,r){var o;o=t.call(this,a,r)||this;var c=r,l=c&&!c.isMounting?a.enter:a.appear,h;return o.appearStatus=null,a.in?l?(h=u8,o.appearStatus=_a):h=c5:a.unmountOnExit||a.mountOnEnter?h=S7:h=u8,o.state={status:h},o.nextCallback=null,o}e.getDerivedStateFromProps=function(r,o){var c=r.in;return c&&o.status===S7?{status:u8}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var c=this.state.status;this.props.in?c!==_a&&c!==c5&&(o=_a):(c===_a||c===c5)&&(o=Ys)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,c,l;return o=c=l=r,r!=null&&typeof r!="number"&&(o=r.exit,c=r.enter,l=r.appear!==void 0?r.appear:c),{exit:o,enter:c,appear:l}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===_a){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:x8.findDOMNode(this);c&&PJ(c)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===u8&&this.setState({status:S7})},n.performEnter=function(r){var o=this,c=this.props.enter,l=this.context?this.context.isMounting:r,h=this.props.nodeRef?[l]:[x8.findDOMNode(this),l],s=h[0],u=h[1],v=this.getTimeouts(),f=l?v.appear:v.enter;if(!r&&!c||fL.disabled){this.safeSetState({status:c5},function(){o.props.onEntered(s)});return}this.props.onEnter(s,u),this.safeSetState({status:_a},function(){o.props.onEntering(s,u),o.onTransitionEnd(f,function(){o.safeSetState({status:c5},function(){o.props.onEntered(s,u)})})})},n.performExit=function(){var r=this,o=this.props.exit,c=this.getTimeouts(),l=this.props.nodeRef?void 0:x8.findDOMNode(this);if(!o||fL.disabled){this.safeSetState({status:u8},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Ys},function(){r.props.onExiting(l),r.onTransitionEnd(c.exit,function(){r.safeSetState({status:u8},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,c=!0;return this.nextCallback=function(l){c&&(c=!1,o.nextCallback=null,r(l))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var c=this.props.nodeRef?this.props.nodeRef.current:x8.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!c||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],s=h[0],u=h[1];this.props.addEndListener(s,u)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===S7)return null;var o=this.props,c=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=Di(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W1.createElement(Ks.Provider,{value:null},typeof c=="function"?c(r,l):W1.cloneElement(W1.Children.only(c),l))},e}(W1.Component);Fi.contextType=Ks;Fi.propTypes={};function J6(){}Fi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:J6,onEntering:J6,onEntered:J6,onExit:J6,onExiting:J6,onExited:J6};Fi.UNMOUNTED=S7;Fi.EXITED=u8;Fi.ENTERING=_a;Fi.ENTERED=c5;Fi.EXITING=Ys;const NJ=Fi;var v_1=function(e,n){return e&&n&&n.split(" ").forEach(function(a){return h_1(e,a)})},lV=function(e,n){return e&&n&&n.split(" ").forEach(function(a){return u_1(e,a)})},MT=function(t){mn(e,t);function e(){for(var a,r=arguments.length,o=new Array(r),c=0;c0&&(0,c.jsx)("div",n({className:"subcategories"},{children:(0,c.jsx)(p,{checkedCategories:B,categories:P.subcategories,onChange:_})}))]},P.id)})})},m=function(C){var L=C.child,B=C.categories,_=C.checkedCategories,T=C.isInitiallyOpen,P=C.onClick,F=C.onChange,W=C.onClear,U=C.forMobile,Z=(0,l.useRef)(null),I=(0,l.useState)(T),t1=I[0],R=I[1],i1=function(){return R(!1)};(0,u.useOnClickOutside)(Z,function(){return i1()});var J=(0,l.useCallback)(function(o1){F==null||F(o1)},[F]),A=function(){W==null||W(),i1()};return(0,c.jsxs)(d,n({onClick:P,$forMobile:U},{children:[!!L&&(0,l.cloneElement)(L,{onClick:function(){return R(function(o1){return!o1})},$isMenuOpen:t1}),(0,c.jsx)(h.CSSTransition,n({in:t1,timeout:300,nodeRef:Z,classNames:"fade",unmountOnExit:!0},{children:(0,c.jsxs)(M,n({ref:Z,$forMobile:U},{children:[(0,c.jsxs)(H,{children:[(0,c.jsx)(f.Text,n({size:"16"},{children:"Wybierz"})),(0,c.jsx)("button",n({onClick:A},{children:(0,c.jsx)(f.Text,n({size:"13"},{children:"Wyczyść"}))}))]}),(0,c.jsx)(p,{checkedCategories:_,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}(sV)),sV}var a7={},HI;function L_1(){if(HI)return a7;HI=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,c.jsx)("div",n({className:"subcategories"},{children:(0,c.jsx)(p,{checkedCategories:B,categories:P.subcategories,onChange:S})}))]},P.id)})})},m=function(C){var L=C.child,B=C.categories,S=C.checkedCategories,T=C.isInitiallyOpen,P=C.onClick,F=C.onChange,W=C.onClear,U=C.forMobile,Z=(0,l.useRef)(null),I=(0,l.useState)(T),t1=I[0],R=I[1],i1=function(){return R(!1)};(0,u.useOnClickOutside)(Z,function(){return i1()});var J=(0,l.useCallback)(function(o1){F==null||F(o1)},[F]),A=function(){W==null||W(),i1()};return(0,c.jsxs)(d,n({onClick:P,$forMobile:U},{children:[!!L&&(0,l.cloneElement)(L,{onClick:function(){return R(function(o1){return!o1})},$isMenuOpen:t1}),(0,c.jsx)(h.CSSTransition,n({in:t1,timeout:300,nodeRef:Z,classNames:"fade",unmountOnExit:!0},{children:(0,c.jsxs)(z,n({ref:Z,$forMobile:U},{children:[(0,c.jsxs)(H,{children:[(0,c.jsx)(f.Text,n({size:"16"},{children:"Wybierz"})),(0,c.jsx)("button",n({onClick:A},{children:(0,c.jsx)(f.Text,n({size:"13"},{children:"Wyczyść"}))}))]}),(0,c.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 M,w,x,y,V}(sV)),sV}var a7={},wI;function BS1(){if(wI)return a7;wI=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=c?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function z8(t,e){if(g1(2,arguments),!e||C2(e)!=="object")return new Date(NaN);var n=e.years?Lt(e.years):0,a=e.months?Lt(e.months):0,r=e.weeks?Lt(e.weeks):0,o=e.days?Lt(e.days):0,c=e.hours?Lt(e.hours):0,l=e.minutes?Lt(e.minutes):0,h=e.seconds?Lt(e.seconds):0,s=A1(t),u=a||n?Yh(s,a+n*12):s,v=o||r?C5(u,o+r*7):u,f=l+c*60,d=h+f*60,M=d*1e3,g=new Date(v.getTime()+M);return g}function Rc(t){g1(1,arguments);var e=A1(t),n=e.getDay();return n===0||n===6}function VT(t){return g1(1,arguments),A1(t).getDay()===0}function WJ(t){return g1(1,arguments),A1(t).getDay()===6}function qJ(t,e){g1(2,arguments);var n=A1(t),a=Rc(n),r=Lt(e);if(isNaN(r))return new Date(NaN);var o=n.getHours(),c=r<0?-1:1,l=Lt(r/5);n.setDate(n.getDate()+l*7);for(var h=Math.abs(r%5);h>0;)n.setDate(n.getDate()+c),Rc(n)||(h-=1);return a&&Rc(n)&&r!==0&&(WJ(n)&&n.setDate(n.getDate()+(c<0?2:-1)),VT(n)&&n.setDate(n.getDate()+(c<0?1:-2))),n.setHours(o),n}var W_1=36e5;function CT(t,e){g1(2,arguments);var n=Lt(e);return Th(t,n*W_1)}function Za(t,e){var n,a,r,o,c,l,h,s;g1(1,arguments);var u=Ye(),v=Lt((n=(a=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(c=e.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&a!==void 0?a:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n: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()?n+1:e.getTime()>=c.getTime()?n:n-1}function go(t){g1(1,arguments);var e=J8(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var a=_i(n);return a}var q_1=864e5;function y5(t,e){g1(2,arguments);var n=gl(t),a=gl(e),r=n.getTime()-Mn(n),o=a.getTime()-Mn(a);return Math.round((r-o)/q_1)}function GJ(t,e){g1(2,arguments);var n=A1(t),a=Lt(e),r=y5(n,go(n)),o=new Date(0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),n=go(o),n.setDate(n.getDate()+r),n}function KJ(t,e){g1(2,arguments);var n=Lt(e);return GJ(t,J8(t)+n)}var G_1=6e4;function bT(t,e){g1(2,arguments);var n=Lt(e);return Th(t,n*G_1)}function LT(t,e){g1(2,arguments);var n=Lt(e),a=n*3;return Yh(t,a)}function YJ(t,e){g1(2,arguments);var n=Lt(e);return Th(t,n*1e3)}function oM(t,e){g1(2,arguments);var n=Lt(e),a=n*7;return C5(t,a)}function ZJ(t,e){g1(2,arguments);var n=Lt(e);return Yh(t,n*12)}function K_1(t,e,n){g1(2,arguments);var a=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(),c=A1(e==null?void 0:e.end).getTime();if(!(a<=r&&o<=c))throw new RangeError("Invalid interval");return n!=null&&n.inclusive?a<=c&&o<=r:ar||isNaN(r.getDate()))&&(n=r)}),n||new Date(NaN)}function Y_1(t,e){var n=e.start,a=e.end;return g1(2,arguments),XJ([QJ([t,n]),a])}function Z_1(t,e){g1(2,arguments);var n=A1(t);if(isNaN(Number(n)))return NaN;var a=n.getTime(),r;e==null?r=[]:typeof e.forEach=="function"?r=e:r=Array.prototype.slice.call(e);var o,c;return r.forEach(function(l,h){var s=A1(l);if(isNaN(Number(s))){o=NaN,c=NaN;return}var u=Math.abs(a-s.getTime());(o==null||u0?1:r}function X_1(t,e){g1(2,arguments);var n=A1(t),a=A1(e),r=n.getTime()-a.getTime();return r>0?-1:r<0?1:r}var BT=7,JJ=365.2425,t11=Math.pow(10,8)*24*60*60*1e3,M6=6e4,H6=36e5,cM=1e3,J_1=-t11,ST=60,_T=3,TT=12,OT=4,Zh=3600,lM=60,sM=Zh*24,e11=sM*7,AT=sM*JJ,kT=AT/12,n11=kT*3;function tT1(t){g1(1,arguments);var e=t/BT;return Math.floor(e)}function eT1(t,e){g1(2,arguments);var n=A1(t),a=A1(e);if(!xi(n)||!xi(a))return NaN;var r=y5(n,a),o=r<0?-1:1,c=Lt(r/7),l=c*5;for(a=C5(a,c*7);!Oh(n,a);)l+=Rc(a)?0:o,a=C5(a,o);return l===0?0:l}function a11(t,e){return g1(2,arguments),J8(t)-J8(e)}var nT1=6048e5;function aT1(t,e){g1(2,arguments);var n=_i(t),a=_i(e),r=n.getTime()-Mn(n),o=a.getTime()-Mn(a);return Math.round((r-o)/nT1)}function cp(t,e){g1(2,arguments);var n=A1(t),a=A1(e),r=n.getFullYear()-a.getFullYear(),o=n.getMonth()-a.getMonth();return r*12+o}function pL(t){g1(1,arguments);var e=A1(t),n=Math.floor(e.getMonth()/3)+1;return n}function Of(t,e){g1(2,arguments);var n=A1(t),a=A1(e),r=n.getFullYear()-a.getFullYear(),o=pL(n)-pL(a);return r*4+o}var rT1=6048e5;function lp(t,e,n){g1(2,arguments);var a=Za(t,n),r=Za(e,n),o=a.getTime()-Mn(a),c=r.getTime()-Mn(r);return Math.round((o-c)/rT1)}function ls(t,e){g1(2,arguments);var n=A1(t),a=A1(e);return n.getFullYear()-a.getFullYear()}function wI(t,e){var n=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 n<0?-1:n>0?1:n}function hM(t,e){g1(2,arguments);var n=A1(t),a=A1(e),r=wI(n,a),o=Math.abs(y5(n,a));n.setDate(n.getDate()-r*o);var c=+(wI(n,a)===-r),l=r*(o-c);return l===0?0:l}function uM(t,e){return g1(2,arguments),A1(t).getTime()-A1(e).getTime()}var yI={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},iT1="trunc";function e9(t){return t?yI[t]:yI[iT1]}function Zs(t,e,n){g1(2,arguments);var a=uM(t,e)/H6;return e9(n==null?void 0:n.roundingMethod)(a)}function r11(t,e){g1(2,arguments);var n=Lt(e);return KJ(t,-n)}function oT1(t,e){g1(2,arguments);var n=A1(t),a=A1(e),r=Sr(n,a),o=Math.abs(a11(n,a));n=r11(n,r*o);var c=+(Sr(n,a)===-r),l=r*(o-c);return l===0?0:l}function Qs(t,e,n){g1(2,arguments);var a=uM(t,e)/M6;return e9(n==null?void 0:n.roundingMethod)(a)}function ET(t){g1(1,arguments);var e=A1(t);return e.setHours(23,59,59,999),e}function PT(t){g1(1,arguments);var e=A1(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function i11(t){g1(1,arguments);var e=A1(t);return ET(e).getTime()===PT(e).getTime()}function vM(t,e){g1(2,arguments);var n=A1(t),a=A1(e),r=Sr(n,a),o=Math.abs(cp(n,a)),c;if(o<1)c=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-r*o);var l=Sr(n,a)===-r;i11(A1(t))&&o===1&&Sr(t,a)===1&&(l=!1),c=r*(o-Number(l))}return c===0?0:c}function cT1(t,e,n){g1(2,arguments);var a=vM(t,e)/3;return e9(n==null?void 0:n.roundingMethod)(a)}function jc(t,e,n){g1(2,arguments);var a=uM(t,e)/1e3;return e9(n==null?void 0:n.roundingMethod)(a)}function lT1(t,e,n){g1(2,arguments);var a=hM(t,e)/7;return e9(n==null?void 0:n.roundingMethod)(a)}function o11(t,e){g1(2,arguments);var n=A1(t),a=A1(e),r=Sr(n,a),o=Math.abs(ls(n,a));n.setFullYear(1584),a.setFullYear(1584);var c=Sr(n,a)===-r,l=r*(o-Number(c));return l===0?0:l}function c11(t,e){var n;g1(1,arguments);var a=t||{},r=A1(a.start),o=A1(a.end),c=o.getTime();if(!(r.getTime()<=c))throw new RangeError("Invalid interval");var l=[],h=r;h.setHours(0,0,0,0);var s=Number((n=e==null?void 0:e.step)!==null&&n!==void 0?n:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number greater than 1");for(;h.getTime()<=c;)l.push(A1(h)),h.setDate(h.getDate()+s),h.setHours(0,0,0,0);return l}function sT1(t,e){var n;g1(1,arguments);var a=t||{},r=A1(a.start),o=A1(a.end),c=r.getTime(),l=o.getTime();if(!(c<=l))throw new RangeError("Invalid interval");var h=[],s=r;s.setMinutes(0,0,0);var u=Number((n=e==null?void 0:e.step)!==null&&n!==void 0?n:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=l;)h.push(A1(s)),s=CT(s,u);return h}function sp(t){g1(1,arguments);var e=A1(t);return e.setSeconds(0,0),e}function hT1(t,e){var n;g1(1,arguments);var a=sp(A1(t.start)),r=A1(t.end),o=a.getTime(),c=r.getTime();if(o>=c)throw new RangeError("Invalid interval");var l=[],h=a,s=Number((n=e==null?void 0:e.step)!==null&&n!==void 0?n:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number equal to or greater than 1");for(;h.getTime()<=c;)l.push(A1(h)),h=bT(h,s);return l}function uT1(t){g1(1,arguments);var e=t||{},n=A1(e.start),a=A1(e.end),r=a.getTime(),o=[];if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var c=n;for(c.setHours(0,0,0,0),c.setDate(1);c.getTime()<=r;)o.push(A1(c)),c.setMonth(c.getMonth()+1);return o}function Xs(t){g1(1,arguments);var e=A1(t),n=e.getMonth(),a=n-n%3;return e.setMonth(a,1),e.setHours(0,0,0,0),e}function vT1(t){g1(1,arguments);var e=t||{},n=A1(e.start),a=A1(e.end),r=a.getTime();if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var o=Xs(n),c=Xs(a);r=c.getTime();for(var l=[],h=o;h.getTime()<=r;)l.push(A1(h)),h=LT(h,1);return l}function dT1(t,e){g1(1,arguments);var n=t||{},a=A1(n.start),r=A1(n.end),o=r.getTime();if(!(a.getTime()<=o))throw new RangeError("Invalid interval");var c=Za(a,e),l=Za(r,e);c.setHours(15),l.setHours(15),o=l.getTime();for(var h=[],s=c;s.getTime()<=o;)s.setHours(0),h.push(A1(s)),s=oM(s,1),s.setHours(15);return h}function NT(t){g1(1,arguments);for(var e=c11(t),n=[],a=0;a=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=jc(u,s),f=(Mn(u)-Mn(s))/1e3,d=Math.round((v-f)/60),M;if(d<2)return n!=null&&n.includeSeconds?v<5?c.formatDistance("lessThanXSeconds",5,h):v<10?c.formatDistance("lessThanXSeconds",10,h):v<20?c.formatDistance("lessThanXSeconds",20,h):v<40?c.formatDistance("halfAMinute",0,h):v<60?c.formatDistance("lessThanXMinutes",1,h):c.formatDistance("xMinutes",1,h):d===0?c.formatDistance("lessThanXMinutes",1,h):c.formatDistance("xMinutes",d,h);if(d<45)return c.formatDistance("xMinutes",d,h);if(d<90)return c.formatDistance("aboutXHours",1,h);if(d0?(u=A1(e),v=A1(t)):(u=A1(t),v=A1(e));var f=String((o=n==null?void 0:n.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/VI,H=Mn(v)-Mn(u),p=(M-H)/VI,m=n==null?void 0:n.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(a.getDate(),2),c=e2(a.getMonth()+1,2),l=a.getFullYear(),h=e2(a.getHours(),2),s=e2(a.getMinutes(),2),u=e2(a.getSeconds(),2),v="";if(r>0){var f=a.getMilliseconds(),d=Math.floor(f*Math.pow(10,r-3));v="."+e2(d,r)}var M="",g=a.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(l,"-").concat(c,"-").concat(o,"T").concat(h,":").concat(s,":").concat(u).concat(v).concat(M)}var NT1=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DT1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function RT1(t){if(arguments.length<1)throw new TypeError("1 arguments required, but only ".concat(arguments.length," present"));var e=A1(t);if(!xi(e))throw new RangeError("Invalid time value");var n=NT1[e.getUTCDay()],a=e2(e.getUTCDate(),2),r=DT1[e.getUTCMonth()],o=e.getUTCFullYear(),c=e2(e.getUTCHours(),2),l=e2(e.getUTCMinutes(),2),h=e2(e.getUTCSeconds(),2);return"".concat(n,", ").concat(a," ").concat(r," ").concat(o," ").concat(c,":").concat(l,":").concat(h," GMT")}function jT1(t,e,n){var a,r,o,c,l,h,s,u,v,f;g1(2,arguments);var d=A1(t),M=A1(e),g=Ye(),H=(a=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&a!==void 0?a:$l,p=Lt((o=(c=(l=(h=n==null?void 0:n.weekStartsOn)!==null&&h!==void 0?h:n==null||(s=n.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&l!==void 0?l:g.weekStartsOn)!==null&&c!==void 0?c:(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=y5(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=vl(d,Mn(d)),x=vl(M,Mn(M)),y=H.formatRelative(z,w,x,{locale:H,weekStartsOn:p});return fl(d,y,{locale:H,weekStartsOn:p})}function IT1(t){g1(1,arguments);var e=Lt(t);return A1(e*1e3)}function d11(t){g1(1,arguments);var e=A1(t),n=e.getDate();return n}function fM(t){g1(1,arguments);var e=A1(t),n=e.getDay();return n}function FT1(t){g1(1,arguments);var e=A1(t),n=y5(e,DT(e)),a=n+1;return a}function f11(t){g1(1,arguments);var e=A1(t),n=e.getFullYear(),a=e.getMonth(),r=new Date(0);return r.setFullYear(n,a+1,0),r.setHours(0,0,0,0),r.getDate()}function g11(t){g1(1,arguments);var e=A1(t),n=e.getFullYear();return n%400===0||n%4===0&&n%100!==0}function $T1(t){g1(1,arguments);var e=A1(t);return String(new Date(e))==="Invalid Date"?NaN:g11(e)?366:365}function UT1(t){g1(1,arguments);var e=A1(t),n=e.getFullYear(),a=Math.floor(n/10)*10;return a}function WT1(){return Qh({},Ye())}function qT1(t){g1(1,arguments);var e=A1(t),n=e.getHours();return n}function p11(t){g1(1,arguments);var e=A1(t),n=e.getDay();return n===0&&(n=7),n}var GT1=6048e5;function m11(t){g1(1,arguments);var e=A1(t),n=_i(e).getTime()-go(e).getTime();return Math.round(n/GT1)+1}var KT1=6048e5;function YT1(t){g1(1,arguments);var e=go(t),n=go(oM(e,60)),a=n.valueOf()-e.valueOf();return Math.round(a/KT1)}function ZT1(t){g1(1,arguments);var e=A1(t),n=e.getMilliseconds();return n}function QT1(t){g1(1,arguments);var e=A1(t),n=e.getMinutes();return n}function XT1(t){g1(1,arguments);var e=A1(t),n=e.getMonth();return n}var JT1=24*60*60*1e3;function tO1(t,e){g1(2,arguments);var n=t||{},a=e||{},r=A1(n.start).getTime(),o=A1(n.end).getTime(),c=A1(a.start).getTime(),l=A1(a.end).getTime();if(!(r<=o&&c<=l))throw new RangeError("Invalid interval");var h=ro?o:l,v=u-s;return Math.ceil(v/JT1)}function eO1(t){g1(1,arguments);var e=A1(t),n=e.getSeconds();return n}function z11(t){g1(1,arguments);var e=A1(t),n=e.getTime();return n}function nO1(t){return g1(1,arguments),Math.floor(z11(t)/1e3)}function M11(t,e){var n,a,r,o,c,l,h,s;g1(1,arguments);var u=A1(t),v=u.getFullYear(),f=Ye(),d=Lt((n=(a=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(c=e.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:f.firstWeekContainsDate)!==null&&a!==void 0?a:(h=f.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n: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=Za(M,e),H=new Date(0);H.setFullYear(v,0,d),H.setHours(0,0,0,0);var p=Za(H,e);return u.getTime()>=g.getTime()?v+1:u.getTime()>=p.getTime()?v:v-1}function up(t,e){var n,a,r,o,c,l,h,s;g1(1,arguments);var u=Ye(),v=Lt((n=(a=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(c=e.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:u.firstWeekContainsDate)!==null&&a!==void 0?a:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=M11(t,e),d=new Date(0);d.setFullYear(f,0,v),d.setHours(0,0,0,0);var M=Za(d,e);return M}var aO1=6048e5;function H11(t,e){g1(1,arguments);var n=A1(t),a=Za(n,e).getTime()-up(n,e).getTime();return Math.round(a/aO1)+1}function rO1(t,e){var n,a,r,o,c,l,h,s;g1(1,arguments);var u=Ye(),v=Lt((n=(a=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(c=e.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&a!==void 0?a:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=d11(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 w11(t){g1(1,arguments);var e=A1(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}function iO1(t,e){return g1(1,arguments),lp(w11(t),dM(t),e)+1}function oO1(t){return g1(1,arguments),A1(t).getFullYear()}function cO1(t){return g1(1,arguments),Math.floor(t*H6)}function lO1(t){return g1(1,arguments),Math.floor(t*ST)}function sO1(t){return g1(1,arguments),Math.floor(t*Zh)}function hO1(t){g1(1,arguments);var e=A1(t.start),n=A1(t.end);if(isNaN(e.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(n.getTime()))throw new RangeError("End Date is invalid");var a={};a.years=Math.abs(o11(n,e));var r=Sr(n,e),o=z8(e,{years:r*a.years});a.months=Math.abs(vM(n,o));var c=z8(o,{months:r*a.months});a.days=Math.abs(hM(n,c));var l=z8(c,{days:r*a.days});a.hours=Math.abs(Zs(n,l));var h=z8(l,{hours:r*a.hours});a.minutes=Math.abs(Qs(n,h));var s=z8(h,{minutes:r*a.minutes});return a.seconds=Math.abs(jc(n,s)),a}function uO1(t,e,n){var a;g1(1,arguments);var r;return vO1(e)?r=e:n=e,new Intl.DateTimeFormat((a=n)===null||a===void 0?void 0:a.locale,r).format(t)}function vO1(t){return t!==void 0&&!("locale"in t)}function dO1(t,e,n){g1(2,arguments);var a=0,r,o=A1(t),c=A1(e);if(n!=null&&n.unit)r=n==null?void 0:n.unit,r==="second"?a=jc(o,c):r==="minute"?a=Qs(o,c):r==="hour"?a=Zs(o,c):r==="day"?a=y5(o,c):r==="week"?a=lp(o,c):r==="month"?a=cp(o,c):r==="quarter"?a=Of(o,c):r==="year"&&(a=ls(o,c));else{var l=jc(o,c);Math.abs(l)a.getTime()}function fO1(t,e){g1(2,arguments);var n=A1(t),a=A1(e);return n.getTime()Date.now()}function LI(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Pm(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var a=0,r=function(){};return{s:r,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},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,c=!1,l;return{s:function(){n=n.call(t)},n:function(){var s=n.next();return o=s.done,s},e:function(s){c=!0,l=s},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(c)throw l}}}}var HO1=10,x11=function(){function t(){Jt(this,t),u1(this,"priority",void 0),u1(this,"subPriority",0)}return t2(t,[{key:"validate",value:function(n,a){return!0}}]),t}(),wO1=function(t){M2(n,t);var e=B2(n);function n(a,r,o,c,l){var h;return Jt(this,n),h=e.call(this),h.value=a,h.validateValue=r,h.setValue=o,h.priority=c,l&&(h.subPriority=l),h}return t2(n,[{key:"validate",value:function(r,o){return this.validateValue(r,this.value,o)}},{key:"set",value:function(r,o,c){return this.setValue(r,o,this.value,c)}}]),n}(x11),yO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c0,a=n?e:1-e,r;if(a<=50)r=t||100;else{var o=a+50,c=Math.floor(o/100)*100,l=t>=o%100;r=t+c-(l?100:0)}return n?r:1-r}function b11(t){return t%400===0||t%4===0&&t%100!==0}var VO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c0}},{key:"set",value:function(r,o,c){var l=r.getUTCFullYear();if(c.isTwoDigitYear){var h=C11(c.year,l);return r.setUTCFullYear(h,0,1),r.setUTCHours(0,0,0,0),r}var s=!("era"in o)||o.era===1?c.year:1-c.year;return r.setUTCFullYear(s,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(s0),CO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c0}},{key:"set",value:function(r,o,c,l){var h=n_(r,l);if(c.isTwoDigitYear){var s=C11(c.year,h);return r.setUTCFullYear(s,0,l.firstWeekContainsDate),r.setUTCHours(0,0,0,0),Vi(r,l)}var u=!("era"in o)||o.era===1?c.year:1-c.year;return r.setUTCFullYear(u,0,l.firstWeekContainsDate),r.setUTCHours(0,0,0,0),Vi(r,l)}}]),n}(s0),bO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=4}},{key:"set",value:function(r,o,c){return r.setUTCMonth((c-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(s0),SO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=4}},{key:"set",value:function(r,o,c){return r.setUTCMonth((c-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(s0),_O1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=11}},{key:"set",value:function(r,o,c){return r.setUTCMonth(c,1),r.setUTCHours(0,0,0,0),r}}]),n}(s0),TO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=11}},{key:"set",value:function(r,o,c){return r.setUTCMonth(c,1),r.setUTCHours(0,0,0,0),r}}]),n}(s0);function OO1(t,e,n){g1(2,arguments);var a=A1(t),r=Lt(e),o=XK(a,n)-r;return a.setUTCDate(a.getUTCDate()-o*7),a}var AO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=53}},{key:"set",value:function(r,o,c,l){return Vi(OO1(r,c,l),l)}}]),n}(s0);function kO1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e),r=ZK(n)-a;return n.setUTCDate(n.getUTCDate()-r*7),n}var EO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=53}},{key:"set",value:function(r,o,c){return dl(kO1(r,c))}}]),n}(s0),PO1=[31,28,31,30,31,30,31,31,30,31,30,31],NO1=[31,29,31,30,31,30,31,31,30,31,30,31],DO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=NO1[h]:o>=1&&o<=PO1[h]}},{key:"set",value:function(r,o,c){return r.setUTCDate(c),r.setUTCHours(0,0,0,0),r}}]),n}(s0),RO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(r,o,c){return r.setUTCMonth(0,c),r.setUTCHours(0,0,0,0),r}}]),n}(s0);function jT(t,e,n){var a,r,o,c,l,h,s,u;g1(2,arguments);var v=Ye(),f=Lt((a=(r=(o=(c=n==null?void 0:n.weekStartsOn)!==null&&c!==void 0?c:n==null||(l=n.locale)===null||l===void 0||(h=l.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&&a!==void 0?a: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,c,l){return r=jT(r,c,l),r.setUTCHours(0,0,0,0),r}}]),n}(s0),IO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=6}},{key:"set",value:function(r,o,c,l){return r=jT(r,c,l),r.setUTCHours(0,0,0,0),r}}]),n}(s0),FO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=6}},{key:"set",value:function(r,o,c,l){return r=jT(r,c,l),r.setUTCHours(0,0,0,0),r}}]),n}(s0);function $O1(t,e){g1(2,arguments);var n=Lt(e);n%7===0&&(n=n-7);var a=1,r=A1(t),o=r.getUTCDay(),c=n%7,l=(c+7)%7,h=(l=1&&o<=7}},{key:"set",value:function(r,o,c){return r=$O1(r,c),r.setUTCHours(0,0,0,0),r}}]),n}(s0),WO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=12}},{key:"set",value:function(r,o,c){var l=r.getUTCHours()>=12;return l&&c<12?r.setUTCHours(c+12,0,0,0):!l&&c===12?r.setUTCHours(0,0,0,0):r.setUTCHours(c,0,0,0),r}}]),n}(s0),YO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=23}},{key:"set",value:function(r,o,c){return r.setUTCHours(c,0,0,0),r}}]),n}(s0),ZO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=11}},{key:"set",value:function(r,o,c){var l=r.getUTCHours()>=12;return l&&c<12?r.setUTCHours(c+12,0,0,0):r.setUTCHours(c,0,0,0),r}}]),n}(s0),QO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=24}},{key:"set",value:function(r,o,c){var l=c<=24?c%24:c;return r.setUTCHours(l,0,0,0),r}}]),n}(s0),XO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=59}},{key:"set",value:function(r,o,c){return r.setUTCMinutes(c,0,0),r}}]),n}(s0),JO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=59}},{key:"set",value:function(r,o,c){return r.setUTCSeconds(c,0),r}}]),n}(s0),tA1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=Lt((M=(g=(H=(p=a==null?void 0:a.weekStartsOn)!==null&&p!==void 0?p:a==null||(m=a.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(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(V==="")return y===""?A1(n):new Date(NaN);var T={firstWeekContainsDate:B,weekStartsOn:_,locale:L},P=[new yO1],F=V.match(cA1).map(function(s1){var z1=s1[0];if(z1 in Mb){var m1=Mb[z1];return m1(s1,L.formatLong)}return s1}).join("").match(oA1),W=[],U=LI(F),Z;try{var I=function(){var z1=Z.value;!(a!=null&&a.useAdditionalWeekYearTokens)&&eY(z1)&&_g(z1,V,t),!(a!=null&&a.useAdditionalDayOfYearTokens)&&tY(z1)&&_g(z1,V,t);var m1=z1[0],_1=iA1[m1];if(_1){var I1=_1.incompatibleTokens;if(Array.isArray(I1)){var U1=W.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(_1.incompatibleTokens==="*"&&W.length>0)throw new RangeError("The format string mustn't contain `".concat(z1,"` and any other token at the same time"));W.push({token:m1,fullToken:z1});var P1=_1.run(y,z1,L.match,T);if(!P1)return{v:new Date(NaN)};P.push(P1.setter),y=P1.rest}else{if(m1.match(uA1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m1+"`");if(z1==="''"?z1="'":m1==="'"&&(z1=vA1(z1)),y.indexOf(z1)===0)y=y.slice(z1.length);else return{v:new Date(NaN)}}};for(U.s();!(Z=U.n()).done;){var t1=I();if(C2(t1)==="object")return t1.v}}catch(s1){U.e(s1)}finally{U.f()}if(y.length>0&&hA1.test(y))return new Date(NaN);var R=P.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 P.filter(function(z1){return z1.priority===s1}).sort(function(z1,m1){return m1.subPriority-z1.subPriority})}).map(function(s1){return s1[0]}),i1=A1(n);if(isNaN(i1.getTime()))return new Date(NaN);var J=vl(i1,Mn(i1)),A={},o1=LI(R),h1;try{for(o1.s();!(h1=o1.n()).done;){var n1=h1.value;if(!n1.validate(J,T))return new Date(NaN);var M1=n1.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 vA1(t){return t.match(lA1)[1].replace(sA1,"'")}function dA1(t,e,n){return g1(2,arguments),xi(L11(t,e,new Date,n))}function fA1(t){return g1(1,arguments),A1(t).getDay()===1}function gA1(t){return g1(1,arguments),A1(t).getTime()=a&&n<=r}function gM(t,e){g1(2,arguments);var n=Lt(e);return C5(t,-n)}function _A1(t){return g1(1,arguments),Oh(t,gM(Date.now(),1))}function TA1(t){g1(1,arguments);var e=A1(t),n=e.getFullYear(),a=9+Math.floor(n/10)*10;return e.setFullYear(a+1,0,0),e.setHours(0,0,0,0),e}function E11(t,e){var n,a,r,o,c,l,h,s;g1(1,arguments);var u=Ye(),v=Lt((n=(a=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(c=e.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&a!==void 0?a:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n: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(n[0])?a=n[0]:(e.date=n[0],a=n[1],Dd.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Dd.timeZoneDelimiter)[0],a=t.substr(e.date.length,t.length))),a){var r=Dd.timezone.exec(a);r?(e.time=a.replace(r[1],""),e.timezone=r[1]):e.time=a}return e}function sk1(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),a=t.match(n);if(!a)return{year:NaN,restDateString:""};var r=a[1]?parseInt(a[1]):null,o=a[2]?parseInt(a[2]):null;return{year:o===null?r:o*100,restDateString:t.slice((a[1]||a[2]).length)}}function hk1(t,e){if(e===null)return new Date(NaN);var n=t.match(ik1);if(!n)return new Date(NaN);var a=!!n[4],r=i7(n[1]),o=i7(n[2])-1,c=i7(n[3]),l=i7(n[4]),h=i7(n[5])-1;if(a)return mk1(e,l,h)?dk1(e,l,h):new Date(NaN);var s=new Date(0);return!gk1(e,o,c)||!pk1(e,r)?new Date(NaN):(s.setUTCFullYear(e,o,Math.max(r,c)),s)}function i7(t){return t?parseInt(t):1}function uk1(t){var e=t.match(ok1);if(!e)return NaN;var n=pV(e[1]),a=pV(e[2]),r=pV(e[3]);return zk1(n,a,r)?n*H6+a*M6+r*1e3:NaN}function pV(t){return t&&parseFloat(t.replace(",","."))||0}function vk1(t){if(t==="Z")return 0;var e=t.match(ck1);if(!e)return 0;var n=e[1]==="+"?-1:1,a=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return Mk1(a,r)?n*(a*H6+r*M6):NaN}function dk1(t,e,n){var a=new Date(0);a.setUTCFullYear(t,0,4);var r=a.getUTCDay()||7,o=(e-1)*7+n+1-r;return a.setUTCDate(a.getUTCDate()+o),a}var fk1=[31,null,31,30,31,30,31,31,30,31,30,31];function P11(t){return t%400===0||t%4===0&&t%100!==0}function gk1(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(fk1[e]||(P11(t)?29:28))}function pk1(t,e){return e>=1&&e<=(P11(t)?366:365)}function mk1(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function zk1(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Mk1(t,e){return e>=0&&e<=59}function Hk1(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 Ao(t,e){g1(2,arguments);var n=fM(t)-e;return n<=0&&(n+=7),gM(t,n)}function wk1(t){return g1(1,arguments),Ao(t,5)}function yk1(t){return g1(1,arguments),Ao(t,1)}function xk1(t){return g1(1,arguments),Ao(t,6)}function Vk1(t){return g1(1,arguments),Ao(t,0)}function Ck1(t){return g1(1,arguments),Ao(t,4)}function bk1(t){return g1(1,arguments),Ao(t,2)}function Lk1(t){return g1(1,arguments),Ao(t,3)}function Bk1(t){return g1(1,arguments),Math.floor(t*_T)}function Sk1(t){g1(1,arguments);var e=t/OT;return Math.floor(e)}function _k1(t,e){var n;if(arguments.length<1)throw new TypeError("1 argument required, but only none provided present");var a=Lt((n=e==null?void 0:e.nearestTo)!==null&&n!==void 0?n:1);if(a<1||a>30)throw new RangeError("`options.nearestTo` must be between 1 and 30");var r=A1(t),o=r.getSeconds(),c=r.getMinutes()+o/60,l=e9(e==null?void 0:e.roundingMethod),h=l(c/a)*a,s=c%a,u=Math.round(s/a)*a;return new Date(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),h+u)}function Tk1(t){g1(1,arguments);var e=t/Zh;return Math.floor(e)}function Ok1(t){return g1(1,arguments),t*cM}function Ak1(t){g1(1,arguments);var e=t/lM;return Math.floor(e)}function FT(t,e){g1(2,arguments);var n=A1(t),a=Lt(e),r=n.getFullYear(),o=n.getDate(),c=new Date(0);c.setFullYear(r,a,15),c.setHours(0,0,0,0);var l=f11(c);return n.setMonth(a,Math.min(o,l)),n}function kk1(t,e){if(g1(2,arguments),C2(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var n=A1(t);return isNaN(n.getTime())?new Date(NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=FT(n,e.month)),e.date!=null&&n.setDate(Lt(e.date)),e.hours!=null&&n.setHours(Lt(e.hours)),e.minutes!=null&&n.setMinutes(Lt(e.minutes)),e.seconds!=null&&n.setSeconds(Lt(e.seconds)),e.milliseconds!=null&&n.setMilliseconds(Lt(e.milliseconds)),n)}function Ek1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e);return n.setDate(a),n}function Pk1(t,e,n){var a,r,o,c,l,h,s,u;g1(2,arguments);var v=Ye(),f=Lt((a=(r=(o=(c=n==null?void 0:n.weekStartsOn)!==null&&c!==void 0?c:n==null||(l=n.locale)===null||l===void 0||(h=l.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&&a!==void 0?a: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 C5(d,z)}function Nk1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e);return n.setMonth(0),n.setDate(a),n}function ML(t){g1(1,arguments);var e={},n=Ye();for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]===void 0?delete e[r]:e[r]=t[r]);F71(e)}function Dk1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e);return n.setHours(a),n}function Rk1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e),r=p11(n),o=a-r;return C5(n,o)}function jk1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e),r=m11(n)-a;return n.setDate(n.getDate()-r*7),n}function Ik1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e);return n.setMilliseconds(a),n}function Fk1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e);return n.setMinutes(a),n}function $k1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e),r=Math.floor(n.getMonth()/3)+1,o=a-r;return FT(n,n.getMonth()+o*3)}function Uk1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e);return n.setSeconds(a),n}function Wk1(t,e,n){g1(2,arguments);var a=A1(t),r=Lt(e),o=H11(a,n)-r;return a.setDate(a.getDate()-o*7),a}function qk1(t,e,n){var a,r,o,c,l,h,s,u;g1(2,arguments);var v=Ye(),f=Lt((a=(r=(o=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(l=n.locale)===null||l===void 0||(h=l.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&&a!==void 0?a:1),d=A1(t),M=Lt(e),g=y5(d,up(d,n)),H=new Date(0);return H.setFullYear(M,0,f),H.setHours(0,0,0,0),d=up(H,n),d.setDate(d.getDate()+g),d}function Gk1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(a),n)}function Kk1(t){g1(1,arguments);var e=A1(t),n=e.getFullYear(),a=Math.floor(n/10)*10;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}function Yk1(){return gl(Date.now())}function Zk1(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),a=t.getDate(),r=new Date(0);return r.setFullYear(e,n,a+1),r.setHours(0,0,0,0),r}function Qk1(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),a=t.getDate(),r=new Date(0);return r.setFullYear(e,n,a-1),r.setHours(0,0,0,0),r}function N11(t,e){g1(2,arguments);var n=Lt(e);return Yh(t,-n)}function Xk1(t,e){if(g1(2,arguments),!e||C2(e)!=="object")return new Date(NaN);var n=e.years?Lt(e.years):0,a=e.months?Lt(e.months):0,r=e.weeks?Lt(e.weeks):0,o=e.days?Lt(e.days):0,c=e.hours?Lt(e.hours):0,l=e.minutes?Lt(e.minutes):0,h=e.seconds?Lt(e.seconds):0,s=N11(t,a+n*12),u=gM(s,o+r*7),v=l+c*60,f=h+v*60,d=f*1e3,M=new Date(u.getTime()-d);return M}function Jk1(t,e){g1(2,arguments);var n=Lt(e);return qJ(t,-n)}function tE1(t,e){g1(2,arguments);var n=Lt(e);return CT(t,-n)}function eE1(t,e){g1(2,arguments);var n=Lt(e);return bT(t,-n)}function nE1(t,e){g1(2,arguments);var n=Lt(e);return LT(t,-n)}function aE1(t,e){g1(2,arguments);var n=Lt(e);return YJ(t,-n)}function rE1(t,e){g1(2,arguments);var n=Lt(e);return oM(t,-n)}function iE1(t,e){g1(2,arguments);var n=Lt(e);return ZJ(t,-n)}function oE1(t){return g1(1,arguments),Math.floor(t*BT)}function cE1(t){return g1(1,arguments),Math.floor(t*TT)}function lE1(t){return g1(1,arguments),Math.floor(t*OT)}const sE1=Object.freeze(Object.defineProperty({__proto__:null,add:z8,addBusinessDays:qJ,addDays:C5,addHours:CT,addISOWeekYears:KJ,addMilliseconds:Th,addMinutes:bT,addMonths:Yh,addQuarters:LT,addSeconds:YJ,addWeeks:oM,addYears:ZJ,areIntervalsOverlapping:K_1,clamp:Y_1,closestIndexTo:Z_1,closestTo:Q_1,compareAsc:Sr,compareDesc:X_1,daysInWeek:BT,daysInYear:JJ,daysToWeeks:tT1,differenceInBusinessDays:eT1,differenceInCalendarDays:y5,differenceInCalendarISOWeekYears:a11,differenceInCalendarISOWeeks:aT1,differenceInCalendarMonths:cp,differenceInCalendarQuarters:Of,differenceInCalendarWeeks:lp,differenceInCalendarYears:ls,differenceInDays:hM,differenceInHours:Zs,differenceInISOWeekYears:oT1,differenceInMilliseconds:uM,differenceInMinutes:Qs,differenceInMonths:vM,differenceInQuarters:cT1,differenceInSeconds:jc,differenceInWeeks:lT1,differenceInYears:o11,eachDayOfInterval:c11,eachHourOfInterval:sT1,eachMinuteOfInterval:hT1,eachMonthOfInterval:uT1,eachQuarterOfInterval:vT1,eachWeekOfInterval:dT1,eachWeekendOfInterval:NT,eachWeekendOfMonth:fT1,eachWeekendOfYear:gT1,eachYearOfInterval:pT1,endOfDay:ET,endOfDecade:mT1,endOfHour:zT1,endOfISOWeek:MT1,endOfISOWeekYear:HT1,endOfMinute:wT1,endOfMonth:PT,endOfQuarter:yT1,endOfSecond:xT1,endOfToday:VT1,endOfTomorrow:CT1,endOfWeek:s11,endOfYear:l11,endOfYesterday:bT1,format:fl,formatDistance:u11,formatDistanceStrict:v11,formatDistanceToNow:ST1,formatDistanceToNowStrict:_T1,formatDuration:OT1,formatISO:AT1,formatISO9075:kT1,formatISODuration:ET1,formatRFC3339:PT1,formatRFC7231:RT1,formatRelative:jT1,fromUnixTime:IT1,getDate:d11,getDay:fM,getDayOfYear:FT1,getDaysInMonth:f11,getDaysInYear:$T1,getDecade:UT1,getDefaultOptions:WT1,getHours:qT1,getISODay:p11,getISOWeek:m11,getISOWeekYear:J8,getISOWeeksInYear:YT1,getMilliseconds:ZT1,getMinutes:QT1,getMonth:XT1,getOverlappingDaysInIntervals:tO1,getQuarter:pL,getSeconds:eO1,getTime:z11,getUnixTime:nO1,getWeek:H11,getWeekOfMonth:rO1,getWeekYear:M11,getWeeksInMonth:iO1,getYear:oO1,hoursToMilliseconds:cO1,hoursToMinutes:lO1,hoursToSeconds:sO1,intervalToDuration:hO1,intlFormat:uO1,intlFormatDistance:dO1,isAfter:y11,isBefore:fO1,isDate:KK,isEqual:gO1,isExists:pO1,isFirstDayOfMonth:mO1,isFriday:zO1,isFuture:MO1,isLastDayOfMonth:i11,isLeapYear:g11,isMatch:dA1,isMonday:fA1,isPast:gA1,isSameDay:Oh,isSameHour:B11,isSameISOWeek:S11,isSameISOWeekYear:pA1,isSameMinute:_11,isSameMonth:T11,isSameQuarter:O11,isSameSecond:A11,isSameWeek:IT,isSameYear:k11,isSaturday:WJ,isSunday:VT,isThisHour:mA1,isThisISOWeek:zA1,isThisMinute:MA1,isThisMonth:HA1,isThisQuarter:wA1,isThisSecond:yA1,isThisWeek:xA1,isThisYear:VA1,isThursday:CA1,isToday:cY,isTomorrow:bA1,isTuesday:LA1,isValid:xi,isWednesday:BA1,isWeekend:Rc,isWithinInterval:SA1,isYesterday:_A1,lastDayOfDecade:TA1,lastDayOfISOWeek:OA1,lastDayOfISOWeekYear:AA1,lastDayOfMonth:w11,lastDayOfQuarter:kA1,lastDayOfWeek:E11,lastDayOfYear:EA1,lightFormat:jA1,max:QJ,maxTime:t11,milliseconds:FA1,millisecondsInHour:H6,millisecondsInMinute:M6,millisecondsInSecond:cM,millisecondsToHours:$A1,millisecondsToMinutes:UA1,millisecondsToSeconds:WA1,min:XJ,minTime:J_1,minutesInHour:ST,minutesToHours:qA1,minutesToMilliseconds:GA1,minutesToSeconds:KA1,monthsInQuarter:_T,monthsInYear:TT,monthsToQuarters:YA1,monthsToYears:ZA1,nextDay:Oo,nextFriday:QA1,nextMonday:XA1,nextSaturday:JA1,nextSunday:tk1,nextThursday:ek1,nextTuesday:nk1,nextWednesday:ak1,parse:L11,parseISO:rk1,parseJSON:Hk1,previousDay:Ao,previousFriday:wk1,previousMonday:yk1,previousSaturday:xk1,previousSunday:Vk1,previousThursday:Ck1,previousTuesday:bk1,previousWednesday:Lk1,quartersInYear:OT,quartersToMonths:Bk1,quartersToYears:Sk1,roundToNearestMinutes:_k1,secondsInDay:sM,secondsInHour:Zh,secondsInMinute:lM,secondsInMonth:kT,secondsInQuarter:n11,secondsInWeek:e11,secondsInYear:AT,secondsToHours:Tk1,secondsToMilliseconds:Ok1,secondsToMinutes:Ak1,set:kk1,setDate:Ek1,setDay:Pk1,setDayOfYear:Nk1,setDefaultOptions:ML,setHours:Dk1,setISODay:Rk1,setISOWeek:jk1,setISOWeekYear:GJ,setMilliseconds:Ik1,setMinutes:Fk1,setMonth:FT,setQuarter:$k1,setSeconds:Uk1,setWeek:Wk1,setWeekYear:qk1,setYear:Gk1,startOfDay:gl,startOfDecade:Kk1,startOfHour:mL,startOfISOWeek:_i,startOfISOWeekYear:go,startOfMinute:sp,startOfMonth:dM,startOfQuarter:Xs,startOfSecond:zL,startOfToday:Yk1,startOfTomorrow:Zk1,startOfWeek:Za,startOfWeekYear:up,startOfYear:DT,startOfYesterday:Qk1,sub:Xk1,subBusinessDays:Jk1,subDays:gM,subHours:tE1,subISOWeekYears:r11,subMilliseconds:vl,subMinutes:eE1,subMonths:N11,subQuarters:nE1,subSeconds:aE1,subWeeks:rE1,subYears:iE1,toDate:A1,weeksToDays:oE1,yearsToMonths:cE1,yearsToQuarters:lE1},Symbol.toStringTag,{value:"Module"})),Xh=se(sE1);var SI;function hE1(){if(SI)return r7;SI=1;var t=b&&b.__assign||function(){return t=Object.assign||function(l){for(var h,s=1,u=arguments.length;s=c?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function M8(t,e){if(g1(2,arguments),!e||C2(e)!=="object")return new Date(NaN);var n=e.years?Lt(e.years):0,a=e.months?Lt(e.months):0,r=e.weeks?Lt(e.weeks):0,o=e.days?Lt(e.days):0,c=e.hours?Lt(e.hours):0,l=e.minutes?Lt(e.minutes):0,h=e.seconds?Lt(e.seconds):0,s=A1(t),u=a||n?Yh(s,a+n*12):s,v=o||r?Vi(u,o+r*7):u,f=l+c*60,d=h+f*60,z=d*1e3,g=new Date(v.getTime()+z);return g}function Rl(t){g1(1,arguments);var e=A1(t),n=e.getDay();return n===0||n===6}function VT(t){return g1(1,arguments),A1(t).getDay()===0}function GJ(t){return g1(1,arguments),A1(t).getDay()===6}function KJ(t,e){g1(2,arguments);var n=A1(t),a=Rl(n),r=Lt(e);if(isNaN(r))return new Date(NaN);var o=n.getHours(),c=r<0?-1:1,l=Lt(r/5);n.setDate(n.getDate()+l*7);for(var h=Math.abs(r%5);h>0;)n.setDate(n.getDate()+c),Rl(n)||(h-=1);return a&&Rl(n)&&r!==0&&(GJ(n)&&n.setDate(n.getDate()+(c<0?2:-1)),VT(n)&&n.setDate(n.getDate()+(c<0?1:-2))),n.setHours(o),n}var qS1=36e5;function CT(t,e){g1(2,arguments);var n=Lt(e);return Th(t,n*qS1)}function Za(t,e){var n,a,r,o,c,l,h,s;g1(1,arguments);var u=Ye(),v=Lt((n=(a=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(c=e.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&a!==void 0?a:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=A1(t),d=f.getDay(),z=(d=r.getTime()?n+1:e.getTime()>=c.getTime()?n:n-1}function po(t){g1(1,arguments);var e=tc(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var a=_5(n);return a}var GS1=864e5;function wi(t,e){g1(2,arguments);var n=g6(t),a=g6(e),r=n.getTime()-Mn(n),o=a.getTime()-Mn(a);return Math.round((r-o)/GS1)}function YJ(t,e){g1(2,arguments);var n=A1(t),a=Lt(e),r=wi(n,po(n)),o=new Date(0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),n=po(o),n.setDate(n.getDate()+r),n}function ZJ(t,e){g1(2,arguments);var n=Lt(e);return YJ(t,tc(t)+n)}var KS1=6e4;function bT(t,e){g1(2,arguments);var n=Lt(e);return Th(t,n*KS1)}function LT(t,e){g1(2,arguments);var n=Lt(e),a=n*3;return Yh(t,a)}function QJ(t,e){g1(2,arguments);var n=Lt(e);return Th(t,n*1e3)}function oM(t,e){g1(2,arguments);var n=Lt(e),a=n*7;return Vi(t,a)}function XJ(t,e){g1(2,arguments);var n=Lt(e);return Yh(t,n*12)}function YS1(t,e,n){g1(2,arguments);var a=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(),c=A1(e==null?void 0:e.end).getTime();if(!(a<=r&&o<=c))throw new RangeError("Invalid interval");return n!=null&&n.inclusive?a<=c&&o<=r:ar||isNaN(r.getDate()))&&(n=r)}),n||new Date(NaN)}function ZS1(t,e){var n=e.start,a=e.end;return g1(2,arguments),t11([JJ([t,n]),a])}function QS1(t,e){g1(2,arguments);var n=A1(t);if(isNaN(Number(n)))return NaN;var a=n.getTime(),r;e==null?r=[]:typeof e.forEach=="function"?r=e:r=Array.prototype.slice.call(e);var o,c;return r.forEach(function(l,h){var s=A1(l);if(isNaN(Number(s))){o=NaN,c=NaN;return}var u=Math.abs(a-s.getTime());(o==null||u0?1:r}function JS1(t,e){g1(2,arguments);var n=A1(t),a=A1(e),r=n.getTime()-a.getTime();return r>0?-1:r<0?1:r}var BT=7,e11=365.2425,n11=Math.pow(10,8)*24*60*60*1e3,Hc=6e4,wc=36e5,cM=1e3,tT1=-n11,_T=60,ST=3,TT=12,OT=4,Zh=3600,lM=60,sM=Zh*24,a11=sM*7,AT=sM*e11,kT=AT/12,r11=kT*3;function eT1(t){g1(1,arguments);var e=t/BT;return Math.floor(e)}function nT1(t,e){g1(2,arguments);var n=A1(t),a=A1(e);if(!y5(n)||!y5(a))return NaN;var r=wi(n,a),o=r<0?-1:1,c=Lt(r/7),l=c*5;for(a=Vi(a,c*7);!Oh(n,a);)l+=Rl(a)?0:o,a=Vi(a,o);return l===0?0:l}function i11(t,e){return g1(2,arguments),tc(t)-tc(e)}var aT1=6048e5;function rT1(t,e){g1(2,arguments);var n=_5(t),a=_5(e),r=n.getTime()-Mn(n),o=a.getTime()-Mn(a);return Math.round((r-o)/aT1)}function cp(t,e){g1(2,arguments);var n=A1(t),a=A1(e),r=n.getFullYear()-a.getFullYear(),o=n.getMonth()-a.getMonth();return r*12+o}function pL(t){g1(1,arguments);var e=A1(t),n=Math.floor(e.getMonth()/3)+1;return n}function Of(t,e){g1(2,arguments);var n=A1(t),a=A1(e),r=n.getFullYear()-a.getFullYear(),o=pL(n)-pL(a);return r*4+o}var iT1=6048e5;function lp(t,e,n){g1(2,arguments);var a=Za(t,n),r=Za(e,n),o=a.getTime()-Mn(a),c=r.getTime()-Mn(r);return Math.round((o-c)/iT1)}function ls(t,e){g1(2,arguments);var n=A1(t),a=A1(e);return n.getFullYear()-a.getFullYear()}function yI(t,e){var n=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 n<0?-1:n>0?1:n}function hM(t,e){g1(2,arguments);var n=A1(t),a=A1(e),r=yI(n,a),o=Math.abs(wi(n,a));n.setDate(n.getDate()-r*o);var c=+(yI(n,a)===-r),l=r*(o-c);return l===0?0:l}function uM(t,e){return g1(2,arguments),A1(t).getTime()-A1(e).getTime()}var xI={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},oT1="trunc";function e9(t){return t?xI[t]:xI[oT1]}function Zs(t,e,n){g1(2,arguments);var a=uM(t,e)/wc;return e9(n==null?void 0:n.roundingMethod)(a)}function o11(t,e){g1(2,arguments);var n=Lt(e);return ZJ(t,-n)}function cT1(t,e){g1(2,arguments);var n=A1(t),a=A1(e),r=_r(n,a),o=Math.abs(i11(n,a));n=o11(n,r*o);var c=+(_r(n,a)===-r),l=r*(o-c);return l===0?0:l}function Qs(t,e,n){g1(2,arguments);var a=uM(t,e)/Hc;return e9(n==null?void 0:n.roundingMethod)(a)}function ET(t){g1(1,arguments);var e=A1(t);return e.setHours(23,59,59,999),e}function PT(t){g1(1,arguments);var e=A1(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function c11(t){g1(1,arguments);var e=A1(t);return ET(e).getTime()===PT(e).getTime()}function vM(t,e){g1(2,arguments);var n=A1(t),a=A1(e),r=_r(n,a),o=Math.abs(cp(n,a)),c;if(o<1)c=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-r*o);var l=_r(n,a)===-r;c11(A1(t))&&o===1&&_r(t,a)===1&&(l=!1),c=r*(o-Number(l))}return c===0?0:c}function lT1(t,e,n){g1(2,arguments);var a=vM(t,e)/3;return e9(n==null?void 0:n.roundingMethod)(a)}function jl(t,e,n){g1(2,arguments);var a=uM(t,e)/1e3;return e9(n==null?void 0:n.roundingMethod)(a)}function sT1(t,e,n){g1(2,arguments);var a=hM(t,e)/7;return e9(n==null?void 0:n.roundingMethod)(a)}function l11(t,e){g1(2,arguments);var n=A1(t),a=A1(e),r=_r(n,a),o=Math.abs(ls(n,a));n.setFullYear(1584),a.setFullYear(1584);var c=_r(n,a)===-r,l=r*(o-Number(c));return l===0?0:l}function s11(t,e){var n;g1(1,arguments);var a=t||{},r=A1(a.start),o=A1(a.end),c=o.getTime();if(!(r.getTime()<=c))throw new RangeError("Invalid interval");var l=[],h=r;h.setHours(0,0,0,0);var s=Number((n=e==null?void 0:e.step)!==null&&n!==void 0?n:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number greater than 1");for(;h.getTime()<=c;)l.push(A1(h)),h.setDate(h.getDate()+s),h.setHours(0,0,0,0);return l}function hT1(t,e){var n;g1(1,arguments);var a=t||{},r=A1(a.start),o=A1(a.end),c=r.getTime(),l=o.getTime();if(!(c<=l))throw new RangeError("Invalid interval");var h=[],s=r;s.setMinutes(0,0,0);var u=Number((n=e==null?void 0:e.step)!==null&&n!==void 0?n:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=l;)h.push(A1(s)),s=CT(s,u);return h}function sp(t){g1(1,arguments);var e=A1(t);return e.setSeconds(0,0),e}function uT1(t,e){var n;g1(1,arguments);var a=sp(A1(t.start)),r=A1(t.end),o=a.getTime(),c=r.getTime();if(o>=c)throw new RangeError("Invalid interval");var l=[],h=a,s=Number((n=e==null?void 0:e.step)!==null&&n!==void 0?n:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number equal to or greater than 1");for(;h.getTime()<=c;)l.push(A1(h)),h=bT(h,s);return l}function vT1(t){g1(1,arguments);var e=t||{},n=A1(e.start),a=A1(e.end),r=a.getTime(),o=[];if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var c=n;for(c.setHours(0,0,0,0),c.setDate(1);c.getTime()<=r;)o.push(A1(c)),c.setMonth(c.getMonth()+1);return o}function Xs(t){g1(1,arguments);var e=A1(t),n=e.getMonth(),a=n-n%3;return e.setMonth(a,1),e.setHours(0,0,0,0),e}function dT1(t){g1(1,arguments);var e=t||{},n=A1(e.start),a=A1(e.end),r=a.getTime();if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var o=Xs(n),c=Xs(a);r=c.getTime();for(var l=[],h=o;h.getTime()<=r;)l.push(A1(h)),h=LT(h,1);return l}function fT1(t,e){g1(1,arguments);var n=t||{},a=A1(n.start),r=A1(n.end),o=r.getTime();if(!(a.getTime()<=o))throw new RangeError("Invalid interval");var c=Za(a,e),l=Za(r,e);c.setHours(15),l.setHours(15),o=l.getTime();for(var h=[],s=c;s.getTime()<=o;)s.setHours(0),h.push(A1(s)),s=oM(s,1),s.setHours(15);return h}function NT(t){g1(1,arguments);for(var e=s11(t),n=[],a=0;a=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=A1(t),d=f.getDay(),z=(d0?(s=A1(e),u=A1(t)):(s=A1(t),u=A1(e));var v=jl(u,s),f=(Mn(u)-Mn(s))/1e3,d=Math.round((v-f)/60),z;if(d<2)return n!=null&&n.includeSeconds?v<5?c.formatDistance("lessThanXSeconds",5,h):v<10?c.formatDistance("lessThanXSeconds",10,h):v<20?c.formatDistance("lessThanXSeconds",20,h):v<40?c.formatDistance("halfAMinute",0,h):v<60?c.formatDistance("lessThanXMinutes",1,h):c.formatDistance("xMinutes",1,h):d===0?c.formatDistance("lessThanXMinutes",1,h):c.formatDistance("xMinutes",d,h);if(d<45)return c.formatDistance("xMinutes",d,h);if(d<90)return c.formatDistance("aboutXHours",1,h);if(d0?(u=A1(e),v=A1(t)):(u=A1(t),v=A1(e));var f=String((o=n==null?void 0:n.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 z=v.getTime()-u.getTime(),g=z/CI,H=Mn(v)-Mn(u),p=(z-H)/CI,m=n==null?void 0:n.unit,M;if(m?M=String(m):g<1?M="second":g<60?M="minute":g=0&&r<=3))throw new RangeError("fractionDigits must be between 0 and 3 inclusively");var o=e2(a.getDate(),2),c=e2(a.getMonth()+1,2),l=a.getFullYear(),h=e2(a.getHours(),2),s=e2(a.getMinutes(),2),u=e2(a.getSeconds(),2),v="";if(r>0){var f=a.getMilliseconds(),d=Math.floor(f*Math.pow(10,r-3));v="."+e2(d,r)}var z="",g=a.getTimezoneOffset();if(g!==0){var H=Math.abs(g),p=e2(Lt(H/60),2),m=e2(H%60,2),M=g<0?"+":"-";z="".concat(M).concat(p,":").concat(m)}else z="Z";return"".concat(l,"-").concat(c,"-").concat(o,"T").concat(h,":").concat(s,":").concat(u).concat(v).concat(z)}var DT1=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],RT1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function jT1(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 n=DT1[e.getUTCDay()],a=e2(e.getUTCDate(),2),r=RT1[e.getUTCMonth()],o=e.getUTCFullYear(),c=e2(e.getUTCHours(),2),l=e2(e.getUTCMinutes(),2),h=e2(e.getUTCSeconds(),2);return"".concat(n,", ").concat(a," ").concat(r," ").concat(o," ").concat(c,":").concat(l,":").concat(h," GMT")}function IT1(t,e,n){var a,r,o,c,l,h,s,u,v,f;g1(2,arguments);var d=A1(t),z=A1(e),g=Ye(),H=(a=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&a!==void 0?a:$6,p=Lt((o=(c=(l=(h=n==null?void 0:n.weekStartsOn)!==null&&h!==void 0?h:n==null||(s=n.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&l!==void 0?l:g.weekStartsOn)!==null&&c!==void 0?c:(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=wi(d,z);if(isNaN(m))throw new RangeError("Invalid time value");var M;m<-6?M="other":m<-1?M="lastWeek":m<0?M="yesterday":m<1?M="today":m<2?M="tomorrow":m<7?M="nextWeek":M="other";var w=v6(d,Mn(d)),x=v6(z,Mn(z)),y=H.formatRelative(M,w,x,{locale:H,weekStartsOn:p});return f6(d,y,{locale:H,weekStartsOn:p})}function FT1(t){g1(1,arguments);var e=Lt(t);return A1(e*1e3)}function g11(t){g1(1,arguments);var e=A1(t),n=e.getDate();return n}function fM(t){g1(1,arguments);var e=A1(t),n=e.getDay();return n}function $T1(t){g1(1,arguments);var e=A1(t),n=wi(e,DT(e)),a=n+1;return a}function p11(t){g1(1,arguments);var e=A1(t),n=e.getFullYear(),a=e.getMonth(),r=new Date(0);return r.setFullYear(n,a+1,0),r.setHours(0,0,0,0),r.getDate()}function m11(t){g1(1,arguments);var e=A1(t),n=e.getFullYear();return n%400===0||n%4===0&&n%100!==0}function UT1(t){g1(1,arguments);var e=A1(t);return String(new Date(e))==="Invalid Date"?NaN:m11(e)?366:365}function WT1(t){g1(1,arguments);var e=A1(t),n=e.getFullYear(),a=Math.floor(n/10)*10;return a}function qT1(){return Qh({},Ye())}function GT1(t){g1(1,arguments);var e=A1(t),n=e.getHours();return n}function z11(t){g1(1,arguments);var e=A1(t),n=e.getDay();return n===0&&(n=7),n}var KT1=6048e5;function M11(t){g1(1,arguments);var e=A1(t),n=_5(e).getTime()-po(e).getTime();return Math.round(n/KT1)+1}var YT1=6048e5;function ZT1(t){g1(1,arguments);var e=po(t),n=po(oM(e,60)),a=n.valueOf()-e.valueOf();return Math.round(a/YT1)}function QT1(t){g1(1,arguments);var e=A1(t),n=e.getMilliseconds();return n}function XT1(t){g1(1,arguments);var e=A1(t),n=e.getMinutes();return n}function JT1(t){g1(1,arguments);var e=A1(t),n=e.getMonth();return n}var tO1=24*60*60*1e3;function eO1(t,e){g1(2,arguments);var n=t||{},a=e||{},r=A1(n.start).getTime(),o=A1(n.end).getTime(),c=A1(a.start).getTime(),l=A1(a.end).getTime();if(!(r<=o&&c<=l))throw new RangeError("Invalid interval");var h=ro?o:l,v=u-s;return Math.ceil(v/tO1)}function nO1(t){g1(1,arguments);var e=A1(t),n=e.getSeconds();return n}function H11(t){g1(1,arguments);var e=A1(t),n=e.getTime();return n}function aO1(t){return g1(1,arguments),Math.floor(H11(t)/1e3)}function w11(t,e){var n,a,r,o,c,l,h,s;g1(1,arguments);var u=A1(t),v=u.getFullYear(),f=Ye(),d=Lt((n=(a=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(c=e.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:f.firstWeekContainsDate)!==null&&a!==void 0?a:(h=f.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=new Date(0);z.setFullYear(v+1,0,d),z.setHours(0,0,0,0);var g=Za(z,e),H=new Date(0);H.setFullYear(v,0,d),H.setHours(0,0,0,0);var p=Za(H,e);return u.getTime()>=g.getTime()?v+1:u.getTime()>=p.getTime()?v:v-1}function up(t,e){var n,a,r,o,c,l,h,s;g1(1,arguments);var u=Ye(),v=Lt((n=(a=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(c=e.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:u.firstWeekContainsDate)!==null&&a!==void 0?a:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=w11(t,e),d=new Date(0);d.setFullYear(f,0,v),d.setHours(0,0,0,0);var z=Za(d,e);return z}var rO1=6048e5;function y11(t,e){g1(1,arguments);var n=A1(t),a=Za(n,e).getTime()-up(n,e).getTime();return Math.round(a/rO1)+1}function iO1(t,e){var n,a,r,o,c,l,h,s;g1(1,arguments);var u=Ye(),v=Lt((n=(a=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(c=e.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&a!==void 0?a:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=g11(t);if(isNaN(f))return NaN;var d=fM(dM(t)),z=v-d;z<=0&&(z+=7);var g=f-z;return Math.ceil(g/7)+1}function x11(t){g1(1,arguments);var e=A1(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}function oO1(t,e){return g1(1,arguments),lp(x11(t),dM(t),e)+1}function cO1(t){return g1(1,arguments),A1(t).getFullYear()}function lO1(t){return g1(1,arguments),Math.floor(t*wc)}function sO1(t){return g1(1,arguments),Math.floor(t*_T)}function hO1(t){return g1(1,arguments),Math.floor(t*Zh)}function uO1(t){g1(1,arguments);var e=A1(t.start),n=A1(t.end);if(isNaN(e.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(n.getTime()))throw new RangeError("End Date is invalid");var a={};a.years=Math.abs(l11(n,e));var r=_r(n,e),o=M8(e,{years:r*a.years});a.months=Math.abs(vM(n,o));var c=M8(o,{months:r*a.months});a.days=Math.abs(hM(n,c));var l=M8(c,{days:r*a.days});a.hours=Math.abs(Zs(n,l));var h=M8(l,{hours:r*a.hours});a.minutes=Math.abs(Qs(n,h));var s=M8(h,{minutes:r*a.minutes});return a.seconds=Math.abs(jl(n,s)),a}function vO1(t,e,n){var a;g1(1,arguments);var r;return dO1(e)?r=e:n=e,new Intl.DateTimeFormat((a=n)===null||a===void 0?void 0:a.locale,r).format(t)}function dO1(t){return t!==void 0&&!("locale"in t)}function fO1(t,e,n){g1(2,arguments);var a=0,r,o=A1(t),c=A1(e);if(n!=null&&n.unit)r=n==null?void 0:n.unit,r==="second"?a=jl(o,c):r==="minute"?a=Qs(o,c):r==="hour"?a=Zs(o,c):r==="day"?a=wi(o,c):r==="week"?a=lp(o,c):r==="month"?a=cp(o,c):r==="quarter"?a=Of(o,c):r==="year"&&(a=ls(o,c));else{var l=jl(o,c);Math.abs(l)a.getTime()}function gO1(t,e){g1(2,arguments);var n=A1(t),a=A1(e);return n.getTime()Date.now()}function BI(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Pm(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var a=0,r=function(){};return{s:r,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},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,c=!1,l;return{s:function(){n=n.call(t)},n:function(){var s=n.next();return o=s.done,s},e:function(s){c=!0,l=s},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(c)throw l}}}}var wO1=10,C11=function(){function t(){Jt(this,t),u1(this,"priority",void 0),u1(this,"subPriority",0)}return t2(t,[{key:"validate",value:function(n,a){return!0}}]),t}(),yO1=function(t){M2(n,t);var e=B2(n);function n(a,r,o,c,l){var h;return Jt(this,n),h=e.call(this),h.value=a,h.validateValue=r,h.setValue=o,h.priority=c,l&&(h.subPriority=l),h}return t2(n,[{key:"validate",value:function(r,o){return this.validateValue(r,this.value,o)}},{key:"set",value:function(r,o,c){return this.setValue(r,o,this.value,c)}}]),n}(C11),xO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c0,a=n?e:1-e,r;if(a<=50)r=t||100;else{var o=a+50,c=Math.floor(o/100)*100,l=t>=o%100;r=t+c-(l?100:0)}return n?r:1-r}function B11(t){return t%400===0||t%4===0&&t%100!==0}var CO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c0}},{key:"set",value:function(r,o,c){var l=r.getUTCFullYear();if(c.isTwoDigitYear){var h=L11(c.year,l);return r.setUTCFullYear(h,0,1),r.setUTCHours(0,0,0,0),r}var s=!("era"in o)||o.era===1?c.year:1-c.year;return r.setUTCFullYear(s,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(s0),bO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c0}},{key:"set",value:function(r,o,c,l){var h=nS(r,l);if(c.isTwoDigitYear){var s=L11(c.year,h);return r.setUTCFullYear(s,0,l.firstWeekContainsDate),r.setUTCHours(0,0,0,0),x5(r,l)}var u=!("era"in o)||o.era===1?c.year:1-c.year;return r.setUTCFullYear(u,0,l.firstWeekContainsDate),r.setUTCHours(0,0,0,0),x5(r,l)}}]),n}(s0),LO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=4}},{key:"set",value:function(r,o,c){return r.setUTCMonth((c-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(s0),SO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=4}},{key:"set",value:function(r,o,c){return r.setUTCMonth((c-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(s0),TO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=11}},{key:"set",value:function(r,o,c){return r.setUTCMonth(c,1),r.setUTCHours(0,0,0,0),r}}]),n}(s0),OO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=11}},{key:"set",value:function(r,o,c){return r.setUTCMonth(c,1),r.setUTCHours(0,0,0,0),r}}]),n}(s0);function AO1(t,e,n){g1(2,arguments);var a=A1(t),r=Lt(e),o=JK(a,n)-r;return a.setUTCDate(a.getUTCDate()-o*7),a}var kO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=53}},{key:"set",value:function(r,o,c,l){return x5(AO1(r,c,l),l)}}]),n}(s0);function EO1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e),r=QK(n)-a;return n.setUTCDate(n.getUTCDate()-r*7),n}var PO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=53}},{key:"set",value:function(r,o,c){return d6(EO1(r,c))}}]),n}(s0),NO1=[31,28,31,30,31,30,31,31,30,31,30,31],DO1=[31,29,31,30,31,30,31,31,30,31,30,31],RO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=DO1[h]:o>=1&&o<=NO1[h]}},{key:"set",value:function(r,o,c){return r.setUTCDate(c),r.setUTCHours(0,0,0,0),r}}]),n}(s0),jO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(r,o,c){return r.setUTCMonth(0,c),r.setUTCHours(0,0,0,0),r}}]),n}(s0);function jT(t,e,n){var a,r,o,c,l,h,s,u;g1(2,arguments);var v=Ye(),f=Lt((a=(r=(o=(c=n==null?void 0:n.weekStartsOn)!==null&&c!==void 0?c:n==null||(l=n.locale)===null||l===void 0||(h=l.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&&a!==void 0?a:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=A1(t),z=Lt(e),g=d.getUTCDay(),H=z%7,p=(H+7)%7,m=(p=0&&o<=6}},{key:"set",value:function(r,o,c,l){return r=jT(r,c,l),r.setUTCHours(0,0,0,0),r}}]),n}(s0),FO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=6}},{key:"set",value:function(r,o,c,l){return r=jT(r,c,l),r.setUTCHours(0,0,0,0),r}}]),n}(s0),$O1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=6}},{key:"set",value:function(r,o,c,l){return r=jT(r,c,l),r.setUTCHours(0,0,0,0),r}}]),n}(s0);function UO1(t,e){g1(2,arguments);var n=Lt(e);n%7===0&&(n=n-7);var a=1,r=A1(t),o=r.getUTCDay(),c=n%7,l=(c+7)%7,h=(l=1&&o<=7}},{key:"set",value:function(r,o,c){return r=UO1(r,c),r.setUTCHours(0,0,0,0),r}}]),n}(s0),qO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=12}},{key:"set",value:function(r,o,c){var l=r.getUTCHours()>=12;return l&&c<12?r.setUTCHours(c+12,0,0,0):!l&&c===12?r.setUTCHours(0,0,0,0):r.setUTCHours(c,0,0,0),r}}]),n}(s0),ZO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=23}},{key:"set",value:function(r,o,c){return r.setUTCHours(c,0,0,0),r}}]),n}(s0),QO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=11}},{key:"set",value:function(r,o,c){var l=r.getUTCHours()>=12;return l&&c<12?r.setUTCHours(c+12,0,0,0):r.setUTCHours(c,0,0,0),r}}]),n}(s0),XO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&o<=24}},{key:"set",value:function(r,o,c){var l=c<=24?c%24:c;return r.setUTCHours(l,0,0,0),r}}]),n}(s0),JO1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=59}},{key:"set",value:function(r,o,c){return r.setUTCMinutes(c,0,0),r}}]),n}(s0),tA1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=0&&o<=59}},{key:"set",value:function(r,o,c){return r.setUTCSeconds(c,0),r}}]),n}(s0),eA1=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=Lt((z=(g=(H=(p=a==null?void 0:a.weekStartsOn)!==null&&p!==void 0?p:a==null||(m=a.locale)===null||m===void 0||(M=m.options)===null||M===void 0?void 0:M.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&&z!==void 0?z:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(V==="")return y===""?A1(n):new Date(NaN);var T={firstWeekContainsDate:B,weekStartsOn:S,locale:L},P=[new xO1],F=V.match(lA1).map(function(s1){var z1=s1[0];if(z1 in Mb){var m1=Mb[z1];return m1(s1,L.formatLong)}return s1}).join("").match(cA1),W=[],U=BI(F),Z;try{var I=function(){var z1=Z.value;!(a!=null&&a.useAdditionalWeekYearTokens)&&nY(z1)&&Sg(z1,V,t),!(a!=null&&a.useAdditionalDayOfYearTokens)&&eY(z1)&&Sg(z1,V,t);var m1=z1[0],S1=oA1[m1];if(S1){var I1=S1.incompatibleTokens;if(Array.isArray(I1)){var U1=W.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==="*"&&W.length>0)throw new RangeError("The format string mustn't contain `".concat(z1,"` and any other token at the same time"));W.push({token:m1,fullToken:z1});var P1=S1.run(y,z1,L.match,T);if(!P1)return{v:new Date(NaN)};P.push(P1.setter),y=P1.rest}else{if(m1.match(vA1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m1+"`");if(z1==="''"?z1="'":m1==="'"&&(z1=dA1(z1)),y.indexOf(z1)===0)y=y.slice(z1.length);else return{v:new Date(NaN)}}};for(U.s();!(Z=U.n()).done;){var t1=I();if(C2(t1)==="object")return t1.v}}catch(s1){U.e(s1)}finally{U.f()}if(y.length>0&&uA1.test(y))return new Date(NaN);var R=P.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 P.filter(function(z1){return z1.priority===s1}).sort(function(z1,m1){return m1.subPriority-z1.subPriority})}).map(function(s1){return s1[0]}),i1=A1(n);if(isNaN(i1.getTime()))return new Date(NaN);var J=v6(i1,Mn(i1)),A={},o1=BI(R),h1;try{for(o1.s();!(h1=o1.n()).done;){var n1=h1.value;if(!n1.validate(J,T))return new Date(NaN);var M1=n1.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 dA1(t){return t.match(sA1)[1].replace(hA1,"'")}function fA1(t,e,n){return g1(2,arguments),y5(_11(t,e,new Date,n))}function gA1(t){return g1(1,arguments),A1(t).getDay()===1}function pA1(t){return g1(1,arguments),A1(t).getTime()=a&&n<=r}function gM(t,e){g1(2,arguments);var n=Lt(e);return Vi(t,-n)}function TA1(t){return g1(1,arguments),Oh(t,gM(Date.now(),1))}function OA1(t){g1(1,arguments);var e=A1(t),n=e.getFullYear(),a=9+Math.floor(n/10)*10;return e.setFullYear(a+1,0,0),e.setHours(0,0,0,0),e}function N11(t,e){var n,a,r,o,c,l,h,s;g1(1,arguments);var u=Ye(),v=Lt((n=(a=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(c=e.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&a!==void 0?a:(h=u.locale)===null||h===void 0||(s=h.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var f=A1(t),d=f.getDay(),z=(d2)return e;if(/:/.test(n[0])?a=n[0]:(e.date=n[0],a=n[1],Dd.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Dd.timeZoneDelimiter)[0],a=t.substr(e.date.length,t.length))),a){var r=Dd.timezone.exec(a);r?(e.time=a.replace(r[1],""),e.timezone=r[1]):e.time=a}return e}function hk1(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),a=t.match(n);if(!a)return{year:NaN,restDateString:""};var r=a[1]?parseInt(a[1]):null,o=a[2]?parseInt(a[2]):null;return{year:o===null?r:o*100,restDateString:t.slice((a[1]||a[2]).length)}}function uk1(t,e){if(e===null)return new Date(NaN);var n=t.match(ok1);if(!n)return new Date(NaN);var a=!!n[4],r=i7(n[1]),o=i7(n[2])-1,c=i7(n[3]),l=i7(n[4]),h=i7(n[5])-1;if(a)return zk1(e,l,h)?fk1(e,l,h):new Date(NaN);var s=new Date(0);return!pk1(e,o,c)||!mk1(e,r)?new Date(NaN):(s.setUTCFullYear(e,o,Math.max(r,c)),s)}function i7(t){return t?parseInt(t):1}function vk1(t){var e=t.match(ck1);if(!e)return NaN;var n=pV(e[1]),a=pV(e[2]),r=pV(e[3]);return Mk1(n,a,r)?n*wc+a*Hc+r*1e3:NaN}function pV(t){return t&&parseFloat(t.replace(",","."))||0}function dk1(t){if(t==="Z")return 0;var e=t.match(lk1);if(!e)return 0;var n=e[1]==="+"?-1:1,a=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return Hk1(a,r)?n*(a*wc+r*Hc):NaN}function fk1(t,e,n){var a=new Date(0);a.setUTCFullYear(t,0,4);var r=a.getUTCDay()||7,o=(e-1)*7+n+1-r;return a.setUTCDate(a.getUTCDate()+o),a}var gk1=[31,null,31,30,31,30,31,31,30,31,30,31];function D11(t){return t%400===0||t%4===0&&t%100!==0}function pk1(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(gk1[e]||(D11(t)?29:28))}function mk1(t,e){return e>=1&&e<=(D11(t)?366:365)}function zk1(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function Mk1(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Hk1(t,e){return e>=0&&e<=59}function wk1(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 n=fM(t)-e;return n<=0&&(n+=7),gM(t,n)}function yk1(t){return g1(1,arguments),ko(t,5)}function xk1(t){return g1(1,arguments),ko(t,1)}function Vk1(t){return g1(1,arguments),ko(t,6)}function Ck1(t){return g1(1,arguments),ko(t,0)}function bk1(t){return g1(1,arguments),ko(t,4)}function Lk1(t){return g1(1,arguments),ko(t,2)}function Bk1(t){return g1(1,arguments),ko(t,3)}function _k1(t){return g1(1,arguments),Math.floor(t*ST)}function Sk1(t){g1(1,arguments);var e=t/OT;return Math.floor(e)}function Tk1(t,e){var n;if(arguments.length<1)throw new TypeError("1 argument required, but only none provided present");var a=Lt((n=e==null?void 0:e.nearestTo)!==null&&n!==void 0?n:1);if(a<1||a>30)throw new RangeError("`options.nearestTo` must be between 1 and 30");var r=A1(t),o=r.getSeconds(),c=r.getMinutes()+o/60,l=e9(e==null?void 0:e.roundingMethod),h=l(c/a)*a,s=c%a,u=Math.round(s/a)*a;return new Date(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),h+u)}function Ok1(t){g1(1,arguments);var e=t/Zh;return Math.floor(e)}function Ak1(t){return g1(1,arguments),t*cM}function kk1(t){g1(1,arguments);var e=t/lM;return Math.floor(e)}function FT(t,e){g1(2,arguments);var n=A1(t),a=Lt(e),r=n.getFullYear(),o=n.getDate(),c=new Date(0);c.setFullYear(r,a,15),c.setHours(0,0,0,0);var l=p11(c);return n.setMonth(a,Math.min(o,l)),n}function Ek1(t,e){if(g1(2,arguments),C2(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var n=A1(t);return isNaN(n.getTime())?new Date(NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=FT(n,e.month)),e.date!=null&&n.setDate(Lt(e.date)),e.hours!=null&&n.setHours(Lt(e.hours)),e.minutes!=null&&n.setMinutes(Lt(e.minutes)),e.seconds!=null&&n.setSeconds(Lt(e.seconds)),e.milliseconds!=null&&n.setMilliseconds(Lt(e.milliseconds)),n)}function Pk1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e);return n.setDate(a),n}function Nk1(t,e,n){var a,r,o,c,l,h,s,u;g1(2,arguments);var v=Ye(),f=Lt((a=(r=(o=(c=n==null?void 0:n.weekStartsOn)!==null&&c!==void 0?c:n==null||(l=n.locale)===null||l===void 0||(h=l.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&&a!==void 0?a:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=A1(t),z=Lt(e),g=d.getDay(),H=z%7,p=(H+7)%7,m=7-f,M=z<0||z>6?z-(g+m)%7:(p+m)%7-(g+m)%7;return Vi(d,M)}function Dk1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e);return n.setMonth(0),n.setDate(a),n}function ML(t){g1(1,arguments);var e={},n=Ye();for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]===void 0?delete e[r]:e[r]=t[r]);U71(e)}function Rk1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e);return n.setHours(a),n}function jk1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e),r=z11(n),o=a-r;return Vi(n,o)}function Ik1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e),r=M11(n)-a;return n.setDate(n.getDate()-r*7),n}function Fk1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e);return n.setMilliseconds(a),n}function $k1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e);return n.setMinutes(a),n}function Uk1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e),r=Math.floor(n.getMonth()/3)+1,o=a-r;return FT(n,n.getMonth()+o*3)}function Wk1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e);return n.setSeconds(a),n}function qk1(t,e,n){g1(2,arguments);var a=A1(t),r=Lt(e),o=y11(a,n)-r;return a.setDate(a.getDate()-o*7),a}function Gk1(t,e,n){var a,r,o,c,l,h,s,u;g1(2,arguments);var v=Ye(),f=Lt((a=(r=(o=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(l=n.locale)===null||l===void 0||(h=l.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&&a!==void 0?a:1),d=A1(t),z=Lt(e),g=wi(d,up(d,n)),H=new Date(0);return H.setFullYear(z,0,f),H.setHours(0,0,0,0),d=up(H,n),d.setDate(d.getDate()+g),d}function Kk1(t,e){g1(2,arguments);var n=A1(t),a=Lt(e);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(a),n)}function Yk1(t){g1(1,arguments);var e=A1(t),n=e.getFullYear(),a=Math.floor(n/10)*10;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}function Zk1(){return g6(Date.now())}function Qk1(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),a=t.getDate(),r=new Date(0);return r.setFullYear(e,n,a+1),r.setHours(0,0,0,0),r}function Xk1(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),a=t.getDate(),r=new Date(0);return r.setFullYear(e,n,a-1),r.setHours(0,0,0,0),r}function R11(t,e){g1(2,arguments);var n=Lt(e);return Yh(t,-n)}function Jk1(t,e){if(g1(2,arguments),!e||C2(e)!=="object")return new Date(NaN);var n=e.years?Lt(e.years):0,a=e.months?Lt(e.months):0,r=e.weeks?Lt(e.weeks):0,o=e.days?Lt(e.days):0,c=e.hours?Lt(e.hours):0,l=e.minutes?Lt(e.minutes):0,h=e.seconds?Lt(e.seconds):0,s=R11(t,a+n*12),u=gM(s,o+r*7),v=l+c*60,f=h+v*60,d=f*1e3,z=new Date(u.getTime()-d);return z}function tE1(t,e){g1(2,arguments);var n=Lt(e);return KJ(t,-n)}function eE1(t,e){g1(2,arguments);var n=Lt(e);return CT(t,-n)}function nE1(t,e){g1(2,arguments);var n=Lt(e);return bT(t,-n)}function aE1(t,e){g1(2,arguments);var n=Lt(e);return LT(t,-n)}function rE1(t,e){g1(2,arguments);var n=Lt(e);return QJ(t,-n)}function iE1(t,e){g1(2,arguments);var n=Lt(e);return oM(t,-n)}function oE1(t,e){g1(2,arguments);var n=Lt(e);return XJ(t,-n)}function cE1(t){return g1(1,arguments),Math.floor(t*BT)}function lE1(t){return g1(1,arguments),Math.floor(t*TT)}function sE1(t){return g1(1,arguments),Math.floor(t*OT)}const hE1=Object.freeze(Object.defineProperty({__proto__:null,add:M8,addBusinessDays:KJ,addDays:Vi,addHours:CT,addISOWeekYears:ZJ,addMilliseconds:Th,addMinutes:bT,addMonths:Yh,addQuarters:LT,addSeconds:QJ,addWeeks:oM,addYears:XJ,areIntervalsOverlapping:YS1,clamp:ZS1,closestIndexTo:QS1,closestTo:XS1,compareAsc:_r,compareDesc:JS1,daysInWeek:BT,daysInYear:e11,daysToWeeks:eT1,differenceInBusinessDays:nT1,differenceInCalendarDays:wi,differenceInCalendarISOWeekYears:i11,differenceInCalendarISOWeeks:rT1,differenceInCalendarMonths:cp,differenceInCalendarQuarters:Of,differenceInCalendarWeeks:lp,differenceInCalendarYears:ls,differenceInDays:hM,differenceInHours:Zs,differenceInISOWeekYears:cT1,differenceInMilliseconds:uM,differenceInMinutes:Qs,differenceInMonths:vM,differenceInQuarters:lT1,differenceInSeconds:jl,differenceInWeeks:sT1,differenceInYears:l11,eachDayOfInterval:s11,eachHourOfInterval:hT1,eachMinuteOfInterval:uT1,eachMonthOfInterval:vT1,eachQuarterOfInterval:dT1,eachWeekOfInterval:fT1,eachWeekendOfInterval:NT,eachWeekendOfMonth:gT1,eachWeekendOfYear:pT1,eachYearOfInterval:mT1,endOfDay:ET,endOfDecade:zT1,endOfHour:MT1,endOfISOWeek:HT1,endOfISOWeekYear:wT1,endOfMinute:yT1,endOfMonth:PT,endOfQuarter:xT1,endOfSecond:VT1,endOfToday:CT1,endOfTomorrow:bT1,endOfWeek:u11,endOfYear:h11,endOfYesterday:LT1,format:f6,formatDistance:d11,formatDistanceStrict:f11,formatDistanceToNow:ST1,formatDistanceToNowStrict:TT1,formatDuration:AT1,formatISO:kT1,formatISO9075:ET1,formatISODuration:PT1,formatRFC3339:NT1,formatRFC7231:jT1,formatRelative:IT1,fromUnixTime:FT1,getDate:g11,getDay:fM,getDayOfYear:$T1,getDaysInMonth:p11,getDaysInYear:UT1,getDecade:WT1,getDefaultOptions:qT1,getHours:GT1,getISODay:z11,getISOWeek:M11,getISOWeekYear:tc,getISOWeeksInYear:ZT1,getMilliseconds:QT1,getMinutes:XT1,getMonth:JT1,getOverlappingDaysInIntervals:eO1,getQuarter:pL,getSeconds:nO1,getTime:H11,getUnixTime:aO1,getWeek:y11,getWeekOfMonth:iO1,getWeekYear:w11,getWeeksInMonth:oO1,getYear:cO1,hoursToMilliseconds:lO1,hoursToMinutes:sO1,hoursToSeconds:hO1,intervalToDuration:uO1,intlFormat:vO1,intlFormatDistance:fO1,isAfter:V11,isBefore:gO1,isDate:YK,isEqual:pO1,isExists:mO1,isFirstDayOfMonth:zO1,isFriday:MO1,isFuture:HO1,isLastDayOfMonth:c11,isLeapYear:m11,isMatch:fA1,isMonday:gA1,isPast:pA1,isSameDay:Oh,isSameHour:S11,isSameISOWeek:T11,isSameISOWeekYear:mA1,isSameMinute:O11,isSameMonth:A11,isSameQuarter:k11,isSameSecond:E11,isSameWeek:IT,isSameYear:P11,isSaturday:GJ,isSunday:VT,isThisHour:zA1,isThisISOWeek:MA1,isThisMinute:HA1,isThisMonth:wA1,isThisQuarter:yA1,isThisSecond:xA1,isThisWeek:VA1,isThisYear:CA1,isThursday:bA1,isToday:lY,isTomorrow:LA1,isTuesday:BA1,isValid:y5,isWednesday:_A1,isWeekend:Rl,isWithinInterval:SA1,isYesterday:TA1,lastDayOfDecade:OA1,lastDayOfISOWeek:AA1,lastDayOfISOWeekYear:kA1,lastDayOfMonth:x11,lastDayOfQuarter:EA1,lastDayOfWeek:N11,lastDayOfYear:PA1,lightFormat:IA1,max:JJ,maxTime:n11,milliseconds:$A1,millisecondsInHour:wc,millisecondsInMinute:Hc,millisecondsInSecond:cM,millisecondsToHours:UA1,millisecondsToMinutes:WA1,millisecondsToSeconds:qA1,min:t11,minTime:tT1,minutesInHour:_T,minutesToHours:GA1,minutesToMilliseconds:KA1,minutesToSeconds:YA1,monthsInQuarter:ST,monthsInYear:TT,monthsToQuarters:ZA1,monthsToYears:QA1,nextDay:Ao,nextFriday:XA1,nextMonday:JA1,nextSaturday:tk1,nextSunday:ek1,nextThursday:nk1,nextTuesday:ak1,nextWednesday:rk1,parse:_11,parseISO:ik1,parseJSON:wk1,previousDay:ko,previousFriday:yk1,previousMonday:xk1,previousSaturday:Vk1,previousSunday:Ck1,previousThursday:bk1,previousTuesday:Lk1,previousWednesday:Bk1,quartersInYear:OT,quartersToMonths:_k1,quartersToYears:Sk1,roundToNearestMinutes:Tk1,secondsInDay:sM,secondsInHour:Zh,secondsInMinute:lM,secondsInMonth:kT,secondsInQuarter:r11,secondsInWeek:a11,secondsInYear:AT,secondsToHours:Ok1,secondsToMilliseconds:Ak1,secondsToMinutes:kk1,set:Ek1,setDate:Pk1,setDay:Nk1,setDayOfYear:Dk1,setDefaultOptions:ML,setHours:Rk1,setISODay:jk1,setISOWeek:Ik1,setISOWeekYear:YJ,setMilliseconds:Fk1,setMinutes:$k1,setMonth:FT,setQuarter:Uk1,setSeconds:Wk1,setWeek:qk1,setWeekYear:Gk1,setYear:Kk1,startOfDay:g6,startOfDecade:Yk1,startOfHour:mL,startOfISOWeek:_5,startOfISOWeekYear:po,startOfMinute:sp,startOfMonth:dM,startOfQuarter:Xs,startOfSecond:zL,startOfToday:Zk1,startOfTomorrow:Qk1,startOfWeek:Za,startOfWeekYear:up,startOfYear:DT,startOfYesterday:Xk1,sub:Jk1,subBusinessDays:tE1,subDays:gM,subHours:eE1,subISOWeekYears:o11,subMilliseconds:v6,subMinutes:nE1,subMonths:R11,subQuarters:aE1,subSeconds:rE1,subWeeks:iE1,subYears:oE1,toDate:A1,weeksToDays:cE1,yearsToMonths:lE1,yearsToQuarters:sE1},Symbol.toStringTag,{value:"Module"})),Xh=se(hE1);var SI;function uE1(){if(SI)return r7;SI=1;var t=b&&b.__assign||function(){return t=Object.assign||function(l){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?(_==null?void 0:_.id)===w.id:T[0]===w.id},[_==null?void 0:_.id,T,w.id]),J=(0,r.useMemo)(function(){return(T==null?void 0:T.includes(w.id))||(_==null?void 0:_.id)===w.id},[_==null?void 0:_.id,T,w.id]);return(0,a.jsxs)(s.StyledLessonItem,e({className:"lesson__item ".concat(W?"open":"closed"," ").concat(J&&!i1&&W?"full-border":""," ").concat(x?"":"bottom-border"," ").concat(P?"mobile":""),"aria-label":"".concat(y("Course.Lesson")," ").concat(z+1)},{children:[(0,a.jsx)(h.Header,{lesson:w,index:z,open:W,onClick:Z,onToggleClick:I,isSubLesson:x,isModuleFinished:R,isLessonActive:t1}),(0,a.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,a.jsx)(l.default,{clickable:C||!C&&W&&!L.includes(A.id),topic:A,index:o1+1},o1)})})),!!(!((g=w.lessons)===null||g===void 0)&&g.length)&&(0,a.jsx)("ul",e({className:"lesson__lessons"},{children:H}))]}))};t.CourseAgendaLesson=f,t.default=t.CourseAgendaLesson}(dV)),dV}var OI;function gE1(){return OI||(OI=1,function(t){var e=b&&b.__assign||function(){return e=Object.assign||function(c){for(var l,h=1,s=arguments.length;h0,index:M,lesson:d,isSubLesson:s>0},{children:(0,n.jsx)(t.RecursiveLessons,{lessons:(g=d.lessons)!==null&&g!==void 0?g:[],depth:s+1})}),d.id)})})};t.RecursiveLessons=o}(uV)),uV}var AI;function pE1(){return AI||(AI=1,function(t){var e=b&&b.__makeTemplateObject||function(p,m){return Object.defineProperty?Object.defineProperty(p,"raw",{value:m}):p.raw=m,p},n=b&&b.__assign||function(){return n=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]),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,a.jsxs)(s.StyledLessonItem,e({className:"lesson__item ".concat(W?"open":"closed"," ").concat(J&&!i1&&W?"full-border":""," ").concat(x?"":"bottom-border"," ").concat(P?"mobile":""),"aria-label":"".concat(y("Course.Lesson")," ").concat(M+1)},{children:[(0,a.jsx)(h.Header,{lesson:w,index:M,open:W,onClick:Z,onToggleClick:I,isSubLesson:x,isModuleFinished:R,isLessonActive:t1}),(0,a.jsx)("ul",e({className:"lesson__topics"},{children:((z=w==null?void 0:w.topics)!==null&&z!==void 0?z:[]).map(function(A,o1){return(0,a.jsx)(l.default,{clickable:C||!C&&W&&!L.includes(A.id),topic:A,index:o1+1},o1)})})),!!(!((g=w.lessons)===null||g===void 0)&&g.length)&&(0,a.jsx)("ul",e({className:"lesson__lessons"},{children:H}))]}))};t.CourseAgendaLesson=f,t.default=t.CourseAgendaLesson}(dV)),dV}var AI;function pE1(){return AI||(AI=1,function(t){var e=b&&b.__assign||function(){return e=Object.assign||function(c){for(var l,h=1,s=arguments.length;h0,index:z,lesson:d,isSubLesson:s>0},{children:(0,n.jsx)(t.RecursiveLessons,{lessons:(g=d.lessons)!==null&&g!==void 0?g:[],depth:s+1})}),d.id)})})};t.RecursiveLessons=o}(uV)),uV}var kI;function mE1(){return kI||(kI=1,function(t){var e=b&&b.__makeTemplateObject||function(p,m){return Object.defineProperty?Object.defineProperty(p,"raw",{value:m}):p.raw=m,p},n=b&&b.__assign||function(){return n=Object.assign||function(p){for(var m,M=1,w=arguments.length;M-1}function YE1(t,e){var n=this.__data__,a=mM(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}function $i(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=YP1}var ZP1="[object Arguments]",QP1="[object Array]",XP1="[object Boolean]",JP1="[object Date]",tN1="[object Error]",eN1="[object Function]",nN1="[object Map]",aN1="[object Number]",rN1="[object Object]",iN1="[object RegExp]",oN1="[object Set]",cN1="[object String]",lN1="[object WeakMap]",sN1="[object ArrayBuffer]",hN1="[object DataView]",uN1="[object Float32Array]",vN1="[object Float64Array]",dN1="[object Int8Array]",fN1="[object Int16Array]",gN1="[object Int32Array]",pN1="[object Uint8Array]",mN1="[object Uint8ClampedArray]",zN1="[object Uint16Array]",MN1="[object Uint32Array]",X0={};X0[uN1]=X0[vN1]=X0[dN1]=X0[fN1]=X0[gN1]=X0[pN1]=X0[mN1]=X0[zN1]=X0[MN1]=!0;X0[ZP1]=X0[QP1]=X0[sN1]=X0[XP1]=X0[hN1]=X0[JP1]=X0[tN1]=X0[eN1]=X0[nN1]=X0[aN1]=X0[rN1]=X0[iN1]=X0[oN1]=X0[cN1]=X0[lN1]=!1;function HN1(t){return y6(t)&&Y11(t.length)&&!!X0[w6(t)]}function UT(t){return function(e){return t(e)}}var Z11=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ss=Z11&&typeof module=="object"&&module&&!module.nodeType&&module,wN1=ss&&ss.exports===Z11,MV=wN1&&D11.process,wl=function(){try{var t=ss&&ss.require&&ss.require("util").types;return t||MV&&MV.binding&&MV.binding("util")}catch{}}(),$I=wl&&wl.isTypedArray,yN1=$I?UT($I):HN1,xN1=Object.prototype,VN1=xN1.hasOwnProperty;function Q11(t,e){var n=tu(t),a=!n&&FP1(t),r=!n&&!a&&K11(t),o=!n&&!a&&!r&&yN1(t),c=n||a||r||o,l=c?DP1(t.length,String):[],h=l.length;for(var s in t)(e||VN1.call(t,s))&&!(c&&(s=="length"||r&&(s=="offset"||s=="parent")||o&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||KP1(s,h)))&&l.push(s);return l}var CN1=Object.prototype;function WT(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||CN1;return t===n}var bN1=j11(Object.keys,Object),LN1=Object.prototype,BN1=LN1.hasOwnProperty;function SN1(t){if(!WT(t))return bN1(t);var e=[];for(var n in Object(t))BN1.call(t,n)&&n!="constructor"&&e.push(n);return e}function X11(t){return t!=null&&Y11(t.length)&&!$11(t)}function qT(t){return X11(t)?Q11(t):SN1(t)}function _N1(t,e){return t&&MM(e,qT(e),t)}function TN1(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var ON1=Object.prototype,AN1=ON1.hasOwnProperty;function kN1(t){if(!Jh(t))return TN1(t);var e=WT(t),n=[];for(var a in t)a=="constructor"&&(e||!AN1.call(t,a))||n.push(a);return n}function GT(t){return X11(t)?Q11(t,!0):kN1(t)}function EN1(t,e){return t&&MM(e,GT(e),t)}var J11=typeof exports=="object"&&exports&&!exports.nodeType&&exports,UI=J11&&typeof module=="object"&&module&&!module.nodeType&&module,PN1=UI&&UI.exports===J11,WI=PN1?T5.Buffer:void 0,qI=WI?WI.allocUnsafe:void 0;function NN1(t,e){if(e)return t.slice();var n=t.length,a=qI?qI(n):new t.constructor(n);return t.copy(a),a}function tt1(t,e){var n=-1,a=t.length;for(e||(e=Array(a));++n=0)&&(n[r]=t[r]);return n}function lF(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var eu=S.createContext(void 0);eu.displayName="FormikContext";var ut1=eu.Provider,vt1=eu.Consumer;function wM(){var t=S.useContext(eu);return t}var bL=function(e){return Array.isArray(e)&&e.length===0},$e=function(e){return typeof e=="function"},Ti=function(e){return e!==null&&typeof e=="object"},dt1=function(e){return String(Math.floor(Number(e)))===e},Af=function(e){return Object.prototype.toString.call(e)==="[object String]"},yR1=function(e){return e!==e},yM=function(e){return S.Children.count(e)===0},kf=function(e){return Ti(e)&&$e(e.then)},xR1=function(e){return e&&Ti(e)&&Ti(e.target)};function VR1(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,n,a){a===void 0&&(a=0);for(var r=ht1(e);t&&a=0?[]:{}}}return(o===0?t:r)[c[o]]===n?t:(n===void 0?delete r[c[o]]:r[c[o]]=n,o===0&&n===void 0&&delete a[c[o]],a)}function JT(t,e,n,a){n===void 0&&(n=new WeakMap),a===void 0&&(a={});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=_r(b1,q1[f1],X)),b1},{})})},[B]),T=S.useCallback(function(V1){return Promise.all([_(V1),f.validationSchema?L(V1):{},f.validate?C(V1):{}]).then(function(q1){var B1=q1[0],H1=q1[1],b1=q1[2],X=HL.all([B1,H1,b1],{arrayMerge:bR1});return X})},[f.validate,f.validationSchema,_,C,L]),P=Va(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})});S.useEffect(function(){c&&p.current===!0&&_3(d.current,f.initialValues)&&P(d.current)},[c,P]);var F=S.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]);S.useEffect(function(){p.current===!0&&!_3(d.current,f.initialValues)&&s&&(d.current=f.initialValues,F(),c&&P(d.current))},[s,f.initialValues,F,c,P]),S.useEffect(function(){s&&p.current===!0&&!_3(M.current,f.initialErrors)&&(M.current=f.initialErrors||n8,V({type:"SET_ERRORS",payload:f.initialErrors||n8}))},[s,f.initialErrors]),S.useEffect(function(){s&&p.current===!0&&!_3(g.current,f.initialTouched)&&(g.current=f.initialTouched||Rd,V({type:"SET_TOUCHED",payload:f.initialTouched||Rd}))},[s,f.initialTouched]),S.useEffect(function(){s&&p.current===!0&&!_3(H.current,f.initialStatus)&&(H.current=f.initialStatus,V({type:"SET_STATUS",payload:f.initialStatus}))},[s,f.initialStatus,f.initialTouched]);var W=Va(function(V1){if(m.current[V1]&&$e(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=S.useCallback(function(V1,q1){var B1=q1.validate;m.current[V1]={validate:B1}},[]),Z=S.useCallback(function(V1){delete m.current[V1]},[]),I=Va(function(V1,q1){V({type:"SET_TOUCHED",payload:V1});var B1=q1===void 0?r:q1;return B1?P(y.values):Promise.resolve()}),t1=S.useCallback(function(V1){V({type:"SET_ERRORS",payload:V1})},[]),R=Va(function(V1,q1){var B1=$e(V1)?V1(y.values):V1;V({type:"SET_VALUES",payload:B1});var H1=q1===void 0?n:q1;return H1?P(B1):Promise.resolve()}),i1=S.useCallback(function(V1,q1){V({type:"SET_FIELD_ERROR",payload:{field:V1,value:q1}})},[]),J=Va(function(V1,q1,B1){V({type:"SET_FIELD_VALUE",payload:{field:V1,value:q1}});var H1=B1===void 0?n:B1;return H1?P(_r(y.values,V1,q1)):Promise.resolve()}),A=S.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,E=X.checked,q=X.outerHTML,Y=X.options,c1=X.multiple;B1=q1||e1||G,H1=/number|range/.test(f1)?(b1=parseFloat(r1),isNaN(b1)?"":b1):/checkbox/.test(f1)?BR1($2(y.values,B1),E,r1):Y&&c1?LR1(Y):r1}B1&&J(B1,H1)},[J,y.values]),o1=Va(function(V1){if(Af(V1))return function(q1){return A(q1,V1)};A(V1)}),h1=Va(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?P(y.values):Promise.resolve()}),n1=S.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=Va(function(V1){if(Af(V1))return function(q1){return n1(q1,V1)};n1(V1)}),s1=S.useCallback(function(V1){$e(V1)?V({type:"SET_FORMIK_STATE",payload:V1}):V({type:"SET_FORMIK_STATE",payload:function(){return V1}})},[]),z1=S.useCallback(function(V1){V({type:"SET_STATUS",payload:V1})},[]),m1=S.useCallback(function(V1){V({type:"SET_ISSUBMITTING",payload:V1})},[]),_1=Va(function(){return V({type:"SUBMIT_ATTEMPT"}),P().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=Va(function(V1){V1&&V1.preventDefault&&$e(V1.preventDefault)&&V1.preventDefault(),V1&&V1.stopPropagation&&$e(V1.stopPropagation)&&V1.stopPropagation(),_1().catch(function(q1){console.warn("Warning: An unhandled error was caught from submitForm()",q1)})}),U1={resetForm:F,validateForm:P,validateField:W,setErrors:t1,setFieldError:i1,setFieldTouched:h1,setFieldValue:J,setStatus:z1,setSubmitting:m1,setTouched:I,setValues:R,setFormikState:s1,submitForm:_1},P1=Va(function(){return u(y.values,U1)}),G1=Va(function(V1){V1&&V1.preventDefault&&$e(V1.preventDefault)&&V1.preventDefault(),V1&&V1.stopPropagation&&$e(V1.stopPropagation)&&V1.stopPropagation(),F()}),at=S.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=S.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]),rt=S.useCallback(function(V1){var q1=Ti(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=S.useMemo(function(){return!_3(d.current,y.values)},[d.current,y.values]),et=S.useMemo(function(){return typeof l<"u"?tt?y.errors&&Object.keys(y.errors).length===0:l!==!1&&$e(l)?l(f):l:y.errors&&Object.keys(y.errors).length===0},[l,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:F,setErrors:t1,setFormikState:s1,setFieldTouched:h1,setFieldValue:J,setFieldError:i1,setStatus:z1,setSubmitting:m1,setTouched:I,setValues:R,submitForm:_1,validateForm:P,validateField:W,isValid:et,dirty:tt,unregisterField:Z,registerField:U,getFieldProps:rt,getFieldMeta:at,getFieldHelpers:X1,validateOnBlur:r,validateOnChange:n,validateOnMount:c});return vt}function gt1(t){var e=ft1(t),n=t.component,a=t.children,r=t.render,o=t.innerRef;return S.useImperativeHandle(o,function(){return e}),S.createElement(ut1,{value:e},n?S.createElement(n,e):r?r(e):a?$e(a)?a(e):yM(a)?null:S.Children.only(a):null)}function pt1(t){var e={};if(t.inner){if(t.inner.length===0)return _r(e,t.path,t.message);for(var r=t.inner,n=Array.isArray(r),a=0,r=n?r:r[Symbol.iterator]();;){var o;if(n){if(a>=r.length)break;o=r[a++]}else{if(a=r.next(),a.done)break;o=a.value}var c=o;$2(e,c.path)||(e=_r(e,c.path,c.message))}}return e}function mt1(t,e,n,a){n===void 0&&(n=!1);var r=fp(t);return e[n?"validateSync":"validate"](r,{abortEarly:!1,context:a||r})}function fp(t){var e=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var a=String(n);Array.isArray(t[a])===!0?e[a]=t[a].map(function(r){return Array.isArray(r)===!0||EI(r)?fp(r):r!==""?r:void 0}):EI(t[a])?e[a]=fp(t[a]):e[a]=t[a]!==""?t[a]:void 0}return e}function bR1(t,e,n){var a=t.slice();return e.forEach(function(o,c){if(typeof a[c]>"u"){var l=n.clone!==!1,h=l&&n.isMergeableObject(o);a[c]=h?HL(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?a[c]=HL(t[c],o,n):t.indexOf(o)===-1&&a.push(o)}),a}function LR1(t){return Array.from(t).filter(function(e){return e.selected}).map(function(e){return e.value})}function BR1(t,e,n){if(typeof t=="boolean")return!!e;var a=[],r=!1,o=-1;if(Array.isArray(t))a=t,o=t.indexOf(n),r=o>=0;else if(!n||n=="true"||n=="false")return!!e;return e&&n&&!r?a.concat(n):r?a.slice(0,o).concat(a.slice(o+1)):a}var SR1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?S.useLayoutEffect:S.useEffect;function Va(t){var e=S.useRef(t);return SR1(function(){e.current=t}),S.useCallback(function(){for(var n=arguments.length,a=new Array(n),r=0;ra?r:a},0);return Array.from(F2({},e,{length:n+1}))}else return[]},sF=function(e,n){var a=typeof e=="function"?e:n;return function(r){if(Array.isArray(r)||Ti(r)){var o=e6(r);return a(o)}return r}},yt1=function(t){HM(e,t);function e(a){var r;return r=t.call(this,a)||this,r.updateArrayField=function(o,c,l){var h=r.props,s=h.name,u=h.formik.setFormikState;u(function(v){var f=sF(l,o),d=sF(c,o),M=_r(v.values,s,o($2(v.values,s))),g=l?f($2(v.errors,s)):void 0,H=c?d($2(v.touched,s)):void 0;return bL(g)&&(g=void 0),bL(H)&&(H=void 0),F2({},v,{values:M,errors:l?_r(v.errors,s,g):v.errors,touched:c?_r(v.touched,s,H):v.touched})})},r.push=function(o){return r.updateArrayField(function(c){return[].concat(e6(c),[wR1(o)])},!1,!1)},r.handlePush=function(o){return function(){return r.push(o)}},r.swap=function(o,c){return r.updateArrayField(function(l){return Ht1(l,o,c)},!0,!0)},r.handleSwap=function(o,c){return function(){return r.swap(o,c)}},r.move=function(o,c){return r.updateArrayField(function(l){return Mt1(l,o,c)},!0,!0)},r.handleMove=function(o,c){return function(){return r.move(o,c)}},r.insert=function(o,c){return r.updateArrayField(function(l){return Ef(l,o,c)},function(l){return Ef(l,o,null)},function(l){return Ef(l,o,null)})},r.handleInsert=function(o,c){return function(){return r.insert(o,c)}},r.replace=function(o,c){return r.updateArrayField(function(l){return wt1(l,o,c)},!1,!1)},r.handleReplace=function(o,c){return function(){return r.replace(o,c)}},r.unshift=function(o){var c=-1;return r.updateArrayField(function(l){var h=l?[o].concat(l):[o];return c=h.length,h},function(l){return l?[null].concat(l):[null]},function(l){return l?[null].concat(l):[null]}),c},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(lF(r)),r.pop=r.pop.bind(lF(r)),r}var n=e.prototype;return n.componentDidUpdate=function(r){this.props.validateOnChange&&this.props.formik.validateOnChange&&!_3($2(r.formik.values,r.name),$2(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(r){var o;return this.updateArrayField(function(c){var l=c?e6(c):[];return o||(o=l[r]),$e(l.splice)&&l.splice(r,1),$e(l.every)&&l.every(function(h){return h===void 0})?[]:l},!0,!0),o},n.pop=function(){var r;return this.updateArrayField(function(o){var c=o.slice();return r||(r=c&&c.pop&&c.pop()),c},!0,!0),r},n.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,c=o.component,l=o.render,h=o.children,s=o.name,u=o.formik,v=Rn(u,["validate","validationSchema"]),f=F2({},r,{form:v,name:s});return c?S.createElement(c,f):l?l(f):h?typeof h=="function"?h(f):yM(h)?null:S.Children.only(h):null},e}(S.Component);yt1.defaultProps={validateOnChange:!0};var AR1=xM(yt1),kR1=function(t){HM(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.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},n.render=function(){var r=this.props,o=r.component,c=r.formik,l=r.render,h=r.children,s=r.name,u=Rn(r,["component","formik","render","children","name"]),v=$2(c.touched,s),f=$2(c.errors,s);return v&&f?l?$e(l)?l(f):null:h?$e(h)?h(f):null:o?S.createElement(o,u,f):f:null},e}(S.Component),ER1=xM(kR1),PR1=function(t){HM(e,t);function e(a){var r;r=t.call(this,a)||this;var o=a.render,c=a.children;return a.component,a.as,a.name,o&&c&&!yM(c)&&void 0,r}var n=e.prototype;return n.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},n.componentDidMount=function(){this.props.formik.registerField(this.props.name,{validate:this.props.validate})},n.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})},n.componentWillUnmount=function(){this.props.formik.unregisterField(this.props.name)},n.render=function(){var r=this.props,o=r.name,c=r.render,l=r.as,h=r.children,s=r.component,u=r.formik,v=Rn(r,["validate","name","render","as","children","component","shouldUpdate","formik"]),f=Rn(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(c)return c(g);if($e(h))return h(g);if(s){if(typeof s=="string"){var H=v.innerRef,p=Rn(v,["innerRef"]);return S.createElement(s,F2({ref:H},d,p),h)}return S.createElement(s,F2({field:d,form:u},v),h)}var m=l||"input";if(typeof m=="string"){var z=v.innerRef,w=Rn(v,["innerRef"]);return S.createElement(m,F2({ref:z},d,w),h)}return S.createElement(m,F2({},d,v),h)},e}(S.Component),NR1=xM(PR1);const DR1=Object.freeze(Object.defineProperty({__proto__:null,ErrorMessage:ER1,FastField:NR1,Field:TR1,FieldArray:AR1,Form:zt1,Formik:gt1,FormikConsumer:vt1,FormikContext:eu,FormikProvider:ut1,connect:xM,getActiveElement:VR1,getIn:$2,insert:Ef,isEmptyArray:bL,isEmptyChildren:yM,isFunction:$e,isInputEvent:xR1,isInteger:dt1,isNaN:yR1,isObject:Ti,isPromise:kf,isString:Af,move:Mt1,prepareDataForValidation:fp,replace:wt1,setIn:_r,setNestedObjectValues:JT,swap:Ht1,useField:_R1,useFormik:ft1,useFormikContext:wM,validateYupSchema:mt1,withFormik:OR1,yupToFormErrors:pt1},Symbol.toStringTag,{value:"Module"})),C6=se(DR1);var y4={},tO={},yl={},xt1={exports:{}};(function(t,e){(function(n,a){t.exports=a()})(b,function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a="ARRAYBUFFER not supported by this environment",r="UINT8ARRAY not supported by this environment";function o(e1,G,r1,E){var q,Y,c1,v1=G||[0],x1=(r1=r1||0)>>>3,N1=E===-1?3:0;for(q=0;q>>2,v1.length<=Y&&v1.push(0),v1[Y]|=e1[q]<<8*(N1+E*(c1%4));return{value:v1,binLen:8*e1.length+r1}}function c(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(E,q,Y){return function(c1,v1,x1,N1){var Z1,j1,C1,Vt;if(c1.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*c1.length+x1}}(E,q,Y,r1)};case"TEXT":return function(E,q,Y){return function(c1,v1,x1,N1,Z1){var j1,C1,Vt,Y1,Ct,ht,Gt,Ht,Ot=0,n2=x1||[0],u2=(N1=N1||0)>>>3;if(v1==="UTF8")for(Gt=Z1===-1?3:0,Vt=0;Vt(j1=c1.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&c1.charCodeAt(Vt)),C1.push(240|j1>>>18,128|j1>>>12&63,128|j1>>>6&63,128|63&j1)),Y1=0;Y1>>2;n2.length<=Ct;)n2.push(0);n2[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;n2.length<=Ct;)n2.push(0);n2[Ct]|=j1<<8*(Gt+Z1*(ht%4)),Ot+=2}return{value:n2,binLen:8*Ot+N1}}(E,G,q,Y,r1)};case"B64":return function(E,q,Y){return function(c1,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,n2=c1.indexOf("=");if(c1.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(c1=c1.replace(/=/g,""),n2!==-1&&n2=0)&&(n[r]=t[r]);return n}function sF(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 dt1=eu.Provider,ft1=eu.Consumer;function wM(){var t=_.useContext(eu);return t}var bL=function(e){return Array.isArray(e)&&e.length===0},$e=function(e){return typeof e=="function"},S5=function(e){return e!==null&&typeof e=="object"},gt1=function(e){return String(Math.floor(Number(e)))===e},Af=function(e){return Object.prototype.toString.call(e)==="[object String]"},xR1=function(e){return e!==e},yM=function(e){return _.Children.count(e)===0},kf=function(e){return S5(e)&&$e(e.then)},VR1=function(e){return e&&S5(e)&&S5(e.target)};function CR1(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,n,a){a===void 0&&(a=0);for(var r=vt1(e);t&&a=0?[]:{}}}return(o===0?t:r)[c[o]]===n?t:(n===void 0?delete r[c[o]]:r[c[o]]=n,o===0&&n===void 0&&delete a[c[o]],a)}function JT(t,e,n,a){n===void 0&&(n=new WeakMap),a===void 0&&(a={});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=HL.all([B1,H1,b1],{arrayMerge:LR1});return X})},[f.validate,f.validationSchema,S,C,L]),P=Va(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(){c&&p.current===!0&&S3(d.current,f.initialValues)&&P(d.current)},[c,P]);var F=_.useCallback(function(V1){var q1=V1&&V1.values?V1.values:d.current,B1=V1&&V1.errors?V1.errors:z.current?z.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,z.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,F(),c&&P(d.current))},[s,f.initialValues,F,c,P]),_.useEffect(function(){s&&p.current===!0&&!S3(z.current,f.initialErrors)&&(z.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 W=Va(function(V1){if(m.current[V1]&&$e(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}},[]),Z=_.useCallback(function(V1){delete m.current[V1]},[]),I=Va(function(V1,q1){V({type:"SET_TOUCHED",payload:V1});var B1=q1===void 0?r:q1;return B1?P(y.values):Promise.resolve()}),t1=_.useCallback(function(V1){V({type:"SET_ERRORS",payload:V1})},[]),R=Va(function(V1,q1){var B1=$e(V1)?V1(y.values):V1;V({type:"SET_VALUES",payload:B1});var H1=q1===void 0?n:q1;return H1?P(B1):Promise.resolve()}),i1=_.useCallback(function(V1,q1){V({type:"SET_FIELD_ERROR",payload:{field:V1,value:q1}})},[]),J=Va(function(V1,q1,B1){V({type:"SET_FIELD_VALUE",payload:{field:V1,value:q1}});var H1=B1===void 0?n:B1;return H1?P(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,E=X.checked,q=X.outerHTML,Y=X.options,c1=X.multiple;B1=q1||e1||G,H1=/number|range/.test(f1)?(b1=parseFloat(r1),isNaN(b1)?"":b1):/checkbox/.test(f1)?_R1($2(y.values,B1),E,r1):Y&&c1?BR1(Y):r1}B1&&J(B1,H1)},[J,y.values]),o1=Va(function(V1){if(Af(V1))return function(q1){return A(q1,V1)};A(V1)}),h1=Va(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?P(y.values):Promise.resolve()}),n1=_.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=Va(function(V1){if(Af(V1))return function(q1){return n1(q1,V1)};n1(V1)}),s1=_.useCallback(function(V1){$e(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=Va(function(){return V({type:"SUBMIT_ATTEMPT"}),P().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=Va(function(V1){V1&&V1.preventDefault&&$e(V1.preventDefault)&&V1.preventDefault(),V1&&V1.stopPropagation&&$e(V1.stopPropagation)&&V1.stopPropagation(),S1().catch(function(q1){console.warn("Warning: An unhandled error was caught from submitForm()",q1)})}),U1={resetForm:F,validateForm:P,validateField:W,setErrors:t1,setFieldError:i1,setFieldTouched:h1,setFieldValue:J,setStatus:z1,setSubmitting:m1,setTouched:I,setValues:R,setFormikState:s1,submitForm:S1},P1=Va(function(){return u(y.values,U1)}),G1=Va(function(V1){V1&&V1.preventDefault&&$e(V1.preventDefault)&&V1.preventDefault(),V1&&V1.stopPropagation&&$e(V1.stopPropagation)&&V1.stopPropagation(),F()}),at=_.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(z.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]),rt=_.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 l<"u"?tt?y.errors&&Object.keys(y.errors).length===0:l!==!1&&$e(l)?l(f):l:y.errors&&Object.keys(y.errors).length===0},[l,tt,y.errors,f]),vt=F2({},y,{initialValues:d.current,initialErrors:z.current,initialTouched:g.current,initialStatus:H.current,handleBlur:M1,handleChange:o1,handleReset:G1,handleSubmit:I1,resetForm:F,setErrors:t1,setFormikState:s1,setFieldTouched:h1,setFieldValue:J,setFieldError:i1,setStatus:z1,setSubmitting:m1,setTouched:I,setValues:R,submitForm:S1,validateForm:P,validateField:W,isValid:et,dirty:tt,unregisterField:Z,registerField:U,getFieldProps:rt,getFieldMeta:at,getFieldHelpers:X1,validateOnBlur:r,validateOnChange:n,validateOnMount:c});return vt}function mt1(t){var e=pt1(t),n=t.component,a=t.children,r=t.render,o=t.innerRef;return _.useImperativeHandle(o,function(){return e}),_.createElement(dt1,{value:e},n?_.createElement(n,e):r?r(e):a?$e(a)?a(e):yM(a)?null:_.Children.only(a):null)}function zt1(t){var e={};if(t.inner){if(t.inner.length===0)return Sr(e,t.path,t.message);for(var r=t.inner,n=Array.isArray(r),a=0,r=n?r:r[Symbol.iterator]();;){var o;if(n){if(a>=r.length)break;o=r[a++]}else{if(a=r.next(),a.done)break;o=a.value}var c=o;$2(e,c.path)||(e=Sr(e,c.path,c.message))}}return e}function Mt1(t,e,n,a){n===void 0&&(n=!1);var r=fp(t);return e[n?"validateSync":"validate"](r,{abortEarly:!1,context:a||r})}function fp(t){var e=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var a=String(n);Array.isArray(t[a])===!0?e[a]=t[a].map(function(r){return Array.isArray(r)===!0||PI(r)?fp(r):r!==""?r:void 0}):PI(t[a])?e[a]=fp(t[a]):e[a]=t[a]!==""?t[a]:void 0}return e}function LR1(t,e,n){var a=t.slice();return e.forEach(function(o,c){if(typeof a[c]>"u"){var l=n.clone!==!1,h=l&&n.isMergeableObject(o);a[c]=h?HL(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?a[c]=HL(t[c],o,n):t.indexOf(o)===-1&&a.push(o)}),a}function BR1(t){return Array.from(t).filter(function(e){return e.selected}).map(function(e){return e.value})}function _R1(t,e,n){if(typeof t=="boolean")return!!e;var a=[],r=!1,o=-1;if(Array.isArray(t))a=t,o=t.indexOf(n),r=o>=0;else if(!n||n=="true"||n=="false")return!!e;return e&&n&&!r?a.concat(n):r?a.slice(0,o).concat(a.slice(o+1)):a}var SR1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?_.useLayoutEffect:_.useEffect;function Va(t){var e=_.useRef(t);return SR1(function(){e.current=t}),_.useCallback(function(){for(var n=arguments.length,a=new Array(n),r=0;ra?r:a},0);return Array.from(F2({},e,{length:n+1}))}else return[]},hF=function(e,n){var a=typeof e=="function"?e:n;return function(r){if(Array.isArray(r)||S5(r)){var o=nc(r);return a(o)}return r}},Vt1=function(t){HM(e,t);function e(a){var r;return r=t.call(this,a)||this,r.updateArrayField=function(o,c,l){var h=r.props,s=h.name,u=h.formik.setFormikState;u(function(v){var f=hF(l,o),d=hF(c,o),z=Sr(v.values,s,o($2(v.values,s))),g=l?f($2(v.errors,s)):void 0,H=c?d($2(v.touched,s)):void 0;return bL(g)&&(g=void 0),bL(H)&&(H=void 0),F2({},v,{values:z,errors:l?Sr(v.errors,s,g):v.errors,touched:c?Sr(v.touched,s,H):v.touched})})},r.push=function(o){return r.updateArrayField(function(c){return[].concat(nc(c),[yR1(o)])},!1,!1)},r.handlePush=function(o){return function(){return r.push(o)}},r.swap=function(o,c){return r.updateArrayField(function(l){return yt1(l,o,c)},!0,!0)},r.handleSwap=function(o,c){return function(){return r.swap(o,c)}},r.move=function(o,c){return r.updateArrayField(function(l){return wt1(l,o,c)},!0,!0)},r.handleMove=function(o,c){return function(){return r.move(o,c)}},r.insert=function(o,c){return r.updateArrayField(function(l){return Ef(l,o,c)},function(l){return Ef(l,o,null)},function(l){return Ef(l,o,null)})},r.handleInsert=function(o,c){return function(){return r.insert(o,c)}},r.replace=function(o,c){return r.updateArrayField(function(l){return xt1(l,o,c)},!1,!1)},r.handleReplace=function(o,c){return function(){return r.replace(o,c)}},r.unshift=function(o){var c=-1;return r.updateArrayField(function(l){var h=l?[o].concat(l):[o];return c=h.length,h},function(l){return l?[null].concat(l):[null]},function(l){return l?[null].concat(l):[null]}),c},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(sF(r)),r.pop=r.pop.bind(sF(r)),r}var n=e.prototype;return n.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)},n.remove=function(r){var o;return this.updateArrayField(function(c){var l=c?nc(c):[];return o||(o=l[r]),$e(l.splice)&&l.splice(r,1),$e(l.every)&&l.every(function(h){return h===void 0})?[]:l},!0,!0),o},n.pop=function(){var r;return this.updateArrayField(function(o){var c=o.slice();return r||(r=c&&c.pop&&c.pop()),c},!0,!0),r},n.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,c=o.component,l=o.render,h=o.children,s=o.name,u=o.formik,v=Rn(u,["validate","validationSchema"]),f=F2({},r,{form:v,name:s});return c?_.createElement(c,f):l?l(f):h?typeof h=="function"?h(f):yM(h)?null:_.Children.only(h):null},e}(_.Component);Vt1.defaultProps={validateOnChange:!0};var kR1=xM(Vt1),ER1=function(t){HM(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.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},n.render=function(){var r=this.props,o=r.component,c=r.formik,l=r.render,h=r.children,s=r.name,u=Rn(r,["component","formik","render","children","name"]),v=$2(c.touched,s),f=$2(c.errors,s);return v&&f?l?$e(l)?l(f):null:h?$e(h)?h(f):null:o?_.createElement(o,u,f):f:null},e}(_.Component),PR1=xM(ER1),NR1=function(t){HM(e,t);function e(a){var r;r=t.call(this,a)||this;var o=a.render,c=a.children;return a.component,a.as,a.name,o&&c&&!yM(c)&&void 0,r}var n=e.prototype;return n.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},n.componentDidMount=function(){this.props.formik.registerField(this.props.name,{validate:this.props.validate})},n.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})},n.componentWillUnmount=function(){this.props.formik.unregisterField(this.props.name)},n.render=function(){var r=this.props,o=r.name,c=r.render,l=r.as,h=r.children,s=r.component,u=r.formik,v=Rn(r,["validate","name","render","as","children","component","shouldUpdate","formik"]),f=Rn(u,["validate","validationSchema"]),d=u.getFieldProps(F2({name:o},v)),z={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:z,form:f};if(c)return c(g);if($e(h))return h(g);if(s){if(typeof s=="string"){var H=v.innerRef,p=Rn(v,["innerRef"]);return _.createElement(s,F2({ref:H},d,p),h)}return _.createElement(s,F2({field:d,form:u},v),h)}var m=l||"input";if(typeof m=="string"){var M=v.innerRef,w=Rn(v,["innerRef"]);return _.createElement(m,F2({ref:M},d,w),h)}return _.createElement(m,F2({},d,v),h)},e}(_.Component),DR1=xM(NR1);const RR1=Object.freeze(Object.defineProperty({__proto__:null,ErrorMessage:PR1,FastField:DR1,Field:OR1,FieldArray:kR1,Form:Ht1,Formik:mt1,FormikConsumer:ft1,FormikContext:eu,FormikProvider:dt1,connect:xM,getActiveElement:CR1,getIn:$2,insert:Ef,isEmptyArray:bL,isEmptyChildren:yM,isFunction:$e,isInputEvent:VR1,isInteger:gt1,isNaN:xR1,isObject:S5,isPromise:kf,isString:Af,move:wt1,prepareDataForValidation:fp,replace:xt1,setIn:Sr,setNestedObjectValues:JT,swap:yt1,useField:TR1,useFormik:pt1,useFormikContext:wM,validateYupSchema:Mt1,withFormik:AR1,yupToFormErrors:zt1},Symbol.toStringTag,{value:"Module"})),bc=se(RR1);var y4={},tO={},y6={},Ct1={exports:{}};(function(t,e){(function(n,a){t.exports=a()})(b,function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a="ARRAYBUFFER not supported by this environment",r="UINT8ARRAY not supported by this environment";function o(e1,G,r1,E){var q,Y,c1,v1=G||[0],x1=(r1=r1||0)>>>3,N1=E===-1?3:0;for(q=0;q>>2,v1.length<=Y&&v1.push(0),v1[Y]|=e1[q]<<8*(N1+E*(c1%4));return{value:v1,binLen:8*e1.length+r1}}function c(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(E,q,Y){return function(c1,v1,x1,N1){var Z1,j1,C1,Vt;if(c1.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*c1.length+x1}}(E,q,Y,r1)};case"TEXT":return function(E,q,Y){return function(c1,v1,x1,N1,Z1){var j1,C1,Vt,Y1,Ct,ht,Gt,Ht,Ot=0,n2=x1||[0],u2=(N1=N1||0)>>>3;if(v1==="UTF8")for(Gt=Z1===-1?3:0,Vt=0;Vt(j1=c1.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&c1.charCodeAt(Vt)),C1.push(240|j1>>>18,128|j1>>>12&63,128|j1>>>6&63,128|63&j1)),Y1=0;Y1>>2;n2.length<=Ct;)n2.push(0);n2[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;n2.length<=Ct;)n2.push(0);n2[Ct]|=j1<<8*(Gt+Z1*(ht%4)),Ot+=2}return{value:n2,binLen:8*Ot+N1}}(E,G,q,Y,r1)};case"B64":return function(E,q,Y){return function(c1,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,n2=c1.indexOf("=");if(c1.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(c1=c1.replace(/=/g,""),n2!==-1&&n21&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(f,d){for(var M=r21(v?v.pos:"0",d),g=ru(f[o],M),H,p=0;p1&&arguments[1]!==void 0?arguments[1]:{},n=e.initWrapper,a=e.processEntity,r=e.onProcessFinished,o=e.externalGetKey,c=e.childrenPropName,l=e.fieldNames,h=arguments.length>2?arguments[2]:void 0,s=o||h,u={},v={},f={posEntities:u,keyEntities:v};return n&&(f=n(f)||f),_A2(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)),a&&a(x,f)},{externalGetKey:s,childrenPropName:c,fieldNames:l}),r&&r(f),f}function vs(t,e){var n=e.expandedKeys,a=e.selectedKeys,r=e.loadedKeys,o=e.loadingKeys,c=e.checkedKeys,l=e.halfCheckedKeys,h=e.dragOverNodeKey,s=e.dropPosition,u=e.keyEntities,v=ta(u,t),f={eventKey:t,expanded:n.indexOf(t)!==-1,selected:a.indexOf(t)!==-1,loaded:r.indexOf(t)!==-1,loading:o.indexOf(t)!==-1,checked:c.indexOf(t)!==-1,halfChecked:l.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 Ue(t){var e=t.data,n=t.expanded,a=t.selected,r=t.checked,o=t.loaded,c=t.loading,l=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:n,selected:a,checked:r,loaded:o,loading:c,halfChecked:l,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 TA2(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}function OA2(t){var e=t||{},n=e.label,a=e.value,r=e.children,o=a||"value";return{_title:n?[n]:["title","label"],value:o,key:o,children:r||"children"}}function EL(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1}function AA2(t,e){var n=[];function a(r){r.forEach(function(o){var c=o[e.children];c&&(n.push(o[e.value]),a(c))})}return a(t),n}function WF(t){return t==null}const kA2=function(t,e){return S.useMemo(function(){var n=i21(t,{fieldNames:e,initWrapper:function(r){return Q1(Q1({},r),{},{valueEntities:new Map})},processEntity:function(r,o){var c=r.node[e.value];o.valueEntities.set(c,r)}});return n},[t,e])};var oO=function(){return null},EA2=["children","value"];function o21(t){return Vl(t).map(function(e){if(!S.isValidElement(e)||!e.type)return null;var n=e,a=n.key,r=n.props,o=r.children,c=r.value,l=d0(r,EA2),h=Q1({key:a,value:c},l),s=o21(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 PA2(t,e,n,a,r,o){var c=null,l=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=n.includes(H),m=s(d[o.children]||[],g,p),z=S.createElement(oO,d,m.map(function(x){return x.node}));if(e===H&&(c=z),p){var w={pos:g,node:z,children:m};return f||l.push(w),w}return null}).filter(function(d){return d})}l||(l=[],s(a),l.sort(function(u,v){var f=u.node.props.value,d=v.node.props.value,M=n.indexOf(f),g=n.indexOf(d);return M-g}))}Object.defineProperty(t,"triggerNode",{get:function(){return Y4(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),h(),c}}),Object.defineProperty(t,"allCheckedNodes",{get:function(){return Y4(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),h(),r?l:l.map(function(u){var v=u.node;return v})}})}const NA2=function(t,e,n){var a=n.treeNodeFilterProp,r=n.filterTreeNode,o=n.fieldNames,c=o.children;return S.useMemo(function(){if(!e||r===!1)return t;var l;if(typeof r=="function")l=r;else{var h=e.toUpperCase();l=function(v,f){var d=f[a];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[c],g=v||l(e,PL(d)),H=s(M||[],g);return(g||H.length)&&f.push(Q1(Q1({},d),{},u1({isLeaf:void 0},c,H))),f},[])}return s(t)},[t,e,c,a,r])};function qF(t){var e=S.useRef();e.current=t;var n=S.useCallback(function(){return e.current.apply(e,arguments)},[]);return n}function DA2(t,e){var n=e.id,a=e.pId,r=e.rootPId,o={},c=[],l=t.map(function(h){var s=Q1({},h),u=s[n];return o[u]=s,s.key=s.key||u,s});return l.forEach(function(h){var s=h[a],u=o[s];u&&(u.children=u.children||[],u.children.push(h)),(s===r||!u&&r===null)&&c.push(h)}),c}function RA2(t,e,n){return S.useMemo(function(){return t?n?DA2(t,Q1({id:"id",pId:"pId",rootPId:null},n!==!0?n:{})):t:o21(e)},[e,n,t])}var c21=S.createContext(null),cO=S.createContext(null);function jA2(t){var e=t.dropPosition,n=t.dropLevelOffset,a=t.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(e){case-1:r.top=0,r.left=-n*a;break;case 1:r.bottom=0,r.left=-n*a;break;case 0:r.bottom=0,r.left=a;break}return S.createElement("div",{style:r})}function l21(t){if(t==null)throw new TypeError("Cannot destructure "+t)}var IA2=function(e){for(var n=e.prefixCls,a=e.level,r=e.isStart,o=e.isEnd,c="".concat(n,"-indent-unit"),l=[],h=0;h0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.length,a=e.length;if(Math.abs(n-a)!==1)return{add:!1,key:null};function r(o,c){var l=new Map;o.forEach(function(s){l.set(s,!0)});var h=c.filter(function(s){return!l.has(s)});return h.length===1?h[0]:null}return n ").concat(e);return e}var u21=S.forwardRef(function(t,e){var n=t.prefixCls,a=t.data;t.selectable,t.checkable;var r=t.expandedKeys,o=t.selectedKeys,c=t.checkedKeys,l=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,_=t.onListChangeStart,T=t.onListChangeEnd,P=d0(t,ZA2),F=S.useRef(null),W=S.useRef(null);S.useImperativeHandle(e,function(){return{scrollTo:function(vt){F.current.scrollTo(vt)},getIndentWidth:function(){return W.current.offsetWidth}}});var U=S.useState(r),Z=it(U,2),I=Z[0],t1=Z[1],R=S.useState(a),i1=it(R,2),J=i1[0],A=i1[1],o1=S.useState(a),h1=it(o1,2),n1=h1[0],M1=h1[1],s1=S.useState([]),z1=it(s1,2),m1=z1[0],_1=z1[1],I1=S.useState(null),U1=it(I1,2),P1=U1[0],G1=U1[1],at=S.useRef(a);at.current=a;function X1(){var et=at.current;A(et),M1(et),_1([]),G1(null),T()}te(function(){t1(r);var et=YA2(I,r);if(et.key!==null)if(et.add){var vt=J.findIndex(function(X){var f1=X.key;return f1===et.key}),V1=XF(YF(J,a,et.key),m,H,p),q1=J.slice();q1.splice(vt+1,0,QF),M1(q1),_1(V1),G1("show")}else{var B1=a.findIndex(function(X){var f1=X.key;return f1===et.key}),H1=XF(YF(a,J,et.key),m,H,p),b1=a.slice();b1.splice(B1+1,0,QF),M1(b1),_1(H1),G1("hide")}else J!==a&&(A(a),M1(a))},[r,a]),S.useEffect(function(){f||X1()},[f]);var rt=g?n1:a,tt={expandedKeys:r,selectedKeys:o,loadedKeys:l,loadingKeys:h,checkedKeys:c,halfCheckedKeys:s,dragOverNodeKey:d,dropPosition:M,keyEntities:u};return S.createElement(S.Fragment,null,x&&w&&S.createElement("span",{style:ZF,"aria-live":"assertive"},XA2(w)),S.createElement("div",null,S.createElement("input",{style:ZF,disabled:z===!1||v,tabIndex:z!==!1?y:null,onKeyDown:V,onFocus:C,onBlur:L,value:"",onChange:QA2,"aria-label":"for screen reader"})),S.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},S.createElement("div",{className:"".concat(n,"-indent")},S.createElement("div",{ref:W,className:"".concat(n,"-indent-unit")}))),S.createElement(iO,Zt({},P,{data:rt,itemKey:JF,height:H,fullHeight:!1,virtual:m,itemHeight:p,prefixCls:"".concat(n,"-list"),ref:F,onVisibleChange:function(vt,V1){var q1=new Set(vt),B1=V1.filter(function(H1){return!q1.has(H1)});B1.some(function(H1){return JF(H1)===n6})&&X1()}}),function(et){var vt=et.pos,V1=Object.assign({},(l21(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 S.createElement(KA2,Zt({},V1,f1,{title:q1,active:!!w&&B1===w.key,pos:vt,data:et.data,isStart:H1,isEnd:b1,motion:g,motionNodes:B1===n6?m1:null,motionType:P1,onMotionStart:_,onMotionEnd:X1,treeNodeRequiredProps:tt,onMouseMove:function(){B(null)}}))}))});u21.displayName="NodeList";function J5(t,e){if(!t)return[];var n=t.slice(),a=n.indexOf(e);return a>=0&&n.splice(a,1),n}function M3(t,e){var n=(t||[]).slice();return n.indexOf(e)===-1&&n.push(e),n}function lO(t){return t.split("-")}function JA2(t,e){var n=[],a=ta(e,t);function r(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(c){var l=c.key,h=c.children;n.push(l),r(h)})}return r(a.children),n}function tk2(t){if(t.parent){var e=lO(t.pos);return Number(e[e.length-1])===t.parent.children.length-1}return!1}function ek2(t){var e=lO(t.pos);return Number(e[e.length-1])===0}function t$(t,e,n,a,r,o,c,l,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)/a,m=h.filter(function(U){var Z;return(Z=l[U])===null||Z===void 0||(Z=Z.children)===null||Z===void 0?void 0:Z.length}),z=ta(l,n.props.eventKey);if(f-1.5?o({dragNode:P,dropNode:F,dropPosition:1})?B=1:W=!1:o({dragNode:P,dropNode:F,dropPosition:0})?B=0:o({dragNode:P,dropNode:F,dropPosition:1})?B=1:W=!1:o({dragNode:P,dropNode:F,dropPosition:1})?B=1:W=!1,{dropPosition:B,dropLevelOffset:_,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:W}}function e$(t,e){if(t){var n=e.multiple;return n?t.slice():t.length?[t[0]]:t}}function bV(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 n$(t,e){var n=new Set;function a(r){if(!n.has(r)){var o=ta(e,r);if(o){n.add(r);var c=o.parent,l=o.node;l.disabled||c&&a(c.key)}}}return(t||[]).forEach(function(r){a(r)}),i0(n)}var nk2=10,sO=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c2&&arguments[2]!==void 0?arguments[2]:!1,v=a.state,f=v.dragChildrenKeys,d=v.dropPosition,M=v.dropTargetKey,g=v.dropTargetPos,H=v.dropAllowed;if(H){var p=a.props.onDrop;if(a.setState({dragOverNodeKey:null}),a.cleanDragState(),M!==null){var m=Q1(Q1({},vs(M,a.getTreeNodeRequiredProps())),{},{active:((s=a.getActiveItem())===null||s===void 0?void 0:s.key)===M,data:ta(a.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=lO(g),x={event:l,node:Ue(m),dragNode:a.dragNode?Ue(a.dragNode.props):null,dragNodesKeys:[a.dragNode.props.eventKey].concat(f),dropToGap:d!==0,dropPosition:d+Number(w[w.length-1])};u||p==null||p(x),a.dragNode=null}}}),u1(D1(a),"cleanDragState",function(){var l=a.state.draggingNodeKey;l!==null&&a.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),a.dragStartMousePosition=null,a.currentMouseOverDroppableNodeKey=null}),u1(D1(a),"triggerExpandActionExpand",function(l,h){var s=a.state,u=s.expandedKeys,v=s.flattenNodes,f=h.expanded,d=h.key,M=h.isLeaf;if(!(M||l.shiftKey||l.metaKey||l.ctrlKey)){var g=v.filter(function(p){return p.key===d})[0],H=Ue(Q1(Q1({},vs(d,a.getTreeNodeRequiredProps())),{},{data:g.data}));a.setExpandedKeys(f?J5(u,d):M3(u,d)),a.onNodeExpand(l,H)}}),u1(D1(a),"onNodeClick",function(l,h){var s=a.props,u=s.onClick,v=s.expandAction;v==="click"&&a.triggerExpandActionExpand(l,h),u==null||u(l,h)}),u1(D1(a),"onNodeDoubleClick",function(l,h){var s=a.props,u=s.onDoubleClick,v=s.expandAction;v==="doubleClick"&&a.triggerExpandActionExpand(l,h),u==null||u(l,h)}),u1(D1(a),"onNodeSelect",function(l,h){var s=a.state.selectedKeys,u=a.state,v=u.keyEntities,f=u.fieldNames,d=a.props,M=d.onSelect,g=d.multiple,H=h.selected,p=h[f.key],m=!H;m?g?s=M3(s,p):s=[p]:s=J5(s,p);var z=s.map(function(w){var x=ta(v,w);return x?x.node:null}).filter(function(w){return w});a.setUncontrolledState({selectedKeys:s}),M==null||M(s,{event:"select",selected:m,node:h,selectedNodes:z,nativeEvent:l.nativeEvent})}),u1(D1(a),"onNodeCheck",function(l,h,s){var u=a.state,v=u.keyEntities,f=u.checkedKeys,d=u.halfCheckedKeys,M=a.props,g=M.checkStrictly,H=M.onCheck,p=h.key,m,z={event:"check",node:h,checked:s,nativeEvent:l.nativeEvent};if(g){var w=s?M3(f,p):J5(f,p),x=J5(d,p);m={checked:w,halfChecked:x},z.checkedNodes=w.map(function(_){return ta(v,_)}).filter(function(_){return _}).map(function(_){return _.node}),a.setUncontrolledState({checkedKeys:w})}else{var y=Ic([].concat(i0(f),[p]),!0,v),V=y.checkedKeys,C=y.halfCheckedKeys;if(!s){var L=new Set(V);L.delete(p);var B=Ic(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(_){var T=ta(v,_);if(T){var P=T.node,F=T.pos;z.checkedNodes.push(P),z.checkedNodesPositions.push({node:P,pos:F})}}),a.setUncontrolledState({checkedKeys:V},!1,{halfCheckedKeys:C})}H==null||H(m,z)}),u1(D1(a),"onNodeLoad",function(l){var h=l.key,s=new Promise(function(u,v){a.setState(function(f){var d=f.loadedKeys,M=d===void 0?[]:d,g=f.loadingKeys,H=g===void 0?[]:g,p=a.props,m=p.loadData,z=p.onLoad;if(!m||M.indexOf(h)!==-1||H.indexOf(h)!==-1)return null;var w=m(l);return w.then(function(){var x=a.state.loadedKeys,y=M3(x,h);z==null||z(y,{event:"load",node:l}),a.setUncontrolledState({loadedKeys:y}),a.setState(function(V){return{loadingKeys:J5(V.loadingKeys,h)}}),u()}).catch(function(x){if(a.setState(function(V){return{loadingKeys:J5(V.loadingKeys,h)}}),a.loadingRetryTimes[h]=(a.loadingRetryTimes[h]||0)+1,a.loadingRetryTimes[h]>=nk2){var y=a.state.loadedKeys;Y4(!1,"Retry for `loadData` many times but still failed. No more retry."),a.setUncontrolledState({loadedKeys:M3(y,h)}),u()}v(x)}),{loadingKeys:M3(H,h)}})});return s.catch(function(){}),s}),u1(D1(a),"onNodeMouseEnter",function(l,h){var s=a.props.onMouseEnter;s==null||s({event:l,node:h})}),u1(D1(a),"onNodeMouseLeave",function(l,h){var s=a.props.onMouseLeave;s==null||s({event:l,node:h})}),u1(D1(a),"onNodeContextMenu",function(l,h){var s=a.props.onRightClick;s&&(l.preventDefault(),s({event:l,node:h}))}),u1(D1(a),"onFocus",function(){var l=a.props.onFocus;a.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(!a.destroyed){var u=!1,v=!0,f={};Object.keys(l).forEach(function(d){if(d in a.props){v=!1;return}u=!0,f[d]=l[d]}),u&&(!h||v)&&a.setState(Q1(Q1({},f),s))}}),u1(D1(a),"scrollTo",function(l){a.listRef.current.scrollTo(l)}),a}return t2(n,[{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,c=r.itemScrollOffset,l=c===void 0?0:c;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:l}))}},{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,c=r.flattenNodes,l=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,_=H.switcherIcon,T=H.draggable,P=H.checkable,F=H.checkStrictly,W=H.disabled,U=H.motion,Z=H.loadData,I=H.filterTreeNode,t1=H.height,R=H.itemHeight,i1=H.virtual,J=H.titleRender,A=H.dropIndicatorRender,o1=H.onContextMenu,h1=H.onScroll,n1=H.direction,M1=H.rootClassName,s1=H.rootStyle,z1=Q8(this.props,{aria:!0,data:!0}),m1;return T&&(C2(T)==="object"?m1=T:typeof T=="function"?m1={nodeDraggable:T}:m1={}),S.createElement(cO.Provider,{value:{prefixCls:p,selectable:C,showIcon:L,icon:B,switcherIcon:_,draggable:m1,draggingNodeKey:h,checkable:P,checkStrictly:F,disabled:W,keyEntities:l,dropLevelOffset:u,dropContainerKey:v,dropTargetKey:f,dropPosition:d,dragOverNodeKey:M,indent:g,direction:n1,dropIndicatorRender:A,loadData:Z,filterTreeNode:I,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}},S.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},S.createElement(u21,Zt({ref:this.listRef,prefixCls:p,style:z,data:c,disabled:W,selectable:C,checkable:!!P,motion:U,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 c=o.prevProps,l={prevProps:r};function h(y){return!c&&y in r||c&&c[y]!==r[y]}var s,u=o.fieldNames;if(h("fieldNames")&&(u=pp(r.fieldNames),l.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){l.treeData=s;var v=i21(s,{fieldNames:u});l.keyEntities=Q1(u1({},n6,h21),v.keyEntities)}var f=l.keyEntities||o.keyEntities;if(h("expandedKeys")||c&&h("autoExpandParent"))l.expandedKeys=r.autoExpandParent||!c&&r.defaultExpandParent?n$(r.expandedKeys,f):r.expandedKeys;else if(!c&&r.defaultExpandAll){var d=Q1({},f);delete d[n6],l.expandedKeys=Object.keys(d).map(function(y){return d[y].key})}else!c&&r.defaultExpandedKeys&&(l.expandedKeys=r.autoExpandParent||r.defaultExpandParent?n$(r.defaultExpandedKeys,f):r.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,s||l.expandedKeys){var M=CV(s||o.treeData,l.expandedKeys||o.expandedKeys,u);l.flattenNodes=M}if(r.selectable&&(h("selectedKeys")?l.selectedKeys=e$(r.selectedKeys,r):!c&&r.defaultSelectedKeys&&(l.selectedKeys=e$(r.defaultSelectedKeys,r))),r.checkable){var g;if(h("checkedKeys")?g=bV(r.checkedKeys)||{}:!c&&r.defaultCheckedKeys?g=bV(r.defaultCheckedKeys)||{}:s&&(g=bV(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=Ic(m,!0,f);m=x.checkedKeys,w=x.halfCheckedKeys}l.checkedKeys=m,l.halfCheckedKeys=w}}return h("loadedKeys")&&(l.loadedKeys=r.loadedKeys),l}}]),n}(S.Component);u1(sO,"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:jA2,allowDrop:function(){return!0},expandAction:!1});u1(sO,"TreeNode",rh);var v21=S.createContext(null),ak2={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},rk2=function(e,n){var a=At1(),r=a.prefixCls,o=a.multiple,c=a.searchValue,l=a.toggleOpen,h=a.open,s=a.notFoundContent,u=S.useContext(v21),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=S.useContext(c21),y=x.checkable,V=x.checkedKeys,C=x.halfCheckedKeys,L=x.treeExpandedKeys,B=x.treeDefaultExpandAll,_=x.treeDefaultExpandedKeys,T=x.onTreeExpand,P=x.treeIcon,F=x.showTreeIcon,W=x.switcherIcon,U=x.treeLine,Z=x.treeNodeFilterProp,I=x.loadData,t1=x.treeLoadedKeys,R=x.treeMotion,i1=x.onTreeLoad,J=x.keyEntities,A=S.useRef(),o1=m_(function(){return g},[h,g],function(b1,X){return X[0]&&b1[1]!==X[1]}),h1=S.useState(null),n1=it(h1,2),M1=n1[0],s1=n1[1],z1=J[M1],m1=S.useMemo(function(){return y?{checked:V,halfChecked:C}:null},[y,V,C]);S.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 _1=String(c).toLowerCase(),I1=function(X){return _1?String(X[Z]).toLowerCase().includes(_1):!1},U1=S.useState(_),P1=it(U1,2),G1=P1[0],at=P1[1],X1=S.useState(null),rt=it(X1,2),tt=rt[0],et=rt[1],vt=S.useMemo(function(){return L?i0(L):c?tt:G1},[G1,tt,L,c]);S.useEffect(function(){c&&et(AA2(g,H))},[c]);var V1=function(X){at(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||l(!1))};if(S.useImperativeHandle(n,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 ot.UP:case ot.DOWN:case ot.LEFT:case ot.RIGHT:(e1=A.current)===null||e1===void 0||e1.onKeyDown(f1);break;case ot.ENTER:{if(z1){var r1=(z1==null?void 0:z1.node)||{},E=r1.selectable,q=r1.value;E!==!1&&B1(null,{node:{key:M1},selected:!V.includes(q)})}break}case ot.ESC:l(!1)}},onKeyUp:function(){}}}),o1.length===0)return S.createElement("div",{role:"listbox",className:"".concat(r,"-empty"),onMouseDown:q1},s);var H1={fieldNames:H};return t1&&(H1.loadedKeys=t1),vt&&(H1.expandedKeys=vt),S.createElement("div",{onMouseDown:q1},z1&&h&&S.createElement("span",{style:ak2,"aria-live":"assertive"},z1.node.value),S.createElement(sO,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:P,showIcon:F,switcherIcon:W,showLine:U,loadData:c?null:I,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})))},ik2=S.forwardRef(rk2),hO="SHOW_ALL",uO="SHOW_PARENT",LM="SHOW_CHILD";function a$(t,e,n,a){var r=new Set(t);return e===LM?t.filter(function(o){var c=n[o];return!(c&&c.children&&c.children.some(function(l){var h=l.node;return r.has(h[a.value])})&&c.children.every(function(l){var h=l.node;return EL(h)||r.has(h[a.value])}))}):e===uO?t.filter(function(o){var c=n[o],l=c?c.parent:null;return!(l&&!EL(l.node)&&r.has(l.key))}):t}var ok2=["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 lk2=S.forwardRef(function(t,e){var n=t.id,a=t.prefixCls,r=a===void 0?"rc-tree-select":a,o=t.value,c=t.defaultValue,l=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,_=t.children,T=t.loadData,P=t.treeLoadedKeys,F=t.onTreeLoad,W=t.treeDefaultExpandAll,U=t.treeExpandedKeys,Z=t.treeDefaultExpandedKeys,I=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,n1=h1===void 0?0:h1,M1=t.onDropdownVisibleChange,s1=t.dropdownMatchSelectWidth,z1=s1===void 0?!0:s1,m1=t.treeLine,_1=t.treeIcon,I1=t.showTreeIcon,U1=t.switcherIcon,P1=t.treeMotion,G1=t.treeTitleRender,at=d0(t,ok2),X1=t21(n),rt=x&&!y,tt=x||y,et=y||V,vt=tt||w,V1=nh(c,{value:o}),q1=it(V1,2),B1=q1[0],H1=q1[1],b1=S.useMemo(function(){return x?m||LM:hO},[m,x]),X=S.useMemo(function(){return OA2(C)},[JSON.stringify(C)]),f1=nh("",{value:u!==void 0?u:v,postState:function(mt){return mt||""}}),e1=it(f1,2),G=e1[0],r1=e1[1],E=function(mt){r1(mt),f==null||f(mt)},q=RA2(B,_,L),Y=kA2(q,X),c1=Y.keyEntities,v1=Y.valueEntities,x1=S.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=NA2(q,G,{fieldNames:X,treeNodeFilterProp:p,filterTreeNode:g}),Z1=S.useCallback(function(wt){if(wt){if(z)return wt[z];for(var mt=X._title,Tt=0;Tt=Xt)){var C0=!0,de=l2;L==null||L(null);var De=IO2(l2,W,OL(Xt)?Xt-f2.size:void 0),s4=re?null:De;return H!=="combobox"&&s4&&(de="",F==null||F(s4),_t(!1),C0=!1),P&&v1!==de&&P(de,{source:ae?"typing":"effect"}),C0}},S0=function(l2){!l2||!l2.trim()||P(l2,{source:"submit"})};_.useEffect(function(){!Ot&&!rt&&H!=="combobox"&&y2("",!1,!1)},[Ot]),_.useEffect(function(){Gt&&p&&Ht(!1),p&&!G.current&&Y(!1)},[p]);var r0=Pt1(),R0=it(r0,2),_2=R0[0],ne=R0[1],wt=function(l2){var ae=_2(),re=l2.which;if(re===ot.ENTER&&(H!=="combobox"&&l2.preventDefault(),Ot||_t(!0)),ne(!!v1),re===ot.BACKSPACE&&!ae&&rt&&!v1&&u.length){for(var C0=i0(u),de=null,De=C0.length-1;De>=0;De-=1){var s4=C0[De];if(!s4.disabled){C0.splice(De,1),de=s4;break}}de&&v(C0,{type:"remove",values:[de]})}for(var D4=arguments.length,x4=new Array(D4>1?D4-1:0),V4=1;V41?ae-1:0),C0=1;C01?De-1:0),D4=1;D40&&arguments[0]!==void 0?arguments[0]:!1;u();var z=function(){l.current.forEach(function(H,p){if(H&&H.offsetParent){var m=K7(H),M=m.offsetHeight;h.current.get(p)!==M&&h.current.set(p,m.offsetHeight)}}),c(function(H){return H+1})};d?z():s.current=z4(z)}function f(d,z){var g=t(d),H=l.current.get(g);z?(l.current.set(g,z),v()):l.current.delete(g),!H!=!z&&(z?e==null||e(d):n==null||n(d))}return _.useEffect(function(){return u},[]),[f,v,h.current,o]}var KO2=10;function YO2(t,e,n,a,r,o,c,l){var h=_.useRef(),s=_.useState(null),u=it(s,2),v=u[0],f=u[1];return te(function(){if(v&&v.times=0;F-=1){var W=r(e[F]),U=n.get(W);if(U===void 0){m=!0;break}if(P-=U,P<=0)break}switch(x){case"top":w=V-H;break;case"bottom":w=C-p+H;break;default:{var Z=t.current.scrollTop,I=Z+p;VI&&(M="bottom")}}w!==null&&c(w),w!==v.lastTop&&(m=!0)}m&&f(Q1(Q1({},v),{},{times:v.times+1,targetAlign:M,lastTop:w}))}},[v,t.current]),function(d){if(d==null){l();return}if(z4.cancel(h.current),typeof d=="number")c(d);else if(d&&C2(d)==="object"){var z,g=d.align;"index"in d?z=d.index:z=e.findIndex(function(m){return r(m)===d.key});var H=d.offset,p=H===void 0?0:H;f({times:0,index:z,offset:p,originAlign:g})}}}function ZO2(t,e,n){var a=t.length,r=e.length,o,c;if(a===0&&r===0)return null;a"u"?"undefined":C2(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const e21=function(t,e){var n=_.useRef(!1),a=_.useRef(null);function r(){clearTimeout(a.current),n.current=!0,a.current=setTimeout(function(){n.current=!1},50)}var o=_.useRef({top:t,bottom:e});return o.current.top=t,o.current.bottom=e,function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=c<0&&o.current.top||c>0&&o.current.bottom;return l&&h?(clearTimeout(a.current),n.current=!1):(!h||n.current)&&r(),!n.current&&h}};function XO2(t,e,n,a,r){var o=_.useRef(0),c=_.useRef(null),l=_.useRef(null),h=_.useRef(!1),s=e21(e,n);function u(H,p){z4.cancel(c.current),o.current+=p,l.current=p,!s(p)&&(IF||H.preventDefault(),c.current=z4(function(){var m=h.current?10:1;r(o.current*m),o.current=0}))}function v(H,p){r(p,!0),IF||H.preventDefault()}var f=_.useRef(null),d=_.useRef(null);function z(H){if(t){z4.cancel(d.current),d.current=z4(function(){f.current=null},2);var p=H.deltaX,m=H.deltaY,M=H.shiftKey,w=p,x=m;(f.current==="sx"||!f.current&&M&&m&&!p)&&(w=m,x=0,f.current="sx");var y=Math.abs(w),V=Math.abs(x);f.current===null&&(f.current=a&&y>V?"x":"y"),f.current==="y"?u(H,x):v(H,w)}}function g(H){t&&(h.current=H.detail===l.current)}return[z,g]}var JO2=14/15;function tA2(t,e,n){var a=_.useRef(!1),r=_.useRef(0),o=_.useRef(null),c=_.useRef(null),l,h=function(f){if(a.current){var d=Math.ceil(f.touches[0].pageY),z=r.current-d;r.current=d,n(z)&&f.preventDefault(),clearInterval(c.current),c.current=setInterval(function(){z*=JO2,(!n(z,!0)||Math.abs(z)<=.1)&&clearInterval(c.current)},16)}},s=function(){a.current=!1,l()},u=function(f){l(),f.touches.length===1&&!a.current&&(a.current=!0,r.current=Math.ceil(f.touches[0].pageY),o.current=f.target,o.current.addEventListener("touchmove",h),o.current.addEventListener("touchend",s))};l=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),l(),clearInterval(c.current)}},[t])}var eA2=20;function FF(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=t/e*t;return isNaN(n)&&(n=0),n=Math.max(n,eA2),Math.floor(n)}function nA2(t,e,n,a){var r=_.useMemo(function(){return[new Map,[]]},[t,n.id,a]),o=it(r,2),c=o[0],l=o[1],h=function(u){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,f=c.get(u),d=c.get(v);if(f===void 0||d===void 0)for(var z=t.length,g=l.length;go||!!g),S=z==="rtl",T=E2(a,u1({},"".concat(a,"-rtl"),S),r),P=u||rA2,F=_.useRef(),W=_.useRef(),U=_.useState(0),Z=it(U,2),I=Z[0],t1=Z[1],R=_.useState(0),i1=it(R,2),J=i1[0],A=i1[1],o1=_.useState(!1),h1=it(o1,2),n1=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){t1(function(mt){var Tt;typeof wt=="function"?Tt=wt(mt):Tt=wt;var Kt=j1(Tt);return F.current.scrollTop=Kt,Kt})}var U1=_.useRef({start:0,end:P.length}),P1=_.useRef(),G1=QO2(P,m1),at=it(G1,1),X1=at[0];P1.current=X1;var rt=GO2(m1,null,null),tt=it(rt,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:P.length-1,offset:void 0};if(!B){var wt;return{scrollHeight:((wt=W.current)===null||wt===void 0?void 0:wt.offsetHeight)||0,start:0,end:P.length-1,offset:void 0}}for(var mt=0,Tt,Kt,S2,H2=P.length,m2=0;m2=I&&Tt===void 0&&(Tt=m2,Kt=mt),ve>I+o&&S2===void 0&&(S2=m2),mt=ve}return Tt===void 0&&(Tt=0,Kt=0,S2=Math.ceil(o/c)),S2===void 0&&(S2=P.length-1),S2=Math.min(S2+1,P.length-1),{scrollHeight:mt,start:Tt,end:S2,offset:Kt}},[B,L,I,P,q1,o]),H1=B1.scrollHeight,b1=B1.start,X=B1.end,f1=B1.offset;U1.current.start=b1,U1.current.end=X;var e1=_.useState({width:0,height:o}),G=it(e1,2),r1=G[0],E=G[1],q=function(mt){E({width:mt.width||mt.offsetWidth,height:mt.height||mt.offsetHeight})},Y=_.useRef(),c1=_.useRef(),v1=_.useMemo(function(){return FF(r1.width,g)},[r1.width,g]),x1=_.useMemo(function(){return FF(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=I<=0,Vt=I>=N1,Y1=e21(C1,Vt),Ct=function(){return{x:S?-J:J,y:I}},ht=_.useRef(Ct()),Gt=Ta(function(){if(M){var wt=Ct();(ht.current.x!==wt.x||ht.current.y!==wt.y)&&(M(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!==I&&I1(mt),m==null||m(wt),Gt()}var n2=function(mt){var Tt=mt,Kt=g-r1.width;return Tt=Math.max(Tt,0),Tt=Math.min(Tt,Kt),Tt},u2=Ta(function(wt,mt){mt?($8.flushSync(function(){A(function(Tt){var Kt=Tt+(S?-wt:wt);return n2(Kt)})}),Gt()):I1(function(Tt){var Kt=Tt+wt;return Kt})}),_t=XO2(L,C1,Vt,!!g,u2),At=it(_t,2),Rt=At[0],Xt=At[1];tA2(L,F,function(wt,mt){return Y1(wt,mt)?!1:(Rt({preventDefault:function(){},deltaY:wt}),!0)}),te(function(){function wt(Tt){L&&Tt.preventDefault()}var mt=F.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 n2(wt)})},[r1.width,g]);var f2=function(){var mt,Tt;(mt=Y.current)===null||mt===void 0||mt.delayHidden(),(Tt=c1.current)===null||Tt===void 0||Tt.delayHidden()},y2=YO2(F,P,V1,c,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(n2(mt.left)),y2(mt.top)):y2(mt)}}}),te(function(){if(w){var wt=P.slice(b1,X+1);w(wt,P)}},[b1,X,P]);var S0=nA2(P,m1,V1,c),r0=y==null?void 0:y({start:b1,end:X,virtual:B,offsetX:J,offsetY:f1,rtl:S,getSize:S0}),R0=WO2(P,b1,X,g,et,v,S1),_2=null;o&&(_2=Q1(u1({},h?"height":"maxHeight",o),iA2),L&&(_2.overflowY="hidden",g&&(_2.overflowX="hidden"),n1&&(_2.pointerEvents="none")));var ne={};return S&&(ne.dir="rtl"),_.createElement("div",Zt({style:Q1(Q1({},s),{},{position:"relative"}),className:T},ne,C),_.createElement(Lc,{onResize:q},_.createElement(p,{className:"".concat(a,"-holder"),style:_2,ref:F,onScroll:Ot,onMouseEnter:f2},_.createElement(t21,{prefixCls:a,height:H1,offsetX:J,offsetY:f1,scrollWidth:g,onInnerResize:vt,ref:W,innerProps:x,rtl:S,extra:r0},R0))),B&&H1>o&&_.createElement(jF,{ref:Y,prefixCls:a,scrollOffset:I,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(jF,{ref:c1,prefixCls:a,scrollOffset:J,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 iO=_.forwardRef(oA2);iO.displayName="List";function cA2(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var lA2=["disabled","title","children","style","className"];function $F(t){return typeof t=="string"||typeof t=="number"}var sA2=function(e,n){var a=Et1(),r=a.prefixCls,o=a.id,c=a.open,l=a.multiple,h=a.mode,s=a.searchValue,u=a.toggleOpen,v=a.notFoundContent,f=a.onPopupScroll,d=_.useContext(rO),z=d.maxCount,g=d.flattenOptions,H=d.onActiveValue,p=d.defaultActiveFirstOption,m=d.onSelect,M=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},[c,g],function(m1,S1){return S1[0]&&m1[1]!==S1[1]}),P=_.useRef(null),F=_.useMemo(function(){return l&&OL(z)&&(w==null?void 0:w.size)>=z},[l,z,w==null?void 0:w.size]),W=function(S1){S1.preventDefault()},U=function(S1){var I1;(I1=P.current)===null||I1===void 0||I1.scrollTo(typeof S1=="number"?{index:S1}:S1)},Z=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(){J(p!==!1?Z(0):-1)},[T.length,s]);var A=_.useCallback(function(m1){return w.has(m1)&&h!=="combobox"},[h,i0(w).toString(),w.size]);_.useEffect(function(){var m1=setTimeout(function(){if(!l&&c&&w.size===1){var I1=Array.from(w)[0],U1=T.findIndex(function(P1){var G1=P1.data;return G1.value===I1});U1!==-1&&(J(U1),U(U1))}});if(c){var S1;(S1=P.current)===null||S1===void 0||S1.scrollTo(void 0)}return function(){return clearTimeout(m1)}},[c,s]);var o1=function(S1){S1!==void 0&&m(S1,{selected:!w.has(S1)}),l||u(!1)};if(_.useImperativeHandle(n,function(){return{onKeyDown:function(S1){var I1=S1.which,U1=S1.ctrlKey;switch(I1){case ot.N:case ot.P:case ot.UP:case ot.DOWN:{var P1=0;if(I1===ot.UP?P1=-1:I1===ot.DOWN?P1=1:cA2()&&U1&&(I1===ot.N?P1=1:I1===ot.P&&(P1=-1)),P1!==0){var G1=Z(R+P1,P1);U(G1),J(G1,!0)}break}case ot.ENTER:{var at,X1=T[R];X1&&!(X1!=null&&(at=X1.data)!==null&&at!==void 0&&at.disabled)&&!F?o1(X1.value):o1(void 0),c&&S1.preventDefault();break}case ot.ESC:u(!1),c&&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:W},v);var h1=Object.keys(x).map(function(m1){return x[m1]}),n1=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,at=X8(U1,!0),X1=n1(I1);return I1?_.createElement("div",Zt({"aria-label":typeof X1=="string"&&!G1?X1:null},at,{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(iO,{itemKey:"key",ref:P,data:T,height:C,itemHeight:L,fullHeight:!1,onMouseDown:W,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,at=m1.value,X1=P1.key;if(I1){var rt,tt=(rt=P1.title)!==null&&rt!==void 0?rt:$F(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,lA2),H1=j_(B1,h1),b1=A(at),X=et||!b1&&F,f1="".concat(S,"-option"),e1=E2(S,f1,q1,u1(u1(u1(u1({},"".concat(f1,"-grouped"),U1),"".concat(f1,"-active"),R===S1&&!X),"".concat(f1,"-disabled"),X),"".concat(f1,"-selected"),b1)),G=n1(m1),r1=!M||typeof M=="function"||b1,E=typeof G=="number"?G:G||at,q=$F(E)?E.toString():void 0;return vt!==void 0&&(q=vt),_.createElement("div",Zt({},X8(H1),y?{}:M1(m1,S1),{"aria-selected":b1,className:e1,title:q,onMouseMove:function(){R===S1||X||J(S1)},onClick:function(){X||o1(at)},style:V1}),_.createElement("div",{className:"".concat(f1,"-content")},typeof B=="function"?B(m1,{index:S1}):E),_.isValidElement(M)||b1,r1&&_.createElement(CM,{className:"".concat(S,"-option-state"),customizeIcon:M,customizeIconProps:{value:at,disabled:X,isSelected:b1}},b1?"✓":null))}))},hA2=_.forwardRef(sA2);const uA2=function(t,e){var n=_.useRef({values:new Map,options:new Map}),a=_.useMemo(function(){var o=n.current,c=o.values,l=o.options,h=t.map(function(v){if(v.label===void 0){var f;return Q1(Q1({},v),{},{label:(f=c.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)||l.get(v.value))}),n.current.values=s,n.current.options=u,h},[t,e]),r=_.useCallback(function(o){return e.get(o)||n.current.options.get(o)},[e]);return[a,r]};function VV(t,e){return Ft1(t).join("").toUpperCase().includes(e)}const vA2=function(t,e,n,a,r){return _.useMemo(function(){if(!n||a===!1)return t;var o=e.options,c=e.label,l=e.value,h=[],s=typeof a=="function",u=n.toUpperCase(),v=s?a:function(d,z){return r?VV(z[r],u):z[o]?VV(z[c!=="children"?c:"label"],u):VV(z[l],u)},f=s?function(d){return AL(d)}:function(d){return d};return t.forEach(function(d){if(d[o]){var z=v(n,f(d));if(z)h.push(d);else{var g=d[o].filter(function(H){return v(n,f(H))});g.length&&h.push(Q1(Q1({},d),{},u1({},o,g)))}return}v(n,f(d))&&h.push(d)}),h},[t,a,r,n,e])};var UF=0,dA2=Ga();function fA2(){var t;return dA2?(t=UF,UF+=1):t="TEST_OR_SSR",t}function n21(t){var e=_.useState(),n=it(e,2),a=n[0],r=n[1];return _.useEffect(function(){r("rc_select_".concat(fA2()))},[]),t||a}var gA2=["children","value"],pA2=["children"];function mA2(t){var e=t,n=e.key,a=e.props,r=a.children,o=a.value,c=d0(a,gA2);return Q1({key:n,value:o!==void 0?o:n,children:r},c)}function a21(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return V6(t).map(function(n,a){if(!_.isValidElement(n)||!n.type)return null;var r=n,o=r.type.isSelectOptGroup,c=r.key,l=r.props,h=l.children,s=d0(l,pA2);return e||!o?mA2(n):Q1(Q1({key:"__RC_SELECT_GRP__".concat(c===null?a:c,"__"),label:c},s),{},{options:a21(h)})}).filter(function(n){return n})}var zA2=function(e,n,a,r,o){return _.useMemo(function(){var c=e,l=!e;l&&(c=a21(n));var h=new Map,s=new Map,u=function(d,z,g){g&&typeof g=="string"&&d.set(z[g],z)},v=function f(d){for(var z=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),c&&a==="combobox"&&_t!==null&&f2==="keyboard"&&N1(String(_t))},[c,a]),ht=function(At,Rt,Xt){var f2=function(){var Kt,S2=H1(At);return[t1?{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(),S0=it(y2,2),r0=S0[0],R0=S0[1];d(r0,R0)}else if(!Rt&&z&&Xt!=="clear"){var _2=f2(),ne=it(_2,2),wt=ne[0],mt=ne[1];z(wt,mt)}},Gt=WF(function(_t,At){var Rt,Xt=o1?At.selected:!0;Xt?Rt=o1?[].concat(i0(B1),[_t]):[_t]:Rt=B1.filter(function(f2){return f2.value!==_t}),Y(Rt),ht(_t,Xt),a==="combobox"?N1(""):(!kL||f)&&(S1(""),N1(""))}),Ht=function(At,Rt){Y(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(i0(X),[Xt])));Y(f2),ht(Xt,!0),S1("")}return}Rt.source!=="blur"&&(a==="combobox"&&Y(At),u==null||u(At))},n2=function(At){var Rt=At;a!=="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(i0(X),i0(Rt))));Y(Xt),Xt.forEach(function(f2){ht(f2,!0)})},u2=_.useMemo(function(){var _t=B!==!1&&H!==!1;return Q1(Q1({},I1),{},{flattenOptions:q,onActiveValue:Ct,defaultActiveFirstOption:Y1,onSelect:Gt,menuItemSelectedIcon:L,rawValues:X,fieldNames:M1,virtual:_t,direction:S,listHeight:P,listItemHeight:W,childrenAsData:h1,maxCount:i1,optionRender:y})},[i1,I1,q,Ct,Y1,Gt,L,X,M1,B,H,S,P,W,h1,y]);return _.createElement(rO.Provider,{value:u2},_.createElement(Qt1,Zt({},J,{id:A,prefixCls:o,ref:e,omitDomProps:HA2,mode:a,displayValues:b1,onDisplayValuesChange:Ht,direction:S,searchValue:m1,onSearch:Ot,autoClearSearchValue:f,onSearchSplit:n2,dropdownMatchSelectWidth:H,OptionList:hA2,emptyOptions:!q.length,activeValue:x1,activeDescendantId:"".concat(A,"_list_").concat(C1)})))}),r21=yA2;r21.Option=Jt1;r21.OptGroup=Xt1;function ta(t,e){return t[e]}function i21(t,e){var n=new Set;return t.forEach(function(a){e.has(a)||n.add(a)}),n}function xA2(t){var e=t||{},n=e.disabled,a=e.disableCheckbox,r=e.checkable;return!!(n||a)||r===!1}function VA2(t,e,n,a){for(var r=new Set(t),o=new Set,c=0;c<=n;c+=1){var l=e.get(c)||new Set;l.forEach(function(v){var f=v.key,d=v.node,z=v.children,g=z===void 0?[]:z;r.has(f)&&!a(d)&&g.filter(function(H){return!a(H.node)}).forEach(function(H){r.add(H.key)})})}for(var h=new Set,s=n;s>=0;s-=1){var u=e.get(s)||new Set;u.forEach(function(v){var f=v.parent,d=v.node;if(!(a(d)||!v.parent||h.has(v.parent.key))){if(a(v.parent.node)){h.add(f.key);return}var z=!0,g=!1;(f.children||[]).filter(function(H){return!a(H.node)}).forEach(function(H){var p=H.key,m=r.has(p);z&&!m&&(z=!1),!g&&(m||o.has(p))&&(g=!0)}),z&&r.add(f.key),g&&o.add(f.key),h.add(f.key)}})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(i21(o,r))}}function CA2(t,e,n,a,r){for(var o=new Set(t),c=new Set(e),l=0;l<=a;l+=1){var h=n.get(l)||new Set;h.forEach(function(f){var d=f.key,z=f.node,g=f.children,H=g===void 0?[]:g;!o.has(d)&&!c.has(d)&&!r(z)&&H.filter(function(p){return!r(p.node)}).forEach(function(p){o.delete(p.key)})})}c=new Set;for(var s=new Set,u=a;u>=0;u-=1){var v=n.get(u)||new Set;v.forEach(function(f){var d=f.parent,z=f.node;if(!(r(z)||!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,M=o.has(m);g&&!M&&(g=!1),!H&&(M||c.has(m))&&(H=!0)}),g||o.delete(d.key),H&&c.add(d.key),s.add(d.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(i21(c,o))}}function Il(t,e,n,a){var r=[],o;a?o=a:o=xA2;var c=new Set(t.filter(function(u){var v=!!ta(n,u);return v||r.push(u),v})),l=new Map,h=0;Object.keys(n).forEach(function(u){var v=n[u],f=v.level,d=l.get(f);d||(d=new Set,l.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=VA2(c,l,h,o):s=CA2(c,e.halfCheckedKeys,l,h,o),s}const bA2=function(t){var e=_.useRef({valueLabels:new Map});return _.useMemo(function(){var n=e.current.valueLabels,a=new Map,r=t.map(function(o){var c,l=o.value,h=(c=o.label)!==null&&c!==void 0?c:n.get(l);return a.set(l,h),Q1(Q1({},o),{},{label:h})});return e.current.valueLabels=a,[r]},[t])},LA2=function(t,e,n,a){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}),c=r.filter(function(h){return!a[h]});if(n){var l=Il(r,!0,a);r=l.checkedKeys,o=l.halfCheckedKeys}return[Array.from(new Set([].concat(i0(c),i0(r)))),o]},[t,e,n,a])};var BA2=["children"];function o21(t,e){return"".concat(t,"-").concat(e)}function _A2(t){return t&&t.type&&t.type.isTreeNode}function ru(t,e){return t??e}function pp(t){var e=t||{},n=e.title,a=e._title,r=e.key,o=e.children,c=n||"title";return{title:c,_title:a||[c],key:r||"key",children:o||"children"}}function SA2(t){function e(n){var a=V6(n);return a.map(function(r){if(!_A2(r))return Y4(!r,"Tree/TreeNode can only accept TreeNode as children."),null;var o=r.key,c=r.props,l=c.children,h=d0(c,BA2),s=Q1({key:o},h),u=e(l);return u.length&&(s.children=u),s}).filter(function(r){return r})}return e(t)}function CV(t,e,n){var a=pp(n),r=a._title,o=a.key,c=a.children,l=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 z=o21(v?v.pos:"0",d),g=ru(f[o],z),H,p=0;p1&&arguments[1]!==void 0?arguments[1]:{},n=e.initWrapper,a=e.processEntity,r=e.onProcessFinished,o=e.externalGetKey,c=e.childrenPropName,l=e.fieldNames,h=arguments.length>2?arguments[2]:void 0,s=o||h,u={},v={},f={posEntities:u,keyEntities:v};return n&&(f=n(f)||f),TA2(t,function(d){var z=d.node,g=d.index,H=d.pos,p=d.key,m=d.parentPos,M=d.level,w=d.nodes,x={node:z,nodes:w,index:g,key:p,pos:H,level:M},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)),a&&a(x,f)},{externalGetKey:s,childrenPropName:c,fieldNames:l}),r&&r(f),f}function vs(t,e){var n=e.expandedKeys,a=e.selectedKeys,r=e.loadedKeys,o=e.loadingKeys,c=e.checkedKeys,l=e.halfCheckedKeys,h=e.dragOverNodeKey,s=e.dropPosition,u=e.keyEntities,v=ta(u,t),f={eventKey:t,expanded:n.indexOf(t)!==-1,selected:a.indexOf(t)!==-1,loaded:r.indexOf(t)!==-1,loading:o.indexOf(t)!==-1,checked:c.indexOf(t)!==-1,halfChecked:l.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 Ue(t){var e=t.data,n=t.expanded,a=t.selected,r=t.checked,o=t.loaded,c=t.loading,l=t.halfChecked,h=t.dragOver,s=t.dragOverGapTop,u=t.dragOverGapBottom,v=t.pos,f=t.active,d=t.eventKey,z=Q1(Q1({},e),{},{expanded:n,selected:a,checked:r,loaded:o,loading:c,halfChecked:l,dragOver:h,dragOverGapTop:s,dragOverGapBottom:u,pos:v,active:f,key:d});return"props"in z||Object.defineProperty(z,"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}}),z}function OA2(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}function AA2(t){var e=t||{},n=e.label,a=e.value,r=e.children,o=a||"value";return{_title:n?[n]:["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 n=[];function a(r){r.forEach(function(o){var c=o[e.children];c&&(n.push(o[e.value]),a(c))})}return a(t),n}function qF(t){return t==null}const EA2=function(t,e){return _.useMemo(function(){var n=c21(t,{fieldNames:e,initWrapper:function(r){return Q1(Q1({},r),{},{valueEntities:new Map})},processEntity:function(r,o){var c=r.node[e.value];o.valueEntities.set(c,r)}});return n},[t,e])};var oO=function(){return null},PA2=["children","value"];function l21(t){return V6(t).map(function(e){if(!_.isValidElement(e)||!e.type)return null;var n=e,a=n.key,r=n.props,o=r.children,c=r.value,l=d0(r,PA2),h=Q1({key:a,value:c},l),s=l21(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,n,a,r,o){var c=null,l=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,z){var g="".concat(v,"-").concat(z),H=d[o.value],p=n.includes(H),m=s(d[o.children]||[],g,p),M=_.createElement(oO,d,m.map(function(x){return x.node}));if(e===H&&(c=M),p){var w={pos:g,node:M,children:m};return f||l.push(w),w}return null}).filter(function(d){return d})}l||(l=[],s(a),l.sort(function(u,v){var f=u.node.props.value,d=v.node.props.value,z=n.indexOf(f),g=n.indexOf(d);return z-g}))}Object.defineProperty(t,"triggerNode",{get:function(){return Y4(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),h(),c}}),Object.defineProperty(t,"allCheckedNodes",{get:function(){return Y4(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),h(),r?l:l.map(function(u){var v=u.node;return v})}})}const DA2=function(t,e,n){var a=n.treeNodeFilterProp,r=n.filterTreeNode,o=n.fieldNames,c=o.children;return _.useMemo(function(){if(!e||r===!1)return t;var l;if(typeof r=="function")l=r;else{var h=e.toUpperCase();l=function(v,f){var d=f[a];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 z=d[c],g=v||l(e,PL(d)),H=s(z||[],g);return(g||H.length)&&f.push(Q1(Q1({},d),{},u1({isLeaf:void 0},c,H))),f},[])}return s(t)},[t,e,c,a,r])};function GF(t){var e=_.useRef();e.current=t;var n=_.useCallback(function(){return e.current.apply(e,arguments)},[]);return n}function RA2(t,e){var n=e.id,a=e.pId,r=e.rootPId,o={},c=[],l=t.map(function(h){var s=Q1({},h),u=s[n];return o[u]=s,s.key=s.key||u,s});return l.forEach(function(h){var s=h[a],u=o[s];u&&(u.children=u.children||[],u.children.push(h)),(s===r||!u&&r===null)&&c.push(h)}),c}function jA2(t,e,n){return _.useMemo(function(){return t?n?RA2(t,Q1({id:"id",pId:"pId",rootPId:null},n!==!0?n:{})):t:l21(e)},[e,n,t])}var s21=_.createContext(null),cO=_.createContext(null);function IA2(t){var e=t.dropPosition,n=t.dropLevelOffset,a=t.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(e){case-1:r.top=0,r.left=-n*a;break;case 1:r.bottom=0,r.left=-n*a;break;case 0:r.bottom=0,r.left=a;break}return _.createElement("div",{style:r})}function h21(t){if(t==null)throw new TypeError("Cannot destructure "+t)}var FA2=function(e){for(var n=e.prefixCls,a=e.level,r=e.isStart,o=e.isEnd,c="".concat(n,"-indent-unit"),l=[],h=0;h0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.length,a=e.length;if(Math.abs(n-a)!==1)return{add:!1,key:null};function r(o,c){var l=new Map;o.forEach(function(s){l.set(s,!0)});var h=c.filter(function(s){return!l.has(s)});return h.length===1?h[0]:null}return n ").concat(e);return e}var d21=_.forwardRef(function(t,e){var n=t.prefixCls,a=t.data;t.selectable,t.checkable;var r=t.expandedKeys,o=t.selectedKeys,c=t.checkedKeys,l=t.loadedKeys,h=t.loadingKeys,s=t.halfCheckedKeys,u=t.keyEntities,v=t.disabled,f=t.dragging,d=t.dragOverNodeKey,z=t.dropPosition,g=t.motion,H=t.height,p=t.itemHeight,m=t.virtual,M=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,P=d0(t,QA2),F=_.useRef(null),W=_.useRef(null);_.useImperativeHandle(e,function(){return{scrollTo:function(vt){F.current.scrollTo(vt)},getIndentWidth:function(){return W.current.offsetWidth}}});var U=_.useState(r),Z=it(U,2),I=Z[0],t1=Z[1],R=_.useState(a),i1=it(R,2),J=i1[0],A=i1[1],o1=_.useState(a),h1=it(o1,2),n1=h1[0],M1=h1[1],s1=_.useState([]),z1=it(s1,2),m1=z1[0],S1=z1[1],I1=_.useState(null),U1=it(I1,2),P1=U1[0],G1=U1[1],at=_.useRef(a);at.current=a;function X1(){var et=at.current;A(et),M1(et),S1([]),G1(null),T()}te(function(){t1(r);var et=ZA2(I,r);if(et.key!==null)if(et.add){var vt=J.findIndex(function(X){var f1=X.key;return f1===et.key}),V1=JF(ZF(J,a,et.key),m,H,p),q1=J.slice();q1.splice(vt+1,0,XF),M1(q1),S1(V1),G1("show")}else{var B1=a.findIndex(function(X){var f1=X.key;return f1===et.key}),H1=JF(ZF(a,J,et.key),m,H,p),b1=a.slice();b1.splice(B1+1,0,XF),M1(b1),S1(H1),G1("hide")}else J!==a&&(A(a),M1(a))},[r,a]),_.useEffect(function(){f||X1()},[f]);var rt=g?n1:a,tt={expandedKeys:r,selectedKeys:o,loadedKeys:l,loadingKeys:h,checkedKeys:c,halfCheckedKeys:s,dragOverNodeKey:d,dropPosition:z,keyEntities:u};return _.createElement(_.Fragment,null,x&&w&&_.createElement("span",{style:QF,"aria-live":"assertive"},JA2(w)),_.createElement("div",null,_.createElement("input",{style:QF,disabled:M===!1||v,tabIndex:M!==!1?y:null,onKeyDown:V,onFocus:C,onBlur:L,value:"",onChange:XA2,"aria-label":"for screen reader"})),_.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},_.createElement("div",{className:"".concat(n,"-indent")},_.createElement("div",{ref:W,className:"".concat(n,"-indent-unit")}))),_.createElement(iO,Zt({},P,{data:rt,itemKey:t$,height:H,fullHeight:!1,virtual:m,itemHeight:p,prefixCls:"".concat(n,"-list"),ref:F,onVisibleChange:function(vt,V1){var q1=new Set(vt),B1=V1.filter(function(H1){return!q1.has(H1)});B1.some(function(H1){return t$(H1)===ac})&&X1()}}),function(et){var vt=et.pos,V1=Object.assign({},(h21(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===ac?m1:null,motionType:P1,onMotionStart:S,onMotionEnd:X1,treeNodeRequiredProps:tt,onMouseMove:function(){B(null)}}))}))});d21.displayName="NodeList";function Xi(t,e){if(!t)return[];var n=t.slice(),a=n.indexOf(e);return a>=0&&n.splice(a,1),n}function z3(t,e){var n=(t||[]).slice();return n.indexOf(e)===-1&&n.push(e),n}function lO(t){return t.split("-")}function tk2(t,e){var n=[],a=ta(e,t);function r(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(c){var l=c.key,h=c.children;n.push(l),r(h)})}return r(a.children),n}function ek2(t){if(t.parent){var e=lO(t.pos);return Number(e[e.length-1])===t.parent.children.length-1}return!1}function nk2(t){var e=lO(t.pos);return Number(e[e.length-1])===0}function e$(t,e,n,a,r,o,c,l,h,s){var u,v=t.clientX,f=t.clientY,d=t.target.getBoundingClientRect(),z=d.top,g=d.height,H=(s==="rtl"?-1:1)*(((r==null?void 0:r.x)||0)-v),p=(H-12)/a,m=h.filter(function(U){var Z;return(Z=l[U])===null||Z===void 0||(Z=Z.children)===null||Z===void 0?void 0:Z.length}),M=ta(l,n.props.eventKey);if(f-1.5?o({dragNode:P,dropNode:F,dropPosition:1})?B=1:W=!1:o({dragNode:P,dropNode:F,dropPosition:0})?B=0:o({dragNode:P,dropNode:F,dropPosition:1})?B=1:W=!1:o({dragNode:P,dropNode:F,dropPosition:1})?B=1:W=!1,{dropPosition:B,dropLevelOffset:S,dropTargetKey:M.key,dropTargetPos:M.pos,dragOverNodeKey:L,dropContainerKey:B===0?null:((u=M.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:W}}function n$(t,e){if(t){var n=e.multiple;return n?t.slice():t.length?[t[0]]:t}}function bV(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 a$(t,e){var n=new Set;function a(r){if(!n.has(r)){var o=ta(e,r);if(o){n.add(r);var c=o.parent,l=o.node;l.disabled||c&&a(c.key)}}}return(t||[]).forEach(function(r){a(r)}),i0(n)}var ak2=10,sO=function(t){M2(n,t);var e=B2(n);function n(){var a;Jt(this,n);for(var r=arguments.length,o=new Array(r),c=0;c2&&arguments[2]!==void 0?arguments[2]:!1,v=a.state,f=v.dragChildrenKeys,d=v.dropPosition,z=v.dropTargetKey,g=v.dropTargetPos,H=v.dropAllowed;if(H){var p=a.props.onDrop;if(a.setState({dragOverNodeKey:null}),a.cleanDragState(),z!==null){var m=Q1(Q1({},vs(z,a.getTreeNodeRequiredProps())),{},{active:((s=a.getActiveItem())===null||s===void 0?void 0:s.key)===z,data:ta(a.state.keyEntities,z).node}),M=f.indexOf(z)!==-1;Y4(!M,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=lO(g),x={event:l,node:Ue(m),dragNode:a.dragNode?Ue(a.dragNode.props):null,dragNodesKeys:[a.dragNode.props.eventKey].concat(f),dropToGap:d!==0,dropPosition:d+Number(w[w.length-1])};u||p==null||p(x),a.dragNode=null}}}),u1(D1(a),"cleanDragState",function(){var l=a.state.draggingNodeKey;l!==null&&a.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),a.dragStartMousePosition=null,a.currentMouseOverDroppableNodeKey=null}),u1(D1(a),"triggerExpandActionExpand",function(l,h){var s=a.state,u=s.expandedKeys,v=s.flattenNodes,f=h.expanded,d=h.key,z=h.isLeaf;if(!(z||l.shiftKey||l.metaKey||l.ctrlKey)){var g=v.filter(function(p){return p.key===d})[0],H=Ue(Q1(Q1({},vs(d,a.getTreeNodeRequiredProps())),{},{data:g.data}));a.setExpandedKeys(f?Xi(u,d):z3(u,d)),a.onNodeExpand(l,H)}}),u1(D1(a),"onNodeClick",function(l,h){var s=a.props,u=s.onClick,v=s.expandAction;v==="click"&&a.triggerExpandActionExpand(l,h),u==null||u(l,h)}),u1(D1(a),"onNodeDoubleClick",function(l,h){var s=a.props,u=s.onDoubleClick,v=s.expandAction;v==="doubleClick"&&a.triggerExpandActionExpand(l,h),u==null||u(l,h)}),u1(D1(a),"onNodeSelect",function(l,h){var s=a.state.selectedKeys,u=a.state,v=u.keyEntities,f=u.fieldNames,d=a.props,z=d.onSelect,g=d.multiple,H=h.selected,p=h[f.key],m=!H;m?g?s=z3(s,p):s=[p]:s=Xi(s,p);var M=s.map(function(w){var x=ta(v,w);return x?x.node:null}).filter(function(w){return w});a.setUncontrolledState({selectedKeys:s}),z==null||z(s,{event:"select",selected:m,node:h,selectedNodes:M,nativeEvent:l.nativeEvent})}),u1(D1(a),"onNodeCheck",function(l,h,s){var u=a.state,v=u.keyEntities,f=u.checkedKeys,d=u.halfCheckedKeys,z=a.props,g=z.checkStrictly,H=z.onCheck,p=h.key,m,M={event:"check",node:h,checked:s,nativeEvent:l.nativeEvent};if(g){var w=s?z3(f,p):Xi(f,p),x=Xi(d,p);m={checked:w,halfChecked:x},M.checkedNodes=w.map(function(S){return ta(v,S)}).filter(function(S){return S}).map(function(S){return S.node}),a.setUncontrolledState({checkedKeys:w})}else{var y=Il([].concat(i0(f),[p]),!0,v),V=y.checkedKeys,C=y.halfCheckedKeys;if(!s){var L=new Set(V);L.delete(p);var B=Il(Array.from(L),{checked:!1,halfCheckedKeys:C},v);V=B.checkedKeys,C=B.halfCheckedKeys}m=V,M.checkedNodes=[],M.checkedNodesPositions=[],M.halfCheckedKeys=C,V.forEach(function(S){var T=ta(v,S);if(T){var P=T.node,F=T.pos;M.checkedNodes.push(P),M.checkedNodesPositions.push({node:P,pos:F})}}),a.setUncontrolledState({checkedKeys:V},!1,{halfCheckedKeys:C})}H==null||H(m,M)}),u1(D1(a),"onNodeLoad",function(l){var h=l.key,s=new Promise(function(u,v){a.setState(function(f){var d=f.loadedKeys,z=d===void 0?[]:d,g=f.loadingKeys,H=g===void 0?[]:g,p=a.props,m=p.loadData,M=p.onLoad;if(!m||z.indexOf(h)!==-1||H.indexOf(h)!==-1)return null;var w=m(l);return w.then(function(){var x=a.state.loadedKeys,y=z3(x,h);M==null||M(y,{event:"load",node:l}),a.setUncontrolledState({loadedKeys:y}),a.setState(function(V){return{loadingKeys:Xi(V.loadingKeys,h)}}),u()}).catch(function(x){if(a.setState(function(V){return{loadingKeys:Xi(V.loadingKeys,h)}}),a.loadingRetryTimes[h]=(a.loadingRetryTimes[h]||0)+1,a.loadingRetryTimes[h]>=ak2){var y=a.state.loadedKeys;Y4(!1,"Retry for `loadData` many times but still failed. No more retry."),a.setUncontrolledState({loadedKeys:z3(y,h)}),u()}v(x)}),{loadingKeys:z3(H,h)}})});return s.catch(function(){}),s}),u1(D1(a),"onNodeMouseEnter",function(l,h){var s=a.props.onMouseEnter;s==null||s({event:l,node:h})}),u1(D1(a),"onNodeMouseLeave",function(l,h){var s=a.props.onMouseLeave;s==null||s({event:l,node:h})}),u1(D1(a),"onNodeContextMenu",function(l,h){var s=a.props.onRightClick;s&&(l.preventDefault(),s({event:l,node:h}))}),u1(D1(a),"onFocus",function(){var l=a.props.onFocus;a.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(!a.destroyed){var u=!1,v=!0,f={};Object.keys(l).forEach(function(d){if(d in a.props){v=!1;return}u=!0,f[d]=l[d]}),u&&(!h||v)&&a.setState(Q1(Q1({},f),s))}}),u1(D1(a),"scrollTo",function(l){a.listRef.current.scrollTo(l)}),a}return t2(n,[{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,c=r.itemScrollOffset,l=c===void 0?0:c;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:l}))}},{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,c=r.flattenNodes,l=r.keyEntities,h=r.draggingNodeKey,s=r.activeKey,u=r.dropLevelOffset,v=r.dropContainerKey,f=r.dropTargetKey,d=r.dropPosition,z=r.dragOverNodeKey,g=r.indent,H=this.props,p=H.prefixCls,m=H.className,M=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,P=H.checkable,F=H.checkStrictly,W=H.disabled,U=H.motion,Z=H.loadData,I=H.filterTreeNode,t1=H.height,R=H.itemHeight,i1=H.virtual,J=H.titleRender,A=H.dropIndicatorRender,o1=H.onContextMenu,h1=H.onScroll,n1=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:P,checkStrictly:F,disabled:W,keyEntities:l,dropLevelOffset:u,dropContainerKey:v,dropTargetKey:f,dropPosition:d,dragOverNodeKey:z,indent:g,direction:n1,dropIndicatorRender:A,loadData:Z,filterTreeNode:I,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(d21,Zt({ref:this.listRef,prefixCls:p,style:M,data:c,disabled:W,selectable:C,checkable:!!P,motion:U,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 c=o.prevProps,l={prevProps:r};function h(y){return!c&&y in r||c&&c[y]!==r[y]}var s,u=o.fieldNames;if(h("fieldNames")&&(u=pp(r.fieldNames),l.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){l.treeData=s;var v=c21(s,{fieldNames:u});l.keyEntities=Q1(u1({},ac,v21),v.keyEntities)}var f=l.keyEntities||o.keyEntities;if(h("expandedKeys")||c&&h("autoExpandParent"))l.expandedKeys=r.autoExpandParent||!c&&r.defaultExpandParent?a$(r.expandedKeys,f):r.expandedKeys;else if(!c&&r.defaultExpandAll){var d=Q1({},f);delete d[ac],l.expandedKeys=Object.keys(d).map(function(y){return d[y].key})}else!c&&r.defaultExpandedKeys&&(l.expandedKeys=r.autoExpandParent||r.defaultExpandParent?a$(r.defaultExpandedKeys,f):r.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,s||l.expandedKeys){var z=CV(s||o.treeData,l.expandedKeys||o.expandedKeys,u);l.flattenNodes=z}if(r.selectable&&(h("selectedKeys")?l.selectedKeys=n$(r.selectedKeys,r):!c&&r.defaultSelectedKeys&&(l.selectedKeys=n$(r.defaultSelectedKeys,r))),r.checkable){var g;if(h("checkedKeys")?g=bV(r.checkedKeys)||{}:!c&&r.defaultCheckedKeys?g=bV(r.defaultCheckedKeys)||{}:s&&(g=bV(r.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),g){var H=g,p=H.checkedKeys,m=p===void 0?[]:p,M=H.halfCheckedKeys,w=M===void 0?[]:M;if(!r.checkStrictly){var x=Il(m,!0,f);m=x.checkedKeys,w=x.halfCheckedKeys}l.checkedKeys=m,l.halfCheckedKeys=w}}return h("loadedKeys")&&(l.loadedKeys=r.loadedKeys),l}}]),n}(_.Component);u1(sO,"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(sO,"TreeNode",rh);var f21=_.createContext(null),rk2={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ik2=function(e,n){var a=Et1(),r=a.prefixCls,o=a.multiple,c=a.searchValue,l=a.toggleOpen,h=a.open,s=a.notFoundContent,u=_.useContext(f21),v=u.virtual,f=u.listHeight,d=u.listItemHeight,z=u.listItemScrollOffset,g=u.treeData,H=u.fieldNames,p=u.onSelect,m=u.dropdownMatchSelectWidth,M=u.treeExpandAction,w=u.treeTitleRender,x=_.useContext(s21),y=x.checkable,V=x.checkedKeys,C=x.halfCheckedKeys,L=x.treeExpandedKeys,B=x.treeDefaultExpandAll,S=x.treeDefaultExpandedKeys,T=x.onTreeExpand,P=x.treeIcon,F=x.showTreeIcon,W=x.switcherIcon,U=x.treeLine,Z=x.treeNodeFilterProp,I=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),n1=it(h1,2),M1=n1[0],s1=n1[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(c).toLowerCase(),I1=function(X){return S1?String(X[Z]).toLowerCase().includes(S1):!1},U1=_.useState(S),P1=it(U1,2),G1=P1[0],at=P1[1],X1=_.useState(null),rt=it(X1,2),tt=rt[0],et=rt[1],vt=_.useMemo(function(){return L?i0(L):c?tt:G1},[G1,tt,L,c]);_.useEffect(function(){c&&et(kA2(g,H))},[c]);var V1=function(X){at(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||l(!1))};if(_.useImperativeHandle(n,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 ot.UP:case ot.DOWN:case ot.LEFT:case ot.RIGHT:(e1=A.current)===null||e1===void 0||e1.onKeyDown(f1);break;case ot.ENTER:{if(z1){var r1=(z1==null?void 0:z1.node)||{},E=r1.selectable,q=r1.value;E!==!1&&B1(null,{node:{key:M1},selected:!V.includes(q)})}break}case ot.ESC:l(!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(sO,Zt({ref:A,focusable:!1,prefixCls:"".concat(r,"-tree"),treeData:o1,height:f,itemHeight:d,itemScrollOffset:z,virtual:v!==!1&&m!==!1,multiple:o,icon:P,showIcon:F,switcherIcon:W,showLine:U,loadData:c?null:I,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:M})))},ok2=_.forwardRef(ik2),hO="SHOW_ALL",uO="SHOW_PARENT",LM="SHOW_CHILD";function r$(t,e,n,a){var r=new Set(t);return e===LM?t.filter(function(o){var c=n[o];return!(c&&c.children&&c.children.some(function(l){var h=l.node;return r.has(h[a.value])})&&c.children.every(function(l){var h=l.node;return EL(h)||r.has(h[a.value])}))}):e===uO?t.filter(function(o){var c=n[o],l=c?c.parent:null;return!(l&&!EL(l.node)&&r.has(l.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 lk2(t){return!t||C2(t)!=="object"}var sk2=_.forwardRef(function(t,e){var n=t.id,a=t.prefixCls,r=a===void 0?"rc-tree-select":a,o=t.value,c=t.defaultValue,l=t.onChange,h=t.onSelect,s=t.onDeselect,u=t.searchValue,v=t.inputValue,f=t.onSearch,d=t.autoClearSearchValue,z=d===void 0?!0:d,g=t.filterTreeNode,H=t.treeNodeFilterProp,p=H===void 0?"value":H,m=t.showCheckedStrategy,M=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,P=t.treeLoadedKeys,F=t.onTreeLoad,W=t.treeDefaultExpandAll,U=t.treeExpandedKeys,Z=t.treeDefaultExpandedKeys,I=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,n1=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,at=d0(t,ck2),X1=n21(n),rt=x&&!y,tt=x||y,et=y||V,vt=tt||w,V1=nh(c,{value:o}),q1=it(V1,2),B1=q1[0],H1=q1[1],b1=_.useMemo(function(){return x?m||LM:hO},[m,x]),X=_.useMemo(function(){return AA2(C)},[JSON.stringify(C)]),f1=nh("",{value:u!==void 0?u:v,postState:function(mt){return mt||""}}),e1=it(f1,2),G=e1[0],r1=e1[1],E=function(mt){r1(mt),f==null||f(mt)},q=jA2(B,S,L),Y=EA2(q,X),c1=Y.keyEntities,v1=Y.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(M)return wt[M];for(var mt=X._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:I("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:I("Tasks.Cancel")})),(0,r.jsx)(d.Button,e({mode:"secondary",type:"submit"},{children:I("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:I("Tasks.DueDate"),placeholder:I("Tasks.DueDate"),name:"due_date",id:"due_date",onChange:_1,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={},c$;function nY2(){if(c$)return f7;c$=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:I("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:I("Tasks.Cancel")})),(0,r.jsx)(d.Button,e({mode:"secondary",type:"submit"},{children:I("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:I("Tasks.DueDate"),placeholder:I("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 M,w;return h7}var f7={},l$;function aY2(){if(l$)return f7;l$=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(F){return(0,a.jsx)(f.Note,{children:(0,a.jsx)(s.Text,{children:F.note})},F.id)}):(0,a.jsx)(s.Text,{children:P("Tasks.NoNotes")})}))]})]})}),(0,a.jsxs)(f.RightCol,{children:[(0,a.jsx)(s.Text,e({noMargin:!0},{children:P("TaskDetails.Due",{defaultValue:"Due"})})),(0,a.jsxs)(g,{children:[(0,a.jsx)(v.HiOutlineCalendar,{}),(0,a.jsx)(s.Input,{type:"date",disabled:!0,label:P("Tasks.DueDate"),placeholder:P("Tasks.DueDate"),name:"due_date",id:"due_date",value:(0,l.format)(new Date(V.due_date),"yyyy-MM-dd")})]})]})]})};f7.IncomingContent=p;var m,z,w;return f7}var l$;function aY2(){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(F){return(0,a.jsx)(f.Note,{children:(0,a.jsx)(s.Text,{children:F.note})},F.id)}):(0,a.jsx)(s.Text,{children:P("Tasks.NoNotes")})}))]})]})}),(0,a.jsxs)(f.RightCol,{children:[(0,a.jsx)(s.Text,e({noMargin:!0},{children:P("TaskDetails.Due",{defaultValue:"Due"})})),(0,a.jsxs)(g,{children:[(0,a.jsx)(v.HiOutlineCalendar,{}),(0,a.jsx)(s.Input,{type:"date",disabled:!0,label:P("Tasks.DueDate"),placeholder:P("Tasks.DueDate"),name:"due_date",id:"due_date",value:(0,l.format)(new Date(V.due_date),"yyyy-MM-dd")})]})]})]})};f7.IncomingContent=p;var m,M,w;return f7}var s$;function rY2(){if(s$)return s7;s$=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,z=1,g=arguments.length;z0&&F[F.length-1])&&(I[0]===6||I[0]===2)){_=0;continue}if(I[0]===3&&(!F||I[1]>F[0]&&I[1]0&&F[F.length-1])&&(I[0]===6||I[0]===2)){S=0;continue}if(I[0]===3&&(!F||I[1]>F[0]&&I[1]=P,Z=(0,s.useState)(0),I=Z[0],t1=Z[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]),n1=[{id:0,icon:(0,c.jsx)(l.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,c.jsx)(l.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,c.jsx)(l.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(I){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}),F(Number((z1=i1.list)===null||z1===void 0?void 0:z1.meta.last_page))},[J,B]),(0,c.jsxs)(v.BookmarkNotesContainer,{children:[(0,c.jsx)(v.BookmarkNotesHeader,{children:(0,c.jsx)(l.Title,n({level:4},{children:(0,u.t)("Bookmarks.Title")}))}),(0,c.jsxs)(v.BookmarkNotesBody,{children:[(0,c.jsx)(v.BookmarkNotesMenu,{children:(0,c.jsx)(l.List,{listItems:n1,selectedListItem:I,setSelectedListItem:t1})}),(0,c.jsxs)(v.BookmarkNotesContent,{children:[(0,c.jsx)(v.BookmarkNotesList,{children:(x=M1())===null||x===void 0?void 0:x.map(function(z1){var m1=z1.id,_1=z1.bookmarkable_type,I1=z1.value,U1=_1.split(":"),P1=_1.split("/").map(function(G1){return parseInt(G1)});return(0,c.jsxs)(v.BookmarkNotesItem,{children:[(0,c.jsxs)(l.Stack,{children:[(0,c.jsx)(v.StyledTitle,n({size:"lg",weight:"medium",onClick:function(){return V(P1[0],P1[1],P1[2])}},{children:"".concat(U1[1]," : ").concat(U1[2])})),I1&&(0,c.jsx)(v.NoteText,{children:I1})]}),(0,c.jsx)(l.Button,n({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,c.jsx)(l.Text,n({weight:"light"},{children:(0,u.t)("Bookmarks.NoBookmarks")}))]})]}),(0,c.jsxs)(v.BookmarksPage,{children:[(0,c.jsx)(l.Button,n({type:"button",mode:"outline",disabled:W,onClick:function(){return _(B-1)}},{children:(0,u.t)("Bookmarks.Prev")})),(0,c.jsx)(l.Title,{children:"".concat((0,u.t)("Bookmarks.Page")," ").concat(B," / ").concat(P||1)}),(0,c.jsx)(l.Button,n({type:"button",mode:"outline",disabled:U,onClick:function(){return _(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}(SV)),SV}var Fd={},d$;function lY2(){if(d$)return Fd;d$=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=P,Z=(0,s.useState)(0),I=Z[0],t1=Z[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]),n1=[{id:0,icon:(0,c.jsx)(l.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,c.jsx)(l.Icon,{name:"editAlt"}),text:(0,u.t)("Bookmarks.Notes"),numberOfItems:!((M=i1.list)===null||M===void 0)&&M.data.length?Number(h1==null?void 0:h1.length):0},{id:2,icon:(0,c.jsx)(l.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(I){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}),F(Number((z1=i1.list)===null||z1===void 0?void 0:z1.meta.last_page))},[J,B]),(0,c.jsxs)(v.BookmarkNotesContainer,{children:[(0,c.jsx)(v.BookmarkNotesHeader,{children:(0,c.jsx)(l.Title,n({level:4},{children:(0,u.t)("Bookmarks.Title")}))}),(0,c.jsxs)(v.BookmarkNotesBody,{children:[(0,c.jsx)(v.BookmarkNotesMenu,{children:(0,c.jsx)(l.List,{listItems:n1,selectedListItem:I,setSelectedListItem:t1})}),(0,c.jsxs)(v.BookmarkNotesContent,{children:[(0,c.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,c.jsxs)(v.BookmarkNotesItem,{children:[(0,c.jsxs)(l.Stack,{children:[(0,c.jsx)(v.StyledTitle,n({size:"lg",weight:"medium",onClick:function(){return V(P1[0],P1[1],P1[2])}},{children:"".concat(U1[1]," : ").concat(U1[2])})),I1&&(0,c.jsx)(v.NoteText,{children:I1})]}),(0,c.jsx)(l.Button,n({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,c.jsx)(l.Text,n({weight:"light"},{children:(0,u.t)("Bookmarks.NoBookmarks")}))]})]}),(0,c.jsxs)(v.BookmarksPage,{children:[(0,c.jsx)(l.Button,n({type:"button",mode:"outline",disabled:W,onClick:function(){return S(B-1)}},{children:(0,u.t)("Bookmarks.Prev")})),(0,c.jsx)(l.Title,{children:"".concat((0,u.t)("Bookmarks.Page")," ").concat(B," / ").concat(P||1)}),(0,c.jsx)(l.Button,n({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)(z||(z=e([""],[""]))));var z}(_V)),_V}var Fd={},f$;function sY2(){if(f$)return Fd;f$=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",E0({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",E0({className:"drawer-menu-item__icon"},{children:(0,p2.jsx)(mY2,{})}))]}):(0,p2.jsx)("div",E0({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)(HY2,E0({className:"wellms-component ".concat(c)},{children:[(0,p2.jsx)(MY2,{}),(0,p2.jsxs)("div",E0({className:"header"},{children:[(0,p2.jsx)(g$.Logo,E0({},n)),(0,p2.jsxs)(p$,{children:[(0,p2.jsxs)(p$,{children:[t.cart,t.notification,t.profile]}),(0,p2.jsxs)("span",E0({className:"menu-button",onClick:function(){return s(!0)},onKeyUp:function(){return s(!0)},role:"button","aria-label":(0,gY2.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)(dY2.default,E0({open:h,className:"drawer drawer-header-wrapper",classNames:{wrapper:"drawer-content-wrapper custom-drawer-wrapper",content:"drawer-content"}},{children:[(0,p2.jsx)("div",E0({className:"drawer-header"},{children:Object.keys(v).length>0?(0,p2.jsx)("div",E0({className:"drawer-nested-submenu-header-container",onClick:function(){return m()},onKeyUp:function(){return m()},role:"button",tabIndex:0},{children:(0,p2.jsxs)(TV.Row,E0({align:"center"},{children:[(0,p2.jsx)(TV.Col,E0({xs:2},{children:(0,p2.jsx)("div",E0({className:"menu-drawer-prev"},{children:(0,p2.jsx)(pY2,{})}))})),(0,p2.jsx)(TV.Col,E0({xs:8,className:"drawer-nested-submenu-header"},{children:(0,p2.jsx)(fY2.Text,E0({size:"14",bold:!0},{children:v[Object.keys(v).length-1].title}))}))]}))})):(0,p2.jsxs)(p2.Fragment,{children:[(0,p2.jsx)(g$.Logo,E0({},n)),(0,p2.jsx)("span",E0({className:"menu-drawer-close",onClick:function(){return s(!h)},onKeyUp:function(){return s(!h)},role:"button",tabIndex:0},{children:(0,p2.jsx)(zY2,{})}))]})})),r&&(0,p2.jsx)("div",E0({className:"drawer-search"},{children:(0,p2.jsx)(vY2.Fragment,{children:r})})),(0,p2.jsx)("div",{children:z(M)})]}))]})):(0,p2.jsx)(p2.Fragment,{})})};g21=DS.Navigation=wY2;var m$,z$,M$,DL={};(function(t){var e=b&&b.__makeTemplateObject||function(p,m){return Object.defineProperty?Object.defineProperty(p,"raw",{value:m}):p.raw=m,p},n=b&&b.__assign||function(){return n=Object.assign||function(p){for(var m,z=1,w=arguments.length;z0&&(0,p2.jsx)("li",{children:(0,p2.jsx)("div",E0({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",E0({className:"drawer-menu-item__icon"},{children:(0,p2.jsx)(zY2,{})}))]}):(0,p2.jsx)("div",E0({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,E0({className:"wellms-component ".concat(c)},{children:[(0,p2.jsx)(HY2,{}),(0,p2.jsxs)("div",E0({className:"header"},{children:[(0,p2.jsx)(p$.Logo,E0({},n)),(0,p2.jsxs)(m$,{children:[(0,p2.jsxs)(m$,{children:[t.cart,t.notification,t.profile]}),(0,p2.jsxs)("span",E0({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,E0({open:h,className:"drawer drawer-header-wrapper",classNames:{wrapper:"drawer-content-wrapper custom-drawer-wrapper",content:"drawer-content"}},{children:[(0,p2.jsx)("div",E0({className:"drawer-header"},{children:Object.keys(v).length>0?(0,p2.jsx)("div",E0({className:"drawer-nested-submenu-header-container",onClick:function(){return m()},onKeyUp:function(){return m()},role:"button",tabIndex:0},{children:(0,p2.jsxs)(TV.Row,E0({align:"center"},{children:[(0,p2.jsx)(TV.Col,E0({xs:2},{children:(0,p2.jsx)("div",E0({className:"menu-drawer-prev"},{children:(0,p2.jsx)(mY2,{})}))})),(0,p2.jsx)(TV.Col,E0({xs:8,className:"drawer-nested-submenu-header"},{children:(0,p2.jsx)(gY2.Text,E0({size:"14",bold:!0},{children:v[Object.keys(v).length-1].title}))}))]}))})):(0,p2.jsxs)(p2.Fragment,{children:[(0,p2.jsx)(p$.Logo,E0({},n)),(0,p2.jsx)("span",E0({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",E0({className:"drawer-search"},{children:(0,p2.jsx)(dY2.Fragment,{children:r})})),(0,p2.jsx)("div",{children:M(z)})]}))]})):(0,p2.jsx)(p2.Fragment,{})})};m21=D_.Navigation=yY2;var z$,M$,H$,DL={};(function(t){var e=b&&b.__makeTemplateObject||function(p,m){return Object.defineProperty?Object.defineProperty(p,"raw",{value:m}):p.raw=m,p},n=b&&b.__assign||function(){return n=Object.assign||function(p){for(var m,M=1,w=arguments.length;M0?r1.length===2?typeof r1[1]==l?this[r1[0]]=r1[1].call(this,q):this[r1[0]]=r1[1]:r1.length===3?typeof r1[1]===l&&!(r1[1].exec&&r1[1].test)?this[r1[0]]=q?r1[1].call(this,q,r1[2]):a:this[r1[0]]=q?q.replace(r1[1],r1[2]):a:r1.length===4&&(this[r1[0]]=q?r1[3].call(this,q.replace(r1[1],r1[2])):a):this[r1]=q||a;X+=2}},rt=function(H1,b1){for(var X in b1)if(typeof b1[X]===s&&b1[X].length>0){for(var f1=0;f12&&(E[f]="iPad",E[M]=w),E},this.getEngine=function(){var E={};return E[d]=a,E[H]=a,X1.call(E,f1,G.engine),E},this.getOS=function(){var E={};return E[d]=a,E[H]=a,X1.call(E,f1,G.os),r1&&!E[d]&&e1&&e1.platform!="Unknown"&&(E[d]=e1.platform.replace(/chrome os/i,z1).replace(/macos/i,m1)),E},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(E){return f1=typeof E===u&&E.length>C?at(E,C):E,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 n!==h&&(n.jQuery||n.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 yY2=RL.exports;Object.defineProperty(Ut,"__esModule",{value:!0});function xY2(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var Q4=S,q0=xY2(Q4),p21=yY2,Eo=new p21,en=Eo.getBrowser(),VY2=Eo.getCPU(),da=Eo.getDevice(),fO=Eo.getEngine(),Po=Eo.getOS(),ou=Eo.getUA(),m21=function(e){return Eo.setUA(e)},cu=function(e){if(!e){console.error("No userAgent string was provided");return}var n=new p21(e);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(r){return n.setUA(r)}}},z21=Object.freeze({ClientUAInstance:Eo,browser:en,cpu:VY2,device:da,engine:fO,os:Po,ua:ou,setUa:m21,parseUserAgent:cu});function H$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function CY2(t){for(var e=1;e=0)&&(n[r]=t[r]);return n}function ir(t,e){if(t==null)return{};var n=_Y2(t,e),a,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function Nf(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function TY2(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 OY2(t,e){return AY2(t)||kY2(t,e)||EY2(t,e)||PY2()}function AY2(t){if(Array.isArray(t))return t}function kY2(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],r=!0,o=!1,c,l;try{for(n=n.call(t);!(r=(c=n.next()).done)&&(a.push(c.value),!(e&&a.length===e));r=!0);}catch(h){o=!0,l=h}finally{try{!r&&n.return!=null&&n.return()}finally{if(o)throw l}}return a}}function EY2(t,e){if(t){if(typeof t=="string")return y$(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y$(t,e)}}function y$(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:"none";return e||n},gO=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},pO=function(e){var n=gO();return n&&n.platform&&(n.platform.indexOf(e)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},jY2=function(e,n,a,r,o){return{isBrowser:e,browserMajorVersion:z2(n.major),browserFullVersion:z2(n.version),browserName:z2(n.name),engineName:z2(a.name),engineVersion:z2(a.version),osName:z2(r.name),osVersion:z2(r.version),userAgent:z2(o)}},x$=function(e,n,a,r){return CY2({},e,{vendor:z2(n.vendor),model:z2(n.model),os:z2(a.name),osVersion:z2(a.version),ua:z2(r)})},IY2=function(e,n,a,r){return{isSmartTV:e,engineName:z2(n.name),engineVersion:z2(n.version),osName:z2(a.name),osVersion:z2(a.version),userAgent:z2(r)}},FY2=function(e,n,a,r){return{isConsole:e,engineName:z2(n.name),engineVersion:z2(n.version),osName:z2(a.name),osVersion:z2(a.version),userAgent:z2(r)}},$Y2=function(e,n,a,r){return{isWearable:e,engineName:z2(n.name),engineVersion:z2(n.version),osName:z2(a.name),osVersion:z2(a.version),userAgent:z2(r)}},UY2=function(e,n,a,r,o){return{isEmbedded:e,vendor:z2(n.vendor),model:z2(n.model),engineName:z2(a.name),engineVersion:z2(a.version),osName:z2(r.name),osVersion:z2(r.version),userAgent:z2(o)}};function WY2(t){var e=t?cu(t):z21,n=e.device,a=e.browser,r=e.engine,o=e.os,c=e.ua,l=DY2(n.type),h=l.isBrowser,s=l.isMobile,u=l.isTablet,v=l.isSmartTV,f=l.isConsole,d=l.isWearable,M=l.isEmbedded;if(h)return jY2(h,a,r,o,c);if(v)return IY2(v,r,o,c);if(f)return FY2(f,r,o,c);if(s||u)return x$(l,n,o,c);if(d)return $Y2(d,r,o,c);if(M)return UY2(M,n,r,o,c)}var M21=function(e){var n=e.type;return n===W4.Mobile},H21=function(e){var n=e.type;return n===W4.Tablet},w21=function(e){var n=e.type;return n===W4.Mobile||n===W4.Tablet},y21=function(e){var n=e.type;return n===W4.SmartTv},zp=function(e){var n=e.type;return n===W4.Browser},x21=function(e){var n=e.type;return n===W4.Wearable},V21=function(e){var n=e.type;return n===W4.Console},C21=function(e){var n=e.type;return n===W4.Embedded},b21=function(e){var n=e.vendor;return z2(n)},L21=function(e){var n=e.model;return z2(n)},B21=function(e){var n=e.type;return z2(n,"browser")},S21=function(e){var n=e.name;return n===a9.Android},_21=function(e){var n=e.name;return n===a9.Windows},T21=function(e){var n=e.name;return n===a9.MAC_OS},O21=function(e){var n=e.name;return n===a9.WindowsPhone},A21=function(e){var n=e.name;return n===a9.IOS},k21=function(e){var n=e.version;return z2(n)},E21=function(e){var n=e.name;return z2(n)},P21=function(e){var n=e.name;return n===$n.Chrome},N21=function(e){var n=e.name;return n===$n.Firefox},D21=function(e){var n=e.name;return n===$n.Chromium},Mp=function(e){var n=e.name;return n===$n.Edge},R21=function(e){var n=e.name;return n===$n.Yandex},j21=function(e){var n=e.name;return n===$n.Safari||n===$n.MobileSafari},I21=function(e){var n=e.name;return n===$n.MobileSafari},F21=function(e){var n=e.name;return n===$n.Opera},$21=function(e){var n=e.name;return n===$n.InternetExplorer||n===$n.Ie},U21=function(e){var n=e.name;return n===$n.MIUI},W21=function(e){var n=e.name;return n===$n.SamsungBrowser},q21=function(e){var n=e.version;return z2(n)},G21=function(e){var n=e.major;return z2(n)},K21=function(e){var n=e.name;return z2(n)},Y21=function(e){var n=e.name;return z2(n)},Z21=function(e){var n=e.version;return z2(n)},Q21=function(){var e=gO(),n=e&&e.userAgent&&e.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},Fc=function(e){return typeof e=="string"&&e.indexOf("Edg/")!==-1},X21=function(){var e=gO();return e&&(/iPad|iPhone|iPod/.test(e.platform)||e.platform==="MacIntel"&&e.maxTouchPoints>1)&&!window.MSStream},h5=function(){return pO("iPad")},J21=function(){return pO("iPhone")},t01=function(){return pO("iPod")},e01=function(e){return z2(e)};function n01(t){var e=t||z21,n=e.device,a=e.browser,r=e.os,o=e.engine,c=e.ua;return{isSmartTV:y21(n),isConsole:V21(n),isWearable:x21(n),isEmbedded:C21(n),isMobileSafari:I21(a)||h5(),isChromium:D21(a),isMobile:w21(n)||h5(),isMobileOnly:M21(n),isTablet:H21(n)||h5(),isBrowser:zp(n),isDesktop:zp(n),isAndroid:S21(r),isWinPhone:O21(r),isIOS:A21(r)||h5(),isChrome:P21(a),isFirefox:N21(a),isSafari:j21(a),isOpera:F21(a),isIE:$21(a),osVersion:k21(r),osName:E21(r),fullBrowserVersion:q21(a),browserVersion:G21(a),browserName:K21(a),mobileVendor:b21(n),mobileModel:L21(n),engineName:Y21(o),engineVersion:Z21(o),getUA:e01(c),isEdge:Mp(a)||Fc(c),isYandex:R21(a),deviceType:B21(n),isIOS13:X21(),isIPad13:h5(),isIPhone13:J21(),isIPod13:t01(),isElectron:Q21(),isEdgeChromium:Fc(c),isLegacyEdge:Mp(a)&&!Fc(c),isWindows:_21(r),isMacOs:T21(r),isMIUI:U21(a),isSamsungBrowser:W21(a)}}var a01=y21(da),r01=V21(da),i01=x21(da),qY2=C21(da),GY2=I21(en)||h5(),KY2=D21(en),SM=w21(da)||h5(),o01=M21(da),c01=H21(da)||h5(),l01=zp(da),YY2=zp(da),s01=S21(Po),h01=O21(Po),u01=A21(Po)||h5(),ZY2=P21(en),QY2=N21(en),XY2=j21(en),JY2=F21(en),v01=$21(en),tZ2=k21(Po),eZ2=E21(Po),nZ2=q21(en),aZ2=G21(en),rZ2=K21(en),iZ2=b21(da),oZ2=L21(da),cZ2=Y21(fO),lZ2=Z21(fO),sZ2=e01(ou),hZ2=Mp(en)||Fc(ou),uZ2=R21(en),vZ2=B21(da),dZ2=X21(),fZ2=h5(),gZ2=J21(),pZ2=t01(),mZ2=Q21(),zZ2=Fc(ou),MZ2=Mp(en)&&!Fc(ou),HZ2=_21(Po),wZ2=T21(Po),yZ2=U21(en),xZ2=W21(en),VZ2=function(e){if(!e||typeof e!="string"){console.error("No valid user agent string was provided");return}var n=cu(e),a=n.device,r=n.browser,o=n.os,c=n.engine,l=n.ua;return n01({device:a,browser:r,os:o,engine:c,ua:l})},CZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return s01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},bZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return l01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},LZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return v01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},BZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return u01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},SZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return SM?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},_Z2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return c01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},TZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return h01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},OZ2=function(e){var n=e.renderWithFragment,a=e.children;e.viewClassName,e.style;var r=ir(e,["renderWithFragment","children","viewClassName","style"]);return o01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},AZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return a01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},kZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return r01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},EZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return i01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},PZ2=function(e){var n=e.renderWithFragment,a=e.children;e.viewClassName,e.style;var r=e.condition,o=ir(e,["renderWithFragment","children","viewClassName","style","condition"]);return r?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",o,a):null};function NZ2(t){return function(e){SY2(n,e);function n(a){var r;return bY2(this,n),r=TY2(this,IL(n).call(this,a)),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 LY2(n,[{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&&SM&&(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 q0.createElement(t,jL({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(q0.Component)}function DZ2(){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=OY2(t,2),n=e[0],a=e[1],r=Q4.useCallback(function(){var o=window.innerWidth>window.innerHeight?90:0,c={isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"};n.orientation!==c.orientation&&a(c)},[n.orientation]);return Q4.useEffect(function(){return(typeof window>"u"?"undefined":ds(window))!==void 0&&SM&&(r(),window.addEventListener("load",r,!1),window.addEventListener("resize",r,!1)),function(){window.removeEventListener("resize",r,!1),window.removeEventListener("load",r,!1)}},[r]),n}function d01(t){var e=t||window.navigator.userAgent;return cu(e)}function RZ2(t){var e=t||window.navigator.userAgent,n=d01(e),a=n01(n);return[a,n]}Ut.AndroidView=CZ2;Ut.BrowserTypes=$n;Ut.BrowserView=bZ2;Ut.ConsoleView=kZ2;Ut.CustomView=PZ2;Ut.IEView=LZ2;Ut.IOSView=BZ2;Ut.MobileOnlyView=OZ2;Ut.MobileView=SZ2;Ut.OsTypes=a9;Ut.SmartTVView=AZ2;Ut.TabletView=_Z2;Ut.WearableView=EZ2;Ut.WinPhoneView=TZ2;Ut.browserName=rZ2;Ut.browserVersion=aZ2;Ut.deviceDetect=WY2;Ut.deviceType=vZ2;Ut.engineName=cZ2;Ut.engineVersion=lZ2;Ut.fullBrowserVersion=nZ2;Ut.getSelectorsByUserAgent=VZ2;Ut.getUA=sZ2;Ut.isAndroid=s01;Ut.isBrowser=l01;Ut.isChrome=ZY2;Ut.isChromium=KY2;Ut.isConsole=r01;Ut.isDesktop=YY2;Ut.isEdge=hZ2;Ut.isEdgeChromium=zZ2;Ut.isElectron=mZ2;Ut.isEmbedded=qY2;Ut.isFirefox=QY2;Ut.isIE=v01;Ut.isIOS=u01;Ut.isIOS13=dZ2;Ut.isIPad13=fZ2;Ut.isIPhone13=gZ2;Ut.isIPod13=pZ2;Ut.isLegacyEdge=MZ2;Ut.isMIUI=yZ2;Ut.isMacOs=wZ2;var Oa=Ut.isMobile=SM;Ut.isMobileOnly=o01;Ut.isMobileSafari=GY2;Ut.isOpera=JY2;Ut.isSafari=XY2;Ut.isSamsungBrowser=xZ2;Ut.isSmartTV=a01;Ut.isTablet=c01;Ut.isWearable=i01;Ut.isWinPhone=h01;Ut.isWindows=HZ2;Ut.isYandex=uZ2;Ut.mobileModel=oZ2;Ut.mobileVendor=iZ2;Ut.osName=eZ2;Ut.osVersion=tZ2;Ut.parseUserAgent=cu;Ut.setUserAgent=RY2;Ut.useDeviceData=d01;Ut.useDeviceSelectors=RZ2;Ut.useMobileOrientation=DZ2;Ut.withOrientationChange=NZ2;const Oe0=()=>$.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Ae0=()=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14.002",height:"13.36",viewBox:"0 0 14.002 13.36",children:$.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"})}),ke0=()=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14.002",height:"13.998",viewBox:"0 0 14.002 13.998",children:$.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"})}),Ee0=()=>$.jsx("svg",{width:"23",height:"21",viewBox:"0 0 23 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Pe0=()=>$.jsx("svg",{width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Ne0=()=>$.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),De0=()=>$.jsx("svg",{width:"20",height:"15",viewBox:"0 0 20 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Re0=()=>$.jsx("svg",{width:"22",height:"23",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),je0=()=>$.jsx("svg",{className:"icon-squares",width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Ie0=()=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10.918",height:"6.159",viewBox:"0 0 10.918 6.159",children:$.jsx("g",{id:"arw",transform:"translate(0.5 5.659) rotate(-90)",children:$.jsxs("g",{id:"Group_9","data-name":"Group 9",transform:"translate(-0.5 -0.5)",children:[$.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"}),$.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"})]})})}),Fe0=({width:t="20px",height:e="21px",color:n="#4A4A4A"})=>$.jsx("svg",{width:t,height:e,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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:n})}),$e0=()=>$.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Ue0=({color:t="#fff"})=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"5.921",height:"10.387",viewBox:"0 0 5.921 10.387",children:$.jsx("g",{id:"arrow",transform:"translate(-97.139 0)",children:$.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})})}),V$=({mode:t})=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23.656",height:"23.634",viewBox:"0 0 23.656 23.634",children:$.jsxs("g",{id:"layer1",transform:"translate(33.999 -246.006)",children:[$.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"}),$.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"}),$.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"})]})}),jZ2=({mode:t})=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",children:$.jsxs("g",{id:"_103571_globe_icon","data-name":"103571_globe_icon",transform:"translate(0 0.068)",children:[$.jsx("g",{id:"background",transform:"translate(0 -0.068)",children:$.jsx("rect",{id:"Rectangle_4458","data-name":"Rectangle 4458",width:"14",height:"14",fill:"none"})}),$.jsx("g",{id:"earth",transform:"translate(0.223 0.155)",children:$.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"})})]})}),C$=({mode:t})=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25.311",height:"26.784",viewBox:"0 0 25.311 26.784",children:$.jsx("g",{id:"_26._Notification","data-name":"26. Notification",transform:"matrix(0.978, 0.208, -0.208, 0.978, 3.787, -0.208)",children:$.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"})})}),IZ2=()=>$.jsxs("svg",{id:"back-arw",xmlns:"http://www.w3.org/2000/svg",width:"19.407",height:"17",viewBox:"0 0 19.407 17",children:[$.jsx("g",{id:"Group_30","data-name":"Group 30",transform:"translate(9.675 0)",children:$.jsx("g",{id:"Group_29","data-name":"Group 29",transform:"translate(0 0)",children:$.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"})})}),$.jsx("g",{id:"Group_32","data-name":"Group 32",transform:"translate(0 7.285)",children:$.jsx("g",{id:"Group_31","data-name":"Group 31",transform:"translate(0 0)",children:$.jsx("rect",{id:"Rectangle_4181","data-name":"Rectangle 4181",width:"16.977",height:"2.425",fill:"#ee312f"})})})]}),b$=({mode:t})=>$.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:$.jsx("g",{id:"vuesax_linear_profile-circle","data-name":"vuesax/linear/profile-circle",transform:"translate(-492 -252)",children:$.jsxs("g",{id:"profile-circle",transform:"translate(492 252)",children:[$.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"}),$.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"}),$.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"}),$.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"})]})})}),We0=({color:t="white"})=>$.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),qe0=()=>$.jsx("svg",{width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.jsx("path",{d:"M8 0C8.55228 0 9 0.447715 9 1V11.5858L11.2929 9.29289C11.6834 8.90237 12.3166 8.90237 12.7071 9.29289C13.0976 9.68342 13.0976 10.3166 12.7071 10.7071L8.70711 14.7071C8.31658 15.0976 7.68342 15.0976 7.29289 14.7071L3.29289 10.7071C2.90237 10.3166 2.90237 9.68342 3.29289 9.29289C3.68342 8.90237 4.31658 8.90237 4.70711 9.29289L7 11.5858V1C7 0.447715 7.44772 0 8 0ZM1 15C1.55228 15 2 15.4477 2 16V18H14V16C14 15.4477 14.4477 15 15 15C15.5523 15 16 15.4477 16 16V18C16 19.1046 15.1046 20 14 20H2C0.895431 20 0 19.1046 0 18V16C0 15.4477 0.447715 15 1 15Z",fill:"currentColor"})}),Ge0=()=>$.jsx("svg",{viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Ke0=()=>$.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:[$.jsx("g",{children:$.jsx("g",{children:$.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}),z=function(p){var m=p.onItemSelected,M=p.onInputSubmitted,w=(0,c.useRef)(),x=(0,c.useState)(!1),y=x[0],V=x[1],C=(0,c.useState)([]),L=C[0],B=C[1],S=(0,c.useContext)(s.EscolaLMSContext).apiUrl,T=(0,c.useCallback)(function(Z){B(function(I){return a(a([],I,!0),Z,!0).filter(function(t1,R,i1){return i1.findIndex(function(J){return J.id===t1.id})===R})})},[]),P=(0,c.useCallback)(function(Z){V(!0),w.current&&w.current.abort(),w.current=new AbortController,h.course.bind(null,S)({title:Z},{signal:w.current&&w.current.signal}).then(function(I){I&&I.success&&T(I.data)}).catch(function(){return V(!1)}).finally(function(){return V(!1)})},[]),F=(0,c.useCallback)(function(Z){P(Z)},[]),W=(0,c.useCallback)(function(Z){return M(Z)},[]),U=(0,l.useTranslation)().t;return(0,o.jsx)(f,{children:(0,o.jsx)(u.Search,n({loading:y,onSearch:F,onSubmit:W,placeholder:U("Search.Placeholder")},{children:L.map(function(Z){return(0,o.jsx)(d,n({block:!0,mode:"white",onClick:function(){m(Z)}},{children:Z.title}),Z.id)})}))})};t.SearchCourses=z,t.default=t.SearchCourses;var g,H})(DL);var Ut={},RL={exports:{}};(function(t,e){(function(n,a){var r="1.0.37",o="",c="?",l="function",h="undefined",s="object",u="string",v="major",f="model",d="name",z="type",g="vendor",H="version",p="architecture",m="console",M="mobile",w="tablet",x="smarttv",y="wearable",V="embedded",C=500,L="Amazon",B="Apple",S="ASUS",T="BlackBerry",P="Browser",F="Chrome",W="Edge",U="Firefox",Z="Google",I="Huawei",t1="LG",R="Microsoft",i1="Motorola",J="Opera",A="Samsung",o1="Sharp",h1="Sony",n1="Xiaomi",M1="Zebra",s1="Facebook",z1="Chromium OS",m1="Mac OS",S1=function(H1,b1){var X={};for(var f1 in H1)b1[f1]&&b1[f1].length%2===0?X[f1]=b1[f1].concat(H1[f1]):X[f1]=H1[f1];return X},I1=function(H1){for(var b1={},X=0;X0?r1.length===2?typeof r1[1]==l?this[r1[0]]=r1[1].call(this,q):this[r1[0]]=r1[1]:r1.length===3?typeof r1[1]===l&&!(r1[1].exec&&r1[1].test)?this[r1[0]]=q?r1[1].call(this,q,r1[2]):a:this[r1[0]]=q?q.replace(r1[1],r1[2]):a:r1.length===4&&(this[r1[0]]=q?r1[3].call(this,q.replace(r1[1],r1[2])):a):this[r1]=q||a;X+=2}},rt=function(H1,b1){for(var X in b1)if(typeof b1[X]===s&&b1[X].length>0){for(var f1=0;f12&&(E[f]="iPad",E[z]=w),E},this.getEngine=function(){var E={};return E[d]=a,E[H]=a,X1.call(E,f1,G.engine),E},this.getOS=function(){var E={};return E[d]=a,E[H]=a,X1.call(E,f1,G.os),r1&&!E[d]&&e1&&e1.platform!="Unknown"&&(E[d]=e1.platform.replace(/chrome os/i,z1).replace(/macos/i,m1)),E},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(E){return f1=typeof E===u&&E.length>C?at(E,C):E,this},this.setUA(f1),this};V1.VERSION=r,V1.BROWSER=I1([d,H,v]),V1.CPU=I1([p]),V1.DEVICE=I1([f,g,z,m,M,x,w,y,V]),V1.ENGINE=V1.OS=I1([d,H]),t.exports&&(e=t.exports=V1),e.UAParser=V1;var q1=typeof n!==h&&(n.jQuery||n.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=_,q0=VY2(Q4),z21=xY2,Po=new z21,en=Po.getBrowser(),CY2=Po.getCPU(),da=Po.getDevice(),fO=Po.getEngine(),No=Po.getOS(),ou=Po.getUA(),M21=function(e){return Po.setUA(e)},cu=function(e){if(!e){console.error("No userAgent string was provided");return}var n=new z21(e);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(r){return n.setUA(r)}}},H21=Object.freeze({ClientUAInstance:Po,browser:en,cpu:CY2,device:da,engine:fO,os:No,ua:ou,setUa:M21,parseUserAgent:cu});function w$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function bY2(t){for(var e=1;e=0)&&(n[r]=t[r]);return n}function ir(t,e){if(t==null)return{};var n=TY2(t,e),a,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}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 n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],r=!0,o=!1,c,l;try{for(n=n.call(t);!(r=(c=n.next()).done)&&(a.push(c.value),!(e&&a.length===e));r=!0);}catch(h){o=!0,l=h}finally{try{!r&&n.return!=null&&n.return()}finally{if(o)throw l}}return a}}function PY2(t,e){if(t){if(typeof t=="string")return x$(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x$(t,e)}}function x$(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:"none";return e||n},gO=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},pO=function(e){var n=gO();return n&&n.platform&&(n.platform.indexOf(e)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},IY2=function(e,n,a,r,o){return{isBrowser:e,browserMajorVersion:z2(n.major),browserFullVersion:z2(n.version),browserName:z2(n.name),engineName:z2(a.name),engineVersion:z2(a.version),osName:z2(r.name),osVersion:z2(r.version),userAgent:z2(o)}},V$=function(e,n,a,r){return bY2({},e,{vendor:z2(n.vendor),model:z2(n.model),os:z2(a.name),osVersion:z2(a.version),ua:z2(r)})},FY2=function(e,n,a,r){return{isSmartTV:e,engineName:z2(n.name),engineVersion:z2(n.version),osName:z2(a.name),osVersion:z2(a.version),userAgent:z2(r)}},$Y2=function(e,n,a,r){return{isConsole:e,engineName:z2(n.name),engineVersion:z2(n.version),osName:z2(a.name),osVersion:z2(a.version),userAgent:z2(r)}},UY2=function(e,n,a,r){return{isWearable:e,engineName:z2(n.name),engineVersion:z2(n.version),osName:z2(a.name),osVersion:z2(a.version),userAgent:z2(r)}},WY2=function(e,n,a,r,o){return{isEmbedded:e,vendor:z2(n.vendor),model:z2(n.model),engineName:z2(a.name),engineVersion:z2(a.version),osName:z2(r.name),osVersion:z2(r.version),userAgent:z2(o)}};function qY2(t){var e=t?cu(t):H21,n=e.device,a=e.browser,r=e.engine,o=e.os,c=e.ua,l=RY2(n.type),h=l.isBrowser,s=l.isMobile,u=l.isTablet,v=l.isSmartTV,f=l.isConsole,d=l.isWearable,z=l.isEmbedded;if(h)return IY2(h,a,r,o,c);if(v)return FY2(v,r,o,c);if(f)return $Y2(f,r,o,c);if(s||u)return V$(l,n,o,c);if(d)return UY2(d,r,o,c);if(z)return WY2(z,n,r,o,c)}var w21=function(e){var n=e.type;return n===W4.Mobile},y21=function(e){var n=e.type;return n===W4.Tablet},x21=function(e){var n=e.type;return n===W4.Mobile||n===W4.Tablet},V21=function(e){var n=e.type;return n===W4.SmartTv},zp=function(e){var n=e.type;return n===W4.Browser},C21=function(e){var n=e.type;return n===W4.Wearable},b21=function(e){var n=e.type;return n===W4.Console},L21=function(e){var n=e.type;return n===W4.Embedded},B21=function(e){var n=e.vendor;return z2(n)},_21=function(e){var n=e.model;return z2(n)},S21=function(e){var n=e.type;return z2(n,"browser")},T21=function(e){var n=e.name;return n===a9.Android},O21=function(e){var n=e.name;return n===a9.Windows},A21=function(e){var n=e.name;return n===a9.MAC_OS},k21=function(e){var n=e.name;return n===a9.WindowsPhone},E21=function(e){var n=e.name;return n===a9.IOS},P21=function(e){var n=e.version;return z2(n)},N21=function(e){var n=e.name;return z2(n)},D21=function(e){var n=e.name;return n===$n.Chrome},R21=function(e){var n=e.name;return n===$n.Firefox},j21=function(e){var n=e.name;return n===$n.Chromium},Mp=function(e){var n=e.name;return n===$n.Edge},I21=function(e){var n=e.name;return n===$n.Yandex},F21=function(e){var n=e.name;return n===$n.Safari||n===$n.MobileSafari},$21=function(e){var n=e.name;return n===$n.MobileSafari},U21=function(e){var n=e.name;return n===$n.Opera},W21=function(e){var n=e.name;return n===$n.InternetExplorer||n===$n.Ie},q21=function(e){var n=e.name;return n===$n.MIUI},G21=function(e){var n=e.name;return n===$n.SamsungBrowser},K21=function(e){var n=e.version;return z2(n)},Y21=function(e){var n=e.major;return z2(n)},Z21=function(e){var n=e.name;return z2(n)},Q21=function(e){var n=e.name;return z2(n)},X21=function(e){var n=e.version;return z2(n)},J21=function(){var e=gO(),n=e&&e.userAgent&&e.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},Fl=function(e){return typeof e=="string"&&e.indexOf("Edg/")!==-1},t01=function(){var e=gO();return e&&(/iPad|iPhone|iPod/.test(e.platform)||e.platform==="MacIntel"&&e.maxTouchPoints>1)&&!window.MSStream},si=function(){return pO("iPad")},e01=function(){return pO("iPhone")},n01=function(){return pO("iPod")},a01=function(e){return z2(e)};function r01(t){var e=t||H21,n=e.device,a=e.browser,r=e.os,o=e.engine,c=e.ua;return{isSmartTV:V21(n),isConsole:b21(n),isWearable:C21(n),isEmbedded:L21(n),isMobileSafari:$21(a)||si(),isChromium:j21(a),isMobile:x21(n)||si(),isMobileOnly:w21(n),isTablet:y21(n)||si(),isBrowser:zp(n),isDesktop:zp(n),isAndroid:T21(r),isWinPhone:k21(r),isIOS:E21(r)||si(),isChrome:D21(a),isFirefox:R21(a),isSafari:F21(a),isOpera:U21(a),isIE:W21(a),osVersion:P21(r),osName:N21(r),fullBrowserVersion:K21(a),browserVersion:Y21(a),browserName:Z21(a),mobileVendor:B21(n),mobileModel:_21(n),engineName:Q21(o),engineVersion:X21(o),getUA:a01(c),isEdge:Mp(a)||Fl(c),isYandex:I21(a),deviceType:S21(n),isIOS13:t01(),isIPad13:si(),isIPhone13:e01(),isIPod13:n01(),isElectron:J21(),isEdgeChromium:Fl(c),isLegacyEdge:Mp(a)&&!Fl(c),isWindows:O21(r),isMacOs:A21(r),isMIUI:q21(a),isSamsungBrowser:G21(a)}}var i01=V21(da),o01=b21(da),c01=C21(da),GY2=L21(da),KY2=$21(en)||si(),YY2=j21(en),_M=x21(da)||si(),l01=w21(da),s01=y21(da)||si(),h01=zp(da),ZY2=zp(da),u01=T21(No),v01=k21(No),d01=E21(No)||si(),QY2=D21(en),XY2=R21(en),JY2=F21(en),tZ2=U21(en),f01=W21(en),eZ2=P21(No),nZ2=N21(No),aZ2=K21(en),rZ2=Y21(en),iZ2=Z21(en),oZ2=B21(da),cZ2=_21(da),lZ2=Q21(fO),sZ2=X21(fO),hZ2=a01(ou),uZ2=Mp(en)||Fl(ou),vZ2=I21(en),dZ2=S21(da),fZ2=t01(),gZ2=si(),pZ2=e01(),mZ2=n01(),zZ2=J21(),MZ2=Fl(ou),HZ2=Mp(en)&&!Fl(ou),wZ2=O21(No),yZ2=A21(No),xZ2=q21(en),VZ2=G21(en),CZ2=function(e){if(!e||typeof e!="string"){console.error("No valid user agent string was provided");return}var n=cu(e),a=n.device,r=n.browser,o=n.os,c=n.engine,l=n.ua;return r01({device:a,browser:r,os:o,engine:c,ua:l})},bZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return u01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},LZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return h01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},BZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return f01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},_Z2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return d01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},SZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return _M?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},TZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return s01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},OZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return v01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},AZ2=function(e){var n=e.renderWithFragment,a=e.children;e.viewClassName,e.style;var r=ir(e,["renderWithFragment","children","viewClassName","style"]);return l01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},kZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return i01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},EZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return o01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},PZ2=function(e){var n=e.renderWithFragment,a=e.children,r=ir(e,["renderWithFragment","children"]);return c01?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",r,a):null},NZ2=function(e){var n=e.renderWithFragment,a=e.children;e.viewClassName,e.style;var r=e.condition,o=ir(e,["renderWithFragment","children","viewClassName","style","condition"]);return r?n?q0.createElement(Q4.Fragment,null,a):q0.createElement("div",o,a):null};function DZ2(t){return function(e){SY2(n,e);function n(a){var r;return LY2(this,n),r=OY2(this,IL(n).call(this,a)),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(n,[{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&&_M&&(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 q0.createElement(t,jL({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(q0.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),n=e[0],a=e[1],r=Q4.useCallback(function(){var o=window.innerWidth>window.innerHeight?90:0,c={isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"};n.orientation!==c.orientation&&a(c)},[n.orientation]);return Q4.useEffect(function(){return(typeof window>"u"?"undefined":ds(window))!==void 0&&_M&&(r(),window.addEventListener("load",r,!1),window.addEventListener("resize",r,!1)),function(){window.removeEventListener("resize",r,!1),window.removeEventListener("load",r,!1)}},[r]),n}function g01(t){var e=t||window.navigator.userAgent;return cu(e)}function jZ2(t){var e=t||window.navigator.userAgent,n=g01(e),a=r01(n);return[a,n]}Ut.AndroidView=bZ2;Ut.BrowserTypes=$n;Ut.BrowserView=LZ2;Ut.ConsoleView=EZ2;Ut.CustomView=NZ2;Ut.IEView=BZ2;Ut.IOSView=_Z2;Ut.MobileOnlyView=AZ2;Ut.MobileView=SZ2;Ut.OsTypes=a9;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=lZ2;Ut.engineVersion=sZ2;Ut.fullBrowserVersion=aZ2;Ut.getSelectorsByUserAgent=CZ2;Ut.getUA=hZ2;Ut.isAndroid=u01;Ut.isBrowser=h01;Ut.isChrome=QY2;Ut.isChromium=YY2;Ut.isConsole=o01;Ut.isDesktop=ZY2;Ut.isEdge=uZ2;Ut.isEdgeChromium=MZ2;Ut.isElectron=zZ2;Ut.isEmbedded=GY2;Ut.isFirefox=XY2;Ut.isIE=f01;Ut.isIOS=d01;Ut.isIOS13=fZ2;Ut.isIPad13=gZ2;Ut.isIPhone13=pZ2;Ut.isIPod13=mZ2;Ut.isLegacyEdge=HZ2;Ut.isMIUI=xZ2;Ut.isMacOs=yZ2;var Oa=Ut.isMobile=_M;Ut.isMobileOnly=l01;Ut.isMobileSafari=KY2;Ut.isOpera=tZ2;Ut.isSafari=JY2;Ut.isSamsungBrowser=VZ2;Ut.isSmartTV=i01;Ut.isTablet=s01;Ut.isWearable=c01;Ut.isWinPhone=v01;Ut.isWindows=wZ2;Ut.isYandex=vZ2;Ut.mobileModel=cZ2;Ut.mobileVendor=oZ2;Ut.osName=nZ2;Ut.osVersion=eZ2;Ut.parseUserAgent=cu;Ut.setUserAgent=jY2;Ut.useDeviceData=g01;Ut.useDeviceSelectors=jZ2;Ut.useMobileOrientation=RZ2;Ut.withOrientationChange=DZ2;const Ae0=()=>$.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),ke0=()=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14.002",height:"13.36",viewBox:"0 0 14.002 13.36",children:$.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"})}),Ee0=()=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14.002",height:"13.998",viewBox:"0 0 14.002 13.998",children:$.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"})}),Pe0=()=>$.jsx("svg",{width:"23",height:"21",viewBox:"0 0 23 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Ne0=()=>$.jsx("svg",{width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),De0=()=>$.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Re0=()=>$.jsx("svg",{width:"20",height:"15",viewBox:"0 0 20 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),je0=()=>$.jsx("svg",{width:"22",height:"23",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Ie0=()=>$.jsx("svg",{className:"icon-squares",width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Fe0=()=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10.918",height:"6.159",viewBox:"0 0 10.918 6.159",children:$.jsx("g",{id:"arw",transform:"translate(0.5 5.659) rotate(-90)",children:$.jsxs("g",{id:"Group_9","data-name":"Group 9",transform:"translate(-0.5 -0.5)",children:[$.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"}),$.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"})]})})}),$e0=({width:t="20px",height:e="21px",color:n="#4A4A4A"})=>$.jsx("svg",{width:t,height:e,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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:n})}),Ue0=()=>$.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),We0=({color:t="#fff"})=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"5.921",height:"10.387",viewBox:"0 0 5.921 10.387",children:$.jsx("g",{id:"arrow",transform:"translate(-97.139 0)",children:$.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})})}),C$=({mode:t})=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23.656",height:"23.634",viewBox:"0 0 23.656 23.634",children:$.jsxs("g",{id:"layer1",transform:"translate(33.999 -246.006)",children:[$.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"}),$.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"}),$.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})=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",children:$.jsxs("g",{id:"_103571_globe_icon","data-name":"103571_globe_icon",transform:"translate(0 0.068)",children:[$.jsx("g",{id:"background",transform:"translate(0 -0.068)",children:$.jsx("rect",{id:"Rectangle_4458","data-name":"Rectangle 4458",width:"14",height:"14",fill:"none"})}),$.jsx("g",{id:"earth",transform:"translate(0.223 0.155)",children:$.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"})})]})}),b$=({mode:t})=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25.311",height:"26.784",viewBox:"0 0 25.311 26.784",children:$.jsx("g",{id:"_26._Notification","data-name":"26. Notification",transform:"matrix(0.978, 0.208, -0.208, 0.978, 3.787, -0.208)",children:$.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=()=>$.jsxs("svg",{id:"back-arw",xmlns:"http://www.w3.org/2000/svg",width:"19.407",height:"17",viewBox:"0 0 19.407 17",children:[$.jsx("g",{id:"Group_30","data-name":"Group 30",transform:"translate(9.675 0)",children:$.jsx("g",{id:"Group_29","data-name":"Group 29",transform:"translate(0 0)",children:$.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"})})}),$.jsx("g",{id:"Group_32","data-name":"Group 32",transform:"translate(0 7.285)",children:$.jsx("g",{id:"Group_31","data-name":"Group 31",transform:"translate(0 0)",children:$.jsx("rect",{id:"Rectangle_4181","data-name":"Rectangle 4181",width:"16.977",height:"2.425",fill:"#ee312f"})})})]}),L$=({mode:t})=>$.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:$.jsx("g",{id:"vuesax_linear_profile-circle","data-name":"vuesax/linear/profile-circle",transform:"translate(-492 -252)",children:$.jsxs("g",{id:"profile-circle",transform:"translate(492 252)",children:[$.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"}),$.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"}),$.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"}),$.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"})]})})}),qe0=({color:t="white"})=>$.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Ge0=()=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13.757",height:"17.157",viewBox:"0 0 13.757 17.157",children:$.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"})}),Ke0=()=>$.jsx("svg",{viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Ye0=()=>$.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:[$.jsx("g",{children:$.jsx("g",{children:$.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 @@ -8943,7 +8979,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`})})}),$.jsx("g",{children:$.jsx("g",{children:$.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`})})})]}),Ye0=()=>$.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[$.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"}),$.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"}),$.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"}),$.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"})]}),Ze0=()=>$.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Qe0=()=>$.jsx("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Xe0=()=>$.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Je0=()=>$.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),t40=()=>$.jsx("svg",{width:"19",height:"21",viewBox:"0 0 19 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),e40=()=>$.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),n40=()=>$.jsxs("svg",{width:"21",height:"15",viewBox:"0 0 21 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[$.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"}),$.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"})]}),a40=()=>$.jsxs("svg",{width:"21",height:"19",viewBox:"0 0 21 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[$.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"}),$.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"})]}),r40=({width:t="25px",height:e="25px",color:n="#4A4A4A"})=>$.jsx("svg",{width:t,height:e,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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:n})}),i40=({width:t="25px",height:e="25px",color:n="#4A4A4A"})=>$.jsx("svg",{width:t,height:e,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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:n})}),o40=({width:t="25px",height:e="25px",color:n="#4A4A4A"})=>$.jsx("svg",{width:t,height:e,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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:n})}),c40=({width:t="24px",height:e="25px",color:n="#4A4A4A"})=>$.jsx("svg",{width:t,height:e,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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:n})}),l40=({width:t="21.976",height:e="21.976",color:n="currentColor"})=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:e,viewBox:`0 0 ${t} ${e}`,children:$.jsx("g",{id:"iX",transform:"translate(0 0)",children:$.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:n})})}),s40=({color:t="currentColor"})=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23.004",height:"18.002",viewBox:"0 0 23.004 18.002",children:$.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})});var FZ2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,$Z2={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},UZ2=function(e){return $Z2[e]},WZ2=function(e){return e.replace(FZ2,UZ2)};function L$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function B$(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};$L=B$(B$({},$L),t)}function KZ2(){return $L}var YZ2=function(){function t(){Jt(this,t),this.usedNamespaces={}}return t2(t,[{key:"addUsedNamespaces",value:function(n){var a=this;n.forEach(function(r){a.usedNamespaces[r]||(a.usedNamespaces[r]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function ZZ2(t){f01=t}function QZ2(){return f01}var XZ2={type:"3rdParty",init:function(e){GZ2(e.options.react),ZZ2(e)}};function JZ2(){if(console&&console.warn){for(var t,e=arguments.length,n=new Array(e),a=0;a2&&arguments[2]!==void 0?arguments[2]:{},a=e.languages[0],r=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(a.toLowerCase()==="cimode")return!0;var c=function(h,s){var u=e.services.backendConnector.state["".concat(h,"|").concat(s)];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!c(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(a,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||c(a,t)&&(!r||c(o,t)))}function eQ2(t,e){var n=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 a=e.options.ignoreJSONStructure!==void 0;return a?e.hasLoadedNamespace(t,{precheck:function(o,c){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!c(o.isLanguageChangingTo,t))return!1}}):tQ2(t,e,n)}function T$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function OV(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,a=S.useContext(qZ2)||{},r=a.i18n,o=a.defaultNS,c=n||r||QZ2();if(c&&!c.reportNamespaces&&(c.reportNamespaces=new YZ2),!c){UL("You will need to pass in an i18next instance by using initReactI18next");var l=function(L){return Array.isArray(L)?L[L.length-1]:L},h=[l,{},!1];return h.t=l,h.i18n={},h.ready=!1,h}c.options.react&&c.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=OV(OV(OV({},KZ2()),c.options.react),e),u=s.useSuspense,v=s.keyPrefix,f=t||o||c.options&&c.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(f);var d=(c.isInitialized||c.initializedStoreOnce)&&f.every(function(C){return eQ2(C,c,s)});function M(){return c.getFixedT(null,s.nsMode==="fallback"?f:f[0],v)}var g=S.useState(M),H=it(g,2),p=H[0],m=H[1],z=f.join(),w=nQ2(z),x=S.useRef(!0);S.useEffect(function(){var C=s.bindI18n,L=s.bindI18nStore;x.current=!0,!d&&!u&&_$(c,f,function(){x.current&&m(M)}),d&&w&&w!==z&&x.current&&m(M);function B(){x.current&&m(M)}return C&&c&&c.on(C,B),L&&c&&c.store.on(L,B),function(){x.current=!1,C&&c&&C.split(" ").forEach(function(_){return c.off(_,B)}),L&&c&&L.split(" ").forEach(function(_){return c.store.off(_,B)})}},[c,z]);var y=S.useRef(!0);S.useEffect(function(){x.current&&!y.current&&m(M),y.current=!1},[c,v]);var V=[p,c,d];if(V.t=p,V.i18n=c,V.ready=d,d||!d&&!u)return V;throw new Promise(function(C){_$(c,f,function(){C()})})}const aQ2=zn.div` + c14.992,14.992,39.392,14.992,54.388,0C220.724,191.104,220.724,166.696,205.732,151.704z`})})})]}),Ze0=()=>$.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[$.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"}),$.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"}),$.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"}),$.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"})]}),Qe0=()=>$.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Xe0=()=>$.jsx("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),Je0=()=>$.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),t40=()=>$.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),e40=()=>$.jsx("svg",{width:"19",height:"21",viewBox:"0 0 19 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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=()=>$.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})}),a40=()=>$.jsxs("svg",{width:"21",height:"15",viewBox:"0 0 21 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[$.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"}),$.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"})]}),r40=()=>$.jsxs("svg",{width:"21",height:"19",viewBox:"0 0 21 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[$.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"}),$.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"})]}),i40=({width:t="25px",height:e="25px",color:n="#4A4A4A"})=>$.jsx("svg",{width:t,height:e,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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:n})}),o40=({width:t="25px",height:e="25px",color:n="#4A4A4A"})=>$.jsx("svg",{width:t,height:e,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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:n})}),c40=({width:t="25px",height:e="25px",color:n="#4A4A4A"})=>$.jsx("svg",{width:t,height:e,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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:n})}),l40=({width:t="24px",height:e="25px",color:n="#4A4A4A"})=>$.jsx("svg",{width:t,height:e,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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:n})}),s40=({width:t="21.976",height:e="21.976",color:n="currentColor"})=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:e,viewBox:`0 0 ${t} ${e}`,children:$.jsx("g",{id:"iX",transform:"translate(0 0)",children:$.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:n})})}),h40=({color:t="currentColor"})=>$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23.004",height:"18.002",viewBox:"0 0 23.004 18.002",children:$.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})});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 n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function _$(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};$L=_$(_$({},$L),t)}function YZ2(){return $L}var ZZ2=function(){function t(){Jt(this,t),this.usedNamespaces={}}return t2(t,[{key:"addUsedNamespaces",value:function(n){var a=this;n.forEach(function(r){a.usedNamespaces[r]||(a.usedNamespaces[r]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function QZ2(t){p01=t}function XZ2(){return p01}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,n=new Array(e),a=0;a2&&arguments[2]!==void 0?arguments[2]:{},a=e.languages[0],r=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(a.toLowerCase()==="cimode")return!0;var c=function(h,s){var u=e.services.backendConnector.state["".concat(h,"|").concat(s)];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!c(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(a,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||c(a,t)&&(!r||c(o,t)))}function nQ2(t,e){var n=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 a=e.options.ignoreJSONStructure!==void 0;return a?e.hasLoadedNamespace(t,{precheck:function(o,c){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!c(o.isLanguageChangingTo,t))return!1}}):eQ2(t,e,n)}function O$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function OV(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,a=_.useContext(GZ2)||{},r=a.i18n,o=a.defaultNS,c=n||r||XZ2();if(c&&!c.reportNamespaces&&(c.reportNamespaces=new ZZ2),!c){UL("You will need to pass in an i18next instance by using initReactI18next");var l=function(L){return Array.isArray(L)?L[L.length-1]:L},h=[l,{},!1];return h.t=l,h.i18n={},h.ready=!1,h}c.options.react&&c.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=OV(OV(OV({},YZ2()),c.options.react),e),u=s.useSuspense,v=s.keyPrefix,f=t||o||c.options&&c.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(f);var d=(c.isInitialized||c.initializedStoreOnce)&&f.every(function(C){return nQ2(C,c,s)});function z(){return c.getFixedT(null,s.nsMode==="fallback"?f:f[0],v)}var g=_.useState(z),H=it(g,2),p=H[0],m=H[1],M=f.join(),w=aQ2(M),x=_.useRef(!0);_.useEffect(function(){var C=s.bindI18n,L=s.bindI18nStore;x.current=!0,!d&&!u&&T$(c,f,function(){x.current&&m(z)}),d&&w&&w!==M&&x.current&&m(z);function B(){x.current&&m(z)}return C&&c&&c.on(C,B),L&&c&&c.store.on(L,B),function(){x.current=!1,C&&c&&C.split(" ").forEach(function(S){return c.off(S,B)}),L&&c&&L.split(" ").forEach(function(S){return c.store.off(S,B)})}},[c,M]);var y=_.useRef(!0);_.useEffect(function(){x.current&&!y.current&&m(z),y.current=!1},[c,v]);var V=[p,c,d];if(V.t=p,V.i18n=c,V.ready=d,d||!d&&!u)return V;throw new Promise(function(C){T$(c,f,function(){C()})})}const rQ2=zn.div` box-sizing: border-box; position: relative; margin-inline: auto; @@ -8962,13 +8998,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho @media (min-width: 1200px) { max-width: 1140px; } -`,g01=t=>$.jsx(aQ2,{...t,children:t.children});var rQ2={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},iQ2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},oQ2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cQ2={date:di({formats:rQ2,defaultWidth:"full"}),time:di({formats:iQ2,defaultWidth:"full"}),dateTime:di({formats:oQ2,defaultWidth:"full"})};const lQ2=cQ2;var sQ2={code:"en-GB",formatDistance:nY,formatLong:lQ2,formatRelative:aY,localize:rY,match:oY,options:{weekStartsOn:1,firstWeekContainsDate:4}};const O$=sQ2;var hQ2={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 uQ2(t,e){if(e===1)return t.one;var n=e%100;if(n<=20&&n>10)return t.other;var a=n%10;return a>=2&&a<=4?t.twoFour:t.other}function AV(t,e,n){var a=uQ2(t,e),r=typeof a=="string"?a:a[n];return r.replace("{{count}}",String(e))}var vQ2=function(e,n,a){var r=hQ2[e];return a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"za "+AV(r,n,"future"):AV(r,n,"past")+" temu":AV(r,n,"regular")};const dQ2=vQ2;var fQ2={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},gQ2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},pQ2={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},mQ2={date:di({formats:fQ2,defaultWidth:"full"}),time:di({formats:gQ2,defaultWidth:"full"}),dateTime:di({formats:pQ2,defaultWidth:"full"})};const zQ2=mQ2;function MQ2(t,e,n){g1(2,arguments);var a=Vi(t,n),r=Vi(e,n);return a.getTime()===r.getTime()}var HQ2={masculine:"ostatni",feminine:"ostatnia"},wQ2={masculine:"ten",feminine:"ta"},yQ2={masculine:"następny",feminine:"następna"},xQ2={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function A$(t,e,n,a){var r;if(MQ2(e,n,a))r=wQ2;else if(t==="lastWeek")r=HQ2;else if(t==="nextWeek")r=yQ2;else throw new Error("Cannot determine adjectives for token ".concat(t));var o=e.getUTCDay(),c=xQ2[o],l=r[c];return"'".concat(l,"' eeee 'o' p")}var VQ2={lastWeek:A$,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:A$,other:"P"},CQ2=function(e,n,a,r){var o=VQ2[e];return typeof o=="function"?o(e,n,a,r):o};const bQ2=CQ2;var LQ2={narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszą erą","naszej ery"]},BQ2={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ń"]},_Q2={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"]},TQ2={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"]},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:{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"}},kQ2={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"}},EQ2=function(e,n){return String(e)},PQ2={ordinalNumber:EQ2,era:r5({values:LQ2,defaultWidth:"wide"}),quarter:r5({values:BQ2,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:r5({values:SQ2,defaultWidth:"wide",formattingValues:_Q2,defaultFormattingWidth:"wide"}),day:r5({values:TQ2,defaultWidth:"wide",formattingValues:OQ2,defaultFormattingWidth:"wide"}),dayPeriod:r5({values:AQ2,defaultWidth:"wide",formattingValues:kQ2,defaultFormattingWidth:"wide"})};const NQ2=PQ2;var DQ2=/^(\d+)?/i,RQ2=/\d+/i,jQ2={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},IQ2={any:[/^p/i,/^n/i]},FQ2={narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},$Q2={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},UQ2={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},WQ2={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]},qQ2={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},GQ2={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]},KQ2={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},YQ2={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}},ZQ2={ordinalNumber:iY({matchPattern:DQ2,parsePattern:RQ2,valueCallback:function(e){return parseInt(e,10)}}),era:i5({matchPatterns:jQ2,defaultMatchWidth:"wide",parsePatterns:IQ2,defaultParseWidth:"any"}),quarter:i5({matchPatterns:FQ2,defaultMatchWidth:"wide",parsePatterns:$Q2,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:i5({matchPatterns:UQ2,defaultMatchWidth:"wide",parsePatterns:WQ2,defaultParseWidth:"any"}),day:i5({matchPatterns:qQ2,defaultMatchWidth:"wide",parsePatterns:GQ2,defaultParseWidth:"any"}),dayPeriod:i5({matchPatterns:KQ2,defaultMatchWidth:"any",parsePatterns:YQ2,defaultParseWidth:"any"})};const QQ2=ZQ2;var XQ2={code:"pl",formatDistance:dQ2,formatLong:zQ2,formatRelative:bQ2,localize:NQ2,match:QQ2,options:{weekStartsOn:1,firstWeekContainsDate:4}};const k$=XQ2,E$=()=>{const t=localStorage.getItem("defaultLanguage");return t?JSON.parse(t):{label:"English",value:"en"}},JQ2=()=>{const{i18n:t}=r9(),[e,n]=S.useState(E$());S.useEffect(()=>{const r=E$().value;t.changeLanguage(r),ML({locale:r==="pl"?k$:O$})},[]),S.useEffect(()=>{localStorage.setItem("defaultLanguage",JSON.stringify(e))},[e]);const a=S.useCallback(r=>{t.changeLanguage(r.value),n(r),ML({locale:r.value==="pl"?k$:O$})},[t]);return{languageObject:e,handleLanguageChange:a}},tX2=()=>{const[t,e]=S.useState({data:void 0,loaded:!1,loading:!1}),{user:n,fetchCart:a}=S.useContext(y4.EscolaLMSContext);return S.useEffect(()=>{n!=null&&n.value&&!n.loading&&!t.loading&&!t.loaded&&(e({...t,loading:!0}),a().then(r=>{const o=r;o.success&&e({data:o.data,loaded:!0,loading:!1})}).catch(()=>e({...t,loaded:!0,loading:!1})))},[n,t,a]),{cart:t}};var bc=X2(),eX2=a_();const WL={defaultDateFormat:"dd/MM/yyyy",defaultDateTimeFormat:"dd/MM/yyyy, HH:mm",tutorPlaceholderPath:"/images/tutorblind.png"},pr=(t,e=WL.defaultDateFormat)=>t?fl(new Date(t),e):"",h40=(t,e,n)=>!t||!e?!1:pr(t,n)===pr(e,n),u40=t=>{const e=[];return t.forEach(n=>{const a=fl(new Date(n),"MM/dd/yyyy"),r=e.find(o=>fl(new Date(o.date),"MM/dd/yyyy")===a);r?r.times.push(new Date(n)):e.push({date:a,times:[new Date(n)]})}),e},v40=t=>t.filter(e=>y11(e,new Date)),d40=t=>t.sort((e,n)=>e.getTime()-n.getTime()),f40=t=>{const e=/(\d+)\s+(day|hour|minute|second|week|year)s?/g,n=Array.from(t.matchAll(e)),a={};let r=!1;if(n.forEach(o=>{r=!0;const c=parseInt(o[1]),l=o[2];a[l]?a[l]+=c:a[l]=c}),!r){const o=/\d+/g;Array.from(t.matchAll(o)).forEach(l=>{const h=parseInt(l[0]);a.hour=h})}return a},g40=(t,e)=>z8(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(n=>n.name).join(", "):""},P$=t=>{var a,r,o,c,l,h,s,u,v,f,d,M,g,H,p,m,z,w,x,y,V,C,L,B,_,T,P,F,W,U,Z,I,t1,R,i1,J,A,o1,h1,n1,M1,s1,z1,m1,_1,I1,U1,P1,G1;const n=`Notifications.${t.event}`;switch(t.event){case x2.EventTypes.StationaryEventAuthorAssigned:return{translation:n,object:{name:((a=t.data.stationaryEvent)==null?void 0:a.name)||""}};case x2.EventTypes.StationaryEventAuthorUnassigned:return{translation:n,object:{name:((r=t.data.stationaryEvent)==null?void 0:r.name)||""}};case x2.EventTypes.StationaryEventAssigned:return{translation:n,object:{name:((o=t.data.stationaryEvent)==null?void 0:o.name)||""}};case x2.EventTypes.StationaryEventUnassigned:return{translation:n,object:{name:((c=t.data.stationaryEvent)==null?void 0:c.name)||""}};case x2.EventTypes.AbandonedCartEvent:return{translation:n};case x2.EventTypes.OrderCancelled:return{translation:n};case x2.EventTypes.OrderCreated:return{translation:n};case x2.EventTypes.OrderPaid:return{translation:n,object:{name:$d(t.data.order)||""}};case x2.EventTypes.ProductableAttached:return{translation:n,object:{name:((l=t.data.productable)==null?void 0:l.name)||""}};case x2.EventTypes.ProductableDetached:return{translation:n,object:{name:((h=t.data.productable)==null?void 0:h.name)||""}};case x2.EventTypes.ProductAddedToCart:return{translation:n,object:{name:((s=t.data.product)==null?void 0:s.name)||""}};case x2.EventTypes.ProductAttached:return{translation:n,object:{name:((u=t.data.product)==null?void 0:u.name)||""}};case x2.EventTypes.ProductBought:return{translation:n,object:{name:((v=t.data.product)==null?void 0:v.name)||""}};case x2.EventTypes.ProductDetached:return{translation:n,object:{name:((f=t.data.product)==null?void 0:f.name)||""}};case x2.EventTypes.ProductRemovedFromCart:return{translation:n,object:{name:((d=t.data.product)==null?void 0:d.name)||""}};case x2.EventTypes.PaymentCancelled:return{translation:n,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:n,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:n,object:{amount:((m=t.data.payment)==null?void 0:m.amount)||0}};case x2.EventTypes.PaymentSuccess:return{translation:n,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:n,object:{name:((x=t.data.course)==null?void 0:x.title)||""}};case x2.EventTypes.CourseAccessStarted:return{translation:n,object:{name:((y=t.data.course)==null?void 0:y.title)||""}};case x2.EventTypes.CourseAssigned:return{translation:n,object:{name:((V=t.data.course)==null?void 0:V.title)||""}};case x2.EventTypes.CourseDeadlineSoon:return{translation:n,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:n,object:{name:((B=t.data.course)==null?void 0:B.title)||""}};case x2.EventTypes.CourseFinished:return{translation:n,object:{name:((_=t.data.course)==null?void 0:_.title)||""}};case x2.EventTypes.CourseStarted:return{translation:n,object:{name:((T=t.data.course)==null?void 0:T.title)||""}};case x2.EventTypes.CourseStatusChanged:return{translation:n,object:{name:((P=t.data.course)==null?void 0:P.title)||""}};case x2.EventTypes.CourseTutorAssigned:return{translation:n,object:{name:((F=t.data.course)==null?void 0:F.title)||""}};case x2.EventTypes.CourseTutorUnassigned:return{translation:n,object:{name:((W=t.data.course)==null?void 0:W.title)||""}};case x2.EventTypes.CourseUnassigned:return{translation:n,object:{name:((U=t.data.course)==null?void 0:U.title)||""}};case x2.EventTypes.TopicFinished:return{translation:n,object:{name:((Z=t.data.course)==null?void 0:Z.title)||""}};case x2.EventTypes.TopicTypeChanged:return{translation:n,object:{name:((I=t.data.topicContent)==null?void 0:I.value)||""}};case x2.EventTypes.ReportTerm:return{translation:n,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:n,object:{date:pr((h1=t.data.consultationTerm)==null?void 0:h1.executed_at)||""}};case x2.EventTypes.ApprovedTermWithTrainer:return{translation:n,object:{date:pr((n1=t.data.consultationTerm)==null?void 0:n1.executed_at)||""}};case x2.EventTypes.ChangeTerm:return{translation:n,object:{date:pr((M1=t.data.consultationTerm)==null?void 0:M1.executed_at)||""}};case x2.EventTypes.RejectTerm:return{translation:n,object:{date:pr((s1=t.data.consultationTerm)==null?void 0:s1.executed_at)||""}};case x2.EventTypes.RejectTermWithTrainer:return{translation:n,object:{date:pr((z1=t.data.consultationTerm)==null?void 0:z1.executed_at)||""}};case x2.EventTypes.ReminderAboutTerm:return{translation:n,object:{date:pr((m1=t.data.consultationTerm)==null?void 0:m1.executed_at)||""}};case x2.EventTypes.ReminderTrainerAboutTerm:return{translation:n,object:{date:pr((_1=t.data.consultationTerm)==null?void 0:_1.executed_at)||""}};case x2.EventTypes.BulkNotification:return{translation:n,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(at=>at.key==="title"))==null?void 0:G1.value)||""}};default:return{translation:n}}},N$=(t,e=2,n)=>{if(!t||typeof t!="number")return 0;const a=Math.round(t*Math.pow(10,e))/Math.pow(10,e);return n?a/n:a},p40=(t,e)=>t?(e?N$(t,2,100)*(1+e/100):N$(t,2,100)).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}):0,m40=(t,e)=>e.authors.findIndex(n=>n.id===t)!==-1,z40=t=>{const e=t?hM(t.getTime(),new Date().getTime()):null,n=t?Zs(t.getTime(),new Date().getTime()):null,a=t?Qs(t.getTime(),new Date().getTime()):null;return(e!==null&&e!==0?[e,"day"]:null)??(n!==null&&n!==0?[n,"hour"]:null)??(a!==null&&a!==0?[a,"minute"]:null)},M40=new Intl.RelativeTimeFormat("pl",{style:"short"}),nX2=zn.div` +`,m01=t=>$.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"},cQ2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lQ2={date:v5({formats:iQ2,defaultWidth:"full"}),time:v5({formats:oQ2,defaultWidth:"full"}),dateTime:v5({formats:cQ2,defaultWidth:"full"})};const sQ2=lQ2;var hQ2={code:"en-GB",formatDistance:aY,formatLong:sQ2,formatRelative:rY,localize:iY,match:cY,options:{weekStartsOn:1,firstWeekContainsDate:4}};const A$=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 n=e%100;if(n<=20&&n>10)return t.other;var a=n%10;return a>=2&&a<=4?t.twoFour:t.other}function AV(t,e,n){var a=vQ2(t,e),r=typeof a=="string"?a:a[n];return r.replace("{{count}}",String(e))}var dQ2=function(e,n,a){var r=uQ2[e];return a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"za "+AV(r,n,"future"):AV(r,n,"past")+" temu":AV(r,n,"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,n){g1(2,arguments);var a=x5(t,n),r=x5(e,n);return a.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 k$(t,e,n,a){var r;if(HQ2(e,n,a))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(),c=VQ2[o],l=r[c];return"'".concat(l,"' eeee 'o' p")}var CQ2={lastWeek:k$,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:k$,other:"P"},bQ2=function(e,n,a,r){var o=CQ2[e];return typeof o=="function"?o(e,n,a,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,n){return String(e)},NQ2={ordinalNumber:PQ2,era:ai({values:BQ2,defaultWidth:"wide"}),quarter:ai({values:_Q2,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ai({values:SQ2,defaultWidth:"wide",formattingValues:TQ2,defaultFormattingWidth:"wide"}),day:ai({values:OQ2,defaultWidth:"wide",formattingValues:AQ2,defaultFormattingWidth:"wide"}),dayPeriod:ai({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:oY({matchPattern:RQ2,parsePattern:jQ2,valueCallback:function(e){return parseInt(e,10)}}),era:ri({matchPatterns:IQ2,defaultMatchWidth:"wide",parsePatterns:FQ2,defaultParseWidth:"any"}),quarter:ri({matchPatterns:$Q2,defaultMatchWidth:"wide",parsePatterns:UQ2,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ri({matchPatterns:WQ2,defaultMatchWidth:"wide",parsePatterns:qQ2,defaultParseWidth:"any"}),day:ri({matchPatterns:GQ2,defaultMatchWidth:"wide",parsePatterns:KQ2,defaultParseWidth:"any"}),dayPeriod:ri({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 E$=JQ2,P$=()=>{const t=localStorage.getItem("defaultLanguage");return t?JSON.parse(t):{label:"English",value:"en"}},tX2=()=>{const{i18n:t}=r9(),[e,n]=_.useState(P$());_.useEffect(()=>{const r=P$().value;t.changeLanguage(r),ML({locale:r==="pl"?E$:A$})},[]),_.useEffect(()=>{localStorage.setItem("defaultLanguage",JSON.stringify(e))},[e]);const a=_.useCallback(r=>{t.changeLanguage(r.value),n(r),ML({locale:r.value==="pl"?E$:A$})},[t]);return{languageObject:e,handleLanguageChange:a}},eX2=()=>{const[t,e]=_.useState({data:void 0,loaded:!1,loading:!1}),{user:n,fetchCart:a}=_.useContext(y4.EscolaLMSContext);return _.useEffect(()=>{n!=null&&n.value&&!n.loading&&!t.loading&&!t.loaded&&(e({...t,loading:!0}),a().then(r=>{const o=r;o.success&&e({data:o.data,loaded:!0,loading:!1})}).catch(()=>e({...t,loaded:!0,loading:!1})))},[n,t,a]),{cart:t}};var bl=X2(),nX2=aS();const WL={defaultDateFormat:"dd/MM/yyyy",defaultDateTimeFormat:"dd/MM/yyyy, HH:mm",tutorPlaceholderPath:"/images/tutorblind.png"},pr=(t,e=WL.defaultDateFormat)=>t?f6(new Date(t),e):"",u40=(t,e,n)=>!t||!e?!1:pr(t,n)===pr(e,n),v40=t=>{const e=[];return t.forEach(n=>{const a=f6(new Date(n),"MM/dd/yyyy"),r=e.find(o=>f6(new Date(o.date),"MM/dd/yyyy")===a);r?r.times.push(new Date(n)):e.push({date:a,times:[new Date(n)]})}),e},d40=t=>t.filter(e=>V11(e,new Date)),f40=t=>t.sort((e,n)=>e.getTime()-n.getTime()),g40=t=>{const e=/(\d+)\s+(day|hour|minute|second|week|year)s?/g,n=Array.from(t.matchAll(e)),a={};let r=!1;if(n.forEach(o=>{r=!0;const c=parseInt(o[1]),l=o[2];a[l]?a[l]+=c:a[l]=c}),!r){const o=/\d+/g;Array.from(t.matchAll(o)).forEach(l=>{const h=parseInt(l[0]);a.hour=h})}return a},p40=(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(n=>n.name).join(", "):""},N$=t=>{var a,r,o,c,l,h,s,u,v,f,d,z,g,H,p,m,M,w,x,y,V,C,L,B,S,T,P,F,W,U,Z,I,t1,R,i1,J,A,o1,h1,n1,M1,s1,z1,m1,S1,I1,U1,P1,G1;const n=`Notifications.${t.event}`;switch(t.event){case x2.EventTypes.StationaryEventAuthorAssigned:return{translation:n,object:{name:((a=t.data.stationaryEvent)==null?void 0:a.name)||""}};case x2.EventTypes.StationaryEventAuthorUnassigned:return{translation:n,object:{name:((r=t.data.stationaryEvent)==null?void 0:r.name)||""}};case x2.EventTypes.StationaryEventAssigned:return{translation:n,object:{name:((o=t.data.stationaryEvent)==null?void 0:o.name)||""}};case x2.EventTypes.StationaryEventUnassigned:return{translation:n,object:{name:((c=t.data.stationaryEvent)==null?void 0:c.name)||""}};case x2.EventTypes.AbandonedCartEvent:return{translation:n};case x2.EventTypes.OrderCancelled:return{translation:n};case x2.EventTypes.OrderCreated:return{translation:n};case x2.EventTypes.OrderPaid:return{translation:n,object:{name:$d(t.data.order)||""}};case x2.EventTypes.ProductableAttached:return{translation:n,object:{name:((l=t.data.productable)==null?void 0:l.name)||""}};case x2.EventTypes.ProductableDetached:return{translation:n,object:{name:((h=t.data.productable)==null?void 0:h.name)||""}};case x2.EventTypes.ProductAddedToCart:return{translation:n,object:{name:((s=t.data.product)==null?void 0:s.name)||""}};case x2.EventTypes.ProductAttached:return{translation:n,object:{name:((u=t.data.product)==null?void 0:u.name)||""}};case x2.EventTypes.ProductBought:return{translation:n,object:{name:((v=t.data.product)==null?void 0:v.name)||""}};case x2.EventTypes.ProductDetached:return{translation:n,object:{name:((f=t.data.product)==null?void 0:f.name)||""}};case x2.EventTypes.ProductRemovedFromCart:return{translation:n,object:{name:((d=t.data.product)==null?void 0:d.name)||""}};case x2.EventTypes.PaymentCancelled:return{translation:n,object:{amount:((z=t.data.payment)==null?void 0:z.amount)||0,name:$d((g=t.data.payment)==null?void 0:g.payable)}};case x2.EventTypes.PaymentFailed:return{translation:n,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:n,object:{amount:((m=t.data.payment)==null?void 0:m.amount)||0}};case x2.EventTypes.PaymentSuccess:return{translation:n,object:{amount:((M=t.data.payment)==null?void 0:M.amount)||0,name:$d((w=t.data.payment)==null?void 0:w.payable)}};case x2.EventTypes.CourseAccessFinished:return{translation:n,object:{name:((x=t.data.course)==null?void 0:x.title)||""}};case x2.EventTypes.CourseAccessStarted:return{translation:n,object:{name:((y=t.data.course)==null?void 0:y.title)||""}};case x2.EventTypes.CourseAssigned:return{translation:n,object:{name:((V=t.data.course)==null?void 0:V.title)||""}};case x2.EventTypes.CourseDeadlineSoon:return{translation:n,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:n,object:{name:((B=t.data.course)==null?void 0:B.title)||""}};case x2.EventTypes.CourseFinished:return{translation:n,object:{name:((S=t.data.course)==null?void 0:S.title)||""}};case x2.EventTypes.CourseStarted:return{translation:n,object:{name:((T=t.data.course)==null?void 0:T.title)||""}};case x2.EventTypes.CourseStatusChanged:return{translation:n,object:{name:((P=t.data.course)==null?void 0:P.title)||""}};case x2.EventTypes.CourseTutorAssigned:return{translation:n,object:{name:((F=t.data.course)==null?void 0:F.title)||""}};case x2.EventTypes.CourseTutorUnassigned:return{translation:n,object:{name:((W=t.data.course)==null?void 0:W.title)||""}};case x2.EventTypes.CourseUnassigned:return{translation:n,object:{name:((U=t.data.course)==null?void 0:U.title)||""}};case x2.EventTypes.TopicFinished:return{translation:n,object:{name:((Z=t.data.course)==null?void 0:Z.title)||""}};case x2.EventTypes.TopicTypeChanged:return{translation:n,object:{name:((I=t.data.topicContent)==null?void 0:I.value)||""}};case x2.EventTypes.ReportTerm:return{translation:n,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:n,object:{date:pr((h1=t.data.consultationTerm)==null?void 0:h1.executed_at)||""}};case x2.EventTypes.ApprovedTermWithTrainer:return{translation:n,object:{date:pr((n1=t.data.consultationTerm)==null?void 0:n1.executed_at)||""}};case x2.EventTypes.ChangeTerm:return{translation:n,object:{date:pr((M1=t.data.consultationTerm)==null?void 0:M1.executed_at)||""}};case x2.EventTypes.RejectTerm:return{translation:n,object:{date:pr((s1=t.data.consultationTerm)==null?void 0:s1.executed_at)||""}};case x2.EventTypes.RejectTermWithTrainer:return{translation:n,object:{date:pr((z1=t.data.consultationTerm)==null?void 0:z1.executed_at)||""}};case x2.EventTypes.ReminderAboutTerm:return{translation:n,object:{date:pr((m1=t.data.consultationTerm)==null?void 0:m1.executed_at)||""}};case x2.EventTypes.ReminderTrainerAboutTerm:return{translation:n,object:{date:pr((S1=t.data.consultationTerm)==null?void 0:S1.executed_at)||""}};case x2.EventTypes.BulkNotification:return{translation:n,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(at=>at.key==="title"))==null?void 0:G1.value)||""}};default:return{translation:n}}},D$=(t,e=2,n)=>{if(!t||typeof t!="number")return 0;const a=Math.round(t*Math.pow(10,e))/Math.pow(10,e);return n?a/n:a},m40=(t,e)=>t?(e?D$(t,2,100)*(1+e/100):D$(t,2,100)).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}):0,z40=(t,e)=>e.authors.findIndex(n=>n.id===t)!==-1,M40=t=>{const e=t?hM(t.getTime(),new Date().getTime()):null,n=t?Zs(t.getTime(),new Date().getTime()):null,a=t?Qs(t.getTime(),new Date().getTime()):null;return(e!==null&&e!==0?[e,"day"]:null)??(n!==null&&n!==0?[n,"hour"]:null)??(a!==null&&a!==0?[a,"minute"]:null)},H40=new Intl.RelativeTimeFormat("pl",{style:"short"}),aX2=zn.div` display: flex; justify-content: center; align-items: center; height: 100%; width: 100%; -`,aX2=({width:t,height:e})=>{const n=NS();return $.jsx(nX2,{style:{width:t||"100%",height:e||"100%"},children:$.jsx(Sh.Spin,{color:n.primaryColor})})};function rX2(){var t=new Map;function e(n){var a=n.root,r=n.rootMargin,o=n.threshold,c=t.get(a);c||(c=new Map,t.set(a,c));var l=JSON.stringify({rootMargin:r,threshold:o}),h=c.get(l);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:a,rootMargin:r,threshold:o});h={observer:u,entryCallbacks:s},c.set(l,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 iX2="0px",oX2=[0],cX2=rX2();function lX2(t){var e,n,a=(e=t==null?void 0:t.rootMargin)!=null?e:iX2,r=(n=t==null?void 0:t.threshold)!=null?n:oX2,o=S.useRef(null),c=S.useRef(null),l=S.useRef(null),h=S.useState(),s=h[0],u=h[1],v=S.useCallback(function(){var g=o.current;if(!g){u(void 0);return}var H=cX2.getObserver({root:c.current,rootMargin:a,threshold:r});H.observe(g,function(p){u(p)}),l.current=H},[a,r]),f=S.useCallback(function(){var g=l.current,H=o.current;H&&(g==null||g.unobserve(H)),l.current=null},[]),d=S.useCallback(function(g){f(),o.current=g,v()},[v,f]),M=S.useCallback(function(g){f(),c.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=kV();if(H(y))return m(y);l=setTimeout(p,g(y))}function m(y){return l=void 0,f&&a?d(y):(a=r=void 0,c)}function z(){l!==void 0&&clearTimeout(l),s=0,a=h=r=l=void 0}function w(){return l===void 0?c:m(kV())}function x(){var y=kV(),V=H(y);if(a=arguments,r=this,h=y,V){if(l===void 0)return M(h);if(v)return clearTimeout(l),l=setTimeout(p,e),d(h)}return l===void 0&&(l=setTimeout(p,e)),c}return x.cancel=z,x.flush=w,x}var hJ2=sJ2;const uJ2=G0(hJ2),vJ2=()=>{var M,g,H,p;const[t,e]=S.useState([]),{fetchNotifications:n,notifications:a,readNotify:r,readAllNotifications:o}=S.useContext(y4.EscolaLMSContext),c=a.loading,l=((g=(M=a.list)==null?void 0:M.meta)==null?void 0:g.current_page)||1,h=((p=(H=a.list)==null?void 0:H.meta)==null?void 0:p.last_page)||1,s=l{n({page:1,per_page:30}).then(m=>{m.success&&e(m.data)})},[]);const u=uJ2(async()=>{const m=await n({page:l+1,per_page:10});m.success&&e([...t,...m.data])},300),v=S.useCallback(m=>{r(m),e(z=>z.filter(w=>w.id!==m))},[r]),f=S.useCallback(()=>{o(),e([])},[o]),[d]=uX2({loading:c,hasNextPage:s,onLoadMore:u,rootMargin:"0px 0px 400px 0px"});return{list:t,loading:c,handleReadNotify:v,hasNextPage:s,handleReadAllNotify:f,sentryRef:d}},dJ2=({onClose:t})=>{const{list:e,loading:n,handleReadNotify:a,handleReadAllNotify:r,hasNextPage:o,sentryRef:c}=vJ2(),{t:l}=r9();return $.jsxs($.Fragment,{children:[$.jsxs("div",{className:"notifications-drawer__content__header",children:[$.jsx(bc.Title,{level:2,children:l("Notifications.notifications")}),$.jsx("button",{onClick:t,title:"closebutton",children:$.jsx(IZ2,{})})]}),$.jsxs("div",{className:"notifications-drawer__content--clear-all",children:[e.length>0&&!n&&$.jsx("button",{onClick:r,children:l("Notifications.readAll")}),e.length===0&&!n&&$.jsx("div",{children:$.jsxs(bc.Text,{children:[" ",l("Notifications.empty")]})})]}),$.jsxs("div",{className:"notifications-drawer__content--list",children:[e==null?void 0:e.map(h=>$.jsx("div",{ref:c,children:$.jsx(eX2.Notification,{notification:{id:h.id,unread:!0,title:l(P$(h).translation,P$(h).object),description:"",dateTime:new Date(h.created_at)},onClick:()=>{a(h.id)},maxLengthDesc:60})},h.id)),(n||o)&&$.jsx(aX2,{})]})]})},fJ2=Om` +`,rX2=({width:t,height:e})=>{const n=N_();return $.jsx(aX2,{style:{width:t||"100%",height:e||"100%"},children:$.jsx(_h.Spin,{color:n.primaryColor})})};function iX2(){var t=new Map;function e(n){var a=n.root,r=n.rootMargin,o=n.threshold,c=t.get(a);c||(c=new Map,t.set(a,c));var l=JSON.stringify({rootMargin:r,threshold:o}),h=c.get(l);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:a,rootMargin:r,threshold:o});h={observer:u,entryCallbacks:s},c.set(l,h)}return{observe:function(f,d){var z,g;(z=h)==null||z.entryCallbacks.set(f,d),(g=h)==null||g.observer.observe(f)},unobserve:function(f){var d,z;(d=h)==null||d.entryCallbacks.delete(f),(z=h)==null||z.observer.unobserve(f)}}}return{getObserver:e}}var oX2="0px",cX2=[0],lX2=iX2();function sX2(t){var e,n,a=(e=t==null?void 0:t.rootMargin)!=null?e:oX2,r=(n=t==null?void 0:t.threshold)!=null?n:cX2,o=_.useRef(null),c=_.useRef(null),l=_.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=lX2.getObserver({root:c.current,rootMargin:a,threshold:r});H.observe(g,function(p){u(p)}),l.current=H},[a,r]),f=_.useCallback(function(){var g=l.current,H=o.current;H&&(g==null||g.unobserve(H)),l.current=null},[]),d=_.useCallback(function(g){f(),o.current=g,v()},[v,f]),z=_.useCallback(function(g){f(),c.current=g,v()},[v,f]);return[d,{entry:s,rootRef:z}]}function qL(){return qL=Object.assign||function(t){for(var e=1;e=e||V<0||v&&C>=o}function p(){var y=kV();if(H(y))return m(y);l=setTimeout(p,g(y))}function m(y){return l=void 0,f&&a?d(y):(a=r=void 0,c)}function M(){l!==void 0&&clearTimeout(l),s=0,a=h=r=l=void 0}function w(){return l===void 0?c:m(kV())}function x(){var y=kV(),V=H(y);if(a=arguments,r=this,h=y,V){if(l===void 0)return z(h);if(v)return clearTimeout(l),l=setTimeout(p,e),d(h)}return l===void 0&&(l=setTimeout(p,e)),c}return x.cancel=M,x.flush=w,x}var uJ2=hJ2;const vJ2=G0(uJ2),dJ2=()=>{var z,g,H,p;const[t,e]=_.useState([]),{fetchNotifications:n,notifications:a,readNotify:r,readAllNotifications:o}=_.useContext(y4.EscolaLMSContext),c=a.loading,l=((g=(z=a.list)==null?void 0:z.meta)==null?void 0:g.current_page)||1,h=((p=(H=a.list)==null?void 0:H.meta)==null?void 0:p.last_page)||1,s=l{n({page:1,per_page:30}).then(m=>{m.success&&e(m.data)})},[]);const u=vJ2(async()=>{const m=await n({page:l+1,per_page:10});m.success&&e([...t,...m.data])},300),v=_.useCallback(m=>{r(m),e(M=>M.filter(w=>w.id!==m))},[r]),f=_.useCallback(()=>{o(),e([])},[o]),[d]=vX2({loading:c,hasNextPage:s,onLoadMore:u,rootMargin:"0px 0px 400px 0px"});return{list:t,loading:c,handleReadNotify:v,hasNextPage:s,handleReadAllNotify:f,sentryRef:d}},fJ2=({onClose:t})=>{const{list:e,loading:n,handleReadNotify:a,handleReadAllNotify:r,hasNextPage:o,sentryRef:c}=dJ2(),{t:l}=r9();return $.jsxs($.Fragment,{children:[$.jsxs("div",{className:"notifications-drawer__content__header",children:[$.jsx(bl.Title,{level:2,children:l("Notifications.notifications")}),$.jsx("button",{onClick:t,title:"closebutton",children:$.jsx(FZ2,{})})]}),$.jsxs("div",{className:"notifications-drawer__content--clear-all",children:[e.length>0&&!n&&$.jsx("button",{onClick:r,children:l("Notifications.readAll")}),e.length===0&&!n&&$.jsx("div",{children:$.jsxs(bl.Text,{children:[" ",l("Notifications.empty")]})})]}),$.jsxs("div",{className:"notifications-drawer__content--list",children:[e==null?void 0:e.map(h=>$.jsx("div",{ref:c,children:$.jsx(nX2.Notification,{notification:{id:h.id,unread:!0,title:l(N$(h).translation,N$(h).object),description:"",dateTime:new Date(h.created_at)},onClick:()=>{a(h.id)},maxLengthDesc:60})},h.id)),(n||o)&&$.jsx(rX2,{})]})]})},gJ2=Om` .drawer-handle { display: none; } @@ -9018,12 +9054,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } -`,gJ2=({isOpen:t,onClose:e})=>{const{fetchNotifications:n}=S.useContext(y4.EscolaLMSContext),a=()=>{e(),n()};return $.jsxs(Nm,{open:t,onClose:a,width:Oa?"100%":"500px",placement:"right",className:"notifications-drawer",classNames:{wrapper:"notifications-drawer",content:"notifications-drawer__content"},children:[$.jsx(fJ2,{}),$.jsx(dJ2,{onClose:a})]})},pJ2=zn.div` +`,pJ2=({isOpen:t,onClose:e})=>{const{fetchNotifications:n}=_.useContext(y4.EscolaLMSContext),a=()=>{e(),n()};return $.jsxs(Nm,{open:t,onClose:a,width:Oa?"100%":"500px",placement:"right",className:"notifications-drawer",classNames:{wrapper:"notifications-drawer",content:"notifications-drawer__content"},children:[$.jsx(gJ2,{}),$.jsx(fJ2,{onClose:a})]})},mJ2=zn.div` .close { all: unset; cursor: pointer; } -`,mJ2=Om` +`,zJ2=Om` .drawer-handle { display: none; } @@ -9034,7 +9070,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho bottom: 0; border-radius: 10px 10px 0px 0px; } -`,zJ2=({children:t,isOpen:e,onClose:n,height:a})=>$.jsxs(pJ2,{children:[$.jsx(mJ2,{$height:a}),$.jsx(Nm,{open:e,classNames:{wrapper:"mobile-drawer-drawer-wrapper",content:"drawer-content"},onClose:n,placement:"bottom",children:t})]}),U$=zn.header` +`,MJ2=({children:t,isOpen:e,onClose:n,height:a})=>$.jsxs(mJ2,{children:[$.jsx(zJ2,{$height:a}),$.jsx(Nm,{open:e,classNames:{wrapper:"mobile-drawer-drawer-wrapper",content:"drawer-content"},onClose:n,placement:"bottom",children:t})]}),W$=zn.header` width: 100%; position: fixed; top: 0; @@ -9201,7 +9237,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } } -`,MJ2=zn.div` +`,HJ2=zn.div` span { font-size: 13px; font-family: ${({theme:t})=>t.font}; @@ -9211,13 +9247,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho display: block; margin-bottom: 8px; } -`,HJ2=zn.div` +`,wJ2=zn.div` padding: 0px 25px; margin-top: 18px; > div { width: auto; } -`,wJ2=zn.div` +`,yJ2=zn.div` padding-top: 35px; ul { li { @@ -9237,7 +9273,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } } -`,yJ2=()=>{var g,H,p,m,z,w,x,y,V,C,L,B,_,T,P,F;const{t}=r9(),{handleLanguageChange:e}=JQ2(),{notifications:n}=S.useContext(il.EscolaLMSContext),{user:a,settings:r,logout:o}=S.useContext(il.EscolaLMSContext),c=a.value,l=nc1(),h=NS(),{cart:s}=tX2(),[u,v]=S.useState(!1),[f,d]=S.useState(!1),M=[{title:$.jsx(pf,{to:c0.home,children:$.jsx(P0.Text,{noMargin:!0,bold:!0,children:t("Menu.HomePage")})}),key:"menu-1"},{title:$.jsx(pf,{to:c0.courses,children:$.jsx(P0.Text,{noMargin:!0,bold:!0,children:t("Menu.Courses")})}),key:"menu-2"},{title:c?null:$.jsxs(MJ2,{children:[$.jsx(Te.Button,{mode:"primary",block:!0,onClick:()=>l.push(c0.login),children:t("Header.Login")}),$.jsx("span",{children:t("Login.NoAccount")}),$.jsx(Te.Button,{mode:"outline",block:!0,onClick:()=>l.push(c0.register),children:t("Login.Signup")})]}),key:"menuItem3"}];return Oa?$.jsxs(U$,{children:[$.jsx(g21,{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:()=>l.push(c0.home),alt:"Logo"},cart:c!=null&&c.id?$.jsx("div",{className:"icons-container",children:$.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>l.push(c0.cart),"data-tooltip":String((p=s.data)==null?void 0:p.items.length),"aria-label":t("CoursePage.GoToCheckout"),children:[$.jsx(V$,{mode:h.mode}),s.data&&((m=s.data.items)==null?void 0:m.length)>0?$.jsx("span",{children:s.data.items.length}):null]})}):null,notification:c!=null&&c.id?$.jsx("div",{className:"icons-container",children:$.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>l.push(c0.myNotifications),"data-tooltip":String((z=n.list)==null?void 0:z.meta.total),"aria-label":t("CoursePage.Notifications"),children:[$.jsx(C$,{mode:h.mode}),(w=n.list)!=null&&w.meta.total&&((x=n.list)==null?void 0:x.meta.total)>0?$.jsx("span",{children:(y=n.list)==null?void 0:y.meta.total}):null]})}):null,profile:c!=null&&c.id?$.jsx("div",{className:"icons-container",children:$.jsx("button",{type:"button",className:"cart-icon",onClick:()=>d(!0),"aria-label":t("CoursePage.GoToCheckout"),children:c!=null&&c.avatar?$.jsx(Rs.Avatar,{src:c.avatar,alt:c.first_name,size:"superSmall",className:"user-avatar"}):$.jsx(b$,{mode:h.mode})})}):null,menuItems:M}),$.jsx(HJ2,{children:$.jsx(DL.SearchCourses,{onItemSelected:W=>l.push(`/courses/${W.id}`),onInputSubmitted:W=>l.push(`/courses/?title=${W}`)})}),$.jsx(zJ2,{isOpen:f,onClose:()=>d(!1),height:"40vh",children:$.jsx(wJ2,{children:$.jsxs("ul",{children:[$.jsx("li",{children:$.jsx(D9,{to:c0.myProfile,children:t("Navbar.MyCourses")})}),$.jsx("li",{children:$.jsx(D9,{to:c0.myCertificates,children:t("Navbar.MyCertificates")})}),$.jsx("li",{children:$.jsx(D9,{to:c0.myOrders,children:t("Navbar.MyOrders")})}),$.jsx("li",{children:$.jsx(D9,{to:c0.myData,children:t("Navbar.EditProfile")})}),r.value.config.termsPage&&$.jsx("li",{children:$.jsx(D9,{to:`/${r.value.config.termsPage}`,children:t("Terms")})}),$.jsx("li",{children:$.jsx("button",{onClick:()=>o().then(()=>l.push(c0.home)),children:t("Navbar.Logout")})})]})})})]}):$.jsxs(U$,{children:[$.jsxs(g01,{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},children:[$.jsx(pf,{to:"/","aria-label":t("Go to the main page"),children:$.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"})}),$.jsx("div",{className:"search-container",children:$.jsx(DL.SearchCourses,{onItemSelected:W=>l.push(`/courses/${W.id}`),onInputSubmitted:W=>l.push(`/courses/?title=${W}`)})}),$.jsxs("div",{className:"menu-container",children:[$.jsxs("nav",{className:"navigation",children:[$.jsx(bc.DropdownMenu,{menuItems:[{id:1,content:t("Menu.HomePage"),redirect:c0.home},{id:2,content:t("Menu.Courses"),redirect:c0.courses}],onChange:W=>{W.redirect&&W.redirect!==""&&l.push(W==null?void 0:W.redirect)},child:$.jsxs(Te.Button,{mode:"icon",className:"dropdown",children:["Menu ",$.jsx(bc.Icon,{name:"hamburger"})]})}),$.jsx(bc.DropdownMenu,{menuItems:[{id:"pl",content:"Polski"},{id:"en",content:"English"}],onChange:W=>e({label:String(W.content),value:String(W.id)}),child:$.jsxs(Te.Button,{mode:"icon",className:"dropdown",children:[t("Menu.Language")," ",$.jsx(jZ2,{mode:h.mode})]})}),c&&$.jsx("div",{className:"icons-container",children:$.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>l.push(c0.cart),"data-tooltip":String((L=s.data)==null?void 0:L.items.length),"aria-label":t("CoursePage.GoToCheckout"),children:[$.jsx(V$,{mode:h.mode}),s.data&&((B=s.data.items)==null?void 0:B.length)>0?$.jsx("span",{children:s.data.items.length}):null]})}),c&&$.jsx("div",{className:"icons-container",children:$.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>v(!u),"data-tooltip":String((_=n.list)==null?void 0:_.meta.total),"aria-label":t("CoursePage.GoToCheckout"),children:[$.jsx(C$,{mode:h.mode}),(T=n.list)!=null&&T.meta.total&&((P=n.list)==null?void 0:P.meta.total)>0?$.jsx("span",{children:(F=n.list)==null?void 0:F.meta.total}):null]})}),(c==null?void 0:c.id)&&$.jsx(bc.DropdownMenu,{menuItems:[{id:1,content:t("Navbar.MyProfile"),redirect:c0.myOrders},{id:2,content:t("Navbar.MyCourses"),redirect:c0.myProfile},{id:10,content:t("Navbar.Logout"),redirect:c0.logout}],onChange:W=>W.redirect&&W.redirect!=="logout"?l.push(W.redirect):o().then(()=>l.push(c0.home)),child:$.jsx(Te.Button,{mode:"icon",className:"dropdown",children:c!=null&&c.avatar?$.jsx(Rs.Avatar,{src:c.avatar,alt:c.first_name,size:"superSmall",className:"user-avatar"}):$.jsx(b$,{mode:h.mode})})})]}),!(c!=null&&c.id)&&$.jsxs("div",{className:"not-logged-container",children:[$.jsx(Te.Button,{mode:"secondary",onClick:()=>l.push(c0.login),children:t("Header.Login")}),$.jsx(Te.Button,{mode:"secondary outline",onClick:()=>l.push(c0.register),children:t("Header.Register")})]})]})," "]}),$.jsx(gJ2,{isOpen:u,onClose:()=>v(!1)})]})},xJ2=zn.footer` +`,xJ2=()=>{var g,H,p,m,M,w,x,y,V,C,L,B,S,T,P,F;const{t}=r9(),{handleLanguageChange:e}=tX2(),{notifications:n}=_.useContext(i6.EscolaLMSContext),{user:a,settings:r,logout:o}=_.useContext(i6.EscolaLMSContext),c=a.value,l=rl1(),h=N_(),{cart:s}=eX2(),[u,v]=_.useState(!1),[f,d]=_.useState(!1),z=[{title:$.jsx(pf,{to:c0.home,children:$.jsx(P0.Text,{noMargin:!0,bold:!0,children:t("Menu.HomePage")})}),key:"menu-1"},{title:$.jsx(pf,{to:c0.courses,children:$.jsx(P0.Text,{noMargin:!0,bold:!0,children:t("Menu.Courses")})}),key:"menu-2"},{title:c?null:$.jsxs(HJ2,{children:[$.jsx(Te.Button,{mode:"primary",block:!0,onClick:()=>l.push(c0.login),children:t("Header.Login")}),$.jsx("span",{children:t("Login.NoAccount")}),$.jsx(Te.Button,{mode:"outline",block:!0,onClick:()=>l.push(c0.register),children:t("Login.Signup")})]}),key:"menuItem3"}];return Oa?$.jsxs(W$,{children:[$.jsx(m21,{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:()=>l.push(c0.home),alt:"Logo"},cart:c!=null&&c.id?$.jsx("div",{className:"icons-container",children:$.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>l.push(c0.cart),"data-tooltip":String((p=s.data)==null?void 0:p.items.length),"aria-label":t("CoursePage.GoToCheckout"),children:[$.jsx(C$,{mode:h.mode}),s.data&&((m=s.data.items)==null?void 0:m.length)>0?$.jsx("span",{children:s.data.items.length}):null]})}):null,notification:c!=null&&c.id?$.jsx("div",{className:"icons-container",children:$.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>l.push(c0.myNotifications),"data-tooltip":String((M=n.list)==null?void 0:M.meta.total),"aria-label":t("CoursePage.Notifications"),children:[$.jsx(b$,{mode:h.mode}),(w=n.list)!=null&&w.meta.total&&((x=n.list)==null?void 0:x.meta.total)>0?$.jsx("span",{children:(y=n.list)==null?void 0:y.meta.total}):null]})}):null,profile:c!=null&&c.id?$.jsx("div",{className:"icons-container",children:$.jsx("button",{type:"button",className:"cart-icon",onClick:()=>d(!0),"aria-label":t("CoursePage.GoToCheckout"),children:c!=null&&c.avatar?$.jsx(Rs.Avatar,{src:c.avatar,alt:c.first_name,size:"superSmall",className:"user-avatar"}):$.jsx(L$,{mode:h.mode})})}):null,menuItems:z}),$.jsx(wJ2,{children:$.jsx(DL.SearchCourses,{onItemSelected:W=>l.push(`/courses/${W.id}`),onInputSubmitted:W=>l.push(`/courses/?title=${W}`)})}),$.jsx(MJ2,{isOpen:f,onClose:()=>d(!1),height:"40vh",children:$.jsx(yJ2,{children:$.jsxs("ul",{children:[$.jsx("li",{children:$.jsx(D9,{to:c0.myProfile,children:t("Navbar.MyCourses")})}),$.jsx("li",{children:$.jsx(D9,{to:c0.myCertificates,children:t("Navbar.MyCertificates")})}),$.jsx("li",{children:$.jsx(D9,{to:c0.myOrders,children:t("Navbar.MyOrders")})}),$.jsx("li",{children:$.jsx(D9,{to:c0.myData,children:t("Navbar.EditProfile")})}),r.value.config.termsPage&&$.jsx("li",{children:$.jsx(D9,{to:`/${r.value.config.termsPage}`,children:t("Terms")})}),$.jsx("li",{children:$.jsx("button",{onClick:()=>o().then(()=>l.push(c0.home)),children:t("Navbar.Logout")})})]})})})]}):$.jsxs(W$,{children:[$.jsxs(m01,{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},children:[$.jsx(pf,{to:"/","aria-label":t("Go to the main page"),children:$.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"})}),$.jsx("div",{className:"search-container",children:$.jsx(DL.SearchCourses,{onItemSelected:W=>l.push(`/courses/${W.id}`),onInputSubmitted:W=>l.push(`/courses/?title=${W}`)})}),$.jsxs("div",{className:"menu-container",children:[$.jsxs("nav",{className:"navigation",children:[$.jsx(bl.DropdownMenu,{menuItems:[{id:1,content:t("Menu.HomePage"),redirect:c0.home},{id:2,content:t("Menu.Courses"),redirect:c0.courses}],onChange:W=>{W.redirect&&W.redirect!==""&&l.push(W==null?void 0:W.redirect)},child:$.jsxs(Te.Button,{mode:"icon",className:"dropdown",children:["Menu ",$.jsx(bl.Icon,{name:"hamburger"})]})}),$.jsx(bl.DropdownMenu,{menuItems:[{id:"pl",content:"Polski"},{id:"en",content:"English"}],onChange:W=>e({label:String(W.content),value:String(W.id)}),child:$.jsxs(Te.Button,{mode:"icon",className:"dropdown",children:[t("Menu.Language")," ",$.jsx(IZ2,{mode:h.mode})]})}),c&&$.jsx("div",{className:"icons-container",children:$.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>l.push(c0.cart),"data-tooltip":String((L=s.data)==null?void 0:L.items.length),"aria-label":t("CoursePage.GoToCheckout"),children:[$.jsx(C$,{mode:h.mode}),s.data&&((B=s.data.items)==null?void 0:B.length)>0?$.jsx("span",{children:s.data.items.length}):null]})}),c&&$.jsx("div",{className:"icons-container",children:$.jsxs("button",{type:"button",className:"cart-icon",onClick:()=>v(!u),"data-tooltip":String((S=n.list)==null?void 0:S.meta.total),"aria-label":t("CoursePage.GoToCheckout"),children:[$.jsx(b$,{mode:h.mode}),(T=n.list)!=null&&T.meta.total&&((P=n.list)==null?void 0:P.meta.total)>0?$.jsx("span",{children:(F=n.list)==null?void 0:F.meta.total}):null]})}),(c==null?void 0:c.id)&&$.jsx(bl.DropdownMenu,{menuItems:[{id:1,content:t("Navbar.MyProfile"),redirect:c0.myOrders},{id:2,content:t("Navbar.MyCourses"),redirect:c0.myProfile},{id:10,content:t("Navbar.Logout"),redirect:c0.logout}],onChange:W=>W.redirect&&W.redirect!=="logout"?l.push(W.redirect):o().then(()=>l.push(c0.home)),child:$.jsx(Te.Button,{mode:"icon",className:"dropdown",children:c!=null&&c.avatar?$.jsx(Rs.Avatar,{src:c.avatar,alt:c.first_name,size:"superSmall",className:"user-avatar"}):$.jsx(L$,{mode:h.mode})})})]}),!(c!=null&&c.id)&&$.jsxs("div",{className:"not-logged-container",children:[$.jsx(Te.Button,{mode:"secondary",onClick:()=>l.push(c0.login),children:t("Header.Login")}),$.jsx(Te.Button,{mode:"secondary outline",onClick:()=>l.push(c0.register),children:t("Header.Register")})]})]})," "]}),$.jsx(pJ2,{isOpen:u,onClose:()=>v(!1)})]})},VJ2=zn.footer` padding: ${Oa?"50px 0 70px":"50px 0 50px"}; z-index: 50; position: relative; @@ -9291,7 +9327,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin-left: ${Oa?"10px":"27px"}; } } -`,VJ2=()=>{var h,s,u,v;const{settings:t,fetchPages:e,pages:n,user:a}=S.useContext(y4.EscolaLMSContext),{t:r,i18n:o}=r9();S.useEffect(()=>{e()},[]);const c=S.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=>a.value?M:!M.auth)},[(s=(h=t==null?void 0:t.value)==null?void 0:h.footerMenu)==null?void 0:s.menu,a.value]),l=(f,d)=>{if(!f)return[];const M=[];for(let g=0;g0?$.jsx($.Fragment,{children:c.map(f=>!!f.link&&$.jsx(kn.Link,{className:"single-link",href:f.link,children:typeof f.label=="object"&&$.jsx(P0.Text,{size:"14",children:f.label[o.language]})},f.link.toString()))}):$.jsxs($.Fragment,{children:[$.jsx(kn.Link,{className:"single-link",href:c0.home,children:$.jsx(P0.Text,{size:"14",children:r("Footer.HomePage")})}),$.jsx(kn.Link,{className:"single-link",href:c0.courses,children:$.jsx(P0.Text,{size:"14",children:r("Footer.Courses")})}),a.value?$.jsx(kn.Link,{className:"single-link",href:c0.myProfile,children:$.jsx(P0.Text,{size:"14",children:r("Footer.UserProfile")})}):$.jsxs($.Fragment,{children:[$.jsx(kn.Link,{className:"single-link",href:c0.login,children:$.jsx(P0.Text,{size:"14",children:r("Header.Login")})}),$.jsx(kn.Link,{className:"single-link",href:c0.register,children:$.jsx(P0.Text,{size:"14",children:r("Header.Register")})})]}),$.jsx(kn.Link,{className:"single-link",href:c0.cart,children:$.jsx(P0.Text,{size:"14",children:r("Footer.Cart")})})]})}),$.jsx("div",{className:"links-row pages",children:l(n.list,4).map(f=>$.jsx(V5.Row,{children:f.map(d=>$.jsx(V5.Col,{xs:12,sm:12,md:12,lg:3,children:$.jsx(kn.Link,{className:"single-link",href:`/#/${d.slug}`,children:$.jsx(P0.Text,{size:"14",children:d.title})})},d.id))},f.toString()))}),$.jsxs("div",{className:"copyrights",children:[$.jsx(P0.Text,{size:"14",children:r("Footer.PoweredBy")}),$.jsx("img",{src:((v=(u=t==null?void 0:t.value)==null?void 0:u.global)==null?void 0:v.logo)||"",alt:""})]})]})})};var H01=gJ();const H40=G0(H01),CJ2=zn.aside` +`,CJ2=()=>{var h,s,u,v;const{settings:t,fetchPages:e,pages:n,user:a}=_.useContext(y4.EscolaLMSContext),{t:r,i18n:o}=r9();_.useEffect(()=>{e()},[]);const c=_.useMemo(()=>{var f,d;return(((d=(f=t==null?void 0:t.value)==null?void 0:f.footerMenu)==null?void 0:d.menu)??[]).filter(z=>a.value?z:!z.auth)},[(s=(h=t==null?void 0:t.value)==null?void 0:h.footerMenu)==null?void 0:s.menu,a.value]),l=(f,d)=>{if(!f)return[];const z=[];for(let g=0;g0?$.jsx($.Fragment,{children:c.map(f=>!!f.link&&$.jsx(kn.Link,{className:"single-link",href:f.link,children:typeof f.label=="object"&&$.jsx(P0.Text,{size:"14",children:f.label[o.language]})},f.link.toString()))}):$.jsxs($.Fragment,{children:[$.jsx(kn.Link,{className:"single-link",href:c0.home,children:$.jsx(P0.Text,{size:"14",children:r("Footer.HomePage")})}),$.jsx(kn.Link,{className:"single-link",href:c0.courses,children:$.jsx(P0.Text,{size:"14",children:r("Footer.Courses")})}),a.value?$.jsx(kn.Link,{className:"single-link",href:c0.myProfile,children:$.jsx(P0.Text,{size:"14",children:r("Footer.UserProfile")})}):$.jsxs($.Fragment,{children:[$.jsx(kn.Link,{className:"single-link",href:c0.login,children:$.jsx(P0.Text,{size:"14",children:r("Header.Login")})}),$.jsx(kn.Link,{className:"single-link",href:c0.register,children:$.jsx(P0.Text,{size:"14",children:r("Header.Register")})})]}),$.jsx(kn.Link,{className:"single-link",href:c0.cart,children:$.jsx(P0.Text,{size:"14",children:r("Footer.Cart")})})]})}),$.jsx("div",{className:"links-row pages",children:l(n.list,4).map(f=>$.jsx(xi.Row,{children:f.map(d=>$.jsx(xi.Col,{xs:12,sm:12,md:12,lg:3,children:$.jsx(kn.Link,{className:"single-link",href:`/#/${d.slug}`,children:$.jsx(P0.Text,{size:"14",children:d.title})})},d.id))},f.toString()))}),$.jsxs("div",{className:"copyrights",children:[$.jsx(P0.Text,{size:"14",children:r("Footer.PoweredBy")}),$.jsx("img",{src:((v=(u=t==null?void 0:t.value)==null?void 0:u.global)==null?void 0:v.logo)||"",alt:""})]})]})})};var y01=pJ();const w40=G0(y01),bJ2=zn.aside` position: fixed; bottom: 0; left: 0; @@ -9310,14 +9346,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .time { margin: 0; } -`,bJ2=()=>{var c,l;const{settings:t}=S.useContext(y4.EscolaLMSContext),[e,n]=S.useState(!0),{t:a}=r9(),r=(l=(c=t==null?void 0:t.value)==null?void 0:c.config)==null?void 0:l.footerWarning,o=()=>{localStorage.setItem("hideWarning","true"),n(!1)};return!e||!r?$.jsx(W1.Fragment,{}):$.jsx(CJ2,{children:$.jsx(BJ,{time:$.jsx(Te.Button,{mode:"outline",onClick:o,children:a("I'm aware")}),description:$.jsx(H01.MarkdownRenderer,{children:r})})})};window.ybug_settings=window.ybug_settings||{};const W$=window.VITE_APP_YBUG_ID||"01m1nn5zqystt1qq5n11";V5.setConfiguration({maxScreenClass:"xl"});const LJ2=({children:t,metaTitle:e})=>{const{pathname:n}=KG();S.useEffect(()=>{(function(){if(window&&W$)try{window.ybug_settings={id:W$};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 a=n.includes("/course/");return $.jsxs(W1.Fragment,{children:[$.jsxs(fb,{children:[$.jsx("title",{children:e?`${e} | Worlds first Headless LMS`:"Worlds first Headless LMS"}),$.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"}),$.jsx("meta",{name:"description",content:"Worlds first Headless LMS"}),$.jsx("meta",{name:"og:title",property:"og:title",content:"Worlds first Headless LMS"}),$.jsx("meta",{name:"twitter:card",content:"Worlds first Headless LMS"})]}),$.jsx(Jl1,{hideProgressBar:!0,position:"top-center",theme:"colored"}),$.jsxs("div",{className:"site-wrapper",children:[$.jsx(yJ2,{}),t,!a&&$.jsx(VJ2,{}),localStorage.getItem("hideWarning")!=="true"&&$.jsx(bJ2,{})]})]})},BJ2=zn.div` +`,LJ2=()=>{var c,l;const{settings:t}=_.useContext(y4.EscolaLMSContext),[e,n]=_.useState(!0),{t:a}=r9(),r=(l=(c=t==null?void 0:t.value)==null?void 0:c.config)==null?void 0:l.footerWarning,o=()=>{localStorage.setItem("hideWarning","true"),n(!1)};return!e||!r?$.jsx(W1.Fragment,{}):$.jsx(bJ2,{children:$.jsx(SJ,{time:$.jsx(Te.Button,{mode:"outline",onClick:o,children:a("I'm aware")}),description:$.jsx(y01.MarkdownRenderer,{children:r})})})};window.ybug_settings=window.ybug_settings||{};const q$=window.VITE_APP_YBUG_ID||"01m1nn5zqystt1qq5n11";xi.setConfiguration({maxScreenClass:"xl"});const BJ2=({children:t,metaTitle:e})=>{const{pathname:n}=YG();_.useEffect(()=>{(function(){if(window&&q$)try{window.ybug_settings={id:q$};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 a=n.includes("/course/");return $.jsxs(W1.Fragment,{children:[$.jsxs(fb,{children:[$.jsx("title",{children:e?`${e} | Worlds first Headless LMS`:"Worlds first Headless LMS"}),$.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"}),$.jsx("meta",{name:"description",content:"Worlds first Headless LMS"}),$.jsx("meta",{name:"og:title",property:"og:title",content:"Worlds first Headless LMS"}),$.jsx("meta",{name:"twitter:card",content:"Worlds first Headless LMS"})]}),$.jsx(e91,{hideProgressBar:!0,position:"top-center",theme:"colored"}),$.jsxs("div",{className:"site-wrapper",children:[$.jsx(xJ2,{}),t,!a&&$.jsx(CJ2,{}),localStorage.getItem("hideWarning")!=="true"&&$.jsx(LJ2,{})]})]})},_J2=zn.div` display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: center; align-content: center; -`,SJ2=()=>{const{t}=r9();return $.jsx(LJ2,{children:$.jsxs(BJ2,{children:[$.jsxs(Un.Title,{level:3,children:[" ",t("Loading")]}),$.jsx(Sh.Spin,{})]})})},_J2=S.lazy(()=>a0(()=>import("./index-BWDnE6v4.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]))),TJ2=S.lazy(()=>a0(()=>import("./index-DZWvGNdp.js"),__vite__mapDeps([]))),OJ2=S.lazy(()=>a0(()=>import("./index-fDwvoi0a.js"),__vite__mapDeps([24,25]))),AJ2=S.lazy(()=>a0(()=>import("./index-8-K2S57r.js"),__vite__mapDeps([]))),kJ2=S.lazy(()=>a0(()=>import("./index-guW92oBe.js"),__vite__mapDeps([26,27,28,13]))),q$=S.lazy(()=>a0(()=>import("./index-DbbQmc-j.js"),__vite__mapDeps([]))),EJ2=S.lazy(()=>a0(()=>import("./index-Cm8jcXmV.js"),__vite__mapDeps([29,27]))),PJ2=S.lazy(()=>a0(()=>import("./index-DUw7vyQu.js"),__vite__mapDeps([30,31,1,5,6,7,3,8,9,10,27,18,32]))),NJ2=S.lazy(()=>a0(()=>import("./index-DUejgRFA.js"),__vite__mapDeps([33,23,15,1,7,6,8,12,13,11]))),DJ2=S.lazy(()=>a0(()=>import("./index-CPrZPupU.js"),__vite__mapDeps([34,35,8,36,37,1,38,27,20,7,23,4,5,6,3,9,10,11,12,13]))),RJ2=S.lazy(()=>a0(()=>import("./index-DjqgBh2n.js"),__vite__mapDeps([39,31,40,36,37,1,38,41]))),jJ2=S.lazy(()=>a0(()=>import("./index-qSnNTHpy.js"),__vite__mapDeps([42,31,27,1,35,43,37,44,6,45]))),IJ2=S.lazy(()=>a0(()=>import("./index-C-t40R0k.js"),__vite__mapDeps([46,2,3,47,48,14,15,43,37,44,1,6,45,23]))),FJ2=S.lazy(()=>a0(()=>import("./index-CE-twewT.js"),__vite__mapDeps([49,25]))),$J2=S.lazy(()=>a0(()=>import("./index-CxOgFS2u.js"),__vite__mapDeps([50,15,2,3,47,48,51,1,6,32,7,23]))),UJ2=S.lazy(()=>a0(()=>import("./index-D8adTAOi.js"),__vite__mapDeps([52,31,27,1,35,8,53,18,51,6,32,7]))),WJ2=S.lazy(()=>a0(()=>import("./index-DcvLU2H2.js"),__vite__mapDeps([54,15,2,3,48,55,1,6,32,23]))),qJ2=S.lazy(()=>a0(()=>import("./index-C0520CdO.js"),__vite__mapDeps([56,57,1,27,35,58,8]))),GJ2=S.lazy(()=>a0(()=>import("./index-3h6lsqCl.js"),__vite__mapDeps([59,15,2,3,47,48,23,1,6,32,7]))),KJ2=S.lazy(()=>a0(()=>import("./index-BPUdkZ-s.js"),__vite__mapDeps([60,31,35,8,53,27,1,57]))),YJ2=S.lazy(()=>a0(()=>import("./index-Bm51j3_8.js"),__vite__mapDeps([61,62,28]))),ZJ2=S.lazy(()=>a0(()=>import("./index-bOIEcY8h.js"),__vite__mapDeps([63,62,28]))),QJ2=S.lazy(()=>a0(()=>import("./index-D2EEDxQl.js"),__vite__mapDeps([16,17,6,1,18,7,19,20,21,22,14,15,23,9,3,10,12,13]))),XJ2=S.lazy(()=>a0(()=>import("./index-DRe4zRdE.js"),__vite__mapDeps([64,17,51,1,6,32,7,62,28]))),JJ2=S.lazy(()=>a0(()=>import("./my-orders-BHnTRDWy.js"),__vite__mapDeps([65,62,28]))),t10=S.lazy(()=>a0(()=>import("./my-notifications-BYALnEXy.js"),__vite__mapDeps([]))),e10=S.lazy(()=>a0(()=>import("./my-consultations-DKpxamxh.js"),__vite__mapDeps([66,62,28,17,1,6,44,43,37,45,22]))),n10=S.lazy(()=>a0(()=>import("./my-data-4W-0jZl7.js"),__vite__mapDeps([67,62,28,41]))),a10=S.lazy(()=>a0(()=>import("./index-uJPnOlkq.js"),__vite__mapDeps([68,40,36,37,1,38,41,19,20]))),r10=S.lazy(()=>a0(()=>import("./index-C2umk5G4.js"),__vite__mapDeps([69,31,5,6,1,7,3,8,9,10,27]))),i10=S.lazy(()=>a0(()=>import("./index-cRvfodQO.js"),__vite__mapDeps([70,62,28,17,55,1,6,32,44,58]))),o10=S.lazy(()=>a0(()=>import("./my-certificates-4r3nUmSb.js"),__vite__mapDeps([71,62,28,21]))),c10=t=>sc1()==="BrowserRouter"?$.jsx(ac1,{...t}):$.jsx(rc1,{...t}),l10=window.VITE_APP_BASENAME||"/",s10=()=>{const{home:t,page:e,myProfile:n,myConsultations:a,myOrders:r,tutors:o,tutor:c,courses:l,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:_,myWebinars:T,packages:P,packageProduct:F,myCertificates:W}=c0;return $.jsxs(c10,{basename:l10,children:[$.jsx(hc1,{}),$.jsx(S.Suspense,{fallback:$.jsx(SJ2,{}),children:$.jsxs(ec1,{children:[$.jsx(zr,{exact:!0,path:t,component:_J2}),$.jsx(zr,{exact:!0,path:z,component:TJ2}),$.jsx(zr,{exact:!0,path:m,component:OJ2}),$.jsx(zr,{exact:!0,path:M,component:FJ2}),$.jsx(zr,{exact:!0,path:w,component:AJ2}),$.jsx(Ha,{exact:!0,path:o,component:EJ2}),$.jsx(Ha,{exact:!0,path:f,component:IJ2}),$.jsx(Ha,{exact:!0,path:v,component:jJ2}),$.jsx(Ha,{exact:!0,path:c,component:PJ2}),$.jsx(Ha,{exact:!0,path:h,component:DJ2}),$.jsx(Ha,{exact:!0,path:s,component:RJ2}),$.jsx(lc1,{exact:!0,path:l,component:NJ2}),$.jsx(Ha,{exact:!0,path:x,component:$J2}),$.jsx(Ha,{exact:!0,path:y,component:UJ2}),$.jsx(Ha,{exact:!0,path:B,component:WJ2}),$.jsx(Ha,{exact:!0,path:_,component:qJ2}),$.jsx(Ha,{exact:!0,path:P,component:GJ2}),$.jsx(Ha,{exact:!0,path:F,component:KJ2}),$.jsx(Ma,{exact:!0,path:n,component:QJ2}),$.jsx(Ma,{exact:!0,path:C,component:YJ2}),$.jsx(Ma,{exact:!0,path:L,component:ZJ2}),$.jsx(Ma,{exact:!0,path:T,component:i10}),$.jsx(Ma,{exact:!0,path:W,component:o10}),$.jsx(Ma,{exact:!0,path:V,component:XJ2}),$.jsx(Ma,{exact:!0,path:a,component:e10}),$.jsx(Ma,{exact:!0,path:r,component:JJ2}),$.jsx(Ma,{exact:!0,path:H,component:t10}),$.jsx(Ma,{exact:!0,path:p,component:n10}),$.jsx(Ma,{exact:!0,path:u,component:a10}),$.jsx(Ma,{exact:!0,path:d,component:r10}),$.jsx(zr,{exact:!0,path:g,component:q$}),$.jsx(zr,{exact:!0,path:e,component:kJ2}),$.jsx(zr,{exact:!0,component:q$})]})})]})};/*! ***************************************************************************** +`,SJ2=()=>{const{t}=r9();return $.jsx(BJ2,{children:$.jsxs(_J2,{children:[$.jsxs(Un.Title,{level:3,children:[" ",t("Loading")]}),$.jsx(_h.Spin,{})]})})},TJ2=_.lazy(()=>a0(()=>import("./index-BOsswcW5.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(()=>a0(()=>import("./index-Bo6dQlfK.js"),__vite__mapDeps([]))),AJ2=_.lazy(()=>a0(()=>import("./index-Cd6wdOLZ.js"),__vite__mapDeps([24,25]))),kJ2=_.lazy(()=>a0(()=>import("./index-tPRLCCZ4.js"),__vite__mapDeps([]))),EJ2=_.lazy(()=>a0(()=>import("./index-BMYeo1-N.js"),__vite__mapDeps([26,27,28,13]))),G$=_.lazy(()=>a0(()=>import("./index-0vXELQop.js"),__vite__mapDeps([]))),PJ2=_.lazy(()=>a0(()=>import("./index-Cp_G8hVF.js"),__vite__mapDeps([29,27]))),NJ2=_.lazy(()=>a0(()=>import("./index-BP44goY3.js"),__vite__mapDeps([30,31,1,5,6,7,3,8,9,10,27,18,32]))),DJ2=_.lazy(()=>a0(()=>import("./index-B1dAa_iB.js"),__vite__mapDeps([33,23,15,1,7,6,8,12,13,11]))),RJ2=_.lazy(()=>a0(()=>import("./index-DGvaplHr.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(()=>a0(()=>import("./index-Dr2GJwWy.js"),__vite__mapDeps([39,31,40,36,37,1,38,41]))),IJ2=_.lazy(()=>a0(()=>import("./index-DVtPk8fp.js"),__vite__mapDeps([42,31,27,1,35,43,37,44,6,45]))),FJ2=_.lazy(()=>a0(()=>import("./index-w9LHPXnG.js"),__vite__mapDeps([46,2,3,47,48,14,15,43,37,44,1,6,45,23]))),$J2=_.lazy(()=>a0(()=>import("./index-D74bjbr6.js"),__vite__mapDeps([49,25]))),UJ2=_.lazy(()=>a0(()=>import("./index-OVpVpRd0.js"),__vite__mapDeps([50,15,2,3,47,48,51,1,6,32,7,23]))),WJ2=_.lazy(()=>a0(()=>import("./index-DQ0XFVc0.js"),__vite__mapDeps([52,31,27,1,35,8,53,18,51,6,32,7]))),qJ2=_.lazy(()=>a0(()=>import("./index-B3yN8KNK.js"),__vite__mapDeps([54,15,2,3,48,55,1,6,32,23]))),GJ2=_.lazy(()=>a0(()=>import("./index-pHJfFXgf.js"),__vite__mapDeps([56,57,1,27,35,58,8]))),KJ2=_.lazy(()=>a0(()=>import("./index-BFu5eoou.js"),__vite__mapDeps([59,15,2,3,47,48,23,1,6,32,7]))),YJ2=_.lazy(()=>a0(()=>import("./index-DlW1qbvR.js"),__vite__mapDeps([60,31,35,8,53,27,1,57]))),ZJ2=_.lazy(()=>a0(()=>import("./index-B0Xc5A9M.js"),__vite__mapDeps([61,62,28]))),QJ2=_.lazy(()=>a0(()=>import("./index-_3yHz1uc.js"),__vite__mapDeps([63,62,28]))),XJ2=_.lazy(()=>a0(()=>import("./index-CZ78E_Aa.js"),__vite__mapDeps([16,17,6,1,18,7,19,20,21,22,14,15,23,9,3,10,12,13]))),JJ2=_.lazy(()=>a0(()=>import("./index-CEADi1Aj.js"),__vite__mapDeps([64,17,51,1,6,32,7,62,28]))),t10=_.lazy(()=>a0(()=>import("./my-orders-BGaC8hnI.js"),__vite__mapDeps([65,62,28]))),e10=_.lazy(()=>a0(()=>import("./my-notifications-C5d7x6gs.js"),__vite__mapDeps([]))),n10=_.lazy(()=>a0(()=>import("./my-consultations-Dtpsattf.js"),__vite__mapDeps([66,62,28,17,1,6,44,43,37,45,22]))),a10=_.lazy(()=>a0(()=>import("./my-data-DMINpbKK.js"),__vite__mapDeps([67,62,28,41]))),r10=_.lazy(()=>a0(()=>import("./index-DVuKhhZz.js"),__vite__mapDeps([68,40,36,37,1,38,41,19,20]))),i10=_.lazy(()=>a0(()=>import("./index-BDGj3bcL.js"),__vite__mapDeps([69,31,5,6,1,7,3,8,9,10,27]))),o10=_.lazy(()=>a0(()=>import("./index-D28dnp4A.js"),__vite__mapDeps([70,62,28,17,55,1,6,32,44,58]))),c10=_.lazy(()=>a0(()=>import("./my-certificates-Ctxd4pRk.js"),__vite__mapDeps([71,62,28,21]))),l10=t=>ul1()==="BrowserRouter"?$.jsx(il1,{...t}):$.jsx(ol1,{...t}),s10=window.VITE_APP_BASENAME||"/",h10=()=>{const{home:t,page:e,myProfile:n,myConsultations:a,myOrders:r,tutors:o,tutor:c,courses:l,course:h,preview:s,courseProgram:u,consultation:v,consultations:f,cart:d,reset:z,notFound:g,myNotifications:H,myData:p,login:m,register:M,emailVerify:w,events:x,event:y,myStationaryEvents:V,myTasks:C,myBookmarks:L,webinars:B,webinar:S,myWebinars:T,packages:P,packageProduct:F,myCertificates:W}=c0;return $.jsxs(l10,{basename:s10,children:[$.jsx(vl1,{}),$.jsx(_.Suspense,{fallback:$.jsx(SJ2,{}),children:$.jsxs(al1,{children:[$.jsx(zr,{exact:!0,path:t,component:TJ2}),$.jsx(zr,{exact:!0,path:M,component:OJ2}),$.jsx(zr,{exact:!0,path:m,component:AJ2}),$.jsx(zr,{exact:!0,path:z,component:$J2}),$.jsx(zr,{exact:!0,path:w,component:kJ2}),$.jsx(Ha,{exact:!0,path:o,component:PJ2}),$.jsx(Ha,{exact:!0,path:f,component:FJ2}),$.jsx(Ha,{exact:!0,path:v,component:IJ2}),$.jsx(Ha,{exact:!0,path:c,component:NJ2}),$.jsx(Ha,{exact:!0,path:h,component:RJ2}),$.jsx(Ha,{exact:!0,path:s,component:jJ2}),$.jsx(hl1,{exact:!0,path:l,component:DJ2}),$.jsx(Ha,{exact:!0,path:x,component:UJ2}),$.jsx(Ha,{exact:!0,path:y,component:WJ2}),$.jsx(Ha,{exact:!0,path:B,component:qJ2}),$.jsx(Ha,{exact:!0,path:S,component:GJ2}),$.jsx(Ha,{exact:!0,path:P,component:KJ2}),$.jsx(Ha,{exact:!0,path:F,component:YJ2}),$.jsx(Ma,{exact:!0,path:n,component:XJ2}),$.jsx(Ma,{exact:!0,path:C,component:ZJ2}),$.jsx(Ma,{exact:!0,path:L,component:QJ2}),$.jsx(Ma,{exact:!0,path:T,component:o10}),$.jsx(Ma,{exact:!0,path:W,component:c10}),$.jsx(Ma,{exact:!0,path:V,component:JJ2}),$.jsx(Ma,{exact:!0,path:a,component:n10}),$.jsx(Ma,{exact:!0,path:r,component:t10}),$.jsx(Ma,{exact:!0,path:H,component:e10}),$.jsx(Ma,{exact:!0,path:p,component:a10}),$.jsx(Ma,{exact:!0,path:u,component:r10}),$.jsx(Ma,{exact:!0,path:d,component:i10}),$.jsx(zr,{exact:!0,path:g,component:G$}),$.jsx(zr,{exact:!0,path:e,component:EJ2}),$.jsx(zr,{exact:!0,component:G$})]})})]})};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -9330,18 +9366,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(n,a){n.__proto__=a}||function(n,a){for(var r in a)a.hasOwnProperty(r)&&(n[r]=a[r])},GL(t,e)};function Ui(t,e){GL(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var K1=function(){return K1=Object.assign||function(e){for(var n,a=1,r=arguments.length;a=t.length&&(t=void 0),{value:t&&t[a++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function pn(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var a=n.call(t),r,o=[],c;try{for(;(e===void 0||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(l){c={error:l}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(c)throw c.error}}return o}function Be(){for(var t=[],e=0;e ",s=h.length,u=void 0;n&&c++1&&l+o.length*s+u.length>=r));)o.push(u),l+=u.length,n=n.parentNode;return o.reverse().join(h)}catch{return""}}function M10(t,e){var n=t,a=[],r,o,c,l,h;if(!n||!n.tagName)return"";a.push(n.tagName.toLowerCase());var s=e&&e.length?e.filter(function(v){return n.getAttribute(v)}).map(function(v){return[v,n.getAttribute(v)]}):null;if(s&&s.length)s.forEach(function(v){a.push("["+v[0]+'="'+v[1]+'"]')});else if(n.id&&a.push("#"+n.id),r=n.className,r&&Cl(r))for(o=r.split(/\s+/),h=0;h"u"?!0:__SENTRY_DEBUG__,V10=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function C10(t){return t==="http"||t==="https"}function su(t,e){e===void 0&&(e=!1);var n=t.host,a=t.path,r=t.pass,o=t.port,c=t.projectId,l=t.protocol,h=t.publicKey;return l+"://"+h+(e&&r?":"+r:"")+("@"+n+(o?":"+o:"")+"/"+(a&&a+"/")+c)}function b10(t){var e=V10.exec(t);if(!e)throw new r4("Invalid Sentry Dsn: "+t);var n=pn(e.slice(1),6),a=n[0],r=n[1],o=n[2],c=o===void 0?"":o,l=n[3],h=n[4],s=h===void 0?"":h,u=n[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 V01({host:l,pass:c,path:v,projectId:f,port:s,protocol:a,publicKey:r})}function V01(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 L10(t){if(o9){var e=t.port,n=t.projectId,a=t.protocol,r=["protocol","publicKey","host","projectId"];if(r.forEach(function(o){if(!t[o])throw new r4("Invalid Sentry Dsn: "+o+" missing")}),!n.match(/^\d+$/))throw new r4("Invalid Sentry Dsn: Invalid projectId "+n);if(!C10(a))throw new r4("Invalid Sentry Dsn: Invalid protocol "+a);if(e&&isNaN(parseInt(e,10)))throw new r4("Invalid Sentry Dsn: Invalid port "+e);return!0}}function wO(t){var e=typeof t=="string"?b10(t):V01(t);return L10(e),e}var B10=["fatal","error","warning","log","info","debug","critical"],S10=g0(),_10="Sentry Logger ",Hp=["debug","info","warn","error","log","assert"];function C01(t){var e=g0();if(!("console"in e))return t();var n=e.console,a={};Hp.forEach(function(r){var o=n[r]&&n[r].__sentry_original__;r in e.console&&o&&(a[r]=n[r],n[r]=o)});try{return t()}finally{Object.keys(a).forEach(function(r){n[r]=a[r]})}}function K$(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return o9?Hp.forEach(function(n){e[n]=function(){for(var a=[],r=0;r"}}function Q$(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function O10(t,e){e===void 0&&(e=40);var n=Object.keys(L01(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return fs(n[0],e);for(var a=n.length;a>0;a--){var r=n.slice(0,a).join(", ");if(!(r.length>e))return a===n.length?r:fs(r,e)}return""}function P8(t){var e,n;if(bl(t)){var a={};try{for(var r=mo(Object.keys(t)),o=r.next();!o.done;o=r.next()){var c=o.value;typeof t[c]<"u"&&(a[c]=P8(t[c]))}}catch(l){e={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return a}return Array.isArray(t)?t.map(P8):t}var A10=50;function k10(){for(var t=[],e=0;e=t.length&&(t=void 0),{value:t&&t[a++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function pn(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var a=n.call(t),r,o=[],c;try{for(;(e===void 0||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(l){c={error:l}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(c)throw c.error}}return o}function Be(){for(var t=[],e=0;e ",s=h.length,u=void 0;n&&c++1&&l+o.length*s+u.length>=r));)o.push(u),l+=u.length,n=n.parentNode;return o.reverse().join(h)}catch{return""}}function H10(t,e){var n=t,a=[],r,o,c,l,h;if(!n||!n.tagName)return"";a.push(n.tagName.toLowerCase());var s=e&&e.length?e.filter(function(v){return n.getAttribute(v)}).map(function(v){return[v,n.getAttribute(v)]}):null;if(s&&s.length)s.forEach(function(v){a.push("["+v[0]+'="'+v[1]+'"]')});else if(n.id&&a.push("#"+n.id),r=n.className,r&&C6(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 n=t.host,a=t.path,r=t.pass,o=t.port,c=t.projectId,l=t.protocol,h=t.publicKey;return l+"://"+h+(e&&r?":"+r:"")+("@"+n+(o?":"+o:"")+"/"+(a&&a+"/")+c)}function L10(t){var e=C10.exec(t);if(!e)throw new r4("Invalid Sentry Dsn: "+t);var n=pn(e.slice(1),6),a=n[0],r=n[1],o=n[2],c=o===void 0?"":o,l=n[3],h=n[4],s=h===void 0?"":h,u=n[5],v="",f=u,d=f.split("/");if(d.length>1&&(v=d.slice(0,-1).join("/"),f=d.pop()),f){var z=f.match(/^\d+/);z&&(f=z[0])}return b01({host:l,pass:c,path:v,projectId:f,port:s,protocol:a,publicKey:r})}function b01(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,n=t.projectId,a=t.protocol,r=["protocol","publicKey","host","projectId"];if(r.forEach(function(o){if(!t[o])throw new r4("Invalid Sentry Dsn: "+o+" missing")}),!n.match(/^\d+$/))throw new r4("Invalid Sentry Dsn: Invalid projectId "+n);if(!b10(a))throw new r4("Invalid Sentry Dsn: Invalid protocol "+a);if(e&&isNaN(parseInt(e,10)))throw new r4("Invalid Sentry Dsn: Invalid port "+e);return!0}}function wO(t){var e=typeof t=="string"?L10(t):b01(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 L01(t){var e=g0();if(!("console"in e))return t();var n=e.console,a={};Hp.forEach(function(r){var o=n[r]&&n[r].__sentry_original__;r in e.console&&o&&(a[r]=n[r],n[r]=o)});try{return t()}finally{Object.keys(a).forEach(function(r){n[r]=a[r]})}}function Y$(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return o9?Hp.forEach(function(n){e[n]=function(){for(var a=[],r=0;r"}}function X$(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function A10(t,e){e===void 0&&(e=40);var n=Object.keys(_01(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return fs(n[0],e);for(var a=n.length;a>0;a--){var r=n.slice(0,a).join(", ");if(!(r.length>e))return a===n.length?r:fs(r,e)}return""}function N8(t){var e,n;if(b6(t)){var a={};try{for(var r=zo(Object.keys(t)),o=r.next();!o.done;o=r.next()){var c=o.value;typeof t[c]<"u"&&(a[c]=N8(t[c]))}}catch(l){e={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return a}return Array.isArray(t)?t.map(N8):t}var k10=50;function E10(){for(var t=[],e=0;e2?a[2]:void 0;if(o){var c=Ud,l=String(o);Ud=l,Tr("history",{from:c,to:l})}return n.apply(this,a)}}Z4(le.history,"pushState",e),Z4(le.history,"replaceState",e)}var q10=1e3,Wd,qd;function G10(t,e){if(!t||t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch{}return!1}function K10(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 J$(t,e){return e===void 0&&(e=!1),function(n){if(!(!n||qd===n)&&!K10(n)){var a=n.type==="keypress"?"input":n.type;Wd===void 0?(t({event:n,name:a,global:e}),qd=n):G10(qd,n)&&(t({event:n,name:a,global:e}),qd=n),clearTimeout(Wd),Wd=le.setTimeout(function(){Wd=void 0},q10)}}}function Y10(){if("document"in le){var t=Tr.bind(null,"dom"),e=J$(t,!0);le.document.addEventListener("click",e,!1),le.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(function(n){var a=le[n]&&le[n].prototype;!a||!a.hasOwnProperty||!a.hasOwnProperty("addEventListener")||(Z4(a,"addEventListener",function(r){return function(o,c,l){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=J$(t);u.handler=v,r.call(this,o,v,l)}u.refCount+=1}catch{}return r.call(this,o,c,l)}}),Z4(a,"removeEventListener",function(r){return function(o,c,l){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,l),u.handler=void 0,delete s[o]),Object.keys(s).length===0&&delete h.__sentry_instrumentation_handlers__)}catch{}return r.call(this,o,c,l)}}))})}}var PV=null;function Z10(){PV=le.onerror,le.onerror=function(t,e,n,a,r){return Tr("error",{column:a,error:r,line:n,msg:t,url:e}),PV?PV.apply(this,arguments):!1}}var NV=null;function Q10(){NV=le.onunhandledrejection,le.onunhandledrejection=function(t){return Tr("unhandledrejection",t),NV?NV.apply(this,arguments):!0}}function X10(){var t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(r){if(t)return e.has(r)?!0:(e.add(r),!1);for(var o=0;o":n||""}function YL(t,e,n){var a=t.exception=t.exception||{},r=a.values=a.values||[],o=r[0]=r[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function ch(t,e){var n=B01(t);if(n){var a={type:"generic",handled:!0},r=n.mechanism;if(n.mechanism=K1(K1(K1({},a),r),e),e&&"data"in e){var o=K1(K1({},r&&r.data),e.data);n.mechanism.data=o}}}function tU(t){if(t&&t.__sentry_captured__)return!0;try{TM(t,"__sentry_captured__",!0)}catch{}return!1}function M8(t,e,n){e===void 0&&(e=1/0),n===void 0&&(n=1/0);try{return _01("",t,e,n)}catch(a){return{ERROR:"**non-serializable** ("+a+")"}}}function S01(t,e,n){e===void 0&&(e=3),n===void 0&&(n=100*1024);var a=M8(t,e);return et0(a)>n?S01(t,e-1,n):a}function _01(t,e,n,a,r){n===void 0&&(n=1/0),a===void 0&&(a=1/0),r===void 0&&(r=X10());var o=pn(r,2),c=o[0],l=o[1],h=e;if(h&&typeof h.toJSON=="function")try{return h.toJSON()}catch{}if(e===null||["number","boolean","string"].includes(typeof e)&&!x01(e))return e;var s=J10(t,e);if(!s.startsWith("[object "))return s;if(n===0)return s.replace("object ","");if(c(e))return"[Circular ~]";var u=Array.isArray(e)?[]:{},v=0,f=zO(e)||_M(e)?L01(e):e;for(var d in f)if(Object.prototype.hasOwnProperty.call(f,d)){if(v>=a){u[d]="[MaxProperties ~]";break}var M=f[d];u[d]=_01(d,M,n-1,a,r),v+=1}return l(e),u}function J10(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]":z10(e)?"[SyntheticEvent]":typeof e=="number"&&e!==e?"[NaN]":e===void 0?"[undefined]":typeof e=="function"?"[Function: "+zo(e)+"]":typeof e=="symbol"?"["+String(e)+"]":typeof e=="bigint"?"[BigInt: "+String(e)+"]":"[object "+Object.getPrototypeOf(e).constructor.name+"]"}catch(n){return"**non-serializable** ("+n+")"}}function tt0(t){return~-encodeURI(t).split(/%..|./).length}function et0(t){return tt0(JSON.stringify(t))}function a6(t){return new No(function(e){e(t)})}function lh(t){return new No(function(e,n){n(t)})}var No=function(){function t(e){var n=this;this._state=0,this._handlers=[],this._resolve=function(a){n._setResult(1,a)},this._reject=function(a){n._setResult(2,a)},this._setResult=function(a,r){if(n._state===0){if(HO(r)){r.then(n._resolve,n._reject);return}n._state=a,n._value=r,n._executeHandlers()}},this._executeHandlers=function(){if(n._state!==0){var a=n._handlers.slice();n._handlers=[],a.forEach(function(r){r[0]||(n._state===1&&r[1](n._value),n._state===2&&r[2](n._value),r[0]=!0)})}};try{e(this._resolve,this._reject)}catch(a){this._reject(a)}}return t.prototype.then=function(e,n){var a=this;return new t(function(r,o){a._handlers.push([!1,function(c){if(!e)r(c);else try{r(e(c))}catch(l){o(l)}},function(c){if(!n)o(c);else try{r(n(c))}catch(l){o(l)}}]),a._executeHandlers()})},t.prototype.catch=function(e){return this.then(function(n){return n},e)},t.prototype.finally=function(e){var n=this;return new t(function(a,r){var o,c;return n.then(function(l){c=!1,o=l,e&&e()},function(l){c=!0,o=l,e&&e()}).then(function(){if(c){r(o);return}a(o)})})},t}();function T01(t){var e=[];function n(){return t===void 0||e.length0&&l(!1)},c);e.forEach(function(v){a6(v).then(function(){--s||(clearTimeout(u),l(!0))},h)})})}return{$:e,add:r,drain:o}}function nt0(t){return B10.indexOf(t)!==-1}function at0(t){return t==="warn"?b5.Warning:nt0(t)?t:b5.Log}function O01(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 rt0(){var t=g0().performance;if(!(!t||!t.now)){var e=Date.now()-t.now();return{now:function(){return t.now()},timeOrigin:e}}}function it0(){try{var t=I3(module,"perf_hooks");return t.performance}catch{return}}var RV=lu()?it0():rt0(),eU=RV===void 0?ZL:{nowSeconds:function(){return(RV.timeOrigin+RV.now())/1e3}},AM=ZL.nowSeconds.bind(ZL),QL=eU.nowSeconds.bind(eU),r6=QL,p7=function(){var t=g0().performance;if(!(!t||!t.now)){var e=3600*1e3,n=t.now(),a=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+n-a):e,o=r2?a[2]:void 0;if(o){var c=Ud,l=String(o);Ud=l,Tr("history",{from:c,to:l})}return n.apply(this,a)}}Z4(le.history,"pushState",e),Z4(le.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 tU(t,e){return e===void 0&&(e=!1),function(n){if(!(!n||qd===n)&&!Y10(n)){var a=n.type==="keypress"?"input":n.type;Wd===void 0?(t({event:n,name:a,global:e}),qd=n):K10(qd,n)&&(t({event:n,name:a,global:e}),qd=n),clearTimeout(Wd),Wd=le.setTimeout(function(){Wd=void 0},G10)}}}function Z10(){if("document"in le){var t=Tr.bind(null,"dom"),e=tU(t,!0);le.document.addEventListener("click",e,!1),le.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(function(n){var a=le[n]&&le[n].prototype;!a||!a.hasOwnProperty||!a.hasOwnProperty("addEventListener")||(Z4(a,"addEventListener",function(r){return function(o,c,l){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=tU(t);u.handler=v,r.call(this,o,v,l)}u.refCount+=1}catch{}return r.call(this,o,c,l)}}),Z4(a,"removeEventListener",function(r){return function(o,c,l){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,l),u.handler=void 0,delete s[o]),Object.keys(s).length===0&&delete h.__sentry_instrumentation_handlers__)}catch{}return r.call(this,o,c,l)}}))})}}var PV=null;function Q10(){PV=le.onerror,le.onerror=function(t,e,n,a,r){return Tr("error",{column:a,error:r,line:n,msg:t,url:e}),PV?PV.apply(this,arguments):!1}}var NV=null;function X10(){NV=le.onunhandledrejection,le.onunhandledrejection=function(t){return Tr("unhandledrejection",t),NV?NV.apply(this,arguments):!0}}function J10(){var t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(r){if(t)return e.has(r)?!0:(e.add(r),!1);for(var o=0;o":n||""}function YL(t,e,n){var a=t.exception=t.exception||{},r=a.values=a.values||[],o=r[0]=r[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function ch(t,e){var n=S01(t);if(n){var a={type:"generic",handled:!0},r=n.mechanism;if(n.mechanism=K1(K1(K1({},a),r),e),e&&"data"in e){var o=K1(K1({},r&&r.data),e.data);n.mechanism.data=o}}}function eU(t){if(t&&t.__sentry_captured__)return!0;try{TM(t,"__sentry_captured__",!0)}catch{}return!1}function H8(t,e,n){e===void 0&&(e=1/0),n===void 0&&(n=1/0);try{return O01("",t,e,n)}catch(a){return{ERROR:"**non-serializable** ("+a+")"}}}function T01(t,e,n){e===void 0&&(e=3),n===void 0&&(n=100*1024);var a=H8(t,e);return nt0(a)>n?T01(t,e-1,n):a}function O01(t,e,n,a,r){n===void 0&&(n=1/0),a===void 0&&(a=1/0),r===void 0&&(r=J10());var o=pn(r,2),c=o[0],l=o[1],h=e;if(h&&typeof h.toJSON=="function")try{return h.toJSON()}catch{}if(e===null||["number","boolean","string"].includes(typeof e)&&!C01(e))return e;var s=tt0(t,e);if(!s.startsWith("[object "))return s;if(n===0)return s.replace("object ","");if(c(e))return"[Circular ~]";var u=Array.isArray(e)?[]:{},v=0,f=zO(e)||SM(e)?_01(e):e;for(var d in f)if(Object.prototype.hasOwnProperty.call(f,d)){if(v>=a){u[d]="[MaxProperties ~]";break}var z=f[d];u[d]=O01(d,z,n-1,a,r),v+=1}return l(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(n){return"**non-serializable** ("+n+")"}}function et0(t){return~-encodeURI(t).split(/%..|./).length}function nt0(t){return et0(JSON.stringify(t))}function rc(t){return new Do(function(e){e(t)})}function lh(t){return new Do(function(e,n){n(t)})}var Do=function(){function t(e){var n=this;this._state=0,this._handlers=[],this._resolve=function(a){n._setResult(1,a)},this._reject=function(a){n._setResult(2,a)},this._setResult=function(a,r){if(n._state===0){if(HO(r)){r.then(n._resolve,n._reject);return}n._state=a,n._value=r,n._executeHandlers()}},this._executeHandlers=function(){if(n._state!==0){var a=n._handlers.slice();n._handlers=[],a.forEach(function(r){r[0]||(n._state===1&&r[1](n._value),n._state===2&&r[2](n._value),r[0]=!0)})}};try{e(this._resolve,this._reject)}catch(a){this._reject(a)}}return t.prototype.then=function(e,n){var a=this;return new t(function(r,o){a._handlers.push([!1,function(c){if(!e)r(c);else try{r(e(c))}catch(l){o(l)}},function(c){if(!n)o(c);else try{r(n(c))}catch(l){o(l)}}]),a._executeHandlers()})},t.prototype.catch=function(e){return this.then(function(n){return n},e)},t.prototype.finally=function(e){var n=this;return new t(function(a,r){var o,c;return n.then(function(l){c=!1,o=l,e&&e()},function(l){c=!0,o=l,e&&e()}).then(function(){if(c){r(o);return}a(o)})})},t}();function A01(t){var e=[];function n(){return t===void 0||e.length0&&l(!1)},c);e.forEach(function(v){rc(v).then(function(){--s||(clearTimeout(u),l(!0))},h)})})}return{$:e,add:r,drain:o}}function at0(t){return _10.indexOf(t)!==-1}function rt0(t){return t==="warn"?Ci.Warning:at0(t)?t:Ci.Log}function k01(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 RV=lu()?ot0():it0(),nU=RV===void 0?ZL:{nowSeconds:function(){return(RV.timeOrigin+RV.now())/1e3}},AM=ZL.nowSeconds.bind(ZL),QL=nU.nowSeconds.bind(nU),ic=QL,p7=function(){var t=g0().performance;if(!(!t||!t.now)){var e=3600*1e3,n=t.now(),a=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+n-a):e,o=rn}function k01(t,e,n){var a,r,o,c;n===void 0&&(n=Date.now());var l=K1({},t),h=e["x-sentry-rate-limits"],s=e["retry-after"];if(h)try{for(var u=mo(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])l.all=n+g;else try{for(var H=(o=void 0,mo(d[1].split(";"))),p=H.next();!p.done;p=H.next()){var m=p.value;l[m]=n+g}}catch(z){o={error:z}}finally{try{p&&!p.done&&(c=H.return)&&c.call(H)}finally{if(o)throw o.error}}}}catch(z){a={error:z}}finally{try{v&&!v.done&&(r=u.return)&&r.call(u)}finally{if(a)throw a.error}}else s&&(l.all=n+ut0(s,n));return l}var nU=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 n=new t;return e&&(n._breadcrumbs=Be(e._breadcrumbs),n._tags=K1({},e._tags),n._extra=K1({},e._extra),n._contexts=K1({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=Be(e._eventProcessors),n._requestSession=e._requestSession),n},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,n){var a;return this._tags=K1(K1({},this._tags),(a={},a[e]=n,a)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(e){return this._extra=K1(K1({},this._extra),e),this._notifyScopeListeners(),this},t.prototype.setExtra=function(e,n){var a;return this._extra=K1(K1({},this._extra),(a={},a[e]=n,a)),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,n){var a;return n===null?delete this._contexts[e]:this._contexts=K1(K1({},this._contexts),(a={},a[e]=n,a)),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 n=e(this);return n instanceof t?n: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)):bl(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,n){var a=typeof n=="number"?Math.min(n,nU):nU;if(a<=0)return this;var r=K1({timestamp:AM()},e);return this._breadcrumbs=Be(this._breadcrumbs,[r]).slice(-a),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(e,n){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 a=this._span.transaction&&this._span.transaction.name;a&&(e.tags=K1({transaction:a},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(E01(),this._eventProcessors),e,n)},t.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=K1(K1({},this._sdkProcessingMetadata),e),this},t.prototype._notifyEventProcessors=function(e,n,a,r){var o=this;return r===void 0&&(r=0),new No(function(c,l){var h=e[r];if(n===null||typeof h!="function")c(n);else{var s=h(K1({},n),a);HO(s)?s.then(function(u){return o._notifyEventProcessors(e,u,a,r+1).then(c)}).then(null,l):o._notifyEventProcessors(e,s,a,r+1).then(c).then(null,l)}})},t.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(n){n(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 E01(){return mO("globalEventProcessors",function(){return[]})}function VO(t){E01().push(t)}var vt0=function(){function t(e){this.errors=0,this.sid=no(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var n=QL();this.timestamp=n,this.started=n,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 n=this.timestamp-this.started;this.duration=n>=0?n: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 P8({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__,CO=4,dt0=100,PM=function(){function t(e,n,a){n===void 0&&(n=new wp),a===void 0&&(a=CO),this._version=a,this._stack=[{}],this.getStackTop().scope=n,e&&this.bindClient(e)}return t.prototype.isOlderThan=function(e){return this._version"u"?!0:__SENTRY_DEBUG__,iU=[];function oU(t){return t.reduce(function(e,n){return e.every(function(a){return n.name!==a.name})&&e.push(n),e},[])}function wt0(t){var e=t.defaultIntegrations&&Be(t.defaultIntegrations)||[],n=t.integrations,a=Be(oU(e));Array.isArray(n)?a=Be(a.filter(function(c){return n.every(function(l){return l.name!==c.name})}),oU(n)):typeof n=="function"&&(a=n(a),a=Array.isArray(a)?a:[a]);var r=a.map(function(c){return c.name}),o="Debug";return r.indexOf(o)!==-1&&a.push.apply(a,Be(a.splice(r.indexOf(o),1))),a}function yt0(t){iU.indexOf(t.name)===-1&&(t.setupOnce(VO,Ke),iU.push(t.name),We&&Bt.log("Integration installed: "+t.name))}function xt0(t){var e={};return wt0(t).forEach(function(n){e[n.name]=n,yt0(n)}),TM(e,"initialized",!0),e}var cU="Not capturing exception because it's already been captured.",Vt0=function(){function t(e,n){this._integrations={},this._numProcessing=0,this._backend=new e(n),this._options=n,n.dsn&&(this._dsn=wO(n.dsn))}return t.prototype.captureException=function(e,n,a){var r=this;if(tU(e)){We&&Bt.log(cU);return}var o=n&&n.event_id;return this._process(this._getBackend().eventFromException(e,n).then(function(c){return r._captureEvent(c,n,a)}).then(function(c){o=c})),o},t.prototype.captureMessage=function(e,n,a,r){var o=this,c=a&&a.event_id,l=MO(e)?this._getBackend().eventFromMessage(String(e),n,a):this._getBackend().eventFromException(e,a);return this._process(l.then(function(h){return o._captureEvent(h,a,r)}).then(function(h){c=h})),c},t.prototype.captureEvent=function(e,n,a){if(n&&n.originalException&&tU(n.originalException)){We&&Bt.log(cU);return}var r=n&&n.event_id;return this._process(this._captureEvent(e,n,a).then(function(o){r=o})),r},t.prototype.captureSession=function(e){if(!this._isEnabled()){We&&Bt.warn("SDK not enabled, will not capture session.");return}typeof e.release!="string"?We&&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 n=this;return this._isClientDoneProcessing(e).then(function(a){return n.getTransport().close(e).then(function(r){return a&&r})})},t.prototype.close=function(e){var n=this;return this.flush(e).then(function(a){return n.getOptions().enabled=!1,a})},t.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=xt0(this._options))},t.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch{return We&&Bt.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(e,n){var a,r,o=!1,c=!1,l=n.exception&&n.exception.values;if(l){c=!0;try{for(var h=mo(l),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){a={error:M}}finally{try{s&&!s.done&&(r=h.return)&&r.call(h)}finally{if(a)throw a.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(c||o)})),this.captureSession(e))},t.prototype._sendSession=function(e){this._getBackend().sendSession(e)},t.prototype._isClientDoneProcessing=function(e){var n=this;return new No(function(a){var r=0,o=1,c=setInterval(function(){n._numProcessing==0?(clearInterval(c),a(!0)):(r+=o,e&&r>=e&&(clearInterval(c),a(!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,n,a){var r=this,o=this.getOptions(),c=o.normalizeDepth,l=c===void 0?3:c,h=o.normalizeMaxBreadth,s=h===void 0?1e3:h,u=K1(K1({},e),{event_id:e.event_id||(a&&a.event_id?a.event_id:no()),timestamp:e.timestamp||AM()});this._applyClientOptions(u),this._applyIntegrationsMetadata(u);var v=n;a&&a.captureContext&&(v=wp.clone(v).update(a.captureContext));var f=a6(u);return v&&(f=v.applyToEvent(u,a)),f.then(function(d){return d&&(d.sdkProcessingMetadata=K1(K1({},d.sdkProcessingMetadata),{normalizeDepth:M8(l)+" ("+typeof l+")"})),typeof l=="number"&&l>0?r._normalizeEvent(d,l,s):d})},t.prototype._normalizeEvent=function(e,n,a){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:M8(o.data,n,a)})})}),e.user&&{user:M8(e.user,n,a)}),e.contexts&&{contexts:M8(e.contexts,n,a)}),e.extra&&{extra:M8(e.extra,n,a)});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 n=this.getOptions(),a=n.environment,r=n.release,o=n.dist,c=n.maxValueLength,l=c===void 0?250:c;"environment"in e||(e.environment="environment"in n?a:"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,l));var h=e.exception&&e.exception.values&&e.exception.values[0];h&&h.value&&(h.value=fs(h.value,l));var s=e.request;s&&s.url&&(s.url=fs(s.url,l))},t.prototype._applyIntegrationsMetadata=function(e){var n=Object.keys(this._integrations);n.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=Be(e.sdk.integrations||[],n))},t.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},t.prototype._captureEvent=function(e,n,a){return this._processEvent(e,n,a).then(function(r){return r.event_id},function(r){We&&Bt.error(r)})},t.prototype._processEvent=function(e,n,a){var r=this,o=this.getOptions(),c=o.beforeSend,l=o.sampleRate,h=this.getTransport();function s(v,f){h.recordLostEvent&&h.recordLostEvent(v,f)}if(!this._isEnabled())return lh(new r4("SDK not enabled, will not capture event."));var u=e.type==="transaction";return!u&&typeof l=="number"&&Math.random()>l?(s("sample_rate","event"),lh(new r4("Discarding event because it's not included in the random sample (sampling rate = "+l+")"))):this._prepareEvent(e,a,n).then(function(v){if(v===null)throw s("event_processor",e.type||"event"),new r4("An event processor returned null, will not send event.");var f=n&&n.data&&n.data.__sentry__===!0;if(f||u||!c)return v;var d=c(v,n);return Ct0(d)}).then(function(v){if(v===null)throw s("before_send",e.type||"event"),new r4("`beforeSend` returned `null`, will not send event.");var f=a&&a.getSession&&a.getSession();return!u&&f&&r._updateSessionFromEvent(f,v),r._sendEvent(v),v}).then(null,function(v){throw v instanceof r4?v:(r.captureException(v,{data:{__sentry__:!0},originalException:v}),new r4(`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 n=this;this._numProcessing+=1,e.then(function(a){return n._numProcessing-=1,a},function(a){return n._numProcessing-=1,a})},t}();function Ct0(t){var e="`beforeSend` method has to return `null` or a valid event.";if(HO(t))return t.then(function(n){if(!(bl(n)||n===null))throw new r4(e);return n},function(n){throw new r4("beforeSend rejected with "+n)});if(!(bl(t)||t===null))throw new r4(e);return t}function LO(t){if(!(!t.metadata||!t.metadata.sdk)){var e=t.metadata.sdk,n=e.name,a=e.version;return{name:n,version:a}}}function F01(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 $01(t,e){var n=LO(e),a=K1(K1({sent_at:new Date().toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:su(e.dsn)}),r="aggregates"in t?"sessions":"session",o=[{type:r},t],c=kM(a,[o]);return[c,r]}function bt0(t,e){var n=pn($01(t,e),2),a=n[0],r=n[1];return{body:EM(a),type:r,url:NM(e.dsn,e.tunnel)}}function Lt0(t,e){var n=LO(e),a=t.type||"event",r=(t.sdkProcessingMetadata||{}).transactionSampling,o=r||{},c=o.method,l=o.rate;F01(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()},n&&{sdk:n}),!!e.tunnel&&{dsn:su(e.dsn)}),s=[{type:a,sample_rates:[{id:c,rate:l}]},t];return kM(h,[s])}function Bt0(t,e){var n=LO(e),a=t.type||"event",r=a==="transaction"||!!e.tunnel,o=(t.sdkProcessingMetadata||{}).transactionSampling,c=o||{},l=c.method,h=c.rate;F01(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(M8(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:a,url:r?NM(e.dsn,e.tunnel):I01(e.dsn)};if(r){var f=K1(K1({event_id:t.event_id,sent_at:new Date().toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:su(e.dsn)}),d=[{type:a,sample_rates:[{id:l,rate:h}]},v.body],M=kM(f,[d]);v.body=EM(M)}return v}var St0=function(){function t(){}return t.prototype.sendEvent=function(e){return a6({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(e){return a6(!0)},t}(),_t0=function(){function t(e){this._options=e,this._options.dsn||We&&Bt.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(e,n){throw new r4("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(e,n,a){throw new r4("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 n=yp(this._options.dsn,this._options._metadata,this._options.tunnel),a=Lt0(e,n);this._newTransport.send(a).then(null,function(r){We&&Bt.error("Error while sending event:",r)})}else this._transport.sendEvent(e).then(null,function(r){We&&Bt.error("Error while sending event:",r)})},t.prototype.sendSession=function(e){if(!this._transport.sendSession){We&&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 n=yp(this._options.dsn,this._options._metadata,this._options.tunnel),a=pn($01(e,n),1),r=a[0];this._newTransport.send(r).then(null,function(o){We&&Bt.error("Error while sending session:",o)})}else this._transport.sendSession(e).then(null,function(o){We&&Bt.error("Error while sending session:",o)})},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new St0},t}();function Tt0(t,e){e.debug===!0&&(We?Bt.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=Ke(),a=n.getScope();a&&a.update(e.initialScope);var r=new t(e);n.bindClient(r)}var Ot0=30;function U01(t,e,n){n===void 0&&(n=T01(t.bufferSize||Ot0));var a={},r=function(c){return n.drain(c)};function o(c){var l=lt0(c),h=l==="event"?"error":l,s={category:h,body:EM(c)};if(A01(a,h))return lh({status:"rate_limit",reason:lU(a,h)});var u=function(){return e(s).then(function(v){var f=v.body,d=v.headers,M=v.reason,g=v.statusCode,H=O01(g);return d&&(a=k01(a,d)),H==="success"?a6({status:H,reason:M}):lh({status:H,reason:M||f||(H==="rate_limit"?lU(a,h):"Unknown transport error")})})};return n.add(u)}return{send:o,flush:r}}function lU(t,e){return"Too many "+e+" requests, backing off until: "+new Date(xO(t,e)).toISOString()}var xp="6.19.7",sU,At0=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){sU=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],n=0;n=0;e--){var n=t[e];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function Vp(t){try{if(t.stacktrace)return hU(t.stacktrace.frames);var e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?hU(e):null}catch{return We&&Bt.error("Cannot extract url for event "+L8(t)),null}}var l9="?",$t0=10,Ut0=20,Wt0=30,qt0=40,Gt0=50;function hu(t,e,n,a){var r={filename:t,function:e,in_app:!0};return n!==void 0&&(r.lineno=n),a!==void 0&&(r.colno=a),r}var Kt0=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Yt0=/\((\S*)(?::(\d+))(?::(\d+))\)/,Zt0=function(t){var e=Kt0.exec(t);if(e){var n=e[2]&&e[2].indexOf("eval")===0;if(n){var a=Yt0.exec(e[2]);a&&(e[2]=a[1],e[3]=a[2],e[4]=a[3])}var r=pn(W01(e[1]||l9,e[2]),2),o=r[0],c=r[1];return hu(c,o,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},Qt0=[Wt0,Zt0],Xt0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Jt0=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,t20=function(t){var e,n=Xt0.exec(t);if(n){var a=n[3]&&n[3].indexOf(" > eval")>-1;if(a){var r=Jt0.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var o=n[3],c=n[1]||l9;return e=pn(W01(c,o),2),c=e[0],o=e[1],hu(o,c,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},e20=[Gt0,t20],n20=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a20=function(t){var e=n20.exec(t);return e?hu(e[2],e[1]||l9,+e[3],e[4]?+e[4]:void 0):void 0},r20=[qt0,a20],i20=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o20=function(t){var e=i20.exec(t);return e?hu(e[2],e[3]||l9,+e[1]):void 0},c20=[$t0,o20],l20=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,s20=function(t){var e=l20.exec(t);return e?hu(e[5],e[3]||e[4]||l9,+e[1],+e[2]):void 0},h20=[Ut0,s20],W01=function(t,e){var n=t.indexOf("safari-extension")!==-1,a=t.indexOf("safari-web-extension")!==-1;return n||a?[t.indexOf("@")!==-1?t.split("@")[0]:l9,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function q01(t){var e=BO(t),n={type:t&&t.name,value:f20(t)};return e.length&&(n.stacktrace={frames:e}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function u20(t,e,n){var a={exception:{values:[{type:_M(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+O10(t)}]},extra:{__serialized__:S01(t)}};if(e){var r=BO(e);r.length&&(a.stacktrace={frames:r})}return a}function jV(t){return{exception:{values:[q01(t)]}}}function BO(t){var e=t.stacktrace||t.stack||"",n=d20(t);try{return k10(c20,h20,Qt0,r20,e20)(e,n)}catch{}return[]}var v20=/Minified React error #\d+;/i;function d20(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(v20.test(t.message))return 1}return 0}function f20(t){var e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function g20(t,e,n){var a=e&&e.syntheticException||void 0,r=SO(t,a,n);return ch(r),r.level=b5.Error,e&&e.event_id&&(r.event_id=e.event_id),a6(r)}function p20(t,e,n,a){e===void 0&&(e=b5.Info);var r=n&&n.syntheticException||void 0,o=XL(t,r,a);return o.level=e,n&&n.event_id&&(o.event_id=n.event_id),a6(o)}function SO(t,e,n,a){var r;if(y01(t)&&t.error){var o=t;return jV(o.error)}if(G$(t)||g10(t)){var c=t;if("stack"in t)r=jV(t);else{var l=c.name||(G$(c)?"DOMError":"DOMException"),h=c.message?l+": "+c.message:l;r=XL(h,e,n),YL(r,h)}return"code"in c&&(r.tags=K1(K1({},r.tags),{"DOMException.code":""+c.code})),r}if(zO(t))return jV(t);if(bl(t)||_M(t)){var s=t;return r=u20(s,e,a),ch(r,{synthetic:!0}),r}return r=XL(t,e,n),YL(r,""+t,void 0),ch(r,{synthetic:!0}),r}function XL(t,e,n){var a={message:t};if(n&&e){var r=BO(e);r.length&&(a.stacktrace={frames:r})}return a}var Pa=typeof __SENTRY_DEBUG__>"u"?!0:__SENTRY_DEBUG__,xr=g0(),Gd;function _O(){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 n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);var a=n.contentWindow;a&&a.fetch&&(e=a.fetch),t.head.removeChild(n)}catch(r){Pa&&Bt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return Gd=e.bind(xr)}function m20(t,e){var n=Object.prototype.toString.call(xr&&xr.navigator)==="[object Navigator]",a=n&&typeof xr.navigator.sendBeacon=="function";if(a){var r=xr.navigator.sendBeacon.bind(xr.navigator);return r(t,e)}if(OM()){var o=_O();return u10(o(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}))}}function IV(t){var e=t;return e==="event"?"error":e}var FV=g0(),G01=function(){function t(e){var n=this;this.options=e,this._buffer=T01(30),this._rateLimits={},this._outcomes={},this._api=yp(e.dsn,e._metadata,e.tunnel),this.url=I01(this._api.dsn),this.options.sendClientReports&&FV.document&&FV.document.addEventListener("visibilitychange",function(){FV.document.visibilityState==="hidden"&&n._flushOutcomes()})}return t.prototype.sendEvent=function(e){return this._sendRequest(Bt0(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(bt0(e,this._api),e)},t.prototype.close=function(e){return this._buffer.drain(e)},t.prototype.recordLostEvent=function(e,n){var a;if(this.options.sendClientReports){var r=IV(n)+":"+e;Pa&&Bt.log("Adding outcome: "+r),this._outcomes[r]=(a=this._outcomes[r],(a??0)+1)}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},!Object.keys(e).length){Pa&&Bt.log("No outcomes to flush");return}Pa&&Bt.log(`Flushing outcomes: -`+JSON.stringify(e,null,2));var n=NM(this._api.dsn,this._api.tunnel),a=Object.keys(e).map(function(o){var c=pn(o.split(":"),2),l=c[0],h=c[1];return{reason:h,category:l,quantity:e[o]}}),r=st0(a,this._api.tunnel&&su(this._api.dsn));try{m20(n,EM(r))}catch(o){Pa&&Bt.error(o)}}},t.prototype._handleResponse=function(e){var n=e.requestType,a=e.response,r=e.headers,o=e.resolve,c=e.reject,l=O01(a.status);if(this._rateLimits=k01(this._rateLimits,r),this._isRateLimited(n)&&Pa&&Bt.warn("Too many "+n+" requests, backing off until: "+this._disabledUntil(n)),l==="success"){o({status:l});return}c(a)},t.prototype._disabledUntil=function(e){var n=IV(e);return new Date(xO(this._rateLimits,n))},t.prototype._isRateLimited=function(e){var n=IV(e);return A01(this._rateLimits,n)},t}(),z20=function(t){Ui(e,t);function e(n,a){a===void 0&&(a=_O());var r=t.call(this,n)||this;return r._fetch=a,r}return e.prototype._sendRequest=function(n,a){var r=this;if(this._isRateLimited(n.type))return this.recordLostEvent("ratelimit_backoff",n.type),Promise.reject({event:a,type:n.type,reason:"Transport for "+n.type+" requests locked till "+this._disabledUntil(n.type)+" due to too many requests.",status:429});var o={body:n.body,method:"POST",referrerPolicy:N10()?"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 No(function(c,l){r._fetch(n.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:n.type,response:h,headers:s,resolve:c,reject:l})}).catch(l)})}).then(void 0,function(c){throw c instanceof r4?r.recordLostEvent("queue_overflow",n.type):r.recordLostEvent("network_error",n.type),c})},e}(G01),M20=function(t){Ui(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._sendRequest=function(n,a){var r=this;return this._isRateLimited(n.type)?(this.recordLostEvent("ratelimit_backoff",n.type),Promise.reject({event:a,type:n.type,reason:"Transport for "+n.type+" requests locked till "+this._disabledUntil(n.type)+" due to too many requests.",status:429})):this._buffer.add(function(){return new No(function(o,c){var l=new XMLHttpRequest;l.onreadystatechange=function(){if(l.readyState===4){var s={"x-sentry-rate-limits":l.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":l.getResponseHeader("Retry-After")};r._handleResponse({requestType:n.type,response:l,headers:s,resolve:o,reject:c})}},l.open("POST",n.url);for(var h in r.options.headers)Object.prototype.hasOwnProperty.call(r.options.headers,h)&&l.setRequestHeader(h,r.options.headers[h]);l.send(n.body)})}).then(void 0,function(o){throw o instanceof r4?r.recordLostEvent("queue_overflow",n.type):r.recordLostEvent("network_error",n.type),o})},e}(G01);function H20(t,e){e===void 0&&(e=_O());function n(a){var r=K1({body:a.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return e(t.url,r).then(function(o){return o.text().then(function(c){return{body:c,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 U01({bufferSize:t.bufferSize},n)}var w20=4;function y20(t){function e(n){return new No(function(a,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){if(o.readyState===w20){var l={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};a(l)}},o.open("POST",t.url);for(var c in t.headers)Object.prototype.hasOwnProperty.call(t.headers,c)&&o.setRequestHeader(c,t.headers[c]);o.send(n.body)})}return U01({bufferSize:t.bufferSize},e)}var x20=function(t){Ui(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.eventFromException=function(n,a){return g20(n,a,this._options.attachStacktrace)},e.prototype.eventFromMessage=function(n,a,r){return a===void 0&&(a=b5.Info),p20(n,a,r,this._options.attachStacktrace)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var n=K1(K1({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),a=yp(n.dsn,n._metadata,n.tunnel),r=NM(a.dsn,a.tunnel);if(this._options.transport)return new this._options.transport(n);if(OM()){var o=K1({},n.fetchParameters);return this._newTransport=H20({requestOptions:o,url:r}),new z20(n)}return this._newTransport=y20({url:r,headers:n.headers}),new M20(n)},e}(_t0),Kd=g0(),JL=0;function K01(){return JL>0}function V20(){JL+=1,setTimeout(function(){JL-=1})}function Ll(t,e,n){if(e===void 0&&(e={}),typeof t!="function")return t;try{var a=t.__sentry_wrapped__;if(a)return a;if(yO(t))return t}catch{return t}var r=function(){var l=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);var h=l.map(function(s){return Ll(s,e)});return t.apply(this,h)}catch(s){throw V20(),pt0(function(u){u.addEventProcessor(function(v){return e.mechanism&&(YL(v,void 0,void 0),ch(v,e.mechanism)),v.extra=K1(K1({},v.extra),{arguments:l}),v}),gt0(s)}),s}};try{for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}catch{}b01(r,t),TM(t,"__sentry_wrapped__",r);try{var c=Object.getOwnPropertyDescriptor(r,"name");c.configurable&&Object.defineProperty(r,"name",{get:function(){return t.name}})}catch{}return r}function C20(t){if(t===void 0&&(t={}),!!Kd.document){if(!t.eventId){Pa&&Bt.error("Missing eventId option in showReportDialog call");return}if(!t.dsn){Pa&&Bt.error("Missing dsn option in showReportDialog call");return}var e=Kd.document.createElement("script");e.async=!0,e.src=Ht0(t.dsn,t),t.onLoad&&(e.onload=t.onLoad);var n=Kd.document.head||Kd.document.body;n&&n.appendChild(e)}}var TO=function(){function t(e){this.name=t.id,this._installFunc={onerror:b20,onunhandledrejection:L20},this._options=K1({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50;var e=this._options;for(var n in e){var a=this._installFunc[n];a&&e[n]&&(_20(n),a(),this._installFunc[n]=void 0)}},t.id="GlobalHandlers",t}();function b20(){ea("error",function(t){var e=pn(Q01(),2),n=e[0],a=e[1];if(n.getIntegration(TO)){var r=t.msg,o=t.url,c=t.line,l=t.column,h=t.error;if(!(K01()||h&&h.__sentry_own_request__)){var s=h===void 0&&Cl(r)?S20(r,o,c,l):Y01(SO(h||r,void 0,a,!1),o,c,l);s.level=b5.Error,Z01(n,h,s,"onerror")}}})}function L20(){ea("unhandledrejection",function(t){var e=pn(Q01(),2),n=e[0],a=e[1];if(n.getIntegration(TO)){var r=t;try{"reason"in t?r=t.reason:"detail"in t&&"reason"in t.detail&&(r=t.detail.reason)}catch{}if(K01()||r&&r.__sentry_own_request__)return!0;var o=MO(r)?B20(r):SO(r,void 0,a,!0);o.level=b5.Error,Z01(n,r,o,"onunhandledrejection")}})}function B20(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}}function S20(t,e,n,a){var r=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=y01(t)?t.message:t,c="Error",l=o.match(r);l&&(c=l[1],o=l[2]);var h={exception:{values:[{type:c,value:o}]}};return Y01(h,e,n,a)}function Y01(t,e,n,a){var r=t.exception=t.exception||{},o=r.values=r.values||[],c=o[0]=o[0]||{},l=c.stacktrace=c.stacktrace||{},h=l.frames=l.frames||[],s=isNaN(parseInt(a,10))?void 0:a,u=isNaN(parseInt(n,10))?void 0:n,v=Cl(e)&&e.length>0?e:H10();return h.length===0&&h.push({colno:s,filename:v,function:"?",in_app:!0,lineno:u}),t}function _20(t){Pa&&Bt.log("Global Handler attached: "+t)}function Z01(t,e,n,a){ch(n,{handled:!1,type:a}),t.captureEvent(n,{originalException:e})}function Q01(){var t=Ke(),e=t.getClient(),n=e&&e.getOptions().attachStacktrace;return[t,n]}var T20=["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"],O20=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",uU),this._options.setInterval&&Z4(e,"setInterval",uU),this._options.requestAnimationFrame&&Z4(e,"requestAnimationFrame",A20),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Z4(XMLHttpRequest.prototype,"send",k20);var n=this._options.eventTarget;if(n){var a=Array.isArray(n)?n:T20;a.forEach(E20)}},t.id="TryCatch",t}();function uU(t){return function(){for(var e=[],n=0;n"}a.length!==0&&Ke().addBreadcrumb({category:"ui."+n.name,message:a},{event:n.event,name:n.name,global:n.global})}return e}function N20(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:at0(t.level),message:Y$(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)e.message="Assertion failed: "+(Y$(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1);else return;Ke().addBreadcrumb(e,{input:t.args,level:t.level})}function D20(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,a=e.url,r=e.status_code,o=e.body;Ke().addBreadcrumb({category:"xhr",data:{method:n,url:a,status_code:r},type:"http"},{xhr:t.xhr,input:o});return}}function R20(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"||(t.error?Ke().addBreadcrumb({category:"fetch",data:t.fetchData,level:b5.Error,type:"http"},{data:t.error,input:t.args}):Ke().addBreadcrumb({category:"fetch",data:K1(K1({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))}function j20(t){var e=g0(),n=t.from,a=t.to,r=DV(e.location.href),o=DV(n),c=DV(a);o.path||(o=r),r.protocol===c.protocol&&r.host===c.host&&(a=c.relative),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),Ke().addBreadcrumb({category:"navigation",data:{from:n,to:a}})}var I20="cause",F20=5,$20=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._key=e.key||I20,this._limit=e.limit||F20}return t.prototype.setupOnce=function(){VO(function(e,n){var a=Ke().getIntegration(t);return a?U20(a._key,a._limit,e,n):e})},t.id="LinkedErrors",t}();function U20(t,e,n,a){if(!n.exception||!n.exception.values||!a||!O5(a.originalException,Error))return n;var r=J01(e,a.originalException,t);return n.exception.values=Be(r,n.exception.values),n}function J01(t,e,n,a){if(a===void 0&&(a=[]),!O5(e[n],Error)||a.length+1>=t)return a;var r=q01(e[n]);return J01(t,e[n],n,Be([r],a))}var r8=g0(),W20=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){VO(function(e){if(Ke().getIntegration(t)){if(!r8.navigator&&!r8.location&&!r8.document)return e;var n=e.request&&e.request.url||r8.location&&r8.location.href,a=(r8.document||{}).referrer,r=(r8.navigator||{}).userAgent,o=K1(K1(K1({},e.request&&e.request.headers),a&&{Referer:a}),r&&{"User-Agent":r}),c=K1(K1({},n&&{url:n}),{headers:o});return K1(K1({},e),{request:c})}return e})},t.id="UserAgent",t}(),q20=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,n){e(function(a){var r=n().getIntegration(t);if(r){try{if(G20(a,r._previousEvent))return Pa&&Bt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return r._previousEvent=a}return r._previousEvent=a}return a})},t.id="Dedupe",t}();function G20(t,e){return e?!!(K20(t,e)||Y20(t,e)):!1}function K20(t,e){var n=t.message,a=e.message;return!(!n&&!a||n&&!a||!n&&a||n!==a||!ee1(t,e)||!te1(t,e))}function Y20(t,e){var n=vU(e),a=vU(t);return!(!n||!a||n.type!==a.type||n.value!==a.value||!ee1(t,e)||!te1(t,e))}function te1(t,e){var n=dU(t),a=dU(e);if(!n&&!a)return!0;if(n&&!a||!n&&a||(n=n,a=a,a.length!==n.length))return!1;for(var r=0;r"u"){Pa&&Bt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}var n=Ke();n.captureSession&&(fU(n),ea("history",function(a){var r=a.from,o=a.to;r===void 0||r===o||fU(Ke())}))}function t00(t){t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:xp}],version:xp},X20(t)}var e00="ui.react.render",n00="ui.react.update",gU="ui.react.mount",a00="unknown",r00={id:"Tracing"},m5=null,i00=function(){return m5||(m5=Ke().getIntegration(r00),m5)};function o00(t,e){return m5===null?null:m5.constructor.pushActivity(t,{description:"<"+t+">",op:e})}function c00(t){t===null||m5===null||m5.constructor.popActivity(t)}function l00(t){if(!(t===null||m5===null))return m5.constructor.getActivitySpan(t)}var s00=function(t){Ui(e,t);function e(n){var a=t.call(this,n)||this;a._mountSpan=void 0,a._mountActivity=null;var r=a.props,o=r.name,c=r.disabled,l=c===void 0?!1:c;if(l)return a;if(i00())a._mountActivity=o00(o,gU);else{var h=u00();h&&(a._mountSpan=h.startChild({description:"<"+o+">",op:gU}))}return a}return e.prototype.componentDidMount=function(){this._mountSpan?this._mountSpan.finish():(this._mountSpan=l00(this._mountActivity),c00(this._mountActivity),this._mountActivity=null)},e.prototype.componentDidUpdate=function(n){var a=this,r=n.updateProps,o=n.includeUpdates,c=o===void 0?!0:o;if(c&&this._mountSpan&&r!==this.props.updateProps){var l=Object.keys(r).filter(function(s){return r[s]!==a.props.updateProps[s]});if(l.length>0){var h=r6();this._mountSpan.startChild({data:{changedProps:l},description:"<"+this.props.name+">",endTimestamp:h,op:n00,startTimestamp:h})}}},e.prototype.componentWillUnmount=function(){var n=this.props,a=n.name,r=n.includeRender,o=r===void 0?!0:r;this._mountSpan&&o&&this._mountSpan.startChild({description:"<"+a+">",endTimestamp:r6(),op:e00,startTimestamp:this._mountSpan.endTimestamp})},e.prototype.render=function(){return this.props.children},e.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0},e}(S.Component);function h00(t,e){var n=e&&e.name||t.displayName||t.name||a00,a=function(r){return S.createElement(s00,K1({},e,{name:n,updateProps:r}),S.createElement(t,K1({},r)))};return a.displayName="profiler("+n+")",Lh(a,t),a}function u00(t){if(t===void 0&&(t=Ke()),t){var e=t.getScope();if(e)return e.getTransaction()}}const v00=zn.div` +`+u},r)}function ht0(t,e,n){var a=[{type:"client_report"},{timestamp:n||AM(),discarded_events:t}];return kM(e?{dsn:e}:{},[a])}var ut0=60*1e3;function vt0(t,e){e===void 0&&(e=Date.now());var n=parseInt(""+t,10);if(!isNaN(n))return n*1e3;var a=Date.parse(""+t);return isNaN(a)?ut0:a-e}function xO(t,e){return t[e]||t.all||0}function E01(t,e,n){return n===void 0&&(n=Date.now()),xO(t,e)>n}function P01(t,e,n){var a,r,o,c;n===void 0&&(n=Date.now());var l=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),z=parseInt(d[0],10),g=(isNaN(z)?60:z)*1e3;if(!d[1])l.all=n+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;l[m]=n+g}}catch(M){o={error:M}}finally{try{p&&!p.done&&(c=H.return)&&c.call(H)}finally{if(o)throw o.error}}}}catch(M){a={error:M}}finally{try{v&&!v.done&&(r=u.return)&&r.call(u)}finally{if(a)throw a.error}}else s&&(l.all=n+vt0(s,n));return l}var aU=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 n=new t;return e&&(n._breadcrumbs=Be(e._breadcrumbs),n._tags=K1({},e._tags),n._extra=K1({},e._extra),n._contexts=K1({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=Be(e._eventProcessors),n._requestSession=e._requestSession),n},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,n){var a;return this._tags=K1(K1({},this._tags),(a={},a[e]=n,a)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(e){return this._extra=K1(K1({},this._extra),e),this._notifyScopeListeners(),this},t.prototype.setExtra=function(e,n){var a;return this._extra=K1(K1({},this._extra),(a={},a[e]=n,a)),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,n){var a;return n===null?delete this._contexts[e]:this._contexts=K1(K1({},this._contexts),(a={},a[e]=n,a)),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 n=e(this);return n instanceof t?n: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)):b6(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,n){var a=typeof n=="number"?Math.min(n,aU):aU;if(a<=0)return this;var r=K1({timestamp:AM()},e);return this._breadcrumbs=Be(this._breadcrumbs,[r]).slice(-a),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(e,n){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 a=this._span.transaction&&this._span.transaction.name;a&&(e.tags=K1({transaction:a},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(N01(),this._eventProcessors),e,n)},t.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=K1(K1({},this._sdkProcessingMetadata),e),this},t.prototype._notifyEventProcessors=function(e,n,a,r){var o=this;return r===void 0&&(r=0),new Do(function(c,l){var h=e[r];if(n===null||typeof h!="function")c(n);else{var s=h(K1({},n),a);HO(s)?s.then(function(u){return o._notifyEventProcessors(e,u,a,r+1).then(c)}).then(null,l):o._notifyEventProcessors(e,s,a,r+1).then(c).then(null,l)}})},t.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(n){n(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 N01(){return mO("globalEventProcessors",function(){return[]})}function VO(t){N01().push(t)}var dt0=function(){function t(e){this.errors=0,this.sid=ao(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var n=QL();this.timestamp=n,this.started=n,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:ao()),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 n=this.timestamp-this.started;this.duration=n>=0?n: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}(),rU=typeof __SENTRY_DEBUG__>"u"?!0:__SENTRY_DEBUG__,CO=4,ft0=100,PM=function(){function t(e,n,a){n===void 0&&(n=new wp),a===void 0&&(a=CO),this._version=a,this._stack=[{}],this.getStackTop().scope=n,e&&this.bindClient(e)}return t.prototype.isOlderThan=function(e){return this._version"u"?!0:__SENTRY_DEBUG__,oU=[];function cU(t){return t.reduce(function(e,n){return e.every(function(a){return n.name!==a.name})&&e.push(n),e},[])}function yt0(t){var e=t.defaultIntegrations&&Be(t.defaultIntegrations)||[],n=t.integrations,a=Be(cU(e));Array.isArray(n)?a=Be(a.filter(function(c){return n.every(function(l){return l.name!==c.name})}),cU(n)):typeof n=="function"&&(a=n(a),a=Array.isArray(a)?a:[a]);var r=a.map(function(c){return c.name}),o="Debug";return r.indexOf(o)!==-1&&a.push.apply(a,Be(a.splice(r.indexOf(o),1))),a}function xt0(t){oU.indexOf(t.name)===-1&&(t.setupOnce(VO,Ke),oU.push(t.name),We&&Bt.log("Integration installed: "+t.name))}function Vt0(t){var e={};return yt0(t).forEach(function(n){e[n.name]=n,xt0(n)}),TM(e,"initialized",!0),e}var lU="Not capturing exception because it's already been captured.",Ct0=function(){function t(e,n){this._integrations={},this._numProcessing=0,this._backend=new e(n),this._options=n,n.dsn&&(this._dsn=wO(n.dsn))}return t.prototype.captureException=function(e,n,a){var r=this;if(eU(e)){We&&Bt.log(lU);return}var o=n&&n.event_id;return this._process(this._getBackend().eventFromException(e,n).then(function(c){return r._captureEvent(c,n,a)}).then(function(c){o=c})),o},t.prototype.captureMessage=function(e,n,a,r){var o=this,c=a&&a.event_id,l=MO(e)?this._getBackend().eventFromMessage(String(e),n,a):this._getBackend().eventFromException(e,a);return this._process(l.then(function(h){return o._captureEvent(h,a,r)}).then(function(h){c=h})),c},t.prototype.captureEvent=function(e,n,a){if(n&&n.originalException&&eU(n.originalException)){We&&Bt.log(lU);return}var r=n&&n.event_id;return this._process(this._captureEvent(e,n,a).then(function(o){r=o})),r},t.prototype.captureSession=function(e){if(!this._isEnabled()){We&&Bt.warn("SDK not enabled, will not capture session.");return}typeof e.release!="string"?We&&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 n=this;return this._isClientDoneProcessing(e).then(function(a){return n.getTransport().close(e).then(function(r){return a&&r})})},t.prototype.close=function(e){var n=this;return this.flush(e).then(function(a){return n.getOptions().enabled=!1,a})},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 We&&Bt.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(e,n){var a,r,o=!1,c=!1,l=n.exception&&n.exception.values;if(l){c=!0;try{for(var h=zo(l),s=h.next();!s.done;s=h.next()){var u=s.value,v=u.mechanism;if(v&&v.handled===!1){o=!0;break}}}catch(z){a={error:z}}finally{try{s&&!s.done&&(r=h.return)&&r.call(h)}finally{if(a)throw a.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(c||o)})),this.captureSession(e))},t.prototype._sendSession=function(e){this._getBackend().sendSession(e)},t.prototype._isClientDoneProcessing=function(e){var n=this;return new Do(function(a){var r=0,o=1,c=setInterval(function(){n._numProcessing==0?(clearInterval(c),a(!0)):(r+=o,e&&r>=e&&(clearInterval(c),a(!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,n,a){var r=this,o=this.getOptions(),c=o.normalizeDepth,l=c===void 0?3:c,h=o.normalizeMaxBreadth,s=h===void 0?1e3:h,u=K1(K1({},e),{event_id:e.event_id||(a&&a.event_id?a.event_id:ao()),timestamp:e.timestamp||AM()});this._applyClientOptions(u),this._applyIntegrationsMetadata(u);var v=n;a&&a.captureContext&&(v=wp.clone(v).update(a.captureContext));var f=rc(u);return v&&(f=v.applyToEvent(u,a)),f.then(function(d){return d&&(d.sdkProcessingMetadata=K1(K1({},d.sdkProcessingMetadata),{normalizeDepth:H8(l)+" ("+typeof l+")"})),typeof l=="number"&&l>0?r._normalizeEvent(d,l,s):d})},t.prototype._normalizeEvent=function(e,n,a){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,n,a)})})}),e.user&&{user:H8(e.user,n,a)}),e.contexts&&{contexts:H8(e.contexts,n,a)}),e.extra&&{extra:H8(e.extra,n,a)});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 n=this.getOptions(),a=n.environment,r=n.release,o=n.dist,c=n.maxValueLength,l=c===void 0?250:c;"environment"in e||(e.environment="environment"in n?a:"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,l));var h=e.exception&&e.exception.values&&e.exception.values[0];h&&h.value&&(h.value=fs(h.value,l));var s=e.request;s&&s.url&&(s.url=fs(s.url,l))},t.prototype._applyIntegrationsMetadata=function(e){var n=Object.keys(this._integrations);n.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=Be(e.sdk.integrations||[],n))},t.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},t.prototype._captureEvent=function(e,n,a){return this._processEvent(e,n,a).then(function(r){return r.event_id},function(r){We&&Bt.error(r)})},t.prototype._processEvent=function(e,n,a){var r=this,o=this.getOptions(),c=o.beforeSend,l=o.sampleRate,h=this.getTransport();function s(v,f){h.recordLostEvent&&h.recordLostEvent(v,f)}if(!this._isEnabled())return lh(new r4("SDK not enabled, will not capture event."));var u=e.type==="transaction";return!u&&typeof l=="number"&&Math.random()>l?(s("sample_rate","event"),lh(new r4("Discarding event because it's not included in the random sample (sampling rate = "+l+")"))):this._prepareEvent(e,a,n).then(function(v){if(v===null)throw s("event_processor",e.type||"event"),new r4("An event processor returned null, will not send event.");var f=n&&n.data&&n.data.__sentry__===!0;if(f||u||!c)return v;var d=c(v,n);return bt0(d)}).then(function(v){if(v===null)throw s("before_send",e.type||"event"),new r4("`beforeSend` returned `null`, will not send event.");var f=a&&a.getSession&&a.getSession();return!u&&f&&r._updateSessionFromEvent(f,v),r._sendEvent(v),v}).then(null,function(v){throw v instanceof r4?v:(r.captureException(v,{data:{__sentry__:!0},originalException:v}),new r4(`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 n=this;this._numProcessing+=1,e.then(function(a){return n._numProcessing-=1,a},function(a){return n._numProcessing-=1,a})},t}();function bt0(t){var e="`beforeSend` method has to return `null` or a valid event.";if(HO(t))return t.then(function(n){if(!(b6(n)||n===null))throw new r4(e);return n},function(n){throw new r4("beforeSend rejected with "+n)});if(!(b6(t)||t===null))throw new r4(e);return t}function LO(t){if(!(!t.metadata||!t.metadata.sdk)){var e=t.metadata.sdk,n=e.name,a=e.version;return{name:n,version:a}}}function U01(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 W01(t,e){var n=LO(e),a=K1(K1({sent_at:new Date().toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:su(e.dsn)}),r="aggregates"in t?"sessions":"session",o=[{type:r},t],c=kM(a,[o]);return[c,r]}function Lt0(t,e){var n=pn(W01(t,e),2),a=n[0],r=n[1];return{body:EM(a),type:r,url:NM(e.dsn,e.tunnel)}}function Bt0(t,e){var n=LO(e),a=t.type||"event",r=(t.sdkProcessingMetadata||{}).transactionSampling,o=r||{},c=o.method,l=o.rate;U01(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()},n&&{sdk:n}),!!e.tunnel&&{dsn:su(e.dsn)}),s=[{type:a,sample_rates:[{id:c,rate:l}]},t];return kM(h,[s])}function _t0(t,e){var n=LO(e),a=t.type||"event",r=a==="transaction"||!!e.tunnel,o=(t.sdkProcessingMetadata||{}).transactionSampling,c=o||{},l=c.method,h=c.rate;U01(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:a,url:r?NM(e.dsn,e.tunnel):$01(e.dsn)};if(r){var f=K1(K1({event_id:t.event_id,sent_at:new Date().toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:su(e.dsn)}),d=[{type:a,sample_rates:[{id:l,rate:h}]},v.body],z=kM(f,[d]);v.body=EM(z)}return v}var St0=function(){function t(){}return t.prototype.sendEvent=function(e){return rc({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(e){return rc(!0)},t}(),Tt0=function(){function t(e){this._options=e,this._options.dsn||We&&Bt.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(e,n){throw new r4("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(e,n,a){throw new r4("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 n=yp(this._options.dsn,this._options._metadata,this._options.tunnel),a=Bt0(e,n);this._newTransport.send(a).then(null,function(r){We&&Bt.error("Error while sending event:",r)})}else this._transport.sendEvent(e).then(null,function(r){We&&Bt.error("Error while sending event:",r)})},t.prototype.sendSession=function(e){if(!this._transport.sendSession){We&&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 n=yp(this._options.dsn,this._options._metadata,this._options.tunnel),a=pn(W01(e,n),1),r=a[0];this._newTransport.send(r).then(null,function(o){We&&Bt.error("Error while sending session:",o)})}else this._transport.sendSession(e).then(null,function(o){We&&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&&(We?Bt.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=Ke(),a=n.getScope();a&&a.update(e.initialScope);var r=new t(e);n.bindClient(r)}var At0=30;function q01(t,e,n){n===void 0&&(n=A01(t.bufferSize||At0));var a={},r=function(c){return n.drain(c)};function o(c){var l=st0(c),h=l==="event"?"error":l,s={category:h,body:EM(c)};if(E01(a,h))return lh({status:"rate_limit",reason:sU(a,h)});var u=function(){return e(s).then(function(v){var f=v.body,d=v.headers,z=v.reason,g=v.statusCode,H=k01(g);return d&&(a=P01(a,d)),H==="success"?rc({status:H,reason:z}):lh({status:H,reason:z||f||(H==="rate_limit"?sU(a,h):"Unknown transport error")})})};return n.add(u)}return{send:o,flush:r}}function sU(t,e){return"Too many "+e+" requests, backing off until: "+new Date(xO(t,e)).toISOString()}var xp="6.19.7",hU,kt0=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){hU=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],n=0;n=0;e--){var n=t[e];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function Vp(t){try{if(t.stacktrace)return uU(t.stacktrace.frames);var e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?uU(e):null}catch{return We&&Bt.error("Cannot extract url for event "+B8(t)),null}}var l9="?",Ut0=10,Wt0=20,qt0=30,Gt0=40,Kt0=50;function hu(t,e,n,a){var r={filename:t,function:e,in_app:!0};return n!==void 0&&(r.lineno=n),a!==void 0&&(r.colno=a),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 n=e[2]&&e[2].indexOf("eval")===0;if(n){var a=Zt0.exec(e[2]);a&&(e[2]=a[1],e[3]=a[2],e[4]=a[3])}var r=pn(G01(e[1]||l9,e[2]),2),o=r[0],c=r[1];return hu(c,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,n=Jt0.exec(t);if(n){var a=n[3]&&n[3].indexOf(" > eval")>-1;if(a){var r=t20.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var o=n[3],c=n[1]||l9;return e=pn(G01(c,o),2),c=e[0],o=e[1],hu(o,c,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},n20=[Kt0,e20],a20=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,r20=function(t){var e=a20.exec(t);return e?hu(e[2],e[1]||l9,+e[3],e[4]?+e[4]:void 0):void 0},i20=[Gt0,r20],o20=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,c20=function(t){var e=o20.exec(t);return e?hu(e[2],e[3]||l9,+e[1]):void 0},l20=[Ut0,c20],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]||l9,+e[1],+e[2]):void 0},u20=[Wt0,h20],G01=function(t,e){var n=t.indexOf("safari-extension")!==-1,a=t.indexOf("safari-web-extension")!==-1;return n||a?[t.indexOf("@")!==-1?t.split("@")[0]:l9,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function K01(t){var e=BO(t),n={type:t&&t.name,value:g20(t)};return e.length&&(n.stacktrace={frames:e}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function v20(t,e,n){var a={exception:{values:[{type:SM(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+A10(t)}]},extra:{__serialized__:T01(t)}};if(e){var r=BO(e);r.length&&(a.stacktrace={frames:r})}return a}function jV(t){return{exception:{values:[K01(t)]}}}function BO(t){var e=t.stacktrace||t.stack||"",n=f20(t);try{return E10(l20,u20,Xt0,i20,n20)(e,n)}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,n){var a=e&&e.syntheticException||void 0,r=_O(t,a,n);return ch(r),r.level=Ci.Error,e&&e.event_id&&(r.event_id=e.event_id),rc(r)}function m20(t,e,n,a){e===void 0&&(e=Ci.Info);var r=n&&n.syntheticException||void 0,o=XL(t,r,a);return o.level=e,n&&n.event_id&&(o.event_id=n.event_id),rc(o)}function _O(t,e,n,a){var r;if(V01(t)&&t.error){var o=t;return jV(o.error)}if(K$(t)||p10(t)){var c=t;if("stack"in t)r=jV(t);else{var l=c.name||(K$(c)?"DOMError":"DOMException"),h=c.message?l+": "+c.message:l;r=XL(h,e,n),YL(r,h)}return"code"in c&&(r.tags=K1(K1({},r.tags),{"DOMException.code":""+c.code})),r}if(zO(t))return jV(t);if(b6(t)||SM(t)){var s=t;return r=v20(s,e,a),ch(r,{synthetic:!0}),r}return r=XL(t,e,n),YL(r,""+t,void 0),ch(r,{synthetic:!0}),r}function XL(t,e,n){var a={message:t};if(n&&e){var r=BO(e);r.length&&(a.stacktrace={frames:r})}return a}var Pa=typeof __SENTRY_DEBUG__>"u"?!0:__SENTRY_DEBUG__,xr=g0(),Gd;function SO(){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 n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);var a=n.contentWindow;a&&a.fetch&&(e=a.fetch),t.head.removeChild(n)}catch(r){Pa&&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 n=Object.prototype.toString.call(xr&&xr.navigator)==="[object Navigator]",a=n&&typeof xr.navigator.sendBeacon=="function";if(a){var r=xr.navigator.sendBeacon.bind(xr.navigator);return r(t,e)}if(OM()){var o=SO();return v10(o(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}))}}function IV(t){var e=t;return e==="event"?"error":e}var FV=g0(),Y01=function(){function t(e){var n=this;this.options=e,this._buffer=A01(30),this._rateLimits={},this._outcomes={},this._api=yp(e.dsn,e._metadata,e.tunnel),this.url=$01(this._api.dsn),this.options.sendClientReports&&FV.document&&FV.document.addEventListener("visibilitychange",function(){FV.document.visibilityState==="hidden"&&n._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,n){var a;if(this.options.sendClientReports){var r=IV(n)+":"+e;Pa&&Bt.log("Adding outcome: "+r),this._outcomes[r]=(a=this._outcomes[r],(a??0)+1)}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},!Object.keys(e).length){Pa&&Bt.log("No outcomes to flush");return}Pa&&Bt.log(`Flushing outcomes: +`+JSON.stringify(e,null,2));var n=NM(this._api.dsn,this._api.tunnel),a=Object.keys(e).map(function(o){var c=pn(o.split(":"),2),l=c[0],h=c[1];return{reason:h,category:l,quantity:e[o]}}),r=ht0(a,this._api.tunnel&&su(this._api.dsn));try{z20(n,EM(r))}catch(o){Pa&&Bt.error(o)}}},t.prototype._handleResponse=function(e){var n=e.requestType,a=e.response,r=e.headers,o=e.resolve,c=e.reject,l=k01(a.status);if(this._rateLimits=P01(this._rateLimits,r),this._isRateLimited(n)&&Pa&&Bt.warn("Too many "+n+" requests, backing off until: "+this._disabledUntil(n)),l==="success"){o({status:l});return}c(a)},t.prototype._disabledUntil=function(e){var n=IV(e);return new Date(xO(this._rateLimits,n))},t.prototype._isRateLimited=function(e){var n=IV(e);return E01(this._rateLimits,n)},t}(),M20=function(t){$5(e,t);function e(n,a){a===void 0&&(a=SO());var r=t.call(this,n)||this;return r._fetch=a,r}return e.prototype._sendRequest=function(n,a){var r=this;if(this._isRateLimited(n.type))return this.recordLostEvent("ratelimit_backoff",n.type),Promise.reject({event:a,type:n.type,reason:"Transport for "+n.type+" requests locked till "+this._disabledUntil(n.type)+" due to too many requests.",status:429});var o={body:n.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(c,l){r._fetch(n.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:n.type,response:h,headers:s,resolve:c,reject:l})}).catch(l)})}).then(void 0,function(c){throw c instanceof r4?r.recordLostEvent("queue_overflow",n.type):r.recordLostEvent("network_error",n.type),c})},e}(Y01),H20=function(t){$5(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._sendRequest=function(n,a){var r=this;return this._isRateLimited(n.type)?(this.recordLostEvent("ratelimit_backoff",n.type),Promise.reject({event:a,type:n.type,reason:"Transport for "+n.type+" requests locked till "+this._disabledUntil(n.type)+" due to too many requests.",status:429})):this._buffer.add(function(){return new Do(function(o,c){var l=new XMLHttpRequest;l.onreadystatechange=function(){if(l.readyState===4){var s={"x-sentry-rate-limits":l.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":l.getResponseHeader("Retry-After")};r._handleResponse({requestType:n.type,response:l,headers:s,resolve:o,reject:c})}},l.open("POST",n.url);for(var h in r.options.headers)Object.prototype.hasOwnProperty.call(r.options.headers,h)&&l.setRequestHeader(h,r.options.headers[h]);l.send(n.body)})}).then(void 0,function(o){throw o instanceof r4?r.recordLostEvent("queue_overflow",n.type):r.recordLostEvent("network_error",n.type),o})},e}(Y01);function w20(t,e){e===void 0&&(e=SO());function n(a){var r=K1({body:a.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return e(t.url,r).then(function(o){return o.text().then(function(c){return{body:c,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 q01({bufferSize:t.bufferSize},n)}var y20=4;function x20(t){function e(n){return new Do(function(a,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){if(o.readyState===y20){var l={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};a(l)}},o.open("POST",t.url);for(var c in t.headers)Object.prototype.hasOwnProperty.call(t.headers,c)&&o.setRequestHeader(c,t.headers[c]);o.send(n.body)})}return q01({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(n,a){return p20(n,a,this._options.attachStacktrace)},e.prototype.eventFromMessage=function(n,a,r){return a===void 0&&(a=Ci.Info),m20(n,a,r,this._options.attachStacktrace)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var n=K1(K1({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),a=yp(n.dsn,n._metadata,n.tunnel),r=NM(a.dsn,a.tunnel);if(this._options.transport)return new this._options.transport(n);if(OM()){var o=K1({},n.fetchParameters);return this._newTransport=w20({requestOptions:o,url:r}),new M20(n)}return this._newTransport=x20({url:r,headers:n.headers}),new H20(n)},e}(Tt0),Kd=g0(),JL=0;function Z01(){return JL>0}function C20(){JL+=1,setTimeout(function(){JL-=1})}function L6(t,e,n){if(e===void 0&&(e={}),typeof t!="function")return t;try{var a=t.__sentry_wrapped__;if(a)return a;if(yO(t))return t}catch{return t}var r=function(){var l=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);var h=l.map(function(s){return L6(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),ch(v,e.mechanism)),v.extra=K1(K1({},v.extra),{arguments:l}),v}),pt0(s)}),s}};try{for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}catch{}B01(r,t),TM(t,"__sentry_wrapped__",r);try{var c=Object.getOwnPropertyDescriptor(r,"name");c.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){Pa&&Bt.error("Missing eventId option in showReportDialog call");return}if(!t.dsn){Pa&&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 n=Kd.document.head||Kd.document.body;n&&n.appendChild(e)}}var TO=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 n in e){var a=this._installFunc[n];a&&e[n]&&(T20(n),a(),this._installFunc[n]=void 0)}},t.id="GlobalHandlers",t}();function L20(){ea("error",function(t){var e=pn(J01(),2),n=e[0],a=e[1];if(n.getIntegration(TO)){var r=t.msg,o=t.url,c=t.line,l=t.column,h=t.error;if(!(Z01()||h&&h.__sentry_own_request__)){var s=h===void 0&&C6(r)?S20(r,o,c,l):Q01(_O(h||r,void 0,a,!1),o,c,l);s.level=Ci.Error,X01(n,h,s,"onerror")}}})}function B20(){ea("unhandledrejection",function(t){var e=pn(J01(),2),n=e[0],a=e[1];if(n.getIntegration(TO)){var r=t;try{"reason"in t?r=t.reason:"detail"in t&&"reason"in t.detail&&(r=t.detail.reason)}catch{}if(Z01()||r&&r.__sentry_own_request__)return!0;var o=MO(r)?_20(r):_O(r,void 0,a,!0);o.level=Ci.Error,X01(n,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,n,a){var r=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=V01(t)?t.message:t,c="Error",l=o.match(r);l&&(c=l[1],o=l[2]);var h={exception:{values:[{type:c,value:o}]}};return Q01(h,e,n,a)}function Q01(t,e,n,a){var r=t.exception=t.exception||{},o=r.values=r.values||[],c=o[0]=o[0]||{},l=c.stacktrace=c.stacktrace||{},h=l.frames=l.frames||[],s=isNaN(parseInt(a,10))?void 0:a,u=isNaN(parseInt(n,10))?void 0:n,v=C6(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){Pa&&Bt.log("Global Handler attached: "+t)}function X01(t,e,n,a){ch(n,{handled:!1,type:a}),t.captureEvent(n,{originalException:e})}function J01(){var t=Ke(),e=t.getClient(),n=e&&e.getOptions().attachStacktrace;return[t,n]}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",vU),this._options.setInterval&&Z4(e,"setInterval",vU),this._options.requestAnimationFrame&&Z4(e,"requestAnimationFrame",k20),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Z4(XMLHttpRequest.prototype,"send",E20);var n=this._options.eventTarget;if(n){var a=Array.isArray(n)?n:O20;a.forEach(P20)}},t.id="TryCatch",t}();function vU(t){return function(){for(var e=[],n=0;n"}a.length!==0&&Ke().addBreadcrumb({category:"ui."+n.name,message:a},{event:n.event,name:n.name,global:n.global})}return e}function D20(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:rt0(t.level),message:Z$(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)e.message="Assertion failed: "+(Z$(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1);else return;Ke().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__||{},n=e.method,a=e.url,r=e.status_code,o=e.body;Ke().addBreadcrumb({category:"xhr",data:{method:n,url:a,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?Ke().addBreadcrumb({category:"fetch",data:t.fetchData,level:Ci.Error,type:"http"},{data:t.error,input:t.args}):Ke().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(),n=t.from,a=t.to,r=DV(e.location.href),o=DV(n),c=DV(a);o.path||(o=r),r.protocol===c.protocol&&r.host===c.host&&(a=c.relative),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),Ke().addBreadcrumb({category:"navigation",data:{from:n,to:a}})}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(){VO(function(e,n){var a=Ke().getIntegration(t);return a?W20(a._key,a._limit,e,n):e})},t.id="LinkedErrors",t}();function W20(t,e,n,a){if(!n.exception||!n.exception.values||!a||!Ti(a.originalException,Error))return n;var r=ee1(e,a.originalException,t);return n.exception.values=Be(r,n.exception.values),n}function ee1(t,e,n,a){if(a===void 0&&(a=[]),!Ti(e[n],Error)||a.length+1>=t)return a;var r=K01(e[n]);return ee1(t,e[n],n,Be([r],a))}var o8=g0(),q20=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){VO(function(e){if(Ke().getIntegration(t)){if(!o8.navigator&&!o8.location&&!o8.document)return e;var n=e.request&&e.request.url||o8.location&&o8.location.href,a=(o8.document||{}).referrer,r=(o8.navigator||{}).userAgent,o=K1(K1(K1({},e.request&&e.request.headers),a&&{Referer:a}),r&&{"User-Agent":r}),c=K1(K1({},n&&{url:n}),{headers:o});return K1(K1({},e),{request:c})}return e})},t.id="UserAgent",t}(),G20=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,n){e(function(a){var r=n().getIntegration(t);if(r){try{if(K20(a,r._previousEvent))return Pa&&Bt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return r._previousEvent=a}return r._previousEvent=a}return a})},t.id="Dedupe",t}();function K20(t,e){return e?!!(Y20(t,e)||Z20(t,e)):!1}function Y20(t,e){var n=t.message,a=e.message;return!(!n&&!a||n&&!a||!n&&a||n!==a||!ae1(t,e)||!ne1(t,e))}function Z20(t,e){var n=dU(e),a=dU(t);return!(!n||!a||n.type!==a.type||n.value!==a.value||!ae1(t,e)||!ne1(t,e))}function ne1(t,e){var n=fU(t),a=fU(e);if(!n&&!a)return!0;if(n&&!a||!n&&a||(n=n,a=a,a.length!==n.length))return!1;for(var r=0;r"u"){Pa&&Bt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}var n=Ke();n.captureSession&&(gU(n),ea("history",function(a){var r=a.from,o=a.to;r===void 0||r===o||gU(Ke())}))}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 n00="ui.react.render",a00="ui.react.update",pU="ui.react.mount",r00="unknown",i00={id:"Tracing"},pi=null,o00=function(){return pi||(pi=Ke().getIntegration(i00),pi)};function c00(t,e){return pi===null?null:pi.constructor.pushActivity(t,{description:"<"+t+">",op:e})}function l00(t){t===null||pi===null||pi.constructor.popActivity(t)}function s00(t){if(!(t===null||pi===null))return pi.constructor.getActivitySpan(t)}var h00=function(t){$5(e,t);function e(n){var a=t.call(this,n)||this;a._mountSpan=void 0,a._mountActivity=null;var r=a.props,o=r.name,c=r.disabled,l=c===void 0?!1:c;if(l)return a;if(o00())a._mountActivity=c00(o,pU);else{var h=v00();h&&(a._mountSpan=h.startChild({description:"<"+o+">",op:pU}))}return a}return e.prototype.componentDidMount=function(){this._mountSpan?this._mountSpan.finish():(this._mountSpan=s00(this._mountActivity),l00(this._mountActivity),this._mountActivity=null)},e.prototype.componentDidUpdate=function(n){var a=this,r=n.updateProps,o=n.includeUpdates,c=o===void 0?!0:o;if(c&&this._mountSpan&&r!==this.props.updateProps){var l=Object.keys(r).filter(function(s){return r[s]!==a.props.updateProps[s]});if(l.length>0){var h=ic();this._mountSpan.startChild({data:{changedProps:l},description:"<"+this.props.name+">",endTimestamp:h,op:a00,startTimestamp:h})}}},e.prototype.componentWillUnmount=function(){var n=this.props,a=n.name,r=n.includeRender,o=r===void 0?!0:r;this._mountSpan&&o&&this._mountSpan.startChild({description:"<"+a+">",endTimestamp:ic(),op:n00,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 n=e&&e.name||t.displayName||t.name||r00,a=function(r){return _.createElement(h00,K1({},e,{name:n,updateProps:r}),_.createElement(t,K1({},r)))};return a.displayName="profiler("+n+")",Lh(a,t),a}function v00(t){if(t===void 0&&(t=Ke()),t){var e=t.getScope();if(e)return e.getTransaction()}}const d00=zn.div` display: flex; justify-content: center; align-items: center; @@ -9353,7 +9389,7 @@ Url: `+Vp(t)),!0)}function Dt0(t,e){return!e||!e.length?!1:It0(t).some(function( flex-direction: ${Oa?"column":"row"}; padding: 0 30px; text-align: ${Oa?"center":"left"}; -`,d00=({text:t})=>$.jsxs(v00,{children:[$.jsx("div",{children:$.jsx("img",{src:"/images/maintenance-bg.svg",alt:" "})}),$.jsx("div",{children:t?$.jsx(P0.Text,{children:t}):$.jsxs(P0.Text,{children:["Dostęp do platformy ograniczony z powodu trwających prac technicznych",$.jsx("br",{}),$.jsx("br",{}),"Przepraszamy za utrudnienia. Zapraszamy wkrótce"]})})]}),f00=S.lazy(()=>a0(()=>import("./ThemeCustomizer-PV7r4sQX.js"),__vite__mapDeps([]))),g00=Om` +`,f00=({text:t})=>$.jsxs(d00,{children:[$.jsx("div",{children:$.jsx("img",{src:"/images/maintenance-bg.svg",alt:" "})}),$.jsx("div",{children:t?$.jsx(P0.Text,{children:t}):$.jsxs(P0.Text,{children:["Dostęp do platformy ograniczony z powodu trwających prac technicznych",$.jsx("br",{}),$.jsx("br",{}),"Przepraszamy za utrudnienia. Zapraszamy wkrótce"]})})]}),g00=_.lazy(()=>a0(()=>import("./ThemeCustomizer-VqfIYrWQ.js"),__vite__mapDeps([]))),p00=Om` html, body { margin: 0; padding: 0; @@ -9383,11 +9419,11 @@ Url: `+Vp(t)),!0)}function Dt0(t,e){return!e||!e.length?!1:It0(t).some(function( a { text-decoration: none; } -`,p00=zn.main` +`,m00=zn.main` height: fit-content; background-color: ${({theme:t})=>t.mode==="dark"?t.dm__background:t.background}; padding-top: ${({noPadding:t})=>t?"0px":Oa?"92px":"57px"}; -`,m00=t=>v71[t],z00=()=>{var a,r,o,c,l,h,s,u;const{fetchSettings:t,settings:e,fetchNotifications:n}=S.useContext(y4.EscolaLMSContext);return S.useEffect(()=>{t(),n()},[t,n]),$.jsxs(W1.Fragment,{children:[$.jsx(g00,{}),$.jsxs(p00,{noPadding:(r=(a=e==null?void 0:e.value)==null?void 0:a.global)==null?void 0:r.technicalMaintenance,children:[$.jsx(f00,{theme:m00((c=(o=e.value)==null?void 0:o.theme)==null?void 0:c.theme)}),(h=(l=e==null?void 0:e.value)==null?void 0:l.global)!=null&&h.technicalMaintenance?$.jsx(d00,{text:(u=(s=e==null?void 0:e.value)==null?void 0:s.global)==null?void 0:u.technicalMaintenanceText}):$.jsx(s10,{})]})]})};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 M00=h00(z00);var ne1={exports:{}};(function(t){(function(){function e(E,q,Y){return E.call.apply(E.bind,arguments)}function n(E,q,Y){if(!E)throw Error();if(2=q.f?Z1():E.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,c1]).then(function(){v1&&(clearTimeout(v1),v1=null),q.g(q.a)},function(){q.j(q.a)})};function R(E,q,Y,c1,v1,x1,N1){this.v=E,this.B=q,this.c=Y,this.a=c1,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),E=new w(this.a.c+",serif",V(this.a)),E=I(E),this.g.a.style.cssText=E,E=new w(this.a.c+",sans-serif",V(this.a)),E=I(E),this.h.a.style.cssText=E,E=new w("serif",V(this.a)),E=I(E),this.j.a.style.cssText=E,E=new w("sans-serif",V(this.a)),E=I(E),this.m.a.style.cssText=E,Z(this.g),Z(this.h),Z(this.j),Z(this.m)}var i1={D:"serif",C:"sans-serif"},J=null;function A(){if(J===null){var E=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);J=!!E&&(536>parseInt(E[1],10)||parseInt(E[1],10)===536&&11>=parseInt(E[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(E,q,Y){for(var c1 in i1)if(i1.hasOwnProperty(c1)&&q===E.f[i1[c1]]&&Y===E.f[i1[c1]])return!0;return!1}function h1(E){var q=E.g.a.offsetWidth,Y=E.h.a.offsetWidth,c1;(c1=q===E.f.serif&&Y===E.f["sans-serif"])||(c1=A()&&o1(E,q,Y)),c1?r()-E.A>=E.w?A()&&o1(E,q,Y)&&(E.u===null||E.u.hasOwnProperty(E.a.c))?M1(E,E.v):M1(E,E.B):n1(E):M1(E,E.v)}function n1(E){setTimeout(a(function(){h1(this)},E),50)}function M1(E,q){setTimeout(a(function(){s(this.g.a),s(this.h.a),s(this.j.a),s(this.m.a),q(this.a)},E),0)}function s1(E,q,Y){this.c=E,this.a=q,this.f=0,this.m=this.j=!1,this.s=Y}var z1=null;s1.prototype.g=function(E){var q=this.a;q.g&&u(q.f,[q.a.c("wf",E.c,V(E).toString(),"active")],[q.a.c("wf",E.c,V(E).toString(),"loading"),q.a.c("wf",E.c,V(E).toString(),"inactive")]),P(q,"fontactive",E),this.m=!0,m1(this)},s1.prototype.h=function(E){var q=this.a;if(q.g){var Y=v(q.f,q.a.c("wf",E.c,V(E).toString(),"active")),c1=[],v1=[q.a.c("wf",E.c,V(E).toString(),"loading")];Y||c1.push(q.a.c("wf",E.c,V(E).toString(),"inactive")),u(q.f,c1,v1)}P(q,"fontinactive",E),m1(this)};function m1(E){--E.f==0&&E.j&&(E.m?(E=E.a,E.g&&u(E.f,[E.a.c("wf","active")],[E.a.c("wf","loading"),E.a.c("wf","inactive")]),P(E,"active")):T(E.a))}function _1(E){this.j=E,this.a=new F,this.h=0,this.f=this.g=!0}_1.prototype.load=function(E){this.c=new o(this.j,E.context||this.j),this.g=E.events!==!1,this.f=E.classes!==!1,U1(this,new B(this.c,E),E)};function I1(E,q,Y,c1,v1){var x1=--E.h==0;(E.f||E.g)&&setTimeout(function(){var N1=v1||null,Z1=c1||null||{};if(Y.length===0&&x1)T(q.a);else{q.f+=Y.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",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"},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 +`,z00=t=>f71[t],M00=()=>{var a,r,o,c,l,h,s,u;const{fetchSettings:t,settings:e,fetchNotifications:n}=_.useContext(y4.EscolaLMSContext);return _.useEffect(()=>{t(),n()},[t,n]),$.jsxs(W1.Fragment,{children:[$.jsx(p00,{}),$.jsxs(m00,{noPadding:(r=(a=e==null?void 0:e.value)==null?void 0:a.global)==null?void 0:r.technicalMaintenance,children:[$.jsx(g00,{theme:z00((c=(o=e.value)==null?void 0:o.theme)==null?void 0:c.theme)}),(h=(l=e==null?void 0:e.value)==null?void 0:l.global)!=null&&h.technicalMaintenance?$.jsx(f00,{text:(u=(s=e==null?void 0:e.value)==null?void 0:s.global)==null?void 0:u.technicalMaintenanceText}):$.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 re1={exports:{}};(function(t){(function(){function e(E,q,Y){return E.call.apply(E.bind,arguments)}function n(E,q,Y){if(!E)throw Error();if(2=q.f?Z1():E.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,c1]).then(function(){v1&&(clearTimeout(v1),v1=null),q.g(q.a)},function(){q.j(q.a)})};function R(E,q,Y,c1,v1,x1,N1){this.v=E,this.B=q,this.c=Y,this.a=c1,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),E=new w(this.a.c+",serif",V(this.a)),E=I(E),this.g.a.style.cssText=E,E=new w(this.a.c+",sans-serif",V(this.a)),E=I(E),this.h.a.style.cssText=E,E=new w("serif",V(this.a)),E=I(E),this.j.a.style.cssText=E,E=new w("sans-serif",V(this.a)),E=I(E),this.m.a.style.cssText=E,Z(this.g),Z(this.h),Z(this.j),Z(this.m)}var i1={D:"serif",C:"sans-serif"},J=null;function A(){if(J===null){var E=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);J=!!E&&(536>parseInt(E[1],10)||parseInt(E[1],10)===536&&11>=parseInt(E[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(E,q,Y){for(var c1 in i1)if(i1.hasOwnProperty(c1)&&q===E.f[i1[c1]]&&Y===E.f[i1[c1]])return!0;return!1}function h1(E){var q=E.g.a.offsetWidth,Y=E.h.a.offsetWidth,c1;(c1=q===E.f.serif&&Y===E.f["sans-serif"])||(c1=A()&&o1(E,q,Y)),c1?r()-E.A>=E.w?A()&&o1(E,q,Y)&&(E.u===null||E.u.hasOwnProperty(E.a.c))?M1(E,E.v):M1(E,E.B):n1(E):M1(E,E.v)}function n1(E){setTimeout(a(function(){h1(this)},E),50)}function M1(E,q){setTimeout(a(function(){s(this.g.a),s(this.h.a),s(this.j.a),s(this.m.a),q(this.a)},E),0)}function s1(E,q,Y){this.c=E,this.a=q,this.f=0,this.m=this.j=!1,this.s=Y}var z1=null;s1.prototype.g=function(E){var q=this.a;q.g&&u(q.f,[q.a.c("wf",E.c,V(E).toString(),"active")],[q.a.c("wf",E.c,V(E).toString(),"loading"),q.a.c("wf",E.c,V(E).toString(),"inactive")]),P(q,"fontactive",E),this.m=!0,m1(this)},s1.prototype.h=function(E){var q=this.a;if(q.g){var Y=v(q.f,q.a.c("wf",E.c,V(E).toString(),"active")),c1=[],v1=[q.a.c("wf",E.c,V(E).toString(),"loading")];Y||c1.push(q.a.c("wf",E.c,V(E).toString(),"inactive")),u(q.f,c1,v1)}P(q,"fontinactive",E),m1(this)};function m1(E){--E.f==0&&E.j&&(E.m?(E=E.a,E.g&&u(E.f,[E.a.c("wf","active")],[E.a.c("wf","loading"),E.a.c("wf","inactive")]),P(E,"active")):T(E.a))}function S1(E){this.j=E,this.a=new F,this.h=0,this.f=this.g=!0}S1.prototype.load=function(E){this.c=new o(this.j,E.context||this.j),this.g=E.events!==!1,this.f=E.classes!==!1,U1(this,new B(this.c,E),E)};function I1(E,q,Y,c1,v1){var x1=--E.h==0;(E.f||E.g)&&setTimeout(function(){var N1=v1||null,Z1=c1||null||{};if(Y.length===0&&x1)T(q.a);else{q.f+=Y.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",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 @@ -9397,4 +9433,4 @@ Url: `+Vp(t)),!0)}function Dt0(t,e){return!e||!e.length?!1:It0(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"},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:{ThankYou:"Dziękujemy za wystawienie oceny",ThankYouMessage:"Twoja ocena została zapisana",OptionalComment:"Tutaj możesz napisać komentarz lub zostawić opinię (nieobowiązkowe)",SendAnswer:"Prześlij odpowiedź",NoAnswer:"Nie chcę odpowiadać"},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"}}}};tn.use(XZ2).init({resources:y00,fallbackLng:"pl",interpolation:{escapeValue:!1},react:{transKeepBasicHtmlNodesFor:["br","strong","i"]}});var w2=typeof __SENTRY_DEBUG__>"u"?!0:__SENTRY_DEBUG__;function OO(t){var e=Ke().getClient(),n=t||e&&e.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function DM(t){var e=t||Ke(),n=e.getScope();return n&&n.getTransaction()}function d4(t){return t/1e3}function x00(t){return t*1e3}function V00(){ea("error",pU),ea("unhandledrejection",pU)}function pU(){var t=DM();if(t){var e="internal_error";w2&&Bt.log("[Tracing] Transaction: "+e+" -> Global error occured"),t.setStatus(e)}}var eB="finishReason",nB=["heartbeatFailed","idleTimeout","documentHidden"],ae1=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}(),C00=function(){function t(e){if(this.traceId=no(),this.spanId=no().substring(16),this.startTimestamp=r6(),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 n=new t(K1(K1({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},t.prototype.setTag=function(e,n){var a;return this.tags=K1(K1({},this.tags),(a={},a[e]=n,a)),this},t.prototype.setData=function(e,n){var a;return this.data=K1(K1({},this.data),(a={},a[e]=n,a)),this},t.prototype.setStatus=function(e){return this.status=e,this},t.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var n=b00(e);return n!=="unknown_error"&&this.setStatus(n),this},t.prototype.isSuccess=function(){return this.status==="ok"},t.prototype.finish=function(e){this.endTimestamp=typeof e=="number"?e:r6()},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 P8({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 n,a,r,o,c;return this.data=(n=e.data,n??{}),this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=(a=e.spanId,a??this.spanId),this.startTimestamp=(r=e.startTimestamp,r??this.startTimestamp),this.status=e.status,this.tags=(o=e.tags,o??{}),this.traceId=(c=e.traceId,c??this.traceId),this},t.prototype.getTraceContext=function(){return P8({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 P8({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 b00(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 re1=function(t){Ui(e,t);function e(n,a){var r=t.call(this,n)||this;return r._measurements={},r._hub=Ke(),O5(a,PM)&&(r._hub=a),r.name=n.name||"",r.metadata=n.metadata||{},r._trimEnd=n.trimEnd,r.transaction=r,r}return e.prototype.setName=function(n){this.name=n},e.prototype.initSpanRecorder=function(n){n===void 0&&(n=1e3),this.spanRecorder||(this.spanRecorder=new ae1(n)),this.spanRecorder.add(this)},e.prototype.setMeasurements=function(n){this._measurements=K1({},n)},e.prototype.setMetadata=function(n){this.metadata=K1(K1({},this.metadata),n)},e.prototype.finish=function(n){var a=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,n),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 c=this.spanRecorder?this.spanRecorder.spans.filter(function(s){return s!==a&&s.endTimestamp}):[];this._trimEnd&&c.length>0&&(this.endTimestamp=c.reduce(function(s,u){return s.endTimestamp&&u.endTimestamp?s.endTimestamp>u.endTimestamp?s:u:s}).endTimestamp);var l={contexts:{trace:this.getTraceContext()},spans:c,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)),l.measurements=this._measurements),w2&&Bt.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(l)}},e.prototype.toContext=function(){var n=t.prototype.toContext.call(this);return P8(K1(K1({},n),{name:this.name,trimEnd:this._trimEnd}))},e.prototype.updateWithContext=function(n){var a;return t.prototype.updateWithContext.call(this,n),this.name=(a=n.name,a??""),this._trimEnd=n.trimEnd,this},e}(C00),ie1=1e3,L00=5e3,B00=function(t){Ui(e,t);function e(n,a,r,o){r===void 0&&(r="");var c=t.call(this,o)||this;return c._pushActivity=n,c._popActivity=a,c.transactionSpanId=r,c}return e.prototype.add=function(n){var a=this;n.spanId!==this.transactionSpanId&&(n.finish=function(r){n.endTimestamp=typeof r=="number"?r:r6(),a._popActivity(n.spanId)},n.endTimestamp===void 0&&this._pushActivity(n.spanId)),t.prototype.add.call(this,n)},e}(ae1),S00=function(t){Ui(e,t);function e(n,a,r,o){r===void 0&&(r=ie1),o===void 0&&(o=!1);var c=t.call(this,n,a)||this;return c._idleHub=a,c._idleTimeout=r,c._onScope=o,c.activities={},c._heartbeatCounter=0,c._finished=!1,c._beforeFinishCallbacks=[],a&&o&&(mU(a),w2&&Bt.log("Setting idle transaction on scope. Span ID: "+c.spanId),a.configureScope(function(l){return l.setSpan(c)})),c._initTimeout=setTimeout(function(){c._finished||c.finish()},c._idleTimeout),c}return e.prototype.finish=function(n){var a,r,o=this;if(n===void 0&&(n=r6()),this._finished=!0,this.activities={},this.spanRecorder){w2&&Bt.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);try{for(var c=mo(this._beforeFinishCallbacks),l=c.next();!l.done;l=c.next()){var h=l.value;h(this,n)}}catch(s){a={error:s}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(a)throw a.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter(function(s){if(s.spanId===o.spanId)return!0;s.endTimestamp||(s.endTimestamp=n,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,nB[0]),this.finish()):this._pingHeartbeat()}},e.prototype._pingHeartbeat=function(){var n=this;w2&&Bt.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout(function(){n._beat()},L00)},e}(re1);function mU(t){if(t){var e=t.getScope();if(e){var n=e.getTransaction();n&&e.setSpan(void 0)}}}function _00(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function oe1(t,e,n){if(!OO(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setMetadata({transactionSampling:{method:"explicitly_set"}}),t;var a;return typeof e.tracesSampler=="function"?(a=e.tracesSampler(n),t.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(a)}})):n.parentSampled!==void 0?(a=n.parentSampled,t.setMetadata({transactionSampling:{method:"inheritance"}})):(a=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:"client_rate",rate:Number(a)}})),T00(a)?a?(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 O00(t,e){var n=this.getClient(),a=n&&n.getOptions()||{},r=new re1(t,this);return r=oe1(r,a,K1({parentSampled:t.parentSampled,transactionContext:t},e)),r.sampled&&r.initSpanRecorder(a._experiments&&a._experiments.maxSpans),r}function A00(t,e,n,a,r){var o=t.getClient(),c=o&&o.getOptions()||{},l=new S00(e,t,n,a);return l=oe1(l,c,K1({parentSampled:e.parentSampled,transactionContext:e},r)),l.sampled&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),l}function k00(){var t=c9();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=O00),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=_00))}function E00(){var t=c9();if(t.__SENTRY__){var e={mongodb:function(){var a=I3(module,"./integrations/node/mongo");return new a.Mongo},mongoose:function(){var a=I3(module,"./integrations/node/mongo");return new a.Mongo({mongoose:!0})},mysql:function(){var a=I3(module,"./integrations/node/mysql");return new a.Mysql},pg:function(){var a=I3(module,"./integrations/node/postgres");return new a.Postgres}},n=Object.keys(e).filter(function(a){return!!d10(a)}).map(function(a){try{return e[a]()}catch{return}}).filter(function(a){return a});n.length>0&&(t.__SENTRY__.integrations=Be(t.__SENTRY__.integrations||[],n))}}function P00(){k00(),lu()&&E00(),V00()}var Yd=g0();function N00(){Yd&&Yd.document?Yd.document.addEventListener("visibilitychange",function(){var t=DM();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,nB[2]),t.finish()}}):w2&&Bt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var AO=function(t,e,n){var a;return function(r){e.value>=0&&(r||n)&&(e.delta=e.value-(a||0),(e.delta||a===void 0)&&(a=e.value,t(e)))}},D00=function(){return"v2-"+Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12)},kO=function(t,e){return{name:t,value:e??-1,delta:0,entries:[],id:D00()}},EO=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if(t==="first-input"&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver(function(a){return a.getEntries().map(e)});return n.observe({type:t,buffered:!0}),n}}catch{}},RM=function(t,e){var n=function(a){(a.type==="pagehide"||g0().document.visibilityState==="hidden")&&(t(a),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},R00=function(t,e){var n=kO("CLS",0),a,r=0,o=[],c=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>n.value&&(n.value=r,n.entries=o,a&&a())}},l=EO("layout-shift",c);l&&(a=AO(t,n,e),RM(function(){l.takeRecords().map(c),a(!0)}))},Df=-1,j00=function(){return g0().document.visibilityState==="hidden"?0:1/0},I00=function(){RM(function(t){var e=t.timeStamp;Df=e},!0)},PO=function(){return Df<0&&(Df=j00(),I00()),{get firstHiddenTime(){return Df}}},F00=function(t,e){var n=PO(),a=kO("FID"),r,o=function(l){r&&l.startTime=e.startTimestamp)){var h=n._measurements[l].value,s=c+d4(h),u=Math.abs((s-e.startTimestamp)*1e3),v=u-h;w2&&Bt.log("[Measurements] Normalized "+l+" from "+h+" to "+u+" ("+v+")"),n._measurements[l].value=u}}),this._measurements["mark.fid"]&&this._measurements.fid&&Bl(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+d4(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),Y00(e,this._lcpEntry,this._clsEntry),e.setTag("sentry_reportAllChanges",this._reportAllChanges)}}},t.prototype._trackNavigator=function(e){var n=dr.navigator;if(n){var a=n.connection;a&&(a.effectiveType&&e.setTag("effectiveConnectionType",a.effectiveType),a.type&&e.setTag("connectionType",a.type),Qd(a.rtt)&&(this._measurements["connection.rtt"]={value:a.rtt}),Qd(a.downlink)&&(this._measurements["connection.downlink"]={value:a.downlink})),Qd(n.deviceMemory)&&e.setTag("deviceMemory",String(n.deviceMemory)),Qd(n.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(n.hardwareConcurrency))}},t.prototype._trackCLS=function(){var e=this;R00(function(n){var a=n.entries.pop();a&&(w2&&Bt.log("[Measurements] Adding CLS"),e._measurements.cls={value:n.value},e._clsEntry=a)})},t.prototype._trackLCP=function(){var e=this;$00(function(n){var a=n.entries.pop();if(a){var r=d4(p7),o=d4(a.startTime);w2&&Bt.log("[Measurements] Adding LCP"),e._measurements.lcp={value:n.value},e._measurements["mark.lcp"]={value:r+o},e._lcpEntry=a}},this._reportAllChanges)},t.prototype._trackFID=function(){var e=this;F00(function(n){var a=n.entries.pop();if(a){var r=d4(p7),o=d4(a.startTime);w2&&Bt.log("[Measurements] Adding FID"),e._measurements.fid={value:n.value},e._measurements["mark.fid"]={value:r+o}}})},t}();function W00(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(function(a){Zd(t,e,a,n)}),Zd(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),Zd(t,e,"fetch",n,"cache","domainLookupStart"),Zd(t,e,"domainLookup",n,"DNS"),K00(t,e,n)}function q00(t,e,n,a,r){var o=r+n,c=o+a;return Bl(t,{description:e.name,endTimestamp:c,op:e.entryType,startTimestamp:o}),o}function G00(t,e,n,a,r,o){if(!(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")){var c={};"transferSize"in e&&(c["Transfer Size"]=e.transferSize),"encodedBodySize"in e&&(c["Encoded Body Size"]=e.encodedBodySize),"decodedBodySize"in e&&(c["Decoded Body Size"]=e.decodedBodySize);var l=o+a,h=l+r;Bl(t,{description:n,endTimestamp:h,op:e.initiatorType?"resource."+e.initiatorType:"resource",startTimestamp:l,data:c})}}function Zd(t,e,n,a,r,o){var c=o?e[o]:e[n+"End"],l=e[n+"Start"];!l||!c||Bl(t,{op:"browser",description:r??n,startTimestamp:a+d4(l),endTimestamp:a+d4(c)})}function K00(t,e,n){Bl(t,{op:"browser",description:"request",startTimestamp:n+d4(e.requestStart),endTimestamp:n+d4(e.responseEnd)}),Bl(t,{op:"browser",description:"response",startTimestamp:n+d4(e.responseStart),endTimestamp:n+d4(e.responseEnd)})}function Bl(t,e){var n=e.startTimestamp,a=h10(e,["startTimestamp"]);return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild(K1({startTimestamp:n},a))}function Qd(t){return typeof t=="number"&&isFinite(t)}function Y00(t,e,n){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)),n&&n.sources&&(w2&&Bt.log("[Measurements] Adding CLS Data"),n.sources.forEach(function(a,r){return t.setTag("cls.source."+(r+1),ih(a.node))}))}var Z00=["localhost",/^\//],Cp={traceFetch:!0,traceXHR:!0,tracingOrigins:Z00};function Q00(t){var e=K1(K1({},Cp),t),n=e.traceFetch,a=e.traceXHR,r=e.tracingOrigins,o=e.shouldCreateSpanForRequest,c={},l=function(u){if(c[u])return c[u];var v=r;return c[u]=v.some(function(f){return oh(u,f)})&&!oh(u,"sentry_key"),c[u]},h=l;typeof o=="function"&&(h=function(u){return l(u)&&o(u)});var s={};n&&ea("fetch",function(u){X00(u,h,s)}),a&&ea("xhr",function(u){J00(u,h,s)})}function X00(t,e,n){if(!(!OO()||!(t.fetchData&&e(t.fetchData.url)))){if(t.endTimestamp){var a=t.fetchData.__span;if(!a)return;var r=n[a];r&&(t.response?r.setHttpStatus(t.response.status):t.error&&r.setStatus("internal_error"),r.finish(),delete n[a]);return}var o=DM();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,n[r.spanId]=r;var c=t.args[0]=t.args[0],l=t.args[1]=t.args[1]||{},h=l.headers;O5(c,Request)&&(h=c.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()},l.headers=h}}}function J00(t,e,n){if(!(!OO()||t.xhr&&t.xhr.__sentry_own_request__||!(t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)))){var a=t.xhr.__sentry_xhr__;if(t.endTimestamp){var r=t.xhr.__sentry_xhr_span_id__;if(!r)return;var o=n[r];o&&(o.setHttpStatus(a.status_code),o.finish(),delete n[r]);return}var c=DM();if(c){var o=c.startChild({data:K1(K1({},a.data),{type:"xhr",method:a.method,url:a.url}),description:a.method+" "+a.url,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=o.spanId,n[t.xhr.__sentry_xhr_span_id__]=o,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",o.toTraceparent())}catch{}}}}var m7=g0();function te0(t,e,n){if(e===void 0&&(e=!0),n===void 0&&(n=!0),!m7||!m7.location){w2&&Bt.warn("Could not initialize routing instrumentation due to invalid location");return}var a=m7.location.href,r;e&&(r=t({name:m7.location.pathname,op:"pageload"})),n&&ea("history",function(o){var c=o.to,l=o.from;if(l===void 0&&a&&a.indexOf(c)!==-1){a=void 0;return}l!==c&&(a=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 ee0=600,ne0=K1({idleTimeout:ie1,markBackgroundTransactions:!0,maxTransactionDuration:ee0,routingInstrumentation:te0,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},Cp),ae0=function(){function t(e){this.name=t.id,this._configuredIdleTimeout=void 0;var n=Cp.tracingOrigins;e&&(this._configuredIdleTimeout=e.idleTimeout,e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&e.tracingOrigins.length!==0?n=e.tracingOrigins:w2&&(this._emitOptionsWarning=!0)),this.options=K1(K1(K1({},ne0),e),{tracingOrigins:n});var a=this.options._metricOptions;this._metrics=new U00(a&&a._reportAllChanges)}return t.prototype.setupOnce=function(e,n){var a=this;this._getCurrentHub=n,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,c=r.startTransactionOnLocationChange,l=r.startTransactionOnPageLoad,h=r.markBackgroundTransactions,s=r.traceFetch,u=r.traceXHR,v=r.tracingOrigins,f=r.shouldCreateSpanForRequest;o(function(d){return a._createRouteTransaction(d)},l,c),h&&N00(),Q00({traceFetch:s,traceXHR:u,tracingOrigins:v,shouldCreateSpanForRequest:f})},t.prototype._createRouteTransaction=function(e){var n=this;if(!this._getCurrentHub){w2&&Bt.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.");return}var a=this.options,r=a.beforeNavigate,o=a.idleTimeout,c=a.maxTransactionDuration,l=e.op==="pageload"?re0():void 0,h=K1(K1(K1({},e),l),{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=A00(v,u,o,!0,{location:f});return d.registerBeforeFinishCallback(function(M,g){n._metrics.addPerformanceEntries(M),oe0(x00(c),M,g)}),d.setTag("idleTimeout",this._configuredIdleTimeout),d},t.id="BrowserTracing",t}();function re0(){var t=ie0("sentry-trace");if(t)return ct0(t)}function ie0(t){var e=g0().document.querySelector("meta[name="+t+"]");return e?e.getAttribute("content"):null}function oe0(t,e,n){var a=n-e.startTimestamp,r=n&&(a>t||a<0);r&&(e.setStatus("deadline_exceeded"),e.setTag("maxTransactionDurationExceeded","true"))}P00();const MU=window.VITE_APP_SENTRYDSN||"https://1abed5b3f95e41be8e1c39c33af12506@sentry.etd24.pl/96";function ce0(){return MU&&window.location.hostname.indexOf("localhost")===-1&&t00({dsn:MU,integrations:[new ae0],tracesSampleRate:1}),null}ce0();const HU=window.VITE_APP_API_URL||"https://api-stage.escolalms.com";w00.load({google:{families:["Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700;1,800"]}});$V.createRoot(document.getElementById("root")).render($.jsx(W1.StrictMode,{children:HU?$.jsx(il.EscolaLMSContextProvider,{apiUrl:HU,initialFetch:!1,children:$.jsx(we.GlobalThemeProvider,{children:$.jsx(M00,{})})}):$.jsx("pre",{children:"error `process.env.VITE_APP_PUBLIC_API_URL || window.VITE_APP_API_URL` not set"})}));export{Ke1 as $,Q0 as A,gZ as B,g01 as C,y4 as D,se0 as E,LS as F,kB1 as G,Te0 as H,WL as I,Qm as J,Ge0 as K,pf as L,H01 as M,je0 as N,Ie0 as O,ut as P,We0 as Q,x8 as R,Sh as S,Un as T,$e0 as U,zJ2 as V,m40 as W,NS as X,gA1 as Y,aX2 as Z,Zt as _,F8 as a,dJ2 as a$,GK as a0,Re0 as a1,X2 as a2,ye as a3,yn as a4,_t as a5,Pt as a6,gJ as a7,zh as a8,C6 as a9,Pe0 as aA,Ne0 as aB,Qe0 as aC,De0 as aD,H40 as aE,BJ as aF,g91 as aG,we as aH,z6 as aI,SJ2 as aJ,ve0 as aK,de0 as aL,c_1 as aM,pJ as aN,XY as aO,rY2 as aP,a40 as aQ,n40 as aR,Je0 as aS,Xe0 as aT,t40 as aU,e40 as aV,cY2 as aW,ke0 as aX,z40 as aY,Ae0 as aZ,M40 as a_,js as aa,Ph as ab,Om as ac,JS1 as ad,HU as ae,ud1 as af,Rs as ag,gd1 as ah,pr as ai,Ue0 as aj,_L1 as ak,S_1 as al,B_1 as am,Tm as an,y11 as ao,HB1 as ap,p40 as aq,Fe0 as ar,Ze0 as as,Ye0 as at,Oe0 as au,xY as av,ej1 as aw,fe0 as ax,_e0 as ay,Ee0 as az,W1 as b,O$ as b$,g40 as b0,f40 as b1,C_1 as b2,r40 as b3,o40 as b4,c40 as b5,oO1 as b6,E2 as b7,Yh as b8,z11 as b9,rE1 as bA,gM as bB,rk1 as bC,A1 as bD,fl as bE,Dk1 as bF,Fk1 as bG,Uk1 as bH,Za as bI,dM as bJ,DT as bK,Xs as bL,k11 as bM,T11 as bN,O11 as bO,Oh as bP,gO1 as bQ,SA1 as bR,PT as bS,l11 as bT,y5 as bU,cp as bV,ls as bW,XJ as bX,QJ as bY,CT as bZ,k$ as b_,fO1 as ba,fM as bb,XT1 as bc,d11 as bd,m11 as be,C5 as bf,FT as bg,$k1 as bh,pL as bi,oM as bj,N11 as bk,nE1 as bl,LT as bm,qT1 as bn,QT1 as bo,gl as bp,bT as bq,Gk1 as br,iE1 as bs,ZJ as bt,xi as bu,ET as bv,KK as bw,L11 as bx,kk1 as by,eO1 as bz,se as c,ge0 as c0,d40 as c1,v40 as c2,u40 as c3,h40 as c4,s40 as c5,KB1 as c6,l40 as c7,t_ as c8,n0 as c9,i40 as cA,Zs as cB,qe0 as cC,Pe as ca,Xh as cb,Qz as cc,Ke0 as cd,pE1 as ce,x2 as cf,or1 as cg,a0 as ch,Pi as ci,Ps1 as cj,t9 as ck,he0 as cl,le0 as cm,aL1 as cn,w0 as co,jJ as cp,bS1 as cq,ad1 as cr,PL1 as cs,js1 as ct,zJ as cu,L_1 as cv,qK as cw,tO as cx,D9 as cy,ZS as cz,b as d,ue0 as e,r9 as f,G0 as g,il as h,nc1 as i,$ as j,KG as k,c0 as l,bc as m,Oa as n,LJ2 as o,tj1 as p,zn as q,S as r,P0 as s,XS as t,IK as u,Te as v,V5 as w,f_ as x,kn as y,JR1 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:{ThankYou:"Dziękujemy za wystawienie oceny",ThankYouMessage:"Twoja ocena została zapisana",OptionalComment:"Tutaj możesz napisać komentarz lub zostawić opinię (nieobowiązkowe)",SendAnswer:"Prześlij odpowiedź",NoAnswer:"Nie chcę odpowiadać"},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"}}}};tn.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 OO(t){var e=Ke().getClient(),n=t||e&&e.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function DM(t){var e=t||Ke(),n=e.getScope();return n&&n.getTransaction()}function d4(t){return t/1e3}function V00(t){return t*1e3}function C00(){ea("error",mU),ea("unhandledrejection",mU)}function mU(){var t=DM();if(t){var e="internal_error";w2&&Bt.log("[Tracing] Transaction: "+e+" -> Global error occured"),t.setStatus(e)}}var eB="finishReason",nB=["heartbeatFailed","idleTimeout","documentHidden"],ie1=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=ao(),this.spanId=ao().substring(16),this.startTimestamp=ic(),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 n=new t(K1(K1({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},t.prototype.setTag=function(e,n){var a;return this.tags=K1(K1({},this.tags),(a={},a[e]=n,a)),this},t.prototype.setData=function(e,n){var a;return this.data=K1(K1({},this.data),(a={},a[e]=n,a)),this},t.prototype.setStatus=function(e){return this.status=e,this},t.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var n=L00(e);return n!=="unknown_error"&&this.setStatus(n),this},t.prototype.isSuccess=function(){return this.status==="ok"},t.prototype.finish=function(e){this.endTimestamp=typeof e=="number"?e:ic()},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 n,a,r,o,c;return this.data=(n=e.data,n??{}),this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=(a=e.spanId,a??this.spanId),this.startTimestamp=(r=e.startTimestamp,r??this.startTimestamp),this.status=e.status,this.tags=(o=e.tags,o??{}),this.traceId=(c=e.traceId,c??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 oe1=function(t){$5(e,t);function e(n,a){var r=t.call(this,n)||this;return r._measurements={},r._hub=Ke(),Ti(a,PM)&&(r._hub=a),r.name=n.name||"",r.metadata=n.metadata||{},r._trimEnd=n.trimEnd,r.transaction=r,r}return e.prototype.setName=function(n){this.name=n},e.prototype.initSpanRecorder=function(n){n===void 0&&(n=1e3),this.spanRecorder||(this.spanRecorder=new ie1(n)),this.spanRecorder.add(this)},e.prototype.setMeasurements=function(n){this._measurements=K1({},n)},e.prototype.setMetadata=function(n){this.metadata=K1(K1({},this.metadata),n)},e.prototype.finish=function(n){var a=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,n),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 c=this.spanRecorder?this.spanRecorder.spans.filter(function(s){return s!==a&&s.endTimestamp}):[];this._trimEnd&&c.length>0&&(this.endTimestamp=c.reduce(function(s,u){return s.endTimestamp&&u.endTimestamp?s.endTimestamp>u.endTimestamp?s:u:s}).endTimestamp);var l={contexts:{trace:this.getTraceContext()},spans:c,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)),l.measurements=this._measurements),w2&&Bt.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(l)}},e.prototype.toContext=function(){var n=t.prototype.toContext.call(this);return N8(K1(K1({},n),{name:this.name,trimEnd:this._trimEnd}))},e.prototype.updateWithContext=function(n){var a;return t.prototype.updateWithContext.call(this,n),this.name=(a=n.name,a??""),this._trimEnd=n.trimEnd,this},e}(b00),ce1=1e3,B00=5e3,_00=function(t){$5(e,t);function e(n,a,r,o){r===void 0&&(r="");var c=t.call(this,o)||this;return c._pushActivity=n,c._popActivity=a,c.transactionSpanId=r,c}return e.prototype.add=function(n){var a=this;n.spanId!==this.transactionSpanId&&(n.finish=function(r){n.endTimestamp=typeof r=="number"?r:ic(),a._popActivity(n.spanId)},n.endTimestamp===void 0&&this._pushActivity(n.spanId)),t.prototype.add.call(this,n)},e}(ie1),S00=function(t){$5(e,t);function e(n,a,r,o){r===void 0&&(r=ce1),o===void 0&&(o=!1);var c=t.call(this,n,a)||this;return c._idleHub=a,c._idleTimeout=r,c._onScope=o,c.activities={},c._heartbeatCounter=0,c._finished=!1,c._beforeFinishCallbacks=[],a&&o&&(zU(a),w2&&Bt.log("Setting idle transaction on scope. Span ID: "+c.spanId),a.configureScope(function(l){return l.setSpan(c)})),c._initTimeout=setTimeout(function(){c._finished||c.finish()},c._idleTimeout),c}return e.prototype.finish=function(n){var a,r,o=this;if(n===void 0&&(n=ic()),this._finished=!0,this.activities={},this.spanRecorder){w2&&Bt.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);try{for(var c=zo(this._beforeFinishCallbacks),l=c.next();!l.done;l=c.next()){var h=l.value;h(this,n)}}catch(s){a={error:s}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(a)throw a.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter(function(s){if(s.spanId===o.spanId)return!0;s.endTimestamp||(s.endTimestamp=n,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,nB[0]),this.finish()):this._pingHeartbeat()}},e.prototype._pingHeartbeat=function(){var n=this;w2&&Bt.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout(function(){n._beat()},B00)},e}(oe1);function zU(t){if(t){var e=t.getScope();if(e){var n=e.getTransaction();n&&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 le1(t,e,n){if(!OO(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setMetadata({transactionSampling:{method:"explicitly_set"}}),t;var a;return typeof e.tracesSampler=="function"?(a=e.tracesSampler(n),t.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(a)}})):n.parentSampled!==void 0?(a=n.parentSampled,t.setMetadata({transactionSampling:{method:"inheritance"}})):(a=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:"client_rate",rate:Number(a)}})),O00(a)?a?(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 n=this.getClient(),a=n&&n.getOptions()||{},r=new oe1(t,this);return r=le1(r,a,K1({parentSampled:t.parentSampled,transactionContext:t},e)),r.sampled&&r.initSpanRecorder(a._experiments&&a._experiments.maxSpans),r}function k00(t,e,n,a,r){var o=t.getClient(),c=o&&o.getOptions()||{},l=new S00(e,t,n,a);return l=le1(l,c,K1({parentSampled:e.parentSampled,transactionContext:e},r)),l.sampled&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),l}function E00(){var t=c9();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=c9();if(t.__SENTRY__){var e={mongodb:function(){var a=F3(module,"./integrations/node/mongo");return new a.Mongo},mongoose:function(){var a=F3(module,"./integrations/node/mongo");return new a.Mongo({mongoose:!0})},mysql:function(){var a=F3(module,"./integrations/node/mysql");return new a.Mysql},pg:function(){var a=F3(module,"./integrations/node/postgres");return new a.Postgres}},n=Object.keys(e).filter(function(a){return!!f10(a)}).map(function(a){try{return e[a]()}catch{return}}).filter(function(a){return a});n.length>0&&(t.__SENTRY__.integrations=Be(t.__SENTRY__.integrations||[],n))}}function N00(){E00(),lu()&&P00(),C00()}var Yd=g0();function D00(){Yd&&Yd.document?Yd.document.addEventListener("visibilitychange",function(){var t=DM();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,nB[2]),t.finish()}}):w2&&Bt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var AO=function(t,e,n){var a;return function(r){e.value>=0&&(r||n)&&(e.delta=e.value-(a||0),(e.delta||a===void 0)&&(a=e.value,t(e)))}},R00=function(){return"v2-"+Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12)},kO=function(t,e){return{name:t,value:e??-1,delta:0,entries:[],id:R00()}},EO=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if(t==="first-input"&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver(function(a){return a.getEntries().map(e)});return n.observe({type:t,buffered:!0}),n}}catch{}},RM=function(t,e){var n=function(a){(a.type==="pagehide"||g0().document.visibilityState==="hidden")&&(t(a),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},j00=function(t,e){var n=kO("CLS",0),a,r=0,o=[],c=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>n.value&&(n.value=r,n.entries=o,a&&a())}},l=EO("layout-shift",c);l&&(a=AO(t,n,e),RM(function(){l.takeRecords().map(c),a(!0)}))},Df=-1,I00=function(){return g0().document.visibilityState==="hidden"?0:1/0},F00=function(){RM(function(t){var e=t.timeStamp;Df=e},!0)},PO=function(){return Df<0&&(Df=I00(),F00()),{get firstHiddenTime(){return Df}}},$00=function(t,e){var n=PO(),a=kO("FID"),r,o=function(l){r&&l.startTime=e.startTimestamp)){var h=n._measurements[l].value,s=c+d4(h),u=Math.abs((s-e.startTimestamp)*1e3),v=u-h;w2&&Bt.log("[Measurements] Normalized "+l+" from "+h+" to "+u+" ("+v+")"),n._measurements[l].value=u}}),this._measurements["mark.fid"]&&this._measurements.fid&&B6(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+d4(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 n=dr.navigator;if(n){var a=n.connection;a&&(a.effectiveType&&e.setTag("effectiveConnectionType",a.effectiveType),a.type&&e.setTag("connectionType",a.type),Qd(a.rtt)&&(this._measurements["connection.rtt"]={value:a.rtt}),Qd(a.downlink)&&(this._measurements["connection.downlink"]={value:a.downlink})),Qd(n.deviceMemory)&&e.setTag("deviceMemory",String(n.deviceMemory)),Qd(n.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(n.hardwareConcurrency))}},t.prototype._trackCLS=function(){var e=this;j00(function(n){var a=n.entries.pop();a&&(w2&&Bt.log("[Measurements] Adding CLS"),e._measurements.cls={value:n.value},e._clsEntry=a)})},t.prototype._trackLCP=function(){var e=this;U00(function(n){var a=n.entries.pop();if(a){var r=d4(p7),o=d4(a.startTime);w2&&Bt.log("[Measurements] Adding LCP"),e._measurements.lcp={value:n.value},e._measurements["mark.lcp"]={value:r+o},e._lcpEntry=a}},this._reportAllChanges)},t.prototype._trackFID=function(){var e=this;$00(function(n){var a=n.entries.pop();if(a){var r=d4(p7),o=d4(a.startTime);w2&&Bt.log("[Measurements] Adding FID"),e._measurements.fid={value:n.value},e._measurements["mark.fid"]={value:r+o}}})},t}();function q00(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(function(a){Zd(t,e,a,n)}),Zd(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),Zd(t,e,"fetch",n,"cache","domainLookupStart"),Zd(t,e,"domainLookup",n,"DNS"),Y00(t,e,n)}function G00(t,e,n,a,r){var o=r+n,c=o+a;return B6(t,{description:e.name,endTimestamp:c,op:e.entryType,startTimestamp:o}),o}function K00(t,e,n,a,r,o){if(!(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")){var c={};"transferSize"in e&&(c["Transfer Size"]=e.transferSize),"encodedBodySize"in e&&(c["Encoded Body Size"]=e.encodedBodySize),"decodedBodySize"in e&&(c["Decoded Body Size"]=e.decodedBodySize);var l=o+a,h=l+r;B6(t,{description:n,endTimestamp:h,op:e.initiatorType?"resource."+e.initiatorType:"resource",startTimestamp:l,data:c})}}function Zd(t,e,n,a,r,o){var c=o?e[o]:e[n+"End"],l=e[n+"Start"];!l||!c||B6(t,{op:"browser",description:r??n,startTimestamp:a+d4(l),endTimestamp:a+d4(c)})}function Y00(t,e,n){B6(t,{op:"browser",description:"request",startTimestamp:n+d4(e.requestStart),endTimestamp:n+d4(e.responseEnd)}),B6(t,{op:"browser",description:"response",startTimestamp:n+d4(e.responseStart),endTimestamp:n+d4(e.responseEnd)})}function B6(t,e){var n=e.startTimestamp,a=u10(e,["startTimestamp"]);return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild(K1({startTimestamp:n},a))}function Qd(t){return typeof t=="number"&&isFinite(t)}function Z00(t,e,n){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)),n&&n.sources&&(w2&&Bt.log("[Measurements] Adding CLS Data"),n.sources.forEach(function(a,r){return t.setTag("cls.source."+(r+1),ih(a.node))}))}var Q00=["localhost",/^\//],Cp={traceFetch:!0,traceXHR:!0,tracingOrigins:Q00};function X00(t){var e=K1(K1({},Cp),t),n=e.traceFetch,a=e.traceXHR,r=e.tracingOrigins,o=e.shouldCreateSpanForRequest,c={},l=function(u){if(c[u])return c[u];var v=r;return c[u]=v.some(function(f){return oh(u,f)})&&!oh(u,"sentry_key"),c[u]},h=l;typeof o=="function"&&(h=function(u){return l(u)&&o(u)});var s={};n&&ea("fetch",function(u){J00(u,h,s)}),a&&ea("xhr",function(u){te0(u,h,s)})}function J00(t,e,n){if(!(!OO()||!(t.fetchData&&e(t.fetchData.url)))){if(t.endTimestamp){var a=t.fetchData.__span;if(!a)return;var r=n[a];r&&(t.response?r.setHttpStatus(t.response.status):t.error&&r.setStatus("internal_error"),r.finish(),delete n[a]);return}var o=DM();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,n[r.spanId]=r;var c=t.args[0]=t.args[0],l=t.args[1]=t.args[1]||{},h=l.headers;Ti(c,Request)&&(h=c.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()},l.headers=h}}}function te0(t,e,n){if(!(!OO()||t.xhr&&t.xhr.__sentry_own_request__||!(t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)))){var a=t.xhr.__sentry_xhr__;if(t.endTimestamp){var r=t.xhr.__sentry_xhr_span_id__;if(!r)return;var o=n[r];o&&(o.setHttpStatus(a.status_code),o.finish(),delete n[r]);return}var c=DM();if(c){var o=c.startChild({data:K1(K1({},a.data),{type:"xhr",method:a.method,url:a.url}),description:a.method+" "+a.url,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=o.spanId,n[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,n){if(e===void 0&&(e=!0),n===void 0&&(n=!0),!m7||!m7.location){w2&&Bt.warn("Could not initialize routing instrumentation due to invalid location");return}var a=m7.location.href,r;e&&(r=t({name:m7.location.pathname,op:"pageload"})),n&&ea("history",function(o){var c=o.to,l=o.from;if(l===void 0&&a&&a.indexOf(c)!==-1){a=void 0;return}l!==c&&(a=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 ne0=600,ae0=K1({idleTimeout:ce1,markBackgroundTransactions:!0,maxTransactionDuration:ne0,routingInstrumentation:ee0,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},Cp),re0=function(){function t(e){this.name=t.id,this._configuredIdleTimeout=void 0;var n=Cp.tracingOrigins;e&&(this._configuredIdleTimeout=e.idleTimeout,e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&e.tracingOrigins.length!==0?n=e.tracingOrigins:w2&&(this._emitOptionsWarning=!0)),this.options=K1(K1(K1({},ae0),e),{tracingOrigins:n});var a=this.options._metricOptions;this._metrics=new W00(a&&a._reportAllChanges)}return t.prototype.setupOnce=function(e,n){var a=this;this._getCurrentHub=n,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,c=r.startTransactionOnLocationChange,l=r.startTransactionOnPageLoad,h=r.markBackgroundTransactions,s=r.traceFetch,u=r.traceXHR,v=r.tracingOrigins,f=r.shouldCreateSpanForRequest;o(function(d){return a._createRouteTransaction(d)},l,c),h&&D00(),X00({traceFetch:s,traceXHR:u,tracingOrigins:v,shouldCreateSpanForRequest:f})},t.prototype._createRouteTransaction=function(e){var n=this;if(!this._getCurrentHub){w2&&Bt.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.");return}var a=this.options,r=a.beforeNavigate,o=a.idleTimeout,c=a.maxTransactionDuration,l=e.op==="pageload"?ie0():void 0,h=K1(K1(K1({},e),l),{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(z,g){n._metrics.addPerformanceEntries(z),ce0(V00(c),z,g)}),d.setTag("idleTimeout",this._configuredIdleTimeout),d},t.id="BrowserTracing",t}();function ie0(){var t=oe0("sentry-trace");if(t)return lt0(t)}function oe0(t){var e=g0().document.querySelector("meta[name="+t+"]");return e?e.getAttribute("content"):null}function ce0(t,e,n){var a=n-e.startTimestamp,r=n&&(a>t||a<0);r&&(e.setStatus("deadline_exceeded"),e.setTag("maxTransactionDurationExceeded","true"))}N00();const HU=window.VITE_APP_SENTRYDSN||"https://1abed5b3f95e41be8e1c39c33af12506@sentry.etd24.pl/96";function le0(){return HU&&window.location.hostname.indexOf("localhost")===-1&&e00({dsn:HU,integrations:[new re0],tracesSampleRate:1}),null}le0();const wU=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"]}});$V.createRoot(document.getElementById("root")).render($.jsx(W1.StrictMode,{children:wU?$.jsx(i6.EscolaLMSContextProvider,{apiUrl:wU,initialFetch:!1,children:$.jsx(we.GlobalThemeProvider,{children:$.jsx(H00,{})})}):$.jsx("pre",{children:"error `process.env.VITE_APP_PUBLIC_API_URL || window.VITE_APP_API_URL` not set"})}));export{Ze1 as $,Q0 as A,pZ as B,m01 as C,y4 as D,he0 as E,L_ as F,PB1 as G,Oe0 as H,WL as I,Qm as J,Ke0 as K,pf as L,y01 as M,Ie0 as N,Fe0 as O,ut as P,qe0 as Q,V8 as R,_h as S,Un as T,Ue0 as U,MJ2 as V,z40 as W,N_ as X,pA1 as Y,rX2 as Z,Zt as _,$8 as a,fJ2 as a$,KK as a0,je0 as a1,X2 as a2,ye as a3,yn as a4,St as a5,Pt as a6,pJ as a7,zh as a8,bc as a9,Ne0 as aA,De0 as aB,Xe0 as aC,Re0 as aD,w40 as aE,SJ as aF,m91 as aG,we as aH,Mc as aI,SJ2 as aJ,de0 as aK,fe0 as aL,lS1 as aM,mJ as aN,JY as aO,iY2 as aP,r40 as aQ,a40 as aR,t40 as aS,Je0 as aT,e40 as aU,n40 as aV,lY2 as aW,Ee0 as aX,M40 as aY,ke0 as aZ,H40 as a_,js as aa,Ph as ab,Om as ac,tS1 as ad,wU as ae,dd1 as af,Rs as ag,md1 as ah,pr as ai,We0 as aj,OL1 as ak,SS1 as al,_S1 as am,Tm as an,V11 as ao,yB1 as ap,m40 as aq,$e0 as ar,Qe0 as as,Ze0 as at,Ae0 as au,VY as av,nj1 as aw,ge0 as ax,Te0 as ay,Pe0 as az,W1 as b,A$ as b$,p40 as b0,g40 as b1,bS1 as b2,i40 as b3,c40 as b4,l40 as b5,cO1 as b6,E2 as b7,Yh as b8,H11 as b9,iE1 as bA,gM as bB,ik1 as bC,A1 as bD,f6 as bE,Rk1 as bF,$k1 as bG,Wk1 as bH,Za as bI,dM as bJ,DT as bK,Xs as bL,P11 as bM,A11 as bN,k11 as bO,Oh as bP,pO1 as bQ,SA1 as bR,PT as bS,h11 as bT,wi as bU,cp as bV,ls as bW,t11 as bX,JJ as bY,CT as bZ,E$ as b_,gO1 as ba,fM as bb,JT1 as bc,g11 as bd,M11 as be,Vi as bf,FT as bg,Uk1 as bh,pL as bi,oM as bj,R11 as bk,aE1 as bl,LT as bm,GT1 as bn,XT1 as bo,g6 as bp,bT as bq,Kk1 as br,oE1 as bs,XJ as bt,y5 as bu,ET as bv,YK as bw,_11 as bx,Ek1 as by,nO1 as bz,se as c,pe0 as c0,f40 as c1,d40 as c2,v40 as c3,u40 as c4,h40 as c5,ZB1 as c6,s40 as c7,tS as c8,n0 as c9,o40 as cA,Zs as cB,Ge0 as cC,Pe as ca,Xh as cb,Qz as cc,Ye0 as cd,mE1 as ce,x2 as cf,lr1 as cg,a0 as ch,E5 as ci,Ds1 as cj,t9 as ck,ue0 as cl,se0 as cm,iL1 as cn,w0 as co,FJ as cp,B_1 as cq,id1 as cr,DL1 as cs,Fs1 as ct,HJ as cu,BS1 as cv,GK as cw,tO as cx,D9 as cy,Z_ as cz,b as d,ve0 as e,r9 as f,G0 as g,i6 as h,rl1 as i,$ as j,YG as k,c0 as l,bl as m,Oa as n,BJ2 as o,ej1 as p,zn as q,_ as r,P0 as s,X_ as t,FK as u,Te as v,xi as w,fS as x,kn as y,tj1 as z}; diff --git a/assets/index-fAJu7lSC.js b/assets/index-rz9bDXuD.js similarity index 94% rename from assets/index-fAJu7lSC.js rename to assets/index-rz9bDXuD.js index b11890e7..2c26d597 100644 --- a/assets/index-fAJu7lSC.js +++ b/assets/index-rz9bDXuD.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-BwDDCa5l.js";import{a as u,S as h}from"./swiper-react-CNMkIwij.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-rgMY50iO.js";import{a as u,S as h}from"./swiper-react-Blj9s0vN.js";const j=c.section` overflow: hidden; @media (max-width: 768px) { diff --git a/assets/index-8-K2S57r.js b/assets/index-tPRLCCZ4.js similarity index 94% rename from assets/index-8-K2S57r.js rename to assets/index-tPRLCCZ4.js index 358bda7b..bf7e26da 100644 --- a/assets/index-8-K2S57r.js +++ b/assets/index-tPRLCCZ4.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-BwDDCa5l.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-rgMY50iO.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-C-t40R0k.js b/assets/index-w9LHPXnG.js similarity index 89% rename from assets/index-C-t40R0k.js rename to assets/index-w9LHPXnG.js index 32438c84..dcf588a3 100644 --- a/assets/index-C-t40R0k.js +++ b/assets/index-w9LHPXnG.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-BwDDCa5l.js";import{C as E}from"./index-fAJu7lSC.js";import{C as M}from"./index-BmZ8nj8k.js";import{F as Q,S as _}from"./index-D0XhAO3h.js";import{u}from"./useSearchParams-CMraK1kM.js";import{C as $}from"./index-DAvBbJIi.js";import{P as k}from"./index-BeRNFxkO.js";import"./swiper-react-CNMkIwij.js";import"./base-C7euzKDi.js";import"./warning-BmYsiiaZ.js";import"./index-2DzzTf_1.js";import"./ResponsiveImage-BfAhZdZG.js";import"./index-tZXKSMhE.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-rgMY50iO.js";import{C as E}from"./index-rz9bDXuD.js";import{C as M}from"./index-CkOeZPQt.js";import{F as Q,S as _}from"./index-BGsfKgJX.js";import{u}from"./useSearchParams-CmF5uHDk.js";import{C as $}from"./index-CUV7LPfP.js";import{P as k}from"./index-Bj_4LO6E.js";import"./swiper-react-Blj9s0vN.js";import"./base-C7euzKDi.js";import"./warning-KJqa50Ry.js";import"./index-jvuyDq2a.js";import"./ResponsiveImage-Dhino3nz.js";import"./index-DEYhe5OT.js";const B=j("div")` display: flex; row-gap: 30px; flex-wrap: wrap; diff --git a/assets/my-certificates-4r3nUmSb.js b/assets/my-certificates-4r3nUmSb.js deleted file mode 100644 index 7b241569..00000000 --- a/assets/my-certificates-4r3nUmSb.js +++ /dev/null @@ -1,65 +0,0 @@ -import{d as s,a5 as C,a6 as w,j as e,q as h,r as j,D as N,f as v,X as P,s as p,T,S as O,cC as k}from"./index-BwDDCa5l.js";import{P as M}from"./index-CntMwbrZ.js";import{u as S}from"./useDownloadCertificate-S0p9VWMq.js";import"./index-C-knIOix.js";var x={},D=s&&s.__makeTemplateObject||function(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t},u=s&&s.__assign||function(){return u=Object.assign||function(t){for(var n,a=1,o=arguments.length;a div:first-child { - padding-right: 30px; - } - - .subtitle { - opacity: 0.8; - } -`],[` - border-left: 3px solid `,`; - padding: 20px; - display: flex; - position: relative; - width: 100%; - box-sizing: border-box; - justify-content: space-between; - align-items: center; - margin-bottom: 10px; - border-radius: `,`px; - background: `,`; - > div:first-child { - padding-right: 30px; - } - - .subtitle { - opacity: 0.8; - } -`])),function(t){return t.color?t.color:"#F2C94C"},function(t){return t.theme.cardRadius},function(t){var n=t.theme;return(0,L.getStylesBasedOnTheme)(n.mode,n.dm__cardBackgroundColor,n.cardBackgroundColor)}),q=function(t){var n=t.title,a=t.subtitle,o=t.color,i=t.actions,c=t.className,d=c===void 0?"":c;return(0,l.jsxs)($,u({className:"wellms-component ".concat(d),color:o},{children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{children:n}),a&&(0,l.jsx)("div",u({className:"subtitle"},{children:a}))]}),(0,l.jsx)("div",{children:i})]}))};_=x.NoteAction=q;var y;const z=h.section` - .empty-certificates-message { - background: ${({theme:t})=>t.mode==="dark"?t.gray1:t.gray5}; - } - .buttons-container { - display: flex; - column-gap: 60px; - align-items: center; - justify-content: flex-end; - - .download-btn { - appearance: none; - outline: none; - border: none; - cursor: pointer; - background: transparent; - display: flex; - align-items: center; - justify-content: flex-start; - column-gap: 10px; - color: ${({theme:t})=>t.mode==="dark"?t.white:t.gray1}; - } - } -`,B=()=>{var d,f,m,g,b;const{certificates:t,fetchCertificates:n}=j.useContext(N.EscolaLMSContext),{t:a}=v(),o=P(),{downloadCertificate:i,loadingId:c}=S();return j.useEffect(()=>{n()},[n]),e.jsx(e.Fragment,{children:e.jsxs(z,{children:[((d=t.list)==null?void 0:d.data.length)===0&&e.jsx(p.Text,{className:"empty-certificates-message",children:e.jsx("strong",{children:a("MyProfilePage.EmptyCertificates")})}),t&&((f=t==null?void 0:t.list)==null?void 0:f.data)&&((m=t.list)==null?void 0:m.data.length)>0&&((b=(g=t==null?void 0:t.list)==null?void 0:g.data)==null?void 0:b.filter(r=>r.title).map(r=>e.jsx(_,{color:o.primaryColor,title:e.jsx(T.Title,{level:4,as:"h3",children:r.title}),subtitle:e.jsx(p.Text,{noMargin:!0,size:"12",children:new Date(r.created_at).toLocaleDateString("pl-PL")}),actions:e.jsx("div",{className:"buttons-container",children:c===r.id?e.jsx(O.Spin,{color:o.primaryColor}):e.jsxs("button",{className:"download-btn",onClick:()=>i(r.id,r.title),children:[e.jsx(k,{})," ",e.jsx(p.Text,{children:"(.pdf)"})]})})})))]})})},F=h.div` - margin-top: 20px; - max-width: 450px; -`,W=()=>{const{t}=v();return e.jsx(M,{title:t("MyProfilePage.MyCertificates"),children:e.jsx(F,{children:e.jsx(B,{})})})};export{W as default}; diff --git a/assets/my-certificates-Ctxd4pRk.js b/assets/my-certificates-Ctxd4pRk.js new file mode 100644 index 00000000..3a8c2654 --- /dev/null +++ b/assets/my-certificates-Ctxd4pRk.js @@ -0,0 +1,29 @@ +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,cC as P}from"./index-rgMY50iO.js";import{P as b}from"./index-CQyhdORL.js";import{u as T}from"./useDownloadCertificate-DzTKNXCG.js";import"./index-Cx5QnA0M.js";const w=f.section` + .empty-certificates-message { + background: ${({theme:e})=>e.mode==="dark"?e.gray1:e.gray5}; + } + .buttons-container { + margin-top: 20px; + display: flex; + + align-items: center; + justify-content: flex-start; + + .download-btn { + all: unset; + display: flex; + align-items: center; + gap: 6px; + cursor: pointer; + color: ${({theme:e})=>e.primaryColor}; + p { + color: ${({theme:e})=>e.primaryColor}; + } + } + } + .certificate-card { + margin-bottom: 24px; + } +`,D=()=>{var o,l,n,c,d;const{certificates:e,fetchCertificates:r}=x.useContext(C.EscolaLMSContext),{t:a}=m(),{downloadCertificate:u,loadingId:g}=T();return x.useEffect(()=>{r()},[r]),t.jsx(t.Fragment,{children:t.jsxs(w,{children:[((o=e.list)==null?void 0:o.data.length)===0&&t.jsx(s.Text,{className:"empty-certificates-message",children:t.jsx("strong",{children:a("MyProfilePage.EmptyCertificates")})}),t.jsx(p.Row,{children:e&&((l=e==null?void 0:e.list)==null?void 0:l.data)&&((n=e.list)==null?void 0:n.data.length)>0&&((d=(c=e==null?void 0:e.list)==null?void 0:c.data)==null?void 0:d.filter(i=>i.title).map(i=>t.jsx(p.Col,{lg:4,children:t.jsx(j.CertificateCard,{uptitle:t.jsx(s.Text,{size:"13",children:a("CoursePage.CourseTitle")}),title:t.jsx(h.Title,{level:4,as:"h3",children:i.title}),dateUptitle:t.jsx(s.Text,{size:"13",children:a("CoursePage.CertificateDate")}),date:t.jsx(s.Text,{noMargin:!0,size:"16",bold:!0,children:new Date(i.created_at).toLocaleDateString("pl-PL")}),actions:t.jsx("div",{className:"buttons-container",children:g===i.id?t.jsx(y,{width:"15px",height:"15px"}):t.jsxs("button",{className:"download-btn",onClick:()=>u(i.id,i.title),children:[t.jsx(P,{})," ",t.jsx(s.Text,{bold:!0,size:"13",children:a("CoursePage.DownloadCertificate")})]})})})})))})]})})},E=f.div` + margin-top: 20px; +`,v=()=>{const{t:e}=m();return t.jsx(b,{title:e("MyProfilePage.MyCertificates"),children:t.jsx(E,{children:t.jsx(D,{})})})};export{v as default}; diff --git a/assets/my-consultations-DKpxamxh.js b/assets/my-consultations-Dtpsattf.js similarity index 94% rename from assets/my-consultations-DKpxamxh.js rename to assets/my-consultations-Dtpsattf.js index cab57a28..4975fd88 100644 --- a/assets/my-consultations-DKpxamxh.js +++ b/assets/my-consultations-Dtpsattf.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-BwDDCa5l.js";import{P as F}from"./index-CntMwbrZ.js";import{T as $}from"./Tabs-B1M6WKle.js";import{a as G}from"./ResponsiveImage-BfAhZdZG.js";import{C as O}from"./index-tZXKSMhE.js";import{D as p,a as C}from"./index-2DzzTf_1.js";import{P as W,C as q,a as K}from"./index-DAvBbJIi.js";import{u as z}from"./useRoles-CZ3Pbmi4.js";import"./index-C-knIOix.js";import"./warning-BmYsiiaZ.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-rgMY50iO.js";import{P as F}from"./index-CQyhdORL.js";import{T as $}from"./Tabs-BuuIL9KV.js";import{a as G}from"./ResponsiveImage-Dhino3nz.js";import{C as O}from"./index-DEYhe5OT.js";import{D as p,a as C}from"./index-jvuyDq2a.js";import{P as W,C as q,a as K}from"./index-CUV7LPfP.js";import{u as z}from"./useRoles-DVMYcivV.js";import"./index-Cx5QnA0M.js";import"./warning-KJqa50Ry.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-4W-0jZl7.js b/assets/my-data-4W-0jZl7.js deleted file mode 100644 index 1d943347..00000000 --- a/assets/my-data-4W-0jZl7.js +++ /dev/null @@ -1,110 +0,0 @@ -import{d as v,a5 as X,a2 as Y,j as w,a9 as ee,r as ne,a3 as te,D as re,q as ae,f as ie}from"./index-BwDDCa5l.js";import{P as oe}from"./index-CntMwbrZ.js";import{U as le}from"./Upload-BclhsyIC.js";import"./index-C-knIOix.js";var T={};(function(x){var q=v&&v.__makeTemplateObject||function(n,a){return Object.defineProperty?Object.defineProperty(n,"raw",{value:a}):n.raw=a,n},u=v&&v.__assign||function(){return u=Object.assign||function(n){for(var a,l=1,p=arguments.length;l0&&(!((r=e.rules)===null||r===void 0)&&r.find(function(i){return i==="required"})))},[d]),K=(0,b.useCallback)(function(e){e.target.files&&e.target.files[0]&&$(e.target.files[0])},[$]);return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(Z,u({className:"wellms-component",mobile:m},{children:[(0,o.jsx)(U.Formik,u({enableReinitialize:!0,initialValues:S,validate:function(e){var r={};return e.first_name||(r.first_name=s("Required")),e.last_name||(r.last_name=s("Required")),e.email?/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(e.email)||(r.email=s("Wrong email")):r.email=s("Required"),e.phone&&!/\d{9}$/i.test(e.phone)&&(r.phone=s("Wrong phone number")),d.list&&d.list.map(function(i){F(i)&&(e[i.name]||(r[i.name]=s("Required")))}),r},onSubmit:function(e,r){var i=r.setSubmitting,c=r.resetForm,f=r.setErrors;H(u({},e)).then(function(){a&&a()}).catch(function(h){var j;c(),f(u({error:(j=h.data)===null||j===void 0?void 0:j.message},h.data.errors)),l&&l(h)}).finally(function(){i(!1),D()})}},{children:function(e){var r=e.values,i=e.errors,c=e.touched,f=e.handleChange,h=e.handleBlur,j=e.handleSubmit,Q=e.isSubmitting;return(0,o.jsxs)("form",u({onSubmit:j},{children:[i&&i.error&&(0,o.jsx)(g.Text,u({type:"danger"},{children:i.error})),(0,o.jsx)(g.Input,{label:s("First name"),type:"text",name:"first_name",onChange:f,onBlur:h,value:r.first_name,error:c.first_name&&i.first_name,required:!0}),(0,o.jsx)(g.Input,{label:s("Last name"),type:"text",name:"last_name",onChange:f,onBlur:h,value:r.last_name,error:c.last_name&&i.last_name,required:!0}),(0,o.jsx)(g.Input,{label:s("Email"),className:"form-control grey",type:"email",name:"email",onChange:f,onBlur:h,value:r.email,error:c.email&&i.email,required:!0}),(0,o.jsx)(g.Input,{label:s("Phone"),type:"text",name:"phone",onChange:f,onBlur:h,value:r.phone,error:c.phone&&i.phone}),d&&Array.isArray(d.list)&&d.list.filter(function(t){return t.type==="varchar"||t.type==="text"}).map(function(t,O){return t.type==="varchar"?(0,o.jsx)(g.Input,{required:F(t),label:s("AdditionalFields.".concat(t.name)),type:"text",name:t.name,onChange:f,onBlur:h,value:String(r[t.name])||"",error:i[t.name]&&c[t.name]},"".concat(t).concat(O)):(0,o.jsx)(g.TextArea,{rows:10,required:F(t),label:s("AdditionalFields.".concat(t.name)),name:t.name,onChange:f,onBlur:h,value:String(r[t.name])||"",error:i[t.name]&&c[t.name]},"".concat(t).concat(O))}),d&&d.list&&d.list.filter(function(t){return t.type==="boolean"}).map(function(t,O){return(0,o.jsx)(g.Checkbox,{checked:!!r[t.name],label:s("AdditionalFields.".concat(t.name)),id:t.name+Date.now(),name:t.name,onChange:f,onBlur:h,required:F(t)},"".concat(t.id).concat(O))}),(0,o.jsx)(g.Button,u({mode:"secondary",type:"submit",loading:Q||J,block:!0},{children:s("MyProfileForm.Update")}))]}))}}))," ",(0,o.jsxs)(W,u({className:"wellms-component",mobile:m},{children:[(0,o.jsx)(g.Text,u({size:"18"},{children:s("MyProfileForm.Avatar")})),(0,o.jsx)(V.Upload,{path:S.path_avatar,url:S.avatar,accept:"image/*",onChange:K})]}))]}))})};x.MyProfileForm=G,x.default=(0,P.withTheme)((0,P.default)(x.MyProfileForm)(A||(A=q([""],[""]))));var M,C,A})(T);const ue=ae.div` - margin-top: 20px; - max-width: 450px; -`,pe=()=>{const{t:x}=ie();return w.jsx(oe,{title:x("MyProfilePage.EditData"),children:w.jsx(ue,{children:w.jsx(T.MyProfileForm,{})})})};export{pe as default}; diff --git a/assets/my-data-DMINpbKK.js b/assets/my-data-DMINpbKK.js new file mode 100644 index 00000000..f69edada --- /dev/null +++ b/assets/my-data-DMINpbKK.js @@ -0,0 +1,124 @@ +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-rgMY50iO.js";import{P as ln}from"./index-CQyhdORL.js";import{U as sn}from"./Upload-qBOEpjz2.js";import"./index-Cx5QnA0M.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;l0&&(!((r=n.rules)===null||r===void 0)&&r.find(function(i){return i==="required"})))},[d]),K=(0,b.useCallback)(function(n){n.target.files&&n.target.files[0]&&D(n.target.files[0])},[D]);return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(Z,s({className:"wellms-component",mobile:m},{children:[(0,o.jsxs)(W,s({className:"wellms-component",mobile:m},{children:[(0,o.jsx)(g.Text,s({size:"18"},{children:u("MyProfileForm.Avatar")})),(0,o.jsx)(V.Upload,{path:S.path_avatar,url:S.avatar,accept:"image/*",onChange:K})]})),(0,o.jsx)(U.Formik,s({enableReinitialize:!0,initialValues:S,validate:function(n){var r={};return n.first_name||(r.first_name=u("Required")),n.last_name||(r.last_name=u("Required")),n.email?/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(n.email)||(r.email=u("Wrong email")):r.email=u("Required"),n.phone&&!/\d{9}$/i.test(n.phone)&&(r.phone=u("Wrong phone number")),d.list&&d.list.map(function(i){P(i)&&(n[i.name]||(r[i.name]=u("Required")))}),r},onSubmit:function(n,r){var i=r.setSubmitting,c=r.resetForm,f=r.setErrors;H(s({},n)).then(function(){a&&a()}).catch(function(h){var j;c(),f(s({error:(j=h.data)===null||j===void 0?void 0:j.message},h.data.errors)),l&&l(h)}).finally(function(){i(!1),T()})}},{children:function(n){var r=n.values,i=n.errors,c=n.touched,f=n.handleChange,h=n.handleBlur,j=n.handleSubmit,Q=n.isSubmitting;return(0,o.jsxs)("form",s({onSubmit:j},{children:[i&&i.error&&(0,o.jsx)(g.Text,s({type:"danger"},{children:i.error})),(0,o.jsx)(g.Input,{label:u("First name"),type:"text",name:"first_name",onChange:f,onBlur:h,value:r.first_name,error:c.first_name&&i.first_name,required:!0}),(0,o.jsx)(g.Input,{label:u("Last name"),type:"text",name:"last_name",onChange:f,onBlur:h,value:r.last_name,error:c.last_name&&i.last_name,required:!0}),(0,o.jsx)(g.Input,{label:u("Email"),className:"form-control grey",type:"email",name:"email",onChange:f,onBlur:h,value:r.email,error:c.email&&i.email,required:!0}),(0,o.jsx)(g.Input,{label:u("Phone"),type:"text",name:"phone",onChange:f,onBlur:h,value:r.phone,error:c.phone&&i.phone}),d&&Array.isArray(d.list)&&d.list.filter(function(t){return t.type==="varchar"||t.type==="text"}).map(function(t,F){return t.type==="varchar"?(0,o.jsx)(g.Input,{required:P(t),label:u("AdditionalFields.".concat(t.name)),type:"text",name:t.name,onChange:f,onBlur:h,value:String(r[t.name])||"",error:i[t.name]&&c[t.name]},"".concat(t).concat(F)):(0,o.jsx)(g.TextArea,{rows:10,required:P(t),label:u("AdditionalFields.".concat(t.name)),name:t.name,onChange:f,onBlur:h,value:String(r[t.name])||"",error:i[t.name]&&c[t.name]},"".concat(t).concat(F))}),d&&d.list&&d.list.filter(function(t){return t.type==="boolean"}).map(function(t,F){return(0,o.jsx)(g.Checkbox,{checked:!!r[t.name],label:u("AdditionalFields.".concat(t.name)),id:t.name+Date.now(),name:t.name,onChange:f,onBlur:h,required:P(t)},"".concat(t.id).concat(F))}),(0,o.jsx)(g.Button,s({mode:"secondary",type:"submit",loading:Q||J,block:!0},{children:u("MyProfileForm.Update")}))]}))}}))," "]}))})};v.MyProfileForm=G,v.default=(0,w.withTheme)((0,w.default)(v.MyProfileForm)(A||(A=q([""],[""]))));var M,C,A})($);const un=an.div` + margin-top: 20px; + max-width: 450px; +`,dn=()=>{const{t:v}=on();return O.jsx(ln,{title:v("MyProfilePage.EditData"),children:O.jsx(un,{children:O.jsx($.MyProfileForm,{})})})};export{dn as default}; diff --git a/assets/my-notifications-BYALnEXy.js b/assets/my-notifications-C5d7x6gs.js similarity index 92% rename from assets/my-notifications-BYALnEXy.js rename to assets/my-notifications-C5d7x6gs.js index 2613846d..7b2e3195 100644 --- a/assets/my-notifications-BYALnEXy.js +++ b/assets/my-notifications-C5d7x6gs.js @@ -1,4 +1,4 @@ -import{q as o,j as n,o as i,C as a,a$ as e}from"./index-BwDDCa5l.js";const r=o.div` +import{q as o,j as n,o as i,C as a,a$ as e}from"./index-rgMY50iO.js";const r=o.div` background-color: ${({theme:t})=>t.gray4}; `,s=o.div` padding-top: 70px; diff --git a/assets/my-orders-BHnTRDWy.js b/assets/my-orders-BGaC8hnI.js similarity index 98% rename from assets/my-orders-BHnTRDWy.js rename to assets/my-orders-BGaC8hnI.js index 7f705679..40f7146a 100644 --- a/assets/my-orders-BHnTRDWy.js +++ b/assets/my-orders-BGaC8hnI.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-BwDDCa5l.js";import{P as H}from"./index-CntMwbrZ.js";import"./index-C-knIOix.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-rgMY50iO.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-BWFF_Qco.js b/assets/swiper-CPGP--u2.js similarity index 98% rename from assets/swiper-BWFF_Qco.js rename to assets/swiper-CPGP--u2.js index cce5b27f..dd55b06b 100644 --- a/assets/swiper-BWFF_Qco.js +++ b/assets/swiper-CPGP--u2.js @@ -1,4 +1,4 @@ -import{q as V,r as G,j as b,aj as T}from"./index-BwDDCa5l.js";import{e as K,c as q,m as l,b as _,a as J}from"./swiper-react-CNMkIwij.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` +import{q as V,r as G,j as b,aj as T}from"./index-rgMY50iO.js";import{e as K,c as q,m as l,b as _,a as J}from"./swiper-react-Blj9s0vN.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; diff --git a/assets/swiper-react-CNMkIwij.js b/assets/swiper-react-Blj9s0vN.js similarity index 99% rename from assets/swiper-react-CNMkIwij.js rename to assets/swiper-react-Blj9s0vN.js index 5fc4ecc2..6398e6b2 100644 --- a/assets/swiper-react-CNMkIwij.js +++ b/assets/swiper-react-Blj9s0vN.js @@ -1 +1 @@ -import{r as O,b as z}from"./index-BwDDCa5l.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-rgMY50iO.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}; diff --git a/assets/useDownloadCertificate-S0p9VWMq.js b/assets/useDownloadCertificate-DzTKNXCG.js similarity index 87% rename from assets/useDownloadCertificate-S0p9VWMq.js rename to assets/useDownloadCertificate-DzTKNXCG.js index 9deae8fc..2ac25903 100644 --- a/assets/useDownloadCertificate-S0p9VWMq.js +++ b/assets/useDownloadCertificate-DzTKNXCG.js @@ -1 +1 @@ -import{r as n,D as i}from"./index-BwDDCa5l.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-rgMY50iO.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-CTf6HwPl.js b/assets/useFetchCourses-C8QrBKge.js similarity index 81% rename from assets/useFetchCourses-CTf6HwPl.js rename to assets/useFetchCourses-C8QrBKge.js index 47655b14..aa4571e5 100644 --- a/assets/useFetchCourses-CTf6HwPl.js +++ b/assets/useFetchCourses-C8QrBKge.js @@ -1 +1 @@ -import{r as e,D as i}from"./index-BwDDCa5l.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-rgMY50iO.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-CZ3Pbmi4.js b/assets/useRoles-DVMYcivV.js similarity index 82% rename from assets/useRoles-CZ3Pbmi4.js rename to assets/useRoles-DVMYcivV.js index 2d049a5e..9c09f836 100644 --- a/assets/useRoles-CZ3Pbmi4.js +++ b/assets/useRoles-DVMYcivV.js @@ -1 +1 @@ -import{r as o,h as n}from"./index-BwDDCa5l.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-rgMY50iO.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-CMraK1kM.js b/assets/useSearchParams-CmF5uHDk.js similarity index 93% rename from assets/useSearchParams-CMraK1kM.js rename to assets/useSearchParams-CmF5uHDk.js index a63bffe9..09a5250e 100644 --- a/assets/useSearchParams-CMraK1kM.js +++ b/assets/useSearchParams-CmF5uHDk.js @@ -1 +1 @@ -import{q as S}from"./base-C7euzKDi.js";import{k as g,i as f,r as t}from"./index-BwDDCa5l.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-rgMY50iO.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-BmYsiiaZ.js b/assets/warning-BmYsiiaZ.js deleted file mode 100644 index 6447bc13..00000000 --- a/assets/warning-BmYsiiaZ.js +++ /dev/null @@ -1 +0,0 @@ -import{g as a}from"./index-BwDDCa5l.js";var r=function(){},n=r;const t=a(n);export{n as a,t as w}; diff --git a/assets/warning-KJqa50Ry.js b/assets/warning-KJqa50Ry.js new file mode 100644 index 00000000..74733e9f --- /dev/null +++ b/assets/warning-KJqa50Ry.js @@ -0,0 +1 @@ +import{g as a}from"./index-rgMY50iO.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 59946751..dc744078 100644 --- a/index.html +++ b/index.html @@ -36,7 +36,7 @@ window.VITE_APP_BASENAME = null; window.VITE_APP_ROUTING_TYPE = null; - +