@zaide6137/m3-components-web 0.1.34 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
require("./index.css");
|
|
2
|
-
'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime'),framerMotion=require('framer-motion'),reactBigCalendar=require('react-big-calendar');var
|
|
2
|
+
'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime'),framerMotion=require('framer-motion'),reactBigCalendar=require('react-big-calendar');var il=Object.create;var Gn=Object.defineProperty;var sl=Object.getOwnPropertyDescriptor;var ll=Object.getOwnPropertyNames;var cl=Object.getPrototypeOf,ul=Object.prototype.hasOwnProperty;var jn=(i=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):i)(function(i){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+i+'" is not supported')});var dl=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports);var hl=(i,t,r,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of ll(t))!ul.call(i,c)&&c!==r&&Gn(i,c,{get:()=>t[c],enumerable:!(l=sl(t,c))||l.enumerable});return i};var $n=(i,t,r)=>(r=i!=null?il(cl(i)):{},hl(!i||!i.__esModule?Gn(r,"default",{value:i,enumerable:true}):r,i));var Jr=dl((Zr,St)=>{(function(i,t){typeof Zr=="object"&&typeof St<"u"?St.exports=t():typeof define=="function"&&define.amd?define(t):i.moment=t();})(Zr,(function(){var i;function t(){return i.apply(null,arguments)}function r(e){i=e;}function l(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function c(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function d(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function h(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var n;for(n in e)if(d(e,n))return false;return true}function p(e){return e===void 0}function x(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function w(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function k(e,n){var a=[],o,s=e.length;for(o=0;o<s;++o)a.push(n(e[o],o));return a}function S(e,n){for(var a in n)d(n,a)&&(e[a]=n[a]);return d(n,"toString")&&(e.toString=n.toString),d(n,"valueOf")&&(e.valueOf=n.valueOf),e}function D(e,n,a,o){return kn(e,n,a,o,true).utc()}function C(){return {empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function m(e){return e._pf==null&&(e._pf=C()),e._pf}var v;Array.prototype.some?v=Array.prototype.some:v=function(e){var n=Object(this),a=n.length>>>0,o;for(o=0;o<a;o++)if(o in n&&e.call(this,n[o],o,n))return true;return false};function T(e){var n=null,a=false,o=e._d&&!isNaN(e._d.getTime());if(o&&(n=m(e),a=v.call(n.parsedDateParts,function(s){return s!=null}),o=n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&a),e._strict&&(o=o&&n.charsLeftOver===0&&n.unusedTokens.length===0&&n.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=o;else return o;return e._isValid}function Y(e){var n=D(NaN);return e!=null?S(m(n),e):m(n).userInvalidated=true,n}var H=t.momentProperties=[],X=false;function Z(e,n){var a,o,s,u=H.length;if(p(n._isAMomentObject)||(e._isAMomentObject=n._isAMomentObject),p(n._i)||(e._i=n._i),p(n._f)||(e._f=n._f),p(n._l)||(e._l=n._l),p(n._strict)||(e._strict=n._strict),p(n._tzm)||(e._tzm=n._tzm),p(n._isUTC)||(e._isUTC=n._isUTC),p(n._offset)||(e._offset=n._offset),p(n._pf)||(e._pf=m(n)),p(n._locale)||(e._locale=n._locale),u>0)for(a=0;a<u;a++)o=H[a],s=n[o],p(s)||(e[o]=s);return e}function $(e){Z(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),X===false&&(X=true,t.updateOffset(this),X=false);}function V(e){return e instanceof $||e!=null&&e._isAMomentObject!=null}function z(e){t.suppressDeprecationWarnings===false&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e);}function U(e,n){var a=true;return S(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,e),a){var o=[],s,u,g,M=arguments.length;for(u=0;u<M;u++){if(s="",typeof arguments[u]=="object"){s+=`
|
|
3
3
|
[`+u+"] ";for(g in arguments[0])d(arguments[0],g)&&(s+=g+": "+arguments[0][g]+", ");s=s.slice(0,-2);}else s=arguments[u];o.push(s);}z(e+`
|
|
4
4
|
Arguments: `+Array.prototype.slice.call(o).join("")+`
|
|
5
|
-
`+new Error().stack),a=false;}return n.apply(this,arguments)},n)}var ne={};function ee(e,n){t.deprecationHandler!=null&&t.deprecationHandler(e,n),ne[e]||(z(n),ne[e]=true);}t.suppressDeprecationWarnings=false,t.deprecationHandler=null;function oe(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function be(e){var n,a;for(a in e)d(e,a)&&(n=e[a],oe(n)?this[a]=n:this["_"+a]=n);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source);}function we(e,n){var a=S({},e),o;for(o in n)d(n,o)&&(c(e[o])&&c(n[o])?(a[o]={},S(a[o],e[o]),S(a[o],n[o])):n[o]!=null?a[o]=n[o]:delete a[o]);for(o in e)d(e,o)&&!d(n,o)&&c(e[o])&&(a[o]=S({},a[o]));return a}function L(e){e!=null&&this.set(e);}var me;Object.keys?me=Object.keys:me=function(e){var n,a=[];for(n in e)d(e,n)&&a.push(n);return a};var Oe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ke(e,n,a){var o=this._calendar[e]||this._calendar.sameElse;return oe(o)?o.call(n,a):o}function fe(e,n,a){var o=""+Math.abs(e),s=n-o.length,u=e>=0;return (u?a?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+o}var tt=/(\[[^\[]*\])|(\\)?([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,Ke=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,rt={},Fe={};function O(e,n,a,o){var s=o;typeof o=="string"&&(s=function(){return this[o]()}),e&&(Fe[e]=s),n&&(Fe[n[0]]=function(){return fe(s.apply(this,arguments),n[1],n[2])}),a&&(Fe[a]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)});}function Ht(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ut(e){var n=e.match(tt),a,o;for(a=0,o=n.length;a<o;a++)Fe[n[a]]?n[a]=Fe[n[a]]:n[a]=Ht(n[a]);return function(s){var u="",g;for(g=0;g<o;g++)u+=oe(n[g])?n[g].call(s,e):n[g];return u}}function ct(e,n){return e.isValid()?(n=Wt(n,e.localeData()),rt[n]=rt[n]||Ut(n),rt[n](e)):e.localeData().invalidDate()}function Wt(e,n){var a=5;function o(s){return n.longDateFormat(s)||s}for(Ke.lastIndex=0;a>=0&&Ke.test(e);)e=e.replace(Ke,o),Ke.lastIndex=0,a-=1;return e}var zt={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 br(e){var n=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return n||!a?n:(this._longDateFormat[e]=a.match(tt).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var wr="Invalid date";function ma(){return this._invalidDate}var pa="%d",ga=/\d{1,2}/;function ya(e){return this._ordinal.replace("%d",e)}var ba={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 wa(e,n,a,o){var s=this._relativeTime[a];return oe(s)?s(e,n,a,o):s.replace(/%d/i,e)}function va(e,n){var a=this._relativeTime[e>0?"future":"past"];return oe(a)?a(n):a.replace(/%s/i,n)}var en={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 Se(e){return typeof e=="string"?en[e]||en[e.toLowerCase()]:void 0}function vr(e){var n={},a,o;for(o in e)d(e,o)&&(a=Se(o),a&&(n[a]=e[o]));return n}var xa={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 ka(e){var n=[],a;for(a in e)d(e,a)&&n.push({unit:a,priority:xa[a]});return n.sort(function(o,s){return o.priority-s.priority}),n}var tn=/\d/,ve=/\d\d/,rn=/\d{3}/,xr=/\d{4}/,Gt=/[+-]?\d{6}/,te=/\d\d?/,nn=/\d\d\d\d?/,an=/\d\d\d\d\d\d?/,jt=/\d{1,3}/,kr=/\d{1,4}/,$t=/[+-]?\d{1,6}/,ut=/\d+/,qt=/[+-]?\d+/,Sa=/Z|[+-]\d\d:?\d\d/gi,Kt=/Z|[+-]\d\d(?::?\d\d)?/gi,Pa=/[+-]?\d+(\.\d{1,3})?/,Dt=/[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,dt=/^[1-9]\d?/,Sr=/^([1-9]\d|\d)/,Xt;Xt={};function A(e,n,a){Xt[e]=oe(n)?n:function(o,s){return o&&a?a:n};}function Da(e,n){return d(Xt,e)?Xt[e](n._strict,n._locale):new RegExp(Ca(e))}function Ca(e){return Le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,a,o,s,u){return a||o||s||u}))}function Le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Pe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function W(e){var n=+e,a=0;return n!==0&&isFinite(n)&&(a=Pe(n)),a}var Pr={};function Q(e,n){var a,o=n,s;for(typeof e=="string"&&(e=[e]),x(n)&&(o=function(u,g){g[n]=W(u);}),s=e.length,a=0;a<s;a++)Pr[e[a]]=o;}function Ct(e,n){Q(e,function(a,o,s,u){s._w=s._w||{},n(a,s._w,s,u);});}function Ta(e,n,a){n!=null&&d(Pr,e)&&Pr[e](n,a._a,a,e);}function Zt(e){return e%4===0&&e%100!==0||e%400===0}var pe=0,Ye=1,Re=2,de=3,Ce=4,Ve=5,nt=6,_a=7,Ma=8;O("Y",0,0,function(){var e=this.year();return e<=9999?fe(e,4):"+"+e}),O(0,["YY",2],0,function(){return this.year()%100}),O(0,["YYYY",4],0,"year"),O(0,["YYYYY",5],0,"year"),O(0,["YYYYYY",6,true],0,"year"),A("Y",qt),A("YY",te,ve),A("YYYY",kr,xr),A("YYYYY",$t,Gt),A("YYYYYY",$t,Gt),Q(["YYYYY","YYYYYY"],pe),Q("YYYY",function(e,n){n[pe]=e.length===2?t.parseTwoDigitYear(e):W(e);}),Q("YY",function(e,n){n[pe]=t.parseTwoDigitYear(e);}),Q("Y",function(e,n){n[pe]=parseInt(e,10);});function Tt(e){return Zt(e)?366:365}t.parseTwoDigitYear=function(e){return W(e)+(W(e)>68?1900:2e3)};var on=ht("FullYear",true);function Aa(){return Zt(this.year())}function ht(e,n){return function(a){return a!=null?(sn(this,e,a),t.updateOffset(this,n),this):_t(this,e)}}function _t(e,n){if(!e.isValid())return NaN;var a=e._d,o=e._isUTC;switch(n){case "Milliseconds":return o?a.getUTCMilliseconds():a.getMilliseconds();case "Seconds":return o?a.getUTCSeconds():a.getSeconds();case "Minutes":return o?a.getUTCMinutes():a.getMinutes();case "Hours":return o?a.getUTCHours():a.getHours();case "Date":return o?a.getUTCDate():a.getDate();case "Day":return o?a.getUTCDay():a.getDay();case "Month":return o?a.getUTCMonth():a.getMonth();case "FullYear":return o?a.getUTCFullYear():a.getFullYear();default:return NaN}}function sn(e,n,a){var o,s,u,g,M;if(!(!e.isValid()||isNaN(a))){switch(o=e._d,s=e._isUTC,n){case "Milliseconds":return void(s?o.setUTCMilliseconds(a):o.setMilliseconds(a));case "Seconds":return void(s?o.setUTCSeconds(a):o.setSeconds(a));case "Minutes":return void(s?o.setUTCMinutes(a):o.setMinutes(a));case "Hours":return void(s?o.setUTCHours(a):o.setHours(a));case "Date":return void(s?o.setUTCDate(a):o.setDate(a));case "FullYear":break;default:return}u=a,g=e.month(),M=e.date(),M=M===29&&g===1&&!Zt(u)?28:M,s?o.setUTCFullYear(u,g,M):o.setFullYear(u,g,M);}}function Oa(e){return e=Se(e),oe(this[e])?this[e]():this}function Fa(e,n){if(typeof e=="object"){e=vr(e);var a=ka(e),o,s=a.length;for(o=0;o<s;o++)this[a[o].unit](e[a[o].unit]);}else if(e=Se(e),oe(this[e]))return this[e](n);return this}function Ra(e,n){return (e%n+n)%n}var se;Array.prototype.indexOf?se=Array.prototype.indexOf:se=function(e){var n;for(n=0;n<this.length;++n)if(this[n]===e)return n;return -1};function Dr(e,n){if(isNaN(e)||isNaN(n))return NaN;var a=Ra(n,12);return e+=(n-a)/12,a===1?Zt(e)?29:28:31-a%7%2}O("M",["MM",2],"Mo",function(){return this.month()+1}),O("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),O("MMMM",0,0,function(e){return this.localeData().months(this,e)}),A("M",te,dt),A("MM",te,ve),A("MMM",function(e,n){return n.monthsShortRegex(e)}),A("MMMM",function(e,n){return n.monthsRegex(e)}),Q(["M","MM"],function(e,n){n[Ye]=W(e)-1;}),Q(["MMM","MMMM"],function(e,n,a,o){var s=a._locale.monthsParse(e,o,a._strict);s!=null?n[Ye]=s:m(a).invalidMonth=e;});var Ia="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ln="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),cn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ea=Dt,Na=Dt;function La(e,n){return e?l(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||cn).test(n)?"format":"standalone"][e.month()]:l(this._months)?this._months:this._months.standalone}function Ya(e,n){return e?l(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[cn.test(n)?"format":"standalone"][e.month()]:l(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Va(e,n,a){var o,s,u,g=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)u=D([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(u,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(u,"").toLocaleLowerCase();return a?n==="MMM"?(s=se.call(this._shortMonthsParse,g),s!==-1?s:null):(s=se.call(this._longMonthsParse,g),s!==-1?s:null):n==="MMM"?(s=se.call(this._shortMonthsParse,g),s!==-1?s:(s=se.call(this._longMonthsParse,g),s!==-1?s:null)):(s=se.call(this._longMonthsParse,g),s!==-1?s:(s=se.call(this._shortMonthsParse,g),s!==-1?s:null))}function Ba(e,n,a){var o,s,u;if(this._monthsParseExact)return Va.call(this,e,n,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(s=D([2e3,o]),a&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!a&&!this._monthsParse[o]&&(u="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[o]=new RegExp(u.replace(".",""),"i")),a&&n==="MMMM"&&this._longMonthsParse[o].test(e))return o;if(a&&n==="MMM"&&this._shortMonthsParse[o].test(e))return o;if(!a&&this._monthsParse[o].test(e))return o}}function un(e,n){if(!e.isValid())return e;if(typeof n=="string"){if(/^\d+$/.test(n))n=W(n);else if(n=e.localeData().monthsParse(n),!x(n))return e}var a=n,o=e.date();return o=o<29?o:Math.min(o,Dr(e.year(),a)),e._isUTC?e._d.setUTCMonth(a,o):e._d.setMonth(a,o),e}function dn(e){return e!=null?(un(this,e),t.updateOffset(this,true),this):_t(this,"Month")}function Ha(){return Dr(this.year(),this.month())}function Ua(e){return this._monthsParseExact?(d(this,"_monthsRegex")||hn.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ea),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Wa(e){return this._monthsParseExact?(d(this,"_monthsRegex")||hn.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Na),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function hn(){function e(N,G){return G.length-N.length}var n=[],a=[],o=[],s,u,g,M;for(s=0;s<12;s++)u=D([2e3,s]),g=Le(this.monthsShort(u,"")),M=Le(this.months(u,"")),n.push(g),a.push(M),o.push(M),o.push(g);n.sort(e),a.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i");}function za(e,n,a,o,s,u,g){var M;return e<100&&e>=0?(M=new Date(e+400,n,a,o,s,u,g),isFinite(M.getFullYear())&&M.setFullYear(e)):M=new Date(e,n,a,o,s,u,g),M}function Mt(e){var n,a;return e<100&&e>=0?(a=Array.prototype.slice.call(arguments),a[0]=e+400,n=new Date(Date.UTC.apply(null,a)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(e)):n=new Date(Date.UTC.apply(null,arguments)),n}function Jt(e,n,a){var o=7+n-a,s=(7+Mt(e,0,o).getUTCDay()-n)%7;return -s+o-1}function fn(e,n,a,o,s){var u=(7+a-o)%7,g=Jt(e,o,s),M=1+7*(n-1)+u+g,N,G;return M<=0?(N=e-1,G=Tt(N)+M):M>Tt(e)?(N=e+1,G=M-Tt(e)):(N=e,G=M),{year:N,dayOfYear:G}}function At(e,n,a){var o=Jt(e.year(),n,a),s=Math.floor((e.dayOfYear()-o-1)/7)+1,u,g;return s<1?(g=e.year()-1,u=s+Be(g,n,a)):s>Be(e.year(),n,a)?(u=s-Be(e.year(),n,a),g=e.year()+1):(g=e.year(),u=s),{week:u,year:g}}function Be(e,n,a){var o=Jt(e,n,a),s=Jt(e+1,n,a);return (Tt(e)-o+s)/7}O("w",["ww",2],"wo","week"),O("W",["WW",2],"Wo","isoWeek"),A("w",te,dt),A("ww",te,ve),A("W",te,dt),A("WW",te,ve),Ct(["w","ww","W","WW"],function(e,n,a,o){n[o.substr(0,1)]=W(e);});function Ga(e){return At(e,this._week.dow,this._week.doy).week}var ja={dow:0,doy:6};function $a(){return this._week.dow}function qa(){return this._week.doy}function Ka(e){var n=this.localeData().week(this);return e==null?n:this.add((e-n)*7,"d")}function Xa(e){var n=At(this,1,4).week;return e==null?n:this.add((e-n)*7,"d")}O("d",0,"do","day"),O("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),O("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),O("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),O("e",0,0,"weekday"),O("E",0,0,"isoWeekday"),A("d",te),A("e",te),A("E",te),A("dd",function(e,n){return n.weekdaysMinRegex(e)}),A("ddd",function(e,n){return n.weekdaysShortRegex(e)}),A("dddd",function(e,n){return n.weekdaysRegex(e)}),Ct(["dd","ddd","dddd"],function(e,n,a,o){var s=a._locale.weekdaysParse(e,o,a._strict);s!=null?n.d=s:m(a).invalidWeekday=e;}),Ct(["d","e","E"],function(e,n,a,o){n[o]=W(e);});function Za(e,n){return typeof e!="string"?e:isNaN(e)?(e=n.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Ja(e,n){return typeof e=="string"?n.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Cr(e,n){return e.slice(n,7).concat(e.slice(0,n))}var Qa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),mn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),eo="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),to=Dt,ro=Dt,no=Dt;function ao(e,n){var a=l(this._weekdays)?this._weekdays:this._weekdays[e&&e!==true&&this._weekdays.isFormat.test(n)?"format":"standalone"];return e===true?Cr(a,this._week.dow):e?a[e.day()]:a}function oo(e){return e===true?Cr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function io(e){return e===true?Cr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function so(e,n,a){var o,s,u,g=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)u=D([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(u,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(u,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(u,"").toLocaleLowerCase();return a?n==="dddd"?(s=se.call(this._weekdaysParse,g),s!==-1?s:null):n==="ddd"?(s=se.call(this._shortWeekdaysParse,g),s!==-1?s:null):(s=se.call(this._minWeekdaysParse,g),s!==-1?s:null):n==="dddd"?(s=se.call(this._weekdaysParse,g),s!==-1||(s=se.call(this._shortWeekdaysParse,g),s!==-1)?s:(s=se.call(this._minWeekdaysParse,g),s!==-1?s:null)):n==="ddd"?(s=se.call(this._shortWeekdaysParse,g),s!==-1||(s=se.call(this._weekdaysParse,g),s!==-1)?s:(s=se.call(this._minWeekdaysParse,g),s!==-1?s:null)):(s=se.call(this._minWeekdaysParse,g),s!==-1||(s=se.call(this._weekdaysParse,g),s!==-1)?s:(s=se.call(this._shortWeekdaysParse,g),s!==-1?s:null))}function lo(e,n,a){var o,s,u;if(this._weekdaysParseExact)return so.call(this,e,n,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(s=D([2e3,1]).day(o),a&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(u="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[o]=new RegExp(u.replace(".",""),"i")),a&&n==="dddd"&&this._fullWeekdaysParse[o].test(e))return o;if(a&&n==="ddd"&&this._shortWeekdaysParse[o].test(e))return o;if(a&&n==="dd"&&this._minWeekdaysParse[o].test(e))return o;if(!a&&this._weekdaysParse[o].test(e))return o}}function co(e){if(!this.isValid())return e!=null?this:NaN;var n=_t(this,"Day");return e!=null?(e=Za(e,this.localeData()),this.add(e-n,"d")):n}function uo(e){if(!this.isValid())return e!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return e==null?n:this.add(e-n,"d")}function ho(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var n=Ja(e,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function fo(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Tr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=to),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function mo(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Tr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ro),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function po(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Tr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=no),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Tr(){function e(ye,Ge){return Ge.length-ye.length}var n=[],a=[],o=[],s=[],u,g,M,N,G;for(u=0;u<7;u++)g=D([2e3,1]).day(u),M=Le(this.weekdaysMin(g,"")),N=Le(this.weekdaysShort(g,"")),G=Le(this.weekdays(g,"")),n.push(M),a.push(N),o.push(G),s.push(M),s.push(N),s.push(G);n.sort(e),a.sort(e),o.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i");}function _r(){return this.hours()%12||12}function go(){return this.hours()||24}O("H",["HH",2],0,"hour"),O("h",["hh",2],0,_r),O("k",["kk",2],0,go),O("hmm",0,0,function(){return ""+_r.apply(this)+fe(this.minutes(),2)}),O("hmmss",0,0,function(){return ""+_r.apply(this)+fe(this.minutes(),2)+fe(this.seconds(),2)}),O("Hmm",0,0,function(){return ""+this.hours()+fe(this.minutes(),2)}),O("Hmmss",0,0,function(){return ""+this.hours()+fe(this.minutes(),2)+fe(this.seconds(),2)});function pn(e,n){O(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)});}pn("a",true),pn("A",false);function gn(e,n){return n._meridiemParse}A("a",gn),A("A",gn),A("H",te,Sr),A("h",te,dt),A("k",te,dt),A("HH",te,ve),A("hh",te,ve),A("kk",te,ve),A("hmm",nn),A("hmmss",an),A("Hmm",nn),A("Hmmss",an),Q(["H","HH"],de),Q(["k","kk"],function(e,n,a){var o=W(e);n[de]=o===24?0:o;}),Q(["a","A"],function(e,n,a){a._isPm=a._locale.isPM(e),a._meridiem=e;}),Q(["h","hh"],function(e,n,a){n[de]=W(e),m(a).bigHour=true;}),Q("hmm",function(e,n,a){var o=e.length-2;n[de]=W(e.substr(0,o)),n[Ce]=W(e.substr(o)),m(a).bigHour=true;}),Q("hmmss",function(e,n,a){var o=e.length-4,s=e.length-2;n[de]=W(e.substr(0,o)),n[Ce]=W(e.substr(o,2)),n[Ve]=W(e.substr(s)),m(a).bigHour=true;}),Q("Hmm",function(e,n,a){var o=e.length-2;n[de]=W(e.substr(0,o)),n[Ce]=W(e.substr(o));}),Q("Hmmss",function(e,n,a){var o=e.length-4,s=e.length-2;n[de]=W(e.substr(0,o)),n[Ce]=W(e.substr(o,2)),n[Ve]=W(e.substr(s));});function yo(e){return (e+"").toLowerCase().charAt(0)==="p"}var bo=/[ap]\.?m?\.?/i,wo=ht("Hours",true);function vo(e,n,a){return e>11?a?"pm":"PM":a?"am":"AM"}var yn={calendar:Oe,longDateFormat:zt,invalidDate:wr,ordinal:pa,dayOfMonthOrdinalParse:ga,relativeTime:ba,months:Ia,monthsShort:ln,week:ja,weekdays:Qa,weekdaysMin:eo,weekdaysShort:mn,meridiemParse:bo},ae={},Ot={},Ft;function xo(e,n){var a,o=Math.min(e.length,n.length);for(a=0;a<o;a+=1)if(e[a]!==n[a])return a;return o}function bn(e){return e&&e.toLowerCase().replace("_","-")}function ko(e){for(var n=0,a,o,s,u;n<e.length;){for(u=bn(e[n]).split("-"),a=u.length,o=bn(e[n+1]),o=o?o.split("-"):null;a>0;){if(s=Qt(u.slice(0,a).join("-")),s)return s;if(o&&o.length>=a&&xo(u,o)>=a-1)break;a--;}n++;}return Ft}function So(e){return !!(e&&e.match("^[^/\\\\]*$"))}function Qt(e){var n=null,a;if(ae[e]===void 0&&typeof St<"u"&&St&&St.exports&&So(e))try{n=Ft._abbr,a=jn,a("./locale/"+e),Xe(n);}catch{ae[e]=null;}return ae[e]}function Xe(e,n){var a;return e&&(p(n)?a=He(e):a=Mr(e,n),a?Ft=a:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ft._abbr}function Mr(e,n){if(n!==null){var a,o=yn;if(n.abbr=e,ae[e]!=null)ee("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."),o=ae[e]._config;else if(n.parentLocale!=null)if(ae[n.parentLocale]!=null)o=ae[n.parentLocale]._config;else if(a=Qt(n.parentLocale),a!=null)o=a._config;else return Ot[n.parentLocale]||(Ot[n.parentLocale]=[]),Ot[n.parentLocale].push({name:e,config:n}),null;return ae[e]=new L(we(o,n)),Ot[e]&&Ot[e].forEach(function(s){Mr(s.name,s.config);}),Xe(e),ae[e]}else return delete ae[e],null}function Po(e,n){if(n!=null){var a,o,s=yn;ae[e]!=null&&ae[e].parentLocale!=null?ae[e].set(we(ae[e]._config,n)):(o=Qt(e),o!=null&&(s=o._config),n=we(s,n),o==null&&(n.abbr=e),a=new L(n),a.parentLocale=ae[e],ae[e]=a),Xe(e);}else ae[e]!=null&&(ae[e].parentLocale!=null?(ae[e]=ae[e].parentLocale,e===Xe()&&Xe(e)):ae[e]!=null&&delete ae[e]);return ae[e]}function He(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ft;if(!l(e)){if(n=Qt(e),n)return n;e=[e];}return ko(e)}function Do(){return me(ae)}function Ar(e){var n,a=e._a;return a&&m(e).overflow===-2&&(n=a[Ye]<0||a[Ye]>11?Ye:a[Re]<1||a[Re]>Dr(a[pe],a[Ye])?Re:a[de]<0||a[de]>24||a[de]===24&&(a[Ce]!==0||a[Ve]!==0||a[nt]!==0)?de:a[Ce]<0||a[Ce]>59?Ce:a[Ve]<0||a[Ve]>59?Ve:a[nt]<0||a[nt]>999?nt:-1,m(e)._overflowDayOfYear&&(n<pe||n>Re)&&(n=Re),m(e)._overflowWeeks&&n===-1&&(n=_a),m(e)._overflowWeekday&&n===-1&&(n=Ma),m(e).overflow=n),e}var Co=/^\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)?)?$/,To=/^\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)?)?$/,_o=/Z|[+-]\d\d(?::?\d\d)?/,er=[["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/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],Or=[["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/]],Mo=/^\/?Date\((-?\d+)/i,Ao=/^(?:(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}))$/,Oo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function wn(e){var n,a,o=e._i,s=Co.exec(o)||To.exec(o),u,g,M,N,G=er.length,ye=Or.length;if(s){for(m(e).iso=true,n=0,a=G;n<a;n++)if(er[n][1].exec(s[1])){g=er[n][0],u=er[n][2]!==false;break}if(g==null){e._isValid=false;return}if(s[3]){for(n=0,a=ye;n<a;n++)if(Or[n][1].exec(s[3])){M=(s[2]||" ")+Or[n][0];break}if(M==null){e._isValid=false;return}}if(!u&&M!=null){e._isValid=false;return}if(s[4])if(_o.exec(s[4]))N="Z";else {e._isValid=false;return}e._f=g+(M||"")+(N||""),Rr(e);}else e._isValid=false;}function Fo(e,n,a,o,s,u){var g=[Ro(e),ln.indexOf(n),parseInt(a,10),parseInt(o,10),parseInt(s,10)];return u&&g.push(parseInt(u,10)),g}function Ro(e){var n=parseInt(e,10);return n<=49?2e3+n:n<=999?1900+n:n}function Io(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Eo(e,n,a){if(e){var o=mn.indexOf(e),s=new Date(n[0],n[1],n[2]).getDay();if(o!==s)return m(a).weekdayMismatch=true,a._isValid=false,false}return true}function No(e,n,a){if(e)return Oo[e];if(n)return 0;var o=parseInt(a,10),s=o%100,u=(o-s)/100;return u*60+s}function vn(e){var n=Ao.exec(Io(e._i)),a;if(n){if(a=Fo(n[4],n[3],n[2],n[5],n[6],n[7]),!Eo(n[1],a,e))return;e._a=a,e._tzm=No(n[8],n[9],n[10]),e._d=Mt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=true;}else e._isValid=false;}function Lo(e){var n=Mo.exec(e._i);if(n!==null){e._d=new Date(+n[1]);return}if(wn(e),e._isValid===false)delete e._isValid;else return;if(vn(e),e._isValid===false)delete e._isValid;else return;e._strict?e._isValid=false:t.createFromInputFallback(e);}t.createFromInputFallback=U("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 ft(e,n,a){return e??n??a}function Yo(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function Fr(e){var n,a,o=[],s,u,g;if(!e._d){for(s=Yo(e),e._w&&e._a[Re]==null&&e._a[Ye]==null&&Vo(e),e._dayOfYear!=null&&(g=ft(e._a[pe],s[pe]),(e._dayOfYear>Tt(g)||e._dayOfYear===0)&&(m(e)._overflowDayOfYear=true),a=Mt(g,0,e._dayOfYear),e._a[Ye]=a.getUTCMonth(),e._a[Re]=a.getUTCDate()),n=0;n<3&&e._a[n]==null;++n)e._a[n]=o[n]=s[n];for(;n<7;n++)e._a[n]=o[n]=e._a[n]==null?n===2?1:0:e._a[n];e._a[de]===24&&e._a[Ce]===0&&e._a[Ve]===0&&e._a[nt]===0&&(e._nextDay=true,e._a[de]=0),e._d=(e._useUTC?Mt:za).apply(null,o),u=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[de]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==u&&(m(e).weekdayMismatch=true);}}function Vo(e){var n,a,o,s,u,g,M,N,G;n=e._w,n.GG!=null||n.W!=null||n.E!=null?(u=1,g=4,a=ft(n.GG,e._a[pe],At(re(),1,4).year),o=ft(n.W,1),s=ft(n.E,1),(s<1||s>7)&&(N=true)):(u=e._locale._week.dow,g=e._locale._week.doy,G=At(re(),u,g),a=ft(n.gg,e._a[pe],G.year),o=ft(n.w,G.week),n.d!=null?(s=n.d,(s<0||s>6)&&(N=true)):n.e!=null?(s=n.e+u,(n.e<0||n.e>6)&&(N=true)):s=u),o<1||o>Be(a,u,g)?m(e)._overflowWeeks=true:N!=null?m(e)._overflowWeekday=true:(M=fn(a,o,s,u,g),e._a[pe]=M.year,e._dayOfYear=M.dayOfYear);}t.ISO_8601=function(){},t.RFC_2822=function(){};function Rr(e){if(e._f===t.ISO_8601){wn(e);return}if(e._f===t.RFC_2822){vn(e);return}e._a=[],m(e).empty=true;var n=""+e._i,a,o,s,u,g,M=n.length,N=0,G,ye;for(s=Wt(e._f,e._locale).match(tt)||[],ye=s.length,a=0;a<ye;a++)u=s[a],o=(n.match(Da(u,e))||[])[0],o&&(g=n.substr(0,n.indexOf(o)),g.length>0&&m(e).unusedInput.push(g),n=n.slice(n.indexOf(o)+o.length),N+=o.length),Fe[u]?(o?m(e).empty=false:m(e).unusedTokens.push(u),Ta(u,o,e)):e._strict&&!o&&m(e).unusedTokens.push(u);m(e).charsLeftOver=M-N,n.length>0&&m(e).unusedInput.push(n),e._a[de]<=12&&m(e).bigHour===true&&e._a[de]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[de]=Bo(e._locale,e._a[de],e._meridiem),G=m(e).era,G!==null&&(e._a[pe]=e._locale.erasConvertYear(G,e._a[pe])),Fr(e),Ar(e);}function Bo(e,n,a){var o;return a==null?n:e.meridiemHour!=null?e.meridiemHour(n,a):(e.isPM!=null&&(o=e.isPM(a),o&&n<12&&(n+=12),!o&&n===12&&(n=0)),n)}function Ho(e){var n,a,o,s,u,g,M=false,N=e._f.length;if(N===0){m(e).invalidFormat=true,e._d=new Date(NaN);return}for(s=0;s<N;s++)u=0,g=false,n=Z({},e),e._useUTC!=null&&(n._useUTC=e._useUTC),n._f=e._f[s],Rr(n),T(n)&&(g=true),u+=m(n).charsLeftOver,u+=m(n).unusedTokens.length*10,m(n).score=u,M?u<o&&(o=u,a=n):(o==null||u<o||g)&&(o=u,a=n,g&&(M=true));S(e,a||n);}function Uo(e){if(!e._d){var n=vr(e._i),a=n.day===void 0?n.date:n.day;e._a=k([n.year,n.month,a,n.hour,n.minute,n.second,n.millisecond],function(o){return o&&parseInt(o,10)}),Fr(e);}}function Wo(e){var n=new $(Ar(xn(e)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function xn(e){var n=e._i,a=e._f;return e._locale=e._locale||He(e._l),n===null||a===void 0&&n===""?Y({nullInput:true}):(typeof n=="string"&&(e._i=n=e._locale.preparse(n)),V(n)?new $(Ar(n)):(w(n)?e._d=n:l(a)?Ho(e):a?Rr(e):zo(e),T(e)||(e._d=null),e))}function zo(e){var n=e._i;p(n)?e._d=new Date(t.now()):w(n)?e._d=new Date(n.valueOf()):typeof n=="string"?Lo(e):l(n)?(e._a=k(n.slice(0),function(a){return parseInt(a,10)}),Fr(e)):c(n)?Uo(e):x(n)?e._d=new Date(n):t.createFromInputFallback(e);}function kn(e,n,a,o,s){var u={};return (n===true||n===false)&&(o=n,n=void 0),(a===true||a===false)&&(o=a,a=void 0),(c(e)&&h(e)||l(e)&&e.length===0)&&(e=void 0),u._isAMomentObject=true,u._useUTC=u._isUTC=s,u._l=a,u._i=e,u._f=n,u._strict=o,Wo(u)}function re(e,n,a,o){return kn(e,n,a,o,false)}var Go=U("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=re.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Y()}),jo=U("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=re.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Y()});function Sn(e,n){var a,o;if(n.length===1&&l(n[0])&&(n=n[0]),!n.length)return re();for(a=n[0],o=1;o<n.length;++o)(!n[o].isValid()||n[o][e](a))&&(a=n[o]);return a}function $o(){var e=[].slice.call(arguments,0);return Sn("isBefore",e)}function qo(){var e=[].slice.call(arguments,0);return Sn("isAfter",e)}var Ko=function(){return Date.now?Date.now():+new Date},Rt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Xo(e){var n,a=false,o,s=Rt.length;for(n in e)if(d(e,n)&&!(se.call(Rt,n)!==-1&&(e[n]==null||!isNaN(e[n]))))return false;for(o=0;o<s;++o)if(e[Rt[o]]){if(a)return false;parseFloat(e[Rt[o]])!==W(e[Rt[o]])&&(a=true);}return true}function Zo(){return this._isValid}function Jo(){return Te(NaN)}function tr(e){var n=vr(e),a=n.year||0,o=n.quarter||0,s=n.month||0,u=n.week||n.isoWeek||0,g=n.day||0,M=n.hour||0,N=n.minute||0,G=n.second||0,ye=n.millisecond||0;this._isValid=Xo(n),this._milliseconds=+ye+G*1e3+N*6e4+M*1e3*60*60,this._days=+g+u*7,this._months=+s+o*3+a*12,this._data={},this._locale=He(),this._bubble();}function rr(e){return e instanceof tr}function Ir(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Qo(e,n,a){var o=Math.min(e.length,n.length),s=Math.abs(e.length-n.length),u=0,g;for(g=0;g<o;g++)(W(e[g])!==W(n[g]))&&u++;return u+s}function Pn(e,n){O(e,0,0,function(){var a=this.utcOffset(),o="+";return a<0&&(a=-a,o="-"),o+fe(~~(a/60),2)+n+fe(~~a%60,2)});}Pn("Z",":"),Pn("ZZ",""),A("Z",Kt),A("ZZ",Kt),Q(["Z","ZZ"],function(e,n,a){a._useUTC=true,a._tzm=Er(Kt,e);});var ei=/([\+\-]|\d\d)/gi;function Er(e,n){var a=(n||"").match(e),o,s,u;return a===null?null:(o=a[a.length-1]||[],s=(o+"").match(ei)||["-",0,0],u=+(s[1]*60)+W(s[2]),u===0?0:s[0]==="+"?u:-u)}function Nr(e,n){var a,o;return n._isUTC?(a=n.clone(),o=(V(e)||w(e)?e.valueOf():re(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+o),t.updateOffset(a,false),a):re(e).local()}function Lr(e){return -Math.round(e._d.getTimezoneOffset())}t.updateOffset=function(){};function ti(e,n,a){var o=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Er(Kt,e),e===null)return this}else Math.abs(e)<16&&!a&&(e=e*60);return !this._isUTC&&n&&(s=Lr(this)),this._offset=e,this._isUTC=true,s!=null&&this.add(s,"m"),o!==e&&(!n||this._changeInProgress?_n(this,Te(e-o,"m"),1,false):this._changeInProgress||(this._changeInProgress=true,t.updateOffset(this,true),this._changeInProgress=null)),this}else return this._isUTC?o:Lr(this)}function ri(e,n){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,n),this):-this.utcOffset()}function ni(e){return this.utcOffset(0,e)}function ai(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=false,e&&this.subtract(Lr(this),"m")),this}function oi(){if(this._tzm!=null)this.utcOffset(this._tzm,false,true);else if(typeof this._i=="string"){var e=Er(Sa,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,true);}return this}function ii(e){return this.isValid()?(e=e?re(e).utcOffset():0,(this.utcOffset()-e)%60===0):false}function si(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function li(){if(!p(this._isDSTShifted))return this._isDSTShifted;var e={},n;return Z(e,this),e=xn(e),e._a?(n=e._isUTC?D(e._a):re(e._a),this._isDSTShifted=this.isValid()&&Qo(e._a,n.toArray())>0):this._isDSTShifted=false,this._isDSTShifted}function ci(){return this.isValid()?!this._isUTC:false}function ui(){return this.isValid()?this._isUTC:false}function Dn(){return this.isValid()?this._isUTC&&this._offset===0:false}var di=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,hi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Te(e,n){var a=e,o=null,s,u,g;return rr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:x(e)||!isNaN(+e)?(a={},n?a[n]=+e:a.milliseconds=+e):(o=di.exec(e))?(s=o[1]==="-"?-1:1,a={y:0,d:W(o[Re])*s,h:W(o[de])*s,m:W(o[Ce])*s,s:W(o[Ve])*s,ms:W(Ir(o[nt]*1e3))*s}):(o=hi.exec(e))?(s=o[1]==="-"?-1:1,a={y:at(o[2],s),M:at(o[3],s),w:at(o[4],s),d:at(o[5],s),h:at(o[6],s),m:at(o[7],s),s:at(o[8],s)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(g=fi(re(a.from),re(a.to)),a={},a.ms=g.milliseconds,a.M=g.months),u=new tr(a),rr(e)&&d(e,"_locale")&&(u._locale=e._locale),rr(e)&&d(e,"_isValid")&&(u._isValid=e._isValid),u}Te.fn=tr.prototype,Te.invalid=Jo;function at(e,n){var a=e&&parseFloat(e.replace(",","."));return (isNaN(a)?0:a)*n}function Cn(e,n){var a={};return a.months=n.month()-e.month()+(n.year()-e.year())*12,e.clone().add(a.months,"M").isAfter(n)&&--a.months,a.milliseconds=+n-+e.clone().add(a.months,"M"),a}function fi(e,n){var a;return e.isValid()&&n.isValid()?(n=Nr(n,e),e.isBefore(n)?a=Cn(e,n):(a=Cn(n,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function Tn(e,n){return function(a,o){var s,u;return o!==null&&!isNaN(+o)&&(ee(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),u=a,a=o,o=u),s=Te(a,o),_n(this,s,e),this}}function _n(e,n,a,o){var s=n._milliseconds,u=Ir(n._days),g=Ir(n._months);e.isValid()&&(o=o??true,g&&un(e,_t(e,"Month")+g*a),u&&sn(e,"Date",_t(e,"Date")+u*a),s&&e._d.setTime(e._d.valueOf()+s*a),o&&t.updateOffset(e,u||g));}var mi=Tn(1,"add"),pi=Tn(-1,"subtract");function Mn(e){return typeof e=="string"||e instanceof String}function gi(e){return V(e)||w(e)||Mn(e)||x(e)||bi(e)||yi(e)||e===null||e===void 0}function yi(e){var n=c(e)&&!h(e),a=false,o=["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,u,g=o.length;for(s=0;s<g;s+=1)u=o[s],a=a||d(e,u);return n&&a}function bi(e){var n=l(e),a=false;return n&&(a=e.filter(function(o){return !x(o)&&Mn(e)}).length===0),n&&a}function wi(e){var n=c(e)&&!h(e),a=false,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,u;for(s=0;s<o.length;s+=1)u=o[s],a=a||d(e,u);return n&&a}function vi(e,n){var a=e.diff(n,"days",true);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"}function xi(e,n){arguments.length===1&&(arguments[0]?gi(arguments[0])?(e=arguments[0],n=void 0):wi(arguments[0])&&(n=arguments[0],e=void 0):(e=void 0,n=void 0));var a=e||re(),o=Nr(a,this).startOf("day"),s=t.calendarFormat(this,o)||"sameElse",u=n&&(oe(n[s])?n[s].call(this,a):n[s]);return this.format(u||this.localeData().calendar(s,this,re(a)))}function ki(){return new $(this)}function Si(e,n){var a=V(e)?e:re(e);return this.isValid()&&a.isValid()?(n=Se(n)||"millisecond",n==="millisecond"?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(n).valueOf()):false}function Pi(e,n){var a=V(e)?e:re(e);return this.isValid()&&a.isValid()?(n=Se(n)||"millisecond",n==="millisecond"?this.valueOf()<a.valueOf():this.clone().endOf(n).valueOf()<a.valueOf()):false}function Di(e,n,a,o){var s=V(e)?e:re(e),u=V(n)?n:re(n);return this.isValid()&&s.isValid()&&u.isValid()?(o=o||"()",(o[0]==="("?this.isAfter(s,a):!this.isBefore(s,a))&&(o[1]===")"?this.isBefore(u,a):!this.isAfter(u,a))):false}function Ci(e,n){var a=V(e)?e:re(e),o;return this.isValid()&&a.isValid()?(n=Se(n)||"millisecond",n==="millisecond"?this.valueOf()===a.valueOf():(o=a.valueOf(),this.clone().startOf(n).valueOf()<=o&&o<=this.clone().endOf(n).valueOf())):false}function Ti(e,n){return this.isSame(e,n)||this.isAfter(e,n)}function _i(e,n){return this.isSame(e,n)||this.isBefore(e,n)}function Mi(e,n,a){var o,s,u;if(!this.isValid())return NaN;if(o=Nr(e,this),!o.isValid())return NaN;switch(s=(o.utcOffset()-this.utcOffset())*6e4,n=Se(n),n){case "year":u=nr(this,o)/12;break;case "month":u=nr(this,o);break;case "quarter":u=nr(this,o)/3;break;case "second":u=(this-o)/1e3;break;case "minute":u=(this-o)/6e4;break;case "hour":u=(this-o)/36e5;break;case "day":u=(this-o-s)/864e5;break;case "week":u=(this-o-s)/6048e5;break;default:u=this-o;}return a?u:Pe(u)}function nr(e,n){if(e.date()<n.date())return -nr(n,e);var a=(n.year()-e.year())*12+(n.month()-e.month()),o=e.clone().add(a,"months"),s,u;return n-o<0?(s=e.clone().add(a-1,"months"),u=(n-o)/(o-s)):(s=e.clone().add(a+1,"months"),u=(n-o)/(s-o)),-(a+u)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Ai(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Oi(e){if(!this.isValid())return null;var n=e!==true,a=n?this.clone().utc():this;return a.year()<0||a.year()>9999?ct(a,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):oe(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ct(a,"Z")):ct(a,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Fi(){if(!this.isValid())return "moment.invalid(/* "+this._i+" */)";var e="moment",n="",a,o,s,u;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),a="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",u=n+'[")]',this.format(a+o+s+u)}function Ri(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=ct(this,e);return this.localeData().postformat(n)}function Ii(e,n){return this.isValid()&&(V(e)&&e.isValid()||re(e).isValid())?Te({to:this,from:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Ei(e){return this.from(re(),e)}function Ni(e,n){return this.isValid()&&(V(e)&&e.isValid()||re(e).isValid())?Te({from:this,to:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Li(e){return this.to(re(),e)}function An(e){var n;return e===void 0?this._locale._abbr:(n=He(e),n!=null&&(this._locale=n),this)}var On=U("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 Fn(){return this._locale}var ar=1e3,mt=60*ar,or=60*mt,Rn=(365*400+97)*24*or;function pt(e,n){return (e%n+n)%n}function In(e,n,a){return e<100&&e>=0?new Date(e+400,n,a)-Rn:new Date(e,n,a).valueOf()}function En(e,n,a){return e<100&&e>=0?Date.UTC(e+400,n,a)-Rn:Date.UTC(e,n,a)}function Yi(e){var n,a;if(e=Se(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?En:In,e){case "year":n=a(this.year(),0,1);break;case "quarter":n=a(this.year(),this.month()-this.month()%3,1);break;case "month":n=a(this.year(),this.month(),1);break;case "week":n=a(this.year(),this.month(),this.date()-this.weekday());break;case "isoWeek":n=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case "day":case "date":n=a(this.year(),this.month(),this.date());break;case "hour":n=this._d.valueOf(),n-=pt(n+(this._isUTC?0:this.utcOffset()*mt),or);break;case "minute":n=this._d.valueOf(),n-=pt(n,mt);break;case "second":n=this._d.valueOf(),n-=pt(n,ar);break}return this._d.setTime(n),t.updateOffset(this,true),this}function Vi(e){var n,a;if(e=Se(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?En:In,e){case "year":n=a(this.year()+1,0,1)-1;break;case "quarter":n=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case "month":n=a(this.year(),this.month()+1,1)-1;break;case "week":n=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case "isoWeek":n=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case "day":case "date":n=a(this.year(),this.month(),this.date()+1)-1;break;case "hour":n=this._d.valueOf(),n+=or-pt(n+(this._isUTC?0:this.utcOffset()*mt),or)-1;break;case "minute":n=this._d.valueOf(),n+=mt-pt(n,mt)-1;break;case "second":n=this._d.valueOf(),n+=ar-pt(n,ar)-1;break}return this._d.setTime(n),t.updateOffset(this,true),this}function Bi(){return this._d.valueOf()-(this._offset||0)*6e4}function Hi(){return Math.floor(this.valueOf()/1e3)}function Ui(){return new Date(this.valueOf())}function Wi(){var e=this;return [e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function zi(){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 Gi(){return this.isValid()?this.toISOString():null}function ji(){return T(this)}function $i(){return S({},m(this))}function qi(){return m(this).overflow}function Ki(){return {input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}O("N",0,0,"eraAbbr"),O("NN",0,0,"eraAbbr"),O("NNN",0,0,"eraAbbr"),O("NNNN",0,0,"eraName"),O("NNNNN",0,0,"eraNarrow"),O("y",["y",1],"yo","eraYear"),O("y",["yy",2],0,"eraYear"),O("y",["yyy",3],0,"eraYear"),O("y",["yyyy",4],0,"eraYear"),A("N",Yr),A("NN",Yr),A("NNN",Yr),A("NNNN",is),A("NNNNN",ss),Q(["N","NN","NNN","NNNN","NNNNN"],function(e,n,a,o){var s=a._locale.erasParse(e,o,a._strict);s?m(a).era=s:m(a).invalidEra=e;}),A("y",ut),A("yy",ut),A("yyy",ut),A("yyyy",ut),A("yo",ls),Q(["y","yy","yyy","yyyy"],pe),Q(["yo"],function(e,n,a,o){var s;a._locale._eraYearOrdinalRegex&&(s=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?n[pe]=a._locale.eraYearOrdinalParse(e,s):n[pe]=parseInt(e,10);});function Xi(e,n){var a,o,s,u=this._eras||He("en")._eras;for(a=0,o=u.length;a<o;++a)switch(typeof u[a].since==="string"&&(s=t(u[a].since).startOf("day"),u[a].since=s.valueOf()),typeof u[a].until){case "undefined":u[a].until=1/0;break;case "string":s=t(u[a].until).startOf("day").valueOf(),u[a].until=s.valueOf();break}return u}function Zi(e,n,a){var o,s,u=this.eras(),g,M,N;for(e=e.toUpperCase(),o=0,s=u.length;o<s;++o)if(g=u[o].name.toUpperCase(),M=u[o].abbr.toUpperCase(),N=u[o].narrow.toUpperCase(),a)switch(n){case "N":case "NN":case "NNN":if(M===e)return u[o];break;case "NNNN":if(g===e)return u[o];break;case "NNNNN":if(N===e)return u[o];break}else if([g,M,N].indexOf(e)>=0)return u[o]}function Ji(e,n){var a=e.since<=e.until?1:-1;return n===void 0?t(e.since).year():t(e.since).year()+(n-e.offset)*a}function Qi(){var e,n,a,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(a=this.clone().startOf("day").valueOf(),o[e].since<=a&&a<=o[e].until||o[e].until<=a&&a<=o[e].since)return o[e].name;return ""}function es(){var e,n,a,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(a=this.clone().startOf("day").valueOf(),o[e].since<=a&&a<=o[e].until||o[e].until<=a&&a<=o[e].since)return o[e].narrow;return ""}function ts(){var e,n,a,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(a=this.clone().startOf("day").valueOf(),o[e].since<=a&&a<=o[e].until||o[e].until<=a&&a<=o[e].since)return o[e].abbr;return ""}function rs(){var e,n,a,o,s=this.localeData().eras();for(e=0,n=s.length;e<n;++e)if(a=s[e].since<=s[e].until?1:-1,o=this.clone().startOf("day").valueOf(),s[e].since<=o&&o<=s[e].until||s[e].until<=o&&o<=s[e].since)return (this.year()-t(s[e].since).year())*a+s[e].offset;return this.year()}function ns(e){return d(this,"_erasNameRegex")||Vr.call(this),e?this._erasNameRegex:this._erasRegex}function as(e){return d(this,"_erasAbbrRegex")||Vr.call(this),e?this._erasAbbrRegex:this._erasRegex}function os(e){return d(this,"_erasNarrowRegex")||Vr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Yr(e,n){return n.erasAbbrRegex(e)}function is(e,n){return n.erasNameRegex(e)}function ss(e,n){return n.erasNarrowRegex(e)}function ls(e,n){return n._eraYearOrdinalRegex||ut}function Vr(){var e=[],n=[],a=[],o=[],s,u,g,M,N,G=this.eras();for(s=0,u=G.length;s<u;++s)g=Le(G[s].name),M=Le(G[s].abbr),N=Le(G[s].narrow),n.push(g),e.push(M),a.push(N),o.push(g),o.push(M),o.push(N);this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i");}O(0,["gg",2],0,function(){return this.weekYear()%100}),O(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ir(e,n){O(0,[e,e.length],0,n);}ir("gggg","weekYear"),ir("ggggg","weekYear"),ir("GGGG","isoWeekYear"),ir("GGGGG","isoWeekYear"),A("G",qt),A("g",qt),A("GG",te,ve),A("gg",te,ve),A("GGGG",kr,xr),A("gggg",kr,xr),A("GGGGG",$t,Gt),A("ggggg",$t,Gt),Ct(["gggg","ggggg","GGGG","GGGGG"],function(e,n,a,o){n[o.substr(0,2)]=W(e);}),Ct(["gg","GG"],function(e,n,a,o){n[o]=t.parseTwoDigitYear(e);});function cs(e){return Nn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function us(e){return Nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function ds(){return Be(this.year(),1,4)}function hs(){return Be(this.isoWeekYear(),1,4)}function fs(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)}function ms(){var e=this.localeData()._week;return Be(this.weekYear(),e.dow,e.doy)}function Nn(e,n,a,o,s){var u;return e==null?At(this,o,s).year:(u=Be(e,o,s),n>u&&(n=u),ps.call(this,e,n,a,o,s))}function ps(e,n,a,o,s){var u=fn(e,n,a,o,s),g=Mt(u.year,0,u.dayOfYear);return this.year(g.getUTCFullYear()),this.month(g.getUTCMonth()),this.date(g.getUTCDate()),this}O("Q",0,"Qo","quarter"),A("Q",tn),Q("Q",function(e,n){n[Ye]=(W(e)-1)*3;});function gs(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}O("D",["DD",2],"Do","date"),A("D",te,dt),A("DD",te,ve),A("Do",function(e,n){return e?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient}),Q(["D","DD"],Re),Q("Do",function(e,n){n[Re]=W(e.match(te)[0]);});var Ln=ht("Date",true);O("DDD",["DDDD",3],"DDDo","dayOfYear"),A("DDD",jt),A("DDDD",rn),Q(["DDD","DDDD"],function(e,n,a){a._dayOfYear=W(e);});function ys(e){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?n:this.add(e-n,"d")}O("m",["mm",2],0,"minute"),A("m",te,Sr),A("mm",te,ve),Q(["m","mm"],Ce);var bs=ht("Minutes",false);O("s",["ss",2],0,"second"),A("s",te,Sr),A("ss",te,ve),Q(["s","ss"],Ve);var ws=ht("Seconds",false);O("S",0,0,function(){return ~~(this.millisecond()/100)}),O(0,["SS",2],0,function(){return ~~(this.millisecond()/10)}),O(0,["SSS",3],0,"millisecond"),O(0,["SSSS",4],0,function(){return this.millisecond()*10}),O(0,["SSSSS",5],0,function(){return this.millisecond()*100}),O(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),O(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),O(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),O(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),A("S",jt,tn),A("SS",jt,ve),A("SSS",jt,rn);var Ze,Yn;for(Ze="SSSS";Ze.length<=9;Ze+="S")A(Ze,ut);function vs(e,n){n[nt]=W(("0."+e)*1e3);}for(Ze="S";Ze.length<=9;Ze+="S")Q(Ze,vs);Yn=ht("Milliseconds",false),O("z",0,0,"zoneAbbr"),O("zz",0,0,"zoneName");function xs(){return this._isUTC?"UTC":""}function ks(){return this._isUTC?"Coordinated Universal Time":""}var P=$.prototype;P.add=mi,P.calendar=xi,P.clone=ki,P.diff=Mi,P.endOf=Vi,P.format=Ri,P.from=Ii,P.fromNow=Ei,P.to=Ni,P.toNow=Li,P.get=Oa,P.invalidAt=qi,P.isAfter=Si,P.isBefore=Pi,P.isBetween=Di,P.isSame=Ci,P.isSameOrAfter=Ti,P.isSameOrBefore=_i,P.isValid=ji,P.lang=On,P.locale=An,P.localeData=Fn,P.max=jo,P.min=Go,P.parsingFlags=$i,P.set=Fa,P.startOf=Yi,P.subtract=pi,P.toArray=Wi,P.toObject=zi,P.toDate=Ui,P.toISOString=Oi,P.inspect=Fi,typeof Symbol<"u"&&Symbol.for!=null&&(P[Symbol.for("nodejs.util.inspect.custom")]=function(){return "Moment<"+this.format()+">"}),P.toJSON=Gi,P.toString=Ai,P.unix=Hi,P.valueOf=Bi,P.creationData=Ki,P.eraName=Qi,P.eraNarrow=es,P.eraAbbr=ts,P.eraYear=rs,P.year=on,P.isLeapYear=Aa,P.weekYear=cs,P.isoWeekYear=us,P.quarter=P.quarters=gs,P.month=dn,P.daysInMonth=Ha,P.week=P.weeks=Ka,P.isoWeek=P.isoWeeks=Xa,P.weeksInYear=fs,P.weeksInWeekYear=ms,P.isoWeeksInYear=ds,P.isoWeeksInISOWeekYear=hs,P.date=Ln,P.day=P.days=co,P.weekday=uo,P.isoWeekday=ho,P.dayOfYear=ys,P.hour=P.hours=wo,P.minute=P.minutes=bs,P.second=P.seconds=ws,P.millisecond=P.milliseconds=Yn,P.utcOffset=ti,P.utc=ni,P.local=ai,P.parseZone=oi,P.hasAlignedHourOffset=ii,P.isDST=si,P.isLocal=ci,P.isUtcOffset=ui,P.isUtc=Dn,P.isUTC=Dn,P.zoneAbbr=xs,P.zoneName=ks,P.dates=U("dates accessor is deprecated. Use date instead.",Ln),P.months=U("months accessor is deprecated. Use month instead",dn),P.years=U("years accessor is deprecated. Use year instead",on),P.zone=U("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ri),P.isDSTShifted=U("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",li);function Ss(e){return re(e*1e3)}function Ps(){return re.apply(null,arguments).parseZone()}function Vn(e){return e}var K=L.prototype;K.calendar=ke,K.longDateFormat=br,K.invalidDate=ma,K.ordinal=ya,K.preparse=Vn,K.postformat=Vn,K.relativeTime=wa,K.pastFuture=va,K.set=be,K.eras=Xi,K.erasParse=Zi,K.erasConvertYear=Ji,K.erasAbbrRegex=as,K.erasNameRegex=ns,K.erasNarrowRegex=os,K.months=La,K.monthsShort=Ya,K.monthsParse=Ba,K.monthsRegex=Wa,K.monthsShortRegex=Ua,K.week=Ga,K.firstDayOfYear=qa,K.firstDayOfWeek=$a,K.weekdays=ao,K.weekdaysMin=io,K.weekdaysShort=oo,K.weekdaysParse=lo,K.weekdaysRegex=fo,K.weekdaysShortRegex=mo,K.weekdaysMinRegex=po,K.isPM=yo,K.meridiem=vo;function sr(e,n,a,o){var s=He(),u=D().set(o,n);return s[a](u,e)}function Bn(e,n,a){if(x(e)&&(n=e,e=void 0),e=e||"",n!=null)return sr(e,n,a,"month");var o,s=[];for(o=0;o<12;o++)s[o]=sr(e,o,a,"month");return s}function Br(e,n,a,o){typeof e=="boolean"?(x(n)&&(a=n,n=void 0),n=n||""):(n=e,a=n,e=false,x(n)&&(a=n,n=void 0),n=n||"");var s=He(),u=e?s._week.dow:0,g,M=[];if(a!=null)return sr(n,(a+u)%7,o,"day");for(g=0;g<7;g++)M[g]=sr(n,(g+u)%7,o,"day");return M}function Ds(e,n){return Bn(e,n,"months")}function Cs(e,n){return Bn(e,n,"monthsShort")}function Ts(e,n,a){return Br(e,n,a,"weekdays")}function _s(e,n,a){return Br(e,n,a,"weekdaysShort")}function Ms(e,n,a){return Br(e,n,a,"weekdaysMin")}Xe("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 n=e%10,a=W(e%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return e+a}}),t.lang=U("moment.lang is deprecated. Use moment.locale instead.",Xe),t.langData=U("moment.langData is deprecated. Use moment.localeData instead.",He);var Ue=Math.abs;function As(){var e=this._data;return this._milliseconds=Ue(this._milliseconds),this._days=Ue(this._days),this._months=Ue(this._months),e.milliseconds=Ue(e.milliseconds),e.seconds=Ue(e.seconds),e.minutes=Ue(e.minutes),e.hours=Ue(e.hours),e.months=Ue(e.months),e.years=Ue(e.years),this}function Hn(e,n,a,o){var s=Te(n,a);return e._milliseconds+=o*s._milliseconds,e._days+=o*s._days,e._months+=o*s._months,e._bubble()}function Os(e,n){return Hn(this,e,n,1)}function Fs(e,n){return Hn(this,e,n,-1)}function Un(e){return e<0?Math.floor(e):Math.ceil(e)}function Rs(){var e=this._milliseconds,n=this._days,a=this._months,o=this._data,s,u,g,M,N;return e>=0&&n>=0&&a>=0||e<=0&&n<=0&&a<=0||(e+=Un(Hr(a)+n)*864e5,n=0,a=0),o.milliseconds=e%1e3,s=Pe(e/1e3),o.seconds=s%60,u=Pe(s/60),o.minutes=u%60,g=Pe(u/60),o.hours=g%24,n+=Pe(g/24),N=Pe(Wn(n)),a+=N,n-=Un(Hr(N)),M=Pe(a/12),a%=12,o.days=n,o.months=a,o.years=M,this}function Wn(e){return e*4800/146097}function Hr(e){return e*146097/4800}function Is(e){if(!this.isValid())return NaN;var n,a,o=this._milliseconds;if(e=Se(e),e==="month"||e==="quarter"||e==="year")switch(n=this._days+o/864e5,a=this._months+Wn(n),e){case "month":return a;case "quarter":return a/3;case "year":return a/12}else switch(n=this._days+Math.round(Hr(this._months)),e){case "week":return n/7+o/6048e5;case "day":return n+o/864e5;case "hour":return n*24+o/36e5;case "minute":return n*1440+o/6e4;case "second":return n*86400+o/1e3;case "millisecond":return Math.floor(n*864e5)+o;default:throw new Error("Unknown unit "+e)}}function We(e){return function(){return this.as(e)}}var zn=We("ms"),Es=We("s"),Ns=We("m"),Ls=We("h"),Ys=We("d"),Vs=We("w"),Bs=We("M"),Hs=We("Q"),Us=We("y"),Ws=zn;function zs(){return Te(this)}function Gs(e){return e=Se(e),this.isValid()?this[e+"s"]():NaN}function ot(e){return function(){return this.isValid()?this._data[e]:NaN}}var js=ot("milliseconds"),$s=ot("seconds"),qs=ot("minutes"),Ks=ot("hours"),Xs=ot("days"),Zs=ot("months"),Js=ot("years");function Qs(){return Pe(this.days()/7)}var ze=Math.round,gt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function el(e,n,a,o,s){return s.relativeTime(n||1,!!a,e,o)}function tl(e,n,a,o){var s=Te(e).abs(),u=ze(s.as("s")),g=ze(s.as("m")),M=ze(s.as("h")),N=ze(s.as("d")),G=ze(s.as("M")),ye=ze(s.as("w")),Ge=ze(s.as("y")),Je=u<=a.ss&&["s",u]||u<a.s&&["ss",u]||g<=1&&["m"]||g<a.m&&["mm",g]||M<=1&&["h"]||M<a.h&&["hh",M]||N<=1&&["d"]||N<a.d&&["dd",N];return a.w!=null&&(Je=Je||ye<=1&&["w"]||ye<a.w&&["ww",ye]),Je=Je||G<=1&&["M"]||G<a.M&&["MM",G]||Ge<=1&&["y"]||["yy",Ge],Je[2]=n,Je[3]=+e>0,Je[4]=o,el.apply(null,Je)}function rl(e){return e===void 0?ze:typeof e=="function"?(ze=e,true):false}function nl(e,n){return gt[e]===void 0?false:n===void 0?gt[e]:(gt[e]=n,e==="s"&&(gt.ss=n-1),true)}function al(e,n){if(!this.isValid())return this.localeData().invalidDate();var a=false,o=gt,s,u;return typeof e=="object"&&(n=e,e=false),typeof e=="boolean"&&(a=e),typeof n=="object"&&(o=Object.assign({},gt,n),n.s!=null&&n.ss==null&&(o.ss=n.s-1)),s=this.localeData(),u=tl(this,!a,o,s),a&&(u=s.pastFuture(+this,u)),s.postformat(u)}var Ur=Math.abs;function yt(e){return (e>0)-(e<0)||+e}function lr(){if(!this.isValid())return this.localeData().invalidDate();var e=Ur(this._milliseconds)/1e3,n=Ur(this._days),a=Ur(this._months),o,s,u,g,M=this.asSeconds(),N,G,ye,Ge;return M?(o=Pe(e/60),s=Pe(o/60),e%=60,o%=60,u=Pe(a/12),a%=12,g=e?e.toFixed(3).replace(/\.?0+$/,""):"",N=M<0?"-":"",G=yt(this._months)!==yt(M)?"-":"",ye=yt(this._days)!==yt(M)?"-":"",Ge=yt(this._milliseconds)!==yt(M)?"-":"",N+"P"+(u?G+u+"Y":"")+(a?G+a+"M":"")+(n?ye+n+"D":"")+(s||o||e?"T":"")+(s?Ge+s+"H":"")+(o?Ge+o+"M":"")+(e?Ge+g+"S":"")):"P0D"}var j=tr.prototype;j.isValid=Zo,j.abs=As,j.add=Os,j.subtract=Fs,j.as=Is,j.asMilliseconds=zn,j.asSeconds=Es,j.asMinutes=Ns,j.asHours=Ls,j.asDays=Ys,j.asWeeks=Vs,j.asMonths=Bs,j.asQuarters=Hs,j.asYears=Us,j.valueOf=Ws,j._bubble=Rs,j.clone=zs,j.get=Gs,j.milliseconds=js,j.seconds=$s,j.minutes=qs,j.hours=Ks,j.days=Xs,j.weeks=Qs,j.months=Zs,j.years=Js,j.humanize=al,j.toISOString=lr,j.toString=lr,j.toJSON=lr,j.locale=An,j.localeData=Fn,j.toIsoString=U("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lr),j.lang=On,O("X",0,0,"unix"),O("x",0,0,"valueOf"),A("x",qt),A("X",Pa),Q("X",function(e,n,a){a._d=new Date(parseFloat(e)*1e3);}),Q("x",function(e,n,a){a._d=new Date(W(e));});return t.version="2.30.1",r(re),t.fn=P,t.min=$o,t.max=qo,t.now=Ko,t.utc=D,t.unix=Ss,t.months=Ds,t.isDate=w,t.locale=Xe,t.invalid=Y,t.duration=Te,t.isMoment=V,t.weekdays=Ts,t.parseZone=Ps,t.localeData=He,t.isDuration=rr,t.monthsShort=Cs,t.weekdaysMin=Ms,t.defineLocale=Mr,t.updateLocale=Po,t.locales=Do,t.weekdaysShort=_s,t.normalizeUnits=Se,t.relativeTimeRounding=rl,t.relativeTimeThreshold=nl,t.calendarFormat=vi,t.prototype=P,t.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"},t}));});function ge(i){return i<0?-1:i===0?0:1}function it(i,t,r){return (1-r)*i+r*t}function qn(i,t,r){return r<i?i:r>t?t:r}function ue(i,t,r){return r<i?i:r>t?t:r}function bt(i){return i=i%360,i<0&&(i=i+360),i}function he(i){return i=i%360,i<0&&(i=i+360),i}function It(i,t){let r=i[0]*t[0][0]+i[1]*t[0][1]+i[2]*t[0][2],l=i[0]*t[1][0]+i[1]*t[1][1]+i[2]*t[1][2],c=i[0]*t[2][0]+i[1]*t[2][1]+i[2]*t[2][2];return [r,l,c]}var Kn=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],hl=[[3.2413774792388685,-1.5376652402851851,-0.49885366846268053],[-0.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-0.20395524564742123,1.0571799111220335]],Xn=[95.047,100,108.883];function cr(i,t,r){return (255<<24|(i&255)<<16|(t&255)<<8|r&255)>>>0}function zr(i){let t=st(i[0]),r=st(i[1]),l=st(i[2]);return cr(t,r,l)}function Nt(i){return i>>16&255}function Lt(i){return i>>8&255}function Yt(i){return i&255}function Zn(i,t,r){let l=hl,c=l[0][0]*i+l[0][1]*t+l[0][2]*r,d=l[1][0]*i+l[1][1]*t+l[1][2]*r,h=l[2][0]*i+l[2][1]*t+l[2][2]*r,p=st(c),x=st(d),w=st(h);return cr(p,x,w)}function fl(i){let t=Ie(Nt(i)),r=Ie(Lt(i)),l=Ie(Yt(i));return It([t,r,l],Kn)}function Gr(i){let t=Ie(Nt(i)),r=Ie(Lt(i)),l=Ie(Yt(i)),c=Kn,d=c[0][0]*t+c[0][1]*r+c[0][2]*l,h=c[1][0]*t+c[1][1]*r+c[1][2]*l,p=c[2][0]*t+c[2][1]*r+c[2][2]*l,x=Xn,w=d/x[0],k=h/x[1],S=p/x[2],D=Et(w),C=Et(k),m=Et(S),v=116*C-16,T=500*(D-C),Y=200*(C-m);return [v,T,Y]}function Jn(i){let t=_e(i),r=st(t);return cr(r,r,r)}function ur(i){let t=fl(i)[1];return 116*Et(t/100)-16}function _e(i){return 100*ml((i+16)/116)}function Vt(i){return Et(i/100)*116-16}function Ie(i){let t=i/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}function st(i){let t=i/100,r=0;return t<=.0031308?r=t*12.92:r=1.055*Math.pow(t,1/2.4)-.055,qn(0,255,Math.round(r*255))}function Qn(){return Xn}function Et(i){let t=.008856451679035631,r=24389/27;return i>t?Math.pow(i,1/3):(r*i+16)/116}function ml(i){let t=.008856451679035631,r=24389/27,l=i*i*i;return l>t?l:(116*i-16)/r}var xe=class i{static make(t=Qn(),r=200/Math.PI*_e(50)/100,l=50,c=2,d=false){let h=t,p=h[0]*.401288+h[1]*.650173+h[2]*-0.051461,x=h[0]*-0.250268+h[1]*1.204414+h[2]*.045854,w=h[0]*-2079e-6+h[1]*.048952+h[2]*.953127,k=.8+c/10,S=k>=.9?it(.59,.69,(k-.9)*10):it(.525,.59,(k-.8)*10),D=d?1:k*(1-1/3.6*Math.exp((-r-42)/92));D=D>1?1:D<0?0:D;let C=k,m=[D*(100/p)+1-D,D*(100/x)+1-D,D*(100/w)+1-D],v=1/(5*r+1),T=v*v*v*v,Y=1-T,H=T*r+.1*Y*Y*Math.cbrt(5*r),X=_e(l)/t[1],Z=1.48+Math.sqrt(X),$=.725/Math.pow(X,.2),V=$,z=[Math.pow(H*m[0]*p/100,.42),Math.pow(H*m[1]*x/100,.42),Math.pow(H*m[2]*w/100,.42)],U=[400*z[0]/(z[0]+27.13),400*z[1]/(z[1]+27.13),400*z[2]/(z[2]+27.13)],ne=(2*U[0]+U[1]+.05*U[2])*$;return new i(X,ne,$,V,S,C,m,H,Math.pow(H,.25),Z)}constructor(t,r,l,c,d,h,p,x,w,k){this.n=t,this.aw=r,this.nbb=l,this.ncb=c,this.c=d,this.nc=h,this.rgbD=p,this.fl=x,this.fLRoot=w,this.z=k;}};xe.DEFAULT=xe.make();var Ee=class i{constructor(t,r,l,c,d,h,p,x,w){this.hue=t,this.chroma=r,this.j=l,this.q=c,this.m=d,this.s=h,this.jstar=p,this.astar=x,this.bstar=w;}distance(t){let r=this.jstar-t.jstar,l=this.astar-t.astar,c=this.bstar-t.bstar,d=Math.sqrt(r*r+l*l+c*c);return 1.41*Math.pow(d,.63)}static fromInt(t){return i.fromIntInViewingConditions(t,xe.DEFAULT)}static fromIntInViewingConditions(t,r){let l=(t&16711680)>>16,c=(t&65280)>>8,d=t&255,h=Ie(l),p=Ie(c),x=Ie(d),w=.41233895*h+.35762064*p+.18051042*x,k=.2126*h+.7152*p+.0722*x,S=.01932141*h+.11916382*p+.95034478*x,D=.401288*w+.650173*k-.051461*S,C=-0.250268*w+1.204414*k+.045854*S,m=-2079e-6*w+.048952*k+.953127*S,v=r.rgbD[0]*D,T=r.rgbD[1]*C,Y=r.rgbD[2]*m,H=Math.pow(r.fl*Math.abs(v)/100,.42),X=Math.pow(r.fl*Math.abs(T)/100,.42),Z=Math.pow(r.fl*Math.abs(Y)/100,.42),$=ge(v)*400*H/(H+27.13),V=ge(T)*400*X/(X+27.13),z=ge(Y)*400*Z/(Z+27.13),U=(11*$+-12*V+z)/11,ne=($+V-2*z)/9,ee=(20*$+20*V+21*z)/20,oe=(40*$+20*V+z)/20,we=Math.atan2(ne,U)*180/Math.PI,L=he(we),me=L*Math.PI/180,Oe=oe*r.nbb,ke=100*Math.pow(Oe/r.aw,r.c*r.z),fe=4/r.c*Math.sqrt(ke/100)*(r.aw+4)*r.fLRoot,tt=L<20.14?L+360:L,Ke=.25*(Math.cos(tt*Math.PI/180+2)+3.8),Fe=5e4/13*Ke*r.nc*r.ncb*Math.sqrt(U*U+ne*ne)/(ee+.305),O=Math.pow(Fe,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),Ht=O*Math.sqrt(ke/100),Ut=Ht*r.fLRoot,ct=50*Math.sqrt(O*r.c/(r.aw+4)),Wt=(1+100*.007)*ke/(1+.007*ke),zt=1/.0228*Math.log(1+.0228*Ut),br=zt*Math.cos(me),wr=zt*Math.sin(me);return new i(L,Ht,ke,fe,Ut,ct,Wt,br,wr)}static fromJch(t,r,l){return i.fromJchInViewingConditions(t,r,l,xe.DEFAULT)}static fromJchInViewingConditions(t,r,l,c){let d=4/c.c*Math.sqrt(t/100)*(c.aw+4)*c.fLRoot,h=r*c.fLRoot,p=r/Math.sqrt(t/100),x=50*Math.sqrt(p*c.c/(c.aw+4)),w=l*Math.PI/180,k=(1+100*.007)*t/(1+.007*t),S=1/.0228*Math.log(1+.0228*h),D=S*Math.cos(w),C=S*Math.sin(w);return new i(l,r,t,d,h,x,k,D,C)}static fromUcs(t,r,l){return i.fromUcsInViewingConditions(t,r,l,xe.DEFAULT)}static fromUcsInViewingConditions(t,r,l,c){let d=r,h=l,p=Math.sqrt(d*d+h*h),w=(Math.exp(p*.0228)-1)/.0228/c.fLRoot,k=Math.atan2(h,d)*(180/Math.PI);k<0&&(k+=360);let S=t/(1-(t-100)*.007);return i.fromJchInViewingConditions(S,w,k,c)}toInt(){return this.viewed(xe.DEFAULT)}viewed(t){let r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),l=Math.pow(r/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),c=this.hue*Math.PI/180,d=.25*(Math.cos(c+2)+3.8),h=t.aw*Math.pow(this.j/100,1/t.c/t.z),p=d*(5e4/13)*t.nc*t.ncb,x=h/t.nbb,w=Math.sin(c),k=Math.cos(c),S=23*(x+.305)*l/(23*p+11*l*k+108*l*w),D=S*k,C=S*w,m=(460*x+451*D+288*C)/1403,v=(460*x-891*D-261*C)/1403,T=(460*x-220*D-6300*C)/1403,Y=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),H=ge(m)*(100/t.fl)*Math.pow(Y,1/.42),X=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),Z=ge(v)*(100/t.fl)*Math.pow(X,1/.42),$=Math.max(0,27.13*Math.abs(T)/(400-Math.abs(T))),V=ge(T)*(100/t.fl)*Math.pow($,1/.42),z=H/t.rgbD[0],U=Z/t.rgbD[1],ne=V/t.rgbD[2],ee=1.86206786*z-1.01125463*U+.14918677*ne,oe=.38752654*z+.62144744*U-.00897398*ne,be=-0.0158415*z-.03412294*U+1.04996444*ne;return Zn(ee,oe,be)}static fromXyzInViewingConditions(t,r,l,c){let d=.401288*t+.650173*r-.051461*l,h=-0.250268*t+1.204414*r+.045854*l,p=-2079e-6*t+.048952*r+.953127*l,x=c.rgbD[0]*d,w=c.rgbD[1]*h,k=c.rgbD[2]*p,S=Math.pow(c.fl*Math.abs(x)/100,.42),D=Math.pow(c.fl*Math.abs(w)/100,.42),C=Math.pow(c.fl*Math.abs(k)/100,.42),m=ge(x)*400*S/(S+27.13),v=ge(w)*400*D/(D+27.13),T=ge(k)*400*C/(C+27.13),Y=(11*m+-12*v+T)/11,H=(m+v-2*T)/9,X=(20*m+20*v+21*T)/20,Z=(40*m+20*v+T)/20,V=Math.atan2(H,Y)*180/Math.PI,z=V<0?V+360:V>=360?V-360:V,U=z*Math.PI/180,ne=Z*c.nbb,ee=100*Math.pow(ne/c.aw,c.c*c.z),oe=4/c.c*Math.sqrt(ee/100)*(c.aw+4)*c.fLRoot,be=z<20.14?z+360:z,we=1/4*(Math.cos(be*Math.PI/180+2)+3.8),me=5e4/13*we*c.nc*c.ncb*Math.sqrt(Y*Y+H*H)/(X+.305),Oe=Math.pow(me,.9)*Math.pow(1.64-Math.pow(.29,c.n),.73),ke=Oe*Math.sqrt(ee/100),fe=ke*c.fLRoot,tt=50*Math.sqrt(Oe*c.c/(c.aw+4)),Ke=(1+100*.007)*ee/(1+.007*ee),rt=Math.log(1+.0228*fe)/.0228,Fe=rt*Math.cos(U),O=rt*Math.sin(U);return new i(z,ke,ee,oe,fe,tt,Ke,Fe,O)}xyzInViewingConditions(t){let r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),l=Math.pow(r/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),c=this.hue*Math.PI/180,d=.25*(Math.cos(c+2)+3.8),h=t.aw*Math.pow(this.j/100,1/t.c/t.z),p=d*(5e4/13)*t.nc*t.ncb,x=h/t.nbb,w=Math.sin(c),k=Math.cos(c),S=23*(x+.305)*l/(23*p+11*l*k+108*l*w),D=S*k,C=S*w,m=(460*x+451*D+288*C)/1403,v=(460*x-891*D-261*C)/1403,T=(460*x-220*D-6300*C)/1403,Y=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),H=ge(m)*(100/t.fl)*Math.pow(Y,1/.42),X=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),Z=ge(v)*(100/t.fl)*Math.pow(X,1/.42),$=Math.max(0,27.13*Math.abs(T)/(400-Math.abs(T))),V=ge(T)*(100/t.fl)*Math.pow($,1/.42),z=H/t.rgbD[0],U=Z/t.rgbD[1],ne=V/t.rgbD[2],ee=1.86206786*z-1.01125463*U+.14918677*ne,oe=.38752654*z+.62144744*U-.00897398*ne,be=-0.0158415*z-.03412294*U+1.04996444*ne;return [ee,oe,be]}};var Ae=class i{static sanitizeRadians(t){return (t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){let r=t/100,l=0;return r<=.0031308?l=r*12.92:l=1.055*Math.pow(r,1/2.4)-.055,l*255}static chromaticAdaptation(t){let r=Math.pow(Math.abs(t),.42);return ge(t)*400*r/(r+27.13)}static hueOf(t){let r=It(t,i.SCALED_DISCOUNT_FROM_LINRGB),l=i.chromaticAdaptation(r[0]),c=i.chromaticAdaptation(r[1]),d=i.chromaticAdaptation(r[2]),h=(11*l+-12*c+d)/11,p=(l+c-2*d)/9;return Math.atan2(p,h)}static areInCyclicOrder(t,r,l){let c=i.sanitizeRadians(r-t),d=i.sanitizeRadians(l-t);return c<d}static intercept(t,r,l){return (r-t)/(l-t)}static lerpPoint(t,r,l){return [t[0]+(l[0]-t[0])*r,t[1]+(l[1]-t[1])*r,t[2]+(l[2]-t[2])*r]}static setCoordinate(t,r,l,c){let d=i.intercept(t[c],r,l[c]);return i.lerpPoint(t,d,l)}static isBounded(t){return 0<=t&&t<=100}static nthVertex(t,r){let l=i.Y_FROM_LINRGB[0],c=i.Y_FROM_LINRGB[1],d=i.Y_FROM_LINRGB[2],h=r%4<=1?0:100,p=r%2===0?0:100;if(r<4){let x=h,w=p,k=(t-x*c-w*d)/l;return i.isBounded(k)?[k,x,w]:[-1,-1,-1]}else if(r<8){let x=h,w=p,k=(t-w*l-x*d)/c;return i.isBounded(k)?[w,k,x]:[-1,-1,-1]}else {let x=h,w=p,k=(t-x*l-w*c)/d;return i.isBounded(k)?[x,w,k]:[-1,-1,-1]}}static bisectToSegment(t,r){let l=[-1,-1,-1],c=l,d=0,h=0,p=false,x=true;for(let w=0;w<12;w++){let k=i.nthVertex(t,w);if(k[0]<0)continue;let S=i.hueOf(k);if(!p){l=k,c=k,d=S,h=S,p=true;continue}(x||i.areInCyclicOrder(d,S,h))&&(x=false,i.areInCyclicOrder(d,r,S)?(c=k,h=S):(l=k,d=S));}return [l,c]}static midpoint(t,r){return [(t[0]+r[0])/2,(t[1]+r[1])/2,(t[2]+r[2])/2]}static criticalPlaneBelow(t){return Math.floor(t-.5)}static criticalPlaneAbove(t){return Math.ceil(t-.5)}static bisectToLimit(t,r){let l=i.bisectToSegment(t,r),c=l[0],d=i.hueOf(c),h=l[1];for(let p=0;p<3;p++)if(c[p]!==h[p]){let x=-1,w=255;c[p]<h[p]?(x=i.criticalPlaneBelow(i.trueDelinearized(c[p])),w=i.criticalPlaneAbove(i.trueDelinearized(h[p]))):(x=i.criticalPlaneAbove(i.trueDelinearized(c[p])),w=i.criticalPlaneBelow(i.trueDelinearized(h[p])));for(let k=0;k<8&&!(Math.abs(w-x)<=1);k++){let S=Math.floor((x+w)/2),D=i.CRITICAL_PLANES[S],C=i.setCoordinate(c,D,h,p),m=i.hueOf(C);i.areInCyclicOrder(d,r,m)?(h=C,w=S):(c=C,d=m,x=S);}}return i.midpoint(c,h)}static inverseChromaticAdaptation(t){let r=Math.abs(t),l=Math.max(0,27.13*r/(400-r));return ge(t)*Math.pow(l,1/.42)}static findResultByJ(t,r,l){let c=Math.sqrt(l)*11,d=xe.DEFAULT,h=1/Math.pow(1.64-Math.pow(.29,d.n),.73),x=.25*(Math.cos(t+2)+3.8)*(5e4/13)*d.nc*d.ncb,w=Math.sin(t),k=Math.cos(t);for(let S=0;S<5;S++){let D=c/100,C=r===0||c===0?0:r/Math.sqrt(D),m=Math.pow(C*h,1/.9),T=d.aw*Math.pow(D,1/d.c/d.z)/d.nbb,Y=23*(T+.305)*m/(23*x+11*m*k+108*m*w),H=Y*k,X=Y*w,Z=(460*T+451*H+288*X)/1403,$=(460*T-891*H-261*X)/1403,V=(460*T-220*H-6300*X)/1403,z=i.inverseChromaticAdaptation(Z),U=i.inverseChromaticAdaptation($),ne=i.inverseChromaticAdaptation(V),ee=It([z,U,ne],i.LINRGB_FROM_SCALED_DISCOUNT);if(ee[0]<0||ee[1]<0||ee[2]<0)return 0;let oe=i.Y_FROM_LINRGB[0],be=i.Y_FROM_LINRGB[1],we=i.Y_FROM_LINRGB[2],L=oe*ee[0]+be*ee[1]+we*ee[2];if(L<=0)return 0;if(S===4||Math.abs(L-l)<.002)return ee[0]>100.01||ee[1]>100.01||ee[2]>100.01?0:zr(ee);c=c-(L-l)*c/(2*L);}return 0}static solveToInt(t,r,l){if(r<1e-4||l<1e-4||l>99.9999)return Jn(l);t=he(t);let c=t/180*Math.PI,d=_e(l),h=i.findResultByJ(c,r,d);if(h!==0)return h;let p=i.bisectToLimit(d,c);return zr(p)}static solveToCam(t,r,l){return Ee.fromInt(i.solveToInt(t,r,l))}};Ae.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];Ae.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];Ae.Y_FROM_LINRGB=[.2126,.7152,.0722];Ae.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];var F=class i{static from(t,r,l){return new i(Ae.solveToInt(t,r,l))}static fromInt(t){return new i(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(Ae.solveToInt(t,this.internalChroma,this.internalTone));}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(Ae.solveToInt(this.internalHue,t,this.internalTone));}get tone(){return this.internalTone}set tone(t){this.setInternalState(Ae.solveToInt(this.internalHue,this.internalChroma,t));}setValue(t,r){this[t]=r;}toString(){return `HCT(${this.hue.toFixed(0)}, ${this.chroma.toFixed(0)}, ${this.tone.toFixed(0)})`}static isBlue(t){return t>=250&&t<270}static isYellow(t){return t>=105&&t<125}static isCyan(t){return t>=170&&t<207}constructor(t){this.argb=t;let r=Ee.fromInt(t);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=ur(t),this.argb=t;}setInternalState(t){let r=Ee.fromInt(t);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=ur(t),this.argb=t;}inViewingConditions(t){let l=Ee.fromInt(this.toInt()).xyzInViewingConditions(t),c=Ee.fromXyzInViewingConditions(l[0],l[1],l[2],xe.make());return i.from(c.hue,c.chroma,Vt(l[1]))}};var le=class i{static ratioOfTones(t,r){return t=ue(0,100,t),r=ue(0,100,r),i.ratioOfYs(_e(t),_e(r))}static ratioOfYs(t,r){let l=t>r?t:r,c=l===r?t:r;return (l+5)/(c+5)}static lighter(t,r){if(t<0||t>100)return -1;let l=_e(t),c=r*(l+5)-5,d=i.ratioOfYs(c,l),h=Math.abs(d-r);if(d<r&&h>.04)return -1;let p=Vt(c)+.4;return p<0||p>100?-1:p}static darker(t,r){if(t<0||t>100)return -1;let l=_e(t),c=(l+5)/r-5,d=i.ratioOfYs(l,c),h=Math.abs(d-r);if(d<r&&h>.04)return -1;let p=Vt(c)-.4;return p<0||p>100?-1:p}static lighterUnsafe(t,r){let l=i.lighter(t,r);return l<0?100:l}static darkerUnsafe(t,r){let l=i.darker(t,r);return l<0?0:l}};var lt=class i{static isDisliked(t){let r=Math.round(t.hue)>=90&&Math.round(t.hue)<=111,l=Math.round(t.chroma)>16,c=Math.round(t.tone)<65;return r&&l&&c}static fixIfDisliked(t){return i.isDisliked(t)?F.from(t.hue,t.chroma,70):t}};function pl(i,t,r){if(i.name!==r.name)throw new Error(`Attempting to extend color ${i.name} with color ${r.name} of different name for spec version ${t}.`);if(i.isBackground!==r.isBackground)throw new Error(`Attempting to extend color ${i.name} as a ${i.isBackground?"background":"foreground"} with color ${r.name} as a ${r.isBackground?"background":"foreground"} for spec version ${t}.`)}function E(i,t,r){return pl(i,t,r),y.fromPalette({name:i.name,palette:l=>l.specVersion===t?r.palette(l):i.palette(l),tone:l=>l.specVersion===t?r.tone(l):i.tone(l),isBackground:i.isBackground,chromaMultiplier:l=>{let c=l.specVersion===t?r.chromaMultiplier:i.chromaMultiplier;return c!==void 0?c(l):1},background:l=>{let c=l.specVersion===t?r.background:i.background;return c!==void 0?c(l):void 0},secondBackground:l=>{let c=l.specVersion===t?r.secondBackground:i.secondBackground;return c!==void 0?c(l):void 0},contrastCurve:l=>{let c=l.specVersion===t?r.contrastCurve:i.contrastCurve;return c!==void 0?c(l):void 0},toneDeltaPair:l=>{let c=l.specVersion===t?r.toneDeltaPair:i.toneDeltaPair;return c!==void 0?c(l):void 0}})}var y=class i{static fromPalette(t){return new i(t.name??"",t.palette,t.tone??i.getInitialToneFromBackground(t.background),t.isBackground??false,t.chromaMultiplier,t.background,t.secondBackground,t.contrastCurve,t.toneDeltaPair)}static getInitialToneFromBackground(t){return t===void 0?r=>50:r=>t(r)?t(r).getTone(r):50}constructor(t,r,l,c,d,h,p,x,w){if(this.name=t,this.palette=r,this.tone=l,this.isBackground=c,this.chromaMultiplier=d,this.background=h,this.secondBackground=p,this.contrastCurve=x,this.toneDeltaPair=w,this.hctCache=new Map,!h&&p)throw new Error(`Color ${t} has secondBackgrounddefined, but background is not defined.`);if(!h&&x)throw new Error(`Color ${t} has contrastCurvedefined, but background is not defined.`);if(h&&!x)throw new Error(`Color ${t} has backgrounddefined, but contrastCurve is not defined.`)}clone(){return i.fromPalette({name:this.name,palette:this.palette,tone:this.tone,isBackground:this.isBackground,chromaMultiplier:this.chromaMultiplier,background:this.background,secondBackground:this.secondBackground,contrastCurve:this.contrastCurve,toneDeltaPair:this.toneDeltaPair})}clearCache(){this.hctCache.clear();}getArgb(t){return this.getHct(t).toInt()}getHct(t){let r=this.hctCache.get(t);if(r!=null)return r;let l=ea(t.specVersion).getHct(t,this);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(t,l),l}getTone(t){return ea(t.specVersion).getTone(t,this)}static foregroundTone(t,r){let l=le.lighterUnsafe(t,r),c=le.darkerUnsafe(t,r),d=le.ratioOfTones(l,t),h=le.ratioOfTones(c,t);if(i.tonePrefersLightForeground(t)){let x=Math.abs(d-h)<.1&&d<r&&h<r;return d>=r||d>=h||x?l:c}else return h>=r||h>=d?c:l}static tonePrefersLightForeground(t){return Math.round(t)<60}static toneAllowsLightForeground(t){return Math.round(t)<=49}static enableLightForeground(t){return i.tonePrefersLightForeground(t)&&!i.toneAllowsLightForeground(t)?49:t}},jr=class{getHct(t,r){let l=r.getTone(t);return r.palette(t).getHct(l)}getTone(t,r){let l=t.contrastLevel<0,c=r.toneDeltaPair?r.toneDeltaPair(t):void 0;if(c){let d=c.roleA,h=c.roleB,p=c.delta,x=c.polarity,w=c.stayTogether,k=x==="nearer"||x==="lighter"&&!t.isDark||x==="darker"&&t.isDark,S=k?d:h,D=k?h:d,C=r.name===S.name,m=t.isDark?1:-1,v=S.tone(t),T=D.tone(t);if(r.background&&S.contrastCurve&&D.contrastCurve){let Y=r.background(t),H=S.contrastCurve(t),X=D.contrastCurve(t);if(Y&&H&&X){let Z=Y.getTone(t),$=H.get(t.contrastLevel),V=X.get(t.contrastLevel);le.ratioOfTones(Z,v)<$&&(v=y.foregroundTone(Z,$)),le.ratioOfTones(Z,T)<V&&(T=y.foregroundTone(Z,V)),l&&(v=y.foregroundTone(Z,$),T=y.foregroundTone(Z,V));}}return (T-v)*m<p&&(T=ue(0,100,v+p*m),(T-v)*m>=p||(v=ue(0,100,T-p*m))),50<=v&&v<60?m>0?(v=60,T=Math.max(T,v+p*m)):(v=49,T=Math.min(T,v+p*m)):50<=T&&T<60&&(w?m>0?(v=60,T=Math.max(T,v+p*m)):(v=49,T=Math.min(T,v+p*m)):m>0?T=60:T=49),C?v:T}else {let d=r.tone(t);if(r.background==null||r.background(t)===void 0||r.contrastCurve==null||r.contrastCurve(t)===void 0)return d;let h=r.background(t).getTone(t),p=r.contrastCurve(t).get(t.contrastLevel);if(le.ratioOfTones(h,d)>=p||(d=y.foregroundTone(h,p)),l&&(d=y.foregroundTone(h,p)),r.isBackground&&50<=d&&d<60&&(le.ratioOfTones(49,h)>=p?d=49:d=60),r.secondBackground==null||r.secondBackground(t)===void 0)return d;let[x,w]=[r.background,r.secondBackground],[k,S]=[x(t).getTone(t),w(t).getTone(t)],[D,C]=[Math.max(k,S),Math.min(k,S)];if(le.ratioOfTones(D,d)>=p&&le.ratioOfTones(C,d)>=p)return d;let m=le.lighter(D,p),v=le.darker(C,p),T=[];return m!==-1&&T.push(m),v!==-1&&T.push(v),y.tonePrefersLightForeground(k)||y.tonePrefersLightForeground(S)?m<0?100:m:T.length===1?T[0]:v<0?0:v}}},$r=class{getHct(t,r){let l=r.palette(t),c=r.getTone(t),d=l.hue,h=l.chroma*(r.chromaMultiplier?r.chromaMultiplier(t):1);return F.from(d,h,c)}getTone(t,r){let l=r.toneDeltaPair?r.toneDeltaPair(t):void 0;if(l){let c=l.roleA,d=l.roleB,h=l.polarity,p=l.constraint,x=h==="darker"||h==="relative_lighter"&&t.isDark||h==="relative_darker"&&!t.isDark?-l.delta:l.delta,w=r.name===c.name,k=w?c:d,S=w?d:c,D=k.tone(t),C=S.getTone(t),m=x*(w?1:-1);if(p==="exact"?D=ue(0,100,C+m):p==="nearer"?m>0?D=ue(0,100,ue(C,C+m,D)):D=ue(0,100,ue(C+m,C,D)):p==="farther"&&(m>0?D=ue(C+m,100,D):D=ue(0,C+m,D)),r.background&&r.contrastCurve){let v=r.background(t),T=r.contrastCurve(t);if(v&&T){let Y=v.getTone(t),H=T.get(t.contrastLevel);D=le.ratioOfTones(Y,D)>=H&&t.contrastLevel>=0?D:y.foregroundTone(Y,H);}}return r.isBackground&&!r.name.endsWith("_fixed_dim")&&(D>=57?D=ue(65,100,D):D=ue(0,49,D)),D}else {let c=r.tone(t);if(r.background==null||r.background(t)===void 0||r.contrastCurve==null||r.contrastCurve(t)===void 0)return c;let d=r.background(t).getTone(t),h=r.contrastCurve(t).get(t.contrastLevel);if(c=le.ratioOfTones(d,c)>=h&&t.contrastLevel>=0?c:y.foregroundTone(d,h),r.isBackground&&!r.name.endsWith("_fixed_dim")&&(c>=57?c=ue(65,100,c):c=ue(0,49,c)),r.secondBackground==null||r.secondBackground(t)===void 0)return c;let[p,x]=[r.background,r.secondBackground],[w,k]=[p(t).getTone(t),x(t).getTone(t)],[S,D]=[Math.max(w,k),Math.min(w,k)];if(le.ratioOfTones(S,c)>=h&&le.ratioOfTones(D,c)>=h)return c;let C=le.lighter(S,h),m=le.darker(D,h),v=[];return C!==-1&&v.push(C),m!==-1&&v.push(m),y.tonePrefersLightForeground(w)||y.tonePrefersLightForeground(k)?C<0?100:C:v.length===1?v[0]:m<0?0:m}}},gl=new jr,yl=new $r;function ea(i){return i==="2025"?yl:gl}var _=class i{static fromInt(t){let r=F.fromInt(t);return i.fromHct(r)}static fromHct(t){return new i(t.hue,t.chroma,t)}static fromHueAndChroma(t,r){let l=new qr(t,r).create();return new i(t,r,l)}constructor(t,r,l){this.hue=t,this.chroma=r,this.keyColor=l,this.cache=new Map;}tone(t){let r=this.cache.get(t);return r===void 0&&(t==99&&F.isYellow(this.hue)?r=this.averageArgb(this.tone(98),this.tone(100)):r=F.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,r)),r}getHct(t){return F.fromInt(this.tone(t))}averageArgb(t,r){let l=t>>>16&255,c=t>>>8&255,d=t&255,h=r>>>16&255,p=r>>>8&255,x=r&255,w=Math.round((l+h)/2),k=Math.round((c+p)/2),S=Math.round((d+x)/2);return (255<<24|(w&255)<<16|(k&255)<<8|S&255)>>>0}},qr=class{constructor(t,r){this.hue=t,this.requestedChroma=r,this.chromaCache=new Map,this.maxChromaValue=200;}create(){let c=0,d=100;for(;c<d;){let h=Math.floor((c+d)/2),p=this.maxChroma(h)<this.maxChroma(h+1);if(this.maxChroma(h)>=this.requestedChroma-.01)if(Math.abs(c-50)<Math.abs(d-50))d=h;else {if(c===h)return F.from(this.hue,this.requestedChroma,c);c=h;}else p?c=h+1:d=h;}return F.from(this.hue,this.requestedChroma,c)}maxChroma(t){if(this.chromaCache.has(t))return this.chromaCache.get(t);let r=F.from(this.hue,this.maxChromaValue,t).chroma;return this.chromaCache.set(t,r),r}};var Bt=class i{constructor(t){this.input=t,this.hctsByTempCache=[],this.hctsByHueCache=[],this.tempsByHctCache=new Map,this.inputRelativeTemperatureCache=-1,this.complementCache=null;}get hctsByTemp(){if(this.hctsByTempCache.length>0)return this.hctsByTempCache;let t=this.hctsByHue.concat([this.input]),r=this.tempsByHct;return t.sort((l,c)=>r.get(l)-r.get(c)),this.hctsByTempCache=t,t}get warmest(){return this.hctsByTemp[this.hctsByTemp.length-1]}get coldest(){return this.hctsByTemp[0]}analogous(t=5,r=12){let l=Math.round(this.input.hue),c=this.hctsByHue[l],d=this.relativeTemperature(c),h=[c],p=0;for(let m=0;m<360;m++){let v=bt(l+m),T=this.hctsByHue[v],Y=this.relativeTemperature(T),H=Math.abs(Y-d);d=Y,p+=H;}let x=1,w=p/r,k=0;for(d=this.relativeTemperature(c);h.length<r;){let m=bt(l+x),v=this.hctsByHue[m],T=this.relativeTemperature(v),Y=Math.abs(T-d);k+=Y;let H=h.length*w,X=k>=H,Z=1;for(;X&&h.length<r;){h.push(v);let $=(h.length+Z)*w;X=k>=$,Z++;}if(d=T,x++,x>360){for(;h.length<r;)h.push(v);break}}let S=[this.input],D=Math.floor((t-1)/2);for(let m=1;m<D+1;m++){let v=0-m;for(;v<0;)v=h.length+v;v>=h.length&&(v=v%h.length),S.splice(0,0,h[v]);}let C=t-D-1;for(let m=1;m<C+1;m++){let v=m;for(;v<0;)v=h.length+v;v>=h.length&&(v=v%h.length),S.push(h[v]);}return S}get complement(){if(this.complementCache!=null)return this.complementCache;let t=this.coldest.hue,r=this.tempsByHct.get(this.coldest),l=this.warmest.hue,d=this.tempsByHct.get(this.warmest)-r,h=i.isBetween(this.input.hue,t,l),p=h?l:t,x=h?t:l,w=1,k=1e3,S=this.hctsByHue[Math.round(this.input.hue)],D=1-this.inputRelativeTemperature;for(let C=0;C<=360;C+=1){let m=he(p+w*C);if(!i.isBetween(m,p,x))continue;let v=this.hctsByHue[Math.round(m)],T=(this.tempsByHct.get(v)-r)/d,Y=Math.abs(D-T);Y<k&&(k=Y,S=v);}return this.complementCache=S,this.complementCache}relativeTemperature(t){let r=this.tempsByHct.get(this.warmest)-this.tempsByHct.get(this.coldest),l=this.tempsByHct.get(t)-this.tempsByHct.get(this.coldest);return r===0?.5:l/r}get inputRelativeTemperature(){return this.inputRelativeTemperatureCache>=0?this.inputRelativeTemperatureCache:(this.inputRelativeTemperatureCache=this.relativeTemperature(this.input),this.inputRelativeTemperatureCache)}get tempsByHct(){if(this.tempsByHctCache.size>0)return this.tempsByHctCache;let t=this.hctsByHue.concat([this.input]),r=new Map;for(let l of t)r.set(l,i.rawTemperature(l));return this.tempsByHctCache=r,r}get hctsByHue(){if(this.hctsByHueCache.length>0)return this.hctsByHueCache;let t=[];for(let r=0;r<=360;r+=1){let l=F.from(r,this.input.chroma,this.input.tone);t.push(l);}return this.hctsByHueCache=t,this.hctsByHueCache}static isBetween(t,r,l){return r<l?r<=t&&t<=l:r<=t||t<=l}static rawTemperature(t){let r=Gr(t.toInt()),l=he(Math.atan2(r[2],r[1])*180/Math.PI),c=Math.sqrt(r[1]*r[1]+r[2]*r[2]);return -0.5+.02*Math.pow(c,1.07)*Math.cos(he(l-50)*Math.PI/180)}};var R=class{constructor(t,r,l,c){this.low=t,this.normal=r,this.medium=l,this.high=c;}get(t){return t<=-1?this.low:t<0?it(this.low,this.normal,(t- -1)/1):t<.5?it(this.normal,this.medium,(t-0)/.5):t<1?it(this.medium,this.high,(t-.5)/.5):this.high}};var q=class{constructor(t,r,l,c,d,h){this.roleA=t,this.roleB=r,this.delta=l,this.polarity=c,this.stayTogether=d,this.constraint=h,this.constraint=h??"exact";}};var f;(function(i){i[i.MONOCHROME=0]="MONOCHROME",i[i.NEUTRAL=1]="NEUTRAL",i[i.TONAL_SPOT=2]="TONAL_SPOT",i[i.VIBRANT=3]="VIBRANT",i[i.EXPRESSIVE=4]="EXPRESSIVE",i[i.FIDELITY=5]="FIDELITY",i[i.CONTENT=6]="CONTENT",i[i.RAINBOW=7]="RAINBOW",i[i.FRUIT_SALAD=8]="FRUIT_SALAD";})(f||(f={}));function wt(i){return i.variant===f.FIDELITY||i.variant===f.CONTENT}function ie(i){return i.variant===f.MONOCHROME}function bl(i,t,r,l){let c=r,d=F.from(i,t,r);if(d.chroma<t){let h=d.chroma;for(;d.chroma<t;){c+=l?-1:1;let p=F.from(i,t,c);if(h>p.chroma||Math.abs(p.chroma-t)<.4)break;let x=Math.abs(p.chroma-t),w=Math.abs(d.chroma-t);x<w&&(d=p),h=Math.max(h,p.chroma);}}return c}var dr=class{primaryPaletteKeyColor(){return y.fromPalette({name:"primary_palette_key_color",palette:t=>t.primaryPalette,tone:t=>t.primaryPalette.keyColor.tone})}secondaryPaletteKeyColor(){return y.fromPalette({name:"secondary_palette_key_color",palette:t=>t.secondaryPalette,tone:t=>t.secondaryPalette.keyColor.tone})}tertiaryPaletteKeyColor(){return y.fromPalette({name:"tertiary_palette_key_color",palette:t=>t.tertiaryPalette,tone:t=>t.tertiaryPalette.keyColor.tone})}neutralPaletteKeyColor(){return y.fromPalette({name:"neutral_palette_key_color",palette:t=>t.neutralPalette,tone:t=>t.neutralPalette.keyColor.tone})}neutralVariantPaletteKeyColor(){return y.fromPalette({name:"neutral_variant_palette_key_color",palette:t=>t.neutralVariantPalette,tone:t=>t.neutralVariantPalette.keyColor.tone})}errorPaletteKeyColor(){return y.fromPalette({name:"error_palette_key_color",palette:t=>t.errorPalette,tone:t=>t.errorPalette.keyColor.tone})}background(){return y.fromPalette({name:"background",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:true})}onBackground(){return y.fromPalette({name:"on_background",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>this.background(),contrastCurve:t=>new R(3,3,4.5,7)})}surface(){return y.fromPalette({name:"surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:true})}surfaceDim(){return y.fromPalette({name:"surface_dim",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:new R(87,87,80,75).get(t.contrastLevel),isBackground:true})}surfaceBright(){return y.fromPalette({name:"surface_bright",palette:t=>t.neutralPalette,tone:t=>t.isDark?new R(24,24,29,34).get(t.contrastLevel):98,isBackground:true})}surfaceContainerLowest(){return y.fromPalette({name:"surface_container_lowest",palette:t=>t.neutralPalette,tone:t=>t.isDark?new R(4,4,2,0).get(t.contrastLevel):100,isBackground:true})}surfaceContainerLow(){return y.fromPalette({name:"surface_container_low",palette:t=>t.neutralPalette,tone:t=>t.isDark?new R(10,10,11,12).get(t.contrastLevel):new R(96,96,96,95).get(t.contrastLevel),isBackground:true})}surfaceContainer(){return y.fromPalette({name:"surface_container",palette:t=>t.neutralPalette,tone:t=>t.isDark?new R(12,12,16,20).get(t.contrastLevel):new R(94,94,92,90).get(t.contrastLevel),isBackground:true})}surfaceContainerHigh(){return y.fromPalette({name:"surface_container_high",palette:t=>t.neutralPalette,tone:t=>t.isDark?new R(17,17,21,25).get(t.contrastLevel):new R(92,92,88,85).get(t.contrastLevel),isBackground:true})}surfaceContainerHighest(){return y.fromPalette({name:"surface_container_highest",palette:t=>t.neutralPalette,tone:t=>t.isDark?new R(22,22,26,30).get(t.contrastLevel):new R(90,90,84,80).get(t.contrastLevel),isBackground:true})}onSurface(){return y.fromPalette({name:"on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>this.highestSurface(t),contrastCurve:t=>new R(4.5,7,11,21)})}surfaceVariant(){return y.fromPalette({name:"surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:90,isBackground:true})}onSurfaceVariant(){return y.fromPalette({name:"on_surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?80:30,background:t=>this.highestSurface(t),contrastCurve:t=>new R(3,4.5,7,11)})}inverseSurface(){return y.fromPalette({name:"inverse_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:20,isBackground:true})}inverseOnSurface(){return y.fromPalette({name:"inverse_on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?20:95,background:t=>this.inverseSurface(),contrastCurve:t=>new R(4.5,7,11,21)})}outline(){return y.fromPalette({name:"outline",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?60:50,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1.5,3,4.5,7)})}outlineVariant(){return y.fromPalette({name:"outline_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:80,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5)})}shadow(){return y.fromPalette({name:"shadow",palette:t=>t.neutralPalette,tone:t=>0})}scrim(){return y.fromPalette({name:"scrim",palette:t=>t.neutralPalette,tone:t=>0})}surfaceTint(){return y.fromPalette({name:"surface_tint",palette:t=>t.primaryPalette,tone:t=>t.isDark?80:40,isBackground:true})}primary(){return y.fromPalette({name:"primary",palette:t=>t.primaryPalette,tone:t=>ie(t)?t.isDark?100:0:t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(3,4.5,7,7),toneDeltaPair:t=>new q(this.primaryContainer(),this.primary(),10,"nearer",false)})}primaryDim(){}onPrimary(){return y.fromPalette({name:"on_primary",palette:t=>t.primaryPalette,tone:t=>ie(t)?t.isDark?10:90:t.isDark?20:100,background:t=>this.primary(),contrastCurve:t=>new R(4.5,7,11,21)})}primaryContainer(){return y.fromPalette({name:"primary_container",palette:t=>t.primaryPalette,tone:t=>wt(t)?t.sourceColorHct.tone:ie(t)?t.isDark?85:25:t.isDark?30:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.primaryContainer(),this.primary(),10,"nearer",false)})}onPrimaryContainer(){return y.fromPalette({name:"on_primary_container",palette:t=>t.primaryPalette,tone:t=>wt(t)?y.foregroundTone(this.primaryContainer().tone(t),4.5):ie(t)?t.isDark?0:100:t.isDark?90:30,background:t=>this.primaryContainer(),contrastCurve:t=>new R(3,4.5,7,11)})}inversePrimary(){return y.fromPalette({name:"inverse_primary",palette:t=>t.primaryPalette,tone:t=>t.isDark?40:80,background:t=>this.inverseSurface(),contrastCurve:t=>new R(3,4.5,7,7)})}secondary(){return y.fromPalette({name:"secondary",palette:t=>t.secondaryPalette,tone:t=>t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(3,4.5,7,7),toneDeltaPair:t=>new q(this.secondaryContainer(),this.secondary(),10,"nearer",false)})}secondaryDim(){}onSecondary(){return y.fromPalette({name:"on_secondary",palette:t=>t.secondaryPalette,tone:t=>ie(t)?t.isDark?10:100:t.isDark?20:100,background:t=>this.secondary(),contrastCurve:t=>new R(4.5,7,11,21)})}secondaryContainer(){return y.fromPalette({name:"secondary_container",palette:t=>t.secondaryPalette,tone:t=>{let r=t.isDark?30:90;return ie(t)?t.isDark?30:85:wt(t)?bl(t.secondaryPalette.hue,t.secondaryPalette.chroma,r,!t.isDark):r},isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.secondaryContainer(),this.secondary(),10,"nearer",false)})}onSecondaryContainer(){return y.fromPalette({name:"on_secondary_container",palette:t=>t.secondaryPalette,tone:t=>ie(t)?t.isDark?90:10:wt(t)?y.foregroundTone(this.secondaryContainer().tone(t),4.5):t.isDark?90:30,background:t=>this.secondaryContainer(),contrastCurve:t=>new R(3,4.5,7,11)})}tertiary(){return y.fromPalette({name:"tertiary",palette:t=>t.tertiaryPalette,tone:t=>ie(t)?t.isDark?90:25:t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(3,4.5,7,7),toneDeltaPair:t=>new q(this.tertiaryContainer(),this.tertiary(),10,"nearer",false)})}tertiaryDim(){}onTertiary(){return y.fromPalette({name:"on_tertiary",palette:t=>t.tertiaryPalette,tone:t=>ie(t)?t.isDark?10:90:t.isDark?20:100,background:t=>this.tertiary(),contrastCurve:t=>new R(4.5,7,11,21)})}tertiaryContainer(){return y.fromPalette({name:"tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>{if(ie(t))return t.isDark?60:49;if(!wt(t))return t.isDark?30:90;let r=t.tertiaryPalette.getHct(t.sourceColorHct.tone);return lt.fixIfDisliked(r).tone},isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.tertiaryContainer(),this.tertiary(),10,"nearer",false)})}onTertiaryContainer(){return y.fromPalette({name:"on_tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>ie(t)?t.isDark?0:100:wt(t)?y.foregroundTone(this.tertiaryContainer().tone(t),4.5):t.isDark?90:30,background:t=>this.tertiaryContainer(),contrastCurve:t=>new R(3,4.5,7,11)})}error(){return y.fromPalette({name:"error",palette:t=>t.errorPalette,tone:t=>t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(3,4.5,7,7),toneDeltaPair:t=>new q(this.errorContainer(),this.error(),10,"nearer",false)})}errorDim(){}onError(){return y.fromPalette({name:"on_error",palette:t=>t.errorPalette,tone:t=>t.isDark?20:100,background:t=>this.error(),contrastCurve:t=>new R(4.5,7,11,21)})}errorContainer(){return y.fromPalette({name:"error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?30:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.errorContainer(),this.error(),10,"nearer",false)})}onErrorContainer(){return y.fromPalette({name:"on_error_container",palette:t=>t.errorPalette,tone:t=>ie(t)?t.isDark?90:10:t.isDark?90:30,background:t=>this.errorContainer(),contrastCurve:t=>new R(3,4.5,7,11)})}primaryFixed(){return y.fromPalette({name:"primary_fixed",palette:t=>t.primaryPalette,tone:t=>ie(t)?40:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",true)})}primaryFixedDim(){return y.fromPalette({name:"primary_fixed_dim",palette:t=>t.primaryPalette,tone:t=>ie(t)?30:80,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",true)})}onPrimaryFixed(){return y.fromPalette({name:"on_primary_fixed",palette:t=>t.primaryPalette,tone:t=>ie(t)?100:10,background:t=>this.primaryFixedDim(),secondBackground:t=>this.primaryFixed(),contrastCurve:t=>new R(4.5,7,11,21)})}onPrimaryFixedVariant(){return y.fromPalette({name:"on_primary_fixed_variant",palette:t=>t.primaryPalette,tone:t=>ie(t)?90:30,background:t=>this.primaryFixedDim(),secondBackground:t=>this.primaryFixed(),contrastCurve:t=>new R(3,4.5,7,11)})}secondaryFixed(){return y.fromPalette({name:"secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>ie(t)?80:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",true)})}secondaryFixedDim(){return y.fromPalette({name:"secondary_fixed_dim",palette:t=>t.secondaryPalette,tone:t=>ie(t)?70:80,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",true)})}onSecondaryFixed(){return y.fromPalette({name:"on_secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>10,background:t=>this.secondaryFixedDim(),secondBackground:t=>this.secondaryFixed(),contrastCurve:t=>new R(4.5,7,11,21)})}onSecondaryFixedVariant(){return y.fromPalette({name:"on_secondary_fixed_variant",palette:t=>t.secondaryPalette,tone:t=>ie(t)?25:30,background:t=>this.secondaryFixedDim(),secondBackground:t=>this.secondaryFixed(),contrastCurve:t=>new R(3,4.5,7,11)})}tertiaryFixed(){return y.fromPalette({name:"tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>ie(t)?40:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",true)})}tertiaryFixedDim(){return y.fromPalette({name:"tertiary_fixed_dim",palette:t=>t.tertiaryPalette,tone:t=>ie(t)?30:80,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",true)})}onTertiaryFixed(){return y.fromPalette({name:"on_tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>ie(t)?100:10,background:t=>this.tertiaryFixedDim(),secondBackground:t=>this.tertiaryFixed(),contrastCurve:t=>new R(4.5,7,11,21)})}onTertiaryFixedVariant(){return y.fromPalette({name:"on_tertiary_fixed_variant",palette:t=>t.tertiaryPalette,tone:t=>ie(t)?90:30,background:t=>this.tertiaryFixedDim(),secondBackground:t=>this.tertiaryFixed(),contrastCurve:t=>new R(3,4.5,7,11)})}highestSurface(t){return t.isDark?this.surfaceBright():this.surfaceDim()}};function B(i,t=0,r=100,l=1){let c=ta(i.hue,i.chroma*l,100,true);return ue(t,r,c)}function Qe(i,t=0,r=100){let l=ta(i.hue,i.chroma,0,false);return ue(t,r,l)}function ta(i,t,r,l){let c=r,d=F.from(i,t,c);for(;d.chroma<t&&!(r<0||r>100);){r+=l?-1:1;let h=F.from(i,t,r);d.chroma<h.chroma&&(d=h,c=r);}return c}function I(i){return i===1.5?new R(1.5,1.5,3,5.5):i===3?new R(3,3,4.5,7):i===4.5?new R(4.5,4.5,7,11):i===6?new R(6,6,7,11):i===7?new R(7,7,11,21):i===9?new R(9,9,11,21):i===11?new R(11,11,21,21):i===21?new R(21,21,21,21):new R(i,i,7,21)}var hr=class extends dr{surface(){let t=y.fromPalette({name:"surface",palette:r=>r.neutralPalette,tone:r=>(super.surface().tone(r),r.platform==="phone"?r.isDark?4:F.isYellow(r.neutralPalette.hue)?99:r.variant===f.VIBRANT?97:98:0),isBackground:true});return E(super.surface(),"2025",t)}surfaceDim(){let t=y.fromPalette({name:"surface_dim",palette:r=>r.neutralPalette,tone:r=>r.isDark?4:F.isYellow(r.neutralPalette.hue)?90:r.variant===f.VIBRANT?85:87,isBackground:true,chromaMultiplier:r=>{if(!r.isDark){if(r.variant===f.NEUTRAL)return 2.5;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?2.7:1.75;if(r.variant===f.VIBRANT)return 1.36}return 1}});return E(super.surfaceDim(),"2025",t)}surfaceBright(){let t=y.fromPalette({name:"surface_bright",palette:r=>r.neutralPalette,tone:r=>r.isDark?18:F.isYellow(r.neutralPalette.hue)?99:r.variant===f.VIBRANT?97:98,isBackground:true,chromaMultiplier:r=>{if(r.isDark){if(r.variant===f.NEUTRAL)return 2.5;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?2.7:1.75;if(r.variant===f.VIBRANT)return 1.36}return 1}});return E(super.surfaceBright(),"2025",t)}surfaceContainerLowest(){let t=y.fromPalette({name:"surface_container_lowest",palette:r=>r.neutralPalette,tone:r=>r.isDark?0:100,isBackground:true});return E(super.surfaceContainerLowest(),"2025",t)}surfaceContainerLow(){let t=y.fromPalette({name:"surface_container_low",palette:r=>r.neutralPalette,tone:r=>r.platform==="phone"?r.isDark?6:F.isYellow(r.neutralPalette.hue)?98:r.variant===f.VIBRANT?95:96:15,isBackground:true,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 1.3;if(r.variant===f.TONAL_SPOT)return 1.25;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?1.3:1.15;if(r.variant===f.VIBRANT)return 1.08}return 1}});return E(super.surfaceContainerLow(),"2025",t)}surfaceContainer(){let t=y.fromPalette({name:"surface_container",palette:r=>r.neutralPalette,tone:r=>r.platform==="phone"?r.isDark?9:F.isYellow(r.neutralPalette.hue)?96:r.variant===f.VIBRANT?92:94:20,isBackground:true,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 1.6;if(r.variant===f.TONAL_SPOT)return 1.4;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?1.6:1.3;if(r.variant===f.VIBRANT)return 1.15}return 1}});return E(super.surfaceContainer(),"2025",t)}surfaceContainerHigh(){let t=y.fromPalette({name:"surface_container_high",palette:r=>r.neutralPalette,tone:r=>r.platform==="phone"?r.isDark?12:F.isYellow(r.neutralPalette.hue)?94:r.variant===f.VIBRANT?90:92:25,isBackground:true,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 1.9;if(r.variant===f.TONAL_SPOT)return 1.5;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?1.95:1.45;if(r.variant===f.VIBRANT)return 1.22}return 1}});return E(super.surfaceContainerHigh(),"2025",t)}surfaceContainerHighest(){let t=y.fromPalette({name:"surface_container_highest",palette:r=>r.neutralPalette,tone:r=>r.isDark?15:F.isYellow(r.neutralPalette.hue)?92:r.variant===f.VIBRANT?88:90,isBackground:true,chromaMultiplier:r=>r.variant===f.NEUTRAL?2.2:r.variant===f.TONAL_SPOT?1.7:r.variant===f.EXPRESSIVE?F.isYellow(r.neutralPalette.hue)?2.3:1.6:r.variant===f.VIBRANT?1.29:1});return E(super.surfaceContainerHighest(),"2025",t)}onSurface(){let t=y.fromPalette({name:"on_surface",palette:r=>r.neutralPalette,tone:r=>r.variant===f.VIBRANT?B(r.neutralPalette,0,100,1.1):y.getInitialToneFromBackground(l=>l.platform==="phone"?this.highestSurface(l):this.surfaceContainerHigh())(r),chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 2.2;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.isDark&&r.platform==="phone"?I(11):I(9)});return E(super.onSurface(),"2025",t)}onSurfaceVariant(){let t=y.fromPalette({name:"on_surface_variant",palette:r=>r.neutralPalette,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 2.2;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?r.isDark?I(6):I(4.5):I(7)});return E(super.onSurfaceVariant(),"2025",t)}outline(){let t=y.fromPalette({name:"outline",palette:r=>r.neutralPalette,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 2.2;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?I(3):I(4.5)});return E(super.outline(),"2025",t)}outlineVariant(){let t=y.fromPalette({name:"outline_variant",palette:r=>r.neutralPalette,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 2.2;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?I(1.5):I(3)});return E(super.outlineVariant(),"2025",t)}inverseSurface(){let t=y.fromPalette({name:"inverse_surface",palette:r=>r.neutralPalette,tone:r=>r.isDark?98:4,isBackground:true});return E(super.inverseSurface(),"2025",t)}inverseOnSurface(){let t=y.fromPalette({name:"inverse_on_surface",palette:r=>r.neutralPalette,background:r=>this.inverseSurface(),contrastCurve:r=>I(7)});return E(super.inverseOnSurface(),"2025",t)}primary(){let t=y.fromPalette({name:"primary",palette:r=>r.primaryPalette,tone:r=>r.variant===f.NEUTRAL?r.platform==="phone"?r.isDark?80:40:90:r.variant===f.TONAL_SPOT?r.platform==="phone"?r.isDark?80:B(r.primaryPalette):B(r.primaryPalette,0,90):r.variant===f.EXPRESSIVE?r.platform==="phone"?B(r.primaryPalette,0,F.isYellow(r.primaryPalette.hue)?25:F.isCyan(r.primaryPalette.hue)?88:98):B(r.primaryPalette):r.platform==="phone"?B(r.primaryPalette,0,F.isCyan(r.primaryPalette.hue)?88:98):B(r.primaryPalette),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?I(4.5):I(7),toneDeltaPair:r=>r.platform==="phone"?new q(this.primaryContainer(),this.primary(),5,"relative_lighter",true,"farther"):void 0});return E(super.primary(),"2025",t)}primaryDim(){return y.fromPalette({name:"primary_dim",palette:t=>t.primaryPalette,tone:t=>t.variant===f.NEUTRAL?85:t.variant===f.TONAL_SPOT?B(t.primaryPalette,0,90):B(t.primaryPalette),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>I(4.5),toneDeltaPair:t=>new q(this.primaryDim(),this.primary(),5,"darker",true,"farther")})}onPrimary(){let t=y.fromPalette({name:"on_primary",palette:r=>r.primaryPalette,background:r=>r.platform==="phone"?this.primary():this.primaryDim(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.onPrimary(),"2025",t)}primaryContainer(){let t=y.fromPalette({name:"primary_container",palette:r=>r.primaryPalette,tone:r=>r.platform==="watch"?30:r.variant===f.NEUTRAL?r.isDark?30:90:r.variant===f.TONAL_SPOT?r.isDark?Qe(r.primaryPalette,35,93):B(r.primaryPalette,0,90):r.variant===f.EXPRESSIVE?r.isDark?B(r.primaryPalette,30,93):B(r.primaryPalette,78,F.isCyan(r.primaryPalette.hue)?88:90):r.isDark?Qe(r.primaryPalette,66,93):B(r.primaryPalette,66,F.isCyan(r.primaryPalette.hue)?88:93),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="phone"?void 0:new q(this.primaryContainer(),this.primaryDim(),10,"darker",true,"farther"),contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?I(1.5):void 0});return E(super.primaryContainer(),"2025",t)}onPrimaryContainer(){let t=y.fromPalette({name:"on_primary_container",palette:r=>r.primaryPalette,background:r=>this.primaryContainer(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.onPrimaryContainer(),"2025",t)}primaryFixed(){let t=y.fromPalette({name:"primary_fixed",palette:r=>r.primaryPalette,tone:r=>{let l=Object.assign({},r,{isDark:false,contrastLevel:0});return this.primaryContainer().getTone(l)},isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?I(1.5):void 0});return E(super.primaryFixed(),"2025",t)}primaryFixedDim(){let t=y.fromPalette({name:"primary_fixed_dim",palette:r=>r.primaryPalette,tone:r=>this.primaryFixed().getTone(r),isBackground:true,toneDeltaPair:r=>new q(this.primaryFixedDim(),this.primaryFixed(),5,"darker",true,"exact")});return E(super.primaryFixedDim(),"2025",t)}onPrimaryFixed(){let t=y.fromPalette({name:"on_primary_fixed",palette:r=>r.primaryPalette,background:r=>this.primaryFixedDim(),contrastCurve:r=>I(7)});return E(super.onPrimaryFixed(),"2025",t)}onPrimaryFixedVariant(){let t=y.fromPalette({name:"on_primary_fixed_variant",palette:r=>r.primaryPalette,background:r=>this.primaryFixedDim(),contrastCurve:r=>I(4.5)});return E(super.onPrimaryFixedVariant(),"2025",t)}inversePrimary(){let t=y.fromPalette({name:"inverse_primary",palette:r=>r.primaryPalette,tone:r=>B(r.primaryPalette),background:r=>this.inverseSurface(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.inversePrimary(),"2025",t)}secondary(){let t=y.fromPalette({name:"secondary",palette:r=>r.secondaryPalette,tone:r=>r.platform==="watch"?r.variant===f.NEUTRAL?90:B(r.secondaryPalette,0,90):r.variant===f.NEUTRAL?r.isDark?Qe(r.secondaryPalette,0,98):B(r.secondaryPalette):r.variant===f.VIBRANT?B(r.secondaryPalette,0,r.isDark?90:98):r.isDark?80:B(r.secondaryPalette),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?I(4.5):I(7),toneDeltaPair:r=>r.platform==="phone"?new q(this.secondaryContainer(),this.secondary(),5,"relative_lighter",true,"farther"):void 0});return E(super.secondary(),"2025",t)}secondaryDim(){return y.fromPalette({name:"secondary_dim",palette:t=>t.secondaryPalette,tone:t=>t.variant===f.NEUTRAL?85:B(t.secondaryPalette,0,90),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>I(4.5),toneDeltaPair:t=>new q(this.secondaryDim(),this.secondary(),5,"darker",true,"farther")})}onSecondary(){let t=y.fromPalette({name:"on_secondary",palette:r=>r.secondaryPalette,background:r=>r.platform==="phone"?this.secondary():this.secondaryDim(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.onSecondary(),"2025",t)}secondaryContainer(){let t=y.fromPalette({name:"secondary_container",palette:r=>r.secondaryPalette,tone:r=>r.platform==="watch"?30:r.variant===f.VIBRANT?r.isDark?Qe(r.secondaryPalette,30,40):B(r.secondaryPalette,84,90):r.variant===f.EXPRESSIVE?r.isDark?15:B(r.secondaryPalette,90,95):r.isDark?25:90,isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="watch"?new q(this.secondaryContainer(),this.secondaryDim(),10,"darker",true,"farther"):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?I(1.5):void 0});return E(super.secondaryContainer(),"2025",t)}onSecondaryContainer(){let t=y.fromPalette({name:"on_secondary_container",palette:r=>r.secondaryPalette,background:r=>this.secondaryContainer(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.onSecondaryContainer(),"2025",t)}secondaryFixed(){let t=y.fromPalette({name:"secondary_fixed",palette:r=>r.secondaryPalette,tone:r=>{let l=Object.assign({},r,{isDark:false,contrastLevel:0});return this.secondaryContainer().getTone(l)},isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?I(1.5):void 0});return E(super.secondaryFixed(),"2025",t)}secondaryFixedDim(){let t=y.fromPalette({name:"secondary_fixed_dim",palette:r=>r.secondaryPalette,tone:r=>this.secondaryFixed().getTone(r),isBackground:true,toneDeltaPair:r=>new q(this.secondaryFixedDim(),this.secondaryFixed(),5,"darker",true,"exact")});return E(super.secondaryFixedDim(),"2025",t)}onSecondaryFixed(){let t=y.fromPalette({name:"on_secondary_fixed",palette:r=>r.secondaryPalette,background:r=>this.secondaryFixedDim(),contrastCurve:r=>I(7)});return E(super.onSecondaryFixed(),"2025",t)}onSecondaryFixedVariant(){let t=y.fromPalette({name:"on_secondary_fixed_variant",palette:r=>r.secondaryPalette,background:r=>this.secondaryFixedDim(),contrastCurve:r=>I(4.5)});return E(super.onSecondaryFixedVariant(),"2025",t)}tertiary(){let t=y.fromPalette({name:"tertiary",palette:r=>r.tertiaryPalette,tone:r=>r.platform==="watch"?r.variant===f.TONAL_SPOT?B(r.tertiaryPalette,0,90):B(r.tertiaryPalette):r.variant===f.EXPRESSIVE||r.variant===f.VIBRANT?B(r.tertiaryPalette,0,F.isCyan(r.tertiaryPalette.hue)?88:r.isDark?98:100):r.isDark?B(r.tertiaryPalette,0,98):B(r.tertiaryPalette),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?I(4.5):I(7),toneDeltaPair:r=>r.platform==="phone"?new q(this.tertiaryContainer(),this.tertiary(),5,"relative_lighter",true,"farther"):void 0});return E(super.tertiary(),"2025",t)}tertiaryDim(){return y.fromPalette({name:"tertiary_dim",palette:t=>t.tertiaryPalette,tone:t=>t.variant===f.TONAL_SPOT?B(t.tertiaryPalette,0,90):B(t.tertiaryPalette),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>I(4.5),toneDeltaPair:t=>new q(this.tertiaryDim(),this.tertiary(),5,"darker",true,"farther")})}onTertiary(){let t=y.fromPalette({name:"on_tertiary",palette:r=>r.tertiaryPalette,background:r=>r.platform==="phone"?this.tertiary():this.tertiaryDim(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.onTertiary(),"2025",t)}tertiaryContainer(){let t=y.fromPalette({name:"tertiary_container",palette:r=>r.tertiaryPalette,tone:r=>r.platform==="watch"?r.variant===f.TONAL_SPOT?B(r.tertiaryPalette,0,90):B(r.tertiaryPalette):r.variant===f.NEUTRAL?r.isDark?B(r.tertiaryPalette,0,93):B(r.tertiaryPalette,0,96):r.variant===f.TONAL_SPOT?B(r.tertiaryPalette,0,r.isDark?93:100):r.variant===f.EXPRESSIVE?B(r.tertiaryPalette,75,F.isCyan(r.tertiaryPalette.hue)?88:r.isDark?93:100):r.isDark?B(r.tertiaryPalette,0,93):B(r.tertiaryPalette,72,100),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="watch"?new q(this.tertiaryContainer(),this.tertiaryDim(),10,"darker",true,"farther"):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?I(1.5):void 0});return E(super.tertiaryContainer(),"2025",t)}onTertiaryContainer(){let t=y.fromPalette({name:"on_tertiary_container",palette:r=>r.tertiaryPalette,background:r=>this.tertiaryContainer(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.onTertiaryContainer(),"2025",t)}tertiaryFixed(){let t=y.fromPalette({name:"tertiary_fixed",palette:r=>r.tertiaryPalette,tone:r=>{let l=Object.assign({},r,{isDark:false,contrastLevel:0});return this.tertiaryContainer().getTone(l)},isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?I(1.5):void 0});return E(super.tertiaryFixed(),"2025",t)}tertiaryFixedDim(){let t=y.fromPalette({name:"tertiary_fixed_dim",palette:r=>r.tertiaryPalette,tone:r=>this.tertiaryFixed().getTone(r),isBackground:true,toneDeltaPair:r=>new q(this.tertiaryFixedDim(),this.tertiaryFixed(),5,"darker",true,"exact")});return E(super.tertiaryFixedDim(),"2025",t)}onTertiaryFixed(){let t=y.fromPalette({name:"on_tertiary_fixed",palette:r=>r.tertiaryPalette,background:r=>this.tertiaryFixedDim(),contrastCurve:r=>I(7)});return E(super.onTertiaryFixed(),"2025",t)}onTertiaryFixedVariant(){let t=y.fromPalette({name:"on_tertiary_fixed_variant",palette:r=>r.tertiaryPalette,background:r=>this.tertiaryFixedDim(),contrastCurve:r=>I(4.5)});return E(super.onTertiaryFixedVariant(),"2025",t)}error(){let t=y.fromPalette({name:"error",palette:r=>r.errorPalette,tone:r=>r.platform==="phone"?r.isDark?Qe(r.errorPalette,0,98):B(r.errorPalette):Qe(r.errorPalette),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?I(4.5):I(7),toneDeltaPair:r=>r.platform==="phone"?new q(this.errorContainer(),this.error(),5,"relative_lighter",true,"farther"):void 0});return E(super.error(),"2025",t)}errorDim(){return y.fromPalette({name:"error_dim",palette:t=>t.errorPalette,tone:t=>Qe(t.errorPalette),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>I(4.5),toneDeltaPair:t=>new q(this.errorDim(),this.error(),5,"darker",true,"farther")})}onError(){let t=y.fromPalette({name:"on_error",palette:r=>r.errorPalette,background:r=>r.platform==="phone"?this.error():this.errorDim(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.onError(),"2025",t)}errorContainer(){let t=y.fromPalette({name:"error_container",palette:r=>r.errorPalette,tone:r=>r.platform==="watch"?30:r.isDark?Qe(r.errorPalette,30,93):B(r.errorPalette,0,90),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="watch"?new q(this.errorContainer(),this.errorDim(),10,"darker",true,"farther"):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?I(1.5):void 0});return E(super.errorContainer(),"2025",t)}onErrorContainer(){let t=y.fromPalette({name:"on_error_container",palette:r=>r.errorPalette,background:r=>this.errorContainer(),contrastCurve:r=>r.platform==="phone"?I(4.5):I(7)});return E(super.onErrorContainer(),"2025",t)}surfaceVariant(){let t=Object.assign(this.surfaceContainerHighest().clone(),{name:"surface_variant"});return E(super.surfaceVariant(),"2025",t)}surfaceTint(){let t=Object.assign(this.primary().clone(),{name:"surface_tint"});return E(super.surfaceTint(),"2025",t)}background(){let t=Object.assign(this.surface().clone(),{name:"background"});return E(super.background(),"2025",t)}onBackground(){let t=Object.assign(this.onSurface().clone(),{name:"on_background",tone:r=>r.platform==="watch"?100:this.onSurface().getTone(r)});return E(super.onBackground(),"2025",t)}};var b=class i{constructor(){this.allColors=[this.background(),this.onBackground(),this.surface(),this.surfaceDim(),this.surfaceBright(),this.surfaceContainerLowest(),this.surfaceContainerLow(),this.surfaceContainer(),this.surfaceContainerHigh(),this.surfaceContainerHighest(),this.onSurface(),this.onSurfaceVariant(),this.outline(),this.outlineVariant(),this.inverseSurface(),this.inverseOnSurface(),this.primary(),this.primaryDim(),this.onPrimary(),this.primaryContainer(),this.onPrimaryContainer(),this.primaryFixed(),this.primaryFixedDim(),this.onPrimaryFixed(),this.onPrimaryFixedVariant(),this.inversePrimary(),this.secondary(),this.secondaryDim(),this.onSecondary(),this.secondaryContainer(),this.onSecondaryContainer(),this.secondaryFixed(),this.secondaryFixedDim(),this.onSecondaryFixed(),this.onSecondaryFixedVariant(),this.tertiary(),this.tertiaryDim(),this.onTertiary(),this.tertiaryContainer(),this.onTertiaryContainer(),this.tertiaryFixed(),this.tertiaryFixedDim(),this.onTertiaryFixed(),this.onTertiaryFixedVariant(),this.error(),this.errorDim(),this.onError(),this.errorContainer(),this.onErrorContainer()].filter(t=>t!==void 0);}highestSurface(t){return i.colorSpec.highestSurface(t)}primaryPaletteKeyColor(){return i.colorSpec.primaryPaletteKeyColor()}secondaryPaletteKeyColor(){return i.colorSpec.secondaryPaletteKeyColor()}tertiaryPaletteKeyColor(){return i.colorSpec.tertiaryPaletteKeyColor()}neutralPaletteKeyColor(){return i.colorSpec.neutralPaletteKeyColor()}neutralVariantPaletteKeyColor(){return i.colorSpec.neutralVariantPaletteKeyColor()}errorPaletteKeyColor(){return i.colorSpec.errorPaletteKeyColor()}background(){return i.colorSpec.background()}onBackground(){return i.colorSpec.onBackground()}surface(){return i.colorSpec.surface()}surfaceDim(){return i.colorSpec.surfaceDim()}surfaceBright(){return i.colorSpec.surfaceBright()}surfaceContainerLowest(){return i.colorSpec.surfaceContainerLowest()}surfaceContainerLow(){return i.colorSpec.surfaceContainerLow()}surfaceContainer(){return i.colorSpec.surfaceContainer()}surfaceContainerHigh(){return i.colorSpec.surfaceContainerHigh()}surfaceContainerHighest(){return i.colorSpec.surfaceContainerHighest()}onSurface(){return i.colorSpec.onSurface()}surfaceVariant(){return i.colorSpec.surfaceVariant()}onSurfaceVariant(){return i.colorSpec.onSurfaceVariant()}outline(){return i.colorSpec.outline()}outlineVariant(){return i.colorSpec.outlineVariant()}inverseSurface(){return i.colorSpec.inverseSurface()}inverseOnSurface(){return i.colorSpec.inverseOnSurface()}shadow(){return i.colorSpec.shadow()}scrim(){return i.colorSpec.scrim()}surfaceTint(){return i.colorSpec.surfaceTint()}primary(){return i.colorSpec.primary()}primaryDim(){return i.colorSpec.primaryDim()}onPrimary(){return i.colorSpec.onPrimary()}primaryContainer(){return i.colorSpec.primaryContainer()}onPrimaryContainer(){return i.colorSpec.onPrimaryContainer()}inversePrimary(){return i.colorSpec.inversePrimary()}primaryFixed(){return i.colorSpec.primaryFixed()}primaryFixedDim(){return i.colorSpec.primaryFixedDim()}onPrimaryFixed(){return i.colorSpec.onPrimaryFixed()}onPrimaryFixedVariant(){return i.colorSpec.onPrimaryFixedVariant()}secondary(){return i.colorSpec.secondary()}secondaryDim(){return i.colorSpec.secondaryDim()}onSecondary(){return i.colorSpec.onSecondary()}secondaryContainer(){return i.colorSpec.secondaryContainer()}onSecondaryContainer(){return i.colorSpec.onSecondaryContainer()}secondaryFixed(){return i.colorSpec.secondaryFixed()}secondaryFixedDim(){return i.colorSpec.secondaryFixedDim()}onSecondaryFixed(){return i.colorSpec.onSecondaryFixed()}onSecondaryFixedVariant(){return i.colorSpec.onSecondaryFixedVariant()}tertiary(){return i.colorSpec.tertiary()}tertiaryDim(){return i.colorSpec.tertiaryDim()}onTertiary(){return i.colorSpec.onTertiary()}tertiaryContainer(){return i.colorSpec.tertiaryContainer()}onTertiaryContainer(){return i.colorSpec.onTertiaryContainer()}tertiaryFixed(){return i.colorSpec.tertiaryFixed()}tertiaryFixedDim(){return i.colorSpec.tertiaryFixedDim()}onTertiaryFixed(){return i.colorSpec.onTertiaryFixed()}onTertiaryFixedVariant(){return i.colorSpec.onTertiaryFixedVariant()}error(){return i.colorSpec.error()}errorDim(){return i.colorSpec.errorDim()}onError(){return i.colorSpec.onError()}errorContainer(){return i.colorSpec.errorContainer()}onErrorContainer(){return i.colorSpec.onErrorContainer()}static highestSurface(t){return i.colorSpec.highestSurface(t)}};b.contentAccentToneDelta=15;b.colorSpec=new hr;b.primaryPaletteKeyColor=b.colorSpec.primaryPaletteKeyColor();b.secondaryPaletteKeyColor=b.colorSpec.secondaryPaletteKeyColor();b.tertiaryPaletteKeyColor=b.colorSpec.tertiaryPaletteKeyColor();b.neutralPaletteKeyColor=b.colorSpec.neutralPaletteKeyColor();b.neutralVariantPaletteKeyColor=b.colorSpec.neutralVariantPaletteKeyColor();b.background=b.colorSpec.background();b.onBackground=b.colorSpec.onBackground();b.surface=b.colorSpec.surface();b.surfaceDim=b.colorSpec.surfaceDim();b.surfaceBright=b.colorSpec.surfaceBright();b.surfaceContainerLowest=b.colorSpec.surfaceContainerLowest();b.surfaceContainerLow=b.colorSpec.surfaceContainerLow();b.surfaceContainer=b.colorSpec.surfaceContainer();b.surfaceContainerHigh=b.colorSpec.surfaceContainerHigh();b.surfaceContainerHighest=b.colorSpec.surfaceContainerHighest();b.onSurface=b.colorSpec.onSurface();b.surfaceVariant=b.colorSpec.surfaceVariant();b.onSurfaceVariant=b.colorSpec.onSurfaceVariant();b.inverseSurface=b.colorSpec.inverseSurface();b.inverseOnSurface=b.colorSpec.inverseOnSurface();b.outline=b.colorSpec.outline();b.outlineVariant=b.colorSpec.outlineVariant();b.shadow=b.colorSpec.shadow();b.scrim=b.colorSpec.scrim();b.surfaceTint=b.colorSpec.surfaceTint();b.primary=b.colorSpec.primary();b.onPrimary=b.colorSpec.onPrimary();b.primaryContainer=b.colorSpec.primaryContainer();b.onPrimaryContainer=b.colorSpec.onPrimaryContainer();b.inversePrimary=b.colorSpec.inversePrimary();b.secondary=b.colorSpec.secondary();b.onSecondary=b.colorSpec.onSecondary();b.secondaryContainer=b.colorSpec.secondaryContainer();b.onSecondaryContainer=b.colorSpec.onSecondaryContainer();b.tertiary=b.colorSpec.tertiary();b.onTertiary=b.colorSpec.onTertiary();b.tertiaryContainer=b.colorSpec.tertiaryContainer();b.onTertiaryContainer=b.colorSpec.onTertiaryContainer();b.error=b.colorSpec.error();b.onError=b.colorSpec.onError();b.errorContainer=b.colorSpec.errorContainer();b.onErrorContainer=b.colorSpec.onErrorContainer();b.primaryFixed=b.colorSpec.primaryFixed();b.primaryFixedDim=b.colorSpec.primaryFixedDim();b.onPrimaryFixed=b.colorSpec.onPrimaryFixed();b.onPrimaryFixedVariant=b.colorSpec.onPrimaryFixedVariant();b.secondaryFixed=b.colorSpec.secondaryFixed();b.secondaryFixedDim=b.colorSpec.secondaryFixedDim();b.onSecondaryFixed=b.colorSpec.onSecondaryFixed();b.onSecondaryFixedVariant=b.colorSpec.onSecondaryFixedVariant();b.tertiaryFixed=b.colorSpec.tertiaryFixed();b.tertiaryFixedDim=b.colorSpec.tertiaryFixedDim();b.onTertiaryFixed=b.colorSpec.onTertiaryFixed();b.onTertiaryFixedVariant=b.colorSpec.onTertiaryFixedVariant();var J=class i{static maybeFallbackSpecVersion(t,r){switch(r){case f.EXPRESSIVE:case f.VIBRANT:case f.TONAL_SPOT:case f.NEUTRAL:return t;default:return "2021"}}constructor(t){this.sourceColorArgb=t.sourceColorHct.toInt(),this.variant=t.variant,this.contrastLevel=t.contrastLevel,this.isDark=t.isDark,this.platform=t.platform??"phone",this.specVersion=i.maybeFallbackSpecVersion(t.specVersion??"2021",this.variant),this.sourceColorHct=t.sourceColorHct,this.primaryPalette=t.primaryPalette??vt(this.specVersion).getPrimaryPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.secondaryPalette=t.secondaryPalette??vt(this.specVersion).getSecondaryPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.tertiaryPalette=t.tertiaryPalette??vt(this.specVersion).getTertiaryPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralPalette=t.neutralPalette??vt(this.specVersion).getNeutralPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralVariantPalette=t.neutralVariantPalette??vt(this.specVersion).getNeutralVariantPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.errorPalette=t.errorPalette??vt(this.specVersion).getErrorPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel)??_.fromHueAndChroma(25,84),this.colors=new b;}toString(){return `Scheme: variant=${f[this.variant]}, mode=${this.isDark?"dark":"light"}, platform=${this.platform}, contrastLevel=${this.contrastLevel.toFixed(1)}, seed=${this.sourceColorHct.toString()}, specVersion=${this.specVersion}`}static getPiecewiseHue(t,r,l){let c=Math.min(r.length-1,l.length),d=t.hue;for(let h=0;h<c;h++)if(d>=r[h]&&d<r[h+1])return he(l[h]);return d}static getRotatedHue(t,r,l){let c=i.getPiecewiseHue(t,r,l);return Math.min(r.length-1,l.length)<=0&&(c=0),he(t.hue+c)}getArgb(t){return t.getArgb(this)}getHct(t){return t.getHct(this)}get primaryPaletteKeyColor(){return this.getArgb(this.colors.primaryPaletteKeyColor())}get secondaryPaletteKeyColor(){return this.getArgb(this.colors.secondaryPaletteKeyColor())}get tertiaryPaletteKeyColor(){return this.getArgb(this.colors.tertiaryPaletteKeyColor())}get neutralPaletteKeyColor(){return this.getArgb(this.colors.neutralPaletteKeyColor())}get neutralVariantPaletteKeyColor(){return this.getArgb(this.colors.neutralVariantPaletteKeyColor())}get errorPaletteKeyColor(){return this.getArgb(this.colors.errorPaletteKeyColor())}get background(){return this.getArgb(this.colors.background())}get onBackground(){return this.getArgb(this.colors.onBackground())}get surface(){return this.getArgb(this.colors.surface())}get surfaceDim(){return this.getArgb(this.colors.surfaceDim())}get surfaceBright(){return this.getArgb(this.colors.surfaceBright())}get surfaceContainerLowest(){return this.getArgb(this.colors.surfaceContainerLowest())}get surfaceContainerLow(){return this.getArgb(this.colors.surfaceContainerLow())}get surfaceContainer(){return this.getArgb(this.colors.surfaceContainer())}get surfaceContainerHigh(){return this.getArgb(this.colors.surfaceContainerHigh())}get surfaceContainerHighest(){return this.getArgb(this.colors.surfaceContainerHighest())}get onSurface(){return this.getArgb(this.colors.onSurface())}get surfaceVariant(){return this.getArgb(this.colors.surfaceVariant())}get onSurfaceVariant(){return this.getArgb(this.colors.onSurfaceVariant())}get inverseSurface(){return this.getArgb(this.colors.inverseSurface())}get inverseOnSurface(){return this.getArgb(this.colors.inverseOnSurface())}get outline(){return this.getArgb(this.colors.outline())}get outlineVariant(){return this.getArgb(this.colors.outlineVariant())}get shadow(){return this.getArgb(this.colors.shadow())}get scrim(){return this.getArgb(this.colors.scrim())}get surfaceTint(){return this.getArgb(this.colors.surfaceTint())}get primary(){return this.getArgb(this.colors.primary())}get primaryDim(){let t=this.colors.primaryDim();if(t===void 0)throw new Error("`primaryDim` color is undefined prior to 2025 spec.");return this.getArgb(t)}get onPrimary(){return this.getArgb(this.colors.onPrimary())}get primaryContainer(){return this.getArgb(this.colors.primaryContainer())}get onPrimaryContainer(){return this.getArgb(this.colors.onPrimaryContainer())}get primaryFixed(){return this.getArgb(this.colors.primaryFixed())}get primaryFixedDim(){return this.getArgb(this.colors.primaryFixedDim())}get onPrimaryFixed(){return this.getArgb(this.colors.onPrimaryFixed())}get onPrimaryFixedVariant(){return this.getArgb(this.colors.onPrimaryFixedVariant())}get inversePrimary(){return this.getArgb(this.colors.inversePrimary())}get secondary(){return this.getArgb(this.colors.secondary())}get secondaryDim(){let t=this.colors.secondaryDim();if(t===void 0)throw new Error("`secondaryDim` color is undefined prior to 2025 spec.");return this.getArgb(t)}get onSecondary(){return this.getArgb(this.colors.onSecondary())}get secondaryContainer(){return this.getArgb(this.colors.secondaryContainer())}get onSecondaryContainer(){return this.getArgb(this.colors.onSecondaryContainer())}get secondaryFixed(){return this.getArgb(this.colors.secondaryFixed())}get secondaryFixedDim(){return this.getArgb(this.colors.secondaryFixedDim())}get onSecondaryFixed(){return this.getArgb(this.colors.onSecondaryFixed())}get onSecondaryFixedVariant(){return this.getArgb(this.colors.onSecondaryFixedVariant())}get tertiary(){return this.getArgb(this.colors.tertiary())}get tertiaryDim(){let t=this.colors.tertiaryDim();if(t===void 0)throw new Error("`tertiaryDim` color is undefined prior to 2025 spec.");return this.getArgb(t)}get onTertiary(){return this.getArgb(this.colors.onTertiary())}get tertiaryContainer(){return this.getArgb(this.colors.tertiaryContainer())}get onTertiaryContainer(){return this.getArgb(this.colors.onTertiaryContainer())}get tertiaryFixed(){return this.getArgb(this.colors.tertiaryFixed())}get tertiaryFixedDim(){return this.getArgb(this.colors.tertiaryFixedDim())}get onTertiaryFixed(){return this.getArgb(this.colors.onTertiaryFixed())}get onTertiaryFixedVariant(){return this.getArgb(this.colors.onTertiaryFixedVariant())}get error(){return this.getArgb(this.colors.error())}get errorDim(){let t=this.colors.errorDim();if(t===void 0)throw new Error("`errorDim` color is undefined prior to 2025 spec.");return this.getArgb(t)}get onError(){return this.getArgb(this.colors.onError())}get errorContainer(){return this.getArgb(this.colors.errorContainer())}get onErrorContainer(){return this.getArgb(this.colors.onErrorContainer())}};J.DEFAULT_SPEC_VERSION="2021";J.DEFAULT_PLATFORM="phone";var fr=class{getPrimaryPalette(t,r,l,c,d){switch(t){case f.CONTENT:case f.FIDELITY:return _.fromHueAndChroma(r.hue,r.chroma);case f.FRUIT_SALAD:return _.fromHueAndChroma(he(r.hue-50),48);case f.MONOCHROME:return _.fromHueAndChroma(r.hue,0);case f.NEUTRAL:return _.fromHueAndChroma(r.hue,12);case f.RAINBOW:return _.fromHueAndChroma(r.hue,48);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,36);case f.EXPRESSIVE:return _.fromHueAndChroma(he(r.hue+240),40);case f.VIBRANT:return _.fromHueAndChroma(r.hue,200);default:throw new Error(`Unsupported variant: ${t}`)}}getSecondaryPalette(t,r,l,c,d){switch(t){case f.CONTENT:case f.FIDELITY:return _.fromHueAndChroma(r.hue,Math.max(r.chroma-32,r.chroma*.5));case f.FRUIT_SALAD:return _.fromHueAndChroma(he(r.hue-50),36);case f.MONOCHROME:return _.fromHueAndChroma(r.hue,0);case f.NEUTRAL:return _.fromHueAndChroma(r.hue,8);case f.RAINBOW:return _.fromHueAndChroma(r.hue,16);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,16);case f.EXPRESSIVE:return _.fromHueAndChroma(J.getRotatedHue(r,[0,21,51,121,151,191,271,321,360],[45,95,45,20,45,90,45,45,45]),24);case f.VIBRANT:return _.fromHueAndChroma(J.getRotatedHue(r,[0,41,61,101,131,181,251,301,360],[18,15,10,12,15,18,15,12,12]),24);default:throw new Error(`Unsupported variant: ${t}`)}}getTertiaryPalette(t,r,l,c,d){switch(t){case f.CONTENT:return _.fromHct(lt.fixIfDisliked(new Bt(r).analogous(3,6)[2]));case f.FIDELITY:return _.fromHct(lt.fixIfDisliked(new Bt(r).complement));case f.FRUIT_SALAD:return _.fromHueAndChroma(r.hue,36);case f.MONOCHROME:return _.fromHueAndChroma(r.hue,0);case f.NEUTRAL:return _.fromHueAndChroma(r.hue,16);case f.RAINBOW:case f.TONAL_SPOT:return _.fromHueAndChroma(he(r.hue+60),24);case f.EXPRESSIVE:return _.fromHueAndChroma(J.getRotatedHue(r,[0,21,51,121,151,191,271,321,360],[120,120,20,45,20,15,20,120,120]),32);case f.VIBRANT:return _.fromHueAndChroma(J.getRotatedHue(r,[0,41,61,101,131,181,251,301,360],[35,30,20,25,30,35,30,25,25]),32);default:throw new Error(`Unsupported variant: ${t}`)}}getNeutralPalette(t,r,l,c,d){switch(t){case f.CONTENT:case f.FIDELITY:return _.fromHueAndChroma(r.hue,r.chroma/8);case f.FRUIT_SALAD:return _.fromHueAndChroma(r.hue,10);case f.MONOCHROME:return _.fromHueAndChroma(r.hue,0);case f.NEUTRAL:return _.fromHueAndChroma(r.hue,2);case f.RAINBOW:return _.fromHueAndChroma(r.hue,0);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,6);case f.EXPRESSIVE:return _.fromHueAndChroma(he(r.hue+15),8);case f.VIBRANT:return _.fromHueAndChroma(r.hue,10);default:throw new Error(`Unsupported variant: ${t}`)}}getNeutralVariantPalette(t,r,l,c,d){switch(t){case f.CONTENT:return _.fromHueAndChroma(r.hue,r.chroma/8+4);case f.FIDELITY:return _.fromHueAndChroma(r.hue,r.chroma/8+4);case f.FRUIT_SALAD:return _.fromHueAndChroma(r.hue,16);case f.MONOCHROME:return _.fromHueAndChroma(r.hue,0);case f.NEUTRAL:return _.fromHueAndChroma(r.hue,2);case f.RAINBOW:return _.fromHueAndChroma(r.hue,0);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,8);case f.EXPRESSIVE:return _.fromHueAndChroma(he(r.hue+15),12);case f.VIBRANT:return _.fromHueAndChroma(r.hue,12);default:throw new Error(`Unsupported variant: ${t}`)}}getErrorPalette(t,r,l,c,d){}},Kr=class i extends fr{getPrimaryPalette(t,r,l,c,d){switch(t){case f.NEUTRAL:return _.fromHueAndChroma(r.hue,c==="phone"?F.isBlue(r.hue)?12:8:F.isBlue(r.hue)?16:12);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,c==="phone"&&l?26:32);case f.EXPRESSIVE:return _.fromHueAndChroma(r.hue,c==="phone"?l?36:48:40);case f.VIBRANT:return _.fromHueAndChroma(r.hue,c==="phone"?74:56);default:return super.getPrimaryPalette(t,r,l,c,d)}}getSecondaryPalette(t,r,l,c,d){switch(t){case f.NEUTRAL:return _.fromHueAndChroma(r.hue,c==="phone"?F.isBlue(r.hue)?6:4:F.isBlue(r.hue)?10:6);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,16);case f.EXPRESSIVE:return _.fromHueAndChroma(J.getRotatedHue(r,[0,105,140,204,253,278,300,333,360],[-160,155,-100,96,-96,-156,-165,-160]),c==="phone"&&l?16:24);case f.VIBRANT:return _.fromHueAndChroma(J.getRotatedHue(r,[0,38,105,140,333,360],[-14,10,-14,10,-14]),c==="phone"?56:36);default:return super.getSecondaryPalette(t,r,l,c,d)}}getTertiaryPalette(t,r,l,c,d){switch(t){case f.NEUTRAL:return _.fromHueAndChroma(J.getRotatedHue(r,[0,38,105,161,204,278,333,360],[-32,26,10,-39,24,-15,-32]),c==="phone"?20:36);case f.TONAL_SPOT:return _.fromHueAndChroma(J.getRotatedHue(r,[0,20,71,161,333,360],[-40,48,-32,40,-32]),c==="phone"?28:32);case f.EXPRESSIVE:return _.fromHueAndChroma(J.getRotatedHue(r,[0,105,140,204,253,278,300,333,360],[-165,160,-105,101,-101,-160,-170,-165]),48);case f.VIBRANT:return _.fromHueAndChroma(J.getRotatedHue(r,[0,38,71,105,140,161,253,333,360],[-72,35,24,-24,62,50,62,-72]),56);default:return super.getTertiaryPalette(t,r,l,c,d)}}static getExpressiveNeutralHue(t){return J.getRotatedHue(t,[0,71,124,253,278,300,360],[10,0,10,0,10,0])}static getExpressiveNeutralChroma(t,r,l){let c=i.getExpressiveNeutralHue(t);return l==="phone"?r?F.isYellow(c)?6:14:18:12}static getVibrantNeutralHue(t){return J.getRotatedHue(t,[0,38,105,140,333,360],[-14,10,-14,10,-14])}static getVibrantNeutralChroma(t,r){let l=i.getVibrantNeutralHue(t);return r==="phone"||F.isBlue(l)?28:20}getNeutralPalette(t,r,l,c,d){switch(t){case f.NEUTRAL:return _.fromHueAndChroma(r.hue,c==="phone"?1.4:6);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,c==="phone"?5:10);case f.EXPRESSIVE:return _.fromHueAndChroma(i.getExpressiveNeutralHue(r),i.getExpressiveNeutralChroma(r,l,c));case f.VIBRANT:return _.fromHueAndChroma(i.getVibrantNeutralHue(r),i.getVibrantNeutralChroma(r,c));default:return super.getNeutralPalette(t,r,l,c,d)}}getNeutralVariantPalette(t,r,l,c,d){switch(t){case f.NEUTRAL:return _.fromHueAndChroma(r.hue,(c==="phone"?1.4:6)*2.2);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,(c==="phone"?5:10)*1.7);case f.EXPRESSIVE:let h=i.getExpressiveNeutralHue(r),p=i.getExpressiveNeutralChroma(r,l,c);return _.fromHueAndChroma(h,p*(h>=105&&h<125?1.6:2.3));case f.VIBRANT:let x=i.getVibrantNeutralHue(r),w=i.getVibrantNeutralChroma(r,c);return _.fromHueAndChroma(x,w*1.29);default:return super.getNeutralVariantPalette(t,r,l,c,d)}}getErrorPalette(t,r,l,c,d){let h=J.getPiecewiseHue(r,[0,3,13,23,33,43,153,273,360],[12,22,32,12,22,32,22,12]);switch(t){case f.NEUTRAL:return _.fromHueAndChroma(h,c==="phone"?50:40);case f.TONAL_SPOT:return _.fromHueAndChroma(h,c==="phone"?60:48);case f.EXPRESSIVE:return _.fromHueAndChroma(h,c==="phone"?64:48);case f.VIBRANT:return _.fromHueAndChroma(h,c==="phone"?80:60);default:return super.getErrorPalette(t,r,l,c,d)}}},wl=new fr,vl=new Kr;function vt(i){return i==="2025"?vl:wl}var mr=class extends J{constructor(t,r,l,c=J.DEFAULT_SPEC_VERSION,d=J.DEFAULT_PLATFORM){super({sourceColorHct:t,variant:f.VIBRANT,contrastLevel:l,isDark:r,platform:d,specVersion:c});}};function Xr(i){let t=Nt(i),r=Lt(i),l=Yt(i),c=[t.toString(16),r.toString(16),l.toString(16)];for(let[d,h]of c.entries())h.length===1&&(c[d]="0"+h);return "#"+c.join("")}function na(i){i=i.replace("#","");let t=i.length===3,r=i.length===6,l=i.length===8;if(!t&&!r&&!l)throw new Error("unexpected hex "+i);let c=0,d=0,h=0;return t?(c=$e(i.slice(0,1).repeat(2)),d=$e(i.slice(1,2).repeat(2)),h=$e(i.slice(2,3).repeat(2))):r?(c=$e(i.slice(0,2)),d=$e(i.slice(2,4)),h=$e(i.slice(4,6))):l&&(c=$e(i.slice(2,4)),d=$e(i.slice(4,6)),h=$e(i.slice(6,8))),(255<<24|(c&255)<<16|(d&255)<<8|h&255)>>>0}function $e(i){return parseInt(i,16)}function xt(i,t){let r=F.fromInt(na(i)),l=new mr(r,t,0),c={},d=["primary","onPrimary","primaryContainer","onPrimaryContainer","secondary","onSecondary","secondaryContainer","onSecondaryContainer","tertiary","onTertiary","tertiaryContainer","onTertiaryContainer","error","onError","errorContainer","onErrorContainer","background","onBackground","surface","onSurface","surfaceVariant","onSurfaceVariant","outline","outlineVariant","shadow","scrim","inverseSurface","inverseOnSurface","inversePrimary","surfaceDim","surfaceBright","surfaceContainerLowest","surfaceContainerLow","surfaceContainer","surfaceContainerHigh","surfaceContainerHighest"];for(let h of d){let p=b[h];p&&(c[h]=Xr(p.getArgb(l)));}return c}function et(i,t){let r=i.replace("#",""),l=parseInt(r.substring(0,2),16),c=parseInt(r.substring(2,4),16),d=parseInt(r.substring(4,6),16);return `rgba(${l}, ${c}, ${d}, ${t})`}function aa(i,t){let r=0,l=0,c=0;return i.length===4?(r=parseInt(i[1]+i[1],16),l=parseInt(i[2]+i[2],16),c=parseInt(i[3]+i[3],16)):i.length===7&&(r=parseInt(i.slice(1,3),16),l=parseInt(i.slice(3,5),16),c=parseInt(i.slice(5,7),16)),`rgba(${r}, ${l}, ${c}, ${t})`}function Ld(i){let t=i.replace("#",""),r=parseInt(t.substring(0,2),16),l=parseInt(t.substring(2,4),16),c=parseInt(t.substring(4,6),16);return .2126*r+.7152*l+.0722*c<128}var ia=react.createContext(null),_l=xt("#6750A4",false),Hd=({children:i,seedColor:t="#6750A4",defaultColorScheme:r="auto"})=>{let l=react.useRef(t),[c,d]=react.useState(r),[h,p]=react.useState(()=>{let w=r==="dark";return r==="auto"&&typeof window<"u"&&(w=window.matchMedia("(prefers-color-scheme: dark)").matches),xt(l.current,w)});react.useEffect(()=>{if(c==="auto"&&typeof window<"u"){let w=window.matchMedia("(prefers-color-scheme: dark)"),k=S=>{p(xt(l.current,S.matches));};return w.addEventListener("change",k),()=>w.removeEventListener("change",k)}},[c]);let x=react.useMemo(()=>({themeColors:h,systemTheme:c,setThemeColors:w=>{l.current=w;let k=c==="dark";c==="auto"&&(k=typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches:false),p(xt(w,k));},setColorScheme:w=>{d(w);let k=w==="dark";w==="auto"&&(k=typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches:false),p(xt(l.current,k));}}),[h,c]);return jsxRuntime.jsx(ia.Provider,{value:x,children:i})},kt=()=>{let i=react.useContext(ia);return i||{themeColors:_l,systemTheme:"auto",setThemeColors:()=>{throw new Error("[@zaide6137/m3-components-web] Wrap your app in <ThemeProvider>.")},setColorScheme:()=>{throw new Error("[@zaide6137/m3-components-web] Wrap your app in <ThemeProvider>.")}}};var yr=$n(Jr());var Qr=$n(Jr());var sa=react.forwardRef((i,t)=>{let{className:r,shape:l,type:c,hoverEffect:d=true,text:h,icon:p,onClick:x,disabled:w,loading:k=false}=i,{themeColors:S}=kt(),D=w?c==="filled"?{backgroundColor:et(S.onSurface,.12),color:et(S.onSurface,.38),border:"none"}:{backgroundColor:"transparent",color:et(S.onSurface,.38),border:`1px solid ${et(S.onSurface,.12)}`}:c==="filled"?{backgroundColor:S.primary,color:S.onPrimary,border:"none"}:{backgroundColor:"transparent",color:S.primary,border:`1px solid ${S.primary}`},C=40,m=l==="rounded-full"?32:l==="rounded-lg"?12:l==="rounded-md"?8:4;return jsxRuntime.jsx(framerMotion.motion.button,{disabled:w||k,onClick:!w&&!k?x:void 0,className:`${r||""} m3-components-button`,style:{backgroundColor:D.backgroundColor,color:D.color,border:D.border,borderRadius:"40px"},initial:{borderRadius:C},animate:{borderRadius:C},whileHover:!w&&!k&&d?{borderRadius:m,backgroundColor:c==="outlined"?et(S.primary,.08):S.primary}:{},transition:{ease:["easeIn","easeOut"],duration:.2},children:jsxRuntime.jsxs("div",{className:"m3-components-button-content",children:[k&&jsxRuntime.jsx("span",{style:{marginRight:"4px"},children:"... "}),p&&jsxRuntime.jsx("span",{className:"m3-components-button-icon",children:p}),jsxRuntime.jsx("span",{className:"m3-components-button-text",children:h})]})})});var la=({date:i,onPrev:t,onNext:r,onToday:l,view:c,onViewChange:d})=>{let{themeColors:h}=kt(),[p,x]=react.useState(false),w=(0, Qr.default)(),k=w.format("MMM").toUpperCase(),S=w.format("DD"),D=(0, Qr.default)(i).format("MMMM YYYY"),C=Math.ceil(w.date()/7),m=c.charAt(0).toUpperCase()+c.slice(1);return jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar",children:[jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-w1",children:[jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-date-box",style:{backgroundColor:h.surfaceContainerLowest,borderColor:h.outlineVariant},children:[jsxRuntime.jsx("div",{className:"m3-components-bigcalendar-toolbar-w2",style:{backgroundColor:h.primary},children:jsxRuntime.jsx("span",{className:"m3-components-bigcalendar-toolbar-date-month",style:{color:h.onPrimary},children:k})}),jsxRuntime.jsx("span",{className:"m3-components-bigcalendar-toolbar-date-day",style:{color:h.onSurface},children:S})]}),jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-w3",children:[jsxRuntime.jsx("div",{className:"m3-components-bigcalendar-toolbar-w4",children:jsxRuntime.jsx("div",{className:"m3-components-bigcalendar-toolbar-w5",children:jsxRuntime.jsx("h1",{className:"m3-components-bigcalendar-toolbar-title",style:{color:h.onSurface},children:D})})}),jsxRuntime.jsxs("span",{className:"m3-components-bigcalendar-toolbar-week-badge",style:{color:h.onSurfaceVariant,borderColor:h.outlineVariant},children:["Week ",C]})]})]}),jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-w6",children:[jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-nav-group",style:{borderColor:h.outlineVariant},children:[jsxRuntime.jsx("button",{onClick:t,className:"m3-components-bigcalendar-toolbar-nav-prev",style:{borderColor:h.outlineVariant,color:h.onSurface},children:jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"m3-components-bigcalendar-toolbar-nav-icon",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})})}),jsxRuntime.jsx("button",{onClick:l,className:"m3-components-bigcalendar-toolbar-nav-today",style:{color:h.onSurface},children:"Today"}),jsxRuntime.jsx("button",{onClick:r,className:"m3-components-bigcalendar-toolbar-nav-next",style:{borderColor:h.outlineVariant,color:h.onSurface},children:jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"m3-components-bigcalendar-toolbar-nav-icon",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})})]}),jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-w7",children:[jsxRuntime.jsxs("button",{onClick:()=>x(!p),className:"m3-components-bigcalendar-toolbar-dropdown-btn",style:{borderColor:h.outlineVariant,color:h.onSurface},children:[jsxRuntime.jsx("span",{className:"m3-components-bigcalendar-toolbar-dropdown-label",children:"View by:"}),m,jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:`m3-components-bigcalendar-toolbar-dropdown-icon ${p?"rotate-180":""}`,children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})]}),jsxRuntime.jsx(framerMotion.AnimatePresence,{children:p&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"m3-components-bigcalendar-toolbar-dropdown-backdrop",onClick:()=>x(false)}),jsxRuntime.jsx(framerMotion.motion.div,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.15},className:"m3-components-bigcalendar-toolbar-dropdown-menu",style:{backgroundColor:h.surfaceContainerHigh,borderColor:h.outlineVariant},children:["month","week","day"].map(v=>jsxRuntime.jsx("button",{onClick:()=>{d(v),x(false);},className:"m3-components-bigcalendar-toolbar-dropdown-item",style:{color:c===v?h.primary:h.onSurface},children:v.charAt(0).toUpperCase()+v.slice(1)},v))})]})})]}),jsxRuntime.jsx(sa,{type:"filled",shape:"rounded-lg",text:"+ Create",onClick:()=>{}})]})]})};var ua=({event:i,onMouseEnter:t,onMouseLeave:r})=>{let l=i.resource,c=l.eventStyleFilled??true,d=l.eventStyle||{backgroundColor:l.eventSeedColor||"#6750A4",contentColor:"#FFFFFF"},h=c?d.backgroundColor:et(d.backgroundColor,.15),p=c?"transparent":d.backgroundColor,x=c?d.contentColor:d.backgroundColor,w=react.useRef(null),[k,S]=react.useState(1e3);react.useEffect(()=>{if(!w.current)return;let v=new ResizeObserver(T=>{window.requestAnimationFrame(()=>{T[0]&&S(T[0].contentRect.width);});});return v.observe(w.current),()=>v.disconnect()},[]);let D=k<120,C=k>=180;return jsxRuntime.jsx("div",{ref:w,className:"m3-components-bigcalendar-event",children:D?jsxRuntime.jsx(framerMotion.motion.div,{className:"m3-components-bigcalendar-event-dot",onMouseEnter:v=>t(v,l),onMouseLeave:r,style:{backgroundColor:h,borderColor:p==="transparent"?d.backgroundColor:p}}):jsxRuntime.jsx(framerMotion.motion.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},onMouseEnter:v=>t(v,l),onMouseLeave:r,className:"m3-components-bigcalendar-event-chip",style:{backgroundColor:h,color:x,border:c?"none":`1.5px solid ${p}`},children:jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-event-content",children:[jsxRuntime.jsx("span",{className:"m3-components-bigcalendar-event-title",children:l.eventTitle}),C&&jsxRuntime.jsx("span",{className:"m3-components-bigcalendar-event-time",children:l.eventStart.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:true})}),l.eventTrailingIcon&&jsxRuntime.jsx("div",{className:"",style:{color:x},children:l.eventTrailingIcon})]})})})};var Ph=react.forwardRef((i,t)=>{let{currentDate:r,filterOptions:l,events:c,toolBar:d,filterBar:h,filterBy:p,backgroundMode:x,defaultView:w="month",enableAnimations:k=true,slideVariants:S={enter:L=>({x:L>0?"10%":"-10%",opacity:0}),center:{zIndex:1,x:0,opacity:1},exit:L=>({zIndex:0,x:L<0?"10%":"-10%",opacity:0})},transition:D={type:"spring",stiffness:300,damping:30,opacity:{duration:.2}},onEventClicked:C}=i,{themeColors:m}=kt(),v=r?new Date(r):new Date,T=reactBigCalendar.momentLocalizer(yr.default),Y=react.useMemo(()=>c?c.filter(L=>!p||p.length===0||p.includes("All")?true:p.every(me=>L.eventCategory?.includes(me))).map(L=>{let{eventTitle:me,eventStart:Oe,eventEnd:ke,...fe}=L;return {title:me,start:new Date(Oe),end:new Date(ke),resource:fe}}):[],[c,p]),H=react.useMemo(()=>({event:L=>jsxRuntime.jsx(ua,{...L,onMouseEnter:()=>{},onMouseLeave:()=>{}})}),[]),[X,Z]=react.useState(0),[$,V]=react.useState(v),[z,U]=react.useState(w),[ne,ee]=react.useState(l),oe=()=>{Z(-1),V((0, yr.default)($).subtract(1,z).toDate());},be=()=>{Z(1),V((0, yr.default)($).add(1,z).toDate());},we=()=>{Z(0),V(new Date);};return react.useImperativeHandle(t,()=>({previousMonth:oe,nextMonth:be,jumpToNow:we})),jsxRuntime.jsxs(framerMotion.motion.div,{layout:true,style:{backgroundColor:m.surfaceContainerHigh,borderColor:m.outlineVariant,"--m3-primary":m.primary,"--m3-on-primary":m.onPrimary,"--m3-outline-variant":m.outlineVariant,"--m3-on-surface":m.onSurface,"--m3-on-surface-variant":m.onSurfaceVariant,"--m3-today-highlight":aa(m.primary,.03)},className:"m3-components-bigcalendar",children:[jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-w1",children:[jsxRuntime.jsx(la,{date:$,view:z,onViewChange:U,onPrev:oe,onNext:be,onToday:we}),h?h(l):jsxRuntime.jsx("div",{className:"m3-components-bigcalendar-filterbar-w1",children:l.map(L=>jsxRuntime.jsx("button",{onClick:()=>{ee(me=>me.includes(L)?me.filter(Oe=>Oe!==L):[...me,L]);},className:"m3-components-bigcalendar-filterbar-filterchip",style:{backgroundColor:ne.includes(L)?m.onSurface:"transparent",color:ne.includes(L)?m.surface:m.onSurfaceVariant,borderColor:ne.includes(L)?m.onSurface:m.outlineVariant},children:L},L))})]}),jsxRuntime.jsx("div",{style:{backgroundColor:m.outlineVariant},className:"m3-components-bigcalendar-divider"}),jsxRuntime.jsx("div",{className:"rbc-container-wrapper m3-components-bigcalendar-w2",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,custom:X,mode:"wait",children:jsxRuntime.jsx(framerMotion.motion.div,{custom:X,variants:S,initial:"enter",animate:"center",exit:"exit",transition:D,className:"m3-components-bigcalendar-viewport",children:jsxRuntime.jsx(reactBigCalendar.Calendar,{localizer:T,events:Y,date:$,view:z,onNavigate:L=>V(L),onView:L=>{(L==="month"||L==="week"||L==="day")&&U(L);},onSelectEvent:L=>C?.(L),toolbar:false,components:H,eventPropGetter:()=>({style:{backgroundColor:"transparent",border:"none",padding:"1px 2px"}})})},$.toISOString())})})]})});/*! Bundled license information:
|
|
5
|
+
`+new Error().stack),a=false;}return n.apply(this,arguments)},n)}var ne={};function ee(e,n){t.deprecationHandler!=null&&t.deprecationHandler(e,n),ne[e]||(z(n),ne[e]=true);}t.suppressDeprecationWarnings=false,t.deprecationHandler=null;function oe(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function be(e){var n,a;for(a in e)d(e,a)&&(n=e[a],oe(n)?this[a]=n:this["_"+a]=n);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source);}function we(e,n){var a=S({},e),o;for(o in n)d(n,o)&&(c(e[o])&&c(n[o])?(a[o]={},S(a[o],e[o]),S(a[o],n[o])):n[o]!=null?a[o]=n[o]:delete a[o]);for(o in e)d(e,o)&&!d(n,o)&&c(e[o])&&(a[o]=S({},a[o]));return a}function L(e){e!=null&&this.set(e);}var me;Object.keys?me=Object.keys:me=function(e){var n,a=[];for(n in e)d(e,n)&&a.push(n);return a};var Oe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ke(e,n,a){var o=this._calendar[e]||this._calendar.sameElse;return oe(o)?o.call(n,a):o}function fe(e,n,a){var o=""+Math.abs(e),s=n-o.length,u=e>=0;return (u?a?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+o}var tt=/(\[[^\[]*\])|(\\)?([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,Ke=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,rt={},Fe={};function O(e,n,a,o){var s=o;typeof o=="string"&&(s=function(){return this[o]()}),e&&(Fe[e]=s),n&&(Fe[n[0]]=function(){return fe(s.apply(this,arguments),n[1],n[2])}),a&&(Fe[a]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)});}function Ht(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ut(e){var n=e.match(tt),a,o;for(a=0,o=n.length;a<o;a++)Fe[n[a]]?n[a]=Fe[n[a]]:n[a]=Ht(n[a]);return function(s){var u="",g;for(g=0;g<o;g++)u+=oe(n[g])?n[g].call(s,e):n[g];return u}}function ct(e,n){return e.isValid()?(n=Wt(n,e.localeData()),rt[n]=rt[n]||Ut(n),rt[n](e)):e.localeData().invalidDate()}function Wt(e,n){var a=5;function o(s){return n.longDateFormat(s)||s}for(Ke.lastIndex=0;a>=0&&Ke.test(e);)e=e.replace(Ke,o),Ke.lastIndex=0,a-=1;return e}var zt={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 br(e){var n=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return n||!a?n:(this._longDateFormat[e]=a.match(tt).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var wr="Invalid date";function pa(){return this._invalidDate}var ga="%d",ya=/\d{1,2}/;function ba(e){return this._ordinal.replace("%d",e)}var wa={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 va(e,n,a,o){var s=this._relativeTime[a];return oe(s)?s(e,n,a,o):s.replace(/%d/i,e)}function xa(e,n){var a=this._relativeTime[e>0?"future":"past"];return oe(a)?a(n):a.replace(/%s/i,n)}var en={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 Se(e){return typeof e=="string"?en[e]||en[e.toLowerCase()]:void 0}function vr(e){var n={},a,o;for(o in e)d(e,o)&&(a=Se(o),a&&(n[a]=e[o]));return n}var ka={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 Sa(e){var n=[],a;for(a in e)d(e,a)&&n.push({unit:a,priority:ka[a]});return n.sort(function(o,s){return o.priority-s.priority}),n}var tn=/\d/,ve=/\d\d/,rn=/\d{3}/,xr=/\d{4}/,Gt=/[+-]?\d{6}/,te=/\d\d?/,nn=/\d\d\d\d?/,an=/\d\d\d\d\d\d?/,jt=/\d{1,3}/,kr=/\d{1,4}/,$t=/[+-]?\d{1,6}/,ut=/\d+/,qt=/[+-]?\d+/,Pa=/Z|[+-]\d\d:?\d\d/gi,Kt=/Z|[+-]\d\d(?::?\d\d)?/gi,Da=/[+-]?\d+(\.\d{1,3})?/,Pt=/[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,dt=/^[1-9]\d?/,Sr=/^([1-9]\d|\d)/,Xt;Xt={};function A(e,n,a){Xt[e]=oe(n)?n:function(o,s){return o&&a?a:n};}function Ca(e,n){return d(Xt,e)?Xt[e](n._strict,n._locale):new RegExp(Ta(e))}function Ta(e){return Le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,a,o,s,u){return a||o||s||u}))}function Le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Pe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function W(e){var n=+e,a=0;return n!==0&&isFinite(n)&&(a=Pe(n)),a}var Pr={};function Q(e,n){var a,o=n,s;for(typeof e=="string"&&(e=[e]),x(n)&&(o=function(u,g){g[n]=W(u);}),s=e.length,a=0;a<s;a++)Pr[e[a]]=o;}function Dt(e,n){Q(e,function(a,o,s,u){s._w=s._w||{},n(a,s._w,s,u);});}function _a(e,n,a){n!=null&&d(Pr,e)&&Pr[e](n,a._a,a,e);}function Zt(e){return e%4===0&&e%100!==0||e%400===0}var pe=0,Ye=1,Re=2,de=3,Ce=4,Ve=5,nt=6,Ma=7,Aa=8;O("Y",0,0,function(){var e=this.year();return e<=9999?fe(e,4):"+"+e}),O(0,["YY",2],0,function(){return this.year()%100}),O(0,["YYYY",4],0,"year"),O(0,["YYYYY",5],0,"year"),O(0,["YYYYYY",6,true],0,"year"),A("Y",qt),A("YY",te,ve),A("YYYY",kr,xr),A("YYYYY",$t,Gt),A("YYYYYY",$t,Gt),Q(["YYYYY","YYYYYY"],pe),Q("YYYY",function(e,n){n[pe]=e.length===2?t.parseTwoDigitYear(e):W(e);}),Q("YY",function(e,n){n[pe]=t.parseTwoDigitYear(e);}),Q("Y",function(e,n){n[pe]=parseInt(e,10);});function Ct(e){return Zt(e)?366:365}t.parseTwoDigitYear=function(e){return W(e)+(W(e)>68?1900:2e3)};var on=ht("FullYear",true);function Oa(){return Zt(this.year())}function ht(e,n){return function(a){return a!=null?(sn(this,e,a),t.updateOffset(this,n),this):Tt(this,e)}}function Tt(e,n){if(!e.isValid())return NaN;var a=e._d,o=e._isUTC;switch(n){case "Milliseconds":return o?a.getUTCMilliseconds():a.getMilliseconds();case "Seconds":return o?a.getUTCSeconds():a.getSeconds();case "Minutes":return o?a.getUTCMinutes():a.getMinutes();case "Hours":return o?a.getUTCHours():a.getHours();case "Date":return o?a.getUTCDate():a.getDate();case "Day":return o?a.getUTCDay():a.getDay();case "Month":return o?a.getUTCMonth():a.getMonth();case "FullYear":return o?a.getUTCFullYear():a.getFullYear();default:return NaN}}function sn(e,n,a){var o,s,u,g,M;if(!(!e.isValid()||isNaN(a))){switch(o=e._d,s=e._isUTC,n){case "Milliseconds":return void(s?o.setUTCMilliseconds(a):o.setMilliseconds(a));case "Seconds":return void(s?o.setUTCSeconds(a):o.setSeconds(a));case "Minutes":return void(s?o.setUTCMinutes(a):o.setMinutes(a));case "Hours":return void(s?o.setUTCHours(a):o.setHours(a));case "Date":return void(s?o.setUTCDate(a):o.setDate(a));case "FullYear":break;default:return}u=a,g=e.month(),M=e.date(),M=M===29&&g===1&&!Zt(u)?28:M,s?o.setUTCFullYear(u,g,M):o.setFullYear(u,g,M);}}function Fa(e){return e=Se(e),oe(this[e])?this[e]():this}function Ra(e,n){if(typeof e=="object"){e=vr(e);var a=Sa(e),o,s=a.length;for(o=0;o<s;o++)this[a[o].unit](e[a[o].unit]);}else if(e=Se(e),oe(this[e]))return this[e](n);return this}function Ia(e,n){return (e%n+n)%n}var se;Array.prototype.indexOf?se=Array.prototype.indexOf:se=function(e){var n;for(n=0;n<this.length;++n)if(this[n]===e)return n;return -1};function Dr(e,n){if(isNaN(e)||isNaN(n))return NaN;var a=Ia(n,12);return e+=(n-a)/12,a===1?Zt(e)?29:28:31-a%7%2}O("M",["MM",2],"Mo",function(){return this.month()+1}),O("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),O("MMMM",0,0,function(e){return this.localeData().months(this,e)}),A("M",te,dt),A("MM",te,ve),A("MMM",function(e,n){return n.monthsShortRegex(e)}),A("MMMM",function(e,n){return n.monthsRegex(e)}),Q(["M","MM"],function(e,n){n[Ye]=W(e)-1;}),Q(["MMM","MMMM"],function(e,n,a,o){var s=a._locale.monthsParse(e,o,a._strict);s!=null?n[Ye]=s:m(a).invalidMonth=e;});var Ea="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ln="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),cn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Na=Pt,La=Pt;function Ya(e,n){return e?l(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||cn).test(n)?"format":"standalone"][e.month()]:l(this._months)?this._months:this._months.standalone}function Va(e,n){return e?l(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[cn.test(n)?"format":"standalone"][e.month()]:l(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Ba(e,n,a){var o,s,u,g=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)u=D([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(u,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(u,"").toLocaleLowerCase();return a?n==="MMM"?(s=se.call(this._shortMonthsParse,g),s!==-1?s:null):(s=se.call(this._longMonthsParse,g),s!==-1?s:null):n==="MMM"?(s=se.call(this._shortMonthsParse,g),s!==-1?s:(s=se.call(this._longMonthsParse,g),s!==-1?s:null)):(s=se.call(this._longMonthsParse,g),s!==-1?s:(s=se.call(this._shortMonthsParse,g),s!==-1?s:null))}function Ha(e,n,a){var o,s,u;if(this._monthsParseExact)return Ba.call(this,e,n,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(s=D([2e3,o]),a&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!a&&!this._monthsParse[o]&&(u="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[o]=new RegExp(u.replace(".",""),"i")),a&&n==="MMMM"&&this._longMonthsParse[o].test(e))return o;if(a&&n==="MMM"&&this._shortMonthsParse[o].test(e))return o;if(!a&&this._monthsParse[o].test(e))return o}}function un(e,n){if(!e.isValid())return e;if(typeof n=="string"){if(/^\d+$/.test(n))n=W(n);else if(n=e.localeData().monthsParse(n),!x(n))return e}var a=n,o=e.date();return o=o<29?o:Math.min(o,Dr(e.year(),a)),e._isUTC?e._d.setUTCMonth(a,o):e._d.setMonth(a,o),e}function dn(e){return e!=null?(un(this,e),t.updateOffset(this,true),this):Tt(this,"Month")}function Ua(){return Dr(this.year(),this.month())}function Wa(e){return this._monthsParseExact?(d(this,"_monthsRegex")||hn.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Na),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function za(e){return this._monthsParseExact?(d(this,"_monthsRegex")||hn.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=La),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function hn(){function e(N,G){return G.length-N.length}var n=[],a=[],o=[],s,u,g,M;for(s=0;s<12;s++)u=D([2e3,s]),g=Le(this.monthsShort(u,"")),M=Le(this.months(u,"")),n.push(g),a.push(M),o.push(M),o.push(g);n.sort(e),a.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i");}function Ga(e,n,a,o,s,u,g){var M;return e<100&&e>=0?(M=new Date(e+400,n,a,o,s,u,g),isFinite(M.getFullYear())&&M.setFullYear(e)):M=new Date(e,n,a,o,s,u,g),M}function _t(e){var n,a;return e<100&&e>=0?(a=Array.prototype.slice.call(arguments),a[0]=e+400,n=new Date(Date.UTC.apply(null,a)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(e)):n=new Date(Date.UTC.apply(null,arguments)),n}function Jt(e,n,a){var o=7+n-a,s=(7+_t(e,0,o).getUTCDay()-n)%7;return -s+o-1}function fn(e,n,a,o,s){var u=(7+a-o)%7,g=Jt(e,o,s),M=1+7*(n-1)+u+g,N,G;return M<=0?(N=e-1,G=Ct(N)+M):M>Ct(e)?(N=e+1,G=M-Ct(e)):(N=e,G=M),{year:N,dayOfYear:G}}function Mt(e,n,a){var o=Jt(e.year(),n,a),s=Math.floor((e.dayOfYear()-o-1)/7)+1,u,g;return s<1?(g=e.year()-1,u=s+Be(g,n,a)):s>Be(e.year(),n,a)?(u=s-Be(e.year(),n,a),g=e.year()+1):(g=e.year(),u=s),{week:u,year:g}}function Be(e,n,a){var o=Jt(e,n,a),s=Jt(e+1,n,a);return (Ct(e)-o+s)/7}O("w",["ww",2],"wo","week"),O("W",["WW",2],"Wo","isoWeek"),A("w",te,dt),A("ww",te,ve),A("W",te,dt),A("WW",te,ve),Dt(["w","ww","W","WW"],function(e,n,a,o){n[o.substr(0,1)]=W(e);});function ja(e){return Mt(e,this._week.dow,this._week.doy).week}var $a={dow:0,doy:6};function qa(){return this._week.dow}function Ka(){return this._week.doy}function Xa(e){var n=this.localeData().week(this);return e==null?n:this.add((e-n)*7,"d")}function Za(e){var n=Mt(this,1,4).week;return e==null?n:this.add((e-n)*7,"d")}O("d",0,"do","day"),O("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),O("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),O("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),O("e",0,0,"weekday"),O("E",0,0,"isoWeekday"),A("d",te),A("e",te),A("E",te),A("dd",function(e,n){return n.weekdaysMinRegex(e)}),A("ddd",function(e,n){return n.weekdaysShortRegex(e)}),A("dddd",function(e,n){return n.weekdaysRegex(e)}),Dt(["dd","ddd","dddd"],function(e,n,a,o){var s=a._locale.weekdaysParse(e,o,a._strict);s!=null?n.d=s:m(a).invalidWeekday=e;}),Dt(["d","e","E"],function(e,n,a,o){n[o]=W(e);});function Ja(e,n){return typeof e!="string"?e:isNaN(e)?(e=n.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Qa(e,n){return typeof e=="string"?n.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Cr(e,n){return e.slice(n,7).concat(e.slice(0,n))}var eo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),mn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),to="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ro=Pt,no=Pt,ao=Pt;function oo(e,n){var a=l(this._weekdays)?this._weekdays:this._weekdays[e&&e!==true&&this._weekdays.isFormat.test(n)?"format":"standalone"];return e===true?Cr(a,this._week.dow):e?a[e.day()]:a}function io(e){return e===true?Cr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function so(e){return e===true?Cr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function lo(e,n,a){var o,s,u,g=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)u=D([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(u,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(u,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(u,"").toLocaleLowerCase();return a?n==="dddd"?(s=se.call(this._weekdaysParse,g),s!==-1?s:null):n==="ddd"?(s=se.call(this._shortWeekdaysParse,g),s!==-1?s:null):(s=se.call(this._minWeekdaysParse,g),s!==-1?s:null):n==="dddd"?(s=se.call(this._weekdaysParse,g),s!==-1||(s=se.call(this._shortWeekdaysParse,g),s!==-1)?s:(s=se.call(this._minWeekdaysParse,g),s!==-1?s:null)):n==="ddd"?(s=se.call(this._shortWeekdaysParse,g),s!==-1||(s=se.call(this._weekdaysParse,g),s!==-1)?s:(s=se.call(this._minWeekdaysParse,g),s!==-1?s:null)):(s=se.call(this._minWeekdaysParse,g),s!==-1||(s=se.call(this._weekdaysParse,g),s!==-1)?s:(s=se.call(this._shortWeekdaysParse,g),s!==-1?s:null))}function co(e,n,a){var o,s,u;if(this._weekdaysParseExact)return lo.call(this,e,n,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(s=D([2e3,1]).day(o),a&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(u="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[o]=new RegExp(u.replace(".",""),"i")),a&&n==="dddd"&&this._fullWeekdaysParse[o].test(e))return o;if(a&&n==="ddd"&&this._shortWeekdaysParse[o].test(e))return o;if(a&&n==="dd"&&this._minWeekdaysParse[o].test(e))return o;if(!a&&this._weekdaysParse[o].test(e))return o}}function uo(e){if(!this.isValid())return e!=null?this:NaN;var n=Tt(this,"Day");return e!=null?(e=Ja(e,this.localeData()),this.add(e-n,"d")):n}function ho(e){if(!this.isValid())return e!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return e==null?n:this.add(e-n,"d")}function fo(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var n=Qa(e,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function mo(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Tr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=ro),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function po(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Tr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=no),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function go(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Tr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ao),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Tr(){function e(ye,Ge){return Ge.length-ye.length}var n=[],a=[],o=[],s=[],u,g,M,N,G;for(u=0;u<7;u++)g=D([2e3,1]).day(u),M=Le(this.weekdaysMin(g,"")),N=Le(this.weekdaysShort(g,"")),G=Le(this.weekdays(g,"")),n.push(M),a.push(N),o.push(G),s.push(M),s.push(N),s.push(G);n.sort(e),a.sort(e),o.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i");}function _r(){return this.hours()%12||12}function yo(){return this.hours()||24}O("H",["HH",2],0,"hour"),O("h",["hh",2],0,_r),O("k",["kk",2],0,yo),O("hmm",0,0,function(){return ""+_r.apply(this)+fe(this.minutes(),2)}),O("hmmss",0,0,function(){return ""+_r.apply(this)+fe(this.minutes(),2)+fe(this.seconds(),2)}),O("Hmm",0,0,function(){return ""+this.hours()+fe(this.minutes(),2)}),O("Hmmss",0,0,function(){return ""+this.hours()+fe(this.minutes(),2)+fe(this.seconds(),2)});function pn(e,n){O(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)});}pn("a",true),pn("A",false);function gn(e,n){return n._meridiemParse}A("a",gn),A("A",gn),A("H",te,Sr),A("h",te,dt),A("k",te,dt),A("HH",te,ve),A("hh",te,ve),A("kk",te,ve),A("hmm",nn),A("hmmss",an),A("Hmm",nn),A("Hmmss",an),Q(["H","HH"],de),Q(["k","kk"],function(e,n,a){var o=W(e);n[de]=o===24?0:o;}),Q(["a","A"],function(e,n,a){a._isPm=a._locale.isPM(e),a._meridiem=e;}),Q(["h","hh"],function(e,n,a){n[de]=W(e),m(a).bigHour=true;}),Q("hmm",function(e,n,a){var o=e.length-2;n[de]=W(e.substr(0,o)),n[Ce]=W(e.substr(o)),m(a).bigHour=true;}),Q("hmmss",function(e,n,a){var o=e.length-4,s=e.length-2;n[de]=W(e.substr(0,o)),n[Ce]=W(e.substr(o,2)),n[Ve]=W(e.substr(s)),m(a).bigHour=true;}),Q("Hmm",function(e,n,a){var o=e.length-2;n[de]=W(e.substr(0,o)),n[Ce]=W(e.substr(o));}),Q("Hmmss",function(e,n,a){var o=e.length-4,s=e.length-2;n[de]=W(e.substr(0,o)),n[Ce]=W(e.substr(o,2)),n[Ve]=W(e.substr(s));});function bo(e){return (e+"").toLowerCase().charAt(0)==="p"}var wo=/[ap]\.?m?\.?/i,vo=ht("Hours",true);function xo(e,n,a){return e>11?a?"pm":"PM":a?"am":"AM"}var yn={calendar:Oe,longDateFormat:zt,invalidDate:wr,ordinal:ga,dayOfMonthOrdinalParse:ya,relativeTime:wa,months:Ea,monthsShort:ln,week:$a,weekdays:eo,weekdaysMin:to,weekdaysShort:mn,meridiemParse:wo},ae={},At={},Ot;function ko(e,n){var a,o=Math.min(e.length,n.length);for(a=0;a<o;a+=1)if(e[a]!==n[a])return a;return o}function bn(e){return e&&e.toLowerCase().replace("_","-")}function So(e){for(var n=0,a,o,s,u;n<e.length;){for(u=bn(e[n]).split("-"),a=u.length,o=bn(e[n+1]),o=o?o.split("-"):null;a>0;){if(s=Qt(u.slice(0,a).join("-")),s)return s;if(o&&o.length>=a&&ko(u,o)>=a-1)break;a--;}n++;}return Ot}function Po(e){return !!(e&&e.match("^[^/\\\\]*$"))}function Qt(e){var n=null,a;if(ae[e]===void 0&&typeof St<"u"&&St&&St.exports&&Po(e))try{n=Ot._abbr,a=jn,a("./locale/"+e),Xe(n);}catch{ae[e]=null;}return ae[e]}function Xe(e,n){var a;return e&&(p(n)?a=He(e):a=Mr(e,n),a?Ot=a:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ot._abbr}function Mr(e,n){if(n!==null){var a,o=yn;if(n.abbr=e,ae[e]!=null)ee("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."),o=ae[e]._config;else if(n.parentLocale!=null)if(ae[n.parentLocale]!=null)o=ae[n.parentLocale]._config;else if(a=Qt(n.parentLocale),a!=null)o=a._config;else return At[n.parentLocale]||(At[n.parentLocale]=[]),At[n.parentLocale].push({name:e,config:n}),null;return ae[e]=new L(we(o,n)),At[e]&&At[e].forEach(function(s){Mr(s.name,s.config);}),Xe(e),ae[e]}else return delete ae[e],null}function Do(e,n){if(n!=null){var a,o,s=yn;ae[e]!=null&&ae[e].parentLocale!=null?ae[e].set(we(ae[e]._config,n)):(o=Qt(e),o!=null&&(s=o._config),n=we(s,n),o==null&&(n.abbr=e),a=new L(n),a.parentLocale=ae[e],ae[e]=a),Xe(e);}else ae[e]!=null&&(ae[e].parentLocale!=null?(ae[e]=ae[e].parentLocale,e===Xe()&&Xe(e)):ae[e]!=null&&delete ae[e]);return ae[e]}function He(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ot;if(!l(e)){if(n=Qt(e),n)return n;e=[e];}return So(e)}function Co(){return me(ae)}function Ar(e){var n,a=e._a;return a&&m(e).overflow===-2&&(n=a[Ye]<0||a[Ye]>11?Ye:a[Re]<1||a[Re]>Dr(a[pe],a[Ye])?Re:a[de]<0||a[de]>24||a[de]===24&&(a[Ce]!==0||a[Ve]!==0||a[nt]!==0)?de:a[Ce]<0||a[Ce]>59?Ce:a[Ve]<0||a[Ve]>59?Ve:a[nt]<0||a[nt]>999?nt:-1,m(e)._overflowDayOfYear&&(n<pe||n>Re)&&(n=Re),m(e)._overflowWeeks&&n===-1&&(n=Ma),m(e)._overflowWeekday&&n===-1&&(n=Aa),m(e).overflow=n),e}var To=/^\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)?)?$/,_o=/^\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)?)?$/,Mo=/Z|[+-]\d\d(?::?\d\d)?/,er=[["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/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],Or=[["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/]],Ao=/^\/?Date\((-?\d+)/i,Oo=/^(?:(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}))$/,Fo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function wn(e){var n,a,o=e._i,s=To.exec(o)||_o.exec(o),u,g,M,N,G=er.length,ye=Or.length;if(s){for(m(e).iso=true,n=0,a=G;n<a;n++)if(er[n][1].exec(s[1])){g=er[n][0],u=er[n][2]!==false;break}if(g==null){e._isValid=false;return}if(s[3]){for(n=0,a=ye;n<a;n++)if(Or[n][1].exec(s[3])){M=(s[2]||" ")+Or[n][0];break}if(M==null){e._isValid=false;return}}if(!u&&M!=null){e._isValid=false;return}if(s[4])if(Mo.exec(s[4]))N="Z";else {e._isValid=false;return}e._f=g+(M||"")+(N||""),Rr(e);}else e._isValid=false;}function Ro(e,n,a,o,s,u){var g=[Io(e),ln.indexOf(n),parseInt(a,10),parseInt(o,10),parseInt(s,10)];return u&&g.push(parseInt(u,10)),g}function Io(e){var n=parseInt(e,10);return n<=49?2e3+n:n<=999?1900+n:n}function Eo(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function No(e,n,a){if(e){var o=mn.indexOf(e),s=new Date(n[0],n[1],n[2]).getDay();if(o!==s)return m(a).weekdayMismatch=true,a._isValid=false,false}return true}function Lo(e,n,a){if(e)return Fo[e];if(n)return 0;var o=parseInt(a,10),s=o%100,u=(o-s)/100;return u*60+s}function vn(e){var n=Oo.exec(Eo(e._i)),a;if(n){if(a=Ro(n[4],n[3],n[2],n[5],n[6],n[7]),!No(n[1],a,e))return;e._a=a,e._tzm=Lo(n[8],n[9],n[10]),e._d=_t.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=true;}else e._isValid=false;}function Yo(e){var n=Ao.exec(e._i);if(n!==null){e._d=new Date(+n[1]);return}if(wn(e),e._isValid===false)delete e._isValid;else return;if(vn(e),e._isValid===false)delete e._isValid;else return;e._strict?e._isValid=false:t.createFromInputFallback(e);}t.createFromInputFallback=U("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 ft(e,n,a){return e??n??a}function Vo(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function Fr(e){var n,a,o=[],s,u,g;if(!e._d){for(s=Vo(e),e._w&&e._a[Re]==null&&e._a[Ye]==null&&Bo(e),e._dayOfYear!=null&&(g=ft(e._a[pe],s[pe]),(e._dayOfYear>Ct(g)||e._dayOfYear===0)&&(m(e)._overflowDayOfYear=true),a=_t(g,0,e._dayOfYear),e._a[Ye]=a.getUTCMonth(),e._a[Re]=a.getUTCDate()),n=0;n<3&&e._a[n]==null;++n)e._a[n]=o[n]=s[n];for(;n<7;n++)e._a[n]=o[n]=e._a[n]==null?n===2?1:0:e._a[n];e._a[de]===24&&e._a[Ce]===0&&e._a[Ve]===0&&e._a[nt]===0&&(e._nextDay=true,e._a[de]=0),e._d=(e._useUTC?_t:Ga).apply(null,o),u=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[de]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==u&&(m(e).weekdayMismatch=true);}}function Bo(e){var n,a,o,s,u,g,M,N,G;n=e._w,n.GG!=null||n.W!=null||n.E!=null?(u=1,g=4,a=ft(n.GG,e._a[pe],Mt(re(),1,4).year),o=ft(n.W,1),s=ft(n.E,1),(s<1||s>7)&&(N=true)):(u=e._locale._week.dow,g=e._locale._week.doy,G=Mt(re(),u,g),a=ft(n.gg,e._a[pe],G.year),o=ft(n.w,G.week),n.d!=null?(s=n.d,(s<0||s>6)&&(N=true)):n.e!=null?(s=n.e+u,(n.e<0||n.e>6)&&(N=true)):s=u),o<1||o>Be(a,u,g)?m(e)._overflowWeeks=true:N!=null?m(e)._overflowWeekday=true:(M=fn(a,o,s,u,g),e._a[pe]=M.year,e._dayOfYear=M.dayOfYear);}t.ISO_8601=function(){},t.RFC_2822=function(){};function Rr(e){if(e._f===t.ISO_8601){wn(e);return}if(e._f===t.RFC_2822){vn(e);return}e._a=[],m(e).empty=true;var n=""+e._i,a,o,s,u,g,M=n.length,N=0,G,ye;for(s=Wt(e._f,e._locale).match(tt)||[],ye=s.length,a=0;a<ye;a++)u=s[a],o=(n.match(Ca(u,e))||[])[0],o&&(g=n.substr(0,n.indexOf(o)),g.length>0&&m(e).unusedInput.push(g),n=n.slice(n.indexOf(o)+o.length),N+=o.length),Fe[u]?(o?m(e).empty=false:m(e).unusedTokens.push(u),_a(u,o,e)):e._strict&&!o&&m(e).unusedTokens.push(u);m(e).charsLeftOver=M-N,n.length>0&&m(e).unusedInput.push(n),e._a[de]<=12&&m(e).bigHour===true&&e._a[de]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[de]=Ho(e._locale,e._a[de],e._meridiem),G=m(e).era,G!==null&&(e._a[pe]=e._locale.erasConvertYear(G,e._a[pe])),Fr(e),Ar(e);}function Ho(e,n,a){var o;return a==null?n:e.meridiemHour!=null?e.meridiemHour(n,a):(e.isPM!=null&&(o=e.isPM(a),o&&n<12&&(n+=12),!o&&n===12&&(n=0)),n)}function Uo(e){var n,a,o,s,u,g,M=false,N=e._f.length;if(N===0){m(e).invalidFormat=true,e._d=new Date(NaN);return}for(s=0;s<N;s++)u=0,g=false,n=Z({},e),e._useUTC!=null&&(n._useUTC=e._useUTC),n._f=e._f[s],Rr(n),T(n)&&(g=true),u+=m(n).charsLeftOver,u+=m(n).unusedTokens.length*10,m(n).score=u,M?u<o&&(o=u,a=n):(o==null||u<o||g)&&(o=u,a=n,g&&(M=true));S(e,a||n);}function Wo(e){if(!e._d){var n=vr(e._i),a=n.day===void 0?n.date:n.day;e._a=k([n.year,n.month,a,n.hour,n.minute,n.second,n.millisecond],function(o){return o&&parseInt(o,10)}),Fr(e);}}function zo(e){var n=new $(Ar(xn(e)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function xn(e){var n=e._i,a=e._f;return e._locale=e._locale||He(e._l),n===null||a===void 0&&n===""?Y({nullInput:true}):(typeof n=="string"&&(e._i=n=e._locale.preparse(n)),V(n)?new $(Ar(n)):(w(n)?e._d=n:l(a)?Uo(e):a?Rr(e):Go(e),T(e)||(e._d=null),e))}function Go(e){var n=e._i;p(n)?e._d=new Date(t.now()):w(n)?e._d=new Date(n.valueOf()):typeof n=="string"?Yo(e):l(n)?(e._a=k(n.slice(0),function(a){return parseInt(a,10)}),Fr(e)):c(n)?Wo(e):x(n)?e._d=new Date(n):t.createFromInputFallback(e);}function kn(e,n,a,o,s){var u={};return (n===true||n===false)&&(o=n,n=void 0),(a===true||a===false)&&(o=a,a=void 0),(c(e)&&h(e)||l(e)&&e.length===0)&&(e=void 0),u._isAMomentObject=true,u._useUTC=u._isUTC=s,u._l=a,u._i=e,u._f=n,u._strict=o,zo(u)}function re(e,n,a,o){return kn(e,n,a,o,false)}var jo=U("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=re.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Y()}),$o=U("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=re.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Y()});function Sn(e,n){var a,o;if(n.length===1&&l(n[0])&&(n=n[0]),!n.length)return re();for(a=n[0],o=1;o<n.length;++o)(!n[o].isValid()||n[o][e](a))&&(a=n[o]);return a}function qo(){var e=[].slice.call(arguments,0);return Sn("isBefore",e)}function Ko(){var e=[].slice.call(arguments,0);return Sn("isAfter",e)}var Xo=function(){return Date.now?Date.now():+new Date},Ft=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Zo(e){var n,a=false,o,s=Ft.length;for(n in e)if(d(e,n)&&!(se.call(Ft,n)!==-1&&(e[n]==null||!isNaN(e[n]))))return false;for(o=0;o<s;++o)if(e[Ft[o]]){if(a)return false;parseFloat(e[Ft[o]])!==W(e[Ft[o]])&&(a=true);}return true}function Jo(){return this._isValid}function Qo(){return Te(NaN)}function tr(e){var n=vr(e),a=n.year||0,o=n.quarter||0,s=n.month||0,u=n.week||n.isoWeek||0,g=n.day||0,M=n.hour||0,N=n.minute||0,G=n.second||0,ye=n.millisecond||0;this._isValid=Zo(n),this._milliseconds=+ye+G*1e3+N*6e4+M*1e3*60*60,this._days=+g+u*7,this._months=+s+o*3+a*12,this._data={},this._locale=He(),this._bubble();}function rr(e){return e instanceof tr}function Ir(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function ei(e,n,a){var o=Math.min(e.length,n.length),s=Math.abs(e.length-n.length),u=0,g;for(g=0;g<o;g++)(W(e[g])!==W(n[g]))&&u++;return u+s}function Pn(e,n){O(e,0,0,function(){var a=this.utcOffset(),o="+";return a<0&&(a=-a,o="-"),o+fe(~~(a/60),2)+n+fe(~~a%60,2)});}Pn("Z",":"),Pn("ZZ",""),A("Z",Kt),A("ZZ",Kt),Q(["Z","ZZ"],function(e,n,a){a._useUTC=true,a._tzm=Er(Kt,e);});var ti=/([\+\-]|\d\d)/gi;function Er(e,n){var a=(n||"").match(e),o,s,u;return a===null?null:(o=a[a.length-1]||[],s=(o+"").match(ti)||["-",0,0],u=+(s[1]*60)+W(s[2]),u===0?0:s[0]==="+"?u:-u)}function Nr(e,n){var a,o;return n._isUTC?(a=n.clone(),o=(V(e)||w(e)?e.valueOf():re(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+o),t.updateOffset(a,false),a):re(e).local()}function Lr(e){return -Math.round(e._d.getTimezoneOffset())}t.updateOffset=function(){};function ri(e,n,a){var o=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Er(Kt,e),e===null)return this}else Math.abs(e)<16&&!a&&(e=e*60);return !this._isUTC&&n&&(s=Lr(this)),this._offset=e,this._isUTC=true,s!=null&&this.add(s,"m"),o!==e&&(!n||this._changeInProgress?_n(this,Te(e-o,"m"),1,false):this._changeInProgress||(this._changeInProgress=true,t.updateOffset(this,true),this._changeInProgress=null)),this}else return this._isUTC?o:Lr(this)}function ni(e,n){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,n),this):-this.utcOffset()}function ai(e){return this.utcOffset(0,e)}function oi(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=false,e&&this.subtract(Lr(this),"m")),this}function ii(){if(this._tzm!=null)this.utcOffset(this._tzm,false,true);else if(typeof this._i=="string"){var e=Er(Pa,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,true);}return this}function si(e){return this.isValid()?(e=e?re(e).utcOffset():0,(this.utcOffset()-e)%60===0):false}function li(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ci(){if(!p(this._isDSTShifted))return this._isDSTShifted;var e={},n;return Z(e,this),e=xn(e),e._a?(n=e._isUTC?D(e._a):re(e._a),this._isDSTShifted=this.isValid()&&ei(e._a,n.toArray())>0):this._isDSTShifted=false,this._isDSTShifted}function ui(){return this.isValid()?!this._isUTC:false}function di(){return this.isValid()?this._isUTC:false}function Dn(){return this.isValid()?this._isUTC&&this._offset===0:false}var hi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,fi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Te(e,n){var a=e,o=null,s,u,g;return rr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:x(e)||!isNaN(+e)?(a={},n?a[n]=+e:a.milliseconds=+e):(o=hi.exec(e))?(s=o[1]==="-"?-1:1,a={y:0,d:W(o[Re])*s,h:W(o[de])*s,m:W(o[Ce])*s,s:W(o[Ve])*s,ms:W(Ir(o[nt]*1e3))*s}):(o=fi.exec(e))?(s=o[1]==="-"?-1:1,a={y:at(o[2],s),M:at(o[3],s),w:at(o[4],s),d:at(o[5],s),h:at(o[6],s),m:at(o[7],s),s:at(o[8],s)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(g=mi(re(a.from),re(a.to)),a={},a.ms=g.milliseconds,a.M=g.months),u=new tr(a),rr(e)&&d(e,"_locale")&&(u._locale=e._locale),rr(e)&&d(e,"_isValid")&&(u._isValid=e._isValid),u}Te.fn=tr.prototype,Te.invalid=Qo;function at(e,n){var a=e&&parseFloat(e.replace(",","."));return (isNaN(a)?0:a)*n}function Cn(e,n){var a={};return a.months=n.month()-e.month()+(n.year()-e.year())*12,e.clone().add(a.months,"M").isAfter(n)&&--a.months,a.milliseconds=+n-+e.clone().add(a.months,"M"),a}function mi(e,n){var a;return e.isValid()&&n.isValid()?(n=Nr(n,e),e.isBefore(n)?a=Cn(e,n):(a=Cn(n,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function Tn(e,n){return function(a,o){var s,u;return o!==null&&!isNaN(+o)&&(ee(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),u=a,a=o,o=u),s=Te(a,o),_n(this,s,e),this}}function _n(e,n,a,o){var s=n._milliseconds,u=Ir(n._days),g=Ir(n._months);e.isValid()&&(o=o??true,g&&un(e,Tt(e,"Month")+g*a),u&&sn(e,"Date",Tt(e,"Date")+u*a),s&&e._d.setTime(e._d.valueOf()+s*a),o&&t.updateOffset(e,u||g));}var pi=Tn(1,"add"),gi=Tn(-1,"subtract");function Mn(e){return typeof e=="string"||e instanceof String}function yi(e){return V(e)||w(e)||Mn(e)||x(e)||wi(e)||bi(e)||e===null||e===void 0}function bi(e){var n=c(e)&&!h(e),a=false,o=["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,u,g=o.length;for(s=0;s<g;s+=1)u=o[s],a=a||d(e,u);return n&&a}function wi(e){var n=l(e),a=false;return n&&(a=e.filter(function(o){return !x(o)&&Mn(e)}).length===0),n&&a}function vi(e){var n=c(e)&&!h(e),a=false,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,u;for(s=0;s<o.length;s+=1)u=o[s],a=a||d(e,u);return n&&a}function xi(e,n){var a=e.diff(n,"days",true);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"}function ki(e,n){arguments.length===1&&(arguments[0]?yi(arguments[0])?(e=arguments[0],n=void 0):vi(arguments[0])&&(n=arguments[0],e=void 0):(e=void 0,n=void 0));var a=e||re(),o=Nr(a,this).startOf("day"),s=t.calendarFormat(this,o)||"sameElse",u=n&&(oe(n[s])?n[s].call(this,a):n[s]);return this.format(u||this.localeData().calendar(s,this,re(a)))}function Si(){return new $(this)}function Pi(e,n){var a=V(e)?e:re(e);return this.isValid()&&a.isValid()?(n=Se(n)||"millisecond",n==="millisecond"?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(n).valueOf()):false}function Di(e,n){var a=V(e)?e:re(e);return this.isValid()&&a.isValid()?(n=Se(n)||"millisecond",n==="millisecond"?this.valueOf()<a.valueOf():this.clone().endOf(n).valueOf()<a.valueOf()):false}function Ci(e,n,a,o){var s=V(e)?e:re(e),u=V(n)?n:re(n);return this.isValid()&&s.isValid()&&u.isValid()?(o=o||"()",(o[0]==="("?this.isAfter(s,a):!this.isBefore(s,a))&&(o[1]===")"?this.isBefore(u,a):!this.isAfter(u,a))):false}function Ti(e,n){var a=V(e)?e:re(e),o;return this.isValid()&&a.isValid()?(n=Se(n)||"millisecond",n==="millisecond"?this.valueOf()===a.valueOf():(o=a.valueOf(),this.clone().startOf(n).valueOf()<=o&&o<=this.clone().endOf(n).valueOf())):false}function _i(e,n){return this.isSame(e,n)||this.isAfter(e,n)}function Mi(e,n){return this.isSame(e,n)||this.isBefore(e,n)}function Ai(e,n,a){var o,s,u;if(!this.isValid())return NaN;if(o=Nr(e,this),!o.isValid())return NaN;switch(s=(o.utcOffset()-this.utcOffset())*6e4,n=Se(n),n){case "year":u=nr(this,o)/12;break;case "month":u=nr(this,o);break;case "quarter":u=nr(this,o)/3;break;case "second":u=(this-o)/1e3;break;case "minute":u=(this-o)/6e4;break;case "hour":u=(this-o)/36e5;break;case "day":u=(this-o-s)/864e5;break;case "week":u=(this-o-s)/6048e5;break;default:u=this-o;}return a?u:Pe(u)}function nr(e,n){if(e.date()<n.date())return -nr(n,e);var a=(n.year()-e.year())*12+(n.month()-e.month()),o=e.clone().add(a,"months"),s,u;return n-o<0?(s=e.clone().add(a-1,"months"),u=(n-o)/(o-s)):(s=e.clone().add(a+1,"months"),u=(n-o)/(s-o)),-(a+u)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Oi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Fi(e){if(!this.isValid())return null;var n=e!==true,a=n?this.clone().utc():this;return a.year()<0||a.year()>9999?ct(a,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):oe(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ct(a,"Z")):ct(a,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ri(){if(!this.isValid())return "moment.invalid(/* "+this._i+" */)";var e="moment",n="",a,o,s,u;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),a="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",u=n+'[")]',this.format(a+o+s+u)}function Ii(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=ct(this,e);return this.localeData().postformat(n)}function Ei(e,n){return this.isValid()&&(V(e)&&e.isValid()||re(e).isValid())?Te({to:this,from:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Ni(e){return this.from(re(),e)}function Li(e,n){return this.isValid()&&(V(e)&&e.isValid()||re(e).isValid())?Te({from:this,to:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Yi(e){return this.to(re(),e)}function An(e){var n;return e===void 0?this._locale._abbr:(n=He(e),n!=null&&(this._locale=n),this)}var On=U("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 Fn(){return this._locale}var ar=1e3,mt=60*ar,or=60*mt,Rn=(365*400+97)*24*or;function pt(e,n){return (e%n+n)%n}function In(e,n,a){return e<100&&e>=0?new Date(e+400,n,a)-Rn:new Date(e,n,a).valueOf()}function En(e,n,a){return e<100&&e>=0?Date.UTC(e+400,n,a)-Rn:Date.UTC(e,n,a)}function Vi(e){var n,a;if(e=Se(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?En:In,e){case "year":n=a(this.year(),0,1);break;case "quarter":n=a(this.year(),this.month()-this.month()%3,1);break;case "month":n=a(this.year(),this.month(),1);break;case "week":n=a(this.year(),this.month(),this.date()-this.weekday());break;case "isoWeek":n=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case "day":case "date":n=a(this.year(),this.month(),this.date());break;case "hour":n=this._d.valueOf(),n-=pt(n+(this._isUTC?0:this.utcOffset()*mt),or);break;case "minute":n=this._d.valueOf(),n-=pt(n,mt);break;case "second":n=this._d.valueOf(),n-=pt(n,ar);break}return this._d.setTime(n),t.updateOffset(this,true),this}function Bi(e){var n,a;if(e=Se(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?En:In,e){case "year":n=a(this.year()+1,0,1)-1;break;case "quarter":n=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case "month":n=a(this.year(),this.month()+1,1)-1;break;case "week":n=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case "isoWeek":n=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case "day":case "date":n=a(this.year(),this.month(),this.date()+1)-1;break;case "hour":n=this._d.valueOf(),n+=or-pt(n+(this._isUTC?0:this.utcOffset()*mt),or)-1;break;case "minute":n=this._d.valueOf(),n+=mt-pt(n,mt)-1;break;case "second":n=this._d.valueOf(),n+=ar-pt(n,ar)-1;break}return this._d.setTime(n),t.updateOffset(this,true),this}function Hi(){return this._d.valueOf()-(this._offset||0)*6e4}function Ui(){return Math.floor(this.valueOf()/1e3)}function Wi(){return new Date(this.valueOf())}function zi(){var e=this;return [e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Gi(){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 ji(){return this.isValid()?this.toISOString():null}function $i(){return T(this)}function qi(){return S({},m(this))}function Ki(){return m(this).overflow}function Xi(){return {input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}O("N",0,0,"eraAbbr"),O("NN",0,0,"eraAbbr"),O("NNN",0,0,"eraAbbr"),O("NNNN",0,0,"eraName"),O("NNNNN",0,0,"eraNarrow"),O("y",["y",1],"yo","eraYear"),O("y",["yy",2],0,"eraYear"),O("y",["yyy",3],0,"eraYear"),O("y",["yyyy",4],0,"eraYear"),A("N",Yr),A("NN",Yr),A("NNN",Yr),A("NNNN",ss),A("NNNNN",ls),Q(["N","NN","NNN","NNNN","NNNNN"],function(e,n,a,o){var s=a._locale.erasParse(e,o,a._strict);s?m(a).era=s:m(a).invalidEra=e;}),A("y",ut),A("yy",ut),A("yyy",ut),A("yyyy",ut),A("yo",cs),Q(["y","yy","yyy","yyyy"],pe),Q(["yo"],function(e,n,a,o){var s;a._locale._eraYearOrdinalRegex&&(s=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?n[pe]=a._locale.eraYearOrdinalParse(e,s):n[pe]=parseInt(e,10);});function Zi(e,n){var a,o,s,u=this._eras||He("en")._eras;for(a=0,o=u.length;a<o;++a)switch(typeof u[a].since==="string"&&(s=t(u[a].since).startOf("day"),u[a].since=s.valueOf()),typeof u[a].until){case "undefined":u[a].until=1/0;break;case "string":s=t(u[a].until).startOf("day").valueOf(),u[a].until=s.valueOf();break}return u}function Ji(e,n,a){var o,s,u=this.eras(),g,M,N;for(e=e.toUpperCase(),o=0,s=u.length;o<s;++o)if(g=u[o].name.toUpperCase(),M=u[o].abbr.toUpperCase(),N=u[o].narrow.toUpperCase(),a)switch(n){case "N":case "NN":case "NNN":if(M===e)return u[o];break;case "NNNN":if(g===e)return u[o];break;case "NNNNN":if(N===e)return u[o];break}else if([g,M,N].indexOf(e)>=0)return u[o]}function Qi(e,n){var a=e.since<=e.until?1:-1;return n===void 0?t(e.since).year():t(e.since).year()+(n-e.offset)*a}function es(){var e,n,a,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(a=this.clone().startOf("day").valueOf(),o[e].since<=a&&a<=o[e].until||o[e].until<=a&&a<=o[e].since)return o[e].name;return ""}function ts(){var e,n,a,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(a=this.clone().startOf("day").valueOf(),o[e].since<=a&&a<=o[e].until||o[e].until<=a&&a<=o[e].since)return o[e].narrow;return ""}function rs(){var e,n,a,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(a=this.clone().startOf("day").valueOf(),o[e].since<=a&&a<=o[e].until||o[e].until<=a&&a<=o[e].since)return o[e].abbr;return ""}function ns(){var e,n,a,o,s=this.localeData().eras();for(e=0,n=s.length;e<n;++e)if(a=s[e].since<=s[e].until?1:-1,o=this.clone().startOf("day").valueOf(),s[e].since<=o&&o<=s[e].until||s[e].until<=o&&o<=s[e].since)return (this.year()-t(s[e].since).year())*a+s[e].offset;return this.year()}function as(e){return d(this,"_erasNameRegex")||Vr.call(this),e?this._erasNameRegex:this._erasRegex}function os(e){return d(this,"_erasAbbrRegex")||Vr.call(this),e?this._erasAbbrRegex:this._erasRegex}function is(e){return d(this,"_erasNarrowRegex")||Vr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Yr(e,n){return n.erasAbbrRegex(e)}function ss(e,n){return n.erasNameRegex(e)}function ls(e,n){return n.erasNarrowRegex(e)}function cs(e,n){return n._eraYearOrdinalRegex||ut}function Vr(){var e=[],n=[],a=[],o=[],s,u,g,M,N,G=this.eras();for(s=0,u=G.length;s<u;++s)g=Le(G[s].name),M=Le(G[s].abbr),N=Le(G[s].narrow),n.push(g),e.push(M),a.push(N),o.push(g),o.push(M),o.push(N);this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i");}O(0,["gg",2],0,function(){return this.weekYear()%100}),O(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ir(e,n){O(0,[e,e.length],0,n);}ir("gggg","weekYear"),ir("ggggg","weekYear"),ir("GGGG","isoWeekYear"),ir("GGGGG","isoWeekYear"),A("G",qt),A("g",qt),A("GG",te,ve),A("gg",te,ve),A("GGGG",kr,xr),A("gggg",kr,xr),A("GGGGG",$t,Gt),A("ggggg",$t,Gt),Dt(["gggg","ggggg","GGGG","GGGGG"],function(e,n,a,o){n[o.substr(0,2)]=W(e);}),Dt(["gg","GG"],function(e,n,a,o){n[o]=t.parseTwoDigitYear(e);});function us(e){return Nn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function ds(e){return Nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function hs(){return Be(this.year(),1,4)}function fs(){return Be(this.isoWeekYear(),1,4)}function ms(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)}function ps(){var e=this.localeData()._week;return Be(this.weekYear(),e.dow,e.doy)}function Nn(e,n,a,o,s){var u;return e==null?Mt(this,o,s).year:(u=Be(e,o,s),n>u&&(n=u),gs.call(this,e,n,a,o,s))}function gs(e,n,a,o,s){var u=fn(e,n,a,o,s),g=_t(u.year,0,u.dayOfYear);return this.year(g.getUTCFullYear()),this.month(g.getUTCMonth()),this.date(g.getUTCDate()),this}O("Q",0,"Qo","quarter"),A("Q",tn),Q("Q",function(e,n){n[Ye]=(W(e)-1)*3;});function ys(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}O("D",["DD",2],"Do","date"),A("D",te,dt),A("DD",te,ve),A("Do",function(e,n){return e?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient}),Q(["D","DD"],Re),Q("Do",function(e,n){n[Re]=W(e.match(te)[0]);});var Ln=ht("Date",true);O("DDD",["DDDD",3],"DDDo","dayOfYear"),A("DDD",jt),A("DDDD",rn),Q(["DDD","DDDD"],function(e,n,a){a._dayOfYear=W(e);});function bs(e){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?n:this.add(e-n,"d")}O("m",["mm",2],0,"minute"),A("m",te,Sr),A("mm",te,ve),Q(["m","mm"],Ce);var ws=ht("Minutes",false);O("s",["ss",2],0,"second"),A("s",te,Sr),A("ss",te,ve),Q(["s","ss"],Ve);var vs=ht("Seconds",false);O("S",0,0,function(){return ~~(this.millisecond()/100)}),O(0,["SS",2],0,function(){return ~~(this.millisecond()/10)}),O(0,["SSS",3],0,"millisecond"),O(0,["SSSS",4],0,function(){return this.millisecond()*10}),O(0,["SSSSS",5],0,function(){return this.millisecond()*100}),O(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),O(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),O(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),O(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),A("S",jt,tn),A("SS",jt,ve),A("SSS",jt,rn);var Ze,Yn;for(Ze="SSSS";Ze.length<=9;Ze+="S")A(Ze,ut);function xs(e,n){n[nt]=W(("0."+e)*1e3);}for(Ze="S";Ze.length<=9;Ze+="S")Q(Ze,xs);Yn=ht("Milliseconds",false),O("z",0,0,"zoneAbbr"),O("zz",0,0,"zoneName");function ks(){return this._isUTC?"UTC":""}function Ss(){return this._isUTC?"Coordinated Universal Time":""}var P=$.prototype;P.add=pi,P.calendar=ki,P.clone=Si,P.diff=Ai,P.endOf=Bi,P.format=Ii,P.from=Ei,P.fromNow=Ni,P.to=Li,P.toNow=Yi,P.get=Fa,P.invalidAt=Ki,P.isAfter=Pi,P.isBefore=Di,P.isBetween=Ci,P.isSame=Ti,P.isSameOrAfter=_i,P.isSameOrBefore=Mi,P.isValid=$i,P.lang=On,P.locale=An,P.localeData=Fn,P.max=$o,P.min=jo,P.parsingFlags=qi,P.set=Ra,P.startOf=Vi,P.subtract=gi,P.toArray=zi,P.toObject=Gi,P.toDate=Wi,P.toISOString=Fi,P.inspect=Ri,typeof Symbol<"u"&&Symbol.for!=null&&(P[Symbol.for("nodejs.util.inspect.custom")]=function(){return "Moment<"+this.format()+">"}),P.toJSON=ji,P.toString=Oi,P.unix=Ui,P.valueOf=Hi,P.creationData=Xi,P.eraName=es,P.eraNarrow=ts,P.eraAbbr=rs,P.eraYear=ns,P.year=on,P.isLeapYear=Oa,P.weekYear=us,P.isoWeekYear=ds,P.quarter=P.quarters=ys,P.month=dn,P.daysInMonth=Ua,P.week=P.weeks=Xa,P.isoWeek=P.isoWeeks=Za,P.weeksInYear=ms,P.weeksInWeekYear=ps,P.isoWeeksInYear=hs,P.isoWeeksInISOWeekYear=fs,P.date=Ln,P.day=P.days=uo,P.weekday=ho,P.isoWeekday=fo,P.dayOfYear=bs,P.hour=P.hours=vo,P.minute=P.minutes=ws,P.second=P.seconds=vs,P.millisecond=P.milliseconds=Yn,P.utcOffset=ri,P.utc=ai,P.local=oi,P.parseZone=ii,P.hasAlignedHourOffset=si,P.isDST=li,P.isLocal=ui,P.isUtcOffset=di,P.isUtc=Dn,P.isUTC=Dn,P.zoneAbbr=ks,P.zoneName=Ss,P.dates=U("dates accessor is deprecated. Use date instead.",Ln),P.months=U("months accessor is deprecated. Use month instead",dn),P.years=U("years accessor is deprecated. Use year instead",on),P.zone=U("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ni),P.isDSTShifted=U("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ci);function Ps(e){return re(e*1e3)}function Ds(){return re.apply(null,arguments).parseZone()}function Vn(e){return e}var K=L.prototype;K.calendar=ke,K.longDateFormat=br,K.invalidDate=pa,K.ordinal=ba,K.preparse=Vn,K.postformat=Vn,K.relativeTime=va,K.pastFuture=xa,K.set=be,K.eras=Zi,K.erasParse=Ji,K.erasConvertYear=Qi,K.erasAbbrRegex=os,K.erasNameRegex=as,K.erasNarrowRegex=is,K.months=Ya,K.monthsShort=Va,K.monthsParse=Ha,K.monthsRegex=za,K.monthsShortRegex=Wa,K.week=ja,K.firstDayOfYear=Ka,K.firstDayOfWeek=qa,K.weekdays=oo,K.weekdaysMin=so,K.weekdaysShort=io,K.weekdaysParse=co,K.weekdaysRegex=mo,K.weekdaysShortRegex=po,K.weekdaysMinRegex=go,K.isPM=bo,K.meridiem=xo;function sr(e,n,a,o){var s=He(),u=D().set(o,n);return s[a](u,e)}function Bn(e,n,a){if(x(e)&&(n=e,e=void 0),e=e||"",n!=null)return sr(e,n,a,"month");var o,s=[];for(o=0;o<12;o++)s[o]=sr(e,o,a,"month");return s}function Br(e,n,a,o){typeof e=="boolean"?(x(n)&&(a=n,n=void 0),n=n||""):(n=e,a=n,e=false,x(n)&&(a=n,n=void 0),n=n||"");var s=He(),u=e?s._week.dow:0,g,M=[];if(a!=null)return sr(n,(a+u)%7,o,"day");for(g=0;g<7;g++)M[g]=sr(n,(g+u)%7,o,"day");return M}function Cs(e,n){return Bn(e,n,"months")}function Ts(e,n){return Bn(e,n,"monthsShort")}function _s(e,n,a){return Br(e,n,a,"weekdays")}function Ms(e,n,a){return Br(e,n,a,"weekdaysShort")}function As(e,n,a){return Br(e,n,a,"weekdaysMin")}Xe("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 n=e%10,a=W(e%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return e+a}}),t.lang=U("moment.lang is deprecated. Use moment.locale instead.",Xe),t.langData=U("moment.langData is deprecated. Use moment.localeData instead.",He);var Ue=Math.abs;function Os(){var e=this._data;return this._milliseconds=Ue(this._milliseconds),this._days=Ue(this._days),this._months=Ue(this._months),e.milliseconds=Ue(e.milliseconds),e.seconds=Ue(e.seconds),e.minutes=Ue(e.minutes),e.hours=Ue(e.hours),e.months=Ue(e.months),e.years=Ue(e.years),this}function Hn(e,n,a,o){var s=Te(n,a);return e._milliseconds+=o*s._milliseconds,e._days+=o*s._days,e._months+=o*s._months,e._bubble()}function Fs(e,n){return Hn(this,e,n,1)}function Rs(e,n){return Hn(this,e,n,-1)}function Un(e){return e<0?Math.floor(e):Math.ceil(e)}function Is(){var e=this._milliseconds,n=this._days,a=this._months,o=this._data,s,u,g,M,N;return e>=0&&n>=0&&a>=0||e<=0&&n<=0&&a<=0||(e+=Un(Hr(a)+n)*864e5,n=0,a=0),o.milliseconds=e%1e3,s=Pe(e/1e3),o.seconds=s%60,u=Pe(s/60),o.minutes=u%60,g=Pe(u/60),o.hours=g%24,n+=Pe(g/24),N=Pe(Wn(n)),a+=N,n-=Un(Hr(N)),M=Pe(a/12),a%=12,o.days=n,o.months=a,o.years=M,this}function Wn(e){return e*4800/146097}function Hr(e){return e*146097/4800}function Es(e){if(!this.isValid())return NaN;var n,a,o=this._milliseconds;if(e=Se(e),e==="month"||e==="quarter"||e==="year")switch(n=this._days+o/864e5,a=this._months+Wn(n),e){case "month":return a;case "quarter":return a/3;case "year":return a/12}else switch(n=this._days+Math.round(Hr(this._months)),e){case "week":return n/7+o/6048e5;case "day":return n+o/864e5;case "hour":return n*24+o/36e5;case "minute":return n*1440+o/6e4;case "second":return n*86400+o/1e3;case "millisecond":return Math.floor(n*864e5)+o;default:throw new Error("Unknown unit "+e)}}function We(e){return function(){return this.as(e)}}var zn=We("ms"),Ns=We("s"),Ls=We("m"),Ys=We("h"),Vs=We("d"),Bs=We("w"),Hs=We("M"),Us=We("Q"),Ws=We("y"),zs=zn;function Gs(){return Te(this)}function js(e){return e=Se(e),this.isValid()?this[e+"s"]():NaN}function ot(e){return function(){return this.isValid()?this._data[e]:NaN}}var $s=ot("milliseconds"),qs=ot("seconds"),Ks=ot("minutes"),Xs=ot("hours"),Zs=ot("days"),Js=ot("months"),Qs=ot("years");function el(){return Pe(this.days()/7)}var ze=Math.round,gt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function tl(e,n,a,o,s){return s.relativeTime(n||1,!!a,e,o)}function rl(e,n,a,o){var s=Te(e).abs(),u=ze(s.as("s")),g=ze(s.as("m")),M=ze(s.as("h")),N=ze(s.as("d")),G=ze(s.as("M")),ye=ze(s.as("w")),Ge=ze(s.as("y")),Je=u<=a.ss&&["s",u]||u<a.s&&["ss",u]||g<=1&&["m"]||g<a.m&&["mm",g]||M<=1&&["h"]||M<a.h&&["hh",M]||N<=1&&["d"]||N<a.d&&["dd",N];return a.w!=null&&(Je=Je||ye<=1&&["w"]||ye<a.w&&["ww",ye]),Je=Je||G<=1&&["M"]||G<a.M&&["MM",G]||Ge<=1&&["y"]||["yy",Ge],Je[2]=n,Je[3]=+e>0,Je[4]=o,tl.apply(null,Je)}function nl(e){return e===void 0?ze:typeof e=="function"?(ze=e,true):false}function al(e,n){return gt[e]===void 0?false:n===void 0?gt[e]:(gt[e]=n,e==="s"&&(gt.ss=n-1),true)}function ol(e,n){if(!this.isValid())return this.localeData().invalidDate();var a=false,o=gt,s,u;return typeof e=="object"&&(n=e,e=false),typeof e=="boolean"&&(a=e),typeof n=="object"&&(o=Object.assign({},gt,n),n.s!=null&&n.ss==null&&(o.ss=n.s-1)),s=this.localeData(),u=rl(this,!a,o,s),a&&(u=s.pastFuture(+this,u)),s.postformat(u)}var Ur=Math.abs;function yt(e){return (e>0)-(e<0)||+e}function lr(){if(!this.isValid())return this.localeData().invalidDate();var e=Ur(this._milliseconds)/1e3,n=Ur(this._days),a=Ur(this._months),o,s,u,g,M=this.asSeconds(),N,G,ye,Ge;return M?(o=Pe(e/60),s=Pe(o/60),e%=60,o%=60,u=Pe(a/12),a%=12,g=e?e.toFixed(3).replace(/\.?0+$/,""):"",N=M<0?"-":"",G=yt(this._months)!==yt(M)?"-":"",ye=yt(this._days)!==yt(M)?"-":"",Ge=yt(this._milliseconds)!==yt(M)?"-":"",N+"P"+(u?G+u+"Y":"")+(a?G+a+"M":"")+(n?ye+n+"D":"")+(s||o||e?"T":"")+(s?Ge+s+"H":"")+(o?Ge+o+"M":"")+(e?Ge+g+"S":"")):"P0D"}var j=tr.prototype;j.isValid=Jo,j.abs=Os,j.add=Fs,j.subtract=Rs,j.as=Es,j.asMilliseconds=zn,j.asSeconds=Ns,j.asMinutes=Ls,j.asHours=Ys,j.asDays=Vs,j.asWeeks=Bs,j.asMonths=Hs,j.asQuarters=Us,j.asYears=Ws,j.valueOf=zs,j._bubble=Is,j.clone=Gs,j.get=js,j.milliseconds=$s,j.seconds=qs,j.minutes=Ks,j.hours=Xs,j.days=Zs,j.weeks=el,j.months=Js,j.years=Qs,j.humanize=ol,j.toISOString=lr,j.toString=lr,j.toJSON=lr,j.locale=An,j.localeData=Fn,j.toIsoString=U("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lr),j.lang=On,O("X",0,0,"unix"),O("x",0,0,"valueOf"),A("x",qt),A("X",Da),Q("X",function(e,n,a){a._d=new Date(parseFloat(e)*1e3);}),Q("x",function(e,n,a){a._d=new Date(W(e));});return t.version="2.30.1",r(re),t.fn=P,t.min=qo,t.max=Ko,t.now=Xo,t.utc=D,t.unix=Ps,t.months=Cs,t.isDate=w,t.locale=Xe,t.invalid=Y,t.duration=Te,t.isMoment=V,t.weekdays=_s,t.parseZone=Ds,t.localeData=He,t.isDuration=rr,t.monthsShort=Ts,t.weekdaysMin=As,t.defineLocale=Mr,t.updateLocale=Do,t.locales=Co,t.weekdaysShort=Ms,t.normalizeUnits=Se,t.relativeTimeRounding=nl,t.relativeTimeThreshold=al,t.calendarFormat=xi,t.prototype=P,t.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"},t}));});function ge(i){return i<0?-1:i===0?0:1}function it(i,t,r){return (1-r)*i+r*t}function qn(i,t,r){return r<i?i:r>t?t:r}function ue(i,t,r){return r<i?i:r>t?t:r}function bt(i){return i=i%360,i<0&&(i=i+360),i}function he(i){return i=i%360,i<0&&(i=i+360),i}function Rt(i,t){let r=i[0]*t[0][0]+i[1]*t[0][1]+i[2]*t[0][2],l=i[0]*t[1][0]+i[1]*t[1][1]+i[2]*t[1][2],c=i[0]*t[2][0]+i[1]*t[2][1]+i[2]*t[2][2];return [r,l,c]}var Kn=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],fl=[[3.2413774792388685,-1.5376652402851851,-0.49885366846268053],[-0.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-0.20395524564742123,1.0571799111220335]],Xn=[95.047,100,108.883];function cr(i,t,r){return (255<<24|(i&255)<<16|(t&255)<<8|r&255)>>>0}function zr(i){let t=st(i[0]),r=st(i[1]),l=st(i[2]);return cr(t,r,l)}function Et(i){return i>>16&255}function Nt(i){return i>>8&255}function Lt(i){return i&255}function Zn(i,t,r){let l=fl,c=l[0][0]*i+l[0][1]*t+l[0][2]*r,d=l[1][0]*i+l[1][1]*t+l[1][2]*r,h=l[2][0]*i+l[2][1]*t+l[2][2]*r,p=st(c),x=st(d),w=st(h);return cr(p,x,w)}function ml(i){let t=Ie(Et(i)),r=Ie(Nt(i)),l=Ie(Lt(i));return Rt([t,r,l],Kn)}function Gr(i){let t=Ie(Et(i)),r=Ie(Nt(i)),l=Ie(Lt(i)),c=Kn,d=c[0][0]*t+c[0][1]*r+c[0][2]*l,h=c[1][0]*t+c[1][1]*r+c[1][2]*l,p=c[2][0]*t+c[2][1]*r+c[2][2]*l,x=Xn,w=d/x[0],k=h/x[1],S=p/x[2],D=It(w),C=It(k),m=It(S),v=116*C-16,T=500*(D-C),Y=200*(C-m);return [v,T,Y]}function Jn(i){let t=_e(i),r=st(t);return cr(r,r,r)}function ur(i){let t=ml(i)[1];return 116*It(t/100)-16}function _e(i){return 100*pl((i+16)/116)}function Yt(i){return It(i/100)*116-16}function Ie(i){let t=i/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}function st(i){let t=i/100,r=0;return t<=.0031308?r=t*12.92:r=1.055*Math.pow(t,1/2.4)-.055,qn(0,255,Math.round(r*255))}function Qn(){return Xn}function It(i){let t=.008856451679035631,r=24389/27;return i>t?Math.pow(i,1/3):(r*i+16)/116}function pl(i){let t=.008856451679035631,r=24389/27,l=i*i*i;return l>t?l:(116*i-16)/r}var xe=class i{static make(t=Qn(),r=200/Math.PI*_e(50)/100,l=50,c=2,d=false){let h=t,p=h[0]*.401288+h[1]*.650173+h[2]*-0.051461,x=h[0]*-0.250268+h[1]*1.204414+h[2]*.045854,w=h[0]*-2079e-6+h[1]*.048952+h[2]*.953127,k=.8+c/10,S=k>=.9?it(.59,.69,(k-.9)*10):it(.525,.59,(k-.8)*10),D=d?1:k*(1-1/3.6*Math.exp((-r-42)/92));D=D>1?1:D<0?0:D;let C=k,m=[D*(100/p)+1-D,D*(100/x)+1-D,D*(100/w)+1-D],v=1/(5*r+1),T=v*v*v*v,Y=1-T,H=T*r+.1*Y*Y*Math.cbrt(5*r),X=_e(l)/t[1],Z=1.48+Math.sqrt(X),$=.725/Math.pow(X,.2),V=$,z=[Math.pow(H*m[0]*p/100,.42),Math.pow(H*m[1]*x/100,.42),Math.pow(H*m[2]*w/100,.42)],U=[400*z[0]/(z[0]+27.13),400*z[1]/(z[1]+27.13),400*z[2]/(z[2]+27.13)],ne=(2*U[0]+U[1]+.05*U[2])*$;return new i(X,ne,$,V,S,C,m,H,Math.pow(H,.25),Z)}constructor(t,r,l,c,d,h,p,x,w,k){this.n=t,this.aw=r,this.nbb=l,this.ncb=c,this.c=d,this.nc=h,this.rgbD=p,this.fl=x,this.fLRoot=w,this.z=k;}};xe.DEFAULT=xe.make();var Ee=class i{constructor(t,r,l,c,d,h,p,x,w){this.hue=t,this.chroma=r,this.j=l,this.q=c,this.m=d,this.s=h,this.jstar=p,this.astar=x,this.bstar=w;}distance(t){let r=this.jstar-t.jstar,l=this.astar-t.astar,c=this.bstar-t.bstar,d=Math.sqrt(r*r+l*l+c*c);return 1.41*Math.pow(d,.63)}static fromInt(t){return i.fromIntInViewingConditions(t,xe.DEFAULT)}static fromIntInViewingConditions(t,r){let l=(t&16711680)>>16,c=(t&65280)>>8,d=t&255,h=Ie(l),p=Ie(c),x=Ie(d),w=.41233895*h+.35762064*p+.18051042*x,k=.2126*h+.7152*p+.0722*x,S=.01932141*h+.11916382*p+.95034478*x,D=.401288*w+.650173*k-.051461*S,C=-0.250268*w+1.204414*k+.045854*S,m=-2079e-6*w+.048952*k+.953127*S,v=r.rgbD[0]*D,T=r.rgbD[1]*C,Y=r.rgbD[2]*m,H=Math.pow(r.fl*Math.abs(v)/100,.42),X=Math.pow(r.fl*Math.abs(T)/100,.42),Z=Math.pow(r.fl*Math.abs(Y)/100,.42),$=ge(v)*400*H/(H+27.13),V=ge(T)*400*X/(X+27.13),z=ge(Y)*400*Z/(Z+27.13),U=(11*$+-12*V+z)/11,ne=($+V-2*z)/9,ee=(20*$+20*V+21*z)/20,oe=(40*$+20*V+z)/20,we=Math.atan2(ne,U)*180/Math.PI,L=he(we),me=L*Math.PI/180,Oe=oe*r.nbb,ke=100*Math.pow(Oe/r.aw,r.c*r.z),fe=4/r.c*Math.sqrt(ke/100)*(r.aw+4)*r.fLRoot,tt=L<20.14?L+360:L,Ke=.25*(Math.cos(tt*Math.PI/180+2)+3.8),Fe=5e4/13*Ke*r.nc*r.ncb*Math.sqrt(U*U+ne*ne)/(ee+.305),O=Math.pow(Fe,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),Ht=O*Math.sqrt(ke/100),Ut=Ht*r.fLRoot,ct=50*Math.sqrt(O*r.c/(r.aw+4)),Wt=(1+100*.007)*ke/(1+.007*ke),zt=1/.0228*Math.log(1+.0228*Ut),br=zt*Math.cos(me),wr=zt*Math.sin(me);return new i(L,Ht,ke,fe,Ut,ct,Wt,br,wr)}static fromJch(t,r,l){return i.fromJchInViewingConditions(t,r,l,xe.DEFAULT)}static fromJchInViewingConditions(t,r,l,c){let d=4/c.c*Math.sqrt(t/100)*(c.aw+4)*c.fLRoot,h=r*c.fLRoot,p=r/Math.sqrt(t/100),x=50*Math.sqrt(p*c.c/(c.aw+4)),w=l*Math.PI/180,k=(1+100*.007)*t/(1+.007*t),S=1/.0228*Math.log(1+.0228*h),D=S*Math.cos(w),C=S*Math.sin(w);return new i(l,r,t,d,h,x,k,D,C)}static fromUcs(t,r,l){return i.fromUcsInViewingConditions(t,r,l,xe.DEFAULT)}static fromUcsInViewingConditions(t,r,l,c){let d=r,h=l,p=Math.sqrt(d*d+h*h),w=(Math.exp(p*.0228)-1)/.0228/c.fLRoot,k=Math.atan2(h,d)*(180/Math.PI);k<0&&(k+=360);let S=t/(1-(t-100)*.007);return i.fromJchInViewingConditions(S,w,k,c)}toInt(){return this.viewed(xe.DEFAULT)}viewed(t){let r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),l=Math.pow(r/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),c=this.hue*Math.PI/180,d=.25*(Math.cos(c+2)+3.8),h=t.aw*Math.pow(this.j/100,1/t.c/t.z),p=d*(5e4/13)*t.nc*t.ncb,x=h/t.nbb,w=Math.sin(c),k=Math.cos(c),S=23*(x+.305)*l/(23*p+11*l*k+108*l*w),D=S*k,C=S*w,m=(460*x+451*D+288*C)/1403,v=(460*x-891*D-261*C)/1403,T=(460*x-220*D-6300*C)/1403,Y=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),H=ge(m)*(100/t.fl)*Math.pow(Y,1/.42),X=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),Z=ge(v)*(100/t.fl)*Math.pow(X,1/.42),$=Math.max(0,27.13*Math.abs(T)/(400-Math.abs(T))),V=ge(T)*(100/t.fl)*Math.pow($,1/.42),z=H/t.rgbD[0],U=Z/t.rgbD[1],ne=V/t.rgbD[2],ee=1.86206786*z-1.01125463*U+.14918677*ne,oe=.38752654*z+.62144744*U-.00897398*ne,be=-0.0158415*z-.03412294*U+1.04996444*ne;return Zn(ee,oe,be)}static fromXyzInViewingConditions(t,r,l,c){let d=.401288*t+.650173*r-.051461*l,h=-0.250268*t+1.204414*r+.045854*l,p=-2079e-6*t+.048952*r+.953127*l,x=c.rgbD[0]*d,w=c.rgbD[1]*h,k=c.rgbD[2]*p,S=Math.pow(c.fl*Math.abs(x)/100,.42),D=Math.pow(c.fl*Math.abs(w)/100,.42),C=Math.pow(c.fl*Math.abs(k)/100,.42),m=ge(x)*400*S/(S+27.13),v=ge(w)*400*D/(D+27.13),T=ge(k)*400*C/(C+27.13),Y=(11*m+-12*v+T)/11,H=(m+v-2*T)/9,X=(20*m+20*v+21*T)/20,Z=(40*m+20*v+T)/20,V=Math.atan2(H,Y)*180/Math.PI,z=V<0?V+360:V>=360?V-360:V,U=z*Math.PI/180,ne=Z*c.nbb,ee=100*Math.pow(ne/c.aw,c.c*c.z),oe=4/c.c*Math.sqrt(ee/100)*(c.aw+4)*c.fLRoot,be=z<20.14?z+360:z,we=1/4*(Math.cos(be*Math.PI/180+2)+3.8),me=5e4/13*we*c.nc*c.ncb*Math.sqrt(Y*Y+H*H)/(X+.305),Oe=Math.pow(me,.9)*Math.pow(1.64-Math.pow(.29,c.n),.73),ke=Oe*Math.sqrt(ee/100),fe=ke*c.fLRoot,tt=50*Math.sqrt(Oe*c.c/(c.aw+4)),Ke=(1+100*.007)*ee/(1+.007*ee),rt=Math.log(1+.0228*fe)/.0228,Fe=rt*Math.cos(U),O=rt*Math.sin(U);return new i(z,ke,ee,oe,fe,tt,Ke,Fe,O)}xyzInViewingConditions(t){let r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),l=Math.pow(r/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),c=this.hue*Math.PI/180,d=.25*(Math.cos(c+2)+3.8),h=t.aw*Math.pow(this.j/100,1/t.c/t.z),p=d*(5e4/13)*t.nc*t.ncb,x=h/t.nbb,w=Math.sin(c),k=Math.cos(c),S=23*(x+.305)*l/(23*p+11*l*k+108*l*w),D=S*k,C=S*w,m=(460*x+451*D+288*C)/1403,v=(460*x-891*D-261*C)/1403,T=(460*x-220*D-6300*C)/1403,Y=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),H=ge(m)*(100/t.fl)*Math.pow(Y,1/.42),X=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),Z=ge(v)*(100/t.fl)*Math.pow(X,1/.42),$=Math.max(0,27.13*Math.abs(T)/(400-Math.abs(T))),V=ge(T)*(100/t.fl)*Math.pow($,1/.42),z=H/t.rgbD[0],U=Z/t.rgbD[1],ne=V/t.rgbD[2],ee=1.86206786*z-1.01125463*U+.14918677*ne,oe=.38752654*z+.62144744*U-.00897398*ne,be=-0.0158415*z-.03412294*U+1.04996444*ne;return [ee,oe,be]}};var Ae=class i{static sanitizeRadians(t){return (t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){let r=t/100,l=0;return r<=.0031308?l=r*12.92:l=1.055*Math.pow(r,1/2.4)-.055,l*255}static chromaticAdaptation(t){let r=Math.pow(Math.abs(t),.42);return ge(t)*400*r/(r+27.13)}static hueOf(t){let r=Rt(t,i.SCALED_DISCOUNT_FROM_LINRGB),l=i.chromaticAdaptation(r[0]),c=i.chromaticAdaptation(r[1]),d=i.chromaticAdaptation(r[2]),h=(11*l+-12*c+d)/11,p=(l+c-2*d)/9;return Math.atan2(p,h)}static areInCyclicOrder(t,r,l){let c=i.sanitizeRadians(r-t),d=i.sanitizeRadians(l-t);return c<d}static intercept(t,r,l){return (r-t)/(l-t)}static lerpPoint(t,r,l){return [t[0]+(l[0]-t[0])*r,t[1]+(l[1]-t[1])*r,t[2]+(l[2]-t[2])*r]}static setCoordinate(t,r,l,c){let d=i.intercept(t[c],r,l[c]);return i.lerpPoint(t,d,l)}static isBounded(t){return 0<=t&&t<=100}static nthVertex(t,r){let l=i.Y_FROM_LINRGB[0],c=i.Y_FROM_LINRGB[1],d=i.Y_FROM_LINRGB[2],h=r%4<=1?0:100,p=r%2===0?0:100;if(r<4){let x=h,w=p,k=(t-x*c-w*d)/l;return i.isBounded(k)?[k,x,w]:[-1,-1,-1]}else if(r<8){let x=h,w=p,k=(t-w*l-x*d)/c;return i.isBounded(k)?[w,k,x]:[-1,-1,-1]}else {let x=h,w=p,k=(t-x*l-w*c)/d;return i.isBounded(k)?[x,w,k]:[-1,-1,-1]}}static bisectToSegment(t,r){let l=[-1,-1,-1],c=l,d=0,h=0,p=false,x=true;for(let w=0;w<12;w++){let k=i.nthVertex(t,w);if(k[0]<0)continue;let S=i.hueOf(k);if(!p){l=k,c=k,d=S,h=S,p=true;continue}(x||i.areInCyclicOrder(d,S,h))&&(x=false,i.areInCyclicOrder(d,r,S)?(c=k,h=S):(l=k,d=S));}return [l,c]}static midpoint(t,r){return [(t[0]+r[0])/2,(t[1]+r[1])/2,(t[2]+r[2])/2]}static criticalPlaneBelow(t){return Math.floor(t-.5)}static criticalPlaneAbove(t){return Math.ceil(t-.5)}static bisectToLimit(t,r){let l=i.bisectToSegment(t,r),c=l[0],d=i.hueOf(c),h=l[1];for(let p=0;p<3;p++)if(c[p]!==h[p]){let x=-1,w=255;c[p]<h[p]?(x=i.criticalPlaneBelow(i.trueDelinearized(c[p])),w=i.criticalPlaneAbove(i.trueDelinearized(h[p]))):(x=i.criticalPlaneAbove(i.trueDelinearized(c[p])),w=i.criticalPlaneBelow(i.trueDelinearized(h[p])));for(let k=0;k<8&&!(Math.abs(w-x)<=1);k++){let S=Math.floor((x+w)/2),D=i.CRITICAL_PLANES[S],C=i.setCoordinate(c,D,h,p),m=i.hueOf(C);i.areInCyclicOrder(d,r,m)?(h=C,w=S):(c=C,d=m,x=S);}}return i.midpoint(c,h)}static inverseChromaticAdaptation(t){let r=Math.abs(t),l=Math.max(0,27.13*r/(400-r));return ge(t)*Math.pow(l,1/.42)}static findResultByJ(t,r,l){let c=Math.sqrt(l)*11,d=xe.DEFAULT,h=1/Math.pow(1.64-Math.pow(.29,d.n),.73),x=.25*(Math.cos(t+2)+3.8)*(5e4/13)*d.nc*d.ncb,w=Math.sin(t),k=Math.cos(t);for(let S=0;S<5;S++){let D=c/100,C=r===0||c===0?0:r/Math.sqrt(D),m=Math.pow(C*h,1/.9),T=d.aw*Math.pow(D,1/d.c/d.z)/d.nbb,Y=23*(T+.305)*m/(23*x+11*m*k+108*m*w),H=Y*k,X=Y*w,Z=(460*T+451*H+288*X)/1403,$=(460*T-891*H-261*X)/1403,V=(460*T-220*H-6300*X)/1403,z=i.inverseChromaticAdaptation(Z),U=i.inverseChromaticAdaptation($),ne=i.inverseChromaticAdaptation(V),ee=Rt([z,U,ne],i.LINRGB_FROM_SCALED_DISCOUNT);if(ee[0]<0||ee[1]<0||ee[2]<0)return 0;let oe=i.Y_FROM_LINRGB[0],be=i.Y_FROM_LINRGB[1],we=i.Y_FROM_LINRGB[2],L=oe*ee[0]+be*ee[1]+we*ee[2];if(L<=0)return 0;if(S===4||Math.abs(L-l)<.002)return ee[0]>100.01||ee[1]>100.01||ee[2]>100.01?0:zr(ee);c=c-(L-l)*c/(2*L);}return 0}static solveToInt(t,r,l){if(r<1e-4||l<1e-4||l>99.9999)return Jn(l);t=he(t);let c=t/180*Math.PI,d=_e(l),h=i.findResultByJ(c,r,d);if(h!==0)return h;let p=i.bisectToLimit(d,c);return zr(p)}static solveToCam(t,r,l){return Ee.fromInt(i.solveToInt(t,r,l))}};Ae.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];Ae.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];Ae.Y_FROM_LINRGB=[.2126,.7152,.0722];Ae.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];var F=class i{static from(t,r,l){return new i(Ae.solveToInt(t,r,l))}static fromInt(t){return new i(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(Ae.solveToInt(t,this.internalChroma,this.internalTone));}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(Ae.solveToInt(this.internalHue,t,this.internalTone));}get tone(){return this.internalTone}set tone(t){this.setInternalState(Ae.solveToInt(this.internalHue,this.internalChroma,t));}setValue(t,r){this[t]=r;}toString(){return `HCT(${this.hue.toFixed(0)}, ${this.chroma.toFixed(0)}, ${this.tone.toFixed(0)})`}static isBlue(t){return t>=250&&t<270}static isYellow(t){return t>=105&&t<125}static isCyan(t){return t>=170&&t<207}constructor(t){this.argb=t;let r=Ee.fromInt(t);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=ur(t),this.argb=t;}setInternalState(t){let r=Ee.fromInt(t);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=ur(t),this.argb=t;}inViewingConditions(t){let l=Ee.fromInt(this.toInt()).xyzInViewingConditions(t),c=Ee.fromXyzInViewingConditions(l[0],l[1],l[2],xe.make());return i.from(c.hue,c.chroma,Yt(l[1]))}};var le=class i{static ratioOfTones(t,r){return t=ue(0,100,t),r=ue(0,100,r),i.ratioOfYs(_e(t),_e(r))}static ratioOfYs(t,r){let l=t>r?t:r,c=l===r?t:r;return (l+5)/(c+5)}static lighter(t,r){if(t<0||t>100)return -1;let l=_e(t),c=r*(l+5)-5,d=i.ratioOfYs(c,l),h=Math.abs(d-r);if(d<r&&h>.04)return -1;let p=Yt(c)+.4;return p<0||p>100?-1:p}static darker(t,r){if(t<0||t>100)return -1;let l=_e(t),c=(l+5)/r-5,d=i.ratioOfYs(l,c),h=Math.abs(d-r);if(d<r&&h>.04)return -1;let p=Yt(c)-.4;return p<0||p>100?-1:p}static lighterUnsafe(t,r){let l=i.lighter(t,r);return l<0?100:l}static darkerUnsafe(t,r){let l=i.darker(t,r);return l<0?0:l}};var lt=class i{static isDisliked(t){let r=Math.round(t.hue)>=90&&Math.round(t.hue)<=111,l=Math.round(t.chroma)>16,c=Math.round(t.tone)<65;return r&&l&&c}static fixIfDisliked(t){return i.isDisliked(t)?F.from(t.hue,t.chroma,70):t}};function gl(i,t,r){if(i.name!==r.name)throw new Error(`Attempting to extend color ${i.name} with color ${r.name} of different name for spec version ${t}.`);if(i.isBackground!==r.isBackground)throw new Error(`Attempting to extend color ${i.name} as a ${i.isBackground?"background":"foreground"} with color ${r.name} as a ${r.isBackground?"background":"foreground"} for spec version ${t}.`)}function E(i,t,r){return gl(i,t,r),y.fromPalette({name:i.name,palette:l=>l.specVersion===t?r.palette(l):i.palette(l),tone:l=>l.specVersion===t?r.tone(l):i.tone(l),isBackground:i.isBackground,chromaMultiplier:l=>{let c=l.specVersion===t?r.chromaMultiplier:i.chromaMultiplier;return c!==void 0?c(l):1},background:l=>{let c=l.specVersion===t?r.background:i.background;return c!==void 0?c(l):void 0},secondBackground:l=>{let c=l.specVersion===t?r.secondBackground:i.secondBackground;return c!==void 0?c(l):void 0},contrastCurve:l=>{let c=l.specVersion===t?r.contrastCurve:i.contrastCurve;return c!==void 0?c(l):void 0},toneDeltaPair:l=>{let c=l.specVersion===t?r.toneDeltaPair:i.toneDeltaPair;return c!==void 0?c(l):void 0}})}var y=class i{static fromPalette(t){return new i(t.name??"",t.palette,t.tone??i.getInitialToneFromBackground(t.background),t.isBackground??false,t.chromaMultiplier,t.background,t.secondBackground,t.contrastCurve,t.toneDeltaPair)}static getInitialToneFromBackground(t){return t===void 0?r=>50:r=>t(r)?t(r).getTone(r):50}constructor(t,r,l,c,d,h,p,x,w){if(this.name=t,this.palette=r,this.tone=l,this.isBackground=c,this.chromaMultiplier=d,this.background=h,this.secondBackground=p,this.contrastCurve=x,this.toneDeltaPair=w,this.hctCache=new Map,!h&&p)throw new Error(`Color ${t} has secondBackgrounddefined, but background is not defined.`);if(!h&&x)throw new Error(`Color ${t} has contrastCurvedefined, but background is not defined.`);if(h&&!x)throw new Error(`Color ${t} has backgrounddefined, but contrastCurve is not defined.`)}clone(){return i.fromPalette({name:this.name,palette:this.palette,tone:this.tone,isBackground:this.isBackground,chromaMultiplier:this.chromaMultiplier,background:this.background,secondBackground:this.secondBackground,contrastCurve:this.contrastCurve,toneDeltaPair:this.toneDeltaPair})}clearCache(){this.hctCache.clear();}getArgb(t){return this.getHct(t).toInt()}getHct(t){let r=this.hctCache.get(t);if(r!=null)return r;let l=ea(t.specVersion).getHct(t,this);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(t,l),l}getTone(t){return ea(t.specVersion).getTone(t,this)}static foregroundTone(t,r){let l=le.lighterUnsafe(t,r),c=le.darkerUnsafe(t,r),d=le.ratioOfTones(l,t),h=le.ratioOfTones(c,t);if(i.tonePrefersLightForeground(t)){let x=Math.abs(d-h)<.1&&d<r&&h<r;return d>=r||d>=h||x?l:c}else return h>=r||h>=d?c:l}static tonePrefersLightForeground(t){return Math.round(t)<60}static toneAllowsLightForeground(t){return Math.round(t)<=49}static enableLightForeground(t){return i.tonePrefersLightForeground(t)&&!i.toneAllowsLightForeground(t)?49:t}},jr=class{getHct(t,r){let l=r.getTone(t);return r.palette(t).getHct(l)}getTone(t,r){let l=t.contrastLevel<0,c=r.toneDeltaPair?r.toneDeltaPair(t):void 0;if(c){let d=c.roleA,h=c.roleB,p=c.delta,x=c.polarity,w=c.stayTogether,k=x==="nearer"||x==="lighter"&&!t.isDark||x==="darker"&&t.isDark,S=k?d:h,D=k?h:d,C=r.name===S.name,m=t.isDark?1:-1,v=S.tone(t),T=D.tone(t);if(r.background&&S.contrastCurve&&D.contrastCurve){let Y=r.background(t),H=S.contrastCurve(t),X=D.contrastCurve(t);if(Y&&H&&X){let Z=Y.getTone(t),$=H.get(t.contrastLevel),V=X.get(t.contrastLevel);le.ratioOfTones(Z,v)<$&&(v=y.foregroundTone(Z,$)),le.ratioOfTones(Z,T)<V&&(T=y.foregroundTone(Z,V)),l&&(v=y.foregroundTone(Z,$),T=y.foregroundTone(Z,V));}}return (T-v)*m<p&&(T=ue(0,100,v+p*m),(T-v)*m>=p||(v=ue(0,100,T-p*m))),50<=v&&v<60?m>0?(v=60,T=Math.max(T,v+p*m)):(v=49,T=Math.min(T,v+p*m)):50<=T&&T<60&&(w?m>0?(v=60,T=Math.max(T,v+p*m)):(v=49,T=Math.min(T,v+p*m)):m>0?T=60:T=49),C?v:T}else {let d=r.tone(t);if(r.background==null||r.background(t)===void 0||r.contrastCurve==null||r.contrastCurve(t)===void 0)return d;let h=r.background(t).getTone(t),p=r.contrastCurve(t).get(t.contrastLevel);if(le.ratioOfTones(h,d)>=p||(d=y.foregroundTone(h,p)),l&&(d=y.foregroundTone(h,p)),r.isBackground&&50<=d&&d<60&&(le.ratioOfTones(49,h)>=p?d=49:d=60),r.secondBackground==null||r.secondBackground(t)===void 0)return d;let[x,w]=[r.background,r.secondBackground],[k,S]=[x(t).getTone(t),w(t).getTone(t)],[D,C]=[Math.max(k,S),Math.min(k,S)];if(le.ratioOfTones(D,d)>=p&&le.ratioOfTones(C,d)>=p)return d;let m=le.lighter(D,p),v=le.darker(C,p),T=[];return m!==-1&&T.push(m),v!==-1&&T.push(v),y.tonePrefersLightForeground(k)||y.tonePrefersLightForeground(S)?m<0?100:m:T.length===1?T[0]:v<0?0:v}}},$r=class{getHct(t,r){let l=r.palette(t),c=r.getTone(t),d=l.hue,h=l.chroma*(r.chromaMultiplier?r.chromaMultiplier(t):1);return F.from(d,h,c)}getTone(t,r){let l=r.toneDeltaPair?r.toneDeltaPair(t):void 0;if(l){let c=l.roleA,d=l.roleB,h=l.polarity,p=l.constraint,x=h==="darker"||h==="relative_lighter"&&t.isDark||h==="relative_darker"&&!t.isDark?-l.delta:l.delta,w=r.name===c.name,k=w?c:d,S=w?d:c,D=k.tone(t),C=S.getTone(t),m=x*(w?1:-1);if(p==="exact"?D=ue(0,100,C+m):p==="nearer"?m>0?D=ue(0,100,ue(C,C+m,D)):D=ue(0,100,ue(C+m,C,D)):p==="farther"&&(m>0?D=ue(C+m,100,D):D=ue(0,C+m,D)),r.background&&r.contrastCurve){let v=r.background(t),T=r.contrastCurve(t);if(v&&T){let Y=v.getTone(t),H=T.get(t.contrastLevel);D=le.ratioOfTones(Y,D)>=H&&t.contrastLevel>=0?D:y.foregroundTone(Y,H);}}return r.isBackground&&!r.name.endsWith("_fixed_dim")&&(D>=57?D=ue(65,100,D):D=ue(0,49,D)),D}else {let c=r.tone(t);if(r.background==null||r.background(t)===void 0||r.contrastCurve==null||r.contrastCurve(t)===void 0)return c;let d=r.background(t).getTone(t),h=r.contrastCurve(t).get(t.contrastLevel);if(c=le.ratioOfTones(d,c)>=h&&t.contrastLevel>=0?c:y.foregroundTone(d,h),r.isBackground&&!r.name.endsWith("_fixed_dim")&&(c>=57?c=ue(65,100,c):c=ue(0,49,c)),r.secondBackground==null||r.secondBackground(t)===void 0)return c;let[p,x]=[r.background,r.secondBackground],[w,k]=[p(t).getTone(t),x(t).getTone(t)],[S,D]=[Math.max(w,k),Math.min(w,k)];if(le.ratioOfTones(S,c)>=h&&le.ratioOfTones(D,c)>=h)return c;let C=le.lighter(S,h),m=le.darker(D,h),v=[];return C!==-1&&v.push(C),m!==-1&&v.push(m),y.tonePrefersLightForeground(w)||y.tonePrefersLightForeground(k)?C<0?100:C:v.length===1?v[0]:m<0?0:m}}},yl=new jr,bl=new $r;function ea(i){return i==="2025"?bl:yl}var _=class i{static fromInt(t){let r=F.fromInt(t);return i.fromHct(r)}static fromHct(t){return new i(t.hue,t.chroma,t)}static fromHueAndChroma(t,r){let l=new qr(t,r).create();return new i(t,r,l)}constructor(t,r,l){this.hue=t,this.chroma=r,this.keyColor=l,this.cache=new Map;}tone(t){let r=this.cache.get(t);return r===void 0&&(t==99&&F.isYellow(this.hue)?r=this.averageArgb(this.tone(98),this.tone(100)):r=F.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,r)),r}getHct(t){return F.fromInt(this.tone(t))}averageArgb(t,r){let l=t>>>16&255,c=t>>>8&255,d=t&255,h=r>>>16&255,p=r>>>8&255,x=r&255,w=Math.round((l+h)/2),k=Math.round((c+p)/2),S=Math.round((d+x)/2);return (255<<24|(w&255)<<16|(k&255)<<8|S&255)>>>0}},qr=class{constructor(t,r){this.hue=t,this.requestedChroma=r,this.chromaCache=new Map,this.maxChromaValue=200;}create(){let c=0,d=100;for(;c<d;){let h=Math.floor((c+d)/2),p=this.maxChroma(h)<this.maxChroma(h+1);if(this.maxChroma(h)>=this.requestedChroma-.01)if(Math.abs(c-50)<Math.abs(d-50))d=h;else {if(c===h)return F.from(this.hue,this.requestedChroma,c);c=h;}else p?c=h+1:d=h;}return F.from(this.hue,this.requestedChroma,c)}maxChroma(t){if(this.chromaCache.has(t))return this.chromaCache.get(t);let r=F.from(this.hue,this.maxChromaValue,t).chroma;return this.chromaCache.set(t,r),r}};var Vt=class i{constructor(t){this.input=t,this.hctsByTempCache=[],this.hctsByHueCache=[],this.tempsByHctCache=new Map,this.inputRelativeTemperatureCache=-1,this.complementCache=null;}get hctsByTemp(){if(this.hctsByTempCache.length>0)return this.hctsByTempCache;let t=this.hctsByHue.concat([this.input]),r=this.tempsByHct;return t.sort((l,c)=>r.get(l)-r.get(c)),this.hctsByTempCache=t,t}get warmest(){return this.hctsByTemp[this.hctsByTemp.length-1]}get coldest(){return this.hctsByTemp[0]}analogous(t=5,r=12){let l=Math.round(this.input.hue),c=this.hctsByHue[l],d=this.relativeTemperature(c),h=[c],p=0;for(let m=0;m<360;m++){let v=bt(l+m),T=this.hctsByHue[v],Y=this.relativeTemperature(T),H=Math.abs(Y-d);d=Y,p+=H;}let x=1,w=p/r,k=0;for(d=this.relativeTemperature(c);h.length<r;){let m=bt(l+x),v=this.hctsByHue[m],T=this.relativeTemperature(v),Y=Math.abs(T-d);k+=Y;let H=h.length*w,X=k>=H,Z=1;for(;X&&h.length<r;){h.push(v);let $=(h.length+Z)*w;X=k>=$,Z++;}if(d=T,x++,x>360){for(;h.length<r;)h.push(v);break}}let S=[this.input],D=Math.floor((t-1)/2);for(let m=1;m<D+1;m++){let v=0-m;for(;v<0;)v=h.length+v;v>=h.length&&(v=v%h.length),S.splice(0,0,h[v]);}let C=t-D-1;for(let m=1;m<C+1;m++){let v=m;for(;v<0;)v=h.length+v;v>=h.length&&(v=v%h.length),S.push(h[v]);}return S}get complement(){if(this.complementCache!=null)return this.complementCache;let t=this.coldest.hue,r=this.tempsByHct.get(this.coldest),l=this.warmest.hue,d=this.tempsByHct.get(this.warmest)-r,h=i.isBetween(this.input.hue,t,l),p=h?l:t,x=h?t:l,w=1,k=1e3,S=this.hctsByHue[Math.round(this.input.hue)],D=1-this.inputRelativeTemperature;for(let C=0;C<=360;C+=1){let m=he(p+w*C);if(!i.isBetween(m,p,x))continue;let v=this.hctsByHue[Math.round(m)],T=(this.tempsByHct.get(v)-r)/d,Y=Math.abs(D-T);Y<k&&(k=Y,S=v);}return this.complementCache=S,this.complementCache}relativeTemperature(t){let r=this.tempsByHct.get(this.warmest)-this.tempsByHct.get(this.coldest),l=this.tempsByHct.get(t)-this.tempsByHct.get(this.coldest);return r===0?.5:l/r}get inputRelativeTemperature(){return this.inputRelativeTemperatureCache>=0?this.inputRelativeTemperatureCache:(this.inputRelativeTemperatureCache=this.relativeTemperature(this.input),this.inputRelativeTemperatureCache)}get tempsByHct(){if(this.tempsByHctCache.size>0)return this.tempsByHctCache;let t=this.hctsByHue.concat([this.input]),r=new Map;for(let l of t)r.set(l,i.rawTemperature(l));return this.tempsByHctCache=r,r}get hctsByHue(){if(this.hctsByHueCache.length>0)return this.hctsByHueCache;let t=[];for(let r=0;r<=360;r+=1){let l=F.from(r,this.input.chroma,this.input.tone);t.push(l);}return this.hctsByHueCache=t,this.hctsByHueCache}static isBetween(t,r,l){return r<l?r<=t&&t<=l:r<=t||t<=l}static rawTemperature(t){let r=Gr(t.toInt()),l=he(Math.atan2(r[2],r[1])*180/Math.PI),c=Math.sqrt(r[1]*r[1]+r[2]*r[2]);return -0.5+.02*Math.pow(c,1.07)*Math.cos(he(l-50)*Math.PI/180)}};var R=class{constructor(t,r,l,c){this.low=t,this.normal=r,this.medium=l,this.high=c;}get(t){return t<=-1?this.low:t<0?it(this.low,this.normal,(t- -1)/1):t<.5?it(this.normal,this.medium,(t-0)/.5):t<1?it(this.medium,this.high,(t-.5)/.5):this.high}};var q=class{constructor(t,r,l,c,d,h){this.roleA=t,this.roleB=r,this.delta=l,this.polarity=c,this.stayTogether=d,this.constraint=h,this.constraint=h??"exact";}};var f;(function(i){i[i.MONOCHROME=0]="MONOCHROME",i[i.NEUTRAL=1]="NEUTRAL",i[i.TONAL_SPOT=2]="TONAL_SPOT",i[i.VIBRANT=3]="VIBRANT",i[i.EXPRESSIVE=4]="EXPRESSIVE",i[i.FIDELITY=5]="FIDELITY",i[i.CONTENT=6]="CONTENT",i[i.RAINBOW=7]="RAINBOW",i[i.FRUIT_SALAD=8]="FRUIT_SALAD";})(f||(f={}));function wt(i){return i.variant===f.FIDELITY||i.variant===f.CONTENT}function ie(i){return i.variant===f.MONOCHROME}function wl(i,t,r,l){let c=r,d=F.from(i,t,r);if(d.chroma<t){let h=d.chroma;for(;d.chroma<t;){c+=l?-1:1;let p=F.from(i,t,c);if(h>p.chroma||Math.abs(p.chroma-t)<.4)break;let x=Math.abs(p.chroma-t),w=Math.abs(d.chroma-t);x<w&&(d=p),h=Math.max(h,p.chroma);}}return c}var dr=class{primaryPaletteKeyColor(){return y.fromPalette({name:"primary_palette_key_color",palette:t=>t.primaryPalette,tone:t=>t.primaryPalette.keyColor.tone})}secondaryPaletteKeyColor(){return y.fromPalette({name:"secondary_palette_key_color",palette:t=>t.secondaryPalette,tone:t=>t.secondaryPalette.keyColor.tone})}tertiaryPaletteKeyColor(){return y.fromPalette({name:"tertiary_palette_key_color",palette:t=>t.tertiaryPalette,tone:t=>t.tertiaryPalette.keyColor.tone})}neutralPaletteKeyColor(){return y.fromPalette({name:"neutral_palette_key_color",palette:t=>t.neutralPalette,tone:t=>t.neutralPalette.keyColor.tone})}neutralVariantPaletteKeyColor(){return y.fromPalette({name:"neutral_variant_palette_key_color",palette:t=>t.neutralVariantPalette,tone:t=>t.neutralVariantPalette.keyColor.tone})}errorPaletteKeyColor(){return y.fromPalette({name:"error_palette_key_color",palette:t=>t.errorPalette,tone:t=>t.errorPalette.keyColor.tone})}background(){return y.fromPalette({name:"background",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:true})}onBackground(){return y.fromPalette({name:"on_background",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>this.background(),contrastCurve:t=>new R(3,3,4.5,7)})}surface(){return y.fromPalette({name:"surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:true})}surfaceDim(){return y.fromPalette({name:"surface_dim",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:new R(87,87,80,75).get(t.contrastLevel),isBackground:true})}surfaceBright(){return y.fromPalette({name:"surface_bright",palette:t=>t.neutralPalette,tone:t=>t.isDark?new R(24,24,29,34).get(t.contrastLevel):98,isBackground:true})}surfaceContainerLowest(){return y.fromPalette({name:"surface_container_lowest",palette:t=>t.neutralPalette,tone:t=>t.isDark?new R(4,4,2,0).get(t.contrastLevel):100,isBackground:true})}surfaceContainerLow(){return y.fromPalette({name:"surface_container_low",palette:t=>t.neutralPalette,tone:t=>t.isDark?new R(10,10,11,12).get(t.contrastLevel):new R(96,96,96,95).get(t.contrastLevel),isBackground:true})}surfaceContainer(){return y.fromPalette({name:"surface_container",palette:t=>t.neutralPalette,tone:t=>t.isDark?new R(12,12,16,20).get(t.contrastLevel):new R(94,94,92,90).get(t.contrastLevel),isBackground:true})}surfaceContainerHigh(){return y.fromPalette({name:"surface_container_high",palette:t=>t.neutralPalette,tone:t=>t.isDark?new R(17,17,21,25).get(t.contrastLevel):new R(92,92,88,85).get(t.contrastLevel),isBackground:true})}surfaceContainerHighest(){return y.fromPalette({name:"surface_container_highest",palette:t=>t.neutralPalette,tone:t=>t.isDark?new R(22,22,26,30).get(t.contrastLevel):new R(90,90,84,80).get(t.contrastLevel),isBackground:true})}onSurface(){return y.fromPalette({name:"on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>this.highestSurface(t),contrastCurve:t=>new R(4.5,7,11,21)})}surfaceVariant(){return y.fromPalette({name:"surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:90,isBackground:true})}onSurfaceVariant(){return y.fromPalette({name:"on_surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?80:30,background:t=>this.highestSurface(t),contrastCurve:t=>new R(3,4.5,7,11)})}inverseSurface(){return y.fromPalette({name:"inverse_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:20,isBackground:true})}inverseOnSurface(){return y.fromPalette({name:"inverse_on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?20:95,background:t=>this.inverseSurface(),contrastCurve:t=>new R(4.5,7,11,21)})}outline(){return y.fromPalette({name:"outline",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?60:50,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1.5,3,4.5,7)})}outlineVariant(){return y.fromPalette({name:"outline_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:80,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5)})}shadow(){return y.fromPalette({name:"shadow",palette:t=>t.neutralPalette,tone:t=>0})}scrim(){return y.fromPalette({name:"scrim",palette:t=>t.neutralPalette,tone:t=>0})}surfaceTint(){return y.fromPalette({name:"surface_tint",palette:t=>t.primaryPalette,tone:t=>t.isDark?80:40,isBackground:true})}primary(){return y.fromPalette({name:"primary",palette:t=>t.primaryPalette,tone:t=>ie(t)?t.isDark?100:0:t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(3,4.5,7,7),toneDeltaPair:t=>new q(this.primaryContainer(),this.primary(),10,"nearer",false)})}primaryDim(){}onPrimary(){return y.fromPalette({name:"on_primary",palette:t=>t.primaryPalette,tone:t=>ie(t)?t.isDark?10:90:t.isDark?20:100,background:t=>this.primary(),contrastCurve:t=>new R(4.5,7,11,21)})}primaryContainer(){return y.fromPalette({name:"primary_container",palette:t=>t.primaryPalette,tone:t=>wt(t)?t.sourceColorHct.tone:ie(t)?t.isDark?85:25:t.isDark?30:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.primaryContainer(),this.primary(),10,"nearer",false)})}onPrimaryContainer(){return y.fromPalette({name:"on_primary_container",palette:t=>t.primaryPalette,tone:t=>wt(t)?y.foregroundTone(this.primaryContainer().tone(t),4.5):ie(t)?t.isDark?0:100:t.isDark?90:30,background:t=>this.primaryContainer(),contrastCurve:t=>new R(3,4.5,7,11)})}inversePrimary(){return y.fromPalette({name:"inverse_primary",palette:t=>t.primaryPalette,tone:t=>t.isDark?40:80,background:t=>this.inverseSurface(),contrastCurve:t=>new R(3,4.5,7,7)})}secondary(){return y.fromPalette({name:"secondary",palette:t=>t.secondaryPalette,tone:t=>t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(3,4.5,7,7),toneDeltaPair:t=>new q(this.secondaryContainer(),this.secondary(),10,"nearer",false)})}secondaryDim(){}onSecondary(){return y.fromPalette({name:"on_secondary",palette:t=>t.secondaryPalette,tone:t=>ie(t)?t.isDark?10:100:t.isDark?20:100,background:t=>this.secondary(),contrastCurve:t=>new R(4.5,7,11,21)})}secondaryContainer(){return y.fromPalette({name:"secondary_container",palette:t=>t.secondaryPalette,tone:t=>{let r=t.isDark?30:90;return ie(t)?t.isDark?30:85:wt(t)?wl(t.secondaryPalette.hue,t.secondaryPalette.chroma,r,!t.isDark):r},isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.secondaryContainer(),this.secondary(),10,"nearer",false)})}onSecondaryContainer(){return y.fromPalette({name:"on_secondary_container",palette:t=>t.secondaryPalette,tone:t=>ie(t)?t.isDark?90:10:wt(t)?y.foregroundTone(this.secondaryContainer().tone(t),4.5):t.isDark?90:30,background:t=>this.secondaryContainer(),contrastCurve:t=>new R(3,4.5,7,11)})}tertiary(){return y.fromPalette({name:"tertiary",palette:t=>t.tertiaryPalette,tone:t=>ie(t)?t.isDark?90:25:t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(3,4.5,7,7),toneDeltaPair:t=>new q(this.tertiaryContainer(),this.tertiary(),10,"nearer",false)})}tertiaryDim(){}onTertiary(){return y.fromPalette({name:"on_tertiary",palette:t=>t.tertiaryPalette,tone:t=>ie(t)?t.isDark?10:90:t.isDark?20:100,background:t=>this.tertiary(),contrastCurve:t=>new R(4.5,7,11,21)})}tertiaryContainer(){return y.fromPalette({name:"tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>{if(ie(t))return t.isDark?60:49;if(!wt(t))return t.isDark?30:90;let r=t.tertiaryPalette.getHct(t.sourceColorHct.tone);return lt.fixIfDisliked(r).tone},isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.tertiaryContainer(),this.tertiary(),10,"nearer",false)})}onTertiaryContainer(){return y.fromPalette({name:"on_tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>ie(t)?t.isDark?0:100:wt(t)?y.foregroundTone(this.tertiaryContainer().tone(t),4.5):t.isDark?90:30,background:t=>this.tertiaryContainer(),contrastCurve:t=>new R(3,4.5,7,11)})}error(){return y.fromPalette({name:"error",palette:t=>t.errorPalette,tone:t=>t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(3,4.5,7,7),toneDeltaPair:t=>new q(this.errorContainer(),this.error(),10,"nearer",false)})}errorDim(){}onError(){return y.fromPalette({name:"on_error",palette:t=>t.errorPalette,tone:t=>t.isDark?20:100,background:t=>this.error(),contrastCurve:t=>new R(4.5,7,11,21)})}errorContainer(){return y.fromPalette({name:"error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?30:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.errorContainer(),this.error(),10,"nearer",false)})}onErrorContainer(){return y.fromPalette({name:"on_error_container",palette:t=>t.errorPalette,tone:t=>ie(t)?t.isDark?90:10:t.isDark?90:30,background:t=>this.errorContainer(),contrastCurve:t=>new R(3,4.5,7,11)})}primaryFixed(){return y.fromPalette({name:"primary_fixed",palette:t=>t.primaryPalette,tone:t=>ie(t)?40:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",true)})}primaryFixedDim(){return y.fromPalette({name:"primary_fixed_dim",palette:t=>t.primaryPalette,tone:t=>ie(t)?30:80,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",true)})}onPrimaryFixed(){return y.fromPalette({name:"on_primary_fixed",palette:t=>t.primaryPalette,tone:t=>ie(t)?100:10,background:t=>this.primaryFixedDim(),secondBackground:t=>this.primaryFixed(),contrastCurve:t=>new R(4.5,7,11,21)})}onPrimaryFixedVariant(){return y.fromPalette({name:"on_primary_fixed_variant",palette:t=>t.primaryPalette,tone:t=>ie(t)?90:30,background:t=>this.primaryFixedDim(),secondBackground:t=>this.primaryFixed(),contrastCurve:t=>new R(3,4.5,7,11)})}secondaryFixed(){return y.fromPalette({name:"secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>ie(t)?80:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",true)})}secondaryFixedDim(){return y.fromPalette({name:"secondary_fixed_dim",palette:t=>t.secondaryPalette,tone:t=>ie(t)?70:80,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",true)})}onSecondaryFixed(){return y.fromPalette({name:"on_secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>10,background:t=>this.secondaryFixedDim(),secondBackground:t=>this.secondaryFixed(),contrastCurve:t=>new R(4.5,7,11,21)})}onSecondaryFixedVariant(){return y.fromPalette({name:"on_secondary_fixed_variant",palette:t=>t.secondaryPalette,tone:t=>ie(t)?25:30,background:t=>this.secondaryFixedDim(),secondBackground:t=>this.secondaryFixed(),contrastCurve:t=>new R(3,4.5,7,11)})}tertiaryFixed(){return y.fromPalette({name:"tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>ie(t)?40:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",true)})}tertiaryFixedDim(){return y.fromPalette({name:"tertiary_fixed_dim",palette:t=>t.tertiaryPalette,tone:t=>ie(t)?30:80,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new R(1,1,3,4.5),toneDeltaPair:t=>new q(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",true)})}onTertiaryFixed(){return y.fromPalette({name:"on_tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>ie(t)?100:10,background:t=>this.tertiaryFixedDim(),secondBackground:t=>this.tertiaryFixed(),contrastCurve:t=>new R(4.5,7,11,21)})}onTertiaryFixedVariant(){return y.fromPalette({name:"on_tertiary_fixed_variant",palette:t=>t.tertiaryPalette,tone:t=>ie(t)?90:30,background:t=>this.tertiaryFixedDim(),secondBackground:t=>this.tertiaryFixed(),contrastCurve:t=>new R(3,4.5,7,11)})}highestSurface(t){return t.isDark?this.surfaceBright():this.surfaceDim()}};function B(i,t=0,r=100,l=1){let c=ta(i.hue,i.chroma*l,100,true);return ue(t,r,c)}function Qe(i,t=0,r=100){let l=ta(i.hue,i.chroma,0,false);return ue(t,r,l)}function ta(i,t,r,l){let c=r,d=F.from(i,t,c);for(;d.chroma<t&&!(r<0||r>100);){r+=l?-1:1;let h=F.from(i,t,r);d.chroma<h.chroma&&(d=h,c=r);}return c}function I(i){return i===1.5?new R(1.5,1.5,3,5.5):i===3?new R(3,3,4.5,7):i===4.5?new R(4.5,4.5,7,11):i===6?new R(6,6,7,11):i===7?new R(7,7,11,21):i===9?new R(9,9,11,21):i===11?new R(11,11,21,21):i===21?new R(21,21,21,21):new R(i,i,7,21)}var hr=class extends dr{surface(){let t=y.fromPalette({name:"surface",palette:r=>r.neutralPalette,tone:r=>(super.surface().tone(r),r.platform==="phone"?r.isDark?4:F.isYellow(r.neutralPalette.hue)?99:r.variant===f.VIBRANT?97:98:0),isBackground:true});return E(super.surface(),"2025",t)}surfaceDim(){let t=y.fromPalette({name:"surface_dim",palette:r=>r.neutralPalette,tone:r=>r.isDark?4:F.isYellow(r.neutralPalette.hue)?90:r.variant===f.VIBRANT?85:87,isBackground:true,chromaMultiplier:r=>{if(!r.isDark){if(r.variant===f.NEUTRAL)return 2.5;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?2.7:1.75;if(r.variant===f.VIBRANT)return 1.36}return 1}});return E(super.surfaceDim(),"2025",t)}surfaceBright(){let t=y.fromPalette({name:"surface_bright",palette:r=>r.neutralPalette,tone:r=>r.isDark?18:F.isYellow(r.neutralPalette.hue)?99:r.variant===f.VIBRANT?97:98,isBackground:true,chromaMultiplier:r=>{if(r.isDark){if(r.variant===f.NEUTRAL)return 2.5;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?2.7:1.75;if(r.variant===f.VIBRANT)return 1.36}return 1}});return E(super.surfaceBright(),"2025",t)}surfaceContainerLowest(){let t=y.fromPalette({name:"surface_container_lowest",palette:r=>r.neutralPalette,tone:r=>r.isDark?0:100,isBackground:true});return E(super.surfaceContainerLowest(),"2025",t)}surfaceContainerLow(){let t=y.fromPalette({name:"surface_container_low",palette:r=>r.neutralPalette,tone:r=>r.platform==="phone"?r.isDark?6:F.isYellow(r.neutralPalette.hue)?98:r.variant===f.VIBRANT?95:96:15,isBackground:true,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 1.3;if(r.variant===f.TONAL_SPOT)return 1.25;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?1.3:1.15;if(r.variant===f.VIBRANT)return 1.08}return 1}});return E(super.surfaceContainerLow(),"2025",t)}surfaceContainer(){let t=y.fromPalette({name:"surface_container",palette:r=>r.neutralPalette,tone:r=>r.platform==="phone"?r.isDark?9:F.isYellow(r.neutralPalette.hue)?96:r.variant===f.VIBRANT?92:94:20,isBackground:true,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 1.6;if(r.variant===f.TONAL_SPOT)return 1.4;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?1.6:1.3;if(r.variant===f.VIBRANT)return 1.15}return 1}});return E(super.surfaceContainer(),"2025",t)}surfaceContainerHigh(){let t=y.fromPalette({name:"surface_container_high",palette:r=>r.neutralPalette,tone:r=>r.platform==="phone"?r.isDark?12:F.isYellow(r.neutralPalette.hue)?94:r.variant===f.VIBRANT?90:92:25,isBackground:true,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 1.9;if(r.variant===f.TONAL_SPOT)return 1.5;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?1.95:1.45;if(r.variant===f.VIBRANT)return 1.22}return 1}});return E(super.surfaceContainerHigh(),"2025",t)}surfaceContainerHighest(){let t=y.fromPalette({name:"surface_container_highest",palette:r=>r.neutralPalette,tone:r=>r.isDark?15:F.isYellow(r.neutralPalette.hue)?92:r.variant===f.VIBRANT?88:90,isBackground:true,chromaMultiplier:r=>r.variant===f.NEUTRAL?2.2:r.variant===f.TONAL_SPOT?1.7:r.variant===f.EXPRESSIVE?F.isYellow(r.neutralPalette.hue)?2.3:1.6:r.variant===f.VIBRANT?1.29:1});return E(super.surfaceContainerHighest(),"2025",t)}onSurface(){let t=y.fromPalette({name:"on_surface",palette:r=>r.neutralPalette,tone:r=>r.variant===f.VIBRANT?B(r.neutralPalette,0,100,1.1):y.getInitialToneFromBackground(l=>l.platform==="phone"?this.highestSurface(l):this.surfaceContainerHigh())(r),chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 2.2;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.isDark&&r.platform==="phone"?I(11):I(9)});return E(super.onSurface(),"2025",t)}onSurfaceVariant(){let t=y.fromPalette({name:"on_surface_variant",palette:r=>r.neutralPalette,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 2.2;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?r.isDark?I(6):I(4.5):I(7)});return E(super.onSurfaceVariant(),"2025",t)}outline(){let t=y.fromPalette({name:"outline",palette:r=>r.neutralPalette,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 2.2;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?I(3):I(4.5)});return E(super.outline(),"2025",t)}outlineVariant(){let t=y.fromPalette({name:"outline_variant",palette:r=>r.neutralPalette,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 2.2;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return F.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?I(1.5):I(3)});return E(super.outlineVariant(),"2025",t)}inverseSurface(){let t=y.fromPalette({name:"inverse_surface",palette:r=>r.neutralPalette,tone:r=>r.isDark?98:4,isBackground:true});return E(super.inverseSurface(),"2025",t)}inverseOnSurface(){let t=y.fromPalette({name:"inverse_on_surface",palette:r=>r.neutralPalette,background:r=>this.inverseSurface(),contrastCurve:r=>I(7)});return E(super.inverseOnSurface(),"2025",t)}primary(){let t=y.fromPalette({name:"primary",palette:r=>r.primaryPalette,tone:r=>r.variant===f.NEUTRAL?r.platform==="phone"?r.isDark?80:40:90:r.variant===f.TONAL_SPOT?r.platform==="phone"?r.isDark?80:B(r.primaryPalette):B(r.primaryPalette,0,90):r.variant===f.EXPRESSIVE?r.platform==="phone"?B(r.primaryPalette,0,F.isYellow(r.primaryPalette.hue)?25:F.isCyan(r.primaryPalette.hue)?88:98):B(r.primaryPalette):r.platform==="phone"?B(r.primaryPalette,0,F.isCyan(r.primaryPalette.hue)?88:98):B(r.primaryPalette),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?I(4.5):I(7),toneDeltaPair:r=>r.platform==="phone"?new q(this.primaryContainer(),this.primary(),5,"relative_lighter",true,"farther"):void 0});return E(super.primary(),"2025",t)}primaryDim(){return y.fromPalette({name:"primary_dim",palette:t=>t.primaryPalette,tone:t=>t.variant===f.NEUTRAL?85:t.variant===f.TONAL_SPOT?B(t.primaryPalette,0,90):B(t.primaryPalette),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>I(4.5),toneDeltaPair:t=>new q(this.primaryDim(),this.primary(),5,"darker",true,"farther")})}onPrimary(){let t=y.fromPalette({name:"on_primary",palette:r=>r.primaryPalette,background:r=>r.platform==="phone"?this.primary():this.primaryDim(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.onPrimary(),"2025",t)}primaryContainer(){let t=y.fromPalette({name:"primary_container",palette:r=>r.primaryPalette,tone:r=>r.platform==="watch"?30:r.variant===f.NEUTRAL?r.isDark?30:90:r.variant===f.TONAL_SPOT?r.isDark?Qe(r.primaryPalette,35,93):B(r.primaryPalette,0,90):r.variant===f.EXPRESSIVE?r.isDark?B(r.primaryPalette,30,93):B(r.primaryPalette,78,F.isCyan(r.primaryPalette.hue)?88:90):r.isDark?Qe(r.primaryPalette,66,93):B(r.primaryPalette,66,F.isCyan(r.primaryPalette.hue)?88:93),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="phone"?void 0:new q(this.primaryContainer(),this.primaryDim(),10,"darker",true,"farther"),contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?I(1.5):void 0});return E(super.primaryContainer(),"2025",t)}onPrimaryContainer(){let t=y.fromPalette({name:"on_primary_container",palette:r=>r.primaryPalette,background:r=>this.primaryContainer(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.onPrimaryContainer(),"2025",t)}primaryFixed(){let t=y.fromPalette({name:"primary_fixed",palette:r=>r.primaryPalette,tone:r=>{let l=Object.assign({},r,{isDark:false,contrastLevel:0});return this.primaryContainer().getTone(l)},isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?I(1.5):void 0});return E(super.primaryFixed(),"2025",t)}primaryFixedDim(){let t=y.fromPalette({name:"primary_fixed_dim",palette:r=>r.primaryPalette,tone:r=>this.primaryFixed().getTone(r),isBackground:true,toneDeltaPair:r=>new q(this.primaryFixedDim(),this.primaryFixed(),5,"darker",true,"exact")});return E(super.primaryFixedDim(),"2025",t)}onPrimaryFixed(){let t=y.fromPalette({name:"on_primary_fixed",palette:r=>r.primaryPalette,background:r=>this.primaryFixedDim(),contrastCurve:r=>I(7)});return E(super.onPrimaryFixed(),"2025",t)}onPrimaryFixedVariant(){let t=y.fromPalette({name:"on_primary_fixed_variant",palette:r=>r.primaryPalette,background:r=>this.primaryFixedDim(),contrastCurve:r=>I(4.5)});return E(super.onPrimaryFixedVariant(),"2025",t)}inversePrimary(){let t=y.fromPalette({name:"inverse_primary",palette:r=>r.primaryPalette,tone:r=>B(r.primaryPalette),background:r=>this.inverseSurface(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.inversePrimary(),"2025",t)}secondary(){let t=y.fromPalette({name:"secondary",palette:r=>r.secondaryPalette,tone:r=>r.platform==="watch"?r.variant===f.NEUTRAL?90:B(r.secondaryPalette,0,90):r.variant===f.NEUTRAL?r.isDark?Qe(r.secondaryPalette,0,98):B(r.secondaryPalette):r.variant===f.VIBRANT?B(r.secondaryPalette,0,r.isDark?90:98):r.isDark?80:B(r.secondaryPalette),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?I(4.5):I(7),toneDeltaPair:r=>r.platform==="phone"?new q(this.secondaryContainer(),this.secondary(),5,"relative_lighter",true,"farther"):void 0});return E(super.secondary(),"2025",t)}secondaryDim(){return y.fromPalette({name:"secondary_dim",palette:t=>t.secondaryPalette,tone:t=>t.variant===f.NEUTRAL?85:B(t.secondaryPalette,0,90),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>I(4.5),toneDeltaPair:t=>new q(this.secondaryDim(),this.secondary(),5,"darker",true,"farther")})}onSecondary(){let t=y.fromPalette({name:"on_secondary",palette:r=>r.secondaryPalette,background:r=>r.platform==="phone"?this.secondary():this.secondaryDim(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.onSecondary(),"2025",t)}secondaryContainer(){let t=y.fromPalette({name:"secondary_container",palette:r=>r.secondaryPalette,tone:r=>r.platform==="watch"?30:r.variant===f.VIBRANT?r.isDark?Qe(r.secondaryPalette,30,40):B(r.secondaryPalette,84,90):r.variant===f.EXPRESSIVE?r.isDark?15:B(r.secondaryPalette,90,95):r.isDark?25:90,isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="watch"?new q(this.secondaryContainer(),this.secondaryDim(),10,"darker",true,"farther"):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?I(1.5):void 0});return E(super.secondaryContainer(),"2025",t)}onSecondaryContainer(){let t=y.fromPalette({name:"on_secondary_container",palette:r=>r.secondaryPalette,background:r=>this.secondaryContainer(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.onSecondaryContainer(),"2025",t)}secondaryFixed(){let t=y.fromPalette({name:"secondary_fixed",palette:r=>r.secondaryPalette,tone:r=>{let l=Object.assign({},r,{isDark:false,contrastLevel:0});return this.secondaryContainer().getTone(l)},isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?I(1.5):void 0});return E(super.secondaryFixed(),"2025",t)}secondaryFixedDim(){let t=y.fromPalette({name:"secondary_fixed_dim",palette:r=>r.secondaryPalette,tone:r=>this.secondaryFixed().getTone(r),isBackground:true,toneDeltaPair:r=>new q(this.secondaryFixedDim(),this.secondaryFixed(),5,"darker",true,"exact")});return E(super.secondaryFixedDim(),"2025",t)}onSecondaryFixed(){let t=y.fromPalette({name:"on_secondary_fixed",palette:r=>r.secondaryPalette,background:r=>this.secondaryFixedDim(),contrastCurve:r=>I(7)});return E(super.onSecondaryFixed(),"2025",t)}onSecondaryFixedVariant(){let t=y.fromPalette({name:"on_secondary_fixed_variant",palette:r=>r.secondaryPalette,background:r=>this.secondaryFixedDim(),contrastCurve:r=>I(4.5)});return E(super.onSecondaryFixedVariant(),"2025",t)}tertiary(){let t=y.fromPalette({name:"tertiary",palette:r=>r.tertiaryPalette,tone:r=>r.platform==="watch"?r.variant===f.TONAL_SPOT?B(r.tertiaryPalette,0,90):B(r.tertiaryPalette):r.variant===f.EXPRESSIVE||r.variant===f.VIBRANT?B(r.tertiaryPalette,0,F.isCyan(r.tertiaryPalette.hue)?88:r.isDark?98:100):r.isDark?B(r.tertiaryPalette,0,98):B(r.tertiaryPalette),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?I(4.5):I(7),toneDeltaPair:r=>r.platform==="phone"?new q(this.tertiaryContainer(),this.tertiary(),5,"relative_lighter",true,"farther"):void 0});return E(super.tertiary(),"2025",t)}tertiaryDim(){return y.fromPalette({name:"tertiary_dim",palette:t=>t.tertiaryPalette,tone:t=>t.variant===f.TONAL_SPOT?B(t.tertiaryPalette,0,90):B(t.tertiaryPalette),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>I(4.5),toneDeltaPair:t=>new q(this.tertiaryDim(),this.tertiary(),5,"darker",true,"farther")})}onTertiary(){let t=y.fromPalette({name:"on_tertiary",palette:r=>r.tertiaryPalette,background:r=>r.platform==="phone"?this.tertiary():this.tertiaryDim(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.onTertiary(),"2025",t)}tertiaryContainer(){let t=y.fromPalette({name:"tertiary_container",palette:r=>r.tertiaryPalette,tone:r=>r.platform==="watch"?r.variant===f.TONAL_SPOT?B(r.tertiaryPalette,0,90):B(r.tertiaryPalette):r.variant===f.NEUTRAL?r.isDark?B(r.tertiaryPalette,0,93):B(r.tertiaryPalette,0,96):r.variant===f.TONAL_SPOT?B(r.tertiaryPalette,0,r.isDark?93:100):r.variant===f.EXPRESSIVE?B(r.tertiaryPalette,75,F.isCyan(r.tertiaryPalette.hue)?88:r.isDark?93:100):r.isDark?B(r.tertiaryPalette,0,93):B(r.tertiaryPalette,72,100),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="watch"?new q(this.tertiaryContainer(),this.tertiaryDim(),10,"darker",true,"farther"):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?I(1.5):void 0});return E(super.tertiaryContainer(),"2025",t)}onTertiaryContainer(){let t=y.fromPalette({name:"on_tertiary_container",palette:r=>r.tertiaryPalette,background:r=>this.tertiaryContainer(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.onTertiaryContainer(),"2025",t)}tertiaryFixed(){let t=y.fromPalette({name:"tertiary_fixed",palette:r=>r.tertiaryPalette,tone:r=>{let l=Object.assign({},r,{isDark:false,contrastLevel:0});return this.tertiaryContainer().getTone(l)},isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?I(1.5):void 0});return E(super.tertiaryFixed(),"2025",t)}tertiaryFixedDim(){let t=y.fromPalette({name:"tertiary_fixed_dim",palette:r=>r.tertiaryPalette,tone:r=>this.tertiaryFixed().getTone(r),isBackground:true,toneDeltaPair:r=>new q(this.tertiaryFixedDim(),this.tertiaryFixed(),5,"darker",true,"exact")});return E(super.tertiaryFixedDim(),"2025",t)}onTertiaryFixed(){let t=y.fromPalette({name:"on_tertiary_fixed",palette:r=>r.tertiaryPalette,background:r=>this.tertiaryFixedDim(),contrastCurve:r=>I(7)});return E(super.onTertiaryFixed(),"2025",t)}onTertiaryFixedVariant(){let t=y.fromPalette({name:"on_tertiary_fixed_variant",palette:r=>r.tertiaryPalette,background:r=>this.tertiaryFixedDim(),contrastCurve:r=>I(4.5)});return E(super.onTertiaryFixedVariant(),"2025",t)}error(){let t=y.fromPalette({name:"error",palette:r=>r.errorPalette,tone:r=>r.platform==="phone"?r.isDark?Qe(r.errorPalette,0,98):B(r.errorPalette):Qe(r.errorPalette),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?I(4.5):I(7),toneDeltaPair:r=>r.platform==="phone"?new q(this.errorContainer(),this.error(),5,"relative_lighter",true,"farther"):void 0});return E(super.error(),"2025",t)}errorDim(){return y.fromPalette({name:"error_dim",palette:t=>t.errorPalette,tone:t=>Qe(t.errorPalette),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>I(4.5),toneDeltaPair:t=>new q(this.errorDim(),this.error(),5,"darker",true,"farther")})}onError(){let t=y.fromPalette({name:"on_error",palette:r=>r.errorPalette,background:r=>r.platform==="phone"?this.error():this.errorDim(),contrastCurve:r=>r.platform==="phone"?I(6):I(7)});return E(super.onError(),"2025",t)}errorContainer(){let t=y.fromPalette({name:"error_container",palette:r=>r.errorPalette,tone:r=>r.platform==="watch"?30:r.isDark?Qe(r.errorPalette,30,93):B(r.errorPalette,0,90),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="watch"?new q(this.errorContainer(),this.errorDim(),10,"darker",true,"farther"):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?I(1.5):void 0});return E(super.errorContainer(),"2025",t)}onErrorContainer(){let t=y.fromPalette({name:"on_error_container",palette:r=>r.errorPalette,background:r=>this.errorContainer(),contrastCurve:r=>r.platform==="phone"?I(4.5):I(7)});return E(super.onErrorContainer(),"2025",t)}surfaceVariant(){let t=Object.assign(this.surfaceContainerHighest().clone(),{name:"surface_variant"});return E(super.surfaceVariant(),"2025",t)}surfaceTint(){let t=Object.assign(this.primary().clone(),{name:"surface_tint"});return E(super.surfaceTint(),"2025",t)}background(){let t=Object.assign(this.surface().clone(),{name:"background"});return E(super.background(),"2025",t)}onBackground(){let t=Object.assign(this.onSurface().clone(),{name:"on_background",tone:r=>r.platform==="watch"?100:this.onSurface().getTone(r)});return E(super.onBackground(),"2025",t)}};var b=class i{constructor(){this.allColors=[this.background(),this.onBackground(),this.surface(),this.surfaceDim(),this.surfaceBright(),this.surfaceContainerLowest(),this.surfaceContainerLow(),this.surfaceContainer(),this.surfaceContainerHigh(),this.surfaceContainerHighest(),this.onSurface(),this.onSurfaceVariant(),this.outline(),this.outlineVariant(),this.inverseSurface(),this.inverseOnSurface(),this.primary(),this.primaryDim(),this.onPrimary(),this.primaryContainer(),this.onPrimaryContainer(),this.primaryFixed(),this.primaryFixedDim(),this.onPrimaryFixed(),this.onPrimaryFixedVariant(),this.inversePrimary(),this.secondary(),this.secondaryDim(),this.onSecondary(),this.secondaryContainer(),this.onSecondaryContainer(),this.secondaryFixed(),this.secondaryFixedDim(),this.onSecondaryFixed(),this.onSecondaryFixedVariant(),this.tertiary(),this.tertiaryDim(),this.onTertiary(),this.tertiaryContainer(),this.onTertiaryContainer(),this.tertiaryFixed(),this.tertiaryFixedDim(),this.onTertiaryFixed(),this.onTertiaryFixedVariant(),this.error(),this.errorDim(),this.onError(),this.errorContainer(),this.onErrorContainer()].filter(t=>t!==void 0);}highestSurface(t){return i.colorSpec.highestSurface(t)}primaryPaletteKeyColor(){return i.colorSpec.primaryPaletteKeyColor()}secondaryPaletteKeyColor(){return i.colorSpec.secondaryPaletteKeyColor()}tertiaryPaletteKeyColor(){return i.colorSpec.tertiaryPaletteKeyColor()}neutralPaletteKeyColor(){return i.colorSpec.neutralPaletteKeyColor()}neutralVariantPaletteKeyColor(){return i.colorSpec.neutralVariantPaletteKeyColor()}errorPaletteKeyColor(){return i.colorSpec.errorPaletteKeyColor()}background(){return i.colorSpec.background()}onBackground(){return i.colorSpec.onBackground()}surface(){return i.colorSpec.surface()}surfaceDim(){return i.colorSpec.surfaceDim()}surfaceBright(){return i.colorSpec.surfaceBright()}surfaceContainerLowest(){return i.colorSpec.surfaceContainerLowest()}surfaceContainerLow(){return i.colorSpec.surfaceContainerLow()}surfaceContainer(){return i.colorSpec.surfaceContainer()}surfaceContainerHigh(){return i.colorSpec.surfaceContainerHigh()}surfaceContainerHighest(){return i.colorSpec.surfaceContainerHighest()}onSurface(){return i.colorSpec.onSurface()}surfaceVariant(){return i.colorSpec.surfaceVariant()}onSurfaceVariant(){return i.colorSpec.onSurfaceVariant()}outline(){return i.colorSpec.outline()}outlineVariant(){return i.colorSpec.outlineVariant()}inverseSurface(){return i.colorSpec.inverseSurface()}inverseOnSurface(){return i.colorSpec.inverseOnSurface()}shadow(){return i.colorSpec.shadow()}scrim(){return i.colorSpec.scrim()}surfaceTint(){return i.colorSpec.surfaceTint()}primary(){return i.colorSpec.primary()}primaryDim(){return i.colorSpec.primaryDim()}onPrimary(){return i.colorSpec.onPrimary()}primaryContainer(){return i.colorSpec.primaryContainer()}onPrimaryContainer(){return i.colorSpec.onPrimaryContainer()}inversePrimary(){return i.colorSpec.inversePrimary()}primaryFixed(){return i.colorSpec.primaryFixed()}primaryFixedDim(){return i.colorSpec.primaryFixedDim()}onPrimaryFixed(){return i.colorSpec.onPrimaryFixed()}onPrimaryFixedVariant(){return i.colorSpec.onPrimaryFixedVariant()}secondary(){return i.colorSpec.secondary()}secondaryDim(){return i.colorSpec.secondaryDim()}onSecondary(){return i.colorSpec.onSecondary()}secondaryContainer(){return i.colorSpec.secondaryContainer()}onSecondaryContainer(){return i.colorSpec.onSecondaryContainer()}secondaryFixed(){return i.colorSpec.secondaryFixed()}secondaryFixedDim(){return i.colorSpec.secondaryFixedDim()}onSecondaryFixed(){return i.colorSpec.onSecondaryFixed()}onSecondaryFixedVariant(){return i.colorSpec.onSecondaryFixedVariant()}tertiary(){return i.colorSpec.tertiary()}tertiaryDim(){return i.colorSpec.tertiaryDim()}onTertiary(){return i.colorSpec.onTertiary()}tertiaryContainer(){return i.colorSpec.tertiaryContainer()}onTertiaryContainer(){return i.colorSpec.onTertiaryContainer()}tertiaryFixed(){return i.colorSpec.tertiaryFixed()}tertiaryFixedDim(){return i.colorSpec.tertiaryFixedDim()}onTertiaryFixed(){return i.colorSpec.onTertiaryFixed()}onTertiaryFixedVariant(){return i.colorSpec.onTertiaryFixedVariant()}error(){return i.colorSpec.error()}errorDim(){return i.colorSpec.errorDim()}onError(){return i.colorSpec.onError()}errorContainer(){return i.colorSpec.errorContainer()}onErrorContainer(){return i.colorSpec.onErrorContainer()}static highestSurface(t){return i.colorSpec.highestSurface(t)}};b.contentAccentToneDelta=15;b.colorSpec=new hr;b.primaryPaletteKeyColor=b.colorSpec.primaryPaletteKeyColor();b.secondaryPaletteKeyColor=b.colorSpec.secondaryPaletteKeyColor();b.tertiaryPaletteKeyColor=b.colorSpec.tertiaryPaletteKeyColor();b.neutralPaletteKeyColor=b.colorSpec.neutralPaletteKeyColor();b.neutralVariantPaletteKeyColor=b.colorSpec.neutralVariantPaletteKeyColor();b.background=b.colorSpec.background();b.onBackground=b.colorSpec.onBackground();b.surface=b.colorSpec.surface();b.surfaceDim=b.colorSpec.surfaceDim();b.surfaceBright=b.colorSpec.surfaceBright();b.surfaceContainerLowest=b.colorSpec.surfaceContainerLowest();b.surfaceContainerLow=b.colorSpec.surfaceContainerLow();b.surfaceContainer=b.colorSpec.surfaceContainer();b.surfaceContainerHigh=b.colorSpec.surfaceContainerHigh();b.surfaceContainerHighest=b.colorSpec.surfaceContainerHighest();b.onSurface=b.colorSpec.onSurface();b.surfaceVariant=b.colorSpec.surfaceVariant();b.onSurfaceVariant=b.colorSpec.onSurfaceVariant();b.inverseSurface=b.colorSpec.inverseSurface();b.inverseOnSurface=b.colorSpec.inverseOnSurface();b.outline=b.colorSpec.outline();b.outlineVariant=b.colorSpec.outlineVariant();b.shadow=b.colorSpec.shadow();b.scrim=b.colorSpec.scrim();b.surfaceTint=b.colorSpec.surfaceTint();b.primary=b.colorSpec.primary();b.onPrimary=b.colorSpec.onPrimary();b.primaryContainer=b.colorSpec.primaryContainer();b.onPrimaryContainer=b.colorSpec.onPrimaryContainer();b.inversePrimary=b.colorSpec.inversePrimary();b.secondary=b.colorSpec.secondary();b.onSecondary=b.colorSpec.onSecondary();b.secondaryContainer=b.colorSpec.secondaryContainer();b.onSecondaryContainer=b.colorSpec.onSecondaryContainer();b.tertiary=b.colorSpec.tertiary();b.onTertiary=b.colorSpec.onTertiary();b.tertiaryContainer=b.colorSpec.tertiaryContainer();b.onTertiaryContainer=b.colorSpec.onTertiaryContainer();b.error=b.colorSpec.error();b.onError=b.colorSpec.onError();b.errorContainer=b.colorSpec.errorContainer();b.onErrorContainer=b.colorSpec.onErrorContainer();b.primaryFixed=b.colorSpec.primaryFixed();b.primaryFixedDim=b.colorSpec.primaryFixedDim();b.onPrimaryFixed=b.colorSpec.onPrimaryFixed();b.onPrimaryFixedVariant=b.colorSpec.onPrimaryFixedVariant();b.secondaryFixed=b.colorSpec.secondaryFixed();b.secondaryFixedDim=b.colorSpec.secondaryFixedDim();b.onSecondaryFixed=b.colorSpec.onSecondaryFixed();b.onSecondaryFixedVariant=b.colorSpec.onSecondaryFixedVariant();b.tertiaryFixed=b.colorSpec.tertiaryFixed();b.tertiaryFixedDim=b.colorSpec.tertiaryFixedDim();b.onTertiaryFixed=b.colorSpec.onTertiaryFixed();b.onTertiaryFixedVariant=b.colorSpec.onTertiaryFixedVariant();var J=class i{static maybeFallbackSpecVersion(t,r){switch(r){case f.EXPRESSIVE:case f.VIBRANT:case f.TONAL_SPOT:case f.NEUTRAL:return t;default:return "2021"}}constructor(t){this.sourceColorArgb=t.sourceColorHct.toInt(),this.variant=t.variant,this.contrastLevel=t.contrastLevel,this.isDark=t.isDark,this.platform=t.platform??"phone",this.specVersion=i.maybeFallbackSpecVersion(t.specVersion??"2021",this.variant),this.sourceColorHct=t.sourceColorHct,this.primaryPalette=t.primaryPalette??vt(this.specVersion).getPrimaryPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.secondaryPalette=t.secondaryPalette??vt(this.specVersion).getSecondaryPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.tertiaryPalette=t.tertiaryPalette??vt(this.specVersion).getTertiaryPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralPalette=t.neutralPalette??vt(this.specVersion).getNeutralPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralVariantPalette=t.neutralVariantPalette??vt(this.specVersion).getNeutralVariantPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.errorPalette=t.errorPalette??vt(this.specVersion).getErrorPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel)??_.fromHueAndChroma(25,84),this.colors=new b;}toString(){return `Scheme: variant=${f[this.variant]}, mode=${this.isDark?"dark":"light"}, platform=${this.platform}, contrastLevel=${this.contrastLevel.toFixed(1)}, seed=${this.sourceColorHct.toString()}, specVersion=${this.specVersion}`}static getPiecewiseHue(t,r,l){let c=Math.min(r.length-1,l.length),d=t.hue;for(let h=0;h<c;h++)if(d>=r[h]&&d<r[h+1])return he(l[h]);return d}static getRotatedHue(t,r,l){let c=i.getPiecewiseHue(t,r,l);return Math.min(r.length-1,l.length)<=0&&(c=0),he(t.hue+c)}getArgb(t){return t.getArgb(this)}getHct(t){return t.getHct(this)}get primaryPaletteKeyColor(){return this.getArgb(this.colors.primaryPaletteKeyColor())}get secondaryPaletteKeyColor(){return this.getArgb(this.colors.secondaryPaletteKeyColor())}get tertiaryPaletteKeyColor(){return this.getArgb(this.colors.tertiaryPaletteKeyColor())}get neutralPaletteKeyColor(){return this.getArgb(this.colors.neutralPaletteKeyColor())}get neutralVariantPaletteKeyColor(){return this.getArgb(this.colors.neutralVariantPaletteKeyColor())}get errorPaletteKeyColor(){return this.getArgb(this.colors.errorPaletteKeyColor())}get background(){return this.getArgb(this.colors.background())}get onBackground(){return this.getArgb(this.colors.onBackground())}get surface(){return this.getArgb(this.colors.surface())}get surfaceDim(){return this.getArgb(this.colors.surfaceDim())}get surfaceBright(){return this.getArgb(this.colors.surfaceBright())}get surfaceContainerLowest(){return this.getArgb(this.colors.surfaceContainerLowest())}get surfaceContainerLow(){return this.getArgb(this.colors.surfaceContainerLow())}get surfaceContainer(){return this.getArgb(this.colors.surfaceContainer())}get surfaceContainerHigh(){return this.getArgb(this.colors.surfaceContainerHigh())}get surfaceContainerHighest(){return this.getArgb(this.colors.surfaceContainerHighest())}get onSurface(){return this.getArgb(this.colors.onSurface())}get surfaceVariant(){return this.getArgb(this.colors.surfaceVariant())}get onSurfaceVariant(){return this.getArgb(this.colors.onSurfaceVariant())}get inverseSurface(){return this.getArgb(this.colors.inverseSurface())}get inverseOnSurface(){return this.getArgb(this.colors.inverseOnSurface())}get outline(){return this.getArgb(this.colors.outline())}get outlineVariant(){return this.getArgb(this.colors.outlineVariant())}get shadow(){return this.getArgb(this.colors.shadow())}get scrim(){return this.getArgb(this.colors.scrim())}get surfaceTint(){return this.getArgb(this.colors.surfaceTint())}get primary(){return this.getArgb(this.colors.primary())}get primaryDim(){let t=this.colors.primaryDim();if(t===void 0)throw new Error("`primaryDim` color is undefined prior to 2025 spec.");return this.getArgb(t)}get onPrimary(){return this.getArgb(this.colors.onPrimary())}get primaryContainer(){return this.getArgb(this.colors.primaryContainer())}get onPrimaryContainer(){return this.getArgb(this.colors.onPrimaryContainer())}get primaryFixed(){return this.getArgb(this.colors.primaryFixed())}get primaryFixedDim(){return this.getArgb(this.colors.primaryFixedDim())}get onPrimaryFixed(){return this.getArgb(this.colors.onPrimaryFixed())}get onPrimaryFixedVariant(){return this.getArgb(this.colors.onPrimaryFixedVariant())}get inversePrimary(){return this.getArgb(this.colors.inversePrimary())}get secondary(){return this.getArgb(this.colors.secondary())}get secondaryDim(){let t=this.colors.secondaryDim();if(t===void 0)throw new Error("`secondaryDim` color is undefined prior to 2025 spec.");return this.getArgb(t)}get onSecondary(){return this.getArgb(this.colors.onSecondary())}get secondaryContainer(){return this.getArgb(this.colors.secondaryContainer())}get onSecondaryContainer(){return this.getArgb(this.colors.onSecondaryContainer())}get secondaryFixed(){return this.getArgb(this.colors.secondaryFixed())}get secondaryFixedDim(){return this.getArgb(this.colors.secondaryFixedDim())}get onSecondaryFixed(){return this.getArgb(this.colors.onSecondaryFixed())}get onSecondaryFixedVariant(){return this.getArgb(this.colors.onSecondaryFixedVariant())}get tertiary(){return this.getArgb(this.colors.tertiary())}get tertiaryDim(){let t=this.colors.tertiaryDim();if(t===void 0)throw new Error("`tertiaryDim` color is undefined prior to 2025 spec.");return this.getArgb(t)}get onTertiary(){return this.getArgb(this.colors.onTertiary())}get tertiaryContainer(){return this.getArgb(this.colors.tertiaryContainer())}get onTertiaryContainer(){return this.getArgb(this.colors.onTertiaryContainer())}get tertiaryFixed(){return this.getArgb(this.colors.tertiaryFixed())}get tertiaryFixedDim(){return this.getArgb(this.colors.tertiaryFixedDim())}get onTertiaryFixed(){return this.getArgb(this.colors.onTertiaryFixed())}get onTertiaryFixedVariant(){return this.getArgb(this.colors.onTertiaryFixedVariant())}get error(){return this.getArgb(this.colors.error())}get errorDim(){let t=this.colors.errorDim();if(t===void 0)throw new Error("`errorDim` color is undefined prior to 2025 spec.");return this.getArgb(t)}get onError(){return this.getArgb(this.colors.onError())}get errorContainer(){return this.getArgb(this.colors.errorContainer())}get onErrorContainer(){return this.getArgb(this.colors.onErrorContainer())}};J.DEFAULT_SPEC_VERSION="2021";J.DEFAULT_PLATFORM="phone";var fr=class{getPrimaryPalette(t,r,l,c,d){switch(t){case f.CONTENT:case f.FIDELITY:return _.fromHueAndChroma(r.hue,r.chroma);case f.FRUIT_SALAD:return _.fromHueAndChroma(he(r.hue-50),48);case f.MONOCHROME:return _.fromHueAndChroma(r.hue,0);case f.NEUTRAL:return _.fromHueAndChroma(r.hue,12);case f.RAINBOW:return _.fromHueAndChroma(r.hue,48);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,36);case f.EXPRESSIVE:return _.fromHueAndChroma(he(r.hue+240),40);case f.VIBRANT:return _.fromHueAndChroma(r.hue,200);default:throw new Error(`Unsupported variant: ${t}`)}}getSecondaryPalette(t,r,l,c,d){switch(t){case f.CONTENT:case f.FIDELITY:return _.fromHueAndChroma(r.hue,Math.max(r.chroma-32,r.chroma*.5));case f.FRUIT_SALAD:return _.fromHueAndChroma(he(r.hue-50),36);case f.MONOCHROME:return _.fromHueAndChroma(r.hue,0);case f.NEUTRAL:return _.fromHueAndChroma(r.hue,8);case f.RAINBOW:return _.fromHueAndChroma(r.hue,16);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,16);case f.EXPRESSIVE:return _.fromHueAndChroma(J.getRotatedHue(r,[0,21,51,121,151,191,271,321,360],[45,95,45,20,45,90,45,45,45]),24);case f.VIBRANT:return _.fromHueAndChroma(J.getRotatedHue(r,[0,41,61,101,131,181,251,301,360],[18,15,10,12,15,18,15,12,12]),24);default:throw new Error(`Unsupported variant: ${t}`)}}getTertiaryPalette(t,r,l,c,d){switch(t){case f.CONTENT:return _.fromHct(lt.fixIfDisliked(new Vt(r).analogous(3,6)[2]));case f.FIDELITY:return _.fromHct(lt.fixIfDisliked(new Vt(r).complement));case f.FRUIT_SALAD:return _.fromHueAndChroma(r.hue,36);case f.MONOCHROME:return _.fromHueAndChroma(r.hue,0);case f.NEUTRAL:return _.fromHueAndChroma(r.hue,16);case f.RAINBOW:case f.TONAL_SPOT:return _.fromHueAndChroma(he(r.hue+60),24);case f.EXPRESSIVE:return _.fromHueAndChroma(J.getRotatedHue(r,[0,21,51,121,151,191,271,321,360],[120,120,20,45,20,15,20,120,120]),32);case f.VIBRANT:return _.fromHueAndChroma(J.getRotatedHue(r,[0,41,61,101,131,181,251,301,360],[35,30,20,25,30,35,30,25,25]),32);default:throw new Error(`Unsupported variant: ${t}`)}}getNeutralPalette(t,r,l,c,d){switch(t){case f.CONTENT:case f.FIDELITY:return _.fromHueAndChroma(r.hue,r.chroma/8);case f.FRUIT_SALAD:return _.fromHueAndChroma(r.hue,10);case f.MONOCHROME:return _.fromHueAndChroma(r.hue,0);case f.NEUTRAL:return _.fromHueAndChroma(r.hue,2);case f.RAINBOW:return _.fromHueAndChroma(r.hue,0);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,6);case f.EXPRESSIVE:return _.fromHueAndChroma(he(r.hue+15),8);case f.VIBRANT:return _.fromHueAndChroma(r.hue,10);default:throw new Error(`Unsupported variant: ${t}`)}}getNeutralVariantPalette(t,r,l,c,d){switch(t){case f.CONTENT:return _.fromHueAndChroma(r.hue,r.chroma/8+4);case f.FIDELITY:return _.fromHueAndChroma(r.hue,r.chroma/8+4);case f.FRUIT_SALAD:return _.fromHueAndChroma(r.hue,16);case f.MONOCHROME:return _.fromHueAndChroma(r.hue,0);case f.NEUTRAL:return _.fromHueAndChroma(r.hue,2);case f.RAINBOW:return _.fromHueAndChroma(r.hue,0);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,8);case f.EXPRESSIVE:return _.fromHueAndChroma(he(r.hue+15),12);case f.VIBRANT:return _.fromHueAndChroma(r.hue,12);default:throw new Error(`Unsupported variant: ${t}`)}}getErrorPalette(t,r,l,c,d){}},Kr=class i extends fr{getPrimaryPalette(t,r,l,c,d){switch(t){case f.NEUTRAL:return _.fromHueAndChroma(r.hue,c==="phone"?F.isBlue(r.hue)?12:8:F.isBlue(r.hue)?16:12);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,c==="phone"&&l?26:32);case f.EXPRESSIVE:return _.fromHueAndChroma(r.hue,c==="phone"?l?36:48:40);case f.VIBRANT:return _.fromHueAndChroma(r.hue,c==="phone"?74:56);default:return super.getPrimaryPalette(t,r,l,c,d)}}getSecondaryPalette(t,r,l,c,d){switch(t){case f.NEUTRAL:return _.fromHueAndChroma(r.hue,c==="phone"?F.isBlue(r.hue)?6:4:F.isBlue(r.hue)?10:6);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,16);case f.EXPRESSIVE:return _.fromHueAndChroma(J.getRotatedHue(r,[0,105,140,204,253,278,300,333,360],[-160,155,-100,96,-96,-156,-165,-160]),c==="phone"&&l?16:24);case f.VIBRANT:return _.fromHueAndChroma(J.getRotatedHue(r,[0,38,105,140,333,360],[-14,10,-14,10,-14]),c==="phone"?56:36);default:return super.getSecondaryPalette(t,r,l,c,d)}}getTertiaryPalette(t,r,l,c,d){switch(t){case f.NEUTRAL:return _.fromHueAndChroma(J.getRotatedHue(r,[0,38,105,161,204,278,333,360],[-32,26,10,-39,24,-15,-32]),c==="phone"?20:36);case f.TONAL_SPOT:return _.fromHueAndChroma(J.getRotatedHue(r,[0,20,71,161,333,360],[-40,48,-32,40,-32]),c==="phone"?28:32);case f.EXPRESSIVE:return _.fromHueAndChroma(J.getRotatedHue(r,[0,105,140,204,253,278,300,333,360],[-165,160,-105,101,-101,-160,-170,-165]),48);case f.VIBRANT:return _.fromHueAndChroma(J.getRotatedHue(r,[0,38,71,105,140,161,253,333,360],[-72,35,24,-24,62,50,62,-72]),56);default:return super.getTertiaryPalette(t,r,l,c,d)}}static getExpressiveNeutralHue(t){return J.getRotatedHue(t,[0,71,124,253,278,300,360],[10,0,10,0,10,0])}static getExpressiveNeutralChroma(t,r,l){let c=i.getExpressiveNeutralHue(t);return l==="phone"?r?F.isYellow(c)?6:14:18:12}static getVibrantNeutralHue(t){return J.getRotatedHue(t,[0,38,105,140,333,360],[-14,10,-14,10,-14])}static getVibrantNeutralChroma(t,r){let l=i.getVibrantNeutralHue(t);return r==="phone"||F.isBlue(l)?28:20}getNeutralPalette(t,r,l,c,d){switch(t){case f.NEUTRAL:return _.fromHueAndChroma(r.hue,c==="phone"?1.4:6);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,c==="phone"?5:10);case f.EXPRESSIVE:return _.fromHueAndChroma(i.getExpressiveNeutralHue(r),i.getExpressiveNeutralChroma(r,l,c));case f.VIBRANT:return _.fromHueAndChroma(i.getVibrantNeutralHue(r),i.getVibrantNeutralChroma(r,c));default:return super.getNeutralPalette(t,r,l,c,d)}}getNeutralVariantPalette(t,r,l,c,d){switch(t){case f.NEUTRAL:return _.fromHueAndChroma(r.hue,(c==="phone"?1.4:6)*2.2);case f.TONAL_SPOT:return _.fromHueAndChroma(r.hue,(c==="phone"?5:10)*1.7);case f.EXPRESSIVE:let h=i.getExpressiveNeutralHue(r),p=i.getExpressiveNeutralChroma(r,l,c);return _.fromHueAndChroma(h,p*(h>=105&&h<125?1.6:2.3));case f.VIBRANT:let x=i.getVibrantNeutralHue(r),w=i.getVibrantNeutralChroma(r,c);return _.fromHueAndChroma(x,w*1.29);default:return super.getNeutralVariantPalette(t,r,l,c,d)}}getErrorPalette(t,r,l,c,d){let h=J.getPiecewiseHue(r,[0,3,13,23,33,43,153,273,360],[12,22,32,12,22,32,22,12]);switch(t){case f.NEUTRAL:return _.fromHueAndChroma(h,c==="phone"?50:40);case f.TONAL_SPOT:return _.fromHueAndChroma(h,c==="phone"?60:48);case f.EXPRESSIVE:return _.fromHueAndChroma(h,c==="phone"?64:48);case f.VIBRANT:return _.fromHueAndChroma(h,c==="phone"?80:60);default:return super.getErrorPalette(t,r,l,c,d)}}},vl=new fr,xl=new Kr;function vt(i){return i==="2025"?xl:vl}var mr=class extends J{constructor(t,r,l,c=J.DEFAULT_SPEC_VERSION,d=J.DEFAULT_PLATFORM){super({sourceColorHct:t,variant:f.VIBRANT,contrastLevel:l,isDark:r,platform:d,specVersion:c});}};function Xr(i){let t=Et(i),r=Nt(i),l=Lt(i),c=[t.toString(16),r.toString(16),l.toString(16)];for(let[d,h]of c.entries())h.length===1&&(c[d]="0"+h);return "#"+c.join("")}function na(i){i=i.replace("#","");let t=i.length===3,r=i.length===6,l=i.length===8;if(!t&&!r&&!l)throw new Error("unexpected hex "+i);let c=0,d=0,h=0;return t?(c=$e(i.slice(0,1).repeat(2)),d=$e(i.slice(1,2).repeat(2)),h=$e(i.slice(2,3).repeat(2))):r?(c=$e(i.slice(0,2)),d=$e(i.slice(2,4)),h=$e(i.slice(4,6))):l&&(c=$e(i.slice(2,4)),d=$e(i.slice(4,6)),h=$e(i.slice(6,8))),(255<<24|(c&255)<<16|(d&255)<<8|h&255)>>>0}function $e(i){return parseInt(i,16)}function xt(i,t){let r=F.fromInt(na(i)),l=new mr(r,t,0),c={},d=["primary","onPrimary","primaryContainer","onPrimaryContainer","secondary","onSecondary","secondaryContainer","onSecondaryContainer","tertiary","onTertiary","tertiaryContainer","onTertiaryContainer","error","onError","errorContainer","onErrorContainer","background","onBackground","surface","onSurface","surfaceVariant","onSurfaceVariant","outline","outlineVariant","shadow","scrim","inverseSurface","inverseOnSurface","inversePrimary","surfaceDim","surfaceBright","surfaceContainerLowest","surfaceContainerLow","surfaceContainer","surfaceContainerHigh","surfaceContainerHighest"];for(let h of d){let p=b[h];p&&(c[h]=Xr(p.getArgb(l)));}return c}function et(i,t){let r=i.replace("#",""),l=parseInt(r.substring(0,2),16),c=parseInt(r.substring(2,4),16),d=parseInt(r.substring(4,6),16);return `rgba(${l}, ${c}, ${d}, ${t})`}function aa(i,t){let r=0,l=0,c=0;return i.length===4?(r=parseInt(i[1]+i[1],16),l=parseInt(i[2]+i[2],16),c=parseInt(i[3]+i[3],16)):i.length===7&&(r=parseInt(i.slice(1,3),16),l=parseInt(i.slice(3,5),16),c=parseInt(i.slice(5,7),16)),`rgba(${r}, ${l}, ${c}, ${t})`}function Ld(i){let t=i.replace("#",""),r=parseInt(t.substring(0,2),16),l=parseInt(t.substring(2,4),16),c=parseInt(t.substring(4,6),16);return .2126*r+.7152*l+.0722*c<128}var ia=react.createContext(null),Ml=xt("#6750A4",false),Hd=({children:i,seedColor:t="#6750A4",defaultColorScheme:r="auto"})=>{let l=react.useRef(t),[c,d]=react.useState(r),[h,p]=react.useState(()=>{let w=r==="dark";return r==="auto"&&typeof window<"u"&&(w=window.matchMedia("(prefers-color-scheme: dark)").matches),xt(l.current,w)});react.useEffect(()=>{if(c==="auto"&&typeof window<"u"){let w=window.matchMedia("(prefers-color-scheme: dark)"),k=S=>{p(xt(l.current,S.matches));};return w.addEventListener("change",k),()=>w.removeEventListener("change",k)}},[c]);let x=react.useMemo(()=>({themeColors:h,systemTheme:c,setThemeColors:w=>{l.current=w;let k=c==="dark";c==="auto"&&(k=typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches:false),p(xt(w,k));},setColorScheme:w=>{d(w);let k=w==="dark";w==="auto"&&(k=typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches:false),p(xt(l.current,k));}}),[h,c]);return jsxRuntime.jsx(ia.Provider,{value:x,children:i})},kt=()=>{let i=react.useContext(ia);return i||{themeColors:Ml,systemTheme:"auto",setThemeColors:()=>{throw new Error("[@zaide6137/m3-components-web] Wrap your app in <ThemeProvider>.")},setColorScheme:()=>{throw new Error("[@zaide6137/m3-components-web] Wrap your app in <ThemeProvider>.")}}};var yr=$n(Jr());var Qr=$n(Jr());var sa=react.forwardRef((i,t)=>{let{className:r,shape:l,type:c,hoverEffect:d=true,text:h,icon:p,onClick:x,disabled:w,loading:k=false}=i,{themeColors:S}=kt(),D=w?c==="filled"?{backgroundColor:et(S.onSurface,.12),color:et(S.onSurface,.38),border:"none"}:{backgroundColor:"transparent",color:et(S.onSurface,.38),border:`1px solid ${et(S.onSurface,.12)}`}:c==="filled"?{backgroundColor:S.primary,color:S.onPrimary,border:"none"}:{backgroundColor:"transparent",color:S.primary,border:`1px solid ${S.primary}`},C=40,m=l==="rounded-full"?32:l==="rounded-lg"?12:l==="rounded-md"?8:4;return jsxRuntime.jsx(framerMotion.motion.button,{disabled:w||k,onClick:!w&&!k?x:void 0,className:`${r||""} m3-components-button`,style:{backgroundColor:D.backgroundColor,color:D.color,border:D.border,borderRadius:"40px"},initial:{borderRadius:C},animate:{borderRadius:C},whileHover:!w&&!k&&d?{borderRadius:m,backgroundColor:c==="outlined"?et(S.primary,.08):S.primary}:{},transition:{ease:["easeIn","easeOut"],duration:.2},children:jsxRuntime.jsxs("div",{className:"m3-components-button-content",children:[k&&jsxRuntime.jsx("span",{style:{marginRight:"4px"},children:"... "}),p&&jsxRuntime.jsx("span",{className:"m3-components-button-icon",children:p}),jsxRuntime.jsx("span",{className:"m3-components-button-text",children:h})]})})});var la=({date:i,onPrev:t,onNext:r,onToday:l,view:c,onViewChange:d})=>{let{themeColors:h}=kt(),[p,x]=react.useState(false),w=(0, Qr.default)(),k=w.format("MMM").toUpperCase(),S=w.format("DD"),D=(0, Qr.default)(i).format("MMMM YYYY"),C=Math.ceil(w.date()/7),m=c.charAt(0).toUpperCase()+c.slice(1);return jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar",children:[jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-w1",children:[jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-date-box",style:{backgroundColor:h.surfaceContainerLowest,borderColor:h.outlineVariant},children:[jsxRuntime.jsx("div",{className:"m3-components-bigcalendar-toolbar-w2",style:{backgroundColor:h.primary},children:jsxRuntime.jsx("span",{className:"m3-components-bigcalendar-toolbar-date-month",style:{color:h.onPrimary},children:k})}),jsxRuntime.jsx("span",{className:"m3-components-bigcalendar-toolbar-date-day",style:{color:h.onSurface},children:S})]}),jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-w3",children:[jsxRuntime.jsx("div",{className:"m3-components-bigcalendar-toolbar-w4",children:jsxRuntime.jsx("div",{className:"m3-components-bigcalendar-toolbar-w5",children:jsxRuntime.jsx("h1",{className:"m3-components-bigcalendar-toolbar-title",style:{color:h.onSurface},children:D})})}),jsxRuntime.jsxs("span",{className:"m3-components-bigcalendar-toolbar-week-badge",style:{color:h.onSurfaceVariant,borderColor:h.outlineVariant},children:["Week ",C]})]})]}),jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-w6",children:[jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-nav-group",style:{borderColor:h.outlineVariant},children:[jsxRuntime.jsx("button",{onClick:t,className:"m3-components-bigcalendar-toolbar-nav-prev",style:{borderColor:h.outlineVariant,color:h.onSurface},children:jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"m3-components-bigcalendar-toolbar-nav-icon",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})})}),jsxRuntime.jsx("button",{onClick:l,className:"m3-components-bigcalendar-toolbar-nav-today",style:{color:h.onSurface},children:"Today"}),jsxRuntime.jsx("button",{onClick:r,className:"m3-components-bigcalendar-toolbar-nav-next",style:{borderColor:h.outlineVariant,color:h.onSurface},children:jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"m3-components-bigcalendar-toolbar-nav-icon",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})})]}),jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-w7",children:[jsxRuntime.jsxs("button",{onClick:()=>x(!p),className:"m3-components-bigcalendar-toolbar-dropdown-btn",style:{borderColor:h.outlineVariant,color:h.onSurface},children:[jsxRuntime.jsx("span",{className:"m3-components-bigcalendar-toolbar-dropdown-label",children:"View by:"}),m,jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:`m3-components-bigcalendar-toolbar-dropdown-icon ${p?"rotate-180":""}`,children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})]}),jsxRuntime.jsx(framerMotion.AnimatePresence,{children:p&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"m3-components-bigcalendar-toolbar-dropdown-backdrop",onClick:()=>x(false)}),jsxRuntime.jsx(framerMotion.motion.div,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.15},className:"m3-components-bigcalendar-toolbar-dropdown-menu",style:{backgroundColor:h.surfaceContainerHigh,borderColor:h.outlineVariant},children:["month","week","day"].map(v=>jsxRuntime.jsx("button",{onClick:()=>{d(v),x(false);},className:"m3-components-bigcalendar-toolbar-dropdown-item",style:{color:c===v?h.primary:h.onSurface},children:v.charAt(0).toUpperCase()+v.slice(1)},v))})]})})]}),jsxRuntime.jsx(sa,{type:"filled",shape:"rounded-lg",text:"+ Create",onClick:()=>{}})]})]})};var da=({event:i,onMouseEnter:t,onMouseLeave:r})=>{let l=i.resource,c=l.eventStyleFilled??true,d=l.eventStyle||{backgroundColor:l.eventSeedColor||"#6750A4",contentColor:"#FFFFFF"},h=c?d.backgroundColor:et(d.backgroundColor,.15),p=c?"transparent":d.backgroundColor,x=c?d.contentColor:d.backgroundColor,w=react.useRef(null),[k,S]=react.useState(1e3);react.useEffect(()=>{if(!w.current)return;let v=new ResizeObserver(T=>{window.requestAnimationFrame(()=>{T[0]&&S(T[0].contentRect.width);});});return v.observe(w.current),()=>v.disconnect()},[]);let D=k<120,C=k>=180;return jsxRuntime.jsx("div",{ref:w,className:"m3-components-bigcalendar-event",children:D?jsxRuntime.jsx(framerMotion.motion.div,{className:"m3-components-bigcalendar-event-dot",onMouseEnter:v=>t(v,l),onMouseLeave:r,style:{backgroundColor:h,borderColor:p==="transparent"?d.backgroundColor:p}}):jsxRuntime.jsx(framerMotion.motion.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},onMouseEnter:v=>t(v,l),onMouseLeave:r,className:"m3-components-bigcalendar-event-chip",style:{backgroundColor:h,color:x,border:c?"none":`1.5px solid ${p}`},children:jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-event-content",children:[jsxRuntime.jsx("span",{className:"m3-components-bigcalendar-event-title",children:i.title}),C&&jsxRuntime.jsxs("span",{className:"m3-components-bigcalendar-event-time",children:[i.start.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:true}),i.end&&i.end instanceof Date&&!isNaN(i.end.getTime())&&` - ${i.end.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:true})}`]}),l.eventTrailingIcon&&jsxRuntime.jsx("div",{className:"",style:{color:x},children:l.eventTrailingIcon})]})})})};var Ph=react.forwardRef((i,t)=>{let{currentDate:r,filterOptions:l,events:c,toolBar:d,filterBar:h,filterBy:p,backgroundMode:x,defaultView:w="month",enableAnimations:k=true,slideVariants:S={enter:L=>({x:L>0?"10%":"-10%",opacity:0}),center:{zIndex:1,x:0,opacity:1},exit:L=>({zIndex:0,x:L<0?"10%":"-10%",opacity:0})},transition:D={type:"spring",stiffness:300,damping:30,opacity:{duration:.2}},onEventClicked:C}=i,{themeColors:m}=kt(),v=r?new Date(r):new Date,T=reactBigCalendar.momentLocalizer(yr.default),Y=react.useMemo(()=>c?c.filter(L=>!p||p.length===0||p.includes("All")?true:p.every(me=>L.eventCategory?.includes(me))).map(L=>{let{eventTitle:me,eventStart:Oe,eventEnd:ke,...fe}=L;return {title:me,start:new Date(Oe),end:new Date(ke),resource:fe}}):[],[c,p]),H=react.useMemo(()=>({event:L=>jsxRuntime.jsx(da,{...L,onMouseEnter:()=>{},onMouseLeave:()=>{}})}),[]),[X,Z]=react.useState(0),[$,V]=react.useState(v),[z,U]=react.useState(w),[ne,ee]=react.useState(l),oe=()=>{Z(-1),V((0, yr.default)($).subtract(1,z).toDate());},be=()=>{Z(1),V((0, yr.default)($).add(1,z).toDate());},we=()=>{Z(0),V(new Date);};return react.useImperativeHandle(t,()=>({previousMonth:oe,nextMonth:be,jumpToNow:we})),jsxRuntime.jsxs(framerMotion.motion.div,{layout:true,style:{backgroundColor:m.surfaceContainerHigh,borderColor:m.outlineVariant,"--m3-primary":m.primary,"--m3-on-primary":m.onPrimary,"--m3-outline-variant":m.outlineVariant,"--m3-on-surface":m.onSurface,"--m3-on-surface-variant":m.onSurfaceVariant,"--m3-today-highlight":aa(m.primary,.03)},className:"m3-components-bigcalendar",children:[jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-w1",children:[jsxRuntime.jsx(la,{date:$,view:z,onViewChange:U,onPrev:oe,onNext:be,onToday:we}),h?h(l):jsxRuntime.jsx("div",{className:"m3-components-bigcalendar-filterbar-w1",children:l.map(L=>jsxRuntime.jsx("button",{onClick:()=>{ee(me=>me.includes(L)?me.filter(Oe=>Oe!==L):[...me,L]);},className:"m3-components-bigcalendar-filterbar-filterchip",style:{backgroundColor:ne.includes(L)?m.onSurface:"transparent",color:ne.includes(L)?m.surface:m.onSurfaceVariant,borderColor:ne.includes(L)?m.onSurface:m.outlineVariant},children:L},L))})]}),jsxRuntime.jsx("div",{style:{backgroundColor:m.outlineVariant},className:"m3-components-bigcalendar-divider"}),jsxRuntime.jsx("div",{className:"rbc-container-wrapper m3-components-bigcalendar-w2",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,custom:X,mode:"wait",children:jsxRuntime.jsx(framerMotion.motion.div,{custom:X,variants:S,initial:"enter",animate:"center",exit:"exit",transition:D,className:"m3-components-bigcalendar-viewport",children:jsxRuntime.jsx(reactBigCalendar.Calendar,{localizer:T,events:Y,date:$,view:z,onNavigate:L=>V(L),onView:L=>{(L==="month"||L==="week"||L==="day")&&U(L);},onSelectEvent:L=>C?.(L),toolbar:false,components:H,eventPropGetter:()=>({style:{backgroundColor:"transparent",border:"none",padding:"1px 2px"}})})},$.toISOString())})})]})});/*! Bundled license information:
|
|
6
6
|
|
|
7
7
|
moment/moment.js:
|
|
8
8
|
(*! moment.js *)
|