diff --git a/fittrackee/dist/index.html b/fittrackee/dist/index.html index 1aadd23fd..f82fc0efe 100644 --- a/fittrackee/dist/index.html +++ b/fittrackee/dist/index.html @@ -7,11 +7,11 @@
оборудване
auth
потребители
тренировки
'+(a?o:_a(o,!0))+`
"+(a?o:_a(o,!0))+`
@@ -291,16 +291,16 @@ ${t} `}tablecell(t){const n=this.parser.parseInline(t.tokens),a=t.header?"th":"td";return(t.align?`<${a} align="${t.align}">`:`<${a}>`)+n+`${a}> `}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${_a(t,!0)}`}br(t){return""}del({tokens:t}){return`${this.parser.parseInline(t)}`}link({href:t,title:n,tokens:a}){const s=this.parser.parseInline(a),o=nf(t);if(o===null)return s;t=o;let i='"+s+"",i}image({href:t,title:n,text:a}){const s=nf(t);if(s===null)return _a(a);t=s;let o=`",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:_a(t.text)}}class Lp{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class Kn{constructor(t){Nt(this,"options");Nt(this,"renderer");Nt(this,"textRenderer");this.options=t||Hs,this.options.renderer=this.options.renderer||new ju,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Lp}static parse(t,n){return new Kn(n).parse(t)}static parseInline(t,n){return new Kn(n).parseInline(t)}parse(t,n=!0){var s,o;let a="";for(let i=0;i{const l=r[u].flat(1/0);a=a.concat(this.walkTokens(l,n))}):r.tokens&&(a=a.concat(this.walkTokens(r.tokens,n)))}}return a}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(a=>{const s={...a};if(s.async=this.defaults.async||s.async||!1,a.extensions&&(a.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const i=n.renderers[o.name];i?n.renderers[o.name]=function(...r){let u=o.renderer.apply(this,r);return u===!1&&(u=i.apply(this,r)),u}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const i=n[o.level];i?i.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),s.extensions=n),a.renderer){const o=this.defaults.renderer||new ju(this.defaults);for(const i in a.renderer){if(!(i in o))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;const r=i,u=a.renderer[r],l=o[r];o[r]=(...d)=>{let E=u.apply(o,d);return E===!1&&(E=l.apply(o,d)),E||""}}s.renderer=o}if(a.tokenizer){const o=this.defaults.tokenizer||new qu(this.defaults);for(const i in a.tokenizer){if(!(i in o))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const r=i,u=a.tokenizer[r],l=o[r];o[r]=(...d)=>{let E=u.apply(o,d);return E===!1&&(E=l.apply(o,d)),E}}s.tokenizer=o}if(a.hooks){const o=this.defaults.hooks||new gi;for(const i in a.hooks){if(!(i in o))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;const r=i,u=a.hooks[r],l=o[r];gi.passThroughHooks.has(i)?o[r]=d=>{if(this.defaults.async)return Promise.resolve(u.call(o,d)).then(c=>l.call(o,c));const E=u.call(o,d);return l.call(o,E)}:o[r]=(...d)=>{let E=u.apply(o,d);return E===!1&&(E=l.apply(o,d)),E}}s.hooks=o}if(a.walkTokens){const o=this.defaults.walkTokens,i=a.walkTokens;s.walkTokens=function(r){let u=[];return u.push(i.call(this,r)),o&&(u=u.concat(o.call(this,r))),u}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Hn.lex(t,n??this.defaults)}parser(t,n){return Kn.parse(t,n??this.defaults)}parseMarkdown(t){return(a,s)=>{const o={...s},i={...this.defaults,...o},r=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&o.async===!1)return r(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof a>"u"||a===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=t);const u=i.hooks?i.hooks.provideLexer():t?Hn.lex:Hn.lexInline,l=i.hooks?i.hooks.provideParser():t?Kn.parse:Kn.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(a):a).then(d=>u(d,i)).then(d=>i.hooks?i.hooks.processAllTokens(d):d).then(d=>i.walkTokens?Promise.all(this.walkTokens(d,i.walkTokens)).then(()=>d):d).then(d=>l(d,i)).then(d=>i.hooks?i.hooks.postprocess(d):d).catch(r);try{i.hooks&&(a=i.hooks.preprocess(a));let d=u(a,i);i.hooks&&(d=i.hooks.processAllTokens(d)),i.walkTokens&&this.walkTokens(d,i.walkTokens);let E=l(d,i);return i.hooks&&(E=i.hooks.postprocess(E)),E}catch(d){return r(d)}}}onError(t,n){return a=>{if(a.message+=` -Please report this to https://github.com/markedjs/marked.`,t){const s="An error occurred:"+_a(a.message+"",!0)+"";return n?Promise.resolve(s):s}if(n)return Promise.reject(a);throw a}}}const xs=new yVe;function At(e,t){return xs.parse(e,t)}At.options=At.setOptions=function(e){return xs.setOptions(e),At.defaults=xs.defaults,aO(At.defaults),At};At.getDefaults=Rp;At.defaults=Hs;At.use=function(...e){return xs.use(...e),At.defaults=xs.defaults,aO(At.defaults),At};At.walkTokens=function(e,t){return xs.walkTokens(e,t)};At.parseInline=xs.parseInline;At.Parser=Kn;At.parser=Kn.parse;At.Renderer=ju;At.TextRenderer=Lp;At.Lexer=Hn;At.lexer=Hn.lex;At.Tokenizer=qu;At.Hooks=gi;At.parse=At;At.options;At.setOptions;At.use;At.walkTokens;At.parseInline;Kn.parse;Hn.lex;var Rs={},Xa={},bc={},Ns={},Cr={},of;function $Ve(){return of||(of=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾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)}))),Cr}var Pr={},rf;function UVe(){return rf||(rf=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}))),Pr}var Cc={},uf;function lf(){return uf||(uf=1,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(o){var i="";return o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),i};function a(o){var i;return o>=55296&&o<=57343||o>1114111?65533:(i=n.get(o))!==null&&i!==void 0?i:o}e.replaceCodePoint=a;function s(o){return(0,e.fromCodePoint)(a(o))}e.default=s}(Cc)),Cc}var cf;function Yu(){return cf||(cf=1,function(e){var t=Ns.__createBinding||(Object.create?function(P,W,Q,Se){Se===void 0&&(Se=Q);var J=Object.getOwnPropertyDescriptor(W,Q);(!J||("get"in J?!W.__esModule:J.writable||J.configurable))&&(J={enumerable:!0,get:function(){return W[Q]}}),Object.defineProperty(P,Se,J)}:function(P,W,Q,Se){Se===void 0&&(Se=Q),P[Se]=W[Q]}),n=Ns.__setModuleDefault||(Object.create?function(P,W){Object.defineProperty(P,"default",{enumerable:!0,value:W})}:function(P,W){P.default=W}),a=Ns.__importStar||function(P){if(P&&P.__esModule)return P;var W={};if(P!=null)for(var Q in P)Q!=="default"&&Object.prototype.hasOwnProperty.call(P,Q)&&t(W,P,Q);return n(W,P),W},s=Ns.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};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 o=s($Ve());e.htmlDecodeTree=o.default;var i=s(UVe());e.xmlDecodeTree=i.default;var r=a(lf());e.decodeCodePoint=r.default;var u=lf();Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var l;(function(P){P[P.NUM=35]="NUM",P[P.SEMI=59]="SEMI",P[P.EQUALS=61]="EQUALS",P[P.ZERO=48]="ZERO",P[P.NINE=57]="NINE",P[P.LOWER_A=97]="LOWER_A",P[P.LOWER_F=102]="LOWER_F",P[P.LOWER_X=120]="LOWER_X",P[P.LOWER_Z=122]="LOWER_Z",P[P.UPPER_A=65]="UPPER_A",P[P.UPPER_F=70]="UPPER_F",P[P.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var d=32,E;(function(P){P[P.VALUE_LENGTH=49152]="VALUE_LENGTH",P[P.BRANCH_LENGTH=16256]="BRANCH_LENGTH",P[P.JUMP_TABLE=127]="JUMP_TABLE"})(E=e.BinTrieFlags||(e.BinTrieFlags={}));function c(P){return P>=l.ZERO&&P<=l.NINE}function m(P){return P>=l.UPPER_A&&P<=l.UPPER_F||P>=l.LOWER_A&&P<=l.LOWER_F}function _(P){return P>=l.UPPER_A&&P<=l.UPPER_Z||P>=l.LOWER_A&&P<=l.LOWER_Z||c(P)}function h(P){return P===l.EQUALS||_(P)}var O;(function(P){P[P.EntityStart=0]="EntityStart",P[P.NumericStart=1]="NumericStart",P[P.NumericDecimal=2]="NumericDecimal",P[P.NumericHex=3]="NumericHex",P[P.NamedEntity=4]="NamedEntity"})(O||(O={}));var A;(function(P){P[P.Legacy=0]="Legacy",P[P.Strict=1]="Strict",P[P.Attribute=2]="Attribute"})(A=e.DecodingMode||(e.DecodingMode={}));var R=function(){function P(W,Q,Se){this.decodeTree=W,this.emitCodePoint=Q,this.errors=Se,this.state=O.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=A.Strict}return P.prototype.startEntity=function(W){this.decodeMode=W,this.state=O.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},P.prototype.write=function(W,Q){switch(this.state){case O.EntityStart:return W.charCodeAt(Q)===l.NUM?(this.state=O.NumericStart,this.consumed+=1,this.stateNumericStart(W,Q+1)):(this.state=O.NamedEntity,this.stateNamedEntity(W,Q));case O.NumericStart:return this.stateNumericStart(W,Q);case O.NumericDecimal:return this.stateNumericDecimal(W,Q);case O.NumericHex:return this.stateNumericHex(W,Q);case O.NamedEntity:return this.stateNamedEntity(W,Q)}},P.prototype.stateNumericStart=function(W,Q){return Q>=W.length?-1:(W.charCodeAt(Q)|d)===l.LOWER_X?(this.state=O.NumericHex,this.consumed+=1,this.stateNumericHex(W,Q+1)):(this.state=O.NumericDecimal,this.stateNumericDecimal(W,Q))},P.prototype.addToNumericResult=function(W,Q,Se,J){if(Q!==Se){var Ee=Se-Q;this.result=this.result*Math.pow(J,Ee)+parseInt(W.substr(Q,Ee),J),this.consumed+=Ee}},P.prototype.stateNumericHex=function(W,Q){for(var Se=Q;Q>14;Q>14,Ee!==0){if(fe===l.SEMI)return this.emitNamedEntityData(this.treeIndex,Ee,this.consumed+this.excess);this.decodeMode!==A.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},P.prototype.emitNotTerminatedNamedEntity=function(){var W,Q=this,Se=Q.result,J=Q.decodeTree,Ee=(J[Se]&E.VALUE_LENGTH)>>14;return this.emitNamedEntityData(Se,Ee,this.consumed),(W=this.errors)===null||W===void 0||W.missingSemicolonAfterCharacterReference(),this.consumed},P.prototype.emitNamedEntityData=function(W,Q,Se){var J=this.decodeTree;return this.emitCodePoint(Q===1?J[W]&~E.VALUE_LENGTH:J[W+1],Se),Q===3&&this.emitCodePoint(J[W+2],Se),Se},P.prototype.end=function(){var W;switch(this.state){case O.NamedEntity:return this.result!==0&&(this.decodeMode!==A.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case O.NumericDecimal:return this.emitNumericEntity(0,2);case O.NumericHex:return this.emitNumericEntity(0,3);case O.NumericStart:return(W=this.errors)===null||W===void 0||W.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case O.EntityStart:return 0}},P}();e.EntityDecoder=R;function g(P){var W="",Q=new R(P,function(Se){return W+=(0,r.fromCodePoint)(Se)});return function(J,Ee){for(var fe=0,Pe=0;(Pe=J.indexOf("&",Pe))>=0;){W+=J.slice(fe,Pe),Q.startEntity(Ee);var He=Q.write(J,Pe+1);if(He<0){fe=Pe+Q.end();break}fe=Pe+He,Pe=He===0?fe+1:fe}var et=W+J.slice(fe);return W="",et}}function I(P,W,Q,Se){var J=(W&E.BRANCH_LENGTH)>>7,Ee=W&E.JUMP_TABLE;if(J===0)return Ee!==0&&Se===Ee?Q:-1;if(Ee){var fe=Se-Ee;return fe<0||fe>=J?-1:P[Q+fe]-1}for(var Pe=Q,He=Pe+J-1;Pe<=He;){var et=Pe+He>>>1,Ve=P[et];if(VeSe)He=et-1;else return P[et+J]}return-1}e.determineBranch=I;var N=g(o.default),b=g(i.default);function C(P,W){return W===void 0&&(W=A.Legacy),N(P,W)}e.decodeHTML=C;function y(P){return N(P,A.Attribute)}e.decodeHTMLAttribute=y;function D(P){return N(P,A.Strict)}e.decodeHTMLStrict=D;function M(P){return b(P,A.Strict)}e.decodeXML=M}(Ns)),Ns}var df;function EO(){return df||(df=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var t=Yu(),n;(function(c){c[c.Tab=9]="Tab",c[c.NewLine=10]="NewLine",c[c.FormFeed=12]="FormFeed",c[c.CarriageReturn=13]="CarriageReturn",c[c.Space=32]="Space",c[c.ExclamationMark=33]="ExclamationMark",c[c.Number=35]="Number",c[c.Amp=38]="Amp",c[c.SingleQuote=39]="SingleQuote",c[c.DoubleQuote=34]="DoubleQuote",c[c.Dash=45]="Dash",c[c.Slash=47]="Slash",c[c.Zero=48]="Zero",c[c.Nine=57]="Nine",c[c.Semi=59]="Semi",c[c.Lt=60]="Lt",c[c.Eq=61]="Eq",c[c.Gt=62]="Gt",c[c.Questionmark=63]="Questionmark",c[c.UpperA=65]="UpperA",c[c.LowerA=97]="LowerA",c[c.UpperF=70]="UpperF",c[c.LowerF=102]="LowerF",c[c.UpperZ=90]="UpperZ",c[c.LowerZ=122]="LowerZ",c[c.LowerX=120]="LowerX",c[c.OpeningSquareBracket=91]="OpeningSquareBracket"})(n||(n={}));var a;(function(c){c[c.Text=1]="Text",c[c.BeforeTagName=2]="BeforeTagName",c[c.InTagName=3]="InTagName",c[c.InSelfClosingTag=4]="InSelfClosingTag",c[c.BeforeClosingTagName=5]="BeforeClosingTagName",c[c.InClosingTagName=6]="InClosingTagName",c[c.AfterClosingTagName=7]="AfterClosingTagName",c[c.BeforeAttributeName=8]="BeforeAttributeName",c[c.InAttributeName=9]="InAttributeName",c[c.AfterAttributeName=10]="AfterAttributeName",c[c.BeforeAttributeValue=11]="BeforeAttributeValue",c[c.InAttributeValueDq=12]="InAttributeValueDq",c[c.InAttributeValueSq=13]="InAttributeValueSq",c[c.InAttributeValueNq=14]="InAttributeValueNq",c[c.BeforeDeclaration=15]="BeforeDeclaration",c[c.InDeclaration=16]="InDeclaration",c[c.InProcessingInstruction=17]="InProcessingInstruction",c[c.BeforeComment=18]="BeforeComment",c[c.CDATASequence=19]="CDATASequence",c[c.InSpecialComment=20]="InSpecialComment",c[c.InCommentLike=21]="InCommentLike",c[c.BeforeSpecialS=22]="BeforeSpecialS",c[c.SpecialStartSequence=23]="SpecialStartSequence",c[c.InSpecialTag=24]="InSpecialTag",c[c.BeforeEntity=25]="BeforeEntity",c[c.BeforeNumericEntity=26]="BeforeNumericEntity",c[c.InNamedEntity=27]="InNamedEntity",c[c.InNumericEntity=28]="InNumericEntity",c[c.InHexEntity=29]="InHexEntity"})(a||(a={}));function s(c){return c===n.Space||c===n.NewLine||c===n.Tab||c===n.FormFeed||c===n.CarriageReturn}function o(c){return c===n.Slash||c===n.Gt||s(c)}function i(c){return c>=n.Zero&&c<=n.Nine}function r(c){return c>=n.LowerA&&c<=n.LowerZ||c>=n.UpperA&&c<=n.UpperZ}function u(c){return c>=n.UpperA&&c<=n.UpperF||c>=n.LowerA&&c<=n.LowerF}var l;(function(c){c[c.NoValue=0]="NoValue",c[c.Unquoted=1]="Unquoted",c[c.Single=2]="Single",c[c.Double=3]="Double"})(l=e.QuoteType||(e.QuoteType={}));var d={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])},E=function(){function c(m,_){var h=m.xmlMode,O=h===void 0?!1:h,A=m.decodeEntities,R=A===void 0?!0:A;this.cbs=_,this.state=a.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=a.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=O,this.decodeEntities=R,this.entityTrie=O?t.xmlDecodeTree:t.htmlDecodeTree}return c.prototype.reset=function(){this.state=a.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=a.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},c.prototype.write=function(m){this.offset+=this.buffer.length,this.buffer=m,this.parse()},c.prototype.end=function(){this.running&&this.finish()},c.prototype.pause=function(){this.running=!1},c.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=a.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&m===n.Amp&&(this.state=a.BeforeEntity)},c.prototype.stateSpecialStartSequence=function(m){var _=this.sequenceIndex===this.currentSequence.length,h=_?o(m):(m|32)===this.currentSequence[this.sequenceIndex];if(!h)this.isSpecial=!1;else if(!_){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=a.InTagName,this.stateInTagName(m)},c.prototype.stateInSpecialTag=function(m){if(this.sequenceIndex===this.currentSequence.length){if(m===n.Gt||s(m)){var _=this.index-this.currentSequence.length;if(this.sectionStart<_){var h=this.index;this.index=_,this.cbs.ontext(this.sectionStart,_),this.index=h}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===d.TitleEnd?this.decodeEntities&&m===n.Amp&&(this.state=a.BeforeEntity):this.fastForwardTo(n.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(m===n.Lt)},c.prototype.stateCDATASequence=function(m){m===d.Cdata[this.sequenceIndex]?++this.sequenceIndex===d.Cdata.length&&(this.state=a.InCommentLike,this.currentSequence=d.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=a.InDeclaration,this.stateInDeclaration(m))},c.prototype.fastForwardTo=function(m){for(;++this.index>14)-1;if(!this.allowLegacyEntity()&&m!==n.Semi)this.trieIndex+=h;else{var O=this.index-this.entityExcess+1;O>this.sectionStart&&this.emitPartial(this.sectionStart,O),this.entityResult=this.trieIndex,this.trieIndex+=h,this.entityExcess=0,this.sectionStart=this.index+1,h===0&&this.emitNamedEntity()}}},c.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])}}},c.prototype.stateBeforeNumericEntity=function(m){(m|32)===n.LowerX?(this.entityExcess++,this.state=a.InHexEntity):(this.state=a.InNumericEntity,this.stateInNumericEntity(m))},c.prototype.emitNumericEntity=function(m){var _=this.index-this.entityExcess-1,h=_+2+ +(this.state===a.InHexEntity);h!==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},c.prototype.stateInNumericEntity=function(m){m===n.Semi?this.emitNumericEntity(!0):i(m)?(this.entityResult=this.entityResult*10+(m-n.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},c.prototype.stateInHexEntity=function(m){m===n.Semi?this.emitNumericEntity(!0):i(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--)},c.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===a.Text||this.baseState===a.InSpecialTag)},c.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===a.Text||this.state===a.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===a.InAttributeValueDq||this.state===a.InAttributeValueSq||this.state===a.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},c.prototype.shouldContinue=function(){return this.index0&&b.has(this.stack[this.stack.length-1]);){var C=this.stack.pop();(g=(R=this.cbs).onclosetag)===null||g===void 0||g.call(R,C,!0)}this.isVoidElement(A)||(this.stack.push(A),c.has(A)?this.foreignContext.push(!0):m.has(A)&&this.foreignContext.push(!1)),(N=(I=this.cbs).onopentagname)===null||N===void 0||N.call(I,A),this.cbs.onopentag&&(this.attribs={})},O.prototype.endOpenTag=function(A){var R,g;this.startIndex=this.openTagStart,this.attribs&&((g=(R=this.cbs).onopentag)===null||g===void 0||g.call(R,this.tagname,this.attribs,A),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},O.prototype.onopentagend=function(A){this.endIndex=A,this.endOpenTag(!1),this.startIndex=A+1},O.prototype.onclosetag=function(A,R){var g,I,N,b,C,y;this.endIndex=R;var D=this.getSlice(A,R);if(this.lowerCaseTagNames&&(D=D.toLowerCase()),(c.has(D)||m.has(D))&&this.foreignContext.pop(),this.isVoidElement(D))!this.options.xmlMode&&D==="br"&&((I=(g=this.cbs).onopentagname)===null||I===void 0||I.call(g,"br"),(b=(N=this.cbs).onopentag)===null||b===void 0||b.call(N,"br",{},!0),(y=(C=this.cbs).onclosetag)===null||y===void 0||y.call(C,"br",!1));else{var M=this.stack.lastIndexOf(D);if(M!==-1)if(this.cbs.onclosetag)for(var P=this.stack.length-M;P--;)this.cbs.onclosetag(this.stack.pop(),P!==0);else this.stack.length=M;else!this.options.xmlMode&&D==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=R+1},O.prototype.onselfclosingtag=function(A){this.endIndex=A,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=A+1):this.onopentagend(A)},O.prototype.closeCurrentTag=function(A){var R,g,I=this.tagname;this.endOpenTag(A),this.stack[this.stack.length-1]===I&&((g=(R=this.cbs).onclosetag)===null||g===void 0||g.call(R,I,!A),this.stack.pop())},O.prototype.onattribname=function(A,R){this.startIndex=A;var g=this.getSlice(A,R);this.attribname=this.lowerCaseAttributeNames?g.toLowerCase():g},O.prototype.onattribdata=function(A,R){this.attribvalue+=this.getSlice(A,R)},O.prototype.onattribentity=function(A){this.attribvalue+=(0,s.fromCodePoint)(A)},O.prototype.onattribend=function(A,R){var g,I;this.endIndex=R,(I=(g=this.cbs).onattribute)===null||I===void 0||I.call(g,this.attribname,this.attribvalue,A===a.QuoteType.Double?'"':A===a.QuoteType.Single?"'":A===a.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},O.prototype.getInstructionName=function(A){var R=A.search(_),g=R<0?A:A.substr(0,R);return this.lowerCaseTagNames&&(g=g.toLowerCase()),g},O.prototype.ondeclaration=function(A,R){this.endIndex=R;var g=this.getSlice(A,R);if(this.cbs.onprocessinginstruction){var I=this.getInstructionName(g);this.cbs.onprocessinginstruction("!".concat(I),"!".concat(g))}this.startIndex=R+1},O.prototype.onprocessinginstruction=function(A,R){this.endIndex=R;var g=this.getSlice(A,R);if(this.cbs.onprocessinginstruction){var I=this.getInstructionName(g);this.cbs.onprocessinginstruction("?".concat(I),"?".concat(g))}this.startIndex=R+1},O.prototype.oncomment=function(A,R,g){var I,N,b,C;this.endIndex=R,(N=(I=this.cbs).oncomment)===null||N===void 0||N.call(I,this.getSlice(A,R-g)),(C=(b=this.cbs).oncommentend)===null||C===void 0||C.call(b),this.startIndex=R+1},O.prototype.oncdata=function(A,R,g){var I,N,b,C,y,D,M,P,W,Q;this.endIndex=R;var Se=this.getSlice(A,R-g);this.options.xmlMode||this.options.recognizeCDATA?((N=(I=this.cbs).oncdatastart)===null||N===void 0||N.call(I),(C=(b=this.cbs).ontext)===null||C===void 0||C.call(b,Se),(D=(y=this.cbs).oncdataend)===null||D===void 0||D.call(y)):((P=(M=this.cbs).oncomment)===null||P===void 0||P.call(M,"[CDATA[".concat(Se,"]]")),(Q=(W=this.cbs).oncommentend)===null||Q===void 0||Q.call(W)),this.startIndex=R+1},O.prototype.onend=function(){var A,R;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var g=this.stack.length;g>0;this.cbs.onclosetag(this.stack[--g],!0));}(R=(A=this.cbs).onend)===null||R===void 0||R.call(A)},O.prototype.reset=function(){var A,R,g,I;(R=(A=this.cbs).onreset)===null||R===void 0||R.call(A),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(I=(g=this.cbs).onparserinit)===null||I===void 0||I.call(g,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},O.prototype.parseComplete=function(A){this.reset(),this.end(A)},O.prototype.getSlice=function(A,R){for(;A-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var g=this.buffers[0].slice(A-this.bufferOffset,R-this.bufferOffset);R-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),g+=this.buffers[0].slice(0,R-this.bufferOffset);return g},O.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},O.prototype.write=function(A){var R,g;if(this.ended){(g=(R=this.cbs).onerror)===null||g===void 0||g.call(R,new Error(".write() after done!"));return}this.buffers.push(A),this.tokenizer.running&&(this.tokenizer.write(A),this.writeIndex++)},O.prototype.end=function(A){var R,g;if(this.ended){(g=(R=this.cbs).onerror)===null||g===void 0||g.call(R,new Error(".end() after done!"));return}A&&this.write(A),this.ended=!0,this.tokenizer.end()},O.prototype.pause=function(){this.tokenizer.pause()},O.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(b.prototype,"childNodes",{get:function(){return this.children},set:function(C){this.children=C},enumerable:!1,configurable:!0}),b}(a);at.NodeWithChildren=u;var l=function(N){e(b,N);function b(){var C=N!==null&&N.apply(this,arguments)||this;return C.type=n.ElementType.CDATA,C}return Object.defineProperty(b.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),b}(u);at.CDATA=l;var d=function(N){e(b,N);function b(){var C=N!==null&&N.apply(this,arguments)||this;return C.type=n.ElementType.Root,C}return Object.defineProperty(b.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),b}(u);at.Document=d;var E=function(N){e(b,N);function b(C,y,D,M){D===void 0&&(D=[]),M===void 0&&(M=C==="script"?n.ElementType.Script:C==="style"?n.ElementType.Style:n.ElementType.Tag);var P=N.call(this,D)||this;return P.name=C,P.attribs=y,P.type=M,P}return Object.defineProperty(b.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"tagName",{get:function(){return this.name},set:function(C){this.name=C},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"attributes",{get:function(){var C=this;return Object.keys(this.attribs).map(function(y){var D,M;return{name:y,value:C.attribs[y],namespace:(D=C["x-attribsNamespace"])===null||D===void 0?void 0:D[y],prefix:(M=C["x-attribsPrefix"])===null||M===void 0?void 0:M[y]}})},enumerable:!1,configurable:!0}),b}(u);at.Element=E;function c(N){return(0,n.isTag)(N)}at.isTag=c;function m(N){return N.type===n.ElementType.CDATA}at.isCDATA=m;function _(N){return N.type===n.ElementType.Text}at.isText=_;function h(N){return N.type===n.ElementType.Comment}at.isComment=h;function O(N){return N.type===n.ElementType.Directive}at.isDirective=O;function A(N){return N.type===n.ElementType.Root}at.isDocument=A;function R(N){return Object.prototype.hasOwnProperty.call(N,"children")}at.hasChildren=R;function g(N,b){b===void 0&&(b=!1);var C;if(_(N))C=new o(N.data);else if(h(N))C=new i(N.data);else if(c(N)){var y=b?I(N.children):[],D=new E(N.name,t({},N.attribs),y);y.forEach(function(Q){return Q.parent=D}),N.namespace!=null&&(D.namespace=N.namespace),N["x-attribsNamespace"]&&(D["x-attribsNamespace"]=t({},N["x-attribsNamespace"])),N["x-attribsPrefix"]&&(D["x-attribsPrefix"]=t({},N["x-attribsPrefix"])),C=D}else if(m(N)){var y=b?I(N.children):[],M=new l(y);y.forEach(function(Se){return Se.parent=M}),C=M}else if(A(N)){var y=b?I(N.children):[],P=new d(y);y.forEach(function(Se){return Se.parent=P}),N["x-mode"]&&(P["x-mode"]=N["x-mode"]),C=P}else if(O(N)){var W=new r(N.name,N.data);N["x-name"]!=null&&(W["x-name"]=N["x-name"],W["x-publicId"]=N["x-publicId"],W["x-systemId"]=N["x-systemId"]),C=W}else throw new Error("Not implemented yet: ".concat(N.type));return C.startIndex=N.startIndex,C.endIndex=N.endIndex,N.sourceCodeLocation!=null&&(C.sourceCodeLocation=N.sourceCodeLocation),C}at.cloneNode=g;function I(N){for(var b=N.map(function(y){return g(y,!0)}),C=1;C$\x80-\uFFFF]/g;var t=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(s,o){return s.codePointAt(o)}:function(s,o){return(s.charCodeAt(o)&64512)===55296?(s.charCodeAt(o)-55296)*1024+s.charCodeAt(o+1)-56320+65536:s.charCodeAt(o)};function n(s){for(var o="",i=0,r;(r=e.xmlReplacer.exec(s))!==null;){var u=r.index,l=s.charCodeAt(u),d=t.get(l);d!==void 0?(o+=s.substring(i,u)+d,i=u+1):(o+="".concat(s.substring(i,u),"").concat((0,e.getCodePoint)(s,u).toString(16),";"),i=e.xmlReplacer.lastIndex+=+((l&64512)===55296))}return o+s.substr(i)}e.encodeXML=n,e.escape=n;function a(s,o){return function(r){for(var u,l=0,d="";u=s.exec(r);)l!==u.index&&(d+=r.substring(l,u.index)),d+=o.get(u[0].charCodeAt(0)),l=u.index+1;return d+r.substring(l)}}e.escapeUTF8=a(/[&<>'"]/g,t),e.escapeAttribute=a(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=a(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))}(Lc)),Lc}var Af;function Of(){if(Af)return Qa;Af=1;var e=Qa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.encodeNonAsciiHTML=Qa.encodeHTML=void 0;var t=e(kVe()),n=fE(),a=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function s(r){return i(a,r)}Qa.encodeHTML=s;function o(r){return i(n.xmlReplacer,r)}Qa.encodeNonAsciiHTML=o;function i(r,u){for(var l="",d=0,E;(E=r.exec(u))!==null;){var c=E.index;l+=u.substring(d,c);var m=u.charCodeAt(c),_=t.default.get(m);if(typeof _=="object"){if(c+1"):(C+=">",I.children.length>0&&(C+=E(I.children,N)),(N.xmlMode||!d.has(I.name))&&(C+="".concat(I.name,">"))),C}function O(I){return"<".concat(I.data,">")}function A(I,N){var b,C=I.data||"";return((b=N.encodeEntities)!==null&&b!==void 0?b:N.decodeEntities)!==!1&&!(!N.xmlMode&&I.parent&&r.has(I.parent.name))&&(C=N.xmlMode||N.encodeEntities!=="utf8"?(0,o.encodeXML)(C):(0,o.escapeText)(C)),C}function R(I){return"")}function g(I){return"")}return ma}var Nf;function pO(){if(Nf)return Rn;Nf=1;var e=Rn.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.innerText=Rn.textContent=Rn.getText=Rn.getInnerHTML=Rn.getOuterHTML=void 0;var t=cs(),n=e(WVe()),a=ur();function s(l,d){return(0,n.default)(l,d)}Rn.getOuterHTML=s;function o(l,d){return(0,t.hasChildren)(l)?l.children.map(function(E){return s(E,d)}).join(""):""}Rn.getInnerHTML=o;function i(l){return Array.isArray(l)?l.map(i).join(""):(0,t.isTag)(l)?l.name==="br"?` -`:i(l.children):(0,t.isCDATA)(l)?i(l.children):(0,t.isText)(l)?l.data:""}Rn.getText=i;function r(l){return Array.isArray(l)?l.map(r).join(""):(0,t.hasChildren)(l)&&!(0,t.isComment)(l)?r(l.children):(0,t.isText)(l)?l.data:""}Rn.textContent=r;function u(l){return Array.isArray(l)?l.map(u).join(""):(0,t.hasChildren)(l)&&(l.type===a.ElementType.Tag||(0,t.isCDATA)(l))?u(l.children):(0,t.isText)(l)?l.data:""}return Rn.innerText=u,Rn}var Vt={},vf;function FVe(){if(vf)return Vt;vf=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.prevElementSibling=Vt.nextElementSibling=Vt.getName=Vt.hasAttrib=Vt.getAttributeValue=Vt.getSiblings=Vt.getParent=Vt.getChildren=void 0;var e=cs();function t(l){return(0,e.hasChildren)(l)?l.children:[]}Vt.getChildren=t;function n(l){return l.parent||null}Vt.getParent=n;function a(l){var d,E,c=n(l);if(c!=null)return t(c);for(var m=[l],_=l.prev,h=l.next;_!=null;)m.unshift(_),d=_,_=d.prev;for(;h!=null;)m.push(h),E=h,h=E.next;return m}Vt.getSiblings=a;function s(l,d){var E;return(E=l.attribs)===null||E===void 0?void 0:E[d]}Vt.getAttributeValue=s;function o(l,d){return l.attribs!=null&&Object.prototype.hasOwnProperty.call(l.attribs,d)&&l.attribs[d]!=null}Vt.hasAttrib=o;function i(l){return l.name}Vt.getName=i;function r(l){for(var d,E=l.next;E!==null&&!(0,e.isTag)(E);)d=E,E=d.next;return E}Vt.nextElementSibling=r;function u(l){for(var d,E=l.prev;E!==null&&!(0,e.isTag)(E);)d=E,E=d.prev;return E}return Vt.prevElementSibling=u,Vt}var dn={},bf;function zVe(){if(bf)return dn;bf=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.prepend=dn.prependChild=dn.append=dn.appendChild=dn.replaceElement=dn.removeElement=void 0;function e(i){if(i.prev&&(i.prev.next=i.next),i.next&&(i.next.prev=i.prev),i.parent){var r=i.parent.children,u=r.lastIndexOf(i);u>=0&&r.splice(u,1)}i.next=null,i.prev=null,i.parent=null}dn.removeElement=e;function t(i,r){var u=r.prev=i.prev;u&&(u.next=r);var l=r.next=i.next;l&&(l.prev=r);var d=r.parent=i.parent;if(d){var E=d.children;E[E.lastIndexOf(i)]=r,i.parent=null}}dn.replaceElement=t;function n(i,r){if(e(r),r.next=null,r.parent=i,i.children.push(r)>1){var u=i.children[i.children.length-2];u.next=r,r.prev=u}else r.prev=null}dn.appendChild=n;function a(i,r){e(r);var u=i.parent,l=i.next;if(r.next=l,r.prev=i,i.next=r,r.parent=u,l){if(l.prev=r,u){var d=u.children;d.splice(d.lastIndexOf(l),0,r)}}else u&&u.children.push(r)}dn.append=a;function s(i,r){if(e(r),r.parent=i,r.prev=null,i.children.unshift(r)!==1){var u=i.children[1];u.prev=r,r.next=u}else r.next=null}dn.prependChild=s;function o(i,r){e(r);var u=i.parent;if(u){var l=u.children;l.splice(l.indexOf(i),0,r)}i.prev&&(i.prev.next=r),r.parent=u,r.prev=i.prev,r.next=i,i.prev=r}return dn.prepend=o,dn}var En={},Cf;function mO(){if(Cf)return En;Cf=1,Object.defineProperty(En,"__esModule",{value:!0}),En.findAll=En.existsOne=En.findOne=En.findOneChild=En.find=En.filter=void 0;var e=cs();function t(r,u,l,d){return l===void 0&&(l=!0),d===void 0&&(d=1/0),n(r,Array.isArray(u)?u:[u],l,d)}En.filter=t;function n(r,u,l,d){for(var E=[],c=[u],m=[0];;){if(m[0]>=c[0].length){if(m.length===1)return E;c.shift(),m.shift();continue}var _=c[0][m[0]++];if(r(_)&&(E.push(_),--d<=0))return E;l&&(0,e.hasChildren)(_)&&_.children.length>0&&(m.unshift(0),c.unshift(_.children))}}En.find=n;function a(r,u){return u.find(r)}En.findOneChild=a;function s(r,u,l){l===void 0&&(l=!0);for(var d=null,E=0;E0&&(d=s(r,c.children,!0));else continue}return d}En.findOne=s;function o(r,u){return u.some(function(l){return(0,e.isTag)(l)&&(r(l)||o(r,l.children))})}En.existsOne=o;function i(r,u){for(var l=[],d=[u],E=[0];;){if(E[0]>=d[0].length){if(d.length===1)return l;d.shift(),E.shift();continue}var c=d[0][E[0]++];(0,e.isTag)(c)&&(r(c)&&l.push(c),c.children.length>0&&(E.unshift(0),d.unshift(c.children)))}}return En.findAll=i,En}var $n={},Pf;function TO(){if(Pf)return $n;Pf=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.getElementsByTagType=$n.getElementsByTagName=$n.getElementById=$n.getElements=$n.testElement=void 0;var e=cs(),t=mO(),n={tag_name:function(E){return typeof E=="function"?function(c){return(0,e.isTag)(c)&&E(c.name)}:E==="*"?e.isTag:function(c){return(0,e.isTag)(c)&&c.name===E}},tag_type:function(E){return typeof E=="function"?function(c){return E(c.type)}:function(c){return c.type===E}},tag_contains:function(E){return typeof E=="function"?function(c){return(0,e.isText)(c)&&E(c.data)}:function(c){return(0,e.isText)(c)&&c.data===E}}};function a(E,c){return typeof c=="function"?function(m){return(0,e.isTag)(m)&&c(m.attribs[E])}:function(m){return(0,e.isTag)(m)&&m.attribs[E]===c}}function s(E,c){return function(m){return E(m)||c(m)}}function o(E){var c=Object.keys(E).map(function(m){var _=E[m];return Object.prototype.hasOwnProperty.call(n,m)?n[m](_):a(m,_)});return c.length===0?null:c.reduce(s)}function i(E,c){var m=o(E);return m?m(c):!0}$n.testElement=i;function r(E,c,m,_){_===void 0&&(_=1/0);var h=o(E);return h?(0,t.filter)(h,c,m,_):[]}$n.getElements=r;function u(E,c,m){return m===void 0&&(m=!0),Array.isArray(c)||(c=[c]),(0,t.findOne)(a("id",E),c,m)}$n.getElementById=u;function l(E,c,m,_){return m===void 0&&(m=!0),_===void 0&&(_=1/0),(0,t.filter)(n.tag_name(E),c,m,_)}$n.getElementsByTagName=l;function d(E,c,m,_){return m===void 0&&(m=!0),_===void 0&&(_=1/0),(0,t.filter)(n.tag_type(E),c,m,_)}return $n.getElementsByTagType=d,$n}var yc={},Df;function xVe(){return Df||(Df=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var t=cs();function n(i){for(var r=i.length;--r>=0;){var u=i[r];if(r>0&&i.lastIndexOf(u,r-1)>=0){i.splice(r,1);continue}for(var l=u.parent;l;l=l.parent)if(i.includes(l)){i.splice(r,1);break}}return i}e.removeSubsets=n;var a;(function(i){i[i.DISCONNECTED=1]="DISCONNECTED",i[i.PRECEDING=2]="PRECEDING",i[i.FOLLOWING=4]="FOLLOWING",i[i.CONTAINS=8]="CONTAINS",i[i.CONTAINED_BY=16]="CONTAINED_BY"})(a=e.DocumentPosition||(e.DocumentPosition={}));function s(i,r){var u=[],l=[];if(i===r)return 0;for(var d=(0,t.hasChildren)(i)?i:i.parent;d;)u.unshift(d),d=d.parent;for(d=(0,t.hasChildren)(r)?r:r.parent;d;)l.unshift(d),d=d.parent;for(var E=Math.min(u.length,l.length),c=0;c_.indexOf(O)?m===r?a.FOLLOWING|a.CONTAINED_BY:a.FOLLOWING:m===i?a.PRECEDING|a.CONTAINS:a.PRECEDING}e.compareDocumentPosition=s;function o(i){return i=i.filter(function(r,u,l){return!l.includes(r,u+1)}),i.sort(function(r,u){var l=s(r,u);return l&a.PRECEDING?-1:l&a.FOLLOWING?1:0}),i}e.uniqueSort=o}(yc)),yc}var ni={},Lf;function BVe(){if(Lf)return ni;Lf=1,Object.defineProperty(ni,"__esModule",{value:!0}),ni.getFeed=void 0;var e=pO(),t=TO();function n(c){var m=u(E,c);return m?m.name==="feed"?a(m):s(m):null}ni.getFeed=n;function a(c){var m,_=c.children,h={type:"atom",items:(0,t.getElementsByTagName)("entry",_).map(function(R){var g,I=R.children,N={media:r(I)};d(N,"id","id",I),d(N,"title","title",I);var b=(g=u("link",I))===null||g===void 0?void 0:g.attribs.href;b&&(N.link=b);var C=l("summary",I)||l("content",I);C&&(N.description=C);var y=l("updated",I);return y&&(N.pubDate=new Date(y)),N})};d(h,"id","id",_),d(h,"title","title",_);var O=(m=u("link",_))===null||m===void 0?void 0:m.attribs.href;O&&(h.link=O),d(h,"description","subtitle",_);var A=l("updated",_);return A&&(h.updated=new Date(A)),d(h,"author","email",_,!0),h}function s(c){var m,_,h=(_=(m=u("channel",c.children))===null||m===void 0?void 0:m.children)!==null&&_!==void 0?_:[],O={type:c.name.substr(0,3),id:"",items:(0,t.getElementsByTagName)("item",c.children).map(function(R){var g=R.children,I={media:r(g)};d(I,"id","guid",g),d(I,"title","title",g),d(I,"link","link",g),d(I,"description","description",g);var N=l("pubDate",g)||l("dc:date",g);return N&&(I.pubDate=new Date(N)),I})};d(O,"title","title",h),d(O,"link","link",h),d(O,"description","description",h);var A=l("lastBuildDate",h);return A&&(O.updated=new Date(A)),d(O,"author","managingEditor",h,!0),O}var o=["url","type","lang"],i=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function r(c){return(0,t.getElementsByTagName)("media:content",c).map(function(m){for(var _=m.attribs,h={medium:_.medium,isDefault:!!_.isDefault},O=0,A=o;O{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),Uc}var Lr={},kf;function HVe(){if(kf)return Lr;kf=1,Object.defineProperty(Lr,"__esModule",{value:!0});/*! +Please report this to https://github.com/markedjs/marked.`,t){const s="An error occurred:"+_a(a.message+"",!0)+"";return n?Promise.resolve(s):s}if(n)return Promise.reject(a);throw a}}}const xs=new yVe;function At(e,t){return xs.parse(e,t)}At.options=At.setOptions=function(e){return xs.setOptions(e),At.defaults=xs.defaults,aO(At.defaults),At};At.getDefaults=Rp;At.defaults=Hs;At.use=function(...e){return xs.use(...e),At.defaults=xs.defaults,aO(At.defaults),At};At.walkTokens=function(e,t){return xs.walkTokens(e,t)};At.parseInline=xs.parseInline;At.Parser=Kn;At.parser=Kn.parse;At.Renderer=ju;At.TextRenderer=Lp;At.Lexer=Hn;At.lexer=Hn.lex;At.Tokenizer=qu;At.Hooks=gi;At.parse=At;At.options;At.setOptions;At.use;At.walkTokens;At.parseInline;Kn.parse;Hn.lex;var Rs={},Xa={},bc={},Ns={},Cr={},of;function $Ve(){return of||(of=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾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)}))),Cr}var Pr={},rf;function UVe(){return rf||(rf=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}))),Pr}var Cc={},uf;function lf(){return uf||(uf=1,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(o){var i="";return o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),i};function a(o){var i;return o>=55296&&o<=57343||o>1114111?65533:(i=n.get(o))!==null&&i!==void 0?i:o}e.replaceCodePoint=a;function s(o){return(0,e.fromCodePoint)(a(o))}e.default=s}(Cc)),Cc}var cf;function Yu(){return cf||(cf=1,function(e){var t=Ns.__createBinding||(Object.create?function(P,W,Q,Se){Se===void 0&&(Se=Q);var J=Object.getOwnPropertyDescriptor(W,Q);(!J||("get"in J?!W.__esModule:J.writable||J.configurable))&&(J={enumerable:!0,get:function(){return W[Q]}}),Object.defineProperty(P,Se,J)}:function(P,W,Q,Se){Se===void 0&&(Se=Q),P[Se]=W[Q]}),n=Ns.__setModuleDefault||(Object.create?function(P,W){Object.defineProperty(P,"default",{enumerable:!0,value:W})}:function(P,W){P.default=W}),a=Ns.__importStar||function(P){if(P&&P.__esModule)return P;var W={};if(P!=null)for(var Q in P)Q!=="default"&&Object.prototype.hasOwnProperty.call(P,Q)&&t(W,P,Q);return n(W,P),W},s=Ns.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};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 o=s($Ve());e.htmlDecodeTree=o.default;var i=s(UVe());e.xmlDecodeTree=i.default;var r=a(lf());e.decodeCodePoint=r.default;var u=lf();Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var l;(function(P){P[P.NUM=35]="NUM",P[P.SEMI=59]="SEMI",P[P.EQUALS=61]="EQUALS",P[P.ZERO=48]="ZERO",P[P.NINE=57]="NINE",P[P.LOWER_A=97]="LOWER_A",P[P.LOWER_F=102]="LOWER_F",P[P.LOWER_X=120]="LOWER_X",P[P.LOWER_Z=122]="LOWER_Z",P[P.UPPER_A=65]="UPPER_A",P[P.UPPER_F=70]="UPPER_F",P[P.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var d=32,E;(function(P){P[P.VALUE_LENGTH=49152]="VALUE_LENGTH",P[P.BRANCH_LENGTH=16256]="BRANCH_LENGTH",P[P.JUMP_TABLE=127]="JUMP_TABLE"})(E=e.BinTrieFlags||(e.BinTrieFlags={}));function c(P){return P>=l.ZERO&&P<=l.NINE}function m(P){return P>=l.UPPER_A&&P<=l.UPPER_F||P>=l.LOWER_A&&P<=l.LOWER_F}function _(P){return P>=l.UPPER_A&&P<=l.UPPER_Z||P>=l.LOWER_A&&P<=l.LOWER_Z||c(P)}function f(P){return P===l.EQUALS||_(P)}var O;(function(P){P[P.EntityStart=0]="EntityStart",P[P.NumericStart=1]="NumericStart",P[P.NumericDecimal=2]="NumericDecimal",P[P.NumericHex=3]="NumericHex",P[P.NamedEntity=4]="NamedEntity"})(O||(O={}));var S;(function(P){P[P.Legacy=0]="Legacy",P[P.Strict=1]="Strict",P[P.Attribute=2]="Attribute"})(S=e.DecodingMode||(e.DecodingMode={}));var R=function(){function P(W,Q,Se){this.decodeTree=W,this.emitCodePoint=Q,this.errors=Se,this.state=O.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=S.Strict}return P.prototype.startEntity=function(W){this.decodeMode=W,this.state=O.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},P.prototype.write=function(W,Q){switch(this.state){case O.EntityStart:return W.charCodeAt(Q)===l.NUM?(this.state=O.NumericStart,this.consumed+=1,this.stateNumericStart(W,Q+1)):(this.state=O.NamedEntity,this.stateNamedEntity(W,Q));case O.NumericStart:return this.stateNumericStart(W,Q);case O.NumericDecimal:return this.stateNumericDecimal(W,Q);case O.NumericHex:return this.stateNumericHex(W,Q);case O.NamedEntity:return this.stateNamedEntity(W,Q)}},P.prototype.stateNumericStart=function(W,Q){return Q>=W.length?-1:(W.charCodeAt(Q)|d)===l.LOWER_X?(this.state=O.NumericHex,this.consumed+=1,this.stateNumericHex(W,Q+1)):(this.state=O.NumericDecimal,this.stateNumericDecimal(W,Q))},P.prototype.addToNumericResult=function(W,Q,Se,J){if(Q!==Se){var Ee=Se-Q;this.result=this.result*Math.pow(J,Ee)+parseInt(W.substr(Q,Ee),J),this.consumed+=Ee}},P.prototype.stateNumericHex=function(W,Q){for(var Se=Q;Q>14;Q>14,Ee!==0){if(fe===l.SEMI)return this.emitNamedEntityData(this.treeIndex,Ee,this.consumed+this.excess);this.decodeMode!==S.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},P.prototype.emitNotTerminatedNamedEntity=function(){var W,Q=this,Se=Q.result,J=Q.decodeTree,Ee=(J[Se]&E.VALUE_LENGTH)>>14;return this.emitNamedEntityData(Se,Ee,this.consumed),(W=this.errors)===null||W===void 0||W.missingSemicolonAfterCharacterReference(),this.consumed},P.prototype.emitNamedEntityData=function(W,Q,Se){var J=this.decodeTree;return this.emitCodePoint(Q===1?J[W]&~E.VALUE_LENGTH:J[W+1],Se),Q===3&&this.emitCodePoint(J[W+2],Se),Se},P.prototype.end=function(){var W;switch(this.state){case O.NamedEntity:return this.result!==0&&(this.decodeMode!==S.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case O.NumericDecimal:return this.emitNumericEntity(0,2);case O.NumericHex:return this.emitNumericEntity(0,3);case O.NumericStart:return(W=this.errors)===null||W===void 0||W.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case O.EntityStart:return 0}},P}();e.EntityDecoder=R;function I(P){var W="",Q=new R(P,function(Se){return W+=(0,r.fromCodePoint)(Se)});return function(J,Ee){for(var fe=0,Pe=0;(Pe=J.indexOf("&",Pe))>=0;){W+=J.slice(fe,Pe),Q.startEntity(Ee);var Ke=Q.write(J,Pe+1);if(Ke<0){fe=Pe+Q.end();break}fe=Pe+Ke,Pe=Ke===0?fe+1:fe}var et=W+J.slice(fe);return W="",et}}function g(P,W,Q,Se){var J=(W&E.BRANCH_LENGTH)>>7,Ee=W&E.JUMP_TABLE;if(J===0)return Ee!==0&&Se===Ee?Q:-1;if(Ee){var fe=Se-Ee;return fe<0||fe>=J?-1:P[Q+fe]-1}for(var Pe=Q,Ke=Pe+J-1;Pe<=Ke;){var et=Pe+Ke>>>1,He=P[et];if(HeSe)Ke=et-1;else return P[et+J]}return-1}e.determineBranch=g;var N=I(o.default),b=I(i.default);function C(P,W){return W===void 0&&(W=S.Legacy),N(P,W)}e.decodeHTML=C;function y(P){return N(P,S.Attribute)}e.decodeHTMLAttribute=y;function D(P){return N(P,S.Strict)}e.decodeHTMLStrict=D;function M(P){return b(P,S.Strict)}e.decodeXML=M}(Ns)),Ns}var df;function EO(){return df||(df=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var t=Yu(),n;(function(c){c[c.Tab=9]="Tab",c[c.NewLine=10]="NewLine",c[c.FormFeed=12]="FormFeed",c[c.CarriageReturn=13]="CarriageReturn",c[c.Space=32]="Space",c[c.ExclamationMark=33]="ExclamationMark",c[c.Number=35]="Number",c[c.Amp=38]="Amp",c[c.SingleQuote=39]="SingleQuote",c[c.DoubleQuote=34]="DoubleQuote",c[c.Dash=45]="Dash",c[c.Slash=47]="Slash",c[c.Zero=48]="Zero",c[c.Nine=57]="Nine",c[c.Semi=59]="Semi",c[c.Lt=60]="Lt",c[c.Eq=61]="Eq",c[c.Gt=62]="Gt",c[c.Questionmark=63]="Questionmark",c[c.UpperA=65]="UpperA",c[c.LowerA=97]="LowerA",c[c.UpperF=70]="UpperF",c[c.LowerF=102]="LowerF",c[c.UpperZ=90]="UpperZ",c[c.LowerZ=122]="LowerZ",c[c.LowerX=120]="LowerX",c[c.OpeningSquareBracket=91]="OpeningSquareBracket"})(n||(n={}));var a;(function(c){c[c.Text=1]="Text",c[c.BeforeTagName=2]="BeforeTagName",c[c.InTagName=3]="InTagName",c[c.InSelfClosingTag=4]="InSelfClosingTag",c[c.BeforeClosingTagName=5]="BeforeClosingTagName",c[c.InClosingTagName=6]="InClosingTagName",c[c.AfterClosingTagName=7]="AfterClosingTagName",c[c.BeforeAttributeName=8]="BeforeAttributeName",c[c.InAttributeName=9]="InAttributeName",c[c.AfterAttributeName=10]="AfterAttributeName",c[c.BeforeAttributeValue=11]="BeforeAttributeValue",c[c.InAttributeValueDq=12]="InAttributeValueDq",c[c.InAttributeValueSq=13]="InAttributeValueSq",c[c.InAttributeValueNq=14]="InAttributeValueNq",c[c.BeforeDeclaration=15]="BeforeDeclaration",c[c.InDeclaration=16]="InDeclaration",c[c.InProcessingInstruction=17]="InProcessingInstruction",c[c.BeforeComment=18]="BeforeComment",c[c.CDATASequence=19]="CDATASequence",c[c.InSpecialComment=20]="InSpecialComment",c[c.InCommentLike=21]="InCommentLike",c[c.BeforeSpecialS=22]="BeforeSpecialS",c[c.SpecialStartSequence=23]="SpecialStartSequence",c[c.InSpecialTag=24]="InSpecialTag",c[c.BeforeEntity=25]="BeforeEntity",c[c.BeforeNumericEntity=26]="BeforeNumericEntity",c[c.InNamedEntity=27]="InNamedEntity",c[c.InNumericEntity=28]="InNumericEntity",c[c.InHexEntity=29]="InHexEntity"})(a||(a={}));function s(c){return c===n.Space||c===n.NewLine||c===n.Tab||c===n.FormFeed||c===n.CarriageReturn}function o(c){return c===n.Slash||c===n.Gt||s(c)}function i(c){return c>=n.Zero&&c<=n.Nine}function r(c){return c>=n.LowerA&&c<=n.LowerZ||c>=n.UpperA&&c<=n.UpperZ}function u(c){return c>=n.UpperA&&c<=n.UpperF||c>=n.LowerA&&c<=n.LowerF}var l;(function(c){c[c.NoValue=0]="NoValue",c[c.Unquoted=1]="Unquoted",c[c.Single=2]="Single",c[c.Double=3]="Double"})(l=e.QuoteType||(e.QuoteType={}));var d={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])},E=function(){function c(m,_){var f=m.xmlMode,O=f===void 0?!1:f,S=m.decodeEntities,R=S===void 0?!0:S;this.cbs=_,this.state=a.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=a.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=O,this.decodeEntities=R,this.entityTrie=O?t.xmlDecodeTree:t.htmlDecodeTree}return c.prototype.reset=function(){this.state=a.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=a.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},c.prototype.write=function(m){this.offset+=this.buffer.length,this.buffer=m,this.parse()},c.prototype.end=function(){this.running&&this.finish()},c.prototype.pause=function(){this.running=!1},c.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=a.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&m===n.Amp&&(this.state=a.BeforeEntity)},c.prototype.stateSpecialStartSequence=function(m){var _=this.sequenceIndex===this.currentSequence.length,f=_?o(m):(m|32)===this.currentSequence[this.sequenceIndex];if(!f)this.isSpecial=!1;else if(!_){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=a.InTagName,this.stateInTagName(m)},c.prototype.stateInSpecialTag=function(m){if(this.sequenceIndex===this.currentSequence.length){if(m===n.Gt||s(m)){var _=this.index-this.currentSequence.length;if(this.sectionStart<_){var f=this.index;this.index=_,this.cbs.ontext(this.sectionStart,_),this.index=f}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===d.TitleEnd?this.decodeEntities&&m===n.Amp&&(this.state=a.BeforeEntity):this.fastForwardTo(n.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(m===n.Lt)},c.prototype.stateCDATASequence=function(m){m===d.Cdata[this.sequenceIndex]?++this.sequenceIndex===d.Cdata.length&&(this.state=a.InCommentLike,this.currentSequence=d.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=a.InDeclaration,this.stateInDeclaration(m))},c.prototype.fastForwardTo=function(m){for(;++this.index>14)-1;if(!this.allowLegacyEntity()&&m!==n.Semi)this.trieIndex+=f;else{var O=this.index-this.entityExcess+1;O>this.sectionStart&&this.emitPartial(this.sectionStart,O),this.entityResult=this.trieIndex,this.trieIndex+=f,this.entityExcess=0,this.sectionStart=this.index+1,f===0&&this.emitNamedEntity()}}},c.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])}}},c.prototype.stateBeforeNumericEntity=function(m){(m|32)===n.LowerX?(this.entityExcess++,this.state=a.InHexEntity):(this.state=a.InNumericEntity,this.stateInNumericEntity(m))},c.prototype.emitNumericEntity=function(m){var _=this.index-this.entityExcess-1,f=_+2+ +(this.state===a.InHexEntity);f!==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},c.prototype.stateInNumericEntity=function(m){m===n.Semi?this.emitNumericEntity(!0):i(m)?(this.entityResult=this.entityResult*10+(m-n.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},c.prototype.stateInHexEntity=function(m){m===n.Semi?this.emitNumericEntity(!0):i(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--)},c.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===a.Text||this.baseState===a.InSpecialTag)},c.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===a.Text||this.state===a.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===a.InAttributeValueDq||this.state===a.InAttributeValueSq||this.state===a.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},c.prototype.shouldContinue=function(){return this.index0&&b.has(this.stack[this.stack.length-1]);){var C=this.stack.pop();(I=(R=this.cbs).onclosetag)===null||I===void 0||I.call(R,C,!0)}this.isVoidElement(S)||(this.stack.push(S),c.has(S)?this.foreignContext.push(!0):m.has(S)&&this.foreignContext.push(!1)),(N=(g=this.cbs).onopentagname)===null||N===void 0||N.call(g,S),this.cbs.onopentag&&(this.attribs={})},O.prototype.endOpenTag=function(S){var R,I;this.startIndex=this.openTagStart,this.attribs&&((I=(R=this.cbs).onopentag)===null||I===void 0||I.call(R,this.tagname,this.attribs,S),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},O.prototype.onopentagend=function(S){this.endIndex=S,this.endOpenTag(!1),this.startIndex=S+1},O.prototype.onclosetag=function(S,R){var I,g,N,b,C,y;this.endIndex=R;var D=this.getSlice(S,R);if(this.lowerCaseTagNames&&(D=D.toLowerCase()),(c.has(D)||m.has(D))&&this.foreignContext.pop(),this.isVoidElement(D))!this.options.xmlMode&&D==="br"&&((g=(I=this.cbs).onopentagname)===null||g===void 0||g.call(I,"br"),(b=(N=this.cbs).onopentag)===null||b===void 0||b.call(N,"br",{},!0),(y=(C=this.cbs).onclosetag)===null||y===void 0||y.call(C,"br",!1));else{var M=this.stack.lastIndexOf(D);if(M!==-1)if(this.cbs.onclosetag)for(var P=this.stack.length-M;P--;)this.cbs.onclosetag(this.stack.pop(),P!==0);else this.stack.length=M;else!this.options.xmlMode&&D==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=R+1},O.prototype.onselfclosingtag=function(S){this.endIndex=S,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=S+1):this.onopentagend(S)},O.prototype.closeCurrentTag=function(S){var R,I,g=this.tagname;this.endOpenTag(S),this.stack[this.stack.length-1]===g&&((I=(R=this.cbs).onclosetag)===null||I===void 0||I.call(R,g,!S),this.stack.pop())},O.prototype.onattribname=function(S,R){this.startIndex=S;var I=this.getSlice(S,R);this.attribname=this.lowerCaseAttributeNames?I.toLowerCase():I},O.prototype.onattribdata=function(S,R){this.attribvalue+=this.getSlice(S,R)},O.prototype.onattribentity=function(S){this.attribvalue+=(0,s.fromCodePoint)(S)},O.prototype.onattribend=function(S,R){var I,g;this.endIndex=R,(g=(I=this.cbs).onattribute)===null||g===void 0||g.call(I,this.attribname,this.attribvalue,S===a.QuoteType.Double?'"':S===a.QuoteType.Single?"'":S===a.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},O.prototype.getInstructionName=function(S){var R=S.search(_),I=R<0?S:S.substr(0,R);return this.lowerCaseTagNames&&(I=I.toLowerCase()),I},O.prototype.ondeclaration=function(S,R){this.endIndex=R;var I=this.getSlice(S,R);if(this.cbs.onprocessinginstruction){var g=this.getInstructionName(I);this.cbs.onprocessinginstruction("!".concat(g),"!".concat(I))}this.startIndex=R+1},O.prototype.onprocessinginstruction=function(S,R){this.endIndex=R;var I=this.getSlice(S,R);if(this.cbs.onprocessinginstruction){var g=this.getInstructionName(I);this.cbs.onprocessinginstruction("?".concat(g),"?".concat(I))}this.startIndex=R+1},O.prototype.oncomment=function(S,R,I){var g,N,b,C;this.endIndex=R,(N=(g=this.cbs).oncomment)===null||N===void 0||N.call(g,this.getSlice(S,R-I)),(C=(b=this.cbs).oncommentend)===null||C===void 0||C.call(b),this.startIndex=R+1},O.prototype.oncdata=function(S,R,I){var g,N,b,C,y,D,M,P,W,Q;this.endIndex=R;var Se=this.getSlice(S,R-I);this.options.xmlMode||this.options.recognizeCDATA?((N=(g=this.cbs).oncdatastart)===null||N===void 0||N.call(g),(C=(b=this.cbs).ontext)===null||C===void 0||C.call(b,Se),(D=(y=this.cbs).oncdataend)===null||D===void 0||D.call(y)):((P=(M=this.cbs).oncomment)===null||P===void 0||P.call(M,"[CDATA[".concat(Se,"]]")),(Q=(W=this.cbs).oncommentend)===null||Q===void 0||Q.call(W)),this.startIndex=R+1},O.prototype.onend=function(){var S,R;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var I=this.stack.length;I>0;this.cbs.onclosetag(this.stack[--I],!0));}(R=(S=this.cbs).onend)===null||R===void 0||R.call(S)},O.prototype.reset=function(){var S,R,I,g;(R=(S=this.cbs).onreset)===null||R===void 0||R.call(S),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(g=(I=this.cbs).onparserinit)===null||g===void 0||g.call(I,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},O.prototype.parseComplete=function(S){this.reset(),this.end(S)},O.prototype.getSlice=function(S,R){for(;S-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var I=this.buffers[0].slice(S-this.bufferOffset,R-this.bufferOffset);R-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),I+=this.buffers[0].slice(0,R-this.bufferOffset);return I},O.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},O.prototype.write=function(S){var R,I;if(this.ended){(I=(R=this.cbs).onerror)===null||I===void 0||I.call(R,new Error(".write() after done!"));return}this.buffers.push(S),this.tokenizer.running&&(this.tokenizer.write(S),this.writeIndex++)},O.prototype.end=function(S){var R,I;if(this.ended){(I=(R=this.cbs).onerror)===null||I===void 0||I.call(R,new Error(".end() after done!"));return}S&&this.write(S),this.ended=!0,this.tokenizer.end()},O.prototype.pause=function(){this.tokenizer.pause()},O.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(b.prototype,"childNodes",{get:function(){return this.children},set:function(C){this.children=C},enumerable:!1,configurable:!0}),b}(a);at.NodeWithChildren=u;var l=function(N){e(b,N);function b(){var C=N!==null&&N.apply(this,arguments)||this;return C.type=n.ElementType.CDATA,C}return Object.defineProperty(b.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),b}(u);at.CDATA=l;var d=function(N){e(b,N);function b(){var C=N!==null&&N.apply(this,arguments)||this;return C.type=n.ElementType.Root,C}return Object.defineProperty(b.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),b}(u);at.Document=d;var E=function(N){e(b,N);function b(C,y,D,M){D===void 0&&(D=[]),M===void 0&&(M=C==="script"?n.ElementType.Script:C==="style"?n.ElementType.Style:n.ElementType.Tag);var P=N.call(this,D)||this;return P.name=C,P.attribs=y,P.type=M,P}return Object.defineProperty(b.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"tagName",{get:function(){return this.name},set:function(C){this.name=C},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"attributes",{get:function(){var C=this;return Object.keys(this.attribs).map(function(y){var D,M;return{name:y,value:C.attribs[y],namespace:(D=C["x-attribsNamespace"])===null||D===void 0?void 0:D[y],prefix:(M=C["x-attribsPrefix"])===null||M===void 0?void 0:M[y]}})},enumerable:!1,configurable:!0}),b}(u);at.Element=E;function c(N){return(0,n.isTag)(N)}at.isTag=c;function m(N){return N.type===n.ElementType.CDATA}at.isCDATA=m;function _(N){return N.type===n.ElementType.Text}at.isText=_;function f(N){return N.type===n.ElementType.Comment}at.isComment=f;function O(N){return N.type===n.ElementType.Directive}at.isDirective=O;function S(N){return N.type===n.ElementType.Root}at.isDocument=S;function R(N){return Object.prototype.hasOwnProperty.call(N,"children")}at.hasChildren=R;function I(N,b){b===void 0&&(b=!1);var C;if(_(N))C=new o(N.data);else if(f(N))C=new i(N.data);else if(c(N)){var y=b?g(N.children):[],D=new E(N.name,t({},N.attribs),y);y.forEach(function(Q){return Q.parent=D}),N.namespace!=null&&(D.namespace=N.namespace),N["x-attribsNamespace"]&&(D["x-attribsNamespace"]=t({},N["x-attribsNamespace"])),N["x-attribsPrefix"]&&(D["x-attribsPrefix"]=t({},N["x-attribsPrefix"])),C=D}else if(m(N)){var y=b?g(N.children):[],M=new l(y);y.forEach(function(Se){return Se.parent=M}),C=M}else if(S(N)){var y=b?g(N.children):[],P=new d(y);y.forEach(function(Se){return Se.parent=P}),N["x-mode"]&&(P["x-mode"]=N["x-mode"]),C=P}else if(O(N)){var W=new r(N.name,N.data);N["x-name"]!=null&&(W["x-name"]=N["x-name"],W["x-publicId"]=N["x-publicId"],W["x-systemId"]=N["x-systemId"]),C=W}else throw new Error("Not implemented yet: ".concat(N.type));return C.startIndex=N.startIndex,C.endIndex=N.endIndex,N.sourceCodeLocation!=null&&(C.sourceCodeLocation=N.sourceCodeLocation),C}at.cloneNode=I;function g(N){for(var b=N.map(function(y){return I(y,!0)}),C=1;C$\x80-\uFFFF]/g;var t=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(s,o){return s.codePointAt(o)}:function(s,o){return(s.charCodeAt(o)&64512)===55296?(s.charCodeAt(o)-55296)*1024+s.charCodeAt(o+1)-56320+65536:s.charCodeAt(o)};function n(s){for(var o="",i=0,r;(r=e.xmlReplacer.exec(s))!==null;){var u=r.index,l=s.charCodeAt(u),d=t.get(l);d!==void 0?(o+=s.substring(i,u)+d,i=u+1):(o+="".concat(s.substring(i,u),"").concat((0,e.getCodePoint)(s,u).toString(16),";"),i=e.xmlReplacer.lastIndex+=+((l&64512)===55296))}return o+s.substr(i)}e.encodeXML=n,e.escape=n;function a(s,o){return function(r){for(var u,l=0,d="";u=s.exec(r);)l!==u.index&&(d+=r.substring(l,u.index)),d+=o.get(u[0].charCodeAt(0)),l=u.index+1;return d+r.substring(l)}}e.escapeUTF8=a(/[&<>'"]/g,t),e.escapeAttribute=a(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=a(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))}(Lc)),Lc}var Af;function Of(){if(Af)return Qa;Af=1;var e=Qa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.encodeNonAsciiHTML=Qa.encodeHTML=void 0;var t=e(kVe()),n=fE(),a=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function s(r){return i(a,r)}Qa.encodeHTML=s;function o(r){return i(n.xmlReplacer,r)}Qa.encodeNonAsciiHTML=o;function i(r,u){for(var l="",d=0,E;(E=r.exec(u))!==null;){var c=E.index;l+=u.substring(d,c);var m=u.charCodeAt(c),_=t.default.get(m);if(typeof _=="object"){if(c+1"):(C+=">",g.children.length>0&&(C+=E(g.children,N)),(N.xmlMode||!d.has(g.name))&&(C+="".concat(g.name,">"))),C}function O(g){return"<".concat(g.data,">")}function S(g,N){var b,C=g.data||"";return((b=N.encodeEntities)!==null&&b!==void 0?b:N.decodeEntities)!==!1&&!(!N.xmlMode&&g.parent&&r.has(g.parent.name))&&(C=N.xmlMode||N.encodeEntities!=="utf8"?(0,o.encodeXML)(C):(0,o.escapeText)(C)),C}function R(g){return"")}function I(g){return"")}return ma}var Nf;function pO(){if(Nf)return Rn;Nf=1;var e=Rn.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.innerText=Rn.textContent=Rn.getText=Rn.getInnerHTML=Rn.getOuterHTML=void 0;var t=cs(),n=e(WVe()),a=ur();function s(l,d){return(0,n.default)(l,d)}Rn.getOuterHTML=s;function o(l,d){return(0,t.hasChildren)(l)?l.children.map(function(E){return s(E,d)}).join(""):""}Rn.getInnerHTML=o;function i(l){return Array.isArray(l)?l.map(i).join(""):(0,t.isTag)(l)?l.name==="br"?` +`:i(l.children):(0,t.isCDATA)(l)?i(l.children):(0,t.isText)(l)?l.data:""}Rn.getText=i;function r(l){return Array.isArray(l)?l.map(r).join(""):(0,t.hasChildren)(l)&&!(0,t.isComment)(l)?r(l.children):(0,t.isText)(l)?l.data:""}Rn.textContent=r;function u(l){return Array.isArray(l)?l.map(u).join(""):(0,t.hasChildren)(l)&&(l.type===a.ElementType.Tag||(0,t.isCDATA)(l))?u(l.children):(0,t.isText)(l)?l.data:""}return Rn.innerText=u,Rn}var Vt={},vf;function FVe(){if(vf)return Vt;vf=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.prevElementSibling=Vt.nextElementSibling=Vt.getName=Vt.hasAttrib=Vt.getAttributeValue=Vt.getSiblings=Vt.getParent=Vt.getChildren=void 0;var e=cs();function t(l){return(0,e.hasChildren)(l)?l.children:[]}Vt.getChildren=t;function n(l){return l.parent||null}Vt.getParent=n;function a(l){var d,E,c=n(l);if(c!=null)return t(c);for(var m=[l],_=l.prev,f=l.next;_!=null;)m.unshift(_),d=_,_=d.prev;for(;f!=null;)m.push(f),E=f,f=E.next;return m}Vt.getSiblings=a;function s(l,d){var E;return(E=l.attribs)===null||E===void 0?void 0:E[d]}Vt.getAttributeValue=s;function o(l,d){return l.attribs!=null&&Object.prototype.hasOwnProperty.call(l.attribs,d)&&l.attribs[d]!=null}Vt.hasAttrib=o;function i(l){return l.name}Vt.getName=i;function r(l){for(var d,E=l.next;E!==null&&!(0,e.isTag)(E);)d=E,E=d.next;return E}Vt.nextElementSibling=r;function u(l){for(var d,E=l.prev;E!==null&&!(0,e.isTag)(E);)d=E,E=d.prev;return E}return Vt.prevElementSibling=u,Vt}var dn={},bf;function zVe(){if(bf)return dn;bf=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.prepend=dn.prependChild=dn.append=dn.appendChild=dn.replaceElement=dn.removeElement=void 0;function e(i){if(i.prev&&(i.prev.next=i.next),i.next&&(i.next.prev=i.prev),i.parent){var r=i.parent.children,u=r.lastIndexOf(i);u>=0&&r.splice(u,1)}i.next=null,i.prev=null,i.parent=null}dn.removeElement=e;function t(i,r){var u=r.prev=i.prev;u&&(u.next=r);var l=r.next=i.next;l&&(l.prev=r);var d=r.parent=i.parent;if(d){var E=d.children;E[E.lastIndexOf(i)]=r,i.parent=null}}dn.replaceElement=t;function n(i,r){if(e(r),r.next=null,r.parent=i,i.children.push(r)>1){var u=i.children[i.children.length-2];u.next=r,r.prev=u}else r.prev=null}dn.appendChild=n;function a(i,r){e(r);var u=i.parent,l=i.next;if(r.next=l,r.prev=i,i.next=r,r.parent=u,l){if(l.prev=r,u){var d=u.children;d.splice(d.lastIndexOf(l),0,r)}}else u&&u.children.push(r)}dn.append=a;function s(i,r){if(e(r),r.parent=i,r.prev=null,i.children.unshift(r)!==1){var u=i.children[1];u.prev=r,r.next=u}else r.next=null}dn.prependChild=s;function o(i,r){e(r);var u=i.parent;if(u){var l=u.children;l.splice(l.indexOf(i),0,r)}i.prev&&(i.prev.next=r),r.parent=u,r.prev=i.prev,r.next=i,i.prev=r}return dn.prepend=o,dn}var En={},Cf;function mO(){if(Cf)return En;Cf=1,Object.defineProperty(En,"__esModule",{value:!0}),En.findAll=En.existsOne=En.findOne=En.findOneChild=En.find=En.filter=void 0;var e=cs();function t(r,u,l,d){return l===void 0&&(l=!0),d===void 0&&(d=1/0),n(r,Array.isArray(u)?u:[u],l,d)}En.filter=t;function n(r,u,l,d){for(var E=[],c=[u],m=[0];;){if(m[0]>=c[0].length){if(m.length===1)return E;c.shift(),m.shift();continue}var _=c[0][m[0]++];if(r(_)&&(E.push(_),--d<=0))return E;l&&(0,e.hasChildren)(_)&&_.children.length>0&&(m.unshift(0),c.unshift(_.children))}}En.find=n;function a(r,u){return u.find(r)}En.findOneChild=a;function s(r,u,l){l===void 0&&(l=!0);for(var d=null,E=0;E0&&(d=s(r,c.children,!0));else continue}return d}En.findOne=s;function o(r,u){return u.some(function(l){return(0,e.isTag)(l)&&(r(l)||o(r,l.children))})}En.existsOne=o;function i(r,u){for(var l=[],d=[u],E=[0];;){if(E[0]>=d[0].length){if(d.length===1)return l;d.shift(),E.shift();continue}var c=d[0][E[0]++];(0,e.isTag)(c)&&(r(c)&&l.push(c),c.children.length>0&&(E.unshift(0),d.unshift(c.children)))}}return En.findAll=i,En}var $n={},Pf;function TO(){if(Pf)return $n;Pf=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.getElementsByTagType=$n.getElementsByTagName=$n.getElementById=$n.getElements=$n.testElement=void 0;var e=cs(),t=mO(),n={tag_name:function(E){return typeof E=="function"?function(c){return(0,e.isTag)(c)&&E(c.name)}:E==="*"?e.isTag:function(c){return(0,e.isTag)(c)&&c.name===E}},tag_type:function(E){return typeof E=="function"?function(c){return E(c.type)}:function(c){return c.type===E}},tag_contains:function(E){return typeof E=="function"?function(c){return(0,e.isText)(c)&&E(c.data)}:function(c){return(0,e.isText)(c)&&c.data===E}}};function a(E,c){return typeof c=="function"?function(m){return(0,e.isTag)(m)&&c(m.attribs[E])}:function(m){return(0,e.isTag)(m)&&m.attribs[E]===c}}function s(E,c){return function(m){return E(m)||c(m)}}function o(E){var c=Object.keys(E).map(function(m){var _=E[m];return Object.prototype.hasOwnProperty.call(n,m)?n[m](_):a(m,_)});return c.length===0?null:c.reduce(s)}function i(E,c){var m=o(E);return m?m(c):!0}$n.testElement=i;function r(E,c,m,_){_===void 0&&(_=1/0);var f=o(E);return f?(0,t.filter)(f,c,m,_):[]}$n.getElements=r;function u(E,c,m){return m===void 0&&(m=!0),Array.isArray(c)||(c=[c]),(0,t.findOne)(a("id",E),c,m)}$n.getElementById=u;function l(E,c,m,_){return m===void 0&&(m=!0),_===void 0&&(_=1/0),(0,t.filter)(n.tag_name(E),c,m,_)}$n.getElementsByTagName=l;function d(E,c,m,_){return m===void 0&&(m=!0),_===void 0&&(_=1/0),(0,t.filter)(n.tag_type(E),c,m,_)}return $n.getElementsByTagType=d,$n}var yc={},Df;function xVe(){return Df||(Df=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var t=cs();function n(i){for(var r=i.length;--r>=0;){var u=i[r];if(r>0&&i.lastIndexOf(u,r-1)>=0){i.splice(r,1);continue}for(var l=u.parent;l;l=l.parent)if(i.includes(l)){i.splice(r,1);break}}return i}e.removeSubsets=n;var a;(function(i){i[i.DISCONNECTED=1]="DISCONNECTED",i[i.PRECEDING=2]="PRECEDING",i[i.FOLLOWING=4]="FOLLOWING",i[i.CONTAINS=8]="CONTAINS",i[i.CONTAINED_BY=16]="CONTAINED_BY"})(a=e.DocumentPosition||(e.DocumentPosition={}));function s(i,r){var u=[],l=[];if(i===r)return 0;for(var d=(0,t.hasChildren)(i)?i:i.parent;d;)u.unshift(d),d=d.parent;for(d=(0,t.hasChildren)(r)?r:r.parent;d;)l.unshift(d),d=d.parent;for(var E=Math.min(u.length,l.length),c=0;c_.indexOf(O)?m===r?a.FOLLOWING|a.CONTAINED_BY:a.FOLLOWING:m===i?a.PRECEDING|a.CONTAINS:a.PRECEDING}e.compareDocumentPosition=s;function o(i){return i=i.filter(function(r,u,l){return!l.includes(r,u+1)}),i.sort(function(r,u){var l=s(r,u);return l&a.PRECEDING?-1:l&a.FOLLOWING?1:0}),i}e.uniqueSort=o}(yc)),yc}var ni={},Lf;function BVe(){if(Lf)return ni;Lf=1,Object.defineProperty(ni,"__esModule",{value:!0}),ni.getFeed=void 0;var e=pO(),t=TO();function n(c){var m=u(E,c);return m?m.name==="feed"?a(m):s(m):null}ni.getFeed=n;function a(c){var m,_=c.children,f={type:"atom",items:(0,t.getElementsByTagName)("entry",_).map(function(R){var I,g=R.children,N={media:r(g)};d(N,"id","id",g),d(N,"title","title",g);var b=(I=u("link",g))===null||I===void 0?void 0:I.attribs.href;b&&(N.link=b);var C=l("summary",g)||l("content",g);C&&(N.description=C);var y=l("updated",g);return y&&(N.pubDate=new Date(y)),N})};d(f,"id","id",_),d(f,"title","title",_);var O=(m=u("link",_))===null||m===void 0?void 0:m.attribs.href;O&&(f.link=O),d(f,"description","subtitle",_);var S=l("updated",_);return S&&(f.updated=new Date(S)),d(f,"author","email",_,!0),f}function s(c){var m,_,f=(_=(m=u("channel",c.children))===null||m===void 0?void 0:m.children)!==null&&_!==void 0?_:[],O={type:c.name.substr(0,3),id:"",items:(0,t.getElementsByTagName)("item",c.children).map(function(R){var I=R.children,g={media:r(I)};d(g,"id","guid",I),d(g,"title","title",I),d(g,"link","link",I),d(g,"description","description",I);var N=l("pubDate",I)||l("dc:date",I);return N&&(g.pubDate=new Date(N)),g})};d(O,"title","title",f),d(O,"link","link",f),d(O,"description","description",f);var S=l("lastBuildDate",f);return S&&(O.updated=new Date(S)),d(O,"author","managingEditor",f,!0),O}var o=["url","type","lang"],i=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function r(c){return(0,t.getElementsByTagName)("media:content",c).map(function(m){for(var _=m.attribs,f={medium:_.medium,isDefault:!!_.isDefault},O=0,S=o;O{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),Uc}var Lr={},kf;function HVe(){if(kf)return Lr;kf=1,Object.defineProperty(Lr,"__esModule",{value:!0});/*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */function e(n){return Object.prototype.toString.call(n)==="[object Object]"}function t(n){var a,s;return e(n)===!1?!1:(a=n.constructor,a===void 0?!0:(s=a.prototype,!(e(s)===!1||s.hasOwnProperty("isPrototypeOf")===!1)))}return Lr.isPlainObject=t,Lr}var kc,wf;function KVe(){if(wf)return kc;wf=1;var e=function(R){return t(R)&&!n(R)};function t(A){return!!A&&typeof A=="object"}function n(A){var R=Object.prototype.toString.call(A);return R==="[object RegExp]"||R==="[object Date]"||o(A)}var a=typeof Symbol=="function"&&Symbol.for,s=a?Symbol.for("react.element"):60103;function o(A){return A.$$typeof===s}function i(A){return Array.isArray(A)?[]:{}}function r(A,R){return R.clone!==!1&&R.isMergeableObject(A)?h(i(A),A,R):A}function u(A,R,g){return A.concat(R).map(function(I){return r(I,g)})}function l(A,R){if(!R.customMerge)return h;var g=R.customMerge(A);return typeof g=="function"?g:h}function d(A){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(A).filter(function(R){return Object.propertyIsEnumerable.call(A,R)}):[]}function E(A){return Object.keys(A).concat(d(A))}function c(A,R){try{return R in A}catch{return!1}}function m(A,R){return c(A,R)&&!(Object.hasOwnProperty.call(A,R)&&Object.propertyIsEnumerable.call(A,R))}function _(A,R,g){var I={};return g.isMergeableObject(A)&&E(A).forEach(function(N){I[N]=r(A[N],g)}),E(R).forEach(function(N){m(A,N)||(c(A,N)&&g.isMergeableObject(R[N])?I[N]=l(N,g)(A[N],R[N],g):I[N]=r(R[N],g))}),I}function h(A,R,g){g=g||{},g.arrayMerge=g.arrayMerge||u,g.isMergeableObject=g.isMergeableObject||e,g.cloneUnlessOtherwiseSpecified=r;var I=Array.isArray(R),N=Array.isArray(A),b=I===N;return b?I?g.arrayMerge(A,R,g):_(A,R,g):r(R,g)}h.all=function(R,g){if(!Array.isArray(R))throw new Error("first argument should be an array");return R.reduce(function(I,N){return h(I,N,g)},{})};var O=h;return kc=O,kc}var Zr={exports:{}},qVe=Zr.exports,Mf;function jVe(){return Mf||(Mf=1,function(e){(function(t,n){e.exports?e.exports=n():t.parseSrcset=n()})(qVe,function(){return function(t){function n(I){return I===" "||I===" "||I===` -`||I==="\f"||I==="\r"}function a(I){var N,b=I.exec(t.substring(O));if(b)return N=b[0],O+=N.length,N}for(var s=t.length,o=/^[ \t\n\r\u000c]+/,i=/^[, \t\n\r\u000c]+/,r=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,l=/^\d+$/,d=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,E,c,m,_,h,O=0,A=[];;){if(a(i),O>=s)return A;E=a(r),c=[],E.slice(-1)===","?(E=E.replace(u,""),g()):R()}function R(){for(a(o),m="",_="in descriptor";;){if(h=t.charAt(O),_==="in descriptor")if(n(h))m&&(c.push(m),m="",_="after descriptor");else if(h===","){O+=1,m&&c.push(m),g();return}else if(h==="(")m=m+h,_="in parens";else if(h===""){m&&c.push(m),g();return}else m=m+h;else if(_==="in parens")if(h===")")m=m+h,_="in descriptor";else if(h===""){c.push(m),g();return}else m=m+h;else if(_==="after descriptor"&&!n(h))if(h===""){g();return}else _="in descriptor",O-=1;O+=1}}function g(){var I=!1,N,b,C,y,D={},M,P,W,Q,Se;for(y=0;y",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let o=this.source;s==null&&(s=e.isColorSupported);let i=m=>m,r=m=>m,u=m=>m;if(s){let{bold:m,gray:_,red:h}=e.createColors(!0);r=O=>m(h(O)),i=O=>_(O),t&&(u=O=>t(O))}let l=o.split(/\r?\n/),d=Math.max(this.line-3,0),E=Math.min(this.line+2,l.length),c=String(E).length;return l.slice(d,E).map((m,_)=>{let h=d+1+_,O=" "+(" "+h).slice(-c)+" | ";if(h===this.line){if(m.length>160){let R=20,g=Math.max(0,this.column-R),I=Math.max(this.column+R,this.endColumn+R),N=m.slice(g,I),b=i(O.replace(/\d/g," "))+m.slice(0,Math.min(this.column-1,R-1)).replace(/[^\t]/g," ");return r(">")+i(O)+u(N)+` - `+b+r("^")}let A=i(O.replace(/\d/g," "))+m.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(O)+u(m)+` - `+A+r("^")}return" "+i(O)+u(m)}).join(` + */function e(n){return Object.prototype.toString.call(n)==="[object Object]"}function t(n){var a,s;return e(n)===!1?!1:(a=n.constructor,a===void 0?!0:(s=a.prototype,!(e(s)===!1||s.hasOwnProperty("isPrototypeOf")===!1)))}return Lr.isPlainObject=t,Lr}var kc,wf;function KVe(){if(wf)return kc;wf=1;var e=function(R){return t(R)&&!n(R)};function t(S){return!!S&&typeof S=="object"}function n(S){var R=Object.prototype.toString.call(S);return R==="[object RegExp]"||R==="[object Date]"||o(S)}var a=typeof Symbol=="function"&&Symbol.for,s=a?Symbol.for("react.element"):60103;function o(S){return S.$$typeof===s}function i(S){return Array.isArray(S)?[]:{}}function r(S,R){return R.clone!==!1&&R.isMergeableObject(S)?f(i(S),S,R):S}function u(S,R,I){return S.concat(R).map(function(g){return r(g,I)})}function l(S,R){if(!R.customMerge)return f;var I=R.customMerge(S);return typeof I=="function"?I:f}function d(S){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(S).filter(function(R){return Object.propertyIsEnumerable.call(S,R)}):[]}function E(S){return Object.keys(S).concat(d(S))}function c(S,R){try{return R in S}catch{return!1}}function m(S,R){return c(S,R)&&!(Object.hasOwnProperty.call(S,R)&&Object.propertyIsEnumerable.call(S,R))}function _(S,R,I){var g={};return I.isMergeableObject(S)&&E(S).forEach(function(N){g[N]=r(S[N],I)}),E(R).forEach(function(N){m(S,N)||(c(S,N)&&I.isMergeableObject(R[N])?g[N]=l(N,I)(S[N],R[N],I):g[N]=r(R[N],I))}),g}function f(S,R,I){I=I||{},I.arrayMerge=I.arrayMerge||u,I.isMergeableObject=I.isMergeableObject||e,I.cloneUnlessOtherwiseSpecified=r;var g=Array.isArray(R),N=Array.isArray(S),b=g===N;return b?g?I.arrayMerge(S,R,I):_(S,R,I):r(R,I)}f.all=function(R,I){if(!Array.isArray(R))throw new Error("first argument should be an array");return R.reduce(function(g,N){return f(g,N,I)},{})};var O=f;return kc=O,kc}var Zr={exports:{}},qVe=Zr.exports,Mf;function jVe(){return Mf||(Mf=1,function(e){(function(t,n){e.exports?e.exports=n():t.parseSrcset=n()})(qVe,function(){return function(t){function n(g){return g===" "||g===" "||g===` +`||g==="\f"||g==="\r"}function a(g){var N,b=g.exec(t.substring(O));if(b)return N=b[0],O+=N.length,N}for(var s=t.length,o=/^[ \t\n\r\u000c]+/,i=/^[, \t\n\r\u000c]+/,r=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,l=/^\d+$/,d=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,E,c,m,_,f,O=0,S=[];;){if(a(i),O>=s)return S;E=a(r),c=[],E.slice(-1)===","?(E=E.replace(u,""),I()):R()}function R(){for(a(o),m="",_="in descriptor";;){if(f=t.charAt(O),_==="in descriptor")if(n(f))m&&(c.push(m),m="",_="after descriptor");else if(f===","){O+=1,m&&c.push(m),I();return}else if(f==="(")m=m+f,_="in parens";else if(f===""){m&&c.push(m),I();return}else m=m+f;else if(_==="in parens")if(f===")")m=m+f,_="in descriptor";else if(f===""){c.push(m),I();return}else m=m+f;else if(_==="after descriptor"&&!n(f))if(f===""){I();return}else _="in descriptor",O-=1;O+=1}}function I(){var g=!1,N,b,C,y,D={},M,P,W,Q,Se;for(y=0;y",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let o=this.source;s==null&&(s=e.isColorSupported);let i=m=>m,r=m=>m,u=m=>m;if(s){let{bold:m,gray:_,red:f}=e.createColors(!0);r=O=>m(f(O)),i=O=>_(O),t&&(u=O=>t(O))}let l=o.split(/\r?\n/),d=Math.max(this.line-3,0),E=Math.min(this.line+2,l.length),c=String(E).length;return l.slice(d,E).map((m,_)=>{let f=d+1+_,O=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(m.length>160){let R=20,I=Math.max(0,this.column-R),g=Math.max(this.column+R,this.endColumn+R),N=m.slice(I,g),b=i(O.replace(/\d/g," "))+m.slice(0,Math.min(this.column-1,R-1)).replace(/[^\t]/g," ");return r(">")+i(O)+u(N)+` + `+b+r("^")}let S=i(O.replace(/\d/g," "))+m.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(O)+u(m)+` + `+S+r("^")}return" "+i(O)+u(m)}).join(` `)}toString(){let s=this.showSourceCode();return s&&(s=` `+s+` @@ -317,22 +317,22 @@ Please report this to https://github.com/markedjs/marked.`,t){const s="An err `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(s){let o;return s.walkDecls(i=>{if(typeof i.raws.between<"u")return o=i.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(s){let o;return s.walk(i=>{if(i.nodes&&i.nodes.length===0&&(o=i.raws.after,typeof o<"u"))return!1}),o}rawIndent(s){if(s.raws.indent)return s.raws.indent;let o;return s.walk(i=>{let r=i.parent;if(r&&r!==s&&r.parent&&r.parent===s&&typeof i.raws.before<"u"){let u=i.raws.before.split(` `);return o=u[u.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(s){let o;return s.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(o=i.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(s,o){let i=s[o],r=s.raws[o];return r&&r.value===i?r.raw:i}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,o){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,o)}}return Mc=n,n.default=n,Mc}var Wc,xf;function yl(){if(xf)return Wc;xf=1;let e=_O();function t(n,a){new e(a).stringify(n)}return Wc=t,t.default=t,Wc}var $r={},Bf;function $p(){return Bf||(Bf=1,$r.isClean=Symbol("isClean"),$r.my=Symbol("my")),$r}var Fc,Gf;function $l(){if(Gf)return Fc;Gf=1;let e=yp(),t=_O(),n=yl(),{isClean:a,my:s}=$p();function o(u,l){let d=new u.constructor;for(let E in u){if(!Object.prototype.hasOwnProperty.call(u,E)||E==="proxyCache")continue;let c=u[E],m=typeof c;E==="parent"&&m==="object"?l&&(d[E]=l):E==="source"?d[E]=c:Array.isArray(c)?d[E]=c.map(_=>o(_,d)):(m==="object"&&c!==null&&(c=o(c)),d[E]=c)}return d}function i(u,l){if(l&&typeof l.offset<"u")return l.offset;let d=1,E=1,c=0;for(let m=0;ml.root().toProxy():l[d]},set(l,d,E){return l[d]===E||(l[d]=E,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="text")&&l.markDirty()),!0}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let l=this;for(;l=l.parent;)l[a]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l){let d=this.source.start;if(l.index)d=this.positionInside(l.index);else if(l.word){let c=this.source.input.css.slice(i(this.source.input.css,this.source.start),i(this.source.input.css,this.source.end)).indexOf(l.word);c!==-1&&(d=this.positionInside(c))}return d}positionInside(l){let d=this.source.start.column,E=this.source.start.line,c=i(this.source.input.css,this.source.start),m=c+l;for(let _=c;_typeof O=="object"&&O.toJSON?O.toJSON(null,d):O);else if(typeof h=="object"&&h.toJSON)E[_]=h.toJSON(null,d);else if(_==="source"){let O=d.get(h.input);O==null&&(O=m,d.set(h.input,m),m++),E[_]={end:h.end,inputId:O,start:h.start}}else E[_]=h}return c&&(E.inputs=[...d.keys()].map(_=>_.toJSON())),E}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=n){l.stringify&&(l=l.stringify);let d="";return l(this,E=>{d+=E}),d}warn(l,d,E){let c={node:this};for(let m in E)c[m]=E[m];return l.warn(d,c)}get proxyOf(){return this}}return Fc=r,r.default=r,Fc}var zc,Vf;function Ul(){if(Vf)return zc;Vf=1;let e=$l();class t extends e{constructor(a){super(a),this.type="comment"}}return zc=t,t.default=t,zc}var xc,Hf;function kl(){if(Hf)return xc;Hf=1;let e=$l();class t extends e{constructor(a){a&&typeof a.value<"u"&&typeof a.value!="string"&&(a={...a,value:String(a.value)}),super(a),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return xc=t,t.default=t,xc}var Bc,Kf;function Ks(){if(Kf)return Bc;Kf=1;let e=Ul(),t=kl(),n=$l(),{isClean:a,my:s}=$p(),o,i,r,u;function l(c){return c.map(m=>(m.nodes&&(m.nodes=l(m.nodes)),delete m.source,m))}function d(c){if(c[a]=!1,c.proxyOf.nodes)for(let m of c.proxyOf.nodes)d(m)}class E extends n{append(...m){for(let _ of m){let h=this.normalize(_,this.last);for(let O of h)this.proxyOf.nodes.push(O)}return this.markDirty(),this}cleanRaws(m){if(super.cleanRaws(m),this.nodes)for(let _ of this.nodes)_.cleanRaws(m)}each(m){if(!this.proxyOf.nodes)return;let _=this.getIterator(),h,O;for(;this.indexes[_]m[_](...h.map(O=>typeof O=="function"?(A,R)=>O(A.toProxy(),R):O)):_==="every"||_==="some"?h=>m[_]((O,...A)=>h(O.toProxy(),...A)):_==="root"?()=>m.root().toProxy():_==="nodes"?m.nodes.map(h=>h.toProxy()):_==="first"||_==="last"?m[_].toProxy():m[_]:m[_]},set(m,_,h){return m[_]===h||(m[_]=h,(_==="name"||_==="params"||_==="selector")&&m.markDirty()),!0}}}index(m){return typeof m=="number"?m:(m.proxyOf&&(m=m.proxyOf),this.proxyOf.nodes.indexOf(m))}insertAfter(m,_){let h=this.index(m),O=this.normalize(_,this.proxyOf.nodes[h]).reverse();h=this.index(m);for(let R of O)this.proxyOf.nodes.splice(h+1,0,R);let A;for(let R in this.indexes)A=this.indexes[R],h"u")m=[];else if(Array.isArray(m)){m=m.slice(0);for(let O of m)O.parent&&O.parent.removeChild(O,"ignore")}else if(m.type==="root"&&this.type!=="document"){m=m.nodes.slice(0);for(let O of m)O.parent&&O.parent.removeChild(O,"ignore")}else if(m.type)m=[m];else if(m.prop){if(typeof m.value>"u")throw new Error("Value field is missed in node creation");typeof m.value!="string"&&(m.value=String(m.value)),m=[new t(m)]}else if(m.selector||m.selectors)m=[new u(m)];else if(m.name)m=[new o(m)];else if(m.text)m=[new e(m)];else throw new Error("Unknown node type in node creation");return m.map(O=>(O[s]||E.rebuild(O),O=O.proxyOf,O.parent&&O.parent.removeChild(O),O[a]&&d(O),O.raws||(O.raws={}),typeof O.raws.before>"u"&&_&&typeof _.raws.before<"u"&&(O.raws.before=_.raws.before.replace(/\S/g,"")),O.parent=this.proxyOf,O))}prepend(...m){m=m.reverse();for(let _ of m){let h=this.normalize(_,this.first,"prepend").reverse();for(let O of h)this.proxyOf.nodes.unshift(O);for(let O in this.indexes)this.indexes[O]=this.indexes[O]+h.length}return this.markDirty(),this}push(m){return m.parent=this,this.proxyOf.nodes.push(m),this}removeAll(){for(let m of this.proxyOf.nodes)m.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(m){m=this.index(m),this.proxyOf.nodes[m].parent=void 0,this.proxyOf.nodes.splice(m,1);let _;for(let h in this.indexes)_=this.indexes[h],_>=m&&(this.indexes[h]=_-1);return this.markDirty(),this}replaceValues(m,_,h){return h||(h=_,_={}),this.walkDecls(O=>{_.props&&!_.props.includes(O.prop)||_.fast&&!O.value.includes(_.fast)||(O.value=O.value.replace(m,h))}),this.markDirty(),this}some(m){return this.nodes.some(m)}walk(m){return this.each((_,h)=>{let O;try{O=m(_,h)}catch(A){throw _.addToError(A)}return O!==!1&&_.walk&&(O=_.walk(m)),O})}walkAtRules(m,_){return _?m instanceof RegExp?this.walk((h,O)=>{if(h.type==="atrule"&&m.test(h.name))return _(h,O)}):this.walk((h,O)=>{if(h.type==="atrule"&&h.name===m)return _(h,O)}):(_=m,this.walk((h,O)=>{if(h.type==="atrule")return _(h,O)}))}walkComments(m){return this.walk((_,h)=>{if(_.type==="comment")return m(_,h)})}walkDecls(m,_){return _?m instanceof RegExp?this.walk((h,O)=>{if(h.type==="decl"&&m.test(h.prop))return _(h,O)}):this.walk((h,O)=>{if(h.type==="decl"&&h.prop===m)return _(h,O)}):(_=m,this.walk((h,O)=>{if(h.type==="decl")return _(h,O)}))}walkRules(m,_){return _?m instanceof RegExp?this.walk((h,O)=>{if(h.type==="rule"&&m.test(h.selector))return _(h,O)}):this.walk((h,O)=>{if(h.type==="rule"&&h.selector===m)return _(h,O)}):(_=m,this.walk((h,O)=>{if(h.type==="rule")return _(h,O)}))}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]}}return E.registerParse=c=>{i=c},E.registerRule=c=>{u=c},E.registerAtRule=c=>{o=c},E.registerRoot=c=>{r=c},Bc=E,E.default=E,E.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,o.prototype):c.type==="rule"?Object.setPrototypeOf(c,u.prototype):c.type==="decl"?Object.setPrototypeOf(c,t.prototype):c.type==="comment"?Object.setPrototypeOf(c,e.prototype):c.type==="root"&&Object.setPrototypeOf(c,r.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(m=>{E.rebuild(m)})},Bc}var Gc,qf;function Up(){if(qf)return Gc;qf=1;let e=Ks();class t extends e{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return Gc=t,t.default=t,e.registerAtRule(t),Gc}var Vc,jf;function kp(){if(jf)return Vc;jf=1;let e=Ks(),t,n;class a extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new n,this,o).stringify()}}return a.registerLazyResult=s=>{t=s},a.registerProcessor=s=>{n=s},Vc=a,a.default=a,Vc}var Hc,Yf;function ZVe(){if(Yf)return Hc;Yf=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Hc={nanoid:(a=21)=>{let s="",o=a|0;for(;o--;)s+=e[Math.random()*64|0];return s},customAlphabet:(a,s=21)=>(o=s)=>{let i="",r=o|0;for(;r--;)i+=a[Math.random()*a.length|0];return i}},Hc}var Kc,Xf;function fO(){if(Xf)return Kc;Xf=1;let{existsSync:e,readFileSync:t}=ea,{dirname:n,join:a}=ea,{SourceMapConsumer:s,SourceMapGenerator:o}=ea;function i(u){return Buffer?Buffer.from(u,"base64").toString():window.atob(u)}class r{constructor(l,d){if(d.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let E=d.map?d.map.prev:void 0,c=this.loadMap(d.from,E);!this.mapFile&&d.from&&(this.mapFile=d.from),this.mapFile&&(this.root=n(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(l){let d=/^data:application\/json;charset=utf-?8;base64,/,E=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,m=/^data:application\/json,/,_=l.match(c)||l.match(m);if(_)return decodeURIComponent(l.substr(_[0].length));let h=l.match(d)||l.match(E);if(h)return i(l.substr(h[0].length));let O=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+O)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let d=l.match(/\/\*\s*# sourceMappingURL=/g);if(!d)return;let E=l.lastIndexOf(d.pop()),c=l.indexOf("*/",E);E>-1&&c>-1&&(this.annotation=this.getAnnotationURL(l.substring(E,c)))}loadFile(l){if(this.root=n(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,d){if(d===!1)return!1;if(d){if(typeof d=="string")return d;if(typeof d=="function"){let E=d(l);if(E){let c=this.loadFile(E);if(!c)throw new Error("Unable to load previous source map: "+E.toString());return c}}else{if(d instanceof s)return o.fromSourceMap(d).toString();if(d instanceof o)return d.toString();if(this.isMap(d))return JSON.stringify(d);throw new Error("Unsupported previous source map format: "+d.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let E=this.annotation;return l&&(E=a(n(l),E)),this.loadFile(E)}}}startWith(l,d){return l?l.substr(0,d.length)===d:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Kc=r,r.default=r,Kc}var qc,Qf;function wl(){if(Qf)return qc;Qf=1;let{nanoid:e}=ZVe(),{isAbsolute:t,resolve:n}=ea,{SourceMapConsumer:a,SourceMapGenerator:s}=ea,{fileURLToPath:o,pathToFileURL:i}=ea,r=yp(),u=fO(),l=ea,d=Symbol("fromOffsetCache"),E=!!(a&&s),c=!!(n&&t);class m{constructor(h,O={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,O.from&&(!c||/^\w+:\/\//.test(O.from)||t(O.from)?this.file=O.from:this.file=n(O.from)),c&&E){let A=new u(this.css,O);if(A.text){this.map=A;let R=A.consumer().file;!this.file&&R&&(this.file=this.mapResolve(R))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(h,O,A,R={}){let g,I,N;if(O&&typeof O=="object"){let C=O,y=A;if(typeof C.offset=="number"){let D=this.fromOffset(C.offset);O=D.line,A=D.col}else O=C.line,A=C.column;if(typeof y.offset=="number"){let D=this.fromOffset(y.offset);I=D.line,g=D.col}else I=y.line,g=y.column}else if(!A){let C=this.fromOffset(O);O=C.line,A=C.col}let b=this.origin(O,A,I,g);return b?N=new r(h,b.endLine===void 0?b.line:{column:b.column,line:b.line},b.endLine===void 0?b.column:{column:b.endColumn,line:b.endLine},b.source,b.file,R.plugin):N=new r(h,I===void 0?O:{column:A,line:O},I===void 0?A:{column:g,line:I},this.css,this.file,R.plugin),N.input={column:A,endColumn:g,endLine:I,line:O,source:this.css},this.file&&(i&&(N.input.url=i(this.file).toString()),N.input.file=this.file),N}fromOffset(h){let O,A;if(this[d])A=this[d];else{let g=this.css.split(` -`);A=new Array(g.length);let I=0;for(let N=0,b=g.length;N=O)R=A.length-1;else{let g=A.length-2,I;for(;R>1),h=A[I+1])R=I+1;else{R=I;break}}return{col:h-A[R]+1,line:R+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:n(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,O,A,R){if(!this.map)return!1;let g=this.map.consumer(),I=g.originalPositionFor({column:O,line:h});if(!I.source)return!1;let N;typeof A=="number"&&(N=g.originalPositionFor({column:R,line:A}));let b;t(I.source)?b=i(I.source):b=new URL(I.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let C={column:I.column,endColumn:N&&N.column,endLine:N&&N.line,line:I.line,url:b.toString()};if(b.protocol==="file:")if(o)C.file=o(b);else throw new Error("file: protocol is not available in this PostCSS build");let y=g.sourceContentFor(I.source);return y&&(C.source=y),C}toJSON(){let h={};for(let O of["hasBOM","css","file","id"])this[O]!=null&&(h[O]=this[O]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return qc=m,m.default=m,l&&l.registerInput&&l.registerInput(m),qc}var jc,Zf;function lr(){if(Zf)return jc;Zf=1;let e=Ks(),t,n;class a extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,i,r){let u=super.normalize(o);if(i){if(r==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(let l of u)l.raws.before=i.raws.before}return u}removeChild(o,i){let r=this.index(o);return!i&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(o)}toResult(o={}){return new t(new n,this,o).stringify()}}return a.registerLazyResult=s=>{t=s},a.registerProcessor=s=>{n=s},jc=a,a.default=a,e.registerRoot(a),jc}var Yc,Jf;function hO(){if(Jf)return Yc;Jf=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let n=[" ",` -`," "];return e.split(t,n)},split(t,n,a){let s=[],o="",i=!1,r=0,u=!1,l="",d=!1;for(let E of t)d?d=!1:E==="\\"?d=!0:u?E===l&&(u=!1):E==='"'||E==="'"?(u=!0,l=E):E==="("?r+=1:E===")"?r>0&&(r-=1):r===0&&n.includes(E)&&(i=!0),i?(o!==""&&s.push(o.trim()),o="",i=!1):o+=E;return(a||o!=="")&&s.push(o.trim()),s}};return Yc=e,e.default=e,Yc}var Xc,eh;function wp(){if(eh)return Xc;eh=1;let e=Ks(),t=hO();class n extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let o=this.selector?this.selector.match(/,\s*/):null,i=o?o[0]:","+this.raw("between","beforeOpen");this.selector=s.join(i)}}return Xc=n,n.default=n,e.registerRule(n),Xc}var Qc,th;function JVe(){if(th)return Qc;th=1;let e=Up(),t=Ul(),n=kl(),a=wl(),s=fO(),o=lr(),i=wp();function r(u,l){if(Array.isArray(u))return u.map(c=>r(c));let{inputs:d,...E}=u;if(d){l=[];for(let c of d){let m={...c,__proto__:a.prototype};m.map&&(m.map={...m.map,__proto__:s.prototype}),l.push(m)}}if(E.nodes&&(E.nodes=u.nodes.map(c=>r(c,l))),E.source){let{inputId:c,...m}=E.source;E.source=m,c!=null&&(E.source.input=l[c])}if(E.type==="root")return new o(E);if(E.type==="decl")return new n(E);if(E.type==="rule")return new i(E);if(E.type==="comment")return new t(E);if(E.type==="atrule")return new e(E);throw new Error("Unknown node type: "+u.type)}return Qc=r,r.default=r,Qc}var Zc,nh;function SO(){if(nh)return Zc;nh=1;let{dirname:e,relative:t,resolve:n,sep:a}=ea,{SourceMapConsumer:s,SourceMapGenerator:o}=ea,{pathToFileURL:i}=ea,r=wl(),u=!!(s&&o),l=!!(e&&n&&t&&a);class d{constructor(c,m,_,h){this.stringify=c,this.mapOpts=_.map||{},this.root=m,this.opts=_,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let m=` +`?(d=1,E+=1):d+=1;return{column:d,line:E}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let d={column:this.source.start.column,line:this.source.start.line},E=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(l.word){let m=this.source.input.css.slice(i(this.source.input.css,this.source.start),i(this.source.input.css,this.source.end)).indexOf(l.word);m!==-1&&(d=this.positionInside(m),E=this.positionInside(m+l.word.length))}else l.start?d={column:l.start.column,line:l.start.line}:l.index&&(d=this.positionInside(l.index)),l.end?E={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?E=this.positionInside(l.endIndex):l.index&&(E=this.positionInside(l.index+1));return(E.linetypeof O=="object"&&O.toJSON?O.toJSON(null,d):O);else if(typeof f=="object"&&f.toJSON)E[_]=f.toJSON(null,d);else if(_==="source"){let O=d.get(f.input);O==null&&(O=m,d.set(f.input,m),m++),E[_]={end:f.end,inputId:O,start:f.start}}else E[_]=f}return c&&(E.inputs=[...d.keys()].map(_=>_.toJSON())),E}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=n){l.stringify&&(l=l.stringify);let d="";return l(this,E=>{d+=E}),d}warn(l,d,E){let c={node:this};for(let m in E)c[m]=E[m];return l.warn(d,c)}get proxyOf(){return this}}return Fc=r,r.default=r,Fc}var zc,Vf;function Ul(){if(Vf)return zc;Vf=1;let e=$l();class t extends e{constructor(a){super(a),this.type="comment"}}return zc=t,t.default=t,zc}var xc,Hf;function kl(){if(Hf)return xc;Hf=1;let e=$l();class t extends e{constructor(a){a&&typeof a.value<"u"&&typeof a.value!="string"&&(a={...a,value:String(a.value)}),super(a),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return xc=t,t.default=t,xc}var Bc,Kf;function Ks(){if(Kf)return Bc;Kf=1;let e=Ul(),t=kl(),n=$l(),{isClean:a,my:s}=$p(),o,i,r,u;function l(c){return c.map(m=>(m.nodes&&(m.nodes=l(m.nodes)),delete m.source,m))}function d(c){if(c[a]=!1,c.proxyOf.nodes)for(let m of c.proxyOf.nodes)d(m)}class E extends n{append(...m){for(let _ of m){let f=this.normalize(_,this.last);for(let O of f)this.proxyOf.nodes.push(O)}return this.markDirty(),this}cleanRaws(m){if(super.cleanRaws(m),this.nodes)for(let _ of this.nodes)_.cleanRaws(m)}each(m){if(!this.proxyOf.nodes)return;let _=this.getIterator(),f,O;for(;this.indexes[_]m[_](...f.map(O=>typeof O=="function"?(S,R)=>O(S.toProxy(),R):O)):_==="every"||_==="some"?f=>m[_]((O,...S)=>f(O.toProxy(),...S)):_==="root"?()=>m.root().toProxy():_==="nodes"?m.nodes.map(f=>f.toProxy()):_==="first"||_==="last"?m[_].toProxy():m[_]:m[_]},set(m,_,f){return m[_]===f||(m[_]=f,(_==="name"||_==="params"||_==="selector")&&m.markDirty()),!0}}}index(m){return typeof m=="number"?m:(m.proxyOf&&(m=m.proxyOf),this.proxyOf.nodes.indexOf(m))}insertAfter(m,_){let f=this.index(m),O=this.normalize(_,this.proxyOf.nodes[f]).reverse();f=this.index(m);for(let R of O)this.proxyOf.nodes.splice(f+1,0,R);let S;for(let R in this.indexes)S=this.indexes[R],f"u")m=[];else if(Array.isArray(m)){m=m.slice(0);for(let O of m)O.parent&&O.parent.removeChild(O,"ignore")}else if(m.type==="root"&&this.type!=="document"){m=m.nodes.slice(0);for(let O of m)O.parent&&O.parent.removeChild(O,"ignore")}else if(m.type)m=[m];else if(m.prop){if(typeof m.value>"u")throw new Error("Value field is missed in node creation");typeof m.value!="string"&&(m.value=String(m.value)),m=[new t(m)]}else if(m.selector||m.selectors)m=[new u(m)];else if(m.name)m=[new o(m)];else if(m.text)m=[new e(m)];else throw new Error("Unknown node type in node creation");return m.map(O=>(O[s]||E.rebuild(O),O=O.proxyOf,O.parent&&O.parent.removeChild(O),O[a]&&d(O),O.raws||(O.raws={}),typeof O.raws.before>"u"&&_&&typeof _.raws.before<"u"&&(O.raws.before=_.raws.before.replace(/\S/g,"")),O.parent=this.proxyOf,O))}prepend(...m){m=m.reverse();for(let _ of m){let f=this.normalize(_,this.first,"prepend").reverse();for(let O of f)this.proxyOf.nodes.unshift(O);for(let O in this.indexes)this.indexes[O]=this.indexes[O]+f.length}return this.markDirty(),this}push(m){return m.parent=this,this.proxyOf.nodes.push(m),this}removeAll(){for(let m of this.proxyOf.nodes)m.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(m){m=this.index(m),this.proxyOf.nodes[m].parent=void 0,this.proxyOf.nodes.splice(m,1);let _;for(let f in this.indexes)_=this.indexes[f],_>=m&&(this.indexes[f]=_-1);return this.markDirty(),this}replaceValues(m,_,f){return f||(f=_,_={}),this.walkDecls(O=>{_.props&&!_.props.includes(O.prop)||_.fast&&!O.value.includes(_.fast)||(O.value=O.value.replace(m,f))}),this.markDirty(),this}some(m){return this.nodes.some(m)}walk(m){return this.each((_,f)=>{let O;try{O=m(_,f)}catch(S){throw _.addToError(S)}return O!==!1&&_.walk&&(O=_.walk(m)),O})}walkAtRules(m,_){return _?m instanceof RegExp?this.walk((f,O)=>{if(f.type==="atrule"&&m.test(f.name))return _(f,O)}):this.walk((f,O)=>{if(f.type==="atrule"&&f.name===m)return _(f,O)}):(_=m,this.walk((f,O)=>{if(f.type==="atrule")return _(f,O)}))}walkComments(m){return this.walk((_,f)=>{if(_.type==="comment")return m(_,f)})}walkDecls(m,_){return _?m instanceof RegExp?this.walk((f,O)=>{if(f.type==="decl"&&m.test(f.prop))return _(f,O)}):this.walk((f,O)=>{if(f.type==="decl"&&f.prop===m)return _(f,O)}):(_=m,this.walk((f,O)=>{if(f.type==="decl")return _(f,O)}))}walkRules(m,_){return _?m instanceof RegExp?this.walk((f,O)=>{if(f.type==="rule"&&m.test(f.selector))return _(f,O)}):this.walk((f,O)=>{if(f.type==="rule"&&f.selector===m)return _(f,O)}):(_=m,this.walk((f,O)=>{if(f.type==="rule")return _(f,O)}))}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]}}return E.registerParse=c=>{i=c},E.registerRule=c=>{u=c},E.registerAtRule=c=>{o=c},E.registerRoot=c=>{r=c},Bc=E,E.default=E,E.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,o.prototype):c.type==="rule"?Object.setPrototypeOf(c,u.prototype):c.type==="decl"?Object.setPrototypeOf(c,t.prototype):c.type==="comment"?Object.setPrototypeOf(c,e.prototype):c.type==="root"&&Object.setPrototypeOf(c,r.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(m=>{E.rebuild(m)})},Bc}var Gc,qf;function Up(){if(qf)return Gc;qf=1;let e=Ks();class t extends e{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return Gc=t,t.default=t,e.registerAtRule(t),Gc}var Vc,jf;function kp(){if(jf)return Vc;jf=1;let e=Ks(),t,n;class a extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new n,this,o).stringify()}}return a.registerLazyResult=s=>{t=s},a.registerProcessor=s=>{n=s},Vc=a,a.default=a,Vc}var Hc,Yf;function ZVe(){if(Yf)return Hc;Yf=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Hc={nanoid:(a=21)=>{let s="",o=a|0;for(;o--;)s+=e[Math.random()*64|0];return s},customAlphabet:(a,s=21)=>(o=s)=>{let i="",r=o|0;for(;r--;)i+=a[Math.random()*a.length|0];return i}},Hc}var Kc,Xf;function fO(){if(Xf)return Kc;Xf=1;let{existsSync:e,readFileSync:t}=ea,{dirname:n,join:a}=ea,{SourceMapConsumer:s,SourceMapGenerator:o}=ea;function i(u){return Buffer?Buffer.from(u,"base64").toString():window.atob(u)}class r{constructor(l,d){if(d.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let E=d.map?d.map.prev:void 0,c=this.loadMap(d.from,E);!this.mapFile&&d.from&&(this.mapFile=d.from),this.mapFile&&(this.root=n(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(l){let d=/^data:application\/json;charset=utf-?8;base64,/,E=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,m=/^data:application\/json,/,_=l.match(c)||l.match(m);if(_)return decodeURIComponent(l.substr(_[0].length));let f=l.match(d)||l.match(E);if(f)return i(l.substr(f[0].length));let O=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+O)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let d=l.match(/\/\*\s*# sourceMappingURL=/g);if(!d)return;let E=l.lastIndexOf(d.pop()),c=l.indexOf("*/",E);E>-1&&c>-1&&(this.annotation=this.getAnnotationURL(l.substring(E,c)))}loadFile(l){if(this.root=n(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,d){if(d===!1)return!1;if(d){if(typeof d=="string")return d;if(typeof d=="function"){let E=d(l);if(E){let c=this.loadFile(E);if(!c)throw new Error("Unable to load previous source map: "+E.toString());return c}}else{if(d instanceof s)return o.fromSourceMap(d).toString();if(d instanceof o)return d.toString();if(this.isMap(d))return JSON.stringify(d);throw new Error("Unsupported previous source map format: "+d.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let E=this.annotation;return l&&(E=a(n(l),E)),this.loadFile(E)}}}startWith(l,d){return l?l.substr(0,d.length)===d:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Kc=r,r.default=r,Kc}var qc,Qf;function wl(){if(Qf)return qc;Qf=1;let{nanoid:e}=ZVe(),{isAbsolute:t,resolve:n}=ea,{SourceMapConsumer:a,SourceMapGenerator:s}=ea,{fileURLToPath:o,pathToFileURL:i}=ea,r=yp(),u=fO(),l=ea,d=Symbol("fromOffsetCache"),E=!!(a&&s),c=!!(n&&t);class m{constructor(f,O={}){if(f===null||typeof f>"u"||typeof f=="object"&&!f.toString)throw new Error(`PostCSS received ${f} instead of CSS string`);if(this.css=f.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,O.from&&(!c||/^\w+:\/\//.test(O.from)||t(O.from)?this.file=O.from:this.file=n(O.from)),c&&E){let S=new u(this.css,O);if(S.text){this.map=S;let R=S.consumer().file;!this.file&&R&&(this.file=this.mapResolve(R))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(f,O,S,R={}){let I,g,N;if(O&&typeof O=="object"){let C=O,y=S;if(typeof C.offset=="number"){let D=this.fromOffset(C.offset);O=D.line,S=D.col}else O=C.line,S=C.column;if(typeof y.offset=="number"){let D=this.fromOffset(y.offset);g=D.line,I=D.col}else g=y.line,I=y.column}else if(!S){let C=this.fromOffset(O);O=C.line,S=C.col}let b=this.origin(O,S,g,I);return b?N=new r(f,b.endLine===void 0?b.line:{column:b.column,line:b.line},b.endLine===void 0?b.column:{column:b.endColumn,line:b.endLine},b.source,b.file,R.plugin):N=new r(f,g===void 0?O:{column:S,line:O},g===void 0?S:{column:I,line:g},this.css,this.file,R.plugin),N.input={column:S,endColumn:I,endLine:g,line:O,source:this.css},this.file&&(i&&(N.input.url=i(this.file).toString()),N.input.file=this.file),N}fromOffset(f){let O,S;if(this[d])S=this[d];else{let I=this.css.split(` +`);S=new Array(I.length);let g=0;for(let N=0,b=I.length;N=O)R=S.length-1;else{let I=S.length-2,g;for(;R>1),f=S[g+1])R=g+1;else{R=g;break}}return{col:f-S[R]+1,line:R+1}}mapResolve(f){return/^\w+:\/\//.test(f)?f:n(this.map.consumer().sourceRoot||this.map.root||".",f)}origin(f,O,S,R){if(!this.map)return!1;let I=this.map.consumer(),g=I.originalPositionFor({column:O,line:f});if(!g.source)return!1;let N;typeof S=="number"&&(N=I.originalPositionFor({column:R,line:S}));let b;t(g.source)?b=i(g.source):b=new URL(g.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let C={column:g.column,endColumn:N&&N.column,endLine:N&&N.line,line:g.line,url:b.toString()};if(b.protocol==="file:")if(o)C.file=o(b);else throw new Error("file: protocol is not available in this PostCSS build");let y=I.sourceContentFor(g.source);return y&&(C.source=y),C}toJSON(){let f={};for(let O of["hasBOM","css","file","id"])this[O]!=null&&(f[O]=this[O]);return this.map&&(f.map={...this.map},f.map.consumerCache&&(f.map.consumerCache=void 0)),f}get from(){return this.file||this.id}}return qc=m,m.default=m,l&&l.registerInput&&l.registerInput(m),qc}var jc,Zf;function lr(){if(Zf)return jc;Zf=1;let e=Ks(),t,n;class a extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,i,r){let u=super.normalize(o);if(i){if(r==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(let l of u)l.raws.before=i.raws.before}return u}removeChild(o,i){let r=this.index(o);return!i&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(o)}toResult(o={}){return new t(new n,this,o).stringify()}}return a.registerLazyResult=s=>{t=s},a.registerProcessor=s=>{n=s},jc=a,a.default=a,e.registerRoot(a),jc}var Yc,Jf;function hO(){if(Jf)return Yc;Jf=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let n=[" ",` +`," "];return e.split(t,n)},split(t,n,a){let s=[],o="",i=!1,r=0,u=!1,l="",d=!1;for(let E of t)d?d=!1:E==="\\"?d=!0:u?E===l&&(u=!1):E==='"'||E==="'"?(u=!0,l=E):E==="("?r+=1:E===")"?r>0&&(r-=1):r===0&&n.includes(E)&&(i=!0),i?(o!==""&&s.push(o.trim()),o="",i=!1):o+=E;return(a||o!=="")&&s.push(o.trim()),s}};return Yc=e,e.default=e,Yc}var Xc,eh;function wp(){if(eh)return Xc;eh=1;let e=Ks(),t=hO();class n extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let o=this.selector?this.selector.match(/,\s*/):null,i=o?o[0]:","+this.raw("between","beforeOpen");this.selector=s.join(i)}}return Xc=n,n.default=n,e.registerRule(n),Xc}var Qc,th;function JVe(){if(th)return Qc;th=1;let e=Up(),t=Ul(),n=kl(),a=wl(),s=fO(),o=lr(),i=wp();function r(u,l){if(Array.isArray(u))return u.map(c=>r(c));let{inputs:d,...E}=u;if(d){l=[];for(let c of d){let m={...c,__proto__:a.prototype};m.map&&(m.map={...m.map,__proto__:s.prototype}),l.push(m)}}if(E.nodes&&(E.nodes=u.nodes.map(c=>r(c,l))),E.source){let{inputId:c,...m}=E.source;E.source=m,c!=null&&(E.source.input=l[c])}if(E.type==="root")return new o(E);if(E.type==="decl")return new n(E);if(E.type==="rule")return new i(E);if(E.type==="comment")return new t(E);if(E.type==="atrule")return new e(E);throw new Error("Unknown node type: "+u.type)}return Qc=r,r.default=r,Qc}var Zc,nh;function SO(){if(nh)return Zc;nh=1;let{dirname:e,relative:t,resolve:n,sep:a}=ea,{SourceMapConsumer:s,SourceMapGenerator:o}=ea,{pathToFileURL:i}=ea,r=wl(),u=!!(s&&o),l=!!(e&&n&&t&&a);class d{constructor(c,m,_,f){this.stringify=c,this.mapOpts=_.map||{},this.root=m,this.opts=_,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let m=` `;this.css.includes(`\r `)&&(m=`\r -`),this.css+=m+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let m=this.toUrl(this.path(c.file)),_=c.root||e(c.file),h;this.mapOpts.sourcesContent===!1?(h=new s(c.text),h.sourcesContent&&(h.sourcesContent=null)):h=c.consumer(),this.map.applySourceMap(h,m,this.toUrl(this.path(_)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let m=this.root.nodes.length-1;m>=0;m--)c=this.root.nodes[m],c.type==="comment"&&c.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(m)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&u&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,m=>{c+=m}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=o.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0}),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 o({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,m=1,_="",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},O,A;this.stringify(this.root,(R,g,I)=>{if(this.css+=R,g&&I!=="end"&&(h.generated.line=c,h.generated.column=m-1,g.source&&g.source.start?(h.source=this.sourcePath(g),h.original.line=g.source.start.line,h.original.column=g.source.start.column-1,this.map.addMapping(h)):(h.source=_,h.original.line=1,h.original.column=0,this.map.addMapping(h))),A=R.match(/\n/g),A?(c+=A.length,O=R.lastIndexOf(` -`),m=R.length-O):m+=R.length,g&&I!=="start"){let N=g.parent||{raws:{}};(!(g.type==="decl"||g.type==="atrule"&&!g.nodes)||g!==N.last||N.raws.semicolon)&&(g.source&&g.source.end?(h.source=this.sourcePath(g),h.original.line=g.source.end.line,h.original.column=g.source.end.column-1,h.generated.line=c,h.generated.column=m-2,this.map.addMapping(h)):(h.source=_,h.original.line=1,h.original.column=0,h.generated.line=c,h.generated.column=m-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(m=>m.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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let m=this.memoizedPaths.get(c);if(m)return m;let _=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(_=e(n(_,this.mapOpts.annotation)));let h=t(_,c);return this.memoizedPaths.set(c,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let m=c.source.input.map;this.previousMaps.includes(m)||this.previousMaps.push(m)}});else{let c=new r(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(m=>{if(m.source){let _=m.source.input.from;if(_&&!c[_]){c[_]=!0;let h=this.usesFileUrls?this.toFileUrl(_):this.toUrl(this.path(_));this.map.setSourceContent(h,m.source.input.css)}}});else if(this.css){let m=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(m,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let m=this.memoizedFileURLs.get(c);if(m)return m;if(i){let _=i(c).toString();return this.memoizedFileURLs.set(c,_),_}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let m=this.memoizedURLs.get(c);if(m)return m;a==="\\"&&(c=c.replace(/\\/g,"/"));let _=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,_),_}}return Zc=d,Zc}var Jc,ah;function eHe(){if(ah)return Jc;ah=1;const e=39,t=34,n=92,a=47,s=10,o=32,i=12,r=9,u=13,l=91,d=93,E=40,c=41,m=123,_=125,h=59,O=42,A=58,R=64,g=/[\t\n\f\r "#'()/;[\\\]{}]/g,I=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,N=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return Jc=function(y,D={}){let M=y.css.valueOf(),P=D.ignoreErrors,W,Q,Se,J,Ee,fe,Pe,He,et,Ve,_t=M.length,we=0,se=[],ke=[];function pt(){return we}function me(oe){throw y.error("Unclosed "+oe,we)}function Z(){return ke.length===0&&we>=_t}function Ae(oe){if(ke.length)return ke.pop();if(we>=_t)return;let U=oe?oe.ignoreUnclosed:!1;switch(W=M.charCodeAt(we),W){case s:case o:case r:case u:case i:{J=we;do J+=1,W=M.charCodeAt(J);while(W===o||W===s||W===r||W===u||W===i);fe=["space",M.slice(we,J)],we=J-1;break}case l:case d:case m:case _:case A:case h:case c:{let k=String.fromCharCode(W);fe=[k,k,we];break}case E:{if(Ve=se.length?se.pop()[1]:"",et=M.charCodeAt(we+1),Ve==="url"&&et!==e&&et!==t&&et!==o&&et!==s&&et!==r&&et!==i&&et!==u){J=we;do{if(Pe=!1,J=M.indexOf(")",J+1),J===-1)if(P||U){J=we;break}else me("bracket");for(He=J;M.charCodeAt(He-1)===n;)He-=1,Pe=!Pe}while(Pe);fe=["brackets",M.slice(we,J+1),we,J],we=J}else J=M.indexOf(")",we+1),Q=M.slice(we,J+1),J===-1||N.test(Q)?fe=["(","(",we]:(fe=["brackets",Q,we,J],we=J);break}case e:case t:{Ee=W===e?"'":'"',J=we;do{if(Pe=!1,J=M.indexOf(Ee,J+1),J===-1)if(P||U){J=we+1;break}else me("string");for(He=J;M.charCodeAt(He-1)===n;)He-=1,Pe=!Pe}while(Pe);fe=["string",M.slice(we,J+1),we,J],we=J;break}case R:{g.lastIndex=we+1,g.test(M),g.lastIndex===0?J=M.length-1:J=g.lastIndex-2,fe=["at-word",M.slice(we,J+1),we,J],we=J;break}case n:{for(J=we,Se=!0;M.charCodeAt(J+1)===n;)J+=1,Se=!Se;if(W=M.charCodeAt(J+1),Se&&W!==a&&W!==o&&W!==s&&W!==r&&W!==u&&W!==i&&(J+=1,b.test(M.charAt(J)))){for(;b.test(M.charAt(J+1));)J+=1;M.charCodeAt(J+1)===o&&(J+=1)}fe=["word",M.slice(we,J+1),we,J],we=J;break}default:{W===a&&M.charCodeAt(we+1)===O?(J=M.indexOf("*/",we+2)+1,J===0&&(P||U?J=M.length:me("comment")),fe=["comment",M.slice(we,J+1),we,J],we=J):(I.lastIndex=we+1,I.test(M),I.lastIndex===0?J=M.length-1:J=I.lastIndex-2,fe=["word",M.slice(we,J+1),we,J],se.push(fe),we=J);break}}return we++,fe}function Te(oe){ke.push(oe)}return{back:Te,endOfFile:Z,nextToken:Ae,position:pt}},Jc}var ed,sh;function tHe(){if(sh)return ed;sh=1;let e=Up(),t=Ul(),n=kl(),a=lr(),s=wp(),o=eHe();const i={empty:!0,space:!0};function r(l){for(let d=l.length-1;d>=0;d--){let E=l[d],c=E[3]||E[2];if(c)return c}}class u{constructor(d){this.input=d,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:d,start:{column:1,line:1,offset:0}}}atrule(d){let E=new e;E.name=d[1].slice(1),E.name===""&&this.unnamedAtrule(E,d),this.init(E,d[2]);let c,m,_,h=!1,O=!1,A=[],R=[];for(;!this.tokenizer.endOfFile();){if(d=this.tokenizer.nextToken(),c=d[0],c==="("||c==="["?R.push(c==="("?")":"]"):c==="{"&&R.length>0?R.push("}"):c===R[R.length-1]&&R.pop(),R.length===0)if(c===";"){E.source.end=this.getPosition(d[2]),E.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){O=!0;break}else if(c==="}"){if(A.length>0){for(_=A.length-1,m=A[_];m&&m[0]==="space";)m=A[--_];m&&(E.source.end=this.getPosition(m[3]||m[2]),E.source.end.offset++)}this.end(d);break}else A.push(d);else A.push(d);if(this.tokenizer.endOfFile()){h=!0;break}}E.raws.between=this.spacesAndCommentsFromEnd(A),A.length?(E.raws.afterName=this.spacesAndCommentsFromStart(A),this.raw(E,"params",A),h&&(d=A[A.length-1],E.source.end=this.getPosition(d[3]||d[2]),E.source.end.offset++,this.spaces=E.raws.between,E.raws.between="")):(E.raws.afterName="",E.params=""),O&&(E.nodes=[],this.current=E)}checkMissedSemicolon(d){let E=this.colon(d);if(E===!1)return;let c=0,m;for(let _=E-1;_>=0&&(m=d[_],!(m[0]!=="space"&&(c+=1,c===2)));_--);throw this.input.error("Missed semicolon",m[0]==="word"?m[3]+1:m[2])}colon(d){let E=0,c,m,_;for(let[h,O]of d.entries()){if(m=O,_=m[0],_==="("&&(E+=1),_===")"&&(E-=1),E===0&&_===":")if(!c)this.doubleColon(m);else{if(c[0]==="word"&&c[1]==="progid")continue;return h}c=m}return!1}comment(d){let E=new t;this.init(E,d[2]),E.source.end=this.getPosition(d[3]||d[2]),E.source.end.offset++;let c=d[1].slice(2,-2);if(/^\s*$/.test(c))E.text="",E.raws.left=c,E.raws.right="";else{let m=c.match(/^(\s*)([^]*\S)(\s*)$/);E.text=m[2],E.raws.left=m[1],E.raws.right=m[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(d,E){let c=new n;this.init(c,d[0][2]);let m=d[d.length-1];for(m[0]===";"&&(this.semicolon=!0,d.pop()),c.source.end=this.getPosition(m[3]||m[2]||r(d)),c.source.end.offset++;d[0][0]!=="word";)d.length===1&&this.unknownWord(d),c.raws.before+=d.shift()[1];for(c.source.start=this.getPosition(d[0][2]),c.prop="";d.length;){let R=d[0][0];if(R===":"||R==="space"||R==="comment")break;c.prop+=d.shift()[1]}c.raws.between="";let _;for(;d.length;)if(_=d.shift(),_[0]===":"){c.raws.between+=_[1];break}else _[0]==="word"&&/\w/.test(_[1])&&this.unknownWord([_]),c.raws.between+=_[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let h=[],O;for(;d.length&&(O=d[0][0],!(O!=="space"&&O!=="comment"));)h.push(d.shift());this.precheckMissedSemicolon(d);for(let R=d.length-1;R>=0;R--){if(_=d[R],_[1].toLowerCase()==="!important"){c.important=!0;let g=this.stringFrom(d,R);g=this.spacesFromEnd(d)+g,g!==" !important"&&(c.raws.important=g);break}else if(_[1].toLowerCase()==="important"){let g=d.slice(0),I="";for(let N=R;N>0;N--){let b=g[N][0];if(I.trim().startsWith("!")&&b!=="space")break;I=g.pop()[1]+I}I.trim().startsWith("!")&&(c.important=!0,c.raws.important=I,d=g)}if(_[0]!=="space"&&_[0]!=="comment")break}d.some(R=>R[0]!=="space"&&R[0]!=="comment")&&(c.raws.between+=h.map(R=>R[1]).join(""),h=[]),this.raw(c,"value",h.concat(d),E),c.value.includes(":")&&!E&&this.checkMissedSemicolon(d)}doubleColon(d){throw this.input.error("Double colon",{offset:d[2]},{offset:d[2]+d[1].length})}emptyRule(d){let E=new s;this.init(E,d[2]),E.selector="",E.raws.between="",this.current=E}end(d){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(d[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(d)}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(d){if(this.spaces+=d[1],this.current.nodes){let E=this.current.nodes[this.current.nodes.length-1];E&&E.type==="rule"&&!E.raws.ownSemicolon&&(E.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(d){let E=this.input.fromOffset(d);return{column:E.col,line:E.line,offset:d}}init(d,E){this.current.push(d),d.source={input:this.input,start:this.getPosition(E)},d.raws.before=this.spaces,this.spaces="",d.type!=="comment"&&(this.semicolon=!1)}other(d){let E=!1,c=null,m=!1,_=null,h=[],O=d[1].startsWith("--"),A=[],R=d;for(;R;){if(c=R[0],A.push(R),c==="("||c==="[")_||(_=R),h.push(c==="("?")":"]");else if(O&&m&&c==="{")_||(_=R),h.push("}");else if(h.length===0)if(c===";")if(m){this.decl(A,O);return}else break;else if(c==="{"){this.rule(A);return}else if(c==="}"){this.tokenizer.back(A.pop()),E=!0;break}else c===":"&&(m=!0);else c===h[h.length-1]&&(h.pop(),h.length===0&&(_=null));R=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(E=!0),h.length>0&&this.unclosedBracket(_),E&&m){if(!O)for(;A.length&&(R=A[A.length-1][0],!(R!=="space"&&R!=="comment"));)this.tokenizer.back(A.pop());this.decl(A,O)}else this.unknownWord(A)}parse(){let d;for(;!this.tokenizer.endOfFile();)switch(d=this.tokenizer.nextToken(),d[0]){case"space":this.spaces+=d[1];break;case";":this.freeSemicolon(d);break;case"}":this.end(d);break;case"comment":this.comment(d);break;case"at-word":this.atrule(d);break;case"{":this.emptyRule(d);break;default:this.other(d);break}this.endFile()}precheckMissedSemicolon(){}raw(d,E,c,m){let _,h,O=c.length,A="",R=!0,g,I;for(let N=0;Nb+C[1],"");d.raws[E]={raw:N,value:A}}d[E]=A}rule(d){d.pop();let E=new s;this.init(E,d[0][2]),E.raws.between=this.spacesAndCommentsFromEnd(d),this.raw(E,"selector",d),this.current=E}spacesAndCommentsFromEnd(d){let E,c="";for(;d.length&&(E=d[d.length-1][0],!(E!=="space"&&E!=="comment"));)c=d.pop()[1]+c;return c}spacesAndCommentsFromStart(d){let E,c="";for(;d.length&&(E=d[0][0],!(E!=="space"&&E!=="comment"));)c+=d.shift()[1];return c}spacesFromEnd(d){let E,c="";for(;d.length&&(E=d[d.length-1][0],E==="space");)c=d.pop()[1]+c;return c}stringFrom(d,E){let c="";for(let m=E;ma.type==="warning")}get content(){return this.css}}return ad=t,t.default=t,ad}var sd,uh;function OO(){if(uh)return sd;uh=1;let e=Ks(),t=kp(),n=SO(),a=Mp(),s=Wp(),o=lr(),i=yl(),{isClean:r,my:u}=$p();const l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},E={Once:!0,postcssPlugin:!0,prepare:!0},c=0;function m(g){return typeof g=="object"&&typeof g.then=="function"}function _(g){let I=!1,N=l[g.type];return g.type==="decl"?I=g.prop.toLowerCase():g.type==="atrule"&&(I=g.name.toLowerCase()),I&&g.append?[N,N+"-"+I,c,N+"Exit",N+"Exit-"+I]:I?[N,N+"-"+I,N+"Exit",N+"Exit-"+I]:g.append?[N,c,N+"Exit"]:[N,N+"Exit"]}function h(g){let I;return g.type==="document"?I=["Document",c,"DocumentExit"]:g.type==="root"?I=["Root",c,"RootExit"]:I=_(g),{eventIndex:0,events:I,iterator:0,node:g,visitorIndex:0,visitors:[]}}function O(g){return g[r]=!1,g.nodes&&g.nodes.forEach(I=>O(I)),g}let A={};class R{constructor(I,N,b){this.stringified=!1,this.processed=!1;let C;if(typeof N=="object"&&N!==null&&(N.type==="root"||N.type==="document"))C=O(N);else if(N instanceof R||N instanceof s)C=O(N.root),N.map&&(typeof b.map>"u"&&(b.map={}),b.map.inline||(b.map.inline=!1),b.map.prev=N.map);else{let y=a;b.syntax&&(y=b.syntax.parse),b.parser&&(y=b.parser),y.parse&&(y=y.parse);try{C=y(N,b)}catch(D){this.processed=!0,this.error=D}C&&!C[u]&&e.rebuild(C)}this.result=new s(I,C,b),this.helpers={...A,postcss:A,result:this.result},this.plugins=this.processor.plugins.map(y=>typeof y=="object"&&y.prepare?{...y,...y.prepare(this.result)}:y)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(I){return this.async().catch(I)}finally(I){return this.async().then(I,I)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(I,N){let b=this.result.lastPlugin;try{N&&N.addToError(I),this.error=I,I.name==="CssSyntaxError"&&!I.plugin?(I.plugin=b.postcssPlugin,I.setMessage()):b.postcssVersion}catch(C){console&&console.error&&console.error(C)}return I}prepareVisitors(){this.listeners={};let I=(N,b,C)=>{this.listeners[b]||(this.listeners[b]=[]),this.listeners[b].push([N,C])};for(let N of this.plugins)if(typeof N=="object")for(let b in N){if(!d[b]&&/^[A-Z]/.test(b))throw new Error(`Unknown event ${b} in ${N.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!E[b])if(typeof N[b]=="object")for(let C in N[b])C==="*"?I(N,b,N[b][C]):I(N,b+"-"+C.toLowerCase(),N[b][C]);else typeof N[b]=="function"&&I(N,b,N[b])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let I=0;I0;){let b=this.visitTick(N);if(m(b))try{await b}catch(C){let y=N[N.length-1].node;throw this.handleError(C,y)}}}if(this.listeners.OnceExit)for(let[N,b]of this.listeners.OnceExit){this.result.lastPlugin=N;try{if(I.type==="document"){let C=I.nodes.map(y=>b(y,this.helpers));await Promise.all(C)}else await b(I,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(I){this.result.lastPlugin=I;try{if(typeof I=="object"&&I.Once){if(this.result.root.type==="document"){let N=this.result.root.nodes.map(b=>I.Once(b,this.helpers));return m(N[0])?Promise.all(N):N}return I.Once(this.result.root,this.helpers)}else if(typeof I=="function")return I(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 I=this.result.opts,N=i;I.syntax&&(N=I.syntax.stringify),I.stringifier&&(N=I.stringifier),N.stringify&&(N=N.stringify);let C=new n(N,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[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 I of this.plugins){let N=this.runOnRoot(I);if(m(N))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let I=this.result.root;for(;!I[r];)I[r]=!0,this.walkSync(I);if(this.listeners.OnceExit)if(I.type==="document")for(let N of I.nodes)this.visitSync(this.listeners.OnceExit,N);else this.visitSync(this.listeners.OnceExit,I)}return this.result}then(I,N){return this.async().then(I,N)}toString(){return this.css}visitSync(I,N){for(let[b,C]of I){this.result.lastPlugin=b;let y;try{y=C(N,this.helpers)}catch(D){throw this.handleError(D,N.proxyOf)}if(N.type!=="root"&&N.type!=="document"&&!N.parent)return!0;if(m(y))throw this.getAsyncError()}}visitTick(I){let N=I[I.length-1],{node:b,visitors:C}=N;if(b.type!=="root"&&b.type!=="document"&&!b.parent){I.pop();return}if(C.length>0&&N.visitorIndex{C[r]||this.walkSync(C)});else{let C=this.listeners[b];if(C&&this.visitSync(C,I.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"}}return R.registerPostcss=g=>{A=g},sd=R,R.default=R,o.registerLazyResult(R),t.registerLazyResult(R),sd}var od,lh;function nHe(){if(lh)return od;lh=1;let e=SO(),t=Mp();const n=Wp();let a=yl();class s{constructor(i,r,u){r=r.toString(),this.stringified=!1,this._processor=i,this._css=r,this._opts=u,this._map=void 0;let l,d=a;this.result=new n(this._processor,l,this._opts),this.result.css=r;let E=this;Object.defineProperty(this.result,"root",{get(){return E.root}});let c=new e(d,l,this._opts,r);if(c.isMap()){let[m,_]=c.generate();m&&(this.result.css=m),_&&(this.result.map=_)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(i){return this.async().catch(i)}finally(i){return this.async().then(i,i)}sync(){if(this.error)throw this.error;return this.result}then(i,r){return this.async().then(i,r)}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 i,r=t;try{i=r(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=i,i}get[Symbol.toStringTag](){return"NoWorkResult"}}return od=s,s.default=s,od}var id,ch;function aHe(){if(ch)return id;ch=1;let e=kp(),t=OO(),n=nHe(),a=lr();class s{constructor(i=[]){this.version="8.4.49",this.plugins=this.normalize(i)}normalize(i){let r=[];for(let u of i)if(u.postcss===!0?u=u():u.postcss&&(u=u.postcss),typeof u=="object"&&Array.isArray(u.plugins))r=r.concat(u.plugins);else if(typeof u=="object"&&u.postcssPlugin)r.push(u);else if(typeof u=="function")r.push(u);else if(!(typeof u=="object"&&(u.parse||u.stringify)))throw new Error(u+" is not a PostCSS plugin");return r}process(i,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new n(this,i,r):new t(this,i,r)}use(i){return this.plugins=this.plugins.concat(this.normalize([i])),this}}return id=s,s.default=s,a.registerProcessor(s),e.registerProcessor(s),id}var rd,dh;function sHe(){if(dh)return rd;dh=1;var e={};let t=Up(),n=Ul(),a=Ks(),s=yp(),o=kl(),i=kp(),r=JVe(),u=wl(),l=OO(),d=hO(),E=$l(),c=Mp(),m=aHe(),_=Wp(),h=lr(),O=wp(),A=yl(),R=AO();function g(...I){return I.length===1&&Array.isArray(I[0])&&(I=I[0]),new m(I)}return g.plugin=function(N,b){let C=!1;function y(...M){console&&console.warn&&!C&&(C=!0,console.warn(N+`: postcss.plugin was deprecated. Migration guide: +`),this.css+=m+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let m=this.toUrl(this.path(c.file)),_=c.root||e(c.file),f;this.mapOpts.sourcesContent===!1?(f=new s(c.text),f.sourcesContent&&(f.sourcesContent=null)):f=c.consumer(),this.map.applySourceMap(f,m,this.toUrl(this.path(_)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let m=this.root.nodes.length-1;m>=0;m--)c=this.root.nodes[m],c.type==="comment"&&c.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(m)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&u&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,m=>{c+=m}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=o.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0}),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 o({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,m=1,_="",f={generated:{column:0,line:0},original:{column:0,line:0},source:""},O,S;this.stringify(this.root,(R,I,g)=>{if(this.css+=R,I&&g!=="end"&&(f.generated.line=c,f.generated.column=m-1,I.source&&I.source.start?(f.source=this.sourcePath(I),f.original.line=I.source.start.line,f.original.column=I.source.start.column-1,this.map.addMapping(f)):(f.source=_,f.original.line=1,f.original.column=0,this.map.addMapping(f))),S=R.match(/\n/g),S?(c+=S.length,O=R.lastIndexOf(` +`),m=R.length-O):m+=R.length,I&&g!=="start"){let N=I.parent||{raws:{}};(!(I.type==="decl"||I.type==="atrule"&&!I.nodes)||I!==N.last||N.raws.semicolon)&&(I.source&&I.source.end?(f.source=this.sourcePath(I),f.original.line=I.source.end.line,f.original.column=I.source.end.column-1,f.generated.line=c,f.generated.column=m-2,this.map.addMapping(f)):(f.source=_,f.original.line=1,f.original.column=0,f.generated.line=c,f.generated.column=m-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(m=>m.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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let m=this.memoizedPaths.get(c);if(m)return m;let _=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(_=e(n(_,this.mapOpts.annotation)));let f=t(_,c);return this.memoizedPaths.set(c,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let m=c.source.input.map;this.previousMaps.includes(m)||this.previousMaps.push(m)}});else{let c=new r(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(m=>{if(m.source){let _=m.source.input.from;if(_&&!c[_]){c[_]=!0;let f=this.usesFileUrls?this.toFileUrl(_):this.toUrl(this.path(_));this.map.setSourceContent(f,m.source.input.css)}}});else if(this.css){let m=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(m,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let m=this.memoizedFileURLs.get(c);if(m)return m;if(i){let _=i(c).toString();return this.memoizedFileURLs.set(c,_),_}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let m=this.memoizedURLs.get(c);if(m)return m;a==="\\"&&(c=c.replace(/\\/g,"/"));let _=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,_),_}}return Zc=d,Zc}var Jc,ah;function eHe(){if(ah)return Jc;ah=1;const e=39,t=34,n=92,a=47,s=10,o=32,i=12,r=9,u=13,l=91,d=93,E=40,c=41,m=123,_=125,f=59,O=42,S=58,R=64,I=/[\t\n\f\r "#'()/;[\\\]{}]/g,g=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,N=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return Jc=function(y,D={}){let M=y.css.valueOf(),P=D.ignoreErrors,W,Q,Se,J,Ee,fe,Pe,Ke,et,He,_t=M.length,we=0,se=[],ke=[];function pt(){return we}function me(oe){throw y.error("Unclosed "+oe,we)}function Z(){return ke.length===0&&we>=_t}function Ae(oe){if(ke.length)return ke.pop();if(we>=_t)return;let U=oe?oe.ignoreUnclosed:!1;switch(W=M.charCodeAt(we),W){case s:case o:case r:case u:case i:{J=we;do J+=1,W=M.charCodeAt(J);while(W===o||W===s||W===r||W===u||W===i);fe=["space",M.slice(we,J)],we=J-1;break}case l:case d:case m:case _:case S:case f:case c:{let k=String.fromCharCode(W);fe=[k,k,we];break}case E:{if(He=se.length?se.pop()[1]:"",et=M.charCodeAt(we+1),He==="url"&&et!==e&&et!==t&&et!==o&&et!==s&&et!==r&&et!==i&&et!==u){J=we;do{if(Pe=!1,J=M.indexOf(")",J+1),J===-1)if(P||U){J=we;break}else me("bracket");for(Ke=J;M.charCodeAt(Ke-1)===n;)Ke-=1,Pe=!Pe}while(Pe);fe=["brackets",M.slice(we,J+1),we,J],we=J}else J=M.indexOf(")",we+1),Q=M.slice(we,J+1),J===-1||N.test(Q)?fe=["(","(",we]:(fe=["brackets",Q,we,J],we=J);break}case e:case t:{Ee=W===e?"'":'"',J=we;do{if(Pe=!1,J=M.indexOf(Ee,J+1),J===-1)if(P||U){J=we+1;break}else me("string");for(Ke=J;M.charCodeAt(Ke-1)===n;)Ke-=1,Pe=!Pe}while(Pe);fe=["string",M.slice(we,J+1),we,J],we=J;break}case R:{I.lastIndex=we+1,I.test(M),I.lastIndex===0?J=M.length-1:J=I.lastIndex-2,fe=["at-word",M.slice(we,J+1),we,J],we=J;break}case n:{for(J=we,Se=!0;M.charCodeAt(J+1)===n;)J+=1,Se=!Se;if(W=M.charCodeAt(J+1),Se&&W!==a&&W!==o&&W!==s&&W!==r&&W!==u&&W!==i&&(J+=1,b.test(M.charAt(J)))){for(;b.test(M.charAt(J+1));)J+=1;M.charCodeAt(J+1)===o&&(J+=1)}fe=["word",M.slice(we,J+1),we,J],we=J;break}default:{W===a&&M.charCodeAt(we+1)===O?(J=M.indexOf("*/",we+2)+1,J===0&&(P||U?J=M.length:me("comment")),fe=["comment",M.slice(we,J+1),we,J],we=J):(g.lastIndex=we+1,g.test(M),g.lastIndex===0?J=M.length-1:J=g.lastIndex-2,fe=["word",M.slice(we,J+1),we,J],se.push(fe),we=J);break}}return we++,fe}function Te(oe){ke.push(oe)}return{back:Te,endOfFile:Z,nextToken:Ae,position:pt}},Jc}var ed,sh;function tHe(){if(sh)return ed;sh=1;let e=Up(),t=Ul(),n=kl(),a=lr(),s=wp(),o=eHe();const i={empty:!0,space:!0};function r(l){for(let d=l.length-1;d>=0;d--){let E=l[d],c=E[3]||E[2];if(c)return c}}class u{constructor(d){this.input=d,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:d,start:{column:1,line:1,offset:0}}}atrule(d){let E=new e;E.name=d[1].slice(1),E.name===""&&this.unnamedAtrule(E,d),this.init(E,d[2]);let c,m,_,f=!1,O=!1,S=[],R=[];for(;!this.tokenizer.endOfFile();){if(d=this.tokenizer.nextToken(),c=d[0],c==="("||c==="["?R.push(c==="("?")":"]"):c==="{"&&R.length>0?R.push("}"):c===R[R.length-1]&&R.pop(),R.length===0)if(c===";"){E.source.end=this.getPosition(d[2]),E.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){O=!0;break}else if(c==="}"){if(S.length>0){for(_=S.length-1,m=S[_];m&&m[0]==="space";)m=S[--_];m&&(E.source.end=this.getPosition(m[3]||m[2]),E.source.end.offset++)}this.end(d);break}else S.push(d);else S.push(d);if(this.tokenizer.endOfFile()){f=!0;break}}E.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(E.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(E,"params",S),f&&(d=S[S.length-1],E.source.end=this.getPosition(d[3]||d[2]),E.source.end.offset++,this.spaces=E.raws.between,E.raws.between="")):(E.raws.afterName="",E.params=""),O&&(E.nodes=[],this.current=E)}checkMissedSemicolon(d){let E=this.colon(d);if(E===!1)return;let c=0,m;for(let _=E-1;_>=0&&(m=d[_],!(m[0]!=="space"&&(c+=1,c===2)));_--);throw this.input.error("Missed semicolon",m[0]==="word"?m[3]+1:m[2])}colon(d){let E=0,c,m,_;for(let[f,O]of d.entries()){if(m=O,_=m[0],_==="("&&(E+=1),_===")"&&(E-=1),E===0&&_===":")if(!c)this.doubleColon(m);else{if(c[0]==="word"&&c[1]==="progid")continue;return f}c=m}return!1}comment(d){let E=new t;this.init(E,d[2]),E.source.end=this.getPosition(d[3]||d[2]),E.source.end.offset++;let c=d[1].slice(2,-2);if(/^\s*$/.test(c))E.text="",E.raws.left=c,E.raws.right="";else{let m=c.match(/^(\s*)([^]*\S)(\s*)$/);E.text=m[2],E.raws.left=m[1],E.raws.right=m[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(d,E){let c=new n;this.init(c,d[0][2]);let m=d[d.length-1];for(m[0]===";"&&(this.semicolon=!0,d.pop()),c.source.end=this.getPosition(m[3]||m[2]||r(d)),c.source.end.offset++;d[0][0]!=="word";)d.length===1&&this.unknownWord(d),c.raws.before+=d.shift()[1];for(c.source.start=this.getPosition(d[0][2]),c.prop="";d.length;){let R=d[0][0];if(R===":"||R==="space"||R==="comment")break;c.prop+=d.shift()[1]}c.raws.between="";let _;for(;d.length;)if(_=d.shift(),_[0]===":"){c.raws.between+=_[1];break}else _[0]==="word"&&/\w/.test(_[1])&&this.unknownWord([_]),c.raws.between+=_[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let f=[],O;for(;d.length&&(O=d[0][0],!(O!=="space"&&O!=="comment"));)f.push(d.shift());this.precheckMissedSemicolon(d);for(let R=d.length-1;R>=0;R--){if(_=d[R],_[1].toLowerCase()==="!important"){c.important=!0;let I=this.stringFrom(d,R);I=this.spacesFromEnd(d)+I,I!==" !important"&&(c.raws.important=I);break}else if(_[1].toLowerCase()==="important"){let I=d.slice(0),g="";for(let N=R;N>0;N--){let b=I[N][0];if(g.trim().startsWith("!")&&b!=="space")break;g=I.pop()[1]+g}g.trim().startsWith("!")&&(c.important=!0,c.raws.important=g,d=I)}if(_[0]!=="space"&&_[0]!=="comment")break}d.some(R=>R[0]!=="space"&&R[0]!=="comment")&&(c.raws.between+=f.map(R=>R[1]).join(""),f=[]),this.raw(c,"value",f.concat(d),E),c.value.includes(":")&&!E&&this.checkMissedSemicolon(d)}doubleColon(d){throw this.input.error("Double colon",{offset:d[2]},{offset:d[2]+d[1].length})}emptyRule(d){let E=new s;this.init(E,d[2]),E.selector="",E.raws.between="",this.current=E}end(d){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(d[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(d)}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(d){if(this.spaces+=d[1],this.current.nodes){let E=this.current.nodes[this.current.nodes.length-1];E&&E.type==="rule"&&!E.raws.ownSemicolon&&(E.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(d){let E=this.input.fromOffset(d);return{column:E.col,line:E.line,offset:d}}init(d,E){this.current.push(d),d.source={input:this.input,start:this.getPosition(E)},d.raws.before=this.spaces,this.spaces="",d.type!=="comment"&&(this.semicolon=!1)}other(d){let E=!1,c=null,m=!1,_=null,f=[],O=d[1].startsWith("--"),S=[],R=d;for(;R;){if(c=R[0],S.push(R),c==="("||c==="[")_||(_=R),f.push(c==="("?")":"]");else if(O&&m&&c==="{")_||(_=R),f.push("}");else if(f.length===0)if(c===";")if(m){this.decl(S,O);return}else break;else if(c==="{"){this.rule(S);return}else if(c==="}"){this.tokenizer.back(S.pop()),E=!0;break}else c===":"&&(m=!0);else c===f[f.length-1]&&(f.pop(),f.length===0&&(_=null));R=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(E=!0),f.length>0&&this.unclosedBracket(_),E&&m){if(!O)for(;S.length&&(R=S[S.length-1][0],!(R!=="space"&&R!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,O)}else this.unknownWord(S)}parse(){let d;for(;!this.tokenizer.endOfFile();)switch(d=this.tokenizer.nextToken(),d[0]){case"space":this.spaces+=d[1];break;case";":this.freeSemicolon(d);break;case"}":this.end(d);break;case"comment":this.comment(d);break;case"at-word":this.atrule(d);break;case"{":this.emptyRule(d);break;default:this.other(d);break}this.endFile()}precheckMissedSemicolon(){}raw(d,E,c,m){let _,f,O=c.length,S="",R=!0,I,g;for(let N=0;Nb+C[1],"");d.raws[E]={raw:N,value:S}}d[E]=S}rule(d){d.pop();let E=new s;this.init(E,d[0][2]),E.raws.between=this.spacesAndCommentsFromEnd(d),this.raw(E,"selector",d),this.current=E}spacesAndCommentsFromEnd(d){let E,c="";for(;d.length&&(E=d[d.length-1][0],!(E!=="space"&&E!=="comment"));)c=d.pop()[1]+c;return c}spacesAndCommentsFromStart(d){let E,c="";for(;d.length&&(E=d[0][0],!(E!=="space"&&E!=="comment"));)c+=d.shift()[1];return c}spacesFromEnd(d){let E,c="";for(;d.length&&(E=d[d.length-1][0],E==="space");)c=d.pop()[1]+c;return c}stringFrom(d,E){let c="";for(let m=E;ma.type==="warning")}get content(){return this.css}}return ad=t,t.default=t,ad}var sd,uh;function OO(){if(uh)return sd;uh=1;let e=Ks(),t=kp(),n=SO(),a=Mp(),s=Wp(),o=lr(),i=yl(),{isClean:r,my:u}=$p();const l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},E={Once:!0,postcssPlugin:!0,prepare:!0},c=0;function m(I){return typeof I=="object"&&typeof I.then=="function"}function _(I){let g=!1,N=l[I.type];return I.type==="decl"?g=I.prop.toLowerCase():I.type==="atrule"&&(g=I.name.toLowerCase()),g&&I.append?[N,N+"-"+g,c,N+"Exit",N+"Exit-"+g]:g?[N,N+"-"+g,N+"Exit",N+"Exit-"+g]:I.append?[N,c,N+"Exit"]:[N,N+"Exit"]}function f(I){let g;return I.type==="document"?g=["Document",c,"DocumentExit"]:I.type==="root"?g=["Root",c,"RootExit"]:g=_(I),{eventIndex:0,events:g,iterator:0,node:I,visitorIndex:0,visitors:[]}}function O(I){return I[r]=!1,I.nodes&&I.nodes.forEach(g=>O(g)),I}let S={};class R{constructor(g,N,b){this.stringified=!1,this.processed=!1;let C;if(typeof N=="object"&&N!==null&&(N.type==="root"||N.type==="document"))C=O(N);else if(N instanceof R||N instanceof s)C=O(N.root),N.map&&(typeof b.map>"u"&&(b.map={}),b.map.inline||(b.map.inline=!1),b.map.prev=N.map);else{let y=a;b.syntax&&(y=b.syntax.parse),b.parser&&(y=b.parser),y.parse&&(y=y.parse);try{C=y(N,b)}catch(D){this.processed=!0,this.error=D}C&&!C[u]&&e.rebuild(C)}this.result=new s(g,C,b),this.helpers={...S,postcss:S,result:this.result},this.plugins=this.processor.plugins.map(y=>typeof y=="object"&&y.prepare?{...y,...y.prepare(this.result)}:y)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(g){return this.async().catch(g)}finally(g){return this.async().then(g,g)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(g,N){let b=this.result.lastPlugin;try{N&&N.addToError(g),this.error=g,g.name==="CssSyntaxError"&&!g.plugin?(g.plugin=b.postcssPlugin,g.setMessage()):b.postcssVersion}catch(C){console&&console.error&&console.error(C)}return g}prepareVisitors(){this.listeners={};let g=(N,b,C)=>{this.listeners[b]||(this.listeners[b]=[]),this.listeners[b].push([N,C])};for(let N of this.plugins)if(typeof N=="object")for(let b in N){if(!d[b]&&/^[A-Z]/.test(b))throw new Error(`Unknown event ${b} in ${N.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!E[b])if(typeof N[b]=="object")for(let C in N[b])C==="*"?g(N,b,N[b][C]):g(N,b+"-"+C.toLowerCase(),N[b][C]);else typeof N[b]=="function"&&g(N,b,N[b])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let g=0;g0;){let b=this.visitTick(N);if(m(b))try{await b}catch(C){let y=N[N.length-1].node;throw this.handleError(C,y)}}}if(this.listeners.OnceExit)for(let[N,b]of this.listeners.OnceExit){this.result.lastPlugin=N;try{if(g.type==="document"){let C=g.nodes.map(y=>b(y,this.helpers));await Promise.all(C)}else await b(g,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(g){this.result.lastPlugin=g;try{if(typeof g=="object"&&g.Once){if(this.result.root.type==="document"){let N=this.result.root.nodes.map(b=>g.Once(b,this.helpers));return m(N[0])?Promise.all(N):N}return g.Once(this.result.root,this.helpers)}else if(typeof g=="function")return g(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 g=this.result.opts,N=i;g.syntax&&(N=g.syntax.stringify),g.stringifier&&(N=g.stringifier),N.stringify&&(N=N.stringify);let C=new n(N,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[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 g of this.plugins){let N=this.runOnRoot(g);if(m(N))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let g=this.result.root;for(;!g[r];)g[r]=!0,this.walkSync(g);if(this.listeners.OnceExit)if(g.type==="document")for(let N of g.nodes)this.visitSync(this.listeners.OnceExit,N);else this.visitSync(this.listeners.OnceExit,g)}return this.result}then(g,N){return this.async().then(g,N)}toString(){return this.css}visitSync(g,N){for(let[b,C]of g){this.result.lastPlugin=b;let y;try{y=C(N,this.helpers)}catch(D){throw this.handleError(D,N.proxyOf)}if(N.type!=="root"&&N.type!=="document"&&!N.parent)return!0;if(m(y))throw this.getAsyncError()}}visitTick(g){let N=g[g.length-1],{node:b,visitors:C}=N;if(b.type!=="root"&&b.type!=="document"&&!b.parent){g.pop();return}if(C.length>0&&N.visitorIndex{C[r]||this.walkSync(C)});else{let C=this.listeners[b];if(C&&this.visitSync(C,g.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"}}return R.registerPostcss=I=>{S=I},sd=R,R.default=R,o.registerLazyResult(R),t.registerLazyResult(R),sd}var od,lh;function nHe(){if(lh)return od;lh=1;let e=SO(),t=Mp();const n=Wp();let a=yl();class s{constructor(i,r,u){r=r.toString(),this.stringified=!1,this._processor=i,this._css=r,this._opts=u,this._map=void 0;let l,d=a;this.result=new n(this._processor,l,this._opts),this.result.css=r;let E=this;Object.defineProperty(this.result,"root",{get(){return E.root}});let c=new e(d,l,this._opts,r);if(c.isMap()){let[m,_]=c.generate();m&&(this.result.css=m),_&&(this.result.map=_)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(i){return this.async().catch(i)}finally(i){return this.async().then(i,i)}sync(){if(this.error)throw this.error;return this.result}then(i,r){return this.async().then(i,r)}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 i,r=t;try{i=r(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=i,i}get[Symbol.toStringTag](){return"NoWorkResult"}}return od=s,s.default=s,od}var id,ch;function aHe(){if(ch)return id;ch=1;let e=kp(),t=OO(),n=nHe(),a=lr();class s{constructor(i=[]){this.version="8.4.49",this.plugins=this.normalize(i)}normalize(i){let r=[];for(let u of i)if(u.postcss===!0?u=u():u.postcss&&(u=u.postcss),typeof u=="object"&&Array.isArray(u.plugins))r=r.concat(u.plugins);else if(typeof u=="object"&&u.postcssPlugin)r.push(u);else if(typeof u=="function")r.push(u);else if(!(typeof u=="object"&&(u.parse||u.stringify)))throw new Error(u+" is not a PostCSS plugin");return r}process(i,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new n(this,i,r):new t(this,i,r)}use(i){return this.plugins=this.plugins.concat(this.normalize([i])),this}}return id=s,s.default=s,a.registerProcessor(s),e.registerProcessor(s),id}var rd,dh;function sHe(){if(dh)return rd;dh=1;var e={};let t=Up(),n=Ul(),a=Ks(),s=yp(),o=kl(),i=kp(),r=JVe(),u=wl(),l=OO(),d=hO(),E=$l(),c=Mp(),m=aHe(),_=Wp(),f=lr(),O=wp(),S=yl(),R=AO();function I(...g){return g.length===1&&Array.isArray(g[0])&&(g=g[0]),new m(g)}return I.plugin=function(N,b){let C=!1;function y(...M){console&&console.warn&&!C&&(C=!0,console.warn(N+`: postcss.plugin was deprecated. Migration guide: https://evilmartians.com/chronicles/postcss-8-plugin-migration`),e.LANG&&e.LANG.startsWith("cn")&&console.warn(N+`: 里面 postcss.plugin 被弃用. 迁移指南: -https://www.w3ctech.com/topic/2226`));let P=b(...M);return P.postcssPlugin=N,P.postcssVersion=new m().version,P}let D;return Object.defineProperty(y,"postcss",{get(){return D||(D=y()),D}}),y.process=function(M,P,W){return g([y(W)]).process(M,P)},y},g.stringify=A,g.parse=c,g.fromJSON=r,g.list=d,g.comment=I=>new n(I),g.atRule=I=>new t(I),g.decl=I=>new o(I),g.rule=I=>new O(I),g.root=I=>new h(I),g.document=I=>new i(I),g.CssSyntaxError=s,g.Declaration=o,g.Container=a,g.Processor=m,g.Document=i,g.Comment=n,g.Warning=R,g.AtRule=t,g.Result=_,g.Input=u,g.Rule=O,g.Root=h,g.Node=E,l.registerPostcss(g),rd=g,g.default=g,rd}var ud,Eh;function oHe(){if(Eh)return ud;Eh=1;const e=GVe(),t=VVe(),{isPlainObject:n}=HVe(),a=KVe(),s=jVe(),{parse:o}=sHe(),i=["img","audio","video","picture","svg","object","map","iframe","embed"],r=["script","style"];function u(O,A){O&&Object.keys(O).forEach(function(R){A(O[R],R)})}function l(O,A){return{}.hasOwnProperty.call(O,A)}function d(O,A){const R=[];return u(O,function(g){A(g)&&R.push(g)}),R}function E(O){for(const A in O)if(l(O,A))return!1;return!0}function c(O){return O.map(function(A){if(!A.url)throw new Error("URL missing");return A.url+(A.w?` ${A.w}w`:"")+(A.h?` ${A.h}h`:"")+(A.d?` ${A.d}x`:"")}).join(", ")}ud=_;const m=/^[^\0\t\n\f\r /<=>]+$/;function _(O,A,R){if(O==null)return"";typeof O=="number"&&(O=O.toString());let g="",I="";function N(oe,U){const k=this;this.tag=oe,this.attribs=U||{},this.tagPosition=g.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(Ee.length){const G=Ee[Ee.length-1];G.text+=k.text}},this.updateParentNodeMediaChildren=function(){Ee.length&&i.includes(this.tag)&&Ee[Ee.length-1].mediaChildren.push(this.tag)}}A=Object.assign({},_.defaults,A),A.parser=Object.assign({},h,A.parser);const b=function(oe){return A.allowedTags===!1||(A.allowedTags||[]).indexOf(oe)>-1};r.forEach(function(oe){b(oe)&&!A.allowVulnerableTags&&console.warn(` +https://www.w3ctech.com/topic/2226`));let P=b(...M);return P.postcssPlugin=N,P.postcssVersion=new m().version,P}let D;return Object.defineProperty(y,"postcss",{get(){return D||(D=y()),D}}),y.process=function(M,P,W){return I([y(W)]).process(M,P)},y},I.stringify=S,I.parse=c,I.fromJSON=r,I.list=d,I.comment=g=>new n(g),I.atRule=g=>new t(g),I.decl=g=>new o(g),I.rule=g=>new O(g),I.root=g=>new f(g),I.document=g=>new i(g),I.CssSyntaxError=s,I.Declaration=o,I.Container=a,I.Processor=m,I.Document=i,I.Comment=n,I.Warning=R,I.AtRule=t,I.Result=_,I.Input=u,I.Rule=O,I.Root=f,I.Node=E,l.registerPostcss(I),rd=I,I.default=I,rd}var ud,Eh;function oHe(){if(Eh)return ud;Eh=1;const e=GVe(),t=VVe(),{isPlainObject:n}=HVe(),a=KVe(),s=jVe(),{parse:o}=sHe(),i=["img","audio","video","picture","svg","object","map","iframe","embed"],r=["script","style"];function u(O,S){O&&Object.keys(O).forEach(function(R){S(O[R],R)})}function l(O,S){return{}.hasOwnProperty.call(O,S)}function d(O,S){const R=[];return u(O,function(I){S(I)&&R.push(I)}),R}function E(O){for(const S in O)if(l(O,S))return!1;return!0}function c(O){return O.map(function(S){if(!S.url)throw new Error("URL missing");return S.url+(S.w?` ${S.w}w`:"")+(S.h?` ${S.h}h`:"")+(S.d?` ${S.d}x`:"")}).join(", ")}ud=_;const m=/^[^\0\t\n\f\r /<=>]+$/;function _(O,S,R){if(O==null)return"";typeof O=="number"&&(O=O.toString());let I="",g="";function N(oe,U){const k=this;this.tag=oe,this.attribs=U||{},this.tagPosition=I.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(Ee.length){const G=Ee[Ee.length-1];G.text+=k.text}},this.updateParentNodeMediaChildren=function(){Ee.length&&i.includes(this.tag)&&Ee[Ee.length-1].mediaChildren.push(this.tag)}}S=Object.assign({},_.defaults,S),S.parser=Object.assign({},f,S.parser);const b=function(oe){return S.allowedTags===!1||(S.allowedTags||[]).indexOf(oe)>-1};r.forEach(function(oe){b(oe)&&!S.allowVulnerableTags&&console.warn(` ⚠️ Your \`allowedTags\` option includes, \`${oe}\`, which is inherently 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 C=A.nonTextTags||["script","style","textarea","option"];let y,D;A.allowedAttributes&&(y={},D={},u(A.allowedAttributes,function(oe,U){y[U]=[];const k=[];oe.forEach(function(G){typeof G=="string"&&G.indexOf("*")>=0?k.push(t(G).replace(/\\\*/g,".*")):y[U].push(G)}),k.length&&(D[U]=new RegExp("^("+k.join("|")+")$"))}));const M={},P={},W={};u(A.allowedClasses,function(oe,U){if(y&&(l(y,U)||(y[U]=[]),y[U].push("class")),M[U]=oe,Array.isArray(oe)){const k=[];M[U]=[],W[U]=[],oe.forEach(function(G){typeof G=="string"&&G.indexOf("*")>=0?k.push(t(G).replace(/\\\*/g,".*")):G instanceof RegExp?W[U].push(G):M[U].push(G)}),k.length&&(P[U]=new RegExp("^("+k.join("|")+")$"))}});const Q={};let Se;u(A.transformTags,function(oe,U){let k;typeof oe=="function"?k=oe:typeof oe=="string"&&(k=_.simpleTransform(oe)),U==="*"?Se=k:Q[U]=k});let J,Ee,fe,Pe,He,et,Ve=!1;we();const _t=new e.Parser({onopentag:function(oe,U){if(A.enforceHtmlBoundary&&oe==="html"&&we(),He){et++;return}const k=new N(oe,U);Ee.push(k);let G=!1;const le=!!k.text;let pe;if(l(Q,oe)&&(pe=Q[oe](oe,U),k.attribs=U=pe.attribs,pe.text!==void 0&&(k.innerText=pe.text),oe!==pe.tagName&&(k.name=oe=pe.tagName,Pe[J]=pe.tagName)),Se&&(pe=Se(oe,U),k.attribs=U=pe.attribs,oe!==pe.tagName&&(k.name=oe=pe.tagName,Pe[J]=pe.tagName)),(!b(oe)||A.disallowedTagsMode==="recursiveEscape"&&!E(fe)||A.nestingLimit!=null&&J>=A.nestingLimit)&&(G=!0,fe[J]=!0,(A.disallowedTagsMode==="discard"||A.disallowedTagsMode==="completelyDiscard")&&C.indexOf(oe)!==-1&&(He=!0,et=1),fe[J]=!0),J++,G){if(A.disallowedTagsMode==="discard"||A.disallowedTagsMode==="completelyDiscard"){if(k.innerText&&!le){const ie=se(k.innerText);A.textFilter?g+=A.textFilter(ie,oe):g+=se(k.innerText),Ve=!0}return}I=g,g=""}g+="<"+oe,oe==="script"&&(A.allowedScriptHostnames||A.allowedScriptDomains)&&(k.innerText=""),(!y||l(y,oe)||y["*"])&&u(U,function(ie,$){if(!m.test($)){delete k.attribs[$];return}if(ie===""&&!A.allowedEmptyAttributes.includes($)&&(A.nonBooleanAttributes.includes($)||A.nonBooleanAttributes.includes("*"))){delete k.attribs[$];return}let z=!1;if(!y||l(y,oe)&&y[oe].indexOf($)!==-1||y["*"]&&y["*"].indexOf($)!==-1||l(D,oe)&&D[oe].test($)||D["*"]&&D["*"].test($))z=!0;else if(y&&y[oe]){for(const V of y[oe])if(n(V)&&V.name&&V.name===$){z=!0;let q="";if(V.multiple===!0){const Re=ie.split(" ");for(const he of Re)V.values.indexOf(he)!==-1&&(q===""?q=he:q+=" "+he)}else V.values.indexOf(ie)>=0&&(q=ie);ie=q}}if(z){if(A.allowedSchemesAppliedToAttributes.indexOf($)!==-1&&ke(oe,ie)){delete k.attribs[$];return}if(oe==="script"&&$==="src"){let V=!0;try{const q=pt(ie);if(A.allowedScriptHostnames||A.allowedScriptDomains){const Re=(A.allowedScriptHostnames||[]).find(function(H){return H===q.url.hostname}),he=(A.allowedScriptDomains||[]).find(function(H){return q.url.hostname===H||q.url.hostname.endsWith(`.${H}`)});V=Re||he}}catch{V=!1}if(!V){delete k.attribs[$];return}}if(oe==="iframe"&&$==="src"){let V=!0;try{const q=pt(ie);if(q.isRelativeUrl)V=l(A,"allowIframeRelativeUrls")?A.allowIframeRelativeUrls:!A.allowedIframeHostnames&&!A.allowedIframeDomains;else if(A.allowedIframeHostnames||A.allowedIframeDomains){const Re=(A.allowedIframeHostnames||[]).find(function(H){return H===q.url.hostname}),he=(A.allowedIframeDomains||[]).find(function(H){return q.url.hostname===H||q.url.hostname.endsWith(`.${H}`)});V=Re||he}}catch{V=!1}if(!V){delete k.attribs[$];return}}if($==="srcset")try{let V=s(ie);if(V.forEach(function(q){ke("srcset",q.url)&&(q.evil=!0)}),V=d(V,function(q){return!q.evil}),V.length)ie=c(d(V,function(q){return!q.evil})),k.attribs[$]=ie;else{delete k.attribs[$];return}}catch{delete k.attribs[$];return}if($==="class"){const V=M[oe],q=M["*"],Re=P[oe],he=W[oe],H=W["*"],ce=P["*"],Me=[Re,ce].concat(he,H).filter(function(Be){return Be});if(V&&q?ie=Te(ie,a(V,q),Me):ie=Te(ie,V||q,Me),!ie.length){delete k.attribs[$];return}}if($==="style"){if(A.parseStyleAttributes)try{const V=o(oe+" {"+ie+"}",{map:!1}),q=me(V,A.allowedStyles);if(ie=Z(q),ie.length===0){delete k.attribs[$];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+oe+" {"+ie+`}", 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 k.attribs[$];return}else if(A.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}g+=" "+$,ie&&ie.length?g+='="'+se(ie,!0)+'"':A.allowedEmptyAttributes.includes($)&&(g+='=""')}else delete k.attribs[$]}),A.selfClosing.indexOf(oe)!==-1?g+=" />":(g+=">",k.innerText&&!le&&!A.textFilter&&(g+=se(k.innerText),Ve=!0)),G&&(g=I+se(g),I="")},ontext:function(oe){if(He)return;const U=Ee[Ee.length-1];let k;if(U&&(k=U.tag,oe=U.innerText!==void 0?U.innerText:oe),A.disallowedTagsMode==="completelyDiscard"&&!b(k))oe="";else if((A.disallowedTagsMode==="discard"||A.disallowedTagsMode==="completelyDiscard")&&(k==="script"||k==="style"))g+=oe;else{const G=se(oe,!1);A.textFilter&&!Ve?g+=A.textFilter(G,k):Ve||(g+=G)}if(Ee.length){const G=Ee[Ee.length-1];G.text+=oe}},onclosetag:function(oe,U){if(He)if(et--,!et)He=!1;else return;const k=Ee.pop();if(!k)return;if(k.tag!==oe){Ee.push(k);return}He=A.enforceHtmlBoundary?oe==="html":!1,J--;const G=fe[J];if(G){if(delete fe[J],A.disallowedTagsMode==="discard"||A.disallowedTagsMode==="completelyDiscard"){k.updateParentNodeText();return}I=g,g=""}if(Pe[J]&&(oe=Pe[J],delete Pe[J]),A.exclusiveFilter&&A.exclusiveFilter(k)){g=g.substr(0,k.tagPosition);return}if(k.updateParentNodeMediaChildren(),k.updateParentNodeText(),A.selfClosing.indexOf(oe)!==-1||U&&!b(oe)&&["escape","recursiveEscape"].indexOf(A.disallowedTagsMode)>=0){G&&(g=I,I="");return}g+=""+oe+">",G&&(g=I+se(g),I=""),Ve=!1}},A.parser);return _t.write(O),_t.end(),g;function we(){g="",J=0,Ee=[],fe={},Pe={},He=!1,et=0}function se(oe,U){return typeof oe!="string"&&(oe=oe+""),A.parser.decodeEntities&&(oe=oe.replace(/&/g,"&").replace(//g,">"),U&&(oe=oe.replace(/"/g,"""))),oe=oe.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),U&&(oe=oe.replace(/"/g,""")),oe}function ke(oe,U){for(U=U.replace(/[\x00-\x20]+/g,"");;){const le=U.indexOf("",le+4);if(pe===-1)break;U=U.substring(0,le)+U.substring(pe+3)}const k=U.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!k)return U.match(/^[/\\]{2}/)?!A.allowProtocolRelative:!1;const G=k[1].toLowerCase();return l(A.allowedSchemesByTag,oe)?A.allowedSchemesByTag[oe].indexOf(G)===-1:!A.allowedSchemes||A.allowedSchemes.indexOf(G)===-1}function pt(oe){if(oe=oe.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),oe.startsWith("relative:"))throw new Error("relative: exploit attempt");let U="relative://relative-site";for(let le=0;le<100;le++)U+=`/${le}`;const k=new URL(oe,U);return{isRelativeUrl:k&&k.hostname==="relative-site"&&k.protocol==="relative:",url:k}}function me(oe,U){if(!U)return oe;const k=oe.nodes[0];let G;return U[k.selector]&&U["*"]?G=a(U[k.selector],U["*"]):G=U[k.selector]||U["*"],G&&(oe.nodes[0].nodes=k.nodes.reduce(Ae(G),[])),oe}function Z(oe){return oe.nodes[0].nodes.reduce(function(U,k){return U.push(`${k.prop}:${k.value}${k.important?" !important":""}`),U},[]).join(";")}function Ae(oe){return function(U,k){return l(oe,k.prop)&&oe[k.prop].some(function(le){return le.test(k.value)})&&U.push(k),U}}function Te(oe,U,k){return U?(oe=oe.split(/\s+/),oe.filter(function(G){return U.indexOf(G)!==-1||k.some(function(le){return le.test(G)})}).join(" ")):oe}}const h={decodeEntities:!0};return _.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"]},allowedEmptyAttributes:["alt"],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},_.simpleTransform=function(O,A,R){return R=R===void 0?!0:R,A=A||{},function(g,I){let N;if(R)for(N in A)I[N]=A[N];else I=A;return{tagName:O,attribs:I}}},ud}var iHe=oHe();const IO=NE(iHe),gO=e=>IO(QGe(At.parseInline(e,{pedantic:!0}),{target:"_blank",validate:{email:()=>!1}}),{allowedTags:["a","p","span","strong","em","img"]}),rHe=e=>{const{value:t,selectionStart:n}=e,a=t.slice(0,n).search(/@\S+$/),s=t.slice(n).search(/\s/),o=a<0?"":s<0?t.slice(a+1):t.slice(a+1,s+n);return o.trim().length>1?{position:a,usernameQuery:o}:{position:null,usernameQuery:null}},uHe=(e,t,n,a)=>e.substring(0,t+1)+a+" "+e.substring(t+n.length+2),Vi=e=>{const t=At.parse(e,{breaks:!0});return IO(t)},RO=()=>["private","followers_only","public"],Xu=(e,t)=>t==="private"||t==="followers_only"&&e=="public"?t:e,Qu=e=>{switch(e){case"public":return["private","followers_only","public"];case"followers_only":return["private","followers_only"];case"private":return["private"]}},lHe=e=>{switch(e){case"public":return["private","followers_only","public"];case"followers_only":return["private","followers_only"];case"private":return["private"]}},cHe={class:"add-comment"},dHe={class:"form-items"},EHe={class:"form-item add-comment-label"},pHe={for:"comment",class:"visually-hidden"},mHe={class:"markdown-hints info-box"},THe={key:0,class:"users-suggestions"},_He=["onClick","onKeydown"],fHe={class:"form-select-buttons"},hHe={key:0,class:"form-item text-visibility"},SHe={for:"text_visibility"},AHe=["value"],OHe={key:1},IHe={key:2,class:"comment-buttons"},gHe={class:"confirm",type:"submit"},RHe=X({__name:"CommentEdition",props:{workout:{},commentsLoading:{},authUser:{},comment:{default:null},name:{default:"text"},mentions:{default:()=>[]}},setup(e){var N;const t=e,{authUser:n,comment:a,commentsLoading:s,mentions:o,name:i,workout:r}=_e(t),u=De(),{errorMessages:l}=Ke();let d={position:null,usernameQuery:null};const E=Ie(h()),c=Ie(a!=null&&a.value?a.value.text_visibility:(N=r.value)==null?void 0:N.workout_visibility),m=F(()=>a.value?a.value.id===s.value:s.value==="new"),_=F(()=>u.getters[ue.GETTERS.USERS]);function h(){var b,C,y;if(a!=null&&a.value)return a.value.text||"";if(o.value.length>0){const D=o.value.filter(M=>M.username!==n.value.username);if(D.length>0)return D.map(M=>`@${M.username}`).join(" ")+" "}return(b=r.value)!=null&&b.user&&((C=r.value)==null?void 0:C.user.username)!==n.value.username?`@${(y=r.value)==null?void 0:y.user.username} `:""}function O(b){u.dispatch(ue.ACTIONS.GET_USERS,{per_page:5,q:b,with_following:"true"})}function A(b){E.value=b.value,d=rHe(b),d.usernameQuery?O(d.usernameQuery):u.dispatch(ue.ACTIONS.EMPTY_USERS)}function R(b,C,y){b.preventDefault(),b.stopPropagation();const D=`text${y?`-${y.id}`:""}`;if(d.position!==null&&d.usernameQuery){const M=uHe(E.value,d.position,d.usernameQuery,C.username),P=document.getElementById(D);P&&P instanceof HTMLTextAreaElement&&(P.value=M,P.focus(),P.selectionStart=M.length,E.value=M)}u.dispatch(ue.ACTIONS.EMPTY_USERS)}function g(){A({value:"",selectionStart:0}),u.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{})}function I(){if(r.value)if(a!=null&&a.value&&a.value.id){const b={id:a.value.id,text:E.value,workout_id:r.value.id};u.dispatch(ee.ACTIONS.EDIT_WORKOUT_COMMENT,b)}else{const b={text:E.value,text_visibility:c.value,workout_id:r.value.id};u.dispatch(ee.ACTIONS.ADD_COMMENT,b),A({value:"",selectionStart:0})}}return ct(()=>{u.dispatch(ue.ACTIONS.EMPTY_USERS)}),(b,C)=>{const y=j("CustomTextArea"),D=j("Loader"),M=j("ErrorMessage");return f(),v("div",cHe,[p("form",{onSubmit:ve(I,["prevent"])},[p("div",dHe,[p("div",EHe,[p("label",pHe,S(b.$t("workouts.COMMENTS.ADD")),1),w(y,{id:"comment",class:"comment",name:T(i),input:E.value,required:!0,placeholder:b.$t("workouts.COMMENTS.ADD"),onUpdateValue:A},null,8,["name","input","placeholder"]),p("div",mHe,[C[1]||(C[1]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(b.$t("workouts.MARKDOWN_SYNTAX")),1)]),_.value.length>0?(f(),v("ul",THe,[(f(!0),v(re,null,be(_.value,P=>(f(),v("li",{key:P.username,tabindex:"0",onClick:W=>R(W,P,T(a)),onKeydown:Ye(W=>R(W,P,T(a)),["enter"])},[w(Qt,{user:P},null,8,["user"]),p("span",null,S(P.username),1)],40,_He))),128))])):L("",!0)])]),p("div",fHe,[!T(a)&&T(r)&&T(r).workout_visibility?(f(),v("div",hHe,[p("label",SHe,S(b.$t("visibility_levels.VISIBILITY"))+": ",1),We(p("select",{id:"text_visibility","onUpdate:modelValue":C[0]||(C[0]=P=>c.value=P)},[(f(!0),v(re,null,be(T(lHe)(T(r).workout_visibility),P=>(f(),v("option",{value:P,key:P},S(b.$t(`visibility_levels.COMMENT_LEVELS.${P}`)),9,AHe))),128))],512),[[Jt,c.value]])])):L("",!0),C[2]||(C[2]=p("div",{class:"spacer"},null,-1)),m.value?(f(),v("div",OHe,[w(D)])):(f(),v("div",IHe,[p("button",gHe,S(b.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:ve(g,["prevent"])},S(b.$t("buttons.CANCEL")),1)]))]),T(l)?(f(),B(M,{key:0,message:T(l)},null,8,["message"])):L("",!0)],32)])}}}),NO=ae(RHe,[["__scopeId","data-v-96400748"]]),NHe={class:"report-form"},vHe={class:"form-items"},bHe={class:"form-item"},CHe={for:"report"},PHe={class:"form-select-buttons"},DHe={key:0},LHe={key:1,class:"report-buttons"},yHe={class:"confirm",type:"submit"},$He=X({__name:"ReportForm",props:{objectId:{},objectType:{}},setup(e){const t=e,{objectId:n,objectType:a}=_e(t),s=De(),o={comment:"workouts.COMMENTS.REPORT",user:"user.REPORT",workout:"workouts.REPORT_WORKOUT"},i=Ie(""),r=F(()=>s.getters[te.GETTERS.ERROR_MESSAGES]),u=F(()=>s.getters[Le.GETTERS.REPORT_STATUS]),l=F(()=>o[a.value]);function d(m){i.value=m.value}function E(){i.value="",s.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),s.commit(Le.MUTATIONS.SET_REPORT_STATUS,null),a.value==="comment"?s.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{}):a.value==="workout"?s.commit(ee.MUTATIONS.SET_CURRENT_REPORTING,!1):s.commit(ue.MUTATIONS.UPDATE_USER_CURRENT_REPORTING,!1)}function c(){s.dispatch(Le.ACTIONS.SUBMIT_REPORT,{object_id:n.value,object_type:a.value,note:i.value})}return(m,_)=>{const h=j("CustomTextArea"),O=j("Loader"),A=j("ErrorMessage");return f(),v("div",NHe,[p("form",{onSubmit:ve(c,["prevent"])},[p("div",vHe,[p("div",bHe,[p("label",CHe,S(m.$t(l.value)),1),w(h,{class:"report-textarea",name:"report",required:!0,placeholder:m.$t("common.REPORT_PLACEHOLDER"),onUpdateValue:d},null,8,["placeholder"])])]),p("div",PHe,[_[0]||(_[0]=p("div",{class:"spacer"},null,-1)),u.value==="loading"?(f(),v("div",DHe,[w(O)])):(f(),v("div",LHe,[p("button",yHe,S(m.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:ve(E,["prevent"])},S(m.$t("buttons.CANCEL")),1)]))]),r.value?(f(),B(A,{key:0,message:r.value},null,8,["message"])):L("",!0)],32)])}}}),Fp=ae($He,[["__scopeId","data-v-40798811"]]),UHe=X({__name:"Username",props:{user:{}},setup(e){const t=e,{user:n}=_e(t);return(a,s)=>{const o=j("router-link");return T(n).username?(f(),B(o,{key:0,class:"user-name",to:{name:a.$route.path.startsWith("/admin")?"UserFromAdmin":"User",params:{username:T(n).username}},title:T(n).username},{default:Y(()=>[x(S(T(n).username),1)]),_:1},8,["to","title"])):L("",!0)}}}),Ri=ae(UHe,[["__scopeId","data-v-b000441f"]]),kHe=["id"],wHe={class:"comment-detail"},MHe={class:"comment-info"},WHe=["title"],FHe=["innerHTML"],zHe={key:1,class:"suspended info-box"},xHe={key:3,class:"comment-actions"},BHe=["disabled","title"],GHe=["title"],VHe=["title"],HHe=["title"],KHe=["title"],qHe={key:6,class:"report-submitted"},jHe={class:"info-box"},YHe=X({__name:"Comment",props:{comment:{},workout:{default:null},authUser:{},commentsLoading:{},currentCommentEdition:{default:null},forNotification:{type:Boolean,default:!1},forAdmin:{type:Boolean,default:!1},displayAppeal:{type:Boolean,default:!1},hideSuspensionAppeal:{type:Boolean,default:!1},action:{default:null}},setup(e){const t=e,{action:n,authUser:a,comment:s,currentCommentEdition:o,forAdmin:i,forNotification:r,workout:u}=_e(t),l=rt(),d=De(),{displayAppealForm:E}=Tp(),{displayOptions:c,locale:m}=Ke(),_=F(()=>d.getters[Le.GETTERS.REPORT_STATUS]),h=F(()=>l.params.commentId),O=F(()=>{var P,W,Q,Se;return s.value.id===h.value||(((P=o.value)==null?void 0:P.type)==="delete"||((W=o.value)==null?void 0:W.type)==="report")&&((Se=(Q=o.value)==null?void 0:Q.comment)==null?void 0:Se.id)===s.value.id}),A=F(()=>{var P,W,Q,Se;return s.value.user.username===(a==null?void 0:a.value.username)&&((P=n.value)==null?void 0:P.action_type)==="comment_suspension"&&(!n.value.appeal||((W=n.value.appeal)==null?void 0:W.approved)===!1||((Q=n.value.appeal)==null?void 0:Q.approved)===null&&!((Se=n.value.appeal)!=null&&Se.updated_at))&&s.value.suspended_at!==null&&s.value.suspension!==void 0&&E.value!==s.value.id}),R=F(()=>!r.value&&!s.value.suspended&&!g(a.value,s.value.user)&&!N()&&_.value!==`comment-${s.value.id}-created`);function g(P,W){return P&&P.username===W.username}function I(){var P,W,Q;return((P=o.value)==null?void 0:P.type)==="edit"&&((Q=(W=o.value)==null?void 0:W.comment)==null?void 0:Q.id)===s.value.id}function N(){var P,W,Q;return((P=o.value)==null?void 0:P.type)==="report"&&((Q=(W=o.value)==null?void 0:W.comment)==null?void 0:Q.id)===s.value.id}function b(P){d.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{type:"delete",comment:P})}function C(P){d.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{type:"report",comment:P}),d.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)}function y(P){d.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{type:P,comment:s.value}),setTimeout(()=>{const W=document.getElementById(`text-${s.value.id}`);W&&W.focus()},100)}function D(P){d.dispatch(P.liked?ee.ACTIONS.UNDO_LIKE_COMMENT:ee.ACTIONS.LIKE_COMMENT,P)}function M(){let P=`/comments/${s.value.id}/likes`;return s.value.workout_id&&(P=`/workouts/${s.value.workout_id}${P}`),P}return Ce(()=>l.params.workoutId,()=>{d.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)}),ct(()=>d.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)),(P,W)=>{const Q=j("router-link"),Se=j("VisibilityIcon");return f(),v("div",{class:"workout-comment",id:T(s).id},[w(Qt,{user:T(s).user},null,8,["user"]),p("div",wHe,[p("div",MHe,[w(Ri,{user:T(s).user},null,8,["user"]),W[5]||(W[5]=p("div",{class:"spacer"},null,-1)),w(Q,{class:"comment-date",to:`${T(s).workout_id?`/workouts/${T(s).workout_id}`:""}/comments/${T(s).id}`,title:T(Ut)(T(s).created_at,T(c).timezone,T(c).dateFormat),onClick:W[0]||(W[0]=J=>P.$emit("commentLinkClicked"))},{default:Y(()=>[x(S(T(Ws)(new Date(T(s).created_at),new Date,{addSuffix:!0,locale:T(m)})),1)]),_:1},8,["to","title"]),T(s).modification_date?(f(),v("div",{key:0,class:"comment-edited",title:T(Ut)(T(s).modification_date,T(c).timezone,T(c).dateFormat)}," ("+S(P.$t("common.EDITED"))+") ",9,WHe)):L("",!0),w(Se,{visibility:T(s).text_visibility,"is-comment":!0},null,8,["visibility"])]),T(s).text_html?(f(),v(re,{key:0},[I()?(f(),B(NO,{key:1,workout:T(u),comment:T(s),"comments-loading":P.commentsLoading,name:`text-${T(s).id}`,authUser:T(a)},null,8,["workout","comment","comments-loading","name","authUser"])):(f(),v("span",{key:0,class:Oe(["comment-text",{highlight:O.value}]),innerHTML:T(gO)(T(s).text_html)},null,10,FHe))],64)):L("",!0),T(s).suspended&&!T(s).suspension?(f(),v("div",zHe,[W[6]||(W[6]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(P.$t("workouts.COMMENTS.SUSPENDED_COMMENT_BY_ADMIN")),1)])):L("",!0),A.value&&T(n)&&T(s).suspended?(f(),B(IGe,{key:2,"hide-suspension-appeal":P.hideSuspensionAppeal,action:T(n),comment:T(s)},null,8,["hide-suspension-appeal","action","comment"])):L("",!0),T(a).username&&!T(i)?(f(),v("div",xHe,[!T(s).suspended&&!T(r)?(f(),v("button",{key:0,class:"transparent icon-button likes",onClick:W[1]||(W[1]=J=>T(r)?null:D(T(s))),disabled:T(r),title:`${P.$t(`workouts.${T(s).liked?"REMOVE_LIKE":"COMMENTS.LIKE_COMMENT"}`)} (${T(s).likes_count} ${P.$t("workouts.LIKES",T(s).likes_count)})`},[p("i",{class:Oe(["fa",{"fa-heart":T(s).likes_count>0,"fa-heart-o":T(s).likes_count===0,liked:T(s).liked}]),"aria-hidden":"true"},null,2)],8,BHe)):L("",!0),T(s).likes_count>0?(f(),B(Q,{key:1,to:M(),class:"likes-count"},{default:Y(()=>[x(S(T(s).likes_count),1)]),_:1},8,["to"])):L("",!0),R.value?(f(),v("button",{key:2,class:"transparent icon-button",onClick:W[2]||(W[2]=J=>C(T(s))),title:P.$t("workouts.COMMENTS.REPORT")},W[7]||(W[7]=[p("i",{class:"fa fa-flag","aria-hidden":"true"},null,-1)]),8,GHe)):L("",!0),g(T(a),T(s).user)&&!T(r)?(f(),v("button",{key:3,class:"transparent icon-button",onClick:W[3]||(W[3]=()=>y("edit")),title:P.$t("workouts.COMMENTS.EDIT")},W[8]||(W[8]=[p("i",{class:"fa fa-edit","aria-hidden":"true"},null,-1)]),8,VHe)):L("",!0),g(T(a),T(s).user)&&!T(r)?(f(),v("button",{key:4,class:"transparent icon-button",onClick:W[4]||(W[4]=J=>b(T(s))),title:P.$t("workouts.COMMENTS.DELETE")},W[9]||(W[9]=[p("i",{class:"fa fa-trash","aria-hidden":"true"},null,-1)]),8,HHe)):L("",!0)])):L("",!0),T(a).username?L("",!0):(f(),v("div",{key:4,class:"comment-likes",title:`${T(s).likes_count} ${P.$t("workouts.LIKES",T(s).likes_count)}`},[p("i",{class:Oe(["fa",{"fa-heart":T(s).likes_count>0,"fa-heart-o":T(s).likes_count===0}]),"aria-hidden":"true"},null,2),T(s).likes_count>0?(f(),B(Q,{key:0,to:M(),class:"likes-count"},{default:Y(()=>[x(S(T(s).likes_count),1)]),_:1},8,["to"])):L("",!0)],8,KHe)),N()?(f(),B(Fp,{key:5,"object-id":T(s).id,"object-type":"comment"},null,8,["object-id"])):L("",!0),_.value===`comment-${T(s).id}-created`?(f(),v("div",qHe,[p("div",jHe,[p("span",null,[W[10]||(W[10]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(P.$t("common.REPORT_SUBMITTED")),1)])])])):L("",!0)])],8,kHe)}}}),zp=ae(YHe,[["__scopeId","data-v-f4abd303"]]),XHe={class:"alert-message"},QHe={key:0},ZHe=["innerHTML"],JHe=X({__name:"AlertMessage",props:{message:{},param:{default:()=>""}},setup(e){const t=e,{message:n,param:a}=_e(t);return(s,o)=>{const i=j("i18n-t");return f(),v("div",XHe,[T(a)?(f(),v("span",QHe,[w(i,{keypath:T(n)},{default:Y(()=>[p("span",null,S(T(a)),1)]),_:1},8,["keypath"])])):(f(),v("span",{key:1,innerHTML:s.$t(T(n))},null,8,ZHe)),Pt(s.$slots,"additionalMessage",{},void 0,!0)])}}}),eKe=ae(JHe,[["__scopeId","data-v-fc0d2d13"]]),tKe={},nKe={class:"card"},aKe={class:"card-title"},sKe={class:"card-content"};function oKe(e,t){return f(),v("div",nKe,[p("div",aKe,[Pt(e.$slots,"title")]),p("div",sKe,[Pt(e.$slots,"content")])])}const xp=ae(tKe,[["render",oKe]]),iKe={class:"custom-textarea"},rKe=["id","name","maxLength","disabled","rows","required","placeholder"],uKe={class:"remaining-chars"},lKe=X({__name:"CustomTextArea",props:{name:{},charLimit:{default:500},disabled:{type:Boolean,default:!1},input:{default:""},rows:{default:2},required:{type:Boolean,default:!1},placeholder:{default:""}},emits:["updateValue"],setup(e,{emit:t}){const n=e,a=t,{input:s}=_e(n),o=Ie(s.value?s.value:"");function i(r){const u=r.target;a("updateValue",{value:u.value,selectionStart:u.selectionStart})}return Ce(()=>n.input,r=>{o.value=r===null?"":r}),(r,u)=>(f(),v("div",iKe,[We(p("textarea",{id:r.name,name:r.name,maxLength:r.charLimit,disabled:r.disabled,rows:r.rows,required:r.required,placeholder:r.placeholder,"onUpdate:modelValue":u[0]||(u[0]=l=>o.value=l),onInput:i},null,40,rKe),[[it,o.value]]),p("div",uKe,S(r.$t("workouts.REMAINING_CHARS"))+": "+S(o.value.length)+"/"+S(r.charLimit),1)]))}}),vO=ae(lKe,[["__scopeId","data-v-8d139e95"]]),vn={ft:{unit:"ft",system:"imperial",multiplier:1,defaultTarget:"m"},mi:{unit:"mi",system:"imperial",multiplier:5280,defaultTarget:"km"},m:{unit:"m",system:"metric",multiplier:1,defaultTarget:"ft"},km:{unit:"m",system:"metric",multiplier:1e3,defaultTarget:"mi"}},cKe={metric:{imperial:3.280839895,metric:1},imperial:{metric:1/3.280839895,imperial:1}},Yt=(e,t,n,a=3)=>{const s=vn[t],o=vn[n],i=e*s.multiplier*cKe[s.system][o.system]/o.multiplier;return a!==null?parseFloat(i.toFixed(a)):i},Jr=(e,t,n)=>{const a=n?vn[e].defaultTarget:e;return n?Yt(t,e,a,2):t},ph=(e,t)=>{const n=t?e*1.8+32:e,a=t?" °F":"°C";return`${n===0?0:Number(n).toFixed(1)}${a}`},dKe=(e,t)=>{const n=t?e*2.2369363:e,a=t?" mph":"m/s";return`${n===0?0:Number(n).toFixed(1)}${a}`},EKe=X({__name:"Distance",props:{distance:{},unitFrom:{},useImperialUnits:{type:Boolean},digits:{default:2},displayUnit:{type:Boolean,default:!0},speed:{type:Boolean,default:!1},strong:{type:Boolean,default:!1}},setup(e){const t=e,{digits:n,displayUnit:a,distance:s,speed:o,strong:i,unitFrom:r,useImperialUnits:u}=_e(t),l=F(()=>u.value?vn[r.value].defaultTarget:r.value),d=F(()=>u.value?Yt(s.value,r.value,l.value,n.value):parseFloat(s.value.toFixed(n.value)));return(E,c)=>(f(),v(re,null,[p("span",{class:Oe(["distance",{strong:T(i)}])},S(d.value),3),c[0]||(c[0]=x(" "+S(" ")+" ")),T(a)?(f(),v("span",{key:0,class:Oe(["unit",{strong:T(i)}])},S(l.value)+S(T(o)?"/h":""),3)):L("",!0)],64))}}),pKe=ae(EKe,[["__scopeId","data-v-3aadc3cb"]]),mKe={class:"dropdown-wrapper"},TKe=["aria-expanded","aria-label"],_Ke=["aria-labelledby"],fKe=["id","onClick","onKeydown","onMouseover"],hKe=X({__name:"Dropdown",props:{options:{},selected:{},buttonLabel:{},listLabel:{},isMenuOpen:{type:Boolean}},emits:{selected:e=>e},setup(e,{emit:t}){const n=e,{isMenuOpen:a,options:s,selected:o}=_e(n),i=t,r=rt(),u=Ie(!1),l=Ie(null),d=Ie(_(o.value));function E(){if(u.value)c();else{u.value=!0;const A=document.getElementById(`dropdown-item-${d.value}`);A==null||A.focus()}}function c(){var A;u.value=!1,d.value=_(o.value),(A=l.value)==null||A.focus()}function m(A){i("selected",A),u.value=!1}function _(A){const R=s.value.findIndex(g=>g.value===A);return R>=0?R:0}function h(A){let R=!1;u.value&&(A.key==="ArrowDown"&&(R=!0,d.value+=1,d.value>s.value.length&&(d.value=0)),A.key==="ArrowUp"&&(R=!0,d.value-=1,d.value<0&&(d.value=s.value.length-1)),A.key==="Home"&&(R=!0,d.value=0),A.key==="End"&&(R=!0,d.value=s.value.length-1),A.key==="Enter"&&(R=!0,m(s.value[d.value])),(A.key==="Escape"||A.key==="Tab")&&(R=A.key==="Escape",c())),R&&(A.stopPropagation(),A.preventDefault())}function O(A){d.value=A}return Ce(()=>r.path,()=>u.value=!1),Ce(()=>o.value,A=>d.value=_(A)),Ce(()=>a.value,A=>{A||c()}),mt(()=>{document.addEventListener("keydown",h)}),ct(()=>{document.removeEventListener("keydown",h)}),(A,R)=>(f(),v("div",mKe,[p("button",{"aria-controls":"dropdown-list","aria-expanded":u.value,"aria-haspopup":"true","aria-label":A.buttonLabel,class:"dropdown-selector transparent",onClick:R[0]||(R[0]=g=>E()),ref_key:"dropdownButton",ref:l},[Pt(A.$slots,"default",{},void 0,!0)],8,TKe),u.value?(f(),v("ul",{key:0,"aria-labelledby":A.listLabel,class:"dropdown-list",id:"dropdown-list",role:"menu"},[(f(!0),v(re,null,be(T(s),(g,I)=>(f(),v("li",{class:Oe(["dropdown-item",{selected:g.value===T(o),focused:I===d.value}]),key:I,id:`dropdown-item-${I}`,tabindex:"-1",onClick:N=>m(g),onKeydown:Ye(N=>m(g),["enter"]),onMouseover:N=>O(I),role:"menuitem"},S(g.label),43,fKe))),128))],8,_Ke)):L("",!0)]))}}),SKe=ae(hKe,[["__scopeId","data-v-f0445cd3"]]),AKe={class:"error-message"},OKe={key:0},IKe={key:1},gKe={key:2},RKe=X({__name:"ErrorMessage",props:{message:{}},setup(e){const t=e,{message:n}=_e(t);return(a,s)=>(f(),v("div",AKe,[Array.isArray(T(n))?(f(),v("ul",OKe,[(f(!0),v(re,null,be(T(n),(o,i)=>(f(),v("li",{key:i},S(a.$t(o)),1))),128))])):typeof T(n)=="string"?(f(),v("div",IKe,S(a.$t(T(n)).replace("api.ERROR.","")),1)):(f(),v("div",gKe,S(a.$t(`equipments.ERRORS.${T(n).status}`,{equipmentId:T(n).equipmentId,equipmentLabel:T(n).equipmentLabel})),1))]))}}),NKe=ae(RKe,[["__scopeId","data-v-5d2995e8"]]),vKe={name:"Bike"},bKe={version:"1.1",id:"bike",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 35 35","xml:space":"preserve"};function CKe(e,t,n,a,s,o){return f(),v("svg",bKe,t[0]||(t[0]=[p("desc",{id:"BikeEquipmentDescription"},"bike",-1),p("g",null,[p("path",{d:`M25.8 14.32c-0.64 0-1.24 0.12-1.84 0.32l-1.52-3 2.6-3.88c0.28-0.4 0.12-1.32-0.72-1.32h-3.32c-0.48 0-0.84 +`)});const C=S.nonTextTags||["script","style","textarea","option"];let y,D;S.allowedAttributes&&(y={},D={},u(S.allowedAttributes,function(oe,U){y[U]=[];const k=[];oe.forEach(function(G){typeof G=="string"&&G.indexOf("*")>=0?k.push(t(G).replace(/\\\*/g,".*")):y[U].push(G)}),k.length&&(D[U]=new RegExp("^("+k.join("|")+")$"))}));const M={},P={},W={};u(S.allowedClasses,function(oe,U){if(y&&(l(y,U)||(y[U]=[]),y[U].push("class")),M[U]=oe,Array.isArray(oe)){const k=[];M[U]=[],W[U]=[],oe.forEach(function(G){typeof G=="string"&&G.indexOf("*")>=0?k.push(t(G).replace(/\\\*/g,".*")):G instanceof RegExp?W[U].push(G):M[U].push(G)}),k.length&&(P[U]=new RegExp("^("+k.join("|")+")$"))}});const Q={};let Se;u(S.transformTags,function(oe,U){let k;typeof oe=="function"?k=oe:typeof oe=="string"&&(k=_.simpleTransform(oe)),U==="*"?Se=k:Q[U]=k});let J,Ee,fe,Pe,Ke,et,He=!1;we();const _t=new e.Parser({onopentag:function(oe,U){if(S.enforceHtmlBoundary&&oe==="html"&&we(),Ke){et++;return}const k=new N(oe,U);Ee.push(k);let G=!1;const le=!!k.text;let pe;if(l(Q,oe)&&(pe=Q[oe](oe,U),k.attribs=U=pe.attribs,pe.text!==void 0&&(k.innerText=pe.text),oe!==pe.tagName&&(k.name=oe=pe.tagName,Pe[J]=pe.tagName)),Se&&(pe=Se(oe,U),k.attribs=U=pe.attribs,oe!==pe.tagName&&(k.name=oe=pe.tagName,Pe[J]=pe.tagName)),(!b(oe)||S.disallowedTagsMode==="recursiveEscape"&&!E(fe)||S.nestingLimit!=null&&J>=S.nestingLimit)&&(G=!0,fe[J]=!0,(S.disallowedTagsMode==="discard"||S.disallowedTagsMode==="completelyDiscard")&&C.indexOf(oe)!==-1&&(Ke=!0,et=1),fe[J]=!0),J++,G){if(S.disallowedTagsMode==="discard"||S.disallowedTagsMode==="completelyDiscard"){if(k.innerText&&!le){const ie=se(k.innerText);S.textFilter?I+=S.textFilter(ie,oe):I+=se(k.innerText),He=!0}return}g=I,I=""}I+="<"+oe,oe==="script"&&(S.allowedScriptHostnames||S.allowedScriptDomains)&&(k.innerText=""),(!y||l(y,oe)||y["*"])&&u(U,function(ie,$){if(!m.test($)){delete k.attribs[$];return}if(ie===""&&!S.allowedEmptyAttributes.includes($)&&(S.nonBooleanAttributes.includes($)||S.nonBooleanAttributes.includes("*"))){delete k.attribs[$];return}let z=!1;if(!y||l(y,oe)&&y[oe].indexOf($)!==-1||y["*"]&&y["*"].indexOf($)!==-1||l(D,oe)&&D[oe].test($)||D["*"]&&D["*"].test($))z=!0;else if(y&&y[oe]){for(const V of y[oe])if(n(V)&&V.name&&V.name===$){z=!0;let j="";if(V.multiple===!0){const Re=ie.split(" ");for(const he of Re)V.values.indexOf(he)!==-1&&(j===""?j=he:j+=" "+he)}else V.values.indexOf(ie)>=0&&(j=ie);ie=j}}if(z){if(S.allowedSchemesAppliedToAttributes.indexOf($)!==-1&&ke(oe,ie)){delete k.attribs[$];return}if(oe==="script"&&$==="src"){let V=!0;try{const j=pt(ie);if(S.allowedScriptHostnames||S.allowedScriptDomains){const Re=(S.allowedScriptHostnames||[]).find(function(H){return H===j.url.hostname}),he=(S.allowedScriptDomains||[]).find(function(H){return j.url.hostname===H||j.url.hostname.endsWith(`.${H}`)});V=Re||he}}catch{V=!1}if(!V){delete k.attribs[$];return}}if(oe==="iframe"&&$==="src"){let V=!0;try{const j=pt(ie);if(j.isRelativeUrl)V=l(S,"allowIframeRelativeUrls")?S.allowIframeRelativeUrls:!S.allowedIframeHostnames&&!S.allowedIframeDomains;else if(S.allowedIframeHostnames||S.allowedIframeDomains){const Re=(S.allowedIframeHostnames||[]).find(function(H){return H===j.url.hostname}),he=(S.allowedIframeDomains||[]).find(function(H){return j.url.hostname===H||j.url.hostname.endsWith(`.${H}`)});V=Re||he}}catch{V=!1}if(!V){delete k.attribs[$];return}}if($==="srcset")try{let V=s(ie);if(V.forEach(function(j){ke("srcset",j.url)&&(j.evil=!0)}),V=d(V,function(j){return!j.evil}),V.length)ie=c(d(V,function(j){return!j.evil})),k.attribs[$]=ie;else{delete k.attribs[$];return}}catch{delete k.attribs[$];return}if($==="class"){const V=M[oe],j=M["*"],Re=P[oe],he=W[oe],H=W["*"],ce=P["*"],Me=[Re,ce].concat(he,H).filter(function(Ge){return Ge});if(V&&j?ie=Te(ie,a(V,j),Me):ie=Te(ie,V||j,Me),!ie.length){delete k.attribs[$];return}}if($==="style"){if(S.parseStyleAttributes)try{const V=o(oe+" {"+ie+"}",{map:!1}),j=me(V,S.allowedStyles);if(ie=Z(j),ie.length===0){delete k.attribs[$];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+oe+" {"+ie+`}", 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 k.attribs[$];return}else if(S.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}I+=" "+$,ie&&ie.length?I+='="'+se(ie,!0)+'"':S.allowedEmptyAttributes.includes($)&&(I+='=""')}else delete k.attribs[$]}),S.selfClosing.indexOf(oe)!==-1?I+=" />":(I+=">",k.innerText&&!le&&!S.textFilter&&(I+=se(k.innerText),He=!0)),G&&(I=g+se(I),g="")},ontext:function(oe){if(Ke)return;const U=Ee[Ee.length-1];let k;if(U&&(k=U.tag,oe=U.innerText!==void 0?U.innerText:oe),S.disallowedTagsMode==="completelyDiscard"&&!b(k))oe="";else if((S.disallowedTagsMode==="discard"||S.disallowedTagsMode==="completelyDiscard")&&(k==="script"||k==="style"))I+=oe;else{const G=se(oe,!1);S.textFilter&&!He?I+=S.textFilter(G,k):He||(I+=G)}if(Ee.length){const G=Ee[Ee.length-1];G.text+=oe}},onclosetag:function(oe,U){if(Ke)if(et--,!et)Ke=!1;else return;const k=Ee.pop();if(!k)return;if(k.tag!==oe){Ee.push(k);return}Ke=S.enforceHtmlBoundary?oe==="html":!1,J--;const G=fe[J];if(G){if(delete fe[J],S.disallowedTagsMode==="discard"||S.disallowedTagsMode==="completelyDiscard"){k.updateParentNodeText();return}g=I,I=""}if(Pe[J]&&(oe=Pe[J],delete Pe[J]),S.exclusiveFilter&&S.exclusiveFilter(k)){I=I.substr(0,k.tagPosition);return}if(k.updateParentNodeMediaChildren(),k.updateParentNodeText(),S.selfClosing.indexOf(oe)!==-1||U&&!b(oe)&&["escape","recursiveEscape"].indexOf(S.disallowedTagsMode)>=0){G&&(I=g,g="");return}I+=""+oe+">",G&&(I=g+se(I),g=""),He=!1}},S.parser);return _t.write(O),_t.end(),I;function we(){I="",J=0,Ee=[],fe={},Pe={},Ke=!1,et=0}function se(oe,U){return typeof oe!="string"&&(oe=oe+""),S.parser.decodeEntities&&(oe=oe.replace(/&/g,"&").replace(//g,">"),U&&(oe=oe.replace(/"/g,"""))),oe=oe.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),U&&(oe=oe.replace(/"/g,""")),oe}function ke(oe,U){for(U=U.replace(/[\x00-\x20]+/g,"");;){const le=U.indexOf("",le+4);if(pe===-1)break;U=U.substring(0,le)+U.substring(pe+3)}const k=U.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!k)return U.match(/^[/\\]{2}/)?!S.allowProtocolRelative:!1;const G=k[1].toLowerCase();return l(S.allowedSchemesByTag,oe)?S.allowedSchemesByTag[oe].indexOf(G)===-1:!S.allowedSchemes||S.allowedSchemes.indexOf(G)===-1}function pt(oe){if(oe=oe.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),oe.startsWith("relative:"))throw new Error("relative: exploit attempt");let U="relative://relative-site";for(let le=0;le<100;le++)U+=`/${le}`;const k=new URL(oe,U);return{isRelativeUrl:k&&k.hostname==="relative-site"&&k.protocol==="relative:",url:k}}function me(oe,U){if(!U)return oe;const k=oe.nodes[0];let G;return U[k.selector]&&U["*"]?G=a(U[k.selector],U["*"]):G=U[k.selector]||U["*"],G&&(oe.nodes[0].nodes=k.nodes.reduce(Ae(G),[])),oe}function Z(oe){return oe.nodes[0].nodes.reduce(function(U,k){return U.push(`${k.prop}:${k.value}${k.important?" !important":""}`),U},[]).join(";")}function Ae(oe){return function(U,k){return l(oe,k.prop)&&oe[k.prop].some(function(le){return le.test(k.value)})&&U.push(k),U}}function Te(oe,U,k){return U?(oe=oe.split(/\s+/),oe.filter(function(G){return U.indexOf(G)!==-1||k.some(function(le){return le.test(G)})}).join(" ")):oe}}const f={decodeEntities:!0};return _.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"]},allowedEmptyAttributes:["alt"],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},_.simpleTransform=function(O,S,R){return R=R===void 0?!0:R,S=S||{},function(I,g){let N;if(R)for(N in S)g[N]=S[N];else g=S;return{tagName:O,attribs:g}}},ud}var iHe=oHe();const IO=NE(iHe),gO=e=>IO(QGe(At.parseInline(e,{pedantic:!0}),{target:"_blank",validate:{email:()=>!1}}),{allowedTags:["a","p","span","strong","em","img"]}),rHe=e=>{const{value:t,selectionStart:n}=e,a=t.slice(0,n).search(/@\S+$/),s=t.slice(n).search(/\s/),o=a<0?"":s<0?t.slice(a+1):t.slice(a+1,s+n);return o.trim().length>1?{position:a,usernameQuery:o}:{position:null,usernameQuery:null}},uHe=(e,t,n,a)=>e.substring(0,t+1)+a+" "+e.substring(t+n.length+2),Vi=e=>{const t=At.parse(e,{breaks:!0});return IO(t)},RO=()=>["private","followers_only","public"],Xu=(e,t)=>t==="private"||t==="followers_only"&&e=="public"?t:e,Qu=e=>{switch(e){case"public":return["private","followers_only","public"];case"followers_only":return["private","followers_only"];case"private":return["private"]}},lHe=e=>{switch(e){case"public":return["private","followers_only","public"];case"followers_only":return["private","followers_only"];case"private":return["private"]}},cHe={class:"add-comment"},dHe={class:"form-items"},EHe={class:"form-item add-comment-label"},pHe={for:"comment",class:"visually-hidden"},mHe={class:"markdown-hints info-box"},THe={key:0,class:"users-suggestions"},_He=["onClick","onKeydown"],fHe={class:"form-select-buttons"},hHe={key:0,class:"form-item text-visibility"},SHe={for:"text_visibility"},AHe=["value"],OHe={key:1},IHe={key:2,class:"comment-buttons"},gHe={class:"confirm",type:"submit"},RHe=X({__name:"CommentEdition",props:{workout:{},commentsLoading:{},authUser:{},comment:{default:null},name:{default:"text"},mentions:{default:()=>[]}},setup(e){var N;const t=e,{authUser:n,comment:a,commentsLoading:s,mentions:o,name:i,workout:r}=_e(t),u=De(),{errorMessages:l}=Be();let d={position:null,usernameQuery:null};const E=Ie(f()),c=Ie(a!=null&&a.value?a.value.text_visibility:(N=r.value)==null?void 0:N.workout_visibility),m=F(()=>a.value?a.value.id===s.value:s.value==="new"),_=F(()=>u.getters[ue.GETTERS.USERS]);function f(){var b,C,y;if(a!=null&&a.value)return a.value.text||"";if(o.value.length>0){const D=o.value.filter(M=>M.username!==n.value.username);if(D.length>0)return D.map(M=>`@${M.username}`).join(" ")+" "}return(b=r.value)!=null&&b.user&&((C=r.value)==null?void 0:C.user.username)!==n.value.username?`@${(y=r.value)==null?void 0:y.user.username} `:""}function O(b){u.dispatch(ue.ACTIONS.GET_USERS,{per_page:5,q:b,with_following:"true"})}function S(b){E.value=b.value,d=rHe(b),d.usernameQuery?O(d.usernameQuery):u.dispatch(ue.ACTIONS.EMPTY_USERS)}function R(b,C,y){b.preventDefault(),b.stopPropagation();const D=`text${y?`-${y.id}`:""}`;if(d.position!==null&&d.usernameQuery){const M=uHe(E.value,d.position,d.usernameQuery,C.username),P=document.getElementById(D);P&&P instanceof HTMLTextAreaElement&&(P.value=M,P.focus(),P.selectionStart=M.length,E.value=M)}u.dispatch(ue.ACTIONS.EMPTY_USERS)}function I(){S({value:"",selectionStart:0}),u.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{})}function g(){if(r.value)if(a!=null&&a.value&&a.value.id){const b={id:a.value.id,text:E.value,workout_id:r.value.id};u.dispatch(ee.ACTIONS.EDIT_WORKOUT_COMMENT,b)}else{const b={text:E.value,text_visibility:c.value,workout_id:r.value.id};u.dispatch(ee.ACTIONS.ADD_COMMENT,b),S({value:"",selectionStart:0})}}return ct(()=>{u.dispatch(ue.ACTIONS.EMPTY_USERS)}),(b,C)=>{const y=q("CustomTextArea"),D=q("Loader"),M=q("ErrorMessage");return h(),v("div",cHe,[p("form",{onSubmit:ve(g,["prevent"])},[p("div",dHe,[p("div",EHe,[p("label",pHe,A(b.$t("workouts.COMMENTS.ADD")),1),w(y,{id:"comment",class:"comment",name:T(i),input:E.value,required:!0,placeholder:b.$t("workouts.COMMENTS.ADD"),onUpdateValue:S},null,8,["name","input","placeholder"]),p("div",mHe,[C[1]||(C[1]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+A(b.$t("workouts.MARKDOWN_SYNTAX")),1)]),_.value.length>0?(h(),v("ul",THe,[(h(!0),v(re,null,be(_.value,P=>(h(),v("li",{key:P.username,tabindex:"0",onClick:W=>R(W,P,T(a)),onKeydown:Ye(W=>R(W,P,T(a)),["enter"])},[w(Qt,{user:P},null,8,["user"]),p("span",null,A(P.username),1)],40,_He))),128))])):L("",!0)])]),p("div",fHe,[!T(a)&&T(r)&&T(r).workout_visibility?(h(),v("div",hHe,[p("label",SHe,A(b.$t("visibility_levels.VISIBILITY"))+": ",1),We(p("select",{id:"text_visibility","onUpdate:modelValue":C[0]||(C[0]=P=>c.value=P)},[(h(!0),v(re,null,be(T(lHe)(T(r).workout_visibility),P=>(h(),v("option",{value:P,key:P},A(b.$t(`visibility_levels.COMMENT_LEVELS.${P}`)),9,AHe))),128))],512),[[Jt,c.value]])])):L("",!0),C[2]||(C[2]=p("div",{class:"spacer"},null,-1)),m.value?(h(),v("div",OHe,[w(D)])):(h(),v("div",IHe,[p("button",gHe,A(b.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:ve(I,["prevent"])},A(b.$t("buttons.CANCEL")),1)]))]),T(l)?(h(),B(M,{key:0,message:T(l)},null,8,["message"])):L("",!0)],32)])}}}),NO=ae(RHe,[["__scopeId","data-v-96400748"]]),NHe={class:"report-form"},vHe={class:"form-items"},bHe={class:"form-item"},CHe={for:"report"},PHe={class:"form-select-buttons"},DHe={key:0},LHe={key:1,class:"report-buttons"},yHe={class:"confirm",type:"submit"},$He=X({__name:"ReportForm",props:{objectId:{},objectType:{}},setup(e){const t=e,{objectId:n,objectType:a}=_e(t),s=De(),o={comment:"workouts.COMMENTS.REPORT",user:"user.REPORT",workout:"workouts.REPORT_WORKOUT"},i=Ie(""),r=F(()=>s.getters[te.GETTERS.ERROR_MESSAGES]),u=F(()=>s.getters[Le.GETTERS.REPORT_STATUS]),l=F(()=>o[a.value]);function d(m){i.value=m.value}function E(){i.value="",s.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),s.commit(Le.MUTATIONS.SET_REPORT_STATUS,null),a.value==="comment"?s.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{}):a.value==="workout"?s.commit(ee.MUTATIONS.SET_CURRENT_REPORTING,!1):s.commit(ue.MUTATIONS.UPDATE_USER_CURRENT_REPORTING,!1)}function c(){s.dispatch(Le.ACTIONS.SUBMIT_REPORT,{object_id:n.value,object_type:a.value,note:i.value})}return(m,_)=>{const f=q("CustomTextArea"),O=q("Loader"),S=q("ErrorMessage");return h(),v("div",NHe,[p("form",{onSubmit:ve(c,["prevent"])},[p("div",vHe,[p("div",bHe,[p("label",CHe,A(m.$t(l.value)),1),w(f,{class:"report-textarea",name:"report",required:!0,placeholder:m.$t("common.REPORT_PLACEHOLDER"),onUpdateValue:d},null,8,["placeholder"])])]),p("div",PHe,[_[0]||(_[0]=p("div",{class:"spacer"},null,-1)),u.value==="loading"?(h(),v("div",DHe,[w(O)])):(h(),v("div",LHe,[p("button",yHe,A(m.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:ve(E,["prevent"])},A(m.$t("buttons.CANCEL")),1)]))]),r.value?(h(),B(S,{key:0,message:r.value,"no-margin":!0},null,8,["message"])):L("",!0)],32)])}}}),Fp=ae($He,[["__scopeId","data-v-2a4f7a0e"]]),UHe=X({__name:"Username",props:{user:{}},setup(e){const t=e,{user:n}=_e(t);return(a,s)=>{const o=q("router-link");return T(n).username?(h(),B(o,{key:0,class:"user-name",to:{name:a.$route.path.startsWith("/admin")?"UserFromAdmin":"User",params:{username:T(n).username}},title:T(n).username},{default:Y(()=>[x(A(T(n).username),1)]),_:1},8,["to","title"])):L("",!0)}}}),Ri=ae(UHe,[["__scopeId","data-v-b000441f"]]),kHe=["id"],wHe={class:"comment-detail"},MHe={class:"comment-info"},WHe=["title"],FHe=["innerHTML"],zHe={key:1,class:"suspended info-box"},xHe={key:3,class:"comment-actions"},BHe=["disabled","title"],GHe=["title"],VHe=["title"],HHe=["title"],KHe=["title"],qHe={key:6,class:"report-submitted"},jHe={class:"info-box"},YHe=X({__name:"Comment",props:{comment:{},workout:{default:null},authUser:{},commentsLoading:{},currentCommentEdition:{default:null},forNotification:{type:Boolean,default:!1},forAdmin:{type:Boolean,default:!1},displayAppeal:{type:Boolean,default:!1},hideSuspensionAppeal:{type:Boolean,default:!1},action:{default:null}},setup(e){const t=e,{action:n,authUser:a,comment:s,currentCommentEdition:o,forAdmin:i,forNotification:r,workout:u}=_e(t),l=rt(),d=De(),{displayAppealForm:E}=Tp(),{displayOptions:c,locale:m}=Be(),_=F(()=>d.getters[Le.GETTERS.REPORT_STATUS]),f=F(()=>l.params.commentId),O=F(()=>{var P,W,Q,Se;return s.value.id===f.value||(((P=o.value)==null?void 0:P.type)==="delete"||((W=o.value)==null?void 0:W.type)==="report")&&((Se=(Q=o.value)==null?void 0:Q.comment)==null?void 0:Se.id)===s.value.id}),S=F(()=>{var P,W,Q,Se;return s.value.user.username===(a==null?void 0:a.value.username)&&((P=n.value)==null?void 0:P.action_type)==="comment_suspension"&&(!n.value.appeal||((W=n.value.appeal)==null?void 0:W.approved)===!1||((Q=n.value.appeal)==null?void 0:Q.approved)===null&&!((Se=n.value.appeal)!=null&&Se.updated_at))&&s.value.suspended_at!==null&&s.value.suspension!==void 0&&E.value!==s.value.id}),R=F(()=>!r.value&&!s.value.suspended&&!I(a.value,s.value.user)&&!N()&&_.value!==`comment-${s.value.id}-created`);function I(P,W){return P&&P.username===W.username}function g(){var P,W,Q;return((P=o.value)==null?void 0:P.type)==="edit"&&((Q=(W=o.value)==null?void 0:W.comment)==null?void 0:Q.id)===s.value.id}function N(){var P,W,Q;return((P=o.value)==null?void 0:P.type)==="report"&&((Q=(W=o.value)==null?void 0:W.comment)==null?void 0:Q.id)===s.value.id}function b(P){d.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{type:"delete",comment:P})}function C(P){d.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{type:"report",comment:P}),d.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)}function y(P){d.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{type:P,comment:s.value}),setTimeout(()=>{const W=document.getElementById(`text-${s.value.id}`);W&&W.focus()},100)}function D(P){d.dispatch(P.liked?ee.ACTIONS.UNDO_LIKE_COMMENT:ee.ACTIONS.LIKE_COMMENT,P)}function M(){let P=`/comments/${s.value.id}/likes`;return s.value.workout_id&&(P=`/workouts/${s.value.workout_id}${P}`),P}return Ce(()=>l.params.workoutId,()=>{d.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)}),ct(()=>d.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)),(P,W)=>{const Q=q("router-link"),Se=q("VisibilityIcon");return h(),v("div",{class:"workout-comment",id:T(s).id},[w(Qt,{user:T(s).user},null,8,["user"]),p("div",wHe,[p("div",MHe,[w(Ri,{user:T(s).user},null,8,["user"]),W[5]||(W[5]=p("div",{class:"spacer"},null,-1)),w(Q,{class:"comment-date",to:`${T(s).workout_id?`/workouts/${T(s).workout_id}`:""}/comments/${T(s).id}`,title:T(Ut)(T(s).created_at,T(c).timezone,T(c).dateFormat),onClick:W[0]||(W[0]=J=>P.$emit("commentLinkClicked"))},{default:Y(()=>[x(A(T(Ws)(new Date(T(s).created_at),new Date,{addSuffix:!0,locale:T(m)})),1)]),_:1},8,["to","title"]),T(s).modification_date?(h(),v("div",{key:0,class:"comment-edited",title:T(Ut)(T(s).modification_date,T(c).timezone,T(c).dateFormat)}," ("+A(P.$t("common.EDITED"))+") ",9,WHe)):L("",!0),w(Se,{visibility:T(s).text_visibility,"is-comment":!0},null,8,["visibility"])]),T(s).text_html?(h(),v(re,{key:0},[g()?(h(),B(NO,{key:1,workout:T(u),comment:T(s),"comments-loading":P.commentsLoading,name:`text-${T(s).id}`,authUser:T(a)},null,8,["workout","comment","comments-loading","name","authUser"])):(h(),v("span",{key:0,class:Oe(["comment-text",{highlight:O.value}]),innerHTML:T(gO)(T(s).text_html)},null,10,FHe))],64)):L("",!0),T(s).suspended&&!T(s).suspension?(h(),v("div",zHe,[W[6]||(W[6]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+A(P.$t("workouts.COMMENTS.SUSPENDED_COMMENT_BY_ADMIN")),1)])):L("",!0),S.value&&T(n)&&T(s).suspended?(h(),B(IGe,{key:2,"hide-suspension-appeal":P.hideSuspensionAppeal,action:T(n),comment:T(s)},null,8,["hide-suspension-appeal","action","comment"])):L("",!0),T(a).username&&!T(i)?(h(),v("div",xHe,[!T(s).suspended&&!T(r)?(h(),v("button",{key:0,class:"transparent icon-button likes",onClick:W[1]||(W[1]=J=>T(r)?null:D(T(s))),disabled:T(r),title:`${P.$t(`workouts.${T(s).liked?"REMOVE_LIKE":"COMMENTS.LIKE_COMMENT"}`)} (${T(s).likes_count} ${P.$t("workouts.LIKES",T(s).likes_count)})`},[p("i",{class:Oe(["fa",{"fa-heart":T(s).likes_count>0,"fa-heart-o":T(s).likes_count===0,liked:T(s).liked}]),"aria-hidden":"true"},null,2)],8,BHe)):L("",!0),T(s).likes_count>0?(h(),B(Q,{key:1,to:M(),class:"likes-count"},{default:Y(()=>[x(A(T(s).likes_count),1)]),_:1},8,["to"])):L("",!0),R.value?(h(),v("button",{key:2,class:"transparent icon-button",onClick:W[2]||(W[2]=J=>C(T(s))),title:P.$t("workouts.COMMENTS.REPORT")},W[7]||(W[7]=[p("i",{class:"fa fa-flag","aria-hidden":"true"},null,-1)]),8,GHe)):L("",!0),I(T(a),T(s).user)&&!T(r)?(h(),v("button",{key:3,class:"transparent icon-button",onClick:W[3]||(W[3]=()=>y("edit")),title:P.$t("workouts.COMMENTS.EDIT")},W[8]||(W[8]=[p("i",{class:"fa fa-edit","aria-hidden":"true"},null,-1)]),8,VHe)):L("",!0),I(T(a),T(s).user)&&!T(r)?(h(),v("button",{key:4,class:"transparent icon-button",onClick:W[4]||(W[4]=J=>b(T(s))),title:P.$t("workouts.COMMENTS.DELETE")},W[9]||(W[9]=[p("i",{class:"fa fa-trash","aria-hidden":"true"},null,-1)]),8,HHe)):L("",!0)])):L("",!0),T(a).username?L("",!0):(h(),v("div",{key:4,class:"comment-likes",title:`${T(s).likes_count} ${P.$t("workouts.LIKES",T(s).likes_count)}`},[p("i",{class:Oe(["fa",{"fa-heart":T(s).likes_count>0,"fa-heart-o":T(s).likes_count===0}]),"aria-hidden":"true"},null,2),T(s).likes_count>0?(h(),B(Q,{key:0,to:M(),class:"likes-count"},{default:Y(()=>[x(A(T(s).likes_count),1)]),_:1},8,["to"])):L("",!0)],8,KHe)),N()?(h(),B(Fp,{key:5,"object-id":T(s).id,"object-type":"comment"},null,8,["object-id"])):L("",!0),_.value===`comment-${T(s).id}-created`?(h(),v("div",qHe,[p("div",jHe,[p("span",null,[W[10]||(W[10]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+A(P.$t("common.REPORT_SUBMITTED")),1)])])])):L("",!0)])],8,kHe)}}}),zp=ae(YHe,[["__scopeId","data-v-f4abd303"]]),XHe={class:"alert-message"},QHe={key:0},ZHe=["innerHTML"],JHe=X({__name:"AlertMessage",props:{message:{},param:{default:()=>""}},setup(e){const t=e,{message:n,param:a}=_e(t);return(s,o)=>{const i=q("i18n-t");return h(),v("div",XHe,[T(a)?(h(),v("span",QHe,[w(i,{keypath:T(n)},{default:Y(()=>[p("span",null,A(T(a)),1)]),_:1},8,["keypath"])])):(h(),v("span",{key:1,innerHTML:s.$t(T(n))},null,8,ZHe)),Pt(s.$slots,"additionalMessage",{},void 0,!0)])}}}),eKe=ae(JHe,[["__scopeId","data-v-fc0d2d13"]]),tKe={},nKe={class:"card"},aKe={class:"card-title"},sKe={class:"card-content"};function oKe(e,t){return h(),v("div",nKe,[p("div",aKe,[Pt(e.$slots,"title")]),p("div",sKe,[Pt(e.$slots,"content")])])}const xp=ae(tKe,[["render",oKe]]),iKe={class:"custom-textarea"},rKe=["id","name","maxLength","disabled","rows","required","placeholder"],uKe={class:"remaining-chars"},lKe=X({__name:"CustomTextArea",props:{name:{},charLimit:{default:500},disabled:{type:Boolean,default:!1},input:{default:""},rows:{default:2},required:{type:Boolean,default:!1},placeholder:{default:""}},emits:["updateValue"],setup(e,{emit:t}){const n=e,a=t,{input:s}=_e(n),o=Ie(s.value?s.value:"");function i(r){const u=r.target;a("updateValue",{value:u.value,selectionStart:u.selectionStart})}return Ce(()=>n.input,r=>{o.value=r===null?"":r}),(r,u)=>(h(),v("div",iKe,[We(p("textarea",{id:r.name,name:r.name,maxLength:r.charLimit,disabled:r.disabled,rows:r.rows,required:r.required,placeholder:r.placeholder,"onUpdate:modelValue":u[0]||(u[0]=l=>o.value=l),onInput:i},null,40,rKe),[[it,o.value]]),p("div",uKe,A(r.$t("workouts.REMAINING_CHARS"))+": "+A(o.value.length)+"/"+A(r.charLimit),1)]))}}),vO=ae(lKe,[["__scopeId","data-v-8d139e95"]]),vn={ft:{unit:"ft",system:"imperial",multiplier:1,defaultTarget:"m"},mi:{unit:"mi",system:"imperial",multiplier:5280,defaultTarget:"km"},m:{unit:"m",system:"metric",multiplier:1,defaultTarget:"ft"},km:{unit:"m",system:"metric",multiplier:1e3,defaultTarget:"mi"}},cKe={metric:{imperial:3.280839895,metric:1},imperial:{metric:1/3.280839895,imperial:1}},Yt=(e,t,n,a=3)=>{const s=vn[t],o=vn[n],i=e*s.multiplier*cKe[s.system][o.system]/o.multiplier;return a!==null?parseFloat(i.toFixed(a)):i},Jr=(e,t,n)=>{const a=n?vn[e].defaultTarget:e;return n?Yt(t,e,a,2):t},ph=(e,t)=>{const n=t?e*1.8+32:e,a=t?" °F":"°C";return`${n===0?0:Number(n).toFixed(1)}${a}`},dKe=(e,t)=>{const n=t?e*2.2369363:e,a=t?" mph":"m/s";return`${n===0?0:Number(n).toFixed(1)}${a}`},EKe=X({__name:"Distance",props:{distance:{},unitFrom:{},useImperialUnits:{type:Boolean},digits:{default:2},displayUnit:{type:Boolean,default:!0},speed:{type:Boolean,default:!1},strong:{type:Boolean,default:!1}},setup(e){const t=e,{digits:n,displayUnit:a,distance:s,speed:o,strong:i,unitFrom:r,useImperialUnits:u}=_e(t),l=F(()=>u.value?vn[r.value].defaultTarget:r.value),d=F(()=>u.value?Yt(s.value,r.value,l.value,n.value):parseFloat(s.value.toFixed(n.value)));return(E,c)=>(h(),v(re,null,[p("span",{class:Oe(["distance",{strong:T(i)}])},A(d.value),3),c[0]||(c[0]=x(" "+A(" ")+" ")),T(a)?(h(),v("span",{key:0,class:Oe(["unit",{strong:T(i)}])},A(l.value)+A(T(o)?"/h":""),3)):L("",!0)],64))}}),pKe=ae(EKe,[["__scopeId","data-v-3aadc3cb"]]),mKe={class:"dropdown-wrapper"},TKe=["aria-expanded","aria-label"],_Ke=["aria-labelledby"],fKe=["id","onClick","onKeydown","onMouseover"],hKe=X({__name:"Dropdown",props:{options:{},selected:{},buttonLabel:{},listLabel:{},isMenuOpen:{type:Boolean}},emits:{selected:e=>e},setup(e,{emit:t}){const n=e,{isMenuOpen:a,options:s,selected:o}=_e(n),i=t,r=rt(),u=Ie(!1),l=Ie(null),d=Ie(_(o.value));function E(){if(u.value)c();else{u.value=!0;const S=document.getElementById(`dropdown-item-${d.value}`);S==null||S.focus()}}function c(){var S;u.value=!1,d.value=_(o.value),(S=l.value)==null||S.focus()}function m(S){i("selected",S),u.value=!1}function _(S){const R=s.value.findIndex(I=>I.value===S);return R>=0?R:0}function f(S){let R=!1;u.value&&(S.key==="ArrowDown"&&(R=!0,d.value+=1,d.value>s.value.length&&(d.value=0)),S.key==="ArrowUp"&&(R=!0,d.value-=1,d.value<0&&(d.value=s.value.length-1)),S.key==="Home"&&(R=!0,d.value=0),S.key==="End"&&(R=!0,d.value=s.value.length-1),S.key==="Enter"&&(R=!0,m(s.value[d.value])),(S.key==="Escape"||S.key==="Tab")&&(R=S.key==="Escape",c())),R&&(S.stopPropagation(),S.preventDefault())}function O(S){d.value=S}return Ce(()=>r.path,()=>u.value=!1),Ce(()=>o.value,S=>d.value=_(S)),Ce(()=>a.value,S=>{S||c()}),mt(()=>{document.addEventListener("keydown",f)}),ct(()=>{document.removeEventListener("keydown",f)}),(S,R)=>(h(),v("div",mKe,[p("button",{"aria-controls":"dropdown-list","aria-expanded":u.value,"aria-haspopup":"true","aria-label":S.buttonLabel,class:"dropdown-selector transparent",onClick:R[0]||(R[0]=I=>E()),ref_key:"dropdownButton",ref:l},[Pt(S.$slots,"default",{},void 0,!0)],8,TKe),u.value?(h(),v("ul",{key:0,"aria-labelledby":S.listLabel,class:"dropdown-list",id:"dropdown-list",role:"menu"},[(h(!0),v(re,null,be(T(s),(I,g)=>(h(),v("li",{class:Oe(["dropdown-item",{selected:I.value===T(o),focused:g===d.value}]),key:g,id:`dropdown-item-${g}`,tabindex:"-1",onClick:N=>m(I),onKeydown:Ye(N=>m(I),["enter"]),onMouseover:N=>O(g),role:"menuitem"},A(I.label),43,fKe))),128))],8,_Ke)):L("",!0)]))}}),SKe=ae(hKe,[["__scopeId","data-v-f0445cd3"]]),AKe={key:0},OKe={key:1},IKe={key:2},gKe=X({__name:"ErrorMessage",props:{message:{},noMargin:{type:Boolean,default:!1}},setup(e){const t=e,{message:n}=_e(t);return(a,s)=>(h(),v("div",{class:Oe(["error-message",{"no-margin":a.noMargin}])},[Array.isArray(T(n))?(h(),v("ul",AKe,[(h(!0),v(re,null,be(T(n),(o,i)=>(h(),v("li",{key:i},A(a.$t(o)),1))),128))])):typeof T(n)=="string"?(h(),v("div",OKe,A(a.$t(T(n)).replace("api.ERROR.","")),1)):(h(),v("div",IKe,A(a.$t(`equipments.ERRORS.${T(n).status}`,{equipmentId:T(n).equipmentId,equipmentLabel:T(n).equipmentLabel})),1))],2))}}),RKe=ae(gKe,[["__scopeId","data-v-55f45146"]]),NKe={name:"Bike"},vKe={version:"1.1",id:"bike",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 35 35","xml:space":"preserve"};function bKe(e,t,n,a,s,o){return h(),v("svg",vKe,t[0]||(t[0]=[p("desc",{id:"BikeEquipmentDescription"},"bike",-1),p("g",null,[p("path",{d:`M25.8 14.32c-0.64 0-1.24 0.12-1.84 0.32l-1.52-3 2.6-3.88c0.28-0.4 0.12-1.32-0.72-1.32h-3.32c-0.48 0-0.84 0.36-0.84 0.84s0.36 0.84 0.84 0.84h1.76l-1.76 2.64h-9.68c-0.4 0-0.68 0.36-0.68 0.36v0 0 0 0l-2.56 3.76c-0.72-0.36-1.56-0.56-2.44-0.56-3.12 0-5.64 2.52-5.64 5.64s2.52 5.64 5.68 5.64c2.8 0 5.16-2.080 5.56-4.8h4.6c0.48 0 0.68-0.4 0.68-0.4v0l4.8-7.2 1.16 2.2c-1.4 1.040-2.32 2.68-2.32 4.56 0 3.12 2.52 5.64 5.64 @@ -342,7 +342,7 @@ and ensure you are accounting for this risk. 0.68 1.28v0 0h3.84c-0.4 1.8-2 3.12-3.84 3.12zM25.8 23.88c-2.16 0-3.96-1.76-3.96-3.96 0-1.2 0.56-2.32 1.44-3.040l1.8 3.44c0.2 0.32 0.68 0.56 1.16 0.36 0.4-0.16 0.56-0.72 0.36-1.12l-1.8-3.4c0.32-0.080 0.68-0.16 1.040-0.16 2.16 0 3.96 1.76 3.96 3.96s-1.8 3.92-4 3.92zM9.8 9.4h3.080c0.48 0 0.84-0.36 - 0.84-0.84s-0.36-0.84-0.84-0.84h-3.080c-0.48 0-0.84 0.36-0.84 0.84-0.040 0.44 0.36 0.84 0.84 0.84z`})],-1)]))}const PKe=ae(vKe,[["render",CKe]]),DKe={name:"BikeTrainer"},LKe={version:"1.1",id:"bike_trainer",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","xml:space":"preserve",style:{"shape-rendering":"geometricPrecision","text-rendering":"geometricPrecision","image-rendering":"optimizeQuality","fill-rule":"evenodd","clip-rule":"evenodd"}};function yKe(e,t,n,a,s,o){return f(),v("svg",LKe,t[0]||(t[0]=[Pn(`bike trainerbike trainer`,7)]))}const $Ke=ae(DKe,[["render",yKe]]),UKe={name:"Kayak_Boat"},kKe={id:"kayak",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"-200 -150 800 800","xml:space":"preserve"};function wKe(e,t,n,a,s,o){return f(),v("svg",kKe,t[0]||(t[0]=[p("desc",{id:"kayakBoatEquipmentDescription"},"kayak",-1),p("g",null,[p("g",null,[p("path",{d:`M506.376,55.175L458.322,7.122c-5.504-5.504-14.428-5.504-19.933,0l-30.985,30.985 + -49,-0.5 9.6894,-11.353 19.3561,-22.686 29,-34 z">`,7)]))}const yKe=ae(PKe,[["render",LKe]]),$Ke={name:"Kayak_Boat"},UKe={id:"kayak",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"-200 -150 800 800","xml:space":"preserve"};function kKe(e,t,n,a,s,o){return h(),v("svg",UKe,t[0]||(t[0]=[p("desc",{id:"kayakBoatEquipmentDescription"},"kayak",-1),p("g",null,[p("g",null,[p("path",{d:`M506.376,55.175L458.322,7.122c-5.504-5.504-14.428-5.504-19.933,0l-30.985,30.985 c-14.252,14.252-17.674,35.223-10.286,52.713c-1.12,0.678-2.183,1.483-3.15,2.45L91.981,395.257 c-1.027,1.027-1.872,2.163-2.574,3.361c-17.508-7.434-38.522-4.024-52.798,10.25L5.623,439.852 c-5.504,5.504-5.504,14.429,0,19.933l48.054,48.054c5.504,5.504,14.428,5.504,19.933,0l30.985-30.985 @@ -371,7 +371,7 @@ and ensure you are accounting for this risk. c0-25.894,20.992-46.886,46.886-46.886c13.039,0,24.831,5.326,33.329,13.917l40.982-40.982 C317.405,73.151,301.526,41.842,287.822,18.22z`})])],-1),p("g",null,[p("g",null,[p("path",{d:`M356.238,224.889l-53.113,53.115v50.303c0,25.894-20.992,46.886-46.886,46.886c-13.817,0-26.235-5.979-34.816-15.488 l-40.306,40.306c13.297,37.559,29.552,69.661,43.538,93.767c6.534,11.261,18.536,18.214,31.556,18.22s25.057-6.925,31.591-18.186 - c29.734-51.242,69.75-138.626,69.75-237.815C357.552,245.483,357.078,235.11,356.238,224.889z`})])],-1)]))}const MKe=ae(UKe,[["render",wKe]]),WKe={name:"Shoes"},FKe={id:"shoes",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","xml:space":"preserve"};function zKe(e,t,n,a,s,o){return f(),v("svg",FKe,t[0]||(t[0]=[Pn(`shoesshoes`,4)]))}const xKe=ae(WKe,[["render",zKe]]),BKe={name:"Shoes"},GKe={id:"skis",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","xml:space":"preserve"};function VKe(e,t,n,a,s,o){return f(),v("svg",GKe,t[0]||(t[0]=[p("desc",{id:"skisEquipmentDescription"},"skis",-1),p("path",{d:`m 105.01644,82.858537 c -0.75155,0 -1.40914,0.134433 -2.1607,0.373428 -1.52187,0.492925 -2.39554,1.127758 -3.400739,2.673751 + 39.5,-38 z">`,4)]))}const zKe=ae(MKe,[["render",FKe]]),xKe={name:"Shoes"},BKe={id:"skis",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","xml:space":"preserve"};function GKe(e,t,n,a,s,o){return h(),v("svg",BKe,t[0]||(t[0]=[p("desc",{id:"skisEquipmentDescription"},"skis",-1),p("path",{d:`m 105.01644,82.858537 c -0.75155,0 -1.40914,0.134433 -2.1607,0.373428 -1.52187,0.492925 -2.39554,1.127758 -3.400739,2.673751 -1.01459,1.553454 -1.85068,4.040497 -2.16069,7.192229 -0.62942,6.296003 0.79852,14.996885 3.184669,23.511055 4.81929,17.02088 12.99235,33.25755 12.99235,33.25755 l 31.75279,62.51192 11.9308,-22.33103 28.18296,9.48509 -31.7528,-62.48952 c 0,0 -8.36096,-16.25161 -19.82202,-31.129 -5.73054,-7.438695 -12.30656,-14.481551 -18.22498,-18.66396 -3.00618,-2.091199 -5.82448,-3.420599 -7.89123,-3.973273 @@ -399,7 +399,7 @@ and ensure you are accounting for this risk. V 250.0574 Z m 80.79115,0 v 153.85252 h -21.60693 v 13.44343 h 21.60693 v 17.17771 h 16.90978 V 417.35335 H 463.7855 V 403.90992 H 442.17857 V 250.0574 Z m -200.94449,26.13999 -40.0198,12.92062 10.52164,20.76263 40.11374,-12.92062 -4.88504,-9.63446 z m -94.03714,0.0747 -10.61558,20.76262 40.0198,12.92063 8.45488,-16.58022 -2.25462,-4.48115 -0.65761,-1.34434 z m 110.94691,33.16045 - -40.0198,12.84594 55.61437,109.48923 40.0198,-12.92063 z m -127.95063,0.0373 -55.623763,109.33985 40.057384,12.92063 55.680129,-109.33986 z`},null,-1)]))}const HKe=ae(BKe,[["render",VKe]]),KKe={name:"Shoes"},qKe={id:"shoes",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","xml:space":"preserve",style:{"shape-rendering":"geometricPrecision","text-rendering":"geometricPrecision","image-rendering":"optimizeQuality","fill-rule":"evenodd","clip-rule":"evenodd"}};function jKe(e,t,n,a,s,o){return f(),v("svg",qKe,t[0]||(t[0]=[Pn(`snowshoessnowshoes`,3)]))}const YKe=ae(KKe,[["render",jKe]]),XKe=["title"],QKe=X({__name:"index",props:{equipmentTypeLabel:{},title:{}},setup(e){const t=e,{equipmentTypeLabel:n,title:a}=_e(t),{darkTheme:s}=Ke();return(o,i)=>(f(),v("div",{class:"equipment-type-img",style:za({fill:T(s)?"#cfd0d0":"#2c3e50"}),title:T(a)},[T(n)==="Bike"?(f(),B(PKe,{key:0})):L("",!0),T(n)==="Bike Trainer"?(f(),B($Ke,{key:1})):L("",!0),T(n)==="Kayak_Boat"?(f(),B(MKe,{key:2})):L("",!0),T(n)==="Shoes"?(f(),B(xKe,{key:3})):L("",!0),T(n)==="Skis"?(f(),B(HKe,{key:4})):L("",!0),T(n)==="Snowshoes"?(f(),B(YKe,{key:5})):L("",!0)],12,XKe))}}),ZKe={name:"CyclingSport"},JKe={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 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve"};function eqe(e,t,n,a,s,o){return f(),v("svg",JKe,t[0]||(t[0]=[p("desc",{id:"cyclingSportDescription"}," silhouette of a person riding a bicycle ",-1),p("g",null,[p("path",{d:`M321.097,112.359c20.973,12.338,47.985,5.315,60.293-15.652c12.34-20.973,5.35-47.974-15.623-60.304 + 5.705,-1.571 11.372,-3.071 17,-4.5 z">`,3)]))}const jKe=ae(HKe,[["render",qKe]]),YKe=["title"],XKe=X({__name:"index",props:{equipmentTypeLabel:{},title:{}},setup(e){const t=e,{equipmentTypeLabel:n,title:a}=_e(t),{darkTheme:s}=Be();return(o,i)=>(h(),v("div",{class:"equipment-type-img",style:za({fill:T(s)?"#cfd0d0":"#2c3e50"}),title:T(a)},[T(n)==="Bike"?(h(),B(CKe,{key:0})):L("",!0),T(n)==="Bike Trainer"?(h(),B(yKe,{key:1})):L("",!0),T(n)==="Kayak_Boat"?(h(),B(wKe,{key:2})):L("",!0),T(n)==="Shoes"?(h(),B(zKe,{key:3})):L("",!0),T(n)==="Skis"?(h(),B(VKe,{key:4})):L("",!0),T(n)==="Snowshoes"?(h(),B(jKe,{key:5})):L("",!0)],12,YKe))}}),QKe={name:"CyclingSport"},ZKe={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 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve"};function JKe(e,t,n,a,s,o){return h(),v("svg",ZKe,t[0]||(t[0]=[p("desc",{id:"cyclingSportDescription"}," silhouette of a person riding a bicycle ",-1),p("g",null,[p("path",{d:`M321.097,112.359c20.973,12.338,47.985,5.315,60.293-15.652c12.34-20.973,5.35-47.974-15.623-60.304 c-21.009-12.332-47.99-5.317-60.314,15.65C293.129,73.036,300.103,100.027,321.097,112.359z`}),p("path",{d:`M393.081,264.102c-2.414,0-4.8,0.194-7.169,0.362l-14.431-71.605l4.702-1.757c10.666-3.987,16.093-15.868,12.098-26.54 c-3.994-10.681-15.946-16.084-26.531-12.09l-51.823,19.38l-2.321-18.864c6.3-13.193,5.541-29.78-4.767-41.482 c-21.224-24.092-47.12-12.508-55.191-5.976l-106.884,86.555l0.016,0.024c-3.319,2.893-6.089,6.485-7.86,10.842 @@ -477,7 +477,7 @@ and ensure you are accounting for this risk. c7.877-9.118,17.787-16.319,29.205-20.734L375.396,337.633z M393.081,436.671c-40.757,0-73.907-33.161-73.907-73.917 c0-9.544,1.965-18.597,5.268-26.983l44.541,26.888c0,0.032-0.016,0.064-0.016,0.095c0,13.323,10.808,24.132,24.114,24.132 c13.322,0,24.118-10.81,24.118-24.132c0-10.478-6.721-19.307-16.06-22.64l-10.277-51.043c0.756-0.024,1.463-0.226,2.22-0.226 - c40.757,0,73.911,33.153,73.911,73.909C466.992,403.51,433.838,436.671,393.081,436.671z`})],-1)]))}const tqe=ae(ZKe,[["render",eqe]]),nqe={name:"CyclingTransport"},aqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function sqe(e,t,n,a,s,o){return f(),v("svg",aqe,t[0]||(t[0]=[p("desc",{id:"cyclingTransportDescription"}," silhouette of a person riding a bicycle (for transportation) ",-1),p("g",{id:"g147"},[p("path",{d:"m 189.097,82.359 c 20.97701,12.331184 47.97442,5.308784 60.293,-15.652 12.32942,-20.979222 5.35418,-47.981117 -15.623,-60.304 -21.00482,-12.3391184 -47.99,-5.317 -60.314,15.65 -12.324,20.983 -5.34599,47.967183 15.644,60.306 z",id:"path143"}),p("path",{d:"m 393.081,264.102 c -2.414,0 -4.8,0.194 -7.169,0.362 l -14.431,-71.605 4.702,-1.757 c 10.666,-3.987 16.093,-15.868 12.098,-26.54 -3.994,-10.681 -15.946,-16.084 -26.531,-12.09 l -63.05508,-1.53717 C 284.04753,137.09803 248.90259,106.55858 243.33317,101.62481 217.77732,75.090916 186.1698,85.012419 178.0988,91.544419 L 140.764,192.085 l 0.016,0.024 c -3.319,2.893 -6.089,6.485 -7.86,10.842 -2.191,5.396 -2.596,11.067 -1.564,16.384 -8.503,0.669 -15.255,7.571 -15.255,16.246 0,9.085 7.346,16.44 16.432,16.48 l -6.797,15.906 c -8.62,-2.465 -17.674,-3.866 -27.066,-3.866 C 44.27,264.102 0,308.354 0,362.754 c 0,54.403 44.27,98.663 98.668,98.663 54.403,0 98.652,-44.26 98.652,-98.663 0,-36.228 -19.683,-67.867 -48.858,-85.024 l 10.957,-25.652 h 17.767 l 60.281,24.462 -32.201,52.773 c -8.297,13.612 -3.994,31.382 9.615,39.685 4.691,2.86 9.878,4.229 15,4.229 9.729,0 19.234,-4.929 24.677,-13.838 l 29.339,-48.095 19.072,11.511 c -5.447,12.227 -8.54,25.726 -8.54,39.95 0,54.403 44.254,98.663 98.652,98.663 54.402,0 98.656,-44.26 98.656,-98.663 0,-54.401 -44.254,-98.653 -98.656,-98.653 z M 98.668,436.671 c -40.756,0 -73.923,-33.161 -73.923,-73.917 0,-40.756 33.167,-73.909 73.923,-73.909 5.944,0 11.649,0.896 17.188,2.224 L 95.38,338.962 c -11.758,1.619 -20.843,11.598 -20.843,23.792 0,13.323 10.808,24.132 24.13,24.132 8.767,0 16.367,-4.745 20.589,-11.76 h 52.065 c -5.926,34.862 -36.133,61.545 -72.653,61.545 z m 72.654,-86.288 h -52.065 c -0.355,-0.588 -0.708,-1.176 -1.112,-1.732 l 20.476,-47.901 c 17.058,11.026 29.172,28.845 32.701,49.633 z m 125.459,-60.208 7.666,-12.564 c 4.416,-7.233 5.431,-16.038 2.774,-24.084 -2.661,-8.046 -8.718,-14.515 -16.562,-17.704 l -73.83357,-31.7176 16.7558,-45.21274 c 10.36934,4.13303 41.82171,27.90767 45.77423,28.08592 3.271,1.981 8.57725,1.46711 12.29625,1.46711 2.435,0 18.50584,0.70472 20.84384,-0.16628 L 343.32113,188.03378 361.635,269.33 c -18.268,6.162 -34.117,17.51 -45.848,32.314 z m 78.615,47.458 -38.003,-22.94 c 7.877,-9.118 17.787,-16.319 29.205,-20.734 z m 17.685,99.038 c -40.757,0 -73.907,-33.161 -73.907,-73.917 0,-9.544 1.965,-18.597 5.268,-26.983 l 44.541,26.888 c 0,0.032 -0.016,0.064 -0.016,0.095 0,13.323 10.808,24.132 24.114,24.132 13.322,0 24.118,-10.81 24.118,-24.132 0,-10.478 -6.721,-19.307 -16.06,-22.64 l -10.277,-51.043 c 0.756,-0.024 1.463,-0.226 2.22,-0.226 40.757,0 73.911,33.153 73.911,73.909 -10e-4,40.756 -33.155,73.917 -73.912,73.917 z",id:"path145"})],-1)]))}const oqe=ae(nqe,[["render",sqe]]),iqe={name:"CyclingTransport"},rqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function uqe(e,t,n,a,s,o){return f(),v("svg",rqe,t[0]||(t[0]=[Pn(' silhouette of a person riding a bicycle for touring/trekking ',2)]))}const lqe=ae(iqe,[["render",uqe]]),cqe={name:"CyclingVirtual"},dqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function Eqe(e,t,n,a,s,o){return f(),v("svg",dqe,t[0]||(t[0]=[Pn(' silhouette of a person riding a bicycle with virtual indicator ',4)]))}const pqe=ae(cqe,[["render",Eqe]]),mqe={name:"Hiking"},Tqe={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 463.507 463.507",style:{"enable-background":"new 0 0 463.507 463.507"},"xml:space":"preserve"};function _qe(e,t,n,a,s,o){return f(),v("svg",Tqe,t[0]||(t[0]=[p("desc",{id:"hikingDescription"},"silhouette of a person hiking",-1),p("g",null,[p("path",{d:`M246.413,78.492c21.688,0,39.255-17.573,39.255-39.251c0-21.67-17.567-39.24-39.255-39.24 + c40.757,0,73.911,33.153,73.911,73.909C466.992,403.51,433.838,436.671,393.081,436.671z`})],-1)]))}const eqe=ae(QKe,[["render",JKe]]),tqe={name:"CyclingTransport"},nqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function aqe(e,t,n,a,s,o){return h(),v("svg",nqe,t[0]||(t[0]=[p("desc",{id:"cyclingTransportDescription"}," silhouette of a person riding a bicycle (for transportation) ",-1),p("g",{id:"g147"},[p("path",{d:"m 189.097,82.359 c 20.97701,12.331184 47.97442,5.308784 60.293,-15.652 12.32942,-20.979222 5.35418,-47.981117 -15.623,-60.304 -21.00482,-12.3391184 -47.99,-5.317 -60.314,15.65 -12.324,20.983 -5.34599,47.967183 15.644,60.306 z",id:"path143"}),p("path",{d:"m 393.081,264.102 c -2.414,0 -4.8,0.194 -7.169,0.362 l -14.431,-71.605 4.702,-1.757 c 10.666,-3.987 16.093,-15.868 12.098,-26.54 -3.994,-10.681 -15.946,-16.084 -26.531,-12.09 l -63.05508,-1.53717 C 284.04753,137.09803 248.90259,106.55858 243.33317,101.62481 217.77732,75.090916 186.1698,85.012419 178.0988,91.544419 L 140.764,192.085 l 0.016,0.024 c -3.319,2.893 -6.089,6.485 -7.86,10.842 -2.191,5.396 -2.596,11.067 -1.564,16.384 -8.503,0.669 -15.255,7.571 -15.255,16.246 0,9.085 7.346,16.44 16.432,16.48 l -6.797,15.906 c -8.62,-2.465 -17.674,-3.866 -27.066,-3.866 C 44.27,264.102 0,308.354 0,362.754 c 0,54.403 44.27,98.663 98.668,98.663 54.403,0 98.652,-44.26 98.652,-98.663 0,-36.228 -19.683,-67.867 -48.858,-85.024 l 10.957,-25.652 h 17.767 l 60.281,24.462 -32.201,52.773 c -8.297,13.612 -3.994,31.382 9.615,39.685 4.691,2.86 9.878,4.229 15,4.229 9.729,0 19.234,-4.929 24.677,-13.838 l 29.339,-48.095 19.072,11.511 c -5.447,12.227 -8.54,25.726 -8.54,39.95 0,54.403 44.254,98.663 98.652,98.663 54.402,0 98.656,-44.26 98.656,-98.663 0,-54.401 -44.254,-98.653 -98.656,-98.653 z M 98.668,436.671 c -40.756,0 -73.923,-33.161 -73.923,-73.917 0,-40.756 33.167,-73.909 73.923,-73.909 5.944,0 11.649,0.896 17.188,2.224 L 95.38,338.962 c -11.758,1.619 -20.843,11.598 -20.843,23.792 0,13.323 10.808,24.132 24.13,24.132 8.767,0 16.367,-4.745 20.589,-11.76 h 52.065 c -5.926,34.862 -36.133,61.545 -72.653,61.545 z m 72.654,-86.288 h -52.065 c -0.355,-0.588 -0.708,-1.176 -1.112,-1.732 l 20.476,-47.901 c 17.058,11.026 29.172,28.845 32.701,49.633 z m 125.459,-60.208 7.666,-12.564 c 4.416,-7.233 5.431,-16.038 2.774,-24.084 -2.661,-8.046 -8.718,-14.515 -16.562,-17.704 l -73.83357,-31.7176 16.7558,-45.21274 c 10.36934,4.13303 41.82171,27.90767 45.77423,28.08592 3.271,1.981 8.57725,1.46711 12.29625,1.46711 2.435,0 18.50584,0.70472 20.84384,-0.16628 L 343.32113,188.03378 361.635,269.33 c -18.268,6.162 -34.117,17.51 -45.848,32.314 z m 78.615,47.458 -38.003,-22.94 c 7.877,-9.118 17.787,-16.319 29.205,-20.734 z m 17.685,99.038 c -40.757,0 -73.907,-33.161 -73.907,-73.917 0,-9.544 1.965,-18.597 5.268,-26.983 l 44.541,26.888 c 0,0.032 -0.016,0.064 -0.016,0.095 0,13.323 10.808,24.132 24.114,24.132 13.322,0 24.118,-10.81 24.118,-24.132 0,-10.478 -6.721,-19.307 -16.06,-22.64 l -10.277,-51.043 c 0.756,-0.024 1.463,-0.226 2.22,-0.226 40.757,0 73.911,33.153 73.911,73.909 -10e-4,40.756 -33.155,73.917 -73.912,73.917 z",id:"path145"})],-1)]))}const sqe=ae(tqe,[["render",aqe]]),oqe={name:"CyclingTransport"},iqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function rqe(e,t,n,a,s,o){return h(),v("svg",iqe,t[0]||(t[0]=[Pn(' silhouette of a person riding a bicycle for touring/trekking ',2)]))}const uqe=ae(oqe,[["render",rqe]]),lqe={name:"CyclingVirtual"},cqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function dqe(e,t,n,a,s,o){return h(),v("svg",cqe,t[0]||(t[0]=[Pn(' silhouette of a person riding a bicycle with virtual indicator ',4)]))}const Eqe=ae(lqe,[["render",dqe]]),pqe={name:"Hiking"},mqe={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 463.507 463.507",style:{"enable-background":"new 0 0 463.507 463.507"},"xml:space":"preserve"};function Tqe(e,t,n,a,s,o){return h(),v("svg",mqe,t[0]||(t[0]=[p("desc",{id:"hikingDescription"},"silhouette of a person hiking",-1),p("g",null,[p("path",{d:`M246.413,78.492c21.688,0,39.255-17.573,39.255-39.251c0-21.67-17.567-39.24-39.255-39.24 c-21.652,0-39.242,17.57-39.242,39.24C207.171,60.919,224.761,78.492,246.413,78.492z`}),p("path",{d:`M386.604,202.858c0-11.185-9.066-20.251-20.253-20.251h-68.479l-38.62-54.832l0.127-0.933 c1.378-10.474-1.474-21.067-7.911-29.444c-6.441-8.378-15.932-13.852-26.408-15.23c-11.596-1.511-22.592,2.224-30.852,9.225V45.779 c0-7.847-6.362-14.217-14.225-14.217H140.59c-7.867,0-14.225,6.37-14.225,14.217v168.953c0,20.68,15.821,37.476,35.979,39.446 @@ -486,7 +486,7 @@ and ensure you are accounting for this risk. c-0.917,13.393,9.177,24.99,22.58,25.908c0.552,0.04,1.124,0.056,1.691,0.056c12.66,0,23.339-9.819,24.208-22.642l6.882-100.264 c0.508-7.364-2.371-14.572-7.815-19.564l-45.994-42.219l13.992-90.613l19.331,27.435c3.801,5.387,9.972,8.592,16.552,8.592h70.882 l1.339,232.294c0,4.478,3.626,8.101,8.101,8.101c4.479,0,8.101-3.624,8.101-8.101l-1.339-234.036 - C381.588,218.245,386.604,211.15,386.604,202.858z`})],-1)]))}const fqe=ae(mqe,[["render",_qe]]),hqe={name:"MountainBiking"},Sqe={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 503.162 503.162",style:{"enable-background":"new 0 0 503.162 503.162"},"xml:space":"preserve"};function Aqe(e,t,n,a,s,o){return f(),v("svg",Sqe,t[0]||(t[0]=[p("desc",{id:"mountainBikingDescription"}," silhouette of a person riding a mountain bike ",-1),p("g",null,[p("g",null,[p("path",{d:`M149.951,67.997c15.711-7.143,22.739-25.675,15.596-41.416c-7.124-15.701-25.723-22.682-41.453-15.539 + C381.588,218.245,386.604,211.15,386.604,202.858z`})],-1)]))}const _qe=ae(pqe,[["render",Tqe]]),fqe={name:"MountainBiking"},hqe={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 503.162 503.162",style:{"enable-background":"new 0 0 503.162 503.162"},"xml:space":"preserve"};function Sqe(e,t,n,a,s,o){return h(),v("svg",hqe,t[0]||(t[0]=[p("desc",{id:"mountainBikingDescription"}," silhouette of a person riding a mountain bike ",-1),p("g",null,[p("g",null,[p("path",{d:`M149.951,67.997c15.711-7.143,22.739-25.675,15.596-41.416c-7.124-15.701-25.723-22.682-41.453-15.539 c-15.721,7.134-22.702,25.752-15.578,41.444C115.679,68.216,134.23,75.14,149.951,67.997z`}),p("path",{d:`M87.517,89.072l-32.828,87.755c-1.979,5.967-1.683,12.594,1.1,18.733c4.055,8.922,12.604,14.525,21.755,15.271 l76.873,6.244l29.137,64.184c4.122,9.046,14.832,13.148,23.906,9.017c9.075-4.131,13.072-14.859,8.951-23.944l-36.424-80.201 c0,0-3.605-13.76-21.343-14.133l-43.873-2.572l21.009-55.166l31.671,20.588c5.584,3.663,10.997,3.682,15.1,1.722l55.051-24.997 @@ -501,7 +501,7 @@ and ensure you are accounting for this risk. c-12.326-0.497-24.021,8.97-26.096,21.143l-2.62,15.339c-0.564,3.271-0.354,6.11,0.401,8.501c-0.43,1.778-0.736,3.548-0.736,5.326 v9.562c0,10.557,8.568,19.125,19.125,19.125h460.932c10.557,0,19.115-8.568,19.106-19.125l-0.125-167.507 c0-2.782-0.593-5.221-1.616-7.286c1.396-3.806,2.057-7.841,1.598-11.839l-4.677-40.497c-1.415-12.249-9.763-29.146-18.637-37.724 - l-36.127-34.951C434.712,167.418,425.79,170.325,423.687,182.488z`})])],-1)]))}const Oqe=ae(hqe,[["render",Aqe]]),Iqe={name:"MountainBikingElectric"},gqe={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 503.162 503.162",style:{"enable-background":"new 0 0 503.162 503.162"},"xml:space":"preserve"};function Rqe(e,t,n,a,s,o){return f(),v("svg",gqe,t[0]||(t[0]=[Pn(' silhouette of a person riding an electric mountain bike ',18)]))}const Nqe=ae(Iqe,[["render",Rqe]]),vqe={name:"Mountaineering"},bqe={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 495.017 495.017",style:{"enable-background":"new 0 0 495.017 495.017"},"xml:space":"preserve"};function Cqe(e,t,n,a,s,o){return f(),v("svg",bqe,t[0]||(t[0]=[Pn(` silhouette of a person doing mountaineering silhouette of a person riding an electric mountain bike ',18)]))}const Rqe=ae(Oqe,[["render",gqe]]),Nqe={name:"Mountaineering"},vqe={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 495.017 495.017",style:{"enable-background":"new 0 0 495.017 495.017"},"xml:space":"preserve"};function bqe(e,t,n,a,s,o){return h(),v("svg",vqe,t[0]||(t[0]=[Pn(` silhouette of a person doing mountaineering `,2)]))}const Pqe=ae(vqe,[["render",Cqe]]),Dqe={name:"OpenWaterSwimming"},Lqe={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 492.508 492.508",style:{"enable-background":"new 0 0 492.508 492.508"},"xml:space":"preserve"};function yqe(e,t,n,a,s,o){return f(),v("svg",Lqe,t[0]||(t[0]=[Pn(` silhouette of a person swimming in open water `,2)]))}const Cqe=ae(Nqe,[["render",bqe]]),Pqe={name:"OpenWaterSwimming"},Dqe={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 492.508 492.508",style:{"enable-background":"new 0 0 492.508 492.508"},"xml:space":"preserve"};function Lqe(e,t,n,a,s,o){return h(),v("svg",Dqe,t[0]||(t[0]=[Pn(` silhouette of a person swimming in open water `,3)]))}const $qe=ae(Dqe,[["render",yqe]]),Uqe={name:"Paragliding"},kqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 170 170","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function wqe(e,t,n,a,s,o){return f(),v("svg",kqe,t[0]||(t[0]=[Pn('silhouette of a person paragliding',3)]))}const Mqe=ae(Uqe,[["render",wqe]]),Wqe={name:"Rowing"},Fqe={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 534.51 534.51",style:{"enable-background":"new 0 0 534.51 534.51"},"xml:space":"preserve"};function zqe(e,t,n,a,s,o){return f(),v("svg",Fqe,t[0]||(t[0]=[p("desc",{id:"rowingDescription"},"silhouette of a person rowing",-1),p("g",null,[p("g",null,[p("path",{d:`M70.517,393.857h132.622l-67.205,68.631c-3.28,3.385-3.204,8.797,0.172,12.076c1.597,1.568,3.72,2.43,5.958,2.43 + -43.378,43.375 z" id="path13">`,3)]))}const yqe=ae(Pqe,[["render",Lqe]]),$qe={name:"Paragliding"},Uqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 170 170","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function kqe(e,t,n,a,s,o){return h(),v("svg",Uqe,t[0]||(t[0]=[Pn('silhouette of a person paragliding',3)]))}const wqe=ae($qe,[["render",kqe]]),Mqe={name:"Rowing"},Wqe={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 534.51 534.51",style:{"enable-background":"new 0 0 534.51 534.51"},"xml:space":"preserve"};function Fqe(e,t,n,a,s,o){return h(),v("svg",Wqe,t[0]||(t[0]=[p("desc",{id:"rowingDescription"},"silhouette of a person rowing",-1),p("g",null,[p("g",null,[p("path",{d:`M70.517,393.857h132.622l-67.205,68.631c-3.28,3.385-3.204,8.797,0.172,12.076c1.597,1.568,3.72,2.43,5.958,2.43 c2.305,0,4.533-0.947,6.12-2.572l78.881-80.555h221.315c12.45,0,30.676-6.006,40.296-13.914 c8.788-7.229,19.049-16.217,26.345-24.299c10.375-9.811,22.214-23.639-4.255-22.834c-6.98,0.248-206.789,0.02-223.926,0 l47.144-48.139l22.176-22.032l28.209,9.17c10.414,3.385,22.472-0.803,26.919-9.362c4.446-8.558,0.268-18.407-9.343-21.993 @@ -593,7 +593,7 @@ and ensure you are accounting for this risk. c-1.482-0.851-14.153-5.786-26.833-10.643c-14.898-5.719-30.371,0.583-34.53,13.971l-7.525,24.241l-35.324,118.451 c-0.468,1.34-0.603,2.562-0.746,3.711H14.136c-12.45,0-17.662,8.836-11.618,19.727l23.237,21.592 C39.123,385.068,58.066,393.857,70.517,393.857z M272.63,248.727c1.797-5.967,8.099-9.39,14.075-7.64l51.37,14.975l-33.038,33.737 - l-43.453,43.012h-14.2L272.63,248.727z`}),p("circle",{cx:"248.953",cy:"109.842",r:"52.326"})])],-1)]))}const xqe=ae(Wqe,[["render",zqe]]),Bqe={name:"Running"},Gqe={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 494.49 494.49",style:{"enable-background":"new 0 0 494.49 494.49"},"xml:space":"preserve"};function Vqe(e,t,n,a,s,o){return f(),v("svg",Gqe,t[0]||(t[0]=[p("desc",{id:"runningDescription"},"silhouette of a running person",-1),p("g",null,[p("path",{d:`M282.74,80.771c22.318,0,40.401-18.08,40.401-40.389C323.141,18.084,305.058,0,282.74,0 + l-43.453,43.012h-14.2L272.63,248.727z`}),p("circle",{cx:"248.953",cy:"109.842",r:"52.326"})])],-1)]))}const zqe=ae(Mqe,[["render",Fqe]]),xqe={name:"Running"},Bqe={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 494.49 494.49",style:{"enable-background":"new 0 0 494.49 494.49"},"xml:space":"preserve"};function Gqe(e,t,n,a,s,o){return h(),v("svg",Bqe,t[0]||(t[0]=[p("desc",{id:"runningDescription"},"silhouette of a running person",-1),p("g",null,[p("path",{d:`M282.74,80.771c22.318,0,40.401-18.08,40.401-40.389C323.141,18.084,305.058,0,282.74,0 c-22.281,0-40.378,18.084-40.378,40.383C242.362,62.691,260.458,80.771,282.74,80.771z`}),p("path",{d:`M400.207,188.547H331.47l-38.766-55.03l0.123-0.944c1.384-10.514-1.475-21.146-7.94-29.556 c-6.461-8.409-16.007-13.903-26.52-15.287c-10.926-1.429-22.619,3.12-31.206,8.646c-1.441,0.928-84.97,54.921-84.97,54.921 c-5.175,3.358-8.542,8.877-9.165,15.016c-0.634,6.13,1.574,12.222,5.976,16.541l58.982,58l-6.417,48.954l-18.707,65.584l-67.8-19.4 @@ -602,7 +602,7 @@ and ensure you are accounting for this risk. l26.365,36.639l6.684,119.628c0.73,12.991,11.501,23.036,24.349,23.036c0.441,0,0.92-0.016,1.379-0.039 c13.453-0.748,23.745-12.262,23-25.713l-7.083-126.736c-0.271-4.643-1.846-9.116-4.56-12.887l-32.24-44.811l11.959-91.279 l19.409,27.555c3.794,5.407,10.005,8.624,16.613,8.624h79.28c11.226,0,20.326-9.101,20.326-20.329 - C420.533,197.647,411.432,188.547,400.207,188.547z M204.606,190.357l-19.026-18.717l23.476-15.206L204.606,190.357z`})],-1)]))}const Hqe=ae(Bqe,[["render",Vqe]]),Kqe={name:"SkiingAlpine"},qqe={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 522.362 522.362",style:{"enable-background":"new 0 0 522.362 522.362"},"xml:space":"preserve"};function jqe(e,t,n,a,s,o){return f(),v("svg",qqe,t[0]||(t[0]=[p("desc",{id:"alpineSkiingDescription"},"silhouette of a person skiing",-1),p("g",null,[p("g",null,[p("path",{d:`M14.314,351.859L408.088,461.78c4.484,1.311,9.104,1.97,13.731,1.97l0,0c17.471,0,33.746-9.429,42.467-24.604 + C420.533,197.647,411.432,188.547,400.207,188.547z M204.606,190.357l-19.026-18.717l23.476-15.206L204.606,190.357z`})],-1)]))}const Vqe=ae(xqe,[["render",Gqe]]),Hqe={name:"SkiingAlpine"},Kqe={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 522.362 522.362",style:{"enable-background":"new 0 0 522.362 522.362"},"xml:space":"preserve"};function qqe(e,t,n,a,s,o){return h(),v("svg",Kqe,t[0]||(t[0]=[p("desc",{id:"alpineSkiingDescription"},"silhouette of a person skiing",-1),p("g",null,[p("g",null,[p("path",{d:`M14.314,351.859L408.088,461.78c4.484,1.311,9.104,1.97,13.731,1.97l0,0c17.471,0,33.746-9.429,42.467-24.604 c2.716-4.724,3.137-10.27,1.157-15.214c-1.912-4.762-5.767-8.31-10.576-9.744c-7.373-2.237-15.481,1.109-22.146,9.229 c-3.548,4.303-9.496,6.244-15.07,4.714l-136.467-38.078c1.396-0.555,2.812-1.195,4.236-2.065l103.266-63.15 c15.443-9.362,18.493-33.957,7.812-43.883l-64.758-60.233l39.972-21.688l69.682,9.744c5.23,0.736,9.744-2.037,10.079-6.187 @@ -613,7 +613,7 @@ and ensure you are accounting for this risk. l102.414,14.315l-5.308,3.72c-4.332,3.022-10.155,9.151-11.723,14.201c-3.844,12.45-1.473,26.717,10.452,37.705l68.802,62.175 c0,0-50.978,31.776-74.998,46.397c-14.219,8.606-13.674,23.858-6.129,33.393L23.705,318.199 c-10.012-2.792-20.569,2.554-23.113,11.695C-2,339.169,4.159,349.029,14.314,351.859z`}),p("path",{d:`M450.842,72.003c-15.291,16.715-14.201,42.667,2.639,58.121c16.706,15.31,42.716,14.086,58.073-2.668 - c15.386-16.677,14.172-42.734-2.544-58.016C492.305,54.064,466.17,55.192,450.842,72.003z`})])],-1)]))}const Yqe=ae(Kqe,[["render",jqe]]),Xqe={name:"SkiingCrossCountry"},Qqe={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 296 296",style:{"enable-background":"new 0 0 296 296"},"xml:space":"preserve"};function Zqe(e,t,n,a,s,o){return f(),v("svg",Qqe,t[0]||(t[0]=[p("desc",{id:"crossCountrySkiingDescription"}," silhouette of a person skiing (cross country) ",-1),p("g",null,[p("path",{d:`M241.313,246.906h-39.564l0.456-1.273c5.62-18.374,3.479-37.58-6.027-54.278c-5.653-9.929-13.443-18.018-22.745-23.959 + c15.386-16.677,14.172-42.734-2.544-58.016C492.305,54.064,466.17,55.192,450.842,72.003z`})])],-1)]))}const jqe=ae(Hqe,[["render",qqe]]),Yqe={name:"SkiingCrossCountry"},Xqe={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 296 296",style:{"enable-background":"new 0 0 296 296"},"xml:space":"preserve"};function Qqe(e,t,n,a,s,o){return h(),v("svg",Xqe,t[0]||(t[0]=[p("desc",{id:"crossCountrySkiingDescription"}," silhouette of a person skiing (cross country) ",-1),p("g",null,[p("path",{d:`M241.313,246.906h-39.564l0.456-1.273c5.62-18.374,3.479-37.58-6.027-54.278c-5.653-9.929-13.443-18.018-22.745-23.959 l12.886-51.126c3.035-12.05-4.272-24.266-16.322-27.301c-2.634-0.664-5.278-0.826-7.833-0.559 c-0.151-0.011-0.299-0.032-0.452-0.038c-26.03-1.077-51.443,8.485-70.33,25.993L41.586,82.855 c-4.332-2.741-10.065-1.451-12.806,2.881s-1.451,10.065,2.88,12.806l47.625,30.136c-2.557,6.013-0.962,13.224,4.375,17.531 @@ -623,7 +623,7 @@ and ensure you are accounting for this risk. h161.375H280c9.113,0,16.167-7.387,16.167-16.5v-2.5H241.313z M153.974,192.398c0.741-0.153,1.471-0.231,2.188-0.457 c5.742,3.406,10.53,8.313,13.945,14.311c5.378,9.447,6.59,20.402,3.41,30.797l-1.799,5.674c-0.447,1.461-0.656,3.184-0.657,4.184 h-69.909C121.581,231.906,139.297,213.274,153.974,192.398z M167,57.938c0-15.378,12.466-27.844,27.844-27.844 - s27.844,12.466,27.844,27.844s-12.466,27.844-27.844,27.844S167,73.315,167,57.938z`})],-1)]))}const Jqe=ae(Xqe,[["render",Zqe]]),eje={name:"Snowshoes"},tje={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"};function nje(e,t,n,a,s,o){return f(),v("svg",tje,t[0]||(t[0]=[Pn('silhouette of a person with snowshoes',6)]))}const aje=ae(eje,[["render",nje]]),sje={name:"Swimrun"},oje={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 492.508 492.508","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function ije(e,t,n,a,s,o){return f(),v("svg",oje,t[0]||(t[0]=[Pn(' silhouette of a person swimming in open water and another silhouette of a person running ',4)]))}const rje=ae(sje,[["render",ije]]),uje={name:"Trail"},lje={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 535.876 535.876",style:{"enable-background":"new 0 0 535.876 535.876"},"xml:space":"preserve"};function cje(e,t,n,a,s,o){return f(),v("svg",lje,t[0]||(t[0]=[p("desc",{id:"trailDescription"},"silhouette of a person running (trail)",-1),p("g",null,[p("g",null,[p("path",{d:`M505.204,326.949c-5.805-10.892-15.176-10.862-20.923,0.067l-7.114,13.512c-5.757,10.92-20.416,19.775-32.752,19.775 + s27.844,12.466,27.844,27.844s-12.466,27.844-27.844,27.844S167,73.315,167,57.938z`})],-1)]))}const Zqe=ae(Yqe,[["render",Qqe]]),Jqe={name:"Snowshoes"},eje={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"};function tje(e,t,n,a,s,o){return h(),v("svg",eje,t[0]||(t[0]=[Pn('silhouette of a person with snowshoes',6)]))}const nje=ae(Jqe,[["render",tje]]),aje={name:"Swimrun"},sje={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 492.508 492.508","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function oje(e,t,n,a,s,o){return h(),v("svg",sje,t[0]||(t[0]=[Pn(' silhouette of a person swimming in open water and another silhouette of a person running ',4)]))}const ije=ae(aje,[["render",oje]]),rje={name:"Trail"},uje={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 535.876 535.876",style:{"enable-background":"new 0 0 535.876 535.876"},"xml:space":"preserve"};function lje(e,t,n,a,s,o){return h(),v("svg",uje,t[0]||(t[0]=[p("desc",{id:"trailDescription"},"silhouette of a person running (trail)",-1),p("g",null,[p("g",null,[p("path",{d:`M505.204,326.949c-5.805-10.892-15.176-10.862-20.923,0.067l-7.114,13.512c-5.757,10.92-20.416,19.775-32.752,19.775 h-16.753c-12.346,0-29.645,6.847-38.643,15.29l-32.35,30.342l-1.233-105.388c0.822-18.446-10.596-24.634-10.596-24.634 l-56.543-25.972l33.67-67.645l38.527,22.912c0,0,15.472,9.715,26.727-9.324l37.026-63.093c1.625-3.519,2.094-7.564,1.052-11.609 c-2.381-9.256-11.81-14.86-21.095-12.479c-4.083,1.042-7.459,3.49-9.754,6.713l-30.772,51.962l-62.777-37.102 @@ -636,8 +636,8 @@ and ensure you are accounting for this risk. c-11.657-4.054-28.831-0.984-38.374,6.838L109.9,433.954c-9.544,7.822-26.67,10.72-38.25,6.483L40.84,429.135 c-11.58-4.256-25.608,1.157-31.336,12.097l-7.21,13.789c-5.728,10.93-0.354,19.794,11.982,19.794H500.27 c12.336,0,24.309-9.802,26.728-21.907l8.004-39.981c2.409-12.097-0.325-30.733-6.14-41.616L505.204,326.949z`}),p("path",{d:`M326.395,126.625c17.806-4.562,28.563-22.721,23.983-40.526c-4.581-17.844-22.74-28.554-40.555-23.983 - 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)]))}const dje=ae(uje,[["render",cje]]),Eje={name:"Walking"},pje={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"};function mje(e,t,n,a,s,o){return f(),v("svg",pje,t[0]||(t[0]=[Pn('silhouette of a walking person',3)]))}const Tje=ae(Eje,[["render",mje]]),Bp={"Cycling (Sport)":"#4c9792","Cycling (Trekking)":"#a8af88","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",Swimrun:"#3d9fc9",Trail:"#09a98a",Walking:"#838383"},_je=e=>{const t={};return e.map(n=>t[n.id]=n.color?n.color:Bp[n.label]),t},fje=(e,t)=>{const n=e.translatedLabel.toLowerCase(),a=t.translatedLabel.toLowerCase();return n>a?1:ne.filter(s=>n==="all"?!0:a.includes(s.id)||s[n]).map(s=>({...s,translatedLabel:t(`sports.${s.label}.LABEL`)})).sort(fje),Gp=(e,t)=>t.filter(n=>n.id===e.sport_id).map(n=>n.label)[0],Vp=(e,t)=>t.filter(n=>n.id===e.sport_id).map(n=>n.color)[0];function nn(){const e=De(),{t}=$t(),n=kt("sportColors"),a="#838383",s=Ie(!1),o=Ie(""),i=F(()=>e.getters[Ht.GETTERS.SPORTS]),r=F(()=>ia(i.value,t)),u=yt({sport_id:0,color:null,is_active:!0,stopped_speed_threshold:1,fromSport:!1});function l(_){u.is_active=_.target.checked}function d(_){s.value=_}function E(_){const h={...u};h.stopped_speed_threshold=_.imperial_units?Yt(u.stopped_speed_threshold,"mi","km",2):u.stopped_speed_threshold,e.dispatch(K.ACTIONS.UPDATE_USER_SPORT_PREFERENCES,h)}function c(_,h=!1){e.dispatch(K.ACTIONS.RESET_USER_SPORT_PREFERENCES,{sportId:_,fromSport:h})}function m(_){return _?i.value.filter(h=>h.id===_.sport_id)[0]:null}return{defaultColor:a,defaultEquipmentId:o,displayModal:s,sportColors:n,sportPayload:u,sports:i,translatedSports:r,getWorkoutSport:m,resetSport:c,updateDisplayModal:d,updateIsActive:l,updateSport:E}}const hje=["title"],Sje=X({__name:"index",props:{sportLabel:{},color:{},title:{default:""}},setup(e){const t=e,{color:n,sportLabel:a,title:s}=_e(t),{sportColors:o}=nn();return(i,r)=>(f(),v("div",{class:"sport-img",style:za({fill:T(n)?T(n):T(o)[T(a)]}),title:T(s)?T(s):i.$t(`sports.${T(a)}.LABEL`)},[T(a)==="Cycling (Sport)"?(f(),B(tqe,{key:0})):L("",!0),T(a)==="Cycling (Trekking)"?(f(),B(lqe,{key:1})):L("",!0),T(a)==="Cycling (Transport)"?(f(),B(oqe,{key:2})):L("",!0),T(a)==="Cycling (Virtual)"?(f(),B(pqe,{key:3})):L("",!0),T(a)==="Hiking"?(f(),B(fqe,{key:4})):L("",!0),T(a)==="Mountain Biking"?(f(),B(Oqe,{key:5})):L("",!0),T(a)==="Mountain Biking (Electric)"?(f(),B(Nqe,{key:6})):L("",!0),T(a)==="Mountaineering"?(f(),B(Pqe,{key:7})):L("",!0),T(a)==="Paragliding"?(f(),B(Mqe,{key:8})):L("",!0),T(a)==="Open Water Swimming"?(f(),B($qe,{key:9})):L("",!0),T(a)==="Rowing"?(f(),B(xqe,{key:10})):L("",!0),T(a)==="Running"?(f(),B(Hqe,{key:11})):L("",!0),T(a)==="Skiing (Alpine)"?(f(),B(Yqe,{key:12})):L("",!0),T(a)==="Skiing (Cross Country)"?(f(),B(Jqe,{key:13})):L("",!0),T(a)==="Snowshoes"?(f(),B(aje,{key:14})):L("",!0),T(a)==="Swimrun"?(f(),B(rje,{key:15})):L("",!0),T(a)==="Trail"?(f(),B(dje,{key:16})):L("",!0),T(a)==="Walking"?(f(),B(Tje,{key:17})):L("",!0)],12,hje))}}),Aje={},Oje={class:"loader"};function Ije(e,t){return f(),v("div",Oje)}const Ml=ae(Aje,[["render",Ije],["__scopeId","data-v-8b613881"]]),gje={class:"custom-modal"},Rje={key:0,class:"modal-message"},Nje={key:1,class:"modal-message"},vje={key:2,class:"info-box"},bje={key:4},Cje={key:5,class:"modal-buttons"},Pje=X({__name:"Modal",props:{title:{},message:{},strongMessage:{default:()=>""},loading:{type:Boolean,default:!1},warning:{default:()=>""},hideErrorMessage:{type:Boolean,default:!1}},emits:["cancelAction","confirmAction"],setup(e,{emit:t}){const n=e,{title:a,message:s,strongMessage:o}=_e(n),i=t,{errorMessages:r}=Ke();let u=null,l=null,d=null;function E(c){var m;(c.key==="Tab"||c.keyCode===9)&&(c.preventDefault(),((m=document.activeElement)==null?void 0:m.id)==="cancel-button"?u==null||u.focus():l==null||l.focus())}return mt(()=>{d=document.activeElement,l=document.getElementById("cancel-button"),u=document.getElementById("confirm-button"),l&&l.focus(),document.addEventListener("keydown",E)}),ct(()=>{document.removeEventListener("keydown",E),d==null||d.focus()}),(c,m)=>{const _=j("i18n-t"),h=j("ErrorMessage"),O=j("Loader"),A=j("Card");return f(),v("div",{id:"modal",role:"dialog",onClick:m[2]||(m[2]=ve(R=>i("cancelAction"),["self"]))},[p("div",gje,[w(A,null,{title:Y(()=>[x(S(T(a)),1)]),content:Y(()=>[T(o)?(f(),v("div",Rje,[w(_,{keypath:T(s)},{default:Y(()=>[p("span",null,S(T(o)),1)]),_:1},8,["keypath"])])):(f(),v("div",Nje,S(T(s)),1)),c.warning?(f(),v("div",vje,[m[3]||(m[3]=p("i",{class:"fa fa-exclamation-triangle","aria-hidden":"true"},null,-1)),x(" "+S(c.warning),1)])):L("",!0),T(r)&&!c.hideErrorMessage?(f(),B(h,{key:3,message:T(r)},null,8,["message"])):L("",!0),c.loading?(f(),v("div",bje,[w(O)])):(f(),v("div",Cje,[T(r)?L("",!0):(f(),v("button",{key:0,class:Oe(["confirm",{danger:c.warning}]),id:"confirm-button",onClick:m[0]||(m[0]=R=>i("confirmAction"))},S(c.$t("buttons.YES")),3)),p("button",{tabindex:"0",id:"cancel-button",class:"cancel",onClick:m[1]||(m[1]=R=>i("cancelAction"))},S(c.$t(`buttons.${T(r)?"CANCEL":"NO"}`)),1)]))]),_:1})])])}}}),Dje=ae(Pje,[["__scopeId","data-v-9235de5f"]]),Lje={class:"visibility"},yje=["title"],$je=X({__name:"VisibilityIcon",props:{visibility:{},isComment:{type:Boolean,default:!1}},setup(e){const t=e,{visibility:n,isComment:a}=_e(t);function s(o){switch(o){case"public":return"globe";case"followers_only":return"users";default:case"private":return"lock"}}return(o,i)=>(f(),v("span",Lje,[p("i",{class:Oe(`fa fa-${s(T(n))}`),"aria-hidden":"true",title:o.$t(`visibility_levels.${T(a)?"COMMENT_":""}LEVELS.${T(n)}`)},null,10,yje)]))}}),Uje=[{target:eKe,name:"AlertMessage"},{target:xp,name:"Card"},{target:vO,name:"CustomTextArea"},{target:pKe,name:"Distance"},{target:SKe,name:"Dropdown"},{target:NKe,name:"ErrorMessage"},{target:Ml,name:"Loader"},{target:Dje,name:"Modal"},{target:Sje,name:"SportImage"},{target:QKe,name:"EquipmentTypeImage"},{target:$je,name:"VisibilityIcon"},{target:zp,name:"Comment"}],kje={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)}},wje=["bytes","KB","MB","GB","TB"],bO=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),a=wje[t];return{size:n,suffix:a}},Zu=e=>{if(!e)return"0 bytes";const t=bO(e);return`${t.size}${t.suffix}`},Mje=e=>{const t=e/1048576;return!e&&0||+t.toFixed(2)},Wje={id:"admin-app",class:"admin-card"},Fje={for:"admin_contact"},zje=["value"],xje=["disabled"],Bje={for:"max_users"},Gje=["disabled"],Vje={class:"admin-help"},Hje={class:"info-box"},Kje={for:"max_single_file_size"},qje=["disabled"],jje={for:"max_zip_file_size"},Yje=["disabled"],Xje={for:"gpx_limit_import"},Qje=["disabled"],Zje={for:"stats_workouts_limit"},Jje=["disabled"],eYe={class:"admin-help"},tYe={class:"info-box"},nYe={class:"about-label",for:"about"},aYe={class:"textarea-description"},sYe=["innerHTML"],oYe={class:"privacy-policy-label",for:"privacy_policy"},iYe={class:"textarea-description"},rYe=["innerHTML"],uYe={key:5,class:"form-buttons"},lYe={class:"confirm",type:"submit"},cYe={key:6,class:"form-buttons"},dYe=X({__name:"AdminApplication",props:{edition:{type:Boolean,default:!1}},setup(e){const t=e,{edition:n}=_e(t),a=gn(),s=De(),{appConfig:o,errorMessages:i}=Ke(),r=yt({admin_contact:"",max_users:0,max_single_file_size:0,max_zip_file_size:0,gpx_limit_import:0,about:"",privacy_policy:"",stats_workouts_limit:0});function u(E){Object.keys(r).map(c=>{["max_single_file_size","max_zip_file_size"].includes(c)?r[c]=Mje(E[c]):["about","privacy_policy"].includes(c)?r[c]=E[c]!==null?E[c]:"":r[c]=E[c]})}function l(){u(o.value),s.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),a.push("/admin/application")}function d(){const E=Object.assign({},r);E.max_single_file_size*=1048576,E.max_zip_file_size*=1048576,s.dispatch(te.ACTIONS.UPDATE_APPLICATION_CONFIG,E)}return Je(()=>{o.value&&u(o.value)}),(E,c)=>{const m=j("ErrorMessage"),_=j("Card");return f(),v("div",Wje,[w(_,null,{title:Y(()=>[x(S(E.$t("admin.APP_CONFIG.TITLE")),1)]),content:Y(()=>[p("form",{class:"admin-form",onSubmit:ve(d,["prevent"])},[p("label",Fje,[x(S(E.$t("admin.APP_CONFIG.ADMIN_CONTACT"))+": ",1),!T(n)&&!r.admin_contact?(f(),v("input",{key:0,class:"no-contact",value:E.$t("admin.APP_CONFIG.NO_CONTACT_EMAIL"),disabled:""},null,8,zje)):We((f(),v("input",{key:1,id:"admin_contact",name:"admin_contact",type:"email","onUpdate:modelValue":c[0]||(c[0]=h=>r.admin_contact=h),disabled:!T(n)},null,8,xje)),[[it,r.admin_contact]])]),p("label",Bje,[x(S(E.$t("admin.APP_CONFIG.MAX_USERS_LABEL"))+": ",1),We(p("input",{id:"max_users",name:"max_users",type:"number",min:"0","onUpdate:modelValue":c[1]||(c[1]=h=>r.max_users=h),disabled:!T(n)},null,8,Gje),[[it,r.max_users]])]),p("div",Vje,[p("span",Hje,[c[10]||(c[10]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(E.$t("admin.APP_CONFIG.MAX_USERS_HELP")),1)])]),p("label",Kje,[x(S(E.$t("admin.APP_CONFIG.SINGLE_UPLOAD_MAX_SIZE_LABEL"))+": ",1),We(p("input",{id:"max_single_file_size",name:"max_single_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":c[2]||(c[2]=h=>r.max_single_file_size=h),disabled:!T(n)},null,8,qje),[[it,r.max_single_file_size]])]),p("label",jje,[x(S(E.$t("admin.APP_CONFIG.ZIP_UPLOAD_MAX_SIZE_LABEL"))+": ",1),We(p("input",{id:"max_zip_file_size",name:"max_zip_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":c[3]||(c[3]=h=>r.max_zip_file_size=h),disabled:!T(n)},null,8,Yje),[[it,r.max_zip_file_size]])]),p("label",Xje,[x(S(E.$t("admin.APP_CONFIG.MAX_FILES_IN_ZIP_LABEL"))+": ",1),We(p("input",{id:"gpx_limit_import",name:"gpx_limit_import",type:"number",min:"0","onUpdate:modelValue":c[4]||(c[4]=h=>r.gpx_limit_import=h),disabled:!T(n)},null,8,Qje),[[it,r.gpx_limit_import]])]),p("label",Zje,[x(S(E.$t("admin.APP_CONFIG.STATS_WORKOUTS_LIMIT_LABEL"))+": ",1),We(p("input",{id:"stats_workouts_limit",name:"stats_workouts_limit",type:"number",min:"0","onUpdate:modelValue":c[5]||(c[5]=h=>r.stats_workouts_limit=h),disabled:!T(n)},null,8,Jje),[[it,r.stats_workouts_limit]])]),p("div",eYe,[p("span",tYe,[c[11]||(c[11]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(E.$t("admin.APP_CONFIG.STATS_WORKOUTS_LIMIT_HELP")),1)])]),p("label",nYe,S(E.$t("admin.ABOUT.TEXT"))+": ",1),p("span",aYe,S(E.$t("admin.ABOUT.DESCRIPTION")),1),T(n)?We((f(),v("textarea",{key:0,id:"about",name:"about",rows:"10","onUpdate:modelValue":c[6]||(c[6]=h=>r.about=h)},null,512)),[[it,r.about]]):(f(),v("div",{key:1,innerHTML:r.about?T(Vi)(r.about):E.$t("admin.NO_TEXT_ENTERED"),class:"textarea-content"},null,8,sYe)),p("label",oYe,S(Fe(E.$t("privacy_policy.TITLE")))+": ",1),p("span",iYe,S(E.$t("admin.PRIVACY_POLICY_DESCRIPTION")),1),T(n)?We((f(),v("textarea",{key:2,id:"privacy_policy",name:"privacy_policy",rows:"20","onUpdate:modelValue":c[7]||(c[7]=h=>r.privacy_policy=h)},null,512)),[[it,r.privacy_policy]]):(f(),v("div",{key:3,innerHTML:r.privacy_policy?T(Vi)(r.privacy_policy):E.$t("admin.NO_TEXT_ENTERED"),class:"textarea-content"},null,8,rYe)),T(i)?(f(),B(m,{key:4,message:T(i)},null,8,["message"])):L("",!0),T(n)?(f(),v("div",uYe,[p("button",lYe,S(E.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:ve(l,["prevent"])},S(E.$t("buttons.CANCEL")),1)])):(f(),v("div",cYe,[p("button",{class:"confirm",onClick:c[8]||(c[8]=ve(h=>E.$router.push("/admin/application/edit"),["prevent"]))},S(E.$t("buttons.EDIT")),1),p("button",{class:"cancel",onClick:c[9]||(c[9]=ve(h=>E.$router.push("/admin"),["prevent"]))},S(E.$t("admin.BACK_TO_ADMIN")),1)]))],32)]),_:1})])}}}),mh=ae(dYe,[["__scopeId","data-v-3a7598c9"]]),EYe=(e,t)=>{const n=e.translatedLabel.toLowerCase(),a=t.translatedLabel.toLowerCase();return n>a?1:ne.map(n=>({...n,translatedLabel:t(`equipment_types.${n.label}.LABEL`)})).sort(EYe),Hp=(e,t)=>{const n=e.label.toLowerCase(),a=t.label.toLowerCase();return n>a?1:na?e.filter(o=>PO[o.equipment_type.label].includes(a.label)).filter(o=>n=="all"?!0:n=="withIncludedIds"&&s.includes(o.id)||o.is_active).map(o=>({...o,label:o.is_active?o.label:`${o.label} (${t("common.INACTIVE")})`})).sort(Hp):[],pYe={id:"admin-equipment-types",class:"admin-card"},mYe={class:"responsive-table"},TYe={class:"text-left"},_Ye={class:"text-left equipment-type-action"},fYe={class:"text-center"},hYe={class:"cell-heading"},SYe={class:"equipment-type-label"},AYe={class:"cell-heading"},OYe={class:"text-center"},IYe={class:"cell-heading"},gYe={class:"equipment-type-action"},RYe={class:"cell-heading"},NYe={class:"action-button"},vYe=["onClick"],bYe={key:0,class:"has-equipments"},CYe=X({__name:"AdminEquipmentTypes",setup(e){const t=De(),{t:n}=$t(),{errorMessages:a}=Ke(),s=F(()=>CO(t.getters[xe.GETTERS.EQUIPMENT_TYPES],n));function o(){t.dispatch(xe.ACTIONS.GET_EQUIPMENT_TYPES)}function i(r,u){t.dispatch(xe.ACTIONS.UPDATE_EQUIPMENT_TYPE,{id:r,isActive:u})}return Je(()=>o()),(r,u)=>{const l=j("EquipmentTypeImage"),d=j("ErrorMessage"),E=j("Card");return f(),v("div",pYe,[w(E,null,{title:Y(()=>[x(S(r.$t("admin.EQUIPMENT_TYPES.TITLE")),1)]),content:Y(()=>[p("button",{class:"top-button",onClick:u[0]||(u[0]=ve(c=>r.$router.push("/admin"),["prevent"]))},S(r.$t("admin.BACK_TO_ADMIN")),1),p("div",mYe,[p("table",null,[p("thead",null,[p("tr",null,[u[2]||(u[2]=p("th",null,"#",-1)),p("th",null,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.IMAGE")),1),p("th",TYe,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.LABEL")),1),p("th",null,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.ACTIVE")),1),p("th",_Ye,S(r.$t("admin.ACTION")),1)])]),p("tbody",null,[(f(!0),v(re,null,be(s.value,c=>(f(),v("tr",{key:c.id},[p("td",fYe,[u[3]||(u[3]=p("span",{class:"cell-heading"},"id",-1)),x(" "+S(c.id),1)]),p("td",null,[p("span",hYe,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.IMAGE")),1),w(l,{title:c.translatedLabel,"equipment-type-label":c.label},null,8,["title","equipment-type-label"])]),p("td",SYe,[p("span",AYe,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.LABEL")),1),x(" "+S(c.translatedLabel),1)]),p("td",OYe,[p("span",IYe,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.ACTIVE")),1),p("i",{class:Oe(`fa fa${c.is_active?"-check":""}`),"aria-hidden":"true"},null,2)]),p("td",gYe,[p("span",RYe,S(r.$t("admin.ACTION")),1),p("div",NYe,[p("button",{class:Oe({danger:c.is_active}),onClick:m=>i(c.id,!c.is_active)},S(r.$t(`buttons.${c.is_active?"DIS":"EN"}ABLE`)),11,vYe),c.has_equipments?(f(),v("span",bYe,[u[4]||(u[4]=p("i",{class:"fa fa-warning","aria-hidden":"true"},null,-1)),x(" "+S(r.$t("admin.EQUIPMENT_TYPES.TABLE.HAS_EQUIPMENTS")),1)])):L("",!0)])])]))),128))])]),T(a)?(f(),B(d,{key:0,message:T(a)},null,8,["message"])):L("",!0),p("button",{onClick:u[1]||(u[1]=ve(c=>r.$router.push("/admin"),["prevent"]))},S(r.$t("admin.BACK_TO_ADMIN")),1)])]),_:1})])}}}),PYe=ae(CYe,[["__scopeId","data-v-a3acbd9a"]]),DYe={class:"stat-card"},LYe={class:"stat-content box"},yYe={class:"stat-icon"},$Ye={class:"stat-details"},UYe={class:"stat-huge"},kYe={class:"stat"},wa=X({__name:"StatCard",props:{icon:{},text:{},value:{}},setup(e){const t=e,{icon:n,text:a,value:s}=_e(t);return(o,i)=>(f(),v("div",DYe,[p("div",LYe,[p("div",yYe,[p("i",{class:Oe(["fa",`fa-${T(n)}`])},null,2)]),p("div",$Ye,[p("div",UYe,S(T(s)),1),p("div",kYe,S(T(a)),1)])])]))}}),wYe={id:"user-stats"},MYe=X({__name:"AppStatsCards",props:{appStatistics:{}},setup(e){const t=e,{appStatistics:n}=_e(t),a=F(()=>bO(n.value.uploads_dir_size));return(s,o)=>(f(),v("div",wYe,[w(wa,{icon:"users",value:T(n).users,text:s.$t("user.ACTIVE_USER",T(n).users)},null,8,["value","text"]),w(wa,{icon:"tags",value:T(n).sports,text:s.$t("workouts.SPORT",T(n).sports)},null,8,["value","text"]),w(wa,{icon:"calendar",value:T(n).workouts,text:s.$t("workouts.WORKOUT",T(n).workouts)},null,8,["value","text"]),w(wa,{icon:"folder-open",value:a.value.size,text:a.value.suffix},null,8,["value","text"])]))}}),WYe={id:"admin-menu",class:"center-card"},FYe={class:"admin-menu description-list"},zYe={class:"application-config-details"},xYe={class:"registration-status"},BYe={key:0,class:"email-sending-status"},GYe={class:"application-config-details"},VYe=X({__name:"AdminMenu",setup(e){const t=De(),{appConfig:n}=Ke(),{authUserHasAdminRights:a}=qe(),s=F(()=>t.getters[te.GETTERS.APP_STATS]),o=F(()=>t.getters[Le.GETTERS.UNRESOLVED_REPORTS_STATUS]);return Je(()=>t.dispatch(Le.ACTIONS.GET_UNRESOLVED_REPORTS_STATUS)),mt(()=>{const i=document.getElementById("adminLink");i&&i.focus()}),(i,r)=>{const u=j("router-link");return f(),v("div",WYe,[w(xp,null,{title:Y(()=>[x(S(i.$t("admin.ADMINISTRATION")),1)]),content:Y(()=>[w(MYe,{appStatistics:s.value},null,8,["appStatistics"]),p("div",FYe,[p("dl",null,[T(a)?(f(),v(re,{key:0},[p("dt",null,[w(u,{id:"adminLink",to:"/admin/application"},{default:Y(()=>[x(S(i.$t("admin.APPLICATION")),1)]),_:1})]),p("dd",zYe,[x(S(i.$t("admin.UPDATE_APPLICATION_DESCRIPTION"))+" ",1),p("span",xYe,S(i.$t(`admin.REGISTRATION_${T(n).is_registration_enabled?"ENABLED":"DISABLED"}`)),1),T(n).is_email_sending_enabled?L("",!0):(f(),v("span",BYe,[r[0]||(r[0]=p("i",{class:"fa fa-exclamation-triangle","aria-hidden":"true"},null,-1)),x(" "+S(i.$t("admin.EMAIL_SENDING_DISABLED")),1)]))]),p("dt",null,[w(u,{to:"/admin/equipment-types"},{default:Y(()=>[x(S(Fe(i.$t("equipments.EQUIPMENT_TYPE",0))),1)]),_:1})]),p("dd",null,S(i.$t("admin.ENABLE_DISABLE_EQUIPMENT_TYPES")),1)],64)):L("",!0),p("dt",null,[w(u,{id:"adminLink",to:"/admin/reports"},{default:Y(()=>[x(S(i.$t("admin.APP_MODERATION.TITLE")),1)]),_:1})]),p("dd",GYe,[x(S(i.$t("admin.APP_MODERATION.DESCRIPTION"))+" ",1),o.value?(f(),B(u,{key:0,to:"/admin/reports?resolved=false"},{default:Y(()=>[x(S(i.$t("admin.APP_MODERATION.UNRESOLVED_REPORTS_EXIST")),1)]),_:1})):L("",!0)]),T(a)?(f(),v(re,{key:1},[p("dt",null,[w(u,{to:"/admin/sports"},{default:Y(()=>[x(S(Fe(i.$t("workouts.SPORT",0))),1)]),_:1})]),p("dd",null,S(i.$t("admin.ENABLE_DISABLE_SPORTS")),1),p("dt",null,[w(u,{to:"/admin/users"},{default:Y(()=>[x(S(Fe(i.$t("user.USER",0))),1)]),_:1})]),p("dd",null,S(i.$t("admin.ADMIN_RIGHTS_DELETE_USER_ACCOUNT")),1)],64)):L("",!0)])])]),_:1})])}}}),HYe=ae(VYe,[["__scopeId","data-v-18089d26"]]),KYe=["id"],qYe={class:"appeal-text"},jYe=["title"],YYe={class:"appeal-actions-buttons"},XYe={class:"small approve",value:"approve"},QYe={class:"small reject",value:"reject"},ZYe={key:1,class:"automatically-approved"},JYe={key:2,class:"description-list"},eXe=["title"],tXe=X({__name:"AdminReportActionAppeal",props:{appeal:{},authUser:{}},emits:["updateAppeal","closeAppeal"],setup(e,{emit:t}){const n=e,{appeal:a,authUser:s}=_e(n),o=t,{errorMessages:i,locale:r}=Ke(),u=Ie("");function l(c){c.preventDefault(),o("updateAppeal",{approved:c.submitter.value==="approve",appealId:a.value.id,reason:u.value})}function d(c){u.value=c.value}function E(){o("closeAppeal")}return(c,m)=>{const _=j("ErrorMessage"),h=j("i18n-t");return f(),v("div",{class:"appeal box",id:`appeal-${T(a).id}`},[p("div",qYe,S(T(a).text),1),p("span",{class:"appeal-date",title:T(Ut)(T(a).created_at,T(s).timezone,T(s).date_format)},S(T(Ws)(new Date(T(a).created_at),new Date,{addSuffix:!0,locale:T(r)})),9,jYe),T(a).updated_at===null?(f(),v(re,{key:0},[T(a).approved===null?(f(),v("form",{key:0,onSubmit:ve(l,["prevent"]),class:"appeal-actions"},[w(vO,{name:"appeal-reason",required:!0,placeholder:c.$t("admin.APP_MODERATION.TEXTAREA_PLACEHOLDER.UPDATE_APPEAL"),onUpdateValue:d},null,8,["placeholder"]),T(i)?(f(),B(_,{key:0,message:T(i)},null,8,["message"])):L("",!0),p("div",YYe,[p("button",XYe,S(c.$t("buttons.APPROVE")),1),p("button",QYe,S(c.$t("buttons.REJECT")),1),p("button",{class:"small reject",type:"button",onClick:E},S(c.$t("buttons.CANCEL")),1)])],32)):L("",!0)],64)):T(a).approved===null?(f(),v("div",ZYe,S(c.$t("admin.APP_MODERATION.APPEAL.AUTOMATICALLY_APPROVED_BY_UNSUSPENSION")),1)):(f(),v("div",JYe,[w(h,{keypath:`admin.APP_MODERATION.APPEAL.${T(a).approved?"APPROVED":"REJECTED"}`,tag:"p"},{default:Y(()=>[p("span",{class:"report-action-date",title:T(Ut)(T(a).updated_at,T(s).timezone,T(s).date_format)},S(T(Ws)(new Date(T(a).updated_at),new Date,{addSuffix:!0,locale:T(r)})),9,eXe)]),_:1},8,["keypath"]),p("dl",null,[p("dt",null,S(c.$t("admin.APP_MODERATION.APPEAL.REASON_IS")),1),p("dd",null,S(T(a).reason),1)])]))],8,KYe)}}}),nXe=ae(tXe,[["__scopeId","data-v-88ea8757"]]),aXe={id:"error"},sXe={class:"error-content"},oXe=X({__name:"Error",props:{title:{},message:{},buttonText:{},path:{default:"/"}},setup(e){const t=e,{buttonText:n,title:a,message:s,path:o}=_e(t);return(i,r)=>(f(),v("div",aXe,[p("div",sXe,[p("h1",null,S(T(a)),1),p("p",null,S(T(s)),1),T(n)?(f(),v("button",{key:0,onClick:r[0]||(r[0]=u=>i.$router.push(T(o))),class:"upper"},S(T(n)),1)):L("",!0)])]))}}),iXe=ae(oXe,[["__scopeId","data-v-48ec856d"]]),wo=X({__name:"NotFound",props:{target:{default:"PAGE"}},setup(e){const t=e,{target:n}=_e(t),a=Ie(),s=Ie(!1);function o(){a.value=setTimeout(()=>{s.value=!0},500)}return mt(()=>o()),ct(()=>{a.value&&clearTimeout(a.value)}),(i,r)=>s.value?(f(),B(iXe,{key:0,title:"404",message:i.$t(`error.NOT_FOUND.${T(n)}`),"button-text":i.$t("common.HOME")},null,8,["message","button-text"])):L("",!0)}}),rXe={key:0,class:"user-actions"},uXe={key:0,class:"blocked-user"},lXe={class:"blocked"},cXe={key:1,class:"actions-buttons"},dXe={key:2},EXe={key:3,class:"follows-you"},pXe={key:1,class:"user-actions"},mXe={class:"follows-you"},TXe=X({__name:"UserRelationshipActions",props:{authUser:{},user:{},from:{},displayFollowsYou:{type:Boolean,default:!1}},emits:["updatedUser"],setup(e,{emit:t}){const n=e,{authUser:a,from:s,user:o,displayFollowsYou:i}=_e(n),r=t,u=De();function l(E,c){r("updatedUser",E),u.dispatch(ue.ACTIONS.UPDATE_RELATIONSHIP,{username:E,action:`${c?"un":""}follow`,from:s.value})}function d(E,c){r("updatedUser",E),u.dispatch(ue.ACTIONS.UPDATE_RELATIONSHIP,{username:E,action:`${c?"":"un"}block`,from:s.value})}return(E,c)=>(f(),v(re,null,[T(o).username!==T(a).username?(f(),v("div",rXe,[T(o).blocked?(f(),v("div",uXe,[p("div",lXe,S(E.$t("user.RELATIONSHIPS.BLOCKED")),1),p("button",{onClick:c[0]||(c[0]=m=>d(T(o).username,!1))},S(E.$t("buttons.UNBLOCK")),1)])):T(o).is_followed_by!=="pending"?(f(),v("div",cXe,[p("button",{onClick:c[1]||(c[1]=m=>l(T(o).username,T(o).is_followed_by==="true")),class:Oe({danger:T(o).is_followed_by==="true"})},S(E.$t(`buttons.${T(o).is_followed_by==="true"?"UN":""}FOLLOW`)),3),p("button",{onClick:c[2]||(c[2]=m=>d(T(o).username,!0))},S(E.$t("buttons.BLOCK")),1)])):(f(),v("div",dXe,[p("button",{onClick:c[3]||(c[3]=m=>l(T(o).username,!0))},S(E.$t("buttons.CANCEL_FOLLOW_REQUEST")),1)])),T(i)&&T(o).follows==="true"&&T(s)!=="notifications"?(f(),v("div",EXe,S(E.$t("user.RELATIONSHIPS.FOLLOWS_YOU")),1)):L("",!0)])):L("",!0),T(o).username===T(a).username&&T(s)!=="userInfos"?(f(),v("div",pXe,[p("div",mXe,S(E.$t("user.YOU")),1)])):L("",!0)],64))}}),Ju=ae(TXe,[["__scopeId","data-v-f72b5b8c"]]),_Xe={class:"user-stats"},fXe={class:"user-stat"},hXe={class:"stat-number"},SXe={class:"stat-label"},AXe={class:"user-stat"},OXe={key:1,class:"stat-number"},IXe={class:"stat-label"},gXe={class:"user-stat"},RXe={key:1,class:"stat-number"},NXe={class:"stat-label"},vXe=X({__name:"UserStats",props:{user:{}},setup(e){const t=e,{user:n}=_e(t),{authUser:a}=qe(),s=F(()=>a.value.username?n.value.username===a.value.username?!a.value.suspended_at:!0:!1);function o(i,r,u){return i.username===(r==null?void 0:r.username)&&u.includes("/profile")?"profile":`users/${i.username}`}return(i,r)=>{const u=j("router-link");return f(),v("div",_Xe,[p("div",fXe,[p("span",hXe,S(T(n).nb_workouts),1),p("span",SXe,S(i.$t("workouts.WORKOUT",T(n).nb_workouts)),1)]),p("div",AXe,[s.value?(f(),B(u,{key:0,to:`/${o(T(n),T(a),i.$route.path)}/following`,class:"stat-number"},{default:Y(()=>[x(S(T(n).following),1)]),_:1},8,["to"])):(f(),v("span",OXe,S(T(n).following),1)),p("span",IXe,S(i.$t("user.RELATIONSHIPS.FOLLOWING",T(n).following)),1)]),p("div",gXe,[s.value?(f(),B(u,{key:0,to:`/${o(T(n),T(a),i.$route.path)}/followers`,class:"stat-number"},{default:Y(()=>[x(S(T(n).followers),1)]),_:1},8,["to"])):(f(),v("span",RXe,S(T(n).followers),1)),p("span",NXe,S(i.$t("user.RELATIONSHIPS.FOLLOWER",T(n).followers)),1)])])}}}),Kp=ae(vXe,[["__scopeId","data-v-9af0bb02"]]),bXe={class:"box"},CXe={class:"user-card"},PXe={class:"user-header"},DXe={class:"stats-role"},LXe={key:0,class:"role"},yXe={class:"user-role"},$Xe=X({__name:"UserCard",props:{authUser:{},user:{},updatedUser:{},from:{default:null},hideRelationship:{type:Boolean,default:!1}},emits:["updatedUserRelationship"],setup(e,{emit:t}){const n=e,{authUser:a,from:s,hideRelationship:o,updatedUser:i,user:r}=_e(n),u=rt(),{authUserHasModeratorRights:l}=qe(),{errorMessages:d}=Ke(),E=t,c=F(()=>r.value.suspended_at?Ut(r.value.suspended_at,a.value.timezone,a.value.date_format):null),m=F(()=>{var O;return l.value&&u.params.reportId!=((O=r.value.suspension_report_id)==null?void 0:O.toString())}),_=F(()=>r.value.role!=="user"?`user.ROLES.${r.value.role}`:"");function h(O){E("updatedUserRelationship",O)}return(O,A)=>{const R=j("router-link"),g=j("AlertMessage"),I=j("i18n-t"),N=j("ErrorMessage");return f(),v("div",bXe,[p("div",CXe,[p("div",PXe,[w(Qt,{user:T(r)},null,8,["user"]),w(R,{class:"user-name",to:O.$route.path.startsWith("/admin")?`/admin/users/${T(r).username}`:`/users/${T(r).username}?from=users`,title:T(r).username},{default:Y(()=>[x(S(T(r).username),1)]),_:1},8,["to","title"])]),p("div",DXe,[w(Kp,{user:T(r)},null,8,["user"]),_.value?(f(),v("div",LXe,[p("div",yXe,S(O.$t(_.value)),1)])):L("",!0)])]),T(o)!==!0?(f(),B(Ju,{key:0,authUser:T(a),user:T(r),from:T(s)?T(s):"userCard",displayFollowsYou:!0,onUpdatedUser:h},null,8,["authUser","user","from"])):L("",!0),"is_active"in T(r)&&!T(r).is_active?(f(),B(g,{key:1,message:"user.THIS_USER_ACCOUNT_IS_INACTIVE"})):L("",!0),"suspended_at"in T(r)&&T(r).suspended_at!==null?(f(),B(g,{key:2,message:"user.ACCOUNT_SUSPENDED_AT",param:c.value},_o({_:2},[m.value?{name:"additionalMessage",fn:Y(()=>[w(I,{keypath:"common.SEE_REPORT",tag:"span"},{default:Y(()=>[w(R,{to:`/admin/reports/${T(r).suspension_report_id}`},{default:Y(()=>[x(" #"+S(T(r).suspension_report_id),1)]),_:1},8,["to"])]),_:1})]),key:"0"}:void 0]),1032,["param"])):L("",!0),T(d)&&T(i)&&T(i)===T(r).username?(f(),B(N,{key:3,message:T(d)},null,8,["message"])):L("",!0)])}}}),Wl=ae($Xe,[["__scopeId","data-v-895b8780"]]),LO="/img/workouts/mountains.svg",UXe=["alt"],yO=X({__name:"StaticMap",props:{workout:{},displayHover:{type:Boolean,default:!1}},setup(e){const t=e,{displayHover:n}=_e(t),a=`${nr()}workouts/map/${t.workout.map}`;return(s,o)=>{const i=j("router-link");return f(),v("div",{class:Oe(["static-map",{"display-hover":T(n)}])},[T(n)?(f(),v("img",{key:0,src:a,alt:s.$t("workouts.WORKOUT_MAP")},null,8,UXe)):(f(),B(i,{key:1,class:"bg-map-image",to:{name:"Workout",params:{workoutId:s.workout.id}},style:za({backgroundImage:`url(${a})`}),"aria-label":s.$t("workouts.WORKOUT_MAP"),onClick:o[0]||(o[0]=r=>s.$emit("workoutLinkClicked"))},null,8,["to","style","aria-label"])),o[1]||(o[1]=p("div",{class:"map-attribution"},[p("a",{class:"map-attribution-text",href:"https://www.openstreetmap.org/copyright",target:"_blank",rel:"noopener noreferrer"}," © OpenStreetMap ")],-1))],2)}}}),kXe={class:"timeline-workout workout-card"},wXe={class:"box"},MXe={class:"workout-card-title"},WXe={class:"workout-user-date"},FXe={class:"workout-user"},zXe={class:"workout-date-visibility"},xXe=["datetime","title"],BXe={class:"workout-map"},GXe={class:"no-map"},VXe={class:"img"},HXe={class:"data"},KXe={key:0},qXe={class:"data"},jXe={key:0,class:"data elevation"},YXe=["alt"],XXe={class:"data-values"},QXe={key:1,class:"data altitude"},ZXe={class:"data-values"},JXe=X({__name:"WorkoutCard",props:{user:{},useImperialUnits:{type:Boolean},dateFormat:{},timezone:{},workout:{default:()=>({})},sport:{default:()=>({})}},emits:["workoutLinkClicked"],setup(e,{emit:t}){const n=e,{dateFormat:a,sport:s,timezone:o,user:i,useImperialUnits:r,workout:u}=_e(n),{locale:l}=Ke(),d=t,E=F(()=>Ut(u.value.workout_date,o.value,a.value));function c(h){return h.with_gpx&&h.min_alt!==null&&h.max_alt!==null}function m(h){return h.ascent!==null&&h.descent!==null}function _(h){h.id&&(lt.push({name:"Workout",params:{workoutId:h.id}}),d("workoutLinkClicked"))}return(h,O)=>{var N;const A=j("router-link"),R=j("VisibilityIcon"),g=j("SportImage"),I=j("Distance");return f(),v("div",kXe,[p("div",wXe,[p("div",MXe,[p("div",WXe,[p("div",FXe,[w(Qt,{user:T(i)},null,8,["user"]),w(Ri,{user:T(i)},null,8,["user"])]),T(u).id?(f(),B(A,{key:0,class:"workout-title",to:{name:"Workout",params:{workoutId:T(u).id}},onClick:O[0]||(O[0]=b=>h.$emit("workoutLinkClicked"))},{default:Y(()=>[x(S(T(u).title),1)]),_:1},8,["to"])):L("",!0),p("div",zXe,[T(u).workout_date&&T(i)?(f(),v("time",{key:0,class:"workout-date",datetime:E.value,title:E.value},S(T(Ws)(new Date(T(u).workout_date),new Date,{addSuffix:!0,locale:T(l)})),9,xXe)):L("",!0),T(u).workout_visibility?(f(),B(R,{key:1,visibility:T(u).workout_visibility},null,8,["visibility"])):L("",!0)])])]),p("div",BXe,[T(u).with_gpx?(f(),B(yO,{key:0,workout:T(u),onWorkoutLinkClicked:O[1]||(O[1]=b=>h.$emit("workoutLinkClicked"))},null,8,["workout"])):T(u).id?(f(),B(A,{key:1,to:{name:"Workout",params:{workoutId:T(u).id}},onClick:O[2]||(O[2]=b=>h.$emit("workoutLinkClicked"))},{default:Y(()=>[p("div",GXe,S(h.$t("workouts.NO_MAP")),1)]),_:1},8,["to"])):L("",!0)]),p("div",{class:Oe(["workout-data",{"without-elevation":!c(T(u))}]),onClick:O[3]||(O[3]=b=>_(T(u)))},[p("div",VXe,[(N=T(s))!=null&&N.label?(f(),B(g,{key:0,"sport-label":T(s).label,color:T(s).color},null,8,["sport-label","color"])):L("",!0)]),p("div",HXe,[O[4]||(O[4]=p("i",{class:"fa fa-clock-o","aria-hidden":"true"},null,-1)),T(u)?(f(),v("span",KXe,S(T(u).moving),1)):L("",!0)]),p("div",qXe,[O[5]||(O[5]=p("i",{class:"fa fa-road","aria-hidden":"true"},null,-1)),T(u).id?(f(),B(I,{key:0,distance:T(u).distance,digits:3,unitFrom:"km",useImperialUnits:T(r)},null,8,["distance","useImperialUnits"])):L("",!0)]),c(T(u))?(f(),v("div",jXe,[p("img",{class:"mountains",src:LO,alt:h.$t("workouts.ELEVATION")},null,8,YXe),p("div",XXe,[T(u).id?(f(),B(I,{key:0,distance:T(u).min_alt,unitFrom:"m",displayUnit:!1,useImperialUnits:T(r)},null,8,["distance","useImperialUnits"])):L("",!0),O[6]||(O[6]=x("/ ")),T(u).id?(f(),B(I,{key:1,distance:T(u).max_alt,unitFrom:"m",useImperialUnits:T(r)},null,8,["distance","useImperialUnits"])):L("",!0)])])):L("",!0),m(T(u))?(f(),v("div",QXe,[O[9]||(O[9]=p("i",{class:"fa fa-location-arrow","aria-hidden":"true"},null,-1)),p("div",ZXe,[O[7]||(O[7]=x(" +")),T(u).id?(f(),B(I,{key:0,distance:T(u).ascent,unitFrom:"m",displayUnit:!1,useImperialUnits:T(r)},null,8,["distance","useImperialUnits"])):L("",!0),O[8]||(O[8]=x("/- ")),T(u).id?(f(),B(I,{key:1,distance:T(u).descent,unitFrom:"m",useImperialUnits:T(r)},null,8,["distance","useImperialUnits"])):L("",!0)])])):L("",!0)],2)])])}}}),Hi=ae(JXe,[["__scopeId","data-v-9f1da2f4"]]),eQe={key:0,class:"report-loading"},tQe={key:0,id:"admin-report",class:"admin-card"},nQe={key:0,class:"report-status"},aQe={class:"report-data"},sQe={class:"report-detail"},oQe={key:1,class:"deleted-object"},iQe={key:2,class:"deleted-object"},rQe={key:1,class:"deleted-object"},uQe={key:2,class:"deleted-object"},lQe={key:1,class:"deleted-object"},cQe={key:1,class:"deleted-object"},dQe={class:"report-info"},EQe={key:0,class:"report-comment-user"},pQe={key:1,class:"deleted-object"},mQe={key:0},TQe={key:1},_Qe={key:2},fQe={key:3},hQe={class:"resolver-user"},SQe={key:4},AQe={key:5},OQe={key:0,class:"report-comment"},IQe={class:"report-comment-info"},gQe={class:"report-comment-user"},RQe=["title"],NQe={class:"report-comment-comment"},vQe={key:1,class:"report-action"},bQe=["title"],CQe=["onClick"],PQe={key:0,class:"report-action-note"},DQe={key:0,class:"no-notes"},LQe={key:0,class:"comment-textarea"},yQe={for:"report-comment"},$Qe={class:"comment-buttons"},UQe=["disabled"],kQe=["disabled"],wQe={class:"action-loading"},MQe={key:0,class:"fa fa-spinner fa-pulse","aria-hidden":"true"},WQe={key:1,class:"actions-buttons"},FQe={key:1,class:"container"},zQe={key:2,class:"container"},xQe=X({__name:"AdminReport",setup(e){const t=rt(),n=gn(),a=De(),{t:s}=$t(),{errorMessages:o,locale:i}=Ke(),{authUser:r,authUserSuccess:u,dateFormat:l}=qe(),{sports:d}=nn(),E=Ie(""),c=Ie(null),m=Ie(""),_=Ie([]),h=F(()=>a.getters[Le.GETTERS.REPORT]),O=F(()=>h.value.reported_comment||h.value.reported_workout),A=F(()=>a.getters[Le.GETTERS.REPORT_LOADING]),R=F(()=>a.getters[Le.GETTERS.REPORT_UPDATE_LOADING]),g=Ie(!1),I=F(()=>we()),N=F(()=>c.value!==null&&["ADD_COMMENT","MARK_AS_RESOLVED","MARK_AS_UNRESOLVED"].includes(c.value)),b=F(()=>{var Z,Ae;return(Z=h.value.reported_user)!=null&&Z.suspended_at?Ut((Ae=h.value.reported_user)==null?void 0:Ae.suspended_at,r.value.timezone,r.value.date_format):null}),C=F(()=>{var Z,Ae;return t.params.reportId!=((Ae=(Z=h.value.reported_user)==null?void 0:Z.suspension_report_id)==null?void 0:Ae.toString())});function y(){a.dispatch(Le.ACTIONS.GET_REPORT,{reportId:+t.params.reportId,loader:"REPORT"})}function D(Z=null){me(),c.value=Z,g.value=!0}function M(Z){E.value=Z.value}function P(){g.value=!1,E.value="",c.value=null,a.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES)}function W(){const Z={reportId:h.value.id,comment:E.value};c.value&&["MARK_AS_RESOLVED","MARK_AS_UNRESOLVED"].includes(c.value)&&(Z.resolved=c.value==="MARK_AS_RESOLVED"),a.dispatch(Le.ACTIONS.UPDATE_REPORT,Z)}function Q(){switch(c.value){case"SEND_WARNING_EMAIL":He();break;case"SUSPEND_ACCOUNT":case"SUSPEND_CONTENT":Pe("suspension");break;case"UNSUSPEND_ACCOUNT":J();break;case"UNSUSPEND_CONTENT":Ee();break;default:return W()}}function Se(){switch(c.value){case"MARK_AS_RESOLVED":return`admin.APP_MODERATION.ACTIONS.${c.value}`;default:return"buttons.SUBMIT"}}function J(){if(h.value.reported_user&&c.value){const Ae={action_type:`user_${c.value==="SUSPEND_ACCOUNT"?"":"un"}suspension`,report_id:h.value.id,username:h.value.reported_user.username};E.value&&(Ae.reason=E.value),a.dispatch(Le.ACTIONS.SUBMIT_ADMIN_ACTION,Ae)}}function Ee(){var Z;if(O.value&&c.value){const Te={action_type:`${h.value.reported_comment?"comment":"workout"}_${(Z=c.value)!=null&&Z.startsWith("SUSPEND")?"":"un"}suspension`,report_id:h.value.id};h.value.reported_comment?Te.comment_id=h.value.reported_comment.id:h.value.reported_workout&&(Te.workout_id=h.value.reported_workout.id),E.value&&(Te.reason=E.value),a.dispatch(Le.ACTIONS.SUBMIT_ADMIN_ACTION,Te)}}function fe(){Pe(""),c.value==="SUSPEND_CONTENT"?Ee():J()}function Pe(Z){m.value=Z,Z!==""&&a.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!1)}function He(){var Ae;const Z={action_type:"user_warning",report_id:h.value.id,username:(Ae=h.value.reported_user)==null?void 0:Ae.username};E.value&&(Z.reason=E.value),a.dispatch(Le.ACTIONS.SUBMIT_ADMIN_ACTION,Z)}function et(){n.go(-1),a.commit(Le.MUTATIONS.EMPTY_REPORT)}function Ve(Z){return Ut(Z,r.value.timezone,r.value.date_format)}function _t(Z,Ae){return Ti(new Date(Z.created_at),new Date(Ae.created_at))}function we(){return!h.value.report_actions&&!h.value.comments?[]:[...h.value.report_actions,...h.value.comments].sort(_t)}function se(Z){_.value.includes(Z)?(_.value.splice(_.value.indexOf(Z),1),a.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES)):_.value.push(Z)}function ke(Z){a.dispatch(Le.ACTIONS.PROCESS_APPEAL,{...Z,reportId:h.value.id})}function pt(){var oe,U;const Z=(oe=c.value)!=null&&oe.includes("SUSPEND")?(U=c.value)==null?void 0:U.split("_")[0]:c.value,Ae=s(`admin.APP_MODERATION.TEXTAREA_PLACEHOLDER.${Z}`);let Te="";return Z&&(Te=["ADD_COMMENT","MARK_AS_RESOLVED","MARK_AS_UNRESOLVED"].includes(Z)?"":` ${s("admin.APP_MODERATION.TEXTAREA_PLACEHOLDER.INFORMATION_VISIBLE_TO_USER")}`),`${Ae}${Te}`}function me(){a.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),_.value=[]}return Ce(()=>h.value.comments,()=>{g.value=!1,E.value=""}),Ce(()=>t.params.reportId,()=>{y()}),Ce(()=>u.value,Z=>{Z&&Pe("")}),Je(async()=>y()),ct(()=>a.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!1)),(Z,Ae)=>{var ie;const Te=j("Modal"),oe=j("router-link"),U=j("i18n-t"),k=j("AlertMessage"),G=j("Card"),le=j("CustomTextArea"),pe=j("ErrorMessage");return A.value?(f(),v("div",eQe,[w(Ml)])):(f(),v(re,{key:1},[(ie=h.value)!=null&&ie.id?(f(),v("div",tQe,[m.value&&h.value.reported_user?(f(),B(Te,{key:0,title:Z.$t("common.CONFIRMATION"),message:`admin.CONFIRM_${c.value}`,strongMessage:h.value.reported_user.username,onConfirmAction:fe,onCancelAction:Ae[0]||(Ae[0]=$=>Pe("")),onKeydown:Ae[1]||(Ae[1]=Ye($=>Pe(""),["esc"]))},null,8,["title","message","strongMessage"])):L("",!0),w(G,null,{title:Y(()=>[x(S(Z.$t("admin.APP_MODERATION.REPORT"))+" #"+S(h.value.id)+" ",1),h.value.resolved?(f(),v("span",nQe," ("+S(Z.$t("admin.APP_MODERATION.RESOLVED.TRUE"))+") ",1)):L("",!0)]),content:Y(()=>[p("div",aQe,[p("div",sQe,[w(G,{class:"report-detail-card"},{title:Y(()=>[x(S(Z.$t("admin.APP_MODERATION.REPORTED_CONTENT")),1)]),content:Y(()=>{var $,z,V;return[h.value.object_type==="comment"?(f(),v(re,{key:0},[h.value.reported_comment?(f(),B(zp,{key:0,"auth-user":T(r),comment:h.value.reported_comment,"comments-loading":null,"for-admin":!0},null,8,["auth-user","comment"])):(f(),v("span",oQe,S(Z.$t("admin.DELETED_COMMENT")),1)),h.value.reported_user?L("",!0):(f(),v("span",iQe," ("+S(Z.$t("admin.DELETED_USER").toLocaleLowerCase())+") ",1))],64)):L("",!0),h.value.object_type==="workout"?(f(),v(re,{key:1},[h.value.reported_workout?(f(),B(Hi,{workout:h.value.reported_workout,sport:T(d).filter(q=>{var Re;return q.id===((Re=h.value.reported_workout)==null?void 0:Re.sport_id)})[0],user:h.value.reported_workout.user,useImperialUnits:T(r).imperial_units,dateFormat:T(l),timezone:T(r).timezone,key:h.value.reported_workout.id},null,8,["workout","sport","user","useImperialUnits","dateFormat","timezone"])):(f(),v("span",rQe,S(Z.$t("admin.DELETED_WORKOUT")),1)),h.value.reported_user?(z=($=h.value.reported_workout)==null?void 0:$.suspension)!=null&&z.report_id?(f(),B(k,{key:3,message:"workouts.SUSPENDED_BY_ADMIN"},_o({_:2},[h.value.reported_workout.suspension.report_id!==parseInt(T(t).params.reportId)?{name:"additionalMessage",fn:Y(()=>[w(U,{keypath:"common.SEE_REPORT",tag:"span"},{default:Y(()=>[w(oe,{to:`/admin/reports/${h.value.reported_workout.suspension.report_id}`},{default:Y(()=>[x(" #"+S(h.value.reported_workout.suspension.report_id),1)]),_:1},8,["to"])]),_:1})]),key:"0"}:void 0]),1024)):L("",!0):(f(),v("span",uQe," ("+S(Z.$t("admin.DELETED_USER").toLocaleLowerCase())+") ",1))],64)):L("",!0),h.value.object_type==="user"?(f(),v(re,{key:2},[h.value.reported_user?(f(),B(Wl,{key:0,authUser:T(r),user:h.value.reported_user,hideRelationship:!0},null,8,["authUser","user"])):(f(),v("span",lQe,S(Z.$t("admin.DELETED_USER")),1))],64)):((V=h.value.reported_user)==null?void 0:V.suspended_at)!==null?(f(),B(k,{key:3,message:"user.ACCOUNT_SUSPENDED_AT",param:b.value},_o({_:2},[C.value?{name:"additionalMessage",fn:Y(()=>[w(U,{keypath:"common.SEE_REPORT"},{default:Y(()=>{var q;return[w(oe,{to:`/admin/reports/${(q=h.value.reported_user)==null?void 0:q.suspension_report_id}`},{default:Y(()=>{var Re;return[x(S((Re=h.value.reported_user)==null?void 0:Re.suspension_report_id),1)]}),_:1},8,["to"])]}),_:1})]),key:"0"}:void 0]),1032,["param"])):L("",!0)]}),_:1}),w(G,{class:"report-detail-card"},{title:Y(()=>[x(S(Z.$t("admin.APP_MODERATION.REPORT_NOTE"))+" ",1),h.value.reported_by?(f(),v(re,{key:0},[w(oe,{class:"link-with-image",to:`/admin/users/${h.value.reported_by.username}`},{default:Y(()=>[x(S(h.value.reported_by.username),1)]),_:1},8,["to"]),x(" ("+S(Z.$t("admin.APP_MODERATION.REPORTER"))+") ",1)],64)):(f(),v("span",cQe,S(Z.$t("admin.DELETED_USER").toLocaleLowerCase()),1))]),content:Y(()=>[x(S(h.value.note),1)]),_:1})]),p("dl",dQe,[p("dt",null,S(Z.$t("admin.APP_MODERATION.ORDER_BY.CREATED_AT"))+":",1),p("dd",null,S(Ve(h.value.created_at)),1),p("dt",null,S(Z.$t("admin.APP_MODERATION.REPORTED_BY"))+":",1),p("dd",null,[h.value.reported_by?(f(),v("div",EQe,[w(Qt,{user:h.value.reported_by},null,8,["user"]),w(Ri,{user:h.value.reported_by},null,8,["user"])])):(f(),v("span",pQe,S(Z.$t("admin.DELETED_USER")),1))]),p("dt",null,S(Z.$t("admin.APP_MODERATION.STATUS"))+":",1),p("dd",null,S(Z.$t(`admin.APP_MODERATION.RESOLVED.${h.value.resolved?"TRUE":"FALSE"}`)),1),h.value.resolved_at?(f(),v("dt",mQe,S(Z.$t("admin.APP_MODERATION.RESOLVED_AT"))+": ",1)):L("",!0),h.value.resolved_at?(f(),v("dd",TQe,[p("time",null,S(Ve(h.value.resolved_at)),1)])):L("",!0),h.value.resolved_by?(f(),v("dt",_Qe,S(Z.$t("admin.APP_MODERATION.RESOLVED_BY"))+": ",1)):L("",!0),h.value.resolved_by?(f(),v("dd",fQe,[p("div",hQe,[w(Qt,{user:h.value.resolved_by},null,8,["user"]),w(Ri,{user:h.value.resolved_by},null,8,["user"])])])):L("",!0),h.value.updated_at?(f(),v("dt",SQe,S(Z.$t("common.LAST_UPDATED_ON"))+": ",1)):L("",!0),h.value.updated_at?(f(),v("dd",AQe,[p("time",null,S(Ve(h.value.updated_at)),1)])):L("",!0)])]),w(G,{class:"report-action-and-comments"},{title:Y(()=>[x(S(Z.$t("admin.APP_MODERATION.NOTES_AND_ACTIONS")),1)]),content:Y(()=>[(f(!0),v(re,null,be(I.value,$=>(f(),v("div",{key:$.id},["comment"in $&&!("action_type"in $)?(f(),v("div",OQe,[p("div",IQe,[p("div",gQe,[w(Qt,{user:$.user},null,8,["user"]),w(Ri,{user:$.user},null,8,["user"])]),p("div",{class:"report-comment-date",title:Ve($.created_at)},S(T(Ws)(new Date($.created_at),new Date,{addSuffix:!0,locale:T(i)})),9,RQe)]),p("div",NQe,S($.comment),1)])):L("",!0),"action_type"in $?(f(),v("div",vQe,[p("div",null,[Ae[7]||(Ae[7]=x(" • ")),w(U,{keypath:`admin.APP_MODERATION.REPORT_ACTIONS.${$.action_type}`},{default:Y(()=>[$.action_type.startsWith("user_")&&$.user?(f(),B(oe,{key:0,class:"user-name",to:`/admin/users/${$.user.username}`,title:$.user.username},{default:Y(()=>[x(S($.user.username),1)]),_:2},1032,["to","title"])):L("",!0),w(oe,{class:"user-name",to:`/admin/users/${$.moderator.username}`,title:$.moderator.username},{default:Y(()=>[x(S($.moderator.username),1)]),_:2},1032,["to","title"]),p("span",{class:"report-action-date",title:Ve($.created_at)},S(T(Ws)(new Date($.created_at),new Date,{addSuffix:!0,locale:T(i)})),9,bQe)]),_:2},1032,["keypath"]),$.appeal?(f(),v("button",{key:0,class:"appeal-button small transparent",onClick:z=>se($.appeal.id)},S(Z.$t(`admin.APP_MODERATION.APPEAL.${_.value.includes($.appeal.id)?"HIDE":"SEE"}`)),9,CQe)):L("",!0)]),$.reason?(f(),v("div",PQe,[p("span",null,S(Z.$t("admin.APP_MODERATION.REASON"))+":",1),x(" "+S($.reason),1)])):L("",!0),$.appeal&&_.value.includes($.appeal.id)?(f(),B(nXe,{key:1,appeal:$.appeal,"auth-user":T(r),onUpdateAppeal:ke,onCloseAppeal:z=>se($.appeal.id)},null,8,["appeal","auth-user","onCloseAppeal"])):L("",!0)])):L("",!0)]))),128)),I.value.length==0?(f(),v("div",DQe,S(Z.$t("common.NO_NOTES")),1)):L("",!0)]),_:1}),w(G,{class:"report-detail-card"},{title:Y(()=>[x(S(Z.$t("admin.ACTION",0)),1)]),content:Y(()=>[g.value?(f(),v("div",LQe,[p("form",{onSubmit:ve(Q,["prevent"])},[p("label",yQe,S(Z.$t(`admin.APP_MODERATION.ACTIONS.${c.value}`)),1),w(le,{class:"report-comment-textarea",name:"report-comment",required:N.value,placeholder:pt(),disabled:R.value,onUpdateValue:M},null,8,["required","placeholder","disabled"]),p("div",$Qe,[p("button",{class:"confirm",type:"submit",disabled:R.value},S(Z.$t(Se())),9,UQe),p("button",{class:"cancel",onClick:ve(P,["prevent"]),disabled:R.value},S(Z.$t("buttons.CANCEL")),9,kQe),p("div",wQe,[R.value?(f(),v("i",MQe)):L("",!0)])]),T(o)?(f(),B(pe,{key:0,message:T(o)},null,8,["message"])):L("",!0)],32)])):(f(),v("div",WQe,[p("button",{onClick:Ae[2]||(Ae[2]=$=>D("ADD_COMMENT"))},S(Z.$t("admin.APP_MODERATION.ACTIONS.ADD_COMMENT")),1),!h.value.resolved&&h.value.reported_user&&!h.value.is_reported_user_warned?(f(),v("button",{key:0,onClick:Ae[3]||(Ae[3]=$=>D("SEND_WARNING_EMAIL"))},S(Z.$t("admin.APP_MODERATION.ACTIONS.SEND_WARNING_EMAIL")),1)):L("",!0),!h.value.resolved&&O.value?(f(),v("button",{key:1,class:Oe({danger:O.value.suspended_at===null}),onClick:Ae[4]||(Ae[4]=$=>D(`${O.value.suspended_at===null?"":"UN"}SUSPEND_CONTENT`))},S(Z.$t(`admin.APP_MODERATION.ACTIONS.${O.value.suspended_at===null?"":"UN"}SUSPEND_CONTENT`)),3)):L("",!0),!h.value.resolved&&h.value.reported_user?(f(),v("button",{key:2,class:Oe({danger:h.value.reported_user.suspended_at===null}),onClick:Ae[5]||(Ae[5]=$=>D(`${h.value.reported_user.suspended_at?"UN":""}SUSPEND_ACCOUNT`))},S(Z.$t(`admin.APP_MODERATION.ACTIONS.${h.value.reported_user.suspended_at?"UN":""}SUSPEND_ACCOUNT`)),3)):L("",!0),p("button",{onClick:Ae[6]||(Ae[6]=$=>D(`MARK_AS_${h.value.resolved?"UN":""}RESOLVED`))},S(Z.$t(`admin.APP_MODERATION.ACTIONS.MARK_AS_${h.value.resolved?"UN":""}RESOLVED`)),1)]))]),_:1}),p("button",{onClick:ve(et,["prevent"])},S(Z.$t("buttons.BACK")),1)]),_:1})])):A.value?(f(),v("div",FQe)):(f(),v("div",zQe,[w(wo,{target:"REPORT"})]))],64))}}}),BQe=ae(xQe,[["__scopeId","data-v-e9598d83"]]),GQe={class:"table-selects"},VQe=["value"],HQe=["value"],KQe=["value"],qQe=["value"],jQe=["value"],YQe=["value"],qp=X({__name:"FilterSelects",props:{order_by:{},query:{},sort:{},message:{}},emits:["updateSelect"],setup(e,{emit:t}){const n=e,{order_by:a,query:s,sort:o,message:i}=_e(n),r=t,u=[10,25,50,100];function l(d){r("updateSelect",d.target.id,d.target.value)}return(d,E)=>(f(),v("div",GQe,[p("label",null,[x(S(d.$t("common.SELECTS.ORDER_BY.LABEL"))+": ",1),p("select",{name:"order_by",id:"order_by",value:T(s).order_by,onChange:l},[(f(!0),v(re,null,be(T(a),c=>(f(),v("option",{value:c,key:c},S(d.$t(`${T(i)}.${c.toUpperCase()}`)),9,HQe))),128))],40,VQe)]),p("label",null,[x(S(d.$t("common.SELECTS.ORDER.LABEL"))+": ",1),p("select",{name:"order",id:"order",value:T(s).order,onChange:l},[(f(!0),v(re,null,be(T(o),c=>(f(),v("option",{value:c,key:c},S(d.$t(`common.SELECTS.ORDER.${c.toUpperCase()}`)),9,qQe))),128))],40,KQe)]),Pt(d.$slots,"additionalFilters"),p("label",null,[x(S(d.$t("common.SELECTS.PER_PAGE.LABEL"))+": ",1),p("select",{name:"per_page",id:"per_page",value:T(s).per_page,onChange:l},[(f(),v(re,null,be(u,c=>p("option",{value:c,key:c},S(c),9,YQe)),64))],40,jQe)])]))}}),Fl=["asc","desc"],cr=1,XQe=10,bo=(e,t)=>e&&typeof e=="string"&&+e>0?+e:t,Th=(e,t,n)=>e&&typeof e=="string"&&t.includes(e)?e:n,Co=(e,t,n,a)=>{const o=(a||{}).defaultSort||"asc",i={};return i.page=bo(e.page,cr),i.per_page=bo(e.per_page,XQe),i.order=Th(e.order,Fl,o),i.order_by=Th(e.order_by,t,n),typeof e.q=="string"?i.q=e.q:delete i.q,typeof e.notes=="string"?i.notes=e.notes:delete i.notes,typeof e.description=="string"?i.description=e.description:delete i.description,typeof e.object_type=="string"?i.object_type=e.object_type:delete i.object_type,typeof e.resolved=="string"?i.resolved=e.resolved:delete i.resolved,i},QQe=["equipment_id","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"],Js=(e,t=1)=>Array.from({length:e-t+1},(n,a)=>t+a),ZQe=(e,t)=>{if(e<0)return[];if(e<9)return Js(e);let n=[1,2];return t<4?n=n.concat([3,4,5]):t<6?n=n.concat(Js(t+2,3)):(n=n.concat(["..."]),t=e-2&&+n[n.length-1]{const u=j("router-link");return f(),v("nav",JQe,[p("ul",eZe,[p("li",{class:Oe(["page-prev",{disabled:!T(n).has_prev}])},[w(u,{class:"page-link",to:{path:T(a),query:o(T(n).page,-1)},disabled:!T(n).has_prev,tabindex:T(n).has_prev?0:-1},{default:Y(({navigate:l})=>[Pt(i.$slots,"default",{onClick:d=>T(n).has_next?l:null},()=>[x(S(i.$t("common.PREVIOUS"))+" ",1),r[0]||(r[0]=p("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1))],!0)]),_:3},8,["to","disabled","tabindex"])],2),(f(!0),v(re,null,be(T(ZQe)(T(n).pages,T(n).page),l=>(f(),v("li",{key:l,class:Oe(["page",{active:l===T(n).page}])},[l==="..."?(f(),v("span",tZe," ... ")):(f(),B(u,{key:1,class:"page-link",to:{path:T(a),query:o(+l)}},{default:Y(()=>[x(S(l),1)]),_:2},1032,["to"]))],2))),128)),p("li",{class:Oe(["page-next",{disabled:!T(n).has_next}])},[w(u,{class:"page-link",to:{path:T(a),query:o(T(n).page,1)},disabled:!T(n).has_next,tabindex:T(n).has_next?0:-1},{default:Y(({navigate:l})=>[Pt(i.$slots,"default",{onClick:d=>T(n).has_next?l:null},()=>[x(S(i.$t("common.NEXT"))+" ",1),r[1]||(r[1]=p("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1))],!0)]),_:3},8,["to","disabled","tabindex"])],2)])])}}}),Qn=ae(nZe,[["__scopeId","data-v-d7c0bddb"]]),aZe={id:"admin-reports",class:"admin-card"},sZe=["value"],oZe=["value"],iZe=["value"],rZe={value:"true"},uZe={value:"false"},lZe={key:0,class:"no-reports"},cZe={key:1,class:"responsive-table"},dZe={class:"left-text"},EZe={class:"left-text"},pZe={class:"left-text"},mZe={class:"left-text"},TZe={class:"left-text"},_Ze={class:"left-text"},fZe={class:"left-text"},hZe={class:"cell-heading"},SZe={key:1,class:"deleted-object"},AZe={class:"cell-heading"},OZe={key:0},IZe={class:"cell-heading"},gZe={key:1,class:"deleted-object"},RZe={class:"cell-heading"},NZe={class:"cell-heading"},vZe={class:"cell-heading"},bZe={key:0},CZe=["onClick"],_h=20,fh="created_at",PZe=X({__name:"AdminReports",setup(e){const t=rt(),n=gn(),a=De(),{errorMessages:s}=Ke(),{authUser:o}=qe(),i=["created_at","updated_at"],r={comment:"workouts.COMMENTS.COMMENT",user:"user.USER",workout:"workouts.WORKOUT"};let u=yt(Co(t.query,i,fh,{defaultSort:"desc"}));const l=F(()=>a.getters[Le.GETTERS.REPORTS]),d=F(()=>a.getters[Le.GETTERS.REPORTS_PAGINATION]);function E(R){a.dispatch(Le.ACTIONS.GET_REPORTS,R)}function c(R){const g=R.target;g.value?u.object_type=g.value:delete u.object_type,n.push({path:"/admin/reports",query:u})}function m(R){const g=R.target;g.value?u.resolved=g.value:delete u.resolved,n.push({path:"/admin/reports",query:u})}function _(R,g){u[R]=g,R==="per_page"&&(u.page=1),n.push({path:"/admin/reports",query:u})}function h(R){return Ut(R,o.value.timezone,o.value.date_format)}function O(R){return R=="user.USER"?"user.USER_PROFILE":R}function A(R){var I,N;let g;switch(R.object_type){case"workout":g=(I=R.reported_workout)==null?void 0:I.title;break;case"comment":g=((N=R.reported_comment)==null?void 0:N.text)||"";break;default:g=""}return g?g.length>_h?`${g.substring(0,_h-1)}…`:g:""}return Ce(()=>t.query,R=>{u=Co(R,i,fh,{query:u}),E(u)}),Je(()=>E(u)),(R,g)=>{const I=j("router-link"),N=j("ErrorMessage"),b=j("Card");return f(),v("div",aZe,[w(b,null,{title:Y(()=>[x(S(R.$t("admin.APP_MODERATION.TITLE")),1)]),content:Y(()=>[p("button",{class:"top-button",onClick:g[0]||(g[0]=ve(C=>R.$router.push("/admin"),["prevent"]))},S(R.$t("admin.BACK_TO_ADMIN")),1),w(qp,{sort:T(Fl),order_by:i,query:T(u),message:"admin.APP_MODERATION.ORDER_BY",onUpdateSelect:_},{additionalFilters:Y(()=>[p("label",null,[x(S(R.$t("common.TYPE"))+": ",1),p("select",{name:"object_type",id:"object_type",value:T(u).object_type,onChange:c},[g[2]||(g[2]=p("option",{value:""},null,-1)),(f(!0),v(re,null,be(Object.keys(r),C=>(f(),v("option",{value:C,key:C},S(R.$t(r[C])),9,oZe))),128))],40,sZe)]),p("label",null,[x(S(R.$t("admin.APP_MODERATION.STATUS"))+": ",1),p("select",{name:"resolved",id:"resolved",value:T(u).resolved,onChange:m},[g[3]||(g[3]=p("option",{value:""},null,-1)),p("option",rZe,S(R.$t("admin.APP_MODERATION.RESOLVED.TRUE")),1),p("option",uZe,S(R.$t("admin.APP_MODERATION.RESOLVED.FALSE")),1)],40,iZe)])]),_:1},8,["sort","query"]),l.value.length===0?(f(),v("div",lZe,S(R.$t("admin.APP_MODERATION.NO_REPORTS_FOUND")),1)):(f(),v("div",cZe,[p("table",null,[p("thead",null,[p("tr",null,[g[4]||(g[4]=p("th",{class:"left-text"},"#",-1)),p("th",dZe,S(R.$t("admin.APP_MODERATION.REPORTED_USER")),1),p("th",EZe,S(R.$t("admin.APP_MODERATION.REPORTED_CONTENT")),1),p("th",pZe,S(R.$t("admin.APP_MODERATION.REPORTED_BY")),1),p("th",mZe,S(Fe(R.$t("admin.APP_MODERATION.ORDER_BY.CREATED_AT"))),1),p("th",TZe,S(R.$t("admin.APP_MODERATION.RESOLVED.TRUE")),1),p("th",_Ze,S(Fe(R.$t("common.LAST_UPDATED_ON"))),1),p("th",fZe,S(R.$t("admin.ACTION")),1)])]),p("tbody",null,[(f(!0),v(re,null,be(l.value,C=>(f(),v("tr",{key:C.created_at},[p("td",null,[w(I,{to:`/admin/reports/${C.id}`},{default:Y(()=>[x(S(C.id),1)]),_:2},1032,["to"])]),p("td",null,[p("span",hZe,S(R.$t("admin.APP_MODERATION.REPORTED_USER")),1),C.reported_user?(f(),B(I,{key:0,class:"link-with-image",to:`/admin/users/${C.reported_user.username}`},{default:Y(()=>[w(Qt,{user:C.reported_user},null,8,["user"]),x(" "+S(C.reported_user.username),1)]),_:2},1032,["to"])):(f(),v("span",SZe,S(R.$t("admin.DELETED_USER")),1))]),p("td",null,[p("span",AZe,S(R.$t("admin.APP_MODERATION.REPORTED_CONTENT")),1),x(" "+S(R.$t(O(r[C.object_type])))+" ",1),A(C)?(f(),v("span",OZe," ("+S(A(C))+") ",1)):L("",!0)]),p("td",null,[p("span",IZe,S(R.$t("admin.APP_MODERATION.REPORTED_BY")),1),C.reported_by?(f(),B(I,{key:0,class:"link-with-image",to:`/admin/users/${C.reported_by.username}`},{default:Y(()=>[w(Qt,{user:C.reported_by},null,8,["user"]),x(" "+S(C.reported_by.username),1)]),_:2},1032,["to"])):(f(),v("span",gZe,S(R.$t("admin.DELETED_USER")),1))]),p("td",null,[p("span",RZe,S(Fe(R.$t("admin.APP_MODERATION.ORDER_BY.CREATED_AT"))),1),p("time",null,S(h(C.created_at)),1)]),p("td",null,[p("span",NZe,S(R.$t("admin.APP_MODERATION.RESOLVED.TRUE")),1),p("i",{class:Oe(`fa fa${C.resolved?"-check":""}-square-o`),"aria-hidden":"true"},null,2)]),p("td",null,[p("span",vZe,S(Fe(R.$t("common.LAST_UPDATED_ON"))),1),C.updated_at?(f(),v("time",bZe,S(h(C.updated_at)),1)):L("",!0)]),p("td",null,[p("button",{onClick:y=>R.$router.push(`/admin/reports/${C.id}`)},S(R.$t("admin.APP_MODERATION.VIEW_REPORT")),9,CZe)])]))),128))])]),d.value.page?(f(),B(Qn,{key:0,path:"/admin/users",pagination:d.value,query:T(u)},null,8,["pagination","query"])):L("",!0),T(s)?(f(),B(N,{key:1,message:T(s)},null,8,["message"])):L("",!0),p("button",{onClick:g[1]||(g[1]=ve(C=>R.$router.push("/admin"),["prevent"]))},S(R.$t("admin.BACK_TO_ADMIN")),1)]))]),_:1})])}}}),DZe=ae(PZe,[["__scopeId","data-v-88c1fd48"]]),LZe={id:"admin-sports",class:"admin-card"},yZe={class:"responsive-table"},$Ze={class:"text-left"},UZe={class:"text-left sport-action"},kZe={class:"text-center"},wZe={class:"cell-heading"},MZe={class:"sport-label"},WZe={class:"cell-heading"},FZe={class:"text-center"},zZe={class:"cell-heading"},xZe={class:"sport-action"},BZe={class:"cell-heading"},GZe={class:"action-button"},VZe=["onClick"],HZe={key:0,class:"has-workouts"},KZe=X({__name:"AdminSports",setup(e){const t=De(),{errorMessages:n}=Ke(),{translatedSports:a}=nn();function s(o,i){t.dispatch(Ht.ACTIONS.UPDATE_SPORTS,{id:o,isActive:i})}return Je(()=>t.dispatch(Ht.ACTIONS.GET_SPORTS,!0)),(o,i)=>{const r=j("SportImage"),u=j("ErrorMessage"),l=j("Card");return f(),v("div",LZe,[w(l,null,{title:Y(()=>[x(S(o.$t("admin.SPORTS.TITLE")),1)]),content:Y(()=>[p("button",{class:"top-button",onClick:i[0]||(i[0]=ve(d=>o.$router.push("/admin"),["prevent"]))},S(o.$t("admin.BACK_TO_ADMIN")),1),p("div",yZe,[p("table",null,[p("thead",null,[p("tr",null,[i[2]||(i[2]=p("th",null,"#",-1)),p("th",null,S(o.$t("admin.SPORTS.TABLE.IMAGE")),1),p("th",$Ze,S(o.$t("admin.SPORTS.TABLE.LABEL")),1),p("th",null,S(o.$t("admin.SPORTS.TABLE.ACTIVE")),1),p("th",UZe,S(o.$t("admin.ACTION")),1)])]),p("tbody",null,[(f(!0),v(re,null,be(T(a),d=>(f(),v("tr",{key:d.id},[p("td",kZe,[i[3]||(i[3]=p("span",{class:"cell-heading"},"id",-1)),x(" "+S(d.id),1)]),p("td",null,[p("span",wZe,S(o.$t("admin.SPORTS.TABLE.IMAGE")),1),w(r,{title:d.translatedLabel,"sport-label":d.label,color:d.color},null,8,["title","sport-label","color"])]),p("td",MZe,[p("span",WZe,S(o.$t("admin.SPORTS.TABLE.LABEL")),1),x(" "+S(d.translatedLabel),1)]),p("td",FZe,[p("span",zZe,S(o.$t("admin.SPORTS.TABLE.ACTIVE")),1),p("i",{class:Oe(`fa fa${d.is_active?"-check":""}`),"aria-hidden":"true"},null,2)]),p("td",xZe,[p("span",BZe,S(o.$t("admin.ACTION")),1),p("div",GZe,[p("button",{class:Oe({danger:d.is_active}),onClick:E=>s(d.id,!d.is_active)},S(o.$t(`buttons.${d.is_active?"DIS":"EN"}ABLE`)),11,VZe),d.has_workouts?(f(),v("span",HZe,[i[4]||(i[4]=p("i",{class:"fa fa-warning","aria-hidden":"true"},null,-1)),x(" "+S(o.$t("admin.SPORTS.TABLE.HAS_WORKOUTS")),1)])):L("",!0)])])]))),128))])]),T(n)?(f(),B(u,{key:0,message:T(n)},null,8,["message"])):L("",!0),p("button",{onClick:i[1]||(i[1]=ve(d=>o.$router.push("/admin"),["prevent"]))},S(o.$t("admin.BACK_TO_ADMIN")),1)])]),_:1})])}}}),qZe=ae(KZe,[["__scopeId","data-v-f6f9d907"]]),jZe={class:"users-filters"},YZe={class:"search-username"},XZe=["placeholder"],QZe=X({__name:"UsersNameFilter",emits:["filterOnUsername"],setup(e,{emit:t}){const n=t,a=rt(),s=Ie(a.query.q?a.query.q:"");function o(){s.value!==""&&n("filterOnUsername",s)}function i(){s.value="",n("filterOnUsername",s.value)}return(r,u)=>(f(),v("div",jZe,[p("div",YZe,[We(p("input",{id:"username",name:"username","onUpdate:modelValue":u[0]||(u[0]=l=>s.value=l),onKeyup:Ye(o,["enter"]),placeholder:r.$t("user.FILTER_ON_USERNAME")},null,40,XZe),[[it,s.value,void 0,{trim:!0}]]),s.value!==""?(f(),v("i",{key:0,class:"fa fa-times","aria-hidden":"true",onClick:i})):L("",!0)]),p("i",{class:Oe(["fa fa-search",{"fa-disabled":s.value===""}]),"aria-hidden":"true",onClick:o},null,2)]))}}),$O=ae(QZe,[["__scopeId","data-v-359360da"]]),ZZe={id:"admin-users",class:"admin-card"},JZe={key:0,class:"no-users"},eJe={key:1,class:"responsive-table"},tJe={class:"left-text"},nJe={class:"left-text"},aJe={class:"cell-heading"},sJe={class:"cell-heading"},oJe={class:"cell-heading"},iJe={class:"text-center"},rJe={class:"cell-heading"},uJe={class:"text-center"},lJe={class:"cell-heading"},cJe={class:"text-center"},dJe={class:"cell-heading"},EJe={class:"text-center"},pJe={class:"cell-heading"},mJe={class:"text-center"},TJe={class:"cell-heading"},_Je={class:"roles"},fJe={key:0,class:"roles-buttons"},hJe=["onClick"],SJe={key:1},AJe=["disabled","onClick"],hh="created_at",OJe=X({__name:"AdminUsers",setup(e){const t=De(),n=rt(),a=gn(),{errorMessages:s}=Ke(),{authUser:o}=qe(),i=["is_active","role","created_at","username","workouts_count"];let r=yt(Co(n.query,i,hh));const u=F(()=>t.getters[ue.GETTERS.USERS]),l=F(()=>t.getters[ue.GETTERS.USERS_PAGINATION]),d=F(()=>t.getters[ue.GETTERS.USERS_IS_SUCCESS]),E=Ie("");function c(g){t.dispatch(ue.ACTIONS.GET_USERS_FOR_ADMIN,g)}function m(g){A("q",g.value)}function _(g){return E.value===g}function h(g){switch(g){case"admin":return["moderator","user"];case"moderator":return["admin","user"];case"user":return["admin","moderator"];default:return[]}}function O(g,I){t.dispatch(ue.ACTIONS.UPDATE_USER,{username:g,role:I})}function A(g,I){r[g]=I,g==="per_page"&&(r.page=1),a.push({path:"/admin/users",query:r})}function R(g){return g.username===o.value.username||g.suspended_at!==null||g.role==="owner"}return Ce(()=>n.query,g=>{r=Co(g,i,hh,{query:r}),c(r)}),Ce(()=>d.value,g=>{g&&(E.value="")}),Je(()=>c(r)),ct(()=>{t.dispatch(ue.ACTIONS.EMPTY_USERS),t.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!1)}),(g,I)=>{const N=j("router-link"),b=j("ErrorMessage"),C=j("Card");return f(),v("div",ZZe,[w(C,null,{title:Y(()=>[x(S(Fe(g.$t("user.USER",0))),1)]),content:Y(()=>[p("button",{class:"top-button",onClick:I[0]||(I[0]=ve(y=>g.$router.push("/admin"),["prevent"]))},S(g.$t("admin.BACK_TO_ADMIN")),1),w($O,{onFilterOnUsername:m}),w(qp,{sort:T(Fl),order_by:i,query:T(r),message:"admin.USERS.SELECTS.ORDER_BY",onUpdateSelect:A},null,8,["sort","query"]),u.value.length===0?(f(),v("div",JZe,S(g.$t("user.NO_USERS_FOUND")),1)):(f(),v("div",eJe,[p("table",null,[p("thead",null,[p("tr",null,[I[3]||(I[3]=p("th",null,"#",-1)),p("th",tJe,S(g.$t("user.USERNAME")),1),p("th",nJe,S(g.$t("user.PROFILE.REGISTRATION_DATE")),1),p("th",null,S(Fe(g.$t("workouts.WORKOUT",0))),1),p("th",null,S(g.$t("admin.ACTIVE")),1),p("th",null,S(g.$t("user.ROLE")),1),p("th",null,S(g.$t("user.SUSPENDED")),1),p("th",null,S(g.$t("admin.ACTION")),1)])]),p("tbody",null,[(f(!0),v(re,null,be(u.value,y=>(f(),v("tr",{key:y.username},[p("td",null,[p("span",aJe,S(g.$t("user.PROFILE.PICTURE")),1),w(Qt,{user:y},null,8,["user"])]),p("td",null,[p("span",sJe,S(g.$t("user.USERNAME")),1),w(N,{to:`/admin/users/${y.username}`},{default:Y(()=>[x(S(y.username),1)]),_:2},1032,["to"]),T(s)&&E.value===y.username?(f(),B(b,{key:0,message:T(s)},null,8,["message"])):L("",!0)]),p("td",null,[p("span",oJe,S(g.$t("user.PROFILE.REGISTRATION_DATE")),1),p("time",null,S(T(Ut)(y.created_at,T(o).timezone,T(o).date_format)),1)]),p("td",iJe,[p("span",rJe,S(Fe(g.$t("workouts.WORKOUT",0))),1),x(" "+S(y.nb_workouts),1)]),p("td",uJe,[p("span",lJe,S(g.$t("admin.ACTIVE")),1),p("i",{class:Oe(`fa fa${y.is_active?"-check":""}-square-o`),"aria-hidden":"true"},null,2)]),p("td",cJe,[p("span",dJe,S(g.$t("user.ROLE")),1),x(" "+S(g.$t(`user.ROLES.${y.role}`)),1)]),p("td",EJe,[p("span",pJe,S(g.$t("user.SUSPENDED")),1),p("i",{class:Oe(`fa fa${y.suspended_at!==null?"-check":""}-square-o`),"aria-hidden":"true"},null,2)]),p("td",mJe,[p("span",TJe,S(g.$t("admin.ACTION")),1),p("div",_Je,[_(y.username)?(f(),v("div",fJe,[(f(!0),v(re,null,be(h(y.role),D=>(f(),v("button",{class:Oe({danger:y.role==="admin"||D==="user"}),key:D,onClick:M=>O(y.username,D)},S(g.$t(`admin.USERS.TABLE.CHANGE_TO_${D.toUpperCase()}`)),11,hJe))),128)),p("button",{onClick:I[1]||(I[1]=D=>E.value="")},S(g.$t("buttons.CANCEL")),1)])):(f(),v("div",SJe,[p("button",{disabled:R(y),onClick:D=>E.value=y.username},S(g.$t("admin.USERS.TABLE.CHANGE_ROLE")),9,AJe)]))])])]))),128))])]),l.value.page?(f(),B(Qn,{key:0,path:"/admin/users",pagination:l.value,query:T(r)},null,8,["pagination","query"])):L("",!0),E.value===""&&T(s)?(f(),B(b,{key:1,message:T(s)},null,8,["message"])):L("",!0),p("button",{onClick:I[2]||(I[2]=ve(y=>g.$router.push("/admin"),["prevent"]))},S(g.$t("admin.BACK_TO_ADMIN")),1)]))]),_:1})])}}}),IJe=ae(OJe,[["__scopeId","data-v-4934ef0c"]]),gJe={class:"box"},RJe={class:"user-header"},NJe={key:0,class:"follows-you"},vJe={key:1,class:"follows-you"},bJe={class:"user-details"},CJe={class:"user-name"},PJe={key:2,class:"user-role"},DJe=X({__name:"UserHeader",props:{user:{}},setup(e){const t=e,{user:n}=_e(t),a=rt(),{displayOptions:s}=Ke(),{authUser:o,authUserHasModeratorRights:i}=qe(),r=F(()=>n.value.suspended_at?Ut(n.value.suspended_at,s.value.timezone,s.value.dateFormat):""),u=F(()=>n.value.suspended_at!==null&&a.name!=="AuthUserAccountSuspension"&&n.value.username===(o==null?void 0:o.value.username)),l=F(()=>i.value&&n.value.suspension_report_id!==void 0),d=F(()=>n.value.role!=="user"?`user.ROLES.${n.value.role}`:"");return(E,c)=>{const m=j("router-link"),_=j("i18n-t"),h=j("AlertMessage");return f(),v("div",gJe,[p("div",RJe,[T(n).follows==="true"?(f(),v("div",NJe,S(E.$t("user.RELATIONSHIPS.FOLLOWS_YOU")),1)):T(n).username===T(o).username&&!E.$route.path.startsWith("/profile")?(f(),v("div",vJe,S(E.$t("user.YOU")),1)):L("",!0),w(Qt,{user:T(n)},null,8,["user"]),p("div",bJe,[p("div",CJe,S(T(n).username),1),w(Kp,{user:T(n)},null,8,["user"])]),d.value?(f(),v("div",PJe,S(E.$t(d.value)),1)):L("",!0)]),"suspended_at"in T(n)&&T(n).suspended_at!==null?(f(),B(h,{key:0,message:"user.ACCOUNT_SUSPENDED_AT",param:r.value},_o({_:2},[u.value||l.value?{name:"additionalMessage",fn:Y(()=>[u.value?(f(),B(m,{key:0,to:"/profile/suspension",class:"appeal-link"},{default:Y(()=>[x(S(E.$t("user.APPEAL")),1)]),_:1})):L("",!0),l.value?(f(),B(_,{key:1,keypath:"common.SEE_REPORT"},{default:Y(()=>[w(m,{to:`/admin/reports/${T(n).suspension_report_id}`},{default:Y(()=>[x(S(T(n).suspension_report_id),1)]),_:1},8,["to"])]),_:1})):L("",!0)]),key:"0"}:void 0]),1032,["param"])):L("",!0)])}}}),UO=ae(DJe,[["__scopeId","data-v-12bd7069"]]),LJe={class:"profile-tabs"},yJe={class:"profile-tabs-links"},kO=X({__name:"UserProfileTabs",props:{tabs:{},selectedTab:{},edition:{type:Boolean}},setup(e){const t=e,{edition:n,selectedTab:a,tabs:s}=_e(t);mt(()=>{const i=document.getElementById(`tab-${s.value[0]}`);i&&i.focus()});function o(i){switch(i){case"ACCOUNT":case"PICTURE":case"PRIVACY-POLICY":return`/profile/edit/${i.toLocaleLowerCase()}`;case"APPS":case"BLOCKED-USERS":case"EQUIPMENTS":case"FOLLOW-REQUESTS":case"MODERATION":case"NOTIFICATIONS":case"PREFERENCES":case"SPORTS":return`/profile${n.value?"/edit":""}/${i.toLocaleLowerCase()}`;default:case"PROFILE":return`/profile${n.value?"/edit":""}`}}return(i,r)=>{const u=j("router-link");return f(),v("div",LJe,[p("div",yJe,[(f(!0),v(re,null,be(T(s),l=>(f(),B(u,{class:Oe(["profile-tab",{selected:l===T(a)}]),to:o(l),key:l},{default:Y(()=>[x(S(i.$t(`user.PROFILE.TABS.${l}`)),1)]),_:2},1032,["class","to"]))),128))])])}}}),$Je={id:"user-profile"},UJe={class:"box"},kJe=X({__name:"index",props:{user:{},tab:{}},setup(e){const t=e,{user:n,tab:a}=_e(t),s=De(),o=F(()=>s.getters[K.GETTERS.IS_SUSPENDED]),i=F(()=>o.value?["PROFILE","PREFERENCES","SPORTS","EQUIPMENTS","APPS","MODERATION"]:["PROFILE","PREFERENCES","SPORTS","EQUIPMENTS","APPS","FOLLOW-REQUESTS","BLOCKED-USERS","NOTIFICATIONS","MODERATION"]);return(r,u)=>{const l=j("router-view");return f(),v("div",$Je,[w(UO,{user:T(n)},null,8,["user"]),p("div",UJe,[w(kO,{tabs:i.value,selectedTab:T(a),edition:!1},null,8,["tabs","selectedTab"]),w(l,{user:T(n)},null,8,["user"])])])}}}),wJe=ae(kJe,[["__scopeId","data-v-eb19dd23"]]),MJe={id:"user-moderation-detail"},WJe={id:"user-reports",class:"description-list"},FJe={key:0,id:"user-sanctions"},zJe={key:0},xJe={class:"last-sanctions"},BJe=X({__name:"UserAdminReports",props:{authUser:{},user:{}},setup(e){const t=e,{authUser:n,user:a}=_e(t),s=rt(),o=De();let i=yt(d(s.query));const r=F(()=>o.getters[ue.GETTERS.USER_SANCTIONS]),u=F(()=>o.getters[ue.GETTERS.USER_SANCTIONS_LOADING]),l=F(()=>o.getters[ue.GETTERS.USER_SANCTIONS_PAGINATION]);function d(m){const _={};return m.page&&(_.page=bo(m.page,cr)),_}function E(m){if(m.updated_at)switch(m.approved){case!0:return"APPROVED";case!1:return"REJECTED";default:return"IN_PROGRESS"}return"IN_PROGRESS"}function c(m){o.dispatch(ue.ACTIONS.GET_USER_SANCTIONS,{username:a.value.username,...m})}return Ce(()=>s.query,async m=>{i=d(m),c(i)}),Je(()=>c({})),ct(()=>o.commit(ue.MUTATIONS.UPDATE_USER_SANCTIONS,[])),(m,_)=>{const h=j("router-link");return f(),v("div",MJe,[p("div",WJe,[p("dl",null,[p("dt",null,S(m.$t("user.PROFILE.CREATED_REPORTS"))+":",1),p("dd",null,S(T(a).created_reports_count),1),p("dt",null,S(m.$t("user.PROFILE.REPORTS_FROM_OTHER_USERS"))+":",1),p("dd",null,S(T(a).reported_count),1)])]),T(a).sanctions_count?(f(),v("div",FJe,[p("strong",null,S(m.$t("user.PROFILE.LATEST_SANCTIONS_RECEIVED"))+":",1),p("div",null,S(m.$t("user.PROFILE.USER_RECEIVED_SANCTIONS",{count:T(a).sanctions_count})),1),u.value?(f(),v("div",zJe,[w(Ml)])):(f(),v(re,{key:1},[p("ul",xJe,[(f(!0),v(re,null,be(r.value,O=>(f(),v("li",{key:O.id},[p("div",null,[x(S(m.$t(`user.PROFILE.SANCTIONS.${O.action_type}`,{date:T(Ut)(O.created_at,T(n).timezone,T(n).date_format)}))+" ",1),O.appeal?(f(),v("span",{key:0,class:Oe(["info-box appeal",{approved:E(O.appeal)==="APPROVED",rejected:E(O.appeal)==="REJECTED"}])},[p("i",{class:Oe(["fa",{"fa-info-circle":E(O.appeal)!=="REJECTED","fa-times":E(O.appeal)==="REJECTED"}]),"aria-hidden":"true"},null,2),x(" "+S(m.$t(`user.APPEAL_${E(O.appeal)}`)),1)],2)):L("",!0)]),w(h,{to:`/admin/reports/${O.report_id}`},{default:Y(()=>[x(S(m.$t("admin.APP_MODERATION.VIEW_REPORT"))+" #"+S(O.report_id),1)]),_:2},1032,["to"])]))),128))]),w(Qn,{pagination:l.value,path:`/admin/users/${T(a).username}`,query:T(i)},null,8,["pagination","path","query"])],64))])):L("",!0)])}}}),GJe=ae(BJe,[["__scopeId","data-v-bfe7e915"]]),VJe={id:"user-infos",class:"description-list"},HJe={key:1,class:"info-box success-message"},KJe={key:4,class:"email-form form-box"},qJe={class:"form-items",for:"email"},jJe={class:"form-items",for:"email"},YJe={class:"form-buttons"},XJe={class:"confirm",type:"submit"},QJe={key:5},ZJe={key:0},JJe={key:1},eet={key:2},tet={key:3},net={key:4},aet={key:5},set={key:6},oet={key:7},iet={key:8},ret={key:9},uet={key:10},cet={key:11,class:"user-bio"},det={key:0,class:"report-submitted"},Eet={class:"info-box"},pet={key:0},met={key:0,class:"profile-buttons"},Tet={key:1,class:"profile-buttons"},_et=X({__name:"UserInfos",props:{user:{},authUser:{},fromAdmin:{type:Boolean,default:!1}},setup(e){const t=e,{authUser:n,user:a,fromAdmin:s}=_e(t),o=De(),{appConfig:i,appLanguage:r,displayOptions:u,errorMessages:l}=Ke(),{authUserHasModeratorRights:d,authUserHasAdminRights:E,isAuthenticated:c}=qe(),m=Ie(""),_=Ie(!1),h=Ie(!1),O=Ie(""),A=Ie(""),R=F(()=>o.getters[ue.GETTERS.USER_CURRENT_REPORTING]),g=F(()=>o.getters[Le.GETTERS.REPORT_STATUS]),I=F(()=>a.value.created_at?Ut(a.value.created_at,u.value.timezone,u.value.dateFormat):""),N=F(()=>a.value.birth_date?On(new Date(a.value.birth_date),`${fs(u.value.dateFormat,r.value)}`,{locale:zs[r.value]}):""),b=F(()=>o.getters[ue.GETTERS.USERS_IS_SUCCESS]);function C(Ee){m.value=Ee,Ee!==""&&o.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!1)}function y(Ee){o.dispatch(ue.ACTIONS.DELETE_USER_ACCOUNT,{username:Ee})}function D(Ee){A.value="password-reset",o.dispatch(ue.ACTIONS.UPDATE_USER,{username:Ee,resetPassword:!0})}function M(Ee){o.dispatch(ue.ACTIONS.UPDATE_USER,{username:Ee,activate:!0})}function P(){Se(),O.value=a.value.email_to_confirm?a.value.email_to_confirm:"",h.value=!0,A.value="email-update"}function W(){O.value="",h.value=!1}function Q(Ee){o.dispatch(ue.ACTIONS.UPDATE_USER,{username:Ee,new_email:O.value})}function Se(){o.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),o.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!1),o.commit(ue.MUTATIONS.UPDATE_USER_CURRENT_REPORTING,!1),o.commit(Le.MUTATIONS.SET_REPORT_STATUS,null),A.value=""}function J(){o.commit(ue.MUTATIONS.UPDATE_USER_CURRENT_REPORTING,!0)}return Ce(()=>b.value,Ee=>{Ee&&(C(""),W())}),ct(()=>Se()),(Ee,fe)=>{var Ve,_t,we,se,ke,pt,me;const Pe=j("Modal"),He=j("AlertMessage"),et=j("ErrorMessage");return f(),v("div",VJe,[m.value?(f(),B(Pe,{key:0,title:Ee.$t("common.CONFIRMATION"),message:m.value==="delete"?"admin.CONFIRM_USER_ACCOUNT_DELETION":"admin.CONFIRM_USER_PASSWORD_RESET",strongMessage:T(a).username,onConfirmAction:fe[0]||(fe[0]=Z=>m.value==="delete"?y(T(a).username):D(T(a).username)),onCancelAction:fe[1]||(fe[1]=Z=>C("")),onKeydown:fe[2]||(fe[2]=Ye(Z=>C(""),["esc"]))},null,8,["title","message","strongMessage"])):L("",!0),b.value?(f(),v("div",HJe,S(Ee.$t(`admin.${A.value==="password-reset"?"PASSWORD_RESET":"USER_EMAIL_UPDATE"}_SUCCESSFUL`)),1)):L("",!0),T(d)&&!T(a).is_active?(f(),B(He,{key:2,message:"user.THIS_USER_ACCOUNT_IS_INACTIVE"})):L("",!0),T(l)&&!R.value?(f(),B(et,{key:3,message:T(l)},null,8,["message"])):L("",!0),h.value?(f(),v("div",KJe,[p("form",{class:Oe({errors:_.value}),onSubmit:fe[5]||(fe[5]=ve(Z=>Q(T(a).username),["prevent"]))},[p("label",qJe,[x(S(Ee.$t("admin.CURRENT_EMAIL"))+" ",1),We(p("input",{id:"email",type:"email","onUpdate:modelValue":fe[3]||(fe[3]=Z=>T(a).email=Z),disabled:""},null,512),[[it,T(a).email]])]),p("label",jJe,[x(S(Ee.$t("admin.NEW_EMAIL"))+"* ",1),We(p("input",{id:"new-email",type:"email",required:"","onUpdate:modelValue":fe[4]||(fe[4]=Z=>O.value=Z)},null,512),[[it,O.value]])]),p("div",YJe,[p("button",XJe,S(Ee.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:ve(W,["prevent"])},S(Ee.$t("buttons.CANCEL")),1)])],34)])):(f(),v("div",QJe,[p("dl",null,[p("dt",null,S(Ee.$t("user.PROFILE.REGISTRATION_DATE"))+":",1),p("dd",null,[p("time",null,S(I.value),1)]),T(c)?(f(),v(re,{key:0},[T(s)?(f(),v("dt",ZJe,S(Ee.$t("user.EMAIL"))+":",1)):L("",!0),T(s)?(f(),v("dd",JJe,S(T(a).email),1)):L("",!0),T(a).first_name?(f(),v("dt",eet,S(Ee.$t("user.PROFILE.FIRST_NAME"))+":",1)):L("",!0),T(a).first_name?(f(),v("dd",tet,S(T(a).first_name),1)):L("",!0),T(a).last_name?(f(),v("dt",net,S(Ee.$t("user.PROFILE.LAST_NAME"))+":",1)):L("",!0),T(a).last_name?(f(),v("dd",aet,S(T(a).last_name),1)):L("",!0),N.value?(f(),v("dt",set,S(Ee.$t("user.PROFILE.BIRTH_DATE"))+":",1)):L("",!0),N.value?(f(),v("dd",oet,[p("time",null,S(N.value),1)])):L("",!0),T(a).location?(f(),v("dt",iet,S(Ee.$t("user.PROFILE.LOCATION"))+":",1)):L("",!0),T(a).location?(f(),v("dd",ret,S(T(a).location),1)):L("",!0),T(a).bio?(f(),v("dt",uet,S(Ee.$t("user.PROFILE.BIO"))+":",1)):L("",!0),T(a).bio?(f(),v("dd",cet,S(T(a).bio),1)):L("",!0)],64)):L("",!0)]),g.value===`user-${T(a).username}-created`?(f(),v("div",det,[p("div",Eet,[p("span",null,[fe[12]||(fe[12]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(Ee.$t("common.REPORT_SUBMITTED")),1)])])])):L("",!0),R.value?(f(),B(Fp,{key:1,"object-id":T(a).username,"object-type":"user"},null,8,["object-id"])):(f(),v(re,{key:2},[T(n)&&T(d)&&T(s)?(f(),v("div",pet,[w(GJe,{authUser:T(n),user:T(a)},null,8,["authUser","user"])])):L("",!0),T(c)?(f(),v(re,{key:1},[T(s)?(f(),v("div",met,[T(a).role!=="owner"&&T(E)?(f(),v(re,{key:0},[((Ve=T(n))==null?void 0:Ve.username)!==T(a).username?(f(),v("button",{key:0,class:"danger",onClick:fe[6]||(fe[6]=ve(Z=>C("delete"),["prevent"]))},S(Ee.$t("admin.DELETE_USER")),1)):L("",!0),T(a).is_active?L("",!0):(f(),v("button",{key:1,onClick:fe[7]||(fe[7]=ve(Z=>M(T(a).username),["prevent"]))},S(Ee.$t("admin.ACTIVATE_USER_ACCOUNT")),1)),((_t=T(n))==null?void 0:_t.username)!==T(a).username?(f(),v("button",{key:2,onClick:ve(P,["prevent"])},S(Ee.$t("admin.UPDATE_USER_EMAIL")),1)):L("",!0),((we=T(n))==null?void 0:we.username)!==T(a).username&&T(i).is_email_sending_enabled?(f(),v("button",{key:3,onClick:fe[8]||(fe[8]=ve(Z=>C("reset"),["prevent"]))},S(Ee.$t("admin.RESET_USER_PASSWORD")),1)):L("",!0),(se=T(n))!=null&&se.username?(f(),B(Ju,{key:4,authUser:T(n),user:T(a),from:"userInfos"},null,8,["authUser","user"])):L("",!0)],64)):L("",!0),p("button",{onClick:fe[9]||(fe[9]=Z=>Ee.$router.go(-1))},S(Ee.$t("buttons.BACK")),1)])):(f(),v("div",Tet,[Ee.$route.path==="/profile"||T(a).username===((ke=T(n))==null?void 0:ke.username)?(f(),v("button",{key:0,onClick:fe[10]||(fe[10]=Z=>Ee.$router.push("/profile/edit"))},S(Ee.$t("user.PROFILE.EDIT")),1)):L("",!0),(pt=T(n))!=null&&pt.username?(f(),B(Ju,{key:1,authUser:T(n),user:T(a),from:"userInfos"},null,8,["authUser","user"])):L("",!0),Ee.$route.name==="User"&&T(a).username!==((me=T(n))==null?void 0:me.username)&&T(a).suspended_at===null&&g.value!==`user-${T(a).username}-created`?(f(),v("button",{key:2,onClick:J},S(Ee.$t("user.REPORT")),1)):L("",!0),p("button",{onClick:fe[11]||(fe[11]=Z=>Ee.$router.go(-1))},S(Ee.$t("buttons.BACK")),1)]))],64)):L("",!0)],64))]))])}}}),wO=ae(_et,[["__scopeId","data-v-7c182b65"]]),MO=e=>{const t=["follow","follow_request","follow_request_approved","workout_like","workout_comment","comment_like","mention"];return(e==="admin"||e==="owner")&&t.push("account_creation"),t},fet={id:"user-notifications",class:"description-list"},het={class:"profile-buttons"},Aet=X({__name:"UserNotifications",props:{user:{}},setup(e){const t=e,{user:n}=_e(t),a=F(()=>MO(n.value.role));return(s,o)=>(f(),v(re,null,[p("h1",null,S(s.$t("user.PROFILE.NOTIFICATION_PREFERENCES")),1),p("div",fet,[p("dl",null,[(f(!0),v(re,null,be(a.value,i=>(f(),v(re,{key:i},[p("dt",null,S(Fe(s.$t(`user.PROFILE.NOTIFICATIONS.${i}`)))+":",1),p("dd",null,S(i in T(n).notification_preferences?s.$t(`common.${T(n).notification_preferences[i]?"EN":"DIS"}ABLED`):s.$t("common.ENABLED")),1)],64))),128))]),p("div",het,[p("button",{onClick:o[0]||(o[0]=i=>s.$router.push("/profile/edit/notifications"))},S(s.$t("user.PROFILE.EDIT_NOTIFICATION_PREFERENCES")),1),p("button",{onClick:o[1]||(o[1]=i=>s.$router.push("/notifications"))},S(Fe(s.$t("notifications.NOTIFICATIONS",0))),1),p("button",{onClick:o[2]||(o[2]=i=>s.$router.push("/"))},S(s.$t("common.HOME")),1)])])],64))}}),Oet=ae(Aet,[["__scopeId","data-v-6e0e6037"]]),Iet={id:"user-preferences",class:"description-list"},get={class:"preferences-section"},Ret={class:"preferences-section"},Net={class:"preferences-section"},vet={class:"info-box raw-speed-help"},bet={class:"profile-buttons"},Cet=X({__name:"UserPreferences",props:{user:{}},setup(e){const t=e,{user:n}=_e(t),{dateFormat:a,timezone:s}=qe(),o=F(()=>n.value.language&&n.value.language in mo?mo[n.value.language]:mo.en),i=F(()=>n.value.weekm?"MONDAY":"SUNDAY"),r=F(()=>n.value.display_ascent?"DISPLAYED":"HIDDEN"),u=F(()=>n.value.use_dark_mode===!0?"DARK":n.value.use_dark_mode===!1?"LIGHT":"DEFAULT");return(l,d)=>(f(),v("div",Iet,[p("div",get,S(l.$t("user.PROFILE.INTERFACE")),1),p("dl",null,[p("dt",null,S(l.$t("user.PROFILE.LANGUAGE"))+":",1),p("dd",null,S(o.value),1),p("dt",null,S(l.$t("user.PROFILE.THEME_MODE.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.THEME_MODE.VALUES.${u.value}`)),1),p("dt",null,S(l.$t("user.PROFILE.TIMEZONE"))+":",1),p("dd",null,S(T(s)),1),p("dt",null,S(l.$t("user.PROFILE.DATE_FORMAT"))+":",1),p("dd",null,S(T(a)),1),p("dt",null,S(l.$t("user.PROFILE.FIRST_DAY_OF_WEEK"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.${i.value}`)),1)]),p("div",Ret,S(l.$t("user.PROFILE.TABS.ACCOUNT")),1),p("dl",null,[p("dt",null,S(l.$t("user.PROFILE.FOLLOW_REQUESTS_APPROVAL.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.FOLLOW_REQUESTS_APPROVAL.${T(n).manually_approves_followers?"MANUALLY":"AUTOMATICALLY"}`)),1),p("dt",null,S(l.$t("user.PROFILE.PROFILE_IN_USERS_DIRECTORY.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.PROFILE_IN_USERS_DIRECTORY.${T(n).hide_profile_in_users_directory?"HIDDEN":"DISPLAYED"}`)),1)]),p("div",Net,S(l.$t("workouts.WORKOUT",0)),1),p("dl",null,[p("dt",null,S(l.$t("user.PROFILE.UNITS.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.UNITS.${T(n).imperial_units?"IMPERIAL":"METRIC"}`)),1),p("dt",null,S(l.$t("user.PROFILE.ASCENT_DATA"))+":",1),p("dd",null,S(l.$t(`common.${r.value}`)),1),p("dt",null,S(l.$t("user.PROFILE.ELEVATION_CHART_START.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.ELEVATION_CHART_START.${T(n).start_elevation_at_zero?"ZERO":"MIN_ALT"}`)),1),p("dt",null,S(l.$t("user.PROFILE.USE_RAW_GPX_SPEED.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.USE_RAW_GPX_SPEED.${T(n).use_raw_gpx_speed?"RAW_SPEED":"FILTERED_SPEED"}`)),1),p("div",vet,[p("span",null,[d[2]||(d[2]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(l.$t("user.PROFILE.USE_RAW_GPX_SPEED.HELP")),1)])])]),p("dl",null,[p("dt",null,S(l.$t("visibility_levels.WORKOUTS_VISIBILITY"))+":",1),p("dd",null,S(l.$t(`visibility_levels.LEVELS.${T(n).workouts_visibility}`)),1),p("dt",null,S(l.$t("visibility_levels.ANALYSIS_VISIBILITY"))+":",1),p("dd",null,S(l.$t(`visibility_levels.LEVELS.${T(n).analysis_visibility}`)),1),p("dt",null,S(l.$t("visibility_levels.MAP_VISIBILITY"))+":",1),p("dd",null,S(l.$t(`visibility_levels.LEVELS.${T(n).map_visibility}`)),1)]),p("div",bet,[p("button",{onClick:d[0]||(d[0]=E=>l.$router.push("/profile/edit/preferences"))},S(l.$t("user.PROFILE.EDIT_PREFERENCES")),1),p("button",{onClick:d[1]||(d[1]=E=>l.$router.push("/"))},S(l.$t("common.HOME")),1)])]))}}),Pet=ae(Cet,[["__scopeId","data-v-545b27a5"]]),Det={class:"users-list"},Let={key:0},yet={class:"user-name"},$et={key:0,class:"blocked-user"},Uet=["onClick"],ket={key:1,class:"follow-requests-list-actions"},wet=["onClick"],Met=["onClick"],Wet={key:1,class:"no-users-list"},Fet={class:"profile-buttons"},zet=X({__name:"UsersList",props:{itemType:{}},setup(e){const t=e,{itemType:n}=_e(t),a=rt(),s=De(),o={page:1},i=F(()=>s.getters[K.GETTERS[n.value==="follow-requests"?"FOLLOW_REQUESTS":"BLOCKED_USERS"]]),r=F(()=>s.getters[ue.GETTERS.USERS_PAGINATION]);function u(c){s.dispatch(K.ACTIONS[n.value==="follow-requests"?"GET_FOLLOW_REQUESTS":"GET_BLOCKED_USERS"],c)}function l(c,m){s.dispatch(K.ACTIONS.UPDATE_FOLLOW_REQUESTS,{username:c,action:m,getFollowRequests:!0})}function d(c,m){const _={username:c,action:"unblock",from:n.value,payload:E(a.query)};s.dispatch(ue.ACTIONS.UPDATE_RELATIONSHIP,_)}function E(c){return o.page=c.page?+c.page:1,o}return Ce(()=>a.query,c=>{a.path==="/profile/follow-requests"&&s.dispatch(K.ACTIONS.GET_FOLLOW_REQUESTS,E(c)),a.path==="/profile/blocked-users"&&s.dispatch(K.ACTIONS.GET_BLOCKED_USERS,E(c))}),Je(()=>u(E(a.query))),ct(()=>{s.commit(K.MUTATIONS[n.value==="follow-requests"?"UPDATE_FOLLOW_REQUESTS":"UPDATE_BLOCKED_USERS"],[])}),(c,m)=>{const _=j("router-link");return f(),v("div",Det,[i.value.length>0?(f(),v("div",Let,[(f(!0),v(re,null,be(i.value,h=>(f(),v("div",{key:h.username,class:"box item"},[w(Qt,{user:h},null,8,["user"]),p("div",yet,[w(_,{to:`/users/${h.username}?from=users`},{default:Y(()=>[x(S(h.username),1)]),_:2},1032,["to"])]),h.blocked?(f(),v("div",$et,[p("button",{onClick:O=>d(h.username)},S(c.$t("buttons.UNBLOCK")),9,Uet)])):(f(),v("div",ket,[p("button",{onClick:O=>l(h.username,"accept")},[m[1]||(m[1]=p("i",{class:"fa fa-check","aria-hidden":"true"},null,-1)),x(" "+S(c.$t("buttons.ACCEPT")),1)],8,wet),p("button",{onClick:O=>l(h.username,"reject"),class:"danger"},[m[2]||(m[2]=p("i",{class:"fa fa-times","aria-hidden":"true"},null,-1)),x(" "+S(c.$t("buttons.REJECT")),1)],8,Met)]))]))),128))])):(f(),v("p",Wet,S(c.$t(T(n)==="follow-requests"?"user.RELATIONSHIPS.NO_FOLLOW_REQUESTS":"user.NO_USERS_FOUND")),1)),r.value.total>0?(f(),B(Qn,{key:2,path:`/profile/${T(n)}`,pagination:r.value,query:{}},null,8,["path","pagination"])):L("",!0),p("div",Fet,[p("button",{onClick:m[0]||(m[0]=h=>c.$router.push("/"))},S(c.$t("common.HOME")),1)])])}}}),Sh=ae(zet,[["__scopeId","data-v-b29d1311"]]),xet={id:"user-profile-edition",class:"center-card"},Bet=X({__name:"index",props:{user:{},tab:{}},setup(e){const t=e,{user:n,tab:a}=_e(t),{isAuthUserSuspended:s}=qe(),o=F(()=>s.value?["PROFILE","ACCOUNT","PICTURE","PREFERENCES","PRIVACY-POLICY"]:["PROFILE","ACCOUNT","PICTURE","PREFERENCES","SPORTS","NOTIFICATIONS","EQUIPMENTS","PRIVACY-POLICY"]);return(i,r)=>{const u=j("router-view"),l=j("Card");return f(),v("div",xet,[w(l,null,{title:Y(()=>[x(S(i.$t(`user.PROFILE.${T(a)}_EDITION`)),1)]),content:Y(()=>[w(kO,{tabs:o.value,selectedTab:T(a),edition:!0},null,8,["tabs","selectedTab"]),w(u,{user:T(n)},null,8,["user"])]),_:1})])}}}),Ni=new Map,Get=e=>{const{method:t,url:n,params:a={},data:s={}}=e;return[t,n,JSON.stringify(a),JSON.stringify(s)].join("")},Po=e=>{const t=Get(e);if(Ni.has(t)){const n=Ni.get(t)||{};n==null||n.abort(),Ni.delete(t)}return t},as=Gt.create({baseURL:nr()});as.interceptors.request.use(e=>{const t=new AbortController;e.signal=t.signal;const n=Po(e);return Ni.set(n,t),e},e=>Promise.reject(e));as.interceptors.response.use(e=>(Po(e.config),e),e=>(e.message!=="canceled"&&e.response&&Po(e.response.config),Promise.reject(e)));const WO=(e,t)=>{e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.delete(`users/${t.username}`).then(n=>{n.status===204?t.fromAdmin?lt.push("/admin/users"):e.dispatch(K.ACTIONS.LOGOUT).then(()=>lt.push("/")):ne(e,null)}).catch(n=>ne(e,n))},Ah=(e,t,n=!1)=>{e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!0),n&&(t.with_inactive="true",t.with_hidden="true",t.with_suspended="true"),Ne.get("users",{params:t}).then(a=>{a.data.status==="success"?(e.commit(ue.MUTATIONS.UPDATE_USERS,a.data.data.users),e.commit(ue.MUTATIONS.UPDATE_USERS_PAGINATION,a.data.pagination)):ne(e,null)}).catch(a=>ne(e,a)).finally(()=>e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!1))},Vet={[ue.ACTIONS.EMPTY_USER](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USER,{})},[ue.ACTIONS.EMPTY_USERS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USERS,[]),e.commit(ue.MUTATIONS.UPDATE_USERS_PAGINATION,{})},[ue.ACTIONS.EMPTY_RELATIONSHIPS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USER_RELATIONSHIPS,[]),e.commit(ue.MUTATIONS.UPDATE_USERS_PAGINATION,{})},[ue.ACTIONS.GET_USER](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!0),Ne.get(`users/${t}`).then(n=>{n.data.status==="success"?e.commit(ue.MUTATIONS.UPDATE_USER,n.data.data.users[0]):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!1))},[ue.ACTIONS.GET_USER_SANCTIONS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USER_SANCTIONS_LOADING,!0);const{username:n,...a}=t;Ne.get(`users/${n}/sanctions`,{params:a}).then(s=>{s.data.status==="success"?(e.commit(ue.MUTATIONS.UPDATE_USER_SANCTIONS,s.data.data.sanctions),e.commit(ue.MUTATIONS.UPDATE_USER_SANCTIONS_PAGINATION,s.data.pagination)):ne(e,null)}).catch(s=>ne(e,s)).finally(()=>e.commit(ue.MUTATIONS.UPDATE_USER_SANCTIONS_LOADING,!1))},[ue.ACTIONS.GET_USER_WORKOUTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USER_WORKOUTS_LOADING,!0),Ne.get(`users/${t}/workouts`).then(n=>{n.data.status==="success"?e.commit(ue.MUTATIONS.UPDATE_USER_WORKOUTS,n.data.data.workouts):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(ue.MUTATIONS.UPDATE_USER_WORKOUTS_LOADING,!1))},[ue.ACTIONS.GET_USERS](e,t){Ah(e,t,!1)},[ue.ACTIONS.GET_USERS_FOR_ADMIN](e,t){Ah(e,t,!0)},[ue.ACTIONS.UPDATE_USER](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!1);const n={};t.role!==void 0&&(n.role=t.role),t.resetPassword&&(n.reset_password=t.resetPassword),"activate"in t&&t.activate!==void 0&&(n.activate=t.activate),t.new_email!==void 0&&(n.new_email=t.new_email),Ne.patch(`users/${t.username}`,n).then(a=>{a.data.status==="success"?(e.commit(ue.MUTATIONS.UPDATE_USER_IN_USERS,a.data.data.users[0]),(t.resetPassword||t.new_email||t.role)&&e.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!0),(t.activate||t.new_email)&&e.commit(ue.MUTATIONS.UPDATE_USER,a.data.data.users[0])):ne(e,null)}).catch(a=>ne(e,a)).finally(()=>e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!1))},[ue.ACTIONS.UPDATE_RELATIONSHIP](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!0),Ne.post(`users/${t.username}/${t.action}`).then(n=>{n.data.status==="success"?Ne.get(`users/${t.username}`).then(a=>{if(a.data.status==="success"){if(t.from==="blocked-users"){e.dispatch(K.ACTIONS.GET_BLOCKED_USERS,t.payload);return}e.commit(t.from==="userInfos"?ue.MUTATIONS.UPDATE_USER:t.from==="userCard"?ue.MUTATIONS.UPDATE_USER_IN_USERS:ue.MUTATIONS.UPDATE_USER_IN_RELATIONSHIPS,a.data.data.users[0]),e.dispatch(K.ACTIONS.GET_USER_PROFILE,{light:!0})}else ne(e,null)}):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!1))},[ue.ACTIONS.GET_RELATIONSHIPS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!0),Ne.get(`users/${t.username}/${t.relationship}`,{params:{page:t.page}}).then(n=>{n.data.status==="success"?(e.commit(ue.MUTATIONS.UPDATE_USER_RELATIONSHIPS,n.data.data[t.relationship]),e.commit(ue.MUTATIONS.UPDATE_USERS_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!1))},[ue.ACTIONS.DELETE_USER_ACCOUNT](e,t){WO(e,{username:t.username,fromAdmin:!0})}},Ur=e=>{localStorage.removeItem("authToken"),e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Mt.MUTATIONS.EMPTY_USER_STATS),e.commit(Mt.MUTATIONS.EMPTY_USER_SPORT_STATS),e.commit(K.MUTATIONS.CLEAR_AUTH_USER_TOKEN),e.commit(K.MUTATIONS.UPDATE_FOLLOW_REQUESTS,[]),e.commit(ue.MUTATIONS.UPDATE_USERS,[]),e.commit(ee.MUTATIONS.EMPTY_WORKOUTS),e.commit(ee.MUTATIONS.EMPTY_WORKOUT),lt.push("/login")},Het={[K.ACTIONS.CHECK_AUTH_USER](e){window.localStorage.authToken&&!e.getters[K.GETTERS.IS_AUTHENTICATED]&&(e.commit(K.MUTATIONS.UPDATE_AUTH_TOKEN,window.localStorage.authToken),e.dispatch(K.ACTIONS.GET_USER_PROFILE,{updateUI:!0})),!window.localStorage.authToken&&e.getters[K.GETTERS.IS_AUTHENTICATED]&&Ur(e)},[K.ACTIONS.CONFIRM_ACCOUNT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),as.post("auth/account/confirm",{token:t.token}).then(n=>{if(n.data.status==="success"){const a=n.data.auth_token;window.localStorage.setItem("authToken",a),e.commit(K.MUTATIONS.UPDATE_AUTH_TOKEN,a),e.dispatch(K.ACTIONS.GET_USER_PROFILE,{}).then(()=>lt.push("/"))}else ne(e,null)}).catch(n=>{ne(e,n)})},[K.ACTIONS.CONFIRM_EMAIL](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!1),as.post("/auth/email/update",{token:t.token}).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!0),t.refreshUser&&e.dispatch(K.ACTIONS.GET_USER_PROFILE,{}).then(()=>lt.push("/profile/edit/account")),lt.push("/profile/edit/account")):ne(e,null)}).catch(n=>{ne(e,n)})},[K.ACTIONS.GET_USER_PROFILE](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("auth/profile").then(n=>{if(n.data.status==="success"){const a=e.getters[K.GETTERS.IS_PROFILE_NOT_LOADED];e.commit(K.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),n.data.data.accepted_privacy_policy||e.dispatch(te.ACTIONS.GET_APPLICATION_PRIVACY_POLICY),e.commit(ue.MUTATIONS.UPDATE_USER_IN_USERS,n.data.data),(a||t.updateUI)&&(n.data.data.language&&e.dispatch(te.ACTIONS.UPDATE_APPLICATION_LANGUAGE,n.data.data.language),e.commit(te.MUTATIONS.UPDATE_DARK_MODE,n.data.data.use_dark_mode)),(!("light"in t)||!t.light)&&(e.commit(te.MUTATIONS.UPDATE_DISPLAY_OPTIONS,n.data.data),e.dispatch(Ht.ACTIONS.GET_SPORTS),e.dispatch(xe.ACTIONS.GET_EQUIPMENTS),e.dispatch(xe.ACTIONS.GET_EQUIPMENT_TYPES)),n.data.data.suspended_at===null?kn.dispatch(Et.ACTIONS.GET_UNREAD_STATUS):!lt.currentRoute.value.path.startsWith("/profile")&&!lt.currentRoute.value.meta.allowedToSuspendedUser&<.push("/profile")}else ne(e,null),Ur(e)}).catch(n=>{n.message!=="canceled"&&(ne(e,n),Ur(e))})},[K.ACTIONS.GET_ACCOUNT_SUSPENSION](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.get("auth/account/suspension").then(t=>{t.data.status==="success"?e.commit(K.MUTATIONS.SET_ACCOUNT_SUSPENSION,t.data.user_suspension):ne(e,null)}).catch(t=>{t.message!=="canceled"&&ne(e,t)}).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.GET_FOLLOW_REQUESTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.get("follow-requests",{params:t}).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_FOLLOW_REQUESTS,n.data.data.follow_requests),e.commit(ue.MUTATIONS.UPDATE_USERS_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>{ne(e,n)}).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.LOGIN_OR_REGISTER](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS,!1),as.post(`/auth/${t.actionType}`,t.formData).then(n=>{if(n.data.status==="success")if(t.actionType==="login"){const a=n.data.auth_token;window.localStorage.setItem("authToken",a),e.commit(K.MUTATIONS.UPDATE_AUTH_TOKEN,a),e.dispatch(K.ACTIONS.GET_USER_PROFILE,{updateUI:!0}).then(()=>lt.push(typeof t.redirectUrl=="string"?t.redirectUrl:"/"))}else lt.push("/login").then(()=>e.commit(K.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS,!0));else ne(e,null)}).catch(n=>ne(e,n))},[K.ACTIONS.LOGOUT](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post("auth/logout").then(t=>{t.data.status==="success"?Ur(e):ne(e,null)}).catch(t=>ne(e,t))},[K.ACTIONS.APPEAL](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!1);const n=t.actionType==="user_suspension"?"auth/account/suspension/appeal":`auth/account/sanctions/${t.actionId}/appeal`;Ne.post(n,{text:t.text}).then(a=>{a.data.status==="success"?e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!0):ne(e,null)}).catch(a=>{a.message!=="canceled"&&ne(e,a)}).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.UPDATE_FOLLOW_REQUESTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post(`follow-requests/${t.username}/${t.action}`).then(n=>{n.data.status==="success"?t.getFollowRequests&&e.dispatch(K.ACTIONS.GET_FOLLOW_REQUESTS).then(()=>e.dispatch(K.ACTIONS.GET_USER_PROFILE,{})):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.UPDATE_USER_PROFILE](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.post("auth/profile/edit",t).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),lt.push("/profile")):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.UPDATE_USER_ACCOUNT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!1),Ne.patch("auth/profile/edit/account",t).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!0)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.UPDATE_USER_PREFERENCES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.post("auth/profile/edit/preferences",t).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),e.commit(te.MUTATIONS.UPDATE_DISPLAY_OPTIONS,n.data.data),e.commit(te.MUTATIONS.UPDATE_DARK_MODE,n.data.data.use_dark_mode),e.dispatch(te.ACTIONS.UPDATE_APPLICATION_LANGUAGE,n.data.data.language).then(()=>lt.push("/profile/preferences"))):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.RESET_USER_SPORT_PREFERENCES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.delete(`auth/profile/reset/sports/${t.sportId}`).then(n=>{n.status===204?(e.dispatch(Ht.ACTIONS.GET_SPORTS),t.fromSport&<.push(`/profile/sports/${t.sportId}`)):ne(e,null)}).catch(n=>{ne(e,n),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1)})},[K.ACTIONS.UPDATE_USER_SPORT_PREFERENCES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0);const{fromSport:n,...a}=t;Ne.post("auth/profile/edit/sports",a).then(s=>{s.data.status==="success"?(e.dispatch(Ht.ACTIONS.GET_SPORTS),n&<.push(`/profile/sports/${a.sport_id}`)):ne(e,null)}).catch(s=>{ne(e,s),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1)})},[K.ACTIONS.UPDATE_USER_PICTURE](e,t){if(e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),!t.picture)throw new Error("No file part");const n=new FormData;n.append("file",t.picture),Ne.post("auth/picture",n,{headers:{"content-type":"multipart/form-data"}}).then(a=>{a.data.status==="success"?e.dispatch(K.ACTIONS.GET_USER_PROFILE,{}).then(()=>lt.push("/profile")):ne(e,null)}).catch(a=>ne(e,a)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.DELETE_ACCOUNT](e,t){WO(e,t)},[K.ACTIONS.DELETE_PICTURE](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.delete("auth/picture").then(t=>{t.status===204?e.dispatch(K.ACTIONS.GET_USER_PROFILE,{}).then(()=>lt.push("/profile")):ne(e,null)}).catch(t=>ne(e,t)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.SEND_PASSWORD_RESET_REQUEST](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),as.post("auth/password/reset-request",t).then(n=>{n.data.status==="success"?lt.push("/password-reset/sent"):ne(e,null)}).catch(n=>ne(e,n))},[K.ACTIONS.RESEND_ACCOUNT_CONFIRMATION_EMAIL](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),as.post("auth/account/resend-confirmation",t).then(n=>{n.data.status==="success"?lt.push("/account-confirmation/email-sent"):ne(e,null)}).catch(n=>ne(e,n))},[K.ACTIONS.RESET_USER_PASSWORD](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),as.post("auth/password/update",t).then(n=>{n.data.status==="success"?lt.push("/password-reset/password-updated"):ne(e,null)}).catch(n=>ne(e,n))},[K.ACTIONS.ACCEPT_PRIVACY_POLICY](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post("auth/account/privacy-policy",{accepted_policy:t}).then(n=>{n.data.status==="success"?e.dispatch(K.ACTIONS.GET_USER_PROFILE,{}).then(()=>lt.push("/profile")):ne(e,null)}).catch(n=>ne(e,n))},[K.ACTIONS.REQUEST_DATA_EXPORT](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post("auth/account/export/request").then(t=>{t.data.status==="success"?e.commit(K.MUTATIONS.SET_EXPORT_REQUEST,t.data.request):ne(e,null)}).catch(t=>ne(e,t))},[K.ACTIONS.GET_REQUEST_DATA_EXPORT](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("auth/account/export").then(t=>{t.data.status==="success"?e.commit(K.MUTATIONS.SET_EXPORT_REQUEST,t.data.request):ne(e,null)}).catch(t=>ne(e,t))},[K.ACTIONS.GET_BLOCKED_USERS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.get("auth/blocked-users",{params:t}).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_BLOCKED_USERS,n.data.blocked_users),e.commit(ue.MUTATIONS.UPDATE_USERS_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>{ne(e,n)}).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.GET_USER_SANCTION](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.get(`auth/account/sanctions/${t}`).then(n=>{n.data.status==="success"?e.commit(K.MUTATIONS.SET_USER_SANCTION,n.data.sanction):ne(e,null)}).catch(n=>{n.message!=="canceled"&&ne(e,n)}).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.UPDATE_USER_NOTIFICATIONS_PREFERENCES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.post("auth/profile/edit/notifications",t).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),lt.push("/profile/notifications")):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))}},Ket={[K.GETTERS.AUTH_TOKEN]:e=>e.authToken,[K.GETTERS.AUTH_USER_PROFILE]:e=>e.authUserProfile,[K.GETTERS.BLOCKED_USERS]:e=>e.blockedUsers,[K.GETTERS.FOLLOW_REQUESTS]:e=>e.followRequests,[K.GETTERS.EXPORT_REQUEST]:e=>e.exportRequest,[K.GETTERS.IS_AUTHENTICATED]:e=>e.authToken!==null,[K.GETTERS.HAS_ADMIN_RIGHTS]:e=>e.authUserProfile&&["admin","owner"].includes(e.authUserProfile.role),[K.GETTERS.HAS_MODERATOR_RIGHTS]:e=>e.authUserProfile&&["admin","moderator","owner"].includes(e.authUserProfile.role),[K.GETTERS.HAS_OWNER_RIGHTS]:e=>e.authUserProfile&&e.authUserProfile.role==="owner",[K.GETTERS.IS_REGISTRATION_SUCCESS]:e=>e.isRegistrationSuccess,[K.GETTERS.IS_SUCCESS]:e=>e.isSuccess,[K.GETTERS.IS_SUSPENDED]:e=>e.authUserProfile&&e.authUserProfile.suspended_at!==null,[K.GETTERS.IS_PROFILE_LOADED]:e=>{var t;return((t=e.authUserProfile)==null?void 0:t.username)!==void 0},[K.GETTERS.USER_LOADING]:e=>e.loading,[K.GETTERS.IS_PROFILE_NOT_LOADED]:e=>e.authUserProfile.username===void 0,[K.GETTERS.ACCOUNT_SUSPENSION]:e=>e.userReportAction,[K.GETTERS.USER_SANCTION]:e=>e.userReportAction},qet={[K.MUTATIONS.CLEAR_AUTH_USER_TOKEN](e){e.authToken=null,e.authUserProfile={}},[K.MUTATIONS.UPDATE_AUTH_TOKEN](e,t){e.authToken=t},[K.MUTATIONS.UPDATE_AUTH_USER_PROFILE](e,t){e.authUserProfile=t},[K.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS](e,t){e.isRegistrationSuccess=t},[K.MUTATIONS.UPDATE_IS_SUCCESS](e,t){e.isSuccess=t},[K.MUTATIONS.UPDATE_FOLLOW_REQUESTS](e,t){e.followRequests=t},[K.MUTATIONS.UPDATE_USER_LOADING](e,t){e.loading=t},[K.MUTATIONS.SET_EXPORT_REQUEST](e,t){e.exportRequest=t},[K.MUTATIONS.UPDATE_BLOCKED_USERS](e,t){e.blockedUsers=t},[K.MUTATIONS.SET_ACCOUNT_SUSPENSION](e,t){e.userReportAction=t},[K.MUTATIONS.SET_USER_SANCTION](e,t){e.userReportAction=t}},jet={authToken:null,authUserProfile:{},isSuccess:!1,isRegistrationSuccess:!1,loading:!1,exportRequest:null,followRequests:[],blockedUsers:[],userReportAction:{}},Yet={state:jet,actions:Het,getters:Ket,mutations:qet},Xet={[xe.ACTIONS.ADD_EQUIPMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post("equipments",{description:t.description,equipment_type_id:t.equipmentTypeId,label:t.label,default_for_sport_ids:t.defaultForSportIds}).then(n=>{if(n.data.status==="created"){if(n.data.data.equipments.length>0){const a=n.data.data.equipments[0];e.commit(xe.MUTATIONS.ADD_EQUIPMENT,a),lt.push(`/profile/equipments/${a.id}`)}e.dispatch(Ht.ACTIONS.GET_SPORTS),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1)}else ne(e,null)}).catch(n=>ne(e,n))},[xe.ACTIONS.DELETE_EQUIPMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.delete(`equipments/${t.id}${t.force?"?force":""}`).then(()=>{e.commit(xe.MUTATIONS.REMOVE_EQUIPMENT,t.id),e.dispatch(Ht.ACTIONS.GET_SPORTS),lt.push("/profile/equipments")}).catch(n=>ne(e,n))},[xe.ACTIONS.GET_EQUIPMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`equipments/${t}`).then(n=>{n.data.status==="success"?n.data.data.equipments.length>0&&e.commit(xe.MUTATIONS.UPDATE_EQUIPMENT,n.data.data.equipments[0]):ne(e,null)}).catch(n=>ne(e,n))},[xe.ACTIONS.GET_EQUIPMENTS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("equipments").then(t=>{t.data.status==="success"?e.commit(xe.MUTATIONS.SET_EQUIPMENTS,t.data.data.equipments):ne(e,null)}).catch(t=>ne(e,t))},[xe.ACTIONS.GET_EQUIPMENT_TYPES](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("equipment-types").then(t=>{t.data.status==="success"?(e.commit(xe.MUTATIONS.SET_EQUIPMENT_TYPES,t.data.data.equipment_types),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1)):ne(e,null)}).catch(t=>ne(e,t))},[xe.ACTIONS.REFRESH_EQUIPMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(xe.MUTATIONS.SET_LOADING,!0),Ne.post(`equipments/${t}/refresh`).then(n=>{n.data.status==="success"?n.data.data.equipments.length>0&&(e.commit(xe.MUTATIONS.UPDATE_EQUIPMENT,n.data.data.equipments[0]),lt.push(`/profile/equipments/${t}`)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(xe.MUTATIONS.SET_LOADING,!1))},[xe.ACTIONS.UPDATE_EQUIPMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(xe.MUTATIONS.SET_LOADING,!0),Ne.patch(`equipments/${t.id}`,{description:t.description,equipment_type_id:t.equipmentTypeId,is_active:t.isActive,label:t.label,default_for_sport_ids:t.defaultForSportIds}).then(n=>{n.data.status==="success"?n.data.data.equipments.length>0&&(e.commit(xe.MUTATIONS.UPDATE_EQUIPMENT,n.data.data.equipments[0]),e.dispatch(Ht.ACTIONS.GET_SPORTS),lt.push(`/profile/equipments/${t.id}`)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(xe.MUTATIONS.SET_LOADING,!1))},[xe.ACTIONS.UPDATE_EQUIPMENT_TYPE](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(xe.MUTATIONS.SET_LOADING,!0),Ne.patch(`equipment-types/${t.id}`,{is_active:t.isActive}).then(n=>{n.data.status==="success"?e.dispatch(xe.ACTIONS.GET_EQUIPMENT_TYPES):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(xe.MUTATIONS.SET_LOADING,!1))}},Qet={[xe.GETTERS.EQUIPMENTS]:e=>e.equipments,[xe.GETTERS.EQUIPMENT_TYPES]:e=>e.equipmentTypes,[xe.GETTERS.LOADING]:e=>e.loading},Zet={[xe.MUTATIONS.ADD_EQUIPMENT](e,t){e.equipments.push(t)},[xe.MUTATIONS.REMOVE_EQUIPMENT](e,t){e.equipments=e.equipments.filter(n=>n.id!=t)},[xe.MUTATIONS.SET_EQUIPMENTS](e,t){e.equipments=t},[xe.MUTATIONS.SET_EQUIPMENT_TYPES](e,t){e.equipmentTypes=t},[xe.MUTATIONS.SET_LOADING](e,t){e.loading=t},[xe.MUTATIONS.UPDATE_EQUIPMENT](e,t){const n=e.equipments.findIndex(a=>a.id===t.id);n!==-1&&(e.equipments[n]=t)}},Jet={equipments:[],equipmentTypes:[],loading:!1},ett={state:Jet,actions:Xet,getters:Qet,mutations:Zet},ttt={[Et.ACTIONS.GET_UNREAD_STATUS](e){Ne.get("notifications/unread").then(t=>{t.data.status==="success"&&e.commit(Et.MUTATIONS.UPDATE_UNREAD_STATUS,t.data.unread)}).catch(t=>ne(e,t))},[Et.ACTIONS.GET_NOTIFICATION_TYPES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("notifications/types",{params:t}).then(n=>{n.data.status==="success"?e.commit(Et.MUTATIONS.UPDATE_TYPES,n.data.notification_types):ne(e,null)}).catch(n=>{n.message!=="canceled"&&ne(e,n)})},[Et.ACTIONS.GET_NOTIFICATIONS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("notifications",{params:t}).then(n=>{n.data.status==="success"?(e.commit(Et.MUTATIONS.UPDATE_NOTIFICATIONS,n.data.notifications),e.commit(Et.MUTATIONS.UPDATE_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>{n.message!=="canceled"&&ne(e,n)})},[Et.ACTIONS.MARK_ALL_AS_READ](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES);const n={};t.type&&(n.type=t.type),Ne.post("notifications/mark-all-as-read",n).then(a=>{a.data.status==="success"?(e.dispatch(Et.ACTIONS.GET_NOTIFICATIONS,t),e.dispatch(Et.ACTIONS.GET_UNREAD_STATUS)):ne(e,null)}).catch(a=>{a.message!=="canceled"&&ne(e,a)})},[Et.ACTIONS.UPDATE_STATUS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.patch(`notifications/${t.notificationId}`,{read_status:t.markedAsRead}).then(n=>{n.data.status==="success"?(e.dispatch(Et.ACTIONS.GET_NOTIFICATIONS,t.currentQuery),e.dispatch(Et.ACTIONS.GET_UNREAD_STATUS)):ne(e,null)}).catch(n=>{n.message!=="canceled"&&ne(e,n)})}},ntt={[Et.GETTERS.NOTIFICATIONS]:e=>e.notifications,[Et.GETTERS.PAGINATION]:e=>e.pagination,[Et.GETTERS.TYPES]:e=>e.types,[Et.GETTERS.UNREAD_STATUS]:e=>e.unread},att={[Et.MUTATIONS.UPDATE_NOTIFICATIONS](e,t){e.notifications=t},[Et.MUTATIONS.UPDATE_PAGINATION](e,t){e.pagination=t},[Et.MUTATIONS.UPDATE_TYPES](e,t){e.types=t},[Et.MUTATIONS.UPDATE_UNREAD_STATUS](e,t){e.unread=t},[Et.MUTATIONS.EMPTY_NOTIFICATIONS](e){e.notifications=[],e.pagination={}}},stt={notifications:[],unread:!1,pagination:{},types:[]},ott={state:stt,actions:ttt,getters:ntt,mutations:att},Oh=(e,t)=>{e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(t).then(n=>{n.data.status==="success"?e.commit(st.MUTATIONS.SET_CLIENT,n.data.data.client):ne(e,null)}).catch(n=>ne(e,n))},itt={[st.ACTIONS.AUTHORIZE_CLIENT](e,t){e.commit(te.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),Ne.post("oauth/authorize",n,{headers:{"Content-Type":"multipart/form-data"}}).then(a=>{a.status==200&&a.data.redirect_url?window.location.href=a.data.redirect_url:ne(e,null)}).catch(a=>ne(e,a))},[st.ACTIONS.CREATE_CLIENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post("oauth/apps",t).then(n=>{n.data.status==="created"?(e.commit(st.MUTATIONS.SET_CLIENT,n.data.data.client),lt.push(`/profile/apps/${n.data.data.client.id}/created`)):ne(e,null)}).catch(n=>ne(e,n))},[st.ACTIONS.DELETE_CLIENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.delete(`oauth/apps/${t}`).then(n=>{n.status===204?e.dispatch(st.ACTIONS.GET_CLIENTS).then(()=>lt.push("/profile/apps")):ne(e,null)}).catch(n=>ne(e,n))},[st.ACTIONS.GET_CLIENT_BY_CLIENT_ID](e,t){Oh(e,`oauth/apps/${t}`)},[st.ACTIONS.GET_CLIENT_BY_ID](e,t){Oh(e,`oauth/apps/${t}/by_id`)},[st.ACTIONS.GET_CLIENTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("oauth/apps",{params:t}).then(n=>{n.data.status==="success"?(e.commit(st.MUTATIONS.SET_CLIENTS,n.data.data.clients),e.commit(st.MUTATIONS.SET_CLIENTS_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>ne(e,n))},[st.ACTIONS.REVOKE_ALL_TOKENS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(st.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!1),Ne.post(`oauth/apps/${t}/revoke`).then(n=>{n.data.status==="success"?e.commit(st.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!0):ne(e,null)}).catch(n=>ne(e,n))}},rtt={[st.GETTERS.CLIENT]:e=>e.client,[st.GETTERS.CLIENTS]:e=>e.clients,[st.GETTERS.CLIENTS_PAGINATION]:e=>e.pagination,[st.GETTERS.REVOCATION_SUCCESSFUL]:e=>e.revocationSuccessful},utt={[st.MUTATIONS.SET_CLIENT](e,t){e.client=t},[st.MUTATIONS.EMPTY_CLIENT](e){e.client={}},[st.MUTATIONS.SET_CLIENTS](e,t){e.clients=t},[st.MUTATIONS.SET_CLIENTS_PAGINATION](e,t){e.pagination=t},[st.MUTATIONS.SET_REVOCATION_SUCCESSFUL](e,t){e.revocationSuccessful=t}},ltt={client:{},clients:[],pagination:{},revocationSuccessful:!1},ctt={state:ltt,actions:itt,getters:rtt,mutations:utt},dtt={[Le.ACTIONS.EMPTY_REPORTS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Le.MUTATIONS.EMPTY_REPORT),e.commit(Le.MUTATIONS.SET_REPORTS,[]),e.commit(Le.MUTATIONS.SET_REPORTS_PAGINATION,{})},[Le.ACTIONS.GET_REPORT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Le.MUTATIONS[`SET_${t.loader}_LOADING`],!0),Ne.get(`reports/${t.reportId}`).then(n=>{n.data.status==="success"?e.commit(Le.MUTATIONS.SET_REPORT,n.data.report):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(Le.MUTATIONS[`SET_${t.loader}_LOADING`],!1))},[Le.ACTIONS.GET_REPORTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("reports",{params:t}).then(n=>{n.data.status==="success"?(e.commit(Le.MUTATIONS.SET_REPORTS,n.data.reports),e.commit(Le.MUTATIONS.SET_REPORTS_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>ne(e,n))},[Le.ACTIONS.PROCESS_APPEAL](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES);const{appealId:n,reportId:a,...s}=t;Ne.patch(`appeals/${n}`,s).then(o=>{o.data.status==="success"?e.dispatch(Le.ACTIONS.GET_REPORT,{reportId:a,loader:"REPORT_UPDATE"}):ne(e,null)}).catch(o=>{ne(e,o)})},[Le.ACTIONS.SUBMIT_ADMIN_ACTION](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!1),e.commit(Le.MUTATIONS.SET_REPORT_UPDATE_LOADING,!0);const{report_id:n,...a}=t;Ne.post(`reports/${n}/actions`,a).then(s=>{s.data.status==="success"?(e.commit(Le.MUTATIONS.SET_REPORT,s.data.report),e.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!0)):ne(e,null)}).catch(s=>{ne(e,s)}).finally(()=>e.commit(Le.MUTATIONS.SET_REPORT_UPDATE_LOADING,!1))},[Le.ACTIONS.SUBMIT_REPORT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Le.MUTATIONS.SET_REPORT_STATUS,"loading"),Ne.post("reports",t).then(n=>{n.data.status==="created"?(e.commit(Le.MUTATIONS.SET_REPORT_STATUS,`${t.object_type}-${t.object_id}-created`),t.object_type==="comment"&&e.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{}),t.object_type==="workout"&&e.commit(ee.MUTATIONS.SET_CURRENT_REPORTING,!1),t.object_type==="user"&&e.commit(ue.MUTATIONS.UPDATE_USER_CURRENT_REPORTING,!1)):(e.commit(Le.MUTATIONS.SET_REPORT_STATUS,null),ne(e,null))}).catch(n=>{ne(e,n),e.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)})},[Le.ACTIONS.UPDATE_REPORT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Le.MUTATIONS.SET_REPORT_UPDATE_LOADING,!0);const{reportId:n,...a}=t;Ne.patch(`reports/${n}`,a).then(s=>{s.data.status==="success"?e.commit(Le.MUTATIONS.SET_REPORT,s.data.report):(e.commit(Le.MUTATIONS.SET_REPORT_STATUS,null),ne(e,null))}).catch(s=>{ne(e,s),e.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)}).finally(()=>e.commit(Le.MUTATIONS.SET_REPORT_UPDATE_LOADING,!1))},[Le.ACTIONS.GET_UNRESOLVED_REPORTS_STATUS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("reports/unresolved").then(t=>{t.data.status==="success"?e.commit(Le.MUTATIONS.SET_UNRESOLVED_REPORTS_STATUS,t.data.unresolved):ne(e,null)}).catch(t=>ne(e,t))}},Ett={[Le.GETTERS.UNRESOLVED_REPORTS_STATUS]:e=>e.unresolved,[Le.GETTERS.REPORT]:e=>e.report,[Le.GETTERS.REPORT_LOADING]:e=>e.reportLoading,[Le.GETTERS.REPORT_STATUS]:e=>e.reportStatus,[Le.GETTERS.REPORT_UPDATE_LOADING]:e=>e.reportUpdateLoading,[Le.GETTERS.REPORTS]:e=>e.reports,[Le.GETTERS.REPORTS_PAGINATION]:e=>e.pagination},ptt={[Le.MUTATIONS.EMPTY_REPORT](e){e.report={}},[Le.MUTATIONS.SET_REPORT](e,t){e.report=t},[Le.MUTATIONS.SET_REPORT_LOADING](e,t){e.reportLoading=t},[Le.MUTATIONS.SET_REPORT_STATUS](e,t){e.reportStatus=t},[Le.MUTATIONS.SET_REPORT_UPDATE_LOADING](e,t){e.reportUpdateLoading=t},[Le.MUTATIONS.SET_REPORTS](e,t){e.reports=t},[Le.MUTATIONS.SET_REPORTS_PAGINATION](e,t){e.pagination=t},[Le.MUTATIONS.SET_UNRESOLVED_REPORTS_STATUS](e,t){e.unresolved=t}},mtt={unresolved:!1,report:{},reports:[],pagination:{},reportStatus:null,reportLoading:!1,reportUpdateLoading:!1},Ttt={state:mtt,actions:dtt,getters:Ett,mutations:ptt},{locale:_tt}=ko.global,ftt={[te.ACTIONS.GET_APPLICATION_CONFIG](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(te.MUTATIONS.UPDATE_APPLICATION_LOADING,!0),Ne.get("config").then(t=>{t.data.status==="success"?e.commit(te.MUTATIONS.UPDATE_APPLICATION_CONFIG,t.data.data):ne(e,null)}).catch(t=>ne(e,t)).finally(()=>e.commit(te.MUTATIONS.UPDATE_APPLICATION_LOADING,!1))},[te.ACTIONS.GET_APPLICATION_STATS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("stats/all").then(t=>{t.data.status==="success"?e.commit(te.MUTATIONS.UPDATE_APPLICATION_STATS,t.data.data):ne(e,null)}).catch(t=>ne(e,t))},[te.ACTIONS.GET_APPLICATION_PRIVACY_POLICY](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("config").then(t=>{t.data.status==="success"?e.commit(te.MUTATIONS.UPDATE_APPLICATION_PRIVACY_POLICY,t.data.data):ne(e,null)}).catch(t=>ne(e,t))},[te.ACTIONS.UPDATE_APPLICATION_CONFIG](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.patch("config",t).then(n=>{n.data.status==="success"?(e.commit(te.MUTATIONS.UPDATE_APPLICATION_CONFIG,n.data.data),lt.push("/admin/application")):ne(e,null)}).catch(n=>ne(e,n))},[te.ACTIONS.UPDATE_APPLICATION_LANGUAGE](e,t){var n;(n=document.querySelector("html"))==null||n.setAttribute("lang",t),e.commit(te.MUTATIONS.UPDATE_LANG,t),_tt.value=t}},htt={[te.GETTERS.APP_CONFIG]:e=>e.application.config,[te.GETTERS.APP_LOADING]:e=>e.appLoading,[te.GETTERS.APP_STATS]:e=>e.application.statistics,[te.GETTERS.DARK_MODE]:e=>e.darkMode,[te.GETTERS.ERROR_MESSAGES]:e=>e.errorMessages,[te.GETTERS.LANGUAGE]:e=>e.language,[te.GETTERS.LOCALE]:e=>e.locale,[te.GETTERS.DISPLAY_OPTIONS]:e=>e.application.displayOptions},Stt={[te.MUTATIONS.EMPTY_ERROR_MESSAGES](e){e.errorMessages=null},[te.MUTATIONS.SET_ERROR_MESSAGES](e,t){e.errorMessages=t},[te.MUTATIONS.UPDATE_APPLICATION_CONFIG](e,t){e.application.config=t},[te.MUTATIONS.UPDATE_APPLICATION_LOADING](e,t){e.appLoading=t},[te.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},[te.MUTATIONS.UPDATE_APPLICATION_STATS](e,t){e.application.statistics=t},[te.MUTATIONS.UPDATE_LANG](e,t){t in zs?(e.language=t,e.locale=zs[t]):(e.language="en",e.locale=ir)},[te.MUTATIONS.UPDATE_DARK_MODE](e,t){e.darkMode=t},[te.MUTATIONS.UPDATE_DISPLAY_OPTIONS](e,t){e.application.displayOptions={...e.application.displayOptions,dateFormat:t.date_format,displayAscent:t.display_ascent,timezone:t.timezone,useImperialUnits:t.imperial_units}}},Att={root:!0,language:"en",locale:ir,errorMessages:null,application:{statistics:{sports:0,uploads_dir_size:0,users:0,workouts:0},displayOptions:{dateFormat:"MM/dd/yyyy",displayAscent:!0,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone?Intl.DateTimeFormat().resolvedOptions().timeZone:"Europe/Paris",useImperialUnits:!1}},appLoading:!1,darkMode:null},Ott={[Ht.ACTIONS.GET_SPORTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`sports${t?"?check_workouts=true":""}`).then(n=>{n.data.status==="success"?(e.commit(Ht.MUTATIONS.SET_SPORTS,n.data.data.sports),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1)):ne(e,null)}).catch(n=>ne(e,n))},[Ht.ACTIONS.UPDATE_SPORTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.patch(`sports/${t.id}`,{is_active:t.isActive}).then(n=>{n.data.status==="success"?e.dispatch(Ht.ACTIONS.GET_SPORTS):ne(e,null)}).catch(n=>ne(e,n))}},Itt={[Ht.GETTERS.SPORTS]:e=>e.sports},gtt={[Ht.MUTATIONS.SET_SPORTS](e,t){e.sports=t}},Rtt={sports:[]},Ntt={state:Rtt,actions:Ott,getters:Itt,mutations:gtt},vtt={[Mt.ACTIONS.GET_USER_STATS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`stats/${t.username}/by_time`,{params:t.params}).then(n=>{n.data.status==="success"?e.commit(Mt.MUTATIONS.UPDATE_USER_STATS,n.data.data.statistics):ne(e,null)}).catch(n=>ne(e,n))},[Mt.ACTIONS.GET_USER_SPORT_STATS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Mt.MUTATIONS.UPDATE_STATS_LOADING,!0),Ne.get(`stats/${t.username}/by_sport`,{params:{sport_id:t.sportId}}).then(n=>{n.data.status==="success"?(e.commit(Mt.MUTATIONS.UPDATE_USER_SPORT_STATS,n.data.data.statistics),e.commit(Mt.MUTATIONS.UPDATE_TOTAL_WORKOUTS,n.data.data.total_workouts)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(Mt.MUTATIONS.UPDATE_STATS_LOADING,!1))}},btt={[Mt.GETTERS.USER_SPORT_STATS]:e=>e.sportStatistics,[Mt.GETTERS.USER_STATS]:e=>e.statistics,[Mt.GETTERS.STATS_LOADING]:e=>e.loading,[Mt.GETTERS.TOTAL_WORKOUTS]:e=>e.totalWorkouts},Ctt={[Mt.MUTATIONS.UPDATE_USER_STATS](e,t){e.statistics=t},[Mt.MUTATIONS.EMPTY_USER_STATS](e){e.statistics={}},[Mt.MUTATIONS.EMPTY_USER_SPORT_STATS](e){e.sportStatistics={},e.totalWorkouts=0},[Mt.MUTATIONS.UPDATE_USER_SPORT_STATS](e,t){e.sportStatistics=t},[Mt.MUTATIONS.UPDATE_STATS_LOADING](e,t){e.loading=t},[Mt.MUTATIONS.UPDATE_TOTAL_WORKOUTS](e,t){e.totalWorkouts=t}},Ptt={statistics:{},sportStatistics:{},totalWorkouts:0,loading:!1},Dtt={state:Ptt,actions:vtt,getters:btt,mutations:Ctt},Ltt={[ue.GETTERS.USER]:e=>e.user,[ue.GETTERS.USER_CURRENT_REPORTING]:e=>e.currentReporting,[ue.GETTERS.USER_RELATIONSHIPS]:e=>e.user_relationships,[ue.GETTERS.USER_SANCTIONS]:e=>e.userSanctions.sanctions,[ue.GETTERS.USER_SANCTIONS_LOADING]:e=>e.userSanctions.loading,[ue.GETTERS.USER_SANCTIONS_PAGINATION]:e=>e.userSanctions.pagination,[ue.GETTERS.USER_WORKOUTS]:e=>e.userWorkouts.workouts,[ue.GETTERS.USER_WORKOUTS_LOADING]:e=>e.userWorkouts.loading,[ue.GETTERS.USERS]:e=>e.users,[ue.GETTERS.USERS_IS_SUCCESS]:e=>e.isSuccess,[ue.GETTERS.USERS_LOADING]:e=>e.loading,[ue.GETTERS.USERS_PAGINATION]:e=>e.pagination},ytt={[ue.MUTATIONS.UPDATE_USER](e,t){e.user=t},[ue.MUTATIONS.UPDATE_USER_IN_USERS](e,t){e.users=e.users.map(n=>n.username===t.username?t:n)},[ue.MUTATIONS.UPDATE_USER_IN_RELATIONSHIPS](e,t){e.user_relationships=e.user_relationships.map(n=>n.username===t.username?t:n)},[ue.MUTATIONS.UPDATE_USER_RELATIONSHIPS](e,t){e.user_relationships=t},[ue.MUTATIONS.UPDATE_USER_SANCTIONS](e,t){e.userSanctions.sanctions=t},[ue.MUTATIONS.UPDATE_USER_SANCTIONS_LOADING](e,t){e.userSanctions.loading=t},[ue.MUTATIONS.UPDATE_USER_SANCTIONS_PAGINATION](e,t){e.userSanctions.pagination=t},[ue.MUTATIONS.UPDATE_USERS](e,t){e.users=t},[ue.MUTATIONS.UPDATE_USERS_LOADING](e,t){e.loading=t},[ue.MUTATIONS.UPDATE_USERS_PAGINATION](e,t){e.pagination=t},[ue.MUTATIONS.UPDATE_IS_SUCCESS](e,t){e.isSuccess=t},[ue.MUTATIONS.UPDATE_USER_CURRENT_REPORTING](e,t){e.currentReporting=t},[ue.MUTATIONS.UPDATE_USER_WORKOUTS](e,t){e.userWorkouts.workouts=t},[ue.MUTATIONS.UPDATE_USER_WORKOUTS_LOADING](e,t){e.userWorkouts.loading=t}},$tt={user:{},userSanctions:{sanctions:[],loading:!1,pagination:{}},userWorkouts:{workouts:[],loading:!1},user_relationships:[],users:[],loading:!1,isSuccess:!1,pagination:{},currentReporting:!1},Utt={state:$tt,actions:Vet,getters:Ltt,mutations:ytt},kr=(e,t,n)=>{e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(n.match("TIMELINE")?"timeline":"workouts",{params:t}).then(a=>{a.data.status==="success"?(e.commit(ee.MUTATIONS[n],a.data.data.workouts),[Ma.SET_USER_WORKOUTS,Ma.SET_TIMELINE_WORKOUTS,Ma.ADD_TIMELINE_WORKOUTS].includes(n)&&e.commit(ee.MUTATIONS.SET_WORKOUTS_PAGINATION,a.data.pagination)):ne(e,null)}).catch(a=>ne(e,a))},FO=(e,t,n)=>{n?e.dispatch(ee.ACTIONS.GET_WORKOUT_COMMENTS,n):e.dispatch(ee.ACTIONS.GET_WORKOUT_COMMENT,t)},Ih=(e,t,n=!1)=>{Ne.post(`comments/${t.id}/like${n?"/undo":""}`).then(a=>{a.data.status==="success"&&FO(e,t.id,t.workout_id)}).catch(a=>{ne(e,a)})},gh=(e,t,n=!1)=>{Ne.post(`workouts/${t}/like${n?"/undo":""}`).then(a=>{a.data.status==="success"&&e.commit(ee.MUTATIONS.SET_WORKOUT,a.data.data.workouts[0])}).catch(a=>{ne(e,a)})},ktt={[ee.ACTIONS.GET_CALENDAR_WORKOUTS](e,t){e.commit(ee.MUTATIONS.EMPTY_CALENDAR_WORKOUTS),kr(e,t,Ma.SET_CALENDAR_WORKOUTS)},[ee.ACTIONS.GET_AUTH_USER_WORKOUTS](e,t){kr(e,t,Ma.SET_USER_WORKOUTS)},[ee.ACTIONS.GET_TIMELINE_WORKOUTS](e,t){kr(e,t,Ma.SET_TIMELINE_WORKOUTS)},[ee.ACTIONS.GET_MORE_TIMELINE_WORKOUTS](e,t){kr(e,t,Ma.ADD_TIMELINE_WORKOUTS)},[ee.ACTIONS.GET_WORKOUT_DATA](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!0);const n=t.segmentId?`/segment/${t.segmentId}`:"";Ne.get(`workouts/${t.workoutId}`).then(a=>{const s=a.data.data.workouts[0];if(a.data.status==="success"){if(t.segmentId&&(s.segments.length===0||!s.segments[+t.segmentId-1]))throw new Error("WORKOUT_NOT_FOUND");e.commit(ee.MUTATIONS.SET_WORKOUT,a.data.data.workouts[0]),a.data.data.workouts[0].with_analysis&&Ne.get(`workouts/${t.workoutId}/chart_data${n}`).then(o=>{o.data.status==="success"&&e.commit(ee.MUTATIONS.SET_WORKOUT_CHART_DATA,o.data.data.chart_data)}),a.data.data.workouts[0].with_gpx&&Ne.get(`workouts/${t.workoutId}/gpx${n}`).then(o=>{o.data.status==="success"&&e.commit(ee.MUTATIONS.SET_WORKOUT_GPX,o.data.data.gpx)}),t.segmentId||e.dispatch(ee.ACTIONS.GET_WORKOUT_COMMENTS,a.data.data.workouts[0].id)}else e.commit(ee.MUTATIONS.EMPTY_WORKOUT),ne(e,null)}).catch(a=>{e.commit(ee.MUTATIONS.EMPTY_WORKOUT),ne(e,a)}).finally(()=>e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ee.ACTIONS.DELETE_WORKOUT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!0),Ne.delete(`workouts/${t.workoutId}`).then(()=>{e.commit(ee.MUTATIONS.EMPTY_WORKOUT),e.dispatch(K.ACTIONS.GET_USER_PROFILE,{}),lt.push("/")}).catch(n=>{ne(e,n)}).finally(()=>e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ee.ACTIONS.EDIT_WORKOUT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!0),Ne.patch(`workouts/${t.workoutId}`,t.data).then(()=>{e.dispatch(K.ACTIONS.GET_USER_PROFILE,{}),e.dispatch(ee.ACTIONS.GET_WORKOUT_DATA,{workoutId:t.workoutId}).then(()=>{lt.push({name:"Workout",params:{workoutId:t.workoutId}})})}).catch(n=>{ne(e,n)}).finally(()=>e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ee.ACTIONS.EDIT_WORKOUT_CONTENT](e,t){e.commit(ee.MUTATIONS.SET_WORKOUT_CONTENT_LOADING,!0),e.commit(ee.MUTATIONS.SET_WORKOUT_CONTENT_TYPE,t.contentType),e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES);const n={[t.contentType==="NOTES"?"notes":"description"]:t.content};Ne.patch(`workouts/${t.workoutId}`,n).then(a=>{const s=a.data.data.workouts[0];e.commit(ee.MUTATIONS.SET_WORKOUT_CONTENT,s)}).catch(a=>{ne(e,a)}).finally(()=>e.commit(ee.MUTATIONS.SET_WORKOUT_CONTENT_LOADING,!1))},[ee.ACTIONS.ADD_WORKOUT](e,t){if(e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!0),!t.file)throw new Error("No file part");const n=t.notes.replace(/"/g,'\\"'),a=t.description.replace(/"/g,'\\"'),s=t.title.replace(/"/g,'\\"'),o=new FormData;o.append("file",t.file),o.append("data",`{"sport_id": ${t.sport_id}, "notes": "${n}", "description": "${a}", "title": "${s}", "equipment_ids": [${t.equipment_ids.map(i=>`"${i}"`).join(",")}], "workout_visibility": "${t.workout_visibility}", "map_visibility": "${t.map_visibility}"}`),Ne.post("workouts",o,{headers:{"content-type":"multipart/form-data"}}).then(i=>{if(i.data.status==="created"){e.dispatch(K.ACTIONS.GET_USER_PROFILE,{});const r=i.data.data.workouts[0];lt.push(i.data.data.workouts.length===1?`/workouts/${r.id}`:"/")}}).catch(i=>{ne(e,i)}).finally(()=>e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ee.ACTIONS.ADD_WORKOUT_WITHOUT_GPX](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!0),Ne.post("workouts/no_gpx",t).then(n=>{if(n.data.status==="created"){e.dispatch(K.ACTIONS.GET_USER_PROFILE,{});const a=n.data.data.workouts[0];lt.push(`/workouts/${a.id}`)}}).catch(n=>{ne(e,n)}).finally(()=>e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ee.ACTIONS.ADD_COMMENT](e,t){e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,"new");const n={text:t.text,text_visibility:t.text_visibility};e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post(`/workouts/${t.workout_id}/comments`,n).then(a=>{a.data.status==="created"?(e.dispatch(ee.ACTIONS.GET_WORKOUT_COMMENTS,t.workout_id),e.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{})):ne(e,null)}).catch(a=>{ne(e,a),e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,null)})},[ee.ACTIONS.GET_WORKOUT_COMMENT](e,t){e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,"loading"),e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`/comments/${t}`).then(n=>{n.data.status==="success"?(e.commit(ee.MUTATIONS.SET_WORKOUT_COMMENTS,[n.data.comment]),e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,null)):ne(e,null)}).catch(n=>{ne(e,n)}).finally(()=>e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,null))},[ee.ACTIONS.GET_WORKOUT_COMMENTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`/workouts/${t}/comments`).then(n=>{n.data.status==="success"?(e.commit(ee.MUTATIONS.SET_WORKOUT_COMMENTS,n.data.data.comments),e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,null)):ne(e,null)}).catch(n=>{ne(e,n.status===500?null:n,"error when getting comments")}).finally(()=>e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,null))},[ee.ACTIONS.DELETE_WORKOUT_COMMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,"delete"),Ne.delete(`comments/${t.commentId}`).then(n=>{n.status===204&&(t.workoutId?e.dispatch(ee.ACTIONS.GET_WORKOUT_COMMENTS,t.workoutId):lt.push("/"))}).catch(n=>{ne(e,n)})},[ee.ACTIONS.EDIT_WORKOUT_COMMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,t.id),Ne.patch(`comments/${t.id}`,{text:t.text}).then(n=>{n.data.status==="success"&&(FO(e,t.id,t.workout_id),e.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{}))}).catch(n=>{ne(e,n),e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,null)})},[ee.ACTIONS.LIKE_COMMENT](e,t){Ih(e,t)},[ee.ACTIONS.UNDO_LIKE_COMMENT](e,t){Ih(e,t,!0)},[ee.ACTIONS.LIKE_WORKOUT](e,t){gh(e,t)},[ee.ACTIONS.UNDO_LIKE_WORKOUT](e,t){gh(e,t,!0)},[ee.ACTIONS.MAKE_APPEAL](e,t){const n=`${t.objectType}_${t.objectId}`;e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_APPEAL_LOADING,n),e.commit(ee.MUTATIONS.SET_SUCCESS,null),Ne.post(`${t.objectType}s/${t.objectId}/suspension/appeal`,{text:t.text}).then(a=>{a.data.status==="success"&&e.commit(ee.MUTATIONS.SET_SUCCESS,n)}).catch(a=>{ne(e,a)}).finally(()=>e.commit(ee.MUTATIONS.SET_APPEAL_LOADING,null))},[ee.ACTIONS.GET_LIKES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`${t.objectType}s/${t.objectId}/likes?page=${t.page}`).then(n=>{n.data.status==="success"&&(e.commit(ue.MUTATIONS.UPDATE_USERS,n.data.data.likes),e.commit(ue.MUTATIONS.UPDATE_USERS_PAGINATION,n.data.pagination))}).catch(n=>{ne(e,n)})}},wtt={[ee.GETTERS.APPEAL_LOADING]:e=>e.appealLoading,[ee.GETTERS.CALENDAR_WORKOUTS]:e=>e.calendar_workouts,[ee.GETTERS.CURRENT_REPORTING]:e=>e.workoutData.currentReporting,[ee.GETTERS.SUCCESS]:e=>e.success,[ee.GETTERS.TIMELINE_WORKOUTS]:e=>e.timeline_workouts,[ee.GETTERS.AUTH_USER_WORKOUTS]:e=>e.user_workouts,[ee.GETTERS.WORKOUT_CONTENT_EDITION]:e=>e.workoutContent,[ee.GETTERS.WORKOUT_DATA]:e=>e.workoutData,[ee.GETTERS.WORKOUTS_PAGINATION]:e=>e.pagination},Mtt={[ee.MUTATIONS.ADD_TIMELINE_WORKOUTS](e,t){e.timeline_workouts=e.timeline_workouts.concat(t)},[ee.MUTATIONS.SET_APPEAL_LOADING](e,t){e.appealLoading=t},[ee.MUTATIONS.SET_CALENDAR_WORKOUTS](e,t){e.calendar_workouts=t},[ee.MUTATIONS.SET_SUCCESS](e,t){e.success=t},[ee.MUTATIONS.SET_TIMELINE_WORKOUTS](e,t){e.timeline_workouts=t},[ee.MUTATIONS.SET_USER_WORKOUTS](e,t){e.user_workouts=t},[ee.MUTATIONS.SET_WORKOUTS_PAGINATION](e,t){e.pagination=t},[ee.MUTATIONS.SET_WORKOUT](e,t){e.workoutData.workout=t},[ee.MUTATIONS.SET_WORKOUT_CHART_DATA](e,t){e.workoutData.chartData=t},[ee.MUTATIONS.SET_WORKOUT_GPX](e,t){e.workoutData.gpx=t},[ee.MUTATIONS.SET_WORKOUT_LOADING](e,t){e.workoutData.loading=t},[ee.MUTATIONS.SET_WORKOUT_CONTENT](e,t){e.workoutData.workout=t},[ee.MUTATIONS.SET_WORKOUT_CONTENT_LOADING](e,t){e.workoutContent.loading=t},[ee.MUTATIONS.SET_WORKOUT_CONTENT_TYPE](e,t){e.workoutContent.contentType=t},[ee.MUTATIONS.EMPTY_CALENDAR_WORKOUTS](e){e.calendar_workouts=[]},[ee.MUTATIONS.EMPTY_WORKOUTS](e){e.calendar_workouts=[],e.user_workouts=[],e.timeline_workouts=[]},[ee.MUTATIONS.EMPTY_WORKOUT](e){e.workoutData={gpx:"",loading:!1,workout:{},chartData:[],comments:[],commentsLoading:null,currentCommentEdition:{},currentReporting:!1}},[ee.MUTATIONS.SET_WORKOUT_COMMENTS](e,t){e.workoutData.comments=t},[ee.MUTATIONS.ADD_WORKOUT_COMMENT](e,t){e.workoutData.comments.push(t)},[ee.MUTATIONS.SET_COMMENT_LOADING](e,t){e.workoutData.commentsLoading=t},[ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION](e,t){e.workoutData.currentCommentEdition=t},[ee.MUTATIONS.SET_CURRENT_REPORTING](e,t){e.workoutData.currentReporting=t}},Wtt={calendar_workouts:[],timeline_workouts:[],pagination:{},user_workouts:[],workoutData:{gpx:"",loading:!1,workout:{},chartData:[],comments:[],commentsLoading:null,currentCommentEdition:{},currentReporting:!1},workoutContent:{loading:!1,contentType:""},success:null,appealLoading:null,likes:[]},Ftt={state:Wtt,actions:ktt,getters:wtt,mutations:Mtt},ztt={authUserModule:Yet,equipmentModule:ett,notificationsModule:ott,oAuthModule:ctt,reportsModule:Ttt,sportsModule:Ntt,statsModule:Dtt,usersModule:Utt,workoutsModule:Ftt},xtt={state:Att,actions:ftt,getters:htt,mutations:Stt,modules:ztt},kn=N2(xtt),Ne=Gt.create({baseURL:nr()});Ne.interceptors.request.use(e=>{const t=new AbortController;e.signal=t.signal;const n=Po(e);Ni.set(n,t);const a=kn.getters[K.GETTERS.AUTH_TOKEN];if(a){const s=`Bearer ${a}`;e.headers&&e.headers.Authorization!==s&&(e.headers.Authorization=`Bearer ${a}`)}return e},e=>Promise.reject(e));Ne.interceptors.response.use(e=>(Po(e.config),e),e=>(e.message!=="canceled"&&e.response&&Po(e.response.config),Promise.reject(e)));const hE=(e,t)=>e.push.apply(e,t),Do=e=>e.sort((t,n)=>t.i-n.i||t.j-n.j),Rh=e=>{const t={};let n=1;return e.forEach(a=>{t[a]=n,n+=1}),t};var Btt={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 Nh=2050,vh=1e3,Gtt=Btt,Vtt=10,Htt=1e4,zO=10,xO=50,BO=20,GO=/^[A-Z\xbf-\xdf][^A-Z\xbf-\xdf]+$/,Ktt=/^[^A-Z\xbf-\xdf]+[A-Z\xbf-\xdf]$/,qtt=/^[A-Z\xbf-\xdf]+$/,VO=/^[^a-z\xdf-\xff]+$/,jtt=/^[a-z\xdf-\xff]+$/,Ytt=/^[^A-Z\xbf-\xdf]+$/,Xtt=/[a-z\xdf-\xff]/,Qtt=/[A-Z\xbf-\xdf]/,Ztt=/[^A-Za-z\xbf-\xdf]/gi,Jtt=/^\d+$/,jp=new Date().getFullYear(),ent={recentYear:/19\d\d|200\d|201\d|202\d/g},HO=[" ",",",";",":","|","/","\\","_",".","-"],tnt=HO.length;class nnt{match({password:t}){const n=[...this.getMatchesWithoutSeparator(t),...this.getMatchesWithSeparator(t)],a=this.filterNoise(n);return Do(a)}getMatchesWithSeparator(t){const n=[],a=/^(\d{1,4})([\s/\\_.-])(\d{1,2})\2(\d{1,4})$/;for(let s=0;s<=Math.abs(t.length-6);s+=1)for(let o=s+5;o<=s+9&&!(o>=t.length);o+=1){const i=t.slice(s,+o+1||9e9),r=a.exec(i);if(r!=null){const u=this.mapIntegersToDayMonthYear([parseInt(r[1],10),parseInt(r[3],10),parseInt(r[4],10)]);u!=null&&n.push({pattern:"date",token:i,i:s,j:o,separator:r[2],year:u.year,month:u.month,day:u.day})}}return n}getMatchesWithoutSeparator(t){const n=[],a=/^\d{4,8}$/,s=o=>Math.abs(o.year-jp);for(let o=0;o<=Math.abs(t.length-4);o+=1)for(let i=o+3;i<=o+7&&!(i>=t.length);i+=1){const r=t.slice(o,+i+1||9e9);if(a.exec(r)){const u=[],l=r.length;if(Gtt[l].forEach(([E,c])=>{const m=this.mapIntegersToDayMonthYear([parseInt(r.slice(0,E),10),parseInt(r.slice(E,c),10),parseInt(r.slice(c),10)]);m!=null&&u.push(m)}),u.length>0){let E=u[0],c=s(u[0]);u.slice(1).forEach(m=>{const _=s(m);_{let a=!1;const s=t.length;for(let o=0;o=n.j){a=!0;break}}return!a})}mapIntegersToDayMonthYear(t){if(t[1]>31||t[1]<=0)return null;let n=0,a=0,s=0;for(let o=0,i=t.length;o99&&rNh)return null;r>31&&(a+=1),r>12&&(n+=1),r<=0&&(s+=1)}return a>=2||n===3||s>=2?null:this.getDayMonth(t)}getDayMonth(t){const n=[[t[2],t.slice(0,2)],[t[0],t.slice(1,3)]],a=n.length;for(let s=0;s=1&&o<=31&&i>=1&&i<=12)return{day:o,month:i}}return null}twoToFourDigitYear(t){return t>99?t:t>50?t+1900:t+2e3}}const ya=new Uint32Array(65536),ant=(e,t)=>{const n=e.length,a=t.length,s=1<{const n=t.length,a=e.length,s=[],o=[],i=Math.ceil(n/32),r=Math.ceil(a/32);for(let _=0;_>>R&1,N=s[R/32|0]>>>R&1,b=g|_,C=((g|N)&h)+h^h|g|N;let y=_|~(C|h),D=h&C;y>>>31^I&&(o[R/32|0]^=1<>>31^N&&(s[R/32|0]^=1<>>_&1,A=s[_/32|0]>>>_&1,R=h|l,g=((h|A)&d)+d^d|h|A;let I=l|~(g|d),N=d&g;m+=I>>>a-1&1,m-=N>>>a-1&1,I>>>31^O&&(o[_/32|0]^=1<<_),N>>>31^A&&(s[_/32|0]^=1<<_),I=I<<1|O,N=N<<1|A,d=N|~(R|I),l=I&R}for(let _=E;_{if(e.length{const a=e.length<=t.length,s=e.length<=n;return a||s?Math.ceil(e.length/4):n},rnt=(e,t,n)=>{let a=0;const s=Object.keys(t).find(o=>{const i=int(e,o,n);if(Math.abs(e.length-o.length)>i)return!1;const r=ont(e,o),u=r<=i;return u&&(a=r),u});return s?{levenshteinDistance:a,levenshteinDistanceEntry:s}:{}};var bh={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"]},ld={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 Ki{constructor(t=[]){this.parents=t,this.children=new Map}addSub(t,...n){const a=t.charAt(0);this.children.has(a)||this.children.set(a,new Ki([...this.parents,a]));let s=this.children.get(a);for(let o=1;o(Object.entries(e).forEach(([n,a])=>{a.forEach(s=>{t.addSub(s,n)})}),t);class unt{constructor(){this.matchers={},this.l33tTable=bh,this.trieNodeRoot=Ch(bh,new Ki),this.dictionary={userInputs:[]},this.rankedDictionaries={},this.rankedDictionariesMaxWordSize={},this.translations=ld,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=Ch(t.l33tTable,new Ki)),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(ld).forEach(a=>{if(a in t){const s=a;Object.keys(ld[s]).forEach(o=>{o in t[s]||(n=!1)})}else n=!1}),n}setRankedDictionaries(){const t={},n={};Object.keys(this.dictionary).forEach(a=>{t[a]=Rh(this.dictionary[a]),n[a]=this.getRankedDictionariesMaxWordSize(this.dictionary[a])}),this.rankedDictionaries=t,this.rankedDictionariesMaxWordSize=n}getRankedDictionariesMaxWordSize(t){const n=t.map(a=>typeof a!="string"?a.toString().length:a.length);return n.length===0?0:n.reduce((a,s)=>Math.max(a,s),-1/0)}buildSanitizedRankedDictionary(t){const n=[];return t.forEach(a=>{const s=typeof a;(s==="string"||s==="number"||s==="boolean")&&n.push(a.toString().toLowerCase())}),Rh(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 Ge=new unt;class lnt{constructor(t){this.defaultMatch=t}match({password:t}){const n=t.split("").reverse().join("");return this.defaultMatch({password:n}).map(a=>({...a,token:a.token.split("").reverse().join(""),reversed:!0,i:t.length-1-a.j,j:t.length-1-a.i}))}}class cnt{constructor({substr:t,limit:n,trieRoot:a}){this.buffer=[],this.finalPasswords=[],this.substr=t,this.limit=n,this.trieRoot=a}getAllPossibleSubsAtIndex(t){const n=[];let a=this.trieRoot;for(let s=t;s=this.limit)return;if(a===this.substr.length){t===n&&this.finalPasswords.push({password:this.buffer.join(""),changes:o});return}const u=[...this.getAllPossibleSubsAtIndex(a)];let l=!1;for(let d=a+u.length-1;d>=a;d-=1){const E=u[d-a];if(E.isTerminal()){if(i===E.parents.join("")&&r>=3)continue;l=!0;const c=E.subs;for(const m of c){this.buffer.push(m);const _=o.concat({i:s,letter:m,substitution:E.parents.join("")});if(this.helper({onlyFullSub:t,isFullSub:n,index:d+1,subIndex:s+m.length,changes:_,lastSubLetter:E.parents.join(""),consecutiveSubCount:i===E.parents.join("")?r+1:1}),this.buffer.pop(),this.finalPasswords.length>=this.limit)return}}}if(!t||!l){const d=this.substr.charAt(a);this.buffer.push(d),this.helper({onlyFullSub:t,isFullSub:n&&!l,index:a+1,subIndex:s+1,changes:o,lastSubLetter:i,consecutiveSubCount:r}),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 dnt=(e,t,n)=>new cnt({substr:e,limit:t,trieRoot:n}).getAll(),Ent=(e,t,n)=>{const s=e.changes.filter(l=>l.il-d.letter.length+d.substitution.length,t),o=e.changes.filter(l=>l.i>=t&&l.i<=n),i=o.reduce((l,d)=>l-d.letter.length+d.substitution.length,n-t+s),r=[],u=[];return o.forEach(l=>{r.findIndex(E=>E.letter===l.letter&&E.substitution===l.substitution)<0&&(r.push({letter:l.letter,substitution:l.substitution}),u.push(`${l.substitution} -> ${l.letter}`))}),{i:s,j:i,subs:r,subDisplay:u.join(", ")}};class pnt{constructor(t){this.defaultMatch=t}isAlreadyIncluded(t,n){return t.some(a=>Object.entries(a).every(([s,o])=>s==="subs"||o===n[s]))}match({password:t}){const n=[],a=dnt(t,Ge.l33tMaxSubstitutions,Ge.trieNodeRoot);let s=!1,o=!0;return a.forEach(i=>{if(s)return;const r=this.defaultMatch({password:i.password,useLevenshtein:o});o=!1,r.forEach(u=>{s||(s=u.i===0&&u.j===t.length-1);const l=Ent(i,u.i,u.j),d=t.slice(l.i,+l.j+1||9e9),E={...u,l33t:!0,token:d,...l},c=this.isAlreadyIncluded(n,E);d.toLowerCase()!==u.matchedWord&&!c&&n.push(E)})}),n.filter(i=>i.token.length>1)}}class mnt{constructor(){this.l33t=new pnt(this.defaultMatch),this.reverse=new lnt(this.defaultMatch)}match({password:t}){const n=[...this.defaultMatch({password:t}),...this.reverse.match({password:t}),...this.l33t.match({password:t})];return Do(n)}defaultMatch({password:t,useLevenshtein:n=!0}){const a=[],s=t.length,o=t.toLowerCase();return Object.keys(Ge.rankedDictionaries).forEach(i=>{const r=Ge.rankedDictionaries[i],u=Ge.rankedDictionariesMaxWordSize[i],l=Math.min(u,s);for(let d=0;d{const o=n[s];o.lastIndex=0;let i;for(;i=o.exec(t);)if(i){const r=i[0];a.push({pattern:"regex",token:r,i:i.index,j:i.index+i[0].length-1,regexName:s,regexMatch:i})}}),Do(a)}}var qs={nCk(e,t){let n=e;if(t>n)return 0;if(t===0)return 1;let a=1;for(let s=1;s<=t;s+=1)a*=n,a/=s,n-=1;return a},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}},_nt=({token:e})=>{let t=Vtt**e.length;t===Number.POSITIVE_INFINITY&&(t=Number.MAX_VALUE);let n;return e.length===1?n=zO+1:n=xO+1,Math.max(t,n)},fnt=({year:e,separator:t})=>{let a=Math.max(Math.abs(e-jp),BO)*365;return t&&(a*=4),a};const hnt=e=>{const t=e.split(""),n=t.filter(i=>i.match(Qtt)).length,a=t.filter(i=>i.match(Xtt)).length;let s=0;const o=Math.min(n,a);for(let i=1;i<=o;i+=1)s+=qs.nCk(n+a,i);return s};var Snt=e=>{const t=e.replace(Ztt,"");if(t.match(Ytt)||t.toLowerCase()===t)return 1;const n=[GO,Ktt,VO],a=n.length;for(let s=0;s{let n=0,a=e.indexOf(t);for(;a>=0;)n+=1,a=e.indexOf(t,a+t.length);return n},Ant=({sub:e,token:t})=>{const n=t.toLowerCase(),a=Ph(n,e.substitution),s=Ph(n,e.letter);return{subbedCount:a,unsubbedCount:s}};var Ont=({l33t:e,subs:t,token:n})=>{if(!e)return 1;let a=1;return t.forEach(s=>{const{subbedCount:o,unsubbedCount:i}=Ant({sub:s,token:n});if(o===0||i===0)a*=2;else{const r=Math.min(i,o);let u=0;for(let l=1;l<=r;l+=1)u+=qs.nCk(i+o,l);a*=u}}),a},Int=({rank:e,reversed:t,l33t:n,subs:a,token:s,dictionaryName:o})=>{const i=e,r=Snt(s),u=Ont({l33t:n,subs:a,token:s}),l=t&&2||1;let d;return o==="diceware"?d=6**5/2:d=i*r*u*l,{baseGuesses:i,uppercaseVariations:r,l33tVariations:u,calculation:d}},gnt=({regexName:e,regexMatch:t,token:n})=>{const a={alphaLower:26,alphaUpper:26,alpha:52,alphanumeric:62,digits:10,symbols:33};if(e in a)return a[e]**n.length;switch(e){case"recentYear":return Math.max(Math.abs(parseInt(t[0],10)-jp),BO)}return 0},Rnt=({baseGuesses:e,repeatCount:t})=>e*t,Nnt=({token:e,ascending:t})=>{const n=e.charAt(0);let a=0;return["a","A","z","Z","0","1","9"].includes(n)?a=4:n.match(/\d/)?a=10:a=26,t||(a*=2),a*e.length};const vnt=e=>{let t=0;return Object.keys(e).forEach(n=>{const a=e[n];t+=a.filter(s=>!!s).length}),t/=Object.entries(e).length,t},bnt=({token:e,graph:t,turns:n})=>{const a=Object.keys(Ge.graphs[t]).length,s=vnt(Ge.graphs[t]);let o=0;const i=e.length;for(let r=2;r<=i;r+=1){const u=Math.min(n,r-1);for(let l=1;l<=u;l+=1)o+=qs.nCk(r-1,l-1)*a*s**l}return o};var Cnt=({graph:e,token:t,shiftedCount:n,turns:a})=>{let s=bnt({token:t,graph:e,turns:a});if(n){const o=t.length-n;if(n===0||o===0)s*=2;else{let i=0;for(let r=1;r<=Math.min(n,o);r+=1)i+=qs.nCk(n+o,r);s*=i}}return Math.round(s)},Pnt=()=>tnt;const Dnt=(e,t)=>{let n=1;return e.token.lengthDh[e]?Dh[e](t):Ge.matchers[e]&&"scoring"in Ge.matchers[e]?Ge.matchers[e].scoring(t):0;var ynt=(e,t)=>{const n={};if("guesses"in e&&e.guesses!=null)return e;const a=Dnt(e,t),s=Lnt(e.pattern,e);let o=0;typeof s=="number"?o=s:e.pattern==="dictionary"&&(o=s.calculation,n.baseGuesses=s.baseGuesses,n.uppercaseVariations=s.uppercaseVariations,n.l33tVariations=s.l33tVariations);const i=Math.max(o,a);return{...e,...n,guesses:i,guessesLog10:qs.log10(i)}};const Un={password:"",optimal:{},excludeAdditive:!1,separatorRegex:void 0,fillArray(e,t){const n=[];for(let a=0;a1&&(s*=this.optimal.pi[a.i-1][t-1]);let o=qs.factorial(t)*s;this.excludeAdditive||(o+=Htt**(t-1));let i=!1;Object.keys(this.optimal.g[n]).forEach(r=>{const u=this.optimal.g[n][r];parseInt(r,10)<=t&&u<=o&&(i=!0)}),i||(this.optimal.g[n][t]=o,this.optimal.m[n][t]=a,this.optimal.pi[n][t]=s)},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 a=this.optimal.m[n-1];Object.keys(a).forEach(s=>{a[s].pattern!=="bruteforce"&&this.update(t,parseInt(s,10)+1)})}},unwind(e){const t=[];let n=e-1,a=0,s=1/0;const o=this.optimal.g[n];for(o&&Object.keys(o).forEach(i=>{const r=o[i];r=0;){const i=this.optimal.m[n][a];t.unshift(i),n=i.i-1,a-=1}return t}};var SE={mostGuessableMatchSequence(e,t,n=!1){Un.password=e,Un.excludeAdditive=n;const a=e.length;let s=Un.fillArray(a,"array");t.forEach(u=>{s[u.j].push(u)}),s=s.map(u=>u.sort((l,d)=>l.i-d.i)),Un.optimal={m:Un.fillArray(a,"object"),pi:Un.fillArray(a,"object"),g:Un.fillArray(a,"object")};for(let u=0;u{l.i>0?Object.keys(Un.optimal.m[l.i-1]).forEach(d=>{Un.update(l,parseInt(d,10)+1)}):Un.update(l,1)}),Un.bruteforceUpdate(u);const o=Un.unwind(a),i=o.length,r=this.getGuesses(e,i);return{password:e,guesses:r,guessesLog10:qs.log10(r),sequence:o}},getGuesses(e,t){const n=e.length;let a=0;return e.length===0?a=1:a=Un.optimal.g[n-1][t],a}};class $nt{match({password:t,omniMatch:n}){const a=[];let s=0;for(;s
${_a(t,!0)}
An error occurred:
"+_a(a.message+"",!0)+"
An err `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(s){let o;return s.walkDecls(i=>{if(typeof i.raws.between<"u")return o=i.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(s){let o;return s.walk(i=>{if(i.nodes&&i.nodes.length===0&&(o=i.raws.after,typeof o<"u"))return!1}),o}rawIndent(s){if(s.raws.indent)return s.raws.indent;let o;return s.walk(i=>{let r=i.parent;if(r&&r!==s&&r.parent&&r.parent===s&&typeof i.raws.before<"u"){let u=i.raws.before.split(` `);return o=u[u.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(s){let o;return s.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(o=i.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(s,o){let i=s[o],r=s.raws[o];return r&&r.value===i?r.raw:i}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,o){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,o)}}return Mc=n,n.default=n,Mc}var Wc,xf;function yl(){if(xf)return Wc;xf=1;let e=_O();function t(n,a){new e(a).stringify(n)}return Wc=t,t.default=t,Wc}var $r={},Bf;function $p(){return Bf||(Bf=1,$r.isClean=Symbol("isClean"),$r.my=Symbol("my")),$r}var Fc,Gf;function $l(){if(Gf)return Fc;Gf=1;let e=yp(),t=_O(),n=yl(),{isClean:a,my:s}=$p();function o(u,l){let d=new u.constructor;for(let E in u){if(!Object.prototype.hasOwnProperty.call(u,E)||E==="proxyCache")continue;let c=u[E],m=typeof c;E==="parent"&&m==="object"?l&&(d[E]=l):E==="source"?d[E]=c:Array.isArray(c)?d[E]=c.map(_=>o(_,d)):(m==="object"&&c!==null&&(c=o(c)),d[E]=c)}return d}function i(u,l){if(l&&typeof l.offset<"u")return l.offset;let d=1,E=1,c=0;for(let m=0;ml.root().toProxy():l[d]},set(l,d,E){return l[d]===E||(l[d]=E,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="text")&&l.markDirty()),!0}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let l=this;for(;l=l.parent;)l[a]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l){let d=this.source.start;if(l.index)d=this.positionInside(l.index);else if(l.word){let c=this.source.input.css.slice(i(this.source.input.css,this.source.start),i(this.source.input.css,this.source.end)).indexOf(l.word);c!==-1&&(d=this.positionInside(c))}return d}positionInside(l){let d=this.source.start.column,E=this.source.start.line,c=i(this.source.input.css,this.source.start),m=c+l;for(let _=c;_typeof O=="object"&&O.toJSON?O.toJSON(null,d):O);else if(typeof h=="object"&&h.toJSON)E[_]=h.toJSON(null,d);else if(_==="source"){let O=d.get(h.input);O==null&&(O=m,d.set(h.input,m),m++),E[_]={end:h.end,inputId:O,start:h.start}}else E[_]=h}return c&&(E.inputs=[...d.keys()].map(_=>_.toJSON())),E}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=n){l.stringify&&(l=l.stringify);let d="";return l(this,E=>{d+=E}),d}warn(l,d,E){let c={node:this};for(let m in E)c[m]=E[m];return l.warn(d,c)}get proxyOf(){return this}}return Fc=r,r.default=r,Fc}var zc,Vf;function Ul(){if(Vf)return zc;Vf=1;let e=$l();class t extends e{constructor(a){super(a),this.type="comment"}}return zc=t,t.default=t,zc}var xc,Hf;function kl(){if(Hf)return xc;Hf=1;let e=$l();class t extends e{constructor(a){a&&typeof a.value<"u"&&typeof a.value!="string"&&(a={...a,value:String(a.value)}),super(a),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return xc=t,t.default=t,xc}var Bc,Kf;function Ks(){if(Kf)return Bc;Kf=1;let e=Ul(),t=kl(),n=$l(),{isClean:a,my:s}=$p(),o,i,r,u;function l(c){return c.map(m=>(m.nodes&&(m.nodes=l(m.nodes)),delete m.source,m))}function d(c){if(c[a]=!1,c.proxyOf.nodes)for(let m of c.proxyOf.nodes)d(m)}class E extends n{append(...m){for(let _ of m){let h=this.normalize(_,this.last);for(let O of h)this.proxyOf.nodes.push(O)}return this.markDirty(),this}cleanRaws(m){if(super.cleanRaws(m),this.nodes)for(let _ of this.nodes)_.cleanRaws(m)}each(m){if(!this.proxyOf.nodes)return;let _=this.getIterator(),h,O;for(;this.indexes[_]m[_](...h.map(O=>typeof O=="function"?(A,R)=>O(A.toProxy(),R):O)):_==="every"||_==="some"?h=>m[_]((O,...A)=>h(O.toProxy(),...A)):_==="root"?()=>m.root().toProxy():_==="nodes"?m.nodes.map(h=>h.toProxy()):_==="first"||_==="last"?m[_].toProxy():m[_]:m[_]},set(m,_,h){return m[_]===h||(m[_]=h,(_==="name"||_==="params"||_==="selector")&&m.markDirty()),!0}}}index(m){return typeof m=="number"?m:(m.proxyOf&&(m=m.proxyOf),this.proxyOf.nodes.indexOf(m))}insertAfter(m,_){let h=this.index(m),O=this.normalize(_,this.proxyOf.nodes[h]).reverse();h=this.index(m);for(let R of O)this.proxyOf.nodes.splice(h+1,0,R);let A;for(let R in this.indexes)A=this.indexes[R],h"u")m=[];else if(Array.isArray(m)){m=m.slice(0);for(let O of m)O.parent&&O.parent.removeChild(O,"ignore")}else if(m.type==="root"&&this.type!=="document"){m=m.nodes.slice(0);for(let O of m)O.parent&&O.parent.removeChild(O,"ignore")}else if(m.type)m=[m];else if(m.prop){if(typeof m.value>"u")throw new Error("Value field is missed in node creation");typeof m.value!="string"&&(m.value=String(m.value)),m=[new t(m)]}else if(m.selector||m.selectors)m=[new u(m)];else if(m.name)m=[new o(m)];else if(m.text)m=[new e(m)];else throw new Error("Unknown node type in node creation");return m.map(O=>(O[s]||E.rebuild(O),O=O.proxyOf,O.parent&&O.parent.removeChild(O),O[a]&&d(O),O.raws||(O.raws={}),typeof O.raws.before>"u"&&_&&typeof _.raws.before<"u"&&(O.raws.before=_.raws.before.replace(/\S/g,"")),O.parent=this.proxyOf,O))}prepend(...m){m=m.reverse();for(let _ of m){let h=this.normalize(_,this.first,"prepend").reverse();for(let O of h)this.proxyOf.nodes.unshift(O);for(let O in this.indexes)this.indexes[O]=this.indexes[O]+h.length}return this.markDirty(),this}push(m){return m.parent=this,this.proxyOf.nodes.push(m),this}removeAll(){for(let m of this.proxyOf.nodes)m.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(m){m=this.index(m),this.proxyOf.nodes[m].parent=void 0,this.proxyOf.nodes.splice(m,1);let _;for(let h in this.indexes)_=this.indexes[h],_>=m&&(this.indexes[h]=_-1);return this.markDirty(),this}replaceValues(m,_,h){return h||(h=_,_={}),this.walkDecls(O=>{_.props&&!_.props.includes(O.prop)||_.fast&&!O.value.includes(_.fast)||(O.value=O.value.replace(m,h))}),this.markDirty(),this}some(m){return this.nodes.some(m)}walk(m){return this.each((_,h)=>{let O;try{O=m(_,h)}catch(A){throw _.addToError(A)}return O!==!1&&_.walk&&(O=_.walk(m)),O})}walkAtRules(m,_){return _?m instanceof RegExp?this.walk((h,O)=>{if(h.type==="atrule"&&m.test(h.name))return _(h,O)}):this.walk((h,O)=>{if(h.type==="atrule"&&h.name===m)return _(h,O)}):(_=m,this.walk((h,O)=>{if(h.type==="atrule")return _(h,O)}))}walkComments(m){return this.walk((_,h)=>{if(_.type==="comment")return m(_,h)})}walkDecls(m,_){return _?m instanceof RegExp?this.walk((h,O)=>{if(h.type==="decl"&&m.test(h.prop))return _(h,O)}):this.walk((h,O)=>{if(h.type==="decl"&&h.prop===m)return _(h,O)}):(_=m,this.walk((h,O)=>{if(h.type==="decl")return _(h,O)}))}walkRules(m,_){return _?m instanceof RegExp?this.walk((h,O)=>{if(h.type==="rule"&&m.test(h.selector))return _(h,O)}):this.walk((h,O)=>{if(h.type==="rule"&&h.selector===m)return _(h,O)}):(_=m,this.walk((h,O)=>{if(h.type==="rule")return _(h,O)}))}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]}}return E.registerParse=c=>{i=c},E.registerRule=c=>{u=c},E.registerAtRule=c=>{o=c},E.registerRoot=c=>{r=c},Bc=E,E.default=E,E.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,o.prototype):c.type==="rule"?Object.setPrototypeOf(c,u.prototype):c.type==="decl"?Object.setPrototypeOf(c,t.prototype):c.type==="comment"?Object.setPrototypeOf(c,e.prototype):c.type==="root"&&Object.setPrototypeOf(c,r.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(m=>{E.rebuild(m)})},Bc}var Gc,qf;function Up(){if(qf)return Gc;qf=1;let e=Ks();class t extends e{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return Gc=t,t.default=t,e.registerAtRule(t),Gc}var Vc,jf;function kp(){if(jf)return Vc;jf=1;let e=Ks(),t,n;class a extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new n,this,o).stringify()}}return a.registerLazyResult=s=>{t=s},a.registerProcessor=s=>{n=s},Vc=a,a.default=a,Vc}var Hc,Yf;function ZVe(){if(Yf)return Hc;Yf=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Hc={nanoid:(a=21)=>{let s="",o=a|0;for(;o--;)s+=e[Math.random()*64|0];return s},customAlphabet:(a,s=21)=>(o=s)=>{let i="",r=o|0;for(;r--;)i+=a[Math.random()*a.length|0];return i}},Hc}var Kc,Xf;function fO(){if(Xf)return Kc;Xf=1;let{existsSync:e,readFileSync:t}=ea,{dirname:n,join:a}=ea,{SourceMapConsumer:s,SourceMapGenerator:o}=ea;function i(u){return Buffer?Buffer.from(u,"base64").toString():window.atob(u)}class r{constructor(l,d){if(d.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let E=d.map?d.map.prev:void 0,c=this.loadMap(d.from,E);!this.mapFile&&d.from&&(this.mapFile=d.from),this.mapFile&&(this.root=n(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(l){let d=/^data:application\/json;charset=utf-?8;base64,/,E=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,m=/^data:application\/json,/,_=l.match(c)||l.match(m);if(_)return decodeURIComponent(l.substr(_[0].length));let h=l.match(d)||l.match(E);if(h)return i(l.substr(h[0].length));let O=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+O)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let d=l.match(/\/\*\s*# sourceMappingURL=/g);if(!d)return;let E=l.lastIndexOf(d.pop()),c=l.indexOf("*/",E);E>-1&&c>-1&&(this.annotation=this.getAnnotationURL(l.substring(E,c)))}loadFile(l){if(this.root=n(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,d){if(d===!1)return!1;if(d){if(typeof d=="string")return d;if(typeof d=="function"){let E=d(l);if(E){let c=this.loadFile(E);if(!c)throw new Error("Unable to load previous source map: "+E.toString());return c}}else{if(d instanceof s)return o.fromSourceMap(d).toString();if(d instanceof o)return d.toString();if(this.isMap(d))return JSON.stringify(d);throw new Error("Unsupported previous source map format: "+d.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let E=this.annotation;return l&&(E=a(n(l),E)),this.loadFile(E)}}}startWith(l,d){return l?l.substr(0,d.length)===d:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Kc=r,r.default=r,Kc}var qc,Qf;function wl(){if(Qf)return qc;Qf=1;let{nanoid:e}=ZVe(),{isAbsolute:t,resolve:n}=ea,{SourceMapConsumer:a,SourceMapGenerator:s}=ea,{fileURLToPath:o,pathToFileURL:i}=ea,r=yp(),u=fO(),l=ea,d=Symbol("fromOffsetCache"),E=!!(a&&s),c=!!(n&&t);class m{constructor(h,O={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,O.from&&(!c||/^\w+:\/\//.test(O.from)||t(O.from)?this.file=O.from:this.file=n(O.from)),c&&E){let A=new u(this.css,O);if(A.text){this.map=A;let R=A.consumer().file;!this.file&&R&&(this.file=this.mapResolve(R))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(h,O,A,R={}){let g,I,N;if(O&&typeof O=="object"){let C=O,y=A;if(typeof C.offset=="number"){let D=this.fromOffset(C.offset);O=D.line,A=D.col}else O=C.line,A=C.column;if(typeof y.offset=="number"){let D=this.fromOffset(y.offset);I=D.line,g=D.col}else I=y.line,g=y.column}else if(!A){let C=this.fromOffset(O);O=C.line,A=C.col}let b=this.origin(O,A,I,g);return b?N=new r(h,b.endLine===void 0?b.line:{column:b.column,line:b.line},b.endLine===void 0?b.column:{column:b.endColumn,line:b.endLine},b.source,b.file,R.plugin):N=new r(h,I===void 0?O:{column:A,line:O},I===void 0?A:{column:g,line:I},this.css,this.file,R.plugin),N.input={column:A,endColumn:g,endLine:I,line:O,source:this.css},this.file&&(i&&(N.input.url=i(this.file).toString()),N.input.file=this.file),N}fromOffset(h){let O,A;if(this[d])A=this[d];else{let g=this.css.split(` -`);A=new Array(g.length);let I=0;for(let N=0,b=g.length;N=O)R=A.length-1;else{let g=A.length-2,I;for(;R>1),h=A[I+1])R=I+1;else{R=I;break}}return{col:h-A[R]+1,line:R+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:n(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,O,A,R){if(!this.map)return!1;let g=this.map.consumer(),I=g.originalPositionFor({column:O,line:h});if(!I.source)return!1;let N;typeof A=="number"&&(N=g.originalPositionFor({column:R,line:A}));let b;t(I.source)?b=i(I.source):b=new URL(I.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let C={column:I.column,endColumn:N&&N.column,endLine:N&&N.line,line:I.line,url:b.toString()};if(b.protocol==="file:")if(o)C.file=o(b);else throw new Error("file: protocol is not available in this PostCSS build");let y=g.sourceContentFor(I.source);return y&&(C.source=y),C}toJSON(){let h={};for(let O of["hasBOM","css","file","id"])this[O]!=null&&(h[O]=this[O]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return qc=m,m.default=m,l&&l.registerInput&&l.registerInput(m),qc}var jc,Zf;function lr(){if(Zf)return jc;Zf=1;let e=Ks(),t,n;class a extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,i,r){let u=super.normalize(o);if(i){if(r==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(let l of u)l.raws.before=i.raws.before}return u}removeChild(o,i){let r=this.index(o);return!i&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(o)}toResult(o={}){return new t(new n,this,o).stringify()}}return a.registerLazyResult=s=>{t=s},a.registerProcessor=s=>{n=s},jc=a,a.default=a,e.registerRoot(a),jc}var Yc,Jf;function hO(){if(Jf)return Yc;Jf=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let n=[" ",` -`," "];return e.split(t,n)},split(t,n,a){let s=[],o="",i=!1,r=0,u=!1,l="",d=!1;for(let E of t)d?d=!1:E==="\\"?d=!0:u?E===l&&(u=!1):E==='"'||E==="'"?(u=!0,l=E):E==="("?r+=1:E===")"?r>0&&(r-=1):r===0&&n.includes(E)&&(i=!0),i?(o!==""&&s.push(o.trim()),o="",i=!1):o+=E;return(a||o!=="")&&s.push(o.trim()),s}};return Yc=e,e.default=e,Yc}var Xc,eh;function wp(){if(eh)return Xc;eh=1;let e=Ks(),t=hO();class n extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let o=this.selector?this.selector.match(/,\s*/):null,i=o?o[0]:","+this.raw("between","beforeOpen");this.selector=s.join(i)}}return Xc=n,n.default=n,e.registerRule(n),Xc}var Qc,th;function JVe(){if(th)return Qc;th=1;let e=Up(),t=Ul(),n=kl(),a=wl(),s=fO(),o=lr(),i=wp();function r(u,l){if(Array.isArray(u))return u.map(c=>r(c));let{inputs:d,...E}=u;if(d){l=[];for(let c of d){let m={...c,__proto__:a.prototype};m.map&&(m.map={...m.map,__proto__:s.prototype}),l.push(m)}}if(E.nodes&&(E.nodes=u.nodes.map(c=>r(c,l))),E.source){let{inputId:c,...m}=E.source;E.source=m,c!=null&&(E.source.input=l[c])}if(E.type==="root")return new o(E);if(E.type==="decl")return new n(E);if(E.type==="rule")return new i(E);if(E.type==="comment")return new t(E);if(E.type==="atrule")return new e(E);throw new Error("Unknown node type: "+u.type)}return Qc=r,r.default=r,Qc}var Zc,nh;function SO(){if(nh)return Zc;nh=1;let{dirname:e,relative:t,resolve:n,sep:a}=ea,{SourceMapConsumer:s,SourceMapGenerator:o}=ea,{pathToFileURL:i}=ea,r=wl(),u=!!(s&&o),l=!!(e&&n&&t&&a);class d{constructor(c,m,_,h){this.stringify=c,this.mapOpts=_.map||{},this.root=m,this.opts=_,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let m=` +`?(d=1,E+=1):d+=1;return{column:d,line:E}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let d={column:this.source.start.column,line:this.source.start.line},E=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(l.word){let m=this.source.input.css.slice(i(this.source.input.css,this.source.start),i(this.source.input.css,this.source.end)).indexOf(l.word);m!==-1&&(d=this.positionInside(m),E=this.positionInside(m+l.word.length))}else l.start?d={column:l.start.column,line:l.start.line}:l.index&&(d=this.positionInside(l.index)),l.end?E={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?E=this.positionInside(l.endIndex):l.index&&(E=this.positionInside(l.index+1));return(E.linetypeof O=="object"&&O.toJSON?O.toJSON(null,d):O);else if(typeof f=="object"&&f.toJSON)E[_]=f.toJSON(null,d);else if(_==="source"){let O=d.get(f.input);O==null&&(O=m,d.set(f.input,m),m++),E[_]={end:f.end,inputId:O,start:f.start}}else E[_]=f}return c&&(E.inputs=[...d.keys()].map(_=>_.toJSON())),E}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=n){l.stringify&&(l=l.stringify);let d="";return l(this,E=>{d+=E}),d}warn(l,d,E){let c={node:this};for(let m in E)c[m]=E[m];return l.warn(d,c)}get proxyOf(){return this}}return Fc=r,r.default=r,Fc}var zc,Vf;function Ul(){if(Vf)return zc;Vf=1;let e=$l();class t extends e{constructor(a){super(a),this.type="comment"}}return zc=t,t.default=t,zc}var xc,Hf;function kl(){if(Hf)return xc;Hf=1;let e=$l();class t extends e{constructor(a){a&&typeof a.value<"u"&&typeof a.value!="string"&&(a={...a,value:String(a.value)}),super(a),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return xc=t,t.default=t,xc}var Bc,Kf;function Ks(){if(Kf)return Bc;Kf=1;let e=Ul(),t=kl(),n=$l(),{isClean:a,my:s}=$p(),o,i,r,u;function l(c){return c.map(m=>(m.nodes&&(m.nodes=l(m.nodes)),delete m.source,m))}function d(c){if(c[a]=!1,c.proxyOf.nodes)for(let m of c.proxyOf.nodes)d(m)}class E extends n{append(...m){for(let _ of m){let f=this.normalize(_,this.last);for(let O of f)this.proxyOf.nodes.push(O)}return this.markDirty(),this}cleanRaws(m){if(super.cleanRaws(m),this.nodes)for(let _ of this.nodes)_.cleanRaws(m)}each(m){if(!this.proxyOf.nodes)return;let _=this.getIterator(),f,O;for(;this.indexes[_]m[_](...f.map(O=>typeof O=="function"?(S,R)=>O(S.toProxy(),R):O)):_==="every"||_==="some"?f=>m[_]((O,...S)=>f(O.toProxy(),...S)):_==="root"?()=>m.root().toProxy():_==="nodes"?m.nodes.map(f=>f.toProxy()):_==="first"||_==="last"?m[_].toProxy():m[_]:m[_]},set(m,_,f){return m[_]===f||(m[_]=f,(_==="name"||_==="params"||_==="selector")&&m.markDirty()),!0}}}index(m){return typeof m=="number"?m:(m.proxyOf&&(m=m.proxyOf),this.proxyOf.nodes.indexOf(m))}insertAfter(m,_){let f=this.index(m),O=this.normalize(_,this.proxyOf.nodes[f]).reverse();f=this.index(m);for(let R of O)this.proxyOf.nodes.splice(f+1,0,R);let S;for(let R in this.indexes)S=this.indexes[R],f"u")m=[];else if(Array.isArray(m)){m=m.slice(0);for(let O of m)O.parent&&O.parent.removeChild(O,"ignore")}else if(m.type==="root"&&this.type!=="document"){m=m.nodes.slice(0);for(let O of m)O.parent&&O.parent.removeChild(O,"ignore")}else if(m.type)m=[m];else if(m.prop){if(typeof m.value>"u")throw new Error("Value field is missed in node creation");typeof m.value!="string"&&(m.value=String(m.value)),m=[new t(m)]}else if(m.selector||m.selectors)m=[new u(m)];else if(m.name)m=[new o(m)];else if(m.text)m=[new e(m)];else throw new Error("Unknown node type in node creation");return m.map(O=>(O[s]||E.rebuild(O),O=O.proxyOf,O.parent&&O.parent.removeChild(O),O[a]&&d(O),O.raws||(O.raws={}),typeof O.raws.before>"u"&&_&&typeof _.raws.before<"u"&&(O.raws.before=_.raws.before.replace(/\S/g,"")),O.parent=this.proxyOf,O))}prepend(...m){m=m.reverse();for(let _ of m){let f=this.normalize(_,this.first,"prepend").reverse();for(let O of f)this.proxyOf.nodes.unshift(O);for(let O in this.indexes)this.indexes[O]=this.indexes[O]+f.length}return this.markDirty(),this}push(m){return m.parent=this,this.proxyOf.nodes.push(m),this}removeAll(){for(let m of this.proxyOf.nodes)m.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(m){m=this.index(m),this.proxyOf.nodes[m].parent=void 0,this.proxyOf.nodes.splice(m,1);let _;for(let f in this.indexes)_=this.indexes[f],_>=m&&(this.indexes[f]=_-1);return this.markDirty(),this}replaceValues(m,_,f){return f||(f=_,_={}),this.walkDecls(O=>{_.props&&!_.props.includes(O.prop)||_.fast&&!O.value.includes(_.fast)||(O.value=O.value.replace(m,f))}),this.markDirty(),this}some(m){return this.nodes.some(m)}walk(m){return this.each((_,f)=>{let O;try{O=m(_,f)}catch(S){throw _.addToError(S)}return O!==!1&&_.walk&&(O=_.walk(m)),O})}walkAtRules(m,_){return _?m instanceof RegExp?this.walk((f,O)=>{if(f.type==="atrule"&&m.test(f.name))return _(f,O)}):this.walk((f,O)=>{if(f.type==="atrule"&&f.name===m)return _(f,O)}):(_=m,this.walk((f,O)=>{if(f.type==="atrule")return _(f,O)}))}walkComments(m){return this.walk((_,f)=>{if(_.type==="comment")return m(_,f)})}walkDecls(m,_){return _?m instanceof RegExp?this.walk((f,O)=>{if(f.type==="decl"&&m.test(f.prop))return _(f,O)}):this.walk((f,O)=>{if(f.type==="decl"&&f.prop===m)return _(f,O)}):(_=m,this.walk((f,O)=>{if(f.type==="decl")return _(f,O)}))}walkRules(m,_){return _?m instanceof RegExp?this.walk((f,O)=>{if(f.type==="rule"&&m.test(f.selector))return _(f,O)}):this.walk((f,O)=>{if(f.type==="rule"&&f.selector===m)return _(f,O)}):(_=m,this.walk((f,O)=>{if(f.type==="rule")return _(f,O)}))}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]}}return E.registerParse=c=>{i=c},E.registerRule=c=>{u=c},E.registerAtRule=c=>{o=c},E.registerRoot=c=>{r=c},Bc=E,E.default=E,E.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,o.prototype):c.type==="rule"?Object.setPrototypeOf(c,u.prototype):c.type==="decl"?Object.setPrototypeOf(c,t.prototype):c.type==="comment"?Object.setPrototypeOf(c,e.prototype):c.type==="root"&&Object.setPrototypeOf(c,r.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(m=>{E.rebuild(m)})},Bc}var Gc,qf;function Up(){if(qf)return Gc;qf=1;let e=Ks();class t extends e{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return Gc=t,t.default=t,e.registerAtRule(t),Gc}var Vc,jf;function kp(){if(jf)return Vc;jf=1;let e=Ks(),t,n;class a extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new n,this,o).stringify()}}return a.registerLazyResult=s=>{t=s},a.registerProcessor=s=>{n=s},Vc=a,a.default=a,Vc}var Hc,Yf;function ZVe(){if(Yf)return Hc;Yf=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Hc={nanoid:(a=21)=>{let s="",o=a|0;for(;o--;)s+=e[Math.random()*64|0];return s},customAlphabet:(a,s=21)=>(o=s)=>{let i="",r=o|0;for(;r--;)i+=a[Math.random()*a.length|0];return i}},Hc}var Kc,Xf;function fO(){if(Xf)return Kc;Xf=1;let{existsSync:e,readFileSync:t}=ea,{dirname:n,join:a}=ea,{SourceMapConsumer:s,SourceMapGenerator:o}=ea;function i(u){return Buffer?Buffer.from(u,"base64").toString():window.atob(u)}class r{constructor(l,d){if(d.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let E=d.map?d.map.prev:void 0,c=this.loadMap(d.from,E);!this.mapFile&&d.from&&(this.mapFile=d.from),this.mapFile&&(this.root=n(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(l){let d=/^data:application\/json;charset=utf-?8;base64,/,E=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,m=/^data:application\/json,/,_=l.match(c)||l.match(m);if(_)return decodeURIComponent(l.substr(_[0].length));let f=l.match(d)||l.match(E);if(f)return i(l.substr(f[0].length));let O=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+O)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let d=l.match(/\/\*\s*# sourceMappingURL=/g);if(!d)return;let E=l.lastIndexOf(d.pop()),c=l.indexOf("*/",E);E>-1&&c>-1&&(this.annotation=this.getAnnotationURL(l.substring(E,c)))}loadFile(l){if(this.root=n(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,d){if(d===!1)return!1;if(d){if(typeof d=="string")return d;if(typeof d=="function"){let E=d(l);if(E){let c=this.loadFile(E);if(!c)throw new Error("Unable to load previous source map: "+E.toString());return c}}else{if(d instanceof s)return o.fromSourceMap(d).toString();if(d instanceof o)return d.toString();if(this.isMap(d))return JSON.stringify(d);throw new Error("Unsupported previous source map format: "+d.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let E=this.annotation;return l&&(E=a(n(l),E)),this.loadFile(E)}}}startWith(l,d){return l?l.substr(0,d.length)===d:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Kc=r,r.default=r,Kc}var qc,Qf;function wl(){if(Qf)return qc;Qf=1;let{nanoid:e}=ZVe(),{isAbsolute:t,resolve:n}=ea,{SourceMapConsumer:a,SourceMapGenerator:s}=ea,{fileURLToPath:o,pathToFileURL:i}=ea,r=yp(),u=fO(),l=ea,d=Symbol("fromOffsetCache"),E=!!(a&&s),c=!!(n&&t);class m{constructor(f,O={}){if(f===null||typeof f>"u"||typeof f=="object"&&!f.toString)throw new Error(`PostCSS received ${f} instead of CSS string`);if(this.css=f.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,O.from&&(!c||/^\w+:\/\//.test(O.from)||t(O.from)?this.file=O.from:this.file=n(O.from)),c&&E){let S=new u(this.css,O);if(S.text){this.map=S;let R=S.consumer().file;!this.file&&R&&(this.file=this.mapResolve(R))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(f,O,S,R={}){let I,g,N;if(O&&typeof O=="object"){let C=O,y=S;if(typeof C.offset=="number"){let D=this.fromOffset(C.offset);O=D.line,S=D.col}else O=C.line,S=C.column;if(typeof y.offset=="number"){let D=this.fromOffset(y.offset);g=D.line,I=D.col}else g=y.line,I=y.column}else if(!S){let C=this.fromOffset(O);O=C.line,S=C.col}let b=this.origin(O,S,g,I);return b?N=new r(f,b.endLine===void 0?b.line:{column:b.column,line:b.line},b.endLine===void 0?b.column:{column:b.endColumn,line:b.endLine},b.source,b.file,R.plugin):N=new r(f,g===void 0?O:{column:S,line:O},g===void 0?S:{column:I,line:g},this.css,this.file,R.plugin),N.input={column:S,endColumn:I,endLine:g,line:O,source:this.css},this.file&&(i&&(N.input.url=i(this.file).toString()),N.input.file=this.file),N}fromOffset(f){let O,S;if(this[d])S=this[d];else{let I=this.css.split(` +`);S=new Array(I.length);let g=0;for(let N=0,b=I.length;N=O)R=S.length-1;else{let I=S.length-2,g;for(;R>1),f=S[g+1])R=g+1;else{R=g;break}}return{col:f-S[R]+1,line:R+1}}mapResolve(f){return/^\w+:\/\//.test(f)?f:n(this.map.consumer().sourceRoot||this.map.root||".",f)}origin(f,O,S,R){if(!this.map)return!1;let I=this.map.consumer(),g=I.originalPositionFor({column:O,line:f});if(!g.source)return!1;let N;typeof S=="number"&&(N=I.originalPositionFor({column:R,line:S}));let b;t(g.source)?b=i(g.source):b=new URL(g.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let C={column:g.column,endColumn:N&&N.column,endLine:N&&N.line,line:g.line,url:b.toString()};if(b.protocol==="file:")if(o)C.file=o(b);else throw new Error("file: protocol is not available in this PostCSS build");let y=I.sourceContentFor(g.source);return y&&(C.source=y),C}toJSON(){let f={};for(let O of["hasBOM","css","file","id"])this[O]!=null&&(f[O]=this[O]);return this.map&&(f.map={...this.map},f.map.consumerCache&&(f.map.consumerCache=void 0)),f}get from(){return this.file||this.id}}return qc=m,m.default=m,l&&l.registerInput&&l.registerInput(m),qc}var jc,Zf;function lr(){if(Zf)return jc;Zf=1;let e=Ks(),t,n;class a extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,i,r){let u=super.normalize(o);if(i){if(r==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(let l of u)l.raws.before=i.raws.before}return u}removeChild(o,i){let r=this.index(o);return!i&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(o)}toResult(o={}){return new t(new n,this,o).stringify()}}return a.registerLazyResult=s=>{t=s},a.registerProcessor=s=>{n=s},jc=a,a.default=a,e.registerRoot(a),jc}var Yc,Jf;function hO(){if(Jf)return Yc;Jf=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let n=[" ",` +`," "];return e.split(t,n)},split(t,n,a){let s=[],o="",i=!1,r=0,u=!1,l="",d=!1;for(let E of t)d?d=!1:E==="\\"?d=!0:u?E===l&&(u=!1):E==='"'||E==="'"?(u=!0,l=E):E==="("?r+=1:E===")"?r>0&&(r-=1):r===0&&n.includes(E)&&(i=!0),i?(o!==""&&s.push(o.trim()),o="",i=!1):o+=E;return(a||o!=="")&&s.push(o.trim()),s}};return Yc=e,e.default=e,Yc}var Xc,eh;function wp(){if(eh)return Xc;eh=1;let e=Ks(),t=hO();class n extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let o=this.selector?this.selector.match(/,\s*/):null,i=o?o[0]:","+this.raw("between","beforeOpen");this.selector=s.join(i)}}return Xc=n,n.default=n,e.registerRule(n),Xc}var Qc,th;function JVe(){if(th)return Qc;th=1;let e=Up(),t=Ul(),n=kl(),a=wl(),s=fO(),o=lr(),i=wp();function r(u,l){if(Array.isArray(u))return u.map(c=>r(c));let{inputs:d,...E}=u;if(d){l=[];for(let c of d){let m={...c,__proto__:a.prototype};m.map&&(m.map={...m.map,__proto__:s.prototype}),l.push(m)}}if(E.nodes&&(E.nodes=u.nodes.map(c=>r(c,l))),E.source){let{inputId:c,...m}=E.source;E.source=m,c!=null&&(E.source.input=l[c])}if(E.type==="root")return new o(E);if(E.type==="decl")return new n(E);if(E.type==="rule")return new i(E);if(E.type==="comment")return new t(E);if(E.type==="atrule")return new e(E);throw new Error("Unknown node type: "+u.type)}return Qc=r,r.default=r,Qc}var Zc,nh;function SO(){if(nh)return Zc;nh=1;let{dirname:e,relative:t,resolve:n,sep:a}=ea,{SourceMapConsumer:s,SourceMapGenerator:o}=ea,{pathToFileURL:i}=ea,r=wl(),u=!!(s&&o),l=!!(e&&n&&t&&a);class d{constructor(c,m,_,f){this.stringify=c,this.mapOpts=_.map||{},this.root=m,this.opts=_,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let m=` `;this.css.includes(`\r `)&&(m=`\r -`),this.css+=m+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let m=this.toUrl(this.path(c.file)),_=c.root||e(c.file),h;this.mapOpts.sourcesContent===!1?(h=new s(c.text),h.sourcesContent&&(h.sourcesContent=null)):h=c.consumer(),this.map.applySourceMap(h,m,this.toUrl(this.path(_)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let m=this.root.nodes.length-1;m>=0;m--)c=this.root.nodes[m],c.type==="comment"&&c.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(m)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&u&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,m=>{c+=m}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=o.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0}),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 o({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,m=1,_="",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},O,A;this.stringify(this.root,(R,g,I)=>{if(this.css+=R,g&&I!=="end"&&(h.generated.line=c,h.generated.column=m-1,g.source&&g.source.start?(h.source=this.sourcePath(g),h.original.line=g.source.start.line,h.original.column=g.source.start.column-1,this.map.addMapping(h)):(h.source=_,h.original.line=1,h.original.column=0,this.map.addMapping(h))),A=R.match(/\n/g),A?(c+=A.length,O=R.lastIndexOf(` -`),m=R.length-O):m+=R.length,g&&I!=="start"){let N=g.parent||{raws:{}};(!(g.type==="decl"||g.type==="atrule"&&!g.nodes)||g!==N.last||N.raws.semicolon)&&(g.source&&g.source.end?(h.source=this.sourcePath(g),h.original.line=g.source.end.line,h.original.column=g.source.end.column-1,h.generated.line=c,h.generated.column=m-2,this.map.addMapping(h)):(h.source=_,h.original.line=1,h.original.column=0,h.generated.line=c,h.generated.column=m-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(m=>m.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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let m=this.memoizedPaths.get(c);if(m)return m;let _=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(_=e(n(_,this.mapOpts.annotation)));let h=t(_,c);return this.memoizedPaths.set(c,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let m=c.source.input.map;this.previousMaps.includes(m)||this.previousMaps.push(m)}});else{let c=new r(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(m=>{if(m.source){let _=m.source.input.from;if(_&&!c[_]){c[_]=!0;let h=this.usesFileUrls?this.toFileUrl(_):this.toUrl(this.path(_));this.map.setSourceContent(h,m.source.input.css)}}});else if(this.css){let m=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(m,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let m=this.memoizedFileURLs.get(c);if(m)return m;if(i){let _=i(c).toString();return this.memoizedFileURLs.set(c,_),_}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let m=this.memoizedURLs.get(c);if(m)return m;a==="\\"&&(c=c.replace(/\\/g,"/"));let _=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,_),_}}return Zc=d,Zc}var Jc,ah;function eHe(){if(ah)return Jc;ah=1;const e=39,t=34,n=92,a=47,s=10,o=32,i=12,r=9,u=13,l=91,d=93,E=40,c=41,m=123,_=125,h=59,O=42,A=58,R=64,g=/[\t\n\f\r "#'()/;[\\\]{}]/g,I=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,N=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return Jc=function(y,D={}){let M=y.css.valueOf(),P=D.ignoreErrors,W,Q,Se,J,Ee,fe,Pe,He,et,Ve,_t=M.length,we=0,se=[],ke=[];function pt(){return we}function me(oe){throw y.error("Unclosed "+oe,we)}function Z(){return ke.length===0&&we>=_t}function Ae(oe){if(ke.length)return ke.pop();if(we>=_t)return;let U=oe?oe.ignoreUnclosed:!1;switch(W=M.charCodeAt(we),W){case s:case o:case r:case u:case i:{J=we;do J+=1,W=M.charCodeAt(J);while(W===o||W===s||W===r||W===u||W===i);fe=["space",M.slice(we,J)],we=J-1;break}case l:case d:case m:case _:case A:case h:case c:{let k=String.fromCharCode(W);fe=[k,k,we];break}case E:{if(Ve=se.length?se.pop()[1]:"",et=M.charCodeAt(we+1),Ve==="url"&&et!==e&&et!==t&&et!==o&&et!==s&&et!==r&&et!==i&&et!==u){J=we;do{if(Pe=!1,J=M.indexOf(")",J+1),J===-1)if(P||U){J=we;break}else me("bracket");for(He=J;M.charCodeAt(He-1)===n;)He-=1,Pe=!Pe}while(Pe);fe=["brackets",M.slice(we,J+1),we,J],we=J}else J=M.indexOf(")",we+1),Q=M.slice(we,J+1),J===-1||N.test(Q)?fe=["(","(",we]:(fe=["brackets",Q,we,J],we=J);break}case e:case t:{Ee=W===e?"'":'"',J=we;do{if(Pe=!1,J=M.indexOf(Ee,J+1),J===-1)if(P||U){J=we+1;break}else me("string");for(He=J;M.charCodeAt(He-1)===n;)He-=1,Pe=!Pe}while(Pe);fe=["string",M.slice(we,J+1),we,J],we=J;break}case R:{g.lastIndex=we+1,g.test(M),g.lastIndex===0?J=M.length-1:J=g.lastIndex-2,fe=["at-word",M.slice(we,J+1),we,J],we=J;break}case n:{for(J=we,Se=!0;M.charCodeAt(J+1)===n;)J+=1,Se=!Se;if(W=M.charCodeAt(J+1),Se&&W!==a&&W!==o&&W!==s&&W!==r&&W!==u&&W!==i&&(J+=1,b.test(M.charAt(J)))){for(;b.test(M.charAt(J+1));)J+=1;M.charCodeAt(J+1)===o&&(J+=1)}fe=["word",M.slice(we,J+1),we,J],we=J;break}default:{W===a&&M.charCodeAt(we+1)===O?(J=M.indexOf("*/",we+2)+1,J===0&&(P||U?J=M.length:me("comment")),fe=["comment",M.slice(we,J+1),we,J],we=J):(I.lastIndex=we+1,I.test(M),I.lastIndex===0?J=M.length-1:J=I.lastIndex-2,fe=["word",M.slice(we,J+1),we,J],se.push(fe),we=J);break}}return we++,fe}function Te(oe){ke.push(oe)}return{back:Te,endOfFile:Z,nextToken:Ae,position:pt}},Jc}var ed,sh;function tHe(){if(sh)return ed;sh=1;let e=Up(),t=Ul(),n=kl(),a=lr(),s=wp(),o=eHe();const i={empty:!0,space:!0};function r(l){for(let d=l.length-1;d>=0;d--){let E=l[d],c=E[3]||E[2];if(c)return c}}class u{constructor(d){this.input=d,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:d,start:{column:1,line:1,offset:0}}}atrule(d){let E=new e;E.name=d[1].slice(1),E.name===""&&this.unnamedAtrule(E,d),this.init(E,d[2]);let c,m,_,h=!1,O=!1,A=[],R=[];for(;!this.tokenizer.endOfFile();){if(d=this.tokenizer.nextToken(),c=d[0],c==="("||c==="["?R.push(c==="("?")":"]"):c==="{"&&R.length>0?R.push("}"):c===R[R.length-1]&&R.pop(),R.length===0)if(c===";"){E.source.end=this.getPosition(d[2]),E.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){O=!0;break}else if(c==="}"){if(A.length>0){for(_=A.length-1,m=A[_];m&&m[0]==="space";)m=A[--_];m&&(E.source.end=this.getPosition(m[3]||m[2]),E.source.end.offset++)}this.end(d);break}else A.push(d);else A.push(d);if(this.tokenizer.endOfFile()){h=!0;break}}E.raws.between=this.spacesAndCommentsFromEnd(A),A.length?(E.raws.afterName=this.spacesAndCommentsFromStart(A),this.raw(E,"params",A),h&&(d=A[A.length-1],E.source.end=this.getPosition(d[3]||d[2]),E.source.end.offset++,this.spaces=E.raws.between,E.raws.between="")):(E.raws.afterName="",E.params=""),O&&(E.nodes=[],this.current=E)}checkMissedSemicolon(d){let E=this.colon(d);if(E===!1)return;let c=0,m;for(let _=E-1;_>=0&&(m=d[_],!(m[0]!=="space"&&(c+=1,c===2)));_--);throw this.input.error("Missed semicolon",m[0]==="word"?m[3]+1:m[2])}colon(d){let E=0,c,m,_;for(let[h,O]of d.entries()){if(m=O,_=m[0],_==="("&&(E+=1),_===")"&&(E-=1),E===0&&_===":")if(!c)this.doubleColon(m);else{if(c[0]==="word"&&c[1]==="progid")continue;return h}c=m}return!1}comment(d){let E=new t;this.init(E,d[2]),E.source.end=this.getPosition(d[3]||d[2]),E.source.end.offset++;let c=d[1].slice(2,-2);if(/^\s*$/.test(c))E.text="",E.raws.left=c,E.raws.right="";else{let m=c.match(/^(\s*)([^]*\S)(\s*)$/);E.text=m[2],E.raws.left=m[1],E.raws.right=m[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(d,E){let c=new n;this.init(c,d[0][2]);let m=d[d.length-1];for(m[0]===";"&&(this.semicolon=!0,d.pop()),c.source.end=this.getPosition(m[3]||m[2]||r(d)),c.source.end.offset++;d[0][0]!=="word";)d.length===1&&this.unknownWord(d),c.raws.before+=d.shift()[1];for(c.source.start=this.getPosition(d[0][2]),c.prop="";d.length;){let R=d[0][0];if(R===":"||R==="space"||R==="comment")break;c.prop+=d.shift()[1]}c.raws.between="";let _;for(;d.length;)if(_=d.shift(),_[0]===":"){c.raws.between+=_[1];break}else _[0]==="word"&&/\w/.test(_[1])&&this.unknownWord([_]),c.raws.between+=_[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let h=[],O;for(;d.length&&(O=d[0][0],!(O!=="space"&&O!=="comment"));)h.push(d.shift());this.precheckMissedSemicolon(d);for(let R=d.length-1;R>=0;R--){if(_=d[R],_[1].toLowerCase()==="!important"){c.important=!0;let g=this.stringFrom(d,R);g=this.spacesFromEnd(d)+g,g!==" !important"&&(c.raws.important=g);break}else if(_[1].toLowerCase()==="important"){let g=d.slice(0),I="";for(let N=R;N>0;N--){let b=g[N][0];if(I.trim().startsWith("!")&&b!=="space")break;I=g.pop()[1]+I}I.trim().startsWith("!")&&(c.important=!0,c.raws.important=I,d=g)}if(_[0]!=="space"&&_[0]!=="comment")break}d.some(R=>R[0]!=="space"&&R[0]!=="comment")&&(c.raws.between+=h.map(R=>R[1]).join(""),h=[]),this.raw(c,"value",h.concat(d),E),c.value.includes(":")&&!E&&this.checkMissedSemicolon(d)}doubleColon(d){throw this.input.error("Double colon",{offset:d[2]},{offset:d[2]+d[1].length})}emptyRule(d){let E=new s;this.init(E,d[2]),E.selector="",E.raws.between="",this.current=E}end(d){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(d[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(d)}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(d){if(this.spaces+=d[1],this.current.nodes){let E=this.current.nodes[this.current.nodes.length-1];E&&E.type==="rule"&&!E.raws.ownSemicolon&&(E.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(d){let E=this.input.fromOffset(d);return{column:E.col,line:E.line,offset:d}}init(d,E){this.current.push(d),d.source={input:this.input,start:this.getPosition(E)},d.raws.before=this.spaces,this.spaces="",d.type!=="comment"&&(this.semicolon=!1)}other(d){let E=!1,c=null,m=!1,_=null,h=[],O=d[1].startsWith("--"),A=[],R=d;for(;R;){if(c=R[0],A.push(R),c==="("||c==="[")_||(_=R),h.push(c==="("?")":"]");else if(O&&m&&c==="{")_||(_=R),h.push("}");else if(h.length===0)if(c===";")if(m){this.decl(A,O);return}else break;else if(c==="{"){this.rule(A);return}else if(c==="}"){this.tokenizer.back(A.pop()),E=!0;break}else c===":"&&(m=!0);else c===h[h.length-1]&&(h.pop(),h.length===0&&(_=null));R=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(E=!0),h.length>0&&this.unclosedBracket(_),E&&m){if(!O)for(;A.length&&(R=A[A.length-1][0],!(R!=="space"&&R!=="comment"));)this.tokenizer.back(A.pop());this.decl(A,O)}else this.unknownWord(A)}parse(){let d;for(;!this.tokenizer.endOfFile();)switch(d=this.tokenizer.nextToken(),d[0]){case"space":this.spaces+=d[1];break;case";":this.freeSemicolon(d);break;case"}":this.end(d);break;case"comment":this.comment(d);break;case"at-word":this.atrule(d);break;case"{":this.emptyRule(d);break;default:this.other(d);break}this.endFile()}precheckMissedSemicolon(){}raw(d,E,c,m){let _,h,O=c.length,A="",R=!0,g,I;for(let N=0;Nb+C[1],"");d.raws[E]={raw:N,value:A}}d[E]=A}rule(d){d.pop();let E=new s;this.init(E,d[0][2]),E.raws.between=this.spacesAndCommentsFromEnd(d),this.raw(E,"selector",d),this.current=E}spacesAndCommentsFromEnd(d){let E,c="";for(;d.length&&(E=d[d.length-1][0],!(E!=="space"&&E!=="comment"));)c=d.pop()[1]+c;return c}spacesAndCommentsFromStart(d){let E,c="";for(;d.length&&(E=d[0][0],!(E!=="space"&&E!=="comment"));)c+=d.shift()[1];return c}spacesFromEnd(d){let E,c="";for(;d.length&&(E=d[d.length-1][0],E==="space");)c=d.pop()[1]+c;return c}stringFrom(d,E){let c="";for(let m=E;ma.type==="warning")}get content(){return this.css}}return ad=t,t.default=t,ad}var sd,uh;function OO(){if(uh)return sd;uh=1;let e=Ks(),t=kp(),n=SO(),a=Mp(),s=Wp(),o=lr(),i=yl(),{isClean:r,my:u}=$p();const l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},E={Once:!0,postcssPlugin:!0,prepare:!0},c=0;function m(g){return typeof g=="object"&&typeof g.then=="function"}function _(g){let I=!1,N=l[g.type];return g.type==="decl"?I=g.prop.toLowerCase():g.type==="atrule"&&(I=g.name.toLowerCase()),I&&g.append?[N,N+"-"+I,c,N+"Exit",N+"Exit-"+I]:I?[N,N+"-"+I,N+"Exit",N+"Exit-"+I]:g.append?[N,c,N+"Exit"]:[N,N+"Exit"]}function h(g){let I;return g.type==="document"?I=["Document",c,"DocumentExit"]:g.type==="root"?I=["Root",c,"RootExit"]:I=_(g),{eventIndex:0,events:I,iterator:0,node:g,visitorIndex:0,visitors:[]}}function O(g){return g[r]=!1,g.nodes&&g.nodes.forEach(I=>O(I)),g}let A={};class R{constructor(I,N,b){this.stringified=!1,this.processed=!1;let C;if(typeof N=="object"&&N!==null&&(N.type==="root"||N.type==="document"))C=O(N);else if(N instanceof R||N instanceof s)C=O(N.root),N.map&&(typeof b.map>"u"&&(b.map={}),b.map.inline||(b.map.inline=!1),b.map.prev=N.map);else{let y=a;b.syntax&&(y=b.syntax.parse),b.parser&&(y=b.parser),y.parse&&(y=y.parse);try{C=y(N,b)}catch(D){this.processed=!0,this.error=D}C&&!C[u]&&e.rebuild(C)}this.result=new s(I,C,b),this.helpers={...A,postcss:A,result:this.result},this.plugins=this.processor.plugins.map(y=>typeof y=="object"&&y.prepare?{...y,...y.prepare(this.result)}:y)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(I){return this.async().catch(I)}finally(I){return this.async().then(I,I)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(I,N){let b=this.result.lastPlugin;try{N&&N.addToError(I),this.error=I,I.name==="CssSyntaxError"&&!I.plugin?(I.plugin=b.postcssPlugin,I.setMessage()):b.postcssVersion}catch(C){console&&console.error&&console.error(C)}return I}prepareVisitors(){this.listeners={};let I=(N,b,C)=>{this.listeners[b]||(this.listeners[b]=[]),this.listeners[b].push([N,C])};for(let N of this.plugins)if(typeof N=="object")for(let b in N){if(!d[b]&&/^[A-Z]/.test(b))throw new Error(`Unknown event ${b} in ${N.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!E[b])if(typeof N[b]=="object")for(let C in N[b])C==="*"?I(N,b,N[b][C]):I(N,b+"-"+C.toLowerCase(),N[b][C]);else typeof N[b]=="function"&&I(N,b,N[b])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let I=0;I0;){let b=this.visitTick(N);if(m(b))try{await b}catch(C){let y=N[N.length-1].node;throw this.handleError(C,y)}}}if(this.listeners.OnceExit)for(let[N,b]of this.listeners.OnceExit){this.result.lastPlugin=N;try{if(I.type==="document"){let C=I.nodes.map(y=>b(y,this.helpers));await Promise.all(C)}else await b(I,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(I){this.result.lastPlugin=I;try{if(typeof I=="object"&&I.Once){if(this.result.root.type==="document"){let N=this.result.root.nodes.map(b=>I.Once(b,this.helpers));return m(N[0])?Promise.all(N):N}return I.Once(this.result.root,this.helpers)}else if(typeof I=="function")return I(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 I=this.result.opts,N=i;I.syntax&&(N=I.syntax.stringify),I.stringifier&&(N=I.stringifier),N.stringify&&(N=N.stringify);let C=new n(N,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[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 I of this.plugins){let N=this.runOnRoot(I);if(m(N))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let I=this.result.root;for(;!I[r];)I[r]=!0,this.walkSync(I);if(this.listeners.OnceExit)if(I.type==="document")for(let N of I.nodes)this.visitSync(this.listeners.OnceExit,N);else this.visitSync(this.listeners.OnceExit,I)}return this.result}then(I,N){return this.async().then(I,N)}toString(){return this.css}visitSync(I,N){for(let[b,C]of I){this.result.lastPlugin=b;let y;try{y=C(N,this.helpers)}catch(D){throw this.handleError(D,N.proxyOf)}if(N.type!=="root"&&N.type!=="document"&&!N.parent)return!0;if(m(y))throw this.getAsyncError()}}visitTick(I){let N=I[I.length-1],{node:b,visitors:C}=N;if(b.type!=="root"&&b.type!=="document"&&!b.parent){I.pop();return}if(C.length>0&&N.visitorIndex{C[r]||this.walkSync(C)});else{let C=this.listeners[b];if(C&&this.visitSync(C,I.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"}}return R.registerPostcss=g=>{A=g},sd=R,R.default=R,o.registerLazyResult(R),t.registerLazyResult(R),sd}var od,lh;function nHe(){if(lh)return od;lh=1;let e=SO(),t=Mp();const n=Wp();let a=yl();class s{constructor(i,r,u){r=r.toString(),this.stringified=!1,this._processor=i,this._css=r,this._opts=u,this._map=void 0;let l,d=a;this.result=new n(this._processor,l,this._opts),this.result.css=r;let E=this;Object.defineProperty(this.result,"root",{get(){return E.root}});let c=new e(d,l,this._opts,r);if(c.isMap()){let[m,_]=c.generate();m&&(this.result.css=m),_&&(this.result.map=_)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(i){return this.async().catch(i)}finally(i){return this.async().then(i,i)}sync(){if(this.error)throw this.error;return this.result}then(i,r){return this.async().then(i,r)}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 i,r=t;try{i=r(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=i,i}get[Symbol.toStringTag](){return"NoWorkResult"}}return od=s,s.default=s,od}var id,ch;function aHe(){if(ch)return id;ch=1;let e=kp(),t=OO(),n=nHe(),a=lr();class s{constructor(i=[]){this.version="8.4.49",this.plugins=this.normalize(i)}normalize(i){let r=[];for(let u of i)if(u.postcss===!0?u=u():u.postcss&&(u=u.postcss),typeof u=="object"&&Array.isArray(u.plugins))r=r.concat(u.plugins);else if(typeof u=="object"&&u.postcssPlugin)r.push(u);else if(typeof u=="function")r.push(u);else if(!(typeof u=="object"&&(u.parse||u.stringify)))throw new Error(u+" is not a PostCSS plugin");return r}process(i,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new n(this,i,r):new t(this,i,r)}use(i){return this.plugins=this.plugins.concat(this.normalize([i])),this}}return id=s,s.default=s,a.registerProcessor(s),e.registerProcessor(s),id}var rd,dh;function sHe(){if(dh)return rd;dh=1;var e={};let t=Up(),n=Ul(),a=Ks(),s=yp(),o=kl(),i=kp(),r=JVe(),u=wl(),l=OO(),d=hO(),E=$l(),c=Mp(),m=aHe(),_=Wp(),h=lr(),O=wp(),A=yl(),R=AO();function g(...I){return I.length===1&&Array.isArray(I[0])&&(I=I[0]),new m(I)}return g.plugin=function(N,b){let C=!1;function y(...M){console&&console.warn&&!C&&(C=!0,console.warn(N+`: postcss.plugin was deprecated. Migration guide: +`),this.css+=m+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let m=this.toUrl(this.path(c.file)),_=c.root||e(c.file),f;this.mapOpts.sourcesContent===!1?(f=new s(c.text),f.sourcesContent&&(f.sourcesContent=null)):f=c.consumer(),this.map.applySourceMap(f,m,this.toUrl(this.path(_)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let m=this.root.nodes.length-1;m>=0;m--)c=this.root.nodes[m],c.type==="comment"&&c.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(m)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&u&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,m=>{c+=m}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=o.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0}),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 o({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,m=1,_="",f={generated:{column:0,line:0},original:{column:0,line:0},source:""},O,S;this.stringify(this.root,(R,I,g)=>{if(this.css+=R,I&&g!=="end"&&(f.generated.line=c,f.generated.column=m-1,I.source&&I.source.start?(f.source=this.sourcePath(I),f.original.line=I.source.start.line,f.original.column=I.source.start.column-1,this.map.addMapping(f)):(f.source=_,f.original.line=1,f.original.column=0,this.map.addMapping(f))),S=R.match(/\n/g),S?(c+=S.length,O=R.lastIndexOf(` +`),m=R.length-O):m+=R.length,I&&g!=="start"){let N=I.parent||{raws:{}};(!(I.type==="decl"||I.type==="atrule"&&!I.nodes)||I!==N.last||N.raws.semicolon)&&(I.source&&I.source.end?(f.source=this.sourcePath(I),f.original.line=I.source.end.line,f.original.column=I.source.end.column-1,f.generated.line=c,f.generated.column=m-2,this.map.addMapping(f)):(f.source=_,f.original.line=1,f.original.column=0,f.generated.line=c,f.generated.column=m-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(m=>m.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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let m=this.memoizedPaths.get(c);if(m)return m;let _=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(_=e(n(_,this.mapOpts.annotation)));let f=t(_,c);return this.memoizedPaths.set(c,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let m=c.source.input.map;this.previousMaps.includes(m)||this.previousMaps.push(m)}});else{let c=new r(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(m=>{if(m.source){let _=m.source.input.from;if(_&&!c[_]){c[_]=!0;let f=this.usesFileUrls?this.toFileUrl(_):this.toUrl(this.path(_));this.map.setSourceContent(f,m.source.input.css)}}});else if(this.css){let m=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(m,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let m=this.memoizedFileURLs.get(c);if(m)return m;if(i){let _=i(c).toString();return this.memoizedFileURLs.set(c,_),_}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let m=this.memoizedURLs.get(c);if(m)return m;a==="\\"&&(c=c.replace(/\\/g,"/"));let _=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,_),_}}return Zc=d,Zc}var Jc,ah;function eHe(){if(ah)return Jc;ah=1;const e=39,t=34,n=92,a=47,s=10,o=32,i=12,r=9,u=13,l=91,d=93,E=40,c=41,m=123,_=125,f=59,O=42,S=58,R=64,I=/[\t\n\f\r "#'()/;[\\\]{}]/g,g=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,N=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return Jc=function(y,D={}){let M=y.css.valueOf(),P=D.ignoreErrors,W,Q,Se,J,Ee,fe,Pe,Ke,et,He,_t=M.length,we=0,se=[],ke=[];function pt(){return we}function me(oe){throw y.error("Unclosed "+oe,we)}function Z(){return ke.length===0&&we>=_t}function Ae(oe){if(ke.length)return ke.pop();if(we>=_t)return;let U=oe?oe.ignoreUnclosed:!1;switch(W=M.charCodeAt(we),W){case s:case o:case r:case u:case i:{J=we;do J+=1,W=M.charCodeAt(J);while(W===o||W===s||W===r||W===u||W===i);fe=["space",M.slice(we,J)],we=J-1;break}case l:case d:case m:case _:case S:case f:case c:{let k=String.fromCharCode(W);fe=[k,k,we];break}case E:{if(He=se.length?se.pop()[1]:"",et=M.charCodeAt(we+1),He==="url"&&et!==e&&et!==t&&et!==o&&et!==s&&et!==r&&et!==i&&et!==u){J=we;do{if(Pe=!1,J=M.indexOf(")",J+1),J===-1)if(P||U){J=we;break}else me("bracket");for(Ke=J;M.charCodeAt(Ke-1)===n;)Ke-=1,Pe=!Pe}while(Pe);fe=["brackets",M.slice(we,J+1),we,J],we=J}else J=M.indexOf(")",we+1),Q=M.slice(we,J+1),J===-1||N.test(Q)?fe=["(","(",we]:(fe=["brackets",Q,we,J],we=J);break}case e:case t:{Ee=W===e?"'":'"',J=we;do{if(Pe=!1,J=M.indexOf(Ee,J+1),J===-1)if(P||U){J=we+1;break}else me("string");for(Ke=J;M.charCodeAt(Ke-1)===n;)Ke-=1,Pe=!Pe}while(Pe);fe=["string",M.slice(we,J+1),we,J],we=J;break}case R:{I.lastIndex=we+1,I.test(M),I.lastIndex===0?J=M.length-1:J=I.lastIndex-2,fe=["at-word",M.slice(we,J+1),we,J],we=J;break}case n:{for(J=we,Se=!0;M.charCodeAt(J+1)===n;)J+=1,Se=!Se;if(W=M.charCodeAt(J+1),Se&&W!==a&&W!==o&&W!==s&&W!==r&&W!==u&&W!==i&&(J+=1,b.test(M.charAt(J)))){for(;b.test(M.charAt(J+1));)J+=1;M.charCodeAt(J+1)===o&&(J+=1)}fe=["word",M.slice(we,J+1),we,J],we=J;break}default:{W===a&&M.charCodeAt(we+1)===O?(J=M.indexOf("*/",we+2)+1,J===0&&(P||U?J=M.length:me("comment")),fe=["comment",M.slice(we,J+1),we,J],we=J):(g.lastIndex=we+1,g.test(M),g.lastIndex===0?J=M.length-1:J=g.lastIndex-2,fe=["word",M.slice(we,J+1),we,J],se.push(fe),we=J);break}}return we++,fe}function Te(oe){ke.push(oe)}return{back:Te,endOfFile:Z,nextToken:Ae,position:pt}},Jc}var ed,sh;function tHe(){if(sh)return ed;sh=1;let e=Up(),t=Ul(),n=kl(),a=lr(),s=wp(),o=eHe();const i={empty:!0,space:!0};function r(l){for(let d=l.length-1;d>=0;d--){let E=l[d],c=E[3]||E[2];if(c)return c}}class u{constructor(d){this.input=d,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:d,start:{column:1,line:1,offset:0}}}atrule(d){let E=new e;E.name=d[1].slice(1),E.name===""&&this.unnamedAtrule(E,d),this.init(E,d[2]);let c,m,_,f=!1,O=!1,S=[],R=[];for(;!this.tokenizer.endOfFile();){if(d=this.tokenizer.nextToken(),c=d[0],c==="("||c==="["?R.push(c==="("?")":"]"):c==="{"&&R.length>0?R.push("}"):c===R[R.length-1]&&R.pop(),R.length===0)if(c===";"){E.source.end=this.getPosition(d[2]),E.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){O=!0;break}else if(c==="}"){if(S.length>0){for(_=S.length-1,m=S[_];m&&m[0]==="space";)m=S[--_];m&&(E.source.end=this.getPosition(m[3]||m[2]),E.source.end.offset++)}this.end(d);break}else S.push(d);else S.push(d);if(this.tokenizer.endOfFile()){f=!0;break}}E.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(E.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(E,"params",S),f&&(d=S[S.length-1],E.source.end=this.getPosition(d[3]||d[2]),E.source.end.offset++,this.spaces=E.raws.between,E.raws.between="")):(E.raws.afterName="",E.params=""),O&&(E.nodes=[],this.current=E)}checkMissedSemicolon(d){let E=this.colon(d);if(E===!1)return;let c=0,m;for(let _=E-1;_>=0&&(m=d[_],!(m[0]!=="space"&&(c+=1,c===2)));_--);throw this.input.error("Missed semicolon",m[0]==="word"?m[3]+1:m[2])}colon(d){let E=0,c,m,_;for(let[f,O]of d.entries()){if(m=O,_=m[0],_==="("&&(E+=1),_===")"&&(E-=1),E===0&&_===":")if(!c)this.doubleColon(m);else{if(c[0]==="word"&&c[1]==="progid")continue;return f}c=m}return!1}comment(d){let E=new t;this.init(E,d[2]),E.source.end=this.getPosition(d[3]||d[2]),E.source.end.offset++;let c=d[1].slice(2,-2);if(/^\s*$/.test(c))E.text="",E.raws.left=c,E.raws.right="";else{let m=c.match(/^(\s*)([^]*\S)(\s*)$/);E.text=m[2],E.raws.left=m[1],E.raws.right=m[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(d,E){let c=new n;this.init(c,d[0][2]);let m=d[d.length-1];for(m[0]===";"&&(this.semicolon=!0,d.pop()),c.source.end=this.getPosition(m[3]||m[2]||r(d)),c.source.end.offset++;d[0][0]!=="word";)d.length===1&&this.unknownWord(d),c.raws.before+=d.shift()[1];for(c.source.start=this.getPosition(d[0][2]),c.prop="";d.length;){let R=d[0][0];if(R===":"||R==="space"||R==="comment")break;c.prop+=d.shift()[1]}c.raws.between="";let _;for(;d.length;)if(_=d.shift(),_[0]===":"){c.raws.between+=_[1];break}else _[0]==="word"&&/\w/.test(_[1])&&this.unknownWord([_]),c.raws.between+=_[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let f=[],O;for(;d.length&&(O=d[0][0],!(O!=="space"&&O!=="comment"));)f.push(d.shift());this.precheckMissedSemicolon(d);for(let R=d.length-1;R>=0;R--){if(_=d[R],_[1].toLowerCase()==="!important"){c.important=!0;let I=this.stringFrom(d,R);I=this.spacesFromEnd(d)+I,I!==" !important"&&(c.raws.important=I);break}else if(_[1].toLowerCase()==="important"){let I=d.slice(0),g="";for(let N=R;N>0;N--){let b=I[N][0];if(g.trim().startsWith("!")&&b!=="space")break;g=I.pop()[1]+g}g.trim().startsWith("!")&&(c.important=!0,c.raws.important=g,d=I)}if(_[0]!=="space"&&_[0]!=="comment")break}d.some(R=>R[0]!=="space"&&R[0]!=="comment")&&(c.raws.between+=f.map(R=>R[1]).join(""),f=[]),this.raw(c,"value",f.concat(d),E),c.value.includes(":")&&!E&&this.checkMissedSemicolon(d)}doubleColon(d){throw this.input.error("Double colon",{offset:d[2]},{offset:d[2]+d[1].length})}emptyRule(d){let E=new s;this.init(E,d[2]),E.selector="",E.raws.between="",this.current=E}end(d){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(d[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(d)}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(d){if(this.spaces+=d[1],this.current.nodes){let E=this.current.nodes[this.current.nodes.length-1];E&&E.type==="rule"&&!E.raws.ownSemicolon&&(E.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(d){let E=this.input.fromOffset(d);return{column:E.col,line:E.line,offset:d}}init(d,E){this.current.push(d),d.source={input:this.input,start:this.getPosition(E)},d.raws.before=this.spaces,this.spaces="",d.type!=="comment"&&(this.semicolon=!1)}other(d){let E=!1,c=null,m=!1,_=null,f=[],O=d[1].startsWith("--"),S=[],R=d;for(;R;){if(c=R[0],S.push(R),c==="("||c==="[")_||(_=R),f.push(c==="("?")":"]");else if(O&&m&&c==="{")_||(_=R),f.push("}");else if(f.length===0)if(c===";")if(m){this.decl(S,O);return}else break;else if(c==="{"){this.rule(S);return}else if(c==="}"){this.tokenizer.back(S.pop()),E=!0;break}else c===":"&&(m=!0);else c===f[f.length-1]&&(f.pop(),f.length===0&&(_=null));R=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(E=!0),f.length>0&&this.unclosedBracket(_),E&&m){if(!O)for(;S.length&&(R=S[S.length-1][0],!(R!=="space"&&R!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,O)}else this.unknownWord(S)}parse(){let d;for(;!this.tokenizer.endOfFile();)switch(d=this.tokenizer.nextToken(),d[0]){case"space":this.spaces+=d[1];break;case";":this.freeSemicolon(d);break;case"}":this.end(d);break;case"comment":this.comment(d);break;case"at-word":this.atrule(d);break;case"{":this.emptyRule(d);break;default:this.other(d);break}this.endFile()}precheckMissedSemicolon(){}raw(d,E,c,m){let _,f,O=c.length,S="",R=!0,I,g;for(let N=0;Nb+C[1],"");d.raws[E]={raw:N,value:S}}d[E]=S}rule(d){d.pop();let E=new s;this.init(E,d[0][2]),E.raws.between=this.spacesAndCommentsFromEnd(d),this.raw(E,"selector",d),this.current=E}spacesAndCommentsFromEnd(d){let E,c="";for(;d.length&&(E=d[d.length-1][0],!(E!=="space"&&E!=="comment"));)c=d.pop()[1]+c;return c}spacesAndCommentsFromStart(d){let E,c="";for(;d.length&&(E=d[0][0],!(E!=="space"&&E!=="comment"));)c+=d.shift()[1];return c}spacesFromEnd(d){let E,c="";for(;d.length&&(E=d[d.length-1][0],E==="space");)c=d.pop()[1]+c;return c}stringFrom(d,E){let c="";for(let m=E;ma.type==="warning")}get content(){return this.css}}return ad=t,t.default=t,ad}var sd,uh;function OO(){if(uh)return sd;uh=1;let e=Ks(),t=kp(),n=SO(),a=Mp(),s=Wp(),o=lr(),i=yl(),{isClean:r,my:u}=$p();const l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},E={Once:!0,postcssPlugin:!0,prepare:!0},c=0;function m(I){return typeof I=="object"&&typeof I.then=="function"}function _(I){let g=!1,N=l[I.type];return I.type==="decl"?g=I.prop.toLowerCase():I.type==="atrule"&&(g=I.name.toLowerCase()),g&&I.append?[N,N+"-"+g,c,N+"Exit",N+"Exit-"+g]:g?[N,N+"-"+g,N+"Exit",N+"Exit-"+g]:I.append?[N,c,N+"Exit"]:[N,N+"Exit"]}function f(I){let g;return I.type==="document"?g=["Document",c,"DocumentExit"]:I.type==="root"?g=["Root",c,"RootExit"]:g=_(I),{eventIndex:0,events:g,iterator:0,node:I,visitorIndex:0,visitors:[]}}function O(I){return I[r]=!1,I.nodes&&I.nodes.forEach(g=>O(g)),I}let S={};class R{constructor(g,N,b){this.stringified=!1,this.processed=!1;let C;if(typeof N=="object"&&N!==null&&(N.type==="root"||N.type==="document"))C=O(N);else if(N instanceof R||N instanceof s)C=O(N.root),N.map&&(typeof b.map>"u"&&(b.map={}),b.map.inline||(b.map.inline=!1),b.map.prev=N.map);else{let y=a;b.syntax&&(y=b.syntax.parse),b.parser&&(y=b.parser),y.parse&&(y=y.parse);try{C=y(N,b)}catch(D){this.processed=!0,this.error=D}C&&!C[u]&&e.rebuild(C)}this.result=new s(g,C,b),this.helpers={...S,postcss:S,result:this.result},this.plugins=this.processor.plugins.map(y=>typeof y=="object"&&y.prepare?{...y,...y.prepare(this.result)}:y)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(g){return this.async().catch(g)}finally(g){return this.async().then(g,g)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(g,N){let b=this.result.lastPlugin;try{N&&N.addToError(g),this.error=g,g.name==="CssSyntaxError"&&!g.plugin?(g.plugin=b.postcssPlugin,g.setMessage()):b.postcssVersion}catch(C){console&&console.error&&console.error(C)}return g}prepareVisitors(){this.listeners={};let g=(N,b,C)=>{this.listeners[b]||(this.listeners[b]=[]),this.listeners[b].push([N,C])};for(let N of this.plugins)if(typeof N=="object")for(let b in N){if(!d[b]&&/^[A-Z]/.test(b))throw new Error(`Unknown event ${b} in ${N.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!E[b])if(typeof N[b]=="object")for(let C in N[b])C==="*"?g(N,b,N[b][C]):g(N,b+"-"+C.toLowerCase(),N[b][C]);else typeof N[b]=="function"&&g(N,b,N[b])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let g=0;g0;){let b=this.visitTick(N);if(m(b))try{await b}catch(C){let y=N[N.length-1].node;throw this.handleError(C,y)}}}if(this.listeners.OnceExit)for(let[N,b]of this.listeners.OnceExit){this.result.lastPlugin=N;try{if(g.type==="document"){let C=g.nodes.map(y=>b(y,this.helpers));await Promise.all(C)}else await b(g,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(g){this.result.lastPlugin=g;try{if(typeof g=="object"&&g.Once){if(this.result.root.type==="document"){let N=this.result.root.nodes.map(b=>g.Once(b,this.helpers));return m(N[0])?Promise.all(N):N}return g.Once(this.result.root,this.helpers)}else if(typeof g=="function")return g(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 g=this.result.opts,N=i;g.syntax&&(N=g.syntax.stringify),g.stringifier&&(N=g.stringifier),N.stringify&&(N=N.stringify);let C=new n(N,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[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 g of this.plugins){let N=this.runOnRoot(g);if(m(N))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let g=this.result.root;for(;!g[r];)g[r]=!0,this.walkSync(g);if(this.listeners.OnceExit)if(g.type==="document")for(let N of g.nodes)this.visitSync(this.listeners.OnceExit,N);else this.visitSync(this.listeners.OnceExit,g)}return this.result}then(g,N){return this.async().then(g,N)}toString(){return this.css}visitSync(g,N){for(let[b,C]of g){this.result.lastPlugin=b;let y;try{y=C(N,this.helpers)}catch(D){throw this.handleError(D,N.proxyOf)}if(N.type!=="root"&&N.type!=="document"&&!N.parent)return!0;if(m(y))throw this.getAsyncError()}}visitTick(g){let N=g[g.length-1],{node:b,visitors:C}=N;if(b.type!=="root"&&b.type!=="document"&&!b.parent){g.pop();return}if(C.length>0&&N.visitorIndex{C[r]||this.walkSync(C)});else{let C=this.listeners[b];if(C&&this.visitSync(C,g.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"}}return R.registerPostcss=I=>{S=I},sd=R,R.default=R,o.registerLazyResult(R),t.registerLazyResult(R),sd}var od,lh;function nHe(){if(lh)return od;lh=1;let e=SO(),t=Mp();const n=Wp();let a=yl();class s{constructor(i,r,u){r=r.toString(),this.stringified=!1,this._processor=i,this._css=r,this._opts=u,this._map=void 0;let l,d=a;this.result=new n(this._processor,l,this._opts),this.result.css=r;let E=this;Object.defineProperty(this.result,"root",{get(){return E.root}});let c=new e(d,l,this._opts,r);if(c.isMap()){let[m,_]=c.generate();m&&(this.result.css=m),_&&(this.result.map=_)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(i){return this.async().catch(i)}finally(i){return this.async().then(i,i)}sync(){if(this.error)throw this.error;return this.result}then(i,r){return this.async().then(i,r)}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 i,r=t;try{i=r(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=i,i}get[Symbol.toStringTag](){return"NoWorkResult"}}return od=s,s.default=s,od}var id,ch;function aHe(){if(ch)return id;ch=1;let e=kp(),t=OO(),n=nHe(),a=lr();class s{constructor(i=[]){this.version="8.4.49",this.plugins=this.normalize(i)}normalize(i){let r=[];for(let u of i)if(u.postcss===!0?u=u():u.postcss&&(u=u.postcss),typeof u=="object"&&Array.isArray(u.plugins))r=r.concat(u.plugins);else if(typeof u=="object"&&u.postcssPlugin)r.push(u);else if(typeof u=="function")r.push(u);else if(!(typeof u=="object"&&(u.parse||u.stringify)))throw new Error(u+" is not a PostCSS plugin");return r}process(i,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new n(this,i,r):new t(this,i,r)}use(i){return this.plugins=this.plugins.concat(this.normalize([i])),this}}return id=s,s.default=s,a.registerProcessor(s),e.registerProcessor(s),id}var rd,dh;function sHe(){if(dh)return rd;dh=1;var e={};let t=Up(),n=Ul(),a=Ks(),s=yp(),o=kl(),i=kp(),r=JVe(),u=wl(),l=OO(),d=hO(),E=$l(),c=Mp(),m=aHe(),_=Wp(),f=lr(),O=wp(),S=yl(),R=AO();function I(...g){return g.length===1&&Array.isArray(g[0])&&(g=g[0]),new m(g)}return I.plugin=function(N,b){let C=!1;function y(...M){console&&console.warn&&!C&&(C=!0,console.warn(N+`: postcss.plugin was deprecated. Migration guide: https://evilmartians.com/chronicles/postcss-8-plugin-migration`),e.LANG&&e.LANG.startsWith("cn")&&console.warn(N+`: 里面 postcss.plugin 被弃用. 迁移指南: -https://www.w3ctech.com/topic/2226`));let P=b(...M);return P.postcssPlugin=N,P.postcssVersion=new m().version,P}let D;return Object.defineProperty(y,"postcss",{get(){return D||(D=y()),D}}),y.process=function(M,P,W){return g([y(W)]).process(M,P)},y},g.stringify=A,g.parse=c,g.fromJSON=r,g.list=d,g.comment=I=>new n(I),g.atRule=I=>new t(I),g.decl=I=>new o(I),g.rule=I=>new O(I),g.root=I=>new h(I),g.document=I=>new i(I),g.CssSyntaxError=s,g.Declaration=o,g.Container=a,g.Processor=m,g.Document=i,g.Comment=n,g.Warning=R,g.AtRule=t,g.Result=_,g.Input=u,g.Rule=O,g.Root=h,g.Node=E,l.registerPostcss(g),rd=g,g.default=g,rd}var ud,Eh;function oHe(){if(Eh)return ud;Eh=1;const e=GVe(),t=VVe(),{isPlainObject:n}=HVe(),a=KVe(),s=jVe(),{parse:o}=sHe(),i=["img","audio","video","picture","svg","object","map","iframe","embed"],r=["script","style"];function u(O,A){O&&Object.keys(O).forEach(function(R){A(O[R],R)})}function l(O,A){return{}.hasOwnProperty.call(O,A)}function d(O,A){const R=[];return u(O,function(g){A(g)&&R.push(g)}),R}function E(O){for(const A in O)if(l(O,A))return!1;return!0}function c(O){return O.map(function(A){if(!A.url)throw new Error("URL missing");return A.url+(A.w?` ${A.w}w`:"")+(A.h?` ${A.h}h`:"")+(A.d?` ${A.d}x`:"")}).join(", ")}ud=_;const m=/^[^\0\t\n\f\r /<=>]+$/;function _(O,A,R){if(O==null)return"";typeof O=="number"&&(O=O.toString());let g="",I="";function N(oe,U){const k=this;this.tag=oe,this.attribs=U||{},this.tagPosition=g.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(Ee.length){const G=Ee[Ee.length-1];G.text+=k.text}},this.updateParentNodeMediaChildren=function(){Ee.length&&i.includes(this.tag)&&Ee[Ee.length-1].mediaChildren.push(this.tag)}}A=Object.assign({},_.defaults,A),A.parser=Object.assign({},h,A.parser);const b=function(oe){return A.allowedTags===!1||(A.allowedTags||[]).indexOf(oe)>-1};r.forEach(function(oe){b(oe)&&!A.allowVulnerableTags&&console.warn(` +https://www.w3ctech.com/topic/2226`));let P=b(...M);return P.postcssPlugin=N,P.postcssVersion=new m().version,P}let D;return Object.defineProperty(y,"postcss",{get(){return D||(D=y()),D}}),y.process=function(M,P,W){return I([y(W)]).process(M,P)},y},I.stringify=S,I.parse=c,I.fromJSON=r,I.list=d,I.comment=g=>new n(g),I.atRule=g=>new t(g),I.decl=g=>new o(g),I.rule=g=>new O(g),I.root=g=>new f(g),I.document=g=>new i(g),I.CssSyntaxError=s,I.Declaration=o,I.Container=a,I.Processor=m,I.Document=i,I.Comment=n,I.Warning=R,I.AtRule=t,I.Result=_,I.Input=u,I.Rule=O,I.Root=f,I.Node=E,l.registerPostcss(I),rd=I,I.default=I,rd}var ud,Eh;function oHe(){if(Eh)return ud;Eh=1;const e=GVe(),t=VVe(),{isPlainObject:n}=HVe(),a=KVe(),s=jVe(),{parse:o}=sHe(),i=["img","audio","video","picture","svg","object","map","iframe","embed"],r=["script","style"];function u(O,S){O&&Object.keys(O).forEach(function(R){S(O[R],R)})}function l(O,S){return{}.hasOwnProperty.call(O,S)}function d(O,S){const R=[];return u(O,function(I){S(I)&&R.push(I)}),R}function E(O){for(const S in O)if(l(O,S))return!1;return!0}function c(O){return O.map(function(S){if(!S.url)throw new Error("URL missing");return S.url+(S.w?` ${S.w}w`:"")+(S.h?` ${S.h}h`:"")+(S.d?` ${S.d}x`:"")}).join(", ")}ud=_;const m=/^[^\0\t\n\f\r /<=>]+$/;function _(O,S,R){if(O==null)return"";typeof O=="number"&&(O=O.toString());let I="",g="";function N(oe,U){const k=this;this.tag=oe,this.attribs=U||{},this.tagPosition=I.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(Ee.length){const G=Ee[Ee.length-1];G.text+=k.text}},this.updateParentNodeMediaChildren=function(){Ee.length&&i.includes(this.tag)&&Ee[Ee.length-1].mediaChildren.push(this.tag)}}S=Object.assign({},_.defaults,S),S.parser=Object.assign({},f,S.parser);const b=function(oe){return S.allowedTags===!1||(S.allowedTags||[]).indexOf(oe)>-1};r.forEach(function(oe){b(oe)&&!S.allowVulnerableTags&&console.warn(` ⚠️ Your \`allowedTags\` option includes, \`${oe}\`, which is inherently 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 C=A.nonTextTags||["script","style","textarea","option"];let y,D;A.allowedAttributes&&(y={},D={},u(A.allowedAttributes,function(oe,U){y[U]=[];const k=[];oe.forEach(function(G){typeof G=="string"&&G.indexOf("*")>=0?k.push(t(G).replace(/\\\*/g,".*")):y[U].push(G)}),k.length&&(D[U]=new RegExp("^("+k.join("|")+")$"))}));const M={},P={},W={};u(A.allowedClasses,function(oe,U){if(y&&(l(y,U)||(y[U]=[]),y[U].push("class")),M[U]=oe,Array.isArray(oe)){const k=[];M[U]=[],W[U]=[],oe.forEach(function(G){typeof G=="string"&&G.indexOf("*")>=0?k.push(t(G).replace(/\\\*/g,".*")):G instanceof RegExp?W[U].push(G):M[U].push(G)}),k.length&&(P[U]=new RegExp("^("+k.join("|")+")$"))}});const Q={};let Se;u(A.transformTags,function(oe,U){let k;typeof oe=="function"?k=oe:typeof oe=="string"&&(k=_.simpleTransform(oe)),U==="*"?Se=k:Q[U]=k});let J,Ee,fe,Pe,He,et,Ve=!1;we();const _t=new e.Parser({onopentag:function(oe,U){if(A.enforceHtmlBoundary&&oe==="html"&&we(),He){et++;return}const k=new N(oe,U);Ee.push(k);let G=!1;const le=!!k.text;let pe;if(l(Q,oe)&&(pe=Q[oe](oe,U),k.attribs=U=pe.attribs,pe.text!==void 0&&(k.innerText=pe.text),oe!==pe.tagName&&(k.name=oe=pe.tagName,Pe[J]=pe.tagName)),Se&&(pe=Se(oe,U),k.attribs=U=pe.attribs,oe!==pe.tagName&&(k.name=oe=pe.tagName,Pe[J]=pe.tagName)),(!b(oe)||A.disallowedTagsMode==="recursiveEscape"&&!E(fe)||A.nestingLimit!=null&&J>=A.nestingLimit)&&(G=!0,fe[J]=!0,(A.disallowedTagsMode==="discard"||A.disallowedTagsMode==="completelyDiscard")&&C.indexOf(oe)!==-1&&(He=!0,et=1),fe[J]=!0),J++,G){if(A.disallowedTagsMode==="discard"||A.disallowedTagsMode==="completelyDiscard"){if(k.innerText&&!le){const ie=se(k.innerText);A.textFilter?g+=A.textFilter(ie,oe):g+=se(k.innerText),Ve=!0}return}I=g,g=""}g+="<"+oe,oe==="script"&&(A.allowedScriptHostnames||A.allowedScriptDomains)&&(k.innerText=""),(!y||l(y,oe)||y["*"])&&u(U,function(ie,$){if(!m.test($)){delete k.attribs[$];return}if(ie===""&&!A.allowedEmptyAttributes.includes($)&&(A.nonBooleanAttributes.includes($)||A.nonBooleanAttributes.includes("*"))){delete k.attribs[$];return}let z=!1;if(!y||l(y,oe)&&y[oe].indexOf($)!==-1||y["*"]&&y["*"].indexOf($)!==-1||l(D,oe)&&D[oe].test($)||D["*"]&&D["*"].test($))z=!0;else if(y&&y[oe]){for(const V of y[oe])if(n(V)&&V.name&&V.name===$){z=!0;let q="";if(V.multiple===!0){const Re=ie.split(" ");for(const he of Re)V.values.indexOf(he)!==-1&&(q===""?q=he:q+=" "+he)}else V.values.indexOf(ie)>=0&&(q=ie);ie=q}}if(z){if(A.allowedSchemesAppliedToAttributes.indexOf($)!==-1&&ke(oe,ie)){delete k.attribs[$];return}if(oe==="script"&&$==="src"){let V=!0;try{const q=pt(ie);if(A.allowedScriptHostnames||A.allowedScriptDomains){const Re=(A.allowedScriptHostnames||[]).find(function(H){return H===q.url.hostname}),he=(A.allowedScriptDomains||[]).find(function(H){return q.url.hostname===H||q.url.hostname.endsWith(`.${H}`)});V=Re||he}}catch{V=!1}if(!V){delete k.attribs[$];return}}if(oe==="iframe"&&$==="src"){let V=!0;try{const q=pt(ie);if(q.isRelativeUrl)V=l(A,"allowIframeRelativeUrls")?A.allowIframeRelativeUrls:!A.allowedIframeHostnames&&!A.allowedIframeDomains;else if(A.allowedIframeHostnames||A.allowedIframeDomains){const Re=(A.allowedIframeHostnames||[]).find(function(H){return H===q.url.hostname}),he=(A.allowedIframeDomains||[]).find(function(H){return q.url.hostname===H||q.url.hostname.endsWith(`.${H}`)});V=Re||he}}catch{V=!1}if(!V){delete k.attribs[$];return}}if($==="srcset")try{let V=s(ie);if(V.forEach(function(q){ke("srcset",q.url)&&(q.evil=!0)}),V=d(V,function(q){return!q.evil}),V.length)ie=c(d(V,function(q){return!q.evil})),k.attribs[$]=ie;else{delete k.attribs[$];return}}catch{delete k.attribs[$];return}if($==="class"){const V=M[oe],q=M["*"],Re=P[oe],he=W[oe],H=W["*"],ce=P["*"],Me=[Re,ce].concat(he,H).filter(function(Be){return Be});if(V&&q?ie=Te(ie,a(V,q),Me):ie=Te(ie,V||q,Me),!ie.length){delete k.attribs[$];return}}if($==="style"){if(A.parseStyleAttributes)try{const V=o(oe+" {"+ie+"}",{map:!1}),q=me(V,A.allowedStyles);if(ie=Z(q),ie.length===0){delete k.attribs[$];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+oe+" {"+ie+`}", 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 k.attribs[$];return}else if(A.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}g+=" "+$,ie&&ie.length?g+='="'+se(ie,!0)+'"':A.allowedEmptyAttributes.includes($)&&(g+='=""')}else delete k.attribs[$]}),A.selfClosing.indexOf(oe)!==-1?g+=" />":(g+=">",k.innerText&&!le&&!A.textFilter&&(g+=se(k.innerText),Ve=!0)),G&&(g=I+se(g),I="")},ontext:function(oe){if(He)return;const U=Ee[Ee.length-1];let k;if(U&&(k=U.tag,oe=U.innerText!==void 0?U.innerText:oe),A.disallowedTagsMode==="completelyDiscard"&&!b(k))oe="";else if((A.disallowedTagsMode==="discard"||A.disallowedTagsMode==="completelyDiscard")&&(k==="script"||k==="style"))g+=oe;else{const G=se(oe,!1);A.textFilter&&!Ve?g+=A.textFilter(G,k):Ve||(g+=G)}if(Ee.length){const G=Ee[Ee.length-1];G.text+=oe}},onclosetag:function(oe,U){if(He)if(et--,!et)He=!1;else return;const k=Ee.pop();if(!k)return;if(k.tag!==oe){Ee.push(k);return}He=A.enforceHtmlBoundary?oe==="html":!1,J--;const G=fe[J];if(G){if(delete fe[J],A.disallowedTagsMode==="discard"||A.disallowedTagsMode==="completelyDiscard"){k.updateParentNodeText();return}I=g,g=""}if(Pe[J]&&(oe=Pe[J],delete Pe[J]),A.exclusiveFilter&&A.exclusiveFilter(k)){g=g.substr(0,k.tagPosition);return}if(k.updateParentNodeMediaChildren(),k.updateParentNodeText(),A.selfClosing.indexOf(oe)!==-1||U&&!b(oe)&&["escape","recursiveEscape"].indexOf(A.disallowedTagsMode)>=0){G&&(g=I,I="");return}g+=""+oe+">",G&&(g=I+se(g),I=""),Ve=!1}},A.parser);return _t.write(O),_t.end(),g;function we(){g="",J=0,Ee=[],fe={},Pe={},He=!1,et=0}function se(oe,U){return typeof oe!="string"&&(oe=oe+""),A.parser.decodeEntities&&(oe=oe.replace(/&/g,"&").replace(//g,">"),U&&(oe=oe.replace(/"/g,"""))),oe=oe.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),U&&(oe=oe.replace(/"/g,""")),oe}function ke(oe,U){for(U=U.replace(/[\x00-\x20]+/g,"");;){const le=U.indexOf("",le+4);if(pe===-1)break;U=U.substring(0,le)+U.substring(pe+3)}const k=U.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!k)return U.match(/^[/\\]{2}/)?!A.allowProtocolRelative:!1;const G=k[1].toLowerCase();return l(A.allowedSchemesByTag,oe)?A.allowedSchemesByTag[oe].indexOf(G)===-1:!A.allowedSchemes||A.allowedSchemes.indexOf(G)===-1}function pt(oe){if(oe=oe.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),oe.startsWith("relative:"))throw new Error("relative: exploit attempt");let U="relative://relative-site";for(let le=0;le<100;le++)U+=`/${le}`;const k=new URL(oe,U);return{isRelativeUrl:k&&k.hostname==="relative-site"&&k.protocol==="relative:",url:k}}function me(oe,U){if(!U)return oe;const k=oe.nodes[0];let G;return U[k.selector]&&U["*"]?G=a(U[k.selector],U["*"]):G=U[k.selector]||U["*"],G&&(oe.nodes[0].nodes=k.nodes.reduce(Ae(G),[])),oe}function Z(oe){return oe.nodes[0].nodes.reduce(function(U,k){return U.push(`${k.prop}:${k.value}${k.important?" !important":""}`),U},[]).join(";")}function Ae(oe){return function(U,k){return l(oe,k.prop)&&oe[k.prop].some(function(le){return le.test(k.value)})&&U.push(k),U}}function Te(oe,U,k){return U?(oe=oe.split(/\s+/),oe.filter(function(G){return U.indexOf(G)!==-1||k.some(function(le){return le.test(G)})}).join(" ")):oe}}const h={decodeEntities:!0};return _.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"]},allowedEmptyAttributes:["alt"],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},_.simpleTransform=function(O,A,R){return R=R===void 0?!0:R,A=A||{},function(g,I){let N;if(R)for(N in A)I[N]=A[N];else I=A;return{tagName:O,attribs:I}}},ud}var iHe=oHe();const IO=NE(iHe),gO=e=>IO(QGe(At.parseInline(e,{pedantic:!0}),{target:"_blank",validate:{email:()=>!1}}),{allowedTags:["a","p","span","strong","em","img"]}),rHe=e=>{const{value:t,selectionStart:n}=e,a=t.slice(0,n).search(/@\S+$/),s=t.slice(n).search(/\s/),o=a<0?"":s<0?t.slice(a+1):t.slice(a+1,s+n);return o.trim().length>1?{position:a,usernameQuery:o}:{position:null,usernameQuery:null}},uHe=(e,t,n,a)=>e.substring(0,t+1)+a+" "+e.substring(t+n.length+2),Vi=e=>{const t=At.parse(e,{breaks:!0});return IO(t)},RO=()=>["private","followers_only","public"],Xu=(e,t)=>t==="private"||t==="followers_only"&&e=="public"?t:e,Qu=e=>{switch(e){case"public":return["private","followers_only","public"];case"followers_only":return["private","followers_only"];case"private":return["private"]}},lHe=e=>{switch(e){case"public":return["private","followers_only","public"];case"followers_only":return["private","followers_only"];case"private":return["private"]}},cHe={class:"add-comment"},dHe={class:"form-items"},EHe={class:"form-item add-comment-label"},pHe={for:"comment",class:"visually-hidden"},mHe={class:"markdown-hints info-box"},THe={key:0,class:"users-suggestions"},_He=["onClick","onKeydown"],fHe={class:"form-select-buttons"},hHe={key:0,class:"form-item text-visibility"},SHe={for:"text_visibility"},AHe=["value"],OHe={key:1},IHe={key:2,class:"comment-buttons"},gHe={class:"confirm",type:"submit"},RHe=X({__name:"CommentEdition",props:{workout:{},commentsLoading:{},authUser:{},comment:{default:null},name:{default:"text"},mentions:{default:()=>[]}},setup(e){var N;const t=e,{authUser:n,comment:a,commentsLoading:s,mentions:o,name:i,workout:r}=_e(t),u=De(),{errorMessages:l}=Ke();let d={position:null,usernameQuery:null};const E=Ie(h()),c=Ie(a!=null&&a.value?a.value.text_visibility:(N=r.value)==null?void 0:N.workout_visibility),m=F(()=>a.value?a.value.id===s.value:s.value==="new"),_=F(()=>u.getters[ue.GETTERS.USERS]);function h(){var b,C,y;if(a!=null&&a.value)return a.value.text||"";if(o.value.length>0){const D=o.value.filter(M=>M.username!==n.value.username);if(D.length>0)return D.map(M=>`@${M.username}`).join(" ")+" "}return(b=r.value)!=null&&b.user&&((C=r.value)==null?void 0:C.user.username)!==n.value.username?`@${(y=r.value)==null?void 0:y.user.username} `:""}function O(b){u.dispatch(ue.ACTIONS.GET_USERS,{per_page:5,q:b,with_following:"true"})}function A(b){E.value=b.value,d=rHe(b),d.usernameQuery?O(d.usernameQuery):u.dispatch(ue.ACTIONS.EMPTY_USERS)}function R(b,C,y){b.preventDefault(),b.stopPropagation();const D=`text${y?`-${y.id}`:""}`;if(d.position!==null&&d.usernameQuery){const M=uHe(E.value,d.position,d.usernameQuery,C.username),P=document.getElementById(D);P&&P instanceof HTMLTextAreaElement&&(P.value=M,P.focus(),P.selectionStart=M.length,E.value=M)}u.dispatch(ue.ACTIONS.EMPTY_USERS)}function g(){A({value:"",selectionStart:0}),u.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{})}function I(){if(r.value)if(a!=null&&a.value&&a.value.id){const b={id:a.value.id,text:E.value,workout_id:r.value.id};u.dispatch(ee.ACTIONS.EDIT_WORKOUT_COMMENT,b)}else{const b={text:E.value,text_visibility:c.value,workout_id:r.value.id};u.dispatch(ee.ACTIONS.ADD_COMMENT,b),A({value:"",selectionStart:0})}}return ct(()=>{u.dispatch(ue.ACTIONS.EMPTY_USERS)}),(b,C)=>{const y=j("CustomTextArea"),D=j("Loader"),M=j("ErrorMessage");return f(),v("div",cHe,[p("form",{onSubmit:ve(I,["prevent"])},[p("div",dHe,[p("div",EHe,[p("label",pHe,S(b.$t("workouts.COMMENTS.ADD")),1),w(y,{id:"comment",class:"comment",name:T(i),input:E.value,required:!0,placeholder:b.$t("workouts.COMMENTS.ADD"),onUpdateValue:A},null,8,["name","input","placeholder"]),p("div",mHe,[C[1]||(C[1]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(b.$t("workouts.MARKDOWN_SYNTAX")),1)]),_.value.length>0?(f(),v("ul",THe,[(f(!0),v(re,null,be(_.value,P=>(f(),v("li",{key:P.username,tabindex:"0",onClick:W=>R(W,P,T(a)),onKeydown:Ye(W=>R(W,P,T(a)),["enter"])},[w(Qt,{user:P},null,8,["user"]),p("span",null,S(P.username),1)],40,_He))),128))])):L("",!0)])]),p("div",fHe,[!T(a)&&T(r)&&T(r).workout_visibility?(f(),v("div",hHe,[p("label",SHe,S(b.$t("visibility_levels.VISIBILITY"))+": ",1),We(p("select",{id:"text_visibility","onUpdate:modelValue":C[0]||(C[0]=P=>c.value=P)},[(f(!0),v(re,null,be(T(lHe)(T(r).workout_visibility),P=>(f(),v("option",{value:P,key:P},S(b.$t(`visibility_levels.COMMENT_LEVELS.${P}`)),9,AHe))),128))],512),[[Jt,c.value]])])):L("",!0),C[2]||(C[2]=p("div",{class:"spacer"},null,-1)),m.value?(f(),v("div",OHe,[w(D)])):(f(),v("div",IHe,[p("button",gHe,S(b.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:ve(g,["prevent"])},S(b.$t("buttons.CANCEL")),1)]))]),T(l)?(f(),B(M,{key:0,message:T(l)},null,8,["message"])):L("",!0)],32)])}}}),NO=ae(RHe,[["__scopeId","data-v-96400748"]]),NHe={class:"report-form"},vHe={class:"form-items"},bHe={class:"form-item"},CHe={for:"report"},PHe={class:"form-select-buttons"},DHe={key:0},LHe={key:1,class:"report-buttons"},yHe={class:"confirm",type:"submit"},$He=X({__name:"ReportForm",props:{objectId:{},objectType:{}},setup(e){const t=e,{objectId:n,objectType:a}=_e(t),s=De(),o={comment:"workouts.COMMENTS.REPORT",user:"user.REPORT",workout:"workouts.REPORT_WORKOUT"},i=Ie(""),r=F(()=>s.getters[te.GETTERS.ERROR_MESSAGES]),u=F(()=>s.getters[Le.GETTERS.REPORT_STATUS]),l=F(()=>o[a.value]);function d(m){i.value=m.value}function E(){i.value="",s.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),s.commit(Le.MUTATIONS.SET_REPORT_STATUS,null),a.value==="comment"?s.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{}):a.value==="workout"?s.commit(ee.MUTATIONS.SET_CURRENT_REPORTING,!1):s.commit(ue.MUTATIONS.UPDATE_USER_CURRENT_REPORTING,!1)}function c(){s.dispatch(Le.ACTIONS.SUBMIT_REPORT,{object_id:n.value,object_type:a.value,note:i.value})}return(m,_)=>{const h=j("CustomTextArea"),O=j("Loader"),A=j("ErrorMessage");return f(),v("div",NHe,[p("form",{onSubmit:ve(c,["prevent"])},[p("div",vHe,[p("div",bHe,[p("label",CHe,S(m.$t(l.value)),1),w(h,{class:"report-textarea",name:"report",required:!0,placeholder:m.$t("common.REPORT_PLACEHOLDER"),onUpdateValue:d},null,8,["placeholder"])])]),p("div",PHe,[_[0]||(_[0]=p("div",{class:"spacer"},null,-1)),u.value==="loading"?(f(),v("div",DHe,[w(O)])):(f(),v("div",LHe,[p("button",yHe,S(m.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:ve(E,["prevent"])},S(m.$t("buttons.CANCEL")),1)]))]),r.value?(f(),B(A,{key:0,message:r.value},null,8,["message"])):L("",!0)],32)])}}}),Fp=ae($He,[["__scopeId","data-v-40798811"]]),UHe=X({__name:"Username",props:{user:{}},setup(e){const t=e,{user:n}=_e(t);return(a,s)=>{const o=j("router-link");return T(n).username?(f(),B(o,{key:0,class:"user-name",to:{name:a.$route.path.startsWith("/admin")?"UserFromAdmin":"User",params:{username:T(n).username}},title:T(n).username},{default:Y(()=>[x(S(T(n).username),1)]),_:1},8,["to","title"])):L("",!0)}}}),Ri=ae(UHe,[["__scopeId","data-v-b000441f"]]),kHe=["id"],wHe={class:"comment-detail"},MHe={class:"comment-info"},WHe=["title"],FHe=["innerHTML"],zHe={key:1,class:"suspended info-box"},xHe={key:3,class:"comment-actions"},BHe=["disabled","title"],GHe=["title"],VHe=["title"],HHe=["title"],KHe=["title"],qHe={key:6,class:"report-submitted"},jHe={class:"info-box"},YHe=X({__name:"Comment",props:{comment:{},workout:{default:null},authUser:{},commentsLoading:{},currentCommentEdition:{default:null},forNotification:{type:Boolean,default:!1},forAdmin:{type:Boolean,default:!1},displayAppeal:{type:Boolean,default:!1},hideSuspensionAppeal:{type:Boolean,default:!1},action:{default:null}},setup(e){const t=e,{action:n,authUser:a,comment:s,currentCommentEdition:o,forAdmin:i,forNotification:r,workout:u}=_e(t),l=rt(),d=De(),{displayAppealForm:E}=Tp(),{displayOptions:c,locale:m}=Ke(),_=F(()=>d.getters[Le.GETTERS.REPORT_STATUS]),h=F(()=>l.params.commentId),O=F(()=>{var P,W,Q,Se;return s.value.id===h.value||(((P=o.value)==null?void 0:P.type)==="delete"||((W=o.value)==null?void 0:W.type)==="report")&&((Se=(Q=o.value)==null?void 0:Q.comment)==null?void 0:Se.id)===s.value.id}),A=F(()=>{var P,W,Q,Se;return s.value.user.username===(a==null?void 0:a.value.username)&&((P=n.value)==null?void 0:P.action_type)==="comment_suspension"&&(!n.value.appeal||((W=n.value.appeal)==null?void 0:W.approved)===!1||((Q=n.value.appeal)==null?void 0:Q.approved)===null&&!((Se=n.value.appeal)!=null&&Se.updated_at))&&s.value.suspended_at!==null&&s.value.suspension!==void 0&&E.value!==s.value.id}),R=F(()=>!r.value&&!s.value.suspended&&!g(a.value,s.value.user)&&!N()&&_.value!==`comment-${s.value.id}-created`);function g(P,W){return P&&P.username===W.username}function I(){var P,W,Q;return((P=o.value)==null?void 0:P.type)==="edit"&&((Q=(W=o.value)==null?void 0:W.comment)==null?void 0:Q.id)===s.value.id}function N(){var P,W,Q;return((P=o.value)==null?void 0:P.type)==="report"&&((Q=(W=o.value)==null?void 0:W.comment)==null?void 0:Q.id)===s.value.id}function b(P){d.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{type:"delete",comment:P})}function C(P){d.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{type:"report",comment:P}),d.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)}function y(P){d.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{type:P,comment:s.value}),setTimeout(()=>{const W=document.getElementById(`text-${s.value.id}`);W&&W.focus()},100)}function D(P){d.dispatch(P.liked?ee.ACTIONS.UNDO_LIKE_COMMENT:ee.ACTIONS.LIKE_COMMENT,P)}function M(){let P=`/comments/${s.value.id}/likes`;return s.value.workout_id&&(P=`/workouts/${s.value.workout_id}${P}`),P}return Ce(()=>l.params.workoutId,()=>{d.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)}),ct(()=>d.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)),(P,W)=>{const Q=j("router-link"),Se=j("VisibilityIcon");return f(),v("div",{class:"workout-comment",id:T(s).id},[w(Qt,{user:T(s).user},null,8,["user"]),p("div",wHe,[p("div",MHe,[w(Ri,{user:T(s).user},null,8,["user"]),W[5]||(W[5]=p("div",{class:"spacer"},null,-1)),w(Q,{class:"comment-date",to:`${T(s).workout_id?`/workouts/${T(s).workout_id}`:""}/comments/${T(s).id}`,title:T(Ut)(T(s).created_at,T(c).timezone,T(c).dateFormat),onClick:W[0]||(W[0]=J=>P.$emit("commentLinkClicked"))},{default:Y(()=>[x(S(T(Ws)(new Date(T(s).created_at),new Date,{addSuffix:!0,locale:T(m)})),1)]),_:1},8,["to","title"]),T(s).modification_date?(f(),v("div",{key:0,class:"comment-edited",title:T(Ut)(T(s).modification_date,T(c).timezone,T(c).dateFormat)}," ("+S(P.$t("common.EDITED"))+") ",9,WHe)):L("",!0),w(Se,{visibility:T(s).text_visibility,"is-comment":!0},null,8,["visibility"])]),T(s).text_html?(f(),v(re,{key:0},[I()?(f(),B(NO,{key:1,workout:T(u),comment:T(s),"comments-loading":P.commentsLoading,name:`text-${T(s).id}`,authUser:T(a)},null,8,["workout","comment","comments-loading","name","authUser"])):(f(),v("span",{key:0,class:Oe(["comment-text",{highlight:O.value}]),innerHTML:T(gO)(T(s).text_html)},null,10,FHe))],64)):L("",!0),T(s).suspended&&!T(s).suspension?(f(),v("div",zHe,[W[6]||(W[6]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(P.$t("workouts.COMMENTS.SUSPENDED_COMMENT_BY_ADMIN")),1)])):L("",!0),A.value&&T(n)&&T(s).suspended?(f(),B(IGe,{key:2,"hide-suspension-appeal":P.hideSuspensionAppeal,action:T(n),comment:T(s)},null,8,["hide-suspension-appeal","action","comment"])):L("",!0),T(a).username&&!T(i)?(f(),v("div",xHe,[!T(s).suspended&&!T(r)?(f(),v("button",{key:0,class:"transparent icon-button likes",onClick:W[1]||(W[1]=J=>T(r)?null:D(T(s))),disabled:T(r),title:`${P.$t(`workouts.${T(s).liked?"REMOVE_LIKE":"COMMENTS.LIKE_COMMENT"}`)} (${T(s).likes_count} ${P.$t("workouts.LIKES",T(s).likes_count)})`},[p("i",{class:Oe(["fa",{"fa-heart":T(s).likes_count>0,"fa-heart-o":T(s).likes_count===0,liked:T(s).liked}]),"aria-hidden":"true"},null,2)],8,BHe)):L("",!0),T(s).likes_count>0?(f(),B(Q,{key:1,to:M(),class:"likes-count"},{default:Y(()=>[x(S(T(s).likes_count),1)]),_:1},8,["to"])):L("",!0),R.value?(f(),v("button",{key:2,class:"transparent icon-button",onClick:W[2]||(W[2]=J=>C(T(s))),title:P.$t("workouts.COMMENTS.REPORT")},W[7]||(W[7]=[p("i",{class:"fa fa-flag","aria-hidden":"true"},null,-1)]),8,GHe)):L("",!0),g(T(a),T(s).user)&&!T(r)?(f(),v("button",{key:3,class:"transparent icon-button",onClick:W[3]||(W[3]=()=>y("edit")),title:P.$t("workouts.COMMENTS.EDIT")},W[8]||(W[8]=[p("i",{class:"fa fa-edit","aria-hidden":"true"},null,-1)]),8,VHe)):L("",!0),g(T(a),T(s).user)&&!T(r)?(f(),v("button",{key:4,class:"transparent icon-button",onClick:W[4]||(W[4]=J=>b(T(s))),title:P.$t("workouts.COMMENTS.DELETE")},W[9]||(W[9]=[p("i",{class:"fa fa-trash","aria-hidden":"true"},null,-1)]),8,HHe)):L("",!0)])):L("",!0),T(a).username?L("",!0):(f(),v("div",{key:4,class:"comment-likes",title:`${T(s).likes_count} ${P.$t("workouts.LIKES",T(s).likes_count)}`},[p("i",{class:Oe(["fa",{"fa-heart":T(s).likes_count>0,"fa-heart-o":T(s).likes_count===0}]),"aria-hidden":"true"},null,2),T(s).likes_count>0?(f(),B(Q,{key:0,to:M(),class:"likes-count"},{default:Y(()=>[x(S(T(s).likes_count),1)]),_:1},8,["to"])):L("",!0)],8,KHe)),N()?(f(),B(Fp,{key:5,"object-id":T(s).id,"object-type":"comment"},null,8,["object-id"])):L("",!0),_.value===`comment-${T(s).id}-created`?(f(),v("div",qHe,[p("div",jHe,[p("span",null,[W[10]||(W[10]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(P.$t("common.REPORT_SUBMITTED")),1)])])])):L("",!0)])],8,kHe)}}}),zp=ae(YHe,[["__scopeId","data-v-f4abd303"]]),XHe={class:"alert-message"},QHe={key:0},ZHe=["innerHTML"],JHe=X({__name:"AlertMessage",props:{message:{},param:{default:()=>""}},setup(e){const t=e,{message:n,param:a}=_e(t);return(s,o)=>{const i=j("i18n-t");return f(),v("div",XHe,[T(a)?(f(),v("span",QHe,[w(i,{keypath:T(n)},{default:Y(()=>[p("span",null,S(T(a)),1)]),_:1},8,["keypath"])])):(f(),v("span",{key:1,innerHTML:s.$t(T(n))},null,8,ZHe)),Pt(s.$slots,"additionalMessage",{},void 0,!0)])}}}),eKe=ae(JHe,[["__scopeId","data-v-fc0d2d13"]]),tKe={},nKe={class:"card"},aKe={class:"card-title"},sKe={class:"card-content"};function oKe(e,t){return f(),v("div",nKe,[p("div",aKe,[Pt(e.$slots,"title")]),p("div",sKe,[Pt(e.$slots,"content")])])}const xp=ae(tKe,[["render",oKe]]),iKe={class:"custom-textarea"},rKe=["id","name","maxLength","disabled","rows","required","placeholder"],uKe={class:"remaining-chars"},lKe=X({__name:"CustomTextArea",props:{name:{},charLimit:{default:500},disabled:{type:Boolean,default:!1},input:{default:""},rows:{default:2},required:{type:Boolean,default:!1},placeholder:{default:""}},emits:["updateValue"],setup(e,{emit:t}){const n=e,a=t,{input:s}=_e(n),o=Ie(s.value?s.value:"");function i(r){const u=r.target;a("updateValue",{value:u.value,selectionStart:u.selectionStart})}return Ce(()=>n.input,r=>{o.value=r===null?"":r}),(r,u)=>(f(),v("div",iKe,[We(p("textarea",{id:r.name,name:r.name,maxLength:r.charLimit,disabled:r.disabled,rows:r.rows,required:r.required,placeholder:r.placeholder,"onUpdate:modelValue":u[0]||(u[0]=l=>o.value=l),onInput:i},null,40,rKe),[[it,o.value]]),p("div",uKe,S(r.$t("workouts.REMAINING_CHARS"))+": "+S(o.value.length)+"/"+S(r.charLimit),1)]))}}),vO=ae(lKe,[["__scopeId","data-v-8d139e95"]]),vn={ft:{unit:"ft",system:"imperial",multiplier:1,defaultTarget:"m"},mi:{unit:"mi",system:"imperial",multiplier:5280,defaultTarget:"km"},m:{unit:"m",system:"metric",multiplier:1,defaultTarget:"ft"},km:{unit:"m",system:"metric",multiplier:1e3,defaultTarget:"mi"}},cKe={metric:{imperial:3.280839895,metric:1},imperial:{metric:1/3.280839895,imperial:1}},Yt=(e,t,n,a=3)=>{const s=vn[t],o=vn[n],i=e*s.multiplier*cKe[s.system][o.system]/o.multiplier;return a!==null?parseFloat(i.toFixed(a)):i},Jr=(e,t,n)=>{const a=n?vn[e].defaultTarget:e;return n?Yt(t,e,a,2):t},ph=(e,t)=>{const n=t?e*1.8+32:e,a=t?" °F":"°C";return`${n===0?0:Number(n).toFixed(1)}${a}`},dKe=(e,t)=>{const n=t?e*2.2369363:e,a=t?" mph":"m/s";return`${n===0?0:Number(n).toFixed(1)}${a}`},EKe=X({__name:"Distance",props:{distance:{},unitFrom:{},useImperialUnits:{type:Boolean},digits:{default:2},displayUnit:{type:Boolean,default:!0},speed:{type:Boolean,default:!1},strong:{type:Boolean,default:!1}},setup(e){const t=e,{digits:n,displayUnit:a,distance:s,speed:o,strong:i,unitFrom:r,useImperialUnits:u}=_e(t),l=F(()=>u.value?vn[r.value].defaultTarget:r.value),d=F(()=>u.value?Yt(s.value,r.value,l.value,n.value):parseFloat(s.value.toFixed(n.value)));return(E,c)=>(f(),v(re,null,[p("span",{class:Oe(["distance",{strong:T(i)}])},S(d.value),3),c[0]||(c[0]=x(" "+S(" ")+" ")),T(a)?(f(),v("span",{key:0,class:Oe(["unit",{strong:T(i)}])},S(l.value)+S(T(o)?"/h":""),3)):L("",!0)],64))}}),pKe=ae(EKe,[["__scopeId","data-v-3aadc3cb"]]),mKe={class:"dropdown-wrapper"},TKe=["aria-expanded","aria-label"],_Ke=["aria-labelledby"],fKe=["id","onClick","onKeydown","onMouseover"],hKe=X({__name:"Dropdown",props:{options:{},selected:{},buttonLabel:{},listLabel:{},isMenuOpen:{type:Boolean}},emits:{selected:e=>e},setup(e,{emit:t}){const n=e,{isMenuOpen:a,options:s,selected:o}=_e(n),i=t,r=rt(),u=Ie(!1),l=Ie(null),d=Ie(_(o.value));function E(){if(u.value)c();else{u.value=!0;const A=document.getElementById(`dropdown-item-${d.value}`);A==null||A.focus()}}function c(){var A;u.value=!1,d.value=_(o.value),(A=l.value)==null||A.focus()}function m(A){i("selected",A),u.value=!1}function _(A){const R=s.value.findIndex(g=>g.value===A);return R>=0?R:0}function h(A){let R=!1;u.value&&(A.key==="ArrowDown"&&(R=!0,d.value+=1,d.value>s.value.length&&(d.value=0)),A.key==="ArrowUp"&&(R=!0,d.value-=1,d.value<0&&(d.value=s.value.length-1)),A.key==="Home"&&(R=!0,d.value=0),A.key==="End"&&(R=!0,d.value=s.value.length-1),A.key==="Enter"&&(R=!0,m(s.value[d.value])),(A.key==="Escape"||A.key==="Tab")&&(R=A.key==="Escape",c())),R&&(A.stopPropagation(),A.preventDefault())}function O(A){d.value=A}return Ce(()=>r.path,()=>u.value=!1),Ce(()=>o.value,A=>d.value=_(A)),Ce(()=>a.value,A=>{A||c()}),mt(()=>{document.addEventListener("keydown",h)}),ct(()=>{document.removeEventListener("keydown",h)}),(A,R)=>(f(),v("div",mKe,[p("button",{"aria-controls":"dropdown-list","aria-expanded":u.value,"aria-haspopup":"true","aria-label":A.buttonLabel,class:"dropdown-selector transparent",onClick:R[0]||(R[0]=g=>E()),ref_key:"dropdownButton",ref:l},[Pt(A.$slots,"default",{},void 0,!0)],8,TKe),u.value?(f(),v("ul",{key:0,"aria-labelledby":A.listLabel,class:"dropdown-list",id:"dropdown-list",role:"menu"},[(f(!0),v(re,null,be(T(s),(g,I)=>(f(),v("li",{class:Oe(["dropdown-item",{selected:g.value===T(o),focused:I===d.value}]),key:I,id:`dropdown-item-${I}`,tabindex:"-1",onClick:N=>m(g),onKeydown:Ye(N=>m(g),["enter"]),onMouseover:N=>O(I),role:"menuitem"},S(g.label),43,fKe))),128))],8,_Ke)):L("",!0)]))}}),SKe=ae(hKe,[["__scopeId","data-v-f0445cd3"]]),AKe={class:"error-message"},OKe={key:0},IKe={key:1},gKe={key:2},RKe=X({__name:"ErrorMessage",props:{message:{}},setup(e){const t=e,{message:n}=_e(t);return(a,s)=>(f(),v("div",AKe,[Array.isArray(T(n))?(f(),v("ul",OKe,[(f(!0),v(re,null,be(T(n),(o,i)=>(f(),v("li",{key:i},S(a.$t(o)),1))),128))])):typeof T(n)=="string"?(f(),v("div",IKe,S(a.$t(T(n)).replace("api.ERROR.","")),1)):(f(),v("div",gKe,S(a.$t(`equipments.ERRORS.${T(n).status}`,{equipmentId:T(n).equipmentId,equipmentLabel:T(n).equipmentLabel})),1))]))}}),NKe=ae(RKe,[["__scopeId","data-v-5d2995e8"]]),vKe={name:"Bike"},bKe={version:"1.1",id:"bike",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 35 35","xml:space":"preserve"};function CKe(e,t,n,a,s,o){return f(),v("svg",bKe,t[0]||(t[0]=[p("desc",{id:"BikeEquipmentDescription"},"bike",-1),p("g",null,[p("path",{d:`M25.8 14.32c-0.64 0-1.24 0.12-1.84 0.32l-1.52-3 2.6-3.88c0.28-0.4 0.12-1.32-0.72-1.32h-3.32c-0.48 0-0.84 +`)});const C=S.nonTextTags||["script","style","textarea","option"];let y,D;S.allowedAttributes&&(y={},D={},u(S.allowedAttributes,function(oe,U){y[U]=[];const k=[];oe.forEach(function(G){typeof G=="string"&&G.indexOf("*")>=0?k.push(t(G).replace(/\\\*/g,".*")):y[U].push(G)}),k.length&&(D[U]=new RegExp("^("+k.join("|")+")$"))}));const M={},P={},W={};u(S.allowedClasses,function(oe,U){if(y&&(l(y,U)||(y[U]=[]),y[U].push("class")),M[U]=oe,Array.isArray(oe)){const k=[];M[U]=[],W[U]=[],oe.forEach(function(G){typeof G=="string"&&G.indexOf("*")>=0?k.push(t(G).replace(/\\\*/g,".*")):G instanceof RegExp?W[U].push(G):M[U].push(G)}),k.length&&(P[U]=new RegExp("^("+k.join("|")+")$"))}});const Q={};let Se;u(S.transformTags,function(oe,U){let k;typeof oe=="function"?k=oe:typeof oe=="string"&&(k=_.simpleTransform(oe)),U==="*"?Se=k:Q[U]=k});let J,Ee,fe,Pe,Ke,et,He=!1;we();const _t=new e.Parser({onopentag:function(oe,U){if(S.enforceHtmlBoundary&&oe==="html"&&we(),Ke){et++;return}const k=new N(oe,U);Ee.push(k);let G=!1;const le=!!k.text;let pe;if(l(Q,oe)&&(pe=Q[oe](oe,U),k.attribs=U=pe.attribs,pe.text!==void 0&&(k.innerText=pe.text),oe!==pe.tagName&&(k.name=oe=pe.tagName,Pe[J]=pe.tagName)),Se&&(pe=Se(oe,U),k.attribs=U=pe.attribs,oe!==pe.tagName&&(k.name=oe=pe.tagName,Pe[J]=pe.tagName)),(!b(oe)||S.disallowedTagsMode==="recursiveEscape"&&!E(fe)||S.nestingLimit!=null&&J>=S.nestingLimit)&&(G=!0,fe[J]=!0,(S.disallowedTagsMode==="discard"||S.disallowedTagsMode==="completelyDiscard")&&C.indexOf(oe)!==-1&&(Ke=!0,et=1),fe[J]=!0),J++,G){if(S.disallowedTagsMode==="discard"||S.disallowedTagsMode==="completelyDiscard"){if(k.innerText&&!le){const ie=se(k.innerText);S.textFilter?I+=S.textFilter(ie,oe):I+=se(k.innerText),He=!0}return}g=I,I=""}I+="<"+oe,oe==="script"&&(S.allowedScriptHostnames||S.allowedScriptDomains)&&(k.innerText=""),(!y||l(y,oe)||y["*"])&&u(U,function(ie,$){if(!m.test($)){delete k.attribs[$];return}if(ie===""&&!S.allowedEmptyAttributes.includes($)&&(S.nonBooleanAttributes.includes($)||S.nonBooleanAttributes.includes("*"))){delete k.attribs[$];return}let z=!1;if(!y||l(y,oe)&&y[oe].indexOf($)!==-1||y["*"]&&y["*"].indexOf($)!==-1||l(D,oe)&&D[oe].test($)||D["*"]&&D["*"].test($))z=!0;else if(y&&y[oe]){for(const V of y[oe])if(n(V)&&V.name&&V.name===$){z=!0;let j="";if(V.multiple===!0){const Re=ie.split(" ");for(const he of Re)V.values.indexOf(he)!==-1&&(j===""?j=he:j+=" "+he)}else V.values.indexOf(ie)>=0&&(j=ie);ie=j}}if(z){if(S.allowedSchemesAppliedToAttributes.indexOf($)!==-1&&ke(oe,ie)){delete k.attribs[$];return}if(oe==="script"&&$==="src"){let V=!0;try{const j=pt(ie);if(S.allowedScriptHostnames||S.allowedScriptDomains){const Re=(S.allowedScriptHostnames||[]).find(function(H){return H===j.url.hostname}),he=(S.allowedScriptDomains||[]).find(function(H){return j.url.hostname===H||j.url.hostname.endsWith(`.${H}`)});V=Re||he}}catch{V=!1}if(!V){delete k.attribs[$];return}}if(oe==="iframe"&&$==="src"){let V=!0;try{const j=pt(ie);if(j.isRelativeUrl)V=l(S,"allowIframeRelativeUrls")?S.allowIframeRelativeUrls:!S.allowedIframeHostnames&&!S.allowedIframeDomains;else if(S.allowedIframeHostnames||S.allowedIframeDomains){const Re=(S.allowedIframeHostnames||[]).find(function(H){return H===j.url.hostname}),he=(S.allowedIframeDomains||[]).find(function(H){return j.url.hostname===H||j.url.hostname.endsWith(`.${H}`)});V=Re||he}}catch{V=!1}if(!V){delete k.attribs[$];return}}if($==="srcset")try{let V=s(ie);if(V.forEach(function(j){ke("srcset",j.url)&&(j.evil=!0)}),V=d(V,function(j){return!j.evil}),V.length)ie=c(d(V,function(j){return!j.evil})),k.attribs[$]=ie;else{delete k.attribs[$];return}}catch{delete k.attribs[$];return}if($==="class"){const V=M[oe],j=M["*"],Re=P[oe],he=W[oe],H=W["*"],ce=P["*"],Me=[Re,ce].concat(he,H).filter(function(Ge){return Ge});if(V&&j?ie=Te(ie,a(V,j),Me):ie=Te(ie,V||j,Me),!ie.length){delete k.attribs[$];return}}if($==="style"){if(S.parseStyleAttributes)try{const V=o(oe+" {"+ie+"}",{map:!1}),j=me(V,S.allowedStyles);if(ie=Z(j),ie.length===0){delete k.attribs[$];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+oe+" {"+ie+`}", 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 k.attribs[$];return}else if(S.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}I+=" "+$,ie&&ie.length?I+='="'+se(ie,!0)+'"':S.allowedEmptyAttributes.includes($)&&(I+='=""')}else delete k.attribs[$]}),S.selfClosing.indexOf(oe)!==-1?I+=" />":(I+=">",k.innerText&&!le&&!S.textFilter&&(I+=se(k.innerText),He=!0)),G&&(I=g+se(I),g="")},ontext:function(oe){if(Ke)return;const U=Ee[Ee.length-1];let k;if(U&&(k=U.tag,oe=U.innerText!==void 0?U.innerText:oe),S.disallowedTagsMode==="completelyDiscard"&&!b(k))oe="";else if((S.disallowedTagsMode==="discard"||S.disallowedTagsMode==="completelyDiscard")&&(k==="script"||k==="style"))I+=oe;else{const G=se(oe,!1);S.textFilter&&!He?I+=S.textFilter(G,k):He||(I+=G)}if(Ee.length){const G=Ee[Ee.length-1];G.text+=oe}},onclosetag:function(oe,U){if(Ke)if(et--,!et)Ke=!1;else return;const k=Ee.pop();if(!k)return;if(k.tag!==oe){Ee.push(k);return}Ke=S.enforceHtmlBoundary?oe==="html":!1,J--;const G=fe[J];if(G){if(delete fe[J],S.disallowedTagsMode==="discard"||S.disallowedTagsMode==="completelyDiscard"){k.updateParentNodeText();return}g=I,I=""}if(Pe[J]&&(oe=Pe[J],delete Pe[J]),S.exclusiveFilter&&S.exclusiveFilter(k)){I=I.substr(0,k.tagPosition);return}if(k.updateParentNodeMediaChildren(),k.updateParentNodeText(),S.selfClosing.indexOf(oe)!==-1||U&&!b(oe)&&["escape","recursiveEscape"].indexOf(S.disallowedTagsMode)>=0){G&&(I=g,g="");return}I+=""+oe+">",G&&(I=g+se(I),g=""),He=!1}},S.parser);return _t.write(O),_t.end(),I;function we(){I="",J=0,Ee=[],fe={},Pe={},Ke=!1,et=0}function se(oe,U){return typeof oe!="string"&&(oe=oe+""),S.parser.decodeEntities&&(oe=oe.replace(/&/g,"&").replace(//g,">"),U&&(oe=oe.replace(/"/g,"""))),oe=oe.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),U&&(oe=oe.replace(/"/g,""")),oe}function ke(oe,U){for(U=U.replace(/[\x00-\x20]+/g,"");;){const le=U.indexOf("",le+4);if(pe===-1)break;U=U.substring(0,le)+U.substring(pe+3)}const k=U.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!k)return U.match(/^[/\\]{2}/)?!S.allowProtocolRelative:!1;const G=k[1].toLowerCase();return l(S.allowedSchemesByTag,oe)?S.allowedSchemesByTag[oe].indexOf(G)===-1:!S.allowedSchemes||S.allowedSchemes.indexOf(G)===-1}function pt(oe){if(oe=oe.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),oe.startsWith("relative:"))throw new Error("relative: exploit attempt");let U="relative://relative-site";for(let le=0;le<100;le++)U+=`/${le}`;const k=new URL(oe,U);return{isRelativeUrl:k&&k.hostname==="relative-site"&&k.protocol==="relative:",url:k}}function me(oe,U){if(!U)return oe;const k=oe.nodes[0];let G;return U[k.selector]&&U["*"]?G=a(U[k.selector],U["*"]):G=U[k.selector]||U["*"],G&&(oe.nodes[0].nodes=k.nodes.reduce(Ae(G),[])),oe}function Z(oe){return oe.nodes[0].nodes.reduce(function(U,k){return U.push(`${k.prop}:${k.value}${k.important?" !important":""}`),U},[]).join(";")}function Ae(oe){return function(U,k){return l(oe,k.prop)&&oe[k.prop].some(function(le){return le.test(k.value)})&&U.push(k),U}}function Te(oe,U,k){return U?(oe=oe.split(/\s+/),oe.filter(function(G){return U.indexOf(G)!==-1||k.some(function(le){return le.test(G)})}).join(" ")):oe}}const f={decodeEntities:!0};return _.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"]},allowedEmptyAttributes:["alt"],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},_.simpleTransform=function(O,S,R){return R=R===void 0?!0:R,S=S||{},function(I,g){let N;if(R)for(N in S)g[N]=S[N];else g=S;return{tagName:O,attribs:g}}},ud}var iHe=oHe();const IO=NE(iHe),gO=e=>IO(QGe(At.parseInline(e,{pedantic:!0}),{target:"_blank",validate:{email:()=>!1}}),{allowedTags:["a","p","span","strong","em","img"]}),rHe=e=>{const{value:t,selectionStart:n}=e,a=t.slice(0,n).search(/@\S+$/),s=t.slice(n).search(/\s/),o=a<0?"":s<0?t.slice(a+1):t.slice(a+1,s+n);return o.trim().length>1?{position:a,usernameQuery:o}:{position:null,usernameQuery:null}},uHe=(e,t,n,a)=>e.substring(0,t+1)+a+" "+e.substring(t+n.length+2),Vi=e=>{const t=At.parse(e,{breaks:!0});return IO(t)},RO=()=>["private","followers_only","public"],Xu=(e,t)=>t==="private"||t==="followers_only"&&e=="public"?t:e,Qu=e=>{switch(e){case"public":return["private","followers_only","public"];case"followers_only":return["private","followers_only"];case"private":return["private"]}},lHe=e=>{switch(e){case"public":return["private","followers_only","public"];case"followers_only":return["private","followers_only"];case"private":return["private"]}},cHe={class:"add-comment"},dHe={class:"form-items"},EHe={class:"form-item add-comment-label"},pHe={for:"comment",class:"visually-hidden"},mHe={class:"markdown-hints info-box"},THe={key:0,class:"users-suggestions"},_He=["onClick","onKeydown"],fHe={class:"form-select-buttons"},hHe={key:0,class:"form-item text-visibility"},SHe={for:"text_visibility"},AHe=["value"],OHe={key:1},IHe={key:2,class:"comment-buttons"},gHe={class:"confirm",type:"submit"},RHe=X({__name:"CommentEdition",props:{workout:{},commentsLoading:{},authUser:{},comment:{default:null},name:{default:"text"},mentions:{default:()=>[]}},setup(e){var N;const t=e,{authUser:n,comment:a,commentsLoading:s,mentions:o,name:i,workout:r}=_e(t),u=De(),{errorMessages:l}=Be();let d={position:null,usernameQuery:null};const E=Ie(f()),c=Ie(a!=null&&a.value?a.value.text_visibility:(N=r.value)==null?void 0:N.workout_visibility),m=F(()=>a.value?a.value.id===s.value:s.value==="new"),_=F(()=>u.getters[ue.GETTERS.USERS]);function f(){var b,C,y;if(a!=null&&a.value)return a.value.text||"";if(o.value.length>0){const D=o.value.filter(M=>M.username!==n.value.username);if(D.length>0)return D.map(M=>`@${M.username}`).join(" ")+" "}return(b=r.value)!=null&&b.user&&((C=r.value)==null?void 0:C.user.username)!==n.value.username?`@${(y=r.value)==null?void 0:y.user.username} `:""}function O(b){u.dispatch(ue.ACTIONS.GET_USERS,{per_page:5,q:b,with_following:"true"})}function S(b){E.value=b.value,d=rHe(b),d.usernameQuery?O(d.usernameQuery):u.dispatch(ue.ACTIONS.EMPTY_USERS)}function R(b,C,y){b.preventDefault(),b.stopPropagation();const D=`text${y?`-${y.id}`:""}`;if(d.position!==null&&d.usernameQuery){const M=uHe(E.value,d.position,d.usernameQuery,C.username),P=document.getElementById(D);P&&P instanceof HTMLTextAreaElement&&(P.value=M,P.focus(),P.selectionStart=M.length,E.value=M)}u.dispatch(ue.ACTIONS.EMPTY_USERS)}function I(){S({value:"",selectionStart:0}),u.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{})}function g(){if(r.value)if(a!=null&&a.value&&a.value.id){const b={id:a.value.id,text:E.value,workout_id:r.value.id};u.dispatch(ee.ACTIONS.EDIT_WORKOUT_COMMENT,b)}else{const b={text:E.value,text_visibility:c.value,workout_id:r.value.id};u.dispatch(ee.ACTIONS.ADD_COMMENT,b),S({value:"",selectionStart:0})}}return ct(()=>{u.dispatch(ue.ACTIONS.EMPTY_USERS)}),(b,C)=>{const y=q("CustomTextArea"),D=q("Loader"),M=q("ErrorMessage");return h(),v("div",cHe,[p("form",{onSubmit:ve(g,["prevent"])},[p("div",dHe,[p("div",EHe,[p("label",pHe,A(b.$t("workouts.COMMENTS.ADD")),1),w(y,{id:"comment",class:"comment",name:T(i),input:E.value,required:!0,placeholder:b.$t("workouts.COMMENTS.ADD"),onUpdateValue:S},null,8,["name","input","placeholder"]),p("div",mHe,[C[1]||(C[1]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+A(b.$t("workouts.MARKDOWN_SYNTAX")),1)]),_.value.length>0?(h(),v("ul",THe,[(h(!0),v(re,null,be(_.value,P=>(h(),v("li",{key:P.username,tabindex:"0",onClick:W=>R(W,P,T(a)),onKeydown:Ye(W=>R(W,P,T(a)),["enter"])},[w(Qt,{user:P},null,8,["user"]),p("span",null,A(P.username),1)],40,_He))),128))])):L("",!0)])]),p("div",fHe,[!T(a)&&T(r)&&T(r).workout_visibility?(h(),v("div",hHe,[p("label",SHe,A(b.$t("visibility_levels.VISIBILITY"))+": ",1),We(p("select",{id:"text_visibility","onUpdate:modelValue":C[0]||(C[0]=P=>c.value=P)},[(h(!0),v(re,null,be(T(lHe)(T(r).workout_visibility),P=>(h(),v("option",{value:P,key:P},A(b.$t(`visibility_levels.COMMENT_LEVELS.${P}`)),9,AHe))),128))],512),[[Jt,c.value]])])):L("",!0),C[2]||(C[2]=p("div",{class:"spacer"},null,-1)),m.value?(h(),v("div",OHe,[w(D)])):(h(),v("div",IHe,[p("button",gHe,A(b.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:ve(I,["prevent"])},A(b.$t("buttons.CANCEL")),1)]))]),T(l)?(h(),B(M,{key:0,message:T(l)},null,8,["message"])):L("",!0)],32)])}}}),NO=ae(RHe,[["__scopeId","data-v-96400748"]]),NHe={class:"report-form"},vHe={class:"form-items"},bHe={class:"form-item"},CHe={for:"report"},PHe={class:"form-select-buttons"},DHe={key:0},LHe={key:1,class:"report-buttons"},yHe={class:"confirm",type:"submit"},$He=X({__name:"ReportForm",props:{objectId:{},objectType:{}},setup(e){const t=e,{objectId:n,objectType:a}=_e(t),s=De(),o={comment:"workouts.COMMENTS.REPORT",user:"user.REPORT",workout:"workouts.REPORT_WORKOUT"},i=Ie(""),r=F(()=>s.getters[te.GETTERS.ERROR_MESSAGES]),u=F(()=>s.getters[Le.GETTERS.REPORT_STATUS]),l=F(()=>o[a.value]);function d(m){i.value=m.value}function E(){i.value="",s.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),s.commit(Le.MUTATIONS.SET_REPORT_STATUS,null),a.value==="comment"?s.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{}):a.value==="workout"?s.commit(ee.MUTATIONS.SET_CURRENT_REPORTING,!1):s.commit(ue.MUTATIONS.UPDATE_USER_CURRENT_REPORTING,!1)}function c(){s.dispatch(Le.ACTIONS.SUBMIT_REPORT,{object_id:n.value,object_type:a.value,note:i.value})}return(m,_)=>{const f=q("CustomTextArea"),O=q("Loader"),S=q("ErrorMessage");return h(),v("div",NHe,[p("form",{onSubmit:ve(c,["prevent"])},[p("div",vHe,[p("div",bHe,[p("label",CHe,A(m.$t(l.value)),1),w(f,{class:"report-textarea",name:"report",required:!0,placeholder:m.$t("common.REPORT_PLACEHOLDER"),onUpdateValue:d},null,8,["placeholder"])])]),p("div",PHe,[_[0]||(_[0]=p("div",{class:"spacer"},null,-1)),u.value==="loading"?(h(),v("div",DHe,[w(O)])):(h(),v("div",LHe,[p("button",yHe,A(m.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:ve(E,["prevent"])},A(m.$t("buttons.CANCEL")),1)]))]),r.value?(h(),B(S,{key:0,message:r.value,"no-margin":!0},null,8,["message"])):L("",!0)],32)])}}}),Fp=ae($He,[["__scopeId","data-v-2a4f7a0e"]]),UHe=X({__name:"Username",props:{user:{}},setup(e){const t=e,{user:n}=_e(t);return(a,s)=>{const o=q("router-link");return T(n).username?(h(),B(o,{key:0,class:"user-name",to:{name:a.$route.path.startsWith("/admin")?"UserFromAdmin":"User",params:{username:T(n).username}},title:T(n).username},{default:Y(()=>[x(A(T(n).username),1)]),_:1},8,["to","title"])):L("",!0)}}}),Ri=ae(UHe,[["__scopeId","data-v-b000441f"]]),kHe=["id"],wHe={class:"comment-detail"},MHe={class:"comment-info"},WHe=["title"],FHe=["innerHTML"],zHe={key:1,class:"suspended info-box"},xHe={key:3,class:"comment-actions"},BHe=["disabled","title"],GHe=["title"],VHe=["title"],HHe=["title"],KHe=["title"],qHe={key:6,class:"report-submitted"},jHe={class:"info-box"},YHe=X({__name:"Comment",props:{comment:{},workout:{default:null},authUser:{},commentsLoading:{},currentCommentEdition:{default:null},forNotification:{type:Boolean,default:!1},forAdmin:{type:Boolean,default:!1},displayAppeal:{type:Boolean,default:!1},hideSuspensionAppeal:{type:Boolean,default:!1},action:{default:null}},setup(e){const t=e,{action:n,authUser:a,comment:s,currentCommentEdition:o,forAdmin:i,forNotification:r,workout:u}=_e(t),l=rt(),d=De(),{displayAppealForm:E}=Tp(),{displayOptions:c,locale:m}=Be(),_=F(()=>d.getters[Le.GETTERS.REPORT_STATUS]),f=F(()=>l.params.commentId),O=F(()=>{var P,W,Q,Se;return s.value.id===f.value||(((P=o.value)==null?void 0:P.type)==="delete"||((W=o.value)==null?void 0:W.type)==="report")&&((Se=(Q=o.value)==null?void 0:Q.comment)==null?void 0:Se.id)===s.value.id}),S=F(()=>{var P,W,Q,Se;return s.value.user.username===(a==null?void 0:a.value.username)&&((P=n.value)==null?void 0:P.action_type)==="comment_suspension"&&(!n.value.appeal||((W=n.value.appeal)==null?void 0:W.approved)===!1||((Q=n.value.appeal)==null?void 0:Q.approved)===null&&!((Se=n.value.appeal)!=null&&Se.updated_at))&&s.value.suspended_at!==null&&s.value.suspension!==void 0&&E.value!==s.value.id}),R=F(()=>!r.value&&!s.value.suspended&&!I(a.value,s.value.user)&&!N()&&_.value!==`comment-${s.value.id}-created`);function I(P,W){return P&&P.username===W.username}function g(){var P,W,Q;return((P=o.value)==null?void 0:P.type)==="edit"&&((Q=(W=o.value)==null?void 0:W.comment)==null?void 0:Q.id)===s.value.id}function N(){var P,W,Q;return((P=o.value)==null?void 0:P.type)==="report"&&((Q=(W=o.value)==null?void 0:W.comment)==null?void 0:Q.id)===s.value.id}function b(P){d.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{type:"delete",comment:P})}function C(P){d.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{type:"report",comment:P}),d.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)}function y(P){d.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{type:P,comment:s.value}),setTimeout(()=>{const W=document.getElementById(`text-${s.value.id}`);W&&W.focus()},100)}function D(P){d.dispatch(P.liked?ee.ACTIONS.UNDO_LIKE_COMMENT:ee.ACTIONS.LIKE_COMMENT,P)}function M(){let P=`/comments/${s.value.id}/likes`;return s.value.workout_id&&(P=`/workouts/${s.value.workout_id}${P}`),P}return Ce(()=>l.params.workoutId,()=>{d.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)}),ct(()=>d.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)),(P,W)=>{const Q=q("router-link"),Se=q("VisibilityIcon");return h(),v("div",{class:"workout-comment",id:T(s).id},[w(Qt,{user:T(s).user},null,8,["user"]),p("div",wHe,[p("div",MHe,[w(Ri,{user:T(s).user},null,8,["user"]),W[5]||(W[5]=p("div",{class:"spacer"},null,-1)),w(Q,{class:"comment-date",to:`${T(s).workout_id?`/workouts/${T(s).workout_id}`:""}/comments/${T(s).id}`,title:T(Ut)(T(s).created_at,T(c).timezone,T(c).dateFormat),onClick:W[0]||(W[0]=J=>P.$emit("commentLinkClicked"))},{default:Y(()=>[x(A(T(Ws)(new Date(T(s).created_at),new Date,{addSuffix:!0,locale:T(m)})),1)]),_:1},8,["to","title"]),T(s).modification_date?(h(),v("div",{key:0,class:"comment-edited",title:T(Ut)(T(s).modification_date,T(c).timezone,T(c).dateFormat)}," ("+A(P.$t("common.EDITED"))+") ",9,WHe)):L("",!0),w(Se,{visibility:T(s).text_visibility,"is-comment":!0},null,8,["visibility"])]),T(s).text_html?(h(),v(re,{key:0},[g()?(h(),B(NO,{key:1,workout:T(u),comment:T(s),"comments-loading":P.commentsLoading,name:`text-${T(s).id}`,authUser:T(a)},null,8,["workout","comment","comments-loading","name","authUser"])):(h(),v("span",{key:0,class:Oe(["comment-text",{highlight:O.value}]),innerHTML:T(gO)(T(s).text_html)},null,10,FHe))],64)):L("",!0),T(s).suspended&&!T(s).suspension?(h(),v("div",zHe,[W[6]||(W[6]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+A(P.$t("workouts.COMMENTS.SUSPENDED_COMMENT_BY_ADMIN")),1)])):L("",!0),S.value&&T(n)&&T(s).suspended?(h(),B(IGe,{key:2,"hide-suspension-appeal":P.hideSuspensionAppeal,action:T(n),comment:T(s)},null,8,["hide-suspension-appeal","action","comment"])):L("",!0),T(a).username&&!T(i)?(h(),v("div",xHe,[!T(s).suspended&&!T(r)?(h(),v("button",{key:0,class:"transparent icon-button likes",onClick:W[1]||(W[1]=J=>T(r)?null:D(T(s))),disabled:T(r),title:`${P.$t(`workouts.${T(s).liked?"REMOVE_LIKE":"COMMENTS.LIKE_COMMENT"}`)} (${T(s).likes_count} ${P.$t("workouts.LIKES",T(s).likes_count)})`},[p("i",{class:Oe(["fa",{"fa-heart":T(s).likes_count>0,"fa-heart-o":T(s).likes_count===0,liked:T(s).liked}]),"aria-hidden":"true"},null,2)],8,BHe)):L("",!0),T(s).likes_count>0?(h(),B(Q,{key:1,to:M(),class:"likes-count"},{default:Y(()=>[x(A(T(s).likes_count),1)]),_:1},8,["to"])):L("",!0),R.value?(h(),v("button",{key:2,class:"transparent icon-button",onClick:W[2]||(W[2]=J=>C(T(s))),title:P.$t("workouts.COMMENTS.REPORT")},W[7]||(W[7]=[p("i",{class:"fa fa-flag","aria-hidden":"true"},null,-1)]),8,GHe)):L("",!0),I(T(a),T(s).user)&&!T(r)?(h(),v("button",{key:3,class:"transparent icon-button",onClick:W[3]||(W[3]=()=>y("edit")),title:P.$t("workouts.COMMENTS.EDIT")},W[8]||(W[8]=[p("i",{class:"fa fa-edit","aria-hidden":"true"},null,-1)]),8,VHe)):L("",!0),I(T(a),T(s).user)&&!T(r)?(h(),v("button",{key:4,class:"transparent icon-button",onClick:W[4]||(W[4]=J=>b(T(s))),title:P.$t("workouts.COMMENTS.DELETE")},W[9]||(W[9]=[p("i",{class:"fa fa-trash","aria-hidden":"true"},null,-1)]),8,HHe)):L("",!0)])):L("",!0),T(a).username?L("",!0):(h(),v("div",{key:4,class:"comment-likes",title:`${T(s).likes_count} ${P.$t("workouts.LIKES",T(s).likes_count)}`},[p("i",{class:Oe(["fa",{"fa-heart":T(s).likes_count>0,"fa-heart-o":T(s).likes_count===0}]),"aria-hidden":"true"},null,2),T(s).likes_count>0?(h(),B(Q,{key:0,to:M(),class:"likes-count"},{default:Y(()=>[x(A(T(s).likes_count),1)]),_:1},8,["to"])):L("",!0)],8,KHe)),N()?(h(),B(Fp,{key:5,"object-id":T(s).id,"object-type":"comment"},null,8,["object-id"])):L("",!0),_.value===`comment-${T(s).id}-created`?(h(),v("div",qHe,[p("div",jHe,[p("span",null,[W[10]||(W[10]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+A(P.$t("common.REPORT_SUBMITTED")),1)])])])):L("",!0)])],8,kHe)}}}),zp=ae(YHe,[["__scopeId","data-v-f4abd303"]]),XHe={class:"alert-message"},QHe={key:0},ZHe=["innerHTML"],JHe=X({__name:"AlertMessage",props:{message:{},param:{default:()=>""}},setup(e){const t=e,{message:n,param:a}=_e(t);return(s,o)=>{const i=q("i18n-t");return h(),v("div",XHe,[T(a)?(h(),v("span",QHe,[w(i,{keypath:T(n)},{default:Y(()=>[p("span",null,A(T(a)),1)]),_:1},8,["keypath"])])):(h(),v("span",{key:1,innerHTML:s.$t(T(n))},null,8,ZHe)),Pt(s.$slots,"additionalMessage",{},void 0,!0)])}}}),eKe=ae(JHe,[["__scopeId","data-v-fc0d2d13"]]),tKe={},nKe={class:"card"},aKe={class:"card-title"},sKe={class:"card-content"};function oKe(e,t){return h(),v("div",nKe,[p("div",aKe,[Pt(e.$slots,"title")]),p("div",sKe,[Pt(e.$slots,"content")])])}const xp=ae(tKe,[["render",oKe]]),iKe={class:"custom-textarea"},rKe=["id","name","maxLength","disabled","rows","required","placeholder"],uKe={class:"remaining-chars"},lKe=X({__name:"CustomTextArea",props:{name:{},charLimit:{default:500},disabled:{type:Boolean,default:!1},input:{default:""},rows:{default:2},required:{type:Boolean,default:!1},placeholder:{default:""}},emits:["updateValue"],setup(e,{emit:t}){const n=e,a=t,{input:s}=_e(n),o=Ie(s.value?s.value:"");function i(r){const u=r.target;a("updateValue",{value:u.value,selectionStart:u.selectionStart})}return Ce(()=>n.input,r=>{o.value=r===null?"":r}),(r,u)=>(h(),v("div",iKe,[We(p("textarea",{id:r.name,name:r.name,maxLength:r.charLimit,disabled:r.disabled,rows:r.rows,required:r.required,placeholder:r.placeholder,"onUpdate:modelValue":u[0]||(u[0]=l=>o.value=l),onInput:i},null,40,rKe),[[it,o.value]]),p("div",uKe,A(r.$t("workouts.REMAINING_CHARS"))+": "+A(o.value.length)+"/"+A(r.charLimit),1)]))}}),vO=ae(lKe,[["__scopeId","data-v-8d139e95"]]),vn={ft:{unit:"ft",system:"imperial",multiplier:1,defaultTarget:"m"},mi:{unit:"mi",system:"imperial",multiplier:5280,defaultTarget:"km"},m:{unit:"m",system:"metric",multiplier:1,defaultTarget:"ft"},km:{unit:"m",system:"metric",multiplier:1e3,defaultTarget:"mi"}},cKe={metric:{imperial:3.280839895,metric:1},imperial:{metric:1/3.280839895,imperial:1}},Yt=(e,t,n,a=3)=>{const s=vn[t],o=vn[n],i=e*s.multiplier*cKe[s.system][o.system]/o.multiplier;return a!==null?parseFloat(i.toFixed(a)):i},Jr=(e,t,n)=>{const a=n?vn[e].defaultTarget:e;return n?Yt(t,e,a,2):t},ph=(e,t)=>{const n=t?e*1.8+32:e,a=t?" °F":"°C";return`${n===0?0:Number(n).toFixed(1)}${a}`},dKe=(e,t)=>{const n=t?e*2.2369363:e,a=t?" mph":"m/s";return`${n===0?0:Number(n).toFixed(1)}${a}`},EKe=X({__name:"Distance",props:{distance:{},unitFrom:{},useImperialUnits:{type:Boolean},digits:{default:2},displayUnit:{type:Boolean,default:!0},speed:{type:Boolean,default:!1},strong:{type:Boolean,default:!1}},setup(e){const t=e,{digits:n,displayUnit:a,distance:s,speed:o,strong:i,unitFrom:r,useImperialUnits:u}=_e(t),l=F(()=>u.value?vn[r.value].defaultTarget:r.value),d=F(()=>u.value?Yt(s.value,r.value,l.value,n.value):parseFloat(s.value.toFixed(n.value)));return(E,c)=>(h(),v(re,null,[p("span",{class:Oe(["distance",{strong:T(i)}])},A(d.value),3),c[0]||(c[0]=x(" "+A(" ")+" ")),T(a)?(h(),v("span",{key:0,class:Oe(["unit",{strong:T(i)}])},A(l.value)+A(T(o)?"/h":""),3)):L("",!0)],64))}}),pKe=ae(EKe,[["__scopeId","data-v-3aadc3cb"]]),mKe={class:"dropdown-wrapper"},TKe=["aria-expanded","aria-label"],_Ke=["aria-labelledby"],fKe=["id","onClick","onKeydown","onMouseover"],hKe=X({__name:"Dropdown",props:{options:{},selected:{},buttonLabel:{},listLabel:{},isMenuOpen:{type:Boolean}},emits:{selected:e=>e},setup(e,{emit:t}){const n=e,{isMenuOpen:a,options:s,selected:o}=_e(n),i=t,r=rt(),u=Ie(!1),l=Ie(null),d=Ie(_(o.value));function E(){if(u.value)c();else{u.value=!0;const S=document.getElementById(`dropdown-item-${d.value}`);S==null||S.focus()}}function c(){var S;u.value=!1,d.value=_(o.value),(S=l.value)==null||S.focus()}function m(S){i("selected",S),u.value=!1}function _(S){const R=s.value.findIndex(I=>I.value===S);return R>=0?R:0}function f(S){let R=!1;u.value&&(S.key==="ArrowDown"&&(R=!0,d.value+=1,d.value>s.value.length&&(d.value=0)),S.key==="ArrowUp"&&(R=!0,d.value-=1,d.value<0&&(d.value=s.value.length-1)),S.key==="Home"&&(R=!0,d.value=0),S.key==="End"&&(R=!0,d.value=s.value.length-1),S.key==="Enter"&&(R=!0,m(s.value[d.value])),(S.key==="Escape"||S.key==="Tab")&&(R=S.key==="Escape",c())),R&&(S.stopPropagation(),S.preventDefault())}function O(S){d.value=S}return Ce(()=>r.path,()=>u.value=!1),Ce(()=>o.value,S=>d.value=_(S)),Ce(()=>a.value,S=>{S||c()}),mt(()=>{document.addEventListener("keydown",f)}),ct(()=>{document.removeEventListener("keydown",f)}),(S,R)=>(h(),v("div",mKe,[p("button",{"aria-controls":"dropdown-list","aria-expanded":u.value,"aria-haspopup":"true","aria-label":S.buttonLabel,class:"dropdown-selector transparent",onClick:R[0]||(R[0]=I=>E()),ref_key:"dropdownButton",ref:l},[Pt(S.$slots,"default",{},void 0,!0)],8,TKe),u.value?(h(),v("ul",{key:0,"aria-labelledby":S.listLabel,class:"dropdown-list",id:"dropdown-list",role:"menu"},[(h(!0),v(re,null,be(T(s),(I,g)=>(h(),v("li",{class:Oe(["dropdown-item",{selected:I.value===T(o),focused:g===d.value}]),key:g,id:`dropdown-item-${g}`,tabindex:"-1",onClick:N=>m(I),onKeydown:Ye(N=>m(I),["enter"]),onMouseover:N=>O(g),role:"menuitem"},A(I.label),43,fKe))),128))],8,_Ke)):L("",!0)]))}}),SKe=ae(hKe,[["__scopeId","data-v-f0445cd3"]]),AKe={key:0},OKe={key:1},IKe={key:2},gKe=X({__name:"ErrorMessage",props:{message:{},noMargin:{type:Boolean,default:!1}},setup(e){const t=e,{message:n}=_e(t);return(a,s)=>(h(),v("div",{class:Oe(["error-message",{"no-margin":a.noMargin}])},[Array.isArray(T(n))?(h(),v("ul",AKe,[(h(!0),v(re,null,be(T(n),(o,i)=>(h(),v("li",{key:i},A(a.$t(o)),1))),128))])):typeof T(n)=="string"?(h(),v("div",OKe,A(a.$t(T(n)).replace("api.ERROR.","")),1)):(h(),v("div",IKe,A(a.$t(`equipments.ERRORS.${T(n).status}`,{equipmentId:T(n).equipmentId,equipmentLabel:T(n).equipmentLabel})),1))],2))}}),RKe=ae(gKe,[["__scopeId","data-v-55f45146"]]),NKe={name:"Bike"},vKe={version:"1.1",id:"bike",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 35 35","xml:space":"preserve"};function bKe(e,t,n,a,s,o){return h(),v("svg",vKe,t[0]||(t[0]=[p("desc",{id:"BikeEquipmentDescription"},"bike",-1),p("g",null,[p("path",{d:`M25.8 14.32c-0.64 0-1.24 0.12-1.84 0.32l-1.52-3 2.6-3.88c0.28-0.4 0.12-1.32-0.72-1.32h-3.32c-0.48 0-0.84 0.36-0.84 0.84s0.36 0.84 0.84 0.84h1.76l-1.76 2.64h-9.68c-0.4 0-0.68 0.36-0.68 0.36v0 0 0 0l-2.56 3.76c-0.72-0.36-1.56-0.56-2.44-0.56-3.12 0-5.64 2.52-5.64 5.64s2.52 5.64 5.68 5.64c2.8 0 5.16-2.080 5.56-4.8h4.6c0.48 0 0.68-0.4 0.68-0.4v0l4.8-7.2 1.16 2.2c-1.4 1.040-2.32 2.68-2.32 4.56 0 3.12 2.52 5.64 5.64 @@ -342,7 +342,7 @@ and ensure you are accounting for this risk. 0.68 1.28v0 0h3.84c-0.4 1.8-2 3.12-3.84 3.12zM25.8 23.88c-2.16 0-3.96-1.76-3.96-3.96 0-1.2 0.56-2.32 1.44-3.040l1.8 3.44c0.2 0.32 0.68 0.56 1.16 0.36 0.4-0.16 0.56-0.72 0.36-1.12l-1.8-3.4c0.32-0.080 0.68-0.16 1.040-0.16 2.16 0 3.96 1.76 3.96 3.96s-1.8 3.92-4 3.92zM9.8 9.4h3.080c0.48 0 0.84-0.36 - 0.84-0.84s-0.36-0.84-0.84-0.84h-3.080c-0.48 0-0.84 0.36-0.84 0.84-0.040 0.44 0.36 0.84 0.84 0.84z`})],-1)]))}const PKe=ae(vKe,[["render",CKe]]),DKe={name:"BikeTrainer"},LKe={version:"1.1",id:"bike_trainer",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","xml:space":"preserve",style:{"shape-rendering":"geometricPrecision","text-rendering":"geometricPrecision","image-rendering":"optimizeQuality","fill-rule":"evenodd","clip-rule":"evenodd"}};function yKe(e,t,n,a,s,o){return f(),v("svg",LKe,t[0]||(t[0]=[Pn(`bike trainerbike trainer`,7)]))}const $Ke=ae(DKe,[["render",yKe]]),UKe={name:"Kayak_Boat"},kKe={id:"kayak",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"-200 -150 800 800","xml:space":"preserve"};function wKe(e,t,n,a,s,o){return f(),v("svg",kKe,t[0]||(t[0]=[p("desc",{id:"kayakBoatEquipmentDescription"},"kayak",-1),p("g",null,[p("g",null,[p("path",{d:`M506.376,55.175L458.322,7.122c-5.504-5.504-14.428-5.504-19.933,0l-30.985,30.985 + -49,-0.5 9.6894,-11.353 19.3561,-22.686 29,-34 z">`,7)]))}const yKe=ae(PKe,[["render",LKe]]),$Ke={name:"Kayak_Boat"},UKe={id:"kayak",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"-200 -150 800 800","xml:space":"preserve"};function kKe(e,t,n,a,s,o){return h(),v("svg",UKe,t[0]||(t[0]=[p("desc",{id:"kayakBoatEquipmentDescription"},"kayak",-1),p("g",null,[p("g",null,[p("path",{d:`M506.376,55.175L458.322,7.122c-5.504-5.504-14.428-5.504-19.933,0l-30.985,30.985 c-14.252,14.252-17.674,35.223-10.286,52.713c-1.12,0.678-2.183,1.483-3.15,2.45L91.981,395.257 c-1.027,1.027-1.872,2.163-2.574,3.361c-17.508-7.434-38.522-4.024-52.798,10.25L5.623,439.852 c-5.504,5.504-5.504,14.429,0,19.933l48.054,48.054c5.504,5.504,14.428,5.504,19.933,0l30.985-30.985 @@ -371,7 +371,7 @@ and ensure you are accounting for this risk. c0-25.894,20.992-46.886,46.886-46.886c13.039,0,24.831,5.326,33.329,13.917l40.982-40.982 C317.405,73.151,301.526,41.842,287.822,18.22z`})])],-1),p("g",null,[p("g",null,[p("path",{d:`M356.238,224.889l-53.113,53.115v50.303c0,25.894-20.992,46.886-46.886,46.886c-13.817,0-26.235-5.979-34.816-15.488 l-40.306,40.306c13.297,37.559,29.552,69.661,43.538,93.767c6.534,11.261,18.536,18.214,31.556,18.22s25.057-6.925,31.591-18.186 - c29.734-51.242,69.75-138.626,69.75-237.815C357.552,245.483,357.078,235.11,356.238,224.889z`})])],-1)]))}const MKe=ae(UKe,[["render",wKe]]),WKe={name:"Shoes"},FKe={id:"shoes",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","xml:space":"preserve"};function zKe(e,t,n,a,s,o){return f(),v("svg",FKe,t[0]||(t[0]=[Pn(`shoesshoes`,4)]))}const xKe=ae(WKe,[["render",zKe]]),BKe={name:"Shoes"},GKe={id:"skis",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","xml:space":"preserve"};function VKe(e,t,n,a,s,o){return f(),v("svg",GKe,t[0]||(t[0]=[p("desc",{id:"skisEquipmentDescription"},"skis",-1),p("path",{d:`m 105.01644,82.858537 c -0.75155,0 -1.40914,0.134433 -2.1607,0.373428 -1.52187,0.492925 -2.39554,1.127758 -3.400739,2.673751 + 39.5,-38 z">`,4)]))}const zKe=ae(MKe,[["render",FKe]]),xKe={name:"Shoes"},BKe={id:"skis",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","xml:space":"preserve"};function GKe(e,t,n,a,s,o){return h(),v("svg",BKe,t[0]||(t[0]=[p("desc",{id:"skisEquipmentDescription"},"skis",-1),p("path",{d:`m 105.01644,82.858537 c -0.75155,0 -1.40914,0.134433 -2.1607,0.373428 -1.52187,0.492925 -2.39554,1.127758 -3.400739,2.673751 -1.01459,1.553454 -1.85068,4.040497 -2.16069,7.192229 -0.62942,6.296003 0.79852,14.996885 3.184669,23.511055 4.81929,17.02088 12.99235,33.25755 12.99235,33.25755 l 31.75279,62.51192 11.9308,-22.33103 28.18296,9.48509 -31.7528,-62.48952 c 0,0 -8.36096,-16.25161 -19.82202,-31.129 -5.73054,-7.438695 -12.30656,-14.481551 -18.22498,-18.66396 -3.00618,-2.091199 -5.82448,-3.420599 -7.89123,-3.973273 @@ -399,7 +399,7 @@ and ensure you are accounting for this risk. V 250.0574 Z m 80.79115,0 v 153.85252 h -21.60693 v 13.44343 h 21.60693 v 17.17771 h 16.90978 V 417.35335 H 463.7855 V 403.90992 H 442.17857 V 250.0574 Z m -200.94449,26.13999 -40.0198,12.92062 10.52164,20.76263 40.11374,-12.92062 -4.88504,-9.63446 z m -94.03714,0.0747 -10.61558,20.76262 40.0198,12.92063 8.45488,-16.58022 -2.25462,-4.48115 -0.65761,-1.34434 z m 110.94691,33.16045 - -40.0198,12.84594 55.61437,109.48923 40.0198,-12.92063 z m -127.95063,0.0373 -55.623763,109.33985 40.057384,12.92063 55.680129,-109.33986 z`},null,-1)]))}const HKe=ae(BKe,[["render",VKe]]),KKe={name:"Shoes"},qKe={id:"shoes",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","xml:space":"preserve",style:{"shape-rendering":"geometricPrecision","text-rendering":"geometricPrecision","image-rendering":"optimizeQuality","fill-rule":"evenodd","clip-rule":"evenodd"}};function jKe(e,t,n,a,s,o){return f(),v("svg",qKe,t[0]||(t[0]=[Pn(`snowshoessnowshoes`,3)]))}const YKe=ae(KKe,[["render",jKe]]),XKe=["title"],QKe=X({__name:"index",props:{equipmentTypeLabel:{},title:{}},setup(e){const t=e,{equipmentTypeLabel:n,title:a}=_e(t),{darkTheme:s}=Ke();return(o,i)=>(f(),v("div",{class:"equipment-type-img",style:za({fill:T(s)?"#cfd0d0":"#2c3e50"}),title:T(a)},[T(n)==="Bike"?(f(),B(PKe,{key:0})):L("",!0),T(n)==="Bike Trainer"?(f(),B($Ke,{key:1})):L("",!0),T(n)==="Kayak_Boat"?(f(),B(MKe,{key:2})):L("",!0),T(n)==="Shoes"?(f(),B(xKe,{key:3})):L("",!0),T(n)==="Skis"?(f(),B(HKe,{key:4})):L("",!0),T(n)==="Snowshoes"?(f(),B(YKe,{key:5})):L("",!0)],12,XKe))}}),ZKe={name:"CyclingSport"},JKe={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 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve"};function eqe(e,t,n,a,s,o){return f(),v("svg",JKe,t[0]||(t[0]=[p("desc",{id:"cyclingSportDescription"}," silhouette of a person riding a bicycle ",-1),p("g",null,[p("path",{d:`M321.097,112.359c20.973,12.338,47.985,5.315,60.293-15.652c12.34-20.973,5.35-47.974-15.623-60.304 + 5.705,-1.571 11.372,-3.071 17,-4.5 z">`,3)]))}const jKe=ae(HKe,[["render",qKe]]),YKe=["title"],XKe=X({__name:"index",props:{equipmentTypeLabel:{},title:{}},setup(e){const t=e,{equipmentTypeLabel:n,title:a}=_e(t),{darkTheme:s}=Be();return(o,i)=>(h(),v("div",{class:"equipment-type-img",style:za({fill:T(s)?"#cfd0d0":"#2c3e50"}),title:T(a)},[T(n)==="Bike"?(h(),B(CKe,{key:0})):L("",!0),T(n)==="Bike Trainer"?(h(),B(yKe,{key:1})):L("",!0),T(n)==="Kayak_Boat"?(h(),B(wKe,{key:2})):L("",!0),T(n)==="Shoes"?(h(),B(zKe,{key:3})):L("",!0),T(n)==="Skis"?(h(),B(VKe,{key:4})):L("",!0),T(n)==="Snowshoes"?(h(),B(jKe,{key:5})):L("",!0)],12,YKe))}}),QKe={name:"CyclingSport"},ZKe={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 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve"};function JKe(e,t,n,a,s,o){return h(),v("svg",ZKe,t[0]||(t[0]=[p("desc",{id:"cyclingSportDescription"}," silhouette of a person riding a bicycle ",-1),p("g",null,[p("path",{d:`M321.097,112.359c20.973,12.338,47.985,5.315,60.293-15.652c12.34-20.973,5.35-47.974-15.623-60.304 c-21.009-12.332-47.99-5.317-60.314,15.65C293.129,73.036,300.103,100.027,321.097,112.359z`}),p("path",{d:`M393.081,264.102c-2.414,0-4.8,0.194-7.169,0.362l-14.431-71.605l4.702-1.757c10.666-3.987,16.093-15.868,12.098-26.54 c-3.994-10.681-15.946-16.084-26.531-12.09l-51.823,19.38l-2.321-18.864c6.3-13.193,5.541-29.78-4.767-41.482 c-21.224-24.092-47.12-12.508-55.191-5.976l-106.884,86.555l0.016,0.024c-3.319,2.893-6.089,6.485-7.86,10.842 @@ -477,7 +477,7 @@ and ensure you are accounting for this risk. c7.877-9.118,17.787-16.319,29.205-20.734L375.396,337.633z M393.081,436.671c-40.757,0-73.907-33.161-73.907-73.917 c0-9.544,1.965-18.597,5.268-26.983l44.541,26.888c0,0.032-0.016,0.064-0.016,0.095c0,13.323,10.808,24.132,24.114,24.132 c13.322,0,24.118-10.81,24.118-24.132c0-10.478-6.721-19.307-16.06-22.64l-10.277-51.043c0.756-0.024,1.463-0.226,2.22-0.226 - c40.757,0,73.911,33.153,73.911,73.909C466.992,403.51,433.838,436.671,393.081,436.671z`})],-1)]))}const tqe=ae(ZKe,[["render",eqe]]),nqe={name:"CyclingTransport"},aqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function sqe(e,t,n,a,s,o){return f(),v("svg",aqe,t[0]||(t[0]=[p("desc",{id:"cyclingTransportDescription"}," silhouette of a person riding a bicycle (for transportation) ",-1),p("g",{id:"g147"},[p("path",{d:"m 189.097,82.359 c 20.97701,12.331184 47.97442,5.308784 60.293,-15.652 12.32942,-20.979222 5.35418,-47.981117 -15.623,-60.304 -21.00482,-12.3391184 -47.99,-5.317 -60.314,15.65 -12.324,20.983 -5.34599,47.967183 15.644,60.306 z",id:"path143"}),p("path",{d:"m 393.081,264.102 c -2.414,0 -4.8,0.194 -7.169,0.362 l -14.431,-71.605 4.702,-1.757 c 10.666,-3.987 16.093,-15.868 12.098,-26.54 -3.994,-10.681 -15.946,-16.084 -26.531,-12.09 l -63.05508,-1.53717 C 284.04753,137.09803 248.90259,106.55858 243.33317,101.62481 217.77732,75.090916 186.1698,85.012419 178.0988,91.544419 L 140.764,192.085 l 0.016,0.024 c -3.319,2.893 -6.089,6.485 -7.86,10.842 -2.191,5.396 -2.596,11.067 -1.564,16.384 -8.503,0.669 -15.255,7.571 -15.255,16.246 0,9.085 7.346,16.44 16.432,16.48 l -6.797,15.906 c -8.62,-2.465 -17.674,-3.866 -27.066,-3.866 C 44.27,264.102 0,308.354 0,362.754 c 0,54.403 44.27,98.663 98.668,98.663 54.403,0 98.652,-44.26 98.652,-98.663 0,-36.228 -19.683,-67.867 -48.858,-85.024 l 10.957,-25.652 h 17.767 l 60.281,24.462 -32.201,52.773 c -8.297,13.612 -3.994,31.382 9.615,39.685 4.691,2.86 9.878,4.229 15,4.229 9.729,0 19.234,-4.929 24.677,-13.838 l 29.339,-48.095 19.072,11.511 c -5.447,12.227 -8.54,25.726 -8.54,39.95 0,54.403 44.254,98.663 98.652,98.663 54.402,0 98.656,-44.26 98.656,-98.663 0,-54.401 -44.254,-98.653 -98.656,-98.653 z M 98.668,436.671 c -40.756,0 -73.923,-33.161 -73.923,-73.917 0,-40.756 33.167,-73.909 73.923,-73.909 5.944,0 11.649,0.896 17.188,2.224 L 95.38,338.962 c -11.758,1.619 -20.843,11.598 -20.843,23.792 0,13.323 10.808,24.132 24.13,24.132 8.767,0 16.367,-4.745 20.589,-11.76 h 52.065 c -5.926,34.862 -36.133,61.545 -72.653,61.545 z m 72.654,-86.288 h -52.065 c -0.355,-0.588 -0.708,-1.176 -1.112,-1.732 l 20.476,-47.901 c 17.058,11.026 29.172,28.845 32.701,49.633 z m 125.459,-60.208 7.666,-12.564 c 4.416,-7.233 5.431,-16.038 2.774,-24.084 -2.661,-8.046 -8.718,-14.515 -16.562,-17.704 l -73.83357,-31.7176 16.7558,-45.21274 c 10.36934,4.13303 41.82171,27.90767 45.77423,28.08592 3.271,1.981 8.57725,1.46711 12.29625,1.46711 2.435,0 18.50584,0.70472 20.84384,-0.16628 L 343.32113,188.03378 361.635,269.33 c -18.268,6.162 -34.117,17.51 -45.848,32.314 z m 78.615,47.458 -38.003,-22.94 c 7.877,-9.118 17.787,-16.319 29.205,-20.734 z m 17.685,99.038 c -40.757,0 -73.907,-33.161 -73.907,-73.917 0,-9.544 1.965,-18.597 5.268,-26.983 l 44.541,26.888 c 0,0.032 -0.016,0.064 -0.016,0.095 0,13.323 10.808,24.132 24.114,24.132 13.322,0 24.118,-10.81 24.118,-24.132 0,-10.478 -6.721,-19.307 -16.06,-22.64 l -10.277,-51.043 c 0.756,-0.024 1.463,-0.226 2.22,-0.226 40.757,0 73.911,33.153 73.911,73.909 -10e-4,40.756 -33.155,73.917 -73.912,73.917 z",id:"path145"})],-1)]))}const oqe=ae(nqe,[["render",sqe]]),iqe={name:"CyclingTransport"},rqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function uqe(e,t,n,a,s,o){return f(),v("svg",rqe,t[0]||(t[0]=[Pn(' silhouette of a person riding a bicycle for touring/trekking ',2)]))}const lqe=ae(iqe,[["render",uqe]]),cqe={name:"CyclingVirtual"},dqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function Eqe(e,t,n,a,s,o){return f(),v("svg",dqe,t[0]||(t[0]=[Pn(' silhouette of a person riding a bicycle with virtual indicator ',4)]))}const pqe=ae(cqe,[["render",Eqe]]),mqe={name:"Hiking"},Tqe={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 463.507 463.507",style:{"enable-background":"new 0 0 463.507 463.507"},"xml:space":"preserve"};function _qe(e,t,n,a,s,o){return f(),v("svg",Tqe,t[0]||(t[0]=[p("desc",{id:"hikingDescription"},"silhouette of a person hiking",-1),p("g",null,[p("path",{d:`M246.413,78.492c21.688,0,39.255-17.573,39.255-39.251c0-21.67-17.567-39.24-39.255-39.24 + c40.757,0,73.911,33.153,73.911,73.909C466.992,403.51,433.838,436.671,393.081,436.671z`})],-1)]))}const eqe=ae(QKe,[["render",JKe]]),tqe={name:"CyclingTransport"},nqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function aqe(e,t,n,a,s,o){return h(),v("svg",nqe,t[0]||(t[0]=[p("desc",{id:"cyclingTransportDescription"}," silhouette of a person riding a bicycle (for transportation) ",-1),p("g",{id:"g147"},[p("path",{d:"m 189.097,82.359 c 20.97701,12.331184 47.97442,5.308784 60.293,-15.652 12.32942,-20.979222 5.35418,-47.981117 -15.623,-60.304 -21.00482,-12.3391184 -47.99,-5.317 -60.314,15.65 -12.324,20.983 -5.34599,47.967183 15.644,60.306 z",id:"path143"}),p("path",{d:"m 393.081,264.102 c -2.414,0 -4.8,0.194 -7.169,0.362 l -14.431,-71.605 4.702,-1.757 c 10.666,-3.987 16.093,-15.868 12.098,-26.54 -3.994,-10.681 -15.946,-16.084 -26.531,-12.09 l -63.05508,-1.53717 C 284.04753,137.09803 248.90259,106.55858 243.33317,101.62481 217.77732,75.090916 186.1698,85.012419 178.0988,91.544419 L 140.764,192.085 l 0.016,0.024 c -3.319,2.893 -6.089,6.485 -7.86,10.842 -2.191,5.396 -2.596,11.067 -1.564,16.384 -8.503,0.669 -15.255,7.571 -15.255,16.246 0,9.085 7.346,16.44 16.432,16.48 l -6.797,15.906 c -8.62,-2.465 -17.674,-3.866 -27.066,-3.866 C 44.27,264.102 0,308.354 0,362.754 c 0,54.403 44.27,98.663 98.668,98.663 54.403,0 98.652,-44.26 98.652,-98.663 0,-36.228 -19.683,-67.867 -48.858,-85.024 l 10.957,-25.652 h 17.767 l 60.281,24.462 -32.201,52.773 c -8.297,13.612 -3.994,31.382 9.615,39.685 4.691,2.86 9.878,4.229 15,4.229 9.729,0 19.234,-4.929 24.677,-13.838 l 29.339,-48.095 19.072,11.511 c -5.447,12.227 -8.54,25.726 -8.54,39.95 0,54.403 44.254,98.663 98.652,98.663 54.402,0 98.656,-44.26 98.656,-98.663 0,-54.401 -44.254,-98.653 -98.656,-98.653 z M 98.668,436.671 c -40.756,0 -73.923,-33.161 -73.923,-73.917 0,-40.756 33.167,-73.909 73.923,-73.909 5.944,0 11.649,0.896 17.188,2.224 L 95.38,338.962 c -11.758,1.619 -20.843,11.598 -20.843,23.792 0,13.323 10.808,24.132 24.13,24.132 8.767,0 16.367,-4.745 20.589,-11.76 h 52.065 c -5.926,34.862 -36.133,61.545 -72.653,61.545 z m 72.654,-86.288 h -52.065 c -0.355,-0.588 -0.708,-1.176 -1.112,-1.732 l 20.476,-47.901 c 17.058,11.026 29.172,28.845 32.701,49.633 z m 125.459,-60.208 7.666,-12.564 c 4.416,-7.233 5.431,-16.038 2.774,-24.084 -2.661,-8.046 -8.718,-14.515 -16.562,-17.704 l -73.83357,-31.7176 16.7558,-45.21274 c 10.36934,4.13303 41.82171,27.90767 45.77423,28.08592 3.271,1.981 8.57725,1.46711 12.29625,1.46711 2.435,0 18.50584,0.70472 20.84384,-0.16628 L 343.32113,188.03378 361.635,269.33 c -18.268,6.162 -34.117,17.51 -45.848,32.314 z m 78.615,47.458 -38.003,-22.94 c 7.877,-9.118 17.787,-16.319 29.205,-20.734 z m 17.685,99.038 c -40.757,0 -73.907,-33.161 -73.907,-73.917 0,-9.544 1.965,-18.597 5.268,-26.983 l 44.541,26.888 c 0,0.032 -0.016,0.064 -0.016,0.095 0,13.323 10.808,24.132 24.114,24.132 13.322,0 24.118,-10.81 24.118,-24.132 0,-10.478 -6.721,-19.307 -16.06,-22.64 l -10.277,-51.043 c 0.756,-0.024 1.463,-0.226 2.22,-0.226 40.757,0 73.911,33.153 73.911,73.909 -10e-4,40.756 -33.155,73.917 -73.912,73.917 z",id:"path145"})],-1)]))}const sqe=ae(tqe,[["render",aqe]]),oqe={name:"CyclingTransport"},iqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function rqe(e,t,n,a,s,o){return h(),v("svg",iqe,t[0]||(t[0]=[Pn(' silhouette of a person riding a bicycle for touring/trekking ',2)]))}const uqe=ae(oqe,[["render",rqe]]),lqe={name:"CyclingVirtual"},cqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function dqe(e,t,n,a,s,o){return h(),v("svg",cqe,t[0]||(t[0]=[Pn(' silhouette of a person riding a bicycle with virtual indicator ',4)]))}const Eqe=ae(lqe,[["render",dqe]]),pqe={name:"Hiking"},mqe={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 463.507 463.507",style:{"enable-background":"new 0 0 463.507 463.507"},"xml:space":"preserve"};function Tqe(e,t,n,a,s,o){return h(),v("svg",mqe,t[0]||(t[0]=[p("desc",{id:"hikingDescription"},"silhouette of a person hiking",-1),p("g",null,[p("path",{d:`M246.413,78.492c21.688,0,39.255-17.573,39.255-39.251c0-21.67-17.567-39.24-39.255-39.24 c-21.652,0-39.242,17.57-39.242,39.24C207.171,60.919,224.761,78.492,246.413,78.492z`}),p("path",{d:`M386.604,202.858c0-11.185-9.066-20.251-20.253-20.251h-68.479l-38.62-54.832l0.127-0.933 c1.378-10.474-1.474-21.067-7.911-29.444c-6.441-8.378-15.932-13.852-26.408-15.23c-11.596-1.511-22.592,2.224-30.852,9.225V45.779 c0-7.847-6.362-14.217-14.225-14.217H140.59c-7.867,0-14.225,6.37-14.225,14.217v168.953c0,20.68,15.821,37.476,35.979,39.446 @@ -486,7 +486,7 @@ and ensure you are accounting for this risk. c-0.917,13.393,9.177,24.99,22.58,25.908c0.552,0.04,1.124,0.056,1.691,0.056c12.66,0,23.339-9.819,24.208-22.642l6.882-100.264 c0.508-7.364-2.371-14.572-7.815-19.564l-45.994-42.219l13.992-90.613l19.331,27.435c3.801,5.387,9.972,8.592,16.552,8.592h70.882 l1.339,232.294c0,4.478,3.626,8.101,8.101,8.101c4.479,0,8.101-3.624,8.101-8.101l-1.339-234.036 - C381.588,218.245,386.604,211.15,386.604,202.858z`})],-1)]))}const fqe=ae(mqe,[["render",_qe]]),hqe={name:"MountainBiking"},Sqe={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 503.162 503.162",style:{"enable-background":"new 0 0 503.162 503.162"},"xml:space":"preserve"};function Aqe(e,t,n,a,s,o){return f(),v("svg",Sqe,t[0]||(t[0]=[p("desc",{id:"mountainBikingDescription"}," silhouette of a person riding a mountain bike ",-1),p("g",null,[p("g",null,[p("path",{d:`M149.951,67.997c15.711-7.143,22.739-25.675,15.596-41.416c-7.124-15.701-25.723-22.682-41.453-15.539 + C381.588,218.245,386.604,211.15,386.604,202.858z`})],-1)]))}const _qe=ae(pqe,[["render",Tqe]]),fqe={name:"MountainBiking"},hqe={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 503.162 503.162",style:{"enable-background":"new 0 0 503.162 503.162"},"xml:space":"preserve"};function Sqe(e,t,n,a,s,o){return h(),v("svg",hqe,t[0]||(t[0]=[p("desc",{id:"mountainBikingDescription"}," silhouette of a person riding a mountain bike ",-1),p("g",null,[p("g",null,[p("path",{d:`M149.951,67.997c15.711-7.143,22.739-25.675,15.596-41.416c-7.124-15.701-25.723-22.682-41.453-15.539 c-15.721,7.134-22.702,25.752-15.578,41.444C115.679,68.216,134.23,75.14,149.951,67.997z`}),p("path",{d:`M87.517,89.072l-32.828,87.755c-1.979,5.967-1.683,12.594,1.1,18.733c4.055,8.922,12.604,14.525,21.755,15.271 l76.873,6.244l29.137,64.184c4.122,9.046,14.832,13.148,23.906,9.017c9.075-4.131,13.072-14.859,8.951-23.944l-36.424-80.201 c0,0-3.605-13.76-21.343-14.133l-43.873-2.572l21.009-55.166l31.671,20.588c5.584,3.663,10.997,3.682,15.1,1.722l55.051-24.997 @@ -501,7 +501,7 @@ and ensure you are accounting for this risk. c-12.326-0.497-24.021,8.97-26.096,21.143l-2.62,15.339c-0.564,3.271-0.354,6.11,0.401,8.501c-0.43,1.778-0.736,3.548-0.736,5.326 v9.562c0,10.557,8.568,19.125,19.125,19.125h460.932c10.557,0,19.115-8.568,19.106-19.125l-0.125-167.507 c0-2.782-0.593-5.221-1.616-7.286c1.396-3.806,2.057-7.841,1.598-11.839l-4.677-40.497c-1.415-12.249-9.763-29.146-18.637-37.724 - l-36.127-34.951C434.712,167.418,425.79,170.325,423.687,182.488z`})])],-1)]))}const Oqe=ae(hqe,[["render",Aqe]]),Iqe={name:"MountainBikingElectric"},gqe={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 503.162 503.162",style:{"enable-background":"new 0 0 503.162 503.162"},"xml:space":"preserve"};function Rqe(e,t,n,a,s,o){return f(),v("svg",gqe,t[0]||(t[0]=[Pn(' silhouette of a person riding an electric mountain bike ',18)]))}const Nqe=ae(Iqe,[["render",Rqe]]),vqe={name:"Mountaineering"},bqe={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 495.017 495.017",style:{"enable-background":"new 0 0 495.017 495.017"},"xml:space":"preserve"};function Cqe(e,t,n,a,s,o){return f(),v("svg",bqe,t[0]||(t[0]=[Pn(` silhouette of a person doing mountaineering silhouette of a person riding an electric mountain bike ',18)]))}const Rqe=ae(Oqe,[["render",gqe]]),Nqe={name:"Mountaineering"},vqe={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 495.017 495.017",style:{"enable-background":"new 0 0 495.017 495.017"},"xml:space":"preserve"};function bqe(e,t,n,a,s,o){return h(),v("svg",vqe,t[0]||(t[0]=[Pn(` silhouette of a person doing mountaineering `,2)]))}const Pqe=ae(vqe,[["render",Cqe]]),Dqe={name:"OpenWaterSwimming"},Lqe={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 492.508 492.508",style:{"enable-background":"new 0 0 492.508 492.508"},"xml:space":"preserve"};function yqe(e,t,n,a,s,o){return f(),v("svg",Lqe,t[0]||(t[0]=[Pn(` silhouette of a person swimming in open water `,2)]))}const Cqe=ae(Nqe,[["render",bqe]]),Pqe={name:"OpenWaterSwimming"},Dqe={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 492.508 492.508",style:{"enable-background":"new 0 0 492.508 492.508"},"xml:space":"preserve"};function Lqe(e,t,n,a,s,o){return h(),v("svg",Dqe,t[0]||(t[0]=[Pn(` silhouette of a person swimming in open water `,3)]))}const $qe=ae(Dqe,[["render",yqe]]),Uqe={name:"Paragliding"},kqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 170 170","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function wqe(e,t,n,a,s,o){return f(),v("svg",kqe,t[0]||(t[0]=[Pn('silhouette of a person paragliding',3)]))}const Mqe=ae(Uqe,[["render",wqe]]),Wqe={name:"Rowing"},Fqe={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 534.51 534.51",style:{"enable-background":"new 0 0 534.51 534.51"},"xml:space":"preserve"};function zqe(e,t,n,a,s,o){return f(),v("svg",Fqe,t[0]||(t[0]=[p("desc",{id:"rowingDescription"},"silhouette of a person rowing",-1),p("g",null,[p("g",null,[p("path",{d:`M70.517,393.857h132.622l-67.205,68.631c-3.28,3.385-3.204,8.797,0.172,12.076c1.597,1.568,3.72,2.43,5.958,2.43 + -43.378,43.375 z" id="path13">`,3)]))}const yqe=ae(Pqe,[["render",Lqe]]),$qe={name:"Paragliding"},Uqe={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 170 170","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function kqe(e,t,n,a,s,o){return h(),v("svg",Uqe,t[0]||(t[0]=[Pn('silhouette of a person paragliding',3)]))}const wqe=ae($qe,[["render",kqe]]),Mqe={name:"Rowing"},Wqe={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 534.51 534.51",style:{"enable-background":"new 0 0 534.51 534.51"},"xml:space":"preserve"};function Fqe(e,t,n,a,s,o){return h(),v("svg",Wqe,t[0]||(t[0]=[p("desc",{id:"rowingDescription"},"silhouette of a person rowing",-1),p("g",null,[p("g",null,[p("path",{d:`M70.517,393.857h132.622l-67.205,68.631c-3.28,3.385-3.204,8.797,0.172,12.076c1.597,1.568,3.72,2.43,5.958,2.43 c2.305,0,4.533-0.947,6.12-2.572l78.881-80.555h221.315c12.45,0,30.676-6.006,40.296-13.914 c8.788-7.229,19.049-16.217,26.345-24.299c10.375-9.811,22.214-23.639-4.255-22.834c-6.98,0.248-206.789,0.02-223.926,0 l47.144-48.139l22.176-22.032l28.209,9.17c10.414,3.385,22.472-0.803,26.919-9.362c4.446-8.558,0.268-18.407-9.343-21.993 @@ -593,7 +593,7 @@ and ensure you are accounting for this risk. c-1.482-0.851-14.153-5.786-26.833-10.643c-14.898-5.719-30.371,0.583-34.53,13.971l-7.525,24.241l-35.324,118.451 c-0.468,1.34-0.603,2.562-0.746,3.711H14.136c-12.45,0-17.662,8.836-11.618,19.727l23.237,21.592 C39.123,385.068,58.066,393.857,70.517,393.857z M272.63,248.727c1.797-5.967,8.099-9.39,14.075-7.64l51.37,14.975l-33.038,33.737 - l-43.453,43.012h-14.2L272.63,248.727z`}),p("circle",{cx:"248.953",cy:"109.842",r:"52.326"})])],-1)]))}const xqe=ae(Wqe,[["render",zqe]]),Bqe={name:"Running"},Gqe={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 494.49 494.49",style:{"enable-background":"new 0 0 494.49 494.49"},"xml:space":"preserve"};function Vqe(e,t,n,a,s,o){return f(),v("svg",Gqe,t[0]||(t[0]=[p("desc",{id:"runningDescription"},"silhouette of a running person",-1),p("g",null,[p("path",{d:`M282.74,80.771c22.318,0,40.401-18.08,40.401-40.389C323.141,18.084,305.058,0,282.74,0 + l-43.453,43.012h-14.2L272.63,248.727z`}),p("circle",{cx:"248.953",cy:"109.842",r:"52.326"})])],-1)]))}const zqe=ae(Mqe,[["render",Fqe]]),xqe={name:"Running"},Bqe={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 494.49 494.49",style:{"enable-background":"new 0 0 494.49 494.49"},"xml:space":"preserve"};function Gqe(e,t,n,a,s,o){return h(),v("svg",Bqe,t[0]||(t[0]=[p("desc",{id:"runningDescription"},"silhouette of a running person",-1),p("g",null,[p("path",{d:`M282.74,80.771c22.318,0,40.401-18.08,40.401-40.389C323.141,18.084,305.058,0,282.74,0 c-22.281,0-40.378,18.084-40.378,40.383C242.362,62.691,260.458,80.771,282.74,80.771z`}),p("path",{d:`M400.207,188.547H331.47l-38.766-55.03l0.123-0.944c1.384-10.514-1.475-21.146-7.94-29.556 c-6.461-8.409-16.007-13.903-26.52-15.287c-10.926-1.429-22.619,3.12-31.206,8.646c-1.441,0.928-84.97,54.921-84.97,54.921 c-5.175,3.358-8.542,8.877-9.165,15.016c-0.634,6.13,1.574,12.222,5.976,16.541l58.982,58l-6.417,48.954l-18.707,65.584l-67.8-19.4 @@ -602,7 +602,7 @@ and ensure you are accounting for this risk. l26.365,36.639l6.684,119.628c0.73,12.991,11.501,23.036,24.349,23.036c0.441,0,0.92-0.016,1.379-0.039 c13.453-0.748,23.745-12.262,23-25.713l-7.083-126.736c-0.271-4.643-1.846-9.116-4.56-12.887l-32.24-44.811l11.959-91.279 l19.409,27.555c3.794,5.407,10.005,8.624,16.613,8.624h79.28c11.226,0,20.326-9.101,20.326-20.329 - C420.533,197.647,411.432,188.547,400.207,188.547z M204.606,190.357l-19.026-18.717l23.476-15.206L204.606,190.357z`})],-1)]))}const Hqe=ae(Bqe,[["render",Vqe]]),Kqe={name:"SkiingAlpine"},qqe={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 522.362 522.362",style:{"enable-background":"new 0 0 522.362 522.362"},"xml:space":"preserve"};function jqe(e,t,n,a,s,o){return f(),v("svg",qqe,t[0]||(t[0]=[p("desc",{id:"alpineSkiingDescription"},"silhouette of a person skiing",-1),p("g",null,[p("g",null,[p("path",{d:`M14.314,351.859L408.088,461.78c4.484,1.311,9.104,1.97,13.731,1.97l0,0c17.471,0,33.746-9.429,42.467-24.604 + C420.533,197.647,411.432,188.547,400.207,188.547z M204.606,190.357l-19.026-18.717l23.476-15.206L204.606,190.357z`})],-1)]))}const Vqe=ae(xqe,[["render",Gqe]]),Hqe={name:"SkiingAlpine"},Kqe={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 522.362 522.362",style:{"enable-background":"new 0 0 522.362 522.362"},"xml:space":"preserve"};function qqe(e,t,n,a,s,o){return h(),v("svg",Kqe,t[0]||(t[0]=[p("desc",{id:"alpineSkiingDescription"},"silhouette of a person skiing",-1),p("g",null,[p("g",null,[p("path",{d:`M14.314,351.859L408.088,461.78c4.484,1.311,9.104,1.97,13.731,1.97l0,0c17.471,0,33.746-9.429,42.467-24.604 c2.716-4.724,3.137-10.27,1.157-15.214c-1.912-4.762-5.767-8.31-10.576-9.744c-7.373-2.237-15.481,1.109-22.146,9.229 c-3.548,4.303-9.496,6.244-15.07,4.714l-136.467-38.078c1.396-0.555,2.812-1.195,4.236-2.065l103.266-63.15 c15.443-9.362,18.493-33.957,7.812-43.883l-64.758-60.233l39.972-21.688l69.682,9.744c5.23,0.736,9.744-2.037,10.079-6.187 @@ -613,7 +613,7 @@ and ensure you are accounting for this risk. l102.414,14.315l-5.308,3.72c-4.332,3.022-10.155,9.151-11.723,14.201c-3.844,12.45-1.473,26.717,10.452,37.705l68.802,62.175 c0,0-50.978,31.776-74.998,46.397c-14.219,8.606-13.674,23.858-6.129,33.393L23.705,318.199 c-10.012-2.792-20.569,2.554-23.113,11.695C-2,339.169,4.159,349.029,14.314,351.859z`}),p("path",{d:`M450.842,72.003c-15.291,16.715-14.201,42.667,2.639,58.121c16.706,15.31,42.716,14.086,58.073-2.668 - c15.386-16.677,14.172-42.734-2.544-58.016C492.305,54.064,466.17,55.192,450.842,72.003z`})])],-1)]))}const Yqe=ae(Kqe,[["render",jqe]]),Xqe={name:"SkiingCrossCountry"},Qqe={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 296 296",style:{"enable-background":"new 0 0 296 296"},"xml:space":"preserve"};function Zqe(e,t,n,a,s,o){return f(),v("svg",Qqe,t[0]||(t[0]=[p("desc",{id:"crossCountrySkiingDescription"}," silhouette of a person skiing (cross country) ",-1),p("g",null,[p("path",{d:`M241.313,246.906h-39.564l0.456-1.273c5.62-18.374,3.479-37.58-6.027-54.278c-5.653-9.929-13.443-18.018-22.745-23.959 + c15.386-16.677,14.172-42.734-2.544-58.016C492.305,54.064,466.17,55.192,450.842,72.003z`})])],-1)]))}const jqe=ae(Hqe,[["render",qqe]]),Yqe={name:"SkiingCrossCountry"},Xqe={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 296 296",style:{"enable-background":"new 0 0 296 296"},"xml:space":"preserve"};function Qqe(e,t,n,a,s,o){return h(),v("svg",Xqe,t[0]||(t[0]=[p("desc",{id:"crossCountrySkiingDescription"}," silhouette of a person skiing (cross country) ",-1),p("g",null,[p("path",{d:`M241.313,246.906h-39.564l0.456-1.273c5.62-18.374,3.479-37.58-6.027-54.278c-5.653-9.929-13.443-18.018-22.745-23.959 l12.886-51.126c3.035-12.05-4.272-24.266-16.322-27.301c-2.634-0.664-5.278-0.826-7.833-0.559 c-0.151-0.011-0.299-0.032-0.452-0.038c-26.03-1.077-51.443,8.485-70.33,25.993L41.586,82.855 c-4.332-2.741-10.065-1.451-12.806,2.881s-1.451,10.065,2.88,12.806l47.625,30.136c-2.557,6.013-0.962,13.224,4.375,17.531 @@ -623,7 +623,7 @@ and ensure you are accounting for this risk. h161.375H280c9.113,0,16.167-7.387,16.167-16.5v-2.5H241.313z M153.974,192.398c0.741-0.153,1.471-0.231,2.188-0.457 c5.742,3.406,10.53,8.313,13.945,14.311c5.378,9.447,6.59,20.402,3.41,30.797l-1.799,5.674c-0.447,1.461-0.656,3.184-0.657,4.184 h-69.909C121.581,231.906,139.297,213.274,153.974,192.398z M167,57.938c0-15.378,12.466-27.844,27.844-27.844 - s27.844,12.466,27.844,27.844s-12.466,27.844-27.844,27.844S167,73.315,167,57.938z`})],-1)]))}const Jqe=ae(Xqe,[["render",Zqe]]),eje={name:"Snowshoes"},tje={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"};function nje(e,t,n,a,s,o){return f(),v("svg",tje,t[0]||(t[0]=[Pn('silhouette of a person with snowshoes',6)]))}const aje=ae(eje,[["render",nje]]),sje={name:"Swimrun"},oje={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 492.508 492.508","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function ije(e,t,n,a,s,o){return f(),v("svg",oje,t[0]||(t[0]=[Pn(' silhouette of a person swimming in open water and another silhouette of a person running ',4)]))}const rje=ae(sje,[["render",ije]]),uje={name:"Trail"},lje={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 535.876 535.876",style:{"enable-background":"new 0 0 535.876 535.876"},"xml:space":"preserve"};function cje(e,t,n,a,s,o){return f(),v("svg",lje,t[0]||(t[0]=[p("desc",{id:"trailDescription"},"silhouette of a person running (trail)",-1),p("g",null,[p("g",null,[p("path",{d:`M505.204,326.949c-5.805-10.892-15.176-10.862-20.923,0.067l-7.114,13.512c-5.757,10.92-20.416,19.775-32.752,19.775 + s27.844,12.466,27.844,27.844s-12.466,27.844-27.844,27.844S167,73.315,167,57.938z`})],-1)]))}const Zqe=ae(Yqe,[["render",Qqe]]),Jqe={name:"Snowshoes"},eje={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"};function tje(e,t,n,a,s,o){return h(),v("svg",eje,t[0]||(t[0]=[Pn('silhouette of a person with snowshoes',6)]))}const nje=ae(Jqe,[["render",tje]]),aje={name:"Swimrun"},sje={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 492.508 492.508","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"};function oje(e,t,n,a,s,o){return h(),v("svg",sje,t[0]||(t[0]=[Pn(' silhouette of a person swimming in open water and another silhouette of a person running ',4)]))}const ije=ae(aje,[["render",oje]]),rje={name:"Trail"},uje={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 535.876 535.876",style:{"enable-background":"new 0 0 535.876 535.876"},"xml:space":"preserve"};function lje(e,t,n,a,s,o){return h(),v("svg",uje,t[0]||(t[0]=[p("desc",{id:"trailDescription"},"silhouette of a person running (trail)",-1),p("g",null,[p("g",null,[p("path",{d:`M505.204,326.949c-5.805-10.892-15.176-10.862-20.923,0.067l-7.114,13.512c-5.757,10.92-20.416,19.775-32.752,19.775 h-16.753c-12.346,0-29.645,6.847-38.643,15.29l-32.35,30.342l-1.233-105.388c0.822-18.446-10.596-24.634-10.596-24.634 l-56.543-25.972l33.67-67.645l38.527,22.912c0,0,15.472,9.715,26.727-9.324l37.026-63.093c1.625-3.519,2.094-7.564,1.052-11.609 c-2.381-9.256-11.81-14.86-21.095-12.479c-4.083,1.042-7.459,3.49-9.754,6.713l-30.772,51.962l-62.777-37.102 @@ -636,8 +636,8 @@ and ensure you are accounting for this risk. c-11.657-4.054-28.831-0.984-38.374,6.838L109.9,433.954c-9.544,7.822-26.67,10.72-38.25,6.483L40.84,429.135 c-11.58-4.256-25.608,1.157-31.336,12.097l-7.21,13.789c-5.728,10.93-0.354,19.794,11.982,19.794H500.27 c12.336,0,24.309-9.802,26.728-21.907l8.004-39.981c2.409-12.097-0.325-30.733-6.14-41.616L505.204,326.949z`}),p("path",{d:`M326.395,126.625c17.806-4.562,28.563-22.721,23.983-40.526c-4.581-17.844-22.74-28.554-40.555-23.983 - 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)]))}const dje=ae(uje,[["render",cje]]),Eje={name:"Walking"},pje={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"};function mje(e,t,n,a,s,o){return f(),v("svg",pje,t[0]||(t[0]=[Pn('silhouette of a walking person',3)]))}const Tje=ae(Eje,[["render",mje]]),Bp={"Cycling (Sport)":"#4c9792","Cycling (Trekking)":"#a8af88","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",Swimrun:"#3d9fc9",Trail:"#09a98a",Walking:"#838383"},_je=e=>{const t={};return e.map(n=>t[n.id]=n.color?n.color:Bp[n.label]),t},fje=(e,t)=>{const n=e.translatedLabel.toLowerCase(),a=t.translatedLabel.toLowerCase();return n>a?1:ne.filter(s=>n==="all"?!0:a.includes(s.id)||s[n]).map(s=>({...s,translatedLabel:t(`sports.${s.label}.LABEL`)})).sort(fje),Gp=(e,t)=>t.filter(n=>n.id===e.sport_id).map(n=>n.label)[0],Vp=(e,t)=>t.filter(n=>n.id===e.sport_id).map(n=>n.color)[0];function nn(){const e=De(),{t}=$t(),n=kt("sportColors"),a="#838383",s=Ie(!1),o=Ie(""),i=F(()=>e.getters[Ht.GETTERS.SPORTS]),r=F(()=>ia(i.value,t)),u=yt({sport_id:0,color:null,is_active:!0,stopped_speed_threshold:1,fromSport:!1});function l(_){u.is_active=_.target.checked}function d(_){s.value=_}function E(_){const h={...u};h.stopped_speed_threshold=_.imperial_units?Yt(u.stopped_speed_threshold,"mi","km",2):u.stopped_speed_threshold,e.dispatch(K.ACTIONS.UPDATE_USER_SPORT_PREFERENCES,h)}function c(_,h=!1){e.dispatch(K.ACTIONS.RESET_USER_SPORT_PREFERENCES,{sportId:_,fromSport:h})}function m(_){return _?i.value.filter(h=>h.id===_.sport_id)[0]:null}return{defaultColor:a,defaultEquipmentId:o,displayModal:s,sportColors:n,sportPayload:u,sports:i,translatedSports:r,getWorkoutSport:m,resetSport:c,updateDisplayModal:d,updateIsActive:l,updateSport:E}}const hje=["title"],Sje=X({__name:"index",props:{sportLabel:{},color:{},title:{default:""}},setup(e){const t=e,{color:n,sportLabel:a,title:s}=_e(t),{sportColors:o}=nn();return(i,r)=>(f(),v("div",{class:"sport-img",style:za({fill:T(n)?T(n):T(o)[T(a)]}),title:T(s)?T(s):i.$t(`sports.${T(a)}.LABEL`)},[T(a)==="Cycling (Sport)"?(f(),B(tqe,{key:0})):L("",!0),T(a)==="Cycling (Trekking)"?(f(),B(lqe,{key:1})):L("",!0),T(a)==="Cycling (Transport)"?(f(),B(oqe,{key:2})):L("",!0),T(a)==="Cycling (Virtual)"?(f(),B(pqe,{key:3})):L("",!0),T(a)==="Hiking"?(f(),B(fqe,{key:4})):L("",!0),T(a)==="Mountain Biking"?(f(),B(Oqe,{key:5})):L("",!0),T(a)==="Mountain Biking (Electric)"?(f(),B(Nqe,{key:6})):L("",!0),T(a)==="Mountaineering"?(f(),B(Pqe,{key:7})):L("",!0),T(a)==="Paragliding"?(f(),B(Mqe,{key:8})):L("",!0),T(a)==="Open Water Swimming"?(f(),B($qe,{key:9})):L("",!0),T(a)==="Rowing"?(f(),B(xqe,{key:10})):L("",!0),T(a)==="Running"?(f(),B(Hqe,{key:11})):L("",!0),T(a)==="Skiing (Alpine)"?(f(),B(Yqe,{key:12})):L("",!0),T(a)==="Skiing (Cross Country)"?(f(),B(Jqe,{key:13})):L("",!0),T(a)==="Snowshoes"?(f(),B(aje,{key:14})):L("",!0),T(a)==="Swimrun"?(f(),B(rje,{key:15})):L("",!0),T(a)==="Trail"?(f(),B(dje,{key:16})):L("",!0),T(a)==="Walking"?(f(),B(Tje,{key:17})):L("",!0)],12,hje))}}),Aje={},Oje={class:"loader"};function Ije(e,t){return f(),v("div",Oje)}const Ml=ae(Aje,[["render",Ije],["__scopeId","data-v-8b613881"]]),gje={class:"custom-modal"},Rje={key:0,class:"modal-message"},Nje={key:1,class:"modal-message"},vje={key:2,class:"info-box"},bje={key:4},Cje={key:5,class:"modal-buttons"},Pje=X({__name:"Modal",props:{title:{},message:{},strongMessage:{default:()=>""},loading:{type:Boolean,default:!1},warning:{default:()=>""},hideErrorMessage:{type:Boolean,default:!1}},emits:["cancelAction","confirmAction"],setup(e,{emit:t}){const n=e,{title:a,message:s,strongMessage:o}=_e(n),i=t,{errorMessages:r}=Ke();let u=null,l=null,d=null;function E(c){var m;(c.key==="Tab"||c.keyCode===9)&&(c.preventDefault(),((m=document.activeElement)==null?void 0:m.id)==="cancel-button"?u==null||u.focus():l==null||l.focus())}return mt(()=>{d=document.activeElement,l=document.getElementById("cancel-button"),u=document.getElementById("confirm-button"),l&&l.focus(),document.addEventListener("keydown",E)}),ct(()=>{document.removeEventListener("keydown",E),d==null||d.focus()}),(c,m)=>{const _=j("i18n-t"),h=j("ErrorMessage"),O=j("Loader"),A=j("Card");return f(),v("div",{id:"modal",role:"dialog",onClick:m[2]||(m[2]=ve(R=>i("cancelAction"),["self"]))},[p("div",gje,[w(A,null,{title:Y(()=>[x(S(T(a)),1)]),content:Y(()=>[T(o)?(f(),v("div",Rje,[w(_,{keypath:T(s)},{default:Y(()=>[p("span",null,S(T(o)),1)]),_:1},8,["keypath"])])):(f(),v("div",Nje,S(T(s)),1)),c.warning?(f(),v("div",vje,[m[3]||(m[3]=p("i",{class:"fa fa-exclamation-triangle","aria-hidden":"true"},null,-1)),x(" "+S(c.warning),1)])):L("",!0),T(r)&&!c.hideErrorMessage?(f(),B(h,{key:3,message:T(r)},null,8,["message"])):L("",!0),c.loading?(f(),v("div",bje,[w(O)])):(f(),v("div",Cje,[T(r)?L("",!0):(f(),v("button",{key:0,class:Oe(["confirm",{danger:c.warning}]),id:"confirm-button",onClick:m[0]||(m[0]=R=>i("confirmAction"))},S(c.$t("buttons.YES")),3)),p("button",{tabindex:"0",id:"cancel-button",class:"cancel",onClick:m[1]||(m[1]=R=>i("cancelAction"))},S(c.$t(`buttons.${T(r)?"CANCEL":"NO"}`)),1)]))]),_:1})])])}}}),Dje=ae(Pje,[["__scopeId","data-v-9235de5f"]]),Lje={class:"visibility"},yje=["title"],$je=X({__name:"VisibilityIcon",props:{visibility:{},isComment:{type:Boolean,default:!1}},setup(e){const t=e,{visibility:n,isComment:a}=_e(t);function s(o){switch(o){case"public":return"globe";case"followers_only":return"users";default:case"private":return"lock"}}return(o,i)=>(f(),v("span",Lje,[p("i",{class:Oe(`fa fa-${s(T(n))}`),"aria-hidden":"true",title:o.$t(`visibility_levels.${T(a)?"COMMENT_":""}LEVELS.${T(n)}`)},null,10,yje)]))}}),Uje=[{target:eKe,name:"AlertMessage"},{target:xp,name:"Card"},{target:vO,name:"CustomTextArea"},{target:pKe,name:"Distance"},{target:SKe,name:"Dropdown"},{target:NKe,name:"ErrorMessage"},{target:Ml,name:"Loader"},{target:Dje,name:"Modal"},{target:Sje,name:"SportImage"},{target:QKe,name:"EquipmentTypeImage"},{target:$je,name:"VisibilityIcon"},{target:zp,name:"Comment"}],kje={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)}},wje=["bytes","KB","MB","GB","TB"],bO=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),a=wje[t];return{size:n,suffix:a}},Zu=e=>{if(!e)return"0 bytes";const t=bO(e);return`${t.size}${t.suffix}`},Mje=e=>{const t=e/1048576;return!e&&0||+t.toFixed(2)},Wje={id:"admin-app",class:"admin-card"},Fje={for:"admin_contact"},zje=["value"],xje=["disabled"],Bje={for:"max_users"},Gje=["disabled"],Vje={class:"admin-help"},Hje={class:"info-box"},Kje={for:"max_single_file_size"},qje=["disabled"],jje={for:"max_zip_file_size"},Yje=["disabled"],Xje={for:"gpx_limit_import"},Qje=["disabled"],Zje={for:"stats_workouts_limit"},Jje=["disabled"],eYe={class:"admin-help"},tYe={class:"info-box"},nYe={class:"about-label",for:"about"},aYe={class:"textarea-description"},sYe=["innerHTML"],oYe={class:"privacy-policy-label",for:"privacy_policy"},iYe={class:"textarea-description"},rYe=["innerHTML"],uYe={key:5,class:"form-buttons"},lYe={class:"confirm",type:"submit"},cYe={key:6,class:"form-buttons"},dYe=X({__name:"AdminApplication",props:{edition:{type:Boolean,default:!1}},setup(e){const t=e,{edition:n}=_e(t),a=gn(),s=De(),{appConfig:o,errorMessages:i}=Ke(),r=yt({admin_contact:"",max_users:0,max_single_file_size:0,max_zip_file_size:0,gpx_limit_import:0,about:"",privacy_policy:"",stats_workouts_limit:0});function u(E){Object.keys(r).map(c=>{["max_single_file_size","max_zip_file_size"].includes(c)?r[c]=Mje(E[c]):["about","privacy_policy"].includes(c)?r[c]=E[c]!==null?E[c]:"":r[c]=E[c]})}function l(){u(o.value),s.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),a.push("/admin/application")}function d(){const E=Object.assign({},r);E.max_single_file_size*=1048576,E.max_zip_file_size*=1048576,s.dispatch(te.ACTIONS.UPDATE_APPLICATION_CONFIG,E)}return Je(()=>{o.value&&u(o.value)}),(E,c)=>{const m=j("ErrorMessage"),_=j("Card");return f(),v("div",Wje,[w(_,null,{title:Y(()=>[x(S(E.$t("admin.APP_CONFIG.TITLE")),1)]),content:Y(()=>[p("form",{class:"admin-form",onSubmit:ve(d,["prevent"])},[p("label",Fje,[x(S(E.$t("admin.APP_CONFIG.ADMIN_CONTACT"))+": ",1),!T(n)&&!r.admin_contact?(f(),v("input",{key:0,class:"no-contact",value:E.$t("admin.APP_CONFIG.NO_CONTACT_EMAIL"),disabled:""},null,8,zje)):We((f(),v("input",{key:1,id:"admin_contact",name:"admin_contact",type:"email","onUpdate:modelValue":c[0]||(c[0]=h=>r.admin_contact=h),disabled:!T(n)},null,8,xje)),[[it,r.admin_contact]])]),p("label",Bje,[x(S(E.$t("admin.APP_CONFIG.MAX_USERS_LABEL"))+": ",1),We(p("input",{id:"max_users",name:"max_users",type:"number",min:"0","onUpdate:modelValue":c[1]||(c[1]=h=>r.max_users=h),disabled:!T(n)},null,8,Gje),[[it,r.max_users]])]),p("div",Vje,[p("span",Hje,[c[10]||(c[10]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(E.$t("admin.APP_CONFIG.MAX_USERS_HELP")),1)])]),p("label",Kje,[x(S(E.$t("admin.APP_CONFIG.SINGLE_UPLOAD_MAX_SIZE_LABEL"))+": ",1),We(p("input",{id:"max_single_file_size",name:"max_single_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":c[2]||(c[2]=h=>r.max_single_file_size=h),disabled:!T(n)},null,8,qje),[[it,r.max_single_file_size]])]),p("label",jje,[x(S(E.$t("admin.APP_CONFIG.ZIP_UPLOAD_MAX_SIZE_LABEL"))+": ",1),We(p("input",{id:"max_zip_file_size",name:"max_zip_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":c[3]||(c[3]=h=>r.max_zip_file_size=h),disabled:!T(n)},null,8,Yje),[[it,r.max_zip_file_size]])]),p("label",Xje,[x(S(E.$t("admin.APP_CONFIG.MAX_FILES_IN_ZIP_LABEL"))+": ",1),We(p("input",{id:"gpx_limit_import",name:"gpx_limit_import",type:"number",min:"0","onUpdate:modelValue":c[4]||(c[4]=h=>r.gpx_limit_import=h),disabled:!T(n)},null,8,Qje),[[it,r.gpx_limit_import]])]),p("label",Zje,[x(S(E.$t("admin.APP_CONFIG.STATS_WORKOUTS_LIMIT_LABEL"))+": ",1),We(p("input",{id:"stats_workouts_limit",name:"stats_workouts_limit",type:"number",min:"0","onUpdate:modelValue":c[5]||(c[5]=h=>r.stats_workouts_limit=h),disabled:!T(n)},null,8,Jje),[[it,r.stats_workouts_limit]])]),p("div",eYe,[p("span",tYe,[c[11]||(c[11]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(E.$t("admin.APP_CONFIG.STATS_WORKOUTS_LIMIT_HELP")),1)])]),p("label",nYe,S(E.$t("admin.ABOUT.TEXT"))+": ",1),p("span",aYe,S(E.$t("admin.ABOUT.DESCRIPTION")),1),T(n)?We((f(),v("textarea",{key:0,id:"about",name:"about",rows:"10","onUpdate:modelValue":c[6]||(c[6]=h=>r.about=h)},null,512)),[[it,r.about]]):(f(),v("div",{key:1,innerHTML:r.about?T(Vi)(r.about):E.$t("admin.NO_TEXT_ENTERED"),class:"textarea-content"},null,8,sYe)),p("label",oYe,S(Fe(E.$t("privacy_policy.TITLE")))+": ",1),p("span",iYe,S(E.$t("admin.PRIVACY_POLICY_DESCRIPTION")),1),T(n)?We((f(),v("textarea",{key:2,id:"privacy_policy",name:"privacy_policy",rows:"20","onUpdate:modelValue":c[7]||(c[7]=h=>r.privacy_policy=h)},null,512)),[[it,r.privacy_policy]]):(f(),v("div",{key:3,innerHTML:r.privacy_policy?T(Vi)(r.privacy_policy):E.$t("admin.NO_TEXT_ENTERED"),class:"textarea-content"},null,8,rYe)),T(i)?(f(),B(m,{key:4,message:T(i)},null,8,["message"])):L("",!0),T(n)?(f(),v("div",uYe,[p("button",lYe,S(E.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:ve(l,["prevent"])},S(E.$t("buttons.CANCEL")),1)])):(f(),v("div",cYe,[p("button",{class:"confirm",onClick:c[8]||(c[8]=ve(h=>E.$router.push("/admin/application/edit"),["prevent"]))},S(E.$t("buttons.EDIT")),1),p("button",{class:"cancel",onClick:c[9]||(c[9]=ve(h=>E.$router.push("/admin"),["prevent"]))},S(E.$t("admin.BACK_TO_ADMIN")),1)]))],32)]),_:1})])}}}),mh=ae(dYe,[["__scopeId","data-v-3a7598c9"]]),EYe=(e,t)=>{const n=e.translatedLabel.toLowerCase(),a=t.translatedLabel.toLowerCase();return n>a?1:ne.map(n=>({...n,translatedLabel:t(`equipment_types.${n.label}.LABEL`)})).sort(EYe),Hp=(e,t)=>{const n=e.label.toLowerCase(),a=t.label.toLowerCase();return n>a?1:na?e.filter(o=>PO[o.equipment_type.label].includes(a.label)).filter(o=>n=="all"?!0:n=="withIncludedIds"&&s.includes(o.id)||o.is_active).map(o=>({...o,label:o.is_active?o.label:`${o.label} (${t("common.INACTIVE")})`})).sort(Hp):[],pYe={id:"admin-equipment-types",class:"admin-card"},mYe={class:"responsive-table"},TYe={class:"text-left"},_Ye={class:"text-left equipment-type-action"},fYe={class:"text-center"},hYe={class:"cell-heading"},SYe={class:"equipment-type-label"},AYe={class:"cell-heading"},OYe={class:"text-center"},IYe={class:"cell-heading"},gYe={class:"equipment-type-action"},RYe={class:"cell-heading"},NYe={class:"action-button"},vYe=["onClick"],bYe={key:0,class:"has-equipments"},CYe=X({__name:"AdminEquipmentTypes",setup(e){const t=De(),{t:n}=$t(),{errorMessages:a}=Ke(),s=F(()=>CO(t.getters[xe.GETTERS.EQUIPMENT_TYPES],n));function o(){t.dispatch(xe.ACTIONS.GET_EQUIPMENT_TYPES)}function i(r,u){t.dispatch(xe.ACTIONS.UPDATE_EQUIPMENT_TYPE,{id:r,isActive:u})}return Je(()=>o()),(r,u)=>{const l=j("EquipmentTypeImage"),d=j("ErrorMessage"),E=j("Card");return f(),v("div",pYe,[w(E,null,{title:Y(()=>[x(S(r.$t("admin.EQUIPMENT_TYPES.TITLE")),1)]),content:Y(()=>[p("button",{class:"top-button",onClick:u[0]||(u[0]=ve(c=>r.$router.push("/admin"),["prevent"]))},S(r.$t("admin.BACK_TO_ADMIN")),1),p("div",mYe,[p("table",null,[p("thead",null,[p("tr",null,[u[2]||(u[2]=p("th",null,"#",-1)),p("th",null,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.IMAGE")),1),p("th",TYe,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.LABEL")),1),p("th",null,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.ACTIVE")),1),p("th",_Ye,S(r.$t("admin.ACTION")),1)])]),p("tbody",null,[(f(!0),v(re,null,be(s.value,c=>(f(),v("tr",{key:c.id},[p("td",fYe,[u[3]||(u[3]=p("span",{class:"cell-heading"},"id",-1)),x(" "+S(c.id),1)]),p("td",null,[p("span",hYe,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.IMAGE")),1),w(l,{title:c.translatedLabel,"equipment-type-label":c.label},null,8,["title","equipment-type-label"])]),p("td",SYe,[p("span",AYe,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.LABEL")),1),x(" "+S(c.translatedLabel),1)]),p("td",OYe,[p("span",IYe,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.ACTIVE")),1),p("i",{class:Oe(`fa fa${c.is_active?"-check":""}`),"aria-hidden":"true"},null,2)]),p("td",gYe,[p("span",RYe,S(r.$t("admin.ACTION")),1),p("div",NYe,[p("button",{class:Oe({danger:c.is_active}),onClick:m=>i(c.id,!c.is_active)},S(r.$t(`buttons.${c.is_active?"DIS":"EN"}ABLE`)),11,vYe),c.has_equipments?(f(),v("span",bYe,[u[4]||(u[4]=p("i",{class:"fa fa-warning","aria-hidden":"true"},null,-1)),x(" "+S(r.$t("admin.EQUIPMENT_TYPES.TABLE.HAS_EQUIPMENTS")),1)])):L("",!0)])])]))),128))])]),T(a)?(f(),B(d,{key:0,message:T(a)},null,8,["message"])):L("",!0),p("button",{onClick:u[1]||(u[1]=ve(c=>r.$router.push("/admin"),["prevent"]))},S(r.$t("admin.BACK_TO_ADMIN")),1)])]),_:1})])}}}),PYe=ae(CYe,[["__scopeId","data-v-a3acbd9a"]]),DYe={class:"stat-card"},LYe={class:"stat-content box"},yYe={class:"stat-icon"},$Ye={class:"stat-details"},UYe={class:"stat-huge"},kYe={class:"stat"},wa=X({__name:"StatCard",props:{icon:{},text:{},value:{}},setup(e){const t=e,{icon:n,text:a,value:s}=_e(t);return(o,i)=>(f(),v("div",DYe,[p("div",LYe,[p("div",yYe,[p("i",{class:Oe(["fa",`fa-${T(n)}`])},null,2)]),p("div",$Ye,[p("div",UYe,S(T(s)),1),p("div",kYe,S(T(a)),1)])])]))}}),wYe={id:"user-stats"},MYe=X({__name:"AppStatsCards",props:{appStatistics:{}},setup(e){const t=e,{appStatistics:n}=_e(t),a=F(()=>bO(n.value.uploads_dir_size));return(s,o)=>(f(),v("div",wYe,[w(wa,{icon:"users",value:T(n).users,text:s.$t("user.ACTIVE_USER",T(n).users)},null,8,["value","text"]),w(wa,{icon:"tags",value:T(n).sports,text:s.$t("workouts.SPORT",T(n).sports)},null,8,["value","text"]),w(wa,{icon:"calendar",value:T(n).workouts,text:s.$t("workouts.WORKOUT",T(n).workouts)},null,8,["value","text"]),w(wa,{icon:"folder-open",value:a.value.size,text:a.value.suffix},null,8,["value","text"])]))}}),WYe={id:"admin-menu",class:"center-card"},FYe={class:"admin-menu description-list"},zYe={class:"application-config-details"},xYe={class:"registration-status"},BYe={key:0,class:"email-sending-status"},GYe={class:"application-config-details"},VYe=X({__name:"AdminMenu",setup(e){const t=De(),{appConfig:n}=Ke(),{authUserHasAdminRights:a}=qe(),s=F(()=>t.getters[te.GETTERS.APP_STATS]),o=F(()=>t.getters[Le.GETTERS.UNRESOLVED_REPORTS_STATUS]);return Je(()=>t.dispatch(Le.ACTIONS.GET_UNRESOLVED_REPORTS_STATUS)),mt(()=>{const i=document.getElementById("adminLink");i&&i.focus()}),(i,r)=>{const u=j("router-link");return f(),v("div",WYe,[w(xp,null,{title:Y(()=>[x(S(i.$t("admin.ADMINISTRATION")),1)]),content:Y(()=>[w(MYe,{appStatistics:s.value},null,8,["appStatistics"]),p("div",FYe,[p("dl",null,[T(a)?(f(),v(re,{key:0},[p("dt",null,[w(u,{id:"adminLink",to:"/admin/application"},{default:Y(()=>[x(S(i.$t("admin.APPLICATION")),1)]),_:1})]),p("dd",zYe,[x(S(i.$t("admin.UPDATE_APPLICATION_DESCRIPTION"))+" ",1),p("span",xYe,S(i.$t(`admin.REGISTRATION_${T(n).is_registration_enabled?"ENABLED":"DISABLED"}`)),1),T(n).is_email_sending_enabled?L("",!0):(f(),v("span",BYe,[r[0]||(r[0]=p("i",{class:"fa fa-exclamation-triangle","aria-hidden":"true"},null,-1)),x(" "+S(i.$t("admin.EMAIL_SENDING_DISABLED")),1)]))]),p("dt",null,[w(u,{to:"/admin/equipment-types"},{default:Y(()=>[x(S(Fe(i.$t("equipments.EQUIPMENT_TYPE",0))),1)]),_:1})]),p("dd",null,S(i.$t("admin.ENABLE_DISABLE_EQUIPMENT_TYPES")),1)],64)):L("",!0),p("dt",null,[w(u,{id:"adminLink",to:"/admin/reports"},{default:Y(()=>[x(S(i.$t("admin.APP_MODERATION.TITLE")),1)]),_:1})]),p("dd",GYe,[x(S(i.$t("admin.APP_MODERATION.DESCRIPTION"))+" ",1),o.value?(f(),B(u,{key:0,to:"/admin/reports?resolved=false"},{default:Y(()=>[x(S(i.$t("admin.APP_MODERATION.UNRESOLVED_REPORTS_EXIST")),1)]),_:1})):L("",!0)]),T(a)?(f(),v(re,{key:1},[p("dt",null,[w(u,{to:"/admin/sports"},{default:Y(()=>[x(S(Fe(i.$t("workouts.SPORT",0))),1)]),_:1})]),p("dd",null,S(i.$t("admin.ENABLE_DISABLE_SPORTS")),1),p("dt",null,[w(u,{to:"/admin/users"},{default:Y(()=>[x(S(Fe(i.$t("user.USER",0))),1)]),_:1})]),p("dd",null,S(i.$t("admin.ADMIN_RIGHTS_DELETE_USER_ACCOUNT")),1)],64)):L("",!0)])])]),_:1})])}}}),HYe=ae(VYe,[["__scopeId","data-v-18089d26"]]),KYe=["id"],qYe={class:"appeal-text"},jYe=["title"],YYe={class:"appeal-actions-buttons"},XYe={class:"small approve",value:"approve"},QYe={class:"small reject",value:"reject"},ZYe={key:1,class:"automatically-approved"},JYe={key:2,class:"description-list"},eXe=["title"],tXe=X({__name:"AdminReportActionAppeal",props:{appeal:{},authUser:{}},emits:["updateAppeal","closeAppeal"],setup(e,{emit:t}){const n=e,{appeal:a,authUser:s}=_e(n),o=t,{errorMessages:i,locale:r}=Ke(),u=Ie("");function l(c){c.preventDefault(),o("updateAppeal",{approved:c.submitter.value==="approve",appealId:a.value.id,reason:u.value})}function d(c){u.value=c.value}function E(){o("closeAppeal")}return(c,m)=>{const _=j("ErrorMessage"),h=j("i18n-t");return f(),v("div",{class:"appeal box",id:`appeal-${T(a).id}`},[p("div",qYe,S(T(a).text),1),p("span",{class:"appeal-date",title:T(Ut)(T(a).created_at,T(s).timezone,T(s).date_format)},S(T(Ws)(new Date(T(a).created_at),new Date,{addSuffix:!0,locale:T(r)})),9,jYe),T(a).updated_at===null?(f(),v(re,{key:0},[T(a).approved===null?(f(),v("form",{key:0,onSubmit:ve(l,["prevent"]),class:"appeal-actions"},[w(vO,{name:"appeal-reason",required:!0,placeholder:c.$t("admin.APP_MODERATION.TEXTAREA_PLACEHOLDER.UPDATE_APPEAL"),onUpdateValue:d},null,8,["placeholder"]),T(i)?(f(),B(_,{key:0,message:T(i)},null,8,["message"])):L("",!0),p("div",YYe,[p("button",XYe,S(c.$t("buttons.APPROVE")),1),p("button",QYe,S(c.$t("buttons.REJECT")),1),p("button",{class:"small reject",type:"button",onClick:E},S(c.$t("buttons.CANCEL")),1)])],32)):L("",!0)],64)):T(a).approved===null?(f(),v("div",ZYe,S(c.$t("admin.APP_MODERATION.APPEAL.AUTOMATICALLY_APPROVED_BY_UNSUSPENSION")),1)):(f(),v("div",JYe,[w(h,{keypath:`admin.APP_MODERATION.APPEAL.${T(a).approved?"APPROVED":"REJECTED"}`,tag:"p"},{default:Y(()=>[p("span",{class:"report-action-date",title:T(Ut)(T(a).updated_at,T(s).timezone,T(s).date_format)},S(T(Ws)(new Date(T(a).updated_at),new Date,{addSuffix:!0,locale:T(r)})),9,eXe)]),_:1},8,["keypath"]),p("dl",null,[p("dt",null,S(c.$t("admin.APP_MODERATION.APPEAL.REASON_IS")),1),p("dd",null,S(T(a).reason),1)])]))],8,KYe)}}}),nXe=ae(tXe,[["__scopeId","data-v-88ea8757"]]),aXe={id:"error"},sXe={class:"error-content"},oXe=X({__name:"Error",props:{title:{},message:{},buttonText:{},path:{default:"/"}},setup(e){const t=e,{buttonText:n,title:a,message:s,path:o}=_e(t);return(i,r)=>(f(),v("div",aXe,[p("div",sXe,[p("h1",null,S(T(a)),1),p("p",null,S(T(s)),1),T(n)?(f(),v("button",{key:0,onClick:r[0]||(r[0]=u=>i.$router.push(T(o))),class:"upper"},S(T(n)),1)):L("",!0)])]))}}),iXe=ae(oXe,[["__scopeId","data-v-48ec856d"]]),wo=X({__name:"NotFound",props:{target:{default:"PAGE"}},setup(e){const t=e,{target:n}=_e(t),a=Ie(),s=Ie(!1);function o(){a.value=setTimeout(()=>{s.value=!0},500)}return mt(()=>o()),ct(()=>{a.value&&clearTimeout(a.value)}),(i,r)=>s.value?(f(),B(iXe,{key:0,title:"404",message:i.$t(`error.NOT_FOUND.${T(n)}`),"button-text":i.$t("common.HOME")},null,8,["message","button-text"])):L("",!0)}}),rXe={key:0,class:"user-actions"},uXe={key:0,class:"blocked-user"},lXe={class:"blocked"},cXe={key:1,class:"actions-buttons"},dXe={key:2},EXe={key:3,class:"follows-you"},pXe={key:1,class:"user-actions"},mXe={class:"follows-you"},TXe=X({__name:"UserRelationshipActions",props:{authUser:{},user:{},from:{},displayFollowsYou:{type:Boolean,default:!1}},emits:["updatedUser"],setup(e,{emit:t}){const n=e,{authUser:a,from:s,user:o,displayFollowsYou:i}=_e(n),r=t,u=De();function l(E,c){r("updatedUser",E),u.dispatch(ue.ACTIONS.UPDATE_RELATIONSHIP,{username:E,action:`${c?"un":""}follow`,from:s.value})}function d(E,c){r("updatedUser",E),u.dispatch(ue.ACTIONS.UPDATE_RELATIONSHIP,{username:E,action:`${c?"":"un"}block`,from:s.value})}return(E,c)=>(f(),v(re,null,[T(o).username!==T(a).username?(f(),v("div",rXe,[T(o).blocked?(f(),v("div",uXe,[p("div",lXe,S(E.$t("user.RELATIONSHIPS.BLOCKED")),1),p("button",{onClick:c[0]||(c[0]=m=>d(T(o).username,!1))},S(E.$t("buttons.UNBLOCK")),1)])):T(o).is_followed_by!=="pending"?(f(),v("div",cXe,[p("button",{onClick:c[1]||(c[1]=m=>l(T(o).username,T(o).is_followed_by==="true")),class:Oe({danger:T(o).is_followed_by==="true"})},S(E.$t(`buttons.${T(o).is_followed_by==="true"?"UN":""}FOLLOW`)),3),p("button",{onClick:c[2]||(c[2]=m=>d(T(o).username,!0))},S(E.$t("buttons.BLOCK")),1)])):(f(),v("div",dXe,[p("button",{onClick:c[3]||(c[3]=m=>l(T(o).username,!0))},S(E.$t("buttons.CANCEL_FOLLOW_REQUEST")),1)])),T(i)&&T(o).follows==="true"&&T(s)!=="notifications"?(f(),v("div",EXe,S(E.$t("user.RELATIONSHIPS.FOLLOWS_YOU")),1)):L("",!0)])):L("",!0),T(o).username===T(a).username&&T(s)!=="userInfos"?(f(),v("div",pXe,[p("div",mXe,S(E.$t("user.YOU")),1)])):L("",!0)],64))}}),Ju=ae(TXe,[["__scopeId","data-v-f72b5b8c"]]),_Xe={class:"user-stats"},fXe={class:"user-stat"},hXe={class:"stat-number"},SXe={class:"stat-label"},AXe={class:"user-stat"},OXe={key:1,class:"stat-number"},IXe={class:"stat-label"},gXe={class:"user-stat"},RXe={key:1,class:"stat-number"},NXe={class:"stat-label"},vXe=X({__name:"UserStats",props:{user:{}},setup(e){const t=e,{user:n}=_e(t),{authUser:a}=qe(),s=F(()=>a.value.username?n.value.username===a.value.username?!a.value.suspended_at:!0:!1);function o(i,r,u){return i.username===(r==null?void 0:r.username)&&u.includes("/profile")?"profile":`users/${i.username}`}return(i,r)=>{const u=j("router-link");return f(),v("div",_Xe,[p("div",fXe,[p("span",hXe,S(T(n).nb_workouts),1),p("span",SXe,S(i.$t("workouts.WORKOUT",T(n).nb_workouts)),1)]),p("div",AXe,[s.value?(f(),B(u,{key:0,to:`/${o(T(n),T(a),i.$route.path)}/following`,class:"stat-number"},{default:Y(()=>[x(S(T(n).following),1)]),_:1},8,["to"])):(f(),v("span",OXe,S(T(n).following),1)),p("span",IXe,S(i.$t("user.RELATIONSHIPS.FOLLOWING",T(n).following)),1)]),p("div",gXe,[s.value?(f(),B(u,{key:0,to:`/${o(T(n),T(a),i.$route.path)}/followers`,class:"stat-number"},{default:Y(()=>[x(S(T(n).followers),1)]),_:1},8,["to"])):(f(),v("span",RXe,S(T(n).followers),1)),p("span",NXe,S(i.$t("user.RELATIONSHIPS.FOLLOWER",T(n).followers)),1)])])}}}),Kp=ae(vXe,[["__scopeId","data-v-9af0bb02"]]),bXe={class:"box"},CXe={class:"user-card"},PXe={class:"user-header"},DXe={class:"stats-role"},LXe={key:0,class:"role"},yXe={class:"user-role"},$Xe=X({__name:"UserCard",props:{authUser:{},user:{},updatedUser:{},from:{default:null},hideRelationship:{type:Boolean,default:!1}},emits:["updatedUserRelationship"],setup(e,{emit:t}){const n=e,{authUser:a,from:s,hideRelationship:o,updatedUser:i,user:r}=_e(n),u=rt(),{authUserHasModeratorRights:l}=qe(),{errorMessages:d}=Ke(),E=t,c=F(()=>r.value.suspended_at?Ut(r.value.suspended_at,a.value.timezone,a.value.date_format):null),m=F(()=>{var O;return l.value&&u.params.reportId!=((O=r.value.suspension_report_id)==null?void 0:O.toString())}),_=F(()=>r.value.role!=="user"?`user.ROLES.${r.value.role}`:"");function h(O){E("updatedUserRelationship",O)}return(O,A)=>{const R=j("router-link"),g=j("AlertMessage"),I=j("i18n-t"),N=j("ErrorMessage");return f(),v("div",bXe,[p("div",CXe,[p("div",PXe,[w(Qt,{user:T(r)},null,8,["user"]),w(R,{class:"user-name",to:O.$route.path.startsWith("/admin")?`/admin/users/${T(r).username}`:`/users/${T(r).username}?from=users`,title:T(r).username},{default:Y(()=>[x(S(T(r).username),1)]),_:1},8,["to","title"])]),p("div",DXe,[w(Kp,{user:T(r)},null,8,["user"]),_.value?(f(),v("div",LXe,[p("div",yXe,S(O.$t(_.value)),1)])):L("",!0)])]),T(o)!==!0?(f(),B(Ju,{key:0,authUser:T(a),user:T(r),from:T(s)?T(s):"userCard",displayFollowsYou:!0,onUpdatedUser:h},null,8,["authUser","user","from"])):L("",!0),"is_active"in T(r)&&!T(r).is_active?(f(),B(g,{key:1,message:"user.THIS_USER_ACCOUNT_IS_INACTIVE"})):L("",!0),"suspended_at"in T(r)&&T(r).suspended_at!==null?(f(),B(g,{key:2,message:"user.ACCOUNT_SUSPENDED_AT",param:c.value},_o({_:2},[m.value?{name:"additionalMessage",fn:Y(()=>[w(I,{keypath:"common.SEE_REPORT",tag:"span"},{default:Y(()=>[w(R,{to:`/admin/reports/${T(r).suspension_report_id}`},{default:Y(()=>[x(" #"+S(T(r).suspension_report_id),1)]),_:1},8,["to"])]),_:1})]),key:"0"}:void 0]),1032,["param"])):L("",!0),T(d)&&T(i)&&T(i)===T(r).username?(f(),B(N,{key:3,message:T(d)},null,8,["message"])):L("",!0)])}}}),Wl=ae($Xe,[["__scopeId","data-v-895b8780"]]),LO="/img/workouts/mountains.svg",UXe=["alt"],yO=X({__name:"StaticMap",props:{workout:{},displayHover:{type:Boolean,default:!1}},setup(e){const t=e,{displayHover:n}=_e(t),a=`${nr()}workouts/map/${t.workout.map}`;return(s,o)=>{const i=j("router-link");return f(),v("div",{class:Oe(["static-map",{"display-hover":T(n)}])},[T(n)?(f(),v("img",{key:0,src:a,alt:s.$t("workouts.WORKOUT_MAP")},null,8,UXe)):(f(),B(i,{key:1,class:"bg-map-image",to:{name:"Workout",params:{workoutId:s.workout.id}},style:za({backgroundImage:`url(${a})`}),"aria-label":s.$t("workouts.WORKOUT_MAP"),onClick:o[0]||(o[0]=r=>s.$emit("workoutLinkClicked"))},null,8,["to","style","aria-label"])),o[1]||(o[1]=p("div",{class:"map-attribution"},[p("a",{class:"map-attribution-text",href:"https://www.openstreetmap.org/copyright",target:"_blank",rel:"noopener noreferrer"}," © OpenStreetMap ")],-1))],2)}}}),kXe={class:"timeline-workout workout-card"},wXe={class:"box"},MXe={class:"workout-card-title"},WXe={class:"workout-user-date"},FXe={class:"workout-user"},zXe={class:"workout-date-visibility"},xXe=["datetime","title"],BXe={class:"workout-map"},GXe={class:"no-map"},VXe={class:"img"},HXe={class:"data"},KXe={key:0},qXe={class:"data"},jXe={key:0,class:"data elevation"},YXe=["alt"],XXe={class:"data-values"},QXe={key:1,class:"data altitude"},ZXe={class:"data-values"},JXe=X({__name:"WorkoutCard",props:{user:{},useImperialUnits:{type:Boolean},dateFormat:{},timezone:{},workout:{default:()=>({})},sport:{default:()=>({})}},emits:["workoutLinkClicked"],setup(e,{emit:t}){const n=e,{dateFormat:a,sport:s,timezone:o,user:i,useImperialUnits:r,workout:u}=_e(n),{locale:l}=Ke(),d=t,E=F(()=>Ut(u.value.workout_date,o.value,a.value));function c(h){return h.with_gpx&&h.min_alt!==null&&h.max_alt!==null}function m(h){return h.ascent!==null&&h.descent!==null}function _(h){h.id&&(lt.push({name:"Workout",params:{workoutId:h.id}}),d("workoutLinkClicked"))}return(h,O)=>{var N;const A=j("router-link"),R=j("VisibilityIcon"),g=j("SportImage"),I=j("Distance");return f(),v("div",kXe,[p("div",wXe,[p("div",MXe,[p("div",WXe,[p("div",FXe,[w(Qt,{user:T(i)},null,8,["user"]),w(Ri,{user:T(i)},null,8,["user"])]),T(u).id?(f(),B(A,{key:0,class:"workout-title",to:{name:"Workout",params:{workoutId:T(u).id}},onClick:O[0]||(O[0]=b=>h.$emit("workoutLinkClicked"))},{default:Y(()=>[x(S(T(u).title),1)]),_:1},8,["to"])):L("",!0),p("div",zXe,[T(u).workout_date&&T(i)?(f(),v("time",{key:0,class:"workout-date",datetime:E.value,title:E.value},S(T(Ws)(new Date(T(u).workout_date),new Date,{addSuffix:!0,locale:T(l)})),9,xXe)):L("",!0),T(u).workout_visibility?(f(),B(R,{key:1,visibility:T(u).workout_visibility},null,8,["visibility"])):L("",!0)])])]),p("div",BXe,[T(u).with_gpx?(f(),B(yO,{key:0,workout:T(u),onWorkoutLinkClicked:O[1]||(O[1]=b=>h.$emit("workoutLinkClicked"))},null,8,["workout"])):T(u).id?(f(),B(A,{key:1,to:{name:"Workout",params:{workoutId:T(u).id}},onClick:O[2]||(O[2]=b=>h.$emit("workoutLinkClicked"))},{default:Y(()=>[p("div",GXe,S(h.$t("workouts.NO_MAP")),1)]),_:1},8,["to"])):L("",!0)]),p("div",{class:Oe(["workout-data",{"without-elevation":!c(T(u))}]),onClick:O[3]||(O[3]=b=>_(T(u)))},[p("div",VXe,[(N=T(s))!=null&&N.label?(f(),B(g,{key:0,"sport-label":T(s).label,color:T(s).color},null,8,["sport-label","color"])):L("",!0)]),p("div",HXe,[O[4]||(O[4]=p("i",{class:"fa fa-clock-o","aria-hidden":"true"},null,-1)),T(u)?(f(),v("span",KXe,S(T(u).moving),1)):L("",!0)]),p("div",qXe,[O[5]||(O[5]=p("i",{class:"fa fa-road","aria-hidden":"true"},null,-1)),T(u).id?(f(),B(I,{key:0,distance:T(u).distance,digits:3,unitFrom:"km",useImperialUnits:T(r)},null,8,["distance","useImperialUnits"])):L("",!0)]),c(T(u))?(f(),v("div",jXe,[p("img",{class:"mountains",src:LO,alt:h.$t("workouts.ELEVATION")},null,8,YXe),p("div",XXe,[T(u).id?(f(),B(I,{key:0,distance:T(u).min_alt,unitFrom:"m",displayUnit:!1,useImperialUnits:T(r)},null,8,["distance","useImperialUnits"])):L("",!0),O[6]||(O[6]=x("/ ")),T(u).id?(f(),B(I,{key:1,distance:T(u).max_alt,unitFrom:"m",useImperialUnits:T(r)},null,8,["distance","useImperialUnits"])):L("",!0)])])):L("",!0),m(T(u))?(f(),v("div",QXe,[O[9]||(O[9]=p("i",{class:"fa fa-location-arrow","aria-hidden":"true"},null,-1)),p("div",ZXe,[O[7]||(O[7]=x(" +")),T(u).id?(f(),B(I,{key:0,distance:T(u).ascent,unitFrom:"m",displayUnit:!1,useImperialUnits:T(r)},null,8,["distance","useImperialUnits"])):L("",!0),O[8]||(O[8]=x("/- ")),T(u).id?(f(),B(I,{key:1,distance:T(u).descent,unitFrom:"m",useImperialUnits:T(r)},null,8,["distance","useImperialUnits"])):L("",!0)])])):L("",!0)],2)])])}}}),Hi=ae(JXe,[["__scopeId","data-v-9f1da2f4"]]),eQe={key:0,class:"report-loading"},tQe={key:0,id:"admin-report",class:"admin-card"},nQe={key:0,class:"report-status"},aQe={class:"report-data"},sQe={class:"report-detail"},oQe={key:1,class:"deleted-object"},iQe={key:2,class:"deleted-object"},rQe={key:1,class:"deleted-object"},uQe={key:2,class:"deleted-object"},lQe={key:1,class:"deleted-object"},cQe={key:1,class:"deleted-object"},dQe={class:"report-info"},EQe={key:0,class:"report-comment-user"},pQe={key:1,class:"deleted-object"},mQe={key:0},TQe={key:1},_Qe={key:2},fQe={key:3},hQe={class:"resolver-user"},SQe={key:4},AQe={key:5},OQe={key:0,class:"report-comment"},IQe={class:"report-comment-info"},gQe={class:"report-comment-user"},RQe=["title"],NQe={class:"report-comment-comment"},vQe={key:1,class:"report-action"},bQe=["title"],CQe=["onClick"],PQe={key:0,class:"report-action-note"},DQe={key:0,class:"no-notes"},LQe={key:0,class:"comment-textarea"},yQe={for:"report-comment"},$Qe={class:"comment-buttons"},UQe=["disabled"],kQe=["disabled"],wQe={class:"action-loading"},MQe={key:0,class:"fa fa-spinner fa-pulse","aria-hidden":"true"},WQe={key:1,class:"actions-buttons"},FQe={key:1,class:"container"},zQe={key:2,class:"container"},xQe=X({__name:"AdminReport",setup(e){const t=rt(),n=gn(),a=De(),{t:s}=$t(),{errorMessages:o,locale:i}=Ke(),{authUser:r,authUserSuccess:u,dateFormat:l}=qe(),{sports:d}=nn(),E=Ie(""),c=Ie(null),m=Ie(""),_=Ie([]),h=F(()=>a.getters[Le.GETTERS.REPORT]),O=F(()=>h.value.reported_comment||h.value.reported_workout),A=F(()=>a.getters[Le.GETTERS.REPORT_LOADING]),R=F(()=>a.getters[Le.GETTERS.REPORT_UPDATE_LOADING]),g=Ie(!1),I=F(()=>we()),N=F(()=>c.value!==null&&["ADD_COMMENT","MARK_AS_RESOLVED","MARK_AS_UNRESOLVED"].includes(c.value)),b=F(()=>{var Z,Ae;return(Z=h.value.reported_user)!=null&&Z.suspended_at?Ut((Ae=h.value.reported_user)==null?void 0:Ae.suspended_at,r.value.timezone,r.value.date_format):null}),C=F(()=>{var Z,Ae;return t.params.reportId!=((Ae=(Z=h.value.reported_user)==null?void 0:Z.suspension_report_id)==null?void 0:Ae.toString())});function y(){a.dispatch(Le.ACTIONS.GET_REPORT,{reportId:+t.params.reportId,loader:"REPORT"})}function D(Z=null){me(),c.value=Z,g.value=!0}function M(Z){E.value=Z.value}function P(){g.value=!1,E.value="",c.value=null,a.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES)}function W(){const Z={reportId:h.value.id,comment:E.value};c.value&&["MARK_AS_RESOLVED","MARK_AS_UNRESOLVED"].includes(c.value)&&(Z.resolved=c.value==="MARK_AS_RESOLVED"),a.dispatch(Le.ACTIONS.UPDATE_REPORT,Z)}function Q(){switch(c.value){case"SEND_WARNING_EMAIL":He();break;case"SUSPEND_ACCOUNT":case"SUSPEND_CONTENT":Pe("suspension");break;case"UNSUSPEND_ACCOUNT":J();break;case"UNSUSPEND_CONTENT":Ee();break;default:return W()}}function Se(){switch(c.value){case"MARK_AS_RESOLVED":return`admin.APP_MODERATION.ACTIONS.${c.value}`;default:return"buttons.SUBMIT"}}function J(){if(h.value.reported_user&&c.value){const Ae={action_type:`user_${c.value==="SUSPEND_ACCOUNT"?"":"un"}suspension`,report_id:h.value.id,username:h.value.reported_user.username};E.value&&(Ae.reason=E.value),a.dispatch(Le.ACTIONS.SUBMIT_ADMIN_ACTION,Ae)}}function Ee(){var Z;if(O.value&&c.value){const Te={action_type:`${h.value.reported_comment?"comment":"workout"}_${(Z=c.value)!=null&&Z.startsWith("SUSPEND")?"":"un"}suspension`,report_id:h.value.id};h.value.reported_comment?Te.comment_id=h.value.reported_comment.id:h.value.reported_workout&&(Te.workout_id=h.value.reported_workout.id),E.value&&(Te.reason=E.value),a.dispatch(Le.ACTIONS.SUBMIT_ADMIN_ACTION,Te)}}function fe(){Pe(""),c.value==="SUSPEND_CONTENT"?Ee():J()}function Pe(Z){m.value=Z,Z!==""&&a.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!1)}function He(){var Ae;const Z={action_type:"user_warning",report_id:h.value.id,username:(Ae=h.value.reported_user)==null?void 0:Ae.username};E.value&&(Z.reason=E.value),a.dispatch(Le.ACTIONS.SUBMIT_ADMIN_ACTION,Z)}function et(){n.go(-1),a.commit(Le.MUTATIONS.EMPTY_REPORT)}function Ve(Z){return Ut(Z,r.value.timezone,r.value.date_format)}function _t(Z,Ae){return Ti(new Date(Z.created_at),new Date(Ae.created_at))}function we(){return!h.value.report_actions&&!h.value.comments?[]:[...h.value.report_actions,...h.value.comments].sort(_t)}function se(Z){_.value.includes(Z)?(_.value.splice(_.value.indexOf(Z),1),a.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES)):_.value.push(Z)}function ke(Z){a.dispatch(Le.ACTIONS.PROCESS_APPEAL,{...Z,reportId:h.value.id})}function pt(){var oe,U;const Z=(oe=c.value)!=null&&oe.includes("SUSPEND")?(U=c.value)==null?void 0:U.split("_")[0]:c.value,Ae=s(`admin.APP_MODERATION.TEXTAREA_PLACEHOLDER.${Z}`);let Te="";return Z&&(Te=["ADD_COMMENT","MARK_AS_RESOLVED","MARK_AS_UNRESOLVED"].includes(Z)?"":` ${s("admin.APP_MODERATION.TEXTAREA_PLACEHOLDER.INFORMATION_VISIBLE_TO_USER")}`),`${Ae}${Te}`}function me(){a.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),_.value=[]}return Ce(()=>h.value.comments,()=>{g.value=!1,E.value=""}),Ce(()=>t.params.reportId,()=>{y()}),Ce(()=>u.value,Z=>{Z&&Pe("")}),Je(async()=>y()),ct(()=>a.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!1)),(Z,Ae)=>{var ie;const Te=j("Modal"),oe=j("router-link"),U=j("i18n-t"),k=j("AlertMessage"),G=j("Card"),le=j("CustomTextArea"),pe=j("ErrorMessage");return A.value?(f(),v("div",eQe,[w(Ml)])):(f(),v(re,{key:1},[(ie=h.value)!=null&&ie.id?(f(),v("div",tQe,[m.value&&h.value.reported_user?(f(),B(Te,{key:0,title:Z.$t("common.CONFIRMATION"),message:`admin.CONFIRM_${c.value}`,strongMessage:h.value.reported_user.username,onConfirmAction:fe,onCancelAction:Ae[0]||(Ae[0]=$=>Pe("")),onKeydown:Ae[1]||(Ae[1]=Ye($=>Pe(""),["esc"]))},null,8,["title","message","strongMessage"])):L("",!0),w(G,null,{title:Y(()=>[x(S(Z.$t("admin.APP_MODERATION.REPORT"))+" #"+S(h.value.id)+" ",1),h.value.resolved?(f(),v("span",nQe," ("+S(Z.$t("admin.APP_MODERATION.RESOLVED.TRUE"))+") ",1)):L("",!0)]),content:Y(()=>[p("div",aQe,[p("div",sQe,[w(G,{class:"report-detail-card"},{title:Y(()=>[x(S(Z.$t("admin.APP_MODERATION.REPORTED_CONTENT")),1)]),content:Y(()=>{var $,z,V;return[h.value.object_type==="comment"?(f(),v(re,{key:0},[h.value.reported_comment?(f(),B(zp,{key:0,"auth-user":T(r),comment:h.value.reported_comment,"comments-loading":null,"for-admin":!0},null,8,["auth-user","comment"])):(f(),v("span",oQe,S(Z.$t("admin.DELETED_COMMENT")),1)),h.value.reported_user?L("",!0):(f(),v("span",iQe," ("+S(Z.$t("admin.DELETED_USER").toLocaleLowerCase())+") ",1))],64)):L("",!0),h.value.object_type==="workout"?(f(),v(re,{key:1},[h.value.reported_workout?(f(),B(Hi,{workout:h.value.reported_workout,sport:T(d).filter(q=>{var Re;return q.id===((Re=h.value.reported_workout)==null?void 0:Re.sport_id)})[0],user:h.value.reported_workout.user,useImperialUnits:T(r).imperial_units,dateFormat:T(l),timezone:T(r).timezone,key:h.value.reported_workout.id},null,8,["workout","sport","user","useImperialUnits","dateFormat","timezone"])):(f(),v("span",rQe,S(Z.$t("admin.DELETED_WORKOUT")),1)),h.value.reported_user?(z=($=h.value.reported_workout)==null?void 0:$.suspension)!=null&&z.report_id?(f(),B(k,{key:3,message:"workouts.SUSPENDED_BY_ADMIN"},_o({_:2},[h.value.reported_workout.suspension.report_id!==parseInt(T(t).params.reportId)?{name:"additionalMessage",fn:Y(()=>[w(U,{keypath:"common.SEE_REPORT",tag:"span"},{default:Y(()=>[w(oe,{to:`/admin/reports/${h.value.reported_workout.suspension.report_id}`},{default:Y(()=>[x(" #"+S(h.value.reported_workout.suspension.report_id),1)]),_:1},8,["to"])]),_:1})]),key:"0"}:void 0]),1024)):L("",!0):(f(),v("span",uQe," ("+S(Z.$t("admin.DELETED_USER").toLocaleLowerCase())+") ",1))],64)):L("",!0),h.value.object_type==="user"?(f(),v(re,{key:2},[h.value.reported_user?(f(),B(Wl,{key:0,authUser:T(r),user:h.value.reported_user,hideRelationship:!0},null,8,["authUser","user"])):(f(),v("span",lQe,S(Z.$t("admin.DELETED_USER")),1))],64)):((V=h.value.reported_user)==null?void 0:V.suspended_at)!==null?(f(),B(k,{key:3,message:"user.ACCOUNT_SUSPENDED_AT",param:b.value},_o({_:2},[C.value?{name:"additionalMessage",fn:Y(()=>[w(U,{keypath:"common.SEE_REPORT"},{default:Y(()=>{var q;return[w(oe,{to:`/admin/reports/${(q=h.value.reported_user)==null?void 0:q.suspension_report_id}`},{default:Y(()=>{var Re;return[x(S((Re=h.value.reported_user)==null?void 0:Re.suspension_report_id),1)]}),_:1},8,["to"])]}),_:1})]),key:"0"}:void 0]),1032,["param"])):L("",!0)]}),_:1}),w(G,{class:"report-detail-card"},{title:Y(()=>[x(S(Z.$t("admin.APP_MODERATION.REPORT_NOTE"))+" ",1),h.value.reported_by?(f(),v(re,{key:0},[w(oe,{class:"link-with-image",to:`/admin/users/${h.value.reported_by.username}`},{default:Y(()=>[x(S(h.value.reported_by.username),1)]),_:1},8,["to"]),x(" ("+S(Z.$t("admin.APP_MODERATION.REPORTER"))+") ",1)],64)):(f(),v("span",cQe,S(Z.$t("admin.DELETED_USER").toLocaleLowerCase()),1))]),content:Y(()=>[x(S(h.value.note),1)]),_:1})]),p("dl",dQe,[p("dt",null,S(Z.$t("admin.APP_MODERATION.ORDER_BY.CREATED_AT"))+":",1),p("dd",null,S(Ve(h.value.created_at)),1),p("dt",null,S(Z.$t("admin.APP_MODERATION.REPORTED_BY"))+":",1),p("dd",null,[h.value.reported_by?(f(),v("div",EQe,[w(Qt,{user:h.value.reported_by},null,8,["user"]),w(Ri,{user:h.value.reported_by},null,8,["user"])])):(f(),v("span",pQe,S(Z.$t("admin.DELETED_USER")),1))]),p("dt",null,S(Z.$t("admin.APP_MODERATION.STATUS"))+":",1),p("dd",null,S(Z.$t(`admin.APP_MODERATION.RESOLVED.${h.value.resolved?"TRUE":"FALSE"}`)),1),h.value.resolved_at?(f(),v("dt",mQe,S(Z.$t("admin.APP_MODERATION.RESOLVED_AT"))+": ",1)):L("",!0),h.value.resolved_at?(f(),v("dd",TQe,[p("time",null,S(Ve(h.value.resolved_at)),1)])):L("",!0),h.value.resolved_by?(f(),v("dt",_Qe,S(Z.$t("admin.APP_MODERATION.RESOLVED_BY"))+": ",1)):L("",!0),h.value.resolved_by?(f(),v("dd",fQe,[p("div",hQe,[w(Qt,{user:h.value.resolved_by},null,8,["user"]),w(Ri,{user:h.value.resolved_by},null,8,["user"])])])):L("",!0),h.value.updated_at?(f(),v("dt",SQe,S(Z.$t("common.LAST_UPDATED_ON"))+": ",1)):L("",!0),h.value.updated_at?(f(),v("dd",AQe,[p("time",null,S(Ve(h.value.updated_at)),1)])):L("",!0)])]),w(G,{class:"report-action-and-comments"},{title:Y(()=>[x(S(Z.$t("admin.APP_MODERATION.NOTES_AND_ACTIONS")),1)]),content:Y(()=>[(f(!0),v(re,null,be(I.value,$=>(f(),v("div",{key:$.id},["comment"in $&&!("action_type"in $)?(f(),v("div",OQe,[p("div",IQe,[p("div",gQe,[w(Qt,{user:$.user},null,8,["user"]),w(Ri,{user:$.user},null,8,["user"])]),p("div",{class:"report-comment-date",title:Ve($.created_at)},S(T(Ws)(new Date($.created_at),new Date,{addSuffix:!0,locale:T(i)})),9,RQe)]),p("div",NQe,S($.comment),1)])):L("",!0),"action_type"in $?(f(),v("div",vQe,[p("div",null,[Ae[7]||(Ae[7]=x(" • ")),w(U,{keypath:`admin.APP_MODERATION.REPORT_ACTIONS.${$.action_type}`},{default:Y(()=>[$.action_type.startsWith("user_")&&$.user?(f(),B(oe,{key:0,class:"user-name",to:`/admin/users/${$.user.username}`,title:$.user.username},{default:Y(()=>[x(S($.user.username),1)]),_:2},1032,["to","title"])):L("",!0),w(oe,{class:"user-name",to:`/admin/users/${$.moderator.username}`,title:$.moderator.username},{default:Y(()=>[x(S($.moderator.username),1)]),_:2},1032,["to","title"]),p("span",{class:"report-action-date",title:Ve($.created_at)},S(T(Ws)(new Date($.created_at),new Date,{addSuffix:!0,locale:T(i)})),9,bQe)]),_:2},1032,["keypath"]),$.appeal?(f(),v("button",{key:0,class:"appeal-button small transparent",onClick:z=>se($.appeal.id)},S(Z.$t(`admin.APP_MODERATION.APPEAL.${_.value.includes($.appeal.id)?"HIDE":"SEE"}`)),9,CQe)):L("",!0)]),$.reason?(f(),v("div",PQe,[p("span",null,S(Z.$t("admin.APP_MODERATION.REASON"))+":",1),x(" "+S($.reason),1)])):L("",!0),$.appeal&&_.value.includes($.appeal.id)?(f(),B(nXe,{key:1,appeal:$.appeal,"auth-user":T(r),onUpdateAppeal:ke,onCloseAppeal:z=>se($.appeal.id)},null,8,["appeal","auth-user","onCloseAppeal"])):L("",!0)])):L("",!0)]))),128)),I.value.length==0?(f(),v("div",DQe,S(Z.$t("common.NO_NOTES")),1)):L("",!0)]),_:1}),w(G,{class:"report-detail-card"},{title:Y(()=>[x(S(Z.$t("admin.ACTION",0)),1)]),content:Y(()=>[g.value?(f(),v("div",LQe,[p("form",{onSubmit:ve(Q,["prevent"])},[p("label",yQe,S(Z.$t(`admin.APP_MODERATION.ACTIONS.${c.value}`)),1),w(le,{class:"report-comment-textarea",name:"report-comment",required:N.value,placeholder:pt(),disabled:R.value,onUpdateValue:M},null,8,["required","placeholder","disabled"]),p("div",$Qe,[p("button",{class:"confirm",type:"submit",disabled:R.value},S(Z.$t(Se())),9,UQe),p("button",{class:"cancel",onClick:ve(P,["prevent"]),disabled:R.value},S(Z.$t("buttons.CANCEL")),9,kQe),p("div",wQe,[R.value?(f(),v("i",MQe)):L("",!0)])]),T(o)?(f(),B(pe,{key:0,message:T(o)},null,8,["message"])):L("",!0)],32)])):(f(),v("div",WQe,[p("button",{onClick:Ae[2]||(Ae[2]=$=>D("ADD_COMMENT"))},S(Z.$t("admin.APP_MODERATION.ACTIONS.ADD_COMMENT")),1),!h.value.resolved&&h.value.reported_user&&!h.value.is_reported_user_warned?(f(),v("button",{key:0,onClick:Ae[3]||(Ae[3]=$=>D("SEND_WARNING_EMAIL"))},S(Z.$t("admin.APP_MODERATION.ACTIONS.SEND_WARNING_EMAIL")),1)):L("",!0),!h.value.resolved&&O.value?(f(),v("button",{key:1,class:Oe({danger:O.value.suspended_at===null}),onClick:Ae[4]||(Ae[4]=$=>D(`${O.value.suspended_at===null?"":"UN"}SUSPEND_CONTENT`))},S(Z.$t(`admin.APP_MODERATION.ACTIONS.${O.value.suspended_at===null?"":"UN"}SUSPEND_CONTENT`)),3)):L("",!0),!h.value.resolved&&h.value.reported_user?(f(),v("button",{key:2,class:Oe({danger:h.value.reported_user.suspended_at===null}),onClick:Ae[5]||(Ae[5]=$=>D(`${h.value.reported_user.suspended_at?"UN":""}SUSPEND_ACCOUNT`))},S(Z.$t(`admin.APP_MODERATION.ACTIONS.${h.value.reported_user.suspended_at?"UN":""}SUSPEND_ACCOUNT`)),3)):L("",!0),p("button",{onClick:Ae[6]||(Ae[6]=$=>D(`MARK_AS_${h.value.resolved?"UN":""}RESOLVED`))},S(Z.$t(`admin.APP_MODERATION.ACTIONS.MARK_AS_${h.value.resolved?"UN":""}RESOLVED`)),1)]))]),_:1}),p("button",{onClick:ve(et,["prevent"])},S(Z.$t("buttons.BACK")),1)]),_:1})])):A.value?(f(),v("div",FQe)):(f(),v("div",zQe,[w(wo,{target:"REPORT"})]))],64))}}}),BQe=ae(xQe,[["__scopeId","data-v-e9598d83"]]),GQe={class:"table-selects"},VQe=["value"],HQe=["value"],KQe=["value"],qQe=["value"],jQe=["value"],YQe=["value"],qp=X({__name:"FilterSelects",props:{order_by:{},query:{},sort:{},message:{}},emits:["updateSelect"],setup(e,{emit:t}){const n=e,{order_by:a,query:s,sort:o,message:i}=_e(n),r=t,u=[10,25,50,100];function l(d){r("updateSelect",d.target.id,d.target.value)}return(d,E)=>(f(),v("div",GQe,[p("label",null,[x(S(d.$t("common.SELECTS.ORDER_BY.LABEL"))+": ",1),p("select",{name:"order_by",id:"order_by",value:T(s).order_by,onChange:l},[(f(!0),v(re,null,be(T(a),c=>(f(),v("option",{value:c,key:c},S(d.$t(`${T(i)}.${c.toUpperCase()}`)),9,HQe))),128))],40,VQe)]),p("label",null,[x(S(d.$t("common.SELECTS.ORDER.LABEL"))+": ",1),p("select",{name:"order",id:"order",value:T(s).order,onChange:l},[(f(!0),v(re,null,be(T(o),c=>(f(),v("option",{value:c,key:c},S(d.$t(`common.SELECTS.ORDER.${c.toUpperCase()}`)),9,qQe))),128))],40,KQe)]),Pt(d.$slots,"additionalFilters"),p("label",null,[x(S(d.$t("common.SELECTS.PER_PAGE.LABEL"))+": ",1),p("select",{name:"per_page",id:"per_page",value:T(s).per_page,onChange:l},[(f(),v(re,null,be(u,c=>p("option",{value:c,key:c},S(c),9,YQe)),64))],40,jQe)])]))}}),Fl=["asc","desc"],cr=1,XQe=10,bo=(e,t)=>e&&typeof e=="string"&&+e>0?+e:t,Th=(e,t,n)=>e&&typeof e=="string"&&t.includes(e)?e:n,Co=(e,t,n,a)=>{const o=(a||{}).defaultSort||"asc",i={};return i.page=bo(e.page,cr),i.per_page=bo(e.per_page,XQe),i.order=Th(e.order,Fl,o),i.order_by=Th(e.order_by,t,n),typeof e.q=="string"?i.q=e.q:delete i.q,typeof e.notes=="string"?i.notes=e.notes:delete i.notes,typeof e.description=="string"?i.description=e.description:delete i.description,typeof e.object_type=="string"?i.object_type=e.object_type:delete i.object_type,typeof e.resolved=="string"?i.resolved=e.resolved:delete i.resolved,i},QQe=["equipment_id","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"],Js=(e,t=1)=>Array.from({length:e-t+1},(n,a)=>t+a),ZQe=(e,t)=>{if(e<0)return[];if(e<9)return Js(e);let n=[1,2];return t<4?n=n.concat([3,4,5]):t<6?n=n.concat(Js(t+2,3)):(n=n.concat(["..."]),t=e-2&&+n[n.length-1]{const u=j("router-link");return f(),v("nav",JQe,[p("ul",eZe,[p("li",{class:Oe(["page-prev",{disabled:!T(n).has_prev}])},[w(u,{class:"page-link",to:{path:T(a),query:o(T(n).page,-1)},disabled:!T(n).has_prev,tabindex:T(n).has_prev?0:-1},{default:Y(({navigate:l})=>[Pt(i.$slots,"default",{onClick:d=>T(n).has_next?l:null},()=>[x(S(i.$t("common.PREVIOUS"))+" ",1),r[0]||(r[0]=p("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1))],!0)]),_:3},8,["to","disabled","tabindex"])],2),(f(!0),v(re,null,be(T(ZQe)(T(n).pages,T(n).page),l=>(f(),v("li",{key:l,class:Oe(["page",{active:l===T(n).page}])},[l==="..."?(f(),v("span",tZe," ... ")):(f(),B(u,{key:1,class:"page-link",to:{path:T(a),query:o(+l)}},{default:Y(()=>[x(S(l),1)]),_:2},1032,["to"]))],2))),128)),p("li",{class:Oe(["page-next",{disabled:!T(n).has_next}])},[w(u,{class:"page-link",to:{path:T(a),query:o(T(n).page,1)},disabled:!T(n).has_next,tabindex:T(n).has_next?0:-1},{default:Y(({navigate:l})=>[Pt(i.$slots,"default",{onClick:d=>T(n).has_next?l:null},()=>[x(S(i.$t("common.NEXT"))+" ",1),r[1]||(r[1]=p("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1))],!0)]),_:3},8,["to","disabled","tabindex"])],2)])])}}}),Qn=ae(nZe,[["__scopeId","data-v-d7c0bddb"]]),aZe={id:"admin-reports",class:"admin-card"},sZe=["value"],oZe=["value"],iZe=["value"],rZe={value:"true"},uZe={value:"false"},lZe={key:0,class:"no-reports"},cZe={key:1,class:"responsive-table"},dZe={class:"left-text"},EZe={class:"left-text"},pZe={class:"left-text"},mZe={class:"left-text"},TZe={class:"left-text"},_Ze={class:"left-text"},fZe={class:"left-text"},hZe={class:"cell-heading"},SZe={key:1,class:"deleted-object"},AZe={class:"cell-heading"},OZe={key:0},IZe={class:"cell-heading"},gZe={key:1,class:"deleted-object"},RZe={class:"cell-heading"},NZe={class:"cell-heading"},vZe={class:"cell-heading"},bZe={key:0},CZe=["onClick"],_h=20,fh="created_at",PZe=X({__name:"AdminReports",setup(e){const t=rt(),n=gn(),a=De(),{errorMessages:s}=Ke(),{authUser:o}=qe(),i=["created_at","updated_at"],r={comment:"workouts.COMMENTS.COMMENT",user:"user.USER",workout:"workouts.WORKOUT"};let u=yt(Co(t.query,i,fh,{defaultSort:"desc"}));const l=F(()=>a.getters[Le.GETTERS.REPORTS]),d=F(()=>a.getters[Le.GETTERS.REPORTS_PAGINATION]);function E(R){a.dispatch(Le.ACTIONS.GET_REPORTS,R)}function c(R){const g=R.target;g.value?u.object_type=g.value:delete u.object_type,n.push({path:"/admin/reports",query:u})}function m(R){const g=R.target;g.value?u.resolved=g.value:delete u.resolved,n.push({path:"/admin/reports",query:u})}function _(R,g){u[R]=g,R==="per_page"&&(u.page=1),n.push({path:"/admin/reports",query:u})}function h(R){return Ut(R,o.value.timezone,o.value.date_format)}function O(R){return R=="user.USER"?"user.USER_PROFILE":R}function A(R){var I,N;let g;switch(R.object_type){case"workout":g=(I=R.reported_workout)==null?void 0:I.title;break;case"comment":g=((N=R.reported_comment)==null?void 0:N.text)||"";break;default:g=""}return g?g.length>_h?`${g.substring(0,_h-1)}…`:g:""}return Ce(()=>t.query,R=>{u=Co(R,i,fh,{query:u}),E(u)}),Je(()=>E(u)),(R,g)=>{const I=j("router-link"),N=j("ErrorMessage"),b=j("Card");return f(),v("div",aZe,[w(b,null,{title:Y(()=>[x(S(R.$t("admin.APP_MODERATION.TITLE")),1)]),content:Y(()=>[p("button",{class:"top-button",onClick:g[0]||(g[0]=ve(C=>R.$router.push("/admin"),["prevent"]))},S(R.$t("admin.BACK_TO_ADMIN")),1),w(qp,{sort:T(Fl),order_by:i,query:T(u),message:"admin.APP_MODERATION.ORDER_BY",onUpdateSelect:_},{additionalFilters:Y(()=>[p("label",null,[x(S(R.$t("common.TYPE"))+": ",1),p("select",{name:"object_type",id:"object_type",value:T(u).object_type,onChange:c},[g[2]||(g[2]=p("option",{value:""},null,-1)),(f(!0),v(re,null,be(Object.keys(r),C=>(f(),v("option",{value:C,key:C},S(R.$t(r[C])),9,oZe))),128))],40,sZe)]),p("label",null,[x(S(R.$t("admin.APP_MODERATION.STATUS"))+": ",1),p("select",{name:"resolved",id:"resolved",value:T(u).resolved,onChange:m},[g[3]||(g[3]=p("option",{value:""},null,-1)),p("option",rZe,S(R.$t("admin.APP_MODERATION.RESOLVED.TRUE")),1),p("option",uZe,S(R.$t("admin.APP_MODERATION.RESOLVED.FALSE")),1)],40,iZe)])]),_:1},8,["sort","query"]),l.value.length===0?(f(),v("div",lZe,S(R.$t("admin.APP_MODERATION.NO_REPORTS_FOUND")),1)):(f(),v("div",cZe,[p("table",null,[p("thead",null,[p("tr",null,[g[4]||(g[4]=p("th",{class:"left-text"},"#",-1)),p("th",dZe,S(R.$t("admin.APP_MODERATION.REPORTED_USER")),1),p("th",EZe,S(R.$t("admin.APP_MODERATION.REPORTED_CONTENT")),1),p("th",pZe,S(R.$t("admin.APP_MODERATION.REPORTED_BY")),1),p("th",mZe,S(Fe(R.$t("admin.APP_MODERATION.ORDER_BY.CREATED_AT"))),1),p("th",TZe,S(R.$t("admin.APP_MODERATION.RESOLVED.TRUE")),1),p("th",_Ze,S(Fe(R.$t("common.LAST_UPDATED_ON"))),1),p("th",fZe,S(R.$t("admin.ACTION")),1)])]),p("tbody",null,[(f(!0),v(re,null,be(l.value,C=>(f(),v("tr",{key:C.created_at},[p("td",null,[w(I,{to:`/admin/reports/${C.id}`},{default:Y(()=>[x(S(C.id),1)]),_:2},1032,["to"])]),p("td",null,[p("span",hZe,S(R.$t("admin.APP_MODERATION.REPORTED_USER")),1),C.reported_user?(f(),B(I,{key:0,class:"link-with-image",to:`/admin/users/${C.reported_user.username}`},{default:Y(()=>[w(Qt,{user:C.reported_user},null,8,["user"]),x(" "+S(C.reported_user.username),1)]),_:2},1032,["to"])):(f(),v("span",SZe,S(R.$t("admin.DELETED_USER")),1))]),p("td",null,[p("span",AZe,S(R.$t("admin.APP_MODERATION.REPORTED_CONTENT")),1),x(" "+S(R.$t(O(r[C.object_type])))+" ",1),A(C)?(f(),v("span",OZe," ("+S(A(C))+") ",1)):L("",!0)]),p("td",null,[p("span",IZe,S(R.$t("admin.APP_MODERATION.REPORTED_BY")),1),C.reported_by?(f(),B(I,{key:0,class:"link-with-image",to:`/admin/users/${C.reported_by.username}`},{default:Y(()=>[w(Qt,{user:C.reported_by},null,8,["user"]),x(" "+S(C.reported_by.username),1)]),_:2},1032,["to"])):(f(),v("span",gZe,S(R.$t("admin.DELETED_USER")),1))]),p("td",null,[p("span",RZe,S(Fe(R.$t("admin.APP_MODERATION.ORDER_BY.CREATED_AT"))),1),p("time",null,S(h(C.created_at)),1)]),p("td",null,[p("span",NZe,S(R.$t("admin.APP_MODERATION.RESOLVED.TRUE")),1),p("i",{class:Oe(`fa fa${C.resolved?"-check":""}-square-o`),"aria-hidden":"true"},null,2)]),p("td",null,[p("span",vZe,S(Fe(R.$t("common.LAST_UPDATED_ON"))),1),C.updated_at?(f(),v("time",bZe,S(h(C.updated_at)),1)):L("",!0)]),p("td",null,[p("button",{onClick:y=>R.$router.push(`/admin/reports/${C.id}`)},S(R.$t("admin.APP_MODERATION.VIEW_REPORT")),9,CZe)])]))),128))])]),d.value.page?(f(),B(Qn,{key:0,path:"/admin/users",pagination:d.value,query:T(u)},null,8,["pagination","query"])):L("",!0),T(s)?(f(),B(N,{key:1,message:T(s)},null,8,["message"])):L("",!0),p("button",{onClick:g[1]||(g[1]=ve(C=>R.$router.push("/admin"),["prevent"]))},S(R.$t("admin.BACK_TO_ADMIN")),1)]))]),_:1})])}}}),DZe=ae(PZe,[["__scopeId","data-v-88c1fd48"]]),LZe={id:"admin-sports",class:"admin-card"},yZe={class:"responsive-table"},$Ze={class:"text-left"},UZe={class:"text-left sport-action"},kZe={class:"text-center"},wZe={class:"cell-heading"},MZe={class:"sport-label"},WZe={class:"cell-heading"},FZe={class:"text-center"},zZe={class:"cell-heading"},xZe={class:"sport-action"},BZe={class:"cell-heading"},GZe={class:"action-button"},VZe=["onClick"],HZe={key:0,class:"has-workouts"},KZe=X({__name:"AdminSports",setup(e){const t=De(),{errorMessages:n}=Ke(),{translatedSports:a}=nn();function s(o,i){t.dispatch(Ht.ACTIONS.UPDATE_SPORTS,{id:o,isActive:i})}return Je(()=>t.dispatch(Ht.ACTIONS.GET_SPORTS,!0)),(o,i)=>{const r=j("SportImage"),u=j("ErrorMessage"),l=j("Card");return f(),v("div",LZe,[w(l,null,{title:Y(()=>[x(S(o.$t("admin.SPORTS.TITLE")),1)]),content:Y(()=>[p("button",{class:"top-button",onClick:i[0]||(i[0]=ve(d=>o.$router.push("/admin"),["prevent"]))},S(o.$t("admin.BACK_TO_ADMIN")),1),p("div",yZe,[p("table",null,[p("thead",null,[p("tr",null,[i[2]||(i[2]=p("th",null,"#",-1)),p("th",null,S(o.$t("admin.SPORTS.TABLE.IMAGE")),1),p("th",$Ze,S(o.$t("admin.SPORTS.TABLE.LABEL")),1),p("th",null,S(o.$t("admin.SPORTS.TABLE.ACTIVE")),1),p("th",UZe,S(o.$t("admin.ACTION")),1)])]),p("tbody",null,[(f(!0),v(re,null,be(T(a),d=>(f(),v("tr",{key:d.id},[p("td",kZe,[i[3]||(i[3]=p("span",{class:"cell-heading"},"id",-1)),x(" "+S(d.id),1)]),p("td",null,[p("span",wZe,S(o.$t("admin.SPORTS.TABLE.IMAGE")),1),w(r,{title:d.translatedLabel,"sport-label":d.label,color:d.color},null,8,["title","sport-label","color"])]),p("td",MZe,[p("span",WZe,S(o.$t("admin.SPORTS.TABLE.LABEL")),1),x(" "+S(d.translatedLabel),1)]),p("td",FZe,[p("span",zZe,S(o.$t("admin.SPORTS.TABLE.ACTIVE")),1),p("i",{class:Oe(`fa fa${d.is_active?"-check":""}`),"aria-hidden":"true"},null,2)]),p("td",xZe,[p("span",BZe,S(o.$t("admin.ACTION")),1),p("div",GZe,[p("button",{class:Oe({danger:d.is_active}),onClick:E=>s(d.id,!d.is_active)},S(o.$t(`buttons.${d.is_active?"DIS":"EN"}ABLE`)),11,VZe),d.has_workouts?(f(),v("span",HZe,[i[4]||(i[4]=p("i",{class:"fa fa-warning","aria-hidden":"true"},null,-1)),x(" "+S(o.$t("admin.SPORTS.TABLE.HAS_WORKOUTS")),1)])):L("",!0)])])]))),128))])]),T(n)?(f(),B(u,{key:0,message:T(n)},null,8,["message"])):L("",!0),p("button",{onClick:i[1]||(i[1]=ve(d=>o.$router.push("/admin"),["prevent"]))},S(o.$t("admin.BACK_TO_ADMIN")),1)])]),_:1})])}}}),qZe=ae(KZe,[["__scopeId","data-v-f6f9d907"]]),jZe={class:"users-filters"},YZe={class:"search-username"},XZe=["placeholder"],QZe=X({__name:"UsersNameFilter",emits:["filterOnUsername"],setup(e,{emit:t}){const n=t,a=rt(),s=Ie(a.query.q?a.query.q:"");function o(){s.value!==""&&n("filterOnUsername",s)}function i(){s.value="",n("filterOnUsername",s.value)}return(r,u)=>(f(),v("div",jZe,[p("div",YZe,[We(p("input",{id:"username",name:"username","onUpdate:modelValue":u[0]||(u[0]=l=>s.value=l),onKeyup:Ye(o,["enter"]),placeholder:r.$t("user.FILTER_ON_USERNAME")},null,40,XZe),[[it,s.value,void 0,{trim:!0}]]),s.value!==""?(f(),v("i",{key:0,class:"fa fa-times","aria-hidden":"true",onClick:i})):L("",!0)]),p("i",{class:Oe(["fa fa-search",{"fa-disabled":s.value===""}]),"aria-hidden":"true",onClick:o},null,2)]))}}),$O=ae(QZe,[["__scopeId","data-v-359360da"]]),ZZe={id:"admin-users",class:"admin-card"},JZe={key:0,class:"no-users"},eJe={key:1,class:"responsive-table"},tJe={class:"left-text"},nJe={class:"left-text"},aJe={class:"cell-heading"},sJe={class:"cell-heading"},oJe={class:"cell-heading"},iJe={class:"text-center"},rJe={class:"cell-heading"},uJe={class:"text-center"},lJe={class:"cell-heading"},cJe={class:"text-center"},dJe={class:"cell-heading"},EJe={class:"text-center"},pJe={class:"cell-heading"},mJe={class:"text-center"},TJe={class:"cell-heading"},_Je={class:"roles"},fJe={key:0,class:"roles-buttons"},hJe=["onClick"],SJe={key:1},AJe=["disabled","onClick"],hh="created_at",OJe=X({__name:"AdminUsers",setup(e){const t=De(),n=rt(),a=gn(),{errorMessages:s}=Ke(),{authUser:o}=qe(),i=["is_active","role","created_at","username","workouts_count"];let r=yt(Co(n.query,i,hh));const u=F(()=>t.getters[ue.GETTERS.USERS]),l=F(()=>t.getters[ue.GETTERS.USERS_PAGINATION]),d=F(()=>t.getters[ue.GETTERS.USERS_IS_SUCCESS]),E=Ie("");function c(g){t.dispatch(ue.ACTIONS.GET_USERS_FOR_ADMIN,g)}function m(g){A("q",g.value)}function _(g){return E.value===g}function h(g){switch(g){case"admin":return["moderator","user"];case"moderator":return["admin","user"];case"user":return["admin","moderator"];default:return[]}}function O(g,I){t.dispatch(ue.ACTIONS.UPDATE_USER,{username:g,role:I})}function A(g,I){r[g]=I,g==="per_page"&&(r.page=1),a.push({path:"/admin/users",query:r})}function R(g){return g.username===o.value.username||g.suspended_at!==null||g.role==="owner"}return Ce(()=>n.query,g=>{r=Co(g,i,hh,{query:r}),c(r)}),Ce(()=>d.value,g=>{g&&(E.value="")}),Je(()=>c(r)),ct(()=>{t.dispatch(ue.ACTIONS.EMPTY_USERS),t.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!1)}),(g,I)=>{const N=j("router-link"),b=j("ErrorMessage"),C=j("Card");return f(),v("div",ZZe,[w(C,null,{title:Y(()=>[x(S(Fe(g.$t("user.USER",0))),1)]),content:Y(()=>[p("button",{class:"top-button",onClick:I[0]||(I[0]=ve(y=>g.$router.push("/admin"),["prevent"]))},S(g.$t("admin.BACK_TO_ADMIN")),1),w($O,{onFilterOnUsername:m}),w(qp,{sort:T(Fl),order_by:i,query:T(r),message:"admin.USERS.SELECTS.ORDER_BY",onUpdateSelect:A},null,8,["sort","query"]),u.value.length===0?(f(),v("div",JZe,S(g.$t("user.NO_USERS_FOUND")),1)):(f(),v("div",eJe,[p("table",null,[p("thead",null,[p("tr",null,[I[3]||(I[3]=p("th",null,"#",-1)),p("th",tJe,S(g.$t("user.USERNAME")),1),p("th",nJe,S(g.$t("user.PROFILE.REGISTRATION_DATE")),1),p("th",null,S(Fe(g.$t("workouts.WORKOUT",0))),1),p("th",null,S(g.$t("admin.ACTIVE")),1),p("th",null,S(g.$t("user.ROLE")),1),p("th",null,S(g.$t("user.SUSPENDED")),1),p("th",null,S(g.$t("admin.ACTION")),1)])]),p("tbody",null,[(f(!0),v(re,null,be(u.value,y=>(f(),v("tr",{key:y.username},[p("td",null,[p("span",aJe,S(g.$t("user.PROFILE.PICTURE")),1),w(Qt,{user:y},null,8,["user"])]),p("td",null,[p("span",sJe,S(g.$t("user.USERNAME")),1),w(N,{to:`/admin/users/${y.username}`},{default:Y(()=>[x(S(y.username),1)]),_:2},1032,["to"]),T(s)&&E.value===y.username?(f(),B(b,{key:0,message:T(s)},null,8,["message"])):L("",!0)]),p("td",null,[p("span",oJe,S(g.$t("user.PROFILE.REGISTRATION_DATE")),1),p("time",null,S(T(Ut)(y.created_at,T(o).timezone,T(o).date_format)),1)]),p("td",iJe,[p("span",rJe,S(Fe(g.$t("workouts.WORKOUT",0))),1),x(" "+S(y.nb_workouts),1)]),p("td",uJe,[p("span",lJe,S(g.$t("admin.ACTIVE")),1),p("i",{class:Oe(`fa fa${y.is_active?"-check":""}-square-o`),"aria-hidden":"true"},null,2)]),p("td",cJe,[p("span",dJe,S(g.$t("user.ROLE")),1),x(" "+S(g.$t(`user.ROLES.${y.role}`)),1)]),p("td",EJe,[p("span",pJe,S(g.$t("user.SUSPENDED")),1),p("i",{class:Oe(`fa fa${y.suspended_at!==null?"-check":""}-square-o`),"aria-hidden":"true"},null,2)]),p("td",mJe,[p("span",TJe,S(g.$t("admin.ACTION")),1),p("div",_Je,[_(y.username)?(f(),v("div",fJe,[(f(!0),v(re,null,be(h(y.role),D=>(f(),v("button",{class:Oe({danger:y.role==="admin"||D==="user"}),key:D,onClick:M=>O(y.username,D)},S(g.$t(`admin.USERS.TABLE.CHANGE_TO_${D.toUpperCase()}`)),11,hJe))),128)),p("button",{onClick:I[1]||(I[1]=D=>E.value="")},S(g.$t("buttons.CANCEL")),1)])):(f(),v("div",SJe,[p("button",{disabled:R(y),onClick:D=>E.value=y.username},S(g.$t("admin.USERS.TABLE.CHANGE_ROLE")),9,AJe)]))])])]))),128))])]),l.value.page?(f(),B(Qn,{key:0,path:"/admin/users",pagination:l.value,query:T(r)},null,8,["pagination","query"])):L("",!0),E.value===""&&T(s)?(f(),B(b,{key:1,message:T(s)},null,8,["message"])):L("",!0),p("button",{onClick:I[2]||(I[2]=ve(y=>g.$router.push("/admin"),["prevent"]))},S(g.$t("admin.BACK_TO_ADMIN")),1)]))]),_:1})])}}}),IJe=ae(OJe,[["__scopeId","data-v-4934ef0c"]]),gJe={class:"box"},RJe={class:"user-header"},NJe={key:0,class:"follows-you"},vJe={key:1,class:"follows-you"},bJe={class:"user-details"},CJe={class:"user-name"},PJe={key:2,class:"user-role"},DJe=X({__name:"UserHeader",props:{user:{}},setup(e){const t=e,{user:n}=_e(t),a=rt(),{displayOptions:s}=Ke(),{authUser:o,authUserHasModeratorRights:i}=qe(),r=F(()=>n.value.suspended_at?Ut(n.value.suspended_at,s.value.timezone,s.value.dateFormat):""),u=F(()=>n.value.suspended_at!==null&&a.name!=="AuthUserAccountSuspension"&&n.value.username===(o==null?void 0:o.value.username)),l=F(()=>i.value&&n.value.suspension_report_id!==void 0),d=F(()=>n.value.role!=="user"?`user.ROLES.${n.value.role}`:"");return(E,c)=>{const m=j("router-link"),_=j("i18n-t"),h=j("AlertMessage");return f(),v("div",gJe,[p("div",RJe,[T(n).follows==="true"?(f(),v("div",NJe,S(E.$t("user.RELATIONSHIPS.FOLLOWS_YOU")),1)):T(n).username===T(o).username&&!E.$route.path.startsWith("/profile")?(f(),v("div",vJe,S(E.$t("user.YOU")),1)):L("",!0),w(Qt,{user:T(n)},null,8,["user"]),p("div",bJe,[p("div",CJe,S(T(n).username),1),w(Kp,{user:T(n)},null,8,["user"])]),d.value?(f(),v("div",PJe,S(E.$t(d.value)),1)):L("",!0)]),"suspended_at"in T(n)&&T(n).suspended_at!==null?(f(),B(h,{key:0,message:"user.ACCOUNT_SUSPENDED_AT",param:r.value},_o({_:2},[u.value||l.value?{name:"additionalMessage",fn:Y(()=>[u.value?(f(),B(m,{key:0,to:"/profile/suspension",class:"appeal-link"},{default:Y(()=>[x(S(E.$t("user.APPEAL")),1)]),_:1})):L("",!0),l.value?(f(),B(_,{key:1,keypath:"common.SEE_REPORT"},{default:Y(()=>[w(m,{to:`/admin/reports/${T(n).suspension_report_id}`},{default:Y(()=>[x(S(T(n).suspension_report_id),1)]),_:1},8,["to"])]),_:1})):L("",!0)]),key:"0"}:void 0]),1032,["param"])):L("",!0)])}}}),UO=ae(DJe,[["__scopeId","data-v-12bd7069"]]),LJe={class:"profile-tabs"},yJe={class:"profile-tabs-links"},kO=X({__name:"UserProfileTabs",props:{tabs:{},selectedTab:{},edition:{type:Boolean}},setup(e){const t=e,{edition:n,selectedTab:a,tabs:s}=_e(t);mt(()=>{const i=document.getElementById(`tab-${s.value[0]}`);i&&i.focus()});function o(i){switch(i){case"ACCOUNT":case"PICTURE":case"PRIVACY-POLICY":return`/profile/edit/${i.toLocaleLowerCase()}`;case"APPS":case"BLOCKED-USERS":case"EQUIPMENTS":case"FOLLOW-REQUESTS":case"MODERATION":case"NOTIFICATIONS":case"PREFERENCES":case"SPORTS":return`/profile${n.value?"/edit":""}/${i.toLocaleLowerCase()}`;default:case"PROFILE":return`/profile${n.value?"/edit":""}`}}return(i,r)=>{const u=j("router-link");return f(),v("div",LJe,[p("div",yJe,[(f(!0),v(re,null,be(T(s),l=>(f(),B(u,{class:Oe(["profile-tab",{selected:l===T(a)}]),to:o(l),key:l},{default:Y(()=>[x(S(i.$t(`user.PROFILE.TABS.${l}`)),1)]),_:2},1032,["class","to"]))),128))])])}}}),$Je={id:"user-profile"},UJe={class:"box"},kJe=X({__name:"index",props:{user:{},tab:{}},setup(e){const t=e,{user:n,tab:a}=_e(t),s=De(),o=F(()=>s.getters[K.GETTERS.IS_SUSPENDED]),i=F(()=>o.value?["PROFILE","PREFERENCES","SPORTS","EQUIPMENTS","APPS","MODERATION"]:["PROFILE","PREFERENCES","SPORTS","EQUIPMENTS","APPS","FOLLOW-REQUESTS","BLOCKED-USERS","NOTIFICATIONS","MODERATION"]);return(r,u)=>{const l=j("router-view");return f(),v("div",$Je,[w(UO,{user:T(n)},null,8,["user"]),p("div",UJe,[w(kO,{tabs:i.value,selectedTab:T(a),edition:!1},null,8,["tabs","selectedTab"]),w(l,{user:T(n)},null,8,["user"])])])}}}),wJe=ae(kJe,[["__scopeId","data-v-eb19dd23"]]),MJe={id:"user-moderation-detail"},WJe={id:"user-reports",class:"description-list"},FJe={key:0,id:"user-sanctions"},zJe={key:0},xJe={class:"last-sanctions"},BJe=X({__name:"UserAdminReports",props:{authUser:{},user:{}},setup(e){const t=e,{authUser:n,user:a}=_e(t),s=rt(),o=De();let i=yt(d(s.query));const r=F(()=>o.getters[ue.GETTERS.USER_SANCTIONS]),u=F(()=>o.getters[ue.GETTERS.USER_SANCTIONS_LOADING]),l=F(()=>o.getters[ue.GETTERS.USER_SANCTIONS_PAGINATION]);function d(m){const _={};return m.page&&(_.page=bo(m.page,cr)),_}function E(m){if(m.updated_at)switch(m.approved){case!0:return"APPROVED";case!1:return"REJECTED";default:return"IN_PROGRESS"}return"IN_PROGRESS"}function c(m){o.dispatch(ue.ACTIONS.GET_USER_SANCTIONS,{username:a.value.username,...m})}return Ce(()=>s.query,async m=>{i=d(m),c(i)}),Je(()=>c({})),ct(()=>o.commit(ue.MUTATIONS.UPDATE_USER_SANCTIONS,[])),(m,_)=>{const h=j("router-link");return f(),v("div",MJe,[p("div",WJe,[p("dl",null,[p("dt",null,S(m.$t("user.PROFILE.CREATED_REPORTS"))+":",1),p("dd",null,S(T(a).created_reports_count),1),p("dt",null,S(m.$t("user.PROFILE.REPORTS_FROM_OTHER_USERS"))+":",1),p("dd",null,S(T(a).reported_count),1)])]),T(a).sanctions_count?(f(),v("div",FJe,[p("strong",null,S(m.$t("user.PROFILE.LATEST_SANCTIONS_RECEIVED"))+":",1),p("div",null,S(m.$t("user.PROFILE.USER_RECEIVED_SANCTIONS",{count:T(a).sanctions_count})),1),u.value?(f(),v("div",zJe,[w(Ml)])):(f(),v(re,{key:1},[p("ul",xJe,[(f(!0),v(re,null,be(r.value,O=>(f(),v("li",{key:O.id},[p("div",null,[x(S(m.$t(`user.PROFILE.SANCTIONS.${O.action_type}`,{date:T(Ut)(O.created_at,T(n).timezone,T(n).date_format)}))+" ",1),O.appeal?(f(),v("span",{key:0,class:Oe(["info-box appeal",{approved:E(O.appeal)==="APPROVED",rejected:E(O.appeal)==="REJECTED"}])},[p("i",{class:Oe(["fa",{"fa-info-circle":E(O.appeal)!=="REJECTED","fa-times":E(O.appeal)==="REJECTED"}]),"aria-hidden":"true"},null,2),x(" "+S(m.$t(`user.APPEAL_${E(O.appeal)}`)),1)],2)):L("",!0)]),w(h,{to:`/admin/reports/${O.report_id}`},{default:Y(()=>[x(S(m.$t("admin.APP_MODERATION.VIEW_REPORT"))+" #"+S(O.report_id),1)]),_:2},1032,["to"])]))),128))]),w(Qn,{pagination:l.value,path:`/admin/users/${T(a).username}`,query:T(i)},null,8,["pagination","path","query"])],64))])):L("",!0)])}}}),GJe=ae(BJe,[["__scopeId","data-v-bfe7e915"]]),VJe={id:"user-infos",class:"description-list"},HJe={key:1,class:"info-box success-message"},KJe={key:4,class:"email-form form-box"},qJe={class:"form-items",for:"email"},jJe={class:"form-items",for:"email"},YJe={class:"form-buttons"},XJe={class:"confirm",type:"submit"},QJe={key:5},ZJe={key:0},JJe={key:1},eet={key:2},tet={key:3},net={key:4},aet={key:5},set={key:6},oet={key:7},iet={key:8},ret={key:9},uet={key:10},cet={key:11,class:"user-bio"},det={key:0,class:"report-submitted"},Eet={class:"info-box"},pet={key:0},met={key:0,class:"profile-buttons"},Tet={key:1,class:"profile-buttons"},_et=X({__name:"UserInfos",props:{user:{},authUser:{},fromAdmin:{type:Boolean,default:!1}},setup(e){const t=e,{authUser:n,user:a,fromAdmin:s}=_e(t),o=De(),{appConfig:i,appLanguage:r,displayOptions:u,errorMessages:l}=Ke(),{authUserHasModeratorRights:d,authUserHasAdminRights:E,isAuthenticated:c}=qe(),m=Ie(""),_=Ie(!1),h=Ie(!1),O=Ie(""),A=Ie(""),R=F(()=>o.getters[ue.GETTERS.USER_CURRENT_REPORTING]),g=F(()=>o.getters[Le.GETTERS.REPORT_STATUS]),I=F(()=>a.value.created_at?Ut(a.value.created_at,u.value.timezone,u.value.dateFormat):""),N=F(()=>a.value.birth_date?On(new Date(a.value.birth_date),`${fs(u.value.dateFormat,r.value)}`,{locale:zs[r.value]}):""),b=F(()=>o.getters[ue.GETTERS.USERS_IS_SUCCESS]);function C(Ee){m.value=Ee,Ee!==""&&o.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!1)}function y(Ee){o.dispatch(ue.ACTIONS.DELETE_USER_ACCOUNT,{username:Ee})}function D(Ee){A.value="password-reset",o.dispatch(ue.ACTIONS.UPDATE_USER,{username:Ee,resetPassword:!0})}function M(Ee){o.dispatch(ue.ACTIONS.UPDATE_USER,{username:Ee,activate:!0})}function P(){Se(),O.value=a.value.email_to_confirm?a.value.email_to_confirm:"",h.value=!0,A.value="email-update"}function W(){O.value="",h.value=!1}function Q(Ee){o.dispatch(ue.ACTIONS.UPDATE_USER,{username:Ee,new_email:O.value})}function Se(){o.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),o.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!1),o.commit(ue.MUTATIONS.UPDATE_USER_CURRENT_REPORTING,!1),o.commit(Le.MUTATIONS.SET_REPORT_STATUS,null),A.value=""}function J(){o.commit(ue.MUTATIONS.UPDATE_USER_CURRENT_REPORTING,!0)}return Ce(()=>b.value,Ee=>{Ee&&(C(""),W())}),ct(()=>Se()),(Ee,fe)=>{var Ve,_t,we,se,ke,pt,me;const Pe=j("Modal"),He=j("AlertMessage"),et=j("ErrorMessage");return f(),v("div",VJe,[m.value?(f(),B(Pe,{key:0,title:Ee.$t("common.CONFIRMATION"),message:m.value==="delete"?"admin.CONFIRM_USER_ACCOUNT_DELETION":"admin.CONFIRM_USER_PASSWORD_RESET",strongMessage:T(a).username,onConfirmAction:fe[0]||(fe[0]=Z=>m.value==="delete"?y(T(a).username):D(T(a).username)),onCancelAction:fe[1]||(fe[1]=Z=>C("")),onKeydown:fe[2]||(fe[2]=Ye(Z=>C(""),["esc"]))},null,8,["title","message","strongMessage"])):L("",!0),b.value?(f(),v("div",HJe,S(Ee.$t(`admin.${A.value==="password-reset"?"PASSWORD_RESET":"USER_EMAIL_UPDATE"}_SUCCESSFUL`)),1)):L("",!0),T(d)&&!T(a).is_active?(f(),B(He,{key:2,message:"user.THIS_USER_ACCOUNT_IS_INACTIVE"})):L("",!0),T(l)&&!R.value?(f(),B(et,{key:3,message:T(l)},null,8,["message"])):L("",!0),h.value?(f(),v("div",KJe,[p("form",{class:Oe({errors:_.value}),onSubmit:fe[5]||(fe[5]=ve(Z=>Q(T(a).username),["prevent"]))},[p("label",qJe,[x(S(Ee.$t("admin.CURRENT_EMAIL"))+" ",1),We(p("input",{id:"email",type:"email","onUpdate:modelValue":fe[3]||(fe[3]=Z=>T(a).email=Z),disabled:""},null,512),[[it,T(a).email]])]),p("label",jJe,[x(S(Ee.$t("admin.NEW_EMAIL"))+"* ",1),We(p("input",{id:"new-email",type:"email",required:"","onUpdate:modelValue":fe[4]||(fe[4]=Z=>O.value=Z)},null,512),[[it,O.value]])]),p("div",YJe,[p("button",XJe,S(Ee.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:ve(W,["prevent"])},S(Ee.$t("buttons.CANCEL")),1)])],34)])):(f(),v("div",QJe,[p("dl",null,[p("dt",null,S(Ee.$t("user.PROFILE.REGISTRATION_DATE"))+":",1),p("dd",null,[p("time",null,S(I.value),1)]),T(c)?(f(),v(re,{key:0},[T(s)?(f(),v("dt",ZJe,S(Ee.$t("user.EMAIL"))+":",1)):L("",!0),T(s)?(f(),v("dd",JJe,S(T(a).email),1)):L("",!0),T(a).first_name?(f(),v("dt",eet,S(Ee.$t("user.PROFILE.FIRST_NAME"))+":",1)):L("",!0),T(a).first_name?(f(),v("dd",tet,S(T(a).first_name),1)):L("",!0),T(a).last_name?(f(),v("dt",net,S(Ee.$t("user.PROFILE.LAST_NAME"))+":",1)):L("",!0),T(a).last_name?(f(),v("dd",aet,S(T(a).last_name),1)):L("",!0),N.value?(f(),v("dt",set,S(Ee.$t("user.PROFILE.BIRTH_DATE"))+":",1)):L("",!0),N.value?(f(),v("dd",oet,[p("time",null,S(N.value),1)])):L("",!0),T(a).location?(f(),v("dt",iet,S(Ee.$t("user.PROFILE.LOCATION"))+":",1)):L("",!0),T(a).location?(f(),v("dd",ret,S(T(a).location),1)):L("",!0),T(a).bio?(f(),v("dt",uet,S(Ee.$t("user.PROFILE.BIO"))+":",1)):L("",!0),T(a).bio?(f(),v("dd",cet,S(T(a).bio),1)):L("",!0)],64)):L("",!0)]),g.value===`user-${T(a).username}-created`?(f(),v("div",det,[p("div",Eet,[p("span",null,[fe[12]||(fe[12]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(Ee.$t("common.REPORT_SUBMITTED")),1)])])])):L("",!0),R.value?(f(),B(Fp,{key:1,"object-id":T(a).username,"object-type":"user"},null,8,["object-id"])):(f(),v(re,{key:2},[T(n)&&T(d)&&T(s)?(f(),v("div",pet,[w(GJe,{authUser:T(n),user:T(a)},null,8,["authUser","user"])])):L("",!0),T(c)?(f(),v(re,{key:1},[T(s)?(f(),v("div",met,[T(a).role!=="owner"&&T(E)?(f(),v(re,{key:0},[((Ve=T(n))==null?void 0:Ve.username)!==T(a).username?(f(),v("button",{key:0,class:"danger",onClick:fe[6]||(fe[6]=ve(Z=>C("delete"),["prevent"]))},S(Ee.$t("admin.DELETE_USER")),1)):L("",!0),T(a).is_active?L("",!0):(f(),v("button",{key:1,onClick:fe[7]||(fe[7]=ve(Z=>M(T(a).username),["prevent"]))},S(Ee.$t("admin.ACTIVATE_USER_ACCOUNT")),1)),((_t=T(n))==null?void 0:_t.username)!==T(a).username?(f(),v("button",{key:2,onClick:ve(P,["prevent"])},S(Ee.$t("admin.UPDATE_USER_EMAIL")),1)):L("",!0),((we=T(n))==null?void 0:we.username)!==T(a).username&&T(i).is_email_sending_enabled?(f(),v("button",{key:3,onClick:fe[8]||(fe[8]=ve(Z=>C("reset"),["prevent"]))},S(Ee.$t("admin.RESET_USER_PASSWORD")),1)):L("",!0),(se=T(n))!=null&&se.username?(f(),B(Ju,{key:4,authUser:T(n),user:T(a),from:"userInfos"},null,8,["authUser","user"])):L("",!0)],64)):L("",!0),p("button",{onClick:fe[9]||(fe[9]=Z=>Ee.$router.go(-1))},S(Ee.$t("buttons.BACK")),1)])):(f(),v("div",Tet,[Ee.$route.path==="/profile"||T(a).username===((ke=T(n))==null?void 0:ke.username)?(f(),v("button",{key:0,onClick:fe[10]||(fe[10]=Z=>Ee.$router.push("/profile/edit"))},S(Ee.$t("user.PROFILE.EDIT")),1)):L("",!0),(pt=T(n))!=null&&pt.username?(f(),B(Ju,{key:1,authUser:T(n),user:T(a),from:"userInfos"},null,8,["authUser","user"])):L("",!0),Ee.$route.name==="User"&&T(a).username!==((me=T(n))==null?void 0:me.username)&&T(a).suspended_at===null&&g.value!==`user-${T(a).username}-created`?(f(),v("button",{key:2,onClick:J},S(Ee.$t("user.REPORT")),1)):L("",!0),p("button",{onClick:fe[11]||(fe[11]=Z=>Ee.$router.go(-1))},S(Ee.$t("buttons.BACK")),1)]))],64)):L("",!0)],64))]))])}}}),wO=ae(_et,[["__scopeId","data-v-7c182b65"]]),MO=e=>{const t=["follow","follow_request","follow_request_approved","workout_like","workout_comment","comment_like","mention"];return(e==="admin"||e==="owner")&&t.push("account_creation"),t},fet={id:"user-notifications",class:"description-list"},het={class:"profile-buttons"},Aet=X({__name:"UserNotifications",props:{user:{}},setup(e){const t=e,{user:n}=_e(t),a=F(()=>MO(n.value.role));return(s,o)=>(f(),v(re,null,[p("h1",null,S(s.$t("user.PROFILE.NOTIFICATION_PREFERENCES")),1),p("div",fet,[p("dl",null,[(f(!0),v(re,null,be(a.value,i=>(f(),v(re,{key:i},[p("dt",null,S(Fe(s.$t(`user.PROFILE.NOTIFICATIONS.${i}`)))+":",1),p("dd",null,S(i in T(n).notification_preferences?s.$t(`common.${T(n).notification_preferences[i]?"EN":"DIS"}ABLED`):s.$t("common.ENABLED")),1)],64))),128))]),p("div",het,[p("button",{onClick:o[0]||(o[0]=i=>s.$router.push("/profile/edit/notifications"))},S(s.$t("user.PROFILE.EDIT_NOTIFICATION_PREFERENCES")),1),p("button",{onClick:o[1]||(o[1]=i=>s.$router.push("/notifications"))},S(Fe(s.$t("notifications.NOTIFICATIONS",0))),1),p("button",{onClick:o[2]||(o[2]=i=>s.$router.push("/"))},S(s.$t("common.HOME")),1)])])],64))}}),Oet=ae(Aet,[["__scopeId","data-v-6e0e6037"]]),Iet={id:"user-preferences",class:"description-list"},get={class:"preferences-section"},Ret={class:"preferences-section"},Net={class:"preferences-section"},vet={class:"info-box raw-speed-help"},bet={class:"profile-buttons"},Cet=X({__name:"UserPreferences",props:{user:{}},setup(e){const t=e,{user:n}=_e(t),{dateFormat:a,timezone:s}=qe(),o=F(()=>n.value.language&&n.value.language in mo?mo[n.value.language]:mo.en),i=F(()=>n.value.weekm?"MONDAY":"SUNDAY"),r=F(()=>n.value.display_ascent?"DISPLAYED":"HIDDEN"),u=F(()=>n.value.use_dark_mode===!0?"DARK":n.value.use_dark_mode===!1?"LIGHT":"DEFAULT");return(l,d)=>(f(),v("div",Iet,[p("div",get,S(l.$t("user.PROFILE.INTERFACE")),1),p("dl",null,[p("dt",null,S(l.$t("user.PROFILE.LANGUAGE"))+":",1),p("dd",null,S(o.value),1),p("dt",null,S(l.$t("user.PROFILE.THEME_MODE.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.THEME_MODE.VALUES.${u.value}`)),1),p("dt",null,S(l.$t("user.PROFILE.TIMEZONE"))+":",1),p("dd",null,S(T(s)),1),p("dt",null,S(l.$t("user.PROFILE.DATE_FORMAT"))+":",1),p("dd",null,S(T(a)),1),p("dt",null,S(l.$t("user.PROFILE.FIRST_DAY_OF_WEEK"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.${i.value}`)),1)]),p("div",Ret,S(l.$t("user.PROFILE.TABS.ACCOUNT")),1),p("dl",null,[p("dt",null,S(l.$t("user.PROFILE.FOLLOW_REQUESTS_APPROVAL.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.FOLLOW_REQUESTS_APPROVAL.${T(n).manually_approves_followers?"MANUALLY":"AUTOMATICALLY"}`)),1),p("dt",null,S(l.$t("user.PROFILE.PROFILE_IN_USERS_DIRECTORY.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.PROFILE_IN_USERS_DIRECTORY.${T(n).hide_profile_in_users_directory?"HIDDEN":"DISPLAYED"}`)),1)]),p("div",Net,S(l.$t("workouts.WORKOUT",0)),1),p("dl",null,[p("dt",null,S(l.$t("user.PROFILE.UNITS.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.UNITS.${T(n).imperial_units?"IMPERIAL":"METRIC"}`)),1),p("dt",null,S(l.$t("user.PROFILE.ASCENT_DATA"))+":",1),p("dd",null,S(l.$t(`common.${r.value}`)),1),p("dt",null,S(l.$t("user.PROFILE.ELEVATION_CHART_START.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.ELEVATION_CHART_START.${T(n).start_elevation_at_zero?"ZERO":"MIN_ALT"}`)),1),p("dt",null,S(l.$t("user.PROFILE.USE_RAW_GPX_SPEED.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.USE_RAW_GPX_SPEED.${T(n).use_raw_gpx_speed?"RAW_SPEED":"FILTERED_SPEED"}`)),1),p("div",vet,[p("span",null,[d[2]||(d[2]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(l.$t("user.PROFILE.USE_RAW_GPX_SPEED.HELP")),1)])])]),p("dl",null,[p("dt",null,S(l.$t("visibility_levels.WORKOUTS_VISIBILITY"))+":",1),p("dd",null,S(l.$t(`visibility_levels.LEVELS.${T(n).workouts_visibility}`)),1),p("dt",null,S(l.$t("visibility_levels.ANALYSIS_VISIBILITY"))+":",1),p("dd",null,S(l.$t(`visibility_levels.LEVELS.${T(n).analysis_visibility}`)),1),p("dt",null,S(l.$t("visibility_levels.MAP_VISIBILITY"))+":",1),p("dd",null,S(l.$t(`visibility_levels.LEVELS.${T(n).map_visibility}`)),1)]),p("div",bet,[p("button",{onClick:d[0]||(d[0]=E=>l.$router.push("/profile/edit/preferences"))},S(l.$t("user.PROFILE.EDIT_PREFERENCES")),1),p("button",{onClick:d[1]||(d[1]=E=>l.$router.push("/"))},S(l.$t("common.HOME")),1)])]))}}),Pet=ae(Cet,[["__scopeId","data-v-545b27a5"]]),Det={class:"users-list"},Let={key:0},yet={class:"user-name"},$et={key:0,class:"blocked-user"},Uet=["onClick"],ket={key:1,class:"follow-requests-list-actions"},wet=["onClick"],Met=["onClick"],Wet={key:1,class:"no-users-list"},Fet={class:"profile-buttons"},zet=X({__name:"UsersList",props:{itemType:{}},setup(e){const t=e,{itemType:n}=_e(t),a=rt(),s=De(),o={page:1},i=F(()=>s.getters[K.GETTERS[n.value==="follow-requests"?"FOLLOW_REQUESTS":"BLOCKED_USERS"]]),r=F(()=>s.getters[ue.GETTERS.USERS_PAGINATION]);function u(c){s.dispatch(K.ACTIONS[n.value==="follow-requests"?"GET_FOLLOW_REQUESTS":"GET_BLOCKED_USERS"],c)}function l(c,m){s.dispatch(K.ACTIONS.UPDATE_FOLLOW_REQUESTS,{username:c,action:m,getFollowRequests:!0})}function d(c,m){const _={username:c,action:"unblock",from:n.value,payload:E(a.query)};s.dispatch(ue.ACTIONS.UPDATE_RELATIONSHIP,_)}function E(c){return o.page=c.page?+c.page:1,o}return Ce(()=>a.query,c=>{a.path==="/profile/follow-requests"&&s.dispatch(K.ACTIONS.GET_FOLLOW_REQUESTS,E(c)),a.path==="/profile/blocked-users"&&s.dispatch(K.ACTIONS.GET_BLOCKED_USERS,E(c))}),Je(()=>u(E(a.query))),ct(()=>{s.commit(K.MUTATIONS[n.value==="follow-requests"?"UPDATE_FOLLOW_REQUESTS":"UPDATE_BLOCKED_USERS"],[])}),(c,m)=>{const _=j("router-link");return f(),v("div",Det,[i.value.length>0?(f(),v("div",Let,[(f(!0),v(re,null,be(i.value,h=>(f(),v("div",{key:h.username,class:"box item"},[w(Qt,{user:h},null,8,["user"]),p("div",yet,[w(_,{to:`/users/${h.username}?from=users`},{default:Y(()=>[x(S(h.username),1)]),_:2},1032,["to"])]),h.blocked?(f(),v("div",$et,[p("button",{onClick:O=>d(h.username)},S(c.$t("buttons.UNBLOCK")),9,Uet)])):(f(),v("div",ket,[p("button",{onClick:O=>l(h.username,"accept")},[m[1]||(m[1]=p("i",{class:"fa fa-check","aria-hidden":"true"},null,-1)),x(" "+S(c.$t("buttons.ACCEPT")),1)],8,wet),p("button",{onClick:O=>l(h.username,"reject"),class:"danger"},[m[2]||(m[2]=p("i",{class:"fa fa-times","aria-hidden":"true"},null,-1)),x(" "+S(c.$t("buttons.REJECT")),1)],8,Met)]))]))),128))])):(f(),v("p",Wet,S(c.$t(T(n)==="follow-requests"?"user.RELATIONSHIPS.NO_FOLLOW_REQUESTS":"user.NO_USERS_FOUND")),1)),r.value.total>0?(f(),B(Qn,{key:2,path:`/profile/${T(n)}`,pagination:r.value,query:{}},null,8,["path","pagination"])):L("",!0),p("div",Fet,[p("button",{onClick:m[0]||(m[0]=h=>c.$router.push("/"))},S(c.$t("common.HOME")),1)])])}}}),Sh=ae(zet,[["__scopeId","data-v-b29d1311"]]),xet={id:"user-profile-edition",class:"center-card"},Bet=X({__name:"index",props:{user:{},tab:{}},setup(e){const t=e,{user:n,tab:a}=_e(t),{isAuthUserSuspended:s}=qe(),o=F(()=>s.value?["PROFILE","ACCOUNT","PICTURE","PREFERENCES","PRIVACY-POLICY"]:["PROFILE","ACCOUNT","PICTURE","PREFERENCES","SPORTS","NOTIFICATIONS","EQUIPMENTS","PRIVACY-POLICY"]);return(i,r)=>{const u=j("router-view"),l=j("Card");return f(),v("div",xet,[w(l,null,{title:Y(()=>[x(S(i.$t(`user.PROFILE.${T(a)}_EDITION`)),1)]),content:Y(()=>[w(kO,{tabs:o.value,selectedTab:T(a),edition:!0},null,8,["tabs","selectedTab"]),w(u,{user:T(n)},null,8,["user"])]),_:1})])}}}),Ni=new Map,Get=e=>{const{method:t,url:n,params:a={},data:s={}}=e;return[t,n,JSON.stringify(a),JSON.stringify(s)].join("")},Po=e=>{const t=Get(e);if(Ni.has(t)){const n=Ni.get(t)||{};n==null||n.abort(),Ni.delete(t)}return t},as=Gt.create({baseURL:nr()});as.interceptors.request.use(e=>{const t=new AbortController;e.signal=t.signal;const n=Po(e);return Ni.set(n,t),e},e=>Promise.reject(e));as.interceptors.response.use(e=>(Po(e.config),e),e=>(e.message!=="canceled"&&e.response&&Po(e.response.config),Promise.reject(e)));const WO=(e,t)=>{e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.delete(`users/${t.username}`).then(n=>{n.status===204?t.fromAdmin?lt.push("/admin/users"):e.dispatch(K.ACTIONS.LOGOUT).then(()=>lt.push("/")):ne(e,null)}).catch(n=>ne(e,n))},Ah=(e,t,n=!1)=>{e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!0),n&&(t.with_inactive="true",t.with_hidden="true",t.with_suspended="true"),Ne.get("users",{params:t}).then(a=>{a.data.status==="success"?(e.commit(ue.MUTATIONS.UPDATE_USERS,a.data.data.users),e.commit(ue.MUTATIONS.UPDATE_USERS_PAGINATION,a.data.pagination)):ne(e,null)}).catch(a=>ne(e,a)).finally(()=>e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!1))},Vet={[ue.ACTIONS.EMPTY_USER](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USER,{})},[ue.ACTIONS.EMPTY_USERS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USERS,[]),e.commit(ue.MUTATIONS.UPDATE_USERS_PAGINATION,{})},[ue.ACTIONS.EMPTY_RELATIONSHIPS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USER_RELATIONSHIPS,[]),e.commit(ue.MUTATIONS.UPDATE_USERS_PAGINATION,{})},[ue.ACTIONS.GET_USER](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!0),Ne.get(`users/${t}`).then(n=>{n.data.status==="success"?e.commit(ue.MUTATIONS.UPDATE_USER,n.data.data.users[0]):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!1))},[ue.ACTIONS.GET_USER_SANCTIONS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USER_SANCTIONS_LOADING,!0);const{username:n,...a}=t;Ne.get(`users/${n}/sanctions`,{params:a}).then(s=>{s.data.status==="success"?(e.commit(ue.MUTATIONS.UPDATE_USER_SANCTIONS,s.data.data.sanctions),e.commit(ue.MUTATIONS.UPDATE_USER_SANCTIONS_PAGINATION,s.data.pagination)):ne(e,null)}).catch(s=>ne(e,s)).finally(()=>e.commit(ue.MUTATIONS.UPDATE_USER_SANCTIONS_LOADING,!1))},[ue.ACTIONS.GET_USER_WORKOUTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USER_WORKOUTS_LOADING,!0),Ne.get(`users/${t}/workouts`).then(n=>{n.data.status==="success"?e.commit(ue.MUTATIONS.UPDATE_USER_WORKOUTS,n.data.data.workouts):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(ue.MUTATIONS.UPDATE_USER_WORKOUTS_LOADING,!1))},[ue.ACTIONS.GET_USERS](e,t){Ah(e,t,!1)},[ue.ACTIONS.GET_USERS_FOR_ADMIN](e,t){Ah(e,t,!0)},[ue.ACTIONS.UPDATE_USER](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!1);const n={};t.role!==void 0&&(n.role=t.role),t.resetPassword&&(n.reset_password=t.resetPassword),"activate"in t&&t.activate!==void 0&&(n.activate=t.activate),t.new_email!==void 0&&(n.new_email=t.new_email),Ne.patch(`users/${t.username}`,n).then(a=>{a.data.status==="success"?(e.commit(ue.MUTATIONS.UPDATE_USER_IN_USERS,a.data.data.users[0]),(t.resetPassword||t.new_email||t.role)&&e.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!0),(t.activate||t.new_email)&&e.commit(ue.MUTATIONS.UPDATE_USER,a.data.data.users[0])):ne(e,null)}).catch(a=>ne(e,a)).finally(()=>e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!1))},[ue.ACTIONS.UPDATE_RELATIONSHIP](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!0),Ne.post(`users/${t.username}/${t.action}`).then(n=>{n.data.status==="success"?Ne.get(`users/${t.username}`).then(a=>{if(a.data.status==="success"){if(t.from==="blocked-users"){e.dispatch(K.ACTIONS.GET_BLOCKED_USERS,t.payload);return}e.commit(t.from==="userInfos"?ue.MUTATIONS.UPDATE_USER:t.from==="userCard"?ue.MUTATIONS.UPDATE_USER_IN_USERS:ue.MUTATIONS.UPDATE_USER_IN_RELATIONSHIPS,a.data.data.users[0]),e.dispatch(K.ACTIONS.GET_USER_PROFILE,{light:!0})}else ne(e,null)}):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!1))},[ue.ACTIONS.GET_RELATIONSHIPS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!0),Ne.get(`users/${t.username}/${t.relationship}`,{params:{page:t.page}}).then(n=>{n.data.status==="success"?(e.commit(ue.MUTATIONS.UPDATE_USER_RELATIONSHIPS,n.data.data[t.relationship]),e.commit(ue.MUTATIONS.UPDATE_USERS_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(ue.MUTATIONS.UPDATE_USERS_LOADING,!1))},[ue.ACTIONS.DELETE_USER_ACCOUNT](e,t){WO(e,{username:t.username,fromAdmin:!0})}},Ur=e=>{localStorage.removeItem("authToken"),e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Mt.MUTATIONS.EMPTY_USER_STATS),e.commit(Mt.MUTATIONS.EMPTY_USER_SPORT_STATS),e.commit(K.MUTATIONS.CLEAR_AUTH_USER_TOKEN),e.commit(K.MUTATIONS.UPDATE_FOLLOW_REQUESTS,[]),e.commit(ue.MUTATIONS.UPDATE_USERS,[]),e.commit(ee.MUTATIONS.EMPTY_WORKOUTS),e.commit(ee.MUTATIONS.EMPTY_WORKOUT),lt.push("/login")},Het={[K.ACTIONS.CHECK_AUTH_USER](e){window.localStorage.authToken&&!e.getters[K.GETTERS.IS_AUTHENTICATED]&&(e.commit(K.MUTATIONS.UPDATE_AUTH_TOKEN,window.localStorage.authToken),e.dispatch(K.ACTIONS.GET_USER_PROFILE,{updateUI:!0})),!window.localStorage.authToken&&e.getters[K.GETTERS.IS_AUTHENTICATED]&&Ur(e)},[K.ACTIONS.CONFIRM_ACCOUNT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),as.post("auth/account/confirm",{token:t.token}).then(n=>{if(n.data.status==="success"){const a=n.data.auth_token;window.localStorage.setItem("authToken",a),e.commit(K.MUTATIONS.UPDATE_AUTH_TOKEN,a),e.dispatch(K.ACTIONS.GET_USER_PROFILE,{}).then(()=>lt.push("/"))}else ne(e,null)}).catch(n=>{ne(e,n)})},[K.ACTIONS.CONFIRM_EMAIL](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!1),as.post("/auth/email/update",{token:t.token}).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!0),t.refreshUser&&e.dispatch(K.ACTIONS.GET_USER_PROFILE,{}).then(()=>lt.push("/profile/edit/account")),lt.push("/profile/edit/account")):ne(e,null)}).catch(n=>{ne(e,n)})},[K.ACTIONS.GET_USER_PROFILE](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("auth/profile").then(n=>{if(n.data.status==="success"){const a=e.getters[K.GETTERS.IS_PROFILE_NOT_LOADED];e.commit(K.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),n.data.data.accepted_privacy_policy||e.dispatch(te.ACTIONS.GET_APPLICATION_PRIVACY_POLICY),e.commit(ue.MUTATIONS.UPDATE_USER_IN_USERS,n.data.data),(a||t.updateUI)&&(n.data.data.language&&e.dispatch(te.ACTIONS.UPDATE_APPLICATION_LANGUAGE,n.data.data.language),e.commit(te.MUTATIONS.UPDATE_DARK_MODE,n.data.data.use_dark_mode)),(!("light"in t)||!t.light)&&(e.commit(te.MUTATIONS.UPDATE_DISPLAY_OPTIONS,n.data.data),e.dispatch(Ht.ACTIONS.GET_SPORTS),e.dispatch(xe.ACTIONS.GET_EQUIPMENTS),e.dispatch(xe.ACTIONS.GET_EQUIPMENT_TYPES)),n.data.data.suspended_at===null?kn.dispatch(Et.ACTIONS.GET_UNREAD_STATUS):!lt.currentRoute.value.path.startsWith("/profile")&&!lt.currentRoute.value.meta.allowedToSuspendedUser&<.push("/profile")}else ne(e,null),Ur(e)}).catch(n=>{n.message!=="canceled"&&(ne(e,n),Ur(e))})},[K.ACTIONS.GET_ACCOUNT_SUSPENSION](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.get("auth/account/suspension").then(t=>{t.data.status==="success"?e.commit(K.MUTATIONS.SET_ACCOUNT_SUSPENSION,t.data.user_suspension):ne(e,null)}).catch(t=>{t.message!=="canceled"&&ne(e,t)}).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.GET_FOLLOW_REQUESTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.get("follow-requests",{params:t}).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_FOLLOW_REQUESTS,n.data.data.follow_requests),e.commit(ue.MUTATIONS.UPDATE_USERS_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>{ne(e,n)}).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.LOGIN_OR_REGISTER](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS,!1),as.post(`/auth/${t.actionType}`,t.formData).then(n=>{if(n.data.status==="success")if(t.actionType==="login"){const a=n.data.auth_token;window.localStorage.setItem("authToken",a),e.commit(K.MUTATIONS.UPDATE_AUTH_TOKEN,a),e.dispatch(K.ACTIONS.GET_USER_PROFILE,{updateUI:!0}).then(()=>lt.push(typeof t.redirectUrl=="string"?t.redirectUrl:"/"))}else lt.push("/login").then(()=>e.commit(K.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS,!0));else ne(e,null)}).catch(n=>ne(e,n))},[K.ACTIONS.LOGOUT](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post("auth/logout").then(t=>{t.data.status==="success"?Ur(e):ne(e,null)}).catch(t=>ne(e,t))},[K.ACTIONS.APPEAL](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!1);const n=t.actionType==="user_suspension"?"auth/account/suspension/appeal":`auth/account/sanctions/${t.actionId}/appeal`;Ne.post(n,{text:t.text}).then(a=>{a.data.status==="success"?e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!0):ne(e,null)}).catch(a=>{a.message!=="canceled"&&ne(e,a)}).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.UPDATE_FOLLOW_REQUESTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post(`follow-requests/${t.username}/${t.action}`).then(n=>{n.data.status==="success"?t.getFollowRequests&&e.dispatch(K.ACTIONS.GET_FOLLOW_REQUESTS).then(()=>e.dispatch(K.ACTIONS.GET_USER_PROFILE,{})):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.UPDATE_USER_PROFILE](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.post("auth/profile/edit",t).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),lt.push("/profile")):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.UPDATE_USER_ACCOUNT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!1),Ne.patch("auth/profile/edit/account",t).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!0)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.UPDATE_USER_PREFERENCES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.post("auth/profile/edit/preferences",t).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),e.commit(te.MUTATIONS.UPDATE_DISPLAY_OPTIONS,n.data.data),e.commit(te.MUTATIONS.UPDATE_DARK_MODE,n.data.data.use_dark_mode),e.dispatch(te.ACTIONS.UPDATE_APPLICATION_LANGUAGE,n.data.data.language).then(()=>lt.push("/profile/preferences"))):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.RESET_USER_SPORT_PREFERENCES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.delete(`auth/profile/reset/sports/${t.sportId}`).then(n=>{n.status===204?(e.dispatch(Ht.ACTIONS.GET_SPORTS),t.fromSport&<.push(`/profile/sports/${t.sportId}`)):ne(e,null)}).catch(n=>{ne(e,n),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1)})},[K.ACTIONS.UPDATE_USER_SPORT_PREFERENCES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0);const{fromSport:n,...a}=t;Ne.post("auth/profile/edit/sports",a).then(s=>{s.data.status==="success"?(e.dispatch(Ht.ACTIONS.GET_SPORTS),n&<.push(`/profile/sports/${a.sport_id}`)):ne(e,null)}).catch(s=>{ne(e,s),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1)})},[K.ACTIONS.UPDATE_USER_PICTURE](e,t){if(e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),!t.picture)throw new Error("No file part");const n=new FormData;n.append("file",t.picture),Ne.post("auth/picture",n,{headers:{"content-type":"multipart/form-data"}}).then(a=>{a.data.status==="success"?e.dispatch(K.ACTIONS.GET_USER_PROFILE,{}).then(()=>lt.push("/profile")):ne(e,null)}).catch(a=>ne(e,a)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.DELETE_ACCOUNT](e,t){WO(e,t)},[K.ACTIONS.DELETE_PICTURE](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.delete("auth/picture").then(t=>{t.status===204?e.dispatch(K.ACTIONS.GET_USER_PROFILE,{}).then(()=>lt.push("/profile")):ne(e,null)}).catch(t=>ne(e,t)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.SEND_PASSWORD_RESET_REQUEST](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),as.post("auth/password/reset-request",t).then(n=>{n.data.status==="success"?lt.push("/password-reset/sent"):ne(e,null)}).catch(n=>ne(e,n))},[K.ACTIONS.RESEND_ACCOUNT_CONFIRMATION_EMAIL](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),as.post("auth/account/resend-confirmation",t).then(n=>{n.data.status==="success"?lt.push("/account-confirmation/email-sent"):ne(e,null)}).catch(n=>ne(e,n))},[K.ACTIONS.RESET_USER_PASSWORD](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),as.post("auth/password/update",t).then(n=>{n.data.status==="success"?lt.push("/password-reset/password-updated"):ne(e,null)}).catch(n=>ne(e,n))},[K.ACTIONS.ACCEPT_PRIVACY_POLICY](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post("auth/account/privacy-policy",{accepted_policy:t}).then(n=>{n.data.status==="success"?e.dispatch(K.ACTIONS.GET_USER_PROFILE,{}).then(()=>lt.push("/profile")):ne(e,null)}).catch(n=>ne(e,n))},[K.ACTIONS.REQUEST_DATA_EXPORT](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post("auth/account/export/request").then(t=>{t.data.status==="success"?e.commit(K.MUTATIONS.SET_EXPORT_REQUEST,t.data.request):ne(e,null)}).catch(t=>ne(e,t))},[K.ACTIONS.GET_REQUEST_DATA_EXPORT](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("auth/account/export").then(t=>{t.data.status==="success"?e.commit(K.MUTATIONS.SET_EXPORT_REQUEST,t.data.request):ne(e,null)}).catch(t=>ne(e,t))},[K.ACTIONS.GET_BLOCKED_USERS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.get("auth/blocked-users",{params:t}).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_BLOCKED_USERS,n.data.blocked_users),e.commit(ue.MUTATIONS.UPDATE_USERS_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>{ne(e,n)}).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.GET_USER_SANCTION](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.get(`auth/account/sanctions/${t}`).then(n=>{n.data.status==="success"?e.commit(K.MUTATIONS.SET_USER_SANCTION,n.data.sanction):ne(e,null)}).catch(n=>{n.message!=="canceled"&&ne(e,n)}).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.UPDATE_USER_NOTIFICATIONS_PREFERENCES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.post("auth/profile/edit/notifications",t).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),lt.push("/profile/notifications")):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))}},Ket={[K.GETTERS.AUTH_TOKEN]:e=>e.authToken,[K.GETTERS.AUTH_USER_PROFILE]:e=>e.authUserProfile,[K.GETTERS.BLOCKED_USERS]:e=>e.blockedUsers,[K.GETTERS.FOLLOW_REQUESTS]:e=>e.followRequests,[K.GETTERS.EXPORT_REQUEST]:e=>e.exportRequest,[K.GETTERS.IS_AUTHENTICATED]:e=>e.authToken!==null,[K.GETTERS.HAS_ADMIN_RIGHTS]:e=>e.authUserProfile&&["admin","owner"].includes(e.authUserProfile.role),[K.GETTERS.HAS_MODERATOR_RIGHTS]:e=>e.authUserProfile&&["admin","moderator","owner"].includes(e.authUserProfile.role),[K.GETTERS.HAS_OWNER_RIGHTS]:e=>e.authUserProfile&&e.authUserProfile.role==="owner",[K.GETTERS.IS_REGISTRATION_SUCCESS]:e=>e.isRegistrationSuccess,[K.GETTERS.IS_SUCCESS]:e=>e.isSuccess,[K.GETTERS.IS_SUSPENDED]:e=>e.authUserProfile&&e.authUserProfile.suspended_at!==null,[K.GETTERS.IS_PROFILE_LOADED]:e=>{var t;return((t=e.authUserProfile)==null?void 0:t.username)!==void 0},[K.GETTERS.USER_LOADING]:e=>e.loading,[K.GETTERS.IS_PROFILE_NOT_LOADED]:e=>e.authUserProfile.username===void 0,[K.GETTERS.ACCOUNT_SUSPENSION]:e=>e.userReportAction,[K.GETTERS.USER_SANCTION]:e=>e.userReportAction},qet={[K.MUTATIONS.CLEAR_AUTH_USER_TOKEN](e){e.authToken=null,e.authUserProfile={}},[K.MUTATIONS.UPDATE_AUTH_TOKEN](e,t){e.authToken=t},[K.MUTATIONS.UPDATE_AUTH_USER_PROFILE](e,t){e.authUserProfile=t},[K.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS](e,t){e.isRegistrationSuccess=t},[K.MUTATIONS.UPDATE_IS_SUCCESS](e,t){e.isSuccess=t},[K.MUTATIONS.UPDATE_FOLLOW_REQUESTS](e,t){e.followRequests=t},[K.MUTATIONS.UPDATE_USER_LOADING](e,t){e.loading=t},[K.MUTATIONS.SET_EXPORT_REQUEST](e,t){e.exportRequest=t},[K.MUTATIONS.UPDATE_BLOCKED_USERS](e,t){e.blockedUsers=t},[K.MUTATIONS.SET_ACCOUNT_SUSPENSION](e,t){e.userReportAction=t},[K.MUTATIONS.SET_USER_SANCTION](e,t){e.userReportAction=t}},jet={authToken:null,authUserProfile:{},isSuccess:!1,isRegistrationSuccess:!1,loading:!1,exportRequest:null,followRequests:[],blockedUsers:[],userReportAction:{}},Yet={state:jet,actions:Het,getters:Ket,mutations:qet},Xet={[xe.ACTIONS.ADD_EQUIPMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post("equipments",{description:t.description,equipment_type_id:t.equipmentTypeId,label:t.label,default_for_sport_ids:t.defaultForSportIds}).then(n=>{if(n.data.status==="created"){if(n.data.data.equipments.length>0){const a=n.data.data.equipments[0];e.commit(xe.MUTATIONS.ADD_EQUIPMENT,a),lt.push(`/profile/equipments/${a.id}`)}e.dispatch(Ht.ACTIONS.GET_SPORTS),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1)}else ne(e,null)}).catch(n=>ne(e,n))},[xe.ACTIONS.DELETE_EQUIPMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.delete(`equipments/${t.id}${t.force?"?force":""}`).then(()=>{e.commit(xe.MUTATIONS.REMOVE_EQUIPMENT,t.id),e.dispatch(Ht.ACTIONS.GET_SPORTS),lt.push("/profile/equipments")}).catch(n=>ne(e,n))},[xe.ACTIONS.GET_EQUIPMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`equipments/${t}`).then(n=>{n.data.status==="success"?n.data.data.equipments.length>0&&e.commit(xe.MUTATIONS.UPDATE_EQUIPMENT,n.data.data.equipments[0]):ne(e,null)}).catch(n=>ne(e,n))},[xe.ACTIONS.GET_EQUIPMENTS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("equipments").then(t=>{t.data.status==="success"?e.commit(xe.MUTATIONS.SET_EQUIPMENTS,t.data.data.equipments):ne(e,null)}).catch(t=>ne(e,t))},[xe.ACTIONS.GET_EQUIPMENT_TYPES](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("equipment-types").then(t=>{t.data.status==="success"?(e.commit(xe.MUTATIONS.SET_EQUIPMENT_TYPES,t.data.data.equipment_types),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1)):ne(e,null)}).catch(t=>ne(e,t))},[xe.ACTIONS.REFRESH_EQUIPMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(xe.MUTATIONS.SET_LOADING,!0),Ne.post(`equipments/${t}/refresh`).then(n=>{n.data.status==="success"?n.data.data.equipments.length>0&&(e.commit(xe.MUTATIONS.UPDATE_EQUIPMENT,n.data.data.equipments[0]),lt.push(`/profile/equipments/${t}`)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(xe.MUTATIONS.SET_LOADING,!1))},[xe.ACTIONS.UPDATE_EQUIPMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(xe.MUTATIONS.SET_LOADING,!0),Ne.patch(`equipments/${t.id}`,{description:t.description,equipment_type_id:t.equipmentTypeId,is_active:t.isActive,label:t.label,default_for_sport_ids:t.defaultForSportIds}).then(n=>{n.data.status==="success"?n.data.data.equipments.length>0&&(e.commit(xe.MUTATIONS.UPDATE_EQUIPMENT,n.data.data.equipments[0]),e.dispatch(Ht.ACTIONS.GET_SPORTS),lt.push(`/profile/equipments/${t.id}`)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(xe.MUTATIONS.SET_LOADING,!1))},[xe.ACTIONS.UPDATE_EQUIPMENT_TYPE](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(xe.MUTATIONS.SET_LOADING,!0),Ne.patch(`equipment-types/${t.id}`,{is_active:t.isActive}).then(n=>{n.data.status==="success"?e.dispatch(xe.ACTIONS.GET_EQUIPMENT_TYPES):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(xe.MUTATIONS.SET_LOADING,!1))}},Qet={[xe.GETTERS.EQUIPMENTS]:e=>e.equipments,[xe.GETTERS.EQUIPMENT_TYPES]:e=>e.equipmentTypes,[xe.GETTERS.LOADING]:e=>e.loading},Zet={[xe.MUTATIONS.ADD_EQUIPMENT](e,t){e.equipments.push(t)},[xe.MUTATIONS.REMOVE_EQUIPMENT](e,t){e.equipments=e.equipments.filter(n=>n.id!=t)},[xe.MUTATIONS.SET_EQUIPMENTS](e,t){e.equipments=t},[xe.MUTATIONS.SET_EQUIPMENT_TYPES](e,t){e.equipmentTypes=t},[xe.MUTATIONS.SET_LOADING](e,t){e.loading=t},[xe.MUTATIONS.UPDATE_EQUIPMENT](e,t){const n=e.equipments.findIndex(a=>a.id===t.id);n!==-1&&(e.equipments[n]=t)}},Jet={equipments:[],equipmentTypes:[],loading:!1},ett={state:Jet,actions:Xet,getters:Qet,mutations:Zet},ttt={[Et.ACTIONS.GET_UNREAD_STATUS](e){Ne.get("notifications/unread").then(t=>{t.data.status==="success"&&e.commit(Et.MUTATIONS.UPDATE_UNREAD_STATUS,t.data.unread)}).catch(t=>ne(e,t))},[Et.ACTIONS.GET_NOTIFICATION_TYPES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("notifications/types",{params:t}).then(n=>{n.data.status==="success"?e.commit(Et.MUTATIONS.UPDATE_TYPES,n.data.notification_types):ne(e,null)}).catch(n=>{n.message!=="canceled"&&ne(e,n)})},[Et.ACTIONS.GET_NOTIFICATIONS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("notifications",{params:t}).then(n=>{n.data.status==="success"?(e.commit(Et.MUTATIONS.UPDATE_NOTIFICATIONS,n.data.notifications),e.commit(Et.MUTATIONS.UPDATE_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>{n.message!=="canceled"&&ne(e,n)})},[Et.ACTIONS.MARK_ALL_AS_READ](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES);const n={};t.type&&(n.type=t.type),Ne.post("notifications/mark-all-as-read",n).then(a=>{a.data.status==="success"?(e.dispatch(Et.ACTIONS.GET_NOTIFICATIONS,t),e.dispatch(Et.ACTIONS.GET_UNREAD_STATUS)):ne(e,null)}).catch(a=>{a.message!=="canceled"&&ne(e,a)})},[Et.ACTIONS.UPDATE_STATUS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.patch(`notifications/${t.notificationId}`,{read_status:t.markedAsRead}).then(n=>{n.data.status==="success"?(e.dispatch(Et.ACTIONS.GET_NOTIFICATIONS,t.currentQuery),e.dispatch(Et.ACTIONS.GET_UNREAD_STATUS)):ne(e,null)}).catch(n=>{n.message!=="canceled"&&ne(e,n)})}},ntt={[Et.GETTERS.NOTIFICATIONS]:e=>e.notifications,[Et.GETTERS.PAGINATION]:e=>e.pagination,[Et.GETTERS.TYPES]:e=>e.types,[Et.GETTERS.UNREAD_STATUS]:e=>e.unread},att={[Et.MUTATIONS.UPDATE_NOTIFICATIONS](e,t){e.notifications=t},[Et.MUTATIONS.UPDATE_PAGINATION](e,t){e.pagination=t},[Et.MUTATIONS.UPDATE_TYPES](e,t){e.types=t},[Et.MUTATIONS.UPDATE_UNREAD_STATUS](e,t){e.unread=t},[Et.MUTATIONS.EMPTY_NOTIFICATIONS](e){e.notifications=[],e.pagination={}}},stt={notifications:[],unread:!1,pagination:{},types:[]},ott={state:stt,actions:ttt,getters:ntt,mutations:att},Oh=(e,t)=>{e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(t).then(n=>{n.data.status==="success"?e.commit(st.MUTATIONS.SET_CLIENT,n.data.data.client):ne(e,null)}).catch(n=>ne(e,n))},itt={[st.ACTIONS.AUTHORIZE_CLIENT](e,t){e.commit(te.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),Ne.post("oauth/authorize",n,{headers:{"Content-Type":"multipart/form-data"}}).then(a=>{a.status==200&&a.data.redirect_url?window.location.href=a.data.redirect_url:ne(e,null)}).catch(a=>ne(e,a))},[st.ACTIONS.CREATE_CLIENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post("oauth/apps",t).then(n=>{n.data.status==="created"?(e.commit(st.MUTATIONS.SET_CLIENT,n.data.data.client),lt.push(`/profile/apps/${n.data.data.client.id}/created`)):ne(e,null)}).catch(n=>ne(e,n))},[st.ACTIONS.DELETE_CLIENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.delete(`oauth/apps/${t}`).then(n=>{n.status===204?e.dispatch(st.ACTIONS.GET_CLIENTS).then(()=>lt.push("/profile/apps")):ne(e,null)}).catch(n=>ne(e,n))},[st.ACTIONS.GET_CLIENT_BY_CLIENT_ID](e,t){Oh(e,`oauth/apps/${t}`)},[st.ACTIONS.GET_CLIENT_BY_ID](e,t){Oh(e,`oauth/apps/${t}/by_id`)},[st.ACTIONS.GET_CLIENTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("oauth/apps",{params:t}).then(n=>{n.data.status==="success"?(e.commit(st.MUTATIONS.SET_CLIENTS,n.data.data.clients),e.commit(st.MUTATIONS.SET_CLIENTS_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>ne(e,n))},[st.ACTIONS.REVOKE_ALL_TOKENS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(st.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!1),Ne.post(`oauth/apps/${t}/revoke`).then(n=>{n.data.status==="success"?e.commit(st.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!0):ne(e,null)}).catch(n=>ne(e,n))}},rtt={[st.GETTERS.CLIENT]:e=>e.client,[st.GETTERS.CLIENTS]:e=>e.clients,[st.GETTERS.CLIENTS_PAGINATION]:e=>e.pagination,[st.GETTERS.REVOCATION_SUCCESSFUL]:e=>e.revocationSuccessful},utt={[st.MUTATIONS.SET_CLIENT](e,t){e.client=t},[st.MUTATIONS.EMPTY_CLIENT](e){e.client={}},[st.MUTATIONS.SET_CLIENTS](e,t){e.clients=t},[st.MUTATIONS.SET_CLIENTS_PAGINATION](e,t){e.pagination=t},[st.MUTATIONS.SET_REVOCATION_SUCCESSFUL](e,t){e.revocationSuccessful=t}},ltt={client:{},clients:[],pagination:{},revocationSuccessful:!1},ctt={state:ltt,actions:itt,getters:rtt,mutations:utt},dtt={[Le.ACTIONS.EMPTY_REPORTS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Le.MUTATIONS.EMPTY_REPORT),e.commit(Le.MUTATIONS.SET_REPORTS,[]),e.commit(Le.MUTATIONS.SET_REPORTS_PAGINATION,{})},[Le.ACTIONS.GET_REPORT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Le.MUTATIONS[`SET_${t.loader}_LOADING`],!0),Ne.get(`reports/${t.reportId}`).then(n=>{n.data.status==="success"?e.commit(Le.MUTATIONS.SET_REPORT,n.data.report):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(Le.MUTATIONS[`SET_${t.loader}_LOADING`],!1))},[Le.ACTIONS.GET_REPORTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("reports",{params:t}).then(n=>{n.data.status==="success"?(e.commit(Le.MUTATIONS.SET_REPORTS,n.data.reports),e.commit(Le.MUTATIONS.SET_REPORTS_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>ne(e,n))},[Le.ACTIONS.PROCESS_APPEAL](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES);const{appealId:n,reportId:a,...s}=t;Ne.patch(`appeals/${n}`,s).then(o=>{o.data.status==="success"?e.dispatch(Le.ACTIONS.GET_REPORT,{reportId:a,loader:"REPORT_UPDATE"}):ne(e,null)}).catch(o=>{ne(e,o)})},[Le.ACTIONS.SUBMIT_ADMIN_ACTION](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!1),e.commit(Le.MUTATIONS.SET_REPORT_UPDATE_LOADING,!0);const{report_id:n,...a}=t;Ne.post(`reports/${n}/actions`,a).then(s=>{s.data.status==="success"?(e.commit(Le.MUTATIONS.SET_REPORT,s.data.report),e.commit(ue.MUTATIONS.UPDATE_IS_SUCCESS,!0)):ne(e,null)}).catch(s=>{ne(e,s)}).finally(()=>e.commit(Le.MUTATIONS.SET_REPORT_UPDATE_LOADING,!1))},[Le.ACTIONS.SUBMIT_REPORT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Le.MUTATIONS.SET_REPORT_STATUS,"loading"),Ne.post("reports",t).then(n=>{n.data.status==="created"?(e.commit(Le.MUTATIONS.SET_REPORT_STATUS,`${t.object_type}-${t.object_id}-created`),t.object_type==="comment"&&e.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{}),t.object_type==="workout"&&e.commit(ee.MUTATIONS.SET_CURRENT_REPORTING,!1),t.object_type==="user"&&e.commit(ue.MUTATIONS.UPDATE_USER_CURRENT_REPORTING,!1)):(e.commit(Le.MUTATIONS.SET_REPORT_STATUS,null),ne(e,null))}).catch(n=>{ne(e,n),e.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)})},[Le.ACTIONS.UPDATE_REPORT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Le.MUTATIONS.SET_REPORT_UPDATE_LOADING,!0);const{reportId:n,...a}=t;Ne.patch(`reports/${n}`,a).then(s=>{s.data.status==="success"?e.commit(Le.MUTATIONS.SET_REPORT,s.data.report):(e.commit(Le.MUTATIONS.SET_REPORT_STATUS,null),ne(e,null))}).catch(s=>{ne(e,s),e.commit(Le.MUTATIONS.SET_REPORT_STATUS,null)}).finally(()=>e.commit(Le.MUTATIONS.SET_REPORT_UPDATE_LOADING,!1))},[Le.ACTIONS.GET_UNRESOLVED_REPORTS_STATUS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("reports/unresolved").then(t=>{t.data.status==="success"?e.commit(Le.MUTATIONS.SET_UNRESOLVED_REPORTS_STATUS,t.data.unresolved):ne(e,null)}).catch(t=>ne(e,t))}},Ett={[Le.GETTERS.UNRESOLVED_REPORTS_STATUS]:e=>e.unresolved,[Le.GETTERS.REPORT]:e=>e.report,[Le.GETTERS.REPORT_LOADING]:e=>e.reportLoading,[Le.GETTERS.REPORT_STATUS]:e=>e.reportStatus,[Le.GETTERS.REPORT_UPDATE_LOADING]:e=>e.reportUpdateLoading,[Le.GETTERS.REPORTS]:e=>e.reports,[Le.GETTERS.REPORTS_PAGINATION]:e=>e.pagination},ptt={[Le.MUTATIONS.EMPTY_REPORT](e){e.report={}},[Le.MUTATIONS.SET_REPORT](e,t){e.report=t},[Le.MUTATIONS.SET_REPORT_LOADING](e,t){e.reportLoading=t},[Le.MUTATIONS.SET_REPORT_STATUS](e,t){e.reportStatus=t},[Le.MUTATIONS.SET_REPORT_UPDATE_LOADING](e,t){e.reportUpdateLoading=t},[Le.MUTATIONS.SET_REPORTS](e,t){e.reports=t},[Le.MUTATIONS.SET_REPORTS_PAGINATION](e,t){e.pagination=t},[Le.MUTATIONS.SET_UNRESOLVED_REPORTS_STATUS](e,t){e.unresolved=t}},mtt={unresolved:!1,report:{},reports:[],pagination:{},reportStatus:null,reportLoading:!1,reportUpdateLoading:!1},Ttt={state:mtt,actions:dtt,getters:Ett,mutations:ptt},{locale:_tt}=ko.global,ftt={[te.ACTIONS.GET_APPLICATION_CONFIG](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(te.MUTATIONS.UPDATE_APPLICATION_LOADING,!0),Ne.get("config").then(t=>{t.data.status==="success"?e.commit(te.MUTATIONS.UPDATE_APPLICATION_CONFIG,t.data.data):ne(e,null)}).catch(t=>ne(e,t)).finally(()=>e.commit(te.MUTATIONS.UPDATE_APPLICATION_LOADING,!1))},[te.ACTIONS.GET_APPLICATION_STATS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("stats/all").then(t=>{t.data.status==="success"?e.commit(te.MUTATIONS.UPDATE_APPLICATION_STATS,t.data.data):ne(e,null)}).catch(t=>ne(e,t))},[te.ACTIONS.GET_APPLICATION_PRIVACY_POLICY](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("config").then(t=>{t.data.status==="success"?e.commit(te.MUTATIONS.UPDATE_APPLICATION_PRIVACY_POLICY,t.data.data):ne(e,null)}).catch(t=>ne(e,t))},[te.ACTIONS.UPDATE_APPLICATION_CONFIG](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.patch("config",t).then(n=>{n.data.status==="success"?(e.commit(te.MUTATIONS.UPDATE_APPLICATION_CONFIG,n.data.data),lt.push("/admin/application")):ne(e,null)}).catch(n=>ne(e,n))},[te.ACTIONS.UPDATE_APPLICATION_LANGUAGE](e,t){var n;(n=document.querySelector("html"))==null||n.setAttribute("lang",t),e.commit(te.MUTATIONS.UPDATE_LANG,t),_tt.value=t}},htt={[te.GETTERS.APP_CONFIG]:e=>e.application.config,[te.GETTERS.APP_LOADING]:e=>e.appLoading,[te.GETTERS.APP_STATS]:e=>e.application.statistics,[te.GETTERS.DARK_MODE]:e=>e.darkMode,[te.GETTERS.ERROR_MESSAGES]:e=>e.errorMessages,[te.GETTERS.LANGUAGE]:e=>e.language,[te.GETTERS.LOCALE]:e=>e.locale,[te.GETTERS.DISPLAY_OPTIONS]:e=>e.application.displayOptions},Stt={[te.MUTATIONS.EMPTY_ERROR_MESSAGES](e){e.errorMessages=null},[te.MUTATIONS.SET_ERROR_MESSAGES](e,t){e.errorMessages=t},[te.MUTATIONS.UPDATE_APPLICATION_CONFIG](e,t){e.application.config=t},[te.MUTATIONS.UPDATE_APPLICATION_LOADING](e,t){e.appLoading=t},[te.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},[te.MUTATIONS.UPDATE_APPLICATION_STATS](e,t){e.application.statistics=t},[te.MUTATIONS.UPDATE_LANG](e,t){t in zs?(e.language=t,e.locale=zs[t]):(e.language="en",e.locale=ir)},[te.MUTATIONS.UPDATE_DARK_MODE](e,t){e.darkMode=t},[te.MUTATIONS.UPDATE_DISPLAY_OPTIONS](e,t){e.application.displayOptions={...e.application.displayOptions,dateFormat:t.date_format,displayAscent:t.display_ascent,timezone:t.timezone,useImperialUnits:t.imperial_units}}},Att={root:!0,language:"en",locale:ir,errorMessages:null,application:{statistics:{sports:0,uploads_dir_size:0,users:0,workouts:0},displayOptions:{dateFormat:"MM/dd/yyyy",displayAscent:!0,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone?Intl.DateTimeFormat().resolvedOptions().timeZone:"Europe/Paris",useImperialUnits:!1}},appLoading:!1,darkMode:null},Ott={[Ht.ACTIONS.GET_SPORTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`sports${t?"?check_workouts=true":""}`).then(n=>{n.data.status==="success"?(e.commit(Ht.MUTATIONS.SET_SPORTS,n.data.data.sports),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1)):ne(e,null)}).catch(n=>ne(e,n))},[Ht.ACTIONS.UPDATE_SPORTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.patch(`sports/${t.id}`,{is_active:t.isActive}).then(n=>{n.data.status==="success"?e.dispatch(Ht.ACTIONS.GET_SPORTS):ne(e,null)}).catch(n=>ne(e,n))}},Itt={[Ht.GETTERS.SPORTS]:e=>e.sports},gtt={[Ht.MUTATIONS.SET_SPORTS](e,t){e.sports=t}},Rtt={sports:[]},Ntt={state:Rtt,actions:Ott,getters:Itt,mutations:gtt},vtt={[Mt.ACTIONS.GET_USER_STATS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`stats/${t.username}/by_time`,{params:t.params}).then(n=>{n.data.status==="success"?e.commit(Mt.MUTATIONS.UPDATE_USER_STATS,n.data.data.statistics):ne(e,null)}).catch(n=>ne(e,n))},[Mt.ACTIONS.GET_USER_SPORT_STATS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Mt.MUTATIONS.UPDATE_STATS_LOADING,!0),Ne.get(`stats/${t.username}/by_sport`,{params:{sport_id:t.sportId}}).then(n=>{n.data.status==="success"?(e.commit(Mt.MUTATIONS.UPDATE_USER_SPORT_STATS,n.data.data.statistics),e.commit(Mt.MUTATIONS.UPDATE_TOTAL_WORKOUTS,n.data.data.total_workouts)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(Mt.MUTATIONS.UPDATE_STATS_LOADING,!1))}},btt={[Mt.GETTERS.USER_SPORT_STATS]:e=>e.sportStatistics,[Mt.GETTERS.USER_STATS]:e=>e.statistics,[Mt.GETTERS.STATS_LOADING]:e=>e.loading,[Mt.GETTERS.TOTAL_WORKOUTS]:e=>e.totalWorkouts},Ctt={[Mt.MUTATIONS.UPDATE_USER_STATS](e,t){e.statistics=t},[Mt.MUTATIONS.EMPTY_USER_STATS](e){e.statistics={}},[Mt.MUTATIONS.EMPTY_USER_SPORT_STATS](e){e.sportStatistics={},e.totalWorkouts=0},[Mt.MUTATIONS.UPDATE_USER_SPORT_STATS](e,t){e.sportStatistics=t},[Mt.MUTATIONS.UPDATE_STATS_LOADING](e,t){e.loading=t},[Mt.MUTATIONS.UPDATE_TOTAL_WORKOUTS](e,t){e.totalWorkouts=t}},Ptt={statistics:{},sportStatistics:{},totalWorkouts:0,loading:!1},Dtt={state:Ptt,actions:vtt,getters:btt,mutations:Ctt},Ltt={[ue.GETTERS.USER]:e=>e.user,[ue.GETTERS.USER_CURRENT_REPORTING]:e=>e.currentReporting,[ue.GETTERS.USER_RELATIONSHIPS]:e=>e.user_relationships,[ue.GETTERS.USER_SANCTIONS]:e=>e.userSanctions.sanctions,[ue.GETTERS.USER_SANCTIONS_LOADING]:e=>e.userSanctions.loading,[ue.GETTERS.USER_SANCTIONS_PAGINATION]:e=>e.userSanctions.pagination,[ue.GETTERS.USER_WORKOUTS]:e=>e.userWorkouts.workouts,[ue.GETTERS.USER_WORKOUTS_LOADING]:e=>e.userWorkouts.loading,[ue.GETTERS.USERS]:e=>e.users,[ue.GETTERS.USERS_IS_SUCCESS]:e=>e.isSuccess,[ue.GETTERS.USERS_LOADING]:e=>e.loading,[ue.GETTERS.USERS_PAGINATION]:e=>e.pagination},ytt={[ue.MUTATIONS.UPDATE_USER](e,t){e.user=t},[ue.MUTATIONS.UPDATE_USER_IN_USERS](e,t){e.users=e.users.map(n=>n.username===t.username?t:n)},[ue.MUTATIONS.UPDATE_USER_IN_RELATIONSHIPS](e,t){e.user_relationships=e.user_relationships.map(n=>n.username===t.username?t:n)},[ue.MUTATIONS.UPDATE_USER_RELATIONSHIPS](e,t){e.user_relationships=t},[ue.MUTATIONS.UPDATE_USER_SANCTIONS](e,t){e.userSanctions.sanctions=t},[ue.MUTATIONS.UPDATE_USER_SANCTIONS_LOADING](e,t){e.userSanctions.loading=t},[ue.MUTATIONS.UPDATE_USER_SANCTIONS_PAGINATION](e,t){e.userSanctions.pagination=t},[ue.MUTATIONS.UPDATE_USERS](e,t){e.users=t},[ue.MUTATIONS.UPDATE_USERS_LOADING](e,t){e.loading=t},[ue.MUTATIONS.UPDATE_USERS_PAGINATION](e,t){e.pagination=t},[ue.MUTATIONS.UPDATE_IS_SUCCESS](e,t){e.isSuccess=t},[ue.MUTATIONS.UPDATE_USER_CURRENT_REPORTING](e,t){e.currentReporting=t},[ue.MUTATIONS.UPDATE_USER_WORKOUTS](e,t){e.userWorkouts.workouts=t},[ue.MUTATIONS.UPDATE_USER_WORKOUTS_LOADING](e,t){e.userWorkouts.loading=t}},$tt={user:{},userSanctions:{sanctions:[],loading:!1,pagination:{}},userWorkouts:{workouts:[],loading:!1},user_relationships:[],users:[],loading:!1,isSuccess:!1,pagination:{},currentReporting:!1},Utt={state:$tt,actions:Vet,getters:Ltt,mutations:ytt},kr=(e,t,n)=>{e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(n.match("TIMELINE")?"timeline":"workouts",{params:t}).then(a=>{a.data.status==="success"?(e.commit(ee.MUTATIONS[n],a.data.data.workouts),[Ma.SET_USER_WORKOUTS,Ma.SET_TIMELINE_WORKOUTS,Ma.ADD_TIMELINE_WORKOUTS].includes(n)&&e.commit(ee.MUTATIONS.SET_WORKOUTS_PAGINATION,a.data.pagination)):ne(e,null)}).catch(a=>ne(e,a))},FO=(e,t,n)=>{n?e.dispatch(ee.ACTIONS.GET_WORKOUT_COMMENTS,n):e.dispatch(ee.ACTIONS.GET_WORKOUT_COMMENT,t)},Ih=(e,t,n=!1)=>{Ne.post(`comments/${t.id}/like${n?"/undo":""}`).then(a=>{a.data.status==="success"&&FO(e,t.id,t.workout_id)}).catch(a=>{ne(e,a)})},gh=(e,t,n=!1)=>{Ne.post(`workouts/${t}/like${n?"/undo":""}`).then(a=>{a.data.status==="success"&&e.commit(ee.MUTATIONS.SET_WORKOUT,a.data.data.workouts[0])}).catch(a=>{ne(e,a)})},ktt={[ee.ACTIONS.GET_CALENDAR_WORKOUTS](e,t){e.commit(ee.MUTATIONS.EMPTY_CALENDAR_WORKOUTS),kr(e,t,Ma.SET_CALENDAR_WORKOUTS)},[ee.ACTIONS.GET_AUTH_USER_WORKOUTS](e,t){kr(e,t,Ma.SET_USER_WORKOUTS)},[ee.ACTIONS.GET_TIMELINE_WORKOUTS](e,t){kr(e,t,Ma.SET_TIMELINE_WORKOUTS)},[ee.ACTIONS.GET_MORE_TIMELINE_WORKOUTS](e,t){kr(e,t,Ma.ADD_TIMELINE_WORKOUTS)},[ee.ACTIONS.GET_WORKOUT_DATA](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!0);const n=t.segmentId?`/segment/${t.segmentId}`:"";Ne.get(`workouts/${t.workoutId}`).then(a=>{const s=a.data.data.workouts[0];if(a.data.status==="success"){if(t.segmentId&&(s.segments.length===0||!s.segments[+t.segmentId-1]))throw new Error("WORKOUT_NOT_FOUND");e.commit(ee.MUTATIONS.SET_WORKOUT,a.data.data.workouts[0]),a.data.data.workouts[0].with_analysis&&Ne.get(`workouts/${t.workoutId}/chart_data${n}`).then(o=>{o.data.status==="success"&&e.commit(ee.MUTATIONS.SET_WORKOUT_CHART_DATA,o.data.data.chart_data)}),a.data.data.workouts[0].with_gpx&&Ne.get(`workouts/${t.workoutId}/gpx${n}`).then(o=>{o.data.status==="success"&&e.commit(ee.MUTATIONS.SET_WORKOUT_GPX,o.data.data.gpx)}),t.segmentId||e.dispatch(ee.ACTIONS.GET_WORKOUT_COMMENTS,a.data.data.workouts[0].id)}else e.commit(ee.MUTATIONS.EMPTY_WORKOUT),ne(e,null)}).catch(a=>{e.commit(ee.MUTATIONS.EMPTY_WORKOUT),ne(e,a)}).finally(()=>e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ee.ACTIONS.DELETE_WORKOUT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!0),Ne.delete(`workouts/${t.workoutId}`).then(()=>{e.commit(ee.MUTATIONS.EMPTY_WORKOUT),e.dispatch(K.ACTIONS.GET_USER_PROFILE,{}),lt.push("/")}).catch(n=>{ne(e,n)}).finally(()=>e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ee.ACTIONS.EDIT_WORKOUT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!0),Ne.patch(`workouts/${t.workoutId}`,t.data).then(()=>{e.dispatch(K.ACTIONS.GET_USER_PROFILE,{}),e.dispatch(ee.ACTIONS.GET_WORKOUT_DATA,{workoutId:t.workoutId}).then(()=>{lt.push({name:"Workout",params:{workoutId:t.workoutId}})})}).catch(n=>{ne(e,n)}).finally(()=>e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ee.ACTIONS.EDIT_WORKOUT_CONTENT](e,t){e.commit(ee.MUTATIONS.SET_WORKOUT_CONTENT_LOADING,!0),e.commit(ee.MUTATIONS.SET_WORKOUT_CONTENT_TYPE,t.contentType),e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES);const n={[t.contentType==="NOTES"?"notes":"description"]:t.content};Ne.patch(`workouts/${t.workoutId}`,n).then(a=>{const s=a.data.data.workouts[0];e.commit(ee.MUTATIONS.SET_WORKOUT_CONTENT,s)}).catch(a=>{ne(e,a)}).finally(()=>e.commit(ee.MUTATIONS.SET_WORKOUT_CONTENT_LOADING,!1))},[ee.ACTIONS.ADD_WORKOUT](e,t){if(e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!0),!t.file)throw new Error("No file part");const n=t.notes.replace(/"/g,'\\"'),a=t.description.replace(/"/g,'\\"'),s=t.title.replace(/"/g,'\\"'),o=new FormData;o.append("file",t.file),o.append("data",`{"sport_id": ${t.sport_id}, "notes": "${n}", "description": "${a}", "title": "${s}", "equipment_ids": [${t.equipment_ids.map(i=>`"${i}"`).join(",")}], "workout_visibility": "${t.workout_visibility}", "map_visibility": "${t.map_visibility}"}`),Ne.post("workouts",o,{headers:{"content-type":"multipart/form-data"}}).then(i=>{if(i.data.status==="created"){e.dispatch(K.ACTIONS.GET_USER_PROFILE,{});const r=i.data.data.workouts[0];lt.push(i.data.data.workouts.length===1?`/workouts/${r.id}`:"/")}}).catch(i=>{ne(e,i)}).finally(()=>e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ee.ACTIONS.ADD_WORKOUT_WITHOUT_GPX](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!0),Ne.post("workouts/no_gpx",t).then(n=>{if(n.data.status==="created"){e.dispatch(K.ACTIONS.GET_USER_PROFILE,{});const a=n.data.data.workouts[0];lt.push(`/workouts/${a.id}`)}}).catch(n=>{ne(e,n)}).finally(()=>e.commit(ee.MUTATIONS.SET_WORKOUT_LOADING,!1))},[ee.ACTIONS.ADD_COMMENT](e,t){e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,"new");const n={text:t.text,text_visibility:t.text_visibility};e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post(`/workouts/${t.workout_id}/comments`,n).then(a=>{a.data.status==="created"?(e.dispatch(ee.ACTIONS.GET_WORKOUT_COMMENTS,t.workout_id),e.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{})):ne(e,null)}).catch(a=>{ne(e,a),e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,null)})},[ee.ACTIONS.GET_WORKOUT_COMMENT](e,t){e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,"loading"),e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`/comments/${t}`).then(n=>{n.data.status==="success"?(e.commit(ee.MUTATIONS.SET_WORKOUT_COMMENTS,[n.data.comment]),e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,null)):ne(e,null)}).catch(n=>{ne(e,n)}).finally(()=>e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,null))},[ee.ACTIONS.GET_WORKOUT_COMMENTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`/workouts/${t}/comments`).then(n=>{n.data.status==="success"?(e.commit(ee.MUTATIONS.SET_WORKOUT_COMMENTS,n.data.data.comments),e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,null)):ne(e,null)}).catch(n=>{ne(e,n.status===500?null:n,"error when getting comments")}).finally(()=>e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,null))},[ee.ACTIONS.DELETE_WORKOUT_COMMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,"delete"),Ne.delete(`comments/${t.commentId}`).then(n=>{n.status===204&&(t.workoutId?e.dispatch(ee.ACTIONS.GET_WORKOUT_COMMENTS,t.workoutId):lt.push("/"))}).catch(n=>{ne(e,n)})},[ee.ACTIONS.EDIT_WORKOUT_COMMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,t.id),Ne.patch(`comments/${t.id}`,{text:t.text}).then(n=>{n.data.status==="success"&&(FO(e,t.id,t.workout_id),e.commit(ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{}))}).catch(n=>{ne(e,n),e.commit(ee.MUTATIONS.SET_COMMENT_LOADING,null)})},[ee.ACTIONS.LIKE_COMMENT](e,t){Ih(e,t)},[ee.ACTIONS.UNDO_LIKE_COMMENT](e,t){Ih(e,t,!0)},[ee.ACTIONS.LIKE_WORKOUT](e,t){gh(e,t)},[ee.ACTIONS.UNDO_LIKE_WORKOUT](e,t){gh(e,t,!0)},[ee.ACTIONS.MAKE_APPEAL](e,t){const n=`${t.objectType}_${t.objectId}`;e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ee.MUTATIONS.SET_APPEAL_LOADING,n),e.commit(ee.MUTATIONS.SET_SUCCESS,null),Ne.post(`${t.objectType}s/${t.objectId}/suspension/appeal`,{text:t.text}).then(a=>{a.data.status==="success"&&e.commit(ee.MUTATIONS.SET_SUCCESS,n)}).catch(a=>{ne(e,a)}).finally(()=>e.commit(ee.MUTATIONS.SET_APPEAL_LOADING,null))},[ee.ACTIONS.GET_LIKES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`${t.objectType}s/${t.objectId}/likes?page=${t.page}`).then(n=>{n.data.status==="success"&&(e.commit(ue.MUTATIONS.UPDATE_USERS,n.data.data.likes),e.commit(ue.MUTATIONS.UPDATE_USERS_PAGINATION,n.data.pagination))}).catch(n=>{ne(e,n)})}},wtt={[ee.GETTERS.APPEAL_LOADING]:e=>e.appealLoading,[ee.GETTERS.CALENDAR_WORKOUTS]:e=>e.calendar_workouts,[ee.GETTERS.CURRENT_REPORTING]:e=>e.workoutData.currentReporting,[ee.GETTERS.SUCCESS]:e=>e.success,[ee.GETTERS.TIMELINE_WORKOUTS]:e=>e.timeline_workouts,[ee.GETTERS.AUTH_USER_WORKOUTS]:e=>e.user_workouts,[ee.GETTERS.WORKOUT_CONTENT_EDITION]:e=>e.workoutContent,[ee.GETTERS.WORKOUT_DATA]:e=>e.workoutData,[ee.GETTERS.WORKOUTS_PAGINATION]:e=>e.pagination},Mtt={[ee.MUTATIONS.ADD_TIMELINE_WORKOUTS](e,t){e.timeline_workouts=e.timeline_workouts.concat(t)},[ee.MUTATIONS.SET_APPEAL_LOADING](e,t){e.appealLoading=t},[ee.MUTATIONS.SET_CALENDAR_WORKOUTS](e,t){e.calendar_workouts=t},[ee.MUTATIONS.SET_SUCCESS](e,t){e.success=t},[ee.MUTATIONS.SET_TIMELINE_WORKOUTS](e,t){e.timeline_workouts=t},[ee.MUTATIONS.SET_USER_WORKOUTS](e,t){e.user_workouts=t},[ee.MUTATIONS.SET_WORKOUTS_PAGINATION](e,t){e.pagination=t},[ee.MUTATIONS.SET_WORKOUT](e,t){e.workoutData.workout=t},[ee.MUTATIONS.SET_WORKOUT_CHART_DATA](e,t){e.workoutData.chartData=t},[ee.MUTATIONS.SET_WORKOUT_GPX](e,t){e.workoutData.gpx=t},[ee.MUTATIONS.SET_WORKOUT_LOADING](e,t){e.workoutData.loading=t},[ee.MUTATIONS.SET_WORKOUT_CONTENT](e,t){e.workoutData.workout=t},[ee.MUTATIONS.SET_WORKOUT_CONTENT_LOADING](e,t){e.workoutContent.loading=t},[ee.MUTATIONS.SET_WORKOUT_CONTENT_TYPE](e,t){e.workoutContent.contentType=t},[ee.MUTATIONS.EMPTY_CALENDAR_WORKOUTS](e){e.calendar_workouts=[]},[ee.MUTATIONS.EMPTY_WORKOUTS](e){e.calendar_workouts=[],e.user_workouts=[],e.timeline_workouts=[]},[ee.MUTATIONS.EMPTY_WORKOUT](e){e.workoutData={gpx:"",loading:!1,workout:{},chartData:[],comments:[],commentsLoading:null,currentCommentEdition:{},currentReporting:!1}},[ee.MUTATIONS.SET_WORKOUT_COMMENTS](e,t){e.workoutData.comments=t},[ee.MUTATIONS.ADD_WORKOUT_COMMENT](e,t){e.workoutData.comments.push(t)},[ee.MUTATIONS.SET_COMMENT_LOADING](e,t){e.workoutData.commentsLoading=t},[ee.MUTATIONS.SET_CURRENT_COMMENT_EDITION](e,t){e.workoutData.currentCommentEdition=t},[ee.MUTATIONS.SET_CURRENT_REPORTING](e,t){e.workoutData.currentReporting=t}},Wtt={calendar_workouts:[],timeline_workouts:[],pagination:{},user_workouts:[],workoutData:{gpx:"",loading:!1,workout:{},chartData:[],comments:[],commentsLoading:null,currentCommentEdition:{},currentReporting:!1},workoutContent:{loading:!1,contentType:""},success:null,appealLoading:null,likes:[]},Ftt={state:Wtt,actions:ktt,getters:wtt,mutations:Mtt},ztt={authUserModule:Yet,equipmentModule:ett,notificationsModule:ott,oAuthModule:ctt,reportsModule:Ttt,sportsModule:Ntt,statsModule:Dtt,usersModule:Utt,workoutsModule:Ftt},xtt={state:Att,actions:ftt,getters:htt,mutations:Stt,modules:ztt},kn=N2(xtt),Ne=Gt.create({baseURL:nr()});Ne.interceptors.request.use(e=>{const t=new AbortController;e.signal=t.signal;const n=Po(e);Ni.set(n,t);const a=kn.getters[K.GETTERS.AUTH_TOKEN];if(a){const s=`Bearer ${a}`;e.headers&&e.headers.Authorization!==s&&(e.headers.Authorization=`Bearer ${a}`)}return e},e=>Promise.reject(e));Ne.interceptors.response.use(e=>(Po(e.config),e),e=>(e.message!=="canceled"&&e.response&&Po(e.response.config),Promise.reject(e)));const hE=(e,t)=>e.push.apply(e,t),Do=e=>e.sort((t,n)=>t.i-n.i||t.j-n.j),Rh=e=>{const t={};let n=1;return e.forEach(a=>{t[a]=n,n+=1}),t};var Btt={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 Nh=2050,vh=1e3,Gtt=Btt,Vtt=10,Htt=1e4,zO=10,xO=50,BO=20,GO=/^[A-Z\xbf-\xdf][^A-Z\xbf-\xdf]+$/,Ktt=/^[^A-Z\xbf-\xdf]+[A-Z\xbf-\xdf]$/,qtt=/^[A-Z\xbf-\xdf]+$/,VO=/^[^a-z\xdf-\xff]+$/,jtt=/^[a-z\xdf-\xff]+$/,Ytt=/^[^A-Z\xbf-\xdf]+$/,Xtt=/[a-z\xdf-\xff]/,Qtt=/[A-Z\xbf-\xdf]/,Ztt=/[^A-Za-z\xbf-\xdf]/gi,Jtt=/^\d+$/,jp=new Date().getFullYear(),ent={recentYear:/19\d\d|200\d|201\d|202\d/g},HO=[" ",",",";",":","|","/","\\","_",".","-"],tnt=HO.length;class nnt{match({password:t}){const n=[...this.getMatchesWithoutSeparator(t),...this.getMatchesWithSeparator(t)],a=this.filterNoise(n);return Do(a)}getMatchesWithSeparator(t){const n=[],a=/^(\d{1,4})([\s/\\_.-])(\d{1,2})\2(\d{1,4})$/;for(let s=0;s<=Math.abs(t.length-6);s+=1)for(let o=s+5;o<=s+9&&!(o>=t.length);o+=1){const i=t.slice(s,+o+1||9e9),r=a.exec(i);if(r!=null){const u=this.mapIntegersToDayMonthYear([parseInt(r[1],10),parseInt(r[3],10),parseInt(r[4],10)]);u!=null&&n.push({pattern:"date",token:i,i:s,j:o,separator:r[2],year:u.year,month:u.month,day:u.day})}}return n}getMatchesWithoutSeparator(t){const n=[],a=/^\d{4,8}$/,s=o=>Math.abs(o.year-jp);for(let o=0;o<=Math.abs(t.length-4);o+=1)for(let i=o+3;i<=o+7&&!(i>=t.length);i+=1){const r=t.slice(o,+i+1||9e9);if(a.exec(r)){const u=[],l=r.length;if(Gtt[l].forEach(([E,c])=>{const m=this.mapIntegersToDayMonthYear([parseInt(r.slice(0,E),10),parseInt(r.slice(E,c),10),parseInt(r.slice(c),10)]);m!=null&&u.push(m)}),u.length>0){let E=u[0],c=s(u[0]);u.slice(1).forEach(m=>{const _=s(m);_{let a=!1;const s=t.length;for(let o=0;o=n.j){a=!0;break}}return!a})}mapIntegersToDayMonthYear(t){if(t[1]>31||t[1]<=0)return null;let n=0,a=0,s=0;for(let o=0,i=t.length;o99&&rNh)return null;r>31&&(a+=1),r>12&&(n+=1),r<=0&&(s+=1)}return a>=2||n===3||s>=2?null:this.getDayMonth(t)}getDayMonth(t){const n=[[t[2],t.slice(0,2)],[t[0],t.slice(1,3)]],a=n.length;for(let s=0;s=1&&o<=31&&i>=1&&i<=12)return{day:o,month:i}}return null}twoToFourDigitYear(t){return t>99?t:t>50?t+1900:t+2e3}}const ya=new Uint32Array(65536),ant=(e,t)=>{const n=e.length,a=t.length,s=1<{const n=t.length,a=e.length,s=[],o=[],i=Math.ceil(n/32),r=Math.ceil(a/32);for(let _=0;_>>R&1,N=s[R/32|0]>>>R&1,b=g|_,C=((g|N)&h)+h^h|g|N;let y=_|~(C|h),D=h&C;y>>>31^I&&(o[R/32|0]^=1<>>31^N&&(s[R/32|0]^=1<>>_&1,A=s[_/32|0]>>>_&1,R=h|l,g=((h|A)&d)+d^d|h|A;let I=l|~(g|d),N=d&g;m+=I>>>a-1&1,m-=N>>>a-1&1,I>>>31^O&&(o[_/32|0]^=1<<_),N>>>31^A&&(s[_/32|0]^=1<<_),I=I<<1|O,N=N<<1|A,d=N|~(R|I),l=I&R}for(let _=E;_{if(e.length{const a=e.length<=t.length,s=e.length<=n;return a||s?Math.ceil(e.length/4):n},rnt=(e,t,n)=>{let a=0;const s=Object.keys(t).find(o=>{const i=int(e,o,n);if(Math.abs(e.length-o.length)>i)return!1;const r=ont(e,o),u=r<=i;return u&&(a=r),u});return s?{levenshteinDistance:a,levenshteinDistanceEntry:s}:{}};var bh={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"]},ld={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 Ki{constructor(t=[]){this.parents=t,this.children=new Map}addSub(t,...n){const a=t.charAt(0);this.children.has(a)||this.children.set(a,new Ki([...this.parents,a]));let s=this.children.get(a);for(let o=1;o(Object.entries(e).forEach(([n,a])=>{a.forEach(s=>{t.addSub(s,n)})}),t);class unt{constructor(){this.matchers={},this.l33tTable=bh,this.trieNodeRoot=Ch(bh,new Ki),this.dictionary={userInputs:[]},this.rankedDictionaries={},this.rankedDictionariesMaxWordSize={},this.translations=ld,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=Ch(t.l33tTable,new Ki)),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(ld).forEach(a=>{if(a in t){const s=a;Object.keys(ld[s]).forEach(o=>{o in t[s]||(n=!1)})}else n=!1}),n}setRankedDictionaries(){const t={},n={};Object.keys(this.dictionary).forEach(a=>{t[a]=Rh(this.dictionary[a]),n[a]=this.getRankedDictionariesMaxWordSize(this.dictionary[a])}),this.rankedDictionaries=t,this.rankedDictionariesMaxWordSize=n}getRankedDictionariesMaxWordSize(t){const n=t.map(a=>typeof a!="string"?a.toString().length:a.length);return n.length===0?0:n.reduce((a,s)=>Math.max(a,s),-1/0)}buildSanitizedRankedDictionary(t){const n=[];return t.forEach(a=>{const s=typeof a;(s==="string"||s==="number"||s==="boolean")&&n.push(a.toString().toLowerCase())}),Rh(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 Ge=new unt;class lnt{constructor(t){this.defaultMatch=t}match({password:t}){const n=t.split("").reverse().join("");return this.defaultMatch({password:n}).map(a=>({...a,token:a.token.split("").reverse().join(""),reversed:!0,i:t.length-1-a.j,j:t.length-1-a.i}))}}class cnt{constructor({substr:t,limit:n,trieRoot:a}){this.buffer=[],this.finalPasswords=[],this.substr=t,this.limit=n,this.trieRoot=a}getAllPossibleSubsAtIndex(t){const n=[];let a=this.trieRoot;for(let s=t;s=this.limit)return;if(a===this.substr.length){t===n&&this.finalPasswords.push({password:this.buffer.join(""),changes:o});return}const u=[...this.getAllPossibleSubsAtIndex(a)];let l=!1;for(let d=a+u.length-1;d>=a;d-=1){const E=u[d-a];if(E.isTerminal()){if(i===E.parents.join("")&&r>=3)continue;l=!0;const c=E.subs;for(const m of c){this.buffer.push(m);const _=o.concat({i:s,letter:m,substitution:E.parents.join("")});if(this.helper({onlyFullSub:t,isFullSub:n,index:d+1,subIndex:s+m.length,changes:_,lastSubLetter:E.parents.join(""),consecutiveSubCount:i===E.parents.join("")?r+1:1}),this.buffer.pop(),this.finalPasswords.length>=this.limit)return}}}if(!t||!l){const d=this.substr.charAt(a);this.buffer.push(d),this.helper({onlyFullSub:t,isFullSub:n&&!l,index:a+1,subIndex:s+1,changes:o,lastSubLetter:i,consecutiveSubCount:r}),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 dnt=(e,t,n)=>new cnt({substr:e,limit:t,trieRoot:n}).getAll(),Ent=(e,t,n)=>{const s=e.changes.filter(l=>l.il-d.letter.length+d.substitution.length,t),o=e.changes.filter(l=>l.i>=t&&l.i<=n),i=o.reduce((l,d)=>l-d.letter.length+d.substitution.length,n-t+s),r=[],u=[];return o.forEach(l=>{r.findIndex(E=>E.letter===l.letter&&E.substitution===l.substitution)<0&&(r.push({letter:l.letter,substitution:l.substitution}),u.push(`${l.substitution} -> ${l.letter}`))}),{i:s,j:i,subs:r,subDisplay:u.join(", ")}};class pnt{constructor(t){this.defaultMatch=t}isAlreadyIncluded(t,n){return t.some(a=>Object.entries(a).every(([s,o])=>s==="subs"||o===n[s]))}match({password:t}){const n=[],a=dnt(t,Ge.l33tMaxSubstitutions,Ge.trieNodeRoot);let s=!1,o=!0;return a.forEach(i=>{if(s)return;const r=this.defaultMatch({password:i.password,useLevenshtein:o});o=!1,r.forEach(u=>{s||(s=u.i===0&&u.j===t.length-1);const l=Ent(i,u.i,u.j),d=t.slice(l.i,+l.j+1||9e9),E={...u,l33t:!0,token:d,...l},c=this.isAlreadyIncluded(n,E);d.toLowerCase()!==u.matchedWord&&!c&&n.push(E)})}),n.filter(i=>i.token.length>1)}}class mnt{constructor(){this.l33t=new pnt(this.defaultMatch),this.reverse=new lnt(this.defaultMatch)}match({password:t}){const n=[...this.defaultMatch({password:t}),...this.reverse.match({password:t}),...this.l33t.match({password:t})];return Do(n)}defaultMatch({password:t,useLevenshtein:n=!0}){const a=[],s=t.length,o=t.toLowerCase();return Object.keys(Ge.rankedDictionaries).forEach(i=>{const r=Ge.rankedDictionaries[i],u=Ge.rankedDictionariesMaxWordSize[i],l=Math.min(u,s);for(let d=0;d{const o=n[s];o.lastIndex=0;let i;for(;i=o.exec(t);)if(i){const r=i[0];a.push({pattern:"regex",token:r,i:i.index,j:i.index+i[0].length-1,regexName:s,regexMatch:i})}}),Do(a)}}var qs={nCk(e,t){let n=e;if(t>n)return 0;if(t===0)return 1;let a=1;for(let s=1;s<=t;s+=1)a*=n,a/=s,n-=1;return a},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}},_nt=({token:e})=>{let t=Vtt**e.length;t===Number.POSITIVE_INFINITY&&(t=Number.MAX_VALUE);let n;return e.length===1?n=zO+1:n=xO+1,Math.max(t,n)},fnt=({year:e,separator:t})=>{let a=Math.max(Math.abs(e-jp),BO)*365;return t&&(a*=4),a};const hnt=e=>{const t=e.split(""),n=t.filter(i=>i.match(Qtt)).length,a=t.filter(i=>i.match(Xtt)).length;let s=0;const o=Math.min(n,a);for(let i=1;i<=o;i+=1)s+=qs.nCk(n+a,i);return s};var Snt=e=>{const t=e.replace(Ztt,"");if(t.match(Ytt)||t.toLowerCase()===t)return 1;const n=[GO,Ktt,VO],a=n.length;for(let s=0;s{let n=0,a=e.indexOf(t);for(;a>=0;)n+=1,a=e.indexOf(t,a+t.length);return n},Ant=({sub:e,token:t})=>{const n=t.toLowerCase(),a=Ph(n,e.substitution),s=Ph(n,e.letter);return{subbedCount:a,unsubbedCount:s}};var Ont=({l33t:e,subs:t,token:n})=>{if(!e)return 1;let a=1;return t.forEach(s=>{const{subbedCount:o,unsubbedCount:i}=Ant({sub:s,token:n});if(o===0||i===0)a*=2;else{const r=Math.min(i,o);let u=0;for(let l=1;l<=r;l+=1)u+=qs.nCk(i+o,l);a*=u}}),a},Int=({rank:e,reversed:t,l33t:n,subs:a,token:s,dictionaryName:o})=>{const i=e,r=Snt(s),u=Ont({l33t:n,subs:a,token:s}),l=t&&2||1;let d;return o==="diceware"?d=6**5/2:d=i*r*u*l,{baseGuesses:i,uppercaseVariations:r,l33tVariations:u,calculation:d}},gnt=({regexName:e,regexMatch:t,token:n})=>{const a={alphaLower:26,alphaUpper:26,alpha:52,alphanumeric:62,digits:10,symbols:33};if(e in a)return a[e]**n.length;switch(e){case"recentYear":return Math.max(Math.abs(parseInt(t[0],10)-jp),BO)}return 0},Rnt=({baseGuesses:e,repeatCount:t})=>e*t,Nnt=({token:e,ascending:t})=>{const n=e.charAt(0);let a=0;return["a","A","z","Z","0","1","9"].includes(n)?a=4:n.match(/\d/)?a=10:a=26,t||(a*=2),a*e.length};const vnt=e=>{let t=0;return Object.keys(e).forEach(n=>{const a=e[n];t+=a.filter(s=>!!s).length}),t/=Object.entries(e).length,t},bnt=({token:e,graph:t,turns:n})=>{const a=Object.keys(Ge.graphs[t]).length,s=vnt(Ge.graphs[t]);let o=0;const i=e.length;for(let r=2;r<=i;r+=1){const u=Math.min(n,r-1);for(let l=1;l<=u;l+=1)o+=qs.nCk(r-1,l-1)*a*s**l}return o};var Cnt=({graph:e,token:t,shiftedCount:n,turns:a})=>{let s=bnt({token:t,graph:e,turns:a});if(n){const o=t.length-n;if(n===0||o===0)s*=2;else{let i=0;for(let r=1;r<=Math.min(n,o);r+=1)i+=qs.nCk(n+o,r);s*=i}}return Math.round(s)},Pnt=()=>tnt;const Dnt=(e,t)=>{let n=1;return e.token.lengthDh[e]?Dh[e](t):Ge.matchers[e]&&"scoring"in Ge.matchers[e]?Ge.matchers[e].scoring(t):0;var ynt=(e,t)=>{const n={};if("guesses"in e&&e.guesses!=null)return e;const a=Dnt(e,t),s=Lnt(e.pattern,e);let o=0;typeof s=="number"?o=s:e.pattern==="dictionary"&&(o=s.calculation,n.baseGuesses=s.baseGuesses,n.uppercaseVariations=s.uppercaseVariations,n.l33tVariations=s.l33tVariations);const i=Math.max(o,a);return{...e,...n,guesses:i,guessesLog10:qs.log10(i)}};const Un={password:"",optimal:{},excludeAdditive:!1,separatorRegex:void 0,fillArray(e,t){const n=[];for(let a=0;a1&&(s*=this.optimal.pi[a.i-1][t-1]);let o=qs.factorial(t)*s;this.excludeAdditive||(o+=Htt**(t-1));let i=!1;Object.keys(this.optimal.g[n]).forEach(r=>{const u=this.optimal.g[n][r];parseInt(r,10)<=t&&u<=o&&(i=!0)}),i||(this.optimal.g[n][t]=o,this.optimal.m[n][t]=a,this.optimal.pi[n][t]=s)},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 a=this.optimal.m[n-1];Object.keys(a).forEach(s=>{a[s].pattern!=="bruteforce"&&this.update(t,parseInt(s,10)+1)})}},unwind(e){const t=[];let n=e-1,a=0,s=1/0;const o=this.optimal.g[n];for(o&&Object.keys(o).forEach(i=>{const r=o[i];r=0;){const i=this.optimal.m[n][a];t.unshift(i),n=i.i-1,a-=1}return t}};var SE={mostGuessableMatchSequence(e,t,n=!1){Un.password=e,Un.excludeAdditive=n;const a=e.length;let s=Un.fillArray(a,"array");t.forEach(u=>{s[u.j].push(u)}),s=s.map(u=>u.sort((l,d)=>l.i-d.i)),Un.optimal={m:Un.fillArray(a,"object"),pi:Un.fillArray(a,"object"),g:Un.fillArray(a,"object")};for(let u=0;u{l.i>0?Object.keys(Un.optimal.m[l.i-1]).forEach(d=>{Un.update(l,parseInt(d,10)+1)}):Un.update(l,1)}),Un.bruteforceUpdate(u);const o=Un.unwind(a),i=o.length,r=this.getGuesses(e,i);return{password:e,guesses:r,guessesLog10:qs.log10(r),sequence:o}},getGuesses(e,t){const n=e.length;let a=0;return e.length===0?a=1:a=Un.optimal.g[n-1][t],a}};class $nt{match({password:t,omniMatch:n}){const a=[];let s=0;for(;s