@opfr/services 0.39.0 → 0.40.1
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 +244 -244
- package/dist/index.umd.js +4 -4
- package/package.json +8 -9
package/dist/index.umd.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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,
|
|
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,U,Ss,u,j){"use strict";var Gp=Object.defineProperty;var Vp=(c,h,S)=>h in c?Gp(c,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):c[h]=S;var e=(c,h,S)=>Vp(c,typeof h!="symbol"?h+"":h,S);var Pr,Tr,jr,Qr,qr,Hr,Kr,Gr,Vr,Wr,zr,Xr,Zr,Jr,ei,ti,ai,si,ni,ri,ii,li;function oi(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(a,s,n.get?n:{enumerable:!0,get:()=>t[s]})}}return a.default=t,Object.freeze(a)}const di=oi(Ss),na=new h.Schema({bannedUserId:String,authorId:String,unbannedTimestamp:Date,reason:String});na.index({bannedUserId:1}),na.index({unbannedTimestamp:1});const Fe=((Pr=h.models)==null?void 0:Pr.Bans)||h.model("Bans",na),ci=Object.freeze(Object.defineProperty({__proto__:null,getUnbanUsers:async()=>await Fe.find({unbannedTimestamp:{$lte:new Date,$ne:null}})},Symbol.toStringTag,{value:"Module"})),ui=async t=>await Fe.create({...t}),fi=async t=>await Fe.findOne({bannedUserId:t}),hi=async t=>{await Fe.deleteOne({bannedUserId:t})},mi=t=>Fe.exists({bannedUserId:t}),pi=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:[]}}),ra=((Tr=h.models)==null?void 0:Tr.Bets)||h.model("Bets",pi),yi=async(t,a={})=>{const s=await ra.findById(t,a);return s||null},gi=async t=>await ra.create({...t}),Ms=new h.Schema({senderId:String,receiverId:String,amount:Number,gameMode:String,meta:{rps:{type:String,default:void 0}}});Ms.index({receiverId:1});const St=((jr=h.models)==null?void 0:jr.Invitations)||h.model("Invitations",Ms),_i=async t=>{const a=await St.findOne({...t});return a||null},wi=async t=>await St.create({...t}),bi=async t=>{await St.deleteMany({...t})},Mt=t=>new Intl.NumberFormat("de-DE").format(t),vs=(t,a,s=Math.random)=>Math.floor(s()*(a-t)+t),vt=(t,a,s=n=>n)=>t.filter(n=>!a.some(r=>s(r)===s(n))),ia=(t,a)=>[...new Set(t.map(s=>a(s)))],ks=t=>t.filter(a=>a!=null),Si=({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 n=[];for(let r=t;s>0?r<a:r>a;r+=s)n.push(r);return n};//! moment.js
|
|
2
2
|
//! version : 2.30.1
|
|
3
3
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
4
|
//! license : MIT
|
|
5
5
|
//! momentjs.com
|
|
6
|
-
var Cs;function y(){return Cs.apply(null,arguments)}function
|
|
6
|
+
var Cs;function y(){return Cs.apply(null,arguments)}function Mi(t){Cs=t}function Z(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function De(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function C(t,a){return Object.prototype.hasOwnProperty.call(t,a)}function la(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var a;for(a in t)if(C(t,a))return!1;return!0}function Q(t){return t===void 0}function ue(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function Xe(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function Rs(t,a){var s=[],n,r=t.length;for(n=0;n<r;++n)s.push(a(t[n],n));return s}function ke(t,a){for(var s in a)C(a,s)&&(t[s]=a[s]);return C(a,"toString")&&(t.toString=a.toString),C(a,"valueOf")&&(t.valueOf=a.valueOf),t}function se(t,a,s,n){return Js(t,a,s,n,!0).utc()}function vi(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function b(t){return t._pf==null&&(t._pf=vi()),t._pf}var oa;Array.prototype.some?oa=Array.prototype.some:oa=function(t){var a=Object(this),s=a.length>>>0,n;for(n=0;n<s;n++)if(n in a&&t.call(this,a[n],n,a))return!0;return!1};function da(t){var a=null,s=!1,n=t._d&&!isNaN(t._d.getTime());if(n&&(a=b(t),s=oa.call(a.parsedDateParts,function(r){return r!=null}),n=a.overflow<0&&!a.empty&&!a.invalidEra&&!a.invalidMonth&&!a.invalidWeekday&&!a.weekdayMismatch&&!a.nullInput&&!a.invalidFormat&&!a.userInvalidated&&(!a.meridiem||a.meridiem&&s),t._strict&&(n=n&&a.charsLeftOver===0&&a.unusedTokens.length===0&&a.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=n;else return n;return t._isValid}function kt(t){var a=se(NaN);return t!=null?ke(b(a),t):b(a).userInvalidated=!0,a}var Us=y.momentProperties=[],ca=!1;function ua(t,a){var s,n,r,i=Us.length;if(Q(a._isAMomentObject)||(t._isAMomentObject=a._isAMomentObject),Q(a._i)||(t._i=a._i),Q(a._f)||(t._f=a._f),Q(a._l)||(t._l=a._l),Q(a._strict)||(t._strict=a._strict),Q(a._tzm)||(t._tzm=a._tzm),Q(a._isUTC)||(t._isUTC=a._isUTC),Q(a._offset)||(t._offset=a._offset),Q(a._pf)||(t._pf=b(a)),Q(a._locale)||(t._locale=a._locale),i>0)for(s=0;s<i;s++)n=Us[s],r=a[n],Q(r)||(t[n]=r);return t}function Ze(t){ua(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ca===!1&&(ca=!0,y.updateOffset(this),ca=!1)}function J(t){return t instanceof Ze||t!=null&&t._isAMomentObject!=null}function xs(t){y.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function V(t,a){var s=!0;return ke(function(){if(y.deprecationHandler!=null&&y.deprecationHandler(null,t),s){var n=[],r,i,d,f=arguments.length;for(i=0;i<f;i++){if(r="",typeof arguments[i]=="object"){r+=`
|
|
7
7
|
[`+i+"] ";for(d in arguments[0])C(arguments[0],d)&&(r+=d+": "+arguments[0][d]+", ");r=r.slice(0,-2)}else r=arguments[i];n.push(r)}xs(t+`
|
|
8
8
|
Arguments: `+Array.prototype.slice.call(n).join("")+`
|
|
9
|
-
`+new Error().stack),s=!1}return a.apply(this,arguments)},a)}var Bs={};function Ds(t,a){y.deprecationHandler!=null&&y.deprecationHandler(t,a),Bs[t]||(xs(a),Bs[t]=!0)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null;function ne(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function ki(t){var a,s;for(s in t)C(t,s)&&(a=t[s],ne(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),n;for(n in a)C(a,n)&&(De(t[n])&&De(a[n])?(s[n]={},ke(s[n],t[n]),ke(s[n],a[n])):a[n]!=null?s[n]=a[n]:delete s[n]);for(n in t)C(t,n)&&!C(a,n)&&De(t[n])&&(s[n]=ke({},s[n]));return s}function ha(t){t!=null&&this.set(t)}var ma;Object.keys?ma=Object.keys:ma=function(t){var a,s=[];for(a in t)C(t,a)&&s.push(a);return s};var Ci={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ri(t,a,s){var n=this._calendar[t]||this._calendar.sameElse;return ne(n)?n.call(a,s):n}function re(t,a,s){var n=""+Math.abs(t),r=a-n.length,i=t>=0;return(i?s?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var pa=/(\[[^\[]*\])|(\\)?([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={},Ie={};function _(t,a,s,n){var r=n;typeof n=="string"&&(r=function(){return this[n]()}),t&&(Ie[t]=r),a&&(Ie[a[0]]=function(){return re(r.apply(this,arguments),a[1],a[2])}),s&&(Ie[s]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function Ui(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function xi(t){var a=t.match(pa),s,n;for(s=0,n=a.length;s<n;s++)Ie[a[s]]?a[s]=Ie[a[s]]:a[s]=Ui(a[s]);return function(r){var i="",d;for(d=0;d<n;d++)i+=ne(a[d])?a[d].call(r,t):a[d];return i}}function Rt(t,a){return t.isValid()?(a=As(a,t.localeData()),ya[a]=ya[a]||xi(a),ya[a](t)):t.localeData().invalidDate()}function As(t,a){var s=5;function n(r){return a.longDateFormat(r)||r}for(Ct.lastIndex=0;s>=0&&Ct.test(t);)t=t.replace(Ct,n),Ct.lastIndex=0,s-=1;return t}var Bi={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 Di(t){var a=this._longDateFormat[t],s=this._longDateFormat[t.toUpperCase()];return a||!s?a:(this._longDateFormat[t]=s.match(pa).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[t])}var Ai="Invalid date";function Oi(){return this._invalidDate}var Ni="%d",$i=/\d{1,2}/;function Ei(t){return this._ordinal.replace("%d",t)}var Fi={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 Ii(t,a,s,n){var r=this._relativeTime[s];return ne(r)?r(t,a,s,n):r.replace(/%d/i,t)}function Yi(t,a){var s=this._relativeTime[t>0?"future":"past"];return ne(s)?s(a):s.replace(/%s/i,a)}var Os={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 W(t){return typeof t=="string"?Os[t]||Os[t.toLowerCase()]:void 0}function ga(t){var a={},s,n;for(n in t)C(t,n)&&(s=W(n),s&&(a[s]=t[n]));return a}var Li={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 Pi(t){var a=[],s;for(s in t)C(t,s)&&a.push({unit:s,priority:Li[s]});return a.sort(function(n,r){return n.priority-r.priority}),a}var Ns=/\d/,H=/\d\d/,$s=/\d{3}/,_a=/\d{4}/,Ut=/[+-]?\d{6}/,D=/\d\d?/,Es=/\d\d\d\d?/,Fs=/\d\d\d\d\d\d?/,xt=/\d{1,3}/,wa=/\d{1,4}/,Bt=/[+-]?\d{1,6}/,Ye=/\d+/,Dt=/[+-]?\d+/,Ti=/Z|[+-]\d\d:?\d\d/gi,At=/Z|[+-]\d\d(?::?\d\d)?/gi,ji=/[+-]?\d+(\.\d{1,3})?/,Je=/[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,Le=/^[1-9]\d?/,ba=/^([1-9]\d|\d)/,Ot;Ot={};function g(t,a,s){Ot[t]=ne(a)?a:function(n,r){return n&&s?s:a}}function Qi(t,a){return C(Ot,t)?Ot[t](a._strict,a._locale):new RegExp(qi(t))}function qi(t){return fe(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,s,n,r,i){return s||n||r||i}))}function fe(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function z(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function S(t){var a=+t,s=0;return a!==0&&isFinite(a)&&(s=z(a)),s}var va={};function x(t,a){var s,n=a,r;for(typeof t=="string"&&(t=[t]),ue(a)&&(n=function(i,d){d[a]=S(i)}),r=t.length,s=0;s<r;s++)va[t[s]]=n}function et(t,a){x(t,function(s,n,r,i){r._w=r._w||{},a(s,r._w,r,i)})}function Hi(t,a,s){a!=null&&C(va,t)&&va[t](a,s._a,s,t)}function Nt(t){return t%4===0&&t%100!==0||t%400===0}var L=0,he=1,ie=2,$=3,ee=4,me=5,Ae=6,Ki=7,Gi=8;_("Y",0,0,function(){var t=this.year();return t<=9999?re(t,4):"+"+t}),_(0,["YY",2],0,function(){return this.year()%100}),_(0,["YYYY",4],0,"year"),_(0,["YYYYY",5],0,"year"),_(0,["YYYYYY",6,!0],0,"year"),g("Y",Dt),g("YY",D,H),g("YYYY",wa,_a),g("YYYYY",Bt,Ut),g("YYYYYY",Bt,Ut),x(["YYYYY","YYYYYY"],L),x("YYYY",function(t,a){a[L]=t.length===2?y.parseTwoDigitYear(t):S(t)}),x("YY",function(t,a){a[L]=y.parseTwoDigitYear(t)}),x("Y",function(t,a){a[L]=parseInt(t,10)});function tt(t){return Nt(t)?366:365}y.parseTwoDigitYear=function(t){return S(t)+(S(t)>68?1900:2e3)};var Is=Pe("FullYear",!0);function Vi(){return Nt(this.year())}function Pe(t,a){return function(s){return s!=null?(Ys(this,t,s),y.updateOffset(this,a),this):at(this,t)}}function at(t,a){if(!t.isValid())return NaN;var s=t._d,n=t._isUTC;switch(a){case"Milliseconds":return n?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return n?s.getUTCSeconds():s.getSeconds();case"Minutes":return n?s.getUTCMinutes():s.getMinutes();case"Hours":return n?s.getUTCHours():s.getHours();case"Date":return n?s.getUTCDate():s.getDate();case"Day":return n?s.getUTCDay():s.getDay();case"Month":return n?s.getUTCMonth():s.getMonth();case"FullYear":return n?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Ys(t,a,s){var n,r,i,d,f;if(!(!t.isValid()||isNaN(s))){switch(n=t._d,r=t._isUTC,a){case"Milliseconds":return void(r?n.setUTCMilliseconds(s):n.setMilliseconds(s));case"Seconds":return void(r?n.setUTCSeconds(s):n.setSeconds(s));case"Minutes":return void(r?n.setUTCMinutes(s):n.setMinutes(s));case"Hours":return void(r?n.setUTCHours(s):n.setHours(s));case"Date":return void(r?n.setUTCDate(s):n.setDate(s));case"FullYear":break;default:return}i=s,d=t.month(),f=t.date(),f=f===29&&d===1&&!Nt(i)?28:f,r?n.setUTCFullYear(i,d,f):n.setFullYear(i,d,f)}}function Wi(t){return t=W(t),ne(this[t])?this[t]():this}function zi(t,a){if(typeof t=="object"){t=ga(t);var s=Pi(t),n,r=s.length;for(n=0;n<r;n++)this[s[n].unit](t[s[n].unit])}else if(t=W(t),ne(this[t]))return this[t](a);return this}function Xi(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 Sa(t,a){if(isNaN(t)||isNaN(a))return NaN;var s=Xi(a,12);return t+=(a-s)/12,s===1?Nt(t)?29:28:31-s%7%2}_("M",["MM",2],"Mo",function(){return this.month()+1}),_("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),_("MMMM",0,0,function(t){return this.localeData().months(this,t)}),g("M",D,Le),g("MM",D,H),g("MMM",function(t,a){return a.monthsShortRegex(t)}),g("MMMM",function(t,a){return a.monthsRegex(t)}),x(["M","MM"],function(t,a){a[he]=S(t)-1}),x(["MMM","MMMM"],function(t,a,s,n){var r=s._locale.monthsParse(t,n,s._strict);r!=null?a[he]=r:b(s).invalidMonth=t});var Zi="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?/,Ji=Je,el=Je;function tl(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 al(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 sl(t,a,s){var n,r,i,d=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=se([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return s?a==="MMM"?(r=N.call(this._shortMonthsParse,d),r!==-1?r:null):(r=N.call(this._longMonthsParse,d),r!==-1?r:null):a==="MMM"?(r=N.call(this._shortMonthsParse,d),r!==-1?r:(r=N.call(this._longMonthsParse,d),r!==-1?r:null)):(r=N.call(this._longMonthsParse,d),r!==-1?r:(r=N.call(this._shortMonthsParse,d),r!==-1?r:null))}function nl(t,a,s){var n,r,i;if(this._monthsParseExact)return sl.call(this,t,a,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++)if(r=se([2e3,n]),s&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!s&&!this._monthsParse[n]&&(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),s&&a==="MMMM"&&this._longMonthsParse[n].test(t)||s&&a==="MMM"&&this._shortMonthsParse[n].test(t)||!s&&this._monthsParse[n].test(t))return n}function Ts(t,a){if(!t.isValid())return t;if(typeof a=="string"){if(/^\d+$/.test(a))a=S(a);else if(a=t.localeData().monthsParse(a),!ue(a))return t}var s=a,n=t.date();return n=n<29?n:Math.min(n,Sa(t.year(),s)),t._isUTC?t._d.setUTCMonth(s,n):t._d.setMonth(s,n),t}function js(t){return t!=null?(Ts(this,t),y.updateOffset(this,!0),this):at(this,"Month")}function rl(){return Sa(this.year(),this.month())}function il(t){return this._monthsParseExact?(C(this,"_monthsRegex")||Qs.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(C(this,"_monthsShortRegex")||(this._monthsShortRegex=Ji),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function ll(t){return this._monthsParseExact?(C(this,"_monthsRegex")||Qs.call(this),t?this._monthsStrictRegex:this._monthsRegex):(C(this,"_monthsRegex")||(this._monthsRegex=el),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function Qs(){function t(p,w){return w.length-p.length}var a=[],s=[],n=[],r,i,d,f;for(r=0;r<12;r++)i=se([2e3,r]),d=fe(this.monthsShort(i,"")),f=fe(this.months(i,"")),a.push(d),s.push(f),n.push(f),n.push(d);a.sort(t),s.sort(t),n.sort(t),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ol(t,a,s,n,r,i,d){var f;return t<100&&t>=0?(f=new Date(t+400,a,s,n,r,i,d),isFinite(f.getFullYear())&&f.setFullYear(t)):f=new Date(t,a,s,n,r,i,d),f}function st(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 n=7+a-s,r=(7+st(t,0,n).getUTCDay()-a)%7;return-r+n-1}function qs(t,a,s,n,r){var i=(7+s-n)%7,d=$t(t,n,r),f=1+7*(a-1)+i+d,p,w;return f<=0?(p=t-1,w=tt(p)+f):f>tt(t)?(p=t+1,w=f-tt(t)):(p=t,w=f),{year:p,dayOfYear:w}}function nt(t,a,s){var n=$t(t.year(),a,s),r=Math.floor((t.dayOfYear()-n-1)/7)+1,i,d;return r<1?(d=t.year()-1,i=r+pe(d,a,s)):r>pe(t.year(),a,s)?(i=r-pe(t.year(),a,s),d=t.year()+1):(d=t.year(),i=r),{week:i,year:d}}function pe(t,a,s){var n=$t(t,a,s),r=$t(t+1,a,s);return(tt(t)-n+r)/7}_("w",["ww",2],"wo","week"),_("W",["WW",2],"Wo","isoWeek"),g("w",D,Le),g("ww",D,H),g("W",D,Le),g("WW",D,H),et(["w","ww","W","WW"],function(t,a,s,n){a[n.substr(0,1)]=S(t)});function dl(t){return nt(t,this._week.dow,this._week.doy).week}var cl={dow:0,doy:6};function ul(){return this._week.dow}function fl(){return this._week.doy}function hl(t){var a=this.localeData().week(this);return t==null?a:this.add((t-a)*7,"d")}function ml(t){var a=nt(this,1,4).week;return t==null?a:this.add((t-a)*7,"d")}_("d",0,"do","day"),_("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),_("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),_("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),_("e",0,0,"weekday"),_("E",0,0,"isoWeekday"),g("d",D),g("e",D),g("E",D),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)}),et(["dd","ddd","dddd"],function(t,a,s,n){var r=s._locale.weekdaysParse(t,n,s._strict);r!=null?a.d=r:b(s).invalidWeekday=t}),et(["d","e","E"],function(t,a,s,n){a[n]=S(t)});function pl(t,a){return typeof t!="string"?t:isNaN(t)?(t=a.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function yl(t,a){return typeof t=="string"?a.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Ma(t,a){return t.slice(a,7).concat(t.slice(0,a))}var gl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Hs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),_l="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wl=Je,bl=Je,vl=Je;function Sl(t,a){var s=Z(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(a)?"format":"standalone"];return t===!0?Ma(s,this._week.dow):t?s[t.day()]:s}function Ml(t){return t===!0?Ma(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function kl(t){return t===!0?Ma(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Cl(t,a,s){var n,r,i,d=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=se([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return s?a==="dddd"?(r=N.call(this._weekdaysParse,d),r!==-1?r:null):a==="ddd"?(r=N.call(this._shortWeekdaysParse,d),r!==-1?r:null):(r=N.call(this._minWeekdaysParse,d),r!==-1?r:null):a==="dddd"?(r=N.call(this._weekdaysParse,d),r!==-1||(r=N.call(this._shortWeekdaysParse,d),r!==-1)?r:(r=N.call(this._minWeekdaysParse,d),r!==-1?r:null)):a==="ddd"?(r=N.call(this._shortWeekdaysParse,d),r!==-1||(r=N.call(this._weekdaysParse,d),r!==-1)?r:(r=N.call(this._minWeekdaysParse,d),r!==-1?r:null)):(r=N.call(this._minWeekdaysParse,d),r!==-1||(r=N.call(this._weekdaysParse,d),r!==-1)?r:(r=N.call(this._shortWeekdaysParse,d),r!==-1?r:null))}function Rl(t,a,s){var n,r,i;if(this._weekdaysParseExact)return Cl.call(this,t,a,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++)if(r=se([2e3,1]).day(n),s&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),s&&a==="dddd"&&this._fullWeekdaysParse[n].test(t)||s&&a==="ddd"&&this._shortWeekdaysParse[n].test(t)||s&&a==="dd"&&this._minWeekdaysParse[n].test(t)||!s&&this._weekdaysParse[n].test(t))return n}function Ul(t){if(!this.isValid())return t!=null?this:NaN;var a=at(this,"Day");return t!=null?(t=pl(t,this.localeData()),this.add(t-a,"d")):a}function xl(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 Bl(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var a=yl(t,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function Dl(t){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||ka.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(C(this,"_weekdaysRegex")||(this._weekdaysRegex=wl),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Al(t){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||ka.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(C(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=bl),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ol(t){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||ka.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(C(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=vl),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ka(){function t(B,I){return I.length-B.length}var a=[],s=[],n=[],r=[],i,d,f,p,w;for(i=0;i<7;i++)d=se([2e3,1]).day(i),f=fe(this.weekdaysMin(d,"")),p=fe(this.weekdaysShort(d,"")),w=fe(this.weekdays(d,"")),a.push(f),s.push(p),n.push(w),r.push(f),r.push(p),r.push(w);a.sort(t),s.sort(t),n.sort(t),r.sort(t),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ca(){return this.hours()%12||12}function Nl(){return this.hours()||24}_("H",["HH",2],0,"hour"),_("h",["hh",2],0,Ca),_("k",["kk",2],0,Nl),_("hmm",0,0,function(){return""+Ca.apply(this)+re(this.minutes(),2)}),_("hmmss",0,0,function(){return""+Ca.apply(this)+re(this.minutes(),2)+re(this.seconds(),2)}),_("Hmm",0,0,function(){return""+this.hours()+re(this.minutes(),2)}),_("Hmmss",0,0,function(){return""+this.hours()+re(this.minutes(),2)+re(this.seconds(),2)});function Ks(t,a){_(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}Ks("a",!0),Ks("A",!1);function Gs(t,a){return a._meridiemParse}g("a",Gs),g("A",Gs),g("H",D,ba),g("h",D,Le),g("k",D,Le),g("HH",D,H),g("hh",D,H),g("kk",D,H),g("hmm",Es),g("hmmss",Fs),g("Hmm",Es),g("Hmmss",Fs),x(["H","HH"],$),x(["k","kk"],function(t,a,s){var n=S(t);a[$]=n===24?0:n}),x(["a","A"],function(t,a,s){s._isPm=s._locale.isPM(t),s._meridiem=t}),x(["h","hh"],function(t,a,s){a[$]=S(t),b(s).bigHour=!0}),x("hmm",function(t,a,s){var n=t.length-2;a[$]=S(t.substr(0,n)),a[ee]=S(t.substr(n)),b(s).bigHour=!0}),x("hmmss",function(t,a,s){var n=t.length-4,r=t.length-2;a[$]=S(t.substr(0,n)),a[ee]=S(t.substr(n,2)),a[me]=S(t.substr(r)),b(s).bigHour=!0}),x("Hmm",function(t,a,s){var n=t.length-2;a[$]=S(t.substr(0,n)),a[ee]=S(t.substr(n))}),x("Hmmss",function(t,a,s){var n=t.length-4,r=t.length-2;a[$]=S(t.substr(0,n)),a[ee]=S(t.substr(n,2)),a[me]=S(t.substr(r))});function $l(t){return(t+"").toLowerCase().charAt(0)==="p"}var El=/[ap]\.?m?\.?/i,Fl=Pe("Hours",!0);function Il(t,a,s){return t>11?s?"pm":"PM":s?"am":"AM"}var Vs={calendar:Ci,longDateFormat:Bi,invalidDate:Ai,ordinal:Ni,dayOfMonthOrdinalParse:$i,relativeTime:Fi,months:Zi,monthsShort:Ls,week:cl,weekdays:gl,weekdaysMin:_l,weekdaysShort:Hs,meridiemParse:El},O={},rt={},it;function Yl(t,a){var s,n=Math.min(t.length,a.length);for(s=0;s<n;s+=1)if(t[s]!==a[s])return s;return n}function Ws(t){return t&&t.toLowerCase().replace("_","-")}function Ll(t){for(var a=0,s,n,r,i;a<t.length;){for(i=Ws(t[a]).split("-"),s=i.length,n=Ws(t[a+1]),n=n?n.split("-"):null;s>0;){if(r=Et(i.slice(0,s).join("-")),r)return r;if(n&&n.length>=s&&Yl(i,n)>=s-1)break;s--}a++}return it}function Pl(t){return!!(t&&t.match("^[^/\\\\]*$"))}function Et(t){var a=null,s;if(O[t]===void 0&&typeof module<"u"&&module&&module.exports&&Pl(t))try{a=it._abbr,s=require,s("./locale/"+t),Ce(a)}catch{O[t]=null}return O[t]}function Ce(t,a){var s;return t&&(Q(a)?s=ye(t):s=Ra(t,a),s?it=s:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),it._abbr}function Ra(t,a){if(a!==null){var s,n=Vs;if(a.abbr=t,O[t]!=null)Ds("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."),n=O[t]._config;else if(a.parentLocale!=null)if(O[a.parentLocale]!=null)n=O[a.parentLocale]._config;else if(s=Et(a.parentLocale),s!=null)n=s._config;else return rt[a.parentLocale]||(rt[a.parentLocale]=[]),rt[a.parentLocale].push({name:t,config:a}),null;return O[t]=new ha(fa(n,a)),rt[t]&&rt[t].forEach(function(r){Ra(r.name,r.config)}),Ce(t),O[t]}else return delete O[t],null}function Tl(t,a){if(a!=null){var s,n,r=Vs;O[t]!=null&&O[t].parentLocale!=null?O[t].set(fa(O[t]._config,a)):(n=Et(t),n!=null&&(r=n._config),a=fa(r,a),n==null&&(a.abbr=t),s=new ha(a),s.parentLocale=O[t],O[t]=s),Ce(t)}else O[t]!=null&&(O[t].parentLocale!=null?(O[t]=O[t].parentLocale,t===Ce()&&Ce(t)):O[t]!=null&&delete O[t]);return O[t]}function ye(t){var a;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return it;if(!Z(t)){if(a=Et(t),a)return a;t=[t]}return Ll(t)}function jl(){return ma(O)}function Ua(t){var a,s=t._a;return s&&b(t).overflow===-2&&(a=s[he]<0||s[he]>11?he:s[ie]<1||s[ie]>Sa(s[L],s[he])?ie:s[$]<0||s[$]>24||s[$]===24&&(s[ee]!==0||s[me]!==0||s[Ae]!==0)?$: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<L||a>ie)&&(a=ie),b(t)._overflowWeeks&&a===-1&&(a=Ki),b(t)._overflowWeekday&&a===-1&&(a=Gi),b(t).overflow=a),t}var Ql=/^\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)?)?$/,ql=/^\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)?)?$/,Hl=/Z|[+-]\d\d(?::?\d\d)?/,Ft=[["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]],xa=[["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/]],Kl=/^\/?Date\((-?\d+)/i,Gl=/^(?:(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}))$/,Vl={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,n=t._i,r=Ql.exec(n)||ql.exec(n),i,d,f,p,w=Ft.length,B=xa.length;if(r){for(b(t).iso=!0,a=0,s=w;a<s;a++)if(Ft[a][1].exec(r[1])){d=Ft[a][0],i=Ft[a][2]!==!1;break}if(d==null){t._isValid=!1;return}if(r[3]){for(a=0,s=B;a<s;a++)if(xa[a][1].exec(r[3])){f=(r[2]||" ")+xa[a][0];break}if(f==null){t._isValid=!1;return}}if(!i&&f!=null){t._isValid=!1;return}if(r[4])if(Hl.exec(r[4]))p="Z";else{t._isValid=!1;return}t._f=d+(f||"")+(p||""),Da(t)}else t._isValid=!1}function Wl(t,a,s,n,r,i){var d=[zl(t),Ls.indexOf(a),parseInt(s,10),parseInt(n,10),parseInt(r,10)];return i&&d.push(parseInt(i,10)),d}function zl(t){var a=parseInt(t,10);return a<=49?2e3+a:a<=999?1900+a:a}function Xl(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Zl(t,a,s){if(t){var n=Hs.indexOf(t),r=new Date(a[0],a[1],a[2]).getDay();if(n!==r)return b(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function Jl(t,a,s){if(t)return Vl[t];if(a)return 0;var n=parseInt(s,10),r=n%100,i=(n-r)/100;return i*60+r}function Xs(t){var a=Gl.exec(Xl(t._i)),s;if(a){if(s=Wl(a[4],a[3],a[2],a[5],a[6],a[7]),!Zl(a[1],s,t))return;t._a=s,t._tzm=Jl(a[8],a[9],a[10]),t._d=st.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),b(t).rfc2822=!0}else t._isValid=!1}function eo(t){var a=Kl.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=V("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 Te(t,a,s){return t??a??s}function to(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,n=[],r,i,d;if(!t._d){for(r=to(t),t._w&&t._a[ie]==null&&t._a[he]==null&&ao(t),t._dayOfYear!=null&&(d=Te(t._a[L],r[L]),(t._dayOfYear>tt(d)||t._dayOfYear===0)&&(b(t)._overflowDayOfYear=!0),s=st(d,0,t._dayOfYear),t._a[he]=s.getUTCMonth(),t._a[ie]=s.getUTCDate()),a=0;a<3&&t._a[a]==null;++a)t._a[a]=n[a]=r[a];for(;a<7;a++)t._a[a]=n[a]=t._a[a]==null?a===2?1:0:t._a[a];t._a[$]===24&&t._a[ee]===0&&t._a[me]===0&&t._a[Ae]===0&&(t._nextDay=!0,t._a[$]=0),t._d=(t._useUTC?st:ol).apply(null,n),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[$]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(b(t).weekdayMismatch=!0)}}function ao(t){var a,s,n,r,i,d,f,p,w;a=t._w,a.GG!=null||a.W!=null||a.E!=null?(i=1,d=4,s=Te(a.GG,t._a[L],nt(A(),1,4).year),n=Te(a.W,1),r=Te(a.E,1),(r<1||r>7)&&(p=!0)):(i=t._locale._week.dow,d=t._locale._week.doy,w=nt(A(),i,d),s=Te(a.gg,t._a[L],w.year),n=Te(a.w,w.week),a.d!=null?(r=a.d,(r<0||r>6)&&(p=!0)):a.e!=null?(r=a.e+i,(a.e<0||a.e>6)&&(p=!0)):r=i),n<1||n>pe(s,i,d)?b(t)._overflowWeeks=!0:p!=null?b(t)._overflowWeekday=!0:(f=qs(s,n,r,i,d),t._a[L]=f.year,t._dayOfYear=f.dayOfYear)}y.ISO_8601=function(){},y.RFC_2822=function(){};function Da(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,n,r,i,d,f=a.length,p=0,w,B;for(r=As(t._f,t._locale).match(pa)||[],B=r.length,s=0;s<B;s++)i=r[s],n=(a.match(Qi(i,t))||[])[0],n&&(d=a.substr(0,a.indexOf(n)),d.length>0&&b(t).unusedInput.push(d),a=a.slice(a.indexOf(n)+n.length),p+=n.length),Ie[i]?(n?b(t).empty=!1:b(t).unusedTokens.push(i),Hi(i,n,t)):t._strict&&!n&&b(t).unusedTokens.push(i);b(t).charsLeftOver=f-p,a.length>0&&b(t).unusedInput.push(a),t._a[$]<=12&&b(t).bigHour===!0&&t._a[$]>0&&(b(t).bigHour=void 0),b(t).parsedDateParts=t._a.slice(0),b(t).meridiem=t._meridiem,t._a[$]=so(t._locale,t._a[$],t._meridiem),w=b(t).era,w!==null&&(t._a[L]=t._locale.erasConvertYear(w,t._a[L])),Ba(t),Ua(t)}function so(t,a,s){var n;return s==null?a:t.meridiemHour!=null?t.meridiemHour(a,s):(t.isPM!=null&&(n=t.isPM(s),n&&a<12&&(a+=12),!n&&a===12&&(a=0)),a)}function no(t){var a,s,n,r,i,d,f=!1,p=t._f.length;if(p===0){b(t).invalidFormat=!0,t._d=new Date(NaN);return}for(r=0;r<p;r++)i=0,d=!1,a=ua({},t),t._useUTC!=null&&(a._useUTC=t._useUTC),a._f=t._f[r],Da(a),da(a)&&(d=!0),i+=b(a).charsLeftOver,i+=b(a).unusedTokens.length*10,b(a).score=i,f?i<n&&(n=i,s=a):(n==null||i<n||d)&&(n=i,s=a,d&&(f=!0));ke(t,s||a)}function ro(t){if(!t._d){var a=ga(t._i),s=a.day===void 0?a.date:a.day;t._a=Rs([a.year,a.month,s,a.hour,a.minute,a.second,a.millisecond],function(n){return n&&parseInt(n,10)}),Ba(t)}}function io(t){var a=new Ze(Ua(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||ye(t._l),a===null||s===void 0&&a===""?kt({nullInput:!0}):(typeof a=="string"&&(t._i=a=t._locale.preparse(a)),J(a)?new Ze(Ua(a)):(Xe(a)?t._d=a:Z(s)?no(t):s?Da(t):lo(t),da(t)||(t._d=null),t))}function lo(t){var a=t._i;Q(a)?t._d=new Date(y.now()):Xe(a)?t._d=new Date(a.valueOf()):typeof a=="string"?eo(t):Z(a)?(t._a=Rs(a.slice(0),function(s){return parseInt(s,10)}),Ba(t)):De(a)?ro(t):ue(a)?t._d=new Date(a):y.createFromInputFallback(t)}function Js(t,a,s,n,r){var i={};return(a===!0||a===!1)&&(n=a,a=void 0),(s===!0||s===!1)&&(n=s,s=void 0),(De(t)&&la(t)||Z(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=s,i._i=t,i._f=a,i._strict=n,io(i)}function A(t,a,s,n){return Js(t,a,s,n,!1)}var oo=V("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:kt()}),co=V("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:kt()});function en(t,a){var s,n;if(a.length===1&&Z(a[0])&&(a=a[0]),!a.length)return A();for(s=a[0],n=1;n<a.length;++n)(!a[n].isValid()||a[n][t](s))&&(s=a[n]);return s}function uo(){var t=[].slice.call(arguments,0);return en("isBefore",t)}function fo(){var t=[].slice.call(arguments,0);return en("isAfter",t)}var ho=function(){return Date.now?Date.now():+new Date},lt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function mo(t){var a,s=!1,n,r=lt.length;for(a in t)if(C(t,a)&&!(N.call(lt,a)!==-1&&(t[a]==null||!isNaN(t[a]))))return!1;for(n=0;n<r;++n)if(t[lt[n]]){if(s)return!1;parseFloat(t[lt[n]])!==S(t[lt[n]])&&(s=!0)}return!0}function po(){return this._isValid}function yo(){return te(NaN)}function It(t){var a=ga(t),s=a.year||0,n=a.quarter||0,r=a.month||0,i=a.week||a.isoWeek||0,d=a.day||0,f=a.hour||0,p=a.minute||0,w=a.second||0,B=a.millisecond||0;this._isValid=mo(a),this._milliseconds=+B+w*1e3+p*6e4+f*1e3*60*60,this._days=+d+i*7,this._months=+r+n*3+s*12,this._data={},this._locale=ye(),this._bubble()}function Yt(t){return t instanceof It}function Aa(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function go(t,a,s){var n=Math.min(t.length,a.length),r=Math.abs(t.length-a.length),i=0,d;for(d=0;d<n;d++)S(t[d])!==S(a[d])&&i++;return i+r}function tn(t,a){_(t,0,0,function(){var s=this.utcOffset(),n="+";return s<0&&(s=-s,n="-"),n+re(~~(s/60),2)+a+re(~~s%60,2)})}tn("Z",":"),tn("ZZ",""),g("Z",At),g("ZZ",At),x(["Z","ZZ"],function(t,a,s){s._useUTC=!0,s._tzm=Oa(At,t)});var _o=/([\+\-]|\d\d)/gi;function Oa(t,a){var s=(a||"").match(t),n,r,i;return s===null?null:(n=s[s.length-1]||[],r=(n+"").match(_o)||["-",0,0],i=+(r[1]*60)+S(r[2]),i===0?0:r[0]==="+"?i:-i)}function Na(t,a){var s,n;return a._isUTC?(s=a.clone(),n=(J(t)||Xe(t)?t.valueOf():A(t).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+n),y.updateOffset(s,!1),s):A(t).local()}function $a(t){return-Math.round(t._d.getTimezoneOffset())}y.updateOffset=function(){};function wo(t,a,s){var n=this._offset||0,r;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=Oa(At,t),t===null)return this}else Math.abs(t)<16&&!s&&(t=t*60);return!this._isUTC&&a&&(r=$a(this)),this._offset=t,this._isUTC=!0,r!=null&&this.add(r,"m"),n!==t&&(!a||this._changeInProgress?rn(this,te(t-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:$a(this)}function bo(t,a){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,a),this):-this.utcOffset()}function vo(t){return this.utcOffset(0,t)}function So(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract($a(this),"m")),this}function Mo(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=Oa(Ti,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function ko(t){return this.isValid()?(t=t?A(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function Co(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ro(){if(!Q(this._isDSTShifted))return this._isDSTShifted;var t={},a;return ua(t,this),t=Zs(t),t._a?(a=t._isUTC?se(t._a):A(t._a),this._isDSTShifted=this.isValid()&&go(t._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Uo(){return this.isValid()?!this._isUTC:!1}function xo(){return this.isValid()?this._isUTC:!1}function an(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Bo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Do=/^(-|\+)?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,n=null,r,i,d;return Yt(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:ue(t)||!isNaN(+t)?(s={},a?s[a]=+t:s.milliseconds=+t):(n=Bo.exec(t))?(r=n[1]==="-"?-1:1,s={y:0,d:S(n[ie])*r,h:S(n[$])*r,m:S(n[ee])*r,s:S(n[me])*r,ms:S(Aa(n[Ae]*1e3))*r}):(n=Do.exec(t))?(r=n[1]==="-"?-1:1,s={y:Oe(n[2],r),M:Oe(n[3],r),w:Oe(n[4],r),d:Oe(n[5],r),h:Oe(n[6],r),m:Oe(n[7],r),s:Oe(n[8],r)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(d=Ao(A(s.from),A(s.to)),s={},s.ms=d.milliseconds,s.M=d.months),i=new It(s),Yt(t)&&C(t,"_locale")&&(i._locale=t._locale),Yt(t)&&C(t,"_isValid")&&(i._isValid=t._isValid),i}te.fn=It.prototype,te.invalid=yo;function Oe(t,a){var s=t&&parseFloat(t.replace(",","."));return(isNaN(s)?0:s)*a}function sn(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 Ao(t,a){var s;return t.isValid()&&a.isValid()?(a=Na(a,t),t.isBefore(a)?s=sn(t,a):(s=sn(a,t),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function nn(t,a){return function(s,n){var r,i;return n!==null&&!isNaN(+n)&&(Ds(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=n,n=i),r=te(s,n),rn(this,r,t),this}}function rn(t,a,s,n){var r=a._milliseconds,i=Aa(a._days),d=Aa(a._months);t.isValid()&&(n=n??!0,d&&Ts(t,at(t,"Month")+d*s),i&&Ys(t,"Date",at(t,"Date")+i*s),r&&t._d.setTime(t._d.valueOf()+r*s),n&&y.updateOffset(t,i||d))}var Oo=nn(1,"add"),No=nn(-1,"subtract");function ln(t){return typeof t=="string"||t instanceof String}function $o(t){return J(t)||Xe(t)||ln(t)||ue(t)||Fo(t)||Eo(t)||t===null||t===void 0}function Eo(t){var a=De(t)&&!la(t),s=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,i,d=n.length;for(r=0;r<d;r+=1)i=n[r],s=s||C(t,i);return a&&s}function Fo(t){var a=Z(t),s=!1;return a&&(s=t.filter(function(n){return!ue(n)&&ln(t)}).length===0),a&&s}function Io(t){var a=De(t)&&!la(t),s=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,i;for(r=0;r<n.length;r+=1)i=n[r],s=s||C(t,i);return a&&s}function Yo(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 Lo(t,a){arguments.length===1&&(arguments[0]?$o(arguments[0])?(t=arguments[0],a=void 0):Io(arguments[0])&&(a=arguments[0],t=void 0):(t=void 0,a=void 0));var s=t||A(),n=Na(s,this).startOf("day"),r=y.calendarFormat(this,n)||"sameElse",i=a&&(ne(a[r])?a[r].call(this,s):a[r]);return this.format(i||this.localeData().calendar(r,this,A(s)))}function Po(){return new Ze(this)}function To(t,a){var s=J(t)?t:A(t);return this.isValid()&&s.isValid()?(a=W(a)||"millisecond",a==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(a).valueOf()):!1}function jo(t,a){var s=J(t)?t:A(t);return this.isValid()&&s.isValid()?(a=W(a)||"millisecond",a==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(a).valueOf()<s.valueOf()):!1}function Qo(t,a,s,n){var r=J(t)?t:A(t),i=J(a)?a:A(a);return this.isValid()&&r.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(r,s):!this.isBefore(r,s))&&(n[1]===")"?this.isBefore(i,s):!this.isAfter(i,s))):!1}function qo(t,a){var s=J(t)?t:A(t),n;return this.isValid()&&s.isValid()?(a=W(a)||"millisecond",a==="millisecond"?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(a).valueOf()<=n&&n<=this.clone().endOf(a).valueOf())):!1}function Ho(t,a){return this.isSame(t,a)||this.isAfter(t,a)}function Ko(t,a){return this.isSame(t,a)||this.isBefore(t,a)}function Go(t,a,s){var n,r,i;if(!this.isValid())return NaN;if(n=Na(t,this),!n.isValid())return NaN;switch(r=(n.utcOffset()-this.utcOffset())*6e4,a=W(a),a){case"year":i=Lt(this,n)/12;break;case"month":i=Lt(this,n);break;case"quarter":i=Lt(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-r)/864e5;break;case"week":i=(this-n-r)/6048e5;break;default:i=this-n}return s?i:z(i)}function Lt(t,a){if(t.date()<a.date())return-Lt(a,t);var s=(a.year()-t.year())*12+(a.month()-t.month()),n=t.clone().add(s,"months"),r,i;return a-n<0?(r=t.clone().add(s-1,"months"),i=(a-n)/(n-r)):(r=t.clone().add(s+1,"months"),i=(a-n)/(r-n)),-(s+i)||0}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Vo(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Wo(t){if(!this.isValid())return null;var a=t!==!0,s=a?this.clone().utc():this;return s.year()<0||s.year()>9999?Rt(s,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ne(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Rt(s,"Z")):Rt(s,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function zo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",a="",s,n,r,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",a="Z"),s="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=a+'[")]',this.format(s+n+r+i)}function Xo(t){t||(t=this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var a=Rt(this,t);return this.localeData().postformat(a)}function Zo(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 Jo(t){return this.from(A(),t)}function ed(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 td(t){return this.to(A(),t)}function on(t){var a;return t===void 0?this._locale._abbr:(a=ye(t),a!=null&&(this._locale=a),this)}var dn=V("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 cn(){return this._locale}var Pt=1e3,je=60*Pt,Tt=60*je,un=(365*400+97)*24*Tt;function Qe(t,a){return(t%a+a)%a}function fn(t,a,s){return t<100&&t>=0?new Date(t+400,a,s)-un:new Date(t,a,s).valueOf()}function hn(t,a,s){return t<100&&t>=0?Date.UTC(t+400,a,s)-un:Date.UTC(t,a,s)}function ad(t){var a,s;if(t=W(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?hn:fn,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()*je),Tt);break;case"minute":a=this._d.valueOf(),a-=Qe(a,je);break;case"second":a=this._d.valueOf(),a-=Qe(a,Pt);break}return this._d.setTime(a),y.updateOffset(this,!0),this}function sd(t){var a,s;if(t=W(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?hn:fn,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+=Tt-Qe(a+(this._isUTC?0:this.utcOffset()*je),Tt)-1;break;case"minute":a=this._d.valueOf(),a+=je-Qe(a,je)-1;break;case"second":a=this._d.valueOf(),a+=Pt-Qe(a,Pt)-1;break}return this._d.setTime(a),y.updateOffset(this,!0),this}function nd(){return this._d.valueOf()-(this._offset||0)*6e4}function rd(){return Math.floor(this.valueOf()/1e3)}function id(){return new Date(this.valueOf())}function ld(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function od(){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 dd(){return this.isValid()?this.toISOString():null}function cd(){return da(this)}function ud(){return ke({},b(this))}function fd(){return b(this).overflow}function hd(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}_("N",0,0,"eraAbbr"),_("NN",0,0,"eraAbbr"),_("NNN",0,0,"eraAbbr"),_("NNNN",0,0,"eraName"),_("NNNNN",0,0,"eraNarrow"),_("y",["y",1],"yo","eraYear"),_("y",["yy",2],0,"eraYear"),_("y",["yyy",3],0,"eraYear"),_("y",["yyyy",4],0,"eraYear"),g("N",Ea),g("NN",Ea),g("NNN",Ea),g("NNNN",kd),g("NNNNN",Cd),x(["N","NN","NNN","NNNN","NNNNN"],function(t,a,s,n){var r=s._locale.erasParse(t,n,s._strict);r?b(s).era=r:b(s).invalidEra=t}),g("y",Ye),g("yy",Ye),g("yyy",Ye),g("yyyy",Ye),g("yo",Rd),x(["y","yy","yyy","yyyy"],L),x(["yo"],function(t,a,s,n){var r;s._locale._eraYearOrdinalRegex&&(r=t.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?a[L]=s._locale.eraYearOrdinalParse(t,r):a[L]=parseInt(t,10)});function md(t,a){var s,n,r,i=this._eras||ye("en")._eras;for(s=0,n=i.length;s<n;++s){switch(typeof i[s].since){case"string":r=y(i[s].since).startOf("day"),i[s].since=r.valueOf();break}switch(typeof i[s].until){case"undefined":i[s].until=1/0;break;case"string":r=y(i[s].until).startOf("day").valueOf(),i[s].until=r.valueOf();break}}return i}function pd(t,a,s){var n,r,i=this.eras(),d,f,p;for(t=t.toUpperCase(),n=0,r=i.length;n<r;++n)if(d=i[n].name.toUpperCase(),f=i[n].abbr.toUpperCase(),p=i[n].narrow.toUpperCase(),s)switch(a){case"N":case"NN":case"NNN":if(f===t)return i[n];break;case"NNNN":if(d===t)return i[n];break;case"NNNNN":if(p===t)return i[n];break}else if([d,f,p].indexOf(t)>=0)return i[n]}function yd(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 gd(){var t,a,s,n=this.localeData().eras();for(t=0,a=n.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),n[t].since<=s&&s<=n[t].until||n[t].until<=s&&s<=n[t].since)return n[t].name;return""}function _d(){var t,a,s,n=this.localeData().eras();for(t=0,a=n.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),n[t].since<=s&&s<=n[t].until||n[t].until<=s&&s<=n[t].since)return n[t].narrow;return""}function wd(){var t,a,s,n=this.localeData().eras();for(t=0,a=n.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),n[t].since<=s&&s<=n[t].until||n[t].until<=s&&s<=n[t].since)return n[t].abbr;return""}function bd(){var t,a,s,n,r=this.localeData().eras();for(t=0,a=r.length;t<a;++t)if(s=r[t].since<=r[t].until?1:-1,n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return(this.year()-y(r[t].since).year())*s+r[t].offset;return this.year()}function vd(t){return C(this,"_erasNameRegex")||Fa.call(this),t?this._erasNameRegex:this._erasRegex}function Sd(t){return C(this,"_erasAbbrRegex")||Fa.call(this),t?this._erasAbbrRegex:this._erasRegex}function Md(t){return C(this,"_erasNarrowRegex")||Fa.call(this),t?this._erasNarrowRegex:this._erasRegex}function Ea(t,a){return a.erasAbbrRegex(t)}function kd(t,a){return a.erasNameRegex(t)}function Cd(t,a){return a.erasNarrowRegex(t)}function Rd(t,a){return a._eraYearOrdinalRegex||Ye}function Fa(){var t=[],a=[],s=[],n=[],r,i,d,f,p,w=this.eras();for(r=0,i=w.length;r<i;++r)d=fe(w[r].name),f=fe(w[r].abbr),p=fe(w[r].narrow),a.push(d),t.push(f),s.push(p),n.push(d),n.push(f),n.push(p);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}_(0,["gg",2],0,function(){return this.weekYear()%100}),_(0,["GG",2],0,function(){return this.isoWeekYear()%100});function jt(t,a){_(0,[t,t.length],0,a)}jt("gggg","weekYear"),jt("ggggg","weekYear"),jt("GGGG","isoWeekYear"),jt("GGGGG","isoWeekYear"),g("G",Dt),g("g",Dt),g("GG",D,H),g("gg",D,H),g("GGGG",wa,_a),g("gggg",wa,_a),g("GGGGG",Bt,Ut),g("ggggg",Bt,Ut),et(["gggg","ggggg","GGGG","GGGGG"],function(t,a,s,n){a[n.substr(0,2)]=S(t)}),et(["gg","GG"],function(t,a,s,n){a[n]=y.parseTwoDigitYear(t)});function Ud(t){return mn.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function xd(t){return mn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Bd(){return pe(this.year(),1,4)}function Dd(){return pe(this.isoWeekYear(),1,4)}function Ad(){var t=this.localeData()._week;return pe(this.year(),t.dow,t.doy)}function Od(){var t=this.localeData()._week;return pe(this.weekYear(),t.dow,t.doy)}function mn(t,a,s,n,r){var i;return t==null?nt(this,n,r).year:(i=pe(t,n,r),a>i&&(a=i),Nd.call(this,t,a,s,n,r))}function Nd(t,a,s,n,r){var i=qs(t,a,s,n,r),d=st(i.year,0,i.dayOfYear);return this.year(d.getUTCFullYear()),this.month(d.getUTCMonth()),this.date(d.getUTCDate()),this}_("Q",0,"Qo","quarter"),g("Q",Ns),x("Q",function(t,a){a[he]=(S(t)-1)*3});function $d(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}_("D",["DD",2],"Do","date"),g("D",D,Le),g("DD",D,H),g("Do",function(t,a){return t?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient}),x(["D","DD"],ie),x("Do",function(t,a){a[ie]=S(t.match(D)[0])});var pn=Pe("Date",!0);_("DDD",["DDDD",3],"DDDo","dayOfYear"),g("DDD",xt),g("DDDD",$s),x(["DDD","DDDD"],function(t,a,s){s._dayOfYear=S(t)});function Ed(t){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?a:this.add(t-a,"d")}_("m",["mm",2],0,"minute"),g("m",D,ba),g("mm",D,H),x(["m","mm"],ee);var Fd=Pe("Minutes",!1);_("s",["ss",2],0,"second"),g("s",D,ba),g("ss",D,H),x(["s","ss"],me);var Id=Pe("Seconds",!1);_("S",0,0,function(){return~~(this.millisecond()/100)}),_(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_(0,["SSS",3],0,"millisecond"),_(0,["SSSS",4],0,function(){return this.millisecond()*10}),_(0,["SSSSS",5],0,function(){return this.millisecond()*100}),_(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),_(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),_(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),_(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),g("S",xt,Ns),g("SS",xt,H),g("SSS",xt,$s);var Re,yn;for(Re="SSSS";Re.length<=9;Re+="S")g(Re,Ye);function Yd(t,a){a[Ae]=S(("0."+t)*1e3)}for(Re="S";Re.length<=9;Re+="S")x(Re,Yd);yn=Pe("Milliseconds",!1),_("z",0,0,"zoneAbbr"),_("zz",0,0,"zoneName");function Ld(){return this._isUTC?"UTC":""}function Pd(){return this._isUTC?"Coordinated Universal Time":""}var m=Ze.prototype;m.add=Oo,m.calendar=Lo,m.clone=Po,m.diff=Go,m.endOf=sd,m.format=Xo,m.from=Zo,m.fromNow=Jo,m.to=ed,m.toNow=td,m.get=Wi,m.invalidAt=fd,m.isAfter=To,m.isBefore=jo,m.isBetween=Qo,m.isSame=qo,m.isSameOrAfter=Ho,m.isSameOrBefore=Ko,m.isValid=cd,m.lang=dn,m.locale=on,m.localeData=cn,m.max=co,m.min=oo,m.parsingFlags=ud,m.set=zi,m.startOf=ad,m.subtract=No,m.toArray=ld,m.toObject=od,m.toDate=id,m.toISOString=Wo,m.inspect=zo,typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),m.toJSON=dd,m.toString=Vo,m.unix=rd,m.valueOf=nd,m.creationData=hd,m.eraName=gd,m.eraNarrow=_d,m.eraAbbr=wd,m.eraYear=bd,m.year=Is,m.isLeapYear=Vi,m.weekYear=Ud,m.isoWeekYear=xd,m.quarter=m.quarters=$d,m.month=js,m.daysInMonth=rl,m.week=m.weeks=hl,m.isoWeek=m.isoWeeks=ml,m.weeksInYear=Ad,m.weeksInWeekYear=Od,m.isoWeeksInYear=Bd,m.isoWeeksInISOWeekYear=Dd,m.date=pn,m.day=m.days=Ul,m.weekday=xl,m.isoWeekday=Bl,m.dayOfYear=Ed,m.hour=m.hours=Fl,m.minute=m.minutes=Fd,m.second=m.seconds=Id,m.millisecond=m.milliseconds=yn,m.utcOffset=wo,m.utc=vo,m.local=So,m.parseZone=Mo,m.hasAlignedHourOffset=ko,m.isDST=Co,m.isLocal=Uo,m.isUtcOffset=xo,m.isUtc=an,m.isUTC=an,m.zoneAbbr=Ld,m.zoneName=Pd,m.dates=V("dates accessor is deprecated. Use date instead.",pn),m.months=V("months accessor is deprecated. Use month instead",js),m.years=V("years accessor is deprecated. Use year instead",Is),m.zone=V("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",bo),m.isDSTShifted=V("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ro);function Td(t){return A(t*1e3)}function jd(){return A.apply(null,arguments).parseZone()}function gn(t){return t}var R=ha.prototype;R.calendar=Ri,R.longDateFormat=Di,R.invalidDate=Oi,R.ordinal=Ei,R.preparse=gn,R.postformat=gn,R.relativeTime=Ii,R.pastFuture=Yi,R.set=ki,R.eras=md,R.erasParse=pd,R.erasConvertYear=yd,R.erasAbbrRegex=Sd,R.erasNameRegex=vd,R.erasNarrowRegex=Md,R.months=tl,R.monthsShort=al,R.monthsParse=nl,R.monthsRegex=ll,R.monthsShortRegex=il,R.week=dl,R.firstDayOfYear=fl,R.firstDayOfWeek=ul,R.weekdays=Sl,R.weekdaysMin=kl,R.weekdaysShort=Ml,R.weekdaysParse=Rl,R.weekdaysRegex=Dl,R.weekdaysShortRegex=Al,R.weekdaysMinRegex=Ol,R.isPM=$l,R.meridiem=Il;function Qt(t,a,s,n){var r=ye(),i=se().set(n,a);return r[s](i,t)}function _n(t,a,s){if(ue(t)&&(a=t,t=void 0),t=t||"",a!=null)return Qt(t,a,s,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Qt(t,n,s,"month");return r}function Ia(t,a,s,n){typeof t=="boolean"?(ue(a)&&(s=a,a=void 0),a=a||""):(a=t,s=a,t=!1,ue(a)&&(s=a,a=void 0),a=a||"");var r=ye(),i=t?r._week.dow:0,d,f=[];if(s!=null)return Qt(a,(s+i)%7,n,"day");for(d=0;d<7;d++)f[d]=Qt(a,(d+i)%7,n,"day");return f}function Qd(t,a){return _n(t,a,"months")}function qd(t,a){return _n(t,a,"monthsShort")}function Hd(t,a,s){return Ia(t,a,s,"weekdays")}function Kd(t,a,s){return Ia(t,a,s,"weekdaysShort")}function Gd(t,a,s){return Ia(t,a,s,"weekdaysMin")}Ce("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=S(t%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return t+s}}),y.lang=V("moment.lang is deprecated. Use moment.locale instead.",Ce),y.langData=V("moment.langData is deprecated. Use moment.localeData instead.",ye);var ge=Math.abs;function Vd(){var t=this._data;return this._milliseconds=ge(this._milliseconds),this._days=ge(this._days),this._months=ge(this._months),t.milliseconds=ge(t.milliseconds),t.seconds=ge(t.seconds),t.minutes=ge(t.minutes),t.hours=ge(t.hours),t.months=ge(t.months),t.years=ge(t.years),this}function wn(t,a,s,n){var r=te(a,s);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Wd(t,a){return wn(this,t,a,1)}function zd(t,a){return wn(this,t,a,-1)}function bn(t){return t<0?Math.floor(t):Math.ceil(t)}function Xd(){var t=this._milliseconds,a=this._days,s=this._months,n=this._data,r,i,d,f,p;return t>=0&&a>=0&&s>=0||t<=0&&a<=0&&s<=0||(t+=bn(Ya(s)+a)*864e5,a=0,s=0),n.milliseconds=t%1e3,r=z(t/1e3),n.seconds=r%60,i=z(r/60),n.minutes=i%60,d=z(i/60),n.hours=d%24,a+=z(d/24),p=z(vn(a)),s+=p,a-=bn(Ya(p)),f=z(s/12),s%=12,n.days=a,n.months=s,n.years=f,this}function vn(t){return t*4800/146097}function Ya(t){return t*146097/4800}function Zd(t){if(!this.isValid())return NaN;var a,s,n=this._milliseconds;if(t=W(t),t==="month"||t==="quarter"||t==="year")switch(a=this._days+n/864e5,s=this._months+vn(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+n/6048e5;case"day":return a+n/864e5;case"hour":return a*24+n/36e5;case"minute":return a*1440+n/6e4;case"second":return a*86400+n/1e3;case"millisecond":return Math.floor(a*864e5)+n;default:throw new Error("Unknown unit "+t)}}function _e(t){return function(){return this.as(t)}}var Sn=_e("ms"),Jd=_e("s"),ec=_e("m"),tc=_e("h"),ac=_e("d"),sc=_e("w"),nc=_e("M"),rc=_e("Q"),ic=_e("y"),lc=Sn;function oc(){return te(this)}function dc(t){return t=W(t),this.isValid()?this[t+"s"]():NaN}function Ne(t){return function(){return this.isValid()?this._data[t]:NaN}}var cc=Ne("milliseconds"),uc=Ne("seconds"),fc=Ne("minutes"),hc=Ne("hours"),mc=Ne("days"),pc=Ne("months"),yc=Ne("years");function gc(){return z(this.days()/7)}var we=Math.round,qe={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function _c(t,a,s,n,r){return r.relativeTime(a||1,!!s,t,n)}function wc(t,a,s,n){var r=te(t).abs(),i=we(r.as("s")),d=we(r.as("m")),f=we(r.as("h")),p=we(r.as("d")),w=we(r.as("M")),B=we(r.as("w")),I=we(r.as("y")),q=i<=s.ss&&["s",i]||i<s.s&&["ss",i]||d<=1&&["m"]||d<s.m&&["mm",d]||f<=1&&["h"]||f<s.h&&["hh",f]||p<=1&&["d"]||p<s.d&&["dd",p];return s.w!=null&&(q=q||B<=1&&["w"]||B<s.w&&["ww",B]),q=q||w<=1&&["M"]||w<s.M&&["MM",w]||I<=1&&["y"]||["yy",I],q[2]=a,q[3]=+t>0,q[4]=n,_c.apply(null,q)}function bc(t){return t===void 0?we:typeof t=="function"?(we=t,!0):!1}function vc(t,a){return qe[t]===void 0?!1:a===void 0?qe[t]:(qe[t]=a,t==="s"&&(qe.ss=a-1),!0)}function Sc(t,a){if(!this.isValid())return this.localeData().invalidDate();var s=!1,n=qe,r,i;return typeof t=="object"&&(a=t,t=!1),typeof t=="boolean"&&(s=t),typeof a=="object"&&(n=Object.assign({},qe,a),a.s!=null&&a.ss==null&&(n.ss=a.s-1)),r=this.localeData(),i=wc(this,!s,n,r),s&&(i=r.pastFuture(+this,i)),r.postformat(i)}var La=Math.abs;function He(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),n,r,i,d,f=this.asSeconds(),p,w,B,I;return f?(n=z(t/60),r=z(n/60),t%=60,n%=60,i=z(s/12),s%=12,d=t?t.toFixed(3).replace(/\.?0+$/,""):"",p=f<0?"-":"",w=He(this._months)!==He(f)?"-":"",B=He(this._days)!==He(f)?"-":"",I=He(this._milliseconds)!==He(f)?"-":"",p+"P"+(i?w+i+"Y":"")+(s?w+s+"M":"")+(a?B+a+"D":"")+(r||n||t?"T":"")+(r?I+r+"H":"")+(n?I+n+"M":"")+(t?I+d+"S":"")):"P0D"}var M=It.prototype;M.isValid=po,M.abs=Vd,M.add=Wd,M.subtract=zd,M.as=Zd,M.asMilliseconds=Sn,M.asSeconds=Jd,M.asMinutes=ec,M.asHours=tc,M.asDays=ac,M.asWeeks=sc,M.asMonths=nc,M.asQuarters=rc,M.asYears=ic,M.valueOf=lc,M._bubble=Xd,M.clone=oc,M.get=dc,M.milliseconds=cc,M.seconds=uc,M.minutes=fc,M.hours=hc,M.days=mc,M.weeks=gc,M.months=pc,M.years=yc,M.humanize=Sc,M.toISOString=qt,M.toString=qt,M.toJSON=qt,M.locale=on,M.localeData=cn,M.toIsoString=V("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qt),M.lang=dn,_("X",0,0,"unix"),_("x",0,0,"valueOf"),g("x",Dt),g("X",ji),x("X",function(t,a,s){s._d=new Date(parseFloat(t)*1e3)}),x("x",function(t,a,s){s._d=new Date(S(t))});//! moment.js
|
|
10
|
-
y.version="2.30.1",Si(A),y.fn=m,y.min=uo,y.max=fo,y.now=ho,y.utc=se,y.unix=Td,y.months=Qd,y.isDate=Xe,y.locale=Ce,y.invalid=kt,y.duration=te,y.isMoment=J,y.weekdays=Hd,y.parseZone=jd,y.localeData=ye,y.isDuration=Yt,y.monthsShort=qd,y.weekdaysMin=Gd,y.defineLocale=Ra,y.updateLocale=Tl,y.locales=jl,y.weekdaysShort=Kd,y.normalizeUnits=W,y.relativeTimeRounding=bc,y.relativeTimeThreshold=vc,y.calendarFormat=Yo,y.prototype=m,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 Mc=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,kc=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Mn=/(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,Pa=[/^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],Cc={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:Mn,monthsShortRegex:Mn,monthsStrictRegex:Mc,monthsShortStrictRegex:kc,monthsParse:Pa,longMonthsParse:Pa,shortMonthsParse:Pa,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",Cc);const be=(t,a,s=!0)=>(s?t.getFullYear()===a.getFullYear():!0)&&t.getMonth()===a.getMonth()&&t.getDate()===a.getDate(),Ta=()=>y().locale("fr").subtract(1,"days").toDate(),$e=t=>new Date>t,kn=t=>typeof t=="function",ja=(t,a,s)=>{const n={...t},r=Object.entries(t);for(const[i,d]of r){const f=a[i];f?n[i]=s(d,f):n[i]=d}return n},Qa=t=>Object.entries(t),Cn=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}},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}});Cn.index({"meta.xp":-1});const Ht=((Qr=h.models)==null?void 0:Qr.Settings)||h.model("Settings",Cn),P=async(t,a,s=!1)=>{await Ht.updateOne({guildId:t},a,{upsert:s})},Rc=Object.freeze(Object.defineProperty({__proto__:null,addCrewChannelId:async(t,a,s)=>{await P(t,{$push:{"crew.crewChannelIds":{channelId:s,crewId:a}}})},randomizeEditoPrice:async t=>{const a=Ms(100,1001);return await P(t,{$set:{"edito.price":a}}),a},sentAtMidnight:async(t,a)=>{await P(t,{$set:{"edito.sentAtMidnight ":a}})},setCrewInfoChannelId:async(t,a)=>{await P(t,{$set:{"crew.infoChannelId":a}})},setDiscussionChannelId:async(t,a)=>{await P(t,{$set:{discussionChannelId:a}})},setEditoChannel:async(t,a)=>{await P(t,{$set:{"edito.channelId":a}})},setEditoMessageId:async(t,a)=>{await P(t,{$set:{"edito.messageId ":a}})},setFactionChannel:async(t,a)=>{await P(t,{$set:{factionChannelId:a}})},setQuestChannelId:async(t,a)=>{await P(t,{$set:{questFallbackChannelId:a}})},setRankingChannel:async(t,a)=>{await P(t,{$set:{"ranking.channelId":a}})},setRankingMessage:async(t,a)=>{await P(t,{$set:{"ranking.messageId":a}})},setReportBugChannelId:async(t,a)=>{await P(t,{$set:{reportBugChannelId:a}})},setReportChannel:async(t,a)=>{await P(t,{$set:{reportChannelId:a}})},setReportModeratorChannel:async(t,a)=>{await P(t,{$set:{reportModeratorChannelId:a}})},setShopChannelId:async(t,a,s)=>{await P(t,{$set:{shopChannelId:a,blackMarketChannelId:s}})},setSuggestionChannel:async(t,a)=>{await P(t,{$set:{suggestionChannelId:a}})}},Symbol.toStringTag,{value:"Module"})),Rn=async t=>await Ht.create({guildId:t}),Uc=async(t,a={})=>{const s=await Ht.findOne({guildId:t},a);return s||Rn(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 Wn(a,-1*this.price*s),await Kn(a,this.price*s)):await xe(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 Un extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ur(a,this.data.background.id)}isBackground(){return!0}}class xn extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isBoostXp(){return!0}}class Bn extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isChest(){return!0}}class Dn extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isObject(){return!0}}class An extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ls(a,vi({stop:s}).map(()=>v.seedEquipment({...this.data},Date.now()-Math.round(Math.random()*1e3))))}isEquipment(){return!0}}class On extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isBottle(){return!0}}class Nn extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isRepair(){return!0}}class $n extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isStore(){return!0}}class En extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await hs(a,this.data.title.name)}isTitle(){return!0}}const Fn=(t,a)=>{const s=t.items.find(n=>n.entityId===a);if(s){const{name:n,price:r,size:i,currency:d}=s,f=v.findEntity(s.entityId);if(v.isBackgroundItem(f))return new Un({name:n,price:r,item:f,size:i,currency:d});if(v.isTitleItem(f))return new En({name:n,price:r,item:f,size:i,currency:d});if(v.isChestItem(f))return new Bn({name:n,price:r,item:f,size:i,currency:d});if(v.isBoostItem(f))return new xn({name:n,price:r,item:f,size:i,currency:d});if(v.isRepairItem(f))return new Nn({name:n,price:r,item:f,size:i,currency:d});if(v.isStoreItem(f))return new $n({name:n,price:r,item:f,size:i,currency:d});if(v.isObjectItem(f))return new Dn({name:n,price:r,item:f,size:i,currency:d});if(v.isEquipment(f))return new An({name:n,price:r,item:f,size:i,currency:d});if(v.isBottleItem(f))return new On({name:n,price:r,size:i,item:f,currency:d})}},xc=Object.freeze(Object.defineProperty({__proto__:null,getShopItem:Fn,getShopItemList:t=>{const a=[];for(const{entityId:s}of t.items){const n=Fn(t,s);n&&a.push(n)}return a}},Symbol.toStringTag,{value:"Module"})),In=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});In.index({shopType:1});const Kt=((qr=h.models)==null?void 0:qr.Shop)||h.model("Shop",In),Bc=async(t,a)=>{await Yn({shopType:t},a,!0)},qa=async(t,a)=>{await Yn({_id:t},a,!0)},Yn=async(t,a,s=!1)=>{await Kt.updateOne(t,a,{upsert:s})},Dc=Object.freeze(Object.defineProperty({__proto__:null,buyShopItem:async(t,a,s,n)=>{const r=a.map(i=>(i.name===s.name&&i.size&&(i.size-=n),i));await qa(t,{$set:{items:r}})},publish:async t=>{await qa(t,{$set:{publishedAt:new Date}})},setShopItems:async(t,a)=>{await Bc(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"})),Ac=t=>Kt.create({shopType:t}),Oc=async(t,a={})=>{const s=await Ln({shopType:t},a);return s||await Ac(t)},Ln=(t,a={})=>Kt.findOne(t,a),Nc=Object.freeze(Object.defineProperty({__proto__:null,getCommandCooldown:(t,a)=>t.commands[a],getRaidCooldown:(t,a)=>t.raid[a]},Symbol.toStringTag,{value:"Module"})),Ha=new h.Schema({user:{type:h.Schema.Types.ObjectId,ref:"User",required:!0},date:Date,type:String},{minimize:!1});Ha.index({user:1}),Ha.index({date:-1});const Ee=((Hr=h.models)==null?void 0:Hr.Reminder)||h.model("Reminder",Ha),$c=Object.freeze(Object.defineProperty({__proto__:null,getAllPassedReminder:async()=>await Ee.find({date:{$lte:new Date}})},Symbol.toStringTag,{value:"Module"})),Ec=async(t,a)=>{await Ee.deleteOne({user:t,type:a})},Pn=async(t,a,s,n)=>{await Ee.updateOne({user:t,type:a},s,{upsert:n})},Ka=async(t,a,s)=>{await Pn(t,a,{$set:{date:s}},!0)},Ga=async(t,a,s)=>{await Pn(t,a,[{$set:{date:{$add:["$date",s]}}}],!1)},Fc=Object.freeze(Object.defineProperty({__proto__:null,addReminder:Ka,deleteSelectedReminders:async t=>{await Ee.deleteMany({_id:{$in:t}})},removeReminder:async(t,a)=>{await Ec(t,a)},updateReminderDate:Ga},Symbol.toStringTag,{value:"Module"})),Ic=async(t,a={})=>{const s=await Ee.findOne({user:t},a);return s||null},Yc=async(t,a,s)=>await Ee.create({user:t,date:a,type:s}),Lc=(t,a)=>{const s=ks(Object.values(t.equippedItems)),n=a.equipments.filter(r=>s.find(i=>i.id===r.id)).length;if(n===a.equipments.length)return a.fullBonus;if(n>=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 n of v.EQUIPMENT_SLOT){const r=(s=t.equippedItems)==null?void 0:s[n];r&&(a=ja(a,v.fromDBToEquipableEquipment(r).characteristics,(i,d)=>i+d))}for(const n of v.allPanoplies){const r=Lc(t,n);r&&!("target"in r)&&(a=ja(a,r,(i,d)=>i+d))}return a},Pc=Object.freeze(Object.defineProperty({__proto__:null,calcBottleMultiplier:(t,{buffs:a})=>{const s=v.getPanoplyBonus(t.equippedItems).find(([n,r])=>n.id==="herbalist"&&r!==null);return s&&s[1]==="full"?a.map(n=>({...n,multiplier:n.multiplier*1.25})):s&&s[1]==="half"?a.map(n=>({...n,multiplier:n.multiplier*1.1})):a},calcMinStreakForWorkLoot:t=>{const a=v.getPanoplyBonus(t.equippedItems).find(([s,n])=>s.id==="marine"&&n!==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=v.getPanoplyBonus(t.equippedItems).find(([n,r])=>n.id==="little_blacksmith"&&r!==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 n of a)if((t.itemList.get(n.itemId)||0)<n.size*s)return!1;return!0},hasEnoughTools:(t,a)=>(t.itemList.get("tools")||0)>=a,hasInventoryRequirements:(t,a)=>Qa(a).reduce((s,[n,r])=>s&&(t.itemList.get(n)??0)>=(r??0),!0),hasRevolutionaryBuff:t=>{const a=v.getPanoplyBonus(t.equippedItems).find(([s,n])=>s.id==="revolutionary"&&n!==null);return(a==null?void 0:a[1])??null},maxCraftQuantity:(t,a)=>{let s=1/0;for(const n of a)s=Math.min(s,Math.floor((t.itemList.get(n.itemId)||0)/n.size));return s}},Symbol.toStringTag,{value:"Module"})),Tc=Object.freeze(Object.defineProperty({__proto__:null,getEncyclopedia:t=>t.encyclopedia,hasFoundItem:(t,a)=>t.encyclopedia.includes(a)},Symbol.toStringTag,{value:"Module"})),Tn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},encyclopedia:{type:[String],default:[]}});Tn.index({user:1});const Gt=((Kr=h.models)==null?void 0:Kr.UserEncyclopedia)||h.model("UserEncyclopedia",Tn),jn=async(t,a)=>{await Gt.updateOne({user:t},a,{upsert:!0})},Vt=async(t,a)=>{await jn(t,{$addToSet:{encyclopedia:{$each:a}}})},jc=Object.freeze(Object.defineProperty({__proto__:null,addItem:Vt},Symbol.toStringTag,{value:"Module"})),Qn=async t=>await Gt.create({user:t}),Qc=async t=>{const a=await Gt.findOne({user:t});return a||await Qn(t)},qc=["crewUpdate","crewQuestUpdate","userMetaUpdate","userQuestMetaUpdate","userQuestUpdate","userInventoryUpdate","userOrnamentsUpdate","userDaily","crewDaily","userChristmasUpdate"],qn=new di.EventEmitter,le=(t,a,s)=>{qn.emit(t,a,s)},Hc=t=>{for(const a of qc)qn.on(a,(s,n)=>{t(a,s,n)})};class o{constructor(){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:n,_userMeta:r})=>{const i=s??await gs(a);if(this.isCompleted(i))return null;const d=r??await ct(a),f=n??await ir(a);return this.crew&&f?this.daily?await this.markCrewDailyAsCompleted(f.crew._id,i.user._id):(await this.markAsCompleted(i),await this.markCrewAsCompleted(f.crew._id)):await this.markAsCompleted(i),await this.specificQuestCompletion(i,f),await this.applyReward(i,d,f)});e(this,"getComputedRewards",(a,s)=>{const n=this.daily&&ms(s)?ps(s):1;return{xp:(kn(this.xp)?this.xp(a):this.xp)*n*(1+ds(a)),berry:(kn(this.berry)?this.berry(a):this.berry)*n}})}async applyReward(a,s,n){return this.title&&await hs(a.user._id,this.title.name),this.badge&&(this.crew&&n?await Er(n.crew._id,this.badge,this.rank.id):await fr(a.user._id,this.badge,this.rank.id)),this.isFactionBadge&&await hr(a.user._id,this.rank.id),this.asset&&await mr(a.user._id,this.asset),this.getComputedRewards(s,a)}async specificQuestCompletion(a,s){this.id==="daily_all"&&(await Sr(a.user._id,a.lastFullComplete),s&&await this.markCrewDailyAsCompleted(s.crew._id,a.user._id)),this.id==="be_level_10"&&await Br(a.user._id,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await Dr(a.user._id,!0),this.id==="crew_all_members_daily"&&s&&await rr(a.user._id)}isCompleted(a){return this.daily?gr(a,this.id):yr(a,this.id)}async markAsCompleted(a){this.daily?await vr(a.user._id,this.id):await br(a.user._id,this.id)}async markCrewAsCompleted(a){await Ir(a,this.id)}async markCrewDailyAsCompleted(a,s){await Yr(a,s.toHexString(),this.id)}}class Kc extends o{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 Gc extends o{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 Vc=Object.freeze(Object.defineProperty({__proto__:null,CrewCreateOrJoin:Kc,CrewValidateDaily:Gc},Symbol.toStringTag,{value:"Module"}));class Wc extends o{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 zc extends o{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 Xc extends o{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 Zc extends o{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 Jc extends o{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 Wa=Object.freeze(Object.defineProperty({__proto__:null,Almanax:Jc,DailyAnswer:Xc,DailyCheckProfile:Zc,DailyReadEdito:zc,DailySendMessage:Wc},Symbol.toStringTag,{value:"Module"}));class eu extends o{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 tu extends o{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 au extends o{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 su extends o{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 nu extends o{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 ru extends o{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,n)=>{var r,i;return Fr(s,"daily_all")&&!be(((i=(r=s.daily)==null?void 0:r[n.user._id.toHexString()])==null?void 0:i.crew_all_members_daily)??new Date(0),new Date)&&!be(n.lastAllMembersDaily,new Date)})}}class iu extends o{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 lu extends o{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 ou extends o{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 du extends o{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 cu extends o{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 za=Object.freeze(Object.defineProperty({__proto__:null,CrewAllMembersDaily:ru,CrewCarpenter1Month:tu,CrewCarpenter1Week:eu,CrewCarpenter1Year:nu,CrewCarpenter3Months:au,CrewCarpenter6Months:su,CrewVocal10:ou,CrewVocal12:du,CrewVocal15:cu,CrewVocal5:iu,CrewVocal7:lu},Symbol.toStringTag,{value:"Module"}));class uu extends o{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 fu extends o{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 hu extends o{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 mu extends o{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 pu extends o{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 yu extends o{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 gu extends o{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 _u extends o{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 wu extends o{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 bu extends o{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 vu extends o{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 Su extends o{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 Mu extends o{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 ku extends o{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 Cu extends o{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 Ru extends o{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 Uu extends o{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,n)=>s.stats[n.toHexString()]&&s.stats[n.toHexString()].xp>=5e4)}}class xu extends o{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,n)=>s.stats[n.toHexString()]&&s.stats[n.toHexString()].xp>=5e5)}}class Bu extends o{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,n)=>s.stats[n.toHexString()]&&s.stats[n.toHexString()].xp>=1e6)}}class Du extends o{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,n)=>s.stats[n.toHexString()]&&s.stats[n.toHexString()].xp>=5e6)}}class Au extends o{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,n)=>s.stats[n.toHexString()]&&s.stats[n.toHexString()].xp>=5e7)}}const Xa=Object.freeze(Object.defineProperty({__proto__:null,CrewBeLevel10:fu,CrewBeLevel100:yu,CrewBeLevel25:hu,CrewBeLevel50:mu,CrewBeLevel75:pu,CrewBreakShip:uu,CrewBring1mXp:Bu,CrewBring500kXp:xu,CrewBring50kXp:Uu,CrewBring50mXp:Au,CrewBring5mXp:Du,CrewHave100MBerry:gu,CrewHave1MdBerry:wu,CrewHave500MBerry:_u,CrewHave50MdBerry:vu,CrewHave5MdBerry:bu,CrewSize10:ku,CrewSize12:Cu,CrewSize15:Ru,CrewSize5:Su,CrewSize7:Mu},Symbol.toStringTag,{value:"Module"}));class Ou extends o{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 Nu extends o{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 $u extends o{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 Eu extends o{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 Fu extends o{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 Za=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:Fu,Have10Recipe:$u,Have1Recipe:Ou,Have25Recipe:Eu,Have5Recipe:Nu},Symbol.toStringTag,{value:"Module"}));class Iu extends o{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 Yu extends o{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 Lu extends o{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 Pu extends o{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 Tu extends o{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 ju extends o{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=25)}}class Qu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=50)}}class qu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=100)}}class Hu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=250)}}class Ku extends o{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=500)}}class Gu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=25)}}class Vu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=50)}}class Wu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=100)}}class zu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=250)}}class Xu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=500)}}class Zu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=25)}}class Ju extends o{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=50)}}class ef extends o{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=100)}}class tf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=250)}}class af extends o{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=500)}}class sf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=25)}}class nf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=50)}}class rf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=100)}}class lf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=250)}}class of extends o{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=500)}}class df extends o{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=25)}}class cf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=50)}}class uf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=100)}}class ff extends o{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=250)}}class hf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=500)}}class mf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=25)}}class pf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=50)}}class yf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=100)}}class gf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=250)}}class _f extends o{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=500)}}class wf extends o{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 bf extends o{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 vf extends o{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 Sf extends o{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 Mf extends o{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 kf extends o{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 Cf extends o{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 Rf extends o{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 Uf extends o{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 xf extends o{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 Bf extends o{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&&be(s.voice.lastConnection,new Date))}}const Ja=Object.freeze(Object.defineProperty({__proto__:null,BeLevel10:wf,BeLevel120:xf,BeLevel20:bf,BeLevel30:vf,BeLevel40:Sf,BeLevel50:Mf,BeLevel60:kf,BeLevel70:Cf,BeLevel80:Rf,BeLevel90:Uf,DailyVocal:Bf,Have100Agility:Wu,Have100Chance:rf,Have100Intelligence:ef,Have100Strength:qu,Have100Vitality:uf,Have100Wisdom:yf,Have250Agility:zu,Have250Chance:lf,Have250Intelligence:tf,Have250Strength:Hu,Have250Vitality:ff,Have250Wisdom:gf,Have25Agility:Gu,Have25Chance:sf,Have25Intelligence:Zu,Have25Strength:ju,Have25Vitality:df,Have25Wisdom:mf,Have500Agility:Xu,Have500Chance:of,Have500Intelligence:af,Have500Strength:Ku,Have500Vitality:hf,Have500Wisdom:_f,Have500kBerry:Iu,Have500mBerry:Pu,Have50Agility:Vu,Have50Chance:nf,Have50Intelligence:Ju,Have50Strength:Qu,Have50Vitality:cf,Have50Wisdom:pf,Have50mBerry:Lu,Have5mBerry:Yu,Have5mdBerry:Tu},Symbol.toStringTag,{value:"Module"}));class Df extends o{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(n=>n!=="default").length>=1)}}class Af extends o{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(n=>n!=="default").length>=25)}}class Of extends o{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(n=>n!=="default").length>=50)}}class Nf extends o{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 $f extends o{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 Ef extends o{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 es=Object.freeze(Object.defineProperty({__proto__:null,Have100Title:Ef,Have10Title:Nf,Have1Background:Df,Have25Background:Af,Have50Background:Of,Have50Title:$f},Symbol.toStringTag,{value:"Module"}));class Ff extends o{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 If extends o{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 Yf extends o{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 Lf extends o{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 Pf extends o{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 Tf extends o{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 jf extends o{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 Qf extends o{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 qf extends o{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 Hf extends o{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 Kf extends o{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 Gf extends o{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 Vf extends o{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 Wf extends o{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 zf extends o{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 Xf extends o{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 Zf extends o{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 Jf extends o{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 e0 extends o{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 t0 extends o{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 a0 extends o{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 s0 extends o{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 n0 extends o{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 r0 extends o{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 i0 extends o{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 l0 extends o{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 o0 extends o{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 d0 extends o{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 c0 extends o{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 u0 extends o{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 f0 extends o{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 h0 extends o{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 m0 extends o{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 p0 extends o{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 y0 extends o{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 g0 extends o{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 _0 extends o{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 w0 extends o{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 b0 extends o{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 v0 extends o{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 S0 extends o{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 M0 extends o{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 k0 extends o{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 C0 extends o{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 R0 extends o{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 U0 extends o{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 x0 extends o{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 B0 extends o{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 n=s.lastGames.slice(0,5);return n.length<5||ia(n,r=>r.gameType).length<5?!1:n.reduce((r,i)=>r+i.endState,0)===5})}}class D0 extends o{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 n=s.lastGames.slice(0,5);return n.length!==5||ia(n,r=>r.gameType).length<5?!1:n.reduce((r,i)=>r+i.endState,0)===-5})}}class A0 extends o{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 O0 extends o{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 N0 extends o{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 $0 extends o{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 E0 extends o{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 F0 extends o{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 I0 extends o{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 n=s.lastGames;if(n.length!==20)return!1;for(let r=0;r<n.length;r++)if(r%2===0&&n[r].endState!==1||r%2!==0&&n[r].endState!==-1)return!1;return!0})}}class Y0 extends o{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 L0 extends o{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 P0 extends o{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 T0 extends o{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 j0 extends o{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 Q0 extends o{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 q0 extends o{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 H0 extends o{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 K0 extends o{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 G0 extends o{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 V0 extends o{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 W0 extends o{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 z0 extends o{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 X0 extends o{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 Z0 extends o{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 J0 extends o{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 eh extends o{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 th extends o{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 ah extends o{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 sh extends o{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 nh extends o{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 rh extends o{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 ih extends o{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 lh extends o{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 oh extends o{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 dh extends o{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 ch extends o{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 uh extends o{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 fh extends o{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 hh extends o{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 mh extends o{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 ph extends o{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 yh extends o{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 gh extends o{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 _h extends o{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 wh extends o{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)}}const bh=async(t,a,s,{berry:n,xp:r})=>{const i=await gs(a).then(F=>F.populate("user","faction")),d=ps(i),f=wr(i,i.user.faction),{badge:p,isFactionBadge:w,title:B,rank:I,name:q,description:Hp,daily:sa,secret:Kp}=t;return s.Image().setImageName(`quest_success_${I.id}`).setDimensions(2080,636).draw(),p?s.Image().setImageName(u.progressiveBadgeTypeGuard(p)?`cropped_badge_${p.img}_${I.id}`:`cropped_badge_${p.img}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():w&&i.user.faction!=="citizen"?s.Image().setImageName(`cropped_badge_${i.user.faction}_${I.id}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():s.Image().setImageName(`badge_default_${I.id}`).setScale(2).setOrigin(j.CanvasOrigin.CENTER).setPosition(370,318).draw(),s.Text(sa?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(I.color).draw(),s.Text(q).setPosition(739,325).setOrigin(j.CanvasOrigin.BOTTOM_LEFT).setFont("poppins",q.length>=35?65-(q.length-35):65).draw(),s.Text(Kp?"Succès caché":Hp).setPosition(739,360).setFont("poppins_italic",35).draw(),s.Text(`Récompenses: ${St(n)}${sa&&d>1?` (+${St(n*(d-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(j.CanvasOrigin.LEFT).draw(n!==0).next((F,Y)=>j.nextAllToXAxis(F.Image(),Y)).setImageName("quest_berry").setDimensions(50,79).draw(n!==0).next((F,Y)=>j.nextAllToXAxis(F.Text(` / ${St(r)}${sa&&d>1?` (+${St(r*(d-1))})`:""} `),Y)).draw(r!==0).next((F,Y)=>j.nextAllToXAxis(F.Image(),Y)).setImageName("quest_xp").setDimensions(57,59).draw(r!==0).next((F,Y)=>j.nextAllToXAxis(F.Text(` combo x${d}`),Y)).draw(sa&&d>1).next((F,Y)=>j.nextAllToXAxis(F.Text(" et la possibilité "),Y)).draw(w&&i.user.faction==="citizen").next((F,Y)=>j.nextAllToXAxis(F.Text("de choisir ta faction"),Y)).setFont("poppins_bold",35).draw(w&&i.user.faction==="citizen").next((F,Y)=>j.nextAllToXAxis(F.Text(" et le titre "),Y)).setFont("poppins",35).draw(!!B||w&&i.user.faction!=="citizen").next((F,Y)=>j.nextAllToXAxis(F.Text((B==null?void 0:B.name)??""),Y)).setFont("poppins_bold",35).setColor((B==null?void 0:B.rank.color)??"white").draw(!!B).next((F,Y)=>j.nextAllToXAxis(F.Text((f==null?void 0:f.name)??""),Y)).setColor((f==null?void 0:f.rank.color)??"white").draw(w&&!!f),await s.encode("webp")},vh=10,Sh=1e7,Mh=100,kh=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"],Ch={adventurer_strap:"<:adventurer_strap:1253041086147068035>",adventurer_collar:"<:adventurer_collar:1253041084611690567>",adventurer_boots:"<:adventurer_boots:1253041083252867123>",adventurer_helmet:"<:Casque_cuir:1256965718432550953>",adventurer_weapon:"<:Dague_cuir:1256965714141515837>",adventurer_belt:"<:Ceinture_cuir:1256965593333108838>",herbalist_boots:"<:Sandales_de_lHerboriste:1307627799879749652>",herbalist_helmet:"<:Chapeau_de_lHerboriste:1307627803596034058>",herbalist_weapon:"<:Gant_de_lHerboriste:1307627802073239642>",herbalist_belt:"<:Ceinture_de_lHerboriste:1307627798260744212>",marine_collar:"<:marine_collar:1309899971662712892>",marine_helmet:"<:marine_helmet:1308766843736948756>",marine_ring:"<:marine_ring:1308766839823663184>",marine_strap:"<:marine_strap:1308766838032957520>",pirate_weapon:"<:pirate_weapon:1308766750497705984>",pirate_helmet:"<:pirate_helmet:1308766752171102252>",pirate_ring:"<:pirate_ring:1308766574081212506>",pirate_belt:"<:pirate_belt:1308766575259553792>",revolutionary_belt:"<:revolutionary_belt:1308766578967576576>",revolutionary_boots:"<:revolutionary_boots:1308766571535011861>",revolutionary_helmet:"<:revolutionary_helmet:1308766576736075867>",revolutionary_ring:"<:revolutionary_ring:1308766581089767424>",little_blacksmith_collar:"<:little_blacksmith_collar:1308814708714770593>",little_blacksmith_weapon:"<:little_blacksmith_weapon:1308814712397627483>",little_blacksmith_ring:"<:little_blacksmith_ring:1308814710803529739>",little_blacksmith_strap:"<:little_blacksmith_strap:1308814713752391700>",christmas_strap:"<:Bracelet_de_Noel:1302993337015341149>",christmas_collar:"<:Collier_de_Noel:1302993344720404601>",christmas_boots:"<:BottesdeNoel:1303006913130401802>",christmas_helmet:"<:Chapeau_de_Noel:1302993343051202701>",christmas_weapon:"<:Canne_de_Noel:1302993339666272266>",christmas_belt:"<:Ceinture_de_Noel:1302993340849066045>"},Rh={background:"<:background:1178465681809887334>",title:"<:title:1178465688915038208>",chest_1:"<:lootbox1:1186689926167810088>",chest_2:"<:lootbox2:1186258728882811051>",chest_3:"<:lootbox3:1243963722259501216>",chest_4:"<:lootbox3:1186259958216523786>",chest_blacksmith_1:"<:chest_blacksmith_1:1310090050146664498>",chest_blacksmith_2:"<:chest_blacksmith_2:1310090051371139092>",chest_blacksmith_3:"<:chest_blacksmith_3:1310090052839276554>",chest_christmas:"<:CoffredeNoel:1309501480621051934>",bottle_xp_1:"<:bottle_xp:1186204593667969035>",bottle_xp_2:"<:bottle_xp_2:1243980696083632208>",bottle_xp_3:"<:bottle_xp_3:1243980697773936740>",bottle_xp_4:"<:bottle_xp_4:1243980698927366256>",boost_week:"<:boost_week:1186258728073297971>",boost_day:"<:boost_day:1186258726030680145>",wood_plank:"<:Planchesdebois:1233782418478071930>",nail:"<:Clous:1233782384613261382>",glue:"<:Colle:1233782388497186846>",rope:"<:Corde:1233782392225927168>",repair_kit:"<:Kitderparation:1233782876223570011>",tissue:"<:Tissus:1233784184099573852>",lock:"<:Serrureclef:1233782436068982814>",iron:"<:Ferbrut:1233782399125426207>",clover:"<:Treflesixfeuilles:1233782439503990915> ",glass_bottle:"<:Fioleenverre:1233782402233532496>",pure_water:"<:Eaupure:1233782393572298802>",sea_salt:"<:SelMarin:1233784181696233602>",ebony_poppy:"<:Pavotebene:1233782416879915060>",rose:"<:Roseimmaculee:1233784180215644180>",poppy:"<:Coquelicotecarlate:1233782390099280023>",manganese:"<:Manganesescintillante:1233784177221042196>",cursed_hawthorn:"<:AubpineMaudite:1233782382872629329>",mugwort:"<:Armoiseblanche:1233782381400424519>",mandrake:"<:MandragoreAdulte:1233782409070247946>",obsidian:"<:Obsidiennesombre:1233784178307371110>",saffron:"<:Safranvermeille:1233782430385836124>",edelweiss:"<:Edelweiss:1233782395019329546>",emerald:"<:emeraude:1233782873165791273>",ruby:"<:Rubis:1233782426174619679>",sapphire:"<:Saphir:1233782432004837407>",siren_tear:"<:Larmedesirene:1233782405538517095>",compass:"<:Rosedesvents:1233782421892239360>",dragon_heart:"<:CoeurdeDragon:1233782386580258848>",fairy_wing:"<:Ailedefees:1233782379269722293>",phoenix_feather:"<:PlumedePhoenix:1233784783822127167>",mithril:"<:Mithril:1233782412434214974>",cereal:"<:craft_cereal:1243963641204703405>",cotton:"<:craft_cotton:1243963642567721080>",empty_box:"<:craft_empty_box:1243963643834535966>",enchanted_emerald:"<:craft_enchanted_emerald:1243963645092696105>",enchanted_ruby:"<:craft_enchanted_ruby:1243963647097569330>",enchanted_sapphire:"<:craft_enchanted_sapphire:1243963648486019082>",enchanted_stone:"<:craft_enchanted_stone:1243963650893545637>",flour:"<:craft_flour:1243963651719823451>",hemp:"<:craft_hemp:1243963653238030387>",scrap:"<:craft_scrap:1243963718895669268>",strange_gem:"<:craft_strange_gem:1243963656539078686>",strange_stone:"<:craft_strange_stone:1243963658766123192>",tools:"<:craft_tools:1243963720179122217>",wood:"<:craft_wood:1243963662763298897>",wine:"<:craft_wine:1249242713442746501>",toy:"<:craft_toy:1249242711907893278>",rhum:"<:craft_rhum:1249242707961057361>",milk:"<:craft_milk:1249242706501308488>",fruit:"<:craft_fruit:1249242705612115968>",sugar:"<:craft_sugar:1249242709684785184>",egg:"<:craft_egg:1249242703972007986>",omelet:"<:omelette:1288942044328493179>",cheese:"<:Fromage_Affine:1289695711398596761>",bread:"<:Pain_de_campagne:1289703440163016855>",strawberry_cake:"<:Fraisier:1289707903649058858>",bowl_cereal:"<:craft_bowl_cereal:1249242702462193686>",beer:"<:craft_beer:1249242701300240434>",bowl:"<:craft_bowl:1250116629275082873>",rudder:"<:craft_rudder:1250435943253540895>",rescue_boat:"<:craft_rescue_boat:1250435931635322950>",sailing_boat:"<:craft_sailing_boat:1250435942162894849>",salt_water:"<:craft_salt_water:1250435945216475317>",anchor:"<:craft_anchor:1250435934843834409>",hammock:"<:craft_hammock:1250435933300588687>",leather:"<:craft_leather:1253034980133834752>",ancient_key:"<:craft_ancient_key:1257447843355033742>",iron_ore:"<:craft_iron_ore:1257475847271612497>",map_fragment:"<:map_fragment:1281949667227205663>",scroll_agility:"<:scroll_agility:1254081331365810289>",scroll_chance:"<:scroll_chance:1254081332422639657>",scroll_intelligence:"<:scroll_intelligence:1254081334264070174>",scroll_strength:"<:scroll_strength:1254081335862099980>",scroll_vitality:"<:scroll_vitality:1254081337711919185>",scroll_wisdom:"<:scroll_wisdom:1254081340115259454>",elemental_concentrate_earth:"<:elemental_concentrate_earth:1269073512782499860>",elemental_concentrate_fire:"<:elemental_concentrate_fire:1269073513919156349>",elemental_concentrate_life:"<:elemental_concentrate_life:1269073515315728425>",elemental_concentrate_moon:"<:elemental_concentrate_moon:1269073517044039760>",elemental_concentrate_water:"<:elemental_concentrate_water:1269073518205599776>",elemental_concentrate_wind:"<:elemental_concentrate_wind:1269073510815367189>",essence_earth:"<:essence_earth:1269073149300052034>",essence_fire:"<:essence_fire:1269073150784700416>",essence_life:"<:essence_life:1269073151728287787>",essence_moon:"<:essence_moon:1269073153510998056>",essence_water:"<:essence_water:1269073154333081701>",essence_wind:"<:essence_wind:1269073156241625088>",empty_scroll:"<:empty_scroll:1269074077327298653>",enchant:{wood:"<:Bois_enchante:1302698738107682986>",cereal:"<:Cereale_enchantee:1302698739307253862>",hemp:"<:Chanvre_enchante:1302698741098086411>",poppy:"<:Coquelicot_ecarlate_enchante:1302698743597891744>",rope:"<:Corde_Enchantee:1302698745875661001>",cotton:"<:Coton_enchante:1302698771804721295>",leather:"<:Cuir_enchante:1302698774510174360>",pure_water:"<:Eau_pure_enchantee:1302698775965466654>",iron:"<:Fer_brut_enchante:1302698777899040789>",manganese:"<:Manganese_scintillante_enchantee:1302698799273214073>",ebony_poppy:"<:Pavot_debene_enchante:1302698801559109672>",rose:"<:Rose_immaculee_enchantee:1302698803886948452>",sea_salt:"<:Sel_Marin_enchante:1302698806541815869>",tissue:"<:Tissu_enchante:1302698807917805633>",clover:"<:Trefle_a_6_feuilles_enchante:1302698809670762556>"},sugar_cane_christmas:"<:sucredorge:1302993371450572801> ",mysterious_egg_christmas:"<:Oeuf_Mystere_de_Noel:1302993349061378139>",little_cookie_christmas:"<:Petit_Biscuit_de_Noel:1303022418951934002>",christmas_present:"<:CadeaudeNoel:1309501482252501094>",aeronef:"<:Aeronef:1312419591812812861>"},Uh={d1:"<:d1:1159542168738873455>",d2:"<:d2:1159542071049334814>",d3:"<:d3:1159542073914032191>",d4:"<:d4:1159542075512082543>",d5:"<:d5:1159542078179651614>",d6:"<:d6:1159542079458910229>",revolutionary:"<:revolutionnaire:648245785133056020>",pirate:"<:pirate:648245785053626368>",marine:"<:marine:648245784407441429>",berry:"<:berry:1153734056035504158>",xp:"<:xp:1084914564379975772>",success:"<:success:1186707379534954506>",hp:"<:hp:1257776163955277824>",paper:"📄",rock:"🪨",scissor:"✂️",pray:"<:Ryokugyu_pray:1147542990844334280>",gun:"<:fujigun:1050120413243506688>",promise:"<:Luffy_Promise:1027626431565529099>",love:"<:Lawve:1050916817801072730>",note:"<:imsusnote:1136952496456224778>",watching:"<:Carrot_Watching:1024736915922104360>",card:"<:carteDos:1168580012258103387>",cards:{spades:{1:"<:asdepique:1168560615170768967>",2:"<:2depique:1168559430955184259>",3:"<:3depique:1168559437548638248>",4:"<:4depique:1168559679354445934>",5:"<:5depique:1168559725504372796>",6:"<:6depique:1168559764528185394>",7:"<:7depique:1168559459392553061>",8:"<:8depique:1168559887870083162>",9:"<:9depique:1168559471392464988>",10:"<:10depique:1168559958435053598>",J:"<:valetdepique:1168560676202086523>",Q:"<:reinedepique:1168560621722284083>",K:"<:roidepique:1168560628189888634>"},diamonds:{1:"<:asdecarreau:1168560612742279308>",2:"<:2decarreau:1168559427788472330>",3:"<:3decarreau:1168559434138669236>",4:"<:4decarreau:1168559440774041621>",5:"<:5decarreau:1168559445308084256>",6:"<:6decarreau:1168559763462819940>",7:"<:7decarreau:1168559845872517172>",8:"<:8decarreau:1168559888989949994>",9:"<:9decarreau:1168559942215667804>",10:"<:10decarreau:1168559475481907230>",J:"<:valetdecarreau:1168560633634095234>",Q:"<:reinedecarreau:1168560618182291577>",K:"<:roidecarreau:1168560626185011281>"},hearts:{1:"<:asdecoeur:1168560613971214368>",2:"<:2decoeur:1168559428681859073>",3:"<:3decoeur:1168559435950592060>",4:"<:4decoeur:1168559442074284073>",5:"<:5decoeur:1168559723226865725>",6:"<:6decoeur:1168559452509708298>",7:"<:7decoeur:1168559457769365684>",8:"<:8decoeur:1168559463368757339>",9:"<:9decoeur:1168559938897989672>",10:"<:10decoeur:1168559477658751006>",J:"<:valetdecoeur:1168560635991298160>",Q:"<:reinedecoeur:1168560619855822940>",K:"<:roidecoeur:1168560678378950716>"},clubs:{1:"<:asdetrfle:1168560617444081834>",2:"<:2detrfle:1168559432242831512>",3:"<:3detrfle:1168559439440269403>",4:"<:4detrfle:1168559677936762982>",5:"<:5detrfle:1168559449540145153>",6:"<:6detrfle:1168559761260818594>",7:"<:7detrfle:1168559844748435549>",8:"<:8detrfle:1168559466334142575>",9:"<:9detrfle:1168559940953194576>",10:"<:10detrfle:1168559959802380288>",J:"<:valetdetrfle:1168560610531885137>",Q:"<:reinedetrfle:1168560623228026972>",K:"<:roidetrfle:1168560675543580712>"}},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>"},characteristics:{vitality:"<:vitality:1251861015277338675>",strength:"<:strength:1251860738595618838>",agility:"<:agility:1251860734145728596>",intelligence:"<:intelligence:1251860736943194144>",chance:"<:chance:1251860735827513425>",wisdom:"<:wisdom:1251861017231884378>"},bag:"<:sacdosbleu:1320873412121460837>",items:Rh,equipments:Ch},xh=(t,a)=>{const s=t.badge,n=t.isFactionBadge;return s?u.progressiveBadgeTypeGuard(s)?s.emojis[s.isProgressive.findIndex(r=>r===t.rank.id)]:s.emojis:n?Uh.factions[`b_${a}_${t.rank.id}`]:""},Bh=t=>{const[a,s]=t.split("_"),n=Object.values(u.BadgeList).find(r=>r.id===a);if(n)return u.progressiveBadgeTypeGuard(n)?n.emojis[n.isProgressive.findIndex(r=>r===s)]:n.emojis},Dh=async(t,a)=>{const s=Object.values(Wa).find(n=>new n().id===t);if(s){const n=new s,r=await n.complete(a,{});r&&le("userDaily",a,[[n,r]])}},Ah=async(t,a)=>{const s=Object.values(Vc).find(n=>new n().id===t);if(s){const n=new s,r=await n.complete(a,{});r&&le("crewDaily",a,[[n,r]])}};class Oh extends o{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 Nh extends o{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 $h extends o{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 Eh extends o{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 Fh extends o{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 Ih extends o{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 Yh extends o{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 Lh extends o{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 Ph extends o{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 Th extends o{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 jh extends o{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 Qh extends o{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 qh extends o{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 Hh extends o{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 Kh extends o{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 Gh extends o{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 Vh extends o{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 Wh extends o{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 zh extends o{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 Xh extends o{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 ts=Object.freeze(Object.defineProperty({__proto__:null,Bet10M:Yf,Bet666:F0,BetMinValue:Ff,Birthday:Qf,BotPing:qf,ChestOpen1000Quest:e0,ChestOpen150Quest:Zf,ChestOpen2000Quest:t0,ChestOpen500Quest:Jf,ChestOpen50Quest:Xf,Craft1000Times:i0,Craft100CookedMeals:d0,Craft100Scrolls:y0,Craft10CookedMeals:l0,Craft10Scrolls:h0,Craft200Times:n0,Craft20Scrolls:m0,Craft20Times:a0,Craft250CookedMeals:c0,Craft500CookedMeals:u0,Craft500Times:r0,Craft50CookedMeals:o0,Craft50Scrolls:p0,Craft50Times:s0,Craft5Scrolls:f0,Crew10Percent:g0,Crew90Percent:_0,DoubleSix:R0,Draw1000Quest:v0,Draw100Quest:w0,Draw2000Quest:S0,Draw300Quest:b0,Draw5000Quest:M0,DrawDoubleSix:U0,Drink1000Alcohols:Eh,Drink1000Beer:Kh,Drink1000Quest:Vf,Drink1000Rhum:Th,Drink1000Wine:Xh,Drink100Beer:Qh,Drink100Rhum:Yh,Drink100Today:Hf,Drink100Wine:Vh,Drink10Beer:jh,Drink10Rhum:Ih,Drink10Wine:Gh,Drink2000Alcohols:Fh,Drink2000Quest:Wf,Drink200Quest:Kf,Drink250Alcohols:Nh,Drink250Beer:qh,Drink250Rhum:Lh,Drink250Wine:Wh,Drink5000Quest:zf,Drink500Alcohols:$h,Drink500Beer:Hh,Drink500Quest:Gf,Drink500Rhum:Ph,Drink500Wine:zh,Drink50Alcohols:Oh,Edito:k0,Everyone:C0,Finish100Raids:T0,Finish10Raids:Y0,Finish200Raids:j0,Finish25Raids:L0,Finish50Raids:P0,GuessInOne:E0,Lose10M:jf,LoseAll5GamesInRow:D0,LoseEverything:If,Paper100:O0,RandomMessage100Quest:H0,RandomMessage200Quest:K0,RandomMessage20Quest:Q0,RandomMessage500Quest:G0,RandomMessage50Quest:q0,Report:V0,Rock100:$0,Scissor100:N0,SevenQuitteOuDouble:x0,SpendShop500M:ah,SpendShop50M:th,SpendShop50Ml:nh,SpendShop5M:eh,SpendShop5Ml:sh,TenBlackJack:A0,TotalBet10M:Pf,TotalBet1Md:Tf,Voice10Hours:rh,Voice2500Hours:oh,Voice250Hours:lh,Voice25Hours:ih,Voice5000Hours:dh,WinAll5GamesInRow:B0,WinLose10:I0,WinOn10MBet:Lf,Work1000Quest:fh,Work100Quest:ch,Work2000Quest:hh,Work300Quest:uh,Work5000Quest:mh,Write100Chats:_h,Write10Chats:ph,Write200Chats:wh,Write20Chats:yh,Write50Chats:gh,send100000Messages:Z0,send1000Messages:z0,send100Messages:W0,send200000Messages:J0,send25000Messages:X0},Symbol.toStringTag,{value:"Module"}));class Zh extends o{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[n,r]of Object.entries(s.daily))if(!be(r,new Date)&&this.id!==n)return!1;return Object.keys(s.daily).filter(n=>n!==this.id).length>=5})}}const as=Object.freeze(Object.defineProperty({__proto__:null,DailyAll:Zh},Symbol.toStringTag,{value:"Module"})),Jh=[...Object.values(Ja),...Object.values(es),...Object.values(Za),...Object.values(ts),...Object.values(as),...Object.values(Xa),...Object.values(za),...Object.values(Wa)],em=async t=>{var s;const a=[];for(const n of Object.values(Ja)){const r=new n;if((s=r.onUserMetaUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{_userMeta:t});i&&a.push([r,i])}}a.length>0&&le("userMetaUpdate",t.user._id,a)},tm=async t=>{var s;const a=[];for(const n of Object.values(ts)){const r=new n;if((s=r.onUserQuestMetaUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{});i&&a.push([r,i])}}a.length>0&&le("userQuestMetaUpdate",t.user._id,a)},am=["raidUnlock"],Hn=new vs.EventEmitter,ot=(t,a,s)=>{Hn.emit(t,a,s)},sm=t=>{for(const a of am)Hn.on(a,(s,n)=>{t(a,s,n)})},nm=async t=>{var s,n;const a=await _s(t.user._id);l.getCurrentLevel(t.xp.amount)>=30&&!_t(a,"training")&&(await bt(a.user._id,"training"),ot("raidUnlock",t.user._id,"training")),(((n=(s=a.obtainedRewards.training)==null?void 0:s.filter(r=>r.startsWith("end_")))==null?void 0:n.length)??0)>=4&&!_t(a,"resources")&&(await bt(a.user._id,"resources"),ot("raidUnlock",t.user._id,"resources"))},rm=async t=>{const a=await _s(t.user._id);ia(t.equipmentList,s=>s.id).map(s=>v.findEquipment(s)).filter(s=>s.panoply==="adventurer").length===6&&!_t(a,"pirate_cave")&&(await bt(a.user._id,"pirate_cave"),ot("raidUnlock",t.user._id,"pirate_cave")),(t.itemList.get("map_fragment")??0)>=5&&!_t(a,"mysterious_island")&&(await bt(a.user._id,"mysterious_island"),await xe(t.user._id,"map_fragment",5),ot("raidUnlock",t.user._id,"mysterious_island"))},ss=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}});ss.index({user:1}),ss.post("findOneAndUpdate",async function(t){await tm(t)});const oe=((Gr=h.models)==null?void 0:Gr.UserQuestMeta)||h.model("UserQuestMeta",ss),k=async(t,a)=>{await oe.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},im=async t=>{await k(t,{$inc:{work:1}})},lm=async t=>{await k(t,{$set:{hadMoreThanZeroBerry:!0}})},om=async t=>{await k(t,{$set:{sevenQuitteOuDouble:!0}})},dm=async t=>{await k(t,{$inc:{black_jack:1}})},cm=async(t,a,s)=>{await k(t,{$push:{lastGames:{$each:[{gameType:a,endState:s}],$position:0,$slice:20}}})},um=async t=>{await k(t,{$inc:{draw:1}})},fm=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 oe.updateOne({user:t,"bet666.last":{$gte:a,$lte:s}},{$inc:{"bet666.amount":1},$set:{"bet666.last":new Date}}),await oe.updateOne({user:t,"bet666.last":{$lt:a}},{$set:{"bet666.last":new Date,"bet666.amount":1}})},hm=async(t,a)=>{await k(t,{$inc:{totalBet:a}})},mm=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}}])},Kn=async(t,a)=>{await k(t,{$inc:{totalSpentInShop:a}})},pm=async(t,a,s)=>{const n=v.findEntity(s);await k(t,{$inc:{"crafts.cookedMeal":v.isCookedMeal(n)?a:0,"crafts.scrolls":v.isScrollItem(n)?a:0,"crafts.total":a}})},ym=async t=>{await k(t,{$set:{reportedSomeone:!0}})},gm=async t=>{await k(t,{$inc:{randomMessage:1}})},_m=async t=>{await k(t,{$inc:{botPing:1}})},wm=async t=>{await k(t,{$inc:{guessInOne:1}})},bm=async t=>{await k(t,{$set:{hasCelebrateBirthday:!0}})},vm=async t=>{await k(t,{$inc:{double_six:1}})},Sm=async t=>{await k(t,{$inc:{drawDoubleSix:1}})},Mm=async(t,a)=>{a?await k(t,{$set:{timeAt10Percent:0}}):await k(t,{$inc:{timeAt10Percent:1}})},km=async(t,a)=>{a?await k(t,{$set:{timeAt90Percent:0}}):await k(t,{$inc:{timeAt90Percent:1}})},Cm=async t=>{await k(t,{$set:{tagEveryone:!0}})},Rm=async t=>{await k(t,{$set:{betMin:!0}})},Gn=async t=>{await k(t,{$set:{loseEverything:!0}})},Um=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:fm,botPingIncrement:_m,drawDoubleSix:Sm,drawIncrement:um,hadMoreThanZeroBerry:lm,hasBet10M:async t=>{await k(t,{$set:{bet10M:!0}})},hasBetMin:Rm,hasCelebrateBirthday:bm,hasGuessInOne:wm,hasLose10M:async t=>{await k(t,{$set:{lose10M:!0}})},hasLoseEverything:Gn,hasReportedSomeone:ym,hasSevenQod:om,hasTagEveryone:Cm,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 oe.updateOne({user:t,"items.bottle.last":{$gte:s}},{$inc:{"items.bottle.today":a},$set:{"items.bottle.last":new Date}}),await oe.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:gm,readEdito:async t=>{const a=new Date;a.setHours(0,0,0,0),await oe.updateOne({user:t,"edito.lastTimeRead":{$gte:a}},{$inc:{"edito.readToday":1},$set:{"edito.lastTimeRead":new Date}}),await oe.updateOne({user:t,"edito.lastTimeRead":{$lt:a}},{$set:{"edito.lastTimeRead":new Date,"edito.readToday":1}})},updateCrafts:pm,updateCrew10Percent:Mm,updateCrew90Percent:km,updateLastGames:cm,updateRps:mm,updateTotalBet:hm,updateTotalSpentInShop:Kn,winBlackjack:dm,winDoubleSix:vm,workIncrement:im},Symbol.toStringTag,{value:"Module"})),Ke={multiplier:{type:Number,default:0},origin:String,expireAt:{type:Date,default:null},startAt:{type:Date,default:null}},dt=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},premium:{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:[Ke],default:[]},work:{type:[Ke],default:[]}},berry:{work:{type:[Ke],default:[]},global:{type:[Ke],default:[]}},drop:{work:{type:[Ke],default:[]}},xp:{global:{type:[Ke],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}}});dt.index({user:1}),dt.index({"xp.amount":-1}),dt.index({berry:-1}),dt.post("findOneAndUpdate",async function(t){await nm(t),await em(t),t.berry===0&&await Gn(t.user._id),t.hp<=0&&await sr(t.user._id)});const Ue=((Vr=h.models)==null?void 0:Vr.UserMeta)||h.model("UserMeta",dt),Vn=async t=>await Ue.create({user:t}),ct=async(t,a={})=>{const s=await Ue.findOne({user:t},a);return s||await Vn(t)},xm=(t,a)=>Ue.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0}),E=async(t,a)=>{await Ue.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0})},Bm=async t=>{await E(t,{$set:{"xp.lastMessageWithXp":new Date}})},Dm=async(t,a)=>{await E(t,{$inc:{"xp.amount":a}})},Wn=async(t,a)=>{await E(t,[{$set:{berry:{$max:[{$add:["$berry",a]},0]}}}])},Am=async(t,a)=>{await E(t,{$set:{premium:a}})},Om=async(t,a)=>{const{xp:{boost:s}}=await xm(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},ns=async(t,a)=>{if(Array.isArray(a)){for(const n of a)await ns(t,n);return}const s=v.transformToDBBuff(a);await E(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}]]}}}}}])},rs=async(t,a)=>{await E(t,{$pull:{[`buffs.${a.target}`]:{origin:a.origin}}})},Nm=async(t,a,s,n)=>{const r=v.fromDBToEquipableEquipment(a),i=ks(Object.values(s)),d=v.allPanoplies.find(w=>w.id===r.panoply);if(!d)return;const f=d.equipments.filter(w=>(i.find(B=>w.id===B.id)||!n&&r.id===w.id)&&(n?r.id!==w.id:!0)).length,p=f===d.equipments.length?d.fullBonus:f>=d.equipments.length/2?d.halfBonus:void 0;d.halfBonus&&"target"in d.halfBonus&&await rs(t,d.halfBonus),d.fullBonus&&"target"in d.fullBonus&&await rs(t,d.fullBonus),p&&"target"in p&&await ns(t,p)},zn=async(t,a,{userMeta:s,userInventory:n})=>{const r=s??await ct(t,{buffs:0,xp:0}),i=n??await Wt(t,{itemList:0,equipmentList:0}),f=await Be(t,r,i)-r.hp;await E(t,{$set:{hp:r.hp+Math.floor(Math.min(a,f))}})},$m=async(t,a)=>{await E(t,[{$set:{hp:{$max:[{$add:["$hp",-a]},0]}}}])},Ge=async(t,a)=>{const s=await Be(t);await E(t,[{$set:{hp:{$round:[{$multiply:[{$divide:["$hp",a]},s]},0]}}}])},Em=Object.freeze(Object.defineProperty({__proto__:null,addBerry:Wn,addCharacteristics:async(t,a)=>{const s=await Be(t),n=Object.fromEntries(Object.entries(a).filter(([,r])=>r!==0).map(([r,i])=>[`characteristics.${r}`,i]));await E(t,{$inc:n}),Ge(t,s)},addMinutesInVoiceToday:async(t,a)=>{await E(t,{$inc:{"xp.voice.minutesInVoiceToday":a}})},addScrollCharacteristic:async(t,a)=>{const s=await Be(t),n=Object.fromEntries(Object.entries(a).filter(([,r])=>r!==0).map(([r,i])=>[`scrolls.${r}`,i]));await E(t,{$inc:n}),Ge(t,s)},addXp:Dm,gainHp:zn,incrementWorkUnluckyStreak:async t=>{await E(t,{$inc:{workUnluckyStreak:1}})},loseHp:$m,removeBuff:rs,resetCharacteristics:async(t,a,s)=>{const n=await Be(t,s),r={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};a?await E(t,{$set:{characteristics:r,"resetCharacteristics.free":!1}}):await E(t,{$set:{characteristics:r,"resetCharacteristics.nextAvailable":new Date(Date.now()+30*24*60*60*1e3)},$inc:{berry:-1e8}}),Ge(t,n)},resetMinutesInVoiceToday:async t=>{await E(t,{$set:{"xp.voice.minutesInVoiceToday":0}})},resetWorkUnluckyStreak:async t=>{await E(t,{$set:{workUnluckyStreak:0}})},updateBoost:Om,updateBuff:ns,updateHp:Ge,updateLastMessageTime:Bm,updateLastVoiceConnection:async(t,a)=>{await E(t,{$set:{"xp.voice.lastConnection":a}})},updatePanoplyBuff:Nm,updatePremium:Am},Symbol.toStringTag,{value:"Module"})),Fm=async t=>{var s;const a=[];for(const n of Object.values(Za)){const r=new n;if((s=r.onUserInventoryUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{});i&&a.push([r,i])}}a.length>0&&le("userInventoryUpdate",t.user._id,a)},is=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},equippedItems:{type:Object,default:{}},equipmentList:{type:[{id:String,seed:Number}],default:[]},itemList:{type:Map,of:Number,default:{}},recipes:{type:[String],default:[]}},{minimize:!1});is.index({user:1}),is.post("findOneAndUpdate",async function(t){await rm(t),await Fm(t)});const ut=((Wr=h.models)==null?void 0:Wr.UserInventory)||h.model("UserInventory",is),de=async(t,a)=>{await ut.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},ce=async(t,a,s)=>{await de(t,{$inc:{[`itemList.${a}`]:s}}),await Vt(t,[a])},Im=async(t,a)=>{await de(t,{$inc:Object.fromEntries(Object.entries(a).filter(([,s])=>(s??0)>0).map(([s,n])=>[`itemList.${s}`,n]))}),await Vt(t,Qa(a).filter(([,s])=>s>0).map(([s])=>s))},xe=async(t,a,s)=>{s!==0&&await de(t,[{$set:{[`itemList.${a}`]:{$max:[{$add:[`$itemList.${a}`,-s]},0]}}}])},Xn=async(t,a,s)=>{await de(t,{$pull:{equipmentList:{id:a,seed:s}}})},Zn=async(t,a,s,n)=>{s!==0&&(v.isEquipmentId(a)?await Xn(t,a,n):await xe(t,a,s))},Ym=async(t,a)=>{await de(t,{$set:{[`itemList.${a}`]:0}})},ls=async(t,a)=>{await de(t,{$push:{equipmentList:{$each:a}}}),await Vt(t,a.map(s=>s.id))},Lm=Object.freeze(Object.defineProperty({__proto__:null,addEquipments:ls,addInventoryItem:ce,addInventoryItems:Im,craftItem:async(t,a,s,n,r)=>{for(const{itemId:f,size:p}of a)await xe(t,f,p*n);const{itemId:i,size:d}=s;v.isEquipmentId(i)?await ls(t,[{id:i,seed:r}]):await ce(t,i,d*n)},dismantleEntity:async(t,a,s,n,r)=>{await Zn(t,a.id,n,r);for(const{entityId:i,quantity:d}of s)v.isEquipmentId(i)||await ce(t,i,n*d);await xe(t,"tools",1)},enchantItem:async(t,a,s,n)=>{await xe(t,a,n*4),await xe(t,"enchanted_stone",n),await ce(t,s,n)},equip:async(t,a,s)=>{const n=await Be(t);await de(t,{$set:{[`equippedItems.${a}`]:s}}),await Ge(t,n)},removeAllItemInventory:Ym,removeEquipment:Xn,removeInventoryEntity:Zn,removeInventoryItem:xe,unequip:async(t,a)=>{const s=await Be(t);await de(t,{$set:{[`equippedItems.${a}`]:null}}),await Ge(t,s)},unlockRecipe:async(t,a)=>{await de(t,{$addToSet:{recipes:a}})}},Symbol.toStringTag,{value:"Module"})),Jn=async t=>await ut.create({user:t}),Wt=async(t,a={})=>{const s=await ut.findOne({user:t},a);return s||await Jn(t)},os=t=>Object.fromEntries(l.CHARACTERISTICS.map(a=>[a,U.getComputedCharacteristicValue(t.characteristics[a])+t.scrolls[a]])),Pm=t=>Date.now()-t.xp.lastMessageWithXp.getTime()>60*1e3,ds=t=>{const{boost:a}=t.xp;return(a!==null&&Date.now()<a.getTime()?.2:0)+(t.premium?.5:0)+t.buffs.xp.global.reduce((s,{expireAt:n,startAt:r,multiplier:i})=>s+((r??new Date)<=new Date&&(!n||!$e(n))?i:0),0)},Tm=t=>{const a=t.trim().length,s=2;return a<10?10*s:a>300?300*s:a*s},jm=(t,a,s)=>(a*=1+ds(t),Math.ceil(a*s)),Qm=(t,a,s)=>{const n=s?1:er(t);return a<=0?a:Math.ceil(a*(n||1))},qm=t=>t.buffs.cooldown.work.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&(!s||!$e(s))?r:0),1),Hm=t=>t.buffs.drop.work.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&(!s||!$e(s))?r:0),1),Km=t=>t.buffs.berry.work.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&(!s||!$e(s))?r:0),1),er=t=>t.buffs.berry.global.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&(!s||!$e(s))?r:0),1),Gm=t=>t.buffs.cooldown.casino.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&(!s||!$e(s))?r:0),1),Be=async(t,a,s)=>{const n=a??await ct(t,{buffs:0,xp:0}),r=s??await Wt(t,{itemList:0,equipmentList:0});return((os(n).vitality??0)+Va(r).vitality)*l.HP_PER_VITALITY+l.DEFAULT_MAX_HP},Vm=Object.freeze(Object.defineProperty({__proto__:null,calcBerry:Qm,calcBerryGlobalBuff:er,calcBerryWorkBuff:Km,calcCooldownCasinoBuff:Gm,calcCooldownWorkBuff:qm,calcDropWorkBuff:Hm,calcMessageXp:Tm,calcXp:jm,calcXpBoost:ds,getBerryRank:async t=>(await Ue.aggregate([{$setWindowFields:{sortBy:{berry:-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getGlobalRank:async t=>(await Ue.aggregate([{$setWindowFields:{sortBy:{"xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getMaxHp:Be,getTotalCharacteristics:os,hasCharacteristicRequirement:async(t,a,s,n)=>{const r=s??await ct(t,{buffs:0,xp:0}),i=n??await Wt(t,{itemList:0,equipmentList:0}),d=ja(os(r),Va(i),(f,p)=>f+p);if("sum"in a){let f=0;for(const p of a.characteristics)f+=d[p]??0;return f>=a.sum}else{for(const f of Object.keys(a))if(d[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:n,expireAt:r}of a)if(s<0&&(!r||!$e(r))&&(n??new Date)<=new Date)return!0;return!1},isCooldownForXpPassed:Pm},Symbol.toStringTag,{value:"Module"})),tr=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)}}});tr.index({user:1});const ft=((zr=h.models)==null?void 0:zr.UserCooldown)||h.model("UserCooldown",tr),ht=async(t,a)=>{await ft.updateOne({user:t},a,{upsert:!0})},Wm=async(t,a)=>{await ht(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)},ar=async(t,a,s,n)=>{await ht(t,{$set:{[`raid.${a}`]:new Date(Date.now()+s)}}),n.raid[a]&&await Ka(t,`raid/${a}`,new Date(Date.now()+s))},sr=async t=>{await ht(t,{$set:{lockUserCommand:new Date(Date.now()+2*3600*1e3)}}),await zn(t,1,{})},zm=Object.freeze(Object.defineProperty({__proto__:null,lockUserCommand:sr,reduceRaidCooldown:Wm,startRaidCooldown:ar,useCommand:async(t,a,s,n)=>{await ht(t,{$set:{[`commands.${a}`]:new Date(Date.now()+s)}}),n.commands[a]&&await Ka(t,`commands/${a}`,new Date(Date.now()+s))}},Symbol.toStringTag,{value:"Module"})),Xm=["work","rps","blackjack","guess","qod","dice"],nr=async t=>await ft.create({user:t}),Zm=async(t,a={})=>{const s=await ft.findOne({user:t},a);return s||await nr(t)},cs=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});cs.virtual("inventory",{ref:"Crew",localField:"crew",foreignField:"_id",justOne:!0}),cs.index({user:1});const Ve=((Xr=h.models)==null?void 0:Xr.UserCrew)||h.model("UserCrew",cs),us=async(t,a)=>{await Ve.updateOne({user:t},a,{upsert:!0})},Jm=async(t,a)=>{await us(t,{$set:{percent:a}})},rr=async t=>{await us(t,{$set:{lastAllMembersDaily:new Date}})},ep=Object.freeze(Object.defineProperty({__proto__:null,allMembersDailyComplete:rr,updatePercent:Jm},Symbol.toStringTag,{value:"Module"})),ir=t=>Ve.findOne({user:t}),tp=async(t,a,s,n)=>await Ve.create({user:t,crew:a,percent:n,permission:s}),ap=t=>Ve.exists({user:t}),lr=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}});lr.index({user:1});const zt=((Zr=h.models)==null?void 0:Zr.UserDailyReport)||h.model("UserDailyReport",lr),or=async(t,a)=>{await zt.updateOne({user:t},a,{upsert:!0})},sp=Object.freeze(Object.defineProperty({__proto__:null,updateDailyReport:async(t,a)=>{await or(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"})),dr=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},guess:{type:{tries:Number,amount:Number,numberToGuess:Number},default:null}});dr.index({user:1});const mt=((Jr=h.models)==null?void 0:Jr.UserGames)||h.model("UserGames",dr),Xt=async(t,a)=>{await mt.updateOne({user:t},a,{upsert:!0})},np=Object.freeze(Object.defineProperty({__proto__:null,resetGuessGame:async t=>{await Xt(t,{$set:{guess:null}})},setGuessGame:async(t,a,s,n)=>{await Xt(t,{$set:{guess:{amount:a,tries:s,numberToGuess:n}}})},updateGuessGame:async t=>{await Xt(t,{$inc:{"guess.tries":1}})}},Symbol.toStringTag,{value:"Module"})),cr=async t=>await mt.create({user:t}),rp=async(t,a)=>{const s=await mt.findOne({user:t},a);return s||await cr(t)},ip=async t=>{var s;const a=[];for(const n of Object.values(es)){const r=new n;if((s=r.onUserOrnamentsUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{});i&&a.push([r,i])}}a.length>0&&le("userOrnamentsUpdate",t.user._id,a)},fs=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"}});fs.index({user:1}),fs.post("findOneAndUpdate",async function(t){await ip(t)});const pt=((ei=h.models)==null?void 0:ei.UserOrnaments)||h.model("UserOrnaments",fs),K=async(t,a)=>{await pt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},hs=async(t,a)=>{await K(t,{$addToSet:{unlockedTitles:a}})},lp=async(t,a)=>{await K(t,{$addToSet:{unlockedTitles:{$each:a}}})},op=async(t,a)=>{await K(t,{$set:{selectedTitle:a}})},ur=async(t,a)=>{await K(t,{$addToSet:{unlockedBackgrounds:a}})},dp=async(t,a)=>{await K(t,{$addToSet:{unlockedBackgrounds:{$each:a}}})},cp=async(t,a)=>{await K(t,{$set:{selectedBackground:a}})},fr=async(t,a,s)=>{a.isProgressive?await K(t,{$addToSet:{unlockedBadges:`${a.id}_${s}`}}):await K(t,{$addToSet:{unlockedBadges:a.id}})},hr=async(t,a)=>{await K(t,{$addToSet:{unlockedFactionBadges:{$each:[`b_marine_${a}`,`b_revolutionary_${a}`,`b_pirate_${a}`]}}})},mr=async(t,a)=>{await K(t,{$addToSet:{unlockedProfileAssets:a}})},up=Object.freeze(Object.defineProperty({__proto__:null,selectBackground:cp,selectBag:async(t,a)=>{await K(t,{$set:{selectedBag:a}})},selectTitle:op,unlockBackground:ur,unlockBackgrounds:dp,unlockBadge:fr,unlockBag:async(t,a)=>{await K(t,{$addToSet:{unlockedBags:a}})},unlockFactionBadge:hr,unlockProfileAsset:mr,unlockTitle:hs,unlockTitles:lp},Symbol.toStringTag,{value:"Module"})),pr=async t=>await pt.create({user:t}),fp=async(t,a)=>{const s=await pt.findOne({user:t},a);return s||await pr(t)},yr=(t,a)=>t.completed.includes(a),gr=(t,a)=>{const s=t.daily[a];return s&&be(s,new Date)},ms=t=>be(Ta(),t.lastFullComplete),ps=t=>ms(t)?1+Math.min(2,t.streak/10):1,_r=t=>t.completed.reduce((a,s)=>a+(s.startsWith("be_level_")?1:0),0),wr=(t,a)=>{const s=_r(t);return u.factionTitleList.find(n=>n.strength===s&&n.faction===a)},hp=Object.freeze(Object.defineProperty({__proto__:null,getFactionTitle:wr,getFactionTitleStrength:_r,getStreakMultiplier:ps,isDailyQuestCompleted:gr,isQuestCompleted:yr,isStreaking:ms},Symbol.toStringTag,{value:"Module"})),mp=async t=>{var s;const a=[];for(const n of Object.values(as)){const r=new n;if((s=r.onUserQuestUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{_userQuest:t});i&&a.push([r,i])}}a.length>0&&le("userQuestUpdate",t.user._id,a)},ys=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});ys.index({user:1}),ys.post("findOneAndUpdate",async function(t){await mp(t)});const yt=((ti=h.models)==null?void 0:ti.UserQuest)||h.model("UserQuest",ys),gt=async(t,a)=>{await yt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},br=async(t,a)=>{await gt(t,{$addToSet:{completed:a}})},vr=async(t,a)=>{await gt(t,[{$addFields:{[`daily.${a}`]:new Date}}])},Sr=async(t,a)=>{be(Ta(),a)?await gt(t,{$inc:{streak:1},$set:{lastFullComplete:new Date}}):await gt(t,{$set:{lastFullComplete:new Date,streak:1}})},pp=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:vr,completeQuest:br,updateStreak:Sr},Symbol.toStringTag,{value:"Module"})),Mr=async t=>await yt.create({user:t}),gs=async t=>{const a=await yt.findOne({user:t});return a||await Mr(t)},_t=(t,a)=>{var s;return(s=t.unlocked)==null?void 0:s[a]},yp=Object.freeze(Object.defineProperty({__proto__:null,alreadyObtainedRaidReward:(t,a,s)=>a in t.obtainedRewards?t.obtainedRewards[a].includes(s):!1,fulfillCondition:(t,a,s,n)=>n==="include"?s.every(r=>(t.obtainedConditions[a]??[]).includes(r)):s.every(r=>!(t.obtainedConditions[a]??[]).includes(r)),getObtainedRaidReward:(t,a)=>t.obtainedRewards[a]??[],hasUnlockedRaid:_t},Symbol.toStringTag,{value:"Module"})),kr=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});kr.index({user:1});const wt=((ai=h.models)==null?void 0:ai.UserRaid)||h.model("UserRaid",kr),ve=async(t,a)=>{await wt.updateOne({user:t},a,{upsert:!0})},bt=async(t,a)=>{await ve(t,{$set:{[`unlocked.${a}`]:!0}})},gp=Object.freeze(Object.defineProperty({__proto__:null,addRewardsToRaid:async(t,a)=>{await ve(t,{$inc:Object.fromEntries(Qa(a).filter(([s])=>s!=="title"&&s!=="condition").map(([s,n])=>[`currentRaid.rewards.${s}`,n])),...a.title?{$set:{"currentRaid.rewards.title":a.title}}:{}})},claimReward:async(t,a,s)=>{await ve(t,{$addToSet:{[`obtainedRewards.${a}`]:s}})},progressRaid:async(t,a)=>{await ve(t,{$push:{"currentRaid.progression":a}})},resetRaid:async t=>{await ve(t,{$unset:{currentRaid:""}})},resetRaidProgression:async t=>{await ve(t,{$set:{"currentRaid.progression":[]}})},startRaid:async(t,a,s,n,r,i)=>{const d=Date.now();return await ve(t,{$set:{currentRaid:{raidId:a,buffItem:s,seed:d,progression:[],rewards:{}}}}),await ar(t,n,r,i),d},unlockRaid:bt,updateCondition:async(t,a,s)=>{await ve(t,{$addToSet:{[`obtainedConditions.${a}`]:s}})}},Symbol.toStringTag,{value:"Module"})),Cr=async t=>await wt.create({user:t}),_s=async t=>{const a=await wt.findOne({user:t});return a||await Cr(t)},_p=Object.freeze(Object.defineProperty({__proto__:null,getShopItemRest:(t,a,s,n,r)=>{var f;if(v.isEquipmentId(a))return n;let i=v.getAllItemsLimit()[a];const d=(f=t.limit)==null?void 0:f[a];return r==="half"&&a==="chest_2"&&(i+=2),r==="full"&&a==="chest_3"&&(i+=1),i?t.lastShopId!==s?i:d?i-d:Math.min(i,n):n},isShopBuyLimitReached:(t,a,s,n)=>{var d;if(v.isEquipmentId(a))return!1;let r=v.getAllItemsLimit()[a];const i=(d=t.limit)==null?void 0:d[a];return n==="half"&&a==="chest_2"&&(r+=2),n==="full"&&a==="chest_3"&&(r+=1),t.lastShopId!==s?!1:!!(r&&i&&i>=r)}},Symbol.toStringTag,{value:"Module"})),Rr=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});Rr.index({user:1});const Zt=((si=h.models)==null?void 0:si.UserShop)||h.model("UserShop",Rr),Ur=async(t,a)=>{await Zt.updateOne({user:t},a,{upsert:!0})},wp=Object.freeze(Object.defineProperty({__proto__:null,increaseShopBuyLimit:async(t,a,s,n)=>{await Ur(t,[{$set:{limit:{$cond:{if:{$eq:["$lastShopId",s]},then:{$mergeObjects:["$limit",{[a]:{$add:[{$ifNull:[`$limit.${a}`,0]},n]}}]},else:{[a]:n}}},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 ut.deleteOne({user:t}),await mt.deleteOne({user:t}),await pt.deleteOne({user:t}),await wt.deleteOne({user:t}),await Ve.deleteOne({user:t}),await zt.deleteOne({user:t}),await Zt.deleteOne({user:t}),await Ue.deleteOne({user:t}),await yt.deleteOne({user:t}),await oe.deleteOne({user:t}),await ft.deleteOne({user:t})});const G=((ni=h.models)==null?void 0:ni.User)||h.model("User",T),bp=t=>G.create({userId:t}),Jt=async(t,a={})=>{const s=await xr({userId:t},a);return s||await bp(t)},xr=(t,a={})=>G.findOne(t,a),vp=Object.freeze(Object.defineProperty({__proto__:null,getAllDailyReport:async()=>G.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()=>G.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:n,amount:r}=s,{unlockedBadges:i,unlockedBackgrounds:d,unlockedTitles:f}=t.ornaments,{previousOrnament:p,previousCompletedQuest:w,xpYesterday:B,berryYesterday:I,previousMessageSent:q}=t.dailyReport;return{berry:a-I,xp:r-B,message:t.questMeta.messageSent-q,voice:be(n.lastConnection,Ta())?n.minutesInVoiceToday:0,quest:Mt(t.quest.completed,w),badge:Mt(i,p.unlockedBadges),title:Mt(f,p.unlockedTitles),background:Mt(d,p.unlockedBackgrounds)}},getFactionRank:async(t,a)=>(await G.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=>G.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()=>G.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:()=>G.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()=>G.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:()=>G.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 Jt(t,{birthday:1})},Symbol.toStringTag,{value:"Module"})),Se=async(t,a,s=!1)=>{await G.updateOne(t,a,{upsert:s})},Br=async(t,a)=>{await Se({_id:t},{$set:{canChooseFaction:a}})},Dr=async(t,a)=>{await Se({_id:t},{$set:{canChangeFaction:a}})},Sp=Object.freeze(Object.defineProperty({__proto__:null,canChangeFaction:Dr,canChooseFaction:Br,removeBirthday:async t=>{await Se({userId:t},{$set:{birthday:null}})},setBirthday:async(t,a)=>{await Se({userId:t},{$set:{birthday:a}})},updateFaction:async(t,a)=>{await Se({_id:t},{$set:{faction:a}})},updateInventorySort:async(t,a)=>{await Se({_id:t},{$set:{"settings.sort.inventory":a}})},updateReminderSettings:async(t,a,s)=>{await Se({_id:t},{$set:{[`settings.reminder.${a}`]:s}})},updateSendDailyQuest:async(t,a)=>{await Se({userId:t},{$set:{"settings.sendDailyQuest":a}})},updateSendDailyReport:async(t,a)=>{await Se({userId:t},{$set:{"settings.sendDailyReport":a}})}},Symbol.toStringTag,{value:"Module"})),Mp=async t=>{await G.deleteOne({userId:t})},kp=async t=>await zt.create({user:t}),Cp=async t=>await oe.create({user:t}),Rp=async t=>await Zt.create({user:t}),Ar=(t,a)=>{switch(t){case"dailyReport":return kp(a);case"games":return cr(a);case"inventory":return Jn(a);case"meta":return Vn(a);case"raid":return Cr(a);case"ornaments":return pr(a);case"quest":return Mr(a);case"questMeta":return Cp(a);case"shop":return Rp(a);case"cooldown":return nr(a);case"reminder":return[];case"crew":return null;case"encyclopedia":return Qn(a)}},Or=async(t,a,s)=>{if(Array.isArray(a)){const n=await t.populate(a);for(const r of a)n[r]||(n[r]=await Ar(r,t._id));return n}else{const n=await t.populate(a,s),r=n[a];return(!r||Array.isArray(r)&&r.length===0)&&(n[a]=await Ar(a,t._id)),n}},Nr=new h.Schema({warnedUserId:String,authorId:String,date:{type:Date,default:Date.now()},reason:{type:String,default:null}});Nr.index({warnedUserId:1});const We=((ri=h.models)==null?void 0:ri.Warns)||h.model("Warns",Nr),Up=Object.freeze(Object.defineProperty({__proto__:null,getUserWarnCount:async t=>await We.countDocuments({warnedUserId:t}),getUserWarns:async t=>await We.find({warnedUserId:t})},Symbol.toStringTag,{value:"Module"})),xp=async t=>await We.findOne({warnedUserId:t}),Bp=async t=>await We.create({...t}),Dp=async t=>await We.findByIdAndDelete(t),Ap=async t=>{var s;const a={};for(const n of Object.values(Xa)){const r=new n;for(const i of t.members){const d=await Jt(i,{_id:1});if((s=r.onCrewUpdate)!=null&&s.call(r,t,d._id)){const f=await r.complete(d._id,{});if(f){const p=a[d.id];a[d.id]=p?[d._id,[...p[1],[r,f]]]:[d._id,[[r,f]]]}}}}Object.values(a).forEach(([n,r])=>{le("crewUpdate",n,r)})},Op={localField:"_id",foreignField:"crew",justOne:!0},ea=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});ea.index({"meta.xp":-1}),ea.virtual("quest",{ref:"CrewQuest",...Op}),ea.post("findOneAndUpdate",async function(t){await Ap(t)});const ze=((ii=h.models)==null?void 0:ii.Crew)||h.model("Crew",ea),Np=(t,a)=>Math.ceil(a*(t.disintegration/100)*($r(t)||1)),$r=t=>new Date>=(t.meta.buffs.xp.expireAt??new Date(0))?!1:t.meta.buffs.xp.boost,$p=Object.freeze(Object.defineProperty({__proto__:null,calcXp:Np,getCrewRank:async t=>(await ze.aggregate([{$setWindowFields:{sortBy:{"meta.xp":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t._id}},{$project:{_id:1,"meta.xp":1,rank:1}}]))[0],getCrewRanking:async()=>ze.aggregate([{$sort:{"meta.xp":-1}},{$limit:10}]),hasXpBuff:$r},Symbol.toStringTag,{value:"Module"})),Me=async(t,a)=>{await ze.findOneAndUpdate({_id:t},a,{returnDocument:"after"})},Er=async(t,a,s)=>{a.isProgressive?await Me(t,{$addToSet:{"ornament.unlockedBadges":`${a.id}_${s}`}}):await Me(t,{$addToSet:{"ornament.unlockedBadges":a.id}})},Ep=Object.freeze(Object.defineProperty({__proto__:null,addBerry:async(t,a,s)=>{await Me(t,{$inc:{"meta.berry":a,[`stats.${s.toHexString()}.berry`]:a}})},addMember:async(t,a)=>{await Me(t,{$addToSet:{members:a}})},addXp:async(t,a,s)=>{await Me(t,{$inc:{"meta.xp":a,[`stats.${s.toHexString()}.xp`]:a}})},addXpBuff:async(t,a)=>{await Me(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,n]=[a-2,(a-3)*2+3];await Me(t,[{$set:{disintegration:{$max:[{$add:["$disintegration",-1*Ms(s,n)]},0]}}}])},increaseLimit:async(t,a)=>{await Me(t,{$inc:{limit:1,"meta.berry":-a}})},repair:async(t,a)=>{await Me(t,[{$set:{disintegration:{$min:[{$add:["$disintegration",a]},100]}}}])},unlockBadge:Er},Symbol.toStringTag,{value:"Module"})),Fp=async(t,a={})=>{const s=await ze.findById(t,a);return s||null},Ip=async(t,{name:a,description:s,channelId:n,faction:r})=>await ze.create({name:a,description:s,createdBy:t,channelId:n,faction:r,members:[t]}),Fr=(t,a)=>{for(const[,s]of Object.entries(t.daily??{}))if(!(s!=null&&s[a])||!be(s[a],new Date))return!1;return!0},Yp=Object.freeze(Object.defineProperty({__proto__:null,isAllDailyCompleted:Fr},Symbol.toStringTag,{value:"Module"})),Lp=async t=>{var n;const a={},{crew:s}=await t.populate("crew");for(const r of Object.values(za)){const i=new r;for(const d of s.members){const f=await Jt(d,{_id:1,crew:1}).then(p=>Or(p,"crew",{lastAllMembersDaily:1}));if(f.crew&&((n=i.onCrewQuestUpdate)!=null&&n.call(i,t,f.crew))){const p=await i.complete(f._id,{});if(p){const w=a[f.id];a[f.id]=w?[f._id,[...w[1],[i,p]]]:[f._id,[[i,p]]]}}}}Object.values(a).forEach(([r,i])=>{le("crewQuestUpdate",r,i)})},ws=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});ws.index({crew:1}),ws.post("findOneAndUpdate",async function(t){await Lp(t)});const ta=((li=h.models)==null?void 0:li.CrewQuest)||h.model("CrewQuest",ws),aa=async(t,a)=>{await ta.findOneAndUpdate({crew:t},a,{upsert:!0,returnDocument:"after"})},Ir=async(t,a)=>{await aa(t,{$addToSet:{completed:a}})},Yr=async(t,a,s)=>{await aa(t,[{$addFields:{[`daily.${a}.${s}`]:new Date}}])},Pp=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Yr,completeQuest:Ir,setActualVoiceMembers:async(t,a)=>{await aa(t,{$set:{"meta.actualVoiceMembers.amount":a,"meta.actualVoiceMembers.connectedAt":new Date}})},setMaxVoiceMembers:async(t,a)=>{await aa(t,{$set:{"meta.maxVoiceMembers":a}})}},Symbol.toStringTag,{value:"Module"})),bs=async t=>await ta.create({crew:t}),Tp=async t=>{const a=await ta.findOne({crew:t});return a||await bs(t)},Lr=(t,a)=>{switch(t){case"quest":return bs(a)}},jp=async(t,a,s)=>{if(Array.isArray(a)){const n=await t.populate(a);for(const r of a)n[r]||(n[r]=await Lr(r,t._id));return n}else{const n=await t.populate(a,s),r=n[a];return(!r||Array.isArray(r)&&r.length===0)&&(n[a]=await Lr(a,t._id)),n}},Qp=t=>{h.connect(t)};class qp extends h.Types.ObjectId{}c.ALL_QUESTS=Jh,c.BET_MAX_VALUE=Sh,c.BET_MIN_VALUE=vh,c.BackgroundShopItem=Un,c.BoostXpShopItem=xn,c.BottleShopItem=On,c.COOLDOWN_COMMANDS=Xm,c.ChestShopItem=Bn,c.CrewQuestQuests=za,c.CrewQuests=Xa,c.EDITO_READ=Mh,c.EquipmentShopItem=An,c.ObjectId=qp,c.ObjectShopItem=Dn,c.QUEST_ASSET_IMAGES=kh,c.Quest=o,c.RepairShopItem=Nn,c.StoreShopItem=$n,c.TitleShopItem=En,c.UserDailyQuests=Wa,c.UserInventoryQuests=Za,c.UserMetaQuests=Ja,c.UserOrnamentsQuests=es,c.UserQuestMetaQuests=ts,c.UserQuestQuests=as,c.banExists=mi,c.banGetters=ci,c.banModel=Fe,c.betModel=ra,c.completeCrewQuest=Ah,c.completeDailyQuest=Dh,c.connectToServices=Qp,c.createBan=ui,c.createBet=gi,c.createCrew=Ip,c.createCrewQuest=bs,c.createInvitations=wi,c.createReminder=Yc,c.createSettings=Rn,c.createUserCrew=tp,c.createWarn=Bp,c.crewGetters=$p,c.crewModel=ze,c.crewQuestGetters=Yp,c.crewQuestModel=ta,c.crewQuestUpdates=Pp,c.crewUpdates=Ep,c.deleteBan=hi,c.deleteInvitations=bi,c.deleteUserById=Mp,c.deleteWarn=Dp,c.emitQuestEvent=le,c.emitRaidEvent=ot,c.finWarnById=xp,c.findBan=fi,c.findBetById=yi,c.findCrewById=Fp,c.findCrewQuest=Tp,c.findInvitations=_i,c.findReminder=Ic,c.findSettingsByGuildId=Uc,c.findShop=Ln,c.findShopByType=Oc,c.findUser=xr,c.findUserById=Jt,c.findUserCooldown=Zm,c.findUserCrew=ir,c.findUserEncyclopedia=Qc,c.findUserGames=rp,c.findUserInventory=Wt,c.findUserMeta=ct,c.findUserOrnaments=fp,c.findUserQuest=gs,c.findUserRaid=_s,c.getBadgeEmojisFromId=Bh,c.getQuestBadgeEmojis=xh,c.invitationsModel=vt,c.onQuestEvent=Hc,c.onRaidEvent=sm,c.populateCrew=jp,c.populateUser=Or,c.questCanvas=bh,c.reminderGetters=$c,c.reminderModel=Ee,c.reminderUpdates=Fc,c.settingsModel=Ht,c.settingsUpdates=Rc,c.shopGetters=xc,c.shopModel=Kt,c.shopUpdates=Dc,c.updateUserCooldown=ht,c.updateUserCrew=us,c.updateUserDailyReport=or,c.updateUserEncyclopedia=jn,c.updateUserGames=Xt,c.updateUserInventory=de,c.updateUserMeta=E,c.updateUserOrnaments=K,c.updateUserQuest=gt,c.updateUserQuestMeta=k,c.updateUserRaid=ve,c.updateUserShop=Ur,c.userCooldownGetters=Nc,c.userCooldownModel=ft,c.userCooldownUpdates=zm,c.userCrewExists=ap,c.userCrewModel=Ve,c.userCrewUpdates=ep,c.userDailyReportModel=zt,c.userDailyReportUpdates=sp,c.userEncyclopediaGetters=Tc,c.userEncyclopediaModel=Gt,c.userEncyclopediaUpdates=jc,c.userGamesModel=mt,c.userGamesUpdates=np,c.userGetters=vp,c.userInventoryGetters=Pc,c.userInventoryModel=ut,c.userInventoryUpdates=Lm,c.userMetaGetters=Vm,c.userMetaModel=Ue,c.userMetaUpdates=Em,c.userModel=G,c.userOrnamentsModel=pt,c.userOrnamentsUpdates=up,c.userQuestGetters=hp,c.userQuestMetaModel=oe,c.userQuestMetaUpdates=Um,c.userQuestModel=yt,c.userQuestUpdates=pp,c.userRaidGetters=yp,c.userRaidModel=wt,c.userRaidUpdates=gp,c.userShopGetters=_p,c.userShopModel=Zt,c.userShopUpdates=wp,c.userUpdates=Sp,c.warnGetters=Up,c.warnModel=We,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
|
9
|
+
`+new Error().stack),s=!1}return a.apply(this,arguments)},a)}var Bs={};function Ds(t,a){y.deprecationHandler!=null&&y.deprecationHandler(t,a),Bs[t]||(xs(a),Bs[t]=!0)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null;function ne(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function ki(t){var a,s;for(s in t)C(t,s)&&(a=t[s],ne(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),n;for(n in a)C(a,n)&&(De(t[n])&&De(a[n])?(s[n]={},ke(s[n],t[n]),ke(s[n],a[n])):a[n]!=null?s[n]=a[n]:delete s[n]);for(n in t)C(t,n)&&!C(a,n)&&De(t[n])&&(s[n]=ke({},s[n]));return s}function ha(t){t!=null&&this.set(t)}var ma;Object.keys?ma=Object.keys:ma=function(t){var a,s=[];for(a in t)C(t,a)&&s.push(a);return s};var Ci={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ri(t,a,s){var n=this._calendar[t]||this._calendar.sameElse;return ne(n)?n.call(a,s):n}function re(t,a,s){var n=""+Math.abs(t),r=a-n.length,i=t>=0;return(i?s?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var pa=/(\[[^\[]*\])|(\\)?([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={},Ie={};function _(t,a,s,n){var r=n;typeof n=="string"&&(r=function(){return this[n]()}),t&&(Ie[t]=r),a&&(Ie[a[0]]=function(){return re(r.apply(this,arguments),a[1],a[2])}),s&&(Ie[s]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function Ui(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function xi(t){var a=t.match(pa),s,n;for(s=0,n=a.length;s<n;s++)Ie[a[s]]?a[s]=Ie[a[s]]:a[s]=Ui(a[s]);return function(r){var i="",d;for(d=0;d<n;d++)i+=ne(a[d])?a[d].call(r,t):a[d];return i}}function Rt(t,a){return t.isValid()?(a=As(a,t.localeData()),ya[a]=ya[a]||xi(a),ya[a](t)):t.localeData().invalidDate()}function As(t,a){var s=5;function n(r){return a.longDateFormat(r)||r}for(Ct.lastIndex=0;s>=0&&Ct.test(t);)t=t.replace(Ct,n),Ct.lastIndex=0,s-=1;return t}var Bi={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 Di(t){var a=this._longDateFormat[t],s=this._longDateFormat[t.toUpperCase()];return a||!s?a:(this._longDateFormat[t]=s.match(pa).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[t])}var Ai="Invalid date";function Oi(){return this._invalidDate}var Ni="%d",$i=/\d{1,2}/;function Ei(t){return this._ordinal.replace("%d",t)}var Fi={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 Ii(t,a,s,n){var r=this._relativeTime[s];return ne(r)?r(t,a,s,n):r.replace(/%d/i,t)}function Yi(t,a){var s=this._relativeTime[t>0?"future":"past"];return ne(s)?s(a):s.replace(/%s/i,a)}var Os={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 W(t){return typeof t=="string"?Os[t]||Os[t.toLowerCase()]:void 0}function ga(t){var a={},s,n;for(n in t)C(t,n)&&(s=W(n),s&&(a[s]=t[n]));return a}var Li={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 Pi(t){var a=[],s;for(s in t)C(t,s)&&a.push({unit:s,priority:Li[s]});return a.sort(function(n,r){return n.priority-r.priority}),a}var Ns=/\d/,H=/\d\d/,$s=/\d{3}/,_a=/\d{4}/,Ut=/[+-]?\d{6}/,D=/\d\d?/,Es=/\d\d\d\d?/,Fs=/\d\d\d\d\d\d?/,xt=/\d{1,3}/,wa=/\d{1,4}/,Bt=/[+-]?\d{1,6}/,Ye=/\d+/,Dt=/[+-]?\d+/,Ti=/Z|[+-]\d\d:?\d\d/gi,At=/Z|[+-]\d\d(?::?\d\d)?/gi,ji=/[+-]?\d+(\.\d{1,3})?/,Je=/[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,Le=/^[1-9]\d?/,ba=/^([1-9]\d|\d)/,Ot;Ot={};function g(t,a,s){Ot[t]=ne(a)?a:function(n,r){return n&&s?s:a}}function Qi(t,a){return C(Ot,t)?Ot[t](a._strict,a._locale):new RegExp(qi(t))}function qi(t){return fe(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,s,n,r,i){return s||n||r||i}))}function fe(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 x(t,a){var s,n=a,r;for(typeof t=="string"&&(t=[t]),ue(a)&&(n=function(i,d){d[a]=M(i)}),r=t.length,s=0;s<r;s++)Sa[t[s]]=n}function et(t,a){x(t,function(s,n,r,i){r._w=r._w||{},a(s,r._w,r,i)})}function Hi(t,a,s){a!=null&&C(Sa,t)&&Sa[t](a,s._a,s,t)}function Nt(t){return t%4===0&&t%100!==0||t%400===0}var L=0,he=1,ie=2,$=3,ee=4,me=5,Ae=6,Ki=7,Gi=8;_("Y",0,0,function(){var t=this.year();return t<=9999?re(t,4):"+"+t}),_(0,["YY",2],0,function(){return this.year()%100}),_(0,["YYYY",4],0,"year"),_(0,["YYYYY",5],0,"year"),_(0,["YYYYYY",6,!0],0,"year"),g("Y",Dt),g("YY",D,H),g("YYYY",wa,_a),g("YYYYY",Bt,Ut),g("YYYYYY",Bt,Ut),x(["YYYYY","YYYYYY"],L),x("YYYY",function(t,a){a[L]=t.length===2?y.parseTwoDigitYear(t):M(t)}),x("YY",function(t,a){a[L]=y.parseTwoDigitYear(t)}),x("Y",function(t,a){a[L]=parseInt(t,10)});function tt(t){return Nt(t)?366:365}y.parseTwoDigitYear=function(t){return M(t)+(M(t)>68?1900:2e3)};var Is=Pe("FullYear",!0);function Vi(){return Nt(this.year())}function Pe(t,a){return function(s){return s!=null?(Ys(this,t,s),y.updateOffset(this,a),this):at(this,t)}}function at(t,a){if(!t.isValid())return NaN;var s=t._d,n=t._isUTC;switch(a){case"Milliseconds":return n?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return n?s.getUTCSeconds():s.getSeconds();case"Minutes":return n?s.getUTCMinutes():s.getMinutes();case"Hours":return n?s.getUTCHours():s.getHours();case"Date":return n?s.getUTCDate():s.getDate();case"Day":return n?s.getUTCDay():s.getDay();case"Month":return n?s.getUTCMonth():s.getMonth();case"FullYear":return n?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Ys(t,a,s){var n,r,i,d,f;if(!(!t.isValid()||isNaN(s))){switch(n=t._d,r=t._isUTC,a){case"Milliseconds":return void(r?n.setUTCMilliseconds(s):n.setMilliseconds(s));case"Seconds":return void(r?n.setUTCSeconds(s):n.setSeconds(s));case"Minutes":return void(r?n.setUTCMinutes(s):n.setMinutes(s));case"Hours":return void(r?n.setUTCHours(s):n.setHours(s));case"Date":return void(r?n.setUTCDate(s):n.setDate(s));case"FullYear":break;default:return}i=s,d=t.month(),f=t.date(),f=f===29&&d===1&&!Nt(i)?28:f,r?n.setUTCFullYear(i,d,f):n.setFullYear(i,d,f)}}function Wi(t){return t=W(t),ne(this[t])?this[t]():this}function zi(t,a){if(typeof t=="object"){t=ga(t);var s=Pi(t),n,r=s.length;for(n=0;n<r;n++)this[s[n].unit](t[s[n].unit])}else if(t=W(t),ne(this[t]))return this[t](a);return this}function Xi(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=Xi(a,12);return t+=(a-s)/12,s===1?Nt(t)?29:28:31-s%7%2}_("M",["MM",2],"Mo",function(){return this.month()+1}),_("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),_("MMMM",0,0,function(t){return this.localeData().months(this,t)}),g("M",D,Le),g("MM",D,H),g("MMM",function(t,a){return a.monthsShortRegex(t)}),g("MMMM",function(t,a){return a.monthsRegex(t)}),x(["M","MM"],function(t,a){a[he]=M(t)-1}),x(["MMM","MMMM"],function(t,a,s,n){var r=s._locale.monthsParse(t,n,s._strict);r!=null?a[he]=r:b(s).invalidMonth=t});var Zi="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?/,Ji=Je,el=Je;function tl(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 al(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 sl(t,a,s){var n,r,i,d=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=se([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return s?a==="MMM"?(r=N.call(this._shortMonthsParse,d),r!==-1?r:null):(r=N.call(this._longMonthsParse,d),r!==-1?r:null):a==="MMM"?(r=N.call(this._shortMonthsParse,d),r!==-1?r:(r=N.call(this._longMonthsParse,d),r!==-1?r:null)):(r=N.call(this._longMonthsParse,d),r!==-1?r:(r=N.call(this._shortMonthsParse,d),r!==-1?r:null))}function nl(t,a,s){var n,r,i;if(this._monthsParseExact)return sl.call(this,t,a,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++)if(r=se([2e3,n]),s&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!s&&!this._monthsParse[n]&&(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),s&&a==="MMMM"&&this._longMonthsParse[n].test(t)||s&&a==="MMM"&&this._shortMonthsParse[n].test(t)||!s&&this._monthsParse[n].test(t))return n}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),!ue(a))return t}var s=a,n=t.date();return n=n<29?n:Math.min(n,Ma(t.year(),s)),t._isUTC?t._d.setUTCMonth(s,n):t._d.setMonth(s,n),t}function js(t){return t!=null?(Ts(this,t),y.updateOffset(this,!0),this):at(this,"Month")}function rl(){return Ma(this.year(),this.month())}function il(t){return this._monthsParseExact?(C(this,"_monthsRegex")||Qs.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(C(this,"_monthsShortRegex")||(this._monthsShortRegex=Ji),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function ll(t){return this._monthsParseExact?(C(this,"_monthsRegex")||Qs.call(this),t?this._monthsStrictRegex:this._monthsRegex):(C(this,"_monthsRegex")||(this._monthsRegex=el),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function Qs(){function t(p,w){return w.length-p.length}var a=[],s=[],n=[],r,i,d,f;for(r=0;r<12;r++)i=se([2e3,r]),d=fe(this.monthsShort(i,"")),f=fe(this.months(i,"")),a.push(d),s.push(f),n.push(f),n.push(d);a.sort(t),s.sort(t),n.sort(t),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ol(t,a,s,n,r,i,d){var f;return t<100&&t>=0?(f=new Date(t+400,a,s,n,r,i,d),isFinite(f.getFullYear())&&f.setFullYear(t)):f=new Date(t,a,s,n,r,i,d),f}function st(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 n=7+a-s,r=(7+st(t,0,n).getUTCDay()-a)%7;return-r+n-1}function qs(t,a,s,n,r){var i=(7+s-n)%7,d=$t(t,n,r),f=1+7*(a-1)+i+d,p,w;return f<=0?(p=t-1,w=tt(p)+f):f>tt(t)?(p=t+1,w=f-tt(t)):(p=t,w=f),{year:p,dayOfYear:w}}function nt(t,a,s){var n=$t(t.year(),a,s),r=Math.floor((t.dayOfYear()-n-1)/7)+1,i,d;return r<1?(d=t.year()-1,i=r+pe(d,a,s)):r>pe(t.year(),a,s)?(i=r-pe(t.year(),a,s),d=t.year()+1):(d=t.year(),i=r),{week:i,year:d}}function pe(t,a,s){var n=$t(t,a,s),r=$t(t+1,a,s);return(tt(t)-n+r)/7}_("w",["ww",2],"wo","week"),_("W",["WW",2],"Wo","isoWeek"),g("w",D,Le),g("ww",D,H),g("W",D,Le),g("WW",D,H),et(["w","ww","W","WW"],function(t,a,s,n){a[n.substr(0,1)]=M(t)});function dl(t){return nt(t,this._week.dow,this._week.doy).week}var cl={dow:0,doy:6};function ul(){return this._week.dow}function fl(){return this._week.doy}function hl(t){var a=this.localeData().week(this);return t==null?a:this.add((t-a)*7,"d")}function ml(t){var a=nt(this,1,4).week;return t==null?a:this.add((t-a)*7,"d")}_("d",0,"do","day"),_("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),_("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),_("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),_("e",0,0,"weekday"),_("E",0,0,"isoWeekday"),g("d",D),g("e",D),g("E",D),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)}),et(["dd","ddd","dddd"],function(t,a,s,n){var r=s._locale.weekdaysParse(t,n,s._strict);r!=null?a.d=r:b(s).invalidWeekday=t}),et(["d","e","E"],function(t,a,s,n){a[n]=M(t)});function pl(t,a){return typeof t!="string"?t:isNaN(t)?(t=a.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function yl(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 gl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Hs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),_l="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wl=Je,bl=Je,Sl=Je;function Ml(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 vl(t){return t===!0?va(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function kl(t){return t===!0?va(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Cl(t,a,s){var n,r,i,d=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=se([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return s?a==="dddd"?(r=N.call(this._weekdaysParse,d),r!==-1?r:null):a==="ddd"?(r=N.call(this._shortWeekdaysParse,d),r!==-1?r:null):(r=N.call(this._minWeekdaysParse,d),r!==-1?r:null):a==="dddd"?(r=N.call(this._weekdaysParse,d),r!==-1||(r=N.call(this._shortWeekdaysParse,d),r!==-1)?r:(r=N.call(this._minWeekdaysParse,d),r!==-1?r:null)):a==="ddd"?(r=N.call(this._shortWeekdaysParse,d),r!==-1||(r=N.call(this._weekdaysParse,d),r!==-1)?r:(r=N.call(this._minWeekdaysParse,d),r!==-1?r:null)):(r=N.call(this._minWeekdaysParse,d),r!==-1||(r=N.call(this._weekdaysParse,d),r!==-1)?r:(r=N.call(this._shortWeekdaysParse,d),r!==-1?r:null))}function Rl(t,a,s){var n,r,i;if(this._weekdaysParseExact)return Cl.call(this,t,a,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++)if(r=se([2e3,1]).day(n),s&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),s&&a==="dddd"&&this._fullWeekdaysParse[n].test(t)||s&&a==="ddd"&&this._shortWeekdaysParse[n].test(t)||s&&a==="dd"&&this._minWeekdaysParse[n].test(t)||!s&&this._weekdaysParse[n].test(t))return n}function Ul(t){if(!this.isValid())return t!=null?this:NaN;var a=at(this,"Day");return t!=null?(t=pl(t,this.localeData()),this.add(t-a,"d")):a}function xl(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 Bl(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var a=yl(t,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function Dl(t){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||ka.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(C(this,"_weekdaysRegex")||(this._weekdaysRegex=wl),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Al(t){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||ka.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(C(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=bl),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ol(t){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||ka.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(C(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Sl),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ka(){function t(B,I){return I.length-B.length}var a=[],s=[],n=[],r=[],i,d,f,p,w;for(i=0;i<7;i++)d=se([2e3,1]).day(i),f=fe(this.weekdaysMin(d,"")),p=fe(this.weekdaysShort(d,"")),w=fe(this.weekdays(d,"")),a.push(f),s.push(p),n.push(w),r.push(f),r.push(p),r.push(w);a.sort(t),s.sort(t),n.sort(t),r.sort(t),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ca(){return this.hours()%12||12}function Nl(){return this.hours()||24}_("H",["HH",2],0,"hour"),_("h",["hh",2],0,Ca),_("k",["kk",2],0,Nl),_("hmm",0,0,function(){return""+Ca.apply(this)+re(this.minutes(),2)}),_("hmmss",0,0,function(){return""+Ca.apply(this)+re(this.minutes(),2)+re(this.seconds(),2)}),_("Hmm",0,0,function(){return""+this.hours()+re(this.minutes(),2)}),_("Hmmss",0,0,function(){return""+this.hours()+re(this.minutes(),2)+re(this.seconds(),2)});function Ks(t,a){_(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}Ks("a",!0),Ks("A",!1);function Gs(t,a){return a._meridiemParse}g("a",Gs),g("A",Gs),g("H",D,ba),g("h",D,Le),g("k",D,Le),g("HH",D,H),g("hh",D,H),g("kk",D,H),g("hmm",Es),g("hmmss",Fs),g("Hmm",Es),g("Hmmss",Fs),x(["H","HH"],$),x(["k","kk"],function(t,a,s){var n=M(t);a[$]=n===24?0:n}),x(["a","A"],function(t,a,s){s._isPm=s._locale.isPM(t),s._meridiem=t}),x(["h","hh"],function(t,a,s){a[$]=M(t),b(s).bigHour=!0}),x("hmm",function(t,a,s){var n=t.length-2;a[$]=M(t.substr(0,n)),a[ee]=M(t.substr(n)),b(s).bigHour=!0}),x("hmmss",function(t,a,s){var n=t.length-4,r=t.length-2;a[$]=M(t.substr(0,n)),a[ee]=M(t.substr(n,2)),a[me]=M(t.substr(r)),b(s).bigHour=!0}),x("Hmm",function(t,a,s){var n=t.length-2;a[$]=M(t.substr(0,n)),a[ee]=M(t.substr(n))}),x("Hmmss",function(t,a,s){var n=t.length-4,r=t.length-2;a[$]=M(t.substr(0,n)),a[ee]=M(t.substr(n,2)),a[me]=M(t.substr(r))});function $l(t){return(t+"").toLowerCase().charAt(0)==="p"}var El=/[ap]\.?m?\.?/i,Fl=Pe("Hours",!0);function Il(t,a,s){return t>11?s?"pm":"PM":s?"am":"AM"}var Vs={calendar:Ci,longDateFormat:Bi,invalidDate:Ai,ordinal:Ni,dayOfMonthOrdinalParse:$i,relativeTime:Fi,months:Zi,monthsShort:Ls,week:cl,weekdays:gl,weekdaysMin:_l,weekdaysShort:Hs,meridiemParse:El},O={},rt={},it;function Yl(t,a){var s,n=Math.min(t.length,a.length);for(s=0;s<n;s+=1)if(t[s]!==a[s])return s;return n}function Ws(t){return t&&t.toLowerCase().replace("_","-")}function Ll(t){for(var a=0,s,n,r,i;a<t.length;){for(i=Ws(t[a]).split("-"),s=i.length,n=Ws(t[a+1]),n=n?n.split("-"):null;s>0;){if(r=Et(i.slice(0,s).join("-")),r)return r;if(n&&n.length>=s&&Yl(i,n)>=s-1)break;s--}a++}return it}function Pl(t){return!!(t&&t.match("^[^/\\\\]*$"))}function Et(t){var a=null,s;if(O[t]===void 0&&typeof module<"u"&&module&&module.exports&&Pl(t))try{a=it._abbr,s=require,s("./locale/"+t),Ce(a)}catch{O[t]=null}return O[t]}function Ce(t,a){var s;return t&&(Q(a)?s=ye(t):s=Ra(t,a),s?it=s:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),it._abbr}function Ra(t,a){if(a!==null){var s,n=Vs;if(a.abbr=t,O[t]!=null)Ds("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."),n=O[t]._config;else if(a.parentLocale!=null)if(O[a.parentLocale]!=null)n=O[a.parentLocale]._config;else if(s=Et(a.parentLocale),s!=null)n=s._config;else return rt[a.parentLocale]||(rt[a.parentLocale]=[]),rt[a.parentLocale].push({name:t,config:a}),null;return O[t]=new ha(fa(n,a)),rt[t]&&rt[t].forEach(function(r){Ra(r.name,r.config)}),Ce(t),O[t]}else return delete O[t],null}function Tl(t,a){if(a!=null){var s,n,r=Vs;O[t]!=null&&O[t].parentLocale!=null?O[t].set(fa(O[t]._config,a)):(n=Et(t),n!=null&&(r=n._config),a=fa(r,a),n==null&&(a.abbr=t),s=new ha(a),s.parentLocale=O[t],O[t]=s),Ce(t)}else O[t]!=null&&(O[t].parentLocale!=null?(O[t]=O[t].parentLocale,t===Ce()&&Ce(t)):O[t]!=null&&delete O[t]);return O[t]}function ye(t){var a;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return it;if(!Z(t)){if(a=Et(t),a)return a;t=[t]}return Ll(t)}function jl(){return ma(O)}function Ua(t){var a,s=t._a;return s&&b(t).overflow===-2&&(a=s[he]<0||s[he]>11?he:s[ie]<1||s[ie]>Ma(s[L],s[he])?ie:s[$]<0||s[$]>24||s[$]===24&&(s[ee]!==0||s[me]!==0||s[Ae]!==0)?$: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<L||a>ie)&&(a=ie),b(t)._overflowWeeks&&a===-1&&(a=Ki),b(t)._overflowWeekday&&a===-1&&(a=Gi),b(t).overflow=a),t}var Ql=/^\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)?)?$/,ql=/^\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)?)?$/,Hl=/Z|[+-]\d\d(?::?\d\d)?/,Ft=[["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]],xa=[["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/]],Kl=/^\/?Date\((-?\d+)/i,Gl=/^(?:(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}))$/,Vl={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,n=t._i,r=Ql.exec(n)||ql.exec(n),i,d,f,p,w=Ft.length,B=xa.length;if(r){for(b(t).iso=!0,a=0,s=w;a<s;a++)if(Ft[a][1].exec(r[1])){d=Ft[a][0],i=Ft[a][2]!==!1;break}if(d==null){t._isValid=!1;return}if(r[3]){for(a=0,s=B;a<s;a++)if(xa[a][1].exec(r[3])){f=(r[2]||" ")+xa[a][0];break}if(f==null){t._isValid=!1;return}}if(!i&&f!=null){t._isValid=!1;return}if(r[4])if(Hl.exec(r[4]))p="Z";else{t._isValid=!1;return}t._f=d+(f||"")+(p||""),Da(t)}else t._isValid=!1}function Wl(t,a,s,n,r,i){var d=[zl(t),Ls.indexOf(a),parseInt(s,10),parseInt(n,10),parseInt(r,10)];return i&&d.push(parseInt(i,10)),d}function zl(t){var a=parseInt(t,10);return a<=49?2e3+a:a<=999?1900+a:a}function Xl(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Zl(t,a,s){if(t){var n=Hs.indexOf(t),r=new Date(a[0],a[1],a[2]).getDay();if(n!==r)return b(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function Jl(t,a,s){if(t)return Vl[t];if(a)return 0;var n=parseInt(s,10),r=n%100,i=(n-r)/100;return i*60+r}function Xs(t){var a=Gl.exec(Xl(t._i)),s;if(a){if(s=Wl(a[4],a[3],a[2],a[5],a[6],a[7]),!Zl(a[1],s,t))return;t._a=s,t._tzm=Jl(a[8],a[9],a[10]),t._d=st.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),b(t).rfc2822=!0}else t._isValid=!1}function eo(t){var a=Kl.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=V("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 Te(t,a,s){return t??a??s}function to(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,n=[],r,i,d;if(!t._d){for(r=to(t),t._w&&t._a[ie]==null&&t._a[he]==null&&ao(t),t._dayOfYear!=null&&(d=Te(t._a[L],r[L]),(t._dayOfYear>tt(d)||t._dayOfYear===0)&&(b(t)._overflowDayOfYear=!0),s=st(d,0,t._dayOfYear),t._a[he]=s.getUTCMonth(),t._a[ie]=s.getUTCDate()),a=0;a<3&&t._a[a]==null;++a)t._a[a]=n[a]=r[a];for(;a<7;a++)t._a[a]=n[a]=t._a[a]==null?a===2?1:0:t._a[a];t._a[$]===24&&t._a[ee]===0&&t._a[me]===0&&t._a[Ae]===0&&(t._nextDay=!0,t._a[$]=0),t._d=(t._useUTC?st:ol).apply(null,n),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[$]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(b(t).weekdayMismatch=!0)}}function ao(t){var a,s,n,r,i,d,f,p,w;a=t._w,a.GG!=null||a.W!=null||a.E!=null?(i=1,d=4,s=Te(a.GG,t._a[L],nt(A(),1,4).year),n=Te(a.W,1),r=Te(a.E,1),(r<1||r>7)&&(p=!0)):(i=t._locale._week.dow,d=t._locale._week.doy,w=nt(A(),i,d),s=Te(a.gg,t._a[L],w.year),n=Te(a.w,w.week),a.d!=null?(r=a.d,(r<0||r>6)&&(p=!0)):a.e!=null?(r=a.e+i,(a.e<0||a.e>6)&&(p=!0)):r=i),n<1||n>pe(s,i,d)?b(t)._overflowWeeks=!0:p!=null?b(t)._overflowWeekday=!0:(f=qs(s,n,r,i,d),t._a[L]=f.year,t._dayOfYear=f.dayOfYear)}y.ISO_8601=function(){},y.RFC_2822=function(){};function Da(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,n,r,i,d,f=a.length,p=0,w,B;for(r=As(t._f,t._locale).match(pa)||[],B=r.length,s=0;s<B;s++)i=r[s],n=(a.match(Qi(i,t))||[])[0],n&&(d=a.substr(0,a.indexOf(n)),d.length>0&&b(t).unusedInput.push(d),a=a.slice(a.indexOf(n)+n.length),p+=n.length),Ie[i]?(n?b(t).empty=!1:b(t).unusedTokens.push(i),Hi(i,n,t)):t._strict&&!n&&b(t).unusedTokens.push(i);b(t).charsLeftOver=f-p,a.length>0&&b(t).unusedInput.push(a),t._a[$]<=12&&b(t).bigHour===!0&&t._a[$]>0&&(b(t).bigHour=void 0),b(t).parsedDateParts=t._a.slice(0),b(t).meridiem=t._meridiem,t._a[$]=so(t._locale,t._a[$],t._meridiem),w=b(t).era,w!==null&&(t._a[L]=t._locale.erasConvertYear(w,t._a[L])),Ba(t),Ua(t)}function so(t,a,s){var n;return s==null?a:t.meridiemHour!=null?t.meridiemHour(a,s):(t.isPM!=null&&(n=t.isPM(s),n&&a<12&&(a+=12),!n&&a===12&&(a=0)),a)}function no(t){var a,s,n,r,i,d,f=!1,p=t._f.length;if(p===0){b(t).invalidFormat=!0,t._d=new Date(NaN);return}for(r=0;r<p;r++)i=0,d=!1,a=ua({},t),t._useUTC!=null&&(a._useUTC=t._useUTC),a._f=t._f[r],Da(a),da(a)&&(d=!0),i+=b(a).charsLeftOver,i+=b(a).unusedTokens.length*10,b(a).score=i,f?i<n&&(n=i,s=a):(n==null||i<n||d)&&(n=i,s=a,d&&(f=!0));ke(t,s||a)}function ro(t){if(!t._d){var a=ga(t._i),s=a.day===void 0?a.date:a.day;t._a=Rs([a.year,a.month,s,a.hour,a.minute,a.second,a.millisecond],function(n){return n&&parseInt(n,10)}),Ba(t)}}function io(t){var a=new Ze(Ua(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||ye(t._l),a===null||s===void 0&&a===""?kt({nullInput:!0}):(typeof a=="string"&&(t._i=a=t._locale.preparse(a)),J(a)?new Ze(Ua(a)):(Xe(a)?t._d=a:Z(s)?no(t):s?Da(t):lo(t),da(t)||(t._d=null),t))}function lo(t){var a=t._i;Q(a)?t._d=new Date(y.now()):Xe(a)?t._d=new Date(a.valueOf()):typeof a=="string"?eo(t):Z(a)?(t._a=Rs(a.slice(0),function(s){return parseInt(s,10)}),Ba(t)):De(a)?ro(t):ue(a)?t._d=new Date(a):y.createFromInputFallback(t)}function Js(t,a,s,n,r){var i={};return(a===!0||a===!1)&&(n=a,a=void 0),(s===!0||s===!1)&&(n=s,s=void 0),(De(t)&&la(t)||Z(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=s,i._i=t,i._f=a,i._strict=n,io(i)}function A(t,a,s,n){return Js(t,a,s,n,!1)}var oo=V("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:kt()}),co=V("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:kt()});function en(t,a){var s,n;if(a.length===1&&Z(a[0])&&(a=a[0]),!a.length)return A();for(s=a[0],n=1;n<a.length;++n)(!a[n].isValid()||a[n][t](s))&&(s=a[n]);return s}function uo(){var t=[].slice.call(arguments,0);return en("isBefore",t)}function fo(){var t=[].slice.call(arguments,0);return en("isAfter",t)}var ho=function(){return Date.now?Date.now():+new Date},lt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function mo(t){var a,s=!1,n,r=lt.length;for(a in t)if(C(t,a)&&!(N.call(lt,a)!==-1&&(t[a]==null||!isNaN(t[a]))))return!1;for(n=0;n<r;++n)if(t[lt[n]]){if(s)return!1;parseFloat(t[lt[n]])!==M(t[lt[n]])&&(s=!0)}return!0}function po(){return this._isValid}function yo(){return te(NaN)}function It(t){var a=ga(t),s=a.year||0,n=a.quarter||0,r=a.month||0,i=a.week||a.isoWeek||0,d=a.day||0,f=a.hour||0,p=a.minute||0,w=a.second||0,B=a.millisecond||0;this._isValid=mo(a),this._milliseconds=+B+w*1e3+p*6e4+f*1e3*60*60,this._days=+d+i*7,this._months=+r+n*3+s*12,this._data={},this._locale=ye(),this._bubble()}function Yt(t){return t instanceof It}function Aa(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function go(t,a,s){var n=Math.min(t.length,a.length),r=Math.abs(t.length-a.length),i=0,d;for(d=0;d<n;d++)M(t[d])!==M(a[d])&&i++;return i+r}function tn(t,a){_(t,0,0,function(){var s=this.utcOffset(),n="+";return s<0&&(s=-s,n="-"),n+re(~~(s/60),2)+a+re(~~s%60,2)})}tn("Z",":"),tn("ZZ",""),g("Z",At),g("ZZ",At),x(["Z","ZZ"],function(t,a,s){s._useUTC=!0,s._tzm=Oa(At,t)});var _o=/([\+\-]|\d\d)/gi;function Oa(t,a){var s=(a||"").match(t),n,r,i;return s===null?null:(n=s[s.length-1]||[],r=(n+"").match(_o)||["-",0,0],i=+(r[1]*60)+M(r[2]),i===0?0:r[0]==="+"?i:-i)}function Na(t,a){var s,n;return a._isUTC?(s=a.clone(),n=(J(t)||Xe(t)?t.valueOf():A(t).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+n),y.updateOffset(s,!1),s):A(t).local()}function $a(t){return-Math.round(t._d.getTimezoneOffset())}y.updateOffset=function(){};function wo(t,a,s){var n=this._offset||0,r;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=Oa(At,t),t===null)return this}else Math.abs(t)<16&&!s&&(t=t*60);return!this._isUTC&&a&&(r=$a(this)),this._offset=t,this._isUTC=!0,r!=null&&this.add(r,"m"),n!==t&&(!a||this._changeInProgress?rn(this,te(t-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:$a(this)}function bo(t,a){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,a),this):-this.utcOffset()}function So(t){return this.utcOffset(0,t)}function Mo(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract($a(this),"m")),this}function vo(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=Oa(Ti,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function ko(t){return this.isValid()?(t=t?A(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function Co(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ro(){if(!Q(this._isDSTShifted))return this._isDSTShifted;var t={},a;return ua(t,this),t=Zs(t),t._a?(a=t._isUTC?se(t._a):A(t._a),this._isDSTShifted=this.isValid()&&go(t._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Uo(){return this.isValid()?!this._isUTC:!1}function xo(){return this.isValid()?this._isUTC:!1}function an(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Bo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Do=/^(-|\+)?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,n=null,r,i,d;return Yt(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:ue(t)||!isNaN(+t)?(s={},a?s[a]=+t:s.milliseconds=+t):(n=Bo.exec(t))?(r=n[1]==="-"?-1:1,s={y:0,d:M(n[ie])*r,h:M(n[$])*r,m:M(n[ee])*r,s:M(n[me])*r,ms:M(Aa(n[Ae]*1e3))*r}):(n=Do.exec(t))?(r=n[1]==="-"?-1:1,s={y:Oe(n[2],r),M:Oe(n[3],r),w:Oe(n[4],r),d:Oe(n[5],r),h:Oe(n[6],r),m:Oe(n[7],r),s:Oe(n[8],r)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(d=Ao(A(s.from),A(s.to)),s={},s.ms=d.milliseconds,s.M=d.months),i=new It(s),Yt(t)&&C(t,"_locale")&&(i._locale=t._locale),Yt(t)&&C(t,"_isValid")&&(i._isValid=t._isValid),i}te.fn=It.prototype,te.invalid=yo;function Oe(t,a){var s=t&&parseFloat(t.replace(",","."));return(isNaN(s)?0:s)*a}function sn(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 Ao(t,a){var s;return t.isValid()&&a.isValid()?(a=Na(a,t),t.isBefore(a)?s=sn(t,a):(s=sn(a,t),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function nn(t,a){return function(s,n){var r,i;return n!==null&&!isNaN(+n)&&(Ds(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=n,n=i),r=te(s,n),rn(this,r,t),this}}function rn(t,a,s,n){var r=a._milliseconds,i=Aa(a._days),d=Aa(a._months);t.isValid()&&(n=n??!0,d&&Ts(t,at(t,"Month")+d*s),i&&Ys(t,"Date",at(t,"Date")+i*s),r&&t._d.setTime(t._d.valueOf()+r*s),n&&y.updateOffset(t,i||d))}var Oo=nn(1,"add"),No=nn(-1,"subtract");function ln(t){return typeof t=="string"||t instanceof String}function $o(t){return J(t)||Xe(t)||ln(t)||ue(t)||Fo(t)||Eo(t)||t===null||t===void 0}function Eo(t){var a=De(t)&&!la(t),s=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,i,d=n.length;for(r=0;r<d;r+=1)i=n[r],s=s||C(t,i);return a&&s}function Fo(t){var a=Z(t),s=!1;return a&&(s=t.filter(function(n){return!ue(n)&&ln(t)}).length===0),a&&s}function Io(t){var a=De(t)&&!la(t),s=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,i;for(r=0;r<n.length;r+=1)i=n[r],s=s||C(t,i);return a&&s}function Yo(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 Lo(t,a){arguments.length===1&&(arguments[0]?$o(arguments[0])?(t=arguments[0],a=void 0):Io(arguments[0])&&(a=arguments[0],t=void 0):(t=void 0,a=void 0));var s=t||A(),n=Na(s,this).startOf("day"),r=y.calendarFormat(this,n)||"sameElse",i=a&&(ne(a[r])?a[r].call(this,s):a[r]);return this.format(i||this.localeData().calendar(r,this,A(s)))}function Po(){return new Ze(this)}function To(t,a){var s=J(t)?t:A(t);return this.isValid()&&s.isValid()?(a=W(a)||"millisecond",a==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(a).valueOf()):!1}function jo(t,a){var s=J(t)?t:A(t);return this.isValid()&&s.isValid()?(a=W(a)||"millisecond",a==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(a).valueOf()<s.valueOf()):!1}function Qo(t,a,s,n){var r=J(t)?t:A(t),i=J(a)?a:A(a);return this.isValid()&&r.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(r,s):!this.isBefore(r,s))&&(n[1]===")"?this.isBefore(i,s):!this.isAfter(i,s))):!1}function qo(t,a){var s=J(t)?t:A(t),n;return this.isValid()&&s.isValid()?(a=W(a)||"millisecond",a==="millisecond"?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(a).valueOf()<=n&&n<=this.clone().endOf(a).valueOf())):!1}function Ho(t,a){return this.isSame(t,a)||this.isAfter(t,a)}function Ko(t,a){return this.isSame(t,a)||this.isBefore(t,a)}function Go(t,a,s){var n,r,i;if(!this.isValid())return NaN;if(n=Na(t,this),!n.isValid())return NaN;switch(r=(n.utcOffset()-this.utcOffset())*6e4,a=W(a),a){case"year":i=Lt(this,n)/12;break;case"month":i=Lt(this,n);break;case"quarter":i=Lt(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-r)/864e5;break;case"week":i=(this-n-r)/6048e5;break;default:i=this-n}return s?i:z(i)}function Lt(t,a){if(t.date()<a.date())return-Lt(a,t);var s=(a.year()-t.year())*12+(a.month()-t.month()),n=t.clone().add(s,"months"),r,i;return a-n<0?(r=t.clone().add(s-1,"months"),i=(a-n)/(n-r)):(r=t.clone().add(s+1,"months"),i=(a-n)/(r-n)),-(s+i)||0}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Vo(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Wo(t){if(!this.isValid())return null;var a=t!==!0,s=a?this.clone().utc():this;return s.year()<0||s.year()>9999?Rt(s,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ne(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Rt(s,"Z")):Rt(s,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function zo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",a="",s,n,r,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",a="Z"),s="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=a+'[")]',this.format(s+n+r+i)}function Xo(t){t||(t=this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var a=Rt(this,t);return this.localeData().postformat(a)}function Zo(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 Jo(t){return this.from(A(),t)}function ed(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 td(t){return this.to(A(),t)}function on(t){var a;return t===void 0?this._locale._abbr:(a=ye(t),a!=null&&(this._locale=a),this)}var dn=V("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 cn(){return this._locale}var Pt=1e3,je=60*Pt,Tt=60*je,un=(365*400+97)*24*Tt;function Qe(t,a){return(t%a+a)%a}function fn(t,a,s){return t<100&&t>=0?new Date(t+400,a,s)-un:new Date(t,a,s).valueOf()}function hn(t,a,s){return t<100&&t>=0?Date.UTC(t+400,a,s)-un:Date.UTC(t,a,s)}function ad(t){var a,s;if(t=W(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?hn:fn,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()*je),Tt);break;case"minute":a=this._d.valueOf(),a-=Qe(a,je);break;case"second":a=this._d.valueOf(),a-=Qe(a,Pt);break}return this._d.setTime(a),y.updateOffset(this,!0),this}function sd(t){var a,s;if(t=W(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?hn:fn,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+=Tt-Qe(a+(this._isUTC?0:this.utcOffset()*je),Tt)-1;break;case"minute":a=this._d.valueOf(),a+=je-Qe(a,je)-1;break;case"second":a=this._d.valueOf(),a+=Pt-Qe(a,Pt)-1;break}return this._d.setTime(a),y.updateOffset(this,!0),this}function nd(){return this._d.valueOf()-(this._offset||0)*6e4}function rd(){return Math.floor(this.valueOf()/1e3)}function id(){return new Date(this.valueOf())}function ld(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function od(){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 dd(){return this.isValid()?this.toISOString():null}function cd(){return da(this)}function ud(){return ke({},b(this))}function fd(){return b(this).overflow}function hd(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}_("N",0,0,"eraAbbr"),_("NN",0,0,"eraAbbr"),_("NNN",0,0,"eraAbbr"),_("NNNN",0,0,"eraName"),_("NNNNN",0,0,"eraNarrow"),_("y",["y",1],"yo","eraYear"),_("y",["yy",2],0,"eraYear"),_("y",["yyy",3],0,"eraYear"),_("y",["yyyy",4],0,"eraYear"),g("N",Ea),g("NN",Ea),g("NNN",Ea),g("NNNN",kd),g("NNNNN",Cd),x(["N","NN","NNN","NNNN","NNNNN"],function(t,a,s,n){var r=s._locale.erasParse(t,n,s._strict);r?b(s).era=r:b(s).invalidEra=t}),g("y",Ye),g("yy",Ye),g("yyy",Ye),g("yyyy",Ye),g("yo",Rd),x(["y","yy","yyy","yyyy"],L),x(["yo"],function(t,a,s,n){var r;s._locale._eraYearOrdinalRegex&&(r=t.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?a[L]=s._locale.eraYearOrdinalParse(t,r):a[L]=parseInt(t,10)});function md(t,a){var s,n,r,i=this._eras||ye("en")._eras;for(s=0,n=i.length;s<n;++s){switch(typeof i[s].since){case"string":r=y(i[s].since).startOf("day"),i[s].since=r.valueOf();break}switch(typeof i[s].until){case"undefined":i[s].until=1/0;break;case"string":r=y(i[s].until).startOf("day").valueOf(),i[s].until=r.valueOf();break}}return i}function pd(t,a,s){var n,r,i=this.eras(),d,f,p;for(t=t.toUpperCase(),n=0,r=i.length;n<r;++n)if(d=i[n].name.toUpperCase(),f=i[n].abbr.toUpperCase(),p=i[n].narrow.toUpperCase(),s)switch(a){case"N":case"NN":case"NNN":if(f===t)return i[n];break;case"NNNN":if(d===t)return i[n];break;case"NNNNN":if(p===t)return i[n];break}else if([d,f,p].indexOf(t)>=0)return i[n]}function yd(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 gd(){var t,a,s,n=this.localeData().eras();for(t=0,a=n.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),n[t].since<=s&&s<=n[t].until||n[t].until<=s&&s<=n[t].since)return n[t].name;return""}function _d(){var t,a,s,n=this.localeData().eras();for(t=0,a=n.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),n[t].since<=s&&s<=n[t].until||n[t].until<=s&&s<=n[t].since)return n[t].narrow;return""}function wd(){var t,a,s,n=this.localeData().eras();for(t=0,a=n.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),n[t].since<=s&&s<=n[t].until||n[t].until<=s&&s<=n[t].since)return n[t].abbr;return""}function bd(){var t,a,s,n,r=this.localeData().eras();for(t=0,a=r.length;t<a;++t)if(s=r[t].since<=r[t].until?1:-1,n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return(this.year()-y(r[t].since).year())*s+r[t].offset;return this.year()}function Sd(t){return C(this,"_erasNameRegex")||Fa.call(this),t?this._erasNameRegex:this._erasRegex}function Md(t){return C(this,"_erasAbbrRegex")||Fa.call(this),t?this._erasAbbrRegex:this._erasRegex}function vd(t){return C(this,"_erasNarrowRegex")||Fa.call(this),t?this._erasNarrowRegex:this._erasRegex}function Ea(t,a){return a.erasAbbrRegex(t)}function kd(t,a){return a.erasNameRegex(t)}function Cd(t,a){return a.erasNarrowRegex(t)}function Rd(t,a){return a._eraYearOrdinalRegex||Ye}function Fa(){var t=[],a=[],s=[],n=[],r,i,d,f,p,w=this.eras();for(r=0,i=w.length;r<i;++r)d=fe(w[r].name),f=fe(w[r].abbr),p=fe(w[r].narrow),a.push(d),t.push(f),s.push(p),n.push(d),n.push(f),n.push(p);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}_(0,["gg",2],0,function(){return this.weekYear()%100}),_(0,["GG",2],0,function(){return this.isoWeekYear()%100});function jt(t,a){_(0,[t,t.length],0,a)}jt("gggg","weekYear"),jt("ggggg","weekYear"),jt("GGGG","isoWeekYear"),jt("GGGGG","isoWeekYear"),g("G",Dt),g("g",Dt),g("GG",D,H),g("gg",D,H),g("GGGG",wa,_a),g("gggg",wa,_a),g("GGGGG",Bt,Ut),g("ggggg",Bt,Ut),et(["gggg","ggggg","GGGG","GGGGG"],function(t,a,s,n){a[n.substr(0,2)]=M(t)}),et(["gg","GG"],function(t,a,s,n){a[n]=y.parseTwoDigitYear(t)});function Ud(t){return mn.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function xd(t){return mn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Bd(){return pe(this.year(),1,4)}function Dd(){return pe(this.isoWeekYear(),1,4)}function Ad(){var t=this.localeData()._week;return pe(this.year(),t.dow,t.doy)}function Od(){var t=this.localeData()._week;return pe(this.weekYear(),t.dow,t.doy)}function mn(t,a,s,n,r){var i;return t==null?nt(this,n,r).year:(i=pe(t,n,r),a>i&&(a=i),Nd.call(this,t,a,s,n,r))}function Nd(t,a,s,n,r){var i=qs(t,a,s,n,r),d=st(i.year,0,i.dayOfYear);return this.year(d.getUTCFullYear()),this.month(d.getUTCMonth()),this.date(d.getUTCDate()),this}_("Q",0,"Qo","quarter"),g("Q",Ns),x("Q",function(t,a){a[he]=(M(t)-1)*3});function $d(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}_("D",["DD",2],"Do","date"),g("D",D,Le),g("DD",D,H),g("Do",function(t,a){return t?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient}),x(["D","DD"],ie),x("Do",function(t,a){a[ie]=M(t.match(D)[0])});var pn=Pe("Date",!0);_("DDD",["DDDD",3],"DDDo","dayOfYear"),g("DDD",xt),g("DDDD",$s),x(["DDD","DDDD"],function(t,a,s){s._dayOfYear=M(t)});function Ed(t){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?a:this.add(t-a,"d")}_("m",["mm",2],0,"minute"),g("m",D,ba),g("mm",D,H),x(["m","mm"],ee);var Fd=Pe("Minutes",!1);_("s",["ss",2],0,"second"),g("s",D,ba),g("ss",D,H),x(["s","ss"],me);var Id=Pe("Seconds",!1);_("S",0,0,function(){return~~(this.millisecond()/100)}),_(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_(0,["SSS",3],0,"millisecond"),_(0,["SSSS",4],0,function(){return this.millisecond()*10}),_(0,["SSSSS",5],0,function(){return this.millisecond()*100}),_(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),_(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),_(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),_(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),g("S",xt,Ns),g("SS",xt,H),g("SSS",xt,$s);var Re,yn;for(Re="SSSS";Re.length<=9;Re+="S")g(Re,Ye);function Yd(t,a){a[Ae]=M(("0."+t)*1e3)}for(Re="S";Re.length<=9;Re+="S")x(Re,Yd);yn=Pe("Milliseconds",!1),_("z",0,0,"zoneAbbr"),_("zz",0,0,"zoneName");function Ld(){return this._isUTC?"UTC":""}function Pd(){return this._isUTC?"Coordinated Universal Time":""}var m=Ze.prototype;m.add=Oo,m.calendar=Lo,m.clone=Po,m.diff=Go,m.endOf=sd,m.format=Xo,m.from=Zo,m.fromNow=Jo,m.to=ed,m.toNow=td,m.get=Wi,m.invalidAt=fd,m.isAfter=To,m.isBefore=jo,m.isBetween=Qo,m.isSame=qo,m.isSameOrAfter=Ho,m.isSameOrBefore=Ko,m.isValid=cd,m.lang=dn,m.locale=on,m.localeData=cn,m.max=co,m.min=oo,m.parsingFlags=ud,m.set=zi,m.startOf=ad,m.subtract=No,m.toArray=ld,m.toObject=od,m.toDate=id,m.toISOString=Wo,m.inspect=zo,typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),m.toJSON=dd,m.toString=Vo,m.unix=rd,m.valueOf=nd,m.creationData=hd,m.eraName=gd,m.eraNarrow=_d,m.eraAbbr=wd,m.eraYear=bd,m.year=Is,m.isLeapYear=Vi,m.weekYear=Ud,m.isoWeekYear=xd,m.quarter=m.quarters=$d,m.month=js,m.daysInMonth=rl,m.week=m.weeks=hl,m.isoWeek=m.isoWeeks=ml,m.weeksInYear=Ad,m.weeksInWeekYear=Od,m.isoWeeksInYear=Bd,m.isoWeeksInISOWeekYear=Dd,m.date=pn,m.day=m.days=Ul,m.weekday=xl,m.isoWeekday=Bl,m.dayOfYear=Ed,m.hour=m.hours=Fl,m.minute=m.minutes=Fd,m.second=m.seconds=Id,m.millisecond=m.milliseconds=yn,m.utcOffset=wo,m.utc=So,m.local=Mo,m.parseZone=vo,m.hasAlignedHourOffset=ko,m.isDST=Co,m.isLocal=Uo,m.isUtcOffset=xo,m.isUtc=an,m.isUTC=an,m.zoneAbbr=Ld,m.zoneName=Pd,m.dates=V("dates accessor is deprecated. Use date instead.",pn),m.months=V("months accessor is deprecated. Use month instead",js),m.years=V("years accessor is deprecated. Use year instead",Is),m.zone=V("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",bo),m.isDSTShifted=V("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ro);function Td(t){return A(t*1e3)}function jd(){return A.apply(null,arguments).parseZone()}function gn(t){return t}var R=ha.prototype;R.calendar=Ri,R.longDateFormat=Di,R.invalidDate=Oi,R.ordinal=Ei,R.preparse=gn,R.postformat=gn,R.relativeTime=Ii,R.pastFuture=Yi,R.set=ki,R.eras=md,R.erasParse=pd,R.erasConvertYear=yd,R.erasAbbrRegex=Md,R.erasNameRegex=Sd,R.erasNarrowRegex=vd,R.months=tl,R.monthsShort=al,R.monthsParse=nl,R.monthsRegex=ll,R.monthsShortRegex=il,R.week=dl,R.firstDayOfYear=fl,R.firstDayOfWeek=ul,R.weekdays=Ml,R.weekdaysMin=kl,R.weekdaysShort=vl,R.weekdaysParse=Rl,R.weekdaysRegex=Dl,R.weekdaysShortRegex=Al,R.weekdaysMinRegex=Ol,R.isPM=$l,R.meridiem=Il;function Qt(t,a,s,n){var r=ye(),i=se().set(n,a);return r[s](i,t)}function _n(t,a,s){if(ue(t)&&(a=t,t=void 0),t=t||"",a!=null)return Qt(t,a,s,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Qt(t,n,s,"month");return r}function Ia(t,a,s,n){typeof t=="boolean"?(ue(a)&&(s=a,a=void 0),a=a||""):(a=t,s=a,t=!1,ue(a)&&(s=a,a=void 0),a=a||"");var r=ye(),i=t?r._week.dow:0,d,f=[];if(s!=null)return Qt(a,(s+i)%7,n,"day");for(d=0;d<7;d++)f[d]=Qt(a,(d+i)%7,n,"day");return f}function Qd(t,a){return _n(t,a,"months")}function qd(t,a){return _n(t,a,"monthsShort")}function Hd(t,a,s){return Ia(t,a,s,"weekdays")}function Kd(t,a,s){return Ia(t,a,s,"weekdaysShort")}function Gd(t,a,s){return Ia(t,a,s,"weekdaysMin")}Ce("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=V("moment.lang is deprecated. Use moment.locale instead.",Ce),y.langData=V("moment.langData is deprecated. Use moment.localeData instead.",ye);var ge=Math.abs;function Vd(){var t=this._data;return this._milliseconds=ge(this._milliseconds),this._days=ge(this._days),this._months=ge(this._months),t.milliseconds=ge(t.milliseconds),t.seconds=ge(t.seconds),t.minutes=ge(t.minutes),t.hours=ge(t.hours),t.months=ge(t.months),t.years=ge(t.years),this}function wn(t,a,s,n){var r=te(a,s);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Wd(t,a){return wn(this,t,a,1)}function zd(t,a){return wn(this,t,a,-1)}function bn(t){return t<0?Math.floor(t):Math.ceil(t)}function Xd(){var t=this._milliseconds,a=this._days,s=this._months,n=this._data,r,i,d,f,p;return t>=0&&a>=0&&s>=0||t<=0&&a<=0&&s<=0||(t+=bn(Ya(s)+a)*864e5,a=0,s=0),n.milliseconds=t%1e3,r=z(t/1e3),n.seconds=r%60,i=z(r/60),n.minutes=i%60,d=z(i/60),n.hours=d%24,a+=z(d/24),p=z(Sn(a)),s+=p,a-=bn(Ya(p)),f=z(s/12),s%=12,n.days=a,n.months=s,n.years=f,this}function Sn(t){return t*4800/146097}function Ya(t){return t*146097/4800}function Zd(t){if(!this.isValid())return NaN;var a,s,n=this._milliseconds;if(t=W(t),t==="month"||t==="quarter"||t==="year")switch(a=this._days+n/864e5,s=this._months+Sn(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+n/6048e5;case"day":return a+n/864e5;case"hour":return a*24+n/36e5;case"minute":return a*1440+n/6e4;case"second":return a*86400+n/1e3;case"millisecond":return Math.floor(a*864e5)+n;default:throw new Error("Unknown unit "+t)}}function _e(t){return function(){return this.as(t)}}var Mn=_e("ms"),Jd=_e("s"),ec=_e("m"),tc=_e("h"),ac=_e("d"),sc=_e("w"),nc=_e("M"),rc=_e("Q"),ic=_e("y"),lc=Mn;function oc(){return te(this)}function dc(t){return t=W(t),this.isValid()?this[t+"s"]():NaN}function Ne(t){return function(){return this.isValid()?this._data[t]:NaN}}var cc=Ne("milliseconds"),uc=Ne("seconds"),fc=Ne("minutes"),hc=Ne("hours"),mc=Ne("days"),pc=Ne("months"),yc=Ne("years");function gc(){return z(this.days()/7)}var we=Math.round,qe={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function _c(t,a,s,n,r){return r.relativeTime(a||1,!!s,t,n)}function wc(t,a,s,n){var r=te(t).abs(),i=we(r.as("s")),d=we(r.as("m")),f=we(r.as("h")),p=we(r.as("d")),w=we(r.as("M")),B=we(r.as("w")),I=we(r.as("y")),q=i<=s.ss&&["s",i]||i<s.s&&["ss",i]||d<=1&&["m"]||d<s.m&&["mm",d]||f<=1&&["h"]||f<s.h&&["hh",f]||p<=1&&["d"]||p<s.d&&["dd",p];return s.w!=null&&(q=q||B<=1&&["w"]||B<s.w&&["ww",B]),q=q||w<=1&&["M"]||w<s.M&&["MM",w]||I<=1&&["y"]||["yy",I],q[2]=a,q[3]=+t>0,q[4]=n,_c.apply(null,q)}function bc(t){return t===void 0?we:typeof t=="function"?(we=t,!0):!1}function Sc(t,a){return qe[t]===void 0?!1:a===void 0?qe[t]:(qe[t]=a,t==="s"&&(qe.ss=a-1),!0)}function Mc(t,a){if(!this.isValid())return this.localeData().invalidDate();var s=!1,n=qe,r,i;return typeof t=="object"&&(a=t,t=!1),typeof t=="boolean"&&(s=t),typeof a=="object"&&(n=Object.assign({},qe,a),a.s!=null&&a.ss==null&&(n.ss=a.s-1)),r=this.localeData(),i=wc(this,!s,n,r),s&&(i=r.pastFuture(+this,i)),r.postformat(i)}var La=Math.abs;function He(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),n,r,i,d,f=this.asSeconds(),p,w,B,I;return f?(n=z(t/60),r=z(n/60),t%=60,n%=60,i=z(s/12),s%=12,d=t?t.toFixed(3).replace(/\.?0+$/,""):"",p=f<0?"-":"",w=He(this._months)!==He(f)?"-":"",B=He(this._days)!==He(f)?"-":"",I=He(this._milliseconds)!==He(f)?"-":"",p+"P"+(i?w+i+"Y":"")+(s?w+s+"M":"")+(a?B+a+"D":"")+(r||n||t?"T":"")+(r?I+r+"H":"")+(n?I+n+"M":"")+(t?I+d+"S":"")):"P0D"}var v=It.prototype;v.isValid=po,v.abs=Vd,v.add=Wd,v.subtract=zd,v.as=Zd,v.asMilliseconds=Mn,v.asSeconds=Jd,v.asMinutes=ec,v.asHours=tc,v.asDays=ac,v.asWeeks=sc,v.asMonths=nc,v.asQuarters=rc,v.asYears=ic,v.valueOf=lc,v._bubble=Xd,v.clone=oc,v.get=dc,v.milliseconds=cc,v.seconds=uc,v.minutes=fc,v.hours=hc,v.days=mc,v.weeks=gc,v.months=pc,v.years=yc,v.humanize=Mc,v.toISOString=qt,v.toString=qt,v.toJSON=qt,v.locale=on,v.localeData=cn,v.toIsoString=V("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qt),v.lang=dn,_("X",0,0,"unix"),_("x",0,0,"valueOf"),g("x",Dt),g("X",ji),x("X",function(t,a,s){s._d=new Date(parseFloat(t)*1e3)}),x("x",function(t,a,s){s._d=new Date(M(t))});//! moment.js
|
|
10
|
+
y.version="2.30.1",Mi(A),y.fn=m,y.min=uo,y.max=fo,y.now=ho,y.utc=se,y.unix=Td,y.months=Qd,y.isDate=Xe,y.locale=Ce,y.invalid=kt,y.duration=te,y.isMoment=J,y.weekdays=Hd,y.parseZone=jd,y.localeData=ye,y.isDuration=Yt,y.monthsShort=qd,y.weekdaysMin=Gd,y.defineLocale=Ra,y.updateLocale=Tl,y.locales=jl,y.weekdaysShort=Kd,y.normalizeUnits=W,y.relativeTimeRounding=bc,y.relativeTimeThreshold=Sc,y.calendarFormat=Yo,y.prototype=m,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 vc=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,kc=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,vn=/(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,Pa=[/^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],Cc={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:vn,monthsShortRegex:vn,monthsStrictRegex:vc,monthsShortStrictRegex:kc,monthsParse:Pa,longMonthsParse:Pa,shortMonthsParse:Pa,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",Cc);const be=(t,a,s=!0)=>(s?t.getFullYear()===a.getFullYear():!0)&&t.getMonth()===a.getMonth()&&t.getDate()===a.getDate(),Ta=()=>y().locale("fr").subtract(1,"days").toDate(),$e=t=>new Date>t,kn=t=>typeof t=="function",ja=(t,a,s)=>{const n={...t},r=Object.entries(t);for(const[i,d]of r){const f=a[i];f?n[i]=s(d,f):n[i]=d}return n},Qa=t=>Object.entries(t),Cn=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}},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}});Cn.index({"meta.xp":-1});const Ht=((Qr=h.models)==null?void 0:Qr.Settings)||h.model("Settings",Cn),P=async(t,a,s=!1)=>{await Ht.updateOne({guildId:t},a,{upsert:s})},Rc=Object.freeze(Object.defineProperty({__proto__:null,addCrewChannelId:async(t,a,s)=>{await P(t,{$push:{"crew.crewChannelIds":{channelId:s,crewId:a}}})},randomizeEditoPrice:async t=>{const a=vs(100,1001);return await P(t,{$set:{"edito.price":a}}),a},sentAtMidnight:async(t,a)=>{await P(t,{$set:{"edito.sentAtMidnight ":a}})},setCrewInfoChannelId:async(t,a)=>{await P(t,{$set:{"crew.infoChannelId":a}})},setDiscussionChannelId:async(t,a)=>{await P(t,{$set:{discussionChannelId:a}})},setEditoChannel:async(t,a)=>{await P(t,{$set:{"edito.channelId":a}})},setEditoMessageId:async(t,a)=>{await P(t,{$set:{"edito.messageId ":a}})},setFactionChannel:async(t,a)=>{await P(t,{$set:{factionChannelId:a}})},setQuestChannelId:async(t,a)=>{await P(t,{$set:{questFallbackChannelId:a}})},setRankingChannel:async(t,a)=>{await P(t,{$set:{"ranking.channelId":a}})},setRankingMessage:async(t,a)=>{await P(t,{$set:{"ranking.messageId":a}})},setReportBugChannelId:async(t,a)=>{await P(t,{$set:{reportBugChannelId:a}})},setReportChannel:async(t,a)=>{await P(t,{$set:{reportChannelId:a}})},setReportModeratorChannel:async(t,a)=>{await P(t,{$set:{reportModeratorChannelId:a}})},setShopChannelId:async(t,a,s)=>{await P(t,{$set:{shopChannelId:a,blackMarketChannelId:s}})},setSuggestionChannel:async(t,a)=>{await P(t,{$set:{suggestionChannelId:a}})}},Symbol.toStringTag,{value:"Module"})),Rn=async t=>await Ht.create({guildId:t}),Uc=async(t,a={})=>{const s=await Ht.findOne({guildId:t},a);return s||Rn(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 Wn(a,-1*this.price*s),await Kn(a,this.price*s)):await xe(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 Un extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ur(a,this.data.background.id)}isBackground(){return!0}}class xn extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isBoostXp(){return!0}}class Bn extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isChest(){return!0}}class Dn extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isObject(){return!0}}class An extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ls(a,Si({stop:s}).map(()=>S.seedEquipment({...this.data},Date.now()-Math.round(Math.random()*1e3))))}isEquipment(){return!0}}class On extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isBottle(){return!0}}class Nn extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isRepair(){return!0}}class $n extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ce(a,this.data.id,s)}isStore(){return!0}}class En extends ae{constructor({name:a,price:s,item:n,size:r,currency:i}){super(),this.name=a,this.data=n,this.price=s,this.size=r,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await hs(a,this.data.title.name)}isTitle(){return!0}}const Fn=(t,a)=>{const s=t.items.find(n=>n.entityId===a);if(s){const{name:n,price:r,size:i,currency:d}=s,f=S.findEntity(s.entityId);if(S.isBackgroundItem(f))return new Un({name:n,price:r,item:f,size:i,currency:d});if(S.isTitleItem(f))return new En({name:n,price:r,item:f,size:i,currency:d});if(S.isChestItem(f))return new Bn({name:n,price:r,item:f,size:i,currency:d});if(S.isBoostItem(f))return new xn({name:n,price:r,item:f,size:i,currency:d});if(S.isRepairItem(f))return new Nn({name:n,price:r,item:f,size:i,currency:d});if(S.isStoreItem(f))return new $n({name:n,price:r,item:f,size:i,currency:d});if(S.isObjectItem(f))return new Dn({name:n,price:r,item:f,size:i,currency:d});if(S.isEquipment(f))return new An({name:n,price:r,item:f,size:i,currency:d});if(S.isBottleItem(f))return new On({name:n,price:r,size:i,item:f,currency:d})}},xc=Object.freeze(Object.defineProperty({__proto__:null,getShopItem:Fn,getShopItemList:t=>{const a=[];for(const{entityId:s}of t.items){const n=Fn(t,s);n&&a.push(n)}return a}},Symbol.toStringTag,{value:"Module"})),In=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});In.index({shopType:1});const Kt=((qr=h.models)==null?void 0:qr.Shop)||h.model("Shop",In),Bc=async(t,a)=>{await Yn({shopType:t},a,!0)},qa=async(t,a)=>{await Yn({_id:t},a,!0)},Yn=async(t,a,s=!1)=>{await Kt.updateOne(t,a,{upsert:s})},Dc=Object.freeze(Object.defineProperty({__proto__:null,buyShopItem:async(t,a,s,n)=>{const r=a.map(i=>(i.name===s.name&&i.size&&(i.size-=n),i));await qa(t,{$set:{items:r}})},publish:async t=>{await qa(t,{$set:{publishedAt:new Date}})},setShopItems:async(t,a)=>{await Bc(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"})),Ac=t=>Kt.create({shopType:t}),Oc=async(t,a={})=>{const s=await Ln({shopType:t},a);return s||await Ac(t)},Ln=(t,a={})=>Kt.findOne(t,a),Nc=Object.freeze(Object.defineProperty({__proto__:null,getCommandCooldown:(t,a)=>t.commands[a],getRaidCooldown:(t,a)=>t.raid[a]},Symbol.toStringTag,{value:"Module"})),Ha=new h.Schema({user:{type:h.Schema.Types.ObjectId,ref:"User",required:!0},date:Date,type:String},{minimize:!1});Ha.index({user:1}),Ha.index({date:-1});const Ee=((Hr=h.models)==null?void 0:Hr.Reminder)||h.model("Reminder",Ha),$c=Object.freeze(Object.defineProperty({__proto__:null,getAllPassedReminder:async()=>await Ee.find({date:{$lte:new Date}})},Symbol.toStringTag,{value:"Module"})),Ec=async(t,a)=>{await Ee.deleteOne({user:t,type:a})},Pn=async(t,a,s,n)=>{await Ee.updateOne({user:t,type:a},s,{upsert:n})},Ka=async(t,a,s)=>{await Pn(t,a,{$set:{date:s}},!0)},Ga=async(t,a,s)=>{await Pn(t,a,[{$set:{date:{$add:["$date",s]}}}],!1)},Fc=Object.freeze(Object.defineProperty({__proto__:null,addReminder:Ka,deleteSelectedReminders:async t=>{await Ee.deleteMany({_id:{$in:t}})},removeReminder:async(t,a)=>{await Ec(t,a)},updateReminderDate:Ga},Symbol.toStringTag,{value:"Module"})),Ic=async(t,a={})=>{const s=await Ee.findOne({user:t},a);return s||null},Yc=async(t,a,s)=>await Ee.create({user:t,date:a,type:s}),Lc=(t,a)=>{const s=ks(Object.values(t.equippedItems)),n=a.equipments.filter(r=>s.find(i=>i.id===r.id)).length;if(n===a.equipments.length)return a.fullBonus;if(n>=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 n of S.EQUIPMENT_SLOT){const r=(s=t.equippedItems)==null?void 0:s[n];r&&(a=ja(a,S.fromDBToEquipableEquipment(r).characteristics,(i,d)=>i+d))}for(const n of S.allPanoplies){const r=Lc(t,n);r&&!("target"in r)&&(a=ja(a,r,(i,d)=>i+d))}return a},Pc=Object.freeze(Object.defineProperty({__proto__:null,calcBottleMultiplier:(t,{buffs:a})=>{const s=S.getPanoplyBonus(t.equippedItems).find(([n,r])=>n.id==="herbalist"&&r!==null);return s&&s[1]==="full"?a.map(n=>({...n,multiplier:n.multiplier*1.25})):s&&s[1]==="half"?a.map(n=>({...n,multiplier:n.multiplier*1.1})):a},calcMinStreakForWorkLoot:t=>{const a=S.getPanoplyBonus(t.equippedItems).find(([s,n])=>s.id==="marine"&&n!==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(([n,r])=>n.id==="little_blacksmith"&&r!==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 n of a)if((t.itemList.get(n.itemId)||0)<n.size*s)return!1;return!0},hasEnoughTools:(t,a)=>(t.itemList.get("tools")||0)>=a,hasInventoryRequirements:(t,a)=>Qa(a).reduce((s,[n,r])=>s&&(t.itemList.get(n)??0)>=(r??0),!0),hasRevolutionaryBuff:t=>{const a=S.getPanoplyBonus(t.equippedItems).find(([s,n])=>s.id==="revolutionary"&&n!==null);return(a==null?void 0:a[1])??null},maxCraftQuantity:(t,a)=>{let s=1/0;for(const n of a)s=Math.min(s,Math.floor((t.itemList.get(n.itemId)||0)/n.size));return s}},Symbol.toStringTag,{value:"Module"})),Tc=Object.freeze(Object.defineProperty({__proto__:null,getEncyclopedia:t=>t.encyclopedia,hasFoundItem:(t,a)=>t.encyclopedia.includes(a)},Symbol.toStringTag,{value:"Module"})),Tn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},encyclopedia:{type:[String],default:[]}});Tn.index({user:1});const Gt=((Kr=h.models)==null?void 0:Kr.UserEncyclopedia)||h.model("UserEncyclopedia",Tn),jn=async(t,a)=>{await Gt.updateOne({user:t},a,{upsert:!0})},Vt=async(t,a)=>{await jn(t,{$addToSet:{encyclopedia:{$each:a}}})},jc=Object.freeze(Object.defineProperty({__proto__:null,addItem:Vt},Symbol.toStringTag,{value:"Module"})),Qn=async t=>await Gt.create({user:t}),Qc=async t=>{const a=await Gt.findOne({user:t});return a||await Qn(t)},qc=["crewUpdate","crewQuestUpdate","userMetaUpdate","userQuestMetaUpdate","userQuestUpdate","userInventoryUpdate","userOrnamentsUpdate","userDaily","crewDaily","userChristmasUpdate"],qn=new di.EventEmitter,le=(t,a,s)=>{qn.emit(t,a,s)},Hc=t=>{for(const a of qc)qn.on(a,(s,n)=>{t(a,s,n)})};class o{constructor(){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:n,_userMeta:r})=>{const i=s??await gs(a);if(this.isCompleted(i))return null;const d=r??await ct(a),f=n??await ir(a);return this.crew&&f?this.daily?await this.markCrewDailyAsCompleted(f.crew._id,i.user._id):(await this.markAsCompleted(i),await this.markCrewAsCompleted(f.crew._id)):await this.markAsCompleted(i),await this.specificQuestCompletion(i,f),await this.applyReward(i,d,f)});e(this,"getComputedRewards",(a,s)=>{const n=this.daily&&ms(s)?ps(s):1;return{xp:(kn(this.xp)?this.xp(a):this.xp)*n*(1+ds(a)),berry:(kn(this.berry)?this.berry(a):this.berry)*n}})}async applyReward(a,s,n){return this.title&&await hs(a.user._id,this.title.name),this.badge&&(this.crew&&n?await Er(n.crew._id,this.badge,this.rank.id):await fr(a.user._id,this.badge,this.rank.id)),this.isFactionBadge&&await hr(a.user._id,this.rank.id),this.asset&&await mr(a.user._id,this.asset),this.getComputedRewards(s,a)}async specificQuestCompletion(a,s){this.id==="daily_all"&&(await Mr(a.user._id,a.lastFullComplete),s&&await this.markCrewDailyAsCompleted(s.crew._id,a.user._id)),this.id==="be_level_10"&&await Br(a.user._id,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await Dr(a.user._id,!0),this.id==="crew_all_members_daily"&&s&&await rr(a.user._id)}isCompleted(a){return this.daily?gr(a,this.id):yr(a,this.id)}async markAsCompleted(a){this.daily?await Sr(a.user._id,this.id):await br(a.user._id,this.id)}async markCrewAsCompleted(a){await Ir(a,this.id)}async markCrewDailyAsCompleted(a,s){await Yr(a,s.toHexString(),this.id)}}class Kc extends o{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 Gc extends o{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 Vc=Object.freeze(Object.defineProperty({__proto__:null,CrewCreateOrJoin:Kc,CrewValidateDaily:Gc},Symbol.toStringTag,{value:"Module"}));class Wc extends o{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 zc extends o{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 Xc extends o{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 Zc extends o{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 Jc extends o{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 Wa=Object.freeze(Object.defineProperty({__proto__:null,Almanax:Jc,DailyAnswer:Xc,DailyCheckProfile:Zc,DailyReadEdito:zc,DailySendMessage:Wc},Symbol.toStringTag,{value:"Module"}));class eu extends o{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 tu extends o{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 au extends o{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 su extends o{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 nu extends o{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 ru extends o{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,n)=>{var r,i;return Fr(s,"daily_all")&&!be(((i=(r=s.daily)==null?void 0:r[n.user._id.toHexString()])==null?void 0:i.crew_all_members_daily)??new Date(0),new Date)&&!be(n.lastAllMembersDaily,new Date)})}}class iu extends o{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 lu extends o{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 ou extends o{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 du extends o{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 cu extends o{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 za=Object.freeze(Object.defineProperty({__proto__:null,CrewAllMembersDaily:ru,CrewCarpenter1Month:tu,CrewCarpenter1Week:eu,CrewCarpenter1Year:nu,CrewCarpenter3Months:au,CrewCarpenter6Months:su,CrewVocal10:ou,CrewVocal12:du,CrewVocal15:cu,CrewVocal5:iu,CrewVocal7:lu},Symbol.toStringTag,{value:"Module"}));class uu extends o{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 fu extends o{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 hu extends o{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 mu extends o{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 pu extends o{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 yu extends o{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 gu extends o{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 _u extends o{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 wu extends o{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 bu extends o{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 Su extends o{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 Mu extends o{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 vu extends o{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 ku extends o{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 Cu extends o{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 Ru extends o{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 Uu extends o{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,n)=>s.stats[n.toHexString()]&&s.stats[n.toHexString()].xp>=5e4)}}class xu extends o{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,n)=>s.stats[n.toHexString()]&&s.stats[n.toHexString()].xp>=5e5)}}class Bu extends o{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,n)=>s.stats[n.toHexString()]&&s.stats[n.toHexString()].xp>=1e6)}}class Du extends o{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,n)=>s.stats[n.toHexString()]&&s.stats[n.toHexString()].xp>=5e6)}}class Au extends o{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,n)=>s.stats[n.toHexString()]&&s.stats[n.toHexString()].xp>=5e7)}}const Xa=Object.freeze(Object.defineProperty({__proto__:null,CrewBeLevel10:fu,CrewBeLevel100:yu,CrewBeLevel25:hu,CrewBeLevel50:mu,CrewBeLevel75:pu,CrewBreakShip:uu,CrewBring1mXp:Bu,CrewBring500kXp:xu,CrewBring50kXp:Uu,CrewBring50mXp:Au,CrewBring5mXp:Du,CrewHave100MBerry:gu,CrewHave1MdBerry:wu,CrewHave500MBerry:_u,CrewHave50MdBerry:Su,CrewHave5MdBerry:bu,CrewSize10:ku,CrewSize12:Cu,CrewSize15:Ru,CrewSize5:Mu,CrewSize7:vu},Symbol.toStringTag,{value:"Module"}));class Ou extends o{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 Nu extends o{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 $u extends o{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 Eu extends o{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 Fu extends o{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 Za=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:Fu,Have10Recipe:$u,Have1Recipe:Ou,Have25Recipe:Eu,Have5Recipe:Nu},Symbol.toStringTag,{value:"Module"}));class Iu extends o{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 Yu extends o{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 Lu extends o{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 Pu extends o{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 Tu extends o{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 ju extends o{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=25)}}class Qu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=50)}}class qu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=100)}}class Hu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=250)}}class Ku extends o{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=500)}}class Gu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=25)}}class Vu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=50)}}class Wu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=100)}}class zu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=250)}}class Xu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=500)}}class Zu extends o{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=25)}}class Ju extends o{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=50)}}class ef extends o{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=100)}}class tf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=250)}}class af extends o{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=500)}}class sf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=25)}}class nf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=50)}}class rf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=100)}}class lf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=250)}}class of extends o{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=500)}}class df extends o{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=25)}}class cf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=50)}}class uf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=100)}}class ff extends o{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=250)}}class hf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=500)}}class mf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=25)}}class pf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=50)}}class yf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=100)}}class gf extends o{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=250)}}class _f extends o{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=500)}}class wf extends o{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 bf extends o{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 Sf extends o{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 Mf extends o{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 vf extends o{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 kf extends o{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 Cf extends o{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 Rf extends o{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 Uf extends o{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 xf extends o{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 Bf extends o{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&&be(s.voice.lastConnection,new Date))}}const Ja=Object.freeze(Object.defineProperty({__proto__:null,BeLevel10:wf,BeLevel120:xf,BeLevel20:bf,BeLevel30:Sf,BeLevel40:Mf,BeLevel50:vf,BeLevel60:kf,BeLevel70:Cf,BeLevel80:Rf,BeLevel90:Uf,DailyVocal:Bf,Have100Agility:Wu,Have100Chance:rf,Have100Intelligence:ef,Have100Strength:qu,Have100Vitality:uf,Have100Wisdom:yf,Have250Agility:zu,Have250Chance:lf,Have250Intelligence:tf,Have250Strength:Hu,Have250Vitality:ff,Have250Wisdom:gf,Have25Agility:Gu,Have25Chance:sf,Have25Intelligence:Zu,Have25Strength:ju,Have25Vitality:df,Have25Wisdom:mf,Have500Agility:Xu,Have500Chance:of,Have500Intelligence:af,Have500Strength:Ku,Have500Vitality:hf,Have500Wisdom:_f,Have500kBerry:Iu,Have500mBerry:Pu,Have50Agility:Vu,Have50Chance:nf,Have50Intelligence:Ju,Have50Strength:Qu,Have50Vitality:cf,Have50Wisdom:pf,Have50mBerry:Lu,Have5mBerry:Yu,Have5mdBerry:Tu},Symbol.toStringTag,{value:"Module"}));class Df extends o{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(n=>n!=="default").length>=1)}}class Af extends o{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(n=>n!=="default").length>=25)}}class Of extends o{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(n=>n!=="default").length>=50)}}class Nf extends o{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 $f extends o{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 Ef extends o{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 es=Object.freeze(Object.defineProperty({__proto__:null,Have100Title:Ef,Have10Title:Nf,Have1Background:Df,Have25Background:Af,Have50Background:Of,Have50Title:$f},Symbol.toStringTag,{value:"Module"}));class Ff extends o{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 If extends o{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 Yf extends o{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 Lf extends o{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 Pf extends o{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 Tf extends o{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 jf extends o{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 Qf extends o{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 qf extends o{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 Hf extends o{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 Kf extends o{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 Gf extends o{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 Vf extends o{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 Wf extends o{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 zf extends o{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 Xf extends o{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 Zf extends o{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 Jf extends o{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 e0 extends o{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 t0 extends o{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 a0 extends o{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 s0 extends o{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 n0 extends o{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 r0 extends o{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 i0 extends o{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 l0 extends o{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 o0 extends o{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 d0 extends o{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 c0 extends o{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 u0 extends o{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 f0 extends o{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 h0 extends o{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 m0 extends o{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 p0 extends o{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 y0 extends o{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 g0 extends o{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 _0 extends o{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 w0 extends o{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 b0 extends o{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 S0 extends o{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 M0 extends o{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 v0 extends o{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 k0 extends o{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 C0 extends o{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 R0 extends o{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 U0 extends o{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 x0 extends o{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 B0 extends o{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 n=s.lastGames.slice(0,5);return n.length<5||ia(n,r=>r.gameType).length<5?!1:n.reduce((r,i)=>r+i.endState,0)===5})}}class D0 extends o{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 n=s.lastGames.slice(0,5);return n.length!==5||ia(n,r=>r.gameType).length<5?!1:n.reduce((r,i)=>r+i.endState,0)===-5})}}class A0 extends o{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 O0 extends o{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 N0 extends o{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 $0 extends o{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 E0 extends o{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 F0 extends o{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 I0 extends o{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 n=s.lastGames;if(n.length!==20)return!1;for(let r=0;r<n.length;r++)if(r%2===0&&n[r].endState!==1||r%2!==0&&n[r].endState!==-1)return!1;return!0})}}class Y0 extends o{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 L0 extends o{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 P0 extends o{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 T0 extends o{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 j0 extends o{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 Q0 extends o{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 q0 extends o{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 H0 extends o{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 K0 extends o{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 G0 extends o{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 V0 extends o{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 W0 extends o{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 z0 extends o{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 X0 extends o{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 Z0 extends o{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 J0 extends o{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 eh extends o{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 th extends o{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 ah extends o{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 sh extends o{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 nh extends o{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 rh extends o{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 ih extends o{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 lh extends o{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 oh extends o{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 dh extends o{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 ch extends o{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 uh extends o{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 fh extends o{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 hh extends o{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 mh extends o{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 ph extends o{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 yh extends o{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 gh extends o{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 _h extends o{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 wh extends o{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)}}const bh=async(t,a,s,{berry:n,xp:r})=>{const i=await gs(a).then(F=>F.populate("user","faction")),d=ps(i),f=wr(i,i.user.faction),{badge:p,isFactionBadge:w,title:B,rank:I,name:q,description:Hp,daily:sa,secret:Kp}=t;return s.Image().setImageName(`quest_success_${I.id}`).setDimensions(2080,636).draw(),p?s.Image().setImageName(u.progressiveBadgeTypeGuard(p)?`cropped_badge_${p.img}_${I.id}`:`cropped_badge_${p.img}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():w&&i.user.faction!=="citizen"?s.Image().setImageName(`cropped_badge_${i.user.faction}_${I.id}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():s.Image().setImageName(`badge_default_${I.id}`).setScale(2).setOrigin(j.CanvasOrigin.CENTER).setPosition(370,318).draw(),s.Text(sa?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(I.color).draw(),s.Text(q).setPosition(739,325).setOrigin(j.CanvasOrigin.BOTTOM_LEFT).setFont("poppins",q.length>=35?65-(q.length-35):65).draw(),s.Text(Kp?"Succès caché":Hp).setPosition(739,360).setFont("poppins_italic",35).draw(),s.Text(`Récompenses: ${Mt(n)}${sa&&d>1?` (+${Mt(n*(d-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(j.CanvasOrigin.LEFT).draw(n!==0).next((F,Y)=>j.nextAllToXAxis(F.Image(),Y)).setImageName("quest_berry").setDimensions(50,79).draw(n!==0).next((F,Y)=>j.nextAllToXAxis(F.Text(` / ${Mt(r)}${sa&&d>1?` (+${Mt(r*(d-1))})`:""} `),Y)).draw(r!==0).next((F,Y)=>j.nextAllToXAxis(F.Image(),Y)).setImageName("quest_xp").setDimensions(57,59).draw(r!==0).next((F,Y)=>j.nextAllToXAxis(F.Text(` combo x${d}`),Y)).draw(sa&&d>1).next((F,Y)=>j.nextAllToXAxis(F.Text(" et la possibilité "),Y)).draw(w&&i.user.faction==="citizen").next((F,Y)=>j.nextAllToXAxis(F.Text("de choisir ta faction"),Y)).setFont("poppins_bold",35).draw(w&&i.user.faction==="citizen").next((F,Y)=>j.nextAllToXAxis(F.Text(" et le titre "),Y)).setFont("poppins",35).draw(!!B||w&&i.user.faction!=="citizen").next((F,Y)=>j.nextAllToXAxis(F.Text((B==null?void 0:B.name)??""),Y)).setFont("poppins_bold",35).setColor((B==null?void 0:B.rank.color)??"white").draw(!!B).next((F,Y)=>j.nextAllToXAxis(F.Text((f==null?void 0:f.name)??""),Y)).setColor((f==null?void 0:f.rank.color)??"white").draw(w&&!!f),await s.encode("webp")},Sh=10,Mh=1e7,vh=100,kh=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"],Ch={adventurer_strap:"<:adventurer_strap:1253041086147068035>",adventurer_collar:"<:adventurer_collar:1253041084611690567>",adventurer_boots:"<:adventurer_boots:1253041083252867123>",adventurer_helmet:"<:Casque_cuir:1256965718432550953>",adventurer_weapon:"<:Dague_cuir:1256965714141515837>",adventurer_belt:"<:Ceinture_cuir:1256965593333108838>",herbalist_boots:"<:Sandales_de_lHerboriste:1307627799879749652>",herbalist_helmet:"<:Chapeau_de_lHerboriste:1307627803596034058>",herbalist_weapon:"<:Gant_de_lHerboriste:1307627802073239642>",herbalist_belt:"<:Ceinture_de_lHerboriste:1307627798260744212>",marine_collar:"<:marine_collar:1309899971662712892>",marine_helmet:"<:marine_helmet:1308766843736948756>",marine_ring:"<:marine_ring:1308766839823663184>",marine_strap:"<:marine_strap:1308766838032957520>",pirate_weapon:"<:pirate_weapon:1308766750497705984>",pirate_helmet:"<:pirate_helmet:1308766752171102252>",pirate_ring:"<:pirate_ring:1308766574081212506>",pirate_belt:"<:pirate_belt:1308766575259553792>",revolutionary_belt:"<:revolutionary_belt:1308766578967576576>",revolutionary_boots:"<:revolutionary_boots:1308766571535011861>",revolutionary_helmet:"<:revolutionary_helmet:1308766576736075867>",revolutionary_ring:"<:revolutionary_ring:1308766581089767424>",little_blacksmith_collar:"<:little_blacksmith_collar:1308814708714770593>",little_blacksmith_weapon:"<:little_blacksmith_weapon:1308814712397627483>",little_blacksmith_ring:"<:little_blacksmith_ring:1308814710803529739>",little_blacksmith_strap:"<:little_blacksmith_strap:1308814713752391700>",christmas_strap:"<:Bracelet_de_Noel:1302993337015341149>",christmas_collar:"<:Collier_de_Noel:1302993344720404601>",christmas_boots:"<:BottesdeNoel:1303006913130401802>",christmas_helmet:"<:Chapeau_de_Noel:1302993343051202701>",christmas_weapon:"<:Canne_de_Noel:1302993339666272266>",christmas_belt:"<:Ceinture_de_Noel:1302993340849066045>"},Rh={background:"<:background:1178465681809887334>",title:"<:title:1178465688915038208>",chest_1:"<:lootbox1:1186689926167810088>",chest_2:"<:lootbox2:1186258728882811051>",chest_3:"<:lootbox3:1243963722259501216>",chest_4:"<:lootbox3:1186259958216523786>",chest_blacksmith_1:"<:chest_blacksmith_1:1310090050146664498>",chest_blacksmith_2:"<:chest_blacksmith_2:1310090051371139092>",chest_blacksmith_3:"<:chest_blacksmith_3:1310090052839276554>",chest_christmas:"<:CoffredeNoel:1309501480621051934>",bottle_xp_1:"<:bottle_xp:1186204593667969035>",bottle_xp_2:"<:bottle_xp_2:1243980696083632208>",bottle_xp_3:"<:bottle_xp_3:1243980697773936740>",bottle_xp_4:"<:bottle_xp_4:1243980698927366256>",boost_week:"<:boost_week:1186258728073297971>",boost_day:"<:boost_day:1186258726030680145>",wood_plank:"<:Planchesdebois:1233782418478071930>",nail:"<:Clous:1233782384613261382>",glue:"<:Colle:1233782388497186846>",rope:"<:Corde:1233782392225927168>",repair_kit:"<:Kitderparation:1233782876223570011>",tissue:"<:Tissus:1233784184099573852>",lock:"<:Serrureclef:1233782436068982814>",iron:"<:Ferbrut:1233782399125426207>",clover:"<:Treflesixfeuilles:1233782439503990915> ",glass_bottle:"<:Fioleenverre:1233782402233532496>",pure_water:"<:Eaupure:1233782393572298802>",sea_salt:"<:SelMarin:1233784181696233602>",ebony_poppy:"<:Pavotebene:1233782416879915060>",rose:"<:Roseimmaculee:1233784180215644180>",poppy:"<:Coquelicotecarlate:1233782390099280023>",manganese:"<:Manganesescintillante:1233784177221042196>",cursed_hawthorn:"<:AubpineMaudite:1233782382872629329>",mugwort:"<:Armoiseblanche:1233782381400424519>",mandrake:"<:MandragoreAdulte:1233782409070247946>",obsidian:"<:Obsidiennesombre:1233784178307371110>",saffron:"<:Safranvermeille:1233782430385836124>",edelweiss:"<:Edelweiss:1233782395019329546>",emerald:"<:emeraude:1233782873165791273>",ruby:"<:Rubis:1233782426174619679>",sapphire:"<:Saphir:1233782432004837407>",siren_tear:"<:Larmedesirene:1233782405538517095>",compass:"<:Rosedesvents:1233782421892239360>",dragon_heart:"<:CoeurdeDragon:1233782386580258848>",fairy_wing:"<:Ailedefees:1233782379269722293>",phoenix_feather:"<:PlumedePhoenix:1233784783822127167>",mithril:"<:Mithril:1233782412434214974>",cereal:"<:craft_cereal:1243963641204703405>",cotton:"<:craft_cotton:1243963642567721080>",empty_box:"<:craft_empty_box:1243963643834535966>",enchanted_emerald:"<:craft_enchanted_emerald:1243963645092696105>",enchanted_ruby:"<:craft_enchanted_ruby:1243963647097569330>",enchanted_sapphire:"<:craft_enchanted_sapphire:1243963648486019082>",enchanted_stone:"<:craft_enchanted_stone:1243963650893545637>",flour:"<:craft_flour:1243963651719823451>",hemp:"<:craft_hemp:1243963653238030387>",scrap:"<:craft_scrap:1243963718895669268>",strange_gem:"<:craft_strange_gem:1243963656539078686>",strange_stone:"<:craft_strange_stone:1243963658766123192>",tools:"<:craft_tools:1243963720179122217>",wood:"<:craft_wood:1243963662763298897>",wine:"<:craft_wine:1249242713442746501>",toy:"<:craft_toy:1249242711907893278>",rhum:"<:craft_rhum:1249242707961057361>",milk:"<:craft_milk:1249242706501308488>",fruit:"<:craft_fruit:1249242705612115968>",sugar:"<:craft_sugar:1249242709684785184>",egg:"<:craft_egg:1249242703972007986>",omelet:"<:omelette:1288942044328493179>",cheese:"<:Fromage_Affine:1289695711398596761>",bread:"<:Pain_de_campagne:1289703440163016855>",strawberry_cake:"<:Fraisier:1289707903649058858>",bowl_cereal:"<:craft_bowl_cereal:1249242702462193686>",beer:"<:craft_beer:1249242701300240434>",bowl:"<:craft_bowl:1250116629275082873>",rudder:"<:craft_rudder:1250435943253540895>",rescue_boat:"<:craft_rescue_boat:1250435931635322950>",sailing_boat:"<:craft_sailing_boat:1250435942162894849>",salt_water:"<:craft_salt_water:1250435945216475317>",anchor:"<:craft_anchor:1250435934843834409>",hammock:"<:craft_hammock:1250435933300588687>",leather:"<:craft_leather:1253034980133834752>",ancient_key:"<:craft_ancient_key:1257447843355033742>",iron_ore:"<:craft_iron_ore:1257475847271612497>",map_fragment:"<:map_fragment:1281949667227205663>",scroll_agility:"<:scroll_agility:1254081331365810289>",scroll_chance:"<:scroll_chance:1254081332422639657>",scroll_intelligence:"<:scroll_intelligence:1254081334264070174>",scroll_strength:"<:scroll_strength:1254081335862099980>",scroll_vitality:"<:scroll_vitality:1254081337711919185>",scroll_wisdom:"<:scroll_wisdom:1254081340115259454>",elemental_concentrate_earth:"<:elemental_concentrate_earth:1269073512782499860>",elemental_concentrate_fire:"<:elemental_concentrate_fire:1269073513919156349>",elemental_concentrate_life:"<:elemental_concentrate_life:1269073515315728425>",elemental_concentrate_moon:"<:elemental_concentrate_moon:1269073517044039760>",elemental_concentrate_water:"<:elemental_concentrate_water:1269073518205599776>",elemental_concentrate_wind:"<:elemental_concentrate_wind:1269073510815367189>",essence_earth:"<:essence_earth:1269073149300052034>",essence_fire:"<:essence_fire:1269073150784700416>",essence_life:"<:essence_life:1269073151728287787>",essence_moon:"<:essence_moon:1269073153510998056>",essence_water:"<:essence_water:1269073154333081701>",essence_wind:"<:essence_wind:1269073156241625088>",empty_scroll:"<:empty_scroll:1269074077327298653>",enchant:{wood:"<:Bois_enchante:1302698738107682986>",cereal:"<:Cereale_enchantee:1302698739307253862>",hemp:"<:Chanvre_enchante:1302698741098086411>",poppy:"<:Coquelicot_ecarlate_enchante:1302698743597891744>",rope:"<:Corde_Enchantee:1302698745875661001>",cotton:"<:Coton_enchante:1302698771804721295>",leather:"<:Cuir_enchante:1302698774510174360>",pure_water:"<:Eau_pure_enchantee:1302698775965466654>",iron:"<:Fer_brut_enchante:1302698777899040789>",manganese:"<:Manganese_scintillante_enchantee:1302698799273214073>",ebony_poppy:"<:Pavot_debene_enchante:1302698801559109672>",rose:"<:Rose_immaculee_enchantee:1302698803886948452>",sea_salt:"<:Sel_Marin_enchante:1302698806541815869>",tissue:"<:Tissu_enchante:1302698807917805633>",clover:"<:Trefle_a_6_feuilles_enchante:1302698809670762556>"},sugar_cane_christmas:"<:sucredorge:1302993371450572801> ",mysterious_egg_christmas:"<:Oeuf_Mystere_de_Noel:1302993349061378139>",little_cookie_christmas:"<:Petit_Biscuit_de_Noel:1303022418951934002>",christmas_present:"<:CadeaudeNoel:1309501482252501094>",aeronef:"<:Aeronef:1312419591812812861>"},Uh={d1:"<:d1:1159542168738873455>",d2:"<:d2:1159542071049334814>",d3:"<:d3:1159542073914032191>",d4:"<:d4:1159542075512082543>",d5:"<:d5:1159542078179651614>",d6:"<:d6:1159542079458910229>",revolutionary:"<:revolutionnaire:648245785133056020>",pirate:"<:pirate:648245785053626368>",marine:"<:marine:648245784407441429>",berry:"<:berry:1153734056035504158>",xp:"<:xp:1084914564379975772>",success:"<:success:1186707379534954506>",hp:"<:hp:1257776163955277824>",paper:"📄",rock:"🪨",scissor:"✂️",pray:"<:Ryokugyu_pray:1147542990844334280>",gun:"<:fujigun:1050120413243506688>",promise:"<:Luffy_Promise:1027626431565529099>",love:"<:Lawve:1050916817801072730>",note:"<:imsusnote:1136952496456224778>",watching:"<:Carrot_Watching:1024736915922104360>",card:"<:carteDos:1168580012258103387>",cards:{spades:{1:"<:asdepique:1168560615170768967>",2:"<:2depique:1168559430955184259>",3:"<:3depique:1168559437548638248>",4:"<:4depique:1168559679354445934>",5:"<:5depique:1168559725504372796>",6:"<:6depique:1168559764528185394>",7:"<:7depique:1168559459392553061>",8:"<:8depique:1168559887870083162>",9:"<:9depique:1168559471392464988>",10:"<:10depique:1168559958435053598>",J:"<:valetdepique:1168560676202086523>",Q:"<:reinedepique:1168560621722284083>",K:"<:roidepique:1168560628189888634>"},diamonds:{1:"<:asdecarreau:1168560612742279308>",2:"<:2decarreau:1168559427788472330>",3:"<:3decarreau:1168559434138669236>",4:"<:4decarreau:1168559440774041621>",5:"<:5decarreau:1168559445308084256>",6:"<:6decarreau:1168559763462819940>",7:"<:7decarreau:1168559845872517172>",8:"<:8decarreau:1168559888989949994>",9:"<:9decarreau:1168559942215667804>",10:"<:10decarreau:1168559475481907230>",J:"<:valetdecarreau:1168560633634095234>",Q:"<:reinedecarreau:1168560618182291577>",K:"<:roidecarreau:1168560626185011281>"},hearts:{1:"<:asdecoeur:1168560613971214368>",2:"<:2decoeur:1168559428681859073>",3:"<:3decoeur:1168559435950592060>",4:"<:4decoeur:1168559442074284073>",5:"<:5decoeur:1168559723226865725>",6:"<:6decoeur:1168559452509708298>",7:"<:7decoeur:1168559457769365684>",8:"<:8decoeur:1168559463368757339>",9:"<:9decoeur:1168559938897989672>",10:"<:10decoeur:1168559477658751006>",J:"<:valetdecoeur:1168560635991298160>",Q:"<:reinedecoeur:1168560619855822940>",K:"<:roidecoeur:1168560678378950716>"},clubs:{1:"<:asdetrfle:1168560617444081834>",2:"<:2detrfle:1168559432242831512>",3:"<:3detrfle:1168559439440269403>",4:"<:4detrfle:1168559677936762982>",5:"<:5detrfle:1168559449540145153>",6:"<:6detrfle:1168559761260818594>",7:"<:7detrfle:1168559844748435549>",8:"<:8detrfle:1168559466334142575>",9:"<:9detrfle:1168559940953194576>",10:"<:10detrfle:1168559959802380288>",J:"<:valetdetrfle:1168560610531885137>",Q:"<:reinedetrfle:1168560623228026972>",K:"<:roidetrfle:1168560675543580712>"}},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>"},characteristics:{vitality:"<:vitality:1251861015277338675>",strength:"<:strength:1251860738595618838>",agility:"<:agility:1251860734145728596>",intelligence:"<:intelligence:1251860736943194144>",chance:"<:chance:1251860735827513425>",wisdom:"<:wisdom:1251861017231884378>"},bag:"<:sacdosbleu:1320873412121460837>",items:Rh,equipments:Ch},xh=(t,a)=>{const s=t.badge,n=t.isFactionBadge;return s?u.progressiveBadgeTypeGuard(s)?s.emojis[s.isProgressive.findIndex(r=>r===t.rank.id)]:s.emojis:n?Uh.factions[`b_${a}_${t.rank.id}`]:""},Bh=t=>{const[a,s]=t.split("_"),n=Object.values(u.BadgeList).find(r=>r.id===a);if(n)return u.progressiveBadgeTypeGuard(n)?n.emojis[n.isProgressive.findIndex(r=>r===s)]:n.emojis},Dh=async(t,a)=>{const s=Object.values(Wa).find(n=>new n().id===t);if(s){const n=new s,r=await n.complete(a,{});r&&le("userDaily",a,[[n,r]])}},Ah=async(t,a)=>{const s=Object.values(Vc).find(n=>new n().id===t);if(s){const n=new s,r=await n.complete(a,{});r&&le("crewDaily",a,[[n,r]])}};class Oh extends o{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 Nh extends o{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 $h extends o{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 Eh extends o{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 Fh extends o{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 Ih extends o{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 Yh extends o{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 Lh extends o{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 Ph extends o{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 Th extends o{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 jh extends o{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 Qh extends o{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 qh extends o{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 Hh extends o{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 Kh extends o{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 Gh extends o{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 Vh extends o{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 Wh extends o{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 zh extends o{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 Xh extends o{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 ts=Object.freeze(Object.defineProperty({__proto__:null,Bet10M:Yf,Bet666:F0,BetMinValue:Ff,Birthday:Qf,BotPing:qf,ChestOpen1000Quest:e0,ChestOpen150Quest:Zf,ChestOpen2000Quest:t0,ChestOpen500Quest:Jf,ChestOpen50Quest:Xf,Craft1000Times:i0,Craft100CookedMeals:d0,Craft100Scrolls:y0,Craft10CookedMeals:l0,Craft10Scrolls:h0,Craft200Times:n0,Craft20Scrolls:m0,Craft20Times:a0,Craft250CookedMeals:c0,Craft500CookedMeals:u0,Craft500Times:r0,Craft50CookedMeals:o0,Craft50Scrolls:p0,Craft50Times:s0,Craft5Scrolls:f0,Crew10Percent:g0,Crew90Percent:_0,DoubleSix:R0,Draw1000Quest:S0,Draw100Quest:w0,Draw2000Quest:M0,Draw300Quest:b0,Draw5000Quest:v0,DrawDoubleSix:U0,Drink1000Alcohols:Eh,Drink1000Beer:Kh,Drink1000Quest:Vf,Drink1000Rhum:Th,Drink1000Wine:Xh,Drink100Beer:Qh,Drink100Rhum:Yh,Drink100Today:Hf,Drink100Wine:Vh,Drink10Beer:jh,Drink10Rhum:Ih,Drink10Wine:Gh,Drink2000Alcohols:Fh,Drink2000Quest:Wf,Drink200Quest:Kf,Drink250Alcohols:Nh,Drink250Beer:qh,Drink250Rhum:Lh,Drink250Wine:Wh,Drink5000Quest:zf,Drink500Alcohols:$h,Drink500Beer:Hh,Drink500Quest:Gf,Drink500Rhum:Ph,Drink500Wine:zh,Drink50Alcohols:Oh,Edito:k0,Everyone:C0,Finish100Raids:T0,Finish10Raids:Y0,Finish200Raids:j0,Finish25Raids:L0,Finish50Raids:P0,GuessInOne:E0,Lose10M:jf,LoseAll5GamesInRow:D0,LoseEverything:If,Paper100:O0,RandomMessage100Quest:H0,RandomMessage200Quest:K0,RandomMessage20Quest:Q0,RandomMessage500Quest:G0,RandomMessage50Quest:q0,Report:V0,Rock100:$0,Scissor100:N0,SevenQuitteOuDouble:x0,SpendShop500M:ah,SpendShop50M:th,SpendShop50Ml:nh,SpendShop5M:eh,SpendShop5Ml:sh,TenBlackJack:A0,TotalBet10M:Pf,TotalBet1Md:Tf,Voice10Hours:rh,Voice2500Hours:oh,Voice250Hours:lh,Voice25Hours:ih,Voice5000Hours:dh,WinAll5GamesInRow:B0,WinLose10:I0,WinOn10MBet:Lf,Work1000Quest:fh,Work100Quest:ch,Work2000Quest:hh,Work300Quest:uh,Work5000Quest:mh,Write100Chats:_h,Write10Chats:ph,Write200Chats:wh,Write20Chats:yh,Write50Chats:gh,send100000Messages:Z0,send1000Messages:z0,send100Messages:W0,send200000Messages:J0,send25000Messages:X0},Symbol.toStringTag,{value:"Module"}));class Zh extends o{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[n,r]of Object.entries(s.daily))if(!be(r,new Date)&&this.id!==n)return!1;return Object.keys(s.daily).filter(n=>n!==this.id).length>=5})}}const as=Object.freeze(Object.defineProperty({__proto__:null,DailyAll:Zh},Symbol.toStringTag,{value:"Module"})),Jh=[...Object.values(Ja),...Object.values(es),...Object.values(Za),...Object.values(ts),...Object.values(as),...Object.values(Xa),...Object.values(za),...Object.values(Wa)],em=async t=>{var s;const a=[];for(const n of Object.values(Ja)){const r=new n;if((s=r.onUserMetaUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{_userMeta:t});i&&a.push([r,i])}}a.length>0&&le("userMetaUpdate",t.user._id,a)},tm=async t=>{var s;const a=[];for(const n of Object.values(ts)){const r=new n;if((s=r.onUserQuestMetaUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{});i&&a.push([r,i])}}a.length>0&&le("userQuestMetaUpdate",t.user._id,a)},am=["raidUnlock"],Hn=new Ss.EventEmitter,ot=(t,a,s)=>{Hn.emit(t,a,s)},sm=t=>{for(const a of am)Hn.on(a,(s,n)=>{t(a,s,n)})},nm=async t=>{var s,n;const a=await _s(t.user._id);l.getCurrentLevel(t.xp.amount)>=30&&!_t(a,"training")&&(await bt(a.user._id,"training"),ot("raidUnlock",t.user._id,"training")),(((n=(s=a.obtainedRewards.training)==null?void 0:s.filter(r=>r.startsWith("end_")))==null?void 0:n.length)??0)>=4&&!_t(a,"resources")&&(await bt(a.user._id,"resources"),ot("raidUnlock",t.user._id,"resources"))},rm=async t=>{const a=await _s(t.user._id);ia(t.equipmentList,s=>s.id).map(s=>S.findEquipment(s)).filter(s=>s.panoply==="adventurer").length===6&&!_t(a,"pirate_cave")&&(await bt(a.user._id,"pirate_cave"),ot("raidUnlock",t.user._id,"pirate_cave")),(t.itemList.get("map_fragment")??0)>=5&&!_t(a,"mysterious_island")&&(await bt(a.user._id,"mysterious_island"),await xe(t.user._id,"map_fragment",5),ot("raidUnlock",t.user._id,"mysterious_island"))},ss=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}});ss.index({user:1}),ss.post("findOneAndUpdate",async function(t){await tm(t)});const oe=((Gr=h.models)==null?void 0:Gr.UserQuestMeta)||h.model("UserQuestMeta",ss),k=async(t,a)=>{await oe.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},im=async t=>{await k(t,{$inc:{work:1}})},lm=async t=>{await k(t,{$set:{hadMoreThanZeroBerry:!0}})},om=async t=>{await k(t,{$set:{sevenQuitteOuDouble:!0}})},dm=async t=>{await k(t,{$inc:{black_jack:1}})},cm=async(t,a,s)=>{await k(t,{$push:{lastGames:{$each:[{gameType:a,endState:s}],$position:0,$slice:20}}})},um=async t=>{await k(t,{$inc:{draw:1}})},fm=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 oe.updateOne({user:t,"bet666.last":{$gte:a,$lte:s}},{$inc:{"bet666.amount":1},$set:{"bet666.last":new Date}}),await oe.updateOne({user:t,"bet666.last":{$lt:a}},{$set:{"bet666.last":new Date,"bet666.amount":1}})},hm=async(t,a)=>{await k(t,{$inc:{totalBet:a}})},mm=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}}])},Kn=async(t,a)=>{await k(t,{$inc:{totalSpentInShop:a}})},pm=async(t,a,s)=>{const n=S.findEntity(s);await k(t,{$inc:{"crafts.cookedMeal":S.isCookedMeal(n)?a:0,"crafts.scrolls":S.isScrollItem(n)?a:0,"crafts.total":a}})},ym=async t=>{await k(t,{$set:{reportedSomeone:!0}})},gm=async t=>{await k(t,{$inc:{randomMessage:1}})},_m=async t=>{await k(t,{$inc:{botPing:1}})},wm=async t=>{await k(t,{$inc:{guessInOne:1}})},bm=async t=>{await k(t,{$set:{hasCelebrateBirthday:!0}})},Sm=async t=>{await k(t,{$inc:{double_six:1}})},Mm=async t=>{await k(t,{$inc:{drawDoubleSix:1}})},vm=async(t,a)=>{a?await k(t,{$set:{timeAt10Percent:0}}):await k(t,{$inc:{timeAt10Percent:1}})},km=async(t,a)=>{a?await k(t,{$set:{timeAt90Percent:0}}):await k(t,{$inc:{timeAt90Percent:1}})},Cm=async t=>{await k(t,{$set:{tagEveryone:!0}})},Rm=async t=>{await k(t,{$set:{betMin:!0}})},Gn=async t=>{await k(t,{$set:{loseEverything:!0}})},Um=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:fm,botPingIncrement:_m,drawDoubleSix:Mm,drawIncrement:um,hadMoreThanZeroBerry:lm,hasBet10M:async t=>{await k(t,{$set:{bet10M:!0}})},hasBetMin:Rm,hasCelebrateBirthday:bm,hasGuessInOne:wm,hasLose10M:async t=>{await k(t,{$set:{lose10M:!0}})},hasLoseEverything:Gn,hasReportedSomeone:ym,hasSevenQod:om,hasTagEveryone:Cm,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 oe.updateOne({user:t,"items.bottle.last":{$gte:s}},{$inc:{"items.bottle.today":a},$set:{"items.bottle.last":new Date}}),await oe.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:gm,readEdito:async t=>{const a=new Date;a.setHours(0,0,0,0),await oe.updateOne({user:t,"edito.lastTimeRead":{$gte:a}},{$inc:{"edito.readToday":1},$set:{"edito.lastTimeRead":new Date}}),await oe.updateOne({user:t,"edito.lastTimeRead":{$lt:a}},{$set:{"edito.lastTimeRead":new Date,"edito.readToday":1}})},updateCrafts:pm,updateCrew10Percent:vm,updateCrew90Percent:km,updateLastGames:cm,updateRps:mm,updateTotalBet:hm,updateTotalSpentInShop:Kn,winBlackjack:dm,winDoubleSix:Sm,workIncrement:im},Symbol.toStringTag,{value:"Module"})),Ke={multiplier:{type:Number,default:0},origin:String,expireAt:{type:Date,default:null},startAt:{type:Date,default:null}},dt=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},premium:{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:[Ke],default:[]},work:{type:[Ke],default:[]}},berry:{work:{type:[Ke],default:[]},global:{type:[Ke],default:[]}},drop:{work:{type:[Ke],default:[]}},xp:{global:{type:[Ke],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}}});dt.index({user:1}),dt.index({"xp.amount":-1}),dt.index({berry:-1}),dt.post("findOneAndUpdate",async function(t){await nm(t),await em(t),t.berry===0&&await Gn(t.user._id),t.hp<=0&&await sr(t.user._id)});const Ue=((Vr=h.models)==null?void 0:Vr.UserMeta)||h.model("UserMeta",dt),Vn=async t=>await Ue.create({user:t}),ct=async(t,a={})=>{const s=await Ue.findOne({user:t},a);return s||await Vn(t)},xm=(t,a)=>Ue.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0}),E=async(t,a)=>{await Ue.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0})},Bm=async t=>{await E(t,{$set:{"xp.lastMessageWithXp":new Date}})},Dm=async(t,a)=>{await E(t,{$inc:{"xp.amount":a}})},Wn=async(t,a)=>{await E(t,[{$set:{berry:{$max:[{$add:["$berry",a]},0]}}}])},Am=async(t,a)=>{await E(t,{$set:{premium:a}})},Om=async(t,a)=>{const{xp:{boost:s}}=await xm(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},ns=async(t,a)=>{if(Array.isArray(a)){for(const n of a)await ns(t,n);return}const s=S.transformToDBBuff(a);await E(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}]]}}}}}])},rs=async(t,a)=>{await E(t,{$pull:{[`buffs.${a.target}`]:{origin:a.origin}}})},Nm=async(t,a,s,n)=>{const r=S.fromDBToEquipableEquipment(a),i=ks(Object.values(s)),d=S.allPanoplies.find(w=>w.id===r.panoply);if(!d)return;const f=d.equipments.filter(w=>(i.find(B=>w.id===B.id)||!n&&r.id===w.id)&&(n?r.id!==w.id:!0)).length,p=f===d.equipments.length?d.fullBonus:f>=d.equipments.length/2?d.halfBonus:void 0;d.halfBonus&&"target"in d.halfBonus&&await rs(t,d.halfBonus),d.fullBonus&&"target"in d.fullBonus&&await rs(t,d.fullBonus),p&&"target"in p&&await ns(t,p)},zn=async(t,a,{userMeta:s,userInventory:n})=>{const r=s??await ct(t,{buffs:0,xp:0}),i=n??await Wt(t,{itemList:0,equipmentList:0}),f=await Be(t,r,i)-r.hp;await E(t,{$set:{hp:r.hp+Math.floor(Math.min(a,f))}})},$m=async(t,a)=>{await E(t,[{$set:{hp:{$max:[{$add:["$hp",-a]},0]}}}])},Ge=async(t,a)=>{const s=await Be(t);await E(t,[{$set:{hp:{$round:[{$multiply:[{$divide:["$hp",a]},s]},0]}}}])},Em=Object.freeze(Object.defineProperty({__proto__:null,addBerry:Wn,addCharacteristics:async(t,a)=>{const s=await Be(t),n=Object.fromEntries(Object.entries(a).filter(([,r])=>r!==0).map(([r,i])=>[`characteristics.${r}`,i]));await E(t,{$inc:n}),Ge(t,s)},addMinutesInVoiceToday:async(t,a)=>{await E(t,{$inc:{"xp.voice.minutesInVoiceToday":a}})},addScrollCharacteristic:async(t,a)=>{const s=await Be(t),n=Object.fromEntries(Object.entries(a).filter(([,r])=>r!==0).map(([r,i])=>[`scrolls.${r}`,i]));await E(t,{$inc:n}),Ge(t,s)},addXp:Dm,gainHp:zn,incrementWorkUnluckyStreak:async t=>{await E(t,{$inc:{workUnluckyStreak:1}})},loseHp:$m,removeBuff:rs,resetCharacteristics:async(t,a,s)=>{const n=await Be(t,s),r={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};a?await E(t,{$set:{characteristics:r,"resetCharacteristics.free":!1}}):await E(t,{$set:{characteristics:r,"resetCharacteristics.nextAvailable":new Date(Date.now()+30*24*60*60*1e3)},$inc:{berry:-1e8}}),Ge(t,n)},resetMinutesInVoiceToday:async t=>{await E(t,{$set:{"xp.voice.minutesInVoiceToday":0}})},resetWorkUnluckyStreak:async t=>{await E(t,{$set:{workUnluckyStreak:0}})},updateBoost:Om,updateBuff:ns,updateHp:Ge,updateLastMessageTime:Bm,updateLastVoiceConnection:async(t,a)=>{await E(t,{$set:{"xp.voice.lastConnection":a}})},updatePanoplyBuff:Nm,updatePremium:Am},Symbol.toStringTag,{value:"Module"})),Fm=async t=>{var s;const a=[];for(const n of Object.values(Za)){const r=new n;if((s=r.onUserInventoryUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{});i&&a.push([r,i])}}a.length>0&&le("userInventoryUpdate",t.user._id,a)},is=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},equippedItems:{type:Object,default:{}},equipmentList:{type:[{id:String,seed:Number}],default:[]},itemList:{type:Map,of:Number,default:{}},recipes:{type:[String],default:[]}},{minimize:!1});is.index({user:1}),is.post("findOneAndUpdate",async function(t){await rm(t),await Fm(t)});const ut=((Wr=h.models)==null?void 0:Wr.UserInventory)||h.model("UserInventory",is),de=async(t,a)=>{await ut.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},ce=async(t,a,s)=>{await de(t,{$inc:{[`itemList.${a}`]:s}}),await Vt(t,[a])},Im=async(t,a)=>{await de(t,{$inc:Object.fromEntries(Object.entries(a).filter(([,s])=>(s??0)>0).map(([s,n])=>[`itemList.${s}`,n]))}),await Vt(t,Qa(a).filter(([,s])=>s>0).map(([s])=>s))},xe=async(t,a,s)=>{s!==0&&await de(t,[{$set:{[`itemList.${a}`]:{$max:[{$add:[`$itemList.${a}`,-s]},0]}}}])},Xn=async(t,a,s)=>{await de(t,{$pull:{equipmentList:{id:a,seed:s}}})},Zn=async(t,a,s,n)=>{s!==0&&(S.isEquipmentId(a)?await Xn(t,a,n):await xe(t,a,s))},Ym=async(t,a)=>{await de(t,{$set:{[`itemList.${a}`]:0}})},ls=async(t,a)=>{await de(t,{$push:{equipmentList:{$each:a}}}),await Vt(t,a.map(s=>s.id))},Lm=Object.freeze(Object.defineProperty({__proto__:null,addEquipments:ls,addInventoryItem:ce,addInventoryItems:Im,craftItem:async(t,a,s,n,r)=>{for(const{itemId:f,size:p}of a)await xe(t,f,p*n);const{itemId:i,size:d}=s;S.isEquipmentId(i)?await ls(t,[{id:i,seed:r}]):await ce(t,i,d*n)},dismantleEntity:async(t,a,s,n,r)=>{await Zn(t,a.id,n,r);for(const{entityId:i,quantity:d}of s)S.isEquipmentId(i)||await ce(t,i,n*d);await xe(t,"tools",1)},enchantItem:async(t,a,s,n)=>{await xe(t,a,n*4),await xe(t,"enchanted_stone",n),await ce(t,s,n)},equip:async(t,a,s)=>{const n=await Be(t);await de(t,{$set:{[`equippedItems.${a}`]:s}}),await Ge(t,n)},removeAllItemInventory:Ym,removeEquipment:Xn,removeInventoryEntity:Zn,removeInventoryItem:xe,unequip:async(t,a)=>{const s=await Be(t);await de(t,{$set:{[`equippedItems.${a}`]:null}}),await Ge(t,s)},unlockRecipe:async(t,a)=>{await de(t,{$addToSet:{recipes:a}})}},Symbol.toStringTag,{value:"Module"})),Jn=async t=>await ut.create({user:t}),Wt=async(t,a={})=>{const s=await ut.findOne({user:t},a);return s||await Jn(t)},os=t=>Object.fromEntries(l.CHARACTERISTICS.map(a=>[a,U.getComputedCharacteristicValue(t.characteristics[a])+t.scrolls[a]])),Pm=t=>Date.now()-t.xp.lastMessageWithXp.getTime()>60*1e3,ds=t=>{const{boost:a}=t.xp;return(a!==null&&Date.now()<a.getTime()?.2:0)+(t.premium?.5:0)+t.buffs.xp.global.reduce((s,{expireAt:n,startAt:r,multiplier:i})=>s+((r??new Date)<=new Date&&(!n||!$e(n))?i:0),0)},Tm=t=>{const a=t.trim().length,s=2;return a<10?10*s:a>300?300*s:a*s},jm=(t,a,s)=>(a*=1+ds(t),Math.ceil(a*s)),Qm=(t,a,s)=>{const n=s?1:er(t);return a<=0?a:Math.ceil(a*(n||1))},qm=t=>t.buffs.cooldown.work.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&(!s||!$e(s))?r:0),1),Hm=t=>t.buffs.drop.work.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&(!s||!$e(s))?r:0),1),Km=t=>t.buffs.berry.work.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&(!s||!$e(s))?r:0),1),er=t=>t.buffs.berry.global.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&(!s||!$e(s))?r:0),1),Gm=t=>t.buffs.cooldown.casino.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&(!s||!$e(s))?r:0),1),Be=async(t,a,s)=>{const n=a??await ct(t,{buffs:0,xp:0}),r=s??await Wt(t,{itemList:0,equipmentList:0});return((os(n).vitality??0)+Va(r).vitality)*l.HP_PER_VITALITY+l.DEFAULT_MAX_HP},Vm=Object.freeze(Object.defineProperty({__proto__:null,calcBerry:Qm,calcBerryGlobalBuff:er,calcBerryWorkBuff:Km,calcCooldownCasinoBuff:Gm,calcCooldownWorkBuff:qm,calcDropWorkBuff:Hm,calcMessageXp:Tm,calcXp:jm,calcXpBoost:ds,getBerryRank:async t=>(await Ue.aggregate([{$setWindowFields:{sortBy:{berry:-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getGlobalRank:async t=>(await Ue.aggregate([{$setWindowFields:{sortBy:{"xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getMaxHp:Be,getTotalCharacteristics:os,hasCharacteristicRequirement:async(t,a,s,n)=>{const r=s??await ct(t,{buffs:0,xp:0}),i=n??await Wt(t,{itemList:0,equipmentList:0}),d=ja(os(r),Va(i),(f,p)=>f+p);if("sum"in a){let f=0;for(const p of a.characteristics)f+=d[p]??0;return f>=a.sum}else{for(const f of Object.keys(a))if(d[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:n,expireAt:r}of a)if(s<0&&(!r||!$e(r))&&(n??new Date)<=new Date)return!0;return!1},isCooldownForXpPassed:Pm},Symbol.toStringTag,{value:"Module"})),tr=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)}}});tr.index({user:1});const ft=((zr=h.models)==null?void 0:zr.UserCooldown)||h.model("UserCooldown",tr),ht=async(t,a)=>{await ft.updateOne({user:t},a,{upsert:!0})},Wm=async(t,a)=>{await ht(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)},ar=async(t,a,s,n)=>{await ht(t,{$set:{[`raid.${a}`]:new Date(Date.now()+s)}}),n.raid[a]&&await Ka(t,`raid/${a}`,new Date(Date.now()+s))},sr=async t=>{await ht(t,{$set:{lockUserCommand:new Date(Date.now()+2*3600*1e3)}}),await zn(t,1,{})},zm=Object.freeze(Object.defineProperty({__proto__:null,lockUserCommand:sr,reduceRaidCooldown:Wm,startRaidCooldown:ar,useCommand:async(t,a,s,n)=>{await ht(t,{$set:{[`commands.${a}`]:new Date(Date.now()+s)}}),n.commands[a]&&await Ka(t,`commands/${a}`,new Date(Date.now()+s))}},Symbol.toStringTag,{value:"Module"})),Xm=["work","rps","blackjack","guess","qod","dice"],nr=async t=>await ft.create({user:t}),Zm=async(t,a={})=>{const s=await ft.findOne({user:t},a);return s||await nr(t)},cs=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});cs.virtual("inventory",{ref:"Crew",localField:"crew",foreignField:"_id",justOne:!0}),cs.index({user:1});const Ve=((Xr=h.models)==null?void 0:Xr.UserCrew)||h.model("UserCrew",cs),us=async(t,a)=>{await Ve.updateOne({user:t},a,{upsert:!0})},Jm=async(t,a)=>{await us(t,{$set:{percent:a}})},rr=async t=>{await us(t,{$set:{lastAllMembersDaily:new Date}})},ep=Object.freeze(Object.defineProperty({__proto__:null,allMembersDailyComplete:rr,updatePercent:Jm},Symbol.toStringTag,{value:"Module"})),ir=t=>Ve.findOne({user:t}),tp=async(t,a,s,n)=>await Ve.create({user:t,crew:a,percent:n,permission:s}),ap=t=>Ve.exists({user:t}),lr=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}});lr.index({user:1});const zt=((Zr=h.models)==null?void 0:Zr.UserDailyReport)||h.model("UserDailyReport",lr),or=async(t,a)=>{await zt.updateOne({user:t},a,{upsert:!0})},sp=Object.freeze(Object.defineProperty({__proto__:null,updateDailyReport:async(t,a)=>{await or(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"})),dr=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},guess:{type:{tries:Number,amount:Number,numberToGuess:Number},default:null}});dr.index({user:1});const mt=((Jr=h.models)==null?void 0:Jr.UserGames)||h.model("UserGames",dr),Xt=async(t,a)=>{await mt.updateOne({user:t},a,{upsert:!0})},np=Object.freeze(Object.defineProperty({__proto__:null,resetGuessGame:async t=>{await Xt(t,{$set:{guess:null}})},setGuessGame:async(t,a,s,n)=>{await Xt(t,{$set:{guess:{amount:a,tries:s,numberToGuess:n}}})},updateGuessGame:async t=>{await Xt(t,{$inc:{"guess.tries":1}})}},Symbol.toStringTag,{value:"Module"})),cr=async t=>await mt.create({user:t}),rp=async(t,a)=>{const s=await mt.findOne({user:t},a);return s||await cr(t)},ip=async t=>{var s;const a=[];for(const n of Object.values(es)){const r=new n;if((s=r.onUserOrnamentsUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{});i&&a.push([r,i])}}a.length>0&&le("userOrnamentsUpdate",t.user._id,a)},fs=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"}});fs.index({user:1}),fs.post("findOneAndUpdate",async function(t){await ip(t)});const pt=((ei=h.models)==null?void 0:ei.UserOrnaments)||h.model("UserOrnaments",fs),K=async(t,a)=>{await pt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},hs=async(t,a)=>{await K(t,{$addToSet:{unlockedTitles:a}})},lp=async(t,a)=>{await K(t,{$addToSet:{unlockedTitles:{$each:a}}})},op=async(t,a)=>{await K(t,{$set:{selectedTitle:a}})},ur=async(t,a)=>{await K(t,{$addToSet:{unlockedBackgrounds:a}})},dp=async(t,a)=>{await K(t,{$addToSet:{unlockedBackgrounds:{$each:a}}})},cp=async(t,a)=>{await K(t,{$set:{selectedBackground:a}})},fr=async(t,a,s)=>{a.isProgressive?await K(t,{$addToSet:{unlockedBadges:`${a.id}_${s}`}}):await K(t,{$addToSet:{unlockedBadges:a.id}})},hr=async(t,a)=>{await K(t,{$addToSet:{unlockedFactionBadges:{$each:[`b_marine_${a}`,`b_revolutionary_${a}`,`b_pirate_${a}`]}}})},mr=async(t,a)=>{await K(t,{$addToSet:{unlockedProfileAssets:a}})},up=Object.freeze(Object.defineProperty({__proto__:null,selectBackground:cp,selectBag:async(t,a)=>{await K(t,{$set:{selectedBag:a}})},selectTitle:op,unlockBackground:ur,unlockBackgrounds:dp,unlockBadge:fr,unlockBag:async(t,a)=>{await K(t,{$addToSet:{unlockedBags:a}})},unlockFactionBadge:hr,unlockProfileAsset:mr,unlockTitle:hs,unlockTitles:lp},Symbol.toStringTag,{value:"Module"})),pr=async t=>await pt.create({user:t}),fp=async(t,a)=>{const s=await pt.findOne({user:t},a);return s||await pr(t)},yr=(t,a)=>t.completed.includes(a),gr=(t,a)=>{const s=t.daily[a];return s&&be(s,new Date)},ms=t=>be(Ta(),t.lastFullComplete),ps=t=>ms(t)?1+Math.min(2,t.streak/10):1,_r=t=>t.completed.reduce((a,s)=>a+(s.startsWith("be_level_")?1:0),0),wr=(t,a)=>{const s=_r(t);return u.factionTitleList.find(n=>n.strength===s&&n.faction===a)},hp=Object.freeze(Object.defineProperty({__proto__:null,getFactionTitle:wr,getFactionTitleStrength:_r,getStreakMultiplier:ps,isDailyQuestCompleted:gr,isQuestCompleted:yr,isStreaking:ms},Symbol.toStringTag,{value:"Module"})),mp=async t=>{var s;const a=[];for(const n of Object.values(as)){const r=new n;if((s=r.onUserQuestUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{_userQuest:t});i&&a.push([r,i])}}a.length>0&&le("userQuestUpdate",t.user._id,a)},ys=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});ys.index({user:1}),ys.post("findOneAndUpdate",async function(t){await mp(t)});const yt=((ti=h.models)==null?void 0:ti.UserQuest)||h.model("UserQuest",ys),gt=async(t,a)=>{await yt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},br=async(t,a)=>{await gt(t,{$addToSet:{completed:a}})},Sr=async(t,a)=>{await gt(t,[{$addFields:{[`daily.${a}`]:new Date}}])},Mr=async(t,a)=>{be(Ta(),a)?await gt(t,{$inc:{streak:1},$set:{lastFullComplete:new Date}}):await gt(t,{$set:{lastFullComplete:new Date,streak:1}})},pp=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Sr,completeQuest:br,updateStreak:Mr},Symbol.toStringTag,{value:"Module"})),vr=async t=>await yt.create({user:t}),gs=async t=>{const a=await yt.findOne({user:t});return a||await vr(t)},_t=(t,a)=>{var s;return(s=t.unlocked)==null?void 0:s[a]},yp=Object.freeze(Object.defineProperty({__proto__:null,alreadyObtainedRaidReward:(t,a,s)=>a in t.obtainedRewards?t.obtainedRewards[a].includes(s):!1,fulfillCondition:(t,a,s,n)=>n==="include"?s.every(r=>(t.obtainedConditions[a]??[]).includes(r)):s.every(r=>!(t.obtainedConditions[a]??[]).includes(r)),getObtainedRaidReward:(t,a)=>t.obtainedRewards[a]??[],hasUnlockedRaid:_t},Symbol.toStringTag,{value:"Module"})),kr=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});kr.index({user:1});const wt=((ai=h.models)==null?void 0:ai.UserRaid)||h.model("UserRaid",kr),Se=async(t,a)=>{await wt.updateOne({user:t},a,{upsert:!0})},bt=async(t,a)=>{await Se(t,{$set:{[`unlocked.${a}`]:!0}})},gp=Object.freeze(Object.defineProperty({__proto__:null,addRewardsToRaid:async(t,a)=>{await Se(t,{$inc:Object.fromEntries(Qa(a).filter(([s])=>s!=="title"&&s!=="condition").map(([s,n])=>[`currentRaid.rewards.${s}`,n])),...a.title?{$set:{"currentRaid.rewards.title":a.title}}:{}})},claimReward:async(t,a,s)=>{await Se(t,{$addToSet:{[`obtainedRewards.${a}`]:s}})},progressRaid:async(t,a)=>{await Se(t,{$push:{"currentRaid.progression":a}})},resetRaid:async t=>{await Se(t,{$unset:{currentRaid:""}})},resetRaidProgression:async t=>{await Se(t,{$set:{"currentRaid.progression":[]}})},startRaid:async(t,a,s,n,r,i)=>{const d=Date.now();return await Se(t,{$set:{currentRaid:{raidId:a,buffItem:s,seed:d,progression:[],rewards:{}}}}),await ar(t,n,r,i),d},unlockRaid:bt,updateCondition:async(t,a,s)=>{await Se(t,{$addToSet:{[`obtainedConditions.${a}`]:s}})}},Symbol.toStringTag,{value:"Module"})),Cr=async t=>await wt.create({user:t}),_s=async t=>{const a=await wt.findOne({user:t});return a||await Cr(t)},_p=Object.freeze(Object.defineProperty({__proto__:null,getShopItemRest:(t,a,s,n,r)=>{var f;if(S.isEquipmentId(a))return n;let i=S.getAllItemsLimit()[a];const d=(f=t.limit)==null?void 0:f[a];return r==="half"&&a==="chest_2"&&(i+=2),r==="full"&&a==="chest_3"&&(i+=1),i?t.lastShopId!==s?i:d?i-d:Math.min(i,n):n},isShopBuyLimitReached:(t,a,s,n)=>{var d;if(S.isEquipmentId(a))return!1;let r=S.getAllItemsLimit()[a];const i=(d=t.limit)==null?void 0:d[a];return n==="half"&&a==="chest_2"&&(r+=2),n==="full"&&a==="chest_3"&&(r+=1),t.lastShopId!==s?!1:!!(r&&i&&i>=r)}},Symbol.toStringTag,{value:"Module"})),Rr=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});Rr.index({user:1});const Zt=((si=h.models)==null?void 0:si.UserShop)||h.model("UserShop",Rr),Ur=async(t,a)=>{await Zt.updateOne({user:t},a,{upsert:!0})},wp=Object.freeze(Object.defineProperty({__proto__:null,increaseShopBuyLimit:async(t,a,s,n)=>{await Ur(t,[{$set:{limit:{$cond:{if:{$eq:["$lastShopId",s]},then:{$mergeObjects:["$limit",{[a]:{$add:[{$ifNull:[`$limit.${a}`,0]},n]}}]},else:{[a]:n}}},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 ut.deleteOne({user:t}),await mt.deleteOne({user:t}),await pt.deleteOne({user:t}),await wt.deleteOne({user:t}),await Ve.deleteOne({user:t}),await zt.deleteOne({user:t}),await Zt.deleteOne({user:t}),await Ue.deleteOne({user:t}),await yt.deleteOne({user:t}),await oe.deleteOne({user:t}),await ft.deleteOne({user:t})});const G=((ni=h.models)==null?void 0:ni.User)||h.model("User",T),bp=t=>G.create({userId:t}),Jt=async(t,a={})=>{const s=await xr({userId:t},a);return s||await bp(t)},xr=(t,a={})=>G.findOne(t,a),Sp=Object.freeze(Object.defineProperty({__proto__:null,getAllDailyReport:async()=>G.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()=>G.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:n,amount:r}=s,{unlockedBadges:i,unlockedBackgrounds:d,unlockedTitles:f}=t.ornaments,{previousOrnament:p,previousCompletedQuest:w,xpYesterday:B,berryYesterday:I,previousMessageSent:q}=t.dailyReport;return{berry:a-I,xp:r-B,message:t.questMeta.messageSent-q,voice:be(n.lastConnection,Ta())?n.minutesInVoiceToday:0,quest:vt(t.quest.completed,w),badge:vt(i,p.unlockedBadges),title:vt(f,p.unlockedTitles),background:vt(d,p.unlockedBackgrounds)}},getFactionRank:async(t,a)=>(await G.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=>G.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()=>G.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:()=>G.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()=>G.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:()=>G.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 Jt(t,{birthday:1})},Symbol.toStringTag,{value:"Module"})),Me=async(t,a,s=!1)=>{await G.updateOne(t,a,{upsert:s})},Br=async(t,a)=>{await Me({_id:t},{$set:{canChooseFaction:a}})},Dr=async(t,a)=>{await Me({_id:t},{$set:{canChangeFaction:a}})},Mp=Object.freeze(Object.defineProperty({__proto__:null,canChangeFaction:Dr,canChooseFaction:Br,removeBirthday:async t=>{await Me({userId:t},{$set:{birthday:null}})},setBirthday:async(t,a)=>{await Me({userId:t},{$set:{birthday:a}})},updateFaction:async(t,a)=>{await Me({_id:t},{$set:{faction:a}})},updateInventorySort:async(t,a)=>{await Me({_id:t},{$set:{"settings.sort.inventory":a}})},updateReminderSettings:async(t,a,s)=>{await Me({_id:t},{$set:{[`settings.reminder.${a}`]:s}})},updateSendDailyQuest:async(t,a)=>{await Me({userId:t},{$set:{"settings.sendDailyQuest":a}})},updateSendDailyReport:async(t,a)=>{await Me({userId:t},{$set:{"settings.sendDailyReport":a}})}},Symbol.toStringTag,{value:"Module"})),vp=async t=>{await G.deleteOne({userId:t})},kp=async t=>await zt.create({user:t}),Cp=async t=>await oe.create({user:t}),Rp=async t=>await Zt.create({user:t}),Ar=(t,a)=>{switch(t){case"dailyReport":return kp(a);case"games":return cr(a);case"inventory":return Jn(a);case"meta":return Vn(a);case"raid":return Cr(a);case"ornaments":return pr(a);case"quest":return vr(a);case"questMeta":return Cp(a);case"shop":return Rp(a);case"cooldown":return nr(a);case"reminder":return[];case"crew":return null;case"encyclopedia":return Qn(a)}},Or=async(t,a,s)=>{if(Array.isArray(a)){const n=await t.populate(a);for(const r of a)n[r]||(n[r]=await Ar(r,t._id));return n}else{const n=await t.populate(a,s),r=n[a];return(!r||Array.isArray(r)&&r.length===0)&&(n[a]=await Ar(a,t._id)),n}},Nr=new h.Schema({warnedUserId:String,authorId:String,date:{type:Date,default:Date.now()},reason:{type:String,default:null}});Nr.index({warnedUserId:1});const We=((ri=h.models)==null?void 0:ri.Warns)||h.model("Warns",Nr),Up=Object.freeze(Object.defineProperty({__proto__:null,getUserWarnCount:async t=>await We.countDocuments({warnedUserId:t}),getUserWarns:async t=>await We.find({warnedUserId:t})},Symbol.toStringTag,{value:"Module"})),xp=async t=>await We.findOne({warnedUserId:t}),Bp=async t=>await We.create({...t}),Dp=async t=>await We.findByIdAndDelete(t),Ap=async t=>{var s;const a={};for(const n of Object.values(Xa)){const r=new n;for(const i of t.members){const d=await Jt(i,{_id:1});if((s=r.onCrewUpdate)!=null&&s.call(r,t,d._id)){const f=await r.complete(d._id,{});if(f){const p=a[d.id];a[d.id]=p?[d._id,[...p[1],[r,f]]]:[d._id,[[r,f]]]}}}}Object.values(a).forEach(([n,r])=>{le("crewUpdate",n,r)})},Op={localField:"_id",foreignField:"crew",justOne:!0},ea=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});ea.index({"meta.xp":-1}),ea.virtual("quest",{ref:"CrewQuest",...Op}),ea.post("findOneAndUpdate",async function(t){await Ap(t)});const ze=((ii=h.models)==null?void 0:ii.Crew)||h.model("Crew",ea),Np=(t,a)=>Math.ceil(a*(t.disintegration/100)*($r(t)||1)),$r=t=>new Date>=(t.meta.buffs.xp.expireAt??new Date(0))?!1:t.meta.buffs.xp.boost,$p=Object.freeze(Object.defineProperty({__proto__:null,calcXp:Np,getCrewRank:async t=>(await ze.aggregate([{$setWindowFields:{sortBy:{"meta.xp":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t._id}},{$project:{_id:1,"meta.xp":1,rank:1}}]))[0],getCrewRanking:async()=>ze.aggregate([{$sort:{"meta.xp":-1}},{$limit:10}]),hasXpBuff:$r},Symbol.toStringTag,{value:"Module"})),ve=async(t,a)=>{await ze.findOneAndUpdate({_id:t},a,{returnDocument:"after"})},Er=async(t,a,s)=>{a.isProgressive?await ve(t,{$addToSet:{"ornament.unlockedBadges":`${a.id}_${s}`}}):await ve(t,{$addToSet:{"ornament.unlockedBadges":a.id}})},Ep=Object.freeze(Object.defineProperty({__proto__:null,addBerry:async(t,a,s)=>{await ve(t,{$inc:{"meta.berry":a,[`stats.${s.toHexString()}.berry`]:a}})},addMember:async(t,a)=>{await ve(t,{$addToSet:{members:a}})},addXp:async(t,a,s)=>{await ve(t,{$inc:{"meta.xp":a,[`stats.${s.toHexString()}.xp`]:a}})},addXpBuff:async(t,a)=>{await ve(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,n]=[a-2,(a-3)*2+3];await ve(t,[{$set:{disintegration:{$max:[{$add:["$disintegration",-1*vs(s,n)]},0]}}}])},increaseLimit:async(t,a)=>{await ve(t,{$inc:{limit:1,"meta.berry":-a}})},repair:async(t,a)=>{await ve(t,[{$set:{disintegration:{$min:[{$add:["$disintegration",a]},100]}}}])},unlockBadge:Er},Symbol.toStringTag,{value:"Module"})),Fp=async(t,a={})=>{const s=await ze.findById(t,a);return s||null},Ip=async(t,{name:a,description:s,channelId:n,faction:r})=>await ze.create({name:a,description:s,createdBy:t,channelId:n,faction:r,members:[t]}),Fr=(t,a)=>{for(const[,s]of Object.entries(t.daily??{}))if(!(s!=null&&s[a])||!be(s[a],new Date))return!1;return!0},Yp=Object.freeze(Object.defineProperty({__proto__:null,isAllDailyCompleted:Fr},Symbol.toStringTag,{value:"Module"})),Lp=async t=>{var n;const a={},{crew:s}=await t.populate("crew");for(const r of Object.values(za)){const i=new r;for(const d of s.members){const f=await Jt(d,{_id:1,crew:1}).then(p=>Or(p,"crew",{lastAllMembersDaily:1}));if(f.crew&&((n=i.onCrewQuestUpdate)!=null&&n.call(i,t,f.crew))){const p=await i.complete(f._id,{});if(p){const w=a[f.id];a[f.id]=w?[f._id,[...w[1],[i,p]]]:[f._id,[[i,p]]]}}}}Object.values(a).forEach(([r,i])=>{le("crewQuestUpdate",r,i)})},ws=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});ws.index({crew:1}),ws.post("findOneAndUpdate",async function(t){await Lp(t)});const ta=((li=h.models)==null?void 0:li.CrewQuest)||h.model("CrewQuest",ws),aa=async(t,a)=>{await ta.findOneAndUpdate({crew:t},a,{upsert:!0,returnDocument:"after"})},Ir=async(t,a)=>{await aa(t,{$addToSet:{completed:a}})},Yr=async(t,a,s)=>{await aa(t,[{$addFields:{[`daily.${a}.${s}`]:new Date}}])},Pp=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Yr,completeQuest:Ir,setActualVoiceMembers:async(t,a)=>{await aa(t,{$set:{"meta.actualVoiceMembers.amount":a,"meta.actualVoiceMembers.connectedAt":new Date}})},setMaxVoiceMembers:async(t,a)=>{await aa(t,{$set:{"meta.maxVoiceMembers":a}})}},Symbol.toStringTag,{value:"Module"})),bs=async t=>await ta.create({crew:t}),Tp=async t=>{const a=await ta.findOne({crew:t});return a||await bs(t)},Lr=(t,a)=>{switch(t){case"quest":return bs(a)}},jp=async(t,a,s)=>{if(Array.isArray(a)){const n=await t.populate(a);for(const r of a)n[r]||(n[r]=await Lr(r,t._id));return n}else{const n=await t.populate(a,s),r=n[a];return(!r||Array.isArray(r)&&r.length===0)&&(n[a]=await Lr(a,t._id)),n}},Qp=t=>{h.connect(t)};class qp extends h.Types.ObjectId{}c.ALL_QUESTS=Jh,c.BET_MAX_VALUE=Mh,c.BET_MIN_VALUE=Sh,c.BackgroundShopItem=Un,c.BoostXpShopItem=xn,c.BottleShopItem=On,c.COOLDOWN_COMMANDS=Xm,c.ChestShopItem=Bn,c.CrewQuestQuests=za,c.CrewQuests=Xa,c.EDITO_READ=vh,c.EquipmentShopItem=An,c.ObjectId=qp,c.ObjectShopItem=Dn,c.QUEST_ASSET_IMAGES=kh,c.Quest=o,c.RepairShopItem=Nn,c.StoreShopItem=$n,c.TitleShopItem=En,c.UserDailyQuests=Wa,c.UserInventoryQuests=Za,c.UserMetaQuests=Ja,c.UserOrnamentsQuests=es,c.UserQuestMetaQuests=ts,c.UserQuestQuests=as,c.banExists=mi,c.banGetters=ci,c.banModel=Fe,c.betModel=ra,c.completeCrewQuest=Ah,c.completeDailyQuest=Dh,c.connectToServices=Qp,c.createBan=ui,c.createBet=gi,c.createCrew=Ip,c.createCrewQuest=bs,c.createInvitations=wi,c.createReminder=Yc,c.createSettings=Rn,c.createUserCrew=tp,c.createWarn=Bp,c.crewGetters=$p,c.crewModel=ze,c.crewQuestGetters=Yp,c.crewQuestModel=ta,c.crewQuestUpdates=Pp,c.crewUpdates=Ep,c.deleteBan=hi,c.deleteInvitations=bi,c.deleteUserById=vp,c.deleteWarn=Dp,c.emitQuestEvent=le,c.emitRaidEvent=ot,c.finWarnById=xp,c.findBan=fi,c.findBetById=yi,c.findCrewById=Fp,c.findCrewQuest=Tp,c.findInvitations=_i,c.findReminder=Ic,c.findSettingsByGuildId=Uc,c.findShop=Ln,c.findShopByType=Oc,c.findUser=xr,c.findUserById=Jt,c.findUserCooldown=Zm,c.findUserCrew=ir,c.findUserEncyclopedia=Qc,c.findUserGames=rp,c.findUserInventory=Wt,c.findUserMeta=ct,c.findUserOrnaments=fp,c.findUserQuest=gs,c.findUserRaid=_s,c.getBadgeEmojisFromId=Bh,c.getQuestBadgeEmojis=xh,c.invitationsModel=St,c.onQuestEvent=Hc,c.onRaidEvent=sm,c.populateCrew=jp,c.populateUser=Or,c.questCanvas=bh,c.reminderGetters=$c,c.reminderModel=Ee,c.reminderUpdates=Fc,c.settingsModel=Ht,c.settingsUpdates=Rc,c.shopGetters=xc,c.shopModel=Kt,c.shopUpdates=Dc,c.updateUserCooldown=ht,c.updateUserCrew=us,c.updateUserDailyReport=or,c.updateUserEncyclopedia=jn,c.updateUserGames=Xt,c.updateUserInventory=de,c.updateUserMeta=E,c.updateUserOrnaments=K,c.updateUserQuest=gt,c.updateUserQuestMeta=k,c.updateUserRaid=Se,c.updateUserShop=Ur,c.userCooldownGetters=Nc,c.userCooldownModel=ft,c.userCooldownUpdates=zm,c.userCrewExists=ap,c.userCrewModel=Ve,c.userCrewUpdates=ep,c.userDailyReportModel=zt,c.userDailyReportUpdates=sp,c.userEncyclopediaGetters=Tc,c.userEncyclopediaModel=Gt,c.userEncyclopediaUpdates=jc,c.userGamesModel=mt,c.userGamesUpdates=np,c.userGetters=Sp,c.userInventoryGetters=Pc,c.userInventoryModel=ut,c.userInventoryUpdates=Lm,c.userMetaGetters=Vm,c.userMetaModel=Ue,c.userMetaUpdates=Em,c.userModel=G,c.userOrnamentsModel=pt,c.userOrnamentsUpdates=up,c.userQuestGetters=hp,c.userQuestMetaModel=oe,c.userQuestMetaUpdates=Um,c.userQuestModel=yt,c.userQuestUpdates=pp,c.userRaidGetters=yp,c.userRaidModel=wt,c.userRaidUpdates=gp,c.userShopGetters=_p,c.userShopModel=Zt,c.userShopUpdates=wp,c.userUpdates=Mp,c.warnGetters=Up,c.warnModel=We,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|