{"version":3,"file":"fuse-hdGN2EUi.js","sources":["../../../packages/vue3-gabe-daterange-picker/src/components/date_util/native.js","../../../packages/vue3-gabe-daterange-picker/src/components/dateUtilMixin.js","../../../packages/vue3-gabe-daterange-picker/src/components/Calendar.vue","../../../packages/vue3-gabe-daterange-picker/src/components/CalendarTime.vue","../../../packages/vue3-gabe-daterange-picker/src/components/CalendarRanges.vue","../../../packages/vue3-gabe-daterange-picker/src/directives/appendToBody.js","../../../packages/vue3-gabe-daterange-picker/src/components/DateRangePicker.vue","../../../node_modules/.pnpm/fuse.js@7.1.0/node_modules/fuse.js/dist/fuse.mjs"],"sourcesContent":["import {dateFormat, getWeek} from '../dateformat'\n\nconst DateUtil = {\n  isSame: (date1, date2, granularity ) => {\n    let dt1 = new Date(date1)\n    let dt2 = new Date(date2)\n    if(granularity === 'date') {\n      dt1.setHours(0,0,0,0);\n      dt2.setHours(0,0,0,0);\n    }\n    return dt1.getTime() === dt2.getTime()\n  },\n  daysInMonth: (year, month) => {\n    return new Date(year, month, 0).getDate()\n  },\n  weekNumber: (date) => {\n    return getWeek(date)\n  },\n  format: (date, mask) => {\n    return dateFormat(date, mask)\n  },\n  nextMonth: (date) => {\n    let nextMonthDate = new Date(date.getTime())\n    nextMonthDate.setDate(1)\n    nextMonthDate.setMonth(nextMonthDate.getMonth() + 1)\n    return nextMonthDate\n  },\n  prevMonth: (date) => {\n    let prevMonthDate = new Date(date.getTime())\n    prevMonthDate.setDate(1)\n    prevMonthDate.setMonth(prevMonthDate.getMonth() - 1)\n    return prevMonthDate\n  },\n  validateDateRange: (newDate, min, max) => {\n    let max_date = new Date(max);\n    let min_date = new Date(min);\n\n    if(max && newDate.getTime() > max_date.getTime()) {\n      return max_date;\n    }\n\n    if(min && newDate.getTime() < min_date.getTime()) {\n      return min_date;\n    }\n\n    return newDate;\n  },\n  localeData: (options) => {\n    let default_locale = {\n      direction: 'ltr',\n      format: 'mm/dd/yyyy',\n      separator: ' - ',\n      applyLabel: 'Apply',\n      cancelLabel: 'Cancel',\n      weekLabel: 'W',\n      customRangeLabel: 'Custom Range',\n      daysOfWeek: dateFormat.i18n.dayNames.slice(0, 7).map(d => d.substring(0, 2)),\n      monthNames: dateFormat.i18n.monthNames.slice(0, 12),\n      firstDay: 0\n    };\n\n    return {...default_locale, ...options }\n  },\n  yearMonth: (date) => {\n    let month = date.getMonth() + 1\n    return date.getFullYear() + (month < 10 ? '0':'') + month\n  },\n  isValidDate: (d) => {\n    return d instanceof Date && !isNaN(d);\n  }\n}\n\nexport default DateUtil\n","import DateUtil from \"../components/date_util/native\";\n\nexport default {\n  props: {\n    dateUtil: {\n      type: [Object, String],\n      default: 'native'\n    },\n  },\n  beforeCreate () {\n    this.$dateUtil = DateUtil;\n  }\n}\n","<template>\n  <table class=\"table-condensed\">\n    <thead>\n    <tr>\n      <th class=\"prev available\" @click=\"prevMonthClick\" tabindex=\"0\"><span/></th>\n      <th\n        v-if=\"showDropdowns\"\n        :colspan=\"showWeekNumbers ? 6 : 5\"\n        class=\"month\"\n      >\n        <div class=\"row mx-1\">\n          <select v-model=\"month\" class=\"monthselect col\">\n            <option v-for=\"(m, idx) in months\" :key=\"idx\" :value=\"m.value + 1\" :disabled=\"!m.enabled\">{{ m.label }}</option>\n          </select>\n\n          <select v-if=\"years\" v-model=\"year\" class=\"yearselect col\">\n            <option v-for=\"(y, idx) in years\" :key=\"idx\" :value=\"y\">{{ y }}</option>\n          </select>\n\n          <input v-else ref=\"yearInput\" type=\"number\" v-model=\"year\" @blur=\"checkYear\" class=\"yearinput col\"/>\n        </div>\n      </th>\n      <th v-else :colspan=\"showWeekNumbers ? 6 : 5\" class=\"month\">{{ monthName }} {{ year }}</th>\n      <th class=\"next available\" @click=\"nextMonthClick\" tabindex=\"0\"><span/></th>\n    </tr>\n    </thead>\n    <tbody>\n    <tr>\n      <th v-if=\"showWeekNumbers\" class=\"week\">{{ locale.weekLabel }}</th>\n      <th v-for=\"(weekDay, idx) in locale.daysOfWeek\" :key=\"idx\">{{ weekDay }}</th>\n    </tr>\n    <tr\n      v-for=\"(dateRow, index) in calendar\"\n      :key=\"index\"\n    >\n      <td v-if=\"showWeekNumbers && (index%7 || index===0)\" class=\"week\">\n        {{ $dateUtil.weekNumber(dateRow[0]) }}\n      </td>\n      <td\n        v-for=\"(date, idx) in dateRow\"\n        :class=\"dayClass(date)\"\n        @click=\"$emit('dateClick', date)\"\n        @mouseover=\"$emit('hoverDate', date)\"\n        :key=\"idx\"\n        :data-date=\"date.toISOString().substring(0, 10)\"\n      >\n        <slot name=\"date-slot\" :date=\"date\">\n          {{ date.getDate() }}\n        </slot>\n      </td>\n    </tr>\n    </tbody>\n  </table>\n</template>\n\n<script>\nimport dateUtilMixin from './dateUtilMixin'\n\nexport default {\n  mixins: [dateUtilMixin],\n  name: 'calendar',\n  emits: ['change-month', 'dateClick', 'hoverDate'],\n  props: {\n    monthDate: Date,\n    localeData: Object,\n    start: Date,\n    end: Date,\n    minDate: Date,\n    maxDate: Date,\n    showDropdowns: {\n      type: Boolean,\n      default: false,\n    },\n    showWeekNumbers: {\n      type: Boolean,\n      default: false,\n    },\n    dateFormat: {\n      type: Function,\n      default: null\n    }\n  },\n  data () {\n    let currentMonthDate = this.monthDate || this.start || new Date()\n    return {\n      currentMonthDate,\n      year_text: currentMonthDate.getFullYear(),\n    }\n  },\n  methods: {\n    prevMonthClick () {\n      this.changeMonthDate(this.$dateUtil.prevMonth(this.currentMonthDate))\n    },\n    nextMonthClick () {\n      this.changeMonthDate(this.$dateUtil.nextMonth(this.currentMonthDate))\n    },\n    changeMonthDate (date, emit = true) {\n      let year_month = this.$dateUtil.yearMonth(this.currentMonthDate)\n      this.currentMonthDate = this.$dateUtil.validateDateRange(date, this.minDate, this.maxDate)\n      // console.info(date, this.currentMonthDate)\n      if (emit && year_month !== this.$dateUtil.yearMonth(this.currentMonthDate)) {\n        this.$emit('change-month', {\n          month: this.currentMonthDate.getMonth() + 1,\n          year: this.currentMonthDate.getFullYear(),\n        })\n      }\n      this.checkYear()\n    },\n    dayClass (date) {\n      let dt = new Date(date)\n      dt.setHours(0, 0, 0, 0)\n      let start = new Date(this.start)\n      start.setHours(0, 0, 0, 0)\n      let end = new Date(this.end)\n      end.setHours(0, 0, 0, 0)\n\n      let dt_min_compare = new Date(dt);\n      dt_min_compare.setHours(23, 59, 59, 999)\n\n      let classes = {\n        off: date.getMonth() + 1 !== this.month,\n        weekend: date.getDay() === 6 || date.getDay() === 0,\n        today: dt.setHours(0, 0, 0, 0) == new Date().setHours(0, 0, 0, 0),\n        active: dt.setHours(0, 0, 0, 0) == new Date(this.start).setHours(0, 0, 0, 0) || dt.setHours(0, 0, 0, 0) == new Date(this.end).setHours(0, 0, 0, 0),\n        'in-range': dt >= start && dt <= end,\n        'start-date': dt.getTime() === start.getTime(),\n        'end-date': dt.getTime() === end.getTime(),\n        disabled: (this.minDate && dt_min_compare.getTime() < this.minDate.getTime())\n          || (this.maxDate && dt.getTime() > this.maxDate.getTime()),\n      }\n      return this.dateFormat ? this.dateFormat(classes, date) : classes\n\n    },\n    checkYear () {\n      if (this.$refs.yearInput !== document.activeElement) {\n        this.$nextTick(() => {\n          this.year_text = this.monthDate.getFullYear()\n        })\n      }\n    }\n  },\n  computed: {\n    monthName () {\n      return this.locale.monthNames[this.currentMonthDate.getMonth()]\n    },\n    year: {\n      get () {\n        //return this.currentMonthDate.getFullYear()\n        return this.year_text\n      },\n      set (value) {\n        this.year_text = value\n        let newDate = this.$dateUtil.validateDateRange(new Date(value, this.month, 1), this.minDate, this.maxDate)\n        if (this.$dateUtil.isValidDate(newDate)) {\n          this.$emit('change-month', {\n            month: newDate.getMonth(),\n            year: newDate.getFullYear(),\n          });\n        }\n      }\n    },\n    month: {\n      get () {\n        return this.currentMonthDate.getMonth() + 1\n      },\n      set (value) {\n        let newDate = this.$dateUtil.validateDateRange(new Date(this.year, value - 1, 1), this.minDate, this.maxDate)\n\n        this.$emit('change-month', {\n          month: newDate.getMonth() + 1,\n          year: newDate.getFullYear(),\n        });\n      }\n    },\n    calendar () {\n      let month = this.month\n      let year = this.currentMonthDate.getFullYear()\n      let firstDay = new Date(year, month - 1, 1)\n      let lastMonth = this.$dateUtil.prevMonth(firstDay).getMonth() + 1\n      let lastYear = this.$dateUtil.prevMonth(firstDay).getFullYear()\n      let daysInLastMonth = new Date(lastYear, month - 1, 0).getDate()\n\n      let dayOfWeek = firstDay.getDay()\n\n      let calendar = []\n\n      for (let i = 0; i < 6; i++) {\n        calendar[i] = [];\n      }\n\n      let startDay = daysInLastMonth - dayOfWeek + this.locale.firstDay + 1\n      if (startDay > daysInLastMonth)\n        startDay -= 7\n\n      if (dayOfWeek === this.locale.firstDay)\n        startDay = daysInLastMonth - 6;\n\n      let curDate = new Date(lastYear, lastMonth - 1, startDay, 12, 0, 0);\n      for (let i = 0, col = 0, row = 0; i < 6 * 7; i++, col++, curDate.setDate(curDate.getDate() + 1)) {\n        if (i > 0 && col % 7 === 0) {\n          col = 0;\n          row++;\n        }\n        calendar[row][col] = new Date(curDate.getTime())\n      }\n\n      return calendar\n    },\n    months () {\n      return this.locale.monthNames.map((m, idx) => ({\n        label: m,\n        value: idx,\n        enabled:\n          (!this.maxDate || (this.maxDate >= new Date(this.year, idx, 1))) &&\n          (!this.minDate || (this.minDate <= new Date(this.year, idx + 1, 0)))\n      }));\n    },\n    years() {\n      if (!this.minDate || !this.maxDate) {\n        return null;\n      }\n\n      const startYear = new Date(this.minDate).getFullYear();\n      const endYear = new Date(this.maxDate).getFullYear();\n      return Array.from({ length: endYear - startYear + 1 }, (_, i) => startYear + i);\n    },\n    locale() {\n      return this.$dateUtil.localeData(this.localeData)\n    }\n  },\n  watch: {\n    monthDate (value) {\n      if (this.currentMonthDate.getTime() !== value.getTime()) {\n        this.changeMonthDate(value, false)\n      }\n    }\n  }\n}\n</script>\n\n<style scoped lang=\"scss\">\nth, td {\n  padding: 2px;\n  background-color: white;\n}\n\ntd.today {\n  font-weight: bold;\n}\n\ntd.disabled {\n  pointer-events: none;\n  background-color: #eee;\n  border-radius: 0;\n  opacity: 0.6;\n}\n\n@function str-replace($string, $search, $replace: \"\") {\n  $index: str-index($string, $search);\n\n  @if $index {\n    @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);\n  }\n\n  @return $string;\n}\n\n$carousel-control-color: #ccc !default;\n$viewbox: '-2 -2 10 10';\n$carousel-control-prev-icon-bg: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='#{$viewbox}'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$carousel-control-next-icon-bg: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='#{$viewbox}'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n\n.fa {\n  display: inline-block;\n  width: 100%;\n  height: 100%;\n  background: transparent no-repeat center center;\n  background-size: 100% 100%;\n  fill: $carousel-control-color;\n}\n\n.prev, .next {\n  &:hover {\n    background-color: transparent !important;\n  }\n\n  .fa:hover {\n    opacity: 0.6;\n  }\n}\n\n.chevron-left {\n  width: 16px;\n  height: 16px;\n  display: block;\n  background-image: $carousel-control-prev-icon-bg;\n}\n\n.chevron-right {\n  width: 16px;\n  height: 16px;\n  display: block;\n  background-image: $carousel-control-next-icon-bg;\n}\n\n.monthselect, .yearselect, .yearinput {\n  border: none;\n}\n</style>\n","<template>\n  <div class=\"calendar-time\">\n    <select v-model=\"hour\" class=\"hourselect form-control mr-1\" :disabled=\"readonly\">\n      <option v-for=\"h in hours\"\n              :key=\"h\" :value=\"h\">{{formatNumber(h)}}\n      </option>\n    </select>\n    :<select v-model=\"minute\" class=\"minuteselect form-control ml-1\" :disabled=\"readonly\">\n      <option v-for=\"m in minutes\"\n        :key=\"m\" :value=\"m\" >{{formatNumber(m)}}</option>\n    </select>\n    <template v-if=\"secondPicker\">\n      :<select v-model=\"second\" class=\"secondselect form-control ml-1\" :disabled=\"readonly\">\n        <option v-for=\"s in 60\"\n          :key=\"s-1\" :value=\"s-1\">{{formatNumber(s-1)}}</option>\n      </select>\n    </template>\n    <select v-if=\"!hour24\" v-model=\"ampm\" class=\"ampmselect\" :disabled=\"readonly\">\n      <option value=\"AM\">AM</option>\n      <option value=\"PM\">PM</option>\n    </select>\n  </div>\n</template>\n\n<script>\n  export default {\n    props: {\n      miniuteIncrement: {\n        type: Number,\n        default: 5,\n      },\n      hour24: {\n        type: Boolean,\n        default: true,\n      },\n      secondPicker: {\n        type: Boolean,\n        default: false,\n      },\n      currentTime: {\n        default () {\n          return new Date()\n        }\n      },\n      readonly: {\n        type: Boolean,\n        default: false\n      }\n    },\n    data() {\n      let current = this.currentTime ? this.currentTime : new Date()\n      let hours = current.getHours();\n      return {\n        hour: this.hour24 ? hours : hours % 12 || 12,\n        minute: current.getMinutes() - (current.getMinutes() % this.miniuteIncrement),\n        second: current.getSeconds(),\n        ampm: hours < 12 ? 'AM' : 'PM',\n      };\n    },\n    computed: {\n      hours () {\n        let values = [];\n        let max = this.hour24? 24:12;\n        for(let i=0; i< max; i++) {\n          values.push(this.hour24? i:i+1);\n        }\n        return values;\n      },\n      minutes () {\n        let values = [];\n        let max = 60;\n        for(let i=0; i< max; i=i+this.miniuteIncrement) {\n          values.push(i);\n        }\n        return values;\n      },\n    },\n    watch: {\n      hour () {\n        this.onChange();\n      },\n      minute () {\n        this.onChange();\n      },\n      second () {\n        this.onChange();\n      },\n      ampm () {\n        this.onChange();\n      },\n    },\n    methods: {\n      formatNumber: (value) => {\n        if (value < 10) {\n          return '0' + value.toString();\n        }\n        return value.toString();\n      },\n      getHour() {\n        if (this.hour24) {\n          return this.hour;\n        } else {\n         if (this.hour === 12) {\n           return this.ampm === 'AM' ? 0 : 12;\n         } else {\n           return this.hour + (this.ampm === 'PM' ? 12 : 0);\n         }\n        }\n      },\n      onChange () {\n        this.$emit('update', {\n          hours: this.getHour(),\n          minutes: this.minute,\n          seconds: this.second,\n        });\n      }\n    },\n  }\n</script>\n","<template>\n    <div class=\"ranges\">\n        <ul v-if=\"ranges\">\n            <li\n                    v-for=\"range in listedRanges\"\n                    @click=\"clickRange(range.value)\"\n                    :data-range-key=\"range.label\"\n                    :key=\"range.label\"\n                    :class=\"range_class(range)\"\n                    tabindex=\"0\"\n            >{{range.label}}\n            </li>\n            <li\n              v-if=\"showCustomRangeLabel\"\n              :class=\"{ active: customRangeActive || !selectedRange }\"\n              @click=\"clickCustomRange\"\n              tabindex=\"0\"\n            >\n              {{localeData.customRangeLabel}}\n            </li>\n        </ul>\n    </div>\n</template>\n\n<script>\n  import dateUtilMixin from './dateUtilMixin'\n\n  export default {\n    mixins: [dateUtilMixin],\n    emits: ['clickRange', 'showCustomRange'],\n    props: {\n      ranges: Object,\n      selected: Object,\n      localeData: Object,\n      alwaysShowCalendars: Boolean,\n    },\n    data () {\n      return {\n        customRangeActive: false\n      }\n    },\n    methods: {\n      clickRange (range) {\n        this.customRangeActive = false\n        this.$emit('clickRange', range)\n      },\n      clickCustomRange () {\n        this.customRangeActive = true\n        this.$emit('showCustomRange')\n      },\n      range_class (range) {\n        return { active: range.selected === true };\n      }\n    },\n    computed: {\n      listedRanges () {\n        if(!this.ranges)\n          return false\n        return Object.keys(this.ranges).map(value => {\n          return {\n            label: value,\n            value: this.ranges[value],\n            selected:\n              this.$dateUtil.isSame(this.selected.startDate, this.ranges[value][0]) &&\n              this.$dateUtil.isSame(this.selected.endDate, this.ranges[value][1])\n          };\n        })\n      },\n      selectedRange () {\n        return this.listedRanges.find(r => r.selected === true)\n      },\n      showCustomRangeLabel () {\n        return !this.alwaysShowCalendars;\n      }\n    },\n  }\n</script>\n","export default {\n  mounted(el, { instance }) {\n    if (instance.appendToBody) {\n      const { height, top, left, width, right } = instance.$refs.toggle.getBoundingClientRect();\n\n      el.unbindPosition = instance.calculatePosition(el, instance, {\n        width: width,\n        top: (window.scrollY + top + height),\n        left: (window.scrollX + left),\n        right: right\n      });\n\n      document.body.appendChild(el);\n    } else {\n      instance.$el.appendChild(el);\n    }\n  },\n\n  unmounted(el, { instance }) {\n    if (instance.appendToBody) {\n      if (el.unbindPosition && typeof el.unbindPosition === 'function') {\n        el.unbindPosition();\n      }\n      if (el.parentNode) {\n        el.parentNode.removeChild(el);\n      }\n    }\n  },\n}\n","<template>\n  <div :class=\"['vue-daterange-picker', { inline: opens === 'inline' }]\">\n    <div\n      :class=\"controlContainerClass\"\n      @click=\"onClickPicker\"\n      ref=\"toggle\"\n    >\n      <!--\n        Allows you to change the input which is visible before the picker opens\n\n        @param {Date} startDate - current startDate\n        @param {Date} endDate - current endDate\n        @param {object} ranges - object with ranges\n        @param {string} rangeText - the calculated rangeText string\n      -->\n      <slot\n        name=\"input\"\n        :startDate=\"start\"\n        :endDate=\"end\"\n        :ranges=\"ranges\"\n        :rangeText=\"rangeText\"\n      >\n        <i class=\"glyphicon glyphicon-calendar fa fa-calendar\"></i>&nbsp;\n        <span>{{ rangeText }}</span>\n        <b class=\"caret\"></b>\n      </slot>\n    </div>\n    <transition name=\"slide-fade\" mode=\"out-in\">\n      <div\n        :class=\"['daterangepicker ltr', pickerStyles]\"\n        v-if=\"open || opens === 'inline'\"\n        v-append-to-body\n        ref=\"dropdown\"\n      >\n\n        <!--\n          Optional header slot (same props as footer) @see footer slot for documentation\n        -->\n        <slot name=\"header\"\n              :rangeText=\"rangeText\"\n              :locale=\"locale\"\n              :clickCancel=\"clickCancel\"\n              :clickApply=\"clickedApply\"\n              :in_selection=\"in_selection\"\n              :autoApply=\"autoApply\"\n        >\n        </slot>\n\n        <div class=\"calendars\">\n          <!--\n            Allows you to change the range\n\n            @param {Date} startDate - current startDate\n            @param {Date} endDate - current endDate\n            @param {object} ranges - object with ranges\n            @param {Fn} clickRange(dateRange) - call to select the dateRange - any two date objects or an object from tha ranges array\n          -->\n          <slot\n            name=\"ranges\"\n            :startDate=\"start\"\n            :endDate=\"end\"\n            :ranges=\"ranges\"\n            :clickRange=\"clickRange\"\n            v-if=\"showRanges\"\n          >\n            <calendar-ranges\n              @clickRange=\"clickRange\"\n              @showCustomRange=\"showCustomRangeCalendars=true\"\n              :always-show-calendars=\"alwaysShowCalendars\"\n              :locale-data=\"locale\"\n              :ranges=\"ranges\"\n              :selected=\"{ startDate: start, endDate: end }\"\n            ></calendar-ranges>\n          </slot>\n\n          <div class=\"calendars-container\" v-if=\"showCalendars\">\n            <div class=\"drp-calendar col left\" :class=\"{single: singleDatePicker}\">\n              <div class=\"daterangepicker_input d-none d-sm-block\" v-if=\"false\">\n                <input class=\"input-mini form-control\" type=\"text\" name=\"daterangepicker_start\"\n                       :value=\"startText\"/>\n                <i class=\"fa fa-calendar glyphicon glyphicon-calendar\"></i>\n              </div>\n              <div class=\"calendar-table\">\n                <calendar :monthDate=\"monthDate\"\n                          :locale-data=\"locale\"\n                          :start=\"start\" :end=\"end\"\n                          :minDate=\"min\" :maxDate=\"max\"\n                          :show-dropdowns=\"showDropdowns\"\n                          @change-month=\"changeLeftMonth\"\n                          :date-format=\"dateFormatFn\"\n                          @dateClick=\"dateClick\"\n                          @hoverDate=\"hoverDate\"\n                          :showWeekNumbers=\"showWeekNumbers\"\n                >\n                  <slot name=\"date\" slot=\"date-slot\" slot-scope=\"data\" v-bind=\"data\"></slot>\n                </calendar>\n              </div>\n              <calendar-time v-if=\"timePicker && start\"\n                             @update=\"onUpdateStartTime\"\n                             :miniute-increment=\"timePickerIncrement\"\n                             :hour24=\"timePicker24Hour\"\n                             :second-picker=\"timePickerSeconds\"\n                             :current-time=\"start\"\n                             :readonly=\"readonly\"\n              />\n            </div>\n\n            <div class=\"drp-calendar col right\" v-if=\"!singleDatePicker\">\n              <div class=\"daterangepicker_input\" v-if=\"false\">\n                <input class=\"input-mini form-control\" type=\"text\" name=\"daterangepicker_end\"\n                       :value=\"endText\"/>\n                <i class=\"fa fa-calendar glyphicon glyphicon-calendar\"></i>\n              </div>\n              <div class=\"calendar-table\">\n                <calendar :monthDate=\"nextMonthDate\"\n                          :locale-data=\"locale\"\n                          :start=\"start\" :end=\"end\"\n                          :minDate=\"min\" :maxDate=\"max\"\n                          :show-dropdowns=\"showDropdowns\"\n                          @change-month=\"changeRightMonth\"\n                          :date-format=\"dateFormatFn\"\n                          @dateClick=\"dateClick\"\n                          @hoverDate=\"hoverDate\"\n                          :showWeekNumbers=\"showWeekNumbers\"\n                >\n                  <!--\n                    Allows you to change date cell slot. By default it renders the day number\n\n                    @param {Date} date - the date being rendered into the table cell\n                  -->\n                  <slot name=\"date\" slot=\"date-slot\" slot-scope=\"data\" v-bind=\"data\"></slot>\n                </calendar>\n              </div>\n              <calendar-time v-if=\"timePicker && end\"\n                             @update=\"onUpdateEndTime\"\n                             :miniute-increment=\"timePickerIncrement\"\n                             :hour24=\"timePicker24Hour\"\n                             :second-picker=\"timePickerSeconds\"\n                             :current-time=\"end\"\n                             :readonly=\"readonly\"\n              />\n            </div>\n          </div>\n        </div>\n        <!--\n          Allows you to change footer of the component (where the buttons are)\n\n          @param {string} rangeText - the formatted date range by the component\n          @param {object} locale - the locale object @see locale prop\n          @param {function} clickCancel - function which is called when you want to cancel the range picking and reset old values\n          @param {function} clickApply -function which to call when you want to apply the selection\n          @param {boolean} in_selection - is the picker in selection mode\n          @param {boolean} autoApply - value of the autoApply prop (whether to select immediately)\n        -->\n        <slot name=\"footer\"\n              :rangeText=\"rangeText\"\n              :locale=\"locale\"\n              :clickCancel=\"clickCancel\"\n              :clickApply=\"clickedApply\"\n              :in_selection=\"in_selection\"\n              :autoApply=\"autoApply\"\n        >\n          <div class=\"drp-buttons\" v-if=\"!autoApply\">\n            <span class=\"drp-selected\" v-if=\"showCalendars\">{{ rangeText }}</span>\n            <button\n              class=\"cancelBtn btn btn-sm btn-secondary\"\n              type=\"button\"\n              @click=\"clickCancel\"\n              v-if=\"!readonly\"\n            >{{ locale.cancelLabel }}\n            </button>\n            <button\n              class=\"applyBtn btn btn-sm btn-success\"\n              :disabled=\"in_selection\"\n              type=\"button\"\n              @click=\"clickedApply\"\n              v-if=\"!readonly\"\n            >{{ locale.applyLabel }}\n            </button>\n          </div>\n        </slot>\n      </div>\n    </transition>\n  </div>\n</template>\n\n<script>\n  import dateUtilMixin from './dateUtilMixin';\n  import Calendar from './Calendar.vue';\n  import CalendarTime from './CalendarTime.vue';\n  import CalendarRanges from './CalendarRanges.vue';\n  import DateUtil from '../components/date_util/native';\n  import appendToBody from '../directives/appendToBody';\n\nexport default {\n  inheritAttrs: false,\n  components: {Calendar, CalendarTime, CalendarRanges},\n  mixins: [dateUtilMixin],\n  directives: {appendToBody},\n  emits: ['update:modelValue', 'change-month', 'startSelection', 'finishSelection', 'toggle', 'hoverDate', 'select'],\n  props: {\n    /**\n     * minimum date allowed to be selected\n     * @default null\n     */\n    minDate: {\n      type: [String, Date],\n      default () {\n        return null\n      }\n    },\n    /**\n     * maximum date allowed to be selected\n     * @default null\n     */\n    maxDate: {\n      type: [String, Date],\n      default () {\n        return null\n      }\n    },\n    /**\n     * Show the week numbers on the left side of the calendar\n     */\n    showWeekNumbers: {\n      type: Boolean,\n      default: false,\n    },\n    /**\n     * Each calendar has separate navigation when this is false\n     */\n    linkedCalendars: {\n      type: Boolean,\n      default: true,\n    },\n    /**\n     * Only show a single calendar, with or without ranges.\n     *\n     * Set true or 'single' for a single calendar with no ranges, single dates only.\n     * Set 'range' for a single calendar WITH ranges.\n     * Set false for a double calendar with ranges.\n     */\n    singleDatePicker: {\n      type: [Boolean, String],\n      default: false,\n    },\n    /**\n     * Show the dropdowns for month and year selection above the calendars\n     */\n    showDropdowns: {\n      type: Boolean,\n      default: false,\n    },\n    /**\n     * Show the dropdowns for time (hour/minute) selection below the calendars\n     */\n    timePicker: {\n      type: Boolean,\n      default: false,\n    },\n    /**\n     * Determines the increment of minutes in the minute dropdown\n     */\n    timePickerIncrement: {\n      type: Number,\n      default: 5,\n    },\n    /**\n     * Use 24h format for the time\n     */\n    timePicker24Hour: {\n      type: Boolean,\n      default: true,\n    },\n    /**\n     * Allows you to select seconds except hour/minute\n     */\n    timePickerSeconds: {\n      type: Boolean,\n      default: false,\n    },\n    /**\n     * Auto apply selected range. If false you need to click an apply button\n     */\n    autoApply: {\n      type: Boolean,\n      default: false,\n    },\n    /**\n     * Object containing locale data used by the picker. See example below the table\n     *\n     * @default *see below\n     */\n    localeData: {\n      type: Object,\n      default () {\n        return {}\n      },\n    },\n    /**\n     * This is the v-model prop which the component uses. This should be an object containing startDate and endDate props.\n     * Each of the props should be a string which can be parsed by Date, or preferably a Date Object.\n     * @default {\n     * startDate: null,\n     * endDate: null\n     * }\n     */\n    modelValue: { // for v-model\n      type: [Object],\n      default: null,\n      required: true\n    },\n    /**\n     * You can set this to false in order to hide the ranges selection. Otherwise it is an object with key/value. See below\n     * @default *see below\n     */\n    ranges: {\n      type: [Object, Boolean],\n      default () {\n        let today = new Date()\n        today.setHours(0, 0, 0, 0)\n        let todayEnd = new Date()\n        todayEnd.setHours(11, 59, 59, 999);\n\n        let yesterdayStart = new Date()\n        yesterdayStart.setDate(today.getDate() - 1)\n        yesterdayStart.setHours(0, 0, 0, 0);\n\n        let yesterdayEnd = new Date()\n        yesterdayEnd.setDate(today.getDate() - 1)\n        yesterdayEnd.setHours(11, 59, 59, 999);\n\n        let thisMonthStart = new Date(today.getFullYear(), today.getMonth(), 1);\n        let thisMonthEnd = new Date(today.getFullYear(), today.getMonth() + 1, 0, 11, 59, 59, 999);\n\n        return {\n          'Today': [today, todayEnd],\n          'Yesterday': [yesterdayStart, yesterdayEnd],\n          'This month': [thisMonthStart, thisMonthEnd],\n          'This year': [\n            new Date(today.getFullYear(), 0, 1),\n            new Date(today.getFullYear(), 11, 31, 11, 59, 59, 999)\n          ],\n          'Last month': [\n            new Date(today.getFullYear(), today.getMonth() - 1, 1),\n            new Date(today.getFullYear(), today.getMonth(), 0, 11, 59, 59, 999)\n          ],\n        }\n      }\n    },\n    /**\n     * which way the picker opens - \"center\", \"left\", \"right\" or \"inline\"\n     */\n    opens: {\n      type: String,\n      default: 'center'\n    },\n    /**\n     function(classes, date) - special prop type function which accepts 2 params:\n     \"classes\" - the classes that the component's logic has defined,\n     \"date\" - tha date currently processed.\n     You should return Vue class object which should be applied to the date rendered.\n     */\n    dateFormat: Function,\n    /**\n     * If set to false and one of the predefined ranges is selected then calendars are hidden.\n     * If no range is selected or you have clicked the \"Custom ranges\" then the calendars are shown.\n     */\n    alwaysShowCalendars: {\n      type: Boolean,\n      default: true\n    },\n    /**\n     * Disabled state. If true picker do not popup on click.\n     */\n    disabled: {\n      type: Boolean,\n      default: false,\n    },\n    /**\n     * Class of html picker control container\n     */\n    controlContainerClass: {\n      type: [Object, String],\n      default: 'form-control reportrange-text'\n    },\n    /**\n     * Append the dropdown element to the end of the body\n     * and size/position it dynamically. Use it if you have\n     * overflow or z-index issues.\n     * @type {Boolean}\n     */\n    appendToBody: {\n      type: Boolean,\n      default: false\n    },\n    /**\n     * When `appendToBody` is true, this function is responsible for\n     * positioning the drop down list.\n     *\n     * If a function is returned from `calculatePosition`, it will\n     * be called when the drop down list is removed from the DOM.\n     * This allows for any garbage collection you may need to do.\n     *\n     * @since v0.5.1\n     */\n    calculatePosition: {\n      type: Function,\n      /**\n       * @param dropdownList {HTMLUListElement}\n       * @param component {Vue} current instance of vue date range picker\n       * @param width {int} calculated width in pixels of the dropdown menu\n       * @param top {int} absolute position top value in pixels relative to the document\n       * @param left {int} absolute position left value in pixels relative to the document\n       * @param right {int} absolute position right value in pixels relative to the document\n       * @return {function|void}\n       */\n      default (dropdownList, component, {width, top, left, right}) {\n        // which way the picker opens - \"center\", \"left\" or \"right\"\n        if (component.opens === 'center') {\n          // console.log('center open', left, width)\n          dropdownList.style.left = (left + width / 2) + 'px'\n        } else if (component.opens === 'left') {\n          // console.log('left open', right, width)\n          dropdownList.style.right = (window.innerWidth - right) + 'px'\n        } else if (component.opens === 'right') {\n          // console.log('right open')\n          dropdownList.style.left = (left) + 'px'\n        }\n        dropdownList.style.top = top + 'px'\n        // dropdownList.style.width = width + 'px'\n      }\n    },\n    /**\n     * Whether to close the dropdown on \"esc\"\n     */\n    closeOnEsc: {\n      type: Boolean,\n      default: true\n    },\n    /**\n     * Makes the picker readonly. No button in footer. No ranges. Cannot change.\n     */\n    readonly: {\n      type: Boolean\n    }\n  },\n  data () {\n    //copy locale data object\n    const util = DateUtil;\n    let data = {locale: util.localeData({...this.localeData})}\n\n    let startDate = this.modelValue.startDate || null;\n    let endDate = this.modelValue.endDate || null;\n\n    data.monthDate = startDate ? new Date(startDate) : new Date()\n    //get next month date\n    data.nextMonthDate = util.nextMonth(data.monthDate)\n\n    data.start = startDate ? new Date(startDate) : null\n    if (this.singleDatePicker && this.singleDatePicker !== 'range') {\n      // ignore endDate for singleDatePicker\n      data.end = data.start\n    } else {\n      data.end = endDate ? new Date(endDate) : null\n    }\n    data.in_selection = false\n    data.open = false\n    //When alwaysShowCalendars = false and custom range is clicked\n    data.showCustomRangeCalendars = false\n\n    // update day names order to firstDay\n    if (data.locale.firstDay !== 0) {\n      let iterator = data.locale.firstDay\n      let weekDays = [...data.locale.daysOfWeek]\n      while (iterator > 0) {\n        weekDays.push(weekDays.shift())\n        iterator--\n      }\n      data.locale.daysOfWeek = weekDays\n    }\n    return data\n  },\n  methods: {\n    //calculate initial month selected in picker\n    selectMonthDate () {\n      let dt = this.end || new Date()\n      if (this.singleDatePicker !== false)\n        this.changeLeftMonth({year: dt.getFullYear(), month: dt.getMonth() + 1})\n      else\n        this.changeRightMonth({year: dt.getFullYear(), month: dt.getMonth() + 1})\n      // console.log('selectMonthDate', this.monthDate)\n    },\n    dateFormatFn (classes, date) {\n      let dt = new Date(date)\n      dt.setHours(0, 0, 0, 0)\n      let start = new Date(this.start)\n      start.setHours(0, 0, 0, 0)\n      let end = new Date(this.end)\n      end.setHours(0, 0, 0, 0)\n\n      classes['in-range'] = dt >= start && dt <= end\n\n      return this.dateFormat ? this.dateFormat(classes, date) : classes\n    },\n    changeLeftMonth (value) {\n      let newDate = new Date(value.year, value.month - 1, 1);\n      this.monthDate = newDate\n      if (this.linkedCalendars || (this.$dateUtil.yearMonth(this.monthDate) >= this.$dateUtil.yearMonth(this.nextMonthDate))) {\n        this.nextMonthDate = this.$dateUtil.validateDateRange(this.$dateUtil.nextMonth(newDate), this.minDate, this.maxDate);\n        // || this.singleDatePicker === 'range'\n        if ((!this.singleDatePicker) && this.$dateUtil.yearMonth(this.monthDate) === this.$dateUtil.yearMonth(this.nextMonthDate)) {\n          this.monthDate = this.$dateUtil.validateDateRange(this.$dateUtil.prevMonth(this.monthDate), this.minDate, this.maxDate)\n        }\n      }\n      /**\n       * Emits event when the viewing month is changes. The second param is the index of the calendar.\n       *\n       * @param {monthDate} date displayed (first day of the month)\n       * @param calendarIndex int 0 - first(left) calendar, 1 - second(right) calendar\n       */\n      this.$emit('change-month', this.monthDate, 0)\n    },\n    changeRightMonth (value) {\n      let newDate = new Date(value.year, value.month - 1, 1);\n      this.nextMonthDate = newDate\n      if (this.linkedCalendars || (this.$dateUtil.yearMonth(this.nextMonthDate) <= this.$dateUtil.yearMonth(this.monthDate))) {\n        this.monthDate = this.$dateUtil.validateDateRange(this.$dateUtil.prevMonth(newDate), this.minDate, this.maxDate);\n        if (this.$dateUtil.yearMonth(this.monthDate) === this.$dateUtil.yearMonth(this.nextMonthDate)) {\n          this.nextMonthDate = this.$dateUtil.validateDateRange(this.$dateUtil.nextMonth(this.nextMonthDate), this.minDate, this.maxDate)\n        }\n      }\n      //check for same month fix\n      if (this.$dateUtil.yearMonth(this.monthDate) === this.$dateUtil.yearMonth(this.nextMonthDate)) {\n        this.nextMonthDate = this.$dateUtil.nextMonth(this.nextMonthDate)\n      }\n\n      this.$emit('change-month', this.nextMonthDate, 1)\n    },\n    normalizeDatetime (value, oldValue) {\n      let newDate = new Date(value);\n      if (this.timePicker && oldValue) {\n        newDate.setHours(oldValue.getHours());\n        newDate.setMinutes(oldValue.getMinutes());\n        newDate.setSeconds(oldValue.getSeconds());\n        newDate.setMilliseconds(oldValue.getMilliseconds());\n      }\n\n      return newDate;\n    },\n    dateClick (value) {\n      if (this.readonly)\n        return false\n      if (this.in_selection) {\n        this.in_selection = false\n        // this.end = this.normalizeDatetime(value, this.end);\n        /**\n         * Emits event when the user clicks the second date and finishes selection\n         *\n         * @param {Date} date the date clicked\n         */\n        this.$emit('finishSelection', value)\n        this.onSelect();\n        if (this.autoApply)\n          this.clickedApply();\n      } else {\n        this.start = this.normalizeDatetime(value, this.start);\n        this.end = this.normalizeDatetime(value, this.end);\n        if (!this.singleDatePicker || this.singleDatePicker === 'range') {\n          this.in_selection = this.end\n          /**\n           * Emits event when the user clicks the first date and starts selection\n           *\n           * @param {Date} date the date clicked\n           */\n          this.$emit('startSelection', this.start)\n        } else {\n          this.onSelect();\n          if (this.autoApply)\n            this.clickedApply();\n        }\n      }\n    },\n    hoverDate (value) {\n      if (this.readonly)\n        return false\n      let dt_end = this.normalizeDatetime(value, this.end);\n      let dt_start = this.normalizeDatetime(value, this.start);\n      if (this.in_selection) {\n        if (this.in_selection <= dt_end) {\n          this.start = this.in_selection;\n          this.end = dt_end\n        }\n        if (this.in_selection >= dt_start) {\n          this.start = dt_start\n          this.end = this.in_selection;\n        }\n      }\n      /**\n       * Emits event when the mouse hovers a date\n       * @param {Date} value the date that is being hovered\n       */\n      this.$emit('hoverDate', value)\n    },\n    onClickPicker () {\n      if (!this.disabled) {\n        this.togglePicker(null, true)\n      }\n    },\n    togglePicker (value, event) {\n      if (typeof value === 'boolean') {\n        this.open = value\n      } else {\n        this.open = !this.open\n      }\n\n      if (event === true)\n        /**\n         * Emits whenever the picker opens/closes\n         * @param {boolean} open - the current state of the picker\n         * @param {Function} togglePicker - function (show, event) which can be used to control the picker. where \"show\" is the new state and \"event\" is boolean indicating whether a new event should be raised\n         */\n        this.$emit('toggle', this.open, this.togglePicker)\n\n    },\n    clickedApply () {\n      // this.open = false\n      this.togglePicker(false, true)\n      /**\n       * Emits when the user selects a range from the picker and clicks \"apply\" (if autoApply is true).\n       * @param {json} value - json object containing the dates: {startDate, endDate}\n       */\n      this.$emit('update:modelValue', {\n        startDate: this.start,\n        endDate: this.singleDatePicker && this.singleDatePicker !== 'range' ? this.start : this.end\n      })\n    },\n    clickCancel() {\n      if (this.open) {\n        // reset start and end\n        let startDate = this.modelValue.startDate\n        let endDate = this.modelValue.endDate\n        this.start = startDate ? new Date(startDate) : null\n        this.end = endDate ? new Date(endDate) : null\n        // this.open = false\n        this.in_selection = false;\n        this.togglePicker(false, true)\n      }\n    },\n    onSelect () {\n      /**\n       * Emits when the user selects a range from the picker.\n       * @param {json} value - json object containing the dates: {startDate, endDate}\n       */\n      this.$emit('select', {startDate: this.start, endDate: this.end})\n    },\n    clickAway ($event) {\n      if ($event && $event.target &&\n        !this.$el.contains($event.target) &&\n        this.$refs.dropdown &&\n        !this.$refs.dropdown.contains($event.target)) {\n        this.clickCancel()\n      }\n    },\n    clickRange (value) {\n      this.in_selection = false;\n\n      if (this.$dateUtil.isValidDate(value[0]) && this.$dateUtil.isValidDate(value[1])) {\n        this.start = this.$dateUtil.validateDateRange(new Date(value[0]), this.minDate, this.maxDate)\n        this.end = this.$dateUtil.validateDateRange(new Date(value[1]), this.minDate, this.maxDate)\n        this.changeLeftMonth({\n          month: this.start.getMonth() + 1,\n          year: this.start.getFullYear()\n        })\n\n        if (this.linkedCalendars === false) {\n          this.changeRightMonth({\n            month: this.end.getMonth() + 1,\n            year: this.end.getFullYear()\n          })\n        }\n      } else {\n        this.start = null\n        this.end = null\n      }\n\n      this.onSelect();\n\n      if (this.autoApply)\n        this.clickedApply()\n    },\n    onUpdateStartTime (value) {\n      let start = new Date(this.start);\n      start.setHours(value.hours);\n      start.setMinutes(value.minutes);\n      start.setSeconds(value.seconds);\n\n      this.start = this.$dateUtil.validateDateRange(start, this.minDate, this.maxDate);\n\n      // if autoapply is ON we should update the value on time selection change\n      if (this.autoApply) {\n        this.$emit('update:modelValue', {\n          startDate: this.start,\n          endDate: this.singleDatePicker && this.singleDatePicker !== 'range' ? this.start : this.end\n        })\n      }\n    },\n    onUpdateEndTime (value) {\n      let end = new Date(this.end);\n      end.setHours(value.hours);\n      end.setMinutes(value.minutes);\n      end.setSeconds(value.seconds);\n\n      this.end = this.$dateUtil.validateDateRange(end, this.minDate, this.maxDate);\n\n      // if autoapply is ON we should update the value on time selection change\n      if (this.autoApply) {\n        this.$emit('update:modelValue', {startDate: this.start, endDate: this.end})\n      }\n    },\n    handleEscape (e) {\n      if (this.open && e.keyCode === 27 && this.closeOnEsc) {\n        this.clickCancel()\n      }\n    },\n  },\n  computed: {\n    showRanges () {\n      return this.ranges !== false && !this.readonly\n    },\n    showCalendars () {\n      return this.alwaysShowCalendars || this.showCustomRangeCalendars\n    },\n    startText () {\n      if (this.start === null)\n        return ''\n      return this.$dateUtil.format(this.start, this.locale.format)\n    },\n    endText () {\n      if (this.end === null)\n        return ''\n      return this.$dateUtil.format(this.end, this.locale.format)\n    },\n    rangeText () {\n      let range = this.startText;\n      if (!this.singleDatePicker || this.singleDatePicker === 'range') {\n        range += this.locale.separator + this.endText;\n      }\n      return range;\n    },\n    min () {\n      return this.minDate ? new Date(this.minDate) : null\n    },\n    max () {\n      return this.maxDate ? new Date(this.maxDate) : null\n    },\n    pickerStyles () {\n      return {\n        'show-calendar': this.open || this.opens === 'inline',\n        'show-ranges': this.showRanges,\n        'show-weeknumbers': this.showWeekNumbers,\n        single: this.singleDatePicker,\n        ['opens' + this.opens]: true,\n        linked: this.linkedCalendars,\n        'hide-calendars': !this.showCalendars\n      }\n    },\n    isClear () {\n      return !this.modelValue.startDate || !this.modelValue.endDate\n    },\n    isDirty () {\n      let origStart = new Date(this.modelValue.startDate)\n      let origEnd = new Date(this.modelValue.endDate)\n\n      return !this.isClear && (this.start.getTime() !== origStart.getTime() || this.end.getTime() !== origEnd.getTime())\n    }\n  },\n  watch: {\n    minDate () {\n      this.selectMonthDate()\n      // let dt = this.$dateUtil.validateDateRange(this.monthDate, this.minDate || new Date(), this.maxDate)\n      // this.changeLeftMonth({year: dt.getFullYear(), month: dt.getMonth() + 1})\n    },\n    maxDate () {\n      this.selectMonthDate()\n      // let dt = this.$dateUtil.validateDateRange(this.nextMonthDate, this.minDate, this.maxDate || new Date())\n      // if (this.singleDatePicker !== false)\n      //   this.changeLeftMonth({year: dt.getFullYear(), month: dt.getMonth() + 1})\n      // else\n      //   this.changeRightMonth({year: dt.getFullYear(), month: dt.getMonth() + 1})\n    },\n    'modelValue.startDate'(value) {\n        if (!this.$dateUtil.isValidDate(new Date(value)))\n            return\n\n        this.start = (!!value && !this.isClear && this.$dateUtil.isValidDate(new Date(value))) ? new Date(value) : null\n        if (this.isClear) {\n            this.start = null\n            this.end = null\n        } else {\n            this.start = new Date(this.modelValue.startDate)\n            this.end = new Date(this.modelValue.endDate)\n      }\n    },\n    'modelValue.endDate'(value) {\n        if (!this.$dateUtil.isValidDate(new Date(value)))\n            return\n\n        this.end = (!!value && !this.isClear) ? new Date(value) : null\n        if (this.isClear) {\n            this.start = null\n            this.end = null\n        } else {\n            this.start = new Date(this.modelValue.startDate)\n            this.end = new Date(this.modelValue.endDate)\n        }\n    },\n    open: {\n      handler (value) {\n        if (typeof document === \"object\") {\n          this.selectMonthDate() //select initial visible months\n\n          this.$nextTick(() => {\n            value ? document.body.addEventListener('click', this.clickAway) : document.body.removeEventListener('click', this.clickAway)\n            value ? document.addEventListener('keydown', this.handleEscape) : document.removeEventListener('keydown', this.handleEscape)\n\n            if (!this.alwaysShowCalendars && this.ranges) {\n              this.showCustomRangeCalendars = !Object.keys(this.ranges)\n                .find(key => this.$dateUtil.isSame(this.start, this.ranges[key][0], 'date') && this.$dateUtil.isSame(this.end, this.ranges[key][1], 'date'))\n            }\n          })\n        }\n      },\n      immediate: true\n    }\n  }\n}\n\n</script>\n\n<style lang=\"scss\">\n@import '../assets/daterangepicker.scss';\n</style>\n\n<style lang=\"scss\" scoped>\n.calendars {\n  display: flex;\n  flex-wrap: wrap;\n}\n\n$week-width: 0px;\n\n.reportrange-text {\n  background: #fff;\n  cursor: pointer;\n  padding: 5px 10px;\n  border: 1px solid #ccc;\n  width: 100%;\n  overflow: hidden;\n}\n\n.daterangepicker {\n  flex-direction: column;\n  display: flex;\n  width: auto;\n\n  //les than 768\n  @media screen and (max-width: 768px) {\n    &.show-ranges {\n      .drp-calendar.left {\n        border-left: 0px;\n      }\n\n      .ranges {\n        border-bottom: 1px solid #ddd;\n        width: 100%;\n\n        ::v-deep ul {\n          display: flex;\n          flex-wrap: wrap;\n          width: auto;\n        }\n      }\n    }\n  }\n\n  @media screen and (max-width: 541px) {\n    .calendars-container {\n      flex-wrap: wrap;\n    }\n  }\n\n  /*from 540 to 768*/\n  @media screen and (min-width: 540px) {\n    min-width: 486px;\n    &.show-weeknumbers {\n      min-width: 486px + $week-width;\n    }\n  }\n\n  //more than 768\n  @media screen and (min-width: 768px) {\n    &.show-ranges {\n      min-width: 682px;\n\n      &.show-weeknumbers {\n        min-width: 682px + $week-width;\n      }\n    }\n  }\n\n  &.single {\n    @media screen and (max-width: 340px) {\n      min-width: 250px;\n\n      &.show-weeknumbers {\n        min-width: 250px + $week-width;\n      }\n    }\n\n    @media screen and (min-width: 339px) {\n      min-width: auto;\n      &.show-ranges {\n        min-width: 356px;\n\n        &.show-weeknumbers {\n          min-width: 356px + $week-width;\n        }\n\n        .drp-calendar.left {\n          border-left: 1px solid #ddd;\n        }\n\n        .ranges {\n          //width: auto;\n          max-width: none;\n          flex-basis: auto;\n          border-bottom: 0;\n\n          ::v-deep ul {\n            display: block;\n            width: 100%;\n          }\n        }\n      }\n    }\n  }\n\n  &.show-calendar {\n    display: block;\n    top: auto;\n  }\n}\n\n.daterangepicker {\n  &.opensleft {\n    /*top: 35px;*/\n    right: 10px;\n    left: auto;\n  }\n\n  &.openscenter {\n    /*top: 35px;*/\n    right: auto;\n    left: 50%;\n    transform: translate(-50%, 0);\n  }\n\n  &.opensright {\n    /*top: 35px;*/\n    left: 10px;\n    right: auto;\n  }\n}\n\n/* Enter and leave animations can use different */\n/* durations and timing functions.              */\n.slide-fade-enter-active {\n  transition: all .2s ease;\n}\n\n.slide-fade-leave-active {\n  transition: all .1s cubic-bezier(1.0, 0.5, 0.8, 1.0);\n}\n\n.slide-fade-enter, .slide-fade-leave-to\n  /* .slide-fade-leave-active for <2.1.8 */\n{\n  transform: translateX(10px);\n  opacity: 0;\n}\n\n.vue-daterange-picker {\n  position: relative;\n  display: inline-block;\n  min-width: 60px;\n\n  .show-ranges.hide-calendars {\n    width: 150px;\n    min-width: 150px;\n  }\n}\n\n.inline {\n  .daterangepicker {\n    position: static;\n\n    &:before, &:after {\n      display: none;\n    }\n  }\n}\n\n</style>\n","/**\n * Fuse.js v7.1.0 - Lightweight fuzzy-search (http://fusejs.io)\n *\n * Copyright (c) 2025 Kiro Risk (http://kiro.me)\n * All Rights Reserved. Apache Software License 2.0\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\nfunction isArray(value) {\n  return !Array.isArray\n    ? getTag(value) === '[object Array]'\n    : Array.isArray(value)\n}\n\n// Adapted from: https://github.com/lodash/lodash/blob/master/.internal/baseToString.js\nconst INFINITY = 1 / 0;\nfunction baseToString(value) {\n  // Exit early for strings to avoid a performance hit in some environments.\n  if (typeof value == 'string') {\n    return value\n  }\n  let result = value + '';\n  return result == '0' && 1 / value == -INFINITY ? '-0' : result\n}\n\nfunction toString(value) {\n  return value == null ? '' : baseToString(value)\n}\n\nfunction isString(value) {\n  return typeof value === 'string'\n}\n\nfunction isNumber(value) {\n  return typeof value === 'number'\n}\n\n// Adapted from: https://github.com/lodash/lodash/blob/master/isBoolean.js\nfunction isBoolean(value) {\n  return (\n    value === true ||\n    value === false ||\n    (isObjectLike(value) && getTag(value) == '[object Boolean]')\n  )\n}\n\nfunction isObject(value) {\n  return typeof value === 'object'\n}\n\n// Checks if `value` is object-like.\nfunction isObjectLike(value) {\n  return isObject(value) && value !== null\n}\n\nfunction isDefined(value) {\n  return value !== undefined && value !== null\n}\n\nfunction isBlank(value) {\n  return !value.trim().length\n}\n\n// Gets the `toStringTag` of `value`.\n// Adapted from: https://github.com/lodash/lodash/blob/master/.internal/getTag.js\nfunction getTag(value) {\n  return value == null\n    ? value === undefined\n      ? '[object Undefined]'\n      : '[object Null]'\n    : Object.prototype.toString.call(value)\n}\n\nconst EXTENDED_SEARCH_UNAVAILABLE = 'Extended search is not available';\n\nconst INCORRECT_INDEX_TYPE = \"Incorrect 'index' type\";\n\nconst LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY = (key) =>\n  `Invalid value for key ${key}`;\n\nconst PATTERN_LENGTH_TOO_LARGE = (max) =>\n  `Pattern length exceeds max of ${max}.`;\n\nconst MISSING_KEY_PROPERTY = (name) => `Missing ${name} property in key`;\n\nconst INVALID_KEY_WEIGHT_VALUE = (key) =>\n  `Property 'weight' in key '${key}' must be a positive integer`;\n\nconst hasOwn = Object.prototype.hasOwnProperty;\n\nclass KeyStore {\n  constructor(keys) {\n    this._keys = [];\n    this._keyMap = {};\n\n    let totalWeight = 0;\n\n    keys.forEach((key) => {\n      let obj = createKey(key);\n\n      this._keys.push(obj);\n      this._keyMap[obj.id] = obj;\n\n      totalWeight += obj.weight;\n    });\n\n    // Normalize weights so that their sum is equal to 1\n    this._keys.forEach((key) => {\n      key.weight /= totalWeight;\n    });\n  }\n  get(keyId) {\n    return this._keyMap[keyId]\n  }\n  keys() {\n    return this._keys\n  }\n  toJSON() {\n    return JSON.stringify(this._keys)\n  }\n}\n\nfunction createKey(key) {\n  let path = null;\n  let id = null;\n  let src = null;\n  let weight = 1;\n  let getFn = null;\n\n  if (isString(key) || isArray(key)) {\n    src = key;\n    path = createKeyPath(key);\n    id = createKeyId(key);\n  } else {\n    if (!hasOwn.call(key, 'name')) {\n      throw new Error(MISSING_KEY_PROPERTY('name'))\n    }\n\n    const name = key.name;\n    src = name;\n\n    if (hasOwn.call(key, 'weight')) {\n      weight = key.weight;\n\n      if (weight <= 0) {\n        throw new Error(INVALID_KEY_WEIGHT_VALUE(name))\n      }\n    }\n\n    path = createKeyPath(name);\n    id = createKeyId(name);\n    getFn = key.getFn;\n  }\n\n  return { path, id, weight, src, getFn }\n}\n\nfunction createKeyPath(key) {\n  return isArray(key) ? key : key.split('.')\n}\n\nfunction createKeyId(key) {\n  return isArray(key) ? key.join('.') : key\n}\n\nfunction get(obj, path) {\n  let list = [];\n  let arr = false;\n\n  const deepGet = (obj, path, index) => {\n    if (!isDefined(obj)) {\n      return\n    }\n    if (!path[index]) {\n      // If there's no path left, we've arrived at the object we care about.\n      list.push(obj);\n    } else {\n      let key = path[index];\n\n      const value = obj[key];\n\n      if (!isDefined(value)) {\n        return\n      }\n\n      // If we're at the last value in the path, and if it's a string/number/bool,\n      // add it to the list\n      if (\n        index === path.length - 1 &&\n        (isString(value) || isNumber(value) || isBoolean(value))\n      ) {\n        list.push(toString(value));\n      } else if (isArray(value)) {\n        arr = true;\n        // Search each item in the array.\n        for (let i = 0, len = value.length; i < len; i += 1) {\n          deepGet(value[i], path, index + 1);\n        }\n      } else if (path.length) {\n        // An object. Recurse further.\n        deepGet(value, path, index + 1);\n      }\n    }\n  };\n\n  // Backwards compatibility (since path used to be a string)\n  deepGet(obj, isString(path) ? path.split('.') : path, 0);\n\n  return arr ? list : list[0]\n}\n\nconst MatchOptions = {\n  // Whether the matches should be included in the result set. When `true`, each record in the result\n  // set will include the indices of the matched characters.\n  // These can consequently be used for highlighting purposes.\n  includeMatches: false,\n  // When `true`, the matching function will continue to the end of a search pattern even if\n  // a perfect match has already been located in the string.\n  findAllMatches: false,\n  // Minimum number of characters that must be matched before a result is considered a match\n  minMatchCharLength: 1\n};\n\nconst BasicOptions = {\n  // When `true`, the algorithm continues searching to the end of the input even if a perfect\n  // match is found before the end of the same input.\n  isCaseSensitive: false,\n  // When `true`, the algorithm will ignore diacritics (accents) in comparisons\n  ignoreDiacritics: false,\n  // When true, the matching function will continue to the end of a search pattern even if\n  includeScore: false,\n  // List of properties that will be searched. This also supports nested properties.\n  keys: [],\n  // Whether to sort the result list, by score\n  shouldSort: true,\n  // Default sort function: sort by ascending score, ascending index\n  sortFn: (a, b) =>\n    a.score === b.score ? (a.idx < b.idx ? -1 : 1) : a.score < b.score ? -1 : 1\n};\n\nconst FuzzyOptions = {\n  // Approximately where in the text is the pattern expected to be found?\n  location: 0,\n  // At what point does the match algorithm give up. A threshold of '0.0' requires a perfect match\n  // (of both letters and location), a threshold of '1.0' would match anything.\n  threshold: 0.6,\n  // Determines how close the match must be to the fuzzy location (specified above).\n  // An exact letter match which is 'distance' characters away from the fuzzy location\n  // would score as a complete mismatch. A distance of '0' requires the match be at\n  // the exact location specified, a threshold of '1000' would require a perfect match\n  // to be within 800 characters of the fuzzy location to be found using a 0.8 threshold.\n  distance: 100\n};\n\nconst AdvancedOptions = {\n  // When `true`, it enables the use of unix-like search commands\n  useExtendedSearch: false,\n  // The get function to use when fetching an object's properties.\n  // The default will search nested paths *ie foo.bar.baz*\n  getFn: get,\n  // When `true`, search will ignore `location` and `distance`, so it won't matter\n  // where in the string the pattern appears.\n  // More info: https://fusejs.io/concepts/scoring-theory.html#fuzziness-score\n  ignoreLocation: false,\n  // When `true`, the calculation for the relevance score (used for sorting) will\n  // ignore the field-length norm.\n  // More info: https://fusejs.io/concepts/scoring-theory.html#field-length-norm\n  ignoreFieldNorm: false,\n  // The weight to determine how much field length norm effects scoring.\n  fieldNormWeight: 1\n};\n\nvar Config = {\n  ...BasicOptions,\n  ...MatchOptions,\n  ...FuzzyOptions,\n  ...AdvancedOptions\n};\n\nconst SPACE = /[^ ]+/g;\n\n// Field-length norm: the shorter the field, the higher the weight.\n// Set to 3 decimals to reduce index size.\nfunction norm(weight = 1, mantissa = 3) {\n  const cache = new Map();\n  const m = Math.pow(10, mantissa);\n\n  return {\n    get(value) {\n      const numTokens = value.match(SPACE).length;\n\n      if (cache.has(numTokens)) {\n        return cache.get(numTokens)\n      }\n\n      // Default function is 1/sqrt(x), weight makes that variable\n      const norm = 1 / Math.pow(numTokens, 0.5 * weight);\n\n      // In place of `toFixed(mantissa)`, for faster computation\n      const n = parseFloat(Math.round(norm * m) / m);\n\n      cache.set(numTokens, n);\n\n      return n\n    },\n    clear() {\n      cache.clear();\n    }\n  }\n}\n\nclass FuseIndex {\n  constructor({\n    getFn = Config.getFn,\n    fieldNormWeight = Config.fieldNormWeight\n  } = {}) {\n    this.norm = norm(fieldNormWeight, 3);\n    this.getFn = getFn;\n    this.isCreated = false;\n\n    this.setIndexRecords();\n  }\n  setSources(docs = []) {\n    this.docs = docs;\n  }\n  setIndexRecords(records = []) {\n    this.records = records;\n  }\n  setKeys(keys = []) {\n    this.keys = keys;\n    this._keysMap = {};\n    keys.forEach((key, idx) => {\n      this._keysMap[key.id] = idx;\n    });\n  }\n  create() {\n    if (this.isCreated || !this.docs.length) {\n      return\n    }\n\n    this.isCreated = true;\n\n    // List is Array<String>\n    if (isString(this.docs[0])) {\n      this.docs.forEach((doc, docIndex) => {\n        this._addString(doc, docIndex);\n      });\n    } else {\n      // List is Array<Object>\n      this.docs.forEach((doc, docIndex) => {\n        this._addObject(doc, docIndex);\n      });\n    }\n\n    this.norm.clear();\n  }\n  // Adds a doc to the end of the index\n  add(doc) {\n    const idx = this.size();\n\n    if (isString(doc)) {\n      this._addString(doc, idx);\n    } else {\n      this._addObject(doc, idx);\n    }\n  }\n  // Removes the doc at the specified index of the index\n  removeAt(idx) {\n    this.records.splice(idx, 1);\n\n    // Change ref index of every subsquent doc\n    for (let i = idx, len = this.size(); i < len; i += 1) {\n      this.records[i].i -= 1;\n    }\n  }\n  getValueForItemAtKeyId(item, keyId) {\n    return item[this._keysMap[keyId]]\n  }\n  size() {\n    return this.records.length\n  }\n  _addString(doc, docIndex) {\n    if (!isDefined(doc) || isBlank(doc)) {\n      return\n    }\n\n    let record = {\n      v: doc,\n      i: docIndex,\n      n: this.norm.get(doc)\n    };\n\n    this.records.push(record);\n  }\n  _addObject(doc, docIndex) {\n    let record = { i: docIndex, $: {} };\n\n    // Iterate over every key (i.e, path), and fetch the value at that key\n    this.keys.forEach((key, keyIndex) => {\n      let value = key.getFn ? key.getFn(doc) : this.getFn(doc, key.path);\n\n      if (!isDefined(value)) {\n        return\n      }\n\n      if (isArray(value)) {\n        let subRecords = [];\n        const stack = [{ nestedArrIndex: -1, value }];\n\n        while (stack.length) {\n          const { nestedArrIndex, value } = stack.pop();\n\n          if (!isDefined(value)) {\n            continue\n          }\n\n          if (isString(value) && !isBlank(value)) {\n            let subRecord = {\n              v: value,\n              i: nestedArrIndex,\n              n: this.norm.get(value)\n            };\n\n            subRecords.push(subRecord);\n          } else if (isArray(value)) {\n            value.forEach((item, k) => {\n              stack.push({\n                nestedArrIndex: k,\n                value: item\n              });\n            });\n          } else ;\n        }\n        record.$[keyIndex] = subRecords;\n      } else if (isString(value) && !isBlank(value)) {\n        let subRecord = {\n          v: value,\n          n: this.norm.get(value)\n        };\n\n        record.$[keyIndex] = subRecord;\n      }\n    });\n\n    this.records.push(record);\n  }\n  toJSON() {\n    return {\n      keys: this.keys,\n      records: this.records\n    }\n  }\n}\n\nfunction createIndex(\n  keys,\n  docs,\n  { getFn = Config.getFn, fieldNormWeight = Config.fieldNormWeight } = {}\n) {\n  const myIndex = new FuseIndex({ getFn, fieldNormWeight });\n  myIndex.setKeys(keys.map(createKey));\n  myIndex.setSources(docs);\n  myIndex.create();\n  return myIndex\n}\n\nfunction parseIndex(\n  data,\n  { getFn = Config.getFn, fieldNormWeight = Config.fieldNormWeight } = {}\n) {\n  const { keys, records } = data;\n  const myIndex = new FuseIndex({ getFn, fieldNormWeight });\n  myIndex.setKeys(keys);\n  myIndex.setIndexRecords(records);\n  return myIndex\n}\n\nfunction computeScore$1(\n  pattern,\n  {\n    errors = 0,\n    currentLocation = 0,\n    expectedLocation = 0,\n    distance = Config.distance,\n    ignoreLocation = Config.ignoreLocation\n  } = {}\n) {\n  const accuracy = errors / pattern.length;\n\n  if (ignoreLocation) {\n    return accuracy\n  }\n\n  const proximity = Math.abs(expectedLocation - currentLocation);\n\n  if (!distance) {\n    // Dodge divide by zero error.\n    return proximity ? 1.0 : accuracy\n  }\n\n  return accuracy + proximity / distance\n}\n\nfunction convertMaskToIndices(\n  matchmask = [],\n  minMatchCharLength = Config.minMatchCharLength\n) {\n  let indices = [];\n  let start = -1;\n  let end = -1;\n  let i = 0;\n\n  for (let len = matchmask.length; i < len; i += 1) {\n    let match = matchmask[i];\n    if (match && start === -1) {\n      start = i;\n    } else if (!match && start !== -1) {\n      end = i - 1;\n      if (end - start + 1 >= minMatchCharLength) {\n        indices.push([start, end]);\n      }\n      start = -1;\n    }\n  }\n\n  // (i-1 - start) + 1 => i - start\n  if (matchmask[i - 1] && i - start >= minMatchCharLength) {\n    indices.push([start, i - 1]);\n  }\n\n  return indices\n}\n\n// Machine word size\nconst MAX_BITS = 32;\n\nfunction search(\n  text,\n  pattern,\n  patternAlphabet,\n  {\n    location = Config.location,\n    distance = Config.distance,\n    threshold = Config.threshold,\n    findAllMatches = Config.findAllMatches,\n    minMatchCharLength = Config.minMatchCharLength,\n    includeMatches = Config.includeMatches,\n    ignoreLocation = Config.ignoreLocation\n  } = {}\n) {\n  if (pattern.length > MAX_BITS) {\n    throw new Error(PATTERN_LENGTH_TOO_LARGE(MAX_BITS))\n  }\n\n  const patternLen = pattern.length;\n  // Set starting location at beginning text and initialize the alphabet.\n  const textLen = text.length;\n  // Handle the case when location > text.length\n  const expectedLocation = Math.max(0, Math.min(location, textLen));\n  // Highest score beyond which we give up.\n  let currentThreshold = threshold;\n  // Is there a nearby exact match? (speedup)\n  let bestLocation = expectedLocation;\n\n  // Performance: only computer matches when the minMatchCharLength > 1\n  // OR if `includeMatches` is true.\n  const computeMatches = minMatchCharLength > 1 || includeMatches;\n  // A mask of the matches, used for building the indices\n  const matchMask = computeMatches ? Array(textLen) : [];\n\n  let index;\n\n  // Get all exact matches, here for speed up\n  while ((index = text.indexOf(pattern, bestLocation)) > -1) {\n    let score = computeScore$1(pattern, {\n      currentLocation: index,\n      expectedLocation,\n      distance,\n      ignoreLocation\n    });\n\n    currentThreshold = Math.min(score, currentThreshold);\n    bestLocation = index + patternLen;\n\n    if (computeMatches) {\n      let i = 0;\n      while (i < patternLen) {\n        matchMask[index + i] = 1;\n        i += 1;\n      }\n    }\n  }\n\n  // Reset the best location\n  bestLocation = -1;\n\n  let lastBitArr = [];\n  let finalScore = 1;\n  let binMax = patternLen + textLen;\n\n  const mask = 1 << (patternLen - 1);\n\n  for (let i = 0; i < patternLen; i += 1) {\n    // Scan for the best match; each iteration allows for one more error.\n    // Run a binary search to determine how far from the match location we can stray\n    // at this error level.\n    let binMin = 0;\n    let binMid = binMax;\n\n    while (binMin < binMid) {\n      const score = computeScore$1(pattern, {\n        errors: i,\n        currentLocation: expectedLocation + binMid,\n        expectedLocation,\n        distance,\n        ignoreLocation\n      });\n\n      if (score <= currentThreshold) {\n        binMin = binMid;\n      } else {\n        binMax = binMid;\n      }\n\n      binMid = Math.floor((binMax - binMin) / 2 + binMin);\n    }\n\n    // Use the result from this iteration as the maximum for the next.\n    binMax = binMid;\n\n    let start = Math.max(1, expectedLocation - binMid + 1);\n    let finish = findAllMatches\n      ? textLen\n      : Math.min(expectedLocation + binMid, textLen) + patternLen;\n\n    // Initialize the bit array\n    let bitArr = Array(finish + 2);\n\n    bitArr[finish + 1] = (1 << i) - 1;\n\n    for (let j = finish; j >= start; j -= 1) {\n      let currentLocation = j - 1;\n      let charMatch = patternAlphabet[text.charAt(currentLocation)];\n\n      if (computeMatches) {\n        // Speed up: quick bool to int conversion (i.e, `charMatch ? 1 : 0`)\n        matchMask[currentLocation] = +!!charMatch;\n      }\n\n      // First pass: exact match\n      bitArr[j] = ((bitArr[j + 1] << 1) | 1) & charMatch;\n\n      // Subsequent passes: fuzzy match\n      if (i) {\n        bitArr[j] |=\n          ((lastBitArr[j + 1] | lastBitArr[j]) << 1) | 1 | lastBitArr[j + 1];\n      }\n\n      if (bitArr[j] & mask) {\n        finalScore = computeScore$1(pattern, {\n          errors: i,\n          currentLocation,\n          expectedLocation,\n          distance,\n          ignoreLocation\n        });\n\n        // This match will almost certainly be better than any existing match.\n        // But check anyway.\n        if (finalScore <= currentThreshold) {\n          // Indeed it is\n          currentThreshold = finalScore;\n          bestLocation = currentLocation;\n\n          // Already passed `loc`, downhill from here on in.\n          if (bestLocation <= expectedLocation) {\n            break\n          }\n\n          // When passing `bestLocation`, don't exceed our current distance from `expectedLocation`.\n          start = Math.max(1, 2 * expectedLocation - bestLocation);\n        }\n      }\n    }\n\n    // No hope for a (better) match at greater error levels.\n    const score = computeScore$1(pattern, {\n      errors: i + 1,\n      currentLocation: expectedLocation,\n      expectedLocation,\n      distance,\n      ignoreLocation\n    });\n\n    if (score > currentThreshold) {\n      break\n    }\n\n    lastBitArr = bitArr;\n  }\n\n  const result = {\n    isMatch: bestLocation >= 0,\n    // Count exact matches (those with a score of 0) to be \"almost\" exact\n    score: Math.max(0.001, finalScore)\n  };\n\n  if (computeMatches) {\n    const indices = convertMaskToIndices(matchMask, minMatchCharLength);\n    if (!indices.length) {\n      result.isMatch = false;\n    } else if (includeMatches) {\n      result.indices = indices;\n    }\n  }\n\n  return result\n}\n\nfunction createPatternAlphabet(pattern) {\n  let mask = {};\n\n  for (let i = 0, len = pattern.length; i < len; i += 1) {\n    const char = pattern.charAt(i);\n    mask[char] = (mask[char] || 0) | (1 << (len - i - 1));\n  }\n\n  return mask\n}\n\nconst stripDiacritics = String.prototype.normalize\n    ? ((str) => str.normalize('NFD').replace(/[\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u08D3-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B62\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D82\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F\\u109A-\\u109D\\u135D-\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u1885\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F\\u1AB0-\\u1ABE\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF2-\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DF9\\u1DFB-\\u1DFF\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F]/g, ''))\n    : ((str) => str);\n\nclass BitapSearch {\n  constructor(\n    pattern,\n    {\n      location = Config.location,\n      threshold = Config.threshold,\n      distance = Config.distance,\n      includeMatches = Config.includeMatches,\n      findAllMatches = Config.findAllMatches,\n      minMatchCharLength = Config.minMatchCharLength,\n      isCaseSensitive = Config.isCaseSensitive,\n      ignoreDiacritics = Config.ignoreDiacritics,\n      ignoreLocation = Config.ignoreLocation\n    } = {}\n  ) {\n    this.options = {\n      location,\n      threshold,\n      distance,\n      includeMatches,\n      findAllMatches,\n      minMatchCharLength,\n      isCaseSensitive,\n      ignoreDiacritics,\n      ignoreLocation\n    };\n\n    pattern = isCaseSensitive ? pattern : pattern.toLowerCase();\n    pattern = ignoreDiacritics ? stripDiacritics(pattern) : pattern;\n    this.pattern = pattern;\n\n    this.chunks = [];\n\n    if (!this.pattern.length) {\n      return\n    }\n\n    const addChunk = (pattern, startIndex) => {\n      this.chunks.push({\n        pattern,\n        alphabet: createPatternAlphabet(pattern),\n        startIndex\n      });\n    };\n\n    const len = this.pattern.length;\n\n    if (len > MAX_BITS) {\n      let i = 0;\n      const remainder = len % MAX_BITS;\n      const end = len - remainder;\n\n      while (i < end) {\n        addChunk(this.pattern.substr(i, MAX_BITS), i);\n        i += MAX_BITS;\n      }\n\n      if (remainder) {\n        const startIndex = len - MAX_BITS;\n        addChunk(this.pattern.substr(startIndex), startIndex);\n      }\n    } else {\n      addChunk(this.pattern, 0);\n    }\n  }\n\n  searchIn(text) {\n    const { isCaseSensitive, ignoreDiacritics, includeMatches } = this.options;\n\n    text = isCaseSensitive ? text : text.toLowerCase();\n    text = ignoreDiacritics ? stripDiacritics(text) : text;\n\n    // Exact match\n    if (this.pattern === text) {\n      let result = {\n        isMatch: true,\n        score: 0\n      };\n\n      if (includeMatches) {\n        result.indices = [[0, text.length - 1]];\n      }\n\n      return result\n    }\n\n    // Otherwise, use Bitap algorithm\n    const {\n      location,\n      distance,\n      threshold,\n      findAllMatches,\n      minMatchCharLength,\n      ignoreLocation\n    } = this.options;\n\n    let allIndices = [];\n    let totalScore = 0;\n    let hasMatches = false;\n\n    this.chunks.forEach(({ pattern, alphabet, startIndex }) => {\n      const { isMatch, score, indices } = search(text, pattern, alphabet, {\n        location: location + startIndex,\n        distance,\n        threshold,\n        findAllMatches,\n        minMatchCharLength,\n        includeMatches,\n        ignoreLocation\n      });\n\n      if (isMatch) {\n        hasMatches = true;\n      }\n\n      totalScore += score;\n\n      if (isMatch && indices) {\n        allIndices = [...allIndices, ...indices];\n      }\n    });\n\n    let result = {\n      isMatch: hasMatches,\n      score: hasMatches ? totalScore / this.chunks.length : 1\n    };\n\n    if (hasMatches && includeMatches) {\n      result.indices = allIndices;\n    }\n\n    return result\n  }\n}\n\nclass BaseMatch {\n  constructor(pattern) {\n    this.pattern = pattern;\n  }\n  static isMultiMatch(pattern) {\n    return getMatch(pattern, this.multiRegex)\n  }\n  static isSingleMatch(pattern) {\n    return getMatch(pattern, this.singleRegex)\n  }\n  search(/*text*/) {}\n}\n\nfunction getMatch(pattern, exp) {\n  const matches = pattern.match(exp);\n  return matches ? matches[1] : null\n}\n\n// Token: 'file\n\nclass ExactMatch extends BaseMatch {\n  constructor(pattern) {\n    super(pattern);\n  }\n  static get type() {\n    return 'exact'\n  }\n  static get multiRegex() {\n    return /^=\"(.*)\"$/\n  }\n  static get singleRegex() {\n    return /^=(.*)$/\n  }\n  search(text) {\n    const isMatch = text === this.pattern;\n\n    return {\n      isMatch,\n      score: isMatch ? 0 : 1,\n      indices: [0, this.pattern.length - 1]\n    }\n  }\n}\n\n// Token: !fire\n\nclass InverseExactMatch extends BaseMatch {\n  constructor(pattern) {\n    super(pattern);\n  }\n  static get type() {\n    return 'inverse-exact'\n  }\n  static get multiRegex() {\n    return /^!\"(.*)\"$/\n  }\n  static get singleRegex() {\n    return /^!(.*)$/\n  }\n  search(text) {\n    const index = text.indexOf(this.pattern);\n    const isMatch = index === -1;\n\n    return {\n      isMatch,\n      score: isMatch ? 0 : 1,\n      indices: [0, text.length - 1]\n    }\n  }\n}\n\n// Token: ^file\n\nclass PrefixExactMatch extends BaseMatch {\n  constructor(pattern) {\n    super(pattern);\n  }\n  static get type() {\n    return 'prefix-exact'\n  }\n  static get multiRegex() {\n    return /^\\^\"(.*)\"$/\n  }\n  static get singleRegex() {\n    return /^\\^(.*)$/\n  }\n  search(text) {\n    const isMatch = text.startsWith(this.pattern);\n\n    return {\n      isMatch,\n      score: isMatch ? 0 : 1,\n      indices: [0, this.pattern.length - 1]\n    }\n  }\n}\n\n// Token: !^fire\n\nclass InversePrefixExactMatch extends BaseMatch {\n  constructor(pattern) {\n    super(pattern);\n  }\n  static get type() {\n    return 'inverse-prefix-exact'\n  }\n  static get multiRegex() {\n    return /^!\\^\"(.*)\"$/\n  }\n  static get singleRegex() {\n    return /^!\\^(.*)$/\n  }\n  search(text) {\n    const isMatch = !text.startsWith(this.pattern);\n\n    return {\n      isMatch,\n      score: isMatch ? 0 : 1,\n      indices: [0, text.length - 1]\n    }\n  }\n}\n\n// Token: .file$\n\nclass SuffixExactMatch extends BaseMatch {\n  constructor(pattern) {\n    super(pattern);\n  }\n  static get type() {\n    return 'suffix-exact'\n  }\n  static get multiRegex() {\n    return /^\"(.*)\"\\$$/\n  }\n  static get singleRegex() {\n    return /^(.*)\\$$/\n  }\n  search(text) {\n    const isMatch = text.endsWith(this.pattern);\n\n    return {\n      isMatch,\n      score: isMatch ? 0 : 1,\n      indices: [text.length - this.pattern.length, text.length - 1]\n    }\n  }\n}\n\n// Token: !.file$\n\nclass InverseSuffixExactMatch extends BaseMatch {\n  constructor(pattern) {\n    super(pattern);\n  }\n  static get type() {\n    return 'inverse-suffix-exact'\n  }\n  static get multiRegex() {\n    return /^!\"(.*)\"\\$$/\n  }\n  static get singleRegex() {\n    return /^!(.*)\\$$/\n  }\n  search(text) {\n    const isMatch = !text.endsWith(this.pattern);\n    return {\n      isMatch,\n      score: isMatch ? 0 : 1,\n      indices: [0, text.length - 1]\n    }\n  }\n}\n\nclass FuzzyMatch extends BaseMatch {\n  constructor(\n    pattern,\n    {\n      location = Config.location,\n      threshold = Config.threshold,\n      distance = Config.distance,\n      includeMatches = Config.includeMatches,\n      findAllMatches = Config.findAllMatches,\n      minMatchCharLength = Config.minMatchCharLength,\n      isCaseSensitive = Config.isCaseSensitive,\n      ignoreDiacritics = Config.ignoreDiacritics,\n      ignoreLocation = Config.ignoreLocation\n    } = {}\n  ) {\n    super(pattern);\n    this._bitapSearch = new BitapSearch(pattern, {\n      location,\n      threshold,\n      distance,\n      includeMatches,\n      findAllMatches,\n      minMatchCharLength,\n      isCaseSensitive,\n      ignoreDiacritics,\n      ignoreLocation\n    });\n  }\n  static get type() {\n    return 'fuzzy'\n  }\n  static get multiRegex() {\n    return /^\"(.*)\"$/\n  }\n  static get singleRegex() {\n    return /^(.*)$/\n  }\n  search(text) {\n    return this._bitapSearch.searchIn(text)\n  }\n}\n\n// Token: 'file\n\nclass IncludeMatch extends BaseMatch {\n  constructor(pattern) {\n    super(pattern);\n  }\n  static get type() {\n    return 'include'\n  }\n  static get multiRegex() {\n    return /^'\"(.*)\"$/\n  }\n  static get singleRegex() {\n    return /^'(.*)$/\n  }\n  search(text) {\n    let location = 0;\n    let index;\n\n    const indices = [];\n    const patternLen = this.pattern.length;\n\n    // Get all exact matches\n    while ((index = text.indexOf(this.pattern, location)) > -1) {\n      location = index + patternLen;\n      indices.push([index, location - 1]);\n    }\n\n    const isMatch = !!indices.length;\n\n    return {\n      isMatch,\n      score: isMatch ? 0 : 1,\n      indices\n    }\n  }\n}\n\n// ❗Order is important. DO NOT CHANGE.\nconst searchers = [\n  ExactMatch,\n  IncludeMatch,\n  PrefixExactMatch,\n  InversePrefixExactMatch,\n  InverseSuffixExactMatch,\n  SuffixExactMatch,\n  InverseExactMatch,\n  FuzzyMatch\n];\n\nconst searchersLen = searchers.length;\n\n// Regex to split by spaces, but keep anything in quotes together\nconst SPACE_RE = / +(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)/;\nconst OR_TOKEN = '|';\n\n// Return a 2D array representation of the query, for simpler parsing.\n// Example:\n// \"^core go$ | rb$ | py$ xy$\" => [[\"^core\", \"go$\"], [\"rb$\"], [\"py$\", \"xy$\"]]\nfunction parseQuery(pattern, options = {}) {\n  return pattern.split(OR_TOKEN).map((item) => {\n    let query = item\n      .trim()\n      .split(SPACE_RE)\n      .filter((item) => item && !!item.trim());\n\n    let results = [];\n    for (let i = 0, len = query.length; i < len; i += 1) {\n      const queryItem = query[i];\n\n      // 1. Handle multiple query match (i.e, once that are quoted, like `\"hello world\"`)\n      let found = false;\n      let idx = -1;\n      while (!found && ++idx < searchersLen) {\n        const searcher = searchers[idx];\n        let token = searcher.isMultiMatch(queryItem);\n        if (token) {\n          results.push(new searcher(token, options));\n          found = true;\n        }\n      }\n\n      if (found) {\n        continue\n      }\n\n      // 2. Handle single query matches (i.e, once that are *not* quoted)\n      idx = -1;\n      while (++idx < searchersLen) {\n        const searcher = searchers[idx];\n        let token = searcher.isSingleMatch(queryItem);\n        if (token) {\n          results.push(new searcher(token, options));\n          break\n        }\n      }\n    }\n\n    return results\n  })\n}\n\n// These extended matchers can return an array of matches, as opposed\n// to a singl match\nconst MultiMatchSet = new Set([FuzzyMatch.type, IncludeMatch.type]);\n\n/**\n * Command-like searching\n * ======================\n *\n * Given multiple search terms delimited by spaces.e.g. `^jscript .python$ ruby !java`,\n * search in a given text.\n *\n * Search syntax:\n *\n * | Token       | Match type                 | Description                            |\n * | ----------- | -------------------------- | -------------------------------------- |\n * | `jscript`   | fuzzy-match                | Items that fuzzy match `jscript`       |\n * | `=scheme`   | exact-match                | Items that are `scheme`                |\n * | `'python`   | include-match              | Items that include `python`            |\n * | `!ruby`     | inverse-exact-match        | Items that do not include `ruby`       |\n * | `^java`     | prefix-exact-match         | Items that start with `java`           |\n * | `!^earlang` | inverse-prefix-exact-match | Items that do not start with `earlang` |\n * | `.js$`      | suffix-exact-match         | Items that end with `.js`              |\n * | `!.go$`     | inverse-suffix-exact-match | Items that do not end with `.go`       |\n *\n * A single pipe character acts as an OR operator. For example, the following\n * query matches entries that start with `core` and end with either`go`, `rb`,\n * or`py`.\n *\n * ```\n * ^core go$ | rb$ | py$\n * ```\n */\nclass ExtendedSearch {\n  constructor(\n    pattern,\n    {\n      isCaseSensitive = Config.isCaseSensitive,\n      ignoreDiacritics = Config.ignoreDiacritics,\n      includeMatches = Config.includeMatches,\n      minMatchCharLength = Config.minMatchCharLength,\n      ignoreLocation = Config.ignoreLocation,\n      findAllMatches = Config.findAllMatches,\n      location = Config.location,\n      threshold = Config.threshold,\n      distance = Config.distance\n    } = {}\n  ) {\n    this.query = null;\n    this.options = {\n      isCaseSensitive,\n      ignoreDiacritics,\n      includeMatches,\n      minMatchCharLength,\n      findAllMatches,\n      ignoreLocation,\n      location,\n      threshold,\n      distance\n    };\n\n    pattern = isCaseSensitive ? pattern : pattern.toLowerCase();\n    pattern = ignoreDiacritics ? stripDiacritics(pattern) : pattern;\n    this.pattern = pattern;\n    this.query = parseQuery(this.pattern, this.options);\n  }\n\n  static condition(_, options) {\n    return options.useExtendedSearch\n  }\n\n  searchIn(text) {\n    const query = this.query;\n\n    if (!query) {\n      return {\n        isMatch: false,\n        score: 1\n      }\n    }\n\n    const { includeMatches, isCaseSensitive, ignoreDiacritics } = this.options;\n\n    text = isCaseSensitive ? text : text.toLowerCase();\n    text = ignoreDiacritics ? stripDiacritics(text) : text;\n\n    let numMatches = 0;\n    let allIndices = [];\n    let totalScore = 0;\n\n    // ORs\n    for (let i = 0, qLen = query.length; i < qLen; i += 1) {\n      const searchers = query[i];\n\n      // Reset indices\n      allIndices.length = 0;\n      numMatches = 0;\n\n      // ANDs\n      for (let j = 0, pLen = searchers.length; j < pLen; j += 1) {\n        const searcher = searchers[j];\n        const { isMatch, indices, score } = searcher.search(text);\n\n        if (isMatch) {\n          numMatches += 1;\n          totalScore += score;\n          if (includeMatches) {\n            const type = searcher.constructor.type;\n            if (MultiMatchSet.has(type)) {\n              allIndices = [...allIndices, ...indices];\n            } else {\n              allIndices.push(indices);\n            }\n          }\n        } else {\n          totalScore = 0;\n          numMatches = 0;\n          allIndices.length = 0;\n          break\n        }\n      }\n\n      // OR condition, so if TRUE, return\n      if (numMatches) {\n        let result = {\n          isMatch: true,\n          score: totalScore / numMatches\n        };\n\n        if (includeMatches) {\n          result.indices = allIndices;\n        }\n\n        return result\n      }\n    }\n\n    // Nothing was matched\n    return {\n      isMatch: false,\n      score: 1\n    }\n  }\n}\n\nconst registeredSearchers = [];\n\nfunction register(...args) {\n  registeredSearchers.push(...args);\n}\n\nfunction createSearcher(pattern, options) {\n  for (let i = 0, len = registeredSearchers.length; i < len; i += 1) {\n    let searcherClass = registeredSearchers[i];\n    if (searcherClass.condition(pattern, options)) {\n      return new searcherClass(pattern, options)\n    }\n  }\n\n  return new BitapSearch(pattern, options)\n}\n\nconst LogicalOperator = {\n  AND: '$and',\n  OR: '$or'\n};\n\nconst KeyType = {\n  PATH: '$path',\n  PATTERN: '$val'\n};\n\nconst isExpression = (query) =>\n  !!(query[LogicalOperator.AND] || query[LogicalOperator.OR]);\n\nconst isPath = (query) => !!query[KeyType.PATH];\n\nconst isLeaf = (query) =>\n  !isArray(query) && isObject(query) && !isExpression(query);\n\nconst convertToExplicit = (query) => ({\n  [LogicalOperator.AND]: Object.keys(query).map((key) => ({\n    [key]: query[key]\n  }))\n});\n\n// When `auto` is `true`, the parse function will infer and initialize and add\n// the appropriate `Searcher` instance\nfunction parse(query, options, { auto = true } = {}) {\n  const next = (query) => {\n    let keys = Object.keys(query);\n\n    const isQueryPath = isPath(query);\n\n    if (!isQueryPath && keys.length > 1 && !isExpression(query)) {\n      return next(convertToExplicit(query))\n    }\n\n    if (isLeaf(query)) {\n      const key = isQueryPath ? query[KeyType.PATH] : keys[0];\n\n      const pattern = isQueryPath ? query[KeyType.PATTERN] : query[key];\n\n      if (!isString(pattern)) {\n        throw new Error(LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY(key))\n      }\n\n      const obj = {\n        keyId: createKeyId(key),\n        pattern\n      };\n\n      if (auto) {\n        obj.searcher = createSearcher(pattern, options);\n      }\n\n      return obj\n    }\n\n    let node = {\n      children: [],\n      operator: keys[0]\n    };\n\n    keys.forEach((key) => {\n      const value = query[key];\n\n      if (isArray(value)) {\n        value.forEach((item) => {\n          node.children.push(next(item));\n        });\n      }\n    });\n\n    return node\n  };\n\n  if (!isExpression(query)) {\n    query = convertToExplicit(query);\n  }\n\n  return next(query)\n}\n\n// Practical scoring function\nfunction computeScore(\n  results,\n  { ignoreFieldNorm = Config.ignoreFieldNorm }\n) {\n  results.forEach((result) => {\n    let totalScore = 1;\n\n    result.matches.forEach(({ key, norm, score }) => {\n      const weight = key ? key.weight : null;\n\n      totalScore *= Math.pow(\n        score === 0 && weight ? Number.EPSILON : score,\n        (weight || 1) * (ignoreFieldNorm ? 1 : norm)\n      );\n    });\n\n    result.score = totalScore;\n  });\n}\n\nfunction transformMatches(result, data) {\n  const matches = result.matches;\n  data.matches = [];\n\n  if (!isDefined(matches)) {\n    return\n  }\n\n  matches.forEach((match) => {\n    if (!isDefined(match.indices) || !match.indices.length) {\n      return\n    }\n\n    const { indices, value } = match;\n\n    let obj = {\n      indices,\n      value\n    };\n\n    if (match.key) {\n      obj.key = match.key.src;\n    }\n\n    if (match.idx > -1) {\n      obj.refIndex = match.idx;\n    }\n\n    data.matches.push(obj);\n  });\n}\n\nfunction transformScore(result, data) {\n  data.score = result.score;\n}\n\nfunction format(\n  results,\n  docs,\n  {\n    includeMatches = Config.includeMatches,\n    includeScore = Config.includeScore\n  } = {}\n) {\n  const transformers = [];\n\n  if (includeMatches) transformers.push(transformMatches);\n  if (includeScore) transformers.push(transformScore);\n\n  return results.map((result) => {\n    const { idx } = result;\n\n    const data = {\n      item: docs[idx],\n      refIndex: idx\n    };\n\n    if (transformers.length) {\n      transformers.forEach((transformer) => {\n        transformer(result, data);\n      });\n    }\n\n    return data\n  })\n}\n\nclass Fuse {\n  constructor(docs, options = {}, index) {\n    this.options = { ...Config, ...options };\n\n    if (\n      this.options.useExtendedSearch &&\n      !true\n    ) {\n      throw new Error(EXTENDED_SEARCH_UNAVAILABLE)\n    }\n\n    this._keyStore = new KeyStore(this.options.keys);\n\n    this.setCollection(docs, index);\n  }\n\n  setCollection(docs, index) {\n    this._docs = docs;\n\n    if (index && !(index instanceof FuseIndex)) {\n      throw new Error(INCORRECT_INDEX_TYPE)\n    }\n\n    this._myIndex =\n      index ||\n      createIndex(this.options.keys, this._docs, {\n        getFn: this.options.getFn,\n        fieldNormWeight: this.options.fieldNormWeight\n      });\n  }\n\n  add(doc) {\n    if (!isDefined(doc)) {\n      return\n    }\n\n    this._docs.push(doc);\n    this._myIndex.add(doc);\n  }\n\n  remove(predicate = (/* doc, idx */) => false) {\n    const results = [];\n\n    for (let i = 0, len = this._docs.length; i < len; i += 1) {\n      const doc = this._docs[i];\n      if (predicate(doc, i)) {\n        this.removeAt(i);\n        i -= 1;\n        len -= 1;\n\n        results.push(doc);\n      }\n    }\n\n    return results\n  }\n\n  removeAt(idx) {\n    this._docs.splice(idx, 1);\n    this._myIndex.removeAt(idx);\n  }\n\n  getIndex() {\n    return this._myIndex\n  }\n\n  search(query, { limit = -1 } = {}) {\n    const {\n      includeMatches,\n      includeScore,\n      shouldSort,\n      sortFn,\n      ignoreFieldNorm\n    } = this.options;\n\n    let results = isString(query)\n      ? isString(this._docs[0])\n        ? this._searchStringList(query)\n        : this._searchObjectList(query)\n      : this._searchLogical(query);\n\n    computeScore(results, { ignoreFieldNorm });\n\n    if (shouldSort) {\n      results.sort(sortFn);\n    }\n\n    if (isNumber(limit) && limit > -1) {\n      results = results.slice(0, limit);\n    }\n\n    return format(results, this._docs, {\n      includeMatches,\n      includeScore\n    })\n  }\n\n  _searchStringList(query) {\n    const searcher = createSearcher(query, this.options);\n    const { records } = this._myIndex;\n    const results = [];\n\n    // Iterate over every string in the index\n    records.forEach(({ v: text, i: idx, n: norm }) => {\n      if (!isDefined(text)) {\n        return\n      }\n\n      const { isMatch, score, indices } = searcher.searchIn(text);\n\n      if (isMatch) {\n        results.push({\n          item: text,\n          idx,\n          matches: [{ score, value: text, norm, indices }]\n        });\n      }\n    });\n\n    return results\n  }\n\n  _searchLogical(query) {\n\n    const expression = parse(query, this.options);\n\n    const evaluate = (node, item, idx) => {\n      if (!node.children) {\n        const { keyId, searcher } = node;\n\n        const matches = this._findMatches({\n          key: this._keyStore.get(keyId),\n          value: this._myIndex.getValueForItemAtKeyId(item, keyId),\n          searcher\n        });\n\n        if (matches && matches.length) {\n          return [\n            {\n              idx,\n              item,\n              matches\n            }\n          ]\n        }\n\n        return []\n      }\n\n      const res = [];\n      for (let i = 0, len = node.children.length; i < len; i += 1) {\n        const child = node.children[i];\n        const result = evaluate(child, item, idx);\n        if (result.length) {\n          res.push(...result);\n        } else if (node.operator === LogicalOperator.AND) {\n          return []\n        }\n      }\n      return res\n    };\n\n    const records = this._myIndex.records;\n    const resultMap = {};\n    const results = [];\n\n    records.forEach(({ $: item, i: idx }) => {\n      if (isDefined(item)) {\n        let expResults = evaluate(expression, item, idx);\n\n        if (expResults.length) {\n          // Dedupe when adding\n          if (!resultMap[idx]) {\n            resultMap[idx] = { idx, item, matches: [] };\n            results.push(resultMap[idx]);\n          }\n          expResults.forEach(({ matches }) => {\n            resultMap[idx].matches.push(...matches);\n          });\n        }\n      }\n    });\n\n    return results\n  }\n\n  _searchObjectList(query) {\n    const searcher = createSearcher(query, this.options);\n    const { keys, records } = this._myIndex;\n    const results = [];\n\n    // List is Array<Object>\n    records.forEach(({ $: item, i: idx }) => {\n      if (!isDefined(item)) {\n        return\n      }\n\n      let matches = [];\n\n      // Iterate over every key (i.e, path), and fetch the value at that key\n      keys.forEach((key, keyIndex) => {\n        matches.push(\n          ...this._findMatches({\n            key,\n            value: item[keyIndex],\n            searcher\n          })\n        );\n      });\n\n      if (matches.length) {\n        results.push({\n          idx,\n          item,\n          matches\n        });\n      }\n    });\n\n    return results\n  }\n  _findMatches({ key, value, searcher }) {\n    if (!isDefined(value)) {\n      return []\n    }\n\n    let matches = [];\n\n    if (isArray(value)) {\n      value.forEach(({ v: text, i: idx, n: norm }) => {\n        if (!isDefined(text)) {\n          return\n        }\n\n        const { isMatch, score, indices } = searcher.searchIn(text);\n\n        if (isMatch) {\n          matches.push({\n            score,\n            key,\n            value: text,\n            idx,\n            norm,\n            indices\n          });\n        }\n      });\n    } else {\n      const { v: text, n: norm } = value;\n\n      const { isMatch, score, indices } = searcher.searchIn(text);\n\n      if (isMatch) {\n        matches.push({ score, key, value: text, norm, indices });\n      }\n    }\n\n    return matches\n  }\n}\n\nFuse.version = '7.1.0';\nFuse.createIndex = createIndex;\nFuse.parseIndex = parseIndex;\nFuse.config = Config;\n\n{\n  Fuse.parseQuery = parse;\n}\n\n{\n  register(ExtendedSearch);\n}\n\nexport { Fuse as default };\n"],"names":["DateUtil","date1","date2","granularity","dt1","dt2","year","month","date","getWeek","mask","dateFormat","nextMonthDate","prevMonthDate","newDate","min","max","max_date","min_date","options","d","dateUtilMixin","_sfc_main","currentMonthDate","emit","year_month","dt","start","end","dt_min_compare","classes","value","firstDay","lastMonth","lastYear","daysInLastMonth","dayOfWeek","calendar","i","startDay","curDate","col","row","m","idx","startYear","endYear","_","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_9","_openBlock","_createElementBlock","_createElementVNode","$options","args","$props","_cache","$event","_Fragment","_renderList","y","_toDisplayString","_hoisted_7","_createCommentVNode","weekDay","dateRow","index","_hoisted_8","_ctx","_normalizeClass","_renderSlot","_createTextVNode","current","hours","values","$data","h","s","range","r","appendToBody","el","instance","height","top","left","width","right","Calendar","CalendarTime","CalendarRanges","today","todayEnd","yesterdayStart","yesterdayEnd","thisMonthStart","thisMonthEnd","dropdownList","component","util","data","startDate","endDate","iterator","weekDays","oldValue","dt_end","dt_start","event","e","origStart","origEnd","key","_hoisted_12","_createVNode","_Transition","_withCtx","_component_calendar_ranges","_component_calendar","_mergeProps","_createBlock","_component_calendar_time","_hoisted_10","_hoisted_11","isArray","getTag","baseToString","result","toString","isString","isNumber","isBoolean","isObjectLike","isObject","isDefined","isBlank","INCORRECT_INDEX_TYPE","LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY","PATTERN_LENGTH_TOO_LARGE","MISSING_KEY_PROPERTY","name","INVALID_KEY_WEIGHT_VALUE","hasOwn","KeyStore","keys","totalWeight","obj","createKey","keyId","path","id","src","weight","getFn","createKeyPath","createKeyId","get","list","arr","deepGet","len","MatchOptions","BasicOptions","a","b","FuzzyOptions","AdvancedOptions","Config","SPACE","norm","mantissa","cache","numTokens","n","FuseIndex","fieldNormWeight","docs","records","doc","docIndex","item","record","keyIndex","subRecords","stack","nestedArrIndex","subRecord","k","createIndex","myIndex","parseIndex","computeScore$1","pattern","errors","currentLocation","expectedLocation","distance","ignoreLocation","accuracy","proximity","convertMaskToIndices","matchmask","minMatchCharLength","indices","match","MAX_BITS","search","text","patternAlphabet","location","threshold","findAllMatches","includeMatches","patternLen","textLen","currentThreshold","bestLocation","computeMatches","matchMask","score","lastBitArr","finalScore","binMax","binMin","binMid","finish","bitArr","j","charMatch","createPatternAlphabet","char","stripDiacritics","str","BitapSearch","isCaseSensitive","ignoreDiacritics","addChunk","startIndex","remainder","allIndices","totalScore","hasMatches","alphabet","isMatch","BaseMatch","getMatch","exp","matches","ExactMatch","InverseExactMatch","PrefixExactMatch","InversePrefixExactMatch","SuffixExactMatch","InverseSuffixExactMatch","FuzzyMatch","IncludeMatch","searchers","searchersLen","SPACE_RE","OR_TOKEN","parseQuery","query","results","queryItem","found","searcher","token","MultiMatchSet","ExtendedSearch","numMatches","qLen","pLen","type","registeredSearchers","register","createSearcher","searcherClass","LogicalOperator","KeyType","isExpression","isPath","isLeaf","convertToExplicit","parse","auto","next","isQueryPath","node","computeScore","ignoreFieldNorm","transformMatches","transformScore","format","includeScore","transformers","transformer","Fuse","predicate","limit","shouldSort","sortFn","expression","evaluate","res","child","resultMap","expResults"],"mappings":"uWAEA,MAAMA,GAAW,CACf,OAAQ,CAACC,EAAOC,EAAOC,IAAiB,CACtC,IAAIC,EAAM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