bt-core-app 2.1.36 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjs-dynamic-modules.mjs +6 -0
- package/dist/_virtual/_commonjsHelpers.mjs +30 -0
- package/dist/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/dist/_virtual/index.mjs +4 -0
- package/dist/_virtual/localforage.mjs +4 -0
- package/dist/_virtual/luxon.mjs +6 -0
- package/dist/_virtual/matcher.mjs +4 -0
- package/dist/_virtual/parser.mjs +4 -0
- package/dist/bt-core/core/node_modules/@datasert/cronjs-matcher/dist/index.mjs +12 -0
- package/dist/bt-core/core/node_modules/@datasert/cronjs-matcher/dist/matcher.mjs +220 -0
- package/dist/bt-core/core/node_modules/@datasert/cronjs-parser/dist/parser.mjs +186 -0
- package/dist/bt-core/core/node_modules/@mdi/js/mdi.mjs +70 -0
- package/dist/bt-core/core/node_modules/@vuepic/vue-datepicker/dist/main.css.mjs +1 -0
- package/dist/bt-core/core/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.mjs +5210 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/addLeadingZeros.mjs +7 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/defaultOptions.mjs +7 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/format/formatters.mjs +517 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/format/lightFormatters.mjs +59 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/format/longFormatters.mjs +52 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs +18 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/normalizeDates.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/normalizeInterval.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/protectedTokens.mjs +21 -0
- package/dist/bt-core/core/node_modules/date-fns/add.mjs +20 -0
- package/dist/bt-core/core/node_modules/date-fns/addDays.mjs +10 -0
- package/dist/bt-core/core/node_modules/date-fns/addHours.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/addMilliseconds.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/addMonths.mjs +21 -0
- package/dist/bt-core/core/node_modules/date-fns/addQuarters.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/addYears.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/compareAsc.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/constants.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/constructFrom.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/differenceInCalendarDays.mjs +16 -0
- package/dist/bt-core/core/node_modules/date-fns/differenceInCalendarYears.mjs +13 -0
- package/dist/bt-core/core/node_modules/date-fns/differenceInYears.mjs +17 -0
- package/dist/bt-core/core/node_modules/date-fns/eachDayOfInterval.mjs +20 -0
- package/dist/bt-core/core/node_modules/date-fns/eachQuarterOfInterval.mjs +21 -0
- package/dist/bt-core/core/node_modules/date-fns/endOfQuarter.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/endOfWeek.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/endOfYear.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/format.mjs +60 -0
- package/dist/bt-core/core/node_modules/date-fns/getDay.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getDayOfYear.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/getDaysInMonth.mjs +10 -0
- package/dist/bt-core/core/node_modules/date-fns/getDefaultOptions.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getHours.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getISODay.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/getISOWeek.mjs +12 -0
- package/dist/bt-core/core/node_modules/date-fns/getISOWeekYear.mjs +15 -0
- package/dist/bt-core/core/node_modules/date-fns/getMinutes.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getMonth.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getQuarter.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/getSeconds.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getWeek.mjs +12 -0
- package/dist/bt-core/core/node_modules/date-fns/getWeekYear.mjs +17 -0
- package/dist/bt-core/core/node_modules/date-fns/getYear.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/isAfter.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/isBefore.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/isDate.mjs +7 -0
- package/dist/bt-core/core/node_modules/date-fns/isEqual.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/isSameQuarter.mjs +14 -0
- package/dist/bt-core/core/node_modules/date-fns/isValid.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs +18 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildMatchFn.mjs +31 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildMatchPatternFn.mjs +17 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/formatDistance.mjs +70 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/formatLong.mjs +33 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/formatRelative.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/localize.mjs +155 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/match.mjs +110 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US.mjs +21 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/Parser.mjs +22 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/Setter.mjs +41 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/constants.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/AMPMParser.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DateParser.mjs +61 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.mjs +51 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DayParser.mjs +45 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/EraParser.mjs +30 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.mjs +21 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.mjs +22 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.mjs +32 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.mjs +32 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.mjs +33 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.mjs +33 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISODayParser.mjs +99 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.mjs +48 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.mjs +48 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.mjs +40 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.mjs +74 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.mjs +48 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.mjs +69 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/MinuteParser.mjs +32 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/MonthParser.mjs +71 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/QuarterParser.mjs +70 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/SecondParser.mjs +32 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.mjs +74 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.mjs +71 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.mjs +70 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.mjs +22 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.mjs +22 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/YearParser.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers.mjs +67 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/utils.mjs +103 -0
- package/dist/bt-core/core/node_modules/date-fns/parse.mjs +90 -0
- package/dist/bt-core/core/node_modules/date-fns/set.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/setDay.mjs +12 -0
- package/dist/bt-core/core/node_modules/date-fns/setHours.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/setISODay.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/setISOWeek.mjs +10 -0
- package/dist/bt-core/core/node_modules/date-fns/setMilliseconds.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/setMinutes.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/setMonth.mjs +13 -0
- package/dist/bt-core/core/node_modules/date-fns/setSeconds.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/setWeek.mjs +10 -0
- package/dist/bt-core/core/node_modules/date-fns/setYear.mjs +10 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfDay.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfISOWeek.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfISOWeekYear.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfMonth.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfQuarter.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfWeek.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfWeekYear.mjs +13 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfYear.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/sub.mjs +19 -0
- package/dist/bt-core/core/node_modules/date-fns/subDays.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/subMonths.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/subYears.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/toDate.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/transpose.mjs +18 -0
- package/dist/bt-core/core/node_modules/localforage/dist/localforage.mjs +1454 -0
- package/dist/bt-core/core/node_modules/luxon/src/datetime.mjs +1855 -0
- package/dist/bt-core/core/node_modules/luxon/src/duration.mjs +753 -0
- package/dist/bt-core/core/node_modules/luxon/src/errors.mjs +40 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/conversions.mjs +92 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/diff.mjs +36 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/digits.mjs +77 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/english.mjs +138 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/formats.mjs +150 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/formatter.mjs +258 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/invalid.mjs +11 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/locale.mjs +294 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/regexParser.mjs +202 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/tokenParser.mjs +329 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/util.mjs +220 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/zoneUtil.mjs +20 -0
- package/dist/bt-core/core/node_modules/luxon/src/info.mjs +180 -0
- package/dist/bt-core/core/node_modules/luxon/src/interval.mjs +481 -0
- package/dist/bt-core/core/node_modules/luxon/src/luxon.mjs +24 -0
- package/dist/bt-core/core/node_modules/luxon/src/settings.mjs +150 -0
- package/dist/bt-core/core/node_modules/luxon/src/zone.mjs +88 -0
- package/dist/bt-core/core/node_modules/luxon/src/zones/IANAZone.mjs +183 -0
- package/dist/bt-core/core/node_modules/luxon/src/zones/fixedOffsetZone.mjs +125 -0
- package/dist/bt-core/core/node_modules/luxon/src/zones/invalidZone.mjs +41 -0
- package/dist/bt-core/core/node_modules/luxon/src/zones/systemZone.mjs +47 -0
- package/dist/bt-core/core/node_modules/merge-images/dist/index.es2015.mjs +47 -0
- package/dist/bt-core/core/node_modules/signature_pad/dist/signature_pad.mjs +248 -0
- package/dist/bt-core/core/node_modules/thenby/thenBy.module.mjs +38 -0
- package/dist/bt-core/core/node_modules/vue-picture-cropper/lib/index.mjs +1643 -0
- package/dist/bt-core/core/node_modules/vue-signature-pad/dist/vue-signature-pad.esm.mjs +173 -0
- package/dist/bt-core/core/node_modules/vue-use-spring/dist/index.mjs +204 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/defaults.mjs +61 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/icons.mjs +82 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/iconsets/mdi-svg.mjs +74 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/colors.mjs +322 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/console.mjs +7 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/defineComponent.mjs +34 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/getCurrentInstance.mjs +10 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/helpers.mjs +44 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/injectSelf.mjs +12 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/propsFactory.mjs +14 -0
- package/dist/components/BT-Assistant-Menu.vue.d.ts +19 -0
- package/dist/components/BT-Assistant-Menu.vue.mjs +464 -0
- package/dist/components/BT-Assistant-Menu.vue2.mjs +4 -0
- package/dist/components/BT-Avatar.vue.d.ts +16 -0
- package/dist/components/BT-Avatar.vue.mjs +41 -0
- package/dist/components/BT-Avatar.vue2.mjs +4 -0
- package/dist/components/BT-Background-Task.vue.d.ts +61 -0
- package/dist/components/BT-Background-Task.vue.mjs +89 -0
- package/dist/components/BT-Background-Task.vue2.mjs +4 -0
- package/dist/components/BT-Blade-Item.vue.d.ts +578 -0
- package/dist/components/BT-Blade-Item.vue.mjs +441 -0
- package/dist/components/BT-Blade-Item.vue2.mjs +4 -0
- package/dist/components/BT-Blade-Items.vue.d.ts +2358 -0
- package/dist/components/BT-Blade-Items.vue.mjs +7 -0
- package/dist/components/BT-Blade-Items.vue2.mjs +943 -0
- package/dist/components/BT-Blade-Items.vue3.mjs +1 -0
- package/dist/components/BT-Blade-Steps.vue.d.ts +1740 -0
- package/dist/components/BT-Blade-Steps.vue.mjs +7 -0
- package/dist/components/BT-Blade-Steps.vue2.mjs +1305 -0
- package/dist/components/BT-Blade-Steps.vue3.mjs +1 -0
- package/dist/components/BT-Blade.vue.d.ts +109 -0
- package/dist/components/BT-Blade.vue.mjs +268 -0
- package/dist/components/BT-Blade.vue2.mjs +4 -0
- package/dist/components/BT-Btn.vue.d.ts +47 -0
- package/dist/components/BT-Btn.vue.mjs +43 -0
- package/dist/components/BT-Btn.vue2.mjs +4 -0
- package/dist/components/BT-Camera-Overlay.vue.d.ts +57 -0
- package/dist/components/BT-Camera-Overlay.vue.mjs +173 -0
- package/dist/components/BT-Camera-Overlay.vue2.mjs +4 -0
- package/dist/components/BT-Col.vue.d.ts +49 -0
- package/dist/components/BT-Col.vue.mjs +33 -0
- package/dist/components/BT-Col.vue2.mjs +4 -0
- package/dist/components/BT-Color-Picker-Menu.vue.d.ts +23 -0
- package/dist/components/BT-Color-Picker-Menu.vue.mjs +63 -0
- package/dist/components/BT-Color-Picker-Menu.vue2.mjs +4 -0
- package/dist/components/BT-Cosmetics-Menu.vue.d.ts +14 -0
- package/dist/components/BT-Cosmetics-Menu.vue.mjs +211 -0
- package/dist/components/BT-Cosmetics-Menu.vue2.mjs +4 -0
- package/dist/components/BT-Cron-Span.vue.d.ts +21 -0
- package/dist/components/BT-Cron-Span.vue.mjs +66 -0
- package/dist/components/BT-Cron-Span.vue2.mjs +4 -0
- package/dist/components/BT-Cron.vue.d.ts +37 -0
- package/dist/components/BT-Cron.vue.mjs +538 -0
- package/dist/components/BT-Cron.vue2.mjs +4 -0
- package/dist/components/BT-Date-Select.vue.d.ts +46 -0
- package/dist/components/BT-Date-Select.vue.mjs +71 -0
- package/dist/components/BT-Date-Select.vue2.mjs +4 -0
- package/dist/components/BT-Date.vue.d.ts +53 -0
- package/dist/components/BT-Date.vue.mjs +55 -0
- package/dist/components/BT-Date.vue2.mjs +4 -0
- package/dist/components/BT-Demo-Profile-Select.vue.d.ts +17 -0
- package/dist/components/BT-Demo-Profile-Select.vue.mjs +52 -0
- package/dist/components/BT-Demo-Profile-Select.vue2.mjs +4 -0
- package/dist/components/BT-Dialog-Confirm.vue.d.ts +2 -0
- package/dist/components/BT-Dialog-Confirm.vue.mjs +63 -0
- package/dist/components/BT-Dialog-Confirm.vue2.mjs +4 -0
- package/dist/components/BT-Dialog-Date.vue.d.ts +2 -0
- package/dist/components/BT-Dialog-Date.vue.mjs +79 -0
- package/dist/components/BT-Dialog-Date.vue2.mjs +4 -0
- package/dist/components/BT-Dialog-Number.vue.d.ts +2 -0
- package/dist/components/BT-Dialog-Number.vue.mjs +178 -0
- package/dist/components/BT-Dialog-Number.vue2.mjs +4 -0
- package/dist/components/BT-Dialog-Select.vue.d.ts +2 -0
- package/dist/components/BT-Dialog-Select.vue.mjs +235 -0
- package/dist/components/BT-Dialog-Select.vue2.mjs +4 -0
- package/dist/components/BT-Divider.vue.d.ts +24 -0
- package/dist/components/BT-Divider.vue.mjs +31 -0
- package/dist/components/BT-Divider.vue2.mjs +4 -0
- package/dist/components/BT-Drag-Counter.vue.d.ts +114 -0
- package/dist/components/BT-Drag-Counter.vue.mjs +7 -0
- package/dist/components/BT-Drag-Counter.vue2.mjs +156 -0
- package/dist/components/BT-Drag-Counter.vue3.mjs +1 -0
- package/dist/components/BT-Entity.vue.d.ts +82 -0
- package/dist/components/BT-Entity.vue.mjs +172 -0
- package/dist/components/BT-Entity.vue2.mjs +4 -0
- package/dist/components/BT-Error.vue.d.ts +15 -0
- package/dist/components/BT-Error.vue.mjs +35 -0
- package/dist/components/BT-Error.vue2.mjs +4 -0
- package/dist/components/BT-Field-Checkbox.vue.d.ts +57 -0
- package/dist/components/BT-Field-Checkbox.vue.mjs +61 -0
- package/dist/components/BT-Field-Checkbox.vue2.mjs +4 -0
- package/dist/components/BT-Field-Date.vue.d.ts +69 -0
- package/dist/components/BT-Field-Date.vue.mjs +120 -0
- package/dist/components/BT-Field-Date.vue2.mjs +4 -0
- package/dist/components/BT-Field-Entity.vue.d.ts +48 -0
- package/dist/components/BT-Field-Entity.vue.mjs +55 -0
- package/dist/components/BT-Field-Entity.vue2.mjs +4 -0
- package/dist/components/BT-Field-Select-Simple.vue.d.ts +55 -0
- package/dist/components/BT-Field-Select-Simple.vue.mjs +52 -0
- package/dist/components/BT-Field-Select-Simple.vue2.mjs +4 -0
- package/dist/components/BT-Field-Select.vue.d.ts +70 -0
- package/dist/components/BT-Field-Select.vue.mjs +60 -0
- package/dist/components/BT-Field-Select.vue2.mjs +4 -0
- package/dist/components/BT-Field-String.vue.d.ts +57 -0
- package/dist/components/BT-Field-String.vue.mjs +87 -0
- package/dist/components/BT-Field-String.vue2.mjs +4 -0
- package/dist/components/BT-Field-Switch.vue.d.ts +51 -0
- package/dist/components/BT-Field-Switch.vue.mjs +64 -0
- package/dist/components/BT-Field-Switch.vue2.mjs +4 -0
- package/dist/components/BT-Field-Tags.vue.d.ts +53 -0
- package/dist/components/BT-Field-Tags.vue.mjs +80 -0
- package/dist/components/BT-Field-Tags.vue2.mjs +4 -0
- package/dist/components/BT-Field-Textarea.vue.d.ts +53 -0
- package/dist/components/BT-Field-Textarea.vue.mjs +66 -0
- package/dist/components/BT-Field-Textarea.vue2.mjs +4 -0
- package/dist/components/BT-Field-Trigger.vue.d.ts +113 -0
- package/dist/components/BT-Field-Trigger.vue.mjs +368 -0
- package/dist/components/BT-Field-Trigger.vue2.mjs +4 -0
- package/dist/components/BT-Field.vue.d.ts +49 -0
- package/dist/components/BT-Field.vue.mjs +59 -0
- package/dist/components/BT-Field.vue2.mjs +4 -0
- package/dist/components/BT-Form-Builder.vue.d.ts +74 -0
- package/dist/components/BT-Form-Builder.vue.mjs +762 -0
- package/dist/components/BT-Form-Builder.vue2.mjs +4 -0
- package/dist/components/BT-Form-Field.vue.d.ts +41 -0
- package/dist/components/BT-Form-Field.vue.mjs +186 -0
- package/dist/components/BT-Form-Field.vue2.mjs +4 -0
- package/dist/components/BT-Form.vue.d.ts +95 -0
- package/dist/components/BT-Form.vue.mjs +635 -0
- package/dist/components/BT-Form.vue2.mjs +4 -0
- package/dist/components/BT-Header-Option.vue.d.ts +18 -0
- package/dist/components/BT-Header-Option.vue.mjs +62 -0
- package/dist/components/BT-Header-Option.vue2.mjs +4 -0
- package/dist/components/BT-Image-Select.vue.d.ts +71 -0
- package/dist/components/BT-Image-Select.vue.mjs +219 -0
- package/dist/components/BT-Image-Select.vue2.mjs +4 -0
- package/dist/components/BT-Json.vue.d.ts +6 -0
- package/dist/components/BT-Json.vue.mjs +38 -0
- package/dist/components/BT-Json.vue2.mjs +1 -0
- package/dist/components/BT-Json.vue3.mjs +5 -0
- package/dist/components/BT-Loader.vue.d.ts +6 -0
- package/dist/components/BT-Loader.vue.mjs +37 -0
- package/dist/components/BT-Loader.vue2.mjs +4 -0
- package/dist/components/BT-Nav-Sidebar.vue.d.ts +25 -0
- package/dist/components/BT-Nav-Sidebar.vue.mjs +138 -0
- package/dist/components/BT-Nav-Sidebar.vue2.mjs +4 -0
- package/dist/components/BT-Number.vue.d.ts +23 -0
- package/dist/components/BT-Number.vue.mjs +7 -0
- package/dist/components/BT-Number.vue2.mjs +43 -0
- package/dist/components/BT-Number.vue3.mjs +1 -0
- package/dist/components/BT-Numpad.vue.d.ts +68 -0
- package/dist/components/BT-Numpad.vue.mjs +191 -0
- package/dist/components/BT-Numpad.vue2.mjs +4 -0
- package/dist/components/BT-Select-Inline.vue.d.ts +121 -0
- package/dist/components/BT-Select-Inline.vue.mjs +74 -0
- package/dist/components/BT-Select-Inline.vue2.mjs +24 -0
- package/dist/components/BT-Select-Inline.vue3.mjs +1 -0
- package/dist/components/BT-Select-List-Box.vue.d.ts +137 -0
- package/dist/components/BT-Select-List-Box.vue.mjs +414 -0
- package/dist/components/BT-Select-List-Box.vue2.mjs +4 -0
- package/dist/components/BT-Select-Simple.vue.d.ts +58 -0
- package/dist/components/BT-Select-Simple.vue.mjs +126 -0
- package/dist/components/BT-Select-Simple.vue2.mjs +4 -0
- package/dist/components/BT-Select.vue.d.ts +73 -0
- package/dist/components/BT-Select.vue.mjs +138 -0
- package/dist/components/BT-Select.vue2.mjs +4 -0
- package/dist/components/BT-Signature-Overlay.vue.d.ts +65 -0
- package/dist/components/BT-Signature-Overlay.vue.mjs +146 -0
- package/dist/components/BT-Signature-Overlay.vue2.mjs +4 -0
- package/dist/components/BT-Signature.vue.d.ts +70 -0
- package/dist/components/BT-Signature.vue.mjs +155 -0
- package/dist/components/BT-Signature.vue2.mjs +4 -0
- package/dist/components/BT-Slider.vue.d.ts +37 -0
- package/dist/components/BT-Slider.vue.mjs +126 -0
- package/dist/components/BT-Slider.vue2.mjs +4 -0
- package/dist/components/BT-Span.vue.d.ts +19 -0
- package/dist/components/BT-Span.vue.mjs +23 -0
- package/dist/components/BT-Span.vue2.mjs +4 -0
- package/dist/components/BT-Square-Check.vue.d.ts +104 -0
- package/dist/components/BT-Square-Check.vue.mjs +98 -0
- package/dist/components/BT-Square-Check.vue2.mjs +4 -0
- package/dist/components/BT-Status-Item.vue.d.ts +45 -0
- package/dist/components/BT-Status-Item.vue.mjs +51 -0
- package/dist/components/BT-Status-Item.vue2.mjs +4 -0
- package/dist/components/BT-Tags.vue.d.ts +19 -0
- package/dist/components/BT-Tags.vue.mjs +32 -0
- package/dist/components/BT-Tags.vue2.mjs +4 -0
- package/dist/components/BT-Tour.vue.d.ts +43 -0
- package/dist/components/BT-Tour.vue.mjs +78 -0
- package/dist/components/BT-Tour.vue2.mjs +4 -0
- package/dist/components.mjs +36 -0
- package/dist/composables/actions-local.d.ts +14 -0
- package/dist/composables/actions-local.mjs +26 -0
- package/dist/composables/actions-tracker.d.ts +36 -0
- package/dist/composables/actions-tracker.mjs +88 -0
- package/dist/composables/actions.d.ts +116 -0
- package/dist/composables/actions.mjs +272 -0
- package/dist/composables/api.d.ts +100 -0
- package/dist/composables/api.mjs +329 -0
- package/dist/composables/assistant.d.ts +38 -0
- package/dist/composables/assistant.mjs +70 -0
- package/dist/composables/auth.d.ts +94 -0
- package/dist/composables/auth.mjs +257 -0
- package/dist/composables/background-tasks.d.ts +31 -0
- package/dist/composables/background-tasks.mjs +79 -0
- package/dist/composables/blade-old.d.ts +1 -0
- package/dist/composables/blade.d.ts +91 -0
- package/dist/composables/blade.mjs +156 -0
- package/dist/composables/charts.d.ts +10 -0
- package/dist/composables/colorizer.d.ts +5 -0
- package/dist/composables/colorizer.mjs +27 -0
- package/dist/composables/component-config.d.ts +8 -0
- package/dist/composables/component-config.mjs +11 -0
- package/dist/composables/confirm.d.ts +1 -0
- package/dist/composables/confirm.mjs +11 -0
- package/dist/composables/cosmetics.d.ts +44 -0
- package/dist/composables/cosmetics.mjs +125 -0
- package/dist/composables/cron-adjustments.d.ts +63 -0
- package/dist/composables/cron-adjustments.mjs +106 -0
- package/dist/composables/cron.d.ts +72 -0
- package/dist/composables/cron.mjs +326 -0
- package/dist/composables/csv.d.ts +44 -0
- package/dist/composables/csv.mjs +163 -0
- package/dist/composables/dates.d.ts +22 -0
- package/dist/composables/dates.mjs +61 -0
- package/dist/composables/demo.d.ts +68 -0
- package/dist/composables/demo.mjs +173 -0
- package/dist/composables/dialog-items.d.ts +117 -0
- package/dist/composables/dialog-items.mjs +72 -0
- package/dist/composables/document-meta.d.ts +11 -0
- package/dist/composables/document-meta.mjs +20 -0
- package/dist/composables/draggable.d.ts +56 -0
- package/dist/composables/draggable.mjs +76 -0
- package/dist/composables/feedback.d.ts +24 -0
- package/dist/composables/feedback.mjs +32 -0
- package/dist/composables/filters.d.ts +27 -0
- package/dist/composables/filters.mjs +218 -0
- package/dist/composables/forage.d.ts +89 -0
- package/dist/composables/forage.mjs +37 -0
- package/dist/composables/forms.d.ts +104 -0
- package/dist/composables/forms.mjs +256 -0
- package/dist/composables/geo.d.ts +24 -0
- package/dist/composables/geo.mjs +95 -0
- package/dist/composables/graph-pro.d.ts +98 -0
- package/dist/composables/graph-pro.mjs +205 -0
- package/dist/composables/graphing.d.ts +1 -0
- package/dist/composables/heights.d.ts +24 -0
- package/dist/composables/heights.mjs +41 -0
- package/dist/composables/helpers.d.ts +114 -0
- package/dist/composables/helpers.mjs +512 -0
- package/dist/composables/icons.d.ts +3 -0
- package/dist/composables/icons.mjs +84 -0
- package/dist/composables/id.d.ts +8 -0
- package/dist/composables/id.mjs +32 -0
- package/dist/composables/item.d.ts +132 -0
- package/dist/composables/item.mjs +263 -0
- package/dist/composables/iterating.d.ts +1 -0
- package/dist/composables/list.d.ts +345 -0
- package/dist/composables/list.mjs +460 -0
- package/dist/composables/lists.d.ts +10 -0
- package/dist/composables/lists.mjs +31 -0
- package/dist/composables/menu.d.ts +35 -0
- package/dist/composables/menu.mjs +63 -0
- package/dist/composables/navigation.d.ts +123 -0
- package/dist/composables/navigation.mjs +157 -0
- package/dist/composables/nested.d.ts +3 -0
- package/dist/composables/nested.mjs +20 -0
- package/dist/composables/old-dialogs.d.ts +1 -0
- package/dist/composables/presets.d.ts +8 -0
- package/dist/composables/presets.mjs +16 -0
- package/dist/composables/pwa-old.d.ts +15 -0
- package/dist/composables/pwa.d.ts +26 -0
- package/dist/composables/pwa.mjs +80 -0
- package/dist/composables/resizable.d.ts +34 -0
- package/dist/composables/resizable.mjs +135 -0
- package/dist/composables/routing-old.d.ts +1 -0
- package/dist/composables/routing.d.ts +16 -0
- package/dist/composables/routing.mjs +112 -0
- package/dist/composables/rules.d.ts +13 -0
- package/dist/composables/rules.mjs +22 -0
- package/dist/composables/select.d.ts +78 -0
- package/dist/composables/select.mjs +129 -0
- package/dist/composables/settings.d.ts +6 -0
- package/dist/composables/settings.mjs +21 -0
- package/dist/composables/setup.d.ts +1 -0
- package/dist/composables/steps-old.d.ts +1 -0
- package/dist/composables/steps.d.ts +53 -0
- package/dist/composables/steps.mjs +39 -0
- package/dist/composables/stores.d.ts +258 -0
- package/dist/composables/stores.mjs +1257 -0
- package/dist/composables/sync.d.ts +33 -0
- package/dist/composables/track.d.ts +13 -0
- package/dist/composables/track.mjs +30 -0
- package/dist/composables/urls.d.ts +35 -0
- package/dist/composables/urls.mjs +66 -0
- package/dist/composables/vuetify.d.ts +85 -0
- package/dist/composables.mjs +237 -0
- package/dist/core.d.ts +48 -0
- package/dist/core.mjs +6 -0
- package/dist/core2.mjs +118 -0
- package/dist/index-components.d.ts +19 -0
- package/dist/index-composables.d.ts +75 -0
- package/dist/index-core.d.ts +3 -0
- package/dist/index.d.ts +96 -3036
- package/dist/index.mjs +275 -0
- package/dist/main.d.ts +1 -0
- package/dist/node_modules/bt-core-app/dist/bt-core-app.mjs +30372 -0
- package/dist/style.css +1 -5
- package/dist/types.d.ts +18 -0
- package/dist/types.mjs +7 -0
- package/package.json +4 -1
- package/dist/bt-core-app.js +0 -81355
|
@@ -0,0 +1,1454 @@
|
|
|
1
|
+
import { commonjsGlobal as ne, getDefaultExportFromCjs as Mr } from "../../../../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
+
import { commonjsRequire as te } from "../../../../../_virtual/_commonjs-dynamic-modules.mjs";
|
|
3
|
+
import { __module as Fe } from "../../../../../_virtual/localforage.mjs";
|
|
4
|
+
/*!
|
|
5
|
+
localForage -- Offline Storage, Improved
|
|
6
|
+
Version 1.10.0
|
|
7
|
+
https://localforage.github.io/localForage
|
|
8
|
+
(c) 2013-2017 Mozilla, Apache License 2.0
|
|
9
|
+
*/
|
|
10
|
+
(function(Me, Yr) {
|
|
11
|
+
(function(z) {
|
|
12
|
+
Me.exports = z();
|
|
13
|
+
})(function() {
|
|
14
|
+
return function z(M, K, E) {
|
|
15
|
+
function C(T, U) {
|
|
16
|
+
if (!K[T]) {
|
|
17
|
+
if (!M[T]) {
|
|
18
|
+
var v = typeof te == "function" && te;
|
|
19
|
+
if (!U && v)
|
|
20
|
+
return v(T, !0);
|
|
21
|
+
if (b)
|
|
22
|
+
return b(T, !0);
|
|
23
|
+
var h = new Error("Cannot find module '" + T + "'");
|
|
24
|
+
throw h.code = "MODULE_NOT_FOUND", h;
|
|
25
|
+
}
|
|
26
|
+
var I = K[T] = { exports: {} };
|
|
27
|
+
M[T][0].call(I.exports, function(A) {
|
|
28
|
+
var Y = M[T][1][A];
|
|
29
|
+
return C(Y || A);
|
|
30
|
+
}, I, I.exports, z, M, K, E);
|
|
31
|
+
}
|
|
32
|
+
return K[T].exports;
|
|
33
|
+
}
|
|
34
|
+
for (var b = typeof te == "function" && te, B = 0; B < E.length; B++)
|
|
35
|
+
C(E[B]);
|
|
36
|
+
return C;
|
|
37
|
+
}({ 1: [function(z, M, K) {
|
|
38
|
+
(function(E) {
|
|
39
|
+
var C = E.MutationObserver || E.WebKitMutationObserver, b;
|
|
40
|
+
if (C) {
|
|
41
|
+
var B = 0, T = new C(A), U = E.document.createTextNode("");
|
|
42
|
+
T.observe(U, {
|
|
43
|
+
characterData: !0
|
|
44
|
+
}), b = function() {
|
|
45
|
+
U.data = B = ++B % 2;
|
|
46
|
+
};
|
|
47
|
+
} else if (!E.setImmediate && typeof E.MessageChannel < "u") {
|
|
48
|
+
var v = new E.MessageChannel();
|
|
49
|
+
v.port1.onmessage = A, b = function() {
|
|
50
|
+
v.port2.postMessage(0);
|
|
51
|
+
};
|
|
52
|
+
} else
|
|
53
|
+
"document" in E && "onreadystatechange" in E.document.createElement("script") ? b = function() {
|
|
54
|
+
var D = E.document.createElement("script");
|
|
55
|
+
D.onreadystatechange = function() {
|
|
56
|
+
A(), D.onreadystatechange = null, D.parentNode.removeChild(D), D = null;
|
|
57
|
+
}, E.document.documentElement.appendChild(D);
|
|
58
|
+
} : b = function() {
|
|
59
|
+
setTimeout(A, 0);
|
|
60
|
+
};
|
|
61
|
+
var h, I = [];
|
|
62
|
+
function A() {
|
|
63
|
+
h = !0;
|
|
64
|
+
for (var D, W, N = I.length; N; ) {
|
|
65
|
+
for (W = I, I = [], D = -1; ++D < N; )
|
|
66
|
+
W[D]();
|
|
67
|
+
N = I.length;
|
|
68
|
+
}
|
|
69
|
+
h = !1;
|
|
70
|
+
}
|
|
71
|
+
M.exports = Y;
|
|
72
|
+
function Y(D) {
|
|
73
|
+
I.push(D) === 1 && !h && b();
|
|
74
|
+
}
|
|
75
|
+
}).call(this, typeof ne < "u" ? ne : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
76
|
+
}, {}], 2: [function(z, M, K) {
|
|
77
|
+
var E = z(1);
|
|
78
|
+
function C() {
|
|
79
|
+
}
|
|
80
|
+
var b = {}, B = ["REJECTED"], T = ["FULFILLED"], U = ["PENDING"];
|
|
81
|
+
M.exports = v;
|
|
82
|
+
function v(l) {
|
|
83
|
+
if (typeof l != "function")
|
|
84
|
+
throw new TypeError("resolver must be a function");
|
|
85
|
+
this.state = U, this.queue = [], this.outcome = void 0, l !== C && Y(this, l);
|
|
86
|
+
}
|
|
87
|
+
v.prototype.catch = function(l) {
|
|
88
|
+
return this.then(null, l);
|
|
89
|
+
}, v.prototype.then = function(l, p) {
|
|
90
|
+
if (typeof l != "function" && this.state === T || typeof p != "function" && this.state === B)
|
|
91
|
+
return this;
|
|
92
|
+
var y = new this.constructor(C);
|
|
93
|
+
if (this.state !== U) {
|
|
94
|
+
var w = this.state === T ? l : p;
|
|
95
|
+
I(y, w, this.outcome);
|
|
96
|
+
} else
|
|
97
|
+
this.queue.push(new h(y, l, p));
|
|
98
|
+
return y;
|
|
99
|
+
};
|
|
100
|
+
function h(l, p, y) {
|
|
101
|
+
this.promise = l, typeof p == "function" && (this.onFulfilled = p, this.callFulfilled = this.otherCallFulfilled), typeof y == "function" && (this.onRejected = y, this.callRejected = this.otherCallRejected);
|
|
102
|
+
}
|
|
103
|
+
h.prototype.callFulfilled = function(l) {
|
|
104
|
+
b.resolve(this.promise, l);
|
|
105
|
+
}, h.prototype.otherCallFulfilled = function(l) {
|
|
106
|
+
I(this.promise, this.onFulfilled, l);
|
|
107
|
+
}, h.prototype.callRejected = function(l) {
|
|
108
|
+
b.reject(this.promise, l);
|
|
109
|
+
}, h.prototype.otherCallRejected = function(l) {
|
|
110
|
+
I(this.promise, this.onRejected, l);
|
|
111
|
+
};
|
|
112
|
+
function I(l, p, y) {
|
|
113
|
+
E(function() {
|
|
114
|
+
var w;
|
|
115
|
+
try {
|
|
116
|
+
w = p(y);
|
|
117
|
+
} catch (x) {
|
|
118
|
+
return b.reject(l, x);
|
|
119
|
+
}
|
|
120
|
+
w === l ? b.reject(l, new TypeError("Cannot resolve promise with itself")) : b.resolve(l, w);
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
b.resolve = function(l, p) {
|
|
124
|
+
var y = D(A, p);
|
|
125
|
+
if (y.status === "error")
|
|
126
|
+
return b.reject(l, y.value);
|
|
127
|
+
var w = y.value;
|
|
128
|
+
if (w)
|
|
129
|
+
Y(l, w);
|
|
130
|
+
else {
|
|
131
|
+
l.state = T, l.outcome = p;
|
|
132
|
+
for (var x = -1, O = l.queue.length; ++x < O; )
|
|
133
|
+
l.queue[x].callFulfilled(p);
|
|
134
|
+
}
|
|
135
|
+
return l;
|
|
136
|
+
}, b.reject = function(l, p) {
|
|
137
|
+
l.state = B, l.outcome = p;
|
|
138
|
+
for (var y = -1, w = l.queue.length; ++y < w; )
|
|
139
|
+
l.queue[y].callRejected(p);
|
|
140
|
+
return l;
|
|
141
|
+
};
|
|
142
|
+
function A(l) {
|
|
143
|
+
var p = l && l.then;
|
|
144
|
+
if (l && (typeof l == "object" || typeof l == "function") && typeof p == "function")
|
|
145
|
+
return function() {
|
|
146
|
+
p.apply(l, arguments);
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
function Y(l, p) {
|
|
150
|
+
var y = !1;
|
|
151
|
+
function w(P) {
|
|
152
|
+
y || (y = !0, b.reject(l, P));
|
|
153
|
+
}
|
|
154
|
+
function x(P) {
|
|
155
|
+
y || (y = !0, b.resolve(l, P));
|
|
156
|
+
}
|
|
157
|
+
function O() {
|
|
158
|
+
p(x, w);
|
|
159
|
+
}
|
|
160
|
+
var L = D(O);
|
|
161
|
+
L.status === "error" && w(L.value);
|
|
162
|
+
}
|
|
163
|
+
function D(l, p) {
|
|
164
|
+
var y = {};
|
|
165
|
+
try {
|
|
166
|
+
y.value = l(p), y.status = "success";
|
|
167
|
+
} catch (w) {
|
|
168
|
+
y.status = "error", y.value = w;
|
|
169
|
+
}
|
|
170
|
+
return y;
|
|
171
|
+
}
|
|
172
|
+
v.resolve = W;
|
|
173
|
+
function W(l) {
|
|
174
|
+
return l instanceof this ? l : b.resolve(new this(C), l);
|
|
175
|
+
}
|
|
176
|
+
v.reject = N;
|
|
177
|
+
function N(l) {
|
|
178
|
+
var p = new this(C);
|
|
179
|
+
return b.reject(p, l);
|
|
180
|
+
}
|
|
181
|
+
v.all = oe;
|
|
182
|
+
function oe(l) {
|
|
183
|
+
var p = this;
|
|
184
|
+
if (Object.prototype.toString.call(l) !== "[object Array]")
|
|
185
|
+
return this.reject(new TypeError("must be an array"));
|
|
186
|
+
var y = l.length, w = !1;
|
|
187
|
+
if (!y)
|
|
188
|
+
return this.resolve([]);
|
|
189
|
+
for (var x = new Array(y), O = 0, L = -1, P = new this(C); ++L < y; )
|
|
190
|
+
$(l[L], L);
|
|
191
|
+
return P;
|
|
192
|
+
function $(j, q) {
|
|
193
|
+
p.resolve(j).then(ae, function(X) {
|
|
194
|
+
w || (w = !0, b.reject(P, X));
|
|
195
|
+
});
|
|
196
|
+
function ae(X) {
|
|
197
|
+
x[q] = X, ++O === y && !w && (w = !0, b.resolve(P, x));
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
v.race = H;
|
|
202
|
+
function H(l) {
|
|
203
|
+
var p = this;
|
|
204
|
+
if (Object.prototype.toString.call(l) !== "[object Array]")
|
|
205
|
+
return this.reject(new TypeError("must be an array"));
|
|
206
|
+
var y = l.length, w = !1;
|
|
207
|
+
if (!y)
|
|
208
|
+
return this.resolve([]);
|
|
209
|
+
for (var x = -1, O = new this(C); ++x < y; )
|
|
210
|
+
L(l[x]);
|
|
211
|
+
return O;
|
|
212
|
+
function L(P) {
|
|
213
|
+
p.resolve(P).then(function($) {
|
|
214
|
+
w || (w = !0, b.resolve(O, $));
|
|
215
|
+
}, function($) {
|
|
216
|
+
w || (w = !0, b.reject(O, $));
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}, { 1: 1 }], 3: [function(z, M, K) {
|
|
221
|
+
(function(E) {
|
|
222
|
+
typeof E.Promise != "function" && (E.Promise = z(2));
|
|
223
|
+
}).call(this, typeof ne < "u" ? ne : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
224
|
+
}, { 2: 2 }], 4: [function(z, M, K) {
|
|
225
|
+
var E = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
226
|
+
return typeof e;
|
|
227
|
+
} : function(e) {
|
|
228
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
229
|
+
};
|
|
230
|
+
function C(e, n) {
|
|
231
|
+
if (!(e instanceof n))
|
|
232
|
+
throw new TypeError("Cannot call a class as a function");
|
|
233
|
+
}
|
|
234
|
+
function b() {
|
|
235
|
+
try {
|
|
236
|
+
if (typeof indexedDB < "u")
|
|
237
|
+
return indexedDB;
|
|
238
|
+
if (typeof webkitIndexedDB < "u")
|
|
239
|
+
return webkitIndexedDB;
|
|
240
|
+
if (typeof mozIndexedDB < "u")
|
|
241
|
+
return mozIndexedDB;
|
|
242
|
+
if (typeof OIndexedDB < "u")
|
|
243
|
+
return OIndexedDB;
|
|
244
|
+
if (typeof msIndexedDB < "u")
|
|
245
|
+
return msIndexedDB;
|
|
246
|
+
} catch {
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
var B = b();
|
|
251
|
+
function T() {
|
|
252
|
+
try {
|
|
253
|
+
if (!B || !B.open)
|
|
254
|
+
return !1;
|
|
255
|
+
var e = typeof openDatabase < "u" && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), n = typeof fetch == "function" && fetch.toString().indexOf("[native code") !== -1;
|
|
256
|
+
return (!e || n) && typeof indexedDB < "u" && // some outdated implementations of IDB that appear on Samsung
|
|
257
|
+
// and HTC Android devices <4.4 are missing IDBKeyRange
|
|
258
|
+
// See: https://github.com/mozilla/localForage/issues/128
|
|
259
|
+
// See: https://github.com/mozilla/localForage/issues/272
|
|
260
|
+
typeof IDBKeyRange < "u";
|
|
261
|
+
} catch {
|
|
262
|
+
return !1;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
function U(e, n) {
|
|
266
|
+
e = e || [], n = n || {};
|
|
267
|
+
try {
|
|
268
|
+
return new Blob(e, n);
|
|
269
|
+
} catch (t) {
|
|
270
|
+
if (t.name !== "TypeError")
|
|
271
|
+
throw t;
|
|
272
|
+
for (var r = typeof BlobBuilder < "u" ? BlobBuilder : typeof MSBlobBuilder < "u" ? MSBlobBuilder : typeof MozBlobBuilder < "u" ? MozBlobBuilder : WebKitBlobBuilder, o = new r(), a = 0; a < e.length; a += 1)
|
|
273
|
+
o.append(e[a]);
|
|
274
|
+
return o.getBlob(n.type);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
typeof Promise > "u" && z(3);
|
|
278
|
+
var v = Promise;
|
|
279
|
+
function h(e, n) {
|
|
280
|
+
n && e.then(function(r) {
|
|
281
|
+
n(null, r);
|
|
282
|
+
}, function(r) {
|
|
283
|
+
n(r);
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
function I(e, n, r) {
|
|
287
|
+
typeof n == "function" && e.then(n), typeof r == "function" && e.catch(r);
|
|
288
|
+
}
|
|
289
|
+
function A(e) {
|
|
290
|
+
return typeof e != "string" && (console.warn(e + " used as a key, but it is not a string."), e = String(e)), e;
|
|
291
|
+
}
|
|
292
|
+
function Y() {
|
|
293
|
+
if (arguments.length && typeof arguments[arguments.length - 1] == "function")
|
|
294
|
+
return arguments[arguments.length - 1];
|
|
295
|
+
}
|
|
296
|
+
var D = "local-forage-detect-blob-support", W = void 0, N = {}, oe = Object.prototype.toString, H = "readonly", l = "readwrite";
|
|
297
|
+
function p(e) {
|
|
298
|
+
for (var n = e.length, r = new ArrayBuffer(n), o = new Uint8Array(r), a = 0; a < n; a++)
|
|
299
|
+
o[a] = e.charCodeAt(a);
|
|
300
|
+
return r;
|
|
301
|
+
}
|
|
302
|
+
function y(e) {
|
|
303
|
+
return new v(function(n) {
|
|
304
|
+
var r = e.transaction(D, l), o = U([""]);
|
|
305
|
+
r.objectStore(D).put(o, "key"), r.onabort = function(a) {
|
|
306
|
+
a.preventDefault(), a.stopPropagation(), n(!1);
|
|
307
|
+
}, r.oncomplete = function() {
|
|
308
|
+
var a = navigator.userAgent.match(/Chrome\/(\d+)/), t = navigator.userAgent.match(/Edge\//);
|
|
309
|
+
n(t || !a || parseInt(a[1], 10) >= 43);
|
|
310
|
+
};
|
|
311
|
+
}).catch(function() {
|
|
312
|
+
return !1;
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
function w(e) {
|
|
316
|
+
return typeof W == "boolean" ? v.resolve(W) : y(e).then(function(n) {
|
|
317
|
+
return W = n, W;
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
function x(e) {
|
|
321
|
+
var n = N[e.name], r = {};
|
|
322
|
+
r.promise = new v(function(o, a) {
|
|
323
|
+
r.resolve = o, r.reject = a;
|
|
324
|
+
}), n.deferredOperations.push(r), n.dbReady ? n.dbReady = n.dbReady.then(function() {
|
|
325
|
+
return r.promise;
|
|
326
|
+
}) : n.dbReady = r.promise;
|
|
327
|
+
}
|
|
328
|
+
function O(e) {
|
|
329
|
+
var n = N[e.name], r = n.deferredOperations.pop();
|
|
330
|
+
if (r)
|
|
331
|
+
return r.resolve(), r.promise;
|
|
332
|
+
}
|
|
333
|
+
function L(e, n) {
|
|
334
|
+
var r = N[e.name], o = r.deferredOperations.pop();
|
|
335
|
+
if (o)
|
|
336
|
+
return o.reject(n), o.promise;
|
|
337
|
+
}
|
|
338
|
+
function P(e, n) {
|
|
339
|
+
return new v(function(r, o) {
|
|
340
|
+
if (N[e.name] = N[e.name] || ye(), e.db)
|
|
341
|
+
if (n)
|
|
342
|
+
x(e), e.db.close();
|
|
343
|
+
else
|
|
344
|
+
return r(e.db);
|
|
345
|
+
var a = [e.name];
|
|
346
|
+
n && a.push(e.version);
|
|
347
|
+
var t = B.open.apply(B, a);
|
|
348
|
+
n && (t.onupgradeneeded = function(i) {
|
|
349
|
+
var f = t.result;
|
|
350
|
+
try {
|
|
351
|
+
f.createObjectStore(e.storeName), i.oldVersion <= 1 && f.createObjectStore(D);
|
|
352
|
+
} catch (u) {
|
|
353
|
+
if (u.name === "ConstraintError")
|
|
354
|
+
console.warn('The database "' + e.name + '" has been upgraded from version ' + i.oldVersion + " to version " + i.newVersion + ', but the storage "' + e.storeName + '" already exists.');
|
|
355
|
+
else
|
|
356
|
+
throw u;
|
|
357
|
+
}
|
|
358
|
+
}), t.onerror = function(i) {
|
|
359
|
+
i.preventDefault(), o(t.error);
|
|
360
|
+
}, t.onsuccess = function() {
|
|
361
|
+
var i = t.result;
|
|
362
|
+
i.onversionchange = function(f) {
|
|
363
|
+
f.target.close();
|
|
364
|
+
}, r(i), O(e);
|
|
365
|
+
};
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
function $(e) {
|
|
369
|
+
return P(e, !1);
|
|
370
|
+
}
|
|
371
|
+
function j(e) {
|
|
372
|
+
return P(e, !0);
|
|
373
|
+
}
|
|
374
|
+
function q(e, n) {
|
|
375
|
+
if (!e.db)
|
|
376
|
+
return !0;
|
|
377
|
+
var r = !e.db.objectStoreNames.contains(e.storeName), o = e.version < e.db.version, a = e.version > e.db.version;
|
|
378
|
+
if (o && (e.version !== n && console.warn('The database "' + e.name + `" can't be downgraded from version ` + e.db.version + " to version " + e.version + "."), e.version = e.db.version), a || r) {
|
|
379
|
+
if (r) {
|
|
380
|
+
var t = e.db.version + 1;
|
|
381
|
+
t > e.version && (e.version = t);
|
|
382
|
+
}
|
|
383
|
+
return !0;
|
|
384
|
+
}
|
|
385
|
+
return !1;
|
|
386
|
+
}
|
|
387
|
+
function ae(e) {
|
|
388
|
+
return new v(function(n, r) {
|
|
389
|
+
var o = new FileReader();
|
|
390
|
+
o.onerror = r, o.onloadend = function(a) {
|
|
391
|
+
var t = btoa(a.target.result || "");
|
|
392
|
+
n({
|
|
393
|
+
__local_forage_encoded_blob: !0,
|
|
394
|
+
data: t,
|
|
395
|
+
type: e.type
|
|
396
|
+
});
|
|
397
|
+
}, o.readAsBinaryString(e);
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
function X(e) {
|
|
401
|
+
var n = p(atob(e.data));
|
|
402
|
+
return U([n], { type: e.type });
|
|
403
|
+
}
|
|
404
|
+
function me(e) {
|
|
405
|
+
return e && e.__local_forage_encoded_blob;
|
|
406
|
+
}
|
|
407
|
+
function Ue(e) {
|
|
408
|
+
var n = this, r = n._initReady().then(function() {
|
|
409
|
+
var o = N[n._dbInfo.name];
|
|
410
|
+
if (o && o.dbReady)
|
|
411
|
+
return o.dbReady;
|
|
412
|
+
});
|
|
413
|
+
return I(r, e, e), r;
|
|
414
|
+
}
|
|
415
|
+
function Ye(e) {
|
|
416
|
+
x(e);
|
|
417
|
+
for (var n = N[e.name], r = n.forages, o = 0; o < r.length; o++) {
|
|
418
|
+
var a = r[o];
|
|
419
|
+
a._dbInfo.db && (a._dbInfo.db.close(), a._dbInfo.db = null);
|
|
420
|
+
}
|
|
421
|
+
return e.db = null, $(e).then(function(t) {
|
|
422
|
+
return e.db = t, q(e) ? j(e) : t;
|
|
423
|
+
}).then(function(t) {
|
|
424
|
+
e.db = n.db = t;
|
|
425
|
+
for (var i = 0; i < r.length; i++)
|
|
426
|
+
r[i]._dbInfo.db = t;
|
|
427
|
+
}).catch(function(t) {
|
|
428
|
+
throw L(e, t), t;
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
function V(e, n, r, o) {
|
|
432
|
+
o === void 0 && (o = 1);
|
|
433
|
+
try {
|
|
434
|
+
var a = e.db.transaction(e.storeName, n);
|
|
435
|
+
r(null, a);
|
|
436
|
+
} catch (t) {
|
|
437
|
+
if (o > 0 && (!e.db || t.name === "InvalidStateError" || t.name === "NotFoundError"))
|
|
438
|
+
return v.resolve().then(function() {
|
|
439
|
+
if (!e.db || t.name === "NotFoundError" && !e.db.objectStoreNames.contains(e.storeName) && e.version <= e.db.version)
|
|
440
|
+
return e.db && (e.version = e.db.version + 1), j(e);
|
|
441
|
+
}).then(function() {
|
|
442
|
+
return Ye(e).then(function() {
|
|
443
|
+
V(e, n, r, o - 1);
|
|
444
|
+
});
|
|
445
|
+
}).catch(r);
|
|
446
|
+
r(t);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
function ye() {
|
|
450
|
+
return {
|
|
451
|
+
// Running localForages sharing a database.
|
|
452
|
+
forages: [],
|
|
453
|
+
// Shared database.
|
|
454
|
+
db: null,
|
|
455
|
+
// Database readiness (promise).
|
|
456
|
+
dbReady: null,
|
|
457
|
+
// Deferred operations on the database.
|
|
458
|
+
deferredOperations: []
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
function ze(e) {
|
|
462
|
+
var n = this, r = {
|
|
463
|
+
db: null
|
|
464
|
+
};
|
|
465
|
+
if (e)
|
|
466
|
+
for (var o in e)
|
|
467
|
+
r[o] = e[o];
|
|
468
|
+
var a = N[r.name];
|
|
469
|
+
a || (a = ye(), N[r.name] = a), a.forages.push(n), n._initReady || (n._initReady = n.ready, n.ready = Ue);
|
|
470
|
+
var t = [];
|
|
471
|
+
function i() {
|
|
472
|
+
return v.resolve();
|
|
473
|
+
}
|
|
474
|
+
for (var f = 0; f < a.forages.length; f++) {
|
|
475
|
+
var u = a.forages[f];
|
|
476
|
+
u !== n && t.push(u._initReady().catch(i));
|
|
477
|
+
}
|
|
478
|
+
var c = a.forages.slice(0);
|
|
479
|
+
return v.all(t).then(function() {
|
|
480
|
+
return r.db = a.db, $(r);
|
|
481
|
+
}).then(function(s) {
|
|
482
|
+
return r.db = s, q(r, n._defaultConfig.version) ? j(r) : s;
|
|
483
|
+
}).then(function(s) {
|
|
484
|
+
r.db = a.db = s, n._dbInfo = r;
|
|
485
|
+
for (var d = 0; d < c.length; d++) {
|
|
486
|
+
var m = c[d];
|
|
487
|
+
m !== n && (m._dbInfo.db = r.db, m._dbInfo.version = r.version);
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
function We(e, n) {
|
|
492
|
+
var r = this;
|
|
493
|
+
e = A(e);
|
|
494
|
+
var o = new v(function(a, t) {
|
|
495
|
+
r.ready().then(function() {
|
|
496
|
+
V(r._dbInfo, H, function(i, f) {
|
|
497
|
+
if (i)
|
|
498
|
+
return t(i);
|
|
499
|
+
try {
|
|
500
|
+
var u = f.objectStore(r._dbInfo.storeName), c = u.get(e);
|
|
501
|
+
c.onsuccess = function() {
|
|
502
|
+
var s = c.result;
|
|
503
|
+
s === void 0 && (s = null), me(s) && (s = X(s)), a(s);
|
|
504
|
+
}, c.onerror = function() {
|
|
505
|
+
t(c.error);
|
|
506
|
+
};
|
|
507
|
+
} catch (s) {
|
|
508
|
+
t(s);
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
}).catch(t);
|
|
512
|
+
});
|
|
513
|
+
return h(o, n), o;
|
|
514
|
+
}
|
|
515
|
+
function $e(e, n) {
|
|
516
|
+
var r = this, o = new v(function(a, t) {
|
|
517
|
+
r.ready().then(function() {
|
|
518
|
+
V(r._dbInfo, H, function(i, f) {
|
|
519
|
+
if (i)
|
|
520
|
+
return t(i);
|
|
521
|
+
try {
|
|
522
|
+
var u = f.objectStore(r._dbInfo.storeName), c = u.openCursor(), s = 1;
|
|
523
|
+
c.onsuccess = function() {
|
|
524
|
+
var d = c.result;
|
|
525
|
+
if (d) {
|
|
526
|
+
var m = d.value;
|
|
527
|
+
me(m) && (m = X(m));
|
|
528
|
+
var g = e(m, d.key, s++);
|
|
529
|
+
g !== void 0 ? a(g) : d.continue();
|
|
530
|
+
} else
|
|
531
|
+
a();
|
|
532
|
+
}, c.onerror = function() {
|
|
533
|
+
t(c.error);
|
|
534
|
+
};
|
|
535
|
+
} catch (d) {
|
|
536
|
+
t(d);
|
|
537
|
+
}
|
|
538
|
+
});
|
|
539
|
+
}).catch(t);
|
|
540
|
+
});
|
|
541
|
+
return h(o, n), o;
|
|
542
|
+
}
|
|
543
|
+
function Ve(e, n, r) {
|
|
544
|
+
var o = this;
|
|
545
|
+
e = A(e);
|
|
546
|
+
var a = new v(function(t, i) {
|
|
547
|
+
var f;
|
|
548
|
+
o.ready().then(function() {
|
|
549
|
+
return f = o._dbInfo, oe.call(n) === "[object Blob]" ? w(f.db).then(function(u) {
|
|
550
|
+
return u ? n : ae(n);
|
|
551
|
+
}) : n;
|
|
552
|
+
}).then(function(u) {
|
|
553
|
+
V(o._dbInfo, l, function(c, s) {
|
|
554
|
+
if (c)
|
|
555
|
+
return i(c);
|
|
556
|
+
try {
|
|
557
|
+
var d = s.objectStore(o._dbInfo.storeName);
|
|
558
|
+
u === null && (u = void 0);
|
|
559
|
+
var m = d.put(u, e);
|
|
560
|
+
s.oncomplete = function() {
|
|
561
|
+
u === void 0 && (u = null), t(u);
|
|
562
|
+
}, s.onabort = s.onerror = function() {
|
|
563
|
+
var g = m.error ? m.error : m.transaction.error;
|
|
564
|
+
i(g);
|
|
565
|
+
};
|
|
566
|
+
} catch (g) {
|
|
567
|
+
i(g);
|
|
568
|
+
}
|
|
569
|
+
});
|
|
570
|
+
}).catch(i);
|
|
571
|
+
});
|
|
572
|
+
return h(a, r), a;
|
|
573
|
+
}
|
|
574
|
+
function Ke(e, n) {
|
|
575
|
+
var r = this;
|
|
576
|
+
e = A(e);
|
|
577
|
+
var o = new v(function(a, t) {
|
|
578
|
+
r.ready().then(function() {
|
|
579
|
+
V(r._dbInfo, l, function(i, f) {
|
|
580
|
+
if (i)
|
|
581
|
+
return t(i);
|
|
582
|
+
try {
|
|
583
|
+
var u = f.objectStore(r._dbInfo.storeName), c = u.delete(e);
|
|
584
|
+
f.oncomplete = function() {
|
|
585
|
+
a();
|
|
586
|
+
}, f.onerror = function() {
|
|
587
|
+
t(c.error);
|
|
588
|
+
}, f.onabort = function() {
|
|
589
|
+
var s = c.error ? c.error : c.transaction.error;
|
|
590
|
+
t(s);
|
|
591
|
+
};
|
|
592
|
+
} catch (s) {
|
|
593
|
+
t(s);
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
}).catch(t);
|
|
597
|
+
});
|
|
598
|
+
return h(o, n), o;
|
|
599
|
+
}
|
|
600
|
+
function Qe(e) {
|
|
601
|
+
var n = this, r = new v(function(o, a) {
|
|
602
|
+
n.ready().then(function() {
|
|
603
|
+
V(n._dbInfo, l, function(t, i) {
|
|
604
|
+
if (t)
|
|
605
|
+
return a(t);
|
|
606
|
+
try {
|
|
607
|
+
var f = i.objectStore(n._dbInfo.storeName), u = f.clear();
|
|
608
|
+
i.oncomplete = function() {
|
|
609
|
+
o();
|
|
610
|
+
}, i.onabort = i.onerror = function() {
|
|
611
|
+
var c = u.error ? u.error : u.transaction.error;
|
|
612
|
+
a(c);
|
|
613
|
+
};
|
|
614
|
+
} catch (c) {
|
|
615
|
+
a(c);
|
|
616
|
+
}
|
|
617
|
+
});
|
|
618
|
+
}).catch(a);
|
|
619
|
+
});
|
|
620
|
+
return h(r, e), r;
|
|
621
|
+
}
|
|
622
|
+
function Ge(e) {
|
|
623
|
+
var n = this, r = new v(function(o, a) {
|
|
624
|
+
n.ready().then(function() {
|
|
625
|
+
V(n._dbInfo, H, function(t, i) {
|
|
626
|
+
if (t)
|
|
627
|
+
return a(t);
|
|
628
|
+
try {
|
|
629
|
+
var f = i.objectStore(n._dbInfo.storeName), u = f.count();
|
|
630
|
+
u.onsuccess = function() {
|
|
631
|
+
o(u.result);
|
|
632
|
+
}, u.onerror = function() {
|
|
633
|
+
a(u.error);
|
|
634
|
+
};
|
|
635
|
+
} catch (c) {
|
|
636
|
+
a(c);
|
|
637
|
+
}
|
|
638
|
+
});
|
|
639
|
+
}).catch(a);
|
|
640
|
+
});
|
|
641
|
+
return h(r, e), r;
|
|
642
|
+
}
|
|
643
|
+
function He(e, n) {
|
|
644
|
+
var r = this, o = new v(function(a, t) {
|
|
645
|
+
if (e < 0) {
|
|
646
|
+
a(null);
|
|
647
|
+
return;
|
|
648
|
+
}
|
|
649
|
+
r.ready().then(function() {
|
|
650
|
+
V(r._dbInfo, H, function(i, f) {
|
|
651
|
+
if (i)
|
|
652
|
+
return t(i);
|
|
653
|
+
try {
|
|
654
|
+
var u = f.objectStore(r._dbInfo.storeName), c = !1, s = u.openKeyCursor();
|
|
655
|
+
s.onsuccess = function() {
|
|
656
|
+
var d = s.result;
|
|
657
|
+
if (!d) {
|
|
658
|
+
a(null);
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
e === 0 || c ? a(d.key) : (c = !0, d.advance(e));
|
|
662
|
+
}, s.onerror = function() {
|
|
663
|
+
t(s.error);
|
|
664
|
+
};
|
|
665
|
+
} catch (d) {
|
|
666
|
+
t(d);
|
|
667
|
+
}
|
|
668
|
+
});
|
|
669
|
+
}).catch(t);
|
|
670
|
+
});
|
|
671
|
+
return h(o, n), o;
|
|
672
|
+
}
|
|
673
|
+
function Xe(e) {
|
|
674
|
+
var n = this, r = new v(function(o, a) {
|
|
675
|
+
n.ready().then(function() {
|
|
676
|
+
V(n._dbInfo, H, function(t, i) {
|
|
677
|
+
if (t)
|
|
678
|
+
return a(t);
|
|
679
|
+
try {
|
|
680
|
+
var f = i.objectStore(n._dbInfo.storeName), u = f.openKeyCursor(), c = [];
|
|
681
|
+
u.onsuccess = function() {
|
|
682
|
+
var s = u.result;
|
|
683
|
+
if (!s) {
|
|
684
|
+
o(c);
|
|
685
|
+
return;
|
|
686
|
+
}
|
|
687
|
+
c.push(s.key), s.continue();
|
|
688
|
+
}, u.onerror = function() {
|
|
689
|
+
a(u.error);
|
|
690
|
+
};
|
|
691
|
+
} catch (s) {
|
|
692
|
+
a(s);
|
|
693
|
+
}
|
|
694
|
+
});
|
|
695
|
+
}).catch(a);
|
|
696
|
+
});
|
|
697
|
+
return h(r, e), r;
|
|
698
|
+
}
|
|
699
|
+
function Je(e, n) {
|
|
700
|
+
n = Y.apply(this, arguments);
|
|
701
|
+
var r = this.config();
|
|
702
|
+
e = typeof e != "function" && e || {}, e.name || (e.name = e.name || r.name, e.storeName = e.storeName || r.storeName);
|
|
703
|
+
var o = this, a;
|
|
704
|
+
if (!e.name)
|
|
705
|
+
a = v.reject("Invalid arguments");
|
|
706
|
+
else {
|
|
707
|
+
var t = e.name === r.name && o._dbInfo.db, i = t ? v.resolve(o._dbInfo.db) : $(e).then(function(f) {
|
|
708
|
+
var u = N[e.name], c = u.forages;
|
|
709
|
+
u.db = f;
|
|
710
|
+
for (var s = 0; s < c.length; s++)
|
|
711
|
+
c[s]._dbInfo.db = f;
|
|
712
|
+
return f;
|
|
713
|
+
});
|
|
714
|
+
e.storeName ? a = i.then(function(f) {
|
|
715
|
+
if (f.objectStoreNames.contains(e.storeName)) {
|
|
716
|
+
var u = f.version + 1;
|
|
717
|
+
x(e);
|
|
718
|
+
var c = N[e.name], s = c.forages;
|
|
719
|
+
f.close();
|
|
720
|
+
for (var d = 0; d < s.length; d++) {
|
|
721
|
+
var m = s[d];
|
|
722
|
+
m._dbInfo.db = null, m._dbInfo.version = u;
|
|
723
|
+
}
|
|
724
|
+
var g = new v(function(_, R) {
|
|
725
|
+
var S = B.open(e.name, u);
|
|
726
|
+
S.onerror = function(F) {
|
|
727
|
+
var k = S.result;
|
|
728
|
+
k.close(), R(F);
|
|
729
|
+
}, S.onupgradeneeded = function() {
|
|
730
|
+
var F = S.result;
|
|
731
|
+
F.deleteObjectStore(e.storeName);
|
|
732
|
+
}, S.onsuccess = function() {
|
|
733
|
+
var F = S.result;
|
|
734
|
+
F.close(), _(F);
|
|
735
|
+
};
|
|
736
|
+
});
|
|
737
|
+
return g.then(function(_) {
|
|
738
|
+
c.db = _;
|
|
739
|
+
for (var R = 0; R < s.length; R++) {
|
|
740
|
+
var S = s[R];
|
|
741
|
+
S._dbInfo.db = _, O(S._dbInfo);
|
|
742
|
+
}
|
|
743
|
+
}).catch(function(_) {
|
|
744
|
+
throw (L(e, _) || v.resolve()).catch(function() {
|
|
745
|
+
}), _;
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
}) : a = i.then(function(f) {
|
|
749
|
+
x(e);
|
|
750
|
+
var u = N[e.name], c = u.forages;
|
|
751
|
+
f.close();
|
|
752
|
+
for (var s = 0; s < c.length; s++) {
|
|
753
|
+
var d = c[s];
|
|
754
|
+
d._dbInfo.db = null;
|
|
755
|
+
}
|
|
756
|
+
var m = new v(function(g, _) {
|
|
757
|
+
var R = B.deleteDatabase(e.name);
|
|
758
|
+
R.onerror = function() {
|
|
759
|
+
var S = R.result;
|
|
760
|
+
S && S.close(), _(R.error);
|
|
761
|
+
}, R.onblocked = function() {
|
|
762
|
+
console.warn('dropInstance blocked for database "' + e.name + '" until all open connections are closed');
|
|
763
|
+
}, R.onsuccess = function() {
|
|
764
|
+
var S = R.result;
|
|
765
|
+
S && S.close(), g(S);
|
|
766
|
+
};
|
|
767
|
+
});
|
|
768
|
+
return m.then(function(g) {
|
|
769
|
+
u.db = g;
|
|
770
|
+
for (var _ = 0; _ < c.length; _++) {
|
|
771
|
+
var R = c[_];
|
|
772
|
+
O(R._dbInfo);
|
|
773
|
+
}
|
|
774
|
+
}).catch(function(g) {
|
|
775
|
+
throw (L(e, g) || v.resolve()).catch(function() {
|
|
776
|
+
}), g;
|
|
777
|
+
});
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
return h(a, n), a;
|
|
781
|
+
}
|
|
782
|
+
var je = {
|
|
783
|
+
_driver: "asyncStorage",
|
|
784
|
+
_initStorage: ze,
|
|
785
|
+
_support: T(),
|
|
786
|
+
iterate: $e,
|
|
787
|
+
getItem: We,
|
|
788
|
+
setItem: Ve,
|
|
789
|
+
removeItem: Ke,
|
|
790
|
+
clear: Qe,
|
|
791
|
+
length: Ge,
|
|
792
|
+
key: He,
|
|
793
|
+
keys: Xe,
|
|
794
|
+
dropInstance: Je
|
|
795
|
+
};
|
|
796
|
+
function Ze() {
|
|
797
|
+
return typeof openDatabase == "function";
|
|
798
|
+
}
|
|
799
|
+
var Q = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ke = "~~local_forage_type~", pe = /^~~local_forage_type~([^~]+)~/, ee = "__lfsc__:", ie = ee.length, fe = "arbf", ue = "blob", ge = "si08", _e = "ui08", be = "uic8", we = "si16", Ee = "si32", Se = "ur16", Ie = "ui32", Re = "fl32", Ae = "fl64", De = ie + fe.length, Ne = Object.prototype.toString;
|
|
800
|
+
function Te(e) {
|
|
801
|
+
var n = e.length * 0.75, r = e.length, o, a = 0, t, i, f, u;
|
|
802
|
+
e[e.length - 1] === "=" && (n--, e[e.length - 2] === "=" && n--);
|
|
803
|
+
var c = new ArrayBuffer(n), s = new Uint8Array(c);
|
|
804
|
+
for (o = 0; o < r; o += 4)
|
|
805
|
+
t = Q.indexOf(e[o]), i = Q.indexOf(e[o + 1]), f = Q.indexOf(e[o + 2]), u = Q.indexOf(e[o + 3]), s[a++] = t << 2 | i >> 4, s[a++] = (i & 15) << 4 | f >> 2, s[a++] = (f & 3) << 6 | u & 63;
|
|
806
|
+
return c;
|
|
807
|
+
}
|
|
808
|
+
function ce(e) {
|
|
809
|
+
var n = new Uint8Array(e), r = "", o;
|
|
810
|
+
for (o = 0; o < n.length; o += 3)
|
|
811
|
+
r += Q[n[o] >> 2], r += Q[(n[o] & 3) << 4 | n[o + 1] >> 4], r += Q[(n[o + 1] & 15) << 2 | n[o + 2] >> 6], r += Q[n[o + 2] & 63];
|
|
812
|
+
return n.length % 3 === 2 ? r = r.substring(0, r.length - 1) + "=" : n.length % 3 === 1 && (r = r.substring(0, r.length - 2) + "=="), r;
|
|
813
|
+
}
|
|
814
|
+
function qe(e, n) {
|
|
815
|
+
var r = "";
|
|
816
|
+
if (e && (r = Ne.call(e)), e && (r === "[object ArrayBuffer]" || e.buffer && Ne.call(e.buffer) === "[object ArrayBuffer]")) {
|
|
817
|
+
var o, a = ee;
|
|
818
|
+
e instanceof ArrayBuffer ? (o = e, a += fe) : (o = e.buffer, r === "[object Int8Array]" ? a += ge : r === "[object Uint8Array]" ? a += _e : r === "[object Uint8ClampedArray]" ? a += be : r === "[object Int16Array]" ? a += we : r === "[object Uint16Array]" ? a += Se : r === "[object Int32Array]" ? a += Ee : r === "[object Uint32Array]" ? a += Ie : r === "[object Float32Array]" ? a += Re : r === "[object Float64Array]" ? a += Ae : n(new Error("Failed to get type for BinaryArray"))), n(a + ce(o));
|
|
819
|
+
} else if (r === "[object Blob]") {
|
|
820
|
+
var t = new FileReader();
|
|
821
|
+
t.onload = function() {
|
|
822
|
+
var i = ke + e.type + "~" + ce(this.result);
|
|
823
|
+
n(ee + ue + i);
|
|
824
|
+
}, t.readAsArrayBuffer(e);
|
|
825
|
+
} else
|
|
826
|
+
try {
|
|
827
|
+
n(JSON.stringify(e));
|
|
828
|
+
} catch (i) {
|
|
829
|
+
console.error("Couldn't convert value into a JSON string: ", e), n(null, i);
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
function er(e) {
|
|
833
|
+
if (e.substring(0, ie) !== ee)
|
|
834
|
+
return JSON.parse(e);
|
|
835
|
+
var n = e.substring(De), r = e.substring(ie, De), o;
|
|
836
|
+
if (r === ue && pe.test(n)) {
|
|
837
|
+
var a = n.match(pe);
|
|
838
|
+
o = a[1], n = n.substring(a[0].length);
|
|
839
|
+
}
|
|
840
|
+
var t = Te(n);
|
|
841
|
+
switch (r) {
|
|
842
|
+
case fe:
|
|
843
|
+
return t;
|
|
844
|
+
case ue:
|
|
845
|
+
return U([t], { type: o });
|
|
846
|
+
case ge:
|
|
847
|
+
return new Int8Array(t);
|
|
848
|
+
case _e:
|
|
849
|
+
return new Uint8Array(t);
|
|
850
|
+
case be:
|
|
851
|
+
return new Uint8ClampedArray(t);
|
|
852
|
+
case we:
|
|
853
|
+
return new Int16Array(t);
|
|
854
|
+
case Se:
|
|
855
|
+
return new Uint16Array(t);
|
|
856
|
+
case Ee:
|
|
857
|
+
return new Int32Array(t);
|
|
858
|
+
case Ie:
|
|
859
|
+
return new Uint32Array(t);
|
|
860
|
+
case Re:
|
|
861
|
+
return new Float32Array(t);
|
|
862
|
+
case Ae:
|
|
863
|
+
return new Float64Array(t);
|
|
864
|
+
default:
|
|
865
|
+
throw new Error("Unkown type: " + r);
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
var se = {
|
|
869
|
+
serialize: qe,
|
|
870
|
+
deserialize: er,
|
|
871
|
+
stringToBuffer: Te,
|
|
872
|
+
bufferToString: ce
|
|
873
|
+
};
|
|
874
|
+
function xe(e, n, r, o) {
|
|
875
|
+
e.executeSql("CREATE TABLE IF NOT EXISTS " + n.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], r, o);
|
|
876
|
+
}
|
|
877
|
+
function rr(e) {
|
|
878
|
+
var n = this, r = {
|
|
879
|
+
db: null
|
|
880
|
+
};
|
|
881
|
+
if (e)
|
|
882
|
+
for (var o in e)
|
|
883
|
+
r[o] = typeof e[o] != "string" ? e[o].toString() : e[o];
|
|
884
|
+
var a = new v(function(t, i) {
|
|
885
|
+
try {
|
|
886
|
+
r.db = openDatabase(r.name, String(r.version), r.description, r.size);
|
|
887
|
+
} catch (f) {
|
|
888
|
+
return i(f);
|
|
889
|
+
}
|
|
890
|
+
r.db.transaction(function(f) {
|
|
891
|
+
xe(f, r, function() {
|
|
892
|
+
n._dbInfo = r, t();
|
|
893
|
+
}, function(u, c) {
|
|
894
|
+
i(c);
|
|
895
|
+
});
|
|
896
|
+
}, i);
|
|
897
|
+
});
|
|
898
|
+
return r.serializer = se, a;
|
|
899
|
+
}
|
|
900
|
+
function G(e, n, r, o, a, t) {
|
|
901
|
+
e.executeSql(r, o, a, function(i, f) {
|
|
902
|
+
f.code === f.SYNTAX_ERR ? i.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [n.storeName], function(u, c) {
|
|
903
|
+
c.rows.length ? t(u, f) : xe(u, n, function() {
|
|
904
|
+
u.executeSql(r, o, a, t);
|
|
905
|
+
}, t);
|
|
906
|
+
}, t) : t(i, f);
|
|
907
|
+
}, t);
|
|
908
|
+
}
|
|
909
|
+
function nr(e, n) {
|
|
910
|
+
var r = this;
|
|
911
|
+
e = A(e);
|
|
912
|
+
var o = new v(function(a, t) {
|
|
913
|
+
r.ready().then(function() {
|
|
914
|
+
var i = r._dbInfo;
|
|
915
|
+
i.db.transaction(function(f) {
|
|
916
|
+
G(f, i, "SELECT * FROM " + i.storeName + " WHERE key = ? LIMIT 1", [e], function(u, c) {
|
|
917
|
+
var s = c.rows.length ? c.rows.item(0).value : null;
|
|
918
|
+
s && (s = i.serializer.deserialize(s)), a(s);
|
|
919
|
+
}, function(u, c) {
|
|
920
|
+
t(c);
|
|
921
|
+
});
|
|
922
|
+
});
|
|
923
|
+
}).catch(t);
|
|
924
|
+
});
|
|
925
|
+
return h(o, n), o;
|
|
926
|
+
}
|
|
927
|
+
function tr(e, n) {
|
|
928
|
+
var r = this, o = new v(function(a, t) {
|
|
929
|
+
r.ready().then(function() {
|
|
930
|
+
var i = r._dbInfo;
|
|
931
|
+
i.db.transaction(function(f) {
|
|
932
|
+
G(f, i, "SELECT * FROM " + i.storeName, [], function(u, c) {
|
|
933
|
+
for (var s = c.rows, d = s.length, m = 0; m < d; m++) {
|
|
934
|
+
var g = s.item(m), _ = g.value;
|
|
935
|
+
if (_ && (_ = i.serializer.deserialize(_)), _ = e(_, g.key, m + 1), _ !== void 0) {
|
|
936
|
+
a(_);
|
|
937
|
+
return;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
a();
|
|
941
|
+
}, function(u, c) {
|
|
942
|
+
t(c);
|
|
943
|
+
});
|
|
944
|
+
});
|
|
945
|
+
}).catch(t);
|
|
946
|
+
});
|
|
947
|
+
return h(o, n), o;
|
|
948
|
+
}
|
|
949
|
+
function Be(e, n, r, o) {
|
|
950
|
+
var a = this;
|
|
951
|
+
e = A(e);
|
|
952
|
+
var t = new v(function(i, f) {
|
|
953
|
+
a.ready().then(function() {
|
|
954
|
+
n === void 0 && (n = null);
|
|
955
|
+
var u = n, c = a._dbInfo;
|
|
956
|
+
c.serializer.serialize(n, function(s, d) {
|
|
957
|
+
d ? f(d) : c.db.transaction(function(m) {
|
|
958
|
+
G(m, c, "INSERT OR REPLACE INTO " + c.storeName + " (key, value) VALUES (?, ?)", [e, s], function() {
|
|
959
|
+
i(u);
|
|
960
|
+
}, function(g, _) {
|
|
961
|
+
f(_);
|
|
962
|
+
});
|
|
963
|
+
}, function(m) {
|
|
964
|
+
if (m.code === m.QUOTA_ERR) {
|
|
965
|
+
if (o > 0) {
|
|
966
|
+
i(Be.apply(a, [e, u, r, o - 1]));
|
|
967
|
+
return;
|
|
968
|
+
}
|
|
969
|
+
f(m);
|
|
970
|
+
}
|
|
971
|
+
});
|
|
972
|
+
});
|
|
973
|
+
}).catch(f);
|
|
974
|
+
});
|
|
975
|
+
return h(t, r), t;
|
|
976
|
+
}
|
|
977
|
+
function or(e, n, r) {
|
|
978
|
+
return Be.apply(this, [e, n, r, 1]);
|
|
979
|
+
}
|
|
980
|
+
function ar(e, n) {
|
|
981
|
+
var r = this;
|
|
982
|
+
e = A(e);
|
|
983
|
+
var o = new v(function(a, t) {
|
|
984
|
+
r.ready().then(function() {
|
|
985
|
+
var i = r._dbInfo;
|
|
986
|
+
i.db.transaction(function(f) {
|
|
987
|
+
G(f, i, "DELETE FROM " + i.storeName + " WHERE key = ?", [e], function() {
|
|
988
|
+
a();
|
|
989
|
+
}, function(u, c) {
|
|
990
|
+
t(c);
|
|
991
|
+
});
|
|
992
|
+
});
|
|
993
|
+
}).catch(t);
|
|
994
|
+
});
|
|
995
|
+
return h(o, n), o;
|
|
996
|
+
}
|
|
997
|
+
function ir(e) {
|
|
998
|
+
var n = this, r = new v(function(o, a) {
|
|
999
|
+
n.ready().then(function() {
|
|
1000
|
+
var t = n._dbInfo;
|
|
1001
|
+
t.db.transaction(function(i) {
|
|
1002
|
+
G(i, t, "DELETE FROM " + t.storeName, [], function() {
|
|
1003
|
+
o();
|
|
1004
|
+
}, function(f, u) {
|
|
1005
|
+
a(u);
|
|
1006
|
+
});
|
|
1007
|
+
});
|
|
1008
|
+
}).catch(a);
|
|
1009
|
+
});
|
|
1010
|
+
return h(r, e), r;
|
|
1011
|
+
}
|
|
1012
|
+
function fr(e) {
|
|
1013
|
+
var n = this, r = new v(function(o, a) {
|
|
1014
|
+
n.ready().then(function() {
|
|
1015
|
+
var t = n._dbInfo;
|
|
1016
|
+
t.db.transaction(function(i) {
|
|
1017
|
+
G(i, t, "SELECT COUNT(key) as c FROM " + t.storeName, [], function(f, u) {
|
|
1018
|
+
var c = u.rows.item(0).c;
|
|
1019
|
+
o(c);
|
|
1020
|
+
}, function(f, u) {
|
|
1021
|
+
a(u);
|
|
1022
|
+
});
|
|
1023
|
+
});
|
|
1024
|
+
}).catch(a);
|
|
1025
|
+
});
|
|
1026
|
+
return h(r, e), r;
|
|
1027
|
+
}
|
|
1028
|
+
function ur(e, n) {
|
|
1029
|
+
var r = this, o = new v(function(a, t) {
|
|
1030
|
+
r.ready().then(function() {
|
|
1031
|
+
var i = r._dbInfo;
|
|
1032
|
+
i.db.transaction(function(f) {
|
|
1033
|
+
G(f, i, "SELECT key FROM " + i.storeName + " WHERE id = ? LIMIT 1", [e + 1], function(u, c) {
|
|
1034
|
+
var s = c.rows.length ? c.rows.item(0).key : null;
|
|
1035
|
+
a(s);
|
|
1036
|
+
}, function(u, c) {
|
|
1037
|
+
t(c);
|
|
1038
|
+
});
|
|
1039
|
+
});
|
|
1040
|
+
}).catch(t);
|
|
1041
|
+
});
|
|
1042
|
+
return h(o, n), o;
|
|
1043
|
+
}
|
|
1044
|
+
function cr(e) {
|
|
1045
|
+
var n = this, r = new v(function(o, a) {
|
|
1046
|
+
n.ready().then(function() {
|
|
1047
|
+
var t = n._dbInfo;
|
|
1048
|
+
t.db.transaction(function(i) {
|
|
1049
|
+
G(i, t, "SELECT key FROM " + t.storeName, [], function(f, u) {
|
|
1050
|
+
for (var c = [], s = 0; s < u.rows.length; s++)
|
|
1051
|
+
c.push(u.rows.item(s).key);
|
|
1052
|
+
o(c);
|
|
1053
|
+
}, function(f, u) {
|
|
1054
|
+
a(u);
|
|
1055
|
+
});
|
|
1056
|
+
});
|
|
1057
|
+
}).catch(a);
|
|
1058
|
+
});
|
|
1059
|
+
return h(r, e), r;
|
|
1060
|
+
}
|
|
1061
|
+
function sr(e) {
|
|
1062
|
+
return new v(function(n, r) {
|
|
1063
|
+
e.transaction(function(o) {
|
|
1064
|
+
o.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(a, t) {
|
|
1065
|
+
for (var i = [], f = 0; f < t.rows.length; f++)
|
|
1066
|
+
i.push(t.rows.item(f).name);
|
|
1067
|
+
n({
|
|
1068
|
+
db: e,
|
|
1069
|
+
storeNames: i
|
|
1070
|
+
});
|
|
1071
|
+
}, function(a, t) {
|
|
1072
|
+
r(t);
|
|
1073
|
+
});
|
|
1074
|
+
}, function(o) {
|
|
1075
|
+
r(o);
|
|
1076
|
+
});
|
|
1077
|
+
});
|
|
1078
|
+
}
|
|
1079
|
+
function lr(e, n) {
|
|
1080
|
+
n = Y.apply(this, arguments);
|
|
1081
|
+
var r = this.config();
|
|
1082
|
+
e = typeof e != "function" && e || {}, e.name || (e.name = e.name || r.name, e.storeName = e.storeName || r.storeName);
|
|
1083
|
+
var o = this, a;
|
|
1084
|
+
return e.name ? a = new v(function(t) {
|
|
1085
|
+
var i;
|
|
1086
|
+
e.name === r.name ? i = o._dbInfo.db : i = openDatabase(e.name, "", "", 0), e.storeName ? t({
|
|
1087
|
+
db: i,
|
|
1088
|
+
storeNames: [e.storeName]
|
|
1089
|
+
}) : t(sr(i));
|
|
1090
|
+
}).then(function(t) {
|
|
1091
|
+
return new v(function(i, f) {
|
|
1092
|
+
t.db.transaction(function(u) {
|
|
1093
|
+
function c(g) {
|
|
1094
|
+
return new v(function(_, R) {
|
|
1095
|
+
u.executeSql("DROP TABLE IF EXISTS " + g, [], function() {
|
|
1096
|
+
_();
|
|
1097
|
+
}, function(S, F) {
|
|
1098
|
+
R(F);
|
|
1099
|
+
});
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1102
|
+
for (var s = [], d = 0, m = t.storeNames.length; d < m; d++)
|
|
1103
|
+
s.push(c(t.storeNames[d]));
|
|
1104
|
+
v.all(s).then(function() {
|
|
1105
|
+
i();
|
|
1106
|
+
}).catch(function(g) {
|
|
1107
|
+
f(g);
|
|
1108
|
+
});
|
|
1109
|
+
}, function(u) {
|
|
1110
|
+
f(u);
|
|
1111
|
+
});
|
|
1112
|
+
});
|
|
1113
|
+
}) : a = v.reject("Invalid arguments"), h(a, n), a;
|
|
1114
|
+
}
|
|
1115
|
+
var vr = {
|
|
1116
|
+
_driver: "webSQLStorage",
|
|
1117
|
+
_initStorage: rr,
|
|
1118
|
+
_support: Ze(),
|
|
1119
|
+
iterate: tr,
|
|
1120
|
+
getItem: nr,
|
|
1121
|
+
setItem: or,
|
|
1122
|
+
removeItem: ar,
|
|
1123
|
+
clear: ir,
|
|
1124
|
+
length: fr,
|
|
1125
|
+
key: ur,
|
|
1126
|
+
keys: cr,
|
|
1127
|
+
dropInstance: lr
|
|
1128
|
+
};
|
|
1129
|
+
function dr() {
|
|
1130
|
+
try {
|
|
1131
|
+
return typeof localStorage < "u" && "setItem" in localStorage && // in IE8 typeof localStorage.setItem === 'object'
|
|
1132
|
+
!!localStorage.setItem;
|
|
1133
|
+
} catch {
|
|
1134
|
+
return !1;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
function Ce(e, n) {
|
|
1138
|
+
var r = e.name + "/";
|
|
1139
|
+
return e.storeName !== n.storeName && (r += e.storeName + "/"), r;
|
|
1140
|
+
}
|
|
1141
|
+
function hr() {
|
|
1142
|
+
var e = "_localforage_support_test";
|
|
1143
|
+
try {
|
|
1144
|
+
return localStorage.setItem(e, !0), localStorage.removeItem(e), !1;
|
|
1145
|
+
} catch {
|
|
1146
|
+
return !0;
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
function mr() {
|
|
1150
|
+
return !hr() || localStorage.length > 0;
|
|
1151
|
+
}
|
|
1152
|
+
function yr(e) {
|
|
1153
|
+
var n = this, r = {};
|
|
1154
|
+
if (e)
|
|
1155
|
+
for (var o in e)
|
|
1156
|
+
r[o] = e[o];
|
|
1157
|
+
return r.keyPrefix = Ce(e, n._defaultConfig), mr() ? (n._dbInfo = r, r.serializer = se, v.resolve()) : v.reject();
|
|
1158
|
+
}
|
|
1159
|
+
function pr(e) {
|
|
1160
|
+
var n = this, r = n.ready().then(function() {
|
|
1161
|
+
for (var o = n._dbInfo.keyPrefix, a = localStorage.length - 1; a >= 0; a--) {
|
|
1162
|
+
var t = localStorage.key(a);
|
|
1163
|
+
t.indexOf(o) === 0 && localStorage.removeItem(t);
|
|
1164
|
+
}
|
|
1165
|
+
});
|
|
1166
|
+
return h(r, e), r;
|
|
1167
|
+
}
|
|
1168
|
+
function gr(e, n) {
|
|
1169
|
+
var r = this;
|
|
1170
|
+
e = A(e);
|
|
1171
|
+
var o = r.ready().then(function() {
|
|
1172
|
+
var a = r._dbInfo, t = localStorage.getItem(a.keyPrefix + e);
|
|
1173
|
+
return t && (t = a.serializer.deserialize(t)), t;
|
|
1174
|
+
});
|
|
1175
|
+
return h(o, n), o;
|
|
1176
|
+
}
|
|
1177
|
+
function _r(e, n) {
|
|
1178
|
+
var r = this, o = r.ready().then(function() {
|
|
1179
|
+
for (var a = r._dbInfo, t = a.keyPrefix, i = t.length, f = localStorage.length, u = 1, c = 0; c < f; c++) {
|
|
1180
|
+
var s = localStorage.key(c);
|
|
1181
|
+
if (s.indexOf(t) === 0) {
|
|
1182
|
+
var d = localStorage.getItem(s);
|
|
1183
|
+
if (d && (d = a.serializer.deserialize(d)), d = e(d, s.substring(i), u++), d !== void 0)
|
|
1184
|
+
return d;
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
});
|
|
1188
|
+
return h(o, n), o;
|
|
1189
|
+
}
|
|
1190
|
+
function br(e, n) {
|
|
1191
|
+
var r = this, o = r.ready().then(function() {
|
|
1192
|
+
var a = r._dbInfo, t;
|
|
1193
|
+
try {
|
|
1194
|
+
t = localStorage.key(e);
|
|
1195
|
+
} catch {
|
|
1196
|
+
t = null;
|
|
1197
|
+
}
|
|
1198
|
+
return t && (t = t.substring(a.keyPrefix.length)), t;
|
|
1199
|
+
});
|
|
1200
|
+
return h(o, n), o;
|
|
1201
|
+
}
|
|
1202
|
+
function wr(e) {
|
|
1203
|
+
var n = this, r = n.ready().then(function() {
|
|
1204
|
+
for (var o = n._dbInfo, a = localStorage.length, t = [], i = 0; i < a; i++) {
|
|
1205
|
+
var f = localStorage.key(i);
|
|
1206
|
+
f.indexOf(o.keyPrefix) === 0 && t.push(f.substring(o.keyPrefix.length));
|
|
1207
|
+
}
|
|
1208
|
+
return t;
|
|
1209
|
+
});
|
|
1210
|
+
return h(r, e), r;
|
|
1211
|
+
}
|
|
1212
|
+
function Er(e) {
|
|
1213
|
+
var n = this, r = n.keys().then(function(o) {
|
|
1214
|
+
return o.length;
|
|
1215
|
+
});
|
|
1216
|
+
return h(r, e), r;
|
|
1217
|
+
}
|
|
1218
|
+
function Sr(e, n) {
|
|
1219
|
+
var r = this;
|
|
1220
|
+
e = A(e);
|
|
1221
|
+
var o = r.ready().then(function() {
|
|
1222
|
+
var a = r._dbInfo;
|
|
1223
|
+
localStorage.removeItem(a.keyPrefix + e);
|
|
1224
|
+
});
|
|
1225
|
+
return h(o, n), o;
|
|
1226
|
+
}
|
|
1227
|
+
function Ir(e, n, r) {
|
|
1228
|
+
var o = this;
|
|
1229
|
+
e = A(e);
|
|
1230
|
+
var a = o.ready().then(function() {
|
|
1231
|
+
n === void 0 && (n = null);
|
|
1232
|
+
var t = n;
|
|
1233
|
+
return new v(function(i, f) {
|
|
1234
|
+
var u = o._dbInfo;
|
|
1235
|
+
u.serializer.serialize(n, function(c, s) {
|
|
1236
|
+
if (s)
|
|
1237
|
+
f(s);
|
|
1238
|
+
else
|
|
1239
|
+
try {
|
|
1240
|
+
localStorage.setItem(u.keyPrefix + e, c), i(t);
|
|
1241
|
+
} catch (d) {
|
|
1242
|
+
(d.name === "QuotaExceededError" || d.name === "NS_ERROR_DOM_QUOTA_REACHED") && f(d), f(d);
|
|
1243
|
+
}
|
|
1244
|
+
});
|
|
1245
|
+
});
|
|
1246
|
+
});
|
|
1247
|
+
return h(a, r), a;
|
|
1248
|
+
}
|
|
1249
|
+
function Rr(e, n) {
|
|
1250
|
+
if (n = Y.apply(this, arguments), e = typeof e != "function" && e || {}, !e.name) {
|
|
1251
|
+
var r = this.config();
|
|
1252
|
+
e.name = e.name || r.name, e.storeName = e.storeName || r.storeName;
|
|
1253
|
+
}
|
|
1254
|
+
var o = this, a;
|
|
1255
|
+
return e.name ? a = new v(function(t) {
|
|
1256
|
+
e.storeName ? t(Ce(e, o._defaultConfig)) : t(e.name + "/");
|
|
1257
|
+
}).then(function(t) {
|
|
1258
|
+
for (var i = localStorage.length - 1; i >= 0; i--) {
|
|
1259
|
+
var f = localStorage.key(i);
|
|
1260
|
+
f.indexOf(t) === 0 && localStorage.removeItem(f);
|
|
1261
|
+
}
|
|
1262
|
+
}) : a = v.reject("Invalid arguments"), h(a, n), a;
|
|
1263
|
+
}
|
|
1264
|
+
var Ar = {
|
|
1265
|
+
_driver: "localStorageWrapper",
|
|
1266
|
+
_initStorage: yr,
|
|
1267
|
+
_support: dr(),
|
|
1268
|
+
iterate: _r,
|
|
1269
|
+
getItem: gr,
|
|
1270
|
+
setItem: Ir,
|
|
1271
|
+
removeItem: Sr,
|
|
1272
|
+
clear: pr,
|
|
1273
|
+
length: Er,
|
|
1274
|
+
key: br,
|
|
1275
|
+
keys: wr,
|
|
1276
|
+
dropInstance: Rr
|
|
1277
|
+
}, Dr = function(n, r) {
|
|
1278
|
+
return n === r || typeof n == "number" && typeof r == "number" && isNaN(n) && isNaN(r);
|
|
1279
|
+
}, Nr = function(n, r) {
|
|
1280
|
+
for (var o = n.length, a = 0; a < o; ) {
|
|
1281
|
+
if (Dr(n[a], r))
|
|
1282
|
+
return !0;
|
|
1283
|
+
a++;
|
|
1284
|
+
}
|
|
1285
|
+
return !1;
|
|
1286
|
+
}, Oe = Array.isArray || function(e) {
|
|
1287
|
+
return Object.prototype.toString.call(e) === "[object Array]";
|
|
1288
|
+
}, Z = {}, Le = {}, J = {
|
|
1289
|
+
INDEXEDDB: je,
|
|
1290
|
+
WEBSQL: vr,
|
|
1291
|
+
LOCALSTORAGE: Ar
|
|
1292
|
+
}, Tr = [J.INDEXEDDB._driver, J.WEBSQL._driver, J.LOCALSTORAGE._driver], re = ["dropInstance"], le = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(re), xr = {
|
|
1293
|
+
description: "",
|
|
1294
|
+
driver: Tr.slice(),
|
|
1295
|
+
name: "localforage",
|
|
1296
|
+
// Default DB size is _JUST UNDER_ 5MB, as it's the highest size
|
|
1297
|
+
// we can use without a prompt.
|
|
1298
|
+
size: 4980736,
|
|
1299
|
+
storeName: "keyvaluepairs",
|
|
1300
|
+
version: 1
|
|
1301
|
+
};
|
|
1302
|
+
function Br(e, n) {
|
|
1303
|
+
e[n] = function() {
|
|
1304
|
+
var r = arguments;
|
|
1305
|
+
return e.ready().then(function() {
|
|
1306
|
+
return e[n].apply(e, r);
|
|
1307
|
+
});
|
|
1308
|
+
};
|
|
1309
|
+
}
|
|
1310
|
+
function ve() {
|
|
1311
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1312
|
+
var n = arguments[e];
|
|
1313
|
+
if (n)
|
|
1314
|
+
for (var r in n)
|
|
1315
|
+
n.hasOwnProperty(r) && (Oe(n[r]) ? arguments[0][r] = n[r].slice() : arguments[0][r] = n[r]);
|
|
1316
|
+
}
|
|
1317
|
+
return arguments[0];
|
|
1318
|
+
}
|
|
1319
|
+
var Cr = function() {
|
|
1320
|
+
function e(n) {
|
|
1321
|
+
C(this, e);
|
|
1322
|
+
for (var r in J)
|
|
1323
|
+
if (J.hasOwnProperty(r)) {
|
|
1324
|
+
var o = J[r], a = o._driver;
|
|
1325
|
+
this[r] = a, Z[a] || this.defineDriver(o);
|
|
1326
|
+
}
|
|
1327
|
+
this._defaultConfig = ve({}, xr), this._config = ve({}, this._defaultConfig, n), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
|
|
1328
|
+
});
|
|
1329
|
+
}
|
|
1330
|
+
return e.prototype.config = function(r) {
|
|
1331
|
+
if ((typeof r > "u" ? "undefined" : E(r)) === "object") {
|
|
1332
|
+
if (this._ready)
|
|
1333
|
+
return new Error("Can't call config() after localforage has been used.");
|
|
1334
|
+
for (var o in r) {
|
|
1335
|
+
if (o === "storeName" && (r[o] = r[o].replace(/\W/g, "_")), o === "version" && typeof r[o] != "number")
|
|
1336
|
+
return new Error("Database version must be a number.");
|
|
1337
|
+
this._config[o] = r[o];
|
|
1338
|
+
}
|
|
1339
|
+
return "driver" in r && r.driver ? this.setDriver(this._config.driver) : !0;
|
|
1340
|
+
} else
|
|
1341
|
+
return typeof r == "string" ? this._config[r] : this._config;
|
|
1342
|
+
}, e.prototype.defineDriver = function(r, o, a) {
|
|
1343
|
+
var t = new v(function(i, f) {
|
|
1344
|
+
try {
|
|
1345
|
+
var u = r._driver, c = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
|
|
1346
|
+
if (!r._driver) {
|
|
1347
|
+
f(c);
|
|
1348
|
+
return;
|
|
1349
|
+
}
|
|
1350
|
+
for (var s = le.concat("_initStorage"), d = 0, m = s.length; d < m; d++) {
|
|
1351
|
+
var g = s[d], _ = !Nr(re, g);
|
|
1352
|
+
if ((_ || r[g]) && typeof r[g] != "function") {
|
|
1353
|
+
f(c);
|
|
1354
|
+
return;
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
var R = function() {
|
|
1358
|
+
for (var k = function(Pr) {
|
|
1359
|
+
return function() {
|
|
1360
|
+
var Fr = new Error("Method " + Pr + " is not implemented by the current driver"), Pe = v.reject(Fr);
|
|
1361
|
+
return h(Pe, arguments[arguments.length - 1]), Pe;
|
|
1362
|
+
};
|
|
1363
|
+
}, de = 0, Lr = re.length; de < Lr; de++) {
|
|
1364
|
+
var he = re[de];
|
|
1365
|
+
r[he] || (r[he] = k(he));
|
|
1366
|
+
}
|
|
1367
|
+
};
|
|
1368
|
+
R();
|
|
1369
|
+
var S = function(k) {
|
|
1370
|
+
Z[u] && console.info("Redefining LocalForage driver: " + u), Z[u] = r, Le[u] = k, i();
|
|
1371
|
+
};
|
|
1372
|
+
"_support" in r ? r._support && typeof r._support == "function" ? r._support().then(S, f) : S(!!r._support) : S(!0);
|
|
1373
|
+
} catch (F) {
|
|
1374
|
+
f(F);
|
|
1375
|
+
}
|
|
1376
|
+
});
|
|
1377
|
+
return I(t, o, a), t;
|
|
1378
|
+
}, e.prototype.driver = function() {
|
|
1379
|
+
return this._driver || null;
|
|
1380
|
+
}, e.prototype.getDriver = function(r, o, a) {
|
|
1381
|
+
var t = Z[r] ? v.resolve(Z[r]) : v.reject(new Error("Driver not found."));
|
|
1382
|
+
return I(t, o, a), t;
|
|
1383
|
+
}, e.prototype.getSerializer = function(r) {
|
|
1384
|
+
var o = v.resolve(se);
|
|
1385
|
+
return I(o, r), o;
|
|
1386
|
+
}, e.prototype.ready = function(r) {
|
|
1387
|
+
var o = this, a = o._driverSet.then(function() {
|
|
1388
|
+
return o._ready === null && (o._ready = o._initDriver()), o._ready;
|
|
1389
|
+
});
|
|
1390
|
+
return I(a, r, r), a;
|
|
1391
|
+
}, e.prototype.setDriver = function(r, o, a) {
|
|
1392
|
+
var t = this;
|
|
1393
|
+
Oe(r) || (r = [r]);
|
|
1394
|
+
var i = this._getSupportedDrivers(r);
|
|
1395
|
+
function f() {
|
|
1396
|
+
t._config.driver = t.driver();
|
|
1397
|
+
}
|
|
1398
|
+
function u(d) {
|
|
1399
|
+
return t._extend(d), f(), t._ready = t._initStorage(t._config), t._ready;
|
|
1400
|
+
}
|
|
1401
|
+
function c(d) {
|
|
1402
|
+
return function() {
|
|
1403
|
+
var m = 0;
|
|
1404
|
+
function g() {
|
|
1405
|
+
for (; m < d.length; ) {
|
|
1406
|
+
var _ = d[m];
|
|
1407
|
+
return m++, t._dbInfo = null, t._ready = null, t.getDriver(_).then(u).catch(g);
|
|
1408
|
+
}
|
|
1409
|
+
f();
|
|
1410
|
+
var R = new Error("No available storage method found.");
|
|
1411
|
+
return t._driverSet = v.reject(R), t._driverSet;
|
|
1412
|
+
}
|
|
1413
|
+
return g();
|
|
1414
|
+
};
|
|
1415
|
+
}
|
|
1416
|
+
var s = this._driverSet !== null ? this._driverSet.catch(function() {
|
|
1417
|
+
return v.resolve();
|
|
1418
|
+
}) : v.resolve();
|
|
1419
|
+
return this._driverSet = s.then(function() {
|
|
1420
|
+
var d = i[0];
|
|
1421
|
+
return t._dbInfo = null, t._ready = null, t.getDriver(d).then(function(m) {
|
|
1422
|
+
t._driver = m._driver, f(), t._wrapLibraryMethodsWithReady(), t._initDriver = c(i);
|
|
1423
|
+
});
|
|
1424
|
+
}).catch(function() {
|
|
1425
|
+
f();
|
|
1426
|
+
var d = new Error("No available storage method found.");
|
|
1427
|
+
return t._driverSet = v.reject(d), t._driverSet;
|
|
1428
|
+
}), I(this._driverSet, o, a), this._driverSet;
|
|
1429
|
+
}, e.prototype.supports = function(r) {
|
|
1430
|
+
return !!Le[r];
|
|
1431
|
+
}, e.prototype._extend = function(r) {
|
|
1432
|
+
ve(this, r);
|
|
1433
|
+
}, e.prototype._getSupportedDrivers = function(r) {
|
|
1434
|
+
for (var o = [], a = 0, t = r.length; a < t; a++) {
|
|
1435
|
+
var i = r[a];
|
|
1436
|
+
this.supports(i) && o.push(i);
|
|
1437
|
+
}
|
|
1438
|
+
return o;
|
|
1439
|
+
}, e.prototype._wrapLibraryMethodsWithReady = function() {
|
|
1440
|
+
for (var r = 0, o = le.length; r < o; r++)
|
|
1441
|
+
Br(this, le[r]);
|
|
1442
|
+
}, e.prototype.createInstance = function(r) {
|
|
1443
|
+
return new e(r);
|
|
1444
|
+
}, e;
|
|
1445
|
+
}(), Or = new Cr();
|
|
1446
|
+
M.exports = Or;
|
|
1447
|
+
}, { 3: 3 }] }, {}, [4])(4);
|
|
1448
|
+
});
|
|
1449
|
+
})(Fe);
|
|
1450
|
+
var Ur = Fe.exports;
|
|
1451
|
+
const Kr = /* @__PURE__ */ Mr(Ur);
|
|
1452
|
+
export {
|
|
1453
|
+
Kr as default
|
|
1454
|
+
};
|