Version Description
- 2018-05-02
Download this release
Release Info
Developer | codeinwp |
Plugin | Revive Old Posts – Auto Post to Social Media |
Version | 8.0.4 |
Comparing to | |
See all releases |
Code changes from version 8.0.3 to 8.0.4
- CHANGELOG.md +9 -0
- assets/css/rop_core.css +4 -2
- assets/js/build/dashboard.min.js +26 -0
- assets/js/build/exclude.min.js +16 -0
- assets/js/build/rop.js +0 -12475
CHANGELOG.md
CHANGED
@@ -1,4 +1,13 @@
|
|
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
### v8.0.3 - 2018-04-28
|
3 |
**Changes:**
|
4 |
* Fix schedule synchronization issues.
|
1 |
|
2 |
+
### v8.0.4 - 2018-05-02
|
3 |
+
**Changes:**
|
4 |
+
* Fix issue with UTM tags and shortner consistency.
|
5 |
+
* Adds Exclude Posts as a separate page.
|
6 |
+
* Fix issue with sharing stopped after the first share.
|
7 |
+
* Fix timeline events refresh when the min interval changes.
|
8 |
+
* Fix Facebook page accounts not showing in certain environments.
|
9 |
+
* Adds remove account feature for permanently delete an account from the list.
|
10 |
+
|
11 |
### v8.0.3 - 2018-04-28
|
12 |
**Changes:**
|
13 |
* Fix schedule synchronization issues.
|
assets/css/rop_core.css
CHANGED
@@ -4004,6 +4004,7 @@ a.active {
|
|
4004 |
|
4005 |
.service_account_image {
|
4006 |
width: 150%;
|
|
|
4007 |
margin-top: -25%;
|
4008 |
margin-left: -25%;
|
4009 |
border-radius: 50%;
|
@@ -4437,7 +4438,6 @@ a.active {
|
|
4437 |
content: "";
|
4438 |
-webkit-animation: move 2s linear infinite;
|
4439 |
animation: move 2s linear infinite;
|
4440 |
-
animation: move 2s linear infinite;
|
4441 |
}
|
4442 |
|
4443 |
.upsell a {
|
@@ -4451,10 +4451,12 @@ a.active {
|
|
4451 |
pointer-events: auto;
|
4452 |
}
|
4453 |
|
4454 |
-
.toplevel_page_TweetOldPost #wpbody-content >
|
|
|
4455 |
display: none !important;
|
4456 |
}
|
4457 |
|
|
|
4458 |
.toplevel_page_TweetOldPost #wpbody-content > #rop_core {
|
4459 |
display: block !important;
|
4460 |
}
|
4004 |
|
4005 |
.service_account_image {
|
4006 |
width: 150%;
|
4007 |
+
max-width: 150% !important;
|
4008 |
margin-top: -25%;
|
4009 |
margin-left: -25%;
|
4010 |
border-radius: 50%;
|
4438 |
content: "";
|
4439 |
-webkit-animation: move 2s linear infinite;
|
4440 |
animation: move 2s linear infinite;
|
|
|
4441 |
}
|
4442 |
|
4443 |
.upsell a {
|
4451 |
pointer-events: auto;
|
4452 |
}
|
4453 |
|
4454 |
+
.toplevel_page_TweetOldPost #wpbody-content > *,
|
4455 |
+
.revive-old-posts_page_rop_content_filters #wpbody-content > * {
|
4456 |
display: none !important;
|
4457 |
}
|
4458 |
|
4459 |
+
.revive-old-posts_page_rop_content_filters #wpbody-content > #rop_content_filters,
|
4460 |
.toplevel_page_TweetOldPost #wpbody-content > #rop_core {
|
4461 |
display: block !important;
|
4462 |
}
|
assets/js/build/dashboard.min.js
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
!function(t){function e(a){if(n[a])return n[a].exports;var s=n[a]={i:a,l:!1,exports:{}};return t[a].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,a){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:a})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=202)}([function(t,e,n){(function(t){!function(e,n){t.exports=n()}(0,function(){"use strict";function e(){return xa.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function i(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function r(t){return void 0===t}function o(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function d(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function u(t,e){var n,a=[];for(n=0;n<t.length;++n)a.push(e(t[n],n));return a}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t,e){for(var n in e)l(e,n)&&(t[n]=e[n]);return l(e,"toString")&&(t.toString=e.toString),l(e,"valueOf")&&(t.valueOf=e.valueOf),t}function _(t,e,n,a){return we(t,e,n,a,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(t){return null==t._pf&&(t._pf=m()),t._pf}function h(t){if(null==t._isValid){var e=f(t),n=Sa.call(e.parsedDateParts,function(t){return null!=t}),a=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(a=a&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return a;t._isValid=a}return t._isValid}function p(t){var e=_(NaN);return null!=t?c(f(e),t):f(e).userInvalidated=!0,e}function v(t,e){var n,a,s;if(r(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),r(e._i)||(t._i=e._i),r(e._f)||(t._f=e._f),r(e._l)||(t._l=e._l),r(e._strict)||(t._strict=e._strict),r(e._tzm)||(t._tzm=e._tzm),r(e._isUTC)||(t._isUTC=e._isUTC),r(e._offset)||(t._offset=e._offset),r(e._pf)||(t._pf=f(e)),r(e._locale)||(t._locale=e._locale),Ha.length>0)for(n=0;n<Ha.length;n++)a=Ha[n],s=e[a],r(s)||(t[a]=s);return t}function y(t){v(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===ja&&(ja=!0,e.updateOffset(this),ja=!1)}function g(t){return t instanceof y||null!=t&&null!=t._isAMomentObject}function M(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function L(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=M(e)),n}function b(t,e,n){var a,s=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),r=0;for(a=0;a<s;a++)(n&&t[a]!==e[a]||!n&&L(t[a])!==L(e[a]))&&r++;return r+i}function Y(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,n){var a=!0;return c(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),a){for(var s,i=[],r=0;r<arguments.length;r++){if(s="","object"==typeof arguments[r]){s+="\n["+r+"] ";for(var o in arguments[0])s+=o+": "+arguments[0][o]+", ";s=s.slice(0,-2)}else s=arguments[r];i.push(s)}Y(t+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),a=!1}return n.apply(this,arguments)},n)}function w(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),Oa[t]||(Y(n),Oa[t]=!0)}function D(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function T(t){var e,n;for(n in t)e=t[n],D(e)?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function x(t,e){var n,a=c({},t);for(n in e)l(e,n)&&(s(t[n])&&s(e[n])?(a[n]={},c(a[n],t[n]),c(a[n],e[n])):null!=e[n]?a[n]=e[n]:delete a[n]);for(n in t)l(t,n)&&!l(e,n)&&s(t[n])&&(a[n]=c({},a[n]));return a}function S(t){null!=t&&this.set(t)}function H(t,e,n){var a=this._calendar[t]||this._calendar.sameElse;return D(a)?a.call(e,n):a}function j(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function O(){return this._invalidDate}function A(t){return this._ordinal.replace("%d",t)}function P(t,e,n,a){var s=this._relativeTime[n];return D(s)?s(t,e,n,a):s.replace(/%d/i,t)}function E(t,e){var n=this._relativeTime[t>0?"future":"past"];return D(n)?n(e):n.replace(/%s/i,e)}function $(t,e){var n=t.toLowerCase();Wa[n]=Wa[n+"s"]=Wa[e]=t}function C(t){return"string"==typeof t?Wa[t]||Wa[t.toLowerCase()]:void 0}function W(t){var e,n,a={};for(n in t)l(t,n)&&(e=C(n))&&(a[e]=t[n]);return a}function F(t,e){Fa[t]=e}function N(t){var e=[];for(var n in t)e.push({unit:n,priority:Fa[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function I(t,e,n){var a=""+Math.abs(t),s=e-a.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+a}function z(t,e,n,a){var s=a;"string"==typeof a&&(s=function(){return this[a]()}),t&&(Ra[t]=s),e&&(Ra[e[0]]=function(){return I(s.apply(this,arguments),e[1],e[2])}),n&&(Ra[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function R(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function J(t){var e,n,a=t.match(Na);for(e=0,n=a.length;e<n;e++)Ra[a[e]]?a[e]=Ra[a[e]]:a[e]=R(a[e]);return function(e){var s,i="";for(s=0;s<n;s++)i+=D(a[s])?a[s].call(e,t):a[s];return i}}function V(t,e){return t.isValid()?(e=U(e,t.localeData()),za[e]=za[e]||J(e),za[e](t)):t.localeData().invalidDate()}function U(t,e){function n(t){return e.longDateFormat(t)||t}var a=5;for(Ia.lastIndex=0;a>=0&&Ia.test(t);)t=t.replace(Ia,n),Ia.lastIndex=0,a-=1;return t}function G(t,e,n){os[t]=D(e)?e:function(t,a){return t&&n?n:e}}function q(t,e){return l(os,t)?os[t](e._strict,e._locale):new RegExp(B(t))}function B(t){return K(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,a,s){return e||n||a||s}))}function K(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function X(t,e){var n,a=e;for("string"==typeof t&&(t=[t]),o(e)&&(a=function(t,n){n[e]=L(t)}),n=0;n<t.length;n++)ds[t[n]]=a}function Z(t,e){X(t,function(t,n,a,s){a._w=a._w||{},e(t,a._w,a,s)})}function Q(t,e,n){null!=e&&l(ds,t)&&ds[t](e,n._a,n,t)}function tt(t){return et(t)?366:365}function et(t){return t%4==0&&t%100!=0||t%400==0}function nt(){return et(this.year())}function at(t,n){return function(a){return null!=a?(it(this,t,a),e.updateOffset(this,n),this):st(this,t)}}function st(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function it(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&et(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),ut(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function rt(t){return t=C(t),D(this[t])?this[t]():this}function ot(t,e){if("object"==typeof t){t=W(t);for(var n=N(t),a=0;a<n.length;a++)this[n[a].unit](t[n[a].unit])}else if(t=C(t),D(this[t]))return this[t](e);return this}function dt(t,e){return(t%e+e)%e}function ut(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=dt(e,12);return t+=(e-n)/12,1===n?et(t)?29:28:31-n%7%2}function lt(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ms).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone}function ct(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ms.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function _t(t,e,n){var a,s,i,r=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)i=_([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===e?(s=ys.call(this._shortMonthsParse,r),-1!==s?s:null):(s=ys.call(this._longMonthsParse,r),-1!==s?s:null):"MMM"===e?-1!==(s=ys.call(this._shortMonthsParse,r))?s:(s=ys.call(this._longMonthsParse,r),-1!==s?s:null):-1!==(s=ys.call(this._longMonthsParse,r))?s:(s=ys.call(this._shortMonthsParse,r),-1!==s?s:null)}function mt(t,e,n){var a,s,i;if(this._monthsParseExact)return _t.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(s=_([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(i="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[a]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[a].test(t))return a;if(n&&"MMM"===e&&this._shortMonthsParse[a].test(t))return a;if(!n&&this._monthsParse[a].test(t))return a}}function ft(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=L(e);else if(e=t.localeData().monthsParse(e),!o(e))return t;return n=Math.min(t.date(),ut(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function ht(t){return null!=t?(ft(this,t),e.updateOffset(this,!0),this):st(this,"Month")}function pt(){return ut(this.year(),this.month())}function vt(t){return this._monthsParseExact?(l(this,"_monthsRegex")||gt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Ys),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function yt(t){return this._monthsParseExact?(l(this,"_monthsRegex")||gt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=ks),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function gt(){function t(t,e){return e.length-t.length}var e,n,a=[],s=[],i=[];for(e=0;e<12;e++)n=_([2e3,e]),a.push(this.monthsShort(n,"")),s.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(a.sort(t),s.sort(t),i.sort(t),e=0;e<12;e++)a[e]=K(a[e]),s[e]=K(s[e]);for(e=0;e<24;e++)i[e]=K(i[e]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Mt(t,e,n,a,s,i,r){var o=new Date(t,e,n,a,s,i,r);return t<100&&t>=0&&isFinite(o.getFullYear())&&o.setFullYear(t),o}function Lt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function bt(t,e,n){var a=7+e-n;return-(7+Lt(t,0,a).getUTCDay()-e)%7+a-1}function Yt(t,e,n,a,s){var i,r,o=(7+n-a)%7,d=bt(t,a,s),u=1+7*(e-1)+o+d;return u<=0?(i=t-1,r=tt(i)+u):u>tt(t)?(i=t+1,r=u-tt(t)):(i=t,r=u),{year:i,dayOfYear:r}}function kt(t,e,n){var a,s,i=bt(t.year(),e,n),r=Math.floor((t.dayOfYear()-i-1)/7)+1;return r<1?(s=t.year()-1,a=r+wt(s,e,n)):r>wt(t.year(),e,n)?(a=r-wt(t.year(),e,n),s=t.year()+1):(s=t.year(),a=r),{week:a,year:s}}function wt(t,e,n){var a=bt(t,e,n),s=bt(t+1,e,n);return(tt(t)-a+s)/7}function Dt(t){return kt(t,this._week.dow,this._week.doy).week}function Tt(){return this._week.dow}function xt(){return this._week.doy}function St(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ht(t){var e=kt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function jt(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Ot(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function At(t,e){return t?a(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:a(this._weekdays)?this._weekdays:this._weekdays.standalone}function Pt(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Et(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function $t(t,e,n){var a,s,i,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)i=_([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===e?(s=ys.call(this._weekdaysParse,r),-1!==s?s:null):"ddd"===e?(s=ys.call(this._shortWeekdaysParse,r),-1!==s?s:null):(s=ys.call(this._minWeekdaysParse,r),-1!==s?s:null):"dddd"===e?-1!==(s=ys.call(this._weekdaysParse,r))?s:-1!==(s=ys.call(this._shortWeekdaysParse,r))?s:(s=ys.call(this._minWeekdaysParse,r),-1!==s?s:null):"ddd"===e?-1!==(s=ys.call(this._shortWeekdaysParse,r))?s:-1!==(s=ys.call(this._weekdaysParse,r))?s:(s=ys.call(this._minWeekdaysParse,r),-1!==s?s:null):-1!==(s=ys.call(this._minWeekdaysParse,r))?s:-1!==(s=ys.call(this._weekdaysParse,r))?s:(s=ys.call(this._shortWeekdaysParse,r),-1!==s?s:null)}function Ct(t,e,n){var a,s,i;if(this._weekdaysParseExact)return $t.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(s=_([2e3,1]).day(a),n&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(s,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(s,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(s,"").replace(".",".?")+"$","i")),this._weekdaysParse[a]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[a]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[a].test(t))return a;if(n&&"ddd"===e&&this._shortWeekdaysParse[a].test(t))return a;if(n&&"dd"===e&&this._minWeekdaysParse[a].test(t))return a;if(!n&&this._weekdaysParse[a].test(t))return a}}function Wt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=jt(t,this.localeData()),this.add(t-e,"d")):e}function Ft(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Nt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ot(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function It(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ss),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function zt(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Hs),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Rt(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=js),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jt(){function t(t,e){return e.length-t.length}var e,n,a,s,i,r=[],o=[],d=[],u=[];for(e=0;e<7;e++)n=_([2e3,1]).day(e),a=this.weekdaysMin(n,""),s=this.weekdaysShort(n,""),i=this.weekdays(n,""),r.push(a),o.push(s),d.push(i),u.push(a),u.push(s),u.push(i);for(r.sort(t),o.sort(t),d.sort(t),u.sort(t),e=0;e<7;e++)o[e]=K(o[e]),d[e]=K(d[e]),u[e]=K(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Vt(){return this.hours()%12||12}function Ut(){return this.hours()||24}function Gt(t,e){z(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function qt(t,e){return e._meridiemParse}function Bt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Kt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Xt(t){return t?t.toLowerCase().replace("_","-"):t}function Zt(t){for(var e,n,a,s,i=0;i<t.length;){for(s=Xt(t[i]).split("-"),e=s.length,n=Xt(t[i+1]),n=n?n.split("-"):null;e>0;){if(a=Qt(s.slice(0,e).join("-")))return a;if(n&&n.length>=e&&b(s,n,!0)>=e-1)break;e--}i++}return Os}function Qt(e){var a=null;if(!$s[e]&&void 0!==t&&t&&t.exports)try{a=Os._abbr;n(281)("./"+e),te(a)}catch(t){}return $s[e]}function te(t,e){var n;return t&&(n=r(e)?ae(t):ee(t,e),n?Os=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Os._abbr}function ee(t,e){if(null!==e){var n,a=Es;if(e.abbr=t,null!=$s[t])w("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=$s[t]._config;else if(null!=e.parentLocale)if(null!=$s[e.parentLocale])a=$s[e.parentLocale]._config;else{if(null==(n=Qt(e.parentLocale)))return Cs[e.parentLocale]||(Cs[e.parentLocale]=[]),Cs[e.parentLocale].push({name:t,config:e}),null;a=n._config}return $s[t]=new S(x(a,e)),Cs[t]&&Cs[t].forEach(function(t){ee(t.name,t.config)}),te(t),$s[t]}return delete $s[t],null}function ne(t,e){if(null!=e){var n,a,s=Es;a=Qt(t),null!=a&&(s=a._config),e=x(s,e),n=new S(e),n.parentLocale=$s[t],$s[t]=n,te(t)}else null!=$s[t]&&(null!=$s[t].parentLocale?$s[t]=$s[t].parentLocale:null!=$s[t]&&delete $s[t]);return $s[t]}function ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Os;if(!a(t)){if(e=Qt(t))return e;t=[t]}return Zt(t)}function se(){return Aa($s)}function ie(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[ls]<0||n[ls]>11?ls:n[cs]<1||n[cs]>ut(n[us],n[ls])?cs:n[_s]<0||n[_s]>24||24===n[_s]&&(0!==n[ms]||0!==n[fs]||0!==n[hs])?_s:n[ms]<0||n[ms]>59?ms:n[fs]<0||n[fs]>59?fs:n[hs]<0||n[hs]>999?hs:-1,f(t)._overflowDayOfYear&&(e<us||e>cs)&&(e=cs),f(t)._overflowWeeks&&-1===e&&(e=ps),f(t)._overflowWeekday&&-1===e&&(e=vs),f(t).overflow=e),t}function re(t,e,n){return null!=t?t:null!=e?e:n}function oe(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function de(t){var e,n,a,s,i,r=[];if(!t._d){for(a=oe(t),t._w&&null==t._a[cs]&&null==t._a[ls]&&ue(t),null!=t._dayOfYear&&(i=re(t._a[us],a[us]),(t._dayOfYear>tt(i)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=Lt(i,0,t._dayOfYear),t._a[ls]=n.getUTCMonth(),t._a[cs]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=r[e]=a[e];for(;e<7;e++)t._a[e]=r[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[_s]&&0===t._a[ms]&&0===t._a[fs]&&0===t._a[hs]&&(t._nextDay=!0,t._a[_s]=0),t._d=(t._useUTC?Lt:Mt).apply(null,r),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[_s]=24),t._w&&void 0!==t._w.d&&t._w.d!==s&&(f(t).weekdayMismatch=!0)}}function ue(t){var e,n,a,s,i,r,o,d;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)i=1,r=4,n=re(e.GG,t._a[us],kt(De(),1,4).year),a=re(e.W,1),((s=re(e.E,1))<1||s>7)&&(d=!0);else{i=t._locale._week.dow,r=t._locale._week.doy;var u=kt(De(),i,r);n=re(e.gg,t._a[us],u.year),a=re(e.w,u.week),null!=e.d?((s=e.d)<0||s>6)&&(d=!0):null!=e.e?(s=e.e+i,(e.e<0||e.e>6)&&(d=!0)):s=i}a<1||a>wt(n,i,r)?f(t)._overflowWeeks=!0:null!=d?f(t)._overflowWeekday=!0:(o=Yt(n,a,s,i,r),t._a[us]=o.year,t._dayOfYear=o.dayOfYear)}function le(t){var e,n,a,s,i,r,o=t._i,d=Ws.exec(o)||Fs.exec(o);if(d){for(f(t).iso=!0,e=0,n=Is.length;e<n;e++)if(Is[e][1].exec(d[1])){s=Is[e][0],a=!1!==Is[e][2];break}if(null==s)return void(t._isValid=!1);if(d[3]){for(e=0,n=zs.length;e<n;e++)if(zs[e][1].exec(d[3])){i=(d[2]||" ")+zs[e][0];break}if(null==i)return void(t._isValid=!1)}if(!a&&null!=i)return void(t._isValid=!1);if(d[4]){if(!Ns.exec(d[4]))return void(t._isValid=!1);r="Z"}t._f=s+(i||"")+(r||""),ye(t)}else t._isValid=!1}function ce(t,e,n,a,s,i){var r=[_e(t),bs.indexOf(e),parseInt(n,10),parseInt(a,10),parseInt(s,10)];return i&&r.push(parseInt(i,10)),r}function _e(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function me(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function fe(t,e,n){if(t){if(Ts.indexOf(t)!==new Date(e[0],e[1],e[2]).getDay())return f(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function he(t,e,n){if(t)return Vs[t];if(e)return 0;var a=parseInt(n,10),s=a%100;return(a-s)/100*60+s}function pe(t){var e=Js.exec(me(t._i));if(e){var n=ce(e[4],e[3],e[2],e[5],e[6],e[7]);if(!fe(e[1],n,t))return;t._a=n,t._tzm=he(e[8],e[9],e[10]),t._d=Lt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function ve(t){var n=Rs.exec(t._i);if(null!==n)return void(t._d=new Date(+n[1]));le(t),!1===t._isValid&&(delete t._isValid,pe(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}function ye(t){if(t._f===e.ISO_8601)return void le(t);if(t._f===e.RFC_2822)return void pe(t);t._a=[],f(t).empty=!0;var n,a,s,i,r,o=""+t._i,d=o.length,u=0;for(s=U(t._f,t._locale).match(Na)||[],n=0;n<s.length;n++)i=s[n],a=(o.match(q(i,t))||[])[0],a&&(r=o.substr(0,o.indexOf(a)),r.length>0&&f(t).unusedInput.push(r),o=o.slice(o.indexOf(a)+a.length),u+=a.length),Ra[i]?(a?f(t).empty=!1:f(t).unusedTokens.push(i),Q(i,a,t)):t._strict&&!a&&f(t).unusedTokens.push(i);f(t).charsLeftOver=d-u,o.length>0&&f(t).unusedInput.push(o),t._a[_s]<=12&&!0===f(t).bigHour&&t._a[_s]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[_s]=ge(t._locale,t._a[_s],t._meridiem),de(t),ie(t)}function ge(t,e,n){var a;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(a=t.isPM(n),a&&e<12&&(e+=12),a||12!==e||(e=0),e):e}function Me(t){var e,n,a,s,i;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;s<t._f.length;s++)i=0,e=v({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[s],ye(e),h(e)&&(i+=f(e).charsLeftOver,i+=10*f(e).unusedTokens.length,f(e).score=i,(null==a||i<a)&&(a=i,n=e));c(t,n||e)}function Le(t){if(!t._d){var e=W(t._i);t._a=u([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),de(t)}}function be(t){var e=new y(ie(Ye(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Ye(t){var e=t._i,n=t._f;return t._locale=t._locale||ae(t._l),null===e||void 0===n&&""===e?p({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),g(e)?new y(ie(e)):(d(e)?t._d=e:a(n)?Me(t):n?ye(t):ke(t),h(t)||(t._d=null),t))}function ke(t){var n=t._i;r(n)?t._d=new Date(e.now()):d(n)?t._d=new Date(n.valueOf()):"string"==typeof n?ve(t):a(n)?(t._a=u(n.slice(0),function(t){return parseInt(t,10)}),de(t)):s(n)?Le(t):o(n)?t._d=new Date(n):e.createFromInputFallback(t)}function we(t,e,n,r,o){var d={};return!0!==n&&!1!==n||(r=n,n=void 0),(s(t)&&i(t)||a(t)&&0===t.length)&&(t=void 0),d._isAMomentObject=!0,d._useUTC=d._isUTC=o,d._l=n,d._i=t,d._f=e,d._strict=r,be(d)}function De(t,e,n,a){return we(t,e,n,a,!1)}function Te(t,e){var n,s;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return De();for(n=e[0],s=1;s<e.length;++s)e[s].isValid()&&!e[s][t](n)||(n=e[s]);return n}function xe(){return Te("isBefore",[].slice.call(arguments,0))}function Se(){return Te("isAfter",[].slice.call(arguments,0))}function He(t){for(var e in t)if(-1===ys.call(Bs,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,a=0;a<Bs.length;++a)if(t[Bs[a]]){if(n)return!1;parseFloat(t[Bs[a]])!==L(t[Bs[a]])&&(n=!0)}return!0}function je(){return this._isValid}function Oe(){return Xe(NaN)}function Ae(t){var e=W(t),n=e.year||0,a=e.quarter||0,s=e.month||0,i=e.week||0,r=e.day||0,o=e.hour||0,d=e.minute||0,u=e.second||0,l=e.millisecond||0;this._isValid=He(e),this._milliseconds=+l+1e3*u+6e4*d+1e3*o*60*60,this._days=+r+7*i,this._months=+s+3*a+12*n,this._data={},this._locale=ae(),this._bubble()}function Pe(t){return t instanceof Ae}function Ee(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function $e(t,e){z(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+I(~~(t/60),2)+e+I(~~t%60,2)})}function Ce(t,e){var n=(e||"").match(t);if(null===n)return null;var a=n[n.length-1]||[],s=(a+"").match(Ks)||["-",0,0],i=60*s[1]+L(s[2]);return 0===i?0:"+"===s[0]?i:-i}function We(t,n){var a,s;return n._isUTC?(a=n.clone(),s=(g(t)||d(t)?t.valueOf():De(t).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+s),e.updateOffset(a,!1),a):De(t).local()}function Fe(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ne(t,n,a){var s,i=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ce(ss,t)))return this}else Math.abs(t)<16&&!a&&(t*=60);return!this._isUTC&&n&&(s=Fe(this)),this._offset=t,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==t&&(!n||this._changeInProgress?nn(this,Xe(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Fe(this)}function Ie(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function ze(t){return this.utcOffset(0,t)}function Re(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Fe(this),"m")),this}function Je(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ce(as,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Ve(t){return!!this.isValid()&&(t=t?De(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Ue(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ge(){if(!r(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),t=Ye(t),t._a){var e=t._isUTC?_(t._a):De(t._a);this._isDSTShifted=this.isValid()&&b(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function qe(){return!!this.isValid()&&!this._isUTC}function Be(){return!!this.isValid()&&this._isUTC}function Ke(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Xe(t,e){var n,a,s,i=t,r=null;return Pe(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:o(t)?(i={},e?i[e]=t:i.milliseconds=t):(r=Xs.exec(t))?(n="-"===r[1]?-1:1,i={y:0,d:L(r[cs])*n,h:L(r[_s])*n,m:L(r[ms])*n,s:L(r[fs])*n,ms:L(Ee(1e3*r[hs]))*n}):(r=Zs.exec(t))?(n="-"===r[1]?-1:(r[1],1),i={y:Ze(r[2],n),M:Ze(r[3],n),w:Ze(r[4],n),d:Ze(r[5],n),h:Ze(r[6],n),m:Ze(r[7],n),s:Ze(r[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(s=tn(De(i.from),De(i.to)),i={},i.ms=s.milliseconds,i.M=s.months),a=new Ae(i),Pe(t)&&l(t,"_locale")&&(a._locale=t._locale),a}function Ze(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Qe(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function tn(t,e){var n;return t.isValid()&&e.isValid()?(e=We(e,t),t.isBefore(e)?n=Qe(t,e):(n=Qe(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function en(t,e){return function(n,a){var s,i;return null===a||isNaN(+a)||(w(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=a,a=i),n="string"==typeof n?+n:n,s=Xe(n,a),nn(this,s,t),this}}function nn(t,n,a,s){var i=n._milliseconds,r=Ee(n._days),o=Ee(n._months);t.isValid()&&(s=null==s||s,o&&ft(t,st(t,"Month")+o*a),r&&it(t,"Date",st(t,"Date")+r*a),i&&t._d.setTime(t._d.valueOf()+i*a),s&&e.updateOffset(t,r||o))}function an(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function sn(t,n){var a=t||De(),s=We(a,this).startOf("day"),i=e.calendarFormat(this,s)||"sameElse",r=n&&(D(n[i])?n[i].call(this,a):n[i]);return this.format(r||this.localeData().calendar(i,this,De(a)))}function rn(){return new y(this)}function on(t,e){var n=g(t)?t:De(t);return!(!this.isValid()||!n.isValid())&&(e=C(r(e)?"millisecond":e),"millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function dn(t,e){var n=g(t)?t:De(t);return!(!this.isValid()||!n.isValid())&&(e=C(r(e)?"millisecond":e),"millisecond"===e?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function un(t,e,n,a){return a=a||"()",("("===a[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===a[1]?this.isBefore(e,n):!this.isAfter(e,n))}function ln(t,e){var n,a=g(t)?t:De(t);return!(!this.isValid()||!a.isValid())&&(e=C(e||"millisecond"),"millisecond"===e?this.valueOf()===a.valueOf():(n=a.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function cn(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function _n(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function mn(t,e,n){var a,s,i;if(!this.isValid())return NaN;if(a=We(t,this),!a.isValid())return NaN;switch(s=6e4*(a.utcOffset()-this.utcOffset()),e=C(e)){case"year":i=fn(this,a)/12;break;case"month":i=fn(this,a);break;case"quarter":i=fn(this,a)/3;break;case"second":i=(this-a)/1e3;break;case"minute":i=(this-a)/6e4;break;case"hour":i=(this-a)/36e5;break;case"day":i=(this-a-s)/864e5;break;case"week":i=(this-a-s)/6048e5;break;default:i=this-a}return n?i:M(i)}function fn(t,e){var n,a,s=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(s,"months");return e-i<0?(n=t.clone().add(s-1,"months"),a=(e-i)/(i-n)):(n=t.clone().add(s+1,"months"),a=(e-i)/(n-i)),-(s+a)||0}function hn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function pn(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?V(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function vn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s=e+'[")]';return this.format(n+a+"-MM-DD[T]HH:mm:ss.SSS"+s)}function yn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=V(this,t);return this.localeData().postformat(n)}function gn(t,e){return this.isValid()&&(g(t)&&t.isValid()||De(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Mn(t){return this.from(De(),t)}function Ln(t,e){return this.isValid()&&(g(t)&&t.isValid()||De(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function bn(t){return this.to(De(),t)}function Yn(t){var e;return void 0===t?this._locale._abbr:(e=ae(t),null!=e&&(this._locale=e),this)}function kn(){return this._locale}function wn(t){switch(t=C(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function Dn(t){return void 0===(t=C(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function Tn(){return this._d.valueOf()-6e4*(this._offset||0)}function xn(){return Math.floor(this.valueOf()/1e3)}function Sn(){return new Date(this.valueOf())}function Hn(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function jn(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function On(){return this.isValid()?this.toISOString():null}function An(){return h(this)}function Pn(){return c({},f(this))}function En(){return f(this).overflow}function $n(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Cn(t,e){z(0,[t,t.length],0,e)}function Wn(t){return zn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Fn(t){return zn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Nn(){return wt(this.year(),1,4)}function In(){var t=this.localeData()._week;return wt(this.year(),t.dow,t.doy)}function zn(t,e,n,a,s){var i;return null==t?kt(this,a,s).year:(i=wt(t,a,s),e>i&&(e=i),Rn.call(this,t,e,n,a,s))}function Rn(t,e,n,a,s){var i=Yt(t,e,n,a,s),r=Lt(i.year,0,i.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}function Jn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Vn(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Un(t,e){e[hs]=L(1e3*("0."+t))}function Gn(){return this._isUTC?"UTC":""}function qn(){return this._isUTC?"Coordinated Universal Time":""}function Bn(t){return De(1e3*t)}function Kn(){return De.apply(null,arguments).parseZone()}function Xn(t){return t}function Zn(t,e,n,a){var s=ae(),i=_().set(a,e);return s[n](i,t)}function Qn(t,e,n){if(o(t)&&(e=t,t=void 0),t=t||"",null!=e)return Zn(t,e,n,"month");var a,s=[];for(a=0;a<12;a++)s[a]=Zn(t,a,n,"month");return s}function ta(t,e,n,a){"boolean"==typeof t?(o(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,o(e)&&(n=e,e=void 0),e=e||"");var s=ae(),i=t?s._week.dow:0;if(null!=n)return Zn(e,(n+i)%7,a,"day");var r,d=[];for(r=0;r<7;r++)d[r]=Zn(e,(r+i)%7,a,"day");return d}function ea(t,e){return Qn(t,e,"months")}function na(t,e){return Qn(t,e,"monthsShort")}function aa(t,e,n){return ta(t,e,n,"weekdays")}function sa(t,e,n){return ta(t,e,n,"weekdaysShort")}function ia(t,e,n){return ta(t,e,n,"weekdaysMin")}function ra(){var t=this._data;return this._milliseconds=ui(this._milliseconds),this._days=ui(this._days),this._months=ui(this._months),t.milliseconds=ui(t.milliseconds),t.seconds=ui(t.seconds),t.minutes=ui(t.minutes),t.hours=ui(t.hours),t.months=ui(t.months),t.years=ui(t.years),this}function oa(t,e,n,a){var s=Xe(e,n);return t._milliseconds+=a*s._milliseconds,t._days+=a*s._days,t._months+=a*s._months,t._bubble()}function da(t,e){return oa(this,t,e,1)}function ua(t,e){return oa(this,t,e,-1)}function la(t){return t<0?Math.floor(t):Math.ceil(t)}function ca(){var t,e,n,a,s,i=this._milliseconds,r=this._days,o=this._months,d=this._data;return i>=0&&r>=0&&o>=0||i<=0&&r<=0&&o<=0||(i+=864e5*la(ma(o)+r),r=0,o=0),d.milliseconds=i%1e3,t=M(i/1e3),d.seconds=t%60,e=M(t/60),d.minutes=e%60,n=M(e/60),d.hours=n%24,r+=M(n/24),s=M(_a(r)),o+=s,r-=la(ma(s)),a=M(o/12),o%=12,d.days=r,d.months=o,d.years=a,this}function _a(t){return 4800*t/146097}function ma(t){return 146097*t/4800}function fa(t){if(!this.isValid())return NaN;var e,n,a=this._milliseconds;if("month"===(t=C(t))||"year"===t)return e=this._days+a/864e5,n=this._months+_a(e),"month"===t?n:n/12;switch(e=this._days+Math.round(ma(this._months)),t){case"week":return e/7+a/6048e5;case"day":return e+a/864e5;case"hour":return 24*e+a/36e5;case"minute":return 1440*e+a/6e4;case"second":return 86400*e+a/1e3;case"millisecond":return Math.floor(864e5*e)+a;default:throw new Error("Unknown unit "+t)}}function ha(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*L(this._months/12):NaN}function pa(t){return function(){return this.as(t)}}function va(){return Xe(this)}function ya(t){return t=C(t),this.isValid()?this[t+"s"]():NaN}function ga(t){return function(){return this.isValid()?this._data[t]:NaN}}function Ma(){return M(this.days()/7)}function La(t,e,n,a,s){return s.relativeTime(e||1,!!n,t,a)}function ba(t,e,n){var a=Xe(t).abs(),s=wi(a.as("s")),i=wi(a.as("m")),r=wi(a.as("h")),o=wi(a.as("d")),d=wi(a.as("M")),u=wi(a.as("y")),l=s<=Di.ss&&["s",s]||s<Di.s&&["ss",s]||i<=1&&["m"]||i<Di.m&&["mm",i]||r<=1&&["h"]||r<Di.h&&["hh",r]||o<=1&&["d"]||o<Di.d&&["dd",o]||d<=1&&["M"]||d<Di.M&&["MM",d]||u<=1&&["y"]||["yy",u];return l[2]=e,l[3]=+t>0,l[4]=n,La.apply(null,l)}function Ya(t){return void 0===t?wi:"function"==typeof t&&(wi=t,!0)}function ka(t,e){return void 0!==Di[t]&&(void 0===e?Di[t]:(Di[t]=e,"s"===t&&(Di.ss=e-1),!0))}function wa(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=ba(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Da(t){return(t>0)-(t<0)||+t}function Ta(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,a=Ti(this._milliseconds)/1e3,s=Ti(this._days),i=Ti(this._months);t=M(a/60),e=M(t/60),a%=60,t%=60,n=M(i/12),i%=12;var r=n,o=i,d=s,u=e,l=t,c=a?a.toFixed(3).replace(/\.?0+$/,""):"",_=this.asSeconds();if(!_)return"P0D";var m=_<0?"-":"",f=Da(this._months)!==Da(_)?"-":"",h=Da(this._days)!==Da(_)?"-":"",p=Da(this._milliseconds)!==Da(_)?"-":"";return m+"P"+(r?f+r+"Y":"")+(o?f+o+"M":"")+(d?h+d+"D":"")+(u||l||c?"T":"")+(u?p+u+"H":"")+(l?p+l+"M":"")+(c?p+c+"S":"")}var xa,Sa;Sa=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,a=0;a<n;a++)if(a in e&&t.call(this,e[a],a,e))return!0;return!1};var Ha=e.momentProperties=[],ja=!1,Oa={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var Aa;Aa=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)l(t,e)&&n.push(e);return n};var Pa={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ea={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},$a=/\d{1,2}/,Ca={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Wa={},Fa={},Na=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ia=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,za={},Ra={},Ja=/\d/,Va=/\d\d/,Ua=/\d{3}/,Ga=/\d{4}/,qa=/[+-]?\d{6}/,Ba=/\d\d?/,Ka=/\d\d\d\d?/,Xa=/\d\d\d\d\d\d?/,Za=/\d{1,3}/,Qa=/\d{1,4}/,ts=/[+-]?\d{1,6}/,es=/\d+/,ns=/[+-]?\d+/,as=/Z|[+-]\d\d:?\d\d/gi,ss=/Z|[+-]\d\d(?::?\d\d)?/gi,is=/[+-]?\d+(\.\d{1,3})?/,rs=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,os={},ds={},us=0,ls=1,cs=2,_s=3,ms=4,fs=5,hs=6,ps=7,vs=8;z("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),z(0,["YY",2],0,function(){return this.year()%100}),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),$("year","y"),F("year",1),G("Y",ns),G("YY",Ba,Va),G("YYYY",Qa,Ga),G("YYYYY",ts,qa),G("YYYYYY",ts,qa),X(["YYYYY","YYYYYY"],us),X("YYYY",function(t,n){n[us]=2===t.length?e.parseTwoDigitYear(t):L(t)}),X("YY",function(t,n){n[us]=e.parseTwoDigitYear(t)}),X("Y",function(t,e){e[us]=parseInt(t,10)}),e.parseTwoDigitYear=function(t){return L(t)+(L(t)>68?1900:2e3)};var ys,gs=at("FullYear",!0);ys=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},z("M",["MM",2],"Mo",function(){return this.month()+1}),z("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),z("MMMM",0,0,function(t){return this.localeData().months(this,t)}),$("month","M"),F("month",8),G("M",Ba),G("MM",Ba,Va),G("MMM",function(t,e){return e.monthsShortRegex(t)}),G("MMMM",function(t,e){return e.monthsRegex(t)}),X(["M","MM"],function(t,e){e[ls]=L(t)-1}),X(["MMM","MMMM"],function(t,e,n,a){var s=n._locale.monthsParse(t,a,n._strict);null!=s?e[ls]=s:f(n).invalidMonth=t});var Ms=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ls="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),bs="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ys=rs,ks=rs;z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),$("week","w"),$("isoWeek","W"),F("week",5),F("isoWeek",5),G("w",Ba),G("ww",Ba,Va),G("W",Ba),G("WW",Ba,Va),Z(["w","ww","W","WW"],function(t,e,n,a){e[a.substr(0,1)]=L(t)});var ws={dow:0,doy:6};z("d",0,"do","day"),z("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),z("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),z("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),$("day","d"),$("weekday","e"),$("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),G("d",Ba),G("e",Ba),G("E",Ba),G("dd",function(t,e){return e.weekdaysMinRegex(t)}),G("ddd",function(t,e){return e.weekdaysShortRegex(t)}),G("dddd",function(t,e){return e.weekdaysRegex(t)}),Z(["dd","ddd","dddd"],function(t,e,n,a){var s=n._locale.weekdaysParse(t,a,n._strict);null!=s?e.d=s:f(n).invalidWeekday=t}),Z(["d","e","E"],function(t,e,n,a){e[a]=L(t)});var Ds="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ts="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xs="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ss=rs,Hs=rs,js=rs;z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Vt),z("k",["kk",2],0,Ut),z("hmm",0,0,function(){return""+Vt.apply(this)+I(this.minutes(),2)}),z("hmmss",0,0,function(){return""+Vt.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+I(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)}),Gt("a",!0),Gt("A",!1),$("hour","h"),F("hour",13),G("a",qt),G("A",qt),G("H",Ba),G("h",Ba),G("k",Ba),G("HH",Ba,Va),G("hh",Ba,Va),G("kk",Ba,Va),G("hmm",Ka),G("hmmss",Xa),G("Hmm",Ka),G("Hmmss",Xa),X(["H","HH"],_s),X(["k","kk"],function(t,e,n){var a=L(t);e[_s]=24===a?0:a}),X(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),X(["h","hh"],function(t,e,n){e[_s]=L(t),f(n).bigHour=!0}),X("hmm",function(t,e,n){var a=t.length-2;e[_s]=L(t.substr(0,a)),e[ms]=L(t.substr(a)),f(n).bigHour=!0}),X("hmmss",function(t,e,n){var a=t.length-4,s=t.length-2;e[_s]=L(t.substr(0,a)),e[ms]=L(t.substr(a,2)),e[fs]=L(t.substr(s)),f(n).bigHour=!0}),X("Hmm",function(t,e,n){var a=t.length-2;e[_s]=L(t.substr(0,a)),e[ms]=L(t.substr(a))}),X("Hmmss",function(t,e,n){var a=t.length-4,s=t.length-2;e[_s]=L(t.substr(0,a)),e[ms]=L(t.substr(a,2)),e[fs]=L(t.substr(s))});var Os,As=/[ap]\.?m?\.?/i,Ps=at("Hours",!0),Es={calendar:Pa,longDateFormat:Ea,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:$a,relativeTime:Ca,months:Ls,monthsShort:bs,week:ws,weekdays:Ds,weekdaysMin:xs,weekdaysShort:Ts,meridiemParse:As},$s={},Cs={},Ws=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Fs=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ns=/Z|[+-]\d\d(?::?\d\d)?/,Is=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],zs=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Rs=/^\/?Date\((\-?\d+)/i,Js=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Vs={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};e.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Us=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:p()}),Gs=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:p()}),qs=function(){return Date.now?Date.now():+new Date},Bs=["year","quarter","month","week","day","hour","minute","second","millisecond"];$e("Z",":"),$e("ZZ",""),G("Z",ss),G("ZZ",ss),X(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ce(ss,t)});var Ks=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Xs=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Zs=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Xe.fn=Ae.prototype,Xe.invalid=Oe;var Qs=en(1,"add"),ti=en(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ei=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Cn("gggg","weekYear"),Cn("ggggg","weekYear"),Cn("GGGG","isoWeekYear"),Cn("GGGGG","isoWeekYear"),$("weekYear","gg"),$("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),G("G",ns),G("g",ns),G("GG",Ba,Va),G("gg",Ba,Va),G("GGGG",Qa,Ga),G("gggg",Qa,Ga),G("GGGGG",ts,qa),G("ggggg",ts,qa),Z(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,a){e[a.substr(0,2)]=L(t)}),Z(["gg","GG"],function(t,n,a,s){n[s]=e.parseTwoDigitYear(t)}),z("Q",0,"Qo","quarter"),$("quarter","Q"),F("quarter",7),G("Q",Ja),X("Q",function(t,e){e[ls]=3*(L(t)-1)}),z("D",["DD",2],"Do","date"),$("date","D"),F("date",9),G("D",Ba),G("DD",Ba,Va),G("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),X(["D","DD"],cs),X("Do",function(t,e){e[cs]=L(t.match(Ba)[0])});var ni=at("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),$("dayOfYear","DDD"),F("dayOfYear",4),G("DDD",Za),G("DDDD",Ua),X(["DDD","DDDD"],function(t,e,n){n._dayOfYear=L(t)}),z("m",["mm",2],0,"minute"),$("minute","m"),F("minute",14),G("m",Ba),G("mm",Ba,Va),X(["m","mm"],ms);var ai=at("Minutes",!1);z("s",["ss",2],0,"second"),$("second","s"),F("second",15),G("s",Ba),G("ss",Ba,Va),X(["s","ss"],fs);var si=at("Seconds",!1);z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),$("millisecond","ms"),F("millisecond",16),G("S",Za,Ja),G("SS",Za,Va),G("SSS",Za,Ua);var ii;for(ii="SSSS";ii.length<=9;ii+="S")G(ii,es);for(ii="S";ii.length<=9;ii+="S")X(ii,Un);var ri=at("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var oi=y.prototype;oi.add=Qs,oi.calendar=sn,oi.clone=rn,oi.diff=mn,oi.endOf=Dn,oi.format=yn,oi.from=gn,oi.fromNow=Mn,oi.to=Ln,oi.toNow=bn,oi.get=rt,oi.invalidAt=En,oi.isAfter=on,oi.isBefore=dn,oi.isBetween=un,oi.isSame=ln,oi.isSameOrAfter=cn,oi.isSameOrBefore=_n,oi.isValid=An,oi.lang=ei,oi.locale=Yn,oi.localeData=kn,oi.max=Gs,oi.min=Us,oi.parsingFlags=Pn,oi.set=ot,oi.startOf=wn,oi.subtract=ti,oi.toArray=Hn,oi.toObject=jn,oi.toDate=Sn,oi.toISOString=pn,oi.inspect=vn,oi.toJSON=On,oi.toString=hn,oi.unix=xn,oi.valueOf=Tn,oi.creationData=$n,oi.year=gs,oi.isLeapYear=nt,oi.weekYear=Wn,oi.isoWeekYear=Fn,oi.quarter=oi.quarters=Jn,oi.month=ht,oi.daysInMonth=pt,oi.week=oi.weeks=St,oi.isoWeek=oi.isoWeeks=Ht,oi.weeksInYear=In,oi.isoWeeksInYear=Nn,oi.date=ni,oi.day=oi.days=Wt,oi.weekday=Ft,oi.isoWeekday=Nt,oi.dayOfYear=Vn,oi.hour=oi.hours=Ps,oi.minute=oi.minutes=ai,oi.second=oi.seconds=si,oi.millisecond=oi.milliseconds=ri,oi.utcOffset=Ne,oi.utc=ze,oi.local=Re,oi.parseZone=Je,oi.hasAlignedHourOffset=Ve,oi.isDST=Ue,oi.isLocal=qe,oi.isUtcOffset=Be,oi.isUtc=Ke,oi.isUTC=Ke,oi.zoneAbbr=Gn,oi.zoneName=qn,oi.dates=k("dates accessor is deprecated. Use date instead.",ni),oi.months=k("months accessor is deprecated. Use month instead",ht),oi.years=k("years accessor is deprecated. Use year instead",gs),oi.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ie),oi.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ge);var di=S.prototype;di.calendar=H,di.longDateFormat=j,di.invalidDate=O,di.ordinal=A,di.preparse=Xn,di.postformat=Xn,di.relativeTime=P,di.pastFuture=E,di.set=T,di.months=lt,di.monthsShort=ct,di.monthsParse=mt,di.monthsRegex=yt,di.monthsShortRegex=vt,di.week=Dt,di.firstDayOfYear=xt,di.firstDayOfWeek=Tt,di.weekdays=At,di.weekdaysMin=Et,di.weekdaysShort=Pt,di.weekdaysParse=Ct,di.weekdaysRegex=It,di.weekdaysShortRegex=zt,di.weekdaysMinRegex=Rt,di.isPM=Bt,di.meridiem=Kt,te("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===L(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),e.lang=k("moment.lang is deprecated. Use moment.locale instead.",te),e.langData=k("moment.langData is deprecated. Use moment.localeData instead.",ae);var ui=Math.abs,li=pa("ms"),ci=pa("s"),_i=pa("m"),mi=pa("h"),fi=pa("d"),hi=pa("w"),pi=pa("M"),vi=pa("y"),yi=ga("milliseconds"),gi=ga("seconds"),Mi=ga("minutes"),Li=ga("hours"),bi=ga("days"),Yi=ga("months"),ki=ga("years"),wi=Math.round,Di={ss:44,s:45,m:45,h:22,d:26,M:11},Ti=Math.abs,xi=Ae.prototype;return xi.isValid=je,xi.abs=ra,xi.add=da,xi.subtract=ua,xi.as=fa,xi.asMilliseconds=li,xi.asSeconds=ci,xi.asMinutes=_i,xi.asHours=mi,xi.asDays=fi,xi.asWeeks=hi,xi.asMonths=pi,xi.asYears=vi,xi.valueOf=ha,xi._bubble=ca,xi.clone=va,xi.get=ya,xi.milliseconds=yi,xi.seconds=gi,xi.minutes=Mi,xi.hours=Li,xi.days=bi,xi.weeks=Ma,xi.months=Yi,xi.years=ki,xi.humanize=wa,xi.toISOString=Ta,xi.toString=Ta,xi.toJSON=Ta,xi.locale=Yn,xi.localeData=kn,xi.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ta),xi.lang=ei,z("X",0,0,"unix"),z("x",0,0,"valueOf"),G("x",ns),G("X",is),X("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),X("x",function(t,e,n){n._d=new Date(L(t))}),e.version="2.22.0",function(t){xa=t}(De),e.fn=oi,e.min=xe,e.max=Se,e.now=qs,e.utc=_,e.unix=Bn,e.months=ea,e.isDate=d,e.locale=te,e.invalid=p,e.duration=Xe,e.isMoment=g,e.weekdays=aa,e.parseZone=Kn,e.localeData=ae,e.isDuration=Pe,e.monthsShort=na,e.weekdaysMin=ia,e.defineLocale=ee,e.updateLocale=ne,e.locales=se,e.weekdaysShort=sa,e.normalizeUnits=C,e.relativeTimeRounding=Ya,e.relativeTimeThreshold=ka,e.calendarFormat=an,e.prototype=oi,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},e})}).call(e,n(280)(t))},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var a={},s=0;s<this.length;s++){var i=this[s][0];"number"==typeof i&&(a[i]=!0)}for(s=0;s<e.length;s++){var r=e[s];"number"==typeof r[0]&&a[r[0]]||(n&&!r[2]?r[2]=n:n&&(r[2]="("+r[2]+") and ("+n+")"),t.push(r))}},t}},function(t,e){function n(t,e){for(var n=0;n<t.length;n++){var a=t[n],s=_[a.id];if(s){s.refs++;for(var i=0;i<s.parts.length;i++)s.parts[i](a.parts[i]);for(;i<a.parts.length;i++)s.parts.push(d(a.parts[i],e))}else{for(var r=[],i=0;i<a.parts.length;i++)r.push(d(a.parts[i],e));_[a.id]={id:a.id,refs:1,parts:r}}}}function a(t){for(var e=[],n={},a=0;a<t.length;a++){var s=t[a],i=s[0],r=s[1],o=s[2],d=s[3],u={css:r,media:o,sourceMap:d};n[i]?n[i].parts.push(u):e.push(n[i]={id:i,parts:[u]})}return e}function s(t,e){var n=h(),a=y[y.length-1];if("top"===t.insertAt)a?a.nextSibling?n.insertBefore(e,a.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),y.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function i(t){t.parentNode.removeChild(t);var e=y.indexOf(t);e>=0&&y.splice(e,1)}function r(t){var e=document.createElement("style");return e.type="text/css",s(t,e),e}function o(t){var e=document.createElement("link");return e.rel="stylesheet",s(t,e),e}function d(t,e){var n,a,s;if(e.singleton){var d=v++;n=p||(p=r(e)),a=u.bind(null,n,d,!1),s=u.bind(null,n,d,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=o(e),a=c.bind(null,n),s=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=r(e),a=l.bind(null,n),s=function(){i(n)});return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else s()}}function u(t,e,n,a){var s=n?"":a.css;if(t.styleSheet)t.styleSheet.cssText=g(e,s);else{var i=document.createTextNode(s),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(i,r[e]):t.appendChild(i)}}function l(t,e){var n=e.css,a=e.media;if(a&&t.setAttribute("media",a),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function c(t,e){var n=e.css,a=e.sourceMap;a&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var s=new Blob([n],{type:"text/css"}),i=t.href;t.href=URL.createObjectURL(s),i&&URL.revokeObjectURL(i)}var _={},m=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},f=m(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),h=m(function(){return document.head||document.getElementsByTagName("head")[0]}),p=null,v=0,y=[];t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},void 0===e.singleton&&(e.singleton=f()),void 0===e.insertAt&&(e.insertAt="bottom");var s=a(t);return n(s,e),function(t){for(var i=[],r=0;r<s.length;r++){var o=s[r],d=_[o.id];d.refs--,i.push(d)}if(t){n(a(t),e)}for(var r=0;r<i.length;r++){var d=i[r];if(0===d.refs){for(var u=0;u<d.parts.length;u++)d.parts[u]();delete _[d.id]}}}};var g=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var a=n(22)("wks"),s=n(23),i=n(3).Symbol,r="function"==typeof i;(t.exports=function(t){return a[t]||(a[t]=r&&i[t]||(r?i:s)("Symbol."+t))}).store=a},function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(t,e,n){var a=n(18),s=n(27);t.exports=n(10)?function(t,e,n){return a.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,n){function a(t){return void 0===t||null===t}function s(t){return void 0!==t&&null!==t}function i(t){return!0===t}function r(t){return!1===t}function o(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function d(t){return null!==t&&"object"==typeof t}function u(t){return"[object Object]"===oi.call(t)}function l(t){return"[object RegExp]"===oi.call(t)}function c(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function _(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function m(t){var e=parseFloat(t);return isNaN(e)?t:e}function f(t,e){for(var n=Object.create(null),a=t.split(","),s=0;s<a.length;s++)n[a[s]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}function h(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}function p(t,e){return li.call(t,e)}function v(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function y(t,e){function n(n){var a=arguments.length;return a?a>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function g(t,e){return t.bind(e)}function M(t,e){e=e||0;for(var n=t.length-e,a=new Array(n);n--;)a[n]=t[n+e];return a}function L(t,e){for(var n in e)t[n]=e[n];return t}function b(t){for(var e={},n=0;n<t.length;n++)t[n]&&L(e,t[n]);return e}function Y(t,e,n){}function k(t,e){if(t===e)return!0;var n=d(t),a=d(e);if(!n||!a)return!n&&!a&&String(t)===String(e);try{var s=Array.isArray(t),i=Array.isArray(e);if(s&&i)return t.length===e.length&&t.every(function(t,n){return k(t,e[n])});if(s||i)return!1;var r=Object.keys(t),o=Object.keys(e);return r.length===o.length&&r.every(function(n){return k(t[n],e[n])})}catch(t){return!1}}function w(t,e){for(var n=0;n<t.length;n++)if(k(t[n],e))return n;return-1}function D(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function T(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function x(t,e,n,a){Object.defineProperty(t,e,{value:n,enumerable:!!a,writable:!0,configurable:!0})}function S(t){if(!Yi.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}function H(t){return"function"==typeof t&&/native code/.test(t.toString())}function j(t){Ri.target&&Ji.push(Ri.target),Ri.target=t}function O(){Ri.target=Ji.pop()}function A(t){return new Vi(void 0,void 0,void 0,String(t))}function P(t){var e=new Vi(t.tag,t.data,t.children,t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.isCloned=!0,e}function E(t){Xi=t}function $(t,e,n){t.__proto__=e}function C(t,e,n){for(var a=0,s=n.length;a<s;a++){var i=n[a];x(t,i,e[i])}}function W(t,e){if(d(t)&&!(t instanceof Vi)){var n;return p(t,"__ob__")&&t.__ob__ instanceof Zi?n=t.__ob__:Xi&&!Wi()&&(Array.isArray(t)||u(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Zi(t)),e&&n&&n.vmCount++,n}}function F(t,e,n,a,s){var i=new Ri,r=Object.getOwnPropertyDescriptor(t,e);if(!r||!1!==r.configurable){var o=r&&r.get;o||2!==arguments.length||(n=t[e]);var d=r&&r.set,u=!s&&W(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=o?o.call(t):n;return Ri.target&&(i.depend(),u&&(u.dep.depend(),Array.isArray(e)&&z(e))),e},set:function(e){var a=o?o.call(t):n;e===a||e!==e&&a!==a||(d?d.call(t,e):n=e,u=!s&&W(e),i.notify())}})}}function N(t,e,n){if(Array.isArray(t)&&c(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var a=t.__ob__;return t._isVue||a&&a.vmCount?n:a?(F(a.value,e,n),a.dep.notify(),n):(t[e]=n,n)}function I(t,e){if(Array.isArray(t)&&c(e))return void t.splice(e,1);var n=t.__ob__;t._isVue||n&&n.vmCount||p(t,e)&&(delete t[e],n&&n.dep.notify())}function z(t){for(var e=void 0,n=0,a=t.length;n<a;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&z(e)}function R(t,e){if(!e)return t;for(var n,a,s,i=Object.keys(e),r=0;r<i.length;r++)n=i[r],a=t[n],s=e[n],p(t,n)?u(a)&&u(s)&&R(a,s):N(t,n,s);return t}function J(t,e,n){return n?function(){var a="function"==typeof e?e.call(n,n):e,s="function"==typeof t?t.call(n,n):t;return a?R(a,s):s}:e?t?function(){return R("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function V(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function U(t,e,n,a){var s=Object.create(t||null);return e?L(s,e):s}function G(t,e){var n=t.props;if(n){var a,s,i,r={};if(Array.isArray(n))for(a=n.length;a--;)"string"==typeof(s=n[a])&&(i=_i(s),r[i]={type:null});else if(u(n))for(var o in n)s=n[o],i=_i(o),r[i]=u(s)?s:{type:s};t.props=r}}function q(t,e){var n=t.inject;if(n){var a=t.inject={};if(Array.isArray(n))for(var s=0;s<n.length;s++)a[n[s]]={from:n[s]};else if(u(n))for(var i in n){var r=n[i];a[i]=u(r)?L({from:i},r):{from:r}}}}function B(t){var e=t.directives;if(e)for(var n in e){var a=e[n];"function"==typeof a&&(e[n]={bind:a,update:a})}}function K(t,e,n){function a(a){var s=Qi[a]||nr;d[a]=s(t[a],e[a],n,a)}"function"==typeof e&&(e=e.options),G(e,n),q(e,n),B(e);var s=e.extends;if(s&&(t=K(t,s,n)),e.mixins)for(var i=0,r=e.mixins.length;i<r;i++)t=K(t,e.mixins[i],n);var o,d={};for(o in t)a(o);for(o in e)p(t,o)||a(o);return d}function X(t,e,n,a){if("string"==typeof n){var s=t[e];if(p(s,n))return s[n];var i=_i(n);if(p(s,i))return s[i];var r=mi(i);if(p(s,r))return s[r];return s[n]||s[i]||s[r]}}function Z(t,e,n,a){var s=e[t],i=!p(n,t),r=n[t],o=nt(Boolean,s.type);if(o>-1)if(i&&!p(s,"default"))r=!1;else if(""===r||r===hi(t)){var d=nt(String,s.type);(d<0||o<d)&&(r=!0)}if(void 0===r){r=Q(a,s,t);var u=Xi;E(!0),W(r),E(u)}return r}function Q(t,e,n){if(p(e,"default")){var a=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"==typeof a&&"Function"!==tt(e.type)?a.call(t):a}}function tt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function et(t,e){return tt(t)===tt(e)}function nt(t,e){if(!Array.isArray(e))return et(e,t)?0:-1;for(var n=0,a=e.length;n<a;n++)if(et(e[n],t))return n;return-1}function at(t,e,n){if(e)for(var a=e;a=a.$parent;){var s=a.$options.errorCaptured;if(s)for(var i=0;i<s.length;i++)try{var r=!1===s[i].call(a,t,e,n);if(r)return}catch(t){st(t,a,"errorCaptured hook")}}st(t,e,n)}function st(t,e,n){if(bi.errorHandler)try{return bi.errorHandler.call(null,t,e,n)}catch(t){it(t,null,"config.errorHandler")}it(t,e,n)}function it(t,e,n){if(!wi&&!Di||"undefined"==typeof console)throw t;console.error(t)}function rt(){sr=!1;var t=ar.slice(0);ar.length=0;for(var e=0;e<t.length;e++)t[e]()}function ot(t){return t._withTask||(t._withTask=function(){ir=!0;var e=t.apply(null,arguments);return ir=!1,e})}function dt(t,e){var n;if(ar.push(function(){if(t)try{t.call(e)}catch(t){at(t,e,"nextTick")}else n&&n(e)}),sr||(sr=!0,ir?er():tr()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){n=t})}function ut(t){lt(t,lr),lr.clear()}function lt(t,e){var n,a,s=Array.isArray(t);if(!(!s&&!d(t)||Object.isFrozen(t)||t instanceof Vi)){if(t.__ob__){var i=t.__ob__.dep.id;if(e.has(i))return;e.add(i)}if(s)for(n=t.length;n--;)lt(t[n],e);else for(a=Object.keys(t),n=a.length;n--;)lt(t[a[n]],e)}}function ct(t){function e(){var t=arguments,n=e.fns;if(!Array.isArray(n))return n.apply(null,arguments);for(var a=n.slice(),s=0;s<a.length;s++)a[s].apply(null,t)}return e.fns=t,e}function _t(t,e,n,s,i){var r,o,d,u;for(r in t)o=t[r],d=e[r],u=cr(r),a(o)||(a(d)?(a(o.fns)&&(o=t[r]=ct(o)),n(u.name,o,u.once,u.capture,u.passive,u.params)):o!==d&&(d.fns=o,t[r]=d));for(r in e)a(t[r])&&(u=cr(r),s(u.name,e[r],u.capture))}function mt(t,e,n){function r(){n.apply(this,arguments),h(o.fns,r)}t instanceof Vi&&(t=t.data.hook||(t.data.hook={}));var o,d=t[e];a(d)?o=ct([r]):s(d.fns)&&i(d.merged)?(o=d,o.fns.push(r)):o=ct([d,r]),o.merged=!0,t[e]=o}function ft(t,e,n){var i=e.options.props;if(!a(i)){var r={},o=t.attrs,d=t.props;if(s(o)||s(d))for(var u in i){var l=hi(u);ht(r,d,u,l,!0)||ht(r,o,u,l,!1)}return r}}function ht(t,e,n,a,i){if(s(e)){if(p(e,n))return t[n]=e[n],i||delete e[n],!0;if(p(e,a))return t[n]=e[a],i||delete e[a],!0}return!1}function pt(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function vt(t){return o(t)?[A(t)]:Array.isArray(t)?gt(t):void 0}function yt(t){return s(t)&&s(t.text)&&r(t.isComment)}function gt(t,e){var n,r,d,u,l=[];for(n=0;n<t.length;n++)r=t[n],a(r)||"boolean"==typeof r||(d=l.length-1,u=l[d],Array.isArray(r)?r.length>0&&(r=gt(r,(e||"")+"_"+n),yt(r[0])&&yt(u)&&(l[d]=A(u.text+r[0].text),r.shift()),l.push.apply(l,r)):o(r)?yt(u)?l[d]=A(u.text+r):""!==r&&l.push(A(r)):yt(r)&&yt(u)?l[d]=A(u.text+r.text):(i(t._isVList)&&s(r.tag)&&a(r.key)&&s(e)&&(r.key="__vlist"+e+"_"+n+"__"),l.push(r)));return l}function Mt(t,e){return(t.__esModule||Ni&&"Module"===t[Symbol.toStringTag])&&(t=t.default),d(t)?e.extend(t):t}function Lt(t,e,n,a,s){var i=Gi();return i.asyncFactory=t,i.asyncMeta={data:e,context:n,children:a,tag:s},i}function bt(t,e,n){if(i(t.error)&&s(t.errorComp))return t.errorComp;if(s(t.resolved))return t.resolved;if(i(t.loading)&&s(t.loadingComp))return t.loadingComp;if(!s(t.contexts)){var r=t.contexts=[n],o=!0,u=function(){for(var t=0,e=r.length;t<e;t++)r[t].$forceUpdate()},l=D(function(n){t.resolved=Mt(n,e),o||u()}),c=D(function(e){s(t.errorComp)&&(t.error=!0,u())}),_=t(l,c);return d(_)&&("function"==typeof _.then?a(t.resolved)&&_.then(l,c):s(_.component)&&"function"==typeof _.component.then&&(_.component.then(l,c),s(_.error)&&(t.errorComp=Mt(_.error,e)),s(_.loading)&&(t.loadingComp=Mt(_.loading,e),0===_.delay?t.loading=!0:setTimeout(function(){a(t.resolved)&&a(t.error)&&(t.loading=!0,u())},_.delay||200)),s(_.timeout)&&setTimeout(function(){a(t.resolved)&&c(null)},_.timeout))),o=!1,t.loading?t.loadingComp:t.resolved}t.contexts.push(n)}function Yt(t){return t.isComment&&t.asyncFactory}function kt(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(s(n)&&(s(n.componentOptions)||Yt(n)))return n}}function wt(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&xt(t,e)}function Dt(t,e,n){n?ur.$once(t,e):ur.$on(t,e)}function Tt(t,e){ur.$off(t,e)}function xt(t,e,n){ur=t,_t(e,n||{},Dt,Tt,t),ur=void 0}function St(t,e){var n={};if(!t)return n;for(var a=0,s=t.length;a<s;a++){var i=t[a],r=i.data;if(r&&r.attrs&&r.attrs.slot&&delete r.attrs.slot,i.context!==e&&i.fnContext!==e||!r||null==r.slot)(n.default||(n.default=[])).push(i);else{var o=r.slot,d=n[o]||(n[o]=[]);"template"===i.tag?d.push.apply(d,i.children||[]):d.push(i)}}for(var u in n)n[u].every(Ht)&&delete n[u];return n}function Ht(t){return t.isComment&&!t.asyncFactory||" "===t.text}function jt(t,e){e=e||{};for(var n=0;n<t.length;n++)Array.isArray(t[n])?jt(t[n],e):e[t[n].key]=t[n].fn;return e}function Ot(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function At(t,e,n){t.$el=e,t.$options.render||(t.$options.render=Gi),Wt(t,"beforeMount");var a;return a=function(){t._update(t._render(),n)},new Mr(t,a,Y,null,!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Wt(t,"mounted")),t}function Pt(t,e,n,a,s){var i=!!(s||t.$options._renderChildren||a.data.scopedSlots||t.$scopedSlots!==ri);if(t.$options._parentVnode=a,t.$vnode=a,t._vnode&&(t._vnode.parent=a),t.$options._renderChildren=s,t.$attrs=a.data.attrs||ri,t.$listeners=n||ri,e&&t.$options.props){E(!1);for(var r=t._props,o=t.$options._propKeys||[],d=0;d<o.length;d++){var u=o[d],l=t.$options.props;r[u]=Z(u,l,e,t)}E(!0),t.$options.propsData=e}n=n||ri;var c=t.$options._parentListeners;t.$options._parentListeners=n,xt(t,n,c),i&&(t.$slots=St(s,a.context),t.$forceUpdate())}function Et(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function $t(t,e){if(e){if(t._directInactive=!1,Et(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)$t(t.$children[n]);Wt(t,"activated")}}function Ct(t,e){if(!(e&&(t._directInactive=!0,Et(t))||t._inactive)){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Ct(t.$children[n]);Wt(t,"deactivated")}}function Wt(t,e){j();var n=t.$options[e];if(n)for(var a=0,s=n.length;a<s;a++)try{n[a].call(t)}catch(n){at(n,t,e+" hook")}t._hasHookEvent&&t.$emit("hook:"+e),O()}function Ft(){yr=mr.length=fr.length=0,hr={},pr=vr=!1}function Nt(){vr=!0;var t,e;for(mr.sort(function(t,e){return t.id-e.id}),yr=0;yr<mr.length;yr++)t=mr[yr],e=t.id,hr[e]=null,t.run();var n=fr.slice(),a=mr.slice();Ft(),Rt(n),It(a),Fi&&bi.devtools&&Fi.emit("flush")}function It(t){for(var e=t.length;e--;){var n=t[e],a=n.vm;a._watcher===n&&a._isMounted&&Wt(a,"updated")}}function zt(t){t._inactive=!1,fr.push(t)}function Rt(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,$t(t[e],!0)}function Jt(t){var e=t.id;if(null==hr[e]){if(hr[e]=!0,vr){for(var n=mr.length-1;n>yr&&mr[n].id>t.id;)n--;mr.splice(n+1,0,t)}else mr.push(t);pr||(pr=!0,dt(Nt))}}function Vt(t,e,n){Lr.get=function(){return this[e][n]},Lr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Lr)}function Ut(t){t._watchers=[];var e=t.$options;e.props&&Gt(t,e.props),e.methods&&Qt(t,e.methods),e.data?qt(t):W(t._data={},!0),e.computed&&Kt(t,e.computed),e.watch&&e.watch!==Ai&&te(t,e.watch)}function Gt(t,e){var n=t.$options.propsData||{},a=t._props={},s=t.$options._propKeys=[];!t.$parent||E(!1);for(var i in e)!function(i){s.push(i);var r=Z(i,e,n,t);F(a,i,r),i in t||Vt(t,"_props",i)}(i);E(!0)}function qt(t){var e=t.$options.data;e=t._data="function"==typeof e?Bt(e,t):e||{},u(e)||(e={});for(var n=Object.keys(e),a=t.$options.props,s=(t.$options.methods,n.length);s--;){var i=n[s];a&&p(a,i)||T(i)||Vt(t,"_data",i)}W(e,!0)}function Bt(t,e){j();try{return t.call(e,e)}catch(t){return at(t,e,"data()"),{}}finally{O()}}function Kt(t,e){var n=t._computedWatchers=Object.create(null),a=Wi();for(var s in e){var i=e[s],r="function"==typeof i?i:i.get;a||(n[s]=new Mr(t,r||Y,Y,br)),s in t||Xt(t,s,i)}}function Xt(t,e,n){var a=!Wi();"function"==typeof n?(Lr.get=a?Zt(e):n,Lr.set=Y):(Lr.get=n.get?a&&!1!==n.cache?Zt(e):n.get:Y,Lr.set=n.set?n.set:Y),Object.defineProperty(t,e,Lr)}function Zt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),Ri.target&&e.depend(),e.value}}function Qt(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?Y:pi(e[n],t)}function te(t,e){for(var n in e){var a=e[n];if(Array.isArray(a))for(var s=0;s<a.length;s++)ee(t,n,a[s]);else ee(t,n,a)}}function ee(t,e,n,a){return u(n)&&(a=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,a)}function ne(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}function ae(t){var e=se(t.$options.inject,t);e&&(E(!1),Object.keys(e).forEach(function(n){F(t,n,e[n])}),E(!0))}function se(t,e){if(t){for(var n=Object.create(null),a=Ni?Reflect.ownKeys(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):Object.keys(t),s=0;s<a.length;s++){for(var i=a[s],r=t[i].from,o=e;o;){if(o._provided&&p(o._provided,r)){n[i]=o._provided[r];break}o=o.$parent}if(!o&&"default"in t[i]){var d=t[i].default;n[i]="function"==typeof d?d.call(e):d}}return n}}function ie(t,e){var n,a,i,r,o;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),a=0,i=t.length;a<i;a++)n[a]=e(t[a],a);else if("number"==typeof t)for(n=new Array(t),a=0;a<t;a++)n[a]=e(a+1,a);else if(d(t))for(r=Object.keys(t),n=new Array(r.length),a=0,i=r.length;a<i;a++)o=r[a],n[a]=e(t[o],o,a);return s(n)&&(n._isVList=!0),n}function re(t,e,n,a){var s,i=this.$scopedSlots[t];if(i)n=n||{},a&&(n=L(L({},a),n)),s=i(n)||e;else{var r=this.$slots[t];r&&(r._rendered=!0),s=r||e}var o=n&&n.slot;return o?this.$createElement("template",{slot:o},s):s}function oe(t){return X(this.$options,"filters",t,!0)||yi}function de(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function ue(t,e,n,a,s){var i=bi.keyCodes[e]||n;return s&&a&&!bi.keyCodes[e]?de(s,a):i?de(i,t):a?hi(a)!==e:void 0}function le(t,e,n,a,s){if(n)if(d(n)){Array.isArray(n)&&(n=b(n));var i;for(var r in n)!function(r){if("class"===r||"style"===r||ui(r))i=t;else{var o=t.attrs&&t.attrs.type;i=a||bi.mustUseProp(e,o,r)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}if(!(r in i)&&(i[r]=n[r],s)){(t.on||(t.on={}))["update:"+r]=function(t){n[r]=t}}}(r)}else;return t}function ce(t,e){var n=this._staticTrees||(this._staticTrees=[]),a=n[t];return a&&!e?a:(a=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),me(a,"__static__"+t,!1),a)}function _e(t,e,n){return me(t,"__once__"+e+(n?"_"+n:""),!0),t}function me(t,e,n){if(Array.isArray(t))for(var a=0;a<t.length;a++)t[a]&&"string"!=typeof t[a]&&fe(t[a],e+"_"+a,n);else fe(t,e,n)}function fe(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function he(t,e){if(e)if(u(e)){var n=t.on=t.on?L({},t.on):{};for(var a in e){var s=n[a],i=e[a];n[a]=s?[].concat(s,i):i}}else;return t}function pe(t){t._o=_e,t._n=m,t._s=_,t._l=ie,t._t=re,t._q=k,t._i=w,t._m=ce,t._f=oe,t._k=ue,t._b=le,t._v=A,t._e=Gi,t._u=jt,t._g=he}function ve(t,e,n,a,s){var r,o=s.options;p(a,"_uid")?(r=Object.create(a),r._original=a):(r=a,a=a._original);var d=i(o._compiled),u=!d;this.data=t,this.props=e,this.children=n,this.parent=a,this.listeners=t.on||ri,this.injections=se(o.inject,a),this.slots=function(){return St(n,a)},d&&(this.$options=o,this.$slots=this.slots(),this.$scopedSlots=t.scopedSlots||ri),o._scopeId?this._c=function(t,e,n,s){var i=we(r,t,e,n,s,u);return i&&!Array.isArray(i)&&(i.fnScopeId=o._scopeId,i.fnContext=a),i}:this._c=function(t,e,n,a){return we(r,t,e,n,a,u)}}function ye(t,e,n,a,i){var r=t.options,o={},d=r.props;if(s(d))for(var u in d)o[u]=Z(u,d,e||ri);else s(n.attrs)&&Me(o,n.attrs),s(n.props)&&Me(o,n.props);var l=new ve(n,o,i,a,t),c=r.render.call(null,l._c,l);if(c instanceof Vi)return ge(c,n,l.parent,r);if(Array.isArray(c)){for(var _=vt(c)||[],m=new Array(_.length),f=0;f<_.length;f++)m[f]=ge(_[f],n,l.parent,r);return m}}function ge(t,e,n,a){var s=P(t);return s.fnContext=n,s.fnOptions=a,e.slot&&((s.data||(s.data={})).slot=e.slot),s}function Me(t,e){for(var n in e)t[_i(n)]=e[n]}function Le(t,e,n,r,o){if(!a(t)){var u=n.$options._base;if(d(t)&&(t=u.extend(t)),"function"==typeof t){var l;if(a(t.cid)&&(l=t,void 0===(t=bt(l,u,n))))return Lt(l,e,n,r,o);e=e||{},je(t),s(e.model)&&ke(t.options,e);var c=ft(e,t,o);if(i(t.options.functional))return ye(t,c,e,n,r);var _=e.on;if(e.on=e.nativeOn,i(t.options.abstract)){var m=e.slot;e={},m&&(e.slot=m)}Ye(e);var f=t.options.name||o;return new Vi("vue-component-"+t.cid+(f?"-"+f:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:c,listeners:_,tag:o,children:r},l)}}}function be(t,e,n,a){var i={_isComponent:!0,parent:e,_parentVnode:t,_parentElm:n||null,_refElm:a||null},r=t.data.inlineTemplate;return s(r)&&(i.render=r.render,i.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(i)}function Ye(t){for(var e=t.hook||(t.hook={}),n=0;n<kr.length;n++){var a=kr[n];e[a]=Yr[a]}}function ke(t,e){var n=t.model&&t.model.prop||"value",a=t.model&&t.model.event||"input";(e.props||(e.props={}))[n]=e.model.value;var i=e.on||(e.on={});s(i[a])?i[a]=[e.model.callback].concat(i[a]):i[a]=e.model.callback}function we(t,e,n,a,s,r){return(Array.isArray(n)||o(n))&&(s=a,a=n,n=void 0),i(r)&&(s=Dr),De(t,e,n,a,s)}function De(t,e,n,a,i){if(s(n)&&s(n.__ob__))return Gi();if(s(n)&&s(n.is)&&(e=n.is),!e)return Gi();Array.isArray(a)&&"function"==typeof a[0]&&(n=n||{},n.scopedSlots={default:a[0]},a.length=0),i===Dr?a=vt(a):i===wr&&(a=pt(a));var r,o;if("string"==typeof e){var d;o=t.$vnode&&t.$vnode.ns||bi.getTagNamespace(e),r=bi.isReservedTag(e)?new Vi(bi.parsePlatformTagName(e),n,a,void 0,void 0,t):s(d=X(t.$options,"components",e))?Le(d,n,t,a,e):new Vi(e,n,a,void 0,void 0,t)}else r=Le(e,n,t,a);return Array.isArray(r)?r:s(r)?(s(o)&&Te(r,o),s(n)&&xe(n),r):Gi()}function Te(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),s(t.children))for(var r=0,o=t.children.length;r<o;r++){var d=t.children[r];s(d.tag)&&(a(d.ns)||i(n)&&"svg"!==d.tag)&&Te(d,e,n)}}function xe(t){d(t.style)&&ut(t.style),d(t.class)&&ut(t.class)}function Se(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,a=n&&n.context;t.$slots=St(e._renderChildren,a),t.$scopedSlots=ri,t._c=function(e,n,a,s){return we(t,e,n,a,s,!1)},t.$createElement=function(e,n,a,s){return we(t,e,n,a,s,!0)};var s=n&&n.data;F(t,"$attrs",s&&s.attrs||ri,null,!0),F(t,"$listeners",e._parentListeners||ri,null,!0)}function He(t,e){var n=t.$options=Object.create(t.constructor.options),a=e._parentVnode;n.parent=e.parent,n._parentVnode=a,n._parentElm=e._parentElm,n._refElm=e._refElm;var s=a.componentOptions;n.propsData=s.propsData,n._parentListeners=s.listeners,n._renderChildren=s.children,n._componentTag=s.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function je(t){var e=t.options;if(t.super){var n=je(t.super);if(n!==t.superOptions){t.superOptions=n;var a=Oe(t);a&&L(t.extendOptions,a),e=t.options=K(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function Oe(t){var e,n=t.options,a=t.extendOptions,s=t.sealedOptions;for(var i in n)n[i]!==s[i]&&(e||(e={}),e[i]=Ae(n[i],a[i],s[i]));return e}function Ae(t,e,n){if(Array.isArray(t)){var a=[];n=Array.isArray(n)?n:[n],e=Array.isArray(e)?e:[e];for(var s=0;s<t.length;s++)(e.indexOf(t[s])>=0||n.indexOf(t[s])<0)&&a.push(t[s]);return a}return t}function Pe(t){this._init(t)}function Ee(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=M(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}function $e(t){t.mixin=function(t){return this.options=K(this.options,t),this}}function Ce(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,a=n.cid,s=t._Ctor||(t._Ctor={});if(s[a])return s[a];var i=t.name||n.options.name,r=function(t){this._init(t)};return r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.cid=e++,r.options=K(n.options,t),r.super=n,r.options.props&&We(r),r.options.computed&&Fe(r),r.extend=n.extend,r.mixin=n.mixin,r.use=n.use,Mi.forEach(function(t){r[t]=n[t]}),i&&(r.options.components[i]=r),r.superOptions=n.options,r.extendOptions=t,r.sealedOptions=L({},r.options),s[a]=r,r}}function We(t){var e=t.options.props;for(var n in e)Vt(t.prototype,"_props",n)}function Fe(t){var e=t.options.computed;for(var n in e)Xt(t.prototype,n,e[n])}function Ne(t){Mi.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Ie(t){return t&&(t.Ctor.options.name||t.tag)}function ze(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!l(t)&&t.test(e)}function Re(t,e){var n=t.cache,a=t.keys,s=t._vnode;for(var i in n){var r=n[i];if(r){var o=Ie(r.componentOptions);o&&!e(o)&&Je(n,i,a,s)}}}function Je(t,e,n,a){var s=t[e];!s||a&&s.tag===a.tag||s.componentInstance.$destroy(),t[e]=null,h(n,e)}function Ve(t){for(var e=t.data,n=t,a=t;s(a.componentInstance);)(a=a.componentInstance._vnode)&&a.data&&(e=Ue(a.data,e));for(;s(n=n.parent);)n&&n.data&&(e=Ue(e,n.data));return Ge(e.staticClass,e.class)}function Ue(t,e){return{staticClass:qe(t.staticClass,e.staticClass),class:s(t.class)?[t.class,e.class]:e.class}}function Ge(t,e){return s(t)||s(e)?qe(t,Be(e)):""}function qe(t,e){return t?e?t+" "+e:t:e||""}function Be(t){return Array.isArray(t)?Ke(t):d(t)?Xe(t):"string"==typeof t?t:""}function Ke(t){for(var e,n="",a=0,i=t.length;a<i;a++)s(e=Be(t[a]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function Xe(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}function Ze(t){return Xr(t)?"svg":"math"===t?"math":void 0}function Qe(t){if(!wi)return!0;if(Qr(t))return!1;if(t=t.toLowerCase(),null!=to[t])return to[t];var e=document.createElement(t);return t.indexOf("-")>-1?to[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:to[t]=/HTMLUnknownElement/.test(e.toString())}function tn(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function en(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function nn(t,e){return document.createElementNS(Br[t],e)}function an(t){return document.createTextNode(t)}function sn(t){return document.createComment(t)}function rn(t,e,n){t.insertBefore(e,n)}function on(t,e){t.removeChild(e)}function dn(t,e){t.appendChild(e)}function un(t){return t.parentNode}function ln(t){return t.nextSibling}function cn(t){return t.tagName}function _n(t,e){t.textContent=e}function mn(t,e){t.setAttribute(e,"")}function fn(t,e){var n=t.data.ref;if(s(n)){var a=t.context,i=t.componentInstance||t.elm,r=a.$refs;e?Array.isArray(r[n])?h(r[n],i):r[n]===i&&(r[n]=void 0):t.data.refInFor?Array.isArray(r[n])?r[n].indexOf(i)<0&&r[n].push(i):r[n]=[i]:r[n]=i}}function hn(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&s(t.data)===s(e.data)&&pn(t,e)||i(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&a(e.asyncFactory.error))}function pn(t,e){if("input"!==t.tag)return!0;var n,a=s(n=t.data)&&s(n=n.attrs)&&n.type,i=s(n=e.data)&&s(n=n.attrs)&&n.type;return a===i||eo(a)&&eo(i)}function vn(t,e,n){var a,i,r={};for(a=e;a<=n;++a)i=t[a].key,s(i)&&(r[i]=a);return r}function yn(t,e){(t.data.directives||e.data.directives)&&gn(t,e)}function gn(t,e){var n,a,s,i=t===so,r=e===so,o=Mn(t.data.directives,t.context),d=Mn(e.data.directives,e.context),u=[],l=[];for(n in d)a=o[n],s=d[n],a?(s.oldValue=a.value,bn(s,"update",e,t),s.def&&s.def.componentUpdated&&l.push(s)):(bn(s,"bind",e,t),s.def&&s.def.inserted&&u.push(s));if(u.length){var c=function(){for(var n=0;n<u.length;n++)bn(u[n],"inserted",e,t)};i?mt(e,"insert",c):c()}if(l.length&&mt(e,"postpatch",function(){for(var n=0;n<l.length;n++)bn(l[n],"componentUpdated",e,t)}),!i)for(n in o)d[n]||bn(o[n],"unbind",t,t,r)}function Mn(t,e){var n=Object.create(null);if(!t)return n;var a,s;for(a=0;a<t.length;a++)s=t[a],s.modifiers||(s.modifiers=oo),n[Ln(s)]=s,s.def=X(e.$options,"directives",s.name,!0);return n}function Ln(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function bn(t,e,n,a,s){var i=t.def&&t.def[e];if(i)try{i(n.elm,t,n,a,s)}catch(a){at(a,n.context,"directive "+t.name+" "+e+" hook")}}function Yn(t,e){var n=e.componentOptions;if(!(s(n)&&!1===n.Ctor.options.inheritAttrs||a(t.data.attrs)&&a(e.data.attrs))){var i,r,o=e.elm,d=t.data.attrs||{},u=e.data.attrs||{};s(u.__ob__)&&(u=e.data.attrs=L({},u));for(i in u)r=u[i],d[i]!==r&&kn(o,i,r);(Si||ji)&&u.value!==d.value&&kn(o,"value",u.value);for(i in d)a(u[i])&&(Ur(i)?o.removeAttributeNS(Vr,Gr(i)):Rr(i)||o.removeAttribute(i))}}function kn(t,e,n){t.tagName.indexOf("-")>-1?wn(t,e,n):Jr(e)?qr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Rr(e)?t.setAttribute(e,qr(n)||"false"===n?"false":"true"):Ur(e)?qr(n)?t.removeAttributeNS(Vr,Gr(e)):t.setAttributeNS(Vr,e,n):wn(t,e,n)}function wn(t,e,n){if(qr(n))t.removeAttribute(e);else{if(Si&&!Hi&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var a=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",a)};t.addEventListener("input",a),t.__ieph=!0}t.setAttribute(e,n)}}function Dn(t,e){var n=e.elm,i=e.data,r=t.data;if(!(a(i.staticClass)&&a(i.class)&&(a(r)||a(r.staticClass)&&a(r.class)))){var o=Ve(e),d=n._transitionClasses;s(d)&&(o=qe(o,Be(d))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}function Tn(t){function e(){(r||(r=[])).push(t.slice(f,s).trim()),f=s+1}var n,a,s,i,r,o=!1,d=!1,u=!1,l=!1,c=0,_=0,m=0,f=0;for(s=0;s<t.length;s++)if(a=n,n=t.charCodeAt(s),o)39===n&&92!==a&&(o=!1);else if(d)34===n&&92!==a&&(d=!1);else if(u)96===n&&92!==a&&(u=!1);else if(l)47===n&&92!==a&&(l=!1);else if(124!==n||124===t.charCodeAt(s+1)||124===t.charCodeAt(s-1)||c||_||m){switch(n){case 34:d=!0;break;case 39:o=!0;break;case 96:u=!0;break;case 40:m++;break;case 41:m--;break;case 91:_++;break;case 93:_--;break;case 123:c++;break;case 125:c--}if(47===n){for(var h=s-1,p=void 0;h>=0&&" "===(p=t.charAt(h));h--);p&&_o.test(p)||(l=!0)}}else void 0===i?(f=s+1,i=t.slice(0,s).trim()):e();if(void 0===i?i=t.slice(0,s).trim():0!==f&&e(),r)for(s=0;s<r.length;s++)i=xn(i,r[s]);return i}function xn(t,e){var n=e.indexOf("(");if(n<0)return'_f("'+e+'")('+t+")";var a=e.slice(0,n),s=e.slice(n+1);return'_f("'+a+'")('+t+(")"!==s?","+s:s)}function Sn(t){console.error("[Vue compiler]: "+t)}function Hn(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function jn(t,e,n){(t.props||(t.props=[])).push({name:e,value:n}),t.plain=!1}function On(t,e,n){(t.attrs||(t.attrs=[])).push({name:e,value:n}),t.plain=!1}function An(t,e,n){t.attrsMap[e]=n,t.attrsList.push({name:e,value:n})}function Pn(t,e,n,a,s,i){(t.directives||(t.directives=[])).push({name:e,rawName:n,value:a,arg:s,modifiers:i}),t.plain=!1}function En(t,e,n,a,s,i){a=a||ri,a.capture&&(delete a.capture,e="!"+e),a.once&&(delete a.once,e="~"+e),a.passive&&(delete a.passive,e="&"+e),"click"===e&&(a.right?(e="contextmenu",delete a.right):a.middle&&(e="mouseup"));var r;a.native?(delete a.native,r=t.nativeEvents||(t.nativeEvents={})):r=t.events||(t.events={});var o={value:n.trim()};a!==ri&&(o.modifiers=a);var d=r[e];Array.isArray(d)?s?d.unshift(o):d.push(o):r[e]=d?s?[o,d]:[d,o]:o,t.plain=!1}function $n(t,e,n){var a=Cn(t,":"+e)||Cn(t,"v-bind:"+e);if(null!=a)return Tn(a);if(!1!==n){var s=Cn(t,e);if(null!=s)return JSON.stringify(s)}}function Cn(t,e,n){var a;if(null!=(a=t.attrsMap[e]))for(var s=t.attrsList,i=0,r=s.length;i<r;i++)if(s[i].name===e){s.splice(i,1);break}return n&&delete t.attrsMap[e],a}function Wn(t,e,n){var a=n||{},s=a.number,i=a.trim,r="$$v";i&&(r="(typeof $$v === 'string'? $$v.trim(): $$v)"),s&&(r="_n("+r+")");var o=Fn(e,r);t.model={value:"("+e+")",expression:'"'+e+'"',callback:"function ($$v) {"+o+"}"}}function Fn(t,e){var n=Nn(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Nn(t){if(t=t.trim(),jr=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<jr-1)return Pr=t.lastIndexOf("."),Pr>-1?{exp:t.slice(0,Pr),key:'"'+t.slice(Pr+1)+'"'}:{exp:t,key:null};for(Or=t,Pr=Er=$r=0;!zn();)Ar=In(),Rn(Ar)?Vn(Ar):91===Ar&&Jn(Ar);return{exp:t.slice(0,Er),key:t.slice(Er+1,$r)}}function In(){return Or.charCodeAt(++Pr)}function zn(){return Pr>=jr}function Rn(t){return 34===t||39===t}function Jn(t){var e=1;for(Er=Pr;!zn();)if(t=In(),Rn(t))Vn(t);else if(91===t&&e++,93===t&&e--,0===e){$r=Pr;break}}function Vn(t){for(var e=t;!zn()&&(t=In())!==e;);}function Un(t,e,n){Cr=n;var a=e.value,s=e.modifiers,i=t.tag,r=t.attrsMap.type;if(t.component)return Wn(t,a,s),!1;if("select"===i)Bn(t,a,s);else if("input"===i&&"checkbox"===r)Gn(t,a,s);else if("input"===i&&"radio"===r)qn(t,a,s);else if("input"===i||"textarea"===i)Kn(t,a,s);else if(!bi.isReservedTag(i))return Wn(t,a,s),!1;return!0}function Gn(t,e,n){var a=n&&n.number,s=$n(t,"value")||"null",i=$n(t,"true-value")||"true",r=$n(t,"false-value")||"false";jn(t,"checked","Array.isArray("+e+")?_i("+e+","+s+")>-1"+("true"===i?":("+e+")":":_q("+e+","+i+")")),En(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+r+");if(Array.isArray($$a)){var $$v="+(a?"_n("+s+")":s)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Fn(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Fn(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Fn(e,"$$c")+"}",null,!0)}function qn(t,e,n){var a=n&&n.number,s=$n(t,"value")||"null";s=a?"_n("+s+")":s,jn(t,"checked","_q("+e+","+s+")"),En(t,"change",Fn(e,s),null,!0)}function Bn(t,e,n){var a=n&&n.number,s='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(a?"_n(val)":"val")+"})",i="var $$selectedVal = "+s+";";i=i+" "+Fn(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),En(t,"change",i,null,!0)}function Kn(t,e,n){var a=t.attrsMap.type,s=n||{},i=s.lazy,r=s.number,o=s.trim,d=!i&&"range"!==a,u=i?"change":"range"===a?mo:"input",l="$event.target.value";o&&(l="$event.target.value.trim()"),r&&(l="_n("+l+")");var c=Fn(e,l);d&&(c="if($event.target.composing)return;"+c),jn(t,"value","("+e+")"),En(t,u,c,null,!0),(o||r)&&En(t,"blur","$forceUpdate()")}function Xn(t){if(s(t[mo])){var e=Si?"change":"input";t[e]=[].concat(t[mo],t[e]||[]),delete t[mo]}s(t[fo])&&(t.change=[].concat(t[fo],t.change||[]),delete t[fo])}function Zn(t,e,n){var a=Wr;return function s(){null!==t.apply(null,arguments)&&ta(e,s,n,a)}}function Qn(t,e,n,a,s){e=ot(e),n&&(e=Zn(e,t,a)),Wr.addEventListener(t,e,Pi?{capture:a,passive:s}:a)}function ta(t,e,n,a){(a||Wr).removeEventListener(t,e._withTask||e,n)}function ea(t,e){if(!a(t.data.on)||!a(e.data.on)){var n=e.data.on||{},s=t.data.on||{};Wr=e.elm,Xn(n),_t(n,s,Qn,ta,e.context),Wr=void 0}}function na(t,e){if(!a(t.data.domProps)||!a(e.data.domProps)){var n,i,r=e.elm,o=t.data.domProps||{},d=e.data.domProps||{};s(d.__ob__)&&(d=e.data.domProps=L({},d));for(n in o)a(d[n])&&(r[n]="");for(n in d){if(i=d[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===o[n])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===n){r._value=i;var u=a(i)?"":String(i);aa(r,u)&&(r.value=u)}else r[n]=i}}}function aa(t,e){return!t.composing&&("OPTION"===t.tagName||sa(t,e)||ia(t,e))}function sa(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}function ia(t,e){var n=t.value,a=t._vModifiers;if(s(a)){if(a.lazy)return!1;if(a.number)return m(n)!==m(e);if(a.trim)return n.trim()!==e.trim()}return n!==e}function ra(t){var e=oa(t.style);return t.staticStyle?L(t.staticStyle,e):e}function oa(t){return Array.isArray(t)?b(t):"string"==typeof t?vo(t):t}function da(t,e){var n,a={};if(e)for(var s=t;s.componentInstance;)(s=s.componentInstance._vnode)&&s.data&&(n=ra(s.data))&&L(a,n);(n=ra(t.data))&&L(a,n);for(var i=t;i=i.parent;)i.data&&(n=ra(i.data))&&L(a,n);return a}function ua(t,e){var n=e.data,i=t.data;if(!(a(n.staticStyle)&&a(n.style)&&a(i.staticStyle)&&a(i.style))){var r,o,d=e.elm,u=i.staticStyle,l=i.normalizedStyle||i.style||{},c=u||l,_=oa(e.data.style)||{};e.data.normalizedStyle=s(_.__ob__)?L({},_):_;var m=da(e,!0);for(o in c)a(m[o])&&Mo(d,o,"");for(o in m)(r=m[o])!==c[o]&&Mo(d,o,null==r?"":r)}}function la(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function ca(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",a=" "+e+" ";n.indexOf(a)>=0;)n=n.replace(a," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function _a(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&L(e,ko(t.name||"v")),L(e,t),e}return"string"==typeof t?ko(t):void 0}}function ma(t){Oo(function(){Oo(t)})}function fa(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),la(t,e))}function ha(t,e){t._transitionClasses&&h(t._transitionClasses,e),ca(t,e)}function pa(t,e,n){var a=va(t,e),s=a.type,i=a.timeout,r=a.propCount;if(!s)return n();var o=s===Do?So:jo,d=0,u=function(){t.removeEventListener(o,l),n()},l=function(e){e.target===t&&++d>=r&&u()};setTimeout(function(){d<r&&u()},i+1),t.addEventListener(o,l)}function va(t,e){var n,a=window.getComputedStyle(t),s=a[xo+"Delay"].split(", "),i=a[xo+"Duration"].split(", "),r=ya(s,i),o=a[Ho+"Delay"].split(", "),d=a[Ho+"Duration"].split(", "),u=ya(o,d),l=0,c=0;return e===Do?r>0&&(n=Do,l=r,c=i.length):e===To?u>0&&(n=To,l=u,c=d.length):(l=Math.max(r,u),n=l>0?r>u?Do:To:null,c=n?n===Do?i.length:d.length:0),{type:n,timeout:l,propCount:c,hasTransform:n===Do&&Ao.test(a[xo+"Property"])}}function ya(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return ga(e)+ga(t[n])}))}function ga(t){return 1e3*Number(t.slice(0,-1))}function Ma(t,e){var n=t.elm;s(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=_a(t.data.transition);if(!a(i)&&!s(n._enterCb)&&1===n.nodeType){for(var r=i.css,o=i.type,u=i.enterClass,l=i.enterToClass,c=i.enterActiveClass,_=i.appearClass,f=i.appearToClass,h=i.appearActiveClass,p=i.beforeEnter,v=i.enter,y=i.afterEnter,g=i.enterCancelled,M=i.beforeAppear,L=i.appear,b=i.afterAppear,Y=i.appearCancelled,k=i.duration,w=_r,T=_r.$vnode;T&&T.parent;)T=T.parent,w=T.context;var x=!w._isMounted||!t.isRootInsert;if(!x||L||""===L){var S=x&&_?_:u,H=x&&h?h:c,j=x&&f?f:l,O=x?M||p:p,A=x&&"function"==typeof L?L:v,P=x?b||y:y,E=x?Y||g:g,$=m(d(k)?k.enter:k),C=!1!==r&&!Hi,W=Ya(A),F=n._enterCb=D(function(){C&&(ha(n,j),ha(n,H)),F.cancelled?(C&&ha(n,S),E&&E(n)):P&&P(n),n._enterCb=null});t.data.show||mt(t,"insert",function(){var e=n.parentNode,a=e&&e._pending&&e._pending[t.key];a&&a.tag===t.tag&&a.elm._leaveCb&&a.elm._leaveCb(),A&&A(n,F)}),O&&O(n),C&&(fa(n,S),fa(n,H),ma(function(){ha(n,S),F.cancelled||(fa(n,j),W||(ba($)?setTimeout(F,$):pa(n,o,F)))})),t.data.show&&(e&&e(),A&&A(n,F)),C||W||F()}}}function La(t,e){function n(){Y.cancelled||(t.data.show||((i.parentNode._pending||(i.parentNode._pending={}))[t.key]=t),f&&f(i),M&&(fa(i,l),fa(i,_),ma(function(){ha(i,l),Y.cancelled||(fa(i,c),L||(ba(b)?setTimeout(Y,b):pa(i,u,Y)))})),h&&h(i,Y),M||L||Y())}var i=t.elm;s(i._enterCb)&&(i._enterCb.cancelled=!0,i._enterCb());var r=_a(t.data.transition);if(a(r)||1!==i.nodeType)return e();if(!s(i._leaveCb)){var o=r.css,u=r.type,l=r.leaveClass,c=r.leaveToClass,_=r.leaveActiveClass,f=r.beforeLeave,h=r.leave,p=r.afterLeave,v=r.leaveCancelled,y=r.delayLeave,g=r.duration,M=!1!==o&&!Hi,L=Ya(h),b=m(d(g)?g.leave:g),Y=i._leaveCb=D(function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[t.key]=null),M&&(ha(i,c),ha(i,_)),Y.cancelled?(M&&ha(i,l),v&&v(i)):(e(),p&&p(i)),i._leaveCb=null});y?y(n):n()}}function ba(t){return"number"==typeof t&&!isNaN(t)}function Ya(t){if(a(t))return!1;var e=t.fns;return s(e)?Ya(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function ka(t,e){!0!==e.data.show&&Ma(e)}function wa(t,e,n){Da(t,e,n),(Si||ji)&&setTimeout(function(){Da(t,e,n)},0)}function Da(t,e,n){var a=e.value,s=t.multiple;if(!s||Array.isArray(a)){for(var i,r,o=0,d=t.options.length;o<d;o++)if(r=t.options[o],s)i=w(a,xa(r))>-1,r.selected!==i&&(r.selected=i);else if(k(xa(r),a))return void(t.selectedIndex!==o&&(t.selectedIndex=o));s||(t.selectedIndex=-1)}}function Ta(t,e){return e.every(function(e){return!k(e,t)})}function xa(t){return"_value"in t?t._value:t.value}function Sa(t){t.target.composing=!0}function Ha(t){t.target.composing&&(t.target.composing=!1,ja(t.target,"input"))}function ja(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Oa(t){return!t.componentInstance||t.data&&t.data.transition?t:Oa(t.componentInstance._vnode)}function Aa(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Aa(kt(e.children)):t}function Pa(t){var e={},n=t.$options;for(var a in n.propsData)e[a]=t[a];var s=n._parentListeners;for(var i in s)e[_i(i)]=s[i];return e}function Ea(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function $a(t){for(;t=t.parent;)if(t.data.transition)return!0}function Ca(t,e){return e.key===t.key&&e.tag===t.tag}function Wa(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Fa(t){t.data.newPos=t.elm.getBoundingClientRect()}function Na(t){var e=t.data.pos,n=t.data.newPos,a=e.left-n.left,s=e.top-n.top;if(a||s){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+a+"px,"+s+"px)",i.transitionDuration="0s"}}function Ia(t,e){var n=e?Bo(e):Go;if(n.test(t)){for(var a,s,i,r=[],o=[],d=n.lastIndex=0;a=n.exec(t);){s=a.index,s>d&&(o.push(i=t.slice(d,s)),r.push(JSON.stringify(i)));var u=Tn(a[1].trim());r.push("_s("+u+")"),o.push({"@binding":u}),d=s+a[0].length}return d<t.length&&(o.push(i=t.slice(d)),r.push(JSON.stringify(i))),{expression:r.join("+"),tokens:o}}}function za(t,e){var n=(e.warn,Cn(t,"class"));n&&(t.staticClass=JSON.stringify(n));var a=$n(t,"class",!1);a&&(t.classBinding=a)}function Ra(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}function Ja(t,e){var n=(e.warn,Cn(t,"style"));if(n){t.staticStyle=JSON.stringify(vo(n))}var a=$n(t,"style",!1);a&&(t.styleBinding=a)}function Va(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}function Ua(t,e){var n=e?Td:Dd;return t.replace(n,function(t){return wd[t]})}function Ga(t,e){function n(e){l+=e,t=t.substring(e)}function a(t,n,a){var s,o;if(null==n&&(n=l),null==a&&(a=l),t&&(o=t.toLowerCase()),t)for(s=r.length-1;s>=0&&r[s].lowerCasedTag!==o;s--);else s=0;if(s>=0){for(var d=r.length-1;d>=s;d--)e.end&&e.end(r[d].tag,n,a);r.length=s,i=s&&r[s-1].tag}else"br"===o?e.start&&e.start(t,[],!0,n,a):"p"===o&&(e.start&&e.start(t,[],!1,n,a),e.end&&e.end(t,n,a))}for(var s,i,r=[],o=e.expectHTML,d=e.isUnaryTag||vi,u=e.canBeLeftOpenTag||vi,l=0;t;){if(s=t,i&&Yd(i)){var c=0,_=i.toLowerCase(),m=kd[_]||(kd[_]=new RegExp("([\\s\\S]*?)(</"+_+"[^>]*>)","i")),f=t.replace(m,function(t,n,a){return c=a.length,Yd(_)||"noscript"===_||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Sd(_,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});l+=t.length-f.length,t=f,a(_,l-c,l)}else{var h=t.indexOf("<");if(0===h){if(ud.test(t)){var p=t.indexOf("--\x3e");if(p>=0){e.shouldKeepComment&&e.comment(t.substring(4,p)),n(p+3);continue}}if(ld.test(t)){var v=t.indexOf("]>");if(v>=0){n(v+2);continue}}var y=t.match(dd);if(y){n(y[0].length);continue}var g=t.match(od);if(g){var M=l;n(g[0].length),a(g[1],M,l);continue}var L=function(){var e=t.match(id);if(e){var a={tagName:e[1],attrs:[],start:l};n(e[0].length);for(var s,i;!(s=t.match(rd))&&(i=t.match(nd));)n(i[0].length),a.attrs.push(i);if(s)return a.unarySlash=s[1],n(s[0].length),a.end=l,a}}();if(L){!function(t){var n=t.tagName,s=t.unarySlash;o&&("p"===i&&ed(n)&&a(i),u(n)&&i===n&&a(n));for(var l=d(n)||!!s,c=t.attrs.length,_=new Array(c),m=0;m<c;m++){var f=t.attrs[m];cd&&-1===f[0].indexOf('""')&&(""===f[3]&&delete f[3],""===f[4]&&delete f[4],""===f[5]&&delete f[5]);var h=f[3]||f[4]||f[5]||"",p="a"===n&&"href"===f[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;_[m]={name:f[1],value:Ua(h,p)}}l||(r.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:_}),i=n),e.start&&e.start(n,_,l,t.start,t.end)}(L),Sd(i,t)&&n(1);continue}}var b=void 0,Y=void 0,k=void 0;if(h>=0){for(Y=t.slice(h);!(od.test(Y)||id.test(Y)||ud.test(Y)||ld.test(Y)||(k=Y.indexOf("<",1))<0);)h+=k,Y=t.slice(h);b=t.substring(0,h),n(h)}h<0&&(b=t,t=""),e.chars&&b&&e.chars(b)}if(t===s){e.chars&&e.chars(t);break}}a()}function qa(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:ms(e),parent:n,children:[]}}function Ba(t,e){function n(t){t.pre&&(o=!1),vd(t.tag)&&(d=!1);for(var n=0;n<pd.length;n++)pd[n](t,e)}_d=e.warn||Sn,vd=e.isPreTag||vi,yd=e.mustUseProp||vi,gd=e.getTagNamespace||vi,fd=Hn(e.modules,"transformNode"),hd=Hn(e.modules,"preTransformNode"),pd=Hn(e.modules,"postTransformNode"),md=e.delimiters;var a,s,i=[],r=!1!==e.preserveWhitespace,o=!1,d=!1;return Ga(t,{warn:_d,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,start:function(t,r,u){var l=s&&s.ns||gd(t);Si&&"svg"===l&&(r=ps(r));var c=qa(t,r,s);l&&(c.ns=l),hs(c)&&!Wi()&&(c.forbidden=!0);for(var _=0;_<hd.length;_++)c=hd[_](c,e)||c;if(o||(Ka(c),c.pre&&(o=!0)),vd(c.tag)&&(d=!0),o?Xa(c):c.processed||(es(c),as(c),os(c),Za(c,e)),a?i.length||a.if&&(c.elseif||c.else)&&rs(a,{exp:c.elseif,block:c}):a=c,s&&!c.forbidden)if(c.elseif||c.else)ss(c,s);else if(c.slotScope){s.plain=!1;var m=c.slotTarget||'"default"';(s.scopedSlots||(s.scopedSlots={}))[m]=c}else s.children.push(c),c.parent=s;u?n(c):(s=c,i.push(c))},end:function(){var t=i[i.length-1],e=t.children[t.children.length-1];e&&3===e.type&&" "===e.text&&!d&&t.children.pop(),i.length-=1,s=i[i.length-1],n(t)},chars:function(t){if(s&&(!Si||"textarea"!==s.tag||s.attrsMap.placeholder!==t)){var e=s.children;if(t=d||t.trim()?fs(s)?t:Wd(t):r&&e.length?" ":""){var n;!o&&" "!==t&&(n=Ia(t,md))?e.push({type:2,expression:n.expression,tokens:n.tokens,text:t}):" "===t&&e.length&&" "===e[e.length-1].text||e.push({type:3,text:t})}}},comment:function(t){s.children.push({type:3,text:t,isComment:!0})}}),a}function Ka(t){null!=Cn(t,"v-pre")&&(t.pre=!0)}function Xa(t){var e=t.attrsList.length;if(e)for(var n=t.attrs=new Array(e),a=0;a<e;a++)n[a]={name:t.attrsList[a].name,value:JSON.stringify(t.attrsList[a].value)};else t.pre||(t.plain=!0)}function Za(t,e){Qa(t),t.plain=!t.key&&!t.attrsList.length,ts(t),ds(t),us(t);for(var n=0;n<fd.length;n++)t=fd[n](t,e)||t;ls(t)}function Qa(t){var e=$n(t,"key");e&&(t.key=e)}function ts(t){var e=$n(t,"ref");e&&(t.ref=e,t.refInFor=cs(t))}function es(t){var e;if(e=Cn(t,"v-for")){var n=ns(e);n&&L(t,n)}}function ns(t){var e=t.match(Od);if(e){var n={};n.for=e[2].trim();var a=e[1].trim().replace(Pd,""),s=a.match(Ad);return s?(n.alias=a.replace(Ad,""),n.iterator1=s[1].trim(),s[2]&&(n.iterator2=s[2].trim())):n.alias=a,n}}function as(t){var e=Cn(t,"v-if");if(e)t.if=e,rs(t,{exp:e,block:t});else{null!=Cn(t,"v-else")&&(t.else=!0);var n=Cn(t,"v-else-if");n&&(t.elseif=n)}}function ss(t,e){var n=is(e.children);n&&n.if&&rs(n,{exp:t.elseif,block:t})}function is(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}function rs(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function os(t){null!=Cn(t,"v-once")&&(t.once=!0)}function ds(t){if("slot"===t.tag)t.slotName=$n(t,"name");else{var e;"template"===t.tag?(e=Cn(t,"scope"),t.slotScope=e||Cn(t,"slot-scope")):(e=Cn(t,"slot-scope"))&&(t.slotScope=e);var n=$n(t,"slot");n&&(t.slotTarget='""'===n?'"default"':n,"template"===t.tag||t.slotScope||On(t,"slot",n))}}function us(t){var e;(e=$n(t,"is"))&&(t.component=e),null!=Cn(t,"inline-template")&&(t.inlineTemplate=!0)}function ls(t){var e,n,a,s,i,r,o,d=t.attrsList;for(e=0,n=d.length;e<n;e++)if(a=s=d[e].name,i=d[e].value,jd.test(a))if(t.hasBindings=!0,r=_s(a),r&&(a=a.replace(Cd,"")),$d.test(a))a=a.replace($d,""),i=Tn(i),o=!1,r&&(r.prop&&(o=!0,"innerHtml"===(a=_i(a))&&(a="innerHTML")),r.camel&&(a=_i(a)),r.sync&&En(t,"update:"+_i(a),Fn(i,"$event"))),o||!t.component&&yd(t.tag,t.attrsMap.type,a)?jn(t,a,i):On(t,a,i);else if(Hd.test(a))a=a.replace(Hd,""),En(t,a,i,r,!1,_d);else{a=a.replace(jd,"");var u=a.match(Ed),l=u&&u[1];l&&(a=a.slice(0,-(l.length+1))),Pn(t,a,s,i,l,r)}else{On(t,a,JSON.stringify(i)),!t.component&&"muted"===a&&yd(t.tag,t.attrsMap.type,a)&&jn(t,a,"true")}}function cs(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}function _s(t){var e=t.match(Cd);if(e){var n={};return e.forEach(function(t){n[t.slice(1)]=!0}),n}}function ms(t){for(var e={},n=0,a=t.length;n<a;n++)e[t[n].name]=t[n].value;return e}function fs(t){return"script"===t.tag||"style"===t.tag}function hs(t){return"style"===t.tag||"script"===t.tag&&(!t.attrsMap.type||"text/javascript"===t.attrsMap.type)}function ps(t){for(var e=[],n=0;n<t.length;n++){var a=t[n];Fd.test(a.name)||(a.name=a.name.replace(Nd,""),e.push(a))}return e}function vs(t,e){if("input"===t.tag){var n=t.attrsMap;if(!n["v-model"])return;var a;if((n[":type"]||n["v-bind:type"])&&(a=$n(t,"type")),n.type||a||!n["v-bind"]||(a="("+n["v-bind"]+").type"),a){var s=Cn(t,"v-if",!0),i=s?"&&("+s+")":"",r=null!=Cn(t,"v-else",!0),o=Cn(t,"v-else-if",!0),d=ys(t);es(d),An(d,"type","checkbox"),Za(d,e),d.processed=!0,d.if="("+a+")==='checkbox'"+i,rs(d,{exp:d.if,block:d});var u=ys(t);Cn(u,"v-for",!0),An(u,"type","radio"),Za(u,e),rs(d,{exp:"("+a+")==='radio'"+i,block:u});var l=ys(t);return Cn(l,"v-for",!0),An(l,":type",a),Za(l,e),rs(d,{exp:s,block:l}),r?d.else=!0:o&&(d.elseif=o),d}}}function ys(t){return qa(t.tag,t.attrsList.slice(),t.parent)}function gs(t,e){e.value&&jn(t,"textContent","_s("+e.value+")")}function Ms(t,e){e.value&&jn(t,"innerHTML","_s("+e.value+")")}function Ls(t,e){t&&(Md=Vd(e.staticKeys||""),Ld=e.isReservedTag||vi,Ys(t),ks(t,!1))}function bs(t){return f("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(t?","+t:""))}function Ys(t){if(t.static=ws(t),1===t.type){if(!Ld(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var e=0,n=t.children.length;e<n;e++){var a=t.children[e];Ys(a),a.static||(t.static=!1)}if(t.ifConditions)for(var s=1,i=t.ifConditions.length;s<i;s++){var r=t.ifConditions[s].block;Ys(r),r.static||(t.static=!1)}}}function ks(t,e){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=e),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var n=0,a=t.children.length;n<a;n++)ks(t.children[n],e||!!t.for);if(t.ifConditions)for(var s=1,i=t.ifConditions.length;s<i;s++)ks(t.ifConditions[s].block,e)}}function ws(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t.if||t.for||di(t.tag)||!Ld(t.tag)||Ds(t)||!Object.keys(t).every(Md))))}function Ds(t){for(;t.parent;){if(t=t.parent,"template"!==t.tag)return!1;if(t.for)return!0}return!1}function Ts(t,e,n){var a=e?"nativeOn:{":"on:{";for(var s in t)a+='"'+s+'":'+xs(s,t[s])+",";return a.slice(0,-1)+"}"}function xs(t,e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return xs(t,e)}).join(",")+"]";var n=Gd.test(e.value),a=Ud.test(e.value);if(e.modifiers){var s="",i="",r=[];for(var o in e.modifiers)if(Xd[o])i+=Xd[o],qd[o]&&r.push(o);else if("exact"===o){var d=e.modifiers;i+=Kd(["ctrl","shift","alt","meta"].filter(function(t){return!d[t]}).map(function(t){return"$event."+t+"Key"}).join("||"))}else r.push(o);r.length&&(s+=Ss(r)),i&&(s+=i);return"function($event){"+s+(n?"return "+e.value+"($event)":a?"return ("+e.value+")($event)":e.value)+"}"}return n||a?e.value:"function($event){"+e.value+"}"}function Ss(t){return"if(!('button' in $event)&&"+t.map(Hs).join("&&")+")return null;"}function Hs(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=qd[t],a=Bd[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(a)+")"}function js(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}}function Os(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}}function As(t,e){var n=new Qd(e);return{render:"with(this){return "+(t?Ps(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ps(t,e){if(t.staticRoot&&!t.staticProcessed)return Es(t,e);if(t.once&&!t.onceProcessed)return $s(t,e);if(t.for&&!t.forProcessed)return Fs(t,e);if(t.if&&!t.ifProcessed)return Cs(t,e);if("template"!==t.tag||t.slotTarget){if("slot"===t.tag)return Zs(t,e);var n;if(t.component)n=Qs(t.component,t,e);else{var a=t.plain?void 0:Ns(t,e),s=t.inlineTemplate?null:Us(t,e,!0);n="_c('"+t.tag+"'"+(a?","+a:"")+(s?","+s:"")+")"}for(var i=0;i<e.transforms.length;i++)n=e.transforms[i](t,n);return n}return Us(t,e)||"void 0"}function Es(t,e){return t.staticProcessed=!0,e.staticRenderFns.push("with(this){return "+Ps(t,e)+"}"),"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function $s(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return Cs(t,e);if(t.staticInFor){for(var n="",a=t.parent;a;){if(a.for){n=a.key;break}a=a.parent}return n?"_o("+Ps(t,e)+","+e.onceId+++","+n+")":Ps(t,e)}return Es(t,e)}function Cs(t,e,n,a){return t.ifProcessed=!0,Ws(t.ifConditions.slice(),e,n,a)}function Ws(t,e,n,a){function s(t){return n?n(t,e):t.once?$s(t,e):Ps(t,e)}if(!t.length)return a||"_e()";var i=t.shift();return i.exp?"("+i.exp+")?"+s(i.block)+":"+Ws(t,e,n,a):""+s(i.block)}function Fs(t,e,n,a){var s=t.for,i=t.alias,r=t.iterator1?","+t.iterator1:"",o=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,(a||"_l")+"(("+s+"),function("+i+r+o+"){return "+(n||Ps)(t,e)+"})"}function Ns(t,e){var n="{",a=Is(t,e);a&&(n+=a+","),t.key&&(n+="key:"+t.key+","),t.ref&&(n+="ref:"+t.ref+","),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'+t.tag+'",');for(var s=0;s<e.dataGenFns.length;s++)n+=e.dataGenFns[s](t);if(t.attrs&&(n+="attrs:{"+ti(t.attrs)+"},"),t.props&&(n+="domProps:{"+ti(t.props)+"},"),t.events&&(n+=Ts(t.events,!1,e.warn)+","),t.nativeEvents&&(n+=Ts(t.nativeEvents,!0,e.warn)+","),t.slotTarget&&!t.slotScope&&(n+="slot:"+t.slotTarget+","),t.scopedSlots&&(n+=Rs(t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var i=zs(t,e);i&&(n+=i+",")}return n=n.replace(/,$/,"")+"}",t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Is(t,e){var n=t.directives;if(n){var a,s,i,r,o="directives:[",d=!1;for(a=0,s=n.length;a<s;a++){i=n[a],r=!0;var u=e.directives[i.name];u&&(r=!!u(t,i,e.warn)),r&&(d=!0,o+='{name:"'+i.name+'",rawName:"'+i.rawName+'"'+(i.value?",value:("+i.value+"),expression:"+JSON.stringify(i.value):"")+(i.arg?',arg:"'+i.arg+'"':"")+(i.modifiers?",modifiers:"+JSON.stringify(i.modifiers):"")+"},")}return d?o.slice(0,-1)+"]":void 0}}function zs(t,e){var n=t.children[0];if(1===n.type){var a=As(n,e.options);return"inlineTemplate:{render:function(){"+a.render+"},staticRenderFns:["+a.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}function Rs(t,e){return"scopedSlots:_u(["+Object.keys(t).map(function(n){return Js(n,t[n],e)}).join(",")+"])"}function Js(t,e,n){return e.for&&!e.forProcessed?Vs(t,e,n):"{key:"+t+",fn:function("+String(e.slotScope)+"){return "+("template"===e.tag?e.if?e.if+"?"+(Us(e,n)||"undefined")+":undefined":Us(e,n)||"undefined":Ps(e,n))+"}}"}function Vs(t,e,n){var a=e.for,s=e.alias,i=e.iterator1?","+e.iterator1:"",r=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,"_l(("+a+"),function("+s+i+r+"){return "+Js(t,e,n)+"})"}function Us(t,e,n,a,s){var i=t.children;if(i.length){var r=i[0];if(1===i.length&&r.for&&"template"!==r.tag&&"slot"!==r.tag)return(a||Ps)(r,e);var o=n?Gs(i,e.maybeComponent):0,d=s||Bs;return"["+i.map(function(t){return d(t,e)}).join(",")+"]"+(o?","+o:"")}}function Gs(t,e){for(var n=0,a=0;a<t.length;a++){var s=t[a];if(1===s.type){if(qs(s)||s.ifConditions&&s.ifConditions.some(function(t){return qs(t.block)})){n=2;break}(e(s)||s.ifConditions&&s.ifConditions.some(function(t){return e(t.block)}))&&(n=1)}}return n}function qs(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function Bs(t,e){return 1===t.type?Ps(t,e):3===t.type&&t.isComment?Xs(t):Ks(t)}function Ks(t){return"_v("+(2===t.type?t.expression:ei(JSON.stringify(t.text)))+")"}function Xs(t){return"_e("+JSON.stringify(t.text)+")"}function Zs(t,e){var n=t.slotName||'"default"',a=Us(t,e),s="_t("+n+(a?","+a:""),i=t.attrs&&"{"+t.attrs.map(function(t){return _i(t.name)+":"+t.value}).join(",")+"}",r=t.attrsMap["v-bind"];return!i&&!r||a||(s+=",null"),i&&(s+=","+i),r&&(s+=(i?"":",null")+","+r),s+")"}function Qs(t,e,n){var a=e.inlineTemplate?null:Us(e,n,!0);return"_c("+t+","+Ns(e,n)+(a?","+a:"")+")"}function ti(t){for(var e="",n=0;n<t.length;n++){var a=t[n];e+='"'+a.name+'":'+ei(a.value)+","}return e.slice(0,-1)}function ei(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function ni(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),Y}}function ai(t){var e=Object.create(null);return function(n,a,s){a=L({},a);a.warn;delete a.warn;var i=a.delimiters?String(a.delimiters)+n:n;if(e[i])return e[i];var r=t(n,a),o={},d=[];return o.render=ni(r.render,d),o.staticRenderFns=r.staticRenderFns.map(function(t){return ni(t,d)}),e[i]=o}}function si(t){return bd=bd||document.createElement("div"),bd.innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',bd.innerHTML.indexOf(" ")>0}function ii(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}/*!
|
2 |
+
* Vue.js v2.5.16
|
3 |
+
* (c) 2014-2018 Evan You
|
4 |
+
* Released under the MIT License.
|
5 |
+
*/
|
6 |
+
var ri=Object.freeze({}),oi=Object.prototype.toString,di=f("slot,component",!0),ui=f("key,ref,slot,slot-scope,is"),li=Object.prototype.hasOwnProperty,ci=/-(\w)/g,_i=v(function(t){return t.replace(ci,function(t,e){return e?e.toUpperCase():""})}),mi=v(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),fi=/\B([A-Z])/g,hi=v(function(t){return t.replace(fi,"-$1").toLowerCase()}),pi=Function.prototype.bind?g:y,vi=function(t,e,n){return!1},yi=function(t){return t},gi="data-server-rendered",Mi=["component","directive","filter"],Li=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],bi={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:vi,isReservedAttr:vi,isUnknownElement:vi,getTagNamespace:Y,parsePlatformTagName:yi,mustUseProp:vi,_lifecycleHooks:Li},Yi=/[^\w.$]/,ki="__proto__"in{},wi="undefined"!=typeof window,Di="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,Ti=Di&&WXEnvironment.platform.toLowerCase(),xi=wi&&window.navigator.userAgent.toLowerCase(),Si=xi&&/msie|trident/.test(xi),Hi=xi&&xi.indexOf("msie 9.0")>0,ji=xi&&xi.indexOf("edge/")>0,Oi=(xi&&xi.indexOf("android"),xi&&/iphone|ipad|ipod|ios/.test(xi)||"ios"===Ti),Ai=(xi&&/chrome\/\d+/.test(xi),{}.watch),Pi=!1;if(wi)try{var Ei={};Object.defineProperty(Ei,"passive",{get:function(){Pi=!0}}),window.addEventListener("test-passive",null,Ei)}catch(t){}var $i,Ci,Wi=function(){return void 0===$i&&($i=!wi&&!Di&&void 0!==t&&"server"===t.process.env.VUE_ENV),$i},Fi=wi&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ni="undefined"!=typeof Symbol&&H(Symbol)&&"undefined"!=typeof Reflect&&H(Reflect.ownKeys);Ci="undefined"!=typeof Set&&H(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var Ii=Y,zi=0,Ri=function(){this.id=zi++,this.subs=[]};Ri.prototype.addSub=function(t){this.subs.push(t)},Ri.prototype.removeSub=function(t){h(this.subs,t)},Ri.prototype.depend=function(){Ri.target&&Ri.target.addDep(this)},Ri.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},Ri.target=null;var Ji=[],Vi=function(t,e,n,a,s,i,r,o){this.tag=t,this.data=e,this.children=n,this.text=a,this.elm=s,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=r,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=o,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Ui={child:{configurable:!0}};Ui.child.get=function(){return this.componentInstance},Object.defineProperties(Vi.prototype,Ui);var Gi=function(t){void 0===t&&(t="");var e=new Vi;return e.text=t,e.isComment=!0,e},qi=Array.prototype,Bi=Object.create(qi);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=qi[t];x(Bi,t,function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s,i=e.apply(this,n),r=this.__ob__;switch(t){case"push":case"unshift":s=n;break;case"splice":s=n.slice(2)}return s&&r.observeArray(s),r.dep.notify(),i})});var Ki=Object.getOwnPropertyNames(Bi),Xi=!0,Zi=function(t){if(this.value=t,this.dep=new Ri,this.vmCount=0,x(t,"__ob__",this),Array.isArray(t)){(ki?$:C)(t,Bi,Ki),this.observeArray(t)}else this.walk(t)};Zi.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)F(t,e[n])},Zi.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)W(t[e])};var Qi=bi.optionMergeStrategies;Qi.data=function(t,e,n){return n?J(t,e,n):e&&"function"!=typeof e?t:J(t,e)},Li.forEach(function(t){Qi[t]=V}),Mi.forEach(function(t){Qi[t+"s"]=U}),Qi.watch=function(t,e,n,a){if(t===Ai&&(t=void 0),e===Ai&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var s={};L(s,t);for(var i in e){var r=s[i],o=e[i];r&&!Array.isArray(r)&&(r=[r]),s[i]=r?r.concat(o):Array.isArray(o)?o:[o]}return s},Qi.props=Qi.methods=Qi.inject=Qi.computed=function(t,e,n,a){if(!t)return e;var s=Object.create(null);return L(s,t),e&&L(s,e),s},Qi.provide=J;var tr,er,nr=function(t,e){return void 0===e?t:e},ar=[],sr=!1,ir=!1;if(void 0!==n&&H(n))er=function(){n(rt)};else if("undefined"==typeof MessageChannel||!H(MessageChannel)&&"[object MessageChannelConstructor]"!==MessageChannel.toString())er=function(){setTimeout(rt,0)};else{var rr=new MessageChannel,or=rr.port2;rr.port1.onmessage=rt,er=function(){or.postMessage(1)}}if("undefined"!=typeof Promise&&H(Promise)){var dr=Promise.resolve();tr=function(){dr.then(rt),Oi&&setTimeout(Y)}}else tr=er;var ur,lr=new Ci,cr=v(function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var a="!"===t.charAt(0);return t=a?t.slice(1):t,{name:t,once:n,capture:a,passive:e}}),_r=null,mr=[],fr=[],hr={},pr=!1,vr=!1,yr=0,gr=0,Mr=function(t,e,n,a,s){this.vm=t,s&&(t._watcher=this),t._watchers.push(this),a?(this.deep=!!a.deep,this.user=!!a.user,this.lazy=!!a.lazy,this.sync=!!a.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++gr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Ci,this.newDepIds=new Ci,this.expression="","function"==typeof e?this.getter=e:(this.getter=S(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};Mr.prototype.get=function(){j(this);var t,e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;at(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ut(t),O(),this.cleanupDeps()}return t},Mr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},Mr.prototype.cleanupDeps=function(){for(var t=this,e=this.deps.length;e--;){var n=t.deps[e];t.newDepIds.has(n.id)||n.removeSub(t)}var a=this.depIds;this.depIds=this.newDepIds,this.newDepIds=a,this.newDepIds.clear(),a=this.deps,this.deps=this.newDeps,this.newDeps=a,this.newDeps.length=0},Mr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Jt(this)},Mr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||d(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){at(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},Mr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Mr.prototype.depend=function(){for(var t=this,e=this.deps.length;e--;)t.deps[e].depend()},Mr.prototype.teardown=function(){var t=this;if(this.active){this.vm._isBeingDestroyed||h(this.vm._watchers,this);for(var e=this.deps.length;e--;)t.deps[e].removeSub(t);this.active=!1}};var Lr={enumerable:!0,configurable:!0,get:Y,set:Y},br={lazy:!0};pe(ve.prototype);var Yr={init:function(t,e,n,a){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var s=t;Yr.prepatch(s,s)}else{(t.componentInstance=be(t,_r,n,a)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;Pt(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,Wt(n,"mounted")),t.data.keepAlive&&(e._isMounted?zt(n):$t(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Ct(e,!0):e.$destroy())}},kr=Object.keys(Yr),wr=1,Dr=2,Tr=0;!function(t){t.prototype._init=function(t){var e=this;e._uid=Tr++,e._isVue=!0,t&&t._isComponent?He(e,t):e.$options=K(je(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Ot(e),wt(e),Se(e),Wt(e,"beforeCreate"),ae(e),Ut(e),ne(e),Wt(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(Pe),function(t){var e={};e.get=function(){return this._data};var n={};n.get=function(){return this._props},Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=N,t.prototype.$delete=I,t.prototype.$watch=function(t,e,n){var a=this;if(u(e))return ee(a,t,e,n);n=n||{},n.user=!0;var s=new Mr(a,t,e,n);return n.immediate&&e.call(a,s.value),function(){s.teardown()}}}(Pe),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var a=this,s=this;if(Array.isArray(t))for(var i=0,r=t.length;i<r;i++)a.$on(t[i],n);else(s._events[t]||(s._events[t]=[])).push(n),e.test(t)&&(s._hasHookEvent=!0);return s},t.prototype.$once=function(t,e){function n(){a.$off(t,n),e.apply(a,arguments)}var a=this;return n.fn=e,a.$on(t,n),a},t.prototype.$off=function(t,e){var n=this,a=this;if(!arguments.length)return a._events=Object.create(null),a;if(Array.isArray(t)){for(var s=0,i=t.length;s<i;s++)n.$off(t[s],e);return a}var r=a._events[t];if(!r)return a;if(!e)return a._events[t]=null,a;if(e)for(var o,d=r.length;d--;)if((o=r[d])===e||o.fn===e){r.splice(d,1);break}return a},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?M(n):n;for(var a=M(arguments,1),s=0,i=n.length;s<i;s++)try{n[s].apply(e,a)}catch(n){at(n,e,'event handler for "'+t+'"')}}return e}}(Pe),function(t){t.prototype._update=function(t,e){var n=this;n._isMounted&&Wt(n,"beforeUpdate");var a=n.$el,s=n._vnode,i=_r;_r=n,n._vnode=t,s?n.$el=n.__patch__(s,t):(n.$el=n.__patch__(n.$el,t,e,!1,n.$options._parentElm,n.$options._refElm),n.$options._parentElm=n.$options._refElm=null),_r=i,a&&(a.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Wt(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||h(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Wt(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(Pe),function(t){pe(t.prototype),t.prototype.$nextTick=function(t){return dt(t,this)},t.prototype._render=function(){var t=this,e=t.$options,n=e.render,a=e._parentVnode;a&&(t.$scopedSlots=a.data.scopedSlots||ri),t.$vnode=a;var s;try{s=n.call(t._renderProxy,t.$createElement)}catch(e){at(e,t,"render"),s=t._vnode}return s instanceof Vi||(s=Gi()),s.parent=a,s}}(Pe);var xr=[String,RegExp,Array],Sr={name:"keep-alive",abstract:!0,props:{include:xr,exclude:xr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){var t=this;for(var e in t.cache)Je(t.cache,e,t.keys)},mounted:function(){var t=this;this.$watch("include",function(e){Re(t,function(t){return ze(e,t)})}),this.$watch("exclude",function(e){Re(t,function(t){return!ze(e,t)})})},render:function(){var t=this.$slots.default,e=kt(t),n=e&&e.componentOptions;if(n){var a=Ie(n),s=this,i=s.include,r=s.exclude;if(i&&(!a||!ze(i,a))||r&&a&&ze(r,a))return e;var o=this,d=o.cache,u=o.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;d[l]?(e.componentInstance=d[l].componentInstance,h(u,l),u.push(l)):(d[l]=e,u.push(l),this.max&&u.length>parseInt(this.max)&&Je(d,u[0],u,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Hr={KeepAlive:Sr};!function(t){var e={};e.get=function(){return bi},Object.defineProperty(t,"config",e),t.util={warn:Ii,extend:L,mergeOptions:K,defineReactive:F},t.set=N,t.delete=I,t.nextTick=dt,t.options=Object.create(null),Mi.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,L(t.options.components,Hr),Ee(t),$e(t),Ce(t),Ne(t)}(Pe),Object.defineProperty(Pe.prototype,"$isServer",{get:Wi}),Object.defineProperty(Pe.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Pe,"FunctionalRenderContext",{value:ve}),Pe.version="2.5.16";var jr,Or,Ar,Pr,Er,$r,Cr,Wr,Fr,Nr=f("style,class"),Ir=f("input,textarea,option,select,progress"),zr=function(t,e,n){return"value"===n&&Ir(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Rr=f("contenteditable,draggable,spellcheck"),Jr=f("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Vr="http://www.w3.org/1999/xlink",Ur=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Gr=function(t){return Ur(t)?t.slice(6,t.length):""},qr=function(t){return null==t||!1===t},Br={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Kr=f("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Xr=f("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Zr=function(t){return"pre"===t},Qr=function(t){return Kr(t)||Xr(t)},to=Object.create(null),eo=f("text,number,password,search,email,tel,url"),no=Object.freeze({createElement:en,createElementNS:nn,createTextNode:an,createComment:sn,insertBefore:rn,removeChild:on,appendChild:dn,parentNode:un,nextSibling:ln,tagName:cn,setTextContent:_n,setStyleScope:mn}),ao={create:function(t,e){fn(e)},update:function(t,e){t.data.ref!==e.data.ref&&(fn(t,!0),fn(e))},destroy:function(t){fn(t,!0)}},so=new Vi("",{},[]),io=["create","activate","update","remove","destroy"],ro={create:yn,update:yn,destroy:function(t){yn(t,so)}},oo=Object.create(null),uo=[ao,ro],lo={create:Yn,update:Yn},co={create:Dn,update:Dn},_o=/[\w).+\-_$\]]/,mo="__r",fo="__c",ho={create:ea,update:ea},po={create:na,update:na},vo=v(function(t){var e={},n=/;(?![^(]*\))/g,a=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(a);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}),yo=/^--/,go=/\s*!important$/,Mo=function(t,e,n){if(yo.test(e))t.style.setProperty(e,n);else if(go.test(n))t.style.setProperty(e,n.replace(go,""),"important");else{var a=bo(e);if(Array.isArray(n))for(var s=0,i=n.length;s<i;s++)t.style[a]=n[s];else t.style[a]=n}},Lo=["Webkit","Moz","ms"],bo=v(function(t){if(Fr=Fr||document.createElement("div").style,"filter"!==(t=_i(t))&&t in Fr)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Lo.length;n++){var a=Lo[n]+e;if(a in Fr)return a}}),Yo={create:ua,update:ua},ko=v(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),wo=wi&&!Hi,Do="transition",To="animation",xo="transition",So="transitionend",Ho="animation",jo="animationend";wo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(xo="WebkitTransition",So="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ho="WebkitAnimation",jo="webkitAnimationEnd"));var Oo=wi?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()},Ao=/\b(transform|all)(,|$)/,Po=wi?{create:ka,activate:ka,remove:function(t,e){!0!==t.data.show?La(t,e):e()}}:{},Eo=[lo,co,ho,po,Yo,Po],$o=Eo.concat(uo),Co=function(t){function e(t){return new Vi(j.tagName(t).toLowerCase(),{},[],void 0,t)}function n(t,e){function n(){0==--n.listeners&&r(t)}return n.listeners=e,n}function r(t){var e=j.parentNode(t);s(e)&&j.removeChild(e,t)}function d(t,e,n,a,r,o,d){if(s(t.elm)&&s(o)&&(t=o[d]=P(t)),t.isRootInsert=!r,!u(t,e,n,a)){var l=t.data,c=t.children,f=t.tag;s(f)?(t.elm=t.ns?j.createElementNS(t.ns,f):j.createElement(f,t),v(t),m(t,c,e),s(l)&&p(t,e),_(n,t.elm,a)):i(t.isComment)?(t.elm=j.createComment(t.text),_(n,t.elm,a)):(t.elm=j.createTextNode(t.text),_(n,t.elm,a))}}function u(t,e,n,a){var r=t.data;if(s(r)){var o=s(t.componentInstance)&&r.keepAlive;if(s(r=r.hook)&&s(r=r.init)&&r(t,!1,n,a),s(t.componentInstance))return l(t,e),i(o)&&c(t,e,n,a),!0}}function l(t,e){s(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,h(t)?(p(t,e),v(t)):(fn(t),e.push(t))}function c(t,e,n,a){for(var i,r=t;r.componentInstance;)if(r=r.componentInstance._vnode,s(i=r.data)&&s(i=i.transition)){for(i=0;i<S.activate.length;++i)S.activate[i](so,r);e.push(r);break}_(n,t.elm,a)}function _(t,e,n){s(t)&&(s(n)?n.parentNode===t&&j.insertBefore(t,e,n):j.appendChild(t,e))}function m(t,e,n){if(Array.isArray(e))for(var a=0;a<e.length;++a)d(e[a],n,t.elm,null,!0,e,a);else o(t.text)&&j.appendChild(t.elm,j.createTextNode(String(t.text)))}function h(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return s(t.tag)}function p(t,e){for(var n=0;n<S.create.length;++n)S.create[n](so,t);T=t.data.hook,s(T)&&(s(T.create)&&T.create(so,t),s(T.insert)&&e.push(t))}function v(t){var e;if(s(e=t.fnScopeId))j.setStyleScope(t.elm,e);else for(var n=t;n;)s(e=n.context)&&s(e=e.$options._scopeId)&&j.setStyleScope(t.elm,e),n=n.parent;s(e=_r)&&e!==t.context&&e!==t.fnContext&&s(e=e.$options._scopeId)&&j.setStyleScope(t.elm,e)}function y(t,e,n,a,s,i){for(;a<=s;++a)d(n[a],i,t,e,!1,n,a)}function g(t){var e,n,a=t.data;if(s(a))for(s(e=a.hook)&&s(e=e.destroy)&&e(t),e=0;e<S.destroy.length;++e)S.destroy[e](t);if(s(e=t.children))for(n=0;n<t.children.length;++n)g(t.children[n])}function M(t,e,n,a){for(;n<=a;++n){var i=e[n];s(i)&&(s(i.tag)?(L(i),g(i)):r(i.elm))}}function L(t,e){if(s(e)||s(t.data)){var a,i=S.remove.length+1;for(s(e)?e.listeners+=i:e=n(t.elm,i),s(a=t.componentInstance)&&s(a=a._vnode)&&s(a.data)&&L(a,e),a=0;a<S.remove.length;++a)S.remove[a](t,e);s(a=t.data.hook)&&s(a=a.remove)?a(t,e):e()}else r(t.elm)}function b(t,e,n,i,r){for(var o,u,l,c,_=0,m=0,f=e.length-1,h=e[0],p=e[f],v=n.length-1,g=n[0],L=n[v],b=!r;_<=f&&m<=v;)a(h)?h=e[++_]:a(p)?p=e[--f]:hn(h,g)?(k(h,g,i),h=e[++_],g=n[++m]):hn(p,L)?(k(p,L,i),p=e[--f],L=n[--v]):hn(h,L)?(k(h,L,i),b&&j.insertBefore(t,h.elm,j.nextSibling(p.elm)),h=e[++_],L=n[--v]):hn(p,g)?(k(p,g,i),b&&j.insertBefore(t,p.elm,h.elm),p=e[--f],g=n[++m]):(a(o)&&(o=vn(e,_,f)),u=s(g.key)?o[g.key]:Y(g,e,_,f),a(u)?d(g,i,t,h.elm,!1,n,m):(l=e[u],hn(l,g)?(k(l,g,i),e[u]=void 0,b&&j.insertBefore(t,l.elm,h.elm)):d(g,i,t,h.elm,!1,n,m)),g=n[++m]);_>f?(c=a(n[v+1])?null:n[v+1].elm,y(t,c,n,m,v,i)):m>v&&M(t,e,_,f)}function Y(t,e,n,a){for(var i=n;i<a;i++){var r=e[i];if(s(r)&&hn(t,r))return i}}function k(t,e,n,r){if(t!==e){var o=e.elm=t.elm;if(i(t.isAsyncPlaceholder))return void(s(e.asyncFactory.resolved)?D(t.elm,e,n):e.isAsyncPlaceholder=!0);if(i(e.isStatic)&&i(t.isStatic)&&e.key===t.key&&(i(e.isCloned)||i(e.isOnce)))return void(e.componentInstance=t.componentInstance);var d,u=e.data;s(u)&&s(d=u.hook)&&s(d=d.prepatch)&&d(t,e);var l=t.children,c=e.children;if(s(u)&&h(e)){for(d=0;d<S.update.length;++d)S.update[d](t,e);s(d=u.hook)&&s(d=d.update)&&d(t,e)}a(e.text)?s(l)&&s(c)?l!==c&&b(o,l,c,n,r):s(c)?(s(t.text)&&j.setTextContent(o,""),y(o,null,c,0,c.length-1,n)):s(l)?M(o,l,0,l.length-1):s(t.text)&&j.setTextContent(o,""):t.text!==e.text&&j.setTextContent(o,e.text),s(u)&&s(d=u.hook)&&s(d=d.postpatch)&&d(t,e)}}function w(t,e,n){if(i(n)&&s(t.parent))t.parent.data.pendingInsert=e;else for(var a=0;a<e.length;++a)e[a].data.hook.insert(e[a])}function D(t,e,n,a){var r,o=e.tag,d=e.data,u=e.children;if(a=a||d&&d.pre,e.elm=t,i(e.isComment)&&s(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(s(d)&&(s(r=d.hook)&&s(r=r.init)&&r(e,!0),s(r=e.componentInstance)))return l(e,n),!0;if(s(o)){if(s(u))if(t.hasChildNodes())if(s(r=d)&&s(r=r.domProps)&&s(r=r.innerHTML)){if(r!==t.innerHTML)return!1}else{for(var c=!0,_=t.firstChild,f=0;f<u.length;f++){if(!_||!D(_,u[f],n,a)){c=!1;break}_=_.nextSibling}if(!c||_)return!1}else m(e,u,n);if(s(d)){var h=!1;for(var v in d)if(!O(v)){h=!0,p(e,n);break}!h&&d.class&&ut(d.class)}}else t.data!==e.text&&(t.data=e.text);return!0}var T,x,S={},H=t.modules,j=t.nodeOps;for(T=0;T<io.length;++T)for(S[io[T]]=[],x=0;x<H.length;++x)s(H[x][io[T]])&&S[io[T]].push(H[x][io[T]]);var O=f("attrs,class,staticClass,staticStyle,key");return function(t,n,r,o,u,l){if(a(n))return void(s(t)&&g(t));var c=!1,_=[];if(a(t))c=!0,d(n,_,u,l);else{var m=s(t.nodeType);if(!m&&hn(t,n))k(t,n,_,o);else{if(m){if(1===t.nodeType&&t.hasAttribute(gi)&&(t.removeAttribute(gi),r=!0),i(r)&&D(t,n,_))return w(n,_,!0),t;t=e(t)}var f=t.elm,p=j.parentNode(f);if(d(n,_,f._leaveCb?null:p,j.nextSibling(f)),s(n.parent))for(var v=n.parent,y=h(n);v;){for(var L=0;L<S.destroy.length;++L)S.destroy[L](v);if(v.elm=n.elm,y){for(var b=0;b<S.create.length;++b)S.create[b](so,v);var Y=v.data.hook.insert;if(Y.merged)for(var T=1;T<Y.fns.length;T++)Y.fns[T]()}else fn(v);v=v.parent}s(p)?M(p,[t],0,0):s(t.tag)&&g(t)}}return w(n,_,c),n.elm}}({nodeOps:no,modules:$o});Hi&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&ja(t,"input")});var Wo={inserted:function(t,e,n,a){"select"===n.tag?(a.elm&&!a.elm._vOptions?mt(n,"postpatch",function(){Wo.componentUpdated(t,e,n)}):wa(t,e,n.context),t._vOptions=[].map.call(t.options,xa)):("textarea"===n.tag||eo(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Sa),t.addEventListener("compositionend",Ha),t.addEventListener("change",Ha),Hi&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){wa(t,e,n.context);var a=t._vOptions,s=t._vOptions=[].map.call(t.options,xa);if(s.some(function(t,e){return!k(t,a[e])})){(t.multiple?e.value.some(function(t){return Ta(t,s)}):e.value!==e.oldValue&&Ta(e.value,s))&&ja(t,"change")}}}},Fo={bind:function(t,e,n){var a=e.value;n=Oa(n);var s=n.data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;a&&s?(n.data.show=!0,Ma(n,function(){t.style.display=i})):t.style.display=a?i:"none"},update:function(t,e,n){var a=e.value;!a!=!e.oldValue&&(n=Oa(n),n.data&&n.data.transition?(n.data.show=!0,a?Ma(n,function(){t.style.display=t.__vOriginalDisplay}):La(n,function(){t.style.display="none"})):t.style.display=a?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,a,s){s||(t.style.display=t.__vOriginalDisplay)}},No={model:Wo,show:Fo},Io={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]},zo={name:"transition",props:Io,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(function(t){return t.tag||Yt(t)}),n.length)){var a=this.mode,s=n[0];if($a(this.$vnode))return s;var i=Aa(s);if(!i)return s;if(this._leaving)return Ea(t,s);var r="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?r+"comment":r+i.tag:o(i.key)?0===String(i.key).indexOf(r)?i.key:r+i.key:i.key;var d=(i.data||(i.data={})).transition=Pa(this),u=this._vnode,l=Aa(u);if(i.data.directives&&i.data.directives.some(function(t){return"show"===t.name})&&(i.data.show=!0),l&&l.data&&!Ca(i,l)&&!Yt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var c=l.data.transition=L({},d);if("out-in"===a)return this._leaving=!0,mt(c,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),Ea(t,s);if("in-out"===a){if(Yt(i))return u;var _,m=function(){_()};mt(d,"afterEnter",m),mt(d,"enterCancelled",m),mt(c,"delayLeave",function(t){_=t})}}return s}}},Ro=L({tag:String,moveClass:String},Io);delete Ro.mode;var Jo={props:Ro,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),a=this.prevChildren=this.children,s=this.$slots.default||[],i=this.children=[],r=Pa(this),o=0;o<s.length;o++){var d=s[o];if(d.tag)if(null!=d.key&&0!==String(d.key).indexOf("__vlist"))i.push(d),n[d.key]=d,(d.data||(d.data={})).transition=r;else;}if(a){for(var u=[],l=[],c=0;c<a.length;c++){var _=a[c];_.data.transition=r,_.data.pos=_.elm.getBoundingClientRect(),n[_.key]?u.push(_):l.push(_)}this.kept=t(e,null,u),this.removed=l}return t(e,null,i)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Wa),t.forEach(Fa),t.forEach(Na),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var n=t.elm,a=n.style;fa(n,e),a.transform=a.WebkitTransform=a.transitionDuration="",n.addEventListener(So,n._moveCb=function t(a){a&&!/transform$/.test(a.propertyName)||(n.removeEventListener(So,t),n._moveCb=null,ha(n,e))})}}))},methods:{hasMove:function(t,e){if(!wo)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){ca(n,t)}),la(n,e),n.style.display="none",this.$el.appendChild(n);var a=va(n);return this.$el.removeChild(n),this._hasMove=a.hasTransform}}},Vo={Transition:zo,TransitionGroup:Jo};Pe.config.mustUseProp=zr,Pe.config.isReservedTag=Qr,Pe.config.isReservedAttr=Nr,Pe.config.getTagNamespace=Ze,Pe.config.isUnknownElement=Qe,L(Pe.options.directives,No),L(Pe.options.components,Vo),Pe.prototype.__patch__=wi?Co:Y,Pe.prototype.$mount=function(t,e){return t=t&&wi?tn(t):void 0,At(this,t,e)},wi&&setTimeout(function(){bi.devtools&&Fi&&Fi.emit("init",Pe)},0);var Uo,Go=/\{\{((?:.|\n)+?)\}\}/g,qo=/[-.*+?^${}()|[\]\/\\]/g,Bo=v(function(t){var e=t[0].replace(qo,"\\$&"),n=t[1].replace(qo,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}),Ko={staticKeys:["staticClass"],transformNode:za,genData:Ra},Xo={staticKeys:["staticStyle"],transformNode:Ja,genData:Va},Zo={decode:function(t){return Uo=Uo||document.createElement("div"),Uo.innerHTML=t,Uo.textContent}},Qo=f("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),td=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ed=f("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),nd=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ad="[a-zA-Z_][\\w\\-\\.]*",sd="((?:"+ad+"\\:)?"+ad+")",id=new RegExp("^<"+sd),rd=/^\s*(\/?)>/,od=new RegExp("^<\\/"+sd+"[^>]*>"),dd=/^<!DOCTYPE [^>]+>/i,ud=/^<!\--/,ld=/^<!\[/,cd=!1;"x".replace(/x(.)?/g,function(t,e){cd=""===e});var _d,md,fd,hd,pd,vd,yd,gd,Md,Ld,bd,Yd=f("script,style,textarea",!0),kd={},wd={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t"},Dd=/&(?:lt|gt|quot|amp);/g,Td=/&(?:lt|gt|quot|amp|#10|#9);/g,xd=f("pre,textarea",!0),Sd=function(t,e){return t&&xd(t)&&"\n"===e[0]},Hd=/^@|^v-on:/,jd=/^v-|^@|^:/,Od=/([^]*?)\s+(?:in|of)\s+([^]*)/,Ad=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Pd=/^\(|\)$/g,Ed=/:(.*)$/,$d=/^:|^v-bind:/,Cd=/\.[^.]+/g,Wd=v(Zo.decode),Fd=/^xmlns:NS\d+/,Nd=/^NS\d+:/,Id={preTransformNode:vs},zd=[Ko,Xo,Id],Rd={model:Un,text:gs,html:Ms},Jd={expectHTML:!0,modules:zd,directives:Rd,isPreTag:Zr,isUnaryTag:Qo,mustUseProp:zr,canBeLeftOpenTag:td,isReservedTag:Qr,getTagNamespace:Ze,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(zd)},Vd=v(bs),Ud=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,Gd=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,qd={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Bd={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},Kd=function(t){return"if("+t+")return null;"},Xd={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Kd("$event.target !== $event.currentTarget"),ctrl:Kd("!$event.ctrlKey"),shift:Kd("!$event.shiftKey"),alt:Kd("!$event.altKey"),meta:Kd("!$event.metaKey"),left:Kd("'button' in $event && $event.button !== 0"),middle:Kd("'button' in $event && $event.button !== 1"),right:Kd("'button' in $event && $event.button !== 2")},Zd={on:js,bind:Os,cloak:Y},Qd=function(t){this.options=t,this.warn=t.warn||Sn,this.transforms=Hn(t.modules,"transformCode"),this.dataGenFns=Hn(t.modules,"genData"),this.directives=L(L({},Zd),t.directives);var e=t.isReservedTag||vi;this.maybeComponent=function(t){return!e(t.tag)},this.onceId=0,this.staticRenderFns=[]},tu=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),function(t){return function(e){function n(n,a){var s=Object.create(e),i=[],r=[];if(s.warn=function(t,e){(e?r:i).push(t)},a){a.modules&&(s.modules=(e.modules||[]).concat(a.modules)),a.directives&&(s.directives=L(Object.create(e.directives||null),a.directives));for(var o in a)"modules"!==o&&"directives"!==o&&(s[o]=a[o])}var d=t(n,s);return d.errors=i,d.tips=r,d}return{compile:n,compileToFunctions:ai(n)}}}(function(t,e){var n=Ba(t.trim(),e);!1!==e.optimize&&Ls(n,e);var a=As(n,e);return{ast:n,render:a.render,staticRenderFns:a.staticRenderFns}})),eu=tu(Jd),nu=eu.compileToFunctions,au=!!wi&&si(!1),su=!!wi&&si(!0),iu=v(function(t){var e=tn(t);return e&&e.innerHTML}),ru=Pe.prototype.$mount;Pe.prototype.$mount=function(t,e){if((t=t&&tn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var a=n.template;if(a)if("string"==typeof a)"#"===a.charAt(0)&&(a=iu(a));else{if(!a.nodeType)return this;a=a.innerHTML}else t&&(a=ii(t));if(a){var s=nu(a,{shouldDecodeNewlines:au,shouldDecodeNewlinesForHref:su,delimiters:n.delimiters,comments:n.comments},this),i=s.render,r=s.staticRenderFns;n.render=i,n.staticRenderFns=r}}return ru.call(this,t,e)},Pe.compile=nu,e.default=Pe}.call(e,n(12),n(33).setImmediate)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var a=n(19);t.exports=function(t){if(!a(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(20)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports={}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){t.exports={default:n(207),__esModule:!0}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var a=n(43),s=n(14);t.exports=function(t){return a(s(t))}},function(t,e){var n=Math.ceil,a=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?a:n)(t)}},function(t,e,n){var a=n(22)("keys"),s=n(23);t.exports=function(t){return a[t]||(a[t]=s(t))}},function(t,e,n){var a=n(9),s=n(49),i=n(50),r=Object.defineProperty;e.f=n(10)?Object.defineProperty:function(t,e,n){if(a(t),e=i(e,!0),a(n),s)try{return r(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var a=n(3),s=a["__core-js_shared__"]||(a["__core-js_shared__"]={});t.exports=function(t){return s[t]||(s[t]={})}},function(t,e){var n=0,a=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+a).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var a=n(3),s=n(5),i=n(47),r=n(6),o=function(t,e,n){var d,u,l,c=t&o.F,_=t&o.G,m=t&o.S,f=t&o.P,h=t&o.B,p=t&o.W,v=_?s:s[e]||(s[e]={}),y=v.prototype,g=_?a:m?a[e]:(a[e]||{}).prototype;_&&(n=e);for(d in n)(u=!c&&g&&void 0!==g[d])&&d in v||(l=u?g[d]:n[d],v[d]=_&&"function"!=typeof g[d]?n[d]:h&&u?i(l,a):p&&g[d]==l?function(t){var e=function(e,n,a){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,a)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):f&&"function"==typeof l?i(Function.call,l):l,f&&((v.virtual||(v.virtual={}))[d]=l,t&o.R&&y&&!y[d]&&r(y,d,l)))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,o.U=64,o.R=128,t.exports=o},function(t,e,n){var a=n(19),s=n(3).document,i=a(s)&&a(s.createElement);t.exports=function(t){return i?s.createElement(t):{}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var a=n(56),s=n(25),i=n(57),r=n(6),o=n(8),d=n(11),u=n(58),l=n(29),c=n(62),_=n(4)("iterator"),m=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,n,h,p,v,y){u(n,e,h);var g,M,L,b=function(t){if(!m&&t in D)return D[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},Y=e+" Iterator",k="values"==p,w=!1,D=t.prototype,T=D[_]||D["@@iterator"]||p&&D[p],x=!m&&T||b(p),S=p?k?b("entries"):x:void 0,H="Array"==e?D.entries||T:T;if(H&&(L=c(H.call(new t)))!==Object.prototype&&L.next&&(l(L,Y,!0),a||o(L,_)||r(L,_,f)),k&&T&&"values"!==T.name&&(w=!0,x=function(){return T.call(this)}),a&&!y||!m&&!w&&D[_]||r(D,_,x),d[e]=x,d[Y]=f,p)if(g={values:k?x:b("values"),keys:v?x:b("keys"),entries:S},y)for(M in g)M in D||i(D,M,g[M]);else s(s.P+s.F*(m||w),e,g);return g}},function(t,e,n){var a=n(18).f,s=n(8),i=n(4)("toStringTag");t.exports=function(t,e,n){t&&!s(t=n?t:t.prototype,i)&&a(t,i,{configurable:!0,value:e})}},function(t,e,n){var a=n(14);t.exports=function(t){return Object(a(t))}},function(t,e,n){var a=n(42),s=n(24);t.exports=Object.keys||function(t){return a(t,s)}},function(t,e,n){t.exports={default:n(51),__esModule:!0}},function(t,e,n){(function(t){function a(t,e){this._id=t,this._clearFn=e}var s=Function.prototype.apply;e.setTimeout=function(){return new a(s.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new a(s.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(34),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n(12))},function(t,e,n){(function(t,e){!function(t,n){"use strict";function a(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var a={callback:t,args:e};return u[d]=a,o(d),d++}function s(t){delete u[t]}function i(t){var e=t.callback,a=t.args;switch(a.length){case 0:e();break;case 1:e(a[0]);break;case 2:e(a[0],a[1]);break;case 3:e(a[0],a[1],a[2]);break;default:e.apply(n,a)}}function r(t){if(l)setTimeout(r,0,t);else{var e=u[t];if(e){l=!0;try{i(e)}finally{s(t),l=!1}}}}if(!t.setImmediate){var o,d=1,u={},l=!1,c=t.document,_=Object.getPrototypeOf&&Object.getPrototypeOf(t);_=_&&_.setTimeout?_:t,"[object process]"==={}.toString.call(t.process)?function(){o=function(t){e.nextTick(function(){r(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&r(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),o=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){r(t.data)},o=function(e){t.port2.postMessage(e)}}():c&&"onreadystatechange"in c.createElement("script")?function(){var t=c.documentElement;o=function(e){var n=c.createElement("script");n.onreadystatechange=function(){r(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){o=function(t){setTimeout(r,0,t)}}(),_.setImmediate=a,_.clearImmediate=s}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(12),n(35))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function i(t){if(c===clearTimeout)return clearTimeout(t);if((c===a||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(t);try{return c(t)}catch(e){try{return c.call(null,t)}catch(e){return c.call(this,t)}}}function r(){h&&m&&(h=!1,m.length?f=m.concat(f):p=-1,f.length&&o())}function o(){if(!h){var t=s(r);h=!0;for(var e=f.length;e;){for(m=f,f=[];++p<e;)m&&m[p].run();p=-1,e=f.length}m=null,h=!1,i(t)}}function d(t,e){this.fun=t,this.array=e}function u(){}var l,c,_=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{c="function"==typeof clearTimeout?clearTimeout:a}catch(t){c=a}}();var m,f=[],h=!1,p=-1;_.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];f.push(new d(t,e)),1!==f.length||h||s(o)},d.prototype.run=function(){this.fun.apply(null,this.array)},_.title="browser",_.browser=!0,_.env={},_.argv=[],_.version="",_.versions={},_.on=u,_.addListener=u,_.once=u,_.off=u,_.removeListener=u,_.removeAllListeners=u,_.emit=u,_.prependListener=u,_.prependOnceListener=u,_.listeners=function(t){return[]},_.binding=function(t){throw new Error("process.binding is not supported")},_.cwd=function(){return"/"},_.chdir=function(t){throw new Error("process.chdir is not supported")},_.umask=function(){return 0}},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var s=n(7),i=a(s),r=n(37),o=a(r),d=n(38),u=a(d),l=n(40),c=a(l),_={logLevel:"yes"===ropApiSettings.debug?"debug":"error",stringifyArguments:!1,showLogLevel:!1,showMethodName:!1,separator:"|",showConsoleColors:!0};i.default.use(o.default),i.default.use(u.default),i.default.use(c.default,_),e.default=new o.default.Store({state:{page:{debug:!1,logs:[],view:"accounts",template:"accounts"},cron_status:{},toast:{type:"success",show:!1,title:"",message:""},ajaxLoader:!1,auth_in_progress:!1,displayTabs:[{name:ropApiSettings.labels.accounts.menu_item,slug:"accounts",view:"accounts",isActive:!0},{name:ropApiSettings.labels.settings.menu_item,slug:"settings",view:"settings",isActive:!1},{name:ropApiSettings.labels.post_format.menu_item,slug:"post-format",view:"accounts-selector",isActive:!1},{name:ropApiSettings.labels.schedule.menu_item,slug:"schedule",view:"accounts-selector",isActive:!1},{name:ropApiSettings.labels.queue.menu_item,slug:"queue",view:"queue",isActive:!1},{name:ropApiSettings.labels.logs.menu_item,slug:"logs",view:"logs",isActive:!1}],licence:parseInt(ropApiSettings.license_type),labels:ropApiSettings.labels,availableServices:[],generalSettings:[],authenticatedServices:[],activeAccounts:{},activePostFormat:[],activeSchedule:[],queue:{}},mutations:{setTabView:function(t,e){i.default.$log.debug("Changing tab to ",e);for(var n in t.displayTabs)t.displayTabs[n].isActive=!1,t.displayTabs[n].slug===e&&(t.displayTabs[n].isActive=!0,t.page.view=t.displayTabs[n].slug,t.page.template=t.displayTabs[n].view)},setAjaxState:function(t,e){t.ajaxLoader=e},updateState:function(t,e){var n=e.stateData,a=e.requestName;switch(i.default.$log.debug("State change for ",a),a){case"manage_cron":t.cron_status=n;break;case"get_log":t.page.logs=n;break;case"update_settings_toggle":case"get_general_settings":t.generalSettings=n;break;case"update_selected_post_types":t.generalSettings.selected_post_types=n;for(var s in t.generalSettings.available_post_types){t.generalSettings.available_post_types[s].selected=!1;for(var r in n)t.generalSettings.available_post_types[s].value===n[r].value&&(t.generalSettings.available_post_types[s].selected=!0)}break;case"update_selected_taxonomies":t.generalSettings.selected_taxonomies=n;for(var o in t.generalSettings.available_taxonomies){t.generalSettings.available_taxonomies[o].selected=!1;for(var d in n)t.generalSettings.available_taxonomies[o].value!==n[d].value&&t.generalSettings.available_taxonomies[o].parent!==n[d].value||(t.generalSettings.available_taxonomies[o].selected=!0)}break;case"update_selected_posts":t.generalSettings.selected_posts=n;break;case"get_available_services":t.availableServices=n;break;case"get_authenticated_services":case"remove_service":t.authenticatedServices=n;break;case"authenticate_service":t.authenticatedServices=n,t.auth_in_progress=!1;break;case"get_active_accounts":case"update_active_accounts":case"remove_account":t.activeAccounts=n;break;case"get_taxonomies":t.generalSettings.available_taxonomies=n;break;case"get_posts":1===n.page?t.generalSettings.available_posts=n.posts:t.generalSettings.available_posts=t.generalSettings.available_posts.concat(n.posts);break;case"get_post_format":case"save_post_format":case"reset_post_format":t.activePostFormat=n;break;case"reset_accounts":t.activeAccounts={},t.authenticatedServices=[];break;case"get_shortner_credentials":t.activePostFormat.shortner_credentials=n;break;case"get_schedule":case"save_schedule":case"reset_schedule":t.activeSchedule=n;break;case"get_queue":case"update_queue_event":case"publish_queue_event":case"skip_queue_event":case"block_queue_event":t.queue=n;break;case"update_toast":t.toast=n;break;case"toggle_account":case"exclude_post":case"exclude_post_batch":break;default:i.default.$log.error("No state request for ",a)}}},actions:{fetchAJAX:function(t,e){var n=t.commit;return""!==e.req&&(n("setAjaxState",!0),i.default.http({url:ropApiSettings.root,method:"POST",headers:{"X-WP-Nonce":ropApiSettings.nonce},params:{req:e.req},body:e.data,responseType:"json"}).then(function(t){n("setAjaxState",!1);var a=t.data;t.data.data&&(a=t.data.data);var s=e.req;!1!==e.updateState&&n("updateState",{stateData:a,requestName:s})},function(){n("setAjaxState",!1),i.default.$log.error("Error when trying to do request: ",e.req)})),!1},fetchAJAXPromise:function(t,e){var n=t.commit;return""!==e.req&&(n("setAjaxState",!0),new Promise(function(t,a){i.default.http({url:ropApiSettings.root,method:"POST",headers:{"X-WP-Nonce":ropApiSettings.nonce},params:{req:e.req},body:e.data,responseType:"json"}).then(function(a){n("setAjaxState",!1);var s=a.data;a.data.data&&(s=a.data.data);var i=e.req;t(s),!1!==e.updateState&&n("updateState",{stateData:s,requestName:i})},function(){n("setAjaxState",!1),i.default.$log.error("Error when trying to do request: ",e.req)})}))}}})},function(t,e,n){"use strict";function a(t){w&&(t._devtoolHook=w,w.emit("vuex:init",t),w.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){w.emit("vuex:mutation",t,e)}))}function s(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function i(t){return null!==t&&"object"==typeof t}function r(t){return t&&"function"==typeof t.then}function o(t,e,n){if(e.update(n),n.modules)for(var a in n.modules){if(!e.getChild(a))return;o(t.concat(a),e.getChild(a),n.modules[a])}}function d(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function u(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;c(t,n,[],t._modules.root,!0),l(t,n,e)}function l(t,e,n){var a=t._vm;t.getters={};var i=t._wrappedGetters,r={};s(i,function(e,n){r[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var o=S.config.silent;S.config.silent=!0,t._vm=new S({data:{$$state:e},computed:r}),S.config.silent=o,t.strict&&v(t),a&&(n&&t._withCommit(function(){a._data.$$state=null}),S.nextTick(function(){return a.$destroy()}))}function c(t,e,n,a,s){var i=!n.length,r=t._modules.getNamespace(n);if(a.namespaced&&(t._modulesNamespaceMap[r]=a),!i&&!s){var o=y(e,n.slice(0,-1)),d=n[n.length-1];t._withCommit(function(){S.set(o,d,a.state)})}var u=a.context=_(t,r,n);a.forEachMutation(function(e,n){f(t,r+n,e,u)}),a.forEachAction(function(e,n){var a=e.root?n:r+n,s=e.handler||e;h(t,a,s,u)}),a.forEachGetter(function(e,n){p(t,r+n,e,u)}),a.forEachChild(function(a,i){c(t,e,n.concat(i),a,s)})}function _(t,e,n){var a=""===e,s={dispatch:a?t.dispatch:function(n,a,s){var i=g(n,a,s),r=i.payload,o=i.options,d=i.type;return o&&o.root||(d=e+d),t.dispatch(d,r)},commit:a?t.commit:function(n,a,s){var i=g(n,a,s),r=i.payload,o=i.options,d=i.type;o&&o.root||(d=e+d),t.commit(d,r,o)}};return Object.defineProperties(s,{getters:{get:a?function(){return t.getters}:function(){return m(t,e)}},state:{get:function(){return y(t.state,n)}}}),s}function m(t,e){var n={},a=e.length;return Object.keys(t.getters).forEach(function(s){if(s.slice(0,a)===e){var i=s.slice(a);Object.defineProperty(n,i,{get:function(){return t.getters[s]},enumerable:!0})}}),n}function f(t,e,n,a){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,a.state,e)})}function h(t,e,n,a){(t._actions[e]||(t._actions[e]=[])).push(function(e,s){var i=n.call(t,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:t.getters,rootState:t.state},e,s);return r(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):i})}function p(t,e,n,a){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(a.state,a.getters,t.state,t.getters)})}function v(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function y(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function g(t,e,n){return i(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function M(t){S&&t===S||(S=t,k(S))}function L(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function b(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function Y(t,e,n){return t._modulesNamespaceMap[n]}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"Store",function(){return H}),n.d(e,"install",function(){return M}),n.d(e,"mapState",function(){return O}),n.d(e,"mapMutations",function(){return A}),n.d(e,"mapGetters",function(){return P}),n.d(e,"mapActions",function(){return E}),n.d(e,"createNamespacedHelpers",function(){return $});/**
|
7 |
+
* vuex v2.5.0
|
8 |
+
* (c) 2017 Evan You
|
9 |
+
* @license MIT
|
10 |
+
*/
|
11 |
+
var k=function(t){function e(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:e});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,n.call(this,t)}}},w="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,D=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},T={namespaced:{configurable:!0}};T.namespaced.get=function(){return!!this._rawModule.namespaced},D.prototype.addChild=function(t,e){this._children[t]=e},D.prototype.removeChild=function(t){delete this._children[t]},D.prototype.getChild=function(t){return this._children[t]},D.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},D.prototype.forEachChild=function(t){s(this._children,t)},D.prototype.forEachGetter=function(t){this._rawModule.getters&&s(this._rawModule.getters,t)},D.prototype.forEachAction=function(t){this._rawModule.actions&&s(this._rawModule.actions,t)},D.prototype.forEachMutation=function(t){this._rawModule.mutations&&s(this._rawModule.mutations,t)},Object.defineProperties(D.prototype,T);var x=function(t){this.register([],t,!1)};x.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},x.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},x.prototype.update=function(t){o([],this.root,t)},x.prototype.register=function(t,e,n){var a=this;void 0===n&&(n=!0);var i=new D(e,n);if(0===t.length)this.root=i;else{this.get(t.slice(0,-1)).addChild(t[t.length-1],i)}e.modules&&s(e.modules,function(e,s){a.register(t.concat(s),e,n)})},x.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var S,H=function(t){var e=this;void 0===t&&(t={}),!S&&"undefined"!=typeof window&&window.Vue&&M(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var s=t.strict;void 0===s&&(s=!1);var i=t.state;void 0===i&&(i={}),"function"==typeof i&&(i=i()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new x(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new S;var r=this,o=this,d=o.dispatch,u=o.commit;this.dispatch=function(t,e){return d.call(r,t,e)},this.commit=function(t,e,n){return u.call(r,t,e,n)},this.strict=s,c(this,i,[],this._modules.root),l(this,i),n.forEach(function(t){return t(e)}),S.config.devtools&&a(this)},j={state:{configurable:!0}};j.state.get=function(){return this._vm._data.$$state},j.state.set=function(t){},H.prototype.commit=function(t,e,n){var a=this,s=g(t,e,n),i=s.type,r=s.payload,o=(s.options,{type:i,payload:r}),d=this._mutations[i];d&&(this._withCommit(function(){d.forEach(function(t){t(r)})}),this._subscribers.forEach(function(t){return t(o,a.state)}))},H.prototype.dispatch=function(t,e){var n=this,a=g(t,e),s=a.type,i=a.payload,r={type:s,payload:i},o=this._actions[s];if(o)return this._actionSubscribers.forEach(function(t){return t(r,n.state)}),o.length>1?Promise.all(o.map(function(t){return t(i)})):o[0](i)},H.prototype.subscribe=function(t){return d(t,this._subscribers)},H.prototype.subscribeAction=function(t){return d(t,this._actionSubscribers)},H.prototype.watch=function(t,e,n){var a=this;return this._watcherVM.$watch(function(){return t(a.state,a.getters)},e,n)},H.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},H.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),c(this,this.state,t,this._modules.get(t),n.preserveState),l(this,this.state)},H.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=y(e.state,t.slice(0,-1));S.delete(n,t[t.length-1])}),u(this)},H.prototype.hotUpdate=function(t){this._modules.update(t),u(this,!0)},H.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(H.prototype,j);var O=b(function(t,e){var n={};return L(e).forEach(function(e){var a=e.key,s=e.val;n[a]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var a=Y(this.$store,"mapState",t);if(!a)return;e=a.context.state,n=a.context.getters}return"function"==typeof s?s.call(this,e,n):e[s]},n[a].vuex=!0}),n}),A=b(function(t,e){var n={};return L(e).forEach(function(e){var a=e.key,s=e.val;n[a]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var a=this.$store.commit;if(t){var i=Y(this.$store,"mapMutations",t);if(!i)return;a=i.context.commit}return"function"==typeof s?s.apply(this,[a].concat(e)):a.apply(this.$store,[s].concat(e))}}),n}),P=b(function(t,e){var n={};return L(e).forEach(function(e){var a=e.key,s=e.val;s=t+s,n[a]=function(){if(!t||Y(this.$store,"mapGetters",t))return this.$store.getters[s]},n[a].vuex=!0}),n}),E=b(function(t,e){var n={};return L(e).forEach(function(e){var a=e.key,s=e.val;n[a]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var a=this.$store.dispatch;if(t){var i=Y(this.$store,"mapActions",t);if(!i)return;a=i.context.dispatch}return"function"==typeof s?s.apply(this,[a].concat(e)):a.apply(this.$store,[s].concat(e))}}),n}),$=function(t){return{mapState:O.bind(null,t),mapGetters:P.bind(null,t),mapMutations:A.bind(null,t),mapActions:E.bind(null,t)}},C={Store:H,install:M,version:"2.5.0",mapState:O,mapMutations:A,mapGetters:P,mapActions:E,createNamespacedHelpers:$};e.default=C},function(t,e,n){"use strict";function a(t){this.state=ot,this.value=void 0,this.deferred=[];var e=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(t){e.reject(t)}}function s(t,e){t instanceof Promise?this.promise=t:this.promise=new Promise(t.bind(e)),this.context=e}function i(t){var e=t.config,n=t.nextTick;lt=n,ht=e.debug||!e.silent}function r(t){"undefined"!=typeof console&&ht&&console.warn("[VueResource warn]: "+t)}function o(t){"undefined"!=typeof console&&console.error(t)}function d(t,e){return lt(t,e)}function u(t){return t?t.replace(/^\s*|\s*$/g,""):""}function l(t,e){return t&&void 0===e?t.replace(/\s+$/,""):t&&e?t.replace(new RegExp("["+e+"]+$"),""):t}function c(t){return t?t.toLowerCase():""}function _(t){return t?t.toUpperCase():""}function m(t){return"string"==typeof t}function f(t){return"function"==typeof t}function h(t){return null!==t&&"object"==typeof t}function p(t){return h(t)&&Object.getPrototypeOf(t)==Object.prototype}function v(t){return"undefined"!=typeof Blob&&t instanceof Blob}function y(t){return"undefined"!=typeof FormData&&t instanceof FormData}function g(t,e,n){var a=s.resolve(t);return arguments.length<2?a:a.then(e,n)}function M(t,e,n){return n=n||{},f(n)&&(n=n.call(e)),b(t.bind({$vm:e,$options:n}),t,{$options:n})}function L(t,e){var n,a;if(vt(t))for(n=0;n<t.length;n++)e.call(t[n],t[n],n);else if(h(t))for(a in t)_t.call(t,a)&&e.call(t[a],t[a],a);return t}function b(t){return ft.call(arguments,1).forEach(function(e){w(t,e,!0)}),t}function Y(t){return ft.call(arguments,1).forEach(function(e){for(var n in e)void 0===t[n]&&(t[n]=e[n])}),t}function k(t){return ft.call(arguments,1).forEach(function(e){w(t,e)}),t}function w(t,e,n){for(var a in e)n&&(p(e[a])||vt(e[a]))?(p(e[a])&&!p(t[a])&&(t[a]={}),vt(e[a])&&!vt(t[a])&&(t[a]=[]),w(t[a],e[a],n)):void 0!==e[a]&&(t[a]=e[a])}function D(t,e){var n=e(t);return m(t.root)&&!/^(https?:)?\//.test(n)&&(n=l(t.root,"/")+"/"+n),n}function T(t,e){var n=Object.keys($.options.params),a={},s=e(t);return L(t.params,function(t,e){-1===n.indexOf(e)&&(a[e]=t)}),a=$.params(a),a&&(s+=(-1==s.indexOf("?")?"?":"&")+a),s}function x(t,e,n){var a=S(t),s=a.expand(e);return n&&n.push.apply(n,a.vars),s}function S(t){var e=["+","#",".","/",";","?","&"],n=[];return{vars:n,expand:function(a){return t.replace(/\{([^{}]+)\}|([^{}]+)/g,function(t,s,i){if(s){var r=null,o=[];if(-1!==e.indexOf(s.charAt(0))&&(r=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(t){var e=/([^:*]*)(?::(\d+)|(\*))?/.exec(t);o.push.apply(o,H(a,r,e[1],e[2]||e[3])),n.push(e[1])}),r&&"+"!==r){var d=",";return"?"===r?d="&":"#"!==r&&(d=r),(0!==o.length?r:"")+o.join(d)}return o.join(",")}return P(i)})}}}function H(t,e,n,a){var s=t[n],i=[];if(j(s)&&""!==s)if("string"==typeof s||"number"==typeof s||"boolean"==typeof s)s=s.toString(),a&&"*"!==a&&(s=s.substring(0,parseInt(a,10))),i.push(A(e,s,O(e)?n:null));else if("*"===a)Array.isArray(s)?s.filter(j).forEach(function(t){i.push(A(e,t,O(e)?n:null))}):Object.keys(s).forEach(function(t){j(s[t])&&i.push(A(e,s[t],t))});else{var r=[];Array.isArray(s)?s.filter(j).forEach(function(t){r.push(A(e,t))}):Object.keys(s).forEach(function(t){j(s[t])&&(r.push(encodeURIComponent(t)),r.push(A(e,s[t].toString())))}),O(e)?i.push(encodeURIComponent(n)+"="+r.join(",")):0!==r.length&&i.push(r.join(","))}else";"===e?i.push(encodeURIComponent(n)):""!==s||"&"!==e&&"?"!==e?""===s&&i.push(""):i.push(encodeURIComponent(n)+"=");return i}function j(t){return void 0!==t&&null!==t}function O(t){return";"===t||"&"===t||"?"===t}function A(t,e,n){return e="+"===t||"#"===t?P(e):encodeURIComponent(e),n?encodeURIComponent(n)+"="+e:e}function P(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map(function(t){return/%[0-9A-Fa-f]/.test(t)||(t=encodeURI(t)),t}).join("")}function E(t){var e=[],n=x(t.url,t.params,e);return e.forEach(function(e){delete t.params[e]}),n}function $(t,e){var n,a=this||{},s=t;return m(t)&&(s={url:t,params:e}),s=b({},$.options,a.$options,s),$.transforms.forEach(function(t){m(t)&&(t=$.transform[t]),f(t)&&(n=C(t,n,a.$vm))}),n(s)}function C(t,e,n){return function(a){return t.call(n,a,e)}}function W(t,e,n){var a,s=vt(e),i=p(e);L(e,function(e,r){a=h(e)||vt(e),n&&(r=n+"["+(i||a?r:"")+"]"),!n&&s?t.add(e.name,e.value):a?W(t,e,r):t.add(r,e)})}function F(t){return new s(function(e){var n=new XDomainRequest,a=function(a){var s=a.type,i=0;"load"===s?i=200:"error"===s&&(i=500),e(t.respondWith(n.responseText,{status:i}))};t.abort=function(){return n.abort()},n.open(t.method,t.getUrl()),t.timeout&&(n.timeout=t.timeout),n.onload=a,n.onabort=a,n.onerror=a,n.ontimeout=a,n.onprogress=function(){},n.send(t.getBody())})}function N(t){if(pt){var e=$.parse(location.href),n=$.parse(t.getUrl());n.protocol===e.protocol&&n.host===e.host||(t.crossOrigin=!0,t.emulateHTTP=!1,gt||(t.client=F))}}function I(t){y(t.body)?t.headers.delete("Content-Type"):h(t.body)&&t.emulateJSON&&(t.body=$.params(t.body),t.headers.set("Content-Type","application/x-www-form-urlencoded"))}function z(t){var e=t.headers.get("Content-Type")||"";return h(t.body)&&0===e.indexOf("application/json")&&(t.body=JSON.stringify(t.body)),function(t){return t.bodyText?g(t.text(),function(e){if(0===(t.headers.get("Content-Type")||"").indexOf("application/json")||R(e))try{t.body=JSON.parse(e)}catch(e){t.body=null}else t.body=e;return t}):t}}function R(t){var e=t.match(/^\s*(\[|\{)/),n={"[":/]\s*$/,"{":/}\s*$/};return e&&n[e[1]].test(t)}function J(t){return new s(function(e){var n,a,s=t.jsonp||"callback",i=t.jsonpCallback||"_jsonp"+Math.random().toString(36).substr(2),r=null;n=function(n){var s=n.type,o=0;"load"===s&&null!==r?o=200:"error"===s&&(o=500),o&&window[i]&&(delete window[i],document.body.removeChild(a)),e(t.respondWith(r,{status:o}))},window[i]=function(t){r=JSON.stringify(t)},t.abort=function(){n({type:"abort"})},t.params[s]=i,t.timeout&&setTimeout(t.abort,t.timeout),a=document.createElement("script"),a.src=t.getUrl(),a.type="text/javascript",a.async=!0,a.onload=n,a.onerror=n,document.body.appendChild(a)})}function V(t){"JSONP"==t.method&&(t.client=J)}function U(t){f(t.before)&&t.before.call(this,t)}function G(t){t.emulateHTTP&&/^(PUT|PATCH|DELETE)$/i.test(t.method)&&(t.headers.set("X-HTTP-Method-Override",t.method),t.method="POST")}function q(t){L(yt({},at.headers.common,t.crossOrigin?{}:at.headers.custom,at.headers[c(t.method)]),function(e,n){t.headers.has(n)||t.headers.set(n,e)})}function B(t){return new s(function(e){var n=new XMLHttpRequest,a=function(a){var s=t.respondWith("response"in n?n.response:n.responseText,{status:1223===n.status?204:n.status,statusText:1223===n.status?"No Content":u(n.statusText)});L(u(n.getAllResponseHeaders()).split("\n"),function(t){s.headers.append(t.slice(0,t.indexOf(":")),t.slice(t.indexOf(":")+1))}),e(s)};t.abort=function(){return n.abort()},n.open(t.method,t.getUrl(),!0),t.timeout&&(n.timeout=t.timeout),t.responseType&&"responseType"in n&&(n.responseType=t.responseType),(t.withCredentials||t.credentials)&&(n.withCredentials=!0),t.crossOrigin||t.headers.set("X-Requested-With","XMLHttpRequest"),f(t.progress)&&"GET"===t.method&&n.addEventListener("progress",t.progress),f(t.downloadProgress)&&n.addEventListener("progress",t.downloadProgress),f(t.progress)&&/^(POST|PUT)$/i.test(t.method)&&n.upload.addEventListener("progress",t.progress),f(t.uploadProgress)&&n.upload&&n.upload.addEventListener("progress",t.uploadProgress),t.headers.forEach(function(t,e){n.setRequestHeader(e,t)}),n.onload=a,n.onabort=a,n.onerror=a,n.ontimeout=a,n.send(t.getBody())})}function K(t){var e=n(39);return new s(function(n){var a,s=t.getUrl(),i=t.getBody(),r=t.method,o={};t.headers.forEach(function(t,e){o[e]=t}),e(s,{body:i,method:r,headers:o}).then(a=function(e){var a=t.respondWith(e.body,{status:e.statusCode,statusText:u(e.statusMessage)});L(e.headers,function(t,e){a.headers.set(e,t)}),n(a)},function(t){return a(t.response)})})}function X(t){function e(e){for(;n.length;){var i=n.pop();if(f(i)){var o=void 0,d=void 0;if(o=i.call(t,e,function(t){return d=t})||d,h(o))return new s(function(e,n){a.forEach(function(e){o=g(o,function(n){return e.call(t,n)||n},n)}),g(o,e,n)},t);f(o)&&a.unshift(o)}else r("Invalid interceptor of type "+typeof i+", must be a function")}}var n=[Z],a=[];return h(t)||(t=null),e.use=function(t){n.push(t)},e}function Z(t){return(t.client||(pt?B:K))(t)}function Q(t,e){return Object.keys(t).reduce(function(t,n){return c(e)===c(n)?n:t},null)}function tt(t){if(/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return u(t)}function et(t){return new s(function(e){var n=new FileReader;n.readAsText(t),n.onload=function(){e(n.result)}})}function nt(t){return 0===t.type.indexOf("text")||-1!==t.type.indexOf("json")}function at(t){var e=this||{},n=X(e.$vm);return Y(t||{},e.$options,at.options),at.interceptors.forEach(function(t){m(t)&&(t=at.interceptor[t]),f(t)&&n.use(t)}),n(new bt(t)).then(function(t){return t.ok?t:s.reject(t)},function(t){return t instanceof Error&&o(t),s.reject(t)})}function st(t,e,n,a){var s=this||{},i={};return n=yt({},st.actions,n),L(n,function(n,r){n=b({url:t,params:yt({},e)},a,n),i[r]=function(){return(s.$http||at)(it(n,arguments))}}),i}function it(t,e){var n,a=yt({},t),s={};switch(e.length){case 2:s=e[0],n=e[1];break;case 1:/^(POST|PUT|PATCH)$/i.test(a.method)?n=e[0]:s=e[0];break;case 0:break;default:throw"Expected up to 2 arguments [params, body], got "+e.length+" arguments"}return a.body=n,a.params=yt({},a.params,s),a}function rt(t){rt.installed||(i(t),t.url=$,t.http=at,t.resource=st,t.Promise=s,Object.defineProperties(t.prototype,{$url:{get:function(){return M(t.url,this,this.$options.url)}},$http:{get:function(){return M(t.http,this,this.$options.http)}},$resource:{get:function(){return t.resource.bind(this)}},$promise:{get:function(){var e=this;return function(n){return new t.Promise(n,e)}}}}))}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"Url",function(){return $}),n.d(e,"Http",function(){return at}),n.d(e,"Resource",function(){return st});/*!
|
12 |
+
* vue-resource v1.5.0
|
13 |
+
* https://github.com/pagekit/vue-resource
|
14 |
+
* Released under the MIT License.
|
15 |
+
*/
|
16 |
+
var ot=2;a.reject=function(t){return new a(function(e,n){n(t)})},a.resolve=function(t){return new a(function(e,n){e(t)})},a.all=function(t){return new a(function(e,n){var s=0,i=[];0===t.length&&e(i);for(var r=0;r<t.length;r+=1)a.resolve(t[r]).then(function(n){return function(a){i[n]=a,(s+=1)===t.length&&e(i)}}(r),n)})},a.race=function(t){return new a(function(e,n){for(var s=0;s<t.length;s+=1)a.resolve(t[s]).then(e,n)})};var dt=a.prototype;dt.resolve=function(t){var e=this;if(e.state===ot){if(t===e)throw new TypeError("Promise settled with itself.");var n=!1;try{var a=t&&t.then;if(null!==t&&"object"==typeof t&&"function"==typeof a)return void a.call(t,function(t){n||e.resolve(t),n=!0},function(t){n||e.reject(t),n=!0})}catch(t){return void(n||e.reject(t))}e.state=0,e.value=t,e.notify()}},dt.reject=function(t){var e=this;if(e.state===ot){if(t===e)throw new TypeError("Promise settled with itself.");e.state=1,e.value=t,e.notify()}},dt.notify=function(){var t=this;d(function(){if(t.state!==ot)for(;t.deferred.length;){var e=t.deferred.shift(),n=e[0],a=e[1],s=e[2],i=e[3];try{0===t.state?s("function"==typeof n?n.call(void 0,t.value):t.value):1===t.state&&("function"==typeof a?s(a.call(void 0,t.value)):i(t.value))}catch(t){i(t)}}})},dt.then=function(t,e){var n=this;return new a(function(a,s){n.deferred.push([t,e,a,s]),n.notify()})},dt.catch=function(t){return this.then(void 0,t)},"undefined"==typeof Promise&&(window.Promise=a),s.all=function(t,e){return new s(Promise.all(t),e)},s.resolve=function(t,e){return new s(Promise.resolve(t),e)},s.reject=function(t,e){return new s(Promise.reject(t),e)},s.race=function(t,e){return new s(Promise.race(t),e)};var ut=s.prototype;ut.bind=function(t){return this.context=t,this},ut.then=function(t,e){return t&&t.bind&&this.context&&(t=t.bind(this.context)),e&&e.bind&&this.context&&(e=e.bind(this.context)),new s(this.promise.then(t,e),this.context)},ut.catch=function(t){return t&&t.bind&&this.context&&(t=t.bind(this.context)),new s(this.promise.catch(t),this.context)},ut.finally=function(t){return this.then(function(e){return t.call(this),e},function(e){return t.call(this),Promise.reject(e)})};var lt,ct={},_t=ct.hasOwnProperty,mt=[],ft=mt.slice,ht=!1,pt="undefined"!=typeof window,vt=Array.isArray,yt=Object.assign||k;$.options={url:"",root:null,params:{}},$.transform={template:E,query:T,root:D},$.transforms=["template","query","root"],$.params=function(t){var e=[],n=encodeURIComponent;return e.add=function(t,e){f(e)&&(e=e()),null===e&&(e=""),this.push(n(t)+"="+n(e))},W(e,t),e.join("&").replace(/%20/g,"+")},$.parse=function(t){var e=document.createElement("a");return document.documentMode&&(e.href=t,t=e.href),e.href=t,{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",port:e.port,host:e.host,hostname:e.hostname,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):""}};var gt=pt&&"withCredentials"in new XMLHttpRequest,Mt=function(t){var e=this;this.map={},L(t,function(t,n){return e.append(n,t)})};Mt.prototype.has=function(t){return null!==Q(this.map,t)},Mt.prototype.get=function(t){var e=this.map[Q(this.map,t)];return e?e.join():null},Mt.prototype.getAll=function(t){return this.map[Q(this.map,t)]||[]},Mt.prototype.set=function(t,e){this.map[tt(Q(this.map,t)||t)]=[u(e)]},Mt.prototype.append=function(t,e){var n=this.map[Q(this.map,t)];n?n.push(u(e)):this.set(t,e)},Mt.prototype.delete=function(t){delete this.map[Q(this.map,t)]},Mt.prototype.deleteAll=function(){this.map={}},Mt.prototype.forEach=function(t,e){var n=this;L(this.map,function(a,s){L(a,function(a){return t.call(e,a,s,n)})})};var Lt=function(t,e){var n=e.url,a=e.headers,s=e.status,i=e.statusText;this.url=n,this.ok=s>=200&&s<300,this.status=s||0,this.statusText=i||"",this.headers=new Mt(a),this.body=t,m(t)?this.bodyText=t:v(t)&&(this.bodyBlob=t,nt(t)&&(this.bodyText=et(t)))};Lt.prototype.blob=function(){return g(this.bodyBlob)},Lt.prototype.text=function(){return g(this.bodyText)},Lt.prototype.json=function(){return g(this.text(),function(t){return JSON.parse(t)})},Object.defineProperty(Lt.prototype,"data",{get:function(){return this.body},set:function(t){this.body=t}});var bt=function(t){this.body=null,this.params={},yt(this,t,{method:_(t.method||"GET")}),this.headers instanceof Mt||(this.headers=new Mt(this.headers))};bt.prototype.getUrl=function(){return $(this)},bt.prototype.getBody=function(){return this.body},bt.prototype.respondWith=function(t,e){return new Lt(t,yt(e||{},{url:this.getUrl()}))};var Yt={Accept:"application/json, text/plain, */*"},kt={"Content-Type":"application/json;charset=utf-8"};at.options={},at.headers={put:kt,post:kt,patch:kt,delete:kt,common:Yt,custom:{}},at.interceptor={before:U,method:G,jsonp:V,json:z,form:I,header:q,cors:N},at.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach(function(t){at[t]=function(e,n){return this(yt(n||{},{url:e,method:t}))}}),["post","put","patch"].forEach(function(t){at[t]=function(e,n,a){return this(yt(a||{},{url:e,method:t,body:n}))}}),st.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}},"undefined"!=typeof window&&window.Vue&&window.Vue.use(rt),e.default=rt},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(41),s=function(t){return t&&t.__esModule?t:{default:t}}(a);e.default={install:s.default.install}},function(t,e,n){"use strict";function a(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function t(t,n){var a={};return n.forEach(function(s){n.indexOf(s)>=n.indexOf(t.logLevel)?a[s]=function(){for(var n=arguments.length,a=Array(n),r=0;r<n;r++)a[r]=arguments[r];var o=i(),d=t.showMethodName?o+" "+t.separator+" ":"",u=t.showLogLevel?s+" "+t.separator+" ":"",l=t.stringifyArguments?a.map(function(t){return JSON.stringify(t)}):a;e(s,u,d,l,t.showConsoleColors)}:a[s]=function(){}}),a}function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(arguments.length>4&&void 0!==arguments[4]&&arguments[4]&&("warn"===t||"error"===t||"fatal"===t)){var i;(i=console)["fatal"===t?"error":t].apply(i,[e,n].concat(a(s)))}else{var r;(r=console).log.apply(r,[e,n].concat(a(s)))}}function n(t,e){return!(!(t.logLevel&&"string"==typeof t.logLevel&&e.indexOf(t.logLevel)>-1)||t.stringifyArguments&&"boolean"!=typeof t.stringifyArguments||t.showLogLevel&&"boolean"!=typeof t.showLogLevel||t.showConsoleColors&&"boolean"!=typeof t.showConsoleColors||t.separator&&("string"!=typeof t.separator||"string"==typeof t.separator&&t.separator.length>3)||t.showMethodName&&"boolean"!=typeof t.showMethodName)}function s(e,a){if(a=Object.assign(r,a),!n(a,o))throw new Error("Provided options for vuejs-logger are not valid.");e.$log=t(a,o),e.prototype.$log=e.$log}function i(){var t={};try{throw new Error("")}catch(e){t=e}var e=t.stack.split("\n")[3];return/ /.test(e)&&(e=e.trim().split(" ")[1]),e&&e.includes(".")&&(e=e.split(".")[1]),e}var r={logLevel:"debug",separator:"|",stringifyArguments:!1,showLogLevel:!1,showMethodName:!1,showConsoleColors:!1},o=["debug","info","warn","error","fatal"];return{install:s,isValidOptions:n,print:e,initLoggerInstance:t,logLevels:o}}()},function(t,e,n){var a=n(8),s=n(15),i=n(44)(!1),r=n(17)("IE_PROTO");t.exports=function(t,e){var n,o=s(t),d=0,u=[];for(n in o)n!=r&&a(o,n)&&u.push(n);for(;e.length>d;)a(o,n=e[d++])&&(~i(u,n)||u.push(n));return u}},function(t,e,n){var a=n(21);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==a(t)?t.split(""):Object(t)}},function(t,e,n){var a=n(15),s=n(45),i=n(46);t.exports=function(t){return function(e,n,r){var o,d=a(e),u=s(d.length),l=i(r,u);if(t&&n!=n){for(;u>l;)if((o=d[l++])!=o)return!0}else for(;u>l;l++)if((t||l in d)&&d[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var a=n(16),s=Math.min;t.exports=function(t){return t>0?s(a(t),9007199254740991):0}},function(t,e,n){var a=n(16),s=Math.max,i=Math.min;t.exports=function(t,e){return t=a(t),t<0?s(t+e,0):i(t,e)}},function(t,e,n){var a=n(48);t.exports=function(t,e,n){if(a(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,a){return t.call(e,n,a)};case 3:return function(n,a,s){return t.call(e,n,a,s)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){t.exports=!n(10)&&!n(20)(function(){return 7!=Object.defineProperty(n(26)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var a=n(19);t.exports=function(t,e){if(!a(t))return t;var n,s;if(e&&"function"==typeof(n=t.toString)&&!a(s=n.call(t)))return s;if("function"==typeof(n=t.valueOf)&&!a(s=n.call(t)))return s;if(!e&&"function"==typeof(n=t.toString)&&!a(s=n.call(t)))return s;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){n(52),n(63),t.exports=n(65)},function(t,e,n){n(53);for(var a=n(3),s=n(6),i=n(11),r=n(4)("toStringTag"),o="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),d=0;d<o.length;d++){var u=o[d],l=a[u],c=l&&l.prototype;c&&!c[r]&&s(c,r,u),i[u]=i.Array}},function(t,e,n){"use strict";var a=n(54),s=n(55),i=n(11),r=n(15);t.exports=n(28)(Array,"Array",function(t,e){this._t=r(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,s(1)):"keys"==e?s(0,n):"values"==e?s(0,t[n]):s(0,[n,t[n]])},"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=!0},function(t,e,n){t.exports=n(6)},function(t,e,n){"use strict";var a=n(59),s=n(27),i=n(29),r={};n(6)(r,n(4)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=a(r,{next:s(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var a=n(9),s=n(60),i=n(24),r=n(17)("IE_PROTO"),o=function(){},d=function(){var t,e=n(26)("iframe"),a=i.length;for(e.style.display="none",n(61).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),d=t.F;a--;)delete d.prototype[i[a]];return d()};t.exports=Object.create||function(t,e){var n;return null!==t?(o.prototype=a(t),n=new o,o.prototype=null,n[r]=t):n=d(),void 0===e?n:s(n,e)}},function(t,e,n){var a=n(18),s=n(9),i=n(31);t.exports=n(10)?Object.defineProperties:function(t,e){s(t);for(var n,r=i(e),o=r.length,d=0;o>d;)a.f(t,n=r[d++],e[n]);return t}},function(t,e,n){var a=n(3).document;t.exports=a&&a.documentElement},function(t,e,n){var a=n(8),s=n(30),i=n(17)("IE_PROTO"),r=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=s(t),a(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?r:null}},function(t,e,n){"use strict";var a=n(64)(!0);n(28)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=a(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var a=n(16),s=n(14);t.exports=function(t){return function(e,n){var i,r,o=String(s(e)),d=a(n),u=o.length;return d<0||d>=u?t?"":void 0:(i=o.charCodeAt(d),i<55296||i>56319||d+1===u||(r=o.charCodeAt(d+1))<56320||r>57343?t?o.charAt(d):i:t?o.slice(d,d+2):r-56320+(i-55296<<10)+65536)}}},function(t,e,n){var a=n(9),s=n(66);t.exports=n(5).getIterator=function(t){var e=s(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return a(e.call(t))}},function(t,e,n){var a=n(67),s=n(4)("iterator"),i=n(11);t.exports=n(5).getIteratorMethod=function(t){if(void 0!=t)return t[s]||t["@@iterator"]||i[a(t)]}},function(t,e,n){var a=n(21),s=n(4)("toStringTag"),i="Arguments"==a(function(){return arguments}()),r=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=r(e=Object(t),s))?n:i?a(e):"Object"==(o=a(e))&&"function"==typeof e.callee?"Arguments":o}},function(t,e,n){var a,s;a=n(69),s=n(71),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){"use strict";function a(t,e){var n=void 0;for(n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}var s=n(32),i=function(t){return t&&t.__esModule?t:{default:t}}(s),r=n(70);t.exports={name:"multiple-select",mixins:[r.mixin],props:{options:{default:function(){return[]},type:Array},disabled:{default:!0,type:Boolean},selected:{default:function(){return[]},type:Array},placeHolderText:{default:"Please select something",type:String},changedSelection:{default:function(t){return t},type:Function},dontLock:{default:!1,type:Boolean}},mounted:function(){var t=!0,e=!1,n=void 0;try{for(var a,s=(0,i.default)(this.selected);!(t=(a=s.next()).done);t=!0){var r=a.value;if(r.selected){var o=0,d=!0,u=!1,l=void 0;try{for(var c,_=(0,i.default)(this.options);!(d=(c=_.next()).done);d=!0){c.value.value===r.value&&(this.options[o].selected=r.selected),o++}}catch(t){u=!0,l=t}finally{try{!d&&_.return&&_.return()}finally{if(u)throw l}}}}}catch(t){e=!0,n=t}finally{try{!t&&s.return&&s.return()}finally{if(e)throw n}}},data:function(){return{search:"",highlighted:-1,no_results:!1,labels:this.$store.state.labels.general,upsell_link:ropApiSettings.upsell_link,magic_flag:!1}},watch:{search:function(t){this.$emit("update",t)}},computed:{is_focused:function(){return{"is-focused":!0===this.magic_flag}},is_visible:function(){return{"d-none":!1===this.magic_flag}},is_one:function(){if(!this.dontLock){if(1===this.options.length&&!1===this.options[0].selected)return!0;if(1===this.options.length&&!0===this.options[0].selected)return!0}return!1},autocomplete_placeholder:function(){return this.selected.length>0?"":this.placeHolderText},is_disabled:function(){return!this.disabled},has_results:function(){var t=0,e=!0,n=!1,a=void 0;try{for(var s,r=(0,i.default)(this.options);!(e=(s=r.next()).done);e=!0){var o=s.value;this.filterSearch(o)&&t++}}catch(t){n=!0,a=t}finally{try{!e&&r.return&&r.return()}finally{if(n)throw a}}return!t}},methods:{closeDropdown:function(){this.magic_flag=!1},highlightItem:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this.highlighted--:this.highlighted++;var t=this.$refs.autocomplete_results.children.length-1;t<0&&(t=0),this.highlighted>t&&(this.highlighted=0),this.highlighted<0&&(this.highlighted=t),this.$refs.autocomplete_results.children[this.highlighted].firstChild.focus()},popLast:function(){""===this.search&&(this.selected.pop(),this.magic_flag=!1)},markMatch:function(t,e){var n=t;if(-1!==t.toLowerCase().indexOf(e.toLowerCase())&&""!==e){var a=new RegExp(e,"ig");n=t.replace(a,function(t){return"<mark>"+t+"</mark>"})}return n},filterSearch:function(t){return(-1!==t.name.toLowerCase().indexOf(this.search.toLowerCase())||""===this.search)&&(!t.selected&&!a(t,this.selected))},addToSelected:function(t){if(!this.is_disabled){var e=this.options[t];e.selected=!0,this.selected.push(e),this.$refs.search.focus(),this.magic_flag=!1,this.search="",this.changedSelection(this.selected)}},removeSelected:function(t){this.is_disabled||(this.selected.splice(t,1),this.$refs.search.focus(),this.magic_flag=!1,this.search="",this.changedSelection(this.selected))}}}},function(t,e,n){"use strict";function a(t,e){s(t);var n=e.value;if("function"==typeof n){var a=!1;setTimeout(function(){a=!0},0),t[r]=function(e){if(a&&!t.contains(e.target))return n(e)},document.documentElement.addEventListener("click",t[r],!1)}}function s(t){document.documentElement.removeEventListener("click",t[r],!1),delete t[r]}var i=n(7);i="default"in i?i.default:i;/^2\./.test(i.version)||i.util.warn("VueClickaway 2.1.0 only supports Vue 2.x, and does not support Vue "+i.version);var r="_vue_clickaway_handler",o={bind:a,update:function(t,e){e.value!==e.oldValue&&a(t,e)},unbind:s},d={directives:{onClickaway:o}};e.version="2.1.0",e.directive=o,e.mixin=d},function(t,e){t.exports='\n\t<div class="form-autocomplete" style="width: 100%;" v-on-clickaway="closeDropdown">\n\t\t\x3c!-- autocomplete input container --\x3e\n\t\t<div class="form-autocomplete-input form-input" :class="is_focused">\n\t\t\t\n\t\t\t\x3c!-- autocomplete chips --\x3e\n\t\t\t<label class="chip" v-for="( option, index ) in selected">\n\t\t\t\t{{option.name}}\n\t\t\t\t<a href="#" class="btn btn-clear" aria-label="Close" @click.prevent="removeSelected(index)"\n\t\t\t\t role="button"></a>\n\t\t\t</label>\n\t\t\t\n\t\t\t\x3c!-- autocomplete real input box --\x3e\n\t\t\t<input style="height: 1.0rem;" class="form-input" type="text" ref="search" v-model="search"\n\t\t\t :placeholder="autocomplete_placeholder" @click="magic_flag = true" @focus="magic_flag = true"\n\t\t\t @keyup="magic_flag = true" @keydown.8="popLast()" @keydown.38="highlightItem(true)"\n\t\t\t @keydown.40="highlightItem()" :disabled="is_disabled">\n\t\t</div>\n\t\t\n\t\t\x3c!-- autocomplete suggestion list --\x3e\n\t\t<ul class="menu" ref="autocomplete_results" :class="is_visible"\n\t\t style="overflow-y: scroll; max-height: 120px">\n\t\t\t\x3c!-- menu list chips --\x3e\n\t\t\t<li class="menu-item" v-for="( option, index ) in options" v-if="filterSearch(option)">\n\t\t\t\t<a href="#" @click.prevent="addToSelected(index)" @keydown.38="highlightItem(true)"\n\t\t\t\t @keydown.40="highlightItem()">\n\t\t\t\t\t<div class="tile tile-centered">\n\t\t\t\t\t\t<div class="tile-content" v-html="markMatch(option.name, search)"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</a>\n\t\t\t</li>\n\t\t\t<li v-if="has_results">\n\t\t\t\t<a href="#">\n\t\t\t\t\t<div class="tile tile-centered">\n\t\t\t\t\t\t<div class="tile-content"><i>{{labels.multiselect_not_found}}"{{search}}" ...</i></div>\n\t\t\t\t\t</div>\n\t\t\t\t</a>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n\n'},function(t,e,n){var a,s;n(73),a=n(75),s=n(76),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){var a=n(74);"string"==typeof a&&(a=[[t.i,a,""]]);n(2)(a,{});a.locals&&(t.exports=a.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t#rop-upsell-box[_v-3157056c]{\n\t\tmargin-top:20px;\n\t}\n\t#rop_core .rop-upsell-business-card[_v-3157056c],\n\t#rop_core .rop-upsell-pro-card[_v-3157056c] {\n\t\tpadding: 0;\n\t}\n",""])},function(t,e,n){"use strict";t.exports={name:"upsell-sidebar",data:function(){return{license:this.$store.state.licence,upsell_link:ropApiSettings.upsell_link,to_pro_upsell:ROP_ASSETS_URL+"img/to_pro.png",labels:this.$store.state.labels.general,to_business_upsell:ROP_ASSETS_URL+"img/to_business.png"}}}},function(t,e){t.exports='\n\t<div id="rop-upsell-box" _v-3157056c="">\n\t\t<div class="card rop-upsell-pro-card" v-if="license < 1 " _v-3157056c="">\n\t\t\t<a :href="upsell_link" target="_blank" _v-3157056c="">\n\t\t\t\t<img class="img-responsive" :src="to_pro_upsell" :alt="labels.upgrade_pro_cta" _v-3157056c="">\n\t\t\t</a>\n\t\t</div>\n\t\t<div class="card rop-upsell-business-card" v-if="license === 1" _v-3157056c="">\n\t\t\t<a :href="upsell_link" target="_blank" _v-3157056c="">\n\t\t\t\t<img class="img-responsive" :src="to_business_upsell" :alt="labels.upgrade_biz_cta" _v-3157056c="">\n\t\t\t</a>\n\t\t</div>\n\t</div>\n'},function(t,e,n){var a,s;a=n(214),s=n(215),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){var a,s;n(231),a=n(233),s=n(234),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(t){return/^nm$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},a=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},s={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(t){return function(e,n,i,r){var o=a(e),d=s[t][a(e)];return 2===o&&(d=d[n?0:1]),d.replace(/%d/i,e)}},r=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return t.defineLocale("ar",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(t){return n[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},a={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},s=function(t){return function(e,s,i,r){var o=n(e),d=a[t][n(e)];return 2===o&&(d=d[s?0:1]),d.replace(/%d/i,e)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return t.defineLocale("ar-ly",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return t.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(t){return n[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},week:{dow:0,doy:6}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};return t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(t){return/^(gündüz|axşam)$/.test(t)},meridiem:function(t,e,n){return t<4?"gecə":t<12?"səhər":t<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(t){if(0===t)return t+"-ıncı";var n=t%10,a=t%100-n,s=t>=100?100:null;return t+(e[n]||e[a]||e[s])},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e){var n=t.split("_");return e%10==1&&e%100!=11?n[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}function n(t,n,a){var s={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===a?n?"хвіліна":"хвіліну":"h"===a?n?"гадзіна":"гадзіну":t+" "+e(s[a],+t)}return t.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(t){return/^(дня|вечара)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночы":t<12?"раніцы":t<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-ы":t+"-і";case"D":return t+"-га";default:return t}},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0===n?t+"-ен":n>10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};return t.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e&&t>=4||"দুপুর"===e&&t<5||"বিকাল"===e?t+12:t},meridiem:function(t,e,n){return t<4?"রাত":t<10?"সকাল":t<17?"দুপুর":t<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};return t.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(t){return t.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(t,e){return 12===t&&(t=0),"མཚན་མོ"===e&&t>=4||"ཉིན་གུང"===e&&t<5||"དགོང་དག"===e?t+12:t},meridiem:function(t,e,n){return t<4?"མཚན་མོ":t<10?"ཞོགས་ཀས":t<17?"ཉིན་གུང":t<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n){return t+" "+s({mm:"munutenn",MM:"miz",dd:"devezh"}[n],t)}function n(t){switch(a(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}function a(t){return t>9?a(t%10):t}function s(t,e){return 2===e?i(t):t}function i(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}return t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(t){return t+(1===t?"añ":"vet")},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n){var a=t+" ";switch(n){case"ss":return a+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"m":return e?"jedna minuta":"jedne minute";case"mm":return a+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return a+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return a+=1===t?"dan":"dana";case"MM":return a+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return a+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}return t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(t,e){var n=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(n="a"),t+n},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t){return t>1&&t<5&&1!=~~(t/10)}function n(t,n,a,s){var i=t+" ";switch(a){case"s":return n||s?"pár sekund":"pár sekundami";case"ss":return n||s?i+(e(t)?"sekundy":"sekund"):i+"sekundami";case"m":return n?"minuta":s?"minutu":"minutou";case"mm":return n||s?i+(e(t)?"minuty":"minut"):i+"minutami";case"h":return n?"hodina":s?"hodinu":"hodinou";case"hh":return n||s?i+(e(t)?"hodiny":"hodin"):i+"hodinami";case"d":return n||s?"den":"dnem";case"dd":return n||s?i+(e(t)?"dny":"dní"):i+"dny";case"M":return n||s?"měsíc":"měsícem";case"MM":return n||s?i+(e(t)?"měsíce":"měsíců"):i+"měsíci";case"y":return n||s?"rok":"rokem";case"yy":return n||s?i+(e(t)?"roky":"let"):i+"lety"}}var a="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),s="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");return t.defineLocale("cs",{months:a,monthsShort:s,monthsParse:function(t,e){var n,a=[];for(n=0;n<12;n++)a[n]=new RegExp("^"+t[n]+"$|^"+e[n]+"$","i");return a}(a,s),shortMonthsParse:function(t){var e,n=[];for(e=0;e<12;e++)n[e]=new RegExp("^"+t[e]+"$","i");return n}(s),longMonthsParse:function(t){var e,n=[];for(e=0;e<12;e++)n[e]=new RegExp("^"+t[e]+"$","i");return n}(a),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(t){return t+(/сехет$/i.exec(t)?"рен":/ҫул$/i.exec(t)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(t){var e=t,n="",a=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return e>20?n=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(n=a[e]),t+n},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n,a){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[n][0]:s[n][1]}return t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n,a){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[n][0]:s[n][1]}return t.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n,a){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[n][0]:s[n][1]}return t.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];return t.defineLocale("dv",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(t){return"މފ"===t},meridiem:function(t,e,n){return t<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:7,doy:12}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}return t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(t,e,n){return t>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(t){return"μ"===(t+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,n){var a=this._calendarEl[t],s=n&&n.hours();return e(a)&&(a=a.apply(n)),a.replace("{}",s%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,n){return t>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,a){return t?/-MMM-/.test(a)?n[t.month()]:e[t.month()]:e},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,a){return t?/-MMM-/.test(a)?n[t.month()]:e[t.month()]:e},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");return t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,a){return t?/-MMM-/.test(a)?n[t.month()]:e[t.month()]:e},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n,a){var s={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["ühe minuti","üks minut"],mm:[t+" minuti",t+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[t+" tunni",t+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[t+" kuu",t+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[t+" aasta",t+" aastat"]};return e?s[n][2]?s[n][2]:s[n][1]:a?s[n][0]:s[n][1]}return t.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d päeva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};return t.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(t){return/بعد از ظهر/.test(t)},meridiem:function(t,e,n){return t<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(t){return t.replace(/[۰-۹]/g,function(t){return n[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,a,s){var i="";switch(a){case"s":return s?"muutaman sekunnin":"muutama sekunti";case"ss":return s?"sekunnin":"sekuntia";case"m":return s?"minuutin":"minuutti";case"mm":i=s?"minuutin":"minuuttia";break;case"h":return s?"tunnin":"tunti";case"hh":i=s?"tunnin":"tuntia";break;case"d":return s?"päivän":"päivä";case"dd":i=s?"päivän":"päivää";break;case"M":return s?"kuukauden":"kuukausi";case"MM":i=s?"kuukauden":"kuukautta";break;case"y":return s?"vuoden":"vuosi";case"yy":i=s?"vuoden":"vuotta"}return i=n(t,s)+" "+i}function n(t,e){return t<10?e?s[t]:a[t]:t}var a="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),s=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",a[7],a[8],a[9]];return t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");return t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,a){return t?/-MMM-/.test(a)?n[t.month()]:e[t.month()]:e},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],a=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],s=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],i=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];return t.defineLocale("gd",{months:e,monthsShort:n,monthsParseExact:!0,weekdays:a,weekdaysShort:s,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(t){return 0===t.indexOf("un")?"n"+t:"en "+t},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n,a){var s={s:["thodde secondanim","thodde second"],ss:[t+" secondanim",t+" second"],m:["eka mintan","ek minute"],mm:[t+" mintanim",t+" mintam"],h:["eka horan","ek hor"],hh:[t+" horanim",t+" horam"],d:["eka disan","ek dis"],dd:[t+" disanim",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineanim",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsanim",t+" vorsam"]};return e?s[n][0]:s[n][1]}return t.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokalli"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"rati":t<12?"sokalli":t<16?"donparam":t<20?"sanje":"rati"}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};return t.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(t){return t.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(t,e){return 12===t&&(t=0),"રાત"===e?t<4?t:t+12:"સવાર"===e?t:"બપોર"===e?t>=10?t:t+12:"સાંજ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"રાત":t<10?"સવાર":t<17?"બપોર":t<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(t){return 2===t?"שעתיים":t+" שעות"},d:"יום",dd:function(t){return 2===t?"יומיים":t+" ימים"},M:"חודש",MM:function(t){return 2===t?"חודשיים":t+" חודשים"},y:"שנה",yy:function(t){return 2===t?"שנתיים":t%10==0&&10!==t?t+" שנה":t+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(t){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(t)},meridiem:function(t,e,n){return t<5?"לפנות בוקר":t<10?"בבוקר":t<12?n?'לפנה"צ':"לפני הצהריים":t<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return t.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(t,e){return 12===t&&(t=0),"रात"===e?t<4?t:t+12:"सुबह"===e?t:"दोपहर"===e?t>=10?t:t+12:"शाम"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"रात":t<10?"सुबह":t<17?"दोपहर":t<20?"शाम":"रात"},week:{dow:0,doy:6}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n){var a=t+" ";switch(n){case"ss":return a+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"m":return e?"jedna minuta":"jedne minute";case"mm":return a+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return a+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return a+=1===t?"dan":"dana";case"MM":return a+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return a+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}return t.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n,a){var s=t;switch(n){case"s":return a||e?"néhány másodperc":"néhány másodperce";case"ss":return s+(a||e)?" másodperc":" másodperce";case"m":return"egy"+(a||e?" perc":" perce");case"mm":return s+(a||e?" perc":" perce");case"h":return"egy"+(a||e?" óra":" órája");case"hh":return s+(a||e?" óra":" órája");case"d":return"egy"+(a||e?" nap":" napja");case"dd":return s+(a||e?" nap":" napja");case"M":return"egy"+(a||e?" hónap":" hónapja");case"MM":return s+(a||e?" hónap":" hónapja");case"y":return"egy"+(a||e?" év":" éve");case"yy":return s+(a||e?" év":" éve")}return""}function n(t){return(t?"":"[múlt] ")+"["+a[this.day()]+"] LT[-kor]"}var a="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");return t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,n){return t<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(t){return/^(ցերեկվա|երեկոյան)$/.test(t)},meridiem:function(t){return t<4?"գիշերվա":t<12?"առավոտվա":t<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-ին":t+"-րդ";default:return t}},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"siang":t<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t){return t%100==11||t%10!=1}function n(t,n,a,s){var i=t+" ";switch(a){case"s":return n||s?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return e(t)?i+(n||s?"sekúndur":"sekúndum"):i+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return e(t)?i+(n||s?"mínútur":"mínútum"):n?i+"mínúta":i+"mínútu";case"hh":return e(t)?i+(n||s?"klukkustundir":"klukkustundum"):i+"klukkustund";case"d":return n?"dagur":s?"dag":"degi";case"dd":return e(t)?n?i+"dagar":i+(s?"daga":"dögum"):n?i+"dagur":i+(s?"dag":"degi");case"M":return n?"mánuður":s?"mánuð":"mánuði";case"MM":return e(t)?n?i+"mánuðir":i+(s?"mánuði":"mánuðum"):n?i+"mánuður":i+(s?"mánuð":"mánuði");case"y":return n||s?"ár":"ári";case"yy":return e(t)?i+(n||s?"ár":"árum"):i+(n||s?"ár":"ári")}}return t.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(t){return"午後"===t},meridiem:function(t,e,n){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(t){return t.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(t){return this.week()<t.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(t,e){return 12===t&&(t=0),"enjing"===e?t:"siyang"===e?t>=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"enjing":t<15?"siyang":t<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(t){return/(წამი|წუთი|საათი|წელი)/.test(t)?t.replace(/ი$/,"ში"):t+"ში"},past:function(t){return/(წამი|წუთი|საათი|დღე|თვე)/.test(t)?t.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(t)?t.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(t){return 0===t?t:1===t?t+"-ლი":t<20||t<=100&&t%20==0||t%100==0?"მე-"+t:t+"-ე"},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};return t.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(t){var n=t%10,a=t>=100?100:null;return t+(e[t]||e[n]||e[a])},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};return t.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(t){return"ល្ងាច"===t},meridiem:function(t,e,n){return t<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(t){return t.replace(/[១២៣៤៥៦៧៨៩០]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};return t.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(t){return t.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ರಾತ್ರಿ"===e?t<4?t:t+12:"ಬೆಳಿಗ್ಗೆ"===e?t:"ಮಧ್ಯಾಹ್ನ"===e?t>=10?t:t+12:"ಸಂಜೆ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ರಾತ್ರಿ":t<10?"ಬೆಳಿಗ್ಗೆ":t<17?"ಮಧ್ಯಾಹ್ನ":t<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(t){return t+"ನೇ"},week:{dow:0,doy:6}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"일";case"M":return t+"월";case"w":case"W":return t+"주";default:return t}},meridiemParse:/오전|오후/,isPM:function(t){return"오후"===t},meridiem:function(t,e,n){return t<12?"오전":"오후"}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};return t.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(t){var n=t%10,a=t>=100?100:null;return t+(e[t]||e[n]||e[a])},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n,a){var s={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return e?s[n][0]:s[n][1]}function n(t){return s(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t}function a(t){return s(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t}function s(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10,n=t/10;return s(0===e?n:e)}if(t<1e4){for(;t>=10;)t/=10;return s(t)}return t/=1e3,s(t)}return t.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:a,s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d Méint",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(t){return"ຕອນແລງ"===t},meridiem:function(t,e,n){return t<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(t){return"ທີ່"+t}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n,a){return e?"kelios sekundės":a?"kelių sekundžių":"kelias sekundes"}function n(t,e,n,a){return e?s(n)[0]:a?s(n)[1]:s(n)[2]}function a(t){return t%10==0||t>10&&t<20}function s(t){return r[t].split("_")}function i(t,e,i,r){var o=t+" ";return 1===t?o+n(t,e,i[0],r):e?o+(a(t)?s(i)[1]:s(i)[0]):r?o+s(i)[1]:o+(a(t)?s(i)[1]:s(i)[2])}var r={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};return t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:e,ss:i,m:n,mm:i,h:n,hh:i,d:n,dd:i,M:n,MM:i,y:n,yy:i},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n){return n?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function n(t,n,a){return t+" "+e(i[a],t,n)}function a(t,n,a){return e(i[a],t,n)}function s(t,e){return e?"dažas sekundes":"dažām sekundēm"}var i={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};return t.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:s,ss:n,m:a,mm:n,h:a,hh:n,d:a,dd:n,M:a,MM:n,y:a,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,a){var s=e.words[a];return 1===a.length?n?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};return t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0===n?t+"-ен":n>10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(t,e){return 12===t&&(t=0),"രാത്രി"===e&&t>=4||"ഉച്ച കഴിഞ്ഞ്"===e||"വൈകുന്നേരം"===e?t+12:t},meridiem:function(t,e,n){return t<4?"രാത്രി":t<12?"രാവിലെ":t<17?"ഉച്ച കഴിഞ്ഞ്":t<20?"വൈകുന്നേരം":"രാത്രി"}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n,a){switch(n){case"s":return e?"хэдхэн секунд":"хэдхэн секундын";case"ss":return t+(e?" секунд":" секундын");case"m":case"mm":return t+(e?" минут":" минутын");case"h":case"hh":return t+(e?" цаг":" цагийн");case"d":case"dd":return t+(e?" өдөр":" өдрийн");case"M":case"MM":return t+(e?" сар":" сарын");case"y":case"yy":return t+(e?" жил":" жилийн");default:return t}}return t.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(t){return"ҮХ"===t},meridiem:function(t,e,n){return t<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" өдөр";default:return t}}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n,a){var s="";if(e)switch(n){case"s":s="काही सेकंद";break;case"ss":s="%d सेकंद";break;case"m":s="एक मिनिट";break;case"mm":s="%d मिनिटे";break;case"h":s="एक तास";break;case"hh":s="%d तास";break;case"d":s="एक दिवस";break;case"dd":s="%d दिवस";break;case"M":s="एक महिना";break;case"MM":s="%d महिने";break;case"y":s="एक वर्ष";break;case"yy":s="%d वर्षे"}else switch(n){case"s":s="काही सेकंदां";break;case"ss":s="%d सेकंदां";break;case"m":s="एका मिनिटा";break;case"mm":s="%d मिनिटां";break;case"h":s="एका तासा";break;case"hh":s="%d तासां";break;case"d":s="एका दिवसा";break;case"dd":s="%d दिवसां";break;case"M":s="एका महिन्या";break;case"MM":s="%d महिन्यां";break;case"y":s="एका वर्षा";break;case"yy":s="%d वर्षां"}return s.replace(/%d/i,t)}var n={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},a={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return t.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return a[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return n[t]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(t,e){return 12===t&&(t=0),"रात्री"===e?t<4?t:t+12:"सकाळी"===e?t:"दुपारी"===e?t>=10?t:t+12:"सायंकाळी"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"रात्री":t<10?"सकाळी":t<17?"दुपारी":t<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};return t.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(t){return t.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(t,e){return 12===t&&(t=0),"राति"===e?t<4?t:t+12:"बिहान"===e?t:"दिउँसो"===e?t>=10?t:t+12:"साँझ"===e?t+12:void 0},meridiem:function(t,e,n){return t<3?"राति":t<12?"बिहान":t<16?"दिउँसो":t<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),a=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,a){return t?/-MMM-/.test(a)?n[t.month()]:e[t.month()]:e},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),a=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,a){return t?/-MMM-/.test(a)?n[t.month()]:e[t.month()]:e},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};return t.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(t){return t.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ਰਾਤ"===e?t<4?t:t+12:"ਸਵੇਰ"===e?t:"ਦੁਪਹਿਰ"===e?t>=10?t:t+12:"ਸ਼ਾਮ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ਰਾਤ":t<10?"ਸਵੇਰ":t<17?"ਦੁਪਹਿਰ":t<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function n(t,n,a){var s=t+" ";switch(a){case"ss":return s+(e(t)?"sekundy":"sekund");case"m":return n?"minuta":"minutę";case"mm":return s+(e(t)?"minuty":"minut");case"h":return n?"godzina":"godzinę";case"hh":return s+(e(t)?"godziny":"godzin");case"MM":return s+(e(t)?"miesiące":"miesięcy");case"yy":return s+(e(t)?"lata":"lat")}}var a="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),s="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");return t.defineLocale("pl",{months:function(t,e){return t?""===e?"("+s[t.month()]+"|"+a[t.month()]+")":/D MMMM/.test(e)?s[t.month()]:a[t.month()]:a},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:n,m:n,mm:n,h:n,hh:n,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:n,y:"rok",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n){var a={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},s=" ";return(t%100>=20||t>=100&&t%100==0)&&(s=" de "),t+s+a[n]}return t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:e,m:"un minut",mm:e,h:"o oră",hh:e,d:"o zi",dd:e,M:"o lună",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e){var n=t.split("_");return e%10==1&&e%100!=11?n[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}function n(t,n,a){var s={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===a?n?"минута":"минуту":t+" "+e(s[a],+t)}var a=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];return t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:a,longMonthsParse:a,shortMonthsParse:a,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];return t.defineLocale("sd",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(t){return"شام"===t},meridiem:function(t,e,n){return t<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(t){return t+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(t){return"ප.ව."===t||"පස් වරු"===t},meridiem:function(t,e,n){return t>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t){return t>1&&t<5}function n(t,n,a,s){var i=t+" ";switch(a){case"s":return n||s?"pár sekúnd":"pár sekundami";case"ss":return n||s?i+(e(t)?"sekundy":"sekúnd"):i+"sekundami";case"m":return n?"minúta":s?"minútu":"minútou";case"mm":return n||s?i+(e(t)?"minúty":"minút"):i+"minútami";case"h":return n?"hodina":s?"hodinu":"hodinou";case"hh":return n||s?i+(e(t)?"hodiny":"hodín"):i+"hodinami";case"d":return n||s?"deň":"dňom";case"dd":return n||s?i+(e(t)?"dni":"dní"):i+"dňami";case"M":return n||s?"mesiac":"mesiacom";case"MM":return n||s?i+(e(t)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return n||s?"rok":"rokom";case"yy":return n||s?i+(e(t)?"roky":"rokov"):i+"rokmi"}}var a="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),s="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");return t.defineLocale("sk",{months:a,monthsShort:s,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n,a){var s=t+" ";switch(n){case"s":return e||a?"nekaj sekund":"nekaj sekundami";case"ss":return s+=1===t?e?"sekundo":"sekundi":2===t?e||a?"sekundi":"sekundah":t<5?e||a?"sekunde":"sekundah":"sekund";case"m":return e?"ena minuta":"eno minuto";case"mm":return s+=1===t?e?"minuta":"minuto":2===t?e||a?"minuti":"minutama":t<5?e||a?"minute":"minutami":e||a?"minut":"minutami";case"h":return e?"ena ura":"eno uro";case"hh":return s+=1===t?e?"ura":"uro":2===t?e||a?"uri":"urama":t<5?e||a?"ure":"urami":e||a?"ur":"urami";case"d":return e||a?"en dan":"enim dnem";case"dd":return s+=1===t?e||a?"dan":"dnem":2===t?e||a?"dni":"dnevoma":e||a?"dni":"dnevi";case"M":return e||a?"en mesec":"enim mesecem";case"MM":return s+=1===t?e||a?"mesec":"mesecem":2===t?e||a?"meseca":"mesecema":t<5?e||a?"mesece":"meseci":e||a?"mesecev":"meseci";case"y":return e||a?"eno leto":"enim letom";case"yy":return s+=1===t?e||a?"leto":"letom":2===t?e||a?"leti":"letoma":t<5?e||a?"leta":"leti":e||a?"let":"leti"}}return t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(t){return"M"===t.charAt(0)},meridiem:function(t,e,n){return t<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,a){var s=e.words[a];return 1===a.length?n?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};return t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,a){var s=e.words[a];return 1===a.length?n?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};return t.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"дан",dd:e.translate,M:"месец",MM:e.translate,y:"годину",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(t,e,n){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"e":1===e?"a":2===e?"a":"e")},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};return t.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(t){return t+"வது"},preparse:function(t){return t.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(t,e,n){return t<2?" யாமம்":t<6?" வைகறை":t<10?" காலை":t<14?" நண்பகல்":t<18?" எற்பாடு":t<22?" மாலை":" யாமம்"},meridiemHour:function(t,e){return 12===t&&(t=0),"யாமம்"===e?t<2?t:t+12:"வைகறை"===e||"காலை"===e?t:"நண்பகல்"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(t,e){return 12===t&&(t=0),"రాత్రి"===e?t<4?t:t+12:"ఉదయం"===e?t:"మధ్యాహ్నం"===e?t>=10?t:t+12:"సాయంత్రం"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"రాత్రి":t<10?"ఉదయం":t<17?"మధ్యాహ్నం":t<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};return t.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(t,e){return 12===t&&(t=0),"шаб"===e?t<4?t:t+12:"субҳ"===e?t:"рӯз"===e?t>=11?t:t+12:"бегоҳ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"шаб":t<11?"субҳ":t<16?"рӯз":t<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(t){var n=t%10,a=t>=100?100:null;return t+(e[t]||e[n]||e[a])},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(t){return"หลังเที่ยง"===t},meridiem:function(t,e,n){return t<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"}function n(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu’":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"}function a(t,e,n,a){var i=s(t);switch(n){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}function s(t){var e=Math.floor(t%1e3/100),n=Math.floor(t%100/10),a=t%10,s="";return e>0&&(s+=i[e]+"vatlh"),n>0&&(s+=(""!==s?" ":"")+i[n]+"maH"),a>0&&(s+=(""!==s?" ":"")+i[a]),""===s?"pagh":s}var i="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");return t.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:e,past:n,s:"puS lup",ss:a,m:"wa’ tup",mm:a,h:"wa’ rep",hh:a,d:"wa’ jaj",dd:a,M:"wa’ jar",MM:a,y:"wa’ DIS",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(t,n){switch(n){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'ıncı";var a=t%10,s=t%100-a,i=t>=100?100:null;return t+(e[a]||e[s]||e[i])}},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e,n,a){var s={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n míut","'iens míut"],mm:[t+" míuts",t+" míuts"],h:["'n þora","'iensa þora"],hh:[t+" þoras",t+" þoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return a?s[n][0]:e?s[n][0]:s[n][1]}return t.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,n){return t>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(t,e){return 12===t&&(t=0),"يېرىم كېچە"===e||"سەھەر"===e||"چۈشتىن بۇرۇن"===e?t:"چۈشتىن كېيىن"===e||"كەچ"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,n){var a=100*t+e;return a<600?"يېرىم كېچە":a<900?"سەھەر":a<1130?"چۈشتىن بۇرۇن":a<1230?"چۈش":a<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"-كۈنى";case"w":case"W":return t+"-ھەپتە";default:return t}},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";function e(t,e){var n=t.split("_");return e%10==1&&e%100!=11?n[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}function n(t,n,a){var s={ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===a?n?"хвилина":"хвилину":"h"===a?n?"година":"годину":t+" "+e(s[a],+t)}function a(t,e){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return t?n[/(\[[ВвУу]\]) ?dddd/.test(e)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:n.nominative}function s(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}return t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:a,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:s("[Сьогодні "),nextDay:s("[Завтра "),lastDay:s("[Вчора "),nextWeek:s("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return s("[Минулої] dddd [").call(this);case 1:case 2:case 4:return s("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(t){return/^(дня|вечора)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночі":t<12?"ранку":t<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";var e=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];return t.defineLocale("ur",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(t){return"شام"===t},meridiem:function(t,e,n){return t<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(t){return/^ch$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"下午"===e||"晚上"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,n){var a=100*t+e;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var a=100*t+e;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})},function(t,e,n){!function(t,e){e(n(0))}(0,function(t){"use strict";return t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var a=100*t+e;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}var s=n(7),i=a(s),r=n(36),o=a(r),d=n(203),u=a(d);window.onload=function(){new i.default({el:"#rop_core",store:o.default,components:{MainPagePanel:u.default},created:function(){o.default.dispatch("fetchAJAX",{req:"manage_cron",data:{action:"status"}}),o.default.dispatch("fetchAJAXPromise",{req:"get_available_services"}),o.default.dispatch("fetchAJAXPromise",{req:"get_authenticated_services"}),o.default.dispatch("fetchAJAXPromise",{req:"get_active_accounts"})}})}},function(t,e,n){var a,s;n(204),a=n(206),s=n(295),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){var a=n(205);"string"==typeof a&&(a=[[t.i,a,""]]);n(2)(a,{});a.locals&&(t.exports=a.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t#rop_core .badge[data-badge]::after {\n\t\tposition: absolute;\n\t\tbottom: -16px;\n\t\tright: 0px;\n\t}\n\t\n\t#rop_core .badge.badge-logs::after {\n\t\tright: auto;\n\t\ttop: 0px;\n\t}\n\t\n\t#rop_core .badge.badge-logs {\n\t\tpadding-right: 10px;\n\t}\n",""])},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}var s=n(13),i=a(s),r=n(210),o=a(r),d=n(227),u=a(d),l=n(236),c=a(l),_=n(268),m=a(_),f=n(276),h=a(f),p=n(283),v=a(p),y=n(288),g=a(y),M=n(0),L=a(M),b=n(72),Y=a(b);t.exports={name:"main-page-panel",computed:{displayTabs:function(){return this.$store.state.displayTabs},page:function(){return this.$store.state.page},current_time:{get:function(){return this.$store.state.cron_status.current_time},set:function(t){this.$store.state.cron_status.current_time=t}},date_format:function(){return this.$store.state.cron_status.date_format},logs_no:function(){return this.$store.state.cron_status.logs_number},btn_class:function(){var t="btn-"+(this.start_status?"danger":"success");return this.haveAccounts&&(t+=" tooltip button-disabled "),t},haveAccounts:function(){return!((0,i.default)(this.$store.state.activeAccounts).length>0)},start_status:function(){return this.$store.state.cron_status.current_status},generalSettings:function(){return this.$store.state.generalSettings},formatedDate:function(){return void 0===this.date_format?"":L.default.utc(this.current_time,"X").format(this.date_format.replace("mm","mm:ss"))}},mounted:function(){var t=this;setInterval(function(){t.current_time>0&&(t.current_time+=1)},1e3)},created:function(){},data:function(){return{to_pro_upsell:ROP_ASSETS_URL+"img/to_pro.png",to_business_upsell:ROP_ASSETS_URL+"img/to_business.png",plugin_logo:ROP_ASSETS_URL+"img/logo_rop.png",license:this.$store.state.licence,labels:this.$store.state.labels.general,upsell_link:ropApiSettings.upsell_link,is_loading:!1}},methods:{togglePosting:function(){var t=this;if(this.is_loading)return void this.$log.warn("Request in progress...Bail");this.is_loading=!0,this.$store.dispatch("fetchAJAXPromise",{req:"manage_cron",data:{action:!1===this.start_status?"start":"stop"}}).then(function(e){t.is_loading=!1},function(e){t.is_loading=!1,Vue.$log.error("Got nothing from server. Prompt user to check internet connection and try again",e)})},switchTab:function(t){this.$store.commit("setTabView",t)}},components:{accounts:o.default,settings:u.default,"accounts-selector":c.default,queue:m.default,logs:h.default,"upsell-sidebar":Y.default,toast:v.default,countdown:g.default}}},function(t,e,n){n(208),t.exports=n(5).Object.keys},function(t,e,n){var a=n(30),s=n(31);n(209)("keys",function(){return function(t){return s(a(t))}})},function(t,e,n){var a=n(25),s=n(5),i=n(20);t.exports=function(t,e){var n=(s.Object||{})[t]||Object[t],r={};r[t]=e(n),a(a.S+a.F*i(function(){n(1)}),"Object",r)}},function(t,e,n){var a,s;n(211),a=n(213),s=n(226),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){var a=n(212);"string"==typeof a&&(a=[[t.i,a,""]]);n(2)(a,{});a.locals&&(t.exports=a.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t#rop_core .columns.py-2 .text-gray[_v-f224071a] {\n\t\tmargin: 0;\n\t\tline-height: normal;\n\t}\n\t\n\t#rop_core .input-group[_v-f224071a] {\n\t\twidth: 100%;\n\t}\n\t\n\tb[_v-f224071a] {\n\t\tmargin-bottom: 5px;\n\t\tdisplay: block;\n\t}\n\t\n\t#rop_core .text-gray b[_v-f224071a] {\n\t\tdisplay: inline;\n\t}\n\t\n\t#rop_core .input-group .input-group-addon[_v-f224071a] {\n\t\tpadding: 3px 5px;\n\t}\n\t\n\t#rop_core .rop-available-accounts h5[_v-f224071a] {\n\t\tmargin-bottom: 15px;\n\t}\n\t\n\t@media ( max-width: 600px ) {\n\t\t#rop_core .panel-body .text-gray[_v-f224071a] {\n\t\t\tmargin-bottom: 10px;\n\t\t}\n\t\t\n\t\t#rop_core .text-right[_v-f224071a] {\n\t\t\ttext-align: left;\n\t\t}\n\t}\n",""])},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}var s=n(13),i=a(s),r=n(77),o=a(r),d=n(216),u=a(d),l=n(221),c=a(l);t.exports={name:"account-view",data:function(){return{addAccountActive:!1,accountsCount:0,is_loading:!1,twitter_warning:!1,labels:this.$store.state.labels.accounts,upsell_link:ropApiSettings.upsell_link}},computed:{accounts:function(){var t={},e=0,n=this.$store.state.authenticatedServices;for(var a in n)if(n.hasOwnProperty(a)){var s=n[a];for(var r in s.available_accounts)s.available_accounts.hasOwnProperty(r)&&(t[r]=s.available_accounts[r],"twitter"===s.service&&(e+=(0,i.default)(s.available_accounts).length))}return this.twitter_warning=e>1,this.$log.info("All accounts: ",t),this.accountsCount=(0,i.default)(t).length,t}},methods:{resetAccountData:function(){var t=this;if(this.is_loading)return void this.$log.warn("Request in progress...Bail");this.is_loading=!0,this.$store.dispatch("fetchAJAXPromise",{req:"reset_accounts",data:{}}).then(function(e){t.is_loading=!1},function(e){t.is_loading=!1,Vue.$log.error("Got nothing from server. Prompt user to check internet connection and try again",e)})}},components:{SignInBtn:o.default,ServiceUserTile:u.default,AddAccountTile:c.default}}},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}var s=n(13),i=a(s),r=n(32),o=a(r);t.exports={name:"sign-in-btn",created:function(){},data:function(){return{modal:{isOpen:!1,serviceName:"",description:"",data:{}},labels:this.$store.state.labels.accounts,upsell_link:ropApiSettings.upsell_link,activePopup:""}},methods:{checkDisabled:function(t,e){if(void 0!==t&&!1===t.active)return!0;var n=0;for(var a in this.$store.state.authenticatedServices)this.$store.state.authenticatedServices[a].service===e&&n++;var s=0;for(var i in this.$store.state.activeAccounts)this.$store.state.activeAccounts[i].service===e&&s++;return void 0!==t&&(t.allowed_accounts<=n||t.allowed_accounts<=s)||this.$store.state.auth_in_progress},requestAuthorization:function(t){this.selected_network=t,this.$store.state.auth_in_progress=!0,this.$store.state.availableServices[this.selected_network].two_step_sign_in?(this.modal.serviceName=this.$store.state.availableServices[this.selected_network].name,this.modal.description=this.$store.state.availableServices[this.selected_network].description,this.modal.data=this.$store.state.availableServices[this.selected_network].credentials,this.openModal()):(this.activePopup=this.selected_network,this.getUrlAndGo([]))},openPopup:function(t){this.$log.debug("Opening popup for url ",t),this.$store.commit("logMessage",["Trying to open popup for url:"+t,"notice"]),window.open(t,"_self")},getUrlAndGo:function(t){var e=this;this.$store.dispatch("fetchAJAXPromise",{req:"get_service_sign_in_url",updateState:!1,data:{service:this.selected_network,credentials:t}}).then(function(t){e.openPopup(t.url)},function(t){Vue.$log.error("Got nothing from server. Prompt user to check internet connection and try again",t)})},requestAuthentication:function(){this.$store.dispatch("fetchAJAX",{req:"authenticate_service",data:{service:this.selected_network}})},openModal:function(){this.modal.isOpen=!0},closeModal:function(){var t={},e=!0,n=!1,a=void 0;try{for(var s,r=(0,o.default)((0,i.default)(this.modal.data));!(e=(s=r.next()).done);e=!0){var d=s.value;t[d]="","value"in this.modal.data[d]&&(t[d]=this.modal.data[d].value)}}catch(t){n=!0,a=t}finally{try{!e&&r.return&&r.return()}finally{if(n)throw a}}this.activePopup=this.selected_network,this.getUrlAndGo(t),this.modal.isOpen=!1},cancelModal:function(){this.$store.state.auth_in_progress=!1,this.modal.isOpen=!1}},computed:{selected_service:function(){return this.services[this.selected_network]},selected_network:{get:function(){var t=this.modal.serviceName;return(0,i.default)(this.services)[0]&&""===t&&(t=(0,i.default)(this.services)[0]),t.toLowerCase()},set:function(t){this.modal.serviceName=t}},services:function(){return this.$store.state.availableServices},modalActiveClass:function(){return{active:!0===this.modal.isOpen}},serviceId:function(){return"service-"+this.modal.serviceName.toLowerCase()}}}},function(t,e){t.exports='\n\t<div id="rop-sign-in-area">\n\t\t<div class="input-group text-right buttons-wrap">\n\t\t\t<button v-for="( service, network ) in services"\n\t\t\t :disabled="checkDisabled( service, network )"\n\t\t\t class="btn input-group-btn"\n\t\t\t :class="\'btn-\' + network"\n\t\t\t @click="requestAuthorization( network )">\n\t\t\t\t<i class="fa fa-fw" :class="\'fa-\' + network"></i>{{service.name}}\n\t\t\t</button>\n\t\t\n\t\t</div>\n\t\t\n\t\t<div class="modal" :class="modalActiveClass">\n\t\t\t<div class="modal-overlay"></div>\n\t\t\t<div class="modal-container">\n\t\t\t\t<div class="modal-header">\n\t\t\t\t\t<button class="btn btn-clear float-right" @click="cancelModal()"></button>\n\t\t\t\t\t<div class="modal-title h5">{{ modal.serviceName }} {{labels.service_popup_title}}</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="modal-body">\n\t\t\t\t\t<div class="content">\n\t\t\t\t\t\t<div class="form-group" v-for="( field, id ) in modal.data">\n\t\t\t\t\t\t\t<label class="form-label" :for="field.id">{{ field.name }}</label>\n\t\t\t\t\t\t\t<input class="form-input" type="text" :id="field.id" v-model="field.value"\n\t\t\t\t\t\t\t :placeholder="field.name"/>\n\t\t\t\t\t\t\t<p class="text-gray">{{ field.description }}</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="modal-footer">\n\t\t\t\t\t<div class="text-left pull-left mr-2" v-html="modal.description"></div>\n\t\t\t\t\t<button class="btn btn-primary" @click="closeModal()">{{labels.sign_in_btn}}</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n'},function(t,e,n){var a,s;n(217),a=n(219),s=n(220),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){var a=n(218);"string"==typeof a&&(a=[[t.i,a,""]]);n(2)(a,{});a.locals&&(t.exports=a.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t.rop-remove-account[_v-10419e7a]{\n\t\twidth:15px;\n\t\ttext-align: center;\n\t\tcursor: pointer;\n\t padding-right: 10px;\n\t\tmargin-right: 10px;\n\t\theight: 100%;\n\t\t-ms-flex: 0 0 auto;\n\t\tline-height: 40px;\n\t\topacity: 0;\n\t\tmargin-left:-20px;\n\t\ttransition-timing-function: ease-in;\n\t\ttransition: 1s;\n\t\ttransform: translateX(130%);\n\t}\n\t.rop-account:hover .rop-remove-account[_v-10419e7a]{\n\t\topacity:1;\n\t\tz-index:9999;\n\t\tmargin-left:0px;\n\t\ttransition-timing-function: ease-out;\n\t\ttransition: 0.25s;\n\t\ttransform: translateX(0);\n\t}\n",""])},function(t,e,n){"use strict";var a=n(7),s=function(t){return t&&t.__esModule?t:{default:t}}(a);t.exports={name:"service-user-tile",props:["account_data","account_id"],data:function(){return{is_loading:!1,labels:this.$store.state.labels.accounts,upsell_link:ropApiSettings.upsell_link}},computed:{checkDisabled:function(){if(this.account_data.active)return!1;var t=this.$store.state.availableServices;if(void 0===t[this.account_data.service])return this.$log.info("No available service ",this.account_data.service),!0;if(!1===t[this.account_data.service].active)return this.$log.info("Service is not allowed",this.account_data.service),!0;var e=t[this.account_data.service].allowed_accounts,n=0;for(var a in this.$store.state.activeAccounts)this.$store.state.activeAccounts[a].service===this.account_data.service&&n++;return this.$log.info("Service limit details ",this.account_data.service,e,n),e<=n},type:function(){return!0===this.account_data.active?"active":"inactive"},service:function(){var t=this.account_data.service;return t=""!==this.img?t.concat(" ").concat("has_image"):t.concat(" ").concat("no-image")},icon:function(){var t="fa-";return"facebook"===this.account_data.service&&(t=t.concat("facebook")),"twitter"===this.account_data.service&&(t=t.concat("twitter")),"linkedin"===this.account_data.service&&(t=t.concat("linkedin")),"tumblr"===this.account_data.service&&(t=t.concat("tumblr")),t},img:function(){var t="";return""!==this.account_data.img&&void 0!==this.account_data.img&&(t=this.account_data.img),t},user:function(){return this.account_data.user},serviceInfo:function(){return this.account_data.account.concat(" "+this.labels.at+": ").concat(this.account_data.created)}},methods:{removeAccount:function(t){var e=this;if(s.default.$log.info("Remove account",t),this.is_loading)return void s.default.$log.warn("Request in progress...Bail...",t);this.is_loading=!0,this.$store.dispatch("fetchAJAXPromise",{req:"remove_account",data:{account_id:t}}).then(function(t){e.$store.dispatch("fetchAJAXPromise",{req:"get_authenticated_services"}).then(function(t){e.is_loading=!1},function(t){e.is_loading=!1})},function(t){e.is_loading=!1,s.default.$log.error("Got nothing from server. Prompt user to check internet connection and try again",t)})},toggleAccount:function(t,e){var n=this,a=t.split("_");if(3!==a.length)return void s.default.$log.error("Invalid id format for active account ",t);var i=a[0]+"_"+a[1];this.$store.state.authenticatedServices[i].available_accounts[t].active="inactive"!==e,this.$log.info("Before toggle ",this.$store.state.activeAccounts),"inactive"===e?s.default.delete(this.$store.state.activeAccounts,t):s.default.set(this.$store.state.activeAccounts,t,this.$store.state.authenticatedServices[i].available_accounts[t]),this.$store.dispatch("fetchAJAXPromise",{req:"toggle_account",data:{account_id:t,state:e}}).then(function(t){n.$store.dispatch("fetchAJAXPromise",{req:"get_authenticated_services"}).then(function(t){n.is_loading=!1},function(t){n.is_loading=!1})},function(t){n.is_loading=!1,s.default.$log.error("Got nothing from server. Prompt user to check internet connection and try again",t)})},startToggleAccount:function(t,e){if(s.default.$log.info("Toggle account",t,e),this.is_loading)return void s.default.$log.warn("Request in progress...Bail...",t,e);this.is_loading=!0,this.toggleAccount(t,e)}}}},function(t,e){t.exports='\n\t<div class="tile tile-centered rop-account" :class="\'rop-\'+type+\'-account\'" _v-10419e7a="">\n\n\t\t<div class="tile-icon rop-remove-account tooltip tooltip-right" @click="removeAccount(account_id) " :data-tooltip="labels.remove_account" v-if=" ! account_data.active" _v-10419e7a="">\n\t\t\t<i class="fa fa-trash" v-if=" ! is_loading" _v-10419e7a=""></i>\n\t\t\t<i class="fa fa-spinner fa-spin" v-else="" _v-10419e7a=""></i>\n\t\t</div>\n\t\t<div class="tile-icon" _v-10419e7a="">\n\t\t\t<div class="icon_box" :class="service" _v-10419e7a="">\n\t\t\t\t<img class="service_account_image" :src="img" v-if="img" _v-10419e7a="">\n\t\t\t\t<i class="fa " :class="icon" aria-hidden="true" _v-10419e7a=""></i>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="tile-content" _v-10419e7a="">\n\t\t\t<div class="tile-title" _v-10419e7a="">{{ user }}</div>\n\t\t\t<div class="tile-subtitle text-gray" _v-10419e7a="">{{ serviceInfo }}</div>\n\t\t</div>\n\t\t<div class="tile-action" _v-10419e7a="">\n\t\t\t<div class="form-group" _v-10419e7a="">\n\t\t\t\t<label class="form-switch" _v-10419e7a="">\n\t\t\t\t\t<div class="ajax-loader " _v-10419e7a=""><i class="fa fa-spinner fa-spin" v-show="is_loading" _v-10419e7a=""></i></div>\n\t\t\t\t\t<input :disabled="checkDisabled" type="checkbox" v-model="account_data.active" @change="startToggleAccount( account_id, type )" _v-10419e7a="">\n\t\t\t\t\t<i class="form-icon" _v-10419e7a=""></i>\n\t\t\t\t</label>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n'},function(t,e,n){var a,s;n(222),a=n(224),s=n(225),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){var a=n(223);"string"==typeof a&&(a=[[t.i,a,""]]);n(2)(a,{});a.locals&&(t.exports=a.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t.icon_box[_v-1130720f] {\n\t\tbackground: #efefef;\n\t\tpadding: 0;\n\t\ttransition: .3s ease;\n\t}\n\t\n\t.icon_box.close .fa[_v-1130720f] {\n\t\tline-height: 1.6em;\n\t}\n\t\n\t.icon_box.open .fa[_v-1130720f] {\n\t\tline-height: 1.7em;\n\t\twidth: 20px;\n\t\ttransform: rotate(-135deg);\n\t\t-webkit-transform: rotate(-135deg);\n\t}\n\t\n\t.fa[_v-1130720f] {\n\t\ttransition: all .3s cubic-bezier(.34, 1.61, .7, 1);\n\t}\n",""])},function(t,e,n){"use strict";var a=n(77),s=function(t){return t&&t.__esModule?t:{default:t}}(a);t.exports={name:"add-account-tile",data:function(){return{addAccountActive:!1,labels:this.$store.state.labels.accounts,upsell_link:ropApiSettings.upsell_link}},computed:{checkLicense:function(){return this.$store.state.licence<1}},components:{SignInBtn:s.default}}},function(t,e){t.exports='\n\t<div _v-1130720f="">\n\t\t<div class="tile tile-centered rop-add-account" _v-1130720f="">\n\t\t\t<a class="tile-icon c-hand" @click="addAccountActive = !addAccountActive" _v-1130720f="">\n\t\t\t\t<div class="icon_box" :class="(addAccountActive) ? \'close bg-error\' : \'open bg-success\'" _v-1130720f="">\n\t\t\t\t\t<i class="fa fa-2x fa-close" aria-hidden="true" _v-1130720f=""></i>\n\t\t\t\t</div>\n\t\t\t</a>\n\t\t\t<div class="tile-content" _v-1130720f="">\n\t\t\t\t<div class="tile-title" _v-1130720f="">{{labels.add_account}}</div>\n\t\t\t</div>\n\t\t\t<transition name="fade" _v-1130720f="">\n\t\t\t\t<div class="tile-action" v-if="addAccountActive" _v-1130720f="">\n\t\t\t\t\t<sign-in-btn _v-1130720f=""></sign-in-btn>\n\t\t\t\t</div>\n\t\t\t</transition>\n\t\t</div>\n\t\t<transition name="fade" _v-1130720f="">\n\t\t\t<div class="columns my-2" v-if="checkLicense && addAccountActive" _v-1130720f="">\n\t\t\t\t<div class="column col-12 text-center" _v-1130720f="">\n\t\t\t\t\t<p class="upsell" _v-1130720f="">\n\t\t\t\t\t\t<i class="fa fa-lock " _v-1130720f=""></i> <span v-html="labels.upsell_accounts" _v-1130720f=""></span>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</transition>\n\t</div>\n'},function(t,e){t.exports='\n\t<div class="tab-view" _v-f224071a="">\n\t\t<div class="panel-body" _v-f224071a="">\n\t\t\t<div class="toast toast-warning" v-html="labels.twitter_warning" v-if="twitter_warning" _v-f224071a="">\n\t\t\t\n\t\t\t</div>\n\t\t\t<div class="container" _v-f224071a="">\n\t\t\t\t<div class="columns" :class="\'rop-tab-state-\'+is_loading" _v-f224071a="">\n\t\t\t\t\t<div class="column col-sm-12 col-md-12 col-lg-12 text-left rop-available-accounts mt-2" _v-f224071a="">\n\t\t\t\t\t\t<div class="empty mb-2" v-if="accountsCount === 0" _v-f224071a="">\n\t\t\t\t\t\t\t<div class="empty-icon" _v-f224071a="">\n\t\t\t\t\t\t\t\t<i class="fa fa-3x fa-user-circle-o" _v-f224071a=""></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class="empty-title h5" _v-f224071a="">{{labels.no_accounts}}</p>\n\t\t\t\t\t\t\t<p class="empty-subtitle" _v-f224071a="">{{labels.no_accounts_desc}}</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="account-container" v-for="( account, id ) in accounts" _v-f224071a="">\n\t\t\t\t\t\t\t<service-user-tile :account_data="account" :account_id="id" _v-f224071a=""></service-user-tile>\n\t\t\t\t\t\t\t<span class="divider" _v-f224071a=""></span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="add-accounts" _v-f224071a="">\n\t\t\t\t\t\t\t<add-account-tile _v-f224071a=""></add-account-tile>\n\t\t\t\t\t\t\t<span class="divider" _v-f224071a=""></span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="panel-footer" v-if="accountsCount > 0" _v-f224071a="">\n\t\t\t\t<div class="columns" _v-f224071a="">\n\t\t\t\t\t<div class="column col-12" _v-f224071a="">\n\t\t\t\t\t\t<p class="text-gray" _v-f224071a=""><i class="fa fa-info-circle" _v-f224071a=""></i> <span v-html="labels.has_accounts_desc" _v-f224071a=""></span></p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="column col-12 text-right" _v-f224071a="">\n\t\t\t\t\t<button class="btn btn-secondary" @click="resetAccountData()" _v-f224071a="">\n\t\t\t\t\t\t<i class="fa fa-ban" v-if="!this.is_loading" _v-f224071a=""></i>\n\t\t\t\t\t\t<i class="fa fa-spinner fa-spin" v-else="" _v-f224071a=""></i>\n\t\t\t\t\t\t{{labels.remove_all_cta}}\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\n\t</div>\n'},function(t,e,n){var a,s;n(228),a=n(230),s=n(235),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){var a=n(229);"string"==typeof a&&(a=[[t.i,a,""]]);n(2)(a,{});a.locals&&(t.exports=a.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t#rop_core .panel-body .text-gray[_v-5f496420] {\n\t\tmargin: 0;\n\t\tline-height: normal;\n\t}\n\t\n\t#rop_core .input-group[_v-5f496420] {\n\t\twidth: 100%;\n\t}\n\t\n\tb[_v-5f496420] {\n\t\tmargin-bottom: 5px;\n\t\tdisplay: block;\n\t}\n\t\n\t#rop_core .input-group .input-group-addon[_v-5f496420] {\n\t\tpadding: 3px 5px;\n\t}\n\t\n\t@media ( max-width: 600px ) {\n\t\t#rop_core .panel-body .text-gray[_v-5f496420] {\n\t\t\tmargin-bottom: 10px;\n\t\t}\n\t\t\n\t\t#rop_core .text-right[_v-5f496420] {\n\t\t\ttext-align: left;\n\t\t}\n\t}\n",""])},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}var s=n(78),i=a(s),r=n(68),o=a(r);t.exports={name:"settings-view",data:function(){return{searchQuery:"",postTimeout:"",labels:this.$store.state.labels.settings,upsell_link:ropApiSettings.upsell_link,is_loading:!1}},computed:{generalSettings:function(){return this.$store.state.generalSettings},isPro:function(){return this.$store.state.licence>=1},isBiz:function(){return this.$store.state.licence>1},postTypes:function(){return this.$store.state.generalSettings.available_post_types},taxonomies:function(){return this.$store.state.generalSettings.available_taxonomies}},mounted:function(){this.$log.info("In General Settings state "),this.getGeneralSettings()},methods:{getGeneralSettings:function(){var t=this;0===this.$store.state.generalSettings.length&&(this.is_loading=!0,this.$log.info("Fetching general settings."),this.$store.dispatch("fetchAJAXPromise",{req:"get_general_settings"}).then(function(e){t.is_loading=!1,t.$log.debug("Succesfully fetched.")},function(e){t.is_loading=!1,t.$log.error("Can not fetch the general settings.")}))},searchUpdate:function(t){this.searchQuery=t},updatedPostTypes:function(t){var e=[];for(var n in t)e.push(t[n].value);this.$store.commit("updateState",{stateData:t,requestName:"update_selected_post_types"}),this.$store.dispatch("fetchAJAX",{req:"get_taxonomies",data:{post_types:e}})},updatedTaxonomies:function(t){var e=[];for(var n in t)e.push(t[n].value);this.$store.commit("updateState",{stateData:t,requestName:"update_selected_taxonomies"})},saveGeneralSettings:function(){var t=this,e=this.$store.state.generalSettings.selected_post_types,n=this.$store.state.generalSettings.selected_taxonomies,a=this.generalSettings.exclude_taxonomies;this.generalSettings.selected_posts;this.is_loading=!0,this.$log.info("Sending request for saving general settings.."),this.$store.dispatch("fetchAJAXPromise",{req:"save_general_settings",updateState:!1,data:{available_taxonomies:this.generalSettings.available_taxonomies,default_interval:this.generalSettings.default_interval,minimum_post_age:this.generalSettings.minimum_post_age,maximum_post_age:this.generalSettings.maximum_post_age,number_of_posts:this.generalSettings.number_of_posts,more_than_once:this.generalSettings.more_than_once,selected_post_types:e,selected_taxonomies:n,exclude_taxonomies:a,ga_tracking:this.generalSettings.ga_tracking,custom_messages:this.generalSettings.custom_messages}}).then(function(e){t.is_loading=!1,t.$log.info("Successfully saved general settings.")},function(e){t.$log.error("Successfully saved general settings."),t.is_loading=!1,Vue.$log.error("Got nothing from server. Prompt user to check internet connection and try again",e)})}},components:{counterInput:i.default,MultipleSelect:o.default}}},function(t,e,n){var a=n(232);"string"==typeof a&&(a=[[t.i,a,""]]);n(2)(a,{});a.locals&&(t.exports=a.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t#rop_core .input-group.rop-counter-group {\n\t\tposition: relative;\n\t\twidth: 100%;\n\t}\n\t\n\t#rop_core .btn.increment-btn {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\twidth: 1rem;\n\t\theight: 0.85rem;\n\t\tpadding: 0.025rem 0.010rem;\n\t\tline-height: 0.3rem;\n\t\tz-index: 2;\n\t\tcolor: #ababab;\n\t\tborder-color: #ababab;\n\t}\n\t\n\t#rop_core .btn.increment-btn:hover, #rop_core .btn.increment-btn:active, #rop_core .btn.increment-btn:focus {\n\t\tbackground-color: #00a6e3;\n\t\tcolor: #fff;\n\t\tborder-color: #00a6e3;\n\t}\n\t\n\t#rop_core .btn.increment-btn.up {\n\t\ttop: 0;\n\t}\n\t\n\t#rop_core .btn.increment-btn.down {\n\t\tbottom: 0;\n\t}\n\t\n\tinput.rop-counter::-webkit-inner-spin-button {\n\t\tdisplay: none;\n\t}\n",""])},function(t,e,n){"use strict";var a=null;t.exports={name:"counter-input",props:{id:{default:""},value:{default:0,type:Number},allowNegative:{default:!1,type:Boolean},minVal:{default:0,type:Number},maxVal:{default:0,type:Number}},data:function(){return{pressStartTime:null,incrementUp:0,incrementDown:0,inputValue:0}},computed:{inputValueC:{get:function(){return this.value},set:function(t){this.inputValue=parseFloat(t),this.$emit("update:value",this.inputValue)}}},methods:{updateInput:function(){this.inputValue=this.value.toString(),this.inputValue=parseFloat(this.inputValue);var t=new Date,e=parseInt((t.getTime()-this.pressStartTime.getTime())/1e3),n=e;0===e&&(n=1),n=parseInt(n),1===this.incrementUp&&(this.inputValue+=n,this.inputValue>this.maxVal&&0!==this.maxVal&&(this.inputValue=this.maxVal)),1===this.incrementDown&&(this.inputValue-=n,this.inputValue<0&&!1===this.allowNegative&&(this.inputValue=0),this.inputValue<this.minVal&&(this.inputValue=this.minVal)),this.inputValue=parseFloat(this.inputValue.toFixed(1)),this.$emit("update:value",this.inputValue)},isPressed:function(t){"up"===t?this.incrementUp=1:this.incrementDown=1,this.pressStartTime=new Date,this.updateInput(),a=setInterval(this.updateInput,250)},isReleased:function(t){"up"===t?this.incrementUp=0:this.incrementDown=0,this.pressStartTime=null,clearInterval(a)}}}},function(t,e){t.exports='\n\t<div class="input-group rop-counter-group">\n\t\t<input class="form-input rop-counter" type="text" v-model="inputValueC" :id="id">\n\t\t<button class="btn input-group-btn increment-btn up" @mousedown="isPressed(\'up\')" @mouseup="isReleased(\'up\')"><i\n\t\t\t\tclass="fa fa-fw fa-caret-up"></i></button>\n\t\t<button class="btn input-group-btn increment-btn down" @mousedown="isPressed(\'down\')"\n\t\t @mouseup="isReleased(\'down\')"><i class="fa fa-fw fa-caret-down"></i></button>\n\t</div>\n'},function(t,e){t.exports='\n\t<div class="tab-view" _v-5f496420="">\n\t\t<div class="panel-body" _v-5f496420="">\n\t\t\t<div class="container" :class="\'rop-tab-state-\'+is_loading" _v-5f496420="">\n\t\t\t\t<div class="columns py-2" v-if="! isBiz" _v-5f496420="">\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-5f496420="">\n\t\t\t\t\t\t<b _v-5f496420="">{{labels.min_interval_title}}</b>\n\t\t\t\t\t\t<p class="text-gray" _v-5f496420="">{{labels.min_interval_desc}}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-5f496420="">\n\t\t\t\t\t\t<counter-input id="default_interval" :value.sync="generalSettings.default_interval" _v-5f496420=""></counter-input>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<span class="divider" _v-5f496420=""></span>\n\t\t\t\t<div class="columns py-2" _v-5f496420="">\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-5f496420="">\n\t\t\t\t\t\t<b _v-5f496420="">{{labels.min_days_title}}</b>\n\t\t\t\t\t\t<p class="text-gray" _v-5f496420="">{{labels.min_days_desc}}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-5f496420="">\n\t\t\t\t\t\t<counter-input id="min_post_age" :max-val="365" :value.sync="generalSettings.minimum_post_age" _v-5f496420=""></counter-input>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- Max Post Age --\x3e\n\t\t\t\t<div class="columns py-2" _v-5f496420="">\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-5f496420="">\n\t\t\t\t\t\t<b _v-5f496420="">{{labels.max_days_title}}</b>\n\t\t\t\t\t\t<p class="text-gray" _v-5f496420="">{{labels.max_days_desc}}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-5f496420="">\n\t\t\t\t\t\t<counter-input id="max_post_age" :max-val="365" :value.sync="generalSettings.maximum_post_age" _v-5f496420=""></counter-input>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<span class="divider" _v-5f496420=""></span>\n\t\t\t\t\n\t\t\t\t<div class="columns py-2" _v-5f496420="">\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-5f496420="">\n\t\t\t\t\t\t<b _v-5f496420="">{{labels.no_posts_title}}</b>\n\t\t\t\t\t\t<p class="text-gray" _v-5f496420="">{{labels.no_posts_desc}}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-5f496420="">\n\t\t\t\t\t\t<counter-input id="no_of_posts" :value.sync="generalSettings.number_of_posts" _v-5f496420=""></counter-input>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<span class="divider" _v-5f496420=""></span>\n\t\t\t\t\n\t\t\t\t\x3c!-- Share more than once --\x3e\n\t\t\t\t<div class="columns py-2" _v-5f496420="">\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-5f496420="">\n\t\t\t\t\t\t<b _v-5f496420="">{{labels.share_once_title}}</b>\n\t\t\t\t\t\t<p class="text-gray" _v-5f496420="">{{labels.share_once_desc}}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align text-left" _v-5f496420="">\n\t\t\t\t\t\t<div class="form-group" _v-5f496420="">\n\t\t\t\t\t\t\t<label class="form-checkbox" _v-5f496420="">\n\t\t\t\t\t\t\t\t<input type="checkbox" v-model="generalSettings.more_than_once" _v-5f496420="">\n\t\t\t\t\t\t\t\t<i class="form-icon" _v-5f496420=""></i> {{labels.share_once_yes}}\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<span class="divider" _v-5f496420=""></span>\n\t\t\t\t<div class="columns py-2" :class="\'rop-control-container-\'+isPro" _v-5f496420="">\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align rop-control" _v-5f496420="">\n\t\t\t\t\t\t<b _v-5f496420="">{{labels.post_types_title}}</b>\n\t\t\t\t\t\t<p class="text-gray" _v-5f496420="">{{labels.post_types_desc}}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align text-left rop-control" _v-5f496420="">\n\t\t\t\t\t\t<multiple-select :options="postTypes" :disabled="isPro" :selected="generalSettings.selected_post_types" :changed-selection="updatedPostTypes" _v-5f496420=""></multiple-select>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div class="columns py-2" v-if="!isPro" _v-5f496420="">\n\t\t\t\t\t<div class="column text-center" _v-5f496420="">\n\t\t\t\t\t\t<p class="upsell" _v-5f496420=""><i class="fa fa-lock" _v-5f496420=""></i> {{labels.post_types_upsell}}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<span class="divider" _v-5f496420=""></span>\n\t\t\t\t\n\t\t\t\t\x3c!-- Taxonomies --\x3e\n\t\t\t\t<div class="columns py-2" _v-5f496420="">\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-5f496420="">\n\t\t\t\t\t\t<b _v-5f496420="">{{labels.taxonomies_title}}</b>\n\t\t\t\t\t\t<p class="text-gray" _v-5f496420="">{{labels.taxonomies_desc}}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align text-left" _v-5f496420="">\n\t\t\t\t\t\t<div class="input-group" _v-5f496420="">\n\t\t\t\t\t\t\t<multiple-select :options="taxonomies" :selected="generalSettings.selected_taxonomies" :changed-selection="updatedTaxonomies" _v-5f496420=""></multiple-select>\n\t\t\t\t\t\t\t<span class="input-group-addon vertical-align" _v-5f496420="">\n\t\t\t\t\t\t\t\t<label class="form-checkbox" _v-5f496420="">\n\t\t\t\t\t\t\t\t\t<input type="checkbox" v-model="generalSettings.exclude_taxonomies" _v-5f496420="">\n\t\t\t\t\t\t\t\t\t<i class="form-icon" _v-5f496420=""></i>{{labels.taxonomies_exclude}}\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<span class="divider" _v-5f496420=""></span>\n\t\t\t\t\n\t\t\t\t<div class="columns py-2" _v-5f496420="">\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-5f496420="">\n\t\t\t\t\t\t<b _v-5f496420="">{{labels.ga_title}}</b>\n\t\t\t\t\t\t<p class="text-gray" _v-5f496420="">{{labels.ga_desc}}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align text-left" _v-5f496420="">\n\t\t\t\t\t\t<div class="form-group" _v-5f496420="">\n\t\t\t\t\t\t\t<label class="form-checkbox" _v-5f496420="">\n\t\t\t\t\t\t\t\t<input type="checkbox" v-model="generalSettings.ga_tracking" _v-5f496420="">\n\t\t\t\t\t\t\t\t<i class="form-icon" _v-5f496420=""></i>{{labels.ga_yes}}\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<span class="divider" _v-5f496420=""></span>\n\t\t\t\t\n\t\t\t\t<div class="columns py-2" :class="\'rop-control-container-\'+isPro" _v-5f496420="">\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align rop-control" _v-5f496420="">\n\t\t\t\t\t\t<b _v-5f496420="">{{labels.custom_share_title}}</b>\n\t\t\t\t\t\t<p class="text-gray" _v-5f496420="">{{labels.custom_share_desc}}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="column col-6 col-sm-12 vertical-align text-left rop-control" _v-5f496420="">\n\t\t\t\t\t\t<div class="form-group" _v-5f496420="">\n\t\t\t\t\t\t\t<label class="form-checkbox" _v-5f496420="">\n\t\t\t\t\t\t\t\t<input type="checkbox" :disabled="!isPro" v-model="generalSettings.custom_messages" _v-5f496420="">\n\t\t\t\t\t\t\t\t<i class="form-icon" _v-5f496420=""></i>{{labels.custom_share_yes}}\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- Upsell --\x3e\n\t\t\t\t<div class="columns py-2" v-if="!isPro" _v-5f496420="">\n\t\t\t\t\t<div class="column text-center" _v-5f496420="">\n\t\t\t\t\t\t<p class="upsell" _v-5f496420=""><i class="fa fa-lock" _v-5f496420=""></i> {{labels.custom_share_upsell}}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<span class="divider" _v-5f496420=""></span>\n\t\t\t\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="panel-footer text-right" _v-5f496420="">\n\t\t\t<button class="btn btn-primary" @click="saveGeneralSettings()" _v-5f496420=""><i class="fa fa-check" v-if="!this.is_loading" _v-5f496420=""></i> <i class="fa fa-spinner fa-spin" v-else="" _v-5f496420=""></i> {{labels.save}}\n\t\t\t</button>\n\t\t</div>\n\t</div>\n'},function(t,e,n){var a,s;n(237),a=n(239),s=n(267),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){var a=n(238);"string"==typeof a&&(a=[[t.i,a,""]]);n(2)(a,{});a.locals&&(t.exports=a.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t.icon_box[_v-fde13d02] {\n\t\twidth: 30px;\n\t\theight: 30px;\n\t\tpadding: 5px;\n\t}\n\t\n\t.icon_box.no-image[_v-fde13d02] {\n\t\tpadding: 0;\n\t}\n\t\n\t.icon_box.has_image > .fa[_v-fde13d02] {\n\t\twidth: 15px;\n\t\theight: 15px;\n\t\tpadding: 0;\n\t\tline-height: 15px;\n\t}\n\t\n\t.icon_box.no-image > .fa[_v-fde13d02] {\n\t\tfont-size: 20px;\n\t\tbackground: transparent;\n\t\tline-height: 30px;\n\t}\n",""])},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}var s=n(13),i=a(s),r=n(240),o=a(r),d=n(243),u=a(d),l=n(248),c=a(l);t.exports={name:"account-selector-view",props:{type:{default:function(){return""},type:String}},data:function(){var t=null;return void 0!==(0,i.default)(this.$store.state.activeAccounts)[0]&&(t=(0,i.default)(this.$store.state.activeAccounts)[0]),{selected_account:t,component_label:"",allow_footer:!0,license:this.$store.state.licence,action:"",labels:this.$store.state.labels.accounts,upsell_link:ropApiSettings.upsell_link,is_loading:!1}},mounted:function(){this.setupData()},filters:{capitalize:function(t){return t?(t=t.toString(),t.charAt(0).toUpperCase()+t.slice(1)):""}},computed:{active_data:function(){return"post-format"===this.type?this.$store.state.activePostFormat:"schedule"===this.type?this.$store.state.activeSchedule:[]},accountsCount:function(){return(0,i.default)(this.$store.state.activeAccounts).length},active_accounts:{get:function(){var t=this.$store.state.activeAccounts,e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return this.$log.info("Available accounts",e),e},set:function(t){this.setupData()}},active_account_name:function(){return this.active_accounts[this.selected_account].user}},watch:{type:function(){this.setupData()}},methods:{setupData:function(){var t=this.type.replace("-","_"),e="";"post-format"===this.type&&(e="post format",this.allow_footer=!0),"schedule"===this.type&&(e="schedule",this.allow_footer=this.license>1),this.action=t,this.component_label=e,this.checkActiveData()},getAccountData:function(){var t=this;if(this.is_loading)return void this.$log.warn("Request in progress...Bail");void 0!==this.active_accounts[this.selected_account]&&(this.is_loading=!0,this.$store.dispatch("fetchAJAXPromise",{req:"get_"+this.action,data:{}}).then(function(e){t.$log.info("Successfully fetched account data",t.type,t.selected_account),t.is_loading=!1},function(e){Vue.$log.error("Got nothing from server. Prompt user to check internet connection and try again",e),t.is_loading=!1}))},saveAccountData:function(){var t=this;if(this.is_loading)return void this.$log.warn("Request in progress...Bail");this.is_loading=!0,this.$store.dispatch("fetchAJAXPromise",{req:"save_"+this.action,data:{service:this.active_accounts[this.selected_account].service,account_id:this.selected_account,data:this.active_data[this.selected_account]}}).then(function(e){t.is_loading=!1},function(e){t.is_loading=!1,Vue.$log.error("Got nothing from server. Prompt user to check internet connection and try again",e)})},getIcon:function(t){var e="fa-";return"facebook"===t.service&&(e=e.concat("facebook")),"twitter"===t.service&&(e=e.concat("twitter")),"linkedin"===t.service&&(e=e.concat("linkedin")),"tumblr"===t.service&&(e=e.concat("tumblr")),e},resetAccountData:function(){var t=this;if(this.is_loading)return void this.$log.warn("Request in progress...Bail");this.is_loading=!0,this.$store.dispatch("fetchAJAXPromise",{req:"reset_"+this.action,data:{service:this.active_accounts[this.selected_account].service,account_id:this.selected_account}}).then(function(e){t.is_loading=!1,t.$log.info("Succesfully reseted account",t.type)},function(e){t.is_loading=!1,Vue.$log.error("Got nothing from server. Prompt user to check internet connection and try again",e)}),this.$forceUpdate()},checkActiveData:function(){void 0===this.active_data[this.selected_account]&&this.getAccountData()},setActiveAccount:function(t){return this.is_loading?void this.$log.warn("Request in progress...Bail"):this.selected_account===t?void this.$log.info("Account already active"):(this.$log.info("Switched account data ",this.type,t),this.selected_account=t,void this.checkActiveData())}},components:{"empty-active-accounts":o.default,"post-format":u.default,schedule:c.default}}},function(t,e,n){var a,s;a=n(241),s=n(242),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){"use strict";t.exports={name:"empty-active-accounts",data:function(){return{labels:this.$store.state.labels.accounts,upsell_link:ropApiSettings.upsell_link}},methods:{goToAccounts:function(){this.$store.commit("setTabView","accounts")}}}},function(t,e){t.exports='\n\t<div class="empty">\n\t\t<div class="empty-icon">\n\t\t\t<i class="fa fa-3x fa-user-circle-o"></i>\n\t\t</div>\n\t\t<p class="empty-title h5">{{labels.no_active_accounts}}</p>\n\t\t<p class="empty-subtitle" v-html="labels.no_active_accounts_desc"></p>\n\t\t<button class="btn btn-primary" @click="goToAccounts()">{{labels.go_to_accounts_btn}}</button>\n\t</div>\n'},function(t,e,n){var a,s;n(244),a=n(246),s=n(247),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){var a=n(245);"string"==typeof a&&(a=[[t.i,a,""]]);n(2)(a,{});a.locals&&(t.exports=a.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t#rop_core .panel-body .text-gray[_v-79769366] {\n\t\tmargin: 0;\n\t\tline-height: normal;\n\t}\n\t\n\tb[_v-79769366] {\n\t\tmargin-bottom: 5px;\n\t\tdisplay: block;\n\t}\n\t\n\t#rop_core .input-group .input-group-addon[_v-79769366] {\n\t\tpadding: 3px 5px;\n\t}\n\t\n\t@media ( max-width: 600px ) {\n\t\t#rop_core .panel-body .text-gray[_v-79769366] {\n\t\t\tmargin-bottom: 10px;\n\t\t}\n\t\t\n\t\t#rop_core .text-right[_v-79769366] {\n\t\t\ttext-align: left;\n\t\t}\n\t}\n",""])},function(t,e,n){"use strict";t.exports={name:"post-format",props:["account_id","license"],data:function(){return{labels:this.$store.state.labels.post_format,upsell_link:ropApiSettings.upsell_link}},computed:{post_format:function(){return this.$store.state.activePostFormat[this.account_id]?this.$store.state.activePostFormat[this.account_id]:[]},isPro:function(){return this.license>0},short_url_service:function(){var t=this.$store.state.activePostFormat[this.account_id]?this.$store.state.activePostFormat[this.account_id]:[];return t.short_url_service?t.short_url_service:""}},watch:{short_url_service:function(){var t=this;this.$store.dispatch("fetchAJAXPromise",{req:"get_shortner_credentials",data:{short_url_service:this.short_url_service}}).then(function(e){t.post_format.shortner_credentials=e},function(t){Vue.$log.error("Got nothing from server. Prompt user to check internet connection and try again",t)})}},filters:{capitalize:function(t){return t?(t=t.toString(),t.charAt(0).toUpperCase()+t.slice(1)):""}}}},function(t,e){t.exports='\n\t<div _v-79769366="">\n\t\t<div class="columns py-2" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<b _v-79769366="">{{labels.post_content_title}}</b>\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.post_content_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="form-group" _v-79769366="">\n\t\t\t\t\t<select class="form-select" v-model="post_format.post_content" _v-79769366="">\n\t\t\t\t\t\t<option value="post_title" _v-79769366="">{{labels.post_content_option_title}}</option>\n\t\t\t\t\t\t<option value="post_content" _v-79769366="">{{labels.post_content_option_content}}</option>\n\t\t\t\t\t\t<option value="post_title_content" _v-79769366="">{{labels.post_content_option_title_content}}</option>\n\t\t\t\t\t\t<option value="custom_field" _v-79769366="">{{labels.post_content_option_custom_field}}</option>\n\t\t\t\t\t</select>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="columns py-2" v-if="post_format.post_content === \'custom_field\'" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<b _v-79769366="">{{labels.custom_meta_title}}</b>\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.custom_meta_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="form-group" _v-79769366="">\n\t\t\t\t\t<input class="form-input" type="text" v-model="post_format.custom_meta_field" value="" placeholder="" _v-79769366="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<span class="divider" _v-79769366=""></span>\n\t\t\n\t\t<div class="columns py-2" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<b _v-79769366="">{{labels.max_char_title}}</b>\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.max_char_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="form-group" _v-79769366="">\n\t\t\t\t\t<input class="form-input" type="number" v-model="post_format.maximum_length" value="" placeholder="" _v-79769366="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<span class="divider" _v-79769366=""></span>\n\t\t\n\t\t<div class="columns py-2" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<b _v-79769366="">{{labels.add_char_title}}</b>\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.add_char_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="form-group" _v-79769366="">\n\t\t\t\t\t<textarea class="form-input" v-model="post_format.custom_text" placeholder="" _v-79769366="">{{post_format.custom_text}}</textarea>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<div class="columns py-2" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.add_pos_title}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="form-group" _v-79769366="">\n\t\t\t\t\t<select class="form-select" v-model="post_format.custom_text_pos" _v-79769366="">\n\t\t\t\t\t\t<option value="beginning" _v-79769366="">{{labels.add_pos_option_start}}</option>\n\t\t\t\t\t\t<option value="end" _v-79769366="">{{labels.add_pos_option_end}}</option>\n\t\t\t\t\t</select>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="columns py-2" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<b _v-79769366="">{{labels.add_link_title}}</b>\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.add_link_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="input-group" _v-79769366="">\n\t\t\t\t\t<label class="form-checkbox" _v-79769366="">\n\t\t\t\t\t\t<input type="checkbox" v-model="post_format.include_link" _v-79769366="">\n\t\t\t\t\t\t<i class="form-icon" _v-79769366=""></i> {{labels.add_link_yes}}\n\t\t\t\t\t</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<span class="divider" _v-79769366=""></span>\n\t\t<div class="columns py-2" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<b _v-79769366="">{{labels.meta_link_title}}</b>\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.meta_link_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="input-group" _v-79769366="">\n\t\t\t\t\t<label class="form-checkbox" _v-79769366="">\n\t\t\t\t\t\t<input type="checkbox" v-model="post_format.url_from_meta" _v-79769366="">\n\t\t\t\t\t\t<i class="form-icon" _v-79769366=""></i> {{labels.meta_link_yes}}\n\t\t\t\t\t</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- Custom Field --\x3e\n\t\t<div class="columns py-2" v-if="post_format.url_from_meta" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<b _v-79769366="">{{labels.meta_link_name_title}}</b>\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.meta_link_name_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="form-group" _v-79769366="">\n\t\t\t\t\t<input class="form-input" type="text" v-model="post_format.url_meta_key" value="" placeholder="" _v-79769366="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<span class="divider" _v-79769366=""></span>\n\t\t<div class="columns py-2" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<b _v-79769366="">{{labels.use_shortner_title}}</b>\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.use_shortner_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="input-group" _v-79769366="">\n\t\t\t\t\t<label class="form-checkbox" _v-79769366="">\n\t\t\t\t\t\t<input type="checkbox" v-model="post_format.short_url" _v-79769366="">\n\t\t\t\t\t\t<i class="form-icon" _v-79769366=""></i> {{labels.use_shortner_yes}}\n\t\t\t\t\t</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="columns py-2" v-if="post_format.short_url" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<b _v-79769366="">{{labels.shortner_title}}</b>\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.shortner_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="form-group" _v-79769366="">\n\t\t\t\t\t<select class="form-select" v-model="post_format.short_url_service" _v-79769366="">\n\t\t\t\t\t\t<option value="rviv.ly" _v-79769366="">rviv.ly</option>\n\t\t\t\t\t\t<option value="bit.ly" _v-79769366="">bit.ly</option>\n\t\t\t\t\t\t<option value="goo.gl" _v-79769366="">goo.gl</option>\n\t\t\t\t\t\t<option value="ow.ly" _v-79769366="">ow.ly</option>\n\t\t\t\t\t\t<option value="is.gd" _v-79769366="">is.gd</option>\n\t\t\t\t\t\t<option value="wp_short_url" _v-79769366="">wp_short_url</option>\n\t\t\t\t\t</select>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<div class="columns py-2" v-if="post_format.short_url" v-for="( credential, key_name ) in post_format.shortner_credentials" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<b _v-79769366="">{{ key_name | capitalize }}</b>\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.shortner_field_desc_start}} "{{key_name}}"\n\t\t\t\t\t{{labels.shortner_field_desc_end}}\n\t\t\t\t\t<strong _v-79769366="">{{post_format.short_url_service}}</strong> {{labels.shortner_api_field}}.</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="form-group" _v-79769366="">\n\t\t\t\t\t<input class="form-input" type="text" v-model="post_format.shortner_credentials[key_name]" _v-79769366="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<div class="columns py-2" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<b _v-79769366="">{{labels.hashtags_title}}</b>\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.hashtags_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="form-group" _v-79769366="">\n\t\t\t\t\t<select class="form-select" v-model="post_format.hashtags" _v-79769366="">\n\t\t\t\t\t\t<option value="no-hashtags" _v-79769366="">{{labels.hashtags_option_no}}</option>\n\t\t\t\t\t\t<option value="common-hashtags" _v-79769366="">{{labels.hashtags_option_common}}</option>\n\t\t\t\t\t\t<option value="categories-hashtags" _v-79769366="">{{labels.hashtags_option_cats}}</option>\n\t\t\t\t\t\t<option value="tags-hashtags" _v-79769366="">{{labels.hashtags_option_tags}}</option>\n\t\t\t\t\t\t<option value="custom-hashtags" _v-79769366="">{{labels.hashtags_option_field}}</option>\n\t\t\t\t\t</select>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="columns py-2" v-if="post_format.hashtags === \'common-hashtags\'" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<b _v-79769366="">{{labels.hastags_common_title}}</b>\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.hastags_common_desc}} ",".</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="form-group" _v-79769366="">\n\t\t\t\t\t<input class="form-input" type="text" v-model="post_format.hashtags_common" value="" placeholder="" _v-79769366="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<div class="columns py-2" v-if="post_format.hashtags === \'custom-hashtags\'" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<b _v-79769366="">{{labels.hastags_field_title}}</b>\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.hastags_field_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="form-group" _v-79769366="">\n\t\t\t\t\t<input class="form-input" type="text" v-model="post_format.hashtags_custom" value="" placeholder="" _v-79769366="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<div class="columns py-2" v-if="post_format.hashtags !== \'no-hashtags\'" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<b _v-79769366="">{{labels.hashtags_length_title}}</b>\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.hashtags_length_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="form-group" _v-79769366="">\n\t\t\t\t\t<input class="form-input" type="number" v-model="post_format.hashtags_length" value="" placeholder="" _v-79769366="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<span class="divider" _v-79769366=""></span>\n\t\t\n\t\t<div class="columns py-2" :class="\'rop-control-container-\'+isPro" _v-79769366="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<b _v-79769366="">{{labels.image_title}}</b>\n\t\t\t\t<p class="text-gray" _v-79769366="">{{labels.image_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-79769366="">\n\t\t\t\t<div class="input-group" _v-79769366="">\n\t\t\t\t\t<label class="form-checkbox" _v-79769366="">\n\t\t\t\t\t\t<input type="checkbox" v-model="post_format.image" :disabled="!isPro" _v-79769366="">\n\t\t\t\t\t\t<i class="form-icon" _v-79769366=""></i> {{labels.image_yes}}\n\t\t\t\t\t</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<div class="columns py-2" v-if="!isPro" _v-79769366="">\n\t\t\t<div class="column text-center" _v-79769366="">\n\t\t\t\t<p class="upsell" _v-79769366=""><i class="fa fa-lock" _v-79769366=""></i> {{labels.image_upsell}}</p>\n\t\t\t</div>\n\t\t</div>\n\t\t<span class="divider" _v-79769366=""></span>\n\t</div>\n'},function(t,e,n){var a,s;n(249),a=n(251),s=n(266),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){var a=n(250);"string"==typeof a&&(a=[[t.i,a,""]]);n(2)(a,{});a.locals&&(t.exports=a.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t.rop-control-container-false[_v-56b27685] {\n\t\tcursor:not-allowed !important;\n\t}\n\t#rop_core .panel-body .text-gray[_v-56b27685] {\n\t\tmargin: 0;\n\t\tline-height: normal;\n\t}\n\t\n\tb[_v-56b27685] {\n\t\tmargin-bottom: 5px;\n\t\tdisplay: block;\n\t}\n\t\n\t#rop_core .input-group .input-group-addon[_v-56b27685] {\n\t\tpadding: 3px 5px;\n\t}\n\t\n\t.time-picker[_v-56b27685] {\n\t\tmargin-bottom: 10px;\n\t}\n\t\n\t@media ( max-width: 600px ) {\n\t\t#rop_core .panel-body .text-gray[_v-56b27685] {\n\t\t\tmargin-bottom: 10px;\n\t\t}\n\t\t\n\t\t#rop_core .text-right[_v-56b27685] {\n\t\t\ttext-align: left;\n\t\t}\n\t}\n\t\n",""])},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}var s=n(252),i=a(s),r=n(257),o=a(r),d=n(78),u=a(d);t.exports={name:"account-schedule",props:["account_id","license"],data:function(){return{days:{Mon:{value:"1",checked:!1},Tue:{value:"2",checked:!1},Wed:{value:"3",checked:!1},Thu:{value:"4",checked:!1},Fri:{value:"5",checked:!1},Sat:{value:"6",checked:!1},Sun:{value:"7",checked:!1}},labels:this.$store.state.labels.schedule,upsell_link:ropApiSettings.upsell_link}},computed:{schedule:function(){return this.$store.state.activeSchedule[this.account_id]?this.$store.state.activeSchedule[this.account_id]:[]},daysObject:function(){var t=this.days;for(var e in t)t[e].checked=this.isChecked(t[e].value);return t}},methods:{isChecked:function(t){return void 0!==this.schedule.interval_f&&this.schedule.interval_f.week_days.indexOf(t)>-1},getTime:function(t){var e=this.schedule.interval_f.time[t],n=e.split(":");return{HH:n[0],mm:n[1]}},syncTime:function(t,e){void 0!==this.schedule.interval_f.time[e]&&(this.schedule.interval_f.time[e]=t.data.HH+":"+t.data.mm)},addTime:function(){this.schedule.interval_f.time.push("00:00")},rmvTime:function(t){this.schedule.interval_f.time.splice(t,1)},addDay:function(t){this.schedule.interval_f.week_days.push(t)},rmvDay:function(t){var e=this.schedule.interval_f.week_days.indexOf(t);e>-1&&this.schedule.interval_f.week_days.splice(e,1)}},components:{ButtonCheckbox:i.default,CounterInput:u.default,VueTimepicker:o.default}}},function(t,e,n){var a,s;n(253),a=n(255),s=n(256),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){var a=n(254);"string"==typeof a&&(a=[[t.i,a,""]]);n(2)(a,{});a.locals&&(t.exports=a.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t#rop_core .input-group .input-group-addon.btn.active[_v-7827490e] {\n\t\tbackground-color: #8bc34a;\n\t\tborder-color: #33691e;\n\t\tcolor: #FFF;\n\t}\n",""])},function(t,e,n){"use strict";t.exports={name:"button-checkbox",props:{value:{default:"0",type:String},label:{default:"",type:String},id:{default:function(){var t="day";return""!==this.label&&void 0!==this.label&&(t=t+"_"+this.label.toLowerCase()),t}},checked:{default:!1,type:Boolean}},data:function(){return{componentCheckState:this.checked}},computed:{is_active:function(){return{active:!0===this.componentCheckState}}},watch:{checked:function(){this.componentCheckState=this.checked}},methods:{toggleThis:function(){this.componentCheckState=!this.componentCheckState,this.componentCheckState?this.$emit("add-day",this.value):this.$emit("rmv-day",this.value)}}}},function(t,e){t.exports='\n\t<button class="btn input-group-addon column" :class="is_active" @click="toggleThis()" _v-7827490e="">{{label}}</button>\n'},function(t,e,n){t.exports=n(258)},function(t,e,n){var a,s;n(259),a=n(262),s=n(265),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){var a=n(260);"string"==typeof a&&(a=[[t.i,a,""]]);n(2)(a,{});a.locals&&(t.exports=a.locals)},function(t,e,n){e=t.exports=n(1)(),e.i(n(261),""),e.push([t.i,"\n",""])},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,".time-picker {\n display: inline-block;\n position: relative;\n font-size: 1em;\n width: 10em;\n font-family: sans-serif;\n vertical-align: middle;\n}\n\n.time-picker * {\n box-sizing: border-box;\n}\n\n.time-picker input.display-time {\n border: 1px solid #d2d2d2;\n width: 10em;\n height: 2.2em;\n padding: 0.3em 0.5em;\n font-size: 1em;\n}\n\n.time-picker .clear-btn {\n position: absolute;\n display: flex;\n flex-flow: column nowrap;\n justify-content: center;\n align-items: center;\n top: 0;\n right: 0;\n bottom: 0;\n margin-top: -0.15em;\n z-index: 3;\n font-size: 1.1em;\n line-height: 1em;\n vertical-align: middle;\n width: 1.3em;\n color: #d2d2d2;\n background: rgba(255,255,255,0);\n text-align: center;\n font-style: normal;\n\n -webkit-transition: color .2s;\n transition: color .2s;\n}\n\n.time-picker .clear-btn:hover {\n color: #797979;\n cursor: pointer;\n}\n\n.time-picker .time-picker-overlay {\n z-index: 2;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n\n.time-picker .dropdown {\n position: absolute;\n z-index: 5;\n top: calc(2.2em + 2px);\n left: 0;\n background: #fff;\n box-shadow: 0 1px 6px rgba(0,0,0,0.15);\n width: 10em;\n height: 10em;\n font-weight: normal;\n}\n\n.time-picker .dropdown .select-list {\n width: 10em;\n height: 10em;\n overflow: hidden;\n display: flex;\n flex-flow: row nowrap;\n align-items: stretch;\n justify-content: space-between;\n}\n\n.time-picker .dropdown ul {\n padding: 0;\n margin: 0;\n list-style: none;\n\n flex: 1;\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n.time-picker .dropdown ul.minutes,\n.time-picker .dropdown ul.seconds,\n.time-picker .dropdown ul.apms{\n border-left: 1px solid #fff;\n}\n\n.time-picker .dropdown ul li {\n text-align: center;\n padding: 0.3em 0;\n color: #161616;\n}\n\n.time-picker .dropdown ul li:not(.hint):hover {\n background: rgba(0,0,0,.08);\n color: #161616;\n cursor: pointer;\n}\n\n.time-picker .dropdown ul li.active,\n.time-picker .dropdown ul li.active:hover {\n background: #41B883;\n color: #fff;\n}\n\n.time-picker .dropdown .hint {\n color: #a5a5a5;\n cursor: default;\n font-size: 0.8em;\n}\n",""])},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var s=n(13),i=a(s),r=n(263),o=a(r),d={HOUR_TOKENS:["HH","H","hh","h","kk","k"],MINUTE_TOKENS:["mm","m"],SECOND_TOKENS:["ss","s"],APM_TOKENS:["A","a"]};e.default={name:"VueTimepicker",props:{value:{type:Object},hideClearButton:{type:Boolean},format:{type:String},minuteInterval:{type:Number},secondInterval:{type:Number},id:{type:String}},data:function(){return{hours:[],minutes:[],seconds:[],apms:[],showDropdown:!1,muteWatch:!1,hourType:"HH",minuteType:"mm",secondType:"",apmType:"",hour:"",minute:"",second:"",apm:"",fullValues:void 0}},computed:{displayTime:function(){var t=String(this.format||"HH:mm");return this.hour&&(t=t.replace(new RegExp(this.hourType,"g"),this.hour)),this.minute&&(t=t.replace(new RegExp(this.minuteType,"g"),this.minute)),this.second&&this.secondType&&(t=t.replace(new RegExp(this.secondType,"g"),this.second)),this.apm&&this.apmType&&(t=t.replace(new RegExp(this.apmType,"g"),this.apm)),t},showClearBtn:function(){return!!(this.hour&&""!==this.hour||this.minute&&""!==this.minute)}},watch:{format:"renderFormat",minuteInterval:function(t){this.renderList("minute",t)},secondInterval:function(t){this.renderList("second",t)},value:"readValues",displayTime:"fillValues"},methods:{formatValue:function(t,e){switch(t){case"H":case"m":case"s":return String(e);case"HH":case"mm":case"ss":return e<10?"0"+e:String(e);case"h":case"k":return String(e+1);case"hh":case"kk":return e+1<10?"0"+(e+1):String(e+1);default:return""}},checkAcceptingType:function(t,e,n){if(!t||!e||!e.length)return"";for(var a=0;a<t.length;a++)if(e.indexOf(t[a])>-1)return t[a];return n||""},renderFormat:function(t){t=t||this.format,t&&t.length||(t="HH:mm"),this.hourType=this.checkAcceptingType(d.HOUR_TOKENS,t,"HH"),this.minuteType=this.checkAcceptingType(d.MINUTE_TOKENS,t,"mm"),this.secondType=this.checkAcceptingType(d.SECOND_TOKENS,t),this.apmType=this.checkAcceptingType(d.APM_TOKENS,t),this.renderHoursList(),this.renderList("minute"),this.secondType&&this.renderList("second"),this.apmType&&this.renderApmList();var e=this;this.$nextTick(function(){e.readValues()})},renderHoursList:function(){var t="h"===this.hourType||"hh"===this.hourType?12:24;this.hours=[];for(var e=0;e<t;e++)this.hours.push(this.formatValue(this.hourType,e))},renderList:function(t,e){if("second"===t)e=e||this.secondInterval;else{if("minute"!==t)return;e=e||this.minuteInterval}0===e?e=60:e>60?(window.console.warn("`"+t+"-interval` should be less than 60. Current value is",e),e=1):e<1?(window.console.warn("`"+t+"-interval` should be NO less than 1. Current value is",e),e=1):e||(e=1),"minute"===t?this.minutes=[]:this.seconds=[];for(var n=0;n<60;n+=e)"minute"===t?this.minutes.push(this.formatValue(this.minuteType,n)):this.seconds.push(this.formatValue(this.secondType,n))},renderApmList:function(){this.apms=[],this.apmType&&(this.apms="A"===this.apmType?["AM","PM"]:["am","pm"])},readValues:function(){if(this.value&&!this.muteWatch){var t=JSON.parse((0,o.default)(this.value||{})),e=(0,i.default)(t);0!==e.length&&(e.indexOf(this.hourType)>-1&&(this.hour=t[this.hourType]),e.indexOf(this.minuteType)>-1&&(this.minute=t[this.minuteType]),e.indexOf(this.secondType)>-1?this.second=t[this.secondType]:this.second=0,e.indexOf(this.apmType)>-1&&(this.apm=t[this.apmType]),this.fillValues())}},fillValues:function(){var t={},e=this.hour,n=this.hourType,a=e||0===e?Number(e):"",s=this.isTwelveHours(n),i=!(!s||!this.apm)&&String(this.apm).toLowerCase();if(d.HOUR_TOKENS.forEach(function(r){if(r===n)return void(t[r]=e);var o=void 0,d=void 0;switch(r){case"H":case"HH":if(!String(a).length)return void(t[r]="");o=s?"pm"===i?a<12?a+12:a:a%12:a%24,t[r]="HH"===r&&o<10?"0"+o:String(o);break;case"k":case"kk":if(!String(a).length)return void(t[r]="");o=s?"pm"===i?a<12?a+12:a:12===a?24:a:0===a?24:a,t[r]="kk"===r&&o<10?"0"+o:String(o);break;case"h":case"hh":if(i)o=a,d=i||"am";else{if(!String(a).length)return t[r]="",t.a="",void(t.A="");a>11?(d="pm",o=12===a?12:a%12):(d=s?"":"am",o=a%12==0?12:a)}t[r]="hh"===r&&o<10?"0"+o:String(o),t.a=d,t.A=d.toUpperCase()}}),this.minute||0===this.minute){var r=Number(this.minute);t.m=String(r),t.mm=r<10?"0"+r:String(r)}else t.m="",t.mm="";if(this.second||0===this.second){var o=Number(this.second);t.s=String(o),t.ss=o<10?"0"+o:String(o)}else t.s="",t.ss="";this.fullValues=t,this.updateTimeValue(t),this.$emit("change",{data:t})},updateTimeValue:function(t){this.muteWatch=!0;var e=this,n=JSON.parse((0,o.default)(this.value||{})),a={};(0,i.default)(n).forEach(function(e){a[e]=t[e]}),this.$emit("input",a),this.$nextTick(function(){e.muteWatch=!1})},isTwelveHours:function(t){return"h"===t||"hh"===t},toggleDropdown:function(){this.showDropdown=!this.showDropdown},select:function(t,e){"hour"===t?this.hour=e:"minute"===t?this.minute=e:"second"===t?this.second=e:"apm"===t&&(this.apm=e)},clearTime:function(){this.hour="",this.minute="",this.second="",this.apm=""}},mounted:function(){this.renderFormat()}}},function(t,e,n){t.exports={default:n(264),__esModule:!0}},function(t,e,n){var a=n(5),s=a.JSON||(a.JSON={stringify:JSON.stringify});t.exports=function(t){return s.stringify.apply(s,arguments)}},function(t,e){t.exports='\n<span class="time-picker">\n <input class="display-time" :id="id" v-model="displayTime" @click.stop="toggleDropdown" type="text" readonly />\n <span class="clear-btn" v-if="!hideClearButton" v-show="!showDropdown && showClearBtn" @click.stop="clearTime">×</span>\n <div class="time-picker-overlay" v-if="showDropdown" @click.stop="toggleDropdown"></div>\n <div class="dropdown" v-show="showDropdown">\n <div class="select-list">\n <ul class="hours">\n <li class="hint" v-text="hourType"></li>\n <li v-for="hr in hours" v-text="hr" :class="{active: hour === hr}" @click.stop="select(\'hour\', hr)"></li>\n </ul>\n <ul class="minutes">\n <li class="hint" v-text="minuteType"></li>\n <li v-for="m in minutes" v-text="m" :class="{active: minute === m}" @click.stop="select(\'minute\', m)"></li>\n </ul>\n <ul class="seconds" v-if="secondType">\n <li class="hint" v-text="secondType"></li>\n <li v-for="s in seconds" v-text="s" :class="{active: second === s}" @click.stop="select(\'second\', s)"></li>\n </ul>\n <ul class="apms" v-if="apmType">\n <li class="hint" v-text="apmType"></li>\n <li v-for="a in apms" v-text="a" :class="{active: apm === a}" @click.stop="select(\'apm\', a)"></li>\n </ul>\n </div>\n </div>\n</span>\n'},function(t,e){t.exports='\n\t<div :class="\'rop-control-container-\'+ ( license>1 ) " _v-56b27685="">\n\t\t\n\t\t<div class="columns py-2 rop-control" _v-56b27685="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-56b27685="">\n\t\t\t\t<b _v-56b27685="">{{labels.schedule_type_title}}</b>\n\t\t\t\t<p class="text-gray" _v-56b27685="">{{labels.schedule_type_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-56b27685="">\n\t\t\t\t<div class="form-group" _v-56b27685="">\n\t\t\t\t\t<select class="form-select" v-model="schedule.type" _v-56b27685="">\n\t\t\t\t\t\t<option value="recurring" _v-56b27685="">{{labels.schedule_type_option_rec}}</option>\n\t\t\t\t\t\t<option value="fixed" _v-56b27685="">{{labels.schedule_type_option_fix}}</option>\n\t\t\t\t\t</select>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t\x3c!-- Fixed Schedule Days --\x3e\n\t\t<div class="columns py-2 rop-control" v-if="schedule.type === \'fixed\'" _v-56b27685="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-56b27685="">\n\t\t\t\t<b _v-56b27685="">{{labels.schedule_fixed_days_title}}</b>\n\t\t\t\t<p class="text-gray" _v-56b27685="">{{labels.schedule_fixed_days_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-56b27685="">\n\t\t\t\t<div class="form-group input-group" _v-56b27685="">\n\t\t\t\t\t<button-checkbox v-for="( data, label ) in daysObject" :key="label" :value="data.value" :label="label" :checked="data.checked" @add-day="addDay" @rmv-day="rmvDay" _v-56b27685=""></button-checkbox>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t\x3c!-- Fixed Schedule time --\x3e\n\t\t<div class="columns py-2 rop-control" v-if="schedule.type === \'fixed\'" _v-56b27685="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-56b27685="">\n\t\t\t\t<b _v-56b27685="">{{labels.schedule_fixed_time_title}}</b>\n\t\t\t\t<p class="text-gray" _v-56b27685="">{{labels.schedule_fixed_time_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-56b27685="">\n\t\t\t\t<div class="form-group" _v-56b27685="">\n\t\t\t\t\t<div class="input-group" v-for="( time, index ) in schedule.interval_f.time" _v-56b27685="">\n\t\t\t\t\t\t<vue-timepicker :minute-interval="5" class="timepicker-style-fix" :value="getTime( index )" @change="syncTime( $event, index )" hide-clear-button="" _v-56b27685=""></vue-timepicker>\n\t\t\t\t\t\t<button class="btn btn-danger input-group-btn" v-if="schedule.interval_f.time.length > 1" @click="rmvTime( index )" _v-56b27685="">\n\t\t\t\t\t\t\t<i class="fa fa-fw fa-minus" _v-56b27685=""></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<button class="btn btn-success input-group-btn" v-if="index == schedule.interval_f.time.length - 1" @click="addTime()" _v-56b27685="">\n\t\t\t\t\t\t\t<i class="fa fa-fw fa-plus" _v-56b27685=""></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<div class="columns py-2 rop-control" v-else="" _v-56b27685="">\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-56b27685="">\n\t\t\t\t<b _v-56b27685="">{{labels.schedule_rec_title}}</b>\n\t\t\t\t<p class="text-gray" _v-56b27685="">{{labels.schedule_rec_desc}}</p>\n\t\t\t</div>\n\t\t\t<div class="column col-6 col-sm-12 vertical-align" _v-56b27685="">\n\t\t\t\t<div class="form-group" _v-56b27685="">\n\t\t\t\t\t<counter-input id="interval_r" :value.sync="schedule.interval_r" _v-56b27685=""></counter-input>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t\x3c!-- Upsell --\x3e\n\t\t<div class="columns py-2" v-if="license < 2" _v-56b27685="">\n\t\t\t<div class="column text-center" _v-56b27685="">\n\t\t\t\t<p class="upsell" _v-56b27685=""><i class="fa fa-lock" _v-56b27685=""></i> {{labels.schedule_upsell}}</p>\n\t\t\t</div>\n\t\t</div>\n\t\t<span class="divider" _v-56b27685=""></span>\n\t</div>\n'},function(t,e){t.exports='\n\t<div class="tab-view" _v-fde13d02="">\n\t\t<div class="panel-body" _v-fde13d02="">\n\t\t\t<div class="d-inline-block mt-2 column col-12" _v-fde13d02="">\n\t\t\t\t<p class="text-gray" _v-fde13d02=""><i class="fa fa-info-circle" _v-fde13d02=""></i> <span v-html="labels.accounts_selector" _v-fde13d02=""></span>\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t<empty-active-accounts v-if="accountsCount === 0" _v-fde13d02=""></empty-active-accounts>\n\t\t\t<div class="container" v-if="accountsCount > 0" _v-fde13d02="">\n\t\t\t\t\n\t\t\t\t<div class="columns" _v-fde13d02="">\n\t\t\t\t\t<div class="column col-3 col-sm-12 col-md-12 col-xl-3 col-lg-3 col-xs-12 col-rop-selector-accounts" _v-fde13d02="">\n\t\t\t\t\t\t<span class="divider" _v-fde13d02=""></span>\n\t\t\t\t\t\t<div v-for="( account, id ) in active_accounts" _v-fde13d02="">\n\t\t\t\t\t\t\t<div class="rop-selector-account-container" :class="{active: selected_account===id}" @click="setActiveAccount(id)" _v-fde13d02="">\n\t\t\t\t\t\t\t\t<div class="tile tile-centered rop-account" _v-fde13d02="">\n\t\t\t\t\t\t\t\t\t<div class="tile-icon" _v-fde13d02="">\n\t\t\t\t\t\t\t\t\t\t<div class="icon_box" :class=" (account.img ? \'has_image\' : \'no-image\' ) + \' \' +account.service " _v-fde13d02="">\n\t\t\t\t\t\t\t\t\t\t\t<img class="service_account_image" :src="account.img" v-if="account.img" _v-fde13d02="">\n\t\t\t\t\t\t\t\t\t\t\t<i class="fa " :class="getIcon(account)" aria-hidden="true" _v-fde13d02=""></i>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="tile-content" _v-fde13d02="">\n\t\t\t\t\t\t\t\t\t\t<p class="rop-account-name" _v-fde13d02="">{{account.user}}</p>\n\t\t\t\t\t\t\t\t\t\t<strong class="rop-service-name" _v-fde13d02="">{{account.service}}</strong>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<span class="divider" _v-fde13d02=""></span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="column col-9 col-sm-12 col-md-12 col-xl-9 col-lg-9 col-xs-12" :class="\'rop-tab-state-\'+is_loading" _v-fde13d02="">\n\t\t\t\t\t\t<component :is="type" :account_id="selected_account" :license="license" _v-fde13d02=""></component>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="panel-footer" v-if="accountsCount > 0" _v-fde13d02="">\n\t\t\t<div class="panel-actions text-right" v-if="allow_footer" _v-fde13d02="">\n\t\t\t\t<button class="btn btn-secondary" @click="resetAccountData()" _v-fde13d02=""><i class="fa fa-ban" v-if="!this.is_loading" _v-fde13d02=""></i> <i class="fa fa-spinner fa-spin" v-else="" _v-fde13d02=""></i> {{labels.reset_selector_btn}} {{component_label}}\n\t\t\t\t\t{{labels.for}}\n\t\t\t\t\t<b _v-fde13d02="">{{active_account_name}}</b>\n\t\t\t\t</button>\n\t\t\t\t<button class="btn btn-primary" @click="saveAccountData()" _v-fde13d02=""><i class="fa fa-check" v-if="!this.is_loading" _v-fde13d02=""></i> <i class="fa fa-spinner fa-spin" v-else="" _v-fde13d02=""></i> {{labels.save_selector_btn}} {{component_label}}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n'},function(t,e,n){var a,s;a=n(269),s=n(275),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}var s=n(13),i=a(s),r=n(270),o=a(r);t.exports={name:"queue-view",computed:{queueCount:function(){return(0,i.default)(this.$store.state.queue).length},queue:function(){return this.$store.state.queue},start_status:function(){return this.$store.state.cron_status.current_status},is_business:function(){return this.$store.state.licence>1}},data:function(){return{is_loading:!1,labels:this.$store.state.labels.queue,upsell_link:ropApiSettings.upsell_link}},watch:{start_status:function(t){this.refreshQueue()}},mounted:function(){this.start_status&&this.refreshQueue()},methods:{refreshQueue:function(t){var e=this;if(this.is_loading)return void this.$log.warn("Request in progress...Bail");this.$store.state.queue=[],this.is_loading=!0,this.$store.dispatch("fetchAJAXPromise",{req:"get_queue",data:{force:t}}).then(function(t){e.is_loading=!1,e.$store.dispatch("fetchAJAX",{req:"manage_cron"})},function(t){e.is_loading=!1,Vue.$log.error("Got nothing from server. Prompt user to check internet connection and try again",t)})}},components:{QueueCard:o.default}}},function(t,e,n){var a,s;n(271),a=n(273),s=n(274),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){var a=n(272);"string"==typeof a&&(a=[[t.i,a,""]]);n(2)(a,{});a.locals&&(t.exports=a.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t.fa[_v-ce3badbe] {\n\t\tbackground: transparent;\n\t}\n\t\n\t#rop_core .vertical-align[_v-ce3badbe] {\n\t\t-ms-flex-align: end;\n\t\t align-items: flex-end;\n\t}\n\t\n\t#rop_core figure.figure[_v-ce3badbe] {\n\t\tmargin: -.7em -2em -1em 0;\n\t}\n\t\n\t@media (max-width: 600px) {\n\t\t#rop_core .vertical-align[_v-ce3badbe] {\n\t\t\t-ms-flex-align: center;\n\t\t\t align-items: center;\n\t\t}\n\t\t\n\t\t#rop_core figure.figure[_v-ce3badbe] {\n\t\t\tmargin: 10px auto 0;\n\t\t}\n\t}\n",""])},function(t,e,n){"use strict";t.exports={name:"queue-card",props:{id:{default:""},enabled:{default:!1,type:Boolean},card_data:{default:{},type:Object}},data:function(){return{edit:!1,labels:this.$store.state.labels.queue,upsell_link:ropApiSettings.upsell_link,is_loading:!1,post_edit:{}}},computed:{content:function(){return void 0!==this.card_data.content?this.card_data.content:{}},active_accounts:function(){return this.$store.state.activeAccounts}},mounted:function(){},watch:{},methods:{skipPost:function(t,e){var n=this;if(this.is_loading)return void this.$log.warn("Request in progress...Bail");this.is_loading="skip",this.$store.dispatch("fetchAJAXPromise",{req:"skip_queue_event",data:{account_id:t,post_id:e}}).then(function(t){n.is_loading=!1},function(t){n.is_loading=!1,Vue.$log.error("Got nothing from server. Prompt user to check internet connection and try again",t)})},blockPost:function(t,e){var n=this;if(this.is_loading)return void this.$log.warn("Request in progress...Bail");this.is_loading="block",this.$store.dispatch("fetchAJAXPromise",{req:"block_queue_event",data:{account_id:t,post_id:e}}).then(function(t){n.is_loading=!1},function(t){n.is_loading=!1,Vue.$log.error("Got nothing from server. Prompt user to check internet connection and try again",t)})},toggleEditState:function(){this.edit=!this.edit},getAccountName:function(t){return void 0===this.active_accounts[t]?"":this.active_accounts[t].user},checkCount:function(t){this.post_edit.text="",this.post_edit.text!==t.srcElement.value&&(this.post_edit.text=t.srcElement.value)},saveChanges:function(t,e){var n=this;if(this.is_loading)return void this.$log.warn("Request in progress...Bail");this.is_loading="edit",this.$store.dispatch("fetchAJAXPromise",{req:"update_queue_event",data:{account_id:t,post_id:e,custom_data:this.post_edit}}).then(function(t){n.is_loading=!1,n.toggleEditState()},function(t){n.is_loading=!1,n.toggleEditState(),Vue.$log.error("Got nothing from server. Prompt user to check internet connection and try again",t)})},cancelChanges:function(){this.post_edit={},this.toggleEditState()},uploadImage:function(){var t=wp.media({title:this.labels.insert_media_title,library:{type:"image"},multiple:!1,button:{text:this.labels.insert_media_btn}}),e=this;t.on("select",function(){var n=t.state().get("selection").first().toJSON();e.content.post_image=n.url,e.post_edit.image=n.url}),t.open()},removeImage:function(){var t=this;t.content.post_image=null,t.post_edit.image=null},iconClass:function(t){var e="fa-user";if(null!==t){e="fa-";var n=this.active_accounts[t];void 0!==n&&"facebook"===n.service&&(e=e.concat("facebook facebook")),void 0!==n&&"twitter"===n.service&&(e=e.concat("twitter twitter")),void 0!==n&&"linkedin"===n.service&&(e=e.concat("linkedin linkedin")),void 0!==n&&"tumblr"===n.service&&(e=e.concat("tumblr tumblr"))}return e},hashtags:function(t){var e=new RegExp("#\\S+","ig");return t.toString().replace(e,function(t,e,n){return","===t.slice(-1)?"<strong>"+t.substring(0,t.lastIndexOf(","))+"</strong>,":"<strong>"+t+"</strong>"})}}}},function(t,e){t.exports='\n\t<div class="card" _v-ce3badbe="">\n\t\t<div class="columns" _v-ce3badbe="">\n\t\t\t<div class="column col-sm-12 col-justified" _v-ce3badbe="">\n\t\t\t\t<div class="columns" _v-ce3badbe="">\n\t\t\t\t\t<div class="column" _v-ce3badbe="">\n\t\t\t\t\t\t<p class="text-gray text-left " _v-ce3badbe=""><i class="fa fa-clock-o" _v-ce3badbe=""></i> {{card_data.date}} <b _v-ce3badbe=""><i class="fa fa-at" _v-ce3badbe=""></i></b> <i class="service fa" :class="iconClass( card_data.account_id )" _v-ce3badbe=""></i>\n\t\t\t\t\t\t\t{{getAccountName(card_data.account_id)}}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="columns" v-if="!edit" _v-ce3badbe="">\n\t\t\t\t\t<div class="column col-12" _v-ce3badbe="">\n\t\t\t\t\t\t<p v-html="hashtags( content.content )" _v-ce3badbe=""></p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="form-group columns" v-if="edit" _v-ce3badbe="">\n\t\t\t\t\t<div class="column col-12" v-if="content.post_with_image" _v-ce3badbe="">\n\t\t\t\t\t\t<label class="form-label" for="image" _v-ce3badbe="">{{labels.queue_image}}</label>\n\t\t\t\t\t\t<div class="input-group" _v-ce3badbe="">\n\t\t\t\t\t\t\t<span class="input-group-addon" _v-ce3badbe=""><i class="fa fa-file-image-o" _v-ce3badbe=""></i></span>\n\t\t\t\t\t\t\t<input id="image" type="text" class="form-input" :value="content.post_image" readonly="" _v-ce3badbe="">\n\t\t\t\t\t\t\t<button class="btn btn-primary input-group-btn tooltip" @click="uploadImage" :data-tooltip="labels.upload_image" _v-ce3badbe="">\n\t\t\t\t\t\t\t\t<i class="fa fa-upload" aria-hidden="true" _v-ce3badbe=""></i>\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t<button class="btn btn-danger input-group-btn tooltip" @click="removeImage" :data-tooltip="labels.remove_image" _v-ce3badbe="">\n\t\t\t\t\t\t\t\t<i class="fa fa-remove" aria-hidden="true" _v-ce3badbe=""></i>\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="column col-12" _v-ce3badbe="">\n\t\t\t\t\t\t<label class="form-label" for="content" _v-ce3badbe="">{{labels.queue_content}}</label>\n\t\t\t\t\t\t<textarea class="form-input" id="content" placeholder="" rows="3" @keyup="checkCount" _v-ce3badbe="">{{content.content}}</textarea>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="columns col-justified" v-if="!edit" _v-ce3badbe="">\n\t\t\t\t\t<div class="column col-3" _v-ce3badbe="">\n\t\t\t\t\t\t<button class="btn btn-sm btn-block btn-warning tooltip tooltip-bottom " @click="skipPost(card_data.account_id, card_data.post_id)" :data-tooltip="labels.reschedule_post" :disabled=" ! enabled" _v-ce3badbe="">\n\t\t\t\t\t\t\t<i class="fa fa-spinner fa-spin" v-if=" is_loading === \'skip\'" _v-ce3badbe=""></i>\n\t\t\t\t\t\t\t<i class="fa fa-step-forward" v-else="" aria-hidden="true" _v-ce3badbe=""></i>\n\t\t\t\t\t\t\t{{labels.skip_btn_queue}}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="column col-3" _v-ce3badbe="">\n\t\t\t\t\t\t<button class="btn btn-sm btn-block btn-danger tooltip tooltip-bottom " :data-tooltip="labels.ban_post" @click="blockPost(card_data.account_id, card_data.post_id)" :disabled=" ! enabled" _v-ce3badbe="">\n\t\t\t\t\t\t\t<i class="fa fa-spinner fa-spin" v-if=" is_loading === \'block\'" _v-ce3badbe=""></i>\n\t\t\t\t\t\t\t<i class="fa fa-ban" aria-hidden="true" v-else="" _v-ce3badbe=""></i>\n\t\t\t\t\t\t\t{{labels.block_btn_queue}}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="column col-3" _v-ce3badbe="">\n\t\t\t\t\t\t<button class="btn btn-sm btn-block btn-primary" @click="toggleEditState" v-if="!edit" :disabled=" ! enabled" _v-ce3badbe="">\n\t\t\t\t\t\t\t<i class="fa fa-pencil" aria-hidden="true" _v-ce3badbe=""></i> {{labels.edit_queue}}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="column col-3 col-ml-auto text-right" v-if="content.post_url !== \'\'" _v-ce3badbe="">\n\t\t\t\t\t\t<p class="m-0" _v-ce3badbe="">\n\t\t\t\t\t\t\t<b _v-ce3badbe="">{{labels.link_title}}:</b>\n\t\t\t\t\t\t\t<a :href="content.post_url" target="_blank" class="tooltip" :data-tooltip="labels.link_shortned_start + \' \' + ( content.short_url_service == \'\' ? \'permalink\' : content.short_url_service ) " _v-ce3badbe="">\n\t\t\t\t\t\t\t\t{{\'{\' + ( content.short_url_service == \'\' ? \'permalink\' : content.short_url_service ) + \'}\'}}</a>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="columns" v-else="" _v-ce3badbe="">\n\t\t\t\t\t<div class="column col-3" _v-ce3badbe="">\n\t\t\t\t\t\t<button class="btn btn-sm btn-block btn-success" @click="saveChanges(card_data.account_id, card_data.post_id)" v-if="edit" :disabled=" ! enabled" _v-ce3badbe="">\n\t\t\t\t\t\t\t<i class="fa fa-spinner fa-spin" v-if=" is_loading === \'edit\'" _v-ce3badbe=""></i>\n\t\t\t\t\t\t\t<i class="fa fa-check" aria-hidden="true" v-else="" _v-ce3badbe=""></i>\n\t\t\t\t\t\t\t{{labels.save_edit}}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="column col-3" _v-ce3badbe="">\n\t\t\t\t\t\t<button class="btn btn-sm btn-block btn-warning" @click="cancelChanges" v-if="edit" :disabled=" ! enabled" _v-ce3badbe="">\n\t\t\t\t\t\t\t<i class="fa fa-times" aria-hidden="true" _v-ce3badbe=""></i>\n\t\t\t\t\t\t\t{{labels.cancel_edit}}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="column col-4 col-sm-12 vertical-align" v-if="!edit && content.post_with_image" _v-ce3badbe="">\n\t\t\t\t<div v-if="content.post_image !== \'\'" _v-ce3badbe="">\n\t\t\t\t\t<figure class="figure" v-if="content.post_image !== \'\'" _v-ce3badbe="">\n\t\t\t\t\t\t<img :src="content.post_image" class="img-fit-cover img-responsive" _v-ce3badbe="">\n\t\t\t\t\t</figure>\n\t\t\t\t\n\t\t\t\t</div>\n\t\t\t\t<div class="rop-image-placeholder" v-else="" _v-ce3badbe="">\n\t\t\t\t\t<summary _v-ce3badbe="">\n\t\t\t\t\t\t<i class="fa fa-file-image-o" _v-ce3badbe=""></i>\n\t\t\t\t\t\t{{labels.queue_no_image}}\n\t\t\t\t\t</summary>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n'},function(t,e){t.exports='\n\t<div class="tab-view">\n\t\t<div class="panel-body" :class="\'rop-tab-state-\'+is_loading">\n\t\t\t<div class="columns" v-if="! start_status">\n\t\t\t\t<div class="column col-12 text-center empty-container">\n\t\t\t\t\t<div class="empty-icon">\n\t\t\t\t\t\t<i class="fa fa-3x fa-info-circle"></i>\n\t\t\t\t\t</div>\n\t\t\t\t\t<p class="empty-title h5">{{labels.sharing_not_started}}</p>\n\t\t\t\t\t<p class="empty-subtitle">{{labels.sharing_not_started_desc}}</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div v-else-if="start_status && queueCount > 0 ">\n\t\t\t\t\n\t\t\t\t<div class="columns py-2" v-if="! is_business">\n\t\t\t\t\t<div class="column text-center">\n\t\t\t\t\t\t<p class="upsell"><i class="fa fa-lock"></i> <span v-html="labels.biz_only"></span></p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t\x3c!-- When sharing is started but we have the business plan. --\x3e\n\t\t\t\t<div class="d-inline-block mt-2 column col-12">\n\t\t\t\t\t<p class="text-gray info-paragraph"><i class="fa fa-info-circle"></i> {{labels.queue_desc}}</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="empty" v-else-if="start_status && queueCount === 0">\n\t\t\t\t<div class="empty-icon">\n\t\t\t\t\t<i class="fa fa-3x fa-info-circle"></i>\n\t\t\t\t</div>\n\t\t\t\t<p class="empty-title h5">{{labels.no_posts}}</p>\n\t\t\t\t<p class="empty-subtitle" v-html="labels.no_posts_desc"></p>\n\t\t\t</div>\n\t\t\t<div class="columns" v-if="start_status && queueCount > 0">\n\t\t\t\t<div class="column col-12 text-left" v-for=" (data, index) in queue ">\n\t\t\t\t\t<queue-card :card_data="data.post_data" :id="index" :enabled="is_business"/>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="panel-footer text-rightcade" v-if="start_status">\n\t\t\t<button class="btn btn-secondary" @click="refreshQueue(true)">\n\t\t\t\t<i class="fa fa-refresh" v-if="!is_loading"></i>\n\t\t\t\t<i class="fa fa-spinner fa-spin" v-else></i>\n\t\t\t\t{{labels.refresh_btn}}\n\t\t\t</button>\n\t\t</div>\n\t</div>\n'},function(t,e,n){var a,s;n(277),a=n(279),s=n(282),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){var a=n(278);"string"==typeof a&&(a=[[t.i,a,""]]);n(2)(a,{});a.locals&&(t.exports=a.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t#rop_core .toast.log-toast p[_v-23dffd7c] {\n\t\tmargin: 0px;\n\t\tline-height: inherit;\n\t}\n\t\n\t#rop_core .toast.log-toast[_v-23dffd7c]:hover {\n\t\topacity: 0.9;\n\t}\n\t\n\t#rop_core .toast.log-toast[_v-23dffd7c] {\n\t\tpadding: 0.1rem;\n\t\tpadding-left: 10px;\n\t\tmargin-top: 2px;\n\t}\n\t\n\t#rop_core .container[_v-23dffd7c] {\n\t\tmin-height: 400px;\n\t}\n",""])},function(t,e,n){"use strict";var a=n(0),s=function(t){return t&&t.__esModule?t:{default:t}}(a);t.exports={name:"logs-view",props:["model"],data:function(){return{is_loading:!1,labels:this.$store.state.labels.logs,upsell_link:ropApiSettings.upsell_link}},mounted:function(){this.getLogs()},computed:{logs:function(){return this.$store.state.page.logs},logs_no:function(){return this.$store.state.cron_status.logs_number}},watch:{logs_no:function(){this.getLogs()}},methods:{getLogs:function(t){var e=this;if(this.is_loading)return void this.$log.warn("Request in progress...Bail");this.is_loading=!0,this.$store.dispatch("fetchAJAXPromise",{req:"get_log",data:{force:t}}).then(function(t){e.$log.info("Succesfully fetched logs."),e.is_loading=!1,e.$store.dispatch("fetchAJAX",{req:"manage_cron",data:{action:"status"}})},function(t){Vue.$log.error("Got nothing from server. Prompt user to check internet connection and try again",t),e.is_loading=!1})},formatDate:function(t){var e=this.$store.state.cron_status.date_format;return"undefined"===e?"":s.default.utc(t,"X").format(e.replace("mm","mm:ss"))}}}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){function a(t){return n(s(t))}function s(t){var e=i[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}var i={"./af":79,"./af.js":79,"./ar":80,"./ar-dz":81,"./ar-dz.js":81,"./ar-kw":82,"./ar-kw.js":82,"./ar-ly":83,"./ar-ly.js":83,"./ar-ma":84,"./ar-ma.js":84,"./ar-sa":85,"./ar-sa.js":85,"./ar-tn":86,"./ar-tn.js":86,"./ar.js":80,"./az":87,"./az.js":87,"./be":88,"./be.js":88,"./bg":89,"./bg.js":89,"./bm":90,"./bm.js":90,"./bn":91,"./bn.js":91,"./bo":92,"./bo.js":92,"./br":93,"./br.js":93,"./bs":94,"./bs.js":94,"./ca":95,"./ca.js":95,"./cs":96,"./cs.js":96,"./cv":97,"./cv.js":97,"./cy":98,"./cy.js":98,"./da":99,"./da.js":99,"./de":100,"./de-at":101,"./de-at.js":101,"./de-ch":102,"./de-ch.js":102,"./de.js":100,"./dv":103,"./dv.js":103,"./el":104,"./el.js":104,"./en-au":105,"./en-au.js":105,"./en-ca":106,"./en-ca.js":106,"./en-gb":107,"./en-gb.js":107,"./en-ie":108,"./en-ie.js":108,"./en-il":109,"./en-il.js":109,"./en-nz":110,"./en-nz.js":110,"./eo":111,"./eo.js":111,"./es":112,"./es-do":113,"./es-do.js":113,"./es-us":114,"./es-us.js":114,"./es.js":112,"./et":115,"./et.js":115,"./eu":116,"./eu.js":116,"./fa":117,"./fa.js":117,"./fi":118,"./fi.js":118,"./fo":119,"./fo.js":119,"./fr":120,"./fr-ca":121,"./fr-ca.js":121,"./fr-ch":122,"./fr-ch.js":122,"./fr.js":120,"./fy":123,"./fy.js":123,"./gd":124,"./gd.js":124,"./gl":125,"./gl.js":125,"./gom-latn":126,"./gom-latn.js":126,"./gu":127,"./gu.js":127,"./he":128,"./he.js":128,"./hi":129,"./hi.js":129,"./hr":130,"./hr.js":130,"./hu":131,"./hu.js":131,"./hy-am":132,"./hy-am.js":132,"./id":133,"./id.js":133,"./is":134,"./is.js":134,"./it":135,"./it.js":135,"./ja":136,"./ja.js":136,"./jv":137,"./jv.js":137,"./ka":138,"./ka.js":138,"./kk":139,"./kk.js":139,"./km":140,"./km.js":140,"./kn":141,"./kn.js":141,"./ko":142,"./ko.js":142,"./ky":143,"./ky.js":143,"./lb":144,"./lb.js":144,"./lo":145,"./lo.js":145,"./lt":146,"./lt.js":146,"./lv":147,"./lv.js":147,"./me":148,"./me.js":148,"./mi":149,"./mi.js":149,"./mk":150,"./mk.js":150,"./ml":151,"./ml.js":151,"./mn":152,"./mn.js":152,"./mr":153,"./mr.js":153,"./ms":154,"./ms-my":155,"./ms-my.js":155,"./ms.js":154,"./mt":156,"./mt.js":156,"./my":157,"./my.js":157,"./nb":158,"./nb.js":158,"./ne":159,"./ne.js":159,"./nl":160,"./nl-be":161,"./nl-be.js":161,"./nl.js":160,"./nn":162,"./nn.js":162,"./pa-in":163,"./pa-in.js":163,"./pl":164,"./pl.js":164,"./pt":165,"./pt-br":166,"./pt-br.js":166,"./pt.js":165,"./ro":167,"./ro.js":167,"./ru":168,"./ru.js":168,"./sd":169,"./sd.js":169,"./se":170,"./se.js":170,"./si":171,"./si.js":171,"./sk":172,"./sk.js":172,"./sl":173,"./sl.js":173,"./sq":174,"./sq.js":174,"./sr":175,"./sr-cyrl":176,"./sr-cyrl.js":176,"./sr.js":175,"./ss":177,"./ss.js":177,"./sv":178,"./sv.js":178,"./sw":179,"./sw.js":179,"./ta":180,"./ta.js":180,"./te":181,"./te.js":181,"./tet":182,"./tet.js":182,"./tg":183,"./tg.js":183,"./th":184,"./th.js":184,"./tl-ph":185,"./tl-ph.js":185,"./tlh":186,"./tlh.js":186,"./tr":187,"./tr.js":187,"./tzl":188,"./tzl.js":188,"./tzm":189,"./tzm-latn":190,"./tzm-latn.js":190,"./tzm.js":189,"./ug-cn":191,"./ug-cn.js":191,"./uk":192,"./uk.js":192,"./ur":193,"./ur.js":193,"./uz":194,"./uz-latn":195,"./uz-latn.js":195,"./uz.js":194,"./vi":196,"./vi.js":196,"./x-pseudo":197,"./x-pseudo.js":197,"./yo":198,"./yo.js":198,"./zh-cn":199,"./zh-cn.js":199,"./zh-hk":200,"./zh-hk.js":200,"./zh-tw":201,"./zh-tw.js":201};a.keys=function(){return Object.keys(i)},a.resolve=s,t.exports=a,a.id=281},function(t,e){t.exports='\n\t<div class="tab-view" _v-23dffd7c="">\n\t\t<div class="panel-body" _v-23dffd7c="">\n\t\t\t<div class=" columns mt-2" v-if="logs_no > 0" _v-23dffd7c="">\n\t\t\t\t<div class="column col-12 text-right " _v-23dffd7c="">\n\t\t\t\t\t<button class="btn btn-secondary " @click="getLogs(true)" _v-23dffd7c="">\n\t\t\t\t\t\t<i class="fa fa-remove" v-if="!is_loading" _v-23dffd7c=""></i>\n\t\t\t\t\t\t<i class="fa fa-spinner fa-spin" v-else="" _v-23dffd7c=""></i>\n\t\t\t\t\t\t{{labels.clear_btn}}\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="columns" _v-23dffd7c="">\n\t\t\t\t<div class="empty column col-12" v-if="is_loading" _v-23dffd7c="">\n\t\t\t\t\t<div class="empty-icon" _v-23dffd7c="">\n\t\t\t\t\t\t<i class="fa fa-3x fa-spinner fa-spin" _v-23dffd7c=""></i>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="empty column col-12" v-else-if="logs_no === 0" _v-23dffd7c="">\n\t\t\t\t\t<div class="empty-icon" _v-23dffd7c="">\n\t\t\t\t\t\t<i class="fa fa-3x fa-user-circle-o" _v-23dffd7c=""></i>\n\t\t\t\t\t</div>\n\t\t\t\t\t<p class="empty-title h5" _v-23dffd7c="">{{labels.no_logs}}</p>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div class="column col-12 mt-2" v-for=" (data, index) in logs " v-else-if="logs_no > 0" _v-23dffd7c="">\n\t\t\t\t\t<div class="toast log-toast" :class="\'toast-\' + data.type" _v-23dffd7c="">\n\t\t\t\t\t\t<small class="pull-right text-right" _v-23dffd7c="">{{formatDate ( data.time ) }}</small>\n\t\t\t\t\t\t<p _v-23dffd7c="">{{data.message}}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n'},function(t,e,n){var a,s;n(284),a=n(286),s=n(287),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){var a=n(285);"string"==typeof a&&(a=[[t.i,a,""]]);n(2)(a,{});a.locals&&(t.exports=a.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t#rop_core .toast.hidden {\n\t\tdisplay: none;\n\t}\n",""])},function(t,e,n){"use strict";t.exports={name:"toast",computed:{toast:function(){return this.$store.state.toast},toastTypeClass:function(){return{"toast-primary":"info"===this.toast.type,"toast-success":"success"===this.toast.type,"toast-warning":"warning"===this.toast.type,"toast-error":"error"===this.toast.type,hidden:!1===this.toast.show}},iconClass:function(){return{"fa-info-circle":"info"===this.toast.type,"fa-check-circle":"success"===this.toast.type,"fa-exclamation-triangle":"warning"===this.toast.type,"fa-exclamation-circle":"error"===this.toast.type}}},methods:{closeThis:function(){this.toast.show=!1}}}},function(t,e){t.exports='\n\t<div class="toast" :class="toastTypeClass" >\n\t\t<button class="btn btn-clear float-right" @click="closeThis"></button>\n\t\t<b><i class="fa" :class="iconClass"></i> {{ toast.title }}</b><br/>\n\t\t<small>{{ toast.message }}</small>\n\t</div>\n'},function(t,e,n){var a,s;a=n(289),s=n(294),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports.default),s&&(("function"==typeof t.exports?t.exports.options:t.exports).template=s)},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}var s=n(13),i=a(s),r=n(290),o=a(r),d=n(0),u=a(d);n(293),t.exports={name:"cowntdown",props:["current_time"],data:function(){return{now:(0,o.default)((new Date).getTime()/1e3),timediff:"",diff_seconds:0,labels:this.$store.state.labels.general,upsell_link:ropApiSettings.upsell_link}},computed:{toTime:function(){return this.$store.state.cron_status.next_event_on},isOn:function(){return this.$store.state.cron_status.current_status},accounts_no:function(){return(0,i.default)(this.$store.state.activeAccounts).length}},watch:{current_time:function(t){if(this.isOn){var e=u.default.utc(t,"X"),n=u.default.utc(this.toTime,"X"),a=u.default.duration(n.diff(e));this.diff_seconds=a.as("second"),this.diff_seconds>0?this.timediff=a.format("d [days], h [hours], m [minutes], s [seconds]"):(this.$store.dispatch("fetchAJAX",{req:"manage_cron"}),this.timediff=this.labels.sharing_now)}}}}},function(t,e,n){t.exports={default:n(291),__esModule:!0}},function(t,e,n){n(292),t.exports=n(5).Math.trunc},function(t,e,n){var a=n(25);a(a.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var a,s,i;/*! Moment Duration Format v2.2.2
|
17 |
+
* https://github.com/jsmreese/moment-duration-format
|
18 |
+
* Date: 2018-02-16
|
19 |
+
*
|
20 |
+
* Duration format plugin function for the Moment.js library
|
21 |
+
* http://momentjs.com/
|
22 |
+
*
|
23 |
+
* Copyright 2018 John Madhavan-Reese
|
24 |
+
* Released under the MIT license
|
25 |
+
*/
|
26 |
+
!function(r,o){s=[n(0)],a=o,void 0!==(i="function"==typeof a?a.apply(e,s):a)&&(t.exports=i),r&&(r.momentDurationFormatSetup=r.moment?o(r.moment):o)}(this,function(t){function e(t,e){return!(e.length>t.length)&&-1!==t.indexOf(e)}function n(t){for(var e="";t;)e+="0",t-=1;return e}function a(t){for(var e=t.split("").reverse(),n=0,a=!0;a&&n<e.length;)n?"9"===e[n]?e[n]="0":(e[n]=(parseInt(e[n],10)+1).toString(),a=!1):(parseInt(e[n],10)<5&&(a=!1),e[n]="0"),n+=1;return a&&e.push("1"),e.reverse().join("")}function s(t,e,i){var r=e.useToLocaleString,o=e.useGrouping,d=o&&e.grouping.slice(),u=e.maximumSignificantDigits,l=e.minimumIntegerDigits||1,c=e.fractionDigits||0,_=e.groupingSeparator,m=e.decimalSeparator;if(r&&i){var f={minimumIntegerDigits:l,useGrouping:o};if(c&&(f.maximumFractionDigits=c,f.minimumFractionDigits=c),u&&t>0&&(f.maximumSignificantDigits=u),!H){var h=M({},e);h.useGrouping=!1,h.decimalSeparator=".",t=parseFloat(s(t,h),10)}return t.toLocaleString(i,f)}var p;p=u?t.toPrecision(u+1):t.toFixed(c+1);var v,y,g,L=p.split("e");g=L[1]||"",L=L[0].split("."),y=L[1]||"",v=L[0]||"";var b=v.length,Y=y.length,k=b+Y,w=v+y;(u&&k===u+1||!u&&Y===c+1)&&(w=a(w),w.length===k+1&&(b+=1),Y&&(w=w.slice(0,-1)),v=w.slice(0,b),y=w.slice(b)),u&&(y=y.replace(/0*$/,""));var D=parseInt(g,10);D>0?y.length<=D?(y+=n(D-y.length),v+=y,y=""):(v+=y.slice(0,D),y=y.slice(D)):D<0&&(y=n(Math.abs(D)-v.length)+v+y,v="0"),u||(y=y.slice(0,c),y.length<c&&(y+=n(c-y.length)),v.length<l&&(v=n(l-v.length)+v));var T="";if(o){L=v;for(var x;L.length;)d.length&&(x=d.shift()),T&&(T=_+T),T=L.slice(-x)+T,L=L.slice(0,-x)}else T=v;return y&&(T=T+m+y),T}function i(t,e){return t.label.length>e.label.length?-1:t.label.length<e.label.length?1:0}function r(t,e){var n=[];return _(L(e),function(a){if("_durationLabels"===a.slice(0,15)){var s=a.slice(15).toLowerCase();_(L(e[a]),function(i){i.slice(0,1)===t&&n.push({type:s,key:i,label:e[a][i]})})}}),n}function o(t,e,n){return 1===e&&null===n?t:t+t}function d(t){return"[object Array]"===Object.prototype.toString.call(t)}function u(t){return"[object Object]"===Object.prototype.toString.call(t)}function l(t,e){for(var n=t.length;n-=1;)if(e(t[n]))return t[n]}function c(t,e){var n,a=0,s=t&&t.length||0;for("function"!=typeof e&&(n=e,e=function(t){return t===n});a<s;){if(e(t[a]))return t[a];a+=1}}function _(t,e){var n=0,a=t.length;if(t&&a)for(;n<a;){if(!1===e(t[n],n))return;n+=1}}function m(t,e){var n=0,a=t.length,s=[];if(!t||!a)return s;for(;n<a;)s[n]=e(t[n],n),n+=1;return s}function f(t,e){return m(t,function(t){return t[e]})}function h(t){var e=[];return _(t,function(t){t&&e.push(t)}),e}function p(t){var e=[];return _(t,function(t){c(e,t)||e.push(t)}),e}function v(t,e){var n=[];return _(t,function(t){_(e,function(e){t===e&&n.push(t)})}),p(n)}function y(t,e){var n=[];return _(t,function(a,s){if(!e(a))return n=t.slice(s),!1}),n}function g(t,e){return y(t.slice().reverse(),e).reverse()}function M(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function L(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function b(t,e){var n=0,a=t.length;if(!t||!a)return!1;for(;n<a;){if(!0===e(t[n],n))return!0;n+=1}return!1}function Y(t){var e=[];return _(t,function(t){e=e.concat(t)}),e}function k(){try{(0).toLocaleString("i")}catch(t){return"RangeError"===t.name}return!1}function w(){var t,e=[].slice.call(arguments),n={};if(_(e,function(e,a){if(!a){if(!d(e))throw"Expected array as the first argument to durationsFormat.";t=e}return"string"==typeof e||"function"==typeof e?void(n.template=e):"number"==typeof e?void(n.precision=e):void(u(e)&&M(n,e))}),!t||!t.length)return[];n.returnMomentTypes=!0;var a=m(t,function(t){return t.format(n)}),s=v(j,p(f(Y(a),"type"))),i=n.largest;return i&&(s=s.slice(0,i)),n.returnMomentTypes=!1,n.outputTypes=s,m(t,function(t){return t.format(n)})}function D(){var n=[].slice.call(arguments),a=M({},this.format.defaults),o=this.asMilliseconds(),l=this.asMonths();"function"==typeof this.isValid&&!1===this.isValid()&&(o=0,l=0);var Y=o<0,k=t.duration(Math.abs(o),"milliseconds"),w=t.duration(Math.abs(l),"months");_(n,function(t){return"string"==typeof t||"function"==typeof t?void(a.template=t):"number"==typeof t?void(a.precision=t):void(u(t)&&M(a,t))});var D={years:"y",months:"M",weeks:"w",days:"d",hours:"h",minutes:"m",seconds:"s",milliseconds:"S"},T={escape:/\[(.+?)\]/,years:/\*?[Yy]+/,months:/\*?M+/,weeks:/\*?[Ww]+/,days:/\*?[Dd]+/,hours:/\*?[Hh]+/,minutes:/\*?m+/,seconds:/\*?s+/,milliseconds:/\*?S+/,general:/.+?/};a.types=j;var x=function(t){return c(j,function(e){return T[e].test(t)})},H=new RegExp(m(j,function(t){return T[t].source}).join("|"),"g");a.duration=this;var P="function"==typeof a.template?a.template.apply(a):a.template,E=a.outputTypes,$=a.returnMomentTypes,C=a.largest,W=[];E||(d(a.stopTrim)&&(a.stopTrim=a.stopTrim.join("")),a.stopTrim&&_(a.stopTrim.match(H),function(t){var e=x(t);"escape"!==e&&"general"!==e&&W.push(e)}));var F=t.localeData();F||(F={}),_(L(A),function(t){if("function"==typeof A[t])return void(F[t]||(F[t]=A[t]));F["_"+t]||(F["_"+t]=A[t])}),_(L(F._durationTimeTemplates),function(t){P=P.replace("_"+t+"_",F._durationTimeTemplates[t])});var N=a.userLocale||t.locale(),I=a.useLeftUnits,z=a.usePlural,R=a.precision,J=a.forceLength,V=a.useGrouping,U=a.trunc,G=a.useSignificantDigits&&R>0,q=G?a.precision:0,B=q,K=a.minValue,X=!1,Z=a.maxValue,Q=!1,tt=a.useToLocaleString,et=a.groupingSeparator,nt=a.decimalSeparator,at=a.grouping;tt=tt&&S;var st=a.trim;d(st)&&(st=st.join(" ")),null===st&&(C||Z||G)&&(st="all"),null!==st&&!0!==st&&"left"!==st&&"right"!==st||(st="large"),!1===st&&(st="");var it=function(t){return t.test(st)},rt=/large/,ot=/small/,dt=/both/,ut=/mid/,lt=/^all|[^sm]all/,ct=/final/,_t=C>0||b([rt,dt,lt],it),mt=b([ot,dt,lt],it),ft=b([ut,lt],it),ht=b([ct,lt],it),pt=m(P.match(H),function(t,e){var n=x(t);return"*"===t.slice(0,1)&&(t=t.slice(1),"escape"!==n&&"general"!==n&&W.push(n)),{index:e,length:t.length,text:"",token:"escape"===n?t.replace(T.escape,"$1"):t,type:"escape"===n||"general"===n?null:n}}),vt={index:0,length:0,token:"",text:"",type:null},yt=[];I&&pt.reverse(),_(pt,function(t){if(t.type)return(vt.type||vt.text)&&yt.push(vt),void(vt=t);I?vt.text=t.token+vt.text:vt.text+=t.token}),(vt.type||vt.text)&&yt.push(vt),I&&yt.reverse();var gt=v(j,p(h(f(yt,"type"))));if(!gt.length)return f(yt,"text").join("");gt=m(gt,function(t,e){var n,s=e+1===gt.length,i=!e;n="years"===t||"months"===t?w.as(t):k.as(t);var r=Math.floor(n),o=n-r,d=c(yt,function(e){return t===e.type});return i&&Z&&n>Z&&(Q=!0),s&&K&&Math.abs(a.duration.as(t))<K&&(X=!0),i&&null===J&&d.length>1&&(J=!0),k.subtract(r,t),w.subtract(r,t),{rawValue:n,wholeValue:r,decimalValue:s?o:0,isSmallest:s,isLargest:i,type:t,tokenLength:d.length}});var Mt=U?Math.floor:Math.round,Lt=function(t,e){var n=Math.pow(10,e);return Mt(t*n)/n},bt=!1,Yt=!1,kt=function(t,e){var n={useGrouping:V,groupingSeparator:et,decimalSeparator:nt,grouping:at,useToLocaleString:tt};return G&&(q<=0?(t.rawValue=0,t.wholeValue=0,t.decimalValue=0):(n.maximumSignificantDigits=q,t.significantDigits=q)),Q&&!Yt&&(t.isLargest?(t.wholeValue=Z,t.decimalValue=0):(t.wholeValue=0,t.decimalValue=0)),X&&!Yt&&(t.isSmallest?(t.wholeValue=K,t.decimalValue=0):(t.wholeValue=0,t.decimalValue=0)),t.isSmallest||t.significantDigits&&t.significantDigits-t.wholeValue.toString().length<=0?R<0?t.value=Lt(t.wholeValue,R):0===R?t.value=Mt(t.wholeValue+t.decimalValue):G?(t.value=U?Lt(t.rawValue,q-t.wholeValue.toString().length):t.rawValue,t.wholeValue&&(q-=t.wholeValue.toString().length)):(n.fractionDigits=R,t.value=U?t.wholeValue+Lt(t.decimalValue,R):t.wholeValue+t.decimalValue):G&&t.wholeValue?(t.value=Math.round(Lt(t.wholeValue,t.significantDigits-t.wholeValue.toString().length)),q-=t.wholeValue.toString().length):t.value=t.wholeValue,t.tokenLength>1&&(J||bt)&&(n.minimumIntegerDigits=t.tokenLength,Yt&&n.maximumSignificantDigits<t.tokenLength&&delete n.maximumSignificantDigits),!bt&&(t.value>0||""===st||c(W,t.type)||c(E,t.type))&&(bt=!0),t.formattedValue=s(t.value,n,N),n.useGrouping=!1,n.decimalSeparator=".",t.formattedValueEn=s(t.value,n,"en"),2===t.tokenLength&&"milliseconds"===t.type&&(t.formattedValueMS=s(t.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),t};if(gt=m(gt,kt),gt=h(gt),gt.length>1){var wt=function(t){return c(gt,function(e){return e.type===t})};_(O,function(t){var e=wt(t.type);e&&_(t.targets,function(t){var n=wt(t.type);n&&parseInt(e.formattedValueEn,10)===t.value&&(e.rawValue=0,e.wholeValue=0,e.decimalValue=0,n.rawValue+=1,n.wholeValue+=1,n.decimalValue=0,n.formattedValueEn=n.wholeValue.toString(),Yt=!0)})})}return Yt&&(bt=!1,q=B,gt=m(gt,kt),gt=h(gt)),!E||Q&&!a.trim?(_t&&(gt=y(gt,function(t){return!t.isSmallest&&!t.wholeValue&&!c(W,t.type)})),C&>.length&&(gt=gt.slice(0,C)),mt&>.length>1&&(gt=g(gt,function(t){return!t.wholeValue&&!c(W,t.type)&&!t.isLargest})),ft&&(gt=m(gt,function(t,e){return e>0&&e<gt.length-1&&!t.wholeValue?null:t}),gt=h(gt)),!ht||1!==gt.length||gt[0].wholeValue||!U&>[0].isSmallest&>[0].rawValue<K||(gt=[])):(gt=m(gt,function(t){return c(E,function(e){return t.type===e})?t:null}),gt=h(gt)),$?gt:(_(yt,function(t){var n=D[t.type],a=c(gt,function(e){return e.type===t.type});if(n&&a){var s=a.formattedValueEn.split(".");s[0]=parseInt(s[0],10),s[1]?s[1]=parseFloat("0."+s[1],10):s[1]=null;var o=F.durationPluralKey(n,s[0],s[1]),d=r(n,F),u=!1,l={};_(F._durationLabelTypes,function(n){var a=c(d,function(t){return t.type===n.type&&t.key===o});a&&(l[a.type]=a.label,e(t.text,n.string)&&(t.text=t.text.replace(n.string,a.label),u=!0))}),z&&!u&&(d.sort(i),_(d,function(n){if(l[n.type]!==n.label){if(e(t.text,n.label))return t.text=t.text.replace(n.label,l[n.type]),!1}else if(e(t.text,n.label))return!1}))}}),yt=m(yt,function(t){if(!t.type)return t.text;var e=c(gt,function(e){return e.type===t.type});if(!e)return"";var n="";return I&&(n+=t.text),(Y&&Q||!Y&&X)&&(n+="< ",Q=!1,X=!1),(Y&&X||!Y&&Q)&&(n+="> ",Q=!1,X=!1),Y&&(e.value>0||""===st||c(W,e.type)||c(E,e.type))&&(n+="-",Y=!1),"milliseconds"===t.type&&e.formattedValueMS?n+=e.formattedValueMS:n+=e.formattedValue,I||(n+=t.text),n}),yt.join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function T(){var t=this.duration,e=function(e){return t._data[e]},n=c(this.types,e),a=l(this.types,e);switch(n){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(n===a)return"d __";case"weeks":return n===a?"w __":(null===this.trim&&(this.trim="both"),"w __, d __, h __");case"months":if(n===a)return"M __";case"years":return n===a?"y __":(null===this.trim&&(this.trim="both"),"y __, M __, d __");default:return null===this.trim&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function x(t){if(!t)throw"Moment Duration Format init cannot find moment instance.";t.duration.format=w,t.duration.fn.format=D,t.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:T,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},t.updateLocale("en",A)}var S=!1,H=!1,j="escape years months weeks days hours minutes seconds milliseconds general".split(" "),O=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}],A={durationLabelsStandard:{S:"millisecond",SS:"milliseconds",s:"second",ss:"seconds",m:"minute",mm:"minutes",h:"hour",hh:"hours",d:"day",dd:"days",w:"week",ww:"weeks",M:"month",MM:"months",y:"year",yy:"years"},durationLabelsShort:{S:"msec",SS:"msecs",s:"sec",ss:"secs",m:"min",mm:"mins",h:"hr",hh:"hrs",d:"dy",dd:"dys",w:"wk",ww:"wks",M:"mo",MM:"mos",y:"yr",yy:"yrs"},durationTimeTemplates:{HMS:"h:mm:ss",HM:"h:mm",MS:"m:ss"},durationLabelTypes:[{type:"standard",string:"__"},{type:"short",string:"_"}],durationPluralKey:o};return S=function(){var t=!0;return!!(t=t&&k())&&(t=t&&"1"===1..toLocaleString("en",{minimumIntegerDigits:1}),t=t&&"01"===1..toLocaleString("en",{minimumIntegerDigits:2}),!!(t=t&&"001"===1..toLocaleString("en",{minimumIntegerDigits:3}))&&(t=t&&"100"===99.99.toLocaleString("en",{maximumFractionDigits:0,minimumFractionDigits:0}),t=t&&"100.0"===99.99.toLocaleString("en",{maximumFractionDigits:1,minimumFractionDigits:1}),t=t&&"99.99"===99.99.toLocaleString("en",{maximumFractionDigits:2,minimumFractionDigits:2}),!!(t=t&&"99.990"===99.99.toLocaleString("en",{maximumFractionDigits:3,minimumFractionDigits:3}))&&(t=t&&"100"===99.99.toLocaleString("en",{maximumSignificantDigits:1}),t=t&&"100"===99.99.toLocaleString("en",{maximumSignificantDigits:2}),t=t&&"100"===99.99.toLocaleString("en",{maximumSignificantDigits:3}),t=t&&"99.99"===99.99.toLocaleString("en",{maximumSignificantDigits:4}),!!(t=t&&"99.99"===99.99.toLocaleString("en",{maximumSignificantDigits:5}))&&(t=t&&"1,000"===1e3.toLocaleString("en",{useGrouping:!0}),!!(t=t&&"1000"===1e3.toLocaleString("en",{useGrouping:!1}))))))}(),H=S&&function(){return"3.6"===3.55.toLocaleString("en",{useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:1,maximumFractionDigits:1})}(),x(t),x})},function(t,e){t.exports='\n\t<div class="toast toast-success rop-current-time" v-if="isOn && accounts_no > 0">\n\t\t<span v-if="diff_seconds>0"> <b><i\n\t\t\t\tclass="fa fa-fast-forward"></i> {{labels.next_share}}</b> {{labels.in}}</span>\n\t\t<small v-if="timediff !== \'\'">{{timediff}}</small>\n\t</div>\n'},function(t,e){t.exports='\n\t<div>\n\t\t<div class="columns panel-header">\n\t\t\t<div class="column header-logo vertical-align">\n\t\t\t\t<div>\n\t\t\t\t\t<img :src="plugin_logo" class="plugin-logo avatar avatar-lg"/>\n\t\t\t\t\t<h1 class="plugin-title d-inline-block">Revive Old Posts</h1><span class="powered d-inline-block"> {{labels.by}} <a\n\t\t\t\t\t\thref="https://revive.social" target="_blank"><b>Revive.Social</b></a></span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="sidebar sidebar-top card rop-container-start">\n\t\t\t\t<div class="toast rop-current-time" v-if="formatedDate">\n\t\t\t\t\t{{labels.now}}: {{ formatedDate }}\n\t\t\t\t</div>\n\t\t\t\t<countdown :current_time="current_time"/>\n\t\t\t\t<button class="btn btn-sm" :class="btn_class"\n\t\t\t\t :data-tooltip="labels.active_account_warning"\n\t\t\t\t @click="togglePosting()" :disabled="haveAccounts">\n\t\t\t\t\t<i class="fa fa-play" v-if="!is_loading && !start_status"></i>\n\t\t\t\t\t<i class="fa fa-stop" v-else-if="!is_loading && start_status"></i>\n\t\t\t\t\t<i class="fa fa-spinner fa-spin" v-else></i>\n\t\t\t\t\t{{( start_status ? labels.stop : labels.start )}} {{labels.sharing}}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<div class="columns">\n\t\t\t<div class="panel column col-9 col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">\n\t\t\t\t<div class="panel-nav" style="padding: 8px;">\n\t\t\t\t\t<ul class="tab ">\n\t\t\t\t\t\t<li class="tab-item c-hand" v-for="tab in displayTabs"\n\t\t\t\t\t\t :class="{ active: tab.isActive }">\n\t\t\t\t\t\t\t<a :class=" ( tab.slug === \'logs\' && logs_no > 0 ) ? \' badge-logs badge\' : \'\' "\n\t\t\t\t\t\t\t :data-badge="logs_no"\n\t\t\t\t\t\t\t @click="switchTab( tab.slug )">{{ tab.name }}</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t<component :is="page.template" :type="page.view"></component>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class="sidebar column col-3 col-xs-12 col-sm-12 col-md-12 col-lg-12"\n\t\t\t :class="\'rop-license-plan-\'+license">\n\t\t\t\t\n\t\t\t\t<div class="card rop-container-start">\n\t\t\t\t\t<div class="toast rop-current-time" v-if="formatedDate">\n\t\t\t\t\t\t{{labels.now}}: {{ formatedDate }}\n\t\t\t\t\t</div>\n\t\t\t\t\t<countdown :current_time="current_time"/>\n\t\t\t\t\t<button class="btn" :class="btn_class"\n\t\t\t\t\t :data-tooltip="labels.active_account_warning"\n\t\t\t\t\t @click="togglePosting()" :disabled="haveAccounts">\n\t\t\t\t\t\t<i class="fa fa-play" v-if="!is_loading && !start_status"></i>\n\t\t\t\t\t\t<i class="fa fa-stop" v-else-if="!is_loading && start_status"></i>\n\t\t\t\t\t\t<i class="fa fa-spinner fa-spin" v-else></i>\n\t\t\t\t\t\t{{( start_status ? labels.stop : labels.start )}} {{labels.sharing}}\n\t\t\t\t\t</button>\n\t\t\t\t\t<upsell-sidebar></upsell-sidebar>\n\t\t\t\t</div>\n\t\t\t\n\t\t\t</div>\n\t\t</div>\n\t</div>\n'}]);
|
assets/js/build/exclude.min.js
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=296)}([,function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(t,e){function n(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=p[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(c(r.parts[i],e))}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(c(r.parts[i],e));p[r.id]={id:r.id,refs:1,parts:a}}}}function r(t){for(var e=[],n={},r=0;r<t.length;r++){var o=t[r],i=o[0],a=o[1],s=o[2],c=o[3],u={css:a,media:s,sourceMap:c};n[i]?n[i].parts.push(u):e.push(n[i]={id:i,parts:[u]})}return e}function o(t,e){var n=h(),r=y[y.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),y.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function i(t){t.parentNode.removeChild(t);var e=y.indexOf(t);e>=0&&y.splice(e,1)}function a(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function s(t){var e=document.createElement("link");return e.rel="stylesheet",o(t,e),e}function c(t,e){var n,r,o;if(e.singleton){var c=g++;n=m||(m=a(e)),r=u.bind(null,n,c,!1),o=u.bind(null,n,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(e),r=f.bind(null,n),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(e),r=l.bind(null,n),o=function(){i(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}function u(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=_(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function l(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function f(t,e){var n=e.css,r=e.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=t.href;t.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var p={},d=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},v=d(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),h=d(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,g=0,y=[];t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},void 0===e.singleton&&(e.singleton=v()),void 0===e.insertAt&&(e.insertAt="bottom");var o=r(t);return n(o,e),function(t){for(var i=[],a=0;a<o.length;a++){var s=o[a],c=p[s.id];c.refs--,i.push(c)}if(t){n(r(t),e)}for(var a=0;a<i.length;a++){var c=i[a];if(0===c.refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete p[c.id]}}}};var _=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(22)("wks"),o=n(23),i=n(3).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(18),o=n(27);t.exports=n(10)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,n){function r(t){return void 0===t||null===t}function o(t){return void 0!==t&&null!==t}function i(t){return!0===t}function a(t){return!1===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function c(t){return null!==t&&"object"==typeof t}function u(t){return"[object Object]"===ci.call(t)}function l(t){return"[object RegExp]"===ci.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function d(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}function h(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}function m(t,e){return fi.call(t,e)}function g(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function y(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function _(t,e){return t.bind(e)}function b(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function x(t,e){for(var n in e)t[n]=e[n];return t}function w(t){for(var e={},n=0;n<t.length;n++)t[n]&&x(e,t[n]);return e}function $(t,e,n){}function S(t,e){if(t===e)return!0;var n=c(t),r=c(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var o=Array.isArray(t),i=Array.isArray(e);if(o&&i)return t.length===e.length&&t.every(function(t,n){return S(t,e[n])});if(o||i)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every(function(n){return S(t[n],e[n])})}catch(t){return!1}}function A(t,e){for(var n=0;n<t.length;n++)if(S(t[n],e))return n;return-1}function k(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function C(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function O(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function T(t){if(!Si.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}function E(t){return"function"==typeof t&&/native code/.test(t.toString())}function j(t){Vi.target&&Gi.push(Vi.target),Vi.target=t}function P(){Vi.target=Gi.pop()}function L(t){return new Ji(void 0,void 0,void 0,String(t))}function M(t){var e=new Ji(t.tag,t.data,t.children,t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.isCloned=!0,e}function I(t){Zi=t}function N(t,e,n){t.__proto__=e}function R(t,e,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];O(t,i,e[i])}}function D(t,e){if(c(t)&&!(t instanceof Ji)){var n;return m(t,"__ob__")&&t.__ob__ instanceof Yi?n=t.__ob__:Zi&&!Ui()&&(Array.isArray(t)||u(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Yi(t)),e&&n&&n.vmCount++,n}}function U(t,e,n,r,o){var i=new Vi,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get;s||2!==arguments.length||(n=t[e]);var c=a&&a.set,u=!o&&D(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return Vi.target&&(i.depend(),u&&(u.dep.depend(),Array.isArray(e)&&H(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!==e&&r!==r||(c?c.call(t,e):n=e,u=!o&&D(e),i.notify())}})}}function F(t,e,n){if(Array.isArray(t)&&f(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(U(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function q(t,e){if(Array.isArray(t)&&f(e))return void t.splice(e,1);var n=t.__ob__;t._isVue||n&&n.vmCount||m(t,e)&&(delete t[e],n&&n.dep.notify())}function H(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&H(e)}function B(t,e){if(!e)return t;for(var n,r,o,i=Object.keys(e),a=0;a<i.length;a++)n=i[a],r=t[n],o=e[n],m(t,n)?u(r)&&u(o)&&B(r,o):F(t,n,o);return t}function V(t,e,n){return n?function(){var r="function"==typeof e?e.call(n,n):e,o="function"==typeof t?t.call(n,n):t;return r?B(r,o):o}:e?t?function(){return B("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function G(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function J(t,e,n,r){var o=Object.create(t||null);return e?x(o,e):o}function z(t,e){var n=t.props;if(n){var r,o,i,a={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(o=n[r])&&(i=di(o),a[i]={type:null});else if(u(n))for(var s in n)o=n[s],i=di(s),a[i]=u(o)?o:{type:o};t.props=a}}function W(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var o=0;o<n.length;o++)r[n[o]]={from:n[o]};else if(u(n))for(var i in n){var a=n[i];r[i]=u(a)?x({from:i},a):{from:a}}}}function X(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"==typeof r&&(e[n]={bind:r,update:r})}}function K(t,e,n){function r(r){var o=ta[r]||ra;c[r]=o(t[r],e[r],n,r)}"function"==typeof e&&(e=e.options),z(e,n),W(e,n),X(e);var o=e.extends;if(o&&(t=K(t,o,n)),e.mixins)for(var i=0,a=e.mixins.length;i<a;i++)t=K(t,e.mixins[i],n);var s,c={};for(s in t)r(s);for(s in e)m(t,s)||r(s);return c}function Q(t,e,n,r){if("string"==typeof n){var o=t[e];if(m(o,n))return o[n];var i=di(n);if(m(o,i))return o[i];var a=vi(i);if(m(o,a))return o[a];return o[n]||o[i]||o[a]}}function Z(t,e,n,r){var o=e[t],i=!m(n,t),a=n[t],s=nt(Boolean,o.type);if(s>-1)if(i&&!m(o,"default"))a=!1;else if(""===a||a===mi(t)){var c=nt(String,o.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=Y(r,o,t);var u=Zi;I(!0),D(a),I(u)}return a}function Y(t,e,n){if(m(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"==typeof r&&"Function"!==tt(e.type)?r.call(t):r}}function tt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function et(t,e){return tt(t)===tt(e)}function nt(t,e){if(!Array.isArray(e))return et(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(et(e[n],t))return n;return-1}function rt(t,e,n){if(e)for(var r=e;r=r.$parent;){var o=r.$options.errorCaptured;if(o)for(var i=0;i<o.length;i++)try{var a=!1===o[i].call(r,t,e,n);if(a)return}catch(t){ot(t,r,"errorCaptured hook")}}ot(t,e,n)}function ot(t,e,n){if($i.errorHandler)try{return $i.errorHandler.call(null,t,e,n)}catch(t){it(t,null,"config.errorHandler")}it(t,e,n)}function it(t,e,n){if(!ki&&!Ci||"undefined"==typeof console)throw t;console.error(t)}function at(){ia=!1;var t=oa.slice(0);oa.length=0;for(var e=0;e<t.length;e++)t[e]()}function st(t){return t._withTask||(t._withTask=function(){aa=!0;var e=t.apply(null,arguments);return aa=!1,e})}function ct(t,e){var n;if(oa.push(function(){if(t)try{t.call(e)}catch(t){rt(t,e,"nextTick")}else n&&n(e)}),ia||(ia=!0,aa?na():ea()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){n=t})}function ut(t){lt(t,fa),fa.clear()}function lt(t,e){var n,r,o=Array.isArray(t);if(!(!o&&!c(t)||Object.isFrozen(t)||t instanceof Ji)){if(t.__ob__){var i=t.__ob__.dep.id;if(e.has(i))return;e.add(i)}if(o)for(n=t.length;n--;)lt(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)lt(t[r[n]],e)}}function ft(t){function e(){var t=arguments,n=e.fns;if(!Array.isArray(n))return n.apply(null,arguments);for(var r=n.slice(),o=0;o<r.length;o++)r[o].apply(null,t)}return e.fns=t,e}function pt(t,e,n,o,i){var a,s,c,u;for(a in t)s=t[a],c=e[a],u=pa(a),r(s)||(r(c)?(r(s.fns)&&(s=t[a]=ft(s)),n(u.name,s,u.once,u.capture,u.passive,u.params)):s!==c&&(c.fns=s,t[a]=c));for(a in e)r(t[a])&&(u=pa(a),o(u.name,e[a],u.capture))}function dt(t,e,n){function a(){n.apply(this,arguments),h(s.fns,a)}t instanceof Ji&&(t=t.data.hook||(t.data.hook={}));var s,c=t[e];r(c)?s=ft([a]):o(c.fns)&&i(c.merged)?(s=c,s.fns.push(a)):s=ft([c,a]),s.merged=!0,t[e]=s}function vt(t,e,n){var i=e.options.props;if(!r(i)){var a={},s=t.attrs,c=t.props;if(o(s)||o(c))for(var u in i){var l=mi(u);ht(a,c,u,l,!0)||ht(a,s,u,l,!1)}return a}}function ht(t,e,n,r,i){if(o(e)){if(m(e,n))return t[n]=e[n],i||delete e[n],!0;if(m(e,r))return t[n]=e[r],i||delete e[r],!0}return!1}function mt(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function gt(t){return s(t)?[L(t)]:Array.isArray(t)?_t(t):void 0}function yt(t){return o(t)&&o(t.text)&&a(t.isComment)}function _t(t,e){var n,a,c,u,l=[];for(n=0;n<t.length;n++)a=t[n],r(a)||"boolean"==typeof a||(c=l.length-1,u=l[c],Array.isArray(a)?a.length>0&&(a=_t(a,(e||"")+"_"+n),yt(a[0])&&yt(u)&&(l[c]=L(u.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?yt(u)?l[c]=L(u.text+a):""!==a&&l.push(L(a)):yt(a)&&yt(u)?l[c]=L(u.text+a.text):(i(t._isVList)&&o(a.tag)&&r(a.key)&&o(e)&&(a.key="__vlist"+e+"_"+n+"__"),l.push(a)));return l}function bt(t,e){return(t.__esModule||qi&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function xt(t,e,n,r,o){var i=Wi();return i.asyncFactory=t,i.asyncMeta={data:e,context:n,children:r,tag:o},i}function wt(t,e,n){if(i(t.error)&&o(t.errorComp))return t.errorComp;if(o(t.resolved))return t.resolved;if(i(t.loading)&&o(t.loadingComp))return t.loadingComp;if(!o(t.contexts)){var a=t.contexts=[n],s=!0,u=function(){for(var t=0,e=a.length;t<e;t++)a[t].$forceUpdate()},l=k(function(n){t.resolved=bt(n,e),s||u()}),f=k(function(e){o(t.errorComp)&&(t.error=!0,u())}),p=t(l,f);return c(p)&&("function"==typeof p.then?r(t.resolved)&&p.then(l,f):o(p.component)&&"function"==typeof p.component.then&&(p.component.then(l,f),o(p.error)&&(t.errorComp=bt(p.error,e)),o(p.loading)&&(t.loadingComp=bt(p.loading,e),0===p.delay?t.loading=!0:setTimeout(function(){r(t.resolved)&&r(t.error)&&(t.loading=!0,u())},p.delay||200)),o(p.timeout)&&setTimeout(function(){r(t.resolved)&&f(null)},p.timeout))),s=!1,t.loading?t.loadingComp:t.resolved}t.contexts.push(n)}function $t(t){return t.isComment&&t.asyncFactory}function St(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(o(n)&&(o(n.componentOptions)||$t(n)))return n}}function At(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ot(t,e)}function kt(t,e,n){n?la.$once(t,e):la.$on(t,e)}function Ct(t,e){la.$off(t,e)}function Ot(t,e,n){la=t,pt(e,n||{},kt,Ct,t),la=void 0}function Tt(t,e){var n={};if(!t)return n;for(var r=0,o=t.length;r<o;r++){var i=t[r],a=i.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,i.context!==e&&i.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(i);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===i.tag?c.push.apply(c,i.children||[]):c.push(i)}}for(var u in n)n[u].every(Et)&&delete n[u];return n}function Et(t){return t.isComment&&!t.asyncFactory||" "===t.text}function jt(t,e){e=e||{};for(var n=0;n<t.length;n++)Array.isArray(t[n])?jt(t[n],e):e[t[n].key]=t[n].fn;return e}function Pt(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Lt(t,e,n){t.$el=e,t.$options.render||(t.$options.render=Wi),Dt(t,"beforeMount");var r;return r=function(){t._update(t._render(),n)},new xa(t,r,$,null,!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Dt(t,"mounted")),t}function Mt(t,e,n,r,o){var i=!!(o||t.$options._renderChildren||r.data.scopedSlots||t.$scopedSlots!==si);if(t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=o,t.$attrs=r.data.attrs||si,t.$listeners=n||si,e&&t.$options.props){I(!1);for(var a=t._props,s=t.$options._propKeys||[],c=0;c<s.length;c++){var u=s[c],l=t.$options.props;a[u]=Z(u,l,e,t)}I(!0),t.$options.propsData=e}n=n||si;var f=t.$options._parentListeners;t.$options._parentListeners=n,Ot(t,n,f),i&&(t.$slots=Tt(o,r.context),t.$forceUpdate())}function It(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function Nt(t,e){if(e){if(t._directInactive=!1,It(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Nt(t.$children[n]);Dt(t,"activated")}}function Rt(t,e){if(!(e&&(t._directInactive=!0,It(t))||t._inactive)){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Rt(t.$children[n]);Dt(t,"deactivated")}}function Dt(t,e){j();var n=t.$options[e];if(n)for(var r=0,o=n.length;r<o;r++)try{n[r].call(t)}catch(n){rt(n,t,e+" hook")}t._hasHookEvent&&t.$emit("hook:"+e),P()}function Ut(){_a=va.length=ha.length=0,ma={},ga=ya=!1}function Ft(){ya=!0;var t,e;for(va.sort(function(t,e){return t.id-e.id}),_a=0;_a<va.length;_a++)t=va[_a],e=t.id,ma[e]=null,t.run();var n=ha.slice(),r=va.slice();Ut(),Bt(n),qt(r),Fi&&$i.devtools&&Fi.emit("flush")}function qt(t){for(var e=t.length;e--;){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&Dt(r,"updated")}}function Ht(t){t._inactive=!1,ha.push(t)}function Bt(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Nt(t[e],!0)}function Vt(t){var e=t.id;if(null==ma[e]){if(ma[e]=!0,ya){for(var n=va.length-1;n>_a&&va[n].id>t.id;)n--;va.splice(n+1,0,t)}else va.push(t);ga||(ga=!0,ct(Ft))}}function Gt(t,e,n){wa.get=function(){return this[e][n]},wa.set=function(t){this[e][n]=t},Object.defineProperty(t,n,wa)}function Jt(t){t._watchers=[];var e=t.$options;e.props&&zt(t,e.props),e.methods&&Yt(t,e.methods),e.data?Wt(t):D(t._data={},!0),e.computed&&Kt(t,e.computed),e.watch&&e.watch!==Mi&&te(t,e.watch)}function zt(t,e){var n=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[];!t.$parent||I(!1);for(var i in e)!function(i){o.push(i);var a=Z(i,e,n,t);U(r,i,a),i in t||Gt(t,"_props",i)}(i);I(!0)}function Wt(t){var e=t.$options.data;e=t._data="function"==typeof e?Xt(e,t):e||{},u(e)||(e={});for(var n=Object.keys(e),r=t.$options.props,o=(t.$options.methods,n.length);o--;){var i=n[o];r&&m(r,i)||C(i)||Gt(t,"_data",i)}D(e,!0)}function Xt(t,e){j();try{return t.call(e,e)}catch(t){return rt(t,e,"data()"),{}}finally{P()}}function Kt(t,e){var n=t._computedWatchers=Object.create(null),r=Ui();for(var o in e){var i=e[o],a="function"==typeof i?i:i.get;r||(n[o]=new xa(t,a||$,$,$a)),o in t||Qt(t,o,i)}}function Qt(t,e,n){var r=!Ui();"function"==typeof n?(wa.get=r?Zt(e):n,wa.set=$):(wa.get=n.get?r&&!1!==n.cache?Zt(e):n.get:$,wa.set=n.set?n.set:$),Object.defineProperty(t,e,wa)}function Zt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),Vi.target&&e.depend(),e.value}}function Yt(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?$:gi(e[n],t)}function te(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)ee(t,n,r[o]);else ee(t,n,r)}}function ee(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}function ne(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}function re(t){var e=oe(t.$options.inject,t);e&&(I(!1),Object.keys(e).forEach(function(n){U(t,n,e[n])}),I(!0))}function oe(t,e){if(t){for(var n=Object.create(null),r=qi?Reflect.ownKeys(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):Object.keys(t),o=0;o<r.length;o++){for(var i=r[o],a=t[i].from,s=e;s;){if(s._provided&&m(s._provided,a)){n[i]=s._provided[a];break}s=s.$parent}if(!s&&"default"in t[i]){var c=t[i].default;n[i]="function"==typeof c?c.call(e):c}}return n}}function ie(t,e){var n,r,i,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=e(t[r],r);else if("number"==typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(c(t))for(a=Object.keys(t),n=new Array(a.length),r=0,i=a.length;r<i;r++)s=a[r],n[r]=e(t[s],s,r);return o(n)&&(n._isVList=!0),n}function ae(t,e,n,r){var o,i=this.$scopedSlots[t];if(i)n=n||{},r&&(n=x(x({},r),n)),o=i(n)||e;else{var a=this.$slots[t];a&&(a._rendered=!0),o=a||e}var s=n&&n.slot;return s?this.$createElement("template",{slot:s},o):o}function se(t){return Q(this.$options,"filters",t,!0)||_i}function ce(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function ue(t,e,n,r,o){var i=$i.keyCodes[e]||n;return o&&r&&!$i.keyCodes[e]?ce(o,r):i?ce(i,t):r?mi(r)!==e:void 0}function le(t,e,n,r,o){if(n)if(c(n)){Array.isArray(n)&&(n=w(n));var i;for(var a in n)!function(a){if("class"===a||"style"===a||li(a))i=t;else{var s=t.attrs&&t.attrs.type;i=r||$i.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}if(!(a in i)&&(i[a]=n[a],o)){(t.on||(t.on={}))["update:"+a]=function(t){n[a]=t}}}(a)}else;return t}function fe(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e?r:(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),de(r,"__static__"+t,!1),r)}function pe(t,e,n){return de(t,"__once__"+e+(n?"_"+n:""),!0),t}function de(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&ve(t[r],e+"_"+r,n);else ve(t,e,n)}function ve(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function he(t,e){if(e)if(u(e)){var n=t.on=t.on?x({},t.on):{};for(var r in e){var o=n[r],i=e[r];n[r]=o?[].concat(o,i):i}}else;return t}function me(t){t._o=pe,t._n=d,t._s=p,t._l=ie,t._t=ae,t._q=S,t._i=A,t._m=fe,t._f=se,t._k=ue,t._b=le,t._v=L,t._e=Wi,t._u=jt,t._g=he}function ge(t,e,n,r,o){var a,s=o.options;m(r,"_uid")?(a=Object.create(r),a._original=r):(a=r,r=r._original);var c=i(s._compiled),u=!c;this.data=t,this.props=e,this.children=n,this.parent=r,this.listeners=t.on||si,this.injections=oe(s.inject,r),this.slots=function(){return Tt(n,r)},c&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=t.scopedSlots||si),s._scopeId?this._c=function(t,e,n,o){var i=Ae(a,t,e,n,o,u);return i&&!Array.isArray(i)&&(i.fnScopeId=s._scopeId,i.fnContext=r),i}:this._c=function(t,e,n,r){return Ae(a,t,e,n,r,u)}}function ye(t,e,n,r,i){var a=t.options,s={},c=a.props;if(o(c))for(var u in c)s[u]=Z(u,c,e||si);else o(n.attrs)&&be(s,n.attrs),o(n.props)&&be(s,n.props);var l=new ge(n,s,i,r,t),f=a.render.call(null,l._c,l);if(f instanceof Ji)return _e(f,n,l.parent,a);if(Array.isArray(f)){for(var p=gt(f)||[],d=new Array(p.length),v=0;v<p.length;v++)d[v]=_e(p[v],n,l.parent,a);return d}}function _e(t,e,n,r){var o=M(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function be(t,e){for(var n in e)t[di(n)]=e[n]}function xe(t,e,n,a,s){if(!r(t)){var u=n.$options._base;if(c(t)&&(t=u.extend(t)),"function"==typeof t){var l;if(r(t.cid)&&(l=t,void 0===(t=wt(l,u,n))))return xt(l,e,n,a,s);e=e||{},je(t),o(e.model)&&Se(t.options,e);var f=vt(e,t,s);if(i(t.options.functional))return ye(t,f,e,n,a);var p=e.on;if(e.on=e.nativeOn,i(t.options.abstract)){var d=e.slot;e={},d&&(e.slot=d)}$e(e);var v=t.options.name||s;return new Ji("vue-component-"+t.cid+(v?"-"+v:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:f,listeners:p,tag:s,children:a},l)}}}function we(t,e,n,r){var i={_isComponent:!0,parent:e,_parentVnode:t,_parentElm:n||null,_refElm:r||null},a=t.data.inlineTemplate;return o(a)&&(i.render=a.render,i.staticRenderFns=a.staticRenderFns),new t.componentOptions.Ctor(i)}function $e(t){for(var e=t.hook||(t.hook={}),n=0;n<Aa.length;n++){var r=Aa[n];e[r]=Sa[r]}}function Se(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.props||(e.props={}))[n]=e.model.value;var i=e.on||(e.on={});o(i[r])?i[r]=[e.model.callback].concat(i[r]):i[r]=e.model.callback}function Ae(t,e,n,r,o,a){return(Array.isArray(n)||s(n))&&(o=r,r=n,n=void 0),i(a)&&(o=Ca),ke(t,e,n,r,o)}function ke(t,e,n,r,i){if(o(n)&&o(n.__ob__))return Wi();if(o(n)&&o(n.is)&&(e=n.is),!e)return Wi();Array.isArray(r)&&"function"==typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),i===Ca?r=gt(r):i===ka&&(r=mt(r));var a,s;if("string"==typeof e){var c;s=t.$vnode&&t.$vnode.ns||$i.getTagNamespace(e),a=$i.isReservedTag(e)?new Ji($i.parsePlatformTagName(e),n,r,void 0,void 0,t):o(c=Q(t.$options,"components",e))?xe(c,n,t,r,e):new Ji(e,n,r,void 0,void 0,t)}else a=xe(e,n,t,r);return Array.isArray(a)?a:o(a)?(o(s)&&Ce(a,s),o(n)&&Oe(n),a):Wi()}function Ce(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),o(t.children))for(var a=0,s=t.children.length;a<s;a++){var c=t.children[a];o(c.tag)&&(r(c.ns)||i(n)&&"svg"!==c.tag)&&Ce(c,e,n)}}function Oe(t){c(t.style)&&ut(t.style),c(t.class)&&ut(t.class)}function Te(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=Tt(e._renderChildren,r),t.$scopedSlots=si,t._c=function(e,n,r,o){return Ae(t,e,n,r,o,!1)},t.$createElement=function(e,n,r,o){return Ae(t,e,n,r,o,!0)};var o=n&&n.data;U(t,"$attrs",o&&o.attrs||si,null,!0),U(t,"$listeners",e._parentListeners||si,null,!0)}function Ee(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r,n._parentElm=e._parentElm,n._refElm=e._refElm;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function je(t){var e=t.options;if(t.super){var n=je(t.super);if(n!==t.superOptions){t.superOptions=n;var r=Pe(t);r&&x(t.extendOptions,r),e=t.options=K(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function Pe(t){var e,n=t.options,r=t.extendOptions,o=t.sealedOptions;for(var i in n)n[i]!==o[i]&&(e||(e={}),e[i]=Le(n[i],r[i],o[i]));return e}function Le(t,e,n){if(Array.isArray(t)){var r=[];n=Array.isArray(n)?n:[n],e=Array.isArray(e)?e:[e];for(var o=0;o<t.length;o++)(e.indexOf(t[o])>=0||n.indexOf(t[o])<0)&&r.push(t[o]);return r}return t}function Me(t){this._init(t)}function Ie(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=b(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}function Ne(t){t.mixin=function(t){return this.options=K(this.options,t),this}}function Re(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var i=t.name||n.options.name,a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=K(n.options,t),a.super=n,a.options.props&&De(a),a.options.computed&&Ue(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,xi.forEach(function(t){a[t]=n[t]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=x({},a.options),o[r]=a,a}}function De(t){var e=t.options.props;for(var n in e)Gt(t.prototype,"_props",n)}function Ue(t){var e=t.options.computed;for(var n in e)Qt(t.prototype,n,e[n])}function Fe(t){xi.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function qe(t){return t&&(t.Ctor.options.name||t.tag)}function He(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!l(t)&&t.test(e)}function Be(t,e){var n=t.cache,r=t.keys,o=t._vnode;for(var i in n){var a=n[i];if(a){var s=qe(a.componentOptions);s&&!e(s)&&Ve(n,i,r,o)}}}function Ve(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,h(n,e)}function Ge(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Je(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Je(e,n.data));return ze(e.staticClass,e.class)}function Je(t,e){return{staticClass:We(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function ze(t,e){return o(t)||o(e)?We(t,Xe(e)):""}function We(t,e){return t?e?t+" "+e:t:e||""}function Xe(t){return Array.isArray(t)?Ke(t):c(t)?Qe(t):"string"==typeof t?t:""}function Ke(t){for(var e,n="",r=0,i=t.length;r<i;r++)o(e=Xe(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function Qe(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}function Ze(t){return Za(t)?"svg":"math"===t?"math":void 0}function Ye(t){if(!ki)return!0;if(ts(t))return!1;if(t=t.toLowerCase(),null!=es[t])return es[t];var e=document.createElement(t);return t.indexOf("-")>-1?es[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:es[t]=/HTMLUnknownElement/.test(e.toString())}function tn(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function en(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function nn(t,e){return document.createElementNS(Ka[t],e)}function rn(t){return document.createTextNode(t)}function on(t){return document.createComment(t)}function an(t,e,n){t.insertBefore(e,n)}function sn(t,e){t.removeChild(e)}function cn(t,e){t.appendChild(e)}function un(t){return t.parentNode}function ln(t){return t.nextSibling}function fn(t){return t.tagName}function pn(t,e){t.textContent=e}function dn(t,e){t.setAttribute(e,"")}function vn(t,e){var n=t.data.ref;if(o(n)){var r=t.context,i=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?h(a[n],i):a[n]===i&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(i)<0&&a[n].push(i):a[n]=[i]:a[n]=i}}function hn(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&mn(t,e)||i(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function mn(t,e){if("input"!==t.tag)return!0;var n,r=o(n=t.data)&&o(n=n.attrs)&&n.type,i=o(n=e.data)&&o(n=n.attrs)&&n.type;return r===i||ns(r)&&ns(i)}function gn(t,e,n){var r,i,a={};for(r=e;r<=n;++r)i=t[r].key,o(i)&&(a[i]=r);return a}function yn(t,e){(t.data.directives||e.data.directives)&&_n(t,e)}function _n(t,e){var n,r,o,i=t===is,a=e===is,s=bn(t.data.directives,t.context),c=bn(e.data.directives,e.context),u=[],l=[];for(n in c)r=s[n],o=c[n],r?(o.oldValue=r.value,wn(o,"update",e,t),o.def&&o.def.componentUpdated&&l.push(o)):(wn(o,"bind",e,t),o.def&&o.def.inserted&&u.push(o));if(u.length){var f=function(){for(var n=0;n<u.length;n++)wn(u[n],"inserted",e,t)};i?dt(e,"insert",f):f()}if(l.length&&dt(e,"postpatch",function(){for(var n=0;n<l.length;n++)wn(l[n],"componentUpdated",e,t)}),!i)for(n in s)c[n]||wn(s[n],"unbind",t,t,a)}function bn(t,e){var n=Object.create(null);if(!t)return n;var r,o;for(r=0;r<t.length;r++)o=t[r],o.modifiers||(o.modifiers=cs),n[xn(o)]=o,o.def=Q(e.$options,"directives",o.name,!0);return n}function xn(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function wn(t,e,n,r,o){var i=t.def&&t.def[e];if(i)try{i(n.elm,t,n,r,o)}catch(r){rt(r,n.context,"directive "+t.name+" "+e+" hook")}}function $n(t,e){var n=e.componentOptions;if(!(o(n)&&!1===n.Ctor.options.inheritAttrs||r(t.data.attrs)&&r(e.data.attrs))){var i,a,s=e.elm,c=t.data.attrs||{},u=e.data.attrs||{};o(u.__ob__)&&(u=e.data.attrs=x({},u));for(i in u)a=u[i],c[i]!==a&&Sn(s,i,a);(Ei||Pi)&&u.value!==c.value&&Sn(s,"value",u.value);for(i in c)r(u[i])&&(za(i)?s.removeAttributeNS(Ja,Wa(i)):Va(i)||s.removeAttribute(i))}}function Sn(t,e,n){t.tagName.indexOf("-")>-1?An(t,e,n):Ga(e)?Xa(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Va(e)?t.setAttribute(e,Xa(n)||"false"===n?"false":"true"):za(e)?Xa(n)?t.removeAttributeNS(Ja,Wa(e)):t.setAttributeNS(Ja,e,n):An(t,e,n)}function An(t,e,n){if(Xa(n))t.removeAttribute(e);else{if(Ei&&!ji&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}function kn(t,e){var n=e.elm,i=e.data,a=t.data;if(!(r(i.staticClass)&&r(i.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Ge(e),c=n._transitionClasses;o(c)&&(s=We(s,Xe(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}function Cn(t){function e(){(a||(a=[])).push(t.slice(v,o).trim()),v=o+1}var n,r,o,i,a,s=!1,c=!1,u=!1,l=!1,f=0,p=0,d=0,v=0;for(o=0;o<t.length;o++)if(r=n,n=t.charCodeAt(o),s)39===n&&92!==r&&(s=!1);else if(c)34===n&&92!==r&&(c=!1);else if(u)96===n&&92!==r&&(u=!1);else if(l)47===n&&92!==r&&(l=!1);else if(124!==n||124===t.charCodeAt(o+1)||124===t.charCodeAt(o-1)||f||p||d){switch(n){case 34:c=!0;break;case 39:s=!0;break;case 96:u=!0;break;case 40:d++;break;case 41:d--;break;case 91:p++;break;case 93:p--;break;case 123:f++;break;case 125:f--}if(47===n){for(var h=o-1,m=void 0;h>=0&&" "===(m=t.charAt(h));h--);m&&ps.test(m)||(l=!0)}}else void 0===i?(v=o+1,i=t.slice(0,o).trim()):e();if(void 0===i?i=t.slice(0,o).trim():0!==v&&e(),a)for(o=0;o<a.length;o++)i=On(i,a[o]);return i}function On(t,e){var n=e.indexOf("(");if(n<0)return'_f("'+e+'")('+t+")";var r=e.slice(0,n),o=e.slice(n+1);return'_f("'+r+'")('+t+(")"!==o?","+o:o)}function Tn(t){console.error("[Vue compiler]: "+t)}function En(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function jn(t,e,n){(t.props||(t.props=[])).push({name:e,value:n}),t.plain=!1}function Pn(t,e,n){(t.attrs||(t.attrs=[])).push({name:e,value:n}),t.plain=!1}function Ln(t,e,n){t.attrsMap[e]=n,t.attrsList.push({name:e,value:n})}function Mn(t,e,n,r,o,i){(t.directives||(t.directives=[])).push({name:e,rawName:n,value:r,arg:o,modifiers:i}),t.plain=!1}function In(t,e,n,r,o,i){r=r||si,r.capture&&(delete r.capture,e="!"+e),r.once&&(delete r.once,e="~"+e),r.passive&&(delete r.passive,e="&"+e),"click"===e&&(r.right?(e="contextmenu",delete r.right):r.middle&&(e="mouseup"));var a;r.native?(delete r.native,a=t.nativeEvents||(t.nativeEvents={})):a=t.events||(t.events={});var s={value:n.trim()};r!==si&&(s.modifiers=r);var c=a[e];Array.isArray(c)?o?c.unshift(s):c.push(s):a[e]=c?o?[s,c]:[c,s]:s,t.plain=!1}function Nn(t,e,n){var r=Rn(t,":"+e)||Rn(t,"v-bind:"+e);if(null!=r)return Cn(r);if(!1!==n){var o=Rn(t,e);if(null!=o)return JSON.stringify(o)}}function Rn(t,e,n){var r;if(null!=(r=t.attrsMap[e]))for(var o=t.attrsList,i=0,a=o.length;i<a;i++)if(o[i].name===e){o.splice(i,1);break}return n&&delete t.attrsMap[e],r}function Dn(t,e,n){var r=n||{},o=r.number,i=r.trim,a="$$v";i&&(a="(typeof $$v === 'string'? $$v.trim(): $$v)"),o&&(a="_n("+a+")");var s=Un(e,a);t.model={value:"("+e+")",expression:'"'+e+'"',callback:"function ($$v) {"+s+"}"}}function Un(t,e){var n=Fn(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Fn(t){if(t=t.trim(),Pa=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<Pa-1)return Ia=t.lastIndexOf("."),Ia>-1?{exp:t.slice(0,Ia),key:'"'+t.slice(Ia+1)+'"'}:{exp:t,key:null};for(La=t,Ia=Na=Ra=0;!Hn();)Ma=qn(),Bn(Ma)?Gn(Ma):91===Ma&&Vn(Ma);return{exp:t.slice(0,Na),key:t.slice(Na+1,Ra)}}function qn(){return La.charCodeAt(++Ia)}function Hn(){return Ia>=Pa}function Bn(t){return 34===t||39===t}function Vn(t){var e=1;for(Na=Ia;!Hn();)if(t=qn(),Bn(t))Gn(t);else if(91===t&&e++,93===t&&e--,0===e){Ra=Ia;break}}function Gn(t){for(var e=t;!Hn()&&(t=qn())!==e;);}function Jn(t,e,n){Da=n;var r=e.value,o=e.modifiers,i=t.tag,a=t.attrsMap.type;if(t.component)return Dn(t,r,o),!1;if("select"===i)Xn(t,r,o);else if("input"===i&&"checkbox"===a)zn(t,r,o);else if("input"===i&&"radio"===a)Wn(t,r,o);else if("input"===i||"textarea"===i)Kn(t,r,o);else if(!$i.isReservedTag(i))return Dn(t,r,o),!1;return!0}function zn(t,e,n){var r=n&&n.number,o=Nn(t,"value")||"null",i=Nn(t,"true-value")||"true",a=Nn(t,"false-value")||"false";jn(t,"checked","Array.isArray("+e+")?_i("+e+","+o+")>-1"+("true"===i?":("+e+")":":_q("+e+","+i+")")),In(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Un(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Un(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Un(e,"$$c")+"}",null,!0)}function Wn(t,e,n){var r=n&&n.number,o=Nn(t,"value")||"null";o=r?"_n("+o+")":o,jn(t,"checked","_q("+e+","+o+")"),In(t,"change",Un(e,o),null,!0)}function Xn(t,e,n){var r=n&&n.number,o='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})",i="var $$selectedVal = "+o+";";i=i+" "+Un(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),In(t,"change",i,null,!0)}function Kn(t,e,n){var r=t.attrsMap.type,o=n||{},i=o.lazy,a=o.number,s=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?ds:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Un(e,l);c&&(f="if($event.target.composing)return;"+f),jn(t,"value","("+e+")"),In(t,u,f,null,!0),(s||a)&&In(t,"blur","$forceUpdate()")}function Qn(t){if(o(t[ds])){var e=Ei?"change":"input";t[e]=[].concat(t[ds],t[e]||[]),delete t[ds]}o(t[vs])&&(t.change=[].concat(t[vs],t.change||[]),delete t[vs])}function Zn(t,e,n){var r=Ua;return function o(){null!==t.apply(null,arguments)&&tr(e,o,n,r)}}function Yn(t,e,n,r,o){e=st(e),n&&(e=Zn(e,t,r)),Ua.addEventListener(t,e,Ii?{capture:r,passive:o}:r)}function tr(t,e,n,r){(r||Ua).removeEventListener(t,e._withTask||e,n)}function er(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},o=t.data.on||{};Ua=e.elm,Qn(n),pt(n,o,Yn,tr,e.context),Ua=void 0}}function nr(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,i,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};o(c.__ob__)&&(c=e.data.domProps=x({},c));for(n in s)r(c[n])&&(a[n]="");for(n in c){if(i=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n){a._value=i;var u=r(i)?"":String(i);rr(a,u)&&(a.value=u)}else a[n]=i}}}function rr(t,e){return!t.composing&&("OPTION"===t.tagName||or(t,e)||ir(t,e))}function or(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}function ir(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.lazy)return!1;if(r.number)return d(n)!==d(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}function ar(t){var e=sr(t.style);return t.staticStyle?x(t.staticStyle,e):e}function sr(t){return Array.isArray(t)?w(t):"string"==typeof t?gs(t):t}function cr(t,e){var n,r={};if(e)for(var o=t;o.componentInstance;)(o=o.componentInstance._vnode)&&o.data&&(n=ar(o.data))&&x(r,n);(n=ar(t.data))&&x(r,n);for(var i=t;i=i.parent;)i.data&&(n=ar(i.data))&&x(r,n);return r}function ur(t,e){var n=e.data,i=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(i.staticStyle)&&r(i.style))){var a,s,c=e.elm,u=i.staticStyle,l=i.normalizedStyle||i.style||{},f=u||l,p=sr(e.data.style)||{};e.data.normalizedStyle=o(p.__ob__)?x({},p):p;var d=cr(e,!0);for(s in f)r(d[s])&&bs(c,s,"");for(s in d)(a=d[s])!==f[s]&&bs(c,s,null==a?"":a)}}function lr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function fr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function pr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&x(e,Ss(t.name||"v")),x(e,t),e}return"string"==typeof t?Ss(t):void 0}}function dr(t){Ps(function(){Ps(t)})}function vr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),lr(t,e))}function hr(t,e){t._transitionClasses&&h(t._transitionClasses,e),fr(t,e)}function mr(t,e,n){var r=gr(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===ks?Ts:js,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c<a&&u()},i+1),t.addEventListener(s,l)}function gr(t,e){var n,r=window.getComputedStyle(t),o=r[Os+"Delay"].split(", "),i=r[Os+"Duration"].split(", "),a=yr(o,i),s=r[Es+"Delay"].split(", "),c=r[Es+"Duration"].split(", "),u=yr(s,c),l=0,f=0;return e===ks?a>0&&(n=ks,l=a,f=i.length):e===Cs?u>0&&(n=Cs,l=u,f=c.length):(l=Math.max(a,u),n=l>0?a>u?ks:Cs:null,f=n?n===ks?i.length:c.length:0),{type:n,timeout:l,propCount:f,hasTransform:n===ks&&Ls.test(r[Os+"Property"])}}function yr(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return _r(e)+_r(t[n])}))}function _r(t){return 1e3*Number(t.slice(0,-1))}function br(t,e){var n=t.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=pr(t.data.transition);if(!r(i)&&!o(n._enterCb)&&1===n.nodeType){for(var a=i.css,s=i.type,u=i.enterClass,l=i.enterToClass,f=i.enterActiveClass,p=i.appearClass,v=i.appearToClass,h=i.appearActiveClass,m=i.beforeEnter,g=i.enter,y=i.afterEnter,_=i.enterCancelled,b=i.beforeAppear,x=i.appear,w=i.afterAppear,$=i.appearCancelled,S=i.duration,A=da,C=da.$vnode;C&&C.parent;)C=C.parent,A=C.context;var O=!A._isMounted||!t.isRootInsert;if(!O||x||""===x){var T=O&&p?p:u,E=O&&h?h:f,j=O&&v?v:l,P=O?b||m:m,L=O&&"function"==typeof x?x:g,M=O?w||y:y,I=O?$||_:_,N=d(c(S)?S.enter:S),R=!1!==a&&!ji,D=$r(L),U=n._enterCb=k(function(){R&&(hr(n,j),hr(n,E)),U.cancelled?(R&&hr(n,T),I&&I(n)):M&&M(n),n._enterCb=null});t.data.show||dt(t,"insert",function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),L&&L(n,U)}),P&&P(n),R&&(vr(n,T),vr(n,E),dr(function(){hr(n,T),U.cancelled||(vr(n,j),D||(wr(N)?setTimeout(U,N):mr(n,s,U)))})),t.data.show&&(e&&e(),L&&L(n,U)),R||D||U()}}}function xr(t,e){function n(){$.cancelled||(t.data.show||((i.parentNode._pending||(i.parentNode._pending={}))[t.key]=t),v&&v(i),b&&(vr(i,l),vr(i,p),dr(function(){hr(i,l),$.cancelled||(vr(i,f),x||(wr(w)?setTimeout($,w):mr(i,u,$)))})),h&&h(i,$),b||x||$())}var i=t.elm;o(i._enterCb)&&(i._enterCb.cancelled=!0,i._enterCb());var a=pr(t.data.transition);if(r(a)||1!==i.nodeType)return e();if(!o(i._leaveCb)){var s=a.css,u=a.type,l=a.leaveClass,f=a.leaveToClass,p=a.leaveActiveClass,v=a.beforeLeave,h=a.leave,m=a.afterLeave,g=a.leaveCancelled,y=a.delayLeave,_=a.duration,b=!1!==s&&!ji,x=$r(h),w=d(c(_)?_.leave:_),$=i._leaveCb=k(function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[t.key]=null),b&&(hr(i,f),hr(i,p)),$.cancelled?(b&&hr(i,l),g&&g(i)):(e(),m&&m(i)),i._leaveCb=null});y?y(n):n()}}function wr(t){return"number"==typeof t&&!isNaN(t)}function $r(t){if(r(t))return!1;var e=t.fns;return o(e)?$r(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Sr(t,e){!0!==e.data.show&&br(e)}function Ar(t,e,n){kr(t,e,n),(Ei||Pi)&&setTimeout(function(){kr(t,e,n)},0)}function kr(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,c=t.options.length;s<c;s++)if(a=t.options[s],o)i=A(r,Or(a))>-1,a.selected!==i&&(a.selected=i);else if(S(Or(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function Cr(t,e){return e.every(function(e){return!S(e,t)})}function Or(t){return"_value"in t?t._value:t.value}function Tr(t){t.target.composing=!0}function Er(t){t.target.composing&&(t.target.composing=!1,jr(t.target,"input"))}function jr(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Pr(t){return!t.componentInstance||t.data&&t.data.transition?t:Pr(t.componentInstance._vnode)}function Lr(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Lr(St(e.children)):t}function Mr(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var i in o)e[di(i)]=o[i];return e}function Ir(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Nr(t){for(;t=t.parent;)if(t.data.transition)return!0}function Rr(t,e){return e.key===t.key&&e.tag===t.tag}function Dr(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Ur(t){t.data.newPos=t.elm.getBoundingClientRect()}function Fr(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}function qr(t,e){var n=e?Xs(e):zs;if(n.test(t)){for(var r,o,i,a=[],s=[],c=n.lastIndex=0;r=n.exec(t);){o=r.index,o>c&&(s.push(i=t.slice(c,o)),a.push(JSON.stringify(i)));var u=Cn(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=o+r[0].length}return c<t.length&&(s.push(i=t.slice(c)),a.push(JSON.stringify(i))),{expression:a.join("+"),tokens:s}}}function Hr(t,e){var n=(e.warn,Rn(t,"class"));n&&(t.staticClass=JSON.stringify(n));var r=Nn(t,"class",!1);r&&(t.classBinding=r)}function Br(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}function Vr(t,e){var n=(e.warn,Rn(t,"style"));if(n){t.staticStyle=JSON.stringify(gs(n))}var r=Nn(t,"style",!1);r&&(t.styleBinding=r)}function Gr(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}function Jr(t,e){var n=e?Cc:kc;return t.replace(n,function(t){return Ac[t]})}function zr(t,e){function n(e){l+=e,t=t.substring(e)}function r(t,n,r){var o,s;if(null==n&&(n=l),null==r&&(r=l),t&&(s=t.toLowerCase()),t)for(o=a.length-1;o>=0&&a[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=a.length-1;c>=o;c--)e.end&&e.end(a[c].tag,n,r);a.length=o,i=o&&a[o-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,r):"p"===s&&(e.start&&e.start(t,[],!1,n,r),e.end&&e.end(t,n,r))}for(var o,i,a=[],s=e.expectHTML,c=e.isUnaryTag||yi,u=e.canBeLeftOpenTag||yi,l=0;t;){if(o=t,i&&$c(i)){var f=0,p=i.toLowerCase(),d=Sc[p]||(Sc[p]=new RegExp("([\\s\\S]*?)(</"+p+"[^>]*>)","i")),v=t.replace(d,function(t,n,r){return f=r.length,$c(p)||"noscript"===p||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Tc(p,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});l+=t.length-v.length,t=v,r(p,l-f,l)}else{var h=t.indexOf("<");if(0===h){if(uc.test(t)){var m=t.indexOf("--\x3e");if(m>=0){e.shouldKeepComment&&e.comment(t.substring(4,m)),n(m+3);continue}}if(lc.test(t)){var g=t.indexOf("]>");if(g>=0){n(g+2);continue}}var y=t.match(cc);if(y){n(y[0].length);continue}var _=t.match(sc);if(_){var b=l;n(_[0].length),r(_[1],b,l);continue}var x=function(){var e=t.match(ic);if(e){var r={tagName:e[1],attrs:[],start:l};n(e[0].length);for(var o,i;!(o=t.match(ac))&&(i=t.match(nc));)n(i[0].length),r.attrs.push(i);if(o)return r.unarySlash=o[1],n(o[0].length),r.end=l,r}}();if(x){!function(t){var n=t.tagName,o=t.unarySlash;s&&("p"===i&&ec(n)&&r(i),u(n)&&i===n&&r(n));for(var l=c(n)||!!o,f=t.attrs.length,p=new Array(f),d=0;d<f;d++){var v=t.attrs[d];fc&&-1===v[0].indexOf('""')&&(""===v[3]&&delete v[3],""===v[4]&&delete v[4],""===v[5]&&delete v[5]);var h=v[3]||v[4]||v[5]||"",m="a"===n&&"href"===v[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;p[d]={name:v[1],value:Jr(h,m)}}l||(a.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:p}),i=n),e.start&&e.start(n,p,l,t.start,t.end)}(x),Tc(i,t)&&n(1);continue}}var w=void 0,$=void 0,S=void 0;if(h>=0){for($=t.slice(h);!(sc.test($)||ic.test($)||uc.test($)||lc.test($)||(S=$.indexOf("<",1))<0);)h+=S,$=t.slice(h);w=t.substring(0,h),n(h)}h<0&&(w=t,t=""),e.chars&&w&&e.chars(w)}if(t===o){e.chars&&e.chars(t);break}}r()}function Wr(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:vo(e),parent:n,children:[]}}function Xr(t,e){function n(t){t.pre&&(s=!1),gc(t.tag)&&(c=!1);for(var n=0;n<mc.length;n++)mc[n](t,e)}pc=e.warn||Tn,gc=e.isPreTag||yi,yc=e.mustUseProp||yi,_c=e.getTagNamespace||yi,vc=En(e.modules,"transformNode"),hc=En(e.modules,"preTransformNode"),mc=En(e.modules,"postTransformNode"),dc=e.delimiters;var r,o,i=[],a=!1!==e.preserveWhitespace,s=!1,c=!1;return zr(t,{warn:pc,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,start:function(t,a,u){var l=o&&o.ns||_c(t);Ei&&"svg"===l&&(a=go(a));var f=Wr(t,a,o);l&&(f.ns=l),mo(f)&&!Ui()&&(f.forbidden=!0);for(var p=0;p<hc.length;p++)f=hc[p](f,e)||f;if(s||(Kr(f),f.pre&&(s=!0)),gc(f.tag)&&(c=!0),s?Qr(f):f.processed||(eo(f),ro(f),so(f),Zr(f,e)),r?i.length||r.if&&(f.elseif||f.else)&&ao(r,{exp:f.elseif,block:f}):r=f,o&&!f.forbidden)if(f.elseif||f.else)oo(f,o);else if(f.slotScope){o.plain=!1;var d=f.slotTarget||'"default"';(o.scopedSlots||(o.scopedSlots={}))[d]=f}else o.children.push(f),f.parent=o;u?n(f):(o=f,i.push(f))},end:function(){var t=i[i.length-1],e=t.children[t.children.length-1];e&&3===e.type&&" "===e.text&&!c&&t.children.pop(),i.length-=1,o=i[i.length-1],n(t)},chars:function(t){if(o&&(!Ei||"textarea"!==o.tag||o.attrsMap.placeholder!==t)){var e=o.children;if(t=c||t.trim()?ho(o)?t:Dc(t):a&&e.length?" ":""){var n;!s&&" "!==t&&(n=qr(t,dc))?e.push({type:2,expression:n.expression,tokens:n.tokens,text:t}):" "===t&&e.length&&" "===e[e.length-1].text||e.push({type:3,text:t})}}},comment:function(t){o.children.push({type:3,text:t,isComment:!0})}}),r}function Kr(t){null!=Rn(t,"v-pre")&&(t.pre=!0)}function Qr(t){var e=t.attrsList.length;if(e)for(var n=t.attrs=new Array(e),r=0;r<e;r++)n[r]={name:t.attrsList[r].name,value:JSON.stringify(t.attrsList[r].value)};else t.pre||(t.plain=!0)}function Zr(t,e){Yr(t),t.plain=!t.key&&!t.attrsList.length,to(t),co(t),uo(t);for(var n=0;n<vc.length;n++)t=vc[n](t,e)||t;lo(t)}function Yr(t){var e=Nn(t,"key");e&&(t.key=e)}function to(t){var e=Nn(t,"ref");e&&(t.ref=e,t.refInFor=fo(t))}function eo(t){var e;if(e=Rn(t,"v-for")){var n=no(e);n&&x(t,n)}}function no(t){var e=t.match(Pc);if(e){var n={};n.for=e[2].trim();var r=e[1].trim().replace(Mc,""),o=r.match(Lc);return o?(n.alias=r.replace(Lc,""),n.iterator1=o[1].trim(),o[2]&&(n.iterator2=o[2].trim())):n.alias=r,n}}function ro(t){var e=Rn(t,"v-if");if(e)t.if=e,ao(t,{exp:e,block:t});else{null!=Rn(t,"v-else")&&(t.else=!0);var n=Rn(t,"v-else-if");n&&(t.elseif=n)}}function oo(t,e){var n=io(e.children);n&&n.if&&ao(n,{exp:t.elseif,block:t})}function io(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}function ao(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function so(t){null!=Rn(t,"v-once")&&(t.once=!0)}function co(t){if("slot"===t.tag)t.slotName=Nn(t,"name");else{var e;"template"===t.tag?(e=Rn(t,"scope"),t.slotScope=e||Rn(t,"slot-scope")):(e=Rn(t,"slot-scope"))&&(t.slotScope=e);var n=Nn(t,"slot");n&&(t.slotTarget='""'===n?'"default"':n,"template"===t.tag||t.slotScope||Pn(t,"slot",n))}}function uo(t){var e;(e=Nn(t,"is"))&&(t.component=e),null!=Rn(t,"inline-template")&&(t.inlineTemplate=!0)}function lo(t){var e,n,r,o,i,a,s,c=t.attrsList;for(e=0,n=c.length;e<n;e++)if(r=o=c[e].name,i=c[e].value,jc.test(r))if(t.hasBindings=!0,a=po(r),a&&(r=r.replace(Rc,"")),Nc.test(r))r=r.replace(Nc,""),i=Cn(i),s=!1,a&&(a.prop&&(s=!0,"innerHtml"===(r=di(r))&&(r="innerHTML")),a.camel&&(r=di(r)),a.sync&&In(t,"update:"+di(r),Un(i,"$event"))),s||!t.component&&yc(t.tag,t.attrsMap.type,r)?jn(t,r,i):Pn(t,r,i);else if(Ec.test(r))r=r.replace(Ec,""),In(t,r,i,a,!1,pc);else{r=r.replace(jc,"");var u=r.match(Ic),l=u&&u[1];l&&(r=r.slice(0,-(l.length+1))),Mn(t,r,o,i,l,a)}else{Pn(t,r,JSON.stringify(i)),!t.component&&"muted"===r&&yc(t.tag,t.attrsMap.type,r)&&jn(t,r,"true")}}function fo(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}function po(t){var e=t.match(Rc);if(e){var n={};return e.forEach(function(t){n[t.slice(1)]=!0}),n}}function vo(t){for(var e={},n=0,r=t.length;n<r;n++)e[t[n].name]=t[n].value;return e}function ho(t){return"script"===t.tag||"style"===t.tag}function mo(t){return"style"===t.tag||"script"===t.tag&&(!t.attrsMap.type||"text/javascript"===t.attrsMap.type)}function go(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];Uc.test(r.name)||(r.name=r.name.replace(Fc,""),e.push(r))}return e}function yo(t,e){if("input"===t.tag){var n=t.attrsMap;if(!n["v-model"])return;var r;if((n[":type"]||n["v-bind:type"])&&(r=Nn(t,"type")),n.type||r||!n["v-bind"]||(r="("+n["v-bind"]+").type"),r){var o=Rn(t,"v-if",!0),i=o?"&&("+o+")":"",a=null!=Rn(t,"v-else",!0),s=Rn(t,"v-else-if",!0),c=_o(t);eo(c),Ln(c,"type","checkbox"),Zr(c,e),c.processed=!0,c.if="("+r+")==='checkbox'"+i,ao(c,{exp:c.if,block:c});var u=_o(t);Rn(u,"v-for",!0),Ln(u,"type","radio"),Zr(u,e),ao(c,{exp:"("+r+")==='radio'"+i,block:u});var l=_o(t);return Rn(l,"v-for",!0),Ln(l,":type",r),Zr(l,e),ao(c,{exp:o,block:l}),a?c.else=!0:s&&(c.elseif=s),c}}}function _o(t){return Wr(t.tag,t.attrsList.slice(),t.parent)}function bo(t,e){e.value&&jn(t,"textContent","_s("+e.value+")")}function xo(t,e){e.value&&jn(t,"innerHTML","_s("+e.value+")")}function wo(t,e){t&&(bc=Gc(e.staticKeys||""),xc=e.isReservedTag||yi,So(t),Ao(t,!1))}function $o(t){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(t?","+t:""))}function So(t){if(t.static=ko(t),1===t.type){if(!xc(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var e=0,n=t.children.length;e<n;e++){var r=t.children[e];So(r),r.static||(t.static=!1)}if(t.ifConditions)for(var o=1,i=t.ifConditions.length;o<i;o++){var a=t.ifConditions[o].block;So(a),a.static||(t.static=!1)}}}function Ao(t,e){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=e),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var n=0,r=t.children.length;n<r;n++)Ao(t.children[n],e||!!t.for);if(t.ifConditions)for(var o=1,i=t.ifConditions.length;o<i;o++)Ao(t.ifConditions[o].block,e)}}function ko(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t.if||t.for||ui(t.tag)||!xc(t.tag)||Co(t)||!Object.keys(t).every(bc))))}function Co(t){for(;t.parent;){if(t=t.parent,"template"!==t.tag)return!1;if(t.for)return!0}return!1}function Oo(t,e,n){var r=e?"nativeOn:{":"on:{";for(var o in t)r+='"'+o+'":'+To(o,t[o])+",";return r.slice(0,-1)+"}"}function To(t,e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return To(t,e)}).join(",")+"]";var n=zc.test(e.value),r=Jc.test(e.value);if(e.modifiers){var o="",i="",a=[];for(var s in e.modifiers)if(Qc[s])i+=Qc[s],Wc[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;i+=Kc(["ctrl","shift","alt","meta"].filter(function(t){return!c[t]}).map(function(t){return"$event."+t+"Key"}).join("||"))}else a.push(s);a.length&&(o+=Eo(a)),i&&(o+=i);return"function($event){"+o+(n?"return "+e.value+"($event)":r?"return ("+e.value+")($event)":e.value)+"}"}return n||r?e.value:"function($event){"+e.value+"}"}function Eo(t){return"if(!('button' in $event)&&"+t.map(jo).join("&&")+")return null;"}function jo(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=Wc[t],r=Xc[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}function Po(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}}function Lo(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}}function Mo(t,e){var n=new Yc(e);return{render:"with(this){return "+(t?Io(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Io(t,e){if(t.staticRoot&&!t.staticProcessed)return No(t,e);if(t.once&&!t.onceProcessed)return Ro(t,e);if(t.for&&!t.forProcessed)return Fo(t,e);if(t.if&&!t.ifProcessed)return Do(t,e);if("template"!==t.tag||t.slotTarget){if("slot"===t.tag)return Yo(t,e);var n;if(t.component)n=ti(t.component,t,e);else{var r=t.plain?void 0:qo(t,e),o=t.inlineTemplate?null:zo(t,e,!0);n="_c('"+t.tag+"'"+(r?","+r:"")+(o?","+o:"")+")"}for(var i=0;i<e.transforms.length;i++)n=e.transforms[i](t,n);return n}return zo(t,e)||"void 0"}function No(t,e){return t.staticProcessed=!0,e.staticRenderFns.push("with(this){return "+Io(t,e)+"}"),"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function Ro(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return Do(t,e);if(t.staticInFor){for(var n="",r=t.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+Io(t,e)+","+e.onceId+++","+n+")":Io(t,e)}return No(t,e)}function Do(t,e,n,r){return t.ifProcessed=!0,Uo(t.ifConditions.slice(),e,n,r)}function Uo(t,e,n,r){function o(t){return n?n(t,e):t.once?Ro(t,e):Io(t,e)}if(!t.length)return r||"_e()";var i=t.shift();return i.exp?"("+i.exp+")?"+o(i.block)+":"+Uo(t,e,n,r):""+o(i.block)}function Fo(t,e,n,r){var o=t.for,i=t.alias,a=t.iterator1?","+t.iterator1:"",s=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,(r||"_l")+"(("+o+"),function("+i+a+s+"){return "+(n||Io)(t,e)+"})"}function qo(t,e){var n="{",r=Ho(t,e);r&&(n+=r+","),t.key&&(n+="key:"+t.key+","),t.ref&&(n+="ref:"+t.ref+","),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'+t.tag+'",');for(var o=0;o<e.dataGenFns.length;o++)n+=e.dataGenFns[o](t);if(t.attrs&&(n+="attrs:{"+ei(t.attrs)+"},"),t.props&&(n+="domProps:{"+ei(t.props)+"},"),t.events&&(n+=Oo(t.events,!1,e.warn)+","),t.nativeEvents&&(n+=Oo(t.nativeEvents,!0,e.warn)+","),t.slotTarget&&!t.slotScope&&(n+="slot:"+t.slotTarget+","),t.scopedSlots&&(n+=Vo(t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var i=Bo(t,e);i&&(n+=i+",")}return n=n.replace(/,$/,"")+"}",t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Ho(t,e){var n=t.directives;if(n){var r,o,i,a,s="directives:[",c=!1;for(r=0,o=n.length;r<o;r++){i=n[r],a=!0;var u=e.directives[i.name];u&&(a=!!u(t,i,e.warn)),a&&(c=!0,s+='{name:"'+i.name+'",rawName:"'+i.rawName+'"'+(i.value?",value:("+i.value+"),expression:"+JSON.stringify(i.value):"")+(i.arg?',arg:"'+i.arg+'"':"")+(i.modifiers?",modifiers:"+JSON.stringify(i.modifiers):"")+"},")}return c?s.slice(0,-1)+"]":void 0}}function Bo(t,e){var n=t.children[0];if(1===n.type){var r=Mo(n,e.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}function Vo(t,e){return"scopedSlots:_u(["+Object.keys(t).map(function(n){return Go(n,t[n],e)}).join(",")+"])"}function Go(t,e,n){return e.for&&!e.forProcessed?Jo(t,e,n):"{key:"+t+",fn:function("+String(e.slotScope)+"){return "+("template"===e.tag?e.if?e.if+"?"+(zo(e,n)||"undefined")+":undefined":zo(e,n)||"undefined":Io(e,n))+"}}"}function Jo(t,e,n){var r=e.for,o=e.alias,i=e.iterator1?","+e.iterator1:"",a=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,"_l(("+r+"),function("+o+i+a+"){return "+Go(t,e,n)+"})"}function zo(t,e,n,r,o){var i=t.children;if(i.length){var a=i[0];if(1===i.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag)return(r||Io)(a,e);var s=n?Wo(i,e.maybeComponent):0,c=o||Ko;return"["+i.map(function(t){return c(t,e)}).join(",")+"]"+(s?","+s:"")}}function Wo(t,e){for(var n=0,r=0;r<t.length;r++){var o=t[r];if(1===o.type){if(Xo(o)||o.ifConditions&&o.ifConditions.some(function(t){return Xo(t.block)})){n=2;break}(e(o)||o.ifConditions&&o.ifConditions.some(function(t){return e(t.block)}))&&(n=1)}}return n}function Xo(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function Ko(t,e){return 1===t.type?Io(t,e):3===t.type&&t.isComment?Zo(t):Qo(t)}function Qo(t){return"_v("+(2===t.type?t.expression:ni(JSON.stringify(t.text)))+")"}function Zo(t){return"_e("+JSON.stringify(t.text)+")"}function Yo(t,e){var n=t.slotName||'"default"',r=zo(t,e),o="_t("+n+(r?","+r:""),i=t.attrs&&"{"+t.attrs.map(function(t){return di(t.name)+":"+t.value}).join(",")+"}",a=t.attrsMap["v-bind"];return!i&&!a||r||(o+=",null"),i&&(o+=","+i),a&&(o+=(i?"":",null")+","+a),o+")"}function ti(t,e,n){var r=e.inlineTemplate?null:zo(e,n,!0);return"_c("+t+","+qo(e,n)+(r?","+r:"")+")"}function ei(t){for(var e="",n=0;n<t.length;n++){var r=t[n];e+='"'+r.name+'":'+ni(r.value)+","}return e.slice(0,-1)}function ni(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function ri(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),$}}function oi(t){var e=Object.create(null);return function(n,r,o){r=x({},r);r.warn;delete r.warn;var i=r.delimiters?String(r.delimiters)+n:n;if(e[i])return e[i];var a=t(n,r),s={},c=[];return s.render=ri(a.render,c),s.staticRenderFns=a.staticRenderFns.map(function(t){return ri(t,c)}),e[i]=s}}function ii(t){return wc=wc||document.createElement("div"),wc.innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',wc.innerHTML.indexOf(" ")>0}function ai(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}/*!
|
2 |
+
* Vue.js v2.5.16
|
3 |
+
* (c) 2014-2018 Evan You
|
4 |
+
* Released under the MIT License.
|
5 |
+
*/
|
6 |
+
var si=Object.freeze({}),ci=Object.prototype.toString,ui=v("slot,component",!0),li=v("key,ref,slot,slot-scope,is"),fi=Object.prototype.hasOwnProperty,pi=/-(\w)/g,di=g(function(t){return t.replace(pi,function(t,e){return e?e.toUpperCase():""})}),vi=g(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),hi=/\B([A-Z])/g,mi=g(function(t){return t.replace(hi,"-$1").toLowerCase()}),gi=Function.prototype.bind?_:y,yi=function(t,e,n){return!1},_i=function(t){return t},bi="data-server-rendered",xi=["component","directive","filter"],wi=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],$i={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:yi,isReservedAttr:yi,isUnknownElement:yi,getTagNamespace:$,parsePlatformTagName:_i,mustUseProp:yi,_lifecycleHooks:wi},Si=/[^\w.$]/,Ai="__proto__"in{},ki="undefined"!=typeof window,Ci="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,Oi=Ci&&WXEnvironment.platform.toLowerCase(),Ti=ki&&window.navigator.userAgent.toLowerCase(),Ei=Ti&&/msie|trident/.test(Ti),ji=Ti&&Ti.indexOf("msie 9.0")>0,Pi=Ti&&Ti.indexOf("edge/")>0,Li=(Ti&&Ti.indexOf("android"),Ti&&/iphone|ipad|ipod|ios/.test(Ti)||"ios"===Oi),Mi=(Ti&&/chrome\/\d+/.test(Ti),{}.watch),Ii=!1;if(ki)try{var Ni={};Object.defineProperty(Ni,"passive",{get:function(){Ii=!0}}),window.addEventListener("test-passive",null,Ni)}catch(t){}var Ri,Di,Ui=function(){return void 0===Ri&&(Ri=!ki&&!Ci&&void 0!==t&&"server"===t.process.env.VUE_ENV),Ri},Fi=ki&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,qi="undefined"!=typeof Symbol&&E(Symbol)&&"undefined"!=typeof Reflect&&E(Reflect.ownKeys);Di="undefined"!=typeof Set&&E(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var Hi=$,Bi=0,Vi=function(){this.id=Bi++,this.subs=[]};Vi.prototype.addSub=function(t){this.subs.push(t)},Vi.prototype.removeSub=function(t){h(this.subs,t)},Vi.prototype.depend=function(){Vi.target&&Vi.target.addDep(this)},Vi.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},Vi.target=null;var Gi=[],Ji=function(t,e,n,r,o,i,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},zi={child:{configurable:!0}};zi.child.get=function(){return this.componentInstance},Object.defineProperties(Ji.prototype,zi);var Wi=function(t){void 0===t&&(t="");var e=new Ji;return e.text=t,e.isComment=!0,e},Xi=Array.prototype,Ki=Object.create(Xi);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=Xi[t];O(Ki,t,function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var o,i=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":o=n;break;case"splice":o=n.slice(2)}return o&&a.observeArray(o),a.dep.notify(),i})});var Qi=Object.getOwnPropertyNames(Ki),Zi=!0,Yi=function(t){if(this.value=t,this.dep=new Vi,this.vmCount=0,O(t,"__ob__",this),Array.isArray(t)){(Ai?N:R)(t,Ki,Qi),this.observeArray(t)}else this.walk(t)};Yi.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)U(t,e[n])},Yi.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)D(t[e])};var ta=$i.optionMergeStrategies;ta.data=function(t,e,n){return n?V(t,e,n):e&&"function"!=typeof e?t:V(t,e)},wi.forEach(function(t){ta[t]=G}),xi.forEach(function(t){ta[t+"s"]=J}),ta.watch=function(t,e,n,r){if(t===Mi&&(t=void 0),e===Mi&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var o={};x(o,t);for(var i in e){var a=o[i],s=e[i];a&&!Array.isArray(a)&&(a=[a]),o[i]=a?a.concat(s):Array.isArray(s)?s:[s]}return o},ta.props=ta.methods=ta.inject=ta.computed=function(t,e,n,r){if(!t)return e;var o=Object.create(null);return x(o,t),e&&x(o,e),o},ta.provide=V;var ea,na,ra=function(t,e){return void 0===e?t:e},oa=[],ia=!1,aa=!1;if(void 0!==n&&E(n))na=function(){n(at)};else if("undefined"==typeof MessageChannel||!E(MessageChannel)&&"[object MessageChannelConstructor]"!==MessageChannel.toString())na=function(){setTimeout(at,0)};else{var sa=new MessageChannel,ca=sa.port2;sa.port1.onmessage=at,na=function(){ca.postMessage(1)}}if("undefined"!=typeof Promise&&E(Promise)){var ua=Promise.resolve();ea=function(){ua.then(at),Li&&setTimeout($)}}else ea=na;var la,fa=new Di,pa=g(function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}}),da=null,va=[],ha=[],ma={},ga=!1,ya=!1,_a=0,ba=0,xa=function(t,e,n,r,o){this.vm=t,o&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ba,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Di,this.newDepIds=new Di,this.expression="","function"==typeof e?this.getter=e:(this.getter=T(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};xa.prototype.get=function(){j(this);var t,e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;rt(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ut(t),P(),this.cleanupDeps()}return t},xa.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},xa.prototype.cleanupDeps=function(){for(var t=this,e=this.deps.length;e--;){var n=t.deps[e];t.newDepIds.has(n.id)||n.removeSub(t)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},xa.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Vt(this)},xa.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){rt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},xa.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},xa.prototype.depend=function(){for(var t=this,e=this.deps.length;e--;)t.deps[e].depend()},xa.prototype.teardown=function(){var t=this;if(this.active){this.vm._isBeingDestroyed||h(this.vm._watchers,this);for(var e=this.deps.length;e--;)t.deps[e].removeSub(t);this.active=!1}};var wa={enumerable:!0,configurable:!0,get:$,set:$},$a={lazy:!0};me(ge.prototype);var Sa={init:function(t,e,n,r){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var o=t;Sa.prepatch(o,o)}else{(t.componentInstance=we(t,da,n,r)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;Mt(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,Dt(n,"mounted")),t.data.keepAlive&&(e._isMounted?Ht(n):Nt(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Rt(e,!0):e.$destroy())}},Aa=Object.keys(Sa),ka=1,Ca=2,Oa=0;!function(t){t.prototype._init=function(t){var e=this;e._uid=Oa++,e._isVue=!0,t&&t._isComponent?Ee(e,t):e.$options=K(je(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Pt(e),At(e),Te(e),Dt(e,"beforeCreate"),re(e),Jt(e),ne(e),Dt(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(Me),function(t){var e={};e.get=function(){return this._data};var n={};n.get=function(){return this._props},Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=F,t.prototype.$delete=q,t.prototype.$watch=function(t,e,n){var r=this;if(u(e))return ee(r,t,e,n);n=n||{},n.user=!0;var o=new xa(r,t,e,n);return n.immediate&&e.call(r,o.value),function(){o.teardown()}}}(Me),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this,o=this;if(Array.isArray(t))for(var i=0,a=t.length;i<a;i++)r.$on(t[i],n);else(o._events[t]||(o._events[t]=[])).push(n),e.test(t)&&(o._hasHookEvent=!0);return o},t.prototype.$once=function(t,e){function n(){r.$off(t,n),e.apply(r,arguments)}var r=this;return n.fn=e,r.$on(t,n),r},t.prototype.$off=function(t,e){var n=this,r=this;if(!arguments.length)return r._events=Object.create(null),r;if(Array.isArray(t)){for(var o=0,i=t.length;o<i;o++)n.$off(t[o],e);return r}var a=r._events[t];if(!a)return r;if(!e)return r._events[t]=null,r;if(e)for(var s,c=a.length;c--;)if((s=a[c])===e||s.fn===e){a.splice(c,1);break}return r},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?b(n):n;for(var r=b(arguments,1),o=0,i=n.length;o<i;o++)try{n[o].apply(e,r)}catch(n){rt(n,e,'event handler for "'+t+'"')}}return e}}(Me),function(t){t.prototype._update=function(t,e){var n=this;n._isMounted&&Dt(n,"beforeUpdate");var r=n.$el,o=n._vnode,i=da;da=n,n._vnode=t,o?n.$el=n.__patch__(o,t):(n.$el=n.__patch__(n.$el,t,e,!1,n.$options._parentElm,n.$options._refElm),n.$options._parentElm=n.$options._refElm=null),da=i,r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Dt(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||h(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Dt(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(Me),function(t){me(t.prototype),t.prototype.$nextTick=function(t){return ct(t,this)},t.prototype._render=function(){var t=this,e=t.$options,n=e.render,r=e._parentVnode;r&&(t.$scopedSlots=r.data.scopedSlots||si),t.$vnode=r;var o;try{o=n.call(t._renderProxy,t.$createElement)}catch(e){rt(e,t,"render"),o=t._vnode}return o instanceof Ji||(o=Wi()),o.parent=r,o}}(Me);var Ta=[String,RegExp,Array],Ea={name:"keep-alive",abstract:!0,props:{include:Ta,exclude:Ta,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){var t=this;for(var e in t.cache)Ve(t.cache,e,t.keys)},mounted:function(){var t=this;this.$watch("include",function(e){Be(t,function(t){return He(e,t)})}),this.$watch("exclude",function(e){Be(t,function(t){return!He(e,t)})})},render:function(){var t=this.$slots.default,e=St(t),n=e&&e.componentOptions;if(n){var r=qe(n),o=this,i=o.include,a=o.exclude;if(i&&(!r||!He(i,r))||a&&r&&He(a,r))return e;var s=this,c=s.cache,u=s.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;c[l]?(e.componentInstance=c[l].componentInstance,h(u,l),u.push(l)):(c[l]=e,u.push(l),this.max&&u.length>parseInt(this.max)&&Ve(c,u[0],u,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},ja={KeepAlive:Ea};!function(t){var e={};e.get=function(){return $i},Object.defineProperty(t,"config",e),t.util={warn:Hi,extend:x,mergeOptions:K,defineReactive:U},t.set=F,t.delete=q,t.nextTick=ct,t.options=Object.create(null),xi.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,x(t.options.components,ja),Ie(t),Ne(t),Re(t),Fe(t)}(Me),Object.defineProperty(Me.prototype,"$isServer",{get:Ui}),Object.defineProperty(Me.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Me,"FunctionalRenderContext",{value:ge}),Me.version="2.5.16";var Pa,La,Ma,Ia,Na,Ra,Da,Ua,Fa,qa=v("style,class"),Ha=v("input,textarea,option,select,progress"),Ba=function(t,e,n){return"value"===n&&Ha(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Va=v("contenteditable,draggable,spellcheck"),Ga=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Ja="http://www.w3.org/1999/xlink",za=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Wa=function(t){return za(t)?t.slice(6,t.length):""},Xa=function(t){return null==t||!1===t},Ka={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Qa=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Za=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Ya=function(t){return"pre"===t},ts=function(t){return Qa(t)||Za(t)},es=Object.create(null),ns=v("text,number,password,search,email,tel,url"),rs=Object.freeze({createElement:en,createElementNS:nn,createTextNode:rn,createComment:on,insertBefore:an,removeChild:sn,appendChild:cn,parentNode:un,nextSibling:ln,tagName:fn,setTextContent:pn,setStyleScope:dn}),os={create:function(t,e){vn(e)},update:function(t,e){t.data.ref!==e.data.ref&&(vn(t,!0),vn(e))},destroy:function(t){vn(t,!0)}},is=new Ji("",{},[]),as=["create","activate","update","remove","destroy"],ss={create:yn,update:yn,destroy:function(t){yn(t,is)}},cs=Object.create(null),us=[os,ss],ls={create:$n,update:$n},fs={create:kn,update:kn},ps=/[\w).+\-_$\]]/,ds="__r",vs="__c",hs={create:er,update:er},ms={create:nr,update:nr},gs=g(function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}),ys=/^--/,_s=/\s*!important$/,bs=function(t,e,n){if(ys.test(e))t.style.setProperty(e,n);else if(_s.test(n))t.style.setProperty(e,n.replace(_s,""),"important");else{var r=ws(e);if(Array.isArray(n))for(var o=0,i=n.length;o<i;o++)t.style[r]=n[o];else t.style[r]=n}},xs=["Webkit","Moz","ms"],ws=g(function(t){if(Fa=Fa||document.createElement("div").style,"filter"!==(t=di(t))&&t in Fa)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<xs.length;n++){var r=xs[n]+e;if(r in Fa)return r}}),$s={create:ur,update:ur},Ss=g(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),As=ki&&!ji,ks="transition",Cs="animation",Os="transition",Ts="transitionend",Es="animation",js="animationend";As&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Os="WebkitTransition",Ts="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Es="WebkitAnimation",js="webkitAnimationEnd"));var Ps=ki?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()},Ls=/\b(transform|all)(,|$)/,Ms=ki?{create:Sr,activate:Sr,remove:function(t,e){!0!==t.data.show?xr(t,e):e()}}:{},Is=[ls,fs,hs,ms,$s,Ms],Ns=Is.concat(us),Rs=function(t){function e(t){return new Ji(j.tagName(t).toLowerCase(),{},[],void 0,t)}function n(t,e){function n(){0==--n.listeners&&a(t)}return n.listeners=e,n}function a(t){var e=j.parentNode(t);o(e)&&j.removeChild(e,t)}function c(t,e,n,r,a,s,c){if(o(t.elm)&&o(s)&&(t=s[c]=M(t)),t.isRootInsert=!a,!u(t,e,n,r)){var l=t.data,f=t.children,v=t.tag;o(v)?(t.elm=t.ns?j.createElementNS(t.ns,v):j.createElement(v,t),g(t),d(t,f,e),o(l)&&m(t,e),p(n,t.elm,r)):i(t.isComment)?(t.elm=j.createComment(t.text),p(n,t.elm,r)):(t.elm=j.createTextNode(t.text),p(n,t.elm,r))}}function u(t,e,n,r){var a=t.data;if(o(a)){var s=o(t.componentInstance)&&a.keepAlive;if(o(a=a.hook)&&o(a=a.init)&&a(t,!1,n,r),o(t.componentInstance))return l(t,e),i(s)&&f(t,e,n,r),!0}}function l(t,e){o(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,h(t)?(m(t,e),g(t)):(vn(t),e.push(t))}function f(t,e,n,r){for(var i,a=t;a.componentInstance;)if(a=a.componentInstance._vnode,o(i=a.data)&&o(i=i.transition)){for(i=0;i<T.activate.length;++i)T.activate[i](is,a);e.push(a);break}p(n,t.elm,r)}function p(t,e,n){o(t)&&(o(n)?n.parentNode===t&&j.insertBefore(t,e,n):j.appendChild(t,e))}function d(t,e,n){if(Array.isArray(e))for(var r=0;r<e.length;++r)c(e[r],n,t.elm,null,!0,e,r);else s(t.text)&&j.appendChild(t.elm,j.createTextNode(String(t.text)))}function h(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return o(t.tag)}function m(t,e){for(var n=0;n<T.create.length;++n)T.create[n](is,t);C=t.data.hook,o(C)&&(o(C.create)&&C.create(is,t),o(C.insert)&&e.push(t))}function g(t){var e;if(o(e=t.fnScopeId))j.setStyleScope(t.elm,e);else for(var n=t;n;)o(e=n.context)&&o(e=e.$options._scopeId)&&j.setStyleScope(t.elm,e),n=n.parent;o(e=da)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&j.setStyleScope(t.elm,e)}function y(t,e,n,r,o,i){for(;r<=o;++r)c(n[r],i,t,e,!1,n,r)}function _(t){var e,n,r=t.data;if(o(r))for(o(e=r.hook)&&o(e=e.destroy)&&e(t),e=0;e<T.destroy.length;++e)T.destroy[e](t);if(o(e=t.children))for(n=0;n<t.children.length;++n)_(t.children[n])}function b(t,e,n,r){for(;n<=r;++n){var i=e[n];o(i)&&(o(i.tag)?(x(i),_(i)):a(i.elm))}}function x(t,e){if(o(e)||o(t.data)){var r,i=T.remove.length+1;for(o(e)?e.listeners+=i:e=n(t.elm,i),o(r=t.componentInstance)&&o(r=r._vnode)&&o(r.data)&&x(r,e),r=0;r<T.remove.length;++r)T.remove[r](t,e);o(r=t.data.hook)&&o(r=r.remove)?r(t,e):e()}else a(t.elm)}function w(t,e,n,i,a){for(var s,u,l,f,p=0,d=0,v=e.length-1,h=e[0],m=e[v],g=n.length-1,_=n[0],x=n[g],w=!a;p<=v&&d<=g;)r(h)?h=e[++p]:r(m)?m=e[--v]:hn(h,_)?(S(h,_,i),h=e[++p],_=n[++d]):hn(m,x)?(S(m,x,i),m=e[--v],x=n[--g]):hn(h,x)?(S(h,x,i),w&&j.insertBefore(t,h.elm,j.nextSibling(m.elm)),h=e[++p],x=n[--g]):hn(m,_)?(S(m,_,i),w&&j.insertBefore(t,m.elm,h.elm),m=e[--v],_=n[++d]):(r(s)&&(s=gn(e,p,v)),u=o(_.key)?s[_.key]:$(_,e,p,v),r(u)?c(_,i,t,h.elm,!1,n,d):(l=e[u],hn(l,_)?(S(l,_,i),e[u]=void 0,w&&j.insertBefore(t,l.elm,h.elm)):c(_,i,t,h.elm,!1,n,d)),_=n[++d]);p>v?(f=r(n[g+1])?null:n[g+1].elm,y(t,f,n,d,g,i)):d>g&&b(t,e,p,v)}function $(t,e,n,r){for(var i=n;i<r;i++){var a=e[i];if(o(a)&&hn(t,a))return i}}function S(t,e,n,a){if(t!==e){var s=e.elm=t.elm;if(i(t.isAsyncPlaceholder))return void(o(e.asyncFactory.resolved)?k(t.elm,e,n):e.isAsyncPlaceholder=!0);if(i(e.isStatic)&&i(t.isStatic)&&e.key===t.key&&(i(e.isCloned)||i(e.isOnce)))return void(e.componentInstance=t.componentInstance);var c,u=e.data;o(u)&&o(c=u.hook)&&o(c=c.prepatch)&&c(t,e);var l=t.children,f=e.children;if(o(u)&&h(e)){for(c=0;c<T.update.length;++c)T.update[c](t,e);o(c=u.hook)&&o(c=c.update)&&c(t,e)}r(e.text)?o(l)&&o(f)?l!==f&&w(s,l,f,n,a):o(f)?(o(t.text)&&j.setTextContent(s,""),y(s,null,f,0,f.length-1,n)):o(l)?b(s,l,0,l.length-1):o(t.text)&&j.setTextContent(s,""):t.text!==e.text&&j.setTextContent(s,e.text),o(u)&&o(c=u.hook)&&o(c=c.postpatch)&&c(t,e)}}function A(t,e,n){if(i(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}function k(t,e,n,r){var a,s=e.tag,c=e.data,u=e.children;if(r=r||c&&c.pre,e.elm=t,i(e.isComment)&&o(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(o(c)&&(o(a=c.hook)&&o(a=a.init)&&a(e,!0),o(a=e.componentInstance)))return l(e,n),!0;if(o(s)){if(o(u))if(t.hasChildNodes())if(o(a=c)&&o(a=a.domProps)&&o(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var f=!0,p=t.firstChild,v=0;v<u.length;v++){if(!p||!k(p,u[v],n,r)){f=!1;break}p=p.nextSibling}if(!f||p)return!1}else d(e,u,n);if(o(c)){var h=!1;for(var g in c)if(!P(g)){h=!0,m(e,n);break}!h&&c.class&&ut(c.class)}}else t.data!==e.text&&(t.data=e.text);return!0}var C,O,T={},E=t.modules,j=t.nodeOps;for(C=0;C<as.length;++C)for(T[as[C]]=[],O=0;O<E.length;++O)o(E[O][as[C]])&&T[as[C]].push(E[O][as[C]]);var P=v("attrs,class,staticClass,staticStyle,key");return function(t,n,a,s,u,l){if(r(n))return void(o(t)&&_(t));var f=!1,p=[];if(r(t))f=!0,c(n,p,u,l);else{var d=o(t.nodeType);if(!d&&hn(t,n))S(t,n,p,s);else{if(d){if(1===t.nodeType&&t.hasAttribute(bi)&&(t.removeAttribute(bi),a=!0),i(a)&&k(t,n,p))return A(n,p,!0),t;t=e(t)}var v=t.elm,m=j.parentNode(v);if(c(n,p,v._leaveCb?null:m,j.nextSibling(v)),o(n.parent))for(var g=n.parent,y=h(n);g;){for(var x=0;x<T.destroy.length;++x)T.destroy[x](g);if(g.elm=n.elm,y){for(var w=0;w<T.create.length;++w)T.create[w](is,g);var $=g.data.hook.insert;if($.merged)for(var C=1;C<$.fns.length;C++)$.fns[C]()}else vn(g);g=g.parent}o(m)?b(m,[t],0,0):o(t.tag)&&_(t)}}return A(n,p,f),n.elm}}({nodeOps:rs,modules:Ns});ji&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&jr(t,"input")});var Ds={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?dt(n,"postpatch",function(){Ds.componentUpdated(t,e,n)}):Ar(t,e,n.context),t._vOptions=[].map.call(t.options,Or)):("textarea"===n.tag||ns(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Tr),t.addEventListener("compositionend",Er),t.addEventListener("change",Er),ji&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Ar(t,e,n.context);var r=t._vOptions,o=t._vOptions=[].map.call(t.options,Or);if(o.some(function(t,e){return!S(t,r[e])})){(t.multiple?e.value.some(function(t){return Cr(t,o)}):e.value!==e.oldValue&&Cr(e.value,o))&&jr(t,"change")}}}},Us={bind:function(t,e,n){var r=e.value;n=Pr(n);var o=n.data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,br(n,function(){t.style.display=i})):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&(n=Pr(n),n.data&&n.data.transition?(n.data.show=!0,r?br(n,function(){t.style.display=t.__vOriginalDisplay}):xr(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}},Fs={model:Ds,show:Us},qs={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]},Hs={name:"transition",props:qs,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(function(t){return t.tag||$t(t)}),n.length)){var r=this.mode,o=n[0];if(Nr(this.$vnode))return o;var i=Lr(o);if(!i)return o;if(this._leaving)return Ir(t,o);var a="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?a+"comment":a+i.tag:s(i.key)?0===String(i.key).indexOf(a)?i.key:a+i.key:i.key;var c=(i.data||(i.data={})).transition=Mr(this),u=this._vnode,l=Lr(u);if(i.data.directives&&i.data.directives.some(function(t){return"show"===t.name})&&(i.data.show=!0),l&&l.data&&!Rr(i,l)&&!$t(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=x({},c);if("out-in"===r)return this._leaving=!0,dt(f,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),Ir(t,o);if("in-out"===r){if($t(i))return u;var p,d=function(){p()};dt(c,"afterEnter",d),dt(c,"enterCancelled",d),dt(f,"delayLeave",function(t){p=t})}}return o}}},Bs=x({tag:String,moveClass:String},qs);delete Bs.mode;var Vs={props:Bs,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=Mr(this),s=0;s<o.length;s++){var c=o[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))i.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(r){for(var u=[],l=[],f=0;f<r.length;f++){var p=r[f];p.data.transition=a,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?u.push(p):l.push(p)}this.kept=t(e,null,u),this.removed=l}return t(e,null,i)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Dr),t.forEach(Ur),t.forEach(Fr),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var n=t.elm,r=n.style;vr(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Ts,n._moveCb=function t(r){r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Ts,t),n._moveCb=null,hr(n,e))})}}))},methods:{hasMove:function(t,e){if(!As)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){fr(n,t)}),lr(n,e),n.style.display="none",this.$el.appendChild(n);var r=gr(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}},Gs={Transition:Hs,TransitionGroup:Vs};Me.config.mustUseProp=Ba,Me.config.isReservedTag=ts,Me.config.isReservedAttr=qa,Me.config.getTagNamespace=Ze,Me.config.isUnknownElement=Ye,x(Me.options.directives,Fs),x(Me.options.components,Gs),Me.prototype.__patch__=ki?Rs:$,Me.prototype.$mount=function(t,e){return t=t&&ki?tn(t):void 0,Lt(this,t,e)},ki&&setTimeout(function(){$i.devtools&&Fi&&Fi.emit("init",Me)},0);var Js,zs=/\{\{((?:.|\n)+?)\}\}/g,Ws=/[-.*+?^${}()|[\]\/\\]/g,Xs=g(function(t){var e=t[0].replace(Ws,"\\$&"),n=t[1].replace(Ws,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}),Ks={staticKeys:["staticClass"],transformNode:Hr,genData:Br},Qs={staticKeys:["staticStyle"],transformNode:Vr,genData:Gr},Zs={decode:function(t){return Js=Js||document.createElement("div"),Js.innerHTML=t,Js.textContent}},Ys=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),tc=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ec=v("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),nc=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,rc="[a-zA-Z_][\\w\\-\\.]*",oc="((?:"+rc+"\\:)?"+rc+")",ic=new RegExp("^<"+oc),ac=/^\s*(\/?)>/,sc=new RegExp("^<\\/"+oc+"[^>]*>"),cc=/^<!DOCTYPE [^>]+>/i,uc=/^<!\--/,lc=/^<!\[/,fc=!1;"x".replace(/x(.)?/g,function(t,e){fc=""===e});var pc,dc,vc,hc,mc,gc,yc,_c,bc,xc,wc,$c=v("script,style,textarea",!0),Sc={},Ac={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t"},kc=/&(?:lt|gt|quot|amp);/g,Cc=/&(?:lt|gt|quot|amp|#10|#9);/g,Oc=v("pre,textarea",!0),Tc=function(t,e){return t&&Oc(t)&&"\n"===e[0]},Ec=/^@|^v-on:/,jc=/^v-|^@|^:/,Pc=/([^]*?)\s+(?:in|of)\s+([^]*)/,Lc=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Mc=/^\(|\)$/g,Ic=/:(.*)$/,Nc=/^:|^v-bind:/,Rc=/\.[^.]+/g,Dc=g(Zs.decode),Uc=/^xmlns:NS\d+/,Fc=/^NS\d+:/,qc={preTransformNode:yo},Hc=[Ks,Qs,qc],Bc={model:Jn,text:bo,html:xo},Vc={expectHTML:!0,modules:Hc,directives:Bc,isPreTag:Ya,isUnaryTag:Ys,mustUseProp:Ba,canBeLeftOpenTag:tc,isReservedTag:ts,getTagNamespace:Ze,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(Hc)},Gc=g($o),Jc=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,zc=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Wc={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Xc={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},Kc=function(t){return"if("+t+")return null;"},Qc={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Kc("$event.target !== $event.currentTarget"),ctrl:Kc("!$event.ctrlKey"),shift:Kc("!$event.shiftKey"),alt:Kc("!$event.altKey"),meta:Kc("!$event.metaKey"),left:Kc("'button' in $event && $event.button !== 0"),middle:Kc("'button' in $event && $event.button !== 1"),right:Kc("'button' in $event && $event.button !== 2")},Zc={on:Po,bind:Lo,cloak:$},Yc=function(t){this.options=t,this.warn=t.warn||Tn,this.transforms=En(t.modules,"transformCode"),this.dataGenFns=En(t.modules,"genData"),this.directives=x(x({},Zc),t.directives);var e=t.isReservedTag||yi;this.maybeComponent=function(t){return!e(t.tag)},this.onceId=0,this.staticRenderFns=[]},tu=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),function(t){return function(e){function n(n,r){var o=Object.create(e),i=[],a=[];if(o.warn=function(t,e){(e?a:i).push(t)},r){r.modules&&(o.modules=(e.modules||[]).concat(r.modules)),r.directives&&(o.directives=x(Object.create(e.directives||null),r.directives));for(var s in r)"modules"!==s&&"directives"!==s&&(o[s]=r[s])}var c=t(n,o);return c.errors=i,c.tips=a,c}return{compile:n,compileToFunctions:oi(n)}}}(function(t,e){var n=Xr(t.trim(),e);!1!==e.optimize&&wo(n,e);var r=Mo(n,e);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}})),eu=tu(Vc),nu=eu.compileToFunctions,ru=!!ki&&ii(!1),ou=!!ki&&ii(!0),iu=g(function(t){var e=tn(t);return e&&e.innerHTML}),au=Me.prototype.$mount;Me.prototype.$mount=function(t,e){if((t=t&&tn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=iu(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=ai(t));if(r){var o=nu(r,{shouldDecodeNewlines:ru,shouldDecodeNewlinesForHref:ou,delimiters:n.delimiters,comments:n.comments},this),i=o.render,a=o.staticRenderFns;n.render=i,n.staticRenderFns=a}}return au.call(this,t,e)},Me.compile=nu,e.default=Me}.call(e,n(12),n(33).setImmediate)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(19);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(20)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports={}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(43),o=n(14);t.exports=function(t){return r(o(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(22)("keys"),o=n(23);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(9),o=n(49),i=n(50),a=Object.defineProperty;e.f=n(10)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(3),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(3),o=n(5),i=n(47),a=n(6),s=function(t,e,n){var c,u,l,f=t&s.F,p=t&s.G,d=t&s.S,v=t&s.P,h=t&s.B,m=t&s.W,g=p?o:o[e]||(o[e]={}),y=g.prototype,_=p?r:d?r[e]:(r[e]||{}).prototype;p&&(n=e);for(c in n)(u=!f&&_&&void 0!==_[c])&&c in g||(l=u?_[c]:n[c],g[c]=p&&"function"!=typeof _[c]?n[c]:h&&u?i(l,r):m&&_[c]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((g.virtual||(g.virtual={}))[c]=l,t&s.R&&y&&!y[c]&&a(y,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(19),o=n(3).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(56),o=n(25),i=n(57),a=n(6),s=n(8),c=n(11),u=n(58),l=n(29),f=n(62),p=n(4)("iterator"),d=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,h,m,g,y){u(n,e,h);var _,b,x,w=function(t){if(!d&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},$=e+" Iterator",S="values"==m,A=!1,k=t.prototype,C=k[p]||k["@@iterator"]||m&&k[m],O=!d&&C||w(m),T=m?S?w("entries"):O:void 0,E="Array"==e?k.entries||C:C;if(E&&(x=f(E.call(new t)))!==Object.prototype&&x.next&&(l(x,$,!0),r||s(x,p)||a(x,p,v)),S&&C&&"values"!==C.name&&(A=!0,O=function(){return C.call(this)}),r&&!y||!d&&!A&&k[p]||a(k,p,O),c[e]=O,c[$]=v,m)if(_={values:S?O:w("values"),keys:g?O:w("keys"),entries:T},y)for(b in _)b in k||i(k,b,_[b]);else o(o.P+o.F*(d||A),e,_);return _}},function(t,e,n){var r=n(18).f,o=n(8),i=n(4)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(14);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(42),o=n(24);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){t.exports={default:n(51),__esModule:!0}},function(t,e,n){(function(t){function r(t,e){this._id=t,this._clearFn=e}var o=Function.prototype.apply;e.setTimeout=function(){return new r(o.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(34),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n(12))},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return u[c]=r,s(c),c++}function o(t){delete u[t]}function i(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function a(t){if(l)setTimeout(a,0,t);else{var e=u[t];if(e){l=!0;try{i(e)}finally{o(t),l=!1}}}}if(!t.setImmediate){var s,c=1,u={},l=!1,f=t.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(t);p=p&&p.setTimeout?p:t,"[object process]"==={}.toString.call(t.process)?function(){s=function(t){e.nextTick(function(){a(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),s=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},s=function(e){t.port2.postMessage(e)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var t=f.documentElement;s=function(e){var n=f.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){s=function(t){setTimeout(a,0,t)}}(),p.setImmediate=r,p.clearImmediate=o}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(12),n(35))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){h&&d&&(h=!1,d.length?v=d.concat(v):m=-1,v.length&&s())}function s(){if(!h){var t=o(a);h=!0;for(var e=v.length;e;){for(d=v,v=[];++m<e;)d&&d[m].run();m=-1,e=v.length}d=null,h=!1,i(t)}}function c(t,e){this.fun=t,this.array=e}function u(){}var l,f,p=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var d,v=[],h=!1,m=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];v.push(new c(t,e)),1!==v.length||h||o(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=u,p.addListener=u,p.once=u,p.off=u,p.removeListener=u,p.removeAllListeners=u,p.emit=u,p.prependListener=u,p.prependOnceListener=u,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),i=r(o),a=n(37),s=r(a),c=n(38),u=r(c),l=n(40),f=r(l),p={logLevel:"yes"===ropApiSettings.debug?"debug":"error",stringifyArguments:!1,showLogLevel:!1,showMethodName:!1,separator:"|",showConsoleColors:!0};i.default.use(s.default),i.default.use(u.default),i.default.use(f.default,p),e.default=new s.default.Store({state:{page:{debug:!1,logs:[],view:"accounts",template:"accounts"},cron_status:{},toast:{type:"success",show:!1,title:"",message:""},ajaxLoader:!1,auth_in_progress:!1,displayTabs:[{name:ropApiSettings.labels.accounts.menu_item,slug:"accounts",view:"accounts",isActive:!0},{name:ropApiSettings.labels.settings.menu_item,slug:"settings",view:"settings",isActive:!1},{name:ropApiSettings.labels.post_format.menu_item,slug:"post-format",view:"accounts-selector",isActive:!1},{name:ropApiSettings.labels.schedule.menu_item,slug:"schedule",view:"accounts-selector",isActive:!1},{name:ropApiSettings.labels.queue.menu_item,slug:"queue",view:"queue",isActive:!1},{name:ropApiSettings.labels.logs.menu_item,slug:"logs",view:"logs",isActive:!1}],licence:parseInt(ropApiSettings.license_type),labels:ropApiSettings.labels,availableServices:[],generalSettings:[],authenticatedServices:[],activeAccounts:{},activePostFormat:[],activeSchedule:[],queue:{}},mutations:{setTabView:function(t,e){i.default.$log.debug("Changing tab to ",e);for(var n in t.displayTabs)t.displayTabs[n].isActive=!1,t.displayTabs[n].slug===e&&(t.displayTabs[n].isActive=!0,t.page.view=t.displayTabs[n].slug,t.page.template=t.displayTabs[n].view)},setAjaxState:function(t,e){t.ajaxLoader=e},updateState:function(t,e){var n=e.stateData,r=e.requestName;switch(i.default.$log.debug("State change for ",r),r){case"manage_cron":t.cron_status=n;break;case"get_log":t.page.logs=n;break;case"update_settings_toggle":case"get_general_settings":t.generalSettings=n;break;case"update_selected_post_types":t.generalSettings.selected_post_types=n;for(var o in t.generalSettings.available_post_types){t.generalSettings.available_post_types[o].selected=!1;for(var a in n)t.generalSettings.available_post_types[o].value===n[a].value&&(t.generalSettings.available_post_types[o].selected=!0)}break;case"update_selected_taxonomies":t.generalSettings.selected_taxonomies=n;for(var s in t.generalSettings.available_taxonomies){t.generalSettings.available_taxonomies[s].selected=!1;for(var c in n)t.generalSettings.available_taxonomies[s].value!==n[c].value&&t.generalSettings.available_taxonomies[s].parent!==n[c].value||(t.generalSettings.available_taxonomies[s].selected=!0)}break;case"update_selected_posts":t.generalSettings.selected_posts=n;break;case"get_available_services":t.availableServices=n;break;case"get_authenticated_services":case"remove_service":t.authenticatedServices=n;break;case"authenticate_service":t.authenticatedServices=n,t.auth_in_progress=!1;break;case"get_active_accounts":case"update_active_accounts":case"remove_account":t.activeAccounts=n;break;case"get_taxonomies":t.generalSettings.available_taxonomies=n;break;case"get_posts":1===n.page?t.generalSettings.available_posts=n.posts:t.generalSettings.available_posts=t.generalSettings.available_posts.concat(n.posts);break;case"get_post_format":case"save_post_format":case"reset_post_format":t.activePostFormat=n;break;case"reset_accounts":t.activeAccounts={},t.authenticatedServices=[];break;case"get_shortner_credentials":t.activePostFormat.shortner_credentials=n;break;case"get_schedule":case"save_schedule":case"reset_schedule":t.activeSchedule=n;break;case"get_queue":case"update_queue_event":case"publish_queue_event":case"skip_queue_event":case"block_queue_event":t.queue=n;break;case"update_toast":t.toast=n;break;case"toggle_account":case"exclude_post":case"exclude_post_batch":break;default:i.default.$log.error("No state request for ",r)}}},actions:{fetchAJAX:function(t,e){var n=t.commit;return""!==e.req&&(n("setAjaxState",!0),i.default.http({url:ropApiSettings.root,method:"POST",headers:{"X-WP-Nonce":ropApiSettings.nonce},params:{req:e.req},body:e.data,responseType:"json"}).then(function(t){n("setAjaxState",!1);var r=t.data;t.data.data&&(r=t.data.data);var o=e.req;!1!==e.updateState&&n("updateState",{stateData:r,requestName:o})},function(){n("setAjaxState",!1),i.default.$log.error("Error when trying to do request: ",e.req)})),!1},fetchAJAXPromise:function(t,e){var n=t.commit;return""!==e.req&&(n("setAjaxState",!0),new Promise(function(t,r){i.default.http({url:ropApiSettings.root,method:"POST",headers:{"X-WP-Nonce":ropApiSettings.nonce},params:{req:e.req},body:e.data,responseType:"json"}).then(function(r){n("setAjaxState",!1);var o=r.data;r.data.data&&(o=r.data.data);var i=e.req;t(o),!1!==e.updateState&&n("updateState",{stateData:o,requestName:i})},function(){n("setAjaxState",!1),i.default.$log.error("Error when trying to do request: ",e.req)})}))}}})},function(t,e,n){"use strict";function r(t){A&&(t._devtoolHook=A,A.emit("vuex:init",t),A.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){A.emit("vuex:mutation",t,e)}))}function o(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function i(t){return null!==t&&"object"==typeof t}function a(t){return t&&"function"==typeof t.then}function s(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return;s(t.concat(r),e.getChild(r),n.modules[r])}}function c(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function u(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;f(t,n,[],t._modules.root,!0),l(t,n,e)}function l(t,e,n){var r=t._vm;t.getters={};var i=t._wrappedGetters,a={};o(i,function(e,n){a[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var s=T.config.silent;T.config.silent=!0,t._vm=new T({data:{$$state:e},computed:a}),T.config.silent=s,t.strict&&g(t),r&&(n&&t._withCommit(function(){r._data.$$state=null}),T.nextTick(function(){return r.$destroy()}))}function f(t,e,n,r,o){var i=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!i&&!o){var s=y(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit(function(){T.set(s,c,r.state)})}var u=r.context=p(t,a,n);r.forEachMutation(function(e,n){v(t,a+n,e,u)}),r.forEachAction(function(e,n){var r=e.root?n:a+n,o=e.handler||e;h(t,r,o,u)}),r.forEachGetter(function(e,n){m(t,a+n,e,u)}),r.forEachChild(function(r,i){f(t,e,n.concat(i),r,o)})}function p(t,e,n){var r=""===e,o={dispatch:r?t.dispatch:function(n,r,o){var i=_(n,r,o),a=i.payload,s=i.options,c=i.type;return s&&s.root||(c=e+c),t.dispatch(c,a)},commit:r?t.commit:function(n,r,o){var i=_(n,r,o),a=i.payload,s=i.options,c=i.type;s&&s.root||(c=e+c),t.commit(c,a,s)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return d(t,e)}},state:{get:function(){return y(t.state,n)}}}),o}function d(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach(function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[o]},enumerable:!0})}}),n}function v(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,r.state,e)})}function h(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push(function(e,o){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,o);return a(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):i})}function m(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function g(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function y(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function _(t,e,n){return i(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function b(t){T&&t===T||(T=t,S(T))}function x(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function w(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function $(t,e,n){return t._modulesNamespaceMap[n]}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"Store",function(){return E}),n.d(e,"install",function(){return b}),n.d(e,"mapState",function(){return P}),n.d(e,"mapMutations",function(){return L}),n.d(e,"mapGetters",function(){return M}),n.d(e,"mapActions",function(){return I}),n.d(e,"createNamespacedHelpers",function(){return N});/**
|
7 |
+
* vuex v2.5.0
|
8 |
+
* (c) 2017 Evan You
|
9 |
+
* @license MIT
|
10 |
+
*/
|
11 |
+
var S=function(t){function e(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:e});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,n.call(this,t)}}},A="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,k=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},C={namespaced:{configurable:!0}};C.namespaced.get=function(){return!!this._rawModule.namespaced},k.prototype.addChild=function(t,e){this._children[t]=e},k.prototype.removeChild=function(t){delete this._children[t]},k.prototype.getChild=function(t){return this._children[t]},k.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},k.prototype.forEachChild=function(t){o(this._children,t)},k.prototype.forEachGetter=function(t){this._rawModule.getters&&o(this._rawModule.getters,t)},k.prototype.forEachAction=function(t){this._rawModule.actions&&o(this._rawModule.actions,t)},k.prototype.forEachMutation=function(t){this._rawModule.mutations&&o(this._rawModule.mutations,t)},Object.defineProperties(k.prototype,C);var O=function(t){this.register([],t,!1)};O.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},O.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},O.prototype.update=function(t){s([],this.root,t)},O.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new k(e,n);if(0===t.length)this.root=i;else{this.get(t.slice(0,-1)).addChild(t[t.length-1],i)}e.modules&&o(e.modules,function(e,o){r.register(t.concat(o),e,n)})},O.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var T,E=function(t){var e=this;void 0===t&&(t={}),!T&&"undefined"!=typeof window&&window.Vue&&b(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var o=t.strict;void 0===o&&(o=!1);var i=t.state;void 0===i&&(i={}),"function"==typeof i&&(i=i()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new O(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new T;var a=this,s=this,c=s.dispatch,u=s.commit;this.dispatch=function(t,e){return c.call(a,t,e)},this.commit=function(t,e,n){return u.call(a,t,e,n)},this.strict=o,f(this,i,[],this._modules.root),l(this,i),n.forEach(function(t){return t(e)}),T.config.devtools&&r(this)},j={state:{configurable:!0}};j.state.get=function(){return this._vm._data.$$state},j.state.set=function(t){},E.prototype.commit=function(t,e,n){var r=this,o=_(t,e,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),c=this._mutations[i];c&&(this._withCommit(function(){c.forEach(function(t){t(a)})}),this._subscribers.forEach(function(t){return t(s,r.state)}))},E.prototype.dispatch=function(t,e){var n=this,r=_(t,e),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s)return this._actionSubscribers.forEach(function(t){return t(a,n.state)}),s.length>1?Promise.all(s.map(function(t){return t(i)})):s[0](i)},E.prototype.subscribe=function(t){return c(t,this._subscribers)},E.prototype.subscribeAction=function(t){return c(t,this._actionSubscribers)},E.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch(function(){return t(r.state,r.getters)},e,n)},E.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},E.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),f(this,this.state,t,this._modules.get(t),n.preserveState),l(this,this.state)},E.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=y(e.state,t.slice(0,-1));T.delete(n,t[t.length-1])}),u(this)},E.prototype.hotUpdate=function(t){this._modules.update(t),u(this,!0)},E.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(E.prototype,j);var P=w(function(t,e){var n={};return x(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=$(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0}),n}),L=w(function(t,e){var n={};return x(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=$(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}}),n}),M=w(function(t,e){var n={};return x(e).forEach(function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||$(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0}),n}),I=w(function(t,e){var n={};return x(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=$(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}}),n}),N=function(t){return{mapState:P.bind(null,t),mapGetters:M.bind(null,t),mapMutations:L.bind(null,t),mapActions:I.bind(null,t)}},R={Store:E,install:b,version:"2.5.0",mapState:P,mapMutations:L,mapGetters:M,mapActions:I,createNamespacedHelpers:N};e.default=R},function(t,e,n){"use strict";function r(t){this.state=st,this.value=void 0,this.deferred=[];var e=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(t){e.reject(t)}}function o(t,e){t instanceof Promise?this.promise=t:this.promise=new Promise(t.bind(e)),this.context=e}function i(t){var e=t.config,n=t.nextTick;lt=n,ht=e.debug||!e.silent}function a(t){"undefined"!=typeof console&&ht&&console.warn("[VueResource warn]: "+t)}function s(t){"undefined"!=typeof console&&console.error(t)}function c(t,e){return lt(t,e)}function u(t){return t?t.replace(/^\s*|\s*$/g,""):""}function l(t,e){return t&&void 0===e?t.replace(/\s+$/,""):t&&e?t.replace(new RegExp("["+e+"]+$"),""):t}function f(t){return t?t.toLowerCase():""}function p(t){return t?t.toUpperCase():""}function d(t){return"string"==typeof t}function v(t){return"function"==typeof t}function h(t){return null!==t&&"object"==typeof t}function m(t){return h(t)&&Object.getPrototypeOf(t)==Object.prototype}function g(t){return"undefined"!=typeof Blob&&t instanceof Blob}function y(t){return"undefined"!=typeof FormData&&t instanceof FormData}function _(t,e,n){var r=o.resolve(t);return arguments.length<2?r:r.then(e,n)}function b(t,e,n){return n=n||{},v(n)&&(n=n.call(e)),w(t.bind({$vm:e,$options:n}),t,{$options:n})}function x(t,e){var n,r;if(gt(t))for(n=0;n<t.length;n++)e.call(t[n],t[n],n);else if(h(t))for(r in t)pt.call(t,r)&&e.call(t[r],t[r],r);return t}function w(t){return vt.call(arguments,1).forEach(function(e){A(t,e,!0)}),t}function $(t){return vt.call(arguments,1).forEach(function(e){for(var n in e)void 0===t[n]&&(t[n]=e[n])}),t}function S(t){return vt.call(arguments,1).forEach(function(e){A(t,e)}),t}function A(t,e,n){for(var r in e)n&&(m(e[r])||gt(e[r]))?(m(e[r])&&!m(t[r])&&(t[r]={}),gt(e[r])&&!gt(t[r])&&(t[r]=[]),A(t[r],e[r],n)):void 0!==e[r]&&(t[r]=e[r])}function k(t,e){var n=e(t);return d(t.root)&&!/^(https?:)?\//.test(n)&&(n=l(t.root,"/")+"/"+n),n}function C(t,e){var n=Object.keys(N.options.params),r={},o=e(t);return x(t.params,function(t,e){-1===n.indexOf(e)&&(r[e]=t)}),r=N.params(r),r&&(o+=(-1==o.indexOf("?")?"?":"&")+r),o}function O(t,e,n){var r=T(t),o=r.expand(e);return n&&n.push.apply(n,r.vars),o}function T(t){var e=["+","#",".","/",";","?","&"],n=[];return{vars:n,expand:function(r){return t.replace(/\{([^{}]+)\}|([^{}]+)/g,function(t,o,i){if(o){var a=null,s=[];if(-1!==e.indexOf(o.charAt(0))&&(a=o.charAt(0),o=o.substr(1)),o.split(/,/g).forEach(function(t){var e=/([^:*]*)(?::(\d+)|(\*))?/.exec(t);s.push.apply(s,E(r,a,e[1],e[2]||e[3])),n.push(e[1])}),a&&"+"!==a){var c=",";return"?"===a?c="&":"#"!==a&&(c=a),(0!==s.length?a:"")+s.join(c)}return s.join(",")}return M(i)})}}}function E(t,e,n,r){var o=t[n],i=[];if(j(o)&&""!==o)if("string"==typeof o||"number"==typeof o||"boolean"==typeof o)o=o.toString(),r&&"*"!==r&&(o=o.substring(0,parseInt(r,10))),i.push(L(e,o,P(e)?n:null));else if("*"===r)Array.isArray(o)?o.filter(j).forEach(function(t){i.push(L(e,t,P(e)?n:null))}):Object.keys(o).forEach(function(t){j(o[t])&&i.push(L(e,o[t],t))});else{var a=[];Array.isArray(o)?o.filter(j).forEach(function(t){a.push(L(e,t))}):Object.keys(o).forEach(function(t){j(o[t])&&(a.push(encodeURIComponent(t)),a.push(L(e,o[t].toString())))}),P(e)?i.push(encodeURIComponent(n)+"="+a.join(",")):0!==a.length&&i.push(a.join(","))}else";"===e?i.push(encodeURIComponent(n)):""!==o||"&"!==e&&"?"!==e?""===o&&i.push(""):i.push(encodeURIComponent(n)+"=");return i}function j(t){return void 0!==t&&null!==t}function P(t){return";"===t||"&"===t||"?"===t}function L(t,e,n){return e="+"===t||"#"===t?M(e):encodeURIComponent(e),n?encodeURIComponent(n)+"="+e:e}function M(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map(function(t){return/%[0-9A-Fa-f]/.test(t)||(t=encodeURI(t)),t}).join("")}function I(t){var e=[],n=O(t.url,t.params,e);return e.forEach(function(e){delete t.params[e]}),n}function N(t,e){var n,r=this||{},o=t;return d(t)&&(o={url:t,params:e}),o=w({},N.options,r.$options,o),N.transforms.forEach(function(t){d(t)&&(t=N.transform[t]),v(t)&&(n=R(t,n,r.$vm))}),n(o)}function R(t,e,n){return function(r){return t.call(n,r,e)}}function D(t,e,n){var r,o=gt(e),i=m(e);x(e,function(e,a){r=h(e)||gt(e),n&&(a=n+"["+(i||r?a:"")+"]"),!n&&o?t.add(e.name,e.value):r?D(t,e,a):t.add(a,e)})}function U(t){return new o(function(e){var n=new XDomainRequest,r=function(r){var o=r.type,i=0;"load"===o?i=200:"error"===o&&(i=500),e(t.respondWith(n.responseText,{status:i}))};t.abort=function(){return n.abort()},n.open(t.method,t.getUrl()),t.timeout&&(n.timeout=t.timeout),n.onload=r,n.onabort=r,n.onerror=r,n.ontimeout=r,n.onprogress=function(){},n.send(t.getBody())})}function F(t){if(mt){var e=N.parse(location.href),n=N.parse(t.getUrl());n.protocol===e.protocol&&n.host===e.host||(t.crossOrigin=!0,t.emulateHTTP=!1,_t||(t.client=U))}}function q(t){y(t.body)?t.headers.delete("Content-Type"):h(t.body)&&t.emulateJSON&&(t.body=N.params(t.body),t.headers.set("Content-Type","application/x-www-form-urlencoded"))}function H(t){var e=t.headers.get("Content-Type")||"";return h(t.body)&&0===e.indexOf("application/json")&&(t.body=JSON.stringify(t.body)),function(t){return t.bodyText?_(t.text(),function(e){if(0===(t.headers.get("Content-Type")||"").indexOf("application/json")||B(e))try{t.body=JSON.parse(e)}catch(e){t.body=null}else t.body=e;return t}):t}}function B(t){var e=t.match(/^\s*(\[|\{)/),n={"[":/]\s*$/,"{":/}\s*$/};return e&&n[e[1]].test(t)}function V(t){return new o(function(e){var n,r,o=t.jsonp||"callback",i=t.jsonpCallback||"_jsonp"+Math.random().toString(36).substr(2),a=null;n=function(n){var o=n.type,s=0;"load"===o&&null!==a?s=200:"error"===o&&(s=500),s&&window[i]&&(delete window[i],document.body.removeChild(r)),e(t.respondWith(a,{status:s}))},window[i]=function(t){a=JSON.stringify(t)},t.abort=function(){n({type:"abort"})},t.params[o]=i,t.timeout&&setTimeout(t.abort,t.timeout),r=document.createElement("script"),r.src=t.getUrl(),r.type="text/javascript",r.async=!0,r.onload=n,r.onerror=n,document.body.appendChild(r)})}function G(t){"JSONP"==t.method&&(t.client=V)}function J(t){v(t.before)&&t.before.call(this,t)}function z(t){t.emulateHTTP&&/^(PUT|PATCH|DELETE)$/i.test(t.method)&&(t.headers.set("X-HTTP-Method-Override",t.method),t.method="POST")}function W(t){x(yt({},rt.headers.common,t.crossOrigin?{}:rt.headers.custom,rt.headers[f(t.method)]),function(e,n){t.headers.has(n)||t.headers.set(n,e)})}function X(t){return new o(function(e){var n=new XMLHttpRequest,r=function(r){var o=t.respondWith("response"in n?n.response:n.responseText,{status:1223===n.status?204:n.status,statusText:1223===n.status?"No Content":u(n.statusText)});x(u(n.getAllResponseHeaders()).split("\n"),function(t){o.headers.append(t.slice(0,t.indexOf(":")),t.slice(t.indexOf(":")+1))}),e(o)};t.abort=function(){return n.abort()},n.open(t.method,t.getUrl(),!0),t.timeout&&(n.timeout=t.timeout),t.responseType&&"responseType"in n&&(n.responseType=t.responseType),(t.withCredentials||t.credentials)&&(n.withCredentials=!0),t.crossOrigin||t.headers.set("X-Requested-With","XMLHttpRequest"),v(t.progress)&&"GET"===t.method&&n.addEventListener("progress",t.progress),v(t.downloadProgress)&&n.addEventListener("progress",t.downloadProgress),v(t.progress)&&/^(POST|PUT)$/i.test(t.method)&&n.upload.addEventListener("progress",t.progress),v(t.uploadProgress)&&n.upload&&n.upload.addEventListener("progress",t.uploadProgress),t.headers.forEach(function(t,e){n.setRequestHeader(e,t)}),n.onload=r,n.onabort=r,n.onerror=r,n.ontimeout=r,n.send(t.getBody())})}function K(t){var e=n(39);return new o(function(n){var r,o=t.getUrl(),i=t.getBody(),a=t.method,s={};t.headers.forEach(function(t,e){s[e]=t}),e(o,{body:i,method:a,headers:s}).then(r=function(e){var r=t.respondWith(e.body,{status:e.statusCode,statusText:u(e.statusMessage)});x(e.headers,function(t,e){r.headers.set(e,t)}),n(r)},function(t){return r(t.response)})})}function Q(t){function e(e){for(;n.length;){var i=n.pop();if(v(i)){var s=void 0,c=void 0;if(s=i.call(t,e,function(t){return c=t})||c,h(s))return new o(function(e,n){r.forEach(function(e){s=_(s,function(n){return e.call(t,n)||n},n)}),_(s,e,n)},t);v(s)&&r.unshift(s)}else a("Invalid interceptor of type "+typeof i+", must be a function")}}var n=[Z],r=[];return h(t)||(t=null),e.use=function(t){n.push(t)},e}function Z(t){return(t.client||(mt?X:K))(t)}function Y(t,e){return Object.keys(t).reduce(function(t,n){return f(e)===f(n)?n:t},null)}function tt(t){if(/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return u(t)}function et(t){return new o(function(e){var n=new FileReader;n.readAsText(t),n.onload=function(){e(n.result)}})}function nt(t){return 0===t.type.indexOf("text")||-1!==t.type.indexOf("json")}function rt(t){var e=this||{},n=Q(e.$vm);return $(t||{},e.$options,rt.options),rt.interceptors.forEach(function(t){d(t)&&(t=rt.interceptor[t]),v(t)&&n.use(t)}),n(new wt(t)).then(function(t){return t.ok?t:o.reject(t)},function(t){return t instanceof Error&&s(t),o.reject(t)})}function ot(t,e,n,r){var o=this||{},i={};return n=yt({},ot.actions,n),x(n,function(n,a){n=w({url:t,params:yt({},e)},r,n),i[a]=function(){return(o.$http||rt)(it(n,arguments))}}),i}function it(t,e){var n,r=yt({},t),o={};switch(e.length){case 2:o=e[0],n=e[1];break;case 1:/^(POST|PUT|PATCH)$/i.test(r.method)?n=e[0]:o=e[0];break;case 0:break;default:throw"Expected up to 2 arguments [params, body], got "+e.length+" arguments"}return r.body=n,r.params=yt({},r.params,o),r}function at(t){at.installed||(i(t),t.url=N,t.http=rt,t.resource=ot,t.Promise=o,Object.defineProperties(t.prototype,{$url:{get:function(){return b(t.url,this,this.$options.url)}},$http:{get:function(){return b(t.http,this,this.$options.http)}},$resource:{get:function(){return t.resource.bind(this)}},$promise:{get:function(){var e=this;return function(n){return new t.Promise(n,e)}}}}))}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"Url",function(){return N}),n.d(e,"Http",function(){return rt}),n.d(e,"Resource",function(){return ot});/*!
|
12 |
+
* vue-resource v1.5.0
|
13 |
+
* https://github.com/pagekit/vue-resource
|
14 |
+
* Released under the MIT License.
|
15 |
+
*/
|
16 |
+
var st=2;r.reject=function(t){return new r(function(e,n){n(t)})},r.resolve=function(t){return new r(function(e,n){e(t)})},r.all=function(t){return new r(function(e,n){var o=0,i=[];0===t.length&&e(i);for(var a=0;a<t.length;a+=1)r.resolve(t[a]).then(function(n){return function(r){i[n]=r,(o+=1)===t.length&&e(i)}}(a),n)})},r.race=function(t){return new r(function(e,n){for(var o=0;o<t.length;o+=1)r.resolve(t[o]).then(e,n)})};var ct=r.prototype;ct.resolve=function(t){var e=this;if(e.state===st){if(t===e)throw new TypeError("Promise settled with itself.");var n=!1;try{var r=t&&t.then;if(null!==t&&"object"==typeof t&&"function"==typeof r)return void r.call(t,function(t){n||e.resolve(t),n=!0},function(t){n||e.reject(t),n=!0})}catch(t){return void(n||e.reject(t))}e.state=0,e.value=t,e.notify()}},ct.reject=function(t){var e=this;if(e.state===st){if(t===e)throw new TypeError("Promise settled with itself.");e.state=1,e.value=t,e.notify()}},ct.notify=function(){var t=this;c(function(){if(t.state!==st)for(;t.deferred.length;){var e=t.deferred.shift(),n=e[0],r=e[1],o=e[2],i=e[3];try{0===t.state?o("function"==typeof n?n.call(void 0,t.value):t.value):1===t.state&&("function"==typeof r?o(r.call(void 0,t.value)):i(t.value))}catch(t){i(t)}}})},ct.then=function(t,e){var n=this;return new r(function(r,o){n.deferred.push([t,e,r,o]),n.notify()})},ct.catch=function(t){return this.then(void 0,t)},"undefined"==typeof Promise&&(window.Promise=r),o.all=function(t,e){return new o(Promise.all(t),e)},o.resolve=function(t,e){return new o(Promise.resolve(t),e)},o.reject=function(t,e){return new o(Promise.reject(t),e)},o.race=function(t,e){return new o(Promise.race(t),e)};var ut=o.prototype;ut.bind=function(t){return this.context=t,this},ut.then=function(t,e){return t&&t.bind&&this.context&&(t=t.bind(this.context)),e&&e.bind&&this.context&&(e=e.bind(this.context)),new o(this.promise.then(t,e),this.context)},ut.catch=function(t){return t&&t.bind&&this.context&&(t=t.bind(this.context)),new o(this.promise.catch(t),this.context)},ut.finally=function(t){return this.then(function(e){return t.call(this),e},function(e){return t.call(this),Promise.reject(e)})};var lt,ft={},pt=ft.hasOwnProperty,dt=[],vt=dt.slice,ht=!1,mt="undefined"!=typeof window,gt=Array.isArray,yt=Object.assign||S;N.options={url:"",root:null,params:{}},N.transform={template:I,query:C,root:k},N.transforms=["template","query","root"],N.params=function(t){var e=[],n=encodeURIComponent;return e.add=function(t,e){v(e)&&(e=e()),null===e&&(e=""),this.push(n(t)+"="+n(e))},D(e,t),e.join("&").replace(/%20/g,"+")},N.parse=function(t){var e=document.createElement("a");return document.documentMode&&(e.href=t,t=e.href),e.href=t,{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",port:e.port,host:e.host,hostname:e.hostname,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):""}};var _t=mt&&"withCredentials"in new XMLHttpRequest,bt=function(t){var e=this;this.map={},x(t,function(t,n){return e.append(n,t)})};bt.prototype.has=function(t){return null!==Y(this.map,t)},bt.prototype.get=function(t){var e=this.map[Y(this.map,t)];return e?e.join():null},bt.prototype.getAll=function(t){return this.map[Y(this.map,t)]||[]},bt.prototype.set=function(t,e){this.map[tt(Y(this.map,t)||t)]=[u(e)]},bt.prototype.append=function(t,e){var n=this.map[Y(this.map,t)];n?n.push(u(e)):this.set(t,e)},bt.prototype.delete=function(t){delete this.map[Y(this.map,t)]},bt.prototype.deleteAll=function(){this.map={}},bt.prototype.forEach=function(t,e){var n=this;x(this.map,function(r,o){x(r,function(r){return t.call(e,r,o,n)})})};var xt=function(t,e){var n=e.url,r=e.headers,o=e.status,i=e.statusText;this.url=n,this.ok=o>=200&&o<300,this.status=o||0,this.statusText=i||"",this.headers=new bt(r),this.body=t,d(t)?this.bodyText=t:g(t)&&(this.bodyBlob=t,nt(t)&&(this.bodyText=et(t)))};xt.prototype.blob=function(){return _(this.bodyBlob)},xt.prototype.text=function(){return _(this.bodyText)},xt.prototype.json=function(){return _(this.text(),function(t){return JSON.parse(t)})},Object.defineProperty(xt.prototype,"data",{get:function(){return this.body},set:function(t){this.body=t}});var wt=function(t){this.body=null,this.params={},yt(this,t,{method:p(t.method||"GET")}),this.headers instanceof bt||(this.headers=new bt(this.headers))};wt.prototype.getUrl=function(){return N(this)},wt.prototype.getBody=function(){return this.body},wt.prototype.respondWith=function(t,e){return new xt(t,yt(e||{},{url:this.getUrl()}))};var $t={Accept:"application/json, text/plain, */*"},St={"Content-Type":"application/json;charset=utf-8"};rt.options={},rt.headers={put:St,post:St,patch:St,delete:St,common:$t,custom:{}},rt.interceptor={before:J,method:z,jsonp:G,json:H,form:q,header:W,cors:F},rt.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach(function(t){rt[t]=function(e,n){return this(yt(n||{},{url:e,method:t}))}}),["post","put","patch"].forEach(function(t){rt[t]=function(e,n,r){return this(yt(r||{},{url:e,method:t,body:n}))}}),ot.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}},"undefined"!=typeof window&&window.Vue&&window.Vue.use(at),e.default=at},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(41),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={install:o.default.install}},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function t(t,n){var r={};return n.forEach(function(o){n.indexOf(o)>=n.indexOf(t.logLevel)?r[o]=function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];var s=i(),c=t.showMethodName?s+" "+t.separator+" ":"",u=t.showLogLevel?o+" "+t.separator+" ":"",l=t.stringifyArguments?r.map(function(t){return JSON.stringify(t)}):r;e(o,u,c,l,t.showConsoleColors)}:r[o]=function(){}}),r}function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(arguments.length>4&&void 0!==arguments[4]&&arguments[4]&&("warn"===t||"error"===t||"fatal"===t)){var i;(i=console)["fatal"===t?"error":t].apply(i,[e,n].concat(r(o)))}else{var a;(a=console).log.apply(a,[e,n].concat(r(o)))}}function n(t,e){return!(!(t.logLevel&&"string"==typeof t.logLevel&&e.indexOf(t.logLevel)>-1)||t.stringifyArguments&&"boolean"!=typeof t.stringifyArguments||t.showLogLevel&&"boolean"!=typeof t.showLogLevel||t.showConsoleColors&&"boolean"!=typeof t.showConsoleColors||t.separator&&("string"!=typeof t.separator||"string"==typeof t.separator&&t.separator.length>3)||t.showMethodName&&"boolean"!=typeof t.showMethodName)}function o(e,r){if(r=Object.assign(a,r),!n(r,s))throw new Error("Provided options for vuejs-logger are not valid.");e.$log=t(r,s),e.prototype.$log=e.$log}function i(){var t={};try{throw new Error("")}catch(e){t=e}var e=t.stack.split("\n")[3];return/ /.test(e)&&(e=e.trim().split(" ")[1]),e&&e.includes(".")&&(e=e.split(".")[1]),e}var a={logLevel:"debug",separator:"|",stringifyArguments:!1,showLogLevel:!1,showMethodName:!1,showConsoleColors:!1},s=["debug","info","warn","error","fatal"];return{install:o,isValidOptions:n,print:e,initLoggerInstance:t,logLevels:s}}()},function(t,e,n){var r=n(8),o=n(15),i=n(44)(!1),a=n(17)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~i(u,n)||u.push(n));return u}},function(t,e,n){var r=n(21);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(15),o=n(45),i=n(46);t.exports=function(t){return function(e,n,a){var s,c=r(e),u=o(c.length),l=i(a,u);if(t&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(16),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(16),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(48);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){t.exports=!n(10)&&!n(20)(function(){return 7!=Object.defineProperty(n(26)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(19);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){n(52),n(63),t.exports=n(65)},function(t,e,n){n(53);for(var r=n(3),o=n(6),i=n(11),a=n(4)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=r[u],f=l&&l.prototype;f&&!f[a]&&o(f,a,u),i[u]=i.Array}},function(t,e,n){"use strict";var r=n(54),o=n(55),i=n(11),a=n(15);t.exports=n(28)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=!0},function(t,e,n){t.exports=n(6)},function(t,e,n){"use strict";var r=n(59),o=n(27),i=n(29),a={};n(6)(a,n(4)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(9),o=n(60),i=n(24),a=n(17)("IE_PROTO"),s=function(){},c=function(){var t,e=n(26)("iframe"),r=i.length;for(e.style.display="none",n(61).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(18),o=n(9),i=n(31);t.exports=n(10)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,c=0;s>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(3).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(8),o=n(30),i=n(17)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){"use strict";var r=n(64)(!0);n(28)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(16),o=n(14);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):i:t?s.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){var r=n(9),o=n(66);t.exports=n(5).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){var r=n(67),o=n(4)("iterator"),i=n(11);t.exports=n(5).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(21),o=n(4)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var r,o;r=n(69),o=n(71),t.exports=r||{},t.exports.__esModule&&(t.exports=t.exports.default),o&&(("function"==typeof t.exports?t.exports.options:t.exports).template=o)},function(t,e,n){"use strict";function r(t,e){var n=void 0;for(n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}var o=n(32),i=function(t){return t&&t.__esModule?t:{default:t}}(o),a=n(70);t.exports={name:"multiple-select",mixins:[a.mixin],props:{options:{default:function(){return[]},type:Array},disabled:{default:!0,type:Boolean},selected:{default:function(){return[]},type:Array},placeHolderText:{default:"Please select something",type:String},changedSelection:{default:function(t){return t},type:Function},dontLock:{default:!1,type:Boolean}},mounted:function(){var t=!0,e=!1,n=void 0;try{for(var r,o=(0,i.default)(this.selected);!(t=(r=o.next()).done);t=!0){var a=r.value;if(a.selected){var s=0,c=!0,u=!1,l=void 0;try{for(var f,p=(0,i.default)(this.options);!(c=(f=p.next()).done);c=!0){f.value.value===a.value&&(this.options[s].selected=a.selected),s++}}catch(t){u=!0,l=t}finally{try{!c&&p.return&&p.return()}finally{if(u)throw l}}}}}catch(t){e=!0,n=t}finally{try{!t&&o.return&&o.return()}finally{if(e)throw n}}},data:function(){return{search:"",highlighted:-1,no_results:!1,labels:this.$store.state.labels.general,upsell_link:ropApiSettings.upsell_link,magic_flag:!1}},watch:{search:function(t){this.$emit("update",t)}},computed:{is_focused:function(){return{"is-focused":!0===this.magic_flag}},is_visible:function(){return{"d-none":!1===this.magic_flag}},is_one:function(){if(!this.dontLock){if(1===this.options.length&&!1===this.options[0].selected)return!0;if(1===this.options.length&&!0===this.options[0].selected)return!0}return!1},autocomplete_placeholder:function(){return this.selected.length>0?"":this.placeHolderText},is_disabled:function(){return!this.disabled},has_results:function(){var t=0,e=!0,n=!1,r=void 0;try{for(var o,a=(0,i.default)(this.options);!(e=(o=a.next()).done);e=!0){var s=o.value;this.filterSearch(s)&&t++}}catch(t){n=!0,r=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw r}}return!t}},methods:{closeDropdown:function(){this.magic_flag=!1},highlightItem:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this.highlighted--:this.highlighted++;var t=this.$refs.autocomplete_results.children.length-1;t<0&&(t=0),this.highlighted>t&&(this.highlighted=0),this.highlighted<0&&(this.highlighted=t),this.$refs.autocomplete_results.children[this.highlighted].firstChild.focus()},popLast:function(){""===this.search&&(this.selected.pop(),this.magic_flag=!1)},markMatch:function(t,e){var n=t;if(-1!==t.toLowerCase().indexOf(e.toLowerCase())&&""!==e){var r=new RegExp(e,"ig");n=t.replace(r,function(t){return"<mark>"+t+"</mark>"})}return n},filterSearch:function(t){return(-1!==t.name.toLowerCase().indexOf(this.search.toLowerCase())||""===this.search)&&(!t.selected&&!r(t,this.selected))},addToSelected:function(t){if(!this.is_disabled){var e=this.options[t];e.selected=!0,this.selected.push(e),this.$refs.search.focus(),this.magic_flag=!1,this.search="",this.changedSelection(this.selected)}},removeSelected:function(t){this.is_disabled||(this.selected.splice(t,1),this.$refs.search.focus(),this.magic_flag=!1,this.search="",this.changedSelection(this.selected))}}}},function(t,e,n){"use strict";function r(t,e){o(t);var n=e.value;if("function"==typeof n){var r=!1;setTimeout(function(){r=!0},0),t[a]=function(e){if(r&&!t.contains(e.target))return n(e)},document.documentElement.addEventListener("click",t[a],!1)}}function o(t){document.documentElement.removeEventListener("click",t[a],!1),delete t[a]}var i=n(7);i="default"in i?i.default:i;/^2\./.test(i.version)||i.util.warn("VueClickaway 2.1.0 only supports Vue 2.x, and does not support Vue "+i.version);var a="_vue_clickaway_handler",s={bind:r,update:function(t,e){e.value!==e.oldValue&&r(t,e)},unbind:o},c={directives:{onClickaway:s}};e.version="2.1.0",e.directive=s,e.mixin=c},function(t,e){t.exports='\n\t<div class="form-autocomplete" style="width: 100%;" v-on-clickaway="closeDropdown">\n\t\t\x3c!-- autocomplete input container --\x3e\n\t\t<div class="form-autocomplete-input form-input" :class="is_focused">\n\t\t\t\n\t\t\t\x3c!-- autocomplete chips --\x3e\n\t\t\t<label class="chip" v-for="( option, index ) in selected">\n\t\t\t\t{{option.name}}\n\t\t\t\t<a href="#" class="btn btn-clear" aria-label="Close" @click.prevent="removeSelected(index)"\n\t\t\t\t role="button"></a>\n\t\t\t</label>\n\t\t\t\n\t\t\t\x3c!-- autocomplete real input box --\x3e\n\t\t\t<input style="height: 1.0rem;" class="form-input" type="text" ref="search" v-model="search"\n\t\t\t :placeholder="autocomplete_placeholder" @click="magic_flag = true" @focus="magic_flag = true"\n\t\t\t @keyup="magic_flag = true" @keydown.8="popLast()" @keydown.38="highlightItem(true)"\n\t\t\t @keydown.40="highlightItem()" :disabled="is_disabled">\n\t\t</div>\n\t\t\n\t\t\x3c!-- autocomplete suggestion list --\x3e\n\t\t<ul class="menu" ref="autocomplete_results" :class="is_visible"\n\t\t style="overflow-y: scroll; max-height: 120px">\n\t\t\t\x3c!-- menu list chips --\x3e\n\t\t\t<li class="menu-item" v-for="( option, index ) in options" v-if="filterSearch(option)">\n\t\t\t\t<a href="#" @click.prevent="addToSelected(index)" @keydown.38="highlightItem(true)"\n\t\t\t\t @keydown.40="highlightItem()">\n\t\t\t\t\t<div class="tile tile-centered">\n\t\t\t\t\t\t<div class="tile-content" v-html="markMatch(option.name, search)"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</a>\n\t\t\t</li>\n\t\t\t<li v-if="has_results">\n\t\t\t\t<a href="#">\n\t\t\t\t\t<div class="tile tile-centered">\n\t\t\t\t\t\t<div class="tile-content"><i>{{labels.multiselect_not_found}}"{{search}}" ...</i></div>\n\t\t\t\t\t</div>\n\t\t\t\t</a>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n\n'},function(t,e,n){var r,o;n(73),r=n(75),o=n(76),t.exports=r||{},t.exports.__esModule&&(t.exports=t.exports.default),o&&(("function"==typeof t.exports?t.exports.options:t.exports).template=o)},function(t,e,n){var r=n(74);"string"==typeof r&&(r=[[t.i,r,""]]);n(2)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t#rop-upsell-box[_v-3157056c]{\n\t\tmargin-top:20px;\n\t}\n\t#rop_core .rop-upsell-business-card[_v-3157056c],\n\t#rop_core .rop-upsell-pro-card[_v-3157056c] {\n\t\tpadding: 0;\n\t}\n",""])},function(t,e,n){"use strict";t.exports={name:"upsell-sidebar",data:function(){return{license:this.$store.state.licence,upsell_link:ropApiSettings.upsell_link,to_pro_upsell:ROP_ASSETS_URL+"img/to_pro.png",labels:this.$store.state.labels.general,to_business_upsell:ROP_ASSETS_URL+"img/to_business.png"}}}},function(t,e){t.exports='\n\t<div id="rop-upsell-box" _v-3157056c="">\n\t\t<div class="card rop-upsell-pro-card" v-if="license < 1 " _v-3157056c="">\n\t\t\t<a :href="upsell_link" target="_blank" _v-3157056c="">\n\t\t\t\t<img class="img-responsive" :src="to_pro_upsell" :alt="labels.upgrade_pro_cta" _v-3157056c="">\n\t\t\t</a>\n\t\t</div>\n\t\t<div class="card rop-upsell-business-card" v-if="license === 1" _v-3157056c="">\n\t\t\t<a :href="upsell_link" target="_blank" _v-3157056c="">\n\t\t\t\t<img class="img-responsive" :src="to_business_upsell" :alt="labels.upgrade_biz_cta" _v-3157056c="">\n\t\t\t</a>\n\t\t</div>\n\t</div>\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(7),i=r(o),a=n(36),s=r(a),c=n(297),u=r(c);window.onload=function(){new i.default({el:"#rop_content_filters",store:s.default,components:{ExcludePostsPage:u.default},created:function(){}})}},function(t,e,n){var r,o;n(298),r=n(300),o=n(301),t.exports=r||{},t.exports.__esModule&&(t.exports=t.exports.default),o&&(("function"==typeof t.exports?t.exports.options:t.exports).template=o)},function(t,e,n){var r=n(299);"string"==typeof r&&(r=[[t.i,r,""]]);n(2)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(1)(),e.push([t.i,"\n\t#rop-sidebar-selector[_v-2f268e6a] {\n\t\tborder: 1px solid #e5e5e5;\n\t\tbackground: #fff;\n\t}\n\t\n\t#rop-posts-listing .rop-post-item td[_v-2f268e6a] {\n\t\tposition: relative;\n\t}\n\t\n\t#rop-posts-table[_v-2f268e6a] {\n\t\tmargin-top: 20px;\n\t}\n\t\n\t#rop-posts-listing .rop-post-item:hover button.rop-exclude-post[_v-2f268e6a] {\n\t\tdisplay: block;\n\t}\n\t\n\t#rop-posts-listing .rop-post-item td button.rop-exclude-post[_v-2f268e6a] {\n\t\tposition: absolute;\n\t\ttop: 5px;\n\t\tright: 10px;\n\t\tdisplay: none;\n\t\tpadding: 0px 20px;\n\t}\n\t\n\t.rop-post-true[_v-2f268e6a] {\n\t\topacity: 0.8;\n\t\tbackground-color: #F6DBDA;\n\t\t\n\t}\n\t\n\t.rop-load-more-posts[_v-2f268e6a] {\n\t\ttext-align: center;\n\t}\n",""])},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(68),i=r(o),a=n(72),s=r(a),c=n(7),u=r(c);t.exports={name:"exclude-posts-page",data:function(){return{searchQuery:"",show_excluded:!1,postTimeout:"",paged:1,has_pages:!0,labels:this.$store.state.labels.settings,upsell_link:ropApiSettings.upsell_link,is_loading:!1,is_loading_single:!1}},watch:{searchQuery:function(t){this.searchUpdate(t)},postsAvailable:function(t){this.has_pages=this.postsAvailable.length%100==0}},computed:{generalSettings:function(){return this.$store.state.generalSettings},isPro:function(){return this.$store.state.licence>=1},postTypes:function(){return this.$store.state.generalSettings.available_post_types},taxonomies:function(){return this.requestPostUpdate(),this.$store.state.generalSettings.available_taxonomies},postsAvailable:function(){return this.$store.state.generalSettings.available_posts}},mounted:function(){this.$log.info("In General Settings state "),this.getGeneralSettings()},methods:{excludeSinglePost:function(t,e){var n=this;this.$log.info("Excluding post ",t,e),this.is_loading_single=!0,this.$store.dispatch("fetchAJAXPromise",{req:"exclude_post",data:{post_id:t,exclude:e}}).then(function(r){n.is_loading_single=!1;var o=!1,i={};n.postsAvailable.some(function(e,n){return e.value===t&&(o=n,e.selected=!0,i=e),e.value===t});!1!==o&&(e?u.default.delete(n.postsAvailable,o):u.default.set(n.postsAvailable,o,i)),n.$log.info("Excluding post ",o),n.$log.debug("Succesfully fetched.")},function(t){n.is_loading_single=!1,n.$log.error("Can not exclude post settings.")})},excludePostsBatch:function(){var t=this;this.$log.info("Excluding posts batch",this.searchQuery),this.is_loading=!0;var e=this.$store.state.generalSettings.selected_post_types,n=this.$store.state.generalSettings.selected_taxonomies;this.$store.dispatch("fetchAJAXPromise",{req:"exclude_post_batch",data:{post_types:e,search:this.searchQuery,taxonomies:n,exclude:this.generalSettings.exclude_taxonomies}}).then(function(e){t.is_loading=!1,t.postsAvailable.map(function(t,e){t.selected=!0}),t.$log.debug("Succesfully excluded based on key.",t.searchQuery)},function(e){t.is_loading=!1,t.$log.error("Can not exclude in batch.")})},getGeneralSettings:function(){var t=this;0===this.$store.state.generalSettings.length&&(this.is_loading=!0,this.$log.info("Fetching general settings."),this.$store.dispatch("fetchAJAXPromise",{req:"get_general_settings"}).then(function(e){t.is_loading=!1,t.$log.debug("Succesfully fetched.")},function(e){t.is_loading=!1,t.$log.error("Can not fetch the general settings.")}))},searchUpdate:function(t){this.searchQuery=t,this.requestPostUpdate()},updatedPostTypes:function(t){var e=[];for(var n in t)e.push(t[n].value);this.$store.commit("updateState",{stateData:t,requestName:"update_selected_post_types"}),this.$store.dispatch("fetchAJAX",{req:"get_taxonomies",data:{post_types:e}}),this.requestPostUpdate()},updatedTaxonomies:function(t){var e=[];for(var n in t)e.push(t[n].value);this.$store.commit("updateState",{stateData:t,requestName:"update_selected_taxonomies"}),this.requestPostUpdate()},excludeTaxonomiesChange:function(){this.requestPostUpdate()},excludePostsChange:function(){this.requestPostUpdate()},doPostUpdate:function(){var t=this;arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.is_loading_single=!0:(this.paged=1,this.is_loading=!0);var e=this.$store.state.generalSettings.selected_post_types,n=this.$store.state.generalSettings.selected_taxonomies;this.$log.info("Sending request for loading posts.."),this.$store.dispatch("fetchAJAXPromise",{req:"get_posts",data:{post_types:e,search_query:this.searchQuery,show_excluded:this.show_excluded,taxonomies:n,page:this.paged,exclude:this.generalSettings.exclude_taxonomies}}).then(function(e){t.is_loading=!1,t.is_loading_single=!1,t.$log.info("Successfully loaded psots.")},function(e){t.is_loading=!1,t.is_loading_single=!1,u.default.$log.error("Got nothing from server. Prompt user to check internet connection and try again",e)})},requestPostUpdate:function(){""!==this.postTimeout&&clearTimeout(this.postTimeout),this.postTimeout=setTimeout(this.doPostUpdate,500)},loadMorePosts:function(){this.paged++,this.doPostUpdate(!1)},saveGeneralSettings:function(){var t=this,e=this.$store.state.generalSettings.selected_post_types,n=this.$store.state.generalSettings.selected_taxonomies,r=this.generalSettings.exclude_taxonomies;this.is_loading=!0,this.$log.info("Sending request for saving general settings.."),this.$store.dispatch("fetchAJAXPromise",{req:"save_general_settings",updateState:!1,data:{selected_post_types:e,selected_taxonomies:n,exclude_taxonomies:r}}).then(function(e){t.is_loading=!1,t.$log.info("Successfully saved general settings.")},function(e){t.$log.error("Successfully saved general settings."),t.is_loading=!1,u.default.$log.error("Got nothing from server. Prompt user to check internet connection and try again",e)})}},components:{MultipleSelect:i.default,UpsellSidebar:s.default}}},function(t,e){t.exports='\n\t<div id="rop_core" class="columns " _v-2f268e6a="">\n\t\t<div id="rop-sidebar-selector" class="column col-3 col-xl-5 col-lg-5 col-md-6 col-sm-6 col-xs-12 pull-right" _v-2f268e6a="">\n\t\t\t<div class="columns py-2" :class="\'rop-control-container-\'+isPro" _v-2f268e6a="">\n\t\t\t\t<div class="column col-12 col-sm-12 vertical-align rop-control" _v-2f268e6a="">\n\t\t\t\t\t<b _v-2f268e6a="">{{labels.post_types_title}}</b>\n\t\t\t\t\t<p class="text-gray" _v-2f268e6a="">{{labels.post_types_desc}}</p>\n\t\t\t\t</div>\n\t\t\t\t<div class="column col-12 col-sm-12 vertical-align text-left rop-control" _v-2f268e6a="">\n\t\t\t\t\t<multiple-select :options="postTypes" :disabled="isPro" :selected="generalSettings.selected_post_types" :changed-selection="updatedPostTypes" _v-2f268e6a=""></multiple-select>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<span class="divider" _v-2f268e6a=""></span>\n\t\t\t<div class="columns py-2" v-if="!isPro" _v-2f268e6a="">\n\t\t\t\t<div class="column text-center" _v-2f268e6a="">\n\t\t\t\t\t<p class="upsell" _v-2f268e6a=""><i class="fa fa-lock" _v-2f268e6a=""></i> {{labels.post_types_upsell}}</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="columns py-2" _v-2f268e6a="">\n\t\t\t\t<div class="column col-12 col-sm-12 vertical-align" _v-2f268e6a="">\n\t\t\t\t\t<b _v-2f268e6a="">{{labels.taxonomies_title}}</b>\n\t\t\t\t\t<p class="text-gray" _v-2f268e6a="">{{labels.taxonomies_desc}}</p>\n\t\t\t\t</div>\n\t\t\t\t<div class="column col-12 col-sm-12 vertical-align text-left" _v-2f268e6a="">\n\t\t\t\t\t<div class="input-group" _v-2f268e6a="">\n\t\t\t\t\t\t<multiple-select :options="taxonomies" :selected="generalSettings.selected_taxonomies" :changed-selection="updatedTaxonomies" _v-2f268e6a=""></multiple-select>\n\t\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="columns" _v-2f268e6a="">\n\t\t\t\t\t\t<span class="input-group-addon column col-6 pull-right vertical-align" _v-2f268e6a="">\n\t\t\t\t\t\t\t\t<label class="form-checkbox" _v-2f268e6a="">{{labels.taxonomies_exclude_explicit}}\n\t\t\t\t\t\t\t\t\t<input type="checkbox" v-model="generalSettings.exclude_taxonomies" @change="excludeTaxonomiesChange" _v-2f268e6a="">\n\t\t\t\t\t\t\t\t\t<i class="form-icon" _v-2f268e6a=""></i>\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<div class="column col-6 py-2 text-right" _v-2f268e6a="">\n\t\t\t\t\t\t\t<button class="btn btn-primary" @click="saveGeneralSettings" _v-2f268e6a="">\n\t\t\t\t\t\t\t\t<i class="fa fa-save " v-if="!this.is_loading" _v-2f268e6a=""></i>\n\t\t\t\t\t\t\t\t<i class="fa fa-spinner fa-spin" v-else="" _v-2f268e6a=""></i>\n\t\t\t\t\t\t\t\t{{labels.save_filters}}\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\n\t\t\t</div>\n\t\t\t<upsell-sidebar _v-2f268e6a=""></upsell-sidebar>\n\t\t</div>\n\t\t<div id="rop-posts-listing" class="column col-9 col-xl-7 col-lg-7 col-md-6 col-sm-6 col-xs-12 col- pull-left" _v-2f268e6a="">\n\t\t\t<div class="columns py-2" _v-2f268e6a="">\n\t\t\t\t<div class="column col-12 col-sm-12 vertical-align" _v-2f268e6a="">\n\t\t\t\t\t<div class="input-group has-icon-right" _v-2f268e6a="">\n\t\t\t\t\t\t<input class="form-input" type="text" v-model="searchQuery" :placeholder="labels.search_posts_to_exclude" _v-2f268e6a="">\n\t\t\t\t\t\t<i class="form-icon loading" v-if="is_loading" _v-2f268e6a=""></i>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="column col-12 col-sm-12 mt-2" _v-2f268e6a="">\n\t\t\t\t\t<div class="form-group pull-right" v-if="searchQuery != \'\' && ! show_excluded" _v-2f268e6a="">\n\t\t\t\t\t\t<button class="btn btn-primary" @click="excludePostsBatch" _v-2f268e6a="">\n\t\t\t\t\t\t\t<i class="fa fa-save " v-if="!this.is_loading" _v-2f268e6a=""></i>\n\t\t\t\t\t\t\t<i class="fa fa-spinner fa-spin" v-else="" _v-2f268e6a=""></i>\n\t\t\t\t\t\t\t{{labels.exclude_matching}} "{{searchQuery}}"\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group pull-right " _v-2f268e6a="">\n\t\t\t\t\t\t<label class="form-switch" _v-2f268e6a="">\n\t\t\t\t\t\t\t<input type="checkbox" v-model="show_excluded" @change="excludePostsChange" _v-2f268e6a="">\n\t\t\t\t\t\t\t<i class="form-icon" _v-2f268e6a=""></i>{{labels.search_posts_show_excluded}}\n\t\t\t\t\t\t</label>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="column col-12 px-2" v-if="postsAvailable" _v-2f268e6a="">\n\t\t\t\t\t<div v-if="postsAvailable.length === 0 && !is_loading" _v-2f268e6a="">\n\t\t\t\t\t\t{{labels.no_posts_found}}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div v-else="" _v-2f268e6a="">\n\t\t\t\t\t\t<table id="rop-posts-table" class="table table-striped table-hover" v-if=" ! is_loading" _v-2f268e6a="">\n\t\t\t\t\t\t\t<tbody _v-2f268e6a=""><tr v-for="(post,index ) in postsAvailable" class="rop-post-item" _v-2f268e6a="">\n\t\t\t\t\t\t\t\t<td :class="\'rop-post-\' + post.selected" _v-2f268e6a="">{{post.name}}\n\t\t\t\t\t\t\t\t\t<button class="btn btn-error rop-exclude-post" @click="excludeSinglePost(post.value,post.selected)" _v-2f268e6a="">\n\t\t\t\t\t\t\t\t\t\t<i class="fa" :class="\'fa-\' + (post.selected ? \'plus\' : \'remove\') " v-if="!is_loading_single" _v-2f268e6a=""></i>\n\t\t\t\t\t\t\t\t\t\t<i class="fa fa-spinner fa-spin" v-else="" _v-2f268e6a=""></i>\n\t\t\t\t\t\t\t\t\t\t<span v-html=" ( post.selected ? labels.include_single_post : labels.exclude_single_post) " _v-2f268e6a=""> </span>\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr v-if="has_pages" _v-2f268e6a="">\n\t\t\t\t\t\t\t\t<td class="rop-load-more-posts" _v-2f268e6a="">\n\t\t\t\t\t\t\t\t\t<button class="btn btn-error" @click="loadMorePosts()" _v-2f268e6a="">\n\t\t\t\t\t\t\t\t\t\t<i class="fa fa-newspaper-o " v-if="!is_loading_single" _v-2f268e6a=""></i>\n\t\t\t\t\t\t\t\t\t\t<i class="fa fa-spinner fa-spin" v-else="" _v-2f268e6a=""></i>\n\t\t\t\t\t\t\t\t\t\t{{labels.load_more_posts}}\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody></table>\n\t\t\t\t\t\t<div class="loading loading-lg" v-else="" _v-2f268e6a=""></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\n\t</div>\n'}]);
|
assets/js/build/rop.js
DELETED
@@ -1,39098 +0,0 @@
|
|
1 |
-
/******/ (function(modules) { // webpackBootstrap
|
2 |
-
/******/ // The module cache
|
3 |
-
/******/ var installedModules = {};
|
4 |
-
/******/
|
5 |
-
/******/ // The require function
|
6 |
-
/******/ function __webpack_require__(moduleId) {
|
7 |
-
/******/
|
8 |
-
/******/ // Check if module is in cache
|
9 |
-
/******/ if(installedModules[moduleId]) {
|
10 |
-
/******/ return installedModules[moduleId].exports;
|
11 |
-
/******/ }
|
12 |
-
/******/ // Create a new module (and put it into the cache)
|
13 |
-
/******/ var module = installedModules[moduleId] = {
|
14 |
-
/******/ i: moduleId,
|
15 |
-
/******/ l: false,
|
16 |
-
/******/ exports: {}
|
17 |
-
/******/ };
|
18 |
-
/******/
|
19 |
-
/******/ // Execute the module function
|
20 |
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
21 |
-
/******/
|
22 |
-
/******/ // Flag the module as loaded
|
23 |
-
/******/ module.l = true;
|
24 |
-
/******/
|
25 |
-
/******/ // Return the exports of the module
|
26 |
-
/******/ return module.exports;
|
27 |
-
/******/ }
|
28 |
-
/******/
|
29 |
-
/******/
|
30 |
-
/******/ // expose the modules object (__webpack_modules__)
|
31 |
-
/******/ __webpack_require__.m = modules;
|
32 |
-
/******/
|
33 |
-
/******/ // expose the module cache
|
34 |
-
/******/ __webpack_require__.c = installedModules;
|
35 |
-
/******/
|
36 |
-
/******/ // define getter function for harmony exports
|
37 |
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
38 |
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
39 |
-
/******/ Object.defineProperty(exports, name, {
|
40 |
-
/******/ configurable: false,
|
41 |
-
/******/ enumerable: true,
|
42 |
-
/******/ get: getter
|
43 |
-
/******/ });
|
44 |
-
/******/ }
|
45 |
-
/******/ };
|
46 |
-
/******/
|
47 |
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
48 |
-
/******/ __webpack_require__.n = function(module) {
|
49 |
-
/******/ var getter = module && module.__esModule ?
|
50 |
-
/******/ function getDefault() { return module['default']; } :
|
51 |
-
/******/ function getModuleExports() { return module; };
|
52 |
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
53 |
-
/******/ return getter;
|
54 |
-
/******/ };
|
55 |
-
/******/
|
56 |
-
/******/ // Object.prototype.hasOwnProperty.call
|
57 |
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
58 |
-
/******/
|
59 |
-
/******/ // __webpack_public_path__
|
60 |
-
/******/ __webpack_require__.p = "/";
|
61 |
-
/******/
|
62 |
-
/******/ // Load entry module and return exports
|
63 |
-
/******/ return __webpack_require__(__webpack_require__.s = 159);
|
64 |
-
/******/ })
|
65 |
-
/************************************************************************/
|
66 |
-
/******/ ([
|
67 |
-
/* 0 */
|
68 |
-
/***/ (function(module, exports, __webpack_require__) {
|
69 |
-
|
70 |
-
/* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js
|
71 |
-
|
72 |
-
;(function (global, factory) {
|
73 |
-
true ? module.exports = factory() :
|
74 |
-
typeof define === 'function' && define.amd ? define(factory) :
|
75 |
-
global.moment = factory()
|
76 |
-
}(this, (function () { 'use strict';
|
77 |
-
|
78 |
-
var hookCallback;
|
79 |
-
|
80 |
-
function hooks () {
|
81 |
-
return hookCallback.apply(null, arguments);
|
82 |
-
}
|
83 |
-
|
84 |
-
// This is done to register the method called with moment()
|
85 |
-
// without creating circular dependencies.
|
86 |
-
function setHookCallback (callback) {
|
87 |
-
hookCallback = callback;
|
88 |
-
}
|
89 |
-
|
90 |
-
function isArray(input) {
|
91 |
-
return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
|
92 |
-
}
|
93 |
-
|
94 |
-
function isObject(input) {
|
95 |
-
// IE8 will treat undefined and null as object if it wasn't for
|
96 |
-
// input != null
|
97 |
-
return input != null && Object.prototype.toString.call(input) === '[object Object]';
|
98 |
-
}
|
99 |
-
|
100 |
-
function isObjectEmpty(obj) {
|
101 |
-
if (Object.getOwnPropertyNames) {
|
102 |
-
return (Object.getOwnPropertyNames(obj).length === 0);
|
103 |
-
} else {
|
104 |
-
var k;
|
105 |
-
for (k in obj) {
|
106 |
-
if (obj.hasOwnProperty(k)) {
|
107 |
-
return false;
|
108 |
-
}
|
109 |
-
}
|
110 |
-
return true;
|
111 |
-
}
|
112 |
-
}
|
113 |
-
|
114 |
-
function isUndefined(input) {
|
115 |
-
return input === void 0;
|
116 |
-
}
|
117 |
-
|
118 |
-
function isNumber(input) {
|
119 |
-
return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
|
120 |
-
}
|
121 |
-
|
122 |
-
function isDate(input) {
|
123 |
-
return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
|
124 |
-
}
|
125 |
-
|
126 |
-
function map(arr, fn) {
|
127 |
-
var res = [], i;
|
128 |
-
for (i = 0; i < arr.length; ++i) {
|
129 |
-
res.push(fn(arr[i], i));
|
130 |
-
}
|
131 |
-
return res;
|
132 |
-
}
|
133 |
-
|
134 |
-
function hasOwnProp(a, b) {
|
135 |
-
return Object.prototype.hasOwnProperty.call(a, b);
|
136 |
-
}
|
137 |
-
|
138 |
-
function extend(a, b) {
|
139 |
-
for (var i in b) {
|
140 |
-
if (hasOwnProp(b, i)) {
|
141 |
-
a[i] = b[i];
|
142 |
-
}
|
143 |
-
}
|
144 |
-
|
145 |
-
if (hasOwnProp(b, 'toString')) {
|
146 |
-
a.toString = b.toString;
|
147 |
-
}
|
148 |
-
|
149 |
-
if (hasOwnProp(b, 'valueOf')) {
|
150 |
-
a.valueOf = b.valueOf;
|
151 |
-
}
|
152 |
-
|
153 |
-
return a;
|
154 |
-
}
|
155 |
-
|
156 |
-
function createUTC (input, format, locale, strict) {
|
157 |
-
return createLocalOrUTC(input, format, locale, strict, true).utc();
|
158 |
-
}
|
159 |
-
|
160 |
-
function defaultParsingFlags() {
|
161 |
-
// We need to deep clone this object.
|
162 |
-
return {
|
163 |
-
empty : false,
|
164 |
-
unusedTokens : [],
|
165 |
-
unusedInput : [],
|
166 |
-
overflow : -2,
|
167 |
-
charsLeftOver : 0,
|
168 |
-
nullInput : false,
|
169 |
-
invalidMonth : null,
|
170 |
-
invalidFormat : false,
|
171 |
-
userInvalidated : false,
|
172 |
-
iso : false,
|
173 |
-
parsedDateParts : [],
|
174 |
-
meridiem : null,
|
175 |
-
rfc2822 : false,
|
176 |
-
weekdayMismatch : false
|
177 |
-
};
|
178 |
-
}
|
179 |
-
|
180 |
-
function getParsingFlags(m) {
|
181 |
-
if (m._pf == null) {
|
182 |
-
m._pf = defaultParsingFlags();
|
183 |
-
}
|
184 |
-
return m._pf;
|
185 |
-
}
|
186 |
-
|
187 |
-
var some;
|
188 |
-
if (Array.prototype.some) {
|
189 |
-
some = Array.prototype.some;
|
190 |
-
} else {
|
191 |
-
some = function (fun) {
|
192 |
-
var t = Object(this);
|
193 |
-
var len = t.length >>> 0;
|
194 |
-
|
195 |
-
for (var i = 0; i < len; i++) {
|
196 |
-
if (i in t && fun.call(this, t[i], i, t)) {
|
197 |
-
return true;
|
198 |
-
}
|
199 |
-
}
|
200 |
-
|
201 |
-
return false;
|
202 |
-
};
|
203 |
-
}
|
204 |
-
|
205 |
-
function isValid(m) {
|
206 |
-
if (m._isValid == null) {
|
207 |
-
var flags = getParsingFlags(m);
|
208 |
-
var parsedParts = some.call(flags.parsedDateParts, function (i) {
|
209 |
-
return i != null;
|
210 |
-
});
|
211 |
-
var isNowValid = !isNaN(m._d.getTime()) &&
|
212 |
-
flags.overflow < 0 &&
|
213 |
-
!flags.empty &&
|
214 |
-
!flags.invalidMonth &&
|
215 |
-
!flags.invalidWeekday &&
|
216 |
-
!flags.weekdayMismatch &&
|
217 |
-
!flags.nullInput &&
|
218 |
-
!flags.invalidFormat &&
|
219 |
-
!flags.userInvalidated &&
|
220 |
-
(!flags.meridiem || (flags.meridiem && parsedParts));
|
221 |
-
|
222 |
-
if (m._strict) {
|
223 |
-
isNowValid = isNowValid &&
|
224 |
-
flags.charsLeftOver === 0 &&
|
225 |
-
flags.unusedTokens.length === 0 &&
|
226 |
-
flags.bigHour === undefined;
|
227 |
-
}
|
228 |
-
|
229 |
-
if (Object.isFrozen == null || !Object.isFrozen(m)) {
|
230 |
-
m._isValid = isNowValid;
|
231 |
-
}
|
232 |
-
else {
|
233 |
-
return isNowValid;
|
234 |
-
}
|
235 |
-
}
|
236 |
-
return m._isValid;
|
237 |
-
}
|
238 |
-
|
239 |
-
function createInvalid (flags) {
|
240 |
-
var m = createUTC(NaN);
|
241 |
-
if (flags != null) {
|
242 |
-
extend(getParsingFlags(m), flags);
|
243 |
-
}
|
244 |
-
else {
|
245 |
-
getParsingFlags(m).userInvalidated = true;
|
246 |
-
}
|
247 |
-
|
248 |
-
return m;
|
249 |
-
}
|
250 |
-
|
251 |
-
// Plugins that add properties should also add the key here (null value),
|
252 |
-
// so we can properly clone ourselves.
|
253 |
-
var momentProperties = hooks.momentProperties = [];
|
254 |
-
|
255 |
-
function copyConfig(to, from) {
|
256 |
-
var i, prop, val;
|
257 |
-
|
258 |
-
if (!isUndefined(from._isAMomentObject)) {
|
259 |
-
to._isAMomentObject = from._isAMomentObject;
|
260 |
-
}
|
261 |
-
if (!isUndefined(from._i)) {
|
262 |
-
to._i = from._i;
|
263 |
-
}
|
264 |
-
if (!isUndefined(from._f)) {
|
265 |
-
to._f = from._f;
|
266 |
-
}
|
267 |
-
if (!isUndefined(from._l)) {
|
268 |
-
to._l = from._l;
|
269 |
-
}
|
270 |
-
if (!isUndefined(from._strict)) {
|
271 |
-
to._strict = from._strict;
|
272 |
-
}
|
273 |
-
if (!isUndefined(from._tzm)) {
|
274 |
-
to._tzm = from._tzm;
|
275 |
-
}
|
276 |
-
if (!isUndefined(from._isUTC)) {
|
277 |
-
to._isUTC = from._isUTC;
|
278 |
-
}
|
279 |
-
if (!isUndefined(from._offset)) {
|
280 |
-
to._offset = from._offset;
|
281 |
-
}
|
282 |
-
if (!isUndefined(from._pf)) {
|
283 |
-
to._pf = getParsingFlags(from);
|
284 |
-
}
|
285 |
-
if (!isUndefined(from._locale)) {
|
286 |
-
to._locale = from._locale;
|
287 |
-
}
|
288 |
-
|
289 |
-
if (momentProperties.length > 0) {
|
290 |
-
for (i = 0; i < momentProperties.length; i++) {
|
291 |
-
prop = momentProperties[i];
|
292 |
-
val = from[prop];
|
293 |
-
if (!isUndefined(val)) {
|
294 |
-
to[prop] = val;
|
295 |
-
}
|
296 |
-
}
|
297 |
-
}
|
298 |
-
|
299 |
-
return to;
|
300 |
-
}
|
301 |
-
|
302 |
-
var updateInProgress = false;
|
303 |
-
|
304 |
-
// Moment prototype object
|
305 |
-
function Moment(config) {
|
306 |
-
copyConfig(this, config);
|
307 |
-
this._d = new Date(config._d != null ? config._d.getTime() : NaN);
|
308 |
-
if (!this.isValid()) {
|
309 |
-
this._d = new Date(NaN);
|
310 |
-
}
|
311 |
-
// Prevent infinite loop in case updateOffset creates new moment
|
312 |
-
// objects.
|
313 |
-
if (updateInProgress === false) {
|
314 |
-
updateInProgress = true;
|
315 |
-
hooks.updateOffset(this);
|
316 |
-
updateInProgress = false;
|
317 |
-
}
|
318 |
-
}
|
319 |
-
|
320 |
-
function isMoment (obj) {
|
321 |
-
return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
|
322 |
-
}
|
323 |
-
|
324 |
-
function absFloor (number) {
|
325 |
-
if (number < 0) {
|
326 |
-
// -0 -> 0
|
327 |
-
return Math.ceil(number) || 0;
|
328 |
-
} else {
|
329 |
-
return Math.floor(number);
|
330 |
-
}
|
331 |
-
}
|
332 |
-
|
333 |
-
function toInt(argumentForCoercion) {
|
334 |
-
var coercedNumber = +argumentForCoercion,
|
335 |
-
value = 0;
|
336 |
-
|
337 |
-
if (coercedNumber !== 0 && isFinite(coercedNumber)) {
|
338 |
-
value = absFloor(coercedNumber);
|
339 |
-
}
|
340 |
-
|
341 |
-
return value;
|
342 |
-
}
|
343 |
-
|
344 |
-
// compare two arrays, return the number of differences
|
345 |
-
function compareArrays(array1, array2, dontConvert) {
|
346 |
-
var len = Math.min(array1.length, array2.length),
|
347 |
-
lengthDiff = Math.abs(array1.length - array2.length),
|
348 |
-
diffs = 0,
|
349 |
-
i;
|
350 |
-
for (i = 0; i < len; i++) {
|
351 |
-
if ((dontConvert && array1[i] !== array2[i]) ||
|
352 |
-
(!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
|
353 |
-
diffs++;
|
354 |
-
}
|
355 |
-
}
|
356 |
-
return diffs + lengthDiff;
|
357 |
-
}
|
358 |
-
|
359 |
-
function warn(msg) {
|
360 |
-
if (hooks.suppressDeprecationWarnings === false &&
|
361 |
-
(typeof console !== 'undefined') && console.warn) {
|
362 |
-
console.warn('Deprecation warning: ' + msg);
|
363 |
-
}
|
364 |
-
}
|
365 |
-
|
366 |
-
function deprecate(msg, fn) {
|
367 |
-
var firstTime = true;
|
368 |
-
|
369 |
-
return extend(function () {
|
370 |
-
if (hooks.deprecationHandler != null) {
|
371 |
-
hooks.deprecationHandler(null, msg);
|
372 |
-
}
|
373 |
-
if (firstTime) {
|
374 |
-
var args = [];
|
375 |
-
var arg;
|
376 |
-
for (var i = 0; i < arguments.length; i++) {
|
377 |
-
arg = '';
|
378 |
-
if (typeof arguments[i] === 'object') {
|
379 |
-
arg += '\n[' + i + '] ';
|
380 |
-
for (var key in arguments[0]) {
|
381 |
-
arg += key + ': ' + arguments[0][key] + ', ';
|
382 |
-
}
|
383 |
-
arg = arg.slice(0, -2); // Remove trailing comma and space
|
384 |
-
} else {
|
385 |
-
arg = arguments[i];
|
386 |
-
}
|
387 |
-
args.push(arg);
|
388 |
-
}
|
389 |
-
warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack);
|
390 |
-
firstTime = false;
|
391 |
-
}
|
392 |
-
return fn.apply(this, arguments);
|
393 |
-
}, fn);
|
394 |
-
}
|
395 |
-
|
396 |
-
var deprecations = {};
|
397 |
-
|
398 |
-
function deprecateSimple(name, msg) {
|
399 |
-
if (hooks.deprecationHandler != null) {
|
400 |
-
hooks.deprecationHandler(name, msg);
|
401 |
-
}
|
402 |
-
if (!deprecations[name]) {
|
403 |
-
warn(msg);
|
404 |
-
deprecations[name] = true;
|
405 |
-
}
|
406 |
-
}
|
407 |
-
|
408 |
-
hooks.suppressDeprecationWarnings = false;
|
409 |
-
hooks.deprecationHandler = null;
|
410 |
-
|
411 |
-
function isFunction(input) {
|
412 |
-
return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
|
413 |
-
}
|
414 |
-
|
415 |
-
function set (config) {
|
416 |
-
var prop, i;
|
417 |
-
for (i in config) {
|
418 |
-
prop = config[i];
|
419 |
-
if (isFunction(prop)) {
|
420 |
-
this[i] = prop;
|
421 |
-
} else {
|
422 |
-
this['_' + i] = prop;
|
423 |
-
}
|
424 |
-
}
|
425 |
-
this._config = config;
|
426 |
-
// Lenient ordinal parsing accepts just a number in addition to
|
427 |
-
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
|
428 |
-
// TODO: Remove "ordinalParse" fallback in next major release.
|
429 |
-
this._dayOfMonthOrdinalParseLenient = new RegExp(
|
430 |
-
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
|
431 |
-
'|' + (/\d{1,2}/).source);
|
432 |
-
}
|
433 |
-
|
434 |
-
function mergeConfigs(parentConfig, childConfig) {
|
435 |
-
var res = extend({}, parentConfig), prop;
|
436 |
-
for (prop in childConfig) {
|
437 |
-
if (hasOwnProp(childConfig, prop)) {
|
438 |
-
if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
|
439 |
-
res[prop] = {};
|
440 |
-
extend(res[prop], parentConfig[prop]);
|
441 |
-
extend(res[prop], childConfig[prop]);
|
442 |
-
} else if (childConfig[prop] != null) {
|
443 |
-
res[prop] = childConfig[prop];
|
444 |
-
} else {
|
445 |
-
delete res[prop];
|
446 |
-
}
|
447 |
-
}
|
448 |
-
}
|
449 |
-
for (prop in parentConfig) {
|
450 |
-
if (hasOwnProp(parentConfig, prop) &&
|
451 |
-
!hasOwnProp(childConfig, prop) &&
|
452 |
-
isObject(parentConfig[prop])) {
|
453 |
-
// make sure changes to properties don't modify parent config
|
454 |
-
res[prop] = extend({}, res[prop]);
|
455 |
-
}
|
456 |
-
}
|
457 |
-
return res;
|
458 |
-
}
|
459 |
-
|
460 |
-
function Locale(config) {
|
461 |
-
if (config != null) {
|
462 |
-
this.set(config);
|
463 |
-
}
|
464 |
-
}
|
465 |
-
|
466 |
-
var keys;
|
467 |
-
|
468 |
-
if (Object.keys) {
|
469 |
-
keys = Object.keys;
|
470 |
-
} else {
|
471 |
-
keys = function (obj) {
|
472 |
-
var i, res = [];
|
473 |
-
for (i in obj) {
|
474 |
-
if (hasOwnProp(obj, i)) {
|
475 |
-
res.push(i);
|
476 |
-
}
|
477 |
-
}
|
478 |
-
return res;
|
479 |
-
};
|
480 |
-
}
|
481 |
-
|
482 |
-
var defaultCalendar = {
|
483 |
-
sameDay : '[Today at] LT',
|
484 |
-
nextDay : '[Tomorrow at] LT',
|
485 |
-
nextWeek : 'dddd [at] LT',
|
486 |
-
lastDay : '[Yesterday at] LT',
|
487 |
-
lastWeek : '[Last] dddd [at] LT',
|
488 |
-
sameElse : 'L'
|
489 |
-
};
|
490 |
-
|
491 |
-
function calendar (key, mom, now) {
|
492 |
-
var output = this._calendar[key] || this._calendar['sameElse'];
|
493 |
-
return isFunction(output) ? output.call(mom, now) : output;
|
494 |
-
}
|
495 |
-
|
496 |
-
var defaultLongDateFormat = {
|
497 |
-
LTS : 'h:mm:ss A',
|
498 |
-
LT : 'h:mm A',
|
499 |
-
L : 'MM/DD/YYYY',
|
500 |
-
LL : 'MMMM D, YYYY',
|
501 |
-
LLL : 'MMMM D, YYYY h:mm A',
|
502 |
-
LLLL : 'dddd, MMMM D, YYYY h:mm A'
|
503 |
-
};
|
504 |
-
|
505 |
-
function longDateFormat (key) {
|
506 |
-
var format = this._longDateFormat[key],
|
507 |
-
formatUpper = this._longDateFormat[key.toUpperCase()];
|
508 |
-
|
509 |
-
if (format || !formatUpper) {
|
510 |
-
return format;
|
511 |
-
}
|
512 |
-
|
513 |
-
this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
|
514 |
-
return val.slice(1);
|
515 |
-
});
|
516 |
-
|
517 |
-
return this._longDateFormat[key];
|
518 |
-
}
|
519 |
-
|
520 |
-
var defaultInvalidDate = 'Invalid date';
|
521 |
-
|
522 |
-
function invalidDate () {
|
523 |
-
return this._invalidDate;
|
524 |
-
}
|
525 |
-
|
526 |
-
var defaultOrdinal = '%d';
|
527 |
-
var defaultDayOfMonthOrdinalParse = /\d{1,2}/;
|
528 |
-
|
529 |
-
function ordinal (number) {
|
530 |
-
return this._ordinal.replace('%d', number);
|
531 |
-
}
|
532 |
-
|
533 |
-
var defaultRelativeTime = {
|
534 |
-
future : 'in %s',
|
535 |
-
past : '%s ago',
|
536 |
-
s : 'a few seconds',
|
537 |
-
ss : '%d seconds',
|
538 |
-
m : 'a minute',
|
539 |
-
mm : '%d minutes',
|
540 |
-
h : 'an hour',
|
541 |
-
hh : '%d hours',
|
542 |
-
d : 'a day',
|
543 |
-
dd : '%d days',
|
544 |
-
M : 'a month',
|
545 |
-
MM : '%d months',
|
546 |
-
y : 'a year',
|
547 |
-
yy : '%d years'
|
548 |
-
};
|
549 |
-
|
550 |
-
function relativeTime (number, withoutSuffix, string, isFuture) {
|
551 |
-
var output = this._relativeTime[string];
|
552 |
-
return (isFunction(output)) ?
|
553 |
-
output(number, withoutSuffix, string, isFuture) :
|
554 |
-
output.replace(/%d/i, number);
|
555 |
-
}
|
556 |
-
|
557 |
-
function pastFuture (diff, output) {
|
558 |
-
var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
|
559 |
-
return isFunction(format) ? format(output) : format.replace(/%s/i, output);
|
560 |
-
}
|
561 |
-
|
562 |
-
var aliases = {};
|
563 |
-
|
564 |
-
function addUnitAlias (unit, shorthand) {
|
565 |
-
var lowerCase = unit.toLowerCase();
|
566 |
-
aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
|
567 |
-
}
|
568 |
-
|
569 |
-
function normalizeUnits(units) {
|
570 |
-
return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
|
571 |
-
}
|
572 |
-
|
573 |
-
function normalizeObjectUnits(inputObject) {
|
574 |
-
var normalizedInput = {},
|
575 |
-
normalizedProp,
|
576 |
-
prop;
|
577 |
-
|
578 |
-
for (prop in inputObject) {
|
579 |
-
if (hasOwnProp(inputObject, prop)) {
|
580 |
-
normalizedProp = normalizeUnits(prop);
|
581 |
-
if (normalizedProp) {
|
582 |
-
normalizedInput[normalizedProp] = inputObject[prop];
|
583 |
-
}
|
584 |
-
}
|
585 |
-
}
|
586 |
-
|
587 |
-
return normalizedInput;
|
588 |
-
}
|
589 |
-
|
590 |
-
var priorities = {};
|
591 |
-
|
592 |
-
function addUnitPriority(unit, priority) {
|
593 |
-
priorities[unit] = priority;
|
594 |
-
}
|
595 |
-
|
596 |
-
function getPrioritizedUnits(unitsObj) {
|
597 |
-
var units = [];
|
598 |
-
for (var u in unitsObj) {
|
599 |
-
units.push({unit: u, priority: priorities[u]});
|
600 |
-
}
|
601 |
-
units.sort(function (a, b) {
|
602 |
-
return a.priority - b.priority;
|
603 |
-
});
|
604 |
-
return units;
|
605 |
-
}
|
606 |
-
|
607 |
-
function zeroFill(number, targetLength, forceSign) {
|
608 |
-
var absNumber = '' + Math.abs(number),
|
609 |
-
zerosToFill = targetLength - absNumber.length,
|
610 |
-
sign = number >= 0;
|
611 |
-
return (sign ? (forceSign ? '+' : '') : '-') +
|
612 |
-
Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
|
613 |
-
}
|
614 |
-
|
615 |
-
var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;
|
616 |
-
|
617 |
-
var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
|
618 |
-
|
619 |
-
var formatFunctions = {};
|
620 |
-
|
621 |
-
var formatTokenFunctions = {};
|
622 |
-
|
623 |
-
// token: 'M'
|
624 |
-
// padded: ['MM', 2]
|
625 |
-
// ordinal: 'Mo'
|
626 |
-
// callback: function () { this.month() + 1 }
|
627 |
-
function addFormatToken (token, padded, ordinal, callback) {
|
628 |
-
var func = callback;
|
629 |
-
if (typeof callback === 'string') {
|
630 |
-
func = function () {
|
631 |
-
return this[callback]();
|
632 |
-
};
|
633 |
-
}
|
634 |
-
if (token) {
|
635 |
-
formatTokenFunctions[token] = func;
|
636 |
-
}
|
637 |
-
if (padded) {
|
638 |
-
formatTokenFunctions[padded[0]] = function () {
|
639 |
-
return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
|
640 |
-
};
|
641 |
-
}
|
642 |
-
if (ordinal) {
|
643 |
-
formatTokenFunctions[ordinal] = function () {
|
644 |
-
return this.localeData().ordinal(func.apply(this, arguments), token);
|
645 |
-
};
|
646 |
-
}
|
647 |
-
}
|
648 |
-
|
649 |
-
function removeFormattingTokens(input) {
|
650 |
-
if (input.match(/\[[\s\S]/)) {
|
651 |
-
return input.replace(/^\[|\]$/g, '');
|
652 |
-
}
|
653 |
-
return input.replace(/\\/g, '');
|
654 |
-
}
|
655 |
-
|
656 |
-
function makeFormatFunction(format) {
|
657 |
-
var array = format.match(formattingTokens), i, length;
|
658 |
-
|
659 |
-
for (i = 0, length = array.length; i < length; i++) {
|
660 |
-
if (formatTokenFunctions[array[i]]) {
|
661 |
-
array[i] = formatTokenFunctions[array[i]];
|
662 |
-
} else {
|
663 |
-
array[i] = removeFormattingTokens(array[i]);
|
664 |
-
}
|
665 |
-
}
|
666 |
-
|
667 |
-
return function (mom) {
|
668 |
-
var output = '', i;
|
669 |
-
for (i = 0; i < length; i++) {
|
670 |
-
output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
|
671 |
-
}
|
672 |
-
return output;
|
673 |
-
};
|
674 |
-
}
|
675 |
-
|
676 |
-
// format date using native date object
|
677 |
-
function formatMoment(m, format) {
|
678 |
-
if (!m.isValid()) {
|
679 |
-
return m.localeData().invalidDate();
|
680 |
-
}
|
681 |
-
|
682 |
-
format = expandFormat(format, m.localeData());
|
683 |
-
formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
|
684 |
-
|
685 |
-
return formatFunctions[format](m);
|
686 |
-
}
|
687 |
-
|
688 |
-
function expandFormat(format, locale) {
|
689 |
-
var i = 5;
|
690 |
-
|
691 |
-
function replaceLongDateFormatTokens(input) {
|
692 |
-
return locale.longDateFormat(input) || input;
|
693 |
-
}
|
694 |
-
|
695 |
-
localFormattingTokens.lastIndex = 0;
|
696 |
-
while (i >= 0 && localFormattingTokens.test(format)) {
|
697 |
-
format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
|
698 |
-
localFormattingTokens.lastIndex = 0;
|
699 |
-
i -= 1;
|
700 |
-
}
|
701 |
-
|
702 |
-
return format;
|
703 |
-
}
|
704 |
-
|
705 |
-
var match1 = /\d/; // 0 - 9
|
706 |
-
var match2 = /\d\d/; // 00 - 99
|
707 |
-
var match3 = /\d{3}/; // 000 - 999
|
708 |
-
var match4 = /\d{4}/; // 0000 - 9999
|
709 |
-
var match6 = /[+-]?\d{6}/; // -999999 - 999999
|
710 |
-
var match1to2 = /\d\d?/; // 0 - 99
|
711 |
-
var match3to4 = /\d\d\d\d?/; // 999 - 9999
|
712 |
-
var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999
|
713 |
-
var match1to3 = /\d{1,3}/; // 0 - 999
|
714 |
-
var match1to4 = /\d{1,4}/; // 0 - 9999
|
715 |
-
var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
|
716 |
-
|
717 |
-
var matchUnsigned = /\d+/; // 0 - inf
|
718 |
-
var matchSigned = /[+-]?\d+/; // -inf - inf
|
719 |
-
|
720 |
-
var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
|
721 |
-
var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
722 |
-
|
723 |
-
var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
|
724 |
-
|
725 |
-
// any word (or two) characters or numbers including two/three word month in arabic.
|
726 |
-
// includes scottish gaelic two word and hyphenated months
|
727 |
-
var matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;
|
728 |
-
|
729 |
-
var regexes = {};
|
730 |
-
|
731 |
-
function addRegexToken (token, regex, strictRegex) {
|
732 |
-
regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
|
733 |
-
return (isStrict && strictRegex) ? strictRegex : regex;
|
734 |
-
};
|
735 |
-
}
|
736 |
-
|
737 |
-
function getParseRegexForToken (token, config) {
|
738 |
-
if (!hasOwnProp(regexes, token)) {
|
739 |
-
return new RegExp(unescapeFormat(token));
|
740 |
-
}
|
741 |
-
|
742 |
-
return regexes[token](config._strict, config._locale);
|
743 |
-
}
|
744 |
-
|
745 |
-
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
746 |
-
function unescapeFormat(s) {
|
747 |
-
return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
|
748 |
-
return p1 || p2 || p3 || p4;
|
749 |
-
}));
|
750 |
-
}
|
751 |
-
|
752 |
-
function regexEscape(s) {
|
753 |
-
return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
754 |
-
}
|
755 |
-
|
756 |
-
var tokens = {};
|
757 |
-
|
758 |
-
function addParseToken (token, callback) {
|
759 |
-
var i, func = callback;
|
760 |
-
if (typeof token === 'string') {
|
761 |
-
token = [token];
|
762 |
-
}
|
763 |
-
if (isNumber(callback)) {
|
764 |
-
func = function (input, array) {
|
765 |
-
array[callback] = toInt(input);
|
766 |
-
};
|
767 |
-
}
|
768 |
-
for (i = 0; i < token.length; i++) {
|
769 |
-
tokens[token[i]] = func;
|
770 |
-
}
|
771 |
-
}
|
772 |
-
|
773 |
-
function addWeekParseToken (token, callback) {
|
774 |
-
addParseToken(token, function (input, array, config, token) {
|
775 |
-
config._w = config._w || {};
|
776 |
-
callback(input, config._w, config, token);
|
777 |
-
});
|
778 |
-
}
|
779 |
-
|
780 |
-
function addTimeToArrayFromToken(token, input, config) {
|
781 |
-
if (input != null && hasOwnProp(tokens, token)) {
|
782 |
-
tokens[token](input, config._a, config, token);
|
783 |
-
}
|
784 |
-
}
|
785 |
-
|
786 |
-
var YEAR = 0;
|
787 |
-
var MONTH = 1;
|
788 |
-
var DATE = 2;
|
789 |
-
var HOUR = 3;
|
790 |
-
var MINUTE = 4;
|
791 |
-
var SECOND = 5;
|
792 |
-
var MILLISECOND = 6;
|
793 |
-
var WEEK = 7;
|
794 |
-
var WEEKDAY = 8;
|
795 |
-
|
796 |
-
// FORMATTING
|
797 |
-
|
798 |
-
addFormatToken('Y', 0, 0, function () {
|
799 |
-
var y = this.year();
|
800 |
-
return y <= 9999 ? '' + y : '+' + y;
|
801 |
-
});
|
802 |
-
|
803 |
-
addFormatToken(0, ['YY', 2], 0, function () {
|
804 |
-
return this.year() % 100;
|
805 |
-
});
|
806 |
-
|
807 |
-
addFormatToken(0, ['YYYY', 4], 0, 'year');
|
808 |
-
addFormatToken(0, ['YYYYY', 5], 0, 'year');
|
809 |
-
addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
|
810 |
-
|
811 |
-
// ALIASES
|
812 |
-
|
813 |
-
addUnitAlias('year', 'y');
|
814 |
-
|
815 |
-
// PRIORITIES
|
816 |
-
|
817 |
-
addUnitPriority('year', 1);
|
818 |
-
|
819 |
-
// PARSING
|
820 |
-
|
821 |
-
addRegexToken('Y', matchSigned);
|
822 |
-
addRegexToken('YY', match1to2, match2);
|
823 |
-
addRegexToken('YYYY', match1to4, match4);
|
824 |
-
addRegexToken('YYYYY', match1to6, match6);
|
825 |
-
addRegexToken('YYYYYY', match1to6, match6);
|
826 |
-
|
827 |
-
addParseToken(['YYYYY', 'YYYYYY'], YEAR);
|
828 |
-
addParseToken('YYYY', function (input, array) {
|
829 |
-
array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
|
830 |
-
});
|
831 |
-
addParseToken('YY', function (input, array) {
|
832 |
-
array[YEAR] = hooks.parseTwoDigitYear(input);
|
833 |
-
});
|
834 |
-
addParseToken('Y', function (input, array) {
|
835 |
-
array[YEAR] = parseInt(input, 10);
|
836 |
-
});
|
837 |
-
|
838 |
-
// HELPERS
|
839 |
-
|
840 |
-
function daysInYear(year) {
|
841 |
-
return isLeapYear(year) ? 366 : 365;
|
842 |
-
}
|
843 |
-
|
844 |
-
function isLeapYear(year) {
|
845 |
-
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
|
846 |
-
}
|
847 |
-
|
848 |
-
// HOOKS
|
849 |
-
|
850 |
-
hooks.parseTwoDigitYear = function (input) {
|
851 |
-
return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
|
852 |
-
};
|
853 |
-
|
854 |
-
// MOMENTS
|
855 |
-
|
856 |
-
var getSetYear = makeGetSet('FullYear', true);
|
857 |
-
|
858 |
-
function getIsLeapYear () {
|
859 |
-
return isLeapYear(this.year());
|
860 |
-
}
|
861 |
-
|
862 |
-
function makeGetSet (unit, keepTime) {
|
863 |
-
return function (value) {
|
864 |
-
if (value != null) {
|
865 |
-
set$1(this, unit, value);
|
866 |
-
hooks.updateOffset(this, keepTime);
|
867 |
-
return this;
|
868 |
-
} else {
|
869 |
-
return get(this, unit);
|
870 |
-
}
|
871 |
-
};
|
872 |
-
}
|
873 |
-
|
874 |
-
function get (mom, unit) {
|
875 |
-
return mom.isValid() ?
|
876 |
-
mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
|
877 |
-
}
|
878 |
-
|
879 |
-
function set$1 (mom, unit, value) {
|
880 |
-
if (mom.isValid() && !isNaN(value)) {
|
881 |
-
if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
|
882 |
-
mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));
|
883 |
-
}
|
884 |
-
else {
|
885 |
-
mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
|
886 |
-
}
|
887 |
-
}
|
888 |
-
}
|
889 |
-
|
890 |
-
// MOMENTS
|
891 |
-
|
892 |
-
function stringGet (units) {
|
893 |
-
units = normalizeUnits(units);
|
894 |
-
if (isFunction(this[units])) {
|
895 |
-
return this[units]();
|
896 |
-
}
|
897 |
-
return this;
|
898 |
-
}
|
899 |
-
|
900 |
-
|
901 |
-
function stringSet (units, value) {
|
902 |
-
if (typeof units === 'object') {
|
903 |
-
units = normalizeObjectUnits(units);
|
904 |
-
var prioritized = getPrioritizedUnits(units);
|
905 |
-
for (var i = 0; i < prioritized.length; i++) {
|
906 |
-
this[prioritized[i].unit](units[prioritized[i].unit]);
|
907 |
-
}
|
908 |
-
} else {
|
909 |
-
units = normalizeUnits(units);
|
910 |
-
if (isFunction(this[units])) {
|
911 |
-
return this[units](value);
|
912 |
-
}
|
913 |
-
}
|
914 |
-
return this;
|
915 |
-
}
|
916 |
-
|
917 |
-
function mod(n, x) {
|
918 |
-
return ((n % x) + x) % x;
|
919 |
-
}
|
920 |
-
|
921 |
-
var indexOf;
|
922 |
-
|
923 |
-
if (Array.prototype.indexOf) {
|
924 |
-
indexOf = Array.prototype.indexOf;
|
925 |
-
} else {
|
926 |
-
indexOf = function (o) {
|
927 |
-
// I know
|
928 |
-
var i;
|
929 |
-
for (i = 0; i < this.length; ++i) {
|
930 |
-
if (this[i] === o) {
|
931 |
-
return i;
|
932 |
-
}
|
933 |
-
}
|
934 |
-
return -1;
|
935 |
-
};
|
936 |
-
}
|
937 |
-
|
938 |
-
function daysInMonth(year, month) {
|
939 |
-
if (isNaN(year) || isNaN(month)) {
|
940 |
-
return NaN;
|
941 |
-
}
|
942 |
-
var modMonth = mod(month, 12);
|
943 |
-
year += (month - modMonth) / 12;
|
944 |
-
return modMonth === 1 ? (isLeapYear(year) ? 29 : 28) : (31 - modMonth % 7 % 2);
|
945 |
-
}
|
946 |
-
|
947 |
-
// FORMATTING
|
948 |
-
|
949 |
-
addFormatToken('M', ['MM', 2], 'Mo', function () {
|
950 |
-
return this.month() + 1;
|
951 |
-
});
|
952 |
-
|
953 |
-
addFormatToken('MMM', 0, 0, function (format) {
|
954 |
-
return this.localeData().monthsShort(this, format);
|
955 |
-
});
|
956 |
-
|
957 |
-
addFormatToken('MMMM', 0, 0, function (format) {
|
958 |
-
return this.localeData().months(this, format);
|
959 |
-
});
|
960 |
-
|
961 |
-
// ALIASES
|
962 |
-
|
963 |
-
addUnitAlias('month', 'M');
|
964 |
-
|
965 |
-
// PRIORITY
|
966 |
-
|
967 |
-
addUnitPriority('month', 8);
|
968 |
-
|
969 |
-
// PARSING
|
970 |
-
|
971 |
-
addRegexToken('M', match1to2);
|
972 |
-
addRegexToken('MM', match1to2, match2);
|
973 |
-
addRegexToken('MMM', function (isStrict, locale) {
|
974 |
-
return locale.monthsShortRegex(isStrict);
|
975 |
-
});
|
976 |
-
addRegexToken('MMMM', function (isStrict, locale) {
|
977 |
-
return locale.monthsRegex(isStrict);
|
978 |
-
});
|
979 |
-
|
980 |
-
addParseToken(['M', 'MM'], function (input, array) {
|
981 |
-
array[MONTH] = toInt(input) - 1;
|
982 |
-
});
|
983 |
-
|
984 |
-
addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
|
985 |
-
var month = config._locale.monthsParse(input, token, config._strict);
|
986 |
-
// if we didn't find a month name, mark the date as invalid.
|
987 |
-
if (month != null) {
|
988 |
-
array[MONTH] = month;
|
989 |
-
} else {
|
990 |
-
getParsingFlags(config).invalidMonth = input;
|
991 |
-
}
|
992 |
-
});
|
993 |
-
|
994 |
-
// LOCALES
|
995 |
-
|
996 |
-
var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;
|
997 |
-
var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
|
998 |
-
function localeMonths (m, format) {
|
999 |
-
if (!m) {
|
1000 |
-
return isArray(this._months) ? this._months :
|
1001 |
-
this._months['standalone'];
|
1002 |
-
}
|
1003 |
-
return isArray(this._months) ? this._months[m.month()] :
|
1004 |
-
this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
|
1005 |
-
}
|
1006 |
-
|
1007 |
-
var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
|
1008 |
-
function localeMonthsShort (m, format) {
|
1009 |
-
if (!m) {
|
1010 |
-
return isArray(this._monthsShort) ? this._monthsShort :
|
1011 |
-
this._monthsShort['standalone'];
|
1012 |
-
}
|
1013 |
-
return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
|
1014 |
-
this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
|
1015 |
-
}
|
1016 |
-
|
1017 |
-
function handleStrictParse(monthName, format, strict) {
|
1018 |
-
var i, ii, mom, llc = monthName.toLocaleLowerCase();
|
1019 |
-
if (!this._monthsParse) {
|
1020 |
-
// this is not used
|
1021 |
-
this._monthsParse = [];
|
1022 |
-
this._longMonthsParse = [];
|
1023 |
-
this._shortMonthsParse = [];
|
1024 |
-
for (i = 0; i < 12; ++i) {
|
1025 |
-
mom = createUTC([2000, i]);
|
1026 |
-
this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
|
1027 |
-
this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
|
1028 |
-
}
|
1029 |
-
}
|
1030 |
-
|
1031 |
-
if (strict) {
|
1032 |
-
if (format === 'MMM') {
|
1033 |
-
ii = indexOf.call(this._shortMonthsParse, llc);
|
1034 |
-
return ii !== -1 ? ii : null;
|
1035 |
-
} else {
|
1036 |
-
ii = indexOf.call(this._longMonthsParse, llc);
|
1037 |
-
return ii !== -1 ? ii : null;
|
1038 |
-
}
|
1039 |
-
} else {
|
1040 |
-
if (format === 'MMM') {
|
1041 |
-
ii = indexOf.call(this._shortMonthsParse, llc);
|
1042 |
-
if (ii !== -1) {
|
1043 |
-
return ii;
|
1044 |
-
}
|
1045 |
-
ii = indexOf.call(this._longMonthsParse, llc);
|
1046 |
-
return ii !== -1 ? ii : null;
|
1047 |
-
} else {
|
1048 |
-
ii = indexOf.call(this._longMonthsParse, llc);
|
1049 |
-
if (ii !== -1) {
|
1050 |
-
return ii;
|
1051 |
-
}
|
1052 |
-
ii = indexOf.call(this._shortMonthsParse, llc);
|
1053 |
-
return ii !== -1 ? ii : null;
|
1054 |
-
}
|
1055 |
-
}
|
1056 |
-
}
|
1057 |
-
|
1058 |
-
function localeMonthsParse (monthName, format, strict) {
|
1059 |
-
var i, mom, regex;
|
1060 |
-
|
1061 |
-
if (this._monthsParseExact) {
|
1062 |
-
return handleStrictParse.call(this, monthName, format, strict);
|
1063 |
-
}
|
1064 |
-
|
1065 |
-
if (!this._monthsParse) {
|
1066 |
-
this._monthsParse = [];
|
1067 |
-
this._longMonthsParse = [];
|
1068 |
-
this._shortMonthsParse = [];
|
1069 |
-
}
|
1070 |
-
|
1071 |
-
// TODO: add sorting
|
1072 |
-
// Sorting makes sure if one month (or abbr) is a prefix of another
|
1073 |
-
// see sorting in computeMonthsParse
|
1074 |
-
for (i = 0; i < 12; i++) {
|
1075 |
-
// make the regex if we don't have it already
|
1076 |
-
mom = createUTC([2000, i]);
|
1077 |
-
if (strict && !this._longMonthsParse[i]) {
|
1078 |
-
this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
|
1079 |
-
this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
|
1080 |
-
}
|
1081 |
-
if (!strict && !this._monthsParse[i]) {
|
1082 |
-
regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
|
1083 |
-
this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
|
1084 |
-
}
|
1085 |
-
// test the regex
|
1086 |
-
if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
|
1087 |
-
return i;
|
1088 |
-
} else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
|
1089 |
-
return i;
|
1090 |
-
} else if (!strict && this._monthsParse[i].test(monthName)) {
|
1091 |
-
return i;
|
1092 |
-
}
|
1093 |
-
}
|
1094 |
-
}
|
1095 |
-
|
1096 |
-
// MOMENTS
|
1097 |
-
|
1098 |
-
function setMonth (mom, value) {
|
1099 |
-
var dayOfMonth;
|
1100 |
-
|
1101 |
-
if (!mom.isValid()) {
|
1102 |
-
// No op
|
1103 |
-
return mom;
|
1104 |
-
}
|
1105 |
-
|
1106 |
-
if (typeof value === 'string') {
|
1107 |
-
if (/^\d+$/.test(value)) {
|
1108 |
-
value = toInt(value);
|
1109 |
-
} else {
|
1110 |
-
value = mom.localeData().monthsParse(value);
|
1111 |
-
// TODO: Another silent failure?
|
1112 |
-
if (!isNumber(value)) {
|
1113 |
-
return mom;
|
1114 |
-
}
|
1115 |
-
}
|
1116 |
-
}
|
1117 |
-
|
1118 |
-
dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
|
1119 |
-
mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
|
1120 |
-
return mom;
|
1121 |
-
}
|
1122 |
-
|
1123 |
-
function getSetMonth (value) {
|
1124 |
-
if (value != null) {
|
1125 |
-
setMonth(this, value);
|
1126 |
-
hooks.updateOffset(this, true);
|
1127 |
-
return this;
|
1128 |
-
} else {
|
1129 |
-
return get(this, 'Month');
|
1130 |
-
}
|
1131 |
-
}
|
1132 |
-
|
1133 |
-
function getDaysInMonth () {
|
1134 |
-
return daysInMonth(this.year(), this.month());
|
1135 |
-
}
|
1136 |
-
|
1137 |
-
var defaultMonthsShortRegex = matchWord;
|
1138 |
-
function monthsShortRegex (isStrict) {
|
1139 |
-
if (this._monthsParseExact) {
|
1140 |
-
if (!hasOwnProp(this, '_monthsRegex')) {
|
1141 |
-
computeMonthsParse.call(this);
|
1142 |
-
}
|
1143 |
-
if (isStrict) {
|
1144 |
-
return this._monthsShortStrictRegex;
|
1145 |
-
} else {
|
1146 |
-
return this._monthsShortRegex;
|
1147 |
-
}
|
1148 |
-
} else {
|
1149 |
-
if (!hasOwnProp(this, '_monthsShortRegex')) {
|
1150 |
-
this._monthsShortRegex = defaultMonthsShortRegex;
|
1151 |
-
}
|
1152 |
-
return this._monthsShortStrictRegex && isStrict ?
|
1153 |
-
this._monthsShortStrictRegex : this._monthsShortRegex;
|
1154 |
-
}
|
1155 |
-
}
|
1156 |
-
|
1157 |
-
var defaultMonthsRegex = matchWord;
|
1158 |
-
function monthsRegex (isStrict) {
|
1159 |
-
if (this._monthsParseExact) {
|
1160 |
-
if (!hasOwnProp(this, '_monthsRegex')) {
|
1161 |
-
computeMonthsParse.call(this);
|
1162 |
-
}
|
1163 |
-
if (isStrict) {
|
1164 |
-
return this._monthsStrictRegex;
|
1165 |
-
} else {
|
1166 |
-
return this._monthsRegex;
|
1167 |
-
}
|
1168 |
-
} else {
|
1169 |
-
if (!hasOwnProp(this, '_monthsRegex')) {
|
1170 |
-
this._monthsRegex = defaultMonthsRegex;
|
1171 |
-
}
|
1172 |
-
return this._monthsStrictRegex && isStrict ?
|
1173 |
-
this._monthsStrictRegex : this._monthsRegex;
|
1174 |
-
}
|
1175 |
-
}
|
1176 |
-
|
1177 |
-
function computeMonthsParse () {
|
1178 |
-
function cmpLenRev(a, b) {
|
1179 |
-
return b.length - a.length;
|
1180 |
-
}
|
1181 |
-
|
1182 |
-
var shortPieces = [], longPieces = [], mixedPieces = [],
|
1183 |
-
i, mom;
|
1184 |
-
for (i = 0; i < 12; i++) {
|
1185 |
-
// make the regex if we don't have it already
|
1186 |
-
mom = createUTC([2000, i]);
|
1187 |
-
shortPieces.push(this.monthsShort(mom, ''));
|
1188 |
-
longPieces.push(this.months(mom, ''));
|
1189 |
-
mixedPieces.push(this.months(mom, ''));
|
1190 |
-
mixedPieces.push(this.monthsShort(mom, ''));
|
1191 |
-
}
|
1192 |
-
// Sorting makes sure if one month (or abbr) is a prefix of another it
|
1193 |
-
// will match the longer piece.
|
1194 |
-
shortPieces.sort(cmpLenRev);
|
1195 |
-
longPieces.sort(cmpLenRev);
|
1196 |
-
mixedPieces.sort(cmpLenRev);
|
1197 |
-
for (i = 0; i < 12; i++) {
|
1198 |
-
shortPieces[i] = regexEscape(shortPieces[i]);
|
1199 |
-
longPieces[i] = regexEscape(longPieces[i]);
|
1200 |
-
}
|
1201 |
-
for (i = 0; i < 24; i++) {
|
1202 |
-
mixedPieces[i] = regexEscape(mixedPieces[i]);
|
1203 |
-
}
|
1204 |
-
|
1205 |
-
this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
|
1206 |
-
this._monthsShortRegex = this._monthsRegex;
|
1207 |
-
this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
|
1208 |
-
this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
|
1209 |
-
}
|
1210 |
-
|
1211 |
-
function createDate (y, m, d, h, M, s, ms) {
|
1212 |
-
// can't just apply() to create a date:
|
1213 |
-
// https://stackoverflow.com/q/181348
|
1214 |
-
var date = new Date(y, m, d, h, M, s, ms);
|
1215 |
-
|
1216 |
-
// the date constructor remaps years 0-99 to 1900-1999
|
1217 |
-
if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {
|
1218 |
-
date.setFullYear(y);
|
1219 |
-
}
|
1220 |
-
return date;
|
1221 |
-
}
|
1222 |
-
|
1223 |
-
function createUTCDate (y) {
|
1224 |
-
var date = new Date(Date.UTC.apply(null, arguments));
|
1225 |
-
|
1226 |
-
// the Date.UTC function remaps years 0-99 to 1900-1999
|
1227 |
-
if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {
|
1228 |
-
date.setUTCFullYear(y);
|
1229 |
-
}
|
1230 |
-
return date;
|
1231 |
-
}
|
1232 |
-
|
1233 |
-
// start-of-first-week - start-of-year
|
1234 |
-
function firstWeekOffset(year, dow, doy) {
|
1235 |
-
var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
|
1236 |
-
fwd = 7 + dow - doy,
|
1237 |
-
// first-week day local weekday -- which local weekday is fwd
|
1238 |
-
fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
|
1239 |
-
|
1240 |
-
return -fwdlw + fwd - 1;
|
1241 |
-
}
|
1242 |
-
|
1243 |
-
// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
|
1244 |
-
function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
|
1245 |
-
var localWeekday = (7 + weekday - dow) % 7,
|
1246 |
-
weekOffset = firstWeekOffset(year, dow, doy),
|
1247 |
-
dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
|
1248 |
-
resYear, resDayOfYear;
|
1249 |
-
|
1250 |
-
if (dayOfYear <= 0) {
|
1251 |
-
resYear = year - 1;
|
1252 |
-
resDayOfYear = daysInYear(resYear) + dayOfYear;
|
1253 |
-
} else if (dayOfYear > daysInYear(year)) {
|
1254 |
-
resYear = year + 1;
|
1255 |
-
resDayOfYear = dayOfYear - daysInYear(year);
|
1256 |
-
} else {
|
1257 |
-
resYear = year;
|
1258 |
-
resDayOfYear = dayOfYear;
|
1259 |
-
}
|
1260 |
-
|
1261 |
-
return {
|
1262 |
-
year: resYear,
|
1263 |
-
dayOfYear: resDayOfYear
|
1264 |
-
};
|
1265 |
-
}
|
1266 |
-
|
1267 |
-
function weekOfYear(mom, dow, doy) {
|
1268 |
-
var weekOffset = firstWeekOffset(mom.year(), dow, doy),
|
1269 |
-
week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
|
1270 |
-
resWeek, resYear;
|
1271 |
-
|
1272 |
-
if (week < 1) {
|
1273 |
-
resYear = mom.year() - 1;
|
1274 |
-
resWeek = week + weeksInYear(resYear, dow, doy);
|
1275 |
-
} else if (week > weeksInYear(mom.year(), dow, doy)) {
|
1276 |
-
resWeek = week - weeksInYear(mom.year(), dow, doy);
|
1277 |
-
resYear = mom.year() + 1;
|
1278 |
-
} else {
|
1279 |
-
resYear = mom.year();
|
1280 |
-
resWeek = week;
|
1281 |
-
}
|
1282 |
-
|
1283 |
-
return {
|
1284 |
-
week: resWeek,
|
1285 |
-
year: resYear
|
1286 |
-
};
|
1287 |
-
}
|
1288 |
-
|
1289 |
-
function weeksInYear(year, dow, doy) {
|
1290 |
-
var weekOffset = firstWeekOffset(year, dow, doy),
|
1291 |
-
weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
|
1292 |
-
return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
|
1293 |
-
}
|
1294 |
-
|
1295 |
-
// FORMATTING
|
1296 |
-
|
1297 |
-
addFormatToken('w', ['ww', 2], 'wo', 'week');
|
1298 |
-
addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
|
1299 |
-
|
1300 |
-
// ALIASES
|
1301 |
-
|
1302 |
-
addUnitAlias('week', 'w');
|
1303 |
-
addUnitAlias('isoWeek', 'W');
|
1304 |
-
|
1305 |
-
// PRIORITIES
|
1306 |
-
|
1307 |
-
addUnitPriority('week', 5);
|
1308 |
-
addUnitPriority('isoWeek', 5);
|
1309 |
-
|
1310 |
-
// PARSING
|
1311 |
-
|
1312 |
-
addRegexToken('w', match1to2);
|
1313 |
-
addRegexToken('ww', match1to2, match2);
|
1314 |
-
addRegexToken('W', match1to2);
|
1315 |
-
addRegexToken('WW', match1to2, match2);
|
1316 |
-
|
1317 |
-
addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
|
1318 |
-
week[token.substr(0, 1)] = toInt(input);
|
1319 |
-
});
|
1320 |
-
|
1321 |
-
// HELPERS
|
1322 |
-
|
1323 |
-
// LOCALES
|
1324 |
-
|
1325 |
-
function localeWeek (mom) {
|
1326 |
-
return weekOfYear(mom, this._week.dow, this._week.doy).week;
|
1327 |
-
}
|
1328 |
-
|
1329 |
-
var defaultLocaleWeek = {
|
1330 |
-
dow : 0, // Sunday is the first day of the week.
|
1331 |
-
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
1332 |
-
};
|
1333 |
-
|
1334 |
-
function localeFirstDayOfWeek () {
|
1335 |
-
return this._week.dow;
|
1336 |
-
}
|
1337 |
-
|
1338 |
-
function localeFirstDayOfYear () {
|
1339 |
-
return this._week.doy;
|
1340 |
-
}
|
1341 |
-
|
1342 |
-
// MOMENTS
|
1343 |
-
|
1344 |
-
function getSetWeek (input) {
|
1345 |
-
var week = this.localeData().week(this);
|
1346 |
-
return input == null ? week : this.add((input - week) * 7, 'd');
|
1347 |
-
}
|
1348 |
-
|
1349 |
-
function getSetISOWeek (input) {
|
1350 |
-
var week = weekOfYear(this, 1, 4).week;
|
1351 |
-
return input == null ? week : this.add((input - week) * 7, 'd');
|
1352 |
-
}
|
1353 |
-
|
1354 |
-
// FORMATTING
|
1355 |
-
|
1356 |
-
addFormatToken('d', 0, 'do', 'day');
|
1357 |
-
|
1358 |
-
addFormatToken('dd', 0, 0, function (format) {
|
1359 |
-
return this.localeData().weekdaysMin(this, format);
|
1360 |
-
});
|
1361 |
-
|
1362 |
-
addFormatToken('ddd', 0, 0, function (format) {
|
1363 |
-
return this.localeData().weekdaysShort(this, format);
|
1364 |
-
});
|
1365 |
-
|
1366 |
-
addFormatToken('dddd', 0, 0, function (format) {
|
1367 |
-
return this.localeData().weekdays(this, format);
|
1368 |
-
});
|
1369 |
-
|
1370 |
-
addFormatToken('e', 0, 0, 'weekday');
|
1371 |
-
addFormatToken('E', 0, 0, 'isoWeekday');
|
1372 |
-
|
1373 |
-
// ALIASES
|
1374 |
-
|
1375 |
-
addUnitAlias('day', 'd');
|
1376 |
-
addUnitAlias('weekday', 'e');
|
1377 |
-
addUnitAlias('isoWeekday', 'E');
|
1378 |
-
|
1379 |
-
// PRIORITY
|
1380 |
-
addUnitPriority('day', 11);
|
1381 |
-
addUnitPriority('weekday', 11);
|
1382 |
-
addUnitPriority('isoWeekday', 11);
|
1383 |
-
|
1384 |
-
// PARSING
|
1385 |
-
|
1386 |
-
addRegexToken('d', match1to2);
|
1387 |
-
addRegexToken('e', match1to2);
|
1388 |
-
addRegexToken('E', match1to2);
|
1389 |
-
addRegexToken('dd', function (isStrict, locale) {
|
1390 |
-
return locale.weekdaysMinRegex(isStrict);
|
1391 |
-
});
|
1392 |
-
addRegexToken('ddd', function (isStrict, locale) {
|
1393 |
-
return locale.weekdaysShortRegex(isStrict);
|
1394 |
-
});
|
1395 |
-
addRegexToken('dddd', function (isStrict, locale) {
|
1396 |
-
return locale.weekdaysRegex(isStrict);
|
1397 |
-
});
|
1398 |
-
|
1399 |
-
addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
|
1400 |
-
var weekday = config._locale.weekdaysParse(input, token, config._strict);
|
1401 |
-
// if we didn't get a weekday name, mark the date as invalid
|
1402 |
-
if (weekday != null) {
|
1403 |
-
week.d = weekday;
|
1404 |
-
} else {
|
1405 |
-
getParsingFlags(config).invalidWeekday = input;
|
1406 |
-
}
|
1407 |
-
});
|
1408 |
-
|
1409 |
-
addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
|
1410 |
-
week[token] = toInt(input);
|
1411 |
-
});
|
1412 |
-
|
1413 |
-
// HELPERS
|
1414 |
-
|
1415 |
-
function parseWeekday(input, locale) {
|
1416 |
-
if (typeof input !== 'string') {
|
1417 |
-
return input;
|
1418 |
-
}
|
1419 |
-
|
1420 |
-
if (!isNaN(input)) {
|
1421 |
-
return parseInt(input, 10);
|
1422 |
-
}
|
1423 |
-
|
1424 |
-
input = locale.weekdaysParse(input);
|
1425 |
-
if (typeof input === 'number') {
|
1426 |
-
return input;
|
1427 |
-
}
|
1428 |
-
|
1429 |
-
return null;
|
1430 |
-
}
|
1431 |
-
|
1432 |
-
function parseIsoWeekday(input, locale) {
|
1433 |
-
if (typeof input === 'string') {
|
1434 |
-
return locale.weekdaysParse(input) % 7 || 7;
|
1435 |
-
}
|
1436 |
-
return isNaN(input) ? null : input;
|
1437 |
-
}
|
1438 |
-
|
1439 |
-
// LOCALES
|
1440 |
-
|
1441 |
-
var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
|
1442 |
-
function localeWeekdays (m, format) {
|
1443 |
-
if (!m) {
|
1444 |
-
return isArray(this._weekdays) ? this._weekdays :
|
1445 |
-
this._weekdays['standalone'];
|
1446 |
-
}
|
1447 |
-
return isArray(this._weekdays) ? this._weekdays[m.day()] :
|
1448 |
-
this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];
|
1449 |
-
}
|
1450 |
-
|
1451 |
-
var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
|
1452 |
-
function localeWeekdaysShort (m) {
|
1453 |
-
return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
|
1454 |
-
}
|
1455 |
-
|
1456 |
-
var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
|
1457 |
-
function localeWeekdaysMin (m) {
|
1458 |
-
return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
|
1459 |
-
}
|
1460 |
-
|
1461 |
-
function handleStrictParse$1(weekdayName, format, strict) {
|
1462 |
-
var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
|
1463 |
-
if (!this._weekdaysParse) {
|
1464 |
-
this._weekdaysParse = [];
|
1465 |
-
this._shortWeekdaysParse = [];
|
1466 |
-
this._minWeekdaysParse = [];
|
1467 |
-
|
1468 |
-
for (i = 0; i < 7; ++i) {
|
1469 |
-
mom = createUTC([2000, 1]).day(i);
|
1470 |
-
this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
|
1471 |
-
this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
|
1472 |
-
this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
|
1473 |
-
}
|
1474 |
-
}
|
1475 |
-
|
1476 |
-
if (strict) {
|
1477 |
-
if (format === 'dddd') {
|
1478 |
-
ii = indexOf.call(this._weekdaysParse, llc);
|
1479 |
-
return ii !== -1 ? ii : null;
|
1480 |
-
} else if (format === 'ddd') {
|
1481 |
-
ii = indexOf.call(this._shortWeekdaysParse, llc);
|
1482 |
-
return ii !== -1 ? ii : null;
|
1483 |
-
} else {
|
1484 |
-
ii = indexOf.call(this._minWeekdaysParse, llc);
|
1485 |
-
return ii !== -1 ? ii : null;
|
1486 |
-
}
|
1487 |
-
} else {
|
1488 |
-
if (format === 'dddd') {
|
1489 |
-
ii = indexOf.call(this._weekdaysParse, llc);
|
1490 |
-
if (ii !== -1) {
|
1491 |
-
return ii;
|
1492 |
-
}
|
1493 |
-
ii = indexOf.call(this._shortWeekdaysParse, llc);
|
1494 |
-
if (ii !== -1) {
|
1495 |
-
return ii;
|
1496 |
-
}
|
1497 |
-
ii = indexOf.call(this._minWeekdaysParse, llc);
|
1498 |
-
return ii !== -1 ? ii : null;
|
1499 |
-
} else if (format === 'ddd') {
|
1500 |
-
ii = indexOf.call(this._shortWeekdaysParse, llc);
|
1501 |
-
if (ii !== -1) {
|
1502 |
-
return ii;
|
1503 |
-
}
|
1504 |
-
ii = indexOf.call(this._weekdaysParse, llc);
|
1505 |
-
if (ii !== -1) {
|
1506 |
-
return ii;
|
1507 |
-
}
|
1508 |
-
ii = indexOf.call(this._minWeekdaysParse, llc);
|
1509 |
-
return ii !== -1 ? ii : null;
|
1510 |
-
} else {
|
1511 |
-
ii = indexOf.call(this._minWeekdaysParse, llc);
|
1512 |
-
if (ii !== -1) {
|
1513 |
-
return ii;
|
1514 |
-
}
|
1515 |
-
ii = indexOf.call(this._weekdaysParse, llc);
|
1516 |
-
if (ii !== -1) {
|
1517 |
-
return ii;
|
1518 |
-
}
|
1519 |
-
ii = indexOf.call(this._shortWeekdaysParse, llc);
|
1520 |
-
return ii !== -1 ? ii : null;
|
1521 |
-
}
|
1522 |
-
}
|
1523 |
-
}
|
1524 |
-
|
1525 |
-
function localeWeekdaysParse (weekdayName, format, strict) {
|
1526 |
-
var i, mom, regex;
|
1527 |
-
|
1528 |
-
if (this._weekdaysParseExact) {
|
1529 |
-
return handleStrictParse$1.call(this, weekdayName, format, strict);
|
1530 |
-
}
|
1531 |
-
|
1532 |
-
if (!this._weekdaysParse) {
|
1533 |
-
this._weekdaysParse = [];
|
1534 |
-
this._minWeekdaysParse = [];
|
1535 |
-
this._shortWeekdaysParse = [];
|
1536 |
-
this._fullWeekdaysParse = [];
|
1537 |
-
}
|
1538 |
-
|
1539 |
-
for (i = 0; i < 7; i++) {
|
1540 |
-
// make the regex if we don't have it already
|
1541 |
-
|
1542 |
-
mom = createUTC([2000, 1]).day(i);
|
1543 |
-
if (strict && !this._fullWeekdaysParse[i]) {
|
1544 |
-
this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i');
|
1545 |
-
this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i');
|
1546 |
-
this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i');
|
1547 |
-
}
|
1548 |
-
if (!this._weekdaysParse[i]) {
|
1549 |
-
regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
|
1550 |
-
this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
|
1551 |
-
}
|
1552 |
-
// test the regex
|
1553 |
-
if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
|
1554 |
-
return i;
|
1555 |
-
} else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
|
1556 |
-
return i;
|
1557 |
-
} else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
|
1558 |
-
return i;
|
1559 |
-
} else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
|
1560 |
-
return i;
|
1561 |
-
}
|
1562 |
-
}
|
1563 |
-
}
|
1564 |
-
|
1565 |
-
// MOMENTS
|
1566 |
-
|
1567 |
-
function getSetDayOfWeek (input) {
|
1568 |
-
if (!this.isValid()) {
|
1569 |
-
return input != null ? this : NaN;
|
1570 |
-
}
|
1571 |
-
var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
|
1572 |
-
if (input != null) {
|
1573 |
-
input = parseWeekday(input, this.localeData());
|
1574 |
-
return this.add(input - day, 'd');
|
1575 |
-
} else {
|
1576 |
-
return day;
|
1577 |
-
}
|
1578 |
-
}
|
1579 |
-
|
1580 |
-
function getSetLocaleDayOfWeek (input) {
|
1581 |
-
if (!this.isValid()) {
|
1582 |
-
return input != null ? this : NaN;
|
1583 |
-
}
|
1584 |
-
var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
1585 |
-
return input == null ? weekday : this.add(input - weekday, 'd');
|
1586 |
-
}
|
1587 |
-
|
1588 |
-
function getSetISODayOfWeek (input) {
|
1589 |
-
if (!this.isValid()) {
|
1590 |
-
return input != null ? this : NaN;
|
1591 |
-
}
|
1592 |
-
|
1593 |
-
// behaves the same as moment#day except
|
1594 |
-
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
|
1595 |
-
// as a setter, sunday should belong to the previous week.
|
1596 |
-
|
1597 |
-
if (input != null) {
|
1598 |
-
var weekday = parseIsoWeekday(input, this.localeData());
|
1599 |
-
return this.day(this.day() % 7 ? weekday : weekday - 7);
|
1600 |
-
} else {
|
1601 |
-
return this.day() || 7;
|
1602 |
-
}
|
1603 |
-
}
|
1604 |
-
|
1605 |
-
var defaultWeekdaysRegex = matchWord;
|
1606 |
-
function weekdaysRegex (isStrict) {
|
1607 |
-
if (this._weekdaysParseExact) {
|
1608 |
-
if (!hasOwnProp(this, '_weekdaysRegex')) {
|
1609 |
-
computeWeekdaysParse.call(this);
|
1610 |
-
}
|
1611 |
-
if (isStrict) {
|
1612 |
-
return this._weekdaysStrictRegex;
|
1613 |
-
} else {
|
1614 |
-
return this._weekdaysRegex;
|
1615 |
-
}
|
1616 |
-
} else {
|
1617 |
-
if (!hasOwnProp(this, '_weekdaysRegex')) {
|
1618 |
-
this._weekdaysRegex = defaultWeekdaysRegex;
|
1619 |
-
}
|
1620 |
-
return this._weekdaysStrictRegex && isStrict ?
|
1621 |
-
this._weekdaysStrictRegex : this._weekdaysRegex;
|
1622 |
-
}
|
1623 |
-
}
|
1624 |
-
|
1625 |
-
var defaultWeekdaysShortRegex = matchWord;
|
1626 |
-
function weekdaysShortRegex (isStrict) {
|
1627 |
-
if (this._weekdaysParseExact) {
|
1628 |
-
if (!hasOwnProp(this, '_weekdaysRegex')) {
|
1629 |
-
computeWeekdaysParse.call(this);
|
1630 |
-
}
|
1631 |
-
if (isStrict) {
|
1632 |
-
return this._weekdaysShortStrictRegex;
|
1633 |
-
} else {
|
1634 |
-
return this._weekdaysShortRegex;
|
1635 |
-
}
|
1636 |
-
} else {
|
1637 |
-
if (!hasOwnProp(this, '_weekdaysShortRegex')) {
|
1638 |
-
this._weekdaysShortRegex = defaultWeekdaysShortRegex;
|
1639 |
-
}
|
1640 |
-
return this._weekdaysShortStrictRegex && isStrict ?
|
1641 |
-
this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
|
1642 |
-
}
|
1643 |
-
}
|
1644 |
-
|
1645 |
-
var defaultWeekdaysMinRegex = matchWord;
|
1646 |
-
function weekdaysMinRegex (isStrict) {
|
1647 |
-
if (this._weekdaysParseExact) {
|
1648 |
-
if (!hasOwnProp(this, '_weekdaysRegex')) {
|
1649 |
-
computeWeekdaysParse.call(this);
|
1650 |
-
}
|
1651 |
-
if (isStrict) {
|
1652 |
-
return this._weekdaysMinStrictRegex;
|
1653 |
-
} else {
|
1654 |
-
return this._weekdaysMinRegex;
|
1655 |
-
}
|
1656 |
-
} else {
|
1657 |
-
if (!hasOwnProp(this, '_weekdaysMinRegex')) {
|
1658 |
-
this._weekdaysMinRegex = defaultWeekdaysMinRegex;
|
1659 |
-
}
|
1660 |
-
return this._weekdaysMinStrictRegex && isStrict ?
|
1661 |
-
this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
|
1662 |
-
}
|
1663 |
-
}
|
1664 |
-
|
1665 |
-
|
1666 |
-
function computeWeekdaysParse () {
|
1667 |
-
function cmpLenRev(a, b) {
|
1668 |
-
return b.length - a.length;
|
1669 |
-
}
|
1670 |
-
|
1671 |
-
var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [],
|
1672 |
-
i, mom, minp, shortp, longp;
|
1673 |
-
for (i = 0; i < 7; i++) {
|
1674 |
-
// make the regex if we don't have it already
|
1675 |
-
mom = createUTC([2000, 1]).day(i);
|
1676 |
-
minp = this.weekdaysMin(mom, '');
|
1677 |
-
shortp = this.weekdaysShort(mom, '');
|
1678 |
-
longp = this.weekdays(mom, '');
|
1679 |
-
minPieces.push(minp);
|
1680 |
-
shortPieces.push(shortp);
|
1681 |
-
longPieces.push(longp);
|
1682 |
-
mixedPieces.push(minp);
|
1683 |
-
mixedPieces.push(shortp);
|
1684 |
-
mixedPieces.push(longp);
|
1685 |
-
}
|
1686 |
-
// Sorting makes sure if one weekday (or abbr) is a prefix of another it
|
1687 |
-
// will match the longer piece.
|
1688 |
-
minPieces.sort(cmpLenRev);
|
1689 |
-
shortPieces.sort(cmpLenRev);
|
1690 |
-
longPieces.sort(cmpLenRev);
|
1691 |
-
mixedPieces.sort(cmpLenRev);
|
1692 |
-
for (i = 0; i < 7; i++) {
|
1693 |
-
shortPieces[i] = regexEscape(shortPieces[i]);
|
1694 |
-
longPieces[i] = regexEscape(longPieces[i]);
|
1695 |
-
mixedPieces[i] = regexEscape(mixedPieces[i]);
|
1696 |
-
}
|
1697 |
-
|
1698 |
-
this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
|
1699 |
-
this._weekdaysShortRegex = this._weekdaysRegex;
|
1700 |
-
this._weekdaysMinRegex = this._weekdaysRegex;
|
1701 |
-
|
1702 |
-
this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
|
1703 |
-
this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
|
1704 |
-
this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
|
1705 |
-
}
|
1706 |
-
|
1707 |
-
// FORMATTING
|
1708 |
-
|
1709 |
-
function hFormat() {
|
1710 |
-
return this.hours() % 12 || 12;
|
1711 |
-
}
|
1712 |
-
|
1713 |
-
function kFormat() {
|
1714 |
-
return this.hours() || 24;
|
1715 |
-
}
|
1716 |
-
|
1717 |
-
addFormatToken('H', ['HH', 2], 0, 'hour');
|
1718 |
-
addFormatToken('h', ['hh', 2], 0, hFormat);
|
1719 |
-
addFormatToken('k', ['kk', 2], 0, kFormat);
|
1720 |
-
|
1721 |
-
addFormatToken('hmm', 0, 0, function () {
|
1722 |
-
return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
|
1723 |
-
});
|
1724 |
-
|
1725 |
-
addFormatToken('hmmss', 0, 0, function () {
|
1726 |
-
return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +
|
1727 |
-
zeroFill(this.seconds(), 2);
|
1728 |
-
});
|
1729 |
-
|
1730 |
-
addFormatToken('Hmm', 0, 0, function () {
|
1731 |
-
return '' + this.hours() + zeroFill(this.minutes(), 2);
|
1732 |
-
});
|
1733 |
-
|
1734 |
-
addFormatToken('Hmmss', 0, 0, function () {
|
1735 |
-
return '' + this.hours() + zeroFill(this.minutes(), 2) +
|
1736 |
-
zeroFill(this.seconds(), 2);
|
1737 |
-
});
|
1738 |
-
|
1739 |
-
function meridiem (token, lowercase) {
|
1740 |
-
addFormatToken(token, 0, 0, function () {
|
1741 |
-
return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
|
1742 |
-
});
|
1743 |
-
}
|
1744 |
-
|
1745 |
-
meridiem('a', true);
|
1746 |
-
meridiem('A', false);
|
1747 |
-
|
1748 |
-
// ALIASES
|
1749 |
-
|
1750 |
-
addUnitAlias('hour', 'h');
|
1751 |
-
|
1752 |
-
// PRIORITY
|
1753 |
-
addUnitPriority('hour', 13);
|
1754 |
-
|
1755 |
-
// PARSING
|
1756 |
-
|
1757 |
-
function matchMeridiem (isStrict, locale) {
|
1758 |
-
return locale._meridiemParse;
|
1759 |
-
}
|
1760 |
-
|
1761 |
-
addRegexToken('a', matchMeridiem);
|
1762 |
-
addRegexToken('A', matchMeridiem);
|
1763 |
-
addRegexToken('H', match1to2);
|
1764 |
-
addRegexToken('h', match1to2);
|
1765 |
-
addRegexToken('k', match1to2);
|
1766 |
-
addRegexToken('HH', match1to2, match2);
|
1767 |
-
addRegexToken('hh', match1to2, match2);
|
1768 |
-
addRegexToken('kk', match1to2, match2);
|
1769 |
-
|
1770 |
-
addRegexToken('hmm', match3to4);
|
1771 |
-
addRegexToken('hmmss', match5to6);
|
1772 |
-
addRegexToken('Hmm', match3to4);
|
1773 |
-
addRegexToken('Hmmss', match5to6);
|
1774 |
-
|
1775 |
-
addParseToken(['H', 'HH'], HOUR);
|
1776 |
-
addParseToken(['k', 'kk'], function (input, array, config) {
|
1777 |
-
var kInput = toInt(input);
|
1778 |
-
array[HOUR] = kInput === 24 ? 0 : kInput;
|
1779 |
-
});
|
1780 |
-
addParseToken(['a', 'A'], function (input, array, config) {
|
1781 |
-
config._isPm = config._locale.isPM(input);
|
1782 |
-
config._meridiem = input;
|
1783 |
-
});
|
1784 |
-
addParseToken(['h', 'hh'], function (input, array, config) {
|
1785 |
-
array[HOUR] = toInt(input);
|
1786 |
-
getParsingFlags(config).bigHour = true;
|
1787 |
-
});
|
1788 |
-
addParseToken('hmm', function (input, array, config) {
|
1789 |
-
var pos = input.length - 2;
|
1790 |
-
array[HOUR] = toInt(input.substr(0, pos));
|
1791 |
-
array[MINUTE] = toInt(input.substr(pos));
|
1792 |
-
getParsingFlags(config).bigHour = true;
|
1793 |
-
});
|
1794 |
-
addParseToken('hmmss', function (input, array, config) {
|
1795 |
-
var pos1 = input.length - 4;
|
1796 |
-
var pos2 = input.length - 2;
|
1797 |
-
array[HOUR] = toInt(input.substr(0, pos1));
|
1798 |
-
array[MINUTE] = toInt(input.substr(pos1, 2));
|
1799 |
-
array[SECOND] = toInt(input.substr(pos2));
|
1800 |
-
getParsingFlags(config).bigHour = true;
|
1801 |
-
});
|
1802 |
-
addParseToken('Hmm', function (input, array, config) {
|
1803 |
-
var pos = input.length - 2;
|
1804 |
-
array[HOUR] = toInt(input.substr(0, pos));
|
1805 |
-
array[MINUTE] = toInt(input.substr(pos));
|
1806 |
-
});
|
1807 |
-
addParseToken('Hmmss', function (input, array, config) {
|
1808 |
-
var pos1 = input.length - 4;
|
1809 |
-
var pos2 = input.length - 2;
|
1810 |
-
array[HOUR] = toInt(input.substr(0, pos1));
|
1811 |
-
array[MINUTE] = toInt(input.substr(pos1, 2));
|
1812 |
-
array[SECOND] = toInt(input.substr(pos2));
|
1813 |
-
});
|
1814 |
-
|
1815 |
-
// LOCALES
|
1816 |
-
|
1817 |
-
function localeIsPM (input) {
|
1818 |
-
// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
|
1819 |
-
// Using charAt should be more compatible.
|
1820 |
-
return ((input + '').toLowerCase().charAt(0) === 'p');
|
1821 |
-
}
|
1822 |
-
|
1823 |
-
var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
|
1824 |
-
function localeMeridiem (hours, minutes, isLower) {
|
1825 |
-
if (hours > 11) {
|
1826 |
-
return isLower ? 'pm' : 'PM';
|
1827 |
-
} else {
|
1828 |
-
return isLower ? 'am' : 'AM';
|
1829 |
-
}
|
1830 |
-
}
|
1831 |
-
|
1832 |
-
|
1833 |
-
// MOMENTS
|
1834 |
-
|
1835 |
-
// Setting the hour should keep the time, because the user explicitly
|
1836 |
-
// specified which hour they want. So trying to maintain the same hour (in
|
1837 |
-
// a new timezone) makes sense. Adding/subtracting hours does not follow
|
1838 |
-
// this rule.
|
1839 |
-
var getSetHour = makeGetSet('Hours', true);
|
1840 |
-
|
1841 |
-
var baseConfig = {
|
1842 |
-
calendar: defaultCalendar,
|
1843 |
-
longDateFormat: defaultLongDateFormat,
|
1844 |
-
invalidDate: defaultInvalidDate,
|
1845 |
-
ordinal: defaultOrdinal,
|
1846 |
-
dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
|
1847 |
-
relativeTime: defaultRelativeTime,
|
1848 |
-
|
1849 |
-
months: defaultLocaleMonths,
|
1850 |
-
monthsShort: defaultLocaleMonthsShort,
|
1851 |
-
|
1852 |
-
week: defaultLocaleWeek,
|
1853 |
-
|
1854 |
-
weekdays: defaultLocaleWeekdays,
|
1855 |
-
weekdaysMin: defaultLocaleWeekdaysMin,
|
1856 |
-
weekdaysShort: defaultLocaleWeekdaysShort,
|
1857 |
-
|
1858 |
-
meridiemParse: defaultLocaleMeridiemParse
|
1859 |
-
};
|
1860 |
-
|
1861 |
-
// internal storage for locale config files
|
1862 |
-
var locales = {};
|
1863 |
-
var localeFamilies = {};
|
1864 |
-
var globalLocale;
|
1865 |
-
|
1866 |
-
function normalizeLocale(key) {
|
1867 |
-
return key ? key.toLowerCase().replace('_', '-') : key;
|
1868 |
-
}
|
1869 |
-
|
1870 |
-
// pick the locale from the array
|
1871 |
-
// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
|
1872 |
-
// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
|
1873 |
-
function chooseLocale(names) {
|
1874 |
-
var i = 0, j, next, locale, split;
|
1875 |
-
|
1876 |
-
while (i < names.length) {
|
1877 |
-
split = normalizeLocale(names[i]).split('-');
|
1878 |
-
j = split.length;
|
1879 |
-
next = normalizeLocale(names[i + 1]);
|
1880 |
-
next = next ? next.split('-') : null;
|
1881 |
-
while (j > 0) {
|
1882 |
-
locale = loadLocale(split.slice(0, j).join('-'));
|
1883 |
-
if (locale) {
|
1884 |
-
return locale;
|
1885 |
-
}
|
1886 |
-
if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
|
1887 |
-
//the next array item is better than a shallower substring of this one
|
1888 |
-
break;
|
1889 |
-
}
|
1890 |
-
j--;
|
1891 |
-
}
|
1892 |
-
i++;
|
1893 |
-
}
|
1894 |
-
return globalLocale;
|
1895 |
-
}
|
1896 |
-
|
1897 |
-
function loadLocale(name) {
|
1898 |
-
var oldLocale = null;
|
1899 |
-
// TODO: Find a better way to register and load all the locales in Node
|
1900 |
-
if (!locales[name] && (typeof module !== 'undefined') &&
|
1901 |
-
module && module.exports) {
|
1902 |
-
try {
|
1903 |
-
oldLocale = globalLocale._abbr;
|
1904 |
-
var aliasedRequire = require;
|
1905 |
-
__webpack_require__(274)("./" + name);
|
1906 |
-
getSetGlobalLocale(oldLocale);
|
1907 |
-
} catch (e) {}
|
1908 |
-
}
|
1909 |
-
return locales[name];
|
1910 |
-
}
|
1911 |
-
|
1912 |
-
// This function will load locale and then set the global locale. If
|
1913 |
-
// no arguments are passed in, it will simply return the current global
|
1914 |
-
// locale key.
|
1915 |
-
function getSetGlobalLocale (key, values) {
|
1916 |
-
var data;
|
1917 |
-
if (key) {
|
1918 |
-
if (isUndefined(values)) {
|
1919 |
-
data = getLocale(key);
|
1920 |
-
}
|
1921 |
-
else {
|
1922 |
-
data = defineLocale(key, values);
|
1923 |
-
}
|
1924 |
-
|
1925 |
-
if (data) {
|
1926 |
-
// moment.duration._locale = moment._locale = data;
|
1927 |
-
globalLocale = data;
|
1928 |
-
}
|
1929 |
-
else {
|
1930 |
-
if ((typeof console !== 'undefined') && console.warn) {
|
1931 |
-
//warn user if arguments are passed but the locale could not be set
|
1932 |
-
console.warn('Locale ' + key + ' not found. Did you forget to load it?');
|
1933 |
-
}
|
1934 |
-
}
|
1935 |
-
}
|
1936 |
-
|
1937 |
-
return globalLocale._abbr;
|
1938 |
-
}
|
1939 |
-
|
1940 |
-
function defineLocale (name, config) {
|
1941 |
-
if (config !== null) {
|
1942 |
-
var locale, parentConfig = baseConfig;
|
1943 |
-
config.abbr = name;
|
1944 |
-
if (locales[name] != null) {
|
1945 |
-
deprecateSimple('defineLocaleOverride',
|
1946 |
-
'use moment.updateLocale(localeName, config) to change ' +
|
1947 |
-
'an existing locale. moment.defineLocale(localeName, ' +
|
1948 |
-
'config) should only be used for creating a new locale ' +
|
1949 |
-
'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
|
1950 |
-
parentConfig = locales[name]._config;
|
1951 |
-
} else if (config.parentLocale != null) {
|
1952 |
-
if (locales[config.parentLocale] != null) {
|
1953 |
-
parentConfig = locales[config.parentLocale]._config;
|
1954 |
-
} else {
|
1955 |
-
locale = loadLocale(config.parentLocale);
|
1956 |
-
if (locale != null) {
|
1957 |
-
parentConfig = locale._config;
|
1958 |
-
} else {
|
1959 |
-
if (!localeFamilies[config.parentLocale]) {
|
1960 |
-
localeFamilies[config.parentLocale] = [];
|
1961 |
-
}
|
1962 |
-
localeFamilies[config.parentLocale].push({
|
1963 |
-
name: name,
|
1964 |
-
config: config
|
1965 |
-
});
|
1966 |
-
return null;
|
1967 |
-
}
|
1968 |
-
}
|
1969 |
-
}
|
1970 |
-
locales[name] = new Locale(mergeConfigs(parentConfig, config));
|
1971 |
-
|
1972 |
-
if (localeFamilies[name]) {
|
1973 |
-
localeFamilies[name].forEach(function (x) {
|
1974 |
-
defineLocale(x.name, x.config);
|
1975 |
-
});
|
1976 |
-
}
|
1977 |
-
|
1978 |
-
// backwards compat for now: also set the locale
|
1979 |
-
// make sure we set the locale AFTER all child locales have been
|
1980 |
-
// created, so we won't end up with the child locale set.
|
1981 |
-
getSetGlobalLocale(name);
|
1982 |
-
|
1983 |
-
|
1984 |
-
return locales[name];
|
1985 |
-
} else {
|
1986 |
-
// useful for testing
|
1987 |
-
delete locales[name];
|
1988 |
-
return null;
|
1989 |
-
}
|
1990 |
-
}
|
1991 |
-
|
1992 |
-
function updateLocale(name, config) {
|
1993 |
-
if (config != null) {
|
1994 |
-
var locale, tmpLocale, parentConfig = baseConfig;
|
1995 |
-
// MERGE
|
1996 |
-
tmpLocale = loadLocale(name);
|
1997 |
-
if (tmpLocale != null) {
|
1998 |
-
parentConfig = tmpLocale._config;
|
1999 |
-
}
|
2000 |
-
config = mergeConfigs(parentConfig, config);
|
2001 |
-
locale = new Locale(config);
|
2002 |
-
locale.parentLocale = locales[name];
|
2003 |
-
locales[name] = locale;
|
2004 |
-
|
2005 |
-
// backwards compat for now: also set the locale
|
2006 |
-
getSetGlobalLocale(name);
|
2007 |
-
} else {
|
2008 |
-
// pass null for config to unupdate, useful for tests
|
2009 |
-
if (locales[name] != null) {
|
2010 |
-
if (locales[name].parentLocale != null) {
|
2011 |
-
locales[name] = locales[name].parentLocale;
|
2012 |
-
} else if (locales[name] != null) {
|
2013 |
-
delete locales[name];
|
2014 |
-
}
|
2015 |
-
}
|
2016 |
-
}
|
2017 |
-
return locales[name];
|
2018 |
-
}
|
2019 |
-
|
2020 |
-
// returns locale data
|
2021 |
-
function getLocale (key) {
|
2022 |
-
var locale;
|
2023 |
-
|
2024 |
-
if (key && key._locale && key._locale._abbr) {
|
2025 |
-
key = key._locale._abbr;
|
2026 |
-
}
|
2027 |
-
|
2028 |
-
if (!key) {
|
2029 |
-
return globalLocale;
|
2030 |
-
}
|
2031 |
-
|
2032 |
-
if (!isArray(key)) {
|
2033 |
-
//short-circuit everything else
|
2034 |
-
locale = loadLocale(key);
|
2035 |
-
if (locale) {
|
2036 |
-
return locale;
|
2037 |
-
}
|
2038 |
-
key = [key];
|
2039 |
-
}
|
2040 |
-
|
2041 |
-
return chooseLocale(key);
|
2042 |
-
}
|
2043 |
-
|
2044 |
-
function listLocales() {
|
2045 |
-
return keys(locales);
|
2046 |
-
}
|
2047 |
-
|
2048 |
-
function checkOverflow (m) {
|
2049 |
-
var overflow;
|
2050 |
-
var a = m._a;
|
2051 |
-
|
2052 |
-
if (a && getParsingFlags(m).overflow === -2) {
|
2053 |
-
overflow =
|
2054 |
-
a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
|
2055 |
-
a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
|
2056 |
-
a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
|
2057 |
-
a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
|
2058 |
-
a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
|
2059 |
-
a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
|
2060 |
-
-1;
|
2061 |
-
|
2062 |
-
if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
|
2063 |
-
overflow = DATE;
|
2064 |
-
}
|
2065 |
-
if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
|
2066 |
-
overflow = WEEK;
|
2067 |
-
}
|
2068 |
-
if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
|
2069 |
-
overflow = WEEKDAY;
|
2070 |
-
}
|
2071 |
-
|
2072 |
-
getParsingFlags(m).overflow = overflow;
|
2073 |
-
}
|
2074 |
-
|
2075 |
-
return m;
|
2076 |
-
}
|
2077 |
-
|
2078 |
-
// Pick the first defined of two or three arguments.
|
2079 |
-
function defaults(a, b, c) {
|
2080 |
-
if (a != null) {
|
2081 |
-
return a;
|
2082 |
-
}
|
2083 |
-
if (b != null) {
|
2084 |
-
return b;
|
2085 |
-
}
|
2086 |
-
return c;
|
2087 |
-
}
|
2088 |
-
|
2089 |
-
function currentDateArray(config) {
|
2090 |
-
// hooks is actually the exported moment object
|
2091 |
-
var nowValue = new Date(hooks.now());
|
2092 |
-
if (config._useUTC) {
|
2093 |
-
return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
|
2094 |
-
}
|
2095 |
-
return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
|
2096 |
-
}
|
2097 |
-
|
2098 |
-
// convert an array to a date.
|
2099 |
-
// the array should mirror the parameters below
|
2100 |
-
// note: all values past the year are optional and will default to the lowest possible value.
|
2101 |
-
// [year, month, day , hour, minute, second, millisecond]
|
2102 |
-
function configFromArray (config) {
|
2103 |
-
var i, date, input = [], currentDate, expectedWeekday, yearToUse;
|
2104 |
-
|
2105 |
-
if (config._d) {
|
2106 |
-
return;
|
2107 |
-
}
|
2108 |
-
|
2109 |
-
currentDate = currentDateArray(config);
|
2110 |
-
|
2111 |
-
//compute day of the year from weeks and weekdays
|
2112 |
-
if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
|
2113 |
-
dayOfYearFromWeekInfo(config);
|
2114 |
-
}
|
2115 |
-
|
2116 |
-
//if the day of the year is set, figure out what it is
|
2117 |
-
if (config._dayOfYear != null) {
|
2118 |
-
yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
|
2119 |
-
|
2120 |
-
if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
|
2121 |
-
getParsingFlags(config)._overflowDayOfYear = true;
|
2122 |
-
}
|
2123 |
-
|
2124 |
-
date = createUTCDate(yearToUse, 0, config._dayOfYear);
|
2125 |
-
config._a[MONTH] = date.getUTCMonth();
|
2126 |
-
config._a[DATE] = date.getUTCDate();
|
2127 |
-
}
|
2128 |
-
|
2129 |
-
// Default to current date.
|
2130 |
-
// * if no year, month, day of month are given, default to today
|
2131 |
-
// * if day of month is given, default month and year
|
2132 |
-
// * if month is given, default only year
|
2133 |
-
// * if year is given, don't default anything
|
2134 |
-
for (i = 0; i < 3 && config._a[i] == null; ++i) {
|
2135 |
-
config._a[i] = input[i] = currentDate[i];
|
2136 |
-
}
|
2137 |
-
|
2138 |
-
// Zero out whatever was not defaulted, including time
|
2139 |
-
for (; i < 7; i++) {
|
2140 |
-
config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
|
2141 |
-
}
|
2142 |
-
|
2143 |
-
// Check for 24:00:00.000
|
2144 |
-
if (config._a[HOUR] === 24 &&
|
2145 |
-
config._a[MINUTE] === 0 &&
|
2146 |
-
config._a[SECOND] === 0 &&
|
2147 |
-
config._a[MILLISECOND] === 0) {
|
2148 |
-
config._nextDay = true;
|
2149 |
-
config._a[HOUR] = 0;
|
2150 |
-
}
|
2151 |
-
|
2152 |
-
config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
|
2153 |
-
expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
|
2154 |
-
|
2155 |
-
// Apply timezone offset from input. The actual utcOffset can be changed
|
2156 |
-
// with parseZone.
|
2157 |
-
if (config._tzm != null) {
|
2158 |
-
config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
|
2159 |
-
}
|
2160 |
-
|
2161 |
-
if (config._nextDay) {
|
2162 |
-
config._a[HOUR] = 24;
|
2163 |
-
}
|
2164 |
-
|
2165 |
-
// check for mismatching day of week
|
2166 |
-
if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {
|
2167 |
-
getParsingFlags(config).weekdayMismatch = true;
|
2168 |
-
}
|
2169 |
-
}
|
2170 |
-
|
2171 |
-
function dayOfYearFromWeekInfo(config) {
|
2172 |
-
var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;
|
2173 |
-
|
2174 |
-
w = config._w;
|
2175 |
-
if (w.GG != null || w.W != null || w.E != null) {
|
2176 |
-
dow = 1;
|
2177 |
-
doy = 4;
|
2178 |
-
|
2179 |
-
// TODO: We need to take the current isoWeekYear, but that depends on
|
2180 |
-
// how we interpret now (local, utc, fixed offset). So create
|
2181 |
-
// a now version of current config (take local/utc/offset flags, and
|
2182 |
-
// create now).
|
2183 |
-
weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
|
2184 |
-
week = defaults(w.W, 1);
|
2185 |
-
weekday = defaults(w.E, 1);
|
2186 |
-
if (weekday < 1 || weekday > 7) {
|
2187 |
-
weekdayOverflow = true;
|
2188 |
-
}
|
2189 |
-
} else {
|
2190 |
-
dow = config._locale._week.dow;
|
2191 |
-
doy = config._locale._week.doy;
|
2192 |
-
|
2193 |
-
var curWeek = weekOfYear(createLocal(), dow, doy);
|
2194 |
-
|
2195 |
-
weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
|
2196 |
-
|
2197 |
-
// Default to current week.
|
2198 |
-
week = defaults(w.w, curWeek.week);
|
2199 |
-
|
2200 |
-
if (w.d != null) {
|
2201 |
-
// weekday -- low day numbers are considered next week
|
2202 |
-
weekday = w.d;
|
2203 |
-
if (weekday < 0 || weekday > 6) {
|
2204 |
-
weekdayOverflow = true;
|
2205 |
-
}
|
2206 |
-
} else if (w.e != null) {
|
2207 |
-
// local weekday -- counting starts from begining of week
|
2208 |
-
weekday = w.e + dow;
|
2209 |
-
if (w.e < 0 || w.e > 6) {
|
2210 |
-
weekdayOverflow = true;
|
2211 |
-
}
|
2212 |
-
} else {
|
2213 |
-
// default to begining of week
|
2214 |
-
weekday = dow;
|
2215 |
-
}
|
2216 |
-
}
|
2217 |
-
if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
|
2218 |
-
getParsingFlags(config)._overflowWeeks = true;
|
2219 |
-
} else if (weekdayOverflow != null) {
|
2220 |
-
getParsingFlags(config)._overflowWeekday = true;
|
2221 |
-
} else {
|
2222 |
-
temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
|
2223 |
-
config._a[YEAR] = temp.year;
|
2224 |
-
config._dayOfYear = temp.dayOfYear;
|
2225 |
-
}
|
2226 |
-
}
|
2227 |
-
|
2228 |
-
// iso 8601 regex
|
2229 |
-
// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
|
2230 |
-
var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
|
2231 |
-
var basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
|
2232 |
-
|
2233 |
-
var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/;
|
2234 |
-
|
2235 |
-
var isoDates = [
|
2236 |
-
['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
|
2237 |
-
['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
|
2238 |
-
['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
|
2239 |
-
['GGGG-[W]WW', /\d{4}-W\d\d/, false],
|
2240 |
-
['YYYY-DDD', /\d{4}-\d{3}/],
|
2241 |
-
['YYYY-MM', /\d{4}-\d\d/, false],
|
2242 |
-
['YYYYYYMMDD', /[+-]\d{10}/],
|
2243 |
-
['YYYYMMDD', /\d{8}/],
|
2244 |
-
// YYYYMM is NOT allowed by the standard
|
2245 |
-
['GGGG[W]WWE', /\d{4}W\d{3}/],
|
2246 |
-
['GGGG[W]WW', /\d{4}W\d{2}/, false],
|
2247 |
-
['YYYYDDD', /\d{7}/]
|
2248 |
-
];
|
2249 |
-
|
2250 |
-
// iso time formats and regexes
|
2251 |
-
var isoTimes = [
|
2252 |
-
['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
|
2253 |
-
['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
|
2254 |
-
['HH:mm:ss', /\d\d:\d\d:\d\d/],
|
2255 |
-
['HH:mm', /\d\d:\d\d/],
|
2256 |
-
['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
|
2257 |
-
['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
|
2258 |
-
['HHmmss', /\d\d\d\d\d\d/],
|
2259 |
-
['HHmm', /\d\d\d\d/],
|
2260 |
-
['HH', /\d\d/]
|
2261 |
-
];
|
2262 |
-
|
2263 |
-
var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
|
2264 |
-
|
2265 |
-
// date from iso format
|
2266 |
-
function configFromISO(config) {
|
2267 |
-
var i, l,
|
2268 |
-
string = config._i,
|
2269 |
-
match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
|
2270 |
-
allowTime, dateFormat, timeFormat, tzFormat;
|
2271 |
-
|
2272 |
-
if (match) {
|
2273 |
-
getParsingFlags(config).iso = true;
|
2274 |
-
|
2275 |
-
for (i = 0, l = isoDates.length; i < l; i++) {
|
2276 |
-
if (isoDates[i][1].exec(match[1])) {
|
2277 |
-
dateFormat = isoDates[i][0];
|
2278 |
-
allowTime = isoDates[i][2] !== false;
|
2279 |
-
break;
|
2280 |
-
}
|
2281 |
-
}
|
2282 |
-
if (dateFormat == null) {
|
2283 |
-
config._isValid = false;
|
2284 |
-
return;
|
2285 |
-
}
|
2286 |
-
if (match[3]) {
|
2287 |
-
for (i = 0, l = isoTimes.length; i < l; i++) {
|
2288 |
-
if (isoTimes[i][1].exec(match[3])) {
|
2289 |
-
// match[2] should be 'T' or space
|
2290 |
-
timeFormat = (match[2] || ' ') + isoTimes[i][0];
|
2291 |
-
break;
|
2292 |
-
}
|
2293 |
-
}
|
2294 |
-
if (timeFormat == null) {
|
2295 |
-
config._isValid = false;
|
2296 |
-
return;
|
2297 |
-
}
|
2298 |
-
}
|
2299 |
-
if (!allowTime && timeFormat != null) {
|
2300 |
-
config._isValid = false;
|
2301 |
-
return;
|
2302 |
-
}
|
2303 |
-
if (match[4]) {
|
2304 |
-
if (tzRegex.exec(match[4])) {
|
2305 |
-
tzFormat = 'Z';
|
2306 |
-
} else {
|
2307 |
-
config._isValid = false;
|
2308 |
-
return;
|
2309 |
-
}
|
2310 |
-
}
|
2311 |
-
config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
|
2312 |
-
configFromStringAndFormat(config);
|
2313 |
-
} else {
|
2314 |
-
config._isValid = false;
|
2315 |
-
}
|
2316 |
-
}
|
2317 |
-
|
2318 |
-
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
2319 |
-
var rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;
|
2320 |
-
|
2321 |
-
function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
|
2322 |
-
var result = [
|
2323 |
-
untruncateYear(yearStr),
|
2324 |
-
defaultLocaleMonthsShort.indexOf(monthStr),
|
2325 |
-
parseInt(dayStr, 10),
|
2326 |
-
parseInt(hourStr, 10),
|
2327 |
-
parseInt(minuteStr, 10)
|
2328 |
-
];
|
2329 |
-
|
2330 |
-
if (secondStr) {
|
2331 |
-
result.push(parseInt(secondStr, 10));
|
2332 |
-
}
|
2333 |
-
|
2334 |
-
return result;
|
2335 |
-
}
|
2336 |
-
|
2337 |
-
function untruncateYear(yearStr) {
|
2338 |
-
var year = parseInt(yearStr, 10);
|
2339 |
-
if (year <= 49) {
|
2340 |
-
return 2000 + year;
|
2341 |
-
} else if (year <= 999) {
|
2342 |
-
return 1900 + year;
|
2343 |
-
}
|
2344 |
-
return year;
|
2345 |
-
}
|
2346 |
-
|
2347 |
-
function preprocessRFC2822(s) {
|
2348 |
-
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
2349 |
-
return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').trim();
|
2350 |
-
}
|
2351 |
-
|
2352 |
-
function checkWeekday(weekdayStr, parsedInput, config) {
|
2353 |
-
if (weekdayStr) {
|
2354 |
-
// TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.
|
2355 |
-
var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
|
2356 |
-
weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();
|
2357 |
-
if (weekdayProvided !== weekdayActual) {
|
2358 |
-
getParsingFlags(config).weekdayMismatch = true;
|
2359 |
-
config._isValid = false;
|
2360 |
-
return false;
|
2361 |
-
}
|
2362 |
-
}
|
2363 |
-
return true;
|
2364 |
-
}
|
2365 |
-
|
2366 |
-
var obsOffsets = {
|
2367 |
-
UT: 0,
|
2368 |
-
GMT: 0,
|
2369 |
-
EDT: -4 * 60,
|
2370 |
-
EST: -5 * 60,
|
2371 |
-
CDT: -5 * 60,
|
2372 |
-
CST: -6 * 60,
|
2373 |
-
MDT: -6 * 60,
|
2374 |
-
MST: -7 * 60,
|
2375 |
-
PDT: -7 * 60,
|
2376 |
-
PST: -8 * 60
|
2377 |
-
};
|
2378 |
-
|
2379 |
-
function calculateOffset(obsOffset, militaryOffset, numOffset) {
|
2380 |
-
if (obsOffset) {
|
2381 |
-
return obsOffsets[obsOffset];
|
2382 |
-
} else if (militaryOffset) {
|
2383 |
-
// the only allowed military tz is Z
|
2384 |
-
return 0;
|
2385 |
-
} else {
|
2386 |
-
var hm = parseInt(numOffset, 10);
|
2387 |
-
var m = hm % 100, h = (hm - m) / 100;
|
2388 |
-
return h * 60 + m;
|
2389 |
-
}
|
2390 |
-
}
|
2391 |
-
|
2392 |
-
// date and time from ref 2822 format
|
2393 |
-
function configFromRFC2822(config) {
|
2394 |
-
var match = rfc2822.exec(preprocessRFC2822(config._i));
|
2395 |
-
if (match) {
|
2396 |
-
var parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
|
2397 |
-
if (!checkWeekday(match[1], parsedArray, config)) {
|
2398 |
-
return;
|
2399 |
-
}
|
2400 |
-
|
2401 |
-
config._a = parsedArray;
|
2402 |
-
config._tzm = calculateOffset(match[8], match[9], match[10]);
|
2403 |
-
|
2404 |
-
config._d = createUTCDate.apply(null, config._a);
|
2405 |
-
config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
|
2406 |
-
|
2407 |
-
getParsingFlags(config).rfc2822 = true;
|
2408 |
-
} else {
|
2409 |
-
config._isValid = false;
|
2410 |
-
}
|
2411 |
-
}
|
2412 |
-
|
2413 |
-
// date from iso format or fallback
|
2414 |
-
function configFromString(config) {
|
2415 |
-
var matched = aspNetJsonRegex.exec(config._i);
|
2416 |
-
|
2417 |
-
if (matched !== null) {
|
2418 |
-
config._d = new Date(+matched[1]);
|
2419 |
-
return;
|
2420 |
-
}
|
2421 |
-
|
2422 |
-
configFromISO(config);
|
2423 |
-
if (config._isValid === false) {
|
2424 |
-
delete config._isValid;
|
2425 |
-
} else {
|
2426 |
-
return;
|
2427 |
-
}
|
2428 |
-
|
2429 |
-
configFromRFC2822(config);
|
2430 |
-
if (config._isValid === false) {
|
2431 |
-
delete config._isValid;
|
2432 |
-
} else {
|
2433 |
-
return;
|
2434 |
-
}
|
2435 |
-
|
2436 |
-
// Final attempt, use Input Fallback
|
2437 |
-
hooks.createFromInputFallback(config);
|
2438 |
-
}
|
2439 |
-
|
2440 |
-
hooks.createFromInputFallback = deprecate(
|
2441 |
-
'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
|
2442 |
-
'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
|
2443 |
-
'discouraged and will be removed in an upcoming major release. Please refer to ' +
|
2444 |
-
'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
|
2445 |
-
function (config) {
|
2446 |
-
config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
|
2447 |
-
}
|
2448 |
-
);
|
2449 |
-
|
2450 |
-
// constant that refers to the ISO standard
|
2451 |
-
hooks.ISO_8601 = function () {};
|
2452 |
-
|
2453 |
-
// constant that refers to the RFC 2822 form
|
2454 |
-
hooks.RFC_2822 = function () {};
|
2455 |
-
|
2456 |
-
// date from string and format string
|
2457 |
-
function configFromStringAndFormat(config) {
|
2458 |
-
// TODO: Move this to another part of the creation flow to prevent circular deps
|
2459 |
-
if (config._f === hooks.ISO_8601) {
|
2460 |
-
configFromISO(config);
|
2461 |
-
return;
|
2462 |
-
}
|
2463 |
-
if (config._f === hooks.RFC_2822) {
|
2464 |
-
configFromRFC2822(config);
|
2465 |
-
return;
|
2466 |
-
}
|
2467 |
-
config._a = [];
|
2468 |
-
getParsingFlags(config).empty = true;
|
2469 |
-
|
2470 |
-
// This array is used to make a Date, either with `new Date` or `Date.UTC`
|
2471 |
-
var string = '' + config._i,
|
2472 |
-
i, parsedInput, tokens, token, skipped,
|
2473 |
-
stringLength = string.length,
|
2474 |
-
totalParsedInputLength = 0;
|
2475 |
-
|
2476 |
-
tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
|
2477 |
-
|
2478 |
-
for (i = 0; i < tokens.length; i++) {
|
2479 |
-
token = tokens[i];
|
2480 |
-
parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
|
2481 |
-
// console.log('token', token, 'parsedInput', parsedInput,
|
2482 |
-
// 'regex', getParseRegexForToken(token, config));
|
2483 |
-
if (parsedInput) {
|
2484 |
-
skipped = string.substr(0, string.indexOf(parsedInput));
|
2485 |
-
if (skipped.length > 0) {
|
2486 |
-
getParsingFlags(config).unusedInput.push(skipped);
|
2487 |
-
}
|
2488 |
-
string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
|
2489 |
-
totalParsedInputLength += parsedInput.length;
|
2490 |
-
}
|
2491 |
-
// don't parse if it's not a known token
|
2492 |
-
if (formatTokenFunctions[token]) {
|
2493 |
-
if (parsedInput) {
|
2494 |
-
getParsingFlags(config).empty = false;
|
2495 |
-
}
|
2496 |
-
else {
|
2497 |
-
getParsingFlags(config).unusedTokens.push(token);
|
2498 |
-
}
|
2499 |
-
addTimeToArrayFromToken(token, parsedInput, config);
|
2500 |
-
}
|
2501 |
-
else if (config._strict && !parsedInput) {
|
2502 |
-
getParsingFlags(config).unusedTokens.push(token);
|
2503 |
-
}
|
2504 |
-
}
|
2505 |
-
|
2506 |
-
// add remaining unparsed input length to the string
|
2507 |
-
getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
|
2508 |
-
if (string.length > 0) {
|
2509 |
-
getParsingFlags(config).unusedInput.push(string);
|
2510 |
-
}
|
2511 |
-
|
2512 |
-
// clear _12h flag if hour is <= 12
|
2513 |
-
if (config._a[HOUR] <= 12 &&
|
2514 |
-
getParsingFlags(config).bigHour === true &&
|
2515 |
-
config._a[HOUR] > 0) {
|
2516 |
-
getParsingFlags(config).bigHour = undefined;
|
2517 |
-
}
|
2518 |
-
|
2519 |
-
getParsingFlags(config).parsedDateParts = config._a.slice(0);
|
2520 |
-
getParsingFlags(config).meridiem = config._meridiem;
|
2521 |
-
// handle meridiem
|
2522 |
-
config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
|
2523 |
-
|
2524 |
-
configFromArray(config);
|
2525 |
-
checkOverflow(config);
|
2526 |
-
}
|
2527 |
-
|
2528 |
-
|
2529 |
-
function meridiemFixWrap (locale, hour, meridiem) {
|
2530 |
-
var isPm;
|
2531 |
-
|
2532 |
-
if (meridiem == null) {
|
2533 |
-
// nothing to do
|
2534 |
-
return hour;
|
2535 |
-
}
|
2536 |
-
if (locale.meridiemHour != null) {
|
2537 |
-
return locale.meridiemHour(hour, meridiem);
|
2538 |
-
} else if (locale.isPM != null) {
|
2539 |
-
// Fallback
|
2540 |
-
isPm = locale.isPM(meridiem);
|
2541 |
-
if (isPm && hour < 12) {
|
2542 |
-
hour += 12;
|
2543 |
-
}
|
2544 |
-
if (!isPm && hour === 12) {
|
2545 |
-
hour = 0;
|
2546 |
-
}
|
2547 |
-
return hour;
|
2548 |
-
} else {
|
2549 |
-
// this is not supposed to happen
|
2550 |
-
return hour;
|
2551 |
-
}
|
2552 |
-
}
|
2553 |
-
|
2554 |
-
// date from string and array of format strings
|
2555 |
-
function configFromStringAndArray(config) {
|
2556 |
-
var tempConfig,
|
2557 |
-
bestMoment,
|
2558 |
-
|
2559 |
-
scoreToBeat,
|
2560 |
-
i,
|
2561 |
-
currentScore;
|
2562 |
-
|
2563 |
-
if (config._f.length === 0) {
|
2564 |
-
getParsingFlags(config).invalidFormat = true;
|
2565 |
-
config._d = new Date(NaN);
|
2566 |
-
return;
|
2567 |
-
}
|
2568 |
-
|
2569 |
-
for (i = 0; i < config._f.length; i++) {
|
2570 |
-
currentScore = 0;
|
2571 |
-
tempConfig = copyConfig({}, config);
|
2572 |
-
if (config._useUTC != null) {
|
2573 |
-
tempConfig._useUTC = config._useUTC;
|
2574 |
-
}
|
2575 |
-
tempConfig._f = config._f[i];
|
2576 |
-
configFromStringAndFormat(tempConfig);
|
2577 |
-
|
2578 |
-
if (!isValid(tempConfig)) {
|
2579 |
-
continue;
|
2580 |
-
}
|
2581 |
-
|
2582 |
-
// if there is any input that was not parsed add a penalty for that format
|
2583 |
-
currentScore += getParsingFlags(tempConfig).charsLeftOver;
|
2584 |
-
|
2585 |
-
//or tokens
|
2586 |
-
currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
|
2587 |
-
|
2588 |
-
getParsingFlags(tempConfig).score = currentScore;
|
2589 |
-
|
2590 |
-
if (scoreToBeat == null || currentScore < scoreToBeat) {
|
2591 |
-
scoreToBeat = currentScore;
|
2592 |
-
bestMoment = tempConfig;
|
2593 |
-
}
|
2594 |
-
}
|
2595 |
-
|
2596 |
-
extend(config, bestMoment || tempConfig);
|
2597 |
-
}
|
2598 |
-
|
2599 |
-
function configFromObject(config) {
|
2600 |
-
if (config._d) {
|
2601 |
-
return;
|
2602 |
-
}
|
2603 |
-
|
2604 |
-
var i = normalizeObjectUnits(config._i);
|
2605 |
-
config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
|
2606 |
-
return obj && parseInt(obj, 10);
|
2607 |
-
});
|
2608 |
-
|
2609 |
-
configFromArray(config);
|
2610 |
-
}
|
2611 |
-
|
2612 |
-
function createFromConfig (config) {
|
2613 |
-
var res = new Moment(checkOverflow(prepareConfig(config)));
|
2614 |
-
if (res._nextDay) {
|
2615 |
-
// Adding is smart enough around DST
|
2616 |
-
res.add(1, 'd');
|
2617 |
-
res._nextDay = undefined;
|
2618 |
-
}
|
2619 |
-
|
2620 |
-
return res;
|
2621 |
-
}
|
2622 |
-
|
2623 |
-
function prepareConfig (config) {
|
2624 |
-
var input = config._i,
|
2625 |
-
format = config._f;
|
2626 |
-
|
2627 |
-
config._locale = config._locale || getLocale(config._l);
|
2628 |
-
|
2629 |
-
if (input === null || (format === undefined && input === '')) {
|
2630 |
-
return createInvalid({nullInput: true});
|
2631 |
-
}
|
2632 |
-
|
2633 |
-
if (typeof input === 'string') {
|
2634 |
-
config._i = input = config._locale.preparse(input);
|
2635 |
-
}
|
2636 |
-
|
2637 |
-
if (isMoment(input)) {
|
2638 |
-
return new Moment(checkOverflow(input));
|
2639 |
-
} else if (isDate(input)) {
|
2640 |
-
config._d = input;
|
2641 |
-
} else if (isArray(format)) {
|
2642 |
-
configFromStringAndArray(config);
|
2643 |
-
} else if (format) {
|
2644 |
-
configFromStringAndFormat(config);
|
2645 |
-
} else {
|
2646 |
-
configFromInput(config);
|
2647 |
-
}
|
2648 |
-
|
2649 |
-
if (!isValid(config)) {
|
2650 |
-
config._d = null;
|
2651 |
-
}
|
2652 |
-
|
2653 |
-
return config;
|
2654 |
-
}
|
2655 |
-
|
2656 |
-
function configFromInput(config) {
|
2657 |
-
var input = config._i;
|
2658 |
-
if (isUndefined(input)) {
|
2659 |
-
config._d = new Date(hooks.now());
|
2660 |
-
} else if (isDate(input)) {
|
2661 |
-
config._d = new Date(input.valueOf());
|
2662 |
-
} else if (typeof input === 'string') {
|
2663 |
-
configFromString(config);
|
2664 |
-
} else if (isArray(input)) {
|
2665 |
-
config._a = map(input.slice(0), function (obj) {
|
2666 |
-
return parseInt(obj, 10);
|
2667 |
-
});
|
2668 |
-
configFromArray(config);
|
2669 |
-
} else if (isObject(input)) {
|
2670 |
-
configFromObject(config);
|
2671 |
-
} else if (isNumber(input)) {
|
2672 |
-
// from milliseconds
|
2673 |
-
config._d = new Date(input);
|
2674 |
-
} else {
|
2675 |
-
hooks.createFromInputFallback(config);
|
2676 |
-
}
|
2677 |
-
}
|
2678 |
-
|
2679 |
-
function createLocalOrUTC (input, format, locale, strict, isUTC) {
|
2680 |
-
var c = {};
|
2681 |
-
|
2682 |
-
if (locale === true || locale === false) {
|
2683 |
-
strict = locale;
|
2684 |
-
locale = undefined;
|
2685 |
-
}
|
2686 |
-
|
2687 |
-
if ((isObject(input) && isObjectEmpty(input)) ||
|
2688 |
-
(isArray(input) && input.length === 0)) {
|
2689 |
-
input = undefined;
|
2690 |
-
}
|
2691 |
-
// object construction must be done this way.
|
2692 |
-
// https://github.com/moment/moment/issues/1423
|
2693 |
-
c._isAMomentObject = true;
|
2694 |
-
c._useUTC = c._isUTC = isUTC;
|
2695 |
-
c._l = locale;
|
2696 |
-
c._i = input;
|
2697 |
-
c._f = format;
|
2698 |
-
c._strict = strict;
|
2699 |
-
|
2700 |
-
return createFromConfig(c);
|
2701 |
-
}
|
2702 |
-
|
2703 |
-
function createLocal (input, format, locale, strict) {
|
2704 |
-
return createLocalOrUTC(input, format, locale, strict, false);
|
2705 |
-
}
|
2706 |
-
|
2707 |
-
var prototypeMin = deprecate(
|
2708 |
-
'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
|
2709 |
-
function () {
|
2710 |
-
var other = createLocal.apply(null, arguments);
|
2711 |
-
if (this.isValid() && other.isValid()) {
|
2712 |
-
return other < this ? this : other;
|
2713 |
-
} else {
|
2714 |
-
return createInvalid();
|
2715 |
-
}
|
2716 |
-
}
|
2717 |
-
);
|
2718 |
-
|
2719 |
-
var prototypeMax = deprecate(
|
2720 |
-
'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
|
2721 |
-
function () {
|
2722 |
-
var other = createLocal.apply(null, arguments);
|
2723 |
-
if (this.isValid() && other.isValid()) {
|
2724 |
-
return other > this ? this : other;
|
2725 |
-
} else {
|
2726 |
-
return createInvalid();
|
2727 |
-
}
|
2728 |
-
}
|
2729 |
-
);
|
2730 |
-
|
2731 |
-
// Pick a moment m from moments so that m[fn](other) is true for all
|
2732 |
-
// other. This relies on the function fn to be transitive.
|
2733 |
-
//
|
2734 |
-
// moments should either be an array of moment objects or an array, whose
|
2735 |
-
// first element is an array of moment objects.
|
2736 |
-
function pickBy(fn, moments) {
|
2737 |
-
var res, i;
|
2738 |
-
if (moments.length === 1 && isArray(moments[0])) {
|
2739 |
-
moments = moments[0];
|
2740 |
-
}
|
2741 |
-
if (!moments.length) {
|
2742 |
-
return createLocal();
|
2743 |
-
}
|
2744 |
-
res = moments[0];
|
2745 |
-
for (i = 1; i < moments.length; ++i) {
|
2746 |
-
if (!moments[i].isValid() || moments[i][fn](res)) {
|
2747 |
-
res = moments[i];
|
2748 |
-
}
|
2749 |
-
}
|
2750 |
-
return res;
|
2751 |
-
}
|
2752 |
-
|
2753 |
-
// TODO: Use [].sort instead?
|
2754 |
-
function min () {
|
2755 |
-
var args = [].slice.call(arguments, 0);
|
2756 |
-
|
2757 |
-
return pickBy('isBefore', args);
|
2758 |
-
}
|
2759 |
-
|
2760 |
-
function max () {
|
2761 |
-
var args = [].slice.call(arguments, 0);
|
2762 |
-
|
2763 |
-
return pickBy('isAfter', args);
|
2764 |
-
}
|
2765 |
-
|
2766 |
-
var now = function () {
|
2767 |
-
return Date.now ? Date.now() : +(new Date());
|
2768 |
-
};
|
2769 |
-
|
2770 |
-
var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
|
2771 |
-
|
2772 |
-
function isDurationValid(m) {
|
2773 |
-
for (var key in m) {
|
2774 |
-
if (!(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
|
2775 |
-
return false;
|
2776 |
-
}
|
2777 |
-
}
|
2778 |
-
|
2779 |
-
var unitHasDecimal = false;
|
2780 |
-
for (var i = 0; i < ordering.length; ++i) {
|
2781 |
-
if (m[ordering[i]]) {
|
2782 |
-
if (unitHasDecimal) {
|
2783 |
-
return false; // only allow non-integers for smallest unit
|
2784 |
-
}
|
2785 |
-
if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
|
2786 |
-
unitHasDecimal = true;
|
2787 |
-
}
|
2788 |
-
}
|
2789 |
-
}
|
2790 |
-
|
2791 |
-
return true;
|
2792 |
-
}
|
2793 |
-
|
2794 |
-
function isValid$1() {
|
2795 |
-
return this._isValid;
|
2796 |
-
}
|
2797 |
-
|
2798 |
-
function createInvalid$1() {
|
2799 |
-
return createDuration(NaN);
|
2800 |
-
}
|
2801 |
-
|
2802 |
-
function Duration (duration) {
|
2803 |
-
var normalizedInput = normalizeObjectUnits(duration),
|
2804 |
-
years = normalizedInput.year || 0,
|
2805 |
-
quarters = normalizedInput.quarter || 0,
|
2806 |
-
months = normalizedInput.month || 0,
|
2807 |
-
weeks = normalizedInput.week || 0,
|
2808 |
-
days = normalizedInput.day || 0,
|
2809 |
-
hours = normalizedInput.hour || 0,
|
2810 |
-
minutes = normalizedInput.minute || 0,
|
2811 |
-
seconds = normalizedInput.second || 0,
|
2812 |
-
milliseconds = normalizedInput.millisecond || 0;
|
2813 |
-
|
2814 |
-
this._isValid = isDurationValid(normalizedInput);
|
2815 |
-
|
2816 |
-
// representation for dateAddRemove
|
2817 |
-
this._milliseconds = +milliseconds +
|
2818 |
-
seconds * 1e3 + // 1000
|
2819 |
-
minutes * 6e4 + // 1000 * 60
|
2820 |
-
hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
|
2821 |
-
// Because of dateAddRemove treats 24 hours as different from a
|
2822 |
-
// day when working around DST, we need to store them separately
|
2823 |
-
this._days = +days +
|
2824 |
-
weeks * 7;
|
2825 |
-
// It is impossible to translate months into days without knowing
|
2826 |
-
// which months you are are talking about, so we have to store
|
2827 |
-
// it separately.
|
2828 |
-
this._months = +months +
|
2829 |
-
quarters * 3 +
|
2830 |
-
years * 12;
|
2831 |
-
|
2832 |
-
this._data = {};
|
2833 |
-
|
2834 |
-
this._locale = getLocale();
|
2835 |
-
|
2836 |
-
this._bubble();
|
2837 |
-
}
|
2838 |
-
|
2839 |
-
function isDuration (obj) {
|
2840 |
-
return obj instanceof Duration;
|
2841 |
-
}
|
2842 |
-
|
2843 |
-
function absRound (number) {
|
2844 |
-
if (number < 0) {
|
2845 |
-
return Math.round(-1 * number) * -1;
|
2846 |
-
} else {
|
2847 |
-
return Math.round(number);
|
2848 |
-
}
|
2849 |
-
}
|
2850 |
-
|
2851 |
-
// FORMATTING
|
2852 |
-
|
2853 |
-
function offset (token, separator) {
|
2854 |
-
addFormatToken(token, 0, 0, function () {
|
2855 |
-
var offset = this.utcOffset();
|
2856 |
-
var sign = '+';
|
2857 |
-
if (offset < 0) {
|
2858 |
-
offset = -offset;
|
2859 |
-
sign = '-';
|
2860 |
-
}
|
2861 |
-
return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
|
2862 |
-
});
|
2863 |
-
}
|
2864 |
-
|
2865 |
-
offset('Z', ':');
|
2866 |
-
offset('ZZ', '');
|
2867 |
-
|
2868 |
-
// PARSING
|
2869 |
-
|
2870 |
-
addRegexToken('Z', matchShortOffset);
|
2871 |
-
addRegexToken('ZZ', matchShortOffset);
|
2872 |
-
addParseToken(['Z', 'ZZ'], function (input, array, config) {
|
2873 |
-
config._useUTC = true;
|
2874 |
-
config._tzm = offsetFromString(matchShortOffset, input);
|
2875 |
-
});
|
2876 |
-
|
2877 |
-
// HELPERS
|
2878 |
-
|
2879 |
-
// timezone chunker
|
2880 |
-
// '+10:00' > ['10', '00']
|
2881 |
-
// '-1530' > ['-15', '30']
|
2882 |
-
var chunkOffset = /([\+\-]|\d\d)/gi;
|
2883 |
-
|
2884 |
-
function offsetFromString(matcher, string) {
|
2885 |
-
var matches = (string || '').match(matcher);
|
2886 |
-
|
2887 |
-
if (matches === null) {
|
2888 |
-
return null;
|
2889 |
-
}
|
2890 |
-
|
2891 |
-
var chunk = matches[matches.length - 1] || [];
|
2892 |
-
var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
|
2893 |
-
var minutes = +(parts[1] * 60) + toInt(parts[2]);
|
2894 |
-
|
2895 |
-
return minutes === 0 ?
|
2896 |
-
0 :
|
2897 |
-
parts[0] === '+' ? minutes : -minutes;
|
2898 |
-
}
|
2899 |
-
|
2900 |
-
// Return a moment from input, that is local/utc/zone equivalent to model.
|
2901 |
-
function cloneWithOffset(input, model) {
|
2902 |
-
var res, diff;
|
2903 |
-
if (model._isUTC) {
|
2904 |
-
res = model.clone();
|
2905 |
-
diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
|
2906 |
-
// Use low-level api, because this fn is low-level api.
|
2907 |
-
res._d.setTime(res._d.valueOf() + diff);
|
2908 |
-
hooks.updateOffset(res, false);
|
2909 |
-
return res;
|
2910 |
-
} else {
|
2911 |
-
return createLocal(input).local();
|
2912 |
-
}
|
2913 |
-
}
|
2914 |
-
|
2915 |
-
function getDateOffset (m) {
|
2916 |
-
// On Firefox.24 Date#getTimezoneOffset returns a floating point.
|
2917 |
-
// https://github.com/moment/moment/pull/1871
|
2918 |
-
return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
|
2919 |
-
}
|
2920 |
-
|
2921 |
-
// HOOKS
|
2922 |
-
|
2923 |
-
// This function will be called whenever a moment is mutated.
|
2924 |
-
// It is intended to keep the offset in sync with the timezone.
|
2925 |
-
hooks.updateOffset = function () {};
|
2926 |
-
|
2927 |
-
// MOMENTS
|
2928 |
-
|
2929 |
-
// keepLocalTime = true means only change the timezone, without
|
2930 |
-
// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
|
2931 |
-
// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
|
2932 |
-
// +0200, so we adjust the time as needed, to be valid.
|
2933 |
-
//
|
2934 |
-
// Keeping the time actually adds/subtracts (one hour)
|
2935 |
-
// from the actual represented time. That is why we call updateOffset
|
2936 |
-
// a second time. In case it wants us to change the offset again
|
2937 |
-
// _changeInProgress == true case, then we have to adjust, because
|
2938 |
-
// there is no such time in the given timezone.
|
2939 |
-
function getSetOffset (input, keepLocalTime, keepMinutes) {
|
2940 |
-
var offset = this._offset || 0,
|
2941 |
-
localAdjust;
|
2942 |
-
if (!this.isValid()) {
|
2943 |
-
return input != null ? this : NaN;
|
2944 |
-
}
|
2945 |
-
if (input != null) {
|
2946 |
-
if (typeof input === 'string') {
|
2947 |
-
input = offsetFromString(matchShortOffset, input);
|
2948 |
-
if (input === null) {
|
2949 |
-
return this;
|
2950 |
-
}
|
2951 |
-
} else if (Math.abs(input) < 16 && !keepMinutes) {
|
2952 |
-
input = input * 60;
|
2953 |
-
}
|
2954 |
-
if (!this._isUTC && keepLocalTime) {
|
2955 |
-
localAdjust = getDateOffset(this);
|
2956 |
-
}
|
2957 |
-
this._offset = input;
|
2958 |
-
this._isUTC = true;
|
2959 |
-
if (localAdjust != null) {
|
2960 |
-
this.add(localAdjust, 'm');
|
2961 |
-
}
|
2962 |
-
if (offset !== input) {
|
2963 |
-
if (!keepLocalTime || this._changeInProgress) {
|
2964 |
-
addSubtract(this, createDuration(input - offset, 'm'), 1, false);
|
2965 |
-
} else if (!this._changeInProgress) {
|
2966 |
-
this._changeInProgress = true;
|
2967 |
-
hooks.updateOffset(this, true);
|
2968 |
-
this._changeInProgress = null;
|
2969 |
-
}
|
2970 |
-
}
|
2971 |
-
return this;
|
2972 |
-
} else {
|
2973 |
-
return this._isUTC ? offset : getDateOffset(this);
|
2974 |
-
}
|
2975 |
-
}
|
2976 |
-
|
2977 |
-
function getSetZone (input, keepLocalTime) {
|
2978 |
-
if (input != null) {
|
2979 |
-
if (typeof input !== 'string') {
|
2980 |
-
input = -input;
|
2981 |
-
}
|
2982 |
-
|
2983 |
-
this.utcOffset(input, keepLocalTime);
|
2984 |
-
|
2985 |
-
return this;
|
2986 |
-
} else {
|
2987 |
-
return -this.utcOffset();
|
2988 |
-
}
|
2989 |
-
}
|
2990 |
-
|
2991 |
-
function setOffsetToUTC (keepLocalTime) {
|
2992 |
-
return this.utcOffset(0, keepLocalTime);
|
2993 |
-
}
|
2994 |
-
|
2995 |
-
function setOffsetToLocal (keepLocalTime) {
|
2996 |
-
if (this._isUTC) {
|
2997 |
-
this.utcOffset(0, keepLocalTime);
|
2998 |
-
this._isUTC = false;
|
2999 |
-
|
3000 |
-
if (keepLocalTime) {
|
3001 |
-
this.subtract(getDateOffset(this), 'm');
|
3002 |
-
}
|
3003 |
-
}
|
3004 |
-
return this;
|
3005 |
-
}
|
3006 |
-
|
3007 |
-
function setOffsetToParsedOffset () {
|
3008 |
-
if (this._tzm != null) {
|
3009 |
-
this.utcOffset(this._tzm, false, true);
|
3010 |
-
} else if (typeof this._i === 'string') {
|
3011 |
-
var tZone = offsetFromString(matchOffset, this._i);
|
3012 |
-
if (tZone != null) {
|
3013 |
-
this.utcOffset(tZone);
|
3014 |
-
}
|
3015 |
-
else {
|
3016 |
-
this.utcOffset(0, true);
|
3017 |
-
}
|
3018 |
-
}
|
3019 |
-
return this;
|
3020 |
-
}
|
3021 |
-
|
3022 |
-
function hasAlignedHourOffset (input) {
|
3023 |
-
if (!this.isValid()) {
|
3024 |
-
return false;
|
3025 |
-
}
|
3026 |
-
input = input ? createLocal(input).utcOffset() : 0;
|
3027 |
-
|
3028 |
-
return (this.utcOffset() - input) % 60 === 0;
|
3029 |
-
}
|
3030 |
-
|
3031 |
-
function isDaylightSavingTime () {
|
3032 |
-
return (
|
3033 |
-
this.utcOffset() > this.clone().month(0).utcOffset() ||
|
3034 |
-
this.utcOffset() > this.clone().month(5).utcOffset()
|
3035 |
-
);
|
3036 |
-
}
|
3037 |
-
|
3038 |
-
function isDaylightSavingTimeShifted () {
|
3039 |
-
if (!isUndefined(this._isDSTShifted)) {
|
3040 |
-
return this._isDSTShifted;
|
3041 |
-
}
|
3042 |
-
|
3043 |
-
var c = {};
|
3044 |
-
|
3045 |
-
copyConfig(c, this);
|
3046 |
-
c = prepareConfig(c);
|
3047 |
-
|
3048 |
-
if (c._a) {
|
3049 |
-
var other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
|
3050 |
-
this._isDSTShifted = this.isValid() &&
|
3051 |
-
compareArrays(c._a, other.toArray()) > 0;
|
3052 |
-
} else {
|
3053 |
-
this._isDSTShifted = false;
|
3054 |
-
}
|
3055 |
-
|
3056 |
-
return this._isDSTShifted;
|
3057 |
-
}
|
3058 |
-
|
3059 |
-
function isLocal () {
|
3060 |
-
return this.isValid() ? !this._isUTC : false;
|
3061 |
-
}
|
3062 |
-
|
3063 |
-
function isUtcOffset () {
|
3064 |
-
return this.isValid() ? this._isUTC : false;
|
3065 |
-
}
|
3066 |
-
|
3067 |
-
function isUtc () {
|
3068 |
-
return this.isValid() ? this._isUTC && this._offset === 0 : false;
|
3069 |
-
}
|
3070 |
-
|
3071 |
-
// ASP.NET json date format regex
|
3072 |
-
var aspNetRegex = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;
|
3073 |
-
|
3074 |
-
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
3075 |
-
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
3076 |
-
// and further modified to allow for strings containing both week and day
|
3077 |
-
var isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
3078 |
-
|
3079 |
-
function createDuration (input, key) {
|
3080 |
-
var duration = input,
|
3081 |
-
// matching against regexp is expensive, do it on demand
|
3082 |
-
match = null,
|
3083 |
-
sign,
|
3084 |
-
ret,
|
3085 |
-
diffRes;
|
3086 |
-
|
3087 |
-
if (isDuration(input)) {
|
3088 |
-
duration = {
|
3089 |
-
ms : input._milliseconds,
|
3090 |
-
d : input._days,
|
3091 |
-
M : input._months
|
3092 |
-
};
|
3093 |
-
} else if (isNumber(input)) {
|
3094 |
-
duration = {};
|
3095 |
-
if (key) {
|
3096 |
-
duration[key] = input;
|
3097 |
-
} else {
|
3098 |
-
duration.milliseconds = input;
|
3099 |
-
}
|
3100 |
-
} else if (!!(match = aspNetRegex.exec(input))) {
|
3101 |
-
sign = (match[1] === '-') ? -1 : 1;
|
3102 |
-
duration = {
|
3103 |
-
y : 0,
|
3104 |
-
d : toInt(match[DATE]) * sign,
|
3105 |
-
h : toInt(match[HOUR]) * sign,
|
3106 |
-
m : toInt(match[MINUTE]) * sign,
|
3107 |
-
s : toInt(match[SECOND]) * sign,
|
3108 |
-
ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
|
3109 |
-
};
|
3110 |
-
} else if (!!(match = isoRegex.exec(input))) {
|
3111 |
-
sign = (match[1] === '-') ? -1 : (match[1] === '+') ? 1 : 1;
|
3112 |
-
duration = {
|
3113 |
-
y : parseIso(match[2], sign),
|
3114 |
-
M : parseIso(match[3], sign),
|
3115 |
-
w : parseIso(match[4], sign),
|
3116 |
-
d : parseIso(match[5], sign),
|
3117 |
-
h : parseIso(match[6], sign),
|
3118 |
-
m : parseIso(match[7], sign),
|
3119 |
-
s : parseIso(match[8], sign)
|
3120 |
-
};
|
3121 |
-
} else if (duration == null) {// checks for null or undefined
|
3122 |
-
duration = {};
|
3123 |
-
} else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
|
3124 |
-
diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
|
3125 |
-
|
3126 |
-
duration = {};
|
3127 |
-
duration.ms = diffRes.milliseconds;
|
3128 |
-
duration.M = diffRes.months;
|
3129 |
-
}
|
3130 |
-
|
3131 |
-
ret = new Duration(duration);
|
3132 |
-
|
3133 |
-
if (isDuration(input) && hasOwnProp(input, '_locale')) {
|
3134 |
-
ret._locale = input._locale;
|
3135 |
-
}
|
3136 |
-
|
3137 |
-
return ret;
|
3138 |
-
}
|
3139 |
-
|
3140 |
-
createDuration.fn = Duration.prototype;
|
3141 |
-
createDuration.invalid = createInvalid$1;
|
3142 |
-
|
3143 |
-
function parseIso (inp, sign) {
|
3144 |
-
// We'd normally use ~~inp for this, but unfortunately it also
|
3145 |
-
// converts floats to ints.
|
3146 |
-
// inp may be undefined, so careful calling replace on it.
|
3147 |
-
var res = inp && parseFloat(inp.replace(',', '.'));
|
3148 |
-
// apply sign while we're at it
|
3149 |
-
return (isNaN(res) ? 0 : res) * sign;
|
3150 |
-
}
|
3151 |
-
|
3152 |
-
function positiveMomentsDifference(base, other) {
|
3153 |
-
var res = {milliseconds: 0, months: 0};
|
3154 |
-
|
3155 |
-
res.months = other.month() - base.month() +
|
3156 |
-
(other.year() - base.year()) * 12;
|
3157 |
-
if (base.clone().add(res.months, 'M').isAfter(other)) {
|
3158 |
-
--res.months;
|
3159 |
-
}
|
3160 |
-
|
3161 |
-
res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
|
3162 |
-
|
3163 |
-
return res;
|
3164 |
-
}
|
3165 |
-
|
3166 |
-
function momentsDifference(base, other) {
|
3167 |
-
var res;
|
3168 |
-
if (!(base.isValid() && other.isValid())) {
|
3169 |
-
return {milliseconds: 0, months: 0};
|
3170 |
-
}
|
3171 |
-
|
3172 |
-
other = cloneWithOffset(other, base);
|
3173 |
-
if (base.isBefore(other)) {
|
3174 |
-
res = positiveMomentsDifference(base, other);
|
3175 |
-
} else {
|
3176 |
-
res = positiveMomentsDifference(other, base);
|
3177 |
-
res.milliseconds = -res.milliseconds;
|
3178 |
-
res.months = -res.months;
|
3179 |
-
}
|
3180 |
-
|
3181 |
-
return res;
|
3182 |
-
}
|
3183 |
-
|
3184 |
-
// TODO: remove 'name' arg after deprecation is removed
|
3185 |
-
function createAdder(direction, name) {
|
3186 |
-
return function (val, period) {
|
3187 |
-
var dur, tmp;
|
3188 |
-
//invert the arguments, but complain about it
|
3189 |
-
if (period !== null && !isNaN(+period)) {
|
3190 |
-
deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' +
|
3191 |
-
'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
|
3192 |
-
tmp = val; val = period; period = tmp;
|
3193 |
-
}
|
3194 |
-
|
3195 |
-
val = typeof val === 'string' ? +val : val;
|
3196 |
-
dur = createDuration(val, period);
|
3197 |
-
addSubtract(this, dur, direction);
|
3198 |
-
return this;
|
3199 |
-
};
|
3200 |
-
}
|
3201 |
-
|
3202 |
-
function addSubtract (mom, duration, isAdding, updateOffset) {
|
3203 |
-
var milliseconds = duration._milliseconds,
|
3204 |
-
days = absRound(duration._days),
|
3205 |
-
months = absRound(duration._months);
|
3206 |
-
|
3207 |
-
if (!mom.isValid()) {
|
3208 |
-
// No op
|
3209 |
-
return;
|
3210 |
-
}
|
3211 |
-
|
3212 |
-
updateOffset = updateOffset == null ? true : updateOffset;
|
3213 |
-
|
3214 |
-
if (months) {
|
3215 |
-
setMonth(mom, get(mom, 'Month') + months * isAdding);
|
3216 |
-
}
|
3217 |
-
if (days) {
|
3218 |
-
set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
|
3219 |
-
}
|
3220 |
-
if (milliseconds) {
|
3221 |
-
mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
|
3222 |
-
}
|
3223 |
-
if (updateOffset) {
|
3224 |
-
hooks.updateOffset(mom, days || months);
|
3225 |
-
}
|
3226 |
-
}
|
3227 |
-
|
3228 |
-
var add = createAdder(1, 'add');
|
3229 |
-
var subtract = createAdder(-1, 'subtract');
|
3230 |
-
|
3231 |
-
function getCalendarFormat(myMoment, now) {
|
3232 |
-
var diff = myMoment.diff(now, 'days', true);
|
3233 |
-
return diff < -6 ? 'sameElse' :
|
3234 |
-
diff < -1 ? 'lastWeek' :
|
3235 |
-
diff < 0 ? 'lastDay' :
|
3236 |
-
diff < 1 ? 'sameDay' :
|
3237 |
-
diff < 2 ? 'nextDay' :
|
3238 |
-
diff < 7 ? 'nextWeek' : 'sameElse';
|
3239 |
-
}
|
3240 |
-
|
3241 |
-
function calendar$1 (time, formats) {
|
3242 |
-
// We want to compare the start of today, vs this.
|
3243 |
-
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
3244 |
-
var now = time || createLocal(),
|
3245 |
-
sod = cloneWithOffset(now, this).startOf('day'),
|
3246 |
-
format = hooks.calendarFormat(this, sod) || 'sameElse';
|
3247 |
-
|
3248 |
-
var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
|
3249 |
-
|
3250 |
-
return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
|
3251 |
-
}
|
3252 |
-
|
3253 |
-
function clone () {
|
3254 |
-
return new Moment(this);
|
3255 |
-
}
|
3256 |
-
|
3257 |
-
function isAfter (input, units) {
|
3258 |
-
var localInput = isMoment(input) ? input : createLocal(input);
|
3259 |
-
if (!(this.isValid() && localInput.isValid())) {
|
3260 |
-
return false;
|
3261 |
-
}
|
3262 |
-
units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
|
3263 |
-
if (units === 'millisecond') {
|
3264 |
-
return this.valueOf() > localInput.valueOf();
|
3265 |
-
} else {
|
3266 |
-
return localInput.valueOf() < this.clone().startOf(units).valueOf();
|
3267 |
-
}
|
3268 |
-
}
|
3269 |
-
|
3270 |
-
function isBefore (input, units) {
|
3271 |
-
var localInput = isMoment(input) ? input : createLocal(input);
|
3272 |
-
if (!(this.isValid() && localInput.isValid())) {
|
3273 |
-
return false;
|
3274 |
-
}
|
3275 |
-
units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
|
3276 |
-
if (units === 'millisecond') {
|
3277 |
-
return this.valueOf() < localInput.valueOf();
|
3278 |
-
} else {
|
3279 |
-
return this.clone().endOf(units).valueOf() < localInput.valueOf();
|
3280 |
-
}
|
3281 |
-
}
|
3282 |
-
|
3283 |
-
function isBetween (from, to, units, inclusivity) {
|
3284 |
-
inclusivity = inclusivity || '()';
|
3285 |
-
return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) &&
|
3286 |
-
(inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units));
|
3287 |
-
}
|
3288 |
-
|
3289 |
-
function isSame (input, units) {
|
3290 |
-
var localInput = isMoment(input) ? input : createLocal(input),
|
3291 |
-
inputMs;
|
3292 |
-
if (!(this.isValid() && localInput.isValid())) {
|
3293 |
-
return false;
|
3294 |
-
}
|
3295 |
-
units = normalizeUnits(units || 'millisecond');
|
3296 |
-
if (units === 'millisecond') {
|
3297 |
-
return this.valueOf() === localInput.valueOf();
|
3298 |
-
} else {
|
3299 |
-
inputMs = localInput.valueOf();
|
3300 |
-
return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
|
3301 |
-
}
|
3302 |
-
}
|
3303 |
-
|
3304 |
-
function isSameOrAfter (input, units) {
|
3305 |
-
return this.isSame(input, units) || this.isAfter(input,units);
|
3306 |
-
}
|
3307 |
-
|
3308 |
-
function isSameOrBefore (input, units) {
|
3309 |
-
return this.isSame(input, units) || this.isBefore(input,units);
|
3310 |
-
}
|
3311 |
-
|
3312 |
-
function diff (input, units, asFloat) {
|
3313 |
-
var that,
|
3314 |
-
zoneDelta,
|
3315 |
-
output;
|
3316 |
-
|
3317 |
-
if (!this.isValid()) {
|
3318 |
-
return NaN;
|
3319 |
-
}
|
3320 |
-
|
3321 |
-
that = cloneWithOffset(input, this);
|
3322 |
-
|
3323 |
-
if (!that.isValid()) {
|
3324 |
-
return NaN;
|
3325 |
-
}
|
3326 |
-
|
3327 |
-
zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
|
3328 |
-
|
3329 |
-
units = normalizeUnits(units);
|
3330 |
-
|
3331 |
-
switch (units) {
|
3332 |
-
case 'year': output = monthDiff(this, that) / 12; break;
|
3333 |
-
case 'month': output = monthDiff(this, that); break;
|
3334 |
-
case 'quarter': output = monthDiff(this, that) / 3; break;
|
3335 |
-
case 'second': output = (this - that) / 1e3; break; // 1000
|
3336 |
-
case 'minute': output = (this - that) / 6e4; break; // 1000 * 60
|
3337 |
-
case 'hour': output = (this - that) / 36e5; break; // 1000 * 60 * 60
|
3338 |
-
case 'day': output = (this - that - zoneDelta) / 864e5; break; // 1000 * 60 * 60 * 24, negate dst
|
3339 |
-
case 'week': output = (this - that - zoneDelta) / 6048e5; break; // 1000 * 60 * 60 * 24 * 7, negate dst
|
3340 |
-
default: output = this - that;
|
3341 |
-
}
|
3342 |
-
|
3343 |
-
return asFloat ? output : absFloor(output);
|
3344 |
-
}
|
3345 |
-
|
3346 |
-
function monthDiff (a, b) {
|
3347 |
-
// difference in months
|
3348 |
-
var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
|
3349 |
-
// b is in (anchor - 1 month, anchor + 1 month)
|
3350 |
-
anchor = a.clone().add(wholeMonthDiff, 'months'),
|
3351 |
-
anchor2, adjust;
|
3352 |
-
|
3353 |
-
if (b - anchor < 0) {
|
3354 |
-
anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
|
3355 |
-
// linear across the month
|
3356 |
-
adjust = (b - anchor) / (anchor - anchor2);
|
3357 |
-
} else {
|
3358 |
-
anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
|
3359 |
-
// linear across the month
|
3360 |
-
adjust = (b - anchor) / (anchor2 - anchor);
|
3361 |
-
}
|
3362 |
-
|
3363 |
-
//check for negative zero, return zero if negative zero
|
3364 |
-
return -(wholeMonthDiff + adjust) || 0;
|
3365 |
-
}
|
3366 |
-
|
3367 |
-
hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
|
3368 |
-
hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
|
3369 |
-
|
3370 |
-
function toString () {
|
3371 |
-
return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
|
3372 |
-
}
|
3373 |
-
|
3374 |
-
function toISOString(keepOffset) {
|
3375 |
-
if (!this.isValid()) {
|
3376 |
-
return null;
|
3377 |
-
}
|
3378 |
-
var utc = keepOffset !== true;
|
3379 |
-
var m = utc ? this.clone().utc() : this;
|
3380 |
-
if (m.year() < 0 || m.year() > 9999) {
|
3381 |
-
return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');
|
3382 |
-
}
|
3383 |
-
if (isFunction(Date.prototype.toISOString)) {
|
3384 |
-
// native implementation is ~50x faster, use it when we can
|
3385 |
-
if (utc) {
|
3386 |
-
return this.toDate().toISOString();
|
3387 |
-
} else {
|
3388 |
-
return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).toISOString().replace('Z', formatMoment(m, 'Z'));
|
3389 |
-
}
|
3390 |
-
}
|
3391 |
-
return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ');
|
3392 |
-
}
|
3393 |
-
|
3394 |
-
/**
|
3395 |
-
* Return a human readable representation of a moment that can
|
3396 |
-
* also be evaluated to get a new moment which is the same
|
3397 |
-
*
|
3398 |
-
* @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
|
3399 |
-
*/
|
3400 |
-
function inspect () {
|
3401 |
-
if (!this.isValid()) {
|
3402 |
-
return 'moment.invalid(/* ' + this._i + ' */)';
|
3403 |
-
}
|
3404 |
-
var func = 'moment';
|
3405 |
-
var zone = '';
|
3406 |
-
if (!this.isLocal()) {
|
3407 |
-
func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
|
3408 |
-
zone = 'Z';
|
3409 |
-
}
|
3410 |
-
var prefix = '[' + func + '("]';
|
3411 |
-
var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY';
|
3412 |
-
var datetime = '-MM-DD[T]HH:mm:ss.SSS';
|
3413 |
-
var suffix = zone + '[")]';
|
3414 |
-
|
3415 |
-
return this.format(prefix + year + datetime + suffix);
|
3416 |
-
}
|
3417 |
-
|
3418 |
-
function format (inputString) {
|
3419 |
-
if (!inputString) {
|
3420 |
-
inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
|
3421 |
-
}
|
3422 |
-
var output = formatMoment(this, inputString);
|
3423 |
-
return this.localeData().postformat(output);
|
3424 |
-
}
|
3425 |
-
|
3426 |
-
function from (time, withoutSuffix) {
|
3427 |
-
if (this.isValid() &&
|
3428 |
-
((isMoment(time) && time.isValid()) ||
|
3429 |
-
createLocal(time).isValid())) {
|
3430 |
-
return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
|
3431 |
-
} else {
|
3432 |
-
return this.localeData().invalidDate();
|
3433 |
-
}
|
3434 |
-
}
|
3435 |
-
|
3436 |
-
function fromNow (withoutSuffix) {
|
3437 |
-
return this.from(createLocal(), withoutSuffix);
|
3438 |
-
}
|
3439 |
-
|
3440 |
-
function to (time, withoutSuffix) {
|
3441 |
-
if (this.isValid() &&
|
3442 |
-
((isMoment(time) && time.isValid()) ||
|
3443 |
-
createLocal(time).isValid())) {
|
3444 |
-
return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
|
3445 |
-
} else {
|
3446 |
-
return this.localeData().invalidDate();
|
3447 |
-
}
|
3448 |
-
}
|
3449 |
-
|
3450 |
-
function toNow (withoutSuffix) {
|
3451 |
-
return this.to(createLocal(), withoutSuffix);
|
3452 |
-
}
|
3453 |
-
|
3454 |
-
// If passed a locale key, it will set the locale for this
|
3455 |
-
// instance. Otherwise, it will return the locale configuration
|
3456 |
-
// variables for this instance.
|
3457 |
-
function locale (key) {
|
3458 |
-
var newLocaleData;
|
3459 |
-
|
3460 |
-
if (key === undefined) {
|
3461 |
-
return this._locale._abbr;
|
3462 |
-
} else {
|
3463 |
-
newLocaleData = getLocale(key);
|
3464 |
-
if (newLocaleData != null) {
|
3465 |
-
this._locale = newLocaleData;
|
3466 |
-
}
|
3467 |
-
return this;
|
3468 |
-
}
|
3469 |
-
}
|
3470 |
-
|
3471 |
-
var lang = deprecate(
|
3472 |
-
'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
|
3473 |
-
function (key) {
|
3474 |
-
if (key === undefined) {
|
3475 |
-
return this.localeData();
|
3476 |
-
} else {
|
3477 |
-
return this.locale(key);
|
3478 |
-
}
|
3479 |
-
}
|
3480 |
-
);
|
3481 |
-
|
3482 |
-
function localeData () {
|
3483 |
-
return this._locale;
|
3484 |
-
}
|
3485 |
-
|
3486 |
-
function startOf (units) {
|
3487 |
-
units = normalizeUnits(units);
|
3488 |
-
// the following switch intentionally omits break keywords
|
3489 |
-
// to utilize falling through the cases.
|
3490 |
-
switch (units) {
|
3491 |
-
case 'year':
|
3492 |
-
this.month(0);
|
3493 |
-
/* falls through */
|
3494 |
-
case 'quarter':
|
3495 |
-
case 'month':
|
3496 |
-
this.date(1);
|
3497 |
-
/* falls through */
|
3498 |
-
case 'week':
|
3499 |
-
case 'isoWeek':
|
3500 |
-
case 'day':
|
3501 |
-
case 'date':
|
3502 |
-
this.hours(0);
|
3503 |
-
/* falls through */
|
3504 |
-
case 'hour':
|
3505 |
-
this.minutes(0);
|
3506 |
-
/* falls through */
|
3507 |
-
case 'minute':
|
3508 |
-
this.seconds(0);
|
3509 |
-
/* falls through */
|
3510 |
-
case 'second':
|
3511 |
-
this.milliseconds(0);
|
3512 |
-
}
|
3513 |
-
|
3514 |
-
// weeks are a special case
|
3515 |
-
if (units === 'week') {
|
3516 |
-
this.weekday(0);
|
3517 |
-
}
|
3518 |
-
if (units === 'isoWeek') {
|
3519 |
-
this.isoWeekday(1);
|
3520 |
-
}
|
3521 |
-
|
3522 |
-
// quarters are also special
|
3523 |
-
if (units === 'quarter') {
|
3524 |
-
this.month(Math.floor(this.month() / 3) * 3);
|
3525 |
-
}
|
3526 |
-
|
3527 |
-
return this;
|
3528 |
-
}
|
3529 |
-
|
3530 |
-
function endOf (units) {
|
3531 |
-
units = normalizeUnits(units);
|
3532 |
-
if (units === undefined || units === 'millisecond') {
|
3533 |
-
return this;
|
3534 |
-
}
|
3535 |
-
|
3536 |
-
// 'date' is an alias for 'day', so it should be considered as such.
|
3537 |
-
if (units === 'date') {
|
3538 |
-
units = 'day';
|
3539 |
-
}
|
3540 |
-
|
3541 |
-
return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
|
3542 |
-
}
|
3543 |
-
|
3544 |
-
function valueOf () {
|
3545 |
-
return this._d.valueOf() - ((this._offset || 0) * 60000);
|
3546 |
-
}
|
3547 |
-
|
3548 |
-
function unix () {
|
3549 |
-
return Math.floor(this.valueOf() / 1000);
|
3550 |
-
}
|
3551 |
-
|
3552 |
-
function toDate () {
|
3553 |
-
return new Date(this.valueOf());
|
3554 |
-
}
|
3555 |
-
|
3556 |
-
function toArray () {
|
3557 |
-
var m = this;
|
3558 |
-
return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
|
3559 |
-
}
|
3560 |
-
|
3561 |
-
function toObject () {
|
3562 |
-
var m = this;
|
3563 |
-
return {
|
3564 |
-
years: m.year(),
|
3565 |
-
months: m.month(),
|
3566 |
-
date: m.date(),
|
3567 |
-
hours: m.hours(),
|
3568 |
-
minutes: m.minutes(),
|
3569 |
-
seconds: m.seconds(),
|
3570 |
-
milliseconds: m.milliseconds()
|
3571 |
-
};
|
3572 |
-
}
|
3573 |
-
|
3574 |
-
function toJSON () {
|
3575 |
-
// new Date(NaN).toJSON() === null
|
3576 |
-
return this.isValid() ? this.toISOString() : null;
|
3577 |
-
}
|
3578 |
-
|
3579 |
-
function isValid$2 () {
|
3580 |
-
return isValid(this);
|
3581 |
-
}
|
3582 |
-
|
3583 |
-
function parsingFlags () {
|
3584 |
-
return extend({}, getParsingFlags(this));
|
3585 |
-
}
|
3586 |
-
|
3587 |
-
function invalidAt () {
|
3588 |
-
return getParsingFlags(this).overflow;
|
3589 |
-
}
|
3590 |
-
|
3591 |
-
function creationData() {
|
3592 |
-
return {
|
3593 |
-
input: this._i,
|
3594 |
-
format: this._f,
|
3595 |
-
locale: this._locale,
|
3596 |
-
isUTC: this._isUTC,
|
3597 |
-
strict: this._strict
|
3598 |
-
};
|
3599 |
-
}
|
3600 |
-
|
3601 |
-
// FORMATTING
|
3602 |
-
|
3603 |
-
addFormatToken(0, ['gg', 2], 0, function () {
|
3604 |
-
return this.weekYear() % 100;
|
3605 |
-
});
|
3606 |
-
|
3607 |
-
addFormatToken(0, ['GG', 2], 0, function () {
|
3608 |
-
return this.isoWeekYear() % 100;
|
3609 |
-
});
|
3610 |
-
|
3611 |
-
function addWeekYearFormatToken (token, getter) {
|
3612 |
-
addFormatToken(0, [token, token.length], 0, getter);
|
3613 |
-
}
|
3614 |
-
|
3615 |
-
addWeekYearFormatToken('gggg', 'weekYear');
|
3616 |
-
addWeekYearFormatToken('ggggg', 'weekYear');
|
3617 |
-
addWeekYearFormatToken('GGGG', 'isoWeekYear');
|
3618 |
-
addWeekYearFormatToken('GGGGG', 'isoWeekYear');
|
3619 |
-
|
3620 |
-
// ALIASES
|
3621 |
-
|
3622 |
-
addUnitAlias('weekYear', 'gg');
|
3623 |
-
addUnitAlias('isoWeekYear', 'GG');
|
3624 |
-
|
3625 |
-
// PRIORITY
|
3626 |
-
|
3627 |
-
addUnitPriority('weekYear', 1);
|
3628 |
-
addUnitPriority('isoWeekYear', 1);
|
3629 |
-
|
3630 |
-
|
3631 |
-
// PARSING
|
3632 |
-
|
3633 |
-
addRegexToken('G', matchSigned);
|
3634 |
-
addRegexToken('g', matchSigned);
|
3635 |
-
addRegexToken('GG', match1to2, match2);
|
3636 |
-
addRegexToken('gg', match1to2, match2);
|
3637 |
-
addRegexToken('GGGG', match1to4, match4);
|
3638 |
-
addRegexToken('gggg', match1to4, match4);
|
3639 |
-
addRegexToken('GGGGG', match1to6, match6);
|
3640 |
-
addRegexToken('ggggg', match1to6, match6);
|
3641 |
-
|
3642 |
-
addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
|
3643 |
-
week[token.substr(0, 2)] = toInt(input);
|
3644 |
-
});
|
3645 |
-
|
3646 |
-
addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
|
3647 |
-
week[token] = hooks.parseTwoDigitYear(input);
|
3648 |
-
});
|
3649 |
-
|
3650 |
-
// MOMENTS
|
3651 |
-
|
3652 |
-
function getSetWeekYear (input) {
|
3653 |
-
return getSetWeekYearHelper.call(this,
|
3654 |
-
input,
|
3655 |
-
this.week(),
|
3656 |
-
this.weekday(),
|
3657 |
-
this.localeData()._week.dow,
|
3658 |
-
this.localeData()._week.doy);
|
3659 |
-
}
|
3660 |
-
|
3661 |
-
function getSetISOWeekYear (input) {
|
3662 |
-
return getSetWeekYearHelper.call(this,
|
3663 |
-
input, this.isoWeek(), this.isoWeekday(), 1, 4);
|
3664 |
-
}
|
3665 |
-
|
3666 |
-
function getISOWeeksInYear () {
|
3667 |
-
return weeksInYear(this.year(), 1, 4);
|
3668 |
-
}
|
3669 |
-
|
3670 |
-
function getWeeksInYear () {
|
3671 |
-
var weekInfo = this.localeData()._week;
|
3672 |
-
return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
|
3673 |
-
}
|
3674 |
-
|
3675 |
-
function getSetWeekYearHelper(input, week, weekday, dow, doy) {
|
3676 |
-
var weeksTarget;
|
3677 |
-
if (input == null) {
|
3678 |
-
return weekOfYear(this, dow, doy).year;
|
3679 |
-
} else {
|
3680 |
-
weeksTarget = weeksInYear(input, dow, doy);
|
3681 |
-
if (week > weeksTarget) {
|
3682 |
-
week = weeksTarget;
|
3683 |
-
}
|
3684 |
-
return setWeekAll.call(this, input, week, weekday, dow, doy);
|
3685 |
-
}
|
3686 |
-
}
|
3687 |
-
|
3688 |
-
function setWeekAll(weekYear, week, weekday, dow, doy) {
|
3689 |
-
var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
|
3690 |
-
date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
|
3691 |
-
|
3692 |
-
this.year(date.getUTCFullYear());
|
3693 |
-
this.month(date.getUTCMonth());
|
3694 |
-
this.date(date.getUTCDate());
|
3695 |
-
return this;
|
3696 |
-
}
|
3697 |
-
|
3698 |
-
// FORMATTING
|
3699 |
-
|
3700 |
-
addFormatToken('Q', 0, 'Qo', 'quarter');
|
3701 |
-
|
3702 |
-
// ALIASES
|
3703 |
-
|
3704 |
-
addUnitAlias('quarter', 'Q');
|
3705 |
-
|
3706 |
-
// PRIORITY
|
3707 |
-
|
3708 |
-
addUnitPriority('quarter', 7);
|
3709 |
-
|
3710 |
-
// PARSING
|
3711 |
-
|
3712 |
-
addRegexToken('Q', match1);
|
3713 |
-
addParseToken('Q', function (input, array) {
|
3714 |
-
array[MONTH] = (toInt(input) - 1) * 3;
|
3715 |
-
});
|
3716 |
-
|
3717 |
-
// MOMENTS
|
3718 |
-
|
3719 |
-
function getSetQuarter (input) {
|
3720 |
-
return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
|
3721 |
-
}
|
3722 |
-
|
3723 |
-
// FORMATTING
|
3724 |
-
|
3725 |
-
addFormatToken('D', ['DD', 2], 'Do', 'date');
|
3726 |
-
|
3727 |
-
// ALIASES
|
3728 |
-
|
3729 |
-
addUnitAlias('date', 'D');
|
3730 |
-
|
3731 |
-
// PRIOROITY
|
3732 |
-
addUnitPriority('date', 9);
|
3733 |
-
|
3734 |
-
// PARSING
|
3735 |
-
|
3736 |
-
addRegexToken('D', match1to2);
|
3737 |
-
addRegexToken('DD', match1to2, match2);
|
3738 |
-
addRegexToken('Do', function (isStrict, locale) {
|
3739 |
-
// TODO: Remove "ordinalParse" fallback in next major release.
|
3740 |
-
return isStrict ?
|
3741 |
-
(locale._dayOfMonthOrdinalParse || locale._ordinalParse) :
|
3742 |
-
locale._dayOfMonthOrdinalParseLenient;
|
3743 |
-
});
|
3744 |
-
|
3745 |
-
addParseToken(['D', 'DD'], DATE);
|
3746 |
-
addParseToken('Do', function (input, array) {
|
3747 |
-
array[DATE] = toInt(input.match(match1to2)[0]);
|
3748 |
-
});
|
3749 |
-
|
3750 |
-
// MOMENTS
|
3751 |
-
|
3752 |
-
var getSetDayOfMonth = makeGetSet('Date', true);
|
3753 |
-
|
3754 |
-
// FORMATTING
|
3755 |
-
|
3756 |
-
addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
|
3757 |
-
|
3758 |
-
// ALIASES
|
3759 |
-
|
3760 |
-
addUnitAlias('dayOfYear', 'DDD');
|
3761 |
-
|
3762 |
-
// PRIORITY
|
3763 |
-
addUnitPriority('dayOfYear', 4);
|
3764 |
-
|
3765 |
-
// PARSING
|
3766 |
-
|
3767 |
-
addRegexToken('DDD', match1to3);
|
3768 |
-
addRegexToken('DDDD', match3);
|
3769 |
-
addParseToken(['DDD', 'DDDD'], function (input, array, config) {
|
3770 |
-
config._dayOfYear = toInt(input);
|
3771 |
-
});
|
3772 |
-
|
3773 |
-
// HELPERS
|
3774 |
-
|
3775 |
-
// MOMENTS
|
3776 |
-
|
3777 |
-
function getSetDayOfYear (input) {
|
3778 |
-
var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
|
3779 |
-
return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
|
3780 |
-
}
|
3781 |
-
|
3782 |
-
// FORMATTING
|
3783 |
-
|
3784 |
-
addFormatToken('m', ['mm', 2], 0, 'minute');
|
3785 |
-
|
3786 |
-
// ALIASES
|
3787 |
-
|
3788 |
-
addUnitAlias('minute', 'm');
|
3789 |
-
|
3790 |
-
// PRIORITY
|
3791 |
-
|
3792 |
-
addUnitPriority('minute', 14);
|
3793 |
-
|
3794 |
-
// PARSING
|
3795 |
-
|
3796 |
-
addRegexToken('m', match1to2);
|
3797 |
-
addRegexToken('mm', match1to2, match2);
|
3798 |
-
addParseToken(['m', 'mm'], MINUTE);
|
3799 |
-
|
3800 |
-
// MOMENTS
|
3801 |
-
|
3802 |
-
var getSetMinute = makeGetSet('Minutes', false);
|
3803 |
-
|
3804 |
-
// FORMATTING
|
3805 |
-
|
3806 |
-
addFormatToken('s', ['ss', 2], 0, 'second');
|
3807 |
-
|
3808 |
-
// ALIASES
|
3809 |
-
|
3810 |
-
addUnitAlias('second', 's');
|
3811 |
-
|
3812 |
-
// PRIORITY
|
3813 |
-
|
3814 |
-
addUnitPriority('second', 15);
|
3815 |
-
|
3816 |
-
// PARSING
|
3817 |
-
|
3818 |
-
addRegexToken('s', match1to2);
|
3819 |
-
addRegexToken('ss', match1to2, match2);
|
3820 |
-
addParseToken(['s', 'ss'], SECOND);
|
3821 |
-
|
3822 |
-
// MOMENTS
|
3823 |
-
|
3824 |
-
var getSetSecond = makeGetSet('Seconds', false);
|
3825 |
-
|
3826 |
-
// FORMATTING
|
3827 |
-
|
3828 |
-
addFormatToken('S', 0, 0, function () {
|
3829 |
-
return ~~(this.millisecond() / 100);
|
3830 |
-
});
|
3831 |
-
|
3832 |
-
addFormatToken(0, ['SS', 2], 0, function () {
|
3833 |
-
return ~~(this.millisecond() / 10);
|
3834 |
-
});
|
3835 |
-
|
3836 |
-
addFormatToken(0, ['SSS', 3], 0, 'millisecond');
|
3837 |
-
addFormatToken(0, ['SSSS', 4], 0, function () {
|
3838 |
-
return this.millisecond() * 10;
|
3839 |
-
});
|
3840 |
-
addFormatToken(0, ['SSSSS', 5], 0, function () {
|
3841 |
-
return this.millisecond() * 100;
|
3842 |
-
});
|
3843 |
-
addFormatToken(0, ['SSSSSS', 6], 0, function () {
|
3844 |
-
return this.millisecond() * 1000;
|
3845 |
-
});
|
3846 |
-
addFormatToken(0, ['SSSSSSS', 7], 0, function () {
|
3847 |
-
return this.millisecond() * 10000;
|
3848 |
-
});
|
3849 |
-
addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
|
3850 |
-
return this.millisecond() * 100000;
|
3851 |
-
});
|
3852 |
-
addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
|
3853 |
-
return this.millisecond() * 1000000;
|
3854 |
-
});
|
3855 |
-
|
3856 |
-
|
3857 |
-
// ALIASES
|
3858 |
-
|
3859 |
-
addUnitAlias('millisecond', 'ms');
|
3860 |
-
|
3861 |
-
// PRIORITY
|
3862 |
-
|
3863 |
-
addUnitPriority('millisecond', 16);
|
3864 |
-
|
3865 |
-
// PARSING
|
3866 |
-
|
3867 |
-
addRegexToken('S', match1to3, match1);
|
3868 |
-
addRegexToken('SS', match1to3, match2);
|
3869 |
-
addRegexToken('SSS', match1to3, match3);
|
3870 |
-
|
3871 |
-
var token;
|
3872 |
-
for (token = 'SSSS'; token.length <= 9; token += 'S') {
|
3873 |
-
addRegexToken(token, matchUnsigned);
|
3874 |
-
}
|
3875 |
-
|
3876 |
-
function parseMs(input, array) {
|
3877 |
-
array[MILLISECOND] = toInt(('0.' + input) * 1000);
|
3878 |
-
}
|
3879 |
-
|
3880 |
-
for (token = 'S'; token.length <= 9; token += 'S') {
|
3881 |
-
addParseToken(token, parseMs);
|
3882 |
-
}
|
3883 |
-
// MOMENTS
|
3884 |
-
|
3885 |
-
var getSetMillisecond = makeGetSet('Milliseconds', false);
|
3886 |
-
|
3887 |
-
// FORMATTING
|
3888 |
-
|
3889 |
-
addFormatToken('z', 0, 0, 'zoneAbbr');
|
3890 |
-
addFormatToken('zz', 0, 0, 'zoneName');
|
3891 |
-
|
3892 |
-
// MOMENTS
|
3893 |
-
|
3894 |
-
function getZoneAbbr () {
|
3895 |
-
return this._isUTC ? 'UTC' : '';
|
3896 |
-
}
|
3897 |
-
|
3898 |
-
function getZoneName () {
|
3899 |
-
return this._isUTC ? 'Coordinated Universal Time' : '';
|
3900 |
-
}
|
3901 |
-
|
3902 |
-
var proto = Moment.prototype;
|
3903 |
-
|
3904 |
-
proto.add = add;
|
3905 |
-
proto.calendar = calendar$1;
|
3906 |
-
proto.clone = clone;
|
3907 |
-
proto.diff = diff;
|
3908 |
-
proto.endOf = endOf;
|
3909 |
-
proto.format = format;
|
3910 |
-
proto.from = from;
|
3911 |
-
proto.fromNow = fromNow;
|
3912 |
-
proto.to = to;
|
3913 |
-
proto.toNow = toNow;
|
3914 |
-
proto.get = stringGet;
|
3915 |
-
proto.invalidAt = invalidAt;
|
3916 |
-
proto.isAfter = isAfter;
|
3917 |
-
proto.isBefore = isBefore;
|
3918 |
-
proto.isBetween = isBetween;
|
3919 |
-
proto.isSame = isSame;
|
3920 |
-
proto.isSameOrAfter = isSameOrAfter;
|
3921 |
-
proto.isSameOrBefore = isSameOrBefore;
|
3922 |
-
proto.isValid = isValid$2;
|
3923 |
-
proto.lang = lang;
|
3924 |
-
proto.locale = locale;
|
3925 |
-
proto.localeData = localeData;
|
3926 |
-
proto.max = prototypeMax;
|
3927 |
-
proto.min = prototypeMin;
|
3928 |
-
proto.parsingFlags = parsingFlags;
|
3929 |
-
proto.set = stringSet;
|
3930 |
-
proto.startOf = startOf;
|
3931 |
-
proto.subtract = subtract;
|
3932 |
-
proto.toArray = toArray;
|
3933 |
-
proto.toObject = toObject;
|
3934 |
-
proto.toDate = toDate;
|
3935 |
-
proto.toISOString = toISOString;
|
3936 |
-
proto.inspect = inspect;
|
3937 |
-
proto.toJSON = toJSON;
|
3938 |
-
proto.toString = toString;
|
3939 |
-
proto.unix = unix;
|
3940 |
-
proto.valueOf = valueOf;
|
3941 |
-
proto.creationData = creationData;
|
3942 |
-
proto.year = getSetYear;
|
3943 |
-
proto.isLeapYear = getIsLeapYear;
|
3944 |
-
proto.weekYear = getSetWeekYear;
|
3945 |
-
proto.isoWeekYear = getSetISOWeekYear;
|
3946 |
-
proto.quarter = proto.quarters = getSetQuarter;
|
3947 |
-
proto.month = getSetMonth;
|
3948 |
-
proto.daysInMonth = getDaysInMonth;
|
3949 |
-
proto.week = proto.weeks = getSetWeek;
|
3950 |
-
proto.isoWeek = proto.isoWeeks = getSetISOWeek;
|
3951 |
-
proto.weeksInYear = getWeeksInYear;
|
3952 |
-
proto.isoWeeksInYear = getISOWeeksInYear;
|
3953 |
-
proto.date = getSetDayOfMonth;
|
3954 |
-
proto.day = proto.days = getSetDayOfWeek;
|
3955 |
-
proto.weekday = getSetLocaleDayOfWeek;
|
3956 |
-
proto.isoWeekday = getSetISODayOfWeek;
|
3957 |
-
proto.dayOfYear = getSetDayOfYear;
|
3958 |
-
proto.hour = proto.hours = getSetHour;
|
3959 |
-
proto.minute = proto.minutes = getSetMinute;
|
3960 |
-
proto.second = proto.seconds = getSetSecond;
|
3961 |
-
proto.millisecond = proto.milliseconds = getSetMillisecond;
|
3962 |
-
proto.utcOffset = getSetOffset;
|
3963 |
-
proto.utc = setOffsetToUTC;
|
3964 |
-
proto.local = setOffsetToLocal;
|
3965 |
-
proto.parseZone = setOffsetToParsedOffset;
|
3966 |
-
proto.hasAlignedHourOffset = hasAlignedHourOffset;
|
3967 |
-
proto.isDST = isDaylightSavingTime;
|
3968 |
-
proto.isLocal = isLocal;
|
3969 |
-
proto.isUtcOffset = isUtcOffset;
|
3970 |
-
proto.isUtc = isUtc;
|
3971 |
-
proto.isUTC = isUtc;
|
3972 |
-
proto.zoneAbbr = getZoneAbbr;
|
3973 |
-
proto.zoneName = getZoneName;
|
3974 |
-
proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
|
3975 |
-
proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
|
3976 |
-
proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
|
3977 |
-
proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
|
3978 |
-
proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
|
3979 |
-
|
3980 |
-
function createUnix (input) {
|
3981 |
-
return createLocal(input * 1000);
|
3982 |
-
}
|
3983 |
-
|
3984 |
-
function createInZone () {
|
3985 |
-
return createLocal.apply(null, arguments).parseZone();
|
3986 |
-
}
|
3987 |
-
|
3988 |
-
function preParsePostFormat (string) {
|
3989 |
-
return string;
|
3990 |
-
}
|
3991 |
-
|
3992 |
-
var proto$1 = Locale.prototype;
|
3993 |
-
|
3994 |
-
proto$1.calendar = calendar;
|
3995 |
-
proto$1.longDateFormat = longDateFormat;
|
3996 |
-
proto$1.invalidDate = invalidDate;
|
3997 |
-
proto$1.ordinal = ordinal;
|
3998 |
-
proto$1.preparse = preParsePostFormat;
|
3999 |
-
proto$1.postformat = preParsePostFormat;
|
4000 |
-
proto$1.relativeTime = relativeTime;
|
4001 |
-
proto$1.pastFuture = pastFuture;
|
4002 |
-
proto$1.set = set;
|
4003 |
-
|
4004 |
-
proto$1.months = localeMonths;
|
4005 |
-
proto$1.monthsShort = localeMonthsShort;
|
4006 |
-
proto$1.monthsParse = localeMonthsParse;
|
4007 |
-
proto$1.monthsRegex = monthsRegex;
|
4008 |
-
proto$1.monthsShortRegex = monthsShortRegex;
|
4009 |
-
proto$1.week = localeWeek;
|
4010 |
-
proto$1.firstDayOfYear = localeFirstDayOfYear;
|
4011 |
-
proto$1.firstDayOfWeek = localeFirstDayOfWeek;
|
4012 |
-
|
4013 |
-
proto$1.weekdays = localeWeekdays;
|
4014 |
-
proto$1.weekdaysMin = localeWeekdaysMin;
|
4015 |
-
proto$1.weekdaysShort = localeWeekdaysShort;
|
4016 |
-
proto$1.weekdaysParse = localeWeekdaysParse;
|
4017 |
-
|
4018 |
-
proto$1.weekdaysRegex = weekdaysRegex;
|
4019 |
-
proto$1.weekdaysShortRegex = weekdaysShortRegex;
|
4020 |
-
proto$1.weekdaysMinRegex = weekdaysMinRegex;
|
4021 |
-
|
4022 |
-
proto$1.isPM = localeIsPM;
|
4023 |
-
proto$1.meridiem = localeMeridiem;
|
4024 |
-
|
4025 |
-
function get$1 (format, index, field, setter) {
|
4026 |
-
var locale = getLocale();
|
4027 |
-
var utc = createUTC().set(setter, index);
|
4028 |
-
return locale[field](utc, format);
|
4029 |
-
}
|
4030 |
-
|
4031 |
-
function listMonthsImpl (format, index, field) {
|
4032 |
-
if (isNumber(format)) {
|
4033 |
-
index = format;
|
4034 |
-
format = undefined;
|
4035 |
-
}
|
4036 |
-
|
4037 |
-
format = format || '';
|
4038 |
-
|
4039 |
-
if (index != null) {
|
4040 |
-
return get$1(format, index, field, 'month');
|
4041 |
-
}
|
4042 |
-
|
4043 |
-
var i;
|
4044 |
-
var out = [];
|
4045 |
-
for (i = 0; i < 12; i++) {
|
4046 |
-
out[i] = get$1(format, i, field, 'month');
|
4047 |
-
}
|
4048 |
-
return out;
|
4049 |
-
}
|
4050 |
-
|
4051 |
-
// ()
|
4052 |
-
// (5)
|
4053 |
-
// (fmt, 5)
|
4054 |
-
// (fmt)
|
4055 |
-
// (true)
|
4056 |
-
// (true, 5)
|
4057 |
-
// (true, fmt, 5)
|
4058 |
-
// (true, fmt)
|
4059 |
-
function listWeekdaysImpl (localeSorted, format, index, field) {
|
4060 |
-
if (typeof localeSorted === 'boolean') {
|
4061 |
-
if (isNumber(format)) {
|
4062 |
-
index = format;
|
4063 |
-
format = undefined;
|
4064 |
-
}
|
4065 |
-
|
4066 |
-
format = format || '';
|
4067 |
-
} else {
|
4068 |
-
format = localeSorted;
|
4069 |
-
index = format;
|
4070 |
-
localeSorted = false;
|
4071 |
-
|
4072 |
-
if (isNumber(format)) {
|
4073 |
-
index = format;
|
4074 |
-
format = undefined;
|
4075 |
-
}
|
4076 |
-
|
4077 |
-
format = format || '';
|
4078 |
-
}
|
4079 |
-
|
4080 |
-
var locale = getLocale(),
|
4081 |
-
shift = localeSorted ? locale._week.dow : 0;
|
4082 |
-
|
4083 |
-
if (index != null) {
|
4084 |
-
return get$1(format, (index + shift) % 7, field, 'day');
|
4085 |
-
}
|
4086 |
-
|
4087 |
-
var i;
|
4088 |
-
var out = [];
|
4089 |
-
for (i = 0; i < 7; i++) {
|
4090 |
-
out[i] = get$1(format, (i + shift) % 7, field, 'day');
|
4091 |
-
}
|
4092 |
-
return out;
|
4093 |
-
}
|
4094 |
-
|
4095 |
-
function listMonths (format, index) {
|
4096 |
-
return listMonthsImpl(format, index, 'months');
|
4097 |
-
}
|
4098 |
-
|
4099 |
-
function listMonthsShort (format, index) {
|
4100 |
-
return listMonthsImpl(format, index, 'monthsShort');
|
4101 |
-
}
|
4102 |
-
|
4103 |
-
function listWeekdays (localeSorted, format, index) {
|
4104 |
-
return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
|
4105 |
-
}
|
4106 |
-
|
4107 |
-
function listWeekdaysShort (localeSorted, format, index) {
|
4108 |
-
return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
|
4109 |
-
}
|
4110 |
-
|
4111 |
-
function listWeekdaysMin (localeSorted, format, index) {
|
4112 |
-
return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
|
4113 |
-
}
|
4114 |
-
|
4115 |
-
getSetGlobalLocale('en', {
|
4116 |
-
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
|
4117 |
-
ordinal : function (number) {
|
4118 |
-
var b = number % 10,
|
4119 |
-
output = (toInt(number % 100 / 10) === 1) ? 'th' :
|
4120 |
-
(b === 1) ? 'st' :
|
4121 |
-
(b === 2) ? 'nd' :
|
4122 |
-
(b === 3) ? 'rd' : 'th';
|
4123 |
-
return number + output;
|
4124 |
-
}
|
4125 |
-
});
|
4126 |
-
|
4127 |
-
// Side effect imports
|
4128 |
-
|
4129 |
-
hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
|
4130 |
-
hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
|
4131 |
-
|
4132 |
-
var mathAbs = Math.abs;
|
4133 |
-
|
4134 |
-
function abs () {
|
4135 |
-
var data = this._data;
|
4136 |
-
|
4137 |
-
this._milliseconds = mathAbs(this._milliseconds);
|
4138 |
-
this._days = mathAbs(this._days);
|
4139 |
-
this._months = mathAbs(this._months);
|
4140 |
-
|
4141 |
-
data.milliseconds = mathAbs(data.milliseconds);
|
4142 |
-
data.seconds = mathAbs(data.seconds);
|
4143 |
-
data.minutes = mathAbs(data.minutes);
|
4144 |
-
data.hours = mathAbs(data.hours);
|
4145 |
-
data.months = mathAbs(data.months);
|
4146 |
-
data.years = mathAbs(data.years);
|
4147 |
-
|
4148 |
-
return this;
|
4149 |
-
}
|
4150 |
-
|
4151 |
-
function addSubtract$1 (duration, input, value, direction) {
|
4152 |
-
var other = createDuration(input, value);
|
4153 |
-
|
4154 |
-
duration._milliseconds += direction * other._milliseconds;
|
4155 |
-
duration._days += direction * other._days;
|
4156 |
-
duration._months += direction * other._months;
|
4157 |
-
|
4158 |
-
return duration._bubble();
|
4159 |
-
}
|
4160 |
-
|
4161 |
-
// supports only 2.0-style add(1, 's') or add(duration)
|
4162 |
-
function add$1 (input, value) {
|
4163 |
-
return addSubtract$1(this, input, value, 1);
|
4164 |
-
}
|
4165 |
-
|
4166 |
-
// supports only 2.0-style subtract(1, 's') or subtract(duration)
|
4167 |
-
function subtract$1 (input, value) {
|
4168 |
-
return addSubtract$1(this, input, value, -1);
|
4169 |
-
}
|
4170 |
-
|
4171 |
-
function absCeil (number) {
|
4172 |
-
if (number < 0) {
|
4173 |
-
return Math.floor(number);
|
4174 |
-
} else {
|
4175 |
-
return Math.ceil(number);
|
4176 |
-
}
|
4177 |
-
}
|
4178 |
-
|
4179 |
-
function bubble () {
|
4180 |
-
var milliseconds = this._milliseconds;
|
4181 |
-
var days = this._days;
|
4182 |
-
var months = this._months;
|
4183 |
-
var data = this._data;
|
4184 |
-
var seconds, minutes, hours, years, monthsFromDays;
|
4185 |
-
|
4186 |
-
// if we have a mix of positive and negative values, bubble down first
|
4187 |
-
// check: https://github.com/moment/moment/issues/2166
|
4188 |
-
if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
|
4189 |
-
(milliseconds <= 0 && days <= 0 && months <= 0))) {
|
4190 |
-
milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
|
4191 |
-
days = 0;
|
4192 |
-
months = 0;
|
4193 |
-
}
|
4194 |
-
|
4195 |
-
// The following code bubbles up values, see the tests for
|
4196 |
-
// examples of what that means.
|
4197 |
-
data.milliseconds = milliseconds % 1000;
|
4198 |
-
|
4199 |
-
seconds = absFloor(milliseconds / 1000);
|
4200 |
-
data.seconds = seconds % 60;
|
4201 |
-
|
4202 |
-
minutes = absFloor(seconds / 60);
|
4203 |
-
data.minutes = minutes % 60;
|
4204 |
-
|
4205 |
-
hours = absFloor(minutes / 60);
|
4206 |
-
data.hours = hours % 24;
|
4207 |
-
|
4208 |
-
days += absFloor(hours / 24);
|
4209 |
-
|
4210 |
-
// convert days to months
|
4211 |
-
monthsFromDays = absFloor(daysToMonths(days));
|
4212 |
-
months += monthsFromDays;
|
4213 |
-
days -= absCeil(monthsToDays(monthsFromDays));
|
4214 |
-
|
4215 |
-
// 12 months -> 1 year
|
4216 |
-
years = absFloor(months / 12);
|
4217 |
-
months %= 12;
|
4218 |
-
|
4219 |
-
data.days = days;
|
4220 |
-
data.months = months;
|
4221 |
-
data.years = years;
|
4222 |
-
|
4223 |
-
return this;
|
4224 |
-
}
|
4225 |
-
|
4226 |
-
function daysToMonths (days) {
|
4227 |
-
// 400 years have 146097 days (taking into account leap year rules)
|
4228 |
-
// 400 years have 12 months === 4800
|
4229 |
-
return days * 4800 / 146097;
|
4230 |
-
}
|
4231 |
-
|
4232 |
-
function monthsToDays (months) {
|
4233 |
-
// the reverse of daysToMonths
|
4234 |
-
return months * 146097 / 4800;
|
4235 |
-
}
|
4236 |
-
|
4237 |
-
function as (units) {
|
4238 |
-
if (!this.isValid()) {
|
4239 |
-
return NaN;
|
4240 |
-
}
|
4241 |
-
var days;
|
4242 |
-
var months;
|
4243 |
-
var milliseconds = this._milliseconds;
|
4244 |
-
|
4245 |
-
units = normalizeUnits(units);
|
4246 |
-
|
4247 |
-
if (units === 'month' || units === 'year') {
|
4248 |
-
days = this._days + milliseconds / 864e5;
|
4249 |
-
months = this._months + daysToMonths(days);
|
4250 |
-
return units === 'month' ? months : months / 12;
|
4251 |
-
} else {
|
4252 |
-
// handle milliseconds separately because of floating point math errors (issue #1867)
|
4253 |
-
days = this._days + Math.round(monthsToDays(this._months));
|
4254 |
-
switch (units) {
|
4255 |
-
case 'week' : return days / 7 + milliseconds / 6048e5;
|
4256 |
-
case 'day' : return days + milliseconds / 864e5;
|
4257 |
-
case 'hour' : return days * 24 + milliseconds / 36e5;
|
4258 |
-
case 'minute' : return days * 1440 + milliseconds / 6e4;
|
4259 |
-
case 'second' : return days * 86400 + milliseconds / 1000;
|
4260 |
-
// Math.floor prevents floating point math errors here
|
4261 |
-
case 'millisecond': return Math.floor(days * 864e5) + milliseconds;
|
4262 |
-
default: throw new Error('Unknown unit ' + units);
|
4263 |
-
}
|
4264 |
-
}
|
4265 |
-
}
|
4266 |
-
|
4267 |
-
// TODO: Use this.as('ms')?
|
4268 |
-
function valueOf$1 () {
|
4269 |
-
if (!this.isValid()) {
|
4270 |
-
return NaN;
|
4271 |
-
}
|
4272 |
-
return (
|
4273 |
-
this._milliseconds +
|
4274 |
-
this._days * 864e5 +
|
4275 |
-
(this._months % 12) * 2592e6 +
|
4276 |
-
toInt(this._months / 12) * 31536e6
|
4277 |
-
);
|
4278 |
-
}
|
4279 |
-
|
4280 |
-
function makeAs (alias) {
|
4281 |
-
return function () {
|
4282 |
-
return this.as(alias);
|
4283 |
-
};
|
4284 |
-
}
|
4285 |
-
|
4286 |
-
var asMilliseconds = makeAs('ms');
|
4287 |
-
var asSeconds = makeAs('s');
|
4288 |
-
var asMinutes = makeAs('m');
|
4289 |
-
var asHours = makeAs('h');
|
4290 |
-
var asDays = makeAs('d');
|
4291 |
-
var asWeeks = makeAs('w');
|
4292 |
-
var asMonths = makeAs('M');
|
4293 |
-
var asYears = makeAs('y');
|
4294 |
-
|
4295 |
-
function clone$1 () {
|
4296 |
-
return createDuration(this);
|
4297 |
-
}
|
4298 |
-
|
4299 |
-
function get$2 (units) {
|
4300 |
-
units = normalizeUnits(units);
|
4301 |
-
return this.isValid() ? this[units + 's']() : NaN;
|
4302 |
-
}
|
4303 |
-
|
4304 |
-
function makeGetter(name) {
|
4305 |
-
return function () {
|
4306 |
-
return this.isValid() ? this._data[name] : NaN;
|
4307 |
-
};
|
4308 |
-
}
|
4309 |
-
|
4310 |
-
var milliseconds = makeGetter('milliseconds');
|
4311 |
-
var seconds = makeGetter('seconds');
|
4312 |
-
var minutes = makeGetter('minutes');
|
4313 |
-
var hours = makeGetter('hours');
|
4314 |
-
var days = makeGetter('days');
|
4315 |
-
var months = makeGetter('months');
|
4316 |
-
var years = makeGetter('years');
|
4317 |
-
|
4318 |
-
function weeks () {
|
4319 |
-
return absFloor(this.days() / 7);
|
4320 |
-
}
|
4321 |
-
|
4322 |
-
var round = Math.round;
|
4323 |
-
var thresholds = {
|
4324 |
-
ss: 44, // a few seconds to seconds
|
4325 |
-
s : 45, // seconds to minute
|
4326 |
-
m : 45, // minutes to hour
|
4327 |
-
h : 22, // hours to day
|
4328 |
-
d : 26, // days to month
|
4329 |
-
M : 11 // months to year
|
4330 |
-
};
|
4331 |
-
|
4332 |
-
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
|
4333 |
-
function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
|
4334 |
-
return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
|
4335 |
-
}
|
4336 |
-
|
4337 |
-
function relativeTime$1 (posNegDuration, withoutSuffix, locale) {
|
4338 |
-
var duration = createDuration(posNegDuration).abs();
|
4339 |
-
var seconds = round(duration.as('s'));
|
4340 |
-
var minutes = round(duration.as('m'));
|
4341 |
-
var hours = round(duration.as('h'));
|
4342 |
-
var days = round(duration.as('d'));
|
4343 |
-
var months = round(duration.as('M'));
|
4344 |
-
var years = round(duration.as('y'));
|
4345 |
-
|
4346 |
-
var a = seconds <= thresholds.ss && ['s', seconds] ||
|
4347 |
-
seconds < thresholds.s && ['ss', seconds] ||
|
4348 |
-
minutes <= 1 && ['m'] ||
|
4349 |
-
minutes < thresholds.m && ['mm', minutes] ||
|
4350 |
-
hours <= 1 && ['h'] ||
|
4351 |
-
hours < thresholds.h && ['hh', hours] ||
|
4352 |
-
days <= 1 && ['d'] ||
|
4353 |
-
days < thresholds.d && ['dd', days] ||
|
4354 |
-
months <= 1 && ['M'] ||
|
4355 |
-
months < thresholds.M && ['MM', months] ||
|
4356 |
-
years <= 1 && ['y'] || ['yy', years];
|
4357 |
-
|
4358 |
-
a[2] = withoutSuffix;
|
4359 |
-
a[3] = +posNegDuration > 0;
|
4360 |
-
a[4] = locale;
|
4361 |
-
return substituteTimeAgo.apply(null, a);
|
4362 |
-
}
|
4363 |
-
|
4364 |
-
// This function allows you to set the rounding function for relative time strings
|
4365 |
-
function getSetRelativeTimeRounding (roundingFunction) {
|
4366 |
-
if (roundingFunction === undefined) {
|
4367 |
-
return round;
|
4368 |
-
}
|
4369 |
-
if (typeof(roundingFunction) === 'function') {
|
4370 |
-
round = roundingFunction;
|
4371 |
-
return true;
|
4372 |
-
}
|
4373 |
-
return false;
|
4374 |
-
}
|
4375 |
-
|
4376 |
-
// This function allows you to set a threshold for relative time strings
|
4377 |
-
function getSetRelativeTimeThreshold (threshold, limit) {
|
4378 |
-
if (thresholds[threshold] === undefined) {
|
4379 |
-
return false;
|
4380 |
-
}
|
4381 |
-
if (limit === undefined) {
|
4382 |
-
return thresholds[threshold];
|
4383 |
-
}
|
4384 |
-
thresholds[threshold] = limit;
|
4385 |
-
if (threshold === 's') {
|
4386 |
-
thresholds.ss = limit - 1;
|
4387 |
-
}
|
4388 |
-
return true;
|
4389 |
-
}
|
4390 |
-
|
4391 |
-
function humanize (withSuffix) {
|
4392 |
-
if (!this.isValid()) {
|
4393 |
-
return this.localeData().invalidDate();
|
4394 |
-
}
|
4395 |
-
|
4396 |
-
var locale = this.localeData();
|
4397 |
-
var output = relativeTime$1(this, !withSuffix, locale);
|
4398 |
-
|
4399 |
-
if (withSuffix) {
|
4400 |
-
output = locale.pastFuture(+this, output);
|
4401 |
-
}
|
4402 |
-
|
4403 |
-
return locale.postformat(output);
|
4404 |
-
}
|
4405 |
-
|
4406 |
-
var abs$1 = Math.abs;
|
4407 |
-
|
4408 |
-
function sign(x) {
|
4409 |
-
return ((x > 0) - (x < 0)) || +x;
|
4410 |
-
}
|
4411 |
-
|
4412 |
-
function toISOString$1() {
|
4413 |
-
// for ISO strings we do not use the normal bubbling rules:
|
4414 |
-
// * milliseconds bubble up until they become hours
|
4415 |
-
// * days do not bubble at all
|
4416 |
-
// * months bubble up until they become years
|
4417 |
-
// This is because there is no context-free conversion between hours and days
|
4418 |
-
// (think of clock changes)
|
4419 |
-
// and also not between days and months (28-31 days per month)
|
4420 |
-
if (!this.isValid()) {
|
4421 |
-
return this.localeData().invalidDate();
|
4422 |
-
}
|
4423 |
-
|
4424 |
-
var seconds = abs$1(this._milliseconds) / 1000;
|
4425 |
-
var days = abs$1(this._days);
|
4426 |
-
var months = abs$1(this._months);
|
4427 |
-
var minutes, hours, years;
|
4428 |
-
|
4429 |
-
// 3600 seconds -> 60 minutes -> 1 hour
|
4430 |
-
minutes = absFloor(seconds / 60);
|
4431 |
-
hours = absFloor(minutes / 60);
|
4432 |
-
seconds %= 60;
|
4433 |
-
minutes %= 60;
|
4434 |
-
|
4435 |
-
// 12 months -> 1 year
|
4436 |
-
years = absFloor(months / 12);
|
4437 |
-
months %= 12;
|
4438 |
-
|
4439 |
-
|
4440 |
-
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
4441 |
-
var Y = years;
|
4442 |
-
var M = months;
|
4443 |
-
var D = days;
|
4444 |
-
var h = hours;
|
4445 |
-
var m = minutes;
|
4446 |
-
var s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
|
4447 |
-
var total = this.asSeconds();
|
4448 |
-
|
4449 |
-
if (!total) {
|
4450 |
-
// this is the same as C#'s (Noda) and python (isodate)...
|
4451 |
-
// but not other JS (goog.date)
|
4452 |
-
return 'P0D';
|
4453 |
-
}
|
4454 |
-
|
4455 |
-
var totalSign = total < 0 ? '-' : '';
|
4456 |
-
var ymSign = sign(this._months) !== sign(total) ? '-' : '';
|
4457 |
-
var daysSign = sign(this._days) !== sign(total) ? '-' : '';
|
4458 |
-
var hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
|
4459 |
-
|
4460 |
-
return totalSign + 'P' +
|
4461 |
-
(Y ? ymSign + Y + 'Y' : '') +
|
4462 |
-
(M ? ymSign + M + 'M' : '') +
|
4463 |
-
(D ? daysSign + D + 'D' : '') +
|
4464 |
-
((h || m || s) ? 'T' : '') +
|
4465 |
-
(h ? hmsSign + h + 'H' : '') +
|
4466 |
-
(m ? hmsSign + m + 'M' : '') +
|
4467 |
-
(s ? hmsSign + s + 'S' : '');
|
4468 |
-
}
|
4469 |
-
|
4470 |
-
var proto$2 = Duration.prototype;
|
4471 |
-
|
4472 |
-
proto$2.isValid = isValid$1;
|
4473 |
-
proto$2.abs = abs;
|
4474 |
-
proto$2.add = add$1;
|
4475 |
-
proto$2.subtract = subtract$1;
|
4476 |
-
proto$2.as = as;
|
4477 |
-
proto$2.asMilliseconds = asMilliseconds;
|
4478 |
-
proto$2.asSeconds = asSeconds;
|
4479 |
-
proto$2.asMinutes = asMinutes;
|
4480 |
-
proto$2.asHours = asHours;
|
4481 |
-
proto$2.asDays = asDays;
|
4482 |
-
proto$2.asWeeks = asWeeks;
|
4483 |
-
proto$2.asMonths = asMonths;
|
4484 |
-
proto$2.asYears = asYears;
|
4485 |
-
proto$2.valueOf = valueOf$1;
|
4486 |
-
proto$2._bubble = bubble;
|
4487 |
-
proto$2.clone = clone$1;
|
4488 |
-
proto$2.get = get$2;
|
4489 |
-
proto$2.milliseconds = milliseconds;
|
4490 |
-
proto$2.seconds = seconds;
|
4491 |
-
proto$2.minutes = minutes;
|
4492 |
-
proto$2.hours = hours;
|
4493 |
-
proto$2.days = days;
|
4494 |
-
proto$2.weeks = weeks;
|
4495 |
-
proto$2.months = months;
|
4496 |
-
proto$2.years = years;
|
4497 |
-
proto$2.humanize = humanize;
|
4498 |
-
proto$2.toISOString = toISOString$1;
|
4499 |
-
proto$2.toString = toISOString$1;
|
4500 |
-
proto$2.toJSON = toISOString$1;
|
4501 |
-
proto$2.locale = locale;
|
4502 |
-
proto$2.localeData = localeData;
|
4503 |
-
|
4504 |
-
proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
|
4505 |
-
proto$2.lang = lang;
|
4506 |
-
|
4507 |
-
// Side effect imports
|
4508 |
-
|
4509 |
-
// FORMATTING
|
4510 |
-
|
4511 |
-
addFormatToken('X', 0, 0, 'unix');
|
4512 |
-
addFormatToken('x', 0, 0, 'valueOf');
|
4513 |
-
|
4514 |
-
// PARSING
|
4515 |
-
|
4516 |
-
addRegexToken('x', matchSigned);
|
4517 |
-
addRegexToken('X', matchTimestamp);
|
4518 |
-
addParseToken('X', function (input, array, config) {
|
4519 |
-
config._d = new Date(parseFloat(input, 10) * 1000);
|
4520 |
-
});
|
4521 |
-
addParseToken('x', function (input, array, config) {
|
4522 |
-
config._d = new Date(toInt(input));
|
4523 |
-
});
|
4524 |
-
|
4525 |
-
// Side effect imports
|
4526 |
-
|
4527 |
-
|
4528 |
-
hooks.version = '2.22.0';
|
4529 |
-
|
4530 |
-
setHookCallback(createLocal);
|
4531 |
-
|
4532 |
-
hooks.fn = proto;
|
4533 |
-
hooks.min = min;
|
4534 |
-
hooks.max = max;
|
4535 |
-
hooks.now = now;
|
4536 |
-
hooks.utc = createUTC;
|
4537 |
-
hooks.unix = createUnix;
|
4538 |
-
hooks.months = listMonths;
|
4539 |
-
hooks.isDate = isDate;
|
4540 |
-
hooks.locale = getSetGlobalLocale;
|
4541 |
-
hooks.invalid = createInvalid;
|
4542 |
-
hooks.duration = createDuration;
|
4543 |
-
hooks.isMoment = isMoment;
|
4544 |
-
hooks.weekdays = listWeekdays;
|
4545 |
-
hooks.parseZone = createInZone;
|
4546 |
-
hooks.localeData = getLocale;
|
4547 |
-
hooks.isDuration = isDuration;
|
4548 |
-
hooks.monthsShort = listMonthsShort;
|
4549 |
-
hooks.weekdaysMin = listWeekdaysMin;
|
4550 |
-
hooks.defineLocale = defineLocale;
|
4551 |
-
hooks.updateLocale = updateLocale;
|
4552 |
-
hooks.locales = listLocales;
|
4553 |
-
hooks.weekdaysShort = listWeekdaysShort;
|
4554 |
-
hooks.normalizeUnits = normalizeUnits;
|
4555 |
-
hooks.relativeTimeRounding = getSetRelativeTimeRounding;
|
4556 |
-
hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
|
4557 |
-
hooks.calendarFormat = getCalendarFormat;
|
4558 |
-
hooks.prototype = proto;
|
4559 |
-
|
4560 |
-
// currently HTML5 input type only supports 24-hour formats
|
4561 |
-
hooks.HTML5_FMT = {
|
4562 |
-
DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
|
4563 |
-
DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
|
4564 |
-
DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
|
4565 |
-
DATE: 'YYYY-MM-DD', // <input type="date" />
|
4566 |
-
TIME: 'HH:mm', // <input type="time" />
|
4567 |
-
TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
|
4568 |
-
TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
|
4569 |
-
WEEK: 'YYYY-[W]WW', // <input type="week" />
|
4570 |
-
MONTH: 'YYYY-MM' // <input type="month" />
|
4571 |
-
};
|
4572 |
-
|
4573 |
-
return hooks;
|
4574 |
-
|
4575 |
-
})));
|
4576 |
-
|
4577 |
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(273)(module)))
|
4578 |
-
|
4579 |
-
/***/ }),
|
4580 |
-
/* 1 */
|
4581 |
-
/***/ (function(module, exports) {
|
4582 |
-
|
4583 |
-
/*
|
4584 |
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
4585 |
-
Author Tobias Koppers @sokra
|
4586 |
-
*/
|
4587 |
-
// css base code, injected by the css-loader
|
4588 |
-
module.exports = function() {
|
4589 |
-
var list = [];
|
4590 |
-
|
4591 |
-
// return the list of modules as css string
|
4592 |
-
list.toString = function toString() {
|
4593 |
-
var result = [];
|
4594 |
-
for(var i = 0; i < this.length; i++) {
|
4595 |
-
var item = this[i];
|
4596 |
-
if(item[2]) {
|
4597 |
-
result.push("@media " + item[2] + "{" + item[1] + "}");
|
4598 |
-
} else {
|
4599 |
-
result.push(item[1]);
|
4600 |
-
}
|
4601 |
-
}
|
4602 |
-
return result.join("");
|
4603 |
-
};
|
4604 |
-
|
4605 |
-
// import a list of modules into the list
|
4606 |
-
list.i = function(modules, mediaQuery) {
|
4607 |
-
if(typeof modules === "string")
|
4608 |
-
modules = [[null, modules, ""]];
|
4609 |
-
var alreadyImportedModules = {};
|
4610 |
-
for(var i = 0; i < this.length; i++) {
|
4611 |
-
var id = this[i][0];
|
4612 |
-
if(typeof id === "number")
|
4613 |
-
alreadyImportedModules[id] = true;
|
4614 |
-
}
|
4615 |
-
for(i = 0; i < modules.length; i++) {
|
4616 |
-
var item = modules[i];
|
4617 |
-
// skip already imported module
|
4618 |
-
// this implementation is not 100% perfect for weird media query combinations
|
4619 |
-
// when a module is imported multiple times with different media queries.
|
4620 |
-
// I hope this will never occur (Hey this way we have smaller bundles)
|
4621 |
-
if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
|
4622 |
-
if(mediaQuery && !item[2]) {
|
4623 |
-
item[2] = mediaQuery;
|
4624 |
-
} else if(mediaQuery) {
|
4625 |
-
item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
|
4626 |
-
}
|
4627 |
-
list.push(item);
|
4628 |
-
}
|
4629 |
-
}
|
4630 |
-
};
|
4631 |
-
return list;
|
4632 |
-
};
|
4633 |
-
|
4634 |
-
|
4635 |
-
/***/ }),
|
4636 |
-
/* 2 */
|
4637 |
-
/***/ (function(module, exports) {
|
4638 |
-
|
4639 |
-
/*
|
4640 |
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
4641 |
-
Author Tobias Koppers @sokra
|
4642 |
-
*/
|
4643 |
-
var stylesInDom = {},
|
4644 |
-
memoize = function(fn) {
|
4645 |
-
var memo;
|
4646 |
-
return function () {
|
4647 |
-
if (typeof memo === "undefined") memo = fn.apply(this, arguments);
|
4648 |
-
return memo;
|
4649 |
-
};
|
4650 |
-
},
|
4651 |
-
isOldIE = memoize(function() {
|
4652 |
-
return /msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase());
|
4653 |
-
}),
|
4654 |
-
getHeadElement = memoize(function () {
|
4655 |
-
return document.head || document.getElementsByTagName("head")[0];
|
4656 |
-
}),
|
4657 |
-
singletonElement = null,
|
4658 |
-
singletonCounter = 0,
|
4659 |
-
styleElementsInsertedAtTop = [];
|
4660 |
-
|
4661 |
-
module.exports = function(list, options) {
|
4662 |
-
if(typeof DEBUG !== "undefined" && DEBUG) {
|
4663 |
-
if(typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
|
4664 |
-
}
|
4665 |
-
|
4666 |
-
options = options || {};
|
4667 |
-
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
4668 |
-
// tags it will allow on a page
|
4669 |
-
if (typeof options.singleton === "undefined") options.singleton = isOldIE();
|
4670 |
-
|
4671 |
-
// By default, add <style> tags to the bottom of <head>.
|
4672 |
-
if (typeof options.insertAt === "undefined") options.insertAt = "bottom";
|
4673 |
-
|
4674 |
-
var styles = listToStyles(list);
|
4675 |
-
addStylesToDom(styles, options);
|
4676 |
-
|
4677 |
-
return function update(newList) {
|
4678 |
-
var mayRemove = [];
|
4679 |
-
for(var i = 0; i < styles.length; i++) {
|
4680 |
-
var item = styles[i];
|
4681 |
-
var domStyle = stylesInDom[item.id];
|
4682 |
-
domStyle.refs--;
|
4683 |
-
mayRemove.push(domStyle);
|
4684 |
-
}
|
4685 |
-
if(newList) {
|
4686 |
-
var newStyles = listToStyles(newList);
|
4687 |
-
addStylesToDom(newStyles, options);
|
4688 |
-
}
|
4689 |
-
for(var i = 0; i < mayRemove.length; i++) {
|
4690 |
-
var domStyle = mayRemove[i];
|
4691 |
-
if(domStyle.refs === 0) {
|
4692 |
-
for(var j = 0; j < domStyle.parts.length; j++)
|
4693 |
-
domStyle.parts[j]();
|
4694 |
-
delete stylesInDom[domStyle.id];
|
4695 |
-
}
|
4696 |
-
}
|
4697 |
-
};
|
4698 |
-
}
|
4699 |
-
|
4700 |
-
function addStylesToDom(styles, options) {
|
4701 |
-
for(var i = 0; i < styles.length; i++) {
|
4702 |
-
var item = styles[i];
|
4703 |
-
var domStyle = stylesInDom[item.id];
|
4704 |
-
if(domStyle) {
|
4705 |
-
domStyle.refs++;
|
4706 |
-
for(var j = 0; j < domStyle.parts.length; j++) {
|
4707 |
-
domStyle.parts[j](item.parts[j]);
|
4708 |
-
}
|
4709 |
-
for(; j < item.parts.length; j++) {
|
4710 |
-
domStyle.parts.push(addStyle(item.parts[j], options));
|
4711 |
-
}
|
4712 |
-
} else {
|
4713 |
-
var parts = [];
|
4714 |
-
for(var j = 0; j < item.parts.length; j++) {
|
4715 |
-
parts.push(addStyle(item.parts[j], options));
|
4716 |
-
}
|
4717 |
-
stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
|
4718 |
-
}
|
4719 |
-
}
|
4720 |
-
}
|
4721 |
-
|
4722 |
-
function listToStyles(list) {
|
4723 |
-
var styles = [];
|
4724 |
-
var newStyles = {};
|
4725 |
-
for(var i = 0; i < list.length; i++) {
|
4726 |
-
var item = list[i];
|
4727 |
-
var id = item[0];
|
4728 |
-
var css = item[1];
|
4729 |
-
var media = item[2];
|
4730 |
-
var sourceMap = item[3];
|
4731 |
-
var part = {css: css, media: media, sourceMap: sourceMap};
|
4732 |
-
if(!newStyles[id])
|
4733 |
-
styles.push(newStyles[id] = {id: id, parts: [part]});
|
4734 |
-
else
|
4735 |
-
newStyles[id].parts.push(part);
|
4736 |
-
}
|
4737 |
-
return styles;
|
4738 |
-
}
|
4739 |
-
|
4740 |
-
function insertStyleElement(options, styleElement) {
|
4741 |
-
var head = getHeadElement();
|
4742 |
-
var lastStyleElementInsertedAtTop = styleElementsInsertedAtTop[styleElementsInsertedAtTop.length - 1];
|
4743 |
-
if (options.insertAt === "top") {
|
4744 |
-
if(!lastStyleElementInsertedAtTop) {
|
4745 |
-
head.insertBefore(styleElement, head.firstChild);
|
4746 |
-
} else if(lastStyleElementInsertedAtTop.nextSibling) {
|
4747 |
-
head.insertBefore(styleElement, lastStyleElementInsertedAtTop.nextSibling);
|
4748 |
-
} else {
|
4749 |
-
head.appendChild(styleElement);
|
4750 |
-
}
|
4751 |
-
styleElementsInsertedAtTop.push(styleElement);
|
4752 |
-
} else if (options.insertAt === "bottom") {
|
4753 |
-
head.appendChild(styleElement);
|
4754 |
-
} else {
|
4755 |
-
throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");
|
4756 |
-
}
|
4757 |
-
}
|
4758 |
-
|
4759 |
-
function removeStyleElement(styleElement) {
|
4760 |
-
styleElement.parentNode.removeChild(styleElement);
|
4761 |
-
var idx = styleElementsInsertedAtTop.indexOf(styleElement);
|
4762 |
-
if(idx >= 0) {
|
4763 |
-
styleElementsInsertedAtTop.splice(idx, 1);
|
4764 |
-
}
|
4765 |
-
}
|
4766 |
-
|
4767 |
-
function createStyleElement(options) {
|
4768 |
-
var styleElement = document.createElement("style");
|
4769 |
-
styleElement.type = "text/css";
|
4770 |
-
insertStyleElement(options, styleElement);
|
4771 |
-
return styleElement;
|
4772 |
-
}
|
4773 |
-
|
4774 |
-
function createLinkElement(options) {
|
4775 |
-
var linkElement = document.createElement("link");
|
4776 |
-
linkElement.rel = "stylesheet";
|
4777 |
-
insertStyleElement(options, linkElement);
|
4778 |
-
return linkElement;
|
4779 |
-
}
|
4780 |
-
|
4781 |
-
function addStyle(obj, options) {
|
4782 |
-
var styleElement, update, remove;
|
4783 |
-
|
4784 |
-
if (options.singleton) {
|
4785 |
-
var styleIndex = singletonCounter++;
|
4786 |
-
styleElement = singletonElement || (singletonElement = createStyleElement(options));
|
4787 |
-
update = applyToSingletonTag.bind(null, styleElement, styleIndex, false);
|
4788 |
-
remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true);
|
4789 |
-
} else if(obj.sourceMap &&
|
4790 |
-
typeof URL === "function" &&
|
4791 |
-
typeof URL.createObjectURL === "function" &&
|
4792 |
-
typeof URL.revokeObjectURL === "function" &&
|
4793 |
-
typeof Blob === "function" &&
|
4794 |
-
typeof btoa === "function") {
|
4795 |
-
styleElement = createLinkElement(options);
|
4796 |
-
update = updateLink.bind(null, styleElement);
|
4797 |
-
remove = function() {
|
4798 |
-
removeStyleElement(styleElement);
|
4799 |
-
if(styleElement.href)
|
4800 |
-
URL.revokeObjectURL(styleElement.href);
|
4801 |
-
};
|
4802 |
-
} else {
|
4803 |
-
styleElement = createStyleElement(options);
|
4804 |
-
update = applyToTag.bind(null, styleElement);
|
4805 |
-
remove = function() {
|
4806 |
-
removeStyleElement(styleElement);
|
4807 |
-
};
|
4808 |
-
}
|
4809 |
-
|
4810 |
-
update(obj);
|
4811 |
-
|
4812 |
-
return function updateStyle(newObj) {
|
4813 |
-
if(newObj) {
|
4814 |
-
if(newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap)
|
4815 |
-
return;
|
4816 |
-
update(obj = newObj);
|
4817 |
-
} else {
|
4818 |
-
remove();
|
4819 |
-
}
|
4820 |
-
};
|
4821 |
-
}
|
4822 |
-
|
4823 |
-
var replaceText = (function () {
|
4824 |
-
var textStore = [];
|
4825 |
-
|
4826 |
-
return function (index, replacement) {
|
4827 |
-
textStore[index] = replacement;
|
4828 |
-
return textStore.filter(Boolean).join('\n');
|
4829 |
-
};
|
4830 |
-
})();
|
4831 |
-
|
4832 |
-
function applyToSingletonTag(styleElement, index, remove, obj) {
|
4833 |
-
var css = remove ? "" : obj.css;
|
4834 |
-
|
4835 |
-
if (styleElement.styleSheet) {
|
4836 |
-
styleElement.styleSheet.cssText = replaceText(index, css);
|
4837 |
-
} else {
|
4838 |
-
var cssNode = document.createTextNode(css);
|
4839 |
-
var childNodes = styleElement.childNodes;
|
4840 |
-
if (childNodes[index]) styleElement.removeChild(childNodes[index]);
|
4841 |
-
if (childNodes.length) {
|
4842 |
-
styleElement.insertBefore(cssNode, childNodes[index]);
|
4843 |
-
} else {
|
4844 |
-
styleElement.appendChild(cssNode);
|
4845 |
-
}
|
4846 |
-
}
|
4847 |
-
}
|
4848 |
-
|
4849 |
-
function applyToTag(styleElement, obj) {
|
4850 |
-
var css = obj.css;
|
4851 |
-
var media = obj.media;
|
4852 |
-
|
4853 |
-
if(media) {
|
4854 |
-
styleElement.setAttribute("media", media)
|
4855 |
-
}
|
4856 |
-
|
4857 |
-
if(styleElement.styleSheet) {
|
4858 |
-
styleElement.styleSheet.cssText = css;
|
4859 |
-
} else {
|
4860 |
-
while(styleElement.firstChild) {
|
4861 |
-
styleElement.removeChild(styleElement.firstChild);
|
4862 |
-
}
|
4863 |
-
styleElement.appendChild(document.createTextNode(css));
|
4864 |
-
}
|
4865 |
-
}
|
4866 |
-
|
4867 |
-
function updateLink(linkElement, obj) {
|
4868 |
-
var css = obj.css;
|
4869 |
-
var sourceMap = obj.sourceMap;
|
4870 |
-
|
4871 |
-
if(sourceMap) {
|
4872 |
-
// http://stackoverflow.com/a/26603875
|
4873 |
-
css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
|
4874 |
-
}
|
4875 |
-
|
4876 |
-
var blob = new Blob([css], { type: "text/css" });
|
4877 |
-
|
4878 |
-
var oldSrc = linkElement.href;
|
4879 |
-
|
4880 |
-
linkElement.href = URL.createObjectURL(blob);
|
4881 |
-
|
4882 |
-
if(oldSrc)
|
4883 |
-
URL.revokeObjectURL(oldSrc);
|
4884 |
-
}
|
4885 |
-
|
4886 |
-
|
4887 |
-
/***/ }),
|
4888 |
-
/* 3 */
|
4889 |
-
/***/ (function(module, exports, __webpack_require__) {
|
4890 |
-
|
4891 |
-
module.exports = { "default": __webpack_require__(172), __esModule: true };
|
4892 |
-
|
4893 |
-
/***/ }),
|
4894 |
-
/* 4 */
|
4895 |
-
/***/ (function(module, exports) {
|
4896 |
-
|
4897 |
-
var core = module.exports = { version: '2.5.3' };
|
4898 |
-
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
4899 |
-
|
4900 |
-
|
4901 |
-
/***/ }),
|
4902 |
-
/* 5 */
|
4903 |
-
/***/ (function(module, exports) {
|
4904 |
-
|
4905 |
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
4906 |
-
var global = module.exports = typeof window != 'undefined' && window.Math == Math
|
4907 |
-
? window : typeof self != 'undefined' && self.Math == Math ? self
|
4908 |
-
// eslint-disable-next-line no-new-func
|
4909 |
-
: Function('return this')();
|
4910 |
-
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
|
4911 |
-
|
4912 |
-
|
4913 |
-
/***/ }),
|
4914 |
-
/* 6 */
|
4915 |
-
/***/ (function(module, exports, __webpack_require__) {
|
4916 |
-
|
4917 |
-
var store = __webpack_require__(26)('wks');
|
4918 |
-
var uid = __webpack_require__(27);
|
4919 |
-
var Symbol = __webpack_require__(5).Symbol;
|
4920 |
-
var USE_SYMBOL = typeof Symbol == 'function';
|
4921 |
-
|
4922 |
-
var $exports = module.exports = function (name) {
|
4923 |
-
return store[name] || (store[name] =
|
4924 |
-
USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
|
4925 |
-
};
|
4926 |
-
|
4927 |
-
$exports.store = store;
|
4928 |
-
|
4929 |
-
|
4930 |
-
/***/ }),
|
4931 |
-
/* 7 */
|
4932 |
-
/***/ (function(module, exports, __webpack_require__) {
|
4933 |
-
|
4934 |
-
var dP = __webpack_require__(20);
|
4935 |
-
var createDesc = __webpack_require__(30);
|
4936 |
-
module.exports = __webpack_require__(12) ? function (object, key, value) {
|
4937 |
-
return dP.f(object, key, createDesc(1, value));
|
4938 |
-
} : function (object, key, value) {
|
4939 |
-
object[key] = value;
|
4940 |
-
return object;
|
4941 |
-
};
|
4942 |
-
|
4943 |
-
|
4944 |
-
/***/ }),
|
4945 |
-
/* 8 */
|
4946 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4947 |
-
|
4948 |
-
"use strict";
|
4949 |
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
4950 |
-
/* WEBPACK VAR INJECTION */(function(process, global, setImmediate) {/*!
|
4951 |
-
* Vue.js v2.5.16
|
4952 |
-
* (c) 2014-2018 Evan You
|
4953 |
-
* Released under the MIT License.
|
4954 |
-
*/
|
4955 |
-
/* */
|
4956 |
-
|
4957 |
-
var emptyObject = Object.freeze({});
|
4958 |
-
|
4959 |
-
// these helpers produces better vm code in JS engines due to their
|
4960 |
-
// explicitness and function inlining
|
4961 |
-
function isUndef (v) {
|
4962 |
-
return v === undefined || v === null
|
4963 |
-
}
|
4964 |
-
|
4965 |
-
function isDef (v) {
|
4966 |
-
return v !== undefined && v !== null
|
4967 |
-
}
|
4968 |
-
|
4969 |
-
function isTrue (v) {
|
4970 |
-
return v === true
|
4971 |
-
}
|
4972 |
-
|
4973 |
-
function isFalse (v) {
|
4974 |
-
return v === false
|
4975 |
-
}
|
4976 |
-
|
4977 |
-
/**
|
4978 |
-
* Check if value is primitive
|
4979 |
-
*/
|
4980 |
-
function isPrimitive (value) {
|
4981 |
-
return (
|
4982 |
-
typeof value === 'string' ||
|
4983 |
-
typeof value === 'number' ||
|
4984 |
-
// $flow-disable-line
|
4985 |
-
typeof value === 'symbol' ||
|
4986 |
-
typeof value === 'boolean'
|
4987 |
-
)
|
4988 |
-
}
|
4989 |
-
|
4990 |
-
/**
|
4991 |
-
* Quick object check - this is primarily used to tell
|
4992 |
-
* Objects from primitive values when we know the value
|
4993 |
-
* is a JSON-compliant type.
|
4994 |
-
*/
|
4995 |
-
function isObject (obj) {
|
4996 |
-
return obj !== null && typeof obj === 'object'
|
4997 |
-
}
|
4998 |
-
|
4999 |
-
/**
|
5000 |
-
* Get the raw type string of a value e.g. [object Object]
|
5001 |
-
*/
|
5002 |
-
var _toString = Object.prototype.toString;
|
5003 |
-
|
5004 |
-
function toRawType (value) {
|
5005 |
-
return _toString.call(value).slice(8, -1)
|
5006 |
-
}
|
5007 |
-
|
5008 |
-
/**
|
5009 |
-
* Strict object type check. Only returns true
|
5010 |
-
* for plain JavaScript objects.
|
5011 |
-
*/
|
5012 |
-
function isPlainObject (obj) {
|
5013 |
-
return _toString.call(obj) === '[object Object]'
|
5014 |
-
}
|
5015 |
-
|
5016 |
-
function isRegExp (v) {
|
5017 |
-
return _toString.call(v) === '[object RegExp]'
|
5018 |
-
}
|
5019 |
-
|
5020 |
-
/**
|
5021 |
-
* Check if val is a valid array index.
|
5022 |
-
*/
|
5023 |
-
function isValidArrayIndex (val) {
|
5024 |
-
var n = parseFloat(String(val));
|
5025 |
-
return n >= 0 && Math.floor(n) === n && isFinite(val)
|
5026 |
-
}
|
5027 |
-
|
5028 |
-
/**
|
5029 |
-
* Convert a value to a string that is actually rendered.
|
5030 |
-
*/
|
5031 |
-
function toString (val) {
|
5032 |
-
return val == null
|
5033 |
-
? ''
|
5034 |
-
: typeof val === 'object'
|
5035 |
-
? JSON.stringify(val, null, 2)
|
5036 |
-
: String(val)
|
5037 |
-
}
|
5038 |
-
|
5039 |
-
/**
|
5040 |
-
* Convert a input value to a number for persistence.
|
5041 |
-
* If the conversion fails, return original string.
|
5042 |
-
*/
|
5043 |
-
function toNumber (val) {
|
5044 |
-
var n = parseFloat(val);
|
5045 |
-
return isNaN(n) ? val : n
|
5046 |
-
}
|
5047 |
-
|
5048 |
-
/**
|
5049 |
-
* Make a map and return a function for checking if a key
|
5050 |
-
* is in that map.
|
5051 |
-
*/
|
5052 |
-
function makeMap (
|
5053 |
-
str,
|
5054 |
-
expectsLowerCase
|
5055 |
-
) {
|
5056 |
-
var map = Object.create(null);
|
5057 |
-
var list = str.split(',');
|
5058 |
-
for (var i = 0; i < list.length; i++) {
|
5059 |
-
map[list[i]] = true;
|
5060 |
-
}
|
5061 |
-
return expectsLowerCase
|
5062 |
-
? function (val) { return map[val.toLowerCase()]; }
|
5063 |
-
: function (val) { return map[val]; }
|
5064 |
-
}
|
5065 |
-
|
5066 |
-
/**
|
5067 |
-
* Check if a tag is a built-in tag.
|
5068 |
-
*/
|
5069 |
-
var isBuiltInTag = makeMap('slot,component', true);
|
5070 |
-
|
5071 |
-
/**
|
5072 |
-
* Check if a attribute is a reserved attribute.
|
5073 |
-
*/
|
5074 |
-
var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
|
5075 |
-
|
5076 |
-
/**
|
5077 |
-
* Remove an item from an array
|
5078 |
-
*/
|
5079 |
-
function remove (arr, item) {
|
5080 |
-
if (arr.length) {
|
5081 |
-
var index = arr.indexOf(item);
|
5082 |
-
if (index > -1) {
|
5083 |
-
return arr.splice(index, 1)
|
5084 |
-
}
|
5085 |
-
}
|
5086 |
-
}
|
5087 |
-
|
5088 |
-
/**
|
5089 |
-
* Check whether the object has the property.
|
5090 |
-
*/
|
5091 |
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
5092 |
-
function hasOwn (obj, key) {
|
5093 |
-
return hasOwnProperty.call(obj, key)
|
5094 |
-
}
|
5095 |
-
|
5096 |
-
/**
|
5097 |
-
* Create a cached version of a pure function.
|
5098 |
-
*/
|
5099 |
-
function cached (fn) {
|
5100 |
-
var cache = Object.create(null);
|
5101 |
-
return (function cachedFn (str) {
|
5102 |
-
var hit = cache[str];
|
5103 |
-
return hit || (cache[str] = fn(str))
|
5104 |
-
})
|
5105 |
-
}
|
5106 |
-
|
5107 |
-
/**
|
5108 |
-
* Camelize a hyphen-delimited string.
|
5109 |
-
*/
|
5110 |
-
var camelizeRE = /-(\w)/g;
|
5111 |
-
var camelize = cached(function (str) {
|
5112 |
-
return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
|
5113 |
-
});
|
5114 |
-
|
5115 |
-
/**
|
5116 |
-
* Capitalize a string.
|
5117 |
-
*/
|
5118 |
-
var capitalize = cached(function (str) {
|
5119 |
-
return str.charAt(0).toUpperCase() + str.slice(1)
|
5120 |
-
});
|
5121 |
-
|
5122 |
-
/**
|
5123 |
-
* Hyphenate a camelCase string.
|
5124 |
-
*/
|
5125 |
-
var hyphenateRE = /\B([A-Z])/g;
|
5126 |
-
var hyphenate = cached(function (str) {
|
5127 |
-
return str.replace(hyphenateRE, '-$1').toLowerCase()
|
5128 |
-
});
|
5129 |
-
|
5130 |
-
/**
|
5131 |
-
* Simple bind polyfill for environments that do not support it... e.g.
|
5132 |
-
* PhantomJS 1.x. Technically we don't need this anymore since native bind is
|
5133 |
-
* now more performant in most browsers, but removing it would be breaking for
|
5134 |
-
* code that was able to run in PhantomJS 1.x, so this must be kept for
|
5135 |
-
* backwards compatibility.
|
5136 |
-
*/
|
5137 |
-
|
5138 |
-
/* istanbul ignore next */
|
5139 |
-
function polyfillBind (fn, ctx) {
|
5140 |
-
function boundFn (a) {
|
5141 |
-
var l = arguments.length;
|
5142 |
-
return l
|
5143 |
-
? l > 1
|
5144 |
-
? fn.apply(ctx, arguments)
|
5145 |
-
: fn.call(ctx, a)
|
5146 |
-
: fn.call(ctx)
|
5147 |
-
}
|
5148 |
-
|
5149 |
-
boundFn._length = fn.length;
|
5150 |
-
return boundFn
|
5151 |
-
}
|
5152 |
-
|
5153 |
-
function nativeBind (fn, ctx) {
|
5154 |
-
return fn.bind(ctx)
|
5155 |
-
}
|
5156 |
-
|
5157 |
-
var bind = Function.prototype.bind
|
5158 |
-
? nativeBind
|
5159 |
-
: polyfillBind;
|
5160 |
-
|
5161 |
-
/**
|
5162 |
-
* Convert an Array-like object to a real Array.
|
5163 |
-
*/
|
5164 |
-
function toArray (list, start) {
|
5165 |
-
start = start || 0;
|
5166 |
-
var i = list.length - start;
|
5167 |
-
var ret = new Array(i);
|
5168 |
-
while (i--) {
|
5169 |
-
ret[i] = list[i + start];
|
5170 |
-
}
|
5171 |
-
return ret
|
5172 |
-
}
|
5173 |
-
|
5174 |
-
/**
|
5175 |
-
* Mix properties into target object.
|
5176 |
-
*/
|
5177 |
-
function extend (to, _from) {
|
5178 |
-
for (var key in _from) {
|
5179 |
-
to[key] = _from[key];
|
5180 |
-
}
|
5181 |
-
return to
|
5182 |
-
}
|
5183 |
-
|
5184 |
-
/**
|
5185 |
-
* Merge an Array of Objects into a single Object.
|
5186 |
-
*/
|
5187 |
-
function toObject (arr) {
|
5188 |
-
var res = {};
|
5189 |
-
for (var i = 0; i < arr.length; i++) {
|
5190 |
-
if (arr[i]) {
|
5191 |
-
extend(res, arr[i]);
|
5192 |
-
}
|
5193 |
-
}
|
5194 |
-
return res
|
5195 |
-
}
|
5196 |
-
|
5197 |
-
/**
|
5198 |
-
* Perform no operation.
|
5199 |
-
* Stubbing args to make Flow happy without leaving useless transpiled code
|
5200 |
-
* with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/)
|
5201 |
-
*/
|
5202 |
-
function noop (a, b, c) {}
|
5203 |
-
|
5204 |
-
/**
|
5205 |
-
* Always return false.
|
5206 |
-
*/
|
5207 |
-
var no = function (a, b, c) { return false; };
|
5208 |
-
|
5209 |
-
/**
|
5210 |
-
* Return same value
|
5211 |
-
*/
|
5212 |
-
var identity = function (_) { return _; };
|
5213 |
-
|
5214 |
-
/**
|
5215 |
-
* Generate a static keys string from compiler modules.
|
5216 |
-
*/
|
5217 |
-
function genStaticKeys (modules) {
|
5218 |
-
return modules.reduce(function (keys, m) {
|
5219 |
-
return keys.concat(m.staticKeys || [])
|
5220 |
-
}, []).join(',')
|
5221 |
-
}
|
5222 |
-
|
5223 |
-
/**
|
5224 |
-
* Check if two values are loosely equal - that is,
|
5225 |
-
* if they are plain objects, do they have the same shape?
|
5226 |
-
*/
|
5227 |
-
function looseEqual (a, b) {
|
5228 |
-
if (a === b) { return true }
|
5229 |
-
var isObjectA = isObject(a);
|
5230 |
-
var isObjectB = isObject(b);
|
5231 |
-
if (isObjectA && isObjectB) {
|
5232 |
-
try {
|
5233 |
-
var isArrayA = Array.isArray(a);
|
5234 |
-
var isArrayB = Array.isArray(b);
|
5235 |
-
if (isArrayA && isArrayB) {
|
5236 |
-
return a.length === b.length && a.every(function (e, i) {
|
5237 |
-
return looseEqual(e, b[i])
|
5238 |
-
})
|
5239 |
-
} else if (!isArrayA && !isArrayB) {
|
5240 |
-
var keysA = Object.keys(a);
|
5241 |
-
var keysB = Object.keys(b);
|
5242 |
-
return keysA.length === keysB.length && keysA.every(function (key) {
|
5243 |
-
return looseEqual(a[key], b[key])
|
5244 |
-
})
|
5245 |
-
} else {
|
5246 |
-
/* istanbul ignore next */
|
5247 |
-
return false
|
5248 |
-
}
|
5249 |
-
} catch (e) {
|
5250 |
-
/* istanbul ignore next */
|
5251 |
-
return false
|
5252 |
-
}
|
5253 |
-
} else if (!isObjectA && !isObjectB) {
|
5254 |
-
return String(a) === String(b)
|
5255 |
-
} else {
|
5256 |
-
return false
|
5257 |
-
}
|
5258 |
-
}
|
5259 |
-
|
5260 |
-
function looseIndexOf (arr, val) {
|
5261 |
-
for (var i = 0; i < arr.length; i++) {
|
5262 |
-
if (looseEqual(arr[i], val)) { return i }
|
5263 |
-
}
|
5264 |
-
return -1
|
5265 |
-
}
|
5266 |
-
|
5267 |
-
/**
|
5268 |
-
* Ensure a function is called only once.
|
5269 |
-
*/
|
5270 |
-
function once (fn) {
|
5271 |
-
var called = false;
|
5272 |
-
return function () {
|
5273 |
-
if (!called) {
|
5274 |
-
called = true;
|
5275 |
-
fn.apply(this, arguments);
|
5276 |
-
}
|
5277 |
-
}
|
5278 |
-
}
|
5279 |
-
|
5280 |
-
var SSR_ATTR = 'data-server-rendered';
|
5281 |
-
|
5282 |
-
var ASSET_TYPES = [
|
5283 |
-
'component',
|
5284 |
-
'directive',
|
5285 |
-
'filter'
|
5286 |
-
];
|
5287 |
-
|
5288 |
-
var LIFECYCLE_HOOKS = [
|
5289 |
-
'beforeCreate',
|
5290 |
-
'created',
|
5291 |
-
'beforeMount',
|
5292 |
-
'mounted',
|
5293 |
-
'beforeUpdate',
|
5294 |
-
'updated',
|
5295 |
-
'beforeDestroy',
|
5296 |
-
'destroyed',
|
5297 |
-
'activated',
|
5298 |
-
'deactivated',
|
5299 |
-
'errorCaptured'
|
5300 |
-
];
|
5301 |
-
|
5302 |
-
/* */
|
5303 |
-
|
5304 |
-
var config = ({
|
5305 |
-
/**
|
5306 |
-
* Option merge strategies (used in core/util/options)
|
5307 |
-
*/
|
5308 |
-
// $flow-disable-line
|
5309 |
-
optionMergeStrategies: Object.create(null),
|
5310 |
-
|
5311 |
-
/**
|
5312 |
-
* Whether to suppress warnings.
|
5313 |
-
*/
|
5314 |
-
silent: false,
|
5315 |
-
|
5316 |
-
/**
|
5317 |
-
* Show production mode tip message on boot?
|
5318 |
-
*/
|
5319 |
-
productionTip: process.env.NODE_ENV !== 'production',
|
5320 |
-
|
5321 |
-
/**
|
5322 |
-
* Whether to enable devtools
|
5323 |
-
*/
|
5324 |
-
devtools: process.env.NODE_ENV !== 'production',
|
5325 |
-
|
5326 |
-
/**
|
5327 |
-
* Whether to record perf
|
5328 |
-
*/
|
5329 |
-
performance: false,
|
5330 |
-
|
5331 |
-
/**
|
5332 |
-
* Error handler for watcher errors
|
5333 |
-
*/
|
5334 |
-
errorHandler: null,
|
5335 |
-
|
5336 |
-
/**
|
5337 |
-
* Warn handler for watcher warns
|
5338 |
-
*/
|
5339 |
-
warnHandler: null,
|
5340 |
-
|
5341 |
-
/**
|
5342 |
-
* Ignore certain custom elements
|
5343 |
-
*/
|
5344 |
-
ignoredElements: [],
|
5345 |
-
|
5346 |
-
/**
|
5347 |
-
* Custom user key aliases for v-on
|
5348 |
-
*/
|
5349 |
-
// $flow-disable-line
|
5350 |
-
keyCodes: Object.create(null),
|
5351 |
-
|
5352 |
-
/**
|
5353 |
-
* Check if a tag is reserved so that it cannot be registered as a
|
5354 |
-
* component. This is platform-dependent and may be overwritten.
|
5355 |
-
*/
|
5356 |
-
isReservedTag: no,
|
5357 |
-
|
5358 |
-
/**
|
5359 |
-
* Check if an attribute is reserved so that it cannot be used as a component
|
5360 |
-
* prop. This is platform-dependent and may be overwritten.
|
5361 |
-
*/
|
5362 |
-
isReservedAttr: no,
|
5363 |
-
|
5364 |
-
/**
|
5365 |
-
* Check if a tag is an unknown element.
|
5366 |
-
* Platform-dependent.
|
5367 |
-
*/
|
5368 |
-
isUnknownElement: no,
|
5369 |
-
|
5370 |
-
/**
|
5371 |
-
* Get the namespace of an element
|
5372 |
-
*/
|
5373 |
-
getTagNamespace: noop,
|
5374 |
-
|
5375 |
-
/**
|
5376 |
-
* Parse the real tag name for the specific platform.
|
5377 |
-
*/
|
5378 |
-
parsePlatformTagName: identity,
|
5379 |
-
|
5380 |
-
/**
|
5381 |
-
* Check if an attribute must be bound using property, e.g. value
|
5382 |
-
* Platform-dependent.
|
5383 |
-
*/
|
5384 |
-
mustUseProp: no,
|
5385 |
-
|
5386 |
-
/**
|
5387 |
-
* Exposed for legacy reasons
|
5388 |
-
*/
|
5389 |
-
_lifecycleHooks: LIFECYCLE_HOOKS
|
5390 |
-
})
|
5391 |
-
|
5392 |
-
/* */
|
5393 |
-
|
5394 |
-
/**
|
5395 |
-
* Check if a string starts with $ or _
|
5396 |
-
*/
|
5397 |
-
function isReserved (str) {
|
5398 |
-
var c = (str + '').charCodeAt(0);
|
5399 |
-
return c === 0x24 || c === 0x5F
|
5400 |
-
}
|
5401 |
-
|
5402 |
-
/**
|
5403 |
-
* Define a property.
|
5404 |
-
*/
|
5405 |
-
function def (obj, key, val, enumerable) {
|
5406 |
-
Object.defineProperty(obj, key, {
|
5407 |
-
value: val,
|
5408 |
-
enumerable: !!enumerable,
|
5409 |
-
writable: true,
|
5410 |
-
configurable: true
|
5411 |
-
});
|
5412 |
-
}
|
5413 |
-
|
5414 |
-
/**
|
5415 |
-
* Parse simple path.
|
5416 |
-
*/
|
5417 |
-
var bailRE = /[^\w.$]/;
|
5418 |
-
function parsePath (path) {
|
5419 |
-
if (bailRE.test(path)) {
|
5420 |
-
return
|
5421 |
-
}
|
5422 |
-
var segments = path.split('.');
|
5423 |
-
return function (obj) {
|
5424 |
-
for (var i = 0; i < segments.length; i++) {
|
5425 |
-
if (!obj) { return }
|
5426 |
-
obj = obj[segments[i]];
|
5427 |
-
}
|
5428 |
-
return obj
|
5429 |
-
}
|
5430 |
-
}
|
5431 |
-
|
5432 |
-
/* */
|
5433 |
-
|
5434 |
-
// can we use __proto__?
|
5435 |
-
var hasProto = '__proto__' in {};
|
5436 |
-
|
5437 |
-
// Browser environment sniffing
|
5438 |
-
var inBrowser = typeof window !== 'undefined';
|
5439 |
-
var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
|
5440 |
-
var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
|
5441 |
-
var UA = inBrowser && window.navigator.userAgent.toLowerCase();
|
5442 |
-
var isIE = UA && /msie|trident/.test(UA);
|
5443 |
-
var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
|
5444 |
-
var isEdge = UA && UA.indexOf('edge/') > 0;
|
5445 |
-
var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
|
5446 |
-
var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
|
5447 |
-
var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
|
5448 |
-
|
5449 |
-
// Firefox has a "watch" function on Object.prototype...
|
5450 |
-
var nativeWatch = ({}).watch;
|
5451 |
-
|
5452 |
-
var supportsPassive = false;
|
5453 |
-
if (inBrowser) {
|
5454 |
-
try {
|
5455 |
-
var opts = {};
|
5456 |
-
Object.defineProperty(opts, 'passive', ({
|
5457 |
-
get: function get () {
|
5458 |
-
/* istanbul ignore next */
|
5459 |
-
supportsPassive = true;
|
5460 |
-
}
|
5461 |
-
})); // https://github.com/facebook/flow/issues/285
|
5462 |
-
window.addEventListener('test-passive', null, opts);
|
5463 |
-
} catch (e) {}
|
5464 |
-
}
|
5465 |
-
|
5466 |
-
// this needs to be lazy-evaled because vue may be required before
|
5467 |
-
// vue-server-renderer can set VUE_ENV
|
5468 |
-
var _isServer;
|
5469 |
-
var isServerRendering = function () {
|
5470 |
-
if (_isServer === undefined) {
|
5471 |
-
/* istanbul ignore if */
|
5472 |
-
if (!inBrowser && !inWeex && typeof global !== 'undefined') {
|
5473 |
-
// detect presence of vue-server-renderer and avoid
|
5474 |
-
// Webpack shimming the process
|
5475 |
-
_isServer = global['process'].env.VUE_ENV === 'server';
|
5476 |
-
} else {
|
5477 |
-
_isServer = false;
|
5478 |
-
}
|
5479 |
-
}
|
5480 |
-
return _isServer
|
5481 |
-
};
|
5482 |
-
|
5483 |
-
// detect devtools
|
5484 |
-
var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
5485 |
-
|
5486 |
-
/* istanbul ignore next */
|
5487 |
-
function isNative (Ctor) {
|
5488 |
-
return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
|
5489 |
-
}
|
5490 |
-
|
5491 |
-
var hasSymbol =
|
5492 |
-
typeof Symbol !== 'undefined' && isNative(Symbol) &&
|
5493 |
-
typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
|
5494 |
-
|
5495 |
-
var _Set;
|
5496 |
-
/* istanbul ignore if */ // $flow-disable-line
|
5497 |
-
if (typeof Set !== 'undefined' && isNative(Set)) {
|
5498 |
-
// use native Set when available.
|
5499 |
-
_Set = Set;
|
5500 |
-
} else {
|
5501 |
-
// a non-standard Set polyfill that only works with primitive keys.
|
5502 |
-
_Set = (function () {
|
5503 |
-
function Set () {
|
5504 |
-
this.set = Object.create(null);
|
5505 |
-
}
|
5506 |
-
Set.prototype.has = function has (key) {
|
5507 |
-
return this.set[key] === true
|
5508 |
-
};
|
5509 |
-
Set.prototype.add = function add (key) {
|
5510 |
-
this.set[key] = true;
|
5511 |
-
};
|
5512 |
-
Set.prototype.clear = function clear () {
|
5513 |
-
this.set = Object.create(null);
|
5514 |
-
};
|
5515 |
-
|
5516 |
-
return Set;
|
5517 |
-
}());
|
5518 |
-
}
|
5519 |
-
|
5520 |
-
/* */
|
5521 |
-
|
5522 |
-
var warn = noop;
|
5523 |
-
var tip = noop;
|
5524 |
-
var generateComponentTrace = (noop); // work around flow check
|
5525 |
-
var formatComponentName = (noop);
|
5526 |
-
|
5527 |
-
if (process.env.NODE_ENV !== 'production') {
|
5528 |
-
var hasConsole = typeof console !== 'undefined';
|
5529 |
-
var classifyRE = /(?:^|[-_])(\w)/g;
|
5530 |
-
var classify = function (str) { return str
|
5531 |
-
.replace(classifyRE, function (c) { return c.toUpperCase(); })
|
5532 |
-
.replace(/[-_]/g, ''); };
|
5533 |
-
|
5534 |
-
warn = function (msg, vm) {
|
5535 |
-
var trace = vm ? generateComponentTrace(vm) : '';
|
5536 |
-
|
5537 |
-
if (config.warnHandler) {
|
5538 |
-
config.warnHandler.call(null, msg, vm, trace);
|
5539 |
-
} else if (hasConsole && (!config.silent)) {
|
5540 |
-
console.error(("[Vue warn]: " + msg + trace));
|
5541 |
-
}
|
5542 |
-
};
|
5543 |
-
|
5544 |
-
tip = function (msg, vm) {
|
5545 |
-
if (hasConsole && (!config.silent)) {
|
5546 |
-
console.warn("[Vue tip]: " + msg + (
|
5547 |
-
vm ? generateComponentTrace(vm) : ''
|
5548 |
-
));
|
5549 |
-
}
|
5550 |
-
};
|
5551 |
-
|
5552 |
-
formatComponentName = function (vm, includeFile) {
|
5553 |
-
if (vm.$root === vm) {
|
5554 |
-
return '<Root>'
|
5555 |
-
}
|
5556 |
-
var options = typeof vm === 'function' && vm.cid != null
|
5557 |
-
? vm.options
|
5558 |
-
: vm._isVue
|
5559 |
-
? vm.$options || vm.constructor.options
|
5560 |
-
: vm || {};
|
5561 |
-
var name = options.name || options._componentTag;
|
5562 |
-
var file = options.__file;
|
5563 |
-
if (!name && file) {
|
5564 |
-
var match = file.match(/([^/\\]+)\.vue$/);
|
5565 |
-
name = match && match[1];
|
5566 |
-
}
|
5567 |
-
|
5568 |
-
return (
|
5569 |
-
(name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
|
5570 |
-
(file && includeFile !== false ? (" at " + file) : '')
|
5571 |
-
)
|
5572 |
-
};
|
5573 |
-
|
5574 |
-
var repeat = function (str, n) {
|
5575 |
-
var res = '';
|
5576 |
-
while (n) {
|
5577 |
-
if (n % 2 === 1) { res += str; }
|
5578 |
-
if (n > 1) { str += str; }
|
5579 |
-
n >>= 1;
|
5580 |
-
}
|
5581 |
-
return res
|
5582 |
-
};
|
5583 |
-
|
5584 |
-
generateComponentTrace = function (vm) {
|
5585 |
-
if (vm._isVue && vm.$parent) {
|
5586 |
-
var tree = [];
|
5587 |
-
var currentRecursiveSequence = 0;
|
5588 |
-
while (vm) {
|
5589 |
-
if (tree.length > 0) {
|
5590 |
-
var last = tree[tree.length - 1];
|
5591 |
-
if (last.constructor === vm.constructor) {
|
5592 |
-
currentRecursiveSequence++;
|
5593 |
-
vm = vm.$parent;
|
5594 |
-
continue
|
5595 |
-
} else if (currentRecursiveSequence > 0) {
|
5596 |
-
tree[tree.length - 1] = [last, currentRecursiveSequence];
|
5597 |
-
currentRecursiveSequence = 0;
|
5598 |
-
}
|
5599 |
-
}
|
5600 |
-
tree.push(vm);
|
5601 |
-
vm = vm.$parent;
|
5602 |
-
}
|
5603 |
-
return '\n\nfound in\n\n' + tree
|
5604 |
-
.map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
|
5605 |
-
? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
|
5606 |
-
: formatComponentName(vm))); })
|
5607 |
-
.join('\n')
|
5608 |
-
} else {
|
5609 |
-
return ("\n\n(found in " + (formatComponentName(vm)) + ")")
|
5610 |
-
}
|
5611 |
-
};
|
5612 |
-
}
|
5613 |
-
|
5614 |
-
/* */
|
5615 |
-
|
5616 |
-
|
5617 |
-
var uid = 0;
|
5618 |
-
|
5619 |
-
/**
|
5620 |
-
* A dep is an observable that can have multiple
|
5621 |
-
* directives subscribing to it.
|
5622 |
-
*/
|
5623 |
-
var Dep = function Dep () {
|
5624 |
-
this.id = uid++;
|
5625 |
-
this.subs = [];
|
5626 |
-
};
|
5627 |
-
|
5628 |
-
Dep.prototype.addSub = function addSub (sub) {
|
5629 |
-
this.subs.push(sub);
|
5630 |
-
};
|
5631 |
-
|
5632 |
-
Dep.prototype.removeSub = function removeSub (sub) {
|
5633 |
-
remove(this.subs, sub);
|
5634 |
-
};
|
5635 |
-
|
5636 |
-
Dep.prototype.depend = function depend () {
|
5637 |
-
if (Dep.target) {
|
5638 |
-
Dep.target.addDep(this);
|
5639 |
-
}
|
5640 |
-
};
|
5641 |
-
|
5642 |
-
Dep.prototype.notify = function notify () {
|
5643 |
-
// stabilize the subscriber list first
|
5644 |
-
var subs = this.subs.slice();
|
5645 |
-
for (var i = 0, l = subs.length; i < l; i++) {
|
5646 |
-
subs[i].update();
|
5647 |
-
}
|
5648 |
-
};
|
5649 |
-
|
5650 |
-
// the current target watcher being evaluated.
|
5651 |
-
// this is globally unique because there could be only one
|
5652 |
-
// watcher being evaluated at any time.
|
5653 |
-
Dep.target = null;
|
5654 |
-
var targetStack = [];
|
5655 |
-
|
5656 |
-
function pushTarget (_target) {
|
5657 |
-
if (Dep.target) { targetStack.push(Dep.target); }
|
5658 |
-
Dep.target = _target;
|
5659 |
-
}
|
5660 |
-
|
5661 |
-
function popTarget () {
|
5662 |
-
Dep.target = targetStack.pop();
|
5663 |
-
}
|
5664 |
-
|
5665 |
-
/* */
|
5666 |
-
|
5667 |
-
var VNode = function VNode (
|
5668 |
-
tag,
|
5669 |
-
data,
|
5670 |
-
children,
|
5671 |
-
text,
|
5672 |
-
elm,
|
5673 |
-
context,
|
5674 |
-
componentOptions,
|
5675 |
-
asyncFactory
|
5676 |
-
) {
|
5677 |
-
this.tag = tag;
|
5678 |
-
this.data = data;
|
5679 |
-
this.children = children;
|
5680 |
-
this.text = text;
|
5681 |
-
this.elm = elm;
|
5682 |
-
this.ns = undefined;
|
5683 |
-
this.context = context;
|
5684 |
-
this.fnContext = undefined;
|
5685 |
-
this.fnOptions = undefined;
|
5686 |
-
this.fnScopeId = undefined;
|
5687 |
-
this.key = data && data.key;
|
5688 |
-
this.componentOptions = componentOptions;
|
5689 |
-
this.componentInstance = undefined;
|
5690 |
-
this.parent = undefined;
|
5691 |
-
this.raw = false;
|
5692 |
-
this.isStatic = false;
|
5693 |
-
this.isRootInsert = true;
|
5694 |
-
this.isComment = false;
|
5695 |
-
this.isCloned = false;
|
5696 |
-
this.isOnce = false;
|
5697 |
-
this.asyncFactory = asyncFactory;
|
5698 |
-
this.asyncMeta = undefined;
|
5699 |
-
this.isAsyncPlaceholder = false;
|
5700 |
-
};
|
5701 |
-
|
5702 |
-
var prototypeAccessors = { child: { configurable: true } };
|
5703 |
-
|
5704 |
-
// DEPRECATED: alias for componentInstance for backwards compat.
|
5705 |
-
/* istanbul ignore next */
|
5706 |
-
prototypeAccessors.child.get = function () {
|
5707 |
-
return this.componentInstance
|
5708 |
-
};
|
5709 |
-
|
5710 |
-
Object.defineProperties( VNode.prototype, prototypeAccessors );
|
5711 |
-
|
5712 |
-
var createEmptyVNode = function (text) {
|
5713 |
-
if ( text === void 0 ) text = '';
|
5714 |
-
|
5715 |
-
var node = new VNode();
|
5716 |
-
node.text = text;
|
5717 |
-
node.isComment = true;
|
5718 |
-
return node
|
5719 |
-
};
|
5720 |
-
|
5721 |
-
function createTextVNode (val) {
|
5722 |
-
return new VNode(undefined, undefined, undefined, String(val))
|
5723 |
-
}
|
5724 |
-
|
5725 |
-
// optimized shallow clone
|
5726 |
-
// used for static nodes and slot nodes because they may be reused across
|
5727 |
-
// multiple renders, cloning them avoids errors when DOM manipulations rely
|
5728 |
-
// on their elm reference.
|
5729 |
-
function cloneVNode (vnode) {
|
5730 |
-
var cloned = new VNode(
|
5731 |
-
vnode.tag,
|
5732 |
-
vnode.data,
|
5733 |
-
vnode.children,
|
5734 |
-
vnode.text,
|
5735 |
-
vnode.elm,
|
5736 |
-
vnode.context,
|
5737 |
-
vnode.componentOptions,
|
5738 |
-
vnode.asyncFactory
|
5739 |
-
);
|
5740 |
-
cloned.ns = vnode.ns;
|
5741 |
-
cloned.isStatic = vnode.isStatic;
|
5742 |
-
cloned.key = vnode.key;
|
5743 |
-
cloned.isComment = vnode.isComment;
|
5744 |
-
cloned.fnContext = vnode.fnContext;
|
5745 |
-
cloned.fnOptions = vnode.fnOptions;
|
5746 |
-
cloned.fnScopeId = vnode.fnScopeId;
|
5747 |
-
cloned.isCloned = true;
|
5748 |
-
return cloned
|
5749 |
-
}
|
5750 |
-
|
5751 |
-
/*
|
5752 |
-
* not type checking this file because flow doesn't play well with
|
5753 |
-
* dynamically accessing methods on Array prototype
|
5754 |
-
*/
|
5755 |
-
|
5756 |
-
var arrayProto = Array.prototype;
|
5757 |
-
var arrayMethods = Object.create(arrayProto);
|
5758 |
-
|
5759 |
-
var methodsToPatch = [
|
5760 |
-
'push',
|
5761 |
-
'pop',
|
5762 |
-
'shift',
|
5763 |
-
'unshift',
|
5764 |
-
'splice',
|
5765 |
-
'sort',
|
5766 |
-
'reverse'
|
5767 |
-
];
|
5768 |
-
|
5769 |
-
/**
|
5770 |
-
* Intercept mutating methods and emit events
|
5771 |
-
*/
|
5772 |
-
methodsToPatch.forEach(function (method) {
|
5773 |
-
// cache original method
|
5774 |
-
var original = arrayProto[method];
|
5775 |
-
def(arrayMethods, method, function mutator () {
|
5776 |
-
var args = [], len = arguments.length;
|
5777 |
-
while ( len-- ) args[ len ] = arguments[ len ];
|
5778 |
-
|
5779 |
-
var result = original.apply(this, args);
|
5780 |
-
var ob = this.__ob__;
|
5781 |
-
var inserted;
|
5782 |
-
switch (method) {
|
5783 |
-
case 'push':
|
5784 |
-
case 'unshift':
|
5785 |
-
inserted = args;
|
5786 |
-
break
|
5787 |
-
case 'splice':
|
5788 |
-
inserted = args.slice(2);
|
5789 |
-
break
|
5790 |
-
}
|
5791 |
-
if (inserted) { ob.observeArray(inserted); }
|
5792 |
-
// notify change
|
5793 |
-
ob.dep.notify();
|
5794 |
-
return result
|
5795 |
-
});
|
5796 |
-
});
|
5797 |
-
|
5798 |
-
/* */
|
5799 |
-
|
5800 |
-
var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
|
5801 |
-
|
5802 |
-
/**
|
5803 |
-
* In some cases we may want to disable observation inside a component's
|
5804 |
-
* update computation.
|
5805 |
-
*/
|
5806 |
-
var shouldObserve = true;
|
5807 |
-
|
5808 |
-
function toggleObserving (value) {
|
5809 |
-
shouldObserve = value;
|
5810 |
-
}
|
5811 |
-
|
5812 |
-
/**
|
5813 |
-
* Observer class that is attached to each observed
|
5814 |
-
* object. Once attached, the observer converts the target
|
5815 |
-
* object's property keys into getter/setters that
|
5816 |
-
* collect dependencies and dispatch updates.
|
5817 |
-
*/
|
5818 |
-
var Observer = function Observer (value) {
|
5819 |
-
this.value = value;
|
5820 |
-
this.dep = new Dep();
|
5821 |
-
this.vmCount = 0;
|
5822 |
-
def(value, '__ob__', this);
|
5823 |
-
if (Array.isArray(value)) {
|
5824 |
-
var augment = hasProto
|
5825 |
-
? protoAugment
|
5826 |
-
: copyAugment;
|
5827 |
-
augment(value, arrayMethods, arrayKeys);
|
5828 |
-
this.observeArray(value);
|
5829 |
-
} else {
|
5830 |
-
this.walk(value);
|
5831 |
-
}
|
5832 |
-
};
|
5833 |
-
|
5834 |
-
/**
|
5835 |
-
* Walk through each property and convert them into
|
5836 |
-
* getter/setters. This method should only be called when
|
5837 |
-
* value type is Object.
|
5838 |
-
*/
|
5839 |
-
Observer.prototype.walk = function walk (obj) {
|
5840 |
-
var keys = Object.keys(obj);
|
5841 |
-
for (var i = 0; i < keys.length; i++) {
|
5842 |
-
defineReactive(obj, keys[i]);
|
5843 |
-
}
|
5844 |
-
};
|
5845 |
-
|
5846 |
-
/**
|
5847 |
-
* Observe a list of Array items.
|
5848 |
-
*/
|
5849 |
-
Observer.prototype.observeArray = function observeArray (items) {
|
5850 |
-
for (var i = 0, l = items.length; i < l; i++) {
|
5851 |
-
observe(items[i]);
|
5852 |
-
}
|
5853 |
-
};
|
5854 |
-
|
5855 |
-
// helpers
|
5856 |
-
|
5857 |
-
/**
|
5858 |
-
* Augment an target Object or Array by intercepting
|
5859 |
-
* the prototype chain using __proto__
|
5860 |
-
*/
|
5861 |
-
function protoAugment (target, src, keys) {
|
5862 |
-
/* eslint-disable no-proto */
|
5863 |
-
target.__proto__ = src;
|
5864 |
-
/* eslint-enable no-proto */
|
5865 |
-
}
|
5866 |
-
|
5867 |
-
/**
|
5868 |
-
* Augment an target Object or Array by defining
|
5869 |
-
* hidden properties.
|
5870 |
-
*/
|
5871 |
-
/* istanbul ignore next */
|
5872 |
-
function copyAugment (target, src, keys) {
|
5873 |
-
for (var i = 0, l = keys.length; i < l; i++) {
|
5874 |
-
var key = keys[i];
|
5875 |
-
def(target, key, src[key]);
|
5876 |
-
}
|
5877 |
-
}
|
5878 |
-
|
5879 |
-
/**
|
5880 |
-
* Attempt to create an observer instance for a value,
|
5881 |
-
* returns the new observer if successfully observed,
|
5882 |
-
* or the existing observer if the value already has one.
|
5883 |
-
*/
|
5884 |
-
function observe (value, asRootData) {
|
5885 |
-
if (!isObject(value) || value instanceof VNode) {
|
5886 |
-
return
|
5887 |
-
}
|
5888 |
-
var ob;
|
5889 |
-
if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
|
5890 |
-
ob = value.__ob__;
|
5891 |
-
} else if (
|
5892 |
-
shouldObserve &&
|
5893 |
-
!isServerRendering() &&
|
5894 |
-
(Array.isArray(value) || isPlainObject(value)) &&
|
5895 |
-
Object.isExtensible(value) &&
|
5896 |
-
!value._isVue
|
5897 |
-
) {
|
5898 |
-
ob = new Observer(value);
|
5899 |
-
}
|
5900 |
-
if (asRootData && ob) {
|
5901 |
-
ob.vmCount++;
|
5902 |
-
}
|
5903 |
-
return ob
|
5904 |
-
}
|
5905 |
-
|
5906 |
-
/**
|
5907 |
-
* Define a reactive property on an Object.
|
5908 |
-
*/
|
5909 |
-
function defineReactive (
|
5910 |
-
obj,
|
5911 |
-
key,
|
5912 |
-
val,
|
5913 |
-
customSetter,
|
5914 |
-
shallow
|
5915 |
-
) {
|
5916 |
-
var dep = new Dep();
|
5917 |
-
|
5918 |
-
var property = Object.getOwnPropertyDescriptor(obj, key);
|
5919 |
-
if (property && property.configurable === false) {
|
5920 |
-
return
|
5921 |
-
}
|
5922 |
-
|
5923 |
-
// cater for pre-defined getter/setters
|
5924 |
-
var getter = property && property.get;
|
5925 |
-
if (!getter && arguments.length === 2) {
|
5926 |
-
val = obj[key];
|
5927 |
-
}
|
5928 |
-
var setter = property && property.set;
|
5929 |
-
|
5930 |
-
var childOb = !shallow && observe(val);
|
5931 |
-
Object.defineProperty(obj, key, {
|
5932 |
-
enumerable: true,
|
5933 |
-
configurable: true,
|
5934 |
-
get: function reactiveGetter () {
|
5935 |
-
var value = getter ? getter.call(obj) : val;
|
5936 |
-
if (Dep.target) {
|
5937 |
-
dep.depend();
|
5938 |
-
if (childOb) {
|
5939 |
-
childOb.dep.depend();
|
5940 |
-
if (Array.isArray(value)) {
|
5941 |
-
dependArray(value);
|
5942 |
-
}
|
5943 |
-
}
|
5944 |
-
}
|
5945 |
-
return value
|
5946 |
-
},
|
5947 |
-
set: function reactiveSetter (newVal) {
|
5948 |
-
var value = getter ? getter.call(obj) : val;
|
5949 |
-
/* eslint-disable no-self-compare */
|
5950 |
-
if (newVal === value || (newVal !== newVal && value !== value)) {
|
5951 |
-
return
|
5952 |
-
}
|
5953 |
-
/* eslint-enable no-self-compare */
|
5954 |
-
if (process.env.NODE_ENV !== 'production' && customSetter) {
|
5955 |
-
customSetter();
|
5956 |
-
}
|
5957 |
-
if (setter) {
|
5958 |
-
setter.call(obj, newVal);
|
5959 |
-
} else {
|
5960 |
-
val = newVal;
|
5961 |
-
}
|
5962 |
-
childOb = !shallow && observe(newVal);
|
5963 |
-
dep.notify();
|
5964 |
-
}
|
5965 |
-
});
|
5966 |
-
}
|
5967 |
-
|
5968 |
-
/**
|
5969 |
-
* Set a property on an object. Adds the new property and
|
5970 |
-
* triggers change notification if the property doesn't
|
5971 |
-
* already exist.
|
5972 |
-
*/
|
5973 |
-
function set (target, key, val) {
|
5974 |
-
if (process.env.NODE_ENV !== 'production' &&
|
5975 |
-
(isUndef(target) || isPrimitive(target))
|
5976 |
-
) {
|
5977 |
-
warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
|
5978 |
-
}
|
5979 |
-
if (Array.isArray(target) && isValidArrayIndex(key)) {
|
5980 |
-
target.length = Math.max(target.length, key);
|
5981 |
-
target.splice(key, 1, val);
|
5982 |
-
return val
|
5983 |
-
}
|
5984 |
-
if (key in target && !(key in Object.prototype)) {
|
5985 |
-
target[key] = val;
|
5986 |
-
return val
|
5987 |
-
}
|
5988 |
-
var ob = (target).__ob__;
|
5989 |
-
if (target._isVue || (ob && ob.vmCount)) {
|
5990 |
-
process.env.NODE_ENV !== 'production' && warn(
|
5991 |
-
'Avoid adding reactive properties to a Vue instance or its root $data ' +
|
5992 |
-
'at runtime - declare it upfront in the data option.'
|
5993 |
-
);
|
5994 |
-
return val
|
5995 |
-
}
|
5996 |
-
if (!ob) {
|
5997 |
-
target[key] = val;
|
5998 |
-
return val
|
5999 |
-
}
|
6000 |
-
defineReactive(ob.value, key, val);
|
6001 |
-
ob.dep.notify();
|
6002 |
-
return val
|
6003 |
-
}
|
6004 |
-
|
6005 |
-
/**
|
6006 |
-
* Delete a property and trigger change if necessary.
|
6007 |
-
*/
|
6008 |
-
function del (target, key) {
|
6009 |
-
if (process.env.NODE_ENV !== 'production' &&
|
6010 |
-
(isUndef(target) || isPrimitive(target))
|
6011 |
-
) {
|
6012 |
-
warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
|
6013 |
-
}
|
6014 |
-
if (Array.isArray(target) && isValidArrayIndex(key)) {
|
6015 |
-
target.splice(key, 1);
|
6016 |
-
return
|
6017 |
-
}
|
6018 |
-
var ob = (target).__ob__;
|
6019 |
-
if (target._isVue || (ob && ob.vmCount)) {
|
6020 |
-
process.env.NODE_ENV !== 'production' && warn(
|
6021 |
-
'Avoid deleting properties on a Vue instance or its root $data ' +
|
6022 |
-
'- just set it to null.'
|
6023 |
-
);
|
6024 |
-
return
|
6025 |
-
}
|
6026 |
-
if (!hasOwn(target, key)) {
|
6027 |
-
return
|
6028 |
-
}
|
6029 |
-
delete target[key];
|
6030 |
-
if (!ob) {
|
6031 |
-
return
|
6032 |
-
}
|
6033 |
-
ob.dep.notify();
|
6034 |
-
}
|
6035 |
-
|
6036 |
-
/**
|
6037 |
-
* Collect dependencies on array elements when the array is touched, since
|
6038 |
-
* we cannot intercept array element access like property getters.
|
6039 |
-
*/
|
6040 |
-
function dependArray (value) {
|
6041 |
-
for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
|
6042 |
-
e = value[i];
|
6043 |
-
e && e.__ob__ && e.__ob__.dep.depend();
|
6044 |
-
if (Array.isArray(e)) {
|
6045 |
-
dependArray(e);
|
6046 |
-
}
|
6047 |
-
}
|
6048 |
-
}
|
6049 |
-
|
6050 |
-
/* */
|
6051 |
-
|
6052 |
-
/**
|
6053 |
-
* Option overwriting strategies are functions that handle
|
6054 |
-
* how to merge a parent option value and a child option
|
6055 |
-
* value into the final value.
|
6056 |
-
*/
|
6057 |
-
var strats = config.optionMergeStrategies;
|
6058 |
-
|
6059 |
-
/**
|
6060 |
-
* Options with restrictions
|
6061 |
-
*/
|
6062 |
-
if (process.env.NODE_ENV !== 'production') {
|
6063 |
-
strats.el = strats.propsData = function (parent, child, vm, key) {
|
6064 |
-
if (!vm) {
|
6065 |
-
warn(
|
6066 |
-
"option \"" + key + "\" can only be used during instance " +
|
6067 |
-
'creation with the `new` keyword.'
|
6068 |
-
);
|
6069 |
-
}
|
6070 |
-
return defaultStrat(parent, child)
|
6071 |
-
};
|
6072 |
-
}
|
6073 |
-
|
6074 |
-
/**
|
6075 |
-
* Helper that recursively merges two data objects together.
|
6076 |
-
*/
|
6077 |
-
function mergeData (to, from) {
|
6078 |
-
if (!from) { return to }
|
6079 |
-
var key, toVal, fromVal;
|
6080 |
-
var keys = Object.keys(from);
|
6081 |
-
for (var i = 0; i < keys.length; i++) {
|
6082 |
-
key = keys[i];
|
6083 |
-
toVal = to[key];
|
6084 |
-
fromVal = from[key];
|
6085 |
-
if (!hasOwn(to, key)) {
|
6086 |
-
set(to, key, fromVal);
|
6087 |
-
} else if (isPlainObject(toVal) && isPlainObject(fromVal)) {
|
6088 |
-
mergeData(toVal, fromVal);
|
6089 |
-
}
|
6090 |
-
}
|
6091 |
-
return to
|
6092 |
-
}
|
6093 |
-
|
6094 |
-
/**
|
6095 |
-
* Data
|
6096 |
-
*/
|
6097 |
-
function mergeDataOrFn (
|
6098 |
-
parentVal,
|
6099 |
-
childVal,
|
6100 |
-
vm
|
6101 |
-
) {
|
6102 |
-
if (!vm) {
|
6103 |
-
// in a Vue.extend merge, both should be functions
|
6104 |
-
if (!childVal) {
|
6105 |
-
return parentVal
|
6106 |
-
}
|
6107 |
-
if (!parentVal) {
|
6108 |
-
return childVal
|
6109 |
-
}
|
6110 |
-
// when parentVal & childVal are both present,
|
6111 |
-
// we need to return a function that returns the
|
6112 |
-
// merged result of both functions... no need to
|
6113 |
-
// check if parentVal is a function here because
|
6114 |
-
// it has to be a function to pass previous merges.
|
6115 |
-
return function mergedDataFn () {
|
6116 |
-
return mergeData(
|
6117 |
-
typeof childVal === 'function' ? childVal.call(this, this) : childVal,
|
6118 |
-
typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
|
6119 |
-
)
|
6120 |
-
}
|
6121 |
-
} else {
|
6122 |
-
return function mergedInstanceDataFn () {
|
6123 |
-
// instance merge
|
6124 |
-
var instanceData = typeof childVal === 'function'
|
6125 |
-
? childVal.call(vm, vm)
|
6126 |
-
: childVal;
|
6127 |
-
var defaultData = typeof parentVal === 'function'
|
6128 |
-
? parentVal.call(vm, vm)
|
6129 |
-
: parentVal;
|
6130 |
-
if (instanceData) {
|
6131 |
-
return mergeData(instanceData, defaultData)
|
6132 |
-
} else {
|
6133 |
-
return defaultData
|
6134 |
-
}
|
6135 |
-
}
|
6136 |
-
}
|
6137 |
-
}
|
6138 |
-
|
6139 |
-
strats.data = function (
|
6140 |
-
parentVal,
|
6141 |
-
childVal,
|
6142 |
-
vm
|
6143 |
-
) {
|
6144 |
-
if (!vm) {
|
6145 |
-
if (childVal && typeof childVal !== 'function') {
|
6146 |
-
process.env.NODE_ENV !== 'production' && warn(
|
6147 |
-
'The "data" option should be a function ' +
|
6148 |
-
'that returns a per-instance value in component ' +
|
6149 |
-
'definitions.',
|
6150 |
-
vm
|
6151 |
-
);
|
6152 |
-
|
6153 |
-
return parentVal
|
6154 |
-
}
|
6155 |
-
return mergeDataOrFn(parentVal, childVal)
|
6156 |
-
}
|
6157 |
-
|
6158 |
-
return mergeDataOrFn(parentVal, childVal, vm)
|
6159 |
-
};
|
6160 |
-
|
6161 |
-
/**
|
6162 |
-
* Hooks and props are merged as arrays.
|
6163 |
-
*/
|
6164 |
-
function mergeHook (
|
6165 |
-
parentVal,
|
6166 |
-
childVal
|
6167 |
-
) {
|
6168 |
-
return childVal
|
6169 |
-
? parentVal
|
6170 |
-
? parentVal.concat(childVal)
|
6171 |
-
: Array.isArray(childVal)
|
6172 |
-
? childVal
|
6173 |
-
: [childVal]
|
6174 |
-
: parentVal
|
6175 |
-
}
|
6176 |
-
|
6177 |
-
LIFECYCLE_HOOKS.forEach(function (hook) {
|
6178 |
-
strats[hook] = mergeHook;
|
6179 |
-
});
|
6180 |
-
|
6181 |
-
/**
|
6182 |
-
* Assets
|
6183 |
-
*
|
6184 |
-
* When a vm is present (instance creation), we need to do
|
6185 |
-
* a three-way merge between constructor options, instance
|
6186 |
-
* options and parent options.
|
6187 |
-
*/
|
6188 |
-
function mergeAssets (
|
6189 |
-
parentVal,
|
6190 |
-
childVal,
|
6191 |
-
vm,
|
6192 |
-
key
|
6193 |
-
) {
|
6194 |
-
var res = Object.create(parentVal || null);
|
6195 |
-
if (childVal) {
|
6196 |
-
process.env.NODE_ENV !== 'production' && assertObjectType(key, childVal, vm);
|
6197 |
-
return extend(res, childVal)
|
6198 |
-
} else {
|
6199 |
-
return res
|
6200 |
-
}
|
6201 |
-
}
|
6202 |
-
|
6203 |
-
ASSET_TYPES.forEach(function (type) {
|
6204 |
-
strats[type + 's'] = mergeAssets;
|
6205 |
-
});
|
6206 |
-
|
6207 |
-
/**
|
6208 |
-
* Watchers.
|
6209 |
-
*
|
6210 |
-
* Watchers hashes should not overwrite one
|
6211 |
-
* another, so we merge them as arrays.
|
6212 |
-
*/
|
6213 |
-
strats.watch = function (
|
6214 |
-
parentVal,
|
6215 |
-
childVal,
|
6216 |
-
vm,
|
6217 |
-
key
|
6218 |
-
) {
|
6219 |
-
// work around Firefox's Object.prototype.watch...
|
6220 |
-
if (parentVal === nativeWatch) { parentVal = undefined; }
|
6221 |
-
if (childVal === nativeWatch) { childVal = undefined; }
|
6222 |
-
/* istanbul ignore if */
|
6223 |
-
if (!childVal) { return Object.create(parentVal || null) }
|
6224 |
-
if (process.env.NODE_ENV !== 'production') {
|
6225 |
-
assertObjectType(key, childVal, vm);
|
6226 |
-
}
|
6227 |
-
if (!parentVal) { return childVal }
|
6228 |
-
var ret = {};
|
6229 |
-
extend(ret, parentVal);
|
6230 |
-
for (var key$1 in childVal) {
|
6231 |
-
var parent = ret[key$1];
|
6232 |
-
var child = childVal[key$1];
|
6233 |
-
if (parent && !Array.isArray(parent)) {
|
6234 |
-
parent = [parent];
|
6235 |
-
}
|
6236 |
-
ret[key$1] = parent
|
6237 |
-
? parent.concat(child)
|
6238 |
-
: Array.isArray(child) ? child : [child];
|
6239 |
-
}
|
6240 |
-
return ret
|
6241 |
-
};
|
6242 |
-
|
6243 |
-
/**
|
6244 |
-
* Other object hashes.
|
6245 |
-
*/
|
6246 |
-
strats.props =
|
6247 |
-
strats.methods =
|
6248 |
-
strats.inject =
|
6249 |
-
strats.computed = function (
|
6250 |
-
parentVal,
|
6251 |
-
childVal,
|
6252 |
-
vm,
|
6253 |
-
key
|
6254 |
-
) {
|
6255 |
-
if (childVal && process.env.NODE_ENV !== 'production') {
|
6256 |
-
assertObjectType(key, childVal, vm);
|
6257 |
-
}
|
6258 |
-
if (!parentVal) { return childVal }
|
6259 |
-
var ret = Object.create(null);
|
6260 |
-
extend(ret, parentVal);
|
6261 |
-
if (childVal) { extend(ret, childVal); }
|
6262 |
-
return ret
|
6263 |
-
};
|
6264 |
-
strats.provide = mergeDataOrFn;
|
6265 |
-
|
6266 |
-
/**
|
6267 |
-
* Default strategy.
|
6268 |
-
*/
|
6269 |
-
var defaultStrat = function (parentVal, childVal) {
|
6270 |
-
return childVal === undefined
|
6271 |
-
? parentVal
|
6272 |
-
: childVal
|
6273 |
-
};
|
6274 |
-
|
6275 |
-
/**
|
6276 |
-
* Validate component names
|
6277 |
-
*/
|
6278 |
-
function checkComponents (options) {
|
6279 |
-
for (var key in options.components) {
|
6280 |
-
validateComponentName(key);
|
6281 |
-
}
|
6282 |
-
}
|
6283 |
-
|
6284 |
-
function validateComponentName (name) {
|
6285 |
-
if (!/^[a-zA-Z][\w-]*$/.test(name)) {
|
6286 |
-
warn(
|
6287 |
-
'Invalid component name: "' + name + '". Component names ' +
|
6288 |
-
'can only contain alphanumeric characters and the hyphen, ' +
|
6289 |
-
'and must start with a letter.'
|
6290 |
-
);
|
6291 |
-
}
|
6292 |
-
if (isBuiltInTag(name) || config.isReservedTag(name)) {
|
6293 |
-
warn(
|
6294 |
-
'Do not use built-in or reserved HTML elements as component ' +
|
6295 |
-
'id: ' + name
|
6296 |
-
);
|
6297 |
-
}
|
6298 |
-
}
|
6299 |
-
|
6300 |
-
/**
|
6301 |
-
* Ensure all props option syntax are normalized into the
|
6302 |
-
* Object-based format.
|
6303 |
-
*/
|
6304 |
-
function normalizeProps (options, vm) {
|
6305 |
-
var props = options.props;
|
6306 |
-
if (!props) { return }
|
6307 |
-
var res = {};
|
6308 |
-
var i, val, name;
|
6309 |
-
if (Array.isArray(props)) {
|
6310 |
-
i = props.length;
|
6311 |
-
while (i--) {
|
6312 |
-
val = props[i];
|
6313 |
-
if (typeof val === 'string') {
|
6314 |
-
name = camelize(val);
|
6315 |
-
res[name] = { type: null };
|
6316 |
-
} else if (process.env.NODE_ENV !== 'production') {
|
6317 |
-
warn('props must be strings when using array syntax.');
|
6318 |
-
}
|
6319 |
-
}
|
6320 |
-
} else if (isPlainObject(props)) {
|
6321 |
-
for (var key in props) {
|
6322 |
-
val = props[key];
|
6323 |
-
name = camelize(key);
|
6324 |
-
res[name] = isPlainObject(val)
|
6325 |
-
? val
|
6326 |
-
: { type: val };
|
6327 |
-
}
|
6328 |
-
} else if (process.env.NODE_ENV !== 'production') {
|
6329 |
-
warn(
|
6330 |
-
"Invalid value for option \"props\": expected an Array or an Object, " +
|
6331 |
-
"but got " + (toRawType(props)) + ".",
|
6332 |
-
vm
|
6333 |
-
);
|
6334 |
-
}
|
6335 |
-
options.props = res;
|
6336 |
-
}
|
6337 |
-
|
6338 |
-
/**
|
6339 |
-
* Normalize all injections into Object-based format
|
6340 |
-
*/
|
6341 |
-
function normalizeInject (options, vm) {
|
6342 |
-
var inject = options.inject;
|
6343 |
-
if (!inject) { return }
|
6344 |
-
var normalized = options.inject = {};
|
6345 |
-
if (Array.isArray(inject)) {
|
6346 |
-
for (var i = 0; i < inject.length; i++) {
|
6347 |
-
normalized[inject[i]] = { from: inject[i] };
|
6348 |
-
}
|
6349 |
-
} else if (isPlainObject(inject)) {
|
6350 |
-
for (var key in inject) {
|
6351 |
-
var val = inject[key];
|
6352 |
-
normalized[key] = isPlainObject(val)
|
6353 |
-
? extend({ from: key }, val)
|
6354 |
-
: { from: val };
|
6355 |
-
}
|
6356 |
-
} else if (process.env.NODE_ENV !== 'production') {
|
6357 |
-
warn(
|
6358 |
-
"Invalid value for option \"inject\": expected an Array or an Object, " +
|
6359 |
-
"but got " + (toRawType(inject)) + ".",
|
6360 |
-
vm
|
6361 |
-
);
|
6362 |
-
}
|
6363 |
-
}
|
6364 |
-
|
6365 |
-
/**
|
6366 |
-
* Normalize raw function directives into object format.
|
6367 |
-
*/
|
6368 |
-
function normalizeDirectives (options) {
|
6369 |
-
var dirs = options.directives;
|
6370 |
-
if (dirs) {
|
6371 |
-
for (var key in dirs) {
|
6372 |
-
var def = dirs[key];
|
6373 |
-
if (typeof def === 'function') {
|
6374 |
-
dirs[key] = { bind: def, update: def };
|
6375 |
-
}
|
6376 |
-
}
|
6377 |
-
}
|
6378 |
-
}
|
6379 |
-
|
6380 |
-
function assertObjectType (name, value, vm) {
|
6381 |
-
if (!isPlainObject(value)) {
|
6382 |
-
warn(
|
6383 |
-
"Invalid value for option \"" + name + "\": expected an Object, " +
|
6384 |
-
"but got " + (toRawType(value)) + ".",
|
6385 |
-
vm
|
6386 |
-
);
|
6387 |
-
}
|
6388 |
-
}
|
6389 |
-
|
6390 |
-
/**
|
6391 |
-
* Merge two option objects into a new one.
|
6392 |
-
* Core utility used in both instantiation and inheritance.
|
6393 |
-
*/
|
6394 |
-
function mergeOptions (
|
6395 |
-
parent,
|
6396 |
-
child,
|
6397 |
-
vm
|
6398 |
-
) {
|
6399 |
-
if (process.env.NODE_ENV !== 'production') {
|
6400 |
-
checkComponents(child);
|
6401 |
-
}
|
6402 |
-
|
6403 |
-
if (typeof child === 'function') {
|
6404 |
-
child = child.options;
|
6405 |
-
}
|
6406 |
-
|
6407 |
-
normalizeProps(child, vm);
|
6408 |
-
normalizeInject(child, vm);
|
6409 |
-
normalizeDirectives(child);
|
6410 |
-
var extendsFrom = child.extends;
|
6411 |
-
if (extendsFrom) {
|
6412 |
-
parent = mergeOptions(parent, extendsFrom, vm);
|
6413 |
-
}
|
6414 |
-
if (child.mixins) {
|
6415 |
-
for (var i = 0, l = child.mixins.length; i < l; i++) {
|
6416 |
-
parent = mergeOptions(parent, child.mixins[i], vm);
|
6417 |
-
}
|
6418 |
-
}
|
6419 |
-
var options = {};
|
6420 |
-
var key;
|
6421 |
-
for (key in parent) {
|
6422 |
-
mergeField(key);
|
6423 |
-
}
|
6424 |
-
for (key in child) {
|
6425 |
-
if (!hasOwn(parent, key)) {
|
6426 |
-
mergeField(key);
|
6427 |
-
}
|
6428 |
-
}
|
6429 |
-
function mergeField (key) {
|
6430 |
-
var strat = strats[key] || defaultStrat;
|
6431 |
-
options[key] = strat(parent[key], child[key], vm, key);
|
6432 |
-
}
|
6433 |
-
return options
|
6434 |
-
}
|
6435 |
-
|
6436 |
-
/**
|
6437 |
-
* Resolve an asset.
|
6438 |
-
* This function is used because child instances need access
|
6439 |
-
* to assets defined in its ancestor chain.
|
6440 |
-
*/
|
6441 |
-
function resolveAsset (
|
6442 |
-
options,
|
6443 |
-
type,
|
6444 |
-
id,
|
6445 |
-
warnMissing
|
6446 |
-
) {
|
6447 |
-
/* istanbul ignore if */
|
6448 |
-
if (typeof id !== 'string') {
|
6449 |
-
return
|
6450 |
-
}
|
6451 |
-
var assets = options[type];
|
6452 |
-
// check local registration variations first
|
6453 |
-
if (hasOwn(assets, id)) { return assets[id] }
|
6454 |
-
var camelizedId = camelize(id);
|
6455 |
-
if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
|
6456 |
-
var PascalCaseId = capitalize(camelizedId);
|
6457 |
-
if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
|
6458 |
-
// fallback to prototype chain
|
6459 |
-
var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
|
6460 |
-
if (process.env.NODE_ENV !== 'production' && warnMissing && !res) {
|
6461 |
-
warn(
|
6462 |
-
'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
|
6463 |
-
options
|
6464 |
-
);
|
6465 |
-
}
|
6466 |
-
return res
|
6467 |
-
}
|
6468 |
-
|
6469 |
-
/* */
|
6470 |
-
|
6471 |
-
function validateProp (
|
6472 |
-
key,
|
6473 |
-
propOptions,
|
6474 |
-
propsData,
|
6475 |
-
vm
|
6476 |
-
) {
|
6477 |
-
var prop = propOptions[key];
|
6478 |
-
var absent = !hasOwn(propsData, key);
|
6479 |
-
var value = propsData[key];
|
6480 |
-
// boolean casting
|
6481 |
-
var booleanIndex = getTypeIndex(Boolean, prop.type);
|
6482 |
-
if (booleanIndex > -1) {
|
6483 |
-
if (absent && !hasOwn(prop, 'default')) {
|
6484 |
-
value = false;
|
6485 |
-
} else if (value === '' || value === hyphenate(key)) {
|
6486 |
-
// only cast empty string / same name to boolean if
|
6487 |
-
// boolean has higher priority
|
6488 |
-
var stringIndex = getTypeIndex(String, prop.type);
|
6489 |
-
if (stringIndex < 0 || booleanIndex < stringIndex) {
|
6490 |
-
value = true;
|
6491 |
-
}
|
6492 |
-
}
|
6493 |
-
}
|
6494 |
-
// check default value
|
6495 |
-
if (value === undefined) {
|
6496 |
-
value = getPropDefaultValue(vm, prop, key);
|
6497 |
-
// since the default value is a fresh copy,
|
6498 |
-
// make sure to observe it.
|
6499 |
-
var prevShouldObserve = shouldObserve;
|
6500 |
-
toggleObserving(true);
|
6501 |
-
observe(value);
|
6502 |
-
toggleObserving(prevShouldObserve);
|
6503 |
-
}
|
6504 |
-
if (
|
6505 |
-
process.env.NODE_ENV !== 'production' &&
|
6506 |
-
// skip validation for weex recycle-list child component props
|
6507 |
-
!(false && isObject(value) && ('@binding' in value))
|
6508 |
-
) {
|
6509 |
-
assertProp(prop, key, value, vm, absent);
|
6510 |
-
}
|
6511 |
-
return value
|
6512 |
-
}
|
6513 |
-
|
6514 |
-
/**
|
6515 |
-
* Get the default value of a prop.
|
6516 |
-
*/
|
6517 |
-
function getPropDefaultValue (vm, prop, key) {
|
6518 |
-
// no default, return undefined
|
6519 |
-
if (!hasOwn(prop, 'default')) {
|
6520 |
-
return undefined
|
6521 |
-
}
|
6522 |
-
var def = prop.default;
|
6523 |
-
// warn against non-factory defaults for Object & Array
|
6524 |
-
if (process.env.NODE_ENV !== 'production' && isObject(def)) {
|
6525 |
-
warn(
|
6526 |
-
'Invalid default value for prop "' + key + '": ' +
|
6527 |
-
'Props with type Object/Array must use a factory function ' +
|
6528 |
-
'to return the default value.',
|
6529 |
-
vm
|
6530 |
-
);
|
6531 |
-
}
|
6532 |
-
// the raw prop value was also undefined from previous render,
|
6533 |
-
// return previous default value to avoid unnecessary watcher trigger
|
6534 |
-
if (vm && vm.$options.propsData &&
|
6535 |
-
vm.$options.propsData[key] === undefined &&
|
6536 |
-
vm._props[key] !== undefined
|
6537 |
-
) {
|
6538 |
-
return vm._props[key]
|
6539 |
-
}
|
6540 |
-
// call factory function for non-Function types
|
6541 |
-
// a value is Function if its prototype is function even across different execution context
|
6542 |
-
return typeof def === 'function' && getType(prop.type) !== 'Function'
|
6543 |
-
? def.call(vm)
|
6544 |
-
: def
|
6545 |
-
}
|
6546 |
-
|
6547 |
-
/**
|
6548 |
-
* Assert whether a prop is valid.
|
6549 |
-
*/
|
6550 |
-
function assertProp (
|
6551 |
-
prop,
|
6552 |
-
name,
|
6553 |
-
value,
|
6554 |
-
vm,
|
6555 |
-
absent
|
6556 |
-
) {
|
6557 |
-
if (prop.required && absent) {
|
6558 |
-
warn(
|
6559 |
-
'Missing required prop: "' + name + '"',
|
6560 |
-
vm
|
6561 |
-
);
|
6562 |
-
return
|
6563 |
-
}
|
6564 |
-
if (value == null && !prop.required) {
|
6565 |
-
return
|
6566 |
-
}
|
6567 |
-
var type = prop.type;
|
6568 |
-
var valid = !type || type === true;
|
6569 |
-
var expectedTypes = [];
|
6570 |
-
if (type) {
|
6571 |
-
if (!Array.isArray(type)) {
|
6572 |
-
type = [type];
|
6573 |
-
}
|
6574 |
-
for (var i = 0; i < type.length && !valid; i++) {
|
6575 |
-
var assertedType = assertType(value, type[i]);
|
6576 |
-
expectedTypes.push(assertedType.expectedType || '');
|
6577 |
-
valid = assertedType.valid;
|
6578 |
-
}
|
6579 |
-
}
|
6580 |
-
if (!valid) {
|
6581 |
-
warn(
|
6582 |
-
"Invalid prop: type check failed for prop \"" + name + "\"." +
|
6583 |
-
" Expected " + (expectedTypes.map(capitalize).join(', ')) +
|
6584 |
-
", got " + (toRawType(value)) + ".",
|
6585 |
-
vm
|
6586 |
-
);
|
6587 |
-
return
|
6588 |
-
}
|
6589 |
-
var validator = prop.validator;
|
6590 |
-
if (validator) {
|
6591 |
-
if (!validator(value)) {
|
6592 |
-
warn(
|
6593 |
-
'Invalid prop: custom validator check failed for prop "' + name + '".',
|
6594 |
-
vm
|
6595 |
-
);
|
6596 |
-
}
|
6597 |
-
}
|
6598 |
-
}
|
6599 |
-
|
6600 |
-
var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
|
6601 |
-
|
6602 |
-
function assertType (value, type) {
|
6603 |
-
var valid;
|
6604 |
-
var expectedType = getType(type);
|
6605 |
-
if (simpleCheckRE.test(expectedType)) {
|
6606 |
-
var t = typeof value;
|
6607 |
-
valid = t === expectedType.toLowerCase();
|
6608 |
-
// for primitive wrapper objects
|
6609 |
-
if (!valid && t === 'object') {
|
6610 |
-
valid = value instanceof type;
|
6611 |
-
}
|
6612 |
-
} else if (expectedType === 'Object') {
|
6613 |
-
valid = isPlainObject(value);
|
6614 |
-
} else if (expectedType === 'Array') {
|
6615 |
-
valid = Array.isArray(value);
|
6616 |
-
} else {
|
6617 |
-
valid = value instanceof type;
|
6618 |
-
}
|
6619 |
-
return {
|
6620 |
-
valid: valid,
|
6621 |
-
expectedType: expectedType
|
6622 |
-
}
|
6623 |
-
}
|
6624 |
-
|
6625 |
-
/**
|
6626 |
-
* Use function string name to check built-in types,
|
6627 |
-
* because a simple equality check will fail when running
|
6628 |
-
* across different vms / iframes.
|
6629 |
-
*/
|
6630 |
-
function getType (fn) {
|
6631 |
-
var match = fn && fn.toString().match(/^\s*function (\w+)/);
|
6632 |
-
return match ? match[1] : ''
|
6633 |
-
}
|
6634 |
-
|
6635 |
-
function isSameType (a, b) {
|
6636 |
-
return getType(a) === getType(b)
|
6637 |
-
}
|
6638 |
-
|
6639 |
-
function getTypeIndex (type, expectedTypes) {
|
6640 |
-
if (!Array.isArray(expectedTypes)) {
|
6641 |
-
return isSameType(expectedTypes, type) ? 0 : -1
|
6642 |
-
}
|
6643 |
-
for (var i = 0, len = expectedTypes.length; i < len; i++) {
|
6644 |
-
if (isSameType(expectedTypes[i], type)) {
|
6645 |
-
return i
|
6646 |
-
}
|
6647 |
-
}
|
6648 |
-
return -1
|
6649 |
-
}
|
6650 |
-
|
6651 |
-
/* */
|
6652 |
-
|
6653 |
-
function handleError (err, vm, info) {
|
6654 |
-
if (vm) {
|
6655 |
-
var cur = vm;
|
6656 |
-
while ((cur = cur.$parent)) {
|
6657 |
-
var hooks = cur.$options.errorCaptured;
|
6658 |
-
if (hooks) {
|
6659 |
-
for (var i = 0; i < hooks.length; i++) {
|
6660 |
-
try {
|
6661 |
-
var capture = hooks[i].call(cur, err, vm, info) === false;
|
6662 |
-
if (capture) { return }
|
6663 |
-
} catch (e) {
|
6664 |
-
globalHandleError(e, cur, 'errorCaptured hook');
|
6665 |
-
}
|
6666 |
-
}
|
6667 |
-
}
|
6668 |
-
}
|
6669 |
-
}
|
6670 |
-
globalHandleError(err, vm, info);
|
6671 |
-
}
|
6672 |
-
|
6673 |
-
function globalHandleError (err, vm, info) {
|
6674 |
-
if (config.errorHandler) {
|
6675 |
-
try {
|
6676 |
-
return config.errorHandler.call(null, err, vm, info)
|
6677 |
-
} catch (e) {
|
6678 |
-
logError(e, null, 'config.errorHandler');
|
6679 |
-
}
|
6680 |
-
}
|
6681 |
-
logError(err, vm, info);
|
6682 |
-
}
|
6683 |
-
|
6684 |
-
function logError (err, vm, info) {
|
6685 |
-
if (process.env.NODE_ENV !== 'production') {
|
6686 |
-
warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
|
6687 |
-
}
|
6688 |
-
/* istanbul ignore else */
|
6689 |
-
if ((inBrowser || inWeex) && typeof console !== 'undefined') {
|
6690 |
-
console.error(err);
|
6691 |
-
} else {
|
6692 |
-
throw err
|
6693 |
-
}
|
6694 |
-
}
|
6695 |
-
|
6696 |
-
/* */
|
6697 |
-
/* globals MessageChannel */
|
6698 |
-
|
6699 |
-
var callbacks = [];
|
6700 |
-
var pending = false;
|
6701 |
-
|
6702 |
-
function flushCallbacks () {
|
6703 |
-
pending = false;
|
6704 |
-
var copies = callbacks.slice(0);
|
6705 |
-
callbacks.length = 0;
|
6706 |
-
for (var i = 0; i < copies.length; i++) {
|
6707 |
-
copies[i]();
|
6708 |
-
}
|
6709 |
-
}
|
6710 |
-
|
6711 |
-
// Here we have async deferring wrappers using both microtasks and (macro) tasks.
|
6712 |
-
// In < 2.4 we used microtasks everywhere, but there are some scenarios where
|
6713 |
-
// microtasks have too high a priority and fire in between supposedly
|
6714 |
-
// sequential events (e.g. #4521, #6690) or even between bubbling of the same
|
6715 |
-
// event (#6566). However, using (macro) tasks everywhere also has subtle problems
|
6716 |
-
// when state is changed right before repaint (e.g. #6813, out-in transitions).
|
6717 |
-
// Here we use microtask by default, but expose a way to force (macro) task when
|
6718 |
-
// needed (e.g. in event handlers attached by v-on).
|
6719 |
-
var microTimerFunc;
|
6720 |
-
var macroTimerFunc;
|
6721 |
-
var useMacroTask = false;
|
6722 |
-
|
6723 |
-
// Determine (macro) task defer implementation.
|
6724 |
-
// Technically setImmediate should be the ideal choice, but it's only available
|
6725 |
-
// in IE. The only polyfill that consistently queues the callback after all DOM
|
6726 |
-
// events triggered in the same loop is by using MessageChannel.
|
6727 |
-
/* istanbul ignore if */
|
6728 |
-
if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
|
6729 |
-
macroTimerFunc = function () {
|
6730 |
-
setImmediate(flushCallbacks);
|
6731 |
-
};
|
6732 |
-
} else if (typeof MessageChannel !== 'undefined' && (
|
6733 |
-
isNative(MessageChannel) ||
|
6734 |
-
// PhantomJS
|
6735 |
-
MessageChannel.toString() === '[object MessageChannelConstructor]'
|
6736 |
-
)) {
|
6737 |
-
var channel = new MessageChannel();
|
6738 |
-
var port = channel.port2;
|
6739 |
-
channel.port1.onmessage = flushCallbacks;
|
6740 |
-
macroTimerFunc = function () {
|
6741 |
-
port.postMessage(1);
|
6742 |
-
};
|
6743 |
-
} else {
|
6744 |
-
/* istanbul ignore next */
|
6745 |
-
macroTimerFunc = function () {
|
6746 |
-
setTimeout(flushCallbacks, 0);
|
6747 |
-
};
|
6748 |
-
}
|
6749 |
-
|
6750 |
-
// Determine microtask defer implementation.
|
6751 |
-
/* istanbul ignore next, $flow-disable-line */
|
6752 |
-
if (typeof Promise !== 'undefined' && isNative(Promise)) {
|
6753 |
-
var p = Promise.resolve();
|
6754 |
-
microTimerFunc = function () {
|
6755 |
-
p.then(flushCallbacks);
|
6756 |
-
// in problematic UIWebViews, Promise.then doesn't completely break, but
|
6757 |
-
// it can get stuck in a weird state where callbacks are pushed into the
|
6758 |
-
// microtask queue but the queue isn't being flushed, until the browser
|
6759 |
-
// needs to do some other work, e.g. handle a timer. Therefore we can
|
6760 |
-
// "force" the microtask queue to be flushed by adding an empty timer.
|
6761 |
-
if (isIOS) { setTimeout(noop); }
|
6762 |
-
};
|
6763 |
-
} else {
|
6764 |
-
// fallback to macro
|
6765 |
-
microTimerFunc = macroTimerFunc;
|
6766 |
-
}
|
6767 |
-
|
6768 |
-
/**
|
6769 |
-
* Wrap a function so that if any code inside triggers state change,
|
6770 |
-
* the changes are queued using a (macro) task instead of a microtask.
|
6771 |
-
*/
|
6772 |
-
function withMacroTask (fn) {
|
6773 |
-
return fn._withTask || (fn._withTask = function () {
|
6774 |
-
useMacroTask = true;
|
6775 |
-
var res = fn.apply(null, arguments);
|
6776 |
-
useMacroTask = false;
|
6777 |
-
return res
|
6778 |
-
})
|
6779 |
-
}
|
6780 |
-
|
6781 |
-
function nextTick (cb, ctx) {
|
6782 |
-
var _resolve;
|
6783 |
-
callbacks.push(function () {
|
6784 |
-
if (cb) {
|
6785 |
-
try {
|
6786 |
-
cb.call(ctx);
|
6787 |
-
} catch (e) {
|
6788 |
-
handleError(e, ctx, 'nextTick');
|
6789 |
-
}
|
6790 |
-
} else if (_resolve) {
|
6791 |
-
_resolve(ctx);
|
6792 |
-
}
|
6793 |
-
});
|
6794 |
-
if (!pending) {
|
6795 |
-
pending = true;
|
6796 |
-
if (useMacroTask) {
|
6797 |
-
macroTimerFunc();
|
6798 |
-
} else {
|
6799 |
-
microTimerFunc();
|
6800 |
-
}
|
6801 |
-
}
|
6802 |
-
// $flow-disable-line
|
6803 |
-
if (!cb && typeof Promise !== 'undefined') {
|
6804 |
-
return new Promise(function (resolve) {
|
6805 |
-
_resolve = resolve;
|
6806 |
-
})
|
6807 |
-
}
|
6808 |
-
}
|
6809 |
-
|
6810 |
-
/* */
|
6811 |
-
|
6812 |
-
var mark;
|
6813 |
-
var measure;
|
6814 |
-
|
6815 |
-
if (process.env.NODE_ENV !== 'production') {
|
6816 |
-
var perf = inBrowser && window.performance;
|
6817 |
-
/* istanbul ignore if */
|
6818 |
-
if (
|
6819 |
-
perf &&
|
6820 |
-
perf.mark &&
|
6821 |
-
perf.measure &&
|
6822 |
-
perf.clearMarks &&
|
6823 |
-
perf.clearMeasures
|
6824 |
-
) {
|
6825 |
-
mark = function (tag) { return perf.mark(tag); };
|
6826 |
-
measure = function (name, startTag, endTag) {
|
6827 |
-
perf.measure(name, startTag, endTag);
|
6828 |
-
perf.clearMarks(startTag);
|
6829 |
-
perf.clearMarks(endTag);
|
6830 |
-
perf.clearMeasures(name);
|
6831 |
-
};
|
6832 |
-
}
|
6833 |
-
}
|
6834 |
-
|
6835 |
-
/* not type checking this file because flow doesn't play well with Proxy */
|
6836 |
-
|
6837 |
-
var initProxy;
|
6838 |
-
|
6839 |
-
if (process.env.NODE_ENV !== 'production') {
|
6840 |
-
var allowedGlobals = makeMap(
|
6841 |
-
'Infinity,undefined,NaN,isFinite,isNaN,' +
|
6842 |
-
'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
|
6843 |
-
'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
|
6844 |
-
'require' // for Webpack/Browserify
|
6845 |
-
);
|
6846 |
-
|
6847 |
-
var warnNonPresent = function (target, key) {
|
6848 |
-
warn(
|
6849 |
-
"Property or method \"" + key + "\" is not defined on the instance but " +
|
6850 |
-
'referenced during render. Make sure that this property is reactive, ' +
|
6851 |
-
'either in the data option, or for class-based components, by ' +
|
6852 |
-
'initializing the property. ' +
|
6853 |
-
'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
|
6854 |
-
target
|
6855 |
-
);
|
6856 |
-
};
|
6857 |
-
|
6858 |
-
var hasProxy =
|
6859 |
-
typeof Proxy !== 'undefined' && isNative(Proxy);
|
6860 |
-
|
6861 |
-
if (hasProxy) {
|
6862 |
-
var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
|
6863 |
-
config.keyCodes = new Proxy(config.keyCodes, {
|
6864 |
-
set: function set (target, key, value) {
|
6865 |
-
if (isBuiltInModifier(key)) {
|
6866 |
-
warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
|
6867 |
-
return false
|
6868 |
-
} else {
|
6869 |
-
target[key] = value;
|
6870 |
-
return true
|
6871 |
-
}
|
6872 |
-
}
|
6873 |
-
});
|
6874 |
-
}
|
6875 |
-
|
6876 |
-
var hasHandler = {
|
6877 |
-
has: function has (target, key) {
|
6878 |
-
var has = key in target;
|
6879 |
-
var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';
|
6880 |
-
if (!has && !isAllowed) {
|
6881 |
-
warnNonPresent(target, key);
|
6882 |
-
}
|
6883 |
-
return has || !isAllowed
|
6884 |
-
}
|
6885 |
-
};
|
6886 |
-
|
6887 |
-
var getHandler = {
|
6888 |
-
get: function get (target, key) {
|
6889 |
-
if (typeof key === 'string' && !(key in target)) {
|
6890 |
-
warnNonPresent(target, key);
|
6891 |
-
}
|
6892 |
-
return target[key]
|
6893 |
-
}
|
6894 |
-
};
|
6895 |
-
|
6896 |
-
initProxy = function initProxy (vm) {
|
6897 |
-
if (hasProxy) {
|
6898 |
-
// determine which proxy handler to use
|
6899 |
-
var options = vm.$options;
|
6900 |
-
var handlers = options.render && options.render._withStripped
|
6901 |
-
? getHandler
|
6902 |
-
: hasHandler;
|
6903 |
-
vm._renderProxy = new Proxy(vm, handlers);
|
6904 |
-
} else {
|
6905 |
-
vm._renderProxy = vm;
|
6906 |
-
}
|
6907 |
-
};
|
6908 |
-
}
|
6909 |
-
|
6910 |
-
/* */
|
6911 |
-
|
6912 |
-
var seenObjects = new _Set();
|
6913 |
-
|
6914 |
-
/**
|
6915 |
-
* Recursively traverse an object to evoke all converted
|
6916 |
-
* getters, so that every nested property inside the object
|
6917 |
-
* is collected as a "deep" dependency.
|
6918 |
-
*/
|
6919 |
-
function traverse (val) {
|
6920 |
-
_traverse(val, seenObjects);
|
6921 |
-
seenObjects.clear();
|
6922 |
-
}
|
6923 |
-
|
6924 |
-
function _traverse (val, seen) {
|
6925 |
-
var i, keys;
|
6926 |
-
var isA = Array.isArray(val);
|
6927 |
-
if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
|
6928 |
-
return
|
6929 |
-
}
|
6930 |
-
if (val.__ob__) {
|
6931 |
-
var depId = val.__ob__.dep.id;
|
6932 |
-
if (seen.has(depId)) {
|
6933 |
-
return
|
6934 |
-
}
|
6935 |
-
seen.add(depId);
|
6936 |
-
}
|
6937 |
-
if (isA) {
|
6938 |
-
i = val.length;
|
6939 |
-
while (i--) { _traverse(val[i], seen); }
|
6940 |
-
} else {
|
6941 |
-
keys = Object.keys(val);
|
6942 |
-
i = keys.length;
|
6943 |
-
while (i--) { _traverse(val[keys[i]], seen); }
|
6944 |
-
}
|
6945 |
-
}
|
6946 |
-
|
6947 |
-
/* */
|
6948 |
-
|
6949 |
-
var normalizeEvent = cached(function (name) {
|
6950 |
-
var passive = name.charAt(0) === '&';
|
6951 |
-
name = passive ? name.slice(1) : name;
|
6952 |
-
var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
|
6953 |
-
name = once$$1 ? name.slice(1) : name;
|
6954 |
-
var capture = name.charAt(0) === '!';
|
6955 |
-
name = capture ? name.slice(1) : name;
|
6956 |
-
return {
|
6957 |
-
name: name,
|
6958 |
-
once: once$$1,
|
6959 |
-
capture: capture,
|
6960 |
-
passive: passive
|
6961 |
-
}
|
6962 |
-
});
|
6963 |
-
|
6964 |
-
function createFnInvoker (fns) {
|
6965 |
-
function invoker () {
|
6966 |
-
var arguments$1 = arguments;
|
6967 |
-
|
6968 |
-
var fns = invoker.fns;
|
6969 |
-
if (Array.isArray(fns)) {
|
6970 |
-
var cloned = fns.slice();
|
6971 |
-
for (var i = 0; i < cloned.length; i++) {
|
6972 |
-
cloned[i].apply(null, arguments$1);
|
6973 |
-
}
|
6974 |
-
} else {
|
6975 |
-
// return handler return value for single handlers
|
6976 |
-
return fns.apply(null, arguments)
|
6977 |
-
}
|
6978 |
-
}
|
6979 |
-
invoker.fns = fns;
|
6980 |
-
return invoker
|
6981 |
-
}
|
6982 |
-
|
6983 |
-
function updateListeners (
|
6984 |
-
on,
|
6985 |
-
oldOn,
|
6986 |
-
add,
|
6987 |
-
remove$$1,
|
6988 |
-
vm
|
6989 |
-
) {
|
6990 |
-
var name, def, cur, old, event;
|
6991 |
-
for (name in on) {
|
6992 |
-
def = cur = on[name];
|
6993 |
-
old = oldOn[name];
|
6994 |
-
event = normalizeEvent(name);
|
6995 |
-
/* istanbul ignore if */
|
6996 |
-
if (isUndef(cur)) {
|
6997 |
-
process.env.NODE_ENV !== 'production' && warn(
|
6998 |
-
"Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
|
6999 |
-
vm
|
7000 |
-
);
|
7001 |
-
} else if (isUndef(old)) {
|
7002 |
-
if (isUndef(cur.fns)) {
|
7003 |
-
cur = on[name] = createFnInvoker(cur);
|
7004 |
-
}
|
7005 |
-
add(event.name, cur, event.once, event.capture, event.passive, event.params);
|
7006 |
-
} else if (cur !== old) {
|
7007 |
-
old.fns = cur;
|
7008 |
-
on[name] = old;
|
7009 |
-
}
|
7010 |
-
}
|
7011 |
-
for (name in oldOn) {
|
7012 |
-
if (isUndef(on[name])) {
|
7013 |
-
event = normalizeEvent(name);
|
7014 |
-
remove$$1(event.name, oldOn[name], event.capture);
|
7015 |
-
}
|
7016 |
-
}
|
7017 |
-
}
|
7018 |
-
|
7019 |
-
/* */
|
7020 |
-
|
7021 |
-
function mergeVNodeHook (def, hookKey, hook) {
|
7022 |
-
if (def instanceof VNode) {
|
7023 |
-
def = def.data.hook || (def.data.hook = {});
|
7024 |
-
}
|
7025 |
-
var invoker;
|
7026 |
-
var oldHook = def[hookKey];
|
7027 |
-
|
7028 |
-
function wrappedHook () {
|
7029 |
-
hook.apply(this, arguments);
|
7030 |
-
// important: remove merged hook to ensure it's called only once
|
7031 |
-
// and prevent memory leak
|
7032 |
-
remove(invoker.fns, wrappedHook);
|
7033 |
-
}
|
7034 |
-
|
7035 |
-
if (isUndef(oldHook)) {
|
7036 |
-
// no existing hook
|
7037 |
-
invoker = createFnInvoker([wrappedHook]);
|
7038 |
-
} else {
|
7039 |
-
/* istanbul ignore if */
|
7040 |
-
if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {
|
7041 |
-
// already a merged invoker
|
7042 |
-
invoker = oldHook;
|
7043 |
-
invoker.fns.push(wrappedHook);
|
7044 |
-
} else {
|
7045 |
-
// existing plain hook
|
7046 |
-
invoker = createFnInvoker([oldHook, wrappedHook]);
|
7047 |
-
}
|
7048 |
-
}
|
7049 |
-
|
7050 |
-
invoker.merged = true;
|
7051 |
-
def[hookKey] = invoker;
|
7052 |
-
}
|
7053 |
-
|
7054 |
-
/* */
|
7055 |
-
|
7056 |
-
function extractPropsFromVNodeData (
|
7057 |
-
data,
|
7058 |
-
Ctor,
|
7059 |
-
tag
|
7060 |
-
) {
|
7061 |
-
// we are only extracting raw values here.
|
7062 |
-
// validation and default values are handled in the child
|
7063 |
-
// component itself.
|
7064 |
-
var propOptions = Ctor.options.props;
|
7065 |
-
if (isUndef(propOptions)) {
|
7066 |
-
return
|
7067 |
-
}
|
7068 |
-
var res = {};
|
7069 |
-
var attrs = data.attrs;
|
7070 |
-
var props = data.props;
|
7071 |
-
if (isDef(attrs) || isDef(props)) {
|
7072 |
-
for (var key in propOptions) {
|
7073 |
-
var altKey = hyphenate(key);
|
7074 |
-
if (process.env.NODE_ENV !== 'production') {
|
7075 |
-
var keyInLowerCase = key.toLowerCase();
|
7076 |
-
if (
|
7077 |
-
key !== keyInLowerCase &&
|
7078 |
-
attrs && hasOwn(attrs, keyInLowerCase)
|
7079 |
-
) {
|
7080 |
-
tip(
|
7081 |
-
"Prop \"" + keyInLowerCase + "\" is passed to component " +
|
7082 |
-
(formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
|
7083 |
-
" \"" + key + "\". " +
|
7084 |
-
"Note that HTML attributes are case-insensitive and camelCased " +
|
7085 |
-
"props need to use their kebab-case equivalents when using in-DOM " +
|
7086 |
-
"templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
|
7087 |
-
);
|
7088 |
-
}
|
7089 |
-
}
|
7090 |
-
checkProp(res, props, key, altKey, true) ||
|
7091 |
-
checkProp(res, attrs, key, altKey, false);
|
7092 |
-
}
|
7093 |
-
}
|
7094 |
-
return res
|
7095 |
-
}
|
7096 |
-
|
7097 |
-
function checkProp (
|
7098 |
-
res,
|
7099 |
-
hash,
|
7100 |
-
key,
|
7101 |
-
altKey,
|
7102 |
-
preserve
|
7103 |
-
) {
|
7104 |
-
if (isDef(hash)) {
|
7105 |
-
if (hasOwn(hash, key)) {
|
7106 |
-
res[key] = hash[key];
|
7107 |
-
if (!preserve) {
|
7108 |
-
delete hash[key];
|
7109 |
-
}
|
7110 |
-
return true
|
7111 |
-
} else if (hasOwn(hash, altKey)) {
|
7112 |
-
res[key] = hash[altKey];
|
7113 |
-
if (!preserve) {
|
7114 |
-
delete hash[altKey];
|
7115 |
-
}
|
7116 |
-
return true
|
7117 |
-
}
|
7118 |
-
}
|
7119 |
-
return false
|
7120 |
-
}
|
7121 |
-
|
7122 |
-
/* */
|
7123 |
-
|
7124 |
-
// The template compiler attempts to minimize the need for normalization by
|
7125 |
-
// statically analyzing the template at compile time.
|
7126 |
-
//
|
7127 |
-
// For plain HTML markup, normalization can be completely skipped because the
|
7128 |
-
// generated render function is guaranteed to return Array<VNode>. There are
|
7129 |
-
// two cases where extra normalization is needed:
|
7130 |
-
|
7131 |
-
// 1. When the children contains components - because a functional component
|
7132 |
-
// may return an Array instead of a single root. In this case, just a simple
|
7133 |
-
// normalization is needed - if any child is an Array, we flatten the whole
|
7134 |
-
// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
|
7135 |
-
// because functional components already normalize their own children.
|
7136 |
-
function simpleNormalizeChildren (children) {
|
7137 |
-
for (var i = 0; i < children.length; i++) {
|
7138 |
-
if (Array.isArray(children[i])) {
|
7139 |
-
return Array.prototype.concat.apply([], children)
|
7140 |
-
}
|
7141 |
-
}
|
7142 |
-
return children
|
7143 |
-
}
|
7144 |
-
|
7145 |
-
// 2. When the children contains constructs that always generated nested Arrays,
|
7146 |
-
// e.g. <template>, <slot>, v-for, or when the children is provided by user
|
7147 |
-
// with hand-written render functions / JSX. In such cases a full normalization
|
7148 |
-
// is needed to cater to all possible types of children values.
|
7149 |
-
function normalizeChildren (children) {
|
7150 |
-
return isPrimitive(children)
|
7151 |
-
? [createTextVNode(children)]
|
7152 |
-
: Array.isArray(children)
|
7153 |
-
? normalizeArrayChildren(children)
|
7154 |
-
: undefined
|
7155 |
-
}
|
7156 |
-
|
7157 |
-
function isTextNode (node) {
|
7158 |
-
return isDef(node) && isDef(node.text) && isFalse(node.isComment)
|
7159 |
-
}
|
7160 |
-
|
7161 |
-
function normalizeArrayChildren (children, nestedIndex) {
|
7162 |
-
var res = [];
|
7163 |
-
var i, c, lastIndex, last;
|
7164 |
-
for (i = 0; i < children.length; i++) {
|
7165 |
-
c = children[i];
|
7166 |
-
if (isUndef(c) || typeof c === 'boolean') { continue }
|
7167 |
-
lastIndex = res.length - 1;
|
7168 |
-
last = res[lastIndex];
|
7169 |
-
// nested
|
7170 |
-
if (Array.isArray(c)) {
|
7171 |
-
if (c.length > 0) {
|
7172 |
-
c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
|
7173 |
-
// merge adjacent text nodes
|
7174 |
-
if (isTextNode(c[0]) && isTextNode(last)) {
|
7175 |
-
res[lastIndex] = createTextVNode(last.text + (c[0]).text);
|
7176 |
-
c.shift();
|
7177 |
-
}
|
7178 |
-
res.push.apply(res, c);
|
7179 |
-
}
|
7180 |
-
} else if (isPrimitive(c)) {
|
7181 |
-
if (isTextNode(last)) {
|
7182 |
-
// merge adjacent text nodes
|
7183 |
-
// this is necessary for SSR hydration because text nodes are
|
7184 |
-
// essentially merged when rendered to HTML strings
|
7185 |
-
res[lastIndex] = createTextVNode(last.text + c);
|
7186 |
-
} else if (c !== '') {
|
7187 |
-
// convert primitive to vnode
|
7188 |
-
res.push(createTextVNode(c));
|
7189 |
-
}
|
7190 |
-
} else {
|
7191 |
-
if (isTextNode(c) && isTextNode(last)) {
|
7192 |
-
// merge adjacent text nodes
|
7193 |
-
res[lastIndex] = createTextVNode(last.text + c.text);
|
7194 |
-
} else {
|
7195 |
-
// default key for nested array children (likely generated by v-for)
|
7196 |
-
if (isTrue(children._isVList) &&
|
7197 |
-
isDef(c.tag) &&
|
7198 |
-
isUndef(c.key) &&
|
7199 |
-
isDef(nestedIndex)) {
|
7200 |
-
c.key = "__vlist" + nestedIndex + "_" + i + "__";
|
7201 |
-
}
|
7202 |
-
res.push(c);
|
7203 |
-
}
|
7204 |
-
}
|
7205 |
-
}
|
7206 |
-
return res
|
7207 |
-
}
|
7208 |
-
|
7209 |
-
/* */
|
7210 |
-
|
7211 |
-
function ensureCtor (comp, base) {
|
7212 |
-
if (
|
7213 |
-
comp.__esModule ||
|
7214 |
-
(hasSymbol && comp[Symbol.toStringTag] === 'Module')
|
7215 |
-
) {
|
7216 |
-
comp = comp.default;
|
7217 |
-
}
|
7218 |
-
return isObject(comp)
|
7219 |
-
? base.extend(comp)
|
7220 |
-
: comp
|
7221 |
-
}
|
7222 |
-
|
7223 |
-
function createAsyncPlaceholder (
|
7224 |
-
factory,
|
7225 |
-
data,
|
7226 |
-
context,
|
7227 |
-
children,
|
7228 |
-
tag
|
7229 |
-
) {
|
7230 |
-
var node = createEmptyVNode();
|
7231 |
-
node.asyncFactory = factory;
|
7232 |
-
node.asyncMeta = { data: data, context: context, children: children, tag: tag };
|
7233 |
-
return node
|
7234 |
-
}
|
7235 |
-
|
7236 |
-
function resolveAsyncComponent (
|
7237 |
-
factory,
|
7238 |
-
baseCtor,
|
7239 |
-
context
|
7240 |
-
) {
|
7241 |
-
if (isTrue(factory.error) && isDef(factory.errorComp)) {
|
7242 |
-
return factory.errorComp
|
7243 |
-
}
|
7244 |
-
|
7245 |
-
if (isDef(factory.resolved)) {
|
7246 |
-
return factory.resolved
|
7247 |
-
}
|
7248 |
-
|
7249 |
-
if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
|
7250 |
-
return factory.loadingComp
|
7251 |
-
}
|
7252 |
-
|
7253 |
-
if (isDef(factory.contexts)) {
|
7254 |
-
// already pending
|
7255 |
-
factory.contexts.push(context);
|
7256 |
-
} else {
|
7257 |
-
var contexts = factory.contexts = [context];
|
7258 |
-
var sync = true;
|
7259 |
-
|
7260 |
-
var forceRender = function () {
|
7261 |
-
for (var i = 0, l = contexts.length; i < l; i++) {
|
7262 |
-
contexts[i].$forceUpdate();
|
7263 |
-
}
|
7264 |
-
};
|
7265 |
-
|
7266 |
-
var resolve = once(function (res) {
|
7267 |
-
// cache resolved
|
7268 |
-
factory.resolved = ensureCtor(res, baseCtor);
|
7269 |
-
// invoke callbacks only if this is not a synchronous resolve
|
7270 |
-
// (async resolves are shimmed as synchronous during SSR)
|
7271 |
-
if (!sync) {
|
7272 |
-
forceRender();
|
7273 |
-
}
|
7274 |
-
});
|
7275 |
-
|
7276 |
-
var reject = once(function (reason) {
|
7277 |
-
process.env.NODE_ENV !== 'production' && warn(
|
7278 |
-
"Failed to resolve async component: " + (String(factory)) +
|
7279 |
-
(reason ? ("\nReason: " + reason) : '')
|
7280 |
-
);
|
7281 |
-
if (isDef(factory.errorComp)) {
|
7282 |
-
factory.error = true;
|
7283 |
-
forceRender();
|
7284 |
-
}
|
7285 |
-
});
|
7286 |
-
|
7287 |
-
var res = factory(resolve, reject);
|
7288 |
-
|
7289 |
-
if (isObject(res)) {
|
7290 |
-
if (typeof res.then === 'function') {
|
7291 |
-
// () => Promise
|
7292 |
-
if (isUndef(factory.resolved)) {
|
7293 |
-
res.then(resolve, reject);
|
7294 |
-
}
|
7295 |
-
} else if (isDef(res.component) && typeof res.component.then === 'function') {
|
7296 |
-
res.component.then(resolve, reject);
|
7297 |
-
|
7298 |
-
if (isDef(res.error)) {
|
7299 |
-
factory.errorComp = ensureCtor(res.error, baseCtor);
|
7300 |
-
}
|
7301 |
-
|
7302 |
-
if (isDef(res.loading)) {
|
7303 |
-
factory.loadingComp = ensureCtor(res.loading, baseCtor);
|
7304 |
-
if (res.delay === 0) {
|
7305 |
-
factory.loading = true;
|
7306 |
-
} else {
|
7307 |
-
setTimeout(function () {
|
7308 |
-
if (isUndef(factory.resolved) && isUndef(factory.error)) {
|
7309 |
-
factory.loading = true;
|
7310 |
-
forceRender();
|
7311 |
-
}
|
7312 |
-
}, res.delay || 200);
|
7313 |
-
}
|
7314 |
-
}
|
7315 |
-
|
7316 |
-
if (isDef(res.timeout)) {
|
7317 |
-
setTimeout(function () {
|
7318 |
-
if (isUndef(factory.resolved)) {
|
7319 |
-
reject(
|
7320 |
-
process.env.NODE_ENV !== 'production'
|
7321 |
-
? ("timeout (" + (res.timeout) + "ms)")
|
7322 |
-
: null
|
7323 |
-
);
|
7324 |
-
}
|
7325 |
-
}, res.timeout);
|
7326 |
-
}
|
7327 |
-
}
|
7328 |
-
}
|
7329 |
-
|
7330 |
-
sync = false;
|
7331 |
-
// return in case resolved synchronously
|
7332 |
-
return factory.loading
|
7333 |
-
? factory.loadingComp
|
7334 |
-
: factory.resolved
|
7335 |
-
}
|
7336 |
-
}
|
7337 |
-
|
7338 |
-
/* */
|
7339 |
-
|
7340 |
-
function isAsyncPlaceholder (node) {
|
7341 |
-
return node.isComment && node.asyncFactory
|
7342 |
-
}
|
7343 |
-
|
7344 |
-
/* */
|
7345 |
-
|
7346 |
-
function getFirstComponentChild (children) {
|
7347 |
-
if (Array.isArray(children)) {
|
7348 |
-
for (var i = 0; i < children.length; i++) {
|
7349 |
-
var c = children[i];
|
7350 |
-
if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
|
7351 |
-
return c
|
7352 |
-
}
|
7353 |
-
}
|
7354 |
-
}
|
7355 |
-
}
|
7356 |
-
|
7357 |
-
/* */
|
7358 |
-
|
7359 |
-
/* */
|
7360 |
-
|
7361 |
-
function initEvents (vm) {
|
7362 |
-
vm._events = Object.create(null);
|
7363 |
-
vm._hasHookEvent = false;
|
7364 |
-
// init parent attached events
|
7365 |
-
var listeners = vm.$options._parentListeners;
|
7366 |
-
if (listeners) {
|
7367 |
-
updateComponentListeners(vm, listeners);
|
7368 |
-
}
|
7369 |
-
}
|
7370 |
-
|
7371 |
-
var target;
|
7372 |
-
|
7373 |
-
function add (event, fn, once) {
|
7374 |
-
if (once) {
|
7375 |
-
target.$once(event, fn);
|
7376 |
-
} else {
|
7377 |
-
target.$on(event, fn);
|
7378 |
-
}
|
7379 |
-
}
|
7380 |
-
|
7381 |
-
function remove$1 (event, fn) {
|
7382 |
-
target.$off(event, fn);
|
7383 |
-
}
|
7384 |
-
|
7385 |
-
function updateComponentListeners (
|
7386 |
-
vm,
|
7387 |
-
listeners,
|
7388 |
-
oldListeners
|
7389 |
-
) {
|
7390 |
-
target = vm;
|
7391 |
-
updateListeners(listeners, oldListeners || {}, add, remove$1, vm);
|
7392 |
-
target = undefined;
|
7393 |
-
}
|
7394 |
-
|
7395 |
-
function eventsMixin (Vue) {
|
7396 |
-
var hookRE = /^hook:/;
|
7397 |
-
Vue.prototype.$on = function (event, fn) {
|
7398 |
-
var this$1 = this;
|
7399 |
-
|
7400 |
-
var vm = this;
|
7401 |
-
if (Array.isArray(event)) {
|
7402 |
-
for (var i = 0, l = event.length; i < l; i++) {
|
7403 |
-
this$1.$on(event[i], fn);
|
7404 |
-
}
|
7405 |
-
} else {
|
7406 |
-
(vm._events[event] || (vm._events[event] = [])).push(fn);
|
7407 |
-
// optimize hook:event cost by using a boolean flag marked at registration
|
7408 |
-
// instead of a hash lookup
|
7409 |
-
if (hookRE.test(event)) {
|
7410 |
-
vm._hasHookEvent = true;
|
7411 |
-
}
|
7412 |
-
}
|
7413 |
-
return vm
|
7414 |
-
};
|
7415 |
-
|
7416 |
-
Vue.prototype.$once = function (event, fn) {
|
7417 |
-
var vm = this;
|
7418 |
-
function on () {
|
7419 |
-
vm.$off(event, on);
|
7420 |
-
fn.apply(vm, arguments);
|
7421 |
-
}
|
7422 |
-
on.fn = fn;
|
7423 |
-
vm.$on(event, on);
|
7424 |
-
return vm
|
7425 |
-
};
|
7426 |
-
|
7427 |
-
Vue.prototype.$off = function (event, fn) {
|
7428 |
-
var this$1 = this;
|
7429 |
-
|
7430 |
-
var vm = this;
|
7431 |
-
// all
|
7432 |
-
if (!arguments.length) {
|
7433 |
-
vm._events = Object.create(null);
|
7434 |
-
return vm
|
7435 |
-
}
|
7436 |
-
// array of events
|
7437 |
-
if (Array.isArray(event)) {
|
7438 |
-
for (var i = 0, l = event.length; i < l; i++) {
|
7439 |
-
this$1.$off(event[i], fn);
|
7440 |
-
}
|
7441 |
-
return vm
|
7442 |
-
}
|
7443 |
-
// specific event
|
7444 |
-
var cbs = vm._events[event];
|
7445 |
-
if (!cbs) {
|
7446 |
-
return vm
|
7447 |
-
}
|
7448 |
-
if (!fn) {
|
7449 |
-
vm._events[event] = null;
|
7450 |
-
return vm
|
7451 |
-
}
|
7452 |
-
if (fn) {
|
7453 |
-
// specific handler
|
7454 |
-
var cb;
|
7455 |
-
var i$1 = cbs.length;
|
7456 |
-
while (i$1--) {
|
7457 |
-
cb = cbs[i$1];
|
7458 |
-
if (cb === fn || cb.fn === fn) {
|
7459 |
-
cbs.splice(i$1, 1);
|
7460 |
-
break
|
7461 |
-
}
|
7462 |
-
}
|
7463 |
-
}
|
7464 |
-
return vm
|
7465 |
-
};
|
7466 |
-
|
7467 |
-
Vue.prototype.$emit = function (event) {
|
7468 |
-
var vm = this;
|
7469 |
-
if (process.env.NODE_ENV !== 'production') {
|
7470 |
-
var lowerCaseEvent = event.toLowerCase();
|
7471 |
-
if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
|
7472 |
-
tip(
|
7473 |
-
"Event \"" + lowerCaseEvent + "\" is emitted in component " +
|
7474 |
-
(formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
|
7475 |
-
"Note that HTML attributes are case-insensitive and you cannot use " +
|
7476 |
-
"v-on to listen to camelCase events when using in-DOM templates. " +
|
7477 |
-
"You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
|
7478 |
-
);
|
7479 |
-
}
|
7480 |
-
}
|
7481 |
-
var cbs = vm._events[event];
|
7482 |
-
if (cbs) {
|
7483 |
-
cbs = cbs.length > 1 ? toArray(cbs) : cbs;
|
7484 |
-
var args = toArray(arguments, 1);
|
7485 |
-
for (var i = 0, l = cbs.length; i < l; i++) {
|
7486 |
-
try {
|
7487 |
-
cbs[i].apply(vm, args);
|
7488 |
-
} catch (e) {
|
7489 |
-
handleError(e, vm, ("event handler for \"" + event + "\""));
|
7490 |
-
}
|
7491 |
-
}
|
7492 |
-
}
|
7493 |
-
return vm
|
7494 |
-
};
|
7495 |
-
}
|
7496 |
-
|
7497 |
-
/* */
|
7498 |
-
|
7499 |
-
|
7500 |
-
|
7501 |
-
/**
|
7502 |
-
* Runtime helper for resolving raw children VNodes into a slot object.
|
7503 |
-
*/
|
7504 |
-
function resolveSlots (
|
7505 |
-
children,
|
7506 |
-
context
|
7507 |
-
) {
|
7508 |
-
var slots = {};
|
7509 |
-
if (!children) {
|
7510 |
-
return slots
|
7511 |
-
}
|
7512 |
-
for (var i = 0, l = children.length; i < l; i++) {
|
7513 |
-
var child = children[i];
|
7514 |
-
var data = child.data;
|
7515 |
-
// remove slot attribute if the node is resolved as a Vue slot node
|
7516 |
-
if (data && data.attrs && data.attrs.slot) {
|
7517 |
-
delete data.attrs.slot;
|
7518 |
-
}
|
7519 |
-
// named slots should only be respected if the vnode was rendered in the
|
7520 |
-
// same context.
|
7521 |
-
if ((child.context === context || child.fnContext === context) &&
|
7522 |
-
data && data.slot != null
|
7523 |
-
) {
|
7524 |
-
var name = data.slot;
|
7525 |
-
var slot = (slots[name] || (slots[name] = []));
|
7526 |
-
if (child.tag === 'template') {
|
7527 |
-
slot.push.apply(slot, child.children || []);
|
7528 |
-
} else {
|
7529 |
-
slot.push(child);
|
7530 |
-
}
|
7531 |
-
} else {
|
7532 |
-
(slots.default || (slots.default = [])).push(child);
|
7533 |
-
}
|
7534 |
-
}
|
7535 |
-
// ignore slots that contains only whitespace
|
7536 |
-
for (var name$1 in slots) {
|
7537 |
-
if (slots[name$1].every(isWhitespace)) {
|
7538 |
-
delete slots[name$1];
|
7539 |
-
}
|
7540 |
-
}
|
7541 |
-
return slots
|
7542 |
-
}
|
7543 |
-
|
7544 |
-
function isWhitespace (node) {
|
7545 |
-
return (node.isComment && !node.asyncFactory) || node.text === ' '
|
7546 |
-
}
|
7547 |
-
|
7548 |
-
function resolveScopedSlots (
|
7549 |
-
fns, // see flow/vnode
|
7550 |
-
res
|
7551 |
-
) {
|
7552 |
-
res = res || {};
|
7553 |
-
for (var i = 0; i < fns.length; i++) {
|
7554 |
-
if (Array.isArray(fns[i])) {
|
7555 |
-
resolveScopedSlots(fns[i], res);
|
7556 |
-
} else {
|
7557 |
-
res[fns[i].key] = fns[i].fn;
|
7558 |
-
}
|
7559 |
-
}
|
7560 |
-
return res
|
7561 |
-
}
|
7562 |
-
|
7563 |
-
/* */
|
7564 |
-
|
7565 |
-
var activeInstance = null;
|
7566 |
-
var isUpdatingChildComponent = false;
|
7567 |
-
|
7568 |
-
function initLifecycle (vm) {
|
7569 |
-
var options = vm.$options;
|
7570 |
-
|
7571 |
-
// locate first non-abstract parent
|
7572 |
-
var parent = options.parent;
|
7573 |
-
if (parent && !options.abstract) {
|
7574 |
-
while (parent.$options.abstract && parent.$parent) {
|
7575 |
-
parent = parent.$parent;
|
7576 |
-
}
|
7577 |
-
parent.$children.push(vm);
|
7578 |
-
}
|
7579 |
-
|
7580 |
-
vm.$parent = parent;
|
7581 |
-
vm.$root = parent ? parent.$root : vm;
|
7582 |
-
|
7583 |
-
vm.$children = [];
|
7584 |
-
vm.$refs = {};
|
7585 |
-
|
7586 |
-
vm._watcher = null;
|
7587 |
-
vm._inactive = null;
|
7588 |
-
vm._directInactive = false;
|
7589 |
-
vm._isMounted = false;
|
7590 |
-
vm._isDestroyed = false;
|
7591 |
-
vm._isBeingDestroyed = false;
|
7592 |
-
}
|
7593 |
-
|
7594 |
-
function lifecycleMixin (Vue) {
|
7595 |
-
Vue.prototype._update = function (vnode, hydrating) {
|
7596 |
-
var vm = this;
|
7597 |
-
if (vm._isMounted) {
|
7598 |
-
callHook(vm, 'beforeUpdate');
|
7599 |
-
}
|
7600 |
-
var prevEl = vm.$el;
|
7601 |
-
var prevVnode = vm._vnode;
|
7602 |
-
var prevActiveInstance = activeInstance;
|
7603 |
-
activeInstance = vm;
|
7604 |
-
vm._vnode = vnode;
|
7605 |
-
// Vue.prototype.__patch__ is injected in entry points
|
7606 |
-
// based on the rendering backend used.
|
7607 |
-
if (!prevVnode) {
|
7608 |
-
// initial render
|
7609 |
-
vm.$el = vm.__patch__(
|
7610 |
-
vm.$el, vnode, hydrating, false /* removeOnly */,
|
7611 |
-
vm.$options._parentElm,
|
7612 |
-
vm.$options._refElm
|
7613 |
-
);
|
7614 |
-
// no need for the ref nodes after initial patch
|
7615 |
-
// this prevents keeping a detached DOM tree in memory (#5851)
|
7616 |
-
vm.$options._parentElm = vm.$options._refElm = null;
|
7617 |
-
} else {
|
7618 |
-
// updates
|
7619 |
-
vm.$el = vm.__patch__(prevVnode, vnode);
|
7620 |
-
}
|
7621 |
-
activeInstance = prevActiveInstance;
|
7622 |
-
// update __vue__ reference
|
7623 |
-
if (prevEl) {
|
7624 |
-
prevEl.__vue__ = null;
|
7625 |
-
}
|
7626 |
-
if (vm.$el) {
|
7627 |
-
vm.$el.__vue__ = vm;
|
7628 |
-
}
|
7629 |
-
// if parent is an HOC, update its $el as well
|
7630 |
-
if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
|
7631 |
-
vm.$parent.$el = vm.$el;
|
7632 |
-
}
|
7633 |
-
// updated hook is called by the scheduler to ensure that children are
|
7634 |
-
// updated in a parent's updated hook.
|
7635 |
-
};
|
7636 |
-
|
7637 |
-
Vue.prototype.$forceUpdate = function () {
|
7638 |
-
var vm = this;
|
7639 |
-
if (vm._watcher) {
|
7640 |
-
vm._watcher.update();
|
7641 |
-
}
|
7642 |
-
};
|
7643 |
-
|
7644 |
-
Vue.prototype.$destroy = function () {
|
7645 |
-
var vm = this;
|
7646 |
-
if (vm._isBeingDestroyed) {
|
7647 |
-
return
|
7648 |
-
}
|
7649 |
-
callHook(vm, 'beforeDestroy');
|
7650 |
-
vm._isBeingDestroyed = true;
|
7651 |
-
// remove self from parent
|
7652 |
-
var parent = vm.$parent;
|
7653 |
-
if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
|
7654 |
-
remove(parent.$children, vm);
|
7655 |
-
}
|
7656 |
-
// teardown watchers
|
7657 |
-
if (vm._watcher) {
|
7658 |
-
vm._watcher.teardown();
|
7659 |
-
}
|
7660 |
-
var i = vm._watchers.length;
|
7661 |
-
while (i--) {
|
7662 |
-
vm._watchers[i].teardown();
|
7663 |
-
}
|
7664 |
-
// remove reference from data ob
|
7665 |
-
// frozen object may not have observer.
|
7666 |
-
if (vm._data.__ob__) {
|
7667 |
-
vm._data.__ob__.vmCount--;
|
7668 |
-
}
|
7669 |
-
// call the last hook...
|
7670 |
-
vm._isDestroyed = true;
|
7671 |
-
// invoke destroy hooks on current rendered tree
|
7672 |
-
vm.__patch__(vm._vnode, null);
|
7673 |
-
// fire destroyed hook
|
7674 |
-
callHook(vm, 'destroyed');
|
7675 |
-
// turn off all instance listeners.
|
7676 |
-
vm.$off();
|
7677 |
-
// remove __vue__ reference
|
7678 |
-
if (vm.$el) {
|
7679 |
-
vm.$el.__vue__ = null;
|
7680 |
-
}
|
7681 |
-
// release circular reference (#6759)
|
7682 |
-
if (vm.$vnode) {
|
7683 |
-
vm.$vnode.parent = null;
|
7684 |
-
}
|
7685 |
-
};
|
7686 |
-
}
|
7687 |
-
|
7688 |
-
function mountComponent (
|
7689 |
-
vm,
|
7690 |
-
el,
|
7691 |
-
hydrating
|
7692 |
-
) {
|
7693 |
-
vm.$el = el;
|
7694 |
-
if (!vm.$options.render) {
|
7695 |
-
vm.$options.render = createEmptyVNode;
|
7696 |
-
if (process.env.NODE_ENV !== 'production') {
|
7697 |
-
/* istanbul ignore if */
|
7698 |
-
if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
|
7699 |
-
vm.$options.el || el) {
|
7700 |
-
warn(
|
7701 |
-
'You are using the runtime-only build of Vue where the template ' +
|
7702 |
-
'compiler is not available. Either pre-compile the templates into ' +
|
7703 |
-
'render functions, or use the compiler-included build.',
|
7704 |
-
vm
|
7705 |
-
);
|
7706 |
-
} else {
|
7707 |
-
warn(
|
7708 |
-
'Failed to mount component: template or render function not defined.',
|
7709 |
-
vm
|
7710 |
-
);
|
7711 |
-
}
|
7712 |
-
}
|
7713 |
-
}
|
7714 |
-
callHook(vm, 'beforeMount');
|
7715 |
-
|
7716 |
-
var updateComponent;
|
7717 |
-
/* istanbul ignore if */
|
7718 |
-
if (process.env.NODE_ENV !== 'production' && config.performance && mark) {
|
7719 |
-
updateComponent = function () {
|
7720 |
-
var name = vm._name;
|
7721 |
-
var id = vm._uid;
|
7722 |
-
var startTag = "vue-perf-start:" + id;
|
7723 |
-
var endTag = "vue-perf-end:" + id;
|
7724 |
-
|
7725 |
-
mark(startTag);
|
7726 |
-
var vnode = vm._render();
|
7727 |
-
mark(endTag);
|
7728 |
-
measure(("vue " + name + " render"), startTag, endTag);
|
7729 |
-
|
7730 |
-
mark(startTag);
|
7731 |
-
vm._update(vnode, hydrating);
|
7732 |
-
mark(endTag);
|
7733 |
-
measure(("vue " + name + " patch"), startTag, endTag);
|
7734 |
-
};
|
7735 |
-
} else {
|
7736 |
-
updateComponent = function () {
|
7737 |
-
vm._update(vm._render(), hydrating);
|
7738 |
-
};
|
7739 |
-
}
|
7740 |
-
|
7741 |
-
// we set this to vm._watcher inside the watcher's constructor
|
7742 |
-
// since the watcher's initial patch may call $forceUpdate (e.g. inside child
|
7743 |
-
// component's mounted hook), which relies on vm._watcher being already defined
|
7744 |
-
new Watcher(vm, updateComponent, noop, null, true /* isRenderWatcher */);
|
7745 |
-
hydrating = false;
|
7746 |
-
|
7747 |
-
// manually mounted instance, call mounted on self
|
7748 |
-
// mounted is called for render-created child components in its inserted hook
|
7749 |
-
if (vm.$vnode == null) {
|
7750 |
-
vm._isMounted = true;
|
7751 |
-
callHook(vm, 'mounted');
|
7752 |
-
}
|
7753 |
-
return vm
|
7754 |
-
}
|
7755 |
-
|
7756 |
-
function updateChildComponent (
|
7757 |
-
vm,
|
7758 |
-
propsData,
|
7759 |
-
listeners,
|
7760 |
-
parentVnode,
|
7761 |
-
renderChildren
|
7762 |
-
) {
|
7763 |
-
if (process.env.NODE_ENV !== 'production') {
|
7764 |
-
isUpdatingChildComponent = true;
|
7765 |
-
}
|
7766 |
-
|
7767 |
-
// determine whether component has slot children
|
7768 |
-
// we need to do this before overwriting $options._renderChildren
|
7769 |
-
var hasChildren = !!(
|
7770 |
-
renderChildren || // has new static slots
|
7771 |
-
vm.$options._renderChildren || // has old static slots
|
7772 |
-
parentVnode.data.scopedSlots || // has new scoped slots
|
7773 |
-
vm.$scopedSlots !== emptyObject // has old scoped slots
|
7774 |
-
);
|
7775 |
-
|
7776 |
-
vm.$options._parentVnode = parentVnode;
|
7777 |
-
vm.$vnode = parentVnode; // update vm's placeholder node without re-render
|
7778 |
-
|
7779 |
-
if (vm._vnode) { // update child tree's parent
|
7780 |
-
vm._vnode.parent = parentVnode;
|
7781 |
-
}
|
7782 |
-
vm.$options._renderChildren = renderChildren;
|
7783 |
-
|
7784 |
-
// update $attrs and $listeners hash
|
7785 |
-
// these are also reactive so they may trigger child update if the child
|
7786 |
-
// used them during render
|
7787 |
-
vm.$attrs = parentVnode.data.attrs || emptyObject;
|
7788 |
-
vm.$listeners = listeners || emptyObject;
|
7789 |
-
|
7790 |
-
// update props
|
7791 |
-
if (propsData && vm.$options.props) {
|
7792 |
-
toggleObserving(false);
|
7793 |
-
var props = vm._props;
|
7794 |
-
var propKeys = vm.$options._propKeys || [];
|
7795 |
-
for (var i = 0; i < propKeys.length; i++) {
|
7796 |
-
var key = propKeys[i];
|
7797 |
-
var propOptions = vm.$options.props; // wtf flow?
|
7798 |
-
props[key] = validateProp(key, propOptions, propsData, vm);
|
7799 |
-
}
|
7800 |
-
toggleObserving(true);
|
7801 |
-
// keep a copy of raw propsData
|
7802 |
-
vm.$options.propsData = propsData;
|
7803 |
-
}
|
7804 |
-
|
7805 |
-
// update listeners
|
7806 |
-
listeners = listeners || emptyObject;
|
7807 |
-
var oldListeners = vm.$options._parentListeners;
|
7808 |
-
vm.$options._parentListeners = listeners;
|
7809 |
-
updateComponentListeners(vm, listeners, oldListeners);
|
7810 |
-
|
7811 |
-
// resolve slots + force update if has children
|
7812 |
-
if (hasChildren) {
|
7813 |
-
vm.$slots = resolveSlots(renderChildren, parentVnode.context);
|
7814 |
-
vm.$forceUpdate();
|
7815 |
-
}
|
7816 |
-
|
7817 |
-
if (process.env.NODE_ENV !== 'production') {
|
7818 |
-
isUpdatingChildComponent = false;
|
7819 |
-
}
|
7820 |
-
}
|
7821 |
-
|
7822 |
-
function isInInactiveTree (vm) {
|
7823 |
-
while (vm && (vm = vm.$parent)) {
|
7824 |
-
if (vm._inactive) { return true }
|
7825 |
-
}
|
7826 |
-
return false
|
7827 |
-
}
|
7828 |
-
|
7829 |
-
function activateChildComponent (vm, direct) {
|
7830 |
-
if (direct) {
|
7831 |
-
vm._directInactive = false;
|
7832 |
-
if (isInInactiveTree(vm)) {
|
7833 |
-
return
|
7834 |
-
}
|
7835 |
-
} else if (vm._directInactive) {
|
7836 |
-
return
|
7837 |
-
}
|
7838 |
-
if (vm._inactive || vm._inactive === null) {
|
7839 |
-
vm._inactive = false;
|
7840 |
-
for (var i = 0; i < vm.$children.length; i++) {
|
7841 |
-
activateChildComponent(vm.$children[i]);
|
7842 |
-
}
|
7843 |
-
callHook(vm, 'activated');
|
7844 |
-
}
|
7845 |
-
}
|
7846 |
-
|
7847 |
-
function deactivateChildComponent (vm, direct) {
|
7848 |
-
if (direct) {
|
7849 |
-
vm._directInactive = true;
|
7850 |
-
if (isInInactiveTree(vm)) {
|
7851 |
-
return
|
7852 |
-
}
|
7853 |
-
}
|
7854 |
-
if (!vm._inactive) {
|
7855 |
-
vm._inactive = true;
|
7856 |
-
for (var i = 0; i < vm.$children.length; i++) {
|
7857 |
-
deactivateChildComponent(vm.$children[i]);
|
7858 |
-
}
|
7859 |
-
callHook(vm, 'deactivated');
|
7860 |
-
}
|
7861 |
-
}
|
7862 |
-
|
7863 |
-
function callHook (vm, hook) {
|
7864 |
-
// #7573 disable dep collection when invoking lifecycle hooks
|
7865 |
-
pushTarget();
|
7866 |
-
var handlers = vm.$options[hook];
|
7867 |
-
if (handlers) {
|
7868 |
-
for (var i = 0, j = handlers.length; i < j; i++) {
|
7869 |
-
try {
|
7870 |
-
handlers[i].call(vm);
|
7871 |
-
} catch (e) {
|
7872 |
-
handleError(e, vm, (hook + " hook"));
|
7873 |
-
}
|
7874 |
-
}
|
7875 |
-
}
|
7876 |
-
if (vm._hasHookEvent) {
|
7877 |
-
vm.$emit('hook:' + hook);
|
7878 |
-
}
|
7879 |
-
popTarget();
|
7880 |
-
}
|
7881 |
-
|
7882 |
-
/* */
|
7883 |
-
|
7884 |
-
|
7885 |
-
var MAX_UPDATE_COUNT = 100;
|
7886 |
-
|
7887 |
-
var queue = [];
|
7888 |
-
var activatedChildren = [];
|
7889 |
-
var has = {};
|
7890 |
-
var circular = {};
|
7891 |
-
var waiting = false;
|
7892 |
-
var flushing = false;
|
7893 |
-
var index = 0;
|
7894 |
-
|
7895 |
-
/**
|
7896 |
-
* Reset the scheduler's state.
|
7897 |
-
*/
|
7898 |
-
function resetSchedulerState () {
|
7899 |
-
index = queue.length = activatedChildren.length = 0;
|
7900 |
-
has = {};
|
7901 |
-
if (process.env.NODE_ENV !== 'production') {
|
7902 |
-
circular = {};
|
7903 |
-
}
|
7904 |
-
waiting = flushing = false;
|
7905 |
-
}
|
7906 |
-
|
7907 |
-
/**
|
7908 |
-
* Flush both queues and run the watchers.
|
7909 |
-
*/
|
7910 |
-
function flushSchedulerQueue () {
|
7911 |
-
flushing = true;
|
7912 |
-
var watcher, id;
|
7913 |
-
|
7914 |
-
// Sort queue before flush.
|
7915 |
-
// This ensures that:
|
7916 |
-
// 1. Components are updated from parent to child. (because parent is always
|
7917 |
-
// created before the child)
|
7918 |
-
// 2. A component's user watchers are run before its render watcher (because
|
7919 |
-
// user watchers are created before the render watcher)
|
7920 |
-
// 3. If a component is destroyed during a parent component's watcher run,
|
7921 |
-
// its watchers can be skipped.
|
7922 |
-
queue.sort(function (a, b) { return a.id - b.id; });
|
7923 |
-
|
7924 |
-
// do not cache length because more watchers might be pushed
|
7925 |
-
// as we run existing watchers
|
7926 |
-
for (index = 0; index < queue.length; index++) {
|
7927 |
-
watcher = queue[index];
|
7928 |
-
id = watcher.id;
|
7929 |
-
has[id] = null;
|
7930 |
-
watcher.run();
|
7931 |
-
// in dev build, check and stop circular updates.
|
7932 |
-
if (process.env.NODE_ENV !== 'production' && has[id] != null) {
|
7933 |
-
circular[id] = (circular[id] || 0) + 1;
|
7934 |
-
if (circular[id] > MAX_UPDATE_COUNT) {
|
7935 |
-
warn(
|
7936 |
-
'You may have an infinite update loop ' + (
|
7937 |
-
watcher.user
|
7938 |
-
? ("in watcher with expression \"" + (watcher.expression) + "\"")
|
7939 |
-
: "in a component render function."
|
7940 |
-
),
|
7941 |
-
watcher.vm
|
7942 |
-
);
|
7943 |
-
break
|
7944 |
-
}
|
7945 |
-
}
|
7946 |
-
}
|
7947 |
-
|
7948 |
-
// keep copies of post queues before resetting state
|
7949 |
-
var activatedQueue = activatedChildren.slice();
|
7950 |
-
var updatedQueue = queue.slice();
|
7951 |
-
|
7952 |
-
resetSchedulerState();
|
7953 |
-
|
7954 |
-
// call component updated and activated hooks
|
7955 |
-
callActivatedHooks(activatedQueue);
|
7956 |
-
callUpdatedHooks(updatedQueue);
|
7957 |
-
|
7958 |
-
// devtool hook
|
7959 |
-
/* istanbul ignore if */
|
7960 |
-
if (devtools && config.devtools) {
|
7961 |
-
devtools.emit('flush');
|
7962 |
-
}
|
7963 |
-
}
|
7964 |
-
|
7965 |
-
function callUpdatedHooks (queue) {
|
7966 |
-
var i = queue.length;
|
7967 |
-
while (i--) {
|
7968 |
-
var watcher = queue[i];
|
7969 |
-
var vm = watcher.vm;
|
7970 |
-
if (vm._watcher === watcher && vm._isMounted) {
|
7971 |
-
callHook(vm, 'updated');
|
7972 |
-
}
|
7973 |
-
}
|
7974 |
-
}
|
7975 |
-
|
7976 |
-
/**
|
7977 |
-
* Queue a kept-alive component that was activated during patch.
|
7978 |
-
* The queue will be processed after the entire tree has been patched.
|
7979 |
-
*/
|
7980 |
-
function queueActivatedComponent (vm) {
|
7981 |
-
// setting _inactive to false here so that a render function can
|
7982 |
-
// rely on checking whether it's in an inactive tree (e.g. router-view)
|
7983 |
-
vm._inactive = false;
|
7984 |
-
activatedChildren.push(vm);
|
7985 |
-
}
|
7986 |
-
|
7987 |
-
function callActivatedHooks (queue) {
|
7988 |
-
for (var i = 0; i < queue.length; i++) {
|
7989 |
-
queue[i]._inactive = true;
|
7990 |
-
activateChildComponent(queue[i], true /* true */);
|
7991 |
-
}
|
7992 |
-
}
|
7993 |
-
|
7994 |
-
/**
|
7995 |
-
* Push a watcher into the watcher queue.
|
7996 |
-
* Jobs with duplicate IDs will be skipped unless it's
|
7997 |
-
* pushed when the queue is being flushed.
|
7998 |
-
*/
|
7999 |
-
function queueWatcher (watcher) {
|
8000 |
-
var id = watcher.id;
|
8001 |
-
if (has[id] == null) {
|
8002 |
-
has[id] = true;
|
8003 |
-
if (!flushing) {
|
8004 |
-
queue.push(watcher);
|
8005 |
-
} else {
|
8006 |
-
// if already flushing, splice the watcher based on its id
|
8007 |
-
// if already past its id, it will be run next immediately.
|
8008 |
-
var i = queue.length - 1;
|
8009 |
-
while (i > index && queue[i].id > watcher.id) {
|
8010 |
-
i--;
|
8011 |
-
}
|
8012 |
-
queue.splice(i + 1, 0, watcher);
|
8013 |
-
}
|
8014 |
-
// queue the flush
|
8015 |
-
if (!waiting) {
|
8016 |
-
waiting = true;
|
8017 |
-
nextTick(flushSchedulerQueue);
|
8018 |
-
}
|
8019 |
-
}
|
8020 |
-
}
|
8021 |
-
|
8022 |
-
/* */
|
8023 |
-
|
8024 |
-
var uid$1 = 0;
|
8025 |
-
|
8026 |
-
/**
|
8027 |
-
* A watcher parses an expression, collects dependencies,
|
8028 |
-
* and fires callback when the expression value changes.
|
8029 |
-
* This is used for both the $watch() api and directives.
|
8030 |
-
*/
|
8031 |
-
var Watcher = function Watcher (
|
8032 |
-
vm,
|
8033 |
-
expOrFn,
|
8034 |
-
cb,
|
8035 |
-
options,
|
8036 |
-
isRenderWatcher
|
8037 |
-
) {
|
8038 |
-
this.vm = vm;
|
8039 |
-
if (isRenderWatcher) {
|
8040 |
-
vm._watcher = this;
|
8041 |
-
}
|
8042 |
-
vm._watchers.push(this);
|
8043 |
-
// options
|
8044 |
-
if (options) {
|
8045 |
-
this.deep = !!options.deep;
|
8046 |
-
this.user = !!options.user;
|
8047 |
-
this.lazy = !!options.lazy;
|
8048 |
-
this.sync = !!options.sync;
|
8049 |
-
} else {
|
8050 |
-
this.deep = this.user = this.lazy = this.sync = false;
|
8051 |
-
}
|
8052 |
-
this.cb = cb;
|
8053 |
-
this.id = ++uid$1; // uid for batching
|
8054 |
-
this.active = true;
|
8055 |
-
this.dirty = this.lazy; // for lazy watchers
|
8056 |
-
this.deps = [];
|
8057 |
-
this.newDeps = [];
|
8058 |
-
this.depIds = new _Set();
|
8059 |
-
this.newDepIds = new _Set();
|
8060 |
-
this.expression = process.env.NODE_ENV !== 'production'
|
8061 |
-
? expOrFn.toString()
|
8062 |
-
: '';
|
8063 |
-
// parse expression for getter
|
8064 |
-
if (typeof expOrFn === 'function') {
|
8065 |
-
this.getter = expOrFn;
|
8066 |
-
} else {
|
8067 |
-
this.getter = parsePath(expOrFn);
|
8068 |
-
if (!this.getter) {
|
8069 |
-
this.getter = function () {};
|
8070 |
-
process.env.NODE_ENV !== 'production' && warn(
|
8071 |
-
"Failed watching path: \"" + expOrFn + "\" " +
|
8072 |
-
'Watcher only accepts simple dot-delimited paths. ' +
|
8073 |
-
'For full control, use a function instead.',
|
8074 |
-
vm
|
8075 |
-
);
|
8076 |
-
}
|
8077 |
-
}
|
8078 |
-
this.value = this.lazy
|
8079 |
-
? undefined
|
8080 |
-
: this.get();
|
8081 |
-
};
|
8082 |
-
|
8083 |
-
/**
|
8084 |
-
* Evaluate the getter, and re-collect dependencies.
|
8085 |
-
*/
|
8086 |
-
Watcher.prototype.get = function get () {
|
8087 |
-
pushTarget(this);
|
8088 |
-
var value;
|
8089 |
-
var vm = this.vm;
|
8090 |
-
try {
|
8091 |
-
value = this.getter.call(vm, vm);
|
8092 |
-
} catch (e) {
|
8093 |
-
if (this.user) {
|
8094 |
-
handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
|
8095 |
-
} else {
|
8096 |
-
throw e
|
8097 |
-
}
|
8098 |
-
} finally {
|
8099 |
-
// "touch" every property so they are all tracked as
|
8100 |
-
// dependencies for deep watching
|
8101 |
-
if (this.deep) {
|
8102 |
-
traverse(value);
|
8103 |
-
}
|
8104 |
-
popTarget();
|
8105 |
-
this.cleanupDeps();
|
8106 |
-
}
|
8107 |
-
return value
|
8108 |
-
};
|
8109 |
-
|
8110 |
-
/**
|
8111 |
-
* Add a dependency to this directive.
|
8112 |
-
*/
|
8113 |
-
Watcher.prototype.addDep = function addDep (dep) {
|
8114 |
-
var id = dep.id;
|
8115 |
-
if (!this.newDepIds.has(id)) {
|
8116 |
-
this.newDepIds.add(id);
|
8117 |
-
this.newDeps.push(dep);
|
8118 |
-
if (!this.depIds.has(id)) {
|
8119 |
-
dep.addSub(this);
|
8120 |
-
}
|
8121 |
-
}
|
8122 |
-
};
|
8123 |
-
|
8124 |
-
/**
|
8125 |
-
* Clean up for dependency collection.
|
8126 |
-
*/
|
8127 |
-
Watcher.prototype.cleanupDeps = function cleanupDeps () {
|
8128 |
-
var this$1 = this;
|
8129 |
-
|
8130 |
-
var i = this.deps.length;
|
8131 |
-
while (i--) {
|
8132 |
-
var dep = this$1.deps[i];
|
8133 |
-
if (!this$1.newDepIds.has(dep.id)) {
|
8134 |
-
dep.removeSub(this$1);
|
8135 |
-
}
|
8136 |
-
}
|
8137 |
-
var tmp = this.depIds;
|
8138 |
-
this.depIds = this.newDepIds;
|
8139 |
-
this.newDepIds = tmp;
|
8140 |
-
this.newDepIds.clear();
|
8141 |
-
tmp = this.deps;
|
8142 |
-
this.deps = this.newDeps;
|
8143 |
-
this.newDeps = tmp;
|
8144 |
-
this.newDeps.length = 0;
|
8145 |
-
};
|
8146 |
-
|
8147 |
-
/**
|
8148 |
-
* Subscriber interface.
|
8149 |
-
* Will be called when a dependency changes.
|
8150 |
-
*/
|
8151 |
-
Watcher.prototype.update = function update () {
|
8152 |
-
/* istanbul ignore else */
|
8153 |
-
if (this.lazy) {
|
8154 |
-
this.dirty = true;
|
8155 |
-
} else if (this.sync) {
|
8156 |
-
this.run();
|
8157 |
-
} else {
|
8158 |
-
queueWatcher(this);
|
8159 |
-
}
|
8160 |
-
};
|
8161 |
-
|
8162 |
-
/**
|
8163 |
-
* Scheduler job interface.
|
8164 |
-
* Will be called by the scheduler.
|
8165 |
-
*/
|
8166 |
-
Watcher.prototype.run = function run () {
|
8167 |
-
if (this.active) {
|
8168 |
-
var value = this.get();
|
8169 |
-
if (
|
8170 |
-
value !== this.value ||
|
8171 |
-
// Deep watchers and watchers on Object/Arrays should fire even
|
8172 |
-
// when the value is the same, because the value may
|
8173 |
-
// have mutated.
|
8174 |
-
isObject(value) ||
|
8175 |
-
this.deep
|
8176 |
-
) {
|
8177 |
-
// set new value
|
8178 |
-
var oldValue = this.value;
|
8179 |
-
this.value = value;
|
8180 |
-
if (this.user) {
|
8181 |
-
try {
|
8182 |
-
this.cb.call(this.vm, value, oldValue);
|
8183 |
-
} catch (e) {
|
8184 |
-
handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
|
8185 |
-
}
|
8186 |
-
} else {
|
8187 |
-
this.cb.call(this.vm, value, oldValue);
|
8188 |
-
}
|
8189 |
-
}
|
8190 |
-
}
|
8191 |
-
};
|
8192 |
-
|
8193 |
-
/**
|
8194 |
-
* Evaluate the value of the watcher.
|
8195 |
-
* This only gets called for lazy watchers.
|
8196 |
-
*/
|
8197 |
-
Watcher.prototype.evaluate = function evaluate () {
|
8198 |
-
this.value = this.get();
|
8199 |
-
this.dirty = false;
|
8200 |
-
};
|
8201 |
-
|
8202 |
-
/**
|
8203 |
-
* Depend on all deps collected by this watcher.
|
8204 |
-
*/
|
8205 |
-
Watcher.prototype.depend = function depend () {
|
8206 |
-
var this$1 = this;
|
8207 |
-
|
8208 |
-
var i = this.deps.length;
|
8209 |
-
while (i--) {
|
8210 |
-
this$1.deps[i].depend();
|
8211 |
-
}
|
8212 |
-
};
|
8213 |
-
|
8214 |
-
/**
|
8215 |
-
* Remove self from all dependencies' subscriber list.
|
8216 |
-
*/
|
8217 |
-
Watcher.prototype.teardown = function teardown () {
|
8218 |
-
var this$1 = this;
|
8219 |
-
|
8220 |
-
if (this.active) {
|
8221 |
-
// remove self from vm's watcher list
|
8222 |
-
// this is a somewhat expensive operation so we skip it
|
8223 |
-
// if the vm is being destroyed.
|
8224 |
-
if (!this.vm._isBeingDestroyed) {
|
8225 |
-
remove(this.vm._watchers, this);
|
8226 |
-
}
|
8227 |
-
var i = this.deps.length;
|
8228 |
-
while (i--) {
|
8229 |
-
this$1.deps[i].removeSub(this$1);
|
8230 |
-
}
|
8231 |
-
this.active = false;
|
8232 |
-
}
|
8233 |
-
};
|
8234 |
-
|
8235 |
-
/* */
|
8236 |
-
|
8237 |
-
var sharedPropertyDefinition = {
|
8238 |
-
enumerable: true,
|
8239 |
-
configurable: true,
|
8240 |
-
get: noop,
|
8241 |
-
set: noop
|
8242 |
-
};
|
8243 |
-
|
8244 |
-
function proxy (target, sourceKey, key) {
|
8245 |
-
sharedPropertyDefinition.get = function proxyGetter () {
|
8246 |
-
return this[sourceKey][key]
|
8247 |
-
};
|
8248 |
-
sharedPropertyDefinition.set = function proxySetter (val) {
|
8249 |
-
this[sourceKey][key] = val;
|
8250 |
-
};
|
8251 |
-
Object.defineProperty(target, key, sharedPropertyDefinition);
|
8252 |
-
}
|
8253 |
-
|
8254 |
-
function initState (vm) {
|
8255 |
-
vm._watchers = [];
|
8256 |
-
var opts = vm.$options;
|
8257 |
-
if (opts.props) { initProps(vm, opts.props); }
|
8258 |
-
if (opts.methods) { initMethods(vm, opts.methods); }
|
8259 |
-
if (opts.data) {
|
8260 |
-
initData(vm);
|
8261 |
-
} else {
|
8262 |
-
observe(vm._data = {}, true /* asRootData */);
|
8263 |
-
}
|
8264 |
-
if (opts.computed) { initComputed(vm, opts.computed); }
|
8265 |
-
if (opts.watch && opts.watch !== nativeWatch) {
|
8266 |
-
initWatch(vm, opts.watch);
|
8267 |
-
}
|
8268 |
-
}
|
8269 |
-
|
8270 |
-
function initProps (vm, propsOptions) {
|
8271 |
-
var propsData = vm.$options.propsData || {};
|
8272 |
-
var props = vm._props = {};
|
8273 |
-
// cache prop keys so that future props updates can iterate using Array
|
8274 |
-
// instead of dynamic object key enumeration.
|
8275 |
-
var keys = vm.$options._propKeys = [];
|
8276 |
-
var isRoot = !vm.$parent;
|
8277 |
-
// root instance props should be converted
|
8278 |
-
if (!isRoot) {
|
8279 |
-
toggleObserving(false);
|
8280 |
-
}
|
8281 |
-
var loop = function ( key ) {
|
8282 |
-
keys.push(key);
|
8283 |
-
var value = validateProp(key, propsOptions, propsData, vm);
|
8284 |
-
/* istanbul ignore else */
|
8285 |
-
if (process.env.NODE_ENV !== 'production') {
|
8286 |
-
var hyphenatedKey = hyphenate(key);
|
8287 |
-
if (isReservedAttribute(hyphenatedKey) ||
|
8288 |
-
config.isReservedAttr(hyphenatedKey)) {
|
8289 |
-
warn(
|
8290 |
-
("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
|
8291 |
-
vm
|
8292 |
-
);
|
8293 |
-
}
|
8294 |
-
defineReactive(props, key, value, function () {
|
8295 |
-
if (vm.$parent && !isUpdatingChildComponent) {
|
8296 |
-
warn(
|
8297 |
-
"Avoid mutating a prop directly since the value will be " +
|
8298 |
-
"overwritten whenever the parent component re-renders. " +
|
8299 |
-
"Instead, use a data or computed property based on the prop's " +
|
8300 |
-
"value. Prop being mutated: \"" + key + "\"",
|
8301 |
-
vm
|
8302 |
-
);
|
8303 |
-
}
|
8304 |
-
});
|
8305 |
-
} else {
|
8306 |
-
defineReactive(props, key, value);
|
8307 |
-
}
|
8308 |
-
// static props are already proxied on the component's prototype
|
8309 |
-
// during Vue.extend(). We only need to proxy props defined at
|
8310 |
-
// instantiation here.
|
8311 |
-
if (!(key in vm)) {
|
8312 |
-
proxy(vm, "_props", key);
|
8313 |
-
}
|
8314 |
-
};
|
8315 |
-
|
8316 |
-
for (var key in propsOptions) loop( key );
|
8317 |
-
toggleObserving(true);
|
8318 |
-
}
|
8319 |
-
|
8320 |
-
function initData (vm) {
|
8321 |
-
var data = vm.$options.data;
|
8322 |
-
data = vm._data = typeof data === 'function'
|
8323 |
-
? getData(data, vm)
|
8324 |
-
: data || {};
|
8325 |
-
if (!isPlainObject(data)) {
|
8326 |
-
data = {};
|
8327 |
-
process.env.NODE_ENV !== 'production' && warn(
|
8328 |
-
'data functions should return an object:\n' +
|
8329 |
-
'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
|
8330 |
-
vm
|
8331 |
-
);
|
8332 |
-
}
|
8333 |
-
// proxy data on instance
|
8334 |
-
var keys = Object.keys(data);
|
8335 |
-
var props = vm.$options.props;
|
8336 |
-
var methods = vm.$options.methods;
|
8337 |
-
var i = keys.length;
|
8338 |
-
while (i--) {
|
8339 |
-
var key = keys[i];
|
8340 |
-
if (process.env.NODE_ENV !== 'production') {
|
8341 |
-
if (methods && hasOwn(methods, key)) {
|
8342 |
-
warn(
|
8343 |
-
("Method \"" + key + "\" has already been defined as a data property."),
|
8344 |
-
vm
|
8345 |
-
);
|
8346 |
-
}
|
8347 |
-
}
|
8348 |
-
if (props && hasOwn(props, key)) {
|
8349 |
-
process.env.NODE_ENV !== 'production' && warn(
|
8350 |
-
"The data property \"" + key + "\" is already declared as a prop. " +
|
8351 |
-
"Use prop default value instead.",
|
8352 |
-
vm
|
8353 |
-
);
|
8354 |
-
} else if (!isReserved(key)) {
|
8355 |
-
proxy(vm, "_data", key);
|
8356 |
-
}
|
8357 |
-
}
|
8358 |
-
// observe data
|
8359 |
-
observe(data, true /* asRootData */);
|
8360 |
-
}
|
8361 |
-
|
8362 |
-
function getData (data, vm) {
|
8363 |
-
// #7573 disable dep collection when invoking data getters
|
8364 |
-
pushTarget();
|
8365 |
-
try {
|
8366 |
-
return data.call(vm, vm)
|
8367 |
-
} catch (e) {
|
8368 |
-
handleError(e, vm, "data()");
|
8369 |
-
return {}
|
8370 |
-
} finally {
|
8371 |
-
popTarget();
|
8372 |
-
}
|
8373 |
-
}
|
8374 |
-
|
8375 |
-
var computedWatcherOptions = { lazy: true };
|
8376 |
-
|
8377 |
-
function initComputed (vm, computed) {
|
8378 |
-
// $flow-disable-line
|
8379 |
-
var watchers = vm._computedWatchers = Object.create(null);
|
8380 |
-
// computed properties are just getters during SSR
|
8381 |
-
var isSSR = isServerRendering();
|
8382 |
-
|
8383 |
-
for (var key in computed) {
|
8384 |
-
var userDef = computed[key];
|
8385 |
-
var getter = typeof userDef === 'function' ? userDef : userDef.get;
|
8386 |
-
if (process.env.NODE_ENV !== 'production' && getter == null) {
|
8387 |
-
warn(
|
8388 |
-
("Getter is missing for computed property \"" + key + "\"."),
|
8389 |
-
vm
|
8390 |
-
);
|
8391 |
-
}
|
8392 |
-
|
8393 |
-
if (!isSSR) {
|
8394 |
-
// create internal watcher for the computed property.
|
8395 |
-
watchers[key] = new Watcher(
|
8396 |
-
vm,
|
8397 |
-
getter || noop,
|
8398 |
-
noop,
|
8399 |
-
computedWatcherOptions
|
8400 |
-
);
|
8401 |
-
}
|
8402 |
-
|
8403 |
-
// component-defined computed properties are already defined on the
|
8404 |
-
// component prototype. We only need to define computed properties defined
|
8405 |
-
// at instantiation here.
|
8406 |
-
if (!(key in vm)) {
|
8407 |
-
defineComputed(vm, key, userDef);
|
8408 |
-
} else if (process.env.NODE_ENV !== 'production') {
|
8409 |
-
if (key in vm.$data) {
|
8410 |
-
warn(("The computed property \"" + key + "\" is already defined in data."), vm);
|
8411 |
-
} else if (vm.$options.props && key in vm.$options.props) {
|
8412 |
-
warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
|
8413 |
-
}
|
8414 |
-
}
|
8415 |
-
}
|
8416 |
-
}
|
8417 |
-
|
8418 |
-
function defineComputed (
|
8419 |
-
target,
|
8420 |
-
key,
|
8421 |
-
userDef
|
8422 |
-
) {
|
8423 |
-
var shouldCache = !isServerRendering();
|
8424 |
-
if (typeof userDef === 'function') {
|
8425 |
-
sharedPropertyDefinition.get = shouldCache
|
8426 |
-
? createComputedGetter(key)
|
8427 |
-
: userDef;
|
8428 |
-
sharedPropertyDefinition.set = noop;
|
8429 |
-
} else {
|
8430 |
-
sharedPropertyDefinition.get = userDef.get
|
8431 |
-
? shouldCache && userDef.cache !== false
|
8432 |
-
? createComputedGetter(key)
|
8433 |
-
: userDef.get
|
8434 |
-
: noop;
|
8435 |
-
sharedPropertyDefinition.set = userDef.set
|
8436 |
-
? userDef.set
|
8437 |
-
: noop;
|
8438 |
-
}
|
8439 |
-
if (process.env.NODE_ENV !== 'production' &&
|
8440 |
-
sharedPropertyDefinition.set === noop) {
|
8441 |
-
sharedPropertyDefinition.set = function () {
|
8442 |
-
warn(
|
8443 |
-
("Computed property \"" + key + "\" was assigned to but it has no setter."),
|
8444 |
-
this
|
8445 |
-
);
|
8446 |
-
};
|
8447 |
-
}
|
8448 |
-
Object.defineProperty(target, key, sharedPropertyDefinition);
|
8449 |
-
}
|
8450 |
-
|
8451 |
-
function createComputedGetter (key) {
|
8452 |
-
return function computedGetter () {
|
8453 |
-
var watcher = this._computedWatchers && this._computedWatchers[key];
|
8454 |
-
if (watcher) {
|
8455 |
-
if (watcher.dirty) {
|
8456 |
-
watcher.evaluate();
|
8457 |
-
}
|
8458 |
-
if (Dep.target) {
|
8459 |
-
watcher.depend();
|
8460 |
-
}
|
8461 |
-
return watcher.value
|
8462 |
-
}
|
8463 |
-
}
|
8464 |
-
}
|
8465 |
-
|
8466 |
-
function initMethods (vm, methods) {
|
8467 |
-
var props = vm.$options.props;
|
8468 |
-
for (var key in methods) {
|
8469 |
-
if (process.env.NODE_ENV !== 'production') {
|
8470 |
-
if (methods[key] == null) {
|
8471 |
-
warn(
|
8472 |
-
"Method \"" + key + "\" has an undefined value in the component definition. " +
|
8473 |
-
"Did you reference the function correctly?",
|
8474 |
-
vm
|
8475 |
-
);
|
8476 |
-
}
|
8477 |
-
if (props && hasOwn(props, key)) {
|
8478 |
-
warn(
|
8479 |
-
("Method \"" + key + "\" has already been defined as a prop."),
|
8480 |
-
vm
|
8481 |
-
);
|
8482 |
-
}
|
8483 |
-
if ((key in vm) && isReserved(key)) {
|
8484 |
-
warn(
|
8485 |
-
"Method \"" + key + "\" conflicts with an existing Vue instance method. " +
|
8486 |
-
"Avoid defining component methods that start with _ or $."
|
8487 |
-
);
|
8488 |
-
}
|
8489 |
-
}
|
8490 |
-
vm[key] = methods[key] == null ? noop : bind(methods[key], vm);
|
8491 |
-
}
|
8492 |
-
}
|
8493 |
-
|
8494 |
-
function initWatch (vm, watch) {
|
8495 |
-
for (var key in watch) {
|
8496 |
-
var handler = watch[key];
|
8497 |
-
if (Array.isArray(handler)) {
|
8498 |
-
for (var i = 0; i < handler.length; i++) {
|
8499 |
-
createWatcher(vm, key, handler[i]);
|
8500 |
-
}
|
8501 |
-
} else {
|
8502 |
-
createWatcher(vm, key, handler);
|
8503 |
-
}
|
8504 |
-
}
|
8505 |
-
}
|
8506 |
-
|
8507 |
-
function createWatcher (
|
8508 |
-
vm,
|
8509 |
-
expOrFn,
|
8510 |
-
handler,
|
8511 |
-
options
|
8512 |
-
) {
|
8513 |
-
if (isPlainObject(handler)) {
|
8514 |
-
options = handler;
|
8515 |
-
handler = handler.handler;
|
8516 |
-
}
|
8517 |
-
if (typeof handler === 'string') {
|
8518 |
-
handler = vm[handler];
|
8519 |
-
}
|
8520 |
-
return vm.$watch(expOrFn, handler, options)
|
8521 |
-
}
|
8522 |
-
|
8523 |
-
function stateMixin (Vue) {
|
8524 |
-
// flow somehow has problems with directly declared definition object
|
8525 |
-
// when using Object.defineProperty, so we have to procedurally build up
|
8526 |
-
// the object here.
|
8527 |
-
var dataDef = {};
|
8528 |
-
dataDef.get = function () { return this._data };
|
8529 |
-
var propsDef = {};
|
8530 |
-
propsDef.get = function () { return this._props };
|
8531 |
-
if (process.env.NODE_ENV !== 'production') {
|
8532 |
-
dataDef.set = function (newData) {
|
8533 |
-
warn(
|
8534 |
-
'Avoid replacing instance root $data. ' +
|
8535 |
-
'Use nested data properties instead.',
|
8536 |
-
this
|
8537 |
-
);
|
8538 |
-
};
|
8539 |
-
propsDef.set = function () {
|
8540 |
-
warn("$props is readonly.", this);
|
8541 |
-
};
|
8542 |
-
}
|
8543 |
-
Object.defineProperty(Vue.prototype, '$data', dataDef);
|
8544 |
-
Object.defineProperty(Vue.prototype, '$props', propsDef);
|
8545 |
-
|
8546 |
-
Vue.prototype.$set = set;
|
8547 |
-
Vue.prototype.$delete = del;
|
8548 |
-
|
8549 |
-
Vue.prototype.$watch = function (
|
8550 |
-
expOrFn,
|
8551 |
-
cb,
|
8552 |
-
options
|
8553 |
-
) {
|
8554 |
-
var vm = this;
|
8555 |
-
if (isPlainObject(cb)) {
|
8556 |
-
return createWatcher(vm, expOrFn, cb, options)
|
8557 |
-
}
|
8558 |
-
options = options || {};
|
8559 |
-
options.user = true;
|
8560 |
-
var watcher = new Watcher(vm, expOrFn, cb, options);
|
8561 |
-
if (options.immediate) {
|
8562 |
-
cb.call(vm, watcher.value);
|
8563 |
-
}
|
8564 |
-
return function unwatchFn () {
|
8565 |
-
watcher.teardown();
|
8566 |
-
}
|
8567 |
-
};
|
8568 |
-
}
|
8569 |
-
|
8570 |
-
/* */
|
8571 |
-
|
8572 |
-
function initProvide (vm) {
|
8573 |
-
var provide = vm.$options.provide;
|
8574 |
-
if (provide) {
|
8575 |
-
vm._provided = typeof provide === 'function'
|
8576 |
-
? provide.call(vm)
|
8577 |
-
: provide;
|
8578 |
-
}
|
8579 |
-
}
|
8580 |
-
|
8581 |
-
function initInjections (vm) {
|
8582 |
-
var result = resolveInject(vm.$options.inject, vm);
|
8583 |
-
if (result) {
|
8584 |
-
toggleObserving(false);
|
8585 |
-
Object.keys(result).forEach(function (key) {
|
8586 |
-
/* istanbul ignore else */
|
8587 |
-
if (process.env.NODE_ENV !== 'production') {
|
8588 |
-
defineReactive(vm, key, result[key], function () {
|
8589 |
-
warn(
|
8590 |
-
"Avoid mutating an injected value directly since the changes will be " +
|
8591 |
-
"overwritten whenever the provided component re-renders. " +
|
8592 |
-
"injection being mutated: \"" + key + "\"",
|
8593 |
-
vm
|
8594 |
-
);
|
8595 |
-
});
|
8596 |
-
} else {
|
8597 |
-
defineReactive(vm, key, result[key]);
|
8598 |
-
}
|
8599 |
-
});
|
8600 |
-
toggleObserving(true);
|
8601 |
-
}
|
8602 |
-
}
|
8603 |
-
|
8604 |
-
function resolveInject (inject, vm) {
|
8605 |
-
if (inject) {
|
8606 |
-
// inject is :any because flow is not smart enough to figure out cached
|
8607 |
-
var result = Object.create(null);
|
8608 |
-
var keys = hasSymbol
|
8609 |
-
? Reflect.ownKeys(inject).filter(function (key) {
|
8610 |
-
/* istanbul ignore next */
|
8611 |
-
return Object.getOwnPropertyDescriptor(inject, key).enumerable
|
8612 |
-
})
|
8613 |
-
: Object.keys(inject);
|
8614 |
-
|
8615 |
-
for (var i = 0; i < keys.length; i++) {
|
8616 |
-
var key = keys[i];
|
8617 |
-
var provideKey = inject[key].from;
|
8618 |
-
var source = vm;
|
8619 |
-
while (source) {
|
8620 |
-
if (source._provided && hasOwn(source._provided, provideKey)) {
|
8621 |
-
result[key] = source._provided[provideKey];
|
8622 |
-
break
|
8623 |
-
}
|
8624 |
-
source = source.$parent;
|
8625 |
-
}
|
8626 |
-
if (!source) {
|
8627 |
-
if ('default' in inject[key]) {
|
8628 |
-
var provideDefault = inject[key].default;
|
8629 |
-
result[key] = typeof provideDefault === 'function'
|
8630 |
-
? provideDefault.call(vm)
|
8631 |
-
: provideDefault;
|
8632 |
-
} else if (process.env.NODE_ENV !== 'production') {
|
8633 |
-
warn(("Injection \"" + key + "\" not found"), vm);
|
8634 |
-
}
|
8635 |
-
}
|
8636 |
-
}
|
8637 |
-
return result
|
8638 |
-
}
|
8639 |
-
}
|
8640 |
-
|
8641 |
-
/* */
|
8642 |
-
|
8643 |
-
/**
|
8644 |
-
* Runtime helper for rendering v-for lists.
|
8645 |
-
*/
|
8646 |
-
function renderList (
|
8647 |
-
val,
|
8648 |
-
render
|
8649 |
-
) {
|
8650 |
-
var ret, i, l, keys, key;
|
8651 |
-
if (Array.isArray(val) || typeof val === 'string') {
|
8652 |
-
ret = new Array(val.length);
|
8653 |
-
for (i = 0, l = val.length; i < l; i++) {
|
8654 |
-
ret[i] = render(val[i], i);
|
8655 |
-
}
|
8656 |
-
} else if (typeof val === 'number') {
|
8657 |
-
ret = new Array(val);
|
8658 |
-
for (i = 0; i < val; i++) {
|
8659 |
-
ret[i] = render(i + 1, i);
|
8660 |
-
}
|
8661 |
-
} else if (isObject(val)) {
|
8662 |
-
keys = Object.keys(val);
|
8663 |
-
ret = new Array(keys.length);
|
8664 |
-
for (i = 0, l = keys.length; i < l; i++) {
|
8665 |
-
key = keys[i];
|
8666 |
-
ret[i] = render(val[key], key, i);
|
8667 |
-
}
|
8668 |
-
}
|
8669 |
-
if (isDef(ret)) {
|
8670 |
-
(ret)._isVList = true;
|
8671 |
-
}
|
8672 |
-
return ret
|
8673 |
-
}
|
8674 |
-
|
8675 |
-
/* */
|
8676 |
-
|
8677 |
-
/**
|
8678 |
-
* Runtime helper for rendering <slot>
|
8679 |
-
*/
|
8680 |
-
function renderSlot (
|
8681 |
-
name,
|
8682 |
-
fallback,
|
8683 |
-
props,
|
8684 |
-
bindObject
|
8685 |
-
) {
|
8686 |
-
var scopedSlotFn = this.$scopedSlots[name];
|
8687 |
-
var nodes;
|
8688 |
-
if (scopedSlotFn) { // scoped slot
|
8689 |
-
props = props || {};
|
8690 |
-
if (bindObject) {
|
8691 |
-
if (process.env.NODE_ENV !== 'production' && !isObject(bindObject)) {
|
8692 |
-
warn(
|
8693 |
-
'slot v-bind without argument expects an Object',
|
8694 |
-
this
|
8695 |
-
);
|
8696 |
-
}
|
8697 |
-
props = extend(extend({}, bindObject), props);
|
8698 |
-
}
|
8699 |
-
nodes = scopedSlotFn(props) || fallback;
|
8700 |
-
} else {
|
8701 |
-
var slotNodes = this.$slots[name];
|
8702 |
-
// warn duplicate slot usage
|
8703 |
-
if (slotNodes) {
|
8704 |
-
if (process.env.NODE_ENV !== 'production' && slotNodes._rendered) {
|
8705 |
-
warn(
|
8706 |
-
"Duplicate presence of slot \"" + name + "\" found in the same render tree " +
|
8707 |
-
"- this will likely cause render errors.",
|
8708 |
-
this
|
8709 |
-
);
|
8710 |
-
}
|
8711 |
-
slotNodes._rendered = true;
|
8712 |
-
}
|
8713 |
-
nodes = slotNodes || fallback;
|
8714 |
-
}
|
8715 |
-
|
8716 |
-
var target = props && props.slot;
|
8717 |
-
if (target) {
|
8718 |
-
return this.$createElement('template', { slot: target }, nodes)
|
8719 |
-
} else {
|
8720 |
-
return nodes
|
8721 |
-
}
|
8722 |
-
}
|
8723 |
-
|
8724 |
-
/* */
|
8725 |
-
|
8726 |
-
/**
|
8727 |
-
* Runtime helper for resolving filters
|
8728 |
-
*/
|
8729 |
-
function resolveFilter (id) {
|
8730 |
-
return resolveAsset(this.$options, 'filters', id, true) || identity
|
8731 |
-
}
|
8732 |
-
|
8733 |
-
/* */
|
8734 |
-
|
8735 |
-
function isKeyNotMatch (expect, actual) {
|
8736 |
-
if (Array.isArray(expect)) {
|
8737 |
-
return expect.indexOf(actual) === -1
|
8738 |
-
} else {
|
8739 |
-
return expect !== actual
|
8740 |
-
}
|
8741 |
-
}
|
8742 |
-
|
8743 |
-
/**
|
8744 |
-
* Runtime helper for checking keyCodes from config.
|
8745 |
-
* exposed as Vue.prototype._k
|
8746 |
-
* passing in eventKeyName as last argument separately for backwards compat
|
8747 |
-
*/
|
8748 |
-
function checkKeyCodes (
|
8749 |
-
eventKeyCode,
|
8750 |
-
key,
|
8751 |
-
builtInKeyCode,
|
8752 |
-
eventKeyName,
|
8753 |
-
builtInKeyName
|
8754 |
-
) {
|
8755 |
-
var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
|
8756 |
-
if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
|
8757 |
-
return isKeyNotMatch(builtInKeyName, eventKeyName)
|
8758 |
-
} else if (mappedKeyCode) {
|
8759 |
-
return isKeyNotMatch(mappedKeyCode, eventKeyCode)
|
8760 |
-
} else if (eventKeyName) {
|
8761 |
-
return hyphenate(eventKeyName) !== key
|
8762 |
-
}
|
8763 |
-
}
|
8764 |
-
|
8765 |
-
/* */
|
8766 |
-
|
8767 |
-
/**
|
8768 |
-
* Runtime helper for merging v-bind="object" into a VNode's data.
|
8769 |
-
*/
|
8770 |
-
function bindObjectProps (
|
8771 |
-
data,
|
8772 |
-
tag,
|
8773 |
-
value,
|
8774 |
-
asProp,
|
8775 |
-
isSync
|
8776 |
-
) {
|
8777 |
-
if (value) {
|
8778 |
-
if (!isObject(value)) {
|
8779 |
-
process.env.NODE_ENV !== 'production' && warn(
|
8780 |
-
'v-bind without argument expects an Object or Array value',
|
8781 |
-
this
|
8782 |
-
);
|
8783 |
-
} else {
|
8784 |
-
if (Array.isArray(value)) {
|
8785 |
-
value = toObject(value);
|
8786 |
-
}
|
8787 |
-
var hash;
|
8788 |
-
var loop = function ( key ) {
|
8789 |
-
if (
|
8790 |
-
key === 'class' ||
|
8791 |
-
key === 'style' ||
|
8792 |
-
isReservedAttribute(key)
|
8793 |
-
) {
|
8794 |
-
hash = data;
|
8795 |
-
} else {
|
8796 |
-
var type = data.attrs && data.attrs.type;
|
8797 |
-
hash = asProp || config.mustUseProp(tag, type, key)
|
8798 |
-
? data.domProps || (data.domProps = {})
|
8799 |
-
: data.attrs || (data.attrs = {});
|
8800 |
-
}
|
8801 |
-
if (!(key in hash)) {
|
8802 |
-
hash[key] = value[key];
|
8803 |
-
|
8804 |
-
if (isSync) {
|
8805 |
-
var on = data.on || (data.on = {});
|
8806 |
-
on[("update:" + key)] = function ($event) {
|
8807 |
-
value[key] = $event;
|
8808 |
-
};
|
8809 |
-
}
|
8810 |
-
}
|
8811 |
-
};
|
8812 |
-
|
8813 |
-
for (var key in value) loop( key );
|
8814 |
-
}
|
8815 |
-
}
|
8816 |
-
return data
|
8817 |
-
}
|
8818 |
-
|
8819 |
-
/* */
|
8820 |
-
|
8821 |
-
/**
|
8822 |
-
* Runtime helper for rendering static trees.
|
8823 |
-
*/
|
8824 |
-
function renderStatic (
|
8825 |
-
index,
|
8826 |
-
isInFor
|
8827 |
-
) {
|
8828 |
-
var cached = this._staticTrees || (this._staticTrees = []);
|
8829 |
-
var tree = cached[index];
|
8830 |
-
// if has already-rendered static tree and not inside v-for,
|
8831 |
-
// we can reuse the same tree.
|
8832 |
-
if (tree && !isInFor) {
|
8833 |
-
return tree
|
8834 |
-
}
|
8835 |
-
// otherwise, render a fresh tree.
|
8836 |
-
tree = cached[index] = this.$options.staticRenderFns[index].call(
|
8837 |
-
this._renderProxy,
|
8838 |
-
null,
|
8839 |
-
this // for render fns generated for functional component templates
|
8840 |
-
);
|
8841 |
-
markStatic(tree, ("__static__" + index), false);
|
8842 |
-
return tree
|
8843 |
-
}
|
8844 |
-
|
8845 |
-
/**
|
8846 |
-
* Runtime helper for v-once.
|
8847 |
-
* Effectively it means marking the node as static with a unique key.
|
8848 |
-
*/
|
8849 |
-
function markOnce (
|
8850 |
-
tree,
|
8851 |
-
index,
|
8852 |
-
key
|
8853 |
-
) {
|
8854 |
-
markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
|
8855 |
-
return tree
|
8856 |
-
}
|
8857 |
-
|
8858 |
-
function markStatic (
|
8859 |
-
tree,
|
8860 |
-
key,
|
8861 |
-
isOnce
|
8862 |
-
) {
|
8863 |
-
if (Array.isArray(tree)) {
|
8864 |
-
for (var i = 0; i < tree.length; i++) {
|
8865 |
-
if (tree[i] && typeof tree[i] !== 'string') {
|
8866 |
-
markStaticNode(tree[i], (key + "_" + i), isOnce);
|
8867 |
-
}
|
8868 |
-
}
|
8869 |
-
} else {
|
8870 |
-
markStaticNode(tree, key, isOnce);
|
8871 |
-
}
|
8872 |
-
}
|
8873 |
-
|
8874 |
-
function markStaticNode (node, key, isOnce) {
|
8875 |
-
node.isStatic = true;
|
8876 |
-
node.key = key;
|
8877 |
-
node.isOnce = isOnce;
|
8878 |
-
}
|
8879 |
-
|
8880 |
-
/* */
|
8881 |
-
|
8882 |
-
function bindObjectListeners (data, value) {
|
8883 |
-
if (value) {
|
8884 |
-
if (!isPlainObject(value)) {
|
8885 |
-
process.env.NODE_ENV !== 'production' && warn(
|
8886 |
-
'v-on without argument expects an Object value',
|
8887 |
-
this
|
8888 |
-
);
|
8889 |
-
} else {
|
8890 |
-
var on = data.on = data.on ? extend({}, data.on) : {};
|
8891 |
-
for (var key in value) {
|
8892 |
-
var existing = on[key];
|
8893 |
-
var ours = value[key];
|
8894 |
-
on[key] = existing ? [].concat(existing, ours) : ours;
|
8895 |
-
}
|
8896 |
-
}
|
8897 |
-
}
|
8898 |
-
return data
|
8899 |
-
}
|
8900 |
-
|
8901 |
-
/* */
|
8902 |
-
|
8903 |
-
function installRenderHelpers (target) {
|
8904 |
-
target._o = markOnce;
|
8905 |
-
target._n = toNumber;
|
8906 |
-
target._s = toString;
|
8907 |
-
target._l = renderList;
|
8908 |
-
target._t = renderSlot;
|
8909 |
-
target._q = looseEqual;
|
8910 |
-
target._i = looseIndexOf;
|
8911 |
-
target._m = renderStatic;
|
8912 |
-
target._f = resolveFilter;
|
8913 |
-
target._k = checkKeyCodes;
|
8914 |
-
target._b = bindObjectProps;
|
8915 |
-
target._v = createTextVNode;
|
8916 |
-
target._e = createEmptyVNode;
|
8917 |
-
target._u = resolveScopedSlots;
|
8918 |
-
target._g = bindObjectListeners;
|
8919 |
-
}
|
8920 |
-
|
8921 |
-
/* */
|
8922 |
-
|
8923 |
-
function FunctionalRenderContext (
|
8924 |
-
data,
|
8925 |
-
props,
|
8926 |
-
children,
|
8927 |
-
parent,
|
8928 |
-
Ctor
|
8929 |
-
) {
|
8930 |
-
var options = Ctor.options;
|
8931 |
-
// ensure the createElement function in functional components
|
8932 |
-
// gets a unique context - this is necessary for correct named slot check
|
8933 |
-
var contextVm;
|
8934 |
-
if (hasOwn(parent, '_uid')) {
|
8935 |
-
contextVm = Object.create(parent);
|
8936 |
-
// $flow-disable-line
|
8937 |
-
contextVm._original = parent;
|
8938 |
-
} else {
|
8939 |
-
// the context vm passed in is a functional context as well.
|
8940 |
-
// in this case we want to make sure we are able to get a hold to the
|
8941 |
-
// real context instance.
|
8942 |
-
contextVm = parent;
|
8943 |
-
// $flow-disable-line
|
8944 |
-
parent = parent._original;
|
8945 |
-
}
|
8946 |
-
var isCompiled = isTrue(options._compiled);
|
8947 |
-
var needNormalization = !isCompiled;
|
8948 |
-
|
8949 |
-
this.data = data;
|
8950 |
-
this.props = props;
|
8951 |
-
this.children = children;
|
8952 |
-
this.parent = parent;
|
8953 |
-
this.listeners = data.on || emptyObject;
|
8954 |
-
this.injections = resolveInject(options.inject, parent);
|
8955 |
-
this.slots = function () { return resolveSlots(children, parent); };
|
8956 |
-
|
8957 |
-
// support for compiled functional template
|
8958 |
-
if (isCompiled) {
|
8959 |
-
// exposing $options for renderStatic()
|
8960 |
-
this.$options = options;
|
8961 |
-
// pre-resolve slots for renderSlot()
|
8962 |
-
this.$slots = this.slots();
|
8963 |
-
this.$scopedSlots = data.scopedSlots || emptyObject;
|
8964 |
-
}
|
8965 |
-
|
8966 |
-
if (options._scopeId) {
|
8967 |
-
this._c = function (a, b, c, d) {
|
8968 |
-
var vnode = createElement(contextVm, a, b, c, d, needNormalization);
|
8969 |
-
if (vnode && !Array.isArray(vnode)) {
|
8970 |
-
vnode.fnScopeId = options._scopeId;
|
8971 |
-
vnode.fnContext = parent;
|
8972 |
-
}
|
8973 |
-
return vnode
|
8974 |
-
};
|
8975 |
-
} else {
|
8976 |
-
this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
|
8977 |
-
}
|
8978 |
-
}
|
8979 |
-
|
8980 |
-
installRenderHelpers(FunctionalRenderContext.prototype);
|
8981 |
-
|
8982 |
-
function createFunctionalComponent (
|
8983 |
-
Ctor,
|
8984 |
-
propsData,
|
8985 |
-
data,
|
8986 |
-
contextVm,
|
8987 |
-
children
|
8988 |
-
) {
|
8989 |
-
var options = Ctor.options;
|
8990 |
-
var props = {};
|
8991 |
-
var propOptions = options.props;
|
8992 |
-
if (isDef(propOptions)) {
|
8993 |
-
for (var key in propOptions) {
|
8994 |
-
props[key] = validateProp(key, propOptions, propsData || emptyObject);
|
8995 |
-
}
|
8996 |
-
} else {
|
8997 |
-
if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
|
8998 |
-
if (isDef(data.props)) { mergeProps(props, data.props); }
|
8999 |
-
}
|
9000 |
-
|
9001 |
-
var renderContext = new FunctionalRenderContext(
|
9002 |
-
data,
|
9003 |
-
props,
|
9004 |
-
children,
|
9005 |
-
contextVm,
|
9006 |
-
Ctor
|
9007 |
-
);
|
9008 |
-
|
9009 |
-
var vnode = options.render.call(null, renderContext._c, renderContext);
|
9010 |
-
|
9011 |
-
if (vnode instanceof VNode) {
|
9012 |
-
return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options)
|
9013 |
-
} else if (Array.isArray(vnode)) {
|
9014 |
-
var vnodes = normalizeChildren(vnode) || [];
|
9015 |
-
var res = new Array(vnodes.length);
|
9016 |
-
for (var i = 0; i < vnodes.length; i++) {
|
9017 |
-
res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options);
|
9018 |
-
}
|
9019 |
-
return res
|
9020 |
-
}
|
9021 |
-
}
|
9022 |
-
|
9023 |
-
function cloneAndMarkFunctionalResult (vnode, data, contextVm, options) {
|
9024 |
-
// #7817 clone node before setting fnContext, otherwise if the node is reused
|
9025 |
-
// (e.g. it was from a cached normal slot) the fnContext causes named slots
|
9026 |
-
// that should not be matched to match.
|
9027 |
-
var clone = cloneVNode(vnode);
|
9028 |
-
clone.fnContext = contextVm;
|
9029 |
-
clone.fnOptions = options;
|
9030 |
-
if (data.slot) {
|
9031 |
-
(clone.data || (clone.data = {})).slot = data.slot;
|
9032 |
-
}
|
9033 |
-
return clone
|
9034 |
-
}
|
9035 |
-
|
9036 |
-
function mergeProps (to, from) {
|
9037 |
-
for (var key in from) {
|
9038 |
-
to[camelize(key)] = from[key];
|
9039 |
-
}
|
9040 |
-
}
|
9041 |
-
|
9042 |
-
/* */
|
9043 |
-
|
9044 |
-
|
9045 |
-
|
9046 |
-
|
9047 |
-
// Register the component hook to weex native render engine.
|
9048 |
-
// The hook will be triggered by native, not javascript.
|
9049 |
-
|
9050 |
-
|
9051 |
-
// Updates the state of the component to weex native render engine.
|
9052 |
-
|
9053 |
-
/* */
|
9054 |
-
|
9055 |
-
// https://github.com/Hanks10100/weex-native-directive/tree/master/component
|
9056 |
-
|
9057 |
-
// listening on native callback
|
9058 |
-
|
9059 |
-
/* */
|
9060 |
-
|
9061 |
-
/* */
|
9062 |
-
|
9063 |
-
// inline hooks to be invoked on component VNodes during patch
|
9064 |
-
var componentVNodeHooks = {
|
9065 |
-
init: function init (
|
9066 |
-
vnode,
|
9067 |
-
hydrating,
|
9068 |
-
parentElm,
|
9069 |
-
refElm
|
9070 |
-
) {
|
9071 |
-
if (
|
9072 |
-
vnode.componentInstance &&
|
9073 |
-
!vnode.componentInstance._isDestroyed &&
|
9074 |
-
vnode.data.keepAlive
|
9075 |
-
) {
|
9076 |
-
// kept-alive components, treat as a patch
|
9077 |
-
var mountedNode = vnode; // work around flow
|
9078 |
-
componentVNodeHooks.prepatch(mountedNode, mountedNode);
|
9079 |
-
} else {
|
9080 |
-
var child = vnode.componentInstance = createComponentInstanceForVnode(
|
9081 |
-
vnode,
|
9082 |
-
activeInstance,
|
9083 |
-
parentElm,
|
9084 |
-
refElm
|
9085 |
-
);
|
9086 |
-
child.$mount(hydrating ? vnode.elm : undefined, hydrating);
|
9087 |
-
}
|
9088 |
-
},
|
9089 |
-
|
9090 |
-
prepatch: function prepatch (oldVnode, vnode) {
|
9091 |
-
var options = vnode.componentOptions;
|
9092 |
-
var child = vnode.componentInstance = oldVnode.componentInstance;
|
9093 |
-
updateChildComponent(
|
9094 |
-
child,
|
9095 |
-
options.propsData, // updated props
|
9096 |
-
options.listeners, // updated listeners
|
9097 |
-
vnode, // new parent vnode
|
9098 |
-
options.children // new children
|
9099 |
-
);
|
9100 |
-
},
|
9101 |
-
|
9102 |
-
insert: function insert (vnode) {
|
9103 |
-
var context = vnode.context;
|
9104 |
-
var componentInstance = vnode.componentInstance;
|
9105 |
-
if (!componentInstance._isMounted) {
|
9106 |
-
componentInstance._isMounted = true;
|
9107 |
-
callHook(componentInstance, 'mounted');
|
9108 |
-
}
|
9109 |
-
if (vnode.data.keepAlive) {
|
9110 |
-
if (context._isMounted) {
|
9111 |
-
// vue-router#1212
|
9112 |
-
// During updates, a kept-alive component's child components may
|
9113 |
-
// change, so directly walking the tree here may call activated hooks
|
9114 |
-
// on incorrect children. Instead we push them into a queue which will
|
9115 |
-
// be processed after the whole patch process ended.
|
9116 |
-
queueActivatedComponent(componentInstance);
|
9117 |
-
} else {
|
9118 |
-
activateChildComponent(componentInstance, true /* direct */);
|
9119 |
-
}
|
9120 |
-
}
|
9121 |
-
},
|
9122 |
-
|
9123 |
-
destroy: function destroy (vnode) {
|
9124 |
-
var componentInstance = vnode.componentInstance;
|
9125 |
-
if (!componentInstance._isDestroyed) {
|
9126 |
-
if (!vnode.data.keepAlive) {
|
9127 |
-
componentInstance.$destroy();
|
9128 |
-
} else {
|
9129 |
-
deactivateChildComponent(componentInstance, true /* direct */);
|
9130 |
-
}
|
9131 |
-
}
|
9132 |
-
}
|
9133 |
-
};
|
9134 |
-
|
9135 |
-
var hooksToMerge = Object.keys(componentVNodeHooks);
|
9136 |
-
|
9137 |
-
function createComponent (
|
9138 |
-
Ctor,
|
9139 |
-
data,
|
9140 |
-
context,
|
9141 |
-
children,
|
9142 |
-
tag
|
9143 |
-
) {
|
9144 |
-
if (isUndef(Ctor)) {
|
9145 |
-
return
|
9146 |
-
}
|
9147 |
-
|
9148 |
-
var baseCtor = context.$options._base;
|
9149 |
-
|
9150 |
-
// plain options object: turn it into a constructor
|
9151 |
-
if (isObject(Ctor)) {
|
9152 |
-
Ctor = baseCtor.extend(Ctor);
|
9153 |
-
}
|
9154 |
-
|
9155 |
-
// if at this stage it's not a constructor or an async component factory,
|
9156 |
-
// reject.
|
9157 |
-
if (typeof Ctor !== 'function') {
|
9158 |
-
if (process.env.NODE_ENV !== 'production') {
|
9159 |
-
warn(("Invalid Component definition: " + (String(Ctor))), context);
|
9160 |
-
}
|
9161 |
-
return
|
9162 |
-
}
|
9163 |
-
|
9164 |
-
// async component
|
9165 |
-
var asyncFactory;
|
9166 |
-
if (isUndef(Ctor.cid)) {
|
9167 |
-
asyncFactory = Ctor;
|
9168 |
-
Ctor = resolveAsyncComponent(asyncFactory, baseCtor, context);
|
9169 |
-
if (Ctor === undefined) {
|
9170 |
-
// return a placeholder node for async component, which is rendered
|
9171 |
-
// as a comment node but preserves all the raw information for the node.
|
9172 |
-
// the information will be used for async server-rendering and hydration.
|
9173 |
-
return createAsyncPlaceholder(
|
9174 |
-
asyncFactory,
|
9175 |
-
data,
|
9176 |
-
context,
|
9177 |
-
children,
|
9178 |
-
tag
|
9179 |
-
)
|
9180 |
-
}
|
9181 |
-
}
|
9182 |
-
|
9183 |
-
data = data || {};
|
9184 |
-
|
9185 |
-
// resolve constructor options in case global mixins are applied after
|
9186 |
-
// component constructor creation
|
9187 |
-
resolveConstructorOptions(Ctor);
|
9188 |
-
|
9189 |
-
// transform component v-model data into props & events
|
9190 |
-
if (isDef(data.model)) {
|
9191 |
-
transformModel(Ctor.options, data);
|
9192 |
-
}
|
9193 |
-
|
9194 |
-
// extract props
|
9195 |
-
var propsData = extractPropsFromVNodeData(data, Ctor, tag);
|
9196 |
-
|
9197 |
-
// functional component
|
9198 |
-
if (isTrue(Ctor.options.functional)) {
|
9199 |
-
return createFunctionalComponent(Ctor, propsData, data, context, children)
|
9200 |
-
}
|
9201 |
-
|
9202 |
-
// extract listeners, since these needs to be treated as
|
9203 |
-
// child component listeners instead of DOM listeners
|
9204 |
-
var listeners = data.on;
|
9205 |
-
// replace with listeners with .native modifier
|
9206 |
-
// so it gets processed during parent component patch.
|
9207 |
-
data.on = data.nativeOn;
|
9208 |
-
|
9209 |
-
if (isTrue(Ctor.options.abstract)) {
|
9210 |
-
// abstract components do not keep anything
|
9211 |
-
// other than props & listeners & slot
|
9212 |
-
|
9213 |
-
// work around flow
|
9214 |
-
var slot = data.slot;
|
9215 |
-
data = {};
|
9216 |
-
if (slot) {
|
9217 |
-
data.slot = slot;
|
9218 |
-
}
|
9219 |
-
}
|
9220 |
-
|
9221 |
-
// install component management hooks onto the placeholder node
|
9222 |
-
installComponentHooks(data);
|
9223 |
-
|
9224 |
-
// return a placeholder vnode
|
9225 |
-
var name = Ctor.options.name || tag;
|
9226 |
-
var vnode = new VNode(
|
9227 |
-
("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
|
9228 |
-
data, undefined, undefined, undefined, context,
|
9229 |
-
{ Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
|
9230 |
-
asyncFactory
|
9231 |
-
);
|
9232 |
-
|
9233 |
-
// Weex specific: invoke recycle-list optimized @render function for
|
9234 |
-
// extracting cell-slot template.
|
9235 |
-
// https://github.com/Hanks10100/weex-native-directive/tree/master/component
|
9236 |
-
/* istanbul ignore if */
|
9237 |
-
return vnode
|
9238 |
-
}
|
9239 |
-
|
9240 |
-
function createComponentInstanceForVnode (
|
9241 |
-
vnode, // we know it's MountedComponentVNode but flow doesn't
|
9242 |
-
parent, // activeInstance in lifecycle state
|
9243 |
-
parentElm,
|
9244 |
-
refElm
|
9245 |
-
) {
|
9246 |
-
var options = {
|
9247 |
-
_isComponent: true,
|
9248 |
-
parent: parent,
|
9249 |
-
_parentVnode: vnode,
|
9250 |
-
_parentElm: parentElm || null,
|
9251 |
-
_refElm: refElm || null
|
9252 |
-
};
|
9253 |
-
// check inline-template render functions
|
9254 |
-
var inlineTemplate = vnode.data.inlineTemplate;
|
9255 |
-
if (isDef(inlineTemplate)) {
|
9256 |
-
options.render = inlineTemplate.render;
|
9257 |
-
options.staticRenderFns = inlineTemplate.staticRenderFns;
|
9258 |
-
}
|
9259 |
-
return new vnode.componentOptions.Ctor(options)
|
9260 |
-
}
|
9261 |
-
|
9262 |
-
function installComponentHooks (data) {
|
9263 |
-
var hooks = data.hook || (data.hook = {});
|
9264 |
-
for (var i = 0; i < hooksToMerge.length; i++) {
|
9265 |
-
var key = hooksToMerge[i];
|
9266 |
-
hooks[key] = componentVNodeHooks[key];
|
9267 |
-
}
|
9268 |
-
}
|
9269 |
-
|
9270 |
-
// transform component v-model info (value and callback) into
|
9271 |
-
// prop and event handler respectively.
|
9272 |
-
function transformModel (options, data) {
|
9273 |
-
var prop = (options.model && options.model.prop) || 'value';
|
9274 |
-
var event = (options.model && options.model.event) || 'input';(data.props || (data.props = {}))[prop] = data.model.value;
|
9275 |
-
var on = data.on || (data.on = {});
|
9276 |
-
if (isDef(on[event])) {
|
9277 |
-
on[event] = [data.model.callback].concat(on[event]);
|
9278 |
-
} else {
|
9279 |
-
on[event] = data.model.callback;
|
9280 |
-
}
|
9281 |
-
}
|
9282 |
-
|
9283 |
-
/* */
|
9284 |
-
|
9285 |
-
var SIMPLE_NORMALIZE = 1;
|
9286 |
-
var ALWAYS_NORMALIZE = 2;
|
9287 |
-
|
9288 |
-
// wrapper function for providing a more flexible interface
|
9289 |
-
// without getting yelled at by flow
|
9290 |
-
function createElement (
|
9291 |
-
context,
|
9292 |
-
tag,
|
9293 |
-
data,
|
9294 |
-
children,
|
9295 |
-
normalizationType,
|
9296 |
-
alwaysNormalize
|
9297 |
-
) {
|
9298 |
-
if (Array.isArray(data) || isPrimitive(data)) {
|
9299 |
-
normalizationType = children;
|
9300 |
-
children = data;
|
9301 |
-
data = undefined;
|
9302 |
-
}
|
9303 |
-
if (isTrue(alwaysNormalize)) {
|
9304 |
-
normalizationType = ALWAYS_NORMALIZE;
|
9305 |
-
}
|
9306 |
-
return _createElement(context, tag, data, children, normalizationType)
|
9307 |
-
}
|
9308 |
-
|
9309 |
-
function _createElement (
|
9310 |
-
context,
|
9311 |
-
tag,
|
9312 |
-
data,
|
9313 |
-
children,
|
9314 |
-
normalizationType
|
9315 |
-
) {
|
9316 |
-
if (isDef(data) && isDef((data).__ob__)) {
|
9317 |
-
process.env.NODE_ENV !== 'production' && warn(
|
9318 |
-
"Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
|
9319 |
-
'Always create fresh vnode data objects in each render!',
|
9320 |
-
context
|
9321 |
-
);
|
9322 |
-
return createEmptyVNode()
|
9323 |
-
}
|
9324 |
-
// object syntax in v-bind
|
9325 |
-
if (isDef(data) && isDef(data.is)) {
|
9326 |
-
tag = data.is;
|
9327 |
-
}
|
9328 |
-
if (!tag) {
|
9329 |
-
// in case of component :is set to falsy value
|
9330 |
-
return createEmptyVNode()
|
9331 |
-
}
|
9332 |
-
// warn against non-primitive key
|
9333 |
-
if (process.env.NODE_ENV !== 'production' &&
|
9334 |
-
isDef(data) && isDef(data.key) && !isPrimitive(data.key)
|
9335 |
-
) {
|
9336 |
-
{
|
9337 |
-
warn(
|
9338 |
-
'Avoid using non-primitive value as key, ' +
|
9339 |
-
'use string/number value instead.',
|
9340 |
-
context
|
9341 |
-
);
|
9342 |
-
}
|
9343 |
-
}
|
9344 |
-
// support single function children as default scoped slot
|
9345 |
-
if (Array.isArray(children) &&
|
9346 |
-
typeof children[0] === 'function'
|
9347 |
-
) {
|
9348 |
-
data = data || {};
|
9349 |
-
data.scopedSlots = { default: children[0] };
|
9350 |
-
children.length = 0;
|
9351 |
-
}
|
9352 |
-
if (normalizationType === ALWAYS_NORMALIZE) {
|
9353 |
-
children = normalizeChildren(children);
|
9354 |
-
} else if (normalizationType === SIMPLE_NORMALIZE) {
|
9355 |
-
children = simpleNormalizeChildren(children);
|
9356 |
-
}
|
9357 |
-
var vnode, ns;
|
9358 |
-
if (typeof tag === 'string') {
|
9359 |
-
var Ctor;
|
9360 |
-
ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
|
9361 |
-
if (config.isReservedTag(tag)) {
|
9362 |
-
// platform built-in elements
|
9363 |
-
vnode = new VNode(
|
9364 |
-
config.parsePlatformTagName(tag), data, children,
|
9365 |
-
undefined, undefined, context
|
9366 |
-
);
|
9367 |
-
} else if (isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
|
9368 |
-
// component
|
9369 |
-
vnode = createComponent(Ctor, data, context, children, tag);
|
9370 |
-
} else {
|
9371 |
-
// unknown or unlisted namespaced elements
|
9372 |
-
// check at runtime because it may get assigned a namespace when its
|
9373 |
-
// parent normalizes children
|
9374 |
-
vnode = new VNode(
|
9375 |
-
tag, data, children,
|
9376 |
-
undefined, undefined, context
|
9377 |
-
);
|
9378 |
-
}
|
9379 |
-
} else {
|
9380 |
-
// direct component options / constructor
|
9381 |
-
vnode = createComponent(tag, data, context, children);
|
9382 |
-
}
|
9383 |
-
if (Array.isArray(vnode)) {
|
9384 |
-
return vnode
|
9385 |
-
} else if (isDef(vnode)) {
|
9386 |
-
if (isDef(ns)) { applyNS(vnode, ns); }
|
9387 |
-
if (isDef(data)) { registerDeepBindings(data); }
|
9388 |
-
return vnode
|
9389 |
-
} else {
|
9390 |
-
return createEmptyVNode()
|
9391 |
-
}
|
9392 |
-
}
|
9393 |
-
|
9394 |
-
function applyNS (vnode, ns, force) {
|
9395 |
-
vnode.ns = ns;
|
9396 |
-
if (vnode.tag === 'foreignObject') {
|
9397 |
-
// use default namespace inside foreignObject
|
9398 |
-
ns = undefined;
|
9399 |
-
force = true;
|
9400 |
-
}
|
9401 |
-
if (isDef(vnode.children)) {
|
9402 |
-
for (var i = 0, l = vnode.children.length; i < l; i++) {
|
9403 |
-
var child = vnode.children[i];
|
9404 |
-
if (isDef(child.tag) && (
|
9405 |
-
isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
|
9406 |
-
applyNS(child, ns, force);
|
9407 |
-
}
|
9408 |
-
}
|
9409 |
-
}
|
9410 |
-
}
|
9411 |
-
|
9412 |
-
// ref #5318
|
9413 |
-
// necessary to ensure parent re-render when deep bindings like :style and
|
9414 |
-
// :class are used on slot nodes
|
9415 |
-
function registerDeepBindings (data) {
|
9416 |
-
if (isObject(data.style)) {
|
9417 |
-
traverse(data.style);
|
9418 |
-
}
|
9419 |
-
if (isObject(data.class)) {
|
9420 |
-
traverse(data.class);
|
9421 |
-
}
|
9422 |
-
}
|
9423 |
-
|
9424 |
-
/* */
|
9425 |
-
|
9426 |
-
function initRender (vm) {
|
9427 |
-
vm._vnode = null; // the root of the child tree
|
9428 |
-
vm._staticTrees = null; // v-once cached trees
|
9429 |
-
var options = vm.$options;
|
9430 |
-
var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
|
9431 |
-
var renderContext = parentVnode && parentVnode.context;
|
9432 |
-
vm.$slots = resolveSlots(options._renderChildren, renderContext);
|
9433 |
-
vm.$scopedSlots = emptyObject;
|
9434 |
-
// bind the createElement fn to this instance
|
9435 |
-
// so that we get proper render context inside it.
|
9436 |
-
// args order: tag, data, children, normalizationType, alwaysNormalize
|
9437 |
-
// internal version is used by render functions compiled from templates
|
9438 |
-
vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
|
9439 |
-
// normalization is always applied for the public version, used in
|
9440 |
-
// user-written render functions.
|
9441 |
-
vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
|
9442 |
-
|
9443 |
-
// $attrs & $listeners are exposed for easier HOC creation.
|
9444 |
-
// they need to be reactive so that HOCs using them are always updated
|
9445 |
-
var parentData = parentVnode && parentVnode.data;
|
9446 |
-
|
9447 |
-
/* istanbul ignore else */
|
9448 |
-
if (process.env.NODE_ENV !== 'production') {
|
9449 |
-
defineReactive(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
|
9450 |
-
!isUpdatingChildComponent && warn("$attrs is readonly.", vm);
|
9451 |
-
}, true);
|
9452 |
-
defineReactive(vm, '$listeners', options._parentListeners || emptyObject, function () {
|
9453 |
-
!isUpdatingChildComponent && warn("$listeners is readonly.", vm);
|
9454 |
-
}, true);
|
9455 |
-
} else {
|
9456 |
-
defineReactive(vm, '$attrs', parentData && parentData.attrs || emptyObject, null, true);
|
9457 |
-
defineReactive(vm, '$listeners', options._parentListeners || emptyObject, null, true);
|
9458 |
-
}
|
9459 |
-
}
|
9460 |
-
|
9461 |
-
function renderMixin (Vue) {
|
9462 |
-
// install runtime convenience helpers
|
9463 |
-
installRenderHelpers(Vue.prototype);
|
9464 |
-
|
9465 |
-
Vue.prototype.$nextTick = function (fn) {
|
9466 |
-
return nextTick(fn, this)
|
9467 |
-
};
|
9468 |
-
|
9469 |
-
Vue.prototype._render = function () {
|
9470 |
-
var vm = this;
|
9471 |
-
var ref = vm.$options;
|
9472 |
-
var render = ref.render;
|
9473 |
-
var _parentVnode = ref._parentVnode;
|
9474 |
-
|
9475 |
-
// reset _rendered flag on slots for duplicate slot check
|
9476 |
-
if (process.env.NODE_ENV !== 'production') {
|
9477 |
-
for (var key in vm.$slots) {
|
9478 |
-
// $flow-disable-line
|
9479 |
-
vm.$slots[key]._rendered = false;
|
9480 |
-
}
|
9481 |
-
}
|
9482 |
-
|
9483 |
-
if (_parentVnode) {
|
9484 |
-
vm.$scopedSlots = _parentVnode.data.scopedSlots || emptyObject;
|
9485 |
-
}
|
9486 |
-
|
9487 |
-
// set parent vnode. this allows render functions to have access
|
9488 |
-
// to the data on the placeholder node.
|
9489 |
-
vm.$vnode = _parentVnode;
|
9490 |
-
// render self
|
9491 |
-
var vnode;
|
9492 |
-
try {
|
9493 |
-
vnode = render.call(vm._renderProxy, vm.$createElement);
|
9494 |
-
} catch (e) {
|
9495 |
-
handleError(e, vm, "render");
|
9496 |
-
// return error render result,
|
9497 |
-
// or previous vnode to prevent render error causing blank component
|
9498 |
-
/* istanbul ignore else */
|
9499 |
-
if (process.env.NODE_ENV !== 'production') {
|
9500 |
-
if (vm.$options.renderError) {
|
9501 |
-
try {
|
9502 |
-
vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
|
9503 |
-
} catch (e) {
|
9504 |
-
handleError(e, vm, "renderError");
|
9505 |
-
vnode = vm._vnode;
|
9506 |
-
}
|
9507 |
-
} else {
|
9508 |
-
vnode = vm._vnode;
|
9509 |
-
}
|
9510 |
-
} else {
|
9511 |
-
vnode = vm._vnode;
|
9512 |
-
}
|
9513 |
-
}
|
9514 |
-
// return empty vnode in case the render function errored out
|
9515 |
-
if (!(vnode instanceof VNode)) {
|
9516 |
-
if (process.env.NODE_ENV !== 'production' && Array.isArray(vnode)) {
|
9517 |
-
warn(
|
9518 |
-
'Multiple root nodes returned from render function. Render function ' +
|
9519 |
-
'should return a single root node.',
|
9520 |
-
vm
|
9521 |
-
);
|
9522 |
-
}
|
9523 |
-
vnode = createEmptyVNode();
|
9524 |
-
}
|
9525 |
-
// set parent
|
9526 |
-
vnode.parent = _parentVnode;
|
9527 |
-
return vnode
|
9528 |
-
};
|
9529 |
-
}
|
9530 |
-
|
9531 |
-
/* */
|
9532 |
-
|
9533 |
-
var uid$3 = 0;
|
9534 |
-
|
9535 |
-
function initMixin (Vue) {
|
9536 |
-
Vue.prototype._init = function (options) {
|
9537 |
-
var vm = this;
|
9538 |
-
// a uid
|
9539 |
-
vm._uid = uid$3++;
|
9540 |
-
|
9541 |
-
var startTag, endTag;
|
9542 |
-
/* istanbul ignore if */
|
9543 |
-
if (process.env.NODE_ENV !== 'production' && config.performance && mark) {
|
9544 |
-
startTag = "vue-perf-start:" + (vm._uid);
|
9545 |
-
endTag = "vue-perf-end:" + (vm._uid);
|
9546 |
-
mark(startTag);
|
9547 |
-
}
|
9548 |
-
|
9549 |
-
// a flag to avoid this being observed
|
9550 |
-
vm._isVue = true;
|
9551 |
-
// merge options
|
9552 |
-
if (options && options._isComponent) {
|
9553 |
-
// optimize internal component instantiation
|
9554 |
-
// since dynamic options merging is pretty slow, and none of the
|
9555 |
-
// internal component options needs special treatment.
|
9556 |
-
initInternalComponent(vm, options);
|
9557 |
-
} else {
|
9558 |
-
vm.$options = mergeOptions(
|
9559 |
-
resolveConstructorOptions(vm.constructor),
|
9560 |
-
options || {},
|
9561 |
-
vm
|
9562 |
-
);
|
9563 |
-
}
|
9564 |
-
/* istanbul ignore else */
|
9565 |
-
if (process.env.NODE_ENV !== 'production') {
|
9566 |
-
initProxy(vm);
|
9567 |
-
} else {
|
9568 |
-
vm._renderProxy = vm;
|
9569 |
-
}
|
9570 |
-
// expose real self
|
9571 |
-
vm._self = vm;
|
9572 |
-
initLifecycle(vm);
|
9573 |
-
initEvents(vm);
|
9574 |
-
initRender(vm);
|
9575 |
-
callHook(vm, 'beforeCreate');
|
9576 |
-
initInjections(vm); // resolve injections before data/props
|
9577 |
-
initState(vm);
|
9578 |
-
initProvide(vm); // resolve provide after data/props
|
9579 |
-
callHook(vm, 'created');
|
9580 |
-
|
9581 |
-
/* istanbul ignore if */
|
9582 |
-
if (process.env.NODE_ENV !== 'production' && config.performance && mark) {
|
9583 |
-
vm._name = formatComponentName(vm, false);
|
9584 |
-
mark(endTag);
|
9585 |
-
measure(("vue " + (vm._name) + " init"), startTag, endTag);
|
9586 |
-
}
|
9587 |
-
|
9588 |
-
if (vm.$options.el) {
|
9589 |
-
vm.$mount(vm.$options.el);
|
9590 |
-
}
|
9591 |
-
};
|
9592 |
-
}
|
9593 |
-
|
9594 |
-
function initInternalComponent (vm, options) {
|
9595 |
-
var opts = vm.$options = Object.create(vm.constructor.options);
|
9596 |
-
// doing this because it's faster than dynamic enumeration.
|
9597 |
-
var parentVnode = options._parentVnode;
|
9598 |
-
opts.parent = options.parent;
|
9599 |
-
opts._parentVnode = parentVnode;
|
9600 |
-
opts._parentElm = options._parentElm;
|
9601 |
-
opts._refElm = options._refElm;
|
9602 |
-
|
9603 |
-
var vnodeComponentOptions = parentVnode.componentOptions;
|
9604 |
-
opts.propsData = vnodeComponentOptions.propsData;
|
9605 |
-
opts._parentListeners = vnodeComponentOptions.listeners;
|
9606 |
-
opts._renderChildren = vnodeComponentOptions.children;
|
9607 |
-
opts._componentTag = vnodeComponentOptions.tag;
|
9608 |
-
|
9609 |
-
if (options.render) {
|
9610 |
-
opts.render = options.render;
|
9611 |
-
opts.staticRenderFns = options.staticRenderFns;
|
9612 |
-
}
|
9613 |
-
}
|
9614 |
-
|
9615 |
-
function resolveConstructorOptions (Ctor) {
|
9616 |
-
var options = Ctor.options;
|
9617 |
-
if (Ctor.super) {
|
9618 |
-
var superOptions = resolveConstructorOptions(Ctor.super);
|
9619 |
-
var cachedSuperOptions = Ctor.superOptions;
|
9620 |
-
if (superOptions !== cachedSuperOptions) {
|
9621 |
-
// super option changed,
|
9622 |
-
// need to resolve new options.
|
9623 |
-
Ctor.superOptions = superOptions;
|
9624 |
-
// check if there are any late-modified/attached options (#4976)
|
9625 |
-
var modifiedOptions = resolveModifiedOptions(Ctor);
|
9626 |
-
// update base extend options
|
9627 |
-
if (modifiedOptions) {
|
9628 |
-
extend(Ctor.extendOptions, modifiedOptions);
|
9629 |
-
}
|
9630 |
-
options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
|
9631 |
-
if (options.name) {
|
9632 |
-
options.components[options.name] = Ctor;
|
9633 |
-
}
|
9634 |
-
}
|
9635 |
-
}
|
9636 |
-
return options
|
9637 |
-
}
|
9638 |
-
|
9639 |
-
function resolveModifiedOptions (Ctor) {
|
9640 |
-
var modified;
|
9641 |
-
var latest = Ctor.options;
|
9642 |
-
var extended = Ctor.extendOptions;
|
9643 |
-
var sealed = Ctor.sealedOptions;
|
9644 |
-
for (var key in latest) {
|
9645 |
-
if (latest[key] !== sealed[key]) {
|
9646 |
-
if (!modified) { modified = {}; }
|
9647 |
-
modified[key] = dedupe(latest[key], extended[key], sealed[key]);
|
9648 |
-
}
|
9649 |
-
}
|
9650 |
-
return modified
|
9651 |
-
}
|
9652 |
-
|
9653 |
-
function dedupe (latest, extended, sealed) {
|
9654 |
-
// compare latest and sealed to ensure lifecycle hooks won't be duplicated
|
9655 |
-
// between merges
|
9656 |
-
if (Array.isArray(latest)) {
|
9657 |
-
var res = [];
|
9658 |
-
sealed = Array.isArray(sealed) ? sealed : [sealed];
|
9659 |
-
extended = Array.isArray(extended) ? extended : [extended];
|
9660 |
-
for (var i = 0; i < latest.length; i++) {
|
9661 |
-
// push original options and not sealed options to exclude duplicated options
|
9662 |
-
if (extended.indexOf(latest[i]) >= 0 || sealed.indexOf(latest[i]) < 0) {
|
9663 |
-
res.push(latest[i]);
|
9664 |
-
}
|
9665 |
-
}
|
9666 |
-
return res
|
9667 |
-
} else {
|
9668 |
-
return latest
|
9669 |
-
}
|
9670 |
-
}
|
9671 |
-
|
9672 |
-
function Vue (options) {
|
9673 |
-
if (process.env.NODE_ENV !== 'production' &&
|
9674 |
-
!(this instanceof Vue)
|
9675 |
-
) {
|
9676 |
-
warn('Vue is a constructor and should be called with the `new` keyword');
|
9677 |
-
}
|
9678 |
-
this._init(options);
|
9679 |
-
}
|
9680 |
-
|
9681 |
-
initMixin(Vue);
|
9682 |
-
stateMixin(Vue);
|
9683 |
-
eventsMixin(Vue);
|
9684 |
-
lifecycleMixin(Vue);
|
9685 |
-
renderMixin(Vue);
|
9686 |
-
|
9687 |
-
/* */
|
9688 |
-
|
9689 |
-
function initUse (Vue) {
|
9690 |
-
Vue.use = function (plugin) {
|
9691 |
-
var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
|
9692 |
-
if (installedPlugins.indexOf(plugin) > -1) {
|
9693 |
-
return this
|
9694 |
-
}
|
9695 |
-
|
9696 |
-
// additional parameters
|
9697 |
-
var args = toArray(arguments, 1);
|
9698 |
-
args.unshift(this);
|
9699 |
-
if (typeof plugin.install === 'function') {
|
9700 |
-
plugin.install.apply(plugin, args);
|
9701 |
-
} else if (typeof plugin === 'function') {
|
9702 |
-
plugin.apply(null, args);
|
9703 |
-
}
|
9704 |
-
installedPlugins.push(plugin);
|
9705 |
-
return this
|
9706 |
-
};
|
9707 |
-
}
|
9708 |
-
|
9709 |
-
/* */
|
9710 |
-
|
9711 |
-
function initMixin$1 (Vue) {
|
9712 |
-
Vue.mixin = function (mixin) {
|
9713 |
-
this.options = mergeOptions(this.options, mixin);
|
9714 |
-
return this
|
9715 |
-
};
|
9716 |
-
}
|
9717 |
-
|
9718 |
-
/* */
|
9719 |
-
|
9720 |
-
function initExtend (Vue) {
|
9721 |
-
/**
|
9722 |
-
* Each instance constructor, including Vue, has a unique
|
9723 |
-
* cid. This enables us to create wrapped "child
|
9724 |
-
* constructors" for prototypal inheritance and cache them.
|
9725 |
-
*/
|
9726 |
-
Vue.cid = 0;
|
9727 |
-
var cid = 1;
|
9728 |
-
|
9729 |
-
/**
|
9730 |
-
* Class inheritance
|
9731 |
-
*/
|
9732 |
-
Vue.extend = function (extendOptions) {
|
9733 |
-
extendOptions = extendOptions || {};
|
9734 |
-
var Super = this;
|
9735 |
-
var SuperId = Super.cid;
|
9736 |
-
var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
|
9737 |
-
if (cachedCtors[SuperId]) {
|
9738 |
-
return cachedCtors[SuperId]
|
9739 |
-
}
|
9740 |
-
|
9741 |
-
var name = extendOptions.name || Super.options.name;
|
9742 |
-
if (process.env.NODE_ENV !== 'production' && name) {
|
9743 |
-
validateComponentName(name);
|
9744 |
-
}
|
9745 |
-
|
9746 |
-
var Sub = function VueComponent (options) {
|
9747 |
-
this._init(options);
|
9748 |
-
};
|
9749 |
-
Sub.prototype = Object.create(Super.prototype);
|
9750 |
-
Sub.prototype.constructor = Sub;
|
9751 |
-
Sub.cid = cid++;
|
9752 |
-
Sub.options = mergeOptions(
|
9753 |
-
Super.options,
|
9754 |
-
extendOptions
|
9755 |
-
);
|
9756 |
-
Sub['super'] = Super;
|
9757 |
-
|
9758 |
-
// For props and computed properties, we define the proxy getters on
|
9759 |
-
// the Vue instances at extension time, on the extended prototype. This
|
9760 |
-
// avoids Object.defineProperty calls for each instance created.
|
9761 |
-
if (Sub.options.props) {
|
9762 |
-
initProps$1(Sub);
|
9763 |
-
}
|
9764 |
-
if (Sub.options.computed) {
|
9765 |
-
initComputed$1(Sub);
|
9766 |
-
}
|
9767 |
-
|
9768 |
-
// allow further extension/mixin/plugin usage
|
9769 |
-
Sub.extend = Super.extend;
|
9770 |
-
Sub.mixin = Super.mixin;
|
9771 |
-
Sub.use = Super.use;
|
9772 |
-
|
9773 |
-
// create asset registers, so extended classes
|
9774 |
-
// can have their private assets too.
|
9775 |
-
ASSET_TYPES.forEach(function (type) {
|
9776 |
-
Sub[type] = Super[type];
|
9777 |
-
});
|
9778 |
-
// enable recursive self-lookup
|
9779 |
-
if (name) {
|
9780 |
-
Sub.options.components[name] = Sub;
|
9781 |
-
}
|
9782 |
-
|
9783 |
-
// keep a reference to the super options at extension time.
|
9784 |
-
// later at instantiation we can check if Super's options have
|
9785 |
-
// been updated.
|
9786 |
-
Sub.superOptions = Super.options;
|
9787 |
-
Sub.extendOptions = extendOptions;
|
9788 |
-
Sub.sealedOptions = extend({}, Sub.options);
|
9789 |
-
|
9790 |
-
// cache constructor
|
9791 |
-
cachedCtors[SuperId] = Sub;
|
9792 |
-
return Sub
|
9793 |
-
};
|
9794 |
-
}
|
9795 |
-
|
9796 |
-
function initProps$1 (Comp) {
|
9797 |
-
var props = Comp.options.props;
|
9798 |
-
for (var key in props) {
|
9799 |
-
proxy(Comp.prototype, "_props", key);
|
9800 |
-
}
|
9801 |
-
}
|
9802 |
-
|
9803 |
-
function initComputed$1 (Comp) {
|
9804 |
-
var computed = Comp.options.computed;
|
9805 |
-
for (var key in computed) {
|
9806 |
-
defineComputed(Comp.prototype, key, computed[key]);
|
9807 |
-
}
|
9808 |
-
}
|
9809 |
-
|
9810 |
-
/* */
|
9811 |
-
|
9812 |
-
function initAssetRegisters (Vue) {
|
9813 |
-
/**
|
9814 |
-
* Create asset registration methods.
|
9815 |
-
*/
|
9816 |
-
ASSET_TYPES.forEach(function (type) {
|
9817 |
-
Vue[type] = function (
|
9818 |
-
id,
|
9819 |
-
definition
|
9820 |
-
) {
|
9821 |
-
if (!definition) {
|
9822 |
-
return this.options[type + 's'][id]
|
9823 |
-
} else {
|
9824 |
-
/* istanbul ignore if */
|
9825 |
-
if (process.env.NODE_ENV !== 'production' && type === 'component') {
|
9826 |
-
validateComponentName(id);
|
9827 |
-
}
|
9828 |
-
if (type === 'component' && isPlainObject(definition)) {
|
9829 |
-
definition.name = definition.name || id;
|
9830 |
-
definition = this.options._base.extend(definition);
|
9831 |
-
}
|
9832 |
-
if (type === 'directive' && typeof definition === 'function') {
|
9833 |
-
definition = { bind: definition, update: definition };
|
9834 |
-
}
|
9835 |
-
this.options[type + 's'][id] = definition;
|
9836 |
-
return definition
|
9837 |
-
}
|
9838 |
-
};
|
9839 |
-
});
|
9840 |
-
}
|
9841 |
-
|
9842 |
-
/* */
|
9843 |
-
|
9844 |
-
function getComponentName (opts) {
|
9845 |
-
return opts && (opts.Ctor.options.name || opts.tag)
|
9846 |
-
}
|
9847 |
-
|
9848 |
-
function matches (pattern, name) {
|
9849 |
-
if (Array.isArray(pattern)) {
|
9850 |
-
return pattern.indexOf(name) > -1
|
9851 |
-
} else if (typeof pattern === 'string') {
|
9852 |
-
return pattern.split(',').indexOf(name) > -1
|
9853 |
-
} else if (isRegExp(pattern)) {
|
9854 |
-
return pattern.test(name)
|
9855 |
-
}
|
9856 |
-
/* istanbul ignore next */
|
9857 |
-
return false
|
9858 |
-
}
|
9859 |
-
|
9860 |
-
function pruneCache (keepAliveInstance, filter) {
|
9861 |
-
var cache = keepAliveInstance.cache;
|
9862 |
-
var keys = keepAliveInstance.keys;
|
9863 |
-
var _vnode = keepAliveInstance._vnode;
|
9864 |
-
for (var key in cache) {
|
9865 |
-
var cachedNode = cache[key];
|
9866 |
-
if (cachedNode) {
|
9867 |
-
var name = getComponentName(cachedNode.componentOptions);
|
9868 |
-
if (name && !filter(name)) {
|
9869 |
-
pruneCacheEntry(cache, key, keys, _vnode);
|
9870 |
-
}
|
9871 |
-
}
|
9872 |
-
}
|
9873 |
-
}
|
9874 |
-
|
9875 |
-
function pruneCacheEntry (
|
9876 |
-
cache,
|
9877 |
-
key,
|
9878 |
-
keys,
|
9879 |
-
current
|
9880 |
-
) {
|
9881 |
-
var cached$$1 = cache[key];
|
9882 |
-
if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
|
9883 |
-
cached$$1.componentInstance.$destroy();
|
9884 |
-
}
|
9885 |
-
cache[key] = null;
|
9886 |
-
remove(keys, key);
|
9887 |
-
}
|
9888 |
-
|
9889 |
-
var patternTypes = [String, RegExp, Array];
|
9890 |
-
|
9891 |
-
var KeepAlive = {
|
9892 |
-
name: 'keep-alive',
|
9893 |
-
abstract: true,
|
9894 |
-
|
9895 |
-
props: {
|
9896 |
-
include: patternTypes,
|
9897 |
-
exclude: patternTypes,
|
9898 |
-
max: [String, Number]
|
9899 |
-
},
|
9900 |
-
|
9901 |
-
created: function created () {
|
9902 |
-
this.cache = Object.create(null);
|
9903 |
-
this.keys = [];
|
9904 |
-
},
|
9905 |
-
|
9906 |
-
destroyed: function destroyed () {
|
9907 |
-
var this$1 = this;
|
9908 |
-
|
9909 |
-
for (var key in this$1.cache) {
|
9910 |
-
pruneCacheEntry(this$1.cache, key, this$1.keys);
|
9911 |
-
}
|
9912 |
-
},
|
9913 |
-
|
9914 |
-
mounted: function mounted () {
|
9915 |
-
var this$1 = this;
|
9916 |
-
|
9917 |
-
this.$watch('include', function (val) {
|
9918 |
-
pruneCache(this$1, function (name) { return matches(val, name); });
|
9919 |
-
});
|
9920 |
-
this.$watch('exclude', function (val) {
|
9921 |
-
pruneCache(this$1, function (name) { return !matches(val, name); });
|
9922 |
-
});
|
9923 |
-
},
|
9924 |
-
|
9925 |
-
render: function render () {
|
9926 |
-
var slot = this.$slots.default;
|
9927 |
-
var vnode = getFirstComponentChild(slot);
|
9928 |
-
var componentOptions = vnode && vnode.componentOptions;
|
9929 |
-
if (componentOptions) {
|
9930 |
-
// check pattern
|
9931 |
-
var name = getComponentName(componentOptions);
|
9932 |
-
var ref = this;
|
9933 |
-
var include = ref.include;
|
9934 |
-
var exclude = ref.exclude;
|
9935 |
-
if (
|
9936 |
-
// not included
|
9937 |
-
(include && (!name || !matches(include, name))) ||
|
9938 |
-
// excluded
|
9939 |
-
(exclude && name && matches(exclude, name))
|
9940 |
-
) {
|
9941 |
-
return vnode
|
9942 |
-
}
|
9943 |
-
|
9944 |
-
var ref$1 = this;
|
9945 |
-
var cache = ref$1.cache;
|
9946 |
-
var keys = ref$1.keys;
|
9947 |
-
var key = vnode.key == null
|
9948 |
-
// same constructor may get registered as different local components
|
9949 |
-
// so cid alone is not enough (#3269)
|
9950 |
-
? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
|
9951 |
-
: vnode.key;
|
9952 |
-
if (cache[key]) {
|
9953 |
-
vnode.componentInstance = cache[key].componentInstance;
|
9954 |
-
// make current key freshest
|
9955 |
-
remove(keys, key);
|
9956 |
-
keys.push(key);
|
9957 |
-
} else {
|
9958 |
-
cache[key] = vnode;
|
9959 |
-
keys.push(key);
|
9960 |
-
// prune oldest entry
|
9961 |
-
if (this.max && keys.length > parseInt(this.max)) {
|
9962 |
-
pruneCacheEntry(cache, keys[0], keys, this._vnode);
|
9963 |
-
}
|
9964 |
-
}
|
9965 |
-
|
9966 |
-
vnode.data.keepAlive = true;
|
9967 |
-
}
|
9968 |
-
return vnode || (slot && slot[0])
|
9969 |
-
}
|
9970 |
-
}
|
9971 |
-
|
9972 |
-
var builtInComponents = {
|
9973 |
-
KeepAlive: KeepAlive
|
9974 |
-
}
|
9975 |
-
|
9976 |
-
/* */
|
9977 |
-
|
9978 |
-
function initGlobalAPI (Vue) {
|
9979 |
-
// config
|
9980 |
-
var configDef = {};
|
9981 |
-
configDef.get = function () { return config; };
|
9982 |
-
if (process.env.NODE_ENV !== 'production') {
|
9983 |
-
configDef.set = function () {
|
9984 |
-
warn(
|
9985 |
-
'Do not replace the Vue.config object, set individual fields instead.'
|
9986 |
-
);
|
9987 |
-
};
|
9988 |
-
}
|
9989 |
-
Object.defineProperty(Vue, 'config', configDef);
|
9990 |
-
|
9991 |
-
// exposed util methods.
|
9992 |
-
// NOTE: these are not considered part of the public API - avoid relying on
|
9993 |
-
// them unless you are aware of the risk.
|
9994 |
-
Vue.util = {
|
9995 |
-
warn: warn,
|
9996 |
-
extend: extend,
|
9997 |
-
mergeOptions: mergeOptions,
|
9998 |
-
defineReactive: defineReactive
|
9999 |
-
};
|
10000 |
-
|
10001 |
-
Vue.set = set;
|
10002 |
-
Vue.delete = del;
|
10003 |
-
Vue.nextTick = nextTick;
|
10004 |
-
|
10005 |
-
Vue.options = Object.create(null);
|
10006 |
-
ASSET_TYPES.forEach(function (type) {
|
10007 |
-
Vue.options[type + 's'] = Object.create(null);
|
10008 |
-
});
|
10009 |
-
|
10010 |
-
// this is used to identify the "base" constructor to extend all plain-object
|
10011 |
-
// components with in Weex's multi-instance scenarios.
|
10012 |
-
Vue.options._base = Vue;
|
10013 |
-
|
10014 |
-
extend(Vue.options.components, builtInComponents);
|
10015 |
-
|
10016 |
-
initUse(Vue);
|
10017 |
-
initMixin$1(Vue);
|
10018 |
-
initExtend(Vue);
|
10019 |
-
initAssetRegisters(Vue);
|
10020 |
-
}
|
10021 |
-
|
10022 |
-
initGlobalAPI(Vue);
|
10023 |
-
|
10024 |
-
Object.defineProperty(Vue.prototype, '$isServer', {
|
10025 |
-
get: isServerRendering
|
10026 |
-
});
|
10027 |
-
|
10028 |
-
Object.defineProperty(Vue.prototype, '$ssrContext', {
|
10029 |
-
get: function get () {
|
10030 |
-
/* istanbul ignore next */
|
10031 |
-
return this.$vnode && this.$vnode.ssrContext
|
10032 |
-
}
|
10033 |
-
});
|
10034 |
-
|
10035 |
-
// expose FunctionalRenderContext for ssr runtime helper installation
|
10036 |
-
Object.defineProperty(Vue, 'FunctionalRenderContext', {
|
10037 |
-
value: FunctionalRenderContext
|
10038 |
-
});
|
10039 |
-
|
10040 |
-
Vue.version = '2.5.16';
|
10041 |
-
|
10042 |
-
/* */
|
10043 |
-
|
10044 |
-
// these are reserved for web because they are directly compiled away
|
10045 |
-
// during template compilation
|
10046 |
-
var isReservedAttr = makeMap('style,class');
|
10047 |
-
|
10048 |
-
// attributes that should be using props for binding
|
10049 |
-
var acceptValue = makeMap('input,textarea,option,select,progress');
|
10050 |
-
var mustUseProp = function (tag, type, attr) {
|
10051 |
-
return (
|
10052 |
-
(attr === 'value' && acceptValue(tag)) && type !== 'button' ||
|
10053 |
-
(attr === 'selected' && tag === 'option') ||
|
10054 |
-
(attr === 'checked' && tag === 'input') ||
|
10055 |
-
(attr === 'muted' && tag === 'video')
|
10056 |
-
)
|
10057 |
-
};
|
10058 |
-
|
10059 |
-
var isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck');
|
10060 |
-
|
10061 |
-
var isBooleanAttr = makeMap(
|
10062 |
-
'allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,' +
|
10063 |
-
'default,defaultchecked,defaultmuted,defaultselected,defer,disabled,' +
|
10064 |
-
'enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,' +
|
10065 |
-
'muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,' +
|
10066 |
-
'required,reversed,scoped,seamless,selected,sortable,translate,' +
|
10067 |
-
'truespeed,typemustmatch,visible'
|
10068 |
-
);
|
10069 |
-
|
10070 |
-
var xlinkNS = 'http://www.w3.org/1999/xlink';
|
10071 |
-
|
10072 |
-
var isXlink = function (name) {
|
10073 |
-
return name.charAt(5) === ':' && name.slice(0, 5) === 'xlink'
|
10074 |
-
};
|
10075 |
-
|
10076 |
-
var getXlinkProp = function (name) {
|
10077 |
-
return isXlink(name) ? name.slice(6, name.length) : ''
|
10078 |
-
};
|
10079 |
-
|
10080 |
-
var isFalsyAttrValue = function (val) {
|
10081 |
-
return val == null || val === false
|
10082 |
-
};
|
10083 |
-
|
10084 |
-
/* */
|
10085 |
-
|
10086 |
-
function genClassForVnode (vnode) {
|
10087 |
-
var data = vnode.data;
|
10088 |
-
var parentNode = vnode;
|
10089 |
-
var childNode = vnode;
|
10090 |
-
while (isDef(childNode.componentInstance)) {
|
10091 |
-
childNode = childNode.componentInstance._vnode;
|
10092 |
-
if (childNode && childNode.data) {
|
10093 |
-
data = mergeClassData(childNode.data, data);
|
10094 |
-
}
|
10095 |
-
}
|
10096 |
-
while (isDef(parentNode = parentNode.parent)) {
|
10097 |
-
if (parentNode && parentNode.data) {
|
10098 |
-
data = mergeClassData(data, parentNode.data);
|
10099 |
-
}
|
10100 |
-
}
|
10101 |
-
return renderClass(data.staticClass, data.class)
|
10102 |
-
}
|
10103 |
-
|
10104 |
-
function mergeClassData (child, parent) {
|
10105 |
-
return {
|
10106 |
-
staticClass: concat(child.staticClass, parent.staticClass),
|
10107 |
-
class: isDef(child.class)
|
10108 |
-
? [child.class, parent.class]
|
10109 |
-
: parent.class
|
10110 |
-
}
|
10111 |
-
}
|
10112 |
-
|
10113 |
-
function renderClass (
|
10114 |
-
staticClass,
|
10115 |
-
dynamicClass
|
10116 |
-
) {
|
10117 |
-
if (isDef(staticClass) || isDef(dynamicClass)) {
|
10118 |
-
return concat(staticClass, stringifyClass(dynamicClass))
|
10119 |
-
}
|
10120 |
-
/* istanbul ignore next */
|
10121 |
-
return ''
|
10122 |
-
}
|
10123 |
-
|
10124 |
-
function concat (a, b) {
|
10125 |
-
return a ? b ? (a + ' ' + b) : a : (b || '')
|
10126 |
-
}
|
10127 |
-
|
10128 |
-
function stringifyClass (value) {
|
10129 |
-
if (Array.isArray(value)) {
|
10130 |
-
return stringifyArray(value)
|
10131 |
-
}
|
10132 |
-
if (isObject(value)) {
|
10133 |
-
return stringifyObject(value)
|
10134 |
-
}
|
10135 |
-
if (typeof value === 'string') {
|
10136 |
-
return value
|
10137 |
-
}
|
10138 |
-
/* istanbul ignore next */
|
10139 |
-
return ''
|
10140 |
-
}
|
10141 |
-
|
10142 |
-
function stringifyArray (value) {
|
10143 |
-
var res = '';
|
10144 |
-
var stringified;
|
10145 |
-
for (var i = 0, l = value.length; i < l; i++) {
|
10146 |
-
if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
|
10147 |
-
if (res) { res += ' '; }
|
10148 |
-
res += stringified;
|
10149 |
-
}
|
10150 |
-
}
|
10151 |
-
return res
|
10152 |
-
}
|
10153 |
-
|
10154 |
-
function stringifyObject (value) {
|
10155 |
-
var res = '';
|
10156 |
-
for (var key in value) {
|
10157 |
-
if (value[key]) {
|
10158 |
-
if (res) { res += ' '; }
|
10159 |
-
res += key;
|
10160 |
-
}
|
10161 |
-
}
|
10162 |
-
return res
|
10163 |
-
}
|
10164 |
-
|
10165 |
-
/* */
|
10166 |
-
|
10167 |
-
var namespaceMap = {
|
10168 |
-
svg: 'http://www.w3.org/2000/svg',
|
10169 |
-
math: 'http://www.w3.org/1998/Math/MathML'
|
10170 |
-
};
|
10171 |
-
|
10172 |
-
var isHTMLTag = makeMap(
|
10173 |
-
'html,body,base,head,link,meta,style,title,' +
|
10174 |
-
'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
|
10175 |
-
'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +
|
10176 |
-
'a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +
|
10177 |
-
's,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,' +
|
10178 |
-
'embed,object,param,source,canvas,script,noscript,del,ins,' +
|
10179 |
-
'caption,col,colgroup,table,thead,tbody,td,th,tr,' +
|
10180 |
-
'button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,' +
|
10181 |
-
'output,progress,select,textarea,' +
|
10182 |
-
'details,dialog,menu,menuitem,summary,' +
|
10183 |
-
'content,element,shadow,template,blockquote,iframe,tfoot'
|
10184 |
-
);
|
10185 |
-
|
10186 |
-
// this map is intentionally selective, only covering SVG elements that may
|
10187 |
-
// contain child elements.
|
10188 |
-
var isSVG = makeMap(
|
10189 |
-
'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +
|
10190 |
-
'foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
|
10191 |
-
'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
|
10192 |
-
true
|
10193 |
-
);
|
10194 |
-
|
10195 |
-
var isPreTag = function (tag) { return tag === 'pre'; };
|
10196 |
-
|
10197 |
-
var isReservedTag = function (tag) {
|
10198 |
-
return isHTMLTag(tag) || isSVG(tag)
|
10199 |
-
};
|
10200 |
-
|
10201 |
-
function getTagNamespace (tag) {
|
10202 |
-
if (isSVG(tag)) {
|
10203 |
-
return 'svg'
|
10204 |
-
}
|
10205 |
-
// basic support for MathML
|
10206 |
-
// note it doesn't support other MathML elements being component roots
|
10207 |
-
if (tag === 'math') {
|
10208 |
-
return 'math'
|
10209 |
-
}
|
10210 |
-
}
|
10211 |
-
|
10212 |
-
var unknownElementCache = Object.create(null);
|
10213 |
-
function isUnknownElement (tag) {
|
10214 |
-
/* istanbul ignore if */
|
10215 |
-
if (!inBrowser) {
|
10216 |
-
return true
|
10217 |
-
}
|
10218 |
-
if (isReservedTag(tag)) {
|
10219 |
-
return false
|
10220 |
-
}
|
10221 |
-
tag = tag.toLowerCase();
|
10222 |
-
/* istanbul ignore if */
|
10223 |
-
if (unknownElementCache[tag] != null) {
|
10224 |
-
return unknownElementCache[tag]
|
10225 |
-
}
|
10226 |
-
var el = document.createElement(tag);
|
10227 |
-
if (tag.indexOf('-') > -1) {
|
10228 |
-
// http://stackoverflow.com/a/28210364/1070244
|
10229 |
-
return (unknownElementCache[tag] = (
|
10230 |
-
el.constructor === window.HTMLUnknownElement ||
|
10231 |
-
el.constructor === window.HTMLElement
|
10232 |
-
))
|
10233 |
-
} else {
|
10234 |
-
return (unknownElementCache[tag] = /HTMLUnknownElement/.test(el.toString()))
|
10235 |
-
}
|
10236 |
-
}
|
10237 |
-
|
10238 |
-
var isTextInputType = makeMap('text,number,password,search,email,tel,url');
|
10239 |
-
|
10240 |
-
/* */
|
10241 |
-
|
10242 |
-
/**
|
10243 |
-
* Query an element selector if it's not an element already.
|
10244 |
-
*/
|
10245 |
-
function query (el) {
|
10246 |
-
if (typeof el === 'string') {
|
10247 |
-
var selected = document.querySelector(el);
|
10248 |
-
if (!selected) {
|
10249 |
-
process.env.NODE_ENV !== 'production' && warn(
|
10250 |
-
'Cannot find element: ' + el
|
10251 |
-
);
|
10252 |
-
return document.createElement('div')
|
10253 |
-
}
|
10254 |
-
return selected
|
10255 |
-
} else {
|
10256 |
-
return el
|
10257 |
-
}
|
10258 |
-
}
|
10259 |
-
|
10260 |
-
/* */
|
10261 |
-
|
10262 |
-
function createElement$1 (tagName, vnode) {
|
10263 |
-
var elm = document.createElement(tagName);
|
10264 |
-
if (tagName !== 'select') {
|
10265 |
-
return elm
|
10266 |
-
}
|
10267 |
-
// false or null will remove the attribute but undefined will not
|
10268 |
-
if (vnode.data && vnode.data.attrs && vnode.data.attrs.multiple !== undefined) {
|
10269 |
-
elm.setAttribute('multiple', 'multiple');
|
10270 |
-
}
|
10271 |
-
return elm
|
10272 |
-
}
|
10273 |
-
|
10274 |
-
function createElementNS (namespace, tagName) {
|
10275 |
-
return document.createElementNS(namespaceMap[namespace], tagName)
|
10276 |
-
}
|
10277 |
-
|
10278 |
-
function createTextNode (text) {
|
10279 |
-
return document.createTextNode(text)
|
10280 |
-
}
|
10281 |
-
|
10282 |
-
function createComment (text) {
|
10283 |
-
return document.createComment(text)
|
10284 |
-
}
|
10285 |
-
|
10286 |
-
function insertBefore (parentNode, newNode, referenceNode) {
|
10287 |
-
parentNode.insertBefore(newNode, referenceNode);
|
10288 |
-
}
|
10289 |
-
|
10290 |
-
function removeChild (node, child) {
|
10291 |
-
node.removeChild(child);
|
10292 |
-
}
|
10293 |
-
|
10294 |
-
function appendChild (node, child) {
|
10295 |
-
node.appendChild(child);
|
10296 |
-
}
|
10297 |
-
|
10298 |
-
function parentNode (node) {
|
10299 |
-
return node.parentNode
|
10300 |
-
}
|
10301 |
-
|
10302 |
-
function nextSibling (node) {
|
10303 |
-
return node.nextSibling
|
10304 |
-
}
|
10305 |
-
|
10306 |
-
function tagName (node) {
|
10307 |
-
return node.tagName
|
10308 |
-
}
|
10309 |
-
|
10310 |
-
function setTextContent (node, text) {
|
10311 |
-
node.textContent = text;
|
10312 |
-
}
|
10313 |
-
|
10314 |
-
function setStyleScope (node, scopeId) {
|
10315 |
-
node.setAttribute(scopeId, '');
|
10316 |
-
}
|
10317 |
-
|
10318 |
-
|
10319 |
-
var nodeOps = Object.freeze({
|
10320 |
-
createElement: createElement$1,
|
10321 |
-
createElementNS: createElementNS,
|
10322 |
-
createTextNode: createTextNode,
|
10323 |
-
createComment: createComment,
|
10324 |
-
insertBefore: insertBefore,
|
10325 |
-
removeChild: removeChild,
|
10326 |
-
appendChild: appendChild,
|
10327 |
-
parentNode: parentNode,
|
10328 |
-
nextSibling: nextSibling,
|
10329 |
-
tagName: tagName,
|
10330 |
-
setTextContent: setTextContent,
|
10331 |
-
setStyleScope: setStyleScope
|
10332 |
-
});
|
10333 |
-
|
10334 |
-
/* */
|
10335 |
-
|
10336 |
-
var ref = {
|
10337 |
-
create: function create (_, vnode) {
|
10338 |
-
registerRef(vnode);
|
10339 |
-
},
|
10340 |
-
update: function update (oldVnode, vnode) {
|
10341 |
-
if (oldVnode.data.ref !== vnode.data.ref) {
|
10342 |
-
registerRef(oldVnode, true);
|
10343 |
-
registerRef(vnode);
|
10344 |
-
}
|
10345 |
-
},
|
10346 |
-
destroy: function destroy (vnode) {
|
10347 |
-
registerRef(vnode, true);
|
10348 |
-
}
|
10349 |
-
}
|
10350 |
-
|
10351 |
-
function registerRef (vnode, isRemoval) {
|
10352 |
-
var key = vnode.data.ref;
|
10353 |
-
if (!isDef(key)) { return }
|
10354 |
-
|
10355 |
-
var vm = vnode.context;
|
10356 |
-
var ref = vnode.componentInstance || vnode.elm;
|
10357 |
-
var refs = vm.$refs;
|
10358 |
-
if (isRemoval) {
|
10359 |
-
if (Array.isArray(refs[key])) {
|
10360 |
-
remove(refs[key], ref);
|
10361 |
-
} else if (refs[key] === ref) {
|
10362 |
-
refs[key] = undefined;
|
10363 |
-
}
|
10364 |
-
} else {
|
10365 |
-
if (vnode.data.refInFor) {
|
10366 |
-
if (!Array.isArray(refs[key])) {
|
10367 |
-
refs[key] = [ref];
|
10368 |
-
} else if (refs[key].indexOf(ref) < 0) {
|
10369 |
-
// $flow-disable-line
|
10370 |
-
refs[key].push(ref);
|
10371 |
-
}
|
10372 |
-
} else {
|
10373 |
-
refs[key] = ref;
|
10374 |
-
}
|
10375 |
-
}
|
10376 |
-
}
|
10377 |
-
|
10378 |
-
/**
|
10379 |
-
* Virtual DOM patching algorithm based on Snabbdom by
|
10380 |
-
* Simon Friis Vindum (@paldepind)
|
10381 |
-
* Licensed under the MIT License
|
10382 |
-
* https://github.com/paldepind/snabbdom/blob/master/LICENSE
|
10383 |
-
*
|
10384 |
-
* modified by Evan You (@yyx990803)
|
10385 |
-
*
|
10386 |
-
* Not type-checking this because this file is perf-critical and the cost
|
10387 |
-
* of making flow understand it is not worth it.
|
10388 |
-
*/
|
10389 |
-
|
10390 |
-
var emptyNode = new VNode('', {}, []);
|
10391 |
-
|
10392 |
-
var hooks = ['create', 'activate', 'update', 'remove', 'destroy'];
|
10393 |
-
|
10394 |
-
function sameVnode (a, b) {
|
10395 |
-
return (
|
10396 |
-
a.key === b.key && (
|
10397 |
-
(
|
10398 |
-
a.tag === b.tag &&
|
10399 |
-
a.isComment === b.isComment &&
|
10400 |
-
isDef(a.data) === isDef(b.data) &&
|
10401 |
-
sameInputType(a, b)
|
10402 |
-
) || (
|
10403 |
-
isTrue(a.isAsyncPlaceholder) &&
|
10404 |
-
a.asyncFactory === b.asyncFactory &&
|
10405 |
-
isUndef(b.asyncFactory.error)
|
10406 |
-
)
|
10407 |
-
)
|
10408 |
-
)
|
10409 |
-
}
|
10410 |
-
|
10411 |
-
function sameInputType (a, b) {
|
10412 |
-
if (a.tag !== 'input') { return true }
|
10413 |
-
var i;
|
10414 |
-
var typeA = isDef(i = a.data) && isDef(i = i.attrs) && i.type;
|
10415 |
-
var typeB = isDef(i = b.data) && isDef(i = i.attrs) && i.type;
|
10416 |
-
return typeA === typeB || isTextInputType(typeA) && isTextInputType(typeB)
|
10417 |
-
}
|
10418 |
-
|
10419 |
-
function createKeyToOldIdx (children, beginIdx, endIdx) {
|
10420 |
-
var i, key;
|
10421 |
-
var map = {};
|
10422 |
-
for (i = beginIdx; i <= endIdx; ++i) {
|
10423 |
-
key = children[i].key;
|
10424 |
-
if (isDef(key)) { map[key] = i; }
|
10425 |
-
}
|
10426 |
-
return map
|
10427 |
-
}
|
10428 |
-
|
10429 |
-
function createPatchFunction (backend) {
|
10430 |
-
var i, j;
|
10431 |
-
var cbs = {};
|
10432 |
-
|
10433 |
-
var modules = backend.modules;
|
10434 |
-
var nodeOps = backend.nodeOps;
|
10435 |
-
|
10436 |
-
for (i = 0; i < hooks.length; ++i) {
|
10437 |
-
cbs[hooks[i]] = [];
|
10438 |
-
for (j = 0; j < modules.length; ++j) {
|
10439 |
-
if (isDef(modules[j][hooks[i]])) {
|
10440 |
-
cbs[hooks[i]].push(modules[j][hooks[i]]);
|
10441 |
-
}
|
10442 |
-
}
|
10443 |
-
}
|
10444 |
-
|
10445 |
-
function emptyNodeAt (elm) {
|
10446 |
-
return new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm)
|
10447 |
-
}
|
10448 |
-
|
10449 |
-
function createRmCb (childElm, listeners) {
|
10450 |
-
function remove () {
|
10451 |
-
if (--remove.listeners === 0) {
|
10452 |
-
removeNode(childElm);
|
10453 |
-
}
|
10454 |
-
}
|
10455 |
-
remove.listeners = listeners;
|
10456 |
-
return remove
|
10457 |
-
}
|
10458 |
-
|
10459 |
-
function removeNode (el) {
|
10460 |
-
var parent = nodeOps.parentNode(el);
|
10461 |
-
// element may have already been removed due to v-html / v-text
|
10462 |
-
if (isDef(parent)) {
|
10463 |
-
nodeOps.removeChild(parent, el);
|
10464 |
-
}
|
10465 |
-
}
|
10466 |
-
|
10467 |
-
function isUnknownElement$$1 (vnode, inVPre) {
|
10468 |
-
return (
|
10469 |
-
!inVPre &&
|
10470 |
-
!vnode.ns &&
|
10471 |
-
!(
|
10472 |
-
config.ignoredElements.length &&
|
10473 |
-
config.ignoredElements.some(function (ignore) {
|
10474 |
-
return isRegExp(ignore)
|
10475 |
-
? ignore.test(vnode.tag)
|
10476 |
-
: ignore === vnode.tag
|
10477 |
-
})
|
10478 |
-
) &&
|
10479 |
-
config.isUnknownElement(vnode.tag)
|
10480 |
-
)
|
10481 |
-
}
|
10482 |
-
|
10483 |
-
var creatingElmInVPre = 0;
|
10484 |
-
|
10485 |
-
function createElm (
|
10486 |
-
vnode,
|
10487 |
-
insertedVnodeQueue,
|
10488 |
-
parentElm,
|
10489 |
-
refElm,
|
10490 |
-
nested,
|
10491 |
-
ownerArray,
|
10492 |
-
index
|
10493 |
-
) {
|
10494 |
-
if (isDef(vnode.elm) && isDef(ownerArray)) {
|
10495 |
-
// This vnode was used in a previous render!
|
10496 |
-
// now it's used as a new node, overwriting its elm would cause
|
10497 |
-
// potential patch errors down the road when it's used as an insertion
|
10498 |
-
// reference node. Instead, we clone the node on-demand before creating
|
10499 |
-
// associated DOM element for it.
|
10500 |
-
vnode = ownerArray[index] = cloneVNode(vnode);
|
10501 |
-
}
|
10502 |
-
|
10503 |
-
vnode.isRootInsert = !nested; // for transition enter check
|
10504 |
-
if (createComponent(vnode, insertedVnodeQueue, parentElm, refElm)) {
|
10505 |
-
return
|
10506 |
-
}
|
10507 |
-
|
10508 |
-
var data = vnode.data;
|
10509 |
-
var children = vnode.children;
|
10510 |
-
var tag = vnode.tag;
|
10511 |
-
if (isDef(tag)) {
|
10512 |
-
if (process.env.NODE_ENV !== 'production') {
|
10513 |
-
if (data && data.pre) {
|
10514 |
-
creatingElmInVPre++;
|
10515 |
-
}
|
10516 |
-
if (isUnknownElement$$1(vnode, creatingElmInVPre)) {
|
10517 |
-
warn(
|
10518 |
-
'Unknown custom element: <' + tag + '> - did you ' +
|
10519 |
-
'register the component correctly? For recursive components, ' +
|
10520 |
-
'make sure to provide the "name" option.',
|
10521 |
-
vnode.context
|
10522 |
-
);
|
10523 |
-
}
|
10524 |
-
}
|
10525 |
-
|
10526 |
-
vnode.elm = vnode.ns
|
10527 |
-
? nodeOps.createElementNS(vnode.ns, tag)
|
10528 |
-
: nodeOps.createElement(tag, vnode);
|
10529 |
-
setScope(vnode);
|
10530 |
-
|
10531 |
-
/* istanbul ignore if */
|
10532 |
-
{
|
10533 |
-
createChildren(vnode, children, insertedVnodeQueue);
|
10534 |
-
if (isDef(data)) {
|
10535 |
-
invokeCreateHooks(vnode, insertedVnodeQueue);
|
10536 |
-
}
|
10537 |
-
insert(parentElm, vnode.elm, refElm);
|
10538 |
-
}
|
10539 |
-
|
10540 |
-
if (process.env.NODE_ENV !== 'production' && data && data.pre) {
|
10541 |
-
creatingElmInVPre--;
|
10542 |
-
}
|
10543 |
-
} else if (isTrue(vnode.isComment)) {
|
10544 |
-
vnode.elm = nodeOps.createComment(vnode.text);
|
10545 |
-
insert(parentElm, vnode.elm, refElm);
|
10546 |
-
} else {
|
10547 |
-
vnode.elm = nodeOps.createTextNode(vnode.text);
|
10548 |
-
insert(parentElm, vnode.elm, refElm);
|
10549 |
-
}
|
10550 |
-
}
|
10551 |
-
|
10552 |
-
function createComponent (vnode, insertedVnodeQueue, parentElm, refElm) {
|
10553 |
-
var i = vnode.data;
|
10554 |
-
if (isDef(i)) {
|
10555 |
-
var isReactivated = isDef(vnode.componentInstance) && i.keepAlive;
|
10556 |
-
if (isDef(i = i.hook) && isDef(i = i.init)) {
|
10557 |
-
i(vnode, false /* hydrating */, parentElm, refElm);
|
10558 |
-
}
|
10559 |
-
// after calling the init hook, if the vnode is a child component
|
10560 |
-
// it should've created a child instance and mounted it. the child
|
10561 |
-
// component also has set the placeholder vnode's elm.
|
10562 |
-
// in that case we can just return the element and be done.
|
10563 |
-
if (isDef(vnode.componentInstance)) {
|
10564 |
-
initComponent(vnode, insertedVnodeQueue);
|
10565 |
-
if (isTrue(isReactivated)) {
|
10566 |
-
reactivateComponent(vnode, insertedVnodeQueue, parentElm, refElm);
|
10567 |
-
}
|
10568 |
-
return true
|
10569 |
-
}
|
10570 |
-
}
|
10571 |
-
}
|
10572 |
-
|
10573 |
-
function initComponent (vnode, insertedVnodeQueue) {
|
10574 |
-
if (isDef(vnode.data.pendingInsert)) {
|
10575 |
-
insertedVnodeQueue.push.apply(insertedVnodeQueue, vnode.data.pendingInsert);
|
10576 |
-
vnode.data.pendingInsert = null;
|
10577 |
-
}
|
10578 |
-
vnode.elm = vnode.componentInstance.$el;
|
10579 |
-
if (isPatchable(vnode)) {
|
10580 |
-
invokeCreateHooks(vnode, insertedVnodeQueue);
|
10581 |
-
setScope(vnode);
|
10582 |
-
} else {
|
10583 |
-
// empty component root.
|
10584 |
-
// skip all element-related modules except for ref (#3455)
|
10585 |
-
registerRef(vnode);
|
10586 |
-
// make sure to invoke the insert hook
|
10587 |
-
insertedVnodeQueue.push(vnode);
|
10588 |
-
}
|
10589 |
-
}
|
10590 |
-
|
10591 |
-
function reactivateComponent (vnode, insertedVnodeQueue, parentElm, refElm) {
|
10592 |
-
var i;
|
10593 |
-
// hack for #4339: a reactivated component with inner transition
|
10594 |
-
// does not trigger because the inner node's created hooks are not called
|
10595 |
-
// again. It's not ideal to involve module-specific logic in here but
|
10596 |
-
// there doesn't seem to be a better way to do it.
|
10597 |
-
var innerNode = vnode;
|
10598 |
-
while (innerNode.componentInstance) {
|
10599 |
-
innerNode = innerNode.componentInstance._vnode;
|
10600 |
-
if (isDef(i = innerNode.data) && isDef(i = i.transition)) {
|
10601 |
-
for (i = 0; i < cbs.activate.length; ++i) {
|
10602 |
-
cbs.activate[i](emptyNode, innerNode);
|
10603 |
-
}
|
10604 |
-
insertedVnodeQueue.push(innerNode);
|
10605 |
-
break
|
10606 |
-
}
|
10607 |
-
}
|
10608 |
-
// unlike a newly created component,
|
10609 |
-
// a reactivated keep-alive component doesn't insert itself
|
10610 |
-
insert(parentElm, vnode.elm, refElm);
|
10611 |
-
}
|
10612 |
-
|
10613 |
-
function insert (parent, elm, ref$$1) {
|
10614 |
-
if (isDef(parent)) {
|
10615 |
-
if (isDef(ref$$1)) {
|
10616 |
-
if (ref$$1.parentNode === parent) {
|
10617 |
-
nodeOps.insertBefore(parent, elm, ref$$1);
|
10618 |
-
}
|
10619 |
-
} else {
|
10620 |
-
nodeOps.appendChild(parent, elm);
|
10621 |
-
}
|
10622 |
-
}
|
10623 |
-
}
|
10624 |
-
|
10625 |
-
function createChildren (vnode, children, insertedVnodeQueue) {
|
10626 |
-
if (Array.isArray(children)) {
|
10627 |
-
if (process.env.NODE_ENV !== 'production') {
|
10628 |
-
checkDuplicateKeys(children);
|
10629 |
-
}
|
10630 |
-
for (var i = 0; i < children.length; ++i) {
|
10631 |
-
createElm(children[i], insertedVnodeQueue, vnode.elm, null, true, children, i);
|
10632 |
-
}
|
10633 |
-
} else if (isPrimitive(vnode.text)) {
|
10634 |
-
nodeOps.appendChild(vnode.elm, nodeOps.createTextNode(String(vnode.text)));
|
10635 |
-
}
|
10636 |
-
}
|
10637 |
-
|
10638 |
-
function isPatchable (vnode) {
|
10639 |
-
while (vnode.componentInstance) {
|
10640 |
-
vnode = vnode.componentInstance._vnode;
|
10641 |
-
}
|
10642 |
-
return isDef(vnode.tag)
|
10643 |
-
}
|
10644 |
-
|
10645 |
-
function invokeCreateHooks (vnode, insertedVnodeQueue) {
|
10646 |
-
for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {
|
10647 |
-
cbs.create[i$1](emptyNode, vnode);
|
10648 |
-
}
|
10649 |
-
i = vnode.data.hook; // Reuse variable
|
10650 |
-
if (isDef(i)) {
|
10651 |
-
if (isDef(i.create)) { i.create(emptyNode, vnode); }
|
10652 |
-
if (isDef(i.insert)) { insertedVnodeQueue.push(vnode); }
|
10653 |
-
}
|
10654 |
-
}
|
10655 |
-
|
10656 |
-
// set scope id attribute for scoped CSS.
|
10657 |
-
// this is implemented as a special case to avoid the overhead
|
10658 |
-
// of going through the normal attribute patching process.
|
10659 |
-
function setScope (vnode) {
|
10660 |
-
var i;
|
10661 |
-
if (isDef(i = vnode.fnScopeId)) {
|
10662 |
-
nodeOps.setStyleScope(vnode.elm, i);
|
10663 |
-
} else {
|
10664 |
-
var ancestor = vnode;
|
10665 |
-
while (ancestor) {
|
10666 |
-
if (isDef(i = ancestor.context) && isDef(i = i.$options._scopeId)) {
|
10667 |
-
nodeOps.setStyleScope(vnode.elm, i);
|
10668 |
-
}
|
10669 |
-
ancestor = ancestor.parent;
|
10670 |
-
}
|
10671 |
-
}
|
10672 |
-
// for slot content they should also get the scopeId from the host instance.
|
10673 |
-
if (isDef(i = activeInstance) &&
|
10674 |
-
i !== vnode.context &&
|
10675 |
-
i !== vnode.fnContext &&
|
10676 |
-
isDef(i = i.$options._scopeId)
|
10677 |
-
) {
|
10678 |
-
nodeOps.setStyleScope(vnode.elm, i);
|
10679 |
-
}
|
10680 |
-
}
|
10681 |
-
|
10682 |
-
function addVnodes (parentElm, refElm, vnodes, startIdx, endIdx, insertedVnodeQueue) {
|
10683 |
-
for (; startIdx <= endIdx; ++startIdx) {
|
10684 |
-
createElm(vnodes[startIdx], insertedVnodeQueue, parentElm, refElm, false, vnodes, startIdx);
|
10685 |
-
}
|
10686 |
-
}
|
10687 |
-
|
10688 |
-
function invokeDestroyHook (vnode) {
|
10689 |
-
var i, j;
|
10690 |
-
var data = vnode.data;
|
10691 |
-
if (isDef(data)) {
|
10692 |
-
if (isDef(i = data.hook) && isDef(i = i.destroy)) { i(vnode); }
|
10693 |
-
for (i = 0; i < cbs.destroy.length; ++i) { cbs.destroy[i](vnode); }
|
10694 |
-
}
|
10695 |
-
if (isDef(i = vnode.children)) {
|
10696 |
-
for (j = 0; j < vnode.children.length; ++j) {
|
10697 |
-
invokeDestroyHook(vnode.children[j]);
|
10698 |
-
}
|
10699 |
-
}
|
10700 |
-
}
|
10701 |
-
|
10702 |
-
function removeVnodes (parentElm, vnodes, startIdx, endIdx) {
|
10703 |
-
for (; startIdx <= endIdx; ++startIdx) {
|
10704 |
-
var ch = vnodes[startIdx];
|
10705 |
-
if (isDef(ch)) {
|
10706 |
-
if (isDef(ch.tag)) {
|
10707 |
-
removeAndInvokeRemoveHook(ch);
|
10708 |
-
invokeDestroyHook(ch);
|
10709 |
-
} else { // Text node
|
10710 |
-
removeNode(ch.elm);
|
10711 |
-
}
|
10712 |
-
}
|
10713 |
-
}
|
10714 |
-
}
|
10715 |
-
|
10716 |
-
function removeAndInvokeRemoveHook (vnode, rm) {
|
10717 |
-
if (isDef(rm) || isDef(vnode.data)) {
|
10718 |
-
var i;
|
10719 |
-
var listeners = cbs.remove.length + 1;
|
10720 |
-
if (isDef(rm)) {
|
10721 |
-
// we have a recursively passed down rm callback
|
10722 |
-
// increase the listeners count
|
10723 |
-
rm.listeners += listeners;
|
10724 |
-
} else {
|
10725 |
-
// directly removing
|
10726 |
-
rm = createRmCb(vnode.elm, listeners);
|
10727 |
-
}
|
10728 |
-
// recursively invoke hooks on child component root node
|
10729 |
-
if (isDef(i = vnode.componentInstance) && isDef(i = i._vnode) && isDef(i.data)) {
|
10730 |
-
removeAndInvokeRemoveHook(i, rm);
|
10731 |
-
}
|
10732 |
-
for (i = 0; i < cbs.remove.length; ++i) {
|
10733 |
-
cbs.remove[i](vnode, rm);
|
10734 |
-
}
|
10735 |
-
if (isDef(i = vnode.data.hook) && isDef(i = i.remove)) {
|
10736 |
-
i(vnode, rm);
|
10737 |
-
} else {
|
10738 |
-
rm();
|
10739 |
-
}
|
10740 |
-
} else {
|
10741 |
-
removeNode(vnode.elm);
|
10742 |
-
}
|
10743 |
-
}
|
10744 |
-
|
10745 |
-
function updateChildren (parentElm, oldCh, newCh, insertedVnodeQueue, removeOnly) {
|
10746 |
-
var oldStartIdx = 0;
|
10747 |
-
var newStartIdx = 0;
|
10748 |
-
var oldEndIdx = oldCh.length - 1;
|
10749 |
-
var oldStartVnode = oldCh[0];
|
10750 |
-
var oldEndVnode = oldCh[oldEndIdx];
|
10751 |
-
var newEndIdx = newCh.length - 1;
|
10752 |
-
var newStartVnode = newCh[0];
|
10753 |
-
var newEndVnode = newCh[newEndIdx];
|
10754 |
-
var oldKeyToIdx, idxInOld, vnodeToMove, refElm;
|
10755 |
-
|
10756 |
-
// removeOnly is a special flag used only by <transition-group>
|
10757 |
-
// to ensure removed elements stay in correct relative positions
|
10758 |
-
// during leaving transitions
|
10759 |
-
var canMove = !removeOnly;
|
10760 |
-
|
10761 |
-
if (process.env.NODE_ENV !== 'production') {
|
10762 |
-
checkDuplicateKeys(newCh);
|
10763 |
-
}
|
10764 |
-
|
10765 |
-
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
10766 |
-
if (isUndef(oldStartVnode)) {
|
10767 |
-
oldStartVnode = oldCh[++oldStartIdx]; // Vnode has been moved left
|
10768 |
-
} else if (isUndef(oldEndVnode)) {
|
10769 |
-
oldEndVnode = oldCh[--oldEndIdx];
|
10770 |
-
} else if (sameVnode(oldStartVnode, newStartVnode)) {
|
10771 |
-
patchVnode(oldStartVnode, newStartVnode, insertedVnodeQueue);
|
10772 |
-
oldStartVnode = oldCh[++oldStartIdx];
|
10773 |
-
newStartVnode = newCh[++newStartIdx];
|
10774 |
-
} else if (sameVnode(oldEndVnode, newEndVnode)) {
|
10775 |
-
patchVnode(oldEndVnode, newEndVnode, insertedVnodeQueue);
|
10776 |
-
oldEndVnode = oldCh[--oldEndIdx];
|
10777 |
-
newEndVnode = newCh[--newEndIdx];
|
10778 |
-
} else if (sameVnode(oldStartVnode, newEndVnode)) { // Vnode moved right
|
10779 |
-
patchVnode(oldStartVnode, newEndVnode, insertedVnodeQueue);
|
10780 |
-
canMove && nodeOps.insertBefore(parentElm, oldStartVnode.elm, nodeOps.nextSibling(oldEndVnode.elm));
|
10781 |
-
oldStartVnode = oldCh[++oldStartIdx];
|
10782 |
-
newEndVnode = newCh[--newEndIdx];
|
10783 |
-
} else if (sameVnode(oldEndVnode, newStartVnode)) { // Vnode moved left
|
10784 |
-
patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue);
|
10785 |
-
canMove && nodeOps.insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm);
|
10786 |
-
oldEndVnode = oldCh[--oldEndIdx];
|
10787 |
-
newStartVnode = newCh[++newStartIdx];
|
10788 |
-
} else {
|
10789 |
-
if (isUndef(oldKeyToIdx)) { oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx); }
|
10790 |
-
idxInOld = isDef(newStartVnode.key)
|
10791 |
-
? oldKeyToIdx[newStartVnode.key]
|
10792 |
-
: findIdxInOld(newStartVnode, oldCh, oldStartIdx, oldEndIdx);
|
10793 |
-
if (isUndef(idxInOld)) { // New element
|
10794 |
-
createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, false, newCh, newStartIdx);
|
10795 |
-
} else {
|
10796 |
-
vnodeToMove = oldCh[idxInOld];
|
10797 |
-
if (sameVnode(vnodeToMove, newStartVnode)) {
|
10798 |
-
patchVnode(vnodeToMove, newStartVnode, insertedVnodeQueue);
|
10799 |
-
oldCh[idxInOld] = undefined;
|
10800 |
-
canMove && nodeOps.insertBefore(parentElm, vnodeToMove.elm, oldStartVnode.elm);
|
10801 |
-
} else {
|
10802 |
-
// same key but different element. treat as new element
|
10803 |
-
createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, false, newCh, newStartIdx);
|
10804 |
-
}
|
10805 |
-
}
|
10806 |
-
newStartVnode = newCh[++newStartIdx];
|
10807 |
-
}
|
10808 |
-
}
|
10809 |
-
if (oldStartIdx > oldEndIdx) {
|
10810 |
-
refElm = isUndef(newCh[newEndIdx + 1]) ? null : newCh[newEndIdx + 1].elm;
|
10811 |
-
addVnodes(parentElm, refElm, newCh, newStartIdx, newEndIdx, insertedVnodeQueue);
|
10812 |
-
} else if (newStartIdx > newEndIdx) {
|
10813 |
-
removeVnodes(parentElm, oldCh, oldStartIdx, oldEndIdx);
|
10814 |
-
}
|
10815 |
-
}
|
10816 |
-
|
10817 |
-
function checkDuplicateKeys (children) {
|
10818 |
-
var seenKeys = {};
|
10819 |
-
for (var i = 0; i < children.length; i++) {
|
10820 |
-
var vnode = children[i];
|
10821 |
-
var key = vnode.key;
|
10822 |
-
if (isDef(key)) {
|
10823 |
-
if (seenKeys[key]) {
|
10824 |
-
warn(
|
10825 |
-
("Duplicate keys detected: '" + key + "'. This may cause an update error."),
|
10826 |
-
vnode.context
|
10827 |
-
);
|
10828 |
-
} else {
|
10829 |
-
seenKeys[key] = true;
|
10830 |
-
}
|
10831 |
-
}
|
10832 |
-
}
|
10833 |
-
}
|
10834 |
-
|
10835 |
-
function findIdxInOld (node, oldCh, start, end) {
|
10836 |
-
for (var i = start; i < end; i++) {
|
10837 |
-
var c = oldCh[i];
|
10838 |
-
if (isDef(c) && sameVnode(node, c)) { return i }
|
10839 |
-
}
|
10840 |
-
}
|
10841 |
-
|
10842 |
-
function patchVnode (oldVnode, vnode, insertedVnodeQueue, removeOnly) {
|
10843 |
-
if (oldVnode === vnode) {
|
10844 |
-
return
|
10845 |
-
}
|
10846 |
-
|
10847 |
-
var elm = vnode.elm = oldVnode.elm;
|
10848 |
-
|
10849 |
-
if (isTrue(oldVnode.isAsyncPlaceholder)) {
|
10850 |
-
if (isDef(vnode.asyncFactory.resolved)) {
|
10851 |
-
hydrate(oldVnode.elm, vnode, insertedVnodeQueue);
|
10852 |
-
} else {
|
10853 |
-
vnode.isAsyncPlaceholder = true;
|
10854 |
-
}
|
10855 |
-
return
|
10856 |
-
}
|
10857 |
-
|
10858 |
-
// reuse element for static trees.
|
10859 |
-
// note we only do this if the vnode is cloned -
|
10860 |
-
// if the new node is not cloned it means the render functions have been
|
10861 |
-
// reset by the hot-reload-api and we need to do a proper re-render.
|
10862 |
-
if (isTrue(vnode.isStatic) &&
|
10863 |
-
isTrue(oldVnode.isStatic) &&
|
10864 |
-
vnode.key === oldVnode.key &&
|
10865 |
-
(isTrue(vnode.isCloned) || isTrue(vnode.isOnce))
|
10866 |
-
) {
|
10867 |
-
vnode.componentInstance = oldVnode.componentInstance;
|
10868 |
-
return
|
10869 |
-
}
|
10870 |
-
|
10871 |
-
var i;
|
10872 |
-
var data = vnode.data;
|
10873 |
-
if (isDef(data) && isDef(i = data.hook) && isDef(i = i.prepatch)) {
|
10874 |
-
i(oldVnode, vnode);
|
10875 |
-
}
|
10876 |
-
|
10877 |
-
var oldCh = oldVnode.children;
|
10878 |
-
var ch = vnode.children;
|
10879 |
-
if (isDef(data) && isPatchable(vnode)) {
|
10880 |
-
for (i = 0; i < cbs.update.length; ++i) { cbs.update[i](oldVnode, vnode); }
|
10881 |
-
if (isDef(i = data.hook) && isDef(i = i.update)) { i(oldVnode, vnode); }
|
10882 |
-
}
|
10883 |
-
if (isUndef(vnode.text)) {
|
10884 |
-
if (isDef(oldCh) && isDef(ch)) {
|
10885 |
-
if (oldCh !== ch) { updateChildren(elm, oldCh, ch, insertedVnodeQueue, removeOnly); }
|
10886 |
-
} else if (isDef(ch)) {
|
10887 |
-
if (isDef(oldVnode.text)) { nodeOps.setTextContent(elm, ''); }
|
10888 |
-
addVnodes(elm, null, ch, 0, ch.length - 1, insertedVnodeQueue);
|
10889 |
-
} else if (isDef(oldCh)) {
|
10890 |
-
removeVnodes(elm, oldCh, 0, oldCh.length - 1);
|
10891 |
-
} else if (isDef(oldVnode.text)) {
|
10892 |
-
nodeOps.setTextContent(elm, '');
|
10893 |
-
}
|
10894 |
-
} else if (oldVnode.text !== vnode.text) {
|
10895 |
-
nodeOps.setTextContent(elm, vnode.text);
|
10896 |
-
}
|
10897 |
-
if (isDef(data)) {
|
10898 |
-
if (isDef(i = data.hook) && isDef(i = i.postpatch)) { i(oldVnode, vnode); }
|
10899 |
-
}
|
10900 |
-
}
|
10901 |
-
|
10902 |
-
function invokeInsertHook (vnode, queue, initial) {
|
10903 |
-
// delay insert hooks for component root nodes, invoke them after the
|
10904 |
-
// element is really inserted
|
10905 |
-
if (isTrue(initial) && isDef(vnode.parent)) {
|
10906 |
-
vnode.parent.data.pendingInsert = queue;
|
10907 |
-
} else {
|
10908 |
-
for (var i = 0; i < queue.length; ++i) {
|
10909 |
-
queue[i].data.hook.insert(queue[i]);
|
10910 |
-
}
|
10911 |
-
}
|
10912 |
-
}
|
10913 |
-
|
10914 |
-
var hydrationBailed = false;
|
10915 |
-
// list of modules that can skip create hook during hydration because they
|
10916 |
-
// are already rendered on the client or has no need for initialization
|
10917 |
-
// Note: style is excluded because it relies on initial clone for future
|
10918 |
-
// deep updates (#7063).
|
10919 |
-
var isRenderedModule = makeMap('attrs,class,staticClass,staticStyle,key');
|
10920 |
-
|
10921 |
-
// Note: this is a browser-only function so we can assume elms are DOM nodes.
|
10922 |
-
function hydrate (elm, vnode, insertedVnodeQueue, inVPre) {
|
10923 |
-
var i;
|
10924 |
-
var tag = vnode.tag;
|
10925 |
-
var data = vnode.data;
|
10926 |
-
var children = vnode.children;
|
10927 |
-
inVPre = inVPre || (data && data.pre);
|
10928 |
-
vnode.elm = elm;
|
10929 |
-
|
10930 |
-
if (isTrue(vnode.isComment) && isDef(vnode.asyncFactory)) {
|
10931 |
-
vnode.isAsyncPlaceholder = true;
|
10932 |
-
return true
|
10933 |
-
}
|
10934 |
-
// assert node match
|
10935 |
-
if (process.env.NODE_ENV !== 'production') {
|
10936 |
-
if (!assertNodeMatch(elm, vnode, inVPre)) {
|
10937 |
-
return false
|
10938 |
-
}
|
10939 |
-
}
|
10940 |
-
if (isDef(data)) {
|
10941 |
-
if (isDef(i = data.hook) && isDef(i = i.init)) { i(vnode, true /* hydrating */); }
|
10942 |
-
if (isDef(i = vnode.componentInstance)) {
|
10943 |
-
// child component. it should have hydrated its own tree.
|
10944 |
-
initComponent(vnode, insertedVnodeQueue);
|
10945 |
-
return true
|
10946 |
-
}
|
10947 |
-
}
|
10948 |
-
if (isDef(tag)) {
|
10949 |
-
if (isDef(children)) {
|
10950 |
-
// empty element, allow client to pick up and populate children
|
10951 |
-
if (!elm.hasChildNodes()) {
|
10952 |
-
createChildren(vnode, children, insertedVnodeQueue);
|
10953 |
-
} else {
|
10954 |
-
// v-html and domProps: innerHTML
|
10955 |
-
if (isDef(i = data) && isDef(i = i.domProps) && isDef(i = i.innerHTML)) {
|
10956 |
-
if (i !== elm.innerHTML) {
|
10957 |
-
/* istanbul ignore if */
|
10958 |
-
if (process.env.NODE_ENV !== 'production' &&
|
10959 |
-
typeof console !== 'undefined' &&
|
10960 |
-
!hydrationBailed
|
10961 |
-
) {
|
10962 |
-
hydrationBailed = true;
|
10963 |
-
console.warn('Parent: ', elm);
|
10964 |
-
console.warn('server innerHTML: ', i);
|
10965 |
-
console.warn('client innerHTML: ', elm.innerHTML);
|
10966 |
-
}
|
10967 |
-
return false
|
10968 |
-
}
|
10969 |
-
} else {
|
10970 |
-
// iterate and compare children lists
|
10971 |
-
var childrenMatch = true;
|
10972 |
-
var childNode = elm.firstChild;
|
10973 |
-
for (var i$1 = 0; i$1 < children.length; i$1++) {
|
10974 |
-
if (!childNode || !hydrate(childNode, children[i$1], insertedVnodeQueue, inVPre)) {
|
10975 |
-
childrenMatch = false;
|
10976 |
-
break
|
10977 |
-
}
|
10978 |
-
childNode = childNode.nextSibling;
|
10979 |
-
}
|
10980 |
-
// if childNode is not null, it means the actual childNodes list is
|
10981 |
-
// longer than the virtual children list.
|
10982 |
-
if (!childrenMatch || childNode) {
|
10983 |
-
/* istanbul ignore if */
|
10984 |
-
if (process.env.NODE_ENV !== 'production' &&
|
10985 |
-
typeof console !== 'undefined' &&
|
10986 |
-
!hydrationBailed
|
10987 |
-
) {
|
10988 |
-
hydrationBailed = true;
|
10989 |
-
console.warn('Parent: ', elm);
|
10990 |
-
console.warn('Mismatching childNodes vs. VNodes: ', elm.childNodes, children);
|
10991 |
-
}
|
10992 |
-
return false
|
10993 |
-
}
|
10994 |
-
}
|
10995 |
-
}
|
10996 |
-
}
|
10997 |
-
if (isDef(data)) {
|
10998 |
-
var fullInvoke = false;
|
10999 |
-
for (var key in data) {
|
11000 |
-
if (!isRenderedModule(key)) {
|
11001 |
-
fullInvoke = true;
|
11002 |
-
invokeCreateHooks(vnode, insertedVnodeQueue);
|
11003 |
-
break
|
11004 |
-
}
|
11005 |
-
}
|
11006 |
-
if (!fullInvoke && data['class']) {
|
11007 |
-
// ensure collecting deps for deep class bindings for future updates
|
11008 |
-
traverse(data['class']);
|
11009 |
-
}
|
11010 |
-
}
|
11011 |
-
} else if (elm.data !== vnode.text) {
|
11012 |
-
elm.data = vnode.text;
|
11013 |
-
}
|
11014 |
-
return true
|
11015 |
-
}
|
11016 |
-
|
11017 |
-
function assertNodeMatch (node, vnode, inVPre) {
|
11018 |
-
if (isDef(vnode.tag)) {
|
11019 |
-
return vnode.tag.indexOf('vue-component') === 0 || (
|
11020 |
-
!isUnknownElement$$1(vnode, inVPre) &&
|
11021 |
-
vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase())
|
11022 |
-
)
|
11023 |
-
} else {
|
11024 |
-
return node.nodeType === (vnode.isComment ? 8 : 3)
|
11025 |
-
}
|
11026 |
-
}
|
11027 |
-
|
11028 |
-
return function patch (oldVnode, vnode, hydrating, removeOnly, parentElm, refElm) {
|
11029 |
-
if (isUndef(vnode)) {
|
11030 |
-
if (isDef(oldVnode)) { invokeDestroyHook(oldVnode); }
|
11031 |
-
return
|
11032 |
-
}
|
11033 |
-
|
11034 |
-
var isInitialPatch = false;
|
11035 |
-
var insertedVnodeQueue = [];
|
11036 |
-
|
11037 |
-
if (isUndef(oldVnode)) {
|
11038 |
-
// empty mount (likely as component), create new root element
|
11039 |
-
isInitialPatch = true;
|
11040 |
-
createElm(vnode, insertedVnodeQueue, parentElm, refElm);
|
11041 |
-
} else {
|
11042 |
-
var isRealElement = isDef(oldVnode.nodeType);
|
11043 |
-
if (!isRealElement && sameVnode(oldVnode, vnode)) {
|
11044 |
-
// patch existing root node
|
11045 |
-
patchVnode(oldVnode, vnode, insertedVnodeQueue, removeOnly);
|
11046 |
-
} else {
|
11047 |
-
if (isRealElement) {
|
11048 |
-
// mounting to a real element
|
11049 |
-
// check if this is server-rendered content and if we can perform
|
11050 |
-
// a successful hydration.
|
11051 |
-
if (oldVnode.nodeType === 1 && oldVnode.hasAttribute(SSR_ATTR)) {
|
11052 |
-
oldVnode.removeAttribute(SSR_ATTR);
|
11053 |
-
hydrating = true;
|
11054 |
-
}
|
11055 |
-
if (isTrue(hydrating)) {
|
11056 |
-
if (hydrate(oldVnode, vnode, insertedVnodeQueue)) {
|
11057 |
-
invokeInsertHook(vnode, insertedVnodeQueue, true);
|
11058 |
-
return oldVnode
|
11059 |
-
} else if (process.env.NODE_ENV !== 'production') {
|
11060 |
-
warn(
|
11061 |
-
'The client-side rendered virtual DOM tree is not matching ' +
|
11062 |
-
'server-rendered content. This is likely caused by incorrect ' +
|
11063 |
-
'HTML markup, for example nesting block-level elements inside ' +
|
11064 |
-
'<p>, or missing <tbody>. Bailing hydration and performing ' +
|
11065 |
-
'full client-side render.'
|
11066 |
-
);
|
11067 |
-
}
|
11068 |
-
}
|
11069 |
-
// either not server-rendered, or hydration failed.
|
11070 |
-
// create an empty node and replace it
|
11071 |
-
oldVnode = emptyNodeAt(oldVnode);
|
11072 |
-
}
|
11073 |
-
|
11074 |
-
// replacing existing element
|
11075 |
-
var oldElm = oldVnode.elm;
|
11076 |
-
var parentElm$1 = nodeOps.parentNode(oldElm);
|
11077 |
-
|
11078 |
-
// create new node
|
11079 |
-
createElm(
|
11080 |
-
vnode,
|
11081 |
-
insertedVnodeQueue,
|
11082 |
-
// extremely rare edge case: do not insert if old element is in a
|
11083 |
-
// leaving transition. Only happens when combining transition +
|
11084 |
-
// keep-alive + HOCs. (#4590)
|
11085 |
-
oldElm._leaveCb ? null : parentElm$1,
|
11086 |
-
nodeOps.nextSibling(oldElm)
|
11087 |
-
);
|
11088 |
-
|
11089 |
-
// update parent placeholder node element, recursively
|
11090 |
-
if (isDef(vnode.parent)) {
|
11091 |
-
var ancestor = vnode.parent;
|
11092 |
-
var patchable = isPatchable(vnode);
|
11093 |
-
while (ancestor) {
|
11094 |
-
for (var i = 0; i < cbs.destroy.length; ++i) {
|
11095 |
-
cbs.destroy[i](ancestor);
|
11096 |
-
}
|
11097 |
-
ancestor.elm = vnode.elm;
|
11098 |
-
if (patchable) {
|
11099 |
-
for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {
|
11100 |
-
cbs.create[i$1](emptyNode, ancestor);
|
11101 |
-
}
|
11102 |
-
// #6513
|
11103 |
-
// invoke insert hooks that may have been merged by create hooks.
|
11104 |
-
// e.g. for directives that uses the "inserted" hook.
|
11105 |
-
var insert = ancestor.data.hook.insert;
|
11106 |
-
if (insert.merged) {
|
11107 |
-
// start at index 1 to avoid re-invoking component mounted hook
|
11108 |
-
for (var i$2 = 1; i$2 < insert.fns.length; i$2++) {
|
11109 |
-
insert.fns[i$2]();
|
11110 |
-
}
|
11111 |
-
}
|
11112 |
-
} else {
|
11113 |
-
registerRef(ancestor);
|
11114 |
-
}
|
11115 |
-
ancestor = ancestor.parent;
|
11116 |
-
}
|
11117 |
-
}
|
11118 |
-
|
11119 |
-
// destroy old node
|
11120 |
-
if (isDef(parentElm$1)) {
|
11121 |
-
removeVnodes(parentElm$1, [oldVnode], 0, 0);
|
11122 |
-
} else if (isDef(oldVnode.tag)) {
|
11123 |
-
invokeDestroyHook(oldVnode);
|
11124 |
-
}
|
11125 |
-
}
|
11126 |
-
}
|
11127 |
-
|
11128 |
-
invokeInsertHook(vnode, insertedVnodeQueue, isInitialPatch);
|
11129 |
-
return vnode.elm
|
11130 |
-
}
|
11131 |
-
}
|
11132 |
-
|
11133 |
-
/* */
|
11134 |
-
|
11135 |
-
var directives = {
|
11136 |
-
create: updateDirectives,
|
11137 |
-
update: updateDirectives,
|
11138 |
-
destroy: function unbindDirectives (vnode) {
|
11139 |
-
updateDirectives(vnode, emptyNode);
|
11140 |
-
}
|
11141 |
-
}
|
11142 |
-
|
11143 |
-
function updateDirectives (oldVnode, vnode) {
|
11144 |
-
if (oldVnode.data.directives || vnode.data.directives) {
|
11145 |
-
_update(oldVnode, vnode);
|
11146 |
-
}
|
11147 |
-
}
|
11148 |
-
|
11149 |
-
function _update (oldVnode, vnode) {
|
11150 |
-
var isCreate = oldVnode === emptyNode;
|
11151 |
-
var isDestroy = vnode === emptyNode;
|
11152 |
-
var oldDirs = normalizeDirectives$1(oldVnode.data.directives, oldVnode.context);
|
11153 |
-
var newDirs = normalizeDirectives$1(vnode.data.directives, vnode.context);
|
11154 |
-
|
11155 |
-
var dirsWithInsert = [];
|
11156 |
-
var dirsWithPostpatch = [];
|
11157 |
-
|
11158 |
-
var key, oldDir, dir;
|
11159 |
-
for (key in newDirs) {
|
11160 |
-
oldDir = oldDirs[key];
|
11161 |
-
dir = newDirs[key];
|
11162 |
-
if (!oldDir) {
|
11163 |
-
// new directive, bind
|
11164 |
-
callHook$1(dir, 'bind', vnode, oldVnode);
|
11165 |
-
if (dir.def && dir.def.inserted) {
|
11166 |
-
dirsWithInsert.push(dir);
|
11167 |
-
}
|
11168 |
-
} else {
|
11169 |
-
// existing directive, update
|
11170 |
-
dir.oldValue = oldDir.value;
|
11171 |
-
callHook$1(dir, 'update', vnode, oldVnode);
|
11172 |
-
if (dir.def && dir.def.componentUpdated) {
|
11173 |
-
dirsWithPostpatch.push(dir);
|
11174 |
-
}
|
11175 |
-
}
|
11176 |
-
}
|
11177 |
-
|
11178 |
-
if (dirsWithInsert.length) {
|
11179 |
-
var callInsert = function () {
|
11180 |
-
for (var i = 0; i < dirsWithInsert.length; i++) {
|
11181 |
-
callHook$1(dirsWithInsert[i], 'inserted', vnode, oldVnode);
|
11182 |
-
}
|
11183 |
-
};
|
11184 |
-
if (isCreate) {
|
11185 |
-
mergeVNodeHook(vnode, 'insert', callInsert);
|
11186 |
-
} else {
|
11187 |
-
callInsert();
|
11188 |
-
}
|
11189 |
-
}
|
11190 |
-
|
11191 |
-
if (dirsWithPostpatch.length) {
|
11192 |
-
mergeVNodeHook(vnode, 'postpatch', function () {
|
11193 |
-
for (var i = 0; i < dirsWithPostpatch.length; i++) {
|
11194 |
-
callHook$1(dirsWithPostpatch[i], 'componentUpdated', vnode, oldVnode);
|
11195 |
-
}
|
11196 |
-
});
|
11197 |
-
}
|
11198 |
-
|
11199 |
-
if (!isCreate) {
|
11200 |
-
for (key in oldDirs) {
|
11201 |
-
if (!newDirs[key]) {
|
11202 |
-
// no longer present, unbind
|
11203 |
-
callHook$1(oldDirs[key], 'unbind', oldVnode, oldVnode, isDestroy);
|
11204 |
-
}
|
11205 |
-
}
|
11206 |
-
}
|
11207 |
-
}
|
11208 |
-
|
11209 |
-
var emptyModifiers = Object.create(null);
|
11210 |
-
|
11211 |
-
function normalizeDirectives$1 (
|
11212 |
-
dirs,
|
11213 |
-
vm
|
11214 |
-
) {
|
11215 |
-
var res = Object.create(null);
|
11216 |
-
if (!dirs) {
|
11217 |
-
// $flow-disable-line
|
11218 |
-
return res
|
11219 |
-
}
|
11220 |
-
var i, dir;
|
11221 |
-
for (i = 0; i < dirs.length; i++) {
|
11222 |
-
dir = dirs[i];
|
11223 |
-
if (!dir.modifiers) {
|
11224 |
-
// $flow-disable-line
|
11225 |
-
dir.modifiers = emptyModifiers;
|
11226 |
-
}
|
11227 |
-
res[getRawDirName(dir)] = dir;
|
11228 |
-
dir.def = resolveAsset(vm.$options, 'directives', dir.name, true);
|
11229 |
-
}
|
11230 |
-
// $flow-disable-line
|
11231 |
-
return res
|
11232 |
-
}
|
11233 |
-
|
11234 |
-
function getRawDirName (dir) {
|
11235 |
-
return dir.rawName || ((dir.name) + "." + (Object.keys(dir.modifiers || {}).join('.')))
|
11236 |
-
}
|
11237 |
-
|
11238 |
-
function callHook$1 (dir, hook, vnode, oldVnode, isDestroy) {
|
11239 |
-
var fn = dir.def && dir.def[hook];
|
11240 |
-
if (fn) {
|
11241 |
-
try {
|
11242 |
-
fn(vnode.elm, dir, vnode, oldVnode, isDestroy);
|
11243 |
-
} catch (e) {
|
11244 |
-
handleError(e, vnode.context, ("directive " + (dir.name) + " " + hook + " hook"));
|
11245 |
-
}
|
11246 |
-
}
|
11247 |
-
}
|
11248 |
-
|
11249 |
-
var baseModules = [
|
11250 |
-
ref,
|
11251 |
-
directives
|
11252 |
-
]
|
11253 |
-
|
11254 |
-
/* */
|
11255 |
-
|
11256 |
-
function updateAttrs (oldVnode, vnode) {
|
11257 |
-
var opts = vnode.componentOptions;
|
11258 |
-
if (isDef(opts) && opts.Ctor.options.inheritAttrs === false) {
|
11259 |
-
return
|
11260 |
-
}
|
11261 |
-
if (isUndef(oldVnode.data.attrs) && isUndef(vnode.data.attrs)) {
|
11262 |
-
return
|
11263 |
-
}
|
11264 |
-
var key, cur, old;
|
11265 |
-
var elm = vnode.elm;
|
11266 |
-
var oldAttrs = oldVnode.data.attrs || {};
|
11267 |
-
var attrs = vnode.data.attrs || {};
|
11268 |
-
// clone observed objects, as the user probably wants to mutate it
|
11269 |
-
if (isDef(attrs.__ob__)) {
|
11270 |
-
attrs = vnode.data.attrs = extend({}, attrs);
|
11271 |
-
}
|
11272 |
-
|
11273 |
-
for (key in attrs) {
|
11274 |
-
cur = attrs[key];
|
11275 |
-
old = oldAttrs[key];
|
11276 |
-
if (old !== cur) {
|
11277 |
-
setAttr(elm, key, cur);
|
11278 |
-
}
|
11279 |
-
}
|
11280 |
-
// #4391: in IE9, setting type can reset value for input[type=radio]
|
11281 |
-
// #6666: IE/Edge forces progress value down to 1 before setting a max
|
11282 |
-
/* istanbul ignore if */
|
11283 |
-
if ((isIE || isEdge) && attrs.value !== oldAttrs.value) {
|
11284 |
-
setAttr(elm, 'value', attrs.value);
|
11285 |
-
}
|
11286 |
-
for (key in oldAttrs) {
|
11287 |
-
if (isUndef(attrs[key])) {
|
11288 |
-
if (isXlink(key)) {
|
11289 |
-
elm.removeAttributeNS(xlinkNS, getXlinkProp(key));
|
11290 |
-
} else if (!isEnumeratedAttr(key)) {
|
11291 |
-
elm.removeAttribute(key);
|
11292 |
-
}
|
11293 |
-
}
|
11294 |
-
}
|
11295 |
-
}
|
11296 |
-
|
11297 |
-
function setAttr (el, key, value) {
|
11298 |
-
if (el.tagName.indexOf('-') > -1) {
|
11299 |
-
baseSetAttr(el, key, value);
|
11300 |
-
} else if (isBooleanAttr(key)) {
|
11301 |
-
// set attribute for blank value
|
11302 |
-
// e.g. <option disabled>Select one</option>
|
11303 |
-
if (isFalsyAttrValue(value)) {
|
11304 |
-
el.removeAttribute(key);
|
11305 |
-
} else {
|
11306 |
-
// technically allowfullscreen is a boolean attribute for <iframe>,
|
11307 |
-
// but Flash expects a value of "true" when used on <embed> tag
|
11308 |
-
value = key === 'allowfullscreen' && el.tagName === 'EMBED'
|
11309 |
-
? 'true'
|
11310 |
-
: key;
|
11311 |
-
el.setAttribute(key, value);
|
11312 |
-
}
|
11313 |
-
} else if (isEnumeratedAttr(key)) {
|
11314 |
-
el.setAttribute(key, isFalsyAttrValue(value) || value === 'false' ? 'false' : 'true');
|
11315 |
-
} else if (isXlink(key)) {
|
11316 |
-
if (isFalsyAttrValue(value)) {
|
11317 |
-
el.removeAttributeNS(xlinkNS, getXlinkProp(key));
|
11318 |
-
} else {
|
11319 |
-
el.setAttributeNS(xlinkNS, key, value);
|
11320 |
-
}
|
11321 |
-
} else {
|
11322 |
-
baseSetAttr(el, key, value);
|
11323 |
-
}
|
11324 |
-
}
|
11325 |
-
|
11326 |
-
function baseSetAttr (el, key, value) {
|
11327 |
-
if (isFalsyAttrValue(value)) {
|
11328 |
-
el.removeAttribute(key);
|
11329 |
-
} else {
|
11330 |
-
// #7138: IE10 & 11 fires input event when setting placeholder on
|
11331 |
-
// <textarea>... block the first input event and remove the blocker
|
11332 |
-
// immediately.
|
11333 |
-
/* istanbul ignore if */
|
11334 |
-
if (
|
11335 |
-
isIE && !isIE9 &&
|
11336 |
-
el.tagName === 'TEXTAREA' &&
|
11337 |
-
key === 'placeholder' && !el.__ieph
|
11338 |
-
) {
|
11339 |
-
var blocker = function (e) {
|
11340 |
-
e.stopImmediatePropagation();
|
11341 |
-
el.removeEventListener('input', blocker);
|
11342 |
-
};
|
11343 |
-
el.addEventListener('input', blocker);
|
11344 |
-
// $flow-disable-line
|
11345 |
-
el.__ieph = true; /* IE placeholder patched */
|
11346 |
-
}
|
11347 |
-
el.setAttribute(key, value);
|
11348 |
-
}
|
11349 |
-
}
|
11350 |
-
|
11351 |
-
var attrs = {
|
11352 |
-
create: updateAttrs,
|
11353 |
-
update: updateAttrs
|
11354 |
-
}
|
11355 |
-
|
11356 |
-
/* */
|
11357 |
-
|
11358 |
-
function updateClass (oldVnode, vnode) {
|
11359 |
-
var el = vnode.elm;
|
11360 |
-
var data = vnode.data;
|
11361 |
-
var oldData = oldVnode.data;
|
11362 |
-
if (
|
11363 |
-
isUndef(data.staticClass) &&
|
11364 |
-
isUndef(data.class) && (
|
11365 |
-
isUndef(oldData) || (
|
11366 |
-
isUndef(oldData.staticClass) &&
|
11367 |
-
isUndef(oldData.class)
|
11368 |
-
)
|
11369 |
-
)
|
11370 |
-
) {
|
11371 |
-
return
|
11372 |
-
}
|
11373 |
-
|
11374 |
-
var cls = genClassForVnode(vnode);
|
11375 |
-
|
11376 |
-
// handle transition classes
|
11377 |
-
var transitionClass = el._transitionClasses;
|
11378 |
-
if (isDef(transitionClass)) {
|
11379 |
-
cls = concat(cls, stringifyClass(transitionClass));
|
11380 |
-
}
|
11381 |
-
|
11382 |
-
// set the class
|
11383 |
-
if (cls !== el._prevClass) {
|
11384 |
-
el.setAttribute('class', cls);
|
11385 |
-
el._prevClass = cls;
|
11386 |
-
}
|
11387 |
-
}
|
11388 |
-
|
11389 |
-
var klass = {
|
11390 |
-
create: updateClass,
|
11391 |
-
update: updateClass
|
11392 |
-
}
|
11393 |
-
|
11394 |
-
/* */
|
11395 |
-
|
11396 |
-
var validDivisionCharRE = /[\w).+\-_$\]]/;
|
11397 |
-
|
11398 |
-
function parseFilters (exp) {
|
11399 |
-
var inSingle = false;
|
11400 |
-
var inDouble = false;
|
11401 |
-
var inTemplateString = false;
|
11402 |
-
var inRegex = false;
|
11403 |
-
var curly = 0;
|
11404 |
-
var square = 0;
|
11405 |
-
var paren = 0;
|
11406 |
-
var lastFilterIndex = 0;
|
11407 |
-
var c, prev, i, expression, filters;
|
11408 |
-
|
11409 |
-
for (i = 0; i < exp.length; i++) {
|
11410 |
-
prev = c;
|
11411 |
-
c = exp.charCodeAt(i);
|
11412 |
-
if (inSingle) {
|
11413 |
-
if (c === 0x27 && prev !== 0x5C) { inSingle = false; }
|
11414 |
-
} else if (inDouble) {
|
11415 |
-
if (c === 0x22 && prev !== 0x5C) { inDouble = false; }
|
11416 |
-
} else if (inTemplateString) {
|
11417 |
-
if (c === 0x60 && prev !== 0x5C) { inTemplateString = false; }
|
11418 |
-
} else if (inRegex) {
|
11419 |
-
if (c === 0x2f && prev !== 0x5C) { inRegex = false; }
|
11420 |
-
} else if (
|
11421 |
-
c === 0x7C && // pipe
|
11422 |
-
exp.charCodeAt(i + 1) !== 0x7C &&
|
11423 |
-
exp.charCodeAt(i - 1) !== 0x7C &&
|
11424 |
-
!curly && !square && !paren
|
11425 |
-
) {
|
11426 |
-
if (expression === undefined) {
|
11427 |
-
// first filter, end of expression
|
11428 |
-
lastFilterIndex = i + 1;
|
11429 |
-
expression = exp.slice(0, i).trim();
|
11430 |
-
} else {
|
11431 |
-
pushFilter();
|
11432 |
-
}
|
11433 |
-
} else {
|
11434 |
-
switch (c) {
|
11435 |
-
case 0x22: inDouble = true; break // "
|
11436 |
-
case 0x27: inSingle = true; break // '
|
11437 |
-
case 0x60: inTemplateString = true; break // `
|
11438 |
-
case 0x28: paren++; break // (
|
11439 |
-
case 0x29: paren--; break // )
|
11440 |
-
case 0x5B: square++; break // [
|
11441 |
-
case 0x5D: square--; break // ]
|
11442 |
-
case 0x7B: curly++; break // {
|
11443 |
-
case 0x7D: curly--; break // }
|
11444 |
-
}
|
11445 |
-
if (c === 0x2f) { // /
|
11446 |
-
var j = i - 1;
|
11447 |
-
var p = (void 0);
|
11448 |
-
// find first non-whitespace prev char
|
11449 |
-
for (; j >= 0; j--) {
|
11450 |
-
p = exp.charAt(j);
|
11451 |
-
if (p !== ' ') { break }
|
11452 |
-
}
|
11453 |
-
if (!p || !validDivisionCharRE.test(p)) {
|
11454 |
-
inRegex = true;
|
11455 |
-
}
|
11456 |
-
}
|
11457 |
-
}
|
11458 |
-
}
|
11459 |
-
|
11460 |
-
if (expression === undefined) {
|
11461 |
-
expression = exp.slice(0, i).trim();
|
11462 |
-
} else if (lastFilterIndex !== 0) {
|
11463 |
-
pushFilter();
|
11464 |
-
}
|
11465 |
-
|
11466 |
-
function pushFilter () {
|
11467 |
-
(filters || (filters = [])).push(exp.slice(lastFilterIndex, i).trim());
|
11468 |
-
lastFilterIndex = i + 1;
|
11469 |
-
}
|
11470 |
-
|
11471 |
-
if (filters) {
|
11472 |
-
for (i = 0; i < filters.length; i++) {
|
11473 |
-
expression = wrapFilter(expression, filters[i]);
|
11474 |
-
}
|
11475 |
-
}
|
11476 |
-
|
11477 |
-
return expression
|
11478 |
-
}
|
11479 |
-
|
11480 |
-
function wrapFilter (exp, filter) {
|
11481 |
-
var i = filter.indexOf('(');
|
11482 |
-
if (i < 0) {
|
11483 |
-
// _f: resolveFilter
|
11484 |
-
return ("_f(\"" + filter + "\")(" + exp + ")")
|
11485 |
-
} else {
|
11486 |
-
var name = filter.slice(0, i);
|
11487 |
-
var args = filter.slice(i + 1);
|
11488 |
-
return ("_f(\"" + name + "\")(" + exp + (args !== ')' ? ',' + args : args))
|
11489 |
-
}
|
11490 |
-
}
|
11491 |
-
|
11492 |
-
/* */
|
11493 |
-
|
11494 |
-
function baseWarn (msg) {
|
11495 |
-
console.error(("[Vue compiler]: " + msg));
|
11496 |
-
}
|
11497 |
-
|
11498 |
-
function pluckModuleFunction (
|
11499 |
-
modules,
|
11500 |
-
key
|
11501 |
-
) {
|
11502 |
-
return modules
|
11503 |
-
? modules.map(function (m) { return m[key]; }).filter(function (_) { return _; })
|
11504 |
-
: []
|
11505 |
-
}
|
11506 |
-
|
11507 |
-
function addProp (el, name, value) {
|
11508 |
-
(el.props || (el.props = [])).push({ name: name, value: value });
|
11509 |
-
el.plain = false;
|
11510 |
-
}
|
11511 |
-
|
11512 |
-
function addAttr (el, name, value) {
|
11513 |
-
(el.attrs || (el.attrs = [])).push({ name: name, value: value });
|
11514 |
-
el.plain = false;
|
11515 |
-
}
|
11516 |
-
|
11517 |
-
// add a raw attr (use this in preTransforms)
|
11518 |
-
function addRawAttr (el, name, value) {
|
11519 |
-
el.attrsMap[name] = value;
|
11520 |
-
el.attrsList.push({ name: name, value: value });
|
11521 |
-
}
|
11522 |
-
|
11523 |
-
function addDirective (
|
11524 |
-
el,
|
11525 |
-
name,
|
11526 |
-
rawName,
|
11527 |
-
value,
|
11528 |
-
arg,
|
11529 |
-
modifiers
|
11530 |
-
) {
|
11531 |
-
(el.directives || (el.directives = [])).push({ name: name, rawName: rawName, value: value, arg: arg, modifiers: modifiers });
|
11532 |
-
el.plain = false;
|
11533 |
-
}
|
11534 |
-
|
11535 |
-
function addHandler (
|
11536 |
-
el,
|
11537 |
-
name,
|
11538 |
-
value,
|
11539 |
-
modifiers,
|
11540 |
-
important,
|
11541 |
-
warn
|
11542 |
-
) {
|
11543 |
-
modifiers = modifiers || emptyObject;
|
11544 |
-
// warn prevent and passive modifier
|
11545 |
-
/* istanbul ignore if */
|
11546 |
-
if (
|
11547 |
-
process.env.NODE_ENV !== 'production' && warn &&
|
11548 |
-
modifiers.prevent && modifiers.passive
|
11549 |
-
) {
|
11550 |
-
warn(
|
11551 |
-
'passive and prevent can\'t be used together. ' +
|
11552 |
-
'Passive handler can\'t prevent default event.'
|
11553 |
-
);
|
11554 |
-
}
|
11555 |
-
|
11556 |
-
// check capture modifier
|
11557 |
-
if (modifiers.capture) {
|
11558 |
-
delete modifiers.capture;
|
11559 |
-
name = '!' + name; // mark the event as captured
|
11560 |
-
}
|
11561 |
-
if (modifiers.once) {
|
11562 |
-
delete modifiers.once;
|
11563 |
-
name = '~' + name; // mark the event as once
|
11564 |
-
}
|
11565 |
-
/* istanbul ignore if */
|
11566 |
-
if (modifiers.passive) {
|
11567 |
-
delete modifiers.passive;
|
11568 |
-
name = '&' + name; // mark the event as passive
|
11569 |
-
}
|
11570 |
-
|
11571 |
-
// normalize click.right and click.middle since they don't actually fire
|
11572 |
-
// this is technically browser-specific, but at least for now browsers are
|
11573 |
-
// the only target envs that have right/middle clicks.
|
11574 |
-
if (name === 'click') {
|
11575 |
-
if (modifiers.right) {
|
11576 |
-
name = 'contextmenu';
|
11577 |
-
delete modifiers.right;
|
11578 |
-
} else if (modifiers.middle) {
|
11579 |
-
name = 'mouseup';
|
11580 |
-
}
|
11581 |
-
}
|
11582 |
-
|
11583 |
-
var events;
|
11584 |
-
if (modifiers.native) {
|
11585 |
-
delete modifiers.native;
|
11586 |
-
events = el.nativeEvents || (el.nativeEvents = {});
|
11587 |
-
} else {
|
11588 |
-
events = el.events || (el.events = {});
|
11589 |
-
}
|
11590 |
-
|
11591 |
-
var newHandler = {
|
11592 |
-
value: value.trim()
|
11593 |
-
};
|
11594 |
-
if (modifiers !== emptyObject) {
|
11595 |
-
newHandler.modifiers = modifiers;
|
11596 |
-
}
|
11597 |
-
|
11598 |
-
var handlers = events[name];
|
11599 |
-
/* istanbul ignore if */
|
11600 |
-
if (Array.isArray(handlers)) {
|
11601 |
-
important ? handlers.unshift(newHandler) : handlers.push(newHandler);
|
11602 |
-
} else if (handlers) {
|
11603 |
-
events[name] = important ? [newHandler, handlers] : [handlers, newHandler];
|
11604 |
-
} else {
|
11605 |
-
events[name] = newHandler;
|
11606 |
-
}
|
11607 |
-
|
11608 |
-
el.plain = false;
|
11609 |
-
}
|
11610 |
-
|
11611 |
-
function getBindingAttr (
|
11612 |
-
el,
|
11613 |
-
name,
|
11614 |
-
getStatic
|
11615 |
-
) {
|
11616 |
-
var dynamicValue =
|
11617 |
-
getAndRemoveAttr(el, ':' + name) ||
|
11618 |
-
getAndRemoveAttr(el, 'v-bind:' + name);
|
11619 |
-
if (dynamicValue != null) {
|
11620 |
-
return parseFilters(dynamicValue)
|
11621 |
-
} else if (getStatic !== false) {
|
11622 |
-
var staticValue = getAndRemoveAttr(el, name);
|
11623 |
-
if (staticValue != null) {
|
11624 |
-
return JSON.stringify(staticValue)
|
11625 |
-
}
|
11626 |
-
}
|
11627 |
-
}
|
11628 |
-
|
11629 |
-
// note: this only removes the attr from the Array (attrsList) so that it
|
11630 |
-
// doesn't get processed by processAttrs.
|
11631 |
-
// By default it does NOT remove it from the map (attrsMap) because the map is
|
11632 |
-
// needed during codegen.
|
11633 |
-
function getAndRemoveAttr (
|
11634 |
-
el,
|
11635 |
-
name,
|
11636 |
-
removeFromMap
|
11637 |
-
) {
|
11638 |
-
var val;
|
11639 |
-
if ((val = el.attrsMap[name]) != null) {
|
11640 |
-
var list = el.attrsList;
|
11641 |
-
for (var i = 0, l = list.length; i < l; i++) {
|
11642 |
-
if (list[i].name === name) {
|
11643 |
-
list.splice(i, 1);
|
11644 |
-
break
|
11645 |
-
}
|
11646 |
-
}
|
11647 |
-
}
|
11648 |
-
if (removeFromMap) {
|
11649 |
-
delete el.attrsMap[name];
|
11650 |
-
}
|
11651 |
-
return val
|
11652 |
-
}
|
11653 |
-
|
11654 |
-
/* */
|
11655 |
-
|
11656 |
-
/**
|
11657 |
-
* Cross-platform code generation for component v-model
|
11658 |
-
*/
|
11659 |
-
function genComponentModel (
|
11660 |
-
el,
|
11661 |
-
value,
|
11662 |
-
modifiers
|
11663 |
-
) {
|
11664 |
-
var ref = modifiers || {};
|
11665 |
-
var number = ref.number;
|
11666 |
-
var trim = ref.trim;
|
11667 |
-
|
11668 |
-
var baseValueExpression = '$$v';
|
11669 |
-
var valueExpression = baseValueExpression;
|
11670 |
-
if (trim) {
|
11671 |
-
valueExpression =
|
11672 |
-
"(typeof " + baseValueExpression + " === 'string'" +
|
11673 |
-
"? " + baseValueExpression + ".trim()" +
|
11674 |
-
": " + baseValueExpression + ")";
|
11675 |
-
}
|
11676 |
-
if (number) {
|
11677 |
-
valueExpression = "_n(" + valueExpression + ")";
|
11678 |
-
}
|
11679 |
-
var assignment = genAssignmentCode(value, valueExpression);
|
11680 |
-
|
11681 |
-
el.model = {
|
11682 |
-
value: ("(" + value + ")"),
|
11683 |
-
expression: ("\"" + value + "\""),
|
11684 |
-
callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
|
11685 |
-
};
|
11686 |
-
}
|
11687 |
-
|
11688 |
-
/**
|
11689 |
-
* Cross-platform codegen helper for generating v-model value assignment code.
|
11690 |
-
*/
|
11691 |
-
function genAssignmentCode (
|
11692 |
-
value,
|
11693 |
-
assignment
|
11694 |
-
) {
|
11695 |
-
var res = parseModel(value);
|
11696 |
-
if (res.key === null) {
|
11697 |
-
return (value + "=" + assignment)
|
11698 |
-
} else {
|
11699 |
-
return ("$set(" + (res.exp) + ", " + (res.key) + ", " + assignment + ")")
|
11700 |
-
}
|
11701 |
-
}
|
11702 |
-
|
11703 |
-
/**
|
11704 |
-
* Parse a v-model expression into a base path and a final key segment.
|
11705 |
-
* Handles both dot-path and possible square brackets.
|
11706 |
-
*
|
11707 |
-
* Possible cases:
|
11708 |
-
*
|
11709 |
-
* - test
|
11710 |
-
* - test[key]
|
11711 |
-
* - test[test1[key]]
|
11712 |
-
* - test["a"][key]
|
11713 |
-
* - xxx.test[a[a].test1[key]]
|
11714 |
-
* - test.xxx.a["asa"][test1[key]]
|
11715 |
-
*
|
11716 |
-
*/
|
11717 |
-
|
11718 |
-
var len;
|
11719 |
-
var str;
|
11720 |
-
var chr;
|
11721 |
-
var index$1;
|
11722 |
-
var expressionPos;
|
11723 |
-
var expressionEndPos;
|
11724 |
-
|
11725 |
-
|
11726 |
-
|
11727 |
-
function parseModel (val) {
|
11728 |
-
// Fix https://github.com/vuejs/vue/pull/7730
|
11729 |
-
// allow v-model="obj.val " (trailing whitespace)
|
11730 |
-
val = val.trim();
|
11731 |
-
len = val.length;
|
11732 |
-
|
11733 |
-
if (val.indexOf('[') < 0 || val.lastIndexOf(']') < len - 1) {
|
11734 |
-
index$1 = val.lastIndexOf('.');
|
11735 |
-
if (index$1 > -1) {
|
11736 |
-
return {
|
11737 |
-
exp: val.slice(0, index$1),
|
11738 |
-
key: '"' + val.slice(index$1 + 1) + '"'
|
11739 |
-
}
|
11740 |
-
} else {
|
11741 |
-
return {
|
11742 |
-
exp: val,
|
11743 |
-
key: null
|
11744 |
-
}
|
11745 |
-
}
|
11746 |
-
}
|
11747 |
-
|
11748 |
-
str = val;
|
11749 |
-
index$1 = expressionPos = expressionEndPos = 0;
|
11750 |
-
|
11751 |
-
while (!eof()) {
|
11752 |
-
chr = next();
|
11753 |
-
/* istanbul ignore if */
|
11754 |
-
if (isStringStart(chr)) {
|
11755 |
-
parseString(chr);
|
11756 |
-
} else if (chr === 0x5B) {
|
11757 |
-
parseBracket(chr);
|
11758 |
-
}
|
11759 |
-
}
|
11760 |
-
|
11761 |
-
return {
|
11762 |
-
exp: val.slice(0, expressionPos),
|
11763 |
-
key: val.slice(expressionPos + 1, expressionEndPos)
|
11764 |
-
}
|
11765 |
-
}
|
11766 |
-
|
11767 |
-
function next () {
|
11768 |
-
return str.charCodeAt(++index$1)
|
11769 |
-
}
|
11770 |
-
|
11771 |
-
function eof () {
|
11772 |
-
return index$1 >= len
|
11773 |
-
}
|
11774 |
-
|
11775 |
-
function isStringStart (chr) {
|
11776 |
-
return chr === 0x22 || chr === 0x27
|
11777 |
-
}
|
11778 |
-
|
11779 |
-
function parseBracket (chr) {
|
11780 |
-
var inBracket = 1;
|
11781 |
-
expressionPos = index$1;
|
11782 |
-
while (!eof()) {
|
11783 |
-
chr = next();
|
11784 |
-
if (isStringStart(chr)) {
|
11785 |
-
parseString(chr);
|
11786 |
-
continue
|
11787 |
-
}
|
11788 |
-
if (chr === 0x5B) { inBracket++; }
|
11789 |
-
if (chr === 0x5D) { inBracket--; }
|
11790 |
-
if (inBracket === 0) {
|
11791 |
-
expressionEndPos = index$1;
|
11792 |
-
break
|
11793 |
-
}
|
11794 |
-
}
|
11795 |
-
}
|
11796 |
-
|
11797 |
-
function parseString (chr) {
|
11798 |
-
var stringQuote = chr;
|
11799 |
-
while (!eof()) {
|
11800 |
-
chr = next();
|
11801 |
-
if (chr === stringQuote) {
|
11802 |
-
break
|
11803 |
-
}
|
11804 |
-
}
|
11805 |
-
}
|
11806 |
-
|
11807 |
-
/* */
|
11808 |
-
|
11809 |
-
var warn$1;
|
11810 |
-
|
11811 |
-
// in some cases, the event used has to be determined at runtime
|
11812 |
-
// so we used some reserved tokens during compile.
|
11813 |
-
var RANGE_TOKEN = '__r';
|
11814 |
-
var CHECKBOX_RADIO_TOKEN = '__c';
|
11815 |
-
|
11816 |
-
function model (
|
11817 |
-
el,
|
11818 |
-
dir,
|
11819 |
-
_warn
|
11820 |
-
) {
|
11821 |
-
warn$1 = _warn;
|
11822 |
-
var value = dir.value;
|
11823 |
-
var modifiers = dir.modifiers;
|
11824 |
-
var tag = el.tag;
|
11825 |
-
var type = el.attrsMap.type;
|
11826 |
-
|
11827 |
-
if (process.env.NODE_ENV !== 'production') {
|
11828 |
-
// inputs with type="file" are read only and setting the input's
|
11829 |
-
// value will throw an error.
|
11830 |
-
if (tag === 'input' && type === 'file') {
|
11831 |
-
warn$1(
|
11832 |
-
"<" + (el.tag) + " v-model=\"" + value + "\" type=\"file\">:\n" +
|
11833 |
-
"File inputs are read only. Use a v-on:change listener instead."
|
11834 |
-
);
|
11835 |
-
}
|
11836 |
-
}
|
11837 |
-
|
11838 |
-
if (el.component) {
|
11839 |
-
genComponentModel(el, value, modifiers);
|
11840 |
-
// component v-model doesn't need extra runtime
|
11841 |
-
return false
|
11842 |
-
} else if (tag === 'select') {
|
11843 |
-
genSelect(el, value, modifiers);
|
11844 |
-
} else if (tag === 'input' && type === 'checkbox') {
|
11845 |
-
genCheckboxModel(el, value, modifiers);
|
11846 |
-
} else if (tag === 'input' && type === 'radio') {
|
11847 |
-
genRadioModel(el, value, modifiers);
|
11848 |
-
} else if (tag === 'input' || tag === 'textarea') {
|
11849 |
-
genDefaultModel(el, value, modifiers);
|
11850 |
-
} else if (!config.isReservedTag(tag)) {
|
11851 |
-
genComponentModel(el, value, modifiers);
|
11852 |
-
// component v-model doesn't need extra runtime
|
11853 |
-
return false
|
11854 |
-
} else if (process.env.NODE_ENV !== 'production') {
|
11855 |
-
warn$1(
|
11856 |
-
"<" + (el.tag) + " v-model=\"" + value + "\">: " +
|
11857 |
-
"v-model is not supported on this element type. " +
|
11858 |
-
'If you are working with contenteditable, it\'s recommended to ' +
|
11859 |
-
'wrap a library dedicated for that purpose inside a custom component.'
|
11860 |
-
);
|
11861 |
-
}
|
11862 |
-
|
11863 |
-
// ensure runtime directive metadata
|
11864 |
-
return true
|
11865 |
-
}
|
11866 |
-
|
11867 |
-
function genCheckboxModel (
|
11868 |
-
el,
|
11869 |
-
value,
|
11870 |
-
modifiers
|
11871 |
-
) {
|
11872 |
-
var number = modifiers && modifiers.number;
|
11873 |
-
var valueBinding = getBindingAttr(el, 'value') || 'null';
|
11874 |
-
var trueValueBinding = getBindingAttr(el, 'true-value') || 'true';
|
11875 |
-
var falseValueBinding = getBindingAttr(el, 'false-value') || 'false';
|
11876 |
-
addProp(el, 'checked',
|
11877 |
-
"Array.isArray(" + value + ")" +
|
11878 |
-
"?_i(" + value + "," + valueBinding + ")>-1" + (
|
11879 |
-
trueValueBinding === 'true'
|
11880 |
-
? (":(" + value + ")")
|
11881 |
-
: (":_q(" + value + "," + trueValueBinding + ")")
|
11882 |
-
)
|
11883 |
-
);
|
11884 |
-
addHandler(el, 'change',
|
11885 |
-
"var $$a=" + value + "," +
|
11886 |
-
'$$el=$event.target,' +
|
11887 |
-
"$$c=$$el.checked?(" + trueValueBinding + "):(" + falseValueBinding + ");" +
|
11888 |
-
'if(Array.isArray($$a)){' +
|
11889 |
-
"var $$v=" + (number ? '_n(' + valueBinding + ')' : valueBinding) + "," +
|
11890 |
-
'$$i=_i($$a,$$v);' +
|
11891 |
-
"if($$el.checked){$$i<0&&(" + (genAssignmentCode(value, '$$a.concat([$$v])')) + ")}" +
|
11892 |
-
"else{$$i>-1&&(" + (genAssignmentCode(value, '$$a.slice(0,$$i).concat($$a.slice($$i+1))')) + ")}" +
|
11893 |
-
"}else{" + (genAssignmentCode(value, '$$c')) + "}",
|
11894 |
-
null, true
|
11895 |
-
);
|
11896 |
-
}
|
11897 |
-
|
11898 |
-
function genRadioModel (
|
11899 |
-
el,
|
11900 |
-
value,
|
11901 |
-
modifiers
|
11902 |
-
) {
|
11903 |
-
var number = modifiers && modifiers.number;
|
11904 |
-
var valueBinding = getBindingAttr(el, 'value') || 'null';
|
11905 |
-
valueBinding = number ? ("_n(" + valueBinding + ")") : valueBinding;
|
11906 |
-
addProp(el, 'checked', ("_q(" + value + "," + valueBinding + ")"));
|
11907 |
-
addHandler(el, 'change', genAssignmentCode(value, valueBinding), null, true);
|
11908 |
-
}
|
11909 |
-
|
11910 |
-
function genSelect (
|
11911 |
-
el,
|
11912 |
-
value,
|
11913 |
-
modifiers
|
11914 |
-
) {
|
11915 |
-
var number = modifiers && modifiers.number;
|
11916 |
-
var selectedVal = "Array.prototype.filter" +
|
11917 |
-
".call($event.target.options,function(o){return o.selected})" +
|
11918 |
-
".map(function(o){var val = \"_value\" in o ? o._value : o.value;" +
|
11919 |
-
"return " + (number ? '_n(val)' : 'val') + "})";
|
11920 |
-
|
11921 |
-
var assignment = '$event.target.multiple ? $$selectedVal : $$selectedVal[0]';
|
11922 |
-
var code = "var $$selectedVal = " + selectedVal + ";";
|
11923 |
-
code = code + " " + (genAssignmentCode(value, assignment));
|
11924 |
-
addHandler(el, 'change', code, null, true);
|
11925 |
-
}
|
11926 |
-
|
11927 |
-
function genDefaultModel (
|
11928 |
-
el,
|
11929 |
-
value,
|
11930 |
-
modifiers
|
11931 |
-
) {
|
11932 |
-
var type = el.attrsMap.type;
|
11933 |
-
|
11934 |
-
// warn if v-bind:value conflicts with v-model
|
11935 |
-
// except for inputs with v-bind:type
|
11936 |
-
if (process.env.NODE_ENV !== 'production') {
|
11937 |
-
var value$1 = el.attrsMap['v-bind:value'] || el.attrsMap[':value'];
|
11938 |
-
var typeBinding = el.attrsMap['v-bind:type'] || el.attrsMap[':type'];
|
11939 |
-
if (value$1 && !typeBinding) {
|
11940 |
-
var binding = el.attrsMap['v-bind:value'] ? 'v-bind:value' : ':value';
|
11941 |
-
warn$1(
|
11942 |
-
binding + "=\"" + value$1 + "\" conflicts with v-model on the same element " +
|
11943 |
-
'because the latter already expands to a value binding internally'
|
11944 |
-
);
|
11945 |
-
}
|
11946 |
-
}
|
11947 |
-
|
11948 |
-
var ref = modifiers || {};
|
11949 |
-
var lazy = ref.lazy;
|
11950 |
-
var number = ref.number;
|
11951 |
-
var trim = ref.trim;
|
11952 |
-
var needCompositionGuard = !lazy && type !== 'range';
|
11953 |
-
var event = lazy
|
11954 |
-
? 'change'
|
11955 |
-
: type === 'range'
|
11956 |
-
? RANGE_TOKEN
|
11957 |
-
: 'input';
|
11958 |
-
|
11959 |
-
var valueExpression = '$event.target.value';
|
11960 |
-
if (trim) {
|
11961 |
-
valueExpression = "$event.target.value.trim()";
|
11962 |
-
}
|
11963 |
-
if (number) {
|
11964 |
-
valueExpression = "_n(" + valueExpression + ")";
|
11965 |
-
}
|
11966 |
-
|
11967 |
-
var code = genAssignmentCode(value, valueExpression);
|
11968 |
-
if (needCompositionGuard) {
|
11969 |
-
code = "if($event.target.composing)return;" + code;
|
11970 |
-
}
|
11971 |
-
|
11972 |
-
addProp(el, 'value', ("(" + value + ")"));
|
11973 |
-
addHandler(el, event, code, null, true);
|
11974 |
-
if (trim || number) {
|
11975 |
-
addHandler(el, 'blur', '$forceUpdate()');
|
11976 |
-
}
|
11977 |
-
}
|
11978 |
-
|
11979 |
-
/* */
|
11980 |
-
|
11981 |
-
// normalize v-model event tokens that can only be determined at runtime.
|
11982 |
-
// it's important to place the event as the first in the array because
|
11983 |
-
// the whole point is ensuring the v-model callback gets called before
|
11984 |
-
// user-attached handlers.
|
11985 |
-
function normalizeEvents (on) {
|
11986 |
-
/* istanbul ignore if */
|
11987 |
-
if (isDef(on[RANGE_TOKEN])) {
|
11988 |
-
// IE input[type=range] only supports `change` event
|
11989 |
-
var event = isIE ? 'change' : 'input';
|
11990 |
-
on[event] = [].concat(on[RANGE_TOKEN], on[event] || []);
|
11991 |
-
delete on[RANGE_TOKEN];
|
11992 |
-
}
|
11993 |
-
// This was originally intended to fix #4521 but no longer necessary
|
11994 |
-
// after 2.5. Keeping it for backwards compat with generated code from < 2.4
|
11995 |
-
/* istanbul ignore if */
|
11996 |
-
if (isDef(on[CHECKBOX_RADIO_TOKEN])) {
|
11997 |
-
on.change = [].concat(on[CHECKBOX_RADIO_TOKEN], on.change || []);
|
11998 |
-
delete on[CHECKBOX_RADIO_TOKEN];
|
11999 |
-
}
|
12000 |
-
}
|
12001 |
-
|
12002 |
-
var target$1;
|
12003 |
-
|
12004 |
-
function createOnceHandler (handler, event, capture) {
|
12005 |
-
var _target = target$1; // save current target element in closure
|
12006 |
-
return function onceHandler () {
|
12007 |
-
var res = handler.apply(null, arguments);
|
12008 |
-
if (res !== null) {
|
12009 |
-
remove$2(event, onceHandler, capture, _target);
|
12010 |
-
}
|
12011 |
-
}
|
12012 |
-
}
|
12013 |
-
|
12014 |
-
function add$1 (
|
12015 |
-
event,
|
12016 |
-
handler,
|
12017 |
-
once$$1,
|
12018 |
-
capture,
|
12019 |
-
passive
|
12020 |
-
) {
|
12021 |
-
handler = withMacroTask(handler);
|
12022 |
-
if (once$$1) { handler = createOnceHandler(handler, event, capture); }
|
12023 |
-
target$1.addEventListener(
|
12024 |
-
event,
|
12025 |
-
handler,
|
12026 |
-
supportsPassive
|
12027 |
-
? { capture: capture, passive: passive }
|
12028 |
-
: capture
|
12029 |
-
);
|
12030 |
-
}
|
12031 |
-
|
12032 |
-
function remove$2 (
|
12033 |
-
event,
|
12034 |
-
handler,
|
12035 |
-
capture,
|
12036 |
-
_target
|
12037 |
-
) {
|
12038 |
-
(_target || target$1).removeEventListener(
|
12039 |
-
event,
|
12040 |
-
handler._withTask || handler,
|
12041 |
-
capture
|
12042 |
-
);
|
12043 |
-
}
|
12044 |
-
|
12045 |
-
function updateDOMListeners (oldVnode, vnode) {
|
12046 |
-
if (isUndef(oldVnode.data.on) && isUndef(vnode.data.on)) {
|
12047 |
-
return
|
12048 |
-
}
|
12049 |
-
var on = vnode.data.on || {};
|
12050 |
-
var oldOn = oldVnode.data.on || {};
|
12051 |
-
target$1 = vnode.elm;
|
12052 |
-
normalizeEvents(on);
|
12053 |
-
updateListeners(on, oldOn, add$1, remove$2, vnode.context);
|
12054 |
-
target$1 = undefined;
|
12055 |
-
}
|
12056 |
-
|
12057 |
-
var events = {
|
12058 |
-
create: updateDOMListeners,
|
12059 |
-
update: updateDOMListeners
|
12060 |
-
}
|
12061 |
-
|
12062 |
-
/* */
|
12063 |
-
|
12064 |
-
function updateDOMProps (oldVnode, vnode) {
|
12065 |
-
if (isUndef(oldVnode.data.domProps) && isUndef(vnode.data.domProps)) {
|
12066 |
-
return
|
12067 |
-
}
|
12068 |
-
var key, cur;
|
12069 |
-
var elm = vnode.elm;
|
12070 |
-
var oldProps = oldVnode.data.domProps || {};
|
12071 |
-
var props = vnode.data.domProps || {};
|
12072 |
-
// clone observed objects, as the user probably wants to mutate it
|
12073 |
-
if (isDef(props.__ob__)) {
|
12074 |
-
props = vnode.data.domProps = extend({}, props);
|
12075 |
-
}
|
12076 |
-
|
12077 |
-
for (key in oldProps) {
|
12078 |
-
if (isUndef(props[key])) {
|
12079 |
-
elm[key] = '';
|
12080 |
-
}
|
12081 |
-
}
|
12082 |
-
for (key in props) {
|
12083 |
-
cur = props[key];
|
12084 |
-
// ignore children if the node has textContent or innerHTML,
|
12085 |
-
// as these will throw away existing DOM nodes and cause removal errors
|
12086 |
-
// on subsequent patches (#3360)
|
12087 |
-
if (key === 'textContent' || key === 'innerHTML') {
|
12088 |
-
if (vnode.children) { vnode.children.length = 0; }
|
12089 |
-
if (cur === oldProps[key]) { continue }
|
12090 |
-
// #6601 work around Chrome version <= 55 bug where single textNode
|
12091 |
-
// replaced by innerHTML/textContent retains its parentNode property
|
12092 |
-
if (elm.childNodes.length === 1) {
|
12093 |
-
elm.removeChild(elm.childNodes[0]);
|
12094 |
-
}
|
12095 |
-
}
|
12096 |
-
|
12097 |
-
if (key === 'value') {
|
12098 |
-
// store value as _value as well since
|
12099 |
-
// non-string values will be stringified
|
12100 |
-
elm._value = cur;
|
12101 |
-
// avoid resetting cursor position when value is the same
|
12102 |
-
var strCur = isUndef(cur) ? '' : String(cur);
|
12103 |
-
if (shouldUpdateValue(elm, strCur)) {
|
12104 |
-
elm.value = strCur;
|
12105 |
-
}
|
12106 |
-
} else {
|
12107 |
-
elm[key] = cur;
|
12108 |
-
}
|
12109 |
-
}
|
12110 |
-
}
|
12111 |
-
|
12112 |
-
// check platforms/web/util/attrs.js acceptValue
|
12113 |
-
|
12114 |
-
|
12115 |
-
function shouldUpdateValue (elm, checkVal) {
|
12116 |
-
return (!elm.composing && (
|
12117 |
-
elm.tagName === 'OPTION' ||
|
12118 |
-
isNotInFocusAndDirty(elm, checkVal) ||
|
12119 |
-
isDirtyWithModifiers(elm, checkVal)
|
12120 |
-
))
|
12121 |
-
}
|
12122 |
-
|
12123 |
-
function isNotInFocusAndDirty (elm, checkVal) {
|
12124 |
-
// return true when textbox (.number and .trim) loses focus and its value is
|
12125 |
-
// not equal to the updated value
|
12126 |
-
var notInFocus = true;
|
12127 |
-
// #6157
|
12128 |
-
// work around IE bug when accessing document.activeElement in an iframe
|
12129 |
-
try { notInFocus = document.activeElement !== elm; } catch (e) {}
|
12130 |
-
return notInFocus && elm.value !== checkVal
|
12131 |
-
}
|
12132 |
-
|
12133 |
-
function isDirtyWithModifiers (elm, newVal) {
|
12134 |
-
var value = elm.value;
|
12135 |
-
var modifiers = elm._vModifiers; // injected by v-model runtime
|
12136 |
-
if (isDef(modifiers)) {
|
12137 |
-
if (modifiers.lazy) {
|
12138 |
-
// inputs with lazy should only be updated when not in focus
|
12139 |
-
return false
|
12140 |
-
}
|
12141 |
-
if (modifiers.number) {
|
12142 |
-
return toNumber(value) !== toNumber(newVal)
|
12143 |
-
}
|
12144 |
-
if (modifiers.trim) {
|
12145 |
-
return value.trim() !== newVal.trim()
|
12146 |
-
}
|
12147 |
-
}
|
12148 |
-
return value !== newVal
|
12149 |
-
}
|
12150 |
-
|
12151 |
-
var domProps = {
|
12152 |
-
create: updateDOMProps,
|
12153 |
-
update: updateDOMProps
|
12154 |
-
}
|
12155 |
-
|
12156 |
-
/* */
|
12157 |
-
|
12158 |
-
var parseStyleText = cached(function (cssText) {
|
12159 |
-
var res = {};
|
12160 |
-
var listDelimiter = /;(?![^(]*\))/g;
|
12161 |
-
var propertyDelimiter = /:(.+)/;
|
12162 |
-
cssText.split(listDelimiter).forEach(function (item) {
|
12163 |
-
if (item) {
|
12164 |
-
var tmp = item.split(propertyDelimiter);
|
12165 |
-
tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
|
12166 |
-
}
|
12167 |
-
});
|
12168 |
-
return res
|
12169 |
-
});
|
12170 |
-
|
12171 |
-
// merge static and dynamic style data on the same vnode
|
12172 |
-
function normalizeStyleData (data) {
|
12173 |
-
var style = normalizeStyleBinding(data.style);
|
12174 |
-
// static style is pre-processed into an object during compilation
|
12175 |
-
// and is always a fresh object, so it's safe to merge into it
|
12176 |
-
return data.staticStyle
|
12177 |
-
? extend(data.staticStyle, style)
|
12178 |
-
: style
|
12179 |
-
}
|
12180 |
-
|
12181 |
-
// normalize possible array / string values into Object
|
12182 |
-
function normalizeStyleBinding (bindingStyle) {
|
12183 |
-
if (Array.isArray(bindingStyle)) {
|
12184 |
-
return toObject(bindingStyle)
|
12185 |
-
}
|
12186 |
-
if (typeof bindingStyle === 'string') {
|
12187 |
-
return parseStyleText(bindingStyle)
|
12188 |
-
}
|
12189 |
-
return bindingStyle
|
12190 |
-
}
|
12191 |
-
|
12192 |
-
/**
|
12193 |
-
* parent component style should be after child's
|
12194 |
-
* so that parent component's style could override it
|
12195 |
-
*/
|
12196 |
-
function getStyle (vnode, checkChild) {
|
12197 |
-
var res = {};
|
12198 |
-
var styleData;
|
12199 |
-
|
12200 |
-
if (checkChild) {
|
12201 |
-
var childNode = vnode;
|
12202 |
-
while (childNode.componentInstance) {
|
12203 |
-
childNode = childNode.componentInstance._vnode;
|
12204 |
-
if (
|
12205 |
-
childNode && childNode.data &&
|
12206 |
-
(styleData = normalizeStyleData(childNode.data))
|
12207 |
-
) {
|
12208 |
-
extend(res, styleData);
|
12209 |
-
}
|
12210 |
-
}
|
12211 |
-
}
|
12212 |
-
|
12213 |
-
if ((styleData = normalizeStyleData(vnode.data))) {
|
12214 |
-
extend(res, styleData);
|
12215 |
-
}
|
12216 |
-
|
12217 |
-
var parentNode = vnode;
|
12218 |
-
while ((parentNode = parentNode.parent)) {
|
12219 |
-
if (parentNode.data && (styleData = normalizeStyleData(parentNode.data))) {
|
12220 |
-
extend(res, styleData);
|
12221 |
-
}
|
12222 |
-
}
|
12223 |
-
return res
|
12224 |
-
}
|
12225 |
-
|
12226 |
-
/* */
|
12227 |
-
|
12228 |
-
var cssVarRE = /^--/;
|
12229 |
-
var importantRE = /\s*!important$/;
|
12230 |
-
var setProp = function (el, name, val) {
|
12231 |
-
/* istanbul ignore if */
|
12232 |
-
if (cssVarRE.test(name)) {
|
12233 |
-
el.style.setProperty(name, val);
|
12234 |
-
} else if (importantRE.test(val)) {
|
12235 |
-
el.style.setProperty(name, val.replace(importantRE, ''), 'important');
|
12236 |
-
} else {
|
12237 |
-
var normalizedName = normalize(name);
|
12238 |
-
if (Array.isArray(val)) {
|
12239 |
-
// Support values array created by autoprefixer, e.g.
|
12240 |
-
// {display: ["-webkit-box", "-ms-flexbox", "flex"]}
|
12241 |
-
// Set them one by one, and the browser will only set those it can recognize
|
12242 |
-
for (var i = 0, len = val.length; i < len; i++) {
|
12243 |
-
el.style[normalizedName] = val[i];
|
12244 |
-
}
|
12245 |
-
} else {
|
12246 |
-
el.style[normalizedName] = val;
|
12247 |
-
}
|
12248 |
-
}
|
12249 |
-
};
|
12250 |
-
|
12251 |
-
var vendorNames = ['Webkit', 'Moz', 'ms'];
|
12252 |
-
|
12253 |
-
var emptyStyle;
|
12254 |
-
var normalize = cached(function (prop) {
|
12255 |
-
emptyStyle = emptyStyle || document.createElement('div').style;
|
12256 |
-
prop = camelize(prop);
|
12257 |
-
if (prop !== 'filter' && (prop in emptyStyle)) {
|
12258 |
-
return prop
|
12259 |
-
}
|
12260 |
-
var capName = prop.charAt(0).toUpperCase() + prop.slice(1);
|
12261 |
-
for (var i = 0; i < vendorNames.length; i++) {
|
12262 |
-
var name = vendorNames[i] + capName;
|
12263 |
-
if (name in emptyStyle) {
|
12264 |
-
return name
|
12265 |
-
}
|
12266 |
-
}
|
12267 |
-
});
|
12268 |
-
|
12269 |
-
function updateStyle (oldVnode, vnode) {
|
12270 |
-
var data = vnode.data;
|
12271 |
-
var oldData = oldVnode.data;
|
12272 |
-
|
12273 |
-
if (isUndef(data.staticStyle) && isUndef(data.style) &&
|
12274 |
-
isUndef(oldData.staticStyle) && isUndef(oldData.style)
|
12275 |
-
) {
|
12276 |
-
return
|
12277 |
-
}
|
12278 |
-
|
12279 |
-
var cur, name;
|
12280 |
-
var el = vnode.elm;
|
12281 |
-
var oldStaticStyle = oldData.staticStyle;
|
12282 |
-
var oldStyleBinding = oldData.normalizedStyle || oldData.style || {};
|
12283 |
-
|
12284 |
-
// if static style exists, stylebinding already merged into it when doing normalizeStyleData
|
12285 |
-
var oldStyle = oldStaticStyle || oldStyleBinding;
|
12286 |
-
|
12287 |
-
var style = normalizeStyleBinding(vnode.data.style) || {};
|
12288 |
-
|
12289 |
-
// store normalized style under a different key for next diff
|
12290 |
-
// make sure to clone it if it's reactive, since the user likely wants
|
12291 |
-
// to mutate it.
|
12292 |
-
vnode.data.normalizedStyle = isDef(style.__ob__)
|
12293 |
-
? extend({}, style)
|
12294 |
-
: style;
|
12295 |
-
|
12296 |
-
var newStyle = getStyle(vnode, true);
|
12297 |
-
|
12298 |
-
for (name in oldStyle) {
|
12299 |
-
if (isUndef(newStyle[name])) {
|
12300 |
-
setProp(el, name, '');
|
12301 |
-
}
|
12302 |
-
}
|
12303 |
-
for (name in newStyle) {
|
12304 |
-
cur = newStyle[name];
|
12305 |
-
if (cur !== oldStyle[name]) {
|
12306 |
-
// ie9 setting to null has no effect, must use empty string
|
12307 |
-
setProp(el, name, cur == null ? '' : cur);
|
12308 |
-
}
|
12309 |
-
}
|
12310 |
-
}
|
12311 |
-
|
12312 |
-
var style = {
|
12313 |
-
create: updateStyle,
|
12314 |
-
update: updateStyle
|
12315 |
-
}
|
12316 |
-
|
12317 |
-
/* */
|
12318 |
-
|
12319 |
-
/**
|
12320 |
-
* Add class with compatibility for SVG since classList is not supported on
|
12321 |
-
* SVG elements in IE
|
12322 |
-
*/
|
12323 |
-
function addClass (el, cls) {
|
12324 |
-
/* istanbul ignore if */
|
12325 |
-
if (!cls || !(cls = cls.trim())) {
|
12326 |
-
return
|
12327 |
-
}
|
12328 |
-
|
12329 |
-
/* istanbul ignore else */
|
12330 |
-
if (el.classList) {
|
12331 |
-
if (cls.indexOf(' ') > -1) {
|
12332 |
-
cls.split(/\s+/).forEach(function (c) { return el.classList.add(c); });
|
12333 |
-
} else {
|
12334 |
-
el.classList.add(cls);
|
12335 |
-
}
|
12336 |
-
} else {
|
12337 |
-
var cur = " " + (el.getAttribute('class') || '') + " ";
|
12338 |
-
if (cur.indexOf(' ' + cls + ' ') < 0) {
|
12339 |
-
el.setAttribute('class', (cur + cls).trim());
|
12340 |
-
}
|
12341 |
-
}
|
12342 |
-
}
|
12343 |
-
|
12344 |
-
/**
|
12345 |
-
* Remove class with compatibility for SVG since classList is not supported on
|
12346 |
-
* SVG elements in IE
|
12347 |
-
*/
|
12348 |
-
function removeClass (el, cls) {
|
12349 |
-
/* istanbul ignore if */
|
12350 |
-
if (!cls || !(cls = cls.trim())) {
|
12351 |
-
return
|
12352 |
-
}
|
12353 |
-
|
12354 |
-
/* istanbul ignore else */
|
12355 |
-
if (el.classList) {
|
12356 |
-
if (cls.indexOf(' ') > -1) {
|
12357 |
-
cls.split(/\s+/).forEach(function (c) { return el.classList.remove(c); });
|
12358 |
-
} else {
|
12359 |
-
el.classList.remove(cls);
|
12360 |
-
}
|
12361 |
-
if (!el.classList.length) {
|
12362 |
-
el.removeAttribute('class');
|
12363 |
-
}
|
12364 |
-
} else {
|
12365 |
-
var cur = " " + (el.getAttribute('class') || '') + " ";
|
12366 |
-
var tar = ' ' + cls + ' ';
|
12367 |
-
while (cur.indexOf(tar) >= 0) {
|
12368 |
-
cur = cur.replace(tar, ' ');
|
12369 |
-
}
|
12370 |
-
cur = cur.trim();
|
12371 |
-
if (cur) {
|
12372 |
-
el.setAttribute('class', cur);
|
12373 |
-
} else {
|
12374 |
-
el.removeAttribute('class');
|
12375 |
-
}
|
12376 |
-
}
|
12377 |
-
}
|
12378 |
-
|
12379 |
-
/* */
|
12380 |
-
|
12381 |
-
function resolveTransition (def) {
|
12382 |
-
if (!def) {
|
12383 |
-
return
|
12384 |
-
}
|
12385 |
-
/* istanbul ignore else */
|
12386 |
-
if (typeof def === 'object') {
|
12387 |
-
var res = {};
|
12388 |
-
if (def.css !== false) {
|
12389 |
-
extend(res, autoCssTransition(def.name || 'v'));
|
12390 |
-
}
|
12391 |
-
extend(res, def);
|
12392 |
-
return res
|
12393 |
-
} else if (typeof def === 'string') {
|
12394 |
-
return autoCssTransition(def)
|
12395 |
-
}
|
12396 |
-
}
|
12397 |
-
|
12398 |
-
var autoCssTransition = cached(function (name) {
|
12399 |
-
return {
|
12400 |
-
enterClass: (name + "-enter"),
|
12401 |
-
enterToClass: (name + "-enter-to"),
|
12402 |
-
enterActiveClass: (name + "-enter-active"),
|
12403 |
-
leaveClass: (name + "-leave"),
|
12404 |
-
leaveToClass: (name + "-leave-to"),
|
12405 |
-
leaveActiveClass: (name + "-leave-active")
|
12406 |
-
}
|
12407 |
-
});
|
12408 |
-
|
12409 |
-
var hasTransition = inBrowser && !isIE9;
|
12410 |
-
var TRANSITION = 'transition';
|
12411 |
-
var ANIMATION = 'animation';
|
12412 |
-
|
12413 |
-
// Transition property/event sniffing
|
12414 |
-
var transitionProp = 'transition';
|
12415 |
-
var transitionEndEvent = 'transitionend';
|
12416 |
-
var animationProp = 'animation';
|
12417 |
-
var animationEndEvent = 'animationend';
|
12418 |
-
if (hasTransition) {
|
12419 |
-
/* istanbul ignore if */
|
12420 |
-
if (window.ontransitionend === undefined &&
|
12421 |
-
window.onwebkittransitionend !== undefined
|
12422 |
-
) {
|
12423 |
-
transitionProp = 'WebkitTransition';
|
12424 |
-
transitionEndEvent = 'webkitTransitionEnd';
|
12425 |
-
}
|
12426 |
-
if (window.onanimationend === undefined &&
|
12427 |
-
window.onwebkitanimationend !== undefined
|
12428 |
-
) {
|
12429 |
-
animationProp = 'WebkitAnimation';
|
12430 |
-
animationEndEvent = 'webkitAnimationEnd';
|
12431 |
-
}
|
12432 |
-
}
|
12433 |
-
|
12434 |
-
// binding to window is necessary to make hot reload work in IE in strict mode
|
12435 |
-
var raf = inBrowser
|
12436 |
-
? window.requestAnimationFrame
|
12437 |
-
? window.requestAnimationFrame.bind(window)
|
12438 |
-
: setTimeout
|
12439 |
-
: /* istanbul ignore next */ function (fn) { return fn(); };
|
12440 |
-
|
12441 |
-
function nextFrame (fn) {
|
12442 |
-
raf(function () {
|
12443 |
-
raf(fn);
|
12444 |
-
});
|
12445 |
-
}
|
12446 |
-
|
12447 |
-
function addTransitionClass (el, cls) {
|
12448 |
-
var transitionClasses = el._transitionClasses || (el._transitionClasses = []);
|
12449 |
-
if (transitionClasses.indexOf(cls) < 0) {
|
12450 |
-
transitionClasses.push(cls);
|
12451 |
-
addClass(el, cls);
|
12452 |
-
}
|
12453 |
-
}
|
12454 |
-
|
12455 |
-
function removeTransitionClass (el, cls) {
|
12456 |
-
if (el._transitionClasses) {
|
12457 |
-
remove(el._transitionClasses, cls);
|
12458 |
-
}
|
12459 |
-
removeClass(el, cls);
|
12460 |
-
}
|
12461 |
-
|
12462 |
-
function whenTransitionEnds (
|
12463 |
-
el,
|
12464 |
-
expectedType,
|
12465 |
-
cb
|
12466 |
-
) {
|
12467 |
-
var ref = getTransitionInfo(el, expectedType);
|
12468 |
-
var type = ref.type;
|
12469 |
-
var timeout = ref.timeout;
|
12470 |
-
var propCount = ref.propCount;
|
12471 |
-
if (!type) { return cb() }
|
12472 |
-
var event = type === TRANSITION ? transitionEndEvent : animationEndEvent;
|
12473 |
-
var ended = 0;
|
12474 |
-
var end = function () {
|
12475 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|