@opfr/services 0.49.1 → 0.49.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +836 -816
- package/dist/index.umd.js +2 -2
- package/dist/quests/quests/index.d.ts +1 -1
- package/dist/quests/quests/index.d.ts.map +1 -1
- package/dist/quests/quests/on-user-meta-update/index.d.ts +1 -0
- package/dist/quests/quests/on-user-meta-update/index.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(c,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("mongoose"),require("@opfr/items"),require("@opfr/utils-type"),require("@opfr/raids"),require("events"),require("@opfr/ornaments"),require("@opfr/canvas")):typeof define=="function"&&define.amd?define(["exports","mongoose","@opfr/items","@opfr/utils-type","@opfr/raids","events","@opfr/ornaments","@opfr/canvas"],h):(c=typeof globalThis<"u"?globalThis:c||self,h(c.services={},c.mongoose,c["@opfr/items"],c["@opfr/utils-type"],c["@opfr/raids"],c.events,c["@opfr/ornaments"],c["@opfr/canvas"]))})(this,function(c,h,S,l,x,Ms,u,j){"use strict";var
|
|
1
|
+
(function(c,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("mongoose"),require("@opfr/items"),require("@opfr/utils-type"),require("@opfr/raids"),require("events"),require("@opfr/ornaments"),require("@opfr/canvas")):typeof define=="function"&&define.amd?define(["exports","mongoose","@opfr/items","@opfr/utils-type","@opfr/raids","events","@opfr/ornaments","@opfr/canvas"],h):(c=typeof globalThis<"u"?globalThis:c||self,h(c.services={},c.mongoose,c["@opfr/items"],c["@opfr/utils-type"],c["@opfr/raids"],c.events,c["@opfr/ornaments"],c["@opfr/canvas"]))})(this,function(c,h,S,l,x,Ms,u,j){"use strict";var Ay=Object.defineProperty;var Dy=(c,h,S)=>h in c?Ay(c,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):c[h]=S;var e=(c,h,S)=>Dy(c,typeof h!="symbol"?h+"":h,S);var Gn,Vn,zn,Xn,Zn,Jn,ei,ti,ai,si,ri,ni,ii,li,di,oi,ci,ui,fi,hi,pi,mi;function yi(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(a,s,r.get?r:{enumerable:!0,get:()=>t[s]})}}return a.default=t,Object.freeze(a)}const vs=yi(Ms),vt=Object.freeze(Object.defineProperty({__proto__:null,get Annihilation(){return Nu},get Champion(){return $u},get Cursed_Branch(){return Ru},get EZ(){return Lu},get GiantHunter(){return Uu},get Immortal(){return ku},get Insistent(){return bu},get Massacre(){return Du},get Master(){return Fu},get Participation(){return Pu},get Phoenix(){return vu},get Rebirth(){return Mu},get Resurrection(){return Su},get Sabotage(){return Bu},get ShootingStar(){return Yu},get Sniper(){return Au},get Top64(){return Cu},get TrollSupreme(){return Eu},get Unstoppable(){return Iu},get VictoryByKO(){return Ou},get ZeroScored(){return xu}},Symbol.toStringTag,{value:"Module"})),na=new h.Schema({bannedUserId:String,authorId:String,unbannedTimestamp:Date,reason:String});na.index({bannedUserId:1}),na.index({unbannedTimestamp:1});const Ye=((Gn=h.models)==null?void 0:Gn.Bans)||h.model("Bans",na),gi=Object.freeze(Object.defineProperty({__proto__:null,getUnbanUsers:async()=>await Ye.find({unbannedTimestamp:{$lte:new Date,$ne:null}})},Symbol.toStringTag,{value:"Module"})),wi=async t=>await Ye.create({...t}),_i=async t=>await Ye.findOne({bannedUserId:t}),bi=async t=>{await Ye.deleteOne({bannedUserId:t})},Si=t=>Ye.exists({bannedUserId:t}),Mi=new h.Schema({betOwner:String,betId:Number,channelId:String,messageId:String,title:String,desc:String,state:String,end:Date,highestBet:Number,choices:{type:[String],default:[]},bets:{type:[{owner:String,amount:Number,choice:Number}],default:[]}}),ia=((Vn=h.models)==null?void 0:Vn.Bets)||h.model("Bets",Mi),vi=async(t,a={})=>{const s=await ia.findById(t,a);return s||null},ki=async t=>await ia.create({...t}),ks=new h.Schema({senderId:String,receiverId:String,amount:Number,gameMode:String,meta:{rps:{type:String,default:void 0}}});ks.index({receiverId:1});const kt=((zn=h.models)==null?void 0:zn.Invitations)||h.model("Invitations",ks),Ri=async t=>{const a=await kt.findOne({...t});return a||null},Ci=async t=>await kt.create({...t}),xi=async t=>{await kt.deleteMany({...t})};//! moment.js
|
|
2
2
|
//! version : 2.30.1
|
|
3
3
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
4
|
//! license : MIT
|
|
@@ -7,4 +7,4 @@ var Rs;function y(){return Rs.apply(null,arguments)}function Ui(t){Rs=t}function
|
|
|
7
7
|
[`+i+"] ";for(o in arguments[0])R(arguments[0],o)&&(n+=o+": "+arguments[0][o]+", ");n=n.slice(0,-2)}else n=arguments[i];r.push(n)}Us(t+`
|
|
8
8
|
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
9
9
|
`+new Error().stack),s=!1}return a.apply(this,arguments)},a)}var Bs={};function Os(t,a){y.deprecationHandler!=null&&y.deprecationHandler(t,a),Bs[t]||(Us(a),Bs[t]=!0)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null;function le(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function Oi(t){var a,s;for(s in t)R(t,s)&&(a=t[s],le(a)?this[s]=a:this["_"+s]=a);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function fa(t,a){var s=ke({},t),r;for(r in a)R(a,r)&&(Oe(t[r])&&Oe(a[r])?(s[r]={},ke(s[r],t[r]),ke(s[r],a[r])):a[r]!=null?s[r]=a[r]:delete s[r]);for(r in t)R(t,r)&&!R(a,r)&&Oe(t[r])&&(s[r]=ke({},s[r]));return s}function ha(t){t!=null&&this.set(t)}var pa;Object.keys?pa=Object.keys:pa=function(t){var a,s=[];for(a in t)R(t,a)&&s.push(a);return s};var Ai={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Di(t,a,s){var r=this._calendar[t]||this._calendar.sameElse;return le(r)?r.call(a,s):r}function de(t,a,s){var r=""+Math.abs(t),n=a-r.length,i=t>=0;return(i?s?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+r}var ma=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ct=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ya={},Le={};function w(t,a,s,r){var n=r;typeof r=="string"&&(n=function(){return this[r]()}),t&&(Le[t]=n),a&&(Le[a[0]]=function(){return de(n.apply(this,arguments),a[1],a[2])}),s&&(Le[s]=function(){return this.localeData().ordinal(n.apply(this,arguments),t)})}function Ni(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Ei(t){var a=t.match(ma),s,r;for(s=0,r=a.length;s<r;s++)Le[a[s]]?a[s]=Le[a[s]]:a[s]=Ni(a[s]);return function(n){var i="",o;for(o=0;o<r;o++)i+=le(a[o])?a[o].call(n,t):a[o];return i}}function xt(t,a){return t.isValid()?(a=As(a,t.localeData()),ya[a]=ya[a]||Ei(a),ya[a](t)):t.localeData().invalidDate()}function As(t,a){var s=5;function r(n){return a.longDateFormat(n)||n}for(Ct.lastIndex=0;s>=0&&Ct.test(t);)t=t.replace(Ct,r),Ct.lastIndex=0,s-=1;return t}var $i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Fi(t){var a=this._longDateFormat[t],s=this._longDateFormat[t.toUpperCase()];return a||!s?a:(this._longDateFormat[t]=s.match(ma).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var Ii="Invalid date";function Yi(){return this._invalidDate}var Li="%d",Pi=/\d{1,2}/;function Ti(t){return this._ordinal.replace("%d",t)}var ji={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Qi(t,a,s,r){var n=this._relativeTime[s];return le(n)?n(t,a,s,r):n.replace(/%d/i,t)}function Hi(t,a){var s=this._relativeTime[t>0?"future":"past"];return le(s)?s(a):s.replace(/%s/i,a)}var Ds={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function V(t){return typeof t=="string"?Ds[t]||Ds[t.toLowerCase()]:void 0}function ga(t){var a={},s,r;for(r in t)R(t,r)&&(s=V(r),s&&(a[s]=t[r]));return a}var qi={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Ki(t){var a=[],s;for(s in t)R(t,s)&&a.push({unit:s,priority:qi[s]});return a.sort(function(r,n){return r.priority-n.priority}),a}var Ns=/\d/,q=/\d\d/,Es=/\d{3}/,wa=/\d{4}/,Ut=/[+-]?\d{6}/,O=/\d\d?/,$s=/\d\d\d\d?/,Fs=/\d\d\d\d\d\d?/,Bt=/\d{1,3}/,_a=/\d{1,4}/,Ot=/[+-]?\d{1,6}/,Pe=/\d+/,At=/[+-]?\d+/,Wi=/Z|[+-]\d\d:?\d\d/gi,Dt=/Z|[+-]\d\d(?::?\d\d)?/gi,Gi=/[+-]?\d+(\.\d{1,3})?/,et=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Te=/^[1-9]\d?/,ba=/^([1-9]\d|\d)/,Nt;Nt={};function g(t,a,s){Nt[t]=le(a)?a:function(r,n){return r&&s?s:a}}function Vi(t,a){return R(Nt,t)?Nt[t](a._strict,a._locale):new RegExp(zi(t))}function zi(t){return he(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,s,r,n,i){return s||r||n||i}))}function he(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function z(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function M(t){var a=+t,s=0;return a!==0&&isFinite(a)&&(s=z(a)),s}var Sa={};function U(t,a){var s,r=a,n;for(typeof t=="string"&&(t=[t]),fe(a)&&(r=function(i,o){o[a]=M(i)}),n=t.length,s=0;s<n;s++)Sa[t[s]]=r}function tt(t,a){U(t,function(s,r,n,i){n._w=n._w||{},a(s,n._w,n,i)})}function Xi(t,a,s){a!=null&&R(Sa,t)&&Sa[t](a,s._a,s,t)}function Et(t){return t%4===0&&t%100!==0||t%400===0}var P=0,pe=1,oe=2,E=3,ee=4,me=5,Ae=6,Zi=7,Ji=8;w("Y",0,0,function(){var t=this.year();return t<=9999?de(t,4):"+"+t}),w(0,["YY",2],0,function(){return this.year()%100}),w(0,["YYYY",4],0,"year"),w(0,["YYYYY",5],0,"year"),w(0,["YYYYYY",6,!0],0,"year"),g("Y",At),g("YY",O,q),g("YYYY",_a,wa),g("YYYYY",Ot,Ut),g("YYYYYY",Ot,Ut),U(["YYYYY","YYYYYY"],P),U("YYYY",function(t,a){a[P]=t.length===2?y.parseTwoDigitYear(t):M(t)}),U("YY",function(t,a){a[P]=y.parseTwoDigitYear(t)}),U("Y",function(t,a){a[P]=parseInt(t,10)});function at(t){return Et(t)?366:365}y.parseTwoDigitYear=function(t){return M(t)+(M(t)>68?1900:2e3)};var Is=je("FullYear",!0);function el(){return Et(this.year())}function je(t,a){return function(s){return s!=null?(Ys(this,t,s),y.updateOffset(this,a),this):st(this,t)}}function st(t,a){if(!t.isValid())return NaN;var s=t._d,r=t._isUTC;switch(a){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Ys(t,a,s){var r,n,i,o,f;if(!(!t.isValid()||isNaN(s))){switch(r=t._d,n=t._isUTC,a){case"Milliseconds":return void(n?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(n?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(n?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(n?r.setUTCHours(s):r.setHours(s));case"Date":return void(n?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}i=s,o=t.month(),f=t.date(),f=f===29&&o===1&&!Et(i)?28:f,n?r.setUTCFullYear(i,o,f):r.setFullYear(i,o,f)}}function tl(t){return t=V(t),le(this[t])?this[t]():this}function al(t,a){if(typeof t=="object"){t=ga(t);var s=Ki(t),r,n=s.length;for(r=0;r<n;r++)this[s[r].unit](t[s[r].unit])}else if(t=V(t),le(this[t]))return this[t](a);return this}function sl(t,a){return(t%a+a)%a}var N;Array.prototype.indexOf?N=Array.prototype.indexOf:N=function(t){var a;for(a=0;a<this.length;++a)if(this[a]===t)return a;return-1};function Ma(t,a){if(isNaN(t)||isNaN(a))return NaN;var s=sl(a,12);return t+=(a-s)/12,s===1?Et(t)?29:28:31-s%7%2}w("M",["MM",2],"Mo",function(){return this.month()+1}),w("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),w("MMMM",0,0,function(t){return this.localeData().months(this,t)}),g("M",O,Te),g("MM",O,q),g("MMM",function(t,a){return a.monthsShortRegex(t)}),g("MMMM",function(t,a){return a.monthsRegex(t)}),U(["M","MM"],function(t,a){a[pe]=M(t)-1}),U(["MMM","MMMM"],function(t,a,s,r){var n=s._locale.monthsParse(t,r,s._strict);n!=null?a[pe]=n:b(s).invalidMonth=t});var rl="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ls="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ps=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,nl=et,il=et;function ll(t,a){return t?Z(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ps).test(a)?"format":"standalone"][t.month()]:Z(this._months)?this._months:this._months.standalone}function dl(t,a){return t?Z(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ps.test(a)?"format":"standalone"][t.month()]:Z(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ol(t,a,s){var r,n,i,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=ie([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return s?a==="MMM"?(n=N.call(this._shortMonthsParse,o),n!==-1?n:null):(n=N.call(this._longMonthsParse,o),n!==-1?n:null):a==="MMM"?(n=N.call(this._shortMonthsParse,o),n!==-1?n:(n=N.call(this._longMonthsParse,o),n!==-1?n:null)):(n=N.call(this._longMonthsParse,o),n!==-1?n:(n=N.call(this._shortMonthsParse,o),n!==-1?n:null))}function cl(t,a,s){var r,n,i;if(this._monthsParseExact)return ol.call(this,t,a,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=ie([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(i="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),s&&a==="MMMM"&&this._longMonthsParse[r].test(t))return r;if(s&&a==="MMM"&&this._shortMonthsParse[r].test(t))return r;if(!s&&this._monthsParse[r].test(t))return r}}function Ts(t,a){if(!t.isValid())return t;if(typeof a=="string"){if(/^\d+$/.test(a))a=M(a);else if(a=t.localeData().monthsParse(a),!fe(a))return t}var s=a,r=t.date();return r=r<29?r:Math.min(r,Ma(t.year(),s)),t._isUTC?t._d.setUTCMonth(s,r):t._d.setMonth(s,r),t}function js(t){return t!=null?(Ts(this,t),y.updateOffset(this,!0),this):st(this,"Month")}function ul(){return Ma(this.year(),this.month())}function fl(t){return this._monthsParseExact?(R(this,"_monthsRegex")||Qs.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(R(this,"_monthsShortRegex")||(this._monthsShortRegex=nl),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function hl(t){return this._monthsParseExact?(R(this,"_monthsRegex")||Qs.call(this),t?this._monthsStrictRegex:this._monthsRegex):(R(this,"_monthsRegex")||(this._monthsRegex=il),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function Qs(){function t(m,_){return _.length-m.length}var a=[],s=[],r=[],n,i,o,f;for(n=0;n<12;n++)i=ie([2e3,n]),o=he(this.monthsShort(i,"")),f=he(this.months(i,"")),a.push(o),s.push(f),r.push(f),r.push(o);a.sort(t),s.sort(t),r.sort(t),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function pl(t,a,s,r,n,i,o){var f;return t<100&&t>=0?(f=new Date(t+400,a,s,r,n,i,o),isFinite(f.getFullYear())&&f.setFullYear(t)):f=new Date(t,a,s,r,n,i,o),f}function rt(t){var a,s;return t<100&&t>=0?(s=Array.prototype.slice.call(arguments),s[0]=t+400,a=new Date(Date.UTC.apply(null,s)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(t)):a=new Date(Date.UTC.apply(null,arguments)),a}function $t(t,a,s){var r=7+a-s,n=(7+rt(t,0,r).getUTCDay()-a)%7;return-n+r-1}function Hs(t,a,s,r,n){var i=(7+s-r)%7,o=$t(t,r,n),f=1+7*(a-1)+i+o,m,_;return f<=0?(m=t-1,_=at(m)+f):f>at(t)?(m=t+1,_=f-at(t)):(m=t,_=f),{year:m,dayOfYear:_}}function nt(t,a,s){var r=$t(t.year(),a,s),n=Math.floor((t.dayOfYear()-r-1)/7)+1,i,o;return n<1?(o=t.year()-1,i=n+ye(o,a,s)):n>ye(t.year(),a,s)?(i=n-ye(t.year(),a,s),o=t.year()+1):(o=t.year(),i=n),{week:i,year:o}}function ye(t,a,s){var r=$t(t,a,s),n=$t(t+1,a,s);return(at(t)-r+n)/7}w("w",["ww",2],"wo","week"),w("W",["WW",2],"Wo","isoWeek"),g("w",O,Te),g("ww",O,q),g("W",O,Te),g("WW",O,q),tt(["w","ww","W","WW"],function(t,a,s,r){a[r.substr(0,1)]=M(t)});function ml(t){return nt(t,this._week.dow,this._week.doy).week}var yl={dow:0,doy:6};function gl(){return this._week.dow}function wl(){return this._week.doy}function _l(t){var a=this.localeData().week(this);return t==null?a:this.add((t-a)*7,"d")}function bl(t){var a=nt(this,1,4).week;return t==null?a:this.add((t-a)*7,"d")}w("d",0,"do","day"),w("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),w("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),w("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),w("e",0,0,"weekday"),w("E",0,0,"isoWeekday"),g("d",O),g("e",O),g("E",O),g("dd",function(t,a){return a.weekdaysMinRegex(t)}),g("ddd",function(t,a){return a.weekdaysShortRegex(t)}),g("dddd",function(t,a){return a.weekdaysRegex(t)}),tt(["dd","ddd","dddd"],function(t,a,s,r){var n=s._locale.weekdaysParse(t,r,s._strict);n!=null?a.d=n:b(s).invalidWeekday=t}),tt(["d","e","E"],function(t,a,s,r){a[r]=M(t)});function Sl(t,a){return typeof t!="string"?t:isNaN(t)?(t=a.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function Ml(t,a){return typeof t=="string"?a.weekdaysParse(t)%7||7:isNaN(t)?null:t}function va(t,a){return t.slice(a,7).concat(t.slice(0,a))}var vl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),kl="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rl=et,Cl=et,xl=et;function Ul(t,a){var s=Z(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(a)?"format":"standalone"];return t===!0?va(s,this._week.dow):t?s[t.day()]:s}function Bl(t){return t===!0?va(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ol(t){return t===!0?va(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Al(t,a,s){var r,n,i,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=ie([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return s?a==="dddd"?(n=N.call(this._weekdaysParse,o),n!==-1?n:null):a==="ddd"?(n=N.call(this._shortWeekdaysParse,o),n!==-1?n:null):(n=N.call(this._minWeekdaysParse,o),n!==-1?n:null):a==="dddd"?(n=N.call(this._weekdaysParse,o),n!==-1||(n=N.call(this._shortWeekdaysParse,o),n!==-1)?n:(n=N.call(this._minWeekdaysParse,o),n!==-1?n:null)):a==="ddd"?(n=N.call(this._shortWeekdaysParse,o),n!==-1||(n=N.call(this._weekdaysParse,o),n!==-1)?n:(n=N.call(this._minWeekdaysParse,o),n!==-1?n:null)):(n=N.call(this._minWeekdaysParse,o),n!==-1||(n=N.call(this._weekdaysParse,o),n!==-1)?n:(n=N.call(this._shortWeekdaysParse,o),n!==-1?n:null))}function Dl(t,a,s){var r,n,i;if(this._weekdaysParseExact)return Al.call(this,t,a,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(n=ie([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),s&&a==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(s&&a==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(s&&a==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!s&&this._weekdaysParse[r].test(t))return r}}function Nl(t){if(!this.isValid())return t!=null?this:NaN;var a=st(this,"Day");return t!=null?(t=Sl(t,this.localeData()),this.add(t-a,"d")):a}function El(t){if(!this.isValid())return t!=null?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return t==null?a:this.add(t-a,"d")}function $l(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var a=Ml(t,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function Fl(t){return this._weekdaysParseExact?(R(this,"_weekdaysRegex")||ka.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(R(this,"_weekdaysRegex")||(this._weekdaysRegex=Rl),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Il(t){return this._weekdaysParseExact?(R(this,"_weekdaysRegex")||ka.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(R(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Cl),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Yl(t){return this._weekdaysParseExact?(R(this,"_weekdaysRegex")||ka.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(R(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=xl),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ka(){function t(B,Y){return Y.length-B.length}var a=[],s=[],r=[],n=[],i,o,f,m,_;for(i=0;i<7;i++)o=ie([2e3,1]).day(i),f=he(this.weekdaysMin(o,"")),m=he(this.weekdaysShort(o,"")),_=he(this.weekdays(o,"")),a.push(f),s.push(m),r.push(_),n.push(f),n.push(m),n.push(_);a.sort(t),s.sort(t),r.sort(t),n.sort(t),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ra(){return this.hours()%12||12}function Ll(){return this.hours()||24}w("H",["HH",2],0,"hour"),w("h",["hh",2],0,Ra),w("k",["kk",2],0,Ll),w("hmm",0,0,function(){return""+Ra.apply(this)+de(this.minutes(),2)}),w("hmmss",0,0,function(){return""+Ra.apply(this)+de(this.minutes(),2)+de(this.seconds(),2)}),w("Hmm",0,0,function(){return""+this.hours()+de(this.minutes(),2)}),w("Hmmss",0,0,function(){return""+this.hours()+de(this.minutes(),2)+de(this.seconds(),2)});function Ks(t,a){w(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}Ks("a",!0),Ks("A",!1);function Ws(t,a){return a._meridiemParse}g("a",Ws),g("A",Ws),g("H",O,ba),g("h",O,Te),g("k",O,Te),g("HH",O,q),g("hh",O,q),g("kk",O,q),g("hmm",$s),g("hmmss",Fs),g("Hmm",$s),g("Hmmss",Fs),U(["H","HH"],E),U(["k","kk"],function(t,a,s){var r=M(t);a[E]=r===24?0:r}),U(["a","A"],function(t,a,s){s._isPm=s._locale.isPM(t),s._meridiem=t}),U(["h","hh"],function(t,a,s){a[E]=M(t),b(s).bigHour=!0}),U("hmm",function(t,a,s){var r=t.length-2;a[E]=M(t.substr(0,r)),a[ee]=M(t.substr(r)),b(s).bigHour=!0}),U("hmmss",function(t,a,s){var r=t.length-4,n=t.length-2;a[E]=M(t.substr(0,r)),a[ee]=M(t.substr(r,2)),a[me]=M(t.substr(n)),b(s).bigHour=!0}),U("Hmm",function(t,a,s){var r=t.length-2;a[E]=M(t.substr(0,r)),a[ee]=M(t.substr(r))}),U("Hmmss",function(t,a,s){var r=t.length-4,n=t.length-2;a[E]=M(t.substr(0,r)),a[ee]=M(t.substr(r,2)),a[me]=M(t.substr(n))});function Pl(t){return(t+"").toLowerCase().charAt(0)==="p"}var Tl=/[ap]\.?m?\.?/i,jl=je("Hours",!0);function Ql(t,a,s){return t>11?s?"pm":"PM":s?"am":"AM"}var Gs={calendar:Ai,longDateFormat:$i,invalidDate:Ii,ordinal:Li,dayOfMonthOrdinalParse:Pi,relativeTime:ji,months:rl,monthsShort:Ls,week:yl,weekdays:vl,weekdaysMin:kl,weekdaysShort:qs,meridiemParse:Tl},D={},it={},lt;function Hl(t,a){var s,r=Math.min(t.length,a.length);for(s=0;s<r;s+=1)if(t[s]!==a[s])return s;return r}function Vs(t){return t&&t.toLowerCase().replace("_","-")}function ql(t){for(var a=0,s,r,n,i;a<t.length;){for(i=Vs(t[a]).split("-"),s=i.length,r=Vs(t[a+1]),r=r?r.split("-"):null;s>0;){if(n=Ft(i.slice(0,s).join("-")),n)return n;if(r&&r.length>=s&&Hl(i,r)>=s-1)break;s--}a++}return lt}function Kl(t){return!!(t&&t.match("^[^/\\\\]*$"))}function Ft(t){var a=null,s;if(D[t]===void 0&&typeof module<"u"&&module&&module.exports&&Kl(t))try{a=lt._abbr,s=require,s("./locale/"+t),Re(a)}catch{D[t]=null}return D[t]}function Re(t,a){var s;return t&&(Q(a)?s=ge(t):s=Ca(t,a),s?lt=s:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),lt._abbr}function Ca(t,a){if(a!==null){var s,r=Gs;if(a.abbr=t,D[t]!=null)Os("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=D[t]._config;else if(a.parentLocale!=null)if(D[a.parentLocale]!=null)r=D[a.parentLocale]._config;else if(s=Ft(a.parentLocale),s!=null)r=s._config;else return it[a.parentLocale]||(it[a.parentLocale]=[]),it[a.parentLocale].push({name:t,config:a}),null;return D[t]=new ha(fa(r,a)),it[t]&&it[t].forEach(function(n){Ca(n.name,n.config)}),Re(t),D[t]}else return delete D[t],null}function Wl(t,a){if(a!=null){var s,r,n=Gs;D[t]!=null&&D[t].parentLocale!=null?D[t].set(fa(D[t]._config,a)):(r=Ft(t),r!=null&&(n=r._config),a=fa(n,a),r==null&&(a.abbr=t),s=new ha(a),s.parentLocale=D[t],D[t]=s),Re(t)}else D[t]!=null&&(D[t].parentLocale!=null?(D[t]=D[t].parentLocale,t===Re()&&Re(t)):D[t]!=null&&delete D[t]);return D[t]}function ge(t){var a;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return lt;if(!Z(t)){if(a=Ft(t),a)return a;t=[t]}return ql(t)}function Gl(){return pa(D)}function xa(t){var a,s=t._a;return s&&b(t).overflow===-2&&(a=s[pe]<0||s[pe]>11?pe:s[oe]<1||s[oe]>Ma(s[P],s[pe])?oe:s[E]<0||s[E]>24||s[E]===24&&(s[ee]!==0||s[me]!==0||s[Ae]!==0)?E:s[ee]<0||s[ee]>59?ee:s[me]<0||s[me]>59?me:s[Ae]<0||s[Ae]>999?Ae:-1,b(t)._overflowDayOfYear&&(a<P||a>oe)&&(a=oe),b(t)._overflowWeeks&&a===-1&&(a=Zi),b(t)._overflowWeekday&&a===-1&&(a=Ji),b(t).overflow=a),t}var Vl=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,zl=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xl=/Z|[+-]\d\d(?::?\d\d)?/,It=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ua=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Zl=/^\/?Date\((-?\d+)/i,Jl=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ed={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function zs(t){var a,s,r=t._i,n=Vl.exec(r)||zl.exec(r),i,o,f,m,_=It.length,B=Ua.length;if(n){for(b(t).iso=!0,a=0,s=_;a<s;a++)if(It[a][1].exec(n[1])){o=It[a][0],i=It[a][2]!==!1;break}if(o==null){t._isValid=!1;return}if(n[3]){for(a=0,s=B;a<s;a++)if(Ua[a][1].exec(n[3])){f=(n[2]||" ")+Ua[a][0];break}if(f==null){t._isValid=!1;return}}if(!i&&f!=null){t._isValid=!1;return}if(n[4])if(Xl.exec(n[4]))m="Z";else{t._isValid=!1;return}t._f=o+(f||"")+(m||""),Oa(t)}else t._isValid=!1}function td(t,a,s,r,n,i){var o=[ad(t),Ls.indexOf(a),parseInt(s,10),parseInt(r,10),parseInt(n,10)];return i&&o.push(parseInt(i,10)),o}function ad(t){var a=parseInt(t,10);return a<=49?2e3+a:a<=999?1900+a:a}function sd(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function rd(t,a,s){if(t){var r=qs.indexOf(t),n=new Date(a[0],a[1],a[2]).getDay();if(r!==n)return b(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function nd(t,a,s){if(t)return ed[t];if(a)return 0;var r=parseInt(s,10),n=r%100,i=(r-n)/100;return i*60+n}function Xs(t){var a=Jl.exec(sd(t._i)),s;if(a){if(s=td(a[4],a[3],a[2],a[5],a[6],a[7]),!rd(a[1],s,t))return;t._a=s,t._tzm=nd(a[8],a[9],a[10]),t._d=rt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),b(t).rfc2822=!0}else t._isValid=!1}function id(t){var a=Zl.exec(t._i);if(a!==null){t._d=new Date(+a[1]);return}if(zs(t),t._isValid===!1)delete t._isValid;else return;if(Xs(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:y.createFromInputFallback(t)}y.createFromInputFallback=G("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function Qe(t,a,s){return t??a??s}function ld(t){var a=new Date(y.now());return t._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function Ba(t){var a,s,r=[],n,i,o;if(!t._d){for(n=ld(t),t._w&&t._a[oe]==null&&t._a[pe]==null&&dd(t),t._dayOfYear!=null&&(o=Qe(t._a[P],n[P]),(t._dayOfYear>at(o)||t._dayOfYear===0)&&(b(t)._overflowDayOfYear=!0),s=rt(o,0,t._dayOfYear),t._a[pe]=s.getUTCMonth(),t._a[oe]=s.getUTCDate()),a=0;a<3&&t._a[a]==null;++a)t._a[a]=r[a]=n[a];for(;a<7;a++)t._a[a]=r[a]=t._a[a]==null?a===2?1:0:t._a[a];t._a[E]===24&&t._a[ee]===0&&t._a[me]===0&&t._a[Ae]===0&&(t._nextDay=!0,t._a[E]=0),t._d=(t._useUTC?rt:pl).apply(null,r),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[E]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(b(t).weekdayMismatch=!0)}}function dd(t){var a,s,r,n,i,o,f,m,_;a=t._w,a.GG!=null||a.W!=null||a.E!=null?(i=1,o=4,s=Qe(a.GG,t._a[P],nt(A(),1,4).year),r=Qe(a.W,1),n=Qe(a.E,1),(n<1||n>7)&&(m=!0)):(i=t._locale._week.dow,o=t._locale._week.doy,_=nt(A(),i,o),s=Qe(a.gg,t._a[P],_.year),r=Qe(a.w,_.week),a.d!=null?(n=a.d,(n<0||n>6)&&(m=!0)):a.e!=null?(n=a.e+i,(a.e<0||a.e>6)&&(m=!0)):n=i),r<1||r>ye(s,i,o)?b(t)._overflowWeeks=!0:m!=null?b(t)._overflowWeekday=!0:(f=Hs(s,r,n,i,o),t._a[P]=f.year,t._dayOfYear=f.dayOfYear)}y.ISO_8601=function(){},y.RFC_2822=function(){};function Oa(t){if(t._f===y.ISO_8601){zs(t);return}if(t._f===y.RFC_2822){Xs(t);return}t._a=[],b(t).empty=!0;var a=""+t._i,s,r,n,i,o,f=a.length,m=0,_,B;for(n=As(t._f,t._locale).match(ma)||[],B=n.length,s=0;s<B;s++)i=n[s],r=(a.match(Vi(i,t))||[])[0],r&&(o=a.substr(0,a.indexOf(r)),o.length>0&&b(t).unusedInput.push(o),a=a.slice(a.indexOf(r)+r.length),m+=r.length),Le[i]?(r?b(t).empty=!1:b(t).unusedTokens.push(i),Xi(i,r,t)):t._strict&&!r&&b(t).unusedTokens.push(i);b(t).charsLeftOver=f-m,a.length>0&&b(t).unusedInput.push(a),t._a[E]<=12&&b(t).bigHour===!0&&t._a[E]>0&&(b(t).bigHour=void 0),b(t).parsedDateParts=t._a.slice(0),b(t).meridiem=t._meridiem,t._a[E]=od(t._locale,t._a[E],t._meridiem),_=b(t).era,_!==null&&(t._a[P]=t._locale.erasConvertYear(_,t._a[P])),Ba(t),xa(t)}function od(t,a,s){var r;return s==null?a:t.meridiemHour!=null?t.meridiemHour(a,s):(t.isPM!=null&&(r=t.isPM(s),r&&a<12&&(a+=12),!r&&a===12&&(a=0)),a)}function cd(t){var a,s,r,n,i,o,f=!1,m=t._f.length;if(m===0){b(t).invalidFormat=!0,t._d=new Date(NaN);return}for(n=0;n<m;n++)i=0,o=!1,a=ua({},t),t._useUTC!=null&&(a._useUTC=t._useUTC),a._f=t._f[n],Oa(a),oa(a)&&(o=!0),i+=b(a).charsLeftOver,i+=b(a).unusedTokens.length*10,b(a).score=i,f?i<r&&(r=i,s=a):(r==null||i<r||o)&&(r=i,s=a,o&&(f=!0));ke(t,s||a)}function ud(t){if(!t._d){var a=ga(t._i),s=a.day===void 0?a.date:a.day;t._a=Cs([a.year,a.month,s,a.hour,a.minute,a.second,a.millisecond],function(r){return r&&parseInt(r,10)}),Ba(t)}}function fd(t){var a=new Je(xa(Zs(t)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Zs(t){var a=t._i,s=t._f;return t._locale=t._locale||ge(t._l),a===null||s===void 0&&a===""?Rt({nullInput:!0}):(typeof a=="string"&&(t._i=a=t._locale.preparse(a)),J(a)?new Je(xa(a)):(Ze(a)?t._d=a:Z(s)?cd(t):s?Oa(t):hd(t),oa(t)||(t._d=null),t))}function hd(t){var a=t._i;Q(a)?t._d=new Date(y.now()):Ze(a)?t._d=new Date(a.valueOf()):typeof a=="string"?id(t):Z(a)?(t._a=Cs(a.slice(0),function(s){return parseInt(s,10)}),Ba(t)):Oe(a)?ud(t):fe(a)?t._d=new Date(a):y.createFromInputFallback(t)}function Js(t,a,s,r,n){var i={};return(a===!0||a===!1)&&(r=a,a=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(Oe(t)&&la(t)||Z(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=n,i._l=s,i._i=t,i._f=a,i._strict=r,fd(i)}function A(t,a,s,r){return Js(t,a,s,r,!1)}var pd=G("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=A.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:Rt()}),md=G("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=A.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:Rt()});function er(t,a){var s,r;if(a.length===1&&Z(a[0])&&(a=a[0]),!a.length)return A();for(s=a[0],r=1;r<a.length;++r)(!a[r].isValid()||a[r][t](s))&&(s=a[r]);return s}function yd(){var t=[].slice.call(arguments,0);return er("isBefore",t)}function gd(){var t=[].slice.call(arguments,0);return er("isAfter",t)}var wd=function(){return Date.now?Date.now():+new Date},dt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function _d(t){var a,s=!1,r,n=dt.length;for(a in t)if(R(t,a)&&!(N.call(dt,a)!==-1&&(t[a]==null||!isNaN(t[a]))))return!1;for(r=0;r<n;++r)if(t[dt[r]]){if(s)return!1;parseFloat(t[dt[r]])!==M(t[dt[r]])&&(s=!0)}return!0}function bd(){return this._isValid}function Sd(){return te(NaN)}function Yt(t){var a=ga(t),s=a.year||0,r=a.quarter||0,n=a.month||0,i=a.week||a.isoWeek||0,o=a.day||0,f=a.hour||0,m=a.minute||0,_=a.second||0,B=a.millisecond||0;this._isValid=_d(a),this._milliseconds=+B+_*1e3+m*6e4+f*1e3*60*60,this._days=+o+i*7,this._months=+n+r*3+s*12,this._data={},this._locale=ge(),this._bubble()}function Lt(t){return t instanceof Yt}function Aa(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function Md(t,a,s){var r=Math.min(t.length,a.length),n=Math.abs(t.length-a.length),i=0,o;for(o=0;o<r;o++)M(t[o])!==M(a[o])&&i++;return i+n}function tr(t,a){w(t,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+de(~~(s/60),2)+a+de(~~s%60,2)})}tr("Z",":"),tr("ZZ",""),g("Z",Dt),g("ZZ",Dt),U(["Z","ZZ"],function(t,a,s){s._useUTC=!0,s._tzm=Da(Dt,t)});var vd=/([\+\-]|\d\d)/gi;function Da(t,a){var s=(a||"").match(t),r,n,i;return s===null?null:(r=s[s.length-1]||[],n=(r+"").match(vd)||["-",0,0],i=+(n[1]*60)+M(n[2]),i===0?0:n[0]==="+"?i:-i)}function Na(t,a){var s,r;return a._isUTC?(s=a.clone(),r=(J(t)||Ze(t)?t.valueOf():A(t).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),y.updateOffset(s,!1),s):A(t).local()}function Ea(t){return-Math.round(t._d.getTimezoneOffset())}y.updateOffset=function(){};function kd(t,a,s){var r=this._offset||0,n;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=Da(Dt,t),t===null)return this}else Math.abs(t)<16&&!s&&(t=t*60);return!this._isUTC&&a&&(n=Ea(this)),this._offset=t,this._isUTC=!0,n!=null&&this.add(n,"m"),r!==t&&(!a||this._changeInProgress?nr(this,te(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Ea(this)}function Rd(t,a){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,a),this):-this.utcOffset()}function Cd(t){return this.utcOffset(0,t)}function xd(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ea(this),"m")),this}function Ud(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=Da(Wi,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Bd(t){return this.isValid()?(t=t?A(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function Od(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ad(){if(!Q(this._isDSTShifted))return this._isDSTShifted;var t={},a;return ua(t,this),t=Zs(t),t._a?(a=t._isUTC?ie(t._a):A(t._a),this._isDSTShifted=this.isValid()&&Md(t._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Dd(){return this.isValid()?!this._isUTC:!1}function Nd(){return this.isValid()?this._isUTC:!1}function ar(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ed=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,$d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function te(t,a){var s=t,r=null,n,i,o;return Lt(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:fe(t)||!isNaN(+t)?(s={},a?s[a]=+t:s.milliseconds=+t):(r=Ed.exec(t))?(n=r[1]==="-"?-1:1,s={y:0,d:M(r[oe])*n,h:M(r[E])*n,m:M(r[ee])*n,s:M(r[me])*n,ms:M(Aa(r[Ae]*1e3))*n}):(r=$d.exec(t))?(n=r[1]==="-"?-1:1,s={y:De(r[2],n),M:De(r[3],n),w:De(r[4],n),d:De(r[5],n),h:De(r[6],n),m:De(r[7],n),s:De(r[8],n)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(o=Fd(A(s.from),A(s.to)),s={},s.ms=o.milliseconds,s.M=o.months),i=new Yt(s),Lt(t)&&R(t,"_locale")&&(i._locale=t._locale),Lt(t)&&R(t,"_isValid")&&(i._isValid=t._isValid),i}te.fn=Yt.prototype,te.invalid=Sd;function De(t,a){var s=t&&parseFloat(t.replace(",","."));return(isNaN(s)?0:s)*a}function sr(t,a){var s={};return s.months=a.month()-t.month()+(a.year()-t.year())*12,t.clone().add(s.months,"M").isAfter(a)&&--s.months,s.milliseconds=+a-+t.clone().add(s.months,"M"),s}function Fd(t,a){var s;return t.isValid()&&a.isValid()?(a=Na(a,t),t.isBefore(a)?s=sr(t,a):(s=sr(a,t),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function rr(t,a){return function(s,r){var n,i;return r!==null&&!isNaN(+r)&&(Os(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=s,s=r,r=i),n=te(s,r),nr(this,n,t),this}}function nr(t,a,s,r){var n=a._milliseconds,i=Aa(a._days),o=Aa(a._months);t.isValid()&&(r=r??!0,o&&Ts(t,st(t,"Month")+o*s),i&&Ys(t,"Date",st(t,"Date")+i*s),n&&t._d.setTime(t._d.valueOf()+n*s),r&&y.updateOffset(t,i||o))}var Id=rr(1,"add"),Yd=rr(-1,"subtract");function ir(t){return typeof t=="string"||t instanceof String}function Ld(t){return J(t)||Ze(t)||ir(t)||fe(t)||Td(t)||Pd(t)||t===null||t===void 0}function Pd(t){var a=Oe(t)&&!la(t),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,i,o=r.length;for(n=0;n<o;n+=1)i=r[n],s=s||R(t,i);return a&&s}function Td(t){var a=Z(t),s=!1;return a&&(s=t.filter(function(r){return!fe(r)&&ir(t)}).length===0),a&&s}function jd(t){var a=Oe(t)&&!la(t),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,i;for(n=0;n<r.length;n+=1)i=r[n],s=s||R(t,i);return a&&s}function Qd(t,a){var s=t.diff(a,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function Hd(t,a){arguments.length===1&&(arguments[0]?Ld(arguments[0])?(t=arguments[0],a=void 0):jd(arguments[0])&&(a=arguments[0],t=void 0):(t=void 0,a=void 0));var s=t||A(),r=Na(s,this).startOf("day"),n=y.calendarFormat(this,r)||"sameElse",i=a&&(le(a[n])?a[n].call(this,s):a[n]);return this.format(i||this.localeData().calendar(n,this,A(s)))}function qd(){return new Je(this)}function Kd(t,a){var s=J(t)?t:A(t);return this.isValid()&&s.isValid()?(a=V(a)||"millisecond",a==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(a).valueOf()):!1}function Wd(t,a){var s=J(t)?t:A(t);return this.isValid()&&s.isValid()?(a=V(a)||"millisecond",a==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(a).valueOf()<s.valueOf()):!1}function Gd(t,a,s,r){var n=J(t)?t:A(t),i=J(a)?a:A(a);return this.isValid()&&n.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(n,s):!this.isBefore(n,s))&&(r[1]===")"?this.isBefore(i,s):!this.isAfter(i,s))):!1}function Vd(t,a){var s=J(t)?t:A(t),r;return this.isValid()&&s.isValid()?(a=V(a)||"millisecond",a==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(a).valueOf()<=r&&r<=this.clone().endOf(a).valueOf())):!1}function zd(t,a){return this.isSame(t,a)||this.isAfter(t,a)}function Xd(t,a){return this.isSame(t,a)||this.isBefore(t,a)}function Zd(t,a,s){var r,n,i;if(!this.isValid())return NaN;if(r=Na(t,this),!r.isValid())return NaN;switch(n=(r.utcOffset()-this.utcOffset())*6e4,a=V(a),a){case"year":i=Pt(this,r)/12;break;case"month":i=Pt(this,r);break;case"quarter":i=Pt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-n)/864e5;break;case"week":i=(this-r-n)/6048e5;break;default:i=this-r}return s?i:z(i)}function Pt(t,a){if(t.date()<a.date())return-Pt(a,t);var s=(a.year()-t.year())*12+(a.month()-t.month()),r=t.clone().add(s,"months"),n,i;return a-r<0?(n=t.clone().add(s-1,"months"),i=(a-r)/(r-n)):(n=t.clone().add(s+1,"months"),i=(a-r)/(n-r)),-(s+i)||0}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Jd(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function eo(t){if(!this.isValid())return null;var a=t!==!0,s=a?this.clone().utc():this;return s.year()<0||s.year()>9999?xt(s,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):le(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",xt(s,"Z")):xt(s,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function to(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",a="",s,r,n,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",a="Z"),s="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=a+'[")]',this.format(s+r+n+i)}function ao(t){t||(t=this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var a=xt(this,t);return this.localeData().postformat(a)}function so(t,a){return this.isValid()&&(J(t)&&t.isValid()||A(t).isValid())?te({to:this,from:t}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function ro(t){return this.from(A(),t)}function no(t,a){return this.isValid()&&(J(t)&&t.isValid()||A(t).isValid())?te({from:this,to:t}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function io(t){return this.to(A(),t)}function lr(t){var a;return t===void 0?this._locale._abbr:(a=ge(t),a!=null&&(this._locale=a),this)}var dr=G("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function or(){return this._locale}var Tt=1e3,He=60*Tt,jt=60*He,cr=(365*400+97)*24*jt;function qe(t,a){return(t%a+a)%a}function ur(t,a,s){return t<100&&t>=0?new Date(t+400,a,s)-cr:new Date(t,a,s).valueOf()}function fr(t,a,s){return t<100&&t>=0?Date.UTC(t+400,a,s)-cr:Date.UTC(t,a,s)}function lo(t){var a,s;if(t=V(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?fr:ur,t){case"year":a=s(this.year(),0,1);break;case"quarter":a=s(this.year(),this.month()-this.month()%3,1);break;case"month":a=s(this.year(),this.month(),1);break;case"week":a=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=s(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=qe(a+(this._isUTC?0:this.utcOffset()*He),jt);break;case"minute":a=this._d.valueOf(),a-=qe(a,He);break;case"second":a=this._d.valueOf(),a-=qe(a,Tt);break}return this._d.setTime(a),y.updateOffset(this,!0),this}function oo(t){var a,s;if(t=V(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?fr:ur,t){case"year":a=s(this.year()+1,0,1)-1;break;case"quarter":a=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=s(this.year(),this.month()+1,1)-1;break;case"week":a=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=jt-qe(a+(this._isUTC?0:this.utcOffset()*He),jt)-1;break;case"minute":a=this._d.valueOf(),a+=He-qe(a,He)-1;break;case"second":a=this._d.valueOf(),a+=Tt-qe(a,Tt)-1;break}return this._d.setTime(a),y.updateOffset(this,!0),this}function co(){return this._d.valueOf()-(this._offset||0)*6e4}function uo(){return Math.floor(this.valueOf()/1e3)}function fo(){return new Date(this.valueOf())}function ho(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function po(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function mo(){return this.isValid()?this.toISOString():null}function yo(){return oa(this)}function go(){return ke({},b(this))}function wo(){return b(this).overflow}function _o(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}w("N",0,0,"eraAbbr"),w("NN",0,0,"eraAbbr"),w("NNN",0,0,"eraAbbr"),w("NNNN",0,0,"eraName"),w("NNNNN",0,0,"eraNarrow"),w("y",["y",1],"yo","eraYear"),w("y",["yy",2],0,"eraYear"),w("y",["yyy",3],0,"eraYear"),w("y",["yyyy",4],0,"eraYear"),g("N",$a),g("NN",$a),g("NNN",$a),g("NNNN",Oo),g("NNNNN",Ao),U(["N","NN","NNN","NNNN","NNNNN"],function(t,a,s,r){var n=s._locale.erasParse(t,r,s._strict);n?b(s).era=n:b(s).invalidEra=t}),g("y",Pe),g("yy",Pe),g("yyy",Pe),g("yyyy",Pe),g("yo",Do),U(["y","yy","yyy","yyyy"],P),U(["yo"],function(t,a,s,r){var n;s._locale._eraYearOrdinalRegex&&(n=t.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?a[P]=s._locale.eraYearOrdinalParse(t,n):a[P]=parseInt(t,10)});function bo(t,a){var s,r,n,i=this._eras||ge("en")._eras;for(s=0,r=i.length;s<r;++s){switch(typeof i[s].since){case"string":n=y(i[s].since).startOf("day"),i[s].since=n.valueOf();break}switch(typeof i[s].until){case"undefined":i[s].until=1/0;break;case"string":n=y(i[s].until).startOf("day").valueOf(),i[s].until=n.valueOf();break}}return i}function So(t,a,s){var r,n,i=this.eras(),o,f,m;for(t=t.toUpperCase(),r=0,n=i.length;r<n;++r)if(o=i[r].name.toUpperCase(),f=i[r].abbr.toUpperCase(),m=i[r].narrow.toUpperCase(),s)switch(a){case"N":case"NN":case"NNN":if(f===t)return i[r];break;case"NNNN":if(o===t)return i[r];break;case"NNNNN":if(m===t)return i[r];break}else if([o,f,m].indexOf(t)>=0)return i[r]}function Mo(t,a){var s=t.since<=t.until?1:-1;return a===void 0?y(t.since).year():y(t.since).year()+(a-t.offset)*s}function vo(){var t,a,s,r=this.localeData().eras();for(t=0,a=r.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until||r[t].until<=s&&s<=r[t].since)return r[t].name;return""}function ko(){var t,a,s,r=this.localeData().eras();for(t=0,a=r.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until||r[t].until<=s&&s<=r[t].since)return r[t].narrow;return""}function Ro(){var t,a,s,r=this.localeData().eras();for(t=0,a=r.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until||r[t].until<=s&&s<=r[t].since)return r[t].abbr;return""}function Co(){var t,a,s,r,n=this.localeData().eras();for(t=0,a=n.length;t<a;++t)if(s=n[t].since<=n[t].until?1:-1,r=this.clone().startOf("day").valueOf(),n[t].since<=r&&r<=n[t].until||n[t].until<=r&&r<=n[t].since)return(this.year()-y(n[t].since).year())*s+n[t].offset;return this.year()}function xo(t){return R(this,"_erasNameRegex")||Fa.call(this),t?this._erasNameRegex:this._erasRegex}function Uo(t){return R(this,"_erasAbbrRegex")||Fa.call(this),t?this._erasAbbrRegex:this._erasRegex}function Bo(t){return R(this,"_erasNarrowRegex")||Fa.call(this),t?this._erasNarrowRegex:this._erasRegex}function $a(t,a){return a.erasAbbrRegex(t)}function Oo(t,a){return a.erasNameRegex(t)}function Ao(t,a){return a.erasNarrowRegex(t)}function Do(t,a){return a._eraYearOrdinalRegex||Pe}function Fa(){var t=[],a=[],s=[],r=[],n,i,o,f,m,_=this.eras();for(n=0,i=_.length;n<i;++n)o=he(_[n].name),f=he(_[n].abbr),m=he(_[n].narrow),a.push(o),t.push(f),s.push(m),r.push(o),r.push(f),r.push(m);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}w(0,["gg",2],0,function(){return this.weekYear()%100}),w(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Qt(t,a){w(0,[t,t.length],0,a)}Qt("gggg","weekYear"),Qt("ggggg","weekYear"),Qt("GGGG","isoWeekYear"),Qt("GGGGG","isoWeekYear"),g("G",At),g("g",At),g("GG",O,q),g("gg",O,q),g("GGGG",_a,wa),g("gggg",_a,wa),g("GGGGG",Ot,Ut),g("ggggg",Ot,Ut),tt(["gggg","ggggg","GGGG","GGGGG"],function(t,a,s,r){a[r.substr(0,2)]=M(t)}),tt(["gg","GG"],function(t,a,s,r){a[r]=y.parseTwoDigitYear(t)});function No(t){return hr.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Eo(t){return hr.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function $o(){return ye(this.year(),1,4)}function Fo(){return ye(this.isoWeekYear(),1,4)}function Io(){var t=this.localeData()._week;return ye(this.year(),t.dow,t.doy)}function Yo(){var t=this.localeData()._week;return ye(this.weekYear(),t.dow,t.doy)}function hr(t,a,s,r,n){var i;return t==null?nt(this,r,n).year:(i=ye(t,r,n),a>i&&(a=i),Lo.call(this,t,a,s,r,n))}function Lo(t,a,s,r,n){var i=Hs(t,a,s,r,n),o=rt(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}w("Q",0,"Qo","quarter"),g("Q",Ns),U("Q",function(t,a){a[pe]=(M(t)-1)*3});function Po(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}w("D",["DD",2],"Do","date"),g("D",O,Te),g("DD",O,q),g("Do",function(t,a){return t?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient}),U(["D","DD"],oe),U("Do",function(t,a){a[oe]=M(t.match(O)[0])});var pr=je("Date",!0);w("DDD",["DDDD",3],"DDDo","dayOfYear"),g("DDD",Bt),g("DDDD",Es),U(["DDD","DDDD"],function(t,a,s){s._dayOfYear=M(t)});function To(t){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?a:this.add(t-a,"d")}w("m",["mm",2],0,"minute"),g("m",O,ba),g("mm",O,q),U(["m","mm"],ee);var jo=je("Minutes",!1);w("s",["ss",2],0,"second"),g("s",O,ba),g("ss",O,q),U(["s","ss"],me);var Qo=je("Seconds",!1);w("S",0,0,function(){return~~(this.millisecond()/100)}),w(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),w(0,["SSS",3],0,"millisecond"),w(0,["SSSS",4],0,function(){return this.millisecond()*10}),w(0,["SSSSS",5],0,function(){return this.millisecond()*100}),w(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),w(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),w(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),w(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),g("S",Bt,Ns),g("SS",Bt,q),g("SSS",Bt,Es);var Ce,mr;for(Ce="SSSS";Ce.length<=9;Ce+="S")g(Ce,Pe);function Ho(t,a){a[Ae]=M(("0."+t)*1e3)}for(Ce="S";Ce.length<=9;Ce+="S")U(Ce,Ho);mr=je("Milliseconds",!1),w("z",0,0,"zoneAbbr"),w("zz",0,0,"zoneName");function qo(){return this._isUTC?"UTC":""}function Ko(){return this._isUTC?"Coordinated Universal Time":""}var p=Je.prototype;p.add=Id,p.calendar=Hd,p.clone=qd,p.diff=Zd,p.endOf=oo,p.format=ao,p.from=so,p.fromNow=ro,p.to=no,p.toNow=io,p.get=tl,p.invalidAt=wo,p.isAfter=Kd,p.isBefore=Wd,p.isBetween=Gd,p.isSame=Vd,p.isSameOrAfter=zd,p.isSameOrBefore=Xd,p.isValid=yo,p.lang=dr,p.locale=lr,p.localeData=or,p.max=md,p.min=pd,p.parsingFlags=go,p.set=al,p.startOf=lo,p.subtract=Yd,p.toArray=ho,p.toObject=po,p.toDate=fo,p.toISOString=eo,p.inspect=to,typeof Symbol<"u"&&Symbol.for!=null&&(p[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),p.toJSON=mo,p.toString=Jd,p.unix=uo,p.valueOf=co,p.creationData=_o,p.eraName=vo,p.eraNarrow=ko,p.eraAbbr=Ro,p.eraYear=Co,p.year=Is,p.isLeapYear=el,p.weekYear=No,p.isoWeekYear=Eo,p.quarter=p.quarters=Po,p.month=js,p.daysInMonth=ul,p.week=p.weeks=_l,p.isoWeek=p.isoWeeks=bl,p.weeksInYear=Io,p.weeksInWeekYear=Yo,p.isoWeeksInYear=$o,p.isoWeeksInISOWeekYear=Fo,p.date=pr,p.day=p.days=Nl,p.weekday=El,p.isoWeekday=$l,p.dayOfYear=To,p.hour=p.hours=jl,p.minute=p.minutes=jo,p.second=p.seconds=Qo,p.millisecond=p.milliseconds=mr,p.utcOffset=kd,p.utc=Cd,p.local=xd,p.parseZone=Ud,p.hasAlignedHourOffset=Bd,p.isDST=Od,p.isLocal=Dd,p.isUtcOffset=Nd,p.isUtc=ar,p.isUTC=ar,p.zoneAbbr=qo,p.zoneName=Ko,p.dates=G("dates accessor is deprecated. Use date instead.",pr),p.months=G("months accessor is deprecated. Use month instead",js),p.years=G("years accessor is deprecated. Use year instead",Is),p.zone=G("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Rd),p.isDSTShifted=G("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ad);function Wo(t){return A(t*1e3)}function Go(){return A.apply(null,arguments).parseZone()}function yr(t){return t}var C=ha.prototype;C.calendar=Di,C.longDateFormat=Fi,C.invalidDate=Yi,C.ordinal=Ti,C.preparse=yr,C.postformat=yr,C.relativeTime=Qi,C.pastFuture=Hi,C.set=Oi,C.eras=bo,C.erasParse=So,C.erasConvertYear=Mo,C.erasAbbrRegex=Uo,C.erasNameRegex=xo,C.erasNarrowRegex=Bo,C.months=ll,C.monthsShort=dl,C.monthsParse=cl,C.monthsRegex=hl,C.monthsShortRegex=fl,C.week=ml,C.firstDayOfYear=wl,C.firstDayOfWeek=gl,C.weekdays=Ul,C.weekdaysMin=Ol,C.weekdaysShort=Bl,C.weekdaysParse=Dl,C.weekdaysRegex=Fl,C.weekdaysShortRegex=Il,C.weekdaysMinRegex=Yl,C.isPM=Pl,C.meridiem=Ql;function Ht(t,a,s,r){var n=ge(),i=ie().set(r,a);return n[s](i,t)}function gr(t,a,s){if(fe(t)&&(a=t,t=void 0),t=t||"",a!=null)return Ht(t,a,s,"month");var r,n=[];for(r=0;r<12;r++)n[r]=Ht(t,r,s,"month");return n}function Ia(t,a,s,r){typeof t=="boolean"?(fe(a)&&(s=a,a=void 0),a=a||""):(a=t,s=a,t=!1,fe(a)&&(s=a,a=void 0),a=a||"");var n=ge(),i=t?n._week.dow:0,o,f=[];if(s!=null)return Ht(a,(s+i)%7,r,"day");for(o=0;o<7;o++)f[o]=Ht(a,(o+i)%7,r,"day");return f}function Vo(t,a){return gr(t,a,"months")}function zo(t,a){return gr(t,a,"monthsShort")}function Xo(t,a,s){return Ia(t,a,s,"weekdays")}function Zo(t,a,s){return Ia(t,a,s,"weekdaysShort")}function Jo(t,a,s){return Ia(t,a,s,"weekdaysMin")}Re("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var a=t%10,s=M(t%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return t+s}}),y.lang=G("moment.lang is deprecated. Use moment.locale instead.",Re),y.langData=G("moment.langData is deprecated. Use moment.localeData instead.",ge);var we=Math.abs;function ec(){var t=this._data;return this._milliseconds=we(this._milliseconds),this._days=we(this._days),this._months=we(this._months),t.milliseconds=we(t.milliseconds),t.seconds=we(t.seconds),t.minutes=we(t.minutes),t.hours=we(t.hours),t.months=we(t.months),t.years=we(t.years),this}function wr(t,a,s,r){var n=te(a,s);return t._milliseconds+=r*n._milliseconds,t._days+=r*n._days,t._months+=r*n._months,t._bubble()}function tc(t,a){return wr(this,t,a,1)}function ac(t,a){return wr(this,t,a,-1)}function _r(t){return t<0?Math.floor(t):Math.ceil(t)}function sc(){var t=this._milliseconds,a=this._days,s=this._months,r=this._data,n,i,o,f,m;return t>=0&&a>=0&&s>=0||t<=0&&a<=0&&s<=0||(t+=_r(Ya(s)+a)*864e5,a=0,s=0),r.milliseconds=t%1e3,n=z(t/1e3),r.seconds=n%60,i=z(n/60),r.minutes=i%60,o=z(i/60),r.hours=o%24,a+=z(o/24),m=z(br(a)),s+=m,a-=_r(Ya(m)),f=z(s/12),s%=12,r.days=a,r.months=s,r.years=f,this}function br(t){return t*4800/146097}function Ya(t){return t*146097/4800}function rc(t){if(!this.isValid())return NaN;var a,s,r=this._milliseconds;if(t=V(t),t==="month"||t==="quarter"||t==="year")switch(a=this._days+r/864e5,s=this._months+br(a),t){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(a=this._days+Math.round(Ya(this._months)),t){case"week":return a/7+r/6048e5;case"day":return a+r/864e5;case"hour":return a*24+r/36e5;case"minute":return a*1440+r/6e4;case"second":return a*86400+r/1e3;case"millisecond":return Math.floor(a*864e5)+r;default:throw new Error("Unknown unit "+t)}}function _e(t){return function(){return this.as(t)}}var Sr=_e("ms"),nc=_e("s"),ic=_e("m"),lc=_e("h"),dc=_e("d"),oc=_e("w"),cc=_e("M"),uc=_e("Q"),fc=_e("y"),hc=Sr;function pc(){return te(this)}function mc(t){return t=V(t),this.isValid()?this[t+"s"]():NaN}function Ne(t){return function(){return this.isValid()?this._data[t]:NaN}}var yc=Ne("milliseconds"),gc=Ne("seconds"),wc=Ne("minutes"),_c=Ne("hours"),bc=Ne("days"),Sc=Ne("months"),Mc=Ne("years");function vc(){return z(this.days()/7)}var be=Math.round,Ke={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kc(t,a,s,r,n){return n.relativeTime(a||1,!!s,t,r)}function Rc(t,a,s,r){var n=te(t).abs(),i=be(n.as("s")),o=be(n.as("m")),f=be(n.as("h")),m=be(n.as("d")),_=be(n.as("M")),B=be(n.as("w")),Y=be(n.as("y")),H=i<=s.ss&&["s",i]||i<s.s&&["ss",i]||o<=1&&["m"]||o<s.m&&["mm",o]||f<=1&&["h"]||f<s.h&&["hh",f]||m<=1&&["d"]||m<s.d&&["dd",m];return s.w!=null&&(H=H||B<=1&&["w"]||B<s.w&&["ww",B]),H=H||_<=1&&["M"]||_<s.M&&["MM",_]||Y<=1&&["y"]||["yy",Y],H[2]=a,H[3]=+t>0,H[4]=r,kc.apply(null,H)}function Cc(t){return t===void 0?be:typeof t=="function"?(be=t,!0):!1}function xc(t,a){return Ke[t]===void 0?!1:a===void 0?Ke[t]:(Ke[t]=a,t==="s"&&(Ke.ss=a-1),!0)}function Uc(t,a){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=Ke,n,i;return typeof t=="object"&&(a=t,t=!1),typeof t=="boolean"&&(s=t),typeof a=="object"&&(r=Object.assign({},Ke,a),a.s!=null&&a.ss==null&&(r.ss=a.s-1)),n=this.localeData(),i=Rc(this,!s,r,n),s&&(i=n.pastFuture(+this,i)),n.postformat(i)}var La=Math.abs;function We(t){return(t>0)-(t<0)||+t}function qt(){if(!this.isValid())return this.localeData().invalidDate();var t=La(this._milliseconds)/1e3,a=La(this._days),s=La(this._months),r,n,i,o,f=this.asSeconds(),m,_,B,Y;return f?(r=z(t/60),n=z(r/60),t%=60,r%=60,i=z(s/12),s%=12,o=t?t.toFixed(3).replace(/\.?0+$/,""):"",m=f<0?"-":"",_=We(this._months)!==We(f)?"-":"",B=We(this._days)!==We(f)?"-":"",Y=We(this._milliseconds)!==We(f)?"-":"",m+"P"+(i?_+i+"Y":"")+(s?_+s+"M":"")+(a?B+a+"D":"")+(n||r||t?"T":"")+(n?Y+n+"H":"")+(r?Y+r+"M":"")+(t?Y+o+"S":"")):"P0D"}var v=Yt.prototype;v.isValid=bd,v.abs=ec,v.add=tc,v.subtract=ac,v.as=rc,v.asMilliseconds=Sr,v.asSeconds=nc,v.asMinutes=ic,v.asHours=lc,v.asDays=dc,v.asWeeks=oc,v.asMonths=cc,v.asQuarters=uc,v.asYears=fc,v.valueOf=hc,v._bubble=sc,v.clone=pc,v.get=mc,v.milliseconds=yc,v.seconds=gc,v.minutes=wc,v.hours=_c,v.days=bc,v.weeks=vc,v.months=Sc,v.years=Mc,v.humanize=Uc,v.toISOString=qt,v.toString=qt,v.toJSON=qt,v.locale=lr,v.localeData=or,v.toIsoString=G("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qt),v.lang=dr,w("X",0,0,"unix"),w("x",0,0,"valueOf"),g("x",At),g("X",Gi),U("X",function(t,a,s){s._d=new Date(parseFloat(t)*1e3)}),U("x",function(t,a,s){s._d=new Date(M(t))});//! moment.js
|
|
10
|
-
y.version="2.30.1",Ui(A),y.fn=p,y.min=yd,y.max=gd,y.now=wd,y.utc=ie,y.unix=Wo,y.months=Vo,y.isDate=Ze,y.locale=Re,y.invalid=Rt,y.duration=te,y.isMoment=J,y.weekdays=Xo,y.parseZone=Go,y.localeData=ge,y.isDuration=Lt,y.monthsShort=zo,y.weekdaysMin=Jo,y.defineLocale=Ca,y.updateLocale=Wl,y.locales=Gl,y.weekdaysShort=Zo,y.normalizeUnits=V,y.relativeTimeRounding=Cc,y.relativeTimeThreshold=xc,y.calendarFormat=Qd,y.prototype=p,y.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Kt=t=>new Intl.NumberFormat("de-DE").format(t),Mr=(t,a,s=Math.random)=>Math.floor(s()*(a-t)+t),Wt=(t,a,s=r=>r)=>t.filter(r=>!a.some(n=>s(n)===s(r))),Pa=(t,a)=>[...new Set(t.map(s=>a(s)))],vr=t=>t.filter(a=>a!=null),Bc=({start:t=0,stop:a,step:s=1})=>{if(s===0)throw new RangeError("step cannot be equal to 0");if(s>0&&t>=a||s<0&&t<=a)return[];const r=[];for(let n=t;s>0?n<a:n>a;n+=s)r.push(n);return r},Oc=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Ac=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,kr=/(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Ta=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],Dc={months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:kr,monthsShortRegex:kr,monthsStrictRegex:Oc,monthsShortStrictRegex:Ac,monthsParse:Ta,longMonthsParse:Ta,shortMonthsParse:Ta,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:(t,a)=>{switch(a){case"D":return t+(t===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(t===1?"er":"e");case"w":case"W":return t+(t===1?"re":"e")}},week:{dow:1,doy:4}};y.locale("fr",Dc);const Se=(t,a,s=!0)=>(s?t.getFullYear()===a.getFullYear():!0)&&t.getMonth()===a.getMonth()&&t.getDate()===a.getDate(),ja=()=>y().locale("fr").subtract(1,"days").toDate(),Ee=t=>new Date>t,Rr=t=>typeof t=="function",Qa=(t,a,s)=>{const r={...t},n=Object.entries(t);for(const[i,o]of n){const f=a[i];f?r[i]=s(o,f):r[i]=o}return r},Ha=t=>Object.entries(t),Cr=new h.Schema({guildId:{type:String,required:!0,unique:!0},suggestionChannelId:{type:String,default:null},reportChannelId:{type:String,default:null},reportModeratorChannelId:{type:String,default:null},factionChannelId:{type:String,default:null},discussionChannelId:{type:String,default:null},questFallbackChannelId:{type:String,default:null},reportBugChannelId:{type:String,default:null},expeditionChannelId:{type:String,default:null},ranking:{channelId:{type:String,default:null},messageId:{type:String,default:null}},roles:{premium:{type:String,default:null},booster:{type:String,default:null},scam:{type:String,default:null}},channels:{gambling:{type:String,default:null},work:{type:String,default:null},raid:{type:String,default:null}},edito:{channelId:{type:String,default:null},price:{type:Number,default:100},sentAtMidnight:{type:Boolean,default:!1},messageId:{type:String,default:null}},crew:{infoChannelId:{type:String,default:null},crewChannelIds:{type:[{channelId:{type:String},crewId:{type:String}}],default:[]}},shopChannelId:{type:String,default:null},blackMarketChannelId:{type:String,default:null}});Cr.index({"meta.xp":-1});const Gt=((Xn=h.models)==null?void 0:Xn.Settings)||h.model("Settings",Cr),I=async(t,a,s=!1)=>{await Gt.updateOne({guildId:t},a,{upsert:s})},Nc=Object.freeze(Object.defineProperty({__proto__:null,addCrewChannelId:async(t,a,s)=>{await I(t,{$push:{"crew.crewChannelIds":{channelId:s,crewId:a}}})},randomizeEditoPrice:async t=>{const a=Mr(100,1001);return await I(t,{$set:{"edito.price":a}}),a},sentAtMidnight:async(t,a)=>{await I(t,{$set:{"edito.sentAtMidnight":a}})},setCrewInfoChannelId:async(t,a)=>{await I(t,{$set:{"crew.infoChannelId":a}})},setDiscussionChannelId:async(t,a)=>{await I(t,{$set:{discussionChannelId:a}})},setEditoChannel:async(t,a)=>{await I(t,{$set:{"edito.channelId":a}})},setEditoMessageId:async(t,a)=>{await I(t,{$set:{"edito.messageId":a}})},setFactionChannel:async(t,a)=>{await I(t,{$set:{factionChannelId:a}})},setQuestChannelId:async(t,a)=>{await I(t,{$set:{questFallbackChannelId:a}})},setRankingChannel:async(t,a)=>{await I(t,{$set:{"ranking.channelId":a}})},setRankingMessage:async(t,a)=>{await I(t,{$set:{"ranking.messageId":a}})},setReportBugChannelId:async(t,a)=>{await I(t,{$set:{reportBugChannelId:a}})},setReportChannel:async(t,a)=>{await I(t,{$set:{reportChannelId:a}})},setReportModeratorChannel:async(t,a)=>{await I(t,{$set:{reportModeratorChannelId:a}})},setShopChannelId:async(t,a,s)=>{await I(t,{$set:{shopChannelId:a,blackMarketChannelId:s}})},setSuggestionChannel:async(t,a)=>{await I(t,{$set:{suggestionChannelId:a}})},updateChannelId:async(t,a)=>{await I(t,{$set:Object.fromEntries(Object.entries(a).map(([s,r])=>[`channels.${s}`,r]))})},updateRolesId:async(t,a)=>{await I(t,{$set:Object.fromEntries(Object.entries(a).map(([s,r])=>[`roles.${s}`,r]))})}},Symbol.toStringTag,{value:"Module"})),xr=async t=>await Gt.create({guildId:t}),Ec=async(t,a={})=>{const s=await Gt.findOne({guildId:t},a);return s||xr(t)};class ae{constructor(){e(this,"name");e(this,"price");e(this,"size");e(this,"currency");e(this,"data");if(this.constructor===ae)throw new Error("Abstract classes can't be instantiated.")}toDBShopItem(){return{name:this.name,price:this.price,size:this.size,entityId:this.data.id,currency:this.currency}}async onBuy(a,s){this.currency==="berry"?(await rn(a,-1*this.price*s),await Jr(a,this.price*s)):await Ue(a,this.currency,this.price*s)}isBackground(){return!1}isChest(){return!1}isTitle(){return!1}isBoostXp(){return!1}isRepair(){return!1}isStore(){return!1}isObject(){return!1}isBottle(){return!1}isEquipment(){return!1}}class Ur extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await vn(a,this.data.background.id)}isBackground(){return!0}}class Br extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ne(a,this.data.id,s)}isBoostXp(){return!0}}class Or extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ne(a,this.data.id,s)}isChest(){return!0}}class Ar extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ne(a,this.data.id,s)}isObject(){return!0}}class Dr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await cs(a,Bc({stop:s}).map(()=>S.seedEquipment({...this.data},Date.now()-Math.round(Math.random()*1e3))))}isEquipment(){return!0}}class Nr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ne(a,this.data.id,s)}isBottle(){return!0}}class Er extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ne(a,this.data.id,s)}isRepair(){return!0}}class $r extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ne(a,this.data.id,s)}isStore(){return!0}}class Fr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ys(a,this.data.title.name)}isTitle(){return!0}}const Ir=(t,a)=>{const s=t.items.find(r=>r.entityId===a);if(s){const{name:r,price:n,size:i,currency:o}=s,f=S.findEntity(s.entityId);if(S.isBackgroundItem(f))return new Ur({name:r,price:n,item:f,size:i,currency:o});if(S.isTitleItem(f))return new Fr({name:r,price:n,item:f,size:i,currency:o});if(S.isChestItem(f))return new Or({name:r,price:n,item:f,size:i,currency:o});if(S.isBoostItem(f))return new Br({name:r,price:n,item:f,size:i,currency:o});if(S.isRepairItem(f))return new Er({name:r,price:n,item:f,size:i,currency:o});if(S.isStoreItem(f))return new $r({name:r,price:n,item:f,size:i,currency:o});if(S.isObjectItem(f))return new Ar({name:r,price:n,item:f,size:i,currency:o});if(S.isEquipment(f))return new Dr({name:r,price:n,item:f,size:i,currency:o});if(S.isBottleItem(f))return new Nr({name:r,price:n,size:i,item:f,currency:o})}},$c=Object.freeze(Object.defineProperty({__proto__:null,getShopItem:Ir,getShopItemList:t=>{const a=[];for(const{entityId:s}of t.items){const r=Ir(t,s);r&&a.push(r)}return a}},Symbol.toStringTag,{value:"Module"})),Yr=new h.Schema({shopType:{type:String,required:!0,unique:!0},publishedAt:{type:Date,default:new Date},duration:{type:Number,default:null},closeAt:{type:Date,default:null},items:{type:[{name:String,price:Number,size:{type:Number,default:null},entityId:String,currency:String}],default:[]},stats:{berrySpent:{type:Number,default:0},itemBought:{type:Number,default:0},chestBought:{type:Number,default:0},boostTimeBought:{type:Number,default:0},percentBought:{type:Number,default:0}}},{minimize:!1});Yr.index({shopType:1});const Vt=((Zn=h.models)==null?void 0:Zn.Shop)||h.model("Shop",Yr),Fc=async(t,a)=>{await Lr({shopType:t},a,!0)},qa=async(t,a)=>{await Lr({_id:t},a,!0)},Lr=async(t,a,s=!1)=>{await Vt.updateOne(t,a,{upsert:s})},Ic=Object.freeze(Object.defineProperty({__proto__:null,buyShopItem:async(t,a,s,r)=>{const n=a.map(i=>(i.name===s.name&&i.size&&(i.size-=r),i));await qa(t,{$set:{items:n}})},publish:async t=>{await qa(t,{$set:{publishedAt:new Date}})},setShopItems:async(t,a)=>{await Fc(t,{$set:{items:[...a]}})},updateShopStats:async(t,a,s)=>{await qa(t,{$inc:{"stats.berrySpent":a.price*s,"stats.itemBought":s,"stats.chestBought":a.isChest()?s:0,"stats.percentBought":a.isRepair()?a.data.repair*s:0,"stats.boostTimeBought":a.isBoostXp()?a.data.id==="boost_xp_day"?s:7*s:0}})}},Symbol.toStringTag,{value:"Module"})),Yc=t=>Vt.create({shopType:t}),Lc=async(t,a={})=>{const s=await Pr({shopType:t},a);return s||await Yc(t)},Pr=(t,a={})=>Vt.findOne(t,a),Pc=Object.freeze(Object.defineProperty({__proto__:null,getCommandCooldown:(t,a)=>t.commands[a],getRaidCooldown:(t,a)=>t.raid[a]},Symbol.toStringTag,{value:"Module"})),Ka=new h.Schema({user:{type:h.Schema.Types.ObjectId,ref:"User",required:!0},date:Date,type:String},{minimize:!1});Ka.index({user:1}),Ka.index({date:-1});const $e=((Jn=h.models)==null?void 0:Jn.Reminder)||h.model("Reminder",Ka),Tc=Object.freeze(Object.defineProperty({__proto__:null,getAllPassedReminder:async()=>await $e.find({date:{$lte:new Date}})},Symbol.toStringTag,{value:"Module"})),jc=async(t,a)=>{await $e.deleteOne({user:t,type:a})},Tr=async(t,a,s,r)=>{await $e.updateOne({user:t,type:a},s,{upsert:r})},Wa=async(t,a,s)=>{await Tr(t,a,{$set:{date:s}},!0)},Ga=async(t,a,s)=>{await Tr(t,a,[{$set:{date:{$add:["$date",s]}}}],!1)},Qc=Object.freeze(Object.defineProperty({__proto__:null,addReminder:Wa,deleteSelectedReminders:async t=>{await $e.deleteMany({_id:{$in:t}})},removeReminder:async(t,a)=>{await jc(t,a)},updateReminderDate:Ga},Symbol.toStringTag,{value:"Module"})),Hc=async(t,a={})=>{const s=await $e.findOne({user:t},a);return s||null},qc=async(t,a,s)=>await $e.create({user:t,date:a,type:s}),Kc=(t,a)=>{const s=vr(Object.values(t.equippedItems)),r=a.equipments.filter(n=>s.find(i=>i.id===n.id)).length;if(r===a.equipments.length)return a.fullBonus;if(r>=a.equipments.length/2)return a.halfBonus},Va=t=>{var s;let a={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};for(const r of S.EQUIPMENT_SLOT){const n=(s=t.equippedItems)==null?void 0:s[r];n&&(a=Qa(a,S.fromDBToEquipableEquipment(n).characteristics,(i,o)=>i+o))}for(const r of S.allPanoplies){const n=Kc(t,r);n&&!("target"in n)&&(a=Qa(a,n,(i,o)=>i+o))}return a},Wc=Object.freeze(Object.defineProperty({__proto__:null,calcBottleMultiplier:(t,{buffs:a})=>{const s=S.getPanoplyBonus(t.equippedItems).find(([r,n])=>r.id==="herbalist"&&n!==null);return s&&s[1]==="full"?a.map(r=>({...r,multiplier:r.multiplier*1.25})):s&&s[1]==="half"?a.map(r=>({...r,multiplier:r.multiplier*1.1})):a},calcMinStreakForWorkLoot:t=>{const a=S.getPanoplyBonus(t.equippedItems).find(([s,r])=>s.id==="marine"&&r!==null);return a&&a[1]==="full"?10:a&&a[1]==="half"?20:1/0},getItemList:t=>Object.fromEntries(t.itemList),getRecipeResult:(t,a)=>{const s=S.getPanoplyBonus(t.equippedItems).find(([r,n])=>r.id==="little_blacksmith"&&n!==null);return(s==null?void 0:s[1])==="full"&&a==="chest_3"?"chest_blacksmith_3":(s==null?void 0:s[1])==="half"&&a==="chest_2"?"chest_blacksmith_2":(s==null?void 0:s[1])==="half"&&a==="chest_1"?"chest_blacksmith_1":a},getUserEquipmentsCharacteristics:Va,hasEnoughEnchantedStone:(t,a)=>(t.itemList.get("enchanted_stone")||0)>=a,hasEnoughItem:(t,a,s)=>(t.itemList.get(s)||0)>=a,hasEnoughItemsForRecipe:(t,a,s)=>{for(const r of a)if((t.itemList.get(r.itemId)||0)<r.size*s)return!1;return!0},hasEnoughTools:(t,a)=>(t.itemList.get("tools")||0)>=a,hasInventoryRequirements:(t,a)=>Ha(a).reduce((s,[r,n])=>s&&(t.itemList.get(r)??0)>=(n??0),!0),hasRevolutionaryBuff:t=>{const a=S.getPanoplyBonus(t.equippedItems).find(([s,r])=>s.id==="revolutionary"&&r!==null);return(a==null?void 0:a[1])??null},maxCraftQuantity:(t,a)=>{let s=1/0;for(const r of a)s=Math.min(s,Math.floor((t.itemList.get(r.itemId)||0)/r.size));return s}},Symbol.toStringTag,{value:"Module"})),Gc=Object.freeze(Object.defineProperty({__proto__:null,getEncyclopedia:t=>t.encyclopedia,hasFoundItem:(t,a)=>t.encyclopedia.includes(a)},Symbol.toStringTag,{value:"Module"})),jr=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},encyclopedia:{type:[String],default:[]}});jr.index({user:1});const ot=((ei=h.models)==null?void 0:ei.UserEncyclopedia)||h.model("UserEncyclopedia",jr),Qr=async(t,a)=>{await ot.updateOne({user:t},a,{upsert:!0})},zt=async(t,a)=>{await Qr(t,{$addToSet:{encyclopedia:{$each:a}}})},Vc=Object.freeze(Object.defineProperty({__proto__:null,addItem:zt},Symbol.toStringTag,{value:"Module"})),Hr=async t=>await ot.create({user:t}),zc=async t=>{const a=await ot.findOne({user:t});return a||await Hr(t)},Xc=["crewUpdate","crewQuestUpdate","userMetaUpdate","userQuestMetaUpdate","userQuestUpdate","userInventoryUpdate","userOrnamentsUpdate","userDaily","crewDaily","userChristmasUpdate"],qr=new vs.EventEmitter,se=(t,a,s)=>{qr.emit(t,a,s)},Zc=t=>{for(const a of Xc)qr.on(a,(s,r)=>{t(a,s,r)})};class d{constructor(){e(this,"chest");e(this,"repeatable");e(this,"onUserMetaUpdate");e(this,"onUserQuestUpdate");e(this,"onUserQuestMetaUpdate");e(this,"onUserInventoryUpdate");e(this,"onUserOrnamentsUpdate");e(this,"onCrewUpdate");e(this,"onCrewQuestUpdate");e(this,"complete",async(a,{_userQuest:s,_userCrew:r,_userMeta:n,_userInventory:i})=>{const o=s??await ws(a);if(this.isCompleted(o)&&!this.repeatable)return null;const f=n??await ft(a),m=r??await wn(a),_=i??await Fe(a);return this.crew&&m?this.daily?await this.markCrewDailyAsCompleted(m.crew._id,o.user._id):(await this.markAsCompleted(o),await this.markCrewAsCompleted(m.crew._id)):await this.markAsCompleted(o),await this.specificQuestCompletion(o,m),await this.applyReward(o,f,m,_)});e(this,"getComputedRewards",(a,s)=>{const r=this.daily&&Xa(s)?Za(s):1;return{xp:(Rr(this.xp)?this.xp(a):this.xp)*r*(1+fs(a)),berry:(Rr(this.berry)?this.berry(a):this.berry)*r}})}async applyReward(a,s,r,n){return this.title&&await ys(a.user._id,this.title.name),this.badge&&(this.crew&&r?await Qn(r.crew._id,this.badge,this.rank.id):await kn(a.user._id,this.badge,this.rank.id)),this.isFactionBadge&&await Rn(a.user._id,this.rank.id),this.asset&&await Cn(a.user._id,this.asset),this.chest&&await un(n.user._id,this.chest),this.getComputedRewards(s,a)}async specificQuestCompletion(a,s){this.id==="daily_all"&&(await On(a.user._id,a.lastFullComplete),s&&await this.markCrewDailyAsCompleted(s.crew._id,a.user._id)),this.id==="be_level_10"&&await In(a.user._id,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await Yn(a.user._id,!0),this.id==="crew_all_members_daily"&&s&&await gn(a.user._id)}isCompleted(a){return this.daily?Gr(a,this.id):Kr(a,this.id)}async markAsCompleted(a){this.daily?await Bn(a.user._id,this.id):await Un(a.user._id,this.id)}async markCrewAsCompleted(a){await qn(a,this.id)}async markCrewDailyAsCompleted(a,s){await Kn(a,s.toHexString(),this.id)}}class Jc extends d{constructor(){super(...arguments);e(this,"name","Bienvenue à bord !");e(this,"id","crew_create_or_join");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Créer son équipage/Rejoindre un équipage");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1)}}class eu extends d{constructor(){super(...arguments);e(this,"name","Prêt à naviguer !");e(this,"id","crew_daily_click");e(this,"rank",l.RANKS.COMMON);e(this,"description","Faire acte de présence auprès de son équipage");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"crew",!0);e(this,"daily",!0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1)}}const tu=Object.freeze(Object.defineProperty({__proto__:null,CrewCreateOrJoin:Jc,CrewValidateDaily:eu},Symbol.toStringTag,{value:"Module"}));class au extends d{constructor(){super(...arguments);e(this,"name","1 jour 1 message");e(this,"id","daily_send_message");e(this,"rank",l.RANKS.COMMON);e(this,"description","Envoyer un message");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*100);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class su extends d{constructor(){super(...arguments);e(this,"name","Les nouvelles sont bonnes ?");e(this,"id","daily_read_edito");e(this,"rank",l.RANKS.COMMON);e(this,"description","Réagir à l'édito");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*3e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*300);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class ru extends d{constructor(){super(...arguments);e(this,"name","Quoi ? Feur !");e(this,"id","daily_answer");e(this,"rank",l.RANKS.COMMON);e(this,"description","Répondre à quelqu'un");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1500);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*150);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class nu extends d{constructor(){super(...arguments);e(this,"name","Narcissique");e(this,"id","daily_check_profile");e(this,"rank",l.RANKS.COMMON);e(this,"description","Regarder son profil");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*2e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*200);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class iu extends d{constructor(){super(...arguments);e(this,"name","Almanax");e(this,"id","almanax");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Valider 365 jours de suite les quêtes quotidiennes");e(this,"berry",1e9);e(this,"xp",1e6);e(this,"badge",u.BadgeList.calendar);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1)}}const za=Object.freeze(Object.defineProperty({__proto__:null,Almanax:iu,DailyAnswer:ru,DailyCheckProfile:nu,DailyReadEdito:su,DailySendMessage:au},Symbol.toStringTag,{value:"Module"})),lu=async(t,a,s,{berry:r,xp:n})=>{const i=await ws(a).then(F=>F.populate("user","faction")),o=Za(i),f=zr(i,i.user.faction),{badge:m,isFactionBadge:_,title:B,rank:Y,name:H,description:Uy,daily:ra,secret:By}=t;return s.Image().setImageName(`quest_success_${Y.id}`).setDimensions(2080,636).draw(),m?s.Image().setImageName(u.progressiveBadgeTypeGuard(m)?`cropped_badge_${m.img}_${Y.id}`:`cropped_badge_${m.img}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():_&&i.user.faction!=="citizen"?s.Image().setImageName(`cropped_badge_${i.user.faction}_${Y.id}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():s.Image().setImageName(`badge_default_${Y.id}`).setScale(2).setOrigin(j.CanvasOrigin.CENTER).setPosition(370,318).draw(),s.Text(ra?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(Y.color).draw(),s.Text(H).setPosition(739,325).setOrigin(j.CanvasOrigin.BOTTOM_LEFT).setFont("poppins",H.length>=35?65-(H.length-35):65).draw(),s.Text(By?"Succès caché":Uy).setPosition(739,360).setFont("poppins_italic",35).draw(),s.Text(`Récompenses: ${Kt(r)}${ra&&o>1?` (+${Kt(r*(o-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(j.CanvasOrigin.LEFT).draw(r!==0).next((F,L)=>j.nextAllToXAxis(F.Image(),L)).setImageName("quest_berry").setDimensions(50,79).draw(r!==0).next((F,L)=>j.nextAllToXAxis(F.Text(` / ${Kt(n)}${ra&&o>1?` (+${Kt(n*(o-1))})`:""} `),L)).draw(n!==0).next((F,L)=>j.nextAllToXAxis(F.Image(),L)).setImageName("quest_xp").setDimensions(57,59).draw(n!==0).next((F,L)=>j.nextAllToXAxis(F.Text(` combo x${o}`),L)).draw(ra&&o>1).next((F,L)=>j.nextAllToXAxis(F.Text(" et la possibilité "),L)).draw(_&&i.user.faction==="citizen").next((F,L)=>j.nextAllToXAxis(F.Text("de choisir ta faction"),L)).setFont("poppins_bold",35).draw(_&&i.user.faction==="citizen").next((F,L)=>j.nextAllToXAxis(F.Text(" et le titre "),L)).setFont("poppins",35).draw(!!B||_&&i.user.faction!=="citizen").next((F,L)=>j.nextAllToXAxis(F.Text((B==null?void 0:B.name)??""),L)).setFont("poppins_bold",35).setColor((B==null?void 0:B.rank.color)??"white").draw(!!B).next((F,L)=>j.nextAllToXAxis(F.Text((f==null?void 0:f.name)??""),L)).setColor((f==null?void 0:f.rank.color)??"white").draw(_&&!!f),await s.encode("webp")},du=10,ou=1e7,cu=100,uu=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"],fu={factions:{b_citizen_COMMON:"<:BasiqueOPFRbois:1175507882188484761>",b_citizen_RARE:"<:BasiqueOPFRargent:1175507880724668488>",b_citizen_EPIC:"<:BasiqueOPFRor:1175507883501289512>",b_citizen_LEGENDARY:"<:BasiqueOPFRplatine:1175507886714134548>",b_citizen_MYTHIC:"<:BasiqueOPFRultime:1175507889553670264>",b_marine_COMMON:"<:Marinebois:1175507936953512036>",b_marine_RARE:"<:Marineargent:1175508322351321178>",b_marine_EPIC:"<:Marineor:1175508300603863132>",b_marine_LEGENDARY:"<:Marineplatine:1175507940803879012>",b_marine_MYTHIC:"<:Marineultime:1175508279590395977>",b_revolutionary_COMMON:"<:RvoBois:1175507954779295810>",b_revolutionary_RARE:"<:RvoArgent:1175508199118483457>",b_revolutionary_EPIC:"<:RvoOr:1175508111885344819>",b_revolutionary_LEGENDARY:"<:RvoPlatine:1175507958378008756>",b_revolutionary_MYTHIC:"<:RvoUltime:1175508127815319612>",b_pirate_COMMON:"<:Piratebois:1175508259768115272>",b_pirate_RARE:"<:Pirateargent:1175507943987363941>",b_pirate_EPIC:"<:Pirateor:1175508240243621928>",b_pirate_LEGENDARY:"<:Pirateplatine:1175507949578358804>",b_pirate_MYTHIC:"<:Pirateultime:1175507951709061150>"}},Kr=(t,a)=>t.completed.includes(a),Wr=t=>{for(const a of Object.values(vt)){const s=new a;if(s.repeatable&&t===s.id)return!0}return!1},hu=t=>{for(const a of Object.values(Xr)){const s=new a;if(s.id===t)return s.name}return null},Gr=(t,a)=>{const s=t.daily[a];return s&&Se(s,new Date)},Xa=t=>Se(ja(),t.lastFullComplete),Za=t=>Xa(t)?1+Math.min(2,t.streak/10):1,Vr=t=>t.completed.reduce((a,s)=>a+(s.startsWith("be_level_")?1:0),0),zr=(t,a)=>{const s=Vr(t);return u.factionTitleList.find(r=>r.strength===s&&r.faction===a)},pu=Object.freeze(Object.defineProperty({__proto__:null,getFactionTitle:zr,getFactionTitleStrength:Vr,getQuestName:hu,getStreakMultiplier:Za,isDailyQuestCompleted:Gr,isQuestCompleted:Kr,isRepetableQuestExist:Wr,isStreaking:Xa},Symbol.toStringTag,{value:"Module"})),mu=(t,a)=>{const s=t.badge,r=t.isFactionBadge;return s?u.progressiveBadgeTypeGuard(s)?s.emojis[s.isProgressive.findIndex(n=>n===t.rank.id)]:s.emojis:r?fu.factions[`b_${a}_${t.rank.id}`]:""},yu=t=>{const[a,s]=t.split("_"),r=Object.values(u.BadgeList).find(n=>n.id===a);if(r)return u.progressiveBadgeTypeGuard(r)?r.emojis[r.isProgressive.findIndex(n=>n===s)]:r.emojis},gu=async(t,a)=>{const s=Object.values(za).find(r=>new r().id===t);if(s){const r=new s,n=await r.complete(a,{});n&&se("userDaily",a,[[r,n]])}},wu=async(t,a)=>{const s=Object.values(tu).find(r=>new r().id===t);if(s){const r=new s,n=await r.complete(a,{});n&&se("crewDaily",a,[[r,n]])}},_u=async(t,a)=>{if(!Wr(a))return;const s=Object.values(vt).find(r=>new r().id===a);if(s){const r=new s,n=await r.complete(t,{});n&&se("userQuestUpdate",t,[[r,n]])}};class bu extends d{constructor(){super(...arguments);e(this,"name","L'Insistant");e(this,"id","insistent");e(this,"rank",l.RANKS.COMMON);e(this,"description","Être repêché et atteindre les huitièmes de finale");e(this,"berry",1e6);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Su extends d{constructor(){super(...arguments);e(this,"name","Résurrection");e(this,"id","resurrection");e(this,"rank",l.RANKS.RARE);e(this,"description","Être repêché et atteindre les quarts de finale");e(this,"berry",3e6);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Mu extends d{constructor(){super(...arguments);e(this,"name","Renaissance");e(this,"id","rebirth");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être repêché et atteindre au moins les demi-finales");e(this,"berry",1e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class vu extends d{constructor(){super(...arguments);e(this,"name","Phoenix");e(this,"id","phoenix");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être repêché et aller en finale");e(this,"berry",2e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class ku extends d{constructor(){super(...arguments);e(this,"name","L'Immortel");e(this,"id","immortal");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Être repêché et remporter le tournoi");e(this,"berry",4e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Ru extends d{constructor(){super(...arguments);e(this,"name","Branche Maudite");e(this,"id","cursed_branch");e(this,"rank",l.RANKS.RARE);e(this,"description","Perdre le tournoi en top 32");e(this,"berry",25e6);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Cu extends d{constructor(){super(...arguments);e(this,"name","Top 64");e(this,"id","top64");e(this,"rank",l.RANKS.COMMON);e(this,"description","Perdre le tournoi en top 64");e(this,"berry",15e6);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class xu extends d{constructor(){super(...arguments);e(this,"name","Zero Pointé");e(this,"id","zeroscored");e(this,"rank",l.RANKS.COMMON);e(this,"description","Se faire éliminer directement avec tous ses choix dès le premier duel");e(this,"berry",1e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Uu extends d{constructor(){super(...arguments);e(this,"name","Chasseur de Géants");e(this,"id","gianthunter");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Battre les 3 tap-in du tournoi avec tes choix");e(this,"berry",1e8);e(this,"xp",0);e(this,"chest",[{chest:"chest_2",size:5}]);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Bu extends d{constructor(){super(...arguments);e(this,"name","Sabotage");e(this,"id","sabotage");e(this,"rank",l.RANKS.EPIC);e(this,"description","Empêcher un choix de tap-in d'atteindre le top 32");e(this,"berry",3e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Ou extends d{constructor(){super(...arguments);e(this,"name","Victoire par K.O");e(this,"id","victorybyko");e(this,"rank",l.RANKS.COMMON);e(this,"description","Gagner un duel avec plus de 75% des votes");e(this,"berry",5e6);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Au extends d{constructor(){super(...arguments);e(this,"name","Le Sniper");e(this,"id","sniper");e(this,"rank",l.RANKS.RARE);e(this,"description","Gagner un duel avec plus de 80% des votes");e(this,"berry",1e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Du extends d{constructor(){super(...arguments);e(this,"name","Massacre");e(this,"id","massacre");e(this,"rank",l.RANKS.EPIC);e(this,"description","Gagner un duel avec plus de 90% des votes");e(this,"berry",25e6);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Nu extends d{constructor(){super(...arguments);e(this,"name","Annihilation");e(this,"id","annihilation");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Gagner un duel avec 100% des votes (aucun vote pour l'adversaire)");e(this,"berry",1e8);e(this,"xp",0);e(this,"chest",[{chest:"chest_1",size:5}]);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Eu extends d{constructor(){super(...arguments);e(this,"name","Troll Suprême");e(this,"id","trollSupreme");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Prendre un choix totalement troll et improbable, puis gagner le tournoi avec !");e(this,"berry",1e8);e(this,"xp",0);e(this,"chest",[{chest:"chest_3",size:1}]);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class $u extends d{constructor(){super(...arguments);e(this,"name","Champion");e(this,"id","champion");e(this,"rank",l.RANKS.RARE);e(this,"description","Remporter un tournoi");e(this,"berry",0);e(this,"xp",0);e(this,"chest",[{chest:"chest_2",size:5}]);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Fu extends d{constructor(){super(...arguments);e(this,"name","Le Maître");e(this,"id","master");e(this,"rank",l.RANKS.RARE);e(this,"description","Remporter un tournoi avec trois choix différents dans le top 16");e(this,"berry",0);e(this,"xp",0);e(this,"chest",[{chest:"chest_3",size:1}]);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Iu extends d{constructor(){super(...arguments);e(this,"name","L'Inarrétable");e(this,"id","unstoppable");e(this,"rank",l.RANKS.EPIC);e(this,"description","Remporter un tournoi avec une finale écrasante");e(this,"berry",0);e(this,"xp",0);e(this,"chest",[{chest:"chest_1",size:5},{chest:"chest_2",size:3}]);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Yu extends d{constructor(){super(...arguments);e(this,"name","L'Etoile Filante");e(this,"id","shootingstar");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Passer du statut d'outsider à finaliste");e(this,"berry",5e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Lu extends d{constructor(){super(...arguments);e(this,"name","EZ");e(this,"id","ez");e(this,"rank",l.RANKS.EPIC);e(this,"description","Débloquer tous les succès Victoire sans difficulté");e(this,"berry",0);e(this,"xp",0);e(this,"chest",[{chest:"chest_3",size:1}]);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Pu extends d{constructor(){super(...arguments);e(this,"name","Participation");e(this,"id","participation");e(this,"rank",l.RANKS.COMMON);e(this,"description","Participer au tournoi avec 1, 2, 3 et 4 choix");e(this,"berry",1e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Tu extends d{constructor(){super(...arguments);e(this,"name","Prenez-en soin");e(this,"id","crew_carpenter_1_week");e(this,"rank",l.RANKS.COMMON);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 semaine");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=7)}}class ju extends d{constructor(){super(...arguments);e(this,"name","Il est comme neuf !");e(this,"id","crew_carpenter_1_month");e(this,"rank",l.RANKS.RARE);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 mois");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30)}}class Qu extends d{constructor(){super(...arguments);e(this,"name","À l'occasion, je vous mettrai un petit coup de polish");e(this,"id","crew_carpenter_3_months");e(this,"rank",l.RANKS.EPIC);e(this,"description","Rester au dessus de 80% de détérioration pendant 3 mois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30*3)}}class Hu extends d{constructor(){super(...arguments);e(this,"name","Vous ne naviguez qu'en eau calme ?");e(this,"id","crew_carpenter_6_months");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Rester au dessus de 80% de détérioration pendant 6 mois");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30*6)}}class qu extends d{constructor(){super(...arguments);e(this,"name","C'est un sacré charpentier que vous avez là !");e(this,"id","crew_carpenter_1_year");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 an");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles["Charpentier Légendaire"]);e(this,"badge",u.BadgeList.carpenter);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=365)}}class Ku extends d{constructor(){super(...arguments);e(this,"name","Au rapport !");e(this,"id","crew_all_members_daily");e(this,"rank",l.RANKS.RARE);e(this,"description","Tous les membres ont rempli leurs quêtes quotidiennes");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"daily",!0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"onCrewQuestUpdate",(s,r)=>{var n,i;return Hn(s,"daily_all")&&!Se(((i=(n=s.daily)==null?void 0:n[r.user._id.toHexString()])==null?void 0:i.crew_all_members_daily)??new Date(0),new Date)&&!Se(r.lastAllMembersDaily,new Date)})}}class Wu extends d{constructor(){super(...arguments);e(this,"name","Réunion de crise");e(this,"id","crew_vocal_5");e(this,"rank",l.RANKS.COMMON);e(this,"description","Être dans un un vocal avec les 5 membres pendant 1 heure");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=5)}}class Gu extends d{constructor(){super(...arguments);e(this,"name","Conseil de guerre");e(this,"id","crew_vocal_7");e(this,"rank",l.RANKS.RARE);e(this,"description","Être dans un un vocal avec les 7 membres pendant 1 heure");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=7)}}class Vu extends d{constructor(){super(...arguments);e(this,"name","Réunion de famille");e(this,"id","crew_vocal_10");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être dans un un vocal avec les 10 membres pendant 1 heure");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=10)}}class zu extends d{constructor(){super(...arguments);e(this,"name","Les Inséparables");e(this,"id","crew_vocal_12");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être dans un un vocal avec les 12 membres pendant 1 heure");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=12)}}class Xu extends d{constructor(){super(...arguments);e(this,"name","Ambiance sectaire un peu");e(this,"id","crew_vocal_15");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Être dans un un vocal avec les 15 membres pendant 1 heure");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles["Membre d'une secte"]);e(this,"badge",u.BadgeList.shipsecte);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=15)}}const Ja=Object.freeze(Object.defineProperty({__proto__:null,CrewAllMembersDaily:Ku,CrewCarpenter1Month:ju,CrewCarpenter1Week:Tu,CrewCarpenter1Year:qu,CrewCarpenter3Months:Qu,CrewCarpenter6Months:Hu,CrewVocal10:Vu,CrewVocal12:zu,CrewVocal15:Xu,CrewVocal5:Wu,CrewVocal7:Gu},Symbol.toStringTag,{value:"Module"}));class Zu extends d{constructor(){super(...arguments);e(this,"name","Ah bah maintenant, elle va marcher beaucoup moins bien forcément !");e(this,"id","crew_break_ship");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Casser son bateau (atteindre les 0% de détérioration)");e(this,"berry",-1e6);e(this,"xp",-1e5);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.disintegration<=0)}}class Ju extends d{constructor(){super(...arguments);e(this,"name","Sympa votre barque");e(this,"id","crew_ship_level_10");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 10 d'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=10)}}class ef extends d{constructor(){super(...arguments);e(this,"name","Joli bicoque");e(this,"id","crew_ship_level_25");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 25 d'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=25)}}class tf extends d{constructor(){super(...arguments);e(this,"name","* C'est un fameux trois-mâts *");e(this,"id","crew_ship_level_50");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 50 d'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=50)}}class af extends d{constructor(){super(...arguments);e(this,"name","* Fin comme un oiseau *");e(this,"id","crew_ship_level_75");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 75 d'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=75)}}class sf extends d{constructor(){super(...arguments);e(this,"name","* Hisse et ho ! *");e(this,"id","crew_ship_level_100");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 100 d'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles.Santiano);e(this,"badge",u.BadgeList.crewship);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=100)}}class rf extends d{constructor(){super(...arguments);e(this,"name","Y'a pas de petites économies");e(this,"id","crew_have_100M_berry");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 100 000 000 Berrys dans le coffre d'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=1e8)}}class nf extends d{constructor(){super(...arguments);e(this,"name","Joli butin !");e(this,"id","crew_have_500M_berry");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 500 000 000 Berrys dans le coffre d'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e8)}}class lf extends d{constructor(){super(...arguments);e(this,"name","Vous économisez pour un nouveau bateau ?");e(this,"id","crew_have_1Md_berry");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 1 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=1e9)}}class df extends d{constructor(){super(...arguments);e(this,"name","Ça fait beaucoup là non ?");e(this,"id","crew_have_5Md_berry");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 5 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e9)}}class of extends d{constructor(){super(...arguments);e(this,"name","Karl Marx serait fier de vous !");e(this,"id","crew_have_50Md_berry");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 50 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles.Communiste);e(this,"badge",u.BadgeList.communism);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e10)}}class cf extends d{constructor(){super(...arguments);e(this,"name","Plus on est de fous...");e(this,"id","crew_size_5");e(this,"rank",l.RANKS.COMMON);e(this,"description","Être dans un équipage de 5 membres");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=5)}}class uf extends d{constructor(){super(...arguments);e(this,"name","Plus on rit !");e(this,"id","crew_size_7");e(this,"rank",l.RANKS.RARE);e(this,"description","Être dans un équipage de 7 membres");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=7)}}class ff extends d{constructor(){super(...arguments);e(this,"name","Une petite famille");e(this,"id","crew_size_10");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être dans un équipage de 10 membres");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=10)}}class hf extends d{constructor(){super(...arguments);e(this,"name","Va falloir des dortoirs en plus");e(this,"id","crew_size_12");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être dans un équipage de 12 membres");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=12)}}class pf extends d{constructor(){super(...arguments);e(this,"name","* Ah qu'est-ce qu'on est serré ! *");e(this,"id","crew_size_15");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Être dans un équipage de 15 membres");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles.Sardine);e(this,"badge",u.BadgeList.sardine);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=15)}}class mf extends d{constructor(){super(...arguments);e(this,"name","C'est sympa pour eux !");e(this,"id","crew_bring_50k_xp");e(this,"rank",l.RANKS.COMMON);e(this,"description","Rapporter 50 000 XP à l'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e4)}}class yf extends d{constructor(){super(...arguments);e(this,"name","On voit que tu aimes ton équipage");e(this,"id","crew_bring_500k_xp");e(this,"rank",l.RANKS.RARE);e(this,"description","Rapporter 500 000 XP à l'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e5)}}class gf extends d{constructor(){super(...arguments);e(this,"name","Le méritent-ils vraiment ?");e(this,"id","crew_bring_1m_xp");e(this,"rank",l.RANKS.EPIC);e(this,"description","Rapporter 1 000 000 XP à l'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=1e6)}}class wf extends d{constructor(){super(...arguments);e(this,"name","J'espère que t'as eu une prime");e(this,"id","crew_bring_5m_xp");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Rapporter 5 000 000 XP à l'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e6)}}class _f extends d{constructor(){super(...arguments);e(this,"name","Qu'on lui fasse une statue de Bronze !");e(this,"id","crew_bring_50m_xp");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Rapporter 50 000 000 XP à l'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Team Player"]);e(this,"badge",u.BadgeList.broship);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e7)}}const es=Object.freeze(Object.defineProperty({__proto__:null,CrewBeLevel10:Ju,CrewBeLevel100:sf,CrewBeLevel25:ef,CrewBeLevel50:tf,CrewBeLevel75:af,CrewBreakShip:Zu,CrewBring1mXp:gf,CrewBring500kXp:yf,CrewBring50kXp:mf,CrewBring50mXp:_f,CrewBring5mXp:wf,CrewHave100MBerry:rf,CrewHave1MdBerry:lf,CrewHave500MBerry:nf,CrewHave50MdBerry:of,CrewHave5MdBerry:df,CrewSize10:ff,CrewSize12:hf,CrewSize15:pf,CrewSize5:cf,CrewSize7:uf},Symbol.toStringTag,{value:"Module"}));class bf extends d{constructor(){super(...arguments);e(this,"name","Ne fais rien exploser hein ?");e(this,"id","have_1_recipe");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 1 recette");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=1)}}class Sf extends d{constructor(){super(...arguments);e(this,"name","C'est bien tu sais faire des pâtes !");e(this,"id","have_5_recipe");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 5 recettes");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=5)}}class Mf extends d{constructor(){super(...arguments);e(this,"name","Ta grand-mère t'as donné son livre ?");e(this,"id","have_10_recipe");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 10 recettes");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=10)}}class vf extends d{constructor(){super(...arguments);e(this,"name","Let him cook");e(this,"id","have_25_recipe");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 25 recettes");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=25)}}class kf extends d{constructor(){super(...arguments);e(this,"name","Paul Bocuse");e(this,"id","have_100_recipe");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 100 recettes");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Paul Bocuse"]);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=100)}}const ts=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:kf,Have10Recipe:Mf,Have1Recipe:bf,Have25Recipe:vf,Have5Recipe:Sf},Symbol.toStringTag,{value:"Module"}));class Rf extends d{constructor(){super(...arguments);e(this,"name","Enfin de quoi t'acheter un bon vélo !");e(this,"id","have_500000_berry");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 500 000 Berrys");e(this,"berry",1e5);e(this,"xp",5e3);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e5)}}class Cf extends d{constructor(){super(...arguments);e(this,"name","Ouah t'es multi-millionaire !");e(this,"id","have_5000000_berry");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 5 000 000 Berrys");e(this,"berry",1e6);e(this,"xp",25e3);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e6)}}class xf extends d{constructor(){super(...arguments);e(this,"name","Presque riche");e(this,"id","have_50000000_berry");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 50 000 000 Berrys");e(this,"berry",1e7);e(this,"xp",5e4);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e7)}}class Uf extends d{constructor(){super(...arguments);e(this,"name","Un 20m² à Paris");e(this,"id","have_500000000_berry");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 500 000 000 Berrys");e(this,"berry",1e8);e(this,"xp",1e5);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e8)}}class Bf extends d{constructor(){super(...arguments);e(this,"name","This is Elon Musk");e(this,"id","have_5000000000_berry");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 5 000 000 000 Berrys");e(this,"berry",1e9);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Elon Musk"]);e(this,"badge",u.BadgeList.berry);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e9)}}class Of extends d{constructor(){super(...arguments);e(this,"name","5 jours / semaine à Basic Fit");e(this,"id","have_25_strength");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de force");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.strength)>=25)}}class Af extends d{constructor(){super(...arguments);e(this,"name","La fonte > les livres");e(this,"id","have_50_strength");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de force");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.strength)>=50)}}class Df extends d{constructor(){super(...arguments);e(this,"name","Moi, musclé ?");e(this,"id","have_100_strength");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de force");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.strength)>=100)}}class Nf extends d{constructor(){super(...arguments);e(this,"name","Hercules");e(this,"id","have_250_strength");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de force");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.strength)>=250)}}class Ef extends d{constructor(){super(...arguments);e(this,"name","Titan");e(this,"id","have_500_strength");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de force");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles.Titan);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.strength)>=500)}}class $f extends d{constructor(){super(...arguments);e(this,"name","Chat de gouttière");e(this,"id","have_25_agility");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 d'agilité");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.agility)>=25)}}class Ff extends d{constructor(){super(...arguments);e(this,"name","Hop ! Grand écart !");e(this,"id","have_50_agility");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 d'agilité");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.agility)>=50)}}class If extends d{constructor(){super(...arguments);e(this,"name","Danseur étoile");e(this,"id","have_100_agility");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 d'agilité");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.agility)>=100)}}class Yf extends d{constructor(){super(...arguments);e(this,"name","L'Éclair de Konoha ! (merde mauvais manga)");e(this,"id","have_250_agility");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 d'agilité");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.agility)>=250)}}class Lf extends d{constructor(){super(...arguments);e(this,"name","Héritier de Bon Clay");e(this,"id","have_500_agility");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 d'agilité");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Bon Clay"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.agility)>=500)}}class Pf extends d{constructor(){super(...arguments);e(this,"name","2+2 = 4");e(this,"id","have_25_intelligence");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 d'intelligence");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.intelligence)>=25)}}class Tf extends d{constructor(){super(...arguments);e(this,"name","Petit Einstein");e(this,"id","have_50_intelligence");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 d'intelligence");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.intelligence)>=50)}}class jf extends d{constructor(){super(...arguments);e(this,"name","HPI");e(this,"id","have_100_intelligence");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 d'intelligence");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.intelligence)>=100)}}class Qf extends d{constructor(){super(...arguments);e(this,"name","Sorcier du savoir");e(this,"id","have_250_intelligence");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 d'intelligence");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.intelligence)>=250)}}class Hf extends d{constructor(){super(...arguments);e(this,"name","Héritier de Vegapunk");e(this,"id","have_500_intelligence");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 d'intelligence");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Vegapunk"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.intelligence)>=500)}}class qf extends d{constructor(){super(...arguments);e(this,"name","Touche du bois");e(this,"id","have_25_chance");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de chance");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.chance)>=25)}}class Kf extends d{constructor(){super(...arguments);e(this,"name","Petit veinard");e(this,"id","have_50_chance");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de chance");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.chance)>=50)}}class Wf extends d{constructor(){super(...arguments);e(this,"name","LA CHAAAAAATTE !");e(this,"id","have_100_chance");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de chance");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.chance)>=100)}}class Gf extends d{constructor(){super(...arguments);e(this,"name","Favori des Astres");e(this,"id","have_250_chance");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de chance");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.chance)>=250)}}class Vf extends d{constructor(){super(...arguments);e(this,"name","Héritier de Baggy");e(this,"id","have_500_chance");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de chance");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Baggy"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.chance)>=500)}}class zf extends d{constructor(){super(...arguments);e(this,"name","Résistant");e(this,"id","have_25_vitality");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de vitalité");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.vitality)>=25)}}class Xf extends d{constructor(){super(...arguments);e(this,"name","Solide comme un roc");e(this,"id","have_50_vitality");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de vitalité");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.vitality)>=50)}}class Zf extends d{constructor(){super(...arguments);e(this,"name","Le tank !");e(this,"id","have_100_vitality");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de vitalité");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.vitality)>=100)}}class Jf extends d{constructor(){super(...arguments);e(this,"name","Mais t'es increvable !");e(this,"id","have_250_vitality");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de vitalité");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.vitality)>=250)}}class eh extends d{constructor(){super(...arguments);e(this,"name","Héritier de Kaido");e(this,"id","have_500_vitality");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de vitalité");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Kaido"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.vitality)>=500)}}class th extends d{constructor(){super(...arguments);e(this,"name","Tu as lu des livres ?");e(this,"id","have_25_wisdom");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de sagesse");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.wisdom)>=25)}}class ah extends d{constructor(){super(...arguments);e(this,"name","Filozof");e(this,"id","have_50_wisdom");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de sagesse");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.wisdom)>=50)}}class sh extends d{constructor(){super(...arguments);e(this,"name","Platon");e(this,"id","have_100_wisdom");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de sagesse");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.wisdom)>=100)}}class rh extends d{constructor(){super(...arguments);e(this,"name","Oracle vénéré");e(this,"id","have_250_wisdom");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de sagesse");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.wisdom)>=250)}}class nh extends d{constructor(){super(...arguments);e(this,"name","Héritier d'Ohara");e(this,"id","have_500_wisdom");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de sagesse");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier d'Ohara"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.wisdom)>=500)}}class ih extends d{constructor(){super(...arguments);e(this,"name","Un pas devant l'autre !");e(this,"id","be_level_10");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 10");e(this,"berry",1e5);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=10)}}class lh extends d{constructor(){super(...arguments);e(this,"name","T'inquiète pas ça va bien se passer");e(this,"id","be_level_20");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 20");e(this,"berry",3e5);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=20)}}class dh extends d{constructor(){super(...arguments);e(this,"name","Commence par me parler poliment");e(this,"id","be_level_30");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 30");e(this,"berry",1e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=30)}}class oh extends d{constructor(){super(...arguments);e(this,"name","On te respecte à la cantine");e(this,"id","be_level_40");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 40");e(this,"berry",3e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=40)}}class ch extends d{constructor(){super(...arguments);e(this,"name","Ça commence à devenir sérieux");e(this,"id","be_level_50");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 50");e(this,"berry",5e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=50)}}class uh extends d{constructor(){super(...arguments);e(this,"name","Une chambre individuelle ? La chance !");e(this,"id","be_level_60");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 60");e(this,"berry",1e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=60)}}class fh extends d{constructor(){super(...arguments);e(this,"name","Oulah, les responsabilités arrivent");e(this,"id","be_level_70");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 70");e(this,"berry",5e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=70)}}class hh extends d{constructor(){super(...arguments);e(this,"name","Faut pas t'emmerder toi");e(this,"id","be_level_80");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 80");e(this,"berry",5e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=80)}}class ph extends d{constructor(){super(...arguments);e(this,"name","Là on parle !");e(this,"id","be_level_90");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 90");e(this,"berry",1e8);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=90)}}class mh extends d{constructor(){super(...arguments);e(this,"name","*S'agenouille*");e(this,"id","be_level_120");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 120");e(this,"berry",1e9);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=120)}}class yh extends d{constructor(){super(...arguments);e(this,"name","T'as des amis ?");e(this,"id","daily_vocal");e(this,"rank",l.RANKS.COMMON);e(this,"description","Se connecter 10 min en vocal");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*5e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*500);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserMetaUpdate",({xp:s})=>s.voice.minutesInVoiceToday>=10&&Se(s.voice.lastConnection,new Date))}}const as=Object.freeze(Object.defineProperty({__proto__:null,BeLevel10:ih,BeLevel120:mh,BeLevel20:lh,BeLevel30:dh,BeLevel40:oh,BeLevel50:ch,BeLevel60:uh,BeLevel70:fh,BeLevel80:hh,BeLevel90:ph,DailyVocal:yh,Have100Agility:If,Have100Chance:Wf,Have100Intelligence:jf,Have100Strength:Df,Have100Vitality:Zf,Have100Wisdom:sh,Have250Agility:Yf,Have250Chance:Gf,Have250Intelligence:Qf,Have250Strength:Nf,Have250Vitality:Jf,Have250Wisdom:rh,Have25Agility:$f,Have25Chance:qf,Have25Intelligence:Pf,Have25Strength:Of,Have25Vitality:zf,Have25Wisdom:th,Have500Agility:Lf,Have500Chance:Vf,Have500Intelligence:Hf,Have500Strength:Ef,Have500Vitality:eh,Have500Wisdom:nh,Have500kBerry:Rf,Have500mBerry:Uf,Have50Agility:Ff,Have50Chance:Kf,Have50Intelligence:Tf,Have50Strength:Af,Have50Vitality:Xf,Have50Wisdom:ah,Have50mBerry:xf,Have5mBerry:Cf,Have5mdBerry:Bf},Symbol.toStringTag,{value:"Module"}));class gh extends d{constructor(){super(...arguments);e(this,"name","Un poster dans ta chambre");e(this,"id","have_1_background");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 1 background");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(r=>r!=="default").length>=1)}}class wh extends d{constructor(){super(...arguments);e(this,"name","Fan de One Piece");e(this,"id","have_25_background");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 25 backgrounds différents");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(r=>r!=="default").length>=25)}}class _h extends d{constructor(){super(...arguments);e(this,"name","Tu vas en faire quoi ? Tu peux en mettre qu'un");e(this,"id","have_50_background");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 50 backgrounds différents");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(r=>r!=="default").length>=50)}}class bh extends d{constructor(){super(...arguments);e(this,"name","PTDR t ki ?");e(this,"id","have_10_title");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 10 titres différents");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=10)}}class Sh extends d{constructor(){super(...arguments);e(this,"name","On m'appelle Personne");e(this,"id","have_50_title");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 50 titres différents");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=50)}}class Mh extends d{constructor(){super(...arguments);e(this,"name","Ok Daenerys");e(this,"id","have_100_title");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 100 titres différents");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=100)}}const ss=Object.freeze(Object.defineProperty({__proto__:null,Have100Title:Mh,Have10Title:bh,Have1Background:gh,Have25Background:wh,Have50Background:_h,Have50Title:Sh},Symbol.toStringTag,{value:"Module"}));class vh extends d{constructor(){super(...arguments);e(this,"name","Petit joueur");e(this,"id","bet_min_value");e(this,"rank",l.RANKS.RARE);e(this,"description","Mise la somme minimale lors d'un pari");e(this,"berry",5e4);e(this,"xp",1e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles["Petit joueur"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.betMin)}}class kh extends d{constructor(){super(...arguments);e(this,"name","On a tous le droit à une seconde chance");e(this,"id","lose_everything");e(this,"rank",l.RANKS.RARE);e(this,"description","Perdre tous ses Berrys");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.loseEverything)}}class Rh extends d{constructor(){super(...arguments);e(this,"name","T'es sûr de toi ?");e(this,"id","bet_10M");e(this,"rank",l.RANKS.EPIC);e(this,"description","Miser plus de 10 000 000 de Berrys en une seule fois");e(this,"berry",5e5);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.bet10M)}}class Ch extends d{constructor(){super(...arguments);e(this,"name","Ok j'ai rien dit");e(this,"id","win_10M_bet");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Gagner en ayant misé plus de 10M de Berrys");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.winBet10M)}}class xh extends d{constructor(){super(...arguments);e(this,"name","T'es accro là non ?");e(this,"id","bet_total_10M");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Miser plus de 10 000 000 de Berrys en tout");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles["Gambling addict"]);e(this,"badge",u.BadgeList.casino);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.totalBet>=1e7)}}class Uh extends d{constructor(){super(...arguments);e(this,"name","LE MILLIARD");e(this,"id","bet_total_1Md");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Miser plus de 1 000 000 000 de Berrys en tout");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"badge",u.BadgeList.casino);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.totalBet>=1e9)}}class Bh extends d{constructor(){super(...arguments);e(this,"name","Cheh !");e(this,"id","lose_10M");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Perdre 10M de Berrys en une fois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",u.BadgeList.noluck);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.lose10M)}}class Oh extends d{constructor(){super(...arguments);e(this,"name","Bon anniversaire !");e(this,"id","birthday");e(this,"rank",l.RANKS.EPIC);e(this,"description","Fêter son anniversaire");e(this,"berry",1e6);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.hasCelebrateBirthday)}}class Ah extends d{constructor(){super(...arguments);e(this,"name","Il ne va pas te répondre tu sais ?");e(this,"id","bot_ping");e(this,"rank",l.RANKS.EPIC);e(this,"description","Ping le bot 100 fois");e(this,"berry",25e4);e(this,"xp",25e3);e(this,"secret",!0);e(this,"title",u.questTitles.Teubé);e(this,"badge",null);e(this,"asset",u.profileAssets.idiot);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({botPing:s})=>s>=100)}}class Dh extends d{constructor(){super(...arguments);e(this,"name","Tu avais soif ?");e(this,"id","drink_100_xp_bottles_1_day");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 100 Potions d'XP en une journée");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.today>=100)}}class Nh extends d{constructor(){super(...arguments);e(this,"name","Un ptit goût amer non ?");e(this,"id","drink_200");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 200 Potions d'XP");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=200)}}class Eh extends d{constructor(){super(...arguments);e(this,"name","Ça se boit bien finalement");e(this,"id","drink_500");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 500 Potions d'XP");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=500)}}class $h extends d{constructor(){super(...arguments);e(this,"name","Les potions donnent des aiiiiles !");e(this,"id","drink_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 1000 Potions d'XP");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=1e3)}}class Fh extends d{constructor(){super(...arguments);e(this,"name","À deux doigts de vomir");e(this,"id","drink_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 2000 Potions d'XP");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=2e3)}}class Ih extends d{constructor(){super(...arguments);e(this,"name","Alcoolique");e(this,"id","drink_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 5000 Potions d'XP");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Alcoolique);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=5e3)}}class Yh extends d{constructor(){super(...arguments);e(this,"name","C'est sympa ce ptit jeu");e(this,"id","chest_open_50");e(this,"rank",l.RANKS.COMMON);e(this,"description","Ouvrir 50 Coffres");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=50)}}class Lh extends d{constructor(){super(...arguments);e(this,"name","T'as enfin eu un truc intéressant ?");e(this,"id","chest_open_150");e(this,"rank",l.RANKS.RARE);e(this,"description","Ouvrir 150 Coffres");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=150)}}class Ph extends d{constructor(){super(...arguments);e(this,"name","Ça commence à gratter hein ?");e(this,"id","chest_open_500");e(this,"rank",l.RANKS.EPIC);e(this,"description","Ouvrir 500 Coffres");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=500)}}class Th extends d{constructor(){super(...arguments);e(this,"name","LAISSEZ-MOI OUVRIR DES COFFRES !");e(this,"id","chest_open_1000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Ouvrir 1000 Coffres");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=1e3)}}class jh extends d{constructor(){super(...arguments);e(this,"name","xXFan2GenshinXx");e(this,"id","chest_open_2000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Ouvrir 2000 Coffres");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Gatcha Addict"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=2e3)}}class Qh extends d{constructor(){super(...arguments);e(this,"name","Ils font mieux chez Ikea");e(this,"id","craft_20_times");e(this,"rank",l.RANKS.COMMON);e(this,"description","Effectuer 20 crafts");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=20)}}class Hh extends d{constructor(){super(...arguments);e(this,"name","Te fais pas mal avec le marteau");e(this,"id","craft_50_times");e(this,"rank",l.RANKS.RARE);e(this,"description","Effectuer 50 crafts");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=50)}}class qh extends d{constructor(){super(...arguments);e(this,"name","Insensible aux échardes on dirait");e(this,"id","craft_200_times");e(this,"rank",l.RANKS.EPIC);e(this,"description","Effectuer 200 crafts");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=200)}}class Kh extends d{constructor(){super(...arguments);e(this,"name","Je ne veux pas voir l'état de ton atelier");e(this,"id","craft_500_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Effectuer 500 crafts");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=500)}}class Wh extends d{constructor(){super(...arguments);e(this,"name","Mac Gyver");e(this,"id","craft_1000_times");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Effectuer 1000 crafts");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Mac Gyver"]);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=1e3)}}class Gh extends d{constructor(){super(...arguments);e(this,"name","Apprenti Gourmand");e(this,"id","craft_10_cooked_meals");e(this,"rank",l.RANKS.COMMON);e(this,"description","Cuisiner 10 plats");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"asset",null);e(this,"title",u.questTitles["Apprenti Gourmand"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=10)}}class Vh extends d{constructor(){super(...arguments);e(this,"name","Chef Amateur");e(this,"id","craft_50_cooked_meals");e(this,"rank",l.RANKS.RARE);e(this,"description","Cuisiner 50 plats");e(this,"berry",2e5);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",u.questTitles["Chef Amateur"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=50)}}class zh extends d{constructor(){super(...arguments);e(this,"name","Maître des Saveurs");e(this,"id","craft_100_cooked_meals");e(this,"rank",l.RANKS.EPIC);e(this,"description","Cuisiner 100 plats");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles["Maître des Saveurs"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=100)}}class Xh extends d{constructor(){super(...arguments);e(this,"name","Artiste Culinaire");e(this,"id","craft_250_cooked_meals");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Cuisiner 250 plats");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"asset",null);e(this,"title",u.questTitles["Artiste Culinaire"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=250)}}class Zh extends d{constructor(){super(...arguments);e(this,"name","Sultan des Épices");e(this,"id","craft_500_cooked_meals");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Cuisiner 500 plats");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"asset",null);e(this,"title",u.questTitles["Sultan des Épices"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=500)}}class Jh extends d{constructor(){super(...arguments);e(this,"name","C'est une bonne situation ça scribe ?");e(this,"id","craft_5_scrolls");e(this,"rank",l.RANKS.COMMON);e(this,"description","Craft 5 Parchemins");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"asset",null);e(this,"title",u.questTitles["Apprenti Scribe"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=5)}}class ep extends d{constructor(){super(...arguments);e(this,"name","Artisan des Runes");e(this,"id","craft_10_scrolls");e(this,"rank",l.RANKS.RARE);e(this,"description","Craft 10 Parchemins");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",u.questTitles["Artisan des Runes"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=10)}}class tp extends d{constructor(){super(...arguments);e(this,"name","Collectionneur des Manuscrits");e(this,"id","craft_20_scrolls");e(this,"rank",l.RANKS.EPIC);e(this,"description","Craft 20 Parchemins");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles["Collectionneur de Manuscrits"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=20)}}class ap extends d{constructor(){super(...arguments);e(this,"name","Maître des Enluminures");e(this,"id","craft_50_scrolls");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Craft 50 Parchemins");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"asset",null);e(this,"title",u.questTitles["Maître des Enluminures"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=50)}}class sp extends d{constructor(){super(...arguments);e(this,"name","Protecteur du Savoir");e(this,"id","craft_100_scrolls");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Craft 100 Parchemins");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"asset",null);e(this,"title",u.questTitles["Protecteur du Savoir"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=100)}}class rp extends d{constructor(){super(...arguments);e(this,"name","Egoïste...");e(this,"id","crew_10_percent");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être à 10% d'XP pour l'équipage pendant 3 mois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles.Egoïste);e(this,"badge",u.BadgeList.selfish);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.timeAt10Percent>=90)}}class np extends d{constructor(){super(...arguments);e(this,"name","Merci bien camarade !");e(this,"id","crew_90_percent");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être à 90% d'XP pour l'équipage pendant 3 mois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles.Camarade);e(this,"badge",u.BadgeList.camarade);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.timeAt90Percent>=90)}}class ip extends d{constructor(){super(...arguments);e(this,"name","Vaut mieux ça que perdre non ?");e(this,"id","draw_100");e(this,"rank",l.RANKS.COMMON);e(this,"description","Faire 100 égalités");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=100)}}class lp extends d{constructor(){super(...arguments);e(this,"name","Tu as trouvé ton rival");e(this,"id","draw_300");e(this,"rank",l.RANKS.RARE);e(this,"description","Faire 300 égalités");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=300)}}class dp extends d{constructor(){super(...arguments);e(this,"name","Rathon c'est toi ?");e(this,"id","draw_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Faire 1000 égalités");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=1e3)}}class op extends d{constructor(){super(...arguments);e(this,"name","Tu te bats contre un mur ou quoi ?");e(this,"id","draw_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 2000 égalités");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=2e3)}}class cp extends d{constructor(){super(...arguments);e(this,"name","De vrais jumeaux");e(this,"id","draw_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Faire 5000 égalités");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Égalitaire);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=5e3)}}class up extends d{constructor(){super(...arguments);e(this,"name","Y'a un truc que t'as pas compris ?");e(this,"id","edito_read_100");e(this,"rank",l.RANKS.EPIC);e(this,"description","Lire 100 fois l'édito en une journée");e(this,"berry",25e4);e(this,"xp",25e3);e(this,"secret",!0);e(this,"crew",!1);e(this,"daily",!1);e(this,"title",u.questTitles.Culturé);e(this,"badge",null);e(this,"asset",u.profileAssets.edito);e(this,"isFactionBadge",!1);e(this,"onUserQuestMetaUpdate",s=>s.edito.readToday>=100)}}class fp extends d{constructor(){super(...arguments);e(this,"name","Une fois, pas deux");e(this,"id","everyone");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Tenter de tag everyone");e(this,"berry",-1e6);e(this,"xp",-5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.tagEveryone)}}class hp extends d{constructor(){super(...arguments);e(this,"name","Emoji Diable");e(this,"id","double_six");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 50 fois un double six");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"badge",u.BadgeList.doublesix);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.double_six>=50)}}class pp extends d{constructor(){super(...arguments);e(this,"name","Pas de chance ^^");e(this,"id","draw_double_six");e(this,"rank",l.RANKS.RARE);e(this,"description","Faire une fois une égalité en double 6");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.drawDoubleSix>=1)}}class mp extends d{constructor(){super(...arguments);e(this,"name","Jamais 6 sans 7");e(this,"id","seven_quitte_ou_double");e(this,"rank",l.RANKS.MYTHIC);e(this,"description",'Gagner 7 fois de suite "Doubles" au Quitte ou Double');e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"badge",u.BadgeList.chance);e(this,"title",u.questTitles.Chanceux);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.sevenQuitteOuDouble>=1)}}class yp extends d{constructor(){super(...arguments);e(this,"name","Le 5 à la suite");e(this,"id","win_5_in_row");e(this,"rank",l.RANKS.EPIC);e(this,"description","Gagner aux 5 jeux du casino à la suite");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const r=s.lastGames.slice(0,5);return r.length<5||Pa(r,n=>n.gameType).length<5?!1:r.reduce((n,i)=>n+i.endState,0)===5})}}class gp extends d{constructor(){super(...arguments);e(this,"name","Le 5 à la suite, mais dans l'autre sens");e(this,"id","lose_5_in_row");e(this,"rank",l.RANKS.EPIC);e(this,"description","Perdre aux 5 jeux du casino à la suite");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const r=s.lastGames.slice(0,5);return r.length!==5||Pa(r,n=>n.gameType).length<5?!1:r.reduce((n,i)=>n+i.endState,0)===-5})}}class wp extends d{constructor(){super(...arguments);e(this,"name","Jacques le noir");e(this,"id","ten_black_jack");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 10 fois BlackJack");e(this,"berry",5e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"badge",u.BadgeList["black-jack"]);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.black_jack>=10)}}class _p extends d{constructor(){super(...arguments);e(this,"name","La feuille enveloppe la pierre ! T'es sûr ?");e(this,"id","paper_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Papier au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles.Papyrus);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="paper"&&s.rps.nb>=100)}}class bp extends d{constructor(){super(...arguments);e(this,"name","On fait la paire !");e(this,"id","scissor_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Ciseaux au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles.Couturier);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="scissor"&&s.rps.nb>=100)}}class Sp extends d{constructor(){super(...arguments);e(this,"name","Golem");e(this,"id","rock_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Pierre au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles.Golem);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="rock"&&s.rps.nb>=100)}}class Mp extends d{constructor(){super(...arguments);e(this,"name","LE NEUF ET LE HUIT !!!");e(this,"id","guess_in_one");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Deviner le Juste Prix en un coup");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.guessInOne>=1)}}class vp extends d{constructor(){super(...arguments);e(this,"name","Sataniste");e(this,"id","bet_666_50_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Miser 666 Berry au moins une fois par jour pendant 1 mois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"title",u.questTitles.Démon);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"badge",null);e(this,"asset",u.profileAssets.satan);e(this,"onUserQuestMetaUpdate",s=>s.bet666.amount>=30)}}class kp extends d{constructor(){super(...arguments);e(this,"name","Jour, Nuit");e(this,"id","win_lose_10_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description",'Faire un enchaînement "Victoire/Défaite" 10 fois de suite');e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const r=s.lastGames;if(r.length!==20)return!1;for(let n=0;n<r.length;n++)if(n%2===0&&r[n].endState!==1||n%2!==0&&r[n].endState!==-1)return!1;return!0})}}class Rp extends d{constructor(){super(...arguments);e(this,"name","Explorateur novice");e(this,"id","finish_10_raids");e(this,"rank",l.RANKS.COMMON);e(this,"description","Réussir 10 expéditions");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=10)}}class Cp extends d{constructor(){super(...arguments);e(this,"name","Aventurier intrépide");e(this,"id","finish_25_raids");e(this,"rank",l.RANKS.RARE);e(this,"description","Réussir 25 expéditions");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=25)}}class xp extends d{constructor(){super(...arguments);e(this,"name","Conquérant des terres");e(this,"id","finish_50_raids");e(this,"rank",l.RANKS.EPIC);e(this,"description","Réussir 50 expéditions");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=50)}}class Up extends d{constructor(){super(...arguments);e(this,"name","Pionnier des secrets");e(this,"id","finish_100_raids");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Réussir 100 expéditions");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=100)}}class Bp extends d{constructor(){super(...arguments);e(this,"name","Légende vivante");e(this,"id","finish_200_raids");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Réussir 200 expéditions");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Légende vivante"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=200)}}class Op extends d{constructor(){super(...arguments);e(this,"name","Vif");e(this,"id","random_message_20");e(this,"rank",l.RANKS.COMMON);e(this,"description","Récupérer 20 Messages aléatoires");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=20)}}class Ap extends d{constructor(){super(...arguments);e(this,"name","Lucky Luke");e(this,"id","random_message_50");e(this,"rank",l.RANKS.RARE);e(this,"description","Récupérer 50 Messages aléatoires");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=50)}}class Dp extends d{constructor(){super(...arguments);e(this,"name","Rapide");e(this,"id","random_message_100");e(this,"rank",l.RANKS.EPIC);e(this,"description","Récupérer 100 Messages aléatoires");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=100)}}class Np extends d{constructor(){super(...arguments);e(this,"name","Et Furieux");e(this,"id","random_message_200");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Récupérer 200 Messages aléatoires");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=200)}}class Ep extends d{constructor(){super(...arguments);e(this,"name","Ka-Chow");e(this,"id","random_message_500");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Récupérer 500 Messages aléatoires");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Flash Mc Queen"]);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=500)}}class $p extends d{constructor(){super(...arguments);e(this,"name","Collabo");e(this,"id","collabo");e(this,"rank",l.RANKS.COMMON);e(this,"description","Report une personne au staff");e(this,"berry",1e4);e(this,"xp",5e3);e(this,"secret",!0);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.reportedSomeone)}}class Fp extends d{constructor(){super(...arguments);e(this,"name","Bienvenue sur OPFR");e(this,"id","send_100_msg");e(this,"rank",l.RANKS.COMMON);e(this,"description","Envoyer 100 messages");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=100)}}class Ip extends d{constructor(){super(...arguments);e(this,"name","Une vraie pipelette");e(this,"id","send_1000_msg");e(this,"rank",l.RANKS.RARE);e(this,"description","Envoyer 1 000 messages");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=1e3)}}class Yp extends d{constructor(){super(...arguments);e(this,"name","Faites le taire ");e(this,"id","send_25000_msg");e(this,"rank",l.RANKS.EPIC);e(this,"description","Envoyer 25 000 messages");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=25e3)}}class Lp extends d{constructor(){super(...arguments);e(this,"name","Tu sors de chez toi des fois ?");e(this,"id","send_100000_msg");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Envoyer 100 000 messages");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=1e5)}}class Pp extends d{constructor(){super(...arguments);e(this,"name","J'ai pas les mots... mais toi si !");e(this,"id","send_200000_msg");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Envoyer 200 000 messages");e(this,"berry",1e8);e(this,"xp",25e4);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",u.questTitles.Spammeur);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=2e5)}}class Tp extends d{constructor(){super(...arguments);e(this,"name","T'as reçu ton argent de poche ?");e(this,"id","spend_shop_5m");e(this,"rank",l.RANKS.COMMON);e(this,"description","Dépenser 5 000 000 Berrys dans la boutique");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e6)}}class jp extends d{constructor(){super(...arguments);e(this,"name","Tu t'es fait plaisir !");e(this,"id","spend_shop_50m");e(this,"rank",l.RANKS.RARE);e(this,"description","Dépenser 50 000 000 Berrys dans la boutique");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e7)}}class Qp extends d{constructor(){super(...arguments);e(this,"name","C'était les soldes j'espère !");e(this,"id","spend_shop_500m");e(this,"rank",l.RANKS.EPIC);e(this,"description","Dépenser 500 000 000 Berrys dans la boutique");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e8)}}class Hp extends d{constructor(){super(...arguments);e(this,"name","Paré pour la Fashion Week");e(this,"id","spend_shop_5ml");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Dépenser 5 000 000 000 Berrys dans la boutique");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e9)}}class qp extends d{constructor(){super(...arguments);e(this,"name","Fashion Viktim");e(this,"id","spend_shop_50ml");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Dépenser 50 000 000 000 Berrys dans la boutique");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",u.questTitles["Fashion Viktim"]);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e10)}}class Kp extends d{constructor(){super(...arguments);e(this,"name","On commence à se connaître");e(this,"id","voice_1_hours");e(this,"rank",l.RANKS.COMMON);e(this,"description","Se connecter 10h en vocal");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*10)}}class Wp extends d{constructor(){super(...arguments);e(this,"name","Je sais tout de toi");e(this,"id","voice_10_hours");e(this,"rank",l.RANKS.RARE);e(this,"description","Se connecter 25h en vocal");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*25)}}class Gp extends d{constructor(){super(...arguments);e(this,"name","T'as pas soif ?");e(this,"id","voice_250_hours");e(this,"rank",l.RANKS.EPIC);e(this,"description","Se connecter 250h en vocal");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*250)}}class Vp extends d{constructor(){super(...arguments);e(this,"name","Ok Socrate");e(this,"id","voice_2500_hours");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Se connecter 2500h en vocal");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*2500)}}class zp extends d{constructor(){super(...arguments);e(this,"name","Elle ressemble à quoi la lumière du soleil ?");e(this,"id","voice_5000_hours");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Se connecter 5000h en vocal");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Ermite);e(this,"badge",u.BadgeList.ermite);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*5e3)}}class Xp extends d{constructor(){super(...arguments);e(this,"name","Stagiaire");e(this,"id","work_100");e(this,"rank",l.RANKS.COMMON);e(this,"description","Travailler 100 fois");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=100)}}class Zp extends d{constructor(){super(...arguments);e(this,"name","Alternant");e(this,"id","work_300");e(this,"rank",l.RANKS.RARE);e(this,"description","Travailler 300 fois");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=300)}}class Jp extends d{constructor(){super(...arguments);e(this,"name","Smicard");e(this,"id","work_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Travailler 1000 fois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=1e3)}}class em extends d{constructor(){super(...arguments);e(this,"name","Communiste");e(this,"id","work_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Travailler 2000 fois");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=2e3)}}class tm extends d{constructor(){super(...arguments);e(this,"name","Esclave");e(this,"id","work_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Travailler 5000 fois");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Esclave);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=5e3)}}class am extends d{constructor(){super(...arguments);e(this,"name","Timide");e(this,"id","write_10_chats");e(this,"rank",l.RANKS.COMMON);e(this,"description","Écrire dans 10 chats différents");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=10)}}class sm extends d{constructor(){super(...arguments);e(this,"name","Curieux");e(this,"id","write_20_chats");e(this,"rank",l.RANKS.RARE);e(this,"description","Écrire dans 20 chats différents");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=20)}}class rm extends d{constructor(){super(...arguments);e(this,"name","Voyeur");e(this,"id","write_50_chats");e(this,"rank",l.RANKS.EPIC);e(this,"description","Écrire dans 50 chats différents");e(this,"berry",5e5);e(this,"xp",5e4);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=50)}}class nm extends d{constructor(){super(...arguments);e(this,"name","Philanthrope");e(this,"id","write_100_chats");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Écrire dans 100 chats différents");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=100)}}class im extends d{constructor(){super(...arguments);e(this,"name","Explorateur");e(this,"id","write_200_chats");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Écrire dans 200 chats différents");e(this,"berry",1e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Explorateur);e(this,"badge",u.BadgeList.exploration);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=200)}}class lm extends d{constructor(){super(...arguments);e(this,"name","Jeune étudiant");e(this,"id","drink_50_alcohols");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 50 alcools");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Jeune étudiant"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=50)}}class dm extends d{constructor(){super(...arguments);e(this,"name","Habitué des bars");e(this,"id","drink_250_alcohols");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 250 alcools");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Habitué des bars"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=250)}}class om extends d{constructor(){super(...arguments);e(this,"name","Alcoolique notoire");e(this,"id","drink_500_alcohols");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 500 alcools");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Alcoolique notoire"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=500)}}class cm extends d{constructor(){super(...arguments);e(this,"name","Ivrogne");e(this,"id","drink_1000_alcohols");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 1000 alcools");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Ivrogne);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=1e3)}}class um extends d{constructor(){super(...arguments);e(this,"name","Breton");e(this,"id","drink_2000_alcohols");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 2000 alcools");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Breton);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=2e3)}}class fm extends d{constructor(){super(...arguments);e(this,"name","Buveur de Rhum");e(this,"id","drink_10_rhum");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Rhums");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=10)}}class hm extends d{constructor(){super(...arguments);e(this,"name","Amateur de Rhum");e(this,"id","drink_100_rhum");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Rhums");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=100)}}class pm extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Rhum");e(this,"id","drink_250_rhum");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Rhums");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=250)}}class mm extends d{constructor(){super(...arguments);e(this,"name","Rhumologue");e(this,"id","drink_500_rhum");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Rhums");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Rhumologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=500)}}class ym extends d{constructor(){super(...arguments);e(this,"name","Dieu du Rhum");e(this,"id","drink_1000_rhum");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Rhums");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu du Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=1e3)}}class gm extends d{constructor(){super(...arguments);e(this,"name","Buveur de Bière");e(this,"id","drink_10_beer");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Bières");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Bière"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=10)}}class wm extends d{constructor(){super(...arguments);e(this,"name","Amateur de Bière");e(this,"id","drink_100_beer");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Bières");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=100)}}class _m extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Bière");e(this,"id","drink_250_beer");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Bières");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=250)}}class bm extends d{constructor(){super(...arguments);e(this,"name","Bièrologue");e(this,"id","drink_500_beer");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Bières");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Bièrologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=500)}}class Sm extends d{constructor(){super(...arguments);e(this,"name","Dieu de la Bière");e(this,"id","drink_1000_beer");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Bières");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu de la Bière"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=1e3)}}class Mm extends d{constructor(){super(...arguments);e(this,"name","Buveur de Vin");e(this,"id","drink_10_wine");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Vins");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=10)}}class vm extends d{constructor(){super(...arguments);e(this,"name","Amateur de Vin");e(this,"id","drink_100_wine");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Vins");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=100)}}class km extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Vin");e(this,"id","drink_250_wine");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Vins");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=250)}}class Rm extends d{constructor(){super(...arguments);e(this,"name","Vinologue");e(this,"id","drink_500_wine");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Vins");e(this,"berry",1e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Vinologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=500)}}class Cm extends d{constructor(){super(...arguments);e(this,"name","Dieu du Vin");e(this,"id","drink_1000_wine");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Vins");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu du Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=1e3)}}const rs=Object.freeze(Object.defineProperty({__proto__:null,Bet10M:Rh,Bet666:vp,BetMinValue:vh,Birthday:Oh,BotPing:Ah,ChestOpen1000Quest:Th,ChestOpen150Quest:Lh,ChestOpen2000Quest:jh,ChestOpen500Quest:Ph,ChestOpen50Quest:Yh,Craft1000Times:Wh,Craft100CookedMeals:zh,Craft100Scrolls:sp,Craft10CookedMeals:Gh,Craft10Scrolls:ep,Craft200Times:qh,Craft20Scrolls:tp,Craft20Times:Qh,Craft250CookedMeals:Xh,Craft500CookedMeals:Zh,Craft500Times:Kh,Craft50CookedMeals:Vh,Craft50Scrolls:ap,Craft50Times:Hh,Craft5Scrolls:Jh,Crew10Percent:rp,Crew90Percent:np,DoubleSix:hp,Draw1000Quest:dp,Draw100Quest:ip,Draw2000Quest:op,Draw300Quest:lp,Draw5000Quest:cp,DrawDoubleSix:pp,Drink1000Alcohols:cm,Drink1000Beer:Sm,Drink1000Quest:$h,Drink1000Rhum:ym,Drink1000Wine:Cm,Drink100Beer:wm,Drink100Rhum:hm,Drink100Today:Dh,Drink100Wine:vm,Drink10Beer:gm,Drink10Rhum:fm,Drink10Wine:Mm,Drink2000Alcohols:um,Drink2000Quest:Fh,Drink200Quest:Nh,Drink250Alcohols:dm,Drink250Beer:_m,Drink250Rhum:pm,Drink250Wine:km,Drink5000Quest:Ih,Drink500Alcohols:om,Drink500Beer:bm,Drink500Quest:Eh,Drink500Rhum:mm,Drink500Wine:Rm,Drink50Alcohols:lm,Edito:up,Everyone:fp,Finish100Raids:Up,Finish10Raids:Rp,Finish200Raids:Bp,Finish25Raids:Cp,Finish50Raids:xp,GuessInOne:Mp,Lose10M:Bh,LoseAll5GamesInRow:gp,LoseEverything:kh,Paper100:_p,RandomMessage100Quest:Dp,RandomMessage200Quest:Np,RandomMessage20Quest:Op,RandomMessage500Quest:Ep,RandomMessage50Quest:Ap,Report:$p,Rock100:Sp,Scissor100:bp,SevenQuitteOuDouble:mp,SpendShop500M:Qp,SpendShop50M:jp,SpendShop50Ml:qp,SpendShop5M:Tp,SpendShop5Ml:Hp,TenBlackJack:wp,TotalBet10M:xh,TotalBet1Md:Uh,Voice10Hours:Kp,Voice2500Hours:Vp,Voice250Hours:Gp,Voice25Hours:Wp,Voice5000Hours:zp,WinAll5GamesInRow:yp,WinLose10:kp,WinOn10MBet:Ch,Work1000Quest:Jp,Work100Quest:Xp,Work2000Quest:em,Work300Quest:Zp,Work5000Quest:tm,Write100Chats:nm,Write10Chats:am,Write200Chats:im,Write20Chats:sm,Write50Chats:rm,send100000Messages:Lp,send1000Messages:Ip,send100Messages:Fp,send200000Messages:Pp,send25000Messages:Yp},Symbol.toStringTag,{value:"Module"}));class xm extends d{constructor(){super(...arguments);e(this,"name","T'as pas oublié de ranger ta chambre ?");e(this,"id","daily_all");e(this,"rank",l.RANKS.RARE);e(this,"description","Finir les quêtes journalières");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*12500);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1250);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestUpdate",s=>{for(const[r,n]of Object.entries(s.daily))if(!Se(n,new Date)&&this.id!==r)return!1;return Object.keys(s.daily).filter(r=>r!==this.id).length>=5})}}const ns=Object.freeze(Object.defineProperty({__proto__:null,DailyAll:xm},Symbol.toStringTag,{value:"Module"})),Xr=[...Object.values(as),...Object.values(ss),...Object.values(ts),...Object.values(rs),...Object.values(ns),...Object.values(es),...Object.values(Ja),...Object.values(za),...Object.values(vt)],Um=async t=>{var s;const a=[];for(const r of Object.values(as)){const n=new r;if((s=n.onUserMetaUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{_userMeta:t});i&&a.push([n,i])}}a.length>0&&se("userMetaUpdate",t.user._id,a)},Bm=async t=>{var s;const a=[];for(const r of Object.values(rs)){const n=new r;if((s=n.onUserQuestMetaUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&se("userQuestMetaUpdate",t.user._id,a)},Om=["raidUnlock"],Zr=new Ms.EventEmitter,ct=(t,a,s)=>{Zr.emit(t,a,s)},Am=t=>{for(const a of Om)Zr.on(a,(s,r)=>{t(a,s,r)})},Dm=async t=>{var s,r;const a=await _s(t.user._id);l.getCurrentLevel(t.xp.amount)>=30&&!bt(a,"training")&&(await Mt(a.user._id,"training"),ct("raidUnlock",t.user._id,"training")),(((r=(s=a.obtainedRewards.training)==null?void 0:s.filter(n=>n.startsWith("end_")))==null?void 0:r.length)??0)>=4&&!bt(a,"resources")&&(await Mt(a.user._id,"resources"),ct("raidUnlock",t.user._id,"resources"))},Nm=async t=>{const a=await _s(t.user._id);Pa(t.equipmentList,s=>s.id).map(s=>S.findEquipment(s)).filter(s=>s.panoply==="adventurer").length===6&&!bt(a,"pirate_cave")&&(await Mt(a.user._id,"pirate_cave"),ct("raidUnlock",t.user._id,"pirate_cave")),(t.itemList.get("map_fragment")??0)>=5&&!bt(a,"mysterious_island")&&(await Mt(a.user._id,"mysterious_island"),await Ue(t.user._id,"map_fragment",5),ct("raidUnlock",t.user._id,"mysterious_island"))},is=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},tagEveryone:{type:Boolean,default:!1},botPing:{type:Number,default:0},writeDifferentChat:[String],messageSent:{type:Number,default:0},totalMinutesInVoice:{type:Number,default:0},hadMoreThanZeroBerry:{type:Boolean,default:!1},totalBet:{type:Number,default:0},edito:{readToday:{type:Number,default:0},lastTimeRead:{type:Date,default:new Date}},double_six:{type:Number,default:0},lastGames:{type:[{gameType:String,endState:Number}],default:[]},black_jack:{type:Number,default:0},rps:{type:{lastRps:String,nb:Number},default:{lastRps:"paper",nb:-1}},totalSpentInShop:{type:Number,default:0},work:{type:Number,default:0},draw:{type:Number,default:0},bet666:{amount:{type:Number,default:0},last:{type:Date,default:new Date(0)}},betMin:{type:Boolean,default:!1},loseEverything:{type:Boolean,default:!1},bet10M:{type:Boolean,default:!1},winBet10M:{type:Boolean,default:!1},lose10M:{type:Boolean,default:!1},items:{bottle:{total:{type:Number,default:0},today:{type:Number,default:0},last:{type:Date,default:new Date}},chest:{total:{type:Number,default:0}},alcohols:{wines:{type:Number,default:0},rhums:{type:Number,default:0},beers:{type:Number,default:0},total:{type:Number,default:0}}},randomMessage:{type:Number,default:0},timeAt10Percent:{type:Number,default:0},timeAt90Percent:{type:Number,default:0},sevenQuitteOuDouble:{type:Number,default:0},drawDoubleSix:{type:Number,default:0},guessInOne:{type:Number,default:0},crafts:{cookedMeal:{type:Number,default:0},scrolls:{type:Number,default:0},total:{type:Number,default:0}},raidFinished:{type:Number,default:0},reportedSomeone:{type:Boolean,default:!1},hasCelebrateBirthday:{type:Boolean,default:!1}});is.index({user:1}),is.post("findOneAndUpdate",async function(t){await Bm(t)});const ce=((ti=h.models)==null?void 0:ti.UserQuestMeta)||h.model("UserQuestMeta",is),k=async(t,a)=>{await ce.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},Em=async t=>{await k(t,{$inc:{work:1}})},$m=async t=>{await k(t,{$set:{hadMoreThanZeroBerry:!0}})},Fm=async t=>{await k(t,{$set:{sevenQuitteOuDouble:!0}})},Im=async t=>{await k(t,{$inc:{black_jack:1}})},Ym=async(t,a,s)=>{await k(t,{$push:{lastGames:{$each:[{gameType:a,endState:s}],$position:0,$slice:20}}})},Lm=async t=>{await k(t,{$inc:{draw:1}})},Pm=async t=>{const a=new Date;a.setDate(a.getDate()-1),a.setHours(0,0,0,0);const s=new Date;s.setDate(s.getDate()-1),s.setHours(23,59,59,999),await ce.updateOne({user:t,"bet666.last":{$gte:a,$lte:s}},{$inc:{"bet666.amount":1},$set:{"bet666.last":new Date}}),await ce.updateOne({user:t,"bet666.last":{$lt:a}},{$set:{"bet666.last":new Date,"bet666.amount":1}})},Tm=async(t,a)=>{await k(t,{$inc:{totalBet:a}})},jm=async(t,a)=>{await k(t,[{$set:{"rps.nb":{$cond:{if:{$eq:["$rps.lastRps",a]},then:{$add:["$rps.nb",1]},else:1}},"rps.lastRps":a}}])},Jr=async(t,a)=>{await k(t,{$inc:{totalSpentInShop:a}})},Qm=async(t,a,s)=>{const r=S.findEntity(s);await k(t,{$inc:{"crafts.cookedMeal":S.isCookedMeal(r)?a:0,"crafts.scrolls":S.isScrollItem(r)?a:0,"crafts.total":a}})},Hm=async t=>{await k(t,{$set:{reportedSomeone:!0}})},qm=async t=>{await k(t,{$inc:{randomMessage:1}})},Km=async t=>{await k(t,{$inc:{botPing:1}})},Wm=async t=>{await k(t,{$inc:{guessInOne:1}})},Gm=async t=>{await k(t,{$set:{hasCelebrateBirthday:!0}})},Vm=async t=>{await k(t,{$inc:{double_six:1}})},zm=async t=>{await k(t,{$inc:{drawDoubleSix:1}})},Xm=async(t,a)=>{a?await k(t,{$set:{timeAt10Percent:0}}):await k(t,{$inc:{timeAt10Percent:1}})},Zm=async(t,a)=>{a?await k(t,{$set:{timeAt90Percent:0}}):await k(t,{$inc:{timeAt90Percent:1}})},Jm=async t=>{await k(t,{$set:{tagEveryone:!0}})},e0=async t=>{await k(t,{$set:{betMin:!0}})},en=async t=>{await k(t,{$set:{loseEverything:!0}})},t0=Object.freeze(Object.defineProperty({__proto__:null,addTotalMinutesInVoice:async(t,a)=>{await k(t,{$inc:{totalMinutesInVoice:a}})},addWrittenTextChannel:async(t,a)=>{await k(t,{$addToSet:{writeDifferentChat:a}})},bet666:Pm,botPingIncrement:Km,drawDoubleSix:zm,drawIncrement:Lm,hadMoreThanZeroBerry:$m,hasBet10M:async t=>{await k(t,{$set:{bet10M:!0}})},hasBetMin:e0,hasCelebrateBirthday:Gm,hasGuessInOne:Wm,hasLose10M:async t=>{await k(t,{$set:{lose10M:!0}})},hasLoseEverything:en,hasReportedSomeone:Hm,hasSevenQod:Fm,hasTagEveryone:Jm,hasWinBet10M:async t=>{await k(t,{$set:{winBet10M:!0}})},incrementAlcoholDrink:async(t,a,s)=>{await k(t,{$inc:{"items.alcohols.wines":a==="wine"?s:0,"items.alcohols.beers":a==="beer"?s:0,"items.alcohols.rhums":a==="rhum"?s:0,"items.alcohols.total":s}})},incrementBottleUsedToday:async(t,a)=>{const s=new Date;s.setHours(0,0,0,0),await ce.updateOne({user:t,"items.bottle.last":{$gte:s}},{$inc:{"items.bottle.today":a},$set:{"items.bottle.last":new Date}}),await ce.updateOne({user:t,"items.bottle.last":{$lt:s}},{$set:{"items.bottle.last":new Date,"items.bottle.today":a}})},incrementBottleUsedTotal:async(t,a)=>{await k(t,{$inc:{"items.bottle.total":a}})},incrementChestOpenedTotal:async(t,a)=>{await k(t,{$inc:{"items.chest.total":a}})},incrementMessageSend:async t=>{await k(t,{$inc:{messageSent:1}})},randomMessageIncrement:qm,readEdito:async t=>{const a=new Date;a.setHours(0,0,0,0),await ce.updateOne({user:t,"edito.lastTimeRead":{$gte:a}},{$inc:{"edito.readToday":1},$set:{"edito.lastTimeRead":new Date}}),await ce.updateOne({user:t,"edito.lastTimeRead":{$lt:a}},{$set:{"edito.lastTimeRead":new Date,"edito.readToday":1}})},updateCrafts:Qm,updateCrew10Percent:Xm,updateCrew90Percent:Zm,updateLastGames:Ym,updateRps:jm,updateTotalBet:Tm,updateTotalSpentInShop:Jr,winBlackjack:Im,winDoubleSix:Vm,workIncrement:Em},Symbol.toStringTag,{value:"Module"})),a0=["death"],tn=new vs.EventEmitter,an=(t,a)=>{tn.emit(t,a)},s0=t=>{for(const a of a0)tn.on(a,s=>{t(a,s)})},Ge={multiplier:{type:Number,default:0},origin:String,expireAt:{type:Date,default:null},startAt:{type:Date,default:null}},ut=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},premium:{type:Date,default:null},booster:{type:Boolean,default:!1},scam:{type:Boolean,default:!1},berry:{type:Number,default:0,index:!0},xp:{lastMessageWithXp:{type:Date,default:new Date},voice:{lastConnection:{type:Date,default:new Date},minutesInVoiceToday:{type:Number,default:0}},amount:{type:Number,default:0,index:!0},boost:{type:Date,default:null}},buffs:{cooldown:{casino:{type:[Ge],default:[]},work:{type:[Ge],default:[]}},berry:{work:{type:[Ge],default:[]},global:{type:[Ge],default:[]}},drop:{work:{type:[Ge],default:[]}},xp:{global:{type:[Ge],default:[]}}},hp:{type:Number,default:100},workUnluckyStreak:{type:Number,default:0},characteristics:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}},resetCharacteristics:{free:{type:Boolean,default:!0},nextAvailable:{type:Date,default:null}},scrolls:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}}});ut.index({user:1}),ut.index({"xp.amount":-1}),ut.index({berry:-1}),ut.post("findOneAndUpdate",async function(t){await Dm(t),await Um(t),t.berry===0&&await en(t.user._id),t.hp<=0&&an("death",t.user._id)});const xe=((ai=h.models)==null?void 0:ai.UserMeta)||h.model("UserMeta",ut),sn=async t=>await xe.create({user:t}),ft=async(t,a={})=>{const s=await xe.findOne({user:t},a);return s||await sn(t)},r0=(t,a)=>xe.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0}),$=async(t,a)=>{await xe.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0})},rn=async(t,a)=>{await $(t,[{$set:{berry:{$max:[{$add:["$berry",a]},0]}}}])},n0=async(t,a)=>{await $(t,{$set:{premium:a}})},i0=async(t,a)=>{await $(t,{$set:{booster:a}})},l0=async(t,a)=>{const{xp:{boost:s}}=await r0(t,[{$set:{"xp.boost":{$cond:{if:{$or:[{$not:"$xp.boost"},{$lt:["$xp.boost",new Date]}]},then:{$add:[new Date,a]},else:{$add:["$xp.boost",a]}}}}}]);return s},ls=async(t,a)=>{if(Array.isArray(a)){for(const r of a)await ls(t,r);return}const s=S.transformToDBBuff(a);await $(t,[{$set:{[`buffs.${a.target}`]:{$map:{input:`$buffs.${a.target}`,as:"buff",in:{$cond:{if:{$eq:[{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","/"]}]},a.origin.split("/")[0]]},then:{multiplier:a.multiplier,origin:a.origin,expireAt:s.expireAt?{$cond:{if:{$lt:["$$buff.expireAt",new Date]},then:s.expireAt,else:{$add:["$$buff.expireAt",(a.endIn??0)*60*60*1e3]}}}:null,startAt:{$cond:{if:{$gte:["$$buff.startAt",new Date]},then:"$$buff.startAt",else:{$add:[new Date,(a.startIn??0)*60*60*1e3]}}}},else:"$$buff"}}}}}},{$set:{[`buffs.${a.target}`]:{$cond:{if:{$in:[a.origin.split("/")[0],{$map:{input:`$buffs.${a.target}`,as:"buff",in:{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","/"]}]}}}]},then:`$buffs.${a.target}`,else:{$concatArrays:[`$buffs.${a.target}`,[{...s}]]}}}}}])},ds=async(t,a)=>{await $(t,{$pull:{[`buffs.${a.target}`]:{origin:a.origin}}})},d0=async(t,a,s,r)=>{const n=S.fromDBToEquipableEquipment(a),i=vr(Object.values(s)),o=S.allPanoplies.find(_=>_.id===n.panoply);if(!o)return;const f=o.equipments.filter(_=>(i.find(B=>_.id===B.id)||!r&&n.id===_.id)&&(r?n.id!==_.id:!0)).length,m=f===o.equipments.length?o.fullBonus:f>=o.equipments.length/2?o.halfBonus:void 0;o.halfBonus&&"target"in o.halfBonus&&await ds(t,o.halfBonus),o.fullBonus&&"target"in o.fullBonus&&await ds(t,o.fullBonus),m&&"target"in m&&await ls(t,m)},nn=async(t,a,{userMeta:s,userInventory:r})=>{const n=s??await ft(t,{buffs:0,xp:0}),i=r??await Fe(t,{itemList:0,equipmentList:0}),f=await Be(t,n,i)-n.hp;await $(t,{$set:{hp:n.hp+Math.floor(Math.min(a,f))}})},o0=async(t,a)=>{await $(t,[{$set:{hp:{$max:[{$add:["$hp",-a]},0]}}}])},Ve=async(t,a)=>{const s=await Be(t);await $(t,[{$set:{hp:{$round:[{$multiply:[{$divide:["$hp",a]},s]},0]}}}])},c0=Object.freeze(Object.defineProperty({__proto__:null,addBerry:rn,addCharacteristics:async(t,a)=>{const s=await Be(t),r=Object.fromEntries(Object.entries(a).filter(([,n])=>n!==0).map(([n,i])=>[`characteristics.${n}`,i]));await $(t,{$inc:r}),Ve(t,s)},addMinutesInVoiceToday:async(t,a)=>{await $(t,{$inc:{"xp.voice.minutesInVoiceToday":a}})},addScrollCharacteristic:async(t,a)=>{const s=await Be(t),r=Object.fromEntries(Object.entries(a).filter(([,n])=>n!==0).map(([n,i])=>[`scrolls.${n}`,i]));await $(t,{$inc:r}),Ve(t,s)},gainHp:nn,incrementWorkUnluckyStreak:async t=>{await $(t,{$inc:{workUnluckyStreak:1}})},loseHp:o0,removeBuff:ds,resetCharacteristics:async(t,a,s)=>{const r=await Be(t,s),n={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};a?await $(t,{$set:{characteristics:n,"resetCharacteristics.free":!1}}):await $(t,{$set:{characteristics:n,"resetCharacteristics.nextAvailable":new Date(Date.now()+30*24*60*60*1e3)},$inc:{berry:-1e8}}),Ve(t,r)},resetMinutesInVoiceToday:async t=>{await $(t,{$set:{"xp.voice.minutesInVoiceToday":0}})},resetWorkUnluckyStreak:async t=>{await $(t,{$set:{workUnluckyStreak:0}})},updateBoost:l0,updateBooster:i0,updateBuff:ls,updateHp:Ve,updateLastVoiceConnection:async(t,a)=>{await $(t,{$set:{"xp.voice.lastConnection":a}})},updatePanoplyBuff:d0,updatePremium:n0,updateScam:async(t,a)=>{await $(t,{$set:{scam:a}})}},Symbol.toStringTag,{value:"Module"})),u0=async t=>{var s;const a=[];for(const r of Object.values(ts)){const n=new r;if((s=n.onUserInventoryUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&se("userInventoryUpdate",t.user._id,a)},os=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},equippedItems:{type:Object,default:{}},equipmentSave:{type:[Object],default:[]},equipmentList:{type:[{id:String,seed:Number}],default:[]},itemList:{type:Map,of:Number,default:{}},recipes:{type:[String],default:[]}},{minimize:!1});os.index({user:1}),os.post("findOneAndUpdate",async function(t){await Nm(t),await u0(t)});const ht=((si=h.models)==null?void 0:si.UserInventory)||h.model("UserInventory",os),re=async(t,a)=>{await ht.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},ne=async(t,a,s)=>{await re(t,{$inc:{[`itemList.${a}`]:s}}),await zt(t,[a])},f0=async(t,a)=>{await re(t,{$inc:Object.fromEntries(Object.entries(a).filter(([,s])=>(s??0)>0).map(([s,r])=>[`itemList.${s}`,r]))}),await zt(t,Ha(a).filter(([,s])=>s>0).map(([s])=>s))},Ue=async(t,a,s)=>{s!==0&&await re(t,[{$set:{[`itemList.${a}`]:{$max:[{$add:[`$itemList.${a}`,-s]},0]}}}])},ln=async(t,a,s)=>{await re(t,{$pull:{equipmentList:{id:a,seed:s}}})},dn=async(t,a,s,r)=>{s!==0&&(S.isEquipmentId(a)?await ln(t,a,r):await Ue(t,a,s))},h0=async(t,a)=>{await re(t,{$set:{[`itemList.${a}`]:0}})},cs=async(t,a)=>{await re(t,{$push:{equipmentList:{$each:a}}}),await zt(t,a.map(s=>s.id))},p0=async t=>{const a=await Fe(t);await re(t,{$push:{equipmentSave:a.equippedItems}})},m0=async(t,a)=>{const s=await Fe(t);if(!s.equipmentSave[a])return;Object.entries(s.equipmentSave[a]).forEach(([n,i])=>{S.EQUIPMENT_SLOT.find(o=>o===n)&&on(t,n,i)})},on=async(t,a,s)=>{const r=await Be(t);await re(t,{$set:{[`equippedItems.${a}`]:s}}),await Ve(t,r)},y0=async(t,a)=>{const s=await Be(t);await re(t,{$set:{[`equippedItems.${a}`]:null}}),await Ve(t,s)},g0=async(t,a,s,r,n)=>{for(const{itemId:f,size:m}of a)await Ue(t,f,m*r);const{itemId:i,size:o}=s;S.isEquipmentId(i)?await cs(t,[{id:i,seed:n}]):await ne(t,i,o*r)},w0=async(t,a,s,r,n)=>{await dn(t,a.id,r,n);for(const{entityId:i,quantity:o}of s)S.isEquipmentId(i)||await ne(t,i,r*o);await Ue(t,"tools",1)},_0=async(t,a,s,r)=>{await Ue(t,a,r*4),await Ue(t,"enchanted_stone",r),await ne(t,s,r)},b0=async(t,a)=>{await re(t,{$addToSet:{recipes:a}})},cn=async(t,a,s)=>{await ne(t,a,s)},un=async(t,a)=>{a.forEach(async s=>await cn(t,s.chest,s.size))},S0=Object.freeze(Object.defineProperty({__proto__:null,addEquipments:cs,addInventoryItem:ne,addInventoryItems:f0,changeEquipedEquipment:m0,craftItem:g0,dismantleEntity:w0,enchantItem:_0,equip:on,giveChest:cn,giveChests:un,removeAllItemInventory:h0,removeEquipment:ln,removeInventoryEntity:dn,removeInventoryItem:Ue,saveEquipments:p0,unequip:y0,unlockRecipe:b0},Symbol.toStringTag,{value:"Module"})),fn=async t=>await ht.create({user:t}),Fe=async(t,a={})=>{const s=await ht.findOne({user:t},a);return s||await fn(t)},us=t=>Object.fromEntries(l.CHARACTERISTICS.map(a=>[a,x.getComputedCharacteristicValue(t.characteristics[a])+t.scrolls[a]])),M0=t=>Date.now()-t.xp.lastMessageWithXp.getTime()>60*1e3,fs=t=>{const{boost:a}=t.xp;return(a!==null&&Date.now()<a.getTime()?.2:0)+Math.max(t.premium?.5:0,t.booster?.25:0)+t.buffs.xp.global.reduce((s,{expireAt:r,startAt:n,multiplier:i})=>s+((n??new Date)<=new Date&&(!r||!Ee(r))?i:0),0)},v0=t=>{const a=t.trim().length,s=2;return a<10?10*s:a>300?300*s:a*s},k0=t=>{const a=l.getCurrentLevel(t.xp.amount);return a<=10?5e3:a>10&&a<=20?1e4:a>20&&a<=30?2e4:a>30&&a<=40?3e4:a>40&&a<=50?5e4:a>50&&a<=60?75e3:a>60&&a<=70?15e4:a>70&&a<=80?25e4:a>80&&a<=90?4e5:a>90&&a<=100?75e4:a>100?14e6:0},R0=(t,a,s)=>(a*=1+fs(t),Math.ceil(a*s)),C0=(t,a,s)=>{const r=s?1:hn(t);return a<=0?a:Math.ceil(a*(r||1))},x0=t=>t.buffs.cooldown.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!Ee(s))?n:0),1),U0=t=>t.buffs.drop.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!Ee(s))?n:0),1),B0=t=>t.buffs.berry.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!Ee(s))?n:0),1),hn=t=>t.buffs.berry.global.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!Ee(s))?n:0),1),O0=t=>t.buffs.cooldown.casino.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!Ee(s))?n:0),1),Be=async(t,a,s)=>{const r=a??await ft(t,{buffs:0,xp:0}),n=s??await Fe(t,{itemList:0,equipmentList:0});return((us(r).vitality??0)+Va(n).vitality)*l.HP_PER_VITALITY+l.DEFAULT_MAX_HP},A0=Object.freeze(Object.defineProperty({__proto__:null,calcBerry:C0,calcBerryGlobalBuff:hn,calcBerryWorkBuff:B0,calcCooldownCasinoBuff:O0,calcCooldownWorkBuff:x0,calcDropWorkBuff:U0,calcMessageXp:v0,calcXp:R0,calcXpBoost:fs,getBerryRank:async t=>(await xe.aggregate([{$setWindowFields:{sortBy:{berry:-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getGlobalRank:async t=>(await xe.aggregate([{$setWindowFields:{sortBy:{"xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getMaxHp:Be,getTotalCharacteristics:us,getXpDeathPenalties:k0,hasCharacteristicRequirement:async(t,a,s,r)=>{const n=s??await ft(t,{buffs:0,xp:0}),i=r??await Fe(t,{itemList:0,equipmentList:0}),o=Qa(us(n),Va(i),(f,m)=>f+m);if("sum"in a){let f=0;for(const m of a.characteristics)f+=o[m]??0;return f>=a.sum}else{for(const f of Object.keys(a))if(o[f]<(a[f]??0))return!1;return!0}},hasMalusBuff:t=>{const a=[...t.buffs.xp.global,...t.buffs.berry.global,...t.buffs.berry.work,...t.buffs.cooldown.work,...t.buffs.cooldown.casino,...t.buffs.drop.work];for(const{multiplier:s,startAt:r,expireAt:n}of a)if(s<0&&(!n||!Ee(n))&&(r??new Date)<=new Date)return!0;return!1},isCooldownForXpPassed:M0},Symbol.toStringTag,{value:"Module"})),pn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},raid:{classic:{type:Date,default:new Date(0)},special:{type:Date,default:new Date(0)},christmas:{type:Date,default:new Date(0)}},lockUserCommand:{type:Date,default:new Date(0)},commands:{work:{type:Date,default:new Date(0)},dice:{type:Date,default:new Date(0)},qod:{type:Date,default:new Date(0)},guess:{type:Date,default:new Date(0)},blackjack:{type:Date,default:new Date(0)},rps:{type:Date,default:new Date(0)}}});pn.index({user:1});const pt=((ri=h.models)==null?void 0:ri.UserCooldown)||h.model("UserCooldown",pn),mt=async(t,a)=>{await pt.updateOne({user:t},a,{upsert:!0})},D0=async(t,a)=>{await mt(t,[{$set:{"raid.special":{$subtract:[{$ifNull:["$raid.special",new Date]},a*3600*1e3]},"raid.classic":{$subtract:[{$ifNull:["$raid.classic",new Date]},a*3600*1e3]},"raid.christmas":{$subtract:[{$ifNull:["$raid.christmas",new Date]},a*3600*1e3]}}}]),await Ga(t,"raid/special",-1*a*3600*1e3),await Ga(t,"raid/classic",-1*a*3600*1e3)},mn=async(t,a,s,r)=>{await mt(t,{$set:{[`raid.${a}`]:new Date(Date.now()+s)}}),r.raid[a]&&await Wa(t,`raid/${a}`,new Date(Date.now()+s))},N0=Object.freeze(Object.defineProperty({__proto__:null,lockUserCommand:async t=>{await mt(t,{$set:{lockUserCommand:new Date(Date.now()+2*3600*1e3)}}),await nn(t,1,{})},reduceRaidCooldown:D0,startRaidCooldown:mn,useCommand:async(t,a,s,r)=>{await mt(t,{$set:{[`commands.${a}`]:new Date(Date.now()+s)}}),r.commands[a]&&await Wa(t,`commands/${a}`,new Date(Date.now()+s))}},Symbol.toStringTag,{value:"Module"})),E0=["work","rps","blackjack","guess","qod","dice"],yn=async t=>await pt.create({user:t}),$0=async(t,a={})=>{const s=await pt.findOne({user:t},a);return s||await yn(t)},hs=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},crew:{type:h.Schema.Types.ObjectId,ref:"Crew",required:!0,index:!0},permission:String,percent:Number,lastAllMembersDaily:{type:Date,default:new Date(0)}},{minimize:!1});hs.virtual("inventory",{ref:"Crew",localField:"crew",foreignField:"_id",justOne:!0}),hs.index({user:1});const Ie=((ni=h.models)==null?void 0:ni.UserCrew)||h.model("UserCrew",hs),ps=async(t,a)=>{await Ie.updateOne({user:t},a,{upsert:!0})},F0=async(t,a)=>{await ps(t,{$set:{percent:a}})},gn=async t=>{await ps(t,{$set:{lastAllMembersDaily:new Date}})},I0=Object.freeze(Object.defineProperty({__proto__:null,allMembersDailyComplete:gn,updatePercent:F0},Symbol.toStringTag,{value:"Module"})),wn=t=>Ie.findOne({user:t}),Y0=async(t,a,s,r)=>await Ie.create({user:t,crew:a,percent:r,permission:s}),L0=t=>Ie.exists({user:t}),P0=async t=>{await Ie.deleteOne({user:t})},_n=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},xpYesterday:{type:Number,default:0},berryYesterday:{type:Number,default:0},previousOrnament:{unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},unlockedBackgrounds:{type:[String],default:[]}},previousCompletedQuest:{type:[String],default:[]},previousMessageSent:{type:Number,default:0}});_n.index({user:1});const Xt=((ii=h.models)==null?void 0:ii.UserDailyReport)||h.model("UserDailyReport",_n),bn=async(t,a)=>{await Xt.updateOne({user:t},a,{upsert:!0})},T0=Object.freeze(Object.defineProperty({__proto__:null,updateDailyReport:async(t,a)=>{await bn(t,{$set:{xpYesterday:a.meta.xp.amount,berryYesterday:a.meta.berry,previousCompletedQuest:a.quest.completed,"previousOrnament.unlockedBadges":a.ornaments.unlockedBadges,"previousOrnament.unlockedTitles":a.ornaments.unlockedTitles,"previousOrnament.unlockedBackgrounds":a.ornaments.unlockedBackgrounds,previousMessageSent:a.questMeta.messageSent}})}},Symbol.toStringTag,{value:"Module"})),Sn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},guess:{type:{tries:Number,amount:Number,numberToGuess:Number,lastGuess:Number},default:null}});Sn.index({user:1});const yt=((li=h.models)==null?void 0:li.UserGames)||h.model("UserGames",Sn),Zt=async(t,a)=>{await yt.updateOne({user:t},a,{upsert:!0})},j0=Object.freeze(Object.defineProperty({__proto__:null,resetGuessGame:async t=>{await Zt(t,{$set:{guess:null}})},setGuessGame:async(t,a,s,r)=>{await Zt(t,{$set:{guess:{amount:a,tries:s,numberToGuess:r,lastGuess:0}}})},updateGuessGame:async t=>{await Zt(t,{$inc:{"guess.tries":1},$set:{"guess.lastGuess":Date.now()}})}},Symbol.toStringTag,{value:"Module"})),Mn=async t=>await yt.create({user:t}),Q0=async(t,a)=>{const s=await yt.findOne({user:t},a);return s||await Mn(t)},H0=async t=>{var s;const a=[];for(const r of Object.values(ss)){const n=new r;if((s=n.onUserOrnamentsUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&se("userOrnamentsUpdate",t.user._id,a)},ms=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},unlockedFactionBadges:{type:[String],default:[]},unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},selectedTitle:{type:String,default:null},unlockedBackgrounds:{type:[String],default:["default"]},selectedBackground:{type:String,default:"default"},unlockedProfileAssets:{type:[String],default:[]},unlockedBags:{type:[String],default:["default"]},selectedBag:{type:String,default:"default"}});ms.index({user:1}),ms.post("findOneAndUpdate",async function(t){await H0(t)});const gt=((di=h.models)==null?void 0:di.UserOrnaments)||h.model("UserOrnaments",ms),K=async(t,a)=>{await gt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},ys=async(t,a)=>{await K(t,{$addToSet:{unlockedTitles:a}})},q0=async(t,a)=>{await K(t,{$addToSet:{unlockedTitles:{$each:a}}})},K0=async(t,a)=>{await K(t,{$set:{selectedTitle:a}})},vn=async(t,a)=>{await K(t,{$addToSet:{unlockedBackgrounds:a}})},W0=async(t,a)=>{await K(t,{$addToSet:{unlockedBackgrounds:{$each:a}}})},G0=async(t,a)=>{await K(t,{$set:{selectedBackground:a}})},kn=async(t,a,s)=>{a.isProgressive?await K(t,{$addToSet:{unlockedBadges:`${a.id}_${s}`}}):await K(t,{$addToSet:{unlockedBadges:a.id}})},Rn=async(t,a)=>{await K(t,{$addToSet:{unlockedFactionBadges:{$each:[`b_marine_${a}`,`b_revolutionary_${a}`,`b_pirate_${a}`]}}})},Cn=async(t,a)=>{await K(t,{$addToSet:{unlockedProfileAssets:a}})},V0=Object.freeze(Object.defineProperty({__proto__:null,selectBackground:G0,selectBag:async(t,a)=>{await K(t,{$set:{selectedBag:a}})},selectTitle:K0,unlockBackground:vn,unlockBackgrounds:W0,unlockBadge:kn,unlockBag:async(t,a)=>{await K(t,{$addToSet:{unlockedBags:a}})},unlockFactionBadge:Rn,unlockProfileAsset:Cn,unlockTitle:ys,unlockTitles:q0},Symbol.toStringTag,{value:"Module"})),xn=async t=>await gt.create({user:t}),z0=async(t,a)=>{const s=await gt.findOne({user:t},a);return s||await xn(t)},X0=async t=>{var s;const a=[];for(const r of Object.values(ns)){const n=new r;if((s=n.onUserQuestUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{_userQuest:t});i&&a.push([n,i])}}a.length>0&&se("userQuestUpdate",t.user._id,a)},gs=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},completed:{type:[String],default:[]},daily:{type:Object,default:{}},streak:{type:Number,default:0},lastFullComplete:{type:Date,default:new Date}},{minimize:!1});gs.index({user:1}),gs.post("findOneAndUpdate",async function(t){await X0(t)});const wt=((oi=h.models)==null?void 0:oi.UserQuest)||h.model("UserQuest",gs),_t=async(t,a)=>{await wt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},Un=async(t,a)=>{await _t(t,{$addToSet:{completed:a}})},Bn=async(t,a)=>{await _t(t,[{$addFields:{[`daily.${a}`]:new Date}}])},On=async(t,a)=>{Se(ja(),a)?await _t(t,{$inc:{streak:1},$set:{lastFullComplete:new Date}}):await _t(t,{$set:{lastFullComplete:new Date,streak:1}})},Z0=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Bn,completeQuest:Un,updateStreak:On},Symbol.toStringTag,{value:"Module"})),An=async t=>await wt.create({user:t}),ws=async t=>{const a=await wt.findOne({user:t});return a||await An(t)},bt=(t,a)=>{var s;return(s=t.unlocked)==null?void 0:s[a]},J0=Object.freeze(Object.defineProperty({__proto__:null,alreadyObtainedRaidReward:(t,a,s)=>a in t.obtainedRewards?t.obtainedRewards[a].includes(s):!1,fulfillCondition:(t,a,s,r)=>r==="include"?s.every(n=>(t.obtainedConditions[a]??[]).includes(n)):s.every(n=>!(t.obtainedConditions[a]??[]).includes(n)),getObtainedRaidReward:(t,a)=>t.obtainedRewards[a]??[],hasUnlockedRaid:bt},Symbol.toStringTag,{value:"Module"})),Dn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},currentRaid:{type:{raidId:String,seed:String,progression:{type:[String],default:[]},buffItem:String,rewards:{type:Object,default:{}}},default:void 0},obtainedConditions:{type:Object,default:{}},obtainedRewards:{type:Object,default:{}},unlocked:{type:Object,default:{}}},{minimize:!1});Dn.index({user:1});const St=((ci=h.models)==null?void 0:ci.UserRaid)||h.model("UserRaid",Dn),Me=async(t,a)=>{await St.updateOne({user:t},a,{upsert:!0})},Mt=async(t,a)=>{await Me(t,{$set:{[`unlocked.${a}`]:!0}})},ey=Object.freeze(Object.defineProperty({__proto__:null,addRewardsToRaid:async(t,a)=>{await Me(t,{$inc:Object.fromEntries(Ha(a).filter(([s])=>s!=="title"&&s!=="condition").map(([s,r])=>[`currentRaid.rewards.${s}`,r])),...a.title?{$set:{"currentRaid.rewards.title":a.title}}:{}})},claimReward:async(t,a,s)=>{await Me(t,{$addToSet:{[`obtainedRewards.${a}`]:s}})},progressRaid:async(t,a)=>{await Me(t,{$push:{"currentRaid.progression":a}})},resetRaid:async t=>{await Me(t,{$unset:{currentRaid:""}})},resetRaidProgression:async t=>{await Me(t,{$set:{"currentRaid.progression":[]}})},startRaid:async(t,a,s,r,n,i)=>{const o=Date.now();return await Me(t,{$set:{currentRaid:{raidId:a,buffItem:s,seed:o,progression:[],rewards:{}}}}),await mn(t,r,n,i),o},unlockRaid:Mt,updateCondition:async(t,a,s)=>{await Me(t,{$addToSet:{[`obtainedConditions.${a}`]:s}})}},Symbol.toStringTag,{value:"Module"})),Nn=async t=>await St.create({user:t}),_s=async t=>{const a=await St.findOne({user:t});return a||await Nn(t)},ty=Object.freeze(Object.defineProperty({__proto__:null,getShopItemRest:(t,a,s,r,n)=>{var f;if(S.isEquipmentId(a))return r;let i=S.getAllItemsLimit()[a];const o=(f=t.limit)==null?void 0:f[a];return n==="half"&&a==="chest_2"&&(i+=2),n==="full"&&a==="chest_3"&&(i+=1),i?t.lastShopId!==s?i:o?i-o:Math.min(i,r):r},isShopBuyLimitReached:(t,a,s,r)=>{var o;if(S.isEquipmentId(a))return!1;let n=S.getAllItemsLimit()[a];const i=(o=t.limit)==null?void 0:o[a];return r==="half"&&a==="chest_2"&&(n+=2),r==="full"&&a==="chest_3"&&(n+=1),t.lastShopId!==s?!1:!!(n&&i&&i>=n)}},Symbol.toStringTag,{value:"Module"})),En=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},lastShopId:{type:Number,default:0},limit:{type:Object,default:{}}},{minimize:!1});En.index({user:1});const Jt=((ui=h.models)==null?void 0:ui.UserShop)||h.model("UserShop",En),$n=async(t,a)=>{await Jt.updateOne({user:t},a,{upsert:!0})},ay=Object.freeze(Object.defineProperty({__proto__:null,increaseShopBuyLimit:async(t,a,s,r)=>{await $n(t,[{$set:{limit:{$cond:{if:{$eq:["$lastShopId",s]},then:{$mergeObjects:["$limit",{[a]:{$add:[{$ifNull:[`$limit.${a}`,0]},r]}}]},else:{[a]:r}}},lastShopId:s}}])}},Symbol.toStringTag,{value:"Module"})),X={localField:"_id",foreignField:"user",justOne:!0},T=new h.Schema({userId:{type:String,required:!0,unique:!0},birthday:{type:Date,default:null},faction:{type:String,default:l.DEFAULT_FACTION},canChangeFaction:{type:Boolean,default:!1},canChooseFaction:{type:Boolean,default:!1},settings:{sort:{inventory:{type:String,default:"alpha"}},sendDailyReport:{type:Boolean,default:!1},sendDailyQuest:{type:Boolean,default:!1},reminder:{raid:{classic:{type:Boolean,default:!1},special:{type:Boolean,default:!1},christmas:{type:Boolean,default:!1}},commands:{work:{type:Boolean,default:!1},dice:{type:Boolean,default:!1},qod:{type:Boolean,default:!1},blackjack:{type:Boolean,default:!1},guess:{type:Boolean,default:!1},rps:{type:Boolean,default:!1}}}}});T.virtual("inventory",{ref:"UserInventory",...X}),T.virtual("raid",{ref:"UserRaid",...X}),T.virtual("games",{ref:"UserGames",...X}),T.virtual("ornaments",{ref:"UserOrnaments",...X}),T.virtual("crew",{ref:"UserCrew",...X}),T.virtual("dailyReport",{ref:"UserDailyReport",...X}),T.virtual("shop",{ref:"UserShop",...X}),T.virtual("meta",{ref:"UserMeta",...X}),T.virtual("quest",{ref:"UserQuest",...X}),T.virtual("questMeta",{ref:"UserQuestMeta",...X}),T.virtual("cooldown",{ref:"UserCooldown",...X}),T.virtual("reminder",{ref:"Reminder",localField:"_id",foreignField:"user"}),T.virtual("encyclopedia",{ref:"UserEncyclopedia",...X}),T.index({userId:1}),T.post("deleteOne",async function(){const t=this.getQuery()._id;await ht.deleteOne({user:t}),await yt.deleteOne({user:t}),await gt.deleteOne({user:t}),await St.deleteOne({user:t}),await Ie.deleteOne({user:t}),await Xt.deleteOne({user:t}),await Jt.deleteOne({user:t}),await xe.deleteOne({user:t}),await wt.deleteOne({user:t}),await ce.deleteOne({user:t}),await pt.deleteOne({user:t}),await ot.deleteOne({user:t})});const W=((fi=h.models)==null?void 0:fi.User)||h.model("User",T),sy=t=>W.create({userId:t}),ea=async(t,a={})=>{const s=await Fn({userId:t},a);return s||await sy(t)},Fn=(t,a={})=>W.findOne(t,a),ry=Object.freeze(Object.defineProperty({__proto__:null,getAllDailyReport:async()=>W.aggregate([{$match:{"settings.sendDailyReport":!0}},{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$lookup:{from:"userdailyreports",localField:"_id",foreignField:"user",as:"dailyReport"}},{$match:{$and:[{$expr:{$gt:["$dailyReport.xpYesterday",0]}},{faction:{$ne:"citizen"}}]}}]),getBerryRanking:async()=>W.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$sort:{"meta.berry":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.berry":1}}]),getDailyReport:t=>{const{berry:a,xp:s}=t.meta,{voice:r,amount:n}=s,{unlockedBadges:i,unlockedBackgrounds:o,unlockedTitles:f}=t.ornaments,{previousOrnament:m,previousCompletedQuest:_,xpYesterday:B,berryYesterday:Y,previousMessageSent:H}=t.dailyReport;return{berry:a-Y,xp:n-B,message:t.questMeta.messageSent-H,voice:Se(r.lastConnection,ja())?r.minutesInVoiceToday:0,quest:Wt(t.quest.completed,_),badge:Wt(i,m.unlockedBadges),title:Wt(f,m.unlockedTitles),background:Wt(o,m.unlockedBackgrounds)}},getFactionRank:async(t,a)=>(await W.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$match:{faction:t.faction}},{$setWindowFields:{sortBy:{"meta.xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:a}},{$project:{rank:1}}]))[0],getFactionRanking:async t=>W.aggregate([{$match:{faction:t}},{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$userMeta"},{$sort:{"userMeta.xp.amount":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.xp.amount":1}}]),getGlobalRanking:async()=>W.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$sort:{"meta.xp.amount":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.xp.amount":1}}]),getNextBirthdays:()=>W.aggregate([{$match:{birthday:{$ne:null}}},{$addFields:{day:{$dayOfMonth:"$birthday"},month:{$month:"$birthday"},year:{$year:"$birthday"},nextBirthday:{$dateFromParts:{year:{$cond:[{$lt:[{$dateFromParts:{year:{$year:new Date},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}},new Date]},{$add:[{$year:new Date},1]},{$year:new Date}]},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}}}},{$sort:{nextBirthday:1}},{$limit:10},{$project:{_id:0,userId:1,birthday:1,nextBirthday:1}}]),getSuccessRanking:async()=>W.aggregate([{$lookup:{from:"userquests",localField:"_id",foreignField:"user",as:"quest"}},{$unwind:"$quest"},{$addFields:{success_count:{$size:{$ifNull:["$quest.completed",[]]}}}},{$sort:{success_count:-1}},{$limit:10},{$project:{_id:1,userId:1,"quest.completed":1}}]),getTodayAllBirthday:()=>W.aggregate([{$match:{birthday:{$ne:null}}},{$addFields:{birthMonth:{$month:"$birthday"},birthDay:{$dayOfMonth:"$birthday"}}},{$addFields:{currentMonth:{$month:new Date},currentDay:{$dayOfMonth:new Date}}},{$match:{$expr:{$and:[{$eq:["$birthMonth","$currentMonth"]},{$eq:["$birthDay","$currentDay"]}]}}}]),getUserBirthday:async t=>await ea(t,{birthday:1})},Symbol.toStringTag,{value:"Module"})),ve=async(t,a,s=!1)=>{await W.updateOne(t,a,{upsert:s})},In=async(t,a)=>{await ve({_id:t},{$set:{canChooseFaction:a}})},Yn=async(t,a)=>{await ve({_id:t},{$set:{canChangeFaction:a}})},ny=Object.freeze(Object.defineProperty({__proto__:null,canChangeFaction:Yn,canChooseFaction:In,removeBirthday:async t=>{await ve({userId:t},{$set:{birthday:null}})},setBirthday:async(t,a)=>{await ve({userId:t},{$set:{birthday:a}})},updateFaction:async(t,a)=>{await ve({_id:t},{$set:{faction:a}})},updateInventorySort:async(t,a)=>{await ve({_id:t},{$set:{"settings.sort.inventory":a}})},updateReminderSettings:async(t,a,s)=>{await ve({_id:t},{$set:{[`settings.reminder.${a}`]:s}})},updateSendDailyQuest:async(t,a)=>{await ve({userId:t},{$set:{"settings.sendDailyQuest":a}})},updateSendDailyReport:async(t,a)=>{await ve({userId:t},{$set:{"settings.sendDailyReport":a}})}},Symbol.toStringTag,{value:"Module"})),iy=async t=>{await W.deleteOne({userId:t})},ly=async t=>await Xt.create({user:t}),dy=async t=>await ce.create({user:t}),oy=async t=>await Jt.create({user:t}),Ln=(t,a)=>{switch(t){case"dailyReport":return ly(a);case"games":return Mn(a);case"inventory":return fn(a);case"meta":return sn(a);case"raid":return Nn(a);case"ornaments":return xn(a);case"quest":return An(a);case"questMeta":return dy(a);case"shop":return oy(a);case"cooldown":return yn(a);case"reminder":return[];case"crew":return null;case"encyclopedia":return Hr(a)}},Pn=async(t,a,s)=>{if(Array.isArray(a)){const r=await t.populate(a);for(const n of a)r[n]||(r[n]=await Ln(n,t._id));return r}else{const r=await t.populate(a,s),n=r[a];return(!n||Array.isArray(n)&&n.length===0)&&(r[a]=await Ln(a,t._id)),r}},Tn=new h.Schema({warnedUserId:String,authorId:String,date:{type:Date,default:Date.now()},reason:{type:String,default:null}});Tn.index({warnedUserId:1});const ze=((hi=h.models)==null?void 0:hi.Warns)||h.model("Warns",Tn),cy=Object.freeze(Object.defineProperty({__proto__:null,getUserWarnCount:async t=>await ze.countDocuments({warnedUserId:t}),getUserWarns:async t=>await ze.find({warnedUserId:t})},Symbol.toStringTag,{value:"Module"})),uy=async t=>await ze.findOne({warnedUserId:t}),fy=async t=>await ze.create({...t}),hy=async t=>await ze.findByIdAndDelete(t),py=async t=>{var s;const a={};for(const r of Object.values(es)){const n=new r;for(const i of t.members){const o=await ea(i,{_id:1});if((s=n.onCrewUpdate)!=null&&s.call(n,t,o._id)){const f=await n.complete(o._id,{});if(f){const m=a[o.id];a[o.id]=m?[o._id,[...m[1],[n,f]]]:[o._id,[[n,f]]]}}}}Object.values(a).forEach(([r,n])=>{se("crewUpdate",r,n)})},my={localField:"_id",foreignField:"crew",justOne:!0},ta=new h.Schema({createdBy:String,members:{type:[String],default:[]},limit:{type:Number,default:3},name:String,description:String,channelId:String,meta:{xp:{type:Number,default:0},berry:{type:Number,default:0},buffs:{xp:{boost:{type:Number,default:0},expireAt:{type:Date,default:null}}}},disintegration:{type:Number,default:100},faction:String,stats:{type:Object,default:{}},ornament:{unlockedBadges:[String]}},{timestamps:!0,minimize:!1});ta.index({"meta.xp":-1}),ta.virtual("quest",{ref:"CrewQuest",...my}),ta.post("findOneAndUpdate",async function(t){await py(t)});const Xe=((pi=h.models)==null?void 0:pi.Crew)||h.model("Crew",ta),yy=(t,a)=>Math.ceil(a*(t.disintegration/100)*(jn(t)||1)),jn=t=>new Date>=(t.meta.buffs.xp.expireAt??new Date(0))?!1:t.meta.buffs.xp.boost,gy=Object.freeze(Object.defineProperty({__proto__:null,calcXp:yy,getCrewRank:async t=>(await Xe.aggregate([{$setWindowFields:{sortBy:{"meta.xp":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t._id}},{$project:{_id:1,"meta.xp":1,rank:1}}]))[0],getCrewRanking:async()=>Xe.aggregate([{$sort:{"meta.xp":-1}},{$limit:10}]),hasXpBuff:jn},Symbol.toStringTag,{value:"Module"})),ue=async(t,a)=>{await Xe.findOneAndUpdate({_id:t},a,{returnDocument:"after"})},Qn=async(t,a,s)=>{a.isProgressive?await ue(t,{$addToSet:{"ornament.unlockedBadges":`${a.id}_${s}`}}):await ue(t,{$addToSet:{"ornament.unlockedBadges":a.id}})},wy=Object.freeze(Object.defineProperty({__proto__:null,addBerry:async(t,a,s)=>{await ue(t,{$inc:{"meta.berry":a,[`stats.${s.toHexString()}.berry`]:a}})},addMember:async(t,a)=>{await ue(t,{$addToSet:{members:a}})},addXp:async(t,a,s)=>{await ue(t,{$inc:{"meta.xp":a,[`stats.${s.toHexString()}.xp`]:a}})},addXpBuff:async(t,a)=>{await ue(t,[{$set:{"meta.buffs.xp":{$cond:{if:{$or:[{$eq:["$meta.buffs.xp.expireAt",null]},{lt:["$meta.buffs.xp.expireAt",new Date]}]},then:{boost:1.1,expireAt:{$add:[new Date,a*60*60*1e3]}},else:{boost:1.1,expireAt:{$add:["$meta.buffs.xp.expireAt",a*60*60*1e3]}}}}}}])},applyDisintegration:async(t,a)=>{const[s,r]=[a-2,(a-3)*2+3];await ue(t,[{$set:{disintegration:{$max:[{$add:["$disintegration",-1*Mr(s,r)]},0]}}}])},increaseLimit:async(t,a)=>{await ue(t,{$inc:{limit:1,"meta.berry":-a}})},removeMember:async(t,a,s)=>{await ue(t,{$pull:{members:a},$unset:{[`stats.${s}`]:1}})},repair:async(t,a)=>{await ue(t,[{$set:{disintegration:{$min:[{$add:["$disintegration",a]},100]}}}])},unlockBadge:Qn},Symbol.toStringTag,{value:"Module"})),_y=async(t,a={})=>{const s=await Xe.findById(t,a);return s||null},by=async(t,{name:a,description:s,channelId:r,faction:n})=>await Xe.create({name:a,description:s,createdBy:t,channelId:r,faction:n,members:[t]}),Hn=(t,a)=>{for(const[,s]of Object.entries(t.daily??{}))if(!(s!=null&&s[a])||!Se(s[a],new Date))return!1;return!0},Sy=Object.freeze(Object.defineProperty({__proto__:null,isAllDailyCompleted:Hn},Symbol.toStringTag,{value:"Module"})),My=async t=>{var r;const a={},{crew:s}=await t.populate("crew");for(const n of Object.values(Ja)){const i=new n;for(const o of s.members){const f=await ea(o,{_id:1,crew:1}).then(m=>Pn(m,"crew",{lastAllMembersDaily:1}));if(f.crew&&((r=i.onCrewQuestUpdate)!=null&&r.call(i,t,f.crew))){const m=await i.complete(f._id,{});if(m){const _=a[f.id];a[f.id]=_?[f._id,[..._[1],[i,m]]]:[f._id,[[i,m]]]}}}}Object.values(a).forEach(([n,i])=>{se("crewQuestUpdate",n,i)})},bs=new h.Schema({crew:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"Crew"},completed:[String],daily:{type:Object,default:{}},meta:{streak80Percent:{type:Number,default:0},maxVoiceMembers:{type:Number,default:0},actualVoiceMembers:{amount:{type:Number,default:0},connectedAt:{type:Date,default:new Date}}}},{minimize:!1});bs.index({crew:1}),bs.post("findOneAndUpdate",async function(t){await My(t)});const aa=((mi=h.models)==null?void 0:mi.CrewQuest)||h.model("CrewQuest",bs),sa=async(t,a)=>{await aa.findOneAndUpdate({crew:t},a,{upsert:!0,returnDocument:"after"})},qn=async(t,a)=>{await sa(t,{$addToSet:{completed:a}})},Kn=async(t,a,s)=>{await sa(t,[{$addFields:{[`daily.${a}.${s}`]:new Date}}])},vy=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Kn,completeQuest:qn,setActualVoiceMembers:async(t,a)=>{await sa(t,{$set:{"meta.actualVoiceMembers.amount":a,"meta.actualVoiceMembers.connectedAt":new Date}})},setMaxVoiceMembers:async(t,a)=>{await sa(t,{$set:{"meta.maxVoiceMembers":a}})}},Symbol.toStringTag,{value:"Module"})),Ss=async t=>await aa.create({crew:t}),ky=async t=>{const a=await aa.findOne({crew:t});return a||await Ss(t)},Wn=(t,a)=>{switch(t){case"quest":return Ss(a)}},Ry=async(t,a,s)=>{if(Array.isArray(a)){const r=await t.populate(a);for(const n of a)r[n]||(r[n]=await Wn(n,t._id));return r}else{const r=await t.populate(a,s),n=r[a];return(!n||Array.isArray(n)&&n.length===0)&&(r[a]=await Wn(a,t._id)),r}},Cy=t=>{h.connect(t)};class xy extends h.Types.ObjectId{}c.ALL_QUESTS=Xr,c.BET_MAX_VALUE=ou,c.BET_MIN_VALUE=du,c.BackgroundShopItem=Ur,c.BoostXpShopItem=Br,c.BottleShopItem=Nr,c.COOLDOWN_COMMANDS=E0,c.ChestShopItem=Or,c.CrewQuestQuests=Ja,c.CrewQuests=es,c.EDITO_READ=cu,c.EquipmentShopItem=Dr,c.ObjectId=xy,c.ObjectShopItem=Ar,c.QUEST_ASSET_IMAGES=uu,c.Quest=d,c.RepairShopItem=Er,c.StoreShopItem=$r,c.TitleShopItem=Fr,c.UserDailyQuests=za,c.UserInventoryQuests=ts,c.UserMetaQuests=as,c.UserOrnamentsQuests=ss,c.UserQuestMetaQuests=rs,c.UserQuestQuests=ns,c.UserRepetableQuests=vt,c.banExists=Si,c.banGetters=gi,c.banModel=Ye,c.betModel=ia,c.completeCrewQuest=wu,c.completeDailyQuest=gu,c.completeRepeatableQuest=_u,c.connectToServices=Cy,c.createBan=wi,c.createBet=ki,c.createCrew=by,c.createCrewQuest=Ss,c.createInvitations=Ci,c.createReminder=qc,c.createSettings=xr,c.createUserCrew=Y0,c.createWarn=fy,c.crewGetters=gy,c.crewModel=Xe,c.crewQuestGetters=Sy,c.crewQuestModel=aa,c.crewQuestUpdates=vy,c.crewUpdates=wy,c.deleteBan=bi,c.deleteInvitations=xi,c.deleteUserById=iy,c.deleteUserCrewById=P0,c.deleteWarn=hy,c.emitQuestEvent=se,c.emitRaidEvent=ct,c.emitUserMetaEvent=an,c.finWarnById=uy,c.findBan=_i,c.findBetById=vi,c.findCrewById=_y,c.findCrewQuest=ky,c.findInvitations=Ri,c.findReminder=Hc,c.findSettingsByGuildId=Ec,c.findShop=Pr,c.findShopByType=Lc,c.findUser=Fn,c.findUserById=ea,c.findUserCooldown=$0,c.findUserCrew=wn,c.findUserEncyclopedia=zc,c.findUserGames=Q0,c.findUserInventory=Fe,c.findUserMeta=ft,c.findUserOrnaments=z0,c.findUserQuest=ws,c.findUserRaid=_s,c.getBadgeEmojisFromId=yu,c.getQuestBadgeEmojis=mu,c.invitationsModel=kt,c.onQuestEvent=Zc,c.onRaidEvent=Am,c.onUserMetaEvent=s0,c.populateCrew=Ry,c.populateUser=Pn,c.questCanvas=lu,c.reminderGetters=Tc,c.reminderModel=$e,c.reminderUpdates=Qc,c.settingsModel=Gt,c.settingsUpdates=Nc,c.shopGetters=$c,c.shopModel=Vt,c.shopUpdates=Ic,c.updateUserCooldown=mt,c.updateUserCrew=ps,c.updateUserDailyReport=bn,c.updateUserEncyclopedia=Qr,c.updateUserGames=Zt,c.updateUserInventory=re,c.updateUserMeta=$,c.updateUserOrnaments=K,c.updateUserQuest=_t,c.updateUserQuestMeta=k,c.updateUserRaid=Me,c.updateUserShop=$n,c.userCooldownGetters=Pc,c.userCooldownModel=pt,c.userCooldownUpdates=N0,c.userCrewExists=L0,c.userCrewModel=Ie,c.userCrewUpdates=I0,c.userDailyReportModel=Xt,c.userDailyReportUpdates=T0,c.userEncyclopediaGetters=Gc,c.userEncyclopediaModel=ot,c.userEncyclopediaUpdates=Vc,c.userGamesModel=yt,c.userGamesUpdates=j0,c.userGetters=ry,c.userInventoryGetters=Wc,c.userInventoryModel=ht,c.userInventoryUpdates=S0,c.userMetaGetters=A0,c.userMetaModel=xe,c.userMetaUpdates=c0,c.userModel=W,c.userOrnamentsModel=gt,c.userOrnamentsUpdates=V0,c.userQuestGetters=pu,c.userQuestMetaModel=ce,c.userQuestMetaUpdates=t0,c.userQuestModel=wt,c.userQuestUpdates=Z0,c.userRaidGetters=J0,c.userRaidModel=St,c.userRaidUpdates=ey,c.userShopGetters=ty,c.userShopModel=Jt,c.userShopUpdates=ay,c.userUpdates=ny,c.warnGetters=cy,c.warnModel=ze,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
|
10
|
+
y.version="2.30.1",Ui(A),y.fn=p,y.min=yd,y.max=gd,y.now=wd,y.utc=ie,y.unix=Wo,y.months=Vo,y.isDate=Ze,y.locale=Re,y.invalid=Rt,y.duration=te,y.isMoment=J,y.weekdays=Xo,y.parseZone=Go,y.localeData=ge,y.isDuration=Lt,y.monthsShort=zo,y.weekdaysMin=Jo,y.defineLocale=Ca,y.updateLocale=Wl,y.locales=Gl,y.weekdaysShort=Zo,y.normalizeUnits=V,y.relativeTimeRounding=Cc,y.relativeTimeThreshold=xc,y.calendarFormat=Qd,y.prototype=p,y.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Kt=t=>new Intl.NumberFormat("de-DE").format(t),Mr=(t,a,s=Math.random)=>Math.floor(s()*(a-t)+t),Wt=(t,a,s=r=>r)=>t.filter(r=>!a.some(n=>s(n)===s(r))),Pa=(t,a)=>[...new Set(t.map(s=>a(s)))],vr=t=>t.filter(a=>a!=null),Bc=({start:t=0,stop:a,step:s=1})=>{if(s===0)throw new RangeError("step cannot be equal to 0");if(s>0&&t>=a||s<0&&t<=a)return[];const r=[];for(let n=t;s>0?n<a:n>a;n+=s)r.push(n);return r},Oc=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Ac=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,kr=/(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Ta=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],Dc={months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:kr,monthsShortRegex:kr,monthsStrictRegex:Oc,monthsShortStrictRegex:Ac,monthsParse:Ta,longMonthsParse:Ta,shortMonthsParse:Ta,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:(t,a)=>{switch(a){case"D":return t+(t===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(t===1?"er":"e");case"w":case"W":return t+(t===1?"re":"e")}},week:{dow:1,doy:4}};y.locale("fr",Dc);const Se=(t,a,s=!0)=>(s?t.getFullYear()===a.getFullYear():!0)&&t.getMonth()===a.getMonth()&&t.getDate()===a.getDate(),ja=()=>y().locale("fr").subtract(1,"days").toDate(),Ee=t=>new Date>t,Rr=t=>typeof t=="function",Qa=(t,a,s)=>{const r={...t},n=Object.entries(t);for(const[i,o]of n){const f=a[i];f?r[i]=s(o,f):r[i]=o}return r},Ha=t=>Object.entries(t),Cr=new h.Schema({guildId:{type:String,required:!0,unique:!0},suggestionChannelId:{type:String,default:null},reportChannelId:{type:String,default:null},reportModeratorChannelId:{type:String,default:null},factionChannelId:{type:String,default:null},discussionChannelId:{type:String,default:null},questFallbackChannelId:{type:String,default:null},reportBugChannelId:{type:String,default:null},expeditionChannelId:{type:String,default:null},ranking:{channelId:{type:String,default:null},messageId:{type:String,default:null}},roles:{premium:{type:String,default:null},booster:{type:String,default:null},scam:{type:String,default:null}},channels:{gambling:{type:String,default:null},work:{type:String,default:null},raid:{type:String,default:null}},edito:{channelId:{type:String,default:null},price:{type:Number,default:100},sentAtMidnight:{type:Boolean,default:!1},messageId:{type:String,default:null}},crew:{infoChannelId:{type:String,default:null},crewChannelIds:{type:[{channelId:{type:String},crewId:{type:String}}],default:[]}},shopChannelId:{type:String,default:null},blackMarketChannelId:{type:String,default:null}});Cr.index({"meta.xp":-1});const Gt=((Xn=h.models)==null?void 0:Xn.Settings)||h.model("Settings",Cr),I=async(t,a,s=!1)=>{await Gt.updateOne({guildId:t},a,{upsert:s})},Nc=Object.freeze(Object.defineProperty({__proto__:null,addCrewChannelId:async(t,a,s)=>{await I(t,{$push:{"crew.crewChannelIds":{channelId:s,crewId:a}}})},randomizeEditoPrice:async t=>{const a=Mr(100,1001);return await I(t,{$set:{"edito.price":a}}),a},sentAtMidnight:async(t,a)=>{await I(t,{$set:{"edito.sentAtMidnight":a}})},setCrewInfoChannelId:async(t,a)=>{await I(t,{$set:{"crew.infoChannelId":a}})},setDiscussionChannelId:async(t,a)=>{await I(t,{$set:{discussionChannelId:a}})},setEditoChannel:async(t,a)=>{await I(t,{$set:{"edito.channelId":a}})},setEditoMessageId:async(t,a)=>{await I(t,{$set:{"edito.messageId":a}})},setFactionChannel:async(t,a)=>{await I(t,{$set:{factionChannelId:a}})},setQuestChannelId:async(t,a)=>{await I(t,{$set:{questFallbackChannelId:a}})},setRankingChannel:async(t,a)=>{await I(t,{$set:{"ranking.channelId":a}})},setRankingMessage:async(t,a)=>{await I(t,{$set:{"ranking.messageId":a}})},setReportBugChannelId:async(t,a)=>{await I(t,{$set:{reportBugChannelId:a}})},setReportChannel:async(t,a)=>{await I(t,{$set:{reportChannelId:a}})},setReportModeratorChannel:async(t,a)=>{await I(t,{$set:{reportModeratorChannelId:a}})},setShopChannelId:async(t,a,s)=>{await I(t,{$set:{shopChannelId:a,blackMarketChannelId:s}})},setSuggestionChannel:async(t,a)=>{await I(t,{$set:{suggestionChannelId:a}})},updateChannelId:async(t,a)=>{await I(t,{$set:Object.fromEntries(Object.entries(a).map(([s,r])=>[`channels.${s}`,r]))})},updateRolesId:async(t,a)=>{await I(t,{$set:Object.fromEntries(Object.entries(a).map(([s,r])=>[`roles.${s}`,r]))})}},Symbol.toStringTag,{value:"Module"})),xr=async t=>await Gt.create({guildId:t}),Ec=async(t,a={})=>{const s=await Gt.findOne({guildId:t},a);return s||xr(t)};class ae{constructor(){e(this,"name");e(this,"price");e(this,"size");e(this,"currency");e(this,"data");if(this.constructor===ae)throw new Error("Abstract classes can't be instantiated.")}toDBShopItem(){return{name:this.name,price:this.price,size:this.size,entityId:this.data.id,currency:this.currency}}async onBuy(a,s){this.currency==="berry"?(await rn(a,-1*this.price*s),await Jr(a,this.price*s)):await Ue(a,this.currency,this.price*s)}isBackground(){return!1}isChest(){return!1}isTitle(){return!1}isBoostXp(){return!1}isRepair(){return!1}isStore(){return!1}isObject(){return!1}isBottle(){return!1}isEquipment(){return!1}}class Ur extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await vn(a,this.data.background.id)}isBackground(){return!0}}class Br extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ne(a,this.data.id,s)}isBoostXp(){return!0}}class Or extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ne(a,this.data.id,s)}isChest(){return!0}}class Ar extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ne(a,this.data.id,s)}isObject(){return!0}}class Dr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await cs(a,Bc({stop:s}).map(()=>S.seedEquipment({...this.data},Date.now()-Math.round(Math.random()*1e3))))}isEquipment(){return!0}}class Nr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ne(a,this.data.id,s)}isBottle(){return!0}}class Er extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ne(a,this.data.id,s)}isRepair(){return!0}}class $r extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ne(a,this.data.id,s)}isStore(){return!0}}class Fr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ys(a,this.data.title.name)}isTitle(){return!0}}const Ir=(t,a)=>{const s=t.items.find(r=>r.entityId===a);if(s){const{name:r,price:n,size:i,currency:o}=s,f=S.findEntity(s.entityId);if(S.isBackgroundItem(f))return new Ur({name:r,price:n,item:f,size:i,currency:o});if(S.isTitleItem(f))return new Fr({name:r,price:n,item:f,size:i,currency:o});if(S.isChestItem(f))return new Or({name:r,price:n,item:f,size:i,currency:o});if(S.isBoostItem(f))return new Br({name:r,price:n,item:f,size:i,currency:o});if(S.isRepairItem(f))return new Er({name:r,price:n,item:f,size:i,currency:o});if(S.isStoreItem(f))return new $r({name:r,price:n,item:f,size:i,currency:o});if(S.isObjectItem(f))return new Ar({name:r,price:n,item:f,size:i,currency:o});if(S.isEquipment(f))return new Dr({name:r,price:n,item:f,size:i,currency:o});if(S.isBottleItem(f))return new Nr({name:r,price:n,size:i,item:f,currency:o})}},$c=Object.freeze(Object.defineProperty({__proto__:null,getShopItem:Ir,getShopItemList:t=>{const a=[];for(const{entityId:s}of t.items){const r=Ir(t,s);r&&a.push(r)}return a}},Symbol.toStringTag,{value:"Module"})),Yr=new h.Schema({shopType:{type:String,required:!0,unique:!0},publishedAt:{type:Date,default:new Date},duration:{type:Number,default:null},closeAt:{type:Date,default:null},items:{type:[{name:String,price:Number,size:{type:Number,default:null},entityId:String,currency:String}],default:[]},stats:{berrySpent:{type:Number,default:0},itemBought:{type:Number,default:0},chestBought:{type:Number,default:0},boostTimeBought:{type:Number,default:0},percentBought:{type:Number,default:0}}},{minimize:!1});Yr.index({shopType:1});const Vt=((Zn=h.models)==null?void 0:Zn.Shop)||h.model("Shop",Yr),Fc=async(t,a)=>{await Lr({shopType:t},a,!0)},qa=async(t,a)=>{await Lr({_id:t},a,!0)},Lr=async(t,a,s=!1)=>{await Vt.updateOne(t,a,{upsert:s})},Ic=Object.freeze(Object.defineProperty({__proto__:null,buyShopItem:async(t,a,s,r)=>{const n=a.map(i=>(i.name===s.name&&i.size&&(i.size-=r),i));await qa(t,{$set:{items:n}})},publish:async t=>{await qa(t,{$set:{publishedAt:new Date}})},setShopItems:async(t,a)=>{await Fc(t,{$set:{items:[...a]}})},updateShopStats:async(t,a,s)=>{await qa(t,{$inc:{"stats.berrySpent":a.price*s,"stats.itemBought":s,"stats.chestBought":a.isChest()?s:0,"stats.percentBought":a.isRepair()?a.data.repair*s:0,"stats.boostTimeBought":a.isBoostXp()?a.data.id==="boost_xp_day"?s:7*s:0}})}},Symbol.toStringTag,{value:"Module"})),Yc=t=>Vt.create({shopType:t}),Lc=async(t,a={})=>{const s=await Pr({shopType:t},a);return s||await Yc(t)},Pr=(t,a={})=>Vt.findOne(t,a),Pc=Object.freeze(Object.defineProperty({__proto__:null,getCommandCooldown:(t,a)=>t.commands[a],getRaidCooldown:(t,a)=>t.raid[a]},Symbol.toStringTag,{value:"Module"})),Ka=new h.Schema({user:{type:h.Schema.Types.ObjectId,ref:"User",required:!0},date:Date,type:String},{minimize:!1});Ka.index({user:1}),Ka.index({date:-1});const $e=((Jn=h.models)==null?void 0:Jn.Reminder)||h.model("Reminder",Ka),Tc=Object.freeze(Object.defineProperty({__proto__:null,getAllPassedReminder:async()=>await $e.find({date:{$lte:new Date}})},Symbol.toStringTag,{value:"Module"})),jc=async(t,a)=>{await $e.deleteOne({user:t,type:a})},Tr=async(t,a,s,r)=>{await $e.updateOne({user:t,type:a},s,{upsert:r})},Wa=async(t,a,s)=>{await Tr(t,a,{$set:{date:s}},!0)},Ga=async(t,a,s)=>{await Tr(t,a,[{$set:{date:{$add:["$date",s]}}}],!1)},Qc=Object.freeze(Object.defineProperty({__proto__:null,addReminder:Wa,deleteSelectedReminders:async t=>{await $e.deleteMany({_id:{$in:t}})},removeReminder:async(t,a)=>{await jc(t,a)},updateReminderDate:Ga},Symbol.toStringTag,{value:"Module"})),Hc=async(t,a={})=>{const s=await $e.findOne({user:t},a);return s||null},qc=async(t,a,s)=>await $e.create({user:t,date:a,type:s}),Kc=(t,a)=>{const s=vr(Object.values(t.equippedItems)),r=a.equipments.filter(n=>s.find(i=>i.id===n.id)).length;if(r===a.equipments.length)return a.fullBonus;if(r>=a.equipments.length/2)return a.halfBonus},Va=t=>{var s;let a={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};for(const r of S.EQUIPMENT_SLOT){const n=(s=t.equippedItems)==null?void 0:s[r];n&&(a=Qa(a,S.fromDBToEquipableEquipment(n).characteristics,(i,o)=>i+o))}for(const r of S.allPanoplies){const n=Kc(t,r);n&&!("target"in n)&&(a=Qa(a,n,(i,o)=>i+o))}return a},Wc=Object.freeze(Object.defineProperty({__proto__:null,calcBottleMultiplier:(t,{buffs:a})=>{const s=S.getPanoplyBonus(t.equippedItems).find(([r,n])=>r.id==="herbalist"&&n!==null);return s&&s[1]==="full"?a.map(r=>({...r,multiplier:r.multiplier*1.25})):s&&s[1]==="half"?a.map(r=>({...r,multiplier:r.multiplier*1.1})):a},calcMinStreakForWorkLoot:t=>{const a=S.getPanoplyBonus(t.equippedItems).find(([s,r])=>s.id==="marine"&&r!==null);return a&&a[1]==="full"?10:a&&a[1]==="half"?20:1/0},getItemList:t=>Object.fromEntries(t.itemList),getRecipeResult:(t,a)=>{const s=S.getPanoplyBonus(t.equippedItems).find(([r,n])=>r.id==="little_blacksmith"&&n!==null);return(s==null?void 0:s[1])==="full"&&a==="chest_3"?"chest_blacksmith_3":(s==null?void 0:s[1])==="half"&&a==="chest_2"?"chest_blacksmith_2":(s==null?void 0:s[1])==="half"&&a==="chest_1"?"chest_blacksmith_1":a},getUserEquipmentsCharacteristics:Va,hasEnoughEnchantedStone:(t,a)=>(t.itemList.get("enchanted_stone")||0)>=a,hasEnoughItem:(t,a,s)=>(t.itemList.get(s)||0)>=a,hasEnoughItemsForRecipe:(t,a,s)=>{for(const r of a)if((t.itemList.get(r.itemId)||0)<r.size*s)return!1;return!0},hasEnoughTools:(t,a)=>(t.itemList.get("tools")||0)>=a,hasInventoryRequirements:(t,a)=>Ha(a).reduce((s,[r,n])=>s&&(t.itemList.get(r)??0)>=(n??0),!0),hasRevolutionaryBuff:t=>{const a=S.getPanoplyBonus(t.equippedItems).find(([s,r])=>s.id==="revolutionary"&&r!==null);return(a==null?void 0:a[1])??null},maxCraftQuantity:(t,a)=>{let s=1/0;for(const r of a)s=Math.min(s,Math.floor((t.itemList.get(r.itemId)||0)/r.size));return s}},Symbol.toStringTag,{value:"Module"})),Gc=Object.freeze(Object.defineProperty({__proto__:null,getEncyclopedia:t=>t.encyclopedia,hasFoundItem:(t,a)=>t.encyclopedia.includes(a)},Symbol.toStringTag,{value:"Module"})),jr=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},encyclopedia:{type:[String],default:[]}});jr.index({user:1});const ot=((ei=h.models)==null?void 0:ei.UserEncyclopedia)||h.model("UserEncyclopedia",jr),Qr=async(t,a)=>{await ot.updateOne({user:t},a,{upsert:!0})},zt=async(t,a)=>{await Qr(t,{$addToSet:{encyclopedia:{$each:a}}})},Vc=Object.freeze(Object.defineProperty({__proto__:null,addItem:zt},Symbol.toStringTag,{value:"Module"})),Hr=async t=>await ot.create({user:t}),zc=async t=>{const a=await ot.findOne({user:t});return a||await Hr(t)},Xc=["crewUpdate","crewQuestUpdate","userMetaUpdate","userQuestMetaUpdate","userQuestUpdate","userInventoryUpdate","userOrnamentsUpdate","userDaily","crewDaily","userChristmasUpdate"],qr=new vs.EventEmitter,se=(t,a,s)=>{qr.emit(t,a,s)},Zc=t=>{for(const a of Xc)qr.on(a,(s,r)=>{t(a,s,r)})};class d{constructor(){e(this,"chest");e(this,"repeatable");e(this,"onUserMetaUpdate");e(this,"onUserQuestUpdate");e(this,"onUserQuestMetaUpdate");e(this,"onUserInventoryUpdate");e(this,"onUserOrnamentsUpdate");e(this,"onCrewUpdate");e(this,"onCrewQuestUpdate");e(this,"complete",async(a,{_userQuest:s,_userCrew:r,_userMeta:n,_userInventory:i})=>{const o=s??await ws(a);if(this.isCompleted(o)&&!this.repeatable)return null;const f=n??await ft(a),m=r??await wn(a),_=i??await Fe(a);return this.crew&&m?this.daily?await this.markCrewDailyAsCompleted(m.crew._id,o.user._id):(await this.markAsCompleted(o),await this.markCrewAsCompleted(m.crew._id)):await this.markAsCompleted(o),await this.specificQuestCompletion(o,m),await this.applyReward(o,f,m,_)});e(this,"getComputedRewards",(a,s)=>{const r=this.daily&&Xa(s)?Za(s):1;return{xp:(Rr(this.xp)?this.xp(a):this.xp)*r*(1+fs(a)),berry:(Rr(this.berry)?this.berry(a):this.berry)*r}})}async applyReward(a,s,r,n){return this.title&&await ys(a.user._id,this.title.name),this.badge&&(this.crew&&r?await Qn(r.crew._id,this.badge,this.rank.id):await kn(a.user._id,this.badge,this.rank.id)),this.isFactionBadge&&await Rn(a.user._id,this.rank.id),this.asset&&await Cn(a.user._id,this.asset),this.chest&&await un(n.user._id,this.chest),this.getComputedRewards(s,a)}async specificQuestCompletion(a,s){this.id==="daily_all"&&(await On(a.user._id,a.lastFullComplete),s&&await this.markCrewDailyAsCompleted(s.crew._id,a.user._id)),this.id==="be_level_10"&&await In(a.user._id,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await Yn(a.user._id,!0),this.id==="crew_all_members_daily"&&s&&await gn(a.user._id)}isCompleted(a){return this.daily?Gr(a,this.id):Kr(a,this.id)}async markAsCompleted(a){this.daily?await Bn(a.user._id,this.id):await Un(a.user._id,this.id)}async markCrewAsCompleted(a){await qn(a,this.id)}async markCrewDailyAsCompleted(a,s){await Kn(a,s.toHexString(),this.id)}}class Jc extends d{constructor(){super(...arguments);e(this,"name","Bienvenue à bord !");e(this,"id","crew_create_or_join");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Créer son équipage/Rejoindre un équipage");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1)}}class eu extends d{constructor(){super(...arguments);e(this,"name","Prêt à naviguer !");e(this,"id","crew_daily_click");e(this,"rank",l.RANKS.COMMON);e(this,"description","Faire acte de présence auprès de son équipage");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"crew",!0);e(this,"daily",!0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1)}}const tu=Object.freeze(Object.defineProperty({__proto__:null,CrewCreateOrJoin:Jc,CrewValidateDaily:eu},Symbol.toStringTag,{value:"Module"}));class au extends d{constructor(){super(...arguments);e(this,"name","1 jour 1 message");e(this,"id","daily_send_message");e(this,"rank",l.RANKS.COMMON);e(this,"description","Envoyer un message");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*100);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class su extends d{constructor(){super(...arguments);e(this,"name","Les nouvelles sont bonnes ?");e(this,"id","daily_read_edito");e(this,"rank",l.RANKS.COMMON);e(this,"description","Réagir à l'édito");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*3e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*300);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class ru extends d{constructor(){super(...arguments);e(this,"name","Quoi ? Feur !");e(this,"id","daily_answer");e(this,"rank",l.RANKS.COMMON);e(this,"description","Répondre à quelqu'un");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1500);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*150);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class nu extends d{constructor(){super(...arguments);e(this,"name","Narcissique");e(this,"id","daily_check_profile");e(this,"rank",l.RANKS.COMMON);e(this,"description","Regarder son profil");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*2e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*200);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class iu extends d{constructor(){super(...arguments);e(this,"name","Almanax");e(this,"id","almanax");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Valider 365 jours de suite les quêtes quotidiennes");e(this,"berry",1e9);e(this,"xp",1e6);e(this,"badge",u.BadgeList.calendar);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1)}}const za=Object.freeze(Object.defineProperty({__proto__:null,Almanax:iu,DailyAnswer:ru,DailyCheckProfile:nu,DailyReadEdito:su,DailySendMessage:au},Symbol.toStringTag,{value:"Module"})),lu=async(t,a,s,{berry:r,xp:n})=>{const i=await ws(a).then(F=>F.populate("user","faction")),o=Za(i),f=zr(i,i.user.faction),{badge:m,isFactionBadge:_,title:B,rank:Y,name:H,description:By,daily:ra,secret:Oy}=t;return s.Image().setImageName(`quest_success_${Y.id}`).setDimensions(2080,636).draw(),m?s.Image().setImageName(u.progressiveBadgeTypeGuard(m)?`cropped_badge_${m.img}_${Y.id}`:`cropped_badge_${m.img}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():_&&i.user.faction!=="citizen"?s.Image().setImageName(`cropped_badge_${i.user.faction}_${Y.id}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():s.Image().setImageName(`badge_default_${Y.id}`).setScale(2).setOrigin(j.CanvasOrigin.CENTER).setPosition(370,318).draw(),s.Text(ra?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(Y.color).draw(),s.Text(H).setPosition(739,325).setOrigin(j.CanvasOrigin.BOTTOM_LEFT).setFont("poppins",H.length>=35?65-(H.length-35):65).draw(),s.Text(Oy?"Succès caché":By).setPosition(739,360).setFont("poppins_italic",35).draw(),s.Text(`Récompenses: ${Kt(r)}${ra&&o>1?` (+${Kt(r*(o-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(j.CanvasOrigin.LEFT).draw(r!==0).next((F,L)=>j.nextAllToXAxis(F.Image(),L)).setImageName("quest_berry").setDimensions(50,79).draw(r!==0).next((F,L)=>j.nextAllToXAxis(F.Text(` / ${Kt(n)}${ra&&o>1?` (+${Kt(n*(o-1))})`:""} `),L)).draw(n!==0).next((F,L)=>j.nextAllToXAxis(F.Image(),L)).setImageName("quest_xp").setDimensions(57,59).draw(n!==0).next((F,L)=>j.nextAllToXAxis(F.Text(` combo x${o}`),L)).draw(ra&&o>1).next((F,L)=>j.nextAllToXAxis(F.Text(" et la possibilité "),L)).draw(_&&i.user.faction==="citizen").next((F,L)=>j.nextAllToXAxis(F.Text("de choisir ta faction"),L)).setFont("poppins_bold",35).draw(_&&i.user.faction==="citizen").next((F,L)=>j.nextAllToXAxis(F.Text(" et le titre "),L)).setFont("poppins",35).draw(!!B||_&&i.user.faction!=="citizen").next((F,L)=>j.nextAllToXAxis(F.Text((B==null?void 0:B.name)??""),L)).setFont("poppins_bold",35).setColor((B==null?void 0:B.rank.color)??"white").draw(!!B).next((F,L)=>j.nextAllToXAxis(F.Text((f==null?void 0:f.name)??""),L)).setColor((f==null?void 0:f.rank.color)??"white").draw(_&&!!f),await s.encode("webp")},du=10,ou=1e7,cu=100,uu=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"],fu={factions:{b_citizen_COMMON:"<:BasiqueOPFRbois:1175507882188484761>",b_citizen_RARE:"<:BasiqueOPFRargent:1175507880724668488>",b_citizen_EPIC:"<:BasiqueOPFRor:1175507883501289512>",b_citizen_LEGENDARY:"<:BasiqueOPFRplatine:1175507886714134548>",b_citizen_MYTHIC:"<:BasiqueOPFRultime:1175507889553670264>",b_marine_COMMON:"<:Marinebois:1175507936953512036>",b_marine_RARE:"<:Marineargent:1175508322351321178>",b_marine_EPIC:"<:Marineor:1175508300603863132>",b_marine_LEGENDARY:"<:Marineplatine:1175507940803879012>",b_marine_MYTHIC:"<:Marineultime:1175508279590395977>",b_revolutionary_COMMON:"<:RvoBois:1175507954779295810>",b_revolutionary_RARE:"<:RvoArgent:1175508199118483457>",b_revolutionary_EPIC:"<:RvoOr:1175508111885344819>",b_revolutionary_LEGENDARY:"<:RvoPlatine:1175507958378008756>",b_revolutionary_MYTHIC:"<:RvoUltime:1175508127815319612>",b_pirate_COMMON:"<:Piratebois:1175508259768115272>",b_pirate_RARE:"<:Pirateargent:1175507943987363941>",b_pirate_EPIC:"<:Pirateor:1175508240243621928>",b_pirate_LEGENDARY:"<:Pirateplatine:1175507949578358804>",b_pirate_MYTHIC:"<:Pirateultime:1175507951709061150>"}},Kr=(t,a)=>t.completed.includes(a),Wr=t=>{for(const a of Object.values(vt)){const s=new a;if(s.repeatable&&t===s.id)return!0}return!1},hu=t=>{for(const a of Object.values(Xr)){const s=new a;if(s.id===t)return s.name}return null},Gr=(t,a)=>{const s=t.daily[a];return s&&Se(s,new Date)},Xa=t=>Se(ja(),t.lastFullComplete),Za=t=>Xa(t)?1+Math.min(2,t.streak/10):1,Vr=t=>t.completed.reduce((a,s)=>a+(s.startsWith("be_level_")?1:0),0),zr=(t,a)=>{const s=Vr(t);return u.factionTitleList.find(r=>r.strength===s&&r.faction===a)},pu=Object.freeze(Object.defineProperty({__proto__:null,getFactionTitle:zr,getFactionTitleStrength:Vr,getQuestName:hu,getStreakMultiplier:Za,isDailyQuestCompleted:Gr,isQuestCompleted:Kr,isRepetableQuestExist:Wr,isStreaking:Xa},Symbol.toStringTag,{value:"Module"})),mu=(t,a)=>{const s=t.badge,r=t.isFactionBadge;return s?u.progressiveBadgeTypeGuard(s)?s.emojis[s.isProgressive.findIndex(n=>n===t.rank.id)]:s.emojis:r?fu.factions[`b_${a}_${t.rank.id}`]:""},yu=t=>{const[a,s]=t.split("_"),r=Object.values(u.BadgeList).find(n=>n.id===a);if(r)return u.progressiveBadgeTypeGuard(r)?r.emojis[r.isProgressive.findIndex(n=>n===s)]:r.emojis},gu=async(t,a)=>{const s=Object.values(za).find(r=>new r().id===t);if(s){const r=new s,n=await r.complete(a,{});n&&se("userDaily",a,[[r,n]])}},wu=async(t,a)=>{const s=Object.values(tu).find(r=>new r().id===t);if(s){const r=new s,n=await r.complete(a,{});n&&se("crewDaily",a,[[r,n]])}},_u=async(t,a)=>{if(!Wr(a))return;const s=Object.values(vt).find(r=>new r().id===a);if(s){const r=new s,n=await r.complete(t,{});n&&se("userQuestUpdate",t,[[r,n]])}};class bu extends d{constructor(){super(...arguments);e(this,"name","L'Insistant");e(this,"id","insistent");e(this,"rank",l.RANKS.COMMON);e(this,"description","Être repêché et atteindre les huitièmes de finale");e(this,"berry",1e6);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Su extends d{constructor(){super(...arguments);e(this,"name","Résurrection");e(this,"id","resurrection");e(this,"rank",l.RANKS.RARE);e(this,"description","Être repêché et atteindre les quarts de finale");e(this,"berry",3e6);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Mu extends d{constructor(){super(...arguments);e(this,"name","Renaissance");e(this,"id","rebirth");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être repêché et atteindre au moins les demi-finales");e(this,"berry",1e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class vu extends d{constructor(){super(...arguments);e(this,"name","Phoenix");e(this,"id","phoenix");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être repêché et aller en finale");e(this,"berry",2e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class ku extends d{constructor(){super(...arguments);e(this,"name","L'Immortel");e(this,"id","immortal");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Être repêché et remporter le tournoi");e(this,"berry",4e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Ru extends d{constructor(){super(...arguments);e(this,"name","Branche Maudite");e(this,"id","cursed_branch");e(this,"rank",l.RANKS.RARE);e(this,"description","Perdre le tournoi en top 32");e(this,"berry",25e6);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Cu extends d{constructor(){super(...arguments);e(this,"name","Top 64");e(this,"id","top64");e(this,"rank",l.RANKS.COMMON);e(this,"description","Perdre le tournoi en top 64");e(this,"berry",15e6);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class xu extends d{constructor(){super(...arguments);e(this,"name","Zero Pointé");e(this,"id","zeroscored");e(this,"rank",l.RANKS.COMMON);e(this,"description","Se faire éliminer directement avec tous ses choix dès le premier duel");e(this,"berry",1e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Uu extends d{constructor(){super(...arguments);e(this,"name","Chasseur de Géants");e(this,"id","gianthunter");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Battre les 3 tap-in du tournoi avec tes choix");e(this,"berry",1e8);e(this,"xp",0);e(this,"chest",[{chest:"chest_2",size:5}]);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Bu extends d{constructor(){super(...arguments);e(this,"name","Sabotage");e(this,"id","sabotage");e(this,"rank",l.RANKS.EPIC);e(this,"description","Empêcher un choix de tap-in d'atteindre le top 32");e(this,"berry",3e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Ou extends d{constructor(){super(...arguments);e(this,"name","Victoire par K.O");e(this,"id","victorybyko");e(this,"rank",l.RANKS.COMMON);e(this,"description","Gagner un duel avec plus de 75% des votes");e(this,"berry",5e6);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Au extends d{constructor(){super(...arguments);e(this,"name","Le Sniper");e(this,"id","sniper");e(this,"rank",l.RANKS.RARE);e(this,"description","Gagner un duel avec plus de 80% des votes");e(this,"berry",1e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Du extends d{constructor(){super(...arguments);e(this,"name","Massacre");e(this,"id","massacre");e(this,"rank",l.RANKS.EPIC);e(this,"description","Gagner un duel avec plus de 90% des votes");e(this,"berry",25e6);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Nu extends d{constructor(){super(...arguments);e(this,"name","Annihilation");e(this,"id","annihilation");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Gagner un duel avec 100% des votes (aucun vote pour l'adversaire)");e(this,"berry",1e8);e(this,"xp",0);e(this,"chest",[{chest:"chest_1",size:5}]);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Eu extends d{constructor(){super(...arguments);e(this,"name","Troll Suprême");e(this,"id","trollSupreme");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Prendre un choix totalement troll et improbable, puis gagner le tournoi avec !");e(this,"berry",1e8);e(this,"xp",0);e(this,"chest",[{chest:"chest_3",size:1}]);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class $u extends d{constructor(){super(...arguments);e(this,"name","Champion");e(this,"id","champion");e(this,"rank",l.RANKS.RARE);e(this,"description","Remporter un tournoi");e(this,"berry",0);e(this,"xp",0);e(this,"chest",[{chest:"chest_2",size:5}]);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Fu extends d{constructor(){super(...arguments);e(this,"name","Le Maître");e(this,"id","master");e(this,"rank",l.RANKS.RARE);e(this,"description","Remporter un tournoi avec trois choix différents dans le top 16");e(this,"berry",0);e(this,"xp",0);e(this,"chest",[{chest:"chest_3",size:1}]);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Iu extends d{constructor(){super(...arguments);e(this,"name","L'Inarrétable");e(this,"id","unstoppable");e(this,"rank",l.RANKS.EPIC);e(this,"description","Remporter un tournoi avec une finale écrasante");e(this,"berry",0);e(this,"xp",0);e(this,"chest",[{chest:"chest_1",size:5},{chest:"chest_2",size:3}]);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Yu extends d{constructor(){super(...arguments);e(this,"name","L'Etoile Filante");e(this,"id","shootingstar");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Passer du statut d'outsider à finaliste");e(this,"berry",5e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Lu extends d{constructor(){super(...arguments);e(this,"name","EZ");e(this,"id","ez");e(this,"rank",l.RANKS.EPIC);e(this,"description","Débloquer tous les succès Victoire sans difficulté");e(this,"berry",0);e(this,"xp",0);e(this,"chest",[{chest:"chest_3",size:1}]);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Pu extends d{constructor(){super(...arguments);e(this,"name","Participation");e(this,"id","participation");e(this,"rank",l.RANKS.COMMON);e(this,"description","Participer au tournoi avec 1, 2, 3 et 4 choix");e(this,"berry",1e7);e(this,"xp",0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"repeatable",!0)}}class Tu extends d{constructor(){super(...arguments);e(this,"name","Prenez-en soin");e(this,"id","crew_carpenter_1_week");e(this,"rank",l.RANKS.COMMON);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 semaine");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=7)}}class ju extends d{constructor(){super(...arguments);e(this,"name","Il est comme neuf !");e(this,"id","crew_carpenter_1_month");e(this,"rank",l.RANKS.RARE);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 mois");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30)}}class Qu extends d{constructor(){super(...arguments);e(this,"name","À l'occasion, je vous mettrai un petit coup de polish");e(this,"id","crew_carpenter_3_months");e(this,"rank",l.RANKS.EPIC);e(this,"description","Rester au dessus de 80% de détérioration pendant 3 mois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30*3)}}class Hu extends d{constructor(){super(...arguments);e(this,"name","Vous ne naviguez qu'en eau calme ?");e(this,"id","crew_carpenter_6_months");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Rester au dessus de 80% de détérioration pendant 6 mois");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30*6)}}class qu extends d{constructor(){super(...arguments);e(this,"name","C'est un sacré charpentier que vous avez là !");e(this,"id","crew_carpenter_1_year");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 an");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles["Charpentier Légendaire"]);e(this,"badge",u.BadgeList.carpenter);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=365)}}class Ku extends d{constructor(){super(...arguments);e(this,"name","Au rapport !");e(this,"id","crew_all_members_daily");e(this,"rank",l.RANKS.RARE);e(this,"description","Tous les membres ont rempli leurs quêtes quotidiennes");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"daily",!0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"onCrewQuestUpdate",(s,r)=>{var n,i;return Hn(s,"daily_all")&&!Se(((i=(n=s.daily)==null?void 0:n[r.user._id.toHexString()])==null?void 0:i.crew_all_members_daily)??new Date(0),new Date)&&!Se(r.lastAllMembersDaily,new Date)})}}class Wu extends d{constructor(){super(...arguments);e(this,"name","Réunion de crise");e(this,"id","crew_vocal_5");e(this,"rank",l.RANKS.COMMON);e(this,"description","Être dans un un vocal avec les 5 membres pendant 1 heure");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=5)}}class Gu extends d{constructor(){super(...arguments);e(this,"name","Conseil de guerre");e(this,"id","crew_vocal_7");e(this,"rank",l.RANKS.RARE);e(this,"description","Être dans un un vocal avec les 7 membres pendant 1 heure");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=7)}}class Vu extends d{constructor(){super(...arguments);e(this,"name","Réunion de famille");e(this,"id","crew_vocal_10");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être dans un un vocal avec les 10 membres pendant 1 heure");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=10)}}class zu extends d{constructor(){super(...arguments);e(this,"name","Les Inséparables");e(this,"id","crew_vocal_12");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être dans un un vocal avec les 12 membres pendant 1 heure");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=12)}}class Xu extends d{constructor(){super(...arguments);e(this,"name","Ambiance sectaire un peu");e(this,"id","crew_vocal_15");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Être dans un un vocal avec les 15 membres pendant 1 heure");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles["Membre d'une secte"]);e(this,"badge",u.BadgeList.shipsecte);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=15)}}const Ja=Object.freeze(Object.defineProperty({__proto__:null,CrewAllMembersDaily:Ku,CrewCarpenter1Month:ju,CrewCarpenter1Week:Tu,CrewCarpenter1Year:qu,CrewCarpenter3Months:Qu,CrewCarpenter6Months:Hu,CrewVocal10:Vu,CrewVocal12:zu,CrewVocal15:Xu,CrewVocal5:Wu,CrewVocal7:Gu},Symbol.toStringTag,{value:"Module"}));class Zu extends d{constructor(){super(...arguments);e(this,"name","Ah bah maintenant, elle va marcher beaucoup moins bien forcément !");e(this,"id","crew_break_ship");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Casser son bateau (atteindre les 0% de détérioration)");e(this,"berry",-1e6);e(this,"xp",-1e5);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.disintegration<=0)}}class Ju extends d{constructor(){super(...arguments);e(this,"name","Sympa votre barque");e(this,"id","crew_ship_level_10");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 10 d'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=10)}}class ef extends d{constructor(){super(...arguments);e(this,"name","Joli bicoque");e(this,"id","crew_ship_level_25");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 25 d'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=25)}}class tf extends d{constructor(){super(...arguments);e(this,"name","* C'est un fameux trois-mâts *");e(this,"id","crew_ship_level_50");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 50 d'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=50)}}class af extends d{constructor(){super(...arguments);e(this,"name","* Fin comme un oiseau *");e(this,"id","crew_ship_level_75");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 75 d'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=75)}}class sf extends d{constructor(){super(...arguments);e(this,"name","* Hisse et ho ! *");e(this,"id","crew_ship_level_100");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 100 d'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles.Santiano);e(this,"badge",u.BadgeList.crewship);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentCrewLevel(s.meta.xp)>=100)}}class rf extends d{constructor(){super(...arguments);e(this,"name","Y'a pas de petites économies");e(this,"id","crew_have_100M_berry");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 100 000 000 Berrys dans le coffre d'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=1e8)}}class nf extends d{constructor(){super(...arguments);e(this,"name","Joli butin !");e(this,"id","crew_have_500M_berry");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 500 000 000 Berrys dans le coffre d'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e8)}}class lf extends d{constructor(){super(...arguments);e(this,"name","Vous économisez pour un nouveau bateau ?");e(this,"id","crew_have_1Md_berry");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 1 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=1e9)}}class df extends d{constructor(){super(...arguments);e(this,"name","Ça fait beaucoup là non ?");e(this,"id","crew_have_5Md_berry");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 5 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e9)}}class of extends d{constructor(){super(...arguments);e(this,"name","Karl Marx serait fier de vous !");e(this,"id","crew_have_50Md_berry");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 50 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles.Communiste);e(this,"badge",u.BadgeList.communism);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e10)}}class cf extends d{constructor(){super(...arguments);e(this,"name","Plus on est de fous...");e(this,"id","crew_size_5");e(this,"rank",l.RANKS.COMMON);e(this,"description","Être dans un équipage de 5 membres");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=5)}}class uf extends d{constructor(){super(...arguments);e(this,"name","Plus on rit !");e(this,"id","crew_size_7");e(this,"rank",l.RANKS.RARE);e(this,"description","Être dans un équipage de 7 membres");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=7)}}class ff extends d{constructor(){super(...arguments);e(this,"name","Une petite famille");e(this,"id","crew_size_10");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être dans un équipage de 10 membres");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=10)}}class hf extends d{constructor(){super(...arguments);e(this,"name","Va falloir des dortoirs en plus");e(this,"id","crew_size_12");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être dans un équipage de 12 membres");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=12)}}class pf extends d{constructor(){super(...arguments);e(this,"name","* Ah qu'est-ce qu'on est serré ! *");e(this,"id","crew_size_15");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Être dans un équipage de 15 membres");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles.Sardine);e(this,"badge",u.BadgeList.sardine);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=15)}}class mf extends d{constructor(){super(...arguments);e(this,"name","C'est sympa pour eux !");e(this,"id","crew_bring_50k_xp");e(this,"rank",l.RANKS.COMMON);e(this,"description","Rapporter 50 000 XP à l'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e4)}}class yf extends d{constructor(){super(...arguments);e(this,"name","On voit que tu aimes ton équipage");e(this,"id","crew_bring_500k_xp");e(this,"rank",l.RANKS.RARE);e(this,"description","Rapporter 500 000 XP à l'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e5)}}class gf extends d{constructor(){super(...arguments);e(this,"name","Le méritent-ils vraiment ?");e(this,"id","crew_bring_1m_xp");e(this,"rank",l.RANKS.EPIC);e(this,"description","Rapporter 1 000 000 XP à l'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=1e6)}}class wf extends d{constructor(){super(...arguments);e(this,"name","J'espère que t'as eu une prime");e(this,"id","crew_bring_5m_xp");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Rapporter 5 000 000 XP à l'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e6)}}class _f extends d{constructor(){super(...arguments);e(this,"name","Qu'on lui fasse une statue de Bronze !");e(this,"id","crew_bring_50m_xp");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Rapporter 50 000 000 XP à l'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Team Player"]);e(this,"badge",u.BadgeList.broship);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",(s,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e7)}}const es=Object.freeze(Object.defineProperty({__proto__:null,CrewBeLevel10:Ju,CrewBeLevel100:sf,CrewBeLevel25:ef,CrewBeLevel50:tf,CrewBeLevel75:af,CrewBreakShip:Zu,CrewBring1mXp:gf,CrewBring500kXp:yf,CrewBring50kXp:mf,CrewBring50mXp:_f,CrewBring5mXp:wf,CrewHave100MBerry:rf,CrewHave1MdBerry:lf,CrewHave500MBerry:nf,CrewHave50MdBerry:of,CrewHave5MdBerry:df,CrewSize10:ff,CrewSize12:hf,CrewSize15:pf,CrewSize5:cf,CrewSize7:uf},Symbol.toStringTag,{value:"Module"}));class bf extends d{constructor(){super(...arguments);e(this,"name","Ne fais rien exploser hein ?");e(this,"id","have_1_recipe");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 1 recette");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=1)}}class Sf extends d{constructor(){super(...arguments);e(this,"name","C'est bien tu sais faire des pâtes !");e(this,"id","have_5_recipe");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 5 recettes");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=5)}}class Mf extends d{constructor(){super(...arguments);e(this,"name","Ta grand-mère t'as donné son livre ?");e(this,"id","have_10_recipe");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 10 recettes");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=10)}}class vf extends d{constructor(){super(...arguments);e(this,"name","Let him cook");e(this,"id","have_25_recipe");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 25 recettes");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=25)}}class kf extends d{constructor(){super(...arguments);e(this,"name","Paul Bocuse");e(this,"id","have_100_recipe");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 100 recettes");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Paul Bocuse"]);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=100)}}const ts=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:kf,Have10Recipe:Mf,Have1Recipe:bf,Have25Recipe:vf,Have5Recipe:Sf},Symbol.toStringTag,{value:"Module"}));class Rf extends d{constructor(){super(...arguments);e(this,"name","Enfin de quoi t'acheter un bon vélo !");e(this,"id","have_500000_berry");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 500 000 Berrys");e(this,"berry",1e5);e(this,"xp",5e3);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e5)}}class Cf extends d{constructor(){super(...arguments);e(this,"name","Ouah t'es multi-millionaire !");e(this,"id","have_5000000_berry");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 5 000 000 Berrys");e(this,"berry",1e6);e(this,"xp",25e3);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e6)}}class xf extends d{constructor(){super(...arguments);e(this,"name","Presque riche");e(this,"id","have_50000000_berry");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 50 000 000 Berrys");e(this,"berry",1e7);e(this,"xp",5e4);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e7)}}class Uf extends d{constructor(){super(...arguments);e(this,"name","Un 20m² à Paris");e(this,"id","have_500000000_berry");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 500 000 000 Berrys");e(this,"berry",1e8);e(this,"xp",1e5);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e8)}}class Bf extends d{constructor(){super(...arguments);e(this,"name","This is Elon Musk");e(this,"id","have_5000000000_berry");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 5 000 000 000 Berrys");e(this,"berry",1e9);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Elon Musk"]);e(this,"badge",u.BadgeList.berry);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e9)}}class Of extends d{constructor(){super(...arguments);e(this,"name","5 jours / semaine à Basic Fit");e(this,"id","have_25_strength");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de force");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.strength)>=25)}}class Af extends d{constructor(){super(...arguments);e(this,"name","La fonte > les livres");e(this,"id","have_50_strength");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de force");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.strength)>=50)}}class Df extends d{constructor(){super(...arguments);e(this,"name","Moi, musclé ?");e(this,"id","have_100_strength");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de force");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.strength)>=100)}}class Nf extends d{constructor(){super(...arguments);e(this,"name","Hercules");e(this,"id","have_250_strength");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de force");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.strength)>=250)}}class Ef extends d{constructor(){super(...arguments);e(this,"name","Titan");e(this,"id","have_500_strength");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de force");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles.Titan);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.strength)>=500)}}class $f extends d{constructor(){super(...arguments);e(this,"name","Chat de gouttière");e(this,"id","have_25_agility");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 d'agilité");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.agility)>=25)}}class Ff extends d{constructor(){super(...arguments);e(this,"name","Hop ! Grand écart !");e(this,"id","have_50_agility");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 d'agilité");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.agility)>=50)}}class If extends d{constructor(){super(...arguments);e(this,"name","Danseur étoile");e(this,"id","have_100_agility");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 d'agilité");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.agility)>=100)}}class Yf extends d{constructor(){super(...arguments);e(this,"name","L'Éclair de Konoha ! (merde mauvais manga)");e(this,"id","have_250_agility");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 d'agilité");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.agility)>=250)}}class Lf extends d{constructor(){super(...arguments);e(this,"name","Héritier de Bon Clay");e(this,"id","have_500_agility");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 d'agilité");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Bon Clay"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.agility)>=500)}}class Pf extends d{constructor(){super(...arguments);e(this,"name","2+2 = 4");e(this,"id","have_25_intelligence");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 d'intelligence");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.intelligence)>=25)}}class Tf extends d{constructor(){super(...arguments);e(this,"name","Petit Einstein");e(this,"id","have_50_intelligence");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 d'intelligence");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.intelligence)>=50)}}class jf extends d{constructor(){super(...arguments);e(this,"name","HPI");e(this,"id","have_100_intelligence");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 d'intelligence");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.intelligence)>=100)}}class Qf extends d{constructor(){super(...arguments);e(this,"name","Sorcier du savoir");e(this,"id","have_250_intelligence");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 d'intelligence");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.intelligence)>=250)}}class Hf extends d{constructor(){super(...arguments);e(this,"name","Héritier de Vegapunk");e(this,"id","have_500_intelligence");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 d'intelligence");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Vegapunk"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.intelligence)>=500)}}class qf extends d{constructor(){super(...arguments);e(this,"name","Touche du bois");e(this,"id","have_25_chance");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de chance");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.chance)>=25)}}class Kf extends d{constructor(){super(...arguments);e(this,"name","Petit veinard");e(this,"id","have_50_chance");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de chance");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.chance)>=50)}}class Wf extends d{constructor(){super(...arguments);e(this,"name","LA CHAAAAAATTE !");e(this,"id","have_100_chance");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de chance");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.chance)>=100)}}class Gf extends d{constructor(){super(...arguments);e(this,"name","Favori des Astres");e(this,"id","have_250_chance");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de chance");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.chance)>=250)}}class Vf extends d{constructor(){super(...arguments);e(this,"name","Héritier de Baggy");e(this,"id","have_500_chance");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de chance");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Baggy"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.chance)>=500)}}class zf extends d{constructor(){super(...arguments);e(this,"name","Résistant");e(this,"id","have_25_vitality");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de vitalité");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.vitality)>=25)}}class Xf extends d{constructor(){super(...arguments);e(this,"name","Solide comme un roc");e(this,"id","have_50_vitality");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de vitalité");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.vitality)>=50)}}class Zf extends d{constructor(){super(...arguments);e(this,"name","Le tank !");e(this,"id","have_100_vitality");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de vitalité");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.vitality)>=100)}}class Jf extends d{constructor(){super(...arguments);e(this,"name","Mais t'es increvable !");e(this,"id","have_250_vitality");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de vitalité");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.vitality)>=250)}}class eh extends d{constructor(){super(...arguments);e(this,"name","Héritier de Kaido");e(this,"id","have_500_vitality");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de vitalité");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Kaido"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.vitality)>=500)}}class th extends d{constructor(){super(...arguments);e(this,"name","Tu as lu des livres ?");e(this,"id","have_25_wisdom");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de sagesse");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.wisdom)>=25)}}class ah extends d{constructor(){super(...arguments);e(this,"name","Filozof");e(this,"id","have_50_wisdom");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de sagesse");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.wisdom)>=50)}}class sh extends d{constructor(){super(...arguments);e(this,"name","Platon");e(this,"id","have_100_wisdom");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de sagesse");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.wisdom)>=100)}}class rh extends d{constructor(){super(...arguments);e(this,"name","Oracle vénéré");e(this,"id","have_250_wisdom");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de sagesse");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.wisdom)>=250)}}class nh extends d{constructor(){super(...arguments);e(this,"name","Héritier d'Ohara");e(this,"id","have_500_wisdom");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de sagesse");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier d'Ohara"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>x.getComputedCharacteristicValue(s.characteristics.wisdom)>=500)}}class ih extends d{constructor(){super(...arguments);e(this,"name","Un pas devant l'autre !");e(this,"id","be_level_10");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 10");e(this,"berry",1e5);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=10)}}class lh extends d{constructor(){super(...arguments);e(this,"name","T'inquiète pas ça va bien se passer");e(this,"id","be_level_20");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 20");e(this,"berry",3e5);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=20)}}class dh extends d{constructor(){super(...arguments);e(this,"name","Commence par me parler poliment");e(this,"id","be_level_30");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 30");e(this,"berry",1e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=30)}}class oh extends d{constructor(){super(...arguments);e(this,"name","On te respecte à la cantine");e(this,"id","be_level_40");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 40");e(this,"berry",3e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=40)}}class ch extends d{constructor(){super(...arguments);e(this,"name","Ça commence à devenir sérieux");e(this,"id","be_level_50");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 50");e(this,"berry",5e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=50)}}class uh extends d{constructor(){super(...arguments);e(this,"name","Une chambre individuelle ? La chance !");e(this,"id","be_level_60");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 60");e(this,"berry",1e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=60)}}class fh extends d{constructor(){super(...arguments);e(this,"name","Oulah, les responsabilités arrivent");e(this,"id","be_level_70");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 70");e(this,"berry",5e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=70)}}class hh extends d{constructor(){super(...arguments);e(this,"name","Faut pas t'emmerder toi");e(this,"id","be_level_80");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 80");e(this,"berry",5e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=80)}}class ph extends d{constructor(){super(...arguments);e(this,"name","Là on parle !");e(this,"id","be_level_90");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 90");e(this,"berry",1e8);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=90)}}class mh extends d{constructor(){super(...arguments);e(this,"name","*S'agenouille*");e(this,"id","be_level_120");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 120");e(this,"berry",1e9);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=120)}}class yh extends d{constructor(){super(...arguments);e(this,"name","T'as des amis ?");e(this,"id","daily_vocal");e(this,"rank",l.RANKS.COMMON);e(this,"description","Se connecter 10 min en vocal");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*5e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*500);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserMetaUpdate",({xp:s})=>s.voice.minutesInVoiceToday>=10&&Se(s.voice.lastConnection,new Date))}}class gh extends d{constructor(){super(...arguments);e(this,"name","Merci <3");e(this,"id","premium");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Faire un don (validation manuelle)");e(this,"berry",1);e(this,"xp",0);e(this,"isFactionBadge",!1);e(this,"asset",null);e(this,"badge",u.BadgeList.premium);e(this,"title",u.questTitles.Mécène);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>!!s.premium)}}const as=Object.freeze(Object.defineProperty({__proto__:null,BeLevel10:ih,BeLevel120:mh,BeLevel20:lh,BeLevel30:dh,BeLevel40:oh,BeLevel50:ch,BeLevel60:uh,BeLevel70:fh,BeLevel80:hh,BeLevel90:ph,DailyVocal:yh,Have100Agility:If,Have100Chance:Wf,Have100Intelligence:jf,Have100Strength:Df,Have100Vitality:Zf,Have100Wisdom:sh,Have250Agility:Yf,Have250Chance:Gf,Have250Intelligence:Qf,Have250Strength:Nf,Have250Vitality:Jf,Have250Wisdom:rh,Have25Agility:$f,Have25Chance:qf,Have25Intelligence:Pf,Have25Strength:Of,Have25Vitality:zf,Have25Wisdom:th,Have500Agility:Lf,Have500Chance:Vf,Have500Intelligence:Hf,Have500Strength:Ef,Have500Vitality:eh,Have500Wisdom:nh,Have500kBerry:Rf,Have500mBerry:Uf,Have50Agility:Ff,Have50Chance:Kf,Have50Intelligence:Tf,Have50Strength:Af,Have50Vitality:Xf,Have50Wisdom:ah,Have50mBerry:xf,Have5mBerry:Cf,Have5mdBerry:Bf,Premium:gh},Symbol.toStringTag,{value:"Module"}));class wh extends d{constructor(){super(...arguments);e(this,"name","Un poster dans ta chambre");e(this,"id","have_1_background");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 1 background");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(r=>r!=="default").length>=1)}}class _h extends d{constructor(){super(...arguments);e(this,"name","Fan de One Piece");e(this,"id","have_25_background");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 25 backgrounds différents");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(r=>r!=="default").length>=25)}}class bh extends d{constructor(){super(...arguments);e(this,"name","Tu vas en faire quoi ? Tu peux en mettre qu'un");e(this,"id","have_50_background");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 50 backgrounds différents");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(r=>r!=="default").length>=50)}}class Sh extends d{constructor(){super(...arguments);e(this,"name","PTDR t ki ?");e(this,"id","have_10_title");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 10 titres différents");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=10)}}class Mh extends d{constructor(){super(...arguments);e(this,"name","On m'appelle Personne");e(this,"id","have_50_title");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 50 titres différents");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=50)}}class vh extends d{constructor(){super(...arguments);e(this,"name","Ok Daenerys");e(this,"id","have_100_title");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 100 titres différents");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=100)}}const ss=Object.freeze(Object.defineProperty({__proto__:null,Have100Title:vh,Have10Title:Sh,Have1Background:wh,Have25Background:_h,Have50Background:bh,Have50Title:Mh},Symbol.toStringTag,{value:"Module"}));class kh extends d{constructor(){super(...arguments);e(this,"name","Petit joueur");e(this,"id","bet_min_value");e(this,"rank",l.RANKS.RARE);e(this,"description","Mise la somme minimale lors d'un pari");e(this,"berry",5e4);e(this,"xp",1e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles["Petit joueur"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.betMin)}}class Rh extends d{constructor(){super(...arguments);e(this,"name","On a tous le droit à une seconde chance");e(this,"id","lose_everything");e(this,"rank",l.RANKS.RARE);e(this,"description","Perdre tous ses Berrys");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.loseEverything)}}class Ch extends d{constructor(){super(...arguments);e(this,"name","T'es sûr de toi ?");e(this,"id","bet_10M");e(this,"rank",l.RANKS.EPIC);e(this,"description","Miser plus de 10 000 000 de Berrys en une seule fois");e(this,"berry",5e5);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.bet10M)}}class xh extends d{constructor(){super(...arguments);e(this,"name","Ok j'ai rien dit");e(this,"id","win_10M_bet");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Gagner en ayant misé plus de 10M de Berrys");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.winBet10M)}}class Uh extends d{constructor(){super(...arguments);e(this,"name","T'es accro là non ?");e(this,"id","bet_total_10M");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Miser plus de 10 000 000 de Berrys en tout");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles["Gambling addict"]);e(this,"badge",u.BadgeList.casino);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.totalBet>=1e7)}}class Bh extends d{constructor(){super(...arguments);e(this,"name","LE MILLIARD");e(this,"id","bet_total_1Md");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Miser plus de 1 000 000 000 de Berrys en tout");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"badge",u.BadgeList.casino);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.totalBet>=1e9)}}class Oh extends d{constructor(){super(...arguments);e(this,"name","Cheh !");e(this,"id","lose_10M");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Perdre 10M de Berrys en une fois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",u.BadgeList.noluck);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.lose10M)}}class Ah extends d{constructor(){super(...arguments);e(this,"name","Bon anniversaire !");e(this,"id","birthday");e(this,"rank",l.RANKS.EPIC);e(this,"description","Fêter son anniversaire");e(this,"berry",1e6);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.hasCelebrateBirthday)}}class Dh extends d{constructor(){super(...arguments);e(this,"name","Il ne va pas te répondre tu sais ?");e(this,"id","bot_ping");e(this,"rank",l.RANKS.EPIC);e(this,"description","Ping le bot 100 fois");e(this,"berry",25e4);e(this,"xp",25e3);e(this,"secret",!0);e(this,"title",u.questTitles.Teubé);e(this,"badge",null);e(this,"asset",u.profileAssets.idiot);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({botPing:s})=>s>=100)}}class Nh extends d{constructor(){super(...arguments);e(this,"name","Tu avais soif ?");e(this,"id","drink_100_xp_bottles_1_day");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 100 Potions d'XP en une journée");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.today>=100)}}class Eh extends d{constructor(){super(...arguments);e(this,"name","Un ptit goût amer non ?");e(this,"id","drink_200");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 200 Potions d'XP");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=200)}}class $h extends d{constructor(){super(...arguments);e(this,"name","Ça se boit bien finalement");e(this,"id","drink_500");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 500 Potions d'XP");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=500)}}class Fh extends d{constructor(){super(...arguments);e(this,"name","Les potions donnent des aiiiiles !");e(this,"id","drink_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 1000 Potions d'XP");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=1e3)}}class Ih extends d{constructor(){super(...arguments);e(this,"name","À deux doigts de vomir");e(this,"id","drink_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 2000 Potions d'XP");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=2e3)}}class Yh extends d{constructor(){super(...arguments);e(this,"name","Alcoolique");e(this,"id","drink_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 5000 Potions d'XP");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Alcoolique);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=5e3)}}class Lh extends d{constructor(){super(...arguments);e(this,"name","C'est sympa ce ptit jeu");e(this,"id","chest_open_50");e(this,"rank",l.RANKS.COMMON);e(this,"description","Ouvrir 50 Coffres");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=50)}}class Ph extends d{constructor(){super(...arguments);e(this,"name","T'as enfin eu un truc intéressant ?");e(this,"id","chest_open_150");e(this,"rank",l.RANKS.RARE);e(this,"description","Ouvrir 150 Coffres");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=150)}}class Th extends d{constructor(){super(...arguments);e(this,"name","Ça commence à gratter hein ?");e(this,"id","chest_open_500");e(this,"rank",l.RANKS.EPIC);e(this,"description","Ouvrir 500 Coffres");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=500)}}class jh extends d{constructor(){super(...arguments);e(this,"name","LAISSEZ-MOI OUVRIR DES COFFRES !");e(this,"id","chest_open_1000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Ouvrir 1000 Coffres");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=1e3)}}class Qh extends d{constructor(){super(...arguments);e(this,"name","xXFan2GenshinXx");e(this,"id","chest_open_2000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Ouvrir 2000 Coffres");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Gatcha Addict"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=2e3)}}class Hh extends d{constructor(){super(...arguments);e(this,"name","Ils font mieux chez Ikea");e(this,"id","craft_20_times");e(this,"rank",l.RANKS.COMMON);e(this,"description","Effectuer 20 crafts");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=20)}}class qh extends d{constructor(){super(...arguments);e(this,"name","Te fais pas mal avec le marteau");e(this,"id","craft_50_times");e(this,"rank",l.RANKS.RARE);e(this,"description","Effectuer 50 crafts");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=50)}}class Kh extends d{constructor(){super(...arguments);e(this,"name","Insensible aux échardes on dirait");e(this,"id","craft_200_times");e(this,"rank",l.RANKS.EPIC);e(this,"description","Effectuer 200 crafts");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=200)}}class Wh extends d{constructor(){super(...arguments);e(this,"name","Je ne veux pas voir l'état de ton atelier");e(this,"id","craft_500_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Effectuer 500 crafts");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=500)}}class Gh extends d{constructor(){super(...arguments);e(this,"name","Mac Gyver");e(this,"id","craft_1000_times");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Effectuer 1000 crafts");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Mac Gyver"]);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=1e3)}}class Vh extends d{constructor(){super(...arguments);e(this,"name","Apprenti Gourmand");e(this,"id","craft_10_cooked_meals");e(this,"rank",l.RANKS.COMMON);e(this,"description","Cuisiner 10 plats");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"asset",null);e(this,"title",u.questTitles["Apprenti Gourmand"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=10)}}class zh extends d{constructor(){super(...arguments);e(this,"name","Chef Amateur");e(this,"id","craft_50_cooked_meals");e(this,"rank",l.RANKS.RARE);e(this,"description","Cuisiner 50 plats");e(this,"berry",2e5);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",u.questTitles["Chef Amateur"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=50)}}class Xh extends d{constructor(){super(...arguments);e(this,"name","Maître des Saveurs");e(this,"id","craft_100_cooked_meals");e(this,"rank",l.RANKS.EPIC);e(this,"description","Cuisiner 100 plats");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles["Maître des Saveurs"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=100)}}class Zh extends d{constructor(){super(...arguments);e(this,"name","Artiste Culinaire");e(this,"id","craft_250_cooked_meals");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Cuisiner 250 plats");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"asset",null);e(this,"title",u.questTitles["Artiste Culinaire"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=250)}}class Jh extends d{constructor(){super(...arguments);e(this,"name","Sultan des Épices");e(this,"id","craft_500_cooked_meals");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Cuisiner 500 plats");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"asset",null);e(this,"title",u.questTitles["Sultan des Épices"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=500)}}class ep extends d{constructor(){super(...arguments);e(this,"name","C'est une bonne situation ça scribe ?");e(this,"id","craft_5_scrolls");e(this,"rank",l.RANKS.COMMON);e(this,"description","Craft 5 Parchemins");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"asset",null);e(this,"title",u.questTitles["Apprenti Scribe"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=5)}}class tp extends d{constructor(){super(...arguments);e(this,"name","Artisan des Runes");e(this,"id","craft_10_scrolls");e(this,"rank",l.RANKS.RARE);e(this,"description","Craft 10 Parchemins");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",u.questTitles["Artisan des Runes"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=10)}}class ap extends d{constructor(){super(...arguments);e(this,"name","Collectionneur des Manuscrits");e(this,"id","craft_20_scrolls");e(this,"rank",l.RANKS.EPIC);e(this,"description","Craft 20 Parchemins");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles["Collectionneur de Manuscrits"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=20)}}class sp extends d{constructor(){super(...arguments);e(this,"name","Maître des Enluminures");e(this,"id","craft_50_scrolls");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Craft 50 Parchemins");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"asset",null);e(this,"title",u.questTitles["Maître des Enluminures"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=50)}}class rp extends d{constructor(){super(...arguments);e(this,"name","Protecteur du Savoir");e(this,"id","craft_100_scrolls");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Craft 100 Parchemins");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"asset",null);e(this,"title",u.questTitles["Protecteur du Savoir"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=100)}}class np extends d{constructor(){super(...arguments);e(this,"name","Egoïste...");e(this,"id","crew_10_percent");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être à 10% d'XP pour l'équipage pendant 3 mois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles.Egoïste);e(this,"badge",u.BadgeList.selfish);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.timeAt10Percent>=90)}}class ip extends d{constructor(){super(...arguments);e(this,"name","Merci bien camarade !");e(this,"id","crew_90_percent");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être à 90% d'XP pour l'équipage pendant 3 mois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles.Camarade);e(this,"badge",u.BadgeList.camarade);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.timeAt90Percent>=90)}}class lp extends d{constructor(){super(...arguments);e(this,"name","Vaut mieux ça que perdre non ?");e(this,"id","draw_100");e(this,"rank",l.RANKS.COMMON);e(this,"description","Faire 100 égalités");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=100)}}class dp extends d{constructor(){super(...arguments);e(this,"name","Tu as trouvé ton rival");e(this,"id","draw_300");e(this,"rank",l.RANKS.RARE);e(this,"description","Faire 300 égalités");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=300)}}class op extends d{constructor(){super(...arguments);e(this,"name","Rathon c'est toi ?");e(this,"id","draw_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Faire 1000 égalités");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=1e3)}}class cp extends d{constructor(){super(...arguments);e(this,"name","Tu te bats contre un mur ou quoi ?");e(this,"id","draw_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 2000 égalités");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=2e3)}}class up extends d{constructor(){super(...arguments);e(this,"name","De vrais jumeaux");e(this,"id","draw_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Faire 5000 égalités");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Égalitaire);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=5e3)}}class fp extends d{constructor(){super(...arguments);e(this,"name","Y'a un truc que t'as pas compris ?");e(this,"id","edito_read_100");e(this,"rank",l.RANKS.EPIC);e(this,"description","Lire 100 fois l'édito en une journée");e(this,"berry",25e4);e(this,"xp",25e3);e(this,"secret",!0);e(this,"crew",!1);e(this,"daily",!1);e(this,"title",u.questTitles.Culturé);e(this,"badge",null);e(this,"asset",u.profileAssets.edito);e(this,"isFactionBadge",!1);e(this,"onUserQuestMetaUpdate",s=>s.edito.readToday>=100)}}class hp extends d{constructor(){super(...arguments);e(this,"name","Une fois, pas deux");e(this,"id","everyone");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Tenter de tag everyone");e(this,"berry",-1e6);e(this,"xp",-5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.tagEveryone)}}class pp extends d{constructor(){super(...arguments);e(this,"name","Emoji Diable");e(this,"id","double_six");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 50 fois un double six");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"badge",u.BadgeList.doublesix);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.double_six>=50)}}class mp extends d{constructor(){super(...arguments);e(this,"name","Pas de chance ^^");e(this,"id","draw_double_six");e(this,"rank",l.RANKS.RARE);e(this,"description","Faire une fois une égalité en double 6");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.drawDoubleSix>=1)}}class yp extends d{constructor(){super(...arguments);e(this,"name","Jamais 6 sans 7");e(this,"id","seven_quitte_ou_double");e(this,"rank",l.RANKS.MYTHIC);e(this,"description",'Gagner 7 fois de suite "Doubles" au Quitte ou Double');e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"badge",u.BadgeList.chance);e(this,"title",u.questTitles.Chanceux);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.sevenQuitteOuDouble>=1)}}class gp extends d{constructor(){super(...arguments);e(this,"name","Le 5 à la suite");e(this,"id","win_5_in_row");e(this,"rank",l.RANKS.EPIC);e(this,"description","Gagner aux 5 jeux du casino à la suite");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const r=s.lastGames.slice(0,5);return r.length<5||Pa(r,n=>n.gameType).length<5?!1:r.reduce((n,i)=>n+i.endState,0)===5})}}class wp extends d{constructor(){super(...arguments);e(this,"name","Le 5 à la suite, mais dans l'autre sens");e(this,"id","lose_5_in_row");e(this,"rank",l.RANKS.EPIC);e(this,"description","Perdre aux 5 jeux du casino à la suite");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const r=s.lastGames.slice(0,5);return r.length!==5||Pa(r,n=>n.gameType).length<5?!1:r.reduce((n,i)=>n+i.endState,0)===-5})}}class _p extends d{constructor(){super(...arguments);e(this,"name","Jacques le noir");e(this,"id","ten_black_jack");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 10 fois BlackJack");e(this,"berry",5e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"badge",u.BadgeList["black-jack"]);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.black_jack>=10)}}class bp extends d{constructor(){super(...arguments);e(this,"name","La feuille enveloppe la pierre ! T'es sûr ?");e(this,"id","paper_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Papier au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles.Papyrus);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="paper"&&s.rps.nb>=100)}}class Sp extends d{constructor(){super(...arguments);e(this,"name","On fait la paire !");e(this,"id","scissor_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Ciseaux au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles.Couturier);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="scissor"&&s.rps.nb>=100)}}class Mp extends d{constructor(){super(...arguments);e(this,"name","Golem");e(this,"id","rock_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Pierre au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles.Golem);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="rock"&&s.rps.nb>=100)}}class vp extends d{constructor(){super(...arguments);e(this,"name","LE NEUF ET LE HUIT !!!");e(this,"id","guess_in_one");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Deviner le Juste Prix en un coup");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.guessInOne>=1)}}class kp extends d{constructor(){super(...arguments);e(this,"name","Sataniste");e(this,"id","bet_666_50_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Miser 666 Berry au moins une fois par jour pendant 1 mois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"title",u.questTitles.Démon);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"badge",null);e(this,"asset",u.profileAssets.satan);e(this,"onUserQuestMetaUpdate",s=>s.bet666.amount>=30)}}class Rp extends d{constructor(){super(...arguments);e(this,"name","Jour, Nuit");e(this,"id","win_lose_10_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description",'Faire un enchaînement "Victoire/Défaite" 10 fois de suite');e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const r=s.lastGames;if(r.length!==20)return!1;for(let n=0;n<r.length;n++)if(n%2===0&&r[n].endState!==1||n%2!==0&&r[n].endState!==-1)return!1;return!0})}}class Cp extends d{constructor(){super(...arguments);e(this,"name","Explorateur novice");e(this,"id","finish_10_raids");e(this,"rank",l.RANKS.COMMON);e(this,"description","Réussir 10 expéditions");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=10)}}class xp extends d{constructor(){super(...arguments);e(this,"name","Aventurier intrépide");e(this,"id","finish_25_raids");e(this,"rank",l.RANKS.RARE);e(this,"description","Réussir 25 expéditions");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=25)}}class Up extends d{constructor(){super(...arguments);e(this,"name","Conquérant des terres");e(this,"id","finish_50_raids");e(this,"rank",l.RANKS.EPIC);e(this,"description","Réussir 50 expéditions");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=50)}}class Bp extends d{constructor(){super(...arguments);e(this,"name","Pionnier des secrets");e(this,"id","finish_100_raids");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Réussir 100 expéditions");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=100)}}class Op extends d{constructor(){super(...arguments);e(this,"name","Légende vivante");e(this,"id","finish_200_raids");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Réussir 200 expéditions");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Légende vivante"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=200)}}class Ap extends d{constructor(){super(...arguments);e(this,"name","Vif");e(this,"id","random_message_20");e(this,"rank",l.RANKS.COMMON);e(this,"description","Récupérer 20 Messages aléatoires");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=20)}}class Dp extends d{constructor(){super(...arguments);e(this,"name","Lucky Luke");e(this,"id","random_message_50");e(this,"rank",l.RANKS.RARE);e(this,"description","Récupérer 50 Messages aléatoires");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=50)}}class Np extends d{constructor(){super(...arguments);e(this,"name","Rapide");e(this,"id","random_message_100");e(this,"rank",l.RANKS.EPIC);e(this,"description","Récupérer 100 Messages aléatoires");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=100)}}class Ep extends d{constructor(){super(...arguments);e(this,"name","Et Furieux");e(this,"id","random_message_200");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Récupérer 200 Messages aléatoires");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=200)}}class $p extends d{constructor(){super(...arguments);e(this,"name","Ka-Chow");e(this,"id","random_message_500");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Récupérer 500 Messages aléatoires");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Flash Mc Queen"]);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=500)}}class Fp extends d{constructor(){super(...arguments);e(this,"name","Collabo");e(this,"id","collabo");e(this,"rank",l.RANKS.COMMON);e(this,"description","Report une personne au staff");e(this,"berry",1e4);e(this,"xp",5e3);e(this,"secret",!0);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.reportedSomeone)}}class Ip extends d{constructor(){super(...arguments);e(this,"name","Bienvenue sur OPFR");e(this,"id","send_100_msg");e(this,"rank",l.RANKS.COMMON);e(this,"description","Envoyer 100 messages");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=100)}}class Yp extends d{constructor(){super(...arguments);e(this,"name","Une vraie pipelette");e(this,"id","send_1000_msg");e(this,"rank",l.RANKS.RARE);e(this,"description","Envoyer 1 000 messages");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=1e3)}}class Lp extends d{constructor(){super(...arguments);e(this,"name","Faites le taire ");e(this,"id","send_25000_msg");e(this,"rank",l.RANKS.EPIC);e(this,"description","Envoyer 25 000 messages");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=25e3)}}class Pp extends d{constructor(){super(...arguments);e(this,"name","Tu sors de chez toi des fois ?");e(this,"id","send_100000_msg");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Envoyer 100 000 messages");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=1e5)}}class Tp extends d{constructor(){super(...arguments);e(this,"name","J'ai pas les mots... mais toi si !");e(this,"id","send_200000_msg");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Envoyer 200 000 messages");e(this,"berry",1e8);e(this,"xp",25e4);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",u.questTitles.Spammeur);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=2e5)}}class jp extends d{constructor(){super(...arguments);e(this,"name","T'as reçu ton argent de poche ?");e(this,"id","spend_shop_5m");e(this,"rank",l.RANKS.COMMON);e(this,"description","Dépenser 5 000 000 Berrys dans la boutique");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e6)}}class Qp extends d{constructor(){super(...arguments);e(this,"name","Tu t'es fait plaisir !");e(this,"id","spend_shop_50m");e(this,"rank",l.RANKS.RARE);e(this,"description","Dépenser 50 000 000 Berrys dans la boutique");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e7)}}class Hp extends d{constructor(){super(...arguments);e(this,"name","C'était les soldes j'espère !");e(this,"id","spend_shop_500m");e(this,"rank",l.RANKS.EPIC);e(this,"description","Dépenser 500 000 000 Berrys dans la boutique");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e8)}}class qp extends d{constructor(){super(...arguments);e(this,"name","Paré pour la Fashion Week");e(this,"id","spend_shop_5ml");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Dépenser 5 000 000 000 Berrys dans la boutique");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e9)}}class Kp extends d{constructor(){super(...arguments);e(this,"name","Fashion Viktim");e(this,"id","spend_shop_50ml");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Dépenser 50 000 000 000 Berrys dans la boutique");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",u.questTitles["Fashion Viktim"]);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e10)}}class Wp extends d{constructor(){super(...arguments);e(this,"name","On commence à se connaître");e(this,"id","voice_1_hours");e(this,"rank",l.RANKS.COMMON);e(this,"description","Se connecter 10h en vocal");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*10)}}class Gp extends d{constructor(){super(...arguments);e(this,"name","Je sais tout de toi");e(this,"id","voice_10_hours");e(this,"rank",l.RANKS.RARE);e(this,"description","Se connecter 25h en vocal");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*25)}}class Vp extends d{constructor(){super(...arguments);e(this,"name","T'as pas soif ?");e(this,"id","voice_250_hours");e(this,"rank",l.RANKS.EPIC);e(this,"description","Se connecter 250h en vocal");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*250)}}class zp extends d{constructor(){super(...arguments);e(this,"name","Ok Socrate");e(this,"id","voice_2500_hours");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Se connecter 2500h en vocal");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*2500)}}class Xp extends d{constructor(){super(...arguments);e(this,"name","Elle ressemble à quoi la lumière du soleil ?");e(this,"id","voice_5000_hours");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Se connecter 5000h en vocal");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Ermite);e(this,"badge",u.BadgeList.ermite);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*5e3)}}class Zp extends d{constructor(){super(...arguments);e(this,"name","Stagiaire");e(this,"id","work_100");e(this,"rank",l.RANKS.COMMON);e(this,"description","Travailler 100 fois");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=100)}}class Jp extends d{constructor(){super(...arguments);e(this,"name","Alternant");e(this,"id","work_300");e(this,"rank",l.RANKS.RARE);e(this,"description","Travailler 300 fois");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=300)}}class em extends d{constructor(){super(...arguments);e(this,"name","Smicard");e(this,"id","work_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Travailler 1000 fois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=1e3)}}class tm extends d{constructor(){super(...arguments);e(this,"name","Communiste");e(this,"id","work_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Travailler 2000 fois");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=2e3)}}class am extends d{constructor(){super(...arguments);e(this,"name","Esclave");e(this,"id","work_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Travailler 5000 fois");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Esclave);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=5e3)}}class sm extends d{constructor(){super(...arguments);e(this,"name","Timide");e(this,"id","write_10_chats");e(this,"rank",l.RANKS.COMMON);e(this,"description","Écrire dans 10 chats différents");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=10)}}class rm extends d{constructor(){super(...arguments);e(this,"name","Curieux");e(this,"id","write_20_chats");e(this,"rank",l.RANKS.RARE);e(this,"description","Écrire dans 20 chats différents");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=20)}}class nm extends d{constructor(){super(...arguments);e(this,"name","Voyeur");e(this,"id","write_50_chats");e(this,"rank",l.RANKS.EPIC);e(this,"description","Écrire dans 50 chats différents");e(this,"berry",5e5);e(this,"xp",5e4);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=50)}}class im extends d{constructor(){super(...arguments);e(this,"name","Philanthrope");e(this,"id","write_100_chats");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Écrire dans 100 chats différents");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=100)}}class lm extends d{constructor(){super(...arguments);e(this,"name","Explorateur");e(this,"id","write_200_chats");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Écrire dans 200 chats différents");e(this,"berry",1e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Explorateur);e(this,"badge",u.BadgeList.exploration);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=200)}}class dm extends d{constructor(){super(...arguments);e(this,"name","Jeune étudiant");e(this,"id","drink_50_alcohols");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 50 alcools");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Jeune étudiant"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=50)}}class om extends d{constructor(){super(...arguments);e(this,"name","Habitué des bars");e(this,"id","drink_250_alcohols");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 250 alcools");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Habitué des bars"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=250)}}class cm extends d{constructor(){super(...arguments);e(this,"name","Alcoolique notoire");e(this,"id","drink_500_alcohols");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 500 alcools");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Alcoolique notoire"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=500)}}class um extends d{constructor(){super(...arguments);e(this,"name","Ivrogne");e(this,"id","drink_1000_alcohols");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 1000 alcools");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Ivrogne);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=1e3)}}class fm extends d{constructor(){super(...arguments);e(this,"name","Breton");e(this,"id","drink_2000_alcohols");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 2000 alcools");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Breton);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=2e3)}}class hm extends d{constructor(){super(...arguments);e(this,"name","Buveur de Rhum");e(this,"id","drink_10_rhum");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Rhums");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=10)}}class pm extends d{constructor(){super(...arguments);e(this,"name","Amateur de Rhum");e(this,"id","drink_100_rhum");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Rhums");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=100)}}class mm extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Rhum");e(this,"id","drink_250_rhum");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Rhums");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=250)}}class ym extends d{constructor(){super(...arguments);e(this,"name","Rhumologue");e(this,"id","drink_500_rhum");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Rhums");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Rhumologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=500)}}class gm extends d{constructor(){super(...arguments);e(this,"name","Dieu du Rhum");e(this,"id","drink_1000_rhum");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Rhums");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu du Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=1e3)}}class wm extends d{constructor(){super(...arguments);e(this,"name","Buveur de Bière");e(this,"id","drink_10_beer");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Bières");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Bière"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=10)}}class _m extends d{constructor(){super(...arguments);e(this,"name","Amateur de Bière");e(this,"id","drink_100_beer");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Bières");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=100)}}class bm extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Bière");e(this,"id","drink_250_beer");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Bières");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=250)}}class Sm extends d{constructor(){super(...arguments);e(this,"name","Bièrologue");e(this,"id","drink_500_beer");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Bières");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Bièrologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=500)}}class Mm extends d{constructor(){super(...arguments);e(this,"name","Dieu de la Bière");e(this,"id","drink_1000_beer");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Bières");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu de la Bière"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=1e3)}}class vm extends d{constructor(){super(...arguments);e(this,"name","Buveur de Vin");e(this,"id","drink_10_wine");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Vins");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=10)}}class km extends d{constructor(){super(...arguments);e(this,"name","Amateur de Vin");e(this,"id","drink_100_wine");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Vins");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=100)}}class Rm extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Vin");e(this,"id","drink_250_wine");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Vins");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=250)}}class Cm extends d{constructor(){super(...arguments);e(this,"name","Vinologue");e(this,"id","drink_500_wine");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Vins");e(this,"berry",1e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Vinologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=500)}}class xm extends d{constructor(){super(...arguments);e(this,"name","Dieu du Vin");e(this,"id","drink_1000_wine");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Vins");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu du Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=1e3)}}const rs=Object.freeze(Object.defineProperty({__proto__:null,Bet10M:Ch,Bet666:kp,BetMinValue:kh,Birthday:Ah,BotPing:Dh,ChestOpen1000Quest:jh,ChestOpen150Quest:Ph,ChestOpen2000Quest:Qh,ChestOpen500Quest:Th,ChestOpen50Quest:Lh,Craft1000Times:Gh,Craft100CookedMeals:Xh,Craft100Scrolls:rp,Craft10CookedMeals:Vh,Craft10Scrolls:tp,Craft200Times:Kh,Craft20Scrolls:ap,Craft20Times:Hh,Craft250CookedMeals:Zh,Craft500CookedMeals:Jh,Craft500Times:Wh,Craft50CookedMeals:zh,Craft50Scrolls:sp,Craft50Times:qh,Craft5Scrolls:ep,Crew10Percent:np,Crew90Percent:ip,DoubleSix:pp,Draw1000Quest:op,Draw100Quest:lp,Draw2000Quest:cp,Draw300Quest:dp,Draw5000Quest:up,DrawDoubleSix:mp,Drink1000Alcohols:um,Drink1000Beer:Mm,Drink1000Quest:Fh,Drink1000Rhum:gm,Drink1000Wine:xm,Drink100Beer:_m,Drink100Rhum:pm,Drink100Today:Nh,Drink100Wine:km,Drink10Beer:wm,Drink10Rhum:hm,Drink10Wine:vm,Drink2000Alcohols:fm,Drink2000Quest:Ih,Drink200Quest:Eh,Drink250Alcohols:om,Drink250Beer:bm,Drink250Rhum:mm,Drink250Wine:Rm,Drink5000Quest:Yh,Drink500Alcohols:cm,Drink500Beer:Sm,Drink500Quest:$h,Drink500Rhum:ym,Drink500Wine:Cm,Drink50Alcohols:dm,Edito:fp,Everyone:hp,Finish100Raids:Bp,Finish10Raids:Cp,Finish200Raids:Op,Finish25Raids:xp,Finish50Raids:Up,GuessInOne:vp,Lose10M:Oh,LoseAll5GamesInRow:wp,LoseEverything:Rh,Paper100:bp,RandomMessage100Quest:Np,RandomMessage200Quest:Ep,RandomMessage20Quest:Ap,RandomMessage500Quest:$p,RandomMessage50Quest:Dp,Report:Fp,Rock100:Mp,Scissor100:Sp,SevenQuitteOuDouble:yp,SpendShop500M:Hp,SpendShop50M:Qp,SpendShop50Ml:Kp,SpendShop5M:jp,SpendShop5Ml:qp,TenBlackJack:_p,TotalBet10M:Uh,TotalBet1Md:Bh,Voice10Hours:Wp,Voice2500Hours:zp,Voice250Hours:Vp,Voice25Hours:Gp,Voice5000Hours:Xp,WinAll5GamesInRow:gp,WinLose10:Rp,WinOn10MBet:xh,Work1000Quest:em,Work100Quest:Zp,Work2000Quest:tm,Work300Quest:Jp,Work5000Quest:am,Write100Chats:im,Write10Chats:sm,Write200Chats:lm,Write20Chats:rm,Write50Chats:nm,send100000Messages:Pp,send1000Messages:Yp,send100Messages:Ip,send200000Messages:Tp,send25000Messages:Lp},Symbol.toStringTag,{value:"Module"}));class Um extends d{constructor(){super(...arguments);e(this,"name","T'as pas oublié de ranger ta chambre ?");e(this,"id","daily_all");e(this,"rank",l.RANKS.RARE);e(this,"description","Finir les quêtes journalières");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*12500);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1250);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestUpdate",s=>{for(const[r,n]of Object.entries(s.daily))if(!Se(n,new Date)&&this.id!==r)return!1;return Object.keys(s.daily).filter(r=>r!==this.id).length>=5})}}const ns=Object.freeze(Object.defineProperty({__proto__:null,DailyAll:Um},Symbol.toStringTag,{value:"Module"})),Xr=[...Object.values(as),...Object.values(ss),...Object.values(ts),...Object.values(rs),...Object.values(ns),...Object.values(es),...Object.values(Ja),...Object.values(za),...Object.values(vt)],Bm=async t=>{var s;const a=[];for(const r of Object.values(as)){const n=new r;if((s=n.onUserMetaUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{_userMeta:t});i&&a.push([n,i])}}a.length>0&&se("userMetaUpdate",t.user._id,a)},Om=async t=>{var s;const a=[];for(const r of Object.values(rs)){const n=new r;if((s=n.onUserQuestMetaUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&se("userQuestMetaUpdate",t.user._id,a)},Am=["raidUnlock"],Zr=new Ms.EventEmitter,ct=(t,a,s)=>{Zr.emit(t,a,s)},Dm=t=>{for(const a of Am)Zr.on(a,(s,r)=>{t(a,s,r)})},Nm=async t=>{var s,r;const a=await _s(t.user._id);l.getCurrentLevel(t.xp.amount)>=30&&!bt(a,"training")&&(await Mt(a.user._id,"training"),ct("raidUnlock",t.user._id,"training")),(((r=(s=a.obtainedRewards.training)==null?void 0:s.filter(n=>n.startsWith("end_")))==null?void 0:r.length)??0)>=4&&!bt(a,"resources")&&(await Mt(a.user._id,"resources"),ct("raidUnlock",t.user._id,"resources"))},Em=async t=>{const a=await _s(t.user._id);Pa(t.equipmentList,s=>s.id).map(s=>S.findEquipment(s)).filter(s=>s.panoply==="adventurer").length===6&&!bt(a,"pirate_cave")&&(await Mt(a.user._id,"pirate_cave"),ct("raidUnlock",t.user._id,"pirate_cave")),(t.itemList.get("map_fragment")??0)>=5&&!bt(a,"mysterious_island")&&(await Mt(a.user._id,"mysterious_island"),await Ue(t.user._id,"map_fragment",5),ct("raidUnlock",t.user._id,"mysterious_island"))},is=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},tagEveryone:{type:Boolean,default:!1},botPing:{type:Number,default:0},writeDifferentChat:[String],messageSent:{type:Number,default:0},totalMinutesInVoice:{type:Number,default:0},hadMoreThanZeroBerry:{type:Boolean,default:!1},totalBet:{type:Number,default:0},edito:{readToday:{type:Number,default:0},lastTimeRead:{type:Date,default:new Date}},double_six:{type:Number,default:0},lastGames:{type:[{gameType:String,endState:Number}],default:[]},black_jack:{type:Number,default:0},rps:{type:{lastRps:String,nb:Number},default:{lastRps:"paper",nb:-1}},totalSpentInShop:{type:Number,default:0},work:{type:Number,default:0},draw:{type:Number,default:0},bet666:{amount:{type:Number,default:0},last:{type:Date,default:new Date(0)}},betMin:{type:Boolean,default:!1},loseEverything:{type:Boolean,default:!1},bet10M:{type:Boolean,default:!1},winBet10M:{type:Boolean,default:!1},lose10M:{type:Boolean,default:!1},items:{bottle:{total:{type:Number,default:0},today:{type:Number,default:0},last:{type:Date,default:new Date}},chest:{total:{type:Number,default:0}},alcohols:{wines:{type:Number,default:0},rhums:{type:Number,default:0},beers:{type:Number,default:0},total:{type:Number,default:0}}},randomMessage:{type:Number,default:0},timeAt10Percent:{type:Number,default:0},timeAt90Percent:{type:Number,default:0},sevenQuitteOuDouble:{type:Number,default:0},drawDoubleSix:{type:Number,default:0},guessInOne:{type:Number,default:0},crafts:{cookedMeal:{type:Number,default:0},scrolls:{type:Number,default:0},total:{type:Number,default:0}},raidFinished:{type:Number,default:0},reportedSomeone:{type:Boolean,default:!1},hasCelebrateBirthday:{type:Boolean,default:!1}});is.index({user:1}),is.post("findOneAndUpdate",async function(t){await Om(t)});const ce=((ti=h.models)==null?void 0:ti.UserQuestMeta)||h.model("UserQuestMeta",is),k=async(t,a)=>{await ce.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},$m=async t=>{await k(t,{$inc:{work:1}})},Fm=async t=>{await k(t,{$set:{hadMoreThanZeroBerry:!0}})},Im=async t=>{await k(t,{$set:{sevenQuitteOuDouble:!0}})},Ym=async t=>{await k(t,{$inc:{black_jack:1}})},Lm=async(t,a,s)=>{await k(t,{$push:{lastGames:{$each:[{gameType:a,endState:s}],$position:0,$slice:20}}})},Pm=async t=>{await k(t,{$inc:{draw:1}})},Tm=async t=>{const a=new Date;a.setDate(a.getDate()-1),a.setHours(0,0,0,0);const s=new Date;s.setDate(s.getDate()-1),s.setHours(23,59,59,999),await ce.updateOne({user:t,"bet666.last":{$gte:a,$lte:s}},{$inc:{"bet666.amount":1},$set:{"bet666.last":new Date}}),await ce.updateOne({user:t,"bet666.last":{$lt:a}},{$set:{"bet666.last":new Date,"bet666.amount":1}})},jm=async(t,a)=>{await k(t,{$inc:{totalBet:a}})},Qm=async(t,a)=>{await k(t,[{$set:{"rps.nb":{$cond:{if:{$eq:["$rps.lastRps",a]},then:{$add:["$rps.nb",1]},else:1}},"rps.lastRps":a}}])},Jr=async(t,a)=>{await k(t,{$inc:{totalSpentInShop:a}})},Hm=async(t,a,s)=>{const r=S.findEntity(s);await k(t,{$inc:{"crafts.cookedMeal":S.isCookedMeal(r)?a:0,"crafts.scrolls":S.isScrollItem(r)?a:0,"crafts.total":a}})},qm=async t=>{await k(t,{$set:{reportedSomeone:!0}})},Km=async t=>{await k(t,{$inc:{randomMessage:1}})},Wm=async t=>{await k(t,{$inc:{botPing:1}})},Gm=async t=>{await k(t,{$inc:{guessInOne:1}})},Vm=async t=>{await k(t,{$set:{hasCelebrateBirthday:!0}})},zm=async t=>{await k(t,{$inc:{double_six:1}})},Xm=async t=>{await k(t,{$inc:{drawDoubleSix:1}})},Zm=async(t,a)=>{a?await k(t,{$set:{timeAt10Percent:0}}):await k(t,{$inc:{timeAt10Percent:1}})},Jm=async(t,a)=>{a?await k(t,{$set:{timeAt90Percent:0}}):await k(t,{$inc:{timeAt90Percent:1}})},e0=async t=>{await k(t,{$set:{tagEveryone:!0}})},t0=async t=>{await k(t,{$set:{betMin:!0}})},en=async t=>{await k(t,{$set:{loseEverything:!0}})},a0=Object.freeze(Object.defineProperty({__proto__:null,addTotalMinutesInVoice:async(t,a)=>{await k(t,{$inc:{totalMinutesInVoice:a}})},addWrittenTextChannel:async(t,a)=>{await k(t,{$addToSet:{writeDifferentChat:a}})},bet666:Tm,botPingIncrement:Wm,drawDoubleSix:Xm,drawIncrement:Pm,hadMoreThanZeroBerry:Fm,hasBet10M:async t=>{await k(t,{$set:{bet10M:!0}})},hasBetMin:t0,hasCelebrateBirthday:Vm,hasGuessInOne:Gm,hasLose10M:async t=>{await k(t,{$set:{lose10M:!0}})},hasLoseEverything:en,hasReportedSomeone:qm,hasSevenQod:Im,hasTagEveryone:e0,hasWinBet10M:async t=>{await k(t,{$set:{winBet10M:!0}})},incrementAlcoholDrink:async(t,a,s)=>{await k(t,{$inc:{"items.alcohols.wines":a==="wine"?s:0,"items.alcohols.beers":a==="beer"?s:0,"items.alcohols.rhums":a==="rhum"?s:0,"items.alcohols.total":s}})},incrementBottleUsedToday:async(t,a)=>{const s=new Date;s.setHours(0,0,0,0),await ce.updateOne({user:t,"items.bottle.last":{$gte:s}},{$inc:{"items.bottle.today":a},$set:{"items.bottle.last":new Date}}),await ce.updateOne({user:t,"items.bottle.last":{$lt:s}},{$set:{"items.bottle.last":new Date,"items.bottle.today":a}})},incrementBottleUsedTotal:async(t,a)=>{await k(t,{$inc:{"items.bottle.total":a}})},incrementChestOpenedTotal:async(t,a)=>{await k(t,{$inc:{"items.chest.total":a}})},incrementMessageSend:async t=>{await k(t,{$inc:{messageSent:1}})},randomMessageIncrement:Km,readEdito:async t=>{const a=new Date;a.setHours(0,0,0,0),await ce.updateOne({user:t,"edito.lastTimeRead":{$gte:a}},{$inc:{"edito.readToday":1},$set:{"edito.lastTimeRead":new Date}}),await ce.updateOne({user:t,"edito.lastTimeRead":{$lt:a}},{$set:{"edito.lastTimeRead":new Date,"edito.readToday":1}})},updateCrafts:Hm,updateCrew10Percent:Zm,updateCrew90Percent:Jm,updateLastGames:Lm,updateRps:Qm,updateTotalBet:jm,updateTotalSpentInShop:Jr,winBlackjack:Ym,winDoubleSix:zm,workIncrement:$m},Symbol.toStringTag,{value:"Module"})),s0=["death"],tn=new vs.EventEmitter,an=(t,a)=>{tn.emit(t,a)},r0=t=>{for(const a of s0)tn.on(a,s=>{t(a,s)})},Ge={multiplier:{type:Number,default:0},origin:String,expireAt:{type:Date,default:null},startAt:{type:Date,default:null}},ut=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},premium:{type:Date,default:null},booster:{type:Boolean,default:!1},scam:{type:Boolean,default:!1},berry:{type:Number,default:0,index:!0},xp:{lastMessageWithXp:{type:Date,default:new Date},voice:{lastConnection:{type:Date,default:new Date},minutesInVoiceToday:{type:Number,default:0}},amount:{type:Number,default:0,index:!0},boost:{type:Date,default:null}},buffs:{cooldown:{casino:{type:[Ge],default:[]},work:{type:[Ge],default:[]}},berry:{work:{type:[Ge],default:[]},global:{type:[Ge],default:[]}},drop:{work:{type:[Ge],default:[]}},xp:{global:{type:[Ge],default:[]}}},hp:{type:Number,default:100},workUnluckyStreak:{type:Number,default:0},characteristics:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}},resetCharacteristics:{free:{type:Boolean,default:!0},nextAvailable:{type:Date,default:null}},scrolls:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}}});ut.index({user:1}),ut.index({"xp.amount":-1}),ut.index({berry:-1}),ut.post("findOneAndUpdate",async function(t){await Nm(t),await Bm(t),t.berry===0&&await en(t.user._id),t.hp<=0&&an("death",t.user._id)});const xe=((ai=h.models)==null?void 0:ai.UserMeta)||h.model("UserMeta",ut),sn=async t=>await xe.create({user:t}),ft=async(t,a={})=>{const s=await xe.findOne({user:t},a);return s||await sn(t)},n0=(t,a)=>xe.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0}),$=async(t,a)=>{await xe.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0})},rn=async(t,a)=>{await $(t,[{$set:{berry:{$max:[{$add:["$berry",a]},0]}}}])},i0=async(t,a)=>{await $(t,{$set:{premium:a}})},l0=async(t,a)=>{await $(t,{$set:{booster:a}})},d0=async(t,a)=>{const{xp:{boost:s}}=await n0(t,[{$set:{"xp.boost":{$cond:{if:{$or:[{$not:"$xp.boost"},{$lt:["$xp.boost",new Date]}]},then:{$add:[new Date,a]},else:{$add:["$xp.boost",a]}}}}}]);return s},ls=async(t,a)=>{if(Array.isArray(a)){for(const r of a)await ls(t,r);return}const s=S.transformToDBBuff(a);await $(t,[{$set:{[`buffs.${a.target}`]:{$map:{input:`$buffs.${a.target}`,as:"buff",in:{$cond:{if:{$eq:[{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","/"]}]},a.origin.split("/")[0]]},then:{multiplier:a.multiplier,origin:a.origin,expireAt:s.expireAt?{$cond:{if:{$lt:["$$buff.expireAt",new Date]},then:s.expireAt,else:{$add:["$$buff.expireAt",(a.endIn??0)*60*60*1e3]}}}:null,startAt:{$cond:{if:{$gte:["$$buff.startAt",new Date]},then:"$$buff.startAt",else:{$add:[new Date,(a.startIn??0)*60*60*1e3]}}}},else:"$$buff"}}}}}},{$set:{[`buffs.${a.target}`]:{$cond:{if:{$in:[a.origin.split("/")[0],{$map:{input:`$buffs.${a.target}`,as:"buff",in:{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","/"]}]}}}]},then:`$buffs.${a.target}`,else:{$concatArrays:[`$buffs.${a.target}`,[{...s}]]}}}}}])},ds=async(t,a)=>{await $(t,{$pull:{[`buffs.${a.target}`]:{origin:a.origin}}})},o0=async(t,a,s,r)=>{const n=S.fromDBToEquipableEquipment(a),i=vr(Object.values(s)),o=S.allPanoplies.find(_=>_.id===n.panoply);if(!o)return;const f=o.equipments.filter(_=>(i.find(B=>_.id===B.id)||!r&&n.id===_.id)&&(r?n.id!==_.id:!0)).length,m=f===o.equipments.length?o.fullBonus:f>=o.equipments.length/2?o.halfBonus:void 0;o.halfBonus&&"target"in o.halfBonus&&await ds(t,o.halfBonus),o.fullBonus&&"target"in o.fullBonus&&await ds(t,o.fullBonus),m&&"target"in m&&await ls(t,m)},nn=async(t,a,{userMeta:s,userInventory:r})=>{const n=s??await ft(t,{buffs:0,xp:0}),i=r??await Fe(t,{itemList:0,equipmentList:0}),f=await Be(t,n,i)-n.hp;await $(t,{$set:{hp:n.hp+Math.floor(Math.min(a,f))}})},c0=async(t,a)=>{await $(t,[{$set:{hp:{$max:[{$add:["$hp",-a]},0]}}}])},Ve=async(t,a)=>{const s=await Be(t);await $(t,[{$set:{hp:{$round:[{$multiply:[{$divide:["$hp",a]},s]},0]}}}])},u0=Object.freeze(Object.defineProperty({__proto__:null,addBerry:rn,addCharacteristics:async(t,a)=>{const s=await Be(t),r=Object.fromEntries(Object.entries(a).filter(([,n])=>n!==0).map(([n,i])=>[`characteristics.${n}`,i]));await $(t,{$inc:r}),Ve(t,s)},addMinutesInVoiceToday:async(t,a)=>{await $(t,{$inc:{"xp.voice.minutesInVoiceToday":a}})},addScrollCharacteristic:async(t,a)=>{const s=await Be(t),r=Object.fromEntries(Object.entries(a).filter(([,n])=>n!==0).map(([n,i])=>[`scrolls.${n}`,i]));await $(t,{$inc:r}),Ve(t,s)},gainHp:nn,incrementWorkUnluckyStreak:async t=>{await $(t,{$inc:{workUnluckyStreak:1}})},loseHp:c0,removeBuff:ds,resetCharacteristics:async(t,a,s)=>{const r=await Be(t,s),n={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};a?await $(t,{$set:{characteristics:n,"resetCharacteristics.free":!1}}):await $(t,{$set:{characteristics:n,"resetCharacteristics.nextAvailable":new Date(Date.now()+30*24*60*60*1e3)},$inc:{berry:-1e8}}),Ve(t,r)},resetMinutesInVoiceToday:async t=>{await $(t,{$set:{"xp.voice.minutesInVoiceToday":0}})},resetWorkUnluckyStreak:async t=>{await $(t,{$set:{workUnluckyStreak:0}})},updateBoost:d0,updateBooster:l0,updateBuff:ls,updateHp:Ve,updateLastVoiceConnection:async(t,a)=>{await $(t,{$set:{"xp.voice.lastConnection":a}})},updatePanoplyBuff:o0,updatePremium:i0,updateScam:async(t,a)=>{await $(t,{$set:{scam:a}})}},Symbol.toStringTag,{value:"Module"})),f0=async t=>{var s;const a=[];for(const r of Object.values(ts)){const n=new r;if((s=n.onUserInventoryUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&se("userInventoryUpdate",t.user._id,a)},os=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},equippedItems:{type:Object,default:{}},equipmentSave:{type:[Object],default:[]},equipmentList:{type:[{id:String,seed:Number}],default:[]},itemList:{type:Map,of:Number,default:{}},recipes:{type:[String],default:[]}},{minimize:!1});os.index({user:1}),os.post("findOneAndUpdate",async function(t){await Em(t),await f0(t)});const ht=((si=h.models)==null?void 0:si.UserInventory)||h.model("UserInventory",os),re=async(t,a)=>{await ht.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},ne=async(t,a,s)=>{await re(t,{$inc:{[`itemList.${a}`]:s}}),await zt(t,[a])},h0=async(t,a)=>{await re(t,{$inc:Object.fromEntries(Object.entries(a).filter(([,s])=>(s??0)>0).map(([s,r])=>[`itemList.${s}`,r]))}),await zt(t,Ha(a).filter(([,s])=>s>0).map(([s])=>s))},Ue=async(t,a,s)=>{s!==0&&await re(t,[{$set:{[`itemList.${a}`]:{$max:[{$add:[`$itemList.${a}`,-s]},0]}}}])},ln=async(t,a,s)=>{await re(t,{$pull:{equipmentList:{id:a,seed:s}}})},dn=async(t,a,s,r)=>{s!==0&&(S.isEquipmentId(a)?await ln(t,a,r):await Ue(t,a,s))},p0=async(t,a)=>{await re(t,{$set:{[`itemList.${a}`]:0}})},cs=async(t,a)=>{await re(t,{$push:{equipmentList:{$each:a}}}),await zt(t,a.map(s=>s.id))},m0=async t=>{const a=await Fe(t);await re(t,{$push:{equipmentSave:a.equippedItems}})},y0=async(t,a)=>{const s=await Fe(t);if(!s.equipmentSave[a])return;Object.entries(s.equipmentSave[a]).forEach(([n,i])=>{S.EQUIPMENT_SLOT.find(o=>o===n)&&on(t,n,i)})},on=async(t,a,s)=>{const r=await Be(t);await re(t,{$set:{[`equippedItems.${a}`]:s}}),await Ve(t,r)},g0=async(t,a)=>{const s=await Be(t);await re(t,{$set:{[`equippedItems.${a}`]:null}}),await Ve(t,s)},w0=async(t,a,s,r,n)=>{for(const{itemId:f,size:m}of a)await Ue(t,f,m*r);const{itemId:i,size:o}=s;S.isEquipmentId(i)?await cs(t,[{id:i,seed:n}]):await ne(t,i,o*r)},_0=async(t,a,s,r,n)=>{await dn(t,a.id,r,n);for(const{entityId:i,quantity:o}of s)S.isEquipmentId(i)||await ne(t,i,r*o);await Ue(t,"tools",1)},b0=async(t,a,s,r)=>{await Ue(t,a,r*4),await Ue(t,"enchanted_stone",r),await ne(t,s,r)},S0=async(t,a)=>{await re(t,{$addToSet:{recipes:a}})},cn=async(t,a,s)=>{await ne(t,a,s)},un=async(t,a)=>{a.forEach(async s=>await cn(t,s.chest,s.size))},M0=Object.freeze(Object.defineProperty({__proto__:null,addEquipments:cs,addInventoryItem:ne,addInventoryItems:h0,changeEquipedEquipment:y0,craftItem:w0,dismantleEntity:_0,enchantItem:b0,equip:on,giveChest:cn,giveChests:un,removeAllItemInventory:p0,removeEquipment:ln,removeInventoryEntity:dn,removeInventoryItem:Ue,saveEquipments:m0,unequip:g0,unlockRecipe:S0},Symbol.toStringTag,{value:"Module"})),fn=async t=>await ht.create({user:t}),Fe=async(t,a={})=>{const s=await ht.findOne({user:t},a);return s||await fn(t)},us=t=>Object.fromEntries(l.CHARACTERISTICS.map(a=>[a,x.getComputedCharacteristicValue(t.characteristics[a])+t.scrolls[a]])),v0=t=>Date.now()-t.xp.lastMessageWithXp.getTime()>60*1e3,fs=t=>{const{boost:a}=t.xp;return(a!==null&&Date.now()<a.getTime()?.2:0)+Math.max(t.premium?.5:0,t.booster?.25:0)+t.buffs.xp.global.reduce((s,{expireAt:r,startAt:n,multiplier:i})=>s+((n??new Date)<=new Date&&(!r||!Ee(r))?i:0),0)},k0=t=>{const a=t.trim().length,s=2;return a<10?10*s:a>300?300*s:a*s},R0=t=>{const a=l.getCurrentLevel(t.xp.amount);return a<=10?5e3:a>10&&a<=20?1e4:a>20&&a<=30?2e4:a>30&&a<=40?3e4:a>40&&a<=50?5e4:a>50&&a<=60?75e3:a>60&&a<=70?15e4:a>70&&a<=80?25e4:a>80&&a<=90?4e5:a>90&&a<=100?75e4:a>100?14e6:0},C0=(t,a,s)=>(a*=1+fs(t),Math.ceil(a*s)),x0=(t,a,s)=>{const r=s?1:hn(t);return a<=0?a:Math.ceil(a*(r||1))},U0=t=>t.buffs.cooldown.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!Ee(s))?n:0),1),B0=t=>t.buffs.drop.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!Ee(s))?n:0),1),O0=t=>t.buffs.berry.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!Ee(s))?n:0),1),hn=t=>t.buffs.berry.global.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!Ee(s))?n:0),1),A0=t=>t.buffs.cooldown.casino.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!Ee(s))?n:0),1),Be=async(t,a,s)=>{const r=a??await ft(t,{buffs:0,xp:0}),n=s??await Fe(t,{itemList:0,equipmentList:0});return((us(r).vitality??0)+Va(n).vitality)*l.HP_PER_VITALITY+l.DEFAULT_MAX_HP},D0=Object.freeze(Object.defineProperty({__proto__:null,calcBerry:x0,calcBerryGlobalBuff:hn,calcBerryWorkBuff:O0,calcCooldownCasinoBuff:A0,calcCooldownWorkBuff:U0,calcDropWorkBuff:B0,calcMessageXp:k0,calcXp:C0,calcXpBoost:fs,getBerryRank:async t=>(await xe.aggregate([{$setWindowFields:{sortBy:{berry:-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getGlobalRank:async t=>(await xe.aggregate([{$setWindowFields:{sortBy:{"xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getMaxHp:Be,getTotalCharacteristics:us,getXpDeathPenalties:R0,hasCharacteristicRequirement:async(t,a,s,r)=>{const n=s??await ft(t,{buffs:0,xp:0}),i=r??await Fe(t,{itemList:0,equipmentList:0}),o=Qa(us(n),Va(i),(f,m)=>f+m);if("sum"in a){let f=0;for(const m of a.characteristics)f+=o[m]??0;return f>=a.sum}else{for(const f of Object.keys(a))if(o[f]<(a[f]??0))return!1;return!0}},hasMalusBuff:t=>{const a=[...t.buffs.xp.global,...t.buffs.berry.global,...t.buffs.berry.work,...t.buffs.cooldown.work,...t.buffs.cooldown.casino,...t.buffs.drop.work];for(const{multiplier:s,startAt:r,expireAt:n}of a)if(s<0&&(!n||!Ee(n))&&(r??new Date)<=new Date)return!0;return!1},isCooldownForXpPassed:v0},Symbol.toStringTag,{value:"Module"})),pn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},raid:{classic:{type:Date,default:new Date(0)},special:{type:Date,default:new Date(0)},christmas:{type:Date,default:new Date(0)}},lockUserCommand:{type:Date,default:new Date(0)},commands:{work:{type:Date,default:new Date(0)},dice:{type:Date,default:new Date(0)},qod:{type:Date,default:new Date(0)},guess:{type:Date,default:new Date(0)},blackjack:{type:Date,default:new Date(0)},rps:{type:Date,default:new Date(0)}}});pn.index({user:1});const pt=((ri=h.models)==null?void 0:ri.UserCooldown)||h.model("UserCooldown",pn),mt=async(t,a)=>{await pt.updateOne({user:t},a,{upsert:!0})},N0=async(t,a)=>{await mt(t,[{$set:{"raid.special":{$subtract:[{$ifNull:["$raid.special",new Date]},a*3600*1e3]},"raid.classic":{$subtract:[{$ifNull:["$raid.classic",new Date]},a*3600*1e3]},"raid.christmas":{$subtract:[{$ifNull:["$raid.christmas",new Date]},a*3600*1e3]}}}]),await Ga(t,"raid/special",-1*a*3600*1e3),await Ga(t,"raid/classic",-1*a*3600*1e3)},mn=async(t,a,s,r)=>{await mt(t,{$set:{[`raid.${a}`]:new Date(Date.now()+s)}}),r.raid[a]&&await Wa(t,`raid/${a}`,new Date(Date.now()+s))},E0=Object.freeze(Object.defineProperty({__proto__:null,lockUserCommand:async t=>{await mt(t,{$set:{lockUserCommand:new Date(Date.now()+2*3600*1e3)}}),await nn(t,1,{})},reduceRaidCooldown:N0,startRaidCooldown:mn,useCommand:async(t,a,s,r)=>{await mt(t,{$set:{[`commands.${a}`]:new Date(Date.now()+s)}}),r.commands[a]&&await Wa(t,`commands/${a}`,new Date(Date.now()+s))}},Symbol.toStringTag,{value:"Module"})),$0=["work","rps","blackjack","guess","qod","dice"],yn=async t=>await pt.create({user:t}),F0=async(t,a={})=>{const s=await pt.findOne({user:t},a);return s||await yn(t)},hs=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},crew:{type:h.Schema.Types.ObjectId,ref:"Crew",required:!0,index:!0},permission:String,percent:Number,lastAllMembersDaily:{type:Date,default:new Date(0)}},{minimize:!1});hs.virtual("inventory",{ref:"Crew",localField:"crew",foreignField:"_id",justOne:!0}),hs.index({user:1});const Ie=((ni=h.models)==null?void 0:ni.UserCrew)||h.model("UserCrew",hs),ps=async(t,a)=>{await Ie.updateOne({user:t},a,{upsert:!0})},I0=async(t,a)=>{await ps(t,{$set:{percent:a}})},gn=async t=>{await ps(t,{$set:{lastAllMembersDaily:new Date}})},Y0=Object.freeze(Object.defineProperty({__proto__:null,allMembersDailyComplete:gn,updatePercent:I0},Symbol.toStringTag,{value:"Module"})),wn=t=>Ie.findOne({user:t}),L0=async(t,a,s,r)=>await Ie.create({user:t,crew:a,percent:r,permission:s}),P0=t=>Ie.exists({user:t}),T0=async t=>{await Ie.deleteOne({user:t})},_n=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},xpYesterday:{type:Number,default:0},berryYesterday:{type:Number,default:0},previousOrnament:{unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},unlockedBackgrounds:{type:[String],default:[]}},previousCompletedQuest:{type:[String],default:[]},previousMessageSent:{type:Number,default:0}});_n.index({user:1});const Xt=((ii=h.models)==null?void 0:ii.UserDailyReport)||h.model("UserDailyReport",_n),bn=async(t,a)=>{await Xt.updateOne({user:t},a,{upsert:!0})},j0=Object.freeze(Object.defineProperty({__proto__:null,updateDailyReport:async(t,a)=>{await bn(t,{$set:{xpYesterday:a.meta.xp.amount,berryYesterday:a.meta.berry,previousCompletedQuest:a.quest.completed,"previousOrnament.unlockedBadges":a.ornaments.unlockedBadges,"previousOrnament.unlockedTitles":a.ornaments.unlockedTitles,"previousOrnament.unlockedBackgrounds":a.ornaments.unlockedBackgrounds,previousMessageSent:a.questMeta.messageSent}})}},Symbol.toStringTag,{value:"Module"})),Sn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},guess:{type:{tries:Number,amount:Number,numberToGuess:Number,lastGuess:Number},default:null}});Sn.index({user:1});const yt=((li=h.models)==null?void 0:li.UserGames)||h.model("UserGames",Sn),Zt=async(t,a)=>{await yt.updateOne({user:t},a,{upsert:!0})},Q0=Object.freeze(Object.defineProperty({__proto__:null,resetGuessGame:async t=>{await Zt(t,{$set:{guess:null}})},setGuessGame:async(t,a,s,r)=>{await Zt(t,{$set:{guess:{amount:a,tries:s,numberToGuess:r,lastGuess:0}}})},updateGuessGame:async t=>{await Zt(t,{$inc:{"guess.tries":1},$set:{"guess.lastGuess":Date.now()}})}},Symbol.toStringTag,{value:"Module"})),Mn=async t=>await yt.create({user:t}),H0=async(t,a)=>{const s=await yt.findOne({user:t},a);return s||await Mn(t)},q0=async t=>{var s;const a=[];for(const r of Object.values(ss)){const n=new r;if((s=n.onUserOrnamentsUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&se("userOrnamentsUpdate",t.user._id,a)},ms=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},unlockedFactionBadges:{type:[String],default:[]},unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},selectedTitle:{type:String,default:null},unlockedBackgrounds:{type:[String],default:["default"]},selectedBackground:{type:String,default:"default"},unlockedProfileAssets:{type:[String],default:[]},unlockedBags:{type:[String],default:["default"]},selectedBag:{type:String,default:"default"}});ms.index({user:1}),ms.post("findOneAndUpdate",async function(t){await q0(t)});const gt=((di=h.models)==null?void 0:di.UserOrnaments)||h.model("UserOrnaments",ms),K=async(t,a)=>{await gt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},ys=async(t,a)=>{await K(t,{$addToSet:{unlockedTitles:a}})},K0=async(t,a)=>{await K(t,{$addToSet:{unlockedTitles:{$each:a}}})},W0=async(t,a)=>{await K(t,{$set:{selectedTitle:a}})},vn=async(t,a)=>{await K(t,{$addToSet:{unlockedBackgrounds:a}})},G0=async(t,a)=>{await K(t,{$addToSet:{unlockedBackgrounds:{$each:a}}})},V0=async(t,a)=>{await K(t,{$set:{selectedBackground:a}})},kn=async(t,a,s)=>{a.isProgressive?await K(t,{$addToSet:{unlockedBadges:`${a.id}_${s}`}}):await K(t,{$addToSet:{unlockedBadges:a.id}})},Rn=async(t,a)=>{await K(t,{$addToSet:{unlockedFactionBadges:{$each:[`b_marine_${a}`,`b_revolutionary_${a}`,`b_pirate_${a}`]}}})},Cn=async(t,a)=>{await K(t,{$addToSet:{unlockedProfileAssets:a}})},z0=Object.freeze(Object.defineProperty({__proto__:null,selectBackground:V0,selectBag:async(t,a)=>{await K(t,{$set:{selectedBag:a}})},selectTitle:W0,unlockBackground:vn,unlockBackgrounds:G0,unlockBadge:kn,unlockBag:async(t,a)=>{await K(t,{$addToSet:{unlockedBags:a}})},unlockFactionBadge:Rn,unlockProfileAsset:Cn,unlockTitle:ys,unlockTitles:K0},Symbol.toStringTag,{value:"Module"})),xn=async t=>await gt.create({user:t}),X0=async(t,a)=>{const s=await gt.findOne({user:t},a);return s||await xn(t)},Z0=async t=>{var s;const a=[];for(const r of Object.values(ns)){const n=new r;if((s=n.onUserQuestUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{_userQuest:t});i&&a.push([n,i])}}a.length>0&&se("userQuestUpdate",t.user._id,a)},gs=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},completed:{type:[String],default:[]},daily:{type:Object,default:{}},streak:{type:Number,default:0},lastFullComplete:{type:Date,default:new Date}},{minimize:!1});gs.index({user:1}),gs.post("findOneAndUpdate",async function(t){await Z0(t)});const wt=((oi=h.models)==null?void 0:oi.UserQuest)||h.model("UserQuest",gs),_t=async(t,a)=>{await wt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},Un=async(t,a)=>{await _t(t,{$addToSet:{completed:a}})},Bn=async(t,a)=>{await _t(t,[{$addFields:{[`daily.${a}`]:new Date}}])},On=async(t,a)=>{Se(ja(),a)?await _t(t,{$inc:{streak:1},$set:{lastFullComplete:new Date}}):await _t(t,{$set:{lastFullComplete:new Date,streak:1}})},J0=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Bn,completeQuest:Un,updateStreak:On},Symbol.toStringTag,{value:"Module"})),An=async t=>await wt.create({user:t}),ws=async t=>{const a=await wt.findOne({user:t});return a||await An(t)},bt=(t,a)=>{var s;return(s=t.unlocked)==null?void 0:s[a]},ey=Object.freeze(Object.defineProperty({__proto__:null,alreadyObtainedRaidReward:(t,a,s)=>a in t.obtainedRewards?t.obtainedRewards[a].includes(s):!1,fulfillCondition:(t,a,s,r)=>r==="include"?s.every(n=>(t.obtainedConditions[a]??[]).includes(n)):s.every(n=>!(t.obtainedConditions[a]??[]).includes(n)),getObtainedRaidReward:(t,a)=>t.obtainedRewards[a]??[],hasUnlockedRaid:bt},Symbol.toStringTag,{value:"Module"})),Dn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},currentRaid:{type:{raidId:String,seed:String,progression:{type:[String],default:[]},buffItem:String,rewards:{type:Object,default:{}}},default:void 0},obtainedConditions:{type:Object,default:{}},obtainedRewards:{type:Object,default:{}},unlocked:{type:Object,default:{}}},{minimize:!1});Dn.index({user:1});const St=((ci=h.models)==null?void 0:ci.UserRaid)||h.model("UserRaid",Dn),Me=async(t,a)=>{await St.updateOne({user:t},a,{upsert:!0})},Mt=async(t,a)=>{await Me(t,{$set:{[`unlocked.${a}`]:!0}})},ty=Object.freeze(Object.defineProperty({__proto__:null,addRewardsToRaid:async(t,a)=>{await Me(t,{$inc:Object.fromEntries(Ha(a).filter(([s])=>s!=="title"&&s!=="condition").map(([s,r])=>[`currentRaid.rewards.${s}`,r])),...a.title?{$set:{"currentRaid.rewards.title":a.title}}:{}})},claimReward:async(t,a,s)=>{await Me(t,{$addToSet:{[`obtainedRewards.${a}`]:s}})},progressRaid:async(t,a)=>{await Me(t,{$push:{"currentRaid.progression":a}})},resetRaid:async t=>{await Me(t,{$unset:{currentRaid:""}})},resetRaidProgression:async t=>{await Me(t,{$set:{"currentRaid.progression":[]}})},startRaid:async(t,a,s,r,n,i)=>{const o=Date.now();return await Me(t,{$set:{currentRaid:{raidId:a,buffItem:s,seed:o,progression:[],rewards:{}}}}),await mn(t,r,n,i),o},unlockRaid:Mt,updateCondition:async(t,a,s)=>{await Me(t,{$addToSet:{[`obtainedConditions.${a}`]:s}})}},Symbol.toStringTag,{value:"Module"})),Nn=async t=>await St.create({user:t}),_s=async t=>{const a=await St.findOne({user:t});return a||await Nn(t)},ay=Object.freeze(Object.defineProperty({__proto__:null,getShopItemRest:(t,a,s,r,n)=>{var f;if(S.isEquipmentId(a))return r;let i=S.getAllItemsLimit()[a];const o=(f=t.limit)==null?void 0:f[a];return n==="half"&&a==="chest_2"&&(i+=2),n==="full"&&a==="chest_3"&&(i+=1),i?t.lastShopId!==s?i:o?i-o:Math.min(i,r):r},isShopBuyLimitReached:(t,a,s,r)=>{var o;if(S.isEquipmentId(a))return!1;let n=S.getAllItemsLimit()[a];const i=(o=t.limit)==null?void 0:o[a];return r==="half"&&a==="chest_2"&&(n+=2),r==="full"&&a==="chest_3"&&(n+=1),t.lastShopId!==s?!1:!!(n&&i&&i>=n)}},Symbol.toStringTag,{value:"Module"})),En=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},lastShopId:{type:Number,default:0},limit:{type:Object,default:{}}},{minimize:!1});En.index({user:1});const Jt=((ui=h.models)==null?void 0:ui.UserShop)||h.model("UserShop",En),$n=async(t,a)=>{await Jt.updateOne({user:t},a,{upsert:!0})},sy=Object.freeze(Object.defineProperty({__proto__:null,increaseShopBuyLimit:async(t,a,s,r)=>{await $n(t,[{$set:{limit:{$cond:{if:{$eq:["$lastShopId",s]},then:{$mergeObjects:["$limit",{[a]:{$add:[{$ifNull:[`$limit.${a}`,0]},r]}}]},else:{[a]:r}}},lastShopId:s}}])}},Symbol.toStringTag,{value:"Module"})),X={localField:"_id",foreignField:"user",justOne:!0},T=new h.Schema({userId:{type:String,required:!0,unique:!0},birthday:{type:Date,default:null},faction:{type:String,default:l.DEFAULT_FACTION},canChangeFaction:{type:Boolean,default:!1},canChooseFaction:{type:Boolean,default:!1},settings:{sort:{inventory:{type:String,default:"alpha"}},sendDailyReport:{type:Boolean,default:!1},sendDailyQuest:{type:Boolean,default:!1},reminder:{raid:{classic:{type:Boolean,default:!1},special:{type:Boolean,default:!1},christmas:{type:Boolean,default:!1}},commands:{work:{type:Boolean,default:!1},dice:{type:Boolean,default:!1},qod:{type:Boolean,default:!1},blackjack:{type:Boolean,default:!1},guess:{type:Boolean,default:!1},rps:{type:Boolean,default:!1}}}}});T.virtual("inventory",{ref:"UserInventory",...X}),T.virtual("raid",{ref:"UserRaid",...X}),T.virtual("games",{ref:"UserGames",...X}),T.virtual("ornaments",{ref:"UserOrnaments",...X}),T.virtual("crew",{ref:"UserCrew",...X}),T.virtual("dailyReport",{ref:"UserDailyReport",...X}),T.virtual("shop",{ref:"UserShop",...X}),T.virtual("meta",{ref:"UserMeta",...X}),T.virtual("quest",{ref:"UserQuest",...X}),T.virtual("questMeta",{ref:"UserQuestMeta",...X}),T.virtual("cooldown",{ref:"UserCooldown",...X}),T.virtual("reminder",{ref:"Reminder",localField:"_id",foreignField:"user"}),T.virtual("encyclopedia",{ref:"UserEncyclopedia",...X}),T.index({userId:1}),T.post("deleteOne",async function(){const t=this.getQuery()._id;await ht.deleteOne({user:t}),await yt.deleteOne({user:t}),await gt.deleteOne({user:t}),await St.deleteOne({user:t}),await Ie.deleteOne({user:t}),await Xt.deleteOne({user:t}),await Jt.deleteOne({user:t}),await xe.deleteOne({user:t}),await wt.deleteOne({user:t}),await ce.deleteOne({user:t}),await pt.deleteOne({user:t}),await ot.deleteOne({user:t})});const W=((fi=h.models)==null?void 0:fi.User)||h.model("User",T),ry=t=>W.create({userId:t}),ea=async(t,a={})=>{const s=await Fn({userId:t},a);return s||await ry(t)},Fn=(t,a={})=>W.findOne(t,a),ny=Object.freeze(Object.defineProperty({__proto__:null,getAllDailyReport:async()=>W.aggregate([{$match:{"settings.sendDailyReport":!0}},{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$lookup:{from:"userdailyreports",localField:"_id",foreignField:"user",as:"dailyReport"}},{$match:{$and:[{$expr:{$gt:["$dailyReport.xpYesterday",0]}},{faction:{$ne:"citizen"}}]}}]),getBerryRanking:async()=>W.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$sort:{"meta.berry":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.berry":1}}]),getDailyReport:t=>{const{berry:a,xp:s}=t.meta,{voice:r,amount:n}=s,{unlockedBadges:i,unlockedBackgrounds:o,unlockedTitles:f}=t.ornaments,{previousOrnament:m,previousCompletedQuest:_,xpYesterday:B,berryYesterday:Y,previousMessageSent:H}=t.dailyReport;return{berry:a-Y,xp:n-B,message:t.questMeta.messageSent-H,voice:Se(r.lastConnection,ja())?r.minutesInVoiceToday:0,quest:Wt(t.quest.completed,_),badge:Wt(i,m.unlockedBadges),title:Wt(f,m.unlockedTitles),background:Wt(o,m.unlockedBackgrounds)}},getFactionRank:async(t,a)=>(await W.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$match:{faction:t.faction}},{$setWindowFields:{sortBy:{"meta.xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:a}},{$project:{rank:1}}]))[0],getFactionRanking:async t=>W.aggregate([{$match:{faction:t}},{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$userMeta"},{$sort:{"userMeta.xp.amount":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.xp.amount":1}}]),getGlobalRanking:async()=>W.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$sort:{"meta.xp.amount":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.xp.amount":1}}]),getNextBirthdays:()=>W.aggregate([{$match:{birthday:{$ne:null}}},{$addFields:{day:{$dayOfMonth:"$birthday"},month:{$month:"$birthday"},year:{$year:"$birthday"},nextBirthday:{$dateFromParts:{year:{$cond:[{$lt:[{$dateFromParts:{year:{$year:new Date},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}},new Date]},{$add:[{$year:new Date},1]},{$year:new Date}]},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}}}},{$sort:{nextBirthday:1}},{$limit:10},{$project:{_id:0,userId:1,birthday:1,nextBirthday:1}}]),getSuccessRanking:async()=>W.aggregate([{$lookup:{from:"userquests",localField:"_id",foreignField:"user",as:"quest"}},{$unwind:"$quest"},{$addFields:{success_count:{$size:{$ifNull:["$quest.completed",[]]}}}},{$sort:{success_count:-1}},{$limit:10},{$project:{_id:1,userId:1,"quest.completed":1}}]),getTodayAllBirthday:()=>W.aggregate([{$match:{birthday:{$ne:null}}},{$addFields:{birthMonth:{$month:"$birthday"},birthDay:{$dayOfMonth:"$birthday"}}},{$addFields:{currentMonth:{$month:new Date},currentDay:{$dayOfMonth:new Date}}},{$match:{$expr:{$and:[{$eq:["$birthMonth","$currentMonth"]},{$eq:["$birthDay","$currentDay"]}]}}}]),getUserBirthday:async t=>await ea(t,{birthday:1})},Symbol.toStringTag,{value:"Module"})),ve=async(t,a,s=!1)=>{await W.updateOne(t,a,{upsert:s})},In=async(t,a)=>{await ve({_id:t},{$set:{canChooseFaction:a}})},Yn=async(t,a)=>{await ve({_id:t},{$set:{canChangeFaction:a}})},iy=Object.freeze(Object.defineProperty({__proto__:null,canChangeFaction:Yn,canChooseFaction:In,removeBirthday:async t=>{await ve({userId:t},{$set:{birthday:null}})},setBirthday:async(t,a)=>{await ve({userId:t},{$set:{birthday:a}})},updateFaction:async(t,a)=>{await ve({_id:t},{$set:{faction:a}})},updateInventorySort:async(t,a)=>{await ve({_id:t},{$set:{"settings.sort.inventory":a}})},updateReminderSettings:async(t,a,s)=>{await ve({_id:t},{$set:{[`settings.reminder.${a}`]:s}})},updateSendDailyQuest:async(t,a)=>{await ve({userId:t},{$set:{"settings.sendDailyQuest":a}})},updateSendDailyReport:async(t,a)=>{await ve({userId:t},{$set:{"settings.sendDailyReport":a}})}},Symbol.toStringTag,{value:"Module"})),ly=async t=>{await W.deleteOne({userId:t})},dy=async t=>await Xt.create({user:t}),oy=async t=>await ce.create({user:t}),cy=async t=>await Jt.create({user:t}),Ln=(t,a)=>{switch(t){case"dailyReport":return dy(a);case"games":return Mn(a);case"inventory":return fn(a);case"meta":return sn(a);case"raid":return Nn(a);case"ornaments":return xn(a);case"quest":return An(a);case"questMeta":return oy(a);case"shop":return cy(a);case"cooldown":return yn(a);case"reminder":return[];case"crew":return null;case"encyclopedia":return Hr(a)}},Pn=async(t,a,s)=>{if(Array.isArray(a)){const r=await t.populate(a);for(const n of a)r[n]||(r[n]=await Ln(n,t._id));return r}else{const r=await t.populate(a,s),n=r[a];return(!n||Array.isArray(n)&&n.length===0)&&(r[a]=await Ln(a,t._id)),r}},Tn=new h.Schema({warnedUserId:String,authorId:String,date:{type:Date,default:Date.now()},reason:{type:String,default:null}});Tn.index({warnedUserId:1});const ze=((hi=h.models)==null?void 0:hi.Warns)||h.model("Warns",Tn),uy=Object.freeze(Object.defineProperty({__proto__:null,getUserWarnCount:async t=>await ze.countDocuments({warnedUserId:t}),getUserWarns:async t=>await ze.find({warnedUserId:t})},Symbol.toStringTag,{value:"Module"})),fy=async t=>await ze.findOne({warnedUserId:t}),hy=async t=>await ze.create({...t}),py=async t=>await ze.findByIdAndDelete(t),my=async t=>{var s;const a={};for(const r of Object.values(es)){const n=new r;for(const i of t.members){const o=await ea(i,{_id:1});if((s=n.onCrewUpdate)!=null&&s.call(n,t,o._id)){const f=await n.complete(o._id,{});if(f){const m=a[o.id];a[o.id]=m?[o._id,[...m[1],[n,f]]]:[o._id,[[n,f]]]}}}}Object.values(a).forEach(([r,n])=>{se("crewUpdate",r,n)})},yy={localField:"_id",foreignField:"crew",justOne:!0},ta=new h.Schema({createdBy:String,members:{type:[String],default:[]},limit:{type:Number,default:3},name:String,description:String,channelId:String,meta:{xp:{type:Number,default:0},berry:{type:Number,default:0},buffs:{xp:{boost:{type:Number,default:0},expireAt:{type:Date,default:null}}}},disintegration:{type:Number,default:100},faction:String,stats:{type:Object,default:{}},ornament:{unlockedBadges:[String]}},{timestamps:!0,minimize:!1});ta.index({"meta.xp":-1}),ta.virtual("quest",{ref:"CrewQuest",...yy}),ta.post("findOneAndUpdate",async function(t){await my(t)});const Xe=((pi=h.models)==null?void 0:pi.Crew)||h.model("Crew",ta),gy=(t,a)=>Math.ceil(a*(t.disintegration/100)*(jn(t)||1)),jn=t=>new Date>=(t.meta.buffs.xp.expireAt??new Date(0))?!1:t.meta.buffs.xp.boost,wy=Object.freeze(Object.defineProperty({__proto__:null,calcXp:gy,getCrewRank:async t=>(await Xe.aggregate([{$setWindowFields:{sortBy:{"meta.xp":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t._id}},{$project:{_id:1,"meta.xp":1,rank:1}}]))[0],getCrewRanking:async()=>Xe.aggregate([{$sort:{"meta.xp":-1}},{$limit:10}]),hasXpBuff:jn},Symbol.toStringTag,{value:"Module"})),ue=async(t,a)=>{await Xe.findOneAndUpdate({_id:t},a,{returnDocument:"after"})},Qn=async(t,a,s)=>{a.isProgressive?await ue(t,{$addToSet:{"ornament.unlockedBadges":`${a.id}_${s}`}}):await ue(t,{$addToSet:{"ornament.unlockedBadges":a.id}})},_y=Object.freeze(Object.defineProperty({__proto__:null,addBerry:async(t,a,s)=>{await ue(t,{$inc:{"meta.berry":a,[`stats.${s.toHexString()}.berry`]:a}})},addMember:async(t,a)=>{await ue(t,{$addToSet:{members:a}})},addXp:async(t,a,s)=>{await ue(t,{$inc:{"meta.xp":a,[`stats.${s.toHexString()}.xp`]:a}})},addXpBuff:async(t,a)=>{await ue(t,[{$set:{"meta.buffs.xp":{$cond:{if:{$or:[{$eq:["$meta.buffs.xp.expireAt",null]},{lt:["$meta.buffs.xp.expireAt",new Date]}]},then:{boost:1.1,expireAt:{$add:[new Date,a*60*60*1e3]}},else:{boost:1.1,expireAt:{$add:["$meta.buffs.xp.expireAt",a*60*60*1e3]}}}}}}])},applyDisintegration:async(t,a)=>{const[s,r]=[a-2,(a-3)*2+3];await ue(t,[{$set:{disintegration:{$max:[{$add:["$disintegration",-1*Mr(s,r)]},0]}}}])},increaseLimit:async(t,a)=>{await ue(t,{$inc:{limit:1,"meta.berry":-a}})},removeMember:async(t,a,s)=>{await ue(t,{$pull:{members:a},$unset:{[`stats.${s}`]:1}})},repair:async(t,a)=>{await ue(t,[{$set:{disintegration:{$min:[{$add:["$disintegration",a]},100]}}}])},unlockBadge:Qn},Symbol.toStringTag,{value:"Module"})),by=async(t,a={})=>{const s=await Xe.findById(t,a);return s||null},Sy=async(t,{name:a,description:s,channelId:r,faction:n})=>await Xe.create({name:a,description:s,createdBy:t,channelId:r,faction:n,members:[t]}),Hn=(t,a)=>{for(const[,s]of Object.entries(t.daily??{}))if(!(s!=null&&s[a])||!Se(s[a],new Date))return!1;return!0},My=Object.freeze(Object.defineProperty({__proto__:null,isAllDailyCompleted:Hn},Symbol.toStringTag,{value:"Module"})),vy=async t=>{var r;const a={},{crew:s}=await t.populate("crew");for(const n of Object.values(Ja)){const i=new n;for(const o of s.members){const f=await ea(o,{_id:1,crew:1}).then(m=>Pn(m,"crew",{lastAllMembersDaily:1}));if(f.crew&&((r=i.onCrewQuestUpdate)!=null&&r.call(i,t,f.crew))){const m=await i.complete(f._id,{});if(m){const _=a[f.id];a[f.id]=_?[f._id,[..._[1],[i,m]]]:[f._id,[[i,m]]]}}}}Object.values(a).forEach(([n,i])=>{se("crewQuestUpdate",n,i)})},bs=new h.Schema({crew:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"Crew"},completed:[String],daily:{type:Object,default:{}},meta:{streak80Percent:{type:Number,default:0},maxVoiceMembers:{type:Number,default:0},actualVoiceMembers:{amount:{type:Number,default:0},connectedAt:{type:Date,default:new Date}}}},{minimize:!1});bs.index({crew:1}),bs.post("findOneAndUpdate",async function(t){await vy(t)});const aa=((mi=h.models)==null?void 0:mi.CrewQuest)||h.model("CrewQuest",bs),sa=async(t,a)=>{await aa.findOneAndUpdate({crew:t},a,{upsert:!0,returnDocument:"after"})},qn=async(t,a)=>{await sa(t,{$addToSet:{completed:a}})},Kn=async(t,a,s)=>{await sa(t,[{$addFields:{[`daily.${a}.${s}`]:new Date}}])},ky=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Kn,completeQuest:qn,setActualVoiceMembers:async(t,a)=>{await sa(t,{$set:{"meta.actualVoiceMembers.amount":a,"meta.actualVoiceMembers.connectedAt":new Date}})},setMaxVoiceMembers:async(t,a)=>{await sa(t,{$set:{"meta.maxVoiceMembers":a}})}},Symbol.toStringTag,{value:"Module"})),Ss=async t=>await aa.create({crew:t}),Ry=async t=>{const a=await aa.findOne({crew:t});return a||await Ss(t)},Wn=(t,a)=>{switch(t){case"quest":return Ss(a)}},Cy=async(t,a,s)=>{if(Array.isArray(a)){const r=await t.populate(a);for(const n of a)r[n]||(r[n]=await Wn(n,t._id));return r}else{const r=await t.populate(a,s),n=r[a];return(!n||Array.isArray(n)&&n.length===0)&&(r[a]=await Wn(a,t._id)),r}},xy=t=>{h.connect(t)};class Uy extends h.Types.ObjectId{}c.ALL_QUESTS=Xr,c.BET_MAX_VALUE=ou,c.BET_MIN_VALUE=du,c.BackgroundShopItem=Ur,c.BoostXpShopItem=Br,c.BottleShopItem=Nr,c.COOLDOWN_COMMANDS=$0,c.ChestShopItem=Or,c.CrewQuestQuests=Ja,c.CrewQuests=es,c.EDITO_READ=cu,c.EquipmentShopItem=Dr,c.ObjectId=Uy,c.ObjectShopItem=Ar,c.QUEST_ASSET_IMAGES=uu,c.Quest=d,c.RepairShopItem=Er,c.StoreShopItem=$r,c.TitleShopItem=Fr,c.UserDailyQuests=za,c.UserInventoryQuests=ts,c.UserMetaQuests=as,c.UserOrnamentsQuests=ss,c.UserQuestMetaQuests=rs,c.UserQuestQuests=ns,c.UserRepetableQuests=vt,c.banExists=Si,c.banGetters=gi,c.banModel=Ye,c.betModel=ia,c.completeCrewQuest=wu,c.completeDailyQuest=gu,c.completeRepeatableQuest=_u,c.connectToServices=xy,c.createBan=wi,c.createBet=ki,c.createCrew=Sy,c.createCrewQuest=Ss,c.createInvitations=Ci,c.createReminder=qc,c.createSettings=xr,c.createUserCrew=L0,c.createWarn=hy,c.crewGetters=wy,c.crewModel=Xe,c.crewQuestGetters=My,c.crewQuestModel=aa,c.crewQuestUpdates=ky,c.crewUpdates=_y,c.deleteBan=bi,c.deleteInvitations=xi,c.deleteUserById=ly,c.deleteUserCrewById=T0,c.deleteWarn=py,c.emitQuestEvent=se,c.emitRaidEvent=ct,c.emitUserMetaEvent=an,c.finWarnById=fy,c.findBan=_i,c.findBetById=vi,c.findCrewById=by,c.findCrewQuest=Ry,c.findInvitations=Ri,c.findReminder=Hc,c.findSettingsByGuildId=Ec,c.findShop=Pr,c.findShopByType=Lc,c.findUser=Fn,c.findUserById=ea,c.findUserCooldown=F0,c.findUserCrew=wn,c.findUserEncyclopedia=zc,c.findUserGames=H0,c.findUserInventory=Fe,c.findUserMeta=ft,c.findUserOrnaments=X0,c.findUserQuest=ws,c.findUserRaid=_s,c.getBadgeEmojisFromId=yu,c.getQuestBadgeEmojis=mu,c.invitationsModel=kt,c.onQuestEvent=Zc,c.onRaidEvent=Dm,c.onUserMetaEvent=r0,c.populateCrew=Cy,c.populateUser=Pn,c.questCanvas=lu,c.reminderGetters=Tc,c.reminderModel=$e,c.reminderUpdates=Qc,c.settingsModel=Gt,c.settingsUpdates=Nc,c.shopGetters=$c,c.shopModel=Vt,c.shopUpdates=Ic,c.updateUserCooldown=mt,c.updateUserCrew=ps,c.updateUserDailyReport=bn,c.updateUserEncyclopedia=Qr,c.updateUserGames=Zt,c.updateUserInventory=re,c.updateUserMeta=$,c.updateUserOrnaments=K,c.updateUserQuest=_t,c.updateUserQuestMeta=k,c.updateUserRaid=Me,c.updateUserShop=$n,c.userCooldownGetters=Pc,c.userCooldownModel=pt,c.userCooldownUpdates=E0,c.userCrewExists=P0,c.userCrewModel=Ie,c.userCrewUpdates=Y0,c.userDailyReportModel=Xt,c.userDailyReportUpdates=j0,c.userEncyclopediaGetters=Gc,c.userEncyclopediaModel=ot,c.userEncyclopediaUpdates=Vc,c.userGamesModel=yt,c.userGamesUpdates=Q0,c.userGetters=ny,c.userInventoryGetters=Wc,c.userInventoryModel=ht,c.userInventoryUpdates=M0,c.userMetaGetters=D0,c.userMetaModel=xe,c.userMetaUpdates=u0,c.userModel=W,c.userOrnamentsModel=gt,c.userOrnamentsUpdates=z0,c.userQuestGetters=pu,c.userQuestMetaModel=ce,c.userQuestMetaUpdates=a0,c.userQuestModel=wt,c.userQuestUpdates=J0,c.userRaidGetters=ey,c.userRaidModel=St,c.userRaidUpdates=ty,c.userShopGetters=ay,c.userShopModel=Jt,c.userShopUpdates=sy,c.userUpdates=iy,c.warnGetters=uy,c.warnModel=ze,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|