0&&(s.push(Xc(Ym,t,o)),o=[]),a-=d,l-=d;const m=f.t,_=n.slice(a-l,a);s.push(Xc(m,t,_))}}return o.length>0&&s.push(Xc(Ym,t,o)),s}function Xc(e,t,n){const r=n[0].s,a=n[n.length-1].e,s=t.slice(r,a);return new e(s,n)}const Xt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function b_e(){Xt.scanner=g_e(Xt.customSchemes);for(let e=0;e",lt:"<",nbsp:" ",quot:'"'},y_e=/^#[xX]([A-Fa-f0-9]+)$/,C_e=/^#([0-9]+)$/,D_e=/^([A-Za-z0-9]+)$/,P_e=function(){function e(t){this.named=t}return e.prototype.parse=function(t){if(t){var n=t.match(y_e);if(n)return String.fromCharCode(parseInt(n[1],16));if(n=t.match(C_e),n)return String.fromCharCode(parseInt(n[1],10));if(n=t.match(D_e),n)return this.named[n[1]]||"&"+n[1]+";"}},e}(),w_e=/[\t\n\f ]/,L_e=/[A-Za-z]/,$_e=/\r\n?/g;function Ht(e){return w_e.test(e)}function qm(e){return L_e.test(e)}function k_e(e){return e.replace($_e,`
+ c-17.796,4.581-28.535,22.711-23.964,40.535C290.439,120.476,308.599,131.205,326.395,126.625z`})])],-1),Fme=[Mme,xme];function Wme(e,t,n,r,a,s){return A(),N("svg",Ume,Fme)}const Gme=se(kme,[["render",Wme]]),zme={name:"Walking"},Bme={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 494.49 494.49",style:{"enable-background":"new 0 0 494.49 494.49"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"},Hme=hr('silhouette of a walking person',3),jme=[Hme];function Vme(e,t,n,r,a,s){return A(),N("svg",Bme,jme)}const Kme=se(zme,[["render",Vme]]),Yme=["title"],qme=Q({__name:"index",props:{sportLabel:{},color:{},title:{default:""}},setup(e){const t=e,{color:n,sportLabel:r,title:a}=Te(t),s=ht("sportColors");return(o,i)=>(A(),N("div",{class:"sport-img",style:Hr({fill:E(n)?E(n):E(s)[E(r)]}),title:E(a)?E(a):o.$t(`sports.${E(r)}.LABEL`)},[E(r)==="Cycling (Sport)"?(A(),re(rpe,{key:0})):x("",!0),E(r)==="Cycling (Transport)"?(A(),re(lpe,{key:1})):x("",!0),E(r)==="Cycling (Virtual)"?(A(),re(Epe,{key:2})):x("",!0),E(r)==="Hiking"?(A(),re(Ipe,{key:3})):x("",!0),E(r)==="Mountain Biking"?(A(),re(Dpe,{key:4})):x("",!0),E(r)==="Mountain Biking (Electric)"?(A(),re(Upe,{key:5})):x("",!0),E(r)==="Mountaineering"?(A(),re(zpe,{key:6})):x("",!0),E(r)==="Paragliding"?(A(),re(eme,{key:7})):x("",!0),E(r)==="Open Water Swimming"?(A(),re(Ype,{key:8})):x("",!0),E(r)==="Rowing"?(A(),re(ime,{key:9})):x("",!0),E(r)==="Running"?(A(),re(mme,{key:10})):x("",!0),E(r)==="Skiing (Alpine)"?(A(),re(Sme,{key:11})):x("",!0),E(r)==="Skiing (Cross Country)"?(A(),re(yme,{key:12})):x("",!0),E(r)==="Snowshoes"?(A(),re($me,{key:13})):x("",!0),E(r)==="Trail"?(A(),re(Gme,{key:14})):x("",!0),E(r)==="Walking"?(A(),re(Kme,{key:15})):x("",!0)],12,Yme))}});const Xme={},Zme={class:"loader"};function Qme(e,t){return A(),N("div",Zme)}const Jme=se(Xme,[["render",Qme],["__scopeId","data-v-8b613881"]]),e_e={class:"custom-modal"},t_e={key:0,class:"modal-message"},n_e={key:1,class:"modal-message"},r_e={class:"modal-buttons"},a_e=Q({__name:"Modal",props:{title:{},message:{},strongMessage:{default:()=>""}},emits:["cancelAction","confirmAction"],setup(e,{emit:t}){const n=e,r=t,a=Me(),{title:s,message:o,strongMessage:i}=Te(n),u=$(()=>a.getters[V.GETTERS.ERROR_MESSAGES]);let c=null,l=null,f=null;function d(m){var _;(m.key==="Tab"||m.keyCode===9)&&(m.preventDefault(),((_=document.activeElement)==null?void 0:_.id)==="cancel-button"?c==null||c.focus():l==null||l.focus())}return St(()=>{f=document.activeElement,l=document.getElementById("cancel-button"),c=document.getElementById("confirm-button"),l&&l.focus(),document.addEventListener("keydown",d)}),Rt(()=>{a.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),document.removeEventListener("keydown",d),f==null||f.focus()}),(m,_)=>{const g=ue("i18n-t"),R=ue("ErrorMessage"),I=ue("Card");return A(),N("div",{id:"modal",role:"dialog",onClick:_[2]||(_[2]=Ze(b=>r("cancelAction"),["self"]))},[p("div",e_e,[U(I,null,{title:pe(()=>[K(h(E(s)),1)]),content:pe(()=>[E(i)?(A(),N("div",t_e,[U(g,{keypath:E(o)},{default:pe(()=>[p("span",null,h(E(i)),1)]),_:1},8,["keypath"])])):(A(),N("div",n_e,h(E(o)),1)),u.value?(A(),re(R,{key:2,message:u.value},null,8,["message"])):x("",!0),p("div",r_e,[u.value?x("",!0):(A(),N("button",{key:0,class:"confirm",id:"confirm-button",onClick:_[0]||(_[0]=b=>r("confirmAction"))},h(m.$t("buttons.YES")),1)),p("button",{tabindex:"0",id:"cancel-button",class:"cancel",onClick:_[1]||(_[1]=b=>r("cancelAction"))},h(m.$t(`buttons.${u.value?"CANCEL":"NO"}`)),1)])]),_:1})])])}}});const s_e=se(a_e,[["__scopeId","data-v-e277942a"]]),o_e=[{target:Ofe,name:"AlertMessage"},{target:lT,name:"Card"},{target:wfe,name:"CustomTextArea"},{target:Ufe,name:"Distance"},{target:j0e,name:"Dropdown"},{target:X0e,name:"ErrorMessage"},{target:Jme,name:"Loader"},{target:s_e,name:"Modal"},{target:qme,name:"SportImage"}],i_e={mounted:(e,t)=>{e.clickOutsideEvent=function(n){e===n.target||e.contains(n.target)||t.value(n)},document.body.addEventListener("click",e.clickOutsideEvent),document.body.addEventListener("touchstart",e.clickOutsideEvent)},unmounted:function(e){e.clickOutsideEvent&&(document.body.removeEventListener("click",e.clickOutsideEvent),document.body.removeEventListener("touchstart",e.clickOutsideEvent),e.clickOutsideEvent=void 0)}};var u_e={"":["",""],_:["",""],"*":["",""],"~":["",""],"\n":["
"]," ":["
"],"-":["
"]};function Wm(e){return e.replace(RegExp("^"+(e.match(/^(\t| )+/)||"")[0],"gm"),"")}function Ws(e){return(e+"").replace(/"/g,""").replace(//g,">")}function ma(e,t){var n,r,a,s,o,i=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,u=[],c="",l=t||{},f=0;function d(_){var g=u_e[_[1]||""],R=u[u.length-1]==_;return g?g[1]?(R?u.pop():u.push(_),g[0|R]):g[0]:_}function m(){for(var _="";u.length;)_+=d(u[u.length-1]);return _}for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,function(_,g,R){return l[g.toLowerCase()]=R,""}).replace(/^\n+|\n+$/g,"");a=i.exec(e);)r=e.substring(f,a.index),f=i.lastIndex,n=a[0],r.match(/[^\\](\\\\)*\\$/)||((o=a[3]||a[4])?n='"+Wm(Ws(o).replace(/^\n+|\n+$/g,""))+"
":(o=a[6])?(o.match(/\./)&&(a[5]=a[5].replace(/^\d+/gm,"")),s=ma(Wm(a[5].replace(/^\s*[>*+.-]/gm,""))),o==">"?o="blockquote":(o=o.match(/\./)?"ol":"ul",s=s.replace(/^(.*)(\n|$)/gm,"$1")),n="<"+o+">"+s+""+o+">"):a[8]?n='':a[10]?(c=c.replace("",''),n=m()+""):a[9]?n="":a[12]||a[14]?n="<"+(o="h"+(a[14]?a[14].length:a[13]>"="?1:2))+">"+ma(a[12]||a[15],l)+""+o+">":a[16]?n=""+Ws(a[16])+"
":(a[17]||a[1])&&(n=d(a[17]||"--"))),c+=r,c+=n;return(c+e.substring(f)+m()).replace(/^\n+|\n+$/g,"")}const c_e=["bytes","KB","MB","GB","TB"],ST=e=>{if(!e)return{size:"0",suffix:"bytes"};const t=Math.floor(Math.log(e)/Math.log(1024)),n=(e/Math.pow(1024,t)).toFixed(1),r=c_e[t];return{size:n,suffix:r}},cu=e=>{if(!e)return"0 bytes";const t=ST(e);return`${t.size}${t.suffix}`},l_e=e=>{const t=e/1048576;return!e&&0||+t.toFixed(2)},d_e="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",f_e="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",fs=(e,t)=>{for(const n in t)e[n]=t[n];return e},Jl="numeric",ed="ascii",td="alpha",Wi="asciinumeric",li="alphanumeric",nd="domain",OT="emoji",p_e="scheme",m_e="slashscheme",Gm="whitespace";function __e(e,t){return e in t||(t[e]=[]),t[e]}function ca(e,t,n){t[Jl]&&(t[Wi]=!0,t[li]=!0),t[ed]&&(t[Wi]=!0,t[td]=!0),t[Wi]&&(t[li]=!0),t[td]&&(t[li]=!0),t[li]&&(t[nd]=!0),t[OT]&&(t[nd]=!0);for(const r in t){const a=__e(r,n);a.indexOf(e)<0&&a.push(e)}}function E_e(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function _n(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}_n.groups={};_n.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let r=0;re.ta(t,n,r,a),An=(e,t,n,r,a)=>e.tr(t,n,r,a),zm=(e,t,n,r,a)=>e.ts(t,n,r,a),ce=(e,t,n,r,a)=>e.tt(t,n,r,a),or="WORD",rd="UWORD",So="LOCALHOST",ad="TLD",sd="UTLD",Gi="SCHEME",xa="SLASH_SCHEME",Cf="NUM",IT="WS",Df="NL",Wa="OPENBRACE",to="OPENBRACKET",no="OPENANGLEBRACKET",ro="OPENPAREN",ra="CLOSEBRACE",Ga="CLOSEBRACKET",za="CLOSEANGLEBRACKET",aa="CLOSEPAREN",lu="AMPERSAND",du="APOSTROPHE",fu="ASTERISK",Pr="AT",pu="BACKSLASH",mu="BACKTICK",_u="CARET",$r="COLON",Pf="COMMA",Eu="DOLLAR",Hn="DOT",hu="EQUALS",wf="EXCLAMATION",jn="HYPHEN",Tu="PERCENT",gu="PIPE",Au="PLUS",Su="POUND",Ou="QUERY",Lf="QUOTE",$f="SEMI",Vn="SLASH",ao="TILDE",Iu="UNDERSCORE",vT="EMOJI",vu="SYM";var bT=Object.freeze({__proto__:null,WORD:or,UWORD:rd,LOCALHOST:So,TLD:ad,UTLD:sd,SCHEME:Gi,SLASH_SCHEME:xa,NUM:Cf,WS:IT,NL:Df,OPENBRACE:Wa,OPENBRACKET:to,OPENANGLEBRACKET:no,OPENPAREN:ro,CLOSEBRACE:ra,CLOSEBRACKET:Ga,CLOSEANGLEBRACKET:za,CLOSEPAREN:aa,AMPERSAND:lu,APOSTROPHE:du,ASTERISK:fu,AT:Pr,BACKSLASH:pu,BACKTICK:mu,CARET:_u,COLON:$r,COMMA:Pf,DOLLAR:Eu,DOT:Hn,EQUALS:hu,EXCLAMATION:wf,HYPHEN:jn,PERCENT:Tu,PIPE:gu,PLUS:Au,POUND:Su,QUERY:Ou,QUOTE:Lf,SEMI:$f,SLASH:Vn,TILDE:ao,UNDERSCORE:Iu,EMOJI:vT,SYM:vu});const Da=/[a-z]/,Kc=/\p{L}/u,Yc=/\p{Emoji}/u,qc=/\d/,Bm=/\s/,Hm=`
+`,h_e="️",T_e="";let di=null,fi=null;function g_e(e){e===void 0&&(e=[]);const t={};_n.groups=t;const n=new _n;di==null&&(di=jm(d_e)),fi==null&&(fi=jm(f_e)),ce(n,"'",du),ce(n,"{",Wa),ce(n,"[",to),ce(n,"<",no),ce(n,"(",ro),ce(n,"}",ra),ce(n,"]",Ga),ce(n,">",za),ce(n,")",aa),ce(n,"&",lu),ce(n,"*",fu),ce(n,"@",Pr),ce(n,"`",mu),ce(n,"^",_u),ce(n,":",$r),ce(n,",",Pf),ce(n,"$",Eu),ce(n,".",Hn),ce(n,"=",hu),ce(n,"!",wf),ce(n,"-",jn),ce(n,"%",Tu),ce(n,"|",gu),ce(n,"+",Au),ce(n,"#",Su),ce(n,"?",Ou),ce(n,'"',Lf),ce(n,"/",Vn),ce(n,";",$f),ce(n,"~",ao),ce(n,"_",Iu),ce(n,"\\",pu);const r=An(n,qc,Cf,{[Jl]:!0});An(r,qc,r);const a=An(n,Da,or,{[ed]:!0});An(a,Da,a);const s=An(n,Kc,rd,{[td]:!0});An(s,Da),An(s,Kc,s);const o=An(n,Bm,IT,{[Gm]:!0});ce(n,Hm,Df,{[Gm]:!0}),ce(o,Hm),An(o,Bm,o);const i=An(n,Yc,vT,{[OT]:!0});An(i,Yc,i),ce(i,h_e,i);const u=ce(i,T_e);An(u,Yc,i);const c=[[Da,a]],l=[[Da,null],[Kc,s]];for(let f=0;ff[0]>d[0]?1:-1);for(let f=0;f=0?_[nd]=!0:Da.test(d)?qc.test(d)?_[Wi]=!0:_[ed]=!0:_[Jl]=!0,zm(n,d,d,_)}return zm(n,"localhost",So,{ascii:!0}),n.jd=new _n(vu),{start:n,tokens:fs({groups:t},bT)}}function A_e(e,t){const n=S_e(t.replace(/[A-Z]/g,i=>i.toLowerCase())),r=n.length,a=[];let s=0,o=0;for(;o=0&&(f+=n[o].length,d++),c+=n[o].length,s+=n[o].length,o++;s-=f,o-=d,c-=f,a.push({t:l.t,v:t.slice(s-c,s),s:s-c,e:s})}return a}function S_e(e){const t=[],n=e.length;let r=0;for(;r56319||r+1===n||(s=e.charCodeAt(r+1))<56320||s>57343?e[r]:e.slice(r,r+2);t.push(o),r+=o.length}return t}function yr(e,t,n,r,a){let s;const o=t.length;for(let i=0;i=0;)s++;if(s>0){t.push(n.join(""));for(let o=parseInt(e.substring(r,r+s),10);o>0;o--)n.pop();r+=s}else n.push(e[r]),r++}return t}const Oo={defaultProtocol:"http",events:null,format:Vm,formatHref:Vm,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function kf(e,t){t===void 0&&(t=null);let n=fs({},Oo);e&&(n=fs(n,e instanceof kf?e.o:e));const r=n.ignoreTags,a=[];for(let s=0;sn?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return e===void 0&&(e=Oo.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),a=e.get("tagName",n,t),s=this.toFormattedString(e),o={},i=e.get("className",n,t),u=e.get("target",n,t),c=e.get("rel",n,t),l=e.getObj("attributes",n,t),f=e.getObj("events",n,t);return o.href=r,i&&(o.class=i),u&&(o.target=u),c&&(o.rel=c),l&&fs(o,l),{tagName:a,attributes:o,content:s,eventListeners:f}}};function ic(e,t){class n extends RT{constructor(a,s){super(a,s),this.t=e}}for(const r in t)n.prototype[r]=t[r];return n.t=e,n}const Km=ic("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Ym=ic("text"),O_e=ic("nl"),Jr=ic("url",{isLink:!0,toHref(e){return e===void 0&&(e=Oo.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==So&&e[1].t===$r}}),Lt=e=>new _n(e);function I_e(e){let{groups:t}=e;const n=t.domain.concat([lu,fu,Pr,pu,mu,_u,Eu,hu,jn,Cf,Tu,gu,Au,Su,Vn,vu,ao,Iu]),r=[du,za,ra,Ga,aa,$r,Pf,Hn,wf,no,Wa,to,ro,Ou,Lf,$f],a=[lu,du,fu,pu,mu,_u,ra,Eu,hu,jn,Wa,Tu,gu,Au,Su,Ou,Vn,vu,ao,Iu],s=Lt(),o=ce(s,ao);Ie(o,a,o),Ie(o,t.domain,o);const i=Lt(),u=Lt(),c=Lt();Ie(s,t.domain,i),Ie(s,t.scheme,u),Ie(s,t.slashscheme,c),Ie(i,a,o),Ie(i,t.domain,i);const l=ce(i,Pr);ce(o,Pr,l),ce(u,Pr,l),ce(c,Pr,l);const f=ce(o,Hn);Ie(f,a,o),Ie(f,t.domain,o);const d=Lt();Ie(l,t.domain,d),Ie(d,t.domain,d);const m=ce(d,Hn);Ie(m,t.domain,d);const _=Lt(Km);Ie(m,t.tld,_),Ie(m,t.utld,_),ce(l,So,_);const g=ce(d,jn);Ie(g,t.domain,d),Ie(_,t.domain,d),ce(_,Hn,m),ce(_,jn,g);const R=ce(_,$r);Ie(R,t.numeric,Km);const I=ce(i,jn),b=ce(i,Hn);Ie(I,t.domain,i),Ie(b,a,o),Ie(b,t.domain,i);const v=Lt(Jr);Ie(b,t.tld,v),Ie(b,t.utld,v),Ie(v,t.domain,i),Ie(v,a,o),ce(v,Hn,b),ce(v,jn,I),ce(v,Pr,l);const T=ce(v,$r),L=Lt(Jr);Ie(T,t.numeric,L);const w=Lt(Jr),P=Lt();Ie(w,n,w),Ie(w,r,P),Ie(P,n,w),Ie(P,r,P),ce(v,Vn,w),ce(L,Vn,w);const j=ce(u,$r),G=ce(c,$r),z=ce(G,Vn),k=ce(z,Vn);Ie(u,t.domain,i),ce(u,Hn,b),ce(u,jn,I),Ie(c,t.domain,i),ce(c,Hn,b),ce(c,jn,I),Ie(j,t.domain,w),ce(j,Vn,w),Ie(k,t.domain,w),Ie(k,n,w),ce(k,Vn,w);const Z=ce(w,Wa),ee=ce(w,to),te=ce(w,no),D=ce(w,ro);ce(P,Wa,Z),ce(P,to,ee),ce(P,no,te),ce(P,ro,D),ce(Z,ra,w),ce(ee,Ga,w),ce(te,za,w),ce(D,aa,w),ce(Z,ra,w);const W=Lt(Jr),B=Lt(Jr),ae=Lt(Jr),Re=Lt(Jr);Ie(Z,n,W),Ie(ee,n,B),Ie(te,n,ae),Ie(D,n,Re);const $e=Lt(),he=Lt(),ye=Lt(),Nt=Lt();return Ie(Z,r),Ie(ee,r),Ie(te,r),Ie(D,r),Ie(W,n,W),Ie(B,n,B),Ie(ae,n,ae),Ie(Re,n,Re),Ie(W,r,W),Ie(B,r,B),Ie(ae,r,ae),Ie(Re,r,Re),Ie($e,n,$e),Ie(he,n,B),Ie(ye,n,ae),Ie(Nt,n,Re),Ie($e,r,$e),Ie(he,r,he),Ie(ye,r,ye),Ie(Nt,r,Nt),ce(B,Ga,w),ce(ae,za,w),ce(Re,aa,w),ce(W,ra,w),ce(he,Ga,w),ce(ye,za,w),ce(Nt,aa,w),ce($e,aa,w),ce(s,So,v),ce(s,Df,O_e),{start:s,tokens:bT}}function v_e(e,t,n){let r=n.length,a=0,s=[],o=[];for(;a=0&&d++,a++,l++;if(d<0)a-=l,a0&&(s.push(Xc(Ym,t,o)),o=[]),a-=d,l-=d;const m=f.t,_=n.slice(a-l,a);s.push(Xc(m,t,_))}}return o.length>0&&s.push(Xc(Ym,t,o)),s}function Xc(e,t,n){const r=n[0].s,a=n[n.length-1].e,s=t.slice(r,a);return new e(s,n)}const Xt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function b_e(){Xt.scanner=g_e(Xt.customSchemes);for(let e=0;e",lt:"<",nbsp:" ",quot:'"'},y_e=/^#[xX]([A-Fa-f0-9]+)$/,C_e=/^#([0-9]+)$/,D_e=/^([A-Za-z0-9]+)$/,P_e=function(){function e(t){this.named=t}return e.prototype.parse=function(t){if(t){var n=t.match(y_e);if(n)return String.fromCharCode(parseInt(n[1],16));if(n=t.match(C_e),n)return String.fromCharCode(parseInt(n[1],10));if(n=t.match(D_e),n)return this.named[n[1]]||"&"+n[1]+";"}},e}(),w_e=/[\t\n\f ]/,L_e=/[A-Za-z]/,$_e=/\r\n?/g;function Ht(e){return w_e.test(e)}function qm(e){return L_e.test(e)}function k_e(e){return e.replace($_e,`
`)}var U_e=function(){function e(t,n,r){r===void 0&&(r="precompile"),this.delegate=t,this.entityParser=n,this.mode=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var a=this.peek();if(a==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&a===`
`){var s=this.tagNameBuffer.toLowerCase();(s==="pre"||s==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var a=this.peek(),s=this.tagNameBuffer;a==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):a==="&"&&s!=="script"&&s!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(a))},tagOpen:function(){var a=this.consume();a==="!"?this.transitionTo("markupDeclarationOpen"):a==="/"?this.transitionTo("endTagOpen"):(a==="@"||a===":"||qm(a))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(a))},markupDeclarationOpen:function(){var a=this.consume();if(a==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var s=a.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();s==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var a=this.consume();Ht(a)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var a=this.consume();Ht(a)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(a.toLowerCase()))},doctypeName:function(){var a=this.consume();Ht(a)?this.transitionTo("afterDoctypeName"):a===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(a.toLowerCase())},afterDoctypeName:function(){var a=this.consume();if(!Ht(a))if(a===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var s=a.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),o=s.toUpperCase()==="PUBLIC",i=s.toUpperCase()==="SYSTEM";(o||i)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),o?this.transitionTo("afterDoctypePublicKeyword"):i&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var a=this.peek();Ht(a)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):a==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):a==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):a===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var a=this.consume();a==='"'?this.transitionTo("afterDoctypePublicIdentifier"):a===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(a)},doctypePublicIdentifierSingleQuoted:function(){var a=this.consume();a==="'"?this.transitionTo("afterDoctypePublicIdentifier"):a===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(a)},afterDoctypePublicIdentifier:function(){var a=this.consume();Ht(a)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):a===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):a==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):a==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var a=this.consume();Ht(a)||(a===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):a==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):a==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var a=this.consume();a==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):a===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(a)},doctypeSystemIdentifierSingleQuoted:function(){var a=this.consume();a==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):a===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(a)},afterDoctypeSystemIdentifier:function(){var a=this.consume();Ht(a)||a===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var a=this.consume();a==="-"?this.transitionTo("commentStartDash"):a===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(a),this.transitionTo("comment"))},commentStartDash:function(){var a=this.consume();a==="-"?this.transitionTo("commentEnd"):a===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var a=this.consume();a==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(a)},commentEndDash:function(){var a=this.consume();a==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+a),this.transitionTo("comment"))},commentEnd:function(){var a=this.consume();a===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+a),this.transitionTo("comment"))},tagName:function(){var a=this.consume();Ht(a)?this.transitionTo("beforeAttributeName"):a==="/"?this.transitionTo("selfClosingStartTag"):a===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(a)},endTagName:function(){var a=this.consume();Ht(a)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):a==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):a===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(a)},beforeAttributeName:function(){var a=this.peek();if(Ht(a)){this.consume();return}else a==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):a===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):a==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(a)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var a=this.peek();Ht(a)?(this.transitionTo("afterAttributeName"),this.consume()):a==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):a==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):a===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):a==='"'||a==="'"||a==="<"?(this.delegate.reportSyntaxError(a+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(a)):(this.consume(),this.delegate.appendToAttributeName(a))},afterAttributeName:function(){var a=this.peek();if(Ht(a)){this.consume();return}else a==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):a==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):a===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(a))},beforeAttributeValue:function(){var a=this.peek();Ht(a)?this.consume():a==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):a==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):a===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(a))},attributeValueDoubleQuoted:function(){var a=this.consume();a==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):a==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(a)},attributeValueSingleQuoted:function(){var a=this.consume();a==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):a==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(a)},attributeValueUnquoted:function(){var a=this.peek();Ht(a)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):a==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):a==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):a===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(a))},afterAttributeValueQuoted:function(){var a=this.peek();Ht(a)?(this.consume(),this.transitionTo("beforeAttributeName")):a==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):a===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var a=this.peek();a===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var a=this.consume();(a==="@"||a===":"||qm(a))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(a))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(t){this.state=t},e.prototype.tokenize=function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},e.prototype.tokenizePart=function(t){for(this.input+=k_e(t);this.index"||t==="style"&&this.input.substring(this.index,this.index+8)!==""||t==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},e}(),M_e=function(){function e(t,n){n===void 0&&(n={}),this.options=n,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new U_e(this,t,n.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},e.prototype.tokenizePart=function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var t=this.token;if(t===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return t;for(var n=0;n=0))continue;let l=r.length;B_e(u,n,++o,r),o+=r.length-l-1}else if(i.type!==od)r.push(i);else{const u=z_e(i.chars,s);r.push.apply(r,u)}}for(let o=0;o0&&(u+=" "+V_e(i.attributes).join(" ")),i.selfClosing&&(u+=" /"),u+=">",a.push(u);break}case yT:a.push(`${i.tagName}>`);break;case od:a.push(id(i.chars));break;case F_e:a.push(``);break;case W_e:{let u=`",a.push(u);break}}}return a.join("")}function z_e(e,t){const n=R_e(e),r=[];for(let a=0;a0;){let s=t[n];s.type===bu&&s.tagName.toUpperCase()===e?a++:s.type===yT&&s.tagName.toUpperCase()===e&&a--,r.push(s),n++}return r}function H_e(e){let{tagName:t,attributes:n,content:r}=e;return`<${t} ${j_e(n)}>${id(r)}${t}>`}function id(e){return e.replace(/&/g,"&").replace(//g,">")}function CT(e){return e.replace(/"/g,""")}function j_e(e){const t=[];for(const n in e){const r=e[n]+"";t.push(`${n}="${CT(r)}"`)}return t.join(" ")}function V_e(e){const t=[];for(let n=0;n䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}));var xf={};Object.defineProperty(xf,"__esModule",{value:!0});xf.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}));var ud={};(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);e.fromCodePoint=(t=String.fromCodePoint)!==null&&t!==void 0?t:function(s){var o="";return s>65535&&(s-=65536,o+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),o+=String.fromCharCode(s),o};function r(s){var o;return s>=55296&&s<=57343||s>1114111?65533:(o=n.get(s))!==null&&o!==void 0?o:s}e.replaceCodePoint=r;function a(s){return(0,e.fromCodePoint)(r(s))}e.default=a})(ud);(function(e){var t=Le&&Le.__createBinding||(Object.create?function(k,Z,ee,te){te===void 0&&(te=ee);var D=Object.getOwnPropertyDescriptor(Z,ee);(!D||("get"in D?!Z.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return Z[ee]}}),Object.defineProperty(k,te,D)}:function(k,Z,ee,te){te===void 0&&(te=ee),k[te]=Z[ee]}),n=Le&&Le.__setModuleDefault||(Object.create?function(k,Z){Object.defineProperty(k,"default",{enumerable:!0,value:Z})}:function(k,Z){k.default=Z}),r=Le&&Le.__importStar||function(k){if(k&&k.__esModule)return k;var Z={};if(k!=null)for(var ee in k)ee!=="default"&&Object.prototype.hasOwnProperty.call(k,ee)&&t(Z,k,ee);return n(Z,k),Z},a=Le&&Le.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTMLAttribute=e.decodeHTML=e.determineBranch=e.EntityDecoder=e.DecodingMode=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var s=a(Mf);e.htmlDecodeTree=s.default;var o=a(xf);e.xmlDecodeTree=o.default;var i=r(ud);e.decodeCodePoint=i.default;var u=ud;Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var c;(function(k){k[k.NUM=35]="NUM",k[k.SEMI=59]="SEMI",k[k.EQUALS=61]="EQUALS",k[k.ZERO=48]="ZERO",k[k.NINE=57]="NINE",k[k.LOWER_A=97]="LOWER_A",k[k.LOWER_F=102]="LOWER_F",k[k.LOWER_X=120]="LOWER_X",k[k.LOWER_Z=122]="LOWER_Z",k[k.UPPER_A=65]="UPPER_A",k[k.UPPER_F=70]="UPPER_F",k[k.UPPER_Z=90]="UPPER_Z"})(c||(c={}));var l=32,f;(function(k){k[k.VALUE_LENGTH=49152]="VALUE_LENGTH",k[k.BRANCH_LENGTH=16256]="BRANCH_LENGTH",k[k.JUMP_TABLE=127]="JUMP_TABLE"})(f=e.BinTrieFlags||(e.BinTrieFlags={}));function d(k){return k>=c.ZERO&&k<=c.NINE}function m(k){return k>=c.UPPER_A&&k<=c.UPPER_F||k>=c.LOWER_A&&k<=c.LOWER_F}function _(k){return k>=c.UPPER_A&&k<=c.UPPER_Z||k>=c.LOWER_A&&k<=c.LOWER_Z||d(k)}function T(k){return k===c.EQUALS||_(k)}var R;(function(k){k[k.EntityStart=0]="EntityStart",k[k.NumericStart=1]="NumericStart",k[k.NumericDecimal=2]="NumericDecimal",k[k.NumericHex=3]="NumericHex",k[k.NamedEntity=4]="NamedEntity"})(R||(R={}));var I;(function(k){k[k.Legacy=0]="Legacy",k[k.Strict=1]="Strict",k[k.Attribute=2]="Attribute"})(I=e.DecodingMode||(e.DecodingMode={}));var b=function(){function k(Z,ee,te){this.decodeTree=Z,this.emitCodePoint=ee,this.errors=te,this.state=R.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=I.Strict}return k.prototype.startEntity=function(Z){this.decodeMode=Z,this.state=R.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},k.prototype.write=function(Z,ee){switch(this.state){case R.EntityStart:return Z.charCodeAt(ee)===c.NUM?(this.state=R.NumericStart,this.consumed+=1,this.stateNumericStart(Z,ee+1)):(this.state=R.NamedEntity,this.stateNamedEntity(Z,ee));case R.NumericStart:return this.stateNumericStart(Z,ee);case R.NumericDecimal:return this.stateNumericDecimal(Z,ee);case R.NumericHex:return this.stateNumericHex(Z,ee);case R.NamedEntity:return this.stateNamedEntity(Z,ee)}},k.prototype.stateNumericStart=function(Z,ee){return ee>=Z.length?-1:(Z.charCodeAt(ee)|l)===c.LOWER_X?(this.state=R.NumericHex,this.consumed+=1,this.stateNumericHex(Z,ee+1)):(this.state=R.NumericDecimal,this.stateNumericDecimal(Z,ee))},k.prototype.addToNumericResult=function(Z,ee,te,D){if(ee!==te){var W=te-ee;this.result=this.result*Math.pow(D,W)+parseInt(Z.substr(ee,W),D),this.consumed+=W}},k.prototype.stateNumericHex=function(Z,ee){for(var te=ee;ee>14;ee>14,W!==0){if(B===c.SEMI)return this.emitNamedEntityData(this.treeIndex,W,this.consumed+this.excess);this.decodeMode!==I.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},k.prototype.emitNotTerminatedNamedEntity=function(){var Z,ee=this,te=ee.result,D=ee.decodeTree,W=(D[te]&f.VALUE_LENGTH)>>14;return this.emitNamedEntityData(te,W,this.consumed),(Z=this.errors)===null||Z===void 0||Z.missingSemicolonAfterCharacterReference(),this.consumed},k.prototype.emitNamedEntityData=function(Z,ee,te){var D=this.decodeTree;return this.emitCodePoint(ee===1?D[Z]&~f.VALUE_LENGTH:D[Z+1],te),ee===3&&this.emitCodePoint(D[Z+2],te),te},k.prototype.end=function(){var Z;switch(this.state){case R.NamedEntity:return this.result!==0&&(this.decodeMode!==I.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case R.NumericDecimal:return this.emitNumericEntity(0,2);case R.NumericHex:return this.emitNumericEntity(0,3);case R.NumericStart:return(Z=this.errors)===null||Z===void 0||Z.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case R.EntityStart:return 0}},k}();e.EntityDecoder=b;function v(k){var Z="",ee=new b(k,function(te){return Z+=(0,i.fromCodePoint)(te)});return function(D,W){for(var B=0,ae=0;(ae=D.indexOf("&",ae))>=0;){Z+=D.slice(B,ae),ee.startEntity(W);var Re=ee.write(D,ae+1);if(Re<0){B=ae+ee.end();break}B=ae+Re,ae=Re===0?B+1:B}var $e=Z+D.slice(B);return Z="",$e}}function g(k,Z,ee,te){var D=(Z&f.BRANCH_LENGTH)>>7,W=Z&f.JUMP_TABLE;if(D===0)return W!==0&&te===W?ee:-1;if(W){var B=te-W;return B<0||B>=D?-1:k[ee+B]-1}for(var ae=ee,Re=ae+D-1;ae<=Re;){var $e=ae+Re>>>1,he=k[$e];if(hete)Re=$e-1;else return k[$e+D]}return-1}e.determineBranch=g;var L=v(s.default),w=v(o.default);function P(k,Z){return Z===void 0&&(Z=I.Legacy),L(k,Z)}e.decodeHTML=P;function j(k){return L(k,I.Attribute)}e.decodeHTMLAttribute=j;function G(k){return L(k,I.Strict)}e.decodeHTMLStrict=G;function z(k){return w(k,I.Strict)}e.decodeXML=z})(vo);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var t=vo,n;(function(d){d[d.Tab=9]="Tab",d[d.NewLine=10]="NewLine",d[d.FormFeed=12]="FormFeed",d[d.CarriageReturn=13]="CarriageReturn",d[d.Space=32]="Space",d[d.ExclamationMark=33]="ExclamationMark",d[d.Number=35]="Number",d[d.Amp=38]="Amp",d[d.SingleQuote=39]="SingleQuote",d[d.DoubleQuote=34]="DoubleQuote",d[d.Dash=45]="Dash",d[d.Slash=47]="Slash",d[d.Zero=48]="Zero",d[d.Nine=57]="Nine",d[d.Semi=59]="Semi",d[d.Lt=60]="Lt",d[d.Eq=61]="Eq",d[d.Gt=62]="Gt",d[d.Questionmark=63]="Questionmark",d[d.UpperA=65]="UpperA",d[d.LowerA=97]="LowerA",d[d.UpperF=70]="UpperF",d[d.LowerF=102]="LowerF",d[d.UpperZ=90]="UpperZ",d[d.LowerZ=122]="LowerZ",d[d.LowerX=120]="LowerX",d[d.OpeningSquareBracket=91]="OpeningSquareBracket"})(n||(n={}));var r;(function(d){d[d.Text=1]="Text",d[d.BeforeTagName=2]="BeforeTagName",d[d.InTagName=3]="InTagName",d[d.InSelfClosingTag=4]="InSelfClosingTag",d[d.BeforeClosingTagName=5]="BeforeClosingTagName",d[d.InClosingTagName=6]="InClosingTagName",d[d.AfterClosingTagName=7]="AfterClosingTagName",d[d.BeforeAttributeName=8]="BeforeAttributeName",d[d.InAttributeName=9]="InAttributeName",d[d.AfterAttributeName=10]="AfterAttributeName",d[d.BeforeAttributeValue=11]="BeforeAttributeValue",d[d.InAttributeValueDq=12]="InAttributeValueDq",d[d.InAttributeValueSq=13]="InAttributeValueSq",d[d.InAttributeValueNq=14]="InAttributeValueNq",d[d.BeforeDeclaration=15]="BeforeDeclaration",d[d.InDeclaration=16]="InDeclaration",d[d.InProcessingInstruction=17]="InProcessingInstruction",d[d.BeforeComment=18]="BeforeComment",d[d.CDATASequence=19]="CDATASequence",d[d.InSpecialComment=20]="InSpecialComment",d[d.InCommentLike=21]="InCommentLike",d[d.BeforeSpecialS=22]="BeforeSpecialS",d[d.SpecialStartSequence=23]="SpecialStartSequence",d[d.InSpecialTag=24]="InSpecialTag",d[d.BeforeEntity=25]="BeforeEntity",d[d.BeforeNumericEntity=26]="BeforeNumericEntity",d[d.InNamedEntity=27]="InNamedEntity",d[d.InNumericEntity=28]="InNumericEntity",d[d.InHexEntity=29]="InHexEntity"})(r||(r={}));function a(d){return d===n.Space||d===n.NewLine||d===n.Tab||d===n.FormFeed||d===n.CarriageReturn}function s(d){return d===n.Slash||d===n.Gt||a(d)}function o(d){return d>=n.Zero&&d<=n.Nine}function i(d){return d>=n.LowerA&&d<=n.LowerZ||d>=n.UpperA&&d<=n.UpperZ}function u(d){return d>=n.UpperA&&d<=n.UpperF||d>=n.LowerA&&d<=n.LowerF}var c;(function(d){d[d.NoValue=0]="NoValue",d[d.Unquoted=1]="Unquoted",d[d.Single=2]="Single",d[d.Double=3]="Double"})(c=e.QuoteType||(e.QuoteType={}));var l={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},f=function(){function d(m,_){var T=m.xmlMode,R=T===void 0?!1:T,I=m.decodeEntities,b=I===void 0?!0:I;this.cbs=_,this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=R,this.decodeEntities=b,this.entityTrie=R?t.xmlDecodeTree:t.htmlDecodeTree}return d.prototype.reset=function(){this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},d.prototype.write=function(m){this.offset+=this.buffer.length,this.buffer=m,this.parse()},d.prototype.end=function(){this.running&&this.finish()},d.prototype.pause=function(){this.running=!1},d.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=r.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&m===n.Amp&&(this.state=r.BeforeEntity)},d.prototype.stateSpecialStartSequence=function(m){var _=this.sequenceIndex===this.currentSequence.length,T=_?s(m):(m|32)===this.currentSequence[this.sequenceIndex];if(!T)this.isSpecial=!1;else if(!_){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=r.InTagName,this.stateInTagName(m)},d.prototype.stateInSpecialTag=function(m){if(this.sequenceIndex===this.currentSequence.length){if(m===n.Gt||a(m)){var _=this.index-this.currentSequence.length;if(this.sectionStart<_){var T=this.index;this.index=_,this.cbs.ontext(this.sectionStart,_),this.index=T}this.isSpecial=!1,this.sectionStart=_+2,this.stateInClosingTagName(m);return}this.sequenceIndex=0}(m|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===l.TitleEnd?this.decodeEntities&&m===n.Amp&&(this.state=r.BeforeEntity):this.fastForwardTo(n.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(m===n.Lt)},d.prototype.stateCDATASequence=function(m){m===l.Cdata[this.sequenceIndex]?++this.sequenceIndex===l.Cdata.length&&(this.state=r.InCommentLike,this.currentSequence=l.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=r.InDeclaration,this.stateInDeclaration(m))},d.prototype.fastForwardTo=function(m){for(;++this.index>14)-1;if(!this.allowLegacyEntity()&&m!==n.Semi)this.trieIndex+=T;else{var R=this.index-this.entityExcess+1;R>this.sectionStart&&this.emitPartial(this.sectionStart,R),this.entityResult=this.trieIndex,this.trieIndex+=T,this.entityExcess=0,this.sectionStart=this.index+1,T===0&&this.emitNamedEntity()}}},d.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var m=(this.entityTrie[this.entityResult]&t.BinTrieFlags.VALUE_LENGTH)>>14;switch(m){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~t.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},d.prototype.stateBeforeNumericEntity=function(m){(m|32)===n.LowerX?(this.entityExcess++,this.state=r.InHexEntity):(this.state=r.InNumericEntity,this.stateInNumericEntity(m))},d.prototype.emitNumericEntity=function(m){var _=this.index-this.entityExcess-1,T=_+2+ +(this.state===r.InHexEntity);T!==this.index&&(_>this.sectionStart&&this.emitPartial(this.sectionStart,_),this.sectionStart=this.index+Number(m),this.emitCodePoint((0,t.replaceCodePoint)(this.entityResult))),this.state=this.baseState},d.prototype.stateInNumericEntity=function(m){m===n.Semi?this.emitNumericEntity(!0):o(m)?(this.entityResult=this.entityResult*10+(m-n.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},d.prototype.stateInHexEntity=function(m){m===n.Semi?this.emitNumericEntity(!0):o(m)?(this.entityResult=this.entityResult*16+(m-n.Zero),this.entityExcess++):u(m)?(this.entityResult=this.entityResult*16+((m|32)-n.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},d.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===r.Text||this.baseState===r.InSpecialTag)},d.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===r.Text||this.state===r.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===r.InAttributeValueDq||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},d.prototype.shouldContinue=function(){return this.index0&&o.has(this.stack[this.stack.length-1]);){var i=this.stack.pop();(r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,i,!0)}this.isVoidElement(t)||(this.stack.push(t),e_.has(t)?this.foreignContext.push(!0):t_.has(t)&&this.foreignContext.push(!1)),(s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,t),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(t){var n,r;this.startIndex=this.openTagStart,this.attribs&&((r=(n=this.cbs).onopentag)===null||r===void 0||r.call(n,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1},e.prototype.onclosetag=function(t,n){var r,a,s,o,i,u;this.endIndex=n;var c=this.getSlice(t,n);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(e_.has(c)||t_.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c==="br"&&((a=(r=this.cbs).onopentagname)===null||a===void 0||a.call(r,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(u=(i=this.cbs).onclosetag)===null||u===void 0||u.call(i,"br",!1));else{var l=this.stack.lastIndexOf(c);if(l!==-1)if(this.cbs.onclosetag)for(var f=this.stack.length-l;f--;)this.cbs.onclosetag(this.stack.pop(),f!==0);else this.stack.length=l;else!this.options.xmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1},e.prototype.onselfclosingtag=function(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)},e.prototype.closeCurrentTag=function(t){var n,r,a=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===a&&((r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,a,!t),this.stack.pop())},e.prototype.onattribname=function(t,n){this.startIndex=t;var r=this.getSlice(t,n);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r},e.prototype.onattribdata=function(t,n){this.attribvalue+=this.getSlice(t,n)},e.prototype.onattribentity=function(t){this.attribvalue+=(0,Xm.fromCodePoint)(t)},e.prototype.onattribend=function(t,n){var r,a;this.endIndex=n,(a=(r=this.cbs).onattribute)===null||a===void 0||a.call(r,this.attribname,this.attribvalue,t===pi.QuoteType.Double?'"':t===pi.QuoteType.Single?"'":t===pi.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(t){var n=t.search(Q_e),r=n<0?t:t.substr(0,n);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},e.prototype.ondeclaration=function(t,n){this.endIndex=n;var r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(r);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(r))}this.startIndex=n+1},e.prototype.onprocessinginstruction=function(t,n){this.endIndex=n;var r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(r);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(r))}this.startIndex=n+1},e.prototype.oncomment=function(t,n,r){var a,s,o,i;this.endIndex=n,(s=(a=this.cbs).oncomment)===null||s===void 0||s.call(a,this.getSlice(t,n-r)),(i=(o=this.cbs).oncommentend)===null||i===void 0||i.call(o),this.startIndex=n+1},e.prototype.oncdata=function(t,n,r){var a,s,o,i,u,c,l,f,d,m;this.endIndex=n;var _=this.getSlice(t,n-r);this.options.xmlMode||this.options.recognizeCDATA?((s=(a=this.cbs).oncdatastart)===null||s===void 0||s.call(a),(i=(o=this.cbs).ontext)===null||i===void 0||i.call(o,_),(c=(u=this.cbs).oncdataend)===null||c===void 0||c.call(u)):((f=(l=this.cbs).oncomment)===null||f===void 0||f.call(l,"[CDATA[".concat(_,"]]")),(m=(d=this.cbs).oncommentend)===null||m===void 0||m.call(d)),this.startIndex=n+1},e.prototype.onend=function(){var t,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}(n=(t=this.cbs).onend)===null||n===void 0||n.call(t)},e.prototype.reset=function(){var t,n,r,a;(n=(t=this.cbs).onreset)===null||n===void 0||n.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(a=(r=this.cbs).onparserinit)===null||a===void 0||a.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(t){this.reset(),this.end(t)},e.prototype.getSlice=function(t,n){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var r=this.buffers[0].slice(t-this.bufferOffset,n-this.bufferOffset);n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,n-this.bufferOffset);return r},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)},e.prototype.end=function(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(Ff);qe.NodeWithChildren=cc;var $T=function(e){Yr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=cn.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(cc);qe.CDATA=$T;var kT=function(e){Yr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=cn.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(cc);qe.Document=kT;var UT=function(e){Yr(t,e);function t(n,r,a,s){a===void 0&&(a=[]),s===void 0&&(s=n==="script"?cn.ElementType.Script:n==="style"?cn.ElementType.Style:cn.ElementType.Tag);var o=e.call(this,a)||this;return o.name=n,o.attribs=r,o.type=s,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var a,s;return{name:r,value:n.attribs[r],namespace:(a=n["x-attribsNamespace"])===null||a===void 0?void 0:a[r],prefix:(s=n["x-attribsPrefix"])===null||s===void 0?void 0:s[r]}})},enumerable:!1,configurable:!0}),t}(cc);qe.Element=UT;function MT(e){return(0,cn.isTag)(e)}qe.isTag=MT;function xT(e){return e.type===cn.ElementType.CDATA}qe.isCDATA=xT;function FT(e){return e.type===cn.ElementType.Text}qe.isText=FT;function WT(e){return e.type===cn.ElementType.Comment}qe.isComment=WT;function GT(e){return e.type===cn.ElementType.Directive}qe.isDirective=GT;function zT(e){return e.type===cn.ElementType.Root}qe.isDocument=zT;function eEe(e){return Object.prototype.hasOwnProperty.call(e,"children")}qe.hasChildren=eEe;function Wf(e,t){t===void 0&&(t=!1);var n;if(FT(e))n=new PT(e.data);else if(WT(e))n=new wT(e.data);else if(MT(e)){var r=t?Zc(e.children):[],a=new UT(e.name,so({},e.attribs),r);r.forEach(function(u){return u.parent=a}),e.namespace!=null&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=so({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=so({},e["x-attribsPrefix"])),n=a}else if(xT(e)){var r=t?Zc(e.children):[],s=new $T(r);r.forEach(function(c){return c.parent=s}),n=s}else if(zT(e)){var r=t?Zc(e.children):[],o=new kT(r);r.forEach(function(c){return c.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(GT(e)){var i=new LT(e.name,e.data);e["x-name"]!=null&&(i["x-name"]=e["x-name"],i["x-publicId"]=e["x-publicId"],i["x-systemId"]=e["x-systemId"]),n=i}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}qe.cloneNode=Wf;function Zc(e){for(var t=e.map(function(r){return Wf(r,!0)}),n=1;n$\x80-\uFFFF]/g;var t=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(a,s){return a.codePointAt(s)}:function(a,s){return(a.charCodeAt(s)&64512)===55296?(a.charCodeAt(s)-55296)*1024+a.charCodeAt(s+1)-56320+65536:a.charCodeAt(s)};function n(a){for(var s="",o=0,i;(i=e.xmlReplacer.exec(a))!==null;){var u=i.index,c=a.charCodeAt(u),l=t.get(c);l!==void 0?(s+=a.substring(o,u)+l,o=u+1):(s+="".concat(a.substring(o,u),"").concat((0,e.getCodePoint)(a,u).toString(16),";"),o=e.xmlReplacer.lastIndex+=+((c&64512)===55296))}return s+a.substr(o)}e.encodeXML=n,e.escape=n;function r(a,s){return function(i){for(var u,c=0,l="";u=a.exec(i);)c!==u.index&&(l+=i.substring(c,u.index)),l+=s.get(u[0].charCodeAt(0)),c=u.index+1;return l+i.substring(c)}}e.escapeUTF8=r(/[&<>'"]/g,t),e.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(Ru);var tEe=Le&&Le.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_a,"__esModule",{value:!0});_a.encodeNonAsciiHTML=_a.encodeHTML=void 0;var nEe=tEe(Gf),HT=Ru,rEe=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function aEe(e){return jT(rEe,e)}_a.encodeHTML=aEe;function sEe(e){return jT(HT.xmlReplacer,e)}_a.encodeNonAsciiHTML=sEe;function jT(e,t){for(var n="",r=0,a;(a=e.exec(t))!==null;){var s=a.index;n+=t.substring(r,s);var o=t.charCodeAt(s),i=nEe.default.get(o);if(typeof i=="object"){if(s+1"):(r+=">",e.children.length>0&&(r+=lc(e.children,t)),(t.xmlMode||!n_.has(e.name))&&(r+="".concat(e.name,">"))),r}function EEe(e){return"<".concat(e.data,">")}function hEe(e,t){var n,r=e.data||"";return((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&cEe.has(e.parent.name))&&(r=t.xmlMode||t.encodeEntities!=="utf8"?(0,Nu.encodeXML)(r):(0,Nu.escapeText)(r)),r}function TEe(e){return"")}function gEe(e){return"")}var AEe=Le&&Le.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hn,"__esModule",{value:!0});hn.innerText=hn.textContent=hn.getText=hn.getInnerHTML=hn.getOuterHTML=void 0;var Zn=mr,SEe=AEe(jo),OEe=ys;function KT(e,t){return(0,SEe.default)(e,t)}hn.getOuterHTML=KT;function IEe(e,t){return(0,Zn.hasChildren)(e)?e.children.map(function(n){return KT(n,t)}).join(""):""}hn.getInnerHTML=IEe;function Bi(e){return Array.isArray(e)?e.map(Bi).join(""):(0,Zn.isTag)(e)?e.name==="br"?`
-`:Bi(e.children):(0,Zn.isCDATA)(e)?Bi(e.children):(0,Zn.isText)(e)?e.data:""}hn.getText=Bi;function cd(e){return Array.isArray(e)?e.map(cd).join(""):(0,Zn.hasChildren)(e)&&!(0,Zn.isComment)(e)?cd(e.children):(0,Zn.isText)(e)?e.data:""}hn.textContent=cd;function ld(e){return Array.isArray(e)?e.map(ld).join(""):(0,Zn.hasChildren)(e)&&(e.type===OEe.ElementType.Tag||(0,Zn.isCDATA)(e))?ld(e.children):(0,Zn.isText)(e)?e.data:""}hn.innerText=ld;var $t={};Object.defineProperty($t,"__esModule",{value:!0});$t.prevElementSibling=$t.nextElementSibling=$t.getName=$t.hasAttrib=$t.getAttributeValue=$t.getSiblings=$t.getParent=$t.getChildren=void 0;var zf=mr;function YT(e){return(0,zf.hasChildren)(e)?e.children:[]}$t.getChildren=YT;function qT(e){return e.parent||null}$t.getParent=qT;function vEe(e){var t,n,r=qT(e);if(r!=null)return YT(r);for(var a=[e],s=e.prev,o=e.next;s!=null;)a.unshift(s),t=s,s=t.prev;for(;o!=null;)a.push(o),n=o,o=n.next;return a}$t.getSiblings=vEe;function bEe(e,t){var n;return(n=e.attribs)===null||n===void 0?void 0:n[t]}$t.getAttributeValue=bEe;function REe(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}$t.hasAttrib=REe;function NEe(e){return e.name}$t.getName=NEe;function yEe(e){for(var t,n=e.next;n!==null&&!(0,zf.isTag)(n);)t=n,n=t.next;return n}$t.nextElementSibling=yEe;function CEe(e){for(var t,n=e.prev;n!==null&&!(0,zf.isTag)(n);)t=n,n=t.prev;return n}$t.prevElementSibling=CEe;var un={};Object.defineProperty(un,"__esModule",{value:!0});un.prepend=un.prependChild=un.append=un.appendChild=un.replaceElement=un.removeElement=void 0;function Vo(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}un.removeElement=Vo;function DEe(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var a=t.parent=e.parent;if(a){var s=a.children;s[s.lastIndexOf(e)]=t,e.parent=null}}un.replaceElement=DEe;function PEe(e,t){if(Vo(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null}un.appendChild=PEe;function wEe(e,t){Vo(t);var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var a=n.children;a.splice(a.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}un.append=wEe;function LEe(e,t){if(Vo(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){var n=e.children[1];n.prev=t,t.next=n}else t.next=null}un.prependChild=LEe;function $Ee(e,t){Vo(t);var n=e.parent;if(n){var r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}un.prepend=$Ee;var Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.findAll=Qt.existsOne=Qt.findOne=Qt.findOneChild=Qt.find=Qt.filter=void 0;var dc=mr;function kEe(e,t,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),XT(e,Array.isArray(t)?t:[t],n,r)}Qt.filter=kEe;function XT(e,t,n,r){for(var a=[],s=[t],o=[0];;){if(o[0]>=s[0].length){if(o.length===1)return a;s.shift(),o.shift();continue}var i=s[0][o[0]++];if(e(i)&&(a.push(i),--r<=0))return a;n&&(0,dc.hasChildren)(i)&&i.children.length>0&&(o.unshift(0),s.unshift(i.children))}}Qt.find=XT;function UEe(e,t){return t.find(e)}Qt.findOneChild=UEe;function ZT(e,t,n){n===void 0&&(n=!0);for(var r=null,a=0;a0&&(r=ZT(e,s.children,!0));else continue}return r}Qt.findOne=ZT;function QT(e,t){return t.some(function(n){return(0,dc.isTag)(n)&&(e(n)||QT(e,n.children))})}Qt.existsOne=QT;function MEe(e,t){for(var n=[],r=[t],a=[0];;){if(a[0]>=r[0].length){if(r.length===1)return n;r.shift(),a.shift();continue}var s=r[0][a[0]++];(0,dc.isTag)(s)&&(e(s)&&n.push(s),s.children.length>0&&(a.unshift(0),r.unshift(s.children)))}}Qt.findAll=MEe;var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.getElementsByTagType=Tn.getElementsByTagName=Tn.getElementById=Tn.getElements=Tn.testElement=void 0;var sa=mr,fc=Qt,yu={tag_name:function(e){return typeof e=="function"?function(t){return(0,sa.isTag)(t)&&e(t.name)}:e==="*"?sa.isTag:function(t){return(0,sa.isTag)(t)&&t.name===e}},tag_type:function(e){return typeof e=="function"?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return typeof e=="function"?function(t){return(0,sa.isText)(t)&&e(t.data)}:function(t){return(0,sa.isText)(t)&&t.data===e}}};function JT(e,t){return typeof t=="function"?function(n){return(0,sa.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,sa.isTag)(n)&&n.attribs[e]===t}}function xEe(e,t){return function(n){return e(n)||t(n)}}function eg(e){var t=Object.keys(e).map(function(n){var r=e[n];return Object.prototype.hasOwnProperty.call(yu,n)?yu[n](r):JT(n,r)});return t.length===0?null:t.reduce(xEe)}function FEe(e,t){var n=eg(e);return n?n(t):!0}Tn.testElement=FEe;function WEe(e,t,n,r){r===void 0&&(r=1/0);var a=eg(e);return a?(0,fc.filter)(a,t,n,r):[]}Tn.getElements=WEe;function GEe(e,t,n){return n===void 0&&(n=!0),Array.isArray(t)||(t=[t]),(0,fc.findOne)(JT("id",e),t,n)}Tn.getElementById=GEe;function zEe(e,t,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,fc.filter)(yu.tag_name(e),t,n,r)}Tn.getElementsByTagName=zEe;function BEe(e,t,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,fc.filter)(yu.tag_type(e),t,n,r)}Tn.getElementsByTagType=BEe;var tg={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var t=mr;function n(o){for(var i=o.length;--i>=0;){var u=o[i];if(i>0&&o.lastIndexOf(u,i-1)>=0){o.splice(i,1);continue}for(var c=u.parent;c;c=c.parent)if(o.includes(c)){o.splice(i,1);break}}return o}e.removeSubsets=n;var r;(function(o){o[o.DISCONNECTED=1]="DISCONNECTED",o[o.PRECEDING=2]="PRECEDING",o[o.FOLLOWING=4]="FOLLOWING",o[o.CONTAINS=8]="CONTAINS",o[o.CONTAINED_BY=16]="CONTAINED_BY"})(r=e.DocumentPosition||(e.DocumentPosition={}));function a(o,i){var u=[],c=[];if(o===i)return 0;for(var l=(0,t.hasChildren)(o)?o:o.parent;l;)u.unshift(l),l=l.parent;for(l=(0,t.hasChildren)(i)?i:i.parent;l;)c.unshift(l),l=l.parent;for(var f=Math.min(u.length,c.length),d=0;d_.indexOf(R)?m===i?r.FOLLOWING|r.CONTAINED_BY:r.FOLLOWING:m===o?r.PRECEDING|r.CONTAINS:r.PRECEDING}e.compareDocumentPosition=a;function s(o){return o=o.filter(function(i,u,c){return!c.includes(i,u+1)}),o.sort(function(i,u){var c=a(i,u);return c&r.PRECEDING?-1:c&r.FOLLOWING?1:0}),o}e.uniqueSort=s})(tg);var pc={};Object.defineProperty(pc,"__esModule",{value:!0});pc.getFeed=void 0;var HEe=hn,Ko=Tn;function jEe(e){var t=Cu(XEe,e);return t?t.name==="feed"?VEe(t):KEe(t):null}pc.getFeed=jEe;function VEe(e){var t,n=e.children,r={type:"atom",items:(0,Ko.getElementsByTagName)("entry",n).map(function(o){var i,u=o.children,c={media:ng(u)};sn(c,"id","id",u),sn(c,"title","title",u);var l=(i=Cu("link",u))===null||i===void 0?void 0:i.attribs.href;l&&(c.link=l);var f=Mr("summary",u)||Mr("content",u);f&&(c.description=f);var d=Mr("updated",u);return d&&(c.pubDate=new Date(d)),c})};sn(r,"id","id",n),sn(r,"title","title",n);var a=(t=Cu("link",n))===null||t===void 0?void 0:t.attribs.href;a&&(r.link=a),sn(r,"description","subtitle",n);var s=Mr("updated",n);return s&&(r.updated=new Date(s)),sn(r,"author","email",n,!0),r}function KEe(e){var t,n,r=(n=(t=Cu("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&n!==void 0?n:[],a={type:e.name.substr(0,3),id:"",items:(0,Ko.getElementsByTagName)("item",e.children).map(function(o){var i=o.children,u={media:ng(i)};sn(u,"id","guid",i),sn(u,"title","title",i),sn(u,"link","link",i),sn(u,"description","description",i);var c=Mr("pubDate",i)||Mr("dc:date",i);return c&&(u.pubDate=new Date(c)),u})};sn(a,"title","title",r),sn(a,"link","link",r),sn(a,"description","description",r);var s=Mr("lastBuildDate",r);return s&&(a.updated=new Date(s)),sn(a,"author","managingEditor",r,!0),a}var YEe=["url","type","lang"],qEe=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function ng(e){return(0,Ko.getElementsByTagName)("media:content",e).map(function(t){for(var n=t.attribs,r={medium:n.medium,isDefault:!!n.isDefault},a=0,s=YEe;a{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Bf={};Object.defineProperty(Bf,"__esModule",{value:!0});/*!
+`?(this.line++,this.column=0):this.column++,t},e.prototype.consumeCharRef=function(){var t=this.input.indexOf(";",this.index);if(t!==-1){var n=this.input.slice(this.index,t),r=this.entityParser.parse(n);if(r){for(var a=n.length;a;)this.consume(),a--;return this.consume(),r}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(t){this.tagNameBuffer+=t,this.delegate.appendToTagName(t)},e.prototype.isIgnoredEndTag=function(){var t=this.tagNameBuffer;return t==="title"&&this.input.substring(this.index,this.index+8)!==""||t==="style"&&this.input.substring(this.index,this.index+8)!==""||t==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},e}(),M_e=function(){function e(t,n){n===void 0&&(n={}),this.options=n,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new U_e(this,t,n.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},e.prototype.tokenizePart=function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var t=this.token;if(t===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return t;for(var n=0;n=0))continue;let l=r.length;B_e(u,n,++o,r),o+=r.length-l-1}else if(i.type!==od)r.push(i);else{const u=z_e(i.chars,s);r.push.apply(r,u)}}for(let o=0;o0&&(u+=" "+V_e(i.attributes).join(" ")),i.selfClosing&&(u+=" /"),u+=">",a.push(u);break}case yT:a.push(`${i.tagName}>`);break;case od:a.push(id(i.chars));break;case F_e:a.push(``);break;case W_e:{let u=`",a.push(u);break}}}return a.join("")}function z_e(e,t){const n=R_e(e),r=[];for(let a=0;a0;){let s=t[n];s.type===bu&&s.tagName.toUpperCase()===e?a++:s.type===yT&&s.tagName.toUpperCase()===e&&a--,r.push(s),n++}return r}function H_e(e){let{tagName:t,attributes:n,content:r}=e;return`<${t} ${j_e(n)}>${id(r)}${t}>`}function id(e){return e.replace(/&/g,"&").replace(//g,">")}function CT(e){return e.replace(/"/g,""")}function j_e(e){const t=[];for(const n in e){const r=e[n]+"";t.push(`${n}="${CT(r)}"`)}return t.join(" ")}function V_e(e){const t=[];for(let n=0;n䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}));var xf={};Object.defineProperty(xf,"__esModule",{value:!0});xf.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}));var ud={};(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);e.fromCodePoint=(t=String.fromCodePoint)!==null&&t!==void 0?t:function(s){var o="";return s>65535&&(s-=65536,o+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),o+=String.fromCharCode(s),o};function r(s){var o;return s>=55296&&s<=57343||s>1114111?65533:(o=n.get(s))!==null&&o!==void 0?o:s}e.replaceCodePoint=r;function a(s){return(0,e.fromCodePoint)(r(s))}e.default=a})(ud);(function(e){var t=Le&&Le.__createBinding||(Object.create?function(k,Z,ee,te){te===void 0&&(te=ee);var D=Object.getOwnPropertyDescriptor(Z,ee);(!D||("get"in D?!Z.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return Z[ee]}}),Object.defineProperty(k,te,D)}:function(k,Z,ee,te){te===void 0&&(te=ee),k[te]=Z[ee]}),n=Le&&Le.__setModuleDefault||(Object.create?function(k,Z){Object.defineProperty(k,"default",{enumerable:!0,value:Z})}:function(k,Z){k.default=Z}),r=Le&&Le.__importStar||function(k){if(k&&k.__esModule)return k;var Z={};if(k!=null)for(var ee in k)ee!=="default"&&Object.prototype.hasOwnProperty.call(k,ee)&&t(Z,k,ee);return n(Z,k),Z},a=Le&&Le.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTMLAttribute=e.decodeHTML=e.determineBranch=e.EntityDecoder=e.DecodingMode=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var s=a(Mf);e.htmlDecodeTree=s.default;var o=a(xf);e.xmlDecodeTree=o.default;var i=r(ud);e.decodeCodePoint=i.default;var u=ud;Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var c;(function(k){k[k.NUM=35]="NUM",k[k.SEMI=59]="SEMI",k[k.EQUALS=61]="EQUALS",k[k.ZERO=48]="ZERO",k[k.NINE=57]="NINE",k[k.LOWER_A=97]="LOWER_A",k[k.LOWER_F=102]="LOWER_F",k[k.LOWER_X=120]="LOWER_X",k[k.LOWER_Z=122]="LOWER_Z",k[k.UPPER_A=65]="UPPER_A",k[k.UPPER_F=70]="UPPER_F",k[k.UPPER_Z=90]="UPPER_Z"})(c||(c={}));var l=32,f;(function(k){k[k.VALUE_LENGTH=49152]="VALUE_LENGTH",k[k.BRANCH_LENGTH=16256]="BRANCH_LENGTH",k[k.JUMP_TABLE=127]="JUMP_TABLE"})(f=e.BinTrieFlags||(e.BinTrieFlags={}));function d(k){return k>=c.ZERO&&k<=c.NINE}function m(k){return k>=c.UPPER_A&&k<=c.UPPER_F||k>=c.LOWER_A&&k<=c.LOWER_F}function _(k){return k>=c.UPPER_A&&k<=c.UPPER_Z||k>=c.LOWER_A&&k<=c.LOWER_Z||d(k)}function g(k){return k===c.EQUALS||_(k)}var R;(function(k){k[k.EntityStart=0]="EntityStart",k[k.NumericStart=1]="NumericStart",k[k.NumericDecimal=2]="NumericDecimal",k[k.NumericHex=3]="NumericHex",k[k.NamedEntity=4]="NamedEntity"})(R||(R={}));var I;(function(k){k[k.Legacy=0]="Legacy",k[k.Strict=1]="Strict",k[k.Attribute=2]="Attribute"})(I=e.DecodingMode||(e.DecodingMode={}));var b=function(){function k(Z,ee,te){this.decodeTree=Z,this.emitCodePoint=ee,this.errors=te,this.state=R.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=I.Strict}return k.prototype.startEntity=function(Z){this.decodeMode=Z,this.state=R.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},k.prototype.write=function(Z,ee){switch(this.state){case R.EntityStart:return Z.charCodeAt(ee)===c.NUM?(this.state=R.NumericStart,this.consumed+=1,this.stateNumericStart(Z,ee+1)):(this.state=R.NamedEntity,this.stateNamedEntity(Z,ee));case R.NumericStart:return this.stateNumericStart(Z,ee);case R.NumericDecimal:return this.stateNumericDecimal(Z,ee);case R.NumericHex:return this.stateNumericHex(Z,ee);case R.NamedEntity:return this.stateNamedEntity(Z,ee)}},k.prototype.stateNumericStart=function(Z,ee){return ee>=Z.length?-1:(Z.charCodeAt(ee)|l)===c.LOWER_X?(this.state=R.NumericHex,this.consumed+=1,this.stateNumericHex(Z,ee+1)):(this.state=R.NumericDecimal,this.stateNumericDecimal(Z,ee))},k.prototype.addToNumericResult=function(Z,ee,te,D){if(ee!==te){var W=te-ee;this.result=this.result*Math.pow(D,W)+parseInt(Z.substr(ee,W),D),this.consumed+=W}},k.prototype.stateNumericHex=function(Z,ee){for(var te=ee;ee>14;ee>14,W!==0){if(B===c.SEMI)return this.emitNamedEntityData(this.treeIndex,W,this.consumed+this.excess);this.decodeMode!==I.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},k.prototype.emitNotTerminatedNamedEntity=function(){var Z,ee=this,te=ee.result,D=ee.decodeTree,W=(D[te]&f.VALUE_LENGTH)>>14;return this.emitNamedEntityData(te,W,this.consumed),(Z=this.errors)===null||Z===void 0||Z.missingSemicolonAfterCharacterReference(),this.consumed},k.prototype.emitNamedEntityData=function(Z,ee,te){var D=this.decodeTree;return this.emitCodePoint(ee===1?D[Z]&~f.VALUE_LENGTH:D[Z+1],te),ee===3&&this.emitCodePoint(D[Z+2],te),te},k.prototype.end=function(){var Z;switch(this.state){case R.NamedEntity:return this.result!==0&&(this.decodeMode!==I.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case R.NumericDecimal:return this.emitNumericEntity(0,2);case R.NumericHex:return this.emitNumericEntity(0,3);case R.NumericStart:return(Z=this.errors)===null||Z===void 0||Z.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case R.EntityStart:return 0}},k}();e.EntityDecoder=b;function v(k){var Z="",ee=new b(k,function(te){return Z+=(0,i.fromCodePoint)(te)});return function(D,W){for(var B=0,ae=0;(ae=D.indexOf("&",ae))>=0;){Z+=D.slice(B,ae),ee.startEntity(W);var Re=ee.write(D,ae+1);if(Re<0){B=ae+ee.end();break}B=ae+Re,ae=Re===0?B+1:B}var $e=Z+D.slice(B);return Z="",$e}}function T(k,Z,ee,te){var D=(Z&f.BRANCH_LENGTH)>>7,W=Z&f.JUMP_TABLE;if(D===0)return W!==0&&te===W?ee:-1;if(W){var B=te-W;return B<0||B>=D?-1:k[ee+B]-1}for(var ae=ee,Re=ae+D-1;ae<=Re;){var $e=ae+Re>>>1,he=k[$e];if(hete)Re=$e-1;else return k[$e+D]}return-1}e.determineBranch=T;var L=v(s.default),w=v(o.default);function P(k,Z){return Z===void 0&&(Z=I.Legacy),L(k,Z)}e.decodeHTML=P;function j(k){return L(k,I.Attribute)}e.decodeHTMLAttribute=j;function G(k){return L(k,I.Strict)}e.decodeHTMLStrict=G;function z(k){return w(k,I.Strict)}e.decodeXML=z})(vo);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var t=vo,n;(function(d){d[d.Tab=9]="Tab",d[d.NewLine=10]="NewLine",d[d.FormFeed=12]="FormFeed",d[d.CarriageReturn=13]="CarriageReturn",d[d.Space=32]="Space",d[d.ExclamationMark=33]="ExclamationMark",d[d.Number=35]="Number",d[d.Amp=38]="Amp",d[d.SingleQuote=39]="SingleQuote",d[d.DoubleQuote=34]="DoubleQuote",d[d.Dash=45]="Dash",d[d.Slash=47]="Slash",d[d.Zero=48]="Zero",d[d.Nine=57]="Nine",d[d.Semi=59]="Semi",d[d.Lt=60]="Lt",d[d.Eq=61]="Eq",d[d.Gt=62]="Gt",d[d.Questionmark=63]="Questionmark",d[d.UpperA=65]="UpperA",d[d.LowerA=97]="LowerA",d[d.UpperF=70]="UpperF",d[d.LowerF=102]="LowerF",d[d.UpperZ=90]="UpperZ",d[d.LowerZ=122]="LowerZ",d[d.LowerX=120]="LowerX",d[d.OpeningSquareBracket=91]="OpeningSquareBracket"})(n||(n={}));var r;(function(d){d[d.Text=1]="Text",d[d.BeforeTagName=2]="BeforeTagName",d[d.InTagName=3]="InTagName",d[d.InSelfClosingTag=4]="InSelfClosingTag",d[d.BeforeClosingTagName=5]="BeforeClosingTagName",d[d.InClosingTagName=6]="InClosingTagName",d[d.AfterClosingTagName=7]="AfterClosingTagName",d[d.BeforeAttributeName=8]="BeforeAttributeName",d[d.InAttributeName=9]="InAttributeName",d[d.AfterAttributeName=10]="AfterAttributeName",d[d.BeforeAttributeValue=11]="BeforeAttributeValue",d[d.InAttributeValueDq=12]="InAttributeValueDq",d[d.InAttributeValueSq=13]="InAttributeValueSq",d[d.InAttributeValueNq=14]="InAttributeValueNq",d[d.BeforeDeclaration=15]="BeforeDeclaration",d[d.InDeclaration=16]="InDeclaration",d[d.InProcessingInstruction=17]="InProcessingInstruction",d[d.BeforeComment=18]="BeforeComment",d[d.CDATASequence=19]="CDATASequence",d[d.InSpecialComment=20]="InSpecialComment",d[d.InCommentLike=21]="InCommentLike",d[d.BeforeSpecialS=22]="BeforeSpecialS",d[d.SpecialStartSequence=23]="SpecialStartSequence",d[d.InSpecialTag=24]="InSpecialTag",d[d.BeforeEntity=25]="BeforeEntity",d[d.BeforeNumericEntity=26]="BeforeNumericEntity",d[d.InNamedEntity=27]="InNamedEntity",d[d.InNumericEntity=28]="InNumericEntity",d[d.InHexEntity=29]="InHexEntity"})(r||(r={}));function a(d){return d===n.Space||d===n.NewLine||d===n.Tab||d===n.FormFeed||d===n.CarriageReturn}function s(d){return d===n.Slash||d===n.Gt||a(d)}function o(d){return d>=n.Zero&&d<=n.Nine}function i(d){return d>=n.LowerA&&d<=n.LowerZ||d>=n.UpperA&&d<=n.UpperZ}function u(d){return d>=n.UpperA&&d<=n.UpperF||d>=n.LowerA&&d<=n.LowerF}var c;(function(d){d[d.NoValue=0]="NoValue",d[d.Unquoted=1]="Unquoted",d[d.Single=2]="Single",d[d.Double=3]="Double"})(c=e.QuoteType||(e.QuoteType={}));var l={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},f=function(){function d(m,_){var g=m.xmlMode,R=g===void 0?!1:g,I=m.decodeEntities,b=I===void 0?!0:I;this.cbs=_,this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=R,this.decodeEntities=b,this.entityTrie=R?t.xmlDecodeTree:t.htmlDecodeTree}return d.prototype.reset=function(){this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},d.prototype.write=function(m){this.offset+=this.buffer.length,this.buffer=m,this.parse()},d.prototype.end=function(){this.running&&this.finish()},d.prototype.pause=function(){this.running=!1},d.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=r.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&m===n.Amp&&(this.state=r.BeforeEntity)},d.prototype.stateSpecialStartSequence=function(m){var _=this.sequenceIndex===this.currentSequence.length,g=_?s(m):(m|32)===this.currentSequence[this.sequenceIndex];if(!g)this.isSpecial=!1;else if(!_){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=r.InTagName,this.stateInTagName(m)},d.prototype.stateInSpecialTag=function(m){if(this.sequenceIndex===this.currentSequence.length){if(m===n.Gt||a(m)){var _=this.index-this.currentSequence.length;if(this.sectionStart<_){var g=this.index;this.index=_,this.cbs.ontext(this.sectionStart,_),this.index=g}this.isSpecial=!1,this.sectionStart=_+2,this.stateInClosingTagName(m);return}this.sequenceIndex=0}(m|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===l.TitleEnd?this.decodeEntities&&m===n.Amp&&(this.state=r.BeforeEntity):this.fastForwardTo(n.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(m===n.Lt)},d.prototype.stateCDATASequence=function(m){m===l.Cdata[this.sequenceIndex]?++this.sequenceIndex===l.Cdata.length&&(this.state=r.InCommentLike,this.currentSequence=l.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=r.InDeclaration,this.stateInDeclaration(m))},d.prototype.fastForwardTo=function(m){for(;++this.index>14)-1;if(!this.allowLegacyEntity()&&m!==n.Semi)this.trieIndex+=g;else{var R=this.index-this.entityExcess+1;R>this.sectionStart&&this.emitPartial(this.sectionStart,R),this.entityResult=this.trieIndex,this.trieIndex+=g,this.entityExcess=0,this.sectionStart=this.index+1,g===0&&this.emitNamedEntity()}}},d.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var m=(this.entityTrie[this.entityResult]&t.BinTrieFlags.VALUE_LENGTH)>>14;switch(m){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~t.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},d.prototype.stateBeforeNumericEntity=function(m){(m|32)===n.LowerX?(this.entityExcess++,this.state=r.InHexEntity):(this.state=r.InNumericEntity,this.stateInNumericEntity(m))},d.prototype.emitNumericEntity=function(m){var _=this.index-this.entityExcess-1,g=_+2+ +(this.state===r.InHexEntity);g!==this.index&&(_>this.sectionStart&&this.emitPartial(this.sectionStart,_),this.sectionStart=this.index+Number(m),this.emitCodePoint((0,t.replaceCodePoint)(this.entityResult))),this.state=this.baseState},d.prototype.stateInNumericEntity=function(m){m===n.Semi?this.emitNumericEntity(!0):o(m)?(this.entityResult=this.entityResult*10+(m-n.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},d.prototype.stateInHexEntity=function(m){m===n.Semi?this.emitNumericEntity(!0):o(m)?(this.entityResult=this.entityResult*16+(m-n.Zero),this.entityExcess++):u(m)?(this.entityResult=this.entityResult*16+((m|32)-n.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},d.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===r.Text||this.baseState===r.InSpecialTag)},d.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===r.Text||this.state===r.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===r.InAttributeValueDq||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},d.prototype.shouldContinue=function(){return this.index0&&o.has(this.stack[this.stack.length-1]);){var i=this.stack.pop();(r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,i,!0)}this.isVoidElement(t)||(this.stack.push(t),e_.has(t)?this.foreignContext.push(!0):t_.has(t)&&this.foreignContext.push(!1)),(s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,t),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(t){var n,r;this.startIndex=this.openTagStart,this.attribs&&((r=(n=this.cbs).onopentag)===null||r===void 0||r.call(n,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1},e.prototype.onclosetag=function(t,n){var r,a,s,o,i,u;this.endIndex=n;var c=this.getSlice(t,n);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(e_.has(c)||t_.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c==="br"&&((a=(r=this.cbs).onopentagname)===null||a===void 0||a.call(r,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(u=(i=this.cbs).onclosetag)===null||u===void 0||u.call(i,"br",!1));else{var l=this.stack.lastIndexOf(c);if(l!==-1)if(this.cbs.onclosetag)for(var f=this.stack.length-l;f--;)this.cbs.onclosetag(this.stack.pop(),f!==0);else this.stack.length=l;else!this.options.xmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1},e.prototype.onselfclosingtag=function(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)},e.prototype.closeCurrentTag=function(t){var n,r,a=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===a&&((r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,a,!t),this.stack.pop())},e.prototype.onattribname=function(t,n){this.startIndex=t;var r=this.getSlice(t,n);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r},e.prototype.onattribdata=function(t,n){this.attribvalue+=this.getSlice(t,n)},e.prototype.onattribentity=function(t){this.attribvalue+=(0,Xm.fromCodePoint)(t)},e.prototype.onattribend=function(t,n){var r,a;this.endIndex=n,(a=(r=this.cbs).onattribute)===null||a===void 0||a.call(r,this.attribname,this.attribvalue,t===pi.QuoteType.Double?'"':t===pi.QuoteType.Single?"'":t===pi.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(t){var n=t.search(Q_e),r=n<0?t:t.substr(0,n);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},e.prototype.ondeclaration=function(t,n){this.endIndex=n;var r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(r);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(r))}this.startIndex=n+1},e.prototype.onprocessinginstruction=function(t,n){this.endIndex=n;var r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(r);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(r))}this.startIndex=n+1},e.prototype.oncomment=function(t,n,r){var a,s,o,i;this.endIndex=n,(s=(a=this.cbs).oncomment)===null||s===void 0||s.call(a,this.getSlice(t,n-r)),(i=(o=this.cbs).oncommentend)===null||i===void 0||i.call(o),this.startIndex=n+1},e.prototype.oncdata=function(t,n,r){var a,s,o,i,u,c,l,f,d,m;this.endIndex=n;var _=this.getSlice(t,n-r);this.options.xmlMode||this.options.recognizeCDATA?((s=(a=this.cbs).oncdatastart)===null||s===void 0||s.call(a),(i=(o=this.cbs).ontext)===null||i===void 0||i.call(o,_),(c=(u=this.cbs).oncdataend)===null||c===void 0||c.call(u)):((f=(l=this.cbs).oncomment)===null||f===void 0||f.call(l,"[CDATA[".concat(_,"]]")),(m=(d=this.cbs).oncommentend)===null||m===void 0||m.call(d)),this.startIndex=n+1},e.prototype.onend=function(){var t,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}(n=(t=this.cbs).onend)===null||n===void 0||n.call(t)},e.prototype.reset=function(){var t,n,r,a;(n=(t=this.cbs).onreset)===null||n===void 0||n.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(a=(r=this.cbs).onparserinit)===null||a===void 0||a.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(t){this.reset(),this.end(t)},e.prototype.getSlice=function(t,n){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var r=this.buffers[0].slice(t-this.bufferOffset,n-this.bufferOffset);n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,n-this.bufferOffset);return r},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)},e.prototype.end=function(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(Ff);qe.NodeWithChildren=cc;var $T=function(e){Yr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=cn.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(cc);qe.CDATA=$T;var kT=function(e){Yr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=cn.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(cc);qe.Document=kT;var UT=function(e){Yr(t,e);function t(n,r,a,s){a===void 0&&(a=[]),s===void 0&&(s=n==="script"?cn.ElementType.Script:n==="style"?cn.ElementType.Style:cn.ElementType.Tag);var o=e.call(this,a)||this;return o.name=n,o.attribs=r,o.type=s,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var a,s;return{name:r,value:n.attribs[r],namespace:(a=n["x-attribsNamespace"])===null||a===void 0?void 0:a[r],prefix:(s=n["x-attribsPrefix"])===null||s===void 0?void 0:s[r]}})},enumerable:!1,configurable:!0}),t}(cc);qe.Element=UT;function MT(e){return(0,cn.isTag)(e)}qe.isTag=MT;function xT(e){return e.type===cn.ElementType.CDATA}qe.isCDATA=xT;function FT(e){return e.type===cn.ElementType.Text}qe.isText=FT;function WT(e){return e.type===cn.ElementType.Comment}qe.isComment=WT;function GT(e){return e.type===cn.ElementType.Directive}qe.isDirective=GT;function zT(e){return e.type===cn.ElementType.Root}qe.isDocument=zT;function eEe(e){return Object.prototype.hasOwnProperty.call(e,"children")}qe.hasChildren=eEe;function Wf(e,t){t===void 0&&(t=!1);var n;if(FT(e))n=new PT(e.data);else if(WT(e))n=new wT(e.data);else if(MT(e)){var r=t?Zc(e.children):[],a=new UT(e.name,so({},e.attribs),r);r.forEach(function(u){return u.parent=a}),e.namespace!=null&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=so({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=so({},e["x-attribsPrefix"])),n=a}else if(xT(e)){var r=t?Zc(e.children):[],s=new $T(r);r.forEach(function(c){return c.parent=s}),n=s}else if(zT(e)){var r=t?Zc(e.children):[],o=new kT(r);r.forEach(function(c){return c.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(GT(e)){var i=new LT(e.name,e.data);e["x-name"]!=null&&(i["x-name"]=e["x-name"],i["x-publicId"]=e["x-publicId"],i["x-systemId"]=e["x-systemId"]),n=i}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}qe.cloneNode=Wf;function Zc(e){for(var t=e.map(function(r){return Wf(r,!0)}),n=1;n$\x80-\uFFFF]/g;var t=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(a,s){return a.codePointAt(s)}:function(a,s){return(a.charCodeAt(s)&64512)===55296?(a.charCodeAt(s)-55296)*1024+a.charCodeAt(s+1)-56320+65536:a.charCodeAt(s)};function n(a){for(var s="",o=0,i;(i=e.xmlReplacer.exec(a))!==null;){var u=i.index,c=a.charCodeAt(u),l=t.get(c);l!==void 0?(s+=a.substring(o,u)+l,o=u+1):(s+="".concat(a.substring(o,u),"").concat((0,e.getCodePoint)(a,u).toString(16),";"),o=e.xmlReplacer.lastIndex+=+((c&64512)===55296))}return s+a.substr(o)}e.encodeXML=n,e.escape=n;function r(a,s){return function(i){for(var u,c=0,l="";u=a.exec(i);)c!==u.index&&(l+=i.substring(c,u.index)),l+=s.get(u[0].charCodeAt(0)),c=u.index+1;return l+i.substring(c)}}e.escapeUTF8=r(/[&<>'"]/g,t),e.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(Ru);var tEe=Le&&Le.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_a,"__esModule",{value:!0});_a.encodeNonAsciiHTML=_a.encodeHTML=void 0;var nEe=tEe(Gf),HT=Ru,rEe=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function aEe(e){return jT(rEe,e)}_a.encodeHTML=aEe;function sEe(e){return jT(HT.xmlReplacer,e)}_a.encodeNonAsciiHTML=sEe;function jT(e,t){for(var n="",r=0,a;(a=e.exec(t))!==null;){var s=a.index;n+=t.substring(r,s);var o=t.charCodeAt(s),i=nEe.default.get(o);if(typeof i=="object"){if(s+1"):(r+=">",e.children.length>0&&(r+=lc(e.children,t)),(t.xmlMode||!n_.has(e.name))&&(r+="".concat(e.name,">"))),r}function EEe(e){return"<".concat(e.data,">")}function hEe(e,t){var n,r=e.data||"";return((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&cEe.has(e.parent.name))&&(r=t.xmlMode||t.encodeEntities!=="utf8"?(0,Nu.encodeXML)(r):(0,Nu.escapeText)(r)),r}function TEe(e){return"")}function gEe(e){return"")}var AEe=Le&&Le.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hn,"__esModule",{value:!0});hn.innerText=hn.textContent=hn.getText=hn.getInnerHTML=hn.getOuterHTML=void 0;var Zn=mr,SEe=AEe(jo),OEe=ys;function KT(e,t){return(0,SEe.default)(e,t)}hn.getOuterHTML=KT;function IEe(e,t){return(0,Zn.hasChildren)(e)?e.children.map(function(n){return KT(n,t)}).join(""):""}hn.getInnerHTML=IEe;function Bi(e){return Array.isArray(e)?e.map(Bi).join(""):(0,Zn.isTag)(e)?e.name==="br"?`
+`:Bi(e.children):(0,Zn.isCDATA)(e)?Bi(e.children):(0,Zn.isText)(e)?e.data:""}hn.getText=Bi;function cd(e){return Array.isArray(e)?e.map(cd).join(""):(0,Zn.hasChildren)(e)&&!(0,Zn.isComment)(e)?cd(e.children):(0,Zn.isText)(e)?e.data:""}hn.textContent=cd;function ld(e){return Array.isArray(e)?e.map(ld).join(""):(0,Zn.hasChildren)(e)&&(e.type===OEe.ElementType.Tag||(0,Zn.isCDATA)(e))?ld(e.children):(0,Zn.isText)(e)?e.data:""}hn.innerText=ld;var $t={};Object.defineProperty($t,"__esModule",{value:!0});$t.prevElementSibling=$t.nextElementSibling=$t.getName=$t.hasAttrib=$t.getAttributeValue=$t.getSiblings=$t.getParent=$t.getChildren=void 0;var zf=mr;function YT(e){return(0,zf.hasChildren)(e)?e.children:[]}$t.getChildren=YT;function qT(e){return e.parent||null}$t.getParent=qT;function vEe(e){var t,n,r=qT(e);if(r!=null)return YT(r);for(var a=[e],s=e.prev,o=e.next;s!=null;)a.unshift(s),t=s,s=t.prev;for(;o!=null;)a.push(o),n=o,o=n.next;return a}$t.getSiblings=vEe;function bEe(e,t){var n;return(n=e.attribs)===null||n===void 0?void 0:n[t]}$t.getAttributeValue=bEe;function REe(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}$t.hasAttrib=REe;function NEe(e){return e.name}$t.getName=NEe;function yEe(e){for(var t,n=e.next;n!==null&&!(0,zf.isTag)(n);)t=n,n=t.next;return n}$t.nextElementSibling=yEe;function CEe(e){for(var t,n=e.prev;n!==null&&!(0,zf.isTag)(n);)t=n,n=t.prev;return n}$t.prevElementSibling=CEe;var un={};Object.defineProperty(un,"__esModule",{value:!0});un.prepend=un.prependChild=un.append=un.appendChild=un.replaceElement=un.removeElement=void 0;function Vo(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}un.removeElement=Vo;function DEe(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var a=t.parent=e.parent;if(a){var s=a.children;s[s.lastIndexOf(e)]=t,e.parent=null}}un.replaceElement=DEe;function PEe(e,t){if(Vo(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null}un.appendChild=PEe;function wEe(e,t){Vo(t);var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var a=n.children;a.splice(a.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}un.append=wEe;function LEe(e,t){if(Vo(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){var n=e.children[1];n.prev=t,t.next=n}else t.next=null}un.prependChild=LEe;function $Ee(e,t){Vo(t);var n=e.parent;if(n){var r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}un.prepend=$Ee;var Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.findAll=Qt.existsOne=Qt.findOne=Qt.findOneChild=Qt.find=Qt.filter=void 0;var dc=mr;function kEe(e,t,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),XT(e,Array.isArray(t)?t:[t],n,r)}Qt.filter=kEe;function XT(e,t,n,r){for(var a=[],s=[t],o=[0];;){if(o[0]>=s[0].length){if(o.length===1)return a;s.shift(),o.shift();continue}var i=s[0][o[0]++];if(e(i)&&(a.push(i),--r<=0))return a;n&&(0,dc.hasChildren)(i)&&i.children.length>0&&(o.unshift(0),s.unshift(i.children))}}Qt.find=XT;function UEe(e,t){return t.find(e)}Qt.findOneChild=UEe;function ZT(e,t,n){n===void 0&&(n=!0);for(var r=null,a=0;a0&&(r=ZT(e,s.children,!0));else continue}return r}Qt.findOne=ZT;function QT(e,t){return t.some(function(n){return(0,dc.isTag)(n)&&(e(n)||QT(e,n.children))})}Qt.existsOne=QT;function MEe(e,t){for(var n=[],r=[t],a=[0];;){if(a[0]>=r[0].length){if(r.length===1)return n;r.shift(),a.shift();continue}var s=r[0][a[0]++];(0,dc.isTag)(s)&&(e(s)&&n.push(s),s.children.length>0&&(a.unshift(0),r.unshift(s.children)))}}Qt.findAll=MEe;var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.getElementsByTagType=Tn.getElementsByTagName=Tn.getElementById=Tn.getElements=Tn.testElement=void 0;var sa=mr,fc=Qt,yu={tag_name:function(e){return typeof e=="function"?function(t){return(0,sa.isTag)(t)&&e(t.name)}:e==="*"?sa.isTag:function(t){return(0,sa.isTag)(t)&&t.name===e}},tag_type:function(e){return typeof e=="function"?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return typeof e=="function"?function(t){return(0,sa.isText)(t)&&e(t.data)}:function(t){return(0,sa.isText)(t)&&t.data===e}}};function JT(e,t){return typeof t=="function"?function(n){return(0,sa.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,sa.isTag)(n)&&n.attribs[e]===t}}function xEe(e,t){return function(n){return e(n)||t(n)}}function eg(e){var t=Object.keys(e).map(function(n){var r=e[n];return Object.prototype.hasOwnProperty.call(yu,n)?yu[n](r):JT(n,r)});return t.length===0?null:t.reduce(xEe)}function FEe(e,t){var n=eg(e);return n?n(t):!0}Tn.testElement=FEe;function WEe(e,t,n,r){r===void 0&&(r=1/0);var a=eg(e);return a?(0,fc.filter)(a,t,n,r):[]}Tn.getElements=WEe;function GEe(e,t,n){return n===void 0&&(n=!0),Array.isArray(t)||(t=[t]),(0,fc.findOne)(JT("id",e),t,n)}Tn.getElementById=GEe;function zEe(e,t,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,fc.filter)(yu.tag_name(e),t,n,r)}Tn.getElementsByTagName=zEe;function BEe(e,t,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,fc.filter)(yu.tag_type(e),t,n,r)}Tn.getElementsByTagType=BEe;var tg={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var t=mr;function n(o){for(var i=o.length;--i>=0;){var u=o[i];if(i>0&&o.lastIndexOf(u,i-1)>=0){o.splice(i,1);continue}for(var c=u.parent;c;c=c.parent)if(o.includes(c)){o.splice(i,1);break}}return o}e.removeSubsets=n;var r;(function(o){o[o.DISCONNECTED=1]="DISCONNECTED",o[o.PRECEDING=2]="PRECEDING",o[o.FOLLOWING=4]="FOLLOWING",o[o.CONTAINS=8]="CONTAINS",o[o.CONTAINED_BY=16]="CONTAINED_BY"})(r=e.DocumentPosition||(e.DocumentPosition={}));function a(o,i){var u=[],c=[];if(o===i)return 0;for(var l=(0,t.hasChildren)(o)?o:o.parent;l;)u.unshift(l),l=l.parent;for(l=(0,t.hasChildren)(i)?i:i.parent;l;)c.unshift(l),l=l.parent;for(var f=Math.min(u.length,c.length),d=0;d_.indexOf(R)?m===i?r.FOLLOWING|r.CONTAINED_BY:r.FOLLOWING:m===o?r.PRECEDING|r.CONTAINS:r.PRECEDING}e.compareDocumentPosition=a;function s(o){return o=o.filter(function(i,u,c){return!c.includes(i,u+1)}),o.sort(function(i,u){var c=a(i,u);return c&r.PRECEDING?-1:c&r.FOLLOWING?1:0}),o}e.uniqueSort=s})(tg);var pc={};Object.defineProperty(pc,"__esModule",{value:!0});pc.getFeed=void 0;var HEe=hn,Ko=Tn;function jEe(e){var t=Cu(XEe,e);return t?t.name==="feed"?VEe(t):KEe(t):null}pc.getFeed=jEe;function VEe(e){var t,n=e.children,r={type:"atom",items:(0,Ko.getElementsByTagName)("entry",n).map(function(o){var i,u=o.children,c={media:ng(u)};sn(c,"id","id",u),sn(c,"title","title",u);var l=(i=Cu("link",u))===null||i===void 0?void 0:i.attribs.href;l&&(c.link=l);var f=Mr("summary",u)||Mr("content",u);f&&(c.description=f);var d=Mr("updated",u);return d&&(c.pubDate=new Date(d)),c})};sn(r,"id","id",n),sn(r,"title","title",n);var a=(t=Cu("link",n))===null||t===void 0?void 0:t.attribs.href;a&&(r.link=a),sn(r,"description","subtitle",n);var s=Mr("updated",n);return s&&(r.updated=new Date(s)),sn(r,"author","email",n,!0),r}function KEe(e){var t,n,r=(n=(t=Cu("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&n!==void 0?n:[],a={type:e.name.substr(0,3),id:"",items:(0,Ko.getElementsByTagName)("item",e.children).map(function(o){var i=o.children,u={media:ng(i)};sn(u,"id","guid",i),sn(u,"title","title",i),sn(u,"link","link",i),sn(u,"description","description",i);var c=Mr("pubDate",i)||Mr("dc:date",i);return c&&(u.pubDate=new Date(c)),u})};sn(a,"title","title",r),sn(a,"link","link",r),sn(a,"description","description",r);var s=Mr("lastBuildDate",r);return s&&(a.updated=new Date(s)),sn(a,"author","managingEditor",r,!0),a}var YEe=["url","type","lang"],qEe=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function ng(e){return(0,Ko.getElementsByTagName)("media:content",e).map(function(t){for(var n=t.attribs,r={medium:n.medium,isDefault:!!n.isDefault},a=0,s=YEe;a{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Bf={};Object.defineProperty(Bf,"__esModule",{value:!0});/*!
* is-plain-object
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
- */function r_(e){return Object.prototype.toString.call(e)==="[object Object]"}function QEe(e){var t,n;return r_(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(r_(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}Bf.isPlainObject=QEe;var JEe=function(t){return ehe(t)&&!the(t)};function ehe(e){return!!e&&typeof e=="object"}function the(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ahe(e)}var nhe=typeof Symbol=="function"&&Symbol.for,rhe=nhe?Symbol.for("react.element"):60103;function ahe(e){return e.$$typeof===rhe}function she(e){return Array.isArray(e)?[]:{}}function bo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ms(she(e),e,t):e}function ohe(e,t,n){return e.concat(t).map(function(r){return bo(r,n)})}function ihe(e,t){if(!t.customMerge)return ms;var n=t.customMerge(e);return typeof n=="function"?n:ms}function uhe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function a_(e){return Object.keys(e).concat(uhe(e))}function rg(e,t){try{return t in e}catch{return!1}}function che(e,t){return rg(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function lhe(e,t,n){var r={};return n.isMergeableObject(e)&&a_(e).forEach(function(a){r[a]=bo(e[a],n)}),a_(t).forEach(function(a){che(e,a)||(rg(e,a)&&n.isMergeableObject(t[a])?r[a]=ihe(a,n)(e[a],t[a],n):r[a]=bo(t[a],n))}),r}function ms(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||ohe,n.isMergeableObject=n.isMergeableObject||JEe,n.cloneUnlessOtherwiseSpecified=bo;var r=Array.isArray(t),a=Array.isArray(e),s=r===a;return s?r?n.arrayMerge(e,t,n):lhe(e,t,n):bo(t,n)}ms.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return ms(r,a,n)},{})};var dhe=ms,fhe=dhe,ag={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.parseSrcset=n()})(Le,function(){return function(t){function n(g){return g===" "||g===" "||g===`
-`||g==="\f"||g==="\r"}function r(g){var L,w=g.exec(t.substring(R));if(w)return L=w[0],R+=L.length,L}for(var a=t.length,s=/^[ \t\n\r\u000c]+/,o=/^[, \t\n\r\u000c]+/,i=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,c=/^\d+$/,l=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,f,d,m,_,T,R=0,I=[];;){if(r(o),R>=a)return I;f=r(i),d=[],f.slice(-1)===","?(f=f.replace(u,""),v()):b()}function b(){for(r(s),m="",_="in descriptor";;){if(T=t.charAt(R),_==="in descriptor")if(n(T))m&&(d.push(m),m="",_="after descriptor");else if(T===","){R+=1,m&&d.push(m),v();return}else if(T==="(")m=m+T,_="in parens";else if(T===""){m&&d.push(m),v();return}else m=m+T;else if(_==="in parens")if(T===")")m=m+T,_="in descriptor";else if(T===""){d.push(m),v();return}else m=m+T;else if(_==="after descriptor"&&!n(T))if(T===""){v();return}else _="in descriptor",R-=1;R+=1}}function v(){var g=!1,L,w,P,j,G={},z,k,Z,ee,te;for(j=0;j",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let n=this.source;t==null&&(t=s_.isColorSupported),o_&&t&&(n=o_(n));let r=n.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,r.length),o=String(s).length,i,u;if(t){let{bold:c,gray:l,red:f}=s_.createColors(!0);i=d=>c(f(d)),u=d=>l(d)}else i=u=c=>c;return r.slice(a,s).map((c,l)=>{let f=a+1+l,d=" "+(" "+f).slice(-o)+" | ";if(f===this.line){let m=u(d.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+u(d)+c+`
+ */function r_(e){return Object.prototype.toString.call(e)==="[object Object]"}function QEe(e){var t,n;return r_(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(r_(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}Bf.isPlainObject=QEe;var JEe=function(t){return ehe(t)&&!the(t)};function ehe(e){return!!e&&typeof e=="object"}function the(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ahe(e)}var nhe=typeof Symbol=="function"&&Symbol.for,rhe=nhe?Symbol.for("react.element"):60103;function ahe(e){return e.$$typeof===rhe}function she(e){return Array.isArray(e)?[]:{}}function bo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ms(she(e),e,t):e}function ohe(e,t,n){return e.concat(t).map(function(r){return bo(r,n)})}function ihe(e,t){if(!t.customMerge)return ms;var n=t.customMerge(e);return typeof n=="function"?n:ms}function uhe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function a_(e){return Object.keys(e).concat(uhe(e))}function rg(e,t){try{return t in e}catch{return!1}}function che(e,t){return rg(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function lhe(e,t,n){var r={};return n.isMergeableObject(e)&&a_(e).forEach(function(a){r[a]=bo(e[a],n)}),a_(t).forEach(function(a){che(e,a)||(rg(e,a)&&n.isMergeableObject(t[a])?r[a]=ihe(a,n)(e[a],t[a],n):r[a]=bo(t[a],n))}),r}function ms(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||ohe,n.isMergeableObject=n.isMergeableObject||JEe,n.cloneUnlessOtherwiseSpecified=bo;var r=Array.isArray(t),a=Array.isArray(e),s=r===a;return s?r?n.arrayMerge(e,t,n):lhe(e,t,n):bo(t,n)}ms.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return ms(r,a,n)},{})};var dhe=ms,fhe=dhe,ag={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.parseSrcset=n()})(Le,function(){return function(t){function n(T){return T===" "||T===" "||T===`
+`||T==="\f"||T==="\r"}function r(T){var L,w=T.exec(t.substring(R));if(w)return L=w[0],R+=L.length,L}for(var a=t.length,s=/^[ \t\n\r\u000c]+/,o=/^[, \t\n\r\u000c]+/,i=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,c=/^\d+$/,l=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,f,d,m,_,g,R=0,I=[];;){if(r(o),R>=a)return I;f=r(i),d=[],f.slice(-1)===","?(f=f.replace(u,""),v()):b()}function b(){for(r(s),m="",_="in descriptor";;){if(g=t.charAt(R),_==="in descriptor")if(n(g))m&&(d.push(m),m="",_="after descriptor");else if(g===","){R+=1,m&&d.push(m),v();return}else if(g==="(")m=m+g,_="in parens";else if(g===""){m&&d.push(m),v();return}else m=m+g;else if(_==="in parens")if(g===")")m=m+g,_="in descriptor";else if(g===""){d.push(m),v();return}else m=m+g;else if(_==="after descriptor"&&!n(g))if(g===""){v();return}else _="in descriptor",R-=1;R+=1}}function v(){var T=!1,L,w,P,j,G={},z,k,Z,ee,te;for(j=0;j",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let n=this.source;t==null&&(t=s_.isColorSupported),o_&&t&&(n=o_(n));let r=n.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,r.length),o=String(s).length,i,u;if(t){let{bold:c,gray:l,red:f}=s_.createColors(!0);i=d=>c(f(d)),u=d=>l(d)}else i=u=c=>c;return r.slice(a,s).map((c,l)=>{let f=a+1+l,d=" "+(" "+f).slice(-o)+" | ";if(f===this.line){let m=u(d.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+u(d)+c+`
`+m+i("^")}return" "+u(d)+c}).join(`
`)}toString(){let t=this.showSourceCode();return t&&(t=`
@@ -384,7 +384,7 @@ Wymagania prawne mogę być inne, jeśli ten serwer znajduje się w innej jurysd
`)&&(n=`\r
`),this.css+=n+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),r=t.root||ji(t.file),a;this.mapOpts.sourcesContent===!1?(a=new cg(t.text),a.sourcesContent&&(a.sourcesContent=a.sourcesContent.map(()=>null))):a=t.consumer(),this.map.applySourceMap(a,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Fhe&&xhe&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,n=>{t+=n}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Hi.fromSourceMap(t)}else this.map=new Hi({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Hi({file:this.outputFile()});let t=1,n=1,r="",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(i,u,c)=>{if(this.css+=i,u&&c!=="end"&&(a.generated.line=t,a.generated.column=n-1,u.source&&u.source.start?(a.source=this.sourcePath(u),a.original.line=u.source.start.line,a.original.column=u.source.start.column-1,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,this.map.addMapping(a))),s=i.match(/\n/g),s?(t+=s.length,o=i.lastIndexOf(`
`),n=i.length-o):n+=i.length,u&&c!=="start"){let l=u.parent||{raws:{}};(!(u.type==="decl"||u.type==="atrule"&&!u.nodes)||u!==l.last||l.raws.semicolon)&&(u.source&&u.source.end?(a.source=this.sourcePath(u),a.original.line=u.source.end.line,a.original.column=u.source.end.column-1,a.generated.line=t,a.generated.column=n-2,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,a.generated.line=t,a.generated.column=n-1,this.map.addMapping(a)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let n=this.memoizedPaths.get(t);if(n)return n;let r=this.opts.to?ji(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=ji(dg(r,this.mapOpts.annotation)));let a=lg(r,t);return this.memoizedPaths.set(t,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let n=t.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let t=new Mhe(this.css,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(n=>{if(n.source){let r=n.source.input.from;if(r&&!t[r]){t[r]=!0;let a=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(a,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(n,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let n=this.memoizedFileURLs.get(t);if(n)return n;if(p_){let r=p_(t).toString();return this.memoizedFileURLs.set(t,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let n=this.memoizedURLs.get(t);if(n)return n;fg==="\\"&&(t=t.replace(/\\/g,"/"));let r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}};var pg=Whe;let Ghe=_c,Ad=class extends Ghe{constructor(t){super(t),this.type="comment"}};var Tc=Ad;Ad.default=Ad;let{isClean:mg,my:_g}=Yo,Eg=Ec,hg=Tc,zhe=_c,Tg,Vf,Kf,gg;function Ag(e){return e.map(t=>(t.nodes&&(t.nodes=Ag(t.nodes)),delete t.source,t))}function Sg(e){if(e[mg]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Sg(t)}let _r=class Og extends zhe{append(...t){for(let n of t){let r=this.normalize(n,this.last);for(let a of r)this.proxyOf.nodes.push(a)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let n of this.nodes)n.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,a;for(;this.indexes[n]t[n](...r.map(a=>typeof a=="function"?(s,o)=>a(s.toProxy(),o):a)):n==="every"||n==="some"?r=>t[n]((a,...s)=>r(a.toProxy(),...s)):n==="root"?()=>t.root().toProxy():n==="nodes"?t.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?t[n].toProxy():t[n]:t[n]},set(t,n,r){return t[n]===r||(t[n]=r,(n==="name"||n==="params"||n==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,n){let r=this.index(t),a=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let o of a)this.proxyOf.nodes.splice(r+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],r"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new Eg(t)]}else if(t.selector)t=[new Vf(t)];else if(t.name)t=[new Kf(t)];else if(t.text)t=[new hg(t)];else throw new Error("Unknown node type in node creation");return t.map(a=>(a[_g]||Og.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[mg]&&Sg(a),typeof a.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(a.raws.before=n.raws.before.replace(/\S/g,"")),a.parent=this.proxyOf,a))}prepend(...t){t=t.reverse();for(let n of t){let r=this.normalize(n,this.first,"prepend").reverse();for(let a of r)this.proxyOf.nodes.unshift(a);for(let a in this.indexes)this.indexes[a]=this.indexes[a]+r.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=t&&(this.indexes[r]=n-1);return this.markDirty(),this}replaceValues(t,n,r){return r||(r=n,n={}),this.walkDecls(a=>{n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((n,r)=>{let a;try{a=t(n,r)}catch(s){throw n.addToError(s)}return a!==!1&&n.walk&&(a=n.walk(t)),a})}walkAtRules(t,n){return n?t instanceof RegExp?this.walk((r,a)=>{if(r.type==="atrule"&&t.test(r.name))return n(r,a)}):this.walk((r,a)=>{if(r.type==="atrule"&&r.name===t)return n(r,a)}):(n=t,this.walk((r,a)=>{if(r.type==="atrule")return n(r,a)}))}walkComments(t){return this.walk((n,r)=>{if(n.type==="comment")return t(n,r)})}walkDecls(t,n){return n?t instanceof RegExp?this.walk((r,a)=>{if(r.type==="decl"&&t.test(r.prop))return n(r,a)}):this.walk((r,a)=>{if(r.type==="decl"&&r.prop===t)return n(r,a)}):(n=t,this.walk((r,a)=>{if(r.type==="decl")return n(r,a)}))}walkRules(t,n){return n?t instanceof RegExp?this.walk((r,a)=>{if(r.type==="rule"&&t.test(r.selector))return n(r,a)}):this.walk((r,a)=>{if(r.type==="rule"&&r.selector===t)return n(r,a)}):(n=t,this.walk((r,a)=>{if(r.type==="rule")return n(r,a)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};_r.registerParse=e=>{Tg=e};_r.registerRule=e=>{Vf=e};_r.registerAtRule=e=>{Kf=e};_r.registerRoot=e=>{gg=e};var Sa=_r;_r.default=_r;_r.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,Kf.prototype):e.type==="rule"?Object.setPrototypeOf(e,Vf.prototype):e.type==="decl"?Object.setPrototypeOf(e,Eg.prototype):e.type==="comment"?Object.setPrototypeOf(e,hg.prototype):e.type==="root"&&Object.setPrototypeOf(e,gg.prototype),e[_g]=!0,e.nodes&&e.nodes.forEach(t=>{_r.rebuild(t)})};let Bhe=Sa,Ig,vg,Ro=class extends Bhe{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new Ig(new vg,this,t).stringify()}};Ro.registerLazyResult=e=>{Ig=e};Ro.registerProcessor=e=>{vg=e};var Yf=Ro;Ro.default=Ro;let Sd=class{constructor(t,n={}){if(this.type="warning",this.text=t,n.node&&n.node.source){let r=n.node.rangeBy(n);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in n)this[r]=n[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var bg=Sd;Sd.default=Sd;let Hhe=bg,Od=class{constructor(t,n,r){this.processor=t,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new Hhe(t,n);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>t.type==="warning")}get content(){return this.css}};var qf=Od;Od.default=Od;const tl="'".charCodeAt(0),m_='"'.charCodeAt(0),hi="\\".charCodeAt(0),__="/".charCodeAt(0),Ti=`
-`.charCodeAt(0),Gs=" ".charCodeAt(0),gi="\f".charCodeAt(0),Ai=" ".charCodeAt(0),Si="\r".charCodeAt(0),jhe="[".charCodeAt(0),Vhe="]".charCodeAt(0),Khe="(".charCodeAt(0),Yhe=")".charCodeAt(0),qhe="{".charCodeAt(0),Xhe="}".charCodeAt(0),Zhe=";".charCodeAt(0),Qhe="*".charCodeAt(0),Jhe=":".charCodeAt(0),e1e="@".charCodeAt(0),Oi=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ii=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,t1e=/.[\r\n"'(/\\]/,E_=/[\da-f]/i;var n1e=function(t,n={}){let r=t.css.valueOf(),a=n.ignoreErrors,s,o,i,u,c,l,f,d,m,_,T=r.length,R=0,I=[],b=[];function v(){return R}function g(j){throw t.error("Unclosed "+j,R)}function L(){return b.length===0&&R>=T}function w(j){if(b.length)return b.pop();if(R>=T)return;let G=j?j.ignoreUnclosed:!1;switch(s=r.charCodeAt(R),s){case Ti:case Gs:case Ai:case Si:case gi:{o=R;do o+=1,s=r.charCodeAt(o);while(s===Gs||s===Ti||s===Ai||s===Si||s===gi);_=["space",r.slice(R,o)],R=o-1;break}case jhe:case Vhe:case qhe:case Xhe:case Jhe:case Zhe:case Yhe:{let z=String.fromCharCode(s);_=[z,z,R];break}case Khe:{if(d=I.length?I.pop()[1]:"",m=r.charCodeAt(R+1),d==="url"&&m!==tl&&m!==m_&&m!==Gs&&m!==Ti&&m!==Ai&&m!==gi&&m!==Si){o=R;do{if(l=!1,o=r.indexOf(")",o+1),o===-1)if(a||G){o=R;break}else g("bracket");for(f=o;r.charCodeAt(f-1)===hi;)f-=1,l=!l}while(l);_=["brackets",r.slice(R,o+1),R,o],R=o}else o=r.indexOf(")",R+1),u=r.slice(R,o+1),o===-1||t1e.test(u)?_=["(","(",R]:(_=["brackets",u,R,o],R=o);break}case tl:case m_:{i=s===tl?"'":'"',o=R;do{if(l=!1,o=r.indexOf(i,o+1),o===-1)if(a||G){o=R+1;break}else g("string");for(f=o;r.charCodeAt(f-1)===hi;)f-=1,l=!l}while(l);_=["string",r.slice(R,o+1),R,o],R=o;break}case e1e:{Oi.lastIndex=R+1,Oi.test(r),Oi.lastIndex===0?o=r.length-1:o=Oi.lastIndex-2,_=["at-word",r.slice(R,o+1),R,o],R=o;break}case hi:{for(o=R,c=!0;r.charCodeAt(o+1)===hi;)o+=1,c=!c;if(s=r.charCodeAt(o+1),c&&s!==__&&s!==Gs&&s!==Ti&&s!==Ai&&s!==Si&&s!==gi&&(o+=1,E_.test(r.charAt(o)))){for(;E_.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===Gs&&(o+=1)}_=["word",r.slice(R,o+1),R,o],R=o;break}default:{s===__&&r.charCodeAt(R+1)===Qhe?(o=r.indexOf("*/",R+2)+1,o===0&&(a||G?o=r.length:g("comment")),_=["comment",r.slice(R,o+1),R,o],R=o):(Ii.lastIndex=R+1,Ii.test(r),Ii.lastIndex===0?o=r.length-1:o=Ii.lastIndex-2,_=["word",r.slice(R,o+1),R,o],I.push(_),R=o);break}}return R++,_}function P(j){b.push(j)}return{back:P,endOfFile:L,nextToken:w,position:v}};let Rg=Sa,Pu=class extends Rg{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};var Xf=Pu;Pu.default=Pu;Rg.registerAtRule(Pu);let Ng=Sa,yg,Cg,_s=class extends Ng{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,n,r){let a=super.normalize(t);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let s of a)s.raws.before=n.raws.before}return a}removeChild(t,n){let r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t={}){return new yg(new Cg,this,t).stringify()}};_s.registerLazyResult=e=>{yg=e};_s.registerProcessor=e=>{Cg=e};var qo=_s;_s.default=_s;Ng.registerRoot(_s);let No={comma(e){return No.split(e,[","],!0)},space(e){let t=[" ",`
+`.charCodeAt(0),Gs=" ".charCodeAt(0),gi="\f".charCodeAt(0),Ai=" ".charCodeAt(0),Si="\r".charCodeAt(0),jhe="[".charCodeAt(0),Vhe="]".charCodeAt(0),Khe="(".charCodeAt(0),Yhe=")".charCodeAt(0),qhe="{".charCodeAt(0),Xhe="}".charCodeAt(0),Zhe=";".charCodeAt(0),Qhe="*".charCodeAt(0),Jhe=":".charCodeAt(0),e1e="@".charCodeAt(0),Oi=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ii=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,t1e=/.[\r\n"'(/\\]/,E_=/[\da-f]/i;var n1e=function(t,n={}){let r=t.css.valueOf(),a=n.ignoreErrors,s,o,i,u,c,l,f,d,m,_,g=r.length,R=0,I=[],b=[];function v(){return R}function T(j){throw t.error("Unclosed "+j,R)}function L(){return b.length===0&&R>=g}function w(j){if(b.length)return b.pop();if(R>=g)return;let G=j?j.ignoreUnclosed:!1;switch(s=r.charCodeAt(R),s){case Ti:case Gs:case Ai:case Si:case gi:{o=R;do o+=1,s=r.charCodeAt(o);while(s===Gs||s===Ti||s===Ai||s===Si||s===gi);_=["space",r.slice(R,o)],R=o-1;break}case jhe:case Vhe:case qhe:case Xhe:case Jhe:case Zhe:case Yhe:{let z=String.fromCharCode(s);_=[z,z,R];break}case Khe:{if(d=I.length?I.pop()[1]:"",m=r.charCodeAt(R+1),d==="url"&&m!==tl&&m!==m_&&m!==Gs&&m!==Ti&&m!==Ai&&m!==gi&&m!==Si){o=R;do{if(l=!1,o=r.indexOf(")",o+1),o===-1)if(a||G){o=R;break}else T("bracket");for(f=o;r.charCodeAt(f-1)===hi;)f-=1,l=!l}while(l);_=["brackets",r.slice(R,o+1),R,o],R=o}else o=r.indexOf(")",R+1),u=r.slice(R,o+1),o===-1||t1e.test(u)?_=["(","(",R]:(_=["brackets",u,R,o],R=o);break}case tl:case m_:{i=s===tl?"'":'"',o=R;do{if(l=!1,o=r.indexOf(i,o+1),o===-1)if(a||G){o=R+1;break}else T("string");for(f=o;r.charCodeAt(f-1)===hi;)f-=1,l=!l}while(l);_=["string",r.slice(R,o+1),R,o],R=o;break}case e1e:{Oi.lastIndex=R+1,Oi.test(r),Oi.lastIndex===0?o=r.length-1:o=Oi.lastIndex-2,_=["at-word",r.slice(R,o+1),R,o],R=o;break}case hi:{for(o=R,c=!0;r.charCodeAt(o+1)===hi;)o+=1,c=!c;if(s=r.charCodeAt(o+1),c&&s!==__&&s!==Gs&&s!==Ti&&s!==Ai&&s!==Si&&s!==gi&&(o+=1,E_.test(r.charAt(o)))){for(;E_.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===Gs&&(o+=1)}_=["word",r.slice(R,o+1),R,o],R=o;break}default:{s===__&&r.charCodeAt(R+1)===Qhe?(o=r.indexOf("*/",R+2)+1,o===0&&(a||G?o=r.length:T("comment")),_=["comment",r.slice(R,o+1),R,o],R=o):(Ii.lastIndex=R+1,Ii.test(r),Ii.lastIndex===0?o=r.length-1:o=Ii.lastIndex-2,_=["word",r.slice(R,o+1),R,o],I.push(_),R=o);break}}return R++,_}function P(j){b.push(j)}return{back:P,endOfFile:L,nextToken:w,position:v}};let Rg=Sa,Pu=class extends Rg{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};var Xf=Pu;Pu.default=Pu;Rg.registerAtRule(Pu);let Ng=Sa,yg,Cg,_s=class extends Ng{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,n,r){let a=super.normalize(t);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let s of a)s.raws.before=n.raws.before}return a}removeChild(t,n){let r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t={}){return new yg(new Cg,this,t).stringify()}};_s.registerLazyResult=e=>{yg=e};_s.registerProcessor=e=>{Cg=e};var qo=_s;_s.default=_s;Ng.registerRoot(_s);let No={comma(e){return No.split(e,[","],!0)},space(e){let t=[" ",`
`," "];return No.split(e,t)},split(e,t,n){let r=[],a="",s=!1,o=0,i=!1,u="",c=!1;for(let l of e)c?c=!1:l==="\\"?c=!0:i?l===u&&(i=!1):l==='"'||l==="'"?(i=!0,u=l):l==="("?o+=1:l===")"?o>0&&(o-=1):o===0&&t.includes(l)&&(s=!0),s?(a!==""&&r.push(a.trim()),a="",s=!1):a+=l;return(n||a!=="")&&r.push(a.trim()),r}};var Dg=No;No.default=No;let Pg=Sa,r1e=Dg,wu=class extends Pg{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r1e.comma(this.selector)}set selectors(t){let n=this.selector?this.selector.match(/,\s*/):null,r=n?n[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}};var Zf=wu;wu.default=wu;Pg.registerRule(wu);let a1e=Ec,s1e=n1e,o1e=Tc,i1e=Xf,u1e=qo,h_=Zf;const T_={empty:!0,space:!0};function c1e(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}let l1e=class{constructor(t){this.input=t,this.root=new u1e,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let n=new i1e;n.name=t[1].slice(1),n.name===""&&this.unnamedAtrule(n,t),this.init(n,t[2]);let r,a,s,o=!1,i=!1,u=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){n.source.end=this.getPosition(t[2]),n.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){i=!0;break}else if(r==="}"){if(u.length>0){for(s=u.length-1,a=u[s];a&&a[0]==="space";)a=u[--s];a&&(n.source.end=this.getPosition(a[3]||a[2]),n.source.end.offset++)}this.end(t);break}else u.push(t);else u.push(t);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(n.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(n,"params",u),o&&(t=u[u.length-1],n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),i&&(n.nodes=[],this.current=n)}checkMissedSemicolon(t){let n=this.colon(t);if(n===!1)return;let r=0,a;for(let s=n-1;s>=0&&(a=t[s],!(a[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(t){let n=0,r,a,s;for(let[o,i]of t.entries()){if(r=i,a=r[0],a==="("&&(n+=1),a===")"&&(n-=1),n===0&&a===":")if(!s)this.doubleColon(r);else{if(s[0]==="word"&&s[1]==="progid")continue;return o}s=r}return!1}comment(t){let n=new o1e;this.init(n,t[2]),n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++;let r=t[1].slice(2,-2);if(/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let a=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=a[2],n.raws.left=a[1],n.raws.right=a[3]}}createTokenizer(){this.tokenizer=s1e(this.input)}decl(t,n){let r=new a1e;this.init(r,t[0][2]);let a=t[t.length-1];for(a[0]===";"&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(a[3]||a[2]||c1e(t)),r.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let c=t[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=t.shift()[1]}r.raws.between="";let s;for(;t.length;)if(s=t.shift(),s[0]===":"){r.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),r.raws.between+=s[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],i;for(;t.length&&(i=t[0][0],!(i!=="space"&&i!=="comment"));)o.push(t.shift());this.precheckMissedSemicolon(t);for(let c=t.length-1;c>=0;c--){if(s=t[c],s[1].toLowerCase()==="!important"){r.important=!0;let l=this.stringFrom(t,c);l=this.spacesFromEnd(t)+l,l!==" !important"&&(r.raws.important=l);break}else if(s[1].toLowerCase()==="important"){let l=t.slice(0),f="";for(let d=c;d>0;d--){let m=l[d][0];if(f.trim().indexOf("!")===0&&m!=="space")break;f=l.pop()[1]+f}f.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=f,t=l)}if(s[0]!=="space"&&s[0]!=="comment")break}t.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(t),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let n=new h_;this.init(n,t[2]),n.selector="",n.raws.between="",this.current=n}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let n=this.input.fromOffset(t);return{column:n.col,line:n.line,offset:t}}init(t,n){this.current.push(t),t.source={input:this.input,start:this.getPosition(n)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let n=!1,r=null,a=!1,s=null,o=[],i=t[1].startsWith("--"),u=[],c=t;for(;c;){if(r=c[0],u.push(c),r==="("||r==="[")s||(s=c),o.push(r==="("?")":"]");else if(i&&a&&r==="{")s||(s=c),o.push("}");else if(o.length===0)if(r===";")if(a){this.decl(u,i);return}else break;else if(r==="{"){this.rule(u);return}else if(r==="}"){this.tokenizer.back(u.pop()),n=!0;break}else r===":"&&(a=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),o.length>0&&this.unclosedBracket(s),n&&a){if(!i)for(;u.length&&(c=u[u.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,i)}else this.unknownWord(u)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,n,r,a){let s,o,i=r.length,u="",c=!0,l,f;for(let d=0;dm+_[1],"");t.raws[n]={raw:d,value:u}}t[n]=u}rule(t){t.pop();let n=new h_;this.init(n,t[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(n,"selector",t),this.current=n}spacesAndCommentsFromEnd(t){let n,r="";for(;t.length&&(n=t[t.length-1][0],!(n!=="space"&&n!=="comment"));)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let n,r="";for(;t.length&&(n=t[0][0],!(n!=="space"&&n!=="comment"));)r+=t.shift()[1];return r}spacesFromEnd(t){let n,r="";for(;t.length&&(n=t[t.length-1][0],n==="space");)r=t.pop()[1]+r;return r}stringFrom(t,n){let r="";for(let a=n;aId(t)),e}let vd={},hs=class Lg{constructor(t,n,r){this.stringified=!1,this.processed=!1;let a;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))a=Id(n);else if(n instanceof Lg||n instanceof g_)a=Id(n.root),n.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let s=A1e;r.syntax&&(s=r.syntax.parse),r.parser&&(s=r.parser),s.parse&&(s=s.parse);try{a=s(n,r)}catch(o){this.processed=!0,this.error=o}a&&!a[_1e]&&T1e.rebuild(a)}this.result=new g_(t,a,r),this.helpers={...vd,postcss:vd,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,n){let r=this.result.lastPlugin;try{n&&n.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin?(t.plugin=r.postcssPlugin,t.setMessage()):r.postcssVersion}catch(a){console&&console.error&&console.error(a)}return t}prepareVisitors(){this.listeners={};let t=(n,r,a)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([n,a])};for(let n of this.plugins)if(typeof n=="object")for(let r in n){if(!I1e[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!v1e[r])if(typeof n[r]=="object")for(let a in n[r])a==="*"?t(n,r,n[r][a]):t(n,r+"-"+a.toLowerCase(),n[r][a]);else typeof n[r]=="function"&&t(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t0;){let r=this.visitTick(n);if(zs(r))try{await r}catch(a){let s=n[n.length-1].node;throw this.handleError(a,s)}}}if(this.listeners.OnceExit)for(let[n,r]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(t.type==="document"){let a=t.nodes.map(s=>r(s,this.helpers));await Promise.all(a)}else await r(t,this.helpers)}catch(a){throw this.handleError(a)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>t.Once(r,this.helpers));return zs(n[0])?Promise.all(n):n}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,n=h1e;t.syntax&&(n=t.syntax.stringify),t.stringifier&&(n=t.stringifier),n.stringify&&(n=n.stringify);let a=new E1e(n,this.result.root,this.result.opts).generate();return this.result.css=a[0],this.result.map=a[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let n=this.runOnRoot(t);if(zs(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Bn];)t[Bn]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let n of t.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,n){return this.async().then(t,n)}toString(){return this.css}visitSync(t,n){for(let[r,a]of t){this.result.lastPlugin=r;let s;try{s=a(n,this.helpers)}catch(o){throw this.handleError(o,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(zs(s))throw this.getAsyncError()}}visitTick(t){let n=t[t.length-1],{node:r,visitors:a}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){t.pop();return}if(a.length>0&&n.visitorIndex{a[Bn]||this.walkSync(a)});else{let a=this.listeners[r];if(a&&this.visitSync(a,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};hs.registerPostcss=e=>{vd=e};var $g=hs;hs.default=hs;S1e.registerLazyResult(hs);g1e.registerLazyResult(hs);let b1e=pg,R1e=mc,N1e=Qf;const y1e=qf;let bd=class{constructor(t,n,r){n=n.toString(),this.stringified=!1,this._processor=t,this._css=n,this._opts=r,this._map=void 0;let a,s=R1e;this.result=new y1e(this._processor,a,this._opts),this.result.css=n;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let i=new b1e(s,a,this._opts,n);if(i.isMap()){let[u,c]=i.generate();u&&(this.result.css=u),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,n){return this.async().then(t,n)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,n=N1e;try{t=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}};var C1e=bd;bd.default=bd;let D1e=C1e,P1e=$g,w1e=Yf,L1e=qo,yo=class{constructor(t=[]){this.version="8.4.31",this.plugins=this.normalize(t)}normalize(t){let n=[];for(let r of t)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))n=n.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)n.push(r);else if(typeof r=="function")n.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return n}process(t,n={}){return this.plugins.length===0&&typeof n.parser>"u"&&typeof n.stringifier>"u"&&typeof n.syntax>"u"?new D1e(this,t,n):new P1e(this,t,n)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};var $1e=yo;yo.default=yo;L1e.registerProcessor(yo);w1e.registerProcessor(yo);let k1e=Ec,U1e=ug,M1e=Tc,x1e=Xf,F1e=hc,W1e=qo,G1e=Zf;function Co(e,t){if(Array.isArray(e))return e.map(a=>Co(a));let{inputs:n,...r}=e;if(n){t=[];for(let a of n){let s={...a,__proto__:F1e.prototype};s.map&&(s.map={...s.map,__proto__:U1e.prototype}),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map(a=>Co(a,t))),r.source){let{inputId:a,...s}=r.source;r.source=s,a!=null&&(r.source.input=t[a])}if(r.type==="root")return new W1e(r);if(r.type==="decl")return new k1e(r);if(r.type==="rule")return new G1e(r);if(r.type==="comment")return new M1e(r);if(r.type==="atrule")return new x1e(r);throw new Error("Unknown node type: "+e.type)}var z1e=Co;Co.default=Co;let B1e=jf,kg=Ec,H1e=$g,j1e=Sa,Jf=$1e,V1e=mc,K1e=z1e,Ug=Yf,Y1e=bg,Mg=Tc,xg=Xf,q1e=qf,X1e=hc,Z1e=Qf,Q1e=Dg,Fg=Zf,Wg=qo,J1e=_c;function it(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new Jf(e)}it.plugin=function(t,n){let r=!1;function a(...o){console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),{}.LANG&&{}.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let i=n(...o);return i.postcssPlugin=t,i.postcssVersion=new Jf().version,i}let s;return Object.defineProperty(a,"postcss",{get(){return s||(s=a()),s}}),a.process=function(o,i,u){return it([a(u)]).process(o,i)},a};it.stringify=V1e;it.parse=Z1e;it.fromJSON=K1e;it.list=Q1e;it.comment=e=>new Mg(e);it.atRule=e=>new xg(e);it.decl=e=>new kg(e);it.rule=e=>new Fg(e);it.root=e=>new Wg(e);it.document=e=>new Ug(e);it.CssSyntaxError=B1e;it.Declaration=kg;it.Container=j1e;it.Processor=Jf;it.Document=Ug;it.Comment=Mg;it.Warning=Y1e;it.AtRule=xg;it.Result=q1e;it.Input=X1e;it.Rule=Fg;it.Root=Wg;it.Node=J1e;H1e.registerPostcss(it);var eTe=it;it.default=it;const tTe=DT,S_=ZEe,{isPlainObject:nTe}=Bf,O_=fhe,rTe=phe,{parse:aTe}=eTe,sTe=["img","audio","video","picture","svg","object","map","iframe","embed"],oTe=["script","style"];function Ks(e,t){e&&Object.keys(e).forEach(function(n){t(e[n],n)})}function ir(e,t){return{}.hasOwnProperty.call(e,t)}function I_(e,t){const n=[];return Ks(e,function(r){t(r)&&n.push(r)}),n}function iTe(e){for(const t in e)if(ir(e,t))return!1;return!0}function uTe(e){return e.map(function(t){if(!t.url)throw new Error("URL missing");return t.url+(t.w?` ${t.w}w`:"")+(t.h?` ${t.h}h`:"")+(t.d?` ${t.d}x`:"")}).join(", ")}var cTe=Do;const lTe=/^[^\0\t\n\f\r /<=>]+$/;function Do(e,t,n){if(e==null)return"";typeof e=="number"&&(e=e.toString());let r="",a="";function s(D,W){const B=this;this.tag=D,this.attribs=W||{},this.tagPosition=r.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(R.length){const ae=R[R.length-1];ae.text+=B.text}},this.updateParentNodeMediaChildren=function(){R.length&&sTe.includes(this.tag)&&R[R.length-1].mediaChildren.push(this.tag)}}t=Object.assign({},Do.defaults,t),t.parser=Object.assign({},dTe,t.parser);const o=function(D){return t.allowedTags===!1||(t.allowedTags||[]).indexOf(D)>-1};oTe.forEach(function(D){o(D)&&!t.allowVulnerableTags&&console.warn(`
@@ -394,8 +394,8 @@ vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
Or, to disable this warning, add the \`allowVulnerableTags\` option
and ensure you are accounting for this risk.
-`)});const i=t.nonTextTags||["script","style","textarea","option"];let u,c;t.allowedAttributes&&(u={},c={},Ks(t.allowedAttributes,function(D,W){u[W]=[];const B=[];D.forEach(function(ae){typeof ae=="string"&&ae.indexOf("*")>=0?B.push(S_(ae).replace(/\\\*/g,".*")):u[W].push(ae)}),B.length&&(c[W]=new RegExp("^("+B.join("|")+")$"))}));const l={},f={},d={};Ks(t.allowedClasses,function(D,W){if(u&&(ir(u,W)||(u[W]=[]),u[W].push("class")),l[W]=D,Array.isArray(D)){const B=[];l[W]=[],d[W]=[],D.forEach(function(ae){typeof ae=="string"&&ae.indexOf("*")>=0?B.push(S_(ae).replace(/\\\*/g,".*")):ae instanceof RegExp?d[W].push(ae):l[W].push(ae)}),B.length&&(f[W]=new RegExp("^("+B.join("|")+")$"))}});const m={};let _;Ks(t.transformTags,function(D,W){let B;typeof D=="function"?B=D:typeof D=="string"&&(B=Do.simpleTransform(D)),W==="*"?_=B:m[W]=B});let T,R,I,b,v,g,L=!1;P();const w=new tTe.Parser({onopentag:function(D,W){if(t.enforceHtmlBoundary&&D==="html"&&P(),v){g++;return}const B=new s(D,W);R.push(B);let ae=!1;const Re=!!B.text;let $e;if(ir(m,D)&&($e=m[D](D,W),B.attribs=W=$e.attribs,$e.text!==void 0&&(B.innerText=$e.text),D!==$e.tagName&&(B.name=D=$e.tagName,b[T]=$e.tagName)),_&&($e=_(D,W),B.attribs=W=$e.attribs,D!==$e.tagName&&(B.name=D=$e.tagName,b[T]=$e.tagName)),(!o(D)||t.disallowedTagsMode==="recursiveEscape"&&!iTe(I)||t.nestingLimit!=null&&T>=t.nestingLimit)&&(ae=!0,I[T]=!0,t.disallowedTagsMode==="discard"&&i.indexOf(D)!==-1&&(v=!0,g=1),I[T]=!0),T++,ae){if(t.disallowedTagsMode==="discard")return;a=r,r=""}r+="<"+D,D==="script"&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(B.innerText=""),(!u||ir(u,D)||u["*"])&&Ks(W,function(he,ye){if(!lTe.test(ye)){delete B.attribs[ye];return}if(he===""&&(t.nonBooleanAttributes.includes(ye)||t.nonBooleanAttributes.includes("*"))){delete B.attribs[ye];return}let Nt=!1;if(!u||ir(u,D)&&u[D].indexOf(ye)!==-1||u["*"]&&u["*"].indexOf(ye)!==-1||ir(c,D)&&c[D].test(ye)||c["*"]&&c["*"].test(ye))Nt=!0;else if(u&&u[D]){for(const xe of u[D])if(nTe(xe)&&xe.name&&xe.name===ye){Nt=!0;let He="";if(xe.multiple===!0){const at=he.split(" ");for(const X of at)xe.values.indexOf(X)!==-1&&(He===""?He=X:He+=" "+X)}else xe.values.indexOf(he)>=0&&(He=he);he=He}}if(Nt){if(t.allowedSchemesAppliedToAttributes.indexOf(ye)!==-1&&G(D,he)){delete B.attribs[ye];return}if(D==="script"&&ye==="src"){let xe=!0;try{const He=z(he);if(t.allowedScriptHostnames||t.allowedScriptDomains){const at=(t.allowedScriptHostnames||[]).find(function(me){return me===He.url.hostname}),X=(t.allowedScriptDomains||[]).find(function(me){return He.url.hostname===me||He.url.hostname.endsWith(`.${me}`)});xe=at||X}}catch{xe=!1}if(!xe){delete B.attribs[ye];return}}if(D==="iframe"&&ye==="src"){let xe=!0;try{const He=z(he);if(He.isRelativeUrl)xe=ir(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const at=(t.allowedIframeHostnames||[]).find(function(me){return me===He.url.hostname}),X=(t.allowedIframeDomains||[]).find(function(me){return He.url.hostname===me||He.url.hostname.endsWith(`.${me}`)});xe=at||X}}catch{xe=!1}if(!xe){delete B.attribs[ye];return}}if(ye==="srcset")try{let xe=rTe(he);if(xe.forEach(function(He){G("srcset",He.url)&&(He.evil=!0)}),xe=I_(xe,function(He){return!He.evil}),xe.length)he=uTe(I_(xe,function(He){return!He.evil})),B.attribs[ye]=he;else{delete B.attribs[ye];return}}catch{delete B.attribs[ye];return}if(ye==="class"){const xe=l[D],He=l["*"],at=f[D],X=d[D],me=f["*"],de=[at,me].concat(X).filter(function(Se){return Se});if(xe&&He?he=te(he,O_(xe,He),de):he=te(he,xe||He,de),!he.length){delete B.attribs[ye];return}}if(ye==="style"){if(t.parseStyleAttributes)try{const xe=aTe(D+" {"+he+"}"),He=k(xe,t.allowedStyles);if(he=Z(He),he.length===0){delete B.attribs[ye];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+D+" {"+he+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete B.attribs[ye];return}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}r+=" "+ye,he&&he.length&&(r+='="'+j(he,!0)+'"')}else delete B.attribs[ye]}),t.selfClosing.indexOf(D)!==-1?r+=" />":(r+=">",B.innerText&&!Re&&!t.textFilter&&(r+=j(B.innerText),L=!0)),ae&&(r=a+j(r),a="")},ontext:function(D){if(v)return;const W=R[R.length-1];let B;if(W&&(B=W.tag,D=W.innerText!==void 0?W.innerText:D),t.disallowedTagsMode==="discard"&&(B==="script"||B==="style"))r+=D;else{const ae=j(D,!1);t.textFilter&&!L?r+=t.textFilter(ae,B):L||(r+=ae)}if(R.length){const ae=R[R.length-1];ae.text+=D}},onclosetag:function(D,W){if(v)if(g--,!g)v=!1;else return;const B=R.pop();if(!B)return;if(B.tag!==D){R.push(B);return}v=t.enforceHtmlBoundary?D==="html":!1,T--;const ae=I[T];if(ae){if(delete I[T],t.disallowedTagsMode==="discard"){B.updateParentNodeText();return}a=r,r=""}if(b[T]&&(D=b[T],delete b[T]),t.exclusiveFilter&&t.exclusiveFilter(B)){r=r.substr(0,B.tagPosition);return}if(B.updateParentNodeMediaChildren(),B.updateParentNodeText(),t.selfClosing.indexOf(D)!==-1||W&&!o(D)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0){ae&&(r=a,a="");return}r+=""+D+">",ae&&(r=a+j(r),a=""),L=!1}},t.parser);return w.write(e),w.end(),r;function P(){r="",T=0,R=[],I={},b={},v=!1,g=0}function j(D,W){return typeof D!="string"&&(D=D+""),t.parser.decodeEntities&&(D=D.replace(/&/g,"&").replace(//g,">"),W&&(D=D.replace(/"/g,"""))),D=D.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),W&&(D=D.replace(/"/g,""")),D}function G(D,W){for(W=W.replace(/[\x00-\x20]+/g,"");;){const Re=W.indexOf("",Re+4);if($e===-1)break;W=W.substring(0,Re)+W.substring($e+3)}const B=W.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!B)return W.match(/^[/\\]{2}/)?!t.allowProtocolRelative:!1;const ae=B[1].toLowerCase();return ir(t.allowedSchemesByTag,D)?t.allowedSchemesByTag[D].indexOf(ae)===-1:!t.allowedSchemes||t.allowedSchemes.indexOf(ae)===-1}function z(D){if(D=D.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),D.startsWith("relative:"))throw new Error("relative: exploit attempt");let W="relative://relative-site";for(let Re=0;Re<100;Re++)W+=`/${Re}`;const B=new URL(D,W);return{isRelativeUrl:B&&B.hostname==="relative-site"&&B.protocol==="relative:",url:B}}function k(D,W){if(!W)return D;const B=D.nodes[0];let ae;return W[B.selector]&&W["*"]?ae=O_(W[B.selector],W["*"]):ae=W[B.selector]||W["*"],ae&&(D.nodes[0].nodes=B.nodes.reduce(ee(ae),[])),D}function Z(D){return D.nodes[0].nodes.reduce(function(W,B){return W.push(`${B.prop}:${B.value}${B.important?" !important":""}`),W},[]).join(";")}function ee(D){return function(W,B){return ir(D,B.prop)&&D[B.prop].some(function(Re){return Re.test(B.value)})&&W.push(B),W}}function te(D,W,B){return W?(D=D.split(/\s+/),D.filter(function(ae){return W.indexOf(ae)!==-1||B.some(function(Re){return Re.test(ae)})}).join(" ")):D}}const dTe={decodeEntities:!0};Do.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0};Do.simpleTransform=function(e,t,n){return n=n===void 0?!0:n,t=t||{},function(r,a){let s;if(n)for(s in t)a[s]=t[s];else a=t;return{tagName:e,attribs:a}}};const fTe=Ud(cTe),Po=e=>fTe(G_e(e,{target:"_blank"}),{allowedTags:["a"],disallowedTagsMode:"escape"}),pTe=e=>(ct("data-v-a720b26e"),e=e(),lt(),e),mTe={id:"admin-app",class:"admin-card"},_Te=["onSubmit"],ETe={for:"admin_contact"},hTe=["value"],TTe=["disabled"],gTe={for:"max_users"},ATe=["disabled"],STe={class:"user-limit-help"},OTe={class:"info-box"},ITe=pTe(()=>p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),vTe={for:"max_single_file_size"},bTe=["disabled"],RTe={for:"max_zip_file_size"},NTe=["disabled"],yTe={for:"gpx_limit_import"},CTe=["disabled"],DTe={class:"about-label",for:"about"},PTe={class:"textarea-description"},wTe=["innerHTML"],LTe={class:"privacy-policy-label",for:"privacy_policy"},$Te={class:"textarea-description"},kTe=["innerHTML"],UTe={key:5,class:"form-buttons"},MTe={class:"confirm",type:"submit"},xTe=["onClick"],FTe={key:6,class:"form-buttons"},WTe=Q({__name:"AdminApplication",props:{appConfig:{},edition:{type:Boolean,default:!1}},setup(e){const t=e,{edition:n}=Te(t),r=Me(),a=Kr(),s=zt({admin_contact:"",max_users:0,max_single_file_size:0,max_zip_file_size:0,gpx_limit_import:0,about:"",privacy_policy:""}),o=$(()=>r.getters[V.GETTERS.ERROR_MESSAGES]);bt(()=>{t.appConfig&&i(t.appConfig)});function i(l){Object.keys(s).map(f=>{["max_single_file_size","max_zip_file_size"].includes(f)?s[f]=l_e(l[f]):["about","privacy_policy"].includes(f)?s[f]=l[f]!==null?l[f]:"":s[f]=l[f]})}function u(){i(t.appConfig),r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),a.push("/admin/application")}function c(){const l=Object.assign({},s);l.max_single_file_size*=1048576,l.max_zip_file_size*=1048576,r.dispatch(V.ACTIONS.UPDATE_APPLICATION_CONFIG,l)}return(l,f)=>{const d=ue("ErrorMessage"),m=ue("Card");return A(),N("div",mTe,[U(m,null,{title:pe(()=>[K(h(l.$t("admin.APP_CONFIG.TITLE")),1)]),content:pe(()=>[p("form",{class:"admin-form",onSubmit:Ze(c,["prevent"])},[p("label",ETe,[K(h(l.$t("admin.APP_CONFIG.ADMIN_CONTACT"))+": ",1),!E(n)&&!s.admin_contact?(A(),N("input",{key:0,class:"no-contact",value:l.$t("admin.APP_CONFIG.NO_CONTACT_EMAIL"),disabled:""},null,8,hTe)):Xe((A(),N("input",{key:1,id:"admin_contact",name:"admin_contact",type:"email","onUpdate:modelValue":f[0]||(f[0]=_=>s.admin_contact=_),disabled:!E(n)},null,8,TTe)),[[nt,s.admin_contact]])]),p("label",gTe,[K(h(l.$t("admin.APP_CONFIG.MAX_USERS_LABEL"))+": ",1),Xe(p("input",{id:"max_users",name:"max_users",type:"number",min:"0","onUpdate:modelValue":f[1]||(f[1]=_=>s.max_users=_),disabled:!E(n)},null,8,ATe),[[nt,s.max_users]])]),p("div",STe,[p("span",OTe,[ITe,K(" "+h(l.$t("admin.APP_CONFIG.MAX_USERS_HELP")),1)])]),p("label",vTe,[K(h(l.$t("admin.APP_CONFIG.SINGLE_UPLOAD_MAX_SIZE_LABEL"))+": ",1),Xe(p("input",{id:"max_single_file_size",name:"max_single_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":f[2]||(f[2]=_=>s.max_single_file_size=_),disabled:!E(n)},null,8,bTe),[[nt,s.max_single_file_size]])]),p("label",RTe,[K(h(l.$t("admin.APP_CONFIG.ZIP_UPLOAD_MAX_SIZE_LABEL"))+": ",1),Xe(p("input",{id:"max_zip_file_size",name:"max_zip_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":f[3]||(f[3]=_=>s.max_zip_file_size=_),disabled:!E(n)},null,8,NTe),[[nt,s.max_zip_file_size]])]),p("label",yTe,[K(h(l.$t("admin.APP_CONFIG.MAX_FILES_IN_ZIP_LABEL"))+": ",1),Xe(p("input",{id:"gpx_limit_import",name:"gpx_limit_import",type:"number",min:"0","onUpdate:modelValue":f[4]||(f[4]=_=>s.gpx_limit_import=_),disabled:!E(n)},null,8,CTe),[[nt,s.gpx_limit_import]])]),p("label",DTe,h(l.$t("admin.ABOUT.TEXT"))+": ",1),p("span",PTe,h(l.$t("admin.ABOUT.DESCRIPTION")),1),E(n)?Xe((A(),N("textarea",{key:0,id:"about",name:"about",rows:"10","onUpdate:modelValue":f[5]||(f[5]=_=>s.about=_)},null,512)),[[nt,s.about]]):(A(),N("div",{key:1,innerHTML:E(ma)(E(Po)(s.about?s.about:l.$t("admin.NO_TEXT_ENTERED"))),class:"textarea-content"},null,8,wTe)),p("label",LTe,h(gt(l.$t("privacy_policy.TITLE")))+": ",1),p("span",$Te,h(l.$t("admin.PRIVACY_POLICY_DESCRIPTION")),1),E(n)?Xe((A(),N("textarea",{key:2,id:"privacy_policy",name:"privacy_policy",rows:"20","onUpdate:modelValue":f[6]||(f[6]=_=>s.privacy_policy=_)},null,512)),[[nt,s.privacy_policy]]):(A(),N("div",{key:3,innerHTML:E(ma)(E(Po)(s.privacy_policy?s.privacy_policy:l.$t("admin.NO_TEXT_ENTERED"))),class:"textarea-content"},null,8,kTe)),o.value?(A(),re(d,{key:4,message:o.value},null,8,["message"])):x("",!0),E(n)?(A(),N("div",UTe,[p("button",MTe,h(l.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:Ze(u,["prevent"])},h(l.$t("buttons.CANCEL")),9,xTe)])):(A(),N("div",FTe,[p("button",{class:"confirm",onClick:f[7]||(f[7]=Ze(_=>l.$router.push("/admin/application/edit"),["prevent"]))},h(l.$t("buttons.EDIT")),1),p("button",{class:"cancel",onClick:f[8]||(f[8]=Ze(_=>l.$router.push("/admin"),["prevent"]))},h(l.$t("admin.BACK_TO_ADMIN")),1)]))],40,_Te)]),_:1})])}}});const v_=se(WTe,[["__scopeId","data-v-a720b26e"]]),GTe={class:"stat-card"},zTe={class:"stat-content box"},BTe={class:"stat-icon"},HTe={class:"stat-details"},jTe={class:"stat-huge"},VTe={class:"stat"},dr=Q({__name:"StatCard",props:{icon:{},text:{},value:{}},setup(e){const t=e,{icon:n,text:r,value:a}=Te(t);return(s,o)=>(A(),N("div",GTe,[p("div",zTe,[p("div",BTe,[p("i",{class:Ae(["fa",`fa-${E(n)}`])},null,2)]),p("div",HTe,[p("div",jTe,h(E(a)),1),p("div",VTe,h(E(r)),1)])])]))}});const KTe={id:"user-stats"},YTe=Q({__name:"AppStatsCards",props:{appStatistics:{}},setup(e){const t=e,{appStatistics:n}=Te(t),r=$(()=>ST(n.value.uploads_dir_size));return(a,s)=>(A(),N("div",KTe,[U(dr,{icon:"users",value:E(n).users,text:a.$t("admin.USER",E(n).users)},null,8,["value","text"]),U(dr,{icon:"tags",value:E(n).sports,text:a.$t("workouts.SPORT",E(n).sports)},null,8,["value","text"]),U(dr,{icon:"calendar",value:E(n).workouts,text:a.$t("workouts.WORKOUT",E(n).workouts)},null,8,["value","text"]),U(dr,{icon:"folder-open",value:r.value.size,text:r.value.suffix},null,8,["value","text"])]))}});const Gg=e=>(ct("data-v-efcd2677"),e=e(),lt(),e),qTe={id:"admin-menu",class:"center-card"},XTe={class:"admin-menu description-list"},ZTe={class:"application-config-details"},QTe=Gg(()=>p("br",null,null,-1)),JTe={class:"registration-status"},ege={key:0,class:"email-sending-status"},tge=Gg(()=>p("i",{class:"fa fa-exclamation-triangle","aria-hidden":"true"},null,-1)),nge=Q({__name:"AdminMenu",props:{appConfig:{},appStatistics:{default:()=>({})}},setup(e){const t=e,{appConfig:n,appStatistics:r}=Te(t);return St(()=>{const a=document.getElementById("adminLink");a&&a.focus()}),(a,s)=>{const o=ue("router-link");return A(),N("div",qTe,[U(lT,null,{title:pe(()=>[K(h(a.$t("admin.ADMINISTRATION")),1)]),content:pe(()=>[U(YTe,{appStatistics:E(r)},null,8,["appStatistics"]),p("div",XTe,[p("dl",null,[p("dt",null,[U(o,{id:"adminLink",to:"/admin/application"},{default:pe(()=>[K(h(a.$t("admin.APPLICATION")),1)]),_:1})]),p("dd",ZTe,[K(h(a.$t("admin.UPDATE_APPLICATION_DESCRIPTION")),1),QTe,p("span",JTe,h(a.$t(`admin.REGISTRATION_${E(n).is_registration_enabled?"ENABLED":"DISABLED"}`)),1),E(n).is_email_sending_enabled?x("",!0):(A(),N("span",ege,[tge,K(" "+h(a.$t("admin.EMAIL_SENDING_DISABLED")),1)]))]),p("dt",null,[U(o,{to:"/admin/sports"},{default:pe(()=>[K(h(gt(a.$t("workouts.SPORT",0))),1)]),_:1})]),p("dd",null,h(a.$t("admin.ENABLE_DISABLE_SPORTS")),1),p("dt",null,[U(o,{to:"/admin/users"},{default:pe(()=>[K(h(gt(a.$t("admin.USER",0))),1)]),_:1})]),p("dd",null,h(a.$t("admin.ADMIN_RIGHTS_DELETE_USER_ACCOUNT")),1)])])]),_:1})])}}});const rge=se(nge,[["__scopeId","data-v-efcd2677"]]),e0={"Cycling (Sport)":"#4c9792","Cycling (Transport)":"#88af98","Cycling (Virtual)":"#64a360",Hiking:"#bb757c","Mountain Biking":"#d4b371","Mountain Biking (Electric)":"#fc9d6f",Mountaineering:"#48b3b7","Open Water Swimming":"#4058a4",Paragliding:"#c23c50",Rowing:"#fcce72",Running:"#835b83","Skiing (Alpine)":"#67a4bd","Skiing (Cross Country)":"#9498d0",Snowshoes:"#5780a8",Trail:"#09a98a",Walking:"#838383"},age=e=>{const t={};return e.map(n=>t[n.id]=n.color?n.color:e0[n.label]),t},sge=(e,t)=>{const n=e.translatedLabel.toLowerCase(),r=t.translatedLabel.toLowerCase();return n>r?1:ne.filter(a=>n==="all"?!0:r.includes(a.id)||a[n]).map(a=>({...a,translatedLabel:t(`sports.${a.label}.LABEL`)})).sort(sge),t0=(e,t)=>t.filter(n=>n.id===e.sport_id).map(n=>n.label)[0],n0=(e,t)=>t.filter(n=>n.id===e.sport_id).map(n=>n.color)[0],gc=e=>(ct("data-v-203d96b8"),e=e(),lt(),e),oge={id:"admin-sports",class:"admin-card"},ige={class:"responsive-table"},uge=gc(()=>p("th",null,"#",-1)),cge={class:"text-left"},lge={class:"text-left sport-action"},dge=gc(()=>p("th",null,null,-1)),fge={class:"text-center"},pge=gc(()=>p("span",{class:"cell-heading"},"id",-1)),mge={class:"cell-heading"},_ge={class:"sport-label"},Ege={class:"cell-heading"},hge={class:"text-center"},Tge={class:"cell-heading"},gge={class:"sport-action"},Age={class:"cell-heading"},Sge={class:"action-button"},Oge=["onClick"],Ige={key:0,class:"has-workouts"},vge=gc(()=>p("i",{class:"fa fa-warning","aria-hidden":"true"},null,-1)),bge=Q({__name:"AdminSports",setup(e){const{t}=Vt(),n=Me(),r=$(()=>qr(n.getters[Mt.GETTERS.SPORTS],t)),a=$(()=>n.getters[V.GETTERS.ERROR_MESSAGES]);function s(o,i){n.dispatch(Mt.ACTIONS.UPDATE_SPORTS,{id:o,isActive:i})}return(o,i)=>{const u=ue("SportImage"),c=ue("ErrorMessage"),l=ue("Card");return A(),N("div",oge,[U(l,null,{title:pe(()=>[K(h(o.$t("admin.SPORTS.TITLE")),1)]),content:pe(()=>[p("button",{class:"top-button",onClick:i[0]||(i[0]=Ze(f=>o.$router.push("/admin"),["prevent"]))},h(o.$t("admin.BACK_TO_ADMIN")),1),p("div",ige,[p("table",null,[p("thead",null,[p("tr",null,[uge,p("th",null,h(o.$t("admin.SPORTS.TABLE.IMAGE")),1),p("th",cge,h(o.$t("admin.SPORTS.TABLE.LABEL")),1),p("th",null,h(o.$t("admin.SPORTS.TABLE.ACTIVE")),1),p("th",lge,h(o.$t("admin.ACTION")),1),dge])]),p("tbody",null,[(A(!0),N(ve,null,ze(r.value,f=>(A(),N("tr",{key:f.id},[p("td",fge,[pge,K(" "+h(f.id),1)]),p("td",null,[p("span",mge,h(o.$t("admin.SPORTS.TABLE.IMAGE")),1),U(u,{title:f.translatedLabel,"sport-label":f.label,color:f.color},null,8,["title","sport-label","color"])]),p("td",_ge,[p("span",Ege,h(o.$t("admin.SPORTS.TABLE.LABEL")),1),K(" "+h(f.translatedLabel),1)]),p("td",hge,[p("span",Tge,h(o.$t("admin.SPORTS.TABLE.ACTIVE")),1),p("i",{class:Ae(`fa fa${f.is_active?"-check":""}`),"aria-hidden":"true"},null,2)]),p("td",gge,[p("span",Age,h(o.$t("admin.ACTION")),1),p("div",Sge,[p("button",{class:Ae({danger:f.is_active}),onClick:d=>s(f.id,!f.is_active)},h(o.$t(`buttons.${f.is_active?"DIS":"EN"}ABLE`)),11,Oge),f.has_workouts?(A(),N("span",Ige,[vge,K(" "+h(o.$t("admin.SPORTS.TABLE.HAS_WORKOUTS")),1)])):x("",!0)])])]))),128))])]),a.value?(A(),re(c,{key:0,message:a.value},null,8,["message"])):x("",!0),p("button",{onClick:i[1]||(i[1]=Ze(f=>o.$router.push("/admin"),["prevent"]))},h(o.$t("admin.BACK_TO_ADMIN")),1)])]),_:1})])}}});const Rge=se(bge,[["__scopeId","data-v-203d96b8"]]),Nge={class:"table-selects"},yge=["value"],Cge=["value"],Dge=["value"],Pge=["value"],wge=["value"],Lge=["value"],$ge=Q({__name:"FilterSelects",props:{order_by:{},query:{},sort:{},message:{}},emits:["updateSelect"],setup(e,{emit:t}){const n=e,r=t,{order_by:a,query:s,sort:o,message:i}=Te(n),u=[10,25,50,100];function c(l){r("updateSelect",l.target.id,l.target.value)}return(l,f)=>(A(),N("div",Nge,[p("label",null,[K(h(l.$t("common.SELECTS.ORDER_BY.LABEL"))+": ",1),p("select",{name:"order_by",id:"order_by",value:E(s).order_by,onChange:c},[(A(!0),N(ve,null,ze(E(a),d=>(A(),N("option",{value:d,key:d},h(l.$t(`${E(i)}.${d.toUpperCase()}`)),9,Cge))),128))],40,yge)]),p("label",null,[K(h(l.$t("common.SELECTS.ORDER.LABEL"))+": ",1),p("select",{name:"order",id:"order",value:E(s).order,onChange:c},[(A(!0),N(ve,null,ze(E(o),d=>(A(),N("option",{value:d,key:d},h(l.$t(`common.SELECTS.ORDER.${d.toUpperCase()}`)),9,Pge))),128))],40,Dge)]),p("label",null,[K(h(l.$t("common.SELECTS.PER_PAGE.LABEL"))+": ",1),p("select",{name:"per_page",id:"per_page",value:E(s).per_page,onChange:c},[(A(),N(ve,null,ze(u,d=>p("option",{value:d,key:d},h(d),9,Lge)),64))],40,wge)])]))}});const zg=se($ge,[["__scopeId","data-v-fc86ab3c"]]),r0=["asc","desc"],Bg=1,kge=10,Rd=(e,t)=>e&&typeof e=="string"&&+e>0?+e:t,b_=(e,t,n)=>e&&typeof e=="string"&&t.includes(e)?e:n,Nd=(e,t,n,r)=>{const s=(r||{}).defaultSort||"asc",o={};return o.page=Rd(e.page,Bg),o.per_page=Rd(e.per_page,kge),o.order=b_(e.order,r0,s),o.order_by=b_(e.order_by,t,n),typeof e.q=="string"?o.q=e.q:delete o.q,o},Uge=["from","to","ave_speed_from","ave_speed_to","max_speed_from","max_speed_to","distance_from","distance_to","duration_from","duration_to","sport_id","title"],wa=(e,t=1)=>Array.from({length:e-t+1},(n,r)=>t+r),Mge=(e,t)=>{if(e<0)return[];if(e<9)return wa(e);let n=[1,2];return t<4?n=n.concat([3,4,5]):t<6?n=n.concat(wa(t+2,3)):(n=n.concat(["..."]),t=e-2&&+n[n.length-1](ct("data-v-b6235e81"),e=e(),lt(),e),xge={class:"pagination-center","aria-label":"navigation"},Fge={class:"pagination"},Wge=Hg(()=>p("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1)),Gge={key:0},zge=Hg(()=>p("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1)),Bge=Q({__name:"Pagination",props:{pagination:{},path:{},query:{}},setup(e){const t=e,{pagination:n,path:r,query:a}=Te(t);function s(o,i){const u=Object.assign({},a.value);return u.page=i?o+i:o,u}return(o,i)=>{const u=ue("router-link");return A(),N("nav",xge,[p("ul",Fge,[p("li",{class:Ae(["page-prev",{disabled:!E(n).has_prev}])},[U(u,{class:"page-link",to:{path:E(r),query:s(E(n).page,-1)},disabled:!E(n).has_prev,tabindex:E(n).has_prev?0:-1},{default:pe(({navigate:c})=>[Qa(o.$slots,"default",{onClick:l=>E(n).has_next?c:null},()=>[K(h(o.$t("api.PAGINATION.PREVIOUS"))+" ",1),Wge],!0)]),_:3},8,["to","disabled","tabindex"])],2),(A(!0),N(ve,null,ze(E(Mge)(E(n).pages,E(n).page),c=>(A(),N("li",{key:c,class:Ae(["page",{active:c===E(n).page}])},[c==="..."?(A(),N("span",Gge," ... ")):(A(),re(u,{key:1,class:"page-link",to:{path:E(r),query:s(+c)}},{default:pe(()=>[K(h(c),1)]),_:2},1032,["to"]))],2))),128)),p("li",{class:Ae(["page-next",{disabled:!E(n).has_next}])},[U(u,{class:"page-link",to:{path:E(r),query:s(E(n).page,1)},disabled:!E(n).has_next,tabindex:E(n).has_next?0:-1},{default:pe(({navigate:c})=>[Qa(o.$slots,"default",{onClick:l=>E(n).has_next?c:null},()=>[K(h(o.$t("api.PAGINATION.NEXT"))+" ",1),zge],!0)]),_:3},8,["to","disabled","tabindex"])],2)])])}}});const $u=se(Bge,[["__scopeId","data-v-b6235e81"]]),Hge={class:"users-filters"},jge={class:"search-username"},Vge=["onKeyup","placeholder"],Kge=Q({__name:"UsersNameFilter",emits:["filterOnUsername"],setup(e,{emit:t}){const n=Kt(),r=le(n.query.q?n.query.q:""),a=t;function s(){r.value!==""&&a("filterOnUsername",r)}function o(){r.value="",a("filterOnUsername",r.value)}return(i,u)=>(A(),N("div",Hge,[p("div",jge,[Xe(p("input",{id:"username",name:"username","onUpdate:modelValue":u[0]||(u[0]=c=>r.value=c),onKeyup:Ot(s,["enter"]),placeholder:i.$t("user.FILTER_ON_USERNAME")},null,40,Vge),[[nt,r.value,void 0,{trim:!0}]]),r.value!==""?(A(),N("i",{key:0,class:"fa fa-times","aria-hidden":"true",onClick:o})):x("",!0)]),p("i",{class:Ae(["fa fa-search",{"fa-disabled":r.value===""}]),"aria-hidden":"true",onClick:s},null,2)]))}});const Yge=se(Kge,[["__scopeId","data-v-553040c7"]]);var yd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}e.exports=t.default})(yd,yd.exports);var qge=yd.exports;const Xge=Ud(qge);var Cd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}e.exports=t.default})(Cd,Cd.exports);var Zge=Cd.exports;const R_=Ud(Zge);function Qge(e,t){var n=nAe(t);return n.formatToParts?eAe(n,e):tAe(n,e)}var Jge={year:0,month:1,day:2,hour:3,minute:4,second:5};function eAe(e,t){try{for(var n=e.formatToParts(t),r=[],a=0;a=0&&(r[s]=parseInt(n[a].value,10))}return r}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function tAe(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var nl={};function nAe(e){if(!nl[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="06/25/2014 00:00:00";nl[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return nl[e]}function jg(e,t,n,r,a,s,o){var i=new Date(0);return i.setUTCFullYear(e,t,n),i.setUTCHours(r,a,s,o),i}var N_=36e5,rAe=6e4,rl={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function Vg(e,t,n){var r,a;if(!e||(r=rl.timezoneZ.exec(e),r))return 0;var s;if(r=rl.timezoneHH.exec(e),r)return s=parseInt(r[1],10),y_(s)?-(s*N_):NaN;if(r=rl.timezoneHHMM.exec(e),r){s=parseInt(r[1],10);var o=parseInt(r[2],10);return y_(s,o)?(a=Math.abs(s)*N_+o*rAe,s>0?-a:a):NaN}if(oAe(e)){t=new Date(t||Date.now());var i=n?t:aAe(t),u=Dd(i,e),c=n?u:sAe(t,u,e);return-c}return NaN}function aAe(e){return jg(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Dd(e,t){var n=Qge(e,t),r=jg(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),a=e.getTime(),s=a%1e3;return a-=s>=0?s:1e3+s,r-a}function sAe(e,t,n){var r=e.getTime(),a=r-t,s=Dd(new Date(a),n);if(t===s)return t;a-=s-t;var o=Dd(new Date(a),n);return s===o?s:Math.max(s,o)}function y_(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var C_={};function oAe(e){if(C_[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),C_[e]=!0,!0}catch{return!1}}var iAe=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,al=36e5,D_=6e4,uAe=2,en={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:iAe};function cAe(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?uAe:Xge(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=lAe(e),s=dAe(a.date,r),o=s.year,i=s.restDateString,u=fAe(i,o);if(isNaN(u))return new Date(NaN);if(u){var c=u.getTime(),l=0,f;if(a.time&&(l=pAe(a.time),isNaN(l)))return new Date(NaN);if(a.timeZone||n.timeZone){if(f=Vg(a.timeZone||n.timeZone,new Date(c+l)),isNaN(f))return new Date(NaN)}else f=R_(new Date(c+l)),f=R_(new Date(c+l+f));return new Date(c+l+f)}else return new Date(NaN)}function lAe(e){var t={},n=en.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=en.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var a=en.timeZone.exec(r);a?(t.time=r.replace(a[1],""),t.timeZone=a[1].trim()):t.time=r}return t}function dAe(e,t){var n=en.YYY[t],r=en.YYYYY[t],a;if(a=en.YYYY.exec(e)||r.exec(e),a){var s=a[1];return{year:parseInt(s,10),restDateString:e.slice(s.length)}}if(a=en.YY.exec(e)||n.exec(e),a){var o=a[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}return{year:null}}function fAe(e,t){if(t===null)return null;var n,r,a,s;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=en.MM.exec(e),n)return r=new Date(0),a=parseInt(n[1],10)-1,w_(t,a)?(r.setUTCFullYear(t,a),r):new Date(NaN);if(n=en.DDD.exec(e),n){r=new Date(0);var o=parseInt(n[1],10);return EAe(t,o)?(r.setUTCFullYear(t,0,o),r):new Date(NaN)}if(n=en.MMDD.exec(e),n){r=new Date(0),a=parseInt(n[1],10)-1;var i=parseInt(n[2],10);return w_(t,a,i)?(r.setUTCFullYear(t,a,i),r):new Date(NaN)}if(n=en.Www.exec(e),n)return s=parseInt(n[1],10)-1,L_(t,s)?P_(t,s):new Date(NaN);if(n=en.WwwD.exec(e),n){s=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return L_(t,s,u)?P_(t,s,u):new Date(NaN)}return null}function pAe(e){var t,n,r;if(t=en.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),sl(n)?n%24*al:NaN;if(t=en.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),sl(n,r)?n%24*al+r*D_:NaN;if(t=en.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return sl(n,r,a)?n%24*al+r*D_+a*1e3:NaN}return null}function P_(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,s=t*7+n+1-a;return r.setUTCDate(r.getUTCDate()+s),r}var mAe=[31,28,31,30,31,30,31,31,30,31,30,31],_Ae=[31,29,31,30,31,30,31,31,30,31,30,31];function Kg(e){return e%400===0||e%4===0&&e%100!==0}function w_(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=Kg(e);if(r&&n>_Ae[t]||!r&&n>mAe[t])return!1}return!0}function EAe(e,t){if(t<1)return!1;var n=Kg(e);return!(n&&t>366||!n&&t>365)}function L_(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function sl(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}function hAe(e,t,n){var r=cAe(e,n),a=Vg(t,r,!0),s=new Date(r.getTime()-a),o=new Date(0);return o.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),o.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),o}const{locale:ku}=Aa.global,TAe=(e,t,n)=>{switch(e){case"week":return tc(t,{weekStartsOn:n?1:0});case"year":return hf(t);case"month":return Bo(t);default:throw new Error(`Invalid duration, expected: "week", "month", "year", got: "${e}"`)}},gAe=(e,t)=>{switch(e){case"week":return Go(t,7);case"year":return ou(t,1);case"month":return rs(t,1);default:throw new Error(`Invalid duration, expected: "week", "month", "year", got: "${e}"`)}},Ac=(e,t)=>hAe(new Date(e),t),$_=(e,t)=>{const n=Bo(e),r=zo(e),a=t?1:0;return{start:tc(n,{weekStartsOn:a}),end:Tf(r,{weekStartsOn:a})}},Yg=(e,t=null,n=null)=>(t||(t="yyyy/MM/dd"),t=Oa(t,ku.value),n||(n="HH:mm"),{workout_date:dn(e,t,{locale:Ho[ku.value]}),workout_time:dn(e,n)}),AAe=["MM/dd/yyyy","dd/MM/yyyy","yyyy-MM-dd","date_string"],qg={de:"do MMM yyyy",en:"MMM. do, yyyy",es:"d MMM yyyy",fr:"d MMM yyyy",gl:"d MMM yyyy",it:"d MMM yyyy",pl:"d MMM yyyy",nb:"do MMM yyyy",nl:"d MMM yyyy"},Oa=(e,t)=>e==="date_string"?qg[t]:e,xn=(e,t,n,r=!0,a=null,s=!1)=>{a||(a=ku.value);const o=r?s?" HH:mm:ss":" HH:mm":"";return dn(Ac(e,t),`${Oa(n,a)}${o}`,{locale:Ho[a]})},SAe=(e,t,n=null)=>{const r=n||ku.value,a=[];return AAe.map(s=>{const o=Oa(s,r);a.push({label:`${o} - ${xn(e,t,o,!1,r)}`,value:s})}),a},OAe=e=>(ct("data-v-4beb3bfa"),e=e(),lt(),e),IAe={id:"admin-users",class:"admin-card"},vAe={key:0,class:"no-users"},bAe={key:1,class:"responsive-table"},RAe=OAe(()=>p("th",null,"#",-1)),NAe={class:"left-text"},yAe={class:"left-text"},CAe={class:"left-text"},DAe={class:"cell-heading"},PAe={class:"cell-heading"},wAe={class:"cell-heading"},LAe={class:"cell-heading"},$Ae={class:"text-center"},kAe={class:"cell-heading"},UAe={class:"text-center"},MAe={class:"cell-heading"},xAe={class:"text-center"},FAe={class:"cell-heading"},WAe={class:"text-center"},GAe={class:"cell-heading"},zAe=["disabled","onClick"],k_="created_at",BAe=Q({__name:"AdminUsers",setup(e){const t=Me(),n=Kt(),r=Kr(),a=["is_active","admin","created_at","username","workouts_count"];let s=zt(Nd(n.query,a,k_));const o=$(()=>t.getters[Y.GETTERS.AUTH_USER_PROFILE]),i=$(()=>t.getters[we.GETTERS.USERS]),u=$(()=>t.getters[we.GETTERS.USERS_PAGINATION]),c=$(()=>t.getters[V.GETTERS.ERROR_MESSAGES]);bt(()=>l(s));function l(_){t.dispatch(we.ACTIONS.GET_USERS,_)}function f(_){m("q",_.value)}function d(_,T){t.dispatch(we.ACTIONS.UPDATE_USER,{username:_,admin:T})}function m(_,T){s[_]=T,_==="per_page"&&(s.page=1),r.push({path:"/admin/users",query:s})}return Rt(()=>{t.dispatch(we.ACTIONS.EMPTY_USERS)}),Be(()=>n.query,_=>{s=Nd(_,a,k_,{query:s}),l(s)}),(_,T)=>{const R=ue("router-link"),I=ue("ErrorMessage"),b=ue("Card");return A(),N("div",IAe,[U(b,null,{title:pe(()=>[K(h(gt(_.$t("admin.USER",0))),1)]),content:pe(()=>[p("button",{class:"top-button",onClick:T[0]||(T[0]=Ze(v=>_.$router.push("/admin"),["prevent"]))},h(_.$t("admin.BACK_TO_ADMIN")),1),U(Yge,{onFilterOnUsername:f}),U(zg,{sort:E(r0),order_by:a,query:E(s),message:"admin.USERS.SELECTS.ORDER_BY",onUpdateSelect:m},null,8,["sort","query"]),i.value.length===0?(A(),N("div",vAe,h(_.$t("user.NO_USERS_FOUND")),1)):(A(),N("div",bAe,[p("table",null,[p("thead",null,[p("tr",null,[RAe,p("th",NAe,h(_.$t("user.USERNAME")),1),p("th",yAe,h(_.$t("user.EMAIL")),1),p("th",CAe,h(_.$t("user.PROFILE.REGISTRATION_DATE")),1),p("th",null,h(gt(_.$t("workouts.WORKOUT",0))),1),p("th",null,h(_.$t("admin.ACTIVE")),1),p("th",null,h(_.$t("user.ADMIN")),1),p("th",null,h(_.$t("admin.ACTION")),1)])]),p("tbody",null,[(A(!0),N(ve,null,ze(i.value,v=>(A(),N("tr",{key:v.username},[p("td",null,[p("span",DAe,h(_.$t("user.PROFILE.PICTURE")),1),U(Wo,{user:v},null,8,["user"])]),p("td",null,[p("span",PAe,h(_.$t("user.USERNAME")),1),U(R,{to:`/admin/users/${v.username}`},{default:pe(()=>[K(h(v.username),1)]),_:2},1032,["to"])]),p("td",null,[p("span",wAe,h(_.$t("user.EMAIL")),1),K(" "+h(v.email),1)]),p("td",null,[p("span",LAe,h(_.$t("user.PROFILE.REGISTRATION_DATE")),1),p("time",null,h(E(xn)(v.created_at,o.value.timezone,o.value.date_format)),1)]),p("td",$Ae,[p("span",kAe,h(gt(_.$t("workouts.WORKOUT",0))),1),K(" "+h(v.nb_workouts),1)]),p("td",UAe,[p("span",MAe,h(_.$t("admin.ACTIVE")),1),p("i",{class:Ae(`fa fa${v.is_active?"-check":""}-square-o`),"aria-hidden":"true"},null,2)]),p("td",xAe,[p("span",FAe,h(_.$t("user.ADMIN")),1),p("i",{class:Ae(`fa fa${v.admin?"-check":""}-square-o`),"aria-hidden":"true"},null,2)]),p("td",WAe,[p("span",GAe,h(_.$t("admin.ACTION")),1),p("button",{class:Ae({danger:v.admin}),disabled:v.username===o.value.username,onClick:g=>d(v.username,!v.admin)},h(_.$t(`admin.USERS.TABLE.${v.admin?"REMOVE":"ADD"}_ADMIN_RIGHTS`)),11,zAe)])]))),128))])]),u.value.page?(A(),re($u,{key:0,path:"/admin/users",pagination:u.value,query:E(s)},null,8,["pagination","query"])):x("",!0),c.value?(A(),re(I,{key:1,message:c.value},null,8,["message"])):x("",!0),p("button",{onClick:T[1]||(T[1]=Ze(v=>_.$router.push("/admin"),["prevent"]))},h(_.$t("admin.BACK_TO_ADMIN")),1)]))]),_:1})])}}});const HAe=se(BAe,[["__scopeId","data-v-4beb3bfa"]]),jAe={class:"box user-header"},VAe={class:"user-details"},KAe={class:"user-name"},YAe={class:"user-stats"},qAe={class:"user-stat"},XAe={class:"stat-number"},ZAe={class:"stat-label"},QAe={class:"user-stat"},JAe={class:"stat-label"},eSe={class:"user-stat hide-small"},tSe={class:"stat-number"},nSe={class:"stat-label"},rSe=Q({__name:"UserHeader",props:{user:{}},setup(e){const t=e,{user:n}=Te(t),r=Me(),a=$(()=>r.getters[Y.GETTERS.AUTH_USER_PROFILE]);return(s,o)=>{const i=ue("Distance");return A(),N("div",jAe,[U(Wo,{user:E(n)},null,8,["user"]),p("div",VAe,[p("div",KAe,h(E(n).username),1),p("div",YAe,[p("div",qAe,[p("span",XAe,h(E(n).nb_workouts),1),p("span",ZAe,h(s.$t("workouts.WORKOUT",E(n).nb_workouts)),1)]),p("div",QAe,[U(i,{distance:E(n).total_distance,unitFrom:"km",digits:0,displayUnit:!1,useImperialUnits:a.value.imperial_units},null,8,["distance","useImperialUnits"]),p("span",JAe,h(a.value.imperial_units?"miles":"km"),1)]),p("div",eSe,[p("span",tSe,h(E(n).nb_sports),1),p("span",nSe,h(s.$t("workouts.SPORT",E(n).nb_sports)),1)])])])])}}});const Xg=se(rSe,[["__scopeId","data-v-3abb1646"]]),aSe={class:"profile-tabs custom-checkboxes-group"},sSe={class:"profile-tabs-checkboxes custom-checkboxes"},oSe=["id","name","checked","disabled","onInput"],iSe=["id","onKeydown"],Zg=Q({__name:"UserProfileTabs",props:{tabs:{},selectedTab:{},edition:{type:Boolean},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{tabs:n,selectedTab:r,disabled:a}=Te(t);St(()=>{const o=document.getElementById(`tab-${n.value[0]}`);o&&o.focus()});function s(o){switch(o){case"ACCOUNT":case"PICTURE":case"PRIVACY-POLICY":return`/profile/edit/${o.toLocaleLowerCase()}`;case"APPS":case"PREFERENCES":case"SPORTS":return`/profile${t.edition?"/edit":""}/${o.toLocaleLowerCase()}`;default:case"PROFILE":return`/profile${t.edition?"/edit":""}`}}return(o,i)=>(A(),N("div",aSe,[p("div",sSe,[(A(!0),N(ve,null,ze(E(n),u=>(A(),N("div",{class:"profile-tab custom-checkbox",key:u},[p("label",null,[p("input",{type:"radio",id:u,name:u,checked:E(r).split("/")[0]===u,disabled:E(a),onInput:c=>o.$router.push(s(u))},null,40,oSe),p("span",{id:`tab-${u}`,tabindex:0,role:"button",onKeydown:Ot(c=>o.$router.push(s(u)),["enter"])},h(o.$t(`user.PROFILE.TABS.${u}`)),41,iSe)])]))),128))])]))}});const uSe={id:"user-profile"},cSe={class:"box"},lSe=Q({__name:"index",props:{user:{},tab:{}},setup(e){const t=e,{user:n,tab:r}=Te(t),a=["PROFILE","PREFERENCES","SPORTS","APPS"];return(s,o)=>{const i=ue("router-view");return A(),N("div",uSe,[U(Xg,{user:E(n)},null,8,["user"]),p("div",cSe,[U(Zg,{tabs:a,selectedTab:E(r),edition:!1},null,8,["selectedTab"]),U(i,{user:E(n)},null,8,["user"])])])}}});const dSe=se(lSe,[["__scopeId","data-v-8a058d49"]]),fSe={id:"user-infos",class:"description-list"},pSe={key:1,class:"info-box success-message"},mSe={key:4,class:"email-form form-box"},_Se={class:"form-items",for:"email"},ESe={class:"form-items",for:"email"},hSe={class:"form-buttons"},TSe={class:"confirm",type:"submit"},gSe=["onClick"],ASe={key:5},SSe={key:0},OSe={class:"user-bio"},ISe={key:0,class:"profile-buttons"},vSe=["onClick"],bSe={key:1,class:"profile-buttons"},RSe=Q({__name:"UserInfos",props:{user:{},fromAdmin:{type:Boolean,default:!1}},setup(e){const t=e,n=Me(),{user:r,fromAdmin:a}=Te(t),s=$(()=>n.getters[V.GETTERS.LANGUAGE]),o=$(()=>n.getters[Y.GETTERS.AUTH_USER_PROFILE]),i=$(()=>t.user.created_at?xn(t.user.created_at,o.value.timezone,o.value.date_format):""),u=$(()=>t.user.birth_date?dn(new Date(t.user.birth_date),`${Oa(o.value.date_format,s.value)}`,{locale:Ho[s.value]}):""),c=$(()=>n.getters[we.GETTERS.USERS_IS_SUCCESS]),l=$(()=>n.getters[V.GETTERS.ERROR_MESSAGES]),f=$(()=>n.getters[V.GETTERS.APP_CONFIG]),d=le(""),m=le(!1),_=le(!1),T=le(""),R=le("");function I(G){d.value=G,G!==""&&n.commit(we.MUTATIONS.UPDATE_IS_SUCCESS,!1)}function b(G){n.dispatch(we.ACTIONS.DELETE_USER_ACCOUNT,{username:G})}function v(G){R.value="password-reset",n.dispatch(we.ACTIONS.UPDATE_USER,{username:G,resetPassword:!0})}function g(G){n.dispatch(we.ACTIONS.UPDATE_USER,{username:G,activate:!0})}function L(){j(),T.value=r.value.email_to_confirm?r.value.email_to_confirm:"",_.value=!0,R.value="email-update"}function w(){T.value="",_.value=!1}function P(G){n.dispatch(we.ACTIONS.UPDATE_USER,{username:G,new_email:T.value})}function j(){n.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),n.commit(we.MUTATIONS.UPDATE_IS_SUCCESS,!1),R.value=""}return Rt(()=>j()),Be(()=>c.value,G=>{G&&(I(""),w())}),(G,z)=>{const k=ue("Modal"),Z=ue("AlertMessage"),ee=ue("ErrorMessage");return A(),N("div",fSe,[d.value?(A(),re(k,{key:0,title:G.$t("common.CONFIRMATION"),message:d.value==="delete"?"admin.CONFIRM_USER_ACCOUNT_DELETION":"admin.CONFIRM_USER_PASSWORD_RESET",strongMessage:E(r).username,onConfirmAction:z[0]||(z[0]=te=>d.value==="delete"?b(E(r).username):v(E(r).username)),onCancelAction:z[1]||(z[1]=te=>I("")),onKeydown:z[2]||(z[2]=Ot(te=>I(""),["esc"]))},null,8,["title","message","strongMessage"])):x("",!0),c.value?(A(),N("div",pSe,h(G.$t(`admin.${R.value==="password-reset"?"PASSWORD_RESET":"USER_EMAIL_UPDATE"}_SUCCESSFUL`)),1)):x("",!0),E(r).is_active?x("",!0):(A(),re(Z,{key:2,message:"user.THIS_USER_ACCOUNT_IS_INACTIVE"})),l.value?(A(),re(ee,{key:3,message:l.value},null,8,["message"])):x("",!0),_.value?(A(),N("div",mSe,[p("form",{class:Ae({errors:m.value}),onSubmit:z[5]||(z[5]=Ze(te=>P(E(r).username),["prevent"]))},[p("label",_Se,[K(h(G.$t("admin.CURRENT_EMAIL"))+" ",1),Xe(p("input",{id:"email",type:"email","onUpdate:modelValue":z[3]||(z[3]=te=>E(r).email=te),disabled:""},null,512),[[nt,E(r).email]])]),p("label",ESe,[K(h(G.$t("admin.NEW_EMAIL"))+"* ",1),Xe(p("input",{id:"new-email",type:"email",required:"","onUpdate:modelValue":z[4]||(z[4]=te=>T.value=te)},null,512),[[nt,T.value]])]),p("div",hSe,[p("button",TSe,h(G.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:Ze(w,["prevent"])},h(G.$t("buttons.CANCEL")),9,gSe)])],34)])):(A(),N("div",ASe,[p("dl",null,[p("dt",null,h(G.$t("user.PROFILE.REGISTRATION_DATE"))+":",1),p("dd",null,[p("time",null,h(i.value),1)]),p("dt",null,h(G.$t("user.PROFILE.FIRST_NAME"))+":",1),p("dd",null,h(E(r).first_name),1),p("dt",null,h(G.$t("user.PROFILE.LAST_NAME"))+":",1),p("dd",null,h(E(r).last_name),1),p("dt",null,h(G.$t("user.PROFILE.BIRTH_DATE"))+":",1),p("dd",null,[u.value?(A(),N("time",SSe,h(u.value),1)):x("",!0)]),p("dt",null,h(G.$t("user.PROFILE.LOCATION"))+":",1),p("dd",null,h(E(r).location),1),p("dt",null,h(G.$t("user.PROFILE.BIO"))+":",1),p("dd",OSe,h(E(r).bio),1)]),E(a)?(A(),N("div",ISe,[o.value.username!==E(r).username?(A(),N("button",{key:0,class:"danger",onClick:z[6]||(z[6]=Ze(te=>I("delete"),["prevent"]))},h(G.$t("admin.DELETE_USER")),1)):x("",!0),E(r).is_active?x("",!0):(A(),N("button",{key:1,onClick:z[7]||(z[7]=Ze(te=>g(E(r).username),["prevent"]))},h(G.$t("admin.ACTIVATE_USER_ACCOUNT")),1)),o.value.username!==E(r).username?(A(),N("button",{key:2,onClick:Ze(L,["prevent"])},h(G.$t("admin.UPDATE_USER_EMAIL")),9,vSe)):x("",!0),o.value.username!==E(r).username&&f.value.is_email_sending_enabled?(A(),N("button",{key:3,onClick:z[8]||(z[8]=Ze(te=>I("reset"),["prevent"]))},h(G.$t("admin.RESET_USER_PASSWORD")),1)):x("",!0),p("button",{onClick:z[9]||(z[9]=te=>G.$router.go(-1))},h(G.$t("buttons.BACK")),1)])):(A(),N("div",bSe,[p("button",{onClick:z[10]||(z[10]=te=>G.$router.push("/profile/edit"))},h(G.$t("user.PROFILE.EDIT")),1),p("button",{onClick:z[11]||(z[11]=te=>G.$router.push("/"))},h(G.$t("common.HOME")),1)]))]))])}}});const Qg=se(RSe,[["__scopeId","data-v-98220281"]]),NSe={id:"user-preferences",class:"description-list"},ySe={class:"info-box raw-speed-help"},CSe=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1),DSe={class:"profile-buttons"},PSe=Q({__name:"UserPreferences",props:{user:{}},setup(e){const t=e,n=Me(),r=$(()=>n.getters[V.GETTERS.LANGUAGE]),a=$(()=>t.user.language?Yl[t.user.language]:Yl.en),s=$(()=>t.user.weekm?"MONDAY":"SUNDAY"),o=$(()=>t.user.timezone?t.user.timezone:"Europe/Paris"),i=$(()=>t.user.date_format?t.user.date_format:"MM/dd/yyyy"),u=$(()=>t.user.display_ascent?"DISPLAYED":"HIDDEN");return(c,l)=>(A(),N("div",NSe,[p("dl",null,[p("dt",null,h(c.$t("user.PROFILE.LANGUAGE"))+":",1),p("dd",null,h(a.value),1),p("dt",null,h(c.$t("user.PROFILE.TIMEZONE"))+":",1),p("dd",null,h(o.value),1),p("dt",null,h(c.$t("user.PROFILE.DATE_FORMAT"))+":",1),p("dd",null,h(E(Oa)(i.value,r.value)),1),p("dt",null,h(c.$t("user.PROFILE.FIRST_DAY_OF_WEEK"))+":",1),p("dd",null,h(c.$t(`user.PROFILE.${s.value}`)),1),p("dt",null,h(c.$t("user.PROFILE.UNITS.LABEL"))+":",1),p("dd",null,h(c.$t(`user.PROFILE.UNITS.${c.user.imperial_units?"IMPERIAL":"METRIC"}`)),1),p("dt",null,h(c.$t("user.PROFILE.ASCENT_DATA"))+":",1),p("dd",null,h(c.$t(`common.${u.value}`)),1),p("dt",null,h(c.$t("user.PROFILE.ELEVATION_CHART_START.LABEL"))+":",1),p("dd",null,h(c.$t(`user.PROFILE.ELEVATION_CHART_START.${c.user.start_elevation_at_zero?"ZERO":"MIN_ALT"}`)),1),p("dt",null,h(c.$t("user.PROFILE.USE_RAW_GPX_SPEED.LABEL"))+":",1),p("dd",null,h(c.$t(`user.PROFILE.USE_RAW_GPX_SPEED.${c.user.use_raw_gpx_speed?"RAW_SPEED":"FILTERED_SPEED"}`)),1),p("div",ySe,[p("span",null,[CSe,K(" "+h(c.$t("user.PROFILE.USE_RAW_GPX_SPEED.HELP")),1)])])]),p("div",DSe,[p("button",{onClick:l[0]||(l[0]=f=>c.$router.push("/profile/edit/preferences"))},h(c.$t("user.PROFILE.EDIT_PREFERENCES")),1),p("button",{onClick:l[1]||(l[1]=f=>c.$router.push("/"))},h(c.$t("common.HOME")),1)])]))}}),wSe={id:"user-profile-edition",class:"center-card"},LSe=Q({__name:"index",props:{user:{},tab:{}},setup(e){const t=e,n=Me(),{user:r,tab:a}=Te(t),s=["PROFILE","ACCOUNT","PICTURE","PREFERENCES","SPORTS","PRIVACY-POLICY"],o=$(()=>n.getters[Y.GETTERS.USER_LOADING]);return(i,u)=>{const c=ue("router-view"),l=ue("Card");return A(),N("div",wSe,[U(l,null,{title:pe(()=>[K(h(i.$t(`user.PROFILE.${E(a)}_EDITION`)),1)]),content:pe(()=>[U(Zg,{tabs:s,selectedTab:E(a),edition:!0,disabled:o.value},null,8,["selectedTab","disabled"]),U(c,{user:E(r)},null,8,["user"])]),_:1})])}}}),oo=new Map,$Se=e=>{const{method:t,url:n,params:r={},data:a={}}=e;return[t,n,JSON.stringify(r),JSON.stringify(a)].join("")},Ts=e=>{const t=$Se(e);if(oo.has(t)){const n=oo.get(t)||{};n==null||n.abort(),oo.delete(t)}return t},wr=e1.create({baseURL:Fo()});wr.interceptors.request.use(e=>{const t=new AbortController;e.signal=t.signal;const n=Ts(e);return oo.set(n,t),e},e=>Promise.reject(e));wr.interceptors.response.use(e=>(Ts(e.config),e),e=>(e.message!=="canceled"&&e.response&&Ts(e.response.config),Promise.reject(e)));const Jg=(e,t)=>{e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.delete(`users/${t.username}`).then(n=>{n.status===204?t.fromAdmin?Tt.push("/admin/users"):e.dispatch(Y.ACTIONS.LOGOUT).then(()=>Tt.push("/")):Ee(e,null)}).catch(n=>Ee(e,n))},kSe={[we.ACTIONS.EMPTY_USER](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(we.MUTATIONS.UPDATE_USER,{})},[we.ACTIONS.EMPTY_USERS](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(we.MUTATIONS.UPDATE_USERS,[]),e.commit(we.MUTATIONS.UPDATE_USERS_PAGINATION,{})},[we.ACTIONS.GET_USER](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(we.MUTATIONS.UPDATE_USERS_LOADING,!0),je.get(`users/${t}`).then(n=>{n.data.status==="success"?e.commit(we.MUTATIONS.UPDATE_USER,n.data.data.users[0]):Ee(e,null)}).catch(n=>Ee(e,n)).finally(()=>e.commit(we.MUTATIONS.UPDATE_USERS_LOADING,!1))},[we.ACTIONS.GET_USERS](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(we.MUTATIONS.UPDATE_USERS_LOADING,!0),je.get("users",{params:t}).then(n=>{n.data.status==="success"?(e.commit(we.MUTATIONS.UPDATE_USERS,n.data.data.users),e.commit(we.MUTATIONS.UPDATE_USERS_PAGINATION,n.data.pagination)):Ee(e,null)}).catch(n=>Ee(e,n)).finally(()=>e.commit(we.MUTATIONS.UPDATE_USERS_LOADING,!1))},[we.ACTIONS.UPDATE_USER](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(we.MUTATIONS.UPDATE_IS_SUCCESS,!1);const n={};t.admin!==void 0&&(n.admin=t.admin),t.resetPassword&&(n.reset_password=t.resetPassword),t.activate&&(n.activate=t.activate),t.new_email!==void 0&&(n.new_email=t.new_email),je.patch(`users/${t.username}`,n).then(r=>{r.data.status==="success"?(e.commit(we.MUTATIONS.UPDATE_USER_IN_USERS,r.data.data.users[0]),(t.resetPassword||t.new_email)&&e.commit(we.MUTATIONS.UPDATE_IS_SUCCESS,!0),(t.activate||t.new_email)&&e.commit(we.MUTATIONS.UPDATE_USER,r.data.data.users[0])):Ee(e,null)}).catch(r=>Ee(e,r)).finally(()=>e.commit(we.MUTATIONS.UPDATE_USERS_LOADING,!1))},[we.ACTIONS.DELETE_USER_ACCOUNT](e,t){Jg(e,{username:t.username,fromAdmin:!0})}},vi=e=>{localStorage.removeItem("authToken"),e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Br.MUTATIONS.EMPTY_USER_STATS),e.commit(Y.MUTATIONS.CLEAR_AUTH_USER_TOKEN),e.commit(we.MUTATIONS.UPDATE_USERS,[]),e.commit(ge.MUTATIONS.EMPTY_WORKOUTS),e.commit(ge.MUTATIONS.EMPTY_WORKOUT),Tt.push("/login")},USe={[Y.ACTIONS.CHECK_AUTH_USER](e){window.localStorage.authToken&&!e.getters[Y.GETTERS.IS_AUTHENTICATED]&&(e.commit(Y.MUTATIONS.UPDATE_AUTH_TOKEN,window.localStorage.authToken),e.dispatch(Y.ACTIONS.GET_USER_PROFILE)),!window.localStorage.authToken&&e.getters[Y.GETTERS.IS_AUTHENTICATED]&&vi(e)},[Y.ACTIONS.CONFIRM_ACCOUNT](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),wr.post("auth/account/confirm",{token:t.token}).then(n=>{if(n.data.status==="success"){const r=n.data.auth_token;window.localStorage.setItem("authToken",r),e.commit(Y.MUTATIONS.UPDATE_AUTH_TOKEN,r),e.dispatch(Y.ACTIONS.GET_USER_PROFILE).then(()=>Tt.push("/"))}else Ee(e,null)}).catch(n=>{Ee(e,n)})},[Y.ACTIONS.CONFIRM_EMAIL](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_IS_SUCCESS,!1),wr.post("/auth/email/update",{token:t.token}).then(n=>{n.data.status==="success"?(e.commit(Y.MUTATIONS.UPDATE_IS_SUCCESS,!0),t.refreshUser&&e.dispatch(Y.ACTIONS.GET_USER_PROFILE).then(()=>Tt.push("/profile/edit/account")),Tt.push("/profile/edit/account")):Ee(e,null)}).catch(n=>{Ee(e,n)})},[Y.ACTIONS.GET_USER_PROFILE](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get("auth/profile").then(t=>{t.data.status==="success"?(e.commit(Y.MUTATIONS.UPDATE_AUTH_USER_PROFILE,t.data.data),t.data.data.accepted_privacy_policy||e.dispatch(V.ACTIONS.GET_APPLICATION_PRIVACY_POLICY),t.data.data.language&&e.dispatch(V.ACTIONS.UPDATE_APPLICATION_LANGUAGE,t.data.data.language),e.dispatch(Mt.ACTIONS.GET_SPORTS)):(Ee(e,null),vi(e))}).catch(t=>{t.message!=="canceled"&&(Ee(e,t),vi(e))})},[Y.ACTIONS.LOGIN_OR_REGISTER](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS,!1),wr.post(`/auth/${t.actionType}`,t.formData).then(n=>{if(n.data.status==="success")if(t.actionType==="login"){const r=n.data.auth_token;window.localStorage.setItem("authToken",r),e.commit(Y.MUTATIONS.UPDATE_AUTH_TOKEN,r),e.dispatch(Y.ACTIONS.GET_USER_PROFILE).then(()=>Tt.push(typeof t.redirectUrl=="string"?t.redirectUrl:"/"))}else Tt.push("/login").then(()=>e.commit(Y.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS,!0));else Ee(e,null)}).catch(n=>Ee(e,n))},[Y.ACTIONS.LOGOUT](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.post("auth/logout").then(t=>{t.data.status==="success"?vi(e):Ee(e,null)}).catch(t=>Ee(e,t))},[Y.ACTIONS.UPDATE_USER_PROFILE](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!0),je.post("auth/profile/edit",t).then(n=>{n.data.status==="success"?(e.commit(Y.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),Tt.push("/profile")):Ee(e,null)}).catch(n=>Ee(e,n)).finally(()=>e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1))},[Y.ACTIONS.UPDATE_USER_ACCOUNT](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!0),e.commit(Y.MUTATIONS.UPDATE_IS_SUCCESS,!1),je.patch("auth/profile/edit/account",t).then(n=>{n.data.status==="success"?(e.commit(Y.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),e.commit(Y.MUTATIONS.UPDATE_IS_SUCCESS,!0)):Ee(e,null)}).catch(n=>Ee(e,n)).finally(()=>e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1))},[Y.ACTIONS.UPDATE_USER_PREFERENCES](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!0),je.post("auth/profile/edit/preferences",t).then(n=>{n.data.status==="success"?(e.commit(Y.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),e.dispatch(V.ACTIONS.UPDATE_APPLICATION_LANGUAGE,n.data.data.language).then(()=>Tt.push("/profile/preferences"))):Ee(e,null)}).catch(n=>Ee(e,n)).finally(()=>e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1))},[Y.ACTIONS.RESET_USER_SPORT_PREFERENCES](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!0),je.delete(`auth/profile/reset/sports/${t}`).then(n=>{n.status===204?e.dispatch(Mt.ACTIONS.GET_SPORTS):Ee(e,null)}).catch(n=>{Ee(e,n),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1)})},[Y.ACTIONS.UPDATE_USER_SPORT_PREFERENCES](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!0),je.post("auth/profile/edit/sports",t).then(n=>{n.data.status==="success"?e.dispatch(Mt.ACTIONS.GET_SPORTS):Ee(e,null)}).catch(n=>{Ee(e,n),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1)})},[Y.ACTIONS.UPDATE_USER_PICTURE](e,t){if(e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!0),!t.picture)throw new Error("No file part");const n=new FormData;n.append("file",t.picture),je.post("auth/picture",n,{headers:{"content-type":"multipart/form-data"}}).then(r=>{r.data.status==="success"?e.dispatch(Y.ACTIONS.GET_USER_PROFILE).then(()=>Tt.push("/profile")):Ee(e,null)}).catch(r=>Ee(e,r)).finally(()=>e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1))},[Y.ACTIONS.DELETE_ACCOUNT](e,t){Jg(e,t)},[Y.ACTIONS.DELETE_PICTURE](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!0),je.delete("auth/picture").then(t=>{t.status===204?e.dispatch(Y.ACTIONS.GET_USER_PROFILE).then(()=>Tt.push("/profile")):Ee(e,null)}).catch(t=>Ee(e,t)).finally(()=>e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1))},[Y.ACTIONS.SEND_PASSWORD_RESET_REQUEST](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),wr.post("auth/password/reset-request",t).then(n=>{n.data.status==="success"?Tt.push("/password-reset/sent"):Ee(e,null)}).catch(n=>Ee(e,n))},[Y.ACTIONS.RESEND_ACCOUNT_CONFIRMATION_EMAIL](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),wr.post("auth/account/resend-confirmation",t).then(n=>{n.data.status==="success"?Tt.push("/account-confirmation/email-sent"):Ee(e,null)}).catch(n=>Ee(e,n))},[Y.ACTIONS.RESET_USER_PASSWORD](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),wr.post("auth/password/update",t).then(n=>{n.data.status==="success"?Tt.push("/password-reset/password-updated"):Ee(e,null)}).catch(n=>Ee(e,n))},[Y.ACTIONS.ACCEPT_PRIVACY_POLICY](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.post("auth/account/privacy-policy",{accepted_policy:t}).then(n=>{n.data.status==="success"?e.dispatch(Y.ACTIONS.GET_USER_PROFILE).then(()=>Tt.push("/profile")):Ee(e,null)}).catch(n=>Ee(e,n))},[Y.ACTIONS.REQUEST_DATA_EXPORT](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.post("auth/account/export/request").then(t=>{t.data.status==="success"?e.commit(Y.MUTATIONS.SET_EXPORT_REQUEST,t.data.request):Ee(e,null)}).catch(t=>Ee(e,t))},[Y.ACTIONS.GET_REQUEST_DATA_EXPORT](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get("auth/account/export").then(t=>{t.data.status==="success"?e.commit(Y.MUTATIONS.SET_EXPORT_REQUEST,t.data.request):Ee(e,null)}).catch(t=>Ee(e,t))}},MSe={[Y.GETTERS.AUTH_TOKEN]:e=>e.authToken,[Y.GETTERS.AUTH_USER_PROFILE]:e=>e.authUserProfile,[Y.GETTERS.EXPORT_REQUEST]:e=>e.exportRequest,[Y.GETTERS.IS_AUTHENTICATED]:e=>e.authToken!==null,[Y.GETTERS.IS_ADMIN]:e=>e.authUserProfile&&e.authUserProfile.admin,[Y.GETTERS.IS_REGISTRATION_SUCCESS]:e=>e.isRegistrationSuccess,[Y.GETTERS.IS_SUCCESS]:e=>e.isSuccess,[Y.GETTERS.USER_LOADING]:e=>e.loading},xSe={[Y.MUTATIONS.CLEAR_AUTH_USER_TOKEN](e){e.authToken=null,e.authUserProfile={}},[Y.MUTATIONS.UPDATE_AUTH_TOKEN](e,t){e.authToken=t},[Y.MUTATIONS.UPDATE_AUTH_USER_PROFILE](e,t){e.authUserProfile=t},[Y.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS](e,t){e.isRegistrationSuccess=t},[Y.MUTATIONS.UPDATE_IS_SUCCESS](e,t){e.isSuccess=t},[Y.MUTATIONS.UPDATE_USER_LOADING](e,t){e.loading=t},[Y.MUTATIONS.SET_EXPORT_REQUEST](e,t){e.exportRequest=t}},FSe={authToken:null,authUserProfile:{},isSuccess:!1,isRegistrationSuccess:!1,loading:!1,exportRequest:null},WSe={state:FSe,actions:USe,getters:MSe,mutations:xSe},U_=(e,t)=>{e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get(t).then(n=>{n.data.status==="success"?e.commit(Ke.MUTATIONS.SET_CLIENT,n.data.data.client):Ee(e,null)}).catch(n=>Ee(e,n))},GSe={[Ke.ACTIONS.AUTHORIZE_CLIENT](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES);const n=new FormData;n.set("client_id",t.client_id),n.set("response_type",t.response_type),n.set("scope",t.scope),n.set("confirm","true"),t.state&&n.set("state",t.state),t.code_challenge&&n.set("code_challenge",t.code_challenge),t.code_challenge_method&&n.set("code_challenge_method",t.code_challenge_method),je.post("oauth/authorize",n,{headers:{"Content-Type":"multipart/form-data"}}).then(r=>{r.status==200&&r.data.redirect_url?window.location.href=r.data.redirect_url:Ee(e,null)}).catch(r=>Ee(e,r))},[Ke.ACTIONS.CREATE_CLIENT](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.post("oauth/apps",t).then(n=>{n.data.status==="created"?(e.commit(Ke.MUTATIONS.SET_CLIENT,n.data.data.client),Tt.push(`/profile/apps/${n.data.data.client.id}/created`)):Ee(e,null)}).catch(n=>Ee(e,n))},[Ke.ACTIONS.DELETE_CLIENT](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.delete(`oauth/apps/${t}`).then(n=>{n.status===204?e.dispatch(Ke.ACTIONS.GET_CLIENTS).then(()=>Tt.push("/profile/apps")):Ee(e,null)}).catch(n=>Ee(e,n))},[Ke.ACTIONS.GET_CLIENT_BY_CLIENT_ID](e,t){U_(e,`oauth/apps/${t}`)},[Ke.ACTIONS.GET_CLIENT_BY_ID](e,t){U_(e,`oauth/apps/${t}/by_id`)},[Ke.ACTIONS.GET_CLIENTS](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get("oauth/apps",{params:t}).then(n=>{n.data.status==="success"?(e.commit(Ke.MUTATIONS.SET_CLIENTS,n.data.data.clients),e.commit(Ke.MUTATIONS.SET_CLIENTS_PAGINATION,n.data.pagination)):Ee(e,null)}).catch(n=>Ee(e,n))},[Ke.ACTIONS.REVOKE_ALL_TOKENS](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Ke.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!1),je.post(`oauth/apps/${t}/revoke`).then(n=>{n.data.status==="success"?e.commit(Ke.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!0):Ee(e,null)}).catch(n=>Ee(e,n))}},zSe={[Ke.GETTERS.CLIENT]:e=>e.client,[Ke.GETTERS.CLIENTS]:e=>e.clients,[Ke.GETTERS.CLIENTS_PAGINATION]:e=>e.pagination,[Ke.GETTERS.REVOCATION_SUCCESSFUL]:e=>e.revocationSuccessful},BSe={[Ke.MUTATIONS.SET_CLIENT](e,t){e.client=t},[Ke.MUTATIONS.EMPTY_CLIENT](e){e.client={}},[Ke.MUTATIONS.SET_CLIENTS](e,t){e.clients=t},[Ke.MUTATIONS.SET_CLIENTS_PAGINATION](e,t){e.pagination=t},[Ke.MUTATIONS.SET_REVOCATION_SUCCESSFUL](e,t){e.revocationSuccessful=t}},HSe={client:{},clients:[],pagination:{},revocationSuccessful:!1},jSe={state:HSe,actions:GSe,getters:zSe,mutations:BSe},{locale:VSe}=Aa.global,KSe={[V.ACTIONS.GET_APPLICATION_CONFIG](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(V.MUTATIONS.UPDATE_APPLICATION_LOADING,!0),je.get("config").then(t=>{t.data.status==="success"?e.commit(V.MUTATIONS.UPDATE_APPLICATION_CONFIG,t.data.data):Ee(e,null)}).catch(t=>Ee(e,t)).finally(()=>e.commit(V.MUTATIONS.UPDATE_APPLICATION_LOADING,!1))},[V.ACTIONS.GET_APPLICATION_STATS](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get("stats/all").then(t=>{t.data.status==="success"?e.commit(V.MUTATIONS.UPDATE_APPLICATION_STATS,t.data.data):Ee(e,null)}).catch(t=>Ee(e,t))},[V.ACTIONS.GET_APPLICATION_PRIVACY_POLICY](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get("config").then(t=>{t.data.status==="success"?e.commit(V.MUTATIONS.UPDATE_APPLICATION_PRIVACY_POLICY,t.data.data):Ee(e,null)}).catch(t=>Ee(e,t))},[V.ACTIONS.UPDATE_APPLICATION_CONFIG](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.patch("config",t).then(n=>{n.data.status==="success"?(e.commit(V.MUTATIONS.UPDATE_APPLICATION_CONFIG,n.data.data),Tt.push("/admin/application")):Ee(e,null)}).catch(n=>Ee(e,n))},[V.ACTIONS.UPDATE_APPLICATION_LANGUAGE](e,t){var n;(n=document.querySelector("html"))==null||n.setAttribute("lang",t),e.commit(V.MUTATIONS.UPDATE_LANG,t),VSe.value=t}},YSe={[V.GETTERS.APP_CONFIG]:e=>e.application.config,[V.GETTERS.APP_LOADING]:e=>e.appLoading,[V.GETTERS.APP_STATS]:e=>e.application.statistics,[V.GETTERS.ERROR_MESSAGES]:e=>e.errorMessages,[V.GETTERS.LANGUAGE]:e=>e.language,[V.GETTERS.LOCALE]:e=>e.locale},qSe={[V.MUTATIONS.EMPTY_ERROR_MESSAGES](e){e.errorMessages=null},[V.MUTATIONS.SET_ERROR_MESSAGES](e,t){e.errorMessages=t},[V.MUTATIONS.UPDATE_APPLICATION_CONFIG](e,t){e.application.config=t},[V.MUTATIONS.UPDATE_APPLICATION_LOADING](e,t){e.appLoading=t},[V.MUTATIONS.UPDATE_APPLICATION_PRIVACY_POLICY](e,t){e.application.config.privacy_policy=t.privacy_policy,e.application.config.privacy_policy_date=t.privacy_policy_date},[V.MUTATIONS.UPDATE_APPLICATION_STATS](e,t){e.application.statistics=t},[V.MUTATIONS.UPDATE_LANG](e,t){e.language=t,e.locale=Ho[t]}},XSe={root:!0,language:"en",locale:nc,errorMessages:null,application:{statistics:{sports:0,uploads_dir_size:0,users:0,workouts:0}},appLoading:!1},ZSe={[Mt.ACTIONS.GET_SPORTS](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get("sports").then(t=>{t.data.status==="success"?(e.commit(Mt.MUTATIONS.SET_SPORTS,t.data.data.sports),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1)):Ee(e,null)}).catch(t=>Ee(e,t))},[Mt.ACTIONS.UPDATE_SPORTS](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.patch(`sports/${t.id}`,{is_active:t.isActive}).then(n=>{n.data.status==="success"?e.dispatch(Mt.ACTIONS.GET_SPORTS):Ee(e,null)}).catch(n=>Ee(e,n))}},QSe={[Mt.GETTERS.SPORTS]:e=>e.sports},JSe={[Mt.MUTATIONS.SET_SPORTS](e,t){e.sports=t}},eOe={sports:[]},tOe={state:eOe,actions:ZSe,getters:QSe,mutations:JSe},nOe={[Br.ACTIONS.GET_USER_STATS](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get(`stats/${t.username}/${t.filterType}`,{params:t.params}).then(n=>{n.data.status==="success"?e.commit(Br.MUTATIONS.UPDATE_USER_STATS,n.data.data.statistics):Ee(e,null)}).catch(n=>Ee(e,n))}},rOe={[Br.GETTERS.USER_STATS]:e=>e.statistics},aOe={[Br.MUTATIONS.UPDATE_USER_STATS](e,t){e.statistics=t},[Br.MUTATIONS.EMPTY_USER_STATS](e){e.statistics={}}},sOe={statistics:{}},oOe={state:sOe,actions:nOe,getters:rOe,mutations:aOe},iOe={[we.GETTERS.USER]:e=>e.user,[we.GETTERS.USERS]:e=>e.users,[we.GETTERS.USERS_IS_SUCCESS]:e=>e.isSuccess,[we.GETTERS.USERS_LOADING]:e=>e.loading,[we.GETTERS.USERS_PAGINATION]:e=>e.pagination},uOe={[we.MUTATIONS.UPDATE_USER](e,t){e.user=t},[we.MUTATIONS.UPDATE_USER_IN_USERS](e,t){e.users=e.users.map(n=>n.username===t.username?t:n)},[we.MUTATIONS.UPDATE_USERS](e,t){e.users=t},[we.MUTATIONS.UPDATE_USERS_LOADING](e,t){e.loading=t},[we.MUTATIONS.UPDATE_USERS_PAGINATION](e,t){e.pagination=t},[we.MUTATIONS.UPDATE_IS_SUCCESS](e,t){e.isSuccess=t}},cOe={user:{},users:[],loading:!1,isSuccess:!1,pagination:{}},lOe={state:cOe,actions:kSe,getters:iOe,mutations:uOe},bi=(e,t,n)=>{e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get("workouts",{params:t}).then(r=>{r.data.status==="success"?(e.commit(ge.MUTATIONS[n],r.data.data.workouts),n===ia.SET_USER_WORKOUTS&&e.commit(ge.MUTATIONS.SET_WORKOUTS_PAGINATION,r.data.pagination)):Ee(e,null)}).catch(r=>Ee(e,r))},dOe={[ge.ACTIONS.GET_CALENDAR_WORKOUTS](e,t){e.commit(ge.MUTATIONS.EMPTY_CALENDAR_WORKOUTS),bi(e,t,ia.SET_CALENDAR_WORKOUTS)},[ge.ACTIONS.GET_USER_WORKOUTS](e,t){bi(e,t,ia.SET_USER_WORKOUTS)},[ge.ACTIONS.GET_TIMELINE_WORKOUTS](e,t){bi(e,t,ia.SET_TIMELINE_WORKOUTS)},[ge.ACTIONS.GET_MORE_TIMELINE_WORKOUTS](e,t){bi(e,t,ia.ADD_TIMELINE_WORKOUTS)},[ge.ACTIONS.GET_WORKOUT_DATA](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!0);const n=t.segmentId?`/segment/${t.segmentId}`:"";je.get(`workouts/${t.workoutId}`).then(r=>{const a=r.data.data.workouts[0];if(r.data.status==="success"){if(t.segmentId&&(a.segments.length===0||!a.segments[+t.segmentId-1]))throw new Error("WORKOUT_NOT_FOUND");e.commit(ge.MUTATIONS.SET_WORKOUT,r.data.data.workouts[0]),r.data.data.workouts[0].with_gpx&&(je.get(`workouts/${t.workoutId}/chart_data${n}`).then(s=>{s.data.status==="success"&&e.commit(ge.MUTATIONS.SET_WORKOUT_CHART_DATA,s.data.data.chart_data)}),je.get(`workouts/${t.workoutId}/gpx${n}`).then(s=>{s.data.status==="success"&&e.commit(ge.MUTATIONS.SET_WORKOUT_GPX,s.data.data.gpx)}))}else e.commit(ge.MUTATIONS.EMPTY_WORKOUT),Ee(e,null)}).catch(r=>{e.commit(ge.MUTATIONS.EMPTY_WORKOUT),Ee(e,r)}).finally(()=>e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ge.ACTIONS.DELETE_WORKOUT](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!0),je.delete(`workouts/${t.workoutId}`).then(()=>{e.commit(ge.MUTATIONS.EMPTY_WORKOUT),e.dispatch(Y.ACTIONS.GET_USER_PROFILE),Tt.push("/")}).catch(n=>{Ee(e,n)}).finally(()=>e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ge.ACTIONS.EDIT_WORKOUT](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!0),je.patch(`workouts/${t.workoutId}`,t.data).then(()=>{e.dispatch(Y.ACTIONS.GET_USER_PROFILE),e.dispatch(ge.ACTIONS.GET_WORKOUT_DATA,{workoutId:t.workoutId}).then(()=>{Tt.push({name:"Workout",params:{workoutId:t.workoutId}})})}).catch(n=>{Ee(e,n)}).finally(()=>e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ge.ACTIONS.ADD_WORKOUT](e,t){if(e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!0),!t.file)throw new Error("No file part");const n=t.notes.replace(/"/g,'\\"'),r=new FormData;r.append("file",t.file),r.append("data",`{"sport_id": ${t.sport_id}, "notes": "${n}"}`),je.post("workouts",r,{headers:{"content-type":"multipart/form-data"}}).then(a=>{if(a.data.status==="created"){e.dispatch(Y.ACTIONS.GET_USER_PROFILE);const s=a.data.data.workouts[0];Tt.push(a.data.data.workouts.length===1?`/workouts/${s.id}`:"/")}}).catch(a=>{Ee(e,a)}).finally(()=>e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ge.ACTIONS.ADD_WORKOUT_WITHOUT_GPX](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!0),je.post("workouts/no_gpx",t).then(n=>{if(n.data.status==="created"){e.dispatch(Y.ACTIONS.GET_USER_PROFILE);const r=n.data.data.workouts[0];Tt.push(`/workouts/${r.id}`)}}).catch(n=>{Ee(e,n)}).finally(()=>e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!1))}},fOe={[ge.GETTERS.CALENDAR_WORKOUTS]:e=>e.calendar_workouts,[ge.GETTERS.TIMELINE_WORKOUTS]:e=>e.timeline_workouts,[ge.GETTERS.USER_WORKOUTS]:e=>e.user_workouts,[ge.GETTERS.WORKOUT_DATA]:e=>e.workoutData,[ge.GETTERS.WORKOUTS_PAGINATION]:e=>e.pagination},pOe={[ge.MUTATIONS.ADD_TIMELINE_WORKOUTS](e,t){e.timeline_workouts=e.timeline_workouts.concat(t)},[ge.MUTATIONS.SET_CALENDAR_WORKOUTS](e,t){e.calendar_workouts=t},[ge.MUTATIONS.SET_TIMELINE_WORKOUTS](e,t){e.timeline_workouts=t},[ge.MUTATIONS.SET_USER_WORKOUTS](e,t){e.user_workouts=t},[ge.MUTATIONS.SET_WORKOUTS_PAGINATION](e,t){e.pagination=t},[ge.MUTATIONS.SET_WORKOUT](e,t){e.workoutData.workout=t},[ge.MUTATIONS.SET_WORKOUT_CHART_DATA](e,t){e.workoutData.chartData=t},[ge.MUTATIONS.SET_WORKOUT_GPX](e,t){e.workoutData.gpx=t},[ge.MUTATIONS.SET_WORKOUT_LOADING](e,t){e.workoutData.loading=t},[ge.MUTATIONS.EMPTY_CALENDAR_WORKOUTS](e){e.calendar_workouts=[]},[ge.MUTATIONS.EMPTY_WORKOUTS](e){e.calendar_workouts=[],e.user_workouts=[],e.timeline_workouts=[]},[ge.MUTATIONS.EMPTY_WORKOUT](e){e.workoutData={gpx:"",loading:!1,workout:{},chartData:[]}}},mOe={calendar_workouts:[],timeline_workouts:[],pagination:{},user_workouts:[],workoutData:{gpx:"",loading:!1,workout:{},chartData:[]}},_Oe={state:mOe,actions:dOe,getters:fOe,mutations:pOe},EOe={authUserModule:WSe,oAuthModule:jSe,sportsModule:tOe,statsModule:oOe,usersModule:lOe,workoutsModule:_Oe},hOe={state:XSe,actions:KSe,getters:YSe,mutations:qSe,modules:EOe},io=SR(hOe),a0=e1.create({baseURL:Fo()});a0.interceptors.request.use(e=>{const t=new AbortController;e.signal=t.signal;const n=Ts(e);oo.set(n,t);const r=io.getters[Y.GETTERS.AUTH_TOKEN];if(r){const a=`Bearer ${r}`;e.headers&&e.headers.Authorization!==a&&(e.headers.Authorization=`Bearer ${r}`)}return e},e=>Promise.reject(e));a0.interceptors.response.use(e=>(Ts(e.config),e),e=>(e.message!=="canceled"&&e.response&&Ts(e.response.config),Promise.reject(e)));const je=a0,Pd=(e,t)=>e.push.apply(e,t),gs=e=>e.sort((t,n)=>t.i-n.i||t.j-n.j),M_=e=>{const t={};let n=1;return e.forEach(r=>{t[r]=n,n+=1}),t};var TOe={4:[[1,2],[2,3]],5:[[1,3],[2,3],[2,4]],6:[[1,2],[2,4],[4,5]],7:[[1,3],[2,3],[4,5],[4,6]],8:[[2,4],[4,6]]};const x_=2050,F_=1e3,gOe=TOe,AOe=10,SOe=1e4,eA=10,tA=50,nA=20,rA=/^[A-Z\xbf-\xdf][^A-Z\xbf-\xdf]+$/,OOe=/^[^A-Z\xbf-\xdf]+[A-Z\xbf-\xdf]$/,IOe=/^[A-Z\xbf-\xdf]+$/,aA=/^[^a-z\xdf-\xff]+$/,vOe=/^[a-z\xdf-\xff]+$/,bOe=/^[^A-Z\xbf-\xdf]+$/,ROe=/[a-z\xdf-\xff]/,NOe=/[A-Z\xbf-\xdf]/,yOe=/[^A-Za-z\xbf-\xdf]/gi,COe=/^\d+$/,s0=new Date().getFullYear(),DOe={recentYear:/19\d\d|200\d|201\d|202\d/g},sA=[" ",",",";",":","|","/","\\","_",".","-"],POe=sA.length;class wOe{match({password:t}){const n=[...this.getMatchesWithoutSeparator(t),...this.getMatchesWithSeparator(t)],r=this.filterNoise(n);return gs(r)}getMatchesWithSeparator(t){const n=[],r=/^(\d{1,4})([\s/\\_.-])(\d{1,2})\2(\d{1,4})$/;for(let a=0;a<=Math.abs(t.length-6);a+=1)for(let s=a+5;s<=a+9&&!(s>=t.length);s+=1){const o=t.slice(a,+s+1||9e9),i=r.exec(o);if(i!=null){const u=this.mapIntegersToDayMonthYear([parseInt(i[1],10),parseInt(i[3],10),parseInt(i[4],10)]);u!=null&&n.push({pattern:"date",token:o,i:a,j:s,separator:i[2],year:u.year,month:u.month,day:u.day})}}return n}getMatchesWithoutSeparator(t){const n=[],r=/^\d{4,8}$/,a=s=>Math.abs(s.year-s0);for(let s=0;s<=Math.abs(t.length-4);s+=1)for(let o=s+3;o<=s+7&&!(o>=t.length);o+=1){const i=t.slice(s,+o+1||9e9);if(r.exec(i)){const u=[],c=i.length;if(gOe[c].forEach(([f,d])=>{const m=this.mapIntegersToDayMonthYear([parseInt(i.slice(0,f),10),parseInt(i.slice(f,d),10),parseInt(i.slice(d),10)]);m!=null&&u.push(m)}),u.length>0){let f=u[0],d=a(u[0]);u.slice(1).forEach(m=>{const _=a(m);_{let r=!1;const a=t.length;for(let s=0;s=n.j){r=!0;break}}return!r})}mapIntegersToDayMonthYear(t){if(t[1]>31||t[1]<=0)return null;let n=0,r=0,a=0;for(let s=0,o=t.length;s99&&ix_)return null;i>31&&(r+=1),i>12&&(n+=1),i<=0&&(a+=1)}return r>=2||n===3||a>=2?null:this.getDayMonth(t)}getDayMonth(t){const n=[[t[2],t.slice(0,2)],[t[0],t.slice(1,3)]],r=n.length;for(let a=0;a=1&&s<=31&&o>=1&&o<=12)return{day:s,month:o}}return null}twoToFourDigitYear(t){return t>99?t:t>50?t+1900:t+2e3}}const cr=new Uint32Array(65536),LOe=(e,t)=>{const n=e.length,r=t.length,a=1<{const n=t.length,r=e.length,a=[],s=[],o=Math.ceil(n/32),i=Math.ceil(r/32);for(let _=0;_>>b&1,L=a[b/32|0]>>>b&1,w=v|_,P=((v|L)&T)+T^T|v|L;let j=_|~(P|T),G=T&P;j>>>31^g&&(s[b/32|0]^=1<>>31^L&&(a[b/32|0]^=1<>>_&1,I=a[_/32|0]>>>_&1,b=T|c,v=((T|I)&l)+l^l|T|I;let g=c|~(v|l),L=l&v;m+=g>>>r-1&1,m-=L>>>r-1&1,g>>>31^R&&(s[_/32|0]^=1<<_),L>>>31^I&&(a[_/32|0]^=1<<_),g=g<<1|R,L=L<<1|I,l=L|~(b|g),c=g&b}for(let _=f;_{if(e.length{const r=e.length<=t.length,a=e.length<=n;return r||a?Math.ceil(e.length/4):n},MOe=(e,t,n)=>{let r=0;const a=Object.keys(t).find(s=>{const o=UOe(e,s,n);if(Math.abs(e.length-s.length)>o)return!1;const i=kOe(e,s),u=i<=o;return u&&(r=i),u});return a?{levenshteinDistance:r,levenshteinDistanceEntry:a}:{}};var W_={a:["4","@"],b:["8"],c:["(","{","[","<"],d:["6","|)"],e:["3"],f:["#"],g:["6","9","&"],h:["#","|-|"],i:["1","!","|"],k:["<","|<"],l:["!","1","|","7"],m:["^^","nn","2n","/\\\\/\\\\"],n:["//"],o:["0","()"],q:["9"],u:["|_|"],s:["$","5"],t:["+","7"],v:["<",">","/"],w:["^/","uu","vv","2u","2v","\\\\/\\\\/"],x:["%","><"],z:["2"]},ol={warnings:{straightRow:"straightRow",keyPattern:"keyPattern",simpleRepeat:"simpleRepeat",extendedRepeat:"extendedRepeat",sequences:"sequences",recentYears:"recentYears",dates:"dates",topTen:"topTen",topHundred:"topHundred",common:"common",similarToCommon:"similarToCommon",wordByItself:"wordByItself",namesByThemselves:"namesByThemselves",commonNames:"commonNames",userInputs:"userInputs",pwned:"pwned"},suggestions:{l33t:"l33t",reverseWords:"reverseWords",allUppercase:"allUppercase",capitalization:"capitalization",dates:"dates",recentYears:"recentYears",associatedYears:"associatedYears",sequences:"sequences",repeated:"repeated",longerKeyboardPattern:"longerKeyboardPattern",anotherWord:"anotherWord",useWords:"useWords",noNeed:"noNeed",pwned:"pwned"},timeEstimation:{ltSecond:"ltSecond",second:"second",seconds:"seconds",minute:"minute",minutes:"minutes",hour:"hour",hours:"hours",day:"day",days:"days",month:"month",months:"months",year:"year",years:"years",centuries:"centuries"}};class wo{constructor(t=[]){this.parents=t,this.children=new Map}addSub(t,...n){const r=t.charAt(0);this.children.has(r)||this.children.set(r,new wo([...this.parents,r]));let a=this.children.get(r);for(let s=1;s(Object.entries(e).forEach(([n,r])=>{r.forEach(a=>{t.addSub(a,n)})}),t);class xOe{constructor(){this.matchers={},this.l33tTable=W_,this.trieNodeRoot=G_(W_,new wo),this.dictionary={userInputs:[]},this.rankedDictionaries={},this.rankedDictionariesMaxWordSize={},this.translations=ol,this.graphs={},this.useLevenshteinDistance=!1,this.levenshteinThreshold=2,this.l33tMaxSubstitutions=100,this.maxLength=256,this.setRankedDictionaries()}setOptions(t={}){t.l33tTable&&(this.l33tTable=t.l33tTable,this.trieNodeRoot=G_(t.l33tTable,new wo)),t.dictionary&&(this.dictionary=t.dictionary,this.setRankedDictionaries()),t.translations&&this.setTranslations(t.translations),t.graphs&&(this.graphs=t.graphs),t.useLevenshteinDistance!==void 0&&(this.useLevenshteinDistance=t.useLevenshteinDistance),t.levenshteinThreshold!==void 0&&(this.levenshteinThreshold=t.levenshteinThreshold),t.l33tMaxSubstitutions!==void 0&&(this.l33tMaxSubstitutions=t.l33tMaxSubstitutions),t.maxLength!==void 0&&(this.maxLength=t.maxLength)}setTranslations(t){if(this.checkCustomTranslations(t))this.translations=t;else throw new Error("Invalid translations object fallback to keys")}checkCustomTranslations(t){let n=!0;return Object.keys(ol).forEach(r=>{if(r in t){const a=r;Object.keys(ol[a]).forEach(s=>{s in t[a]||(n=!1)})}else n=!1}),n}setRankedDictionaries(){const t={},n={};Object.keys(this.dictionary).forEach(r=>{t[r]=M_(this.dictionary[r]),n[r]=this.getRankedDictionariesMaxWordSize(this.dictionary[r])}),this.rankedDictionaries=t,this.rankedDictionariesMaxWordSize=n}getRankedDictionariesMaxWordSize(t){const n=t.map(r=>typeof r!="string"?r.toString().length:r.length);return n.length===0?0:n.reduce((r,a)=>Math.max(r,a),-1/0)}buildSanitizedRankedDictionary(t){const n=[];return t.forEach(r=>{const a=typeof r;(a==="string"||a==="number"||a==="boolean")&&n.push(r.toString().toLowerCase())}),M_(n)}extendUserInputsDictionary(t){this.dictionary.userInputs||(this.dictionary.userInputs=[]);const n=[...this.dictionary.userInputs,...t];this.rankedDictionaries.userInputs=this.buildSanitizedRankedDictionary(n),this.rankedDictionariesMaxWordSize.userInputs=this.getRankedDictionariesMaxWordSize(n)}addMatcher(t,n){this.matchers[t]?console.info(`Matcher ${t} already exists`):this.matchers[t]=n}}const Ce=new xOe;class FOe{constructor(t){this.defaultMatch=t}match({password:t}){const n=t.split("").reverse().join("");return this.defaultMatch({password:n}).map(r=>({...r,token:r.token.split("").reverse().join(""),reversed:!0,i:t.length-1-r.j,j:t.length-1-r.i}))}}class WOe{constructor({substr:t,limit:n,trieRoot:r}){this.buffer=[],this.finalPasswords=[],this.substr=t,this.limit=n,this.trieRoot=r}getAllPossibleSubsAtIndex(t){const n=[];let r=this.trieRoot;for(let a=t;a=this.limit)return;if(r===this.substr.length){t===n&&this.finalPasswords.push({password:this.buffer.join(""),changes:s});return}const u=[...this.getAllPossibleSubsAtIndex(r)];let c=!1;for(let l=r+u.length-1;l>=r;l-=1){const f=u[l-r];if(f.isTerminal()){if(o===f.parents.join("")&&i>=3)continue;c=!0;const d=f.subs;for(const m of d){this.buffer.push(m);const _=s.concat({i:a,letter:m,substitution:f.parents.join("")});if(this.helper({onlyFullSub:t,isFullSub:n,index:l+1,subIndex:a+m.length,changes:_,lastSubLetter:f.parents.join(""),consecutiveSubCount:o===f.parents.join("")?i+1:1}),this.buffer.pop(),this.finalPasswords.length>=this.limit)return}}}if(!t||!c){const l=this.substr.charAt(r);this.buffer.push(l),this.helper({onlyFullSub:t,isFullSub:n&&!c,index:r+1,subIndex:a+1,changes:s,lastSubLetter:o,consecutiveSubCount:i}),this.buffer.pop()}}getAll(){return this.helper({onlyFullSub:!0,isFullSub:!0,index:0,subIndex:0,changes:[],lastSubLetter:void 0,consecutiveSubCount:0}),this.helper({onlyFullSub:!1,isFullSub:!0,index:0,subIndex:0,changes:[],lastSubLetter:void 0,consecutiveSubCount:0}),this.finalPasswords}}const GOe=(e,t,n)=>new WOe({substr:e,limit:t,trieRoot:n}).getAll(),zOe=(e,t,n)=>{const a=e.changes.filter(c=>c.ic-l.letter.length+l.substitution.length,t),s=e.changes.filter(c=>c.i>=t&&c.i<=n),o=s.reduce((c,l)=>c-l.letter.length+l.substitution.length,n-t+a),i=[],u=[];return s.forEach(c=>{i.findIndex(f=>f.letter===c.letter&&f.substitution===c.substitution)<0&&(i.push({letter:c.letter,substitution:c.substitution}),u.push(`${c.substitution} -> ${c.letter}`))}),{i:a,j:o,subs:i,subDisplay:u.join(", ")}};class BOe{constructor(t){this.defaultMatch=t}isAlreadyIncluded(t,n){return t.some(r=>Object.entries(r).every(([a,s])=>a==="subs"||s===n[a]))}match({password:t}){const n=[],r=GOe(t,Ce.l33tMaxSubstitutions,Ce.trieNodeRoot);let a=!1,s=!0;return r.forEach(o=>{if(a)return;const i=this.defaultMatch({password:o.password,useLevenshtein:s});s=!1,i.forEach(u=>{a||(a=u.i===0&&u.j===t.length-1);const c=zOe(o,u.i,u.j),l=t.slice(c.i,+c.j+1||9e9),f={...u,l33t:!0,token:l,...c},d=this.isAlreadyIncluded(n,f);l.toLowerCase()!==u.matchedWord&&!d&&n.push(f)})}),n.filter(o=>o.token.length>1)}}class HOe{constructor(){this.l33t=new BOe(this.defaultMatch),this.reverse=new FOe(this.defaultMatch)}match({password:t}){const n=[...this.defaultMatch({password:t}),...this.reverse.match({password:t}),...this.l33t.match({password:t})];return gs(n)}defaultMatch({password:t,useLevenshtein:n=!0}){const r=[],a=t.length,s=t.toLowerCase();return Object.keys(Ce.rankedDictionaries).forEach(o=>{const i=Ce.rankedDictionaries[o],u=Ce.rankedDictionariesMaxWordSize[o],c=Math.min(u,a);for(let l=0;l{const s=n[a];s.lastIndex=0;let o;for(;o=s.exec(t);)if(o){const i=o[0];r.push({pattern:"regex",token:i,i:o.index,j:o.index+o[0].length-1,regexName:a,regexMatch:o})}}),gs(r)}}var Ia={nCk(e,t){let n=e;if(t>n)return 0;if(t===0)return 1;let r=1;for(let a=1;a<=t;a+=1)r*=n,r/=a,n-=1;return r},log10(e){return e===0?0:Math.log(e)/Math.log(10)},log2(e){return Math.log(e)/Math.log(2)},factorial(e){let t=1;for(let n=2;n<=e;n+=1)t*=n;return t}},VOe=({token:e})=>{let t=AOe**e.length;t===Number.POSITIVE_INFINITY&&(t=Number.MAX_VALUE);let n;return e.length===1?n=eA+1:n=tA+1,Math.max(t,n)},KOe=({year:e,separator:t})=>{let r=Math.max(Math.abs(e-s0),nA)*365;return t&&(r*=4),r};const YOe=e=>{const t=e.split(""),n=t.filter(o=>o.match(NOe)).length,r=t.filter(o=>o.match(ROe)).length;let a=0;const s=Math.min(n,r);for(let o=1;o<=s;o+=1)a+=Ia.nCk(n+r,o);return a};var qOe=e=>{const t=e.replace(yOe,"");if(t.match(bOe)||t.toLowerCase()===t)return 1;const n=[rA,OOe,aA],r=n.length;for(let a=0;a{let n=0,r=e.indexOf(t);for(;r>=0;)n+=1,r=e.indexOf(t,r+t.length);return n},XOe=({sub:e,token:t})=>{const n=t.toLowerCase(),r=z_(n,e.substitution),a=z_(n,e.letter);return{subbedCount:r,unsubbedCount:a}};var ZOe=({l33t:e,subs:t,token:n})=>{if(!e)return 1;let r=1;return t.forEach(a=>{const{subbedCount:s,unsubbedCount:o}=XOe({sub:a,token:n});if(s===0||o===0)r*=2;else{const i=Math.min(o,s);let u=0;for(let c=1;c<=i;c+=1)u+=Ia.nCk(o+s,c);r*=u}}),r},QOe=({rank:e,reversed:t,l33t:n,subs:r,token:a,dictionaryName:s})=>{const o=e,i=qOe(a),u=ZOe({l33t:n,subs:r,token:a}),c=t&&2||1;let l;return s==="diceware"?l=6**5/2:l=o*i*u*c,{baseGuesses:o,uppercaseVariations:i,l33tVariations:u,calculation:l}},JOe=({regexName:e,regexMatch:t,token:n})=>{const r={alphaLower:26,alphaUpper:26,alpha:52,alphanumeric:62,digits:10,symbols:33};if(e in r)return r[e]**n.length;switch(e){case"recentYear":return Math.max(Math.abs(parseInt(t[0],10)-s0),nA)}return 0},eIe=({baseGuesses:e,repeatCount:t})=>e*t,tIe=({token:e,ascending:t})=>{const n=e.charAt(0);let r=0;return["a","A","z","Z","0","1","9"].includes(n)?r=4:n.match(/\d/)?r=10:r=26,t||(r*=2),r*e.length};const nIe=e=>{let t=0;return Object.keys(e).forEach(n=>{const r=e[n];t+=r.filter(a=>!!a).length}),t/=Object.entries(e).length,t},rIe=({token:e,graph:t,turns:n})=>{const r=Object.keys(Ce.graphs[t]).length,a=nIe(Ce.graphs[t]);let s=0;const o=e.length;for(let i=2;i<=o;i+=1){const u=Math.min(n,i-1);for(let c=1;c<=u;c+=1)s+=Ia.nCk(i-1,c-1)*r*a**c}return s};var aIe=({graph:e,token:t,shiftedCount:n,turns:r})=>{let a=rIe({token:t,graph:e,turns:r});if(n){const s=t.length-n;if(n===0||s===0)a*=2;else{let o=0;for(let i=1;i<=Math.min(n,s);i+=1)o+=Ia.nCk(n+s,i);a*=o}}return Math.round(a)},sIe=()=>POe;const oIe=(e,t)=>{let n=1;return e.token.lengthB_[e]?B_[e](t):Ce.matchers[e]&&"scoring"in Ce.matchers[e]?Ce.matchers[e].scoring(t):0;var uIe=(e,t)=>{const n={};if("guesses"in e&&e.guesses!=null)return e;const r=oIe(e,t),a=iIe(e.pattern,e);let s=0;typeof a=="number"?s=a:e.pattern==="dictionary"&&(s=a.calculation,n.baseGuesses=a.baseGuesses,n.uppercaseVariations=a.uppercaseVariations,n.l33tVariations=a.l33tVariations);const o=Math.max(s,r);return{...e,...n,guesses:o,guessesLog10:Ia.log10(o)}};const mn={password:"",optimal:{},excludeAdditive:!1,separatorRegex:void 0,fillArray(e,t){const n=[];for(let r=0;r1&&(a*=this.optimal.pi[r.i-1][t-1]);let s=Ia.factorial(t)*a;this.excludeAdditive||(s+=SOe**(t-1));let o=!1;Object.keys(this.optimal.g[n]).forEach(i=>{const u=this.optimal.g[n][i];parseInt(i,10)<=t&&u<=s&&(o=!0)}),o||(this.optimal.g[n][t]=s,this.optimal.m[n][t]=r,this.optimal.pi[n][t]=a)},bruteforceUpdate(e){let t=this.makeBruteforceMatch(0,e);this.update(t,1);for(let n=1;n<=e;n+=1){t=this.makeBruteforceMatch(n,e);const r=this.optimal.m[n-1];Object.keys(r).forEach(a=>{r[a].pattern!=="bruteforce"&&this.update(t,parseInt(a,10)+1)})}},unwind(e){const t=[];let n=e-1,r=0,a=1/0;const s=this.optimal.g[n];for(s&&Object.keys(s).forEach(o=>{const i=s[o];i=0;){const o=this.optimal.m[n][r];t.unshift(o),n=o.i-1,r-=1}return t}};var wd={mostGuessableMatchSequence(e,t,n=!1){mn.password=e,mn.excludeAdditive=n;const r=e.length;let a=mn.fillArray(r,"array");t.forEach(u=>{a[u.j].push(u)}),a=a.map(u=>u.sort((c,l)=>c.i-l.i)),mn.optimal={m:mn.fillArray(r,"object"),pi:mn.fillArray(r,"object"),g:mn.fillArray(r,"object")};for(let u=0;u{c.i>0?Object.keys(mn.optimal.m[c.i-1]).forEach(l=>{mn.update(c,parseInt(l,10)+1)}):mn.update(c,1)}),mn.bruteforceUpdate(u);const s=mn.unwind(r),o=s.length,i=this.getGuesses(e,o);return{password:e,guesses:i,guessesLog10:Ia.log10(i),sequence:s}},getGuesses(e,t){const n=e.length;let r=0;return e.length===0?r=1:r=mn.optimal.g[n-1][t],r}};class cIe{match({password:t,omniMatch:n}){const r=[];let a=0;for(;ao instanceof Promise)?Promise.all(r):r}normalizeMatch(t,n,r,a){const s={pattern:"repeat",i:r.index,j:n,token:r[0],baseToken:t,baseGuesses:0,repeatCount:r[0].length/t.length};return a instanceof Promise?a.then(o=>({...s,baseGuesses:o})):{...s,baseGuesses:a}}getGreedyMatch(t,n){const r=/(.+)\1+/g;return r.lastIndex=n,r.exec(t)}getLazyMatch(t,n){const r=/(.+?)\1+/g;return r.lastIndex=n,r.exec(t)}setMatchToken(t,n){const r=/^(.+?)\1+$/;let a,s="";if(n&&t[0].length>n[0].length){a=t;const o=r.exec(a[0]);o&&(s=o[1])}else a=n,a&&(s=a[1]);return{match:a,baseToken:s}}getBaseGuesses(t,n){const r=n.match(t);return r instanceof Promise?r.then(s=>wd.mostGuessableMatchSequence(t,s).guesses):wd.mostGuessableMatchSequence(t,r).guesses}}class lIe{constructor(){this.MAX_DELTA=5}match({password:t}){const n=[];if(t.length===1)return[];let r=0,a=null;const s=t.length;for(let o=1;o1||Math.abs(r)===1){const o=Math.abs(r);if(o>0&&o<=this.MAX_DELTA){const i=a.slice(t,+n+1||9e9),{sequenceName:u,sequenceSpace:c}=this.getSequence(i);return s.push({pattern:"sequence",i:t,j:n,token:a.slice(t,+n+1||9e9),sequenceName:u,sequenceSpace:c,ascending:r>0})}}return null}getSequence(t){let n="unicode",r=26;return vOe.test(t)?(n="lower",r=26):IOe.test(t)?(n="upper",r=26):COe.test(t)&&(n="digits",r=10),{sequenceName:n,sequenceSpace:r}}}class dIe{constructor(){this.SHIFTED_RX=/[~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?]/}match({password:t}){const n=[];return Object.keys(Ce.graphs).forEach(r=>{const a=Ce.graphs[r];Pd(n,this.helper(t,a,r))}),gs(n)}checkIfShifted(t,n,r){return!t.includes("keypad")&&this.SHIFTED_RX.test(n.charAt(r))?1:0}helper(t,n,r){let a;const s=[];let o=0;const i=t.length;for(;o2&&s.push({pattern:"spatial",i:o,j:u-1,token:t.slice(o,u),graph:r,turns:l,shiftedCount:a}),o=u;break}}}return s}}const fIe=new RegExp(`[${sA.join("")}]`);class Uu{static getMostUsedSeparatorChar(t){const n=[...t.split("").filter(a=>fIe.test(a)).reduce((a,s)=>{const o=a.get(s);return o?a.set(s,o+1):a.set(s,1),a},new Map).entries()].sort(([a,s],[o,i])=>i-s);if(!n.length)return;const r=n[0];if(!(r[1]<2))return r[0]}static getSeparatorRegex(t){return new RegExp(`([^${t}
-])(${t})(?!${t})`,"g")}match({password:t}){const n=[];if(t.length===0)return n;const r=Uu.getMostUsedSeparatorChar(t);if(r===void 0)return n;const a=Uu.getSeparatorRegex(r);for(const s of t.matchAll(a)){if(s.index===void 0)continue;const o=s.index+1;n.push({pattern:"separator",token:r,i:o,j:o})}return n}}class pIe{constructor(){this.matchers={date:wOe,dictionary:HOe,regex:jOe,repeat:cIe,sequence:lIe,spatial:dIe,separator:Uu}}match(t){const n=[],r=[];return[...Object.keys(this.matchers),...Object.keys(Ce.matchers)].forEach(s=>{if(!this.matchers[s]&&!Ce.matchers[s])return;const o=this.matchers[s]?this.matchers[s]:Ce.matchers[s].Matching,u=new o().match({password:t,omniMatch:this});u instanceof Promise?(u.then(c=>{Pd(n,c)}),r.push(u)):Pd(n,u)}),r.length>0?new Promise((s,o)=>{Promise.all(r).then(()=>{s(gs(n))}).catch(i=>{o(i)})}):gs(n)}}const oA=1,iA=oA*60,uA=iA*60,cA=uA*24,lA=cA*31,dA=lA*12,mIe=dA*100,il={second:oA,minute:iA,hour:uA,day:cA,month:lA,year:dA,century:mIe};class _Ie{translate(t,n){let r=t;n!==void 0&&n!==1&&(r+="s");const{timeEstimation:a}=Ce.translations;return a[r].replace("{base}",`${n}`)}estimateAttackTimes(t){const n={onlineThrottling100PerHour:t/.027777777777777776,onlineNoThrottling10PerSecond:t/10,offlineSlowHashing1e4PerSecond:t/1e4,offlineFastHashing1e10PerSecond:t/1e10},r={onlineThrottling100PerHour:"",onlineNoThrottling10PerSecond:"",offlineSlowHashing1e4PerSecond:"",offlineFastHashing1e10PerSecond:""};return Object.keys(n).forEach(a=>{const s=n[a];r[a]=this.displayTime(s)}),{crackTimesSeconds:n,crackTimesDisplay:r,score:this.guessesToScore(t)}}guessesToScore(t){return t<1e3+5?0:t<1e6+5?1:t<1e8+5?2:t<1e10+5?3:4}displayTime(t){let n="centuries",r;const a=Object.keys(il),s=a.findIndex(o=>t-1&&(n=a[s-1],s!==0?r=Math.round(t/il[n]):n="ltSecond"),this.translate(n,r)}}var EIe=()=>null,hIe=()=>({warning:Ce.translations.warnings.dates,suggestions:[Ce.translations.suggestions.dates]});const TIe=(e,t)=>{let n=null;return t&&!e.l33t&&!e.reversed?e.rank<=10?n=Ce.translations.warnings.topTen:e.rank<=100?n=Ce.translations.warnings.topHundred:n=Ce.translations.warnings.common:e.guessesLog10<=4&&(n=Ce.translations.warnings.similarToCommon),n},gIe=(e,t)=>{let n=null;return t&&(n=Ce.translations.warnings.wordByItself),n},AIe=(e,t)=>t?Ce.translations.warnings.namesByThemselves:Ce.translations.warnings.commonNames,SIe=(e,t)=>{let n=null;const r=e.dictionaryName,a=r==="lastnames"||r.toLowerCase().includes("firstnames");return r==="passwords"?n=TIe(e,t):r.includes("wikipedia")?n=gIe(e,t):a?n=AIe(e,t):r==="userInputs"&&(n=Ce.translations.warnings.userInputs),n};var OIe=(e,t)=>{const n=SIe(e,t),r=[],a=e.token;return a.match(rA)?r.push(Ce.translations.suggestions.capitalization):a.match(aA)&&a.toLowerCase()!==a&&r.push(Ce.translations.suggestions.allUppercase),e.reversed&&e.token.length>=4&&r.push(Ce.translations.suggestions.reverseWords),e.l33t&&r.push(Ce.translations.suggestions.l33t),{warning:n,suggestions:r}},IIe=e=>e.regexName==="recentYear"?{warning:Ce.translations.warnings.recentYears,suggestions:[Ce.translations.suggestions.recentYears,Ce.translations.suggestions.associatedYears]}:{warning:null,suggestions:[]},vIe=e=>{let t=Ce.translations.warnings.extendedRepeat;return e.baseToken.length===1&&(t=Ce.translations.warnings.simpleRepeat),{warning:t,suggestions:[Ce.translations.suggestions.repeated]}},bIe=()=>({warning:Ce.translations.warnings.sequences,suggestions:[Ce.translations.suggestions.sequences]}),RIe=e=>{let t=Ce.translations.warnings.keyPattern;return e.turns===1&&(t=Ce.translations.warnings.straightRow),{warning:t,suggestions:[Ce.translations.suggestions.longerKeyboardPattern]}},NIe=()=>null;const H_={warning:null,suggestions:[]};class yIe{constructor(){this.matchers={bruteforce:EIe,date:hIe,dictionary:OIe,regex:IIe,repeat:vIe,sequence:bIe,spatial:RIe,separator:NIe},this.defaultFeedback={warning:null,suggestions:[]},this.setDefaultSuggestions()}setDefaultSuggestions(){this.defaultFeedback.suggestions.push(Ce.translations.suggestions.useWords,Ce.translations.suggestions.noNeed)}getFeedback(t,n){if(n.length===0)return this.defaultFeedback;if(t>2)return H_;const r=Ce.translations.suggestions.anotherWord,a=this.getLongestMatch(n);let s=this.getMatchFeedback(a,n.length===1);return s!=null?s.suggestions.unshift(r):s={warning:null,suggestions:[r]},s}getLongestMatch(t){let n=t[0];return t.slice(1).forEach(a=>{a.token.length>n.token.length&&(n=a)}),n}getMatchFeedback(t,n){return this.matchers[t.pattern]?this.matchers[t.pattern](t,n):Ce.matchers[t.pattern]&&"feedback"in Ce.matchers[t.pattern]?Ce.matchers[t.pattern].feedback(t,n):H_}}const fA=()=>new Date().getTime(),CIe=(e,t,n)=>{const r=new yIe,a=new _Ie,s=wd.mostGuessableMatchSequence(t,e),o=fA()-n,i=a.estimateAttackTimes(s.guesses);return{calcTime:o,...s,...i,feedback:r.getFeedback(i.score,s.sequence)}},DIe=(e,t)=>(t&&Ce.extendUserInputsDictionary(t),new pIe().match(e)),PIe=(e,t)=>{const n=fA(),r=DIe(e,t);if(r instanceof Promise)throw new Error("You are using a Promised matcher, please use `zxcvbnAsync` for it.");return CIe(r,e,n)},wIe="modulepreload",LIe=function(e){return"/"+e},j_={},yt=function(t,n,r){if(!n||n.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=LIe(s),s in j_)return;j_[s]=!0;const o=s.endsWith(".css"),i=o?'[rel="stylesheet"]':"";if(!!r)for(let l=a.length-1;l>=0;l--){const f=a[l];if(f.href===s&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":wIe,o||(c.as="script",c.crossOrigin=""),c.href=s,document.head.appendChild(c),o)return new Promise((l,f)=>{c.addEventListener("load",l),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})},$Ie=async e=>{switch(e){case"fr":return await yt(()=>import("./password.fr-7fa93aa6.js"),[]);case"de":return await yt(()=>import("./password.de-7378acff.js"),[]);case"it":return await yt(()=>import("./password.it-436063d6.js"),[]);case"es":return await yt(()=>import("./password.es-es-0bf2f189.js"),[]);case"pl":return await yt(()=>import("./password.pl-26ee86c2.js"),[]);default:return await yt(()=>import("./password.en-ea77b3f2.js"),[])}},V_=async e=>{const t=await yt(()=>import("./password.common-1e22ecd9.js"),[]),n=await $Ie(e),r={graphs:t.adjacencyGraphs,dictionary:{...t.dictionary,...n.dictionary}};Ce.setOptions(r)},kIe=e=>{switch(e){case 2:return"AVERAGE";case 3:return"GOOD";case 4:return"STRONG";default:return"WEAK"}},UIe={class:"password-strength"},MIe=["value"],xIe={key:0,class:"password-strength-details"},FIe={class:"password-strength-value"},WIe={key:0,class:"info-box"},GIe={class:"password-feedback"},zIe=Q({__name:"PasswordStength",props:{password:{}},setup(e){const t=e,{password:n}=Te(t),r=Me(),a=$(()=>r.getters[V.GETTERS.LANGUAGE]),s=$(()=>r.getters[Y.GETTERS.IS_SUCCESS]),o=le(0),i=le(""),u=le([]),c=le("0% 100%");bt(async()=>await V_(a.value));function l(f){const d=PIe(f);o.value=d.score,i.value=kIe(o.value),u.value=d.feedback.suggestions,c.value=o.value*100/4+"% 100%"}return Be(()=>a.value,async f=>{await V_(f)}),Be(()=>n.value,async f=>{s.value?i.value="":l(f)}),(f,d)=>(A(),N("div",UIe,[p("input",{class:Ae(["password-slider",`strength-${o.value}`]),style:Hr({backgroundSize:c.value}),type:"range",value:o.value,min:"0",max:"4",step:"1",tabindex:-1},null,14,MIe),i.value?(A(),N("div",xIe,[p("span",FIe,h(f.$t("user.PASSWORD_STRENGTH.LABEL"))+": "+h(f.$t(`user.PASSWORD_STRENGTH.${i.value}`)),1),u.value.length>0?(A(),N("div",WIe,[p("ul",GIe,[(A(!0),N(ve,null,ze(u.value,m=>(A(),N("li",{key:m},h(f.$t(`user.PASSWORD_STRENGTH.SUGGESTIONS.${m}`)),1))),128))])])):x("",!0)])):x("",!0)]))}});const BIe=se(zIe,[["__scopeId","data-v-1affb508"]]),HIe=e=>(ct("data-v-ac528612"),e=e(),lt(),e),jIe={class:"password-input"},VIe=["id","disabled","placeholder","required","type"],KIe={class:"show-password"},YIe=["onClick"],qIe={key:0,class:"form-info"},XIe=HIe(()=>p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),ZIe=Q({__name:"PasswordInput",props:{checkStrength:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{default:"password"},password:{default:""},placeholder:{},required:{type:Boolean,default:!1}},emits:["updatePassword","passwordError"],setup(e,{emit:t}){const n=e,{checkStrength:r,disabled:a,id:s,password:o,placeholder:i,required:u}=Te(n),c=le(!1),l=le(""),f=t;function d(){c.value=!c.value}function m(T){f("updatePassword",T.target.value)}function _(){f("passwordError")}return Be(()=>o.value,T=>{T===""&&(l.value="",c.value=!1)}),(T,R)=>(A(),N("div",jIe,[Xe(p("input",{id:E(s),disabled:E(a),placeholder:E(i),required:E(u),type:c.value?"text":"password","onUpdate:modelValue":R[0]||(R[0]=I=>l.value=I),minlength:"8",onInput:m,onInvalid:_},null,40,VIe),[[OI,l.value]]),p("div",KIe,[p("button",{class:"transparent",onClick:Ze(d,["prevent"]),type:"button"},[K(h(T.$t(`user.${c.value?"HIDE":"SHOW"}_PASSWORD`))+" ",1),p("i",{class:Ae(["fa",`fa-eye${c.value?"-slash":""}`]),"aria-hidden":"true"},null,2)],8,YIe)]),E(r)?(A(),N("div",qIe,[XIe,K(" "+h(T.$t("user.PASSWORD_INFO")),1)])):x("",!0),E(r)?(A(),re(BIe,{key:1,password:l.value},null,8,["password"])):x("",!0)]))}});const Ld=se(ZIe,[["__scopeId","data-v-ac528612"]]),o0=e=>(ct("data-v-8ebb5cd3"),e=e(),lt(),e),QIe={id:"user-infos-edition"},JIe={class:"profile-form form-box"},eve={key:1,class:"info-box success-message"},tve=["onSubmit"],nve={class:"form-items",for:"email"},rve=["disabled"],ave={class:"form-items",for:"password-field"},sve={class:"form-items",for:"new-password-field"},ove={class:"form-buttons"},ive={class:"confirm",type:"submit"},uve=["onClick"],cve={class:"data-export"},lve={class:"info-box"},dve=o0(()=>p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),fve={key:0,class:"data-export-archive"},pve=o0(()=>p("i",{class:"fa fa-download","aria-hidden":"true"},null,-1)),mve={key:1},_ve={key:2},Eve=o0(()=>p("i",{class:"fa fa-spinner fa-pulse","aria-hidden":"true"},null,-1)),hve=Q({__name:"UserAccountEdition",props:{user:{}},setup(e){const t=e,{user:n}=Te(t),r=Me(),a=zt({email:"",password:"",new_password:""}),s=$(()=>r.getters[Y.GETTERS.USER_LOADING]),o=$(()=>r.getters[V.GETTERS.APP_CONFIG]),i=$(()=>r.getters[Y.GETTERS.IS_SUCCESS]),u=le(!1),c=$(()=>r.getters[V.GETTERS.ERROR_MESSAGES]),l=le(!1),f=le(!1),d=$(()=>r.getters[Y.GETTERS.EXPORT_REQUEST]),m=$(()=>v()),_=le(!1);St(()=>{t.user&&(r.dispatch(Y.ACTIONS.GET_REQUEST_DATA_EXPORT),R(t.user))});function T(){l.value=!0}function R(z){a.email=z.email}function I(z){a.password=z}function b(z){a.new_password=z}function v(){return d.value?xn(d.value.created_at,n.value.timezone,n.value.date_format,!0,null,!0):null}function g(){return m.value?VN(new Date(m.value),qN(new Date,1)):!0}function L(){const z={email:a.email,password:a.password};a.new_password&&(z.new_password=a.new_password),u.value=a.email!==n.value.email,r.dispatch(Y.ACTIONS.UPDATE_USER_ACCOUNT,z)}function w(z){f.value=z}function P(z){r.dispatch(Y.ACTIONS.DELETE_ACCOUNT,{username:z})}function j(){r.dispatch(Y.ACTIONS.REQUEST_DATA_EXPORT)}async function G(z){_.value=!0,await je.get(`/auth/account/export/${z}`,{responseType:"blob"}).then(k=>{const Z=window.URL.createObjectURL(new Blob([k.data],{type:"application/zip"})),ee=document.createElement("a");ee.href=Z,ee.setAttribute("download",z),document.body.appendChild(ee),ee.click()}).finally(()=>_.value=!1)}return Rt(()=>{r.commit(Y.MUTATIONS.UPDATE_IS_SUCCESS,!1),r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)}),Be(()=>i.value,async z=>{z&&(I(""),b(""),R(n.value),l.value=!1)}),Be(()=>n.value.email,async()=>{R(n.value)}),(z,k)=>{const Z=ue("Modal"),ee=ue("ErrorMessage");return A(),N("div",QIe,[f.value?(A(),re(Z,{key:0,title:z.$t("common.CONFIRMATION"),message:z.$t("user.CONFIRM_ACCOUNT_DELETION"),onConfirmAction:k[0]||(k[0]=te=>P(E(n).username)),onCancelAction:k[1]||(k[1]=te=>w(!1)),onKeydown:k[2]||(k[2]=Ot(te=>w(!1),["esc"]))},null,8,["title","message"])):x("",!0),p("div",JIe,[c.value?(A(),re(ee,{key:0,message:c.value},null,8,["message"])):x("",!0),i.value?(A(),N("div",eve,h(z.$t(`user.PROFILE.SUCCESSFUL_${u.value&&o.value.is_email_sending_enabled?"EMAIL_":""}UPDATE`)),1)):x("",!0),p("form",{class:Ae({errors:l.value}),onSubmit:Ze(L,["prevent"])},[p("label",nve,[K(h(z.$t("user.EMAIL"))+"* ",1),Xe(p("input",{id:"email","onUpdate:modelValue":k[3]||(k[3]=te=>a.email=te),disabled:s.value,required:!0,onInvalid:T},null,40,rve),[[nt,a.email]])]),p("label",ave,[K(h(z.$t("user.CURRENT_PASSWORD"))+"* ",1),U(Ld,{id:"password-field",disabled:s.value,password:a.password,required:!0,onUpdatePassword:I,onPasswordError:T},null,8,["disabled","password"])]),p("label",sve,[K(h(z.$t("user.NEW_PASSWORD"))+" ",1),U(Ld,{id:"new-password-field",disabled:s.value,checkStrength:!0,password:a.new_password,isSuccess:!1,onUpdatePassword:b,onPasswordError:T},null,8,["disabled","password"])]),p("div",ove,[p("button",ive,h(z.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:k[4]||(k[4]=Ze(te=>z.$router.push("/profile"),["prevent"]))},h(z.$t("buttons.CANCEL")),1),p("button",{class:"danger",onClick:k[5]||(k[5]=Ze(te=>w(!0),["prevent"]))},h(z.$t("buttons.DELETE_MY_ACCOUNT")),1),g()?(A(),N("button",{key:0,class:"confirm",onClick:Ze(j,["prevent"])},h(z.$t("buttons.REQUEST_DATA_EXPORT")),9,uve)):x("",!0)])],42,tve),p("div",cve,[p("span",lve,[dve,K(" "+h(z.$t("user.EXPORT_REQUEST.ONLY_ONE_EXPORT_PER_DAY")),1)]),d.value?(A(),N("div",fve,[K(h(z.$t("user.EXPORT_REQUEST.DATA_EXPORT"))+" ("+h(m.value)+"): ",1),d.value.status==="successful"?(A(),N("span",{key:0,class:"archive-link",onClick:k[6]||(k[6]=Ze(te=>G(d.value.file_name),["prevent"]))},[pve,K(" "+h(z.$t("user.EXPORT_REQUEST.DOWNLOAD_ARCHIVE"))+" ("+h(E(cu)(d.value.file_size))+") ",1)])):(A(),N("span",mve,h(z.$t(`user.EXPORT_REQUEST.STATUS.${d.value.status}`)),1)),_.value?(A(),N("span",_ve,[K(h(z.$t("user.EXPORT_REQUEST.GENERATING_LINK"))+" ",1),Eve])):x("",!0)])):x("",!0)])])])}}});const Tve=se(hve,[["__scopeId","data-v-8ebb5cd3"]]),gve={id:"user-infos-edition"},Ave={class:"profile-form form-box"},Sve=["onSubmit"],Ove={class:"form-items",for:"registrationDate"},Ive=["value"],vve={class:"form-items",for:"first_name"},bve=["disabled"],Rve={class:"form-items",for:"last_name"},Nve={class:"form-items",for:"birth_date"},yve=["disabled"],Cve={class:"form-items",for:"location"},Dve=["disabled"],Pve={class:"form-items"},wve={class:"form-buttons"},Lve={class:"confirm",type:"submit"},$ve=Q({__name:"UserInfosEdition",props:{user:{}},setup(e){const t=e,n=Me(),r=zt({first_name:"",last_name:"",birth_date:"",location:"",bio:""}),a=$(()=>t.user.created_at?xn(t.user.created_at,t.user.timezone,t.user.date_format):""),s=$(()=>n.getters[Y.GETTERS.USER_LOADING]),o=$(()=>n.getters[V.GETTERS.ERROR_MESSAGES]);St(()=>{t.user&&i(t.user)});function i(l){r.first_name=l.first_name?l.first_name:"",r.last_name=l.last_name?l.last_name:"",r.birth_date=l.birth_date?dn(new Date(l.birth_date),"yyyy-MM-dd"):"",r.location=l.location?l.location:"",r.bio=l.bio?l.bio:""}function u(l){r.bio=l}function c(){n.dispatch(Y.ACTIONS.UPDATE_USER_PROFILE,r)}return Rt(()=>{n.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)}),(l,f)=>{const d=ue("ErrorMessage"),m=ue("CustomTextArea");return A(),N("div",gve,[p("div",Ave,[o.value?(A(),re(d,{key:0,message:o.value},null,8,["message"])):x("",!0),p("form",{onSubmit:Ze(c,["prevent"])},[p("label",Ove,[K(h(l.$t("user.PROFILE.REGISTRATION_DATE"))+" ",1),p("input",{id:"registrationDate",value:a.value,disabled:""},null,8,Ive)]),p("label",vve,[K(h(l.$t("user.PROFILE.FIRST_NAME"))+" ",1),Xe(p("input",{id:"first_name","onUpdate:modelValue":f[0]||(f[0]=_=>r.first_name=_),disabled:s.value},null,8,bve),[[nt,r.first_name]])]),p("label",Rve,[K(h(l.$t("user.PROFILE.LAST_NAME"))+" ",1),Xe(p("input",{id:"last_name","onUpdate:modelValue":f[1]||(f[1]=_=>r.last_name=_)},null,512),[[nt,r.last_name]])]),p("label",Nve,[K(h(l.$t("user.PROFILE.BIRTH_DATE"))+" ",1),Xe(p("input",{id:"birth_date",type:"date",class:"birth-date","onUpdate:modelValue":f[2]||(f[2]=_=>r.birth_date=_),disabled:s.value},null,8,yve),[[nt,r.birth_date]])]),p("label",Cve,[K(h(l.$t("user.PROFILE.LOCATION"))+" ",1),Xe(p("input",{id:"location","onUpdate:modelValue":f[3]||(f[3]=_=>r.location=_),disabled:s.value},null,8,Dve),[[nt,r.location]])]),p("label",Pve,[K(h(l.$t("user.PROFILE.BIO"))+" ",1),U(m,{name:"bio",charLimit:200,input:r.bio,disabled:s.value,onUpdateValue:u},null,8,["input","disabled"])]),p("div",wve,[p("button",Lve,h(l.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:f[4]||(f[4]=Ze(_=>l.$router.push("/profile"),["prevent"]))},h(l.$t("buttons.CANCEL")),1)])],40,Sve)])])}}});const kve=se($ve,[["__scopeId","data-v-5f5c8fca"]]),Uve=e=>(ct("data-v-8f62d42f"),e=e(),lt(),e),Mve={id:"user-picture-edition"},xve={class:"user-picture-form"},Fve=["onSubmit"],Wve={class:"picture-help"},Gve={class:"info-box"},zve=Uve(()=>p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),Bve={class:"picture-buttons"},Hve=["disabled"],jve=Q({__name:"UserPictureEdition",props:{user:{}},setup(e){const t=e,n=Me(),{user:r}=Te(t),a=$(()=>n.getters[V.GETTERS.ERROR_MESSAGES]),s=$(()=>n.getters[V.GETTERS.APP_CONFIG]),o=s.value.max_single_file_size?cu(s.value.max_single_file_size):"",i=le(null);function u(){n.dispatch(Y.ACTIONS.DELETE_PICTURE)}function c(f){f.target.files!==null&&(i.value=f.target.files[0])}function l(){i.value&&n.dispatch(Y.ACTIONS.UPDATE_USER_PICTURE,{picture:i.value})}return Rt(()=>{n.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)}),(f,d)=>{const m=ue("ErrorMessage");return A(),N("div",Mve,[p("div",xve,[a.value?(A(),re(m,{key:0,message:a.value},null,8,["message"])):x("",!0),U(Wo,{user:E(r)},null,8,["user"]),p("form",{onSubmit:Ze(l,["prevent"])},[p("input",{type:"file",name:"picture",accept:".png,.jpg,.gif",onInput:c},null,32),p("div",Wve,[p("span",Gve,[zve,K(" "+h(f.$t("workouts.MAX_SIZE"))+": "+h(E(o)),1)])]),p("div",Bve,[p("button",{type:"submit",disabled:!i.value},h(f.$t("user.PROFILE.PICTURE_UPDATE")),9,Hve),E(r).picture?(A(),N("button",{key:0,class:"danger",onClick:u},h(f.$t("user.PROFILE.PICTURE_REMOVE")),1)):x("",!0),p("button",{class:"cancel",onClick:d[0]||(d[0]=_=>f.$router.push("/profile"))},h(f.$t("user.PROFILE.BACK_TO_PROFILE")),1)])],40,Fve)])])}}});const Vve=se(jve,[["__scopeId","data-v-8f62d42f"]]),Kve=["Africa/Abidjan","Africa/Accra","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fortaleza","America/Fort_Nelson","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zaporozhye","Europe/Zurich","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"],Yve={id:"tz-dropdown"},qve=["value","disabled","onKeydown"],Xve=["onClick","onMouseover","autofocus"],Zve=Q({__name:"TimezoneDropdown",props:{input:{},disabled:{type:Boolean,default:!1}},emits:["updateTimezone"],setup(e,{emit:t}){const n=e,r=t,{input:a,disabled:s}=Te(n),o=le(a.value),i=le(!1),u=le(null),c=le(0);function l(T){return T.toLowerCase().match(o.value.toLowerCase())}function f(T){c.value=T}function d(T){o.value=T,i.value=!1,r("updateTimezone",T)}function m(T){var R,I,b,v;T.preventDefault(),(I=(R=u.value)==null?void 0:R.firstElementChild)!=null&&I.innerHTML&&d((v=(b=u.value)==null?void 0:b.firstElementChild)==null?void 0:v.innerHTML)}function _(T){T.preventDefault(),i.value=!0,o.value=T.target.value.trim()}return Be(()=>n.input,T=>{o.value=T}),(T,R)=>(A(),N("div",Yve,[p("input",{class:"tz-dropdown-input",id:"timezone",name:"timezone",value:o.value,disabled:E(s),required:"",onKeydown:[R[0]||(R[0]=Ot(I=>d(E(a)),["esc"])),Ot(m,["enter"])],onInput:_},null,40,qve),i.value?(A(),N("ul",{key:0,class:"tz-dropdown-list",ref_key:"tzList",ref:u},[(A(!0),N(ve,null,ze(E(Kve).filter(I=>l(I)),(I,b)=>(A(),N("li",{key:I,class:Ae(["tz-dropdown-item",{focus:b===c.value}]),onClick:v=>d(I),onMouseover:v=>f(b),autofocus:b===c.value},h(I),43,Xve))),128))],512)):x("",!0)]))}});const Qve=se(Zve,[["__scopeId","data-v-0ed9f402"]]),Jve=e=>(ct("data-v-ef71463b"),e=e(),lt(),e),e2e={id:"user-preferences-edition"},t2e={class:"profile-form form-box"},n2e=["onSubmit"],r2e={class:"form-items"},a2e=["disabled"],s2e=["value"],o2e={class:"form-items"},i2e={class:"form-items"},u2e=["disabled"],c2e=["value"],l2e={class:"form-items form-checkboxes"},d2e={class:"checkboxes-label"},f2e={class:"checkboxes"},p2e=["id","name","checked","disabled","onInput"],m2e={class:"checkbox-label"},_2e={class:"form-items form-checkboxes"},E2e={class:"checkboxes-label"},h2e={class:"checkboxes"},T2e=["id","name","checked","disabled","onInput"],g2e={class:"checkbox-label"},A2e={class:"form-items form-checkboxes"},S2e={class:"checkboxes-label"},O2e={class:"checkboxes"},I2e=["id","name","checked","disabled","onInput"],v2e={class:"checkbox-label"},b2e={class:"form-items form-checkboxes"},R2e={class:"checkboxes-label"},N2e={class:"checkboxes"},y2e=["id","name","checked","disabled","onInput"],C2e={class:"checkbox-label"},D2e={class:"form-items form-checkboxes"},P2e={class:"checkboxes-label"},w2e={class:"checkboxes"},L2e=["id","name","checked","disabled","onInput"],$2e={class:"checkbox-label"},k2e={class:"info-box raw-speed-help"},U2e=Jve(()=>p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),M2e={class:"form-buttons"},x2e={class:"confirm",type:"submit"},F2e=Q({__name:"UserPreferencesEdition",props:{user:{}},setup(e){const t=e,n=Me(),r=zt({display_ascent:!0,imperial_units:!1,language:"en",timezone:"Europe/Paris",date_format:"dd/MM/yyyy",weekm:!1,start_elevation_at_zero:!1,use_raw_gpx_speed:!1}),a=[{label:"SUNDAY",value:!1},{label:"MONDAY",value:!0}],s=[{label:"METRIC",value:!1},{label:"IMPERIAL",value:!0}],o=[{label:"DISPLAYED",value:!0},{label:"HIDDEN",value:!1}],i=[{label:"ZERO",value:!0},{label:"MIN_ALT",value:!1}],u=[{label:"FILTERED_SPEED",value:!1},{label:"RAW_SPEED",value:!0}],c=$(()=>n.getters[Y.GETTERS.USER_LOADING]),l=$(()=>n.getters[V.GETTERS.ERROR_MESSAGES]),f=$(()=>SAe(new Date().toUTCString(),t.user.timezone,r.language));St(()=>{t.user&&d(t.user)});function d(g){r.display_ascent=g.display_ascent,r.start_elevation_at_zero=g.start_elevation_at_zero?g.start_elevation_at_zero:!1,r.use_raw_gpx_speed=g.use_raw_gpx_speed?g.use_raw_gpx_speed:!1,r.imperial_units=g.imperial_units?g.imperial_units:!1,r.language=g.language?g.language:"en",r.timezone=g.timezone?g.timezone:"Europe/Paris",r.date_format=g.date_format?g.date_format:"dd/MM/yyyy",r.weekm=g.weekm?g.weekm:!1}function m(){n.dispatch(Y.ACTIONS.UPDATE_USER_PREFERENCES,r)}function _(g){r.timezone=g}function T(g){r.start_elevation_at_zero=g}function R(g){r.use_raw_gpx_speed=g}function I(g){r.display_ascent=g}function b(g){r.imperial_units=g}function v(g){r.weekm=g}return Rt(()=>{n.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)}),(g,L)=>{const w=ue("ErrorMessage");return A(),N("div",e2e,[p("div",t2e,[l.value?(A(),re(w,{key:0,message:l.value},null,8,["message"])):x("",!0),p("form",{onSubmit:Ze(m,["prevent"])},[p("label",r2e,[K(h(g.$t("user.PROFILE.LANGUAGE"))+" ",1),Xe(p("select",{id:"language","onUpdate:modelValue":L[0]||(L[0]=P=>r.language=P),disabled:c.value},[(A(!0),N(ve,null,ze(E(ql),P=>(A(),N("option",{value:P.value,key:P.value},h(P.label),9,s2e))),128))],8,a2e),[[eu,r.language]])]),p("label",o2e,[K(h(g.$t("user.PROFILE.TIMEZONE"))+" ",1),U(Qve,{input:r.timezone,disabled:c.value,onUpdateTimezone:_},null,8,["input","disabled"])]),p("label",i2e,[K(h(g.$t("user.PROFILE.DATE_FORMAT"))+" ",1),Xe(p("select",{id:"date_format","onUpdate:modelValue":L[1]||(L[1]=P=>r.date_format=P),disabled:c.value},[(A(!0),N(ve,null,ze(f.value,P=>(A(),N("option",{value:P.value,key:P.value},h(P.label),9,c2e))),128))],8,u2e),[[eu,r.date_format]])]),p("div",l2e,[p("span",d2e,h(g.$t("user.PROFILE.FIRST_DAY_OF_WEEK")),1),p("div",f2e,[(A(),N(ve,null,ze(a,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===r.weekm,disabled:c.value,onInput:j=>v(P.value)},null,40,p2e),p("span",m2e,h(g.$t(`user.PROFILE.${P.label}`)),1)])),64))])]),p("div",_2e,[p("span",E2e,h(g.$t("user.PROFILE.UNITS.LABEL")),1),p("div",h2e,[(A(),N(ve,null,ze(s,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===r.imperial_units,disabled:c.value,onInput:j=>b(P.value)},null,40,T2e),p("span",g2e,h(g.$t(`user.PROFILE.UNITS.${P.label}`)),1)])),64))])]),p("div",A2e,[p("span",S2e,h(g.$t("user.PROFILE.ASCENT_DATA")),1),p("div",O2e,[(A(),N(ve,null,ze(o,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===r.display_ascent,disabled:c.value,onInput:j=>I(P.value)},null,40,I2e),p("span",v2e,h(g.$t(`common.${P.label}`)),1)])),64))])]),p("div",b2e,[p("span",R2e,h(g.$t("user.PROFILE.ELEVATION_CHART_START.LABEL")),1),p("div",N2e,[(A(),N(ve,null,ze(i,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===r.start_elevation_at_zero,disabled:c.value,onInput:j=>T(P.value)},null,40,y2e),p("span",C2e,h(g.$t(`user.PROFILE.ELEVATION_CHART_START.${P.label}`)),1)])),64))])]),p("div",D2e,[p("span",P2e,h(g.$t("user.PROFILE.USE_RAW_GPX_SPEED.LABEL")),1),p("div",w2e,[(A(),N(ve,null,ze(u,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===r.use_raw_gpx_speed,disabled:c.value,onInput:j=>R(P.value)},null,40,L2e),p("span",$2e,h(g.$t(`user.PROFILE.USE_RAW_GPX_SPEED.${P.label}`)),1)])),64))]),p("div",k2e,[p("span",null,[U2e,K(" "+h(g.$t("user.PROFILE.USE_RAW_GPX_SPEED.HELP")),1)])])]),p("div",M2e,[p("button",x2e,h(g.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:L[2]||(L[2]=Ze(P=>g.$router.push("/profile/preferences"),["prevent"]))},h(g.$t("buttons.CANCEL")),1)])],40,n2e)])])}}});const W2e=se(F2e,[["__scopeId","data-v-ef71463b"]]),G2e={class:"privacy-policy-text"},z2e={class:"last-update"},B2e=["innerHTML"],H2e=["innerHTML"],j2e="Sun, 26 Feb 2023 17:00:00 GMT",V2e=Q({__name:"PrivacyPolicy",setup(e){const t=Me(),n=$(()=>t.getters[V.GETTERS.APP_CONFIG]),r=$(()=>t.getters[V.GETTERS.LANGUAGE]),a=$(()=>t.getters[Y.GETTERS.AUTH_USER_PROFILE]),s=$(()=>l()),o=$(()=>c()),i=$(()=>f()),u=["DATA_COLLECTED","INFORMATION_USAGE","INFORMATION_PROTECTION","INFORMATION_DISCLOSURE","SITE_USAGE_BY_CHILDREN","YOUR_CONSENT","ACCOUNT_DELETION","CHANGES_TO_OUR_PRIVACY_POLICY"];function c(){return a.value.timezone?a.value.timezone:Intl.DateTimeFormat().resolvedOptions().timeZone?Intl.DateTimeFormat().resolvedOptions().timeZone:"Europe/Paris"}function l(){return qg[r.value]}function f(){return xn(n.value.privacy_policy&&n.value.privacy_policy_date?`${n.value.privacy_policy_date}`:j2e,o.value,s.value,!1)}return(d,m)=>(A(),N("div",G2e,[p("h1",null,h(gt(d.$t("privacy_policy.TITLE"))),1),p("p",z2e,[K(h(d.$t("privacy_policy.LAST_UPDATE"))+": ",1),p("time",null,h(i.value),1)]),n.value.privacy_policy?(A(),N("div",{key:0,innerHTML:E(ma)(E(Po)(n.value.privacy_policy))},null,8,B2e)):(A(),N(ve,{key:1},ze(u,_=>(A(),N(ve,{key:_},[p("h2",null,h(d.$t(`privacy_policy.CONTENT.${_}.TITLE`)),1),p("p",{innerHTML:E(ma)(d.$t(`privacy_policy.CONTENT.${_}.CONTENT`))},null,8,H2e)],64))),64))]))}});const pA=se(V2e,[["__scopeId","data-v-31d5cd27"]]),K2e={id:"user-privacy-policy"},Y2e={key:1},q2e={class:"policy-content"},X2e={for:"accepted_policy",class:"accepted_policy"},Z2e={class:"form-buttons"},Q2e={class:"confirm",type:"submit"},J2e=Q({__name:"UserPrivacyPolicyValidation",props:{user:{}},setup(e){const t=e,{user:n}=Te(t),r=Me(),a=$(()=>r.getters[V.GETTERS.ERROR_MESSAGES]),s=le(!1);function o(){r.dispatch(Y.ACTIONS.ACCEPT_PRIVACY_POLICY,s.value)}return Rt(()=>{r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)}),(i,u)=>{const c=ue("ErrorMessage"),l=ue("router-link"),f=ue("i18n-t");return A(),N("div",K2e,[a.value?(A(),re(c,{key:0,message:a.value},null,8,["message"])):x("",!0),E(n).accepted_privacy_policy?(A(),N("div",Y2e,[p("p",null,[U(f,{keypath:"user.YOU_HAVE_ACCEPTED_PRIVACY_POLICY"},{default:pe(()=>[U(l,{to:"/privacy-policy"},{default:pe(()=>[K(h(i.$t("privacy_policy.TITLE")),1)]),_:1})]),_:1})]),p("button",{class:"cancel",onClick:u[0]||(u[0]=d=>i.$router.push("/profile"))},h(i.$t("user.PROFILE.BACK_TO_PROFILE")),1)])):(A(),N("form",{key:2,onSubmit:u[3]||(u[3]=Ze(d=>o(),["prevent"]))},[p("div",q2e,[U(pA)]),p("label",X2e,[Xe(p("input",{type:"checkbox",id:"accepted_policy",required:"","onUpdate:modelValue":u[1]||(u[1]=d=>s.value=d)},null,512),[[tf,s.value]]),p("span",null,[U(f,{keypath:"user.READ_AND_ACCEPT_PRIVACY_POLICY"},{default:pe(()=>[K(h(i.$t("privacy_policy.TITLE")),1)]),_:1})])]),U(l,{to:"/profile/edit/account"},{default:pe(()=>[K(h(i.$t("user.I_WANT_TO_DELETE_MY_ACCOUNT")),1)]),_:1}),p("div",Z2e,[p("button",Q2e,h(i.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:u[2]||(u[2]=d=>i.$router.push("/profile"))},h(i.$t("user.PROFILE.BACK_TO_PROFILE")),1)])],32))])}}});const ebe=se(J2e,[["__scopeId","data-v-1ebb076f"]]),tbe=["profile:read","profile:write","users:read","users:write","workouts:read","workouts:write"],nbe=["application:write"],rbe={id:"new-oauth2-app"},abe={id:"new-oauth2-title"},sbe={id:"apps-form"},obe=["onSubmit"],ibe={class:"form-items"},ube={class:"form-item"},cbe={for:"app-name"},lbe={class:"form-item"},dbe={for:"app-description"},fbe={class:"form-item"},pbe={for:"app-url"},mbe={class:"form-item"},_be={for:"app-redirect-uri"},Ebe={class:"form-item-scope"},hbe={class:"form-item-scope-label"},Tbe={class:"scope-label"},gbe=["name","checked","onChange"],Abe=["innerHTML"],Sbe={class:"form-buttons"},Obe=["disabled"],Ibe=Q({__name:"AddUserApp",props:{authUser:{}},setup(e){const t=e,n=Me(),r=zt({client_name:"",client_uri:"",client_description:"",description:"",redirect_uri:""}),a=zt([]),s=$(()=>c(t.authUser,nbe,tbe));function o(){const l={client_name:r.client_name,client_description:r.client_description,client_uri:r.client_uri,redirect_uris:[r.redirect_uri],scope:a.sort().join(" ")};n.dispatch(Ke.ACTIONS.CREATE_CLIENT,l)}function i(l){r.client_description=l}function u(l){const f=a.indexOf(l);f>-1?a.splice(f,1):a.push(l)}function c(l,f,d){const m=[...d];return l.admin&&m.push(...f),m.sort()}return(l,f)=>{const d=ue("CustomTextArea");return A(),N("div",rbe,[p("h1",abe,h(l.$t("oauth2.ADD_A_NEW_APP")),1),p("div",sbe,[p("form",{onSubmit:Ze(o,["prevent"])},[p("div",ibe,[p("div",ube,[p("label",cbe,h(l.$t("oauth2.APP.NAME"))+"*",1),Xe(p("input",{id:"app-name",type:"text",required:"","onUpdate:modelValue":f[0]||(f[0]=m=>r.client_name=m)},null,512),[[nt,r.client_name]])]),p("div",lbe,[p("label",dbe,h(l.$t("oauth2.APP.DESCRIPTION")),1),U(d,{name:"app-description",charLimit:200,input:r.description,onUpdateValue:i},null,8,["input"])]),p("div",fbe,[p("label",pbe,h(l.$t("oauth2.APP.URL"))+"*",1),Xe(p("input",{id:"app-url",type:"text",required:"","onUpdate:modelValue":f[1]||(f[1]=m=>r.client_uri=m)},null,512),[[nt,r.client_uri]])]),p("div",mbe,[p("label",_be,h(l.$t("oauth2.APP.REDIRECT_URL"))+"* ",1),Xe(p("input",{id:"app-redirect-uri",type:"text",required:"","onUpdate:modelValue":f[2]||(f[2]=m=>r.redirect_uri=m)},null,512),[[nt,r.redirect_uri]])]),p("div",Ebe,[p("div",hbe,h(l.$t("oauth2.APP.SCOPE.LABEL"))+"* ",1),(A(!0),N(ve,null,ze(s.value,m=>(A(),N("div",{class:"form-item-scope-checkboxes",key:m},[p("label",Tbe,[p("input",{type:"checkbox",name:m,checked:a.includes(m),onChange:_=>u(m)},null,40,gbe),p("code",null,h(m),1)]),p("p",{class:"scope-description",innerHTML:l.$t(`oauth2.APP.SCOPE.${m}_DESCRIPTION`)},null,8,Abe)]))),128))])]),p("div",Sbe,[p("button",{class:"confirm",type:"submit",disabled:a.length===0},h(l.$t("buttons.SUBMIT")),9,Obe),p("button",{class:"cancel",onClick:f[3]||(f[3]=Ze(()=>l.$router.push("/profile/apps"),["prevent"]))},h(l.$t("buttons.CANCEL")),1)])],40,obe)])])}}});const vbe=se(Ibe,[["__scopeId","data-v-e2284e06"]]),bbe={id:"authorize-oauth2-app"},Rbe={key:0},Nbe={id:"authorize-oauth2-title"},ybe={class:"oauth2-access description-list"},Cbe={class:"client-scope"},Dbe=["innerHTML"],Pbe={class:"authorize-oauth2-buttons"},wbe={key:1},Lbe={class:"no-app"},$be=Q({__name:"AuthorizeUserApp",setup(e){const t=Kt(),n=Me(),r=$(()=>n.getters[Ke.GETTERS.CLIENT]),a=$(()=>n.getters[V.GETTERS.ERROR_MESSAGES]);bt(()=>s());function s(){t.query.client_id&&typeof t.query.client_id=="string"&&n.dispatch(Ke.ACTIONS.GET_CLIENT_BY_CLIENT_ID,t.query.client_id)}function o(){n.dispatch(Ke.ACTIONS.AUTHORIZE_CLIENT,{client_id:`${t.query.client_id}`,redirect_uri:`${t.query.redirect_uri}`,response_type:`${t.query.response_type}`,scope:`${t.query.scope}`,state:`${t.query.state?t.query.state:""}`,code_challenge:`${t.query.code_challenge?t.query.code_challenge:""}`,code_challenge_method:`${t.query.code_challenge_method?t.query.code_challenge_method:""}`})}return(i,u)=>{const c=ue("router-link"),l=ue("i18n-t"),f=ue("ErrorMessage");return A(),N("div",bbe,[r.value.client_id?(A(),N("div",Rbe,[p("h1",Nbe,[U(l,{keypath:"oauth2.AUTHORIZE_APP"},{default:pe(()=>[U(c,{to:{name:"UserApp",params:{id:r.value.id}}},{default:pe(()=>[K(h(r.value.name),1)]),_:1},8,["to"])]),_:1})]),a.value?(A(),re(f,{key:0,message:a.value},null,8,["message"])):x("",!0),p("div",ybe,[p("p",null,h(i.$t("oauth2.APP_REQUESTING_ACCESS")),1),p("dl",null,[(A(!0),N(ve,null,ze(r.value.scope.split(" "),d=>(A(),N(ve,{key:d},[p("dt",Cbe,[p("code",null,h(d),1)]),p("dd",{innerHTML:i.$t(`oauth2.APP.SCOPE.${d}_DESCRIPTION`)},null,8,Dbe)],64))),128))]),p("div",Pbe,[p("button",{class:"danger",onClick:o},h(i.$t("buttons.AUTHORIZE")),1),p("button",{class:"cancel",onClick:u[0]||(u[0]=d=>i.$router.push("/profile/apps"))},h(i.$t("buttons.CANCEL")),1)])])])):(A(),N("div",wbe,[p("p",Lbe,h(i.$t("oauth2.NO_APP")),1),p("button",{onClick:u[1]||(u[1]=d=>i.$router.push("/profile/apps"))},h(i.$t("buttons.BACK")),1)]))])}}});const kbe=se($be,[["__scopeId","data-v-a8ed6bf8"]]),Ube={id:"oauth2-apps"},Mbe=Q({__name:"index",props:{user:{}},setup(e){const t=e,n=Me(),{user:r}=Te(t);return Rt(()=>{n.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),n.commit(Ke.MUTATIONS.SET_CLIENTS,[])}),(a,s)=>{const o=ue("router-view");return A(),N("div",Ube,[U(o,{authUser:E(r)},null,8,["authUser"])])}}}),xbe={id:"oauth2-app",class:"description-list"},Fbe={key:1},Wbe={key:0,class:"info-box success-message"},Gbe=["title"],zbe={key:0},Bbe={key:1,class:"app-secret"},Hbe=["title"],jbe={class:"client-scopes"},Vbe={class:"app-buttons"},Kbe={key:2},Ybe={class:"no-app"},qbe=Q({__name:"UserApp",props:{authUser:{},afterCreation:{type:Boolean,default:!1}},setup(e){const t=e,n=Kt(),r=Me(),{afterCreation:a,authUser:s}=Te(t),o=$(()=>r.getters[Ke.GETTERS.CLIENT]),i=$(()=>r.getters[Ke.GETTERS.REVOCATION_SUCCESSFUL]),u=le(!1),c=le(""),l=le(!1),f=le(!1),d=le(!1);bt(()=>{m(),navigator.clipboard&&(d.value=!0)});function m(){!a.value&&n.params.id&&typeof n.params.id=="string"&&r.dispatch(Ke.ACTIONS.GET_CLIENT_BY_ID,+n.params.id)}function _(v){c.value=v?"oauth2.APP_DELETION_CONFIRMATION":"oauth2.TOKENS_REVOCATION_CONFIRMATION",T(!0)}function T(v){u.value=v,v||(c.value="")}function R(v){c.value==="oauth2.APP_DELETION_CONFIRMATION"?r.dispatch(Ke.ACTIONS.DELETE_CLIENT,v):r.dispatch(Ke.ACTIONS.REVOKE_ALL_TOKENS,v)}function I(){navigator.clipboard.writeText(o.value.client_id),l.value=!0,f.value=!1,setTimeout(()=>{l.value=!1},3e3)}function b(){o.value.client_secret&&(navigator.clipboard.writeText(o.value.client_secret),f.value=!0,l.value=!1,setTimeout(()=>{f.value=!1},3e3))}return Rt(()=>{r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),r.commit(Ke.MUTATIONS.EMPTY_CLIENT),r.commit(Ke.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!1)}),Be(()=>i.value,v=>{v&&T(!1)}),(v,g)=>{const L=ue("Modal");return A(),N("div",xbe,[u.value?(A(),re(L,{key:0,title:v.$t("common.CONFIRMATION"),message:v.$t(c.value),onConfirmAction:g[0]||(g[0]=w=>R(o.value.id)),onCancelAction:g[1]||(g[1]=w=>T(!1)),onKeydown:g[2]||(g[2]=Ot(w=>T(!1),["esc"]))},null,8,["title","message"])):x("",!0),o.value&&o.value.client_id?(A(),N("div",Fbe,[E(a)||i.value?(A(),N("div",Wbe,h(v.$t(E(a)?"oauth2.APP_CREATED_SUCCESSFULLY":"oauth2.TOKENS_REVOKED")),1)):x("",!0),p("dl",null,[p("dt",null,h(v.$t("oauth2.APP.CLIENT_ID"))+":",1),p("dd",null,[K(h(o.value.client_id)+" ",1),E(a)&&d.value?(A(),N("i",{key:0,class:Ae(`fa fa-${l.value?"check":"copy"}`),"aria-hidden":"true",title:v.$t("oauth2.COPY_TO_CLIPBOARD"),onClick:I},null,10,Gbe)):x("",!0)]),E(a)&&o.value.client_secret?(A(),N("dt",zbe,h(v.$t("oauth2.APP.CLIENT_SECRET"))+": ",1)):x("",!0),E(a)&&o.value.client_secret?(A(),N("dd",Bbe,[K(h(o.value.client_secret)+" ",1),d.value?(A(),N("i",{key:0,class:Ae(`fa fa-${f.value?"check":"copy"}`),"aria-hidden":"true",title:v.$t("oauth2.COPY_TO_CLIPBOARD"),onClick:b},null,10,Hbe)):x("",!0)])):x("",!0),p("dt",null,h(gt(v.$t("oauth2.APP.ISSUE_AT")))+":",1),p("dd",null,[p("time",null,h(E(xn)(o.value.issued_at,E(s).timezone,E(s).date_format)),1)]),p("dt",null,h(v.$t("oauth2.APP.NAME"))+":",1),p("dd",null,h(o.value.name),1),p("dt",null,h(v.$t("oauth2.APP.DESCRIPTION"))+":",1),p("dd",{class:Ae({"no-description":!o.value.client_description})},h(o.value.client_description?o.value.client_description:v.$t("oauth2.NO_DESCRIPTION")),3),p("dt",null,h(v.$t("oauth2.APP.URL"))+":",1),p("dd",null,h(o.value.website),1),p("dt",null,h(v.$t("oauth2.APP.REDIRECT_URL"))+":",1),p("dd",null,h(o.value.redirect_uris.length>0?o.value.redirect_uris[0]:""),1),p("dt",null,h(v.$t("oauth2.APP.SCOPE.LABEL"))+":",1),p("dd",jbe,[(A(!0),N(ve,null,ze(o.value.scope.split(" "),w=>(A(),N("span",{class:"client-scope",key:w},[p("code",null,h(w),1)]))),128))])]),p("div",Vbe,[p("button",{class:"danger",onClick:g[3]||(g[3]=w=>_(!1))},h(v.$t("oauth2.REVOKE_ALL_TOKENS")),1),p("button",{class:"danger",onClick:g[4]||(g[4]=w=>_(!0))},h(v.$t("oauth2.DELETE_APP")),1),p("button",{onClick:g[5]||(g[5]=w=>v.$router.push("/profile/apps"))},h(v.$t("buttons.BACK")),1)])])):(A(),N("div",Kbe,[p("p",Ybe,h(v.$t("oauth2.NO_APP")),1),p("button",{onClick:g[6]||(g[6]=w=>v.$router.push("/profile/apps"))},h(v.$t("buttons.BACK")),1)]))])}}});const K_=se(qbe,[["__scopeId","data-v-3a7d0f4a"]]),Xbe={id:"oauth2-apps-list"},Zbe={class:"apps-list"},Qbe={key:0},Jbe={class:"app-issued-at"},eRe={key:1,class:"no-apps"},tRe={class:"app-list-buttons"},nRe=Q({__name:"UserAppsList",props:{authUser:{}},setup(e){const t=e,n=Me(),r=Kt(),{authUser:a}=Te(t),s=$(()=>n.getters[Ke.GETTERS.CLIENTS]),o=$(()=>n.getters[Ke.GETTERS.CLIENTS_PAGINATION]);let i=u(r.query);bt(()=>{c(i)});function u(l){const f={};return l.page&&(f.page=Rd(l.page,Bg)),f}function c(l){n.dispatch(Ke.ACTIONS.GET_CLIENTS,l)}return Be(()=>r.query,async l=>{i=u(l),c(i)}),(l,f)=>{const d=ue("router-link");return A(),N("div",Xbe,[p("p",Zbe,h(l.$t("oauth2.APPS_LIST")),1),s.value.length>0?(A(),N("ul",Qbe,[(A(!0),N(ve,null,ze(s.value,m=>(A(),N("li",{key:m.client_id},[U(d,{to:{name:"UserApp",params:{id:m.id}}},{default:pe(()=>[K(h(m.name),1)]),_:2},1032,["to"]),p("span",Jbe,[K(h(l.$t("oauth2.APP.ISSUE_AT"))+" ",1),p("time",null,h(E(xn)(m.issued_at,E(a).timezone,E(a).date_format)),1)])]))),128))])):(A(),N("div",eRe,h(l.$t("oauth2.NO_APPS")),1)),s.value.length>0?(A(),re($u,{key:2,pagination:o.value,path:"/profile/apps",query:E(i)},null,8,["pagination","query"])):x("",!0),p("div",tRe,[p("button",{onClick:f[0]||(f[0]=m=>l.$router.push("/profile/apps/new"))},h(l.$t("oauth2.NEW_APP")),1),p("button",{onClick:f[1]||(f[1]=m=>l.$router.push("/"))},h(l.$t("common.HOME")),1)])])}}});const rRe=se(nRe,[["__scopeId","data-v-064a87b7"]]),aRe={id:"user-sport-preferences"},sRe={key:0,class:"responsive-table"},oRe={class:"mobile-display"},iRe={key:0,class:"profile-buttons mobile-display"},uRe={key:1,class:"profile-buttons"},cRe={class:"text-left"},lRe={key:0},dRe={class:"cell-heading"},fRe=["value"],pRe={class:"cell-heading"},mRe={key:0,class:"disabled-message"},_Re={key:1,class:"fa fa-refresh fa-spin fa-fw"},ERe={class:"cell-heading"},hRe={class:"cell-heading"},TRe=["checked"],gRe={class:"cell-heading"},ARe=["value"],SRe={key:1},ORe={key:0,class:"action-buttons"},IRe={class:"cell-heading"},vRe=["onClick"],bRe={key:1,class:"edition-buttons"},RRe=["disabled"],NRe=["disabled","onClick"],yRe=["disabled"],CRe={key:0,class:"profile-buttons"},DRe={key:1,class:"profile-buttons"},PRe="#838383",wRe=Q({__name:"UserSportPreferences",props:{user:{},isEdition:{type:Boolean}},setup(e){const t=e,n=Me(),{t:r}=Vt(),{isEdition:a,user:s}=Te(t),o=ht("sportColors"),i=$(()=>n.getters[Mt.GETTERS.SPORTS]),u=$(()=>qr(i.value,r,"is_active",s.value.sports_list)),c=$(()=>n.getters[Y.GETTERS.USER_LOADING]),l=$(()=>n.getters[V.GETTERS.ERROR_MESSAGES]),f=zt({sport_id:0,color:null,is_active:!0,stopped_speed_threshold:1});function d(g){g!==null?(f.sport_id=g.id,f.color=g.color?g.color:o?o[g.label]:PRe,f.is_active=g.is_active_for_user,f.stopped_speed_threshold=g.stopped_speed_threshold):I()}function m(g){return f.sport_id===g}function _(g){f.color=g.target.value}function T(g){f.stopped_speed_threshold=parseFloat(g.target.value)}function R(g){f.is_active=g.target.checked}function I(){f.sport_id=0,f.color=null,f.is_active=!0,f.stopped_speed_threshold=1,n.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)}function b(g){g.preventDefault(),n.dispatch(Y.ACTIONS.UPDATE_USER_SPORT_PREFERENCES,f)}function v(g,L){g.preventDefault(),n.dispatch(Y.ACTIONS.RESET_USER_SPORT_PREFERENCES,L)}return Be(()=>c.value,g=>{!g&&!l.value&&I()}),(g,L)=>{const w=ue("SportImage"),P=ue("ErrorMessage");return A(),N("div",aRe,[i.value.length>0?(A(),N("div",sRe,[p("div",oRe,[E(a)?(A(),N("div",iRe,[p("button",{class:"cancel",onClick:L[0]||(L[0]=Ze(j=>g.$router.push("/profile/sports"),["prevent"]))},h(g.$t("buttons.BACK")),1)])):(A(),N("div",uRe,[p("button",{onClick:L[1]||(L[1]=j=>g.$router.push("/profile/edit/sports"))},h(g.$t("user.PROFILE.EDIT_SPORTS_PREFERENCES")),1),p("button",{onClick:L[2]||(L[2]=j=>g.$router.push("/"))},h(g.$t("common.HOME")),1)]))]),p("table",null,[p("thead",null,[p("tr",null,[p("th",null,h(g.$t("user.PROFILE.SPORT.COLOR")),1),p("th",cRe,h(g.$t("workouts.SPORT",0)),1),p("th",null,h(g.$t("workouts.WORKOUT",0)),1),p("th",null,h(g.$t("user.PROFILE.SPORT.IS_ACTIVE")),1),p("th",null,h(g.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD")),1),E(a)?(A(),N("th",lRe,h(g.$t("user.PROFILE.SPORT.ACTION")),1)):x("",!0)])]),p("tbody",null,[(A(!0),N(ve,null,ze(u.value,j=>(A(),N("tr",{key:j.id},[p("td",null,[p("span",dRe,h(g.$t("user.PROFILE.SPORT.COLOR")),1),m(j.id)?(A(),N("input",{key:0,class:"sport-color",type:"color",value:f.color,onInput:_},null,40,fRe)):(A(),re(w,{key:1,title:j.translatedLabel,"sport-label":j.label,color:j.color?j.color:E(o)[j.label]},null,8,["title","sport-label","color"]))]),p("td",{class:Ae(["sport-label",{"disabled-sport":!j.is_active}])},[p("span",pRe,h(g.$t("user.PROFILE.SPORT.LABEL")),1),K(" "+h(j.translatedLabel)+" ",1),j.is_active?x("",!0):(A(),N("span",mRe," ("+h(g.$t("user.PROFILE.SPORT.DISABLED_BY_ADMIN"))+") ",1)),c.value&&m(j.id)?(A(),N("i",_Re)):x("",!0),l.value&&f.sport_id===j.id?(A(),re(P,{key:2,message:l.value},null,8,["message"])):x("",!0)],2),p("td",{class:Ae(["text-center",{"disabled-sport":!j.is_active}])},[p("span",ERe,h(g.$t("workouts.WORKOUT",0)),1),p("i",{class:Ae(`fa fa${E(s).sports_list.includes(j.id)?"-check":""}`),"aria-hidden":"true"},null,2)],2),p("td",{class:Ae(["text-center",{"disabled-sport":!j.is_active}])},[p("span",hRe,h(g.$t("user.PROFILE.SPORT.IS_ACTIVE")),1),m(j.id)&&j.is_active?(A(),N("input",{key:0,type:"checkbox",checked:j.is_active_for_user,onChange:R},null,40,TRe)):(A(),N("i",{key:1,class:Ae(`fa fa${j.is_active_for_user?"-check":""}`),"aria-hidden":"true"},null,2))],2),p("td",{class:Ae(["text-center",{"disabled-sport":!j.is_active}])},[p("span",gRe,h(g.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD")),1),m(j.id)&&j.is_active?(A(),N("input",{key:0,class:"threshold-input",type:"number",min:"0",step:"0.1",value:f.stopped_speed_threshold,onInput:T},null,40,ARe)):(A(),N("span",SRe,h(j.stopped_speed_threshold),1))],2),E(a)?(A(),N("td",ORe,[p("span",IRe,h(g.$t("user.PROFILE.SPORT.ACTION")),1),f.sport_id===0?(A(),N("button",{key:0,onClick:G=>d(j)},h(g.$t("buttons.EDIT")),9,vRe)):x("",!0),m(j.id)?(A(),N("div",bRe,[p("button",{disabled:c.value,onClick:b},h(g.$t("buttons.SUBMIT")),9,RRe),p("button",{disabled:c.value,onClick:G=>v(G,j.id)},h(g.$t("buttons.RESET")),9,NRe),p("button",{disabled:c.value,onClick:L[3]||(L[3]=G=>d(null))},h(g.$t("buttons.CANCEL")),9,yRe)])):x("",!0)])):x("",!0)]))),128))])]),E(a)?(A(),N("div",CRe,[p("button",{class:"cancel",onClick:L[4]||(L[4]=Ze(j=>g.$router.push("/profile/sports"),["prevent"]))},h(g.$t("buttons.BACK")),1)])):(A(),N("div",DRe,[p("button",{onClick:L[5]||(L[5]=j=>g.$router.push("/profile/edit/sports"))},h(g.$t("user.PROFILE.EDIT_SPORTS_PREFERENCES")),1),p("button",{onClick:L[6]||(L[6]=j=>g.$router.push("/"))},h(g.$t("common.HOME")),1)]))])):x("",!0)])}}});const Y_=se(wRe,[["__scopeId","data-v-aa4857fe"]]),Xo=e=>(ct("data-v-43bcf522"),e=e(),lt(),e),LRe={class:"about-text"},$Re=["innerHTML"],kRe=Xo(()=>p("i",{class:"fa fa-book fa-padding","aria-hidden":"true"},null,-1)),URe=["href"],MRe=Xo(()=>p("i",{class:"fa fa-github fa-padding","aria-hidden":"true"},null,-1)),xRe={href:"https://github.com/SamR1/FitTrackee",target:"_blank",rel:"noopener noreferrer"},FRe=Xo(()=>p("i",{class:"fa fa-balance-scale fa-padding","aria-hidden":"true"},null,-1)),WRe=Xo(()=>p("a",{href:"https://choosealicense.com/licenses/agpl-3.0/",target:"_blank",rel:"noopener noreferrer"}," AGPLv3 ",-1)),GRe={key:0},zRe=Xo(()=>p("i",{class:"fa fa-envelope-o fa-padding","aria-hidden":"true"},null,-1)),BRe=["href"],HRe={key:1},jRe=["href"],VRe={class:"about-instance"},KRe=["innerHTML"],YRe=Q({__name:"About",setup(e){const t=Me(),n=$(()=>t.getters[V.GETTERS.APP_CONFIG]),r=$(()=>o()),a=$(()=>t.getters[V.GETTERS.LANGUAGE]),s=$(()=>i());function o(){const u={};return n.value.weather_provider==="visualcrossing"&&(u.name="Visual Crossing",u.url="https://www.visualcrossing.com"),u}function i(){let u="https://samr1.github.io/FitTrackee/";return a.value==="fr"&&(u+="fr/"),u}return(u,c)=>{const l=ue("i18n-t");return A(),N("div",LRe,[p("div",null,[p("p",{class:"error-message",innerHTML:u.$t("about.FITTRACKEE_DESCRIPTION")},null,8,$Re),p("p",null,[kRe,p("a",{class:"documentation-link",href:s.value,target:"_blank",rel:"noopener noreferrer"},h(gt(u.$t("common.DOCUMENTATION"))),9,URe)]),p("p",null,[MRe,p("a",xRe,h(u.$t("about.SOURCE_CODE")),1)]),p("p",null,[FRe,U(l,{keypath:"about.FITTRACKEE_LICENSE"},{default:pe(()=>[WRe]),_:1})]),n.value.admin_contact?(A(),N("div",GRe,[zRe,p("a",{href:`mailto:${n.value.admin_contact}`},h(u.$t("about.CONTACT_ADMIN")),9,BRe)])):x("",!0),r.value&&r.value.name?(A(),N("div",HRe,[K(h(u.$t("about.WEATHER_DATA_FROM"))+" ",1),p("a",{href:r.value.url,target:"_blank",rel:"nofollow noopener"},h(r.value.name),9,jRe)])):x("",!0),n.value.about?(A(),N(ve,{key:2},[p("p",VRe,h(u.$t("about.ABOUT_THIS_INSTANCE")),1),p("div",{innerHTML:E(ma)(E(Po)(n.value.about))},null,8,KRe)],64)):x("",!0)])])}}});const qRe=se(YRe,[["__scopeId","data-v-43bcf522"]]);const XRe={},ZRe={id:"bike"},QRe=["src"];function JRe(e,t){return A(),N("div",ZRe,[p("img",{class:"bike-img",src:"/img/bike.svg",alt:"mountain bike"},null,8,QRe)])}const mA=se(XRe,[["render",JRe],["__scopeId","data-v-dc181e30"]]),eNe={id:"about",class:"view"},tNe={class:"container"},nNe={class:"container-sub"},rNe={class:"container-sub about-details"},aNe=Q({__name:"AboutView",setup(e){return(t,n)=>(A(),N("div",eNe,[p("div",tNe,[p("div",nNe,[U(mA)]),p("div",rNe,[U(qRe)])])]))}});const sNe=se(aNe,[["__scopeId","data-v-ef9c7198"]]),oNe={id:"error"},iNe={class:"error-content"},uNe=Q({__name:"Error",props:{title:{},message:{},buttonText:{},path:{default:"/"}},setup(e){const t=e,{buttonText:n,title:r,message:a,path:s}=Te(t);return(o,i)=>(A(),N("div",oNe,[p("div",iNe,[p("h1",null,h(E(r)),1),p("p",null,h(E(a)),1),E(n)?(A(),N("button",{key:0,onClick:i[0]||(i[0]=u=>o.$router.push(E(s))),class:"upper"},h(E(n)),1)):x("",!0)])]))}});const cNe=se(uNe,[["__scopeId","data-v-48ec856d"]]),i0=Q({__name:"NotFound",props:{target:{default:"PAGE"}},setup(e){const t=e,{target:n}=Te(t),r=le(),a=le(!1);St(()=>s());function s(){r.value=setTimeout(()=>{a.value=!0},500)}return Rt(()=>{r.value&&clearTimeout(r.value)}),(o,i)=>a.value?(A(),re(cNe,{key:0,title:"404",message:o.$t(`error.NOT_FOUND.${E(n)}`),"button-text":o.$t("common.HOME")},null,8,["message","button-text"])):x("",!0)}}),lNe=e=>(ct("data-v-7a6fcd1c"),e=e(),lt(),e),dNe={id:"admin",class:"view"},fNe={key:0,class:"container"},pNe=lNe(()=>p("div",{id:"bottom"},null,-1)),mNe=Q({__name:"AdminView",setup(e){const t=Me(),n=$(()=>t.getters[V.GETTERS.APP_CONFIG]),r=$(()=>t.getters[V.GETTERS.APP_STATS]),a=$(()=>t.getters[Y.GETTERS.IS_ADMIN]),s=$(()=>t.getters[Y.GETTERS.USER_LOADING]);return bt(()=>t.dispatch(V.ACTIONS.GET_APPLICATION_STATS)),(o,i)=>{const u=ue("router-view");return A(),N("div",dNe,[s.value?x("",!0):(A(),N("div",fNe,[a.value?(A(),re(u,{key:0,appConfig:n.value,appStatistics:r.value},null,8,["appConfig","appStatistics"])):(A(),re(i0,{key:1})),pNe]))])}}});const _Ne=se(mNe,[["__scopeId","data-v-7a6fcd1c"]]),_A="/img/workouts/mountains.svg",ENe=p("div",{class:"map-attribution"},[p("span",{class:"map-attribution-text"},"©"),p("a",{class:"map-attribution-text",href:"https://www.openstreetmap.org/copyright",target:"_blank",rel:"noopener noreferrer"}," OpenStreetMap ")],-1),EA=Q({__name:"StaticMap",props:{workout:{},displayHover:{type:Boolean,default:!1}},setup(e){const t=e,{displayHover:n}=Te(t),r=`${Fo()}workouts/map/${t.workout.map}`;return(a,s)=>(A(),N("div",{class:Ae(["static-map",{"display-hover":E(n)}])},[E(n)?(A(),N("img",{key:0,src:r,alt:""})):(A(),N("div",{key:1,class:"bg-map-image",style:Hr({backgroundImage:`url(${r})`})},null,4)),ENe],2))}});const u0=e=>(ct("data-v-61a66a22"),e=e(),lt(),e),hNe={class:"timeline-workout"},TNe={class:"box"},gNe={class:"workout-user-date"},ANe={class:"workout-user"},SNe=["title"],ONe={key:0},INe={key:1,class:"no-map"},vNe={class:"img"},bNe={class:"data"},RNe=u0(()=>p("i",{class:"fa fa-clock-o","aria-hidden":"true"},null,-1)),NNe={key:0},yNe={class:"data"},CNe=u0(()=>p("i",{class:"fa fa-road","aria-hidden":"true"},null,-1)),DNe={key:0,class:"data elevation"},PNe=["alt"],wNe={class:"data-values"},LNe={key:1,class:"data altitude"},$Ne=u0(()=>p("i",{class:"fa fa-location-arrow","aria-hidden":"true"},null,-1)),kNe={class:"data-values"},UNe=Q({__name:"WorkoutCard",props:{user:{},useImperialUnits:{type:Boolean},workout:{default:()=>({})},sport:{default:()=>({})}},setup(e){const t=e,n=Me(),{user:r,workout:a,sport:s,useImperialUnits:o}=Te(t),i=$(()=>n.getters[V.GETTERS.LOCALE]);function u(l){return l.with_gpx&&l.min_alt!==null&&l.max_alt!==null}function c(l){return u(l)&&l.ascent!==null&&l.descent!==null}return(l,f)=>{var T;const d=ue("router-link"),m=ue("SportImage"),_=ue("Distance");return A(),N("div",hNe,[p("div",TNe,[p("div",gNe,[p("div",ANe,[U(Wo,{user:E(r)},null,8,["user"]),E(r).username?(A(),re(d,{key:0,class:"workout-user-name",to:{name:"User",params:{username:E(r).username}}},{default:pe(()=>[K(h(E(r).username),1)]),_:1},8,["to"])):x("",!0)]),E(a).id?(A(),re(d,{key:0,class:"workout-title",to:{name:"Workout",params:{workoutId:E(a).id}}},{default:pe(()=>[K(h(E(a).title),1)]),_:1},8,["to"])):x("",!0),E(a).workout_date&&E(r)?(A(),N("div",{key:1,class:"workout-date",title:E(xn)(E(a).workout_date,E(r).timezone,E(r).date_format)},h(E(jN)(new Date(E(a).workout_date),new Date,{addSuffix:!0,locale:i.value})),9,SNe)):x("",!0)]),p("div",{class:Ae(["workout-map",{"no-cursor":!E(a)}]),onClick:f[0]||(f[0]=R=>E(a).id?l.$router.push({name:"Workout",params:{workoutId:E(a).id}}):null)},[E(a)?(A(),N("div",ONe,[E(a).with_gpx?(A(),re(EA,{key:0,workout:E(a)},null,8,["workout"])):(A(),N("div",INe,h(l.$t("workouts.NO_MAP")),1))])):x("",!0)],2),p("div",{class:Ae(["workout-data",{"without-elevation":!u(E(a))}]),onClick:f[1]||(f[1]=R=>E(a).id?l.$router.push({name:"Workout",params:{workoutId:E(a).id}}):null)},[p("div",vNe,[(T=E(s))!=null&&T.label?(A(),re(m,{key:0,"sport-label":E(s).label,color:E(s).color},null,8,["sport-label","color"])):x("",!0)]),p("div",bNe,[RNe,E(a)?(A(),N("span",NNe,h(E(a).moving),1)):x("",!0)]),p("div",yNe,[CNe,E(a).id?(A(),re(_,{key:0,distance:E(a).distance,digits:3,unitFrom:"km",useImperialUnits:E(o)},null,8,["distance","useImperialUnits"])):x("",!0)]),u(E(a))?(A(),N("div",DNe,[p("img",{class:"mountains",src:_A,alt:l.$t("workouts.ELEVATION")},null,8,PNe),p("div",wNe,[E(a).id?(A(),re(_,{key:0,distance:E(a).min_alt,unitFrom:"m",displayUnit:!1,useImperialUnits:E(o)},null,8,["distance","useImperialUnits"])):x("",!0),K("/ "),E(a).id?(A(),re(_,{key:1,distance:E(a).max_alt,unitFrom:"m",useImperialUnits:E(o)},null,8,["distance","useImperialUnits"])):x("",!0)])])):x("",!0),c(E(a))?(A(),N("div",LNe,[$Ne,p("div",kNe,[K(" +"),E(a).id?(A(),re(_,{key:0,distance:E(a).ascent,unitFrom:"m",displayUnit:!1,useImperialUnits:E(o)},null,8,["distance","useImperialUnits"])):x("",!0),K("/- "),E(a).id?(A(),re(_,{key:1,distance:E(a).descent,unitFrom:"m",useImperialUnits:E(o)},null,8,["distance","useImperialUnits"])):x("",!0)])])):x("",!0)],2)])])}}});const q_=se(UNe,[["__scopeId","data-v-61a66a22"]]);const MNe={},xNe={class:"no-workouts box"};function FNe(e,t){const n=ue("router-link");return A(),N("div",xNe,[p("div",null,[K(h(e.$t("workouts.NO_WORKOUTS"))+" ",1),U(n,{to:"/workouts/add"},{default:pe(()=>[K(h(e.$t("workouts.UPLOAD_FIRST_WORKOUT")),1)]),_:1})])])}const c0=se(MNe,[["render",FNe],["__scopeId","data-v-b0c91cc6"]]),WNe=(e,t,n)=>{const r={speed:{label:t("workouts.SPEED"),backgroundColor:["#FFFFFF"],borderColor:["#8884d8"],borderWidth:2,data:[],yAxisID:"ySpeed"},elevation:{label:t("workouts.ELEVATION"),backgroundColor:["#e5e5e5"],borderColor:["#cccccc"],borderWidth:1,fill:!0,data:[],yAxisID:"yElevation"}},a=[],s=[],o=[];return e.map(i=>{a.push(Fi("km",i.distance,n)),s.push(i.duration),r.speed.data.push(Fi("km",i.speed,n)),i.elevation!==void 0&&r.elevation.data.push(Fi("m",i.elevation,n)),o.push({latitude:i.latitude,longitude:i.longitude})}),{distance_labels:a,duration_labels:s,datasets:r,coordinates:o}},GNe=e=>{const t=e.length;if(t===0)return{};const n={};return e.map(r=>{n[r.sport_id]||(n[r.sport_id]={count:0,percentage:0}),n[r.sport_id].count+=1,n[r.sport_id].percentage=n[r.sport_id].count/t}),n},Lo={order:"desc",order_by:"workout_date"},zNe={id:"timeline"},BNe={class:"section-title"},HNe={key:0},jNe={key:1},VNe={key:1,class:"more-workouts"},Ri=5,KNe=Q({__name:"Timeline",props:{sports:{},user:{}},setup(e){const t=e,n=Me(),{sports:r,user:a}=Te(t),s=le(1),o=t.user.nb_workouts>=Ri?Ri:t.user.nb_workouts;bt(()=>c());const i=$(()=>n.getters[ge.GETTERS.TIMELINE_WORKOUTS]),u=$(()=>i.value.length>0?i.value[i.value.length-1].previous_workout!==null:!1);function c(){n.dispatch(ge.ACTIONS.GET_TIMELINE_WORKOUTS,{page:s.value,per_page:Ri,...Lo})}function l(){s.value+=1,n.dispatch(ge.ACTIONS.GET_MORE_TIMELINE_WORKOUTS,{page:s.value,per_page:Ri,...Lo})}return(f,d)=>(A(),N("div",zNe,[p("div",BNe,h(f.$t("workouts.LATEST_WORKOUTS")),1),E(a).nb_workouts>0&&i.value.length===0?(A(),N("div",HNe,[(A(!0),N(ve,null,ze([...Array(E(o)).keys()],m=>(A(),re(q_,{user:E(a),useImperialUnits:E(a).imperial_units,key:m},null,8,["user","useImperialUnits"]))),128))])):(A(),N("div",jNe,[(A(!0),N(ve,null,ze(i.value,m=>(A(),re(q_,{workout:m,sport:i.value.length>0?E(r).filter(_=>_.id===m.sport_id)[0]:null,user:E(a),useImperialUnits:E(a).imperial_units,key:m.id},null,8,["workout","sport","user","useImperialUnits"]))),128)),i.value.length===0?(A(),re(c0,{key:0})):x("",!0),u.value?(A(),N("div",VNe,[p("button",{onClick:l},h(f.$t("workouts.LOAD_MORE_WORKOUT")),1)])):x("",!0)]))]))}});const YNe=se(KNe,[["__scopeId","data-v-e0964959"]]),qNe=["title"],hA=Q({__name:"CalendarWorkout",props:{displayHARecord:{type:Boolean},workout:{},sportLabel:{},sportColor:{}},setup(e){const t=e,{displayHARecord:n,workout:r,sportLabel:a,sportColor:s}=Te(t);return(o,i)=>{const u=ue("SportImage");return A(),N("div",{class:"calendar-workout",onClick:i[0]||(i[0]=c=>o.$router.push({name:"Workout",params:{workoutId:E(r).id}}))},[U(u,{"sport-label":E(a),title:E(r).title,color:E(s)},null,8,["sport-label","title","color"]),p("sup",null,[E(r).records.length>0?(A(),N("i",{key:0,class:"fa fa-trophy custom-fa-small","aria-hidden":"true",title:E(r).records.filter(c=>E(n)?!0:c.record_type!=="HA").map(c=>` ${o.$t(`workouts.RECORD_${c.record_type}`)}`)[0]},null,8,qNe)):x("",!0)])])}}});const XNe={class:"donut-chart"},ZNe={height:"34",width:"34",viewBox:"0 0 34 34"},QNe=["stroke","stroke-dashoffset","transform"],X_=16,Z_=16,Q_=14,JNe=Q({__name:"DonutChart",props:{colors:{},datasets:{}},setup(e){const t=e,{colors:n,datasets:r}=Te(t);let a=-90;const s=2*Math.PI*Q_;function o(u,c){return c-u*c}function i(u,c){const l=`rotate(${a}, ${X_}, ${Z_})`;return a=c*360+a,l}return(u,c)=>(A(),N("div",XNe,[(A(),N("svg",ZNe,[(A(!0),N(ve,null,ze(Object.entries(E(r)),(l,f)=>(A(),N("g",{key:f},[p("circle",{cx:X_,cy:Z_,r:Q_,fill:"transparent",stroke:E(n)[+l[0]],"stroke-dashoffset":o(l[1].percentage,s),"stroke-dasharray":s,"stroke-width":"3","stroke-opacity":"0.8",transform:i(f,l[1].percentage)},null,8,QNe)]))),128))]))]))}}),e3e={class:"calendar-workouts-chart"},t3e={class:"workouts-count"},n3e={key:0,class:"workouts-pane"},r3e={class:"more-workouts"},a3e=Q({__name:"CalendarWorkoutsChart",props:{colors:{},datasets:{},sports:{},workouts:{},displayHARecord:{type:Boolean}},setup(e){const t=e,{colors:n,datasets:r,sports:a,workouts:s}=Te(t),o=le(!0);function i(u){u.stopPropagation(),o.value=!o.value}return(u,c)=>{const l=uO("click-outside");return A(),N("div",e3e,[p("div",{class:"workouts-chart",onClick:i},[p("div",t3e,h(E(s).length),1),U(JNe,{datasets:E(r),colors:E(n)},null,8,["datasets","colors"])]),o.value?x("",!0):(A(),N("div",n3e,[Xe((A(),N("div",r3e,[p("i",{class:"fa fa-times calendar-more","aria-hidden":"true",onClick:i}),(A(!0),N(ve,null,ze(E(s),(f,d)=>(A(),re(hA,{key:d,displayHARecord:u.displayHARecord,workout:f,sportLabel:E(t0)(f,E(a)),sportColor:E(n0)(f,E(a))},null,8,["displayHARecord","workout","sportLabel","sportColor"]))),128))])),[[l,i]])]))])}}});const J_=se(a3e,[["__scopeId","data-v-dee1fca1"]]),s3e={class:"calendar-workouts"},o3e={class:"desktop-display"},i3e={key:0,class:"workouts-display"},u3e={key:1,class:"donut-display"},c3e={class:"mobile-display"},l3e={key:0,class:"donut-display"},eE=6,d3e=Q({__name:"CalendarWorkouts",props:{displayHARecord:{type:Boolean},workouts:{},sports:{}},setup(e){const t=e,{displayHARecord:n,workouts:r,sports:a}=Te(t),s=$(()=>GNe(t.workouts)),o=$(()=>age(t.sports));return(i,u)=>(A(),N("div",s3e,[p("div",o3e,[E(r).length<=eE?(A(),N("div",i3e,[(A(!0),N(ve,null,ze(E(r).slice(0,eE),(c,l)=>(A(),re(hA,{key:l,displayHARecord:E(n),workout:c,sportLabel:E(t0)(c,E(a)),sportColor:E(n0)(c,E(a))},null,8,["displayHARecord","workout","sportLabel","sportColor"]))),128))])):(A(),N("div",u3e,[U(J_,{workouts:E(r),sports:E(a),datasets:s.value,colors:o.value,displayHARecord:E(n)},null,8,["workouts","sports","datasets","colors","displayHARecord"])]))]),p("div",c3e,[E(r).length>0?(A(),N("div",l3e,[U(J_,{workouts:E(r),sports:E(a),datasets:s.value,colors:o.value,displayHARecord:E(n)},null,8,["workouts","sports","datasets","colors","displayHARecord"])])):x("",!0)])]))}});const f3e={class:"calendar-cells"},p3e={class:"calendar-cell-day"},m3e=Q({__name:"CalendarCells",props:{currentDay:{},displayHARecord:{type:Boolean},endDate:{},sports:{},startDate:{},timezone:{},weekStartingMonday:{type:Boolean},workouts:{}},setup(e){const t=e,{currentDay:n,displayHARecord:r,endDate:a,sports:s,startDate:o,timezone:i,weekStartingMonday:u,workouts:c}=Te(t),l=le([]);St(()=>f());function f(){l.value=[];let _=o.value;for(;_<=a.value;){const T=[];for(let R=0;R<7;R++)T.push(_),_=Go(_,1);l.value.push(T)}}function d(_){return u.value?[5,6].includes(_):[0,6].includes(_)}function m(_,T){return T?T.filter(R=>w1(Ac(R.workout_date,i.value),_)).reverse():[]}return Be(()=>t.currentDay,()=>f()),(_,T)=>(A(),N("div",f3e,[(A(!0),N(ve,null,ze(l.value,(R,I)=>(A(),N("div",{class:"calendar-row",key:I},[(A(!0),N(ve,null,ze(R,(b,v)=>(A(),N("div",{class:Ae(["calendar-cell",{"disabled-cell":!E(KN)(b,E(n)),"week-end":d(v),today:E(YN)(b)}]),key:v},[U(d3e,{workouts:m(b,E(c)),sports:E(s),displayHARecord:E(r)},null,8,["workouts","sports","displayHARecord"]),p("div",p3e,h(E(dn)(b,"d")),1)],2))),128))]))),128))]))}});const _3e={class:"calendar-days"},E3e=Q({__name:"CalendarDays",props:{startDate:{},localeOptions:{}},setup(e){const t=e,n=[];for(let r=0;r<7;r++)n.push(Go(t.startDate,r));return(r,a)=>(A(),N("div",_3e,[(A(),N(ve,null,ze(n,(s,o)=>p("div",{class:"calendar-day",key:o},h(E(dn)(s,"EEE",{locale:r.localeOptions})),1)),64))]))}});const h3e={class:"calendar-header"},T3e=p("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1),g3e=[T3e],A3e={class:"calendar-month"},S3e=p("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1),O3e=[S3e],I3e=Q({__name:"CalendarHeader",props:{day:{},localeOptions:{}},emits:["displayNextMonth","displayPreviousMonth"],setup(e,{emit:t}){const n=e,r=t,{day:a,localeOptions:s}=Te(n);return(o,i)=>(A(),N("div",h3e,[p("div",{class:"calendar-arrow calendar-arrow-left",onClick:i[0]||(i[0]=u=>r("displayPreviousMonth"))},g3e),p("div",A3e,[p("span",null,h(E(dn)(E(a),"MMM yyyy",{locale:E(s)})),1)]),p("div",{class:"calendar-arrow calendar-arrow-right",onClick:i[1]||(i[1]=u=>r("displayNextMonth"))},O3e)]))}});const v3e={id:"user-calendar"},b3e={class:"calendar-card box"},tE="yyyy-MM-dd",R3e=Q({__name:"index",props:{sports:{},user:{}},setup(e){const t=e,n=Me(),{sports:r,user:a}=Te(t),s=le(new Date),o=le($_(s.value,a.value.weekm)),i=$(()=>n.getters[ge.GETTERS.CALENDAR_WORKOUTS]),u=$(()=>n.getters[V.GETTERS.LOCALE]);bt(()=>c());function c(){o.value=$_(s.value,t.user.weekm);const d={from:dn(o.value.start,tE),to:dn(o.value.end,tE),page:1,per_page:100,...Lo};n.dispatch(ge.ACTIONS.GET_CALENDAR_WORKOUTS,d)}function l(){s.value=rs(s.value,1),c()}function f(){s.value=Eo(s.value,1),c()}return(d,m)=>(A(),N("div",v3e,[p("div",b3e,[U(I3e,{day:s.value,"locale-options":u.value,onDisplayNextMonth:l,onDisplayPreviousMonth:f},null,8,["day","locale-options"]),U(E3e,{"start-date":o.value.start,"locale-options":u.value},null,8,["start-date","locale-options"]),U(m3e,{currentDay:s.value,displayHARecord:E(a).display_ascent,"end-date":o.value.end,sports:E(r),"start-date":o.value.start,timezone:E(a).timezone,workouts:i.value,weekStartingMonday:E(a).weekm},null,8,["currentDay","displayHARecord","end-date","sports","start-date","timezone","workouts","weekStartingMonday"])])]))}});const TA={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},N3e={type:{type:String,required:!0},...TA},y3e=ph[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function La(e){return Wu(e)?Je(e):e}function C3e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return Wu(t)?new Proxy(e,{}):e}function D3e(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function gA(e,t){e.labels=t}function AA(e,t,n){const r=[];e.datasets=t.map(a=>{const s=e.datasets.find(o=>o[n]===a[n]);return!s||!a.data||r.includes(s)?{...a}:(r.push(s),Object.assign(s,a),s)})}function P3e(e,t){const n={labels:[],datasets:[]};return gA(n,e.labels),AA(n,e.datasets,t),n}const w3e=Q({props:N3e,setup(e,t){let{expose:n}=t;const r=le(null),a=Gu(null);n({chart:a});const s=()=>{if(!r.value)return;const{type:u,data:c,options:l,plugins:f,datasetIdKey:d}=e,m=P3e(c,d),_=C3e(m,c);a.value=new kd(r.value,{type:u,data:_,options:{...l},plugins:f})},o=()=>{const u=Je(a.value);u&&(u.destroy(),a.value=null)},i=u=>{u.update(e.updateMode)};return St(s),ko(o),Be([()=>e.options,()=>e.data],(u,c)=>{let[l,f]=u,[d,m]=c;const _=Je(a.value);if(!_)return;let T=!1;if(l){const R=La(l),I=La(d);R&&R!==I&&(D3e(_,R),T=!0)}if(f){const R=La(f.labels),I=La(m.labels),b=La(f.datasets),v=La(m.datasets);R!==I&&(gA(_.config.data,R),T=!0),b&&b!==v&&(AA(_.config.data,b,e.datasetIdKey),T=!0)}T&&i(_)},{deep:!0}),()=>Rn("canvas",{ref:r})}});function SA(e,t){return kd.register(t),Q({props:TA,setup(n,r){let{expose:a}=r;const s=Gu(null),o=i=>{s.value=i==null?void 0:i.chart};return a({chart:s}),()=>Rn(w3e,y3e({ref:o},{type:e,...n}))}})}const L3e=SA("bar",hE),$3e=SA("line",TE),k3e=(e,t=!1)=>{let n="0";t&&(n=String(Math.floor(e/86400)),e%=86400);const r=String(Math.floor(e/3600)).padStart(2,"0");e%=3600;const a=String(Math.floor(e/60)).padStart(2,"0"),s=String(e%60).padStart(2,"0");return t?`${n==="0"?"":`${n}d `}${r==="00"?"":`${r}h `}${a}m ${s}s`:`${r==="00"?"":`${r}:`}${a}:${s}`},Bs=(e,t,n,r=!0,a="km")=>{const s=n?$n[a].defaultTarget:a;switch(e){case"average_speed":return`${t.toFixed(2)} ${s}/h`;case"total_duration":return k3e(t,r);case"total_distance":case"total_ascent":case"total_descent":return`${t.toFixed(2)} ${s}`;default:return t.toString()}},U3e=Q({__name:"Chart",props:{datasets:{},labels:{},displayedData:{},displayedSportIds:{},fullStats:{type:Boolean},useImperialUnits:{type:Boolean}},setup(e){const t=e,{datasets:n,labels:r,displayedData:a,displayedSportIds:s,fullStats:o,useImperialUnits:i}=Te(t),{t:u}=Vt(),c=$(()=>({labels:r.value,datasets:JSON.parse(JSON.stringify(n.value))})),l=$(()=>({responsive:!0,maintainAspectRatio:!1,animation:!1,layout:{padding:{top:o.value?40:22}},scales:{x:{stacked:!0,grid:{drawOnChartArea:!1}},y:{stacked:a.value!=="average_speed",grid:{drawOnChartArea:!1},ticks:{maxTicksLimit:6,callback:function(_){return Bs(a.value,+_,i.value,!1,m(a.value))}},afterFit:function(_){_.width=o.value?90:60}}},plugins:{datalabels:{anchor:"end",align:"end",color:function(_){return a.value==="average_speed"&&_.dataset.backgroundColor?_.dataset.backgroundColor[0]:"#666666"},rotation:function(_){return o.value&&_.chart.chartArea.width<580?310:0},display:function(_){return o.value&&_.chart.chartArea.width<300?!1:a.value==="average_speed"?s.value.length==1?"auto":!1:!0},formatter:function(_,T){if(a.value==="average_speed")return Bs(a.value,_,i.value,!1);{const R=T.chart.data.datasets.map(I=>I.data[T.dataIndex]).reduce((I,b)=>d(I,b),0);return T.datasetIndex===s.value.length-1&&R>0?Bs(a.value,R,i.value,!1,m(a.value)):null}}},legend:{display:!1},tooltip:{interaction:{intersect:!0,mode:"index",position:a.value==="average_speed"?"nearest":"average"},filter:function(_){return _.formattedValue!=="0"},callbacks:{label:function(_){let T=u(`sports.${_.dataset.label}.LABEL`)||"";return T&&(T+=": "),_.parsed.y!==null&&(T+=Bs(a.value,_.parsed.y,i.value,!0,m(a.value))),T},footer:function(_){if(a.value==="average_speed")return"";let T=0;return _.map(R=>{T+=R.parsed.y}),`${u("common.TOTAL")}: `+Bs(a.value,T,i.value,!0,m(a.value))}}}}}));function f(_){return isNaN(_)?0:+_}function d(_,T){return f(_)+f(T)}function m(_){return["total_ascent","total_descent"].includes(_)?"m":"km"}return(_,T)=>(A(),N("div",{class:Ae(["bar-chart",{minimal:!E(o)}])},[U(E(L3e),{data:c.value,options:l.value},null,8,["data","options"])],2))}});const M3e=se(U3e,[["__scopeId","data-v-aa296c87"]]),{locale:nE}=Aa.global,x3e={week:{api:"yyyy-MM-dd",chart:"MM/dd/yyyy"},month:{api:"yyyy-MM",chart:"MM/yyyy"},year:{api:"yyyy",chart:"yyyy"}},F3e=["average_speed","nb_workouts","total_duration","total_distance","total_ascent","total_descent"],W3e=(e,t)=>{const n=[];for(let r=TAe(e.duration,e.start,t);r<=e.end;r=gAe(e.duration,r))n.push(r);return n},$a=(e,t,n=!1)=>{const r={label:e,backgroundColor:[t],data:[]};return n?(r.type="line",r.borderColor=[t],r.spanGaps=!0):r.type="bar",r},G3e=e=>{const t={average_speed:[],nb_workouts:[],total_distance:[],total_duration:[],total_ascent:[],total_descent:[]};return e.map(n=>{const r=n.color?n.color:e0[n.label];t.average_speed.push($a(n.label,r,!0)),t.nb_workouts.push($a(n.label,r)),t.total_distance.push($a(n.label,r)),t.total_duration.push($a(n.label,r)),t.total_ascent.push($a(n.label,r)),t.total_descent.push($a(n.label,r))}),t},z3e=(e,t,n)=>{switch(e){case"average_speed":case"total_distance":case"total_ascent":case"total_descent":return Fi(["average_speed","total_distance"].includes(e)?"km":"m",t,n);default:case"nb_workouts":case"total_duration":return t}},B3e=(e,t,n,r,a,s,o)=>{const i=W3e(e,t),u=x3e[e.duration],c=n.filter(m=>r.includes(m.id)),l=[],f=G3e(c),d={};return c.map(m=>d[m.label]=m.id),i.map(m=>{const _=dn(m,u.api),T=dn(m,e.duration==="week"?Oa(o,nE.value):u.chart,{locale:Ho[nE.value]});l.push(T),F3e.map(R=>{f[R].map(I=>{I.data.push(_ in a&&d[I.label]in a[_]?z3e(R,a[_][d[I.label]][R],s):R==="average_speed"?null:0)})})}),{labels:l,datasets:f}},H3e=(e,t,n)=>{const r=n?1:0,a=t==="year"?hf($l(e,9)):t==="week"?tc(Eo(e,2),{weekStartsOn:r}):Bo(Eo(e,11)),s=t==="year"?L1(e):t==="week"?Tf(e,{weekStartsOn:r}):zo(e);return{duration:t,end:s,start:a}},j3e=(e,t,n)=>{const{duration:r,start:a,end:s}=e,o=n?1:0;return{duration:r,end:r==="year"?L1(t?$l(s,1):ou(s,1)):r==="week"?Tf(t?Mp(s,1):Ll(s,1),{weekStartsOn:o}):zo(t?Eo(s,1):rs(s,1)),start:r==="year"?hf(t?$l(a,1):ou(a,1)):r==="week"?tc(t?Mp(a,1):Ll(a,1),{weekStartsOn:o}):Bo(t?Eo(a,1):rs(a,1))}},V3e={class:"stats-chart"},K3e={key:0},Y3e={key:1},q3e={class:"chart-radio"},X3e=["checked","disabled"],Z3e=["checked","disabled"],Q3e=["checked","disabled"],J3e={key:0},eye=["checked","disabled"],tye={key:1},nye=["checked","disabled"],rye={key:2},aye=["checked","disabled"],sye=Q({__name:"index",props:{sports:{},user:{},chartParams:{},displayedSportIds:{default:()=>[]},fullStats:{type:Boolean,default:!1},hideChartIfNoData:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},setup(e){const t=e,{sports:n,user:r,chartParams:a,displayedSportIds:s,fullStats:o,hideChartIfNoData:i,isDisabled:u}=Te(t),c=Me(),l=le("total_distance"),f=$(()=>c.getters[Br.GETTERS.USER_STATS]),d=$(()=>B3e(a.value,r.value.weekm,n.value,s.value,f.value,r.value.imperial_units,r.value.date_format)),m=$(()=>d.value.datasets[l.value]),_=$(()=>d.value.labels),T=$(()=>Object.keys(f.value).length===0);bt(()=>R(b(a.value,r.value)));function R(v){c.dispatch(Br.ACTIONS.GET_USER_STATS,{username:r.value.username,filterType:"by_time",params:v})}function I(v){l.value=v.target.name}function b(v,g){return{from:dn(v.start,"yyyy-MM-dd"),to:dn(v.end,"yyyy-MM-dd"),time:v.duration==="week"?`week${g.weekm?"m":""}`:v.duration}}return Be(()=>a.value,async v=>{R(b(v,r.value))}),(v,g)=>(A(),N("div",V3e,[E(i)&&T.value?(A(),N("div",K3e,h(v.$t("workouts.NO_WORKOUTS")),1)):(A(),N("div",Y3e,[p("div",q3e,[p("label",null,[p("input",{type:"radio",name:"total_distance",checked:l.value==="total_distance",disabled:E(u),onClick:I},null,8,X3e),K(" "+h(v.$t("workouts.DISTANCE")),1)]),p("label",null,[p("input",{type:"radio",name:"total_duration",checked:l.value==="total_duration",disabled:E(u),onClick:I},null,8,Z3e),K(" "+h(v.$t("workouts.DURATION")),1)]),p("label",null,[p("input",{type:"radio",name:"nb_workouts",checked:l.value==="nb_workouts",disabled:E(u),onClick:I},null,8,Q3e),K(" "+h(v.$t("workouts.WORKOUT",2)),1)]),E(o)?(A(),N("label",J3e,[p("input",{type:"radio",name:"average_speed",checked:l.value==="average_speed",disabled:E(u),onClick:I},null,8,eye),K(" "+h(v.$t("workouts.AVERAGE_SPEED")),1)])):x("",!0),E(o)?(A(),N("label",tye,[p("input",{type:"radio",name:"total_ascent",checked:l.value==="total_ascent",disabled:E(u),onClick:I},null,8,nye),K(" "+h(v.$t("workouts.ASCENT")),1)])):x("",!0),E(o)?(A(),N("label",rye,[p("input",{type:"radio",name:"total_descent",checked:l.value==="total_descent",disabled:E(u),onClick:I},null,8,aye),K(" "+h(v.$t("workouts.DESCENT")),1)])):x("",!0)]),_.value.length>0?(A(),re(M3e,{key:0,datasets:m.value,labels:_.value,displayedData:l.value,displayedSportIds:E(s),fullStats:E(o),useImperialUnits:E(r).imperial_units},null,8,["datasets","labels","displayedData","displayedSportIds","fullStats","useImperialUnits"])):x("",!0)]))]))}});const OA=se(sye,[["__scopeId","data-v-b8d7f5c9"]]),oye={class:"user-month-stats"},iye=Q({__name:"UserMonthStats",props:{sports:{},user:{}},setup(e){const t=e,{sports:n,user:r}=Te(t),a=new Date,s={duration:"week",start:Bo(a),end:zo(a)},o=n.value.map(i=>i.id);return(i,u)=>{const c=ue("Card");return A(),N("div",oye,[U(c,null,{title:pe(()=>[K(h(i.$t("dashboard.THIS_MONTH")),1)]),content:pe(()=>[U(OA,{sports:E(n),user:E(r),"chart-params":s,"displayed-sport-ids":E(o),"hide-chart-if-no-data":!0},null,8,["sports","user","displayed-sport-ids"])]),_:1})])}}});const uye=se(iye,[["__scopeId","data-v-8f59a282"]]),{locale:cye}=Aa.global,lye=(e,t,n,r)=>{const a="km",s=n?$n[a].defaultTarget:a,o="m",i=n?$n[o].defaultTarget:o;let u;switch(e.record_type){case"AS":case"MS":u=`${on(+e.value,a,s,2)} ${s}/h`;break;case"FD":u=`${on(+e.value,a,s,3)} ${s}`;break;case"HA":u=`${on(+e.value,o,i,2)} ${i}`;break;case"LD":u=e.value;break;default:throw new Error(`Invalid record type, expected: "AS", "FD", "HA", "LD", "MD", got: "${e.record_type}"`)}return{id:e.id,record_type:e.record_type,sport_id:e.sport_id,value:u,user:e.user,workout_date:xn(e.workout_date,t,r,!1),workout_id:e.workout_id}},dye=(e,t)=>{const n=e.label.toLowerCase(),r=t.label.toLowerCase();return n>r?1:n(s=Oa(s,cye.value),e.filter(o=>a?!0:o.record_type!=="HA").reduce((o,i)=>{const u=t.find(c=>c.id===i.sport_id);return u&&u.label&&(o[u.translatedLabel]===void 0&&(o[u.translatedLabel]={label:u.label,color:u.color,records:[]}),o[u.translatedLabel].records.push(lye(i,n,r,s))),o},{})),pye={class:"records-card"},mye={class:"record-type"},_ye={class:"record-value"},Eye={class:"record-date"},hye=Q({__name:"RecordsCard",props:{records:{},sportTranslatedLabel:{}},setup(e){const t=e,{records:n,sportTranslatedLabel:r}=Te(t),{t:a}=Vt();function s(o){const i=[];return o.map(u=>{i.push({...u,label:a(`workouts.RECORD_${u.record_type}`)})}),i.sort(dye)}return(o,i)=>{const u=ue("SportImage"),c=ue("router-link"),l=ue("Card");return A(),N("div",pye,[U(l,null,{title:pe(()=>[U(u,{"sport-label":E(n).label,color:E(n).color},null,8,["sport-label","color"]),K(" "+h(E(r)),1)]),content:pe(()=>[(A(!0),N(ve,null,ze(s(E(n).records),f=>(A(),N("div",{class:"record",key:f.id},[p("span",mye,h(f.label),1),p("span",_ye,h(f.value),1),p("span",Eye,[U(c,{to:{name:"Workout",params:{workoutId:f.workout_id}}},{default:pe(()=>[p("time",null,h(f.workout_date),1)]),_:2},1032,["to"])])]))),128))]),_:1})])}}});const Tye=se(hye,[["__scopeId","data-v-64523a87"]]),gye=e=>(ct("data-v-fff33919"),e=e(),lt(),e),Aye={class:"user-records-section"},Sye={class:"section-title"},Oye=gye(()=>p("i",{class:"fa fa-trophy custom-fa-small","aria-hidden":"true"},null,-1)),Iye={class:"user-records"},vye={key:0,class:"no-records"},bye=Q({__name:"index",props:{sports:{},user:{}},setup(e){const t=e,{t:n}=Vt(),r=$(()=>fye(t.user.records,qr(t.sports,n),t.user.timezone,t.user.imperial_units,t.user.display_ascent,t.user.date_format));return(a,s)=>(A(),N("div",Aye,[p("div",Sye,[Oye,K(" "+h(a.$t("workouts.RECORD",2)),1)]),p("div",Iye,[Object.keys(r.value).length===0?(A(),N("div",vye,h(a.$t("workouts.NO_RECORDS")),1)):x("",!0),(A(!0),N(ve,null,ze(Object.keys(r.value).sort(),o=>(A(),re(Tye,{sportTranslatedLabel:o,records:r.value[o],key:o,useImperialUnits:a.user.imperial_units},null,8,["sportTranslatedLabel","records","useImperialUnits"]))),128))])]))}});const Rye=se(bye,[["__scopeId","data-v-fff33919"]]),Nye={id:"user-stats"},ul="km",cl="m",yye=Q({__name:"index",props:{user:{}},setup(e){const t=e,{t:n}=Vt(),{user:r}=Te(t),a=$(()=>t.user.total_duration),s=$(()=>l(a)),o=r.value.imperial_units?$n[ul].defaultTarget:ul,i=$(()=>r.value.imperial_units?on(r.value.total_distance,ul,o,2):parseFloat(r.value.total_distance.toFixed(2))),u=r.value.imperial_units?$n[cl].defaultTarget:cl,c=$(()=>r.value.imperial_units?on(r.value.total_ascent,cl,u,2):parseFloat(r.value.total_ascent.toFixed(2)));function l(f){const d=f.value.match(/day/g)?f.value.split(", ")[1]:f.value;return{days:f.value.match(/day/g)?`${f.value.split(" ")[0]} ${f.value.match(/days/g)?n("common.DAY",2):n("common.DAY",1)}`:`0 ${n("common.DAY",2)},`,duration:`${d.split(":")[0]}h ${d.split(":")[1]}min`}}return(f,d)=>(A(),N("div",Nye,[U(dr,{icon:"calendar",value:E(r).nb_workouts,text:f.$t("workouts.WORKOUT",E(r).nb_workouts)},null,8,["value","text"]),U(dr,{icon:"road",value:i.value,text:E(o)==="mi"?"miles":E(o)},null,8,["value","text"]),E(r).display_ascent?(A(),re(dr,{key:0,icon:"location-arrow",value:c.value,text:E(u)==="ft"?"feet":E(u)},null,8,["value","text"])):x("",!0),U(dr,{icon:"clock-o",value:s.value.days,text:s.value.duration},null,8,["value","text"]),E(r).display_ascent?x("",!0):(A(),re(dr,{key:1,icon:"tags",value:E(r).nb_sports,text:f.$t("workouts.SPORT",E(r).nb_sports)},null,8,["value","text"]))]))}});const Cye={},Dye={class:"privacy-policy-message"};function Pye(e,t){const n=ue("router-link"),r=ue("i18n-t");return A(),N("div",Dye,[p("span",null,[U(r,{keypath:"user.LAST_PRIVACY_POLICY_TO_VALIDATE"},{default:pe(()=>[U(n,{to:"/profile/edit/privacy-policy"},{default:pe(()=>[K(h(e.$t("user.REVIEW")),1)]),_:1})]),_:1})])])}const wye=se(Cye,[["render",Pye],["__scopeId","data-v-9714d129"]]),Zo=e=>(ct("data-v-8f5da609"),e=e(),lt(),e),Lye={key:0,id:"dashboard",class:"view"},$ye={class:"container mobile-menu"},kye={class:"box"},Uye=Zo(()=>p("i",{class:"fa fa-calendar","aria-hidden":"true"},null,-1)),Mye=[Uye],xye=Zo(()=>p("i",{class:"fa fa-bar-chart","aria-hidden":"true"},null,-1)),Fye=[xye],Wye=Zo(()=>p("i",{class:"fa fa-map-o","aria-hidden":"true"},null,-1)),Gye=[Wye],zye=Zo(()=>p("i",{class:"fa fa-trophy","aria-hidden":"true"},null,-1)),Bye=[zye],Hye={key:0,class:"container privacy-policy-message"},jye={class:"container"},Vye={class:"container dashboard-container"},Kye={class:"left-container dashboard-sub-container"},Yye={class:"right-container dashboard-sub-container"},qye=Zo(()=>p("div",{id:"bottom"},null,-1)),Xye={key:1,class:"app-loading"},Zye=Q({__name:"Dashboard",setup(e){const t=Me(),n=$(()=>t.getters[Y.GETTERS.AUTH_USER_PROFILE]),r=$(()=>t.getters[Mt.GETTERS.SPORTS]),a=le("calendar");bt(()=>t.dispatch(Y.ACTIONS.GET_USER_PROFILE));function s(o){a.value=o}return(o,i)=>{const u=ue("Loader");return n.value.username&&r.value.length>0?(A(),N("div",Lye,[p("div",$ye,[p("div",kye,[p("div",{class:Ae(["mobile-menu-item",{"is-selected":a.value==="calendar"}]),onClick:i[0]||(i[0]=c=>s("calendar"))},Mye,2),p("div",{class:Ae(["mobile-menu-item",{"is-selected":a.value==="chart"}]),onClick:i[1]||(i[1]=c=>s("chart"))},Fye,2),p("div",{class:Ae(["mobile-menu-item",{"is-selected":a.value==="timeline"}]),onClick:i[2]||(i[2]=c=>s("timeline"))},Gye,2),p("div",{class:Ae(["mobile-menu-item",{"is-selected":a.value==="records"}]),onClick:i[3]||(i[3]=c=>s("records"))},Bye,2)])]),n.value.accepted_privacy_policy?x("",!0):(A(),N("div",Hye,[U(wye)])),p("div",jye,[U(yye,{user:n.value},null,8,["user"])]),p("div",Vye,[p("div",Kye,[U(uye,{sports:r.value,user:n.value,class:Ae({"is-hidden":a.value!=="chart"})},null,8,["sports","user","class"]),U(Rye,{sports:r.value,user:n.value,class:Ae({"is-hidden":a.value!=="records"})},null,8,["sports","user","class"])]),p("div",Yye,[U(R3e,{sports:r.value,user:n.value,class:Ae({"is-hidden":a.value!=="calendar"})},null,8,["sports","user","class"]),U(YNe,{sports:r.value,user:n.value,class:Ae({"is-hidden":a.value!=="timeline"})},null,8,["sports","user","class"])])]),qye])):(A(),N("div",Xye,[U(u)]))}}});const Qye=se(Zye,[["__scopeId","data-v-8f5da609"]]),Jye={class:"not-found view"},eCe=Q({__name:"NotFoundView",setup(e){return(t,n)=>(A(),N("div",Jye,[U(i0)]))}}),tCe={id:"privacy-policy",class:"view"},nCe={class:"container"},rCe=p("div",{id:"bottom"},null,-1),aCe=Q({__name:"PrivacyPolicyView",setup(e){const t=Me();return bt(()=>{t.dispatch(V.ACTIONS.GET_APPLICATION_PRIVACY_POLICY)}),(n,r)=>(A(),N("div",tCe,[p("div",nCe,[U(pA)]),rCe]))}}),IA=e=>(ct("data-v-174c91c4"),e=e(),lt(),e),sCe={class:"chart-menu"},oCe=["disabled"],iCe=IA(()=>p("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1)),uCe=[iCe],cCe={class:"time-frames custom-checkboxes-group"},lCe={class:"time-frames-checkboxes custom-checkboxes"},dCe=["id","name","checked","onInput","disabled"],fCe=["id","tabindex","onKeydown"],pCe=["disabled"],mCe=IA(()=>p("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1)),_Ce=[mCe],ECe=Q({__name:"StatsMenu",props:{isDisabled:{type:Boolean}},emits:["arrowClick","timeFrameUpdate"],setup(e,{emit:t}){const n=e,{isDisabled:r}=Te(n),a=t,s=le("month"),o=["week","month","year"];function i(u){s.value=u,a("timeFrameUpdate",u)}return St(()=>{if(!r.value){const u=document.getElementById("frame-month");u&&u.focus()}}),(u,c)=>(A(),N("div",sCe,[p("button",{class:"chart-arrow transparent",onClick:c[0]||(c[0]=l=>a("arrowClick",!0)),onKeydown:c[1]||(c[1]=Ot(l=>a("arrowClick",!0),["enter"])),disabled:E(r)},uCe,40,oCe),p("div",cCe,[p("div",lCe,[(A(),N(ve,null,ze(o,l=>p("div",{class:"time-frame custom-checkbox",key:l},[p("label",null,[p("input",{type:"radio",id:l,name:l,checked:s.value===l,onInput:f=>i(l),disabled:E(r)},null,40,dCe),p("span",{id:`frame-${l}`,tabindex:E(r)?-1:0,role:"button",onKeydown:Ot(f=>i(l),["enter"])},h(u.$t(`statistics.TIME_FRAMES.${l}`)),41,fCe)])])),64))])]),p("button",{class:"chart-arrow transparent",onClick:c[2]||(c[2]=l=>a("arrowClick",!1)),onKeydown:c[3]||(c[3]=Ot(l=>a("arrowClick",!1),["enter"])),disabled:E(r)},_Ce,40,pCe)]))}});const hCe=se(ECe,[["__scopeId","data-v-174c91c4"]]),TCe={class:"sports-menu"},gCe=["id","name","checked","onInput"],ACe={class:"sport-label"},SCe=Q({__name:"StatsSportsMenu",props:{userSports:{},selectedSportIds:{default:()=>[]}},emits:["selectedSportIdsUpdate"],setup(e,{emit:t}){const n=e,r=t,{t:a}=Vt(),s=ht("sportColors"),{selectedSportIds:o}=Te(n),i=$(()=>qr(n.userSports,a));function u(c){r("selectedSportIdsUpdate",c)}return(c,l)=>{const f=ue("SportImage");return A(),N("div",TCe,[(A(!0),N(ve,null,ze(i.value,d=>(A(),N("label",{type:"checkbox",key:d.id,style:Hr({color:d.color?d.color:E(s)[d.label]})},[p("input",{type:"checkbox",id:`${d.id}`,name:d.label,checked:E(o).includes(d.id),onInput:m=>u(d.id)},null,40,gCe),U(f,{"sport-label":d.label,color:d.color},null,8,["sport-label","color"]),p("span",ACe,h(d.translatedLabel),1)],4))),128))])}}});const OCe={key:0,id:"user-statistics"},ICe=Q({__name:"index",props:{sports:{},user:{},isDisabled:{type:Boolean}},setup(e){const t=e,{t:n}=Vt(),{sports:r,user:a}=Te(t),s=le("month"),o=le(l(s.value)),i=$(()=>qr(t.sports,n)),u=le(d(r.value));function c(_){s.value=_,o.value=l(s.value)}function l(_){return H3e(new Date,_,t.user.weekm)}function f(_){o.value=j3e(o.value,_,t.user.weekm)}function d(_){return _.map(T=>T.id)}function m(_){u.value.includes(_)?u.value=u.value.filter(T=>T!==_):u.value.push(_)}return Be(()=>t.sports,_=>{u.value=d(_)}),(_,T)=>i.value?(A(),N("div",OCe,[U(hCe,{onTimeFrameUpdate:c,onArrowClick:f,isDisabled:_.isDisabled},null,8,["isDisabled"]),U(OA,{sports:E(r),user:E(a),chartParams:o.value,"displayed-sport-ids":u.value,fullStats:!0,isDisabled:_.isDisabled},null,8,["sports","user","chartParams","displayed-sport-ids","isDisabled"]),U(SCe,{"selected-sport-ids":u.value,"user-sports":E(r),onSelectedSportIdsUpdate:m},null,8,["selected-sport-ids","user-sports"])])):x("",!0)}});const vCe=se(ICe,[["__scopeId","data-v-b145e4ac"]]),bCe={id:"statistics",class:"view"},RCe={key:0,class:"container"},NCe=Q({__name:"StatisticsView",setup(e){const t=Me(),n=$(()=>t.getters[Y.GETTERS.AUTH_USER_PROFILE]),r=$(()=>t.getters[Mt.GETTERS.SPORTS].filter(s=>n.value.sports_list.includes(s.id))),a=$(()=>n.value.nb_workouts===0);return(s,o)=>{const i=ue("Card");return A(),N("div",bCe,[n.value.username?(A(),N("div",RCe,[U(i,null,{title:pe(()=>[K(h(s.$t("statistics.STATISTICS")),1)]),content:pe(()=>[U(vCe,{class:Ae({"stats-disabled":a.value}),user:n.value,sports:r.value,isDisabled:a.value},null,8,["class","user","sports","isDisabled"])]),_:1}),n.value.nb_workouts===0?(A(),re(c0,{key:0})):x("",!0)])):x("",!0)])}}});const yCe=se(NCe,[["__scopeId","data-v-0aa997fa"]]),CCe={name:"EmailSent"},DCe={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 345.834 345.834",style:{"enable-background":"new 0 0 345.834 345.834"},"xml:space":"preserve"},PCe=p("g",null,[p("path",{d:`M339.798,260.429c0.13-0.026,0.257-0.061,0.385-0.094c0.109-0.028,0.219-0.051,0.326-0.084
+`)});const i=t.nonTextTags||["script","style","textarea","option"];let u,c;t.allowedAttributes&&(u={},c={},Ks(t.allowedAttributes,function(D,W){u[W]=[];const B=[];D.forEach(function(ae){typeof ae=="string"&&ae.indexOf("*")>=0?B.push(S_(ae).replace(/\\\*/g,".*")):u[W].push(ae)}),B.length&&(c[W]=new RegExp("^("+B.join("|")+")$"))}));const l={},f={},d={};Ks(t.allowedClasses,function(D,W){if(u&&(ir(u,W)||(u[W]=[]),u[W].push("class")),l[W]=D,Array.isArray(D)){const B=[];l[W]=[],d[W]=[],D.forEach(function(ae){typeof ae=="string"&&ae.indexOf("*")>=0?B.push(S_(ae).replace(/\\\*/g,".*")):ae instanceof RegExp?d[W].push(ae):l[W].push(ae)}),B.length&&(f[W]=new RegExp("^("+B.join("|")+")$"))}});const m={};let _;Ks(t.transformTags,function(D,W){let B;typeof D=="function"?B=D:typeof D=="string"&&(B=Do.simpleTransform(D)),W==="*"?_=B:m[W]=B});let g,R,I,b,v,T,L=!1;P();const w=new tTe.Parser({onopentag:function(D,W){if(t.enforceHtmlBoundary&&D==="html"&&P(),v){T++;return}const B=new s(D,W);R.push(B);let ae=!1;const Re=!!B.text;let $e;if(ir(m,D)&&($e=m[D](D,W),B.attribs=W=$e.attribs,$e.text!==void 0&&(B.innerText=$e.text),D!==$e.tagName&&(B.name=D=$e.tagName,b[g]=$e.tagName)),_&&($e=_(D,W),B.attribs=W=$e.attribs,D!==$e.tagName&&(B.name=D=$e.tagName,b[g]=$e.tagName)),(!o(D)||t.disallowedTagsMode==="recursiveEscape"&&!iTe(I)||t.nestingLimit!=null&&g>=t.nestingLimit)&&(ae=!0,I[g]=!0,t.disallowedTagsMode==="discard"&&i.indexOf(D)!==-1&&(v=!0,T=1),I[g]=!0),g++,ae){if(t.disallowedTagsMode==="discard")return;a=r,r=""}r+="<"+D,D==="script"&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(B.innerText=""),(!u||ir(u,D)||u["*"])&&Ks(W,function(he,ye){if(!lTe.test(ye)){delete B.attribs[ye];return}if(he===""&&(t.nonBooleanAttributes.includes(ye)||t.nonBooleanAttributes.includes("*"))){delete B.attribs[ye];return}let Nt=!1;if(!u||ir(u,D)&&u[D].indexOf(ye)!==-1||u["*"]&&u["*"].indexOf(ye)!==-1||ir(c,D)&&c[D].test(ye)||c["*"]&&c["*"].test(ye))Nt=!0;else if(u&&u[D]){for(const xe of u[D])if(nTe(xe)&&xe.name&&xe.name===ye){Nt=!0;let He="";if(xe.multiple===!0){const at=he.split(" ");for(const X of at)xe.values.indexOf(X)!==-1&&(He===""?He=X:He+=" "+X)}else xe.values.indexOf(he)>=0&&(He=he);he=He}}if(Nt){if(t.allowedSchemesAppliedToAttributes.indexOf(ye)!==-1&&G(D,he)){delete B.attribs[ye];return}if(D==="script"&&ye==="src"){let xe=!0;try{const He=z(he);if(t.allowedScriptHostnames||t.allowedScriptDomains){const at=(t.allowedScriptHostnames||[]).find(function(me){return me===He.url.hostname}),X=(t.allowedScriptDomains||[]).find(function(me){return He.url.hostname===me||He.url.hostname.endsWith(`.${me}`)});xe=at||X}}catch{xe=!1}if(!xe){delete B.attribs[ye];return}}if(D==="iframe"&&ye==="src"){let xe=!0;try{const He=z(he);if(He.isRelativeUrl)xe=ir(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const at=(t.allowedIframeHostnames||[]).find(function(me){return me===He.url.hostname}),X=(t.allowedIframeDomains||[]).find(function(me){return He.url.hostname===me||He.url.hostname.endsWith(`.${me}`)});xe=at||X}}catch{xe=!1}if(!xe){delete B.attribs[ye];return}}if(ye==="srcset")try{let xe=rTe(he);if(xe.forEach(function(He){G("srcset",He.url)&&(He.evil=!0)}),xe=I_(xe,function(He){return!He.evil}),xe.length)he=uTe(I_(xe,function(He){return!He.evil})),B.attribs[ye]=he;else{delete B.attribs[ye];return}}catch{delete B.attribs[ye];return}if(ye==="class"){const xe=l[D],He=l["*"],at=f[D],X=d[D],me=f["*"],de=[at,me].concat(X).filter(function(Se){return Se});if(xe&&He?he=te(he,O_(xe,He),de):he=te(he,xe||He,de),!he.length){delete B.attribs[ye];return}}if(ye==="style"){if(t.parseStyleAttributes)try{const xe=aTe(D+" {"+he+"}"),He=k(xe,t.allowedStyles);if(he=Z(He),he.length===0){delete B.attribs[ye];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+D+" {"+he+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete B.attribs[ye];return}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}r+=" "+ye,he&&he.length&&(r+='="'+j(he,!0)+'"')}else delete B.attribs[ye]}),t.selfClosing.indexOf(D)!==-1?r+=" />":(r+=">",B.innerText&&!Re&&!t.textFilter&&(r+=j(B.innerText),L=!0)),ae&&(r=a+j(r),a="")},ontext:function(D){if(v)return;const W=R[R.length-1];let B;if(W&&(B=W.tag,D=W.innerText!==void 0?W.innerText:D),t.disallowedTagsMode==="discard"&&(B==="script"||B==="style"))r+=D;else{const ae=j(D,!1);t.textFilter&&!L?r+=t.textFilter(ae,B):L||(r+=ae)}if(R.length){const ae=R[R.length-1];ae.text+=D}},onclosetag:function(D,W){if(v)if(T--,!T)v=!1;else return;const B=R.pop();if(!B)return;if(B.tag!==D){R.push(B);return}v=t.enforceHtmlBoundary?D==="html":!1,g--;const ae=I[g];if(ae){if(delete I[g],t.disallowedTagsMode==="discard"){B.updateParentNodeText();return}a=r,r=""}if(b[g]&&(D=b[g],delete b[g]),t.exclusiveFilter&&t.exclusiveFilter(B)){r=r.substr(0,B.tagPosition);return}if(B.updateParentNodeMediaChildren(),B.updateParentNodeText(),t.selfClosing.indexOf(D)!==-1||W&&!o(D)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0){ae&&(r=a,a="");return}r+=""+D+">",ae&&(r=a+j(r),a=""),L=!1}},t.parser);return w.write(e),w.end(),r;function P(){r="",g=0,R=[],I={},b={},v=!1,T=0}function j(D,W){return typeof D!="string"&&(D=D+""),t.parser.decodeEntities&&(D=D.replace(/&/g,"&").replace(//g,">"),W&&(D=D.replace(/"/g,"""))),D=D.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),W&&(D=D.replace(/"/g,""")),D}function G(D,W){for(W=W.replace(/[\x00-\x20]+/g,"");;){const Re=W.indexOf("",Re+4);if($e===-1)break;W=W.substring(0,Re)+W.substring($e+3)}const B=W.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!B)return W.match(/^[/\\]{2}/)?!t.allowProtocolRelative:!1;const ae=B[1].toLowerCase();return ir(t.allowedSchemesByTag,D)?t.allowedSchemesByTag[D].indexOf(ae)===-1:!t.allowedSchemes||t.allowedSchemes.indexOf(ae)===-1}function z(D){if(D=D.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),D.startsWith("relative:"))throw new Error("relative: exploit attempt");let W="relative://relative-site";for(let Re=0;Re<100;Re++)W+=`/${Re}`;const B=new URL(D,W);return{isRelativeUrl:B&&B.hostname==="relative-site"&&B.protocol==="relative:",url:B}}function k(D,W){if(!W)return D;const B=D.nodes[0];let ae;return W[B.selector]&&W["*"]?ae=O_(W[B.selector],W["*"]):ae=W[B.selector]||W["*"],ae&&(D.nodes[0].nodes=B.nodes.reduce(ee(ae),[])),D}function Z(D){return D.nodes[0].nodes.reduce(function(W,B){return W.push(`${B.prop}:${B.value}${B.important?" !important":""}`),W},[]).join(";")}function ee(D){return function(W,B){return ir(D,B.prop)&&D[B.prop].some(function(Re){return Re.test(B.value)})&&W.push(B),W}}function te(D,W,B){return W?(D=D.split(/\s+/),D.filter(function(ae){return W.indexOf(ae)!==-1||B.some(function(Re){return Re.test(ae)})}).join(" ")):D}}const dTe={decodeEntities:!0};Do.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0};Do.simpleTransform=function(e,t,n){return n=n===void 0?!0:n,t=t||{},function(r,a){let s;if(n)for(s in t)a[s]=t[s];else a=t;return{tagName:e,attribs:a}}};const fTe=Ud(cTe),Po=e=>fTe(G_e(e,{target:"_blank"}),{allowedTags:["a"],disallowedTagsMode:"escape"}),pTe=e=>(ut("data-v-a720b26e"),e=e(),ct(),e),mTe={id:"admin-app",class:"admin-card"},_Te=["onSubmit"],ETe={for:"admin_contact"},hTe=["value"],TTe=["disabled"],gTe={for:"max_users"},ATe=["disabled"],STe={class:"user-limit-help"},OTe={class:"info-box"},ITe=pTe(()=>p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),vTe={for:"max_single_file_size"},bTe=["disabled"],RTe={for:"max_zip_file_size"},NTe=["disabled"],yTe={for:"gpx_limit_import"},CTe=["disabled"],DTe={class:"about-label",for:"about"},PTe={class:"textarea-description"},wTe=["innerHTML"],LTe={class:"privacy-policy-label",for:"privacy_policy"},$Te={class:"textarea-description"},kTe=["innerHTML"],UTe={key:5,class:"form-buttons"},MTe={class:"confirm",type:"submit"},xTe=["onClick"],FTe={key:6,class:"form-buttons"},WTe=Q({__name:"AdminApplication",props:{appConfig:{},edition:{type:Boolean,default:!1}},setup(e){const t=e,{edition:n}=Te(t),r=Me(),a=Kr(),s=zt({admin_contact:"",max_users:0,max_single_file_size:0,max_zip_file_size:0,gpx_limit_import:0,about:"",privacy_policy:""}),o=$(()=>r.getters[V.GETTERS.ERROR_MESSAGES]);bt(()=>{t.appConfig&&i(t.appConfig)});function i(l){Object.keys(s).map(f=>{["max_single_file_size","max_zip_file_size"].includes(f)?s[f]=l_e(l[f]):["about","privacy_policy"].includes(f)?s[f]=l[f]!==null?l[f]:"":s[f]=l[f]})}function u(){i(t.appConfig),r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),a.push("/admin/application")}function c(){const l=Object.assign({},s);l.max_single_file_size*=1048576,l.max_zip_file_size*=1048576,r.dispatch(V.ACTIONS.UPDATE_APPLICATION_CONFIG,l)}return(l,f)=>{const d=ue("ErrorMessage"),m=ue("Card");return A(),N("div",mTe,[U(m,null,{title:pe(()=>[K(h(l.$t("admin.APP_CONFIG.TITLE")),1)]),content:pe(()=>[p("form",{class:"admin-form",onSubmit:Ze(c,["prevent"])},[p("label",ETe,[K(h(l.$t("admin.APP_CONFIG.ADMIN_CONTACT"))+": ",1),!E(n)&&!s.admin_contact?(A(),N("input",{key:0,class:"no-contact",value:l.$t("admin.APP_CONFIG.NO_CONTACT_EMAIL"),disabled:""},null,8,hTe)):Xe((A(),N("input",{key:1,id:"admin_contact",name:"admin_contact",type:"email","onUpdate:modelValue":f[0]||(f[0]=_=>s.admin_contact=_),disabled:!E(n)},null,8,TTe)),[[nt,s.admin_contact]])]),p("label",gTe,[K(h(l.$t("admin.APP_CONFIG.MAX_USERS_LABEL"))+": ",1),Xe(p("input",{id:"max_users",name:"max_users",type:"number",min:"0","onUpdate:modelValue":f[1]||(f[1]=_=>s.max_users=_),disabled:!E(n)},null,8,ATe),[[nt,s.max_users]])]),p("div",STe,[p("span",OTe,[ITe,K(" "+h(l.$t("admin.APP_CONFIG.MAX_USERS_HELP")),1)])]),p("label",vTe,[K(h(l.$t("admin.APP_CONFIG.SINGLE_UPLOAD_MAX_SIZE_LABEL"))+": ",1),Xe(p("input",{id:"max_single_file_size",name:"max_single_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":f[2]||(f[2]=_=>s.max_single_file_size=_),disabled:!E(n)},null,8,bTe),[[nt,s.max_single_file_size]])]),p("label",RTe,[K(h(l.$t("admin.APP_CONFIG.ZIP_UPLOAD_MAX_SIZE_LABEL"))+": ",1),Xe(p("input",{id:"max_zip_file_size",name:"max_zip_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":f[3]||(f[3]=_=>s.max_zip_file_size=_),disabled:!E(n)},null,8,NTe),[[nt,s.max_zip_file_size]])]),p("label",yTe,[K(h(l.$t("admin.APP_CONFIG.MAX_FILES_IN_ZIP_LABEL"))+": ",1),Xe(p("input",{id:"gpx_limit_import",name:"gpx_limit_import",type:"number",min:"0","onUpdate:modelValue":f[4]||(f[4]=_=>s.gpx_limit_import=_),disabled:!E(n)},null,8,CTe),[[nt,s.gpx_limit_import]])]),p("label",DTe,h(l.$t("admin.ABOUT.TEXT"))+": ",1),p("span",PTe,h(l.$t("admin.ABOUT.DESCRIPTION")),1),E(n)?Xe((A(),N("textarea",{key:0,id:"about",name:"about",rows:"10","onUpdate:modelValue":f[5]||(f[5]=_=>s.about=_)},null,512)),[[nt,s.about]]):(A(),N("div",{key:1,innerHTML:E(ma)(E(Po)(s.about?s.about:l.$t("admin.NO_TEXT_ENTERED"))),class:"textarea-content"},null,8,wTe)),p("label",LTe,h(gt(l.$t("privacy_policy.TITLE")))+": ",1),p("span",$Te,h(l.$t("admin.PRIVACY_POLICY_DESCRIPTION")),1),E(n)?Xe((A(),N("textarea",{key:2,id:"privacy_policy",name:"privacy_policy",rows:"20","onUpdate:modelValue":f[6]||(f[6]=_=>s.privacy_policy=_)},null,512)),[[nt,s.privacy_policy]]):(A(),N("div",{key:3,innerHTML:E(ma)(E(Po)(s.privacy_policy?s.privacy_policy:l.$t("admin.NO_TEXT_ENTERED"))),class:"textarea-content"},null,8,kTe)),o.value?(A(),re(d,{key:4,message:o.value},null,8,["message"])):x("",!0),E(n)?(A(),N("div",UTe,[p("button",MTe,h(l.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:Ze(u,["prevent"])},h(l.$t("buttons.CANCEL")),9,xTe)])):(A(),N("div",FTe,[p("button",{class:"confirm",onClick:f[7]||(f[7]=Ze(_=>l.$router.push("/admin/application/edit"),["prevent"]))},h(l.$t("buttons.EDIT")),1),p("button",{class:"cancel",onClick:f[8]||(f[8]=Ze(_=>l.$router.push("/admin"),["prevent"]))},h(l.$t("admin.BACK_TO_ADMIN")),1)]))],40,_Te)]),_:1})])}}});const v_=se(WTe,[["__scopeId","data-v-a720b26e"]]),GTe={class:"stat-card"},zTe={class:"stat-content box"},BTe={class:"stat-icon"},HTe={class:"stat-details"},jTe={class:"stat-huge"},VTe={class:"stat"},dr=Q({__name:"StatCard",props:{icon:{},text:{},value:{}},setup(e){const t=e,{icon:n,text:r,value:a}=Te(t);return(s,o)=>(A(),N("div",GTe,[p("div",zTe,[p("div",BTe,[p("i",{class:Ae(["fa",`fa-${E(n)}`])},null,2)]),p("div",HTe,[p("div",jTe,h(E(a)),1),p("div",VTe,h(E(r)),1)])])]))}});const KTe={id:"user-stats"},YTe=Q({__name:"AppStatsCards",props:{appStatistics:{}},setup(e){const t=e,{appStatistics:n}=Te(t),r=$(()=>ST(n.value.uploads_dir_size));return(a,s)=>(A(),N("div",KTe,[U(dr,{icon:"users",value:E(n).users,text:a.$t("admin.USER",E(n).users)},null,8,["value","text"]),U(dr,{icon:"tags",value:E(n).sports,text:a.$t("workouts.SPORT",E(n).sports)},null,8,["value","text"]),U(dr,{icon:"calendar",value:E(n).workouts,text:a.$t("workouts.WORKOUT",E(n).workouts)},null,8,["value","text"]),U(dr,{icon:"folder-open",value:r.value.size,text:r.value.suffix},null,8,["value","text"])]))}});const Gg=e=>(ut("data-v-efcd2677"),e=e(),ct(),e),qTe={id:"admin-menu",class:"center-card"},XTe={class:"admin-menu description-list"},ZTe={class:"application-config-details"},QTe=Gg(()=>p("br",null,null,-1)),JTe={class:"registration-status"},ege={key:0,class:"email-sending-status"},tge=Gg(()=>p("i",{class:"fa fa-exclamation-triangle","aria-hidden":"true"},null,-1)),nge=Q({__name:"AdminMenu",props:{appConfig:{},appStatistics:{default:()=>({})}},setup(e){const t=e,{appConfig:n,appStatistics:r}=Te(t);return St(()=>{const a=document.getElementById("adminLink");a&&a.focus()}),(a,s)=>{const o=ue("router-link");return A(),N("div",qTe,[U(lT,null,{title:pe(()=>[K(h(a.$t("admin.ADMINISTRATION")),1)]),content:pe(()=>[U(YTe,{appStatistics:E(r)},null,8,["appStatistics"]),p("div",XTe,[p("dl",null,[p("dt",null,[U(o,{id:"adminLink",to:"/admin/application"},{default:pe(()=>[K(h(a.$t("admin.APPLICATION")),1)]),_:1})]),p("dd",ZTe,[K(h(a.$t("admin.UPDATE_APPLICATION_DESCRIPTION")),1),QTe,p("span",JTe,h(a.$t(`admin.REGISTRATION_${E(n).is_registration_enabled?"ENABLED":"DISABLED"}`)),1),E(n).is_email_sending_enabled?x("",!0):(A(),N("span",ege,[tge,K(" "+h(a.$t("admin.EMAIL_SENDING_DISABLED")),1)]))]),p("dt",null,[U(o,{to:"/admin/sports"},{default:pe(()=>[K(h(gt(a.$t("workouts.SPORT",0))),1)]),_:1})]),p("dd",null,h(a.$t("admin.ENABLE_DISABLE_SPORTS")),1),p("dt",null,[U(o,{to:"/admin/users"},{default:pe(()=>[K(h(gt(a.$t("admin.USER",0))),1)]),_:1})]),p("dd",null,h(a.$t("admin.ADMIN_RIGHTS_DELETE_USER_ACCOUNT")),1)])])]),_:1})])}}});const rge=se(nge,[["__scopeId","data-v-efcd2677"]]),e0={"Cycling (Sport)":"#4c9792","Cycling (Transport)":"#88af98","Cycling (Virtual)":"#64a360",Hiking:"#bb757c","Mountain Biking":"#d4b371","Mountain Biking (Electric)":"#fc9d6f",Mountaineering:"#48b3b7","Open Water Swimming":"#4058a4",Paragliding:"#c23c50",Rowing:"#fcce72",Running:"#835b83","Skiing (Alpine)":"#67a4bd","Skiing (Cross Country)":"#9498d0",Snowshoes:"#5780a8",Trail:"#09a98a",Walking:"#838383"},age=e=>{const t={};return e.map(n=>t[n.id]=n.color?n.color:e0[n.label]),t},sge=(e,t)=>{const n=e.translatedLabel.toLowerCase(),r=t.translatedLabel.toLowerCase();return n>r?1:ne.filter(a=>n==="all"?!0:r.includes(a.id)||a[n]).map(a=>({...a,translatedLabel:t(`sports.${a.label}.LABEL`)})).sort(sge),t0=(e,t)=>t.filter(n=>n.id===e.sport_id).map(n=>n.label)[0],n0=(e,t)=>t.filter(n=>n.id===e.sport_id).map(n=>n.color)[0],gc=e=>(ut("data-v-203d96b8"),e=e(),ct(),e),oge={id:"admin-sports",class:"admin-card"},ige={class:"responsive-table"},uge=gc(()=>p("th",null,"#",-1)),cge={class:"text-left"},lge={class:"text-left sport-action"},dge=gc(()=>p("th",null,null,-1)),fge={class:"text-center"},pge=gc(()=>p("span",{class:"cell-heading"},"id",-1)),mge={class:"cell-heading"},_ge={class:"sport-label"},Ege={class:"cell-heading"},hge={class:"text-center"},Tge={class:"cell-heading"},gge={class:"sport-action"},Age={class:"cell-heading"},Sge={class:"action-button"},Oge=["onClick"],Ige={key:0,class:"has-workouts"},vge=gc(()=>p("i",{class:"fa fa-warning","aria-hidden":"true"},null,-1)),bge=Q({__name:"AdminSports",setup(e){const{t}=Vt(),n=Me(),r=$(()=>qr(n.getters[Mt.GETTERS.SPORTS],t)),a=$(()=>n.getters[V.GETTERS.ERROR_MESSAGES]);function s(o,i){n.dispatch(Mt.ACTIONS.UPDATE_SPORTS,{id:o,isActive:i})}return(o,i)=>{const u=ue("SportImage"),c=ue("ErrorMessage"),l=ue("Card");return A(),N("div",oge,[U(l,null,{title:pe(()=>[K(h(o.$t("admin.SPORTS.TITLE")),1)]),content:pe(()=>[p("button",{class:"top-button",onClick:i[0]||(i[0]=Ze(f=>o.$router.push("/admin"),["prevent"]))},h(o.$t("admin.BACK_TO_ADMIN")),1),p("div",ige,[p("table",null,[p("thead",null,[p("tr",null,[uge,p("th",null,h(o.$t("admin.SPORTS.TABLE.IMAGE")),1),p("th",cge,h(o.$t("admin.SPORTS.TABLE.LABEL")),1),p("th",null,h(o.$t("admin.SPORTS.TABLE.ACTIVE")),1),p("th",lge,h(o.$t("admin.ACTION")),1),dge])]),p("tbody",null,[(A(!0),N(ve,null,ze(r.value,f=>(A(),N("tr",{key:f.id},[p("td",fge,[pge,K(" "+h(f.id),1)]),p("td",null,[p("span",mge,h(o.$t("admin.SPORTS.TABLE.IMAGE")),1),U(u,{title:f.translatedLabel,"sport-label":f.label,color:f.color},null,8,["title","sport-label","color"])]),p("td",_ge,[p("span",Ege,h(o.$t("admin.SPORTS.TABLE.LABEL")),1),K(" "+h(f.translatedLabel),1)]),p("td",hge,[p("span",Tge,h(o.$t("admin.SPORTS.TABLE.ACTIVE")),1),p("i",{class:Ae(`fa fa${f.is_active?"-check":""}`),"aria-hidden":"true"},null,2)]),p("td",gge,[p("span",Age,h(o.$t("admin.ACTION")),1),p("div",Sge,[p("button",{class:Ae({danger:f.is_active}),onClick:d=>s(f.id,!f.is_active)},h(o.$t(`buttons.${f.is_active?"DIS":"EN"}ABLE`)),11,Oge),f.has_workouts?(A(),N("span",Ige,[vge,K(" "+h(o.$t("admin.SPORTS.TABLE.HAS_WORKOUTS")),1)])):x("",!0)])])]))),128))])]),a.value?(A(),re(c,{key:0,message:a.value},null,8,["message"])):x("",!0),p("button",{onClick:i[1]||(i[1]=Ze(f=>o.$router.push("/admin"),["prevent"]))},h(o.$t("admin.BACK_TO_ADMIN")),1)])]),_:1})])}}});const Rge=se(bge,[["__scopeId","data-v-203d96b8"]]),Nge={class:"table-selects"},yge=["value"],Cge=["value"],Dge=["value"],Pge=["value"],wge=["value"],Lge=["value"],$ge=Q({__name:"FilterSelects",props:{order_by:{},query:{},sort:{},message:{}},emits:["updateSelect"],setup(e,{emit:t}){const n=e,r=t,{order_by:a,query:s,sort:o,message:i}=Te(n),u=[10,25,50,100];function c(l){r("updateSelect",l.target.id,l.target.value)}return(l,f)=>(A(),N("div",Nge,[p("label",null,[K(h(l.$t("common.SELECTS.ORDER_BY.LABEL"))+": ",1),p("select",{name:"order_by",id:"order_by",value:E(s).order_by,onChange:c},[(A(!0),N(ve,null,ze(E(a),d=>(A(),N("option",{value:d,key:d},h(l.$t(`${E(i)}.${d.toUpperCase()}`)),9,Cge))),128))],40,yge)]),p("label",null,[K(h(l.$t("common.SELECTS.ORDER.LABEL"))+": ",1),p("select",{name:"order",id:"order",value:E(s).order,onChange:c},[(A(!0),N(ve,null,ze(E(o),d=>(A(),N("option",{value:d,key:d},h(l.$t(`common.SELECTS.ORDER.${d.toUpperCase()}`)),9,Pge))),128))],40,Dge)]),p("label",null,[K(h(l.$t("common.SELECTS.PER_PAGE.LABEL"))+": ",1),p("select",{name:"per_page",id:"per_page",value:E(s).per_page,onChange:c},[(A(),N(ve,null,ze(u,d=>p("option",{value:d,key:d},h(d),9,Lge)),64))],40,wge)])]))}});const zg=se($ge,[["__scopeId","data-v-fc86ab3c"]]),r0=["asc","desc"],Bg=1,kge=10,Rd=(e,t)=>e&&typeof e=="string"&&+e>0?+e:t,b_=(e,t,n)=>e&&typeof e=="string"&&t.includes(e)?e:n,Nd=(e,t,n,r)=>{const s=(r||{}).defaultSort||"asc",o={};return o.page=Rd(e.page,Bg),o.per_page=Rd(e.per_page,kge),o.order=b_(e.order,r0,s),o.order_by=b_(e.order_by,t,n),typeof e.q=="string"?o.q=e.q:delete o.q,o},Uge=["from","to","ave_speed_from","ave_speed_to","max_speed_from","max_speed_to","distance_from","distance_to","duration_from","duration_to","sport_id","title"],wa=(e,t=1)=>Array.from({length:e-t+1},(n,r)=>t+r),Mge=(e,t)=>{if(e<0)return[];if(e<9)return wa(e);let n=[1,2];return t<4?n=n.concat([3,4,5]):t<6?n=n.concat(wa(t+2,3)):(n=n.concat(["..."]),t=e-2&&+n[n.length-1](ut("data-v-b6235e81"),e=e(),ct(),e),xge={class:"pagination-center","aria-label":"navigation"},Fge={class:"pagination"},Wge=Hg(()=>p("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1)),Gge={key:0},zge=Hg(()=>p("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1)),Bge=Q({__name:"Pagination",props:{pagination:{},path:{},query:{}},setup(e){const t=e,{pagination:n,path:r,query:a}=Te(t);function s(o,i){const u=Object.assign({},a.value);return u.page=i?o+i:o,u}return(o,i)=>{const u=ue("router-link");return A(),N("nav",xge,[p("ul",Fge,[p("li",{class:Ae(["page-prev",{disabled:!E(n).has_prev}])},[U(u,{class:"page-link",to:{path:E(r),query:s(E(n).page,-1)},disabled:!E(n).has_prev,tabindex:E(n).has_prev?0:-1},{default:pe(({navigate:c})=>[Qa(o.$slots,"default",{onClick:l=>E(n).has_next?c:null},()=>[K(h(o.$t("api.PAGINATION.PREVIOUS"))+" ",1),Wge],!0)]),_:3},8,["to","disabled","tabindex"])],2),(A(!0),N(ve,null,ze(E(Mge)(E(n).pages,E(n).page),c=>(A(),N("li",{key:c,class:Ae(["page",{active:c===E(n).page}])},[c==="..."?(A(),N("span",Gge," ... ")):(A(),re(u,{key:1,class:"page-link",to:{path:E(r),query:s(+c)}},{default:pe(()=>[K(h(c),1)]),_:2},1032,["to"]))],2))),128)),p("li",{class:Ae(["page-next",{disabled:!E(n).has_next}])},[U(u,{class:"page-link",to:{path:E(r),query:s(E(n).page,1)},disabled:!E(n).has_next,tabindex:E(n).has_next?0:-1},{default:pe(({navigate:c})=>[Qa(o.$slots,"default",{onClick:l=>E(n).has_next?c:null},()=>[K(h(o.$t("api.PAGINATION.NEXT"))+" ",1),zge],!0)]),_:3},8,["to","disabled","tabindex"])],2)])])}}});const $u=se(Bge,[["__scopeId","data-v-b6235e81"]]),Hge={class:"users-filters"},jge={class:"search-username"},Vge=["onKeyup","placeholder"],Kge=Q({__name:"UsersNameFilter",emits:["filterOnUsername"],setup(e,{emit:t}){const n=Kt(),r=le(n.query.q?n.query.q:""),a=t;function s(){r.value!==""&&a("filterOnUsername",r)}function o(){r.value="",a("filterOnUsername",r.value)}return(i,u)=>(A(),N("div",Hge,[p("div",jge,[Xe(p("input",{id:"username",name:"username","onUpdate:modelValue":u[0]||(u[0]=c=>r.value=c),onKeyup:Ot(s,["enter"]),placeholder:i.$t("user.FILTER_ON_USERNAME")},null,40,Vge),[[nt,r.value,void 0,{trim:!0}]]),r.value!==""?(A(),N("i",{key:0,class:"fa fa-times","aria-hidden":"true",onClick:o})):x("",!0)]),p("i",{class:Ae(["fa fa-search",{"fa-disabled":r.value===""}]),"aria-hidden":"true",onClick:s},null,2)]))}});const Yge=se(Kge,[["__scopeId","data-v-553040c7"]]);var yd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}e.exports=t.default})(yd,yd.exports);var qge=yd.exports;const Xge=Ud(qge);var Cd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}e.exports=t.default})(Cd,Cd.exports);var Zge=Cd.exports;const R_=Ud(Zge);function Qge(e,t){var n=nAe(t);return n.formatToParts?eAe(n,e):tAe(n,e)}var Jge={year:0,month:1,day:2,hour:3,minute:4,second:5};function eAe(e,t){try{for(var n=e.formatToParts(t),r=[],a=0;a=0&&(r[s]=parseInt(n[a].value,10))}return r}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function tAe(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var nl={};function nAe(e){if(!nl[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="06/25/2014 00:00:00";nl[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return nl[e]}function jg(e,t,n,r,a,s,o){var i=new Date(0);return i.setUTCFullYear(e,t,n),i.setUTCHours(r,a,s,o),i}var N_=36e5,rAe=6e4,rl={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function Vg(e,t,n){var r,a;if(!e||(r=rl.timezoneZ.exec(e),r))return 0;var s;if(r=rl.timezoneHH.exec(e),r)return s=parseInt(r[1],10),y_(s)?-(s*N_):NaN;if(r=rl.timezoneHHMM.exec(e),r){s=parseInt(r[1],10);var o=parseInt(r[2],10);return y_(s,o)?(a=Math.abs(s)*N_+o*rAe,s>0?-a:a):NaN}if(oAe(e)){t=new Date(t||Date.now());var i=n?t:aAe(t),u=Dd(i,e),c=n?u:sAe(t,u,e);return-c}return NaN}function aAe(e){return jg(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Dd(e,t){var n=Qge(e,t),r=jg(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),a=e.getTime(),s=a%1e3;return a-=s>=0?s:1e3+s,r-a}function sAe(e,t,n){var r=e.getTime(),a=r-t,s=Dd(new Date(a),n);if(t===s)return t;a-=s-t;var o=Dd(new Date(a),n);return s===o?s:Math.max(s,o)}function y_(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var C_={};function oAe(e){if(C_[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),C_[e]=!0,!0}catch{return!1}}var iAe=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,al=36e5,D_=6e4,uAe=2,en={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:iAe};function cAe(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?uAe:Xge(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=lAe(e),s=dAe(a.date,r),o=s.year,i=s.restDateString,u=fAe(i,o);if(isNaN(u))return new Date(NaN);if(u){var c=u.getTime(),l=0,f;if(a.time&&(l=pAe(a.time),isNaN(l)))return new Date(NaN);if(a.timeZone||n.timeZone){if(f=Vg(a.timeZone||n.timeZone,new Date(c+l)),isNaN(f))return new Date(NaN)}else f=R_(new Date(c+l)),f=R_(new Date(c+l+f));return new Date(c+l+f)}else return new Date(NaN)}function lAe(e){var t={},n=en.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=en.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var a=en.timeZone.exec(r);a?(t.time=r.replace(a[1],""),t.timeZone=a[1].trim()):t.time=r}return t}function dAe(e,t){var n=en.YYY[t],r=en.YYYYY[t],a;if(a=en.YYYY.exec(e)||r.exec(e),a){var s=a[1];return{year:parseInt(s,10),restDateString:e.slice(s.length)}}if(a=en.YY.exec(e)||n.exec(e),a){var o=a[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}return{year:null}}function fAe(e,t){if(t===null)return null;var n,r,a,s;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=en.MM.exec(e),n)return r=new Date(0),a=parseInt(n[1],10)-1,w_(t,a)?(r.setUTCFullYear(t,a),r):new Date(NaN);if(n=en.DDD.exec(e),n){r=new Date(0);var o=parseInt(n[1],10);return EAe(t,o)?(r.setUTCFullYear(t,0,o),r):new Date(NaN)}if(n=en.MMDD.exec(e),n){r=new Date(0),a=parseInt(n[1],10)-1;var i=parseInt(n[2],10);return w_(t,a,i)?(r.setUTCFullYear(t,a,i),r):new Date(NaN)}if(n=en.Www.exec(e),n)return s=parseInt(n[1],10)-1,L_(t,s)?P_(t,s):new Date(NaN);if(n=en.WwwD.exec(e),n){s=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return L_(t,s,u)?P_(t,s,u):new Date(NaN)}return null}function pAe(e){var t,n,r;if(t=en.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),sl(n)?n%24*al:NaN;if(t=en.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),sl(n,r)?n%24*al+r*D_:NaN;if(t=en.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return sl(n,r,a)?n%24*al+r*D_+a*1e3:NaN}return null}function P_(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,s=t*7+n+1-a;return r.setUTCDate(r.getUTCDate()+s),r}var mAe=[31,28,31,30,31,30,31,31,30,31,30,31],_Ae=[31,29,31,30,31,30,31,31,30,31,30,31];function Kg(e){return e%400===0||e%4===0&&e%100!==0}function w_(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=Kg(e);if(r&&n>_Ae[t]||!r&&n>mAe[t])return!1}return!0}function EAe(e,t){if(t<1)return!1;var n=Kg(e);return!(n&&t>366||!n&&t>365)}function L_(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function sl(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}function hAe(e,t,n){var r=cAe(e,n),a=Vg(t,r,!0),s=new Date(r.getTime()-a),o=new Date(0);return o.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),o.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),o}const{locale:ku}=Aa.global,TAe=(e,t,n)=>{switch(e){case"week":return tc(t,{weekStartsOn:n?1:0});case"year":return hf(t);case"month":return Bo(t);default:throw new Error(`Invalid duration, expected: "week", "month", "year", got: "${e}"`)}},gAe=(e,t)=>{switch(e){case"week":return Go(t,7);case"year":return ou(t,1);case"month":return rs(t,1);default:throw new Error(`Invalid duration, expected: "week", "month", "year", got: "${e}"`)}},Ac=(e,t)=>hAe(new Date(e),t),$_=(e,t)=>{const n=Bo(e),r=zo(e),a=t?1:0;return{start:tc(n,{weekStartsOn:a}),end:Tf(r,{weekStartsOn:a})}},Yg=(e,t=null,n=null)=>(t||(t="yyyy/MM/dd"),t=Oa(t,ku.value),n||(n="HH:mm"),{workout_date:dn(e,t,{locale:Ho[ku.value]}),workout_time:dn(e,n)}),AAe=["MM/dd/yyyy","dd/MM/yyyy","yyyy-MM-dd","date_string"],qg={de:"do MMM yyyy",en:"MMM. do, yyyy",es:"d MMM yyyy",fr:"d MMM yyyy",gl:"d MMM yyyy",it:"d MMM yyyy",pl:"d MMM yyyy",nb:"do MMM yyyy",nl:"d MMM yyyy"},Oa=(e,t)=>e==="date_string"?qg[t]:e,xn=(e,t,n,r=!0,a=null,s=!1)=>{a||(a=ku.value);const o=r?s?" HH:mm:ss":" HH:mm":"";return dn(Ac(e,t),`${Oa(n,a)}${o}`,{locale:Ho[a]})},SAe=(e,t,n=null)=>{const r=n||ku.value,a=[];return AAe.map(s=>{const o=Oa(s,r);a.push({label:`${o} - ${xn(e,t,o,!1,r)}`,value:s})}),a},OAe=e=>(ut("data-v-4beb3bfa"),e=e(),ct(),e),IAe={id:"admin-users",class:"admin-card"},vAe={key:0,class:"no-users"},bAe={key:1,class:"responsive-table"},RAe=OAe(()=>p("th",null,"#",-1)),NAe={class:"left-text"},yAe={class:"left-text"},CAe={class:"left-text"},DAe={class:"cell-heading"},PAe={class:"cell-heading"},wAe={class:"cell-heading"},LAe={class:"cell-heading"},$Ae={class:"text-center"},kAe={class:"cell-heading"},UAe={class:"text-center"},MAe={class:"cell-heading"},xAe={class:"text-center"},FAe={class:"cell-heading"},WAe={class:"text-center"},GAe={class:"cell-heading"},zAe=["disabled","onClick"],k_="created_at",BAe=Q({__name:"AdminUsers",setup(e){const t=Me(),n=Kt(),r=Kr(),a=["is_active","admin","created_at","username","workouts_count"];let s=zt(Nd(n.query,a,k_));const o=$(()=>t.getters[Y.GETTERS.AUTH_USER_PROFILE]),i=$(()=>t.getters[we.GETTERS.USERS]),u=$(()=>t.getters[we.GETTERS.USERS_PAGINATION]),c=$(()=>t.getters[V.GETTERS.ERROR_MESSAGES]);bt(()=>l(s));function l(_){t.dispatch(we.ACTIONS.GET_USERS,_)}function f(_){m("q",_.value)}function d(_,g){t.dispatch(we.ACTIONS.UPDATE_USER,{username:_,admin:g})}function m(_,g){s[_]=g,_==="per_page"&&(s.page=1),r.push({path:"/admin/users",query:s})}return Rt(()=>{t.dispatch(we.ACTIONS.EMPTY_USERS)}),Be(()=>n.query,_=>{s=Nd(_,a,k_,{query:s}),l(s)}),(_,g)=>{const R=ue("router-link"),I=ue("ErrorMessage"),b=ue("Card");return A(),N("div",IAe,[U(b,null,{title:pe(()=>[K(h(gt(_.$t("admin.USER",0))),1)]),content:pe(()=>[p("button",{class:"top-button",onClick:g[0]||(g[0]=Ze(v=>_.$router.push("/admin"),["prevent"]))},h(_.$t("admin.BACK_TO_ADMIN")),1),U(Yge,{onFilterOnUsername:f}),U(zg,{sort:E(r0),order_by:a,query:E(s),message:"admin.USERS.SELECTS.ORDER_BY",onUpdateSelect:m},null,8,["sort","query"]),i.value.length===0?(A(),N("div",vAe,h(_.$t("user.NO_USERS_FOUND")),1)):(A(),N("div",bAe,[p("table",null,[p("thead",null,[p("tr",null,[RAe,p("th",NAe,h(_.$t("user.USERNAME")),1),p("th",yAe,h(_.$t("user.EMAIL")),1),p("th",CAe,h(_.$t("user.PROFILE.REGISTRATION_DATE")),1),p("th",null,h(gt(_.$t("workouts.WORKOUT",0))),1),p("th",null,h(_.$t("admin.ACTIVE")),1),p("th",null,h(_.$t("user.ADMIN")),1),p("th",null,h(_.$t("admin.ACTION")),1)])]),p("tbody",null,[(A(!0),N(ve,null,ze(i.value,v=>(A(),N("tr",{key:v.username},[p("td",null,[p("span",DAe,h(_.$t("user.PROFILE.PICTURE")),1),U(Wo,{user:v},null,8,["user"])]),p("td",null,[p("span",PAe,h(_.$t("user.USERNAME")),1),U(R,{to:`/admin/users/${v.username}`},{default:pe(()=>[K(h(v.username),1)]),_:2},1032,["to"])]),p("td",null,[p("span",wAe,h(_.$t("user.EMAIL")),1),K(" "+h(v.email),1)]),p("td",null,[p("span",LAe,h(_.$t("user.PROFILE.REGISTRATION_DATE")),1),p("time",null,h(E(xn)(v.created_at,o.value.timezone,o.value.date_format)),1)]),p("td",$Ae,[p("span",kAe,h(gt(_.$t("workouts.WORKOUT",0))),1),K(" "+h(v.nb_workouts),1)]),p("td",UAe,[p("span",MAe,h(_.$t("admin.ACTIVE")),1),p("i",{class:Ae(`fa fa${v.is_active?"-check":""}-square-o`),"aria-hidden":"true"},null,2)]),p("td",xAe,[p("span",FAe,h(_.$t("user.ADMIN")),1),p("i",{class:Ae(`fa fa${v.admin?"-check":""}-square-o`),"aria-hidden":"true"},null,2)]),p("td",WAe,[p("span",GAe,h(_.$t("admin.ACTION")),1),p("button",{class:Ae({danger:v.admin}),disabled:v.username===o.value.username,onClick:T=>d(v.username,!v.admin)},h(_.$t(`admin.USERS.TABLE.${v.admin?"REMOVE":"ADD"}_ADMIN_RIGHTS`)),11,zAe)])]))),128))])]),u.value.page?(A(),re($u,{key:0,path:"/admin/users",pagination:u.value,query:E(s)},null,8,["pagination","query"])):x("",!0),c.value?(A(),re(I,{key:1,message:c.value},null,8,["message"])):x("",!0),p("button",{onClick:g[1]||(g[1]=Ze(v=>_.$router.push("/admin"),["prevent"]))},h(_.$t("admin.BACK_TO_ADMIN")),1)]))]),_:1})])}}});const HAe=se(BAe,[["__scopeId","data-v-4beb3bfa"]]),jAe={class:"box user-header"},VAe={class:"user-details"},KAe={class:"user-name"},YAe={class:"user-stats"},qAe={class:"user-stat"},XAe={class:"stat-number"},ZAe={class:"stat-label"},QAe={class:"user-stat"},JAe={class:"stat-label"},eSe={class:"user-stat hide-small"},tSe={class:"stat-number"},nSe={class:"stat-label"},rSe=Q({__name:"UserHeader",props:{user:{}},setup(e){const t=e,{user:n}=Te(t),r=Me(),a=$(()=>r.getters[Y.GETTERS.AUTH_USER_PROFILE]);return(s,o)=>{const i=ue("Distance");return A(),N("div",jAe,[U(Wo,{user:E(n)},null,8,["user"]),p("div",VAe,[p("div",KAe,h(E(n).username),1),p("div",YAe,[p("div",qAe,[p("span",XAe,h(E(n).nb_workouts),1),p("span",ZAe,h(s.$t("workouts.WORKOUT",E(n).nb_workouts)),1)]),p("div",QAe,[U(i,{distance:E(n).total_distance,unitFrom:"km",digits:0,displayUnit:!1,useImperialUnits:a.value.imperial_units},null,8,["distance","useImperialUnits"]),p("span",JAe,h(a.value.imperial_units?"miles":"km"),1)]),p("div",eSe,[p("span",tSe,h(E(n).nb_sports),1),p("span",nSe,h(s.$t("workouts.SPORT",E(n).nb_sports)),1)])])])])}}});const Xg=se(rSe,[["__scopeId","data-v-3abb1646"]]),aSe={class:"profile-tabs custom-checkboxes-group"},sSe={class:"profile-tabs-checkboxes custom-checkboxes"},oSe=["id","name","checked","disabled","onInput"],iSe=["id","onKeydown"],Zg=Q({__name:"UserProfileTabs",props:{tabs:{},selectedTab:{},edition:{type:Boolean},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{tabs:n,selectedTab:r,disabled:a}=Te(t);St(()=>{const o=document.getElementById(`tab-${n.value[0]}`);o&&o.focus()});function s(o){switch(o){case"ACCOUNT":case"PICTURE":case"PRIVACY-POLICY":return`/profile/edit/${o.toLocaleLowerCase()}`;case"APPS":case"PREFERENCES":case"SPORTS":return`/profile${t.edition?"/edit":""}/${o.toLocaleLowerCase()}`;default:case"PROFILE":return`/profile${t.edition?"/edit":""}`}}return(o,i)=>(A(),N("div",aSe,[p("div",sSe,[(A(!0),N(ve,null,ze(E(n),u=>(A(),N("div",{class:"profile-tab custom-checkbox",key:u},[p("label",null,[p("input",{type:"radio",id:u,name:u,checked:E(r).split("/")[0]===u,disabled:E(a),onInput:c=>o.$router.push(s(u))},null,40,oSe),p("span",{id:`tab-${u}`,tabindex:0,role:"button",onKeydown:Ot(c=>o.$router.push(s(u)),["enter"])},h(o.$t(`user.PROFILE.TABS.${u}`)),41,iSe)])]))),128))])]))}});const uSe={id:"user-profile"},cSe={class:"box"},lSe=Q({__name:"index",props:{user:{},tab:{}},setup(e){const t=e,{user:n,tab:r}=Te(t),a=["PROFILE","PREFERENCES","SPORTS","APPS"];return(s,o)=>{const i=ue("router-view");return A(),N("div",uSe,[U(Xg,{user:E(n)},null,8,["user"]),p("div",cSe,[U(Zg,{tabs:a,selectedTab:E(r),edition:!1},null,8,["selectedTab"]),U(i,{user:E(n)},null,8,["user"])])])}}});const dSe=se(lSe,[["__scopeId","data-v-8a058d49"]]),fSe={id:"user-infos",class:"description-list"},pSe={key:1,class:"info-box success-message"},mSe={key:4,class:"email-form form-box"},_Se={class:"form-items",for:"email"},ESe={class:"form-items",for:"email"},hSe={class:"form-buttons"},TSe={class:"confirm",type:"submit"},gSe=["onClick"],ASe={key:5},SSe={key:0},OSe={class:"user-bio"},ISe={key:0,class:"profile-buttons"},vSe=["onClick"],bSe={key:1,class:"profile-buttons"},RSe=Q({__name:"UserInfos",props:{user:{},fromAdmin:{type:Boolean,default:!1}},setup(e){const t=e,n=Me(),{user:r,fromAdmin:a}=Te(t),s=$(()=>n.getters[V.GETTERS.LANGUAGE]),o=$(()=>n.getters[Y.GETTERS.AUTH_USER_PROFILE]),i=$(()=>t.user.created_at?xn(t.user.created_at,o.value.timezone,o.value.date_format):""),u=$(()=>t.user.birth_date?dn(new Date(t.user.birth_date),`${Oa(o.value.date_format,s.value)}`,{locale:Ho[s.value]}):""),c=$(()=>n.getters[we.GETTERS.USERS_IS_SUCCESS]),l=$(()=>n.getters[V.GETTERS.ERROR_MESSAGES]),f=$(()=>n.getters[V.GETTERS.APP_CONFIG]),d=le(""),m=le(!1),_=le(!1),g=le(""),R=le("");function I(G){d.value=G,G!==""&&n.commit(we.MUTATIONS.UPDATE_IS_SUCCESS,!1)}function b(G){n.dispatch(we.ACTIONS.DELETE_USER_ACCOUNT,{username:G})}function v(G){R.value="password-reset",n.dispatch(we.ACTIONS.UPDATE_USER,{username:G,resetPassword:!0})}function T(G){n.dispatch(we.ACTIONS.UPDATE_USER,{username:G,activate:!0})}function L(){j(),g.value=r.value.email_to_confirm?r.value.email_to_confirm:"",_.value=!0,R.value="email-update"}function w(){g.value="",_.value=!1}function P(G){n.dispatch(we.ACTIONS.UPDATE_USER,{username:G,new_email:g.value})}function j(){n.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),n.commit(we.MUTATIONS.UPDATE_IS_SUCCESS,!1),R.value=""}return Rt(()=>j()),Be(()=>c.value,G=>{G&&(I(""),w())}),(G,z)=>{const k=ue("Modal"),Z=ue("AlertMessage"),ee=ue("ErrorMessage");return A(),N("div",fSe,[d.value?(A(),re(k,{key:0,title:G.$t("common.CONFIRMATION"),message:d.value==="delete"?"admin.CONFIRM_USER_ACCOUNT_DELETION":"admin.CONFIRM_USER_PASSWORD_RESET",strongMessage:E(r).username,onConfirmAction:z[0]||(z[0]=te=>d.value==="delete"?b(E(r).username):v(E(r).username)),onCancelAction:z[1]||(z[1]=te=>I("")),onKeydown:z[2]||(z[2]=Ot(te=>I(""),["esc"]))},null,8,["title","message","strongMessage"])):x("",!0),c.value?(A(),N("div",pSe,h(G.$t(`admin.${R.value==="password-reset"?"PASSWORD_RESET":"USER_EMAIL_UPDATE"}_SUCCESSFUL`)),1)):x("",!0),E(r).is_active?x("",!0):(A(),re(Z,{key:2,message:"user.THIS_USER_ACCOUNT_IS_INACTIVE"})),l.value?(A(),re(ee,{key:3,message:l.value},null,8,["message"])):x("",!0),_.value?(A(),N("div",mSe,[p("form",{class:Ae({errors:m.value}),onSubmit:z[5]||(z[5]=Ze(te=>P(E(r).username),["prevent"]))},[p("label",_Se,[K(h(G.$t("admin.CURRENT_EMAIL"))+" ",1),Xe(p("input",{id:"email",type:"email","onUpdate:modelValue":z[3]||(z[3]=te=>E(r).email=te),disabled:""},null,512),[[nt,E(r).email]])]),p("label",ESe,[K(h(G.$t("admin.NEW_EMAIL"))+"* ",1),Xe(p("input",{id:"new-email",type:"email",required:"","onUpdate:modelValue":z[4]||(z[4]=te=>g.value=te)},null,512),[[nt,g.value]])]),p("div",hSe,[p("button",TSe,h(G.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:Ze(w,["prevent"])},h(G.$t("buttons.CANCEL")),9,gSe)])],34)])):(A(),N("div",ASe,[p("dl",null,[p("dt",null,h(G.$t("user.PROFILE.REGISTRATION_DATE"))+":",1),p("dd",null,[p("time",null,h(i.value),1)]),p("dt",null,h(G.$t("user.PROFILE.FIRST_NAME"))+":",1),p("dd",null,h(E(r).first_name),1),p("dt",null,h(G.$t("user.PROFILE.LAST_NAME"))+":",1),p("dd",null,h(E(r).last_name),1),p("dt",null,h(G.$t("user.PROFILE.BIRTH_DATE"))+":",1),p("dd",null,[u.value?(A(),N("time",SSe,h(u.value),1)):x("",!0)]),p("dt",null,h(G.$t("user.PROFILE.LOCATION"))+":",1),p("dd",null,h(E(r).location),1),p("dt",null,h(G.$t("user.PROFILE.BIO"))+":",1),p("dd",OSe,h(E(r).bio),1)]),E(a)?(A(),N("div",ISe,[o.value.username!==E(r).username?(A(),N("button",{key:0,class:"danger",onClick:z[6]||(z[6]=Ze(te=>I("delete"),["prevent"]))},h(G.$t("admin.DELETE_USER")),1)):x("",!0),E(r).is_active?x("",!0):(A(),N("button",{key:1,onClick:z[7]||(z[7]=Ze(te=>T(E(r).username),["prevent"]))},h(G.$t("admin.ACTIVATE_USER_ACCOUNT")),1)),o.value.username!==E(r).username?(A(),N("button",{key:2,onClick:Ze(L,["prevent"])},h(G.$t("admin.UPDATE_USER_EMAIL")),9,vSe)):x("",!0),o.value.username!==E(r).username&&f.value.is_email_sending_enabled?(A(),N("button",{key:3,onClick:z[8]||(z[8]=Ze(te=>I("reset"),["prevent"]))},h(G.$t("admin.RESET_USER_PASSWORD")),1)):x("",!0),p("button",{onClick:z[9]||(z[9]=te=>G.$router.go(-1))},h(G.$t("buttons.BACK")),1)])):(A(),N("div",bSe,[p("button",{onClick:z[10]||(z[10]=te=>G.$router.push("/profile/edit"))},h(G.$t("user.PROFILE.EDIT")),1),p("button",{onClick:z[11]||(z[11]=te=>G.$router.push("/"))},h(G.$t("common.HOME")),1)]))]))])}}});const Qg=se(RSe,[["__scopeId","data-v-98220281"]]),NSe=e=>(ut("data-v-ef8bf615"),e=e(),ct(),e),ySe={id:"user-preferences",class:"description-list"},CSe={class:"preferences-section"},DSe={class:"preferences-section"},PSe={class:"info-box raw-speed-help"},wSe=NSe(()=>p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),LSe={class:"profile-buttons"},$Se=Q({__name:"UserPreferences",props:{user:{}},setup(e){const t=e,n=Me(),r=$(()=>n.getters[V.GETTERS.LANGUAGE]),a=$(()=>t.user.language?Yl[t.user.language]:Yl.en),s=$(()=>t.user.weekm?"MONDAY":"SUNDAY"),o=$(()=>t.user.timezone?t.user.timezone:"Europe/Paris"),i=$(()=>t.user.date_format?t.user.date_format:"MM/dd/yyyy"),u=$(()=>t.user.display_ascent?"DISPLAYED":"HIDDEN");return(c,l)=>(A(),N("div",ySe,[p("div",CSe,h(c.$t("user.PROFILE.INTERFACE")),1),p("dl",null,[p("dt",null,h(c.$t("user.PROFILE.LANGUAGE"))+":",1),p("dd",null,h(a.value),1),p("dt",null,h(c.$t("user.PROFILE.TIMEZONE"))+":",1),p("dd",null,h(o.value),1),p("dt",null,h(c.$t("user.PROFILE.DATE_FORMAT"))+":",1),p("dd",null,h(E(Oa)(i.value,r.value)),1),p("dt",null,h(c.$t("user.PROFILE.FIRST_DAY_OF_WEEK"))+":",1),p("dd",null,h(c.$t(`user.PROFILE.${s.value}`)),1)]),p("div",DSe,h(c.$t("workouts.WORKOUT",0)),1),p("dl",null,[p("dt",null,h(c.$t("user.PROFILE.UNITS.LABEL"))+":",1),p("dd",null,h(c.$t(`user.PROFILE.UNITS.${c.user.imperial_units?"IMPERIAL":"METRIC"}`)),1),p("dt",null,h(c.$t("user.PROFILE.ASCENT_DATA"))+":",1),p("dd",null,h(c.$t(`common.${u.value}`)),1),p("dt",null,h(c.$t("user.PROFILE.ELEVATION_CHART_START.LABEL"))+":",1),p("dd",null,h(c.$t(`user.PROFILE.ELEVATION_CHART_START.${c.user.start_elevation_at_zero?"ZERO":"MIN_ALT"}`)),1),p("dt",null,h(c.$t("user.PROFILE.USE_RAW_GPX_SPEED.LABEL"))+":",1),p("dd",null,h(c.$t(`user.PROFILE.USE_RAW_GPX_SPEED.${c.user.use_raw_gpx_speed?"RAW_SPEED":"FILTERED_SPEED"}`)),1),p("div",PSe,[p("span",null,[wSe,K(" "+h(c.$t("user.PROFILE.USE_RAW_GPX_SPEED.HELP")),1)])])]),p("div",LSe,[p("button",{onClick:l[0]||(l[0]=f=>c.$router.push("/profile/edit/preferences"))},h(c.$t("user.PROFILE.EDIT_PREFERENCES")),1),p("button",{onClick:l[1]||(l[1]=f=>c.$router.push("/"))},h(c.$t("common.HOME")),1)])]))}});const kSe=se($Se,[["__scopeId","data-v-ef8bf615"]]),USe={id:"user-profile-edition",class:"center-card"},MSe=Q({__name:"index",props:{user:{},tab:{}},setup(e){const t=e,n=Me(),{user:r,tab:a}=Te(t),s=["PROFILE","ACCOUNT","PICTURE","PREFERENCES","SPORTS","PRIVACY-POLICY"],o=$(()=>n.getters[Y.GETTERS.USER_LOADING]);return(i,u)=>{const c=ue("router-view"),l=ue("Card");return A(),N("div",USe,[U(l,null,{title:pe(()=>[K(h(i.$t(`user.PROFILE.${E(a)}_EDITION`)),1)]),content:pe(()=>[U(Zg,{tabs:s,selectedTab:E(a),edition:!0,disabled:o.value},null,8,["selectedTab","disabled"]),U(c,{user:E(r)},null,8,["user"])]),_:1})])}}}),oo=new Map,xSe=e=>{const{method:t,url:n,params:r={},data:a={}}=e;return[t,n,JSON.stringify(r),JSON.stringify(a)].join("")},Ts=e=>{const t=xSe(e);if(oo.has(t)){const n=oo.get(t)||{};n==null||n.abort(),oo.delete(t)}return t},wr=e1.create({baseURL:Fo()});wr.interceptors.request.use(e=>{const t=new AbortController;e.signal=t.signal;const n=Ts(e);return oo.set(n,t),e},e=>Promise.reject(e));wr.interceptors.response.use(e=>(Ts(e.config),e),e=>(e.message!=="canceled"&&e.response&&Ts(e.response.config),Promise.reject(e)));const Jg=(e,t)=>{e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.delete(`users/${t.username}`).then(n=>{n.status===204?t.fromAdmin?Tt.push("/admin/users"):e.dispatch(Y.ACTIONS.LOGOUT).then(()=>Tt.push("/")):Ee(e,null)}).catch(n=>Ee(e,n))},FSe={[we.ACTIONS.EMPTY_USER](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(we.MUTATIONS.UPDATE_USER,{})},[we.ACTIONS.EMPTY_USERS](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(we.MUTATIONS.UPDATE_USERS,[]),e.commit(we.MUTATIONS.UPDATE_USERS_PAGINATION,{})},[we.ACTIONS.GET_USER](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(we.MUTATIONS.UPDATE_USERS_LOADING,!0),je.get(`users/${t}`).then(n=>{n.data.status==="success"?e.commit(we.MUTATIONS.UPDATE_USER,n.data.data.users[0]):Ee(e,null)}).catch(n=>Ee(e,n)).finally(()=>e.commit(we.MUTATIONS.UPDATE_USERS_LOADING,!1))},[we.ACTIONS.GET_USERS](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(we.MUTATIONS.UPDATE_USERS_LOADING,!0),je.get("users",{params:t}).then(n=>{n.data.status==="success"?(e.commit(we.MUTATIONS.UPDATE_USERS,n.data.data.users),e.commit(we.MUTATIONS.UPDATE_USERS_PAGINATION,n.data.pagination)):Ee(e,null)}).catch(n=>Ee(e,n)).finally(()=>e.commit(we.MUTATIONS.UPDATE_USERS_LOADING,!1))},[we.ACTIONS.UPDATE_USER](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(we.MUTATIONS.UPDATE_IS_SUCCESS,!1);const n={};t.admin!==void 0&&(n.admin=t.admin),t.resetPassword&&(n.reset_password=t.resetPassword),t.activate&&(n.activate=t.activate),t.new_email!==void 0&&(n.new_email=t.new_email),je.patch(`users/${t.username}`,n).then(r=>{r.data.status==="success"?(e.commit(we.MUTATIONS.UPDATE_USER_IN_USERS,r.data.data.users[0]),(t.resetPassword||t.new_email)&&e.commit(we.MUTATIONS.UPDATE_IS_SUCCESS,!0),(t.activate||t.new_email)&&e.commit(we.MUTATIONS.UPDATE_USER,r.data.data.users[0])):Ee(e,null)}).catch(r=>Ee(e,r)).finally(()=>e.commit(we.MUTATIONS.UPDATE_USERS_LOADING,!1))},[we.ACTIONS.DELETE_USER_ACCOUNT](e,t){Jg(e,{username:t.username,fromAdmin:!0})}},vi=e=>{localStorage.removeItem("authToken"),e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Br.MUTATIONS.EMPTY_USER_STATS),e.commit(Y.MUTATIONS.CLEAR_AUTH_USER_TOKEN),e.commit(we.MUTATIONS.UPDATE_USERS,[]),e.commit(ge.MUTATIONS.EMPTY_WORKOUTS),e.commit(ge.MUTATIONS.EMPTY_WORKOUT),Tt.push("/login")},WSe={[Y.ACTIONS.CHECK_AUTH_USER](e){window.localStorage.authToken&&!e.getters[Y.GETTERS.IS_AUTHENTICATED]&&(e.commit(Y.MUTATIONS.UPDATE_AUTH_TOKEN,window.localStorage.authToken),e.dispatch(Y.ACTIONS.GET_USER_PROFILE)),!window.localStorage.authToken&&e.getters[Y.GETTERS.IS_AUTHENTICATED]&&vi(e)},[Y.ACTIONS.CONFIRM_ACCOUNT](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),wr.post("auth/account/confirm",{token:t.token}).then(n=>{if(n.data.status==="success"){const r=n.data.auth_token;window.localStorage.setItem("authToken",r),e.commit(Y.MUTATIONS.UPDATE_AUTH_TOKEN,r),e.dispatch(Y.ACTIONS.GET_USER_PROFILE).then(()=>Tt.push("/"))}else Ee(e,null)}).catch(n=>{Ee(e,n)})},[Y.ACTIONS.CONFIRM_EMAIL](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_IS_SUCCESS,!1),wr.post("/auth/email/update",{token:t.token}).then(n=>{n.data.status==="success"?(e.commit(Y.MUTATIONS.UPDATE_IS_SUCCESS,!0),t.refreshUser&&e.dispatch(Y.ACTIONS.GET_USER_PROFILE).then(()=>Tt.push("/profile/edit/account")),Tt.push("/profile/edit/account")):Ee(e,null)}).catch(n=>{Ee(e,n)})},[Y.ACTIONS.GET_USER_PROFILE](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get("auth/profile").then(t=>{t.data.status==="success"?(e.commit(Y.MUTATIONS.UPDATE_AUTH_USER_PROFILE,t.data.data),t.data.data.accepted_privacy_policy||e.dispatch(V.ACTIONS.GET_APPLICATION_PRIVACY_POLICY),t.data.data.language&&e.dispatch(V.ACTIONS.UPDATE_APPLICATION_LANGUAGE,t.data.data.language),e.dispatch(Mt.ACTIONS.GET_SPORTS)):(Ee(e,null),vi(e))}).catch(t=>{t.message!=="canceled"&&(Ee(e,t),vi(e))})},[Y.ACTIONS.LOGIN_OR_REGISTER](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS,!1),wr.post(`/auth/${t.actionType}`,t.formData).then(n=>{if(n.data.status==="success")if(t.actionType==="login"){const r=n.data.auth_token;window.localStorage.setItem("authToken",r),e.commit(Y.MUTATIONS.UPDATE_AUTH_TOKEN,r),e.dispatch(Y.ACTIONS.GET_USER_PROFILE).then(()=>Tt.push(typeof t.redirectUrl=="string"?t.redirectUrl:"/"))}else Tt.push("/login").then(()=>e.commit(Y.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS,!0));else Ee(e,null)}).catch(n=>Ee(e,n))},[Y.ACTIONS.LOGOUT](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.post("auth/logout").then(t=>{t.data.status==="success"?vi(e):Ee(e,null)}).catch(t=>Ee(e,t))},[Y.ACTIONS.UPDATE_USER_PROFILE](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!0),je.post("auth/profile/edit",t).then(n=>{n.data.status==="success"?(e.commit(Y.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),Tt.push("/profile")):Ee(e,null)}).catch(n=>Ee(e,n)).finally(()=>e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1))},[Y.ACTIONS.UPDATE_USER_ACCOUNT](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!0),e.commit(Y.MUTATIONS.UPDATE_IS_SUCCESS,!1),je.patch("auth/profile/edit/account",t).then(n=>{n.data.status==="success"?(e.commit(Y.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),e.commit(Y.MUTATIONS.UPDATE_IS_SUCCESS,!0)):Ee(e,null)}).catch(n=>Ee(e,n)).finally(()=>e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1))},[Y.ACTIONS.UPDATE_USER_PREFERENCES](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!0),je.post("auth/profile/edit/preferences",t).then(n=>{n.data.status==="success"?(e.commit(Y.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),e.dispatch(V.ACTIONS.UPDATE_APPLICATION_LANGUAGE,n.data.data.language).then(()=>Tt.push("/profile/preferences"))):Ee(e,null)}).catch(n=>Ee(e,n)).finally(()=>e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1))},[Y.ACTIONS.RESET_USER_SPORT_PREFERENCES](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!0),je.delete(`auth/profile/reset/sports/${t}`).then(n=>{n.status===204?e.dispatch(Mt.ACTIONS.GET_SPORTS):Ee(e,null)}).catch(n=>{Ee(e,n),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1)})},[Y.ACTIONS.UPDATE_USER_SPORT_PREFERENCES](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!0),je.post("auth/profile/edit/sports",t).then(n=>{n.data.status==="success"?e.dispatch(Mt.ACTIONS.GET_SPORTS):Ee(e,null)}).catch(n=>{Ee(e,n),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1)})},[Y.ACTIONS.UPDATE_USER_PICTURE](e,t){if(e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!0),!t.picture)throw new Error("No file part");const n=new FormData;n.append("file",t.picture),je.post("auth/picture",n,{headers:{"content-type":"multipart/form-data"}}).then(r=>{r.data.status==="success"?e.dispatch(Y.ACTIONS.GET_USER_PROFILE).then(()=>Tt.push("/profile")):Ee(e,null)}).catch(r=>Ee(e,r)).finally(()=>e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1))},[Y.ACTIONS.DELETE_ACCOUNT](e,t){Jg(e,t)},[Y.ACTIONS.DELETE_PICTURE](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!0),je.delete("auth/picture").then(t=>{t.status===204?e.dispatch(Y.ACTIONS.GET_USER_PROFILE).then(()=>Tt.push("/profile")):Ee(e,null)}).catch(t=>Ee(e,t)).finally(()=>e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1))},[Y.ACTIONS.SEND_PASSWORD_RESET_REQUEST](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),wr.post("auth/password/reset-request",t).then(n=>{n.data.status==="success"?Tt.push("/password-reset/sent"):Ee(e,null)}).catch(n=>Ee(e,n))},[Y.ACTIONS.RESEND_ACCOUNT_CONFIRMATION_EMAIL](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),wr.post("auth/account/resend-confirmation",t).then(n=>{n.data.status==="success"?Tt.push("/account-confirmation/email-sent"):Ee(e,null)}).catch(n=>Ee(e,n))},[Y.ACTIONS.RESET_USER_PASSWORD](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),wr.post("auth/password/update",t).then(n=>{n.data.status==="success"?Tt.push("/password-reset/password-updated"):Ee(e,null)}).catch(n=>Ee(e,n))},[Y.ACTIONS.ACCEPT_PRIVACY_POLICY](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.post("auth/account/privacy-policy",{accepted_policy:t}).then(n=>{n.data.status==="success"?e.dispatch(Y.ACTIONS.GET_USER_PROFILE).then(()=>Tt.push("/profile")):Ee(e,null)}).catch(n=>Ee(e,n))},[Y.ACTIONS.REQUEST_DATA_EXPORT](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.post("auth/account/export/request").then(t=>{t.data.status==="success"?e.commit(Y.MUTATIONS.SET_EXPORT_REQUEST,t.data.request):Ee(e,null)}).catch(t=>Ee(e,t))},[Y.ACTIONS.GET_REQUEST_DATA_EXPORT](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get("auth/account/export").then(t=>{t.data.status==="success"?e.commit(Y.MUTATIONS.SET_EXPORT_REQUEST,t.data.request):Ee(e,null)}).catch(t=>Ee(e,t))}},GSe={[Y.GETTERS.AUTH_TOKEN]:e=>e.authToken,[Y.GETTERS.AUTH_USER_PROFILE]:e=>e.authUserProfile,[Y.GETTERS.EXPORT_REQUEST]:e=>e.exportRequest,[Y.GETTERS.IS_AUTHENTICATED]:e=>e.authToken!==null,[Y.GETTERS.IS_ADMIN]:e=>e.authUserProfile&&e.authUserProfile.admin,[Y.GETTERS.IS_REGISTRATION_SUCCESS]:e=>e.isRegistrationSuccess,[Y.GETTERS.IS_SUCCESS]:e=>e.isSuccess,[Y.GETTERS.USER_LOADING]:e=>e.loading},zSe={[Y.MUTATIONS.CLEAR_AUTH_USER_TOKEN](e){e.authToken=null,e.authUserProfile={}},[Y.MUTATIONS.UPDATE_AUTH_TOKEN](e,t){e.authToken=t},[Y.MUTATIONS.UPDATE_AUTH_USER_PROFILE](e,t){e.authUserProfile=t},[Y.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS](e,t){e.isRegistrationSuccess=t},[Y.MUTATIONS.UPDATE_IS_SUCCESS](e,t){e.isSuccess=t},[Y.MUTATIONS.UPDATE_USER_LOADING](e,t){e.loading=t},[Y.MUTATIONS.SET_EXPORT_REQUEST](e,t){e.exportRequest=t}},BSe={authToken:null,authUserProfile:{},isSuccess:!1,isRegistrationSuccess:!1,loading:!1,exportRequest:null},HSe={state:BSe,actions:WSe,getters:GSe,mutations:zSe},U_=(e,t)=>{e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get(t).then(n=>{n.data.status==="success"?e.commit(Ke.MUTATIONS.SET_CLIENT,n.data.data.client):Ee(e,null)}).catch(n=>Ee(e,n))},jSe={[Ke.ACTIONS.AUTHORIZE_CLIENT](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES);const n=new FormData;n.set("client_id",t.client_id),n.set("response_type",t.response_type),n.set("scope",t.scope),n.set("confirm","true"),t.state&&n.set("state",t.state),t.code_challenge&&n.set("code_challenge",t.code_challenge),t.code_challenge_method&&n.set("code_challenge_method",t.code_challenge_method),je.post("oauth/authorize",n,{headers:{"Content-Type":"multipart/form-data"}}).then(r=>{r.status==200&&r.data.redirect_url?window.location.href=r.data.redirect_url:Ee(e,null)}).catch(r=>Ee(e,r))},[Ke.ACTIONS.CREATE_CLIENT](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.post("oauth/apps",t).then(n=>{n.data.status==="created"?(e.commit(Ke.MUTATIONS.SET_CLIENT,n.data.data.client),Tt.push(`/profile/apps/${n.data.data.client.id}/created`)):Ee(e,null)}).catch(n=>Ee(e,n))},[Ke.ACTIONS.DELETE_CLIENT](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.delete(`oauth/apps/${t}`).then(n=>{n.status===204?e.dispatch(Ke.ACTIONS.GET_CLIENTS).then(()=>Tt.push("/profile/apps")):Ee(e,null)}).catch(n=>Ee(e,n))},[Ke.ACTIONS.GET_CLIENT_BY_CLIENT_ID](e,t){U_(e,`oauth/apps/${t}`)},[Ke.ACTIONS.GET_CLIENT_BY_ID](e,t){U_(e,`oauth/apps/${t}/by_id`)},[Ke.ACTIONS.GET_CLIENTS](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get("oauth/apps",{params:t}).then(n=>{n.data.status==="success"?(e.commit(Ke.MUTATIONS.SET_CLIENTS,n.data.data.clients),e.commit(Ke.MUTATIONS.SET_CLIENTS_PAGINATION,n.data.pagination)):Ee(e,null)}).catch(n=>Ee(e,n))},[Ke.ACTIONS.REVOKE_ALL_TOKENS](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Ke.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!1),je.post(`oauth/apps/${t}/revoke`).then(n=>{n.data.status==="success"?e.commit(Ke.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!0):Ee(e,null)}).catch(n=>Ee(e,n))}},VSe={[Ke.GETTERS.CLIENT]:e=>e.client,[Ke.GETTERS.CLIENTS]:e=>e.clients,[Ke.GETTERS.CLIENTS_PAGINATION]:e=>e.pagination,[Ke.GETTERS.REVOCATION_SUCCESSFUL]:e=>e.revocationSuccessful},KSe={[Ke.MUTATIONS.SET_CLIENT](e,t){e.client=t},[Ke.MUTATIONS.EMPTY_CLIENT](e){e.client={}},[Ke.MUTATIONS.SET_CLIENTS](e,t){e.clients=t},[Ke.MUTATIONS.SET_CLIENTS_PAGINATION](e,t){e.pagination=t},[Ke.MUTATIONS.SET_REVOCATION_SUCCESSFUL](e,t){e.revocationSuccessful=t}},YSe={client:{},clients:[],pagination:{},revocationSuccessful:!1},qSe={state:YSe,actions:jSe,getters:VSe,mutations:KSe},{locale:XSe}=Aa.global,ZSe={[V.ACTIONS.GET_APPLICATION_CONFIG](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(V.MUTATIONS.UPDATE_APPLICATION_LOADING,!0),je.get("config").then(t=>{t.data.status==="success"?e.commit(V.MUTATIONS.UPDATE_APPLICATION_CONFIG,t.data.data):Ee(e,null)}).catch(t=>Ee(e,t)).finally(()=>e.commit(V.MUTATIONS.UPDATE_APPLICATION_LOADING,!1))},[V.ACTIONS.GET_APPLICATION_STATS](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get("stats/all").then(t=>{t.data.status==="success"?e.commit(V.MUTATIONS.UPDATE_APPLICATION_STATS,t.data.data):Ee(e,null)}).catch(t=>Ee(e,t))},[V.ACTIONS.GET_APPLICATION_PRIVACY_POLICY](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get("config").then(t=>{t.data.status==="success"?e.commit(V.MUTATIONS.UPDATE_APPLICATION_PRIVACY_POLICY,t.data.data):Ee(e,null)}).catch(t=>Ee(e,t))},[V.ACTIONS.UPDATE_APPLICATION_CONFIG](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.patch("config",t).then(n=>{n.data.status==="success"?(e.commit(V.MUTATIONS.UPDATE_APPLICATION_CONFIG,n.data.data),Tt.push("/admin/application")):Ee(e,null)}).catch(n=>Ee(e,n))},[V.ACTIONS.UPDATE_APPLICATION_LANGUAGE](e,t){var n;(n=document.querySelector("html"))==null||n.setAttribute("lang",t),e.commit(V.MUTATIONS.UPDATE_LANG,t),XSe.value=t}},QSe={[V.GETTERS.APP_CONFIG]:e=>e.application.config,[V.GETTERS.APP_LOADING]:e=>e.appLoading,[V.GETTERS.APP_STATS]:e=>e.application.statistics,[V.GETTERS.ERROR_MESSAGES]:e=>e.errorMessages,[V.GETTERS.LANGUAGE]:e=>e.language,[V.GETTERS.LOCALE]:e=>e.locale},JSe={[V.MUTATIONS.EMPTY_ERROR_MESSAGES](e){e.errorMessages=null},[V.MUTATIONS.SET_ERROR_MESSAGES](e,t){e.errorMessages=t},[V.MUTATIONS.UPDATE_APPLICATION_CONFIG](e,t){e.application.config=t},[V.MUTATIONS.UPDATE_APPLICATION_LOADING](e,t){e.appLoading=t},[V.MUTATIONS.UPDATE_APPLICATION_PRIVACY_POLICY](e,t){e.application.config.privacy_policy=t.privacy_policy,e.application.config.privacy_policy_date=t.privacy_policy_date},[V.MUTATIONS.UPDATE_APPLICATION_STATS](e,t){e.application.statistics=t},[V.MUTATIONS.UPDATE_LANG](e,t){e.language=t,e.locale=Ho[t]}},eOe={root:!0,language:"en",locale:nc,errorMessages:null,application:{statistics:{sports:0,uploads_dir_size:0,users:0,workouts:0}},appLoading:!1},tOe={[Mt.ACTIONS.GET_SPORTS](e){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get("sports").then(t=>{t.data.status==="success"?(e.commit(Mt.MUTATIONS.SET_SPORTS,t.data.data.sports),e.commit(Y.MUTATIONS.UPDATE_USER_LOADING,!1)):Ee(e,null)}).catch(t=>Ee(e,t))},[Mt.ACTIONS.UPDATE_SPORTS](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.patch(`sports/${t.id}`,{is_active:t.isActive}).then(n=>{n.data.status==="success"?e.dispatch(Mt.ACTIONS.GET_SPORTS):Ee(e,null)}).catch(n=>Ee(e,n))}},nOe={[Mt.GETTERS.SPORTS]:e=>e.sports},rOe={[Mt.MUTATIONS.SET_SPORTS](e,t){e.sports=t}},aOe={sports:[]},sOe={state:aOe,actions:tOe,getters:nOe,mutations:rOe},oOe={[Br.ACTIONS.GET_USER_STATS](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get(`stats/${t.username}/${t.filterType}`,{params:t.params}).then(n=>{n.data.status==="success"?e.commit(Br.MUTATIONS.UPDATE_USER_STATS,n.data.data.statistics):Ee(e,null)}).catch(n=>Ee(e,n))}},iOe={[Br.GETTERS.USER_STATS]:e=>e.statistics},uOe={[Br.MUTATIONS.UPDATE_USER_STATS](e,t){e.statistics=t},[Br.MUTATIONS.EMPTY_USER_STATS](e){e.statistics={}}},cOe={statistics:{}},lOe={state:cOe,actions:oOe,getters:iOe,mutations:uOe},dOe={[we.GETTERS.USER]:e=>e.user,[we.GETTERS.USERS]:e=>e.users,[we.GETTERS.USERS_IS_SUCCESS]:e=>e.isSuccess,[we.GETTERS.USERS_LOADING]:e=>e.loading,[we.GETTERS.USERS_PAGINATION]:e=>e.pagination},fOe={[we.MUTATIONS.UPDATE_USER](e,t){e.user=t},[we.MUTATIONS.UPDATE_USER_IN_USERS](e,t){e.users=e.users.map(n=>n.username===t.username?t:n)},[we.MUTATIONS.UPDATE_USERS](e,t){e.users=t},[we.MUTATIONS.UPDATE_USERS_LOADING](e,t){e.loading=t},[we.MUTATIONS.UPDATE_USERS_PAGINATION](e,t){e.pagination=t},[we.MUTATIONS.UPDATE_IS_SUCCESS](e,t){e.isSuccess=t}},pOe={user:{},users:[],loading:!1,isSuccess:!1,pagination:{}},mOe={state:pOe,actions:FSe,getters:dOe,mutations:fOe},bi=(e,t,n)=>{e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),je.get("workouts",{params:t}).then(r=>{r.data.status==="success"?(e.commit(ge.MUTATIONS[n],r.data.data.workouts),n===ia.SET_USER_WORKOUTS&&e.commit(ge.MUTATIONS.SET_WORKOUTS_PAGINATION,r.data.pagination)):Ee(e,null)}).catch(r=>Ee(e,r))},_Oe={[ge.ACTIONS.GET_CALENDAR_WORKOUTS](e,t){e.commit(ge.MUTATIONS.EMPTY_CALENDAR_WORKOUTS),bi(e,t,ia.SET_CALENDAR_WORKOUTS)},[ge.ACTIONS.GET_USER_WORKOUTS](e,t){bi(e,t,ia.SET_USER_WORKOUTS)},[ge.ACTIONS.GET_TIMELINE_WORKOUTS](e,t){bi(e,t,ia.SET_TIMELINE_WORKOUTS)},[ge.ACTIONS.GET_MORE_TIMELINE_WORKOUTS](e,t){bi(e,t,ia.ADD_TIMELINE_WORKOUTS)},[ge.ACTIONS.GET_WORKOUT_DATA](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!0);const n=t.segmentId?`/segment/${t.segmentId}`:"";je.get(`workouts/${t.workoutId}`).then(r=>{const a=r.data.data.workouts[0];if(r.data.status==="success"){if(t.segmentId&&(a.segments.length===0||!a.segments[+t.segmentId-1]))throw new Error("WORKOUT_NOT_FOUND");e.commit(ge.MUTATIONS.SET_WORKOUT,r.data.data.workouts[0]),r.data.data.workouts[0].with_gpx&&(je.get(`workouts/${t.workoutId}/chart_data${n}`).then(s=>{s.data.status==="success"&&e.commit(ge.MUTATIONS.SET_WORKOUT_CHART_DATA,s.data.data.chart_data)}),je.get(`workouts/${t.workoutId}/gpx${n}`).then(s=>{s.data.status==="success"&&e.commit(ge.MUTATIONS.SET_WORKOUT_GPX,s.data.data.gpx)}))}else e.commit(ge.MUTATIONS.EMPTY_WORKOUT),Ee(e,null)}).catch(r=>{e.commit(ge.MUTATIONS.EMPTY_WORKOUT),Ee(e,r)}).finally(()=>e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ge.ACTIONS.DELETE_WORKOUT](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!0),je.delete(`workouts/${t.workoutId}`).then(()=>{e.commit(ge.MUTATIONS.EMPTY_WORKOUT),e.dispatch(Y.ACTIONS.GET_USER_PROFILE),Tt.push("/")}).catch(n=>{Ee(e,n)}).finally(()=>e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ge.ACTIONS.EDIT_WORKOUT](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!0),je.patch(`workouts/${t.workoutId}`,t.data).then(()=>{e.dispatch(Y.ACTIONS.GET_USER_PROFILE),e.dispatch(ge.ACTIONS.GET_WORKOUT_DATA,{workoutId:t.workoutId}).then(()=>{Tt.push({name:"Workout",params:{workoutId:t.workoutId}})})}).catch(n=>{Ee(e,n)}).finally(()=>e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ge.ACTIONS.ADD_WORKOUT](e,t){if(e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!0),!t.file)throw new Error("No file part");const n=t.notes.replace(/"/g,'\\"'),r=new FormData;r.append("file",t.file),r.append("data",`{"sport_id": ${t.sport_id}, "notes": "${n}"}`),je.post("workouts",r,{headers:{"content-type":"multipart/form-data"}}).then(a=>{if(a.data.status==="created"){e.dispatch(Y.ACTIONS.GET_USER_PROFILE);const s=a.data.data.workouts[0];Tt.push(a.data.data.workouts.length===1?`/workouts/${s.id}`:"/")}}).catch(a=>{Ee(e,a)}).finally(()=>e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ge.ACTIONS.ADD_WORKOUT_WITHOUT_GPX](e,t){e.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!0),je.post("workouts/no_gpx",t).then(n=>{if(n.data.status==="created"){e.dispatch(Y.ACTIONS.GET_USER_PROFILE);const r=n.data.data.workouts[0];Tt.push(`/workouts/${r.id}`)}}).catch(n=>{Ee(e,n)}).finally(()=>e.commit(ge.MUTATIONS.SET_WORKOUT_LOADING,!1))}},EOe={[ge.GETTERS.CALENDAR_WORKOUTS]:e=>e.calendar_workouts,[ge.GETTERS.TIMELINE_WORKOUTS]:e=>e.timeline_workouts,[ge.GETTERS.USER_WORKOUTS]:e=>e.user_workouts,[ge.GETTERS.WORKOUT_DATA]:e=>e.workoutData,[ge.GETTERS.WORKOUTS_PAGINATION]:e=>e.pagination},hOe={[ge.MUTATIONS.ADD_TIMELINE_WORKOUTS](e,t){e.timeline_workouts=e.timeline_workouts.concat(t)},[ge.MUTATIONS.SET_CALENDAR_WORKOUTS](e,t){e.calendar_workouts=t},[ge.MUTATIONS.SET_TIMELINE_WORKOUTS](e,t){e.timeline_workouts=t},[ge.MUTATIONS.SET_USER_WORKOUTS](e,t){e.user_workouts=t},[ge.MUTATIONS.SET_WORKOUTS_PAGINATION](e,t){e.pagination=t},[ge.MUTATIONS.SET_WORKOUT](e,t){e.workoutData.workout=t},[ge.MUTATIONS.SET_WORKOUT_CHART_DATA](e,t){e.workoutData.chartData=t},[ge.MUTATIONS.SET_WORKOUT_GPX](e,t){e.workoutData.gpx=t},[ge.MUTATIONS.SET_WORKOUT_LOADING](e,t){e.workoutData.loading=t},[ge.MUTATIONS.EMPTY_CALENDAR_WORKOUTS](e){e.calendar_workouts=[]},[ge.MUTATIONS.EMPTY_WORKOUTS](e){e.calendar_workouts=[],e.user_workouts=[],e.timeline_workouts=[]},[ge.MUTATIONS.EMPTY_WORKOUT](e){e.workoutData={gpx:"",loading:!1,workout:{},chartData:[]}}},TOe={calendar_workouts:[],timeline_workouts:[],pagination:{},user_workouts:[],workoutData:{gpx:"",loading:!1,workout:{},chartData:[]}},gOe={state:TOe,actions:_Oe,getters:EOe,mutations:hOe},AOe={authUserModule:HSe,oAuthModule:qSe,sportsModule:sOe,statsModule:lOe,usersModule:mOe,workoutsModule:gOe},SOe={state:eOe,actions:ZSe,getters:QSe,mutations:JSe,modules:AOe},io=SR(SOe),a0=e1.create({baseURL:Fo()});a0.interceptors.request.use(e=>{const t=new AbortController;e.signal=t.signal;const n=Ts(e);oo.set(n,t);const r=io.getters[Y.GETTERS.AUTH_TOKEN];if(r){const a=`Bearer ${r}`;e.headers&&e.headers.Authorization!==a&&(e.headers.Authorization=`Bearer ${r}`)}return e},e=>Promise.reject(e));a0.interceptors.response.use(e=>(Ts(e.config),e),e=>(e.message!=="canceled"&&e.response&&Ts(e.response.config),Promise.reject(e)));const je=a0,Pd=(e,t)=>e.push.apply(e,t),gs=e=>e.sort((t,n)=>t.i-n.i||t.j-n.j),M_=e=>{const t={};let n=1;return e.forEach(r=>{t[r]=n,n+=1}),t};var OOe={4:[[1,2],[2,3]],5:[[1,3],[2,3],[2,4]],6:[[1,2],[2,4],[4,5]],7:[[1,3],[2,3],[4,5],[4,6]],8:[[2,4],[4,6]]};const x_=2050,F_=1e3,IOe=OOe,vOe=10,bOe=1e4,eA=10,tA=50,nA=20,rA=/^[A-Z\xbf-\xdf][^A-Z\xbf-\xdf]+$/,ROe=/^[^A-Z\xbf-\xdf]+[A-Z\xbf-\xdf]$/,NOe=/^[A-Z\xbf-\xdf]+$/,aA=/^[^a-z\xdf-\xff]+$/,yOe=/^[a-z\xdf-\xff]+$/,COe=/^[^A-Z\xbf-\xdf]+$/,DOe=/[a-z\xdf-\xff]/,POe=/[A-Z\xbf-\xdf]/,wOe=/[^A-Za-z\xbf-\xdf]/gi,LOe=/^\d+$/,s0=new Date().getFullYear(),$Oe={recentYear:/19\d\d|200\d|201\d|202\d/g},sA=[" ",",",";",":","|","/","\\","_",".","-"],kOe=sA.length;class UOe{match({password:t}){const n=[...this.getMatchesWithoutSeparator(t),...this.getMatchesWithSeparator(t)],r=this.filterNoise(n);return gs(r)}getMatchesWithSeparator(t){const n=[],r=/^(\d{1,4})([\s/\\_.-])(\d{1,2})\2(\d{1,4})$/;for(let a=0;a<=Math.abs(t.length-6);a+=1)for(let s=a+5;s<=a+9&&!(s>=t.length);s+=1){const o=t.slice(a,+s+1||9e9),i=r.exec(o);if(i!=null){const u=this.mapIntegersToDayMonthYear([parseInt(i[1],10),parseInt(i[3],10),parseInt(i[4],10)]);u!=null&&n.push({pattern:"date",token:o,i:a,j:s,separator:i[2],year:u.year,month:u.month,day:u.day})}}return n}getMatchesWithoutSeparator(t){const n=[],r=/^\d{4,8}$/,a=s=>Math.abs(s.year-s0);for(let s=0;s<=Math.abs(t.length-4);s+=1)for(let o=s+3;o<=s+7&&!(o>=t.length);o+=1){const i=t.slice(s,+o+1||9e9);if(r.exec(i)){const u=[],c=i.length;if(IOe[c].forEach(([f,d])=>{const m=this.mapIntegersToDayMonthYear([parseInt(i.slice(0,f),10),parseInt(i.slice(f,d),10),parseInt(i.slice(d),10)]);m!=null&&u.push(m)}),u.length>0){let f=u[0],d=a(u[0]);u.slice(1).forEach(m=>{const _=a(m);_{let r=!1;const a=t.length;for(let s=0;s=n.j){r=!0;break}}return!r})}mapIntegersToDayMonthYear(t){if(t[1]>31||t[1]<=0)return null;let n=0,r=0,a=0;for(let s=0,o=t.length;s99&&ix_)return null;i>31&&(r+=1),i>12&&(n+=1),i<=0&&(a+=1)}return r>=2||n===3||a>=2?null:this.getDayMonth(t)}getDayMonth(t){const n=[[t[2],t.slice(0,2)],[t[0],t.slice(1,3)]],r=n.length;for(let a=0;a=1&&s<=31&&o>=1&&o<=12)return{day:s,month:o}}return null}twoToFourDigitYear(t){return t>99?t:t>50?t+1900:t+2e3}}const cr=new Uint32Array(65536),MOe=(e,t)=>{const n=e.length,r=t.length,a=1<{const n=t.length,r=e.length,a=[],s=[],o=Math.ceil(n/32),i=Math.ceil(r/32);for(let _=0;_>>b&1,L=a[b/32|0]>>>b&1,w=v|_,P=((v|L)&g)+g^g|v|L;let j=_|~(P|g),G=g&P;j>>>31^T&&(s[b/32|0]^=1<>>31^L&&(a[b/32|0]^=1<>>_&1,I=a[_/32|0]>>>_&1,b=g|c,v=((g|I)&l)+l^l|g|I;let T=c|~(v|l),L=l&v;m+=T>>>r-1&1,m-=L>>>r-1&1,T>>>31^R&&(s[_/32|0]^=1<<_),L>>>31^I&&(a[_/32|0]^=1<<_),T=T<<1|R,L=L<<1|I,l=L|~(b|T),c=T&b}for(let _=f;_{if(e.length{const r=e.length<=t.length,a=e.length<=n;return r||a?Math.ceil(e.length/4):n},GOe=(e,t,n)=>{let r=0;const a=Object.keys(t).find(s=>{const o=WOe(e,s,n);if(Math.abs(e.length-s.length)>o)return!1;const i=FOe(e,s),u=i<=o;return u&&(r=i),u});return a?{levenshteinDistance:r,levenshteinDistanceEntry:a}:{}};var W_={a:["4","@"],b:["8"],c:["(","{","[","<"],d:["6","|)"],e:["3"],f:["#"],g:["6","9","&"],h:["#","|-|"],i:["1","!","|"],k:["<","|<"],l:["!","1","|","7"],m:["^^","nn","2n","/\\\\/\\\\"],n:["//"],o:["0","()"],q:["9"],u:["|_|"],s:["$","5"],t:["+","7"],v:["<",">","/"],w:["^/","uu","vv","2u","2v","\\\\/\\\\/"],x:["%","><"],z:["2"]},ol={warnings:{straightRow:"straightRow",keyPattern:"keyPattern",simpleRepeat:"simpleRepeat",extendedRepeat:"extendedRepeat",sequences:"sequences",recentYears:"recentYears",dates:"dates",topTen:"topTen",topHundred:"topHundred",common:"common",similarToCommon:"similarToCommon",wordByItself:"wordByItself",namesByThemselves:"namesByThemselves",commonNames:"commonNames",userInputs:"userInputs",pwned:"pwned"},suggestions:{l33t:"l33t",reverseWords:"reverseWords",allUppercase:"allUppercase",capitalization:"capitalization",dates:"dates",recentYears:"recentYears",associatedYears:"associatedYears",sequences:"sequences",repeated:"repeated",longerKeyboardPattern:"longerKeyboardPattern",anotherWord:"anotherWord",useWords:"useWords",noNeed:"noNeed",pwned:"pwned"},timeEstimation:{ltSecond:"ltSecond",second:"second",seconds:"seconds",minute:"minute",minutes:"minutes",hour:"hour",hours:"hours",day:"day",days:"days",month:"month",months:"months",year:"year",years:"years",centuries:"centuries"}};class wo{constructor(t=[]){this.parents=t,this.children=new Map}addSub(t,...n){const r=t.charAt(0);this.children.has(r)||this.children.set(r,new wo([...this.parents,r]));let a=this.children.get(r);for(let s=1;s(Object.entries(e).forEach(([n,r])=>{r.forEach(a=>{t.addSub(a,n)})}),t);class zOe{constructor(){this.matchers={},this.l33tTable=W_,this.trieNodeRoot=G_(W_,new wo),this.dictionary={userInputs:[]},this.rankedDictionaries={},this.rankedDictionariesMaxWordSize={},this.translations=ol,this.graphs={},this.useLevenshteinDistance=!1,this.levenshteinThreshold=2,this.l33tMaxSubstitutions=100,this.maxLength=256,this.setRankedDictionaries()}setOptions(t={}){t.l33tTable&&(this.l33tTable=t.l33tTable,this.trieNodeRoot=G_(t.l33tTable,new wo)),t.dictionary&&(this.dictionary=t.dictionary,this.setRankedDictionaries()),t.translations&&this.setTranslations(t.translations),t.graphs&&(this.graphs=t.graphs),t.useLevenshteinDistance!==void 0&&(this.useLevenshteinDistance=t.useLevenshteinDistance),t.levenshteinThreshold!==void 0&&(this.levenshteinThreshold=t.levenshteinThreshold),t.l33tMaxSubstitutions!==void 0&&(this.l33tMaxSubstitutions=t.l33tMaxSubstitutions),t.maxLength!==void 0&&(this.maxLength=t.maxLength)}setTranslations(t){if(this.checkCustomTranslations(t))this.translations=t;else throw new Error("Invalid translations object fallback to keys")}checkCustomTranslations(t){let n=!0;return Object.keys(ol).forEach(r=>{if(r in t){const a=r;Object.keys(ol[a]).forEach(s=>{s in t[a]||(n=!1)})}else n=!1}),n}setRankedDictionaries(){const t={},n={};Object.keys(this.dictionary).forEach(r=>{t[r]=M_(this.dictionary[r]),n[r]=this.getRankedDictionariesMaxWordSize(this.dictionary[r])}),this.rankedDictionaries=t,this.rankedDictionariesMaxWordSize=n}getRankedDictionariesMaxWordSize(t){const n=t.map(r=>typeof r!="string"?r.toString().length:r.length);return n.length===0?0:n.reduce((r,a)=>Math.max(r,a),-1/0)}buildSanitizedRankedDictionary(t){const n=[];return t.forEach(r=>{const a=typeof r;(a==="string"||a==="number"||a==="boolean")&&n.push(r.toString().toLowerCase())}),M_(n)}extendUserInputsDictionary(t){this.dictionary.userInputs||(this.dictionary.userInputs=[]);const n=[...this.dictionary.userInputs,...t];this.rankedDictionaries.userInputs=this.buildSanitizedRankedDictionary(n),this.rankedDictionariesMaxWordSize.userInputs=this.getRankedDictionariesMaxWordSize(n)}addMatcher(t,n){this.matchers[t]?console.info(`Matcher ${t} already exists`):this.matchers[t]=n}}const Ce=new zOe;class BOe{constructor(t){this.defaultMatch=t}match({password:t}){const n=t.split("").reverse().join("");return this.defaultMatch({password:n}).map(r=>({...r,token:r.token.split("").reverse().join(""),reversed:!0,i:t.length-1-r.j,j:t.length-1-r.i}))}}class HOe{constructor({substr:t,limit:n,trieRoot:r}){this.buffer=[],this.finalPasswords=[],this.substr=t,this.limit=n,this.trieRoot=r}getAllPossibleSubsAtIndex(t){const n=[];let r=this.trieRoot;for(let a=t;a=this.limit)return;if(r===this.substr.length){t===n&&this.finalPasswords.push({password:this.buffer.join(""),changes:s});return}const u=[...this.getAllPossibleSubsAtIndex(r)];let c=!1;for(let l=r+u.length-1;l>=r;l-=1){const f=u[l-r];if(f.isTerminal()){if(o===f.parents.join("")&&i>=3)continue;c=!0;const d=f.subs;for(const m of d){this.buffer.push(m);const _=s.concat({i:a,letter:m,substitution:f.parents.join("")});if(this.helper({onlyFullSub:t,isFullSub:n,index:l+1,subIndex:a+m.length,changes:_,lastSubLetter:f.parents.join(""),consecutiveSubCount:o===f.parents.join("")?i+1:1}),this.buffer.pop(),this.finalPasswords.length>=this.limit)return}}}if(!t||!c){const l=this.substr.charAt(r);this.buffer.push(l),this.helper({onlyFullSub:t,isFullSub:n&&!c,index:r+1,subIndex:a+1,changes:s,lastSubLetter:o,consecutiveSubCount:i}),this.buffer.pop()}}getAll(){return this.helper({onlyFullSub:!0,isFullSub:!0,index:0,subIndex:0,changes:[],lastSubLetter:void 0,consecutiveSubCount:0}),this.helper({onlyFullSub:!1,isFullSub:!0,index:0,subIndex:0,changes:[],lastSubLetter:void 0,consecutiveSubCount:0}),this.finalPasswords}}const jOe=(e,t,n)=>new HOe({substr:e,limit:t,trieRoot:n}).getAll(),VOe=(e,t,n)=>{const a=e.changes.filter(c=>c.ic-l.letter.length+l.substitution.length,t),s=e.changes.filter(c=>c.i>=t&&c.i<=n),o=s.reduce((c,l)=>c-l.letter.length+l.substitution.length,n-t+a),i=[],u=[];return s.forEach(c=>{i.findIndex(f=>f.letter===c.letter&&f.substitution===c.substitution)<0&&(i.push({letter:c.letter,substitution:c.substitution}),u.push(`${c.substitution} -> ${c.letter}`))}),{i:a,j:o,subs:i,subDisplay:u.join(", ")}};class KOe{constructor(t){this.defaultMatch=t}isAlreadyIncluded(t,n){return t.some(r=>Object.entries(r).every(([a,s])=>a==="subs"||s===n[a]))}match({password:t}){const n=[],r=jOe(t,Ce.l33tMaxSubstitutions,Ce.trieNodeRoot);let a=!1,s=!0;return r.forEach(o=>{if(a)return;const i=this.defaultMatch({password:o.password,useLevenshtein:s});s=!1,i.forEach(u=>{a||(a=u.i===0&&u.j===t.length-1);const c=VOe(o,u.i,u.j),l=t.slice(c.i,+c.j+1||9e9),f={...u,l33t:!0,token:l,...c},d=this.isAlreadyIncluded(n,f);l.toLowerCase()!==u.matchedWord&&!d&&n.push(f)})}),n.filter(o=>o.token.length>1)}}class YOe{constructor(){this.l33t=new KOe(this.defaultMatch),this.reverse=new BOe(this.defaultMatch)}match({password:t}){const n=[...this.defaultMatch({password:t}),...this.reverse.match({password:t}),...this.l33t.match({password:t})];return gs(n)}defaultMatch({password:t,useLevenshtein:n=!0}){const r=[],a=t.length,s=t.toLowerCase();return Object.keys(Ce.rankedDictionaries).forEach(o=>{const i=Ce.rankedDictionaries[o],u=Ce.rankedDictionariesMaxWordSize[o],c=Math.min(u,a);for(let l=0;l{const s=n[a];s.lastIndex=0;let o;for(;o=s.exec(t);)if(o){const i=o[0];r.push({pattern:"regex",token:i,i:o.index,j:o.index+o[0].length-1,regexName:a,regexMatch:o})}}),gs(r)}}var Ia={nCk(e,t){let n=e;if(t>n)return 0;if(t===0)return 1;let r=1;for(let a=1;a<=t;a+=1)r*=n,r/=a,n-=1;return r},log10(e){return e===0?0:Math.log(e)/Math.log(10)},log2(e){return Math.log(e)/Math.log(2)},factorial(e){let t=1;for(let n=2;n<=e;n+=1)t*=n;return t}},XOe=({token:e})=>{let t=vOe**e.length;t===Number.POSITIVE_INFINITY&&(t=Number.MAX_VALUE);let n;return e.length===1?n=eA+1:n=tA+1,Math.max(t,n)},ZOe=({year:e,separator:t})=>{let r=Math.max(Math.abs(e-s0),nA)*365;return t&&(r*=4),r};const QOe=e=>{const t=e.split(""),n=t.filter(o=>o.match(POe)).length,r=t.filter(o=>o.match(DOe)).length;let a=0;const s=Math.min(n,r);for(let o=1;o<=s;o+=1)a+=Ia.nCk(n+r,o);return a};var JOe=e=>{const t=e.replace(wOe,"");if(t.match(COe)||t.toLowerCase()===t)return 1;const n=[rA,ROe,aA],r=n.length;for(let a=0;a{let n=0,r=e.indexOf(t);for(;r>=0;)n+=1,r=e.indexOf(t,r+t.length);return n},eIe=({sub:e,token:t})=>{const n=t.toLowerCase(),r=z_(n,e.substitution),a=z_(n,e.letter);return{subbedCount:r,unsubbedCount:a}};var tIe=({l33t:e,subs:t,token:n})=>{if(!e)return 1;let r=1;return t.forEach(a=>{const{subbedCount:s,unsubbedCount:o}=eIe({sub:a,token:n});if(s===0||o===0)r*=2;else{const i=Math.min(o,s);let u=0;for(let c=1;c<=i;c+=1)u+=Ia.nCk(o+s,c);r*=u}}),r},nIe=({rank:e,reversed:t,l33t:n,subs:r,token:a,dictionaryName:s})=>{const o=e,i=JOe(a),u=tIe({l33t:n,subs:r,token:a}),c=t&&2||1;let l;return s==="diceware"?l=6**5/2:l=o*i*u*c,{baseGuesses:o,uppercaseVariations:i,l33tVariations:u,calculation:l}},rIe=({regexName:e,regexMatch:t,token:n})=>{const r={alphaLower:26,alphaUpper:26,alpha:52,alphanumeric:62,digits:10,symbols:33};if(e in r)return r[e]**n.length;switch(e){case"recentYear":return Math.max(Math.abs(parseInt(t[0],10)-s0),nA)}return 0},aIe=({baseGuesses:e,repeatCount:t})=>e*t,sIe=({token:e,ascending:t})=>{const n=e.charAt(0);let r=0;return["a","A","z","Z","0","1","9"].includes(n)?r=4:n.match(/\d/)?r=10:r=26,t||(r*=2),r*e.length};const oIe=e=>{let t=0;return Object.keys(e).forEach(n=>{const r=e[n];t+=r.filter(a=>!!a).length}),t/=Object.entries(e).length,t},iIe=({token:e,graph:t,turns:n})=>{const r=Object.keys(Ce.graphs[t]).length,a=oIe(Ce.graphs[t]);let s=0;const o=e.length;for(let i=2;i<=o;i+=1){const u=Math.min(n,i-1);for(let c=1;c<=u;c+=1)s+=Ia.nCk(i-1,c-1)*r*a**c}return s};var uIe=({graph:e,token:t,shiftedCount:n,turns:r})=>{let a=iIe({token:t,graph:e,turns:r});if(n){const s=t.length-n;if(n===0||s===0)a*=2;else{let o=0;for(let i=1;i<=Math.min(n,s);i+=1)o+=Ia.nCk(n+s,i);a*=o}}return Math.round(a)},cIe=()=>kOe;const lIe=(e,t)=>{let n=1;return e.token.lengthB_[e]?B_[e](t):Ce.matchers[e]&&"scoring"in Ce.matchers[e]?Ce.matchers[e].scoring(t):0;var fIe=(e,t)=>{const n={};if("guesses"in e&&e.guesses!=null)return e;const r=lIe(e,t),a=dIe(e.pattern,e);let s=0;typeof a=="number"?s=a:e.pattern==="dictionary"&&(s=a.calculation,n.baseGuesses=a.baseGuesses,n.uppercaseVariations=a.uppercaseVariations,n.l33tVariations=a.l33tVariations);const o=Math.max(s,r);return{...e,...n,guesses:o,guessesLog10:Ia.log10(o)}};const mn={password:"",optimal:{},excludeAdditive:!1,separatorRegex:void 0,fillArray(e,t){const n=[];for(let r=0;r1&&(a*=this.optimal.pi[r.i-1][t-1]);let s=Ia.factorial(t)*a;this.excludeAdditive||(s+=bOe**(t-1));let o=!1;Object.keys(this.optimal.g[n]).forEach(i=>{const u=this.optimal.g[n][i];parseInt(i,10)<=t&&u<=s&&(o=!0)}),o||(this.optimal.g[n][t]=s,this.optimal.m[n][t]=r,this.optimal.pi[n][t]=a)},bruteforceUpdate(e){let t=this.makeBruteforceMatch(0,e);this.update(t,1);for(let n=1;n<=e;n+=1){t=this.makeBruteforceMatch(n,e);const r=this.optimal.m[n-1];Object.keys(r).forEach(a=>{r[a].pattern!=="bruteforce"&&this.update(t,parseInt(a,10)+1)})}},unwind(e){const t=[];let n=e-1,r=0,a=1/0;const s=this.optimal.g[n];for(s&&Object.keys(s).forEach(o=>{const i=s[o];i=0;){const o=this.optimal.m[n][r];t.unshift(o),n=o.i-1,r-=1}return t}};var wd={mostGuessableMatchSequence(e,t,n=!1){mn.password=e,mn.excludeAdditive=n;const r=e.length;let a=mn.fillArray(r,"array");t.forEach(u=>{a[u.j].push(u)}),a=a.map(u=>u.sort((c,l)=>c.i-l.i)),mn.optimal={m:mn.fillArray(r,"object"),pi:mn.fillArray(r,"object"),g:mn.fillArray(r,"object")};for(let u=0;u{c.i>0?Object.keys(mn.optimal.m[c.i-1]).forEach(l=>{mn.update(c,parseInt(l,10)+1)}):mn.update(c,1)}),mn.bruteforceUpdate(u);const s=mn.unwind(r),o=s.length,i=this.getGuesses(e,o);return{password:e,guesses:i,guessesLog10:Ia.log10(i),sequence:s}},getGuesses(e,t){const n=e.length;let r=0;return e.length===0?r=1:r=mn.optimal.g[n-1][t],r}};class pIe{match({password:t,omniMatch:n}){const r=[];let a=0;for(;ao instanceof Promise)?Promise.all(r):r}normalizeMatch(t,n,r,a){const s={pattern:"repeat",i:r.index,j:n,token:r[0],baseToken:t,baseGuesses:0,repeatCount:r[0].length/t.length};return a instanceof Promise?a.then(o=>({...s,baseGuesses:o})):{...s,baseGuesses:a}}getGreedyMatch(t,n){const r=/(.+)\1+/g;return r.lastIndex=n,r.exec(t)}getLazyMatch(t,n){const r=/(.+?)\1+/g;return r.lastIndex=n,r.exec(t)}setMatchToken(t,n){const r=/^(.+?)\1+$/;let a,s="";if(n&&t[0].length>n[0].length){a=t;const o=r.exec(a[0]);o&&(s=o[1])}else a=n,a&&(s=a[1]);return{match:a,baseToken:s}}getBaseGuesses(t,n){const r=n.match(t);return r instanceof Promise?r.then(s=>wd.mostGuessableMatchSequence(t,s).guesses):wd.mostGuessableMatchSequence(t,r).guesses}}class mIe{constructor(){this.MAX_DELTA=5}match({password:t}){const n=[];if(t.length===1)return[];let r=0,a=null;const s=t.length;for(let o=1;o1||Math.abs(r)===1){const o=Math.abs(r);if(o>0&&o<=this.MAX_DELTA){const i=a.slice(t,+n+1||9e9),{sequenceName:u,sequenceSpace:c}=this.getSequence(i);return s.push({pattern:"sequence",i:t,j:n,token:a.slice(t,+n+1||9e9),sequenceName:u,sequenceSpace:c,ascending:r>0})}}return null}getSequence(t){let n="unicode",r=26;return yOe.test(t)?(n="lower",r=26):NOe.test(t)?(n="upper",r=26):LOe.test(t)&&(n="digits",r=10),{sequenceName:n,sequenceSpace:r}}}class _Ie{constructor(){this.SHIFTED_RX=/[~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?]/}match({password:t}){const n=[];return Object.keys(Ce.graphs).forEach(r=>{const a=Ce.graphs[r];Pd(n,this.helper(t,a,r))}),gs(n)}checkIfShifted(t,n,r){return!t.includes("keypad")&&this.SHIFTED_RX.test(n.charAt(r))?1:0}helper(t,n,r){let a;const s=[];let o=0;const i=t.length;for(;o2&&s.push({pattern:"spatial",i:o,j:u-1,token:t.slice(o,u),graph:r,turns:l,shiftedCount:a}),o=u;break}}}return s}}const EIe=new RegExp(`[${sA.join("")}]`);class Uu{static getMostUsedSeparatorChar(t){const n=[...t.split("").filter(a=>EIe.test(a)).reduce((a,s)=>{const o=a.get(s);return o?a.set(s,o+1):a.set(s,1),a},new Map).entries()].sort(([a,s],[o,i])=>i-s);if(!n.length)return;const r=n[0];if(!(r[1]<2))return r[0]}static getSeparatorRegex(t){return new RegExp(`([^${t}
+])(${t})(?!${t})`,"g")}match({password:t}){const n=[];if(t.length===0)return n;const r=Uu.getMostUsedSeparatorChar(t);if(r===void 0)return n;const a=Uu.getSeparatorRegex(r);for(const s of t.matchAll(a)){if(s.index===void 0)continue;const o=s.index+1;n.push({pattern:"separator",token:r,i:o,j:o})}return n}}class hIe{constructor(){this.matchers={date:UOe,dictionary:YOe,regex:qOe,repeat:pIe,sequence:mIe,spatial:_Ie,separator:Uu}}match(t){const n=[],r=[];return[...Object.keys(this.matchers),...Object.keys(Ce.matchers)].forEach(s=>{if(!this.matchers[s]&&!Ce.matchers[s])return;const o=this.matchers[s]?this.matchers[s]:Ce.matchers[s].Matching,u=new o().match({password:t,omniMatch:this});u instanceof Promise?(u.then(c=>{Pd(n,c)}),r.push(u)):Pd(n,u)}),r.length>0?new Promise((s,o)=>{Promise.all(r).then(()=>{s(gs(n))}).catch(i=>{o(i)})}):gs(n)}}const oA=1,iA=oA*60,uA=iA*60,cA=uA*24,lA=cA*31,dA=lA*12,TIe=dA*100,il={second:oA,minute:iA,hour:uA,day:cA,month:lA,year:dA,century:TIe};class gIe{translate(t,n){let r=t;n!==void 0&&n!==1&&(r+="s");const{timeEstimation:a}=Ce.translations;return a[r].replace("{base}",`${n}`)}estimateAttackTimes(t){const n={onlineThrottling100PerHour:t/.027777777777777776,onlineNoThrottling10PerSecond:t/10,offlineSlowHashing1e4PerSecond:t/1e4,offlineFastHashing1e10PerSecond:t/1e10},r={onlineThrottling100PerHour:"",onlineNoThrottling10PerSecond:"",offlineSlowHashing1e4PerSecond:"",offlineFastHashing1e10PerSecond:""};return Object.keys(n).forEach(a=>{const s=n[a];r[a]=this.displayTime(s)}),{crackTimesSeconds:n,crackTimesDisplay:r,score:this.guessesToScore(t)}}guessesToScore(t){return t<1e3+5?0:t<1e6+5?1:t<1e8+5?2:t<1e10+5?3:4}displayTime(t){let n="centuries",r;const a=Object.keys(il),s=a.findIndex(o=>t-1&&(n=a[s-1],s!==0?r=Math.round(t/il[n]):n="ltSecond"),this.translate(n,r)}}var AIe=()=>null,SIe=()=>({warning:Ce.translations.warnings.dates,suggestions:[Ce.translations.suggestions.dates]});const OIe=(e,t)=>{let n=null;return t&&!e.l33t&&!e.reversed?e.rank<=10?n=Ce.translations.warnings.topTen:e.rank<=100?n=Ce.translations.warnings.topHundred:n=Ce.translations.warnings.common:e.guessesLog10<=4&&(n=Ce.translations.warnings.similarToCommon),n},IIe=(e,t)=>{let n=null;return t&&(n=Ce.translations.warnings.wordByItself),n},vIe=(e,t)=>t?Ce.translations.warnings.namesByThemselves:Ce.translations.warnings.commonNames,bIe=(e,t)=>{let n=null;const r=e.dictionaryName,a=r==="lastnames"||r.toLowerCase().includes("firstnames");return r==="passwords"?n=OIe(e,t):r.includes("wikipedia")?n=IIe(e,t):a?n=vIe(e,t):r==="userInputs"&&(n=Ce.translations.warnings.userInputs),n};var RIe=(e,t)=>{const n=bIe(e,t),r=[],a=e.token;return a.match(rA)?r.push(Ce.translations.suggestions.capitalization):a.match(aA)&&a.toLowerCase()!==a&&r.push(Ce.translations.suggestions.allUppercase),e.reversed&&e.token.length>=4&&r.push(Ce.translations.suggestions.reverseWords),e.l33t&&r.push(Ce.translations.suggestions.l33t),{warning:n,suggestions:r}},NIe=e=>e.regexName==="recentYear"?{warning:Ce.translations.warnings.recentYears,suggestions:[Ce.translations.suggestions.recentYears,Ce.translations.suggestions.associatedYears]}:{warning:null,suggestions:[]},yIe=e=>{let t=Ce.translations.warnings.extendedRepeat;return e.baseToken.length===1&&(t=Ce.translations.warnings.simpleRepeat),{warning:t,suggestions:[Ce.translations.suggestions.repeated]}},CIe=()=>({warning:Ce.translations.warnings.sequences,suggestions:[Ce.translations.suggestions.sequences]}),DIe=e=>{let t=Ce.translations.warnings.keyPattern;return e.turns===1&&(t=Ce.translations.warnings.straightRow),{warning:t,suggestions:[Ce.translations.suggestions.longerKeyboardPattern]}},PIe=()=>null;const H_={warning:null,suggestions:[]};class wIe{constructor(){this.matchers={bruteforce:AIe,date:SIe,dictionary:RIe,regex:NIe,repeat:yIe,sequence:CIe,spatial:DIe,separator:PIe},this.defaultFeedback={warning:null,suggestions:[]},this.setDefaultSuggestions()}setDefaultSuggestions(){this.defaultFeedback.suggestions.push(Ce.translations.suggestions.useWords,Ce.translations.suggestions.noNeed)}getFeedback(t,n){if(n.length===0)return this.defaultFeedback;if(t>2)return H_;const r=Ce.translations.suggestions.anotherWord,a=this.getLongestMatch(n);let s=this.getMatchFeedback(a,n.length===1);return s!=null?s.suggestions.unshift(r):s={warning:null,suggestions:[r]},s}getLongestMatch(t){let n=t[0];return t.slice(1).forEach(a=>{a.token.length>n.token.length&&(n=a)}),n}getMatchFeedback(t,n){return this.matchers[t.pattern]?this.matchers[t.pattern](t,n):Ce.matchers[t.pattern]&&"feedback"in Ce.matchers[t.pattern]?Ce.matchers[t.pattern].feedback(t,n):H_}}const fA=()=>new Date().getTime(),LIe=(e,t,n)=>{const r=new wIe,a=new gIe,s=wd.mostGuessableMatchSequence(t,e),o=fA()-n,i=a.estimateAttackTimes(s.guesses);return{calcTime:o,...s,...i,feedback:r.getFeedback(i.score,s.sequence)}},$Ie=(e,t)=>(t&&Ce.extendUserInputsDictionary(t),new hIe().match(e)),kIe=(e,t)=>{const n=fA(),r=$Ie(e,t);if(r instanceof Promise)throw new Error("You are using a Promised matcher, please use `zxcvbnAsync` for it.");return LIe(r,e,n)},UIe="modulepreload",MIe=function(e){return"/"+e},j_={},yt=function(t,n,r){if(!n||n.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=MIe(s),s in j_)return;j_[s]=!0;const o=s.endsWith(".css"),i=o?'[rel="stylesheet"]':"";if(!!r)for(let l=a.length-1;l>=0;l--){const f=a[l];if(f.href===s&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":UIe,o||(c.as="script",c.crossOrigin=""),c.href=s,document.head.appendChild(c),o)return new Promise((l,f)=>{c.addEventListener("load",l),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})},xIe=async e=>{switch(e){case"fr":return await yt(()=>import("./password.fr-7fa93aa6.js"),[]);case"de":return await yt(()=>import("./password.de-7378acff.js"),[]);case"it":return await yt(()=>import("./password.it-436063d6.js"),[]);case"es":return await yt(()=>import("./password.es-es-0bf2f189.js"),[]);case"pl":return await yt(()=>import("./password.pl-26ee86c2.js"),[]);default:return await yt(()=>import("./password.en-ea77b3f2.js"),[])}},V_=async e=>{const t=await yt(()=>import("./password.common-1e22ecd9.js"),[]),n=await xIe(e),r={graphs:t.adjacencyGraphs,dictionary:{...t.dictionary,...n.dictionary}};Ce.setOptions(r)},FIe=e=>{switch(e){case 2:return"AVERAGE";case 3:return"GOOD";case 4:return"STRONG";default:return"WEAK"}},WIe={class:"password-strength"},GIe=["value"],zIe={key:0,class:"password-strength-details"},BIe={class:"password-strength-value"},HIe={key:0,class:"info-box"},jIe={class:"password-feedback"},VIe=Q({__name:"PasswordStength",props:{password:{}},setup(e){const t=e,{password:n}=Te(t),r=Me(),a=$(()=>r.getters[V.GETTERS.LANGUAGE]),s=$(()=>r.getters[Y.GETTERS.IS_SUCCESS]),o=le(0),i=le(""),u=le([]),c=le("0% 100%");bt(async()=>await V_(a.value));function l(f){const d=kIe(f);o.value=d.score,i.value=FIe(o.value),u.value=d.feedback.suggestions,c.value=o.value*100/4+"% 100%"}return Be(()=>a.value,async f=>{await V_(f)}),Be(()=>n.value,async f=>{s.value?i.value="":l(f)}),(f,d)=>(A(),N("div",WIe,[p("input",{class:Ae(["password-slider",`strength-${o.value}`]),style:Hr({backgroundSize:c.value}),type:"range",value:o.value,min:"0",max:"4",step:"1",tabindex:-1},null,14,GIe),i.value?(A(),N("div",zIe,[p("span",BIe,h(f.$t("user.PASSWORD_STRENGTH.LABEL"))+": "+h(f.$t(`user.PASSWORD_STRENGTH.${i.value}`)),1),u.value.length>0?(A(),N("div",HIe,[p("ul",jIe,[(A(!0),N(ve,null,ze(u.value,m=>(A(),N("li",{key:m},h(f.$t(`user.PASSWORD_STRENGTH.SUGGESTIONS.${m}`)),1))),128))])])):x("",!0)])):x("",!0)]))}});const KIe=se(VIe,[["__scopeId","data-v-1affb508"]]),YIe=e=>(ut("data-v-ac528612"),e=e(),ct(),e),qIe={class:"password-input"},XIe=["id","disabled","placeholder","required","type"],ZIe={class:"show-password"},QIe=["onClick"],JIe={key:0,class:"form-info"},eve=YIe(()=>p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),tve=Q({__name:"PasswordInput",props:{checkStrength:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{default:"password"},password:{default:""},placeholder:{},required:{type:Boolean,default:!1}},emits:["updatePassword","passwordError"],setup(e,{emit:t}){const n=e,{checkStrength:r,disabled:a,id:s,password:o,placeholder:i,required:u}=Te(n),c=le(!1),l=le(""),f=t;function d(){c.value=!c.value}function m(g){f("updatePassword",g.target.value)}function _(){f("passwordError")}return Be(()=>o.value,g=>{g===""&&(l.value="",c.value=!1)}),(g,R)=>(A(),N("div",qIe,[Xe(p("input",{id:E(s),disabled:E(a),placeholder:E(i),required:E(u),type:c.value?"text":"password","onUpdate:modelValue":R[0]||(R[0]=I=>l.value=I),minlength:"8",onInput:m,onInvalid:_},null,40,XIe),[[OI,l.value]]),p("div",ZIe,[p("button",{class:"transparent",onClick:Ze(d,["prevent"]),type:"button"},[K(h(g.$t(`user.${c.value?"HIDE":"SHOW"}_PASSWORD`))+" ",1),p("i",{class:Ae(["fa",`fa-eye${c.value?"-slash":""}`]),"aria-hidden":"true"},null,2)],8,QIe)]),E(r)?(A(),N("div",JIe,[eve,K(" "+h(g.$t("user.PASSWORD_INFO")),1)])):x("",!0),E(r)?(A(),re(KIe,{key:1,password:l.value},null,8,["password"])):x("",!0)]))}});const Ld=se(tve,[["__scopeId","data-v-ac528612"]]),o0=e=>(ut("data-v-8ebb5cd3"),e=e(),ct(),e),nve={id:"user-infos-edition"},rve={class:"profile-form form-box"},ave={key:1,class:"info-box success-message"},sve=["onSubmit"],ove={class:"form-items",for:"email"},ive=["disabled"],uve={class:"form-items",for:"password-field"},cve={class:"form-items",for:"new-password-field"},lve={class:"form-buttons"},dve={class:"confirm",type:"submit"},fve=["onClick"],pve={class:"data-export"},mve={class:"info-box"},_ve=o0(()=>p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),Eve={key:0,class:"data-export-archive"},hve=o0(()=>p("i",{class:"fa fa-download","aria-hidden":"true"},null,-1)),Tve={key:1},gve={key:2},Ave=o0(()=>p("i",{class:"fa fa-spinner fa-pulse","aria-hidden":"true"},null,-1)),Sve=Q({__name:"UserAccountEdition",props:{user:{}},setup(e){const t=e,{user:n}=Te(t),r=Me(),a=zt({email:"",password:"",new_password:""}),s=$(()=>r.getters[Y.GETTERS.USER_LOADING]),o=$(()=>r.getters[V.GETTERS.APP_CONFIG]),i=$(()=>r.getters[Y.GETTERS.IS_SUCCESS]),u=le(!1),c=$(()=>r.getters[V.GETTERS.ERROR_MESSAGES]),l=le(!1),f=le(!1),d=$(()=>r.getters[Y.GETTERS.EXPORT_REQUEST]),m=$(()=>v()),_=le(!1);St(()=>{t.user&&(r.dispatch(Y.ACTIONS.GET_REQUEST_DATA_EXPORT),R(t.user))});function g(){l.value=!0}function R(z){a.email=z.email}function I(z){a.password=z}function b(z){a.new_password=z}function v(){return d.value?xn(d.value.created_at,n.value.timezone,n.value.date_format,!0,null,!0):null}function T(){return m.value?VN(new Date(m.value),qN(new Date,1)):!0}function L(){const z={email:a.email,password:a.password};a.new_password&&(z.new_password=a.new_password),u.value=a.email!==n.value.email,r.dispatch(Y.ACTIONS.UPDATE_USER_ACCOUNT,z)}function w(z){f.value=z}function P(z){r.dispatch(Y.ACTIONS.DELETE_ACCOUNT,{username:z})}function j(){r.dispatch(Y.ACTIONS.REQUEST_DATA_EXPORT)}async function G(z){_.value=!0,await je.get(`/auth/account/export/${z}`,{responseType:"blob"}).then(k=>{const Z=window.URL.createObjectURL(new Blob([k.data],{type:"application/zip"})),ee=document.createElement("a");ee.href=Z,ee.setAttribute("download",z),document.body.appendChild(ee),ee.click()}).finally(()=>_.value=!1)}return Rt(()=>{r.commit(Y.MUTATIONS.UPDATE_IS_SUCCESS,!1),r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)}),Be(()=>i.value,async z=>{z&&(I(""),b(""),R(n.value),l.value=!1)}),Be(()=>n.value.email,async()=>{R(n.value)}),(z,k)=>{const Z=ue("Modal"),ee=ue("ErrorMessage");return A(),N("div",nve,[f.value?(A(),re(Z,{key:0,title:z.$t("common.CONFIRMATION"),message:z.$t("user.CONFIRM_ACCOUNT_DELETION"),onConfirmAction:k[0]||(k[0]=te=>P(E(n).username)),onCancelAction:k[1]||(k[1]=te=>w(!1)),onKeydown:k[2]||(k[2]=Ot(te=>w(!1),["esc"]))},null,8,["title","message"])):x("",!0),p("div",rve,[c.value?(A(),re(ee,{key:0,message:c.value},null,8,["message"])):x("",!0),i.value?(A(),N("div",ave,h(z.$t(`user.PROFILE.SUCCESSFUL_${u.value&&o.value.is_email_sending_enabled?"EMAIL_":""}UPDATE`)),1)):x("",!0),p("form",{class:Ae({errors:l.value}),onSubmit:Ze(L,["prevent"])},[p("label",ove,[K(h(z.$t("user.EMAIL"))+"* ",1),Xe(p("input",{id:"email","onUpdate:modelValue":k[3]||(k[3]=te=>a.email=te),disabled:s.value,required:!0,onInvalid:g},null,40,ive),[[nt,a.email]])]),p("label",uve,[K(h(z.$t("user.CURRENT_PASSWORD"))+"* ",1),U(Ld,{id:"password-field",disabled:s.value,password:a.password,required:!0,onUpdatePassword:I,onPasswordError:g},null,8,["disabled","password"])]),p("label",cve,[K(h(z.$t("user.NEW_PASSWORD"))+" ",1),U(Ld,{id:"new-password-field",disabled:s.value,checkStrength:!0,password:a.new_password,isSuccess:!1,onUpdatePassword:b,onPasswordError:g},null,8,["disabled","password"])]),p("div",lve,[p("button",dve,h(z.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:k[4]||(k[4]=Ze(te=>z.$router.push("/profile"),["prevent"]))},h(z.$t("buttons.CANCEL")),1),p("button",{class:"danger",onClick:k[5]||(k[5]=Ze(te=>w(!0),["prevent"]))},h(z.$t("buttons.DELETE_MY_ACCOUNT")),1),T()?(A(),N("button",{key:0,class:"confirm",onClick:Ze(j,["prevent"])},h(z.$t("buttons.REQUEST_DATA_EXPORT")),9,fve)):x("",!0)])],42,sve),p("div",pve,[p("span",mve,[_ve,K(" "+h(z.$t("user.EXPORT_REQUEST.ONLY_ONE_EXPORT_PER_DAY")),1)]),d.value?(A(),N("div",Eve,[K(h(z.$t("user.EXPORT_REQUEST.DATA_EXPORT"))+" ("+h(m.value)+"): ",1),d.value.status==="successful"?(A(),N("span",{key:0,class:"archive-link",onClick:k[6]||(k[6]=Ze(te=>G(d.value.file_name),["prevent"]))},[hve,K(" "+h(z.$t("user.EXPORT_REQUEST.DOWNLOAD_ARCHIVE"))+" ("+h(E(cu)(d.value.file_size))+") ",1)])):(A(),N("span",Tve,h(z.$t(`user.EXPORT_REQUEST.STATUS.${d.value.status}`)),1)),_.value?(A(),N("span",gve,[K(h(z.$t("user.EXPORT_REQUEST.GENERATING_LINK"))+" ",1),Ave])):x("",!0)])):x("",!0)])])])}}});const Ove=se(Sve,[["__scopeId","data-v-8ebb5cd3"]]),Ive={id:"user-infos-edition"},vve={class:"profile-form form-box"},bve=["onSubmit"],Rve={class:"form-items",for:"registrationDate"},Nve=["value"],yve={class:"form-items",for:"first_name"},Cve=["disabled"],Dve={class:"form-items",for:"last_name"},Pve={class:"form-items",for:"birth_date"},wve=["disabled"],Lve={class:"form-items",for:"location"},$ve=["disabled"],kve={class:"form-items"},Uve={class:"form-buttons"},Mve={class:"confirm",type:"submit"},xve=Q({__name:"UserInfosEdition",props:{user:{}},setup(e){const t=e,n=Me(),r=zt({first_name:"",last_name:"",birth_date:"",location:"",bio:""}),a=$(()=>t.user.created_at?xn(t.user.created_at,t.user.timezone,t.user.date_format):""),s=$(()=>n.getters[Y.GETTERS.USER_LOADING]),o=$(()=>n.getters[V.GETTERS.ERROR_MESSAGES]);St(()=>{t.user&&i(t.user)});function i(l){r.first_name=l.first_name?l.first_name:"",r.last_name=l.last_name?l.last_name:"",r.birth_date=l.birth_date?dn(new Date(l.birth_date),"yyyy-MM-dd"):"",r.location=l.location?l.location:"",r.bio=l.bio?l.bio:""}function u(l){r.bio=l}function c(){n.dispatch(Y.ACTIONS.UPDATE_USER_PROFILE,r)}return Rt(()=>{n.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)}),(l,f)=>{const d=ue("ErrorMessage"),m=ue("CustomTextArea");return A(),N("div",Ive,[p("div",vve,[o.value?(A(),re(d,{key:0,message:o.value},null,8,["message"])):x("",!0),p("form",{onSubmit:Ze(c,["prevent"])},[p("label",Rve,[K(h(l.$t("user.PROFILE.REGISTRATION_DATE"))+" ",1),p("input",{id:"registrationDate",value:a.value,disabled:""},null,8,Nve)]),p("label",yve,[K(h(l.$t("user.PROFILE.FIRST_NAME"))+" ",1),Xe(p("input",{id:"first_name","onUpdate:modelValue":f[0]||(f[0]=_=>r.first_name=_),disabled:s.value},null,8,Cve),[[nt,r.first_name]])]),p("label",Dve,[K(h(l.$t("user.PROFILE.LAST_NAME"))+" ",1),Xe(p("input",{id:"last_name","onUpdate:modelValue":f[1]||(f[1]=_=>r.last_name=_)},null,512),[[nt,r.last_name]])]),p("label",Pve,[K(h(l.$t("user.PROFILE.BIRTH_DATE"))+" ",1),Xe(p("input",{id:"birth_date",type:"date",class:"birth-date","onUpdate:modelValue":f[2]||(f[2]=_=>r.birth_date=_),disabled:s.value},null,8,wve),[[nt,r.birth_date]])]),p("label",Lve,[K(h(l.$t("user.PROFILE.LOCATION"))+" ",1),Xe(p("input",{id:"location","onUpdate:modelValue":f[3]||(f[3]=_=>r.location=_),disabled:s.value},null,8,$ve),[[nt,r.location]])]),p("label",kve,[K(h(l.$t("user.PROFILE.BIO"))+" ",1),U(m,{name:"bio",charLimit:200,input:r.bio,disabled:s.value,onUpdateValue:u},null,8,["input","disabled"])]),p("div",Uve,[p("button",Mve,h(l.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:f[4]||(f[4]=Ze(_=>l.$router.push("/profile"),["prevent"]))},h(l.$t("buttons.CANCEL")),1)])],40,bve)])])}}});const Fve=se(xve,[["__scopeId","data-v-5f5c8fca"]]),Wve=e=>(ut("data-v-8f62d42f"),e=e(),ct(),e),Gve={id:"user-picture-edition"},zve={class:"user-picture-form"},Bve=["onSubmit"],Hve={class:"picture-help"},jve={class:"info-box"},Vve=Wve(()=>p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),Kve={class:"picture-buttons"},Yve=["disabled"],qve=Q({__name:"UserPictureEdition",props:{user:{}},setup(e){const t=e,n=Me(),{user:r}=Te(t),a=$(()=>n.getters[V.GETTERS.ERROR_MESSAGES]),s=$(()=>n.getters[V.GETTERS.APP_CONFIG]),o=s.value.max_single_file_size?cu(s.value.max_single_file_size):"",i=le(null);function u(){n.dispatch(Y.ACTIONS.DELETE_PICTURE)}function c(f){f.target.files!==null&&(i.value=f.target.files[0])}function l(){i.value&&n.dispatch(Y.ACTIONS.UPDATE_USER_PICTURE,{picture:i.value})}return Rt(()=>{n.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)}),(f,d)=>{const m=ue("ErrorMessage");return A(),N("div",Gve,[p("div",zve,[a.value?(A(),re(m,{key:0,message:a.value},null,8,["message"])):x("",!0),U(Wo,{user:E(r)},null,8,["user"]),p("form",{onSubmit:Ze(l,["prevent"])},[p("input",{type:"file",name:"picture",accept:".png,.jpg,.gif",onInput:c},null,32),p("div",Hve,[p("span",jve,[Vve,K(" "+h(f.$t("workouts.MAX_SIZE"))+": "+h(E(o)),1)])]),p("div",Kve,[p("button",{type:"submit",disabled:!i.value},h(f.$t("user.PROFILE.PICTURE_UPDATE")),9,Yve),E(r).picture?(A(),N("button",{key:0,class:"danger",onClick:u},h(f.$t("user.PROFILE.PICTURE_REMOVE")),1)):x("",!0),p("button",{class:"cancel",onClick:d[0]||(d[0]=_=>f.$router.push("/profile"))},h(f.$t("user.PROFILE.BACK_TO_PROFILE")),1)])],40,Bve)])])}}});const Xve=se(qve,[["__scopeId","data-v-8f62d42f"]]),Zve=["Africa/Abidjan","Africa/Accra","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fortaleza","America/Fort_Nelson","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zaporozhye","Europe/Zurich","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"],Qve={id:"tz-dropdown"},Jve=["value","disabled","onKeydown"],e2e=["onClick","onMouseover","autofocus"],t2e=Q({__name:"TimezoneDropdown",props:{input:{},disabled:{type:Boolean,default:!1}},emits:["updateTimezone"],setup(e,{emit:t}){const n=e,r=t,{input:a,disabled:s}=Te(n),o=le(a.value),i=le(!1),u=le(null),c=le(0);function l(g){return g.toLowerCase().match(o.value.toLowerCase())}function f(g){c.value=g}function d(g){o.value=g,i.value=!1,r("updateTimezone",g)}function m(g){var R,I,b,v;g.preventDefault(),(I=(R=u.value)==null?void 0:R.firstElementChild)!=null&&I.innerHTML&&d((v=(b=u.value)==null?void 0:b.firstElementChild)==null?void 0:v.innerHTML)}function _(g){g.preventDefault(),i.value=!0,o.value=g.target.value.trim()}return Be(()=>n.input,g=>{o.value=g}),(g,R)=>(A(),N("div",Qve,[p("input",{class:"tz-dropdown-input",id:"timezone",name:"timezone",value:o.value,disabled:E(s),required:"",onKeydown:[R[0]||(R[0]=Ot(I=>d(E(a)),["esc"])),Ot(m,["enter"])],onInput:_},null,40,Jve),i.value?(A(),N("ul",{key:0,class:"tz-dropdown-list",ref_key:"tzList",ref:u},[(A(!0),N(ve,null,ze(E(Zve).filter(I=>l(I)),(I,b)=>(A(),N("li",{key:I,class:Ae(["tz-dropdown-item",{focus:b===c.value}]),onClick:v=>d(I),onMouseover:v=>f(b),autofocus:b===c.value},h(I),43,e2e))),128))],512)):x("",!0)]))}});const n2e=se(t2e,[["__scopeId","data-v-0ed9f402"]]),r2e=e=>(ut("data-v-130d5be0"),e=e(),ct(),e),a2e={id:"user-preferences-edition"},s2e={class:"profile-form form-box"},o2e=["onSubmit"],i2e={class:"preferences-section"},u2e={class:"form-items"},c2e=["disabled"],l2e=["value"],d2e={class:"form-items"},f2e={class:"form-items"},p2e=["disabled"],m2e=["value"],_2e={class:"form-items form-checkboxes"},E2e={class:"checkboxes-label"},h2e={class:"checkboxes"},T2e=["id","name","checked","disabled","onInput"],g2e={class:"checkbox-label"},A2e={class:"preferences-section"},S2e={class:"form-items form-checkboxes"},O2e={class:"checkboxes-label"},I2e={class:"checkboxes"},v2e=["id","name","checked","disabled","onInput"],b2e={class:"checkbox-label"},R2e={class:"form-items form-checkboxes"},N2e={class:"checkboxes-label"},y2e={class:"checkboxes"},C2e=["id","name","checked","disabled","onInput"],D2e={class:"checkbox-label"},P2e={class:"form-items form-checkboxes"},w2e={class:"checkboxes-label"},L2e={class:"checkboxes"},$2e=["id","name","checked","disabled","onInput"],k2e={class:"checkbox-label"},U2e={class:"form-items form-checkboxes"},M2e={class:"checkboxes-label"},x2e={class:"checkboxes"},F2e=["id","name","checked","disabled","onInput"],W2e={class:"checkbox-label"},G2e={class:"info-box raw-speed-help"},z2e=r2e(()=>p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),B2e={class:"form-buttons"},H2e={class:"confirm",type:"submit"},j2e=Q({__name:"UserPreferencesEdition",props:{user:{}},setup(e){const t=e,n=Me(),r=zt({display_ascent:!0,imperial_units:!1,language:"en",timezone:"Europe/Paris",date_format:"dd/MM/yyyy",weekm:!1,start_elevation_at_zero:!1,use_raw_gpx_speed:!1}),a=[{label:"SUNDAY",value:!1},{label:"MONDAY",value:!0}],s=[{label:"METRIC",value:!1},{label:"IMPERIAL",value:!0}],o=[{label:"DISPLAYED",value:!0},{label:"HIDDEN",value:!1}],i=[{label:"ZERO",value:!0},{label:"MIN_ALT",value:!1}],u=[{label:"FILTERED_SPEED",value:!1},{label:"RAW_SPEED",value:!0}],c=$(()=>n.getters[Y.GETTERS.USER_LOADING]),l=$(()=>n.getters[V.GETTERS.ERROR_MESSAGES]),f=$(()=>SAe(new Date().toUTCString(),t.user.timezone,r.language));St(()=>{t.user&&d(t.user)});function d(T){r.display_ascent=T.display_ascent,r.start_elevation_at_zero=T.start_elevation_at_zero?T.start_elevation_at_zero:!1,r.use_raw_gpx_speed=T.use_raw_gpx_speed?T.use_raw_gpx_speed:!1,r.imperial_units=T.imperial_units?T.imperial_units:!1,r.language=T.language?T.language:"en",r.timezone=T.timezone?T.timezone:"Europe/Paris",r.date_format=T.date_format?T.date_format:"dd/MM/yyyy",r.weekm=T.weekm?T.weekm:!1}function m(){n.dispatch(Y.ACTIONS.UPDATE_USER_PREFERENCES,r)}function _(T){r.timezone=T}function g(T){r.start_elevation_at_zero=T}function R(T){r.use_raw_gpx_speed=T}function I(T){r.display_ascent=T}function b(T){r.imperial_units=T}function v(T){r.weekm=T}return Rt(()=>{n.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)}),(T,L)=>{const w=ue("ErrorMessage");return A(),N("div",a2e,[p("div",s2e,[l.value?(A(),re(w,{key:0,message:l.value},null,8,["message"])):x("",!0),p("form",{onSubmit:Ze(m,["prevent"])},[p("div",i2e,h(T.$t("user.PROFILE.INTERFACE")),1),p("label",u2e,[K(h(T.$t("user.PROFILE.LANGUAGE"))+" ",1),Xe(p("select",{id:"language","onUpdate:modelValue":L[0]||(L[0]=P=>r.language=P),disabled:c.value},[(A(!0),N(ve,null,ze(E(ql),P=>(A(),N("option",{value:P.value,key:P.value},h(P.label),9,l2e))),128))],8,c2e),[[eu,r.language]])]),p("label",d2e,[K(h(T.$t("user.PROFILE.TIMEZONE"))+" ",1),U(n2e,{input:r.timezone,disabled:c.value,onUpdateTimezone:_},null,8,["input","disabled"])]),p("label",f2e,[K(h(T.$t("user.PROFILE.DATE_FORMAT"))+" ",1),Xe(p("select",{id:"date_format","onUpdate:modelValue":L[1]||(L[1]=P=>r.date_format=P),disabled:c.value},[(A(!0),N(ve,null,ze(f.value,P=>(A(),N("option",{value:P.value,key:P.value},h(P.label),9,m2e))),128))],8,p2e),[[eu,r.date_format]])]),p("div",_2e,[p("span",E2e,h(T.$t("user.PROFILE.FIRST_DAY_OF_WEEK")),1),p("div",h2e,[(A(),N(ve,null,ze(a,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===r.weekm,disabled:c.value,onInput:j=>v(P.value)},null,40,T2e),p("span",g2e,h(T.$t(`user.PROFILE.${P.label}`)),1)])),64))])]),p("div",A2e,h(T.$t("workouts.WORKOUT",0)),1),p("div",S2e,[p("span",O2e,h(T.$t("user.PROFILE.UNITS.LABEL")),1),p("div",I2e,[(A(),N(ve,null,ze(s,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===r.imperial_units,disabled:c.value,onInput:j=>b(P.value)},null,40,v2e),p("span",b2e,h(T.$t(`user.PROFILE.UNITS.${P.label}`)),1)])),64))])]),p("div",R2e,[p("span",N2e,h(T.$t("user.PROFILE.ASCENT_DATA")),1),p("div",y2e,[(A(),N(ve,null,ze(o,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===r.display_ascent,disabled:c.value,onInput:j=>I(P.value)},null,40,C2e),p("span",D2e,h(T.$t(`common.${P.label}`)),1)])),64))])]),p("div",P2e,[p("span",w2e,h(T.$t("user.PROFILE.ELEVATION_CHART_START.LABEL")),1),p("div",L2e,[(A(),N(ve,null,ze(i,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===r.start_elevation_at_zero,disabled:c.value,onInput:j=>g(P.value)},null,40,$2e),p("span",k2e,h(T.$t(`user.PROFILE.ELEVATION_CHART_START.${P.label}`)),1)])),64))])]),p("div",U2e,[p("span",M2e,h(T.$t("user.PROFILE.USE_RAW_GPX_SPEED.LABEL")),1),p("div",x2e,[(A(),N(ve,null,ze(u,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===r.use_raw_gpx_speed,disabled:c.value,onInput:j=>R(P.value)},null,40,F2e),p("span",W2e,h(T.$t(`user.PROFILE.USE_RAW_GPX_SPEED.${P.label}`)),1)])),64))]),p("div",G2e,[p("span",null,[z2e,K(" "+h(T.$t("user.PROFILE.USE_RAW_GPX_SPEED.HELP")),1)])])]),p("div",B2e,[p("button",H2e,h(T.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:L[2]||(L[2]=Ze(P=>T.$router.push("/profile/preferences"),["prevent"]))},h(T.$t("buttons.CANCEL")),1)])],40,o2e)])])}}});const V2e=se(j2e,[["__scopeId","data-v-130d5be0"]]),K2e={class:"privacy-policy-text"},Y2e={class:"last-update"},q2e=["innerHTML"],X2e=["innerHTML"],Z2e="Sun, 26 Feb 2023 17:00:00 GMT",Q2e=Q({__name:"PrivacyPolicy",setup(e){const t=Me(),n=$(()=>t.getters[V.GETTERS.APP_CONFIG]),r=$(()=>t.getters[V.GETTERS.LANGUAGE]),a=$(()=>t.getters[Y.GETTERS.AUTH_USER_PROFILE]),s=$(()=>l()),o=$(()=>c()),i=$(()=>f()),u=["DATA_COLLECTED","INFORMATION_USAGE","INFORMATION_PROTECTION","INFORMATION_DISCLOSURE","SITE_USAGE_BY_CHILDREN","YOUR_CONSENT","ACCOUNT_DELETION","CHANGES_TO_OUR_PRIVACY_POLICY"];function c(){return a.value.timezone?a.value.timezone:Intl.DateTimeFormat().resolvedOptions().timeZone?Intl.DateTimeFormat().resolvedOptions().timeZone:"Europe/Paris"}function l(){return qg[r.value]}function f(){return xn(n.value.privacy_policy&&n.value.privacy_policy_date?`${n.value.privacy_policy_date}`:Z2e,o.value,s.value,!1)}return(d,m)=>(A(),N("div",K2e,[p("h1",null,h(gt(d.$t("privacy_policy.TITLE"))),1),p("p",Y2e,[K(h(d.$t("privacy_policy.LAST_UPDATE"))+": ",1),p("time",null,h(i.value),1)]),n.value.privacy_policy?(A(),N("div",{key:0,innerHTML:E(ma)(E(Po)(n.value.privacy_policy))},null,8,q2e)):(A(),N(ve,{key:1},ze(u,_=>(A(),N(ve,{key:_},[p("h2",null,h(d.$t(`privacy_policy.CONTENT.${_}.TITLE`)),1),p("p",{innerHTML:E(ma)(d.$t(`privacy_policy.CONTENT.${_}.CONTENT`))},null,8,X2e)],64))),64))]))}});const pA=se(Q2e,[["__scopeId","data-v-31d5cd27"]]),J2e={id:"user-privacy-policy"},ebe={key:1},tbe={class:"policy-content"},nbe={for:"accepted_policy",class:"accepted_policy"},rbe={class:"form-buttons"},abe={class:"confirm",type:"submit"},sbe=Q({__name:"UserPrivacyPolicyValidation",props:{user:{}},setup(e){const t=e,{user:n}=Te(t),r=Me(),a=$(()=>r.getters[V.GETTERS.ERROR_MESSAGES]),s=le(!1);function o(){r.dispatch(Y.ACTIONS.ACCEPT_PRIVACY_POLICY,s.value)}return Rt(()=>{r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)}),(i,u)=>{const c=ue("ErrorMessage"),l=ue("router-link"),f=ue("i18n-t");return A(),N("div",J2e,[a.value?(A(),re(c,{key:0,message:a.value},null,8,["message"])):x("",!0),E(n).accepted_privacy_policy?(A(),N("div",ebe,[p("p",null,[U(f,{keypath:"user.YOU_HAVE_ACCEPTED_PRIVACY_POLICY"},{default:pe(()=>[U(l,{to:"/privacy-policy"},{default:pe(()=>[K(h(i.$t("privacy_policy.TITLE")),1)]),_:1})]),_:1})]),p("button",{class:"cancel",onClick:u[0]||(u[0]=d=>i.$router.push("/profile"))},h(i.$t("user.PROFILE.BACK_TO_PROFILE")),1)])):(A(),N("form",{key:2,onSubmit:u[3]||(u[3]=Ze(d=>o(),["prevent"]))},[p("div",tbe,[U(pA)]),p("label",nbe,[Xe(p("input",{type:"checkbox",id:"accepted_policy",required:"","onUpdate:modelValue":u[1]||(u[1]=d=>s.value=d)},null,512),[[tf,s.value]]),p("span",null,[U(f,{keypath:"user.READ_AND_ACCEPT_PRIVACY_POLICY"},{default:pe(()=>[K(h(i.$t("privacy_policy.TITLE")),1)]),_:1})])]),U(l,{to:"/profile/edit/account"},{default:pe(()=>[K(h(i.$t("user.I_WANT_TO_DELETE_MY_ACCOUNT")),1)]),_:1}),p("div",rbe,[p("button",abe,h(i.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:u[2]||(u[2]=d=>i.$router.push("/profile"))},h(i.$t("user.PROFILE.BACK_TO_PROFILE")),1)])],32))])}}});const obe=se(sbe,[["__scopeId","data-v-1ebb076f"]]),ibe=["profile:read","profile:write","users:read","users:write","workouts:read","workouts:write"],ube=["application:write"],cbe={id:"new-oauth2-app"},lbe={id:"new-oauth2-title"},dbe={id:"apps-form"},fbe=["onSubmit"],pbe={class:"form-items"},mbe={class:"form-item"},_be={for:"app-name"},Ebe={class:"form-item"},hbe={for:"app-description"},Tbe={class:"form-item"},gbe={for:"app-url"},Abe={class:"form-item"},Sbe={for:"app-redirect-uri"},Obe={class:"form-item-scope"},Ibe={class:"form-item-scope-label"},vbe={class:"scope-label"},bbe=["name","checked","onChange"],Rbe=["innerHTML"],Nbe={class:"form-buttons"},ybe=["disabled"],Cbe=Q({__name:"AddUserApp",props:{authUser:{}},setup(e){const t=e,n=Me(),r=zt({client_name:"",client_uri:"",client_description:"",description:"",redirect_uri:""}),a=zt([]),s=$(()=>c(t.authUser,ube,ibe));function o(){const l={client_name:r.client_name,client_description:r.client_description,client_uri:r.client_uri,redirect_uris:[r.redirect_uri],scope:a.sort().join(" ")};n.dispatch(Ke.ACTIONS.CREATE_CLIENT,l)}function i(l){r.client_description=l}function u(l){const f=a.indexOf(l);f>-1?a.splice(f,1):a.push(l)}function c(l,f,d){const m=[...d];return l.admin&&m.push(...f),m.sort()}return(l,f)=>{const d=ue("CustomTextArea");return A(),N("div",cbe,[p("h1",lbe,h(l.$t("oauth2.ADD_A_NEW_APP")),1),p("div",dbe,[p("form",{onSubmit:Ze(o,["prevent"])},[p("div",pbe,[p("div",mbe,[p("label",_be,h(l.$t("oauth2.APP.NAME"))+"*",1),Xe(p("input",{id:"app-name",type:"text",required:"","onUpdate:modelValue":f[0]||(f[0]=m=>r.client_name=m)},null,512),[[nt,r.client_name]])]),p("div",Ebe,[p("label",hbe,h(l.$t("oauth2.APP.DESCRIPTION")),1),U(d,{name:"app-description",charLimit:200,input:r.description,onUpdateValue:i},null,8,["input"])]),p("div",Tbe,[p("label",gbe,h(l.$t("oauth2.APP.URL"))+"*",1),Xe(p("input",{id:"app-url",type:"text",required:"","onUpdate:modelValue":f[1]||(f[1]=m=>r.client_uri=m)},null,512),[[nt,r.client_uri]])]),p("div",Abe,[p("label",Sbe,h(l.$t("oauth2.APP.REDIRECT_URL"))+"* ",1),Xe(p("input",{id:"app-redirect-uri",type:"text",required:"","onUpdate:modelValue":f[2]||(f[2]=m=>r.redirect_uri=m)},null,512),[[nt,r.redirect_uri]])]),p("div",Obe,[p("div",Ibe,h(l.$t("oauth2.APP.SCOPE.LABEL"))+"* ",1),(A(!0),N(ve,null,ze(s.value,m=>(A(),N("div",{class:"form-item-scope-checkboxes",key:m},[p("label",vbe,[p("input",{type:"checkbox",name:m,checked:a.includes(m),onChange:_=>u(m)},null,40,bbe),p("code",null,h(m),1)]),p("p",{class:"scope-description",innerHTML:l.$t(`oauth2.APP.SCOPE.${m}_DESCRIPTION`)},null,8,Rbe)]))),128))])]),p("div",Nbe,[p("button",{class:"confirm",type:"submit",disabled:a.length===0},h(l.$t("buttons.SUBMIT")),9,ybe),p("button",{class:"cancel",onClick:f[3]||(f[3]=Ze(()=>l.$router.push("/profile/apps"),["prevent"]))},h(l.$t("buttons.CANCEL")),1)])],40,fbe)])])}}});const Dbe=se(Cbe,[["__scopeId","data-v-e2284e06"]]),Pbe={id:"authorize-oauth2-app"},wbe={key:0},Lbe={id:"authorize-oauth2-title"},$be={class:"oauth2-access description-list"},kbe={class:"client-scope"},Ube=["innerHTML"],Mbe={class:"authorize-oauth2-buttons"},xbe={key:1},Fbe={class:"no-app"},Wbe=Q({__name:"AuthorizeUserApp",setup(e){const t=Kt(),n=Me(),r=$(()=>n.getters[Ke.GETTERS.CLIENT]),a=$(()=>n.getters[V.GETTERS.ERROR_MESSAGES]);bt(()=>s());function s(){t.query.client_id&&typeof t.query.client_id=="string"&&n.dispatch(Ke.ACTIONS.GET_CLIENT_BY_CLIENT_ID,t.query.client_id)}function o(){n.dispatch(Ke.ACTIONS.AUTHORIZE_CLIENT,{client_id:`${t.query.client_id}`,redirect_uri:`${t.query.redirect_uri}`,response_type:`${t.query.response_type}`,scope:`${t.query.scope}`,state:`${t.query.state?t.query.state:""}`,code_challenge:`${t.query.code_challenge?t.query.code_challenge:""}`,code_challenge_method:`${t.query.code_challenge_method?t.query.code_challenge_method:""}`})}return(i,u)=>{const c=ue("router-link"),l=ue("i18n-t"),f=ue("ErrorMessage");return A(),N("div",Pbe,[r.value.client_id?(A(),N("div",wbe,[p("h1",Lbe,[U(l,{keypath:"oauth2.AUTHORIZE_APP"},{default:pe(()=>[U(c,{to:{name:"UserApp",params:{id:r.value.id}}},{default:pe(()=>[K(h(r.value.name),1)]),_:1},8,["to"])]),_:1})]),a.value?(A(),re(f,{key:0,message:a.value},null,8,["message"])):x("",!0),p("div",$be,[p("p",null,h(i.$t("oauth2.APP_REQUESTING_ACCESS")),1),p("dl",null,[(A(!0),N(ve,null,ze(r.value.scope.split(" "),d=>(A(),N(ve,{key:d},[p("dt",kbe,[p("code",null,h(d),1)]),p("dd",{innerHTML:i.$t(`oauth2.APP.SCOPE.${d}_DESCRIPTION`)},null,8,Ube)],64))),128))]),p("div",Mbe,[p("button",{class:"danger",onClick:o},h(i.$t("buttons.AUTHORIZE")),1),p("button",{class:"cancel",onClick:u[0]||(u[0]=d=>i.$router.push("/profile/apps"))},h(i.$t("buttons.CANCEL")),1)])])])):(A(),N("div",xbe,[p("p",Fbe,h(i.$t("oauth2.NO_APP")),1),p("button",{onClick:u[1]||(u[1]=d=>i.$router.push("/profile/apps"))},h(i.$t("buttons.BACK")),1)]))])}}});const Gbe=se(Wbe,[["__scopeId","data-v-a8ed6bf8"]]),zbe={id:"oauth2-apps"},Bbe=Q({__name:"index",props:{user:{}},setup(e){const t=e,n=Me(),{user:r}=Te(t);return Rt(()=>{n.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),n.commit(Ke.MUTATIONS.SET_CLIENTS,[])}),(a,s)=>{const o=ue("router-view");return A(),N("div",zbe,[U(o,{authUser:E(r)},null,8,["authUser"])])}}}),Hbe={id:"oauth2-app",class:"description-list"},jbe={key:1},Vbe={key:0,class:"info-box success-message"},Kbe=["title"],Ybe={key:0},qbe={key:1,class:"app-secret"},Xbe=["title"],Zbe={class:"client-scopes"},Qbe={class:"app-buttons"},Jbe={key:2},eRe={class:"no-app"},tRe=Q({__name:"UserApp",props:{authUser:{},afterCreation:{type:Boolean,default:!1}},setup(e){const t=e,n=Kt(),r=Me(),{afterCreation:a,authUser:s}=Te(t),o=$(()=>r.getters[Ke.GETTERS.CLIENT]),i=$(()=>r.getters[Ke.GETTERS.REVOCATION_SUCCESSFUL]),u=le(!1),c=le(""),l=le(!1),f=le(!1),d=le(!1);bt(()=>{m(),navigator.clipboard&&(d.value=!0)});function m(){!a.value&&n.params.id&&typeof n.params.id=="string"&&r.dispatch(Ke.ACTIONS.GET_CLIENT_BY_ID,+n.params.id)}function _(v){c.value=v?"oauth2.APP_DELETION_CONFIRMATION":"oauth2.TOKENS_REVOCATION_CONFIRMATION",g(!0)}function g(v){u.value=v,v||(c.value="")}function R(v){c.value==="oauth2.APP_DELETION_CONFIRMATION"?r.dispatch(Ke.ACTIONS.DELETE_CLIENT,v):r.dispatch(Ke.ACTIONS.REVOKE_ALL_TOKENS,v)}function I(){navigator.clipboard.writeText(o.value.client_id),l.value=!0,f.value=!1,setTimeout(()=>{l.value=!1},3e3)}function b(){o.value.client_secret&&(navigator.clipboard.writeText(o.value.client_secret),f.value=!0,l.value=!1,setTimeout(()=>{f.value=!1},3e3))}return Rt(()=>{r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),r.commit(Ke.MUTATIONS.EMPTY_CLIENT),r.commit(Ke.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!1)}),Be(()=>i.value,v=>{v&&g(!1)}),(v,T)=>{const L=ue("Modal");return A(),N("div",Hbe,[u.value?(A(),re(L,{key:0,title:v.$t("common.CONFIRMATION"),message:v.$t(c.value),onConfirmAction:T[0]||(T[0]=w=>R(o.value.id)),onCancelAction:T[1]||(T[1]=w=>g(!1)),onKeydown:T[2]||(T[2]=Ot(w=>g(!1),["esc"]))},null,8,["title","message"])):x("",!0),o.value&&o.value.client_id?(A(),N("div",jbe,[E(a)||i.value?(A(),N("div",Vbe,h(v.$t(E(a)?"oauth2.APP_CREATED_SUCCESSFULLY":"oauth2.TOKENS_REVOKED")),1)):x("",!0),p("dl",null,[p("dt",null,h(v.$t("oauth2.APP.CLIENT_ID"))+":",1),p("dd",null,[K(h(o.value.client_id)+" ",1),E(a)&&d.value?(A(),N("i",{key:0,class:Ae(`fa fa-${l.value?"check":"copy"}`),"aria-hidden":"true",title:v.$t("oauth2.COPY_TO_CLIPBOARD"),onClick:I},null,10,Kbe)):x("",!0)]),E(a)&&o.value.client_secret?(A(),N("dt",Ybe,h(v.$t("oauth2.APP.CLIENT_SECRET"))+": ",1)):x("",!0),E(a)&&o.value.client_secret?(A(),N("dd",qbe,[K(h(o.value.client_secret)+" ",1),d.value?(A(),N("i",{key:0,class:Ae(`fa fa-${f.value?"check":"copy"}`),"aria-hidden":"true",title:v.$t("oauth2.COPY_TO_CLIPBOARD"),onClick:b},null,10,Xbe)):x("",!0)])):x("",!0),p("dt",null,h(gt(v.$t("oauth2.APP.ISSUE_AT")))+":",1),p("dd",null,[p("time",null,h(E(xn)(o.value.issued_at,E(s).timezone,E(s).date_format)),1)]),p("dt",null,h(v.$t("oauth2.APP.NAME"))+":",1),p("dd",null,h(o.value.name),1),p("dt",null,h(v.$t("oauth2.APP.DESCRIPTION"))+":",1),p("dd",{class:Ae({"no-description":!o.value.client_description})},h(o.value.client_description?o.value.client_description:v.$t("oauth2.NO_DESCRIPTION")),3),p("dt",null,h(v.$t("oauth2.APP.URL"))+":",1),p("dd",null,h(o.value.website),1),p("dt",null,h(v.$t("oauth2.APP.REDIRECT_URL"))+":",1),p("dd",null,h(o.value.redirect_uris.length>0?o.value.redirect_uris[0]:""),1),p("dt",null,h(v.$t("oauth2.APP.SCOPE.LABEL"))+":",1),p("dd",Zbe,[(A(!0),N(ve,null,ze(o.value.scope.split(" "),w=>(A(),N("span",{class:"client-scope",key:w},[p("code",null,h(w),1)]))),128))])]),p("div",Qbe,[p("button",{class:"danger",onClick:T[3]||(T[3]=w=>_(!1))},h(v.$t("oauth2.REVOKE_ALL_TOKENS")),1),p("button",{class:"danger",onClick:T[4]||(T[4]=w=>_(!0))},h(v.$t("oauth2.DELETE_APP")),1),p("button",{onClick:T[5]||(T[5]=w=>v.$router.push("/profile/apps"))},h(v.$t("buttons.BACK")),1)])])):(A(),N("div",Jbe,[p("p",eRe,h(v.$t("oauth2.NO_APP")),1),p("button",{onClick:T[6]||(T[6]=w=>v.$router.push("/profile/apps"))},h(v.$t("buttons.BACK")),1)]))])}}});const K_=se(tRe,[["__scopeId","data-v-3a7d0f4a"]]),nRe={id:"oauth2-apps-list"},rRe={class:"apps-list"},aRe={key:0},sRe={class:"app-issued-at"},oRe={key:1,class:"no-apps"},iRe={class:"app-list-buttons"},uRe=Q({__name:"UserAppsList",props:{authUser:{}},setup(e){const t=e,n=Me(),r=Kt(),{authUser:a}=Te(t),s=$(()=>n.getters[Ke.GETTERS.CLIENTS]),o=$(()=>n.getters[Ke.GETTERS.CLIENTS_PAGINATION]);let i=u(r.query);bt(()=>{c(i)});function u(l){const f={};return l.page&&(f.page=Rd(l.page,Bg)),f}function c(l){n.dispatch(Ke.ACTIONS.GET_CLIENTS,l)}return Be(()=>r.query,async l=>{i=u(l),c(i)}),(l,f)=>{const d=ue("router-link");return A(),N("div",nRe,[p("p",rRe,h(l.$t("oauth2.APPS_LIST")),1),s.value.length>0?(A(),N("ul",aRe,[(A(!0),N(ve,null,ze(s.value,m=>(A(),N("li",{key:m.client_id},[U(d,{to:{name:"UserApp",params:{id:m.id}}},{default:pe(()=>[K(h(m.name),1)]),_:2},1032,["to"]),p("span",sRe,[K(h(l.$t("oauth2.APP.ISSUE_AT"))+" ",1),p("time",null,h(E(xn)(m.issued_at,E(a).timezone,E(a).date_format)),1)])]))),128))])):(A(),N("div",oRe,h(l.$t("oauth2.NO_APPS")),1)),s.value.length>0?(A(),re($u,{key:2,pagination:o.value,path:"/profile/apps",query:E(i)},null,8,["pagination","query"])):x("",!0),p("div",iRe,[p("button",{onClick:f[0]||(f[0]=m=>l.$router.push("/profile/apps/new"))},h(l.$t("oauth2.NEW_APP")),1),p("button",{onClick:f[1]||(f[1]=m=>l.$router.push("/"))},h(l.$t("common.HOME")),1)])])}}});const cRe=se(uRe,[["__scopeId","data-v-064a87b7"]]),lRe={id:"user-sport-preferences"},dRe={key:0,class:"responsive-table"},fRe={class:"mobile-display"},pRe={key:0,class:"profile-buttons mobile-display"},mRe={key:1,class:"profile-buttons"},_Re={class:"text-left"},ERe={key:0},hRe={class:"cell-heading"},TRe=["value"],gRe={class:"cell-heading"},ARe={key:0,class:"disabled-message"},SRe={key:1,class:"fa fa-refresh fa-spin fa-fw"},ORe={class:"cell-heading"},IRe={class:"cell-heading"},vRe=["checked"],bRe={class:"cell-heading"},RRe=["value"],NRe={key:1},yRe={key:0,class:"action-buttons"},CRe={class:"cell-heading"},DRe=["onClick"],PRe={key:1,class:"edition-buttons"},wRe=["disabled"],LRe=["disabled","onClick"],$Re=["disabled"],kRe={key:0,class:"profile-buttons"},URe={key:1,class:"profile-buttons"},MRe="#838383",xRe=Q({__name:"UserSportPreferences",props:{user:{},isEdition:{type:Boolean}},setup(e){const t=e,n=Me(),{t:r}=Vt(),{isEdition:a,user:s}=Te(t),o=ht("sportColors"),i=$(()=>n.getters[Mt.GETTERS.SPORTS]),u=$(()=>qr(i.value,r,"is_active",s.value.sports_list)),c=$(()=>n.getters[Y.GETTERS.USER_LOADING]),l=$(()=>n.getters[V.GETTERS.ERROR_MESSAGES]),f=zt({sport_id:0,color:null,is_active:!0,stopped_speed_threshold:1});function d(T){T!==null?(f.sport_id=T.id,f.color=T.color?T.color:o?o[T.label]:MRe,f.is_active=T.is_active_for_user,f.stopped_speed_threshold=T.stopped_speed_threshold):I()}function m(T){return f.sport_id===T}function _(T){f.color=T.target.value}function g(T){f.stopped_speed_threshold=parseFloat(T.target.value)}function R(T){f.is_active=T.target.checked}function I(){f.sport_id=0,f.color=null,f.is_active=!0,f.stopped_speed_threshold=1,n.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)}function b(T){T.preventDefault(),n.dispatch(Y.ACTIONS.UPDATE_USER_SPORT_PREFERENCES,f)}function v(T,L){T.preventDefault(),n.dispatch(Y.ACTIONS.RESET_USER_SPORT_PREFERENCES,L)}return Be(()=>c.value,T=>{!T&&!l.value&&I()}),(T,L)=>{const w=ue("SportImage"),P=ue("ErrorMessage");return A(),N("div",lRe,[i.value.length>0?(A(),N("div",dRe,[p("div",fRe,[E(a)?(A(),N("div",pRe,[p("button",{class:"cancel",onClick:L[0]||(L[0]=Ze(j=>T.$router.push("/profile/sports"),["prevent"]))},h(T.$t("buttons.BACK")),1)])):(A(),N("div",mRe,[p("button",{onClick:L[1]||(L[1]=j=>T.$router.push("/profile/edit/sports"))},h(T.$t("user.PROFILE.EDIT_SPORTS_PREFERENCES")),1),p("button",{onClick:L[2]||(L[2]=j=>T.$router.push("/"))},h(T.$t("common.HOME")),1)]))]),p("table",null,[p("thead",null,[p("tr",null,[p("th",null,h(T.$t("user.PROFILE.SPORT.COLOR")),1),p("th",_Re,h(T.$t("workouts.SPORT",0)),1),p("th",null,h(T.$t("workouts.WORKOUT",0)),1),p("th",null,h(T.$t("user.PROFILE.SPORT.IS_ACTIVE")),1),p("th",null,h(T.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD")),1),E(a)?(A(),N("th",ERe,h(T.$t("user.PROFILE.SPORT.ACTION")),1)):x("",!0)])]),p("tbody",null,[(A(!0),N(ve,null,ze(u.value,j=>(A(),N("tr",{key:j.id},[p("td",null,[p("span",hRe,h(T.$t("user.PROFILE.SPORT.COLOR")),1),m(j.id)?(A(),N("input",{key:0,class:"sport-color",type:"color",value:f.color,onInput:_},null,40,TRe)):(A(),re(w,{key:1,title:j.translatedLabel,"sport-label":j.label,color:j.color?j.color:E(o)[j.label]},null,8,["title","sport-label","color"]))]),p("td",{class:Ae(["sport-label",{"disabled-sport":!j.is_active}])},[p("span",gRe,h(T.$t("user.PROFILE.SPORT.LABEL")),1),K(" "+h(j.translatedLabel)+" ",1),j.is_active?x("",!0):(A(),N("span",ARe," ("+h(T.$t("user.PROFILE.SPORT.DISABLED_BY_ADMIN"))+") ",1)),c.value&&m(j.id)?(A(),N("i",SRe)):x("",!0),l.value&&f.sport_id===j.id?(A(),re(P,{key:2,message:l.value},null,8,["message"])):x("",!0)],2),p("td",{class:Ae(["text-center",{"disabled-sport":!j.is_active}])},[p("span",ORe,h(T.$t("workouts.WORKOUT",0)),1),p("i",{class:Ae(`fa fa${E(s).sports_list.includes(j.id)?"-check":""}`),"aria-hidden":"true"},null,2)],2),p("td",{class:Ae(["text-center",{"disabled-sport":!j.is_active}])},[p("span",IRe,h(T.$t("user.PROFILE.SPORT.IS_ACTIVE")),1),m(j.id)&&j.is_active?(A(),N("input",{key:0,type:"checkbox",checked:j.is_active_for_user,onChange:R},null,40,vRe)):(A(),N("i",{key:1,class:Ae(`fa fa${j.is_active_for_user?"-check":""}`),"aria-hidden":"true"},null,2))],2),p("td",{class:Ae(["text-center",{"disabled-sport":!j.is_active}])},[p("span",bRe,h(T.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD")),1),m(j.id)&&j.is_active?(A(),N("input",{key:0,class:"threshold-input",type:"number",min:"0",step:"0.1",value:f.stopped_speed_threshold,onInput:g},null,40,RRe)):(A(),N("span",NRe,h(j.stopped_speed_threshold),1))],2),E(a)?(A(),N("td",yRe,[p("span",CRe,h(T.$t("user.PROFILE.SPORT.ACTION")),1),f.sport_id===0?(A(),N("button",{key:0,onClick:G=>d(j)},h(T.$t("buttons.EDIT")),9,DRe)):x("",!0),m(j.id)?(A(),N("div",PRe,[p("button",{disabled:c.value,onClick:b},h(T.$t("buttons.SUBMIT")),9,wRe),p("button",{disabled:c.value,onClick:G=>v(G,j.id)},h(T.$t("buttons.RESET")),9,LRe),p("button",{disabled:c.value,onClick:L[3]||(L[3]=G=>d(null))},h(T.$t("buttons.CANCEL")),9,$Re)])):x("",!0)])):x("",!0)]))),128))])]),E(a)?(A(),N("div",kRe,[p("button",{class:"cancel",onClick:L[4]||(L[4]=Ze(j=>T.$router.push("/profile/sports"),["prevent"]))},h(T.$t("buttons.BACK")),1)])):(A(),N("div",URe,[p("button",{onClick:L[5]||(L[5]=j=>T.$router.push("/profile/edit/sports"))},h(T.$t("user.PROFILE.EDIT_SPORTS_PREFERENCES")),1),p("button",{onClick:L[6]||(L[6]=j=>T.$router.push("/"))},h(T.$t("common.HOME")),1)]))])):x("",!0)])}}});const Y_=se(xRe,[["__scopeId","data-v-aa4857fe"]]),Xo=e=>(ut("data-v-43bcf522"),e=e(),ct(),e),FRe={class:"about-text"},WRe=["innerHTML"],GRe=Xo(()=>p("i",{class:"fa fa-book fa-padding","aria-hidden":"true"},null,-1)),zRe=["href"],BRe=Xo(()=>p("i",{class:"fa fa-github fa-padding","aria-hidden":"true"},null,-1)),HRe={href:"https://github.com/SamR1/FitTrackee",target:"_blank",rel:"noopener noreferrer"},jRe=Xo(()=>p("i",{class:"fa fa-balance-scale fa-padding","aria-hidden":"true"},null,-1)),VRe=Xo(()=>p("a",{href:"https://choosealicense.com/licenses/agpl-3.0/",target:"_blank",rel:"noopener noreferrer"}," AGPLv3 ",-1)),KRe={key:0},YRe=Xo(()=>p("i",{class:"fa fa-envelope-o fa-padding","aria-hidden":"true"},null,-1)),qRe=["href"],XRe={key:1},ZRe=["href"],QRe={class:"about-instance"},JRe=["innerHTML"],eNe=Q({__name:"About",setup(e){const t=Me(),n=$(()=>t.getters[V.GETTERS.APP_CONFIG]),r=$(()=>o()),a=$(()=>t.getters[V.GETTERS.LANGUAGE]),s=$(()=>i());function o(){const u={};return n.value.weather_provider==="visualcrossing"&&(u.name="Visual Crossing",u.url="https://www.visualcrossing.com"),u}function i(){let u="https://samr1.github.io/FitTrackee/";return a.value==="fr"&&(u+="fr/"),u}return(u,c)=>{const l=ue("i18n-t");return A(),N("div",FRe,[p("div",null,[p("p",{class:"error-message",innerHTML:u.$t("about.FITTRACKEE_DESCRIPTION")},null,8,WRe),p("p",null,[GRe,p("a",{class:"documentation-link",href:s.value,target:"_blank",rel:"noopener noreferrer"},h(gt(u.$t("common.DOCUMENTATION"))),9,zRe)]),p("p",null,[BRe,p("a",HRe,h(u.$t("about.SOURCE_CODE")),1)]),p("p",null,[jRe,U(l,{keypath:"about.FITTRACKEE_LICENSE"},{default:pe(()=>[VRe]),_:1})]),n.value.admin_contact?(A(),N("div",KRe,[YRe,p("a",{href:`mailto:${n.value.admin_contact}`},h(u.$t("about.CONTACT_ADMIN")),9,qRe)])):x("",!0),r.value&&r.value.name?(A(),N("div",XRe,[K(h(u.$t("about.WEATHER_DATA_FROM"))+" ",1),p("a",{href:r.value.url,target:"_blank",rel:"nofollow noopener"},h(r.value.name),9,ZRe)])):x("",!0),n.value.about?(A(),N(ve,{key:2},[p("p",QRe,h(u.$t("about.ABOUT_THIS_INSTANCE")),1),p("div",{innerHTML:E(ma)(E(Po)(n.value.about))},null,8,JRe)],64)):x("",!0)])])}}});const tNe=se(eNe,[["__scopeId","data-v-43bcf522"]]);const nNe={},rNe={id:"bike"},aNe=["src"];function sNe(e,t){return A(),N("div",rNe,[p("img",{class:"bike-img",src:"/img/bike.svg",alt:"mountain bike"},null,8,aNe)])}const mA=se(nNe,[["render",sNe],["__scopeId","data-v-dc181e30"]]),oNe={id:"about",class:"view"},iNe={class:"container"},uNe={class:"container-sub"},cNe={class:"container-sub about-details"},lNe=Q({__name:"AboutView",setup(e){return(t,n)=>(A(),N("div",oNe,[p("div",iNe,[p("div",uNe,[U(mA)]),p("div",cNe,[U(tNe)])])]))}});const dNe=se(lNe,[["__scopeId","data-v-ef9c7198"]]),fNe={id:"error"},pNe={class:"error-content"},mNe=Q({__name:"Error",props:{title:{},message:{},buttonText:{},path:{default:"/"}},setup(e){const t=e,{buttonText:n,title:r,message:a,path:s}=Te(t);return(o,i)=>(A(),N("div",fNe,[p("div",pNe,[p("h1",null,h(E(r)),1),p("p",null,h(E(a)),1),E(n)?(A(),N("button",{key:0,onClick:i[0]||(i[0]=u=>o.$router.push(E(s))),class:"upper"},h(E(n)),1)):x("",!0)])]))}});const _Ne=se(mNe,[["__scopeId","data-v-48ec856d"]]),i0=Q({__name:"NotFound",props:{target:{default:"PAGE"}},setup(e){const t=e,{target:n}=Te(t),r=le(),a=le(!1);St(()=>s());function s(){r.value=setTimeout(()=>{a.value=!0},500)}return Rt(()=>{r.value&&clearTimeout(r.value)}),(o,i)=>a.value?(A(),re(_Ne,{key:0,title:"404",message:o.$t(`error.NOT_FOUND.${E(n)}`),"button-text":o.$t("common.HOME")},null,8,["message","button-text"])):x("",!0)}}),ENe=e=>(ut("data-v-7a6fcd1c"),e=e(),ct(),e),hNe={id:"admin",class:"view"},TNe={key:0,class:"container"},gNe=ENe(()=>p("div",{id:"bottom"},null,-1)),ANe=Q({__name:"AdminView",setup(e){const t=Me(),n=$(()=>t.getters[V.GETTERS.APP_CONFIG]),r=$(()=>t.getters[V.GETTERS.APP_STATS]),a=$(()=>t.getters[Y.GETTERS.IS_ADMIN]),s=$(()=>t.getters[Y.GETTERS.USER_LOADING]);return bt(()=>t.dispatch(V.ACTIONS.GET_APPLICATION_STATS)),(o,i)=>{const u=ue("router-view");return A(),N("div",hNe,[s.value?x("",!0):(A(),N("div",TNe,[a.value?(A(),re(u,{key:0,appConfig:n.value,appStatistics:r.value},null,8,["appConfig","appStatistics"])):(A(),re(i0,{key:1})),gNe]))])}}});const SNe=se(ANe,[["__scopeId","data-v-7a6fcd1c"]]),_A="/img/workouts/mountains.svg",ONe=p("div",{class:"map-attribution"},[p("span",{class:"map-attribution-text"},"©"),p("a",{class:"map-attribution-text",href:"https://www.openstreetmap.org/copyright",target:"_blank",rel:"noopener noreferrer"}," OpenStreetMap ")],-1),EA=Q({__name:"StaticMap",props:{workout:{},displayHover:{type:Boolean,default:!1}},setup(e){const t=e,{displayHover:n}=Te(t),r=`${Fo()}workouts/map/${t.workout.map}`;return(a,s)=>(A(),N("div",{class:Ae(["static-map",{"display-hover":E(n)}])},[E(n)?(A(),N("img",{key:0,src:r,alt:""})):(A(),N("div",{key:1,class:"bg-map-image",style:Hr({backgroundImage:`url(${r})`})},null,4)),ONe],2))}});const u0=e=>(ut("data-v-61a66a22"),e=e(),ct(),e),INe={class:"timeline-workout"},vNe={class:"box"},bNe={class:"workout-user-date"},RNe={class:"workout-user"},NNe=["title"],yNe={key:0},CNe={key:1,class:"no-map"},DNe={class:"img"},PNe={class:"data"},wNe=u0(()=>p("i",{class:"fa fa-clock-o","aria-hidden":"true"},null,-1)),LNe={key:0},$Ne={class:"data"},kNe=u0(()=>p("i",{class:"fa fa-road","aria-hidden":"true"},null,-1)),UNe={key:0,class:"data elevation"},MNe=["alt"],xNe={class:"data-values"},FNe={key:1,class:"data altitude"},WNe=u0(()=>p("i",{class:"fa fa-location-arrow","aria-hidden":"true"},null,-1)),GNe={class:"data-values"},zNe=Q({__name:"WorkoutCard",props:{user:{},useImperialUnits:{type:Boolean},workout:{default:()=>({})},sport:{default:()=>({})}},setup(e){const t=e,n=Me(),{user:r,workout:a,sport:s,useImperialUnits:o}=Te(t),i=$(()=>n.getters[V.GETTERS.LOCALE]);function u(l){return l.with_gpx&&l.min_alt!==null&&l.max_alt!==null}function c(l){return u(l)&&l.ascent!==null&&l.descent!==null}return(l,f)=>{var g;const d=ue("router-link"),m=ue("SportImage"),_=ue("Distance");return A(),N("div",INe,[p("div",vNe,[p("div",bNe,[p("div",RNe,[U(Wo,{user:E(r)},null,8,["user"]),E(r).username?(A(),re(d,{key:0,class:"workout-user-name",to:{name:"User",params:{username:E(r).username}}},{default:pe(()=>[K(h(E(r).username),1)]),_:1},8,["to"])):x("",!0)]),E(a).id?(A(),re(d,{key:0,class:"workout-title",to:{name:"Workout",params:{workoutId:E(a).id}}},{default:pe(()=>[K(h(E(a).title),1)]),_:1},8,["to"])):x("",!0),E(a).workout_date&&E(r)?(A(),N("div",{key:1,class:"workout-date",title:E(xn)(E(a).workout_date,E(r).timezone,E(r).date_format)},h(E(jN)(new Date(E(a).workout_date),new Date,{addSuffix:!0,locale:i.value})),9,NNe)):x("",!0)]),p("div",{class:Ae(["workout-map",{"no-cursor":!E(a)}]),onClick:f[0]||(f[0]=R=>E(a).id?l.$router.push({name:"Workout",params:{workoutId:E(a).id}}):null)},[E(a)?(A(),N("div",yNe,[E(a).with_gpx?(A(),re(EA,{key:0,workout:E(a)},null,8,["workout"])):(A(),N("div",CNe,h(l.$t("workouts.NO_MAP")),1))])):x("",!0)],2),p("div",{class:Ae(["workout-data",{"without-elevation":!u(E(a))}]),onClick:f[1]||(f[1]=R=>E(a).id?l.$router.push({name:"Workout",params:{workoutId:E(a).id}}):null)},[p("div",DNe,[(g=E(s))!=null&&g.label?(A(),re(m,{key:0,"sport-label":E(s).label,color:E(s).color},null,8,["sport-label","color"])):x("",!0)]),p("div",PNe,[wNe,E(a)?(A(),N("span",LNe,h(E(a).moving),1)):x("",!0)]),p("div",$Ne,[kNe,E(a).id?(A(),re(_,{key:0,distance:E(a).distance,digits:3,unitFrom:"km",useImperialUnits:E(o)},null,8,["distance","useImperialUnits"])):x("",!0)]),u(E(a))?(A(),N("div",UNe,[p("img",{class:"mountains",src:_A,alt:l.$t("workouts.ELEVATION")},null,8,MNe),p("div",xNe,[E(a).id?(A(),re(_,{key:0,distance:E(a).min_alt,unitFrom:"m",displayUnit:!1,useImperialUnits:E(o)},null,8,["distance","useImperialUnits"])):x("",!0),K("/ "),E(a).id?(A(),re(_,{key:1,distance:E(a).max_alt,unitFrom:"m",useImperialUnits:E(o)},null,8,["distance","useImperialUnits"])):x("",!0)])])):x("",!0),c(E(a))?(A(),N("div",FNe,[WNe,p("div",GNe,[K(" +"),E(a).id?(A(),re(_,{key:0,distance:E(a).ascent,unitFrom:"m",displayUnit:!1,useImperialUnits:E(o)},null,8,["distance","useImperialUnits"])):x("",!0),K("/- "),E(a).id?(A(),re(_,{key:1,distance:E(a).descent,unitFrom:"m",useImperialUnits:E(o)},null,8,["distance","useImperialUnits"])):x("",!0)])])):x("",!0)],2)])])}}});const q_=se(zNe,[["__scopeId","data-v-61a66a22"]]);const BNe={},HNe={class:"no-workouts box"};function jNe(e,t){const n=ue("router-link");return A(),N("div",HNe,[p("div",null,[K(h(e.$t("workouts.NO_WORKOUTS"))+" ",1),U(n,{to:"/workouts/add"},{default:pe(()=>[K(h(e.$t("workouts.UPLOAD_FIRST_WORKOUT")),1)]),_:1})])])}const c0=se(BNe,[["render",jNe],["__scopeId","data-v-b0c91cc6"]]),VNe=(e,t,n)=>{const r={speed:{label:t("workouts.SPEED"),backgroundColor:["#FFFFFF"],borderColor:["#8884d8"],borderWidth:2,data:[],yAxisID:"ySpeed"},elevation:{label:t("workouts.ELEVATION"),backgroundColor:["#e5e5e5"],borderColor:["#cccccc"],borderWidth:1,fill:!0,data:[],yAxisID:"yElevation"}},a=[],s=[],o=[];return e.map(i=>{a.push(Fi("km",i.distance,n)),s.push(i.duration),r.speed.data.push(Fi("km",i.speed,n)),i.elevation!==void 0&&r.elevation.data.push(Fi("m",i.elevation,n)),o.push({latitude:i.latitude,longitude:i.longitude})}),{distance_labels:a,duration_labels:s,datasets:r,coordinates:o}},KNe=e=>{const t=e.length;if(t===0)return{};const n={};return e.map(r=>{n[r.sport_id]||(n[r.sport_id]={count:0,percentage:0}),n[r.sport_id].count+=1,n[r.sport_id].percentage=n[r.sport_id].count/t}),n},Lo={order:"desc",order_by:"workout_date"},YNe={id:"timeline"},qNe={class:"section-title"},XNe={key:0},ZNe={key:1},QNe={key:1,class:"more-workouts"},Ri=5,JNe=Q({__name:"Timeline",props:{sports:{},user:{}},setup(e){const t=e,n=Me(),{sports:r,user:a}=Te(t),s=le(1),o=t.user.nb_workouts>=Ri?Ri:t.user.nb_workouts;bt(()=>c());const i=$(()=>n.getters[ge.GETTERS.TIMELINE_WORKOUTS]),u=$(()=>i.value.length>0?i.value[i.value.length-1].previous_workout!==null:!1);function c(){n.dispatch(ge.ACTIONS.GET_TIMELINE_WORKOUTS,{page:s.value,per_page:Ri,...Lo})}function l(){s.value+=1,n.dispatch(ge.ACTIONS.GET_MORE_TIMELINE_WORKOUTS,{page:s.value,per_page:Ri,...Lo})}return(f,d)=>(A(),N("div",YNe,[p("div",qNe,h(f.$t("workouts.LATEST_WORKOUTS")),1),E(a).nb_workouts>0&&i.value.length===0?(A(),N("div",XNe,[(A(!0),N(ve,null,ze([...Array(E(o)).keys()],m=>(A(),re(q_,{user:E(a),useImperialUnits:E(a).imperial_units,key:m},null,8,["user","useImperialUnits"]))),128))])):(A(),N("div",ZNe,[(A(!0),N(ve,null,ze(i.value,m=>(A(),re(q_,{workout:m,sport:i.value.length>0?E(r).filter(_=>_.id===m.sport_id)[0]:null,user:E(a),useImperialUnits:E(a).imperial_units,key:m.id},null,8,["workout","sport","user","useImperialUnits"]))),128)),i.value.length===0?(A(),re(c0,{key:0})):x("",!0),u.value?(A(),N("div",QNe,[p("button",{onClick:l},h(f.$t("workouts.LOAD_MORE_WORKOUT")),1)])):x("",!0)]))]))}});const e3e=se(JNe,[["__scopeId","data-v-e0964959"]]),t3e=["title"],hA=Q({__name:"CalendarWorkout",props:{displayHARecord:{type:Boolean},workout:{},sportLabel:{},sportColor:{}},setup(e){const t=e,{displayHARecord:n,workout:r,sportLabel:a,sportColor:s}=Te(t);return(o,i)=>{const u=ue("SportImage");return A(),N("div",{class:"calendar-workout",onClick:i[0]||(i[0]=c=>o.$router.push({name:"Workout",params:{workoutId:E(r).id}}))},[U(u,{"sport-label":E(a),title:E(r).title,color:E(s)},null,8,["sport-label","title","color"]),p("sup",null,[E(r).records.length>0?(A(),N("i",{key:0,class:"fa fa-trophy custom-fa-small","aria-hidden":"true",title:E(r).records.filter(c=>E(n)?!0:c.record_type!=="HA").map(c=>` ${o.$t(`workouts.RECORD_${c.record_type}`)}`)[0]},null,8,t3e)):x("",!0)])])}}});const n3e={class:"donut-chart"},r3e={height:"34",width:"34",viewBox:"0 0 34 34"},a3e=["stroke","stroke-dashoffset","transform"],X_=16,Z_=16,Q_=14,s3e=Q({__name:"DonutChart",props:{colors:{},datasets:{}},setup(e){const t=e,{colors:n,datasets:r}=Te(t);let a=-90;const s=2*Math.PI*Q_;function o(u,c){return c-u*c}function i(u,c){const l=`rotate(${a}, ${X_}, ${Z_})`;return a=c*360+a,l}return(u,c)=>(A(),N("div",n3e,[(A(),N("svg",r3e,[(A(!0),N(ve,null,ze(Object.entries(E(r)),(l,f)=>(A(),N("g",{key:f},[p("circle",{cx:X_,cy:Z_,r:Q_,fill:"transparent",stroke:E(n)[+l[0]],"stroke-dashoffset":o(l[1].percentage,s),"stroke-dasharray":s,"stroke-width":"3","stroke-opacity":"0.8",transform:i(f,l[1].percentage)},null,8,a3e)]))),128))]))]))}}),o3e={class:"calendar-workouts-chart"},i3e={class:"workouts-count"},u3e={key:0,class:"workouts-pane"},c3e={class:"more-workouts"},l3e=Q({__name:"CalendarWorkoutsChart",props:{colors:{},datasets:{},sports:{},workouts:{},displayHARecord:{type:Boolean}},setup(e){const t=e,{colors:n,datasets:r,sports:a,workouts:s}=Te(t),o=le(!0);function i(u){u.stopPropagation(),o.value=!o.value}return(u,c)=>{const l=uO("click-outside");return A(),N("div",o3e,[p("div",{class:"workouts-chart",onClick:i},[p("div",i3e,h(E(s).length),1),U(s3e,{datasets:E(r),colors:E(n)},null,8,["datasets","colors"])]),o.value?x("",!0):(A(),N("div",u3e,[Xe((A(),N("div",c3e,[p("i",{class:"fa fa-times calendar-more","aria-hidden":"true",onClick:i}),(A(!0),N(ve,null,ze(E(s),(f,d)=>(A(),re(hA,{key:d,displayHARecord:u.displayHARecord,workout:f,sportLabel:E(t0)(f,E(a)),sportColor:E(n0)(f,E(a))},null,8,["displayHARecord","workout","sportLabel","sportColor"]))),128))])),[[l,i]])]))])}}});const J_=se(l3e,[["__scopeId","data-v-dee1fca1"]]),d3e={class:"calendar-workouts"},f3e={class:"desktop-display"},p3e={key:0,class:"workouts-display"},m3e={key:1,class:"donut-display"},_3e={class:"mobile-display"},E3e={key:0,class:"donut-display"},eE=6,h3e=Q({__name:"CalendarWorkouts",props:{displayHARecord:{type:Boolean},workouts:{},sports:{}},setup(e){const t=e,{displayHARecord:n,workouts:r,sports:a}=Te(t),s=$(()=>KNe(t.workouts)),o=$(()=>age(t.sports));return(i,u)=>(A(),N("div",d3e,[p("div",f3e,[E(r).length<=eE?(A(),N("div",p3e,[(A(!0),N(ve,null,ze(E(r).slice(0,eE),(c,l)=>(A(),re(hA,{key:l,displayHARecord:E(n),workout:c,sportLabel:E(t0)(c,E(a)),sportColor:E(n0)(c,E(a))},null,8,["displayHARecord","workout","sportLabel","sportColor"]))),128))])):(A(),N("div",m3e,[U(J_,{workouts:E(r),sports:E(a),datasets:s.value,colors:o.value,displayHARecord:E(n)},null,8,["workouts","sports","datasets","colors","displayHARecord"])]))]),p("div",_3e,[E(r).length>0?(A(),N("div",E3e,[U(J_,{workouts:E(r),sports:E(a),datasets:s.value,colors:o.value,displayHARecord:E(n)},null,8,["workouts","sports","datasets","colors","displayHARecord"])])):x("",!0)])]))}});const T3e={class:"calendar-cells"},g3e={class:"calendar-cell-day"},A3e=Q({__name:"CalendarCells",props:{currentDay:{},displayHARecord:{type:Boolean},endDate:{},sports:{},startDate:{},timezone:{},weekStartingMonday:{type:Boolean},workouts:{}},setup(e){const t=e,{currentDay:n,displayHARecord:r,endDate:a,sports:s,startDate:o,timezone:i,weekStartingMonday:u,workouts:c}=Te(t),l=le([]);St(()=>f());function f(){l.value=[];let _=o.value;for(;_<=a.value;){const g=[];for(let R=0;R<7;R++)g.push(_),_=Go(_,1);l.value.push(g)}}function d(_){return u.value?[5,6].includes(_):[0,6].includes(_)}function m(_,g){return g?g.filter(R=>w1(Ac(R.workout_date,i.value),_)).reverse():[]}return Be(()=>t.currentDay,()=>f()),(_,g)=>(A(),N("div",T3e,[(A(!0),N(ve,null,ze(l.value,(R,I)=>(A(),N("div",{class:"calendar-row",key:I},[(A(!0),N(ve,null,ze(R,(b,v)=>(A(),N("div",{class:Ae(["calendar-cell",{"disabled-cell":!E(KN)(b,E(n)),"week-end":d(v),today:E(YN)(b)}]),key:v},[U(h3e,{workouts:m(b,E(c)),sports:E(s),displayHARecord:E(r)},null,8,["workouts","sports","displayHARecord"]),p("div",g3e,h(E(dn)(b,"d")),1)],2))),128))]))),128))]))}});const S3e={class:"calendar-days"},O3e=Q({__name:"CalendarDays",props:{startDate:{},localeOptions:{}},setup(e){const t=e,n=[];for(let r=0;r<7;r++)n.push(Go(t.startDate,r));return(r,a)=>(A(),N("div",S3e,[(A(),N(ve,null,ze(n,(s,o)=>p("div",{class:"calendar-day",key:o},h(E(dn)(s,"EEE",{locale:r.localeOptions})),1)),64))]))}});const I3e={class:"calendar-header"},v3e=p("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1),b3e=[v3e],R3e={class:"calendar-month"},N3e=p("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1),y3e=[N3e],C3e=Q({__name:"CalendarHeader",props:{day:{},localeOptions:{}},emits:["displayNextMonth","displayPreviousMonth"],setup(e,{emit:t}){const n=e,r=t,{day:a,localeOptions:s}=Te(n);return(o,i)=>(A(),N("div",I3e,[p("div",{class:"calendar-arrow calendar-arrow-left",onClick:i[0]||(i[0]=u=>r("displayPreviousMonth"))},b3e),p("div",R3e,[p("span",null,h(E(dn)(E(a),"MMM yyyy",{locale:E(s)})),1)]),p("div",{class:"calendar-arrow calendar-arrow-right",onClick:i[1]||(i[1]=u=>r("displayNextMonth"))},y3e)]))}});const D3e={id:"user-calendar"},P3e={class:"calendar-card box"},tE="yyyy-MM-dd",w3e=Q({__name:"index",props:{sports:{},user:{}},setup(e){const t=e,n=Me(),{sports:r,user:a}=Te(t),s=le(new Date),o=le($_(s.value,a.value.weekm)),i=$(()=>n.getters[ge.GETTERS.CALENDAR_WORKOUTS]),u=$(()=>n.getters[V.GETTERS.LOCALE]);bt(()=>c());function c(){o.value=$_(s.value,t.user.weekm);const d={from:dn(o.value.start,tE),to:dn(o.value.end,tE),page:1,per_page:100,...Lo};n.dispatch(ge.ACTIONS.GET_CALENDAR_WORKOUTS,d)}function l(){s.value=rs(s.value,1),c()}function f(){s.value=Eo(s.value,1),c()}return(d,m)=>(A(),N("div",D3e,[p("div",P3e,[U(C3e,{day:s.value,"locale-options":u.value,onDisplayNextMonth:l,onDisplayPreviousMonth:f},null,8,["day","locale-options"]),U(O3e,{"start-date":o.value.start,"locale-options":u.value},null,8,["start-date","locale-options"]),U(A3e,{currentDay:s.value,displayHARecord:E(a).display_ascent,"end-date":o.value.end,sports:E(r),"start-date":o.value.start,timezone:E(a).timezone,workouts:i.value,weekStartingMonday:E(a).weekm},null,8,["currentDay","displayHARecord","end-date","sports","start-date","timezone","workouts","weekStartingMonday"])])]))}});const TA={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},L3e={type:{type:String,required:!0},...TA},$3e=ph[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function La(e){return Wu(e)?Je(e):e}function k3e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return Wu(t)?new Proxy(e,{}):e}function U3e(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function gA(e,t){e.labels=t}function AA(e,t,n){const r=[];e.datasets=t.map(a=>{const s=e.datasets.find(o=>o[n]===a[n]);return!s||!a.data||r.includes(s)?{...a}:(r.push(s),Object.assign(s,a),s)})}function M3e(e,t){const n={labels:[],datasets:[]};return gA(n,e.labels),AA(n,e.datasets,t),n}const x3e=Q({props:L3e,setup(e,t){let{expose:n}=t;const r=le(null),a=Gu(null);n({chart:a});const s=()=>{if(!r.value)return;const{type:u,data:c,options:l,plugins:f,datasetIdKey:d}=e,m=M3e(c,d),_=k3e(m,c);a.value=new kd(r.value,{type:u,data:_,options:{...l},plugins:f})},o=()=>{const u=Je(a.value);u&&(u.destroy(),a.value=null)},i=u=>{u.update(e.updateMode)};return St(s),ko(o),Be([()=>e.options,()=>e.data],(u,c)=>{let[l,f]=u,[d,m]=c;const _=Je(a.value);if(!_)return;let g=!1;if(l){const R=La(l),I=La(d);R&&R!==I&&(U3e(_,R),g=!0)}if(f){const R=La(f.labels),I=La(m.labels),b=La(f.datasets),v=La(m.datasets);R!==I&&(gA(_.config.data,R),g=!0),b&&b!==v&&(AA(_.config.data,b,e.datasetIdKey),g=!0)}g&&i(_)},{deep:!0}),()=>Rn("canvas",{ref:r})}});function SA(e,t){return kd.register(t),Q({props:TA,setup(n,r){let{expose:a}=r;const s=Gu(null),o=i=>{s.value=i==null?void 0:i.chart};return a({chart:s}),()=>Rn(x3e,$3e({ref:o},{type:e,...n}))}})}const F3e=SA("bar",hE),W3e=SA("line",TE),G3e=(e,t=!1)=>{let n="0";t&&(n=String(Math.floor(e/86400)),e%=86400);const r=String(Math.floor(e/3600)).padStart(2,"0");e%=3600;const a=String(Math.floor(e/60)).padStart(2,"0"),s=String(e%60).padStart(2,"0");return t?`${n==="0"?"":`${n}d `}${r==="00"?"":`${r}h `}${a}m ${s}s`:`${r==="00"?"":`${r}:`}${a}:${s}`},Bs=(e,t,n,r=!0,a="km")=>{const s=n?$n[a].defaultTarget:a;switch(e){case"average_speed":return`${t.toFixed(2)} ${s}/h`;case"total_duration":return G3e(t,r);case"total_distance":case"total_ascent":case"total_descent":return`${t.toFixed(2)} ${s}`;default:return t.toString()}},z3e=Q({__name:"Chart",props:{datasets:{},labels:{},displayedData:{},displayedSportIds:{},fullStats:{type:Boolean},useImperialUnits:{type:Boolean}},setup(e){const t=e,{datasets:n,labels:r,displayedData:a,displayedSportIds:s,fullStats:o,useImperialUnits:i}=Te(t),{t:u}=Vt(),c=$(()=>({labels:r.value,datasets:JSON.parse(JSON.stringify(n.value))})),l=$(()=>({responsive:!0,maintainAspectRatio:!1,animation:!1,layout:{padding:{top:o.value?40:22}},scales:{x:{stacked:!0,grid:{drawOnChartArea:!1}},y:{stacked:a.value!=="average_speed",grid:{drawOnChartArea:!1},ticks:{maxTicksLimit:6,callback:function(_){return Bs(a.value,+_,i.value,!1,m(a.value))}},afterFit:function(_){_.width=o.value?90:60}}},plugins:{datalabels:{anchor:"end",align:"end",color:function(_){return a.value==="average_speed"&&_.dataset.backgroundColor?_.dataset.backgroundColor[0]:"#666666"},rotation:function(_){return o.value&&_.chart.chartArea.width<580?310:0},display:function(_){return o.value&&_.chart.chartArea.width<300?!1:a.value==="average_speed"?s.value.length==1?"auto":!1:!0},formatter:function(_,g){if(a.value==="average_speed")return Bs(a.value,_,i.value,!1);{const R=g.chart.data.datasets.map(I=>I.data[g.dataIndex]).reduce((I,b)=>d(I,b),0);return g.datasetIndex===s.value.length-1&&R>0?Bs(a.value,R,i.value,!1,m(a.value)):null}}},legend:{display:!1},tooltip:{interaction:{intersect:!0,mode:"index",position:a.value==="average_speed"?"nearest":"average"},filter:function(_){return _.formattedValue!=="0"},callbacks:{label:function(_){let g=u(`sports.${_.dataset.label}.LABEL`)||"";return g&&(g+=": "),_.parsed.y!==null&&(g+=Bs(a.value,_.parsed.y,i.value,!0,m(a.value))),g},footer:function(_){if(a.value==="average_speed")return"";let g=0;return _.map(R=>{g+=R.parsed.y}),`${u("common.TOTAL")}: `+Bs(a.value,g,i.value,!0,m(a.value))}}}}}));function f(_){return isNaN(_)?0:+_}function d(_,g){return f(_)+f(g)}function m(_){return["total_ascent","total_descent"].includes(_)?"m":"km"}return(_,g)=>(A(),N("div",{class:Ae(["bar-chart",{minimal:!E(o)}])},[U(E(F3e),{data:c.value,options:l.value},null,8,["data","options"])],2))}});const B3e=se(z3e,[["__scopeId","data-v-aa296c87"]]),{locale:nE}=Aa.global,H3e={week:{api:"yyyy-MM-dd",chart:"MM/dd/yyyy"},month:{api:"yyyy-MM",chart:"MM/yyyy"},year:{api:"yyyy",chart:"yyyy"}},j3e=["average_speed","nb_workouts","total_duration","total_distance","total_ascent","total_descent"],V3e=(e,t)=>{const n=[];for(let r=TAe(e.duration,e.start,t);r<=e.end;r=gAe(e.duration,r))n.push(r);return n},$a=(e,t,n=!1)=>{const r={label:e,backgroundColor:[t],data:[]};return n?(r.type="line",r.borderColor=[t],r.spanGaps=!0):r.type="bar",r},K3e=e=>{const t={average_speed:[],nb_workouts:[],total_distance:[],total_duration:[],total_ascent:[],total_descent:[]};return e.map(n=>{const r=n.color?n.color:e0[n.label];t.average_speed.push($a(n.label,r,!0)),t.nb_workouts.push($a(n.label,r)),t.total_distance.push($a(n.label,r)),t.total_duration.push($a(n.label,r)),t.total_ascent.push($a(n.label,r)),t.total_descent.push($a(n.label,r))}),t},Y3e=(e,t,n)=>{switch(e){case"average_speed":case"total_distance":case"total_ascent":case"total_descent":return Fi(["average_speed","total_distance"].includes(e)?"km":"m",t,n);default:case"nb_workouts":case"total_duration":return t}},q3e=(e,t,n,r,a,s,o)=>{const i=V3e(e,t),u=H3e[e.duration],c=n.filter(m=>r.includes(m.id)),l=[],f=K3e(c),d={};return c.map(m=>d[m.label]=m.id),i.map(m=>{const _=dn(m,u.api),g=dn(m,e.duration==="week"?Oa(o,nE.value):u.chart,{locale:Ho[nE.value]});l.push(g),j3e.map(R=>{f[R].map(I=>{I.data.push(_ in a&&d[I.label]in a[_]?Y3e(R,a[_][d[I.label]][R],s):R==="average_speed"?null:0)})})}),{labels:l,datasets:f}},X3e=(e,t,n)=>{const r=n?1:0,a=t==="year"?hf($l(e,9)):t==="week"?tc(Eo(e,2),{weekStartsOn:r}):Bo(Eo(e,11)),s=t==="year"?L1(e):t==="week"?Tf(e,{weekStartsOn:r}):zo(e);return{duration:t,end:s,start:a}},Z3e=(e,t,n)=>{const{duration:r,start:a,end:s}=e,o=n?1:0;return{duration:r,end:r==="year"?L1(t?$l(s,1):ou(s,1)):r==="week"?Tf(t?Mp(s,1):Ll(s,1),{weekStartsOn:o}):zo(t?Eo(s,1):rs(s,1)),start:r==="year"?hf(t?$l(a,1):ou(a,1)):r==="week"?tc(t?Mp(a,1):Ll(a,1),{weekStartsOn:o}):Bo(t?Eo(a,1):rs(a,1))}},Q3e={class:"stats-chart"},J3e={key:0},eye={key:1},tye={class:"chart-radio"},nye=["checked","disabled"],rye=["checked","disabled"],aye=["checked","disabled"],sye={key:0},oye=["checked","disabled"],iye={key:1},uye=["checked","disabled"],cye={key:2},lye=["checked","disabled"],dye=Q({__name:"index",props:{sports:{},user:{},chartParams:{},displayedSportIds:{default:()=>[]},fullStats:{type:Boolean,default:!1},hideChartIfNoData:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},setup(e){const t=e,{sports:n,user:r,chartParams:a,displayedSportIds:s,fullStats:o,hideChartIfNoData:i,isDisabled:u}=Te(t),c=Me(),l=le("total_distance"),f=$(()=>c.getters[Br.GETTERS.USER_STATS]),d=$(()=>q3e(a.value,r.value.weekm,n.value,s.value,f.value,r.value.imperial_units,r.value.date_format)),m=$(()=>d.value.datasets[l.value]),_=$(()=>d.value.labels),g=$(()=>Object.keys(f.value).length===0);bt(()=>R(b(a.value,r.value)));function R(v){c.dispatch(Br.ACTIONS.GET_USER_STATS,{username:r.value.username,filterType:"by_time",params:v})}function I(v){l.value=v.target.name}function b(v,T){return{from:dn(v.start,"yyyy-MM-dd"),to:dn(v.end,"yyyy-MM-dd"),time:v.duration==="week"?`week${T.weekm?"m":""}`:v.duration}}return Be(()=>a.value,async v=>{R(b(v,r.value))}),(v,T)=>(A(),N("div",Q3e,[E(i)&&g.value?(A(),N("div",J3e,h(v.$t("workouts.NO_WORKOUTS")),1)):(A(),N("div",eye,[p("div",tye,[p("label",null,[p("input",{type:"radio",name:"total_distance",checked:l.value==="total_distance",disabled:E(u),onClick:I},null,8,nye),K(" "+h(v.$t("workouts.DISTANCE")),1)]),p("label",null,[p("input",{type:"radio",name:"total_duration",checked:l.value==="total_duration",disabled:E(u),onClick:I},null,8,rye),K(" "+h(v.$t("workouts.DURATION")),1)]),p("label",null,[p("input",{type:"radio",name:"nb_workouts",checked:l.value==="nb_workouts",disabled:E(u),onClick:I},null,8,aye),K(" "+h(v.$t("workouts.WORKOUT",2)),1)]),E(o)?(A(),N("label",sye,[p("input",{type:"radio",name:"average_speed",checked:l.value==="average_speed",disabled:E(u),onClick:I},null,8,oye),K(" "+h(v.$t("workouts.AVERAGE_SPEED")),1)])):x("",!0),E(o)?(A(),N("label",iye,[p("input",{type:"radio",name:"total_ascent",checked:l.value==="total_ascent",disabled:E(u),onClick:I},null,8,uye),K(" "+h(v.$t("workouts.ASCENT")),1)])):x("",!0),E(o)?(A(),N("label",cye,[p("input",{type:"radio",name:"total_descent",checked:l.value==="total_descent",disabled:E(u),onClick:I},null,8,lye),K(" "+h(v.$t("workouts.DESCENT")),1)])):x("",!0)]),_.value.length>0?(A(),re(B3e,{key:0,datasets:m.value,labels:_.value,displayedData:l.value,displayedSportIds:E(s),fullStats:E(o),useImperialUnits:E(r).imperial_units},null,8,["datasets","labels","displayedData","displayedSportIds","fullStats","useImperialUnits"])):x("",!0)]))]))}});const OA=se(dye,[["__scopeId","data-v-b8d7f5c9"]]),fye={class:"user-month-stats"},pye=Q({__name:"UserMonthStats",props:{sports:{},user:{}},setup(e){const t=e,{sports:n,user:r}=Te(t),a=new Date,s={duration:"week",start:Bo(a),end:zo(a)},o=n.value.map(i=>i.id);return(i,u)=>{const c=ue("Card");return A(),N("div",fye,[U(c,null,{title:pe(()=>[K(h(i.$t("dashboard.THIS_MONTH")),1)]),content:pe(()=>[U(OA,{sports:E(n),user:E(r),"chart-params":s,"displayed-sport-ids":E(o),"hide-chart-if-no-data":!0},null,8,["sports","user","displayed-sport-ids"])]),_:1})])}}});const mye=se(pye,[["__scopeId","data-v-8f59a282"]]),{locale:_ye}=Aa.global,Eye=(e,t,n,r)=>{const a="km",s=n?$n[a].defaultTarget:a,o="m",i=n?$n[o].defaultTarget:o;let u;switch(e.record_type){case"AS":case"MS":u=`${on(+e.value,a,s,2)} ${s}/h`;break;case"FD":u=`${on(+e.value,a,s,3)} ${s}`;break;case"HA":u=`${on(+e.value,o,i,2)} ${i}`;break;case"LD":u=e.value;break;default:throw new Error(`Invalid record type, expected: "AS", "FD", "HA", "LD", "MD", got: "${e.record_type}"`)}return{id:e.id,record_type:e.record_type,sport_id:e.sport_id,value:u,user:e.user,workout_date:xn(e.workout_date,t,r,!1),workout_id:e.workout_id}},hye=(e,t)=>{const n=e.label.toLowerCase(),r=t.label.toLowerCase();return n>r?1:n(s=Oa(s,_ye.value),e.filter(o=>a?!0:o.record_type!=="HA").reduce((o,i)=>{const u=t.find(c=>c.id===i.sport_id);return u&&u.label&&(o[u.translatedLabel]===void 0&&(o[u.translatedLabel]={label:u.label,color:u.color,records:[]}),o[u.translatedLabel].records.push(Eye(i,n,r,s))),o},{})),gye={class:"records-card"},Aye={class:"record-type"},Sye={class:"record-value"},Oye={class:"record-date"},Iye=Q({__name:"RecordsCard",props:{records:{},sportTranslatedLabel:{}},setup(e){const t=e,{records:n,sportTranslatedLabel:r}=Te(t),{t:a}=Vt();function s(o){const i=[];return o.map(u=>{i.push({...u,label:a(`workouts.RECORD_${u.record_type}`)})}),i.sort(hye)}return(o,i)=>{const u=ue("SportImage"),c=ue("router-link"),l=ue("Card");return A(),N("div",gye,[U(l,null,{title:pe(()=>[U(u,{"sport-label":E(n).label,color:E(n).color},null,8,["sport-label","color"]),K(" "+h(E(r)),1)]),content:pe(()=>[(A(!0),N(ve,null,ze(s(E(n).records),f=>(A(),N("div",{class:"record",key:f.id},[p("span",Aye,h(f.label),1),p("span",Sye,h(f.value),1),p("span",Oye,[U(c,{to:{name:"Workout",params:{workoutId:f.workout_id}}},{default:pe(()=>[p("time",null,h(f.workout_date),1)]),_:2},1032,["to"])])]))),128))]),_:1})])}}});const vye=se(Iye,[["__scopeId","data-v-64523a87"]]),bye=e=>(ut("data-v-fff33919"),e=e(),ct(),e),Rye={class:"user-records-section"},Nye={class:"section-title"},yye=bye(()=>p("i",{class:"fa fa-trophy custom-fa-small","aria-hidden":"true"},null,-1)),Cye={class:"user-records"},Dye={key:0,class:"no-records"},Pye=Q({__name:"index",props:{sports:{},user:{}},setup(e){const t=e,{t:n}=Vt(),r=$(()=>Tye(t.user.records,qr(t.sports,n),t.user.timezone,t.user.imperial_units,t.user.display_ascent,t.user.date_format));return(a,s)=>(A(),N("div",Rye,[p("div",Nye,[yye,K(" "+h(a.$t("workouts.RECORD",2)),1)]),p("div",Cye,[Object.keys(r.value).length===0?(A(),N("div",Dye,h(a.$t("workouts.NO_RECORDS")),1)):x("",!0),(A(!0),N(ve,null,ze(Object.keys(r.value).sort(),o=>(A(),re(vye,{sportTranslatedLabel:o,records:r.value[o],key:o,useImperialUnits:a.user.imperial_units},null,8,["sportTranslatedLabel","records","useImperialUnits"]))),128))])]))}});const wye=se(Pye,[["__scopeId","data-v-fff33919"]]),Lye={id:"user-stats"},ul="km",cl="m",$ye=Q({__name:"index",props:{user:{}},setup(e){const t=e,{t:n}=Vt(),{user:r}=Te(t),a=$(()=>t.user.total_duration),s=$(()=>l(a)),o=r.value.imperial_units?$n[ul].defaultTarget:ul,i=$(()=>r.value.imperial_units?on(r.value.total_distance,ul,o,2):parseFloat(r.value.total_distance.toFixed(2))),u=r.value.imperial_units?$n[cl].defaultTarget:cl,c=$(()=>r.value.imperial_units?on(r.value.total_ascent,cl,u,2):parseFloat(r.value.total_ascent.toFixed(2)));function l(f){const d=f.value.match(/day/g)?f.value.split(", ")[1]:f.value;return{days:f.value.match(/day/g)?`${f.value.split(" ")[0]} ${f.value.match(/days/g)?n("common.DAY",2):n("common.DAY",1)}`:`0 ${n("common.DAY",2)},`,duration:`${d.split(":")[0]}h ${d.split(":")[1]}min`}}return(f,d)=>(A(),N("div",Lye,[U(dr,{icon:"calendar",value:E(r).nb_workouts,text:f.$t("workouts.WORKOUT",E(r).nb_workouts)},null,8,["value","text"]),U(dr,{icon:"road",value:i.value,text:E(o)==="mi"?"miles":E(o)},null,8,["value","text"]),E(r).display_ascent?(A(),re(dr,{key:0,icon:"location-arrow",value:c.value,text:E(u)==="ft"?"feet":E(u)},null,8,["value","text"])):x("",!0),U(dr,{icon:"clock-o",value:s.value.days,text:s.value.duration},null,8,["value","text"]),E(r).display_ascent?x("",!0):(A(),re(dr,{key:1,icon:"tags",value:E(r).nb_sports,text:f.$t("workouts.SPORT",E(r).nb_sports)},null,8,["value","text"]))]))}});const kye={},Uye={class:"privacy-policy-message"};function Mye(e,t){const n=ue("router-link"),r=ue("i18n-t");return A(),N("div",Uye,[p("span",null,[U(r,{keypath:"user.LAST_PRIVACY_POLICY_TO_VALIDATE"},{default:pe(()=>[U(n,{to:"/profile/edit/privacy-policy"},{default:pe(()=>[K(h(e.$t("user.REVIEW")),1)]),_:1})]),_:1})])])}const xye=se(kye,[["render",Mye],["__scopeId","data-v-9714d129"]]),Zo=e=>(ut("data-v-8f5da609"),e=e(),ct(),e),Fye={key:0,id:"dashboard",class:"view"},Wye={class:"container mobile-menu"},Gye={class:"box"},zye=Zo(()=>p("i",{class:"fa fa-calendar","aria-hidden":"true"},null,-1)),Bye=[zye],Hye=Zo(()=>p("i",{class:"fa fa-bar-chart","aria-hidden":"true"},null,-1)),jye=[Hye],Vye=Zo(()=>p("i",{class:"fa fa-map-o","aria-hidden":"true"},null,-1)),Kye=[Vye],Yye=Zo(()=>p("i",{class:"fa fa-trophy","aria-hidden":"true"},null,-1)),qye=[Yye],Xye={key:0,class:"container privacy-policy-message"},Zye={class:"container"},Qye={class:"container dashboard-container"},Jye={class:"left-container dashboard-sub-container"},eCe={class:"right-container dashboard-sub-container"},tCe=Zo(()=>p("div",{id:"bottom"},null,-1)),nCe={key:1,class:"app-loading"},rCe=Q({__name:"Dashboard",setup(e){const t=Me(),n=$(()=>t.getters[Y.GETTERS.AUTH_USER_PROFILE]),r=$(()=>t.getters[Mt.GETTERS.SPORTS]),a=le("calendar");bt(()=>t.dispatch(Y.ACTIONS.GET_USER_PROFILE));function s(o){a.value=o}return(o,i)=>{const u=ue("Loader");return n.value.username&&r.value.length>0?(A(),N("div",Fye,[p("div",Wye,[p("div",Gye,[p("div",{class:Ae(["mobile-menu-item",{"is-selected":a.value==="calendar"}]),onClick:i[0]||(i[0]=c=>s("calendar"))},Bye,2),p("div",{class:Ae(["mobile-menu-item",{"is-selected":a.value==="chart"}]),onClick:i[1]||(i[1]=c=>s("chart"))},jye,2),p("div",{class:Ae(["mobile-menu-item",{"is-selected":a.value==="timeline"}]),onClick:i[2]||(i[2]=c=>s("timeline"))},Kye,2),p("div",{class:Ae(["mobile-menu-item",{"is-selected":a.value==="records"}]),onClick:i[3]||(i[3]=c=>s("records"))},qye,2)])]),n.value.accepted_privacy_policy?x("",!0):(A(),N("div",Xye,[U(xye)])),p("div",Zye,[U($ye,{user:n.value},null,8,["user"])]),p("div",Qye,[p("div",Jye,[U(mye,{sports:r.value,user:n.value,class:Ae({"is-hidden":a.value!=="chart"})},null,8,["sports","user","class"]),U(wye,{sports:r.value,user:n.value,class:Ae({"is-hidden":a.value!=="records"})},null,8,["sports","user","class"])]),p("div",eCe,[U(w3e,{sports:r.value,user:n.value,class:Ae({"is-hidden":a.value!=="calendar"})},null,8,["sports","user","class"]),U(e3e,{sports:r.value,user:n.value,class:Ae({"is-hidden":a.value!=="timeline"})},null,8,["sports","user","class"])])]),tCe])):(A(),N("div",nCe,[U(u)]))}}});const aCe=se(rCe,[["__scopeId","data-v-8f5da609"]]),sCe={class:"not-found view"},oCe=Q({__name:"NotFoundView",setup(e){return(t,n)=>(A(),N("div",sCe,[U(i0)]))}}),iCe={id:"privacy-policy",class:"view"},uCe={class:"container"},cCe=p("div",{id:"bottom"},null,-1),lCe=Q({__name:"PrivacyPolicyView",setup(e){const t=Me();return bt(()=>{t.dispatch(V.ACTIONS.GET_APPLICATION_PRIVACY_POLICY)}),(n,r)=>(A(),N("div",iCe,[p("div",uCe,[U(pA)]),cCe]))}}),IA=e=>(ut("data-v-174c91c4"),e=e(),ct(),e),dCe={class:"chart-menu"},fCe=["disabled"],pCe=IA(()=>p("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1)),mCe=[pCe],_Ce={class:"time-frames custom-checkboxes-group"},ECe={class:"time-frames-checkboxes custom-checkboxes"},hCe=["id","name","checked","onInput","disabled"],TCe=["id","tabindex","onKeydown"],gCe=["disabled"],ACe=IA(()=>p("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1)),SCe=[ACe],OCe=Q({__name:"StatsMenu",props:{isDisabled:{type:Boolean}},emits:["arrowClick","timeFrameUpdate"],setup(e,{emit:t}){const n=e,{isDisabled:r}=Te(n),a=t,s=le("month"),o=["week","month","year"];function i(u){s.value=u,a("timeFrameUpdate",u)}return St(()=>{if(!r.value){const u=document.getElementById("frame-month");u&&u.focus()}}),(u,c)=>(A(),N("div",dCe,[p("button",{class:"chart-arrow transparent",onClick:c[0]||(c[0]=l=>a("arrowClick",!0)),onKeydown:c[1]||(c[1]=Ot(l=>a("arrowClick",!0),["enter"])),disabled:E(r)},mCe,40,fCe),p("div",_Ce,[p("div",ECe,[(A(),N(ve,null,ze(o,l=>p("div",{class:"time-frame custom-checkbox",key:l},[p("label",null,[p("input",{type:"radio",id:l,name:l,checked:s.value===l,onInput:f=>i(l),disabled:E(r)},null,40,hCe),p("span",{id:`frame-${l}`,tabindex:E(r)?-1:0,role:"button",onKeydown:Ot(f=>i(l),["enter"])},h(u.$t(`statistics.TIME_FRAMES.${l}`)),41,TCe)])])),64))])]),p("button",{class:"chart-arrow transparent",onClick:c[2]||(c[2]=l=>a("arrowClick",!1)),onKeydown:c[3]||(c[3]=Ot(l=>a("arrowClick",!1),["enter"])),disabled:E(r)},SCe,40,gCe)]))}});const ICe=se(OCe,[["__scopeId","data-v-174c91c4"]]),vCe={class:"sports-menu"},bCe=["id","name","checked","onInput"],RCe={class:"sport-label"},NCe=Q({__name:"StatsSportsMenu",props:{userSports:{},selectedSportIds:{default:()=>[]}},emits:["selectedSportIdsUpdate"],setup(e,{emit:t}){const n=e,r=t,{t:a}=Vt(),s=ht("sportColors"),{selectedSportIds:o}=Te(n),i=$(()=>qr(n.userSports,a));function u(c){r("selectedSportIdsUpdate",c)}return(c,l)=>{const f=ue("SportImage");return A(),N("div",vCe,[(A(!0),N(ve,null,ze(i.value,d=>(A(),N("label",{type:"checkbox",key:d.id,style:Hr({color:d.color?d.color:E(s)[d.label]})},[p("input",{type:"checkbox",id:`${d.id}`,name:d.label,checked:E(o).includes(d.id),onInput:m=>u(d.id)},null,40,bCe),U(f,{"sport-label":d.label,color:d.color},null,8,["sport-label","color"]),p("span",RCe,h(d.translatedLabel),1)],4))),128))])}}});const yCe={key:0,id:"user-statistics"},CCe=Q({__name:"index",props:{sports:{},user:{},isDisabled:{type:Boolean}},setup(e){const t=e,{t:n}=Vt(),{sports:r,user:a}=Te(t),s=le("month"),o=le(l(s.value)),i=$(()=>qr(t.sports,n)),u=le(d(r.value));function c(_){s.value=_,o.value=l(s.value)}function l(_){return X3e(new Date,_,t.user.weekm)}function f(_){o.value=Z3e(o.value,_,t.user.weekm)}function d(_){return _.map(g=>g.id)}function m(_){u.value.includes(_)?u.value=u.value.filter(g=>g!==_):u.value.push(_)}return Be(()=>t.sports,_=>{u.value=d(_)}),(_,g)=>i.value?(A(),N("div",yCe,[U(ICe,{onTimeFrameUpdate:c,onArrowClick:f,isDisabled:_.isDisabled},null,8,["isDisabled"]),U(OA,{sports:E(r),user:E(a),chartParams:o.value,"displayed-sport-ids":u.value,fullStats:!0,isDisabled:_.isDisabled},null,8,["sports","user","chartParams","displayed-sport-ids","isDisabled"]),U(NCe,{"selected-sport-ids":u.value,"user-sports":E(r),onSelectedSportIdsUpdate:m},null,8,["selected-sport-ids","user-sports"])])):x("",!0)}});const DCe=se(CCe,[["__scopeId","data-v-b145e4ac"]]),PCe={id:"statistics",class:"view"},wCe={key:0,class:"container"},LCe=Q({__name:"StatisticsView",setup(e){const t=Me(),n=$(()=>t.getters[Y.GETTERS.AUTH_USER_PROFILE]),r=$(()=>t.getters[Mt.GETTERS.SPORTS].filter(s=>n.value.sports_list.includes(s.id))),a=$(()=>n.value.nb_workouts===0);return(s,o)=>{const i=ue("Card");return A(),N("div",PCe,[n.value.username?(A(),N("div",wCe,[U(i,null,{title:pe(()=>[K(h(s.$t("statistics.STATISTICS")),1)]),content:pe(()=>[U(DCe,{class:Ae({"stats-disabled":a.value}),user:n.value,sports:r.value,isDisabled:a.value},null,8,["class","user","sports","isDisabled"])]),_:1}),n.value.nb_workouts===0?(A(),re(c0,{key:0})):x("",!0)])):x("",!0)])}}});const $Ce=se(LCe,[["__scopeId","data-v-0aa997fa"]]),kCe={name:"EmailSent"},UCe={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 345.834 345.834",style:{"enable-background":"new 0 0 345.834 345.834"},"xml:space":"preserve"},MCe=p("g",null,[p("path",{d:`M339.798,260.429c0.13-0.026,0.257-0.061,0.385-0.094c0.109-0.028,0.219-0.051,0.326-0.084
c0.125-0.038,0.247-0.085,0.369-0.129c0.108-0.039,0.217-0.074,0.324-0.119c0.115-0.048,0.226-0.104,0.338-0.157
c0.109-0.052,0.22-0.1,0.327-0.158c0.107-0.057,0.208-0.122,0.312-0.184c0.107-0.064,0.215-0.124,0.319-0.194
c0.111-0.074,0.214-0.156,0.321-0.236c0.09-0.067,0.182-0.13,0.27-0.202c0.162-0.133,0.316-0.275,0.466-0.421
@@ -424,7 +424,7 @@ and ensure you are accounting for this risk.
V234.967z M185.878,179.888c0.535-0.535,0.969-1.131,1.308-1.765l28.051,24.835c1.418,1.255,3.194,1.885,4.972,1.885
c1.726,0,3.451-0.593,4.853-1.781l28.587-24.254c0.26,0.38,0.553,0.743,0.89,1.08l65.687,65.687H120.191L185.878,179.888z`}),p("path",{d:`M7.5,170.676h126.667c4.143,0,7.5-3.357,7.5-7.5s-3.357-7.5-7.5-7.5H7.5c-4.143,0-7.5,3.357-7.5,7.5
S3.357,170.676,7.5,170.676z`}),p("path",{d:`M20.625,129.345H77.5c4.143,0,7.5-3.357,7.5-7.5s-3.357-7.5-7.5-7.5H20.625c-4.143,0-7.5,3.357-7.5,7.5
- S16.482,129.345,20.625,129.345z`}),p("path",{d:"M62.5,226.51h-55c-4.143,0-7.5,3.357-7.5,7.5s3.357,7.5,7.5,7.5h55c4.143,0,7.5-3.357,7.5-7.5S66.643,226.51,62.5,226.51z"})],-1),wCe=[PCe];function LCe(e,t,n,r,a,s){return A(),N("svg",DCe,wCe)}const vA=se(CCe,[["render",LCe]]),bA=e=>(ct("data-v-13388f00"),e=e(),lt(),e),$Ce={id:"user-form"},kCe={key:2,class:"info-box success-message"},UCe={class:"form-items"},MCe=["disabled","placeholder"],xCe={key:1,class:"form-info"},FCe=bA(()=>p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),WCe=["disabled","placeholder"],GCe={key:3,class:"form-info"},zCe=bA(()=>p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),BCe={key:5,for:"accepted_policy",class:"accepted_policy"},HCe=["disabled"],jCe=["disabled"],VCe={key:3},KCe={key:0},YCe={key:4},qCe={class:"account"},XCe={key:5},ZCe=Q({__name:"UserAuthForm",props:{action:{},token:{default:""}},setup(e){const t=e,n=Kt(),r=Me(),{action:a}=Te(t),s=zt({username:"",email:"",password:"",accepted_policy:!1}),o=$(()=>T(t.action)),i=$(()=>r.getters[V.GETTERS.ERROR_MESSAGES]),u=$(()=>r.getters[Y.GETTERS.IS_REGISTRATION_SUCCESS]),c=$(()=>r.getters[Y.GETTERS.IS_SUCCESS]),l=$(()=>r.getters[V.GETTERS.APP_CONFIG]),f=$(()=>r.getters[V.GETTERS.LANGUAGE]),d=$(()=>t.action==="register"&&!l.value.is_registration_enabled),m=$(()=>["reset-request","account-confirmation-resend"].includes(t.action)&&!l.value.is_email_sending_enabled),_=le(!1);function T(g){switch(g){case"reset-request":case"reset":return"buttons.SUBMIT";default:return`buttons.${t.action.toUpperCase()}`}}function R(){_.value=!0}function I(g){s.password=g}function b(g){switch(g){case"reset":return t.token?r.dispatch(Y.ACTIONS.RESET_USER_PASSWORD,{password:s.password,token:t.token}):r.commit(V.MUTATIONS.SET_ERROR_MESSAGES,"user.INVALID_TOKEN");case"reset-request":return r.dispatch(Y.ACTIONS.SEND_PASSWORD_RESET_REQUEST,{email:s.email});case"account-confirmation-resend":return r.dispatch(Y.ACTIONS.RESEND_ACCOUNT_CONFIRMATION_EMAIL,{email:s.email});default:s.language=f.value,r.dispatch(Y.ACTIONS.LOGIN_OR_REGISTER,{actionType:g,formData:s,redirectUrl:n.query.from})}}function v(){s.username="",s.email="",s.password="",s.accepted_policy=!1}return Rt(()=>r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)),Be(()=>n.path,async()=>{r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),r.commit(Y.MUTATIONS.UPDATE_IS_SUCCESS,!1),r.commit(Y.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS,!1),_.value=!1,v()}),(g,L)=>{const w=ue("AlertMessage"),P=ue("router-link"),j=ue("i18n-t"),G=ue("ErrorMessage");return A(),N("div",{id:"user-auth-form",class:Ae(`${["reset","reset-request"].includes(E(a))?E(a):"user-form"}`)},[p("div",$Ce,[p("div",{class:Ae(["form-box",{disabled:d.value}])},[d.value?(A(),re(w,{key:0,message:"user.REGISTER_DISABLED"})):x("",!0),m.value?(A(),re(w,{key:1,message:"admin.EMAIL_SENDING_DISABLED"})):x("",!0),c.value||u.value?(A(),N("div",kCe,h(g.$t(`user.PROFILE.SUCCESSFUL_${u.value?`REGISTRATION${l.value.is_email_sending_enabled?"_WITH_EMAIL":""}`:"UPDATE"}`)),1)):x("",!0),p("form",{class:Ae({errors:_.value}),onSubmit:L[3]||(L[3]=Ze(z=>b(E(a)),["prevent"]))},[p("div",UCe,[E(a)==="register"?Xe((A(),N("input",{key:0,id:"username",disabled:d.value,required:"",pattern:"[a-zA-Z0-9_]+",minlength:"3",maxlength:"30",onInvalid:R,"onUpdate:modelValue":L[0]||(L[0]=z=>s.username=z),placeholder:g.$t("user.USERNAME")},null,40,MCe)),[[nt,s.username]]):x("",!0),E(a)==="register"?(A(),N("div",xCe,[FCe,K(" "+h(g.$t("user.USERNAME_INFO")),1)])):x("",!0),E(a)!=="reset"?Xe((A(),N("input",{key:2,id:"email",disabled:d.value||m.value,required:"",onInvalid:R,type:"email","onUpdate:modelValue":L[1]||(L[1]=z=>s.email=z),placeholder:g.$t("user.EMAIL")},null,40,WCe)),[[nt,s.email]]):x("",!0),["reset-request","register","account-confirmation-resend"].includes(E(a))?(A(),N("div",GCe,[zCe,K(" "+h(g.$t("user.EMAIL_INFO")),1)])):x("",!0),["account-confirmation-resend","reset-request"].includes(E(a))?x("",!0):(A(),re(Ld,{key:4,disabled:d.value,required:!0,placeholder:E(a)==="reset"?g.$t("user.ENTER_PASSWORD"):g.$t("user.PASSWORD"),password:s.password,checkStrength:["reset","register"].includes(E(a)),onUpdatePassword:I,onPasswordError:R},null,8,["disabled","placeholder","password","checkStrength"])),E(a)==="register"?(A(),N("label",BCe,[Xe(p("input",{type:"checkbox",id:"accepted_policy",disabled:d.value,required:"",onInvalid:R,"onUpdate:modelValue":L[2]||(L[2]=z=>s.accepted_policy=z)},null,40,HCe),[[tf,s.accepted_policy]]),p("span",null,[U(j,{keypath:"user.READ_AND_ACCEPT_PRIVACY_POLICY"},{default:pe(()=>[U(P,{to:"/privacy-policy",target:"_blank"},{default:pe(()=>[K(h(g.$t("privacy_policy.TITLE")),1)]),_:1})]),_:1})])])):x("",!0)]),p("button",{type:"submit",disabled:d.value||m.value},h(g.$t(o.value)),9,jCe)],34),E(a)==="login"?(A(),N("div",VCe,[U(P,{class:"links",to:"/register"},{default:pe(()=>[K(h(g.$t("user.REGISTER")),1)]),_:1}),l.value.is_email_sending_enabled?(A(),N("span",KCe,"-")):x("",!0),l.value.is_email_sending_enabled?(A(),re(P,{key:1,class:"links",to:"/password-reset/request"},{default:pe(()=>[K(h(g.$t("user.PASSWORD_FORGOTTEN")),1)]),_:1})):x("",!0)])):x("",!0),E(a)==="register"?(A(),N("div",YCe,[p("span",qCe,h(g.$t("user.ALREADY_HAVE_ACCOUNT")),1),U(P,{class:"links",to:"/login"},{default:pe(()=>[K(h(g.$t("user.LOGIN")),1)]),_:1})])):x("",!0),["login","register"].includes(E(a))&&l.value.is_email_sending_enabled?(A(),N("div",XCe,[U(P,{class:"links",to:"/account-confirmation/resend"},{default:pe(()=>[K(h(g.$t("user.ACCOUNT_CONFIRMATION_NOT_RECEIVED")),1)]),_:1})])):x("",!0),i.value?(A(),re(G,{key:6,message:i.value},null,8,["message"])):x("",!0)],2)])],2)}}});const l0=se(ZCe,[["__scopeId","data-v-13388f00"]]),QCe={id:"account-confirmation-email",class:"center-card with-margin"},JCe={key:0,class:"email-sent"},eDe={class:"email-sent-message"},tDe={key:1},nDe=Q({__name:"AccountConfirmationEmail",props:{action:{}},setup(e){const t=e,{action:n}=Te(t);return(r,a)=>{const s=ue("Card");return A(),N("div",QCe,[E(n)==="email-sent"?(A(),N("div",JCe,[U(vA),p("div",eDe,h(r.$t("user.ACCOUNT_CONFIRMATION_SENT")),1)])):(A(),N("div",tDe,[U(s,null,{title:pe(()=>[K(h(r.$t("user.RESENT_ACCOUNT_CONFIRMATION")),1)]),content:pe(()=>[U(l0,{action:E(n)},null,8,["action"])]),_:1})]))])}}});const rDe=se(nDe,[["__scopeId","data-v-b0299010"]]),aDe={id:"account-confirmation",class:"view"},sDe={class:"container"},oDe=Q({__name:"AccountConfirmationResendView",props:{action:{}},setup(e){const t=e,{action:n}=Te(t);return(r,a)=>(A(),N("div",aDe,[p("div",sDe,[U(rDe,{action:E(n)},null,8,["action"])])]))}});const rE=se(oDe,[["__scopeId","data-v-9a9c1644"]]),iDe={key:0,id:"account-confirmation",class:"center-card with-margin"},uDe={class:"error-message"},cDe=Q({__name:"AccountConfirmationView",setup(e){const t=Kt(),n=Kr(),r=Me(),a=$(()=>r.getters[V.GETTERS.ERROR_MESSAGES]),s=$(()=>t.query.token);bt(()=>o());function o(){s.value?r.dispatch(Y.ACTIONS.CONFIRM_ACCOUNT,{token:s.value}):n.push("/")}return Rt(()=>r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)),(i,u)=>{const c=ue("router-link");return a.value?(A(),N("div",iDe,[U(Rf),p("p",uDe,[p("span",null,h(i.$t("error.SOMETHING_WRONG"))+".",1),U(c,{class:"links",to:"/account-confirmation/resend"},{default:pe(()=>[K(h(i.$t("buttons.ACCOUNT-CONFIRMATION-RESEND"))+"? ",1)]),_:1})])])):x("",!0)}}});const lDe=se(cDe,[["__scopeId","data-v-a0fa0b62"]]),dDe={key:0,id:"email-update",class:"center-card with-margin"},fDe={class:"error-message"},pDe=Q({__name:"EmailUpdateView",setup(e){const t=Kt(),n=Kr(),r=Me(),a=$(()=>r.getters[Y.GETTERS.AUTH_USER_PROFILE]),s=$(()=>r.getters[Y.GETTERS.IS_AUTHENTICATED]),o=$(()=>r.getters[V.GETTERS.ERROR_MESSAGES]),i=$(()=>t.query.token);bt(()=>u());function u(){i.value?r.dispatch(Y.ACTIONS.CONFIRM_EMAIL,{token:i.value,refreshUser:s.value}):n.push("/")}return Rt(()=>r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)),Be(()=>o.value,c=>{a.value.username&&c&&n.push("/")}),(c,l)=>{const f=ue("router-link"),d=ue("i18n-t");return o.value&&!a.value.username?(A(),N("div",dDe,[U(Rf),p("p",fDe,[p("span",null,h(c.$t("error.SOMETHING_WRONG"))+".",1),p("span",null,[U(d,{keypath:"user.PROFILE.ERRORED_EMAIL_UPDATE"},{default:pe(()=>[U(f,{to:"/login"},{default:pe(()=>[K(h(c.$t("user.LOG_IN")),1)]),_:1})]),_:1})])])])):x("",!0)}}});const mDe=se(pDe,[["__scopeId","data-v-b8fbd32f"]]),_De={id:"loginOrRegister",class:"view"},EDe={class:"container"},hDe={class:"container-sub"},TDe={class:"container-sub"},gDe=Q({__name:"LoginOrRegister",props:{action:{}},setup(e){const t=e,{action:n}=Te(t);return(r,a)=>(A(),N("div",_De,[p("div",EDe,[p("div",hDe,[U(mA)]),p("div",TDe,[U(l0,{action:E(n)},null,8,["action"])])])]))}});const aE=se(gDe,[["__scopeId","data-v-84d61340"]]),ADe={name:"Password"},SDe={version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512.001 512.001",style:{"enable-background":"new 0 0 512.001 512.001"},"xml:space":"preserve"},ODe=hr(`(ut("data-v-13388f00"),e=e(),ct(),e),WCe={id:"user-form"},GCe={key:2,class:"info-box success-message"},zCe={class:"form-items"},BCe=["disabled","placeholder"],HCe={key:1,class:"form-info"},jCe=bA(()=>p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),VCe=["disabled","placeholder"],KCe={key:3,class:"form-info"},YCe=bA(()=>p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),qCe={key:5,for:"accepted_policy",class:"accepted_policy"},XCe=["disabled"],ZCe=["disabled"],QCe={key:3},JCe={key:0},eDe={key:4},tDe={class:"account"},nDe={key:5},rDe=Q({__name:"UserAuthForm",props:{action:{},token:{default:""}},setup(e){const t=e,n=Kt(),r=Me(),{action:a}=Te(t),s=zt({username:"",email:"",password:"",accepted_policy:!1}),o=$(()=>g(t.action)),i=$(()=>r.getters[V.GETTERS.ERROR_MESSAGES]),u=$(()=>r.getters[Y.GETTERS.IS_REGISTRATION_SUCCESS]),c=$(()=>r.getters[Y.GETTERS.IS_SUCCESS]),l=$(()=>r.getters[V.GETTERS.APP_CONFIG]),f=$(()=>r.getters[V.GETTERS.LANGUAGE]),d=$(()=>t.action==="register"&&!l.value.is_registration_enabled),m=$(()=>["reset-request","account-confirmation-resend"].includes(t.action)&&!l.value.is_email_sending_enabled),_=le(!1);function g(T){switch(T){case"reset-request":case"reset":return"buttons.SUBMIT";default:return`buttons.${t.action.toUpperCase()}`}}function R(){_.value=!0}function I(T){s.password=T}function b(T){switch(T){case"reset":return t.token?r.dispatch(Y.ACTIONS.RESET_USER_PASSWORD,{password:s.password,token:t.token}):r.commit(V.MUTATIONS.SET_ERROR_MESSAGES,"user.INVALID_TOKEN");case"reset-request":return r.dispatch(Y.ACTIONS.SEND_PASSWORD_RESET_REQUEST,{email:s.email});case"account-confirmation-resend":return r.dispatch(Y.ACTIONS.RESEND_ACCOUNT_CONFIRMATION_EMAIL,{email:s.email});default:s.language=f.value,r.dispatch(Y.ACTIONS.LOGIN_OR_REGISTER,{actionType:T,formData:s,redirectUrl:n.query.from})}}function v(){s.username="",s.email="",s.password="",s.accepted_policy=!1}return Rt(()=>r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)),Be(()=>n.path,async()=>{r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES),r.commit(Y.MUTATIONS.UPDATE_IS_SUCCESS,!1),r.commit(Y.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS,!1),_.value=!1,v()}),(T,L)=>{const w=ue("AlertMessage"),P=ue("router-link"),j=ue("i18n-t"),G=ue("ErrorMessage");return A(),N("div",{id:"user-auth-form",class:Ae(`${["reset","reset-request"].includes(E(a))?E(a):"user-form"}`)},[p("div",WCe,[p("div",{class:Ae(["form-box",{disabled:d.value}])},[d.value?(A(),re(w,{key:0,message:"user.REGISTER_DISABLED"})):x("",!0),m.value?(A(),re(w,{key:1,message:"admin.EMAIL_SENDING_DISABLED"})):x("",!0),c.value||u.value?(A(),N("div",GCe,h(T.$t(`user.PROFILE.SUCCESSFUL_${u.value?`REGISTRATION${l.value.is_email_sending_enabled?"_WITH_EMAIL":""}`:"UPDATE"}`)),1)):x("",!0),p("form",{class:Ae({errors:_.value}),onSubmit:L[3]||(L[3]=Ze(z=>b(E(a)),["prevent"]))},[p("div",zCe,[E(a)==="register"?Xe((A(),N("input",{key:0,id:"username",disabled:d.value,required:"",pattern:"[a-zA-Z0-9_]+",minlength:"3",maxlength:"30",onInvalid:R,"onUpdate:modelValue":L[0]||(L[0]=z=>s.username=z),placeholder:T.$t("user.USERNAME")},null,40,BCe)),[[nt,s.username]]):x("",!0),E(a)==="register"?(A(),N("div",HCe,[jCe,K(" "+h(T.$t("user.USERNAME_INFO")),1)])):x("",!0),E(a)!=="reset"?Xe((A(),N("input",{key:2,id:"email",disabled:d.value||m.value,required:"",onInvalid:R,type:"email","onUpdate:modelValue":L[1]||(L[1]=z=>s.email=z),placeholder:T.$t("user.EMAIL")},null,40,VCe)),[[nt,s.email]]):x("",!0),["reset-request","register","account-confirmation-resend"].includes(E(a))?(A(),N("div",KCe,[YCe,K(" "+h(T.$t("user.EMAIL_INFO")),1)])):x("",!0),["account-confirmation-resend","reset-request"].includes(E(a))?x("",!0):(A(),re(Ld,{key:4,disabled:d.value,required:!0,placeholder:E(a)==="reset"?T.$t("user.ENTER_PASSWORD"):T.$t("user.PASSWORD"),password:s.password,checkStrength:["reset","register"].includes(E(a)),onUpdatePassword:I,onPasswordError:R},null,8,["disabled","placeholder","password","checkStrength"])),E(a)==="register"?(A(),N("label",qCe,[Xe(p("input",{type:"checkbox",id:"accepted_policy",disabled:d.value,required:"",onInvalid:R,"onUpdate:modelValue":L[2]||(L[2]=z=>s.accepted_policy=z)},null,40,XCe),[[tf,s.accepted_policy]]),p("span",null,[U(j,{keypath:"user.READ_AND_ACCEPT_PRIVACY_POLICY"},{default:pe(()=>[U(P,{to:"/privacy-policy",target:"_blank"},{default:pe(()=>[K(h(T.$t("privacy_policy.TITLE")),1)]),_:1})]),_:1})])])):x("",!0)]),p("button",{type:"submit",disabled:d.value||m.value},h(T.$t(o.value)),9,ZCe)],34),E(a)==="login"?(A(),N("div",QCe,[U(P,{class:"links",to:"/register"},{default:pe(()=>[K(h(T.$t("user.REGISTER")),1)]),_:1}),l.value.is_email_sending_enabled?(A(),N("span",JCe,"-")):x("",!0),l.value.is_email_sending_enabled?(A(),re(P,{key:1,class:"links",to:"/password-reset/request"},{default:pe(()=>[K(h(T.$t("user.PASSWORD_FORGOTTEN")),1)]),_:1})):x("",!0)])):x("",!0),E(a)==="register"?(A(),N("div",eDe,[p("span",tDe,h(T.$t("user.ALREADY_HAVE_ACCOUNT")),1),U(P,{class:"links",to:"/login"},{default:pe(()=>[K(h(T.$t("user.LOGIN")),1)]),_:1})])):x("",!0),["login","register"].includes(E(a))&&l.value.is_email_sending_enabled?(A(),N("div",nDe,[U(P,{class:"links",to:"/account-confirmation/resend"},{default:pe(()=>[K(h(T.$t("user.ACCOUNT_CONFIRMATION_NOT_RECEIVED")),1)]),_:1})])):x("",!0),i.value?(A(),re(G,{key:6,message:i.value},null,8,["message"])):x("",!0)],2)])],2)}}});const l0=se(rDe,[["__scopeId","data-v-13388f00"]]),aDe={id:"account-confirmation-email",class:"center-card with-margin"},sDe={key:0,class:"email-sent"},oDe={class:"email-sent-message"},iDe={key:1},uDe=Q({__name:"AccountConfirmationEmail",props:{action:{}},setup(e){const t=e,{action:n}=Te(t);return(r,a)=>{const s=ue("Card");return A(),N("div",aDe,[E(n)==="email-sent"?(A(),N("div",sDe,[U(vA),p("div",oDe,h(r.$t("user.ACCOUNT_CONFIRMATION_SENT")),1)])):(A(),N("div",iDe,[U(s,null,{title:pe(()=>[K(h(r.$t("user.RESENT_ACCOUNT_CONFIRMATION")),1)]),content:pe(()=>[U(l0,{action:E(n)},null,8,["action"])]),_:1})]))])}}});const cDe=se(uDe,[["__scopeId","data-v-b0299010"]]),lDe={id:"account-confirmation",class:"view"},dDe={class:"container"},fDe=Q({__name:"AccountConfirmationResendView",props:{action:{}},setup(e){const t=e,{action:n}=Te(t);return(r,a)=>(A(),N("div",lDe,[p("div",dDe,[U(cDe,{action:E(n)},null,8,["action"])])]))}});const rE=se(fDe,[["__scopeId","data-v-9a9c1644"]]),pDe={key:0,id:"account-confirmation",class:"center-card with-margin"},mDe={class:"error-message"},_De=Q({__name:"AccountConfirmationView",setup(e){const t=Kt(),n=Kr(),r=Me(),a=$(()=>r.getters[V.GETTERS.ERROR_MESSAGES]),s=$(()=>t.query.token);bt(()=>o());function o(){s.value?r.dispatch(Y.ACTIONS.CONFIRM_ACCOUNT,{token:s.value}):n.push("/")}return Rt(()=>r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)),(i,u)=>{const c=ue("router-link");return a.value?(A(),N("div",pDe,[U(Rf),p("p",mDe,[p("span",null,h(i.$t("error.SOMETHING_WRONG"))+".",1),U(c,{class:"links",to:"/account-confirmation/resend"},{default:pe(()=>[K(h(i.$t("buttons.ACCOUNT-CONFIRMATION-RESEND"))+"? ",1)]),_:1})])])):x("",!0)}}});const EDe=se(_De,[["__scopeId","data-v-a0fa0b62"]]),hDe={key:0,id:"email-update",class:"center-card with-margin"},TDe={class:"error-message"},gDe=Q({__name:"EmailUpdateView",setup(e){const t=Kt(),n=Kr(),r=Me(),a=$(()=>r.getters[Y.GETTERS.AUTH_USER_PROFILE]),s=$(()=>r.getters[Y.GETTERS.IS_AUTHENTICATED]),o=$(()=>r.getters[V.GETTERS.ERROR_MESSAGES]),i=$(()=>t.query.token);bt(()=>u());function u(){i.value?r.dispatch(Y.ACTIONS.CONFIRM_EMAIL,{token:i.value,refreshUser:s.value}):n.push("/")}return Rt(()=>r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)),Be(()=>o.value,c=>{a.value.username&&c&&n.push("/")}),(c,l)=>{const f=ue("router-link"),d=ue("i18n-t");return o.value&&!a.value.username?(A(),N("div",hDe,[U(Rf),p("p",TDe,[p("span",null,h(c.$t("error.SOMETHING_WRONG"))+".",1),p("span",null,[U(d,{keypath:"user.PROFILE.ERRORED_EMAIL_UPDATE"},{default:pe(()=>[U(f,{to:"/login"},{default:pe(()=>[K(h(c.$t("user.LOG_IN")),1)]),_:1})]),_:1})])])])):x("",!0)}}});const ADe=se(gDe,[["__scopeId","data-v-b8fbd32f"]]),SDe={id:"loginOrRegister",class:"view"},ODe={class:"container"},IDe={class:"container-sub"},vDe={class:"container-sub"},bDe=Q({__name:"LoginOrRegister",props:{action:{}},setup(e){const t=e,{action:n}=Te(t);return(r,a)=>(A(),N("div",SDe,[p("div",ODe,[p("div",IDe,[U(mA)]),p("div",vDe,[U(l0,{action:E(n)},null,8,["action"])])])]))}});const aE=se(bDe,[["__scopeId","data-v-84d61340"]]),RDe={name:"Password"},NDe={version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512.001 512.001",style:{"enable-background":"new 0 0 512.001 512.001"},"xml:space":"preserve"},yDe=hr(``,7),IDe=[ODe];function vDe(e,t,n,r,a,s){return A(),N("svg",SDe,IDe)}const bDe=se(ADe,[["render",vDe]]),RDe={id:"password-action-done",class:"center-card with-margin"},NDe={class:"password-message"},yDe={key:0},CDe=Q({__name:"PasswordActionDone",props:{action:{}},setup(e){const t=e,{action:n}=Te(t);return(r,a)=>{const s=ue("router-link"),o=ue("i18n-t");return A(),N("div",RDe,[E(n)==="request-sent"?(A(),re(vA,{key:0})):(A(),re(bDe,{key:1})),p("div",NDe,[E(n)==="request-sent"?(A(),N("span",yDe,h(r.$t("user.PASSWORD_SENT_EMAIL_TEXT")),1)):(A(),re(o,{key:1,keypath:"user.PASSWORD_UPDATED"},{default:pe(()=>[U(s,{to:"/login"},{default:pe(()=>[K(h(r.$t("common.HERE")),1)]),_:1})]),_:1}))])])}}});const DDe=se(CDe,[["__scopeId","data-v-ee1004fc"]]),PDe={id:"password-reset-request",class:"center-card with-margin"},wDe=Q({__name:"PasswordResetForm",props:{action:{},token:{default:""}},setup(e){const t=e,{action:n,token:r}=Te(t);return(a,s)=>{const o=ue("Card");return A(),N("div",PDe,[U(o,null,{title:pe(()=>[K(h(a.$t("user.RESET_PASSWORD")),1)]),content:pe(()=>[U(l0,{action:E(n),token:E(r)},null,8,["action","token"])]),_:1})])}}});const LDe=se(wDe,[["__scopeId","data-v-97f01ba1"]]),$De={id:"password-reset",class:"view"},kDe={class:"container"},UDe=Q({__name:"PasswordResetView",props:{action:{}},setup(e){const t=e,n=Kt(),r=Kr(),{action:a}=Te(t),s=$(()=>n.query.token);return bt(()=>{t.action==="reset"&&!s.value&&r.push("/")}),(o,i)=>(A(),N("div",$De,[p("div",kDe,[E(a).startsWith("reset")?(A(),re(LDe,{key:0,action:E(a),token:s.value},null,8,["action","token"])):(A(),re(DDe,{key:1,action:E(a)},null,8,["action"]))])]))}});const Ni=se(UDe,[["__scopeId","data-v-5cbe9029"]]),MDe=e=>(ct("data-v-af92ad3a"),e=e(),lt(),e),xDe={key:0,id:"profile",class:"view"},FDe=MDe(()=>p("div",{id:"bottom"},null,-1)),WDe=Q({__name:"ProfileView",setup(e){const t=Me(),n=$(()=>t.getters[Y.GETTERS.AUTH_USER_PROFILE]);return(r,a)=>{const s=ue("router-view");return n.value.username?(A(),N("div",xDe,[U(s,{user:n.value},null,8,["user"]),FDe])):x("",!0)}}});const GDe=se(WDe,[["__scopeId","data-v-af92ad3a"]]),zDe={key:0,id:"user",class:"view"},BDe={class:"box"},HDe=Q({__name:"UserView",props:{fromAdmin:{type:Boolean}},setup(e){const t=e,{fromAdmin:n}=Te(t),r=Kt(),a=Me(),s=$(()=>a.getters[we.GETTERS.USER]);return bt(()=>{r.params.username&&typeof r.params.username=="string"&&a.dispatch(we.ACTIONS.GET_USER,r.params.username)}),ko(()=>{a.dispatch(we.ACTIONS.EMPTY_USER)}),(o,i)=>s.value.username?(A(),N("div",zDe,[U(Xg,{user:s.value},null,8,["user"]),p("div",BDe,[U(Qg,{user:s.value,"from-admin":E(n)},null,8,["user","from-admin"])])])):x("",!0)}});const sE=se(HDe,[["__scopeId","data-v-1b7a0b4f"]]),jDe={id:"workout-form"},VDe=["onSubmit"],KDe={class:"form-items"},YDe={key:0,class:"form-item-radio"},qDe=["checked","disabled"],XDe={for:"withGpx"},ZDe=["checked","disabled"],QDe={for:"withoutGpx"},JDe={class:"form-item"},e4e=["disabled"],t4e=["value"],n4e={key:1,class:"form-item"},r4e={for:"gpxFile"},a4e=["disabled"],s4e={class:"files-help info-box"},o4e={key:2,class:"form-item"},i4e={for:"title"},u4e=["required","disabled"],c4e={key:3},l4e={class:"workout-date-duration"},d4e={class:"form-item"},f4e={class:"workout-date-time"},p4e=["disabled"],m4e=["disabled"],_4e={class:"form-item"},E4e=["disabled"],h4e=["disabled"],T4e=["disabled"],g4e={class:"workout-data"},A4e={class:"form-item"},S4e=["disabled"],O4e={class:"form-item"},I4e=["disabled"],v4e={class:"form-item"},b4e=["disabled"],R4e={class:"form-item"},N4e={key:1},y4e={key:2,class:"form-buttons"},C4e=["disabled"],D4e=["onClick"],P4e=Q({__name:"WorkoutEdition",props:{authUser:{},sports:{},isCreation:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},workout:{default:()=>({})}},setup(e){const t=e,{t:n}=Vt(),r=Me(),a=Kr(),{authUser:s,workout:o,isCreation:i,loading:u}=Te(t),c=$(()=>qr(t.sports,n,"is_active_for_user",o.value.id?[o.value.sport_id]:[])),l=$(()=>r.getters[V.GETTERS.APP_CONFIG]),f=l.value.max_single_file_size?cu(l.value.max_single_file_size):"",d=l.value.gpx_limit_import,m=l.value.max_zip_file_size?cu(l.value.max_zip_file_size):"",_=$(()=>r.getters[V.GETTERS.ERROR_MESSAGES]),T=zt({sport_id:"",title:"",notes:"",workoutDate:"",workoutTime:"",workoutDurationHour:"",workoutDurationMinutes:"",workoutDurationSeconds:"",workoutDistance:"",workoutAscent:"",workoutDescent:""}),R=le(o.value.id?o.value.with_gpx:i.value);let I=null;const b=le(!1),v=le([]);St(()=>{let D;t.workout.id?(P(t.workout),D=document.getElementById("sport")):D=document.getElementById("withGpx"),D&&D.focus()});function g(D){T.notes=D}function L(){R.value=!R.value,b.value=!1}function w(D){D.target.files&&(I=D.target.files[0])}function P(D){if(T.sport_id=`${D.sport_id}`,T.title=D.title,T.notes=D.notes,!D.with_gpx){const W=Yg(Ac(D.workout_date,t.authUser.timezone),"yyyy-MM-dd"),B=D.duration.split(":");T.workoutDistance=`${s.value.imperial_units?on(D.distance,"km","mi",3):parseFloat(D.distance.toFixed(3))}`,T.workoutDate=W.workout_date,T.workoutTime=W.workout_time,T.workoutDurationHour=B[0],T.workoutDurationMinutes=B[1],T.workoutDurationSeconds=B[2],T.workoutAscent=D.ascent===null?"":`${s.value.imperial_units?on(D.ascent,"m","ft",2):parseFloat(D.ascent.toFixed(2))}`,T.workoutDescent=D.descent===null?"":`${s.value.imperial_units?on(D.descent,"m","ft",2):parseFloat(D.descent.toFixed(2))}`}}function j(){return v.value.includes("workouts.INVALID_DISTANCE")}function G(){return v.value.includes("workouts.INVALID_DURATION")}function z(){return v.value.includes("workouts.INVALID_ASCENT_OR_DESCENT")}function k(D){v.value=[],D.title=T.title,D.duration=+T.workoutDurationHour*3600+ +T.workoutDurationMinutes*60+ +T.workoutDurationSeconds,D.duration<=0&&v.value.push("workouts.INVALID_DURATION"),D.distance=s.value.imperial_units?on(+T.workoutDistance,"mi","km",3):+T.workoutDistance,D.distance<=0&&v.value.push("workouts.INVALID_DISTANCE"),D.workout_date=`${T.workoutDate} ${T.workoutTime}`,D.ascent=T.workoutAscent===""?null:s.value.imperial_units?on(+T.workoutAscent,"ft","m",3):+T.workoutAscent,D.descent=T.workoutDescent===""?null:s.value.imperial_units?on(+T.workoutDescent,"ft","m",3):+T.workoutDescent,(D.ascent!==null&&D.descent===null||D.ascent===null&&D.descent!==null)&&v.value.push("workouts.INVALID_ASCENT_OR_DESCENT")}function Z(){const D={sport_id:+T.sport_id,notes:T.notes};if(t.workout.id)t.workout.with_gpx?D.title=T.title:k(D),v.value.length>0?r.commit(V.MUTATIONS.SET_ERROR_MESSAGES,v.value):r.dispatch(ge.ACTIONS.EDIT_WORKOUT,{workoutId:t.workout.id,data:D});else if(R.value){if(!I){const W="workouts.NO_FILE_PROVIDED";r.commit(V.MUTATIONS.SET_ERROR_MESSAGES,W);return}D.file=I,r.dispatch(ge.ACTIONS.ADD_WORKOUT,D)}else k(D),v.value.length>0?r.commit(V.MUTATIONS.SET_ERROR_MESSAGES,v.value):r.dispatch(ge.ACTIONS.ADD_WORKOUT_WITHOUT_GPX,D)}function ee(){t.workout.id?a.push({name:"Workout",params:{workoutId:t.workout.id}}):a.go(-1)}function te(){b.value=!0}return Rt(()=>r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)),Be(()=>t.workout,async(D,W)=>{D!==W&&D&&D.id&&P(D)}),(D,W)=>{const B=ue("CustomTextArea"),ae=ue("ErrorMessage"),Re=ue("Loader"),$e=ue("Card");return A(),N("div",{id:"workout-edition",class:Ae(["center-card with-margin",{"center-form":E(o)&&E(o).with_gpx}])},[U($e,null,{title:pe(()=>[K(h(D.$t(`workouts.${E(i)?"ADD":"EDIT"}_WORKOUT`)),1)]),content:pe(()=>[p("div",jDe,[p("form",{class:Ae({errors:b.value}),onSubmit:Ze(Z,["prevent"])},[p("div",KDe,[E(i)?(A(),N("div",YDe,[p("div",null,[p("input",{id:"withGpx",type:"radio",checked:R.value,disabled:E(u),onClick:L},null,8,qDe),p("label",XDe,h(D.$t("workouts.WITH_GPX")),1)]),p("div",null,[p("input",{id:"withoutGpx",type:"radio",checked:!R.value,disabled:E(u),onClick:L},null,8,ZDe),p("label",QDe,h(D.$t("workouts.WITHOUT_GPX")),1)])])):x("",!0),p("div",JDe,[p("label",null,h(D.$t("workouts.SPORT",1))+"*: ",1),Xe(p("select",{id:"sport",required:"",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[0]||(W[0]=he=>T.sport_id=he)},[(A(!0),N(ve,null,ze(c.value,he=>(A(),N("option",{value:he.id,key:he.id},h(he.translatedLabel),9,t4e))),128))],40,e4e),[[eu,T.sport_id]])]),E(i)&&R.value?(A(),N("div",n4e,[p("label",r4e,h(D.$t("workouts.GPX_FILE"))+" "+h(D.$t("workouts.ZIP_ARCHIVE_DESCRIPTION"))+"*: ",1),p("input",{id:"gpxFile",name:"gpxFile",type:"file",accept:".gpx, .zip",disabled:E(u),required:"",onInvalid:te,onInput:w},null,40,a4e),p("div",s4e,[p("div",null,[p("strong",null,h(D.$t("workouts.GPX_FILE"))+":",1),p("ul",null,[p("li",null,h(D.$t("workouts.MAX_SIZE"))+": "+h(E(f)),1)])]),p("div",null,[p("strong",null,h(D.$t("workouts.ZIP_ARCHIVE"))+":",1),p("ul",null,[p("li",null,h(D.$t("workouts.NO_FOLDER")),1),p("li",null,h(D.$t("workouts.MAX_FILES"))+": "+h(E(d)),1),p("li",null,h(D.$t("workouts.MAX_SIZE"))+": "+h(E(m)),1)])])])])):(A(),N("div",o4e,[p("label",i4e,h(D.$t("workouts.TITLE"))+": ",1),Xe(p("input",{id:"title",name:"title",type:"text",required:!E(i),onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[1]||(W[1]=he=>T.title=he)},null,40,u4e),[[nt,T.title]])])),R.value?x("",!0):(A(),N("div",c4e,[p("div",l4e,[p("div",d4e,[p("label",null,h(D.$t("workouts.WORKOUT_DATE"))+"*:",1),p("div",f4e,[Xe(p("input",{id:"workout-date",name:"workout-date",type:"date",required:"",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[2]||(W[2]=he=>T.workoutDate=he)},null,40,p4e),[[nt,T.workoutDate]]),Xe(p("input",{id:"workout-time",name:"workout-time",class:"workout-time",type:"time",required:"",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[3]||(W[3]=he=>T.workoutTime=he)},null,40,m4e),[[nt,T.workoutTime]])])]),p("div",_4e,[p("label",null,h(D.$t("workouts.DURATION"))+"*:",1),p("div",null,[Xe(p("input",{id:"workout-duration-hour",name:"workout-duration-hour",class:Ae(["workout-duration",{errored:G()}]),type:"text",placeholder:"HH",minlength:"1",maxlength:"2",pattern:"^([0-1]?[0-9]|2[0-3])$",required:"",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[4]||(W[4]=he=>T.workoutDurationHour=he)},null,42,E4e),[[nt,T.workoutDurationHour]]),K(" : "),Xe(p("input",{id:"workout-duration-minutes",name:"workout-duration-minutes",class:Ae(["workout-duration",{errored:G()}]),type:"text",pattern:"^([0-5][0-9])$",minlength:"2",maxlength:"2",placeholder:"MM",required:"",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[5]||(W[5]=he=>T.workoutDurationMinutes=he)},null,42,h4e),[[nt,T.workoutDurationMinutes]]),K(" : "),Xe(p("input",{id:"workout-duration-seconds",name:"workout-duration-seconds",class:Ae(["workout-duration",{errored:G()}]),type:"text",pattern:"^([0-5][0-9])$",minlength:"2",maxlength:"2",placeholder:"SS",required:"",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[6]||(W[6]=he=>T.workoutDurationSeconds=he)},null,42,T4e),[[nt,T.workoutDurationSeconds]])])])]),p("div",g4e,[p("div",A4e,[p("label",null,h(D.$t("workouts.DISTANCE"))+" ("+h(E(s).imperial_units?"mi":"km")+")*: ",1),Xe(p("input",{class:Ae({errored:j()}),name:"workout-distance",type:"number",min:"0",step:"0.001",required:"",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[7]||(W[7]=he=>T.workoutDistance=he)},null,42,S4e),[[nt,T.workoutDistance]])]),p("div",O4e,[p("label",null,h(D.$t("workouts.ASCENT"))+" ("+h(E(s).imperial_units?"ft":"m")+"): ",1),Xe(p("input",{class:Ae({errored:z()}),name:"workout-ascent",type:"number",min:"0",step:"0.01",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[8]||(W[8]=he=>T.workoutAscent=he)},null,42,I4e),[[nt,T.workoutAscent]])]),p("div",v4e,[p("label",null,h(D.$t("workouts.DESCENT"))+" ("+h(E(s).imperial_units?"ft":"m")+"): ",1),Xe(p("input",{class:Ae({errored:z()}),name:"workout-descent",type:"number",min:"0",step:"0.01",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[9]||(W[9]=he=>T.workoutDescent=he)},null,42,b4e),[[nt,T.workoutDescent]])])])])),p("div",R4e,[p("label",null,h(D.$t("workouts.NOTES"))+": ",1),U(B,{name:"notes",input:T.notes,disabled:E(u),onUpdateValue:g},null,8,["input","disabled"])])]),_.value?(A(),re(ae,{key:0,message:_.value},null,8,["message"])):x("",!0),E(u)?(A(),N("div",N4e,[U(Re)])):(A(),N("div",y4e,[p("button",{class:"confirm",type:"submit",disabled:E(u)},h(D.$t("buttons.SUBMIT")),9,C4e),p("button",{class:"cancel",onClick:Ze(ee,["prevent"])},h(D.$t("buttons.CANCEL")),9,D4e)]))],42,VDe)])]),_:1})],2)}}});const RA=se(P4e,[["__scopeId","data-v-4c5a9cd1"]]),w4e={id:"add-workout",class:"view"},L4e={class:"container"},$4e=Q({__name:"AddWorkout",setup(e){const t=Me(),n=$(()=>t.getters[Mt.GETTERS.SPORTS]),r=$(()=>t.getters[Y.GETTERS.AUTH_USER_PROFILE]),a=$(()=>t.getters[ge.GETTERS.WORKOUT_DATA]);return(s,o)=>(A(),N("div",w4e,[p("div",L4e,[U(RA,{authUser:r.value,sports:n.value,isCreation:!0,loading:a.value.loading},null,8,["authUser","sports","loading"])])]))}}),k4e={id:"edit-workout",class:"view"},U4e={class:"container"},M4e=Q({__name:"EditWorkout",setup(e){const t=Kt(),n=Me(),r=$(()=>n.getters[Y.GETTERS.AUTH_USER_PROFILE]),a=$(()=>n.getters[Mt.GETTERS.SPORTS]),s=$(()=>n.getters[ge.GETTERS.WORKOUT_DATA]);return bt(()=>{n.dispatch(ge.ACTIONS.GET_WORKOUT_DATA,{workoutId:t.params.workoutId})}),Be(()=>t.params.workoutId,async o=>{o||n.commit(ge.MUTATIONS.EMPTY_WORKOUT)}),(o,i)=>(A(),N("div",k4e,[p("div",U4e,[s.value.workout.id?(A(),re(RA,{key:0,authUser:r.value,sports:a.value,workout:s.value.workout,loading:s.value.loading},null,8,["authUser","sports","workout","loading"])):x("",!0)])]))}}),Cs=e=>(ct("data-v-e1628a52"),e=e(),lt(),e),x4e={id:"workout-card-title"},F4e=["disabled","title"],W4e=Cs(()=>p("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1)),G4e=[W4e],z4e={class:"workout-card-title"},B4e={class:"workout-title-date"},H4e={key:0,class:"workout-title"},j4e=["aria-label"],V4e=Cs(()=>p("i",{class:"fa fa-edit","aria-hidden":"true"},null,-1)),K4e=[V4e],Y4e=["aria-label"],q4e=Cs(()=>p("i",{class:"fa fa-download","aria-hidden":"true"},null,-1)),X4e=[q4e],Z4e=["onClick","aria-label"],Q4e=Cs(()=>p("i",{class:"fa fa-trash","aria-hidden":"true"},null,-1)),J4e=[Q4e],ePe={key:1,class:"workout-title"},tPe={class:"workout-segment"},nPe=Cs(()=>p("i",{class:"fa fa-map-marker","aria-hidden":"true"},null,-1)),rPe={class:"workout-date"},aPe={class:"workout-link"},sPe=["disabled","title"],oPe=Cs(()=>p("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1)),iPe=[oPe],uPe=Q({__name:"WorkoutCardTitle",props:{sport:{},workoutObject:{}},emits:["displayModal"],setup(e,{emit:t}){const n=e,r=t,{sport:a,workoutObject:s}=Te(n);async function o(u){await je.get(`workouts/${u}/gpx/download`,{responseType:"blob"}).then(c=>{const l=window.URL.createObjectURL(new Blob([c.data],{type:"application/gpx+xml"})),f=document.createElement("a");f.href=l,f.setAttribute("download",`${u}.gpx`),document.body.appendChild(f),f.click()})}function i(){r("displayModal",!0)}return(u,c)=>{const l=ue("SportImage"),f=ue("router-link");return A(),N("div",x4e,[p("button",{class:Ae(["workout-previous workout-arrow transparent",{inactive:!E(s).previousUrl}]),disabled:!E(s).previousUrl,title:E(s).previousUrl?u.$t(`workouts.PREVIOUS_${E(s).type}`):u.$t(`workouts.NO_PREVIOUS_${E(s).type}`),onClick:c[0]||(c[0]=d=>E(s).previousUrl?u.$router.push(E(s).previousUrl):null)},G4e,10,F4e),p("div",z4e,[U(l,{"sport-label":E(a).label,color:E(a).color},null,8,["sport-label","color"]),p("div",B4e,[E(s).type==="WORKOUT"?(A(),N("div",H4e,[p("span",null,h(E(s).title),1),p("button",{class:"transparent icon-button",onClick:c[1]||(c[1]=d=>u.$router.push({name:"EditWorkout",params:{workoutId:E(s).workoutId}})),"aria-label":u.$t("workouts.EDIT_WORKOUT")},K4e,8,j4e),E(s).with_gpx?(A(),N("button",{key:0,class:"transparent icon-button",onClick:c[2]||(c[2]=Ze(d=>o(E(s).workoutId),["prevent"])),"aria-label":u.$t("workouts.DOWNLOAD_WORKOUT")},X4e,8,Y4e)):x("",!0),p("button",{id:"delete-workout-button",class:"transparent icon-button",onClick:Ze(i,["prevent"]),"aria-label":u.$t("workouts.DELETE_WORKOUT")},J4e,8,Z4e)])):E(s).segmentId!==null?(A(),N("div",ePe,[K(h(E(s).title)+" ",1),p("span",tPe,[K(" — "),nPe,K(" "+h(u.$t("workouts.SEGMENT"))+" "+h(E(s).segmentId+1),1)])])):x("",!0),p("div",rPe,[p("time",null,h(E(s).workoutDate)+" - "+h(E(s).workoutTime),1),p("span",aPe,[E(s).type==="SEGMENT"?(A(),re(f,{key:0,to:{name:"Workout",params:{workoutId:E(s).workoutId}}},{default:pe(()=>[K(" > "+h(u.$t("workouts.BACK_TO_WORKOUT")),1)]),_:1},8,["to"])):x("",!0)])])])]),p("button",{class:Ae(["workout-next workout-arrow transparent",{inactive:!E(s).nextUrl}]),disabled:!E(s).nextUrl,title:E(s).nextUrl?u.$t(`workouts.NEXT_${E(s).type}`):u.$t(`workouts.NO_NEXT_${E(s).type}`),onClick:c[3]||(c[3]=d=>E(s).nextUrl?u.$router.push(E(s).nextUrl):null)},iPe,10,sPe)])}}});const cPe=se(uPe,[["__scopeId","data-v-e1628a52"]]),lPe=e=>(ct("data-v-1b247cbe"),e=e(),lt(),e),dPe={key:0,class:"workout-record"},fPe=lPe(()=>p("sup",null,[p("i",{class:"fa fa-trophy","aria-hidden":"true"})],-1)),pPe=[fPe],mPe=Q({__name:"WorkoutRecord",props:{recordType:{},workoutObject:{}},setup(e){const t=e,{recordType:n,workoutObject:r}=Te(t);return(a,s)=>E(r).records&&E(r).records.find(o=>o.record_type===E(n))?(A(),N("span",dPe,pPe)):x("",!0)}});const Hs=se(mPe,[["__scopeId","data-v-1b247cbe"]]),_Pe="/img/weather/temperature.svg",EPe="/img/weather/pour-rain.svg",hPe="/img/weather/breeze.svg",TPe=["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSW","SW","WSW","W","WNW","NW","NNW"],gPe=e=>{const t=Math.floor(e/22.5+.5);return TPe[t%16]},APe={class:"wind"},SPe={class:"wind-bearing"},OPe=["title"],IPe=Q({__name:"WeatherWind",props:{weather:{},useImperialUnits:{type:Boolean}},setup(e){const t=e,{useImperialUnits:n,weather:r}=Te(t),{t:a}=Vt();function s(o){return a(`workouts.WEATHER.WIND_DIRECTIONS.${gPe(o)}`)}return(o,i)=>(A(),N("div",APe,[K(h(E($fe)(E(r).wind,E(n)))+" ",1),p("div",SPe,[E(r).windBearing?(A(),N("i",{key:0,class:"fa fa-long-arrow-down",style:Hr({transform:`rotate(${E(r).windBearing}deg)`}),"aria-hidden":"true",title:s(E(r).windBearing)},null,12,OPe)):x("",!0)])]))}});const oE=se(IPe,[["__scopeId","data-v-e1f7f9cc"]]),vPe=e=>(ct("data-v-0eb0ef9d"),e=e(),lt(),e),bPe={key:0,id:"workout-weather"},RPe={class:"weather-table"},NPe=vPe(()=>p("th",null,null,-1)),yPe={class:"weather-th"},CPe=["src","alt","title"],DPe={class:"weather-th"},PPe=["src","alt","title"],wPe=["alt","title"],LPe=["alt","title"],$Pe=["alt","title"],kPe=Q({__name:"WorkoutWeather",props:{workoutObject:{},useImperialUnits:{type:Boolean}},setup(e){const t=e,{useImperialUnits:n,workoutObject:r}=Te(t);return(a,s)=>E(r).weatherStart&&E(r).weatherEnd?(A(),N("div",bPe,[p("table",RPe,[p("thead",null,[p("tr",null,[NPe,p("th",null,[p("div",yPe,[K(h(a.$t("workouts.START"))+" ",1),p("img",{class:"weather-img",src:`/img/weather/${E(r).weatherStart.icon}.svg`,alt:a.$t(`workouts.WEATHER.DARK_SKY.${E(r).weatherStart.icon}`),title:a.$t(`workouts.WEATHER.DARK_SKY.${E(r).weatherStart.icon}`)},null,8,CPe)])]),p("th",null,[p("div",DPe,[K(h(a.$t("workouts.END"))+" ",1),p("img",{class:"weather-img",src:`/img/weather/${E(r).weatherEnd.icon}.svg`,alt:a.$t(`workouts.WEATHER.DARK_SKY.${E(r).weatherEnd.icon}`),title:a.$t(`workouts.WEATHER.DARK_SKY.${E(r).weatherEnd.icon}`)},null,8,PPe)])])])]),p("tbody",null,[p("tr",null,[p("td",null,[p("img",{class:"weather-img weather-img-small",src:_Pe,alt:a.$t("workouts.WEATHER.TEMPERATURE"),title:a.$t("workouts.WEATHER.TEMPERATURE")},null,8,wPe)]),p("td",null,h(E(Im)(E(r).weatherStart.temperature,E(n))),1),p("td",null,h(E(Im)(E(r).weatherEnd.temperature,E(n))),1)]),p("tr",null,[p("td",null,[p("img",{class:"weather-img weather-img-small",src:EPe,alt:a.$t("workouts.WEATHER.HUMIDITY"),title:a.$t("workouts.WEATHER.HUMIDITY")},null,8,LPe)]),p("td",null,h(Number(E(r).weatherStart.humidity*100).toFixed(1))+"% ",1),p("td",null,h(Number(E(r).weatherEnd.humidity*100).toFixed(1))+"% ",1)]),p("tr",null,[p("td",null,[p("img",{class:"weather-img weather-img-small",src:hPe,alt:a.$t("workouts.WEATHER.WIND"),title:a.$t("workouts.WEATHER.WIND")},null,8,$Pe)]),p("td",null,[U(oE,{weather:E(r).weatherStart,useImperialUnits:E(n)},null,8,["weather","useImperialUnits"])]),p("td",null,[U(oE,{weather:E(r).weatherEnd,useImperialUnits:E(n)},null,8,["weather","useImperialUnits"])])])])])])):x("",!0)}});const UPe=se(kPe,[["__scopeId","data-v-0eb0ef9d"]]),va=e=>(ct("data-v-9341b3e8"),e=e(),lt(),e),MPe={id:"workout-info"},xPe={class:"workout-data"},FPe=va(()=>p("i",{class:"fa fa-clock-o","aria-hidden":"true"},null,-1)),WPe={class:"label"},GPe={class:"value"},zPe={key:0},BPe={class:"value"},HPe={class:"value"},jPe={key:0,class:"workout-data"},VPe=va(()=>p("i",{class:"fa fa-road","aria-hidden":"true"},null,-1)),KPe={class:"label"},YPe={key:1,class:"workout-data"},qPe=va(()=>p("i",{class:"fa fa-tachometer","aria-hidden":"true"},null,-1)),XPe={class:"label"},ZPe=va(()=>p("br",null,null,-1)),QPe={class:"label"},JPe={key:2,class:"workout-data"},ewe=["alt"],twe={class:"label"},nwe=va(()=>p("br",null,null,-1)),rwe={class:"label"},awe={key:3,class:"workout-data"},swe=va(()=>p("i",{class:"fa fa-location-arrow","aria-hidden":"true"},null,-1)),owe={class:"label"},iwe=va(()=>p("br",null,null,-1)),uwe={class:"label"},cwe=Q({__name:"WorkoutData",props:{workoutObject:{},useImperialUnits:{type:Boolean},displayHARecord:{type:Boolean}},setup(e){const t=e,{displayHARecord:n,workoutObject:r,useImperialUnits:a}=Te(t),s=$(()=>t.workoutObject.pauses!=="0:00:00"&&t.workoutObject.pauses!==null);return(o,i)=>{const u=ue("Distance");return A(),N("div",MPe,[p("div",xPe,[FPe,p("span",WPe,h(o.$t("workouts.DURATION")),1),K(": "),p("span",GPe,h(E(r).moving),1),U(Hs,{workoutObject:E(r),recordType:"LD"},null,8,["workoutObject"]),s.value?(A(),N("div",zPe,[K(" ("+h(o.$t("workouts.PAUSES"))+": ",1),p("span",BPe,h(E(r).pauses),1),K(" - "+h(o.$t("workouts.TOTAL_DURATION"))+": ",1),p("span",HPe,h(E(r).duration)+")",1)])):x("",!0)]),E(r).distance!==null?(A(),N("div",jPe,[VPe,p("span",KPe,h(o.$t("workouts.DISTANCE")),1),K(": "),U(u,{distance:E(r).distance,digits:3,unitFrom:"km",strong:!0,useImperialUnits:E(a)},null,8,["distance","useImperialUnits"]),U(Hs,{workoutObject:E(r),recordType:"FD"},null,8,["workoutObject"])])):x("",!0),E(r).aveSpeed!==null&&E(r).maxSpeed!==null?(A(),N("div",YPe,[qPe,p("span",XPe,h(o.$t("workouts.AVERAGE_SPEED")),1),K(": "),U(u,{distance:E(r).aveSpeed,unitFrom:"km",speed:!0,strong:!0,useImperialUnits:E(a)},null,8,["distance","useImperialUnits"]),U(Hs,{workoutObject:E(r),recordType:"AS"},null,8,["workoutObject"]),ZPe,p("span",QPe,h(o.$t("workouts.MAX_SPEED")),1),K(": "),U(u,{distance:E(r).maxSpeed,unitFrom:"km",speed:!0,strong:!0,useImperialUnits:E(a)},null,8,["distance","useImperialUnits"]),U(Hs,{workoutObject:E(r),recordType:"MS"},null,8,["workoutObject"])])):x("",!0),E(r).maxAlt!==null&&E(r).minAlt!==null?(A(),N("div",JPe,[p("img",{class:"mountains",src:_A,alt:o.$t("workouts.ELEVATION")},null,8,ewe),p("span",twe,h(o.$t("workouts.MIN_ALTITUDE")),1),K(": "),U(u,{distance:E(r).minAlt,unitFrom:"m",strong:!0,useImperialUnits:E(a)},null,8,["distance","useImperialUnits"]),nwe,p("span",rwe,h(o.$t("workouts.MAX_ALTITUDE")),1),K(": "),U(u,{distance:E(r).maxAlt,unitFrom:"m",strong:!0,useImperialUnits:E(a)},null,8,["distance","useImperialUnits"])])):x("",!0),E(r).ascent!==null&&E(r).descent!==null?(A(),N("div",awe,[swe,p("span",owe,h(o.$t("workouts.ASCENT")),1),K(": "),U(u,{distance:E(r).ascent,unitFrom:"m",strong:!0,useImperialUnits:E(a)},null,8,["distance","useImperialUnits"]),E(n)?(A(),re(Hs,{key:0,workoutObject:E(r),recordType:"HA"},null,8,["workoutObject"])):x("",!0),iwe,p("span",uwe,h(o.$t("workouts.DESCENT")),1),K(": "),U(u,{distance:E(r).descent,unitFrom:"m",strong:!0,useImperialUnits:E(a)},null,8,["distance","useImperialUnits"])])):x("",!0),U(UPe,{workoutObject:E(r),useImperialUnits:E(a)},null,8,["workoutObject","useImperialUnits"])])}}});const lwe=se(cwe,[["__scopeId","data-v-9341b3e8"]]);function qa(e,t){return Array.from(e.getElementsByTagName(t))}function Ds(e){return e==null||e.normalize(),e&&e.textContent||""}function Ea(e,t,n){const r=e.getElementsByTagName(t),a=r.length?r[0]:null;return a&&n&&n(a),a}function dwe(e,t,n){const r={};if(!e)return r;const a=e.getElementsByTagName(t),s=a.length?a[0]:null;return s&&n?n(s,r):r}function NA(e,t,n){const r=Ds(Ea(e,t));return r&&n?n(r)||{}:{}}function iE(e,t,n){const r=parseFloat(Ds(Ea(e,t)));if(!isNaN(r))return r&&n?n(r)||{}:{}}function fwe(e,t,n){const r=parseFloat(Ds(Ea(e,t)));if(!isNaN(r))return n&&n(r),r}function $d(e,t){const n={};for(const r of t)NA(e,r,a=>{n[r]=a});return n}function pwe(e){return(e==null?void 0:e.nodeType)===1}function yA(e){return dwe(e,"line",t=>Object.assign({},NA(t,"color",r=>({stroke:`#${r}`})),iE(t,"opacity",r=>({"stroke-opacity":r})),iE(t,"width",r=>({"stroke-width":r*96/25.4}))))}function CA(e){let t=[];if(e===null)return t;for(const n of Array.from(e.childNodes)){if(!pwe(n))continue;const r=mwe(n.nodeName);if(r==="gpxtpx:TrackPointExtension")t=t.concat(CA(n));else{const a=Ds(n);t.push([r,_we(a)])}}return t}function mwe(e){return["heart","gpxtpx:hr","hr"].includes(e)?"heart":e}function _we(e){const t=parseFloat(e);return isNaN(t)?e:t}function DA(e){const t=[parseFloat(e.getAttribute("lon")||""),parseFloat(e.getAttribute("lat")||"")];if(isNaN(t[0])||isNaN(t[1]))return null;fwe(e,"ele",r=>{t.push(r)});const n=Ea(e,"time");return{coordinates:t,time:n?Ds(n):null,extendedValues:CA(Ea(e,"extensions"))}}function d0(e){var a;const t=$d(e,["name","cmt","desc","type","time","keywords"]),n=Array.from(e.getElementsByTagNameNS("http://www.garmin.com/xmlschemas/GpxExtensions/v3","*"));for(const s of n)((a=s.parentNode)==null?void 0:a.parentNode)===e&&(t[s.tagName.replace(":","_")]=Ds(s));const r=qa(e,"link");return r.length&&(t.links=r.map(s=>Object.assign({href:s.getAttribute("href")},$d(s,["text","type"])))),t}function PA(e,t){const n=qa(e,t),r=[],a=[],s={};for(let o=0;o1,o=Object.assign({_gpxType:"trk"},d0(e),yA(Ea(e,"extensions")),r.length?{coordinateProperties:{times:s?r:r[0]}}:{});for(const i of a){n.push(i.line),o.coordinateProperties||(o.coordinateProperties={});const u=o.coordinateProperties,c=Object.entries(i.extendedValues);for(let l=0;lnew Array(m.line.length).fill(null))),u[f][l]=d):u[f]=d}}return{type:"Feature",properties:o,geometry:s?{type:"MultiLineString",coordinates:n}:{type:"LineString",coordinates:n[0]}}}function Twe(e){const t=Object.assign(d0(e),$d(e,["sym"])),n=DA(e);return n?{type:"Feature",properties:t,geometry:{type:"Point",coordinates:n.coordinates}}:null}function*gwe(e){for(const t of qa(e,"trk")){const n=hwe(t);n&&(yield n)}for(const t of qa(e,"rte")){const n=Ewe(t);n&&(yield n)}for(const t of qa(e,"wpt")){const n=Twe(t);n&&(yield n)}}function Awe(e){return{type:"FeatureCollection",features:Array.from(gwe(e))}}const uE=(e,t)=>{for(const n of Object.keys(t))e.on(n,t[n])},wA=e=>{for(const t of Object.keys(e)){const n=e[t];n&&Lr(n.cancel)&&n.cancel()}},Swe=e=>!e||typeof e.charAt!="function"?e:e.charAt(0).toUpperCase()+e.slice(1),Lr=e=>typeof e=="function",gr=(e,t,n)=>{for(const r in n){const a="set"+Swe(r);e[a]?Be(()=>n[r],(s,o)=>{e[a](s,o)}):t[a]&&Be(()=>n[r],s=>{t[a](s)})}},tr=(e,t,n={})=>{const r={...n};for(const a in e){const s=t[a],o=e[a];s&&(s&&s.custom===!0||o!==void 0&&(r[a]=o))}return r},ba=e=>{const t={},n={};for(const r in e)if(r.startsWith("on")&&!r.startsWith("onUpdate")&&r!=="onReady"){const a=r.slice(2).toLocaleLowerCase();t[a]=e[r]}else n[r]=e[r];return{listeners:t,attrs:n}},Owe=async e=>{const t=await Promise.all([yt(()=>import("./maps-c37c70d1.js").then(n=>n.m),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]),yt(()=>import("./maps-c37c70d1.js").then(n=>n.b),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]),yt(()=>import("./maps-c37c70d1.js").then(n=>n.d),["static/maps-c37c70d1.js","static/css/maps-69420918.css"])]);delete e.Default.prototype._getIconUrl,e.Default.mergeOptions({iconRetinaUrl:t[0].default,iconUrl:t[1].default,shadowUrl:t[2].default})},yi=e=>{const t=le((...r)=>console.warn(`Method ${e} has been invoked without being replaced`)),n=(...r)=>t.value(...r);return n.wrapped=t,tn(e,n),n},Ci=(e,t)=>e.wrapped.value=t,Ln=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||globalThis,vn=e=>{const t=ht(e);if(t===void 0)throw new Error(`Attempt to inject ${e.description} before it was provided.`);return t},Ar=Symbol("useGlobalLeaflet"),Xr=Symbol("addLayer"),f0=Symbol("removeLayer"),LA=Symbol("registerControl"),$A=Symbol("registerLayerControl"),kA=Symbol("canSetParentHtml"),UA=Symbol("setParentHtml"),MA=Symbol("setIcon"),Iwe=Symbol("bindPopup"),vwe=Symbol("bindTooltip"),bwe=Symbol("unbindPopup"),Rwe=Symbol("unbindTooltip"),Qo={options:{type:Object,default:()=>({}),custom:!0}},Sc=e=>({options:e.options,methods:{}}),Ps={...Qo,pane:{type:String},attribution:{type:String},name:{type:String,custom:!0},layerType:{type:String,custom:!0},visible:{type:Boolean,custom:!0,default:!0}},p0=(e,t,n)=>{const r=vn(Xr),a=vn(f0),{options:s,methods:o}=Sc(e),i=tr(e,Ps,s),u=()=>r({leafletObject:t.value}),c=()=>a({leafletObject:t.value}),l={...o,setAttribution(f){c(),t.value.options.attribution=f,e.visible&&u()},setName(){c(),e.visible&&u()},setLayerType(){c(),e.visible&&u()},setVisible(f){t.value&&(f?u():c())},bindPopup(f){if(!t.value||!Lr(t.value.bindPopup)){console.warn("Attempt to bind popup before bindPopup method available on layer.");return}t.value.bindPopup(f)},bindTooltip(f){if(!t.value||!Lr(t.value.bindTooltip)){console.warn("Attempt to bind tooltip before bindTooltip method available on layer.");return}t.value.bindTooltip(f)},unbindTooltip(){t.value&&(Lr(t.value.closeTooltip)&&t.value.closeTooltip(),Lr(t.value.unbindTooltip)&&t.value.unbindTooltip())},unbindPopup(){t.value&&(Lr(t.value.closePopup)&&t.value.closePopup(),Lr(t.value.unbindPopup)&&t.value.unbindPopup())},updateVisibleProp(f){n.emit("update:visible",f)}};return tn(Iwe,l.bindPopup),tn(vwe,l.bindTooltip),tn(bwe,l.unbindPopup),tn(Rwe,l.unbindTooltip),Rt(()=>{l.unbindPopup(),l.unbindTooltip(),c()}),{options:i,methods:l}},m0=(e,t)=>{if(e&&t.default)return Rn("div",{style:{display:"none"}},t.default())},Nwe={...Ps,interactive:{type:Boolean,default:void 0},bubblingMouseEvents:{type:Boolean,default:void 0}},xA={...Nwe,stroke:{type:Boolean,default:void 0},color:{type:String},weight:{type:Number},opacity:{type:Number},lineCap:{type:String},lineJoin:{type:String},dashArray:{type:String},dashOffset:{type:String},fill:{type:Boolean,default:void 0},fillColor:{type:String},fillOpacity:{type:Number},fillRule:{type:String},className:{type:String}},ywe={...xA,radius:{type:Number},latLng:{type:[Object,Array],required:!0,custom:!0}};({...ywe});const ws={...Qo,position:{type:String}},FA=(e,t)=>{const{options:n,methods:r}=Sc(e),a=tr(e,ws,n),s={...r,setPosition(o){t.value&&t.value.setPosition(o)}};return Rt(()=>{t.value&&t.value.remove()}),{options:a,methods:s}},Cwe=e=>e.default?Rn("div",{ref:"root"},e.default()):null,cE=Q({name:"LControl",props:{...ws,disableClickPropagation:{type:Boolean,custom:!0,default:!0},disableScrollPropagation:{type:Boolean,custom:!0,default:!1}},setup(e,t){const n=le(),r=le(),a=ht(Ar),s=vn(LA),{options:o,methods:i}=FA(e,n);return St(async()=>{const{Control:u,DomEvent:c}=a?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(f=>f.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]),l=u.extend({onAdd(){return r.value}});n.value=Jn(new l(o)),gr(i,n.value,e),s({leafletObject:n.value}),e.disableClickPropagation&&r.value&&c.disableClickPropagation(r.value),e.disableScrollPropagation&&r.value&&c.disableScrollPropagation(r.value),bn(()=>t.emit("ready",n.value))}),{root:r,leafletObject:n}},render(){return Cwe(this.$slots)}});({...ws});const WA={...ws,collapsed:{type:Boolean,default:void 0},autoZIndex:{type:Boolean,default:void 0},hideSingleBase:{type:Boolean,default:void 0},sortLayers:{type:Boolean,default:void 0},sortFunction:{type:Function}},Dwe=(e,t)=>{const{options:n}=FA(e,t);return{options:tr(e,WA,n),methods:{addLayer(r){r.layerType==="base"?t.value.addBaseLayer(r.leafletObject,r.name):r.layerType==="overlay"&&t.value.addOverlay(r.leafletObject,r.name)},removeLayer(r){t.value.removeLayer(r.leafletObject)}}}},Pwe=Q({name:"LControlLayers",props:WA,setup(e,t){const n=le(),r=ht(Ar),a=vn($A),{options:s,methods:o}=Dwe(e,n);return St(async()=>{const{control:i}=r?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(u=>u.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]);n.value=Jn(i.layers(void 0,void 0,s)),gr(o,n.value,e),a({...e,...o,leafletObject:n.value}),bn(()=>t.emit("ready",n.value))}),{leafletObject:n}},render(){return null}});({...ws});({...ws});const Oc={...Ps},GA=(e,t,n)=>{const{options:r,methods:a}=p0(e,t,n),s=tr(e,Oc,r),o={...a,addLayer(i){t.value.addLayer(i.leafletObject)},removeLayer(i){t.value.removeLayer(i.leafletObject)}};return tn(Xr,o.addLayer),tn(f0,o.removeLayer),{options:s,methods:o}};({...Oc});const zA={...Oc,geojson:{type:[Object,Array],custom:!0},optionsStyle:{type:Function,custom:!0}},wwe=(e,t,n)=>{const{options:r,methods:a}=GA(e,t,n),s=tr(e,zA,r);Object.prototype.hasOwnProperty.call(e,"optionsStyle")&&(s.style=e.optionsStyle);const o={...a,setGeojson(i){t.value.clearLayers(),t.value.addData(i)},setOptionsStyle(i){t.value.setStyle(i)},getGeoJSONData(){return t.value.toGeoJSON()},getBounds(){return t.value.getBounds()}};return{options:s,methods:o}},Lwe=Q({props:zA,setup(e,t){const n=le(),r=le(!1),a=ht(Ar),s=vn(Xr),{methods:o,options:i}=wwe(e,n,t);return St(async()=>{const{geoJSON:u}=a?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(l=>l.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]);n.value=Jn(u(e.geojson,i));const{listeners:c}=ba(t.attrs);n.value.on(c),gr(o,n.value,e),s({...e,...o,leafletObject:n.value}),r.value=!0,bn(()=>t.emit("ready",n.value))}),{ready:r,leafletObject:n}},render(){return m0(this.ready,this.$slots)}}),_0={...Ps,opacity:{type:Number},zIndex:{type:Number},tileSize:{type:[Number,Array,Object]},noWrap:{type:Boolean,default:void 0},minZoom:{type:Number},maxZoom:{type:Number},className:{type:String}},BA=(e,t,n)=>{const{options:r,methods:a}=p0(e,t,n),s=tr(e,_0,r),o={...a,setTileComponent(){var i;(i=t.value)==null||i.redraw()}};return Rt(()=>{t.value.off()}),{options:s,methods:o}},$we=(e,t,n,r)=>e.extend({initialize(a){this.tileComponents={},this.on("tileunload",this._unloadTile),n.setOptions(this,a)},createTile(a){const s=this._tileCoordsToKey(a);this.tileComponents[s]=t.create("div");const o=Rn({setup:r,props:["coords"]},{coords:a});return yI(o,this.tileComponents[s]),this.tileComponents[s]},_unloadTile(a){const s=this._tileCoordsToKey(a.coords);this.tileComponents[s]&&(this.tileComponents[s].innerHTML="",this.tileComponents[s]=void 0)}});({..._0});const lE={iconUrl:{type:String},iconRetinaUrl:{type:String},iconSize:{type:[Object,Array]},iconAnchor:{type:[Object,Array]},popupAnchor:{type:[Object,Array]},tooltipAnchor:{type:[Object,Array]},shadowUrl:{type:String},shadowRetinaUrl:{type:String},shadowSize:{type:[Object,Array]},shadowAnchor:{type:[Object,Array]},bgPos:{type:[Object,Array]},className:{type:String}},kwe=Q({name:"LIcon",props:{...lE,...Qo},setup(e,t){const n=le(),r=ht(Ar),a=vn(kA),s=vn(UA),o=vn(MA);let i,u,c,l,f;const d=(R,I,b)=>{const v=R&&R.innerHTML;if(!I){b&&f&&a()&&s(v);return}const{listeners:g}=ba(t.attrs);f&&u(f,g);const{options:L}=Sc(e),w=tr(e,lE,L);v&&(w.html=v),f=w.html?c(w):l(w),i(f,g),o(f)},m=()=>{bn(()=>d(n.value,!0,!1))},_=()=>{bn(()=>d(n.value,!1,!0))},T={setIconUrl:m,setIconRetinaUrl:m,setIconSize:m,setIconAnchor:m,setPopupAnchor:m,setTooltipAnchor:m,setShadowUrl:m,setShadowRetinaUrl:m,setShadowAnchor:m,setBgPos:m,setClassName:m,setHtml:m};return St(async()=>{const{DomEvent:R,divIcon:I,icon:b}=r?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(v=>v.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]);i=R.on,u=R.off,c=I,l=b,gr(T,{},e),new MutationObserver(_).observe(n.value,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),m()}),{root:n}},render(){const e=this.$slots.default?this.$slots.default():void 0;return Rn("div",{ref:"root"},e)}});({...Ps});const Uwe=Q({props:Oc,setup(e,t){const n=le(),r=le(!1),a=ht(Ar),s=vn(Xr),{methods:o}=GA(e,n,t);return St(async()=>{const{layerGroup:i}=a?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(c=>c.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]);n.value=Jn(i(void 0,e.options));const{listeners:u}=ba(t.attrs);n.value.on(u),gr(o,n.value,e),s({...e,...o,leafletObject:n.value}),r.value=!0,bn(()=>t.emit("ready",n.value))}),{ready:r,leafletObject:n}},render(){return m0(this.ready,this.$slots)}});function HA(e,t,n){var r,a,s;t===void 0&&(t=50),n===void 0&&(n={});var o=(r=n.isImmediate)!=null&&r,i=(a=n.callback)!=null&&a,u=n.maxWait,c=Date.now(),l=[];function f(){if(u!==void 0){var m=Date.now()-c;if(m+t>=u)return u-m}return t}var d=function(){var m=[].slice.call(arguments),_=this;return new Promise(function(T,R){var I=o&&s===void 0;if(s!==void 0&&clearTimeout(s),s=setTimeout(function(){if(s=void 0,c=Date.now(),!o){var v=e.apply(_,m);i&&i(v),l.forEach(function(g){return(0,g.resolve)(v)}),l=[]}},f()),I){var b=e.apply(_,m);return i&&i(b),T(b)}l.push({resolve:T,reject:R})})};return d.cancel=function(m){s!==void 0&&clearTimeout(s),l.forEach(function(_){return(0,_.reject)(m)}),l=[]},d}const dE={...Qo,center:{type:[Object,Array]},bounds:{type:[Array,Object]},maxBounds:{type:[Array,Object]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},paddingBottomRight:{type:[Object,Array]},paddingTopLeft:{type:Object},padding:{type:Object},worldCopyJump:{type:Boolean,default:void 0},crs:{type:[String,Object]},maxBoundsViscosity:{type:Number},inertia:{type:Boolean,default:void 0},inertiaDeceleration:{type:Number},inertiaMaxSpeed:{type:Number},easeLinearity:{type:Number},zoomAnimation:{type:Boolean,default:void 0},zoomAnimationThreshold:{type:Number},fadeAnimation:{type:Boolean,default:void 0},markerZoomAnimation:{type:Boolean,default:void 0},noBlockingAnimations:{type:Boolean,default:void 0},useGlobalLeaflet:{type:Boolean,default:!0,custom:!0}},Mwe=Q({inheritAttrs:!1,emits:["ready","update:zoom","update:center","update:bounds"],props:dE,setup(e,t){const n=le(),r=zt({ready:!1,layersToAdd:[],layersInControl:[]}),{options:a}=Sc(e),s=tr(e,dE,a),{listeners:o,attrs:i}=ba(t.attrs),u=yi(Xr),c=yi(f0),l=yi(LA),f=yi($A);tn(Ar,e.useGlobalLeaflet);const d=$(()=>{const I={};return e.noBlockingAnimations&&(I.animate=!1),I}),m=$(()=>{const I=d.value;return e.padding&&(I.padding=e.padding),e.paddingTopLeft&&(I.paddingTopLeft=e.paddingTopLeft),e.paddingBottomRight&&(I.paddingBottomRight=e.paddingBottomRight),I}),_={moveend:HA(I=>{r.leafletRef&&(t.emit("update:zoom",r.leafletRef.getZoom()),t.emit("update:center",r.leafletRef.getCenter()),t.emit("update:bounds",r.leafletRef.getBounds()))}),overlayadd(I){const b=r.layersInControl.find(v=>v.name===I.name);b&&b.updateVisibleProp(!0)},overlayremove(I){const b=r.layersInControl.find(v=>v.name===I.name);b&&b.updateVisibleProp(!1)}};St(async()=>{e.useGlobalLeaflet&&(Ln.L=Ln.L||await yt(()=>import("./maps-c37c70d1.js").then(G=>G.l),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]));const{map:I,CRS:b,Icon:v,latLngBounds:g,latLng:L,stamp:w}=e.useGlobalLeaflet?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(G=>G.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]);try{s.beforeMapMount&&await s.beforeMapMount()}catch(G){console.error(`The following error occurred running the provided beforeMapMount hook ${G.message}`)}await Owe(v);const P=typeof s.crs=="string"?b[s.crs]:s.crs;s.crs=P||b.EPSG3857;const j={addLayer(G){G.layerType!==void 0&&(r.layerControl===void 0?r.layersToAdd.push(G):r.layersInControl.find(z=>w(z.leafletObject)===w(G.leafletObject))||(r.layerControl.addLayer(G),r.layersInControl.push(G))),G.visible!==!1&&r.leafletRef.addLayer(G.leafletObject)},removeLayer(G){G.layerType!==void 0&&(r.layerControl===void 0?r.layersToAdd=r.layersToAdd.filter(z=>z.name!==G.name):(r.layerControl.removeLayer(G.leafletObject),r.layersInControl=r.layersInControl.filter(z=>w(z.leafletObject)!==w(G.leafletObject)))),r.leafletRef.removeLayer(G.leafletObject)},registerLayerControl(G){r.layerControl=G,r.layersToAdd.forEach(z=>{r.layerControl.addLayer(z)}),r.layersToAdd=[],l(G)},registerControl(G){r.leafletRef.addControl(G.leafletObject)},setZoom(G){const z=r.leafletRef.getZoom();G!==z&&r.leafletRef.setZoom(G,d.value)},setCrs(G){const z=r.leafletRef.getBounds();r.leafletRef.options.crs=G,r.leafletRef.fitBounds(z,{animate:!1,padding:[0,0]})},fitBounds(G){r.leafletRef.fitBounds(G,m.value)},setBounds(G){if(!G)return;const z=g(G);z.isValid()&&!(r.lastSetBounds||r.leafletRef.getBounds()).equals(z,0)&&(r.lastSetBounds=z,r.leafletRef.fitBounds(z))},setCenter(G){if(G==null)return;const z=L(G),k=r.lastSetCenter||r.leafletRef.getCenter();(k.lat!==z.lat||k.lng!==z.lng)&&(r.lastSetCenter=z,r.leafletRef.panTo(z,d.value))}};Ci(u,j.addLayer),Ci(c,j.removeLayer),Ci(l,j.registerControl),Ci(f,j.registerLayerControl),r.leafletRef=Jn(I(n.value,s)),gr(j,r.leafletRef,e),uE(r.leafletRef,_),uE(r.leafletRef,o),r.ready=!0,bn(()=>t.emit("ready",r.leafletRef))}),ko(()=>{wA(_),r.leafletRef&&(r.leafletRef.off(),r.leafletRef.remove())});const T=$(()=>r.leafletRef),R=$(()=>r.ready);return{root:n,ready:R,leafletObject:T,attrs:i}},render({attrs:e}){return e.style||(e.style={}),e.style.width||(e.style.width="100%"),e.style.height||(e.style.height="100%"),Rn("div",{...e,ref:"root"},this.ready&&this.$slots.default?this.$slots.default():{})}}),xwe=["Symbol(Comment)","Symbol(Text)"],Fwe=["LTooltip","LPopup"],jA={...Ps,draggable:{type:Boolean,default:void 0},icon:{type:[Object]},zIndexOffset:{type:Number},latLng:{type:[Object,Array],custom:!0,required:!0}},Wwe=(e,t,n)=>{const{options:r,methods:a}=p0(e,t,n),s=tr(e,jA,r),o={...a,setDraggable(i){t.value.dragging&&(i?t.value.dragging.enable():t.value.dragging.disable())},latLngSync(i){n.emit("update:latLng",i.latlng),n.emit("update:lat-lng",i.latlng)},setLatLng(i){if(i!=null&&t.value){const u=t.value.getLatLng();(!u||!u.equals(i))&&t.value.setLatLng(i)}}};return{options:s,methods:o}},Gwe=(e,t)=>{const n=t.slots.default&&t.slots.default();return n&&n.length&&n.some(zwe)};function zwe(e){return!(xwe.includes(e.type.toString())||Fwe.includes(e.type.name))}const VA=Q({name:"LMarker",props:jA,setup(e,t){const n=le(),r=le(!1),a=ht(Ar),s=vn(Xr);tn(kA,()=>{var c;return!!((c=n.value)!=null&&c.getElement())}),tn(UA,c=>{var l,f;const d=Lr((l=n.value)==null?void 0:l.getElement)&&((f=n.value)==null?void 0:f.getElement());d&&(d.innerHTML=c)}),tn(MA,c=>{var l;return((l=n.value)==null?void 0:l.setIcon)&&n.value.setIcon(c)});const{options:o,methods:i}=Wwe(e,n,t),u={moveHandler:HA(i.latLngSync)};return St(async()=>{const{marker:c,divIcon:l}=a?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(d=>d.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]);Gwe(o,t)&&(o.icon=l({className:""})),n.value=Jn(c(e.latLng,o));const{listeners:f}=ba(t.attrs);n.value.on(f),n.value.on("move",u.moveHandler),gr(i,n.value,e),s({...e,...i,leafletObject:n.value}),r.value=!0,bn(()=>t.emit("ready",n.value))}),ko(()=>wA(u)),{ready:r,leafletObject:n}},render(){return m0(this.ready,this.$slots)}}),Bwe={...xA,smoothFactor:{type:Number},noClip:{type:Boolean,default:void 0},latLngs:{type:Array,required:!0,custom:!0}},fE={...Bwe},KA={...Qo,content:{type:String,default:null}};({...KA});({...fE,latLngs:{...fE.latLngs}});const E0={..._0,tms:{type:Boolean,default:void 0},subdomains:{type:[String,Array],validator:e=>typeof e=="string"?!0:Array.isArray(e)?e.every(t=>typeof t=="string"):!1},detectRetina:{type:Boolean,default:void 0},url:{type:String,required:!0,custom:!0}},Hwe=(e,t,n)=>{const{options:r,methods:a}=BA(e,t,n),s=tr(e,E0,r),o={...a};return{options:s,methods:o}},jwe=Q({props:E0,setup(e,t){const n=le(),r=ht(Ar),a=vn(Xr),{options:s,methods:o}=Hwe(e,n,t);return St(async()=>{const{tileLayer:i}=r?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(c=>c.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]);n.value=Jn(i(e.url,s));const{listeners:u}=ba(t.attrs);n.value.on(u),gr(o,n.value,e),a({...e,...o,leafletObject:n.value}),bn(()=>t.emit("ready",n.value))}),{leafletObject:n}},render(){return null}});({...KA});({...E0});const pE=Q({__name:"CustomMarker",props:{markerCoordinates:{},isStart:{type:Boolean}},setup(e){const t=e,{isStart:n,markerCoordinates:r}=Te(t);return(a,s)=>E(r).latitude?(A(),re(E(VA),{key:0,"lat-lng":[E(r).latitude,E(r).longitude]},{default:pe(()=>[U(E(kwe),{"icon-url":`/img/workouts/${E(n)?"start":"finish"}.svg`,iconSize:[15,15]},null,8,["icon-url"])]),_:1},8,["lat-lng"])):x("",!0)}}),Vwe=e=>(ct("data-v-d75d6469"),e=e(),lt(),e),Kwe={id:"workout-map"},Ywe={key:0,class:"leaflet-container"},qwe={key:1},Xwe=Vwe(()=>p("i",{class:"fa fa-refresh","aria-hidden":"true"},null,-1)),Zwe={key:1,class:"no-map"},Qwe=Q({__name:"index",props:{workoutData:{},markerCoordinates:{default:()=>({})}},setup(e){const t=e,n=Me(),{workoutData:r,markerCoordinates:a}=Te(t),s=le(null),o=$(()=>R()),i=$(()=>n.getters[V.GETTERS.APP_CONFIG]),u=$(()=>_(o)),c=$(()=>t.workoutData&&t.workoutData.gpx?m(t.workoutData.gpx):{}),l=$(()=>t.workoutData&&t.workoutData.chartData.length>0?{latitude:t.workoutData.chartData[0].latitude,longitude:t.workoutData.chartData[0].longitude}:{}),f=$(()=>t.workoutData&&t.workoutData.chartData.length>0?{latitude:t.workoutData.chartData[t.workoutData.chartData.length-1].latitude,longitude:t.workoutData.chartData[t.workoutData.chartData.length-1].longitude}:{}),d=le(!1);function m(v){if(!v||v!=="")try{return{jsonData:Awe(new DOMParser().parseFromString(v,"text/xml"))}}catch{return console.error("Invalid gpx content"),{}}return{}}function _(v){return[(v.value[0][0]+v.value[1][0])/2,(v.value[0][1]+v.value[1][1])/2]}function T(v){var g,L;(g=s.value)!=null&&g.leafletObject&&((L=s.value)==null||L.leafletObject.fitBounds(v))}function R(){return t.workoutData?[[t.workoutData.workout.bounds[0],t.workoutData.workout.bounds[1]],[t.workoutData.workout.bounds[2],t.workoutData.workout.bounds[3]]]:[]}function I(){var v;(v=s.value)==null||v.leafletObject.fitBounds(R())}function b(){d.value=!d.value,d.value||setTimeout(()=>{I()},100)}return(v,g)=>{const L=ue("VFullscreen");return A(),N("div",Kwe,[E(r).loading?(A(),N("div",Ywe)):(A(),N("div",qwe,[E(r).workout.with_gpx?(A(),re(L,{key:0,modelValue:d.value,"onUpdate:modelValue":g[1]||(g[1]=w=>d.value=w)},{default:pe(()=>[p("div",{class:Ae(["leaflet-container",{"fullscreen-map":d.value}])},[c.value.jsonData&&u.value&&o.value.length===2?(A(),re(E(Mwe),{key:0,zoom:13,maxZoom:19,center:u.value,bounds:o.value,zoomAnimation:!1,ref_key:"workoutMap",ref:s,onReady:g[0]||(g[0]=w=>T(o.value)),"use-global-leaflet":!1},{default:pe(()=>[U(E(Pwe)),U(E(cE),{position:"topleft",class:"map-control",tabindex:"0",role:"button","aria-label":v.$t("workouts.RESET_ZOOM"),onClick:I},{default:pe(()=>[Xwe]),_:1},8,["aria-label"]),U(E(cE),{position:"topleft",class:"map-control",tabindex:"0",role:"button","aria-label":v.$t(`workouts.${d.value?"EXIT":"VIEW"}_FULLSCREEN`),onClick:b},{default:pe(()=>[p("i",{class:Ae(`fa fa-${d.value?"compress":"arrows-alt"}`),"aria-hidden":"true"},null,2)]),_:1},8,["aria-label"]),U(E(jwe),{url:`${E(Fo)()}workouts/map_tile/{s}/{z}/{x}/{y}.png`,attribution:i.value.map_attribution,bounds:o.value},null,8,["url","attribution","bounds"]),U(E(Lwe),{geojson:c.value.jsonData},null,8,["geojson"]),E(a).latitude?(A(),re(E(VA),{key:0,"lat-lng":[E(a).latitude,E(a).longitude]},null,8,["lat-lng"])):x("",!0),U(E(Uwe),{name:v.$t("workouts.START_AND_FINISH"),"layer-type":"overlay"},{default:pe(()=>[l.value.latitude?(A(),re(pE,{key:0,markerCoordinates:l.value,isStart:!0},null,8,["markerCoordinates"])):x("",!0),f.value.latitude?(A(),re(pE,{key:1,markerCoordinates:f.value,isStart:!1},null,8,["markerCoordinates"])):x("",!0)]),_:1},8,["name"])]),_:1},8,["center","bounds"])):x("",!0)],2)]),_:1},8,["modelValue"])):(A(),N("div",Zwe,h(v.$t("workouts.NO_MAP")),1))]))])}}});const Jwe=se(Qwe,[["__scopeId","data-v-d75d6469"]]),e6e={class:"workout-detail"},t6e=Q({__name:"index",props:{authUser:{},displaySegment:{type:Boolean},sports:{},workoutData:{},markerCoordinates:{default:()=>({})}},setup(e){const t=e,n=Kt(),r=Me(),{authUser:a,markerCoordinates:s,workoutData:o}=Te(t),i=$(()=>t.workoutData.workout),u=le(n.params.workoutId?+n.params.segmentId:null),c=$(()=>i.value.segments.length>0&&u.value?i.value.segments[+u.value-1]:null),l=le(!1),f=$(()=>t.sports?t.sports.find(v=>v.id===t.workoutData.workout.sport_id):{}),d=$(()=>_(i.value,c.value));function m(v,g,L){const w=g&&L&&L!==1?`/workouts/${v.id}/segment/${L-1}`:!g&&v.previous_workout?`/workouts/${v.previous_workout}`:null,P=g&&L&&Ln.params.segmentId,async v=>{v&&(u.value=+v,b())}),Be(()=>n.params.workoutId,async v=>{v&&(l.value=!1,b())}),(v,g)=>{const L=ue("Modal"),w=ue("Card");return A(),N("div",e6e,[l.value?(A(),re(L,{key:0,title:v.$t("common.CONFIRMATION"),message:v.$t("workouts.WORKOUT_DELETION_CONFIRMATION"),onConfirmAction:g[0]||(g[0]=P=>I(d.value.workoutId)),onCancelAction:R,onKeydown:Ot(R,["esc"])},null,8,["title","message","onKeydown"])):x("",!0),U(w,null,{title:pe(()=>[f.value?(A(),re(cPe,{key:0,sport:f.value,workoutObject:d.value,onDisplayModal:g[1]||(g[1]=P=>T(!0))},null,8,["sport","workoutObject"])):x("",!0)]),content:pe(()=>[U(Jwe,{workoutData:E(o),markerCoordinates:E(s)},null,8,["workoutData","markerCoordinates"]),U(lwe,{workoutObject:d.value,useImperialUnits:E(a).imperial_units,displayHARecord:E(a).display_ascent},null,8,["workoutObject","useImperialUnits","displayHARecord"])]),_:1})])}}});const n6e=se(t6e,[["__scopeId","data-v-f8b05eca"]]),r6e=e=>{const t=document.getElementById(e);if(t){let n=t.querySelector("ul");return n||(n=document.createElement("ul"),t.appendChild(n)),n}throw new Error("No legend container")},a6e={id:"htmlLegend",afterUpdate(e,t,n){var s,o,i,u,c,l;const r=r6e(n.containerID);for(;r.firstChild;)r.firstChild.remove();((i=(o=(s=e.options.plugins)==null?void 0:s.legend)==null?void 0:o.labels)!=null&&i.generateLabels?(l=(c=(u=e.options.plugins)==null?void 0:u.legend)==null?void 0:c.labels)==null?void 0:l.generateLabels(e):[]).forEach(f=>{var R,I,b;if(!((b=(I=(R=e.config.options)==null?void 0:R.scales)==null?void 0:I.yElevation)!=null&&b.display)&&f.datasetIndex===1)return;const d=document.createElement("li");d.onclick=()=>{f.datasetIndex!==void 0&&(e.setDatasetVisibility(f.datasetIndex,!e.isDatasetVisible(f.datasetIndex)),e.update())};const m=document.createElement("input");m&&(m.type="checkbox",m.id=f.text,m.checked=!f.hidden);const _=document.createTextNode(f.text),T=document.createElement("span");T&&(T.style.background=String(f.fillStyle),T.style.borderColor=String(f.strokeStyle)),d.appendChild(m),d.appendChild(_),d.appendChild(T),r.appendChild(d)})}},s6e=e=>(ct("data-v-1ff321b2"),e=e(),lt(),e),o6e={id:"workout-chart"},i6e={class:"chart-radio"},u6e=["checked"],c6e=["checked"],l6e=s6e(()=>p("div",{id:"chart-legend"},null,-1)),d6e={class:"line-chart"},f6e={class:"chart-info"},p6e={class:"no-data-cleaning"},m6e={key:0,class:"elevation-start"},_6e=["checked"],E6e=Q({__name:"index",props:{authUser:{},workoutData:{}},emits:["getCoordinates"],setup(e,{emit:t}){const n=e,r=t,{t:a}=Vt(),{authUser:s,workoutData:o}=Te(n),i=le(!0),u=le(s.value.start_elevation_at_zero),c=$(()=>WNe(o.value.chartData,a,s.value.imperial_units)),l=$(()=>c.value&&c.value.datasets.elevation.data.length>0),f=L("km"),d=L("m"),m=$(()=>({labels:i.value?c.value.distance_labels:c.value.duration_labels,datasets:JSON.parse(JSON.stringify([c.value.datasets.speed,c.value.datasets.elevation]))})),_=$(()=>c.value.coordinates),T=$(()=>({responsive:!0,maintainAspectRatio:!1,animation:!1,layout:{padding:{top:22}},scales:{x:{grid:{drawOnChartArea:!1},ticks:{count:10,callback:function(w){return i.value?Number(w).toFixed(2):b(w)}},type:"linear",bounds:"data",title:{display:!0,text:i.value?a("workouts.DISTANCE")+` (${f})`:a("workouts.DURATION")}},ySpeed:{grid:{drawOnChartArea:!1},position:"left",title:{display:!0,text:a("workouts.SPEED")+` (${f}/h)`}},yElevation:{beginAtZero:u.value,display:l.value,grid:{drawOnChartArea:!1},position:"right",title:{display:!0,text:a("workouts.ELEVATION")+` (${d})`}}},elements:{point:{pointStyle:"circle",pointRadius:0}},plugins:{datalabels:{display:!1},tooltip:{interaction:{intersect:!1,mode:"index"},callbacks:{label:function(w){const P=` ${w.dataset.label}: ${w.formattedValue}`;return w.dataset.yAxisID==="yElevation"?P+` ${d}`:P+` ${f}/h`},title:function(w){return w.length>0&&v(_.value[w[0].dataIndex]),w.length===0?"":i.value?`${a("workouts.DISTANCE")}: ${w[0].label} ${f}`:`${a("workouts.DURATION")}: ${b(w[0].label.replace(",",""))}`}}},legend:{display:!1},htmlLegend:{containerID:"chart-legend",displayElevation:l.value}}})),R=[a6e];function I(){i.value=!i.value}function b(w){return new Date(+w*1e3).toISOString().substr(11,8)}function v(w){r("getCoordinates",w)}function g(){v({latitude:null,longitude:null})}function L(w){return n.authUser.imperial_units?$n[w].defaultTarget:w}return(w,P)=>{const j=ue("Card");return A(),N("div",o6e,[U(j,null,{title:pe(()=>[K(h(w.$t("workouts.ANALYSIS")),1)]),content:pe(()=>[p("div",i6e,[p("label",null,[p("input",{type:"radio",name:"distance",checked:i.value,onClick:I},null,8,u6e),K(" "+h(w.$t("workouts.DISTANCE")),1)]),p("label",null,[p("input",{type:"radio",name:"duration",checked:!i.value,onClick:I},null,8,c6e),K(" "+h(w.$t("workouts.DURATION")),1)])]),l6e,p("div",d6e,[U(E($3e),{data:m.value,options:T.value,plugins:R,onMouseleave:g},null,8,["data","options"])]),p("div",f6e,[p("div",p6e,h(w.$t("workouts.NO_DATA_CLEANING")),1),l.value?(A(),N("div",m6e,[p("label",null,[p("input",{type:"checkbox",checked:u.value,onClick:P[0]||(P[0]=G=>u.value=!u.value)},null,8,_6e),K(" "+h(w.$t("workouts.START_ELEVATION_AT_ZERO")),1)])])):x("",!0)])]),_:1})])}}});const h6e=se(E6e,[["__scopeId","data-v-1ff321b2"]]),T6e={id:"workout-note"},g6e=["innerHTML"],A6e=Q({__name:"WorkoutNotes",props:{notes:{default:()=>""}},setup(e){const t=e,{notes:n}=Te(t);return(r,a)=>{const s=ue("Card");return A(),N("div",T6e,[U(s,null,{title:pe(()=>[K(h(r.$t("workouts.NOTES")),1)]),content:pe(()=>[p("span",{innerHTML:E(n)&&E(n)!==""?E(Po)(E(n)):r.$t("workouts.NO_NOTES")},null,8,g6e)]),_:1})])}}});const S6e=se(A6e,[["__scopeId","data-v-f3e81eff"]]),O6e={id:"workout-segments"},I6e=Q({__name:"WorkoutSegments",props:{segments:{},useImperialUnits:{type:Boolean}},setup(e){const t=e,{segments:n,useImperialUnits:r}=Te(t);return(a,s)=>{const o=ue("router-link"),i=ue("Distance"),u=ue("Card");return A(),N("div",O6e,[U(u,null,{title:pe(()=>[K(h(a.$t("workouts.SEGMENT",2)),1)]),content:pe(()=>[p("ul",null,[(A(!0),N(ve,null,ze(E(n),(c,l)=>(A(),N("li",{key:c.segment_id},[U(o,{to:{name:"WorkoutSegment",params:{workoutId:c.workout_id,segmentId:l+1}}},{default:pe(()=>[K(h(a.$t("workouts.SEGMENT",1))+" "+h(l+1),1)]),_:2},1032,["to"]),K(" ("+h(a.$t("workouts.DISTANCE"))+": ",1),U(i,{distance:c.distance,unitFrom:"km",useImperialUnits:E(r)},null,8,["distance","useImperialUnits"]),K(", "+h(a.$t("workouts.DURATION"))+": "+h(c.duration)+") ",1)]))),128))])]),_:1})])}}});const v6e=se(I6e,[["__scopeId","data-v-15725c61"]]),b6e=e=>(ct("data-v-eac6aa4b"),e=e(),lt(),e),R6e={id:"workout",class:"view"},N6e={class:"container"},y6e={key:0,class:"workout-container"},C6e={key:0},D6e=b6e(()=>p("div",{id:"bottom"},null,-1)),P6e={key:1},w6e=Q({__name:"Workout",props:{displaySegment:{type:Boolean}},setup(e){const t=e,n=Kt(),r=Me(),{displaySegment:a}=Te(t),s=$(()=>r.getters[ge.GETTERS.WORKOUT_DATA]),o=$(()=>r.getters[Y.GETTERS.AUTH_USER_PROFILE]),i=$(()=>r.getters[Mt.GETTERS.SPORTS]),u=le({latitude:null,longitude:null});bt(()=>{const l={workoutId:n.params.workoutId};t.displaySegment&&(l.segmentId=n.params.segmentId),r.dispatch(ge.ACTIONS.GET_WORKOUT_DATA,l)}),Rt(()=>{r.commit(ge.MUTATIONS.EMPTY_WORKOUT)});function c(l){u.value={latitude:l.latitude,longitude:l.longitude}}return Be(()=>n.params.workoutId,async l=>{l&&r.dispatch(ge.ACTIONS.GET_WORKOUT_DATA,{workoutId:l})}),Be(()=>n.params.segmentId,async l=>{if(n.params.workoutId){const f={workoutId:n.params.workoutId};l&&(f.segmentId=l),r.dispatch(ge.ACTIONS.GET_WORKOUT_DATA,f)}}),(l,f)=>(A(),N("div",R6e,[p("div",N6e,[i.value.length>0?(A(),N("div",y6e,[s.value.workout.id?(A(),N("div",C6e,[U(n6e,{workoutData:s.value,sports:i.value,authUser:o.value,markerCoordinates:u.value,displaySegment:E(a)},null,8,["workoutData","sports","authUser","markerCoordinates","displaySegment"]),s.value.workout.with_gpx&&s.value.chartData.length>0?(A(),re(h6e,{key:0,workoutData:s.value,authUser:o.value,displaySegment:E(a),onGetCoordinates:c},null,8,["workoutData","authUser","displaySegment"])):x("",!0),!E(a)&&s.value.workout.segments.length>1?(A(),re(v6e,{key:1,segments:s.value.workout.segments,useImperialUnits:o.value.imperial_units},null,8,["segments","useImperialUnits"])):x("",!0),E(a)?x("",!0):(A(),re(S6e,{key:2,notes:s.value.workout.notes},null,8,["notes"])),D6e])):(A(),N("div",P6e,[s.value.loading?x("",!0):(A(),re(i0,{key:0,target:"WORKOUT"}))]))])):x("",!0)])]))}});const mE=se(w6e,[["__scopeId","data-v-eac6aa4b"]]),L6e=e=>(ct("data-v-29caaf8f"),e=e(),lt(),e),$6e={class:"workouts-filters"},k6e={class:"box"},U6e=["onSubmit"],M6e={class:"form-all-items"},x6e={class:"form-items-group"},F6e={class:"form-item"},W6e=["value"],G6e={class:"form-item"},z6e=["value"],B6e={class:"form-items-group"},H6e={class:"form-item"},j6e=["value","onKeyup"],V6e=L6e(()=>p("option",{value:""},null,-1)),K6e=["value"],Y6e={class:"form-item form-item-title"},q6e={class:"form-inputs-group"},X6e=["value","onKeyup"],Z6e={class:"form-items-group"},Q6e={class:"form-item"},J6e={class:"form-inputs-group"},eLe=["value","onKeyup"],tLe=["value","onKeyup"],nLe={class:"form-items-group"},rLe={class:"form-item"},aLe={class:"form-inputs-group"},sLe=["value","onKeyup"],oLe=["value","onKeyup"],iLe={class:"form-items-group"},uLe={class:"form-item"},cLe={class:"form-inputs-group"},lLe=["value","onKeyup"],dLe=["value","onKeyup"],fLe={class:"form-items-group"},pLe={class:"form-item"},mLe={class:"form-inputs-group"},_Le=["value","onKeyup"],ELe=["value","onKeyup"],hLe={class:"form-button"},TLe=Q({__name:"WorkoutsFilters",props:{authUser:{},sports:{}},emits:["filter"],setup(e,{emit:t}){const n=e,r=t,{t:a}=Vt(),s=Kt(),o=Kr(),{authUser:i}=Te(n),u=i.value.imperial_units?$n.km.defaultTarget:"km",c=$(()=>qr(n.sports,a));let l=Object.assign({},s.query);St(()=>{const _=document.getElementById("from");_&&_.focus()});function f(_){const T=_.target.name,R=_.target.value;R===""?delete l[T]:l[T]=R}function d(){r("filter"),"page"in l&&(l.page="1"),o.push({path:"/workouts",query:l})}function m(){r("filter"),o.push({path:"/workouts",query:{}})}return Be(()=>s.query,_=>{l=Object.assign({},_)}),(_,T)=>(A(),N("div",$6e,[p("div",k6e,[p("form",{onSubmit:Ze(d,["prevent"]),class:"form"},[p("div",M6e,[p("div",x6e,[p("div",F6e,[p("label",null,h(_.$t("workouts.FROM"))+": ",1),p("input",{id:"from",name:"from",type:"date",value:_.$route.query.from,onChange:f},null,40,W6e)]),p("div",G6e,[p("label",null,h(_.$t("workouts.TO"))+": ",1),p("input",{name:"to",type:"date",value:_.$route.query.to,onChange:f},null,40,z6e)])]),p("div",B6e,[p("div",H6e,[p("label",null,h(_.$t("workouts.SPORT",1))+":",1),p("select",{name:"sport_id",value:_.$route.query.sport_id,onChange:f,onKeyup:Ot(d,["enter"])},[V6e,(A(!0),N(ve,null,ze(c.value.filter(R=>E(i).sports_list.includes(R.id)),R=>(A(),N("option",{value:R.id,key:R.id},h(R.translatedLabel),9,K6e))),128))],40,j6e)]),p("div",Y6e,[p("label",null,h(_.$t("workouts.TITLE",1))+":",1),p("div",q6e,[p("input",{class:"title",name:"title",value:_.$route.query.title,onChange:f,placeholder:"",type:"text",onKeyup:Ot(d,["enter"])},null,40,X6e)])])]),p("div",Z6e,[p("div",Q6e,[p("label",null,h(_.$t("workouts.DISTANCE"))+" ("+h(E(u))+"): ",1),p("div",J6e,[p("input",{name:"distance_from",type:"number",min:"0",step:"0.1",value:_.$route.query.distance_from,onChange:f,onKeyup:Ot(d,["enter"])},null,40,eLe),p("span",null,h(_.$t("workouts.TO")),1),p("input",{name:"distance_to",type:"number",min:"0",step:"0.1",value:_.$route.query.distance_to,onChange:f,onKeyup:Ot(d,["enter"])},null,40,tLe)])])]),p("div",nLe,[p("div",rLe,[p("label",null,h(_.$t("workouts.DURATION"))+": ",1),p("div",aLe,[p("input",{name:"duration_from",value:_.$route.query.duration_from,onChange:f,pattern:"^([0-9]*[0-9]):([0-5][0-9])$",placeholder:"hh:mm",type:"text",onKeyup:Ot(d,["enter"])},null,40,sLe),p("span",null,h(_.$t("workouts.TO")),1),p("input",{name:"duration_to",value:_.$route.query.duration_to,onChange:f,pattern:"^([0-9]*[0-9]):([0-5][0-9])$",placeholder:"hh:mm",type:"text",onKeyup:Ot(d,["enter"])},null,40,oLe)])])]),p("div",iLe,[p("div",uLe,[p("label",null,h(_.$t("workouts.AVE_SPEED"))+" ("+h(E(u))+"/h): ",1),p("div",cLe,[p("input",{min:"0",name:"ave_speed_from",value:_.$route.query.ave_speed_from,onChange:f,step:"0.1",type:"number",onKeyup:Ot(d,["enter"])},null,40,lLe),p("span",null,h(_.$t("workouts.TO")),1),p("input",{min:"0",name:"ave_speed_to",value:_.$route.query.ave_speed_to,onChange:f,step:"0.1",type:"number",onKeyup:Ot(d,["enter"])},null,40,dLe)])])]),p("div",fLe,[p("div",pLe,[p("label",null,h(_.$t("workouts.MAX_SPEED"))+" ("+h(E(u))+"/h): ",1),p("div",mLe,[p("input",{min:"0",name:"max_speed_from",value:_.$route.query.max_speed_from,onChange:f,step:"0.1",type:"number",onKeyup:Ot(d,["enter"])},null,40,_Le),p("span",null,h(_.$t("workouts.TO")),1),p("input",{min:"0",name:"max_speed_to",value:_.$route.query.max_speed_to,onChange:f,step:"0.1",type:"number",onKeyup:Ot(d,["enter"])},null,40,ELe)])])])]),p("div",hLe,[p("button",{type:"submit",class:"confirm",onClick:d},h(_.$t("buttons.FILTER")),1),p("button",{class:"confirm",onClick:m},h(_.$t("buttons.CLEAR_FILTER")),1)])],40,U6e)])]))}});const gLe=se(TLe,[["__scopeId","data-v-29caaf8f"]]),YA=e=>(ct("data-v-d21df3d9"),e=e(),lt(),e),ALe={class:"workouts-list"},SLe={class:"total"},OLe={class:"total-label"},ILe={key:0},vLe={key:0,class:"workouts-table responsive-table"},bLe=YA(()=>p("th",{class:"sport-col"},null,-1)),RLe={class:"sport-col"},NLe={class:"cell-heading"},yLe=["onMouseover"],CLe={class:"cell-heading"},DLe={key:0,class:"fa fa-map-o","aria-hidden":"true"},PLe={class:"title"},wLe={class:"workout-date"},LLe={class:"cell-heading"},$Le={class:"text-right"},kLe={class:"cell-heading"},ULe={class:"text-right"},MLe={class:"cell-heading"},xLe={class:"text-right"},FLe={class:"cell-heading"},WLe={class:"text-right"},GLe={class:"cell-heading"},zLe={class:"text-right"},BLe={class:"cell-heading"},HLe={class:"text-right"},jLe={class:"cell-heading"},VLe=YA(()=>p("div",{id:"bottom"},null,-1)),KLe=Q({__name:"WorkoutsList",props:{user:{},sports:{}},setup(e){const t=e,n=Me(),r=Kt(),a=Kr(),{user:s,sports:o}=Te(t),i=["ave_speed","distance","duration","workout_date"],u=$(()=>n.getters[ge.GETTERS.USER_WORKOUTS]),c=$(()=>n.getters[ge.GETTERS.WORKOUTS_PAGINATION]),l=$(()=>n.getters[V.GETTERS.LANGUAGE]);let f=T(r.query);const d=le(null);bt(()=>{m(f)});function m(b){n.dispatch(ge.ACTIONS.GET_USER_WORKOUTS,s.value.imperial_units?R(b):b)}function _(b,v){const g=Object.assign({},r.query);g[b]=v,b==="per_page"&&(g.page="1"),f=T(g),a.push({path:"/workouts",query:f})}function T(b){const v=Nd(b,i,Lo.order_by,{defaultSort:Lo.order});return Object.keys(b).filter(g=>Uge.includes(g)).map(g=>{typeof b[g]=="string"&&(v[g]=b[g])}),v}function R(b){const v={...b};return Object.entries(v).map(g=>{g[0].match("speed|distance")&&g[1]&&(v[g[0]]=on(+g[1],"mi","km"))}),v}function I(b){d.value=b}return Be(()=>r.query,async b=>{f=T(b),m(f)}),(b,v)=>{const g=ue("SportImage"),L=ue("router-link"),w=ue("Distance");return A(),N("div",ALe,[p("div",{class:Ae(["box",{"empty-table":u.value.length===0}])},[p("div",SLe,[p("span",OLe,h(b.$t("common.TOTAL").toLowerCase())+": ",1),c.value.total?(A(),N("span",ILe,h(c.value.total)+" "+h(b.$t("workouts.WORKOUT",c.value.total)),1)):x("",!0)]),U(zg,{sort:E(r0),order_by:i,query:E(f),message:"workouts",onUpdateSelect:_},null,8,["sort","query"]),u.value.length>0?(A(),N("div",vLe,[U($u,{class:"top-pagination",pagination:c.value,path:"/workouts",query:E(f)},null,8,["pagination","query"]),p("table",null,[p("thead",{class:Ae({smaller:l.value==="de"})},[p("tr",null,[bLe,p("th",null,h(gt(b.$t("workouts.WORKOUT",1))),1),p("th",null,h(gt(b.$t("workouts.DATE"))),1),p("th",null,h(gt(b.$t("workouts.DISTANCE"))),1),p("th",null,h(gt(b.$t("workouts.DURATION"))),1),p("th",null,h(gt(b.$t("workouts.AVE_SPEED"))),1),p("th",null,h(gt(b.$t("workouts.MAX_SPEED"))),1),p("th",null,h(gt(b.$t("workouts.ASCENT"))),1),p("th",null,h(gt(b.$t("workouts.DESCENT"))),1)])],2),p("tbody",null,[(A(!0),N(ve,null,ze(u.value,P=>(A(),N("tr",{key:P.id},[p("td",RLe,[p("span",NLe,h(b.$t("workouts.SPORT",1)),1),E(o).length>0?(A(),re(g,{key:0,title:E(o).filter(j=>j.id===P.sport_id)[0].translatedLabel,"sport-label":E(t0)(P,E(o)),color:E(n0)(P,E(o))},null,8,["title","sport-label","color"])):x("",!0)]),p("td",{class:"workout-title",onMouseover:j=>I(P.id),onMouseleave:v[0]||(v[0]=j=>I(null))},[p("span",CLe,h(gt(b.$t("workouts.WORKOUT",1))),1),U(L,{class:"nav-item",to:{name:"Workout",params:{workoutId:P.id}}},{default:pe(()=>[P.with_gpx?(A(),N("i",DLe)):x("",!0),p("span",PLe,h(P.title),1)]),_:2},1032,["to"]),P.with_gpx&&d.value===P.id?(A(),re(EA,{key:0,workout:P,"display-hover":!0},null,8,["workout"])):x("",!0)],40,yLe),p("td",wLe,[p("span",LLe,h(b.$t("workouts.DATE")),1),p("time",null,h(E(xn)(P.workout_date,E(s).timezone,E(s).date_format)),1)]),p("td",$Le,[p("span",kLe,h(b.$t("workouts.DISTANCE")),1),P.distance!==null?(A(),re(w,{key:0,distance:P.distance,unitFrom:"km",useImperialUnits:E(s).imperial_units},null,8,["distance","useImperialUnits"])):x("",!0)]),p("td",ULe,[p("span",MLe,h(b.$t("workouts.DURATION")),1),K(" "+h(P.moving),1)]),p("td",xLe,[p("span",FLe,h(b.$t("workouts.AVE_SPEED")),1),P.ave_speed!==null?(A(),re(w,{key:0,distance:P.ave_speed,unitFrom:"km",speed:!0,useImperialUnits:E(s).imperial_units},null,8,["distance","useImperialUnits"])):x("",!0)]),p("td",WLe,[p("span",GLe,h(b.$t("workouts.MAX_SPEED")),1),P.max_speed!==null?(A(),re(w,{key:0,distance:P.max_speed,unitFrom:"km",speed:!0,useImperialUnits:E(s).imperial_units},null,8,["distance","useImperialUnits"])):x("",!0)]),p("td",zLe,[p("span",BLe,h(b.$t("workouts.ASCENT")),1),P.ascent!==null?(A(),re(w,{key:0,distance:P.ascent,unitFrom:"m",useImperialUnits:E(s).imperial_units},null,8,["distance","useImperialUnits"])):x("",!0)]),p("td",HLe,[p("span",jLe,h(b.$t("workouts.DESCENT")),1),P.descent!==null?(A(),re(w,{key:0,distance:P.descent,unitFrom:"m",useImperialUnits:E(s).imperial_units},null,8,["distance","useImperialUnits"])):x("",!0)])]))),128))])]),U($u,{pagination:c.value,path:"/workouts",query:E(f)},null,8,["pagination","query"])])):x("",!0)],2),u.value.length===0?(A(),re(c0,{key:0})):x("",!0),VLe])}}});const YLe=se(KLe,[["__scopeId","data-v-d21df3d9"]]),qLe={key:0,id:"workouts",class:"view"},XLe={class:"container workouts-container"},ZLe={class:"display-filters"},QLe={class:"list-container"},JLe=Q({__name:"WorkoutsView",setup(e){const{t}=Vt(),n=Me(),r=$(()=>n.getters[Y.GETTERS.AUTH_USER_PROFILE]),a=$(()=>n.getters[Mt.GETTERS.SPORTS]),s=$(()=>qr(a.value,t)),o=le(!0);function i(){o.value=!o.value}return(u,c)=>r.value.username?(A(),N("div",qLe,[p("div",XLe,[p("div",{class:Ae(["filters-container",{hidden:o.value}])},[U(gLe,{sports:s.value,authUser:r.value,onFilter:i},null,8,["sports","authUser"])],2),p("div",ZLe,[p("div",{onClick:i},[p("i",{class:Ae(`fa fa-caret-${o.value?"down":"up"}`),"aria-hidden":"true"},null,2),p("span",null,h(u.$t(`workouts.${o.value?"DISPLAY":"HIDE"}_FILTERS`)),1)])]),p("div",QLe,[U(YLe,{user:r.value,sports:s.value},null,8,["user","sports"])])])])):x("",!0)}});const e$e=se(JLe,[["__scopeId","data-v-3fa59b88"]]),{t:_E}=Aa.global,EE=e=>{const t=/(\/profile)(\/edit)*(\/*)/,n=e.replace(t,"").toUpperCase();return n===""?"PROFILE":n.toUpperCase()},t$e=[{path:"/",name:"Dashboard",component:Qye,meta:{title:"dashboard.DASHBOARD"}},{path:"/login",name:"Login",component:aE,props:{action:"login"},meta:{title:"user.LOGIN",withoutAuth:!0}},{path:"/register",name:"Register",component:aE,props:{action:"register"},meta:{title:"user.REGISTER",withoutAuth:!0}},{path:"/account-confirmation",name:"AccountConfirmation",component:lDe,meta:{title:"user.ACCOUNT_CONFIRMATION",withoutAuth:!0}},{path:"/account-confirmation/resend",name:"AccountConfirmationResend",component:rE,props:{action:"account-confirmation-resend"},meta:{title:"buttons.ACCOUNT-CONFIRMATION-RESEND",withoutAuth:!0}},{path:"/account-confirmation/email-sent",name:"AccountConfirmationEmailSend",component:rE,props:{action:"email-sent"},meta:{title:"buttons.ACCOUNT-CONFIRMATION-RESEND",withoutAuth:!0}},{path:"/password-reset/sent",name:"PasswordEmailSent",component:()=>Ni,props:{action:"request-sent"},meta:{title:"user.PASSWORD_RESET",withoutAuth:!0}},{path:"/password-reset/request",name:"PasswordResetRequest",component:Ni,props:{action:"reset-request"},meta:{title:"user.PASSWORD_RESET",withoutAuth:!0}},{path:"/password-reset/password-updated",name:"PasswordUpdated",component:Ni,props:{action:"password-updated"},meta:{title:"user.PASSWORD_RESET",withoutAuth:!0}},{path:"/password-reset",name:"PasswordReset",component:Ni,props:{action:"reset"},meta:{title:"user.PASSWORD_RESET",withoutAuth:!0}},{path:"/email-update",name:"EmailUpdate",component:mDe,meta:{title:"user.EMAIL_UPDATE",withoutChecks:!0}},{path:"/profile",name:"Profile",component:GDe,children:[{path:"",name:"UserProfile",component:dSe,props:e=>({tab:EE(e.path)}),children:[{path:"",name:"UserInfos",component:Qg,meta:{title:"user.PROFILE.TABS.PROFILE"}},{path:"preferences",name:"UserPreferences",component:PSe,meta:{title:"user.PROFILE.TABS.PREFERENCES"}},{path:"sports",name:"UserSportPreferences",component:Y_,props:{isEdition:!1},meta:{title:"user.PROFILE.TABS.SPORTS"}},{path:"apps",name:"UserApps",component:Mbe,children:[{path:"",name:"UserAppsList",component:rRe,meta:{title:"user.PROFILE.TABS.APPS"}},{path:":id",name:"UserApp",component:K_,meta:{title:"user.PROFILE.TABS.APPS"}},{path:":id/created",name:"CreatedUserApp",component:K_,props:{afterCreation:!0},meta:{title:"user.PROFILE.TABS.APPS"}},{path:"new",name:"AddUserApp",component:vbe,meta:{title:"user.PROFILE.TABS.APPS"}},{path:"authorize",name:"AuthorizeUserApp",component:kbe,meta:{title:"user.PROFILE.TABS.APPS"}}]}]},{path:"edit",name:"UserProfileEdition",component:LSe,props:e=>({tab:EE(e.path)}),children:[{path:"",name:"UserInfosEdition",component:kve,meta:{title:"user.PROFILE.EDIT"}},{path:"account",name:"UserAccountEdition",component:Tve,meta:{title:"user.PROFILE.ACCOUNT_EDITION"}},{path:"picture",name:"UserPictureEdition",component:Vve,meta:{title:"user.PROFILE.PICTURE_EDITION"}},{path:"preferences",name:"UserPreferencesEdition",component:W2e,meta:{title:"user.PROFILE.EDIT_PREFERENCES"}},{path:"sports",name:"UserSportPreferencesEdition",component:Y_,props:{isEdition:!0},meta:{title:"user.PROFILE.EDIT_SPORTS_PREFERENCES"}},{path:"privacy-policy",name:"UserPrivacyPolicy",component:ebe,meta:{title:"user.PROFILE.PRIVACY-POLICY_EDITION"}}]}]},{path:"/statistics",name:"Statistics",component:yCe,meta:{title:"statistics.STATISTICS"}},{path:"/users/:username",name:"User",component:sE,meta:{title:"administration.USER"}},{path:"/workouts",name:"Workouts",component:e$e,meta:{title:"workouts.WORKOUT",count:0}},{path:"/workouts/:workoutId",name:"Workout",component:mE,props:{displaySegment:!1},meta:{title:"workouts.WORKOUT"}},{path:"/workouts/:workoutId/edit",name:"EditWorkout",component:M4e,meta:{title:"workouts.EDIT_WORKOUT"}},{path:"/workouts/:workoutId/segment/:segmentId",name:"WorkoutSegment",component:mE,props:{displaySegment:!0},meta:{title:"workouts.SEGMENT",count:0}},{path:"/workouts/add",name:"AddWorkout",component:$4e,meta:{title:"workouts.ADD_WORKOUT"}},{path:"/admin",name:"Administration",component:_Ne,children:[{path:"",name:"AdministrationMenu",component:rge,meta:{title:"admin.ADMINISTRATION"}},{path:"application",name:"ApplicationAdministration",component:v_,meta:{title:"admin.APP_CONFIG.TITLE"}},{path:"application/edit",name:"ApplicationAdministrationEdition",component:v_,props:{edition:!0},meta:{title:"admin.APPLICATION"}},{path:"sports",name:"SportsAdministration",component:Rge,meta:{title:"admin.SPORTS.TITLE"}},{path:"users/:username",name:"UserFromAdmin",component:sE,props:{fromAdmin:!0},meta:{title:"admin.USER",count:1}},{path:"users",name:"UsersAdministration",component:HAe,meta:{title:"admin.USERS.TITLE"}}]},{path:"/about",name:"About",component:sNe,meta:{title:"common.ABOUT",withoutChecks:!0}},{path:"/privacy-policy",name:"PrivacyPolicy",component:aCe,meta:{title:"privacy_policy.TITLE",withoutChecks:!0}},{path:"/:pathMatch(.*)*",name:"not-found",component:eCe,meta:{title:"error.NOT_FOUND.PAGE"}}],qA=x0e({history:e0e("/"),routes:t$e});qA.beforeEach((e,t,n)=>{if("title"in e.meta){const r=typeof e.meta.title=="string"?e.meta.title:"",a=r?typeof e.meta.count=="number"?_E(r,+e.meta.count):_E(r):"";window.document.title=`FitTrackee${r?` - ${gt(a)}`:""}`}io.dispatch(Y.ACTIONS.CHECK_AUTH_USER).then(()=>{if(e.meta.withoutChecks)return n();if(io.getters[Y.GETTERS.IS_AUTHENTICATED]&&e.meta.withoutAuth)return n("/");if(!io.getters[Y.GETTERS.IS_AUTHENTICATED]&&!e.meta.withoutAuth){const r=e.path==="/"?{path:"/login"}:{path:"/login",query:{from:e.fullPath}};n(r)}else n()}).catch(r=>{console.error(r),n()})});const Tt=qA;kd.register(ZA,QA,JA,eS,tS,nS,rS,hE,aS,TE,sS,oS);const XA=CI(Tfe).provide("sportColors",e0).use(Aa).use(io).use(Tt).use(m2,{name:"VFullscreen"}).directive("click-outside",i_e);o_e.forEach(e=>{XA.component(e.name,e.target)});XA.mount("#app");
+ C512.001,172.24,506.387,166.626,499.487,166.626z">`,7),CDe=[yDe];function DDe(e,t,n,r,a,s){return A(),N("svg",NDe,CDe)}const PDe=se(RDe,[["render",DDe]]),wDe={id:"password-action-done",class:"center-card with-margin"},LDe={class:"password-message"},$De={key:0},kDe=Q({__name:"PasswordActionDone",props:{action:{}},setup(e){const t=e,{action:n}=Te(t);return(r,a)=>{const s=ue("router-link"),o=ue("i18n-t");return A(),N("div",wDe,[E(n)==="request-sent"?(A(),re(vA,{key:0})):(A(),re(PDe,{key:1})),p("div",LDe,[E(n)==="request-sent"?(A(),N("span",$De,h(r.$t("user.PASSWORD_SENT_EMAIL_TEXT")),1)):(A(),re(o,{key:1,keypath:"user.PASSWORD_UPDATED"},{default:pe(()=>[U(s,{to:"/login"},{default:pe(()=>[K(h(r.$t("common.HERE")),1)]),_:1})]),_:1}))])])}}});const UDe=se(kDe,[["__scopeId","data-v-ee1004fc"]]),MDe={id:"password-reset-request",class:"center-card with-margin"},xDe=Q({__name:"PasswordResetForm",props:{action:{},token:{default:""}},setup(e){const t=e,{action:n,token:r}=Te(t);return(a,s)=>{const o=ue("Card");return A(),N("div",MDe,[U(o,null,{title:pe(()=>[K(h(a.$t("user.RESET_PASSWORD")),1)]),content:pe(()=>[U(l0,{action:E(n),token:E(r)},null,8,["action","token"])]),_:1})])}}});const FDe=se(xDe,[["__scopeId","data-v-97f01ba1"]]),WDe={id:"password-reset",class:"view"},GDe={class:"container"},zDe=Q({__name:"PasswordResetView",props:{action:{}},setup(e){const t=e,n=Kt(),r=Kr(),{action:a}=Te(t),s=$(()=>n.query.token);return bt(()=>{t.action==="reset"&&!s.value&&r.push("/")}),(o,i)=>(A(),N("div",WDe,[p("div",GDe,[E(a).startsWith("reset")?(A(),re(FDe,{key:0,action:E(a),token:s.value},null,8,["action","token"])):(A(),re(UDe,{key:1,action:E(a)},null,8,["action"]))])]))}});const Ni=se(zDe,[["__scopeId","data-v-5cbe9029"]]),BDe=e=>(ut("data-v-af92ad3a"),e=e(),ct(),e),HDe={key:0,id:"profile",class:"view"},jDe=BDe(()=>p("div",{id:"bottom"},null,-1)),VDe=Q({__name:"ProfileView",setup(e){const t=Me(),n=$(()=>t.getters[Y.GETTERS.AUTH_USER_PROFILE]);return(r,a)=>{const s=ue("router-view");return n.value.username?(A(),N("div",HDe,[U(s,{user:n.value},null,8,["user"]),jDe])):x("",!0)}}});const KDe=se(VDe,[["__scopeId","data-v-af92ad3a"]]),YDe={key:0,id:"user",class:"view"},qDe={class:"box"},XDe=Q({__name:"UserView",props:{fromAdmin:{type:Boolean}},setup(e){const t=e,{fromAdmin:n}=Te(t),r=Kt(),a=Me(),s=$(()=>a.getters[we.GETTERS.USER]);return bt(()=>{r.params.username&&typeof r.params.username=="string"&&a.dispatch(we.ACTIONS.GET_USER,r.params.username)}),ko(()=>{a.dispatch(we.ACTIONS.EMPTY_USER)}),(o,i)=>s.value.username?(A(),N("div",YDe,[U(Xg,{user:s.value},null,8,["user"]),p("div",qDe,[U(Qg,{user:s.value,"from-admin":E(n)},null,8,["user","from-admin"])])])):x("",!0)}});const sE=se(XDe,[["__scopeId","data-v-1b7a0b4f"]]),ZDe={id:"workout-form"},QDe=["onSubmit"],JDe={class:"form-items"},e4e={key:0,class:"form-item-radio"},t4e=["checked","disabled"],n4e={for:"withGpx"},r4e=["checked","disabled"],a4e={for:"withoutGpx"},s4e={class:"form-item"},o4e=["disabled"],i4e=["value"],u4e={key:1,class:"form-item"},c4e={for:"gpxFile"},l4e=["disabled"],d4e={class:"files-help info-box"},f4e={key:2,class:"form-item"},p4e={for:"title"},m4e=["required","disabled"],_4e={key:3},E4e={class:"workout-date-duration"},h4e={class:"form-item"},T4e={class:"workout-date-time"},g4e=["disabled"],A4e=["disabled"],S4e={class:"form-item"},O4e=["disabled"],I4e=["disabled"],v4e=["disabled"],b4e={class:"workout-data"},R4e={class:"form-item"},N4e=["disabled"],y4e={class:"form-item"},C4e=["disabled"],D4e={class:"form-item"},P4e=["disabled"],w4e={class:"form-item"},L4e={key:1},$4e={key:2,class:"form-buttons"},k4e=["disabled"],U4e=["onClick"],M4e=Q({__name:"WorkoutEdition",props:{authUser:{},sports:{},isCreation:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},workout:{default:()=>({})}},setup(e){const t=e,{t:n}=Vt(),r=Me(),a=Kr(),{authUser:s,workout:o,isCreation:i,loading:u}=Te(t),c=$(()=>qr(t.sports,n,"is_active_for_user",o.value.id?[o.value.sport_id]:[])),l=$(()=>r.getters[V.GETTERS.APP_CONFIG]),f=l.value.max_single_file_size?cu(l.value.max_single_file_size):"",d=l.value.gpx_limit_import,m=l.value.max_zip_file_size?cu(l.value.max_zip_file_size):"",_=$(()=>r.getters[V.GETTERS.ERROR_MESSAGES]),g=zt({sport_id:"",title:"",notes:"",workoutDate:"",workoutTime:"",workoutDurationHour:"",workoutDurationMinutes:"",workoutDurationSeconds:"",workoutDistance:"",workoutAscent:"",workoutDescent:""}),R=le(o.value.id?o.value.with_gpx:i.value);let I=null;const b=le(!1),v=le([]);St(()=>{let D;t.workout.id?(P(t.workout),D=document.getElementById("sport")):D=document.getElementById("withGpx"),D&&D.focus()});function T(D){g.notes=D}function L(){R.value=!R.value,b.value=!1}function w(D){D.target.files&&(I=D.target.files[0])}function P(D){if(g.sport_id=`${D.sport_id}`,g.title=D.title,g.notes=D.notes,!D.with_gpx){const W=Yg(Ac(D.workout_date,t.authUser.timezone),"yyyy-MM-dd"),B=D.duration.split(":");g.workoutDistance=`${s.value.imperial_units?on(D.distance,"km","mi",3):parseFloat(D.distance.toFixed(3))}`,g.workoutDate=W.workout_date,g.workoutTime=W.workout_time,g.workoutDurationHour=B[0],g.workoutDurationMinutes=B[1],g.workoutDurationSeconds=B[2],g.workoutAscent=D.ascent===null?"":`${s.value.imperial_units?on(D.ascent,"m","ft",2):parseFloat(D.ascent.toFixed(2))}`,g.workoutDescent=D.descent===null?"":`${s.value.imperial_units?on(D.descent,"m","ft",2):parseFloat(D.descent.toFixed(2))}`}}function j(){return v.value.includes("workouts.INVALID_DISTANCE")}function G(){return v.value.includes("workouts.INVALID_DURATION")}function z(){return v.value.includes("workouts.INVALID_ASCENT_OR_DESCENT")}function k(D){v.value=[],D.title=g.title,D.duration=+g.workoutDurationHour*3600+ +g.workoutDurationMinutes*60+ +g.workoutDurationSeconds,D.duration<=0&&v.value.push("workouts.INVALID_DURATION"),D.distance=s.value.imperial_units?on(+g.workoutDistance,"mi","km",3):+g.workoutDistance,D.distance<=0&&v.value.push("workouts.INVALID_DISTANCE"),D.workout_date=`${g.workoutDate} ${g.workoutTime}`,D.ascent=g.workoutAscent===""?null:s.value.imperial_units?on(+g.workoutAscent,"ft","m",3):+g.workoutAscent,D.descent=g.workoutDescent===""?null:s.value.imperial_units?on(+g.workoutDescent,"ft","m",3):+g.workoutDescent,(D.ascent!==null&&D.descent===null||D.ascent===null&&D.descent!==null)&&v.value.push("workouts.INVALID_ASCENT_OR_DESCENT")}function Z(){const D={sport_id:+g.sport_id,notes:g.notes};if(t.workout.id)t.workout.with_gpx?D.title=g.title:k(D),v.value.length>0?r.commit(V.MUTATIONS.SET_ERROR_MESSAGES,v.value):r.dispatch(ge.ACTIONS.EDIT_WORKOUT,{workoutId:t.workout.id,data:D});else if(R.value){if(!I){const W="workouts.NO_FILE_PROVIDED";r.commit(V.MUTATIONS.SET_ERROR_MESSAGES,W);return}D.file=I,r.dispatch(ge.ACTIONS.ADD_WORKOUT,D)}else k(D),v.value.length>0?r.commit(V.MUTATIONS.SET_ERROR_MESSAGES,v.value):r.dispatch(ge.ACTIONS.ADD_WORKOUT_WITHOUT_GPX,D)}function ee(){t.workout.id?a.push({name:"Workout",params:{workoutId:t.workout.id}}):a.go(-1)}function te(){b.value=!0}return Rt(()=>r.commit(V.MUTATIONS.EMPTY_ERROR_MESSAGES)),Be(()=>t.workout,async(D,W)=>{D!==W&&D&&D.id&&P(D)}),(D,W)=>{const B=ue("CustomTextArea"),ae=ue("ErrorMessage"),Re=ue("Loader"),$e=ue("Card");return A(),N("div",{id:"workout-edition",class:Ae(["center-card with-margin",{"center-form":E(o)&&E(o).with_gpx}])},[U($e,null,{title:pe(()=>[K(h(D.$t(`workouts.${E(i)?"ADD":"EDIT"}_WORKOUT`)),1)]),content:pe(()=>[p("div",ZDe,[p("form",{class:Ae({errors:b.value}),onSubmit:Ze(Z,["prevent"])},[p("div",JDe,[E(i)?(A(),N("div",e4e,[p("div",null,[p("input",{id:"withGpx",type:"radio",checked:R.value,disabled:E(u),onClick:L},null,8,t4e),p("label",n4e,h(D.$t("workouts.WITH_GPX")),1)]),p("div",null,[p("input",{id:"withoutGpx",type:"radio",checked:!R.value,disabled:E(u),onClick:L},null,8,r4e),p("label",a4e,h(D.$t("workouts.WITHOUT_GPX")),1)])])):x("",!0),p("div",s4e,[p("label",null,h(D.$t("workouts.SPORT",1))+"*: ",1),Xe(p("select",{id:"sport",required:"",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[0]||(W[0]=he=>g.sport_id=he)},[(A(!0),N(ve,null,ze(c.value,he=>(A(),N("option",{value:he.id,key:he.id},h(he.translatedLabel),9,i4e))),128))],40,o4e),[[eu,g.sport_id]])]),E(i)&&R.value?(A(),N("div",u4e,[p("label",c4e,h(D.$t("workouts.GPX_FILE"))+" "+h(D.$t("workouts.ZIP_ARCHIVE_DESCRIPTION"))+"*: ",1),p("input",{id:"gpxFile",name:"gpxFile",type:"file",accept:".gpx, .zip",disabled:E(u),required:"",onInvalid:te,onInput:w},null,40,l4e),p("div",d4e,[p("div",null,[p("strong",null,h(D.$t("workouts.GPX_FILE"))+":",1),p("ul",null,[p("li",null,h(D.$t("workouts.MAX_SIZE"))+": "+h(E(f)),1)])]),p("div",null,[p("strong",null,h(D.$t("workouts.ZIP_ARCHIVE"))+":",1),p("ul",null,[p("li",null,h(D.$t("workouts.NO_FOLDER")),1),p("li",null,h(D.$t("workouts.MAX_FILES"))+": "+h(E(d)),1),p("li",null,h(D.$t("workouts.MAX_SIZE"))+": "+h(E(m)),1)])])])])):(A(),N("div",f4e,[p("label",p4e,h(D.$t("workouts.TITLE"))+": ",1),Xe(p("input",{id:"title",name:"title",type:"text",required:!E(i),onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[1]||(W[1]=he=>g.title=he)},null,40,m4e),[[nt,g.title]])])),R.value?x("",!0):(A(),N("div",_4e,[p("div",E4e,[p("div",h4e,[p("label",null,h(D.$t("workouts.WORKOUT_DATE"))+"*:",1),p("div",T4e,[Xe(p("input",{id:"workout-date",name:"workout-date",type:"date",required:"",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[2]||(W[2]=he=>g.workoutDate=he)},null,40,g4e),[[nt,g.workoutDate]]),Xe(p("input",{id:"workout-time",name:"workout-time",class:"workout-time",type:"time",required:"",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[3]||(W[3]=he=>g.workoutTime=he)},null,40,A4e),[[nt,g.workoutTime]])])]),p("div",S4e,[p("label",null,h(D.$t("workouts.DURATION"))+"*:",1),p("div",null,[Xe(p("input",{id:"workout-duration-hour",name:"workout-duration-hour",class:Ae(["workout-duration",{errored:G()}]),type:"text",placeholder:"HH",minlength:"1",maxlength:"2",pattern:"^([0-1]?[0-9]|2[0-3])$",required:"",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[4]||(W[4]=he=>g.workoutDurationHour=he)},null,42,O4e),[[nt,g.workoutDurationHour]]),K(" : "),Xe(p("input",{id:"workout-duration-minutes",name:"workout-duration-minutes",class:Ae(["workout-duration",{errored:G()}]),type:"text",pattern:"^([0-5][0-9])$",minlength:"2",maxlength:"2",placeholder:"MM",required:"",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[5]||(W[5]=he=>g.workoutDurationMinutes=he)},null,42,I4e),[[nt,g.workoutDurationMinutes]]),K(" : "),Xe(p("input",{id:"workout-duration-seconds",name:"workout-duration-seconds",class:Ae(["workout-duration",{errored:G()}]),type:"text",pattern:"^([0-5][0-9])$",minlength:"2",maxlength:"2",placeholder:"SS",required:"",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[6]||(W[6]=he=>g.workoutDurationSeconds=he)},null,42,v4e),[[nt,g.workoutDurationSeconds]])])])]),p("div",b4e,[p("div",R4e,[p("label",null,h(D.$t("workouts.DISTANCE"))+" ("+h(E(s).imperial_units?"mi":"km")+")*: ",1),Xe(p("input",{class:Ae({errored:j()}),name:"workout-distance",type:"number",min:"0",step:"0.001",required:"",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[7]||(W[7]=he=>g.workoutDistance=he)},null,42,N4e),[[nt,g.workoutDistance]])]),p("div",y4e,[p("label",null,h(D.$t("workouts.ASCENT"))+" ("+h(E(s).imperial_units?"ft":"m")+"): ",1),Xe(p("input",{class:Ae({errored:z()}),name:"workout-ascent",type:"number",min:"0",step:"0.01",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[8]||(W[8]=he=>g.workoutAscent=he)},null,42,C4e),[[nt,g.workoutAscent]])]),p("div",D4e,[p("label",null,h(D.$t("workouts.DESCENT"))+" ("+h(E(s).imperial_units?"ft":"m")+"): ",1),Xe(p("input",{class:Ae({errored:z()}),name:"workout-descent",type:"number",min:"0",step:"0.01",onInvalid:te,disabled:E(u),"onUpdate:modelValue":W[9]||(W[9]=he=>g.workoutDescent=he)},null,42,P4e),[[nt,g.workoutDescent]])])])])),p("div",w4e,[p("label",null,h(D.$t("workouts.NOTES"))+": ",1),U(B,{name:"notes",input:g.notes,disabled:E(u),onUpdateValue:T},null,8,["input","disabled"])])]),_.value?(A(),re(ae,{key:0,message:_.value},null,8,["message"])):x("",!0),E(u)?(A(),N("div",L4e,[U(Re)])):(A(),N("div",$4e,[p("button",{class:"confirm",type:"submit",disabled:E(u)},h(D.$t("buttons.SUBMIT")),9,k4e),p("button",{class:"cancel",onClick:Ze(ee,["prevent"])},h(D.$t("buttons.CANCEL")),9,U4e)]))],42,QDe)])]),_:1})],2)}}});const RA=se(M4e,[["__scopeId","data-v-4c5a9cd1"]]),x4e={id:"add-workout",class:"view"},F4e={class:"container"},W4e=Q({__name:"AddWorkout",setup(e){const t=Me(),n=$(()=>t.getters[Mt.GETTERS.SPORTS]),r=$(()=>t.getters[Y.GETTERS.AUTH_USER_PROFILE]),a=$(()=>t.getters[ge.GETTERS.WORKOUT_DATA]);return(s,o)=>(A(),N("div",x4e,[p("div",F4e,[U(RA,{authUser:r.value,sports:n.value,isCreation:!0,loading:a.value.loading},null,8,["authUser","sports","loading"])])]))}}),G4e={id:"edit-workout",class:"view"},z4e={class:"container"},B4e=Q({__name:"EditWorkout",setup(e){const t=Kt(),n=Me(),r=$(()=>n.getters[Y.GETTERS.AUTH_USER_PROFILE]),a=$(()=>n.getters[Mt.GETTERS.SPORTS]),s=$(()=>n.getters[ge.GETTERS.WORKOUT_DATA]);return bt(()=>{n.dispatch(ge.ACTIONS.GET_WORKOUT_DATA,{workoutId:t.params.workoutId})}),Be(()=>t.params.workoutId,async o=>{o||n.commit(ge.MUTATIONS.EMPTY_WORKOUT)}),(o,i)=>(A(),N("div",G4e,[p("div",z4e,[s.value.workout.id?(A(),re(RA,{key:0,authUser:r.value,sports:a.value,workout:s.value.workout,loading:s.value.loading},null,8,["authUser","sports","workout","loading"])):x("",!0)])]))}}),Cs=e=>(ut("data-v-e1628a52"),e=e(),ct(),e),H4e={id:"workout-card-title"},j4e=["disabled","title"],V4e=Cs(()=>p("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1)),K4e=[V4e],Y4e={class:"workout-card-title"},q4e={class:"workout-title-date"},X4e={key:0,class:"workout-title"},Z4e=["aria-label"],Q4e=Cs(()=>p("i",{class:"fa fa-edit","aria-hidden":"true"},null,-1)),J4e=[Q4e],ePe=["aria-label"],tPe=Cs(()=>p("i",{class:"fa fa-download","aria-hidden":"true"},null,-1)),nPe=[tPe],rPe=["onClick","aria-label"],aPe=Cs(()=>p("i",{class:"fa fa-trash","aria-hidden":"true"},null,-1)),sPe=[aPe],oPe={key:1,class:"workout-title"},iPe={class:"workout-segment"},uPe=Cs(()=>p("i",{class:"fa fa-map-marker","aria-hidden":"true"},null,-1)),cPe={class:"workout-date"},lPe={class:"workout-link"},dPe=["disabled","title"],fPe=Cs(()=>p("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1)),pPe=[fPe],mPe=Q({__name:"WorkoutCardTitle",props:{sport:{},workoutObject:{}},emits:["displayModal"],setup(e,{emit:t}){const n=e,r=t,{sport:a,workoutObject:s}=Te(n);async function o(u){await je.get(`workouts/${u}/gpx/download`,{responseType:"blob"}).then(c=>{const l=window.URL.createObjectURL(new Blob([c.data],{type:"application/gpx+xml"})),f=document.createElement("a");f.href=l,f.setAttribute("download",`${u}.gpx`),document.body.appendChild(f),f.click()})}function i(){r("displayModal",!0)}return(u,c)=>{const l=ue("SportImage"),f=ue("router-link");return A(),N("div",H4e,[p("button",{class:Ae(["workout-previous workout-arrow transparent",{inactive:!E(s).previousUrl}]),disabled:!E(s).previousUrl,title:E(s).previousUrl?u.$t(`workouts.PREVIOUS_${E(s).type}`):u.$t(`workouts.NO_PREVIOUS_${E(s).type}`),onClick:c[0]||(c[0]=d=>E(s).previousUrl?u.$router.push(E(s).previousUrl):null)},K4e,10,j4e),p("div",Y4e,[U(l,{"sport-label":E(a).label,color:E(a).color},null,8,["sport-label","color"]),p("div",q4e,[E(s).type==="WORKOUT"?(A(),N("div",X4e,[p("span",null,h(E(s).title),1),p("button",{class:"transparent icon-button",onClick:c[1]||(c[1]=d=>u.$router.push({name:"EditWorkout",params:{workoutId:E(s).workoutId}})),"aria-label":u.$t("workouts.EDIT_WORKOUT")},J4e,8,Z4e),E(s).with_gpx?(A(),N("button",{key:0,class:"transparent icon-button",onClick:c[2]||(c[2]=Ze(d=>o(E(s).workoutId),["prevent"])),"aria-label":u.$t("workouts.DOWNLOAD_WORKOUT")},nPe,8,ePe)):x("",!0),p("button",{id:"delete-workout-button",class:"transparent icon-button",onClick:Ze(i,["prevent"]),"aria-label":u.$t("workouts.DELETE_WORKOUT")},sPe,8,rPe)])):E(s).segmentId!==null?(A(),N("div",oPe,[K(h(E(s).title)+" ",1),p("span",iPe,[K(" — "),uPe,K(" "+h(u.$t("workouts.SEGMENT"))+" "+h(E(s).segmentId+1),1)])])):x("",!0),p("div",cPe,[p("time",null,h(E(s).workoutDate)+" - "+h(E(s).workoutTime),1),p("span",lPe,[E(s).type==="SEGMENT"?(A(),re(f,{key:0,to:{name:"Workout",params:{workoutId:E(s).workoutId}}},{default:pe(()=>[K(" > "+h(u.$t("workouts.BACK_TO_WORKOUT")),1)]),_:1},8,["to"])):x("",!0)])])])]),p("button",{class:Ae(["workout-next workout-arrow transparent",{inactive:!E(s).nextUrl}]),disabled:!E(s).nextUrl,title:E(s).nextUrl?u.$t(`workouts.NEXT_${E(s).type}`):u.$t(`workouts.NO_NEXT_${E(s).type}`),onClick:c[3]||(c[3]=d=>E(s).nextUrl?u.$router.push(E(s).nextUrl):null)},pPe,10,dPe)])}}});const _Pe=se(mPe,[["__scopeId","data-v-e1628a52"]]),EPe=e=>(ut("data-v-1b247cbe"),e=e(),ct(),e),hPe={key:0,class:"workout-record"},TPe=EPe(()=>p("sup",null,[p("i",{class:"fa fa-trophy","aria-hidden":"true"})],-1)),gPe=[TPe],APe=Q({__name:"WorkoutRecord",props:{recordType:{},workoutObject:{}},setup(e){const t=e,{recordType:n,workoutObject:r}=Te(t);return(a,s)=>E(r).records&&E(r).records.find(o=>o.record_type===E(n))?(A(),N("span",hPe,gPe)):x("",!0)}});const Hs=se(APe,[["__scopeId","data-v-1b247cbe"]]),SPe="/img/weather/temperature.svg",OPe="/img/weather/pour-rain.svg",IPe="/img/weather/breeze.svg",vPe=["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSW","SW","WSW","W","WNW","NW","NNW"],bPe=e=>{const t=Math.floor(e/22.5+.5);return vPe[t%16]},RPe={class:"wind"},NPe={class:"wind-bearing"},yPe=["title"],CPe=Q({__name:"WeatherWind",props:{weather:{},useImperialUnits:{type:Boolean}},setup(e){const t=e,{useImperialUnits:n,weather:r}=Te(t),{t:a}=Vt();function s(o){return a(`workouts.WEATHER.WIND_DIRECTIONS.${bPe(o)}`)}return(o,i)=>(A(),N("div",RPe,[K(h(E($fe)(E(r).wind,E(n)))+" ",1),p("div",NPe,[E(r).windBearing?(A(),N("i",{key:0,class:"fa fa-long-arrow-down",style:Hr({transform:`rotate(${E(r).windBearing}deg)`}),"aria-hidden":"true",title:s(E(r).windBearing)},null,12,yPe)):x("",!0)])]))}});const oE=se(CPe,[["__scopeId","data-v-e1f7f9cc"]]),DPe=e=>(ut("data-v-0eb0ef9d"),e=e(),ct(),e),PPe={key:0,id:"workout-weather"},wPe={class:"weather-table"},LPe=DPe(()=>p("th",null,null,-1)),$Pe={class:"weather-th"},kPe=["src","alt","title"],UPe={class:"weather-th"},MPe=["src","alt","title"],xPe=["alt","title"],FPe=["alt","title"],WPe=["alt","title"],GPe=Q({__name:"WorkoutWeather",props:{workoutObject:{},useImperialUnits:{type:Boolean}},setup(e){const t=e,{useImperialUnits:n,workoutObject:r}=Te(t);return(a,s)=>E(r).weatherStart&&E(r).weatherEnd?(A(),N("div",PPe,[p("table",wPe,[p("thead",null,[p("tr",null,[LPe,p("th",null,[p("div",$Pe,[K(h(a.$t("workouts.START"))+" ",1),p("img",{class:"weather-img",src:`/img/weather/${E(r).weatherStart.icon}.svg`,alt:a.$t(`workouts.WEATHER.DARK_SKY.${E(r).weatherStart.icon}`),title:a.$t(`workouts.WEATHER.DARK_SKY.${E(r).weatherStart.icon}`)},null,8,kPe)])]),p("th",null,[p("div",UPe,[K(h(a.$t("workouts.END"))+" ",1),p("img",{class:"weather-img",src:`/img/weather/${E(r).weatherEnd.icon}.svg`,alt:a.$t(`workouts.WEATHER.DARK_SKY.${E(r).weatherEnd.icon}`),title:a.$t(`workouts.WEATHER.DARK_SKY.${E(r).weatherEnd.icon}`)},null,8,MPe)])])])]),p("tbody",null,[p("tr",null,[p("td",null,[p("img",{class:"weather-img weather-img-small",src:SPe,alt:a.$t("workouts.WEATHER.TEMPERATURE"),title:a.$t("workouts.WEATHER.TEMPERATURE")},null,8,xPe)]),p("td",null,h(E(Im)(E(r).weatherStart.temperature,E(n))),1),p("td",null,h(E(Im)(E(r).weatherEnd.temperature,E(n))),1)]),p("tr",null,[p("td",null,[p("img",{class:"weather-img weather-img-small",src:OPe,alt:a.$t("workouts.WEATHER.HUMIDITY"),title:a.$t("workouts.WEATHER.HUMIDITY")},null,8,FPe)]),p("td",null,h(Number(E(r).weatherStart.humidity*100).toFixed(1))+"% ",1),p("td",null,h(Number(E(r).weatherEnd.humidity*100).toFixed(1))+"% ",1)]),p("tr",null,[p("td",null,[p("img",{class:"weather-img weather-img-small",src:IPe,alt:a.$t("workouts.WEATHER.WIND"),title:a.$t("workouts.WEATHER.WIND")},null,8,WPe)]),p("td",null,[U(oE,{weather:E(r).weatherStart,useImperialUnits:E(n)},null,8,["weather","useImperialUnits"])]),p("td",null,[U(oE,{weather:E(r).weatherEnd,useImperialUnits:E(n)},null,8,["weather","useImperialUnits"])])])])])])):x("",!0)}});const zPe=se(GPe,[["__scopeId","data-v-0eb0ef9d"]]),va=e=>(ut("data-v-9341b3e8"),e=e(),ct(),e),BPe={id:"workout-info"},HPe={class:"workout-data"},jPe=va(()=>p("i",{class:"fa fa-clock-o","aria-hidden":"true"},null,-1)),VPe={class:"label"},KPe={class:"value"},YPe={key:0},qPe={class:"value"},XPe={class:"value"},ZPe={key:0,class:"workout-data"},QPe=va(()=>p("i",{class:"fa fa-road","aria-hidden":"true"},null,-1)),JPe={class:"label"},ewe={key:1,class:"workout-data"},twe=va(()=>p("i",{class:"fa fa-tachometer","aria-hidden":"true"},null,-1)),nwe={class:"label"},rwe=va(()=>p("br",null,null,-1)),awe={class:"label"},swe={key:2,class:"workout-data"},owe=["alt"],iwe={class:"label"},uwe=va(()=>p("br",null,null,-1)),cwe={class:"label"},lwe={key:3,class:"workout-data"},dwe=va(()=>p("i",{class:"fa fa-location-arrow","aria-hidden":"true"},null,-1)),fwe={class:"label"},pwe=va(()=>p("br",null,null,-1)),mwe={class:"label"},_we=Q({__name:"WorkoutData",props:{workoutObject:{},useImperialUnits:{type:Boolean},displayHARecord:{type:Boolean}},setup(e){const t=e,{displayHARecord:n,workoutObject:r,useImperialUnits:a}=Te(t),s=$(()=>t.workoutObject.pauses!=="0:00:00"&&t.workoutObject.pauses!==null);return(o,i)=>{const u=ue("Distance");return A(),N("div",BPe,[p("div",HPe,[jPe,p("span",VPe,h(o.$t("workouts.DURATION")),1),K(": "),p("span",KPe,h(E(r).moving),1),U(Hs,{workoutObject:E(r),recordType:"LD"},null,8,["workoutObject"]),s.value?(A(),N("div",YPe,[K(" ("+h(o.$t("workouts.PAUSES"))+": ",1),p("span",qPe,h(E(r).pauses),1),K(" - "+h(o.$t("workouts.TOTAL_DURATION"))+": ",1),p("span",XPe,h(E(r).duration)+")",1)])):x("",!0)]),E(r).distance!==null?(A(),N("div",ZPe,[QPe,p("span",JPe,h(o.$t("workouts.DISTANCE")),1),K(": "),U(u,{distance:E(r).distance,digits:3,unitFrom:"km",strong:!0,useImperialUnits:E(a)},null,8,["distance","useImperialUnits"]),U(Hs,{workoutObject:E(r),recordType:"FD"},null,8,["workoutObject"])])):x("",!0),E(r).aveSpeed!==null&&E(r).maxSpeed!==null?(A(),N("div",ewe,[twe,p("span",nwe,h(o.$t("workouts.AVERAGE_SPEED")),1),K(": "),U(u,{distance:E(r).aveSpeed,unitFrom:"km",speed:!0,strong:!0,useImperialUnits:E(a)},null,8,["distance","useImperialUnits"]),U(Hs,{workoutObject:E(r),recordType:"AS"},null,8,["workoutObject"]),rwe,p("span",awe,h(o.$t("workouts.MAX_SPEED")),1),K(": "),U(u,{distance:E(r).maxSpeed,unitFrom:"km",speed:!0,strong:!0,useImperialUnits:E(a)},null,8,["distance","useImperialUnits"]),U(Hs,{workoutObject:E(r),recordType:"MS"},null,8,["workoutObject"])])):x("",!0),E(r).maxAlt!==null&&E(r).minAlt!==null?(A(),N("div",swe,[p("img",{class:"mountains",src:_A,alt:o.$t("workouts.ELEVATION")},null,8,owe),p("span",iwe,h(o.$t("workouts.MIN_ALTITUDE")),1),K(": "),U(u,{distance:E(r).minAlt,unitFrom:"m",strong:!0,useImperialUnits:E(a)},null,8,["distance","useImperialUnits"]),uwe,p("span",cwe,h(o.$t("workouts.MAX_ALTITUDE")),1),K(": "),U(u,{distance:E(r).maxAlt,unitFrom:"m",strong:!0,useImperialUnits:E(a)},null,8,["distance","useImperialUnits"])])):x("",!0),E(r).ascent!==null&&E(r).descent!==null?(A(),N("div",lwe,[dwe,p("span",fwe,h(o.$t("workouts.ASCENT")),1),K(": "),U(u,{distance:E(r).ascent,unitFrom:"m",strong:!0,useImperialUnits:E(a)},null,8,["distance","useImperialUnits"]),E(n)?(A(),re(Hs,{key:0,workoutObject:E(r),recordType:"HA"},null,8,["workoutObject"])):x("",!0),pwe,p("span",mwe,h(o.$t("workouts.DESCENT")),1),K(": "),U(u,{distance:E(r).descent,unitFrom:"m",strong:!0,useImperialUnits:E(a)},null,8,["distance","useImperialUnits"])])):x("",!0),U(zPe,{workoutObject:E(r),useImperialUnits:E(a)},null,8,["workoutObject","useImperialUnits"])])}}});const Ewe=se(_we,[["__scopeId","data-v-9341b3e8"]]);function qa(e,t){return Array.from(e.getElementsByTagName(t))}function Ds(e){return e==null||e.normalize(),e&&e.textContent||""}function Ea(e,t,n){const r=e.getElementsByTagName(t),a=r.length?r[0]:null;return a&&n&&n(a),a}function hwe(e,t,n){const r={};if(!e)return r;const a=e.getElementsByTagName(t),s=a.length?a[0]:null;return s&&n?n(s,r):r}function NA(e,t,n){const r=Ds(Ea(e,t));return r&&n?n(r)||{}:{}}function iE(e,t,n){const r=parseFloat(Ds(Ea(e,t)));if(!isNaN(r))return r&&n?n(r)||{}:{}}function Twe(e,t,n){const r=parseFloat(Ds(Ea(e,t)));if(!isNaN(r))return n&&n(r),r}function $d(e,t){const n={};for(const r of t)NA(e,r,a=>{n[r]=a});return n}function gwe(e){return(e==null?void 0:e.nodeType)===1}function yA(e){return hwe(e,"line",t=>Object.assign({},NA(t,"color",r=>({stroke:`#${r}`})),iE(t,"opacity",r=>({"stroke-opacity":r})),iE(t,"width",r=>({"stroke-width":r*96/25.4}))))}function CA(e){let t=[];if(e===null)return t;for(const n of Array.from(e.childNodes)){if(!gwe(n))continue;const r=Awe(n.nodeName);if(r==="gpxtpx:TrackPointExtension")t=t.concat(CA(n));else{const a=Ds(n);t.push([r,Swe(a)])}}return t}function Awe(e){return["heart","gpxtpx:hr","hr"].includes(e)?"heart":e}function Swe(e){const t=parseFloat(e);return isNaN(t)?e:t}function DA(e){const t=[parseFloat(e.getAttribute("lon")||""),parseFloat(e.getAttribute("lat")||"")];if(isNaN(t[0])||isNaN(t[1]))return null;Twe(e,"ele",r=>{t.push(r)});const n=Ea(e,"time");return{coordinates:t,time:n?Ds(n):null,extendedValues:CA(Ea(e,"extensions"))}}function d0(e){var a;const t=$d(e,["name","cmt","desc","type","time","keywords"]),n=Array.from(e.getElementsByTagNameNS("http://www.garmin.com/xmlschemas/GpxExtensions/v3","*"));for(const s of n)((a=s.parentNode)==null?void 0:a.parentNode)===e&&(t[s.tagName.replace(":","_")]=Ds(s));const r=qa(e,"link");return r.length&&(t.links=r.map(s=>Object.assign({href:s.getAttribute("href")},$d(s,["text","type"])))),t}function PA(e,t){const n=qa(e,t),r=[],a=[],s={};for(let o=0;o1,o=Object.assign({_gpxType:"trk"},d0(e),yA(Ea(e,"extensions")),r.length?{coordinateProperties:{times:s?r:r[0]}}:{});for(const i of a){n.push(i.line),o.coordinateProperties||(o.coordinateProperties={});const u=o.coordinateProperties,c=Object.entries(i.extendedValues);for(let l=0;lnew Array(m.line.length).fill(null))),u[f][l]=d):u[f]=d}}return{type:"Feature",properties:o,geometry:s?{type:"MultiLineString",coordinates:n}:{type:"LineString",coordinates:n[0]}}}function vwe(e){const t=Object.assign(d0(e),$d(e,["sym"])),n=DA(e);return n?{type:"Feature",properties:t,geometry:{type:"Point",coordinates:n.coordinates}}:null}function*bwe(e){for(const t of qa(e,"trk")){const n=Iwe(t);n&&(yield n)}for(const t of qa(e,"rte")){const n=Owe(t);n&&(yield n)}for(const t of qa(e,"wpt")){const n=vwe(t);n&&(yield n)}}function Rwe(e){return{type:"FeatureCollection",features:Array.from(bwe(e))}}const uE=(e,t)=>{for(const n of Object.keys(t))e.on(n,t[n])},wA=e=>{for(const t of Object.keys(e)){const n=e[t];n&&Lr(n.cancel)&&n.cancel()}},Nwe=e=>!e||typeof e.charAt!="function"?e:e.charAt(0).toUpperCase()+e.slice(1),Lr=e=>typeof e=="function",gr=(e,t,n)=>{for(const r in n){const a="set"+Nwe(r);e[a]?Be(()=>n[r],(s,o)=>{e[a](s,o)}):t[a]&&Be(()=>n[r],s=>{t[a](s)})}},tr=(e,t,n={})=>{const r={...n};for(const a in e){const s=t[a],o=e[a];s&&(s&&s.custom===!0||o!==void 0&&(r[a]=o))}return r},ba=e=>{const t={},n={};for(const r in e)if(r.startsWith("on")&&!r.startsWith("onUpdate")&&r!=="onReady"){const a=r.slice(2).toLocaleLowerCase();t[a]=e[r]}else n[r]=e[r];return{listeners:t,attrs:n}},ywe=async e=>{const t=await Promise.all([yt(()=>import("./maps-c37c70d1.js").then(n=>n.m),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]),yt(()=>import("./maps-c37c70d1.js").then(n=>n.b),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]),yt(()=>import("./maps-c37c70d1.js").then(n=>n.d),["static/maps-c37c70d1.js","static/css/maps-69420918.css"])]);delete e.Default.prototype._getIconUrl,e.Default.mergeOptions({iconRetinaUrl:t[0].default,iconUrl:t[1].default,shadowUrl:t[2].default})},yi=e=>{const t=le((...r)=>console.warn(`Method ${e} has been invoked without being replaced`)),n=(...r)=>t.value(...r);return n.wrapped=t,tn(e,n),n},Ci=(e,t)=>e.wrapped.value=t,Ln=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||globalThis,vn=e=>{const t=ht(e);if(t===void 0)throw new Error(`Attempt to inject ${e.description} before it was provided.`);return t},Ar=Symbol("useGlobalLeaflet"),Xr=Symbol("addLayer"),f0=Symbol("removeLayer"),LA=Symbol("registerControl"),$A=Symbol("registerLayerControl"),kA=Symbol("canSetParentHtml"),UA=Symbol("setParentHtml"),MA=Symbol("setIcon"),Cwe=Symbol("bindPopup"),Dwe=Symbol("bindTooltip"),Pwe=Symbol("unbindPopup"),wwe=Symbol("unbindTooltip"),Qo={options:{type:Object,default:()=>({}),custom:!0}},Sc=e=>({options:e.options,methods:{}}),Ps={...Qo,pane:{type:String},attribution:{type:String},name:{type:String,custom:!0},layerType:{type:String,custom:!0},visible:{type:Boolean,custom:!0,default:!0}},p0=(e,t,n)=>{const r=vn(Xr),a=vn(f0),{options:s,methods:o}=Sc(e),i=tr(e,Ps,s),u=()=>r({leafletObject:t.value}),c=()=>a({leafletObject:t.value}),l={...o,setAttribution(f){c(),t.value.options.attribution=f,e.visible&&u()},setName(){c(),e.visible&&u()},setLayerType(){c(),e.visible&&u()},setVisible(f){t.value&&(f?u():c())},bindPopup(f){if(!t.value||!Lr(t.value.bindPopup)){console.warn("Attempt to bind popup before bindPopup method available on layer.");return}t.value.bindPopup(f)},bindTooltip(f){if(!t.value||!Lr(t.value.bindTooltip)){console.warn("Attempt to bind tooltip before bindTooltip method available on layer.");return}t.value.bindTooltip(f)},unbindTooltip(){t.value&&(Lr(t.value.closeTooltip)&&t.value.closeTooltip(),Lr(t.value.unbindTooltip)&&t.value.unbindTooltip())},unbindPopup(){t.value&&(Lr(t.value.closePopup)&&t.value.closePopup(),Lr(t.value.unbindPopup)&&t.value.unbindPopup())},updateVisibleProp(f){n.emit("update:visible",f)}};return tn(Cwe,l.bindPopup),tn(Dwe,l.bindTooltip),tn(Pwe,l.unbindPopup),tn(wwe,l.unbindTooltip),Rt(()=>{l.unbindPopup(),l.unbindTooltip(),c()}),{options:i,methods:l}},m0=(e,t)=>{if(e&&t.default)return Rn("div",{style:{display:"none"}},t.default())},Lwe={...Ps,interactive:{type:Boolean,default:void 0},bubblingMouseEvents:{type:Boolean,default:void 0}},xA={...Lwe,stroke:{type:Boolean,default:void 0},color:{type:String},weight:{type:Number},opacity:{type:Number},lineCap:{type:String},lineJoin:{type:String},dashArray:{type:String},dashOffset:{type:String},fill:{type:Boolean,default:void 0},fillColor:{type:String},fillOpacity:{type:Number},fillRule:{type:String},className:{type:String}},$we={...xA,radius:{type:Number},latLng:{type:[Object,Array],required:!0,custom:!0}};({...$we});const ws={...Qo,position:{type:String}},FA=(e,t)=>{const{options:n,methods:r}=Sc(e),a=tr(e,ws,n),s={...r,setPosition(o){t.value&&t.value.setPosition(o)}};return Rt(()=>{t.value&&t.value.remove()}),{options:a,methods:s}},kwe=e=>e.default?Rn("div",{ref:"root"},e.default()):null,cE=Q({name:"LControl",props:{...ws,disableClickPropagation:{type:Boolean,custom:!0,default:!0},disableScrollPropagation:{type:Boolean,custom:!0,default:!1}},setup(e,t){const n=le(),r=le(),a=ht(Ar),s=vn(LA),{options:o,methods:i}=FA(e,n);return St(async()=>{const{Control:u,DomEvent:c}=a?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(f=>f.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]),l=u.extend({onAdd(){return r.value}});n.value=Jn(new l(o)),gr(i,n.value,e),s({leafletObject:n.value}),e.disableClickPropagation&&r.value&&c.disableClickPropagation(r.value),e.disableScrollPropagation&&r.value&&c.disableScrollPropagation(r.value),bn(()=>t.emit("ready",n.value))}),{root:r,leafletObject:n}},render(){return kwe(this.$slots)}});({...ws});const WA={...ws,collapsed:{type:Boolean,default:void 0},autoZIndex:{type:Boolean,default:void 0},hideSingleBase:{type:Boolean,default:void 0},sortLayers:{type:Boolean,default:void 0},sortFunction:{type:Function}},Uwe=(e,t)=>{const{options:n}=FA(e,t);return{options:tr(e,WA,n),methods:{addLayer(r){r.layerType==="base"?t.value.addBaseLayer(r.leafletObject,r.name):r.layerType==="overlay"&&t.value.addOverlay(r.leafletObject,r.name)},removeLayer(r){t.value.removeLayer(r.leafletObject)}}}},Mwe=Q({name:"LControlLayers",props:WA,setup(e,t){const n=le(),r=ht(Ar),a=vn($A),{options:s,methods:o}=Uwe(e,n);return St(async()=>{const{control:i}=r?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(u=>u.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]);n.value=Jn(i.layers(void 0,void 0,s)),gr(o,n.value,e),a({...e,...o,leafletObject:n.value}),bn(()=>t.emit("ready",n.value))}),{leafletObject:n}},render(){return null}});({...ws});({...ws});const Oc={...Ps},GA=(e,t,n)=>{const{options:r,methods:a}=p0(e,t,n),s=tr(e,Oc,r),o={...a,addLayer(i){t.value.addLayer(i.leafletObject)},removeLayer(i){t.value.removeLayer(i.leafletObject)}};return tn(Xr,o.addLayer),tn(f0,o.removeLayer),{options:s,methods:o}};({...Oc});const zA={...Oc,geojson:{type:[Object,Array],custom:!0},optionsStyle:{type:Function,custom:!0}},xwe=(e,t,n)=>{const{options:r,methods:a}=GA(e,t,n),s=tr(e,zA,r);Object.prototype.hasOwnProperty.call(e,"optionsStyle")&&(s.style=e.optionsStyle);const o={...a,setGeojson(i){t.value.clearLayers(),t.value.addData(i)},setOptionsStyle(i){t.value.setStyle(i)},getGeoJSONData(){return t.value.toGeoJSON()},getBounds(){return t.value.getBounds()}};return{options:s,methods:o}},Fwe=Q({props:zA,setup(e,t){const n=le(),r=le(!1),a=ht(Ar),s=vn(Xr),{methods:o,options:i}=xwe(e,n,t);return St(async()=>{const{geoJSON:u}=a?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(l=>l.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]);n.value=Jn(u(e.geojson,i));const{listeners:c}=ba(t.attrs);n.value.on(c),gr(o,n.value,e),s({...e,...o,leafletObject:n.value}),r.value=!0,bn(()=>t.emit("ready",n.value))}),{ready:r,leafletObject:n}},render(){return m0(this.ready,this.$slots)}}),_0={...Ps,opacity:{type:Number},zIndex:{type:Number},tileSize:{type:[Number,Array,Object]},noWrap:{type:Boolean,default:void 0},minZoom:{type:Number},maxZoom:{type:Number},className:{type:String}},BA=(e,t,n)=>{const{options:r,methods:a}=p0(e,t,n),s=tr(e,_0,r),o={...a,setTileComponent(){var i;(i=t.value)==null||i.redraw()}};return Rt(()=>{t.value.off()}),{options:s,methods:o}},Wwe=(e,t,n,r)=>e.extend({initialize(a){this.tileComponents={},this.on("tileunload",this._unloadTile),n.setOptions(this,a)},createTile(a){const s=this._tileCoordsToKey(a);this.tileComponents[s]=t.create("div");const o=Rn({setup:r,props:["coords"]},{coords:a});return yI(o,this.tileComponents[s]),this.tileComponents[s]},_unloadTile(a){const s=this._tileCoordsToKey(a.coords);this.tileComponents[s]&&(this.tileComponents[s].innerHTML="",this.tileComponents[s]=void 0)}});({..._0});const lE={iconUrl:{type:String},iconRetinaUrl:{type:String},iconSize:{type:[Object,Array]},iconAnchor:{type:[Object,Array]},popupAnchor:{type:[Object,Array]},tooltipAnchor:{type:[Object,Array]},shadowUrl:{type:String},shadowRetinaUrl:{type:String},shadowSize:{type:[Object,Array]},shadowAnchor:{type:[Object,Array]},bgPos:{type:[Object,Array]},className:{type:String}},Gwe=Q({name:"LIcon",props:{...lE,...Qo},setup(e,t){const n=le(),r=ht(Ar),a=vn(kA),s=vn(UA),o=vn(MA);let i,u,c,l,f;const d=(R,I,b)=>{const v=R&&R.innerHTML;if(!I){b&&f&&a()&&s(v);return}const{listeners:T}=ba(t.attrs);f&&u(f,T);const{options:L}=Sc(e),w=tr(e,lE,L);v&&(w.html=v),f=w.html?c(w):l(w),i(f,T),o(f)},m=()=>{bn(()=>d(n.value,!0,!1))},_=()=>{bn(()=>d(n.value,!1,!0))},g={setIconUrl:m,setIconRetinaUrl:m,setIconSize:m,setIconAnchor:m,setPopupAnchor:m,setTooltipAnchor:m,setShadowUrl:m,setShadowRetinaUrl:m,setShadowAnchor:m,setBgPos:m,setClassName:m,setHtml:m};return St(async()=>{const{DomEvent:R,divIcon:I,icon:b}=r?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(v=>v.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]);i=R.on,u=R.off,c=I,l=b,gr(g,{},e),new MutationObserver(_).observe(n.value,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),m()}),{root:n}},render(){const e=this.$slots.default?this.$slots.default():void 0;return Rn("div",{ref:"root"},e)}});({...Ps});const zwe=Q({props:Oc,setup(e,t){const n=le(),r=le(!1),a=ht(Ar),s=vn(Xr),{methods:o}=GA(e,n,t);return St(async()=>{const{layerGroup:i}=a?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(c=>c.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]);n.value=Jn(i(void 0,e.options));const{listeners:u}=ba(t.attrs);n.value.on(u),gr(o,n.value,e),s({...e,...o,leafletObject:n.value}),r.value=!0,bn(()=>t.emit("ready",n.value))}),{ready:r,leafletObject:n}},render(){return m0(this.ready,this.$slots)}});function HA(e,t,n){var r,a,s;t===void 0&&(t=50),n===void 0&&(n={});var o=(r=n.isImmediate)!=null&&r,i=(a=n.callback)!=null&&a,u=n.maxWait,c=Date.now(),l=[];function f(){if(u!==void 0){var m=Date.now()-c;if(m+t>=u)return u-m}return t}var d=function(){var m=[].slice.call(arguments),_=this;return new Promise(function(g,R){var I=o&&s===void 0;if(s!==void 0&&clearTimeout(s),s=setTimeout(function(){if(s=void 0,c=Date.now(),!o){var v=e.apply(_,m);i&&i(v),l.forEach(function(T){return(0,T.resolve)(v)}),l=[]}},f()),I){var b=e.apply(_,m);return i&&i(b),g(b)}l.push({resolve:g,reject:R})})};return d.cancel=function(m){s!==void 0&&clearTimeout(s),l.forEach(function(_){return(0,_.reject)(m)}),l=[]},d}const dE={...Qo,center:{type:[Object,Array]},bounds:{type:[Array,Object]},maxBounds:{type:[Array,Object]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},paddingBottomRight:{type:[Object,Array]},paddingTopLeft:{type:Object},padding:{type:Object},worldCopyJump:{type:Boolean,default:void 0},crs:{type:[String,Object]},maxBoundsViscosity:{type:Number},inertia:{type:Boolean,default:void 0},inertiaDeceleration:{type:Number},inertiaMaxSpeed:{type:Number},easeLinearity:{type:Number},zoomAnimation:{type:Boolean,default:void 0},zoomAnimationThreshold:{type:Number},fadeAnimation:{type:Boolean,default:void 0},markerZoomAnimation:{type:Boolean,default:void 0},noBlockingAnimations:{type:Boolean,default:void 0},useGlobalLeaflet:{type:Boolean,default:!0,custom:!0}},Bwe=Q({inheritAttrs:!1,emits:["ready","update:zoom","update:center","update:bounds"],props:dE,setup(e,t){const n=le(),r=zt({ready:!1,layersToAdd:[],layersInControl:[]}),{options:a}=Sc(e),s=tr(e,dE,a),{listeners:o,attrs:i}=ba(t.attrs),u=yi(Xr),c=yi(f0),l=yi(LA),f=yi($A);tn(Ar,e.useGlobalLeaflet);const d=$(()=>{const I={};return e.noBlockingAnimations&&(I.animate=!1),I}),m=$(()=>{const I=d.value;return e.padding&&(I.padding=e.padding),e.paddingTopLeft&&(I.paddingTopLeft=e.paddingTopLeft),e.paddingBottomRight&&(I.paddingBottomRight=e.paddingBottomRight),I}),_={moveend:HA(I=>{r.leafletRef&&(t.emit("update:zoom",r.leafletRef.getZoom()),t.emit("update:center",r.leafletRef.getCenter()),t.emit("update:bounds",r.leafletRef.getBounds()))}),overlayadd(I){const b=r.layersInControl.find(v=>v.name===I.name);b&&b.updateVisibleProp(!0)},overlayremove(I){const b=r.layersInControl.find(v=>v.name===I.name);b&&b.updateVisibleProp(!1)}};St(async()=>{e.useGlobalLeaflet&&(Ln.L=Ln.L||await yt(()=>import("./maps-c37c70d1.js").then(G=>G.l),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]));const{map:I,CRS:b,Icon:v,latLngBounds:T,latLng:L,stamp:w}=e.useGlobalLeaflet?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(G=>G.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]);try{s.beforeMapMount&&await s.beforeMapMount()}catch(G){console.error(`The following error occurred running the provided beforeMapMount hook ${G.message}`)}await ywe(v);const P=typeof s.crs=="string"?b[s.crs]:s.crs;s.crs=P||b.EPSG3857;const j={addLayer(G){G.layerType!==void 0&&(r.layerControl===void 0?r.layersToAdd.push(G):r.layersInControl.find(z=>w(z.leafletObject)===w(G.leafletObject))||(r.layerControl.addLayer(G),r.layersInControl.push(G))),G.visible!==!1&&r.leafletRef.addLayer(G.leafletObject)},removeLayer(G){G.layerType!==void 0&&(r.layerControl===void 0?r.layersToAdd=r.layersToAdd.filter(z=>z.name!==G.name):(r.layerControl.removeLayer(G.leafletObject),r.layersInControl=r.layersInControl.filter(z=>w(z.leafletObject)!==w(G.leafletObject)))),r.leafletRef.removeLayer(G.leafletObject)},registerLayerControl(G){r.layerControl=G,r.layersToAdd.forEach(z=>{r.layerControl.addLayer(z)}),r.layersToAdd=[],l(G)},registerControl(G){r.leafletRef.addControl(G.leafletObject)},setZoom(G){const z=r.leafletRef.getZoom();G!==z&&r.leafletRef.setZoom(G,d.value)},setCrs(G){const z=r.leafletRef.getBounds();r.leafletRef.options.crs=G,r.leafletRef.fitBounds(z,{animate:!1,padding:[0,0]})},fitBounds(G){r.leafletRef.fitBounds(G,m.value)},setBounds(G){if(!G)return;const z=T(G);z.isValid()&&!(r.lastSetBounds||r.leafletRef.getBounds()).equals(z,0)&&(r.lastSetBounds=z,r.leafletRef.fitBounds(z))},setCenter(G){if(G==null)return;const z=L(G),k=r.lastSetCenter||r.leafletRef.getCenter();(k.lat!==z.lat||k.lng!==z.lng)&&(r.lastSetCenter=z,r.leafletRef.panTo(z,d.value))}};Ci(u,j.addLayer),Ci(c,j.removeLayer),Ci(l,j.registerControl),Ci(f,j.registerLayerControl),r.leafletRef=Jn(I(n.value,s)),gr(j,r.leafletRef,e),uE(r.leafletRef,_),uE(r.leafletRef,o),r.ready=!0,bn(()=>t.emit("ready",r.leafletRef))}),ko(()=>{wA(_),r.leafletRef&&(r.leafletRef.off(),r.leafletRef.remove())});const g=$(()=>r.leafletRef),R=$(()=>r.ready);return{root:n,ready:R,leafletObject:g,attrs:i}},render({attrs:e}){return e.style||(e.style={}),e.style.width||(e.style.width="100%"),e.style.height||(e.style.height="100%"),Rn("div",{...e,ref:"root"},this.ready&&this.$slots.default?this.$slots.default():{})}}),Hwe=["Symbol(Comment)","Symbol(Text)"],jwe=["LTooltip","LPopup"],jA={...Ps,draggable:{type:Boolean,default:void 0},icon:{type:[Object]},zIndexOffset:{type:Number},latLng:{type:[Object,Array],custom:!0,required:!0}},Vwe=(e,t,n)=>{const{options:r,methods:a}=p0(e,t,n),s=tr(e,jA,r),o={...a,setDraggable(i){t.value.dragging&&(i?t.value.dragging.enable():t.value.dragging.disable())},latLngSync(i){n.emit("update:latLng",i.latlng),n.emit("update:lat-lng",i.latlng)},setLatLng(i){if(i!=null&&t.value){const u=t.value.getLatLng();(!u||!u.equals(i))&&t.value.setLatLng(i)}}};return{options:s,methods:o}},Kwe=(e,t)=>{const n=t.slots.default&&t.slots.default();return n&&n.length&&n.some(Ywe)};function Ywe(e){return!(Hwe.includes(e.type.toString())||jwe.includes(e.type.name))}const VA=Q({name:"LMarker",props:jA,setup(e,t){const n=le(),r=le(!1),a=ht(Ar),s=vn(Xr);tn(kA,()=>{var c;return!!((c=n.value)!=null&&c.getElement())}),tn(UA,c=>{var l,f;const d=Lr((l=n.value)==null?void 0:l.getElement)&&((f=n.value)==null?void 0:f.getElement());d&&(d.innerHTML=c)}),tn(MA,c=>{var l;return((l=n.value)==null?void 0:l.setIcon)&&n.value.setIcon(c)});const{options:o,methods:i}=Vwe(e,n,t),u={moveHandler:HA(i.latLngSync)};return St(async()=>{const{marker:c,divIcon:l}=a?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(d=>d.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]);Kwe(o,t)&&(o.icon=l({className:""})),n.value=Jn(c(e.latLng,o));const{listeners:f}=ba(t.attrs);n.value.on(f),n.value.on("move",u.moveHandler),gr(i,n.value,e),s({...e,...i,leafletObject:n.value}),r.value=!0,bn(()=>t.emit("ready",n.value))}),ko(()=>wA(u)),{ready:r,leafletObject:n}},render(){return m0(this.ready,this.$slots)}}),qwe={...xA,smoothFactor:{type:Number},noClip:{type:Boolean,default:void 0},latLngs:{type:Array,required:!0,custom:!0}},fE={...qwe},KA={...Qo,content:{type:String,default:null}};({...KA});({...fE,latLngs:{...fE.latLngs}});const E0={..._0,tms:{type:Boolean,default:void 0},subdomains:{type:[String,Array],validator:e=>typeof e=="string"?!0:Array.isArray(e)?e.every(t=>typeof t=="string"):!1},detectRetina:{type:Boolean,default:void 0},url:{type:String,required:!0,custom:!0}},Xwe=(e,t,n)=>{const{options:r,methods:a}=BA(e,t,n),s=tr(e,E0,r),o={...a};return{options:s,methods:o}},Zwe=Q({props:E0,setup(e,t){const n=le(),r=ht(Ar),a=vn(Xr),{options:s,methods:o}=Xwe(e,n,t);return St(async()=>{const{tileLayer:i}=r?Ln.L:await yt(()=>import("./maps-c37c70d1.js").then(c=>c.e),["static/maps-c37c70d1.js","static/css/maps-69420918.css"]);n.value=Jn(i(e.url,s));const{listeners:u}=ba(t.attrs);n.value.on(u),gr(o,n.value,e),a({...e,...o,leafletObject:n.value}),bn(()=>t.emit("ready",n.value))}),{leafletObject:n}},render(){return null}});({...KA});({...E0});const pE=Q({__name:"CustomMarker",props:{markerCoordinates:{},isStart:{type:Boolean}},setup(e){const t=e,{isStart:n,markerCoordinates:r}=Te(t);return(a,s)=>E(r).latitude?(A(),re(E(VA),{key:0,"lat-lng":[E(r).latitude,E(r).longitude]},{default:pe(()=>[U(E(Gwe),{"icon-url":`/img/workouts/${E(n)?"start":"finish"}.svg`,iconSize:[15,15]},null,8,["icon-url"])]),_:1},8,["lat-lng"])):x("",!0)}}),Qwe=e=>(ut("data-v-d75d6469"),e=e(),ct(),e),Jwe={id:"workout-map"},e6e={key:0,class:"leaflet-container"},t6e={key:1},n6e=Qwe(()=>p("i",{class:"fa fa-refresh","aria-hidden":"true"},null,-1)),r6e={key:1,class:"no-map"},a6e=Q({__name:"index",props:{workoutData:{},markerCoordinates:{default:()=>({})}},setup(e){const t=e,n=Me(),{workoutData:r,markerCoordinates:a}=Te(t),s=le(null),o=$(()=>R()),i=$(()=>n.getters[V.GETTERS.APP_CONFIG]),u=$(()=>_(o)),c=$(()=>t.workoutData&&t.workoutData.gpx?m(t.workoutData.gpx):{}),l=$(()=>t.workoutData&&t.workoutData.chartData.length>0?{latitude:t.workoutData.chartData[0].latitude,longitude:t.workoutData.chartData[0].longitude}:{}),f=$(()=>t.workoutData&&t.workoutData.chartData.length>0?{latitude:t.workoutData.chartData[t.workoutData.chartData.length-1].latitude,longitude:t.workoutData.chartData[t.workoutData.chartData.length-1].longitude}:{}),d=le(!1);function m(v){if(!v||v!=="")try{return{jsonData:Rwe(new DOMParser().parseFromString(v,"text/xml"))}}catch{return console.error("Invalid gpx content"),{}}return{}}function _(v){return[(v.value[0][0]+v.value[1][0])/2,(v.value[0][1]+v.value[1][1])/2]}function g(v){var T,L;(T=s.value)!=null&&T.leafletObject&&((L=s.value)==null||L.leafletObject.fitBounds(v))}function R(){return t.workoutData?[[t.workoutData.workout.bounds[0],t.workoutData.workout.bounds[1]],[t.workoutData.workout.bounds[2],t.workoutData.workout.bounds[3]]]:[]}function I(){var v;(v=s.value)==null||v.leafletObject.fitBounds(R())}function b(){d.value=!d.value,d.value||setTimeout(()=>{I()},100)}return(v,T)=>{const L=ue("VFullscreen");return A(),N("div",Jwe,[E(r).loading?(A(),N("div",e6e)):(A(),N("div",t6e,[E(r).workout.with_gpx?(A(),re(L,{key:0,modelValue:d.value,"onUpdate:modelValue":T[1]||(T[1]=w=>d.value=w)},{default:pe(()=>[p("div",{class:Ae(["leaflet-container",{"fullscreen-map":d.value}])},[c.value.jsonData&&u.value&&o.value.length===2?(A(),re(E(Bwe),{key:0,zoom:13,maxZoom:19,center:u.value,bounds:o.value,zoomAnimation:!1,ref_key:"workoutMap",ref:s,onReady:T[0]||(T[0]=w=>g(o.value)),"use-global-leaflet":!1},{default:pe(()=>[U(E(Mwe)),U(E(cE),{position:"topleft",class:"map-control",tabindex:"0",role:"button","aria-label":v.$t("workouts.RESET_ZOOM"),onClick:I},{default:pe(()=>[n6e]),_:1},8,["aria-label"]),U(E(cE),{position:"topleft",class:"map-control",tabindex:"0",role:"button","aria-label":v.$t(`workouts.${d.value?"EXIT":"VIEW"}_FULLSCREEN`),onClick:b},{default:pe(()=>[p("i",{class:Ae(`fa fa-${d.value?"compress":"arrows-alt"}`),"aria-hidden":"true"},null,2)]),_:1},8,["aria-label"]),U(E(Zwe),{url:`${E(Fo)()}workouts/map_tile/{s}/{z}/{x}/{y}.png`,attribution:i.value.map_attribution,bounds:o.value},null,8,["url","attribution","bounds"]),U(E(Fwe),{geojson:c.value.jsonData},null,8,["geojson"]),E(a).latitude?(A(),re(E(VA),{key:0,"lat-lng":[E(a).latitude,E(a).longitude]},null,8,["lat-lng"])):x("",!0),U(E(zwe),{name:v.$t("workouts.START_AND_FINISH"),"layer-type":"overlay"},{default:pe(()=>[l.value.latitude?(A(),re(pE,{key:0,markerCoordinates:l.value,isStart:!0},null,8,["markerCoordinates"])):x("",!0),f.value.latitude?(A(),re(pE,{key:1,markerCoordinates:f.value,isStart:!1},null,8,["markerCoordinates"])):x("",!0)]),_:1},8,["name"])]),_:1},8,["center","bounds"])):x("",!0)],2)]),_:1},8,["modelValue"])):(A(),N("div",r6e,h(v.$t("workouts.NO_MAP")),1))]))])}}});const s6e=se(a6e,[["__scopeId","data-v-d75d6469"]]),o6e={class:"workout-detail"},i6e=Q({__name:"index",props:{authUser:{},displaySegment:{type:Boolean},sports:{},workoutData:{},markerCoordinates:{default:()=>({})}},setup(e){const t=e,n=Kt(),r=Me(),{authUser:a,markerCoordinates:s,workoutData:o}=Te(t),i=$(()=>t.workoutData.workout),u=le(n.params.workoutId?+n.params.segmentId:null),c=$(()=>i.value.segments.length>0&&u.value?i.value.segments[+u.value-1]:null),l=le(!1),f=$(()=>t.sports?t.sports.find(v=>v.id===t.workoutData.workout.sport_id):{}),d=$(()=>_(i.value,c.value));function m(v,T,L){const w=T&&L&&L!==1?`/workouts/${v.id}/segment/${L-1}`:!T&&v.previous_workout?`/workouts/${v.previous_workout}`:null,P=T&&L&&Ln.params.segmentId,async v=>{v&&(u.value=+v,b())}),Be(()=>n.params.workoutId,async v=>{v&&(l.value=!1,b())}),(v,T)=>{const L=ue("Modal"),w=ue("Card");return A(),N("div",o6e,[l.value?(A(),re(L,{key:0,title:v.$t("common.CONFIRMATION"),message:v.$t("workouts.WORKOUT_DELETION_CONFIRMATION"),onConfirmAction:T[0]||(T[0]=P=>I(d.value.workoutId)),onCancelAction:R,onKeydown:Ot(R,["esc"])},null,8,["title","message","onKeydown"])):x("",!0),U(w,null,{title:pe(()=>[f.value?(A(),re(_Pe,{key:0,sport:f.value,workoutObject:d.value,onDisplayModal:T[1]||(T[1]=P=>g(!0))},null,8,["sport","workoutObject"])):x("",!0)]),content:pe(()=>[U(s6e,{workoutData:E(o),markerCoordinates:E(s)},null,8,["workoutData","markerCoordinates"]),U(Ewe,{workoutObject:d.value,useImperialUnits:E(a).imperial_units,displayHARecord:E(a).display_ascent},null,8,["workoutObject","useImperialUnits","displayHARecord"])]),_:1})])}}});const u6e=se(i6e,[["__scopeId","data-v-f8b05eca"]]),c6e=e=>{const t=document.getElementById(e);if(t){let n=t.querySelector("ul");return n||(n=document.createElement("ul"),t.appendChild(n)),n}throw new Error("No legend container")},l6e={id:"htmlLegend",afterUpdate(e,t,n){var s,o,i,u,c,l;const r=c6e(n.containerID);for(;r.firstChild;)r.firstChild.remove();((i=(o=(s=e.options.plugins)==null?void 0:s.legend)==null?void 0:o.labels)!=null&&i.generateLabels?(l=(c=(u=e.options.plugins)==null?void 0:u.legend)==null?void 0:c.labels)==null?void 0:l.generateLabels(e):[]).forEach(f=>{var R,I,b;if(!((b=(I=(R=e.config.options)==null?void 0:R.scales)==null?void 0:I.yElevation)!=null&&b.display)&&f.datasetIndex===1)return;const d=document.createElement("li");d.onclick=()=>{f.datasetIndex!==void 0&&(e.setDatasetVisibility(f.datasetIndex,!e.isDatasetVisible(f.datasetIndex)),e.update())};const m=document.createElement("input");m&&(m.type="checkbox",m.id=f.text,m.checked=!f.hidden);const _=document.createTextNode(f.text),g=document.createElement("span");g&&(g.style.background=String(f.fillStyle),g.style.borderColor=String(f.strokeStyle)),d.appendChild(m),d.appendChild(_),d.appendChild(g),r.appendChild(d)})}},d6e=e=>(ut("data-v-1ff321b2"),e=e(),ct(),e),f6e={id:"workout-chart"},p6e={class:"chart-radio"},m6e=["checked"],_6e=["checked"],E6e=d6e(()=>p("div",{id:"chart-legend"},null,-1)),h6e={class:"line-chart"},T6e={class:"chart-info"},g6e={class:"no-data-cleaning"},A6e={key:0,class:"elevation-start"},S6e=["checked"],O6e=Q({__name:"index",props:{authUser:{},workoutData:{}},emits:["getCoordinates"],setup(e,{emit:t}){const n=e,r=t,{t:a}=Vt(),{authUser:s,workoutData:o}=Te(n),i=le(!0),u=le(s.value.start_elevation_at_zero),c=$(()=>VNe(o.value.chartData,a,s.value.imperial_units)),l=$(()=>c.value&&c.value.datasets.elevation.data.length>0),f=L("km"),d=L("m"),m=$(()=>({labels:i.value?c.value.distance_labels:c.value.duration_labels,datasets:JSON.parse(JSON.stringify([c.value.datasets.speed,c.value.datasets.elevation]))})),_=$(()=>c.value.coordinates),g=$(()=>({responsive:!0,maintainAspectRatio:!1,animation:!1,layout:{padding:{top:22}},scales:{x:{grid:{drawOnChartArea:!1},ticks:{count:10,callback:function(w){return i.value?Number(w).toFixed(2):b(w)}},type:"linear",bounds:"data",title:{display:!0,text:i.value?a("workouts.DISTANCE")+` (${f})`:a("workouts.DURATION")}},ySpeed:{grid:{drawOnChartArea:!1},position:"left",title:{display:!0,text:a("workouts.SPEED")+` (${f}/h)`}},yElevation:{beginAtZero:u.value,display:l.value,grid:{drawOnChartArea:!1},position:"right",title:{display:!0,text:a("workouts.ELEVATION")+` (${d})`}}},elements:{point:{pointStyle:"circle",pointRadius:0}},plugins:{datalabels:{display:!1},tooltip:{interaction:{intersect:!1,mode:"index"},callbacks:{label:function(w){const P=` ${w.dataset.label}: ${w.formattedValue}`;return w.dataset.yAxisID==="yElevation"?P+` ${d}`:P+` ${f}/h`},title:function(w){return w.length>0&&v(_.value[w[0].dataIndex]),w.length===0?"":i.value?`${a("workouts.DISTANCE")}: ${w[0].label} ${f}`:`${a("workouts.DURATION")}: ${b(w[0].label.replace(",",""))}`}}},legend:{display:!1},htmlLegend:{containerID:"chart-legend",displayElevation:l.value}}})),R=[l6e];function I(){i.value=!i.value}function b(w){return new Date(+w*1e3).toISOString().substr(11,8)}function v(w){r("getCoordinates",w)}function T(){v({latitude:null,longitude:null})}function L(w){return n.authUser.imperial_units?$n[w].defaultTarget:w}return(w,P)=>{const j=ue("Card");return A(),N("div",f6e,[U(j,null,{title:pe(()=>[K(h(w.$t("workouts.ANALYSIS")),1)]),content:pe(()=>[p("div",p6e,[p("label",null,[p("input",{type:"radio",name:"distance",checked:i.value,onClick:I},null,8,m6e),K(" "+h(w.$t("workouts.DISTANCE")),1)]),p("label",null,[p("input",{type:"radio",name:"duration",checked:!i.value,onClick:I},null,8,_6e),K(" "+h(w.$t("workouts.DURATION")),1)])]),E6e,p("div",h6e,[U(E(W3e),{data:m.value,options:g.value,plugins:R,onMouseleave:T},null,8,["data","options"])]),p("div",T6e,[p("div",g6e,h(w.$t("workouts.NO_DATA_CLEANING")),1),l.value?(A(),N("div",A6e,[p("label",null,[p("input",{type:"checkbox",checked:u.value,onClick:P[0]||(P[0]=G=>u.value=!u.value)},null,8,S6e),K(" "+h(w.$t("workouts.START_ELEVATION_AT_ZERO")),1)])])):x("",!0)])]),_:1})])}}});const I6e=se(O6e,[["__scopeId","data-v-1ff321b2"]]),v6e={id:"workout-note"},b6e=["innerHTML"],R6e=Q({__name:"WorkoutNotes",props:{notes:{default:()=>""}},setup(e){const t=e,{notes:n}=Te(t);return(r,a)=>{const s=ue("Card");return A(),N("div",v6e,[U(s,null,{title:pe(()=>[K(h(r.$t("workouts.NOTES")),1)]),content:pe(()=>[p("span",{innerHTML:E(n)&&E(n)!==""?E(Po)(E(n)):r.$t("workouts.NO_NOTES")},null,8,b6e)]),_:1})])}}});const N6e=se(R6e,[["__scopeId","data-v-f3e81eff"]]),y6e={id:"workout-segments"},C6e=Q({__name:"WorkoutSegments",props:{segments:{},useImperialUnits:{type:Boolean}},setup(e){const t=e,{segments:n,useImperialUnits:r}=Te(t);return(a,s)=>{const o=ue("router-link"),i=ue("Distance"),u=ue("Card");return A(),N("div",y6e,[U(u,null,{title:pe(()=>[K(h(a.$t("workouts.SEGMENT",2)),1)]),content:pe(()=>[p("ul",null,[(A(!0),N(ve,null,ze(E(n),(c,l)=>(A(),N("li",{key:c.segment_id},[U(o,{to:{name:"WorkoutSegment",params:{workoutId:c.workout_id,segmentId:l+1}}},{default:pe(()=>[K(h(a.$t("workouts.SEGMENT",1))+" "+h(l+1),1)]),_:2},1032,["to"]),K(" ("+h(a.$t("workouts.DISTANCE"))+": ",1),U(i,{distance:c.distance,unitFrom:"km",useImperialUnits:E(r)},null,8,["distance","useImperialUnits"]),K(", "+h(a.$t("workouts.DURATION"))+": "+h(c.duration)+") ",1)]))),128))])]),_:1})])}}});const D6e=se(C6e,[["__scopeId","data-v-15725c61"]]),P6e=e=>(ut("data-v-eac6aa4b"),e=e(),ct(),e),w6e={id:"workout",class:"view"},L6e={class:"container"},$6e={key:0,class:"workout-container"},k6e={key:0},U6e=P6e(()=>p("div",{id:"bottom"},null,-1)),M6e={key:1},x6e=Q({__name:"Workout",props:{displaySegment:{type:Boolean}},setup(e){const t=e,n=Kt(),r=Me(),{displaySegment:a}=Te(t),s=$(()=>r.getters[ge.GETTERS.WORKOUT_DATA]),o=$(()=>r.getters[Y.GETTERS.AUTH_USER_PROFILE]),i=$(()=>r.getters[Mt.GETTERS.SPORTS]),u=le({latitude:null,longitude:null});bt(()=>{const l={workoutId:n.params.workoutId};t.displaySegment&&(l.segmentId=n.params.segmentId),r.dispatch(ge.ACTIONS.GET_WORKOUT_DATA,l)}),Rt(()=>{r.commit(ge.MUTATIONS.EMPTY_WORKOUT)});function c(l){u.value={latitude:l.latitude,longitude:l.longitude}}return Be(()=>n.params.workoutId,async l=>{l&&r.dispatch(ge.ACTIONS.GET_WORKOUT_DATA,{workoutId:l})}),Be(()=>n.params.segmentId,async l=>{if(n.params.workoutId){const f={workoutId:n.params.workoutId};l&&(f.segmentId=l),r.dispatch(ge.ACTIONS.GET_WORKOUT_DATA,f)}}),(l,f)=>(A(),N("div",w6e,[p("div",L6e,[i.value.length>0?(A(),N("div",$6e,[s.value.workout.id?(A(),N("div",k6e,[U(u6e,{workoutData:s.value,sports:i.value,authUser:o.value,markerCoordinates:u.value,displaySegment:E(a)},null,8,["workoutData","sports","authUser","markerCoordinates","displaySegment"]),s.value.workout.with_gpx&&s.value.chartData.length>0?(A(),re(I6e,{key:0,workoutData:s.value,authUser:o.value,displaySegment:E(a),onGetCoordinates:c},null,8,["workoutData","authUser","displaySegment"])):x("",!0),!E(a)&&s.value.workout.segments.length>1?(A(),re(D6e,{key:1,segments:s.value.workout.segments,useImperialUnits:o.value.imperial_units},null,8,["segments","useImperialUnits"])):x("",!0),E(a)?x("",!0):(A(),re(N6e,{key:2,notes:s.value.workout.notes},null,8,["notes"])),U6e])):(A(),N("div",M6e,[s.value.loading?x("",!0):(A(),re(i0,{key:0,target:"WORKOUT"}))]))])):x("",!0)])]))}});const mE=se(x6e,[["__scopeId","data-v-eac6aa4b"]]),F6e=e=>(ut("data-v-29caaf8f"),e=e(),ct(),e),W6e={class:"workouts-filters"},G6e={class:"box"},z6e=["onSubmit"],B6e={class:"form-all-items"},H6e={class:"form-items-group"},j6e={class:"form-item"},V6e=["value"],K6e={class:"form-item"},Y6e=["value"],q6e={class:"form-items-group"},X6e={class:"form-item"},Z6e=["value","onKeyup"],Q6e=F6e(()=>p("option",{value:""},null,-1)),J6e=["value"],eLe={class:"form-item form-item-title"},tLe={class:"form-inputs-group"},nLe=["value","onKeyup"],rLe={class:"form-items-group"},aLe={class:"form-item"},sLe={class:"form-inputs-group"},oLe=["value","onKeyup"],iLe=["value","onKeyup"],uLe={class:"form-items-group"},cLe={class:"form-item"},lLe={class:"form-inputs-group"},dLe=["value","onKeyup"],fLe=["value","onKeyup"],pLe={class:"form-items-group"},mLe={class:"form-item"},_Le={class:"form-inputs-group"},ELe=["value","onKeyup"],hLe=["value","onKeyup"],TLe={class:"form-items-group"},gLe={class:"form-item"},ALe={class:"form-inputs-group"},SLe=["value","onKeyup"],OLe=["value","onKeyup"],ILe={class:"form-button"},vLe=Q({__name:"WorkoutsFilters",props:{authUser:{},sports:{}},emits:["filter"],setup(e,{emit:t}){const n=e,r=t,{t:a}=Vt(),s=Kt(),o=Kr(),{authUser:i}=Te(n),u=i.value.imperial_units?$n.km.defaultTarget:"km",c=$(()=>qr(n.sports,a));let l=Object.assign({},s.query);St(()=>{const _=document.getElementById("from");_&&_.focus()});function f(_){const g=_.target.name,R=_.target.value;R===""?delete l[g]:l[g]=R}function d(){r("filter"),"page"in l&&(l.page="1"),o.push({path:"/workouts",query:l})}function m(){r("filter"),o.push({path:"/workouts",query:{}})}return Be(()=>s.query,_=>{l=Object.assign({},_)}),(_,g)=>(A(),N("div",W6e,[p("div",G6e,[p("form",{onSubmit:Ze(d,["prevent"]),class:"form"},[p("div",B6e,[p("div",H6e,[p("div",j6e,[p("label",null,h(_.$t("workouts.FROM"))+": ",1),p("input",{id:"from",name:"from",type:"date",value:_.$route.query.from,onChange:f},null,40,V6e)]),p("div",K6e,[p("label",null,h(_.$t("workouts.TO"))+": ",1),p("input",{name:"to",type:"date",value:_.$route.query.to,onChange:f},null,40,Y6e)])]),p("div",q6e,[p("div",X6e,[p("label",null,h(_.$t("workouts.SPORT",1))+":",1),p("select",{name:"sport_id",value:_.$route.query.sport_id,onChange:f,onKeyup:Ot(d,["enter"])},[Q6e,(A(!0),N(ve,null,ze(c.value.filter(R=>E(i).sports_list.includes(R.id)),R=>(A(),N("option",{value:R.id,key:R.id},h(R.translatedLabel),9,J6e))),128))],40,Z6e)]),p("div",eLe,[p("label",null,h(_.$t("workouts.TITLE",1))+":",1),p("div",tLe,[p("input",{class:"title",name:"title",value:_.$route.query.title,onChange:f,placeholder:"",type:"text",onKeyup:Ot(d,["enter"])},null,40,nLe)])])]),p("div",rLe,[p("div",aLe,[p("label",null,h(_.$t("workouts.DISTANCE"))+" ("+h(E(u))+"): ",1),p("div",sLe,[p("input",{name:"distance_from",type:"number",min:"0",step:"0.1",value:_.$route.query.distance_from,onChange:f,onKeyup:Ot(d,["enter"])},null,40,oLe),p("span",null,h(_.$t("workouts.TO")),1),p("input",{name:"distance_to",type:"number",min:"0",step:"0.1",value:_.$route.query.distance_to,onChange:f,onKeyup:Ot(d,["enter"])},null,40,iLe)])])]),p("div",uLe,[p("div",cLe,[p("label",null,h(_.$t("workouts.DURATION"))+": ",1),p("div",lLe,[p("input",{name:"duration_from",value:_.$route.query.duration_from,onChange:f,pattern:"^([0-9]*[0-9]):([0-5][0-9])$",placeholder:"hh:mm",type:"text",onKeyup:Ot(d,["enter"])},null,40,dLe),p("span",null,h(_.$t("workouts.TO")),1),p("input",{name:"duration_to",value:_.$route.query.duration_to,onChange:f,pattern:"^([0-9]*[0-9]):([0-5][0-9])$",placeholder:"hh:mm",type:"text",onKeyup:Ot(d,["enter"])},null,40,fLe)])])]),p("div",pLe,[p("div",mLe,[p("label",null,h(_.$t("workouts.AVE_SPEED"))+" ("+h(E(u))+"/h): ",1),p("div",_Le,[p("input",{min:"0",name:"ave_speed_from",value:_.$route.query.ave_speed_from,onChange:f,step:"0.1",type:"number",onKeyup:Ot(d,["enter"])},null,40,ELe),p("span",null,h(_.$t("workouts.TO")),1),p("input",{min:"0",name:"ave_speed_to",value:_.$route.query.ave_speed_to,onChange:f,step:"0.1",type:"number",onKeyup:Ot(d,["enter"])},null,40,hLe)])])]),p("div",TLe,[p("div",gLe,[p("label",null,h(_.$t("workouts.MAX_SPEED"))+" ("+h(E(u))+"/h): ",1),p("div",ALe,[p("input",{min:"0",name:"max_speed_from",value:_.$route.query.max_speed_from,onChange:f,step:"0.1",type:"number",onKeyup:Ot(d,["enter"])},null,40,SLe),p("span",null,h(_.$t("workouts.TO")),1),p("input",{min:"0",name:"max_speed_to",value:_.$route.query.max_speed_to,onChange:f,step:"0.1",type:"number",onKeyup:Ot(d,["enter"])},null,40,OLe)])])])]),p("div",ILe,[p("button",{type:"submit",class:"confirm",onClick:d},h(_.$t("buttons.FILTER")),1),p("button",{class:"confirm",onClick:m},h(_.$t("buttons.CLEAR_FILTER")),1)])],40,z6e)])]))}});const bLe=se(vLe,[["__scopeId","data-v-29caaf8f"]]),YA=e=>(ut("data-v-d21df3d9"),e=e(),ct(),e),RLe={class:"workouts-list"},NLe={class:"total"},yLe={class:"total-label"},CLe={key:0},DLe={key:0,class:"workouts-table responsive-table"},PLe=YA(()=>p("th",{class:"sport-col"},null,-1)),wLe={class:"sport-col"},LLe={class:"cell-heading"},$Le=["onMouseover"],kLe={class:"cell-heading"},ULe={key:0,class:"fa fa-map-o","aria-hidden":"true"},MLe={class:"title"},xLe={class:"workout-date"},FLe={class:"cell-heading"},WLe={class:"text-right"},GLe={class:"cell-heading"},zLe={class:"text-right"},BLe={class:"cell-heading"},HLe={class:"text-right"},jLe={class:"cell-heading"},VLe={class:"text-right"},KLe={class:"cell-heading"},YLe={class:"text-right"},qLe={class:"cell-heading"},XLe={class:"text-right"},ZLe={class:"cell-heading"},QLe=YA(()=>p("div",{id:"bottom"},null,-1)),JLe=Q({__name:"WorkoutsList",props:{user:{},sports:{}},setup(e){const t=e,n=Me(),r=Kt(),a=Kr(),{user:s,sports:o}=Te(t),i=["ave_speed","distance","duration","workout_date"],u=$(()=>n.getters[ge.GETTERS.USER_WORKOUTS]),c=$(()=>n.getters[ge.GETTERS.WORKOUTS_PAGINATION]),l=$(()=>n.getters[V.GETTERS.LANGUAGE]);let f=g(r.query);const d=le(null);bt(()=>{m(f)});function m(b){n.dispatch(ge.ACTIONS.GET_USER_WORKOUTS,s.value.imperial_units?R(b):b)}function _(b,v){const T=Object.assign({},r.query);T[b]=v,b==="per_page"&&(T.page="1"),f=g(T),a.push({path:"/workouts",query:f})}function g(b){const v=Nd(b,i,Lo.order_by,{defaultSort:Lo.order});return Object.keys(b).filter(T=>Uge.includes(T)).map(T=>{typeof b[T]=="string"&&(v[T]=b[T])}),v}function R(b){const v={...b};return Object.entries(v).map(T=>{T[0].match("speed|distance")&&T[1]&&(v[T[0]]=on(+T[1],"mi","km"))}),v}function I(b){d.value=b}return Be(()=>r.query,async b=>{f=g(b),m(f)}),(b,v)=>{const T=ue("SportImage"),L=ue("router-link"),w=ue("Distance");return A(),N("div",RLe,[p("div",{class:Ae(["box",{"empty-table":u.value.length===0}])},[p("div",NLe,[p("span",yLe,h(b.$t("common.TOTAL").toLowerCase())+": ",1),c.value.total?(A(),N("span",CLe,h(c.value.total)+" "+h(b.$t("workouts.WORKOUT",c.value.total)),1)):x("",!0)]),U(zg,{sort:E(r0),order_by:i,query:E(f),message:"workouts",onUpdateSelect:_},null,8,["sort","query"]),u.value.length>0?(A(),N("div",DLe,[U($u,{class:"top-pagination",pagination:c.value,path:"/workouts",query:E(f)},null,8,["pagination","query"]),p("table",null,[p("thead",{class:Ae({smaller:l.value==="de"})},[p("tr",null,[PLe,p("th",null,h(gt(b.$t("workouts.WORKOUT",1))),1),p("th",null,h(gt(b.$t("workouts.DATE"))),1),p("th",null,h(gt(b.$t("workouts.DISTANCE"))),1),p("th",null,h(gt(b.$t("workouts.DURATION"))),1),p("th",null,h(gt(b.$t("workouts.AVE_SPEED"))),1),p("th",null,h(gt(b.$t("workouts.MAX_SPEED"))),1),p("th",null,h(gt(b.$t("workouts.ASCENT"))),1),p("th",null,h(gt(b.$t("workouts.DESCENT"))),1)])],2),p("tbody",null,[(A(!0),N(ve,null,ze(u.value,P=>(A(),N("tr",{key:P.id},[p("td",wLe,[p("span",LLe,h(b.$t("workouts.SPORT",1)),1),E(o).length>0?(A(),re(T,{key:0,title:E(o).filter(j=>j.id===P.sport_id)[0].translatedLabel,"sport-label":E(t0)(P,E(o)),color:E(n0)(P,E(o))},null,8,["title","sport-label","color"])):x("",!0)]),p("td",{class:"workout-title",onMouseover:j=>I(P.id),onMouseleave:v[0]||(v[0]=j=>I(null))},[p("span",kLe,h(gt(b.$t("workouts.WORKOUT",1))),1),U(L,{class:"nav-item",to:{name:"Workout",params:{workoutId:P.id}}},{default:pe(()=>[P.with_gpx?(A(),N("i",ULe)):x("",!0),p("span",MLe,h(P.title),1)]),_:2},1032,["to"]),P.with_gpx&&d.value===P.id?(A(),re(EA,{key:0,workout:P,"display-hover":!0},null,8,["workout"])):x("",!0)],40,$Le),p("td",xLe,[p("span",FLe,h(b.$t("workouts.DATE")),1),p("time",null,h(E(xn)(P.workout_date,E(s).timezone,E(s).date_format)),1)]),p("td",WLe,[p("span",GLe,h(b.$t("workouts.DISTANCE")),1),P.distance!==null?(A(),re(w,{key:0,distance:P.distance,unitFrom:"km",useImperialUnits:E(s).imperial_units},null,8,["distance","useImperialUnits"])):x("",!0)]),p("td",zLe,[p("span",BLe,h(b.$t("workouts.DURATION")),1),K(" "+h(P.moving),1)]),p("td",HLe,[p("span",jLe,h(b.$t("workouts.AVE_SPEED")),1),P.ave_speed!==null?(A(),re(w,{key:0,distance:P.ave_speed,unitFrom:"km",speed:!0,useImperialUnits:E(s).imperial_units},null,8,["distance","useImperialUnits"])):x("",!0)]),p("td",VLe,[p("span",KLe,h(b.$t("workouts.MAX_SPEED")),1),P.max_speed!==null?(A(),re(w,{key:0,distance:P.max_speed,unitFrom:"km",speed:!0,useImperialUnits:E(s).imperial_units},null,8,["distance","useImperialUnits"])):x("",!0)]),p("td",YLe,[p("span",qLe,h(b.$t("workouts.ASCENT")),1),P.ascent!==null?(A(),re(w,{key:0,distance:P.ascent,unitFrom:"m",useImperialUnits:E(s).imperial_units},null,8,["distance","useImperialUnits"])):x("",!0)]),p("td",XLe,[p("span",ZLe,h(b.$t("workouts.DESCENT")),1),P.descent!==null?(A(),re(w,{key:0,distance:P.descent,unitFrom:"m",useImperialUnits:E(s).imperial_units},null,8,["distance","useImperialUnits"])):x("",!0)])]))),128))])]),U($u,{pagination:c.value,path:"/workouts",query:E(f)},null,8,["pagination","query"])])):x("",!0)],2),u.value.length===0?(A(),re(c0,{key:0})):x("",!0),QLe])}}});const e$e=se(JLe,[["__scopeId","data-v-d21df3d9"]]),t$e={key:0,id:"workouts",class:"view"},n$e={class:"container workouts-container"},r$e={class:"display-filters"},a$e={class:"list-container"},s$e=Q({__name:"WorkoutsView",setup(e){const{t}=Vt(),n=Me(),r=$(()=>n.getters[Y.GETTERS.AUTH_USER_PROFILE]),a=$(()=>n.getters[Mt.GETTERS.SPORTS]),s=$(()=>qr(a.value,t)),o=le(!0);function i(){o.value=!o.value}return(u,c)=>r.value.username?(A(),N("div",t$e,[p("div",n$e,[p("div",{class:Ae(["filters-container",{hidden:o.value}])},[U(bLe,{sports:s.value,authUser:r.value,onFilter:i},null,8,["sports","authUser"])],2),p("div",r$e,[p("div",{onClick:i},[p("i",{class:Ae(`fa fa-caret-${o.value?"down":"up"}`),"aria-hidden":"true"},null,2),p("span",null,h(u.$t(`workouts.${o.value?"DISPLAY":"HIDE"}_FILTERS`)),1)])]),p("div",a$e,[U(e$e,{user:r.value,sports:s.value},null,8,["user","sports"])])])])):x("",!0)}});const o$e=se(s$e,[["__scopeId","data-v-3fa59b88"]]),{t:_E}=Aa.global,EE=e=>{const t=/(\/profile)(\/edit)*(\/*)/,n=e.replace(t,"").toUpperCase();return n===""?"PROFILE":n.toUpperCase()},i$e=[{path:"/",name:"Dashboard",component:aCe,meta:{title:"dashboard.DASHBOARD"}},{path:"/login",name:"Login",component:aE,props:{action:"login"},meta:{title:"user.LOGIN",withoutAuth:!0}},{path:"/register",name:"Register",component:aE,props:{action:"register"},meta:{title:"user.REGISTER",withoutAuth:!0}},{path:"/account-confirmation",name:"AccountConfirmation",component:EDe,meta:{title:"user.ACCOUNT_CONFIRMATION",withoutAuth:!0}},{path:"/account-confirmation/resend",name:"AccountConfirmationResend",component:rE,props:{action:"account-confirmation-resend"},meta:{title:"buttons.ACCOUNT-CONFIRMATION-RESEND",withoutAuth:!0}},{path:"/account-confirmation/email-sent",name:"AccountConfirmationEmailSend",component:rE,props:{action:"email-sent"},meta:{title:"buttons.ACCOUNT-CONFIRMATION-RESEND",withoutAuth:!0}},{path:"/password-reset/sent",name:"PasswordEmailSent",component:()=>Ni,props:{action:"request-sent"},meta:{title:"user.PASSWORD_RESET",withoutAuth:!0}},{path:"/password-reset/request",name:"PasswordResetRequest",component:Ni,props:{action:"reset-request"},meta:{title:"user.PASSWORD_RESET",withoutAuth:!0}},{path:"/password-reset/password-updated",name:"PasswordUpdated",component:Ni,props:{action:"password-updated"},meta:{title:"user.PASSWORD_RESET",withoutAuth:!0}},{path:"/password-reset",name:"PasswordReset",component:Ni,props:{action:"reset"},meta:{title:"user.PASSWORD_RESET",withoutAuth:!0}},{path:"/email-update",name:"EmailUpdate",component:ADe,meta:{title:"user.EMAIL_UPDATE",withoutChecks:!0}},{path:"/profile",name:"Profile",component:KDe,children:[{path:"",name:"UserProfile",component:dSe,props:e=>({tab:EE(e.path)}),children:[{path:"",name:"UserInfos",component:Qg,meta:{title:"user.PROFILE.TABS.PROFILE"}},{path:"preferences",name:"UserPreferences",component:kSe,meta:{title:"user.PROFILE.TABS.PREFERENCES"}},{path:"sports",name:"UserSportPreferences",component:Y_,props:{isEdition:!1},meta:{title:"user.PROFILE.TABS.SPORTS"}},{path:"apps",name:"UserApps",component:Bbe,children:[{path:"",name:"UserAppsList",component:cRe,meta:{title:"user.PROFILE.TABS.APPS"}},{path:":id",name:"UserApp",component:K_,meta:{title:"user.PROFILE.TABS.APPS"}},{path:":id/created",name:"CreatedUserApp",component:K_,props:{afterCreation:!0},meta:{title:"user.PROFILE.TABS.APPS"}},{path:"new",name:"AddUserApp",component:Dbe,meta:{title:"user.PROFILE.TABS.APPS"}},{path:"authorize",name:"AuthorizeUserApp",component:Gbe,meta:{title:"user.PROFILE.TABS.APPS"}}]}]},{path:"edit",name:"UserProfileEdition",component:MSe,props:e=>({tab:EE(e.path)}),children:[{path:"",name:"UserInfosEdition",component:Fve,meta:{title:"user.PROFILE.EDIT"}},{path:"account",name:"UserAccountEdition",component:Ove,meta:{title:"user.PROFILE.ACCOUNT_EDITION"}},{path:"picture",name:"UserPictureEdition",component:Xve,meta:{title:"user.PROFILE.PICTURE_EDITION"}},{path:"preferences",name:"UserPreferencesEdition",component:V2e,meta:{title:"user.PROFILE.EDIT_PREFERENCES"}},{path:"sports",name:"UserSportPreferencesEdition",component:Y_,props:{isEdition:!0},meta:{title:"user.PROFILE.EDIT_SPORTS_PREFERENCES"}},{path:"privacy-policy",name:"UserPrivacyPolicy",component:obe,meta:{title:"user.PROFILE.PRIVACY-POLICY_EDITION"}}]}]},{path:"/statistics",name:"Statistics",component:$Ce,meta:{title:"statistics.STATISTICS"}},{path:"/users/:username",name:"User",component:sE,meta:{title:"administration.USER"}},{path:"/workouts",name:"Workouts",component:o$e,meta:{title:"workouts.WORKOUT",count:0}},{path:"/workouts/:workoutId",name:"Workout",component:mE,props:{displaySegment:!1},meta:{title:"workouts.WORKOUT"}},{path:"/workouts/:workoutId/edit",name:"EditWorkout",component:B4e,meta:{title:"workouts.EDIT_WORKOUT"}},{path:"/workouts/:workoutId/segment/:segmentId",name:"WorkoutSegment",component:mE,props:{displaySegment:!0},meta:{title:"workouts.SEGMENT",count:0}},{path:"/workouts/add",name:"AddWorkout",component:W4e,meta:{title:"workouts.ADD_WORKOUT"}},{path:"/admin",name:"Administration",component:SNe,children:[{path:"",name:"AdministrationMenu",component:rge,meta:{title:"admin.ADMINISTRATION"}},{path:"application",name:"ApplicationAdministration",component:v_,meta:{title:"admin.APP_CONFIG.TITLE"}},{path:"application/edit",name:"ApplicationAdministrationEdition",component:v_,props:{edition:!0},meta:{title:"admin.APPLICATION"}},{path:"sports",name:"SportsAdministration",component:Rge,meta:{title:"admin.SPORTS.TITLE"}},{path:"users/:username",name:"UserFromAdmin",component:sE,props:{fromAdmin:!0},meta:{title:"admin.USER",count:1}},{path:"users",name:"UsersAdministration",component:HAe,meta:{title:"admin.USERS.TITLE"}}]},{path:"/about",name:"About",component:dNe,meta:{title:"common.ABOUT",withoutChecks:!0}},{path:"/privacy-policy",name:"PrivacyPolicy",component:lCe,meta:{title:"privacy_policy.TITLE",withoutChecks:!0}},{path:"/:pathMatch(.*)*",name:"not-found",component:oCe,meta:{title:"error.NOT_FOUND.PAGE"}}],qA=x0e({history:e0e("/"),routes:i$e});qA.beforeEach((e,t,n)=>{if("title"in e.meta){const r=typeof e.meta.title=="string"?e.meta.title:"",a=r?typeof e.meta.count=="number"?_E(r,+e.meta.count):_E(r):"";window.document.title=`FitTrackee${r?` - ${gt(a)}`:""}`}io.dispatch(Y.ACTIONS.CHECK_AUTH_USER).then(()=>{if(e.meta.withoutChecks)return n();if(io.getters[Y.GETTERS.IS_AUTHENTICATED]&&e.meta.withoutAuth)return n("/");if(!io.getters[Y.GETTERS.IS_AUTHENTICATED]&&!e.meta.withoutAuth){const r=e.path==="/"?{path:"/login"}:{path:"/login",query:{from:e.fullPath}};n(r)}else n()}).catch(r=>{console.error(r),n()})});const Tt=qA;kd.register(ZA,QA,JA,eS,tS,nS,rS,hE,aS,TE,sS,oS);const XA=CI(Tfe).provide("sportColors",e0).use(Aa).use(io).use(Tt).use(m2,{name:"VFullscreen"}).directive("click-outside",i_e);o_e.forEach(e=>{XA.component(e.name,e.target)});XA.mount("#app");