@opfr/quests 1.4.1 → 1.4.3

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.
Files changed (76) hide show
  1. package/dist/canvas.d.ts +1 -2
  2. package/dist/canvas.d.ts.map +1 -1
  3. package/dist/canvas.js.map +1 -1
  4. package/dist/class/userBaseQuest.d.ts +2 -3
  5. package/dist/class/userBaseQuest.d.ts.map +1 -1
  6. package/dist/class/userBaseQuest.js +2 -2
  7. package/dist/class/userBaseQuest.js.map +1 -1
  8. package/dist/events/callbacks.d.ts +1 -1
  9. package/dist/events/callbacks.d.ts.map +1 -1
  10. package/dist/events/callbacks.js +9 -42
  11. package/dist/events/callbacks.js.map +1 -1
  12. package/dist/events/event.d.ts +3 -4
  13. package/dist/events/event.d.ts.map +1 -1
  14. package/dist/events/event.js.map +1 -1
  15. package/dist/events/index.js +1 -1
  16. package/dist/events/index.js.map +1 -1
  17. package/dist/events/types.d.ts +2 -3
  18. package/dist/events/types.d.ts.map +1 -1
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.es.js +3993 -4804
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.umd.js +3 -3
  24. package/dist/quests/index.d.ts +1 -21
  25. package/dist/quests/index.d.ts.map +1 -1
  26. package/dist/quests/index.js +0 -30
  27. package/dist/quests/index.js.map +1 -1
  28. package/dist/utils.d.ts +1 -2
  29. package/dist/utils.d.ts.map +1 -1
  30. package/dist/utils.js +2 -17
  31. package/dist/utils.js.map +1 -1
  32. package/package.json +6 -6
  33. package/dist/class/crewBaseQuest.d.ts +0 -14
  34. package/dist/class/crewBaseQuest.d.ts.map +0 -1
  35. package/dist/class/crewBaseQuest.js +0 -70
  36. package/dist/class/crewBaseQuest.js.map +0 -1
  37. package/dist/quests/crewCarpenter.d.ts +0 -70
  38. package/dist/quests/crewCarpenter.d.ts.map +0 -1
  39. package/dist/quests/crewCarpenter.js +0 -95
  40. package/dist/quests/crewCarpenter.js.map +0 -1
  41. package/dist/quests/crewDaily.d.ts +0 -27
  42. package/dist/quests/crewDaily.d.ts.map +0 -1
  43. package/dist/quests/crewDaily.js +0 -39
  44. package/dist/quests/crewDaily.js.map +0 -1
  45. package/dist/quests/crewDisintegration.d.ts +0 -16
  46. package/dist/quests/crewDisintegration.d.ts.map +0 -1
  47. package/dist/quests/crewDisintegration.js +0 -19
  48. package/dist/quests/crewDisintegration.js.map +0 -1
  49. package/dist/quests/crewLevel.d.ts +0 -65
  50. package/dist/quests/crewLevel.d.ts.map +0 -1
  51. package/dist/quests/crewLevel.js +0 -80
  52. package/dist/quests/crewLevel.js.map +0 -1
  53. package/dist/quests/crewMoney.d.ts +0 -65
  54. package/dist/quests/crewMoney.d.ts.map +0 -1
  55. package/dist/quests/crewMoney.js +0 -80
  56. package/dist/quests/crewMoney.js.map +0 -1
  57. package/dist/quests/crewSize.d.ts +0 -65
  58. package/dist/quests/crewSize.d.ts.map +0 -1
  59. package/dist/quests/crewSize.js +0 -80
  60. package/dist/quests/crewSize.js.map +0 -1
  61. package/dist/quests/crewVocal.d.ts +0 -65
  62. package/dist/quests/crewVocal.d.ts.map +0 -1
  63. package/dist/quests/crewVocal.js +0 -90
  64. package/dist/quests/crewVocal.js.map +0 -1
  65. package/dist/quests/raid.d.ts +0 -55
  66. package/dist/quests/raid.d.ts.map +0 -1
  67. package/dist/quests/raid.js +0 -80
  68. package/dist/quests/raid.js.map +0 -1
  69. package/dist/quests/userCrew.d.ts +0 -30
  70. package/dist/quests/userCrew.d.ts.map +0 -1
  71. package/dist/quests/userCrew.js +0 -36
  72. package/dist/quests/userCrew.js.map +0 -1
  73. package/dist/quests/userXpToCrew.d.ts +0 -60
  74. package/dist/quests/userXpToCrew.d.ts.map +0 -1
  75. package/dist/quests/userXpToCrew.js +0 -75
  76. package/dist/quests/userXpToCrew.js.map +0 -1
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(d,ut){typeof exports=="object"&&typeof module<"u"?ut(exports,require("@napi-rs/canvas"),require("@opfr/services")):typeof define=="function"&&define.amd?define(["exports","@napi-rs/canvas","@opfr/services"],ut):(d=typeof globalThis<"u"?globalThis:d||self,ut(d.definitions={},d["@napi-rs/canvas"],d["@opfr/services"]))})(this,(function(d,ut,r){"use strict";const ue=(t,e)=>(t.options={...t.options,...e,text:"text"in t.options?t.options.text:""},e.enable&&(t.options={...t.options,x:e.x+(e.width??0),y:e.y}),t);var be=(t=>(t.TOP_LEFT="top-left",t.TOP="top",t.TOP_RIGHT="top-right",t.LEFT="left",t.CENTER="center",t.RIGHT="right",t.BOTTOM_LEFT="bottom-left",t.BOTTOM="bottom",t.BOTTOM_RIGHT="bottom-right",t))(be||{});var Ua;function y(){return Ua.apply(null,arguments)}function yd(t){Ua=t}function te(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function Ae(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Ht(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(k(t,e))return!1;return!0}function z(t){return t===void 0}function he(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function He(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function Pa(t,e){var a=[],i,n=t.length;for(i=0;i<n;++i)a.push(e(t[i],i));return a}function Me(t,e){for(var a in e)k(e,a)&&(t[a]=e[a]);return k(e,"toString")&&(t.toString=e.toString),k(e,"valueOf")&&(t.valueOf=e.valueOf),t}function re(t,e,a,i){return ui(t,e,a,i,!0).utc()}function Md(){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 A(t){return t._pf==null&&(t._pf=Md()),t._pf}var jt;Array.prototype.some?jt=Array.prototype.some:jt=function(t){var e=Object(this),a=e.length>>>0,i;for(i=0;i<a;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};function Bt(t){var e=null,a=!1,i=t._d&&!isNaN(t._d.getTime());if(i&&(e=A(t),a=jt.call(e.parsedDateParts,function(n){return n!=null}),i=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&a),t._strict&&(i=i&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=i;else return i;return t._isValid}function ht(t){var e=re(NaN);return t!=null?Me(A(e),t):A(e).userInvalidated=!0,e}var Ya=y.momentProperties=[],Gt=!1;function $t(t,e){var a,i,n,s=Ya.length;if(z(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),z(e._i)||(t._i=e._i),z(e._f)||(t._f=e._f),z(e._l)||(t._l=e._l),z(e._strict)||(t._strict=e._strict),z(e._tzm)||(t._tzm=e._tzm),z(e._isUTC)||(t._isUTC=e._isUTC),z(e._offset)||(t._offset=e._offset),z(e._pf)||(t._pf=A(e)),z(e._locale)||(t._locale=e._locale),s>0)for(a=0;a<s;a++)i=Ya[a],n=e[i],z(n)||(t[i]=n);return t}function je(t){$t(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Gt===!1&&(Gt=!0,y.updateOffset(this),Gt=!1)}function ae(t){return t instanceof je||t!=null&&t._isAMomentObject!=null}function Wa(t){y.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function Z(t,e){var a=!0;return Me(function(){if(y.deprecationHandler!=null&&y.deprecationHandler(null,t),a){var i=[],n,s,o,c=arguments.length;for(s=0;s<c;s++){if(n="",typeof arguments[s]=="object"){n+=`
2
- [`+s+"] ";for(o in arguments[0])k(arguments[0],o)&&(n+=o+": "+arguments[0][o]+", ");n=n.slice(0,-2)}else n=arguments[s];i.push(n)}Wa(t+`
1
+ (function(d,ot){typeof exports=="object"&&typeof module<"u"?ot(exports,require("@napi-rs/canvas"),require("@opfr/services"),require("events")):typeof define=="function"&&define.amd?define(["exports","@napi-rs/canvas","@opfr/services","events"],ot):(d=typeof globalThis<"u"?globalThis:d||self,ot(d.definitions={},d["@napi-rs/canvas"],d["@opfr/services"],d.events))})(this,(function(d,ot,r,vo){"use strict";function ko(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const Oo=ko(vo),ue=(e,t)=>(e.options={...e.options,...t,text:"text"in e.options?e.options.text:""},t.enable&&(e.options={...e.options,x:t.x+(t.width??0),y:t.y}),e);var be=(e=>(e.TOP_LEFT="top-left",e.TOP="top",e.TOP_RIGHT="top-right",e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM="bottom",e.BOTTOM_RIGHT="bottom-right",e))(be||{});var xa;function S(){return xa.apply(null,arguments)}function xo(e){xa=e}function ee(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ae(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Pt(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(v(e,t))return!1;return!0}function $(e){return e===void 0}function ce(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function He(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Ca(e,t){var a=[],i,s=e.length;for(i=0;i<s;++i)a.push(t(e[i],i));return a}function ye(e,t){for(var a in t)v(t,a)&&(e[a]=t[a]);return v(t,"toString")&&(e.toString=t.toString),v(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ne(e,t,a,i){return oi(e,t,a,i,!0).utc()}function Co(){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 R(e){return e._pf==null&&(e._pf=Co()),e._pf}var Wt;Array.prototype.some?Wt=Array.prototype.some:Wt=function(e){var t=Object(this),a=t.length>>>0,i;for(i=0;i<a;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};function Ht(e){var t=null,a=!1,i=e._d&&!isNaN(e._d.getTime());if(i&&(t=R(e),a=Wt.call(t.parsedDateParts,function(s){return s!=null}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a),e._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=i;else return i;return e._isValid}function dt(e){var t=ne(NaN);return e!=null?ye(R(t),e):R(t).userInvalidated=!0,t}var La=S.momentProperties=[],Ft=!1;function jt(e,t){var a,i,s,n=La.length;if($(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),$(t._i)||(e._i=t._i),$(t._f)||(e._f=t._f),$(t._l)||(e._l=t._l),$(t._strict)||(e._strict=t._strict),$(t._tzm)||(e._tzm=t._tzm),$(t._isUTC)||(e._isUTC=t._isUTC),$(t._offset)||(e._offset=t._offset),$(t._pf)||(e._pf=R(t)),$(t._locale)||(e._locale=t._locale),n>0)for(a=0;a<n;a++)i=La[a],s=t[i],$(s)||(e[i]=s);return e}function Fe(e){jt(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Ft===!1&&(Ft=!0,S.updateOffset(this),Ft=!1)}function te(e){return e instanceof Fe||e!=null&&e._isAMomentObject!=null}function Va(e){S.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function J(e,t){var a=!0;return ye(function(){if(S.deprecationHandler!=null&&S.deprecationHandler(null,e),a){var i=[],s,n,o,l=arguments.length;for(n=0;n<l;n++){if(s="",typeof arguments[n]=="object"){s+=`
2
+ [`+n+"] ";for(o in arguments[0])v(arguments[0],o)&&(s+=o+": "+arguments[0][o]+", ");s=s.slice(0,-2)}else s=arguments[n];i.push(s)}Va(e+`
3
3
  Arguments: `+Array.prototype.slice.call(i).join("")+`
4
- `+new Error().stack),a=!1}return e.apply(this,arguments)},e)}var Qa={};function Fa(t,e){y.deprecationHandler!=null&&y.deprecationHandler(t,e),Qa[t]||(Wa(e),Qa[t]=!0)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null;function oe(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function Td(t){var e,a;for(a in t)k(t,a)&&(e=t[a],oe(e)?this[a]=e:this["_"+a]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function zt(t,e){var a=Me({},t),i;for(i in e)k(e,i)&&(Ae(t[i])&&Ae(e[i])?(a[i]={},Me(a[i],t[i]),Me(a[i],e[i])):e[i]!=null?a[i]=e[i]:delete a[i]);for(i in t)k(t,i)&&!k(e,i)&&Ae(t[i])&&(a[i]=Me({},a[i]));return a}function qt(t){t!=null&&this.set(t)}var Kt;Object.keys?Kt=Object.keys:Kt=function(t){var e,a=[];for(e in t)k(t,e)&&a.push(e);return a};var wd={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function bd(t,e,a){var i=this._calendar[t]||this._calendar.sameElse;return oe(i)?i.call(e,a):i}function de(t,e,a){var i=""+Math.abs(t),n=e-i.length,s=t>=0;return(s?a?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+i}var Jt=/(\[[^\[]*\])|(\\)?([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,ft=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Zt={},ke={};function T(t,e,a,i){var n=i;typeof i=="string"&&(n=function(){return this[i]()}),t&&(ke[t]=n),e&&(ke[e[0]]=function(){return de(n.apply(this,arguments),e[1],e[2])}),a&&(ke[a]=function(){return this.localeData().ordinal(n.apply(this,arguments),t)})}function Ad(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Rd(t){var e=t.match(Jt),a,i;for(a=0,i=e.length;a<i;a++)ke[e[a]]?e[a]=ke[e[a]]:e[a]=Ad(e[a]);return function(n){var s="",o;for(o=0;o<i;o++)s+=oe(e[o])?e[o].call(n,t):e[o];return s}}function _t(t,e){return t.isValid()?(e=Ha(e,t.localeData()),Zt[e]=Zt[e]||Rd(e),Zt[e](t)):t.localeData().invalidDate()}function Ha(t,e){var a=5;function i(n){return e.longDateFormat(n)||n}for(ft.lastIndex=0;a>=0&&ft.test(t);)t=t.replace(ft,i),ft.lastIndex=0,a-=1;return t}var Dd={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 Nd(t){var e=this._longDateFormat[t],a=this._longDateFormat[t.toUpperCase()];return e||!a?e:(this._longDateFormat[t]=a.match(Jt).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[t])}var Id="Invalid date";function kd(){return this._invalidDate}var Cd="%d",vd=/\d{1,2}/;function Od(t){return this._ordinal.replace("%d",t)}var xd={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 Ld(t,e,a,i){var n=this._relativeTime[a];return oe(n)?n(t,e,a,i):n.replace(/%d/i,t)}function Vd(t,e){var a=this._relativeTime[t>0?"future":"past"];return oe(a)?a(e):a.replace(/%s/i,e)}var ja={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 X(t){return typeof t=="string"?ja[t]||ja[t.toLowerCase()]:void 0}function Xt(t){var e={},a,i;for(i in t)k(t,i)&&(a=X(i),a&&(e[a]=t[i]));return e}var Ud={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 Pd(t){var e=[],a;for(a in t)k(t,a)&&e.push({unit:a,priority:Ud[a]});return e.sort(function(i,n){return i.priority-n.priority}),e}var Ba=/\d/,q=/\d\d/,Ga=/\d{3}/,ea=/\d{4}/,pt=/[+-]?\d{6}/,U=/\d\d?/,$a=/\d\d\d\d?/,za=/\d\d\d\d\d\d?/,mt=/\d{1,3}/,ta=/\d{1,4}/,Et=/[+-]?\d{1,6}/,Ce=/\d+/,gt=/[+-]?\d+/,Yd=/Z|[+-]\d\d:?\d\d/gi,St=/Z|[+-]\d\d(?::?\d\d)?/gi,Wd=/[+-]?\d+(\.\d{1,3})?/,Be=/[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,ve=/^[1-9]\d?/,aa=/^([1-9]\d|\d)/,yt;yt={};function M(t,e,a){yt[t]=oe(e)?e:function(i,n){return i&&a?a:e}}function Qd(t,e){return k(yt,t)?yt[t](e._strict,e._locale):new RegExp(Fd(t))}function Fd(t){return fe(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,a,i,n,s){return a||i||n||s}))}function fe(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ee(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function R(t){var e=+t,a=0;return e!==0&&isFinite(e)&&(a=ee(e)),a}var ia={};function L(t,e){var a,i=e,n;for(typeof t=="string"&&(t=[t]),he(e)&&(i=function(s,o){o[e]=R(s)}),n=t.length,a=0;a<n;a++)ia[t[a]]=i}function Ge(t,e){L(t,function(a,i,n,s){n._w=n._w||{},e(a,n._w,n,s)})}function Hd(t,e,a){e!=null&&k(ia,t)&&ia[t](e,a._a,a,t)}function Mt(t){return t%4===0&&t%100!==0||t%400===0}var B=0,_e=1,le=2,j=3,ie=4,pe=5,Re=6,jd=7,Bd=8;T("Y",0,0,function(){var t=this.year();return t<=9999?de(t,4):"+"+t}),T(0,["YY",2],0,function(){return this.year()%100}),T(0,["YYYY",4],0,"year"),T(0,["YYYYY",5],0,"year"),T(0,["YYYYYY",6,!0],0,"year"),M("Y",gt),M("YY",U,q),M("YYYY",ta,ea),M("YYYYY",Et,pt),M("YYYYYY",Et,pt),L(["YYYYY","YYYYYY"],B),L("YYYY",function(t,e){e[B]=t.length===2?y.parseTwoDigitYear(t):R(t)}),L("YY",function(t,e){e[B]=y.parseTwoDigitYear(t)}),L("Y",function(t,e){e[B]=parseInt(t,10)});function $e(t){return Mt(t)?366:365}y.parseTwoDigitYear=function(t){return R(t)+(R(t)>68?1900:2e3)};var qa=Oe("FullYear",!0);function Gd(){return Mt(this.year())}function Oe(t,e){return function(a){return a!=null?(Ka(this,t,a),y.updateOffset(this,e),this):ze(this,t)}}function ze(t,e){if(!t.isValid())return NaN;var a=t._d,i=t._isUTC;switch(e){case"Milliseconds":return i?a.getUTCMilliseconds():a.getMilliseconds();case"Seconds":return i?a.getUTCSeconds():a.getSeconds();case"Minutes":return i?a.getUTCMinutes():a.getMinutes();case"Hours":return i?a.getUTCHours():a.getHours();case"Date":return i?a.getUTCDate():a.getDate();case"Day":return i?a.getUTCDay():a.getDay();case"Month":return i?a.getUTCMonth():a.getMonth();case"FullYear":return i?a.getUTCFullYear():a.getFullYear();default:return NaN}}function Ka(t,e,a){var i,n,s,o,c;if(!(!t.isValid()||isNaN(a))){switch(i=t._d,n=t._isUTC,e){case"Milliseconds":return void(n?i.setUTCMilliseconds(a):i.setMilliseconds(a));case"Seconds":return void(n?i.setUTCSeconds(a):i.setSeconds(a));case"Minutes":return void(n?i.setUTCMinutes(a):i.setMinutes(a));case"Hours":return void(n?i.setUTCHours(a):i.setHours(a));case"Date":return void(n?i.setUTCDate(a):i.setDate(a));case"FullYear":break;default:return}s=a,o=t.month(),c=t.date(),c=c===29&&o===1&&!Mt(s)?28:c,n?i.setUTCFullYear(s,o,c):i.setFullYear(s,o,c)}}function $d(t){return t=X(t),oe(this[t])?this[t]():this}function zd(t,e){if(typeof t=="object"){t=Xt(t);var a=Pd(t),i,n=a.length;for(i=0;i<n;i++)this[a[i].unit](t[a[i].unit])}else if(t=X(t),oe(this[t]))return this[t](e);return this}function qd(t,e){return(t%e+e)%e}var F;Array.prototype.indexOf?F=Array.prototype.indexOf:F=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function na(t,e){if(isNaN(t)||isNaN(e))return NaN;var a=qd(e,12);return t+=(e-a)/12,a===1?Mt(t)?29:28:31-a%7%2}T("M",["MM",2],"Mo",function(){return this.month()+1}),T("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),T("MMMM",0,0,function(t){return this.localeData().months(this,t)}),M("M",U,ve),M("MM",U,q),M("MMM",function(t,e){return e.monthsShortRegex(t)}),M("MMMM",function(t,e){return e.monthsRegex(t)}),L(["M","MM"],function(t,e){e[_e]=R(t)-1}),L(["MMM","MMMM"],function(t,e,a,i){var n=a._locale.monthsParse(t,i,a._strict);n!=null?e[_e]=n:A(a).invalidMonth=t});var Kd="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ja="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Za=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Jd=Be,Zd=Be;function Xd(t,e){return t?te(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Za).test(e)?"format":"standalone"][t.month()]:te(this._months)?this._months:this._months.standalone}function el(t,e){return t?te(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Za.test(e)?"format":"standalone"][t.month()]:te(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function tl(t,e,a){var i,n,s,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=re([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return a?e==="MMM"?(n=F.call(this._shortMonthsParse,o),n!==-1?n:null):(n=F.call(this._longMonthsParse,o),n!==-1?n:null):e==="MMM"?(n=F.call(this._shortMonthsParse,o),n!==-1?n:(n=F.call(this._longMonthsParse,o),n!==-1?n:null)):(n=F.call(this._longMonthsParse,o),n!==-1?n:(n=F.call(this._shortMonthsParse,o),n!==-1?n:null))}function al(t,e,a){var i,n,s;if(this._monthsParseExact)return tl.call(this,t,e,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(n=re([2e3,i]),a&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!a&&!this._monthsParse[i]&&(s="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),a&&e==="MMMM"&&this._longMonthsParse[i].test(t))return i;if(a&&e==="MMM"&&this._shortMonthsParse[i].test(t))return i;if(!a&&this._monthsParse[i].test(t))return i}}function Xa(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=R(e);else if(e=t.localeData().monthsParse(e),!he(e))return t}var a=e,i=t.date();return i=i<29?i:Math.min(i,na(t.year(),a)),t._isUTC?t._d.setUTCMonth(a,i):t._d.setMonth(a,i),t}function ei(t){return t!=null?(Xa(this,t),y.updateOffset(this,!0),this):ze(this,"Month")}function il(){return na(this.year(),this.month())}function nl(t){return this._monthsParseExact?(k(this,"_monthsRegex")||ti.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(k(this,"_monthsShortRegex")||(this._monthsShortRegex=Jd),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function sl(t){return this._monthsParseExact?(k(this,"_monthsRegex")||ti.call(this),t?this._monthsStrictRegex:this._monthsRegex):(k(this,"_monthsRegex")||(this._monthsRegex=Zd),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function ti(){function t(h,f){return f.length-h.length}var e=[],a=[],i=[],n,s,o,c;for(n=0;n<12;n++)s=re([2e3,n]),o=fe(this.monthsShort(s,"")),c=fe(this.months(s,"")),e.push(o),a.push(c),i.push(c),i.push(o);e.sort(t),a.sort(t),i.sort(t),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function rl(t,e,a,i,n,s,o){var c;return t<100&&t>=0?(c=new Date(t+400,e,a,i,n,s,o),isFinite(c.getFullYear())&&c.setFullYear(t)):c=new Date(t,e,a,i,n,s,o),c}function qe(t){var e,a;return t<100&&t>=0?(a=Array.prototype.slice.call(arguments),a[0]=t+400,e=new Date(Date.UTC.apply(null,a)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Tt(t,e,a){var i=7+e-a,n=(7+qe(t,0,i).getUTCDay()-e)%7;return-n+i-1}function ai(t,e,a,i,n){var s=(7+a-i)%7,o=Tt(t,i,n),c=1+7*(e-1)+s+o,h,f;return c<=0?(h=t-1,f=$e(h)+c):c>$e(t)?(h=t+1,f=c-$e(t)):(h=t,f=c),{year:h,dayOfYear:f}}function Ke(t,e,a){var i=Tt(t.year(),e,a),n=Math.floor((t.dayOfYear()-i-1)/7)+1,s,o;return n<1?(o=t.year()-1,s=n+me(o,e,a)):n>me(t.year(),e,a)?(s=n-me(t.year(),e,a),o=t.year()+1):(o=t.year(),s=n),{week:s,year:o}}function me(t,e,a){var i=Tt(t,e,a),n=Tt(t+1,e,a);return($e(t)-i+n)/7}T("w",["ww",2],"wo","week"),T("W",["WW",2],"Wo","isoWeek"),M("w",U,ve),M("ww",U,q),M("W",U,ve),M("WW",U,q),Ge(["w","ww","W","WW"],function(t,e,a,i){e[i.substr(0,1)]=R(t)});function ol(t){return Ke(t,this._week.dow,this._week.doy).week}var dl={dow:0,doy:6};function ll(){return this._week.dow}function cl(){return this._week.doy}function ul(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function hl(t){var e=Ke(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}T("d",0,"do","day"),T("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),T("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),T("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),T("e",0,0,"weekday"),T("E",0,0,"isoWeekday"),M("d",U),M("e",U),M("E",U),M("dd",function(t,e){return e.weekdaysMinRegex(t)}),M("ddd",function(t,e){return e.weekdaysShortRegex(t)}),M("dddd",function(t,e){return e.weekdaysRegex(t)}),Ge(["dd","ddd","dddd"],function(t,e,a,i){var n=a._locale.weekdaysParse(t,i,a._strict);n!=null?e.d=n:A(a).invalidWeekday=t}),Ge(["d","e","E"],function(t,e,a,i){e[i]=R(t)});function fl(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function _l(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function sa(t,e){return t.slice(e,7).concat(t.slice(0,e))}var pl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ii="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ml="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),El=Be,gl=Be,Sl=Be;function yl(t,e){var a=te(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?sa(a,this._week.dow):t?a[t.day()]:a}function Ml(t){return t===!0?sa(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Tl(t){return t===!0?sa(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function wl(t,e,a){var i,n,s,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=re([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return a?e==="dddd"?(n=F.call(this._weekdaysParse,o),n!==-1?n:null):e==="ddd"?(n=F.call(this._shortWeekdaysParse,o),n!==-1?n:null):(n=F.call(this._minWeekdaysParse,o),n!==-1?n:null):e==="dddd"?(n=F.call(this._weekdaysParse,o),n!==-1||(n=F.call(this._shortWeekdaysParse,o),n!==-1)?n:(n=F.call(this._minWeekdaysParse,o),n!==-1?n:null)):e==="ddd"?(n=F.call(this._shortWeekdaysParse,o),n!==-1||(n=F.call(this._weekdaysParse,o),n!==-1)?n:(n=F.call(this._minWeekdaysParse,o),n!==-1?n:null)):(n=F.call(this._minWeekdaysParse,o),n!==-1||(n=F.call(this._weekdaysParse,o),n!==-1)?n:(n=F.call(this._shortWeekdaysParse,o),n!==-1?n:null))}function bl(t,e,a){var i,n,s;if(this._weekdaysParseExact)return wl.call(this,t,e,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(n=re([2e3,1]).day(i),a&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),a&&e==="dddd"&&this._fullWeekdaysParse[i].test(t))return i;if(a&&e==="ddd"&&this._shortWeekdaysParse[i].test(t))return i;if(a&&e==="dd"&&this._minWeekdaysParse[i].test(t))return i;if(!a&&this._weekdaysParse[i].test(t))return i}}function Al(t){if(!this.isValid())return t!=null?this:NaN;var e=ze(this,"Day");return t!=null?(t=fl(t,this.localeData()),this.add(t-e,"d")):e}function Rl(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function Dl(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=_l(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Nl(t){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||ra.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(k(this,"_weekdaysRegex")||(this._weekdaysRegex=El),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Il(t){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||ra.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(k(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=gl),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function kl(t){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||ra.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(k(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Sl),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ra(){function t(p,g){return g.length-p.length}var e=[],a=[],i=[],n=[],s,o,c,h,f;for(s=0;s<7;s++)o=re([2e3,1]).day(s),c=fe(this.weekdaysMin(o,"")),h=fe(this.weekdaysShort(o,"")),f=fe(this.weekdays(o,"")),e.push(c),a.push(h),i.push(f),n.push(c),n.push(h),n.push(f);e.sort(t),a.sort(t),i.sort(t),n.sort(t),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function oa(){return this.hours()%12||12}function Cl(){return this.hours()||24}T("H",["HH",2],0,"hour"),T("h",["hh",2],0,oa),T("k",["kk",2],0,Cl),T("hmm",0,0,function(){return""+oa.apply(this)+de(this.minutes(),2)}),T("hmmss",0,0,function(){return""+oa.apply(this)+de(this.minutes(),2)+de(this.seconds(),2)}),T("Hmm",0,0,function(){return""+this.hours()+de(this.minutes(),2)}),T("Hmmss",0,0,function(){return""+this.hours()+de(this.minutes(),2)+de(this.seconds(),2)});function ni(t,e){T(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}ni("a",!0),ni("A",!1);function si(t,e){return e._meridiemParse}M("a",si),M("A",si),M("H",U,aa),M("h",U,ve),M("k",U,ve),M("HH",U,q),M("hh",U,q),M("kk",U,q),M("hmm",$a),M("hmmss",za),M("Hmm",$a),M("Hmmss",za),L(["H","HH"],j),L(["k","kk"],function(t,e,a){var i=R(t);e[j]=i===24?0:i}),L(["a","A"],function(t,e,a){a._isPm=a._locale.isPM(t),a._meridiem=t}),L(["h","hh"],function(t,e,a){e[j]=R(t),A(a).bigHour=!0}),L("hmm",function(t,e,a){var i=t.length-2;e[j]=R(t.substr(0,i)),e[ie]=R(t.substr(i)),A(a).bigHour=!0}),L("hmmss",function(t,e,a){var i=t.length-4,n=t.length-2;e[j]=R(t.substr(0,i)),e[ie]=R(t.substr(i,2)),e[pe]=R(t.substr(n)),A(a).bigHour=!0}),L("Hmm",function(t,e,a){var i=t.length-2;e[j]=R(t.substr(0,i)),e[ie]=R(t.substr(i))}),L("Hmmss",function(t,e,a){var i=t.length-4,n=t.length-2;e[j]=R(t.substr(0,i)),e[ie]=R(t.substr(i,2)),e[pe]=R(t.substr(n))});function vl(t){return(t+"").toLowerCase().charAt(0)==="p"}var Ol=/[ap]\.?m?\.?/i,xl=Oe("Hours",!0);function Ll(t,e,a){return t>11?a?"pm":"PM":a?"am":"AM"}var ri={calendar:wd,longDateFormat:Dd,invalidDate:Id,ordinal:Cd,dayOfMonthOrdinalParse:vd,relativeTime:xd,months:Kd,monthsShort:Ja,week:dl,weekdays:pl,weekdaysMin:ml,weekdaysShort:ii,meridiemParse:Ol},Y={},Je={},Ze;function Vl(t,e){var a,i=Math.min(t.length,e.length);for(a=0;a<i;a+=1)if(t[a]!==e[a])return a;return i}function oi(t){return t&&t.toLowerCase().replace("_","-")}function Ul(t){for(var e=0,a,i,n,s;e<t.length;){for(s=oi(t[e]).split("-"),a=s.length,i=oi(t[e+1]),i=i?i.split("-"):null;a>0;){if(n=wt(s.slice(0,a).join("-")),n)return n;if(i&&i.length>=a&&Vl(s,i)>=a-1)break;a--}e++}return Ze}function Pl(t){return!!(t&&t.match("^[^/\\\\]*$"))}function wt(t){var e=null,a;if(Y[t]===void 0&&typeof module<"u"&&module&&module.exports&&Pl(t))try{e=Ze._abbr,a=require,a("./locale/"+t),Te(e)}catch{Y[t]=null}return Y[t]}function Te(t,e){var a;return t&&(z(e)?a=Ee(t):a=da(t,e),a?Ze=a:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Ze._abbr}function da(t,e){if(e!==null){var a,i=ri;if(e.abbr=t,Y[t]!=null)Fa("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."),i=Y[t]._config;else if(e.parentLocale!=null)if(Y[e.parentLocale]!=null)i=Y[e.parentLocale]._config;else if(a=wt(e.parentLocale),a!=null)i=a._config;else return Je[e.parentLocale]||(Je[e.parentLocale]=[]),Je[e.parentLocale].push({name:t,config:e}),null;return Y[t]=new qt(zt(i,e)),Je[t]&&Je[t].forEach(function(n){da(n.name,n.config)}),Te(t),Y[t]}else return delete Y[t],null}function Yl(t,e){if(e!=null){var a,i,n=ri;Y[t]!=null&&Y[t].parentLocale!=null?Y[t].set(zt(Y[t]._config,e)):(i=wt(t),i!=null&&(n=i._config),e=zt(n,e),i==null&&(e.abbr=t),a=new qt(e),a.parentLocale=Y[t],Y[t]=a),Te(t)}else Y[t]!=null&&(Y[t].parentLocale!=null?(Y[t]=Y[t].parentLocale,t===Te()&&Te(t)):Y[t]!=null&&delete Y[t]);return Y[t]}function Ee(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Ze;if(!te(t)){if(e=wt(t),e)return e;t=[t]}return Ul(t)}function Wl(){return Kt(Y)}function la(t){var e,a=t._a;return a&&A(t).overflow===-2&&(e=a[_e]<0||a[_e]>11?_e:a[le]<1||a[le]>na(a[B],a[_e])?le:a[j]<0||a[j]>24||a[j]===24&&(a[ie]!==0||a[pe]!==0||a[Re]!==0)?j:a[ie]<0||a[ie]>59?ie:a[pe]<0||a[pe]>59?pe:a[Re]<0||a[Re]>999?Re:-1,A(t)._overflowDayOfYear&&(e<B||e>le)&&(e=le),A(t)._overflowWeeks&&e===-1&&(e=jd),A(t)._overflowWeekday&&e===-1&&(e=Bd),A(t).overflow=e),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)?)?$/,Fl=/^\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)?/,bt=[["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]],ca=[["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/]],jl=/^\/?Date\((-?\d+)/i,Bl=/^(?:(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}))$/,Gl={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function di(t){var e,a,i=t._i,n=Ql.exec(i)||Fl.exec(i),s,o,c,h,f=bt.length,p=ca.length;if(n){for(A(t).iso=!0,e=0,a=f;e<a;e++)if(bt[e][1].exec(n[1])){o=bt[e][0],s=bt[e][2]!==!1;break}if(o==null){t._isValid=!1;return}if(n[3]){for(e=0,a=p;e<a;e++)if(ca[e][1].exec(n[3])){c=(n[2]||" ")+ca[e][0];break}if(c==null){t._isValid=!1;return}}if(!s&&c!=null){t._isValid=!1;return}if(n[4])if(Hl.exec(n[4]))h="Z";else{t._isValid=!1;return}t._f=o+(c||"")+(h||""),ha(t)}else t._isValid=!1}function $l(t,e,a,i,n,s){var o=[zl(t),Ja.indexOf(e),parseInt(a,10),parseInt(i,10),parseInt(n,10)];return s&&o.push(parseInt(s,10)),o}function zl(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function ql(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Kl(t,e,a){if(t){var i=ii.indexOf(t),n=new Date(e[0],e[1],e[2]).getDay();if(i!==n)return A(a).weekdayMismatch=!0,a._isValid=!1,!1}return!0}function Jl(t,e,a){if(t)return Gl[t];if(e)return 0;var i=parseInt(a,10),n=i%100,s=(i-n)/100;return s*60+n}function li(t){var e=Bl.exec(ql(t._i)),a;if(e){if(a=$l(e[4],e[3],e[2],e[5],e[6],e[7]),!Kl(e[1],a,t))return;t._a=a,t._tzm=Jl(e[8],e[9],e[10]),t._d=qe.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),A(t).rfc2822=!0}else t._isValid=!1}function Zl(t){var e=jl.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(di(t),t._isValid===!1)delete t._isValid;else return;if(li(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:y.createFromInputFallback(t)}y.createFromInputFallback=Z("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 xe(t,e,a){return t??e??a}function Xl(t){var e=new Date(y.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function ua(t){var e,a,i=[],n,s,o;if(!t._d){for(n=Xl(t),t._w&&t._a[le]==null&&t._a[_e]==null&&ec(t),t._dayOfYear!=null&&(o=xe(t._a[B],n[B]),(t._dayOfYear>$e(o)||t._dayOfYear===0)&&(A(t)._overflowDayOfYear=!0),a=qe(o,0,t._dayOfYear),t._a[_e]=a.getUTCMonth(),t._a[le]=a.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=i[e]=n[e];for(;e<7;e++)t._a[e]=i[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[j]===24&&t._a[ie]===0&&t._a[pe]===0&&t._a[Re]===0&&(t._nextDay=!0,t._a[j]=0),t._d=(t._useUTC?qe:rl).apply(null,i),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[j]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==s&&(A(t).weekdayMismatch=!0)}}function ec(t){var e,a,i,n,s,o,c,h,f;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(s=1,o=4,a=xe(e.GG,t._a[B],Ke(P(),1,4).year),i=xe(e.W,1),n=xe(e.E,1),(n<1||n>7)&&(h=!0)):(s=t._locale._week.dow,o=t._locale._week.doy,f=Ke(P(),s,o),a=xe(e.gg,t._a[B],f.year),i=xe(e.w,f.week),e.d!=null?(n=e.d,(n<0||n>6)&&(h=!0)):e.e!=null?(n=e.e+s,(e.e<0||e.e>6)&&(h=!0)):n=s),i<1||i>me(a,s,o)?A(t)._overflowWeeks=!0:h!=null?A(t)._overflowWeekday=!0:(c=ai(a,i,n,s,o),t._a[B]=c.year,t._dayOfYear=c.dayOfYear)}y.ISO_8601=function(){},y.RFC_2822=function(){};function ha(t){if(t._f===y.ISO_8601){di(t);return}if(t._f===y.RFC_2822){li(t);return}t._a=[],A(t).empty=!0;var e=""+t._i,a,i,n,s,o,c=e.length,h=0,f,p;for(n=Ha(t._f,t._locale).match(Jt)||[],p=n.length,a=0;a<p;a++)s=n[a],i=(e.match(Qd(s,t))||[])[0],i&&(o=e.substr(0,e.indexOf(i)),o.length>0&&A(t).unusedInput.push(o),e=e.slice(e.indexOf(i)+i.length),h+=i.length),ke[s]?(i?A(t).empty=!1:A(t).unusedTokens.push(s),Hd(s,i,t)):t._strict&&!i&&A(t).unusedTokens.push(s);A(t).charsLeftOver=c-h,e.length>0&&A(t).unusedInput.push(e),t._a[j]<=12&&A(t).bigHour===!0&&t._a[j]>0&&(A(t).bigHour=void 0),A(t).parsedDateParts=t._a.slice(0),A(t).meridiem=t._meridiem,t._a[j]=tc(t._locale,t._a[j],t._meridiem),f=A(t).era,f!==null&&(t._a[B]=t._locale.erasConvertYear(f,t._a[B])),ua(t),la(t)}function tc(t,e,a){var i;return a==null?e:t.meridiemHour!=null?t.meridiemHour(e,a):(t.isPM!=null&&(i=t.isPM(a),i&&e<12&&(e+=12),!i&&e===12&&(e=0)),e)}function ac(t){var e,a,i,n,s,o,c=!1,h=t._f.length;if(h===0){A(t).invalidFormat=!0,t._d=new Date(NaN);return}for(n=0;n<h;n++)s=0,o=!1,e=$t({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[n],ha(e),Bt(e)&&(o=!0),s+=A(e).charsLeftOver,s+=A(e).unusedTokens.length*10,A(e).score=s,c?s<i&&(i=s,a=e):(i==null||s<i||o)&&(i=s,a=e,o&&(c=!0));Me(t,a||e)}function ic(t){if(!t._d){var e=Xt(t._i),a=e.day===void 0?e.date:e.day;t._a=Pa([e.year,e.month,a,e.hour,e.minute,e.second,e.millisecond],function(i){return i&&parseInt(i,10)}),ua(t)}}function nc(t){var e=new je(la(ci(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function ci(t){var e=t._i,a=t._f;return t._locale=t._locale||Ee(t._l),e===null||a===void 0&&e===""?ht({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),ae(e)?new je(la(e)):(He(e)?t._d=e:te(a)?ac(t):a?ha(t):sc(t),Bt(t)||(t._d=null),t))}function sc(t){var e=t._i;z(e)?t._d=new Date(y.now()):He(e)?t._d=new Date(e.valueOf()):typeof e=="string"?Zl(t):te(e)?(t._a=Pa(e.slice(0),function(a){return parseInt(a,10)}),ua(t)):Ae(e)?ic(t):he(e)?t._d=new Date(e):y.createFromInputFallback(t)}function ui(t,e,a,i,n){var s={};return(e===!0||e===!1)&&(i=e,e=void 0),(a===!0||a===!1)&&(i=a,a=void 0),(Ae(t)&&Ht(t)||te(t)&&t.length===0)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=n,s._l=a,s._i=t,s._f=e,s._strict=i,nc(s)}function P(t,e,a,i){return ui(t,e,a,i,!1)}var rc=Z("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=P.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:ht()}),oc=Z("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=P.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:ht()});function hi(t,e){var a,i;if(e.length===1&&te(e[0])&&(e=e[0]),!e.length)return P();for(a=e[0],i=1;i<e.length;++i)(!e[i].isValid()||e[i][t](a))&&(a=e[i]);return a}function dc(){var t=[].slice.call(arguments,0);return hi("isBefore",t)}function lc(){var t=[].slice.call(arguments,0);return hi("isAfter",t)}var cc=function(){return Date.now?Date.now():+new Date},Xe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function uc(t){var e,a=!1,i,n=Xe.length;for(e in t)if(k(t,e)&&!(F.call(Xe,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(i=0;i<n;++i)if(t[Xe[i]]){if(a)return!1;parseFloat(t[Xe[i]])!==R(t[Xe[i]])&&(a=!0)}return!0}function hc(){return this._isValid}function fc(){return ne(NaN)}function At(t){var e=Xt(t),a=e.year||0,i=e.quarter||0,n=e.month||0,s=e.week||e.isoWeek||0,o=e.day||0,c=e.hour||0,h=e.minute||0,f=e.second||0,p=e.millisecond||0;this._isValid=uc(e),this._milliseconds=+p+f*1e3+h*6e4+c*1e3*60*60,this._days=+o+s*7,this._months=+n+i*3+a*12,this._data={},this._locale=Ee(),this._bubble()}function Rt(t){return t instanceof At}function fa(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function _c(t,e,a){var i=Math.min(t.length,e.length),n=Math.abs(t.length-e.length),s=0,o;for(o=0;o<i;o++)R(t[o])!==R(e[o])&&s++;return s+n}function fi(t,e){T(t,0,0,function(){var a=this.utcOffset(),i="+";return a<0&&(a=-a,i="-"),i+de(~~(a/60),2)+e+de(~~a%60,2)})}fi("Z",":"),fi("ZZ",""),M("Z",St),M("ZZ",St),L(["Z","ZZ"],function(t,e,a){a._useUTC=!0,a._tzm=_a(St,t)});var pc=/([\+\-]|\d\d)/gi;function _a(t,e){var a=(e||"").match(t),i,n,s;return a===null?null:(i=a[a.length-1]||[],n=(i+"").match(pc)||["-",0,0],s=+(n[1]*60)+R(n[2]),s===0?0:n[0]==="+"?s:-s)}function pa(t,e){var a,i;return e._isUTC?(a=e.clone(),i=(ae(t)||He(t)?t.valueOf():P(t).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+i),y.updateOffset(a,!1),a):P(t).local()}function ma(t){return-Math.round(t._d.getTimezoneOffset())}y.updateOffset=function(){};function mc(t,e,a){var i=this._offset||0,n;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=_a(St,t),t===null)return this}else Math.abs(t)<16&&!a&&(t=t*60);return!this._isUTC&&e&&(n=ma(this)),this._offset=t,this._isUTC=!0,n!=null&&this.add(n,"m"),i!==t&&(!e||this._changeInProgress?Ei(this,ne(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:ma(this)}function Ec(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function gc(t){return this.utcOffset(0,t)}function Sc(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ma(this),"m")),this}function yc(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=_a(Yd,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Mc(t){return this.isValid()?(t=t?P(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function Tc(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wc(){if(!z(this._isDSTShifted))return this._isDSTShifted;var t={},e;return $t(t,this),t=ci(t),t._a?(e=t._isUTC?re(t._a):P(t._a),this._isDSTShifted=this.isValid()&&_c(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function bc(){return this.isValid()?!this._isUTC:!1}function Ac(){return this.isValid()?this._isUTC:!1}function _i(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Rc=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dc=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ne(t,e){var a=t,i=null,n,s,o;return Rt(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:he(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(i=Rc.exec(t))?(n=i[1]==="-"?-1:1,a={y:0,d:R(i[le])*n,h:R(i[j])*n,m:R(i[ie])*n,s:R(i[pe])*n,ms:R(fa(i[Re]*1e3))*n}):(i=Dc.exec(t))?(n=i[1]==="-"?-1:1,a={y:De(i[2],n),M:De(i[3],n),w:De(i[4],n),d:De(i[5],n),h:De(i[6],n),m:De(i[7],n),s:De(i[8],n)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(o=Nc(P(a.from),P(a.to)),a={},a.ms=o.milliseconds,a.M=o.months),s=new At(a),Rt(t)&&k(t,"_locale")&&(s._locale=t._locale),Rt(t)&&k(t,"_isValid")&&(s._isValid=t._isValid),s}ne.fn=At.prototype,ne.invalid=fc;function De(t,e){var a=t&&parseFloat(t.replace(",","."));return(isNaN(a)?0:a)*e}function pi(t,e){var a={};return a.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(a.months,"M").isAfter(e)&&--a.months,a.milliseconds=+e-+t.clone().add(a.months,"M"),a}function Nc(t,e){var a;return t.isValid()&&e.isValid()?(e=pa(e,t),t.isBefore(e)?a=pi(t,e):(a=pi(e,t),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function mi(t,e){return function(a,i){var n,s;return i!==null&&!isNaN(+i)&&(Fa(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=a,a=i,i=s),n=ne(a,i),Ei(this,n,t),this}}function Ei(t,e,a,i){var n=e._milliseconds,s=fa(e._days),o=fa(e._months);t.isValid()&&(i=i??!0,o&&Xa(t,ze(t,"Month")+o*a),s&&Ka(t,"Date",ze(t,"Date")+s*a),n&&t._d.setTime(t._d.valueOf()+n*a),i&&y.updateOffset(t,s||o))}var Ic=mi(1,"add"),kc=mi(-1,"subtract");function gi(t){return typeof t=="string"||t instanceof String}function Cc(t){return ae(t)||He(t)||gi(t)||he(t)||Oc(t)||vc(t)||t===null||t===void 0}function vc(t){var e=Ae(t)&&!Ht(t),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,s,o=i.length;for(n=0;n<o;n+=1)s=i[n],a=a||k(t,s);return e&&a}function Oc(t){var e=te(t),a=!1;return e&&(a=t.filter(function(i){return!he(i)&&gi(t)}).length===0),e&&a}function xc(t){var e=Ae(t)&&!Ht(t),a=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,s;for(n=0;n<i.length;n+=1)s=i[n],a=a||k(t,s);return e&&a}function Lc(t,e){var a=t.diff(e,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"}function Vc(t,e){arguments.length===1&&(arguments[0]?Cc(arguments[0])?(t=arguments[0],e=void 0):xc(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var a=t||P(),i=pa(a,this).startOf("day"),n=y.calendarFormat(this,i)||"sameElse",s=e&&(oe(e[n])?e[n].call(this,a):e[n]);return this.format(s||this.localeData().calendar(n,this,P(a)))}function Uc(){return new je(this)}function Pc(t,e){var a=ae(t)?t:P(t);return this.isValid()&&a.isValid()?(e=X(e)||"millisecond",e==="millisecond"?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(e).valueOf()):!1}function Yc(t,e){var a=ae(t)?t:P(t);return this.isValid()&&a.isValid()?(e=X(e)||"millisecond",e==="millisecond"?this.valueOf()<a.valueOf():this.clone().endOf(e).valueOf()<a.valueOf()):!1}function Wc(t,e,a,i){var n=ae(t)?t:P(t),s=ae(e)?e:P(e);return this.isValid()&&n.isValid()&&s.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(n,a):!this.isBefore(n,a))&&(i[1]===")"?this.isBefore(s,a):!this.isAfter(s,a))):!1}function Qc(t,e){var a=ae(t)?t:P(t),i;return this.isValid()&&a.isValid()?(e=X(e)||"millisecond",e==="millisecond"?this.valueOf()===a.valueOf():(i=a.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf())):!1}function Fc(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Hc(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function jc(t,e,a){var i,n,s;if(!this.isValid())return NaN;if(i=pa(t,this),!i.isValid())return NaN;switch(n=(i.utcOffset()-this.utcOffset())*6e4,e=X(e),e){case"year":s=Dt(this,i)/12;break;case"month":s=Dt(this,i);break;case"quarter":s=Dt(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-n)/864e5;break;case"week":s=(this-i-n)/6048e5;break;default:s=this-i}return a?s:ee(s)}function Dt(t,e){if(t.date()<e.date())return-Dt(e,t);var a=(e.year()-t.year())*12+(e.month()-t.month()),i=t.clone().add(a,"months"),n,s;return e-i<0?(n=t.clone().add(a-1,"months"),s=(e-i)/(i-n)):(n=t.clone().add(a+1,"months"),s=(e-i)/(n-i)),-(a+s)||0}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Bc(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Gc(t){if(!this.isValid())return null;var e=t!==!0,a=e?this.clone().utc():this;return a.year()<0||a.year()>9999?_t(a,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):oe(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",_t(a,"Z")):_t(a,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function $c(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",a,i,n,s;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),a="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",s=e+'[")]',this.format(a+i+n+s)}function zc(t){t||(t=this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var e=_t(this,t);return this.localeData().postformat(e)}function qc(t,e){return this.isValid()&&(ae(t)&&t.isValid()||P(t).isValid())?ne({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Kc(t){return this.from(P(),t)}function Jc(t,e){return this.isValid()&&(ae(t)&&t.isValid()||P(t).isValid())?ne({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Zc(t){return this.to(P(),t)}function Si(t){var e;return t===void 0?this._locale._abbr:(e=Ee(t),e!=null&&(this._locale=e),this)}var yi=Z("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 Mi(){return this._locale}var Nt=1e3,Le=60*Nt,It=60*Le,Ti=(365*400+97)*24*It;function Ve(t,e){return(t%e+e)%e}function wi(t,e,a){return t<100&&t>=0?new Date(t+400,e,a)-Ti:new Date(t,e,a).valueOf()}function bi(t,e,a){return t<100&&t>=0?Date.UTC(t+400,e,a)-Ti:Date.UTC(t,e,a)}function Xc(t){var e,a;if(t=X(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?bi:wi,t){case"year":e=a(this.year(),0,1);break;case"quarter":e=a(this.year(),this.month()-this.month()%3,1);break;case"month":e=a(this.year(),this.month(),1);break;case"week":e=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=a(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ve(e+(this._isUTC?0:this.utcOffset()*Le),It);break;case"minute":e=this._d.valueOf(),e-=Ve(e,Le);break;case"second":e=this._d.valueOf(),e-=Ve(e,Nt);break}return this._d.setTime(e),y.updateOffset(this,!0),this}function eu(t){var e,a;if(t=X(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?bi:wi,t){case"year":e=a(this.year()+1,0,1)-1;break;case"quarter":e=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=a(this.year(),this.month()+1,1)-1;break;case"week":e=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=It-Ve(e+(this._isUTC?0:this.utcOffset()*Le),It)-1;break;case"minute":e=this._d.valueOf(),e+=Le-Ve(e,Le)-1;break;case"second":e=this._d.valueOf(),e+=Nt-Ve(e,Nt)-1;break}return this._d.setTime(e),y.updateOffset(this,!0),this}function tu(){return this._d.valueOf()-(this._offset||0)*6e4}function au(){return Math.floor(this.valueOf()/1e3)}function iu(){return new Date(this.valueOf())}function nu(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function su(){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 ru(){return this.isValid()?this.toISOString():null}function ou(){return Bt(this)}function du(){return Me({},A(this))}function lu(){return A(this).overflow}function cu(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}T("N",0,0,"eraAbbr"),T("NN",0,0,"eraAbbr"),T("NNN",0,0,"eraAbbr"),T("NNNN",0,0,"eraName"),T("NNNNN",0,0,"eraNarrow"),T("y",["y",1],"yo","eraYear"),T("y",["yy",2],0,"eraYear"),T("y",["yyy",3],0,"eraYear"),T("y",["yyyy",4],0,"eraYear"),M("N",Ea),M("NN",Ea),M("NNN",Ea),M("NNNN",Mu),M("NNNNN",Tu),L(["N","NN","NNN","NNNN","NNNNN"],function(t,e,a,i){var n=a._locale.erasParse(t,i,a._strict);n?A(a).era=n:A(a).invalidEra=t}),M("y",Ce),M("yy",Ce),M("yyy",Ce),M("yyyy",Ce),M("yo",wu),L(["y","yy","yyy","yyyy"],B),L(["yo"],function(t,e,a,i){var n;a._locale._eraYearOrdinalRegex&&(n=t.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?e[B]=a._locale.eraYearOrdinalParse(t,n):e[B]=parseInt(t,10)});function uu(t,e){var a,i,n,s=this._eras||Ee("en")._eras;for(a=0,i=s.length;a<i;++a)switch(typeof s[a].since==="string"&&(n=y(s[a].since).startOf("day"),s[a].since=n.valueOf()),typeof s[a].until){case"undefined":s[a].until=1/0;break;case"string":n=y(s[a].until).startOf("day").valueOf(),s[a].until=n.valueOf();break}return s}function hu(t,e,a){var i,n,s=this.eras(),o,c,h;for(t=t.toUpperCase(),i=0,n=s.length;i<n;++i)if(o=s[i].name.toUpperCase(),c=s[i].abbr.toUpperCase(),h=s[i].narrow.toUpperCase(),a)switch(e){case"N":case"NN":case"NNN":if(c===t)return s[i];break;case"NNNN":if(o===t)return s[i];break;case"NNNNN":if(h===t)return s[i];break}else if([o,c,h].indexOf(t)>=0)return s[i]}function fu(t,e){var a=t.since<=t.until?1:-1;return e===void 0?y(t.since).year():y(t.since).year()+(e-t.offset)*a}function _u(){var t,e,a,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(a=this.clone().startOf("day").valueOf(),i[t].since<=a&&a<=i[t].until||i[t].until<=a&&a<=i[t].since)return i[t].name;return""}function pu(){var t,e,a,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(a=this.clone().startOf("day").valueOf(),i[t].since<=a&&a<=i[t].until||i[t].until<=a&&a<=i[t].since)return i[t].narrow;return""}function mu(){var t,e,a,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(a=this.clone().startOf("day").valueOf(),i[t].since<=a&&a<=i[t].until||i[t].until<=a&&a<=i[t].since)return i[t].abbr;return""}function Eu(){var t,e,a,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(a=n[t].since<=n[t].until?1:-1,i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until||n[t].until<=i&&i<=n[t].since)return(this.year()-y(n[t].since).year())*a+n[t].offset;return this.year()}function gu(t){return k(this,"_erasNameRegex")||ga.call(this),t?this._erasNameRegex:this._erasRegex}function Su(t){return k(this,"_erasAbbrRegex")||ga.call(this),t?this._erasAbbrRegex:this._erasRegex}function yu(t){return k(this,"_erasNarrowRegex")||ga.call(this),t?this._erasNarrowRegex:this._erasRegex}function Ea(t,e){return e.erasAbbrRegex(t)}function Mu(t,e){return e.erasNameRegex(t)}function Tu(t,e){return e.erasNarrowRegex(t)}function wu(t,e){return e._eraYearOrdinalRegex||Ce}function ga(){var t=[],e=[],a=[],i=[],n,s,o,c,h,f=this.eras();for(n=0,s=f.length;n<s;++n)o=fe(f[n].name),c=fe(f[n].abbr),h=fe(f[n].narrow),e.push(o),t.push(c),a.push(h),i.push(o),i.push(c),i.push(h);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}T(0,["gg",2],0,function(){return this.weekYear()%100}),T(0,["GG",2],0,function(){return this.isoWeekYear()%100});function kt(t,e){T(0,[t,t.length],0,e)}kt("gggg","weekYear"),kt("ggggg","weekYear"),kt("GGGG","isoWeekYear"),kt("GGGGG","isoWeekYear"),M("G",gt),M("g",gt),M("GG",U,q),M("gg",U,q),M("GGGG",ta,ea),M("gggg",ta,ea),M("GGGGG",Et,pt),M("ggggg",Et,pt),Ge(["gggg","ggggg","GGGG","GGGGG"],function(t,e,a,i){e[i.substr(0,2)]=R(t)}),Ge(["gg","GG"],function(t,e,a,i){e[i]=y.parseTwoDigitYear(t)});function bu(t){return Ai.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Au(t){return Ai.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Ru(){return me(this.year(),1,4)}function Du(){return me(this.isoWeekYear(),1,4)}function Nu(){var t=this.localeData()._week;return me(this.year(),t.dow,t.doy)}function Iu(){var t=this.localeData()._week;return me(this.weekYear(),t.dow,t.doy)}function Ai(t,e,a,i,n){var s;return t==null?Ke(this,i,n).year:(s=me(t,i,n),e>s&&(e=s),ku.call(this,t,e,a,i,n))}function ku(t,e,a,i,n){var s=ai(t,e,a,i,n),o=qe(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}T("Q",0,"Qo","quarter"),M("Q",Ba),L("Q",function(t,e){e[_e]=(R(t)-1)*3});function Cu(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}T("D",["DD",2],"Do","date"),M("D",U,ve),M("DD",U,q),M("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),L(["D","DD"],le),L("Do",function(t,e){e[le]=R(t.match(U)[0])});var Ri=Oe("Date",!0);T("DDD",["DDDD",3],"DDDo","dayOfYear"),M("DDD",mt),M("DDDD",Ga),L(["DDD","DDDD"],function(t,e,a){a._dayOfYear=R(t)});function vu(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}T("m",["mm",2],0,"minute"),M("m",U,aa),M("mm",U,q),L(["m","mm"],ie);var Ou=Oe("Minutes",!1);T("s",["ss",2],0,"second"),M("s",U,aa),M("ss",U,q),L(["s","ss"],pe);var xu=Oe("Seconds",!1);T("S",0,0,function(){return~~(this.millisecond()/100)}),T(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),T(0,["SSS",3],0,"millisecond"),T(0,["SSSS",4],0,function(){return this.millisecond()*10}),T(0,["SSSSS",5],0,function(){return this.millisecond()*100}),T(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),T(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),T(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),T(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),M("S",mt,Ba),M("SS",mt,q),M("SSS",mt,Ga);var we,Di;for(we="SSSS";we.length<=9;we+="S")M(we,Ce);function Lu(t,e){e[Re]=R(("0."+t)*1e3)}for(we="S";we.length<=9;we+="S")L(we,Lu);Di=Oe("Milliseconds",!1),T("z",0,0,"zoneAbbr"),T("zz",0,0,"zoneName");function Vu(){return this._isUTC?"UTC":""}function Uu(){return this._isUTC?"Coordinated Universal Time":""}var m=je.prototype;m.add=Ic,m.calendar=Vc,m.clone=Uc,m.diff=jc,m.endOf=eu,m.format=zc,m.from=qc,m.fromNow=Kc,m.to=Jc,m.toNow=Zc,m.get=$d,m.invalidAt=lu,m.isAfter=Pc,m.isBefore=Yc,m.isBetween=Wc,m.isSame=Qc,m.isSameOrAfter=Fc,m.isSameOrBefore=Hc,m.isValid=ou,m.lang=yi,m.locale=Si,m.localeData=Mi,m.max=oc,m.min=rc,m.parsingFlags=du,m.set=zd,m.startOf=Xc,m.subtract=kc,m.toArray=nu,m.toObject=su,m.toDate=iu,m.toISOString=Gc,m.inspect=$c,typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),m.toJSON=ru,m.toString=Bc,m.unix=au,m.valueOf=tu,m.creationData=cu,m.eraName=_u,m.eraNarrow=pu,m.eraAbbr=mu,m.eraYear=Eu,m.year=qa,m.isLeapYear=Gd,m.weekYear=bu,m.isoWeekYear=Au,m.quarter=m.quarters=Cu,m.month=ei,m.daysInMonth=il,m.week=m.weeks=ul,m.isoWeek=m.isoWeeks=hl,m.weeksInYear=Nu,m.weeksInWeekYear=Iu,m.isoWeeksInYear=Ru,m.isoWeeksInISOWeekYear=Du,m.date=Ri,m.day=m.days=Al,m.weekday=Rl,m.isoWeekday=Dl,m.dayOfYear=vu,m.hour=m.hours=xl,m.minute=m.minutes=Ou,m.second=m.seconds=xu,m.millisecond=m.milliseconds=Di,m.utcOffset=mc,m.utc=gc,m.local=Sc,m.parseZone=yc,m.hasAlignedHourOffset=Mc,m.isDST=Tc,m.isLocal=bc,m.isUtcOffset=Ac,m.isUtc=_i,m.isUTC=_i,m.zoneAbbr=Vu,m.zoneName=Uu,m.dates=Z("dates accessor is deprecated. Use date instead.",Ri),m.months=Z("months accessor is deprecated. Use month instead",ei),m.years=Z("years accessor is deprecated. Use year instead",qa),m.zone=Z("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ec),m.isDSTShifted=Z("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wc);function Pu(t){return P(t*1e3)}function Yu(){return P.apply(null,arguments).parseZone()}function Ni(t){return t}var C=qt.prototype;C.calendar=bd,C.longDateFormat=Nd,C.invalidDate=kd,C.ordinal=Od,C.preparse=Ni,C.postformat=Ni,C.relativeTime=Ld,C.pastFuture=Vd,C.set=Td,C.eras=uu,C.erasParse=hu,C.erasConvertYear=fu,C.erasAbbrRegex=Su,C.erasNameRegex=gu,C.erasNarrowRegex=yu,C.months=Xd,C.monthsShort=el,C.monthsParse=al,C.monthsRegex=sl,C.monthsShortRegex=nl,C.week=ol,C.firstDayOfYear=cl,C.firstDayOfWeek=ll,C.weekdays=yl,C.weekdaysMin=Tl,C.weekdaysShort=Ml,C.weekdaysParse=bl,C.weekdaysRegex=Nl,C.weekdaysShortRegex=Il,C.weekdaysMinRegex=kl,C.isPM=vl,C.meridiem=Ll;function Ct(t,e,a,i){var n=Ee(),s=re().set(i,e);return n[a](s,t)}function Ii(t,e,a){if(he(t)&&(e=t,t=void 0),t=t||"",e!=null)return Ct(t,e,a,"month");var i,n=[];for(i=0;i<12;i++)n[i]=Ct(t,i,a,"month");return n}function Sa(t,e,a,i){typeof t=="boolean"?(he(e)&&(a=e,e=void 0),e=e||""):(e=t,a=e,t=!1,he(e)&&(a=e,e=void 0),e=e||"");var n=Ee(),s=t?n._week.dow:0,o,c=[];if(a!=null)return Ct(e,(a+s)%7,i,"day");for(o=0;o<7;o++)c[o]=Ct(e,(o+s)%7,i,"day");return c}function Wu(t,e){return Ii(t,e,"months")}function Qu(t,e){return Ii(t,e,"monthsShort")}function Fu(t,e,a){return Sa(t,e,a,"weekdays")}function Hu(t,e,a){return Sa(t,e,a,"weekdaysShort")}function ju(t,e,a){return Sa(t,e,a,"weekdaysMin")}Te("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 e=t%10,a=R(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+a}}),y.lang=Z("moment.lang is deprecated. Use moment.locale instead.",Te),y.langData=Z("moment.langData is deprecated. Use moment.localeData instead.",Ee);var ge=Math.abs;function Bu(){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 ki(t,e,a,i){var n=ne(e,a);return t._milliseconds+=i*n._milliseconds,t._days+=i*n._days,t._months+=i*n._months,t._bubble()}function Gu(t,e){return ki(this,t,e,1)}function $u(t,e){return ki(this,t,e,-1)}function Ci(t){return t<0?Math.floor(t):Math.ceil(t)}function zu(){var t=this._milliseconds,e=this._days,a=this._months,i=this._data,n,s,o,c,h;return t>=0&&e>=0&&a>=0||t<=0&&e<=0&&a<=0||(t+=Ci(ya(a)+e)*864e5,e=0,a=0),i.milliseconds=t%1e3,n=ee(t/1e3),i.seconds=n%60,s=ee(n/60),i.minutes=s%60,o=ee(s/60),i.hours=o%24,e+=ee(o/24),h=ee(vi(e)),a+=h,e-=Ci(ya(h)),c=ee(a/12),a%=12,i.days=e,i.months=a,i.years=c,this}function vi(t){return t*4800/146097}function ya(t){return t*146097/4800}function qu(t){if(!this.isValid())return NaN;var e,a,i=this._milliseconds;if(t=X(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+i/864e5,a=this._months+vi(e),t){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(e=this._days+Math.round(ya(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return e*24+i/36e5;case"minute":return e*1440+i/6e4;case"second":return e*86400+i/1e3;case"millisecond":return Math.floor(e*864e5)+i;default:throw new Error("Unknown unit "+t)}}function Se(t){return function(){return this.as(t)}}var Oi=Se("ms"),Ku=Se("s"),Ju=Se("m"),Zu=Se("h"),Xu=Se("d"),eh=Se("w"),th=Se("M"),ah=Se("Q"),ih=Se("y"),nh=Oi;function sh(){return ne(this)}function rh(t){return t=X(t),this.isValid()?this[t+"s"]():NaN}function Ne(t){return function(){return this.isValid()?this._data[t]:NaN}}var oh=Ne("milliseconds"),dh=Ne("seconds"),lh=Ne("minutes"),ch=Ne("hours"),uh=Ne("days"),hh=Ne("months"),fh=Ne("years");function _h(){return ee(this.days()/7)}var ye=Math.round,Ue={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ph(t,e,a,i,n){return n.relativeTime(e||1,!!a,t,i)}function mh(t,e,a,i){var n=ne(t).abs(),s=ye(n.as("s")),o=ye(n.as("m")),c=ye(n.as("h")),h=ye(n.as("d")),f=ye(n.as("M")),p=ye(n.as("w")),g=ye(n.as("y")),_=s<=a.ss&&["s",s]||s<a.s&&["ss",s]||o<=1&&["m"]||o<a.m&&["mm",o]||c<=1&&["h"]||c<a.h&&["hh",c]||h<=1&&["d"]||h<a.d&&["dd",h];return a.w!=null&&(_=_||p<=1&&["w"]||p<a.w&&["ww",p]),_=_||f<=1&&["M"]||f<a.M&&["MM",f]||g<=1&&["y"]||["yy",g],_[2]=e,_[3]=+t>0,_[4]=i,ph.apply(null,_)}function Eh(t){return t===void 0?ye:typeof t=="function"?(ye=t,!0):!1}function gh(t,e){return Ue[t]===void 0?!1:e===void 0?Ue[t]:(Ue[t]=e,t==="s"&&(Ue.ss=e-1),!0)}function Sh(t,e){if(!this.isValid())return this.localeData().invalidDate();var a=!1,i=Ue,n,s;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(a=t),typeof e=="object"&&(i=Object.assign({},Ue,e),e.s!=null&&e.ss==null&&(i.ss=e.s-1)),n=this.localeData(),s=mh(this,!a,i,n),a&&(s=n.pastFuture(+this,s)),n.postformat(s)}var Ma=Math.abs;function Pe(t){return(t>0)-(t<0)||+t}function vt(){if(!this.isValid())return this.localeData().invalidDate();var t=Ma(this._milliseconds)/1e3,e=Ma(this._days),a=Ma(this._months),i,n,s,o,c=this.asSeconds(),h,f,p,g;return c?(i=ee(t/60),n=ee(i/60),t%=60,i%=60,s=ee(a/12),a%=12,o=t?t.toFixed(3).replace(/\.?0+$/,""):"",h=c<0?"-":"",f=Pe(this._months)!==Pe(c)?"-":"",p=Pe(this._days)!==Pe(c)?"-":"",g=Pe(this._milliseconds)!==Pe(c)?"-":"",h+"P"+(s?f+s+"Y":"")+(a?f+a+"M":"")+(e?p+e+"D":"")+(n||i||t?"T":"")+(n?g+n+"H":"")+(i?g+i+"M":"")+(t?g+o+"S":"")):"P0D"}var D=At.prototype;D.isValid=hc,D.abs=Bu,D.add=Gu,D.subtract=$u,D.as=qu,D.asMilliseconds=Oi,D.asSeconds=Ku,D.asMinutes=Ju,D.asHours=Zu,D.asDays=Xu,D.asWeeks=eh,D.asMonths=th,D.asQuarters=ah,D.asYears=ih,D.valueOf=nh,D._bubble=zu,D.clone=sh,D.get=rh,D.milliseconds=oh,D.seconds=dh,D.minutes=lh,D.hours=ch,D.days=uh,D.weeks=_h,D.months=hh,D.years=fh,D.humanize=Sh,D.toISOString=vt,D.toString=vt,D.toJSON=vt,D.locale=Si,D.localeData=Mi,D.toIsoString=Z("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vt),D.lang=yi,T("X",0,0,"unix"),T("x",0,0,"valueOf"),M("x",gt),M("X",Wd),L("X",function(t,e,a){a._d=new Date(parseFloat(t)*1e3)}),L("x",function(t,e,a){a._d=new Date(R(t))});y.version="2.30.1",yd(P),y.fn=m,y.min=dc,y.max=lc,y.now=cc,y.utc=re,y.unix=Pu,y.months=Wu,y.isDate=He,y.locale=Te,y.invalid=ht,y.duration=ne,y.isMoment=ae,y.weekdays=Fu,y.parseZone=Yu,y.localeData=Ee,y.isDuration=Rt,y.monthsShort=Qu,y.weekdaysMin=ju,y.defineLocale=da,y.updateLocale=Yl,y.locales=Wl,y.weekdaysShort=Hu,y.normalizeUnits=X,y.relativeTimeRounding=Eh,y.relativeTimeThreshold=gh,y.calendarFormat=Lc,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 yh=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Mh=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,xi=/(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Ta=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],Th={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:xi,monthsShortRegex:xi,monthsStrictRegex:yh,monthsShortStrictRegex:Mh,monthsParse:Ta,longMonthsParse:Ta,shortMonthsParse:Ta,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:((t,e)=>{switch(e){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",Th),be.TOP_LEFT;const b=t=>typeof t=="string",et=()=>{let t,e;const a=new Promise((i,n)=>{t=i,e=n});return a.resolve=t,a.reject=e,a},Li=t=>t==null?"":""+t,wh=(t,e,a)=>{t.forEach(i=>{e[i]&&(a[i]=e[i])})},bh=/###/g,Vi=t=>t&&t.indexOf("###")>-1?t.replace(bh,"."):t,Ui=t=>!t||b(t),tt=(t,e,a)=>{const i=b(e)?e.split("."):e;let n=0;for(;n<i.length-1;){if(Ui(t))return{};const s=Vi(i[n]);!t[s]&&a&&(t[s]=new a),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={},++n}return Ui(t)?{}:{obj:t,k:Vi(i[n])}},Pi=(t,e,a)=>{const{obj:i,k:n}=tt(t,e,Object);if(i!==void 0||e.length===1){i[n]=a;return}let s=e[e.length-1],o=e.slice(0,e.length-1),c=tt(t,o,Object);for(;c.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),c=tt(t,o,Object),c&&c.obj&&typeof c.obj[`${c.k}.${s}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${s}`]=a},Ah=(t,e,a,i)=>{const{obj:n,k:s}=tt(t,e,Object);n[s]=n[s]||[],n[s].push(a)},Ot=(t,e)=>{const{obj:a,k:i}=tt(t,e);if(a)return a[i]},Rh=(t,e,a)=>{const i=Ot(t,a);return i!==void 0?i:Ot(e,a)},Yi=(t,e,a)=>{for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in t?b(t[i])||t[i]instanceof String||b(e[i])||e[i]instanceof String?a&&(t[i]=e[i]):Yi(t[i],e[i],a):t[i]=e[i]);return t},Ye=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Dh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Nh=t=>b(t)?t.replace(/[&<>"'\/]/g,e=>Dh[e]):t;class Ih{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const a=this.regExpMap.get(e);if(a!==void 0)return a;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}const kh=[" ",",","?","!",";"],Ch=new Ih(20),vh=(t,e,a)=>{e=e||"",a=a||"";const i=kh.filter(o=>e.indexOf(o)<0&&a.indexOf(o)<0);if(i.length===0)return!0;const n=Ch.getRegExp(`(${i.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!n.test(t);if(!s){const o=t.indexOf(a);o>0&&!n.test(t.substring(0,o))&&(s=!0)}return s},wa=function(t,e){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const i=e.split(a);let n=t;for(let s=0;s<i.length;){if(!n||typeof n!="object")return;let o,c="";for(let h=s;h<i.length;++h)if(h!==s&&(c+=a),c+=i[h],o=n[c],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&h<i.length-1)continue;s+=h-s+1;break}n=o}return n},xt=t=>t&&t.replace("_","-"),Oh={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class Lt{constructor(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,a)}init(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=e||Oh,this.options=a,this.debug=a.debug}log(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return this.forward(a,"log","",!0)}warn(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return this.forward(a,"warn","",!0)}error(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return this.forward(a,"error","")}deprecate(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(e,a,i,n){return n&&!this.debug?null:(b(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[a](e))}create(e){return new Lt(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Lt(this.logger,e)}}var ce=new Lt;class Vt{constructor(){this.observers={}}on(e,a){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const n=this.observers[i].get(a)||0;this.observers[i].set(a,n+1)}),this}off(e,a){if(this.observers[e]){if(!a){delete this.observers[e];return}this.observers[e].delete(a)}}emit(e){for(var a=arguments.length,i=new Array(a>1?a-1:0),n=1;n<a;n++)i[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(o=>{let[c,h]=o;for(let f=0;f<h;f++)c(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[c,h]=o;for(let f=0;f<h;f++)c.apply(c,[e,...i])})}}class Wi extends Vt{constructor(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const a=this.options.ns.indexOf(e);a>-1&&this.options.ns.splice(a,1)}getResource(e,a,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;e.indexOf(".")>-1?c=e.split("."):(c=[e,a],i&&(Array.isArray(i)?c.push(...i):b(i)&&s?c.push(...i.split(s)):c.push(i)));const h=Ot(this.data,c);return!h&&!a&&!i&&e.indexOf(".")>-1&&(e=c[0],a=c[1],i=c.slice(2).join(".")),h||!o||!b(i)?h:wa(this.data&&this.data[e]&&this.data[e][a],i,s)}addResource(e,a,i,n){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let c=[e,a];i&&(c=c.concat(o?i.split(o):i)),e.indexOf(".")>-1&&(c=e.split("."),n=a,a=c[1]),this.addNamespaces(a),Pi(this.data,c,n),s.silent||this.emit("added",e,a,i,n)}addResources(e,a,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in i)(b(i[s])||Array.isArray(i[s]))&&this.addResource(e,a,s,i[s],{silent:!0});n.silent||this.emit("added",e,a,i)}addResourceBundle(e,a,i,n,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[e,a];e.indexOf(".")>-1&&(c=e.split("."),n=i,i=a,a=c[1]),this.addNamespaces(a);let h=Ot(this.data,c)||{};o.skipCopy||(i=JSON.parse(JSON.stringify(i))),n?Yi(h,i,s):h={...h,...i},Pi(this.data,c,h),o.silent||this.emit("added",e,a,i)}removeResourceBundle(e,a){this.hasResourceBundle(e,a)&&delete this.data[e][a],this.removeNamespaces(a),this.emit("removed",e,a)}hasResourceBundle(e,a){return this.getResource(e,a)!==void 0}getResourceBundle(e,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,a)}:this.getResource(e,a)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const a=this.getDataByLanguage(e);return!!(a&&Object.keys(a)||[]).find(n=>a[n]&&Object.keys(a[n]).length>0)}toJSON(){return this.data}}var Qi={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,a,i,n){return t.forEach(s=>{this.processors[s]&&(e=this.processors[s].process(e,a,i,n))}),e}};const Fi={};class Ut extends Vt{constructor(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),wh(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ce.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const i=this.resolve(e,a);return i&&i.res!==void 0}extractFromKey(e,a){let i=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const n=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let s=a.ns||this.options.defaultNS||[];const o=i&&e.indexOf(i)>-1,c=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!vh(e,i,n);if(o&&!c){const h=e.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:e,namespaces:b(s)?[s]:s};const f=e.split(i);(i!==n||i===n&&this.options.ns.indexOf(f[0])>-1)&&(s=f.shift()),e=f.join(n)}return{key:e,namespaces:b(s)?[s]:s}}translate(e,a,i){if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const n=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:o,namespaces:c}=this.extractFromKey(e[e.length-1],a),h=c[c.length-1],f=a.lng||this.language,p=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){const H=a.nsSeparator||this.options.nsSeparator;return n?{res:`${h}${H}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:`${h}${H}${o}`}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:o}const g=this.resolve(e,a);let _=g&&g.res;const w=g&&g.usedKey||o,N=g&&g.exactUsedKey||o,W=Object.prototype.toString.apply(_),x=["[object Number]","[object Function]","[object RegExp]"],v=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject,rt=!b(_)&&typeof _!="boolean"&&typeof _!="number";if(I&&_&&rt&&x.indexOf(W)<0&&!(b(v)&&Array.isArray(_))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const H=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,_,{...a,ns:c}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(g.res=H,g.usedParams=this.getUsedParamsDetails(a),g):H}if(s){const H=Array.isArray(_),K=H?[]:{},se=H?N:w;for(const $ in _)if(Object.prototype.hasOwnProperty.call(_,$)){const Qt=`${se}${s}${$}`;K[$]=this.translate(Qt,{...a,joinArrays:!1,ns:c}),K[$]===Qt&&(K[$]=_[$])}_=K}}else if(I&&b(v)&&Array.isArray(_))_=_.join(v),_&&(_=this.extendTranslation(_,e,a,i));else{let H=!1,K=!1;const se=a.count!==void 0&&!b(a.count),$=Ut.hasDefaultValue(a),Qt=se?this.pluralResolver.getSuffix(f,a.count,a):"",Jf=a.ordinal&&se?this.pluralResolver.getSuffix(f,a.count,{ordinal:!1}):"",Ed=se&&!a.ordinal&&a.count===0&&this.pluralResolver.shouldUseIntlApi(),ot=Ed&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${Qt}`]||a[`defaultValue${Jf}`]||a.defaultValue;!this.isValidLookup(_)&&$&&(H=!0,_=ot),this.isValidLookup(_)||(K=!0,_=o);const Zf=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&K?void 0:_,dt=$&&ot!==_&&this.options.updateMissing;if(K||H||dt){if(this.logger.log(dt?"updateKey":"missingKey",f,h,o,dt?ot:_),s){const J=this.resolve(o,{...a,keySeparator:!1});J&&J.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let lt=[];const Ft=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ft&&Ft[0])for(let J=0;J<Ft.length;J++)lt.push(Ft[J]);else this.options.saveMissingTo==="all"?lt=this.languageUtils.toResolveHierarchy(a.lng||this.language):lt.push(a.lng||this.language);const gd=(J,Ie,ct)=>{const Sd=$&&ct!==_?ct:Zf;this.options.missingKeyHandler?this.options.missingKeyHandler(J,h,Ie,Sd,dt,a):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(J,h,Ie,Sd,dt,a),this.emit("missingKey",J,h,Ie,_)};this.options.saveMissing&&(this.options.saveMissingPlurals&&se?lt.forEach(J=>{const Ie=this.pluralResolver.getSuffixes(J,a);Ed&&a[`defaultValue${this.options.pluralSeparator}zero`]&&Ie.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ie.push(`${this.options.pluralSeparator}zero`),Ie.forEach(ct=>{gd([J],o+ct,a[`defaultValue${ct}`]||ot)})}):gd(lt,o,ot))}_=this.extendTranslation(_,e,a,g,i),K&&_===o&&this.options.appendNamespaceToMissingKey&&(_=`${h}:${o}`),(K||H)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?_=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}:${o}`:o,H?_:void 0):_=this.options.parseMissingKeyHandler(_))}return n?(g.res=_,g.usedParams=this.getUsedParamsDetails(a),g):_}extendTranslation(e,a,i,n,s){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const f=b(e)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(f){const _=e.match(this.interpolator.nestingRegexp);p=_&&_.length}let g=i.replace&&!b(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),e=this.interpolator.interpolate(e,g,i.lng||this.language||n.usedLng,i),f){const _=e.match(this.interpolator.nestingRegexp),w=_&&_.length;p<w&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&n&&n.res&&(i.lng=this.language||n.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var _=arguments.length,w=new Array(_),N=0;N<_;N++)w[N]=arguments[N];return s&&s[0]===w[0]&&!i.context?(o.logger.warn(`It seems you are nesting recursively key: ${w[0]} in key: ${a[0]}`),null):o.translate(...w,a)},i)),i.interpolation&&this.interpolator.reset()}const c=i.postProcess||this.options.postProcess,h=b(c)?[c]:c;return e!=null&&h&&h.length&&i.applyPostProcessor!==!1&&(e=Qi.handle(h,e,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,n,s,o,c;return b(e)&&(e=[e]),e.forEach(h=>{if(this.isValidLookup(i))return;const f=this.extractFromKey(h,a),p=f.key;n=p;let g=f.namespaces;this.options.fallbackNS&&(g=g.concat(this.options.fallbackNS));const _=a.count!==void 0&&!b(a.count),w=_&&!a.ordinal&&a.count===0&&this.pluralResolver.shouldUseIntlApi(),N=a.context!==void 0&&(b(a.context)||typeof a.context=="number")&&a.context!=="",W=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);g.forEach(x=>{this.isValidLookup(i)||(c=x,!Fi[`${W[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(c)&&(Fi[`${W[0]}-${x}`]=!0,this.logger.warn(`key "${n}" for languages "${W.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),W.forEach(v=>{if(this.isValidLookup(i))return;o=v;const I=[p];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(I,p,v,x,a);else{let H;_&&(H=this.pluralResolver.getSuffix(v,a.count,a));const K=`${this.options.pluralSeparator}zero`,se=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(_&&(I.push(p+H),a.ordinal&&H.indexOf(se)===0&&I.push(p+H.replace(se,this.options.pluralSeparator)),w&&I.push(p+K)),N){const $=`${p}${this.options.contextSeparator}${a.context}`;I.push($),_&&(I.push($+H),a.ordinal&&H.indexOf(se)===0&&I.push($+H.replace(se,this.options.pluralSeparator)),w&&I.push($+K))}}let rt;for(;rt=I.pop();)this.isValidLookup(i)||(s=rt,i=this.getResource(v,x,rt,a))}))})}),{res:i,usedKey:n,exactUsedKey:s,usedLng:o,usedNS:c}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,a,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,a,i,n):this.resourceStore.getResource(e,a,i,n)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&!b(e.replace);let n=i?e.replace:e;if(i&&typeof e.count<"u"&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!i){n={...n};for(const s of a)delete n[s]}return n}static hasDefaultValue(e){const a="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&a===i.substring(0,a.length)&&e[i]!==void 0)return!0;return!1}}const ba=t=>t.charAt(0).toUpperCase()+t.slice(1);class Hi{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ce.create("languageUtils")}getScriptPartFromCode(e){if(e=xt(e),!e||e.indexOf("-")<0)return null;const a=e.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(e){if(e=xt(e),!e||e.indexOf("-")<0)return e;const a=e.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(e){if(b(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let n=Intl.getCanonicalLocales(e)[0];if(n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n)return n}catch{}const a=["hans","hant","latn","cyrl","cans","mong","arab"];let i=e.split("-");return this.options.lowerCaseLng?i=i.map(n=>n.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),a.indexOf(i[1].toLowerCase())>-1&&(i[1]=ba(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),a.indexOf(i[1].toLowerCase())>-1&&(i[1]=ba(i[1].toLowerCase())),a.indexOf(i[2].toLowerCase())>-1&&(i[2]=ba(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let a;return e.forEach(i=>{if(a)return;const n=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(n))&&(a=n)}),!a&&this.options.supportedLngs&&e.forEach(i=>{if(a)return;const n=this.getLanguagePartFromCode(i);if(this.isSupportedCode(n))return a=n;a=this.options.supportedLngs.find(s=>{if(s===n)return s;if(!(s.indexOf("-")<0&&n.indexOf("-")<0)&&(s.indexOf("-")>0&&n.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===n||s.indexOf(n)===0&&n.length>1))return s})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(e,a){if(!e)return[];if(typeof e=="function"&&(e=e(a)),b(e)&&(e=[e]),Array.isArray(e))return e;if(!a)return e.default||[];let i=e[a];return i||(i=e[this.getScriptPartFromCode(a)]),i||(i=e[this.formatLanguageCode(a)]),i||(i=e[this.getLanguagePartFromCode(a)]),i||(i=e.default),i||[]}toResolveHierarchy(e,a){const i=this.getFallbackCodes(a||this.options.fallbackLng||[],e),n=[],s=o=>{o&&(this.isSupportedCode(o)?n.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return b(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):b(e)&&s(this.formatLanguageCode(e)),i.forEach(o=>{n.indexOf(o)<0&&s(this.formatLanguageCode(o))}),n}}let xh=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Lh={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const Vh=["v1","v2","v3"],Uh=["v4"],ji={zero:0,one:1,two:2,few:3,many:4,other:5},Ph=()=>{const t={};return xh.forEach(e=>{e.lngs.forEach(a=>{t[a]={numbers:e.nr,plurals:Lh[e.fc]}})}),t};class Yh{constructor(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=a,this.logger=ce.create("pluralResolver"),(!this.options.compatibilityJSON||Uh.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Ph(),this.pluralRulesCache={}}addRule(e,a){this.rules[e]=a}clearCache(){this.pluralRulesCache={}}getRule(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const i=xt(e==="dev"?"en":e),n=a.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:i,type:n});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let o;try{o=new Intl.PluralRules(i,{type:n})}catch{if(!e.match(/-|_/))return;const h=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(h,a)}return this.pluralRulesCache[s]=o,o}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,a);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,i).map(n=>`${a}${n}`)}getSuffixes(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,a);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((n,s)=>ji[n]-ji[s]).map(n=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${n}`):i.numbers.map(n=>this.getSuffix(e,n,a)):[]}getSuffix(e,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=this.getRule(e,i);return n?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${n.select(a)}`:this.getSuffixRetroCompatible(n,a):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,a){const i=e.noAbs?e.plurals(a):e.plurals(Math.abs(a));let n=e.numbers[i];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(n===2?n="plural":n===1&&(n=""));const s=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return this.options.compatibilityJSON==="v1"?n===1?"":typeof n=="number"?`_plural_${n.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!Vh.includes(this.options.compatibilityJSON)}}const Bi=function(t,e,a){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=Rh(t,e,a);return!s&&n&&b(a)&&(s=wa(t,a,i),s===void 0&&(s=wa(e,a,i))),s},Aa=t=>t.replace(/\$/g,"$$$$");class Wh{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ce.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(a=>a),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:a,escapeValue:i,useRawValueToEscape:n,prefix:s,prefixEscaped:o,suffix:c,suffixEscaped:h,formatSeparator:f,unescapeSuffix:p,unescapePrefix:g,nestingPrefix:_,nestingPrefixEscaped:w,nestingSuffix:N,nestingSuffixEscaped:W,nestingOptionsSeparator:x,maxReplaces:v,alwaysFormat:I}=e.interpolation;this.escape=a!==void 0?a:Nh,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=s?Ye(s):o||"{{",this.suffix=c?Ye(c):h||"}}",this.formatSeparator=f||",",this.unescapePrefix=p?"":g||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=_?Ye(_):w||Ye("$t("),this.nestingSuffix=N?Ye(N):W||Ye(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=v||1e3,this.alwaysFormat=I!==void 0?I:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(a,i)=>a&&a.source===i?(a.lastIndex=0,a):new RegExp(i,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,a,i,n){let s,o,c;const h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=w=>{if(w.indexOf(this.formatSeparator)<0){const v=Bi(a,h,w,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,i,{...n,...a,interpolationkey:w}):v}const N=w.split(this.formatSeparator),W=N.shift().trim(),x=N.join(this.formatSeparator).trim();return this.format(Bi(a,h,W,this.options.keySeparator,this.options.ignoreJSONStructure),x,i,{...n,...a,interpolationkey:W})};this.resetRegExp();const p=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,g=n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:w=>Aa(w)},{regex:this.regexp,safeValue:w=>this.escapeValue?Aa(this.escape(w)):Aa(w)}].forEach(w=>{for(c=0;s=w.regex.exec(e);){const N=s[1].trim();if(o=f(N),o===void 0)if(typeof p=="function"){const x=p(e,s,n);o=b(x)?x:""}else if(n&&Object.prototype.hasOwnProperty.call(n,N))o="";else if(g){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${N} for interpolating ${e}`),o="";else!b(o)&&!this.useRawValueToEscape&&(o=Li(o));const W=w.safeValue(o);if(e=e.replace(s[0],W),g?(w.regex.lastIndex+=o.length,w.regex.lastIndex-=s[0].length):w.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),e}nest(e,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,s,o;const c=(h,f)=>{const p=this.nestingOptionsSeparator;if(h.indexOf(p)<0)return h;const g=h.split(new RegExp(`${p}[ ]*{`));let _=`{${g[1]}`;h=g[0],_=this.interpolate(_,o);const w=_.match(/'/g),N=_.match(/"/g);(w&&w.length%2===0&&!N||N.length%2!==0)&&(_=_.replace(/'/g,'"'));try{o=JSON.parse(_),f&&(o={...f,...o})}catch(W){return this.logger.warn(`failed parsing options string in nesting for key ${h}`,W),`${h}${p}${_}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,h};for(;n=this.nestingRegexp.exec(e);){let h=[];o={...i},o=o.replace&&!b(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let f=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){const p=n[1].split(this.formatSeparator).map(g=>g.trim());n[1]=p.shift(),h=p,f=!0}if(s=a(c.call(this,n[1].trim(),o),o),s&&n[0]===e&&!b(s))return s;b(s)||(s=Li(s)),s||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),s=""),f&&(s=h.reduce((p,g)=>this.format(p,g,i.lng,{...i,interpolationkey:n[1].trim()}),s.trim())),e=e.replace(n[0],s),this.regexp.lastIndex=0}return e}}const Qh=t=>{let e=t.toLowerCase().trim();const a={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const n=i[1].substring(0,i[1].length-1);e==="currency"&&n.indexOf(":")<0?a.currency||(a.currency=n.trim()):e==="relativetime"&&n.indexOf(":")<0?a.range||(a.range=n.trim()):n.split(";").forEach(o=>{if(o){const[c,...h]=o.split(":"),f=h.join(":").trim().replace(/^'+|'+$/g,""),p=c.trim();a[p]||(a[p]=f),f==="false"&&(a[p]=!1),f==="true"&&(a[p]=!0),isNaN(f)||(a[p]=parseInt(f,10))}})}return{formatName:e,formatOptions:a}},We=t=>{const e={};return(a,i,n)=>{let s=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(s={...s,[n.interpolationkey]:void 0});const o=i+JSON.stringify(s);let c=e[o];return c||(c=t(xt(i),n),e[o]=c),c(a)}};class Fh{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ce.create("formatter"),this.options=e,this.formats={number:We((a,i)=>{const n=new Intl.NumberFormat(a,{...i});return s=>n.format(s)}),currency:We((a,i)=>{const n=new Intl.NumberFormat(a,{...i,style:"currency"});return s=>n.format(s)}),datetime:We((a,i)=>{const n=new Intl.DateTimeFormat(a,{...i});return s=>n.format(s)}),relativetime:We((a,i)=>{const n=new Intl.RelativeTimeFormat(a,{...i});return s=>n.format(s,i.range||"day")}),list:We((a,i)=>{const n=new Intl.ListFormat(a,{...i});return s=>n.format(s)})},this.init(e)}init(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=a.interpolation.formatSeparator||","}add(e,a){this.formats[e.toLowerCase().trim()]=a}addCached(e,a){this.formats[e.toLowerCase().trim()]=We(a)}format(e,a,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=a.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(c=>c.indexOf(")")>-1)){const c=s.findIndex(h=>h.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,c)].join(this.formatSeparator)}return s.reduce((c,h)=>{const{formatName:f,formatOptions:p}=Qh(h);if(this.formats[f]){let g=c;try{const _=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},w=_.locale||_.lng||n.locale||n.lng||i;g=this.formats[f](c,w,{...p,...n,..._})}catch(_){this.logger.warn(_)}return g}else this.logger.warn(`there was no format function for ${f}`);return c},e)}}const Hh=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class jh extends Vt{constructor(e,a,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=a,this.services=i,this.languageUtils=i.languageUtils,this.options=n,this.logger=ce.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,n.backend,n)}queueLoad(e,a,i,n){const s={},o={},c={},h={};return e.forEach(f=>{let p=!0;a.forEach(g=>{const _=`${f}|${g}`;!i.reload&&this.store.hasResourceBundle(f,g)?this.state[_]=2:this.state[_]<0||(this.state[_]===1?o[_]===void 0&&(o[_]=!0):(this.state[_]=1,p=!1,o[_]===void 0&&(o[_]=!0),s[_]===void 0&&(s[_]=!0),h[g]===void 0&&(h[g]=!0)))}),p||(c[f]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(h)}}loaded(e,a,i){const n=e.split("|"),s=n[0],o=n[1];a&&this.emit("failedLoading",s,o,a),!a&&i&&this.store.addResourceBundle(s,o,i,void 0,void 0,{skipCopy:!0}),this.state[e]=a?-1:2,a&&i&&(this.state[e]=0);const c={};this.queue.forEach(h=>{Ah(h.loaded,[s],o),Hh(h,e),a&&h.errors.push(a),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(f=>{c[f]||(c[f]={});const p=h.loaded[f];p.length&&p.forEach(g=>{c[f][g]===void 0&&(c[f][g]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(h=>!h.done)}read(e,a,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:a,fcName:i,tried:n,wait:s,callback:o});return}this.readingCalls++;const c=(f,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const g=this.waitingReads.shift();this.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(f&&p&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,e,a,i,n+1,s*2,o)},s);return}o(f,p)},h=this.backend[i].bind(this.backend);if(h.length===2){try{const f=h(e,a);f&&typeof f.then=="function"?f.then(p=>c(null,p)).catch(c):c(null,f)}catch(f){c(f)}return}return h(e,a,c)}prepareLoading(e,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();b(e)&&(e=this.languageUtils.toResolveHierarchy(e)),b(a)&&(a=[a]);const s=this.queueLoad(e,a,i,n);if(!s.toLoad.length)return s.pending.length||n(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(e,a,i){this.prepareLoading(e,a,{},i)}reload(e,a,i){this.prepareLoading(e,a,{reload:!0},i)}loadOne(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=e.split("|"),n=i[0],s=i[1];this.read(n,s,"read",void 0,void 0,(o,c)=>{o&&this.logger.warn(`${a}loading namespace ${s} for language ${n} failed`,o),!o&&c&&this.logger.log(`${a}loaded namespace ${s} for language ${n}`,c),this.loaded(e,o,c)})}saveMissing(e,a,i,n,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn(`did not save key "${i}" as the namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){const h={...o,isUpdate:s},f=this.backend.create.bind(this.backend);if(f.length<6)try{let p;f.length===5?p=f(e,a,i,n,h):p=f(e,a,i,n),p&&typeof p.then=="function"?p.then(g=>c(null,g)).catch(c):c(null,p)}catch(p){c(p)}else f(e,a,i,n,c,h)}!e||!e[0]||this.store.addResource(e[0],a,i,n)}}}const Gi=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),b(t[1])&&(e.defaultValue=t[1]),b(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const a=t[3]||t[2];Object.keys(a).forEach(i=>{e[i]=a[i]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),$i=t=>(b(t.ns)&&(t.ns=[t.ns]),b(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),b(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),Pt=()=>{},Bh=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(a=>{typeof t[a]=="function"&&(t[a]=t[a].bind(t))})};class at extends Vt{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(super(),this.options=$i(e),this.services={},this.logger=ce,this.modules={external:[]},Bh(this),a&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,a),this;setTimeout(()=>{this.init(e,a)},0)}}init(){var e=this;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof a=="function"&&(i=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(b(a.ns)?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));const n=Gi();this.options={...n,...this.options,...$i(a)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);const s=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?ce.init(s(this.modules.logger),this.options):ce.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=Fh);const g=new Hi(this.options);this.store=new Wi(this.options.resources,this.options);const _=this.services;_.logger=ce,_.resourceStore=this.store,_.languageUtils=g,_.pluralResolver=new Yh(g,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(_.formatter=s(p),_.formatter.init(_,this.options),this.options.interpolation.format=_.formatter.format.bind(_.formatter)),_.interpolator=new Wh(this.options),_.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},_.backendConnector=new jh(s(this.modules.backend),_.resourceStore,_,this.options),_.backendConnector.on("*",function(w){for(var N=arguments.length,W=new Array(N>1?N-1:0),x=1;x<N;x++)W[x-1]=arguments[x];e.emit(w,...W)}),this.modules.languageDetector&&(_.languageDetector=s(this.modules.languageDetector),_.languageDetector.init&&_.languageDetector.init(_,this.options.detection,this.options)),this.modules.i18nFormat&&(_.i18nFormat=s(this.modules.i18nFormat),_.i18nFormat.init&&_.i18nFormat.init(this)),this.translator=new Ut(this.services,this.options),this.translator.on("*",function(w){for(var N=arguments.length,W=new Array(N>1?N-1:0),x=1;x<N;x++)W[x-1]=arguments[x];e.emit(w,...W)}),this.modules.external.forEach(w=>{w.init&&w.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Pt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=function(){return e.store[p](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=function(){return e.store[p](...arguments),e}});const h=et(),f=()=>{const p=(g,_)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(_),i(g,_)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),h}loadResources(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pt;const n=b(e)?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const s=[],o=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};n?o(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>o(h)),this.options.preload&&this.options.preload.forEach(c=>o(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(c)})}else i(null)}reloadResources(e,a,i){const n=et();return typeof e=="function"&&(i=e,e=void 0),typeof a=="function"&&(i=a,a=void 0),e||(e=this.languages),a||(a=this.options.ns),i||(i=Pt),this.services.backendConnector.reload(e,a,s=>{n.resolve(),i(s)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Qi.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let a=0;a<this.languages.length;a++){const i=this.languages[a];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(e,a){var i=this;this.isLanguageChangingTo=e;const n=et();this.emit("languageChanging",e);const s=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},o=(h,f)=>{f?(s(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,n.resolve(function(){return i.t(...arguments)}),a&&a(h,function(){return i.t(...arguments)})},c=h=>{!e&&!h&&this.services.languageDetector&&(h=[]);const f=b(h)?h:this.services.languageUtils.getBestMatchFromCodes(h);f&&(this.language||s(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,p=>{o(p,f)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(e),n}getFixedT(e,a,i){var n=this;const s=function(o,c){let h;if(typeof c!="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),g=2;g<f;g++)p[g-2]=arguments[g];h=n.options.overloadTranslationOptionHandler([o,c].concat(p))}else h={...c};h.lng=h.lng||s.lng,h.lngs=h.lngs||s.lngs,h.ns=h.ns||s.ns,h.keyPrefix!==""&&(h.keyPrefix=h.keyPrefix||i||s.keyPrefix);const _=n.options.keySeparator||".";let w;return h.keyPrefix&&Array.isArray(o)?w=o.map(N=>`${h.keyPrefix}${_}${N}`):w=h.keyPrefix?`${h.keyPrefix}${_}${o}`:o,n.t(w,h)};return b(e)?s.lng=e:s.lngs=e,s.ns=a,s.keyPrefix=i,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=a.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const o=(c,h)=>{const f=this.services.backendConnector.state[`${c}|${h}`];return f===-1||f===0||f===2};if(a.precheck){const c=a.precheck(this,o);if(c!==void 0)return c}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(i,e)&&(!n||o(s,e)))}loadNamespaces(e,a){const i=et();return this.options.ns?(b(e)&&(e=[e]),e.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{i.resolve(),a&&a(n)}),i):(a&&a(),Promise.resolve())}loadLanguages(e,a){const i=et();b(e)&&(e=[e]);const n=this.options.preload||[],s=e.filter(o=>n.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=n.concat(s),this.loadResources(o=>{i.resolve(),a&&a(o)}),i):(a&&a(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new Hi(Gi());return a.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;return new at(e,a)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pt;const i=e.forkResourceStore;i&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},s=new at(n);return(e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(c=>{s[c]=this[c]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},i&&(s.store=new Wi(this.store.data,n),s.services.resourceStore=s.store),s.translator=new Ut(s.services,n),s.translator.on("*",function(c){for(var h=arguments.length,f=new Array(h>1?h-1:0),p=1;p<h;p++)f[p-1]=arguments[p];s.emit(c,...f)}),s.init(n,a),s.translator.options=n,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const G=at.createInstance();G.createInstance=at.createInstance,G.createInstance,G.dir,G.init,G.loadResources,G.reloadResources,G.use,G.changeLanguage,G.getFixedT;const Qe=G.t;G.exists,G.setDefaultNamespace,G.hasLoadedNamespace,G.loadNamespaces,G.loadLanguages;var E=(t=>(t.BASIC="BASIC",t.COMMON="COMMON",t.RARE="RARE",t.EPIC="EPIC",t.LEGENDARY="LEGENDARY",t.MYTHIC="MYTHIC",t))(E||{});E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC;const l={BASIC:{color:"#fff",strength:0,id:E.BASIC,name:(t,e=1)=>Qe(`ranks.${E.BASIC}.text`,{count:e,context:t,ns:"common"})},COMMON:{color:"#813D31",strength:1,id:E.COMMON,name:(t,e=1)=>Qe(`ranks.${E.COMMON}.text`,{count:e,context:t,ns:"common"})},RARE:{color:"#5B6870",strength:2,id:E.RARE,name:(t,e=1)=>Qe(`ranks.${E.RARE}.text`,{count:e,context:t,ns:"common"})},EPIC:{color:"#C46619",strength:3,id:E.EPIC,name:(t,e=1)=>Qe(`ranks.${E.EPIC}.text`,{count:e,context:t,ns:"common"})},LEGENDARY:{color:"#88A3CB",strength:4,id:E.LEGENDARY,name:(t,e=1)=>Qe(`ranks.${E.LEGENDARY}.text`,{count:e,context:t,ns:"common"})},MYTHIC:{color:"#F6bF62",strength:5,id:E.MYTHIC,name:(t,e=1)=>Qe(`ranks.${E.MYTHIC}.text`,{count:e,context:t,ns:"common"})}},Ra="background_default",S={exploration:{id:"writeChat",img:"exploration",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:Explorateurbois:1175507909518573578>","<:Explorateurargent:1175508452467015680>","<:Explorateuror:1175507917642932245>","<:Explorateurplatine:1175507920587329586>","<:Explorateurultime:1175507922818699334>"],crew:!1},ecrire:{id:"sendMessage",img:"ecrire",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:Spammeurbois:1175508156785365003>","<:Spammeurargent:1175507962249351268>","<:Spammeuror:1175507966808572007>","<:Spammeurplatine:1175507968293339167>","<:Spammeurultime:1175507863460913222>"],crew:!1},ermite:{id:"timeInVoice",img:"ermite",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:Ermitebois:1175507899875868672>","<:Ermiteargent:1175508498138796153>","<:Ermiteor:1175508465746182305>","<:Ermiteplatine:1175507904695124028>","<:Ermiteultime:1175507906041499749>"],crew:!1},berry:{id:"berry",img:"berry",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:ElonMuskbois:1175507891600498758>","<:ElonMuskargent:1175508764988801034>","<:ElonMuskor:1175508756700856390>","<:ElonMuskplatine:1175508739386789928>","<:ElonMuskultime:1175507895668985886>"],crew:!1},mode:{id:"spendShop",img:"mode",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:FashionViktimbois:1175508381436485672>","<:FashionViktimargent:1175507924873904128>","<:FashionViktimor:1175507926719414406>","<:FashionViktimplatine:1175508345562599445>","<:FashionViktimultime:1175507931517698088>"],crew:!1},noluck:{id:"noLuck",img:"noluck",isProgressive:!1,emojis:"<:BadluckPlatine:1175507878048702505>",crew:!1},chance:{id:"chance",img:"chance",isProgressive:!1,emojis:"<:BadgeChanceux:1192743999514103869>",crew:!1},casino:{id:"casino",img:"casino",isProgressive:[E.LEGENDARY,E.MYTHIC],emojis:["<:GamblingAddict:1175507934223016047>","<:GamblingAddictDiamond:1187147920647131207>"],crew:!1},premium:{id:"premium",img:"premium",isProgressive:!1,emojis:"<:BadgesDon:1175507876056399933>",crew:!1},calendar:{id:"calendar",img:"calendar",isProgressive:!1,emojis:"<:Calendrier:1187170872176431114>",crew:!1},doublesix:{id:"doublesix",img:"doublesix",isProgressive:!1,emojis:"<:DoubleSix:1187178228624937000>",crew:!1},"black-jack":{id:"blackJack",img:"black-jack",isProgressive:!1,emojis:"<:BlackJack:1187456310137069618>",crew:!1},communism:{id:"communism",img:"communism",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_communism_Bronze:1234375558184570902>","<:cropped_communism_Silver:1234375563729440789>","<:cropped_communism_Gold:1234375561154007103>","<:cropped_communism_Platinum:1234375562269687849>","<:cropped_communism_Diamond:1234375559811825705>"],crew:!0},crewship:{id:"crewship",img:"crewship",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_crewship_Bronze:1234458902641246260>","<:cropped_crewship_Silver:1234458908840431617>","<:cropped_crewship_Gold:1234458905694961724>","<:cropped_crewship_Platinum:1234458907741782038>","<:cropped_crewship_Diamond:1234458904100864000>"],crew:!0},broship:{id:"broship",img:"broship",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_broship_Bronze:1234537705292038175>","<:cropped_broship_Silver:1234537711214530652>","<:cropped_broship_Gold:1234537708047695892>","<:cropped_broship_Platinum:1234537710170013867>","<:cropped_broship_Diamond:1234537706810245161>"],crew:!0},shipsecte:{id:"shipsecte",img:"shipsecte",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_shipsecte_Bronze:1234547646023078009>","<:cropped_shipsecte_Silver:1234547651912011827>","<:cropped_shipsecte_Gold:1234547649160675408>","<:cropped_shipsecte_Platinum:1234547650414514267>","<:cropped_shipsecte_Diamond:1234547648011173888>"],crew:!0},sardine:{id:"sardine",img:"sardine",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_sardine_Bronze:1234549442799997010>","<:cropped_sardine_Silver:1234549449036927088>","<:cropped_sardine_Gold:1234549445916622988>","<:cropped_sardine_Platinum:1234549447518720050>","<:cropped_sardine_Diamond:1234549444738023484>"],crew:!0},carpenter:{id:"carpenter",img:"carpenter",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_carpenter_Bronze:1234555340964626495>","<:cropped_carpenter_Silver:1234555345935007764>","<:cropped_carpenter_Gold:1234555343317635153>","<:cropped_carpenter_Platinum:1234555344819191909>","<:cropped_carpenter_Diamond:1234555342143357072>"],crew:!0},camarade:{id:"camarade",img:"camarade",isProgressive:!1,emojis:"<:cropped_camarade:1234582024077967361>",crew:!0},selfish:{id:"selfish",img:"selfish",isProgressive:!1,emojis:"<:cropped_selfish:1234587373363527780>",crew:!0},recipe:{id:"recipe",img:"recipe",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_b_recipe_Bronze:1244357782573023282>","<:cropped_b_recipe_Silver:1244357788361031711>","<:cropped_b_recipe_Gold:1244357785555308574>","<:cropped_b_recipe_Platinum:1244357786750685225>","<:cropped_b_recipe_Diamond:1244357784397545526>"],crew:!1},craft:{id:"craft",img:"craft",isProgressive:[E.COMMON,E.RARE,E.EPIC,E.LEGENDARY,E.MYTHIC],emojis:["<:cropped_b_craft_Bronze:1244357834452238447>","<:cropped_b_craft_Silver:1244357840513011722>","<:cropped_b_craft_Gold:1244357837333725306>","<:cropped_b_craft_Platinum:1244357838801735761>","<:cropped_b_craft_Diamond:1244357835735695401>"],crew:!1}},Da=t=>!!t.isProgressive,Na={satan:"satan",idiot:"idiot",edito:"edito"},Gh={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>"}},Yt=t=>new Intl.NumberFormat("de-DE").format(t),$h=(t,e,a=i=>i)=>t.filter(i=>!e.some(n=>a(n)===a(i))),zi=(t,e)=>[...new Set(t.map(a=>e(a)))],zh=t=>Object.fromEntries(t),qi=t=>t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(e,a)=>a.toUpperCase()).replace(/^[A-Z]/,e=>e.toLowerCase()),qh=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Kh=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Ki=/(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,Ia=[/^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],Jh={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:Ki,monthsShortRegex:Ki,monthsStrictRegex:qh,monthsShortStrictRegex:Kh,monthsParse:Ia,longMonthsParse:Ia,shortMonthsParse:Ia,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,e)=>{switch(e){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",Jh);const ka=(t,e,a=!0)=>(a?t.getFullYear()===e.getFullYear():!0)&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate(),Ji=t=>typeof t=="function",Zh=t=>Math.round(5e3*Math.pow(200,.01*t)/10)*10,Zi=t=>t>=1?Zi(t-1)+Zh(t):0,Q=(t,e=0)=>t<Zi(e+1)?e:Q(t,e+1),Xh=t=>Math.round(1e5*Math.pow(50,.01*t)/10)*10,Xi=t=>t>=1?Xi(t-1)+Xh(t):0,Fe=(t,e=0)=>t<Xi(e+1)?e:Fe(t,e+1),en=1,ef=[[200,4],[100,3],[50,2],[0,en]],tf=t=>{for(const[e,a]of ef)if(t>=e)return a;return en},O=t=>{let e=0;for(;t>0;t-=tf(e))e++;return e};class af{title=void 0;titleId;badge;isFactionBadge;asset;items;secret;daily;crew;repeatable}var Wt=(t=>(t.COMPLETED="COMPLETED",t.IN_PROGRESS="IN_PROGRESS",t))(Wt||{});const nf=async(t,e,a)=>{const i=md(t),n=qi(t.split("/")[1]);for(const s of i){if(!("crewDependencies"in s))return;const o=new s;await o.isCompletedForCrew(e)||await o.isValidated({[n]:a},e)&&await o.completeForCrew(e)}},sf=async(t,e,a)=>{const i=pd(t),n=qi(t.split("/")[1]);for(const s of i)if("crewDependencies"in s){const o=new s,c=await r.userCrewService.get(e);if(!c||!c.crew||await o.isCompletedForCrew(c.crew))continue;await o.isValidated({[n]:a},c.crew)&&await o.completeForCrew(c.crew)}else{const o=new s;if(await o.isCompleted(e))continue;await o.isValidated({[n]:a},e)&&await o.complete(e,!0)}},rf=(t,e)=>async(a,i)=>{e?await nf(t,a,i):await sf(t,a,i)},tn=new(void 0),an="quest/COMPLETED_QUEST",Ca=(t,e)=>{tn.emit(an,t,e)},of=t=>{tn.on(an,(e,a)=>{t(e,a)})};r.registerQuestMiddlewareEvents(zh(Object.values(r.QUEST_MIDDLEWARE_EVENT_NAME).map(t=>[t,rf(t,t.startsWith("middleware/CREW"))])));class va extends u{name="1 jour 1 message";id="daily_send_message";rankId=l.COMMON.id;description="Envoyer un message";berry=({xp:e})=>(Q(e.amount)/10+1)*1e3;xp=({xp:e})=>(Q(e.amount)/10+1)*100;daily=!0;async isValidated(){return!1}}class Oa extends u{name="Les nouvelles sont bonnes ?";id="daily_read_edito";rankId=l.COMMON.id;description="Réagir à l'édito";berry=({xp:e})=>(Q(e.amount)/10+1)*3e3;xp=({xp:e})=>(Q(e.amount)/10+1)*300;daily=!0;async isValidated(){return!1}}class xa extends u{name="Quoi ? Feur !";id="daily_answer";rankId=l.COMMON.id;description="Répondre à quelqu'un";berry=({xp:e})=>(Q(e.amount)/10+1)*1500;xp=({xp:e})=>(Q(e.amount)/10+1)*150;daily=!0;async isValidated(){return!1}}class La extends u{name="Narcissique";id="daily_check_profile";rankId=l.COMMON.id;description="Regarder son profil";berry=({xp:e})=>(Q(e.amount)/10+1)*2e3;xp=({xp:e})=>(Q(e.amount)/10+1)*200;daily=!0;async isValidated(){return!1}}class Va extends u{name="T'as des amis ?";id="daily_vocal";rankId=l.COMMON.id;description="Se connecter 10 min en vocal";berry=({xp:e})=>(Q(e.amount)/10+1)*5e3;xp=({xp:e})=>(Q(e.amount)/10+1)*500;daily=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return i.voice.minutesInVoiceToday>=10&&ka(i.voice.lastConnection,new Date)}}class it extends u{name="T'as pas oublié de ranger ta chambre ?";id="daily_all";rankId=l.RARE.id;description="Finir les quêtes journalières";berry=({xp:e})=>(Q(e.amount)/10+1)*12500;xp=({xp:e})=>(Q(e.amount)/10+1)*1250;daily=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_QUEST];async isValidated(e,a){const i=[new La,new xa,new Oa,new va,new Va];for(const n of i)if(!await n.isCompleted(a))return!1;return!0}}class nn extends u{name="Almanax";id="almanax";rankId=l.MYTHIC.id;description="Valider 365 jours de suite les quêtes quotidiennes";berry=1e9;xp=1e6;badge=S.calendar;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_QUEST];async isValidated(e,a){const i=new it().id;return((await r.userQuestService.get({user:a,questId:i})).streak??0)>=365}}const df=Object.freeze(Object.defineProperty({__proto__:null,Almanax:nn,DailyAll:it,DailyAnswer:xa,DailyCheckProfile:La,DailyReadEdito:Oa,DailySendMessage:va,DailyVocal:Va},Symbol.toStringTag,{value:"Module"}));class u extends af{static dependencies=[];async complete(e,a){const i=new Date;i.setHours(0,0,0,0);let n;if(!await this.isCompleted(e)&&(this.daily?n=await r.userQuestService.completeQuest({lastCompletionDate:{$lt:i},questId:this.id,user:e},!0):this.repeatable?n=await r.userQuestService.completeQuest({questId:this.id,user:e}):n=await r.userQuestService.completeQuest({questId:this.id,user:e,status:Wt.IN_PROGRESS}),!!n))return await this.specificQuestCompletion(e),await this.applyReward(e),a&&Ca([e],this),!0}async applyReward(e){this.crew||(this.titleId&&await r.userOrnamentService.unlockTitle(e,this.titleId),this.badge&&await r.userOrnamentService.unlockBadge(e,this.badge,this.rankId),this.isFactionBadge&&await r.userOrnamentService.unlockFactionBadge(e,this.rankId),this.asset&&await r.userOrnamentService.unlockProfileAsset(e,this.asset),this.items&&await r.userInventoryService.addItems(e,this.items))}async getComputedRewards(e){const a=new it().id,i=this.daily?await r.userQuestService.getStreakMultiplier(e,a):1,n=await r.userMetaService.get(e);return{xp:(Ji(this.xp)?this.xp(n):this.xp)*i,berry:(Ji(this.berry)?this.berry(n):this.berry)*i}}async specificQuestCompletion(e){this.id==="be_level_10"&&await r.userService.canChooseFaction(e,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await r.userService.canChangeFaction(e,!0)}async isCompleted(e){const{lastCompletionDate:a,status:i}=await r.userQuestService.get({user:e,questId:this.id});return this.repeatable?!1:this.daily?i==="COMPLETED"&&!!a&&ka(a,new Date):i==="COMPLETED"}}class V extends u{static crewDependencies=[];async completeForCrew(e){if(await this.isCompletedForCrew(e))return;const a=new Date;a.setHours(0,0,0,0);let i;if(this.daily?i=await r.crewQuestService.completeQuest({lastCompletionDate:{$lt:a},questId:this.id,crew:e}):this.repeatable?i=await r.crewQuestService.completeQuest({questId:this.id,crew:e}):i=await r.crewQuestService.completeQuest({questId:this.id,crew:e,status:Wt.IN_PROGRESS}),!i)return;const n=await r.userCrewService.getAllUserIdsFromCrew(e),s=[];await this.applyCrewReward(e);for(const o of n)await this.complete(o,!1)&&s.push(o);Ca(s,this)}async applyCrewReward(e){this.badge&&await r.crewOrnamentsService.unlockBadge(e,this.badge,this.rankId)}async isCompletedForCrew(e){const{lastCompletionDate:a,status:i}=await r.crewQuestService.get({crew:e,questId:this.id});return this.repeatable?!1:this.daily?i==="COMPLETED"&&!!a&&ka(a,new Date):i==="COMPLETED"}}class sn extends u{name="Jeune étudiant";id="drink_50_alcohols";rankId=l.COMMON.id;description="Boire 50 alcools";berry=5e5;xp=2e4;titleId="title_Jeune étudiant";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.totalConsumed>=50}}class rn extends u{name="Habitué des bars";id="drink_250_alcohols";rankId=l.RARE.id;description="Boire 250 alcools";berry=2e6;xp=5e4;titleId="title_Habitué des bars";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.totalConsumed>=250}}class on extends u{name="Alcoolique notoire";id="drink_500_alcohols";rankId=l.EPIC.id;description="Boire 500 alcools";berry=1e7;xp=1e5;titleId="title_Alcoolique notoire";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.totalConsumed>=500}}class dn extends u{name="Ivrogne";id="drink_1000_alcohols";rankId=l.LEGENDARY.id;description="Boire 1000 alcools";berry=5e7;xp=2e5;titleId="title_Ivrogne";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.totalConsumed>=1e3}}class ln extends u{name="Breton";id="drink_2000_alcohols";rankId=l.MYTHIC.id;description="Boire 2000 alcools";berry=1e8;xp=5e5;titleId="title_Breton";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.totalConsumed>=2e3}}class cn extends u{name="Buveur de Rhum";id="drink_10_rhum";rankId=l.COMMON.id;description="Boire 10 Rhums";berry=5e5;xp=2e4;titleId="title_Buveur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.rhums>=10}}class un extends u{name="Amateur de Rhum";id="drink_100_rhum";rankId=l.RARE.id;description="Boire 100 Rhums";berry=2e6;xp=5e4;titleId="title_Amateur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.rhums>=100}}class hn extends u{name="Connaisseur de Rhum";id="drink_250_rhum";rankId=l.EPIC.id;description="Boire 250 Rhums";berry=1e7;xp=1e5;titleId="title_Connaisseur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.rhums>=250}}class fn extends u{name="Rhumologue";id="drink_500_rhum";rankId=l.LEGENDARY.id;description="Boire 500 Rhums";berry=5e7;xp=2e5;titleId="title_Rhumologue";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.rhums>=500}}class _n extends u{name="Dieu du Rhum";id="drink_1000_rhum";rankId=l.MYTHIC.id;description="Boire 1000 Rhums";berry=1e8;xp=5e5;titleId="title_Dieu du Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.rhums>=1e3}}class pn extends u{name="Buveur de Bière";id="drink_10_beer";rankId=l.COMMON.id;description="Boire 10 Bières";berry=5e5;xp=2e4;titleId="title_Buveur de Bière";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.beers>=10}}class mn extends u{name="Amateur de Bière";id="drink_100_beer";rankId=l.RARE.id;description="Boire 100 Bières";berry=2e6;xp=5e4;titleId="title_Amateur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.beers>=100}}class En extends u{name="Connaisseur de Bière";id="drink_250_beer";rankId=l.EPIC.id;description="Boire 250 Bières";berry=1e7;xp=1e5;titleId="title_Connaisseur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.beers>=250}}class gn extends u{name="Bièrologue";id="drink_500_beer";rankId=l.LEGENDARY.id;description="Boire 500 Bières";berry=5e7;xp=2e5;titleId="title_Bièrologue";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.beers>=500}}class Sn extends u{name="Dieu de la Bière";id="drink_1000_beer";rankId=l.MYTHIC.id;description="Boire 1000 Bières";berry=1e8;xp=5e5;titleId="title_Dieu de la Bière";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.beers>=1e3}}class yn extends u{name="Buveur de Vin";id="drink_10_wine";rankId=l.COMMON.id;description="Boire 10 Vins";berry=5e5;xp=2e4;titleId="title_Buveur de Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.wines>=10}}class Mn extends u{name="Amateur de Vin";id="drink_100_wine";rankId=l.RARE.id;description="Boire 100 Vins";berry=2e6;xp=5e4;titleId="title_Amateur de Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.wines>=100}}class Tn extends u{name="Connaisseur de Vin";id="drink_250_wine";rankId=l.EPIC.id;description="Boire 250 Vins";berry=1e7;xp=1e5;titleId="title_Connaisseur de Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.wines>=250}}class wn extends u{name="Vinologue";id="drink_500_wine";rankId=l.LEGENDARY.id;description="Boire 500 Vins";berry=1e7;xp=2e5;titleId="title_Vinologue";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.wines>=500}}class bn extends u{name="Dieu du Vin";id="drink_1000_wine";rankId=l.MYTHIC.id;description="Boire 1000 Vins";berry=1e8;xp=5e5;titleId="title_Dieu du Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{alcohols:i}=e??await r.userStatsInventoryService.get(a);return i.wines>=1e3}}const lf=Object.freeze(Object.defineProperty({__proto__:null,Drink1000Alcohols:dn,Drink1000Beer:Sn,Drink1000Rhum:_n,Drink1000Wine:bn,Drink100Beer:mn,Drink100Rhum:un,Drink100Wine:Mn,Drink10Beer:pn,Drink10Rhum:cn,Drink10Wine:yn,Drink2000Alcohols:ln,Drink250Alcohols:rn,Drink250Beer:En,Drink250Rhum:hn,Drink250Wine:Tn,Drink500Alcohols:on,Drink500Beer:gn,Drink500Rhum:fn,Drink500Wine:wn,Drink50Alcohols:sn},Symbol.toStringTag,{value:"Module"}));class An extends u{name="Un poster dans ta chambre";id="have_1_background";rankId=l.EPIC.id;description="Avoir 1 background";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:e},a){const{unlockedBackgrounds:i}=e??await r.userOrnamentService.get(a);return i.filter(n=>n!==Ra).length>=1}}class Rn extends u{name="Fan de One Piece";id="have_25_background";rankId=l.LEGENDARY.id;description="Avoir 25 backgrounds différents";berry=5e6;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:e},a){const{unlockedBackgrounds:i}=e??await r.userOrnamentService.get(a);return i.filter(n=>n!==Ra).length>=25}}class Dn extends u{name="Tu vas en faire quoi ? Tu peux en mettre qu'un";id="have_50_background";rankId=l.MYTHIC.id;description="Avoir 50 backgrounds différents";berry=5e7;xp=25e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:e},a){const{unlockedBackgrounds:i}=e??await r.userOrnamentService.get(a);return i.filter(n=>n!==Ra).length>=50}}const cf=Object.freeze(Object.defineProperty({__proto__:null,Have1Background:An,Have25Background:Rn,Have50Background:Dn},Symbol.toStringTag,{value:"Module"}));class Nn extends u{name="Enfin de quoi t'acheter un bon vélo !";id="have_500000_berry";rankId=l.COMMON.id;description="Avoir 500 000 Berrys";berry=1e5;xp=5e3;badge=S.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{berry:i}=e??await r.userMetaService.get(a);return i>=5e5}}class In extends u{name="Ouah t'es multi-millionaire !";id="have_5000000_berry";rankId=l.RARE.id;description="Avoir 5 000 000 Berrys";berry=1e6;xp=25e3;badge=S.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{berry:i}=e??await r.userMetaService.get(a);return i>=5e6}}class kn extends u{name="Presque riche";id="have_50000000_berry";rankId=l.EPIC.id;description="Avoir 50 000 000 Berrys";berry=1e7;xp=5e4;badge=S.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{berry:i}=e??await r.userMetaService.get(a);return i>=5e7}}class Cn extends u{name="Un 20m² à Paris";id="have_500000000_berry";rankId=l.LEGENDARY.id;description="Avoir 500 000 000 Berrys";berry=1e8;xp=1e5;badge=S.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{berry:i}=e??await r.userMetaService.get(a);return i>=5e8}}class vn extends u{name="This is Elon Musk";id="have_5000000000_berry";rankId=l.MYTHIC.id;description="Avoir 5 000 000 000 Berrys";berry=1e9;xp=25e4;titleId="title_Elon Musk";badge=S.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{berry:i}=e??await r.userMetaService.get(a);return i>=5e9}}const uf=Object.freeze(Object.defineProperty({__proto__:null,Have500kBerry:Nn,Have500mBerry:Cn,Have50mBerry:kn,Have5mBerry:In,Have5mdBerry:vn},Symbol.toStringTag,{value:"Module"}));class On extends u{name="Petit joueur";id="bet_min_value";rankId=l.RARE.id;description="Mise la somme minimale lors d'un pari";berry=5e4;xp=1e4;secret=!0;titleId="title_Petit joueur";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{gamblingFlags:i}=e??await r.userStatsFlagsService.get(a);return i.betMin}}class xn extends u{name="On a tous le droit à une seconde chance";id="lose_everything";rankId=l.RARE.id;description="Perdre tous ses Berrys";berry=1e5;xp=1e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{gamblingFlags:i}=e??await r.userStatsFlagsService.get(a);return i.loseEverything}}class Ln extends u{name="T'es sûr de toi ?";id="bet_10M";rankId=l.EPIC.id;description="Miser 10 000 000 de Berrys en une seule fois";berry=5e5;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{gamblingFlags:i}=e??await r.userStatsFlagsService.get(a);return i.bet10M}}class Vn extends u{name="Ok j'ai rien dit";id="win_10M_bet";rankId=l.LEGENDARY.id;description="Gagner en ayant misé 10M de Berrys";berry=1e6;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{gamblingFlags:i}=e??await r.userStatsFlagsService.get(a);return i.winBet10M}}class Un extends u{name="T'es accro là non ?";id="bet_total_10M";rankId=l.LEGENDARY.id;description="Miser plus de 10 000 000 de Berrys en tout";berry=1e6;xp=1e5;titleId="title_Gambling addict";badge=S.casino;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{totalBet:i}=e??await r.userStatsCasinoService.get(a);return i>=1e7}}class Pn extends u{name="LE MILLIARD";id="bet_total_1Md";rankId=l.MYTHIC.id;description="Miser plus de 1 000 000 000 de Berrys en tout";berry=5e7;xp=25e4;badge=S.casino;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{totalBet:i}=e??await r.userStatsCasinoService.get(a);return i>=1e9}}class Yn extends u{name="Cheh !";id="lose_10M";rankId=l.LEGENDARY.id;description="Perdre 10M de Berrys en une fois";berry=1e6;xp=1e5;secret=!0;badge=S.noluck;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{gamblingFlags:i}=e??await r.userStatsFlagsService.get(a);return i.lose10M}}const hf=Object.freeze(Object.defineProperty({__proto__:null,Bet10M:Ln,BetMinValue:On,Lose10M:Yn,LoseEverything:xn,TotalBet10M:Un,TotalBet1Md:Pn,WinOn10MBet:Vn},Symbol.toStringTag,{value:"Module"}));class Wn extends u{name="Bon anniversaire !";id="birthday";rankId=l.EPIC.id;description="Fêter son anniversaire";berry=1e6;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{hasCelebrateBirthday:i}=e??await r.userStatsFlagsService.get(a);return i}}const ff=Object.freeze(Object.defineProperty({__proto__:null,Birthday:Wn},Symbol.toStringTag,{value:"Module"}));class Qn extends u{name="Il ne va pas te répondre tu sais ?";id="bot_ping";rankId=l.EPIC.id;description="Ping le bot 100 fois";berry=25e4;xp=25e3;secret=!0;titleId="title_Teubé";asset=Na.idiot;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{botPingCount:i}=e??await r.userStatsFlagsService.get(a);return i>=100}}const _f=Object.freeze(Object.defineProperty({__proto__:null,BotPing:Qn},Symbol.toStringTag,{value:"Module"}));class Fn extends u{name="5 jours / semaine à Basic Fit";id="have_25_strength";rankId=l.COMMON.id;description="Avoir 25 de force";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.strength)>=25}}class Hn extends u{name="La fonte > les livres";id="have_50_strength";rankId=l.RARE.id;description="Avoir 50 de force";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.strength)>=50}}class jn extends u{name="Moi, musclé ?";id="have_100_strength";rankId=l.EPIC.id;description="Avoir 100 de force";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.strength)>=100}}class Bn extends u{name="Hercules";id="have_250_strength";rankId=l.LEGENDARY.id;description="Avoir 250 de force";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.strength)>=250}}class Gn extends u{name="Titan";id="have_500_strength";rankId=l.MYTHIC.id;description="Avoir 500 de force";berry=5e7;xp=25e4;titleId="title_Titan";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.strength)>=500}}class $n extends u{name="Chat de gouttière";id="have_25_agility";rankId=l.COMMON.id;description="Avoir 25 d'agilité";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.agility)>=25}}class zn extends u{name="Hop ! Grand écart !";id="have_50_agility";rankId=l.RARE.id;description="Avoir 50 d'agilité";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.agility)>=50}}class qn extends u{name="Danseur étoile";id="have_100_agility";rankId=l.EPIC.id;description="Avoir 100 d'agilité";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.agility)>=100}}class Kn extends u{name="L'Éclair de Konoha ! (merde mauvais manga)";id="have_250_agility";rankId=l.LEGENDARY.id;description="Avoir 250 d'agilité";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.agility)>=250}}class Jn extends u{name="Héritier de Bon Clay";id="have_500_agility";rankId=l.MYTHIC.id;description="Avoir 500 d'agilité";berry=5e7;xp=25e4;titleId="title_Héritier de Bon Clay";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.agility)>=500}}class Zn extends u{name="2+2 = 4";id="have_25_intelligence";rankId=l.COMMON.id;description="Avoir 25 d'intelligence";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.intelligence)>=25}}class Xn extends u{name="Petit Einstein";id="have_50_intelligence";rankId=l.RARE.id;description="Avoir 50 d'intelligence";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.intelligence)>=50}}class es extends u{name="HPI";id="have_100_intelligence";rankId=l.EPIC.id;description="Avoir 100 d'intelligence";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.intelligence)>=100}}class ts extends u{name="Sorcier du savoir";id="have_250_intelligence";rankId=l.LEGENDARY.id;description="Avoir 250 d'intelligence";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.intelligence)>=250}}class as extends u{name="Héritier de Vegapunk";id="have_500_intelligence";rankId=l.MYTHIC.id;description="Avoir 500 d'intelligence";berry=5e7;xp=25e4;titleId="title_Héritier de Vegapunk";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.intelligence)>=500}}class is extends u{name="Touche du bois";id="have_25_chance";rankId=l.COMMON.id;description="Avoir 25 de chance";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.chance)>=25}}class ns extends u{name="Petit veinard";id="have_50_chance";rankId=l.RARE.id;description="Avoir 50 de chance";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.chance)>=50}}class ss extends u{name="LA CHAAAAAATTE !";id="have_100_chance";rankId=l.EPIC.id;description="Avoir 100 de chance";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.chance)>=100}}class rs extends u{name="Favori des Astres";id="have_250_chance";rankId=l.LEGENDARY.id;description="Avoir 250 de chance";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.chance)>=250}}class os extends u{name="Héritier de Baggy";id="have_500_chance";rankId=l.MYTHIC.id;description="Avoir 500 de chance";berry=5e7;xp=25e4;titleId="title_Héritier de Baggy";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.chance)>=500}}class ds extends u{name="Résistant";id="have_25_vitality";rankId=l.COMMON.id;description="Avoir 25 de vitalité";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.vitality)>=25}}class ls extends u{name="Solide comme un roc";id="have_50_vitality";rankId=l.RARE.id;description="Avoir 50 de vitalité";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.vitality)>=50}}class cs extends u{name="Le tank !";id="have_100_vitality";rankId=l.EPIC.id;description="Avoir 100 de vitalité";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.vitality)>=100}}class us extends u{name="Mais t'es increvable !";id="have_250_vitality";rankId=l.LEGENDARY.id;description="Avoir 250 de vitalité";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.vitality)>=250}}class hs extends u{name="Héritier de Kaido";id="have_500_vitality";rankId=l.MYTHIC.id;description="Avoir 500 de vitalité";berry=5e7;xp=25e4;titleId="title_Héritier de Kaido";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.vitality)>=500}}class fs extends u{name="Tu as lu des livres ?";id="have_25_wisdom";rankId=l.COMMON.id;description="Avoir 25 de sagesse";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.wisdom)>=25}}class _s extends u{name="Filozof";id="have_50_wisdom";rankId=l.RARE.id;description="Avoir 50 de sagesse";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.wisdom)>=50}}class ps extends u{name="Platon";id="have_100_wisdom";rankId=l.EPIC.id;description="Avoir 100 de sagesse";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.wisdom)>=100}}class ms extends u{name="Oracle vénéré";id="have_250_wisdom";rankId=l.LEGENDARY.id;description="Avoir 250 de sagesse";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.wisdom)>=250}}class Es extends u{name="Héritier d'Ohara";id="have_500_wisdom";rankId=l.MYTHIC.id;description="Avoir 500 de sagesse";berry=5e7;xp=25e4;titleId="title_Héritier d'Ohara";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{characteristics:i}=e??await r.userMetaService.get(a);return O(i.wisdom)>=500}}const pf=Object.freeze(Object.defineProperty({__proto__:null,Have100Agility:qn,Have100Chance:ss,Have100Intelligence:es,Have100Strength:jn,Have100Vitality:cs,Have100Wisdom:ps,Have250Agility:Kn,Have250Chance:rs,Have250Intelligence:ts,Have250Strength:Bn,Have250Vitality:us,Have250Wisdom:ms,Have25Agility:$n,Have25Chance:is,Have25Intelligence:Zn,Have25Strength:Fn,Have25Vitality:ds,Have25Wisdom:fs,Have500Agility:Jn,Have500Chance:os,Have500Intelligence:as,Have500Strength:Gn,Have500Vitality:hs,Have500Wisdom:Es,Have50Agility:zn,Have50Chance:ns,Have50Intelligence:Xn,Have50Strength:Hn,Have50Vitality:ls,Have50Wisdom:_s},Symbol.toStringTag,{value:"Module"}));class gs extends u{name="Ils font mieux chez Ikea";id="craft_20_times";rankId=l.COMMON.id;description="Effectuer 20 crafts";berry=5e4;xp=5e3;badge=S.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.totalCrafted>=20}}class Ss extends u{name="Te fais pas mal avec le marteau";id="craft_50_times";rankId=l.RARE.id;description="Effectuer 50 crafts";berry=2e5;xp=25e3;badge=S.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.totalCrafted>=50}}class ys extends u{name="Insensible aux échardes on dirait";id="craft_200_times";rankId=l.EPIC.id;description="Effectuer 200 crafts";berry=1e6;xp=5e4;badge=S.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.totalCrafted>=200}}class Ms extends u{name="Je ne veux pas voir l'état de ton atelier";id="craft_500_times";rankId=l.LEGENDARY.id;description="Effectuer 500 crafts";berry=1e6;xp=1e5;badge=S.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.totalCrafted>=500}}class Ts extends u{name="Mac Gyver";id="craft_1000_times";rankId=l.MYTHIC.id;description="Effectuer 1000 crafts";berry=5e7;xp=25e4;titleId="title_Mac Gyver";badge=S.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.totalCrafted>=1e3}}class ws extends u{name="Apprenti Gourmand";id="craft_10_cooked_meals";rankId=l.COMMON.id;description="Cuisiner 10 plats";berry=5e5;xp=2e4;titleId="title_Apprenti Gourmand";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.cookedMeal>=10}}class bs extends u{name="Chef Amateur";id="craft_50_cooked_meals";rankId=l.RARE.id;description="Cuisiner 50 plats";berry=2e5;xp=5e4;titleId="title_Chef Amateur";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.cookedMeal>=50}}class As extends u{name="Maître des Saveurs";id="craft_100_cooked_meals";rankId=l.EPIC.id;description="Cuisiner 100 plats";berry=1e7;xp=1e5;titleId="title_Maître des Saveurs";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.cookedMeal>=100}}class Rs extends u{name="Artiste Culinaire";id="craft_250_cooked_meals";rankId=l.LEGENDARY.id;description="Cuisiner 250 plats";berry=5e7;xp=2e5;titleId="title_Artiste Culinaire";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.cookedMeal>=250}}class Ds extends u{name="Sultan des Épices";id="craft_500_cooked_meals";rankId=l.MYTHIC.id;description="Cuisiner 500 plats";berry=1e8;xp=5e5;titleId="title_Sultan des Épices";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.cookedMeal>=500}}class Ns extends u{name="C'est une bonne situation ça scribe ?";id="craft_5_scrolls";rankId=l.COMMON.id;description="Craft 5 Parchemins";berry=5e5;xp=2e4;titleId="title_Apprenti Scribe";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.scrolls>=5}}class Is extends u{name="Artisan des Runes";id="craft_10_scrolls";rankId=l.RARE.id;description="Craft 10 Parchemins";berry=2e6;xp=5e4;titleId="title_Artisan des Runes";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.scrolls>=10}}class ks extends u{name="Collectionneur des Manuscrits";id="craft_20_scrolls";rankId=l.EPIC.id;description="Craft 20 Parchemins";berry=1e7;xp=1e5;titleId="title_Collectionneur de Manuscrits";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.scrolls>=20}}class Cs extends u{name="Maître des Enluminures";id="craft_50_scrolls";rankId=l.LEGENDARY.id;description="Craft 50 Parchemins";berry=5e7;xp=2e5;titleId="title_Maître des Enluminures";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.scrolls>=50}}class vs extends u{name="Protecteur du Savoir";id="craft_100_scrolls";rankId=l.MYTHIC.id;description="Craft 100 Parchemins";berry=1e8;xp=5e5;titleId="title_Protecteur du Savoir";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{crafts:i}=e??await r.userStatsInventoryService.get(a);return i.scrolls>=100}}const mf=Object.freeze(Object.defineProperty({__proto__:null,Craft1000Times:Ts,Craft100CookedMeals:As,Craft100Scrolls:vs,Craft10CookedMeals:ws,Craft10Scrolls:Is,Craft200Times:ys,Craft20Scrolls:ks,Craft20Times:gs,Craft250CookedMeals:Rs,Craft500CookedMeals:Ds,Craft500Times:Ms,Craft50CookedMeals:bs,Craft50Scrolls:Cs,Craft50Times:Ss,Craft5Scrolls:Ns},Symbol.toStringTag,{value:"Module"}));class Os extends V{name="Prenez-en soin";id="crew_carpenter_1_week";rankId=l.COMMON.id;description="Rester au dessus de 80% de détérioration pendant 1 semaine";berry=5e4;xp=5e3;crew=!0;secret=!0;badge=S.carpenter;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_FREQUENCY];async isValidated({crewStatsFrequency:e},a){const{streak80Percent:i}=e??await r.crewStatsFrequencyService.get(a);return i>=7}}class xs extends V{name="Il est comme neuf !";id="crew_carpenter_1_month";rankId=l.RARE.id;description="Rester au dessus de 80% de détérioration pendant 1 mois";berry=2e5;xp=25e3;crew=!0;secret=!0;badge=S.carpenter;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_FREQUENCY];async isValidated({crewStatsFrequency:e},a){const{streak80Percent:i}=e??await r.crewStatsFrequencyService.get(a);return i>=30}}class Ls extends V{name="À l'occasion, je vous mettrai un petit coup de polish";id="crew_carpenter_3_months";rankId=l.EPIC.id;description="Rester au dessus de 80% de détérioration pendant 3 mois";berry=1e6;xp=5e4;crew=!0;secret=!0;badge=S.carpenter;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_FREQUENCY];async isValidated({crewStatsFrequency:e},a){const{streak80Percent:i}=e??await r.crewStatsFrequencyService.get(a);return i>=90}}class Vs extends V{name="Vous ne naviguez qu'en eau calme ?";id="crew_carpenter_6_months";rankId=l.LEGENDARY.id;description="Rester au dessus de 80% de détérioration pendant 6 mois";berry=1e7;xp=1e5;crew=!0;secret=!0;badge=S.carpenter;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_FREQUENCY];async isValidated({crewStatsFrequency:e},a){const{streak80Percent:i}=e??await r.crewStatsFrequencyService.get(a);return i>=180}}class Us extends V{name="C'est un sacré charpentier que vous avez là !";id="crew_carpenter_1_year";rankId=l.MYTHIC.id;description="Rester au dessus de 80% de détérioration pendant 1 an";berry=5e7;xp=25e4;crew=!0;secret=!0;titleId="title_Charpentier Légendaire";badge=S.carpenter;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_FREQUENCY];async isValidated({crewStatsFrequency:e},a){const{streak80Percent:i}=e??await r.crewStatsFrequencyService.get(a);return i>=365}}const Ef=Object.freeze(Object.defineProperty({__proto__:null,CrewCarpenter1Month:xs,CrewCarpenter1Week:Os,CrewCarpenter1Year:Us,CrewCarpenter3Months:Ls,CrewCarpenter6Months:Vs},Symbol.toStringTag,{value:"Module"}));class Ps extends V{name="Prêt à naviguer !";id="crew_daily_click";rankId=l.COMMON.id;description="Faire acte de présence auprès de son équipage";berry=1e4;xp=1e3;crew=!0;daily=!0;async isValidated(){return!1}}class Ys extends V{name="Au rapport !";id="crew_all_members_daily";rankId=l.RARE.id;description="Tous les membres ont rempli leurs quêtes quotidiennes";berry=5e4;xp=5e3;crew=!0;daily=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_QUEST];async isValidated(e,a){const i=await r.userCrewService.getAllUserIdsFromCrew(a),n=new it;for(const s of i)if(!await n.isCompleted(s))return!1;return!0}}const gf=Object.freeze(Object.defineProperty({__proto__:null,CrewAllMembersDaily:Ys,CrewValidateDaily:Ps},Symbol.toStringTag,{value:"Module"}));class Ws extends V{name="Ah bah maintenant, elle va marcher beaucoup moins bien forcément !";id="crew_break_ship";rankId=l.LEGENDARY.id;description="Casser son bateau (atteindre les 0% de détérioration)";berry=-1e6;xp=-1e5;crew=!0;secret=!0;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW];async isValidated({crew:e},a){const i=e??await r.crewService.get(a);return!!i&&i.disintegration<=0}}const Sf=Object.freeze(Object.defineProperty({__proto__:null,CrewBreakShip:Ws},Symbol.toStringTag,{value:"Module"}));class Qs extends V{name="Sympa votre barque";id="crew_ship_level_10";rankId=l.COMMON.id;description="Atteindre le niveau 10 d'équipage";berry=5e4;xp=5e3;crew=!0;badge=S.crewship;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&Fe(i.xp)>=10}}class Fs extends V{name="Joli bicoque";id="crew_ship_level_25";rankId=l.RARE.id;description="Atteindre le niveau 25 d'équipage";berry=2e5;xp=25e3;crew=!0;badge=S.crewship;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&Fe(i.xp)>=25}}class Hs extends V{name="* C'est un fameux trois-mâts *";id="crew_ship_level_50";rankId=l.EPIC.id;description="Atteindre le niveau 50 d'équipage";berry=1e6;xp=5e4;crew=!0;badge=S.crewship;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&Fe(i.xp)>=50}}class js extends V{name="* Fin comme un oiseau *";id="crew_ship_level_75";rankId=l.LEGENDARY.id;description="Atteindre le niveau 75 d'équipage";berry=1e7;xp=1e5;crew=!0;badge=S.crewship;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&Fe(i.xp)>=75}}class Bs extends V{name="* Hisse et ho ! *";id="crew_ship_level_100";rankId=l.MYTHIC.id;description="Atteindre le niveau 100 d'équipage";berry=5e7;xp=25e4;crew=!0;titleId="title_Santiano";badge=S.crewship;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&Fe(i.xp)>=100}}const yf=Object.freeze(Object.defineProperty({__proto__:null,CrewBeLevel10:Qs,CrewBeLevel100:Bs,CrewBeLevel25:Fs,CrewBeLevel50:Hs,CrewBeLevel75:js},Symbol.toStringTag,{value:"Module"}));class Gs extends V{name="Y'a pas de petites économies";id="crew_have_100M_berry";rankId=l.COMMON.id;description="Avoir 100 000 000 Berrys dans le coffre d'équipage";berry=5e4;xp=5e3;crew=!0;badge=S.communism;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&i.berry>=1e8}}class $s extends V{name="Joli butin !";id="crew_have_500M_berry";rankId=l.RARE.id;description="Avoir 500 000 000 Berrys dans le coffre d'équipage";berry=2e5;xp=25e3;crew=!0;badge=S.communism;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&i.berry>=5e8}}class zs extends V{name="Vous économisez pour un nouveau bateau ?";id="crew_have_1Md_berry";rankId=l.EPIC.id;description="Avoir 1 000 000 000 Berrys dans le coffre d'équipage";berry=1e6;xp=5e4;crew=!0;badge=S.communism;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&i.berry>=1e9}}class qs extends V{name="Ça fait beaucoup là non ?";id="crew_have_5Md_berry";rankId=l.LEGENDARY.id;description="Avoir 5 000 000 000 Berrys dans le coffre d'équipage";berry=1e7;xp=1e5;crew=!0;badge=S.communism;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&i.berry>=5e9}}class Ks extends V{name="Karl Marx serait fier de vous !";id="crew_have_50Md_berry";rankId=l.MYTHIC.id;description="Avoir 50 000 000 000 Berrys dans le coffre d'équipage";berry=5e7;xp=25e4;crew=!0;titleId="title_Communiste";badge=S.communism;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_META];async isValidated({crewMeta:e},a){const i=e??await r.crewMetaService.get(a);return!!i&&i.berry>=5e10}}const Mf=Object.freeze(Object.defineProperty({__proto__:null,CrewHave100MBerry:Gs,CrewHave1MdBerry:zs,CrewHave500MBerry:$s,CrewHave50MdBerry:Ks,CrewHave5MdBerry:qs},Symbol.toStringTag,{value:"Module"}));class Js extends V{name="Plus on est de fous...";id="crew_size_5";rankId=l.COMMON.id;description="Être dans un équipage de 5 membres";berry=5e4;xp=5e3;crew=!0;badge=S.sardine;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_CREW];async isValidated(e,a){return(await r.userCrewService.getAllUserIdsFromCrew(a)).length>=5}}class Zs extends V{name="Plus on rit !";id="crew_size_7";rankId=l.RARE.id;description="Être dans un équipage de 7 membres";berry=2e5;xp=25e3;crew=!0;badge=S.sardine;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_CREW];async isValidated(e,a){return(await r.userCrewService.getAllUserIdsFromCrew(a)).length>=7}}class Xs extends V{name="Une petite famille";id="crew_size_10";rankId=l.EPIC.id;description="Être dans un équipage de 10 membres";berry=1e6;xp=5e4;crew=!0;badge=S.sardine;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_CREW];async isValidated(e,a){return(await r.userCrewService.getAllUserIdsFromCrew(a)).length>=10}}class er extends V{name="Va falloir des dortoirs en plus";id="crew_size_12";rankId=l.LEGENDARY.id;description="Être dans un équipage de 12 membres";berry=1e7;xp=1e5;crew=!0;badge=S.sardine;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_CREW];async isValidated(e,a){return(await r.userCrewService.getAllUserIdsFromCrew(a)).length>=12}}class tr extends V{name="* Ah qu'est-ce qu'on est serré ! *";id="crew_size_15";rankId=l.MYTHIC.id;description="Être dans un équipage de 15 membres";berry=5e7;xp=25e4;crew=!0;titleId="title_Sardine";badge=S.sardine;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_CREW];async isValidated(e,a){return(await r.userCrewService.getAllUserIdsFromCrew(a)).length>=15}}const Tf=Object.freeze(Object.defineProperty({__proto__:null,CrewSize10:Xs,CrewSize12:er,CrewSize15:tr,CrewSize5:Js,CrewSize7:Zs},Symbol.toStringTag,{value:"Module"}));class ar extends V{name="Réunion de crise";id="crew_vocal_5";rankId=l.COMMON.id;description="Être dans un un vocal avec au moins 5 membres pendant 1 heure";berry=5e4;xp=5e3;crew=!0;badge=S.shipsecte;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_ENGAGEMENT];async isValidated({crewStatsEngagement:e},a){const{maxVoiceMembersReached:i}=e??await r.crewStatsEngagementService.get(a);return i>=5}}class ir extends V{name="Conseil de guerre";id="crew_vocal_7";rankId=l.RARE.id;description="Être dans un un vocal avec au moins 7 membres pendant 1 heure";berry=2e5;xp=25e3;crew=!0;badge=S.shipsecte;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_ENGAGEMENT];async isValidated({crewStatsEngagement:e},a){const{maxVoiceMembersReached:i}=e??await r.crewStatsEngagementService.get(a);return i>=7}}class nr extends V{name="Réunion de famille";id="crew_vocal_10";rankId=l.EPIC.id;description="Être dans un un vocal avec au moins 10 membres pendant 1 heure";berry=1e6;xp=5e4;crew=!0;badge=S.shipsecte;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_ENGAGEMENT];async isValidated({crewStatsEngagement:e},a){const{maxVoiceMembersReached:i}=e??await r.crewStatsEngagementService.get(a);return i>=10}}class sr extends V{name="Les Inséparables";id="crew_vocal_12";rankId=l.LEGENDARY.id;description="Être dans un un vocal avec au moins 12 membres pendant 1 heure";berry=1e7;xp=1e5;crew=!0;badge=S.shipsecte;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_ENGAGEMENT];async isValidated({crewStatsEngagement:e},a){const{maxVoiceMembersReached:i}=e??await r.crewStatsEngagementService.get(a);return i>=12}}class rr extends V{name="Ambiance sectaire un peu";id="crew_vocal_15";rankId=l.MYTHIC.id;description="Être dans un un vocal avec au moins 15 membres pendant 1 heure";berry=5e7;xp=25e4;crew=!0;titleId="title_Membre d'une secte";badge=S.shipsecte;static crewDependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.CREW_STATS_ENGAGEMENT];async isValidated({crewStatsEngagement:e},a){const{maxVoiceMembersReached:i}=e??await r.crewStatsEngagementService.get(a);return i>=15}}const wf=Object.freeze(Object.defineProperty({__proto__:null,CrewVocal10:nr,CrewVocal12:sr,CrewVocal15:rr,CrewVocal5:ar,CrewVocal7:ir},Symbol.toStringTag,{value:"Module"}));class or extends u{name="Vaut mieux ça que perdre non ?";id="draw_100";rankId=l.COMMON.id;description="Faire 100 égalités";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{drawCount:i}=e??await r.userStatsCasinoService.get(a);return i>=100}}class dr extends u{name="Tu as trouvé ton rival";id="draw_300";rankId=l.RARE.id;description="Faire 300 égalités";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{drawCount:i}=e??await r.userStatsCasinoService.get(a);return i>=300}}class lr extends u{name="Rathon c'est toi ?";id="draw_1000";rankId=l.EPIC.id;description="Faire 1000 égalités";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{drawCount:i}=e??await r.userStatsCasinoService.get(a);return i>=1e3}}class cr extends u{name="Tu te bats contre un mur ou quoi ?";id="draw_2000";rankId=l.LEGENDARY.id;description="Faire 2000 égalités";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{drawCount:i}=e??await r.userStatsCasinoService.get(a);return i>=2e3}}class ur extends u{name="De vrais jumeaux";id="draw_5000";rankId=l.MYTHIC.id;description="Faire 5000 égalités";berry=5e7;xp=25e4;titleId="title_Égalitaire";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{drawCount:i}=e??await r.userStatsCasinoService.get(a);return i>=5e3}}const bf=Object.freeze(Object.defineProperty({__proto__:null,Draw1000Quest:lr,Draw100Quest:or,Draw2000Quest:cr,Draw300Quest:dr,Draw5000Quest:ur},Symbol.toStringTag,{value:"Module"}));class hr extends u{name="Y'a un truc que t'as pas compris ?";id="edito_read_100";rankId=l.EPIC.id;description="Lire 100 fois l'édito en une journée";berry=25e4;xp=25e3;secret=!0;titleId="title_Culturé";asset=Na.edito;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FREQUENCY];async isValidated({userStatsFrequency:e},a){const{edito:i}=e??await r.userStatsFrequencyService.get(a);return i.readToday>=100}}const Af=Object.freeze(Object.defineProperty({__proto__:null,Edito:hr},Symbol.toStringTag,{value:"Module"}));class fr extends u{name="Une fois, pas deux";id="everyone";rankId=l.LEGENDARY.id;description="Tenter de tag everyone";berry=-1e6;xp=-5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{tagEveryone:i}=e??await r.userStatsFlagsService.get(a);return i}}const Rf=Object.freeze(Object.defineProperty({__proto__:null,Everyone:fr},Symbol.toStringTag,{value:"Module"}));class _r extends u{name="Emoji Diable";id="double_six";rankId=l.LEGENDARY.id;description="Faire 50 fois un double six";berry=1e6;xp=1e5;badge=S.doublesix;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{dice:i}=e??await r.userStatsCasinoService.get(a);return i.doubleSixCount>=50}}class pr extends u{name="Pas de chance ^^";id="draw_double_six";rankId=l.RARE.id;description="Faire une fois une égalité en double 6";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{dice:i}=e??await r.userStatsCasinoService.get(a);return i.drawWithDoubleSixCount>=1}}class mr extends u{name="Jamais 6 sans 7";id="seven_quitte_ou_double";rankId=l.MYTHIC.id;description='Gagner 7 fois de suite "Doubles" au Quitte ou Double';berry=5e7;xp=25e4;badge=S.chance;titleId="title_Chanceux";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{doubleOrQuit:i}=e??await r.userStatsCasinoService.get(a);return i.sevenDoubleInARowCount>=1}}class Er extends u{name="Le 5 à la suite";id="win_5_in_row";rankId=l.EPIC.id;description="Gagner à 5 jeux différents du casino à la suite";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{lastGames:i}=e??await r.userStatsCasinoService.get(a),n=i.slice(0,5);return n.length!==5||zi(n,s=>s.gameType).length<5?!1:n.reduce((s,o)=>s+o.endState,0)===5}}class gr extends u{name="Le 5 à la suite, mais dans l'autre sens";id="lose_5_in_row";rankId=l.EPIC.id;description="Perdre à 5 jeux différents du casino à la suite";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{lastGames:i}=e??await r.userStatsCasinoService.get(a),n=i.slice(0,5);return n.length!==5||zi(n,s=>s.gameType).length<5?!1:n.reduce((s,o)=>s+o.endState,0)===-5}}class Sr extends u{name="Jacques le noir";id="ten_black_jack";rankId=l.LEGENDARY.id;description="Faire 10 fois BlackJack";berry=5e6;xp=5e4;badge=S["black-jack"];static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{blackJack:i}=e??await r.userStatsCasinoService.get(a);return i.blackJackCount>=10}}class yr extends u{name="La feuille enveloppe la pierre ! T'es sûr ?";id="paper_100";rankId=l.LEGENDARY.id;description="Faire 100 fois de suite Papier au PPC";berry=1e6;xp=1e5;titleId="title_Papyrus";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{rps:i}=e??await r.userStatsCasinoService.get(a);return i.lastRpsPlayed==="paper"&&i.count>=100}}class Mr extends u{name="On fait la paire !";id="scissor_100";rankId=l.LEGENDARY.id;description="Faire 100 fois de suite Ciseaux au PPC";berry=1e6;xp=1e5;titleId="title_Couturier";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{rps:i}=e??await r.userStatsCasinoService.get(a);return i.lastRpsPlayed==="scissor"&&i.count>=100}}class Tr extends u{name="Golem";id="rock_100";rankId=l.LEGENDARY.id;description="Faire 100 fois de suite Pierre au PPC";berry=1e6;xp=1e5;titleId="title_Golem";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{rps:i}=e??await r.userStatsCasinoService.get(a);return i.lastRpsPlayed==="rock"&&i.count>=100}}class wr extends u{name="LE NEUF ET LE HUIT !!!";id="guess_in_one";rankId=l.MYTHIC.id;description="Deviner le Juste Prix en un coup";berry=5e7;xp=25e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{priceIsRight:i}=e??await r.userStatsCasinoService.get(a);return i.guessInOneTryCount>=1}}class br extends u{name="Sataniste";id="bet_666_33_days";rankId=l.LEGENDARY.id;description="Miser 666 Berry au moins une fois par jour pendant 33 jours";berry=1e6;xp=5e4;secret=!0;titleId="title_Démon";asset=Na.satan;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{bet666:i}=e??await r.userStatsCasinoService.get(a);return i.count>=33}}class Ar extends u{name="Jour, Nuit";id="win_lose_10_times";rankId=l.LEGENDARY.id;description='Faire un enchaînement "Victoire/Défaite" 10 fois de suite';berry=1e6;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:e},a){const{lastGames:i}=e??await r.userStatsCasinoService.get(a);if(i.length!==20)return!1;const n=i[0].endState,s=n===1?-1:1;if(n===0)return!1;for(let o=0;o<i.length;o++)if(o%2===0&&i[o].endState!==n||o%2!==0&&i[o].endState!==s)return!1;return!0}}const Df=Object.freeze(Object.defineProperty({__proto__:null,Bet666:br,DoubleSix:_r,DrawDoubleSix:pr,GuessInOne:wr,LoseAll5GamesInRow:gr,Paper100:yr,Rock100:Tr,Scissor100:Mr,SevenQuitteOuDouble:mr,TenBlackJack:Sr,WinAll5GamesInRow:Er,WinLose10:Ar},Symbol.toStringTag,{value:"Module"}));class Rr extends u{name="Tu avais soif ?";id="drink_100_xp_bottles_1_day";rankId=l.LEGENDARY.id;description="Boire 100 Potions d'XP en une journée";berry=1e6;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{bottle:i}=e??await r.userStatsInventoryService.get(a);return i.usedToday>=100}}class Dr extends u{name="Un ptit goût amer non ?";id="drink_200";rankId=l.COMMON.id;description="Boire 200 Potions d'XP";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{bottle:i}=e??await r.userStatsInventoryService.get(a);return i.totalUsed>=200}}class Nr extends u{name="Ça se boit bien finalement";id="drink_500";rankId=l.RARE.id;description="Boire 500 Potions d'XP";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{bottle:i}=e??await r.userStatsInventoryService.get(a);return i.totalUsed>=500}}class Ir extends u{name="Les potions donnent des aiiiiles !";id="drink_1000";rankId=l.EPIC.id;description="Boire 1000 Potions d'XP";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{bottle:i}=e??await r.userStatsInventoryService.get(a);return i.totalUsed>=1e3}}class kr extends u{name="À deux doigts de vomir";id="drink_2000";rankId=l.LEGENDARY.id;description="Boire 2000 Potions d'XP";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{bottle:i}=e??await r.userStatsInventoryService.get(a);return i.totalUsed>=2e3}}class Cr extends u{name="Alcoolique";id="drink_5000";rankId=l.MYTHIC.id;description="Boire 5000 Potions d'XP";berry=5e7;xp=25e4;titleId="title_Alcoolique";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{bottle:i}=e??await r.userStatsInventoryService.get(a);return i.totalUsed>=5e3}}class vr extends u{name="C'est sympa ce ptit jeu";id="chest_open_50";rankId=l.COMMON.id;description="Ouvrir 50 Coffres";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{chest:i}=e??await r.userStatsInventoryService.get(a);return i.totalOpened>=50}}class Or extends u{name="T'as enfin eu un truc intéressant ?";id="chest_open_150";rankId=l.RARE.id;description="Ouvrir 150 Coffres";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{chest:i}=e??await r.userStatsInventoryService.get(a);return i.totalOpened>=150}}class xr extends u{name="Ça commence à gratter hein ?";id="chest_open_500";rankId=l.EPIC.id;description="Ouvrir 500 Coffres";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{chest:i}=e??await r.userStatsInventoryService.get(a);return i.totalOpened>=500}}class Lr extends u{name="LAISSEZ-MOI OUVRIR DES COFFRES !";id="chest_open_1000";rankId=l.LEGENDARY.id;description="Ouvrir 1000 Coffres";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{chest:i}=e??await r.userStatsInventoryService.get(a);return i.totalOpened>=1e3}}class Vr extends u{name="xXFan2GenshinXx";id="chest_open_2000";rankId=l.MYTHIC.id;description="Ouvrir 2000 Coffres";berry=5e7;xp=25e4;titleId="title_Gatcha Addict";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:e},a){const{chest:i}=e??await r.userStatsInventoryService.get(a);return i.totalOpened>=2e3}}const Nf=Object.freeze(Object.defineProperty({__proto__:null,ChestOpen1000Quest:Lr,ChestOpen150Quest:Or,ChestOpen2000Quest:Vr,ChestOpen500Quest:xr,ChestOpen50Quest:vr,Drink1000Quest:Ir,Drink100Today:Rr,Drink2000Quest:kr,Drink200Quest:Dr,Drink5000Quest:Cr,Drink500Quest:Nr},Symbol.toStringTag,{value:"Module"}));class Ur extends u{name="Bienvenue à bord !";id="crew_create_or_join";rankId=l.LEGENDARY.id;description="Créer ou rejoindre un équipage";berry=1e6;xp=1e5;crew=!1;async isValidated(){return!1}}const If=Object.freeze(Object.defineProperty({__proto__:null,CrewCreateOrJoin:Ur},Symbol.toStringTag,{value:"Module"}));class Pr extends u{name="Un pas devant l'autre !";id="be_level_10";rankId=l.COMMON.id;description="Atteindre le niveau 10";berry=1e5;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=10}}class Yr extends u{name="T'inquiète pas ça va bien se passer";id="be_level_20";rankId=l.COMMON.id;description="Atteindre le niveau 20";berry=3e5;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=20}}class Wr extends u{name="Commence par me parler poliment";id="be_level_30";rankId=l.RARE.id;description="Atteindre le niveau 30";berry=1e6;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=30}}class Qr extends u{name="On te respecte à la cantine";id="be_level_40";rankId=l.RARE.id;description="Atteindre le niveau 40";berry=3e6;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=40}}class Fr extends u{name="Ça commence à devenir sérieux";id="be_level_50";rankId=l.EPIC.id;description="Atteindre le niveau 50";berry=5e6;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=50}}class Hr extends u{name="Une chambre individuelle ? La chance !";id="be_level_60";rankId=l.EPIC.id;description="Atteindre le niveau 60";berry=1e7;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=60}}class jr extends u{name="Oulah, les responsabilités arrivent";id="be_level_70";rankId=l.LEGENDARY.id;description="Atteindre le niveau 70";berry=5e7;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=70}}class Br extends u{name="Faut pas t'emmerder toi";id="be_level_80";rankId=l.LEGENDARY.id;description="Atteindre le niveau 80";berry=5e7;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=80}}class Gr extends u{name="Là on parle !";id="be_level_90";rankId=l.MYTHIC.id;description="Atteindre le niveau 90";berry=1e8;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=90}}class $r extends u{name="*S'agenouille*";id="be_level_100";rankId=l.MYTHIC.id;description="Atteindre le niveau 100";berry=1e9;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{xp:i}=e??await r.userMetaService.get(a);return Q(i.amount)>=100}}const kf=Object.freeze(Object.defineProperty({__proto__:null,BeLevel10:Pr,BeLevel100:$r,BeLevel20:Yr,BeLevel30:Wr,BeLevel40:Qr,BeLevel50:Fr,BeLevel60:Hr,BeLevel70:jr,BeLevel80:Br,BeLevel90:Gr},Symbol.toStringTag,{value:"Module"}));class zr extends u{name="Merci <3";id="premium";rankId=l.MYTHIC.id;description="Faire un don (validation manuelle)";berry=1;xp=0;badge=S.premium;titleId="title_Mécène";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:e},a){const{premium:i}=e??await r.userMetaService.get(a);return!!i}}const Cf=Object.freeze(Object.defineProperty({__proto__:null,Premium:zr},Symbol.toStringTag,{value:"Module"}));class qr extends u{name="Explorateur novice";id="finish_10_raids";rankId=l.COMMON.id;description="Réussir 10 expéditions";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{raidFinishedCount:i}=e??await r.userStatsEconomyService.get(a);return i>=10}}class Kr extends u{name="Aventurier intrépide";id="finish_25_raids";rankId=l.RARE.id;description="Réussir 25 expéditions";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{raidFinishedCount:i}=e??await r.userStatsEconomyService.get(a);return i>=25}}class Jr extends u{name="Conquérant des terres";id="finish_50_raids";rankId=l.EPIC.id;description="Réussir 50 expéditions";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{raidFinishedCount:i}=e??await r.userStatsEconomyService.get(a);return i>=50}}class Zr extends u{name="Pionnier des secrets";id="finish_100_raids";rankId=l.LEGENDARY.id;description="Réussir 100 expéditions";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{raidFinishedCount:i}=e??await r.userStatsEconomyService.get(a);return i>=100}}class Xr extends u{name="Légende vivante";id="finish_200_raids";rankId=l.MYTHIC.id;description="Réussir 200 expéditions";berry=5e7;xp=25e4;titleId="title_Légende vivante";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{raidFinishedCount:i}=e??await r.userStatsEconomyService.get(a);return i>=200}}const vf=Object.freeze(Object.defineProperty({__proto__:null,Finish100Raids:Zr,Finish10Raids:qr,Finish200Raids:Xr,Finish25Raids:Kr,Finish50Raids:Jr},Symbol.toStringTag,{value:"Module"}));class eo extends u{name="Vif";id="random_message_20";rankId=l.COMMON.id;description="Récupérer 20 Messages aléatoires";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{randomMessageClaimed:i}=e??await r.userStatsEngagementService.get(a);return i>=20}}class to extends u{name="Lucky Luke";id="random_message_50";rankId=l.RARE.id;description="Récupérer 50 Messages aléatoires";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{randomMessageClaimed:i}=e??await r.userStatsEngagementService.get(a);return i>=50}}class ao extends u{name="Rapide";id="random_message_100";rankId=l.EPIC.id;description="Récupérer 100 Messages aléatoires";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{randomMessageClaimed:i}=e??await r.userStatsEngagementService.get(a);return i>=100}}class io extends u{name="Et Furieux";id="random_message_200";rankId=l.LEGENDARY.id;description="Récupérer 200 Messages aléatoires";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{randomMessageClaimed:i}=e??await r.userStatsEngagementService.get(a);return i>=200}}class no extends u{name="Ka-Chow";id="random_message_500";rankId=l.MYTHIC.id;description="Récupérer 500 Messages aléatoires";berry=5e7;xp=25e4;titleId="title_Flash Mc Queen";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{randomMessageClaimed:i}=e??await r.userStatsEngagementService.get(a);return i>=500}}const Of=Object.freeze(Object.defineProperty({__proto__:null,RandomMessage100Quest:ao,RandomMessage200Quest:io,RandomMessage20Quest:eo,RandomMessage500Quest:no,RandomMessage50Quest:to},Symbol.toStringTag,{value:"Module"}));class so extends u{name="Ne fais rien exploser hein ?";id="have_1_recipe";description="Avoir 1 recette";berry=5e4;xp=5e3;rankId=l.COMMON.id;badge=S.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:e},a){const{recipes:i}=e??await r.userInventoryService.get(a);return i.length>=1}}class ro extends u{name="C'est bien tu sais faire des pâtes !";id="have_5_recipe";rankId=l.RARE.id;description="Avoir 5 recettes";berry=2e5;xp=25e3;badge=S.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:e},a){const{recipes:i}=e??await r.userInventoryService.get(a);return i.length>=5}}class oo extends u{name="Ta grand-mère t'as donné son livre ?";id="have_10_recipe";rankId=l.EPIC.id;description="Avoir 10 recettes";berry=1e6;xp=5e4;badge=S.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:e},a){const{recipes:i}=e??await r.userInventoryService.get(a);return i.length>=10}}class lo extends u{name="Let him cook";id="have_25_recipe";rankId=l.LEGENDARY.id;description="Avoir 25 recettes";berry=1e6;xp=1e5;badge=S.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:e},a){const{recipes:i}=e??await r.userInventoryService.get(a);return i.length>=25}}class co extends u{name="Paul Bocuse";id="have_100_recipe";rankId=l.MYTHIC.id;description="Avoir 100 recettes";berry=5e7;xp=25e4;titleId="title_Paul Bocuse";badge=S.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:e},a){const{recipes:i}=e??await r.userInventoryService.get(a);return i.length>=100}}const xf=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:co,Have10Recipe:oo,Have1Recipe:so,Have25Recipe:lo,Have5Recipe:ro},Symbol.toStringTag,{value:"Module"}));class uo extends u{name="Collabo";id="collabo";rankId=l.COMMON.id;description="Report une personne au staff";berry=1e4;xp=5e3;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:e},a){const{reportedSomeone:i}=e??await r.userStatsFlagsService.get(a);return i}}const Lf=Object.freeze(Object.defineProperty({__proto__:null,Report:uo},Symbol.toStringTag,{value:"Module"}));class ho extends u{name="Bienvenue sur OPFR";id="send_100_msg";rankId=l.COMMON.id;description="Envoyer 100 messages";berry=1e4;xp=1e3;badge=S.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{messageSent:i}=e??await r.userStatsEngagementService.get(a);return i>=100}}class fo extends u{name="Une vraie pipelette";id="send_1000_msg";rankId=l.RARE.id;description="Envoyer 1 000 messages";berry=1e5;xp=1e4;badge=S.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{messageSent:i}=e??await r.userStatsEngagementService.get(a);return i>=1e3}}class _o extends u{name="Faites le taire ";id="send_25000_msg";rankId=l.EPIC.id;description="Envoyer 25 000 messages";berry=1e6;xp=5e4;badge=S.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{messageSent:i}=e??await r.userStatsEngagementService.get(a);return i>=25e3}}class po extends u{name="Tu sors de chez toi des fois ?";id="send_100000_msg";rankId=l.LEGENDARY.id;description="Envoyer 100 000 messages";berry=1e7;xp=1e5;badge=S.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{messageSent:i}=e??await r.userStatsEngagementService.get(a);return i>=1e5}}class mo extends u{name="J'ai pas les mots... mais toi si !";id="send_200000_msg";rankId=l.MYTHIC.id;description="Envoyer 200 000 messages";berry=1e8;xp=25e4;badge=S.ecrire;titleId="title_Spammeur";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{messageSent:i}=e??await r.userStatsEngagementService.get(a);return i>=2e5}}const Vf=Object.freeze(Object.defineProperty({__proto__:null,send100000Messages:po,send1000Messages:fo,send100Messages:ho,send200000Messages:mo,send25000Messages:_o},Symbol.toStringTag,{value:"Module"}));class Uf extends u{name="T'as reçu ton argent de poche ?";id="spend_shop_5m";rankId=l.COMMON.id;description="Dépenser 5 000 000 Berrys dans la boutique";berry=5e4;xp=5e3;badge=S.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{totalSpentInShop:i}=e??await r.userStatsEconomyService.get(a);return i>=5e6}}class Eo extends u{name="Tu t'es fait plaisir !";id="spend_shop_50m";rankId=l.RARE.id;description="Dépenser 50 000 000 Berrys dans la boutique";berry=2e5;xp=25e3;badge=S.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{totalSpentInShop:i}=e??await r.userStatsEconomyService.get(a);return i>=5e7}}class go extends u{name="C'était les soldes j'espère !";id="spend_shop_500m";rankId=l.EPIC.id;description="Dépenser 500 000 000 Berrys dans la boutique";berry=1e6;xp=5e4;badge=S.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{totalSpentInShop:i}=e??await r.userStatsEconomyService.get(a);return i>=5e8}}class So extends u{name="Paré pour la Fashion Week";id="spend_shop_5ml";rankId=l.LEGENDARY.id;description="Dépenser 5 000 000 000 Berrys dans la boutique";berry=5e6;xp=1e5;badge=S.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{totalSpentInShop:i}=e??await r.userStatsEconomyService.get(a);return i>=5e9}}class yo extends u{name="Fashion Viktim";id="spend_shop_50ml";rankId=l.MYTHIC.id;description="Dépenser 50 000 000 000 Berrys dans la boutique";berry=5e7;xp=25e4;badge=S.mode;titleId="title_Fashion Viktim";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{totalSpentInShop:i}=e??await r.userStatsEconomyService.get(a);return i>=5e10}}const Pf=Object.freeze(Object.defineProperty({__proto__:null,SpendShop500M:go,SpendShop50M:Eo,SpendShop50Ml:yo,SpendShop5Ml:So,default:Uf},Symbol.toStringTag,{value:"Module"}));class Mo extends u{name="On commence à se connaître";id="voice_10_hours";rankId=l.COMMON.id;description="Se connecter 10h en vocal";berry=5e4;xp=5e3;badge=S.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{totalMinutesInVoice:i}=e??await r.userStatsEngagementService.get(a);return i>=600}}class To extends u{name="Je sais tout de toi";id="voice_25_hours";rankId=l.RARE.id;description="Se connecter 25h en vocal";berry=2e5;xp=25e3;badge=S.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{totalMinutesInVoice:i}=e??await r.userStatsEngagementService.get(a);return i>=1500}}class wo extends u{name="T'as pas soif ?";id="voice_250_hours";rankId=l.EPIC.id;description="Se connecter 250h en vocal";berry=1e6;xp=5e4;badge=S.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{totalMinutesInVoice:i}=e??await r.userStatsEngagementService.get(a);return i>=15e3}}class bo extends u{name="Ok Socrate";id="voice_2500_hours";rankId=l.LEGENDARY.id;description="Se connecter 2500h en vocal";berry=1e7;xp=1e5;badge=S.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{totalMinutesInVoice:i}=e??await r.userStatsEngagementService.get(a);return i>=60*2500}}class Ao extends u{name="Elle ressemble à quoi la lumière du soleil ?";id="voice_5000_hours";rankId=l.MYTHIC.id;description="Se connecter 5000h en vocal";berry=5e7;xp=25e4;titleId="title_Ermite";badge=S.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{totalMinutesInVoice:i}=e??await r.userStatsEngagementService.get(a);return i>=60*5e3}}const Yf=Object.freeze(Object.defineProperty({__proto__:null,Voice10Hours:Mo,Voice2500Hours:bo,Voice250Hours:wo,Voice25Hours:To,Voice5000Hours:Ao},Symbol.toStringTag,{value:"Module"}));class Ro extends u{name="PTDR t ki ?";id="have_10_title";rankId=l.EPIC.id;description="Avoir 10 titres différents";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:e},a){const{unlockedTitles:i}=e??await r.userOrnamentService.get(a);return i.length>=10}}class Do extends u{name="Mon nom est Personne";id="have_50_title";rankId=l.LEGENDARY.id;description="Avoir 50 titres différents";berry=5e6;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:e},a){const{unlockedTitles:i}=e??await r.userOrnamentService.get(a);return i.length>=50}}class No extends u{name="Daenerys Targaryen";id="have_100_title";rankId=l.MYTHIC.id;description="Avoir 100 titres différents";berry=5e7;xp=25e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:e},a){const{unlockedTitles:i}=e??await r.userOrnamentService.get(a);return i.length>=100}}const Wf=Object.freeze(Object.defineProperty({__proto__:null,Have100Title:No,Have10Title:Ro,Have50Title:Do},Symbol.toStringTag,{value:"Module"}));class Io extends u{name="L'Insistant";id="insistent";rankId=l.COMMON.id;description="Être repêché et atteindre les huitièmes de finale";berry=1e6;xp=0;repeatable=!0;async isValidated(){return!1}}class ko extends u{name="Résurrection";id="resurrection";rankId=l.RARE.id;description="Être repêché et atteindre les quarts de finale";berry=3e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Co extends u{name="Renaissance";id="rebirth";rankId=l.EPIC.id;description="Être repêché et atteindre au moins les demi-finales";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}class vo extends u{name="Phoenix";id="phoenix";rankId=l.LEGENDARY.id;description="Être repêché et aller en finale";berry=2e7;xp=0;repeatable=!0;async isValidated(){return!1}}class Oo extends u{name="L'Immortel";id="immortal";rankId=l.MYTHIC.id;description="Être repêché et remporter le tournoi";berry=4e7;xp=0;repeatable=!0;async isValidated(){return!1}}class xo extends u{name="Branche Maudite";id="cursed_branch";rankId=l.RARE.id;description="Perdre le tournoi en top 32";berry=25e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Lo extends u{name="Top 64";id="tournament_top64";rankId=l.COMMON.id;description="Perdre le tournoi en top 64";berry=15e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Vo extends u{name="Zero Pointé";id="zeroscored";rankId=l.COMMON.id;description="Se faire éliminer directement avec tous ses choix dès le premier duel";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}class Uo extends u{name="Chasseur de Géants";id="gianthunter";rankId=l.MYTHIC.id;description="Battre les 3 tap-in du tournoi avec tes choix";berry=1e8;xp=0;items={chest_2:5};repeatable=!0;async isValidated(){return!1}}class Po extends u{name="Sabotage";id="sabotage";rankId=l.EPIC.id;description="Empêcher un choix de tap-in d'atteindre le top 32";berry=3e7;xp=0;repeatable=!0;async isValidated(){return!1}}class Yo extends u{name="Victoire par K.O";id="victory_by_ko";rankId=l.COMMON.id;description="Gagner un duel avec plus de 75% des votes";berry=5e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Wo extends u{name="Le Sniper";id="tournament_sniper";rankId=l.RARE.id;description="Gagner un duel avec plus de 80% des votes";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}class Qo extends u{name="Massacre";id="massacre";rankId=l.EPIC.id;description="Gagner un duel avec plus de 90% des votes";berry=25e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Fo extends u{name="Annihilation";id="annihilation";rankId=l.MYTHIC.id;description="Gagner un duel avec 100% des votes (aucun vote pour l'adversaire)";berry=1e8;xp=0;items={chest_1:5};repeatable=!0;async isValidated(){return!1}}class Ho extends u{name="Troll Suprême";id="trollSupreme";rankId=l.MYTHIC.id;description="Prendre un choix totalement troll et improbable, puis gagner le tournoi avec !";berry=1e8;xp=0;items={chest_3:1};repeatable=!0;async isValidated(){return!1}}class jo extends u{name="Champion";id="champion";rankId=l.RARE.id;description="Remporter un tournoi";berry=0;xp=0;items={chest_2:5};repeatable=!0;async isValidated(){return!1}}class Bo extends u{name="Le Maître";id="master";rankId=l.RARE.id;description="Remporter un tournoi avec trois choix différents dans le top 16";berry=0;xp=0;items={chest_3:1};repeatable=!0;async isValidated(){return!1}}class Go extends u{name="L'Inarrétable";id="unstoppable";rankId=l.EPIC.id;description="Remporter un tournoi avec une finale écrasante";berry=0;xp=0;items={chest_1:5,chest_2:3};repeatable=!0;async isValidated(){return!1}}class $o extends u{name="L'Etoile Filante";id="shootingstar";rankId=l.LEGENDARY.id;description="Passer du statut d'outsider à finaliste";berry=5e7;xp=0;repeatable=!0;async isValidated(){return!1}}class zo extends u{name="EZ";id="ez";rankId=l.EPIC.id;description="Débloquer tous les succès Victoire sans difficulté";berry=0;xp=0;items={chest_3:1};repeatable=!0;async isValidated(){return!1}}class qo extends u{name="Participation";id="participation";rankId=l.COMMON.id;description="Participer au tournoi avec 1, 2, 3 et 4 choix";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}const Qf=Object.freeze(Object.defineProperty({__proto__:null,Annihilation:Fo,Champion:jo,CursedBranch:xo,EZ:zo,GiantHunter:Uo,Immortal:Oo,Insistent:Io,Massacre:Qo,Master:Bo,Participation:qo,Phoenix:vo,Rebirth:Co,Resurrection:ko,Sabotage:Po,ShootingStar:$o,Sniper:Wo,TournamentTop64:Lo,TrollSupreme:Ho,Unstoppable:Go,VictoryByKO:Yo,ZeroScored:Vo},Symbol.toStringTag,{value:"Module"}));class Ko extends u{name="Egoïste...";id="user_crew_10_percent";rankId=l.LEGENDARY.id;description="Être à 10% d'XP pour l'équipage pendant 3 mois";berry=1e6;xp=1e5;secret=!0;titleId="title_Egoïste";badge=S.selfish;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CREW];async isValidated({userStatsCrew:e},a){const{timeCrewBeyond10PercentXp:i}=e??await r.userStatsCrewService.get(a);return i>=90}}class Jo extends u{name="Merci bien camarade !";id="user_crew_90_percent";rankId=l.LEGENDARY.id;description="Être à 90% d'XP pour l'équipage pendant 3 mois";berry=1e6;xp=1e5;secret=!0;titleId="title_Camarade";badge=S.camarade;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CREW];async isValidated({userStatsCrew:e},a){const{timeCrewAbove90PercentXp:i}=e??await r.userStatsCrewService.get(a);return i>=90}}const Ff=Object.freeze(Object.defineProperty({__proto__:null,UserCrew10Percent:Ko,UserCrew90Percent:Jo},Symbol.toStringTag,{value:"Module"}));class Zo extends u{name="C'est sympa pour eux !";id="crew_bring_50k_xp";rankId=l.COMMON.id;description="Rapporter 50 000 XP à l'équipage";berry=5e4;xp=5e3;badge=S.broship;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CREW];async isValidated({userStatsCrew:e},a){const{xpGivenToCrew:i}=e??await r.userStatsCrewService.get(a);return i>=5e4}}class Xo extends u{name="On voit que tu aimes ton équipage";id="crew_bring_500k_xp";rankId=l.RARE.id;description="Rapporter 500 000 XP à l'équipage";berry=2e5;xp=25e3;badge=S.broship;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CREW];async isValidated({userStatsCrew:e},a){const{xpGivenToCrew:i}=e??await r.userStatsCrewService.get(a);return i>=5e5}}class ed extends u{name="Le méritent-ils vraiment ?";id="crew_bring_1m_xp";rankId=l.EPIC.id;description="Rapporter 1 000 000 XP à l'équipage";berry=1e6;xp=5e4;badge=S.broship;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CREW];async isValidated({userStatsCrew:e},a){const{xpGivenToCrew:i}=e??await r.userStatsCrewService.get(a);return i>=1e6}}class td extends u{name="J'espère que t'as eu une prime";id="crew_bring_5m_xp";rankId=l.LEGENDARY.id;description="Rapporter 5 000 000 XP à l'équipage";berry=1e7;xp=1e5;badge=S.broship;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CREW];async isValidated({userStatsCrew:e},a){const{xpGivenToCrew:i}=e??await r.userStatsCrewService.get(a);return i>=5e6}}class ad extends u{name="Qu'on lui fasse une statue de Bronze !";id="crew_bring_50m_xp";rankId=l.MYTHIC.id;description="Rapporter 50 000 000 XP à l'équipage";berry=5e7;xp=25e4;titleId="title_Team Player";badge=S.broship;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CREW];async isValidated({userStatsCrew:e},a){const{xpGivenToCrew:i}=e??await r.userStatsCrewService.get(a);return i>=5e7}}const Hf=Object.freeze(Object.defineProperty({__proto__:null,UserBring1mXpToCrew:ed,UserBring500kXpToCrew:Xo,UserBring50kXpToCrew:Zo,UserBring50mXpToCrew:ad,UserBring5mXpToCrew:td},Symbol.toStringTag,{value:"Module"}));class id extends u{name="Stagiaire";id="work_100";rankId=l.COMMON.id;description="Travailler 100 fois";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{workCount:i}=e??await r.userStatsEconomyService.get(a);return i>=100}}class nd extends u{name="Alternant";id="work_300";rankId=l.RARE.id;description="Travailler 300 fois";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{workCount:i}=e??await r.userStatsEconomyService.get(a);return i>=300}}class sd extends u{name="Smicard";id="work_1000";rankId=l.EPIC.id;description="Travailler 1000 fois";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{workCount:i}=e??await r.userStatsEconomyService.get(a);return i>=1e3}}class rd extends u{name="Communiste";id="work_2000";rankId=l.LEGENDARY.id;description="Travailler 2000 fois";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{workCount:i}=e??await r.userStatsEconomyService.get(a);return i>=2e3}}class od extends u{name="Esclave";id="work_5000";rankId=l.MYTHIC.id;description="Travailler 5000 fois";berry=5e7;xp=25e4;titleId="title_Esclave";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:e},a){const{workCount:i}=e??await r.userStatsEconomyService.get(a);return i>=5e3}}const jf=Object.freeze(Object.defineProperty({__proto__:null,Work1000Quest:sd,Work100Quest:id,Work2000Quest:rd,Work300Quest:nd,Work5000Quest:od},Symbol.toStringTag,{value:"Module"}));class dd extends u{name="Timide";id="write_10_chats";rankId=l.COMMON.id;description="Écrire dans 10 chats différents";berry=1e4;xp=1e3;badge=S.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{writeDifferentChatIds:i}=e??await r.userStatsEngagementService.get(a);return i.length>=10}}class ld extends u{name="Curieux";id="write_20_chats";rankId=l.RARE.id;description="Écrire dans 20 chats différents";berry=1e5;xp=1e4;badge=S.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{writeDifferentChatIds:i}=e??await r.userStatsEngagementService.get(a);return i.length>=20}}class cd extends u{name="Voyeur";id="write_50_chats";rankId=l.EPIC.id;description="Écrire dans 50 chats différents";berry=5e5;xp=5e4;badge=S.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{writeDifferentChatIds:i}=e??await r.userStatsEngagementService.get(a);return i.length>=50}}class ud extends u{name="Philanthrope";id="write_100_chats";rankId=l.LEGENDARY.id;description="Écrire dans 100 chats différents";berry=1e6;xp=1e5;badge=S.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{writeDifferentChatIds:i}=e??await r.userStatsEngagementService.get(a);return i.length>=100}}class hd extends u{name="Explorateur";id="write_200_chats";rankId=l.MYTHIC.id;description="Écrire dans 200 chats différents";berry=1e7;xp=25e4;titleId="title_Explorateur";badge=S.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:e},a){const{writeDifferentChatIds:i}=e??await r.userStatsEngagementService.get(a);return i.length>=200}}const Bf=Object.freeze(Object.defineProperty({__proto__:null,Write100Chats:ud,Write10Chats:dd,Write200Chats:hd,Write20Chats:ld,Write50Chats:cd},Symbol.toStringTag,{value:"Module"})),nt=[...Object.values(lf),...Object.values(cf),...Object.values(uf),...Object.values(hf),...Object.values(ff),...Object.values(_f),...Object.values(pf),...Object.values(mf),...Object.values(Ef),...Object.values(gf),...Object.values(Sf),...Object.values(yf),...Object.values(Mf),...Object.values(Tf),...Object.values(wf),...Object.values(bf),...Object.values(Af),...Object.values(Rf),...Object.values(Df),...Object.values(Nf),...Object.values(If),...Object.values(kf),...Object.values(Cf),...Object.values(vf),...Object.values(Of),...Object.values(xf),...Object.values(Lf),...Object.values(Vf),...Object.values(Pf),...Object.values(Yf),...Object.values(Wf),...Object.values(Qf),...Object.values(Ff),...Object.values(df),...Object.values(Hf),...Object.values(jf),...Object.values(Bf)],st=nt.map(t=>new t().id);if(st.length!==[...new Set(st)].length)throw Error(`All quest ids MUST be unique. Duplicated ids detected : ${$h(st,[...new Set(st)])}`);const fd=async t=>(await r.userQuestService.getMany({user:t,questId:/be_level_/,status:Wt.COMPLETED})).length,_d=async(t,e)=>{const a=await fd(t);return(await r.ornamentService.getAllFactionTitles()).find(n=>n.strength===a&&n.faction===e)},Gf=(t,e)=>{const a=t.badge,i=t.isFactionBadge;return a?Da(a)?a.emojis[a.isProgressive.findIndex(n=>n===t.rankId)]:a.emojis:i?Gh.factions[`b_${e}_${t.rankId}`]:""},$f=t=>{const[e,a]=t.split("_"),i=Object.values(S).find(n=>n.id===e);if(i)return Da(i)?i.emojis[i.isProgressive.findIndex(n=>n===a)]:i.emojis},zf=t=>{for(const e of nt){const a=new e;if(a.id===t)return a}return null},pd=t=>nt.filter(e=>{let a=!0;return"crewDependencies"in e&&(a=e.crewDependencies.includes(t)),a&&e.dependencies.includes(t)}),md=t=>nt.filter(e=>"crewDependencies"in e?e.crewDependencies.includes(t):!1),qf=async(t,e,a,{berry:i,xp:n})=>{const s=await r.userService.getByObjectId(e),o=await r.userQuestService.getStreakMultiplier(e,t.id),c=await _d(e,s.faction),{badge:h,isFactionBadge:f,rankId:p,name:g,description:_,daily:w,secret:N,titleId:W}=t,x=await r.ornamentService.get(W??"");return a.Image().setImageName(`quest_success_${p}`).setDimensions(2080,636).draw(),h?a.Image().setImageName(Da(h)?`cropped_badge_${h.img}_${p}`:`cropped_badge_${h.img}`).setOrigin(be.CENTER).setScale(2).setPosition(370,318).draw():f&&s.faction!=="citizen"?a.Image().setImageName(`cropped_badge_${s.faction}_${p}`).setOrigin(be.CENTER).setScale(2).setPosition(370,318).draw():a.Image().setImageName(`badge_default_${p}`).setScale(2).setOrigin(be.CENTER).setPosition(370,318).draw(),a.Text(w?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(l[p].color).draw(),a.Text(g).setPosition(739,325).setOrigin(be.BOTTOM_LEFT).setFont("poppins",g.length>=35?65-(g.length-35):65).draw(),a.Text(N?"Succès caché":_).setPosition(739,360).setFont("poppins_italic",35).draw(),a.Text(`Récompenses: ${Yt(i)}${w&&o>1?` (+${Yt(i*(o-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(be.LEFT).draw(i!==0).next((v,I)=>ue(v.Image(),I)).setImageName("quest_berry").setDimensions(50,79).draw(i!==0).next((v,I)=>ue(v.Text(` / ${Yt(n)}${w&&o>1?` (+${Yt(n*(o-1))})`:""} `),I)).draw(n!==0).next((v,I)=>ue(v.Image(),I)).setImageName("quest_xp").setDimensions(57,59).draw(n!==0).next((v,I)=>ue(v.Text(` combo x${o}`),I)).draw(w&&o>1).next((v,I)=>ue(v.Text(" et la possibilité "),I)).draw(f&&s.faction==="citizen").next((v,I)=>ue(v.Text("de choisir ta faction"),I)).setFont("poppins_bold",35).draw(f&&s.faction==="citizen").next((v,I)=>ue(v.Text(" et le titre "),I)).setFont("poppins",35).draw(!!W||f&&s.faction!=="citizen").next((v,I)=>ue(v.Text(x?.name??""),I)).setFont("poppins_bold",35).setColor((x?.rankId&&l[x.rankId].color)??"white").draw(!!x).next((v,I)=>ue(v.Text(c?.name??""),I)).setColor((c?.rankId&&l[c.rankId].color)??"white").draw(f&&!!c),await a.encode("webp")},Kf=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"];d.ALL_QUESTS=nt,d.ALL_QUEST_IDS=st,d.Almanax=nn,d.Annihilation=Fo,d.BeLevel10=Pr,d.BeLevel100=$r,d.BeLevel20=Yr,d.BeLevel30=Wr,d.BeLevel40=Qr,d.BeLevel50=Fr,d.BeLevel60=Hr,d.BeLevel70=jr,d.BeLevel80=Br,d.BeLevel90=Gr,d.Bet10M=Ln,d.Bet666=br,d.BetMinValue=On,d.Birthday=Wn,d.BotPing=Qn,d.Champion=jo,d.ChestOpen1000Quest=Lr,d.ChestOpen150Quest=Or,d.ChestOpen2000Quest=Vr,d.ChestOpen500Quest=xr,d.ChestOpen50Quest=vr,d.Craft1000Times=Ts,d.Craft100CookedMeals=As,d.Craft100Scrolls=vs,d.Craft10CookedMeals=ws,d.Craft10Scrolls=Is,d.Craft200Times=ys,d.Craft20Scrolls=ks,d.Craft20Times=gs,d.Craft250CookedMeals=Rs,d.Craft500CookedMeals=Ds,d.Craft500Times=Ms,d.Craft50CookedMeals=bs,d.Craft50Scrolls=Cs,d.Craft50Times=Ss,d.Craft5Scrolls=Ns,d.CrewAllMembersDaily=Ys,d.CrewBeLevel10=Qs,d.CrewBeLevel100=Bs,d.CrewBeLevel25=Fs,d.CrewBeLevel50=Hs,d.CrewBeLevel75=js,d.CrewBreakShip=Ws,d.CrewCarpenter1Month=xs,d.CrewCarpenter1Week=Os,d.CrewCarpenter1Year=Us,d.CrewCarpenter3Months=Ls,d.CrewCarpenter6Months=Vs,d.CrewCreateOrJoin=Ur,d.CrewHave100MBerry=Gs,d.CrewHave1MdBerry=zs,d.CrewHave500MBerry=$s,d.CrewHave50MdBerry=Ks,d.CrewHave5MdBerry=qs,d.CrewSize10=Xs,d.CrewSize12=er,d.CrewSize15=tr,d.CrewSize5=Js,d.CrewSize7=Zs,d.CrewValidateDaily=Ps,d.CrewVocal10=nr,d.CrewVocal12=sr,d.CrewVocal15=rr,d.CrewVocal5=ar,d.CrewVocal7=ir,d.CursedBranch=xo,d.DailyAll=it,d.DailyAnswer=xa,d.DailyCheckProfile=La,d.DailyReadEdito=Oa,d.DailySendMessage=va,d.DailyVocal=Va,d.DoubleSix=_r,d.Draw1000Quest=lr,d.Draw100Quest=or,d.Draw2000Quest=cr,d.Draw300Quest=dr,d.Draw5000Quest=ur,d.DrawDoubleSix=pr,d.Drink1000Alcohols=dn,d.Drink1000Beer=Sn,d.Drink1000Quest=Ir,d.Drink1000Rhum=_n,d.Drink1000Wine=bn,d.Drink100Beer=mn,d.Drink100Rhum=un,d.Drink100Today=Rr,d.Drink100Wine=Mn,d.Drink10Beer=pn,d.Drink10Rhum=cn,d.Drink10Wine=yn,d.Drink2000Alcohols=ln,d.Drink2000Quest=kr,d.Drink200Quest=Dr,d.Drink250Alcohols=rn,d.Drink250Beer=En,d.Drink250Rhum=hn,d.Drink250Wine=Tn,d.Drink5000Quest=Cr,d.Drink500Alcohols=on,d.Drink500Beer=gn,d.Drink500Quest=Nr,d.Drink500Rhum=fn,d.Drink500Wine=wn,d.Drink50Alcohols=sn,d.EZ=zo,d.Edito=hr,d.Everyone=fr,d.Finish100Raids=Zr,d.Finish10Raids=qr,d.Finish200Raids=Xr,d.Finish25Raids=Kr,d.Finish50Raids=Jr,d.GiantHunter=Uo,d.GuessInOne=wr,d.Have100Agility=qn,d.Have100Chance=ss,d.Have100Intelligence=es,d.Have100Recipe=co,d.Have100Strength=jn,d.Have100Title=No,d.Have100Vitality=cs,d.Have100Wisdom=ps,d.Have10Recipe=oo,d.Have10Title=Ro,d.Have1Background=An,d.Have1Recipe=so,d.Have250Agility=Kn,d.Have250Chance=rs,d.Have250Intelligence=ts,d.Have250Strength=Bn,d.Have250Vitality=us,d.Have250Wisdom=ms,d.Have25Agility=$n,d.Have25Background=Rn,d.Have25Chance=is,d.Have25Intelligence=Zn,d.Have25Recipe=lo,d.Have25Strength=Fn,d.Have25Vitality=ds,d.Have25Wisdom=fs,d.Have500Agility=Jn,d.Have500Chance=os,d.Have500Intelligence=as,d.Have500Strength=Gn,d.Have500Vitality=hs,d.Have500Wisdom=Es,d.Have500kBerry=Nn,d.Have500mBerry=Cn,d.Have50Agility=zn,d.Have50Background=Dn,d.Have50Chance=ns,d.Have50Intelligence=Xn,d.Have50Strength=Hn,d.Have50Title=Do,d.Have50Vitality=ls,d.Have50Wisdom=_s,d.Have50mBerry=kn,d.Have5Recipe=ro,d.Have5mBerry=In,d.Have5mdBerry=vn,d.Immortal=Oo,d.Insistent=Io,d.Lose10M=Yn,d.LoseAll5GamesInRow=gr,d.LoseEverything=xn,d.Massacre=Qo,d.Master=Bo,d.Paper100=yr,d.Participation=qo,d.Phoenix=vo,d.Premium=zr,d.QUEST_ASSET_IMAGES=Kf,d.RandomMessage100Quest=ao,d.RandomMessage200Quest=io,d.RandomMessage20Quest=eo,d.RandomMessage500Quest=no,d.RandomMessage50Quest=to,d.Rebirth=Co,d.Report=uo,d.Resurrection=ko,d.Rock100=Tr,d.Sabotage=Po,d.Scissor100=Mr,d.SevenQuitteOuDouble=mr,d.ShootingStar=$o,d.Sniper=Wo,d.SpendShop500M=go,d.SpendShop50M=Eo,d.SpendShop50Ml=yo,d.SpendShop5Ml=So,d.TenBlackJack=Sr,d.TotalBet10M=Un,d.TotalBet1Md=Pn,d.TournamentTop64=Lo,d.TrollSupreme=Ho,d.Unstoppable=Go,d.UserBring1mXpToCrew=ed,d.UserBring500kXpToCrew=Xo,d.UserBring50kXpToCrew=Zo,d.UserBring50mXpToCrew=ad,d.UserBring5mXpToCrew=td,d.UserCrew10Percent=Ko,d.UserCrew90Percent=Jo,d.VictoryByKO=Yo,d.Voice10Hours=Mo,d.Voice2500Hours=bo,d.Voice250Hours=wo,d.Voice25Hours=To,d.Voice5000Hours=Ao,d.WinAll5GamesInRow=Er,d.WinLose10=Ar,d.WinOn10MBet=Vn,d.Work1000Quest=sd,d.Work100Quest=id,d.Work2000Quest=rd,d.Work300Quest=nd,d.Work5000Quest=od,d.Write100Chats=ud,d.Write10Chats=dd,d.Write200Chats=hd,d.Write20Chats=ld,d.Write50Chats=cd,d.ZeroScored=Vo,d.emitQuestCompleteEvent=Ca,d.getBadgeEmojisFromId=$f,d.getFactionTitle=_d,d.getFactionTitleStrength=fd,d.getQuestBadgeEmojis=Gf,d.getQuestById=zf,d.getQuestsByCrewDependency=md,d.getQuestsByDependency=pd,d.onQuestCompleteEvent=of,d.questCanvas=qf,d.send100000Messages=po,d.send1000Messages=fo,d.send100Messages=ho,d.send200000Messages=mo,d.send25000Messages=_o,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})}));
4
+ `+new Error().stack),a=!1}return t.apply(this,arguments)},t)}var Ua={};function Ya(e,t){S.deprecationHandler!=null&&S.deprecationHandler(e,t),Ua[e]||(Va(t),Ua[e]=!0)}S.suppressDeprecationWarnings=!1,S.deprecationHandler=null;function re(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Lo(e){var t,a;for(a in e)v(e,a)&&(t=e[a],re(t)?this[a]=t:this["_"+a]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Qt(e,t){var a=ye({},e),i;for(i in t)v(t,i)&&(Ae(e[i])&&Ae(t[i])?(a[i]={},ye(a[i],e[i]),ye(a[i],t[i])):t[i]!=null?a[i]=t[i]:delete a[i]);for(i in e)v(e,i)&&!v(t,i)&&Ae(e[i])&&(a[i]=ye({},a[i]));return a}function Bt(e){e!=null&&this.set(e)}var Gt;Object.keys?Gt=Object.keys:Gt=function(e){var t,a=[];for(t in e)v(e,t)&&a.push(t);return a};var Vo={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Uo(e,t,a){var i=this._calendar[e]||this._calendar.sameElse;return re(i)?i.call(t,a):i}function oe(e,t,a){var i=""+Math.abs(e),s=t-i.length,n=e>=0;return(n?a?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+i}var $t=/(\[[^\[]*\])|(\\)?([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,lt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zt={},we={};function M(e,t,a,i){var s=i;typeof i=="string"&&(s=function(){return this[i]()}),e&&(we[e]=s),t&&(we[t[0]]=function(){return oe(s.apply(this,arguments),t[1],t[2])}),a&&(we[a]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function Yo(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Po(e){var t=e.match($t),a,i;for(a=0,i=t.length;a<i;a++)we[t[a]]?t[a]=we[t[a]]:t[a]=Yo(t[a]);return function(s){var n="",o;for(o=0;o<i;o++)n+=re(t[o])?t[o].call(s,e):t[o];return n}}function ut(e,t){return e.isValid()?(t=Pa(t,e.localeData()),zt[t]=zt[t]||Po(t),zt[t](e)):e.localeData().invalidDate()}function Pa(e,t){var a=5;function i(s){return t.longDateFormat(s)||s}for(lt.lastIndex=0;a>=0&&lt.test(e);)e=e.replace(lt,i),lt.lastIndex=0,a-=1;return e}var Wo={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 Ho(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match($t).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var Fo="Invalid date";function jo(){return this._invalidDate}var Qo="%d",Bo=/\d{1,2}/;function Go(e){return this._ordinal.replace("%d",e)}var $o={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 zo(e,t,a,i){var s=this._relativeTime[a];return re(s)?s(e,t,a,i):s.replace(/%d/i,e)}function qo(e,t){var a=this._relativeTime[e>0?"future":"past"];return re(a)?a(t):a.replace(/%s/i,t)}var Wa={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 Z(e){return typeof e=="string"?Wa[e]||Wa[e.toLowerCase()]:void 0}function qt(e){var t={},a,i;for(i in e)v(e,i)&&(a=Z(i),a&&(t[a]=e[i]));return t}var Ko={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 Jo(e){var t=[],a;for(a in e)v(e,a)&&t.push({unit:a,priority:Ko[a]});return t.sort(function(i,s){return i.priority-s.priority}),t}var Ha=/\d/,z=/\d\d/,Fa=/\d{3}/,Kt=/\d{4}/,ct=/[+-]?\d{6}/,V=/\d\d?/,ja=/\d\d\d\d?/,Qa=/\d\d\d\d\d\d?/,ht=/\d{1,3}/,Jt=/\d{1,4}/,ft=/[+-]?\d{1,6}/,ve=/\d+/,mt=/[+-]?\d+/,Zo=/Z|[+-]\d\d:?\d\d/gi,_t=/Z|[+-]\d\d(?::?\d\d)?/gi,Xo=/[+-]?\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,ke=/^[1-9]\d?/,Zt=/^([1-9]\d|\d)/,pt;pt={};function y(e,t,a){pt[e]=re(t)?t:function(i,s){return i&&a?a:t}}function ed(e,t){return v(pt,e)?pt[e](t._strict,t._locale):new RegExp(td(e))}function td(e){return he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,a,i,s,n){return a||i||s||n}))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function X(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function D(e){var t=+e,a=0;return t!==0&&isFinite(t)&&(a=X(t)),a}var Xt={};function L(e,t){var a,i=t,s;for(typeof e=="string"&&(e=[e]),ce(t)&&(i=function(n,o){o[t]=D(n)}),s=e.length,a=0;a<s;a++)Xt[e[a]]=i}function Qe(e,t){L(e,function(a,i,s,n){s._w=s._w||{},t(a,s._w,s,n)})}function ad(e,t,a){t!=null&&v(Xt,e)&&Xt[e](t,a._a,a,e)}function gt(e){return e%4===0&&e%100!==0||e%400===0}var Q=0,fe=1,de=2,j=3,ae=4,me=5,Re=6,id=7,sd=8;M("Y",0,0,function(){var e=this.year();return e<=9999?oe(e,4):"+"+e}),M(0,["YY",2],0,function(){return this.year()%100}),M(0,["YYYY",4],0,"year"),M(0,["YYYYY",5],0,"year"),M(0,["YYYYYY",6,!0],0,"year"),y("Y",mt),y("YY",V,z),y("YYYY",Jt,Kt),y("YYYYY",ft,ct),y("YYYYYY",ft,ct),L(["YYYYY","YYYYYY"],Q),L("YYYY",function(e,t){t[Q]=e.length===2?S.parseTwoDigitYear(e):D(e)}),L("YY",function(e,t){t[Q]=S.parseTwoDigitYear(e)}),L("Y",function(e,t){t[Q]=parseInt(e,10)});function Be(e){return gt(e)?366:365}S.parseTwoDigitYear=function(e){return D(e)+(D(e)>68?1900:2e3)};var Ba=Oe("FullYear",!0);function nd(){return gt(this.year())}function Oe(e,t){return function(a){return a!=null?(Ga(this,e,a),S.updateOffset(this,t),this):Ge(this,e)}}function Ge(e,t){if(!e.isValid())return NaN;var a=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?a.getUTCMilliseconds():a.getMilliseconds();case"Seconds":return i?a.getUTCSeconds():a.getSeconds();case"Minutes":return i?a.getUTCMinutes():a.getMinutes();case"Hours":return i?a.getUTCHours():a.getHours();case"Date":return i?a.getUTCDate():a.getDate();case"Day":return i?a.getUTCDay():a.getDay();case"Month":return i?a.getUTCMonth():a.getMonth();case"FullYear":return i?a.getUTCFullYear():a.getFullYear();default:return NaN}}function Ga(e,t,a){var i,s,n,o,l;if(!(!e.isValid()||isNaN(a))){switch(i=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?i.setUTCMilliseconds(a):i.setMilliseconds(a));case"Seconds":return void(s?i.setUTCSeconds(a):i.setSeconds(a));case"Minutes":return void(s?i.setUTCMinutes(a):i.setMinutes(a));case"Hours":return void(s?i.setUTCHours(a):i.setHours(a));case"Date":return void(s?i.setUTCDate(a):i.setDate(a));case"FullYear":break;default:return}n=a,o=e.month(),l=e.date(),l=l===29&&o===1&&!gt(n)?28:l,s?i.setUTCFullYear(n,o,l):i.setFullYear(n,o,l)}}function rd(e){return e=Z(e),re(this[e])?this[e]():this}function od(e,t){if(typeof e=="object"){e=qt(e);var a=Jo(e),i,s=a.length;for(i=0;i<s;i++)this[a[i].unit](e[a[i].unit])}else if(e=Z(e),re(this[e]))return this[e](t);return this}function dd(e,t){return(e%t+t)%t}var H;Array.prototype.indexOf?H=Array.prototype.indexOf:H=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ea(e,t){if(isNaN(e)||isNaN(t))return NaN;var a=dd(t,12);return e+=(t-a)/12,a===1?gt(e)?29:28:31-a%7%2}M("M",["MM",2],"Mo",function(){return this.month()+1}),M("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),M("MMMM",0,0,function(e){return this.localeData().months(this,e)}),y("M",V,ke),y("MM",V,z),y("MMM",function(e,t){return t.monthsShortRegex(e)}),y("MMMM",function(e,t){return t.monthsRegex(e)}),L(["M","MM"],function(e,t){t[fe]=D(e)-1}),L(["MMM","MMMM"],function(e,t,a,i){var s=a._locale.monthsParse(e,i,a._strict);s!=null?t[fe]=s:R(a).invalidMonth=e});var ld="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),$a="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),za=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ud=je,cd=je;function hd(e,t){return e?ee(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||za).test(t)?"format":"standalone"][e.month()]:ee(this._months)?this._months:this._months.standalone}function fd(e,t){return e?ee(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[za.test(t)?"format":"standalone"][e.month()]:ee(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function md(e,t,a){var i,s,n,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)n=ne([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(n,"").toLocaleLowerCase();return a?t==="MMM"?(s=H.call(this._shortMonthsParse,o),s!==-1?s:null):(s=H.call(this._longMonthsParse,o),s!==-1?s:null):t==="MMM"?(s=H.call(this._shortMonthsParse,o),s!==-1?s:(s=H.call(this._longMonthsParse,o),s!==-1?s:null)):(s=H.call(this._longMonthsParse,o),s!==-1?s:(s=H.call(this._shortMonthsParse,o),s!==-1?s:null))}function _d(e,t,a){var i,s,n;if(this._monthsParseExact)return md.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(s=ne([2e3,i]),a&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!a&&!this._monthsParse[i]&&(n="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(n.replace(".",""),"i")),a&&t==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(a&&t==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!a&&this._monthsParse[i].test(e))return i}}function qa(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=D(t);else if(t=e.localeData().monthsParse(t),!ce(t))return e}var a=t,i=e.date();return i=i<29?i:Math.min(i,ea(e.year(),a)),e._isUTC?e._d.setUTCMonth(a,i):e._d.setMonth(a,i),e}function Ka(e){return e!=null?(qa(this,e),S.updateOffset(this,!0),this):Ge(this,"Month")}function pd(){return ea(this.year(),this.month())}function gd(e){return this._monthsParseExact?(v(this,"_monthsRegex")||Ja.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=ud),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ed(e){return this._monthsParseExact?(v(this,"_monthsRegex")||Ja.call(this),e?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=cd),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ja(){function e(h,f){return f.length-h.length}var t=[],a=[],i=[],s,n,o,l;for(s=0;s<12;s++)n=ne([2e3,s]),o=he(this.monthsShort(n,"")),l=he(this.months(n,"")),t.push(o),a.push(l),i.push(l),i.push(o);t.sort(e),a.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Sd(e,t,a,i,s,n,o){var l;return e<100&&e>=0?(l=new Date(e+400,t,a,i,s,n,o),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,a,i,s,n,o),l}function $e(e){var t,a;return e<100&&e>=0?(a=Array.prototype.slice.call(arguments),a[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Et(e,t,a){var i=7+t-a,s=(7+$e(e,0,i).getUTCDay()-t)%7;return-s+i-1}function Za(e,t,a,i,s){var n=(7+a-i)%7,o=Et(e,i,s),l=1+7*(t-1)+n+o,h,f;return l<=0?(h=e-1,f=Be(h)+l):l>Be(e)?(h=e+1,f=l-Be(e)):(h=e,f=l),{year:h,dayOfYear:f}}function ze(e,t,a){var i=Et(e.year(),t,a),s=Math.floor((e.dayOfYear()-i-1)/7)+1,n,o;return s<1?(o=e.year()-1,n=s+_e(o,t,a)):s>_e(e.year(),t,a)?(n=s-_e(e.year(),t,a),o=e.year()+1):(o=e.year(),n=s),{week:n,year:o}}function _e(e,t,a){var i=Et(e,t,a),s=Et(e+1,t,a);return(Be(e)-i+s)/7}M("w",["ww",2],"wo","week"),M("W",["WW",2],"Wo","isoWeek"),y("w",V,ke),y("ww",V,z),y("W",V,ke),y("WW",V,z),Qe(["w","ww","W","WW"],function(e,t,a,i){t[i.substr(0,1)]=D(e)});function yd(e){return ze(e,this._week.dow,this._week.doy).week}var Md={dow:0,doy:6};function Td(){return this._week.dow}function bd(){return this._week.doy}function Ad(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Rd(e){var t=ze(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}M("d",0,"do","day"),M("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),M("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),M("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),M("e",0,0,"weekday"),M("E",0,0,"isoWeekday"),y("d",V),y("e",V),y("E",V),y("dd",function(e,t){return t.weekdaysMinRegex(e)}),y("ddd",function(e,t){return t.weekdaysShortRegex(e)}),y("dddd",function(e,t){return t.weekdaysRegex(e)}),Qe(["dd","ddd","dddd"],function(e,t,a,i){var s=a._locale.weekdaysParse(e,i,a._strict);s!=null?t.d=s:R(a).invalidWeekday=e}),Qe(["d","e","E"],function(e,t,a,i){t[i]=D(e)});function Dd(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Nd(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ta(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Id="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xa="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wd="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vd=je,kd=je,Od=je;function xd(e,t){var a=ee(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ta(a,this._week.dow):e?a[e.day()]:a}function Cd(e){return e===!0?ta(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ld(e){return e===!0?ta(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vd(e,t,a){var i,s,n,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)n=ne([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(n,"").toLocaleLowerCase();return a?t==="dddd"?(s=H.call(this._weekdaysParse,o),s!==-1?s:null):t==="ddd"?(s=H.call(this._shortWeekdaysParse,o),s!==-1?s:null):(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null):t==="dddd"?(s=H.call(this._weekdaysParse,o),s!==-1||(s=H.call(this._shortWeekdaysParse,o),s!==-1)?s:(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null)):t==="ddd"?(s=H.call(this._shortWeekdaysParse,o),s!==-1||(s=H.call(this._weekdaysParse,o),s!==-1)?s:(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null)):(s=H.call(this._minWeekdaysParse,o),s!==-1||(s=H.call(this._weekdaysParse,o),s!==-1)?s:(s=H.call(this._shortWeekdaysParse,o),s!==-1?s:null))}function Ud(e,t,a){var i,s,n;if(this._weekdaysParseExact)return Vd.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(s=ne([2e3,1]).day(i),a&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(n="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[i]=new RegExp(n.replace(".",""),"i")),a&&t==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(a&&t==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(a&&t==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!a&&this._weekdaysParse[i].test(e))return i}}function Yd(e){if(!this.isValid())return e!=null?this:NaN;var t=Ge(this,"Day");return e!=null?(e=Dd(e,this.localeData()),this.add(e-t,"d")):t}function Pd(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Wd(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Nd(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Hd(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||aa.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=vd),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Fd(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||aa.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kd),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function jd(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||aa.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Od),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function aa(){function e(_,E){return E.length-_.length}var t=[],a=[],i=[],s=[],n,o,l,h,f;for(n=0;n<7;n++)o=ne([2e3,1]).day(n),l=he(this.weekdaysMin(o,"")),h=he(this.weekdaysShort(o,"")),f=he(this.weekdays(o,"")),t.push(l),a.push(h),i.push(f),s.push(l),s.push(h),s.push(f);t.sort(e),a.sort(e),i.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ia(){return this.hours()%12||12}function Qd(){return this.hours()||24}M("H",["HH",2],0,"hour"),M("h",["hh",2],0,ia),M("k",["kk",2],0,Qd),M("hmm",0,0,function(){return""+ia.apply(this)+oe(this.minutes(),2)}),M("hmmss",0,0,function(){return""+ia.apply(this)+oe(this.minutes(),2)+oe(this.seconds(),2)}),M("Hmm",0,0,function(){return""+this.hours()+oe(this.minutes(),2)}),M("Hmmss",0,0,function(){return""+this.hours()+oe(this.minutes(),2)+oe(this.seconds(),2)});function ei(e,t){M(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ei("a",!0),ei("A",!1);function ti(e,t){return t._meridiemParse}y("a",ti),y("A",ti),y("H",V,Zt),y("h",V,ke),y("k",V,ke),y("HH",V,z),y("hh",V,z),y("kk",V,z),y("hmm",ja),y("hmmss",Qa),y("Hmm",ja),y("Hmmss",Qa),L(["H","HH"],j),L(["k","kk"],function(e,t,a){var i=D(e);t[j]=i===24?0:i}),L(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),L(["h","hh"],function(e,t,a){t[j]=D(e),R(a).bigHour=!0}),L("hmm",function(e,t,a){var i=e.length-2;t[j]=D(e.substr(0,i)),t[ae]=D(e.substr(i)),R(a).bigHour=!0}),L("hmmss",function(e,t,a){var i=e.length-4,s=e.length-2;t[j]=D(e.substr(0,i)),t[ae]=D(e.substr(i,2)),t[me]=D(e.substr(s)),R(a).bigHour=!0}),L("Hmm",function(e,t,a){var i=e.length-2;t[j]=D(e.substr(0,i)),t[ae]=D(e.substr(i))}),L("Hmmss",function(e,t,a){var i=e.length-4,s=e.length-2;t[j]=D(e.substr(0,i)),t[ae]=D(e.substr(i,2)),t[me]=D(e.substr(s))});function Bd(e){return(e+"").toLowerCase().charAt(0)==="p"}var Gd=/[ap]\.?m?\.?/i,$d=Oe("Hours",!0);function zd(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}var ai={calendar:Vo,longDateFormat:Wo,invalidDate:Fo,ordinal:Qo,dayOfMonthOrdinalParse:Bo,relativeTime:$o,months:ld,monthsShort:$a,week:Md,weekdays:Id,weekdaysMin:wd,weekdaysShort:Xa,meridiemParse:Gd},Y={},qe={},Ke;function qd(e,t){var a,i=Math.min(e.length,t.length);for(a=0;a<i;a+=1)if(e[a]!==t[a])return a;return i}function ii(e){return e&&e.toLowerCase().replace("_","-")}function Kd(e){for(var t=0,a,i,s,n;t<e.length;){for(n=ii(e[t]).split("-"),a=n.length,i=ii(e[t+1]),i=i?i.split("-"):null;a>0;){if(s=St(n.slice(0,a).join("-")),s)return s;if(i&&i.length>=a&&qd(n,i)>=a-1)break;a--}t++}return Ke}function Jd(e){return!!(e&&e.match("^[^/\\\\]*$"))}function St(e){var t=null,a;if(Y[e]===void 0&&typeof module<"u"&&module&&module.exports&&Jd(e))try{t=Ke._abbr,a=require,a("./locale/"+e),Me(t)}catch{Y[e]=null}return Y[e]}function Me(e,t){var a;return e&&($(t)?a=pe(e):a=sa(e,t),a?Ke=a:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ke._abbr}function sa(e,t){if(t!==null){var a,i=ai;if(t.abbr=e,Y[e]!=null)Ya("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."),i=Y[e]._config;else if(t.parentLocale!=null)if(Y[t.parentLocale]!=null)i=Y[t.parentLocale]._config;else if(a=St(t.parentLocale),a!=null)i=a._config;else return qe[t.parentLocale]||(qe[t.parentLocale]=[]),qe[t.parentLocale].push({name:e,config:t}),null;return Y[e]=new Bt(Qt(i,t)),qe[e]&&qe[e].forEach(function(s){sa(s.name,s.config)}),Me(e),Y[e]}else return delete Y[e],null}function Zd(e,t){if(t!=null){var a,i,s=ai;Y[e]!=null&&Y[e].parentLocale!=null?Y[e].set(Qt(Y[e]._config,t)):(i=St(e),i!=null&&(s=i._config),t=Qt(s,t),i==null&&(t.abbr=e),a=new Bt(t),a.parentLocale=Y[e],Y[e]=a),Me(e)}else Y[e]!=null&&(Y[e].parentLocale!=null?(Y[e]=Y[e].parentLocale,e===Me()&&Me(e)):Y[e]!=null&&delete Y[e]);return Y[e]}function pe(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ke;if(!ee(e)){if(t=St(e),t)return t;e=[e]}return Kd(e)}function Xd(){return Gt(Y)}function na(e){var t,a=e._a;return a&&R(e).overflow===-2&&(t=a[fe]<0||a[fe]>11?fe:a[de]<1||a[de]>ea(a[Q],a[fe])?de:a[j]<0||a[j]>24||a[j]===24&&(a[ae]!==0||a[me]!==0||a[Re]!==0)?j:a[ae]<0||a[ae]>59?ae:a[me]<0||a[me]>59?me:a[Re]<0||a[Re]>999?Re:-1,R(e)._overflowDayOfYear&&(t<Q||t>de)&&(t=de),R(e)._overflowWeeks&&t===-1&&(t=id),R(e)._overflowWeekday&&t===-1&&(t=sd),R(e).overflow=t),e}var el=/^\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)?)?$/,tl=/^\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)?)?$/,al=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["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]],ra=[["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/]],il=/^\/?Date\((-?\d+)/i,sl=/^(?:(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}))$/,nl={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function si(e){var t,a,i=e._i,s=el.exec(i)||tl.exec(i),n,o,l,h,f=yt.length,_=ra.length;if(s){for(R(e).iso=!0,t=0,a=f;t<a;t++)if(yt[t][1].exec(s[1])){o=yt[t][0],n=yt[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(s[3]){for(t=0,a=_;t<a;t++)if(ra[t][1].exec(s[3])){l=(s[2]||" ")+ra[t][0];break}if(l==null){e._isValid=!1;return}}if(!n&&l!=null){e._isValid=!1;return}if(s[4])if(al.exec(s[4]))h="Z";else{e._isValid=!1;return}e._f=o+(l||"")+(h||""),da(e)}else e._isValid=!1}function rl(e,t,a,i,s,n){var o=[ol(e),$a.indexOf(t),parseInt(a,10),parseInt(i,10),parseInt(s,10)];return n&&o.push(parseInt(n,10)),o}function ol(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function dl(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ll(e,t,a){if(e){var i=Xa.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(i!==s)return R(a).weekdayMismatch=!0,a._isValid=!1,!1}return!0}function ul(e,t,a){if(e)return nl[e];if(t)return 0;var i=parseInt(a,10),s=i%100,n=(i-s)/100;return n*60+s}function ni(e){var t=sl.exec(dl(e._i)),a;if(t){if(a=rl(t[4],t[3],t[2],t[5],t[6],t[7]),!ll(t[1],a,e))return;e._a=a,e._tzm=ul(t[8],t[9],t[10]),e._d=$e.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),R(e).rfc2822=!0}else e._isValid=!1}function cl(e){var t=il.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(si(e),e._isValid===!1)delete e._isValid;else return;if(ni(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:S.createFromInputFallback(e)}S.createFromInputFallback=J("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function xe(e,t,a){return e??t??a}function hl(e){var t=new Date(S.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function oa(e){var t,a,i=[],s,n,o;if(!e._d){for(s=hl(e),e._w&&e._a[de]==null&&e._a[fe]==null&&fl(e),e._dayOfYear!=null&&(o=xe(e._a[Q],s[Q]),(e._dayOfYear>Be(o)||e._dayOfYear===0)&&(R(e)._overflowDayOfYear=!0),a=$e(o,0,e._dayOfYear),e._a[fe]=a.getUTCMonth(),e._a[de]=a.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=s[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[j]===24&&e._a[ae]===0&&e._a[me]===0&&e._a[Re]===0&&(e._nextDay=!0,e._a[j]=0),e._d=(e._useUTC?$e:Sd).apply(null,i),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[j]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(R(e).weekdayMismatch=!0)}}function fl(e){var t,a,i,s,n,o,l,h,f;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,o=4,a=xe(t.GG,e._a[Q],ze(U(),1,4).year),i=xe(t.W,1),s=xe(t.E,1),(s<1||s>7)&&(h=!0)):(n=e._locale._week.dow,o=e._locale._week.doy,f=ze(U(),n,o),a=xe(t.gg,e._a[Q],f.year),i=xe(t.w,f.week),t.d!=null?(s=t.d,(s<0||s>6)&&(h=!0)):t.e!=null?(s=t.e+n,(t.e<0||t.e>6)&&(h=!0)):s=n),i<1||i>_e(a,n,o)?R(e)._overflowWeeks=!0:h!=null?R(e)._overflowWeekday=!0:(l=Za(a,i,s,n,o),e._a[Q]=l.year,e._dayOfYear=l.dayOfYear)}S.ISO_8601=function(){},S.RFC_2822=function(){};function da(e){if(e._f===S.ISO_8601){si(e);return}if(e._f===S.RFC_2822){ni(e);return}e._a=[],R(e).empty=!0;var t=""+e._i,a,i,s,n,o,l=t.length,h=0,f,_;for(s=Pa(e._f,e._locale).match($t)||[],_=s.length,a=0;a<_;a++)n=s[a],i=(t.match(ed(n,e))||[])[0],i&&(o=t.substr(0,t.indexOf(i)),o.length>0&&R(e).unusedInput.push(o),t=t.slice(t.indexOf(i)+i.length),h+=i.length),we[n]?(i?R(e).empty=!1:R(e).unusedTokens.push(n),ad(n,i,e)):e._strict&&!i&&R(e).unusedTokens.push(n);R(e).charsLeftOver=l-h,t.length>0&&R(e).unusedInput.push(t),e._a[j]<=12&&R(e).bigHour===!0&&e._a[j]>0&&(R(e).bigHour=void 0),R(e).parsedDateParts=e._a.slice(0),R(e).meridiem=e._meridiem,e._a[j]=ml(e._locale,e._a[j],e._meridiem),f=R(e).era,f!==null&&(e._a[Q]=e._locale.erasConvertYear(f,e._a[Q])),oa(e),na(e)}function ml(e,t,a){var i;return a==null?t:e.meridiemHour!=null?e.meridiemHour(t,a):(e.isPM!=null&&(i=e.isPM(a),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function _l(e){var t,a,i,s,n,o,l=!1,h=e._f.length;if(h===0){R(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<h;s++)n=0,o=!1,t=jt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],da(t),Ht(t)&&(o=!0),n+=R(t).charsLeftOver,n+=R(t).unusedTokens.length*10,R(t).score=n,l?n<i&&(i=n,a=t):(i==null||n<i||o)&&(i=n,a=t,o&&(l=!0));ye(e,a||t)}function pl(e){if(!e._d){var t=qt(e._i),a=t.day===void 0?t.date:t.day;e._a=Ca([t.year,t.month,a,t.hour,t.minute,t.second,t.millisecond],function(i){return i&&parseInt(i,10)}),oa(e)}}function gl(e){var t=new Fe(na(ri(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ri(e){var t=e._i,a=e._f;return e._locale=e._locale||pe(e._l),t===null||a===void 0&&t===""?dt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),te(t)?new Fe(na(t)):(He(t)?e._d=t:ee(a)?_l(e):a?da(e):El(e),Ht(e)||(e._d=null),e))}function El(e){var t=e._i;$(t)?e._d=new Date(S.now()):He(t)?e._d=new Date(t.valueOf()):typeof t=="string"?cl(e):ee(t)?(e._a=Ca(t.slice(0),function(a){return parseInt(a,10)}),oa(e)):Ae(t)?pl(e):ce(t)?e._d=new Date(t):S.createFromInputFallback(e)}function oi(e,t,a,i,s){var n={};return(t===!0||t===!1)&&(i=t,t=void 0),(a===!0||a===!1)&&(i=a,a=void 0),(Ae(e)&&Pt(e)||ee(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=s,n._l=a,n._i=e,n._f=t,n._strict=i,gl(n)}function U(e,t,a,i){return oi(e,t,a,i,!1)}var Sl=J("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=U.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:dt()}),yl=J("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=U.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:dt()});function di(e,t){var a,i;if(t.length===1&&ee(t[0])&&(t=t[0]),!t.length)return U();for(a=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](a))&&(a=t[i]);return a}function Ml(){var e=[].slice.call(arguments,0);return di("isBefore",e)}function Tl(){var e=[].slice.call(arguments,0);return di("isAfter",e)}var bl=function(){return Date.now?Date.now():+new Date},Je=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Al(e){var t,a=!1,i,s=Je.length;for(t in e)if(v(e,t)&&!(H.call(Je,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(i=0;i<s;++i)if(e[Je[i]]){if(a)return!1;parseFloat(e[Je[i]])!==D(e[Je[i]])&&(a=!0)}return!0}function Rl(){return this._isValid}function Dl(){return ie(NaN)}function Mt(e){var t=qt(e),a=t.year||0,i=t.quarter||0,s=t.month||0,n=t.week||t.isoWeek||0,o=t.day||0,l=t.hour||0,h=t.minute||0,f=t.second||0,_=t.millisecond||0;this._isValid=Al(t),this._milliseconds=+_+f*1e3+h*6e4+l*1e3*60*60,this._days=+o+n*7,this._months=+s+i*3+a*12,this._data={},this._locale=pe(),this._bubble()}function Tt(e){return e instanceof Mt}function la(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Nl(e,t,a){var i=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),n=0,o;for(o=0;o<i;o++)D(e[o])!==D(t[o])&&n++;return n+s}function li(e,t){M(e,0,0,function(){var a=this.utcOffset(),i="+";return a<0&&(a=-a,i="-"),i+oe(~~(a/60),2)+t+oe(~~a%60,2)})}li("Z",":"),li("ZZ",""),y("Z",_t),y("ZZ",_t),L(["Z","ZZ"],function(e,t,a){a._useUTC=!0,a._tzm=ua(_t,e)});var Il=/([\+\-]|\d\d)/gi;function ua(e,t){var a=(t||"").match(e),i,s,n;return a===null?null:(i=a[a.length-1]||[],s=(i+"").match(Il)||["-",0,0],n=+(s[1]*60)+D(s[2]),n===0?0:s[0]==="+"?n:-n)}function ca(e,t){var a,i;return t._isUTC?(a=t.clone(),i=(te(e)||He(e)?e.valueOf():U(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+i),S.updateOffset(a,!1),a):U(e).local()}function ha(e){return-Math.round(e._d.getTimezoneOffset())}S.updateOffset=function(){};function wl(e,t,a){var i=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=ua(_t,e),e===null)return this}else Math.abs(e)<16&&!a&&(e=e*60);return!this._isUTC&&t&&(s=ha(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?fi(this,ie(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,S.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:ha(this)}function vl(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function kl(e){return this.utcOffset(0,e)}function Ol(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ha(this),"m")),this}function xl(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=ua(Zo,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Cl(e){return this.isValid()?(e=e?U(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ll(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vl(){if(!$(this._isDSTShifted))return this._isDSTShifted;var e={},t;return jt(e,this),e=ri(e),e._a?(t=e._isUTC?ne(e._a):U(e._a),this._isDSTShifted=this.isValid()&&Nl(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ul(){return this.isValid()?!this._isUTC:!1}function Yl(){return this.isValid()?this._isUTC:!1}function ui(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Pl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ie(e,t){var a=e,i=null,s,n,o;return Tt(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:ce(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(i=Pl.exec(e))?(s=i[1]==="-"?-1:1,a={y:0,d:D(i[de])*s,h:D(i[j])*s,m:D(i[ae])*s,s:D(i[me])*s,ms:D(la(i[Re]*1e3))*s}):(i=Wl.exec(e))?(s=i[1]==="-"?-1:1,a={y:De(i[2],s),M:De(i[3],s),w:De(i[4],s),d:De(i[5],s),h:De(i[6],s),m:De(i[7],s),s:De(i[8],s)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(o=Hl(U(a.from),U(a.to)),a={},a.ms=o.milliseconds,a.M=o.months),n=new Mt(a),Tt(e)&&v(e,"_locale")&&(n._locale=e._locale),Tt(e)&&v(e,"_isValid")&&(n._isValid=e._isValid),n}ie.fn=Mt.prototype,ie.invalid=Dl;function De(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function ci(e,t){var a={};return a.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Hl(e,t){var a;return e.isValid()&&t.isValid()?(t=ca(t,e),e.isBefore(t)?a=ci(e,t):(a=ci(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function hi(e,t){return function(a,i){var s,n;return i!==null&&!isNaN(+i)&&(Ya(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=a,a=i,i=n),s=ie(a,i),fi(this,s,e),this}}function fi(e,t,a,i){var s=t._milliseconds,n=la(t._days),o=la(t._months);e.isValid()&&(i=i??!0,o&&qa(e,Ge(e,"Month")+o*a),n&&Ga(e,"Date",Ge(e,"Date")+n*a),s&&e._d.setTime(e._d.valueOf()+s*a),i&&S.updateOffset(e,n||o))}var Fl=hi(1,"add"),jl=hi(-1,"subtract");function mi(e){return typeof e=="string"||e instanceof String}function Ql(e){return te(e)||He(e)||mi(e)||ce(e)||Gl(e)||Bl(e)||e===null||e===void 0}function Bl(e){var t=Ae(e)&&!Pt(e),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,n,o=i.length;for(s=0;s<o;s+=1)n=i[s],a=a||v(e,n);return t&&a}function Gl(e){var t=ee(e),a=!1;return t&&(a=e.filter(function(i){return!ce(i)&&mi(e)}).length===0),t&&a}function $l(e){var t=Ae(e)&&!Pt(e),a=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,n;for(s=0;s<i.length;s+=1)n=i[s],a=a||v(e,n);return t&&a}function zl(e,t){var a=e.diff(t,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"}function ql(e,t){arguments.length===1&&(arguments[0]?Ql(arguments[0])?(e=arguments[0],t=void 0):$l(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var a=e||U(),i=ca(a,this).startOf("day"),s=S.calendarFormat(this,i)||"sameElse",n=t&&(re(t[s])?t[s].call(this,a):t[s]);return this.format(n||this.localeData().calendar(s,this,U(a)))}function Kl(){return new Fe(this)}function Jl(e,t){var a=te(e)?e:U(e);return this.isValid()&&a.isValid()?(t=Z(t)||"millisecond",t==="millisecond"?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf()):!1}function Zl(e,t){var a=te(e)?e:U(e);return this.isValid()&&a.isValid()?(t=Z(t)||"millisecond",t==="millisecond"?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf()):!1}function Xl(e,t,a,i){var s=te(e)?e:U(e),n=te(t)?t:U(t);return this.isValid()&&s.isValid()&&n.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(s,a):!this.isBefore(s,a))&&(i[1]===")"?this.isBefore(n,a):!this.isAfter(n,a))):!1}function eu(e,t){var a=te(e)?e:U(e),i;return this.isValid()&&a.isValid()?(t=Z(t)||"millisecond",t==="millisecond"?this.valueOf()===a.valueOf():(i=a.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf())):!1}function tu(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function au(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function iu(e,t,a){var i,s,n;if(!this.isValid())return NaN;if(i=ca(e,this),!i.isValid())return NaN;switch(s=(i.utcOffset()-this.utcOffset())*6e4,t=Z(t),t){case"year":n=bt(this,i)/12;break;case"month":n=bt(this,i);break;case"quarter":n=bt(this,i)/3;break;case"second":n=(this-i)/1e3;break;case"minute":n=(this-i)/6e4;break;case"hour":n=(this-i)/36e5;break;case"day":n=(this-i-s)/864e5;break;case"week":n=(this-i-s)/6048e5;break;default:n=this-i}return a?n:X(n)}function bt(e,t){if(e.date()<t.date())return-bt(t,e);var a=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(a,"months"),s,n;return t-i<0?(s=e.clone().add(a-1,"months"),n=(t-i)/(i-s)):(s=e.clone().add(a+1,"months"),n=(t-i)/(s-i)),-(a+n)||0}S.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",S.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function su(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function nu(e){if(!this.isValid())return null;var t=e!==!0,a=t?this.clone().utc():this;return a.year()<0||a.year()>9999?ut(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):re(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ut(a,"Z")):ut(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ru(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",a,i,s,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),a="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(a+i+s+n)}function ou(e){e||(e=this.isUtc()?S.defaultFormatUtc:S.defaultFormat);var t=ut(this,e);return this.localeData().postformat(t)}function du(e,t){return this.isValid()&&(te(e)&&e.isValid()||U(e).isValid())?ie({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function lu(e){return this.from(U(),e)}function uu(e,t){return this.isValid()&&(te(e)&&e.isValid()||U(e).isValid())?ie({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function cu(e){return this.to(U(),e)}function _i(e){var t;return e===void 0?this._locale._abbr:(t=pe(e),t!=null&&(this._locale=t),this)}var pi=J("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function gi(){return this._locale}var At=1e3,Ce=60*At,Rt=60*Ce,Ei=(365*400+97)*24*Rt;function Le(e,t){return(e%t+t)%t}function Si(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-Ei:new Date(e,t,a).valueOf()}function yi(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-Ei:Date.UTC(e,t,a)}function hu(e){var t,a;if(e=Z(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?yi:Si,e){case"year":t=a(this.year(),0,1);break;case"quarter":t=a(this.year(),this.month()-this.month()%3,1);break;case"month":t=a(this.year(),this.month(),1);break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=a(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Le(t+(this._isUTC?0:this.utcOffset()*Ce),Rt);break;case"minute":t=this._d.valueOf(),t-=Le(t,Ce);break;case"second":t=this._d.valueOf(),t-=Le(t,At);break}return this._d.setTime(t),S.updateOffset(this,!0),this}function fu(e){var t,a;if(e=Z(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?yi:Si,e){case"year":t=a(this.year()+1,0,1)-1;break;case"quarter":t=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=a(this.year(),this.month()+1,1)-1;break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Rt-Le(t+(this._isUTC?0:this.utcOffset()*Ce),Rt)-1;break;case"minute":t=this._d.valueOf(),t+=Ce-Le(t,Ce)-1;break;case"second":t=this._d.valueOf(),t+=At-Le(t,At)-1;break}return this._d.setTime(t),S.updateOffset(this,!0),this}function mu(){return this._d.valueOf()-(this._offset||0)*6e4}function _u(){return Math.floor(this.valueOf()/1e3)}function pu(){return new Date(this.valueOf())}function gu(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Eu(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Su(){return this.isValid()?this.toISOString():null}function yu(){return Ht(this)}function Mu(){return ye({},R(this))}function Tu(){return R(this).overflow}function bu(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}M("N",0,0,"eraAbbr"),M("NN",0,0,"eraAbbr"),M("NNN",0,0,"eraAbbr"),M("NNNN",0,0,"eraName"),M("NNNNN",0,0,"eraNarrow"),M("y",["y",1],"yo","eraYear"),M("y",["yy",2],0,"eraYear"),M("y",["yyy",3],0,"eraYear"),M("y",["yyyy",4],0,"eraYear"),y("N",fa),y("NN",fa),y("NNN",fa),y("NNNN",Cu),y("NNNNN",Lu),L(["N","NN","NNN","NNNN","NNNNN"],function(e,t,a,i){var s=a._locale.erasParse(e,i,a._strict);s?R(a).era=s:R(a).invalidEra=e}),y("y",ve),y("yy",ve),y("yyy",ve),y("yyyy",ve),y("yo",Vu),L(["y","yy","yyy","yyyy"],Q),L(["yo"],function(e,t,a,i){var s;a._locale._eraYearOrdinalRegex&&(s=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?t[Q]=a._locale.eraYearOrdinalParse(e,s):t[Q]=parseInt(e,10)});function Au(e,t){var a,i,s,n=this._eras||pe("en")._eras;for(a=0,i=n.length;a<i;++a)switch(typeof n[a].since==="string"&&(s=S(n[a].since).startOf("day"),n[a].since=s.valueOf()),typeof n[a].until){case"undefined":n[a].until=1/0;break;case"string":s=S(n[a].until).startOf("day").valueOf(),n[a].until=s.valueOf();break}return n}function Ru(e,t,a){var i,s,n=this.eras(),o,l,h;for(e=e.toUpperCase(),i=0,s=n.length;i<s;++i)if(o=n[i].name.toUpperCase(),l=n[i].abbr.toUpperCase(),h=n[i].narrow.toUpperCase(),a)switch(t){case"N":case"NN":case"NNN":if(l===e)return n[i];break;case"NNNN":if(o===e)return n[i];break;case"NNNNN":if(h===e)return n[i];break}else if([o,l,h].indexOf(e)>=0)return n[i]}function Du(e,t){var a=e.since<=e.until?1:-1;return t===void 0?S(e.since).year():S(e.since).year()+(t-e.offset)*a}function Nu(){var e,t,a,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return i[e].name;return""}function Iu(){var e,t,a,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return i[e].narrow;return""}function wu(){var e,t,a,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return i[e].abbr;return""}function vu(){var e,t,a,i,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(a=s[e].since<=s[e].until?1:-1,i=this.clone().startOf("day").valueOf(),s[e].since<=i&&i<=s[e].until||s[e].until<=i&&i<=s[e].since)return(this.year()-S(s[e].since).year())*a+s[e].offset;return this.year()}function ku(e){return v(this,"_erasNameRegex")||ma.call(this),e?this._erasNameRegex:this._erasRegex}function Ou(e){return v(this,"_erasAbbrRegex")||ma.call(this),e?this._erasAbbrRegex:this._erasRegex}function xu(e){return v(this,"_erasNarrowRegex")||ma.call(this),e?this._erasNarrowRegex:this._erasRegex}function fa(e,t){return t.erasAbbrRegex(e)}function Cu(e,t){return t.erasNameRegex(e)}function Lu(e,t){return t.erasNarrowRegex(e)}function Vu(e,t){return t._eraYearOrdinalRegex||ve}function ma(){var e=[],t=[],a=[],i=[],s,n,o,l,h,f=this.eras();for(s=0,n=f.length;s<n;++s)o=he(f[s].name),l=he(f[s].abbr),h=he(f[s].narrow),t.push(o),e.push(l),a.push(h),i.push(o),i.push(l),i.push(h);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}M(0,["gg",2],0,function(){return this.weekYear()%100}),M(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Dt(e,t){M(0,[e,e.length],0,t)}Dt("gggg","weekYear"),Dt("ggggg","weekYear"),Dt("GGGG","isoWeekYear"),Dt("GGGGG","isoWeekYear"),y("G",mt),y("g",mt),y("GG",V,z),y("gg",V,z),y("GGGG",Jt,Kt),y("gggg",Jt,Kt),y("GGGGG",ft,ct),y("ggggg",ft,ct),Qe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,i){t[i.substr(0,2)]=D(e)}),Qe(["gg","GG"],function(e,t,a,i){t[i]=S.parseTwoDigitYear(e)});function Uu(e){return Mi.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Yu(e){return Mi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Pu(){return _e(this.year(),1,4)}function Wu(){return _e(this.isoWeekYear(),1,4)}function Hu(){var e=this.localeData()._week;return _e(this.year(),e.dow,e.doy)}function Fu(){var e=this.localeData()._week;return _e(this.weekYear(),e.dow,e.doy)}function Mi(e,t,a,i,s){var n;return e==null?ze(this,i,s).year:(n=_e(e,i,s),t>n&&(t=n),ju.call(this,e,t,a,i,s))}function ju(e,t,a,i,s){var n=Za(e,t,a,i,s),o=$e(n.year,0,n.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}M("Q",0,"Qo","quarter"),y("Q",Ha),L("Q",function(e,t){t[fe]=(D(e)-1)*3});function Qu(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}M("D",["DD",2],"Do","date"),y("D",V,ke),y("DD",V,z),y("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),L(["D","DD"],de),L("Do",function(e,t){t[de]=D(e.match(V)[0])});var Ti=Oe("Date",!0);M("DDD",["DDDD",3],"DDDo","dayOfYear"),y("DDD",ht),y("DDDD",Fa),L(["DDD","DDDD"],function(e,t,a){a._dayOfYear=D(e)});function Bu(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}M("m",["mm",2],0,"minute"),y("m",V,Zt),y("mm",V,z),L(["m","mm"],ae);var Gu=Oe("Minutes",!1);M("s",["ss",2],0,"second"),y("s",V,Zt),y("ss",V,z),L(["s","ss"],me);var $u=Oe("Seconds",!1);M("S",0,0,function(){return~~(this.millisecond()/100)}),M(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),M(0,["SSS",3],0,"millisecond"),M(0,["SSSS",4],0,function(){return this.millisecond()*10}),M(0,["SSSSS",5],0,function(){return this.millisecond()*100}),M(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),M(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),M(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),M(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),y("S",ht,Ha),y("SS",ht,z),y("SSS",ht,Fa);var Te,bi;for(Te="SSSS";Te.length<=9;Te+="S")y(Te,ve);function zu(e,t){t[Re]=D(("0."+e)*1e3)}for(Te="S";Te.length<=9;Te+="S")L(Te,zu);bi=Oe("Milliseconds",!1),M("z",0,0,"zoneAbbr"),M("zz",0,0,"zoneName");function qu(){return this._isUTC?"UTC":""}function Ku(){return this._isUTC?"Coordinated Universal Time":""}var p=Fe.prototype;p.add=Fl,p.calendar=ql,p.clone=Kl,p.diff=iu,p.endOf=fu,p.format=ou,p.from=du,p.fromNow=lu,p.to=uu,p.toNow=cu,p.get=rd,p.invalidAt=Tu,p.isAfter=Jl,p.isBefore=Zl,p.isBetween=Xl,p.isSame=eu,p.isSameOrAfter=tu,p.isSameOrBefore=au,p.isValid=yu,p.lang=pi,p.locale=_i,p.localeData=gi,p.max=yl,p.min=Sl,p.parsingFlags=Mu,p.set=od,p.startOf=hu,p.subtract=jl,p.toArray=gu,p.toObject=Eu,p.toDate=pu,p.toISOString=nu,p.inspect=ru,typeof Symbol<"u"&&Symbol.for!=null&&(p[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),p.toJSON=Su,p.toString=su,p.unix=_u,p.valueOf=mu,p.creationData=bu,p.eraName=Nu,p.eraNarrow=Iu,p.eraAbbr=wu,p.eraYear=vu,p.year=Ba,p.isLeapYear=nd,p.weekYear=Uu,p.isoWeekYear=Yu,p.quarter=p.quarters=Qu,p.month=Ka,p.daysInMonth=pd,p.week=p.weeks=Ad,p.isoWeek=p.isoWeeks=Rd,p.weeksInYear=Hu,p.weeksInWeekYear=Fu,p.isoWeeksInYear=Pu,p.isoWeeksInISOWeekYear=Wu,p.date=Ti,p.day=p.days=Yd,p.weekday=Pd,p.isoWeekday=Wd,p.dayOfYear=Bu,p.hour=p.hours=$d,p.minute=p.minutes=Gu,p.second=p.seconds=$u,p.millisecond=p.milliseconds=bi,p.utcOffset=wl,p.utc=kl,p.local=Ol,p.parseZone=xl,p.hasAlignedHourOffset=Cl,p.isDST=Ll,p.isLocal=Ul,p.isUtcOffset=Yl,p.isUtc=ui,p.isUTC=ui,p.zoneAbbr=qu,p.zoneName=Ku,p.dates=J("dates accessor is deprecated. Use date instead.",Ti),p.months=J("months accessor is deprecated. Use month instead",Ka),p.years=J("years accessor is deprecated. Use year instead",Ba),p.zone=J("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vl),p.isDSTShifted=J("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vl);function Ju(e){return U(e*1e3)}function Zu(){return U.apply(null,arguments).parseZone()}function Ai(e){return e}var k=Bt.prototype;k.calendar=Uo,k.longDateFormat=Ho,k.invalidDate=jo,k.ordinal=Go,k.preparse=Ai,k.postformat=Ai,k.relativeTime=zo,k.pastFuture=qo,k.set=Lo,k.eras=Au,k.erasParse=Ru,k.erasConvertYear=Du,k.erasAbbrRegex=Ou,k.erasNameRegex=ku,k.erasNarrowRegex=xu,k.months=hd,k.monthsShort=fd,k.monthsParse=_d,k.monthsRegex=Ed,k.monthsShortRegex=gd,k.week=yd,k.firstDayOfYear=bd,k.firstDayOfWeek=Td,k.weekdays=xd,k.weekdaysMin=Ld,k.weekdaysShort=Cd,k.weekdaysParse=Ud,k.weekdaysRegex=Hd,k.weekdaysShortRegex=Fd,k.weekdaysMinRegex=jd,k.isPM=Bd,k.meridiem=zd;function Nt(e,t,a,i){var s=pe(),n=ne().set(i,t);return s[a](n,e)}function Ri(e,t,a){if(ce(e)&&(t=e,e=void 0),e=e||"",t!=null)return Nt(e,t,a,"month");var i,s=[];for(i=0;i<12;i++)s[i]=Nt(e,i,a,"month");return s}function _a(e,t,a,i){typeof e=="boolean"?(ce(t)&&(a=t,t=void 0),t=t||""):(t=e,a=t,e=!1,ce(t)&&(a=t,t=void 0),t=t||"");var s=pe(),n=e?s._week.dow:0,o,l=[];if(a!=null)return Nt(t,(a+n)%7,i,"day");for(o=0;o<7;o++)l[o]=Nt(t,(o+n)%7,i,"day");return l}function Xu(e,t){return Ri(e,t,"months")}function ec(e,t){return Ri(e,t,"monthsShort")}function tc(e,t,a){return _a(e,t,a,"weekdays")}function ac(e,t,a){return _a(e,t,a,"weekdaysShort")}function ic(e,t,a){return _a(e,t,a,"weekdaysMin")}Me("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(e){var t=e%10,a=D(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+a}}),S.lang=J("moment.lang is deprecated. Use moment.locale instead.",Me),S.langData=J("moment.langData is deprecated. Use moment.localeData instead.",pe);var ge=Math.abs;function sc(){var e=this._data;return this._milliseconds=ge(this._milliseconds),this._days=ge(this._days),this._months=ge(this._months),e.milliseconds=ge(e.milliseconds),e.seconds=ge(e.seconds),e.minutes=ge(e.minutes),e.hours=ge(e.hours),e.months=ge(e.months),e.years=ge(e.years),this}function Di(e,t,a,i){var s=ie(t,a);return e._milliseconds+=i*s._milliseconds,e._days+=i*s._days,e._months+=i*s._months,e._bubble()}function nc(e,t){return Di(this,e,t,1)}function rc(e,t){return Di(this,e,t,-1)}function Ni(e){return e<0?Math.floor(e):Math.ceil(e)}function oc(){var e=this._milliseconds,t=this._days,a=this._months,i=this._data,s,n,o,l,h;return e>=0&&t>=0&&a>=0||e<=0&&t<=0&&a<=0||(e+=Ni(pa(a)+t)*864e5,t=0,a=0),i.milliseconds=e%1e3,s=X(e/1e3),i.seconds=s%60,n=X(s/60),i.minutes=n%60,o=X(n/60),i.hours=o%24,t+=X(o/24),h=X(Ii(t)),a+=h,t-=Ni(pa(h)),l=X(a/12),a%=12,i.days=t,i.months=a,i.years=l,this}function Ii(e){return e*4800/146097}function pa(e){return e*146097/4800}function dc(e){if(!this.isValid())return NaN;var t,a,i=this._milliseconds;if(e=Z(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,a=this._months+Ii(t),e){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(t=this._days+Math.round(pa(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function Ee(e){return function(){return this.as(e)}}var wi=Ee("ms"),lc=Ee("s"),uc=Ee("m"),cc=Ee("h"),hc=Ee("d"),fc=Ee("w"),mc=Ee("M"),_c=Ee("Q"),pc=Ee("y"),gc=wi;function Ec(){return ie(this)}function Sc(e){return e=Z(e),this.isValid()?this[e+"s"]():NaN}function Ne(e){return function(){return this.isValid()?this._data[e]:NaN}}var yc=Ne("milliseconds"),Mc=Ne("seconds"),Tc=Ne("minutes"),bc=Ne("hours"),Ac=Ne("days"),Rc=Ne("months"),Dc=Ne("years");function Nc(){return X(this.days()/7)}var Se=Math.round,Ve={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ic(e,t,a,i,s){return s.relativeTime(t||1,!!a,e,i)}function wc(e,t,a,i){var s=ie(e).abs(),n=Se(s.as("s")),o=Se(s.as("m")),l=Se(s.as("h")),h=Se(s.as("d")),f=Se(s.as("M")),_=Se(s.as("w")),E=Se(s.as("y")),m=n<=a.ss&&["s",n]||n<a.s&&["ss",n]||o<=1&&["m"]||o<a.m&&["mm",o]||l<=1&&["h"]||l<a.h&&["hh",l]||h<=1&&["d"]||h<a.d&&["dd",h];return a.w!=null&&(m=m||_<=1&&["w"]||_<a.w&&["ww",_]),m=m||f<=1&&["M"]||f<a.M&&["MM",f]||E<=1&&["y"]||["yy",E],m[2]=t,m[3]=+e>0,m[4]=i,Ic.apply(null,m)}function vc(e){return e===void 0?Se:typeof e=="function"?(Se=e,!0):!1}function kc(e,t){return Ve[e]===void 0?!1:t===void 0?Ve[e]:(Ve[e]=t,e==="s"&&(Ve.ss=t-1),!0)}function Oc(e,t){if(!this.isValid())return this.localeData().invalidDate();var a=!1,i=Ve,s,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(a=e),typeof t=="object"&&(i=Object.assign({},Ve,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),s=this.localeData(),n=wc(this,!a,i,s),a&&(n=s.pastFuture(+this,n)),s.postformat(n)}var ga=Math.abs;function Ue(e){return(e>0)-(e<0)||+e}function It(){if(!this.isValid())return this.localeData().invalidDate();var e=ga(this._milliseconds)/1e3,t=ga(this._days),a=ga(this._months),i,s,n,o,l=this.asSeconds(),h,f,_,E;return l?(i=X(e/60),s=X(i/60),e%=60,i%=60,n=X(a/12),a%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",h=l<0?"-":"",f=Ue(this._months)!==Ue(l)?"-":"",_=Ue(this._days)!==Ue(l)?"-":"",E=Ue(this._milliseconds)!==Ue(l)?"-":"",h+"P"+(n?f+n+"Y":"")+(a?f+a+"M":"")+(t?_+t+"D":"")+(s||i||e?"T":"")+(s?E+s+"H":"")+(i?E+i+"M":"")+(e?E+o+"S":"")):"P0D"}var N=Mt.prototype;N.isValid=Rl,N.abs=sc,N.add=nc,N.subtract=rc,N.as=dc,N.asMilliseconds=wi,N.asSeconds=lc,N.asMinutes=uc,N.asHours=cc,N.asDays=hc,N.asWeeks=fc,N.asMonths=mc,N.asQuarters=_c,N.asYears=pc,N.valueOf=gc,N._bubble=oc,N.clone=Ec,N.get=Sc,N.milliseconds=yc,N.seconds=Mc,N.minutes=Tc,N.hours=bc,N.days=Ac,N.weeks=Nc,N.months=Rc,N.years=Dc,N.humanize=Oc,N.toISOString=It,N.toString=It,N.toJSON=It,N.locale=_i,N.localeData=gi,N.toIsoString=J("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",It),N.lang=pi,M("X",0,0,"unix"),M("x",0,0,"valueOf"),y("x",mt),y("X",Xo),L("X",function(e,t,a){a._d=new Date(parseFloat(e)*1e3)}),L("x",function(e,t,a){a._d=new Date(D(e))});S.version="2.30.1",xo(U),S.fn=p,S.min=Ml,S.max=Tl,S.now=bl,S.utc=ne,S.unix=Ju,S.months=Xu,S.isDate=He,S.locale=Me,S.invalid=dt,S.duration=ie,S.isMoment=te,S.weekdays=tc,S.parseZone=Zu,S.localeData=pe,S.isDuration=Tt,S.monthsShort=ec,S.weekdaysMin=ic,S.defineLocale=sa,S.updateLocale=Zd,S.locales=Xd,S.weekdaysShort=ac,S.normalizeUnits=Z,S.relativeTimeRounding=vc,S.relativeTimeThreshold=kc,S.calendarFormat=zl,S.prototype=p,S.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 xc=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Cc=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,vi=/(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,Ea=[/^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],Lc={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:vi,monthsShortRegex:vi,monthsStrictRegex:xc,monthsShortStrictRegex:Cc,monthsParse:Ea,longMonthsParse:Ea,shortMonthsParse:Ea,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:((e,t)=>{switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}}),week:{dow:1,doy:4}};S.locale("fr",Lc),be.TOP_LEFT;const b=e=>typeof e=="string",Ze=()=>{let e,t;const a=new Promise((i,s)=>{e=i,t=s});return a.resolve=e,a.reject=t,a},ki=e=>e==null?"":""+e,Vc=(e,t,a)=>{e.forEach(i=>{t[i]&&(a[i]=t[i])})},Uc=/###/g,Oi=e=>e&&e.indexOf("###")>-1?e.replace(Uc,"."):e,xi=e=>!e||b(e),Xe=(e,t,a)=>{const i=b(t)?t.split("."):t;let s=0;for(;s<i.length-1;){if(xi(e))return{};const n=Oi(i[s]);!e[n]&&a&&(e[n]=new a),Object.prototype.hasOwnProperty.call(e,n)?e=e[n]:e={},++s}return xi(e)?{}:{obj:e,k:Oi(i[s])}},Ci=(e,t,a)=>{const{obj:i,k:s}=Xe(e,t,Object);if(i!==void 0||t.length===1){i[s]=a;return}let n=t[t.length-1],o=t.slice(0,t.length-1),l=Xe(e,o,Object);for(;l.obj===void 0&&o.length;)n=`${o[o.length-1]}.${n}`,o=o.slice(0,o.length-1),l=Xe(e,o,Object),l&&l.obj&&typeof l.obj[`${l.k}.${n}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${n}`]=a},Yc=(e,t,a,i)=>{const{obj:s,k:n}=Xe(e,t,Object);s[n]=s[n]||[],s[n].push(a)},wt=(e,t)=>{const{obj:a,k:i}=Xe(e,t);if(a)return a[i]},Pc=(e,t,a)=>{const i=wt(e,a);return i!==void 0?i:wt(t,a)},Li=(e,t,a)=>{for(const i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?b(e[i])||e[i]instanceof String||b(t[i])||t[i]instanceof String?a&&(e[i]=t[i]):Li(e[i],t[i],a):e[i]=t[i]);return e},Ye=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Wc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Hc=e=>b(e)?e.replace(/[&<>"'\/]/g,t=>Wc[t]):e;class Fc{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const a=this.regExpMap.get(t);if(a!==void 0)return a;const i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}}const jc=[" ",",","?","!",";"],Qc=new Fc(20),Bc=(e,t,a)=>{t=t||"",a=a||"";const i=jc.filter(o=>t.indexOf(o)<0&&a.indexOf(o)<0);if(i.length===0)return!0;const s=Qc.getRegExp(`(${i.map(o=>o==="?"?"\\?":o).join("|")})`);let n=!s.test(e);if(!n){const o=e.indexOf(a);o>0&&!s.test(e.substring(0,o))&&(n=!0)}return n},Sa=function(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const i=t.split(a);let s=e;for(let n=0;n<i.length;){if(!s||typeof s!="object")return;let o,l="";for(let h=n;h<i.length;++h)if(h!==n&&(l+=a),l+=i[h],o=s[l],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&h<i.length-1)continue;n+=h-n+1;break}s=o}return s},vt=e=>e&&e.replace("_","-"),Gc={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class kt{constructor(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,a)}init(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=t||Gc,this.options=a,this.debug=a.debug}log(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return this.forward(a,"log","",!0)}warn(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return this.forward(a,"warn","",!0)}error(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return this.forward(a,"error","")}deprecate(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(t,a,i,s){return s&&!this.debug?null:(b(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[a](t))}create(t){return new kt(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new kt(this.logger,t)}}var le=new kt;class Ot{constructor(){this.observers={}}on(t,a){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const s=this.observers[i].get(a)||0;this.observers[i].set(a,s+1)}),this}off(t,a){if(this.observers[t]){if(!a){delete this.observers[t];return}this.observers[t].delete(a)}}emit(t){for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(o=>{let[l,h]=o;for(let f=0;f<h;f++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[l,h]=o;for(let f=0;f<h;f++)l.apply(l,[t,...i])})}}class Vi extends Ot{constructor(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const a=this.options.ns.indexOf(t);a>-1&&this.options.ns.splice(a,1)}getResource(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const n=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,a],i&&(Array.isArray(i)?l.push(...i):b(i)&&n?l.push(...i.split(n)):l.push(i)));const h=wt(this.data,l);return!h&&!a&&!i&&t.indexOf(".")>-1&&(t=l[0],a=l[1],i=l.slice(2).join(".")),h||!o||!b(i)?h:Sa(this.data&&this.data[t]&&this.data[t][a],i,n)}addResource(t,a,i,s){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let l=[t,a];i&&(l=l.concat(o?i.split(o):i)),t.indexOf(".")>-1&&(l=t.split("."),s=a,a=l[1]),this.addNamespaces(a),Ci(this.data,l,s),n.silent||this.emit("added",t,a,i,s)}addResources(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const n in i)(b(i[n])||Array.isArray(i[n]))&&this.addResource(t,a,n,i[n],{silent:!0});s.silent||this.emit("added",t,a,i)}addResourceBundle(t,a,i,s,n){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,a];t.indexOf(".")>-1&&(l=t.split("."),s=i,i=a,a=l[1]),this.addNamespaces(a);let h=wt(this.data,l)||{};o.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?Li(h,i,n):h={...h,...i},Ci(this.data,l,h),o.silent||this.emit("added",t,a,i)}removeResourceBundle(t,a){this.hasResourceBundle(t,a)&&delete this.data[t][a],this.removeNamespaces(a),this.emit("removed",t,a)}hasResourceBundle(t,a){return this.getResource(t,a)!==void 0}getResourceBundle(t,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,a)}:this.getResource(t,a)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const a=this.getDataByLanguage(t);return!!(a&&Object.keys(a)||[]).find(s=>a[s]&&Object.keys(a[s]).length>0)}toJSON(){return this.data}}var Ui={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,a,i,s){return e.forEach(n=>{this.processors[n]&&(t=this.processors[n].process(t,a,i,s))}),t}};const Yi={};class xt extends Ot{constructor(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Vc(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=le.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const i=this.resolve(t,a);return i&&i.res!==void 0}extractFromKey(t,a){let i=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let n=a.ns||this.options.defaultNS||[];const o=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!Bc(t,i,s);if(o&&!l){const h=t.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:t,namespaces:b(n)?[n]:n};const f=t.split(i);(i!==s||i===s&&this.options.ns.indexOf(f[0])>-1)&&(n=f.shift()),t=f.join(s)}return{key:t,namespaces:b(n)?[n]:n}}translate(t,a,i){if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,n=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],a),h=l[l.length-1],f=a.lng||this.language,_=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(_){const F=a.nsSeparator||this.options.nsSeparator;return s?{res:`${h}${F}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:`${h}${F}${o}`}return s?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:o}const E=this.resolve(t,a);let m=E&&E.res;const T=E&&E.usedKey||o,I=E&&E.exactUsedKey||o,P=Object.prototype.toString.apply(m),C=["[object Number]","[object Function]","[object RegExp]"],O=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,at=!b(m)&&typeof m!="boolean"&&typeof m!="number";if(w&&m&&at&&C.indexOf(P)<0&&!(b(O)&&Array.isArray(m))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(T,m,{...a,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(E.res=F,E.usedParams=this.getUsedParamsDetails(a),E):F}if(n){const F=Array.isArray(m),q=F?[]:{},se=F?I:T;for(const G in m)if(Object.prototype.hasOwnProperty.call(m,G)){const Ut=`${se}${n}${G}`;q[G]=this.translate(Ut,{...a,joinArrays:!1,ns:l}),q[G]===Ut&&(q[G]=m[G])}m=q}}else if(w&&b(O)&&Array.isArray(m))m=m.join(O),m&&(m=this.extendTranslation(m,t,a,i));else{let F=!1,q=!1;const se=a.count!==void 0&&!b(a.count),G=xt.hasDefaultValue(a),Ut=se?this.pluralResolver.getSuffix(f,a.count,a):"",Jh=a.ordinal&&se?this.pluralResolver.getSuffix(f,a.count,{ordinal:!1}):"",No=se&&!a.ordinal&&a.count===0&&this.pluralResolver.shouldUseIntlApi(),it=No&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${Ut}`]||a[`defaultValue${Jh}`]||a.defaultValue;!this.isValidLookup(m)&&G&&(F=!0,m=it),this.isValidLookup(m)||(q=!0,m=o);const Zh=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&q?void 0:m,st=G&&it!==m&&this.options.updateMissing;if(q||F||st){if(this.logger.log(st?"updateKey":"missingKey",f,h,o,st?it:m),n){const K=this.resolve(o,{...a,keySeparator:!1});K&&K.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let nt=[];const Yt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Yt&&Yt[0])for(let K=0;K<Yt.length;K++)nt.push(Yt[K]);else this.options.saveMissingTo==="all"?nt=this.languageUtils.toResolveHierarchy(a.lng||this.language):nt.push(a.lng||this.language);const Io=(K,Ie,rt)=>{const wo=G&&rt!==m?rt:Zh;this.options.missingKeyHandler?this.options.missingKeyHandler(K,h,Ie,wo,st,a):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(K,h,Ie,wo,st,a),this.emit("missingKey",K,h,Ie,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&se?nt.forEach(K=>{const Ie=this.pluralResolver.getSuffixes(K,a);No&&a[`defaultValue${this.options.pluralSeparator}zero`]&&Ie.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ie.push(`${this.options.pluralSeparator}zero`),Ie.forEach(rt=>{Io([K],o+rt,a[`defaultValue${rt}`]||it)})}):Io(nt,o,it))}m=this.extendTranslation(m,t,a,E,i),q&&m===o&&this.options.appendNamespaceToMissingKey&&(m=`${h}:${o}`),(q||F)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}:${o}`:o,F?m:void 0):m=this.options.parseMissingKeyHandler(m))}return s?(E.res=m,E.usedParams=this.getUsedParamsDetails(a),E):m}extendTranslation(t,a,i,s,n){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const f=b(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let _;if(f){const m=t.match(this.interpolator.nestingRegexp);_=m&&m.length}let E=i.replace&&!b(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(E={...this.options.interpolation.defaultVariables,...E}),t=this.interpolator.interpolate(t,E,i.lng||this.language||s.usedLng,i),f){const m=t.match(this.interpolator.nestingRegexp),T=m&&m.length;_<T&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(i.lng=this.language||s.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var m=arguments.length,T=new Array(m),I=0;I<m;I++)T[I]=arguments[I];return n&&n[0]===T[0]&&!i.context?(o.logger.warn(`It seems you are nesting recursively key: ${T[0]} in key: ${a[0]}`),null):o.translate(...T,a)},i)),i.interpolation&&this.interpolator.reset()}const l=i.postProcess||this.options.postProcess,h=b(l)?[l]:l;return t!=null&&h&&h.length&&i.applyPostProcessor!==!1&&(t=Ui.handle(h,t,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,s,n,o,l;return b(t)&&(t=[t]),t.forEach(h=>{if(this.isValidLookup(i))return;const f=this.extractFromKey(h,a),_=f.key;s=_;let E=f.namespaces;this.options.fallbackNS&&(E=E.concat(this.options.fallbackNS));const m=a.count!==void 0&&!b(a.count),T=m&&!a.ordinal&&a.count===0&&this.pluralResolver.shouldUseIntlApi(),I=a.context!==void 0&&(b(a.context)||typeof a.context=="number")&&a.context!=="",P=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);E.forEach(C=>{this.isValidLookup(i)||(l=C,!Yi[`${P[0]}-${C}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Yi[`${P[0]}-${C}`]=!0,this.logger.warn(`key "${s}" for languages "${P.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),P.forEach(O=>{if(this.isValidLookup(i))return;o=O;const w=[_];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(w,_,O,C,a);else{let F;m&&(F=this.pluralResolver.getSuffix(O,a.count,a));const q=`${this.options.pluralSeparator}zero`,se=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(w.push(_+F),a.ordinal&&F.indexOf(se)===0&&w.push(_+F.replace(se,this.options.pluralSeparator)),T&&w.push(_+q)),I){const G=`${_}${this.options.contextSeparator}${a.context}`;w.push(G),m&&(w.push(G+F),a.ordinal&&F.indexOf(se)===0&&w.push(G+F.replace(se,this.options.pluralSeparator)),T&&w.push(G+q))}}let at;for(;at=w.pop();)this.isValidLookup(i)||(n=at,i=this.getResource(O,C,at,a))}))})}),{res:i,usedKey:s,exactUsedKey:n,usedLng:o,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,a,i,s):this.resourceStore.getResource(t,a,i,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!b(t.replace);let s=i?t.replace:t;if(i&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!i){s={...s};for(const n of a)delete s[n]}return s}static hasDefaultValue(t){const a="defaultValue";for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&a===i.substring(0,a.length)&&t[i]!==void 0)return!0;return!1}}const ya=e=>e.charAt(0).toUpperCase()+e.slice(1);class Pi{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=le.create("languageUtils")}getScriptPartFromCode(t){if(t=vt(t),!t||t.indexOf("-")<0)return null;const a=t.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(t){if(t=vt(t),!t||t.indexOf("-")<0)return t;const a=t.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(t){if(b(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let s=Intl.getCanonicalLocales(t)[0];if(s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s)return s}catch{}const a=["hans","hant","latn","cyrl","cans","mong","arab"];let i=t.split("-");return this.options.lowerCaseLng?i=i.map(s=>s.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),a.indexOf(i[1].toLowerCase())>-1&&(i[1]=ya(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),a.indexOf(i[1].toLowerCase())>-1&&(i[1]=ya(i[1].toLowerCase())),a.indexOf(i[2].toLowerCase())>-1&&(i[2]=ya(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let a;return t.forEach(i=>{if(a)return;const s=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(s))&&(a=s)}),!a&&this.options.supportedLngs&&t.forEach(i=>{if(a)return;const s=this.getLanguagePartFromCode(i);if(this.isSupportedCode(s))return a=s;a=this.options.supportedLngs.find(n=>{if(n===s)return n;if(!(n.indexOf("-")<0&&s.indexOf("-")<0)&&(n.indexOf("-")>0&&s.indexOf("-")<0&&n.substring(0,n.indexOf("-"))===s||n.indexOf(s)===0&&s.length>1))return n})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(t,a){if(!t)return[];if(typeof t=="function"&&(t=t(a)),b(t)&&(t=[t]),Array.isArray(t))return t;if(!a)return t.default||[];let i=t[a];return i||(i=t[this.getScriptPartFromCode(a)]),i||(i=t[this.formatLanguageCode(a)]),i||(i=t[this.getLanguagePartFromCode(a)]),i||(i=t.default),i||[]}toResolveHierarchy(t,a){const i=this.getFallbackCodes(a||this.options.fallbackLng||[],t),s=[],n=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return b(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&n(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&n(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&n(this.getLanguagePartFromCode(t))):b(t)&&n(this.formatLanguageCode(t)),i.forEach(o=>{s.indexOf(o)<0&&n(this.formatLanguageCode(o))}),s}}let $c=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],zc={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const qc=["v1","v2","v3"],Kc=["v4"],Wi={zero:0,one:1,two:2,few:3,many:4,other:5},Jc=()=>{const e={};return $c.forEach(t=>{t.lngs.forEach(a=>{e[a]={numbers:t.nr,plurals:zc[t.fc]}})}),e};class Zc{constructor(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=a,this.logger=le.create("pluralResolver"),(!this.options.compatibilityJSON||Kc.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Jc(),this.pluralRulesCache={}}addRule(t,a){this.rules[t]=a}clearCache(){this.pluralRulesCache={}}getRule(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const i=vt(t==="dev"?"en":t),s=a.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:i,type:s});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];let o;try{o=new Intl.PluralRules(i,{type:s})}catch{if(!t.match(/-|_/))return;const h=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(h,a)}return this.pluralRulesCache[n]=o,o}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(t,a);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(s=>`${a}${s}`)}getSuffixes(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(t,a);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((s,n)=>Wi[s]-Wi[n]).map(s=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${s}`):i.numbers.map(s=>this.getSuffix(t,s,a)):[]}getSuffix(t,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,i);return s?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(a)}`:this.getSuffixRetroCompatible(s,a):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,a){const i=t.noAbs?t.plurals(a):t.plurals(Math.abs(a));let s=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const n=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:n():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?n():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!qc.includes(this.options.compatibilityJSON)}}const Hi=function(e,t,a){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,n=Pc(e,t,a);return!n&&s&&b(a)&&(n=Sa(e,a,i),n===void 0&&(n=Sa(t,a,i))),n},Ma=e=>e.replace(/\$/g,"$$$$");class Xc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=le.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(a=>a),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:a,escapeValue:i,useRawValueToEscape:s,prefix:n,prefixEscaped:o,suffix:l,suffixEscaped:h,formatSeparator:f,unescapeSuffix:_,unescapePrefix:E,nestingPrefix:m,nestingPrefixEscaped:T,nestingSuffix:I,nestingSuffixEscaped:P,nestingOptionsSeparator:C,maxReplaces:O,alwaysFormat:w}=t.interpolation;this.escape=a!==void 0?a:Hc,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=n?Ye(n):o||"{{",this.suffix=l?Ye(l):h||"}}",this.formatSeparator=f||",",this.unescapePrefix=_?"":E||"-",this.unescapeSuffix=this.unescapePrefix?"":_||"",this.nestingPrefix=m?Ye(m):T||Ye("$t("),this.nestingSuffix=I?Ye(I):P||Ye(")"),this.nestingOptionsSeparator=C||",",this.maxReplaces=O||1e3,this.alwaysFormat=w!==void 0?w:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(a,i)=>a&&a.source===i?(a.lastIndex=0,a):new RegExp(i,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,a,i,s){let n,o,l;const h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=T=>{if(T.indexOf(this.formatSeparator)<0){const O=Hi(a,h,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(O,void 0,i,{...s,...a,interpolationkey:T}):O}const I=T.split(this.formatSeparator),P=I.shift().trim(),C=I.join(this.formatSeparator).trim();return this.format(Hi(a,h,P,this.options.keySeparator,this.options.ignoreJSONStructure),C,i,{...s,...a,interpolationkey:P})};this.resetRegExp();const _=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,E=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:T=>Ma(T)},{regex:this.regexp,safeValue:T=>this.escapeValue?Ma(this.escape(T)):Ma(T)}].forEach(T=>{for(l=0;n=T.regex.exec(t);){const I=n[1].trim();if(o=f(I),o===void 0)if(typeof _=="function"){const C=_(t,n,s);o=b(C)?C:""}else if(s&&Object.prototype.hasOwnProperty.call(s,I))o="";else if(E){o=n[0];continue}else this.logger.warn(`missed to pass in variable ${I} for interpolating ${t}`),o="";else!b(o)&&!this.useRawValueToEscape&&(o=ki(o));const P=T.safeValue(o);if(t=t.replace(n[0],P),E?(T.regex.lastIndex+=o.length,T.regex.lastIndex-=n[0].length):T.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,n,o;const l=(h,f)=>{const _=this.nestingOptionsSeparator;if(h.indexOf(_)<0)return h;const E=h.split(new RegExp(`${_}[ ]*{`));let m=`{${E[1]}`;h=E[0],m=this.interpolate(m,o);const T=m.match(/'/g),I=m.match(/"/g);(T&&T.length%2===0&&!I||I.length%2!==0)&&(m=m.replace(/'/g,'"'));try{o=JSON.parse(m),f&&(o={...f,...o})}catch(P){return this.logger.warn(`failed parsing options string in nesting for key ${h}`,P),`${h}${_}${m}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,h};for(;s=this.nestingRegexp.exec(t);){let h=[];o={...i},o=o.replace&&!b(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let f=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const _=s[1].split(this.formatSeparator).map(E=>E.trim());s[1]=_.shift(),h=_,f=!0}if(n=a(l.call(this,s[1].trim(),o),o),n&&s[0]===t&&!b(n))return n;b(n)||(n=ki(n)),n||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),n=""),f&&(n=h.reduce((_,E)=>this.format(_,E,i.lng,{...i,interpolationkey:s[1].trim()}),n.trim())),t=t.replace(s[0],n),this.regexp.lastIndex=0}return t}}const eh=e=>{let t=e.toLowerCase().trim();const a={};if(e.indexOf("(")>-1){const i=e.split("(");t=i[0].toLowerCase().trim();const s=i[1].substring(0,i[1].length-1);t==="currency"&&s.indexOf(":")<0?a.currency||(a.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?a.range||(a.range=s.trim()):s.split(";").forEach(o=>{if(o){const[l,...h]=o.split(":"),f=h.join(":").trim().replace(/^'+|'+$/g,""),_=l.trim();a[_]||(a[_]=f),f==="false"&&(a[_]=!1),f==="true"&&(a[_]=!0),isNaN(f)||(a[_]=parseInt(f,10))}})}return{formatName:t,formatOptions:a}},Pe=e=>{const t={};return(a,i,s)=>{let n=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(n={...n,[s.interpolationkey]:void 0});const o=i+JSON.stringify(n);let l=t[o];return l||(l=e(vt(i),s),t[o]=l),l(a)}};class th{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=le.create("formatter"),this.options=t,this.formats={number:Pe((a,i)=>{const s=new Intl.NumberFormat(a,{...i});return n=>s.format(n)}),currency:Pe((a,i)=>{const s=new Intl.NumberFormat(a,{...i,style:"currency"});return n=>s.format(n)}),datetime:Pe((a,i)=>{const s=new Intl.DateTimeFormat(a,{...i});return n=>s.format(n)}),relativetime:Pe((a,i)=>{const s=new Intl.RelativeTimeFormat(a,{...i});return n=>s.format(n,i.range||"day")}),list:Pe((a,i)=>{const s=new Intl.ListFormat(a,{...i});return n=>s.format(n)})},this.init(t)}init(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=a.interpolation.formatSeparator||","}add(t,a){this.formats[t.toLowerCase().trim()]=a}addCached(t,a){this.formats[t.toLowerCase().trim()]=Pe(a)}format(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const n=a.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&n[0].indexOf(")")<0&&n.find(l=>l.indexOf(")")>-1)){const l=n.findIndex(h=>h.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,l)].join(this.formatSeparator)}return n.reduce((l,h)=>{const{formatName:f,formatOptions:_}=eh(h);if(this.formats[f]){let E=l;try{const m=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},T=m.locale||m.lng||s.locale||s.lng||i;E=this.formats[f](l,T,{..._,...s,...m})}catch(m){this.logger.warn(m)}return E}else this.logger.warn(`there was no format function for ${f}`);return l},t)}}const ah=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class ih extends Ot{constructor(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=a,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=le.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,s.backend,s)}queueLoad(t,a,i,s){const n={},o={},l={},h={};return t.forEach(f=>{let _=!0;a.forEach(E=>{const m=`${f}|${E}`;!i.reload&&this.store.hasResourceBundle(f,E)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?o[m]===void 0&&(o[m]=!0):(this.state[m]=1,_=!1,o[m]===void 0&&(o[m]=!0),n[m]===void 0&&(n[m]=!0),h[E]===void 0&&(h[E]=!0)))}),_||(l[f]=!0)}),(Object.keys(n).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(n),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(h)}}loaded(t,a,i){const s=t.split("|"),n=s[0],o=s[1];a&&this.emit("failedLoading",n,o,a),!a&&i&&this.store.addResourceBundle(n,o,i,void 0,void 0,{skipCopy:!0}),this.state[t]=a?-1:2,a&&i&&(this.state[t]=0);const l={};this.queue.forEach(h=>{Yc(h.loaded,[n],o),ah(h,t),a&&h.errors.push(a),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(f=>{l[f]||(l[f]={});const _=h.loaded[f];_.length&&_.forEach(E=>{l[f][E]===void 0&&(l[f][E]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(h=>!h.done)}read(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:a,fcName:i,tried:s,wait:n,callback:o});return}this.readingCalls++;const l=(f,_)=>{if(this.readingCalls--,this.waitingReads.length>0){const E=this.waitingReads.shift();this.read(E.lng,E.ns,E.fcName,E.tried,E.wait,E.callback)}if(f&&_&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,a,i,s+1,n*2,o)},n);return}o(f,_)},h=this.backend[i].bind(this.backend);if(h.length===2){try{const f=h(t,a);f&&typeof f.then=="function"?f.then(_=>l(null,_)).catch(l):l(null,f)}catch(f){l(f)}return}return h(t,a,l)}prepareLoading(t,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();b(t)&&(t=this.languageUtils.toResolveHierarchy(t)),b(a)&&(a=[a]);const n=this.queueLoad(t,a,i,s);if(!n.toLoad.length)return n.pending.length||s(),null;n.toLoad.forEach(o=>{this.loadOne(o)})}load(t,a,i){this.prepareLoading(t,a,{},i)}reload(t,a,i){this.prepareLoading(t,a,{reload:!0},i)}loadOne(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=t.split("|"),s=i[0],n=i[1];this.read(s,n,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${a}loading namespace ${n} for language ${s} failed`,o),!o&&l&&this.logger.log(`${a}loaded namespace ${n} for language ${s}`,l),this.loaded(t,o,l)})}saveMissing(t,a,i,s,n){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn(`did not save key "${i}" as the namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){const h={...o,isUpdate:n},f=this.backend.create.bind(this.backend);if(f.length<6)try{let _;f.length===5?_=f(t,a,i,s,h):_=f(t,a,i,s),_&&typeof _.then=="function"?_.then(E=>l(null,E)).catch(l):l(null,_)}catch(_){l(_)}else f(t,a,i,s,l,h)}!t||!t[0]||this.store.addResource(t[0],a,i,s)}}}const Fi=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),b(e[1])&&(t.defaultValue=e[1]),b(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const a=e[3]||e[2];Object.keys(a).forEach(i=>{t[i]=a[i]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ji=e=>(b(e.ns)&&(e.ns=[e.ns]),b(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),b(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Ct=()=>{},sh=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(a=>{typeof e[a]=="function"&&(e[a]=e[a].bind(e))})};class et extends Ot{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ji(t),this.services={},this.logger=le,this.modules={external:[]},sh(this),a&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,a),this;setTimeout(()=>{this.init(t,a)},0)}}init(){var t=this;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof a=="function"&&(i=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(b(a.ns)?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));const s=Fi();this.options={...s,...this.options,...ji(a)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);const n=_=>_?typeof _=="function"?new _:_:null;if(!this.options.isClone){this.modules.logger?le.init(n(this.modules.logger),this.options):le.init(null,this.options);let _;this.modules.formatter?_=this.modules.formatter:typeof Intl<"u"&&(_=th);const E=new Pi(this.options);this.store=new Vi(this.options.resources,this.options);const m=this.services;m.logger=le,m.resourceStore=this.store,m.languageUtils=E,m.pluralResolver=new Zc(E,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),_&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(m.formatter=n(_),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new Xc(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new ih(n(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(T){for(var I=arguments.length,P=new Array(I>1?I-1:0),C=1;C<I;C++)P[C-1]=arguments[C];t.emit(T,...P)}),this.modules.languageDetector&&(m.languageDetector=n(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=n(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new xt(this.services,this.options),this.translator.on("*",function(T){for(var I=arguments.length,P=new Array(I>1?I-1:0),C=1;C<I;C++)P[C-1]=arguments[C];t.emit(T,...P)}),this.modules.external.forEach(T=>{T.init&&T.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Ct),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const _=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);_.length>0&&_[0]!=="dev"&&(this.options.lng=_[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(_=>{this[_]=function(){return t.store[_](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(_=>{this[_]=function(){return t.store[_](...arguments),t}});const h=Ze(),f=()=>{const _=(E,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(m),i(E,m)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return _(null,this.t.bind(this));this.changeLanguage(this.options.lng,_)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),h}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ct;const s=b(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const n=[],o=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(f=>{f!=="cimode"&&n.indexOf(f)<0&&n.push(f)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>o(h)),this.options.preload&&this.options.preload.forEach(l=>o(l)),this.services.backendConnector.load(n,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,a,i){const s=Ze();return typeof t=="function"&&(i=t,t=void 0),typeof a=="function"&&(i=a,a=void 0),t||(t=this.languages),a||(a=this.options.ns),i||(i=Ct),this.services.backendConnector.reload(t,a,n=>{s.resolve(),i(n)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Ui.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let a=0;a<this.languages.length;a++){const i=this.languages[a];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,a){var i=this;this.isLanguageChangingTo=t;const s=Ze();this.emit("languageChanging",t);const n=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},o=(h,f)=>{f?(n(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,s.resolve(function(){return i.t(...arguments)}),a&&a(h,function(){return i.t(...arguments)})},l=h=>{!t&&!h&&this.services.languageDetector&&(h=[]);const f=b(h)?h:this.services.languageUtils.getBestMatchFromCodes(h);f&&(this.language||n(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,_=>{o(_,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),s}getFixedT(t,a,i){var s=this;const n=function(o,l){let h;if(typeof l!="object"){for(var f=arguments.length,_=new Array(f>2?f-2:0),E=2;E<f;E++)_[E-2]=arguments[E];h=s.options.overloadTranslationOptionHandler([o,l].concat(_))}else h={...l};h.lng=h.lng||n.lng,h.lngs=h.lngs||n.lngs,h.ns=h.ns||n.ns,h.keyPrefix!==""&&(h.keyPrefix=h.keyPrefix||i||n.keyPrefix);const m=s.options.keySeparator||".";let T;return h.keyPrefix&&Array.isArray(o)?T=o.map(I=>`${h.keyPrefix}${m}${I}`):T=h.keyPrefix?`${h.keyPrefix}${m}${o}`:o,s.t(T,h)};return b(t)?n.lng=t:n.lngs=t,n.ns=a,n.keyPrefix=i,n}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=a.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,n=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const o=(l,h)=>{const f=this.services.backendConnector.state[`${l}|${h}`];return f===-1||f===0||f===2};if(a.precheck){const l=a.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(i,t)&&(!s||o(n,t)))}loadNamespaces(t,a){const i=Ze();return this.options.ns?(b(t)&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{i.resolve(),a&&a(s)}),i):(a&&a(),Promise.resolve())}loadLanguages(t,a){const i=Ze();b(t)&&(t=[t]);const s=this.options.preload||[],n=t.filter(o=>s.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return n.length?(this.options.preload=s.concat(n),this.loadResources(o=>{i.resolve(),a&&a(o)}),i):(a&&a(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new Pi(Fi());return a.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;return new et(t,a)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ct;const i=t.forkResourceStore;i&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},n=new et(s);return(t.debug!==void 0||t.prefix!==void 0)&&(n.logger=n.logger.clone(t)),["store","services","language"].forEach(l=>{n[l]=this[l]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},i&&(n.store=new Vi(this.store.data,s),n.services.resourceStore=n.store),n.translator=new xt(n.services,s),n.translator.on("*",function(l){for(var h=arguments.length,f=new Array(h>1?h-1:0),_=1;_<h;_++)f[_-1]=arguments[_];n.emit(l,...f)}),n.init(s,a),n.translator.options=s,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const B=et.createInstance();B.createInstance=et.createInstance,B.createInstance,B.dir,B.init,B.loadResources,B.reloadResources,B.use,B.changeLanguage,B.getFixedT;const We=B.t;B.exists,B.setDefaultNamespace,B.hasLoadedNamespace,B.loadNamespaces,B.loadLanguages;var g=(e=>(e.BASIC="BASIC",e.COMMON="COMMON",e.RARE="RARE",e.EPIC="EPIC",e.LEGENDARY="LEGENDARY",e.MYTHIC="MYTHIC",e))(g||{});g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC;const u={BASIC:{color:"#fff",strength:0,id:g.BASIC,name:(e,t=1)=>We(`ranks.${g.BASIC}.text`,{count:t,context:e,ns:"common"})},COMMON:{color:"#813D31",strength:1,id:g.COMMON,name:(e,t=1)=>We(`ranks.${g.COMMON}.text`,{count:t,context:e,ns:"common"})},RARE:{color:"#5B6870",strength:2,id:g.RARE,name:(e,t=1)=>We(`ranks.${g.RARE}.text`,{count:t,context:e,ns:"common"})},EPIC:{color:"#C46619",strength:3,id:g.EPIC,name:(e,t=1)=>We(`ranks.${g.EPIC}.text`,{count:t,context:e,ns:"common"})},LEGENDARY:{color:"#88A3CB",strength:4,id:g.LEGENDARY,name:(e,t=1)=>We(`ranks.${g.LEGENDARY}.text`,{count:t,context:e,ns:"common"})},MYTHIC:{color:"#F6bF62",strength:5,id:g.MYTHIC,name:(e,t=1)=>We(`ranks.${g.MYTHIC}.text`,{count:t,context:e,ns:"common"})}},Ta="background_default",A={exploration:{id:"writeChat",img:"exploration",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:Explorateurbois:1175507909518573578>","<:Explorateurargent:1175508452467015680>","<:Explorateuror:1175507917642932245>","<:Explorateurplatine:1175507920587329586>","<:Explorateurultime:1175507922818699334>"],crew:!1},ecrire:{id:"sendMessage",img:"ecrire",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:Spammeurbois:1175508156785365003>","<:Spammeurargent:1175507962249351268>","<:Spammeuror:1175507966808572007>","<:Spammeurplatine:1175507968293339167>","<:Spammeurultime:1175507863460913222>"],crew:!1},ermite:{id:"timeInVoice",img:"ermite",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:Ermitebois:1175507899875868672>","<:Ermiteargent:1175508498138796153>","<:Ermiteor:1175508465746182305>","<:Ermiteplatine:1175507904695124028>","<:Ermiteultime:1175507906041499749>"],crew:!1},berry:{id:"berry",img:"berry",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:ElonMuskbois:1175507891600498758>","<:ElonMuskargent:1175508764988801034>","<:ElonMuskor:1175508756700856390>","<:ElonMuskplatine:1175508739386789928>","<:ElonMuskultime:1175507895668985886>"],crew:!1},mode:{id:"spendShop",img:"mode",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:FashionViktimbois:1175508381436485672>","<:FashionViktimargent:1175507924873904128>","<:FashionViktimor:1175507926719414406>","<:FashionViktimplatine:1175508345562599445>","<:FashionViktimultime:1175507931517698088>"],crew:!1},noluck:{id:"noLuck",img:"noluck",isProgressive:!1,emojis:"<:BadluckPlatine:1175507878048702505>",crew:!1},chance:{id:"chance",img:"chance",isProgressive:!1,emojis:"<:BadgeChanceux:1192743999514103869>",crew:!1},casino:{id:"casino",img:"casino",isProgressive:[g.LEGENDARY,g.MYTHIC],emojis:["<:GamblingAddict:1175507934223016047>","<:GamblingAddictDiamond:1187147920647131207>"],crew:!1},premium:{id:"premium",img:"premium",isProgressive:!1,emojis:"<:BadgesDon:1175507876056399933>",crew:!1},calendar:{id:"calendar",img:"calendar",isProgressive:!1,emojis:"<:Calendrier:1187170872176431114>",crew:!1},doublesix:{id:"doublesix",img:"doublesix",isProgressive:!1,emojis:"<:DoubleSix:1187178228624937000>",crew:!1},"black-jack":{id:"blackJack",img:"black-jack",isProgressive:!1,emojis:"<:BlackJack:1187456310137069618>",crew:!1},communism:{id:"communism",img:"communism",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_communism_Bronze:1234375558184570902>","<:cropped_communism_Silver:1234375563729440789>","<:cropped_communism_Gold:1234375561154007103>","<:cropped_communism_Platinum:1234375562269687849>","<:cropped_communism_Diamond:1234375559811825705>"],crew:!0},crewship:{id:"crewship",img:"crewship",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_crewship_Bronze:1234458902641246260>","<:cropped_crewship_Silver:1234458908840431617>","<:cropped_crewship_Gold:1234458905694961724>","<:cropped_crewship_Platinum:1234458907741782038>","<:cropped_crewship_Diamond:1234458904100864000>"],crew:!0},broship:{id:"broship",img:"broship",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_broship_Bronze:1234537705292038175>","<:cropped_broship_Silver:1234537711214530652>","<:cropped_broship_Gold:1234537708047695892>","<:cropped_broship_Platinum:1234537710170013867>","<:cropped_broship_Diamond:1234537706810245161>"],crew:!0},shipsecte:{id:"shipsecte",img:"shipsecte",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_shipsecte_Bronze:1234547646023078009>","<:cropped_shipsecte_Silver:1234547651912011827>","<:cropped_shipsecte_Gold:1234547649160675408>","<:cropped_shipsecte_Platinum:1234547650414514267>","<:cropped_shipsecte_Diamond:1234547648011173888>"],crew:!0},sardine:{id:"sardine",img:"sardine",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_sardine_Bronze:1234549442799997010>","<:cropped_sardine_Silver:1234549449036927088>","<:cropped_sardine_Gold:1234549445916622988>","<:cropped_sardine_Platinum:1234549447518720050>","<:cropped_sardine_Diamond:1234549444738023484>"],crew:!0},carpenter:{id:"carpenter",img:"carpenter",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_carpenter_Bronze:1234555340964626495>","<:cropped_carpenter_Silver:1234555345935007764>","<:cropped_carpenter_Gold:1234555343317635153>","<:cropped_carpenter_Platinum:1234555344819191909>","<:cropped_carpenter_Diamond:1234555342143357072>"],crew:!0},camarade:{id:"camarade",img:"camarade",isProgressive:!1,emojis:"<:cropped_camarade:1234582024077967361>",crew:!0},selfish:{id:"selfish",img:"selfish",isProgressive:!1,emojis:"<:cropped_selfish:1234587373363527780>",crew:!0},recipe:{id:"recipe",img:"recipe",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_b_recipe_Bronze:1244357782573023282>","<:cropped_b_recipe_Silver:1244357788361031711>","<:cropped_b_recipe_Gold:1244357785555308574>","<:cropped_b_recipe_Platinum:1244357786750685225>","<:cropped_b_recipe_Diamond:1244357784397545526>"],crew:!1},craft:{id:"craft",img:"craft",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_b_craft_Bronze:1244357834452238447>","<:cropped_b_craft_Silver:1244357840513011722>","<:cropped_b_craft_Gold:1244357837333725306>","<:cropped_b_craft_Platinum:1244357838801735761>","<:cropped_b_craft_Diamond:1244357835735695401>"],crew:!1}},ba=e=>!!e.isProgressive,Aa={satan:"satan",idiot:"idiot",edito:"edito"},nh=e=>Math.round(5e3*Math.pow(200,.01*e)/10)*10,Qi=e=>e>=1?Qi(e-1)+nh(e):0,W=(e,t=0)=>e<Qi(t+1)?t:W(e,t+1),Bi=1,rh=[[200,4],[100,3],[50,2],[0,Bi]],oh=e=>{for(const[t,a]of rh)if(e>=t)return a;return Bi},x=e=>{let t=0;for(;e>0;e-=oh(t))t++;return t};class dh{title=void 0;titleId;badge;isFactionBadge;asset;items;secret;daily;crew;repeatable}var Ra=(e=>(e.COMPLETED="COMPLETED",e.IN_PROGRESS="IN_PROGRESS",e))(Ra||{});const Lt=e=>new Intl.NumberFormat("de-DE").format(e),lh=(e,t,a=i=>i)=>e.filter(i=>!t.some(s=>a(s)===a(i))),Gi=(e,t)=>[...new Set(e.map(a=>t(a)))],uh=e=>Object.fromEntries(e),ch=e=>e.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(t,a)=>a.toUpperCase()).replace(/^[A-Z]/,t=>t.toLowerCase()),hh=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,fh=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,$i=/(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,Da=[/^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],mh={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:$i,monthsShortRegex:$i,monthsStrictRegex:hh,monthsShortStrictRegex:fh,monthsParse:Da,longMonthsParse:Da,shortMonthsParse:Da,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:((e,t)=>{switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}}),week:{dow:1,doy:4}};S.locale("fr",mh);const zi=(e,t,a=!0)=>(a?e.getFullYear()===t.getFullYear():!0)&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),qi=e=>typeof e=="function",_h={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>"}},Ki=new Oo.EventEmitter,Ji="quest/COMPLETED_QUEST",Zi=(e,t)=>{Ki.emit(Ji,e,t)},ph=e=>{Ki.on(Ji,(t,a)=>{e(t,a)})};class c extends dh{static dependencies=[];async complete(t,a){const i=new Date;i.setHours(0,0,0,0);let s;if(!await this.isCompleted(t)&&(this.daily?s=await r.userQuestService.completeQuest({lastCompletionDate:{$lt:i},questId:this.id,user:t},!0):this.repeatable?s=await r.userQuestService.completeQuest({questId:this.id,user:t}):s=await r.userQuestService.completeQuest({questId:this.id,user:t,status:Ra.IN_PROGRESS}),!!s))return await this.specificQuestCompletion(t),await this.applyReward(t),a&&Zi([t],this),!0}async applyReward(t){this.crew||(this.titleId&&await r.userOrnamentService.unlockTitle(t,this.titleId),this.badge&&await r.userOrnamentService.unlockBadge(t,this.badge,this.rankId),this.isFactionBadge&&await r.userOrnamentService.unlockFactionBadge(t,this.rankId),this.asset&&await r.userOrnamentService.unlockProfileAsset(t,this.asset),this.items&&await r.userInventoryService.addItems(t,this.items))}async getComputedRewards(t){const{DailyAll:a}=await Promise.resolve().then(()=>fo),i=new a().id,s=this.daily?await r.userQuestService.getStreakMultiplier(t,i):1,n=await r.userMetaService.get(t);return{xp:(qi(this.xp)?this.xp(n):this.xp)*s,berry:(qi(this.berry)?this.berry(n):this.berry)*s}}async specificQuestCompletion(t){this.id==="be_level_10"&&await r.userService.canChooseFaction(t,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await r.userService.canChangeFaction(t,!0)}async isCompleted(t){const{lastCompletionDate:a,status:i}=await r.userQuestService.get({user:t,questId:this.id});return this.repeatable?!1:this.daily?i==="COMPLETED"&&!!a&&zi(a,new Date):i==="COMPLETED"}}class Xi extends c{name="Jeune étudiant";id="drink_50_alcohols";rankId=u.COMMON.id;description="Boire 50 alcools";berry=5e5;xp=2e4;titleId="title_Jeune étudiant";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.totalConsumed>=50}}class es extends c{name="Habitué des bars";id="drink_250_alcohols";rankId=u.RARE.id;description="Boire 250 alcools";berry=2e6;xp=5e4;titleId="title_Habitué des bars";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.totalConsumed>=250}}class ts extends c{name="Alcoolique notoire";id="drink_500_alcohols";rankId=u.EPIC.id;description="Boire 500 alcools";berry=1e7;xp=1e5;titleId="title_Alcoolique notoire";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.totalConsumed>=500}}class as extends c{name="Ivrogne";id="drink_1000_alcohols";rankId=u.LEGENDARY.id;description="Boire 1000 alcools";berry=5e7;xp=2e5;titleId="title_Ivrogne";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.totalConsumed>=1e3}}class is extends c{name="Breton";id="drink_2000_alcohols";rankId=u.MYTHIC.id;description="Boire 2000 alcools";berry=1e8;xp=5e5;titleId="title_Breton";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.totalConsumed>=2e3}}class ss extends c{name="Buveur de Rhum";id="drink_10_rhum";rankId=u.COMMON.id;description="Boire 10 Rhums";berry=5e5;xp=2e4;titleId="title_Buveur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.rhums>=10}}class ns extends c{name="Amateur de Rhum";id="drink_100_rhum";rankId=u.RARE.id;description="Boire 100 Rhums";berry=2e6;xp=5e4;titleId="title_Amateur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.rhums>=100}}class rs extends c{name="Connaisseur de Rhum";id="drink_250_rhum";rankId=u.EPIC.id;description="Boire 250 Rhums";berry=1e7;xp=1e5;titleId="title_Connaisseur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.rhums>=250}}class os extends c{name="Rhumologue";id="drink_500_rhum";rankId=u.LEGENDARY.id;description="Boire 500 Rhums";berry=5e7;xp=2e5;titleId="title_Rhumologue";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.rhums>=500}}class ds extends c{name="Dieu du Rhum";id="drink_1000_rhum";rankId=u.MYTHIC.id;description="Boire 1000 Rhums";berry=1e8;xp=5e5;titleId="title_Dieu du Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.rhums>=1e3}}class ls extends c{name="Buveur de Bière";id="drink_10_beer";rankId=u.COMMON.id;description="Boire 10 Bières";berry=5e5;xp=2e4;titleId="title_Buveur de Bière";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.beers>=10}}class us extends c{name="Amateur de Bière";id="drink_100_beer";rankId=u.RARE.id;description="Boire 100 Bières";berry=2e6;xp=5e4;titleId="title_Amateur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.beers>=100}}class cs extends c{name="Connaisseur de Bière";id="drink_250_beer";rankId=u.EPIC.id;description="Boire 250 Bières";berry=1e7;xp=1e5;titleId="title_Connaisseur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.beers>=250}}class hs extends c{name="Bièrologue";id="drink_500_beer";rankId=u.LEGENDARY.id;description="Boire 500 Bières";berry=5e7;xp=2e5;titleId="title_Bièrologue";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.beers>=500}}class fs extends c{name="Dieu de la Bière";id="drink_1000_beer";rankId=u.MYTHIC.id;description="Boire 1000 Bières";berry=1e8;xp=5e5;titleId="title_Dieu de la Bière";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.beers>=1e3}}class ms extends c{name="Buveur de Vin";id="drink_10_wine";rankId=u.COMMON.id;description="Boire 10 Vins";berry=5e5;xp=2e4;titleId="title_Buveur de Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.wines>=10}}class _s extends c{name="Amateur de Vin";id="drink_100_wine";rankId=u.RARE.id;description="Boire 100 Vins";berry=2e6;xp=5e4;titleId="title_Amateur de Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.wines>=100}}class ps extends c{name="Connaisseur de Vin";id="drink_250_wine";rankId=u.EPIC.id;description="Boire 250 Vins";berry=1e7;xp=1e5;titleId="title_Connaisseur de Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.wines>=250}}class gs extends c{name="Vinologue";id="drink_500_wine";rankId=u.LEGENDARY.id;description="Boire 500 Vins";berry=1e7;xp=2e5;titleId="title_Vinologue";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.wines>=500}}class Es extends c{name="Dieu du Vin";id="drink_1000_wine";rankId=u.MYTHIC.id;description="Boire 1000 Vins";berry=1e8;xp=5e5;titleId="title_Dieu du Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.wines>=1e3}}const gh=Object.freeze(Object.defineProperty({__proto__:null,Drink1000Alcohols:as,Drink1000Beer:fs,Drink1000Rhum:ds,Drink1000Wine:Es,Drink100Beer:us,Drink100Rhum:ns,Drink100Wine:_s,Drink10Beer:ls,Drink10Rhum:ss,Drink10Wine:ms,Drink2000Alcohols:is,Drink250Alcohols:es,Drink250Beer:cs,Drink250Rhum:rs,Drink250Wine:ps,Drink500Alcohols:ts,Drink500Beer:hs,Drink500Rhum:os,Drink500Wine:gs,Drink50Alcohols:Xi},Symbol.toStringTag,{value:"Module"}));class Ss extends c{name="Un poster dans ta chambre";id="have_1_background";rankId=u.EPIC.id;description="Avoir 1 background";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedBackgrounds:i}=t??await r.userOrnamentService.get(a);return i.filter(s=>s!==Ta).length>=1}}class ys extends c{name="Fan de One Piece";id="have_25_background";rankId=u.LEGENDARY.id;description="Avoir 25 backgrounds différents";berry=5e6;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedBackgrounds:i}=t??await r.userOrnamentService.get(a);return i.filter(s=>s!==Ta).length>=25}}class Ms extends c{name="Tu vas en faire quoi ? Tu peux en mettre qu'un";id="have_50_background";rankId=u.MYTHIC.id;description="Avoir 50 backgrounds différents";berry=5e7;xp=25e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedBackgrounds:i}=t??await r.userOrnamentService.get(a);return i.filter(s=>s!==Ta).length>=50}}const Eh=Object.freeze(Object.defineProperty({__proto__:null,Have1Background:Ss,Have25Background:ys,Have50Background:Ms},Symbol.toStringTag,{value:"Module"}));class Ts extends c{name="Enfin de quoi t'acheter un bon vélo !";id="have_500000_berry";rankId=u.COMMON.id;description="Avoir 500 000 Berrys";berry=1e5;xp=5e3;badge=A.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{berry:i}=t??await r.userMetaService.get(a);return i>=5e5}}class bs extends c{name="Ouah t'es multi-millionaire !";id="have_5000000_berry";rankId=u.RARE.id;description="Avoir 5 000 000 Berrys";berry=1e6;xp=25e3;badge=A.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{berry:i}=t??await r.userMetaService.get(a);return i>=5e6}}class As extends c{name="Presque riche";id="have_50000000_berry";rankId=u.EPIC.id;description="Avoir 50 000 000 Berrys";berry=1e7;xp=5e4;badge=A.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{berry:i}=t??await r.userMetaService.get(a);return i>=5e7}}class Rs extends c{name="Un 20m² à Paris";id="have_500000000_berry";rankId=u.LEGENDARY.id;description="Avoir 500 000 000 Berrys";berry=1e8;xp=1e5;badge=A.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{berry:i}=t??await r.userMetaService.get(a);return i>=5e8}}class Ds extends c{name="This is Elon Musk";id="have_5000000000_berry";rankId=u.MYTHIC.id;description="Avoir 5 000 000 000 Berrys";berry=1e9;xp=25e4;titleId="title_Elon Musk";badge=A.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{berry:i}=t??await r.userMetaService.get(a);return i>=5e9}}const Sh=Object.freeze(Object.defineProperty({__proto__:null,Have500kBerry:Ts,Have500mBerry:Rs,Have50mBerry:As,Have5mBerry:bs,Have5mdBerry:Ds},Symbol.toStringTag,{value:"Module"}));class Ns extends c{name="Petit joueur";id="bet_min_value";rankId=u.RARE.id;description="Mise la somme minimale lors d'un pari";berry=5e4;xp=1e4;secret=!0;titleId="title_Petit joueur";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{gamblingFlags:i}=t??await r.userStatsFlagsService.get(a);return i.betMin}}class Is extends c{name="On a tous le droit à une seconde chance";id="lose_everything";rankId=u.RARE.id;description="Perdre tous ses Berrys";berry=1e5;xp=1e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{gamblingFlags:i}=t??await r.userStatsFlagsService.get(a);return i.loseEverything}}class ws extends c{name="T'es sûr de toi ?";id="bet_10M";rankId=u.EPIC.id;description="Miser 10 000 000 de Berrys en une seule fois";berry=5e5;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{gamblingFlags:i}=t??await r.userStatsFlagsService.get(a);return i.bet10M}}class vs extends c{name="Ok j'ai rien dit";id="win_10M_bet";rankId=u.LEGENDARY.id;description="Gagner en ayant misé 10M de Berrys";berry=1e6;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{gamblingFlags:i}=t??await r.userStatsFlagsService.get(a);return i.winBet10M}}class ks extends c{name="T'es accro là non ?";id="bet_total_10M";rankId=u.LEGENDARY.id;description="Miser plus de 10 000 000 de Berrys en tout";berry=1e6;xp=1e5;titleId="title_Gambling addict";badge=A.casino;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{totalBet:i}=t??await r.userStatsCasinoService.get(a);return i>=1e7}}class Os extends c{name="LE MILLIARD";id="bet_total_1Md";rankId=u.MYTHIC.id;description="Miser plus de 1 000 000 000 de Berrys en tout";berry=5e7;xp=25e4;badge=A.casino;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{totalBet:i}=t??await r.userStatsCasinoService.get(a);return i>=1e9}}class xs extends c{name="Cheh !";id="lose_10M";rankId=u.LEGENDARY.id;description="Perdre 10M de Berrys en une fois";berry=1e6;xp=1e5;secret=!0;badge=A.noluck;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{gamblingFlags:i}=t??await r.userStatsFlagsService.get(a);return i.lose10M}}const yh=Object.freeze(Object.defineProperty({__proto__:null,Bet10M:ws,BetMinValue:Ns,Lose10M:xs,LoseEverything:Is,TotalBet10M:ks,TotalBet1Md:Os,WinOn10MBet:vs},Symbol.toStringTag,{value:"Module"}));class Cs extends c{name="Bon anniversaire !";id="birthday";rankId=u.EPIC.id;description="Fêter son anniversaire";berry=1e6;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{hasCelebrateBirthday:i}=t??await r.userStatsFlagsService.get(a);return i}}const Mh=Object.freeze(Object.defineProperty({__proto__:null,Birthday:Cs},Symbol.toStringTag,{value:"Module"}));class Ls extends c{name="Il ne va pas te répondre tu sais ?";id="bot_ping";rankId=u.EPIC.id;description="Ping le bot 100 fois";berry=25e4;xp=25e3;secret=!0;titleId="title_Teubé";asset=Aa.idiot;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{botPingCount:i}=t??await r.userStatsFlagsService.get(a);return i>=100}}const Th=Object.freeze(Object.defineProperty({__proto__:null,BotPing:Ls},Symbol.toStringTag,{value:"Module"}));class Vs extends c{name="5 jours / semaine à Basic Fit";id="have_25_strength";rankId=u.COMMON.id;description="Avoir 25 de force";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.strength)>=25}}class Us extends c{name="La fonte > les livres";id="have_50_strength";rankId=u.RARE.id;description="Avoir 50 de force";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.strength)>=50}}class Ys extends c{name="Moi, musclé ?";id="have_100_strength";rankId=u.EPIC.id;description="Avoir 100 de force";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.strength)>=100}}class Ps extends c{name="Hercules";id="have_250_strength";rankId=u.LEGENDARY.id;description="Avoir 250 de force";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.strength)>=250}}class Ws extends c{name="Titan";id="have_500_strength";rankId=u.MYTHIC.id;description="Avoir 500 de force";berry=5e7;xp=25e4;titleId="title_Titan";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.strength)>=500}}class Hs extends c{name="Chat de gouttière";id="have_25_agility";rankId=u.COMMON.id;description="Avoir 25 d'agilité";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.agility)>=25}}class Fs extends c{name="Hop ! Grand écart !";id="have_50_agility";rankId=u.RARE.id;description="Avoir 50 d'agilité";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.agility)>=50}}class js extends c{name="Danseur étoile";id="have_100_agility";rankId=u.EPIC.id;description="Avoir 100 d'agilité";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.agility)>=100}}class Qs extends c{name="L'Éclair de Konoha ! (merde mauvais manga)";id="have_250_agility";rankId=u.LEGENDARY.id;description="Avoir 250 d'agilité";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.agility)>=250}}class Bs extends c{name="Héritier de Bon Clay";id="have_500_agility";rankId=u.MYTHIC.id;description="Avoir 500 d'agilité";berry=5e7;xp=25e4;titleId="title_Héritier de Bon Clay";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.agility)>=500}}class Gs extends c{name="2+2 = 4";id="have_25_intelligence";rankId=u.COMMON.id;description="Avoir 25 d'intelligence";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.intelligence)>=25}}class $s extends c{name="Petit Einstein";id="have_50_intelligence";rankId=u.RARE.id;description="Avoir 50 d'intelligence";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.intelligence)>=50}}class zs extends c{name="HPI";id="have_100_intelligence";rankId=u.EPIC.id;description="Avoir 100 d'intelligence";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.intelligence)>=100}}class qs extends c{name="Sorcier du savoir";id="have_250_intelligence";rankId=u.LEGENDARY.id;description="Avoir 250 d'intelligence";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.intelligence)>=250}}class Ks extends c{name="Héritier de Vegapunk";id="have_500_intelligence";rankId=u.MYTHIC.id;description="Avoir 500 d'intelligence";berry=5e7;xp=25e4;titleId="title_Héritier de Vegapunk";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.intelligence)>=500}}class Js extends c{name="Touche du bois";id="have_25_chance";rankId=u.COMMON.id;description="Avoir 25 de chance";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.chance)>=25}}class Zs extends c{name="Petit veinard";id="have_50_chance";rankId=u.RARE.id;description="Avoir 50 de chance";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.chance)>=50}}class Xs extends c{name="LA CHAAAAAATTE !";id="have_100_chance";rankId=u.EPIC.id;description="Avoir 100 de chance";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.chance)>=100}}class en extends c{name="Favori des Astres";id="have_250_chance";rankId=u.LEGENDARY.id;description="Avoir 250 de chance";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.chance)>=250}}class tn extends c{name="Héritier de Baggy";id="have_500_chance";rankId=u.MYTHIC.id;description="Avoir 500 de chance";berry=5e7;xp=25e4;titleId="title_Héritier de Baggy";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.chance)>=500}}class an extends c{name="Résistant";id="have_25_vitality";rankId=u.COMMON.id;description="Avoir 25 de vitalité";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.vitality)>=25}}class sn extends c{name="Solide comme un roc";id="have_50_vitality";rankId=u.RARE.id;description="Avoir 50 de vitalité";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.vitality)>=50}}class nn extends c{name="Le tank !";id="have_100_vitality";rankId=u.EPIC.id;description="Avoir 100 de vitalité";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.vitality)>=100}}class rn extends c{name="Mais t'es increvable !";id="have_250_vitality";rankId=u.LEGENDARY.id;description="Avoir 250 de vitalité";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.vitality)>=250}}class on extends c{name="Héritier de Kaido";id="have_500_vitality";rankId=u.MYTHIC.id;description="Avoir 500 de vitalité";berry=5e7;xp=25e4;titleId="title_Héritier de Kaido";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.vitality)>=500}}class dn extends c{name="Tu as lu des livres ?";id="have_25_wisdom";rankId=u.COMMON.id;description="Avoir 25 de sagesse";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.wisdom)>=25}}class ln extends c{name="Filozof";id="have_50_wisdom";rankId=u.RARE.id;description="Avoir 50 de sagesse";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.wisdom)>=50}}class un extends c{name="Platon";id="have_100_wisdom";rankId=u.EPIC.id;description="Avoir 100 de sagesse";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.wisdom)>=100}}class cn extends c{name="Oracle vénéré";id="have_250_wisdom";rankId=u.LEGENDARY.id;description="Avoir 250 de sagesse";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.wisdom)>=250}}class hn extends c{name="Héritier d'Ohara";id="have_500_wisdom";rankId=u.MYTHIC.id;description="Avoir 500 de sagesse";berry=5e7;xp=25e4;titleId="title_Héritier d'Ohara";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.wisdom)>=500}}const bh=Object.freeze(Object.defineProperty({__proto__:null,Have100Agility:js,Have100Chance:Xs,Have100Intelligence:zs,Have100Strength:Ys,Have100Vitality:nn,Have100Wisdom:un,Have250Agility:Qs,Have250Chance:en,Have250Intelligence:qs,Have250Strength:Ps,Have250Vitality:rn,Have250Wisdom:cn,Have25Agility:Hs,Have25Chance:Js,Have25Intelligence:Gs,Have25Strength:Vs,Have25Vitality:an,Have25Wisdom:dn,Have500Agility:Bs,Have500Chance:tn,Have500Intelligence:Ks,Have500Strength:Ws,Have500Vitality:on,Have500Wisdom:hn,Have50Agility:Fs,Have50Chance:Zs,Have50Intelligence:$s,Have50Strength:Us,Have50Vitality:sn,Have50Wisdom:ln},Symbol.toStringTag,{value:"Module"}));class fn extends c{name="Ils font mieux chez Ikea";id="craft_20_times";rankId=u.COMMON.id;description="Effectuer 20 crafts";berry=5e4;xp=5e3;badge=A.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.totalCrafted>=20}}class mn extends c{name="Te fais pas mal avec le marteau";id="craft_50_times";rankId=u.RARE.id;description="Effectuer 50 crafts";berry=2e5;xp=25e3;badge=A.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.totalCrafted>=50}}class _n extends c{name="Insensible aux échardes on dirait";id="craft_200_times";rankId=u.EPIC.id;description="Effectuer 200 crafts";berry=1e6;xp=5e4;badge=A.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.totalCrafted>=200}}class pn extends c{name="Je ne veux pas voir l'état de ton atelier";id="craft_500_times";rankId=u.LEGENDARY.id;description="Effectuer 500 crafts";berry=1e6;xp=1e5;badge=A.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.totalCrafted>=500}}class gn extends c{name="Mac Gyver";id="craft_1000_times";rankId=u.MYTHIC.id;description="Effectuer 1000 crafts";berry=5e7;xp=25e4;titleId="title_Mac Gyver";badge=A.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.totalCrafted>=1e3}}class En extends c{name="Apprenti Gourmand";id="craft_10_cooked_meals";rankId=u.COMMON.id;description="Cuisiner 10 plats";berry=5e5;xp=2e4;titleId="title_Apprenti Gourmand";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.cookedMeal>=10}}class Sn extends c{name="Chef Amateur";id="craft_50_cooked_meals";rankId=u.RARE.id;description="Cuisiner 50 plats";berry=2e5;xp=5e4;titleId="title_Chef Amateur";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.cookedMeal>=50}}class yn extends c{name="Maître des Saveurs";id="craft_100_cooked_meals";rankId=u.EPIC.id;description="Cuisiner 100 plats";berry=1e7;xp=1e5;titleId="title_Maître des Saveurs";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.cookedMeal>=100}}class Mn extends c{name="Artiste Culinaire";id="craft_250_cooked_meals";rankId=u.LEGENDARY.id;description="Cuisiner 250 plats";berry=5e7;xp=2e5;titleId="title_Artiste Culinaire";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.cookedMeal>=250}}class Tn extends c{name="Sultan des Épices";id="craft_500_cooked_meals";rankId=u.MYTHIC.id;description="Cuisiner 500 plats";berry=1e8;xp=5e5;titleId="title_Sultan des Épices";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.cookedMeal>=500}}class bn extends c{name="C'est une bonne situation ça scribe ?";id="craft_5_scrolls";rankId=u.COMMON.id;description="Craft 5 Parchemins";berry=5e5;xp=2e4;titleId="title_Apprenti Scribe";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.scrolls>=5}}class An extends c{name="Artisan des Runes";id="craft_10_scrolls";rankId=u.RARE.id;description="Craft 10 Parchemins";berry=2e6;xp=5e4;titleId="title_Artisan des Runes";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.scrolls>=10}}class Rn extends c{name="Collectionneur des Manuscrits";id="craft_20_scrolls";rankId=u.EPIC.id;description="Craft 20 Parchemins";berry=1e7;xp=1e5;titleId="title_Collectionneur de Manuscrits";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.scrolls>=20}}class Dn extends c{name="Maître des Enluminures";id="craft_50_scrolls";rankId=u.LEGENDARY.id;description="Craft 50 Parchemins";berry=5e7;xp=2e5;titleId="title_Maître des Enluminures";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.scrolls>=50}}class Nn extends c{name="Protecteur du Savoir";id="craft_100_scrolls";rankId=u.MYTHIC.id;description="Craft 100 Parchemins";berry=1e8;xp=5e5;titleId="title_Protecteur du Savoir";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.scrolls>=100}}const Ah=Object.freeze(Object.defineProperty({__proto__:null,Craft1000Times:gn,Craft100CookedMeals:yn,Craft100Scrolls:Nn,Craft10CookedMeals:En,Craft10Scrolls:An,Craft200Times:_n,Craft20Scrolls:Rn,Craft20Times:fn,Craft250CookedMeals:Mn,Craft500CookedMeals:Tn,Craft500Times:pn,Craft50CookedMeals:Sn,Craft50Scrolls:Dn,Craft50Times:mn,Craft5Scrolls:bn},Symbol.toStringTag,{value:"Module"}));class In extends c{name="Vaut mieux ça que perdre non ?";id="draw_100";rankId=u.COMMON.id;description="Faire 100 égalités";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{drawCount:i}=t??await r.userStatsCasinoService.get(a);return i>=100}}class wn extends c{name="Tu as trouvé ton rival";id="draw_300";rankId=u.RARE.id;description="Faire 300 égalités";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{drawCount:i}=t??await r.userStatsCasinoService.get(a);return i>=300}}class vn extends c{name="Rathon c'est toi ?";id="draw_1000";rankId=u.EPIC.id;description="Faire 1000 égalités";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{drawCount:i}=t??await r.userStatsCasinoService.get(a);return i>=1e3}}class kn extends c{name="Tu te bats contre un mur ou quoi ?";id="draw_2000";rankId=u.LEGENDARY.id;description="Faire 2000 égalités";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{drawCount:i}=t??await r.userStatsCasinoService.get(a);return i>=2e3}}class On extends c{name="De vrais jumeaux";id="draw_5000";rankId=u.MYTHIC.id;description="Faire 5000 égalités";berry=5e7;xp=25e4;titleId="title_Égalitaire";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{drawCount:i}=t??await r.userStatsCasinoService.get(a);return i>=5e3}}const Rh=Object.freeze(Object.defineProperty({__proto__:null,Draw1000Quest:vn,Draw100Quest:In,Draw2000Quest:kn,Draw300Quest:wn,Draw5000Quest:On},Symbol.toStringTag,{value:"Module"}));class xn extends c{name="Y'a un truc que t'as pas compris ?";id="edito_read_100";rankId=u.EPIC.id;description="Lire 100 fois l'édito en une journée";berry=25e4;xp=25e3;secret=!0;titleId="title_Culturé";asset=Aa.edito;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FREQUENCY];async isValidated({userStatsFrequency:t},a){const{edito:i}=t??await r.userStatsFrequencyService.get(a);return i.readToday>=100}}const Dh=Object.freeze(Object.defineProperty({__proto__:null,Edito:xn},Symbol.toStringTag,{value:"Module"}));class Cn extends c{name="Une fois, pas deux";id="everyone";rankId=u.LEGENDARY.id;description="Tenter de tag everyone";berry=-1e6;xp=-5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{tagEveryone:i}=t??await r.userStatsFlagsService.get(a);return i}}const Nh=Object.freeze(Object.defineProperty({__proto__:null,Everyone:Cn},Symbol.toStringTag,{value:"Module"}));class Ln extends c{name="Emoji Diable";id="double_six";rankId=u.LEGENDARY.id;description="Faire 50 fois un double six";berry=1e6;xp=1e5;badge=A.doublesix;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{dice:i}=t??await r.userStatsCasinoService.get(a);return i.doubleSixCount>=50}}class Vn extends c{name="Pas de chance ^^";id="draw_double_six";rankId=u.RARE.id;description="Faire une fois une égalité en double 6";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{dice:i}=t??await r.userStatsCasinoService.get(a);return i.drawWithDoubleSixCount>=1}}class Un extends c{name="Jamais 6 sans 7";id="seven_quitte_ou_double";rankId=u.MYTHIC.id;description='Gagner 7 fois de suite "Doubles" au Quitte ou Double';berry=5e7;xp=25e4;badge=A.chance;titleId="title_Chanceux";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{doubleOrQuit:i}=t??await r.userStatsCasinoService.get(a);return i.sevenDoubleInARowCount>=1}}class Yn extends c{name="Le 5 à la suite";id="win_5_in_row";rankId=u.EPIC.id;description="Gagner à 5 jeux différents du casino à la suite";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{lastGames:i}=t??await r.userStatsCasinoService.get(a),s=i.slice(0,5);return s.length!==5||Gi(s,n=>n.gameType).length<5?!1:s.reduce((n,o)=>n+o.endState,0)===5}}class Pn extends c{name="Le 5 à la suite, mais dans l'autre sens";id="lose_5_in_row";rankId=u.EPIC.id;description="Perdre à 5 jeux différents du casino à la suite";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{lastGames:i}=t??await r.userStatsCasinoService.get(a),s=i.slice(0,5);return s.length!==5||Gi(s,n=>n.gameType).length<5?!1:s.reduce((n,o)=>n+o.endState,0)===-5}}class Wn extends c{name="Jacques le noir";id="ten_black_jack";rankId=u.LEGENDARY.id;description="Faire 10 fois BlackJack";berry=5e6;xp=5e4;badge=A["black-jack"];static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{blackJack:i}=t??await r.userStatsCasinoService.get(a);return i.blackJackCount>=10}}class Hn extends c{name="La feuille enveloppe la pierre ! T'es sûr ?";id="paper_100";rankId=u.LEGENDARY.id;description="Faire 100 fois de suite Papier au PPC";berry=1e6;xp=1e5;titleId="title_Papyrus";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{rps:i}=t??await r.userStatsCasinoService.get(a);return i.lastRpsPlayed==="paper"&&i.count>=100}}class Fn extends c{name="On fait la paire !";id="scissor_100";rankId=u.LEGENDARY.id;description="Faire 100 fois de suite Ciseaux au PPC";berry=1e6;xp=1e5;titleId="title_Couturier";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{rps:i}=t??await r.userStatsCasinoService.get(a);return i.lastRpsPlayed==="scissor"&&i.count>=100}}class jn extends c{name="Golem";id="rock_100";rankId=u.LEGENDARY.id;description="Faire 100 fois de suite Pierre au PPC";berry=1e6;xp=1e5;titleId="title_Golem";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{rps:i}=t??await r.userStatsCasinoService.get(a);return i.lastRpsPlayed==="rock"&&i.count>=100}}class Qn extends c{name="LE NEUF ET LE HUIT !!!";id="guess_in_one";rankId=u.MYTHIC.id;description="Deviner le Juste Prix en un coup";berry=5e7;xp=25e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{priceIsRight:i}=t??await r.userStatsCasinoService.get(a);return i.guessInOneTryCount>=1}}class Bn extends c{name="Sataniste";id="bet_666_33_days";rankId=u.LEGENDARY.id;description="Miser 666 Berry au moins une fois par jour pendant 33 jours";berry=1e6;xp=5e4;secret=!0;titleId="title_Démon";asset=Aa.satan;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{bet666:i}=t??await r.userStatsCasinoService.get(a);return i.count>=33}}class Gn extends c{name="Jour, Nuit";id="win_lose_10_times";rankId=u.LEGENDARY.id;description='Faire un enchaînement "Victoire/Défaite" 10 fois de suite';berry=1e6;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{lastGames:i}=t??await r.userStatsCasinoService.get(a);if(i.length!==20)return!1;const s=i[0].endState,n=s===1?-1:1;if(s===0)return!1;for(let o=0;o<i.length;o++)if(o%2===0&&i[o].endState!==s||o%2!==0&&i[o].endState!==n)return!1;return!0}}const Ih=Object.freeze(Object.defineProperty({__proto__:null,Bet666:Bn,DoubleSix:Ln,DrawDoubleSix:Vn,GuessInOne:Qn,LoseAll5GamesInRow:Pn,Paper100:Hn,Rock100:jn,Scissor100:Fn,SevenQuitteOuDouble:Un,TenBlackJack:Wn,WinAll5GamesInRow:Yn,WinLose10:Gn},Symbol.toStringTag,{value:"Module"}));class $n extends c{name="Tu avais soif ?";id="drink_100_xp_bottles_1_day";rankId=u.LEGENDARY.id;description="Boire 100 Potions d'XP en une journée";berry=1e6;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.usedToday>=100}}class zn extends c{name="Un ptit goût amer non ?";id="drink_200";rankId=u.COMMON.id;description="Boire 200 Potions d'XP";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.totalUsed>=200}}class qn extends c{name="Ça se boit bien finalement";id="drink_500";rankId=u.RARE.id;description="Boire 500 Potions d'XP";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.totalUsed>=500}}class Kn extends c{name="Les potions donnent des aiiiiles !";id="drink_1000";rankId=u.EPIC.id;description="Boire 1000 Potions d'XP";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.totalUsed>=1e3}}class Jn extends c{name="À deux doigts de vomir";id="drink_2000";rankId=u.LEGENDARY.id;description="Boire 2000 Potions d'XP";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.totalUsed>=2e3}}class Zn extends c{name="Alcoolique";id="drink_5000";rankId=u.MYTHIC.id;description="Boire 5000 Potions d'XP";berry=5e7;xp=25e4;titleId="title_Alcoolique";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.totalUsed>=5e3}}class Xn extends c{name="C'est sympa ce ptit jeu";id="chest_open_50";rankId=u.COMMON.id;description="Ouvrir 50 Coffres";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{chest:i}=t??await r.userStatsInventoryService.get(a);return i.totalOpened>=50}}class er extends c{name="T'as enfin eu un truc intéressant ?";id="chest_open_150";rankId=u.RARE.id;description="Ouvrir 150 Coffres";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{chest:i}=t??await r.userStatsInventoryService.get(a);return i.totalOpened>=150}}class tr extends c{name="Ça commence à gratter hein ?";id="chest_open_500";rankId=u.EPIC.id;description="Ouvrir 500 Coffres";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{chest:i}=t??await r.userStatsInventoryService.get(a);return i.totalOpened>=500}}class ar extends c{name="LAISSEZ-MOI OUVRIR DES COFFRES !";id="chest_open_1000";rankId=u.LEGENDARY.id;description="Ouvrir 1000 Coffres";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{chest:i}=t??await r.userStatsInventoryService.get(a);return i.totalOpened>=1e3}}class ir extends c{name="xXFan2GenshinXx";id="chest_open_2000";rankId=u.MYTHIC.id;description="Ouvrir 2000 Coffres";berry=5e7;xp=25e4;titleId="title_Gatcha Addict";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{chest:i}=t??await r.userStatsInventoryService.get(a);return i.totalOpened>=2e3}}const wh=Object.freeze(Object.defineProperty({__proto__:null,ChestOpen1000Quest:ar,ChestOpen150Quest:er,ChestOpen2000Quest:ir,ChestOpen500Quest:tr,ChestOpen50Quest:Xn,Drink1000Quest:Kn,Drink100Today:$n,Drink2000Quest:Jn,Drink200Quest:zn,Drink5000Quest:Zn,Drink500Quest:qn},Symbol.toStringTag,{value:"Module"}));class sr extends c{name="Bienvenue à bord !";id="crew_create_or_join";rankId=u.LEGENDARY.id;description="Créer ou rejoindre un équipage";berry=1e6;xp=1e5;crew=!1;async isValidated(){return!1}}const vh=Object.freeze(Object.defineProperty({__proto__:null,CrewCreateOrJoin:sr},Symbol.toStringTag,{value:"Module"}));class nr extends c{name="Un pas devant l'autre !";id="be_level_10";rankId=u.COMMON.id;description="Atteindre le niveau 10";berry=1e5;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=10}}class rr extends c{name="T'inquiète pas ça va bien se passer";id="be_level_20";rankId=u.COMMON.id;description="Atteindre le niveau 20";berry=3e5;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=20}}class or extends c{name="Commence par me parler poliment";id="be_level_30";rankId=u.RARE.id;description="Atteindre le niveau 30";berry=1e6;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=30}}class dr extends c{name="On te respecte à la cantine";id="be_level_40";rankId=u.RARE.id;description="Atteindre le niveau 40";berry=3e6;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=40}}class lr extends c{name="Ça commence à devenir sérieux";id="be_level_50";rankId=u.EPIC.id;description="Atteindre le niveau 50";berry=5e6;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=50}}class ur extends c{name="Une chambre individuelle ? La chance !";id="be_level_60";rankId=u.EPIC.id;description="Atteindre le niveau 60";berry=1e7;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=60}}class cr extends c{name="Oulah, les responsabilités arrivent";id="be_level_70";rankId=u.LEGENDARY.id;description="Atteindre le niveau 70";berry=5e7;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=70}}class hr extends c{name="Faut pas t'emmerder toi";id="be_level_80";rankId=u.LEGENDARY.id;description="Atteindre le niveau 80";berry=5e7;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=80}}class fr extends c{name="Là on parle !";id="be_level_90";rankId=u.MYTHIC.id;description="Atteindre le niveau 90";berry=1e8;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=90}}class mr extends c{name="*S'agenouille*";id="be_level_100";rankId=u.MYTHIC.id;description="Atteindre le niveau 100";berry=1e9;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=100}}const kh=Object.freeze(Object.defineProperty({__proto__:null,BeLevel10:nr,BeLevel100:mr,BeLevel20:rr,BeLevel30:or,BeLevel40:dr,BeLevel50:lr,BeLevel60:ur,BeLevel70:cr,BeLevel80:hr,BeLevel90:fr},Symbol.toStringTag,{value:"Module"}));class _r extends c{name="Merci <3";id="premium";rankId=u.MYTHIC.id;description="Faire un don (validation manuelle)";berry=1;xp=0;badge=A.premium;titleId="title_Mécène";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{premium:i}=t??await r.userMetaService.get(a);return!!i}}const Oh=Object.freeze(Object.defineProperty({__proto__:null,Premium:_r},Symbol.toStringTag,{value:"Module"}));class pr extends c{name="Vif";id="random_message_20";rankId=u.COMMON.id;description="Récupérer 20 Messages aléatoires";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{randomMessageClaimed:i}=t??await r.userStatsEngagementService.get(a);return i>=20}}class gr extends c{name="Lucky Luke";id="random_message_50";rankId=u.RARE.id;description="Récupérer 50 Messages aléatoires";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{randomMessageClaimed:i}=t??await r.userStatsEngagementService.get(a);return i>=50}}class Er extends c{name="Rapide";id="random_message_100";rankId=u.EPIC.id;description="Récupérer 100 Messages aléatoires";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{randomMessageClaimed:i}=t??await r.userStatsEngagementService.get(a);return i>=100}}class Sr extends c{name="Et Furieux";id="random_message_200";rankId=u.LEGENDARY.id;description="Récupérer 200 Messages aléatoires";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{randomMessageClaimed:i}=t??await r.userStatsEngagementService.get(a);return i>=200}}class yr extends c{name="Ka-Chow";id="random_message_500";rankId=u.MYTHIC.id;description="Récupérer 500 Messages aléatoires";berry=5e7;xp=25e4;titleId="title_Flash Mc Queen";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{randomMessageClaimed:i}=t??await r.userStatsEngagementService.get(a);return i>=500}}const xh=Object.freeze(Object.defineProperty({__proto__:null,RandomMessage100Quest:Er,RandomMessage200Quest:Sr,RandomMessage20Quest:pr,RandomMessage500Quest:yr,RandomMessage50Quest:gr},Symbol.toStringTag,{value:"Module"}));class Mr extends c{name="Ne fais rien exploser hein ?";id="have_1_recipe";description="Avoir 1 recette";berry=5e4;xp=5e3;rankId=u.COMMON.id;badge=A.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},a){const{recipes:i}=t??await r.userInventoryService.get(a);return i.length>=1}}class Tr extends c{name="C'est bien tu sais faire des pâtes !";id="have_5_recipe";rankId=u.RARE.id;description="Avoir 5 recettes";berry=2e5;xp=25e3;badge=A.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},a){const{recipes:i}=t??await r.userInventoryService.get(a);return i.length>=5}}class br extends c{name="Ta grand-mère t'as donné son livre ?";id="have_10_recipe";rankId=u.EPIC.id;description="Avoir 10 recettes";berry=1e6;xp=5e4;badge=A.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},a){const{recipes:i}=t??await r.userInventoryService.get(a);return i.length>=10}}class Ar extends c{name="Let him cook";id="have_25_recipe";rankId=u.LEGENDARY.id;description="Avoir 25 recettes";berry=1e6;xp=1e5;badge=A.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},a){const{recipes:i}=t??await r.userInventoryService.get(a);return i.length>=25}}class Rr extends c{name="Paul Bocuse";id="have_100_recipe";rankId=u.MYTHIC.id;description="Avoir 100 recettes";berry=5e7;xp=25e4;titleId="title_Paul Bocuse";badge=A.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},a){const{recipes:i}=t??await r.userInventoryService.get(a);return i.length>=100}}const Ch=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:Rr,Have10Recipe:br,Have1Recipe:Mr,Have25Recipe:Ar,Have5Recipe:Tr},Symbol.toStringTag,{value:"Module"}));class Dr extends c{name="Collabo";id="collabo";rankId=u.COMMON.id;description="Report une personne au staff";berry=1e4;xp=5e3;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{reportedSomeone:i}=t??await r.userStatsFlagsService.get(a);return i}}const Lh=Object.freeze(Object.defineProperty({__proto__:null,Report:Dr},Symbol.toStringTag,{value:"Module"}));class Nr extends c{name="Bienvenue sur OPFR";id="send_100_msg";rankId=u.COMMON.id;description="Envoyer 100 messages";berry=1e4;xp=1e3;badge=A.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{messageSent:i}=t??await r.userStatsEngagementService.get(a);return i>=100}}class Ir extends c{name="Une vraie pipelette";id="send_1000_msg";rankId=u.RARE.id;description="Envoyer 1 000 messages";berry=1e5;xp=1e4;badge=A.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{messageSent:i}=t??await r.userStatsEngagementService.get(a);return i>=1e3}}class wr extends c{name="Faites le taire ";id="send_25000_msg";rankId=u.EPIC.id;description="Envoyer 25 000 messages";berry=1e6;xp=5e4;badge=A.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{messageSent:i}=t??await r.userStatsEngagementService.get(a);return i>=25e3}}class vr extends c{name="Tu sors de chez toi des fois ?";id="send_100000_msg";rankId=u.LEGENDARY.id;description="Envoyer 100 000 messages";berry=1e7;xp=1e5;badge=A.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{messageSent:i}=t??await r.userStatsEngagementService.get(a);return i>=1e5}}class kr extends c{name="J'ai pas les mots... mais toi si !";id="send_200000_msg";rankId=u.MYTHIC.id;description="Envoyer 200 000 messages";berry=1e8;xp=25e4;badge=A.ecrire;titleId="title_Spammeur";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{messageSent:i}=t??await r.userStatsEngagementService.get(a);return i>=2e5}}const Vh=Object.freeze(Object.defineProperty({__proto__:null,send100000Messages:vr,send1000Messages:Ir,send100Messages:Nr,send200000Messages:kr,send25000Messages:wr},Symbol.toStringTag,{value:"Module"}));class Uh extends c{name="T'as reçu ton argent de poche ?";id="spend_shop_5m";rankId=u.COMMON.id;description="Dépenser 5 000 000 Berrys dans la boutique";berry=5e4;xp=5e3;badge=A.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{totalSpentInShop:i}=t??await r.userStatsEconomyService.get(a);return i>=5e6}}class Or extends c{name="Tu t'es fait plaisir !";id="spend_shop_50m";rankId=u.RARE.id;description="Dépenser 50 000 000 Berrys dans la boutique";berry=2e5;xp=25e3;badge=A.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{totalSpentInShop:i}=t??await r.userStatsEconomyService.get(a);return i>=5e7}}class xr extends c{name="C'était les soldes j'espère !";id="spend_shop_500m";rankId=u.EPIC.id;description="Dépenser 500 000 000 Berrys dans la boutique";berry=1e6;xp=5e4;badge=A.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{totalSpentInShop:i}=t??await r.userStatsEconomyService.get(a);return i>=5e8}}class Cr extends c{name="Paré pour la Fashion Week";id="spend_shop_5ml";rankId=u.LEGENDARY.id;description="Dépenser 5 000 000 000 Berrys dans la boutique";berry=5e6;xp=1e5;badge=A.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{totalSpentInShop:i}=t??await r.userStatsEconomyService.get(a);return i>=5e9}}class Lr extends c{name="Fashion Viktim";id="spend_shop_50ml";rankId=u.MYTHIC.id;description="Dépenser 50 000 000 000 Berrys dans la boutique";berry=5e7;xp=25e4;badge=A.mode;titleId="title_Fashion Viktim";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{totalSpentInShop:i}=t??await r.userStatsEconomyService.get(a);return i>=5e10}}const Yh=Object.freeze(Object.defineProperty({__proto__:null,SpendShop500M:xr,SpendShop50M:Or,SpendShop50Ml:Lr,SpendShop5Ml:Cr,default:Uh},Symbol.toStringTag,{value:"Module"}));class Vr extends c{name="On commence à se connaître";id="voice_10_hours";rankId=u.COMMON.id;description="Se connecter 10h en vocal";berry=5e4;xp=5e3;badge=A.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{totalMinutesInVoice:i}=t??await r.userStatsEngagementService.get(a);return i>=600}}class Ur extends c{name="Je sais tout de toi";id="voice_25_hours";rankId=u.RARE.id;description="Se connecter 25h en vocal";berry=2e5;xp=25e3;badge=A.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{totalMinutesInVoice:i}=t??await r.userStatsEngagementService.get(a);return i>=1500}}class Yr extends c{name="T'as pas soif ?";id="voice_250_hours";rankId=u.EPIC.id;description="Se connecter 250h en vocal";berry=1e6;xp=5e4;badge=A.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{totalMinutesInVoice:i}=t??await r.userStatsEngagementService.get(a);return i>=15e3}}class Pr extends c{name="Ok Socrate";id="voice_2500_hours";rankId=u.LEGENDARY.id;description="Se connecter 2500h en vocal";berry=1e7;xp=1e5;badge=A.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{totalMinutesInVoice:i}=t??await r.userStatsEngagementService.get(a);return i>=60*2500}}class Wr extends c{name="Elle ressemble à quoi la lumière du soleil ?";id="voice_5000_hours";rankId=u.MYTHIC.id;description="Se connecter 5000h en vocal";berry=5e7;xp=25e4;titleId="title_Ermite";badge=A.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{totalMinutesInVoice:i}=t??await r.userStatsEngagementService.get(a);return i>=60*5e3}}const Ph=Object.freeze(Object.defineProperty({__proto__:null,Voice10Hours:Vr,Voice2500Hours:Pr,Voice250Hours:Yr,Voice25Hours:Ur,Voice5000Hours:Wr},Symbol.toStringTag,{value:"Module"}));class Hr extends c{name="PTDR t ki ?";id="have_10_title";rankId=u.EPIC.id;description="Avoir 10 titres différents";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedTitles:i}=t??await r.userOrnamentService.get(a);return i.length>=10}}class Fr extends c{name="Mon nom est Personne";id="have_50_title";rankId=u.LEGENDARY.id;description="Avoir 50 titres différents";berry=5e6;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedTitles:i}=t??await r.userOrnamentService.get(a);return i.length>=50}}class jr extends c{name="Daenerys Targaryen";id="have_100_title";rankId=u.MYTHIC.id;description="Avoir 100 titres différents";berry=5e7;xp=25e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedTitles:i}=t??await r.userOrnamentService.get(a);return i.length>=100}}const Wh=Object.freeze(Object.defineProperty({__proto__:null,Have100Title:jr,Have10Title:Hr,Have50Title:Fr},Symbol.toStringTag,{value:"Module"}));class Qr extends c{name="L'Insistant";id="insistent";rankId=u.COMMON.id;description="Être repêché et atteindre les huitièmes de finale";berry=1e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Br extends c{name="Résurrection";id="resurrection";rankId=u.RARE.id;description="Être repêché et atteindre les quarts de finale";berry=3e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Gr extends c{name="Renaissance";id="rebirth";rankId=u.EPIC.id;description="Être repêché et atteindre au moins les demi-finales";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}class $r extends c{name="Phoenix";id="phoenix";rankId=u.LEGENDARY.id;description="Être repêché et aller en finale";berry=2e7;xp=0;repeatable=!0;async isValidated(){return!1}}class zr extends c{name="L'Immortel";id="immortal";rankId=u.MYTHIC.id;description="Être repêché et remporter le tournoi";berry=4e7;xp=0;repeatable=!0;async isValidated(){return!1}}class qr extends c{name="Branche Maudite";id="cursed_branch";rankId=u.RARE.id;description="Perdre le tournoi en top 32";berry=25e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Kr extends c{name="Top 64";id="tournament_top64";rankId=u.COMMON.id;description="Perdre le tournoi en top 64";berry=15e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Jr extends c{name="Zero Pointé";id="zeroscored";rankId=u.COMMON.id;description="Se faire éliminer directement avec tous ses choix dès le premier duel";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}class Zr extends c{name="Chasseur de Géants";id="gianthunter";rankId=u.MYTHIC.id;description="Battre les 3 tap-in du tournoi avec tes choix";berry=1e8;xp=0;items={chest_2:5};repeatable=!0;async isValidated(){return!1}}class Xr extends c{name="Sabotage";id="sabotage";rankId=u.EPIC.id;description="Empêcher un choix de tap-in d'atteindre le top 32";berry=3e7;xp=0;repeatable=!0;async isValidated(){return!1}}class eo extends c{name="Victoire par K.O";id="victory_by_ko";rankId=u.COMMON.id;description="Gagner un duel avec plus de 75% des votes";berry=5e6;xp=0;repeatable=!0;async isValidated(){return!1}}class to extends c{name="Le Sniper";id="tournament_sniper";rankId=u.RARE.id;description="Gagner un duel avec plus de 80% des votes";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}class ao extends c{name="Massacre";id="massacre";rankId=u.EPIC.id;description="Gagner un duel avec plus de 90% des votes";berry=25e6;xp=0;repeatable=!0;async isValidated(){return!1}}class io extends c{name="Annihilation";id="annihilation";rankId=u.MYTHIC.id;description="Gagner un duel avec 100% des votes (aucun vote pour l'adversaire)";berry=1e8;xp=0;items={chest_1:5};repeatable=!0;async isValidated(){return!1}}class so extends c{name="Troll Suprême";id="trollSupreme";rankId=u.MYTHIC.id;description="Prendre un choix totalement troll et improbable, puis gagner le tournoi avec !";berry=1e8;xp=0;items={chest_3:1};repeatable=!0;async isValidated(){return!1}}class no extends c{name="Champion";id="champion";rankId=u.RARE.id;description="Remporter un tournoi";berry=0;xp=0;items={chest_2:5};repeatable=!0;async isValidated(){return!1}}class ro extends c{name="Le Maître";id="master";rankId=u.RARE.id;description="Remporter un tournoi avec trois choix différents dans le top 16";berry=0;xp=0;items={chest_3:1};repeatable=!0;async isValidated(){return!1}}class oo extends c{name="L'Inarrétable";id="unstoppable";rankId=u.EPIC.id;description="Remporter un tournoi avec une finale écrasante";berry=0;xp=0;items={chest_1:5,chest_2:3};repeatable=!0;async isValidated(){return!1}}class lo extends c{name="L'Etoile Filante";id="shootingstar";rankId=u.LEGENDARY.id;description="Passer du statut d'outsider à finaliste";berry=5e7;xp=0;repeatable=!0;async isValidated(){return!1}}class uo extends c{name="EZ";id="ez";rankId=u.EPIC.id;description="Débloquer tous les succès Victoire sans difficulté";berry=0;xp=0;items={chest_3:1};repeatable=!0;async isValidated(){return!1}}class co extends c{name="Participation";id="participation";rankId=u.COMMON.id;description="Participer au tournoi avec 1, 2, 3 et 4 choix";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}const Hh=Object.freeze(Object.defineProperty({__proto__:null,Annihilation:io,Champion:no,CursedBranch:qr,EZ:uo,GiantHunter:Zr,Immortal:zr,Insistent:Qr,Massacre:ao,Master:ro,Participation:co,Phoenix:$r,Rebirth:Gr,Resurrection:Br,Sabotage:Xr,ShootingStar:lo,Sniper:to,TournamentTop64:Kr,TrollSupreme:so,Unstoppable:oo,VictoryByKO:eo,ZeroScored:Jr},Symbol.toStringTag,{value:"Module"}));class Na extends c{name="1 jour 1 message";id="daily_send_message";rankId=u.COMMON.id;description="Envoyer un message";berry=({xp:t})=>(W(t.amount)/10+1)*1e3;xp=({xp:t})=>(W(t.amount)/10+1)*100;daily=!0;async isValidated(){return!1}}class Ia extends c{name="Les nouvelles sont bonnes ?";id="daily_read_edito";rankId=u.COMMON.id;description="Réagir à l'édito";berry=({xp:t})=>(W(t.amount)/10+1)*3e3;xp=({xp:t})=>(W(t.amount)/10+1)*300;daily=!0;async isValidated(){return!1}}class wa extends c{name="Quoi ? Feur !";id="daily_answer";rankId=u.COMMON.id;description="Répondre à quelqu'un";berry=({xp:t})=>(W(t.amount)/10+1)*1500;xp=({xp:t})=>(W(t.amount)/10+1)*150;daily=!0;async isValidated(){return!1}}class va extends c{name="Narcissique";id="daily_check_profile";rankId=u.COMMON.id;description="Regarder son profil";berry=({xp:t})=>(W(t.amount)/10+1)*2e3;xp=({xp:t})=>(W(t.amount)/10+1)*200;daily=!0;async isValidated(){return!1}}class ka extends c{name="T'as des amis ?";id="daily_vocal";rankId=u.COMMON.id;description="Se connecter 10 min en vocal";berry=({xp:t})=>(W(t.amount)/10+1)*5e3;xp=({xp:t})=>(W(t.amount)/10+1)*500;daily=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return i.voice.minutesInVoiceToday>=10&&zi(i.voice.lastConnection,new Date)}}class Oa extends c{name="T'as pas oublié de ranger ta chambre ?";id="daily_all";rankId=u.RARE.id;description="Finir les quêtes journalières";berry=({xp:t})=>(W(t.amount)/10+1)*12500;xp=({xp:t})=>(W(t.amount)/10+1)*1250;daily=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_QUEST];async isValidated(t,a){const i=[new va,new wa,new Ia,new Na,new ka];for(const s of i)if(!await s.isCompleted(a))return!1;return!0}}class ho extends c{name="Almanax";id="almanax";rankId=u.MYTHIC.id;description="Valider 365 jours de suite les quêtes quotidiennes";berry=1e9;xp=1e6;badge=A.calendar;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_QUEST];async isValidated(t,a){const i=new Oa().id;return((await r.userQuestService.get({user:a,questId:i})).streak??0)>=365}}const fo=Object.freeze(Object.defineProperty({__proto__:null,Almanax:ho,DailyAll:Oa,DailyAnswer:wa,DailyCheckProfile:va,DailyReadEdito:Ia,DailySendMessage:Na,DailyVocal:ka},Symbol.toStringTag,{value:"Module"}));class mo extends c{name="Stagiaire";id="work_100";rankId=u.COMMON.id;description="Travailler 100 fois";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{workCount:i}=t??await r.userStatsEconomyService.get(a);return i>=100}}class _o extends c{name="Alternant";id="work_300";rankId=u.RARE.id;description="Travailler 300 fois";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{workCount:i}=t??await r.userStatsEconomyService.get(a);return i>=300}}class po extends c{name="Smicard";id="work_1000";rankId=u.EPIC.id;description="Travailler 1000 fois";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{workCount:i}=t??await r.userStatsEconomyService.get(a);return i>=1e3}}class go extends c{name="Communiste";id="work_2000";rankId=u.LEGENDARY.id;description="Travailler 2000 fois";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{workCount:i}=t??await r.userStatsEconomyService.get(a);return i>=2e3}}class Eo extends c{name="Esclave";id="work_5000";rankId=u.MYTHIC.id;description="Travailler 5000 fois";berry=5e7;xp=25e4;titleId="title_Esclave";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{workCount:i}=t??await r.userStatsEconomyService.get(a);return i>=5e3}}const Fh=Object.freeze(Object.defineProperty({__proto__:null,Work1000Quest:po,Work100Quest:mo,Work2000Quest:go,Work300Quest:_o,Work5000Quest:Eo},Symbol.toStringTag,{value:"Module"}));class So extends c{name="Timide";id="write_10_chats";rankId=u.COMMON.id;description="Écrire dans 10 chats différents";berry=1e4;xp=1e3;badge=A.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{writeDifferentChatIds:i}=t??await r.userStatsEngagementService.get(a);return i.length>=10}}class yo extends c{name="Curieux";id="write_20_chats";rankId=u.RARE.id;description="Écrire dans 20 chats différents";berry=1e5;xp=1e4;badge=A.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{writeDifferentChatIds:i}=t??await r.userStatsEngagementService.get(a);return i.length>=20}}class Mo extends c{name="Voyeur";id="write_50_chats";rankId=u.EPIC.id;description="Écrire dans 50 chats différents";berry=5e5;xp=5e4;badge=A.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{writeDifferentChatIds:i}=t??await r.userStatsEngagementService.get(a);return i.length>=50}}class To extends c{name="Philanthrope";id="write_100_chats";rankId=u.LEGENDARY.id;description="Écrire dans 100 chats différents";berry=1e6;xp=1e5;badge=A.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{writeDifferentChatIds:i}=t??await r.userStatsEngagementService.get(a);return i.length>=100}}class bo extends c{name="Explorateur";id="write_200_chats";rankId=u.MYTHIC.id;description="Écrire dans 200 chats différents";berry=1e7;xp=25e4;titleId="title_Explorateur";badge=A.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{writeDifferentChatIds:i}=t??await r.userStatsEngagementService.get(a);return i.length>=200}}const jh=Object.freeze(Object.defineProperty({__proto__:null,Write100Chats:To,Write10Chats:So,Write200Chats:bo,Write20Chats:yo,Write50Chats:Mo},Symbol.toStringTag,{value:"Module"})),Vt=[...Object.values(gh),...Object.values(Eh),...Object.values(Sh),...Object.values(yh),...Object.values(Mh),...Object.values(Th),...Object.values(bh),...Object.values(Ah),...Object.values(Rh),...Object.values(Dh),...Object.values(Nh),...Object.values(Ih),...Object.values(wh),...Object.values(vh),...Object.values(kh),...Object.values(Oh),...Object.values(xh),...Object.values(Ch),...Object.values(Lh),...Object.values(Vh),...Object.values(Yh),...Object.values(Ph),...Object.values(Wh),...Object.values(Hh),...Object.values(fo),...Object.values(Fh),...Object.values(jh)],tt=Vt.map(e=>new e().id);if(tt.length!==[...new Set(tt)].length)throw Error(`All quest ids MUST be unique. Duplicated ids detected : ${lh(tt,[...new Set(tt)])}`);const Ao=async e=>(await r.userQuestService.getMany({user:e,questId:/be_level_/,status:Ra.COMPLETED})).length,Ro=async(e,t)=>{const a=await Ao(e);return(await r.ornamentService.getAllFactionTitles()).find(s=>s.strength===a&&s.faction===t)},Qh=(e,t)=>{const a=e.badge,i=e.isFactionBadge;return a?ba(a)?a.emojis[a.isProgressive.findIndex(s=>s===e.rankId)]:a.emojis:i?_h.factions[`b_${t}_${e.rankId}`]:""},Bh=e=>{const[t,a]=e.split("_"),i=Object.values(A).find(s=>s.id===t);if(i)return ba(i)?i.emojis[i.isProgressive.findIndex(s=>s===a)]:i.emojis},Gh=e=>{for(const t of Vt){const a=new t;if(a.id===e)return a}return null},Do=e=>Vt.filter(t=>t.dependencies.includes(e)),$h=async(e,t,a,{berry:i,xp:s})=>{const n=await r.userService.getByObjectId(t),o=await r.userQuestService.getStreakMultiplier(t,e.id),l=await Ro(t,n.faction),{badge:h,isFactionBadge:f,rankId:_,name:E,description:m,daily:T,secret:I,titleId:P}=e,C=await r.ornamentService.get(P??"");return a.Image().setImageName(`quest_success_${_}`).setDimensions(2080,636).draw(),h?a.Image().setImageName(ba(h)?`cropped_badge_${h.img}_${_}`:`cropped_badge_${h.img}`).setOrigin(be.CENTER).setScale(2).setPosition(370,318).draw():f&&n.faction!=="citizen"?a.Image().setImageName(`cropped_badge_${n.faction}_${_}`).setOrigin(be.CENTER).setScale(2).setPosition(370,318).draw():a.Image().setImageName(`badge_default_${_}`).setScale(2).setOrigin(be.CENTER).setPosition(370,318).draw(),a.Text(T?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(u[_].color).draw(),a.Text(E).setPosition(739,325).setOrigin(be.BOTTOM_LEFT).setFont("poppins",E.length>=35?65-(E.length-35):65).draw(),a.Text(I?"Succès caché":m).setPosition(739,360).setFont("poppins_italic",35).draw(),a.Text(`Récompenses: ${Lt(i)}${T&&o>1?` (+${Lt(i*(o-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(be.LEFT).draw(i!==0).next((O,w)=>ue(O.Image(),w)).setImageName("quest_berry").setDimensions(50,79).draw(i!==0).next((O,w)=>ue(O.Text(` / ${Lt(s)}${T&&o>1?` (+${Lt(s*(o-1))})`:""} `),w)).draw(s!==0).next((O,w)=>ue(O.Image(),w)).setImageName("quest_xp").setDimensions(57,59).draw(s!==0).next((O,w)=>ue(O.Text(` combo x${o}`),w)).draw(T&&o>1).next((O,w)=>ue(O.Text(" et la possibilité "),w)).draw(f&&n.faction==="citizen").next((O,w)=>ue(O.Text("de choisir ta faction"),w)).setFont("poppins_bold",35).draw(f&&n.faction==="citizen").next((O,w)=>ue(O.Text(" et le titre "),w)).setFont("poppins",35).draw(!!P||f&&n.faction!=="citizen").next((O,w)=>ue(O.Text(C?.name??""),w)).setFont("poppins_bold",35).setColor((C?.rankId&&u[C.rankId].color)??"white").draw(!!C).next((O,w)=>ue(O.Text(l?.name??""),w)).setColor((l?.rankId&&u[l.rankId].color)??"white").draw(f&&!!l),await a.encode("webp")},zh=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"],qh=async(e,t,a)=>{const i=Do(e),s=ch(e.split("/")[1]);for(const n of i){const o=new n;await o.isCompleted(t)||await o.isValidated({[s]:a},t)&&await o.complete(t,!0)}},Kh=e=>async(t,a)=>{await qh(e,t,a)};r.registerQuestMiddlewareEvents(uh(Object.values(r.QUEST_MIDDLEWARE_EVENT_NAME).map(e=>[e,Kh(e)]))),d.ALL_QUESTS=Vt,d.ALL_QUEST_IDS=tt,d.Almanax=ho,d.Annihilation=io,d.BeLevel10=nr,d.BeLevel100=mr,d.BeLevel20=rr,d.BeLevel30=or,d.BeLevel40=dr,d.BeLevel50=lr,d.BeLevel60=ur,d.BeLevel70=cr,d.BeLevel80=hr,d.BeLevel90=fr,d.Bet10M=ws,d.Bet666=Bn,d.BetMinValue=Ns,d.Birthday=Cs,d.BotPing=Ls,d.Champion=no,d.ChestOpen1000Quest=ar,d.ChestOpen150Quest=er,d.ChestOpen2000Quest=ir,d.ChestOpen500Quest=tr,d.ChestOpen50Quest=Xn,d.Craft1000Times=gn,d.Craft100CookedMeals=yn,d.Craft100Scrolls=Nn,d.Craft10CookedMeals=En,d.Craft10Scrolls=An,d.Craft200Times=_n,d.Craft20Scrolls=Rn,d.Craft20Times=fn,d.Craft250CookedMeals=Mn,d.Craft500CookedMeals=Tn,d.Craft500Times=pn,d.Craft50CookedMeals=Sn,d.Craft50Scrolls=Dn,d.Craft50Times=mn,d.Craft5Scrolls=bn,d.CrewCreateOrJoin=sr,d.CursedBranch=qr,d.DailyAll=Oa,d.DailyAnswer=wa,d.DailyCheckProfile=va,d.DailyReadEdito=Ia,d.DailySendMessage=Na,d.DailyVocal=ka,d.DoubleSix=Ln,d.Draw1000Quest=vn,d.Draw100Quest=In,d.Draw2000Quest=kn,d.Draw300Quest=wn,d.Draw5000Quest=On,d.DrawDoubleSix=Vn,d.Drink1000Alcohols=as,d.Drink1000Beer=fs,d.Drink1000Quest=Kn,d.Drink1000Rhum=ds,d.Drink1000Wine=Es,d.Drink100Beer=us,d.Drink100Rhum=ns,d.Drink100Today=$n,d.Drink100Wine=_s,d.Drink10Beer=ls,d.Drink10Rhum=ss,d.Drink10Wine=ms,d.Drink2000Alcohols=is,d.Drink2000Quest=Jn,d.Drink200Quest=zn,d.Drink250Alcohols=es,d.Drink250Beer=cs,d.Drink250Rhum=rs,d.Drink250Wine=ps,d.Drink5000Quest=Zn,d.Drink500Alcohols=ts,d.Drink500Beer=hs,d.Drink500Quest=qn,d.Drink500Rhum=os,d.Drink500Wine=gs,d.Drink50Alcohols=Xi,d.EZ=uo,d.Edito=xn,d.Everyone=Cn,d.GiantHunter=Zr,d.GuessInOne=Qn,d.Have100Agility=js,d.Have100Chance=Xs,d.Have100Intelligence=zs,d.Have100Recipe=Rr,d.Have100Strength=Ys,d.Have100Title=jr,d.Have100Vitality=nn,d.Have100Wisdom=un,d.Have10Recipe=br,d.Have10Title=Hr,d.Have1Background=Ss,d.Have1Recipe=Mr,d.Have250Agility=Qs,d.Have250Chance=en,d.Have250Intelligence=qs,d.Have250Strength=Ps,d.Have250Vitality=rn,d.Have250Wisdom=cn,d.Have25Agility=Hs,d.Have25Background=ys,d.Have25Chance=Js,d.Have25Intelligence=Gs,d.Have25Recipe=Ar,d.Have25Strength=Vs,d.Have25Vitality=an,d.Have25Wisdom=dn,d.Have500Agility=Bs,d.Have500Chance=tn,d.Have500Intelligence=Ks,d.Have500Strength=Ws,d.Have500Vitality=on,d.Have500Wisdom=hn,d.Have500kBerry=Ts,d.Have500mBerry=Rs,d.Have50Agility=Fs,d.Have50Background=Ms,d.Have50Chance=Zs,d.Have50Intelligence=$s,d.Have50Strength=Us,d.Have50Title=Fr,d.Have50Vitality=sn,d.Have50Wisdom=ln,d.Have50mBerry=As,d.Have5Recipe=Tr,d.Have5mBerry=bs,d.Have5mdBerry=Ds,d.Immortal=zr,d.Insistent=Qr,d.Lose10M=xs,d.LoseAll5GamesInRow=Pn,d.LoseEverything=Is,d.Massacre=ao,d.Master=ro,d.Paper100=Hn,d.Participation=co,d.Phoenix=$r,d.Premium=_r,d.QUEST_ASSET_IMAGES=zh,d.RandomMessage100Quest=Er,d.RandomMessage200Quest=Sr,d.RandomMessage20Quest=pr,d.RandomMessage500Quest=yr,d.RandomMessage50Quest=gr,d.Rebirth=Gr,d.Report=Dr,d.Resurrection=Br,d.Rock100=jn,d.Sabotage=Xr,d.Scissor100=Fn,d.SevenQuitteOuDouble=Un,d.ShootingStar=lo,d.Sniper=to,d.SpendShop500M=xr,d.SpendShop50M=Or,d.SpendShop50Ml=Lr,d.SpendShop5Ml=Cr,d.TenBlackJack=Wn,d.TotalBet10M=ks,d.TotalBet1Md=Os,d.TournamentTop64=Kr,d.TrollSupreme=so,d.Unstoppable=oo,d.VictoryByKO=eo,d.Voice10Hours=Vr,d.Voice2500Hours=Pr,d.Voice250Hours=Yr,d.Voice25Hours=Ur,d.Voice5000Hours=Wr,d.WinAll5GamesInRow=Yn,d.WinLose10=Gn,d.WinOn10MBet=vs,d.Work1000Quest=po,d.Work100Quest=mo,d.Work2000Quest=go,d.Work300Quest=_o,d.Work5000Quest=Eo,d.Write100Chats=To,d.Write10Chats=So,d.Write200Chats=bo,d.Write20Chats=yo,d.Write50Chats=Mo,d.ZeroScored=Jr,d.emitQuestCompleteEvent=Zi,d.getBadgeEmojisFromId=Bh,d.getFactionTitle=Ro,d.getFactionTitleStrength=Ao,d.getQuestBadgeEmojis=Qh,d.getQuestById=Gh,d.getQuestsByDependency=Do,d.onQuestCompleteEvent=ph,d.questCanvas=$h,d.send100000Messages=vr,d.send1000Messages=Ir,d.send100Messages=Nr,d.send200000Messages=kr,d.send25000Messages=wr,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})}));