!(function (e, t) { if ('object' == typeof exports && 'undefined' != typeof module) { module.exports = t(); } else { if ('function' == typeof define && define.amd) { define(t); } else { (e = 'undefined' != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekday = t(); } } })(this, function () { 'use strict'; return function (e, t) { t.prototype.weekday = function (e) { var t = this.$locale().weekStart || 0; var i = this.$W; var n = (i < t ? i + 7 : i) - t; return this.$utils().u(e) ? n : this.subtract(n, 'day').add(e, 'day'); }; }; });