yxuse 3.0.67 → 3.0.69
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/lib/api.cjs.js +0 -1
- package/lib/api.es.js +0 -1
- package/lib/app.cjs.js +0 -1
- package/lib/app.es.js +0 -1
- package/lib/components.cjs.js +0 -1
- package/lib/components.es.js +0 -1
- package/lib/directives.cjs.js +0 -1
- package/lib/directives.es.js +0 -1
- package/lib/hooks.cjs.js +0 -1
- package/lib/hooks.es.js +0 -1
- package/lib/index.cjs.js +0 -1
- package/lib/index.cjs10.js +0 -1
- package/lib/index.cjs11.js +1 -2
- package/lib/index.cjs12.js +1 -2
- package/lib/index.cjs13.js +1 -2
- package/lib/index.cjs14.js +0 -1
- package/lib/index.cjs2.js +1 -2
- package/lib/index.cjs3.js +0 -1
- package/lib/index.cjs4.js +0 -1
- package/lib/index.cjs5.js +1 -2
- package/lib/index.cjs5.js.gz +0 -0
- package/lib/index.cjs6.js +1 -2
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.cjs7.js +0 -1
- package/lib/index.cjs8.js +0 -1
- package/lib/index.cjs9.js +0 -1
- package/lib/index.es.js +0 -1
- package/lib/index.es10.js +0 -1
- package/lib/index.es11.js +1 -2
- package/lib/index.es12.js +1 -2
- package/lib/index.es12.js.gz +0 -0
- package/lib/index.es13.js +1 -2
- package/lib/index.es14.js +0 -1
- package/lib/index.es2.js +1 -2
- package/lib/index.es3.js +0 -1
- package/lib/index.es4.js +0 -1
- package/lib/index.es5.js +8 -2
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es6.js +12 -12
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es7.js +0 -1
- package/lib/index.es8.js +0 -1
- package/lib/index.es9.js +0 -1
- package/lib/theme.cjs.js +1 -2
- package/lib/theme.es.js +5 -2
- package/lib/translate.cjs.js +1 -2
- package/lib/translate.es.js +7 -2
- package/lib/utils.cjs.js +0 -1
- package/lib/utils.es.js +0 -1
- package/lib/vendor-axios.cjs.js +1 -0
- package/lib/vendor-axios.cjs.js.gz +0 -0
- package/lib/vendor-axios.es.js +2378 -0
- package/lib/vendor-axios.es.js.gz +0 -0
- package/lib/vendor-dayjs.cjs.js +1 -0
- package/lib/vendor-dayjs.es.js +294 -0
- package/lib/vendor-dayjs.es.js.gz +0 -0
- package/lib/vendor-file-saver.cjs.js +1 -0
- package/lib/vendor-file-saver.es.js +77 -0
- package/lib/vendor-localforage.cjs.js +7 -0
- package/lib/vendor-localforage.cjs.js.gz +0 -0
- package/lib/vendor-localforage.es.js +2139 -0
- package/lib/vendor-localforage.es.js.gz +0 -0
- package/lib/vendor-lodash.cjs.js +9 -0
- package/lib/vendor-lodash.cjs.js.gz +0 -0
- package/lib/vendor-lodash.es.js +5493 -0
- package/lib/vendor-lodash.es.js.gz +0 -0
- package/lib/vendor-mqtt.cjs.js +1 -0
- package/lib/vendor-mqtt.cjs.js.gz +0 -0
- package/lib/vendor-mqtt.es.js +6822 -0
- package/lib/vendor-mqtt.es.js.gz +0 -0
- package/lib/vendor-sortablejs.cjs.js +7 -0
- package/lib/vendor-sortablejs.cjs.js.gz +0 -0
- package/lib/vendor-sortablejs.es.js +2160 -0
- package/lib/vendor-sortablejs.es.js.gz +0 -0
- package/lib/yxIcon.cjs.js +0 -1
- package/lib/yxIcon.es.js +0 -1
- package/lib/yxi18n.cjs.js +0 -1
- package/lib/yxi18n.es.js +0 -1
- package/lib/yxuse.css +1 -1
- package/lib/yxuse.css.gz +0 -0
- package/package.json +1 -1
- package/lib/.pnpm.cjs.js +0 -26
- package/lib/.pnpm.cjs.js.gz +0 -0
- package/lib/.pnpm.cjs.js.map +0 -1
- package/lib/.pnpm.es.js +0 -54020
- package/lib/.pnpm.es.js.gz +0 -0
- package/lib/.pnpm.es.js.map +0 -1
- package/lib/api.cjs.js.map +0 -1
- package/lib/api.es.js.map +0 -1
- package/lib/app.cjs.js.map +0 -1
- package/lib/app.es.js.map +0 -1
- package/lib/components.cjs.js.map +0 -1
- package/lib/components.es.js.map +0 -1
- package/lib/directives.cjs.js.map +0 -1
- package/lib/directives.es.js.map +0 -1
- package/lib/hooks.cjs.js.map +0 -1
- package/lib/hooks.es.js.map +0 -1
- package/lib/index.cjs.js.map +0 -1
- package/lib/index.cjs10.js.map +0 -1
- package/lib/index.cjs11.js.map +0 -1
- package/lib/index.cjs12.js.map +0 -1
- package/lib/index.cjs13.js.map +0 -1
- package/lib/index.cjs14.js.map +0 -1
- package/lib/index.cjs2.js.map +0 -1
- package/lib/index.cjs3.js.map +0 -1
- package/lib/index.cjs4.js.map +0 -1
- package/lib/index.cjs5.js.map +0 -1
- package/lib/index.cjs6.js.map +0 -1
- package/lib/index.cjs7.js.map +0 -1
- package/lib/index.cjs8.js.map +0 -1
- package/lib/index.cjs9.js.map +0 -1
- package/lib/index.es.js.map +0 -1
- package/lib/index.es10.js.map +0 -1
- package/lib/index.es11.js.map +0 -1
- package/lib/index.es12.js.map +0 -1
- package/lib/index.es13.js.map +0 -1
- package/lib/index.es14.js.map +0 -1
- package/lib/index.es2.js.map +0 -1
- package/lib/index.es3.js.map +0 -1
- package/lib/index.es4.js.map +0 -1
- package/lib/index.es5.js.map +0 -1
- package/lib/index.es6.js.map +0 -1
- package/lib/index.es7.js.map +0 -1
- package/lib/index.es8.js.map +0 -1
- package/lib/index.es9.js.map +0 -1
- package/lib/theme.cjs.js.map +0 -1
- package/lib/theme.es.js.map +0 -1
- package/lib/translate.cjs.js.map +0 -1
- package/lib/translate.es.js.map +0 -1
- package/lib/utils.cjs.js.map +0 -1
- package/lib/utils.es.js.map +0 -1
- package/lib/yxIcon.cjs.js.map +0 -1
- package/lib/yxIcon.es.js.map +0 -1
- package/lib/yxi18n.cjs.js.map +0 -1
- package/lib/yxi18n.es.js.map +0 -1
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n,r={exports:{}};const s=e((n||(n=1,r.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",s="second",i="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},p={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),s=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(s,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),s=e.clone().add(r,c),i=n-s<0,u=e.clone().add(r+(i?-1:1),c);return+(-(r+(n-s)/(i?s-u:u-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:i,s:s,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",v={};v[g]=M;var D="$isDayjsObject",w=function(t){return t instanceof _||!(!t||!t[D])},S=function t(e,n,r){var s;if(!e)return g;if("string"==typeof e){var i=e.toLowerCase();v[i]&&(s=i),n&&(v[i]=n,s=i);var u=e.split("-");if(!s&&u.length>1)return t(u[0])}else{var a=e.name;v[a]=e,s=a}return!r&&s&&(g=s),s||!r&&g},b=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=p;O.l=S,O.i=w,O.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[D]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var s=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=b(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return b(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<b(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,f=O.p(t),l=function(t,e){var s=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?s:s.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,p="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,v=(y<g?y+7:y)-g;return l(r?m-v:m+(6-v),M);case a:case d:return $(p+"Hours",0);case u:return $(p+"Minutes",1);case i:return $(p+"Seconds",2);case s:return $(p+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[i]=f+"Minutes",n[s]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=O.p(f),y=function(t){var e=b(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[i]=e,d[u]=n,d[s]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",s=O.z(this),i=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,s,i){return t&&(t[n]||t(e,r))||s[n].slice(0,i)},d=function(t){return O.s(i%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return O.s(e.$y,4,"0");case"M":return a+1;case"MM":return O.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return O.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(i);case"HH":return O.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(i,u,!0);case"A":return $(i,u,!1);case"m":return String(u);case"mm":return O.s(u,2,"0");case"s":return String(e.$s);case"ss":return O.s(e.$s,2,"0");case"SSS":return O.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=O.p(d),m=b(r),p=(m.utcOffset()-this.utcOffset())*e,g=this-m,v=function(){return O.m(y,m)};switch(M){case h:$=v()/12;break;case c:$=v();break;case f:$=v()/3;break;case o:$=(g-p)/6048e5;break;case a:$=(g-p)/864e5;break;case u:$=g/n;break;case i:$=g/e;break;case s:$=g/t;break;default:$=g}return l?$:O.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),x=_.prototype;return b.prototype=x,[["$ms",r],["$s",s],["$m",i],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),b.extend=function(t,e){return t.$i||(t(e,_,b),t.$i=!0),b},b.locale=S,b.isDayjs=w,b.unix=function(t){return b(1e3*t)},b.en=v[g],b.Ls=v,b.p={},b}()),r.exports));exports.commonjsGlobal=t,exports.dayjs=s,exports.getDefaultExportFromCjs=e;
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2
|
+
function getDefaultExportFromCjs(x) {
|
|
3
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
4
|
+
}
|
|
5
|
+
var dayjs_min$1 = { exports: {} };
|
|
6
|
+
var dayjs_min = dayjs_min$1.exports;
|
|
7
|
+
var hasRequiredDayjs_min;
|
|
8
|
+
function requireDayjs_min() {
|
|
9
|
+
if (hasRequiredDayjs_min) return dayjs_min$1.exports;
|
|
10
|
+
hasRequiredDayjs_min = 1;
|
|
11
|
+
(function(module, exports) {
|
|
12
|
+
!function(t, e) {
|
|
13
|
+
module.exports = e();
|
|
14
|
+
}(dayjs_min, function() {
|
|
15
|
+
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
|
|
16
|
+
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
|
17
|
+
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
|
18
|
+
} }, m = function(t2, e2, n2) {
|
|
19
|
+
var r2 = String(t2);
|
|
20
|
+
return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
|
|
21
|
+
}, v = { s: m, z: function(t2) {
|
|
22
|
+
var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
|
|
23
|
+
return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
|
|
24
|
+
}, m: function t2(e2, n2) {
|
|
25
|
+
if (e2.date() < n2.date()) return -t2(n2, e2);
|
|
26
|
+
var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
|
|
27
|
+
return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
|
28
|
+
}, a: function(t2) {
|
|
29
|
+
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
30
|
+
}, p: function(t2) {
|
|
31
|
+
return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
32
|
+
}, u: function(t2) {
|
|
33
|
+
return void 0 === t2;
|
|
34
|
+
} }, g = "en", D = {};
|
|
35
|
+
D[g] = M;
|
|
36
|
+
var p = "$isDayjsObject", S = function(t2) {
|
|
37
|
+
return t2 instanceof _ || !(!t2 || !t2[p]);
|
|
38
|
+
}, w = function t2(e2, n2, r2) {
|
|
39
|
+
var i2;
|
|
40
|
+
if (!e2) return g;
|
|
41
|
+
if ("string" == typeof e2) {
|
|
42
|
+
var s2 = e2.toLowerCase();
|
|
43
|
+
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
44
|
+
var u2 = e2.split("-");
|
|
45
|
+
if (!i2 && u2.length > 1) return t2(u2[0]);
|
|
46
|
+
} else {
|
|
47
|
+
var a2 = e2.name;
|
|
48
|
+
D[a2] = e2, i2 = a2;
|
|
49
|
+
}
|
|
50
|
+
return !r2 && i2 && (g = i2), i2 || !r2 && g;
|
|
51
|
+
}, O = function(t2, e2) {
|
|
52
|
+
if (S(t2)) return t2.clone();
|
|
53
|
+
var n2 = "object" == typeof e2 ? e2 : {};
|
|
54
|
+
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
55
|
+
}, b = v;
|
|
56
|
+
b.l = w, b.i = S, b.w = function(t2, e2) {
|
|
57
|
+
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
58
|
+
};
|
|
59
|
+
var _ = function() {
|
|
60
|
+
function M2(t2) {
|
|
61
|
+
this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
|
|
62
|
+
}
|
|
63
|
+
var m2 = M2.prototype;
|
|
64
|
+
return m2.parse = function(t2) {
|
|
65
|
+
this.$d = function(t3) {
|
|
66
|
+
var e2 = t3.date, n2 = t3.utc;
|
|
67
|
+
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
|
68
|
+
if (b.u(e2)) return /* @__PURE__ */ new Date();
|
|
69
|
+
if (e2 instanceof Date) return new Date(e2);
|
|
70
|
+
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
71
|
+
var r2 = e2.match($);
|
|
72
|
+
if (r2) {
|
|
73
|
+
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
|
74
|
+
return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return new Date(e2);
|
|
78
|
+
}(t2), this.init();
|
|
79
|
+
}, m2.init = function() {
|
|
80
|
+
var t2 = this.$d;
|
|
81
|
+
this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
|
|
82
|
+
}, m2.$utils = function() {
|
|
83
|
+
return b;
|
|
84
|
+
}, m2.isValid = function() {
|
|
85
|
+
return !(this.$d.toString() === l);
|
|
86
|
+
}, m2.isSame = function(t2, e2) {
|
|
87
|
+
var n2 = O(t2);
|
|
88
|
+
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
89
|
+
}, m2.isAfter = function(t2, e2) {
|
|
90
|
+
return O(t2) < this.startOf(e2);
|
|
91
|
+
}, m2.isBefore = function(t2, e2) {
|
|
92
|
+
return this.endOf(e2) < O(t2);
|
|
93
|
+
}, m2.$g = function(t2, e2, n2) {
|
|
94
|
+
return b.u(t2) ? this[e2] : this.set(n2, t2);
|
|
95
|
+
}, m2.unix = function() {
|
|
96
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
97
|
+
}, m2.valueOf = function() {
|
|
98
|
+
return this.$d.getTime();
|
|
99
|
+
}, m2.startOf = function(t2, e2) {
|
|
100
|
+
var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
|
101
|
+
var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
102
|
+
return r2 ? i2 : i2.endOf(a);
|
|
103
|
+
}, $2 = function(t3, e3) {
|
|
104
|
+
return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
105
|
+
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
106
|
+
switch (f2) {
|
|
107
|
+
case h:
|
|
108
|
+
return r2 ? l2(1, 0) : l2(31, 11);
|
|
109
|
+
case c:
|
|
110
|
+
return r2 ? l2(1, M3) : l2(0, M3 + 1);
|
|
111
|
+
case o:
|
|
112
|
+
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
113
|
+
return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
114
|
+
case a:
|
|
115
|
+
case d:
|
|
116
|
+
return $2(v2 + "Hours", 0);
|
|
117
|
+
case u:
|
|
118
|
+
return $2(v2 + "Minutes", 1);
|
|
119
|
+
case s:
|
|
120
|
+
return $2(v2 + "Seconds", 2);
|
|
121
|
+
case i:
|
|
122
|
+
return $2(v2 + "Milliseconds", 3);
|
|
123
|
+
default:
|
|
124
|
+
return this.clone();
|
|
125
|
+
}
|
|
126
|
+
}, m2.endOf = function(t2) {
|
|
127
|
+
return this.startOf(t2, false);
|
|
128
|
+
}, m2.$set = function(t2, e2) {
|
|
129
|
+
var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
|
130
|
+
if (o2 === c || o2 === h) {
|
|
131
|
+
var y2 = this.clone().set(d, 1);
|
|
132
|
+
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
133
|
+
} else l2 && this.$d[l2]($2);
|
|
134
|
+
return this.init(), this;
|
|
135
|
+
}, m2.set = function(t2, e2) {
|
|
136
|
+
return this.clone().$set(t2, e2);
|
|
137
|
+
}, m2.get = function(t2) {
|
|
138
|
+
return this[b.p(t2)]();
|
|
139
|
+
}, m2.add = function(r2, f2) {
|
|
140
|
+
var d2, l2 = this;
|
|
141
|
+
r2 = Number(r2);
|
|
142
|
+
var $2 = b.p(f2), y2 = function(t2) {
|
|
143
|
+
var e2 = O(l2);
|
|
144
|
+
return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
|
145
|
+
};
|
|
146
|
+
if ($2 === c) return this.set(c, this.$M + r2);
|
|
147
|
+
if ($2 === h) return this.set(h, this.$y + r2);
|
|
148
|
+
if ($2 === a) return y2(1);
|
|
149
|
+
if ($2 === o) return y2(7);
|
|
150
|
+
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
|
|
151
|
+
return b.w(m3, this);
|
|
152
|
+
}, m2.subtract = function(t2, e2) {
|
|
153
|
+
return this.add(-1 * t2, e2);
|
|
154
|
+
}, m2.format = function(t2) {
|
|
155
|
+
var e2 = this, n2 = this.$locale();
|
|
156
|
+
if (!this.isValid()) return n2.invalidDate || l;
|
|
157
|
+
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
|
|
158
|
+
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
|
159
|
+
}, d2 = function(t3) {
|
|
160
|
+
return b.s(s2 % 12 || 12, t3, "0");
|
|
161
|
+
}, $2 = f2 || function(t3, e3, n3) {
|
|
162
|
+
var r3 = t3 < 12 ? "AM" : "PM";
|
|
163
|
+
return n3 ? r3.toLowerCase() : r3;
|
|
164
|
+
};
|
|
165
|
+
return r2.replace(y, function(t3, r3) {
|
|
166
|
+
return r3 || function(t4) {
|
|
167
|
+
switch (t4) {
|
|
168
|
+
case "YY":
|
|
169
|
+
return String(e2.$y).slice(-2);
|
|
170
|
+
case "YYYY":
|
|
171
|
+
return b.s(e2.$y, 4, "0");
|
|
172
|
+
case "M":
|
|
173
|
+
return a2 + 1;
|
|
174
|
+
case "MM":
|
|
175
|
+
return b.s(a2 + 1, 2, "0");
|
|
176
|
+
case "MMM":
|
|
177
|
+
return h2(n2.monthsShort, a2, c2, 3);
|
|
178
|
+
case "MMMM":
|
|
179
|
+
return h2(c2, a2);
|
|
180
|
+
case "D":
|
|
181
|
+
return e2.$D;
|
|
182
|
+
case "DD":
|
|
183
|
+
return b.s(e2.$D, 2, "0");
|
|
184
|
+
case "d":
|
|
185
|
+
return String(e2.$W);
|
|
186
|
+
case "dd":
|
|
187
|
+
return h2(n2.weekdaysMin, e2.$W, o2, 2);
|
|
188
|
+
case "ddd":
|
|
189
|
+
return h2(n2.weekdaysShort, e2.$W, o2, 3);
|
|
190
|
+
case "dddd":
|
|
191
|
+
return o2[e2.$W];
|
|
192
|
+
case "H":
|
|
193
|
+
return String(s2);
|
|
194
|
+
case "HH":
|
|
195
|
+
return b.s(s2, 2, "0");
|
|
196
|
+
case "h":
|
|
197
|
+
return d2(1);
|
|
198
|
+
case "hh":
|
|
199
|
+
return d2(2);
|
|
200
|
+
case "a":
|
|
201
|
+
return $2(s2, u2, true);
|
|
202
|
+
case "A":
|
|
203
|
+
return $2(s2, u2, false);
|
|
204
|
+
case "m":
|
|
205
|
+
return String(u2);
|
|
206
|
+
case "mm":
|
|
207
|
+
return b.s(u2, 2, "0");
|
|
208
|
+
case "s":
|
|
209
|
+
return String(e2.$s);
|
|
210
|
+
case "ss":
|
|
211
|
+
return b.s(e2.$s, 2, "0");
|
|
212
|
+
case "SSS":
|
|
213
|
+
return b.s(e2.$ms, 3, "0");
|
|
214
|
+
case "Z":
|
|
215
|
+
return i2;
|
|
216
|
+
}
|
|
217
|
+
return null;
|
|
218
|
+
}(t3) || i2.replace(":", "");
|
|
219
|
+
});
|
|
220
|
+
}, m2.utcOffset = function() {
|
|
221
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
222
|
+
}, m2.diff = function(r2, d2, l2) {
|
|
223
|
+
var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
|
224
|
+
return b.m(y2, m3);
|
|
225
|
+
};
|
|
226
|
+
switch (M3) {
|
|
227
|
+
case h:
|
|
228
|
+
$2 = D2() / 12;
|
|
229
|
+
break;
|
|
230
|
+
case c:
|
|
231
|
+
$2 = D2();
|
|
232
|
+
break;
|
|
233
|
+
case f:
|
|
234
|
+
$2 = D2() / 3;
|
|
235
|
+
break;
|
|
236
|
+
case o:
|
|
237
|
+
$2 = (g2 - v2) / 6048e5;
|
|
238
|
+
break;
|
|
239
|
+
case a:
|
|
240
|
+
$2 = (g2 - v2) / 864e5;
|
|
241
|
+
break;
|
|
242
|
+
case u:
|
|
243
|
+
$2 = g2 / n;
|
|
244
|
+
break;
|
|
245
|
+
case s:
|
|
246
|
+
$2 = g2 / e;
|
|
247
|
+
break;
|
|
248
|
+
case i:
|
|
249
|
+
$2 = g2 / t;
|
|
250
|
+
break;
|
|
251
|
+
default:
|
|
252
|
+
$2 = g2;
|
|
253
|
+
}
|
|
254
|
+
return l2 ? $2 : b.a($2);
|
|
255
|
+
}, m2.daysInMonth = function() {
|
|
256
|
+
return this.endOf(c).$D;
|
|
257
|
+
}, m2.$locale = function() {
|
|
258
|
+
return D[this.$L];
|
|
259
|
+
}, m2.locale = function(t2, e2) {
|
|
260
|
+
if (!t2) return this.$L;
|
|
261
|
+
var n2 = this.clone(), r2 = w(t2, e2, true);
|
|
262
|
+
return r2 && (n2.$L = r2), n2;
|
|
263
|
+
}, m2.clone = function() {
|
|
264
|
+
return b.w(this.$d, this);
|
|
265
|
+
}, m2.toDate = function() {
|
|
266
|
+
return new Date(this.valueOf());
|
|
267
|
+
}, m2.toJSON = function() {
|
|
268
|
+
return this.isValid() ? this.toISOString() : null;
|
|
269
|
+
}, m2.toISOString = function() {
|
|
270
|
+
return this.$d.toISOString();
|
|
271
|
+
}, m2.toString = function() {
|
|
272
|
+
return this.$d.toUTCString();
|
|
273
|
+
}, M2;
|
|
274
|
+
}(), k = _.prototype;
|
|
275
|
+
return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
|
|
276
|
+
k[t2[1]] = function(e2) {
|
|
277
|
+
return this.$g(e2, t2[0], t2[1]);
|
|
278
|
+
};
|
|
279
|
+
}), O.extend = function(t2, e2) {
|
|
280
|
+
return t2.$i || (t2(e2, _, O), t2.$i = true), O;
|
|
281
|
+
}, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
|
|
282
|
+
return O(1e3 * t2);
|
|
283
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
284
|
+
});
|
|
285
|
+
})(dayjs_min$1);
|
|
286
|
+
return dayjs_min$1.exports;
|
|
287
|
+
}
|
|
288
|
+
var dayjs_minExports = requireDayjs_min();
|
|
289
|
+
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
290
|
+
export {
|
|
291
|
+
commonjsGlobal as c,
|
|
292
|
+
dayjs as d,
|
|
293
|
+
getDefaultExportFromCjs as g
|
|
294
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./vendor-dayjs.cjs.js");var t,o,n={exports:{}};t||(t=1,o=n,function(){function t(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function n(e,t,o){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){c(n.response,t,o)},n.onerror=function(){},n.send()}function a(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(o){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(o){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var r="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof e.commonjsGlobal&&e.commonjsGlobal.global===e.commonjsGlobal?e.commonjsGlobal:void 0,s=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,o){var s=r.URL||r.webkitURL,c=document.createElement("a");t=t||e.name||"download",c.download=t,c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?i(c):a(c.href)?n(e,t,o):i(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){i(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,o,r){if(o=o||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,r),o);else if(a(e))n(e,o,r);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){i(s)}))}}:function(e,t,o,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,o);var i="application/octet-stream"===e.type,c=/constructor/i.test(r.HTMLElement)||r.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||i&&c||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},u.readAsDataURL(e)}else{var f=r.URL||r.webkitURL,d=f.createObjectURL(e);a?a.location=d:location.href=d,a=null,setTimeout((function(){f.revokeObjectURL(d)}),4e4)}});r.saveAs=c.saveAs=c,o.exports=c}());
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { c as commonjsGlobal } from "./vendor-dayjs.es.js";
|
|
2
|
+
var FileSaver_min$1 = { exports: {} };
|
|
3
|
+
var FileSaver_min = FileSaver_min$1.exports;
|
|
4
|
+
var hasRequiredFileSaver_min;
|
|
5
|
+
function requireFileSaver_min() {
|
|
6
|
+
if (hasRequiredFileSaver_min) return FileSaver_min$1.exports;
|
|
7
|
+
hasRequiredFileSaver_min = 1;
|
|
8
|
+
(function(module, exports) {
|
|
9
|
+
(function(a, b) {
|
|
10
|
+
b();
|
|
11
|
+
})(FileSaver_min, function() {
|
|
12
|
+
function b(a2, b2) {
|
|
13
|
+
return "undefined" == typeof b2 ? b2 = { autoBom: false } : "object" != typeof b2 && (void 0, b2 = { autoBom: !b2 }), b2.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a2.type) ? new Blob(["\uFEFF", a2], { type: a2.type }) : a2;
|
|
14
|
+
}
|
|
15
|
+
function c(a2, b2, c2) {
|
|
16
|
+
var d2 = new XMLHttpRequest();
|
|
17
|
+
d2.open("GET", a2), d2.responseType = "blob", d2.onload = function() {
|
|
18
|
+
g(d2.response, b2, c2);
|
|
19
|
+
}, d2.onerror = function() {
|
|
20
|
+
}, d2.send();
|
|
21
|
+
}
|
|
22
|
+
function d(a2) {
|
|
23
|
+
var b2 = new XMLHttpRequest();
|
|
24
|
+
b2.open("HEAD", a2, false);
|
|
25
|
+
try {
|
|
26
|
+
b2.send();
|
|
27
|
+
} catch (a3) {
|
|
28
|
+
}
|
|
29
|
+
return 200 <= b2.status && 299 >= b2.status;
|
|
30
|
+
}
|
|
31
|
+
function e(a2) {
|
|
32
|
+
try {
|
|
33
|
+
a2.dispatchEvent(new MouseEvent("click"));
|
|
34
|
+
} catch (c2) {
|
|
35
|
+
var b2 = document.createEvent("MouseEvents");
|
|
36
|
+
b2.initMouseEvent("click", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null), a2.dispatchEvent(b2);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
var f = "object" == typeof window && window.window === window ? window : "object" == typeof self && self.self === self ? self : "object" == typeof commonjsGlobal && commonjsGlobal.global === commonjsGlobal ? commonjsGlobal : void 0, a = f.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), g = f.saveAs || ("object" != typeof window || window !== f ? function() {
|
|
40
|
+
} : "download" in HTMLAnchorElement.prototype && !a ? function(b2, g2, h) {
|
|
41
|
+
var i = f.URL || f.webkitURL, j = document.createElement("a");
|
|
42
|
+
g2 = g2 || b2.name || "download", j.download = g2, j.rel = "noopener", "string" == typeof b2 ? (j.href = b2, j.origin === location.origin ? e(j) : d(j.href) ? c(b2, g2, h) : e(j, j.target = "_blank")) : (j.href = i.createObjectURL(b2), setTimeout(function() {
|
|
43
|
+
i.revokeObjectURL(j.href);
|
|
44
|
+
}, 4e4), setTimeout(function() {
|
|
45
|
+
e(j);
|
|
46
|
+
}, 0));
|
|
47
|
+
} : "msSaveOrOpenBlob" in navigator ? function(f2, g2, h) {
|
|
48
|
+
if (g2 = g2 || f2.name || "download", "string" != typeof f2) navigator.msSaveOrOpenBlob(b(f2, h), g2);
|
|
49
|
+
else if (d(f2)) c(f2, g2, h);
|
|
50
|
+
else {
|
|
51
|
+
var i = document.createElement("a");
|
|
52
|
+
i.href = f2, i.target = "_blank", setTimeout(function() {
|
|
53
|
+
e(i);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
} : function(b2, d2, e2, g2) {
|
|
57
|
+
if (g2 = g2 || open("", "_blank"), g2 && (g2.document.title = g2.document.body.innerText = "downloading..."), "string" == typeof b2) return c(b2, d2, e2);
|
|
58
|
+
var h = "application/octet-stream" === b2.type, i = /constructor/i.test(f.HTMLElement) || f.safari, j = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
59
|
+
if ((j || h && i || a) && "undefined" != typeof FileReader) {
|
|
60
|
+
var k = new FileReader();
|
|
61
|
+
k.onloadend = function() {
|
|
62
|
+
var a2 = k.result;
|
|
63
|
+
a2 = j ? a2 : a2.replace(/^data:[^;]*;/, "data:attachment/file;"), g2 ? g2.location.href = a2 : location = a2, g2 = null;
|
|
64
|
+
}, k.readAsDataURL(b2);
|
|
65
|
+
} else {
|
|
66
|
+
var l = f.URL || f.webkitURL, m = l.createObjectURL(b2);
|
|
67
|
+
g2 ? g2.location = m : location.href = m, g2 = null, setTimeout(function() {
|
|
68
|
+
l.revokeObjectURL(m);
|
|
69
|
+
}, 4e4);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
f.saveAs = g.saveAs = g, module.exports = g;
|
|
73
|
+
});
|
|
74
|
+
})(FileSaver_min$1);
|
|
75
|
+
return FileSaver_min$1.exports;
|
|
76
|
+
}
|
|
77
|
+
requireFileSaver_min();
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";const e=require("./vendor-dayjs.cjs.js");function n(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var r,t={exports:{}};
|
|
2
|
+
/*!
|
|
3
|
+
localForage -- Offline Storage, Improved
|
|
4
|
+
Version 1.10.0
|
|
5
|
+
https://localforage.github.io/localForage
|
|
6
|
+
(c) 2013-2017 Mozilla, Apache License 2.0
|
|
7
|
+
*/var o=(r||(r=1,t.exports=function e(r,t,o){function i(u,c){if(!t[u]){if(!r[u]){if(!c&&n)return n(u);if(a)return a(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var s=t[u]={exports:{}};r[u][0].call(s.exports,(function(e){var n=r[u][1][e];return i(n||e)}),s,s.exports,e,r,t,o)}return t[u].exports}for(var a=n,u=0;u<o.length;u++)i(o[u]);return i}({1:[function(n,r,t){(function(e){var n,t,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(s),u=e.document.createTextNode("");a.observe(u,{characterData:!0}),n=function(){u.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var n=e.document.createElement("script");n.onreadystatechange=function(){s(),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},e.document.documentElement.appendChild(n)}:function(){setTimeout(s,0)};else{var c=new e.MessageChannel;c.port1.onmessage=s,n=function(){c.port2.postMessage(0)}}var f=[];function s(){var e,n;t=!0;for(var r=f.length;r;){for(n=f,f=[],e=-1;++e<r;)n[e]();r=f.length}t=!1}function l(e){1!==f.push(e)||t||n()}r.exports=l}).call(this,void 0!==e.commonjsGlobal?e.commonjsGlobal:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,n,r){var t=e(1);function o(){}var i={},a=["REJECTED"],u=["FULFILLED"],c=["PENDING"];function f(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==o&&v(this,e)}function s(e,n,r){this.promise=e,"function"==typeof n&&(this.onFulfilled=n,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function l(e,n,r){t((function(){var t;try{t=n(r)}catch(o){return i.reject(e,o)}t===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,t)}))}function d(e){var n=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof n)return function(){n.apply(e,arguments)}}function v(e,n){var r=!1;function t(n){r||(r=!0,i.reject(e,n))}function o(n){r||(r=!0,i.resolve(e,n))}function a(){n(o,t)}var u=h(a);"error"===u.status&&t(u.value)}function h(e,n){var r={};try{r.value=e(n),r.status="success"}catch(t){r.status="error",r.value=t}return r}function y(e){return e instanceof this?e:i.resolve(new this(o),e)}function p(e){var n=new this(o);return i.reject(n,e)}function b(e){var n=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,t=!1;if(!r)return this.resolve([]);for(var a=new Array(r),u=0,c=-1,f=new this(o);++c<r;)s(e[c],c);return f;function s(e,o){function c(e){a[o]=e,++u!==r||t||(t=!0,i.resolve(f,a))}n.resolve(e).then(c,(function(e){t||(t=!0,i.reject(f,e))}))}}function m(e){var n=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,t=!1;if(!r)return this.resolve([]);for(var a=-1,u=new this(o);++a<r;)c(e[a]);return u;function c(e){n.resolve(e).then((function(e){t||(t=!0,i.resolve(u,e))}),(function(e){t||(t=!0,i.reject(u,e))}))}}n.exports=f,f.prototype.catch=function(e){return this.then(null,e)},f.prototype.then=function(e,n){if("function"!=typeof e&&this.state===u||"function"!=typeof n&&this.state===a)return this;var r=new this.constructor(o);return this.state!==c?l(r,this.state===u?e:n,this.outcome):this.queue.push(new s(r,e,n)),r},s.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},s.prototype.otherCallFulfilled=function(e){l(this.promise,this.onFulfilled,e)},s.prototype.callRejected=function(e){i.reject(this.promise,e)},s.prototype.otherCallRejected=function(e){l(this.promise,this.onRejected,e)},i.resolve=function(e,n){var r=h(d,n);if("error"===r.status)return i.reject(e,r.value);var t=r.value;if(t)v(e,t);else{e.state=u,e.outcome=n;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(n)}return e},i.reject=function(e,n){e.state=a,e.outcome=n;for(var r=-1,t=e.queue.length;++r<t;)e.queue[r].callRejected(n);return e},f.resolve=y,f.reject=p,f.all=b,f.race=m},{1:1}],3:[function(n,r,t){(function(e){"function"!=typeof e.Promise&&(e.Promise=n(2))}).call(this,void 0!==e.commonjsGlobal?e.commonjsGlobal:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,n,r){var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function i(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}var a=i();function u(){try{if(!a||!a.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),n="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||n)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(r){return!1}}function c(e,n){e=e||[],n=n||{};try{return new Blob(e,n)}catch(o){if("TypeError"!==o.name)throw o;for(var r=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),t=0;t<e.length;t+=1)r.append(e[t]);return r.getBlob(n.type)}}"undefined"==typeof Promise&&e(3);var f=Promise;function s(e,n){n&&e.then((function(e){n(null,e)}),(function(e){n(e)}))}function l(e,n,r){"function"==typeof n&&e.then(n),"function"==typeof r&&e.catch(r)}function d(e){return"string"!=typeof e&&(e=String(e)),e}function v(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var h="local-forage-detect-blob-support",y=void 0,p={},b=Object.prototype.toString,m="readonly",g="readwrite";function _(e){for(var n=e.length,r=new ArrayBuffer(n),t=new Uint8Array(r),o=0;o<n;o++)t[o]=e.charCodeAt(o);return r}function I(e){return new f((function(n){var r=e.transaction(h,g),t=c([""]);r.objectStore(h).put(t,"key"),r.onabort=function(e){e.preventDefault(),e.stopPropagation(),n(!1)},r.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),r=navigator.userAgent.match(/Edge\//);n(r||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}function w(e){return"boolean"==typeof y?f.resolve(y):I(e).then((function(e){return y=e}))}function S(e){var n=p[e.name],r={};r.promise=new f((function(e,n){r.resolve=e,r.reject=n})),n.deferredOperations.push(r),n.dbReady?n.dbReady=n.dbReady.then((function(){return r.promise})):n.dbReady=r.promise}function E(e){var n=p[e.name].deferredOperations.pop();if(n)return n.resolve(),n.promise}function j(e,n){var r=p[e.name].deferredOperations.pop();if(r)return r.reject(n),r.promise}function N(e,n){return new f((function(r,t){if(p[e.name]=p[e.name]||F(),e.db){if(!n)return r(e.db);S(e),e.db.close()}var o=[e.name];n&&o.push(e.version);var i=a.open.apply(a,o);n&&(i.onupgradeneeded=function(n){var r=i.result;try{r.createObjectStore(e.storeName),n.oldVersion<=1&&r.createObjectStore(h)}catch(t){if("ConstraintError"!==t.name)throw t}}),i.onerror=function(e){e.preventDefault(),t(i.error)},i.onsuccess=function(){var n=i.result;n.onversionchange=function(e){e.target.close()},r(n),E(e)}}))}function R(e){return N(e,!1)}function A(e){return N(e,!0)}function D(e,n){if(!e.db)return!0;var r=!e.db.objectStoreNames.contains(e.storeName),t=e.version<e.db.version,o=e.version>e.db.version;if(t&&(e.version,e.version=e.db.version),o||r){if(r){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function O(e){return new f((function(n,r){var t=new FileReader;t.onerror=r,t.onloadend=function(r){var t=btoa(r.target.result||"");n({__local_forage_encoded_blob:!0,data:t,type:e.type})},t.readAsBinaryString(e)}))}function x(e){return c([_(atob(e.data))],{type:e.type})}function B(e){return e&&e.__local_forage_encoded_blob}function k(e){var n=this,r=n._initReady().then((function(){var e=p[n._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return l(r,e,e),r}function C(e){S(e);for(var n=p[e.name],r=n.forages,t=0;t<r.length;t++){var o=r[t];o._dbInfo.db&&(o._dbInfo.db.close(),o._dbInfo.db=null)}return e.db=null,R(e).then((function(n){return e.db=n,D(e)?A(e):n})).then((function(t){e.db=n.db=t;for(var o=0;o<r.length;o++)r[o]._dbInfo.db=t})).catch((function(n){throw j(e,n),n}))}function T(e,n,r,t){void 0===t&&(t=1);try{var o=e.db.transaction(e.storeName,n);r(null,o)}catch(i){if(t>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return f.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),A(e)})).then((function(){return C(e).then((function(){T(e,n,r,t-1)}))})).catch(r);r(i)}}function F(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function L(e){var n=this,r={db:null};if(e)for(var t in e)r[t]=e[t];var o=p[r.name];o||(o=F(),p[r.name]=o),o.forages.push(n),n._initReady||(n._initReady=n.ready,n.ready=k);var i=[];function a(){return f.resolve()}for(var u=0;u<o.forages.length;u++){var c=o.forages[u];c!==n&&i.push(c._initReady().catch(a))}var s=o.forages.slice(0);return f.all(i).then((function(){return r.db=o.db,R(r)})).then((function(e){return r.db=e,D(r,n._defaultConfig.version)?A(r):e})).then((function(e){r.db=o.db=e,n._dbInfo=r;for(var t=0;t<s.length;t++){var i=s[t];i!==n&&(i._dbInfo.db=r.db,i._dbInfo.version=r.version)}}))}function M(e,n){var r=this;e=d(e);var t=new f((function(n,t){r.ready().then((function(){T(r._dbInfo,m,(function(o,i){if(o)return t(o);try{var a=i.objectStore(r._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),B(e)&&(e=x(e)),n(e)},a.onerror=function(){t(a.error)}}catch(u){t(u)}}))})).catch(t)}));return s(t,n),t}function z(e,n){var r=this,t=new f((function(n,t){r.ready().then((function(){T(r._dbInfo,m,(function(o,i){if(o)return t(o);try{var a=i.objectStore(r._dbInfo.storeName).openCursor(),u=1;a.onsuccess=function(){var r=a.result;if(r){var t=r.value;B(t)&&(t=x(t));var o=e(t,r.key,u++);void 0!==o?n(o):r.continue()}else n()},a.onerror=function(){t(a.error)}}catch(c){t(c)}}))})).catch(t)}));return s(t,n),t}function P(e,n,r){var t=this;e=d(e);var o=new f((function(r,o){var i;t.ready().then((function(){return i=t._dbInfo,"[object Blob]"===b.call(n)?w(i.db).then((function(e){return e?n:O(n)})):n})).then((function(n){T(t._dbInfo,g,(function(i,a){if(i)return o(i);try{var u=a.objectStore(t._dbInfo.storeName);null===n&&(n=void 0);var c=u.put(n,e);a.oncomplete=function(){void 0===n&&(n=null),r(n)},a.onabort=a.onerror=function(){var e=c.error?c.error:c.transaction.error;o(e)}}catch(f){o(f)}}))})).catch(o)}));return s(o,r),o}function q(e,n){var r=this;e=d(e);var t=new f((function(n,t){r.ready().then((function(){T(r._dbInfo,g,(function(o,i){if(o)return t(o);try{var a=i.objectStore(r._dbInfo.storeName).delete(e);i.oncomplete=function(){n()},i.onerror=function(){t(a.error)},i.onabort=function(){var e=a.error?a.error:a.transaction.error;t(e)}}catch(u){t(u)}}))})).catch(t)}));return s(t,n),t}function U(e){var n=this,r=new f((function(e,r){n.ready().then((function(){T(n._dbInfo,g,(function(t,o){if(t)return r(t);try{var i=o.objectStore(n._dbInfo.storeName).clear();o.oncomplete=function(){e()},o.onabort=o.onerror=function(){var e=i.error?i.error:i.transaction.error;r(e)}}catch(a){r(a)}}))})).catch(r)}));return s(r,e),r}function W(e){var n=this,r=new f((function(e,r){n.ready().then((function(){T(n._dbInfo,m,(function(t,o){if(t)return r(t);try{var i=o.objectStore(n._dbInfo.storeName).count();i.onsuccess=function(){e(i.result)},i.onerror=function(){r(i.error)}}catch(a){r(a)}}))})).catch(r)}));return s(r,e),r}function G(e,n){var r=this,t=new f((function(n,t){e<0?n(null):r.ready().then((function(){T(r._dbInfo,m,(function(o,i){if(o)return t(o);try{var a=i.objectStore(r._dbInfo.storeName),u=!1,c=a.openKeyCursor();c.onsuccess=function(){var r=c.result;r?0===e||u?n(r.key):(u=!0,r.advance(e)):n(null)},c.onerror=function(){t(c.error)}}catch(f){t(f)}}))})).catch(t)}));return s(t,n),t}function K(e){var n=this,r=new f((function(e,r){n.ready().then((function(){T(n._dbInfo,m,(function(t,o){if(t)return r(t);try{var i=o.objectStore(n._dbInfo.storeName).openKeyCursor(),a=[];i.onsuccess=function(){var n=i.result;n?(a.push(n.key),n.continue()):e(a)},i.onerror=function(){r(i.error)}}catch(u){r(u)}}))})).catch(r)}));return s(r,e),r}function H(e,n){n=v.apply(this,arguments);var r=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName);var t,o=this;if(e.name){var i=e.name===r.name&&o._dbInfo.db?f.resolve(o._dbInfo.db):R(e).then((function(n){var r=p[e.name],t=r.forages;r.db=n;for(var o=0;o<t.length;o++)t[o]._dbInfo.db=n;return n}));t=e.storeName?i.then((function(n){if(n.objectStoreNames.contains(e.storeName)){var r=n.version+1;S(e);var t=p[e.name],o=t.forages;n.close();for(var i=0;i<o.length;i++){var u=o[i];u._dbInfo.db=null,u._dbInfo.version=r}return new f((function(n,t){var o=a.open(e.name,r);o.onerror=function(e){o.result.close(),t(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),n(e)}})).then((function(e){t.db=e;for(var n=0;n<o.length;n++){var r=o[n];r._dbInfo.db=e,E(r._dbInfo)}})).catch((function(n){throw(j(e,n)||f.resolve()).catch((function(){})),n}))}})):i.then((function(n){S(e);var r=p[e.name],t=r.forages;n.close();for(var o=0;o<t.length;o++)t[o]._dbInfo.db=null;return new f((function(n,r){var t=a.deleteDatabase(e.name);t.onerror=function(){var e=t.result;e&&e.close(),r(t.error)},t.onblocked=function(){},t.onsuccess=function(){var e=t.result;e&&e.close(),n(e)}})).then((function(e){r.db=e;for(var n=0;n<t.length;n++)E(t[n]._dbInfo)})).catch((function(n){throw(j(e,n)||f.resolve()).catch((function(){})),n}))}))}else t=f.reject("Invalid arguments");return s(t,n),t}var Q={_driver:"asyncStorage",_initStorage:L,_support:u(),iterate:z,getItem:M,setItem:P,removeItem:q,clear:U,length:W,key:G,keys:K,dropInstance:H};function X(){return"function"==typeof openDatabase}var J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y="~~local_forage_type~",V=/^~~local_forage_type~([^~]+)~/,Z="__lfsc__:",$=Z.length,ee="arbf",ne="blob",re="si08",te="ui08",oe="uic8",ie="si16",ae="si32",ue="ur16",ce="ui32",fe="fl32",se="fl64",le=$+ee.length,de=Object.prototype.toString;function ve(e){var n,r,t,o,i,a=.75*e.length,u=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var f=new ArrayBuffer(a),s=new Uint8Array(f);for(n=0;n<u;n+=4)r=J.indexOf(e[n]),t=J.indexOf(e[n+1]),o=J.indexOf(e[n+2]),i=J.indexOf(e[n+3]),s[c++]=r<<2|t>>4,s[c++]=(15&t)<<4|o>>2,s[c++]=(3&o)<<6|63&i;return f}function he(e){var n,r=new Uint8Array(e),t="";for(n=0;n<r.length;n+=3)t+=J[r[n]>>2],t+=J[(3&r[n])<<4|r[n+1]>>4],t+=J[(15&r[n+1])<<2|r[n+2]>>6],t+=J[63&r[n+2]];return r.length%3==2?t=t.substring(0,t.length-1)+"=":r.length%3==1&&(t=t.substring(0,t.length-2)+"=="),t}function ye(e,n){var r="";if(e&&(r=de.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===de.call(e.buffer))){var t,o=Z;e instanceof ArrayBuffer?(t=e,o+=ee):(t=e.buffer,"[object Int8Array]"===r?o+=re:"[object Uint8Array]"===r?o+=te:"[object Uint8ClampedArray]"===r?o+=oe:"[object Int16Array]"===r?o+=ie:"[object Uint16Array]"===r?o+=ue:"[object Int32Array]"===r?o+=ae:"[object Uint32Array]"===r?o+=ce:"[object Float32Array]"===r?o+=fe:"[object Float64Array]"===r?o+=se:n(new Error("Failed to get type for BinaryArray"))),n(o+he(t))}else if("[object Blob]"===r){var i=new FileReader;i.onload=function(){var r=Y+e.type+"~"+he(this.result);n(Z+ne+r)},i.readAsArrayBuffer(e)}else try{n(JSON.stringify(e))}catch(a){n(null,a)}}function pe(e){if(e.substring(0,$)!==Z)return JSON.parse(e);var n,r=e.substring(le),t=e.substring($,le);if(t===ne&&V.test(r)){var o=r.match(V);n=o[1],r=r.substring(o[0].length)}var i=ve(r);switch(t){case ee:return i;case ne:return c([i],{type:n});case re:return new Int8Array(i);case te:return new Uint8Array(i);case oe:return new Uint8ClampedArray(i);case ie:return new Int16Array(i);case ue:return new Uint16Array(i);case ae:return new Int32Array(i);case ce:return new Uint32Array(i);case fe:return new Float32Array(i);case se:return new Float64Array(i);default:throw new Error("Unkown type: "+t)}}var be={serialize:ye,deserialize:pe,stringToBuffer:ve,bufferToString:he};function me(e,n,r,t){e.executeSql("CREATE TABLE IF NOT EXISTS "+n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,t)}function ge(e){var n=this,r={db:null};if(e)for(var t in e)r[t]="string"!=typeof e[t]?e[t].toString():e[t];var o=new f((function(e,t){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(o){return t(o)}r.db.transaction((function(o){me(o,r,(function(){n._dbInfo=r,e()}),(function(e,n){t(n)}))}),t)}));return r.serializer=be,o}function _e(e,n,r,t,o,i){e.executeSql(r,t,o,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[n.storeName],(function(e,u){u.rows.length?i(e,a):me(e,n,(function(){e.executeSql(r,t,o,i)}),i)}),i):i(e,a)}),i)}function Ie(e,n){var r=this;e=d(e);var t=new f((function(n,t){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){_e(r,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,r){var t=r.rows.length?r.rows.item(0).value:null;t&&(t=o.serializer.deserialize(t)),n(t)}),(function(e,n){t(n)}))}))})).catch(t)}));return s(t,n),t}function we(e,n){var r=this,t=new f((function(n,t){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){_e(r,o,"SELECT * FROM "+o.storeName,[],(function(r,t){for(var i=t.rows,a=i.length,u=0;u<a;u++){var c=i.item(u),f=c.value;if(f&&(f=o.serializer.deserialize(f)),void 0!==(f=e(f,c.key,u+1)))return void n(f)}n()}),(function(e,n){t(n)}))}))})).catch(t)}));return s(t,n),t}function Se(e,n,r,t){var o=this;e=d(e);var i=new f((function(i,a){o.ready().then((function(){void 0===n&&(n=null);var u=n,c=o._dbInfo;c.serializer.serialize(n,(function(n,f){f?a(f):c.db.transaction((function(r){_e(r,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,n],(function(){i(u)}),(function(e,n){a(n)}))}),(function(n){if(n.code===n.QUOTA_ERR){if(t>0)return void i(Se.apply(o,[e,u,r,t-1]));a(n)}}))}))})).catch(a)}));return s(i,r),i}function Ee(e,n,r){return Se.apply(this,[e,n,r,1])}function je(e,n){var r=this;e=d(e);var t=new f((function(n,t){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){_e(r,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],(function(){n()}),(function(e,n){t(n)}))}))})).catch(t)}));return s(t,n),t}function Ne(e){var n=this,r=new f((function(e,r){n.ready().then((function(){var t=n._dbInfo;t.db.transaction((function(n){_e(n,t,"DELETE FROM "+t.storeName,[],(function(){e()}),(function(e,n){r(n)}))}))})).catch(r)}));return s(r,e),r}function Re(e){var n=this,r=new f((function(e,r){n.ready().then((function(){var t=n._dbInfo;t.db.transaction((function(n){_e(n,t,"SELECT COUNT(key) as c FROM "+t.storeName,[],(function(n,r){var t=r.rows.item(0).c;e(t)}),(function(e,n){r(n)}))}))})).catch(r)}));return s(r,e),r}function Ae(e,n){var r=this,t=new f((function(n,t){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){_e(r,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,r){var t=r.rows.length?r.rows.item(0).key:null;n(t)}),(function(e,n){t(n)}))}))})).catch(t)}));return s(t,n),t}function De(e){var n=this,r=new f((function(e,r){n.ready().then((function(){var t=n._dbInfo;t.db.transaction((function(n){_e(n,t,"SELECT key FROM "+t.storeName,[],(function(n,r){for(var t=[],o=0;o<r.rows.length;o++)t.push(r.rows.item(o).key);e(t)}),(function(e,n){r(n)}))}))})).catch(r)}));return s(r,e),r}function Oe(e){return new f((function(n,r){e.transaction((function(t){t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(r,t){for(var o=[],i=0;i<t.rows.length;i++)o.push(t.rows.item(i).name);n({db:e,storeNames:o})}),(function(e,n){r(n)}))}),(function(e){r(e)}))}))}function xe(e,n){n=v.apply(this,arguments);var r=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName);var t,o=this;return s(t=e.name?new f((function(n){var t;t=e.name===r.name?o._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?n({db:t,storeNames:[e.storeName]}):n(Oe(t))})).then((function(e){return new f((function(n,r){e.db.transaction((function(t){function o(e){return new f((function(n,r){t.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){n()}),(function(e,n){r(n)}))}))}for(var i=[],a=0,u=e.storeNames.length;a<u;a++)i.push(o(e.storeNames[a]));f.all(i).then((function(){n()})).catch((function(e){r(e)}))}),(function(e){r(e)}))}))})):f.reject("Invalid arguments"),n),t}var Be={_driver:"webSQLStorage",_initStorage:ge,_support:X(),iterate:we,getItem:Ie,setItem:Ee,removeItem:je,clear:Ne,length:Re,key:Ae,keys:De,dropInstance:xe};function ke(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}function Ce(e,n){var r=e.name+"/";return e.storeName!==n.storeName&&(r+=e.storeName+"/"),r}function Te(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(n){return!0}}function Fe(){return!Te()||localStorage.length>0}function Le(e){var n=this,r={};if(e)for(var t in e)r[t]=e[t];return r.keyPrefix=Ce(e,n._defaultConfig),Fe()?(n._dbInfo=r,r.serializer=be,f.resolve()):f.reject()}function Me(e){var n=this,r=n.ready().then((function(){for(var e=n._dbInfo.keyPrefix,r=localStorage.length-1;r>=0;r--){var t=localStorage.key(r);0===t.indexOf(e)&&localStorage.removeItem(t)}}));return s(r,e),r}function ze(e,n){var r=this;e=d(e);var t=r.ready().then((function(){var n=r._dbInfo,t=localStorage.getItem(n.keyPrefix+e);return t&&(t=n.serializer.deserialize(t)),t}));return s(t,n),t}function Pe(e,n){var r=this,t=r.ready().then((function(){for(var n=r._dbInfo,t=n.keyPrefix,o=t.length,i=localStorage.length,a=1,u=0;u<i;u++){var c=localStorage.key(u);if(0===c.indexOf(t)){var f=localStorage.getItem(c);if(f&&(f=n.serializer.deserialize(f)),void 0!==(f=e(f,c.substring(o),a++)))return f}}}));return s(t,n),t}function qe(e,n){var r=this,t=r.ready().then((function(){var n,t=r._dbInfo;try{n=localStorage.key(e)}catch(o){n=null}return n&&(n=n.substring(t.keyPrefix.length)),n}));return s(t,n),t}function Ue(e){var n=this,r=n.ready().then((function(){for(var e=n._dbInfo,r=localStorage.length,t=[],o=0;o<r;o++){var i=localStorage.key(o);0===i.indexOf(e.keyPrefix)&&t.push(i.substring(e.keyPrefix.length))}return t}));return s(r,e),r}function We(e){var n=this.keys().then((function(e){return e.length}));return s(n,e),n}function Ge(e,n){var r=this;e=d(e);var t=r.ready().then((function(){var n=r._dbInfo;localStorage.removeItem(n.keyPrefix+e)}));return s(t,n),t}function Ke(e,n,r){var t=this;e=d(e);var o=t.ready().then((function(){void 0===n&&(n=null);var r=n;return new f((function(o,i){var a=t._dbInfo;a.serializer.serialize(n,(function(n,t){if(t)i(t);else try{localStorage.setItem(a.keyPrefix+e,n),o(r)}catch(u){"QuotaExceededError"!==u.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==u.name||i(u),i(u)}}))}))}));return s(o,r),o}function He(e,n){if(n=v.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var r=this.config();e.name=e.name||r.name,e.storeName=e.storeName||r.storeName}var t,o=this;return s(t=e.name?new f((function(n){e.storeName?n(Ce(e,o._defaultConfig)):n(e.name+"/")})).then((function(e){for(var n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}})):f.reject("Invalid arguments"),n),t}var Qe={_driver:"localStorageWrapper",_initStorage:Le,_support:ke(),iterate:Pe,getItem:ze,setItem:Ke,removeItem:Ge,clear:Me,length:We,key:qe,keys:Ue,dropInstance:He},Xe=function(e,n){return e===n||"number"==typeof e&&"number"==typeof n&&isNaN(e)&&isNaN(n)},Je=function(e,n){for(var r=e.length,t=0;t<r;){if(Xe(e[t],n))return!0;t++}return!1},Ye=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Ve={},Ze={},$e={INDEXEDDB:Q,WEBSQL:Be,LOCALSTORAGE:Qe},en=[$e.INDEXEDDB._driver,$e.WEBSQL._driver,$e.LOCALSTORAGE._driver],nn=["dropInstance"],rn=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(nn),tn={description:"",driver:en.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function on(e,n){e[n]=function(){var r=arguments;return e.ready().then((function(){return e[n].apply(e,r)}))}}function an(){for(var e=1;e<arguments.length;e++){var n=arguments[e];if(n)for(var r in n)n.hasOwnProperty(r)&&(Ye(n[r])?arguments[0][r]=n[r].slice():arguments[0][r]=n[r])}return arguments[0]}var un=function(){function e(n){for(var r in o(this,e),$e)if($e.hasOwnProperty(r)){var t=$e[r],i=t._driver;this[r]=i,Ve[i]||this.defineDriver(t)}this._defaultConfig=an({},tn),this._config=an({},this._defaultConfig,n),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":t(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var n in e){if("storeName"===n&&(e[n]=e[n].replace(/\W/g,"_")),"version"===n&&"number"!=typeof e[n])return new Error("Database version must be a number.");this._config[n]=e[n]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,n,r){var t=new f((function(n,r){try{var t=e._driver,o=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void r(o);for(var i=rn.concat("_initStorage"),a=0,u=i.length;a<u;a++){var c=i[a];if((!Je(nn,c)||e[c])&&"function"!=typeof e[c])return void r(o)}var l=function(){for(var n=function(e){return function(){var n=new Error("Method "+e+" is not implemented by the current driver"),r=f.reject(n);return s(r,arguments[arguments.length-1]),r}},r=0,t=nn.length;r<t;r++){var o=nn[r];e[o]||(e[o]=n(o))}};l();var d=function(r){Ve[t],Ve[t]=e,Ze[t]=r,n()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(d,r):d(!!e._support):d(!0)}catch(v){r(v)}}));return l(t,n,r),t},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,n,r){var t=Ve[e]?f.resolve(Ve[e]):f.reject(new Error("Driver not found."));return l(t,n,r),t},e.prototype.getSerializer=function(e){var n=f.resolve(be);return l(n,e),n},e.prototype.ready=function(e){var n=this,r=n._driverSet.then((function(){return null===n._ready&&(n._ready=n._initDriver()),n._ready}));return l(r,e,e),r},e.prototype.setDriver=function(e,n,r){var t=this;Ye(e)||(e=[e]);var o=this._getSupportedDrivers(e);function i(){t._config.driver=t.driver()}function a(e){return t._extend(e),i(),t._ready=t._initStorage(t._config),t._ready}function u(e){return function(){var n=0;function r(){for(;n<e.length;){var o=e[n];return n++,t._dbInfo=null,t._ready=null,t.getDriver(o).then(a).catch(r)}i();var u=new Error("No available storage method found.");return t._driverSet=f.reject(u),t._driverSet}return r()}}var c=null!==this._driverSet?this._driverSet.catch((function(){return f.resolve()})):f.resolve();return this._driverSet=c.then((function(){var e=o[0];return t._dbInfo=null,t._ready=null,t.getDriver(e).then((function(e){t._driver=e._driver,i(),t._wrapLibraryMethodsWithReady(),t._initDriver=u(o)}))})).catch((function(){i();var e=new Error("No available storage method found.");return t._driverSet=f.reject(e),t._driverSet})),l(this._driverSet,n,r),this._driverSet},e.prototype.supports=function(e){return!!Ze[e]},e.prototype._extend=function(e){an(this,e)},e.prototype._getSupportedDrivers=function(e){for(var n=[],r=0,t=e.length;r<t;r++){var o=e[r];this.supports(o)&&n.push(o)}return n},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,n=rn.length;e<n;e++)on(this,rn[e])},e.prototype.createInstance=function(n){return new e(n)},e}(),cn=new un;n.exports=cn},{3:3}]},{},[4])(4)),t.exports);const i=e.getDefaultExportFromCjs(o);exports.commonjsRequire=n,exports.localforage=i;
|
|
Binary file
|